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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
836d13ff665e7a6e6b31187ee8d690856be28d60
|
43ea91f3ca050380e4c163129e92b771d7bf144a
|
/services/das/src/main/java/com/huaweicloud/sdk/das/v3/model/ListDbUsersRequest.java
|
2b0852fb32127494559b653e674703829992c834
|
[
"Apache-2.0"
] |
permissive
|
wxgsdwl/huaweicloud-sdk-java-v3
|
660602ca08f32dc897d3770995b496a82a1cc72d
|
ee001d706568fdc7b852792d2e9aefeb9d13fb1e
|
refs/heads/master
| 2023-02-27T14:20:54.774327
| 2021-02-07T11:48:35
| 2021-02-07T11:48:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,455
|
java
|
package com.huaweicloud.sdk.das.v3.model;
import java.util.Collections;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.HashMap;
import java.util.Map;
import java.util.function.Consumer;
import java.util.Objects;
/**
* Request Object
*/
public class ListDbUsersRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="instance_id")
private String instanceId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="offset")
private Integer offset;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="limit")
private Integer limit;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="db_user_id")
private String dbUserId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="db_username")
private String dbUsername;
/**
* Gets or Sets xLanguage
*/
public static final class XLanguageEnum {
/**
* Enum ZH_CN for value: "zh-cn"
*/
public static final XLanguageEnum ZH_CN = new XLanguageEnum("zh-cn");
/**
* Enum E_USE for value: "e-use"
*/
public static final XLanguageEnum E_USE = new XLanguageEnum("e-use");
private static final Map<String, XLanguageEnum> STATIC_FIELDS = createStaticFields();
private static Map<String, XLanguageEnum> createStaticFields() {
Map<String, XLanguageEnum> map = new HashMap<>();
map.put("zh-cn", ZH_CN);
map.put("e-use", E_USE);
return Collections.unmodifiableMap(map);
}
private String value;
XLanguageEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return String.valueOf(value);
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static XLanguageEnum fromValue(String value) {
if( value == null ){
return null;
}
XLanguageEnum result = STATIC_FIELDS.get(value);
if (result == null) {
result = new XLanguageEnum(value);
}
return result;
}
public static XLanguageEnum valueOf(String value) {
if( value == null ){
return null;
}
XLanguageEnum result = STATIC_FIELDS.get(value);
if (result != null) {
return result;
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
@Override
public boolean equals(Object obj) {
if (obj != null && obj instanceof XLanguageEnum) {
return this.value.equals(((XLanguageEnum) obj).value);
}
return false;
}
@Override
public int hashCode() {
return this.value.hashCode();
}
}
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="X-Language")
private XLanguageEnum xLanguage;
public ListDbUsersRequest withInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* Get instanceId
* @return instanceId
*/
public String getInstanceId() {
return instanceId;
}
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}
public ListDbUsersRequest withOffset(Integer offset) {
this.offset = offset;
return this;
}
/**
* Get offset
* @return offset
*/
public Integer getOffset() {
return offset;
}
public void setOffset(Integer offset) {
this.offset = offset;
}
public ListDbUsersRequest withLimit(Integer limit) {
this.limit = limit;
return this;
}
/**
* Get limit
* @return limit
*/
public Integer getLimit() {
return limit;
}
public void setLimit(Integer limit) {
this.limit = limit;
}
public ListDbUsersRequest withDbUserId(String dbUserId) {
this.dbUserId = dbUserId;
return this;
}
/**
* Get dbUserId
* @return dbUserId
*/
public String getDbUserId() {
return dbUserId;
}
public void setDbUserId(String dbUserId) {
this.dbUserId = dbUserId;
}
public ListDbUsersRequest withDbUsername(String dbUsername) {
this.dbUsername = dbUsername;
return this;
}
/**
* Get dbUsername
* @return dbUsername
*/
public String getDbUsername() {
return dbUsername;
}
public void setDbUsername(String dbUsername) {
this.dbUsername = dbUsername;
}
public ListDbUsersRequest withXLanguage(XLanguageEnum xLanguage) {
this.xLanguage = xLanguage;
return this;
}
/**
* Get xLanguage
* @return xLanguage
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="X-Language")
public XLanguageEnum getXLanguage() {
return xLanguage;
}
public void setXLanguage(XLanguageEnum xLanguage) {
this.xLanguage = xLanguage;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ListDbUsersRequest listDbUsersRequest = (ListDbUsersRequest) o;
return Objects.equals(this.instanceId, listDbUsersRequest.instanceId) &&
Objects.equals(this.offset, listDbUsersRequest.offset) &&
Objects.equals(this.limit, listDbUsersRequest.limit) &&
Objects.equals(this.dbUserId, listDbUsersRequest.dbUserId) &&
Objects.equals(this.dbUsername, listDbUsersRequest.dbUsername) &&
Objects.equals(this.xLanguage, listDbUsersRequest.xLanguage);
}
@Override
public int hashCode() {
return Objects.hash(instanceId, offset, limit, dbUserId, dbUsername, xLanguage);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListDbUsersRequest {\n");
sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n");
sb.append(" offset: ").append(toIndentedString(offset)).append("\n");
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
sb.append(" dbUserId: ").append(toIndentedString(dbUserId)).append("\n");
sb.append(" dbUsername: ").append(toIndentedString(dbUsername)).append("\n");
sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
|
[
"hwcloudsdk@huawei.com"
] |
hwcloudsdk@huawei.com
|
e707d040e9617ad6a1a8fa641946886dc98f4072
|
318f01d9c7d6d5615c32eaf3a48b38e72c89dec6
|
/thirdpp-manager/src/main/java/com/zdmoney/manager/service/TThreadPoolService.java
|
fef5a988e48cf0ae21c377c03747c709e0644dec
|
[] |
no_license
|
ichoukou/thirdapp
|
dce52f5df2834f79a51895475b995a3e758be8c0
|
aae0a1596e06992b600a1a442723b833736240e3
|
refs/heads/master
| 2020-05-03T03:12:33.064089
| 2018-04-18T06:00:14
| 2018-04-18T06:00:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 545
|
java
|
package com.zdmoney.manager.service;
import java.util.List;
import java.util.Map;
import com.zdmoney.manager.models.TThreadPool;
public interface TThreadPoolService {
List<Map> getThreadPoolList(Map<String, Object> params);
int insert(TThreadPool ips);
int updateThreadPool(TThreadPool ips);
int updateThreadPoolActive(TThreadPool ips);
TThreadPool selectThreadPoolByID(long id);
int getThreadPoolListCount(Map<String, Object> params);
int batchDeleteInfo(List<Integer> list);
String getThreadPoolCount(TThreadPool tp);
}
|
[
"gaohongxuhappy@163.com"
] |
gaohongxuhappy@163.com
|
d6a4a553729a47a964a88730dd5fa3f74635c274
|
4ea8da78927258e8a9251c02ed75400f71b23342
|
/app/src/main/java/com/example/liangge/rxjavatest/utils/GlideUtil.java
|
2fbf8b4da722c8718a5c4f8b1a24fd7bc44a991f
|
[] |
no_license
|
ghl7231699/AndroidTest
|
73373fbfecc0d3d4349f1127ac12c3f95d5669e7
|
5f97c8e41ec2ea5a123fb6bb447d7a3374102f3d
|
refs/heads/master
| 2021-01-19T02:06:50.272562
| 2017-04-05T09:05:15
| 2017-04-05T09:05:15
| 87,262,474
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 140
|
java
|
package com.example.liangge.rxjavatest.utils;
/**
* Created by guhongliang on 2017/4/5.
* glide工具类
*/
public class GlideUtil {
}
|
[
"ghl1149660196@163.com"
] |
ghl1149660196@163.com
|
99a5532d9b04e2c1469af05659f28650d2263136
|
7c23099374591bc68283712ad4e95f977f8dd0d2
|
/android/support/v7/widget/AppCompatSpinner.java
|
bf97cc16c26ba15ccd11c95be1deec332aa1155d
|
[] |
no_license
|
eFOIA-12/eFOIA
|
736af184a67de80c209c2719c8119fc260e9fe3e
|
e9add4119191d68f826981a42fcacdb44982ac89
|
refs/heads/master
| 2021-01-21T23:33:36.280202
| 2015-07-14T17:47:01
| 2015-07-14T17:47:01
| 38,971,834
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,848
|
java
|
package android.support.v7.widget;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.PorterDuff.Mode;
import android.graphics.drawable.Drawable;
import android.os.Build.VERSION;
import android.support.annotation.Nullable;
import android.support.v4.view.TintableBackgroundView;
import android.support.v7.appcompat.R;
import android.support.v7.internal.widget.TintInfo;
import android.support.v7.internal.widget.TintManager;
import android.support.v7.internal.widget.TintTypedArray;
import android.util.AttributeSet;
import android.widget.Spinner;
import java.lang.reflect.Field;
public class AppCompatSpinner extends Spinner implements TintableBackgroundView {
private static final int[] TINT_ATTRS = new int[]{16842964, 16843126};
private TintInfo mBackgroundTint;
public AppCompatSpinner(Context var1) {
this(var1, (AttributeSet)null);
}
public AppCompatSpinner(Context var1, AttributeSet var2) {
this(var1, var2, R.attr.spinnerStyle);
}
public AppCompatSpinner(Context var1, AttributeSet var2, int var3) {
super(var1, var2, var3);
if(TintManager.SHOULD_BE_USED) {
TintTypedArray var4 = TintTypedArray.obtainStyledAttributes(this.getContext(), var2, TINT_ATTRS, var3, 0);
if(var4.hasValue(0)) {
ColorStateList var5 = var4.getTintManager().getTintList(var4.getResourceId(0, -1));
if(var5 != null) {
this.setSupportBackgroundTintList(var5);
}
}
if(var4.hasValue(1)) {
Drawable var6 = var4.getDrawable(1);
if(VERSION.SDK_INT >= 16) {
this.setPopupBackgroundDrawable(var6);
} else if(VERSION.SDK_INT >= 11) {
setPopupBackgroundDrawableV11(this, var6);
}
}
var4.recycle();
}
}
private void applySupportBackgroundTint() {
if(this.getBackground() != null && this.mBackgroundTint != null) {
TintManager.tintViewBackground(this, this.mBackgroundTint);
}
}
@TargetApi(11)
private static void setPopupBackgroundDrawableV11(Spinner var0, Drawable var1) {
try {
Field var2 = Spinner.class.getDeclaredField("mPopup");
var2.setAccessible(true);
Object var5 = var2.get(var0);
if(var5 instanceof android.widget.ListPopupWindow) {
((android.widget.ListPopupWindow)var5).setBackgroundDrawable(var1);
}
} catch (NoSuchFieldException var3) {
var3.printStackTrace();
} catch (IllegalAccessException var4) {
var4.printStackTrace();
}
}
protected void drawableStateChanged() {
super.drawableStateChanged();
this.applySupportBackgroundTint();
}
@Nullable
public ColorStateList getSupportBackgroundTintList() {
return this.mBackgroundTint != null?this.mBackgroundTint.mTintList:null;
}
@Nullable
public Mode getSupportBackgroundTintMode() {
return this.mBackgroundTint != null?this.mBackgroundTint.mTintMode:null;
}
public void setSupportBackgroundTintList(@Nullable ColorStateList var1) {
if(this.mBackgroundTint == null) {
this.mBackgroundTint = new TintInfo();
}
this.mBackgroundTint.mTintList = var1;
this.mBackgroundTint.mHasTintList = true;
this.applySupportBackgroundTint();
}
public void setSupportBackgroundTintMode(@Nullable Mode var1) {
if(this.mBackgroundTint == null) {
this.mBackgroundTint = new TintInfo();
}
this.mBackgroundTint.mTintMode = var1;
this.mBackgroundTint.mHasTintMode = true;
this.applySupportBackgroundTint();
}
}
|
[
"guest@example.edu"
] |
guest@example.edu
|
05200dda80be3e3358e16e8084213a05ade37a9e
|
1657ce44a741738712ca92352d23fe004e56c263
|
/spring-boot-memcached/src/main/java/com/yi/memcached/SpringBootMemcachedApplication.java
|
79f856a39b4ee64e742d5869f70d26accf4334b5
|
[
"Apache-2.0"
] |
permissive
|
zms1207/spring-boot-2.x-examples
|
f5bf68a2819bf10706ebcd081e001d78119d1bea
|
43c9a925a2fb986efe8b220671e4eb4573367c15
|
refs/heads/master
| 2020-05-04T06:26:01.109606
| 2019-04-02T02:39:18
| 2019-04-02T02:39:18
| 179,005,806
| 1
| 0
|
Apache-2.0
| 2019-04-02T05:34:01
| 2019-04-02T05:33:58
| null |
UTF-8
|
Java
| false
| false
| 415
|
java
|
package com.yi.memcached;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* Memcache缓存
* @author YI
* @date 2018-10-16 15:23:23
*/
@SpringBootApplication
public class SpringBootMemcachedApplication {
public static void main(String[] args) {
SpringApplication.run(SpringBootMemcachedApplication.class, args);
}
}
|
[
"ilovey_hwy@163.com"
] |
ilovey_hwy@163.com
|
0a66765a077727aba6fcb72acc0fca5e2151254c
|
86d64a19137ce08715a0a1ed982c54e7d78a255b
|
/app/src/main/java/com/atgc/cotton/xlistview/XListViewFooter.java
|
ef709c0eb41bc99d619a0e0c7f6c2e59382424ee
|
[] |
no_license
|
duanjisi/MeetBusiness
|
55c6e95f0bc57ab4118541d0ec9048b247d60a0c
|
d310a7313dc168b2621c8304b412d4a18e5e9c38
|
refs/heads/master
| 2020-12-30T17:10:59.161767
| 2018-01-28T07:09:13
| 2018-01-28T07:09:13
| 91,061,841
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,294
|
java
|
/**
* @file XFooterView.java
* @create Mar 31, 2012 9:33:43 PM
* @author Maxwin
* @description XListView's footer
*/
package com.atgc.cotton.xlistview;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.atgc.cotton.R;
public class XListViewFooter extends LinearLayout {
public final static int STATE_NORMAL = 0;
public final static int STATE_READY = 1;
public final static int STATE_LOADING = 2;
private Context mContext;
private View mContentView;
private View mProgressBar;
private TextView mHintView;
public XListViewFooter(Context context) {
super(context);
initView(context);
}
public XListViewFooter(Context context, AttributeSet attrs) {
super(context, attrs);
initView(context);
}
public void setState(int state) {
mHintView.setVisibility(View.INVISIBLE);
mProgressBar.setVisibility(View.INVISIBLE);
mHintView.setVisibility(View.INVISIBLE);
if (state == STATE_READY) {
mHintView.setVisibility(View.VISIBLE);
mHintView.setText(R.string.xlistview_footer_hint_ready);
} else if (state == STATE_LOADING) {
mProgressBar.setVisibility(View.VISIBLE);
} else {
mHintView.setVisibility(View.VISIBLE);
mHintView.setText(R.string.xlistview_footer_hint_normal);
}
}
public void setBottomMargin(int height) {
if (height < 0) return;
LayoutParams lp = (LayoutParams) mContentView.getLayoutParams();
lp.bottomMargin = height;
mContentView.setLayoutParams(lp);
}
public int getBottomMargin() {
LayoutParams lp = (LayoutParams) mContentView.getLayoutParams();
return lp.bottomMargin;
}
/**
* normal status
*/
public void normal() {
mHintView.setVisibility(View.VISIBLE);
mProgressBar.setVisibility(View.GONE);
}
/**
* loading status
*/
public void loading() {
mHintView.setVisibility(View.GONE);
mProgressBar.setVisibility(View.VISIBLE);
}
/**
* hide footer when disable pull load more
*/
public void hide() {
LayoutParams lp = (LayoutParams) mContentView.getLayoutParams();
lp.height = 0;
mContentView.setLayoutParams(lp);
}
/**
* show footer
*/
public void show() {
LayoutParams lp = (LayoutParams) mContentView.getLayoutParams();
lp.height = LayoutParams.WRAP_CONTENT;
mContentView.setLayoutParams(lp);
}
private void initView(Context context) {
mContext = context;
LinearLayout moreView = (LinearLayout) LayoutInflater.from(mContext).inflate(R.layout.xlistview_footer, null);
addView(moreView);
moreView.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
mContentView = moreView.findViewById(R.id.xlistview_footer_content);
mProgressBar = moreView.findViewById(R.id.xlistview_footer_progressbar);
mHintView = (TextView) moreView.findViewById(R.id.xlistview_footer_hint_textview);
}
}
|
[
"576248427@qq.com"
] |
576248427@qq.com
|
b96cc5afb7d98071387336db4fe5ab2db74ba927
|
00d39ea2beb4b095956a18eaa9e9320fab98d151
|
/src/test/java/de/gedoplan/feige_sein/test/persistence/TestTransactionInterceptor.java
|
decb3a2c141ebf284471e27d768aa876bc9b5df1
|
[] |
no_license
|
kusnier/feige-sein
|
a377dc5c7e16a208b7072b3d96c264a1d667d317
|
face730f27ef3f8c47b6961340460827ee1f823f
|
refs/heads/master
| 2021-01-14T12:02:33.864947
| 2014-11-21T00:12:18
| 2014-11-21T00:12:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,050
|
java
|
package de.gedoplan.feige_sein.test.persistence;
import javax.annotation.Priority;
import javax.inject.Inject;
import javax.interceptor.AroundInvoke;
import javax.interceptor.Interceptor;
import javax.interceptor.InvocationContext;
import javax.persistence.EntityManager;
import javax.transaction.Transactional;
@Interceptor
@Priority(Interceptor.Priority.APPLICATION + 1)
@Transactional
public class TestTransactionInterceptor
{
@Inject
EntityManager entityManager;
@AroundInvoke
Object manageTransaction(InvocationContext invocationContext) throws Exception
{
if (this.entityManager.getTransaction().isActive())
{
return invocationContext.proceed();
}
this.entityManager.getTransaction().begin();
try
{
Object result = invocationContext.proceed();
this.entityManager.getTransaction().commit();
return result;
}
catch (Exception exception)
{
this.entityManager.getTransaction().rollback();
throw exception;
}
}
}
|
[
"dirk.weil@gedoplan.de"
] |
dirk.weil@gedoplan.de
|
88d3b464a3a0e729dbc12a2f1181170a7fd9cc0d
|
7773ea6f465ffecfd4f9821aad56ee1eab90d97a
|
/plugins/jps-cache/src/com/intellij/jps/cache/ui/SegmentedProgressIndicatorManager.java
|
7ccadb80d925ea66bf70d6c17092253879386d36
|
[
"Apache-2.0"
] |
permissive
|
aghasyedbilal/intellij-community
|
5fa14a8bb62a037c0d2764fb172e8109a3db471f
|
fa602b2874ea4eb59442f9937b952dcb55910b6e
|
refs/heads/master
| 2023-04-10T20:55:27.988445
| 2020-05-03T22:00:26
| 2020-05-03T22:26:23
| 261,074,802
| 2
| 0
|
Apache-2.0
| 2020-05-04T03:48:36
| 2020-05-04T03:48:35
| null |
UTF-8
|
Java
| false
| false
| 3,478
|
java
|
package com.intellij.jps.cache.ui;
import com.intellij.openapi.progress.ProgressIndicator;
import com.intellij.openapi.progress.util.ProgressWrapper;
import com.intellij.util.containers.hash.LinkedHashMap;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public class SegmentedProgressIndicatorManager {
private static final LinkedHashMap<SubTaskProgressIndicator, String> myText2Stack = new LinkedHashMap<>();
private static final LinkedHashMap<Object, String> myTextStack = new LinkedHashMap<>();
private static final Object myLock = new Object();
private final ProgressIndicator myProgressIndicator;
private final double mySegmentSize;
private final int myTasksCount;
public SegmentedProgressIndicatorManager(ProgressIndicator progressIndicator, int tasksCount, double segmentSize) {
myProgressIndicator = progressIndicator;
mySegmentSize = segmentSize;
myTasksCount = tasksCount;
myText2Stack.clear();
myTextStack.clear();
}
public SubTaskProgressIndicator createSubTaskIndicator() {
assert myTasksCount != 0;
return new SubTaskProgressIndicator(this);
}
public void updateFraction(double value) {
double fractionValue = value / myTasksCount * mySegmentSize;
synchronized (myProgressIndicator) {
myProgressIndicator.setFraction(myProgressIndicator.getFraction() + fractionValue);
}
}
public void setText(@NotNull Object obj, @Nullable String text) {
if (text != null) {
synchronized (myLock) {
myTextStack.put(obj, text);
}
myProgressIndicator.setText(text);
}
else {
String prev;
synchronized (myLock) {
myTextStack.remove(obj);
prev = myTextStack.getLastValue();
}
if (prev != null) {
myProgressIndicator.setText(prev);
}
}
}
public void setText2(@NotNull SubTaskProgressIndicator subTask, @Nullable String text) {
if (text != null) {
synchronized (myLock) {
myText2Stack.put(subTask, text);
}
myProgressIndicator.setText2(text);
}
else {
String prev;
synchronized (myLock) {
myText2Stack.remove(subTask);
prev = myText2Stack.getLastValue();
}
if (prev != null) {
myProgressIndicator.setText2(prev);
}
}
}
public void finished(Object obj) {
setText(obj, null);
}
public ProgressIndicator getProgressIndicator() {
return myProgressIndicator;
}
public static class SubTaskProgressIndicator extends ProgressWrapper {
private final SegmentedProgressIndicatorManager myProgressManager;
private double myFraction;
private SubTaskProgressIndicator(SegmentedProgressIndicatorManager progressManager) {
super(progressManager.myProgressIndicator, true);
myProgressManager = progressManager;
myFraction = 0;
}
@Override
public void setFraction(double newValue) {
double diffFraction = newValue - myFraction;
myProgressManager.updateFraction(diffFraction);
myFraction = newValue;
}
@Override
public void setText2(String text) {
myProgressManager.setText2(this, text);
}
@Override
public void setText(String text) {
myProgressManager.setText(this, text);
}
@Override
public double getFraction() {
return myFraction;
}
public void finished() {
setFraction(1);
myProgressManager.setText2(this, null);
}
}
}
|
[
"intellij-monorepo-bot-no-reply@jetbrains.com"
] |
intellij-monorepo-bot-no-reply@jetbrains.com
|
f39a224c662991af961e94fe6b6076690ca2f3af
|
17fc0a1170148bac93c6f84bbf5cc86ba89b613c
|
/AudioRecording/app/src/androidTest/java/github/nisrulz/audiorecording/ApplicationTest.java
|
f5e420c2c7a450f815094a3a6d3894b25d8335d8
|
[
"Apache-2.0"
] |
permissive
|
AndroidSourceTools/android-examples
|
6be8c1396096139f765998dfba041f729213ed35
|
0dc94cf07f184ccadd909fd7d027df0a77ba95e0
|
refs/heads/develop
| 2023-02-12T17:47:40.472427
| 2021-01-12T23:25:49
| 2021-01-12T23:25:49
| 343,481,097
| 1
| 0
|
Apache-2.0
| 2021-03-01T16:24:24
| 2021-03-01T16:24:23
| null |
UTF-8
|
Java
| false
| false
| 360
|
java
|
package github.nisrulz.audiorecording;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
}
|
[
"nisrulz@gmail.com"
] |
nisrulz@gmail.com
|
d4f783b0bbc07869d8d1dcf74ec3625c5bbe728e
|
cb0e7d6493b23e870aa625eb362384a10f5ee657
|
/solutions/java/1024.java
|
233f557431453fa1c06b69836baa8ccb902863cf
|
[] |
no_license
|
sweetpand/LeetCode-1
|
0acfa603af254a3350d457803449a91322f2d1a7
|
65f4ef26cb8b2db0b4bf8c42bfdc76421b479f94
|
refs/heads/master
| 2022-11-14T07:01:42.502172
| 2020-07-12T12:25:56
| 2020-07-12T12:25:56
| 279,088,171
| 1
| 0
| null | 2020-07-12T15:03:20
| 2020-07-12T15:03:19
| null |
UTF-8
|
Java
| false
| false
| 432
|
java
|
class Solution {
public int videoStitching(int[][] clips, int T) {
int ans = 0;
int end = 0;
int farthest = 0;
Arrays.sort(clips, (a, b) -> a[0] - b[0]);
int i = 0;
while (farthest < T) {
while (i < clips.length && clips[i][0] <= end)
farthest = Math.max(farthest, clips[i++][1]);
if (end == farthest)
return -1;
++ans;
end = farthest;
}
return ans;
}
}
|
[
"walkccray@gmail.com"
] |
walkccray@gmail.com
|
4d20f48449814fd5e6a2d12609e7aa8621be8c6b
|
df250bd0a8132668848b253d2d415711a2ca67aa
|
/app/src/main/java/com/cxw/cxwproject/dialog/FollowDialog.java
|
697d91e742a96cf276d88065fdacfa318f0f91ed
|
[] |
no_license
|
Sekei/cxwpoject
|
1038a76052d38b92d25d84c420663a5b6fd1bd3a
|
5dc96fa45ae4d0bf2225908a44f95e3db0a33de1
|
refs/heads/master
| 2020-03-16T14:51:00.620413
| 2018-05-09T07:00:45
| 2018-05-09T07:00:45
| 132,715,177
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,252
|
java
|
package com.cxw.cxwproject.dialog;
import com.cxw.cxwproject.R;
import com.cxw.cxwproject.dialog.base.BaseDialog;
import android.content.Context;
import android.view.View;
import android.widget.TextView;
public class FollowDialog extends BaseDialog {
/**
* 初始化接口变量
*/
ICoallBack icallBack = null;
/**
* 自定义控件的自定义事件
*
* 接口类型
*/
public void setonClick(ICoallBack iBack) {
icallBack = iBack;
}
public FollowDialog(Context context) {
super(context);
}
@Override
protected int getLayoutId() {
return R.layout.dialog_follow;
}
@Override
protected void initView() {
// 取消关注
TextView cancelattention_btn = (TextView) findViewById(R.id.cancelattention_btn);
cancelattention_btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
// 使用回调实现
icallBack.onClickButton();
dismiss();
}
});
// 取消
TextView cancel = (TextView) findViewById(R.id.cancel);
cancel.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
dismiss();
}
});
}
/**
* 取消关注接口
*/
public interface ICoallBack {
public void onClickButton();
}
}
|
[
"juanjuan19941019"
] |
juanjuan19941019
|
66a126cec9469fd0e152734acf1e5678346dbb50
|
c7b437dd08eb074e162ee3b8b0cc9692f134ed45
|
/boo-engine/src/main/java/cn/edu/sysu/workflow/engine/service/SteadyStepService.java
|
0077eda279a0c90a5d668148d2edb15de38862fa
|
[
"Apache-2.0"
] |
permissive
|
SYSU-Workflow-Lab/BooWFMS
|
b30fb61a3772ccc7401677de0d42b606cb54e1ef
|
2122e57dd882822c72c31b5c78fc9d967b122c17
|
refs/heads/release/1.2.0
| 2022-07-01T17:59:55.730859
| 2020-06-14T08:22:09
| 2020-06-14T08:22:09
| 208,559,518
| 6
| 8
|
Apache-2.0
| 2022-06-17T03:18:09
| 2019-09-15T07:45:13
|
Java
|
UTF-8
|
Java
| false
| false
| 1,170
|
java
|
package cn.edu.sysu.workflow.engine.service;
import cn.edu.sysu.workflow.engine.core.BOXMLExecutionContext;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Methods for making business object service.
*
* @author Skye
* Created on 2019/12/28
*/
public interface SteadyStepService {
/**
* Write a entity step to entity memory.
*
* @param exctx BOXML execution context
*/
void writeSteady(BOXMLExecutionContext exctx);
/**
* Clear entity step snapshot after final state, and write a span tree descriptor to archived tree table.
*
* @param processInstanceId process runtime record id
*/
void clearSteadyWriteArchivedTree(String processInstanceId);
/**
* Resume instances from entity memory, and register it to instance manager.
*
* @param processInstanceIdItems processInstanceIds in JSON list
*/
List<String> resumeSteadyMany(String processInstanceIdItems);
/**
* Resume a instance from entity memory, and register it to instance manager.
*
* @param processInstanceId
*/
boolean resumeSteady(String processInstanceId);
}
|
[
"928016560@qq.com"
] |
928016560@qq.com
|
8aa9c70b197db44f100d6e835354d0389c428e72
|
4e3ad3a6955fb91d3879cfcce809542b05a1253f
|
/schema/ab-products/common/connectors/src/main/com/archibus/app/common/connectors/impl/archibus/outbound/NullReplacementRequestFieldDef.java
|
64d01233481846228734fb875380ef73be82e6ac
|
[] |
no_license
|
plusxp/ARCHIBUS_Dev
|
bee2f180c99787a4a80ebf0a9a8b97e7a5666980
|
aca5c269de60b6b84d7871d79ef29ac58f469777
|
refs/heads/master
| 2021-06-14T17:51:37.786570
| 2017-04-07T16:21:24
| 2017-04-07T16:21:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,534
|
java
|
package com.archibus.app.common.connectors.impl.archibus.outbound;
import com.archibus.app.common.connectors.domain.ConnectorFieldConfig;
import com.archibus.app.common.connectors.exception.ConfigurationException;
import com.archibus.app.common.connectors.translation.exception.TranslationException;
/**
* Replaces a translated value with another value if it's null.
*
* @author cole
*
*/
public class NullReplacementRequestFieldDef extends ArchibusRequestFieldDefinition {
/**
* The value to replace the translated value with if it's null.
*/
private final Object replacementValue;
/**
* Create a request field definition created from an afm_conn_flds record.
*
* @param connectorField an afm_conn_fld associated with the connector that this definition
* represents.
* @param replacementValue the value to replace the translated value with if it's null.
* @throws ConfigurationException if a connector rule is present and cannot be instantiated.
*/
public NullReplacementRequestFieldDef(final ConnectorFieldConfig connectorField,
final Object replacementValue) throws ConfigurationException {
super(connectorField);
this.replacementValue = replacementValue;
}
@Override
public Object translateToForeign(final Object databaseValue) throws TranslationException {
final Object value = super.translateToForeign(databaseValue);
return value == null ? this.replacementValue : value;
}
}
|
[
"imranh.khan@ucalgary.ca"
] |
imranh.khan@ucalgary.ca
|
bbebf7178942d5adb4d51cb5f400ccfe2413fa60
|
b1b77bb1ed47586f96d8f2554a65bcbd0c7162cc
|
/NETFLIX/zeno/src/examples/java/com/netflix/zeno/examples/framework/IntSumRecord.java
|
4ef6e6100969b108916c6ea0e3e2c1bebfbbc854
|
[] |
no_license
|
DanHefrman/stuff
|
b3624d7089909972ee806211666374a261c02d08
|
b98a5c80cfe7041d8908dcfd4230cf065c17f3f6
|
refs/heads/master
| 2023-07-10T09:47:04.780112
| 2021-08-13T09:55:17
| 2021-08-13T09:55:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,447
|
java
|
/*
*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package com.netflix.zeno.examples.framework;
import com.netflix.zeno.serializer.NFSerializationRecord;
/**
* When implementing a SerializationFramework, we need to create some kind of "serialization record".<p/>
*
* The role of the serialization record is to maintain some state while traversing an object instance.<p/>
*
* In our contrived example, this means we will have to keep track of a sum.<p/>
*
* A "serialization record" must implement NFSerializationRecord. This interface defines no methods and is only
* intended to indicate the role of the class.
*
* @author dkoszewnik
*
*/
public class IntSumRecord extends NFSerializationRecord {
private int sum;
public void addValue(int value) {
sum += value;
}
public int getSum() {
return sum;
}
}
|
[
"bryan.guner@gmail.com"
] |
bryan.guner@gmail.com
|
eabee71a44750a7b15132551c1a104704549ac39
|
ab93ec6919175a2c420df4488a3ccfc7949fbf3e
|
/src/main/java/hudson/plugins/groovy/StringSystemScriptSource.java
|
1527b1227dcab680072ac4114b53039745b141b3
|
[
"MIT"
] |
permissive
|
jenkinsci/groovy-plugin
|
7e2c3ff8a6ba40e1618073455344f5d95a3ce08d
|
cdbac5c998904046f954ab23d288ab28bed391bd
|
refs/heads/master
| 2023-09-03T12:43:27.246500
| 2022-10-13T01:44:46
| 2022-10-13T01:44:46
| 1,163,594
| 20
| 50
|
MIT
| 2023-08-23T20:12:54
| 2010-12-13T05:39:13
|
Java
|
UTF-8
|
Java
| false
| false
| 1,111
|
java
|
package hudson.plugins.groovy;
import hudson.Extension;
import hudson.FilePath;
import hudson.model.AbstractBuild;
import hudson.model.Descriptor;
import hudson.model.TaskListener;
import java.io.IOException;
import org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript;
import org.kohsuke.stapler.DataBoundConstructor;
public class StringSystemScriptSource extends SystemScriptSource {
private final SecureGroovyScript script;
@DataBoundConstructor
public StringSystemScriptSource(SecureGroovyScript script) {
this.script = script.configuringWithNonKeyItem();
}
public SecureGroovyScript getScript() {
return script;
}
@Override
public SecureGroovyScript getSecureGroovyScript(FilePath projectWorkspace, AbstractBuild<?, ?> build, TaskListener listener) throws IOException, InterruptedException {
return script;
}
@Extension
public static class DescriptorImpl extends Descriptor<SystemScriptSource> {
@Override
public String getDisplayName() {
return "Groovy command";
}
}
}
|
[
"jglick@cloudbees.com"
] |
jglick@cloudbees.com
|
8a56b18d7f045839258a84f161ca119cf8df5a81
|
81250aa35c5be2cfd4629d9aa2c06f940b6b2f45
|
/app/src/main/java/org/newstand/datamigration/ui/fragment/ScheduledTaskViewerFragment.java
|
0f8d4f700a88dc4799d0ec7ae6292cda4a2c21f4
|
[] |
no_license
|
PPOP-PPOP/DataMigration
|
a7a6ded880a086971aad5433aec7ab36c46f4c7b
|
b40f39a5a12869e2d52bda848e3d6a7f672a757e
|
refs/heads/master
| 2020-12-02T08:01:58.465842
| 2017-07-12T06:44:12
| 2017-07-12T06:44:12
| 96,761,786
| 1
| 0
| null | 2017-07-12T06:40:02
| 2017-07-10T09:49:14
|
Java
|
UTF-8
|
Java
| false
| false
| 4,962
|
java
|
package org.newstand.datamigration.ui.fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v4.widget.SwipeRefreshLayout;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import org.newstand.datamigration.R;
import org.newstand.datamigration.common.Consumer;
import org.newstand.datamigration.provider.SettingsProvider;
import org.newstand.datamigration.repo.SchedulerParamRepoService;
import org.newstand.datamigration.service.schedule.SchedulerParam;
import org.newstand.datamigration.ui.activity.ScheduledTaskCreatorActivity;
import org.newstand.datamigration.ui.activity.TransitionSafeActivity;
import org.newstand.datamigration.ui.tiles.SchedulerActionTile;
import org.newstand.datamigration.utils.Collections;
import java.util.List;
import dev.nick.tiles.tile.Category;
import dev.nick.tiles.tile.DashboardFragment;
/**
* Created by Nick@NewStand.org on 2017/4/21 19:29
* E-Mail: NewStand@163.com
* All right reserved.
*/
public class ScheduledTaskViewerFragment extends DashboardFragment {
private List<SchedulerParam> mSchedulerParamList;
private SwipeRefreshLayout swipeRefreshLayout;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View root = super.onCreateView(inflater, container, savedInstanceState);
FloatingActionButton fab = null;
if (root != null) {
fab = (FloatingActionButton) root.findViewById(R.id.fab);
swipeRefreshLayout = (SwipeRefreshLayout) root.findViewById(R.id.swipe);
}
if (fab != null) {
fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
onFabClick();
}
});
}
if (swipeRefreshLayout != null) {
swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
@Override
public void onRefresh() {
startLoading();
}
});
}
return root;
}
private void onFabClick() {
TransitionSafeActivity transitionSafeActivity = (TransitionSafeActivity) getActivity();
transitionSafeActivity.transitionTo(new Intent(getContext(), ScheduledTaskCreatorActivity.class));
}
@Override
protected int getLayoutId() {
return R.layout.layout_scheduled_task_viewer;
}
@Override
protected void onCreateDashCategories(List<Category> categories) {
super.onCreateDashCategories(categories);
if (Collections.isNullOrEmpty(mSchedulerParamList)) return;
final Category pending = new Category();
pending.titleRes = R.string.title_scheduler_pending;
Collections.consumeRemaining(mSchedulerParamList,
new Consumer<SchedulerParam>() {
@Override
public void accept(@NonNull SchedulerParam schedulerParam) {
SchedulerActionTile tile = new SchedulerActionTile(getActivity(),
schedulerParam.getCondition(), schedulerParam.getAction());
pending.addTile(tile);
}
});
categories.add(pending);
}
@Override
public void onResume() {
super.onResume();
startLoading();
}
private void startLoading() {
swipeRefreshLayout.setRefreshing(true);
mSchedulerParamList = SchedulerParamRepoService.get().findAll(getContext());
getActivity().runOnUiThread(new Runnable() {
@Override
public void run() {
buildUI(getContext());
swipeRefreshLayout.setRefreshing(false);
if (!SettingsProvider.isTipsNoticed("scheduler_task_viewer")) {
Snackbar.make(swipeRefreshLayout, R.string.title_scheduler_tips, Snackbar.LENGTH_LONG)
.setAction(android.R.string.ok, new View.OnClickListener() {
@Override
public void onClick(View v) {
SettingsProvider.setTipsNoticed("scheduler_task_viewer", true);
}
})
.show();
}
}
});
}
@Override
public void onDestroy() {
super.onDestroy();
if (mSchedulerParamList != null)
mSchedulerParamList.clear();
mSchedulerParamList = null;
}
}
|
[
"guohao4@lenovo.com"
] |
guohao4@lenovo.com
|
a1ee406d15f0b9aef28e8a518f6e2ec255c43f02
|
bb6518b41e193db2e3c099ff3fda9e4abd6c2934
|
/poc-routing-service-cmd/src/main/java/io/agilehandy/web/legs/LegController.java
|
94568a432247fa4b11b9d365e9fd465963f61472
|
[] |
no_license
|
Haybu/poc-shipping-routing-service
|
8f0865fc9c619b573a5d6d07bfa3e6bef3288634
|
cbdab053126442ac07367aeeea544da2e4c39a1b
|
refs/heads/master
| 2020-04-27T13:02:38.144754
| 2019-04-15T13:59:00
| 2019-04-15T13:59:00
| 174,353,405
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,298
|
java
|
/*
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.agilehandy.web.legs;
import io.agilehandy.legs.LegAddCommand;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
/**
* @author Haytham Mohamed
**/
@RestController
public class LegController {
private final LegService service;
public LegController(LegService service) {
this.service = service;
}
@PostMapping("/{routeId}")
public String addLegToRoute(@RequestBody LegAddCommand cmd, @PathVariable String routeId) {
return service.addLeg(routeId, cmd);
}
}
|
[
"haybu@hotmail.com"
] |
haybu@hotmail.com
|
ce7bf4aacbf9c8bda50daa9395e8cd7cd5f6856d
|
4558f89a8524bae05b48d5d2d1b0a290eddbfb32
|
/src/netbeans/protomoto/src/protomoto/cell/IntegerCell.java
|
da632c0c571ce5d16f73cea5bfb09e2297d36f9b
|
[
"MIT"
] |
permissive
|
jakobehmsen/protomoto
|
0bf4665824dcce8331808b7680e28d69057d2454
|
e6105fab8fd4c02307367305cefbc661387840f1
|
refs/heads/master
| 2020-05-20T12:25:34.599550
| 2017-03-29T18:56:43
| 2017-03-29T18:56:43
| 80,414,430
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 773
|
java
|
package protomoto.cell;
import protomoto.cell.Cell;
public class IntegerCell extends AbstractCell {
private final int value;
public IntegerCell(int value) {
this.value = value;
}
@Override
public Cell resolveProto(Environment environment) {
return environment.getIntegerProto();
}
@Override
public String toString() {
return "" + value;
}
public int getIntValue() {
return value;
}
@Override
public BehaviorCell resolveEvaluateBehavior() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
@Override
public Cell cloneCell() {
return new IntegerCell(value);
}
}
|
[
"jakobehmsen.github@gmail.com"
] |
jakobehmsen.github@gmail.com
|
4fbb1c7ce90fe9e7a9a656375696929ddedc5fa0
|
f28c3fae2b66f542a2d441b3950e960607d65ca3
|
/src/main/java/cz/cvut/fit/mi_mpr_dip/admission/dao/Dao.java
|
6e908252e13574b7732c17ed5d6bd1943722382c
|
[] |
no_license
|
janondrusek/MI-MPR-DIP-Admission
|
c4a642f9ee912e172338cba21ea931bfe1d6f910
|
761ee5c1c9905e3a8db1581178c8279b74b1553d
|
refs/heads/master
| 2021-10-12T00:23:31.524336
| 2012-11-10T14:03:24
| 2012-11-10T14:03:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,281
|
java
|
package cz.cvut.fit.mi_mpr_dip.admission.dao;
import java.util.List;
import javax.persistence.TypedQuery;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.stereotype.Repository;
import com.google.common.collect.Lists;
@Repository
public abstract class Dao<T> {
private static final Logger log = LoggerFactory.getLogger(Dao.class);
protected T uniqueResult(TypedQuery<T> query) {
T result;
try {
result = query.getSingleResult();
} catch (EmptyResultDataAccessException e) {
result = createEmptyResult();
log.debug("Returning empty result for [{}]", result.getClass().getSimpleName());
}
return result;
}
protected T processException(Exception e) {
T o = createEmptyResult();
log.debug("Unable to get result for [{}], [{}]", o.getClass(), String.valueOf(e));
return o;
}
abstract protected T createEmptyResult();
protected List<T> processListException(Exception e) {
List<T> list = createEmptyList();
log.debug("Unable to find entries for [{}], [{}]", list.getClass(), String.valueOf(e));
return list;
}
protected List<T> createEmptyList() {
return Lists.newArrayList();
}
}
|
[
"ondrusek.jan@gmail.com"
] |
ondrusek.jan@gmail.com
|
5835bb31b7434ceb274b2f1737ffa31ecc9c4744
|
83964a56c3d3fff94d0ff0e52386552d193aca03
|
/src/main/java/com/google/gson/annotations/JsonAdapter.java
|
f46f83cb99351eb25e4ab933f23cd841a9256101
|
[] |
no_license
|
onurtokat/hal-streaming
|
9a0da5c050b9dd79984427a2594ef8726cae270a
|
63063991e94698d6588c1cf2170965f3991c78e3
|
refs/heads/master
| 2020-04-30T23:19:24.625158
| 2019-03-22T13:02:57
| 2019-03-22T13:02:57
| 177,141,138
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 423
|
java
|
//
// Decompiled by Procyon v0.5.30
//
package com.google.gson.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Retention;
import java.lang.annotation.Annotation;
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE, ElementType.FIELD })
public @interface JsonAdapter {
Class<?> value();
}
|
[
"onurtkt@gmail.com"
] |
onurtkt@gmail.com
|
c80187d45b1cf33eddc47f9a21f2511f8b285afe
|
8af1164bac943cef64e41bae312223c3c0e38114
|
/results-java/gradle--gradle/59c93b5ebd13ac4df3b38df7516ae89064be873d/after/IncrementalJavaCompilerSupport.java
|
008db118a217c6adf4cfaee905e96ebf3e6b1a0c
|
[] |
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,413
|
java
|
/*
* Copyright 2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.gradle.api.internal.tasks.compile;
import org.gradle.api.tasks.WorkResult;
import org.gradle.language.jvm.tasks.StaleClassCleaner;
/**
* A dumb incremental compiler. Deletes stale classes before invoking the actual compiler
*/
public abstract class IncrementalJavaCompilerSupport<T extends JavaCompileSpec> implements Compiler<T> {
public WorkResult execute(T spec) {
StaleClassCleaner cleaner = createCleaner(spec);
cleaner.setDestinationDir(spec.getDestinationDir());
cleaner.setSource(spec.getSource());
cleaner.execute();
Compiler<? super T> compiler = getCompiler();
return compiler.execute(spec);
}
protected abstract Compiler<T> getCompiler();
protected abstract StaleClassCleaner createCleaner(T spec);
}
|
[
"fraczwojciech@gmail.com"
] |
fraczwojciech@gmail.com
|
2a56b561c9342e7a0b2c25d0809bbada72471972
|
9a5e283f2c38477f5923bc7ebf8b57031e65a1a8
|
/beeway/src/main/java/com/thvc/beeway/bean/AddTrackBean.java
|
8e1b12055b23ae3a18571d17db8b9e8ef6736726
|
[] |
no_license
|
XieQinghua/Beeway
|
b8ded36ba44b3f9839a50d9210d0d0c53f35877a
|
c81112c89f68405690f62afd0d8945f3092b3cf6
|
refs/heads/master
| 2020-06-14T20:12:24.011836
| 2017-01-03T04:11:13
| 2017-01-03T04:11:13
| 75,351,725
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,459
|
java
|
package com.thvc.beeway.bean;
/**
* 项目名称:Beeway
* 类描述:发布足迹返回对象bean
* 创建人:谢庆华.
* 创建时间:2015/9/1 16:53
* 修改人:Administrator
* 修改时间:2015/9/1 16:53
* 修改备注:
*/
public class AddTrackBean {
/**
* data : {"address":"%s","flag":"","city":"","public_status":1,"latitude":"%s","solevar":"d5baa2a4804bb5a6","type":1,"userid":"%s","content":"%s","istype":1,"addtime":1441096599,"geohash":"","detail":"%s","prov":"","longitude":"%s"}
* status : 1
* info :
*/
private DataEntity data;
private int status;
private String info;
public void setData(DataEntity data) {
this.data = data;
}
public void setStatus(int status) {
this.status = status;
}
public void setInfo(String info) {
this.info = info;
}
public DataEntity getData() {
return data;
}
public int getStatus() {
return status;
}
public String getInfo() {
return info;
}
public static class DataEntity {
/**
* address : %s
* flag :
* city :
* public_status : 1
* latitude : %s
* solevar : d5baa2a4804bb5a6
* type : 1
* userid : %s
* content : %s
* istype : 1
* addtime : 1441096599
* geohash :
* detail : %s
* prov :
* longitude : %s
*/
private String address;
private String flag;
private String city;
private int public_status;
private String latitude;
private String solevar;
private int type;
private String userid;
private String content;
private int istype;
private int addtime;
private String geohash;
private String detail;
private String prov;
private String longitude;
public void setAddress(String address) {
this.address = address;
}
public void setFlag(String flag) {
this.flag = flag;
}
public void setCity(String city) {
this.city = city;
}
public void setPublic_status(int public_status) {
this.public_status = public_status;
}
public void setLatitude(String latitude) {
this.latitude = latitude;
}
public void setSolevar(String solevar) {
this.solevar = solevar;
}
public void setType(int type) {
this.type = type;
}
public void setUserid(String userid) {
this.userid = userid;
}
public void setContent(String content) {
this.content = content;
}
public void setIstype(int istype) {
this.istype = istype;
}
public void setAddtime(int addtime) {
this.addtime = addtime;
}
public void setGeohash(String geohash) {
this.geohash = geohash;
}
public void setDetail(String detail) {
this.detail = detail;
}
public void setProv(String prov) {
this.prov = prov;
}
public void setLongitude(String longitude) {
this.longitude = longitude;
}
public String getAddress() {
return address;
}
public String getFlag() {
return flag;
}
public String getCity() {
return city;
}
public int getPublic_status() {
return public_status;
}
public String getLatitude() {
return latitude;
}
public String getSolevar() {
return solevar;
}
public int getType() {
return type;
}
public String getUserid() {
return userid;
}
public String getContent() {
return content;
}
public int getIstype() {
return istype;
}
public int getAddtime() {
return addtime;
}
public String getGeohash() {
return geohash;
}
public String getDetail() {
return detail;
}
public String getProv() {
return prov;
}
public String getLongitude() {
return longitude;
}
}
}
|
[
"305413135@qq.com"
] |
305413135@qq.com
|
afcb33964acf445bc448d961dd7e2c403365f058
|
e46a5fe7e87a33c2fcdd526311ac4877cbdeeadc
|
/cn.hofan.email.system.contract/src/main/java/cn/hofan/email/dao/EmailArchiveConfigDao.java
|
fd67ca4a71bb50ad808bafe4ee13a85aeea70b8a
|
[] |
no_license
|
289048093/tool
|
6ff94d083d0bacaa2af6397ffeaa2981f2265a98
|
91316e00588ad2a5b3707a1fafa2e77773a5bbb3
|
refs/heads/master
| 2020-04-06T07:07:02.871439
| 2014-09-25T08:14:57
| 2014-09-25T08:14:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,815
|
java
|
package cn.hofan.email.dao;
import java.math.BigDecimal;
import java.util.List;
import cn.hofan.email.entity.EmailArchiveConfig;
public interface EmailArchiveConfigDao{
/**
* 根据主键查询对象
* @param clazz
* @param id
* @return
* @throws Exception
*/
public EmailArchiveConfig get(int id) throws Exception;
/**
* 保存对象
* @param e
* @return
* @throws Exception
*/
public int insert(EmailArchiveConfig e) throws Exception;
/**
* 更新对象
* @param e
* @return
* @throws Exception
*/
public int update(EmailArchiveConfig e) throws Exception;
/**
* 根据主键删除对象,物理删除(*)
* @param clazz
* @param id
* @return
* @throws Exception
*/
public int delete(int id) throws Exception;
/**
* 查询列表
* @param clazz
* @param columns
* @param condition
* @param params
* @param orderBy
* @return
* @throws Exception
*/
public List<EmailArchiveConfig> find(String columns, String condition, Object[] params, String orderBy) throws Exception;
/**
* 查询分页列表
* @param clazz
* @param columns
* @param condition
* @param params
* @param pageIndex
* @param pageSize
* @param orderBy
* @return
* @throws Exception
*/
public List<EmailArchiveConfig> findForPage(String columns,String condition, Object[] params, int pageIndex, int pageSize, String orderBy) throws Exception;
/**
* sum字段
* @param clazz
* @param column
* @param condition
* @return
* @throws Exception
*/
public BigDecimal sum(String column, String condition,Object[] params) throws Exception;
/**
* count表
* @param clazz
* @param condition
* @param params
* @return
* @throws Exception
*/
public int count(String condition,Object[] params) throws Exception;
}
|
[
"geniuslizhao@gmail.com"
] |
geniuslizhao@gmail.com
|
33ad8e593876e51b5f9c4e7b110750cb462100ae
|
a82ffa9487703b15ed9af9d8e791129c24b3e6a2
|
/3.JavaMultithreading/src/com/javarush/task/task32/task3209/Controller.java
|
fe7545affea04372895bbeff1b6902fed2905c63
|
[] |
no_license
|
dinikoff/JavaRushTasks
|
53d9b31acfdd154d847045debb410297e848ac7a
|
d7ecd4b0ec6acdb93c33301aa738138e4ce3ca8f
|
refs/heads/master
| 2020-03-20T11:16:57.260238
| 2018-10-31T19:01:27
| 2018-10-31T19:01:27
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,706
|
java
|
package com.javarush.task.task32.task3209;
import javax.swing.*;
import javax.swing.text.BadLocationException;
import javax.swing.text.html.HTMLDocument;
import javax.swing.text.html.HTMLEditorKit;
import java.io.*;
import java.nio.file.Files;
import java.util.concurrent.ExecutionException;
public class Controller {
private View view;
private HTMLDocument document;
private File currentFile;
public Controller(View view) {
this.view = view;
}
public void createNewDocument() {
view.selectHtmlTab();
resetDocument();
view.setTitle("HTML редактор");
view.resetUndo();
currentFile = null;
}
public void openDocument() {
view.selectHtmlTab();
JFileChooser fileChooser = new JFileChooser();
if (fileChooser.showOpenDialog(view) == JFileChooser.APPROVE_OPTION) {
fileChooser.setFileFilter(new HTMLFileFilter());
currentFile = fileChooser.getSelectedFile();
resetDocument();
view.setTitle(currentFile.getName());
try {
FileReader fileReader = new FileReader(currentFile);
HTMLEditorKit htmlEditorKit = new HTMLEditorKit();
htmlEditorKit.read(fileReader, document, 0);
view.resetUndo();
} catch (FileNotFoundException e) {
ExceptionHandler.log(e);
} catch (IOException e) {
ExceptionHandler.log(e);
} catch (BadLocationException e) {
ExceptionHandler.log(e);
}
}
}
public void saveDocument() {
view.selectHtmlTab();
if (currentFile == null) saveDocumentAs();
else {
view.setTitle(currentFile.getName());
try {
FileWriter fileWriter = new FileWriter(currentFile);
HTMLEditorKit htmlEditorKit = new HTMLEditorKit();
htmlEditorKit.write(fileWriter, document, 0, document.getLength());
} catch (IOException e) {
ExceptionHandler.log(e);
} catch (BadLocationException e) {
ExceptionHandler.log(e);
}
}
}
public void saveDocumentAs() {
view.selectHtmlTab();
JFileChooser fileChooser = new JFileChooser();
if (fileChooser.showSaveDialog(view) == JFileChooser.APPROVE_OPTION) {
fileChooser.setFileFilter(new HTMLFileFilter());
currentFile = fileChooser.getSelectedFile();
view.setTitle(currentFile.getName());
try {
FileWriter fileWriter = new FileWriter(currentFile);
HTMLEditorKit htmlEditorKit = new HTMLEditorKit();
htmlEditorKit.write(fileWriter, document, 0, document.getLength());
} catch (IOException e) {
ExceptionHandler.log(e);
} catch (BadLocationException e) {
ExceptionHandler.log(e);
}
}
}
public static void main(String[] args) {
View view = new View();
Controller controller = new Controller(view);
view.setController(controller);
view.init();
controller.init();
}
public void init() {
createNewDocument();
}
public void exit(){
System.exit(0);
}
public void resetDocument() {
if (document != null) {
document.removeUndoableEditListener(view.getUndoListener());
}
HTMLEditorKit htmlEditorKit = new HTMLEditorKit();
document = (HTMLDocument) htmlEditorKit.createDefaultDocument();
document.addUndoableEditListener(view.getUndoListener());
view.update();
}
public void setPlainText(String text) {
resetDocument();
StringReader stringReader = new StringReader(text);
HTMLEditorKit htmlEditorKit = new HTMLEditorKit();
try {
htmlEditorKit.read(stringReader, document, 0);
} catch (IOException e) {
ExceptionHandler.log(e);
} catch (BadLocationException e) {
ExceptionHandler.log(e);
}
}
public String getPlainText() {
StringWriter stringWriter = new StringWriter();
HTMLEditorKit htmlEditorKit = new HTMLEditorKit();
try {
htmlEditorKit.write(stringWriter, document, 0, document.getLength());
} catch (IOException e) {
ExceptionHandler.log(e);
} catch (BadLocationException e) {
ExceptionHandler.log(e);
}
return stringWriter.toString();
}
public HTMLDocument getDocument() {
return document;
}
}
|
[
"zarazablin@gmail.com"
] |
zarazablin@gmail.com
|
2a3607b6d13ad500908152b40ad735e94e3eff4f
|
eb31160e5915c422860267acbd1dcb3c3743c09c
|
/jOOQ-test/src/org/jooq/test/ingres/generatedclasses/tables/T_639NumbersTable.java
|
952011fa6a3beb91cabf83e9d8072d08deb96cbb
|
[
"Apache-2.0",
"BSD-3-Clause"
] |
permissive
|
digulla/jOOQ
|
b75b43c2e15b4e46d3412aca9d08d65c240c94f3
|
6c3334d5b73749a2045ae038e71a0003ba5f6139
|
refs/heads/master
| 2022-06-20T17:34:48.041188
| 2022-06-04T21:52:39
| 2022-06-04T21:52:39
| 4,752,073
| 0
| 0
|
NOASSERTION
| 2022-06-04T21:52:40
| 2012-06-22T14:36:17
|
Java
|
UTF-8
|
Java
| false
| false
| 5,090
|
java
|
/**
* This class is generated by jOOQ
*/
package org.jooq.test.ingres.generatedclasses.tables;
/**
* This class is generated by jOOQ.
*/
public class T_639NumbersTable extends org.jooq.impl.UpdatableTableImpl<org.jooq.test.ingres.generatedclasses.tables.records.T_639NumbersTableRecord> {
private static final long serialVersionUID = 363101000;
/**
* The singleton instance of test.t_639_numbers_table
*/
public static final org.jooq.test.ingres.generatedclasses.tables.T_639NumbersTable T_639_NUMBERS_TABLE = new org.jooq.test.ingres.generatedclasses.tables.T_639NumbersTable();
/**
* The class holding records for this type
*/
@Override
public java.lang.Class<org.jooq.test.ingres.generatedclasses.tables.records.T_639NumbersTableRecord> getRecordType() {
return org.jooq.test.ingres.generatedclasses.tables.records.T_639NumbersTableRecord.class;
}
/**
* An uncommented item
*
* PRIMARY KEY
*/
public static final org.jooq.TableField<org.jooq.test.ingres.generatedclasses.tables.records.T_639NumbersTableRecord, java.lang.Integer> ID = createField("id", org.jooq.impl.SQLDataType.INTEGER, T_639_NUMBERS_TABLE);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.test.ingres.generatedclasses.tables.records.T_639NumbersTableRecord, java.lang.Byte> BYTE = createField("byte", org.jooq.impl.SQLDataType.TINYINT, T_639_NUMBERS_TABLE);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.test.ingres.generatedclasses.tables.records.T_639NumbersTableRecord, java.lang.Short> SHORT = createField("short", org.jooq.impl.SQLDataType.SMALLINT, T_639_NUMBERS_TABLE);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.test.ingres.generatedclasses.tables.records.T_639NumbersTableRecord, java.lang.Integer> INTEGER = createField("integer", org.jooq.impl.SQLDataType.INTEGER, T_639_NUMBERS_TABLE);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.test.ingres.generatedclasses.tables.records.T_639NumbersTableRecord, java.lang.Long> LONG = createField("long", org.jooq.impl.SQLDataType.BIGINT, T_639_NUMBERS_TABLE);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.test.ingres.generatedclasses.tables.records.T_639NumbersTableRecord, java.lang.Byte> BYTE_DECIMAL = createField("byte_decimal", org.jooq.impl.SQLDataType.TINYINT, T_639_NUMBERS_TABLE);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.test.ingres.generatedclasses.tables.records.T_639NumbersTableRecord, java.lang.Short> SHORT_DECIMAL = createField("short_decimal", org.jooq.impl.SQLDataType.SMALLINT, T_639_NUMBERS_TABLE);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.test.ingres.generatedclasses.tables.records.T_639NumbersTableRecord, java.lang.Integer> INTEGER_DECIMAL = createField("integer_decimal", org.jooq.impl.SQLDataType.INTEGER, T_639_NUMBERS_TABLE);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.test.ingres.generatedclasses.tables.records.T_639NumbersTableRecord, java.lang.Long> LONG_DECIMAL = createField("long_decimal", org.jooq.impl.SQLDataType.BIGINT, T_639_NUMBERS_TABLE);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.test.ingres.generatedclasses.tables.records.T_639NumbersTableRecord, java.math.BigInteger> BIG_INTEGER = createField("big_integer", org.jooq.impl.SQLDataType.DECIMAL_INTEGER, T_639_NUMBERS_TABLE);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.test.ingres.generatedclasses.tables.records.T_639NumbersTableRecord, java.math.BigDecimal> BIG_DECIMAL = createField("big_decimal", org.jooq.impl.SQLDataType.DECIMAL, T_639_NUMBERS_TABLE);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.test.ingres.generatedclasses.tables.records.T_639NumbersTableRecord, java.lang.Float> FLOAT = createField("float", org.jooq.impl.SQLDataType.REAL, T_639_NUMBERS_TABLE);
/**
* An uncommented item
*/
public static final org.jooq.TableField<org.jooq.test.ingres.generatedclasses.tables.records.T_639NumbersTableRecord, java.lang.Double> DOUBLE = createField("double", org.jooq.impl.SQLDataType.DOUBLE, T_639_NUMBERS_TABLE);
/**
* No further instances allowed
*/
private T_639NumbersTable() {
super("t_639_numbers_table", org.jooq.test.ingres.generatedclasses.Test.TEST);
}
@Override
public org.jooq.UniqueKey<org.jooq.test.ingres.generatedclasses.tables.records.T_639NumbersTableRecord> getMainKey() {
return org.jooq.test.ingres.generatedclasses.Keys.PK_T_639_NUMBERS_TABLE;
}
@Override
@SuppressWarnings("unchecked")
public java.util.List<org.jooq.UniqueKey<org.jooq.test.ingres.generatedclasses.tables.records.T_639NumbersTableRecord>> getKeys() {
return java.util.Arrays.<org.jooq.UniqueKey<org.jooq.test.ingres.generatedclasses.tables.records.T_639NumbersTableRecord>>asList(org.jooq.test.ingres.generatedclasses.Keys.PK_T_639_NUMBERS_TABLE);
}
}
|
[
"lukas.eder@gmail.com"
] |
lukas.eder@gmail.com
|
9d2981818abc25097f8d4f4a43a1cbc19d7196e5
|
73b5d880fa06943c20ff0a9aee9d0c1d1eeebe10
|
/tinyos-1.x/contrib/minitasks/03/ucb/plugins/LeaderElectionPlugin.java
|
b8bb1cec1ad0c6baaaba4e419451a459ffc1f889
|
[
"Intel"
] |
permissive
|
x3ro/tinyos-legacy
|
101d19f9e639f5a9d59d3edd4ed04b1f53221e63
|
cdc0e7ba1cac505fcace33b974b2e0aca1ccc56a
|
refs/heads/master
| 2021-01-16T19:20:21.744228
| 2015-06-30T20:23:05
| 2015-06-30T20:23:05
| 38,358,728
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,652
|
java
|
/* This plugin sets the rssi value of each mote based on their
* locations in the mote window. Motes can read their rssi values from the
* ADC, using ADC Channel PORT_RSSI (Defined below).
*/
import java.lang.*;
import java.util.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import net.tinyos.message.*;
import net.tinyos.sim.*;
import net.tinyos.sim.plugins.CalamariPlugin;
import net.tinyos.sim.plugins.DirectedGraphPlugin;
import net.tinyos.sim.event.*;
import net.tinyos.matlab.*;
public class LeaderElectionPlugin extends Plugin implements SimConst {
/* Mapping from coordinate axis to location ADC value */
Vector leaders = new Vector();
public void handleEvent(SimEvent event) {
if (event instanceof TossimInitEvent) {
Enumeration enum = leaders.elements();
while (enum.hasMoreElements()) {
Leader leader = (Leader) enum.nextElement();
// if(leader.mover.isRegistered()){
Iterator moteI= state.getMoteSimObjects().iterator();
while(moteI.hasNext()){
MoteSimObject mote=(MoteSimObject)moteI.next();
if(mote!=null){
simComm.sendCommand(new SetADCPortValueCommand((short) mote.getID(), 0L, leader.mover.getLeaderAdcChannel(), 0));
}
}
// }
leader.leaderID=-1;
}
return;
}
Enumeration enum = leaders.elements();
double x,y,dist,minDist;
MoteCoordinateAttribute coord;
Iterator moteIterator;
int closest,i;
while (enum.hasMoreElements()) {
Leader leader = (Leader) enum.nextElement();
minDist = Double.MAX_VALUE;
closest=-1;
moteIterator = state.getMoteSimObjects().iterator();
if(leader.mover.isRegistered()){
x = leader.mover.getXPosition();
y = leader.mover.getYPosition();
while(moteIterator.hasNext()){
MoteSimObject mote=(MoteSimObject)moteIterator.next();
coord = mote.getCoordinate();
dist=Math.sqrt( Math.pow(x-coord.getX(),2) + Math.pow(y-coord.getY(),2));
if(dist<minDist){
closest=mote.getID();
minDist=dist;
}
}
if(closest != leader.leaderID){
if(leader.leaderID!=-1)
simComm.sendCommand(new SetADCPortValueCommand((short) leader.leaderID, 0L, leader.mover.getLeaderAdcChannel(), 0));
simComm.sendCommand(new SetADCPortValueCommand((short) closest, 0L, leader.mover.getLeaderAdcChannel(), 1));
leader.leaderID=closest;
}
}
else
leader.leaderID=-1;
}
}
public void register() {
JTextArea ta = new JTextArea(2, 50);
ta.setFont(tv.defaultFont);
ta.setEditable(false);
ta.setBackground(Color.lightGray);
ta.setLineWrap(true);
ta.setText("This plugin will choose leaders as determined by the motion plugins that you enable.");
pluginPanel.add(ta);
Plugin plugins[] = tv.getPluginPanel().plugins();
for(int i=0;i<plugins.length;i++){
if(plugins[i] instanceof MotionPlugin){
registerLeader((MotionPlugin)plugins[i]);
}
}
}
public void deregister
() {
}
public void draw(Graphics graphics) {
Enumeration enum = leaders.elements();
while (enum.hasMoreElements()) {
Leader leader = (Leader) enum.nextElement();
MoteSimObject mote = state.getMoteSimObject(leader.leaderID);
if (mote == null) continue;
MoteCoordinateAttribute coord = mote.getCoordinate();
graphics.setColor(leader.mover.getColor());
graphics.drawOval((int) cT.simXToGUIX(coord.getX()) - 10, (int) cT.simYToGUIY(coord.getY()) - 10, 20, 20);
graphics.drawOval((int) cT.simXToGUIX(coord.getX()) - 9, (int) cT.simYToGUIY(coord.getY()) - 9, 18, 18);
graphics.drawOval((int) cT.simXToGUIX(coord.getX()) - 8, (int) cT.simYToGUIY(coord.getY()) - 8, 16, 16);
}
}
public String toString
() {
return "Leader Election";
}
public void registerLeader(MotionPlugin mover){
leaders.add(new Leader(mover));
}
class Leader {
MotionPlugin mover;
int leaderID;
public Leader(MotionPlugin Mover){
mover=Mover;
leaderID=-1;
}
}
}
|
[
"lucas@x3ro.de"
] |
lucas@x3ro.de
|
9eb08654e2e03e7121d05fbe18521660bb9c8f56
|
1a83a3737292b48cd16158d2aa6a8389d6c4f38e
|
/bin/platform/ext/core/testsrc/de/hybris/platform/persistence/MyTestUser.java
|
4007fda3ec4e93f8f0bec3797ff1947f645d4a11
|
[] |
no_license
|
NathanKun/Hybris123
|
026803ba53302a1e56f2e4c79dec33948021d24c
|
7b52d802856bd265403548924f40cff1ed8d9658
|
refs/heads/master
| 2021-01-25T00:48:23.674949
| 2018-03-01T10:41:30
| 2018-03-01T10:41:30
| 123,303,717
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,022
|
java
|
/*
* [y] hybris Platform
*
* Copyright (c) 2017 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* license agreement you entered into with SAP.
*/
package de.hybris.platform.persistence;
import de.hybris.platform.jalo.Item;
import de.hybris.platform.jalo.JaloBusinessException;
import de.hybris.platform.jalo.SessionContext;
import de.hybris.platform.jalo.type.ComposedType;
import de.hybris.platform.jalo.user.User;
public class MyTestUser extends User
{
@Override
protected Item createItem(final SessionContext ctx, final ComposedType type, final ItemAttributeMap allAttributes)
throws JaloBusinessException
{
allAttributes.setAttributeMode(InitialAttributePersistenceTest.ATTRIBUTE_NAME, AttributeMode.INITIAL);
return super.createItem(ctx, type, allAttributes);
}
}
|
[
"nathanhejunyang@gmail.com"
] |
nathanhejunyang@gmail.com
|
e33edfd081d3336de6a0793aa04e378534dba806
|
b844043af2a13e24c9a322dbb4afc51af7cf8dcc
|
/ib-terminal-api/src/main/java/com/henyep/ib/terminal/api/dto/request/schedule/task/RunScheduleTaskRequestDto.java
|
bb81673b75fffa34dfac56fff38c15b9424465c0
|
[] |
no_license
|
oscarYeung/ib_terminal
|
37b372ab9d33f4b029ee9a02bc519c0cc7e31c38
|
c83e464752e45aa356f1aad24ed2f2f5066b2e90
|
refs/heads/master
| 2022-12-24T04:49:03.603352
| 2019-12-11T04:09:26
| 2019-12-11T04:09:26
| 218,199,664
| 1
| 2
| null | 2022-12-16T09:45:08
| 2019-10-29T03:49:19
|
Java
|
UTF-8
|
Java
| false
| false
| 609
|
java
|
package com.henyep.ib.terminal.api.dto.request.schedule.task;
import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.henyep.ib.terminal.api.global.Constants;
public class RunScheduleTaskRequestDto implements Serializable{
private static final long serialVersionUID = 5803955032637714834L;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern=Constants.FORMAT_DATETIME)
private Date trade_date;
public Date getTrade_date() {
return trade_date;
}
public void setTrade_date(Date trade_date) {
this.trade_date = trade_date;
}
}
|
[
"oscar.yeung@gmail.com"
] |
oscar.yeung@gmail.com
|
39beb444b0d67cd0c867ac5cd6bdb4b4b7a9456a
|
ab38746e32cd56f84f18ba75fafbd9bf73b4e999
|
/app/src/main/java/p012ch/qos/logback/classic/net/SyslogAppender.java
|
c476f9283dd40e4a11c8ff50f91342cbf640c77c
|
[] |
no_license
|
jack15177089002/mybcz_5_0_1
|
8c51a9785713046dc8ffffeff0bf8257d2af9013
|
ab47049b95ab69fe62ff5fd093d2204e00506bd5
|
refs/heads/master
| 2021-03-15T09:01:29.235028
| 2020-03-12T13:20:06
| 2020-03-12T13:20:06
| 246,839,031
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,643
|
java
|
package p012ch.qos.logback.classic.net;
import java.io.IOException;
import java.io.OutputStream;
import p012ch.qos.logback.classic.PatternLayout;
import p012ch.qos.logback.classic.pattern.SyslogStartConverter;
import p012ch.qos.logback.classic.spi.ILoggingEvent;
import p012ch.qos.logback.classic.spi.IThrowableProxy;
import p012ch.qos.logback.classic.spi.StackTraceElementProxy;
import p012ch.qos.logback.classic.util.LevelToSyslogSeverity;
import p012ch.qos.logback.core.CoreConstants;
import p012ch.qos.logback.core.Layout;
import p012ch.qos.logback.core.net.SyslogAppenderBase;
/* renamed from: ch.qos.logback.classic.net.SyslogAppender */
public class SyslogAppender extends SyslogAppenderBase<ILoggingEvent> {
public static final String DEFAULT_STACKTRACE_PATTERN = "\t";
public static final String DEFAULT_SUFFIX_PATTERN = "[%thread] %logger %msg";
PatternLayout stackTraceLayout = new PatternLayout();
String stackTracePattern = DEFAULT_STACKTRACE_PATTERN;
boolean throwableExcluded = false;
public void start() {
super.start();
setupStackTraceLayout();
}
/* access modifiers changed from: 0000 */
public String getPrefixPattern() {
return "%syslogStart{" + getFacility() + "}%nopex{}";
}
public int getSeverityForEvent(Object obj) {
return LevelToSyslogSeverity.convert((ILoggingEvent) obj);
}
/* access modifiers changed from: protected */
public void postProcess(Object obj, OutputStream outputStream) {
if (!this.throwableExcluded) {
ILoggingEvent iLoggingEvent = (ILoggingEvent) obj;
IThrowableProxy throwableProxy = iLoggingEvent.getThrowableProxy();
if (throwableProxy != null) {
String doLayout = this.stackTraceLayout.doLayout(iLoggingEvent);
boolean z = true;
while (throwableProxy != null) {
StackTraceElementProxy[] stackTraceElementProxyArray = throwableProxy.getStackTraceElementProxyArray();
try {
handleThrowableFirstLine(outputStream, throwableProxy, doLayout, z);
for (StackTraceElementProxy stackTraceElementProxy : stackTraceElementProxyArray) {
StringBuilder sb = new StringBuilder();
sb.append(doLayout).append(stackTraceElementProxy);
outputStream.write(sb.toString().getBytes());
outputStream.flush();
}
throwableProxy = throwableProxy.getCause();
z = false;
} catch (IOException e) {
return;
}
}
}
}
}
private void handleThrowableFirstLine(OutputStream outputStream, IThrowableProxy iThrowableProxy, String str, boolean z) {
StringBuilder append = new StringBuilder().append(str);
if (!z) {
append.append(CoreConstants.CAUSED_BY);
}
append.append(iThrowableProxy.getClassName()).append(": ").append(iThrowableProxy.getMessage());
outputStream.write(append.toString().getBytes());
outputStream.flush();
}
/* access modifiers changed from: 0000 */
public boolean stackTraceHeaderLine(StringBuilder sb, boolean z) {
return false;
}
public Layout<ILoggingEvent> buildLayout() {
PatternLayout patternLayout = new PatternLayout();
patternLayout.getInstanceConverterMap().put("syslogStart", SyslogStartConverter.class.getName());
if (this.suffixPattern == null) {
this.suffixPattern = DEFAULT_SUFFIX_PATTERN;
}
patternLayout.setPattern(getPrefixPattern() + this.suffixPattern);
patternLayout.setContext(getContext());
patternLayout.start();
return patternLayout;
}
private void setupStackTraceLayout() {
this.stackTraceLayout.getInstanceConverterMap().put("syslogStart", SyslogStartConverter.class.getName());
this.stackTraceLayout.setPattern(getPrefixPattern() + this.stackTracePattern);
this.stackTraceLayout.setContext(getContext());
this.stackTraceLayout.start();
}
public boolean isThrowableExcluded() {
return this.throwableExcluded;
}
public void setThrowableExcluded(boolean z) {
this.throwableExcluded = z;
}
public String getStackTracePattern() {
return this.stackTracePattern;
}
public void setStackTracePattern(String str) {
this.stackTracePattern = str;
}
}
|
[
"3167289375@qq.com"
] |
3167289375@qq.com
|
2328efb2b5fb5d3417966a31dac9a9bc3fbada30
|
d6e998009c764149ccbb10454ee545bf6a14264e
|
/src/com/sun/org/apache/xml/internal/utils/Hashtree2Node.java
|
864c883f5863fc3b626a41aaf8b6f7e171ec5aa8
|
[] |
no_license
|
DierMeng/JDK8-Source-Chinese-Comments
|
23bded49355daf5439bdf4376ba5b69ce4bd0c23
|
e51336f82878dfa4084eaff3f18cf066d7055e21
|
refs/heads/master
| 2022-05-11T08:37:07.968017
| 2022-03-20T14:15:34
| 2022-03-20T14:15:34
| 242,528,069
| 6
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,053
|
java
|
/*
* Copyright (c) 2007, 2019, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/*
* Copyright 2002-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id: Hashtree2Node.java,v 1.2.4.1 2005/09/15 08:15:45 suresh_emailid Exp $
*/
package com.sun.org.apache.xml.internal.utils;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
/**
* Simple static utility to convert Hashtable to a Node.
*
* Please maintain JDK 1.1.x compatibility; no Collections!
*
* @see com.sun.org.apache.xalan.internal.xslt.EnvironmentCheck
* @see com.sun.org.apache.xalan.internal.lib.Extensions
* @author shane_curcuru@us.ibm.com
* @xsl.usage general
*/
public abstract class Hashtree2Node
{
/**
* Convert a Hashtable into a Node tree.
*
* <p>The hash may have either Hashtables as values (in which
* case we recurse) or other values, in which case we print them
* as <item> elements, with a 'key' attribute with the value
* of the key, and the element contents as the value.</p>
*
* <p>If args are null we simply return without doing anything.
* If we encounter an error, we will attempt to add an 'ERROR'
* Element with exception info; if that doesn't work we simply
* return without doing anything else byt printStackTrace().</p>
*
* @param hash to get info from (may have sub-hashtables)
* @param name to use as parent element for appended node
* futurework could have namespace and prefix as well
* @param container Node to append our report to
* @param factory Document providing createElement, etc. services
*/
public static void appendHashToNode(Hashtable hash, String name,
Node container, Document factory)
{
// Required arguments must not be null
if ((null == container) || (null == factory) || (null == hash))
{
return;
}
// name we will provide a default value for
String elemName = null;
if ((null == name) || ("".equals(name)))
elemName = "appendHashToNode";
else
elemName = name;
try
{
Element hashNode = factory.createElement(elemName);
container.appendChild(hashNode);
Enumeration keys = hash.keys();
Vector v = new Vector();
while (keys.hasMoreElements())
{
Object key = keys.nextElement();
String keyStr = key.toString();
Object item = hash.get(key);
if (item instanceof Hashtable)
{
// Ensure a pre-order traversal; add this hashes
// items before recursing to child hashes
// Save name and hash in two steps
v.addElement(keyStr);
v.addElement((Hashtable) item);
}
else
{
try
{
// Add item to node
Element node = factory.createElement("item");
node.setAttribute("key", keyStr);
node.appendChild(factory.createTextNode((String)item));
hashNode.appendChild(node);
}
catch (Exception e)
{
Element node = factory.createElement("item");
node.setAttribute("key", keyStr);
node.appendChild(factory.createTextNode("ERROR: Reading " + key + " threw: " + e.toString()));
hashNode.appendChild(node);
}
}
}
// Now go back and do the saved hashes
keys = v.elements();
while (keys.hasMoreElements())
{
// Retrieve name and hash in two steps
String n = (String) keys.nextElement();
Hashtable h = (Hashtable) keys.nextElement();
appendHashToNode(h, n, hashNode, factory);
}
}
catch (Exception e2)
{
// Ooops, just bail (suggestions for a safe thing
// to do in this case appreciated)
e2.printStackTrace();
}
}
}
|
[
"1375057013@qq.com"
] |
1375057013@qq.com
|
4ce4c2bb8000fa4bf8f70fede529cb9f38faf35b
|
10b8ef098ebff7a0639c804d9b1e480324a14217
|
/src/main/java/ftb/lib/mod/net/FTBLibNetHandler.java
|
0805b9f857a171df83c73e82acb141a9b1819a87
|
[] |
no_license
|
mezz/FTBLib
|
a8ee561ca1db6df122ecf7fa2d9ca654392d3d34
|
b1c6855a01b16b0eba9ab3b5077ea32a3fc4a562
|
refs/heads/1.8.9
| 2020-04-04T22:53:57.257965
| 2016-01-17T21:51:45
| 2016-01-17T21:51:45
| 49,836,513
| 1
| 0
| null | 2016-01-17T21:30:47
| 2016-01-17T21:30:45
| null |
UTF-8
|
Java
| false
| false
| 1,009
|
java
|
package ftb.lib.mod.net;
import ftb.lib.api.net.LMNetworkWrapper;
import net.minecraftforge.fml.relauncher.Side;
public class FTBLibNetHandler
{
static final LMNetworkWrapper NET = LMNetworkWrapper.newWrapper("FTBL");
static final LMNetworkWrapper NET_GUI = LMNetworkWrapper.newWrapper("FTBLG");
public static void init()
{
NET.register(MessageSendWorldID.class, 1, Side.CLIENT);
//NET.register(MessageSendGameMode.class, 2, Side.CLIENT);
//NET.register(MessageSyncConfig.class, 3, Side.CLIENT);
NET.register(MessageReload.class, 4, Side.CLIENT);
NET.register(MessageEditConfig.class, 5, Side.CLIENT);
NET.register(MessageEditConfigResponse.class, 6, Side.SERVER);
NET_GUI.register(MessageOpenGui.class, 1, Side.CLIENT);
NET_GUI.register(MessageOpenGuiTile.class, 2, Side.CLIENT);
NET_GUI.register(MessageClientTileAction.class, 3, Side.SERVER);
NET_GUI.register(MessageClientItemAction.class, 4, Side.SERVER);
NET_GUI.register(MessageNotifyPlayer.class, 5, Side.CLIENT);
}
}
|
[
"latvianmodder@gmail.com"
] |
latvianmodder@gmail.com
|
9e82fc7c1f023720f29c2503bdda1e542d7b5b5b
|
f7fbc015359f7e2a7bae421918636b608ea4cef6
|
/base-one/tags/hsqldb_1_8_0_RC8/src/org/hsqldb/DatabaseObjectNames.java
|
9cc5f62712c33a2db0379c6ef4f3069484602911
|
[] |
no_license
|
svn2github/hsqldb
|
cdb363112cbdb9924c816811577586f0bf8aba90
|
52c703b4d54483899d834b1c23c1de7173558458
|
refs/heads/master
| 2023-09-03T10:33:34.963710
| 2019-01-18T23:07:40
| 2019-01-18T23:07:40
| 155,365,089
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,330
|
java
|
/* Copyright (c) 2001-2005, The HSQL Development Group
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of the HSQL Development Group nor the names of its
* contributors may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL HSQL DEVELOPMENT GROUP, HSQLDB.ORG,
* OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.hsqldb;
import org.hsqldb.lib.HashMap;
import org.hsqldb.lib.Iterator;
import org.hsqldb.HsqlNameManager.HsqlName;
/**
* Transitional container for object names that are unique across the
* DB instance but are owned by different DB objects. Currently names for
* Index and Trigger objects.
* @author fredt@users
* @version 1.7.2
* @since 1.7.2
*/
class DatabaseObjectNames {
HashMap nameList = new HashMap();
DatabaseObjectNames() {}
boolean containsName(String name) {
return nameList.containsKey(name);
}
HsqlName getOwner(String name) {
return (HsqlName) nameList.get(name);
}
void addName(String name, HsqlName owner,
int errorcode) throws HsqlException {
// should not contain name
if (containsName(name)) {
throw Trace.error(errorcode, name);
}
nameList.put(name, owner);
}
void rename(String name, String newname,
int errorcode) throws HsqlException {
HsqlName owner = (HsqlName) nameList.get(name);
addName(newname, owner, errorcode);
nameList.remove(name);
}
Object removeName(String name) throws HsqlException {
Object owner = nameList.remove(name);
if (owner == null) {
// should contain name
throw Trace.error(Trace.GENERAL_ERROR);
}
return owner;
}
void removeOwner(HsqlName owner) {
Iterator it = nameList.values().iterator();
while (it.hasNext()) {
Object currentvalue = it.next();
if (owner.equals(currentvalue)) {
it.remove();
}
}
}
}
|
[
"(no author)@7c7dc5f5-a22d-0410-a3af-b41755a11667"
] |
(no author)@7c7dc5f5-a22d-0410-a3af-b41755a11667
|
0a2a6bdabb85fb3674356557a0822236be570bdb
|
ec9b1c2bbf49885c5184286eb09bb1b921b94a7e
|
/Java Programming/Deel 2/W4 - Exception Handling/Oefeningen/Oplossingen/Fibonacci/src/be/kdg/fibonacci/FibonacciException.java
|
6ec41479c5121b4e0fd09b556bfb7c80e3985e25
|
[] |
no_license
|
gvdhaege/KdG
|
a7c46973be303162c85383fe5eaa2d74fda12b0a
|
9fdec9800fdcd0773340472bc5d711bfe73be3e4
|
refs/heads/master
| 2020-03-27T17:44:10.149815
| 2018-05-25T09:52:42
| 2018-05-25T09:52:42
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 405
|
java
|
package be.kdg.fibonacci;
/**
* @author Kristiaan Behiels
* @version 1.0 16/11/13
*/
public class FibonacciException extends ArithmeticException {
public FibonacciException(int n) {
if (n < 0) {
System.out.println("Negatieve waarden zijn uitgesloten!");
} else {
System.out.println("De maximale waarde voor type long werd overschreden!");
}
}
}
|
[
"steven.excelmans@cegeka.com"
] |
steven.excelmans@cegeka.com
|
aecccac929fa02a21a248e2cadb930e8379a1663
|
586ebcb97bb05325d8eeab7a431295c94a3ed3de
|
/src/main/java/com/cqs/security/role/service/RoleService.java
|
c132712d0396f2a91415c06810f0eff3de2b884b
|
[] |
no_license
|
lixwcqs/demo2
|
9e5696abb937f231cc463a4a28822a944d254fc5
|
82771a0059d3b9aeff86c1d5cad74e68f0bb4da9
|
refs/heads/master
| 2020-12-03T10:14:12.701724
| 2016-09-01T15:53:23
| 2016-09-01T15:53:23
| 67,145,244
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 479
|
java
|
package com.cqs.security.role.service;
import com.cqs.common.base.BaseService;
import com.cqs.security.role.dao.RoleDao;
import com.cqs.security.role.model.Role;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
/**
* Created by li on 2016/1/8.
*/
@Service
@Transactional
public class RoleService extends BaseService<Role,String> {
@Resource
private RoleDao roleDao;
}
|
[
"lixwcqs@163.com"
] |
lixwcqs@163.com
|
35702b30b2de2028915a3641aede446bb10882b6
|
389b0a734efadf26d0f239ca2ad3e340937ed2e6
|
/src/test/java/my/examples/scott/repository/EmployeeRepositoryTest.java
|
1a9dac581260fe8e181975d0ea37f83a986273da
|
[] |
no_license
|
MyungSinKim/scott
|
42dee82ddf8deb9cb62cd7e86cce693557f1d2e6
|
a8b3bb4f096114038ca2ca8a4b28d9002877a190
|
refs/heads/master
| 2020-04-26T22:04:54.614948
| 2019-01-26T07:07:37
| 2019-01-26T07:07:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,106
|
java
|
package my.examples.scott.repository;
import com.querydsl.core.Tuple;
import my.examples.scott.domain.Employee;
import my.examples.scott.dto.NameAndGrade;
import my.examples.scott.dto.NameAndSalary;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.transaction.annotation.Transactional;
import javax.persistence.TupleElement;
import java.util.List;
import java.util.Optional;
@RunWith(SpringRunner.class)
@DataJpaTest
@AutoConfigureTestDatabase(replace = AutoConfigureTestDatabase.Replace.NONE)
public class EmployeeRepositoryTest {
@Autowired
EmployeeRepository employeeRepository;
@Test
public void getEmployeeById(){
Employee employee = employeeRepository.getEmployeeById(7369);
System.out.println(employee.getEmpno() + "," + employee.getDepartment().getDeptno() );
if(employee.getBoss() != null)
System.out.println(employee.getBoss().getName());
}
@Test
public void getEmployees1(){
List<Employee> employees1 = employeeRepository.getEmployees1();
for(Employee e : employees1){
System.out.println(e.getEmpno() + ": " + e.getName() + ": " + e.getDepartment().getName());
}
}
@Test
public void getAlls() throws Exception{
List<Employee> all = employeeRepository.getEmployees2();
for(Employee employee: all){
System.out.println(employee.getEmpno() + "," + employee.getDepartment().getDeptno() );
if(employee.getBoss() != null)
System.out.println(employee.getBoss().getName());
}
}
@Test
public void getEmployeesOrderBySalPlusComm() throws Exception{
List<Employee> all = employeeRepository.getEmployeesOrderBySalPlusComm();
for(Employee employee: all){
System.out.println(employee.getEmpno() + ", " + employee.getSalary() + ", " + employee.getComm());
}
}
@Test
public void getEnameAndSal() throws Exception{
List<NameAndSalary> all = employeeRepository.getEnameAndSal();
for(NameAndSalary employee: all){
System.out.println(employee.getName() + ", " + employee.getSalary() + ", " + employee.getBonus());
}
}
@Test
public void getEmployeesBySalary() throws Exception{
List<Employee> all = employeeRepository.getEmployeesBySalary();
for(Employee employee: all){
System.out.println(employee.getName() + ", " + employee.getSalary() );
}
}
@Test
public void getNameAndGrade() throws Exception{
List<NameAndGrade> all = employeeRepository.getNameAndGrade();
for(NameAndGrade employee: all){
System.out.println(employee.getName() + ", " + employee.getSalaryGrade());
}
}
@Test
public void findEmployees() throws Exception{
List<Employee> employees = employeeRepository.findEmployees("name", "S"); // KING
for(Employee employee : employees){
System.out.println(employee.getName() + " , " + employee.getSalary() + "," + (employee.getBoss() != null ? employee.getBoss().getName() : ""));
}
System.out.println("-------------------------------------------------");
employees = employeeRepository.findEmployees("department", "ACCOUNTING");
for(Employee employee : employees){
System.out.println(employee.getName() + " , " + employee.getSalary()+ "," + (employee.getBoss() != null ? employee.getBoss().getName() : ""));
}
}
@Test
public void getNameAndGradeByQuerydsl() throws Exception{
List<Tuple> tuples = employeeRepository.getNameAndGradeByQuerydsl();
for(Tuple t : tuples){
System.out.println(t.get(0, String.class) + "," +
t.get(1, Integer.class));
}
}
}
|
[
"urstory@gmail.com"
] |
urstory@gmail.com
|
cfe787962c9d666a9d83bf0148ba3fed218ef50d
|
496d95336933a8fa559ae52fe8521a5d8313f51c
|
/flume-interceptor/src/main/java/com/atguigu/flume/interceptor/LogETLInterceptor.java
|
0d0b3486226bb300f86788440184a7c13e51158c
|
[] |
no_license
|
vincentdk77/dataWarehouse2.0
|
1e3546353c7b61a63d75aa408d1645e8e457fe3f
|
5cca0a974e9b4e63860dcf129b6bd8cee10c5ca8
|
refs/heads/master
| 2023-02-23T17:10:46.745971
| 2021-01-20T08:12:11
| 2021-01-20T08:12:11
| 328,831,999
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,253
|
java
|
package com.atguigu.flume.interceptor;
import org.apache.flume.Context;
import org.apache.flume.Event;
import org.apache.flume.interceptor.Interceptor;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.List;
public class LogETLInterceptor implements Interceptor {
@Override
public void initialize() {
}
@Override
public Event intercept(Event event) {
// 1 获取数据
//事件日志
// 服务器时间 | JSON
// 1549696569054 | {"cm":{"ln":"-89.2","sv":"V2.0.4","os":"8.2.0","g":"M67B4QYU@gmail.com","nw":"4G","l":"en","vc":"18","hw":"1080*1920","ar":"MX","uid":"u8678","t":"1549679122062","la":"-27.4","md":"sumsung-12","vn":"1.1.3","ba":"Sumsung","sr":"Y"},"ap":"weather","et":[]}
//启动日志
//{"action":"1","ar":"MX","ba":"HTC","detail":"542","en":"start","entry":"2","extend1":"","g":"S3HQ7LKM@gmail.com","hw":"640*960","l":"en","la":"-43.4","ln":"-98.3","loading_time":"10","md":"HTC-5","mid":"993","nw":"WIFI","open_ad_type":"1","os":"8.2.1","sr":"D","sv":"V2.9.0","t":"1559551922019","uid":"993","vc":"0","vn":"1.1.5"}
byte[] body = event.getBody();
String log = new String(body, Charset.forName("UTF-8"));
// 2 判断数据是否合法
if (log.contains("start")) {
if (LogUtils.validateStart(log)){
return event;
}
}else {
if (LogUtils.validateEvent(log)){
return event;
}
}
// 3 返回校验结果
return null;
}
@Override
public List<Event> intercept(List<Event> events) {
ArrayList<Event> interceptors = new ArrayList<>();
for (Event event : events) {
Event intercept1 = intercept(event);
if (intercept1 != null){
interceptors.add(intercept1);
}
}
return interceptors;
}
@Override
public void close() {
}
public static class Builder implements Interceptor.Builder{
@Override
public Interceptor build() {
return new LogETLInterceptor();
}
@Override
public void configure(Context context) {
}
}
}
|
[
"26166405+vincentdk77@users.noreply.github.com"
] |
26166405+vincentdk77@users.noreply.github.com
|
c97d97b2ae7508b1141acf86cdf46664e66b7a4d
|
5148293c98b0a27aa223ea157441ac7fa9b5e7a3
|
/Method_Scraping/xml_scraping/NicadOutputFile_t2_flink/Nicad_t2_flink2806.java
|
90b6c214d81bbe40035e315ee6fe1adca891bad5
|
[] |
no_license
|
ryosuke-ku/TestCodeSeacherPlus
|
cfd03a2858b67a05ecf17194213b7c02c5f2caff
|
d002a52251f5461598c7af73925b85a05cea85c6
|
refs/heads/master
| 2020-05-24T01:25:27.000821
| 2019-08-17T06:23:42
| 2019-08-17T06:23:42
| 187,005,399
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 520
|
java
|
// clone pairs:28037:80%
// 44159:flink/flink-connectors/flink-connector-kafka-base/src/main/java/org/apache/flink/streaming/connectors/kafka/internals/KafkaTopicPartition.java
public class Nicad_t2_flink2806
{
public boolean equals(Object o) {
if (this == o) {
return true;
}
else if (o instanceof KafkaTopicPartition) {
KafkaTopicPartition that = (KafkaTopicPartition) o;
return this.partition == that.partition && this.topic.equals(that.topic);
}
else {
return false;
}
}
}
|
[
"naist1020@gmail.com"
] |
naist1020@gmail.com
|
53a1dc79d2557cbebc0541c3b5617bb31e92d294
|
2ef0a2d3d8c03bfde8a091bc24c36fdfcc3c22b2
|
/phloc-html/src/main/java/com/phloc/html/hc/html5/HCFooter.java
|
7baf5317d0e4a9df6d71c2801647002e8b629557
|
[] |
no_license
|
Letractively/phloc-html
|
61042504634ccd31fa579a93c326f7be88fdff66
|
908dc311dfb31c52e5ce12cd9b474ab044c00027
|
refs/heads/master
| 2021-01-10T16:54:50.200250
| 2015-02-02T06:27:31
| 2015-02-02T06:27:31
| 46,106,451
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,020
|
java
|
/**
* Copyright (C) 2006-2014 phloc systems
* http://www.phloc.com
* office[at]phloc[dot]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.phloc.html.hc.html5;
import com.phloc.html.EHTMLElement;
import com.phloc.html.annotations.SinceHTML5;
import com.phloc.html.hc.impl.AbstractHCElementWithChildren;
@SinceHTML5
public class HCFooter extends AbstractHCElementWithChildren <HCFooter>
{
public HCFooter ()
{
super (EHTMLElement.FOOTER);
}
}
|
[
"ph@phloc.com"
] |
ph@phloc.com
|
7f4c838b860b314babeaec8a7b3538b2eaee487f
|
fc6c869ee0228497e41bf357e2803713cdaed63e
|
/weixin6519android1140/src/sourcecode/com/tencent/mm/bw/c.java
|
525dcb35d5e9f87d780c1c06a32896ae2c0d8dac
|
[] |
no_license
|
hyb1234hi/reverse-wechat
|
cbd26658a667b0c498d2a26a403f93dbeb270b72
|
75d3fd35a2c8a0469dbb057cd16bca3b26c7e736
|
refs/heads/master
| 2020-09-26T10:12:47.484174
| 2017-11-16T06:54:20
| 2017-11-16T06:54:20
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,268
|
java
|
package com.tencent.mm.bw;
import android.os.Environment;
import android.os.Process;
import com.tencent.gmtrace.GMTrace;
import com.tencent.mm.a.e;
import com.tencent.mm.a.p;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.am;
import com.tencent.mm.sdk.platformtools.bg;
import com.tencent.mm.sdk.platformtools.w;
import java.io.File;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public final class c
{
public static boolean vFd;
public static a vFe;
static
{
GMTrace.i(13150787207168L, 97981);
vFd = false;
vFe = null;
GMTrace.o(13150787207168L, 97981);
}
public static void AL(int paramInt)
{
GMTrace.i(13150116118528L, 97976);
final boolean bool1;
final boolean bool2;
final boolean bool3;
boolean bool4;
switch (paramInt)
{
default:
bool1 = false;
bool2 = false;
bool3 = false;
bool4 = false;
}
for (;;)
{
w.d("MicroMsg.MemoryDumpOperation", "hprof operate: dump:%b, checkWifi:%b, uploadSingal:%b,uploadAll:%b,", new Object[] { Boolean.valueOf(bool4), Boolean.valueOf(bool3), Boolean.valueOf(bool2), Boolean.valueOf(bool1) });
Executors.newSingleThreadExecutor().execute(new Runnable()
{
public final void run()
{
GMTrace.i(13149847683072L, 97974);
if (c.vFd)
{
w.w("MicroMsg.MemoryDumpOperation", "Hprof is mUploading");
GMTrace.o(13149847683072L, 97974);
return;
}
if (this.vFf) {}
for (String str = b.K(true, false);; str = null)
{
Process.setThreadPriority(10);
boolean bool = am.isWifi(ab.getContext());
if ((bool3) && (!bool))
{
w.w("MicroMsg.MemoryDumpOperation", "Hprof no wifi");
GMTrace.o(13149847683072L, 97974);
return;
}
if ((bool2) && (str != null)) {}
for (;;)
{
c.vFd = true;
c.Va(str);
c.vFd = false;
GMTrace.o(13149847683072L, 97974);
return;
if (bool1) {
str = b.vFc;
} else {
str = null;
}
}
}
}
});
GMTrace.o(13150116118528L, 97976);
return;
w.i("MicroMsg.MemoryDumpOperation", "GC NOW.");
System.gc();
bool1 = false;
bool2 = false;
bool3 = false;
bool4 = false;
continue;
bool1 = false;
bool2 = true;
bool3 = false;
bool4 = true;
continue;
bool1 = false;
bool2 = true;
bool3 = true;
bool4 = true;
continue;
bool1 = false;
bool2 = false;
bool3 = false;
bool4 = true;
continue;
bool1 = true;
bool2 = false;
bool3 = false;
bool4 = false;
continue;
bool1 = true;
bool2 = false;
bool3 = true;
bool4 = false;
}
}
public static void Va(String paramString)
{
GMTrace.i(16087873748992L, 119864);
if (bg.nm(paramString))
{
w.e("MicroMsg.MemoryDumpOperation", "Hprof error uploadPath %s ", new Object[] { paramString });
GMTrace.o(16087873748992L, 119864);
return;
}
if (!ty())
{
w.e("MicroMsg.MemoryDumpOperation", "Hprof sdcard invalid.");
GMTrace.o(16087873748992L, 119864);
return;
}
paramString = new File(paramString);
if (!paramString.exists())
{
w.e("MicroMsg.MemoryDumpOperation", "Hprof upload file is not exist");
GMTrace.o(16087873748992L, 119864);
return;
}
paramString = p.a(paramString, true, null);
if (paramString == null)
{
GMTrace.o(16087873748992L, 119864);
return;
}
File localFile = new File(paramString);
if ((!am.isWifi(ab.getContext())) && (localFile.length() > 5242880L))
{
w.i("MicroMsg.MemoryDumpOperation", "Hprof not wifi exceed max size, size " + localFile.length());
GMTrace.o(16087873748992L, 119864);
return;
}
if (vFe == null)
{
w.e("MicroMsg.MemoryDumpOperation", "Hprof upload : no file upload impl set!");
GMTrace.o(16087873748992L, 119864);
return;
}
boolean bool = vFe.EE(paramString);
w.i("MicroMsg.MemoryDumpOperation", "Hprof upload : %b", new Object[] { Boolean.valueOf(bool) });
if (bool) {
e.g(new File(b.vFc));
}
GMTrace.o(16087873748992L, 119864);
}
static boolean ty()
{
GMTrace.i(13150250336256L, 97977);
try
{
if ((Environment.getExternalStorageState().equals("mounted")) && (new File(Environment.getExternalStorageDirectory().getAbsolutePath()).canWrite()))
{
GMTrace.o(13150250336256L, 97977);
return true;
}
GMTrace.o(13150250336256L, 97977);
return false;
}
catch (Exception localException)
{
GMTrace.o(13150250336256L, 97977);
}
return false;
}
}
/* Location: D:\tools\apktool\weixin6519android1140\jar\classes-dex2jar.jar!\com\tencent\mm\bw\c.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"robert0825@gmail.com"
] |
robert0825@gmail.com
|
8feef8803b70621b8e90c5599e20615505cba632
|
0ad51dde288a43c8c2216de5aedcd228e93590ac
|
/src/com/vmware/converter/RecoveryEvent.java
|
2a340a81d2182b323dabf54adb600161039169f2
|
[] |
no_license
|
YujiEda/converter-sdk-java
|
61c37b2642f3a9305f2d3d5851c788b1f3c2a65f
|
bcd6e09d019d38b168a9daa1471c8e966222753d
|
refs/heads/master
| 2020-04-03T09:33:38.339152
| 2019-02-11T15:19:04
| 2019-02-11T15:19:04
| 155,151,917
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,080
|
java
|
/**
* RecoveryEvent.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.vmware.converter;
public class RecoveryEvent extends com.vmware.converter.DvsEvent implements java.io.Serializable {
private java.lang.String hostName;
private java.lang.String portKey;
private java.lang.String dvsUuid;
private java.lang.String vnic;
public RecoveryEvent() {
}
public RecoveryEvent(
int key,
int chainId,
java.util.Calendar createdTime,
java.lang.String userName,
com.vmware.converter.DatacenterEventArgument datacenter,
com.vmware.converter.ComputeResourceEventArgument computeResource,
com.vmware.converter.HostEventArgument host,
com.vmware.converter.VmEventArgument vm,
com.vmware.converter.DatastoreEventArgument ds,
com.vmware.converter.NetworkEventArgument net,
com.vmware.converter.DvsEventArgument dvs,
java.lang.String fullFormattedMessage,
java.lang.String changeTag,
java.lang.String hostName,
java.lang.String portKey,
java.lang.String dvsUuid,
java.lang.String vnic) {
super(
key,
chainId,
createdTime,
userName,
datacenter,
computeResource,
host,
vm,
ds,
net,
dvs,
fullFormattedMessage,
changeTag);
this.hostName = hostName;
this.portKey = portKey;
this.dvsUuid = dvsUuid;
this.vnic = vnic;
}
/**
* Gets the hostName value for this RecoveryEvent.
*
* @return hostName
*/
public java.lang.String getHostName() {
return hostName;
}
/**
* Sets the hostName value for this RecoveryEvent.
*
* @param hostName
*/
public void setHostName(java.lang.String hostName) {
this.hostName = hostName;
}
/**
* Gets the portKey value for this RecoveryEvent.
*
* @return portKey
*/
public java.lang.String getPortKey() {
return portKey;
}
/**
* Sets the portKey value for this RecoveryEvent.
*
* @param portKey
*/
public void setPortKey(java.lang.String portKey) {
this.portKey = portKey;
}
/**
* Gets the dvsUuid value for this RecoveryEvent.
*
* @return dvsUuid
*/
public java.lang.String getDvsUuid() {
return dvsUuid;
}
/**
* Sets the dvsUuid value for this RecoveryEvent.
*
* @param dvsUuid
*/
public void setDvsUuid(java.lang.String dvsUuid) {
this.dvsUuid = dvsUuid;
}
/**
* Gets the vnic value for this RecoveryEvent.
*
* @return vnic
*/
public java.lang.String getVnic() {
return vnic;
}
/**
* Sets the vnic value for this RecoveryEvent.
*
* @param vnic
*/
public void setVnic(java.lang.String vnic) {
this.vnic = vnic;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof RecoveryEvent)) return false;
RecoveryEvent other = (RecoveryEvent) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj) &&
((this.hostName==null && other.getHostName()==null) ||
(this.hostName!=null &&
this.hostName.equals(other.getHostName()))) &&
((this.portKey==null && other.getPortKey()==null) ||
(this.portKey!=null &&
this.portKey.equals(other.getPortKey()))) &&
((this.dvsUuid==null && other.getDvsUuid()==null) ||
(this.dvsUuid!=null &&
this.dvsUuid.equals(other.getDvsUuid()))) &&
((this.vnic==null && other.getVnic()==null) ||
(this.vnic!=null &&
this.vnic.equals(other.getVnic())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
if (getHostName() != null) {
_hashCode += getHostName().hashCode();
}
if (getPortKey() != null) {
_hashCode += getPortKey().hashCode();
}
if (getDvsUuid() != null) {
_hashCode += getDvsUuid().hashCode();
}
if (getVnic() != null) {
_hashCode += getVnic().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(RecoveryEvent.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("urn:vim25", "RecoveryEvent"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("hostName");
elemField.setXmlName(new javax.xml.namespace.QName("urn:vim25", "hostName"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("portKey");
elemField.setXmlName(new javax.xml.namespace.QName("urn:vim25", "portKey"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("dvsUuid");
elemField.setXmlName(new javax.xml.namespace.QName("urn:vim25", "dvsUuid"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("vnic");
elemField.setXmlName(new javax.xml.namespace.QName("urn:vim25", "vnic"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
|
[
"yuji_eda@dwango.co.jp"
] |
yuji_eda@dwango.co.jp
|
96179d6494752fb78202933d4b9f31994b123ddd
|
4659c2c3e7d8f5e85d1b1248134fc9cf802a2a14
|
/RTDW-gmall-realtime/src/main/java/com/shangbaishuyao/gmall/realtime/bean/TableProcess.java
|
50251ac8c1b24622dc858945a7d4f921d75049da
|
[
"Apache-2.0"
] |
permissive
|
corersky/flink-learning-from-zhisheng
|
e68dfad1f91196d8cfeaaa0014fce7c55cb66847
|
9765eaee0e2cf49d2a925d8d55ebc069f9bdcda1
|
refs/heads/main
| 2023-05-14T07:12:49.610363
| 2021-06-06T15:21:17
| 2021-06-06T15:21:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 755
|
java
|
package com.shangbaishuyao.gmall.realtime.bean;
import lombok.Data;
/**
* Author: 上白书妖
* Date: 2021/2/1
* Desc: 配置表对应的实体类
*/
@Data
public class TableProcess {
//动态分流Sink常量 改为小写和脚本一致
public static final String SINK_TYPE_HBASE = "hbase";
public static final String SINK_TYPE_KAFKA = "kafka";
public static final String SINK_TYPE_CK = "clickhouse";
//来源表
String sourceTable;
//操作类型 insert,update,delete
String operateType;
//输出类型 hbase kafka
String sinkType;
//输出表(主题)
String sinkTable;
//输出字段
String sinkColumns;
//主键字段
String sinkPk;
//建表扩展
String sinkExtend;
}
|
[
"shangbaishuyao@163.com"
] |
shangbaishuyao@163.com
|
354700327119c88c2ee3f3c96e60100bae573dc9
|
ffd5057874b1c1d1450de4071b5c58f37c2263b5
|
/web/src/main/java/org/sdrc/ess/repository/DesignationAreaOrganizationRoleMappingRepository.java
|
148ac0c639d15a5c5a807297db11b5bf47f752b6
|
[] |
no_license
|
SDRC-India/eSupportive-Supervision
|
9fab06ffd9f2deb717b90e2bf5f12840ed51aa0a
|
6b968ce685ad8dcff120ed3d91accf14402bd8b9
|
refs/heads/main
| 2023-05-27T21:20:03.311706
| 2021-06-09T10:24:37
| 2021-06-09T10:24:37
| 375,313,377
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,322
|
java
|
package org.sdrc.ess.repository;
import java.sql.Timestamp;
import java.util.List;
import org.sdrc.ess.domain.Designation;
import org.sdrc.ess.domain.DesignationAreaOrganizationRoleMapping;
public interface DesignationAreaOrganizationRoleMappingRepository {
List<DesignationAreaOrganizationRoleMapping> findByRoleRoleId(Integer roleId);
List<DesignationAreaOrganizationRoleMapping> findByRoleRoleIdAndOrganizationId(Integer roleId, Integer orgId);
List<DesignationAreaOrganizationRoleMapping> findByRoleRoleIdAndOrganizationIdAndAreaAreaNId(Integer roleId,
Integer orgId, Integer areaNId);
DesignationAreaOrganizationRoleMapping findById(Integer id);
DesignationAreaOrganizationRoleMapping save(DesignationAreaOrganizationRoleMapping dmodel);
List<DesignationAreaOrganizationRoleMapping> findAll();
List<DesignationAreaOrganizationRoleMapping> findByRoleRoleIdAndAreaAreaNId(Integer roleId, Integer areaNId);
List<Designation> findByRoleRoleIdIn(List<Integer> roleIds);
DesignationAreaOrganizationRoleMapping findByRoleRoleIdAndAreaAreaNIdAndDesignationIdAndOrganizationId(
Integer roleId, Integer areaNId, Integer desgId, Integer orgId);
DesignationAreaOrganizationRoleMapping findByRoleRoleIdAndAreaAreaNIdAndDesignationIdAndOrganizationIdAndIsResponsibleFacilityAndIsResponsibleCommunityAndId(
Integer roleId, Integer areaNId, Integer desgId, Integer orgId, Boolean isResponsibleFacility,
Boolean isResponsibleCommunity, Integer id);
List<DesignationAreaOrganizationRoleMapping> findByAreaAreaNId(Integer areaId);
void updateDesignationAreaOrganizationRoleMapping(Boolean isResponsibleFacility, Boolean isResponsibleCommunity,
Timestamp updatedDate, Integer id);
List<DesignationAreaOrganizationRoleMapping> findDesignationForPOA(List<Integer> areaIds, List<Integer> roleIds);
List<DesignationAreaOrganizationRoleMapping> findDesignationForPOAByUpdate(List<Integer> areaIds,
List<Integer> roleIds, Timestamp lastSyncDate);
List<DesignationAreaOrganizationRoleMapping> findByIsResponsibleFacilityTrueOrIsResponsibleCommunityTrueAndRoleRoleIdIn(
List<Integer> roleIds);
List<DesignationAreaOrganizationRoleMapping> findDesignationForPOAByUpdateForCountryAdmin(List<Integer> roleIds,
Timestamp lastSyncDate);
}
|
[
"ratikanta131@gmail.com"
] |
ratikanta131@gmail.com
|
71f7f5113c1715b6e4cfaf99b38bdbcaef1bc37b
|
1298857e666ff323a1fda20f8a96c3c33fa15744
|
/app/src/main/java/qcjlibrary/activity/CancerCategoryActivity.java
|
ca5d4a2a1b221d7bb89f7572cccd911f2d2c070c
|
[] |
no_license
|
CatherineFXX/qingke-1
|
b4bdd246f22e6e7ba6577436fc26c6baa19ce098
|
6edf34e9a74672f120f9e81aa49ee88f93fb1063
|
refs/heads/master
| 2021-01-22T18:42:28.094627
| 2015-12-27T10:48:45
| 2015-12-27T10:48:45
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,828
|
java
|
package qcjlibrary.activity;
import java.util.List;
import qcjlibrary.activity.base.BaseActivity;
import qcjlibrary.adapter.RequestAnswerAdapter;
import qcjlibrary.adapter.base.BAdapter;
import qcjlibrary.listview.base.CommonListView;
import qcjlibrary.model.ModelCancerCategory;
import qcjlibrary.model.ModelRequestSearch;
import qcjlibrary.model.base.Model;
import qcjlibrary.util.DisplayUtils;
import android.view.View;
import com.zhiyicx.zycx.R;
/**
* author:qiuchunjia time:上午11:56:18 类描述:这个类是实现
*/
public class CancerCategoryActivity extends BaseActivity {
private CommonListView mCommonListView;
private BAdapter mAdapter;
private ModelCancerCategory mCategory;
ModelRequestSearch mSearch = new ModelRequestSearch();
private List<Model> mItemList;
@Override
public String setCenterTitle() {
return "癌种类别";
}
@Override
public void initIntent() {
mCategory = (ModelCancerCategory) getDataFromIntent(getIntent(), null);
}
@Override
public int getLayoutId() {
return R.layout.listview_common_layout;
}
@Override
public void initView() {
mCommonListView = (CommonListView) findViewById(R.id.mCommonListView);
mCommonListView.setDividerHeight(DisplayUtils.dp2px(
getApplicationContext(), 10));
if (mCategory != null) {
titleSetCenterTitle(mCategory.getTitle() + "");
}
}
@Override
public void initData() {
mSearch.setCat(mCategory.getId());
mAdapter = new RequestAnswerAdapter(this, mSearch);
mCommonListView.setAdapter(mAdapter);
}
@Override
public void initListener() {
// TODO Auto-generated method stub
}
@Override
public void onClick(View v) {
}
}
|
[
"1465963174@qq.com"
] |
1465963174@qq.com
|
a3b36df663f118c122d462065834175806a38627
|
8ec2bba1ed1c1655e4db61fb9a58bc854f75ac28
|
/mybatis-plus-demo/src/main/java/com/example/mybatis/entity/User.java
|
38961dad7bf5ba2356c87173ec9931147fe2035b
|
[] |
no_license
|
dmshan88/java_demo
|
f9d4c11e31d98d00778f2aaf69a2ce0a85f26392
|
490be9fef95befb060332816cfe00a5b42393a82
|
refs/heads/master
| 2022-07-04T07:20:48.673040
| 2021-05-18T12:56:42
| 2021-05-18T12:56:42
| 221,393,672
| 0
| 0
| null | 2022-06-17T03:34:48
| 2019-11-13T07:00:23
|
Java
|
UTF-8
|
Java
| false
| false
| 720
|
java
|
package com.example.mybatis.entity;
import java.io.Serializable;
/**
* <p>
*
* </p>
*
* @author jerryjin
* @since 2020-02-07
*/
public class User implements Serializable {
private static final long serialVersionUID = 1L;
private String id;
private String name;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public String toString() {
return "User{" +
"id=" + id +
", name=" + name +
"}";
}
}
|
[
"dm_shan@163.com"
] |
dm_shan@163.com
|
4813b4918fc28dd0367eb76c9e3a110070940104
|
8c69e78bdf5e3109d183f14548c0df8862a19586
|
/mine_component/src/main/java/com/abt/mine_component/MineService.java
|
dfe332eb524bed7eee14b8a767297f32284efecd
|
[] |
no_license
|
AppDemoOrg/ComponentSample
|
295409ee59385d91e775b5588cd110e8c9729440
|
39c08dd043b445beeffb6452071c12a63f6a5611
|
refs/heads/master
| 2021-07-09T02:32:06.905265
| 2020-08-16T15:40:28
| 2020-08-16T15:40:28
| 183,885,973
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 422
|
java
|
package com.abt.mine_component;
import android.content.Context;
import android.content.Intent;
import com.abt.component_lib.IMineService;
public class MineService implements IMineService {
@Override
public void launch(Context context, int userId) {
Intent intent = new Intent(context, MineActivity.class);
intent.putExtra(MineActivity.ID, userId);
context.startActivity(intent);
}
}
|
[
"askviky2010@gmail.com"
] |
askviky2010@gmail.com
|
1eaca31fedde5548a1aa073629cf22b22e10cd33
|
4d274173ce10931ce2c819acf2ab382336816c3a
|
/jax-web/src/main/java/com/eoi/jax/web/model/listener/SparkStateReq.java
|
7d28e38d55b532b6107fe12af6ec59e4684f0cd0
|
[
"Apache-2.0"
] |
permissive
|
joely110/jax
|
346aa1d66f1c6c1f0f5eb1809a3a3c20cf544d36
|
9f54fd84f149896112bf1e39a0b60533196ac5fb
|
refs/heads/master
| 2023-06-27T03:55:05.631009
| 2021-08-03T06:53:15
| 2021-08-03T06:53:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,501
|
java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.eoi.jax.web.model.listener;
public class SparkStateReq {
private String state;
private String applicationId;
private String restUrl;
private String lastError;
public String getState() {
return state;
}
public SparkStateReq setState(String state) {
this.state = state;
return this;
}
public String getApplicationId() {
return applicationId;
}
public SparkStateReq setApplicationId(String applicationId) {
this.applicationId = applicationId;
return this;
}
public String getRestUrl() {
return restUrl;
}
public SparkStateReq setRestUrl(String restUrl) {
this.restUrl = restUrl;
return this;
}
public String getLastError() {
return lastError;
}
public SparkStateReq setLastError(String lastError) {
this.lastError = lastError;
return this;
}
}
|
[
"di.wang@eoitek.com"
] |
di.wang@eoitek.com
|
66c789b0f6e76ed9aa512551ac671d03386683a7
|
332e7cd168b162e30aefee3edd6743d1a785ff7b
|
/Old code/nac-software-2015/robot/branches/BinSnatch/Team93Robot2015/src/org/usfirst/frc93/Team93Robot2015/Robot.java
|
2fab5ac76867baf77b17437db811274eb79e2d58
|
[] |
no_license
|
first-team-93-new-apple-corp/OldSvnRepos
|
6a9ab7adcae96c5c1aec1cd07f94e9a27f6c5218
|
91a8bc09fc48f77ac32ca8fa182456fa7f0cba25
|
refs/heads/master
| 2020-05-21T03:51:03.176033
| 2019-05-10T01:22:11
| 2019-05-10T01:22:11
| 185,892,238
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,002
|
java
|
// RobotBuilder Version: 1.5
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks indicating autogenerated code or it will be lost on an
// update. Deleting the comments indicating the section will prevent
// it from being updated in the future.
package org.usfirst.frc93.Team93Robot2015;
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.command.Scheduler;
import edu.wpi.first.wpilibj.livewindow.LiveWindow;
import org.usfirst.frc93.Team93Robot2015.subsystems.BinSnatcher;
import org.usfirst.frc93.Team93Robot2015.subsystems.Drive;
import org.usfirst.frc93.Team93Robot2015.subsystems.Switches;
/**
* The VM is configured to automatically run this class, and to call the
* functions corresponding to each mode, as described in the IterativeRobot
* documentation. If you change the name of this class or the package after
* creating this project, you must also update the manifest file in the resource
* directory.
*/
public class Robot extends IterativeRobot {
Command autonomousCommand;
public static OI oi;
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
public static Drive drive;
public static Switches switches;
public static BinSnatcher binSnatcher;
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
/**
* This function is run when the robot is first started up and should be
* used for any initialization code.
*/
@Override
public void robotInit() {
RobotMap.init();
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
drive = new Drive();
switches = new Switches();
binSnatcher = new BinSnatcher();
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
// OI must be constructed after subsystems. If the OI creates Commands
// (which it very likely will), subsystems are not guaranteed to be
// constructed yet. Thus, their requires() statements may grab null
// pointers. Bad news. Don't move it.
oi = new OI();
// instantiate the command used for the autonomous period
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=AUTONOMOUS
// sautonomousCommand = new AutonomousCommands();
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=AUTONOMOUS
}
/**
* This function is called when the disabled button is hit. You can use it
* to reset subsystems before shutting down.
*/
@Override
public void disabledInit() {
}
@Override
public void disabledPeriodic() {
Scheduler.getInstance().run();
}
@Override
public void autonomousInit() {
// schedule the autonomous command (example)
if (autonomousCommand != null) {
autonomousCommand.start();
}
}
/**
* This function is called periodically during autonomous
*/
@Override
public void autonomousPeriodic() {
Scheduler.getInstance().run();
}
@Override
public void teleopInit() {
// This makes sure that the autonomous stops running when
// teleop starts running. If you want the autonomous to
// continue until interrupted by another command, remove
// this line or comment it out.
if (autonomousCommand != null) {
autonomousCommand.cancel();
}
}
/**
* This function is called periodically during operator control
*/
@Override
public void teleopPeriodic() {
Scheduler.getInstance().run();
}
/**
* This function is called periodically during test mode
*/
@Override
public void testPeriodic() {
LiveWindow.run();
}
}
|
[
"plexus@aasd.k12.wi.us"
] |
plexus@aasd.k12.wi.us
|
49593cfed07a68795836d166752d29353b1944e9
|
70f7a06017ece67137586e1567726579206d71c7
|
/alimama/src/main/java/com/ali/user/mobile/rpc/register/model/MtopRegisterCheckMobileResponseData.java
|
825b07f26eb03eaf533ec17b418add662bac41fa
|
[] |
no_license
|
liepeiming/xposed_chatbot
|
5a3842bd07250bafaffa9f468562021cfc38ca25
|
0be08fc3e1a95028f8c074f02ca9714dc3c4dc31
|
refs/heads/master
| 2022-12-20T16:48:21.747036
| 2020-10-14T02:37:49
| 2020-10-14T02:37:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 192
|
java
|
package com.ali.user.mobile.rpc.register.model;
import com.ali.user.mobile.rpc.RpcResponse;
public class MtopRegisterCheckMobileResponseData extends RpcResponse<MtopRegisterReturnValue> {
}
|
[
"zhangquan@snqu.com"
] |
zhangquan@snqu.com
|
dbb01d1ef152a9ba41b7bd748724595f7af1f2a3
|
ac1cd95653f54abbc41a3373bc08cccca887ea6e
|
/1.16.4-vortex/minecraft/src/main/java/net/minecraft/network/play/server/SEntityStatusPacket.java
|
79ddc92f0db48fcda3e63a630175b779739ad3c4
|
[] |
no_license
|
DragonflyClient/dragonfly-injection-client
|
1e3dccfefd0e9332cfeb6138224fff48d2d2d6a1
|
701fb3604972dc716a0197a4cf9d3e6bfbc09b94
|
refs/heads/main
| 2023-03-13T01:09:20.813860
| 2021-01-11T21:37:12
| 2021-01-11T21:37:12
| 320,880,114
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,334
|
java
|
package net.minecraft.network.play.server;
import java.io.IOException;
import net.minecraft.client.network.play.IClientPlayNetHandler;
import net.minecraft.entity.Entity;
import net.minecraft.network.IPacket;
import net.minecraft.network.PacketBuffer;
import net.minecraft.world.World;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
public class SEntityStatusPacket implements IPacket<IClientPlayNetHandler> {
private int entityId;
private byte logicOpcode;
public SEntityStatusPacket() {
}
public SEntityStatusPacket(Entity entityIn, byte opcodeIn) {
this.entityId = entityIn.getEntityId();
this.logicOpcode = opcodeIn;
}
public void readPacketData(PacketBuffer buf) throws IOException {
this.entityId = buf.readInt();
this.logicOpcode = buf.readByte();
}
public void writePacketData(PacketBuffer buf) throws IOException {
buf.writeInt(this.entityId);
buf.writeByte(this.logicOpcode);
}
public void processPacket(IClientPlayNetHandler handler) {
handler.handleEntityStatus(this);
}
@OnlyIn(Dist.CLIENT)
public Entity getEntity(World worldIn) {
return worldIn.getEntityByID(this.entityId);
}
@OnlyIn(Dist.CLIENT)
public byte getOpCode() {
return this.logicOpcode;
}
}
|
[
"theincxption@gmail.com"
] |
theincxption@gmail.com
|
cf459c48891ac658a3af2faa824ef7b4a2d20fb1
|
52c36ce3a9d25073bdbe002757f08a267abb91c6
|
/src/main/java/com/alipay/api/domain/ReduceInfo.java
|
cf9cb8909e366572d7e36c97b7ae5b23ae673a40
|
[
"Apache-2.0"
] |
permissive
|
itc7/alipay-sdk-java-all
|
d2f2f2403f3c9c7122baa9e438ebd2932935afec
|
c220e02cbcdda5180b76d9da129147e5b38dcf17
|
refs/heads/master
| 2022-08-28T08:03:08.497774
| 2020-05-27T10:16:10
| 2020-05-27T10:16:10
| 267,271,062
| 0
| 0
|
Apache-2.0
| 2020-05-27T09:02:04
| 2020-05-27T09:02:04
| null |
UTF-8
|
Java
| false
| false
| 1,858
|
java
|
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 订单优惠信息
*
* @author auto create
* @since 1.0, 2016-11-24 22:26:22
*/
public class ReduceInfo extends AlipayObject {
private static final long serialVersionUID = 2142187455649423249L;
/**
* 门店品牌名称
*/
@ApiField("brand_name")
private String brandName;
/**
* 消费金额(单位分)
*/
@ApiField("consume_amt")
private String consumeAmt;
/**
* 消费门店名称
*/
@ApiField("consume_store_name")
private String consumeStoreName;
/**
* 消费时间
*/
@ApiField("payment_time")
private String paymentTime;
/**
* 优惠金额(单位分)
*/
@ApiField("promo_amt")
private String promoAmt;
/**
* 用户名(脱敏)
*/
@ApiField("user_name")
private String userName;
public String getBrandName() {
return this.brandName;
}
public void setBrandName(String brandName) {
this.brandName = brandName;
}
public String getConsumeAmt() {
return this.consumeAmt;
}
public void setConsumeAmt(String consumeAmt) {
this.consumeAmt = consumeAmt;
}
public String getConsumeStoreName() {
return this.consumeStoreName;
}
public void setConsumeStoreName(String consumeStoreName) {
this.consumeStoreName = consumeStoreName;
}
public String getPaymentTime() {
return this.paymentTime;
}
public void setPaymentTime(String paymentTime) {
this.paymentTime = paymentTime;
}
public String getPromoAmt() {
return this.promoAmt;
}
public void setPromoAmt(String promoAmt) {
this.promoAmt = promoAmt;
}
public String getUserName() {
return this.userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
528018a66151fdf12ec42af0bd5f769c903c94e5
|
98110364a78727475cada902502faa95d1fef931
|
/mybatis-generator-core/src/main/java/org/mybatis/generator/api/dom/java/render/ParameterRenderer.java
|
560d6cecfc8af5c1ad8dd8b41bf34ff252d4feba
|
[
"Apache-2.0"
] |
permissive
|
linj1024/mybatis-generator-velocity
|
0b7a8059adbcfb5fb94986187eb6fce2f59041b2
|
7f20e48411db33feee7be65ee2b0df8543c834fb
|
refs/heads/master
| 2022-07-12T21:46:38.386524
| 2019-11-20T03:31:13
| 2019-11-20T03:31:13
| 188,947,631
| 0
| 0
|
Apache-2.0
| 2022-06-20T22:41:38
| 2019-05-28T03:30:47
|
Java
|
UTF-8
|
Java
| false
| false
| 1,627
|
java
|
/**
* Copyright 2006-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.mybatis.generator.api.dom.java.render;
import org.mybatis.generator.api.dom.java.CompilationUnit;
import org.mybatis.generator.api.dom.java.JavaDomUtils;
import org.mybatis.generator.api.dom.java.Parameter;
import org.mybatis.generator.internal.util.CustomCollectors;
public class ParameterRenderer {
public String render(Parameter parameter, CompilationUnit compilationUnit) {
return renderAnnotations(parameter)
+ JavaDomUtils.calculateTypeName(compilationUnit, parameter.getType())
+ " " //$NON-NLS-1$
+ (parameter.isVarargs() ? "... " : "") //$NON-NLS-1$ //$NON-NLS-2$
+ parameter.getName();
}
// should return empty string if no annotations
private String renderAnnotations(Parameter parameter) {
return parameter.getAnnotations().stream()
.collect(CustomCollectors.joining(" ", "", " ")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}
}
|
[
"linj@yqc.com"
] |
linj@yqc.com
|
fbe93967d53c917c634e8799618a33d02d7a20aa
|
a70891d9d4ba6dd8644bfcd702185a8650f699c7
|
/Ex05_OOP/src/kr/or/bit/Bird.java
|
062101a24030785aeb068845c88948eb0a56d691
|
[] |
no_license
|
lbhee/JAVA_Basic
|
a133169dfda2534882a1415c4738272fbfd5829f
|
a8e8cc856d6974327f1501f0875c64ee7ac6adb2
|
refs/heads/master
| 2023-06-11T16:03:24.562824
| 2021-07-05T12:23:30
| 2021-07-05T12:23:30
| 383,130,863
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 455
|
java
|
package kr.or.bit;
// 새(공통-일반화/추상화) >> 새는 날 수 있다. 새는 빠르다.
public class Bird {
// 공통기능
public void fly() {
System.out.println("flying");
}
// 설계자..타조는 못날잖아.. fly가 필요없으니까..
// 나를 상속하는 당신은 moveFast()를 필요에 따라서 재정의해서 쓰길.. 상속관계에서!
protected void moveFast() {
fly();
}
}
|
[
"leebohee723@gmail.com"
] |
leebohee723@gmail.com
|
f2be2ce8b73edd473fabd62f2e9f69bd10b3a17d
|
6e64f1dfd01c3a3a1e1024a93268115ac6b16e91
|
/guvnor-ng/guvnor-editors/guvnor-guided-rule-editor/guvnor-guided-rule-editor-client/src/main/java/org/kie/guvnor/guided/rule/client/editor/DynamicTextArea.java
|
72e8cce44cfe32b83177566c4cd441dad0fae6be
|
[
"Apache-2.0"
] |
permissive
|
carlosmunoz/guvnor
|
c6e560ab8fb9862514cd6fd1b5d5ead2ef220fc6
|
667eb870c1ad86c8d242df2bbbf566fcfd8d4cf4
|
refs/heads/master
| 2021-01-17T22:32:45.131359
| 2013-05-04T22:25:16
| 2013-05-04T22:25:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,803
|
java
|
/*
* Copyright 2012 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.kie.guvnor.guided.rule.client.editor;
import com.google.gwt.event.dom.client.KeyDownEvent;
import com.google.gwt.event.dom.client.KeyDownHandler;
import com.google.gwt.event.dom.client.KeyPressEvent;
import com.google.gwt.event.dom.client.KeyPressHandler;
import com.google.gwt.event.dom.client.KeyUpEvent;
import com.google.gwt.event.dom.client.KeyUpHandler;
import com.google.gwt.event.logical.shared.HasResizeHandlers;
import com.google.gwt.event.logical.shared.ResizeEvent;
import com.google.gwt.event.logical.shared.ResizeHandler;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.user.client.ui.TextArea;
/**
* A TextArea that resizes itself to specified minimum and maximum as text is
* inserted.
*/
public class DynamicTextArea extends TextArea
implements
HasResizeHandlers {
public DynamicTextArea() {
super();
this.getElement().setAttribute( "wrap",
"off" );
}
//Defaults
protected int minWidth = 60;
protected int maxWidth = 100;
protected int minLines = 1;
protected int maxLines = 20;
@Override
public void setText( String text ) {
super.setText( text );
assertTextAreaDimensions();
//Add handlers for all keyboard events so that the TextArea
//can be resized as text is inserted (or deleted) and when
//the keyboard is 'auto-repeating'
addKeyDownHandler( new KeyDownHandler() {
public void onKeyDown( KeyDownEvent event ) {
assertTextAreaDimensions();
}
} );
addKeyUpHandler( new KeyUpHandler() {
public void onKeyUp( KeyUpEvent event ) {
assertTextAreaDimensions();
}
} );
addKeyPressHandler( new KeyPressHandler() {
public void onKeyPress( KeyPressEvent event ) {
assertTextAreaDimensions();
}
} );
}
//Set the TextArea's size
private void assertTextAreaDimensions() {
String text = getText();
int oldLines = getVisibleLines();
int oldCharacters = getCharacterWidth();
setNumberOfLines( text );
setMaxLineWidth( text );
//Fire a resize event, if applicable
boolean resizeContainer = false;
if ( oldLines != getVisibleLines() ) {
resizeContainer = true;
}
if ( oldCharacters != getCharacterWidth() ) {
resizeContainer = true;
}
if ( resizeContainer ) {
ResizeEvent.fire( this,
getVisibleLines(),
getCharacterWidth() );
}
}
//Get the maximum length of any line. Returns true if the
//required size is greater than the maximum configured size
private boolean setMaxLineWidth( String text ) {
boolean overflow = false;
if ( text == null || text.length() == 0 ) {
this.setCharacterWidth( minWidth );
return overflow;
}
int maxFoundWidth = 0;
String[] aLines = text.split( "\\n" );
for ( int i = 0; i < aLines.length; i++ ) {
String aLine = aLines[ i ];
if ( aLine.length() > maxFoundWidth ) {
maxFoundWidth = aLine.length();
}
}
if ( maxFoundWidth < minWidth ) {
maxFoundWidth = minWidth;
}
if ( maxFoundWidth > maxWidth ) {
maxFoundWidth = maxWidth;
overflow = true;
}
this.setCharacterWidth( maxFoundWidth );
return overflow;
}
//Get the number of lines. Returns true if the required number
//of lines is greater than the maximum configured size
private boolean setNumberOfLines( String text ) {
boolean overflow = false;
if ( text == null || text.length() == 0 ) {
this.setVisibleLines( minLines );
return overflow;
}
int lines = 1;
String[] aLines = text.split( "\\n" );
lines = aLines.length;
if ( text.endsWith( "\n" ) ) {
lines++;
}
if ( lines < minLines ) {
lines = minLines;
}
if ( lines > maxLines ) {
lines = maxLines;
overflow = true;
}
this.setVisibleLines( lines );
return overflow;
}
public int getMinWidth() {
return minWidth;
}
public void setMinWidth( int minWidth ) {
this.minWidth = minWidth;
}
public int getMaxWidth() {
return maxWidth;
}
public void setMaxWidth( int maxWidth ) {
this.maxWidth = maxWidth;
}
public int getMinLines() {
return minLines;
}
public void setMinLines( int minLines ) {
this.minLines = minLines;
}
public int getMaxLines() {
return maxLines;
}
public void setMaxLines( int maxLines ) {
this.maxLines = maxLines;
}
public HandlerRegistration addResizeHandler( ResizeHandler handler ) {
return addHandler( handler,
ResizeEvent.getType() );
}
}
|
[
"michael.anstis@gmail.com"
] |
michael.anstis@gmail.com
|
c097f791cb7635386b4b30045f79bbbf69300b8d
|
426207ea665ae98723e04b1d1364e60188329cf3
|
/src/main/java/com/zd/common/JsonUtils.java
|
2e032c501a31838d43cecac093112d870b42c7d5
|
[] |
no_license
|
yuexingxing/datatest
|
0a0ca7e73827bad6d6fb40f90fbe4497c6bd84ec
|
375b885c82766f13049e6de63041e1851cdb4aad
|
refs/heads/master
| 2020-03-13T11:15:09.181238
| 2018-04-26T03:59:14
| 2018-04-26T03:59:14
| 131,098,129
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,823
|
java
|
package com.zd.common;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import java.util.Map;
/**
* @ClassName: JsonUtils
* @Description: json 对象转换工具类
* @author wq
* @date 2016年4月19日 下午4:17:11
*/
public class JsonUtils {
private static ObjectMapper objectMapper = new JsonMapper();
/**
* @Description: 对象转换成json
* @param obj 对象
* @return json
* @throws IOException
*/
public static String translateToJson(Object obj) throws IOException {
return objectMapper.writeValueAsString(obj);
}
/**
* @Description: json 转换成对象
* @param json
* @param clazz 对象的 class
* @return 对象
* @throws IOException
*/
public static <T> T readValue(String json, Class<T> clazz) throws IOException {
return objectMapper.readValue(json, clazz);
}
/**
* @Description: json 转换成对象
* @param json
* @param type
* @return
* @throws IOException
*/
public static <T> T readValueByType(String json, TypeReference<?> type) throws IOException {
return objectMapper.readValue(json, type);
}
/**
* @Description: 获取json 的属性值
* @param json
* @param name 属性名称
* @return 属性值
* @throws IOException
*/
public static String readValueByName(String json, String name) throws IOException {
Map<?, ?> map = objectMapper.readValue(json, Map.class);
Object object = map.get(name);
return object == null ? null : object.toString();
}
/**
* @Description: 获取json 的属性 map
* @param json
* @return map
* @throws IOException
*/
public static Map<?, ?> readMap(String json) throws IOException {
Map<?, ?> map = objectMapper.readValue(json, Map.class);
return map;
}
}
|
[
"670176656@qq.com"
] |
670176656@qq.com
|
39e1cbc1c4ad3e1558c62b50471c2e15e4f63d99
|
f576a6f9559c08edaae6879973fad4f900b3b747
|
/src/it/istc/pst/kbcl/exception/KbclNoAgentSelectedException.java
|
75b5b8efa428678b47491d886d9c64115710e8b2
|
[] |
no_license
|
pstlab/KBCL
|
b70927d50879422734fdd77de40cb78ffbc6346b
|
7074ce79900bd6aa57b3f1b61b872b82b6c12a76
|
refs/heads/master
| 2023-07-22T04:42:38.873583
| 2015-11-13T17:40:37
| 2015-11-13T17:40:37
| 243,648,491
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 295
|
java
|
package it.istc.pst.kbcl.exception;
/**
*
* @author alessandroumbrico
*
*/
public class KbclNoAgentSelectedException extends Exception
{
private static final long serialVersionUID = 1L;
/**
*
* @param msg
*/
public KbclNoAgentSelectedException(String msg) {
super(msg);
}
}
|
[
"umbrico.alessandro@gmail.com"
] |
umbrico.alessandro@gmail.com
|
4330fb0cbe3418dac7120ab64b497ce49deabae3
|
d7130fdaf51db9b45347aeb77188c1ee26d8e56e
|
/LeoPIEdome/app/src/main/java/com/android/fusionleo/leoglobalactions/presentation/viewmodel/QuickRebootActionViewModel.java
|
ae7e7db737e7bf27ddae2534240887eb493abdc9
|
[] |
no_license
|
FusionPlmH/Fusion-Project
|
317af268c8bcb2cc6e7c30cf39a9cc3bc62cb84e
|
19ac1c5158bc48f3013dce82fe5460d988206103
|
refs/heads/master
| 2022-04-07T00:36:40.424705
| 2020-03-16T16:06:28
| 2020-03-16T16:06:28
| 247,745,495
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,873
|
java
|
package com.android.fusionleo.leoglobalactions.presentation.viewmodel;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import com.android.fusionleo.leoglobalactions.presentation.SecGlobalActions;
import com.android.fusionleo.leoglobalactions.presentation.SecGlobalActionsManager;
import com.android.fusionleo.leoglobalactions.presentation.features.FeatureFactory;
import com.android.fusionleo.leoglobalactions.presentation.strategies.ActionInteractionStrategy;
import com.android.fusionleo.leoglobalactions.presentation.strategies.SecureConfirmStrategy;
import com.android.fusionleo.leoglobalactions.presentation.strategies.SoftwareUpdateStrategy;
import com.android.fusionleo.leoglobalactions.util.ConditionChecker;
import com.android.fusionleo.leoglobalactions.util.KeyGuardManagerWrapper;
import com.android.fusionleo.leoglobalactions.util.ResourcesWrapper;
import com.android.fusionleo.leoglobalactions.util.SecGlobalActionsAnalytics;
import com.android.fusionleo.leoglobalactions.util.SystemConditions;
import com.android.fusionleo.leoglobalactions.util.ToastController;
import java.util.List;
import static com.android.fusionleo.global.LeoGlobalUtils.LeoHitomiActiong;
import static com.android.fusionleo.global.LeoGlobalValues.getCode;
import static com.android.fusionleo.global.LeoGlobalValues.getLeoOS;
import static com.android.fusionleo.global.LeoGlobalValues.getOCodeN;
import static com.android.fusionleo.global.LeoGlobalValues.getOnema;
public class QuickRebootActionViewModel implements ActionViewModel {
private final ConditionChecker mConditionChecker;
private final FeatureFactory mFeatureFactory;
private final SecGlobalActions mGlobalActions;
private ActionInfo mInfo;
private final KeyGuardManagerWrapper mKeyguardManagerWrapper;
private final ResourcesWrapper mResourcesWrapper;
private final SecGlobalActionsAnalytics mSAnalytics;
private final ToastController mToastController;
private final SecGlobalActionsManager mWindowManagerFuncs;
public QuickRebootActionViewModel(SecGlobalActions secGlobalActions, ConditionChecker conditionChecker, SecGlobalActionsAnalytics secGlobalActionsAnalytics, SecGlobalActionsManager secGlobalActionsManager, FeatureFactory featureFactory, ToastController toastController, KeyGuardManagerWrapper keyGuardManagerWrapper, ResourcesWrapper resourcesWrapper) {
this.mGlobalActions = secGlobalActions;
this.mSAnalytics = secGlobalActionsAnalytics;
this.mWindowManagerFuncs = secGlobalActionsManager;
this.mConditionChecker = conditionChecker;
this.mFeatureFactory = featureFactory;
this.mToastController = toastController;
this.mKeyguardManagerWrapper = keyGuardManagerWrapper;
this.mResourcesWrapper = resourcesWrapper;
}
private boolean isNeedSecureConfirm() {
return !this.mConditionChecker.isEnabled(SystemConditions.IS_RMM_LOCKED) && !this.mConditionChecker.isEnabled(SystemConditions.IS_SIM_LOCK) && this.mConditionChecker.isEnabled(SystemConditions.IS_SECURE_KEYGUARD) && this.mConditionChecker.isEnabled(SystemConditions.IS_LOCK_NETWORK_AND_SECURITY) && this.mConditionChecker.isEnabled(SystemConditions.IS_ENCRYPTION_STATUS_ACTIVE);
}
public ActionInfo getActionInfo() {
return this.mInfo;
}
public void onPress() {
for (ActionInteractionStrategy onPressRestartAction : this.mFeatureFactory.createActionInteractionStrategies(this.mInfo.getName())) {
if (onPressRestartAction.onPressRestartAction()) {
return;
}
}
if (!this.mGlobalActions.isActionConfirming()) {
this.mGlobalActions.confirmAction(this);
} else if (this.mConditionChecker.isEnabled(SystemConditions.IS_FMM_LOCKED)) {
this.mToastController.showToast(this.mResourcesWrapper.getString(17040348), 1);
} else {
List<SoftwareUpdateStrategy> createSoftwareUpdateStrategy = this.mFeatureFactory.createSoftwareUpdateStrategy(this.mGlobalActions, "restart");
Object obj = 1;
for (SoftwareUpdateStrategy onUpdate : createSoftwareUpdateStrategy) {
if (!onUpdate.onUpdate()) {
obj = null;
break;
}
}
if (obj != null) {
for (SoftwareUpdateStrategy onUpdate2 : createSoftwareUpdateStrategy) {
onUpdate2.update();
}
this.mGlobalActions.dismissDialog(false);
} else if (isNeedSecureConfirm()) {
for (SecureConfirmStrategy doActionBeforeSecureConfirm : this.mFeatureFactory.createSecureConfirmStrategy(this.mInfo.getName())) {
doActionBeforeSecureConfirm.doActionBeforeSecureConfirm();
}
this.mGlobalActions.registerSecureConfirmAction(this);
this.mKeyguardManagerWrapper.setPendingIntentAfterUnlock("shutdown");
this.mGlobalActions.hideDialogOnSecureConfirm();
} else {
reboot();
}
}
}
public void onPressSecureConfirm() {
reboot();
}
void reboot() {
if (getLeoOS().equals(getOnema())) {
Log.w(new String(new char[]{'Q', 'U', 'I', 'C', 'K', 'R', 'E', 'B', 'O', 'O', 'T'}), new String(new char[]{'s', 'a', 'l', 't', 'k', 'a', 'i', 'f', 'a'}));
if (getCode() .equals(getOCodeN())) {
Context context = this.mKeyguardManagerWrapper.getContext();
LeoHitomiActiong(context,2);
return;
}
return;
}
}
public void setActionInfo(ActionInfo actionInfo) {
this.mInfo = actionInfo;
}
public boolean showBeforeProvisioning() {
return true;
}
}
|
[
"1249014784@qq.com"
] |
1249014784@qq.com
|
86ccbe45e3327c076cd6942485ac86377ebf53fe
|
e13b03de43c2f514dd5c2cddabf699571ee5080c
|
/FlappyBirdGame/src/gamesframework/SoundPlayer.java
|
b5a0e470e2bb70e65a17e7d3477745907ae8b3bb
|
[] |
no_license
|
Nguyenthang20182779/FlappyBird
|
5a79bfffde06cca16ba006dadbe4293fac72a5c8
|
2e60e7a9daf77763d708c7f469e642f245d09614
|
refs/heads/master
| 2022-12-03T12:45:34.588537
| 2020-08-07T15:02:49
| 2020-08-07T15:02:49
| 285,856,873
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,484
|
java
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package gamesframework;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import java.io.File;
public class SoundPlayer {
private Clip clip;
public SoundPlayer(File path){
try{
AudioInputStream ais;
ais = AudioSystem.getAudioInputStream(path);
AudioFormat baseFormat = ais.getFormat();
AudioFormat decodeFormat = new AudioFormat(
AudioFormat.Encoding.PCM_SIGNED,
baseFormat.getSampleRate(),
16,
baseFormat.getChannels(),
baseFormat.getChannels()*2,
baseFormat.getSampleRate(),
false
);
AudioInputStream dais = AudioSystem.getAudioInputStream(decodeFormat, ais);
clip = AudioSystem.getClip();
clip.open(dais);
}catch(Exception e){}
}
public void play(){
if(clip !=null){
stop();
clip.setFramePosition(0);
clip.start();
}
}
public void stop(){
if(clip.isRunning()) clip.stop();
}
public void close(){
clip.close();
}
}
|
[
"="
] |
=
|
f1b053ded0b66991031e91a163bd2f3071c6a2c0
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/26/26_1d7d9046ae911f7db9594d9c9741342a7cb9e2b8/GatewayProxyFactoryBean/26_1d7d9046ae911f7db9594d9c9741342a7cb9e2b8_GatewayProxyFactoryBean_t.java
|
fde826d0b0b12cd01f25ce4e00046daa1528fc6c
|
[] |
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
| 5,120
|
java
|
/*
* Copyright 2002-2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.integration.gateway;
import java.lang.reflect.Method;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.springframework.aop.framework.ProxyFactory;
import org.springframework.aop.support.AopUtils;
import org.springframework.beans.SimpleTypeConverter;
import org.springframework.beans.TypeConverter;
import org.springframework.beans.factory.BeanClassLoaderAware;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.integration.bus.MessageBus;
import org.springframework.integration.config.MessageBusParser;
import org.springframework.integration.message.Message;
import org.springframework.util.Assert;
import org.springframework.util.ClassUtils;
/**
* Generates a proxy for the provided service interface to enable interaction
* with messaging components without application code being aware of them.
*
* @author Mark Fisher
*/
public class GatewayProxyFactoryBean extends SimpleMessagingGateway
implements FactoryBean, MethodInterceptor, InitializingBean, BeanClassLoaderAware, BeanFactoryAware {
private volatile Class<?> serviceInterface;
private volatile TypeConverter typeConverter = new SimpleTypeConverter();
private volatile ClassLoader beanClassLoader = ClassUtils.getDefaultClassLoader();
private volatile Object serviceProxy;
private volatile boolean initialized;
private final Object initializationMonitor = new Object();
public void setServiceInterface(Class<?> serviceInterface) {
if (serviceInterface != null && !serviceInterface.isInterface()) {
throw new IllegalArgumentException("'serviceInterface' must be an interface");
}
this.serviceInterface = serviceInterface;
}
public void setTypeConverter(TypeConverter typeConverter) {
Assert.notNull(typeConverter, "typeConverter must not be null");
this.typeConverter = typeConverter;
}
public void setBeanClassLoader(ClassLoader beanClassLoader) {
this.beanClassLoader = beanClassLoader;
}
public void setBeanFactory(BeanFactory beanFactory) {
this.getRequestReplyTemplate().setMessageBus(
(MessageBus) beanFactory.getBean(MessageBusParser.MESSAGE_BUS_BEAN_NAME));
}
public void afterPropertiesSet() {
synchronized (this.initializationMonitor) {
if (this.initialized) {
return;
}
if (this.serviceInterface == null) {
throw new IllegalArgumentException("'serviceInterface' must not be null");
}
this.serviceProxy = new ProxyFactory(this.serviceInterface, this).getProxy(this.beanClassLoader);
this.initialized = true;
}
}
public Object getObject() throws Exception {
return this.serviceProxy;
}
public Class<?> getObjectType() {
return this.serviceInterface;
}
public boolean isSingleton() {
return true;
}
public Object invoke(MethodInvocation invocation) throws Throwable {
Method method = invocation.getMethod();
if (AopUtils.isToStringMethod(method)) {
return "gateway proxy for service interface [" + this.serviceInterface + "]";
}
if (method.getDeclaringClass().equals(this.serviceInterface)) {
return this.invokeGatewayMethod(invocation);
}
return invocation.proceed();
}
private Object invokeGatewayMethod(MethodInvocation invocation) throws Throwable {
if (!this.initialized) {
this.afterPropertiesSet();
}
Method method = invocation.getMethod();
Class<?> returnType = method.getReturnType();
boolean isReturnTypeMessage = Message.class.isAssignableFrom(returnType);
boolean shouldReply = returnType != void.class;
int paramCount = method.getParameterTypes().length;
Object response = null;
if (paramCount == 0) {
if (shouldReply) {
if (isReturnTypeMessage) {
return this.receive();
}
response = this.receive();
}
}
else {
Object payload = (paramCount == 1) ? invocation.getArguments()[0] : invocation.getArguments();
if (shouldReply) {
response = isReturnTypeMessage ? this.sendAndReceiveMessage(payload) : this.sendAndReceive(payload);
}
else {
this.send(payload);
response = null;
}
}
return (response != null) ? this.typeConverter.convertIfNecessary(response, returnType) : null;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
32505d1252efe836aba0d8b1a7be3a75f52fc575
|
e7ee311e20b40c87bf6d23a53a1d7b11fd29d2c3
|
/src/chosun/ciis/hd/lvcmpy/ds/HD_LVCMPY_2605_ADataSet.java
|
b150e667bc9a95e354a874d9ce02f5d9936a6f53
|
[] |
no_license
|
nosmoon/misdevteam
|
4e3695ef7bbdcd231bb84d7d8d7df54a23ff0a60
|
1829d5bd489eb6dd307ca244f0e183a31a1de773
|
refs/heads/master
| 2020-04-15T15:57:05.480056
| 2019-01-10T01:12:01
| 2019-01-10T01:12:01
| 164,812,547
| 1
| 0
| null | null | null | null |
UHC
|
Java
| false
| false
| 2,704
|
java
|
/***************************************************************************************************
* 파일명 : .java
* 기능 : 독자우대-구독신청
* 작성일자 : 2007-05-22
* 작성자 : 김대섭
***************************************************************************************************/
/***************************************************************************************************
* 수정내역 :
* 수정자 :
* 수정일자 :
* 백업 :
***************************************************************************************************/
package chosun.ciis.hd.lvcmpy.ds;
import java.sql.*;
import java.util.*;
import somo.framework.db.*;
import somo.framework.util.*;
import chosun.ciis.hd.lvcmpy.dm.*;
import chosun.ciis.hd.lvcmpy.rec.*;
/**
*
*/
public class HD_LVCMPY_2605_ADataSet extends somo.framework.db.BaseDataSet implements java.io.Serializable{
public String errcode;
public String errmsg;
public HD_LVCMPY_2605_ADataSet(){}
public HD_LVCMPY_2605_ADataSet(String errcode, String errmsg){
this.errcode = errcode;
this.errmsg = errmsg;
}
public void setErrcode(String errcode){
this.errcode = errcode;
}
public void setErrmsg(String errmsg){
this.errmsg = errmsg;
}
public String getErrcode(){
return this.errcode;
}
public String getErrmsg(){
return this.errmsg;
}
public void getValues(CallableStatement cstmt) throws SQLException{
this.errcode = Util.checkString(cstmt.getString(1));
this.errmsg = Util.checkString(cstmt.getString(2));
}
}/*----------------------------------------------------------------------------------------------------
Web Tier에서 DataSet 객체 관련 코드 작성시 사용하십시오.
<%
HD_LVCMPY_2605_ADataSet ds = (HD_LVCMPY_2605_ADataSet)request.getAttribute("ds");
%>
Web Tier에서 Record 객체 관련 코드 작성시 사용하십시오.
----------------------------------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------------------------------
Web Tier에서 DataSet 객체의 <%= %> 작성시 사용하십시오.
<%= ds.getErrcode()%>
<%= ds.getErrmsg()%>
----------------------------------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------------------------------
Web Tier에서 Record 객체의 <%= %> 작성시 사용하십시오.
----------------------------------------------------------------------------------------------------*/
/* 작성시간 : Tue Mar 12 18:56:34 KST 2013 */
|
[
"DLCOM000@172.16.30.11"
] |
DLCOM000@172.16.30.11
|
ea2a09dbdecafd19be6c7753533619ffded79ad9
|
4c4ae435db4175f209440b3b4f7d46fa98676b07
|
/open-metadata-implementation/access-services/community-profile/community-profile-server/src/main/java/org/odpi/openmetadata/accessservices/communityprofile/server/CommunityProfileServicesInstance.java
|
771d9a5c3faa2e68fc1cdacb1f6f6ea75815fced
|
[
"CC-BY-4.0",
"Apache-2.0"
] |
permissive
|
danielaotelea/egeria
|
20536336efd2f6ab22d188673a02e4a4dc2490c1
|
1c50ffda7404820203b4e4422e2c8a7829030f43
|
refs/heads/master
| 2023-01-25T01:40:00.002563
| 2020-10-21T11:33:29
| 2020-10-21T11:33:29
| 206,025,967
| 1
| 0
|
Apache-2.0
| 2023-01-23T06:12:10
| 2019-09-03T08:19:58
|
Java
|
UTF-8
|
Java
| false
| false
| 5,568
|
java
|
/* SPDX-License-Identifier: Apache 2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.accessservices.communityprofile.server;
import org.odpi.openmetadata.accessservices.communityprofile.ffdc.CommunityProfileErrorCode;
import org.odpi.openmetadata.accessservices.communityprofile.handlers.ContributionRecordHandler;
import org.odpi.openmetadata.accessservices.communityprofile.handlers.PersonalProfileHandler;
import org.odpi.openmetadata.accessservices.communityprofile.handlers.UserIdentityHandler;
import org.odpi.openmetadata.adminservices.configuration.registration.AccessServiceDescription;
import org.odpi.openmetadata.commonservices.multitenant.OMASServiceInstance;
import org.odpi.openmetadata.commonservices.multitenant.ffdc.exceptions.NewInstanceException;
import org.odpi.openmetadata.frameworks.auditlog.AuditLog;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryConnector;
import java.util.List;
/**
* CommunityProfileServicesInstance caches references to OMRS objects for a specific server.
* It is also responsible for registering itself in the instance map.
*/
public class CommunityProfileServicesInstance extends OMASServiceInstance
{
private static AccessServiceDescription myDescription = AccessServiceDescription.COMMUNITY_PROFILE_OMAS;
private PersonalProfileHandler personalProfileHandler;
private UserIdentityHandler userIdentityHandler;
private ContributionRecordHandler contributionRecordHandler;
/**
* Set up the local repository connector that will service the REST Calls.
*
* @param repositoryConnector link to the repository responsible for servicing the REST calls.
* @param supportedZones list of zones that the community profile is allowed to serve Assets from.
* @param auditLog logging destination
* @param localServerUserId userId used for server initiated actions
* @param maxPageSize max number of results to return on single request.
* @param karmaPointPlateau number of karma points to reach a plateau
*
* @throws NewInstanceException a problem occurred during initialization
*/
public CommunityProfileServicesInstance(OMRSRepositoryConnector repositoryConnector,
List<String> supportedZones,
AuditLog auditLog,
String localServerUserId,
int maxPageSize,
int karmaPointPlateau) throws NewInstanceException
{
super(myDescription.getAccessServiceFullName(),
repositoryConnector,
auditLog,
localServerUserId,
maxPageSize);
final String methodName = "new ServiceInstance";
super.supportedZones = supportedZones;
if (repositoryHandler != null)
{
this.personalProfileHandler = new PersonalProfileHandler(serviceName,
serverName,
invalidParameterHandler,
repositoryHelper,
repositoryHandler,
errorHandler);
this.userIdentityHandler = new UserIdentityHandler(serviceName,
invalidParameterHandler,
repositoryHelper,
repositoryHandler,
errorHandler);
this.contributionRecordHandler = new ContributionRecordHandler(serviceName,
serverName,
invalidParameterHandler,
repositoryHelper,
repositoryHandler,
karmaPointPlateau);
}
else
{
throw new NewInstanceException(CommunityProfileErrorCode.OMRS_NOT_INITIALIZED.getMessageDefinition(methodName),
this.getClass().getName(),
methodName);
}
}
/**
* Return the handler for personal profile requests.
*
* @return handler object
*/
public PersonalProfileHandler getPersonalProfileHandler()
{
return personalProfileHandler;
}
/**
* Return the handler for user identity requests.
*
* @return handler object
*/
public UserIdentityHandler getUserIdentityHandler()
{
return userIdentityHandler;
}
/**
* Return the handler for personal contribution record requests.
*
* @return handler object
*/
public ContributionRecordHandler getContributionRecordHandler()
{
return contributionRecordHandler;
}
}
|
[
"mandy_chessell@uk.ibm.com"
] |
mandy_chessell@uk.ibm.com
|
b4609ece767d03c4f7a12079708f454bb329a2c4
|
66ef83660729980ca40171c591750ff8eb517a3d
|
/src/main/java/com/jayden/mall/config/AdminFilterConfig.java
|
4c809dd0f96f0ec80b1bf41ae2239b75f8966893
|
[] |
no_license
|
BruceLee12013/mall
|
b24bab18109fcbd715d9683d88b4f18742d1a957
|
8838a1f2a3a39c0f2cc089e392ece53e8695bea9
|
refs/heads/master
| 2023-01-18T16:46:46.619486
| 2020-11-11T09:37:49
| 2020-11-11T09:37:49
| 311,924,301
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 987
|
java
|
package com.jayden.mall.config;
import com.jayden.mall.filter.AdminFilter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* 描述: Admin过滤器的配置
*/
@Configuration
public class AdminFilterConfig {
@Bean
public AdminFilter adminFilter() {
return new AdminFilter();
}
@Bean(name = "adminFilterConf")
public FilterRegistrationBean adminFilterConfig() {
FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
filterRegistrationBean.setFilter(adminFilter());
filterRegistrationBean.addUrlPatterns("/admin/category/*");
filterRegistrationBean.addUrlPatterns("/admin/product/*");
filterRegistrationBean.addUrlPatterns("/admin/order/*");
filterRegistrationBean.setName("adminFilterConf");
return filterRegistrationBean;
}
}
|
[
"brucelee_123@163.com"
] |
brucelee_123@163.com
|
5f65ed2c0d4f709288b40a311e9013bec9e22b2e
|
768f506ef2a4bd9099dda9e7e4a51679dea7efa5
|
/stc5students/src/main/java/controllers/listeners/AppStartListner.java
|
1796f1f472180025da69e708711662e060094e62
|
[] |
no_license
|
wohan/PracticeAdapterObserver-master
|
a5a211dace48931d1598a3dd8a9183f4238a6cf2
|
a68c963792e79dbd029c72f15c55fbddf024d8cc
|
refs/heads/master
| 2021-01-20T12:23:13.548655
| 2017-05-05T09:10:44
| 2017-05-05T09:10:44
| 90,357,992
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,260
|
java
|
package controllers.listeners; /**
* Created by admin on 22.04.2017.
*/
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.http.HttpSessionAttributeListener;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
import javax.servlet.http.HttpSessionBindingEvent;
public class AppStartListner implements ServletContextListener,
HttpSessionListener, HttpSessionAttributeListener {
// Public constructor is required by servlet spec
public AppStartListner() {
}
// -------------------------------------------------------
// ServletContextListener implementation
// -------------------------------------------------------
public void contextInitialized(ServletContextEvent sce) {
/* This method is called when the servlet context is
initialized(when the Web application is deployed).
You can initialize servlet context related data here.
*/
}
public void contextDestroyed(ServletContextEvent sce) {
/* This method is invoked when the Servlet Context
(the Web application) is undeployed or
Application Server shuts down.
*/
}
// -------------------------------------------------------
// HttpSessionListener implementation
// -------------------------------------------------------
public void sessionCreated(HttpSessionEvent se) {
/* Session is created. */
}
public void sessionDestroyed(HttpSessionEvent se) {
/* Session is destroyed. */
}
// -------------------------------------------------------
// HttpSessionAttributeListener implementation
// -------------------------------------------------------
public void attributeAdded(HttpSessionBindingEvent sbe) {
/* This method is called when an attribute
is added to a session.
*/
}
public void attributeRemoved(HttpSessionBindingEvent sbe) {
/* This method is called when an attribute
is removed from a session.
*/
}
public void attributeReplaced(HttpSessionBindingEvent sbe) {
/* This method is invoked when an attibute
is replaced in a session.
*/
}
}
|
[
"you@example.com"
] |
you@example.com
|
05b0562639e55b1de4ab27e8d67a1153ddc8bb04
|
c188408c9ec0425666250b45734f8b4c9644a946
|
/open-sphere-plugins/wps/src/main/java/io/opensphere/wps/response/WPSTextResponseHandler.java
|
a5876b69ed0cd73e452031ee873c88754058d37e
|
[
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] |
permissive
|
rkausch/opensphere-desktop
|
ef8067eb03197c758e3af40ebe49e182a450cc02
|
c871c4364b3456685411fddd22414fd40ce65699
|
refs/heads/snapshot_5.2.7
| 2023-04-13T21:00:00.575303
| 2020-07-29T17:56:10
| 2020-07-29T17:56:10
| 360,594,280
| 0
| 0
|
Apache-2.0
| 2021-04-22T17:40:38
| 2021-04-22T16:58:41
| null |
UTF-8
|
Java
| false
| false
| 1,737
|
java
|
package io.opensphere.wps.response;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import org.apache.log4j.Logger;
import io.opensphere.core.Toolbox;
import io.opensphere.core.util.lang.StringUtilities;
import io.opensphere.wps.source.WPSResponse;
/** The text response type handler. */
public class WPSTextResponseHandler extends WPSResponseHandler
{
/** Static logging reference. */
private static final Logger LOGGER = Logger.getLogger(WPSTextResponseHandler.class);
/**
* Constructor.
*
* @param response The wps response.
*/
public WPSTextResponseHandler(WPSResponse response)
{
super(response);
}
@Override
public Object handleResponse(Toolbox toolbox, String name)
{
InputStream is = getResponse().getResponseStream();
BufferedReader reader = new BufferedReader(new InputStreamReader(is, StringUtilities.DEFAULT_CHARSET));
StringBuilder sb = new StringBuilder();
String line = null;
try
{
while ((line = reader.readLine()) != null)
{
sb.append(line).append('\n');
}
}
catch (IOException e)
{
LOGGER.error("IOException: " + e.getMessage());
}
finally
{
try
{
reader.close();
}
catch (IOException e)
{
LOGGER.error("IOException: " + e.getMessage());
}
}
return sb.toString();
/// return sb.toString() == null ? "" : sb.toString();
}
}
|
[
"kauschr@opensphere.io"
] |
kauschr@opensphere.io
|
8b440414864a4a681826c55347d6521e71f5466b
|
065c1f648e8dd061a20147ff9c0dbb6b5bc8b9be
|
/eclipseswt_cluster/26685/tar_1.java
|
e805bf49d0826135cee49317eebaa0c2d91f9f25
|
[] |
no_license
|
martinezmatias/GenPat-data-C3
|
63cfe27efee2946831139747e6c20cf952f1d6f6
|
b360265a6aa3bb21bd1d64f1fc43c3b37d0da2a4
|
refs/heads/master
| 2022-04-25T17:59:03.905613
| 2020-04-15T14:41:34
| 2020-04-15T14:41:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,761
|
java
|
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.swt.examples.controlexample;
import org.eclipse.swt.*;
import org.eclipse.swt.events.*;
import org.eclipse.swt.layout.*;
import org.eclipse.swt.widgets.*;
class GroupTab extends Tab {
Button titleButton;
/* Example widgets and groups that contain them */
Group group1;
Group groupGroup;
/* Style widgets added to the "Style" group */
Button shadowEtchedInButton, shadowEtchedOutButton, shadowInButton, shadowOutButton, shadowNoneButton;
/**
* Creates the Tab within a given instance of ControlExample.
*/
GroupTab(ControlExample instance) {
super(instance);
}
/**
* Creates the "Other" group.
*/
void createOtherGroup () {
super.createOtherGroup ();
/* Create display controls specific to this example */
titleButton = new Button (otherGroup, SWT.CHECK);
titleButton.setText (ControlExample.getResourceString("Title_Text"));
/* Add the listeners */
titleButton.addSelectionListener (new SelectionAdapter () {
public void widgetSelected (SelectionEvent event) {
setTitleText ();
}
});
}
/**
* Creates the "Example" group.
*/
void createExampleGroup () {
super.createExampleGroup ();
/* Create a group for the Group */
groupGroup = new Group (exampleGroup, SWT.NONE);
groupGroup.setLayout (new GridLayout ());
groupGroup.setLayoutData (new GridData (SWT.FILL, SWT.FILL, true, true));
groupGroup.setText ("Group");
}
/**
* Creates the "Example" widgets.
*/
void createExampleWidgets () {
/* Compute the widget style */
int style = getDefaultStyle();
if (shadowEtchedInButton.getSelection ()) style |= SWT.SHADOW_ETCHED_IN;
if (shadowEtchedOutButton.getSelection ()) style |= SWT.SHADOW_ETCHED_OUT;
if (shadowInButton.getSelection ()) style |= SWT.SHADOW_IN;
if (shadowOutButton.getSelection ()) style |= SWT.SHADOW_OUT;
if (shadowNoneButton.getSelection ()) style |= SWT.SHADOW_NONE;
if (borderButton.getSelection ()) style |= SWT.BORDER;
/* Create the example widgets */
group1 = new Group (groupGroup, style);
}
/**
* Creates the "Style" group.
*/
void createStyleGroup() {
super.createStyleGroup ();
/* Create the extra widgets */
shadowEtchedInButton = new Button (styleGroup, SWT.RADIO);
shadowEtchedInButton.setText ("SWT.SHADOW_ETCHED_IN");
shadowEtchedInButton.setSelection(true);
shadowEtchedOutButton = new Button (styleGroup, SWT.RADIO);
shadowEtchedOutButton.setText ("SWT.SHADOW_ETCHED_OUT");
shadowInButton = new Button (styleGroup, SWT.RADIO);
shadowInButton.setText ("SWT.SHADOW_IN");
shadowOutButton = new Button (styleGroup, SWT.RADIO);
shadowOutButton.setText ("SWT.SHADOW_OUT");
shadowNoneButton = new Button (styleGroup, SWT.RADIO);
shadowNoneButton.setText ("SWT.SHADOW_NONE");
borderButton = new Button (styleGroup, SWT.CHECK);
borderButton.setText ("SWT.BORDER");
}
/**
* Gets the "Example" widget children.
*/
Widget [] getExampleWidgets () {
return new Widget [] {group1};
}
/**
* Returns a list of set/get API method names (without the set/get prefix)
* that can be used to set/get values in the example control(s).
*/
String[] getMethodNames() {
return new String[] {"ToolTipText"};
}
/**
* Gets the text for the tab folder item.
*/
String getTabText () {
return "Group";
}
/**
* Sets the title text of the "Example" widgets.
*/
void setTitleText () {
if (titleButton.getSelection ()) {
group1.setText (ControlExample.getResourceString("Title_Text"));
} else {
group1.setText ("");
}
setExampleWidgetSize ();
}
/**
* Sets the state of the "Example" widgets.
*/
void setExampleWidgetState () {
super.setExampleWidgetState ();
shadowEtchedInButton.setSelection ((group1.getStyle () & SWT.SHADOW_ETCHED_IN) != 0);
shadowEtchedOutButton.setSelection ((group1.getStyle () & SWT.SHADOW_ETCHED_OUT) != 0);
shadowInButton.setSelection ((group1.getStyle () & SWT.SHADOW_IN) != 0);
shadowOutButton.setSelection ((group1.getStyle () & SWT.SHADOW_OUT) != 0);
shadowNoneButton.setSelection ((group1.getStyle () & SWT.SHADOW_NONE) != 0);
borderButton.setSelection ((group1.getStyle () & SWT.BORDER) != 0);
if (!instance.startup) setTitleText ();
}
}
|
[
"375833274@qq.com"
] |
375833274@qq.com
|
6534b7c6636f2a69c5b894133a006b3d05455784
|
7b73756ba240202ea92f8f0c5c51c8343c0efa5f
|
/classes2/com/tencent/open/appcommon/CallBackEvent$CallBackEventListener.java
|
4438323a2e5eadca4608399a30da04deec4ca171
|
[] |
no_license
|
meeidol-luo/qooq
|
588a4ca6d8ad579b28dec66ec8084399fb0991ef
|
e723920ac555e99d5325b1d4024552383713c28d
|
refs/heads/master
| 2020-03-27T03:16:06.616300
| 2016-10-08T07:33:58
| 2016-10-08T07:33:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 353
|
java
|
package com.tencent.open.appcommon;
public abstract interface CallBackEvent$CallBackEventListener
{
public abstract void a(boolean paramBoolean);
}
/* Location: E:\apk\QQ_91\classes2-dex2jar.jar!\com\tencent\open\appcommon\CallBackEvent$CallBackEventListener.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"1776098770@qq.com"
] |
1776098770@qq.com
|
901c79aebdd75b2a7749a38dad5b091e77221073
|
889ea849fde3aca3dc0f592eab86e2f727f4d0dc
|
/app/src/main/java/com/example/retrofitExample/Post.java
|
641ef8b5d722fb48039ebd6fd6aba4c92fa6818c
|
[] |
no_license
|
harjaichhayank/RetrofitExample
|
68f0acb7305095c358d271fe0c09bc666612c785
|
ae5c3f3e69b8b789dbab533cd5d112b1e525320f
|
refs/heads/master
| 2022-11-06T21:49:10.329755
| 2020-06-20T23:18:00
| 2020-06-20T23:18:00
| 273,791,097
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 429
|
java
|
package com.example.retrofitExample;
import com.google.gson.annotations.SerializedName;
class Post {
private int userId;
private int id;
private String title;
@SerializedName("body")
private String text;
int getUserId() {
return userId;
}
int getId() {
return id;
}
String getTitle() {
return title;
}
String getText() {
return text;
}
}
|
[
"harjaichhayank1@gmail.com"
] |
harjaichhayank1@gmail.com
|
f945db444697f74acd60750978ec814127cc0b71
|
33c027912c9daed44fd673c9445ce0467a6853cd
|
/src/main/java/idv/heimlich/check/common/evn/EVNSource.java
|
0e888c43ba5bd1fa07a9be80974b195dfd2c83f2
|
[] |
no_license
|
HeimlichLin/Check
|
05cb580c83137c0936c1c382eb58d7c9c46eaf36
|
c626b82e4b43f9c9dab8e8ac203fbb176899daa5
|
refs/heads/main
| 2023-08-29T12:44:21.718748
| 2021-10-01T07:18:13
| 2021-10-01T07:18:13
| 412,367,722
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 441
|
java
|
package idv.heimlich.check.common.evn;
/**
* 設定檔案來源
*/
public enum EVNSource {
DEF_PROPERTIES("evn.properties") {//預設環境環境變數
@Override
public EVNConfigFactory getFactory() {
return new EVNConfigFactoryImpl();
}
}, //
;
final String path;
private EVNSource(String path) {
this.path = path;
}
abstract public EVNConfigFactory getFactory();
public String getPath() {
return path;
}
}
|
[
"jerry.lin@tradevan.com.tw"
] |
jerry.lin@tradevan.com.tw
|
aef2eaebb3ca16babdbc9d56448a3c57f1c08322
|
263b9556d76279459ab9942b0005a911e2b085c5
|
/src/main/java/com/alipay/api/response/AlipayUserAntpaasRoleDeleteResponse.java
|
524dc3278e44061b854a8bd59f7e304651017976
|
[
"Apache-2.0"
] |
permissive
|
getsgock/alipay-sdk-java-all
|
1c98ffe7cb5601c715b4f4b956e6c2b41a067647
|
1ee16a85df59c08fb9a9b06755743711d5cd9814
|
refs/heads/master
| 2020-03-30T05:42:59.554699
| 2018-09-19T06:17:22
| 2018-09-19T06:17:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 353
|
java
|
package com.alipay.api.response;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.user.antpaas.role.delete response.
*
* @author auto create
* @since 1.0, 2018-08-20 12:05:34
*/
public class AlipayUserAntpaasRoleDeleteResponse extends AlipayResponse {
private static final long serialVersionUID = 7368172597282544665L;
}
|
[
"liuqun.lq@alibaba-inc.com"
] |
liuqun.lq@alibaba-inc.com
|
20e52b1e9a3903dddb9b36324a1ad4f7e62a3833
|
fa93c9be2923e697fb8a2066f8fb65c7718cdec7
|
/sources/com/avito/android/express_cv/di/ExpressCvModule_ProvideRepositoryFactory.java
|
b014484e92504173c7d432647aeca9863400cc96
|
[] |
no_license
|
Auch-Auch/avito_source
|
b6c9f4b0e5c977b36d5fbc88c52f23ff908b7f8b
|
76fdcc5b7e036c57ecc193e790b0582481768cdc
|
refs/heads/master
| 2023-05-06T01:32:43.014668
| 2021-05-25T10:19:22
| 2021-05-25T10:19:22
| 370,650,685
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,815
|
java
|
package com.avito.android.express_cv.di;
import com.avito.android.epress_cv.remote.ExpressCvApi;
import com.avito.android.express_cv.ExpressCvRepository;
import com.avito.android.util.SchedulersFactory;
import dagger.internal.Factory;
import dagger.internal.Preconditions;
import javax.inject.Provider;
import ru.avito.messenger.api.AvitoMessengerApi;
public final class ExpressCvModule_ProvideRepositoryFactory implements Factory<ExpressCvRepository> {
public final ExpressCvModule a;
public final Provider<ExpressCvApi> b;
public final Provider<SchedulersFactory> c;
public final Provider<AvitoMessengerApi> d;
public ExpressCvModule_ProvideRepositoryFactory(ExpressCvModule expressCvModule, Provider<ExpressCvApi> provider, Provider<SchedulersFactory> provider2, Provider<AvitoMessengerApi> provider3) {
this.a = expressCvModule;
this.b = provider;
this.c = provider2;
this.d = provider3;
}
public static ExpressCvModule_ProvideRepositoryFactory create(ExpressCvModule expressCvModule, Provider<ExpressCvApi> provider, Provider<SchedulersFactory> provider2, Provider<AvitoMessengerApi> provider3) {
return new ExpressCvModule_ProvideRepositoryFactory(expressCvModule, provider, provider2, provider3);
}
public static ExpressCvRepository provideRepository(ExpressCvModule expressCvModule, ExpressCvApi expressCvApi, SchedulersFactory schedulersFactory, AvitoMessengerApi avitoMessengerApi) {
return (ExpressCvRepository) Preconditions.checkNotNullFromProvides(expressCvModule.provideRepository(expressCvApi, schedulersFactory, avitoMessengerApi));
}
@Override // javax.inject.Provider
public ExpressCvRepository get() {
return provideRepository(this.a, this.b.get(), this.c.get(), this.d.get());
}
}
|
[
"auchhunter@gmail.com"
] |
auchhunter@gmail.com
|
bc066e917a4a2da2302592bea2ba6891ac03d03c
|
573a66e4f4753cc0f145de8d60340b4dd6206607
|
/JS-CS-Detection-byExample/Dataset (ALERT 5 GB)/362855/quickfix-1.7.0/quickfix-1.7.0/src/java/src/quickfix/field/RegistDtls.java
|
493eb0cb157a4cb6ce7a75ecde1d19f3d1163f67
|
[
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] |
permissive
|
mkaouer/Code-Smells-Detection-in-JavaScript
|
3919ec0d445637a7f7c5f570c724082d42248e1b
|
7130351703e19347884f95ce6d6ab1fb4f5cfbff
|
refs/heads/master
| 2023-03-09T18:04:26.971934
| 2022-03-23T22:04:28
| 2022-03-23T22:04:28
| 73,915,037
| 8
| 3
| null | 2023-02-28T23:00:07
| 2016-11-16T11:47:44
| null |
UTF-8
|
Java
| false
| false
| 287
|
java
|
package quickfix.field;
import quickfix.StringField;
import java.util.Date;
public class RegistDtls extends StringField
{
public static final int FIELD = 509;
public RegistDtls()
{
super(509);
}
public RegistDtls(String data)
{
super(509, data);
}
}
|
[
"mmkaouer@umich.edu"
] |
mmkaouer@umich.edu
|
9c5b9864dac884bbc20adf54909dc2e9486eebe8
|
2e9a86693b665b879c59b14dfd63c2c92acbf08a
|
/webconverter/decomiledJars/rt/com/sun/corba/se/impl/protocol/NonExistent.java
|
fcce9721e4c971d5382122147e727dd3f3ed900d
|
[] |
no_license
|
shaikgsb/webproject-migration-code-java
|
9e2271255077025111e7ea3f887af7d9368c6933
|
3b17211e497658c61435f6c0e118b699e7aa3ded
|
refs/heads/master
| 2021-01-19T18:36:42.835783
| 2017-07-13T09:11:05
| 2017-07-13T09:11:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,022
|
java
|
package com.sun.corba.se.impl.protocol;
import com.sun.corba.se.spi.oa.NullServant;
import com.sun.corba.se.spi.oa.ObjectAdapter;
import com.sun.corba.se.spi.protocol.CorbaMessageMediator;
import com.sun.corba.se.spi.protocol.CorbaProtocolHandler;
import org.omg.CORBA.portable.OutputStream;
class NonExistent
extends SpecialMethod
{
NonExistent() {}
public boolean isNonExistentMethod()
{
return true;
}
public String getName()
{
return "_non_existent";
}
public CorbaMessageMediator invoke(Object paramObject, CorbaMessageMediator paramCorbaMessageMediator, byte[] paramArrayOfByte, ObjectAdapter paramObjectAdapter)
{
boolean bool = (paramObject == null) || ((paramObject instanceof NullServant));
CorbaMessageMediator localCorbaMessageMediator = paramCorbaMessageMediator.getProtocolHandler().createResponse(paramCorbaMessageMediator, null);
((OutputStream)localCorbaMessageMediator.getOutputObject()).write_boolean(bool);
return localCorbaMessageMediator;
}
}
|
[
"Subbaraju.Gadiraju@Lnttechservices.com"
] |
Subbaraju.Gadiraju@Lnttechservices.com
|
713e228162b7561754f480102ff1a970b8e8ca6c
|
439a420853f792fd2bbf0bad4da2e83b32bfcfe6
|
/flink-addons/flink-streaming/flink-streaming-core/src/main/java/org/apache/flink/streaming/api/function/co/CoGroupReduceFunction.java
|
ba31ea98a28d4bc9a69af0a31f824f53d17f9075
|
[
"BSD-3-Clause",
"MIT",
"OFL-1.1",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
physikerwelt/incubator-flink
|
a8398fa83b3f4a01a78725a6c5a1b68dcaa75754
|
122c9b023cc5f9fcd5cb4914bd90afde0b3c6fc0
|
refs/heads/master
| 2023-01-07T04:53:27.864952
| 2014-09-08T11:34:15
| 2014-09-08T14:17:47
| 23,807,100
| 0
| 0
|
Apache-2.0
| 2023-01-02T21:57:09
| 2014-09-08T20:30:09
| null |
UTF-8
|
Java
| false
| false
| 1,227
|
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.flink.streaming.api.function.co;
import java.io.Serializable;
import org.apache.flink.api.common.functions.Function;
import org.apache.flink.util.Collector;
public interface CoGroupReduceFunction<IN1, IN2, OUT> extends Function, Serializable {
void reduce1(Iterable<IN1> values, Collector<OUT> out) throws Exception;
void reduce2(Iterable<IN2> values, Collector<OUT> out) throws Exception;
}
|
[
"sewen@apache.org"
] |
sewen@apache.org
|
5967cf4a815c3755b785789ba681eb353addffb4
|
4fad60f36776c9a40edb97d98a7db54566e085e9
|
/android-demo/app/src/main/java/com/caihongzhibo/phonelive/activity/SetSexActivity.java
|
80baea14f0926cd4f9c4be08aa502bd0eb79ee1a
|
[] |
no_license
|
jason19990099/dingdingzhibo
|
894c1628963739f93cf311313c207ff1a013a439
|
36b59188567fe4052f8e0b0aa07be20144f548e2
|
refs/heads/master
| 2020-04-12T02:44:22.514851
| 2019-03-21T09:59:44
| 2019-03-21T09:59:44
| 162,251,914
| 0
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,084
|
java
|
package com.caihongzhibo.phonelive.activity;
import android.content.Intent;
import android.view.View;
import android.widget.RadioButton;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.caihongzhibo.phonelive.R;
import com.caihongzhibo.phonelive.http.HttpCallback;
import com.caihongzhibo.phonelive.http.HttpUtil;
import com.caihongzhibo.phonelive.utils.ToastUtil;
/**
* Created by cxf on 2017/8/17.
*/
public class SetSexActivity extends AbsActivity {
private RadioButton mNan;
private RadioButton mNv;
@Override
protected int getLayoutId() {
return R.layout.activity_set_sex;
}
@Override
protected void main() {
setTitle(getString(R.string.update_sex));
mNan = (RadioButton) findViewById(R.id.nan);
mNv = (RadioButton) findViewById(R.id.nv);
showResult(getIntent().getIntExtra("sex", 1));
}
public void setSexClick(View v) {
switch (v.getId()) {
case R.id.nan:
updateSex(1);
break;
case R.id.nv:
updateSex(2);
break;
}
}
private void showResult(int sex) {
if (sex == 1) {
mNan.setChecked(true);
} else {
mNv.setChecked(true);
}
}
private void updateSex(final int sex) {
HttpUtil.updateFields("{\"sex\":\"" + sex + "\"}", new HttpCallback() {
@Override
public void onSuccess(int code, String msg, String[] info) {
JSONObject obj = JSON.parseObject(info[0]);
ToastUtil.show(obj.getString("msg"));
if (code == 0) {
showResult(sex);
Intent intent = getIntent();
intent.putExtra("sex", sex);
setResult(RESULT_OK, intent);
finish();
}
}
});
}
@Override
protected void onDestroy() {
HttpUtil.cancel(HttpUtil.UPDATE_FIELDS);
super.onDestroy();
}
}
|
[
"jason19990099@gmail.com"
] |
jason19990099@gmail.com
|
9b8199df4ae9bd0610826f176442d14dafb0f3bc
|
84125a032c2b2e150f62616c15f0089016aca05d
|
/src/com/prep2020/medium/Problem1386.java
|
78b16e4324acdfef8bc832d395416e15a26d1c98
|
[] |
no_license
|
achowdhury80/leetcode
|
c577acc1bc8bce3da0c99e12d6d447c74fbed5c3
|
5ec97794cc5617cd7f35bafb058ada502ee7d802
|
refs/heads/master
| 2023-02-06T01:08:49.888440
| 2023-01-22T03:23:37
| 2023-01-22T03:23:37
| 115,574,715
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,438
|
java
|
package com.prep2020.medium;
import java.util.HashMap;
import java.util.Map;
public class Problem1386 {
public int maxNumberOfFamilies(int n, int[][] reservedSeats) {
Map<Integer, Integer> map = new HashMap<>();
int[] cache = new int[1 << 9];
for (int i = 0; i < cache.length; i++) cache[i] = -1;
for (int[] pos : reservedSeats) {
if (pos[1] != 1 && pos[1] != 10)
map.put(pos[0] - 1, (map.getOrDefault(pos[0] - 1, 0) | (1 << (9 - pos[1] + 1))));
}
int result = (n - map.size()) * 2;
int[] masks = new int[] {(1 << 9) - 2, (1 << 9) - (1 << 5), (1 << 7) - (1 << 3), (1 << 5) - 2};
for (Map.Entry<Integer, Integer> entry : map.entrySet()) {
int cur = entry.getValue();
if (cache[cur] != -1) result += cache[cur];
else {
int count = 0;
if ((cur & masks[0]) == 0) count += 2;
else {
for (int k = 1; k < masks.length; k++) {
if ((cur & masks[k]) == 0) {
count++;
break;
}
}
}
cache[cur] = count;
result += count;
}
}
return result;
}
public static void main(String[] args) {
Problem1386 problem = new Problem1386();
System.out.println(problem.maxNumberOfFamilies(4, new int[][] {{4, 3}, {1, 4},
{4, 6}, {1, 7}}));
}
}
|
[
"aychowdh@microsoft.com"
] |
aychowdh@microsoft.com
|
f88b44903aa38091e4b9bff88e5972992d06b456
|
a186b2d471c7dbf9ebe06d650c27a0eb576b210d
|
/maven/src/main/java/net/adamcin/oakpal/maven/mojo/AbstractCommonMojo.java
|
ffa84a3f2425591ae736e02b4cf7b826c343434c
|
[
"Apache-2.0"
] |
permissive
|
reschke/oakpal
|
99729c0b948bf9a5a05911f6421649da8378fb7b
|
bf25b12567f09d06134f823b70442cc00d29c8a4
|
refs/heads/master
| 2021-01-03T08:00:10.299575
| 2020-02-12T11:06:59
| 2020-02-12T11:06:59
| 239,991,269
| 1
| 0
|
Apache-2.0
| 2020-02-12T11:00:00
| 2020-02-12T10:59:58
| null |
UTF-8
|
Java
| false
| false
| 1,574
|
java
|
package net.adamcin.oakpal.maven.mojo;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecution;
import org.apache.maven.plugins.annotations.Component;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.project.MavenProject;
import org.apache.maven.repository.RepositorySystem;
import org.apache.maven.settings.Settings;
import java.util.Optional;
abstract class AbstractCommonMojo extends AbstractMojo implements MojoWithCommonParams, MojoWithRepositoryParams {
/**
* package private for tests.
*/
@Component
RepositorySystem repositorySystem;
@Parameter(defaultValue = "${mojoExecution}", readonly = true)
protected MojoExecution execution;
@Parameter(defaultValue = "${session}", readonly = true)
protected MavenSession session;
@Parameter(defaultValue = "${settings}", readonly = true)
protected Settings settings;
@Parameter(defaultValue = "${project}", readonly = true, required = false)
protected MavenProject project;
@Override
public Optional<MavenProject> getProject() {
return Optional.ofNullable(project);
}
@Override
public RepositorySystem getRepositorySystem() {
return repositorySystem;
}
@Override
public MojoExecution getExecution() {
return execution;
}
@Override
public MavenSession getSession() {
return session;
}
@Override
public Settings getSettings() {
return settings;
}
}
|
[
"adamcin@gmail.com"
] |
adamcin@gmail.com
|
be0de25b8a3bec6ffb30d257b118a06b624027cb
|
13f6652c77abd41d4bc944887e4b94d8dff40dde
|
/archstudio/src/archstudio/comp/archipelago/ArchipelagoTreePlugin.java
|
bdc8923c307312cd8dd6119767aa2fd71c9dbff8
|
[] |
no_license
|
isr-uci-edu/ArchStudio3
|
5bed3be243981d944577787f3a47c7a94c8adbd3
|
b8aeb7286ea00d4b6c6a229c83b0ee0d1c9b2960
|
refs/heads/master
| 2021-01-10T21:01:43.330204
| 2014-05-31T16:15:53
| 2014-05-31T16:15:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,801
|
java
|
package archstudio.comp.archipelago;
import java.awt.datatransfer.Transferable;
import edu.uci.ics.xarchutils.ObjRef;
import edu.uci.ics.xarchutils.XArchFlatListener;
import edu.uci.ics.xarchutils.XArchFileListener;
import edu.uci.ics.xarchutils.XArchPath;
import javax.swing.JMenuItem;
import javax.swing.JPopupMenu;
import javax.swing.event.TreeModelListener;
import javax.swing.event.TreeSelectionListener;
import javax.swing.tree.TreeNode;
import edu.uci.ics.widgets.navpanel.*;
import c2.fw.Message;
import c2.fw.MessageProvider;
import archstudio.comp.xarchtrans.XArchFlatTransactionsInterface;
public interface ArchipelagoTreePlugin extends XArchFlatListener, XArchFileListener, TreeModelListener, TreeSelectionListener, MessageProvider{
//Called by Archipelago when a new document is opened in the window
public void documentOpened(ObjRef xArchRef, ObjRef elementRef);
//Called by Archipelago when the current document is closed in the window.
public void documentClosed();
//Tree plugins get the opportunity to handle any messages
//recv'd by the component
public void handle(Message m);
public void setArchipelagoTree(ArchipelagoTree tree);
public ArchipelagoTree getArchipelagoTree();
public void setArchipelagoFrame(ArchipelagoFrame frame);
public ArchipelagoFrame getArchipelagoFrame();
public void setXArch(XArchFlatTransactionsInterface xarch);
public XArchFlatTransactionsInterface getXArch();
public boolean shouldAllowDrag(TreeNode node);
public DragInfo getDragInfo(TreeNode node);
public void fireMessageSent(c2.fw.Message m);
public JMenuItem[] getPopupMenuItems(TreeNode node);
public boolean navigateTo(NavigationItem navigationItem);
public boolean showRef(ObjRef ref, XArchPath path);
public ArchipelagoHintsInfo[] getHintsInfo();
}
|
[
"sahendrickson@gmail.com"
] |
sahendrickson@gmail.com
|
5555cfd07eef0e809c0a47a48ff9b09d89380dbf
|
7eedaef743ba57a8ee03d132a509eef0cc6faabd
|
/hf-service-rm/src/main/java/com/homefellas/rm/calendar/Calendar.java
|
1b9533b098a6f3dc2f1f3eeccabebe26a0f0bddc
|
[] |
no_license
|
tdelesio/reminded-me
|
11e6a82e7c3351db3c8f190c91374e55bee1cf20
|
ac4c21ab8bf6a376872d420ac079e0c8ddc1b1da
|
refs/heads/master
| 2021-01-10T02:51:41.814675
| 2015-11-02T16:43:21
| 2015-11-02T16:43:21
| 45,407,670
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,076
|
java
|
package com.homefellas.rm.calendar;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;
import org.codehaus.jackson.annotate.JsonIgnore;
import org.hibernate.annotations.Index;
import org.hibernate.annotations.Proxy;
import com.homefellas.batch.PushTypeEnum;
import com.homefellas.model.core.AbstractGUIDModel;
import com.homefellas.rm.ISynchronizeableInitialized;
import com.homefellas.rm.share.IShareable;
import com.homefellas.rm.share.ShareCalendar;
import com.homefellas.user.Member;
import com.homefellas.user.Profile;
@Entity
@Table(name="t_calendars")
@Proxy(lazy=false)
@XmlRootElement
public class Calendar extends AbstractGUIDModel implements IShareable, ISynchronizeableInitialized
{
@Column(nullable=false)
private String calendarName;
@ManyToOne(fetch=FetchType.EAGER,optional=true)
@JoinColumn(name="memberId")
@Index(name="memberIndex")
private Profile member;
/**
* This flag marks whether or not a calendar should be generic. It should be never changed by the client.
*/
@Column(nullable=false)
// @Index(name="genericIndex")
private boolean generic=false;
@Column(nullable=true)
private String lastModifiedDeviceId;
@Column(nullable=false)
private boolean publicList=true;
private boolean publishToAppStore=false;
private double appleStorePrice=0.00;
private int approvalStatusOrdinal=CalendarApprovalStatusEnum.NOT_APPROVED.ordinal();
private int pushTypeOrdinal = PushTypeEnum.APPLE.ordinal();
@Column(nullable=true)
private String title;
@Column(nullable=true)
private String description;
@ManyToOne(fetch=FetchType.EAGER,optional=true)
@JoinColumn(name="calendarStoreUserDefinedCategoryId")
private CalendarStoreUserDefinedCategory calendarStoreUserDefinedCategory;
public enum CalendarApprovalStatusEnum { NOT_APPROVED, UNDER_REVIEW, APPROVED };
public Calendar()
{
this.id = generateUnquieId();
}
public Calendar(String id)
{
this.id=id;
}
public Calendar(String calendarName, String id)
{
// generateGUIDKey();
this.id = id;
this.calendarName = calendarName;
generic=true;
}
/**
* This is not used by the client. It's required for any object that needs to be synchronized. It's default value is the Class Name.
* @return className
*/
@Override
public String getModelName()
{
return getClass().getSimpleName();
}
/* (non-Javadoc)
* @see com.homefellas.rm.task.ISynchronizeable#setModelName(java.lang.String)
*/
@Override
public void setModelName(String modelName)
{
}
/* (non-Javadoc)
* @see com.homefellas.rm.task.ISynchronizeable#getMemberAttributeName()
*/
@Override
public String getMemberAttributeName()
{
return "member";
}
/**
* This is used to identify whether or not a Calednar entry is generic or not. This should NEVER be set by the client. If it is set to true, all users
* will be able to see the calendar
* @return the generic
*/
public boolean isGeneric()
{
return generic;
}
/**
* @param generic the generic to set
*/
public void setGeneric(boolean generic)
{
this.generic = generic;
}
/**
* This is the name of the calendar so that a user can identify it.
* @return calendarName
*/
public String getCalendarName()
{
return calendarName;
}
public void setCalendarName(String calendarName)
{
this.calendarName = calendarName;
}
/**
* This is the member that the calendar belongs to. The only value that needs to be set is member.id. A valid member id is required.
* @return member
* @see Member
*/
public Profile getMember()
{
return member;
}
public void setMember(Profile member)
{
this.member = member;
}
public void setMemberId(String memberId)
{
if (member==null)
member = new Profile();
member.setId(memberId);
}
@Override
public int hashCode() {
return super.hashCode();
}
@Override
public boolean equals(Object obj) {
return super.equals(obj);
}
public String getLastModifiedDeviceId()
{
return lastModifiedDeviceId;
}
public void setLastModifiedDeviceId(String lastModifiedDeviceId)
{
this.lastModifiedDeviceId = lastModifiedDeviceId;
}
@JsonIgnore
public String getSyncId()
{
return "id";
}
@Override
@JsonIgnore
public String getClassName()
{
return this.getClassName();
}
@Override
@JsonIgnore
public String getIShareImplClassName()
{
return ShareCalendar.class.getName();
}
public boolean isPublicList()
{
return publicList;
}
public void setPublicList(boolean publicList)
{
this.publicList = publicList;
}
public boolean isPublishToAppStore()
{
return publishToAppStore;
}
public void setPublishToAppStore(boolean publishToAppStore)
{
this.publishToAppStore = publishToAppStore;
}
public double getAppleStorePrice()
{
return appleStorePrice;
}
public void setAppleStorePrice(double appleStorePrice)
{
this.appleStorePrice = appleStorePrice;
}
public int getApprovalStatusOrdinal()
{
return approvalStatusOrdinal;
}
public void setApprovalStatusOrdinal(int approvalStatusOrdinal)
{
this.approvalStatusOrdinal = approvalStatusOrdinal;
}
public int getPushTypeOrdinal()
{
return pushTypeOrdinal;
}
public void setPushTypeOrdinal(int pushTypeOrdinal)
{
this.pushTypeOrdinal = pushTypeOrdinal;
}
public String getTitle()
{
return title;
}
public void setTitle(String title)
{
this.title = title;
}
public String getDescription()
{
return description;
}
public void setDescription(String description)
{
this.description = description;
}
public CalendarStoreUserDefinedCategory getCalendarStoreUserDefinedCategory()
{
return calendarStoreUserDefinedCategory;
}
public void setCalendarStoreUserDefinedCategory(
CalendarStoreUserDefinedCategory calendarStoreUserDefinedCategory)
{
this.calendarStoreUserDefinedCategory = calendarStoreUserDefinedCategory;
}
}
|
[
"tdelesio@gmail.com"
] |
tdelesio@gmail.com
|
e9dfdae315928772ad1c54a8a580309fbe74b998
|
3130765f287269f474dde937930a6adc00f0806a
|
/src/main/java/net/minecraft/server/agv.java
|
14863b7e1afa42add2b4fd0313f2b53417ea24d8
|
[] |
no_license
|
airidas338/mc-dev
|
928e105789567d1f0416028f1f0cb75a729bd0ec
|
7b23ae7f3ba52ba8405d14cdbfed8da9f5f7092a
|
refs/heads/master
| 2016-09-05T22:12:23.138874
| 2014-09-26T03:57:07
| 2014-09-26T03:57:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 820
|
java
|
package net.minecraft.server;
import java.util.Random;
class agv implements agw {
public ItemStack a;
public agx b;
public agv(Item var1, agx var2) {
this.a = new ItemStack(var1);
this.b = var2;
}
public agv(ItemStack var1, agx var2) {
this.a = var1;
this.b = var2;
}
public void a(aqd var1, Random var2) {
int var3 = 1;
if(this.b != null) {
var3 = this.b.a(var2);
}
ItemStack var4;
ItemStack var5;
if(var3 < 0) {
var4 = new ItemStack(Items.bO, 1, 0);
var5 = new ItemStack(this.a.getItem(), -var3, this.a.getData());
} else {
var4 = new ItemStack(Items.bO, var3, 0);
var5 = new ItemStack(this.a.getItem(), 1, this.a.getData());
}
var1.add(new aqc(var4, var5));
}
}
|
[
"sam.sun469@gmail.com"
] |
sam.sun469@gmail.com
|
57dd768537361cdedb531ad89d115932e0240847
|
74acea1b7f2a3a509b9ead48f186c9349bf55cc8
|
/framework/src/main/java/com/enjoyf/platform/io/RuntimeUnknownHostException.java
|
1a23ad5df294c2a1520c790ea8096e1beda90d3b
|
[] |
no_license
|
liu67224657/besl-platform
|
6cd2bfcc7320a4039e61b114173d5f350345f799
|
68c126bea36c289526e0cc62b9d5ce6284353d11
|
refs/heads/master
| 2022-04-16T02:23:40.178907
| 2020-04-17T09:00:01
| 2020-04-17T09:00:01
| 109,520,110
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 606
|
java
|
/**
* CopyRight 2007 Fivewh.com
*/
package com.enjoyf.platform.io;
/**
* RuntimeUnknownHostException is a convenience exception that
* indicates an UnknownHostException has occured but derives from
* RuntimeException such that manual throws clauses are not required.
*/
public class RuntimeUnknownHostException extends RuntimeException {
private String host;
public RuntimeUnknownHostException(String host) {
this.host = host;
}
public String getHost() {
return host;
}
public String toString() {
return super.toString() + ":host=" + host;
}
}
|
[
"ericliu@staff.joyme.com"
] |
ericliu@staff.joyme.com
|
13457246236dc65bcd64928e4caa139a4a3ef18e
|
4c6adf0ce6ef3f02dcef9c345e0e5e4ff139d886
|
/Common/FO/fo-jar/fo-withdraw/src/main/java/com/pay/fundout/withdraw/service/order/cal/AccountingCalculate.java
|
86975d74f721c3ed4be2afcef4fef3f676e9048d
|
[] |
no_license
|
happyjianguo/pay-1
|
8631906be62707316f0ed3eb6b2337c90d213bc0
|
40ae79738cfe4e5d199ca66468f3a33e9d8f2007
|
refs/heads/master
| 2020-07-27T19:51:54.958859
| 2016-12-19T07:34:24
| 2016-12-19T07:34:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 580
|
java
|
/**
* File: WithDrawOrderSuccAccountingServiceImpl.java
* Description:
* Copyright 2010 -2010 pay Corporation. All rights reserved.
* 2010-10-12 jonathen Ni Changes
*
*
*/
package com.pay.fundout.withdraw.service.order.cal;
import com.pay.fundout.withdraw.dto.WithdrawOrderAppDTO;
/**
* 提现记账计费服务
* @author Jonathen Ni
*/
public interface AccountingCalculate {
/**
* <p>计算订单支付总额,包含手续费</p>
* @param order
* @return java.lang.Long
*/
public Long calculateAmount(WithdrawOrderAppDTO orderAppDto);
}
|
[
"stanley.zou@hrocloud.com"
] |
stanley.zou@hrocloud.com
|
69a059e4406bb3ffd238dc8e8a9ac503b852f9ac
|
608cf243607bfa7a2f4c91298463f2f199ae0ec1
|
/android/versioned-abis/expoview-abi39_0_0/src/main/java/abi39_0_0/host/exp/exponent/modules/api/components/maps/ViewChangesTracker.java
|
0ea38d62b6bea8a88d08c8f2f7276c08daed66d6
|
[
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] |
permissive
|
kodeco835/symmetrical-happiness
|
ca79bd6c7cdd3f7258dec06ac306aae89692f62a
|
4f91cb07abef56118c35f893d9f5cc637b9310ef
|
refs/heads/master
| 2023-04-30T04:02:09.478971
| 2021-03-23T03:19:05
| 2021-03-23T03:19:05
| 350,565,410
| 0
| 1
|
MIT
| 2023-04-12T19:49:48
| 2021-03-23T03:18:02
|
Objective-C
|
UTF-8
|
Java
| false
| false
| 1,758
|
java
|
package abi39_0_0.host.exp.exponent.modules.api.components.maps;
import android.os.Handler;
import android.os.Looper;
import java.util.LinkedList;
public class ViewChangesTracker {
private static ViewChangesTracker instance;
private Handler handler;
private LinkedList<AirMapMarker> markers = new LinkedList<>();
private boolean hasScheduledFrame = false;
private Runnable updateRunnable;
private final long fps = 40;
private ViewChangesTracker() {
handler = new Handler(Looper.myLooper());
updateRunnable = new Runnable() {
@Override
public void run() {
hasScheduledFrame = false;
update();
if (markers.size() > 0) {
handler.postDelayed(updateRunnable, fps);
}
}
};
}
static ViewChangesTracker getInstance() {
if (instance == null) {
synchronized (ViewChangesTracker.class) {
instance = new ViewChangesTracker();
}
}
return instance;
}
public void addMarker(AirMapMarker marker) {
markers.add(marker);
if (!hasScheduledFrame) {
hasScheduledFrame = true;
handler.postDelayed(updateRunnable, fps);
}
}
public void removeMarker(AirMapMarker marker) {
markers.remove(marker);
}
public boolean containsMarker(AirMapMarker marker) {
return markers.contains(marker);
}
private LinkedList<AirMapMarker> markersToRemove = new LinkedList<>();
public void update() {
for (AirMapMarker marker : markers) {
if (!marker.updateCustomForTracking()) {
markersToRemove.add(marker);
}
}
// Remove markers that are not active anymore
if (markersToRemove.size() > 0) {
markers.removeAll(markersToRemove);
markersToRemove.clear();
}
}
}
|
[
"81201147+kodeco835@users.noreply.github.com"
] |
81201147+kodeco835@users.noreply.github.com
|
7004c4c9810c910557ce3dcdbd3ca813a149d082
|
1d2eb19ac6679ff4237272d11f586f6934a258aa
|
/src/java/sempath/xsd/StateDescriptor.java
|
6c4e8231aec77814befa7a49070d1d8da7467221
|
[] |
no_license
|
phasapis/CP
|
81efe466fb7ad9d2ddbebd507390b09e68f5213e
|
21cf6f1f0056b9874ff7d744897a88d6b03ddf5f
|
refs/heads/master
| 2020-06-02T21:23:33.128037
| 2015-04-29T13:26:41
| 2015-04-29T13:26:41
| 34,794,378
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,909
|
java
|
/*
* This class was automatically generated with
* <a href="http://www.castor.org">Castor 1.0.1</a>, using an XML
* Schema.
* $Id$
*/
package sempath.xsd;
//---------------------------------/
//- Imported classes and packages -/
//---------------------------------/
import org.exolab.castor.mapping.AccessMode;
import org.exolab.castor.xml.TypeValidator;
import org.exolab.castor.xml.XMLFieldDescriptor;
import org.exolab.castor.xml.validators.*;
/**
* Class StateDescriptor.
*
* @version $Revision$ $Date$
*/
public class StateDescriptor extends StateComplexTypeDescriptor {
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* Field elementDefinition
*/
private boolean elementDefinition;
/**
* Field nsPrefix
*/
private java.lang.String nsPrefix;
/**
* Field nsURI
*/
private java.lang.String nsURI;
/**
* Field xmlName
*/
private java.lang.String xmlName;
/**
* Field identity
*/
private org.exolab.castor.xml.XMLFieldDescriptor identity;
//----------------/
//- Constructors -/
//----------------/
public StateDescriptor()
{
super();
setExtendsWithoutFlatten(new StateComplexTypeDescriptor());
nsURI = "http://www.example.org/SemPathData";
xmlName = "State";
elementDefinition = true;
} //-- sempath.xsd.StateDescriptor()
//-----------/
//- Methods -/
//-----------/
/**
* Method getAccessMode
*
*
*
* @return AccessMode
*/
public org.exolab.castor.mapping.AccessMode getAccessMode()
{
return null;
} //-- org.exolab.castor.mapping.AccessMode getAccessMode()
/**
* Method getExtends
*
*
*
* @return ClassDescriptor
*/
public org.exolab.castor.mapping.ClassDescriptor getExtends()
{
return super.getExtends();
} //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
/**
* Method getIdentity
*
*
*
* @return FieldDescriptor
*/
public org.exolab.castor.mapping.FieldDescriptor getIdentity()
{
if (identity == null)
return super.getIdentity();
return identity;
} //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
/**
* Method getJavaClass
*
*
*
* @return Class
*/
public java.lang.Class getJavaClass()
{
return sempath.xsd.State.class;
} //-- java.lang.Class getJavaClass()
/**
* Method getNameSpacePrefix
*
*
*
* @return String
*/
public java.lang.String getNameSpacePrefix()
{
return nsPrefix;
} //-- java.lang.String getNameSpacePrefix()
/**
* Method getNameSpaceURI
*
*
*
* @return String
*/
public java.lang.String getNameSpaceURI()
{
return nsURI;
} //-- java.lang.String getNameSpaceURI()
/**
* Method getValidator
*
*
*
* @return TypeValidator
*/
public org.exolab.castor.xml.TypeValidator getValidator()
{
return this;
} //-- org.exolab.castor.xml.TypeValidator getValidator()
/**
* Method getXMLName
*
*
*
* @return String
*/
public java.lang.String getXMLName()
{
return xmlName;
} //-- java.lang.String getXMLName()
/**
* Method isElementDefinition
*
*
*
* @return boolean
*/
public boolean isElementDefinition()
{
return elementDefinition;
} //-- boolean isElementDefinition()
}
|
[
"phasapis@gmail.com"
] |
phasapis@gmail.com
|
b8e68cd9ee515bc54b60faca00f19bd0f8376450
|
f22f9863944c7e9cdee933bccc60f626fc789a8d
|
/src/main/java/com/monitorjbl/xlsx/exceptions/CloseException.java
|
fbebd9030578c83dfaa46d775d426000d739f335
|
[
"Apache-2.0"
] |
permissive
|
Mohitrajranu/PoiExcelStreamReader
|
a890ec8be9846ac4058df5f9f6db912a70b3d1b4
|
f1cf4ad84eac66a950e797249d8b251b01afeb8b
|
refs/heads/master
| 2022-07-12T11:58:51.803811
| 2019-09-10T13:36:43
| 2019-09-10T13:36:43
| 207,569,027
| 2
| 0
|
Apache-2.0
| 2022-06-29T17:38:21
| 2019-09-10T13:36:13
|
Java
|
UTF-8
|
Java
| false
| false
| 336
|
java
|
package com.monitorjbl.xlsx.exceptions;
public class CloseException extends RuntimeException {
public CloseException() {
super();
}
public CloseException(String msg) {
super(msg);
}
public CloseException(Exception e) {
super(e);
}
public CloseException(String msg, Exception e) {
super(msg, e);
}
}
|
[
"mohitraj.ranu@gmail.com"
] |
mohitraj.ranu@gmail.com
|
fa9730a5d1353e4112bee1c2954193a8650509b6
|
d84fb60595312136aeb1069baad585da325c218d
|
/HuaShanApp/app/src/main/java/com/karazam/huashanapp/main/retorfitMain/Constants.java
|
8e5b2f5ab8ac0e3624a2a5512bd133fcadf3dc41
|
[] |
no_license
|
awplying12/huashanApp
|
d6a72b248c94a65e882385edf92231552214340c
|
86bd908ec2f82fc030a9d83238144a943461c842
|
refs/heads/master
| 2021-01-11T00:21:10.870110
| 2017-02-10T11:27:06
| 2017-02-10T11:27:06
| 70,544,770
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 738
|
java
|
package com.karazam.huashanapp.main.retorfitMain;
/**
* Created by YC.Zhu on 2016/7/5.
*/
public class Constants {
public static final String HTTPPRE = "http://";
// public static final String BASEURL = HTTPPRE + "192.168.2.23";
public static final String BASEURL = HTTPPRE + "106.14.251.14";
// public static final String BASEURL = HTTPPRE + "192.168.2.195";
public static final String PORT = "50005";
// public static final String PORT = "8081";
public static final String URL = BASEURL + ":" + PORT;
public static final String PORT1 = "50006";
// public static final String PORT1 = "9090";
public static final String URL1 = BASEURL + ":"+ PORT1;
public static String PATH = "DASD";
}
|
[
"awplying14@163.com"
] |
awplying14@163.com
|
7b1256601d6a5e0266915b12efa42b8787eb8c05
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Math/85/org/apache/commons/math/linear/OpenMapRealMatrix_add_103.java
|
92719b674b4564c5a9f51b82e0fac15699b19aae
|
[] |
no_license
|
hvdthong/NetML
|
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
|
9bb103da21327912e5a29cbf9be9ff4d058731a5
|
refs/heads/master
| 2021-06-30T15:03:52.618255
| 2020-10-07T01:58:48
| 2020-10-07T01:58:48
| 150,383,588
| 1
| 1
| null | 2018-09-26T07:08:45
| 2018-09-26T07:08:44
| null |
UTF-8
|
Java
| false
| false
| 1,089
|
java
|
org apach common math linear
spars matrix implement base open address map
version revis date
open map real matrix openmaprealmatrix abstract real matrix abstractrealmatrix spars real matrix sparserealmatrix serializ
comput sum code code
param matrix ad
illeg argument except illegalargumentexcept size
open map real matrix openmaprealmatrix add open map real matrix openmaprealmatrix illeg argument except illegalargumentexcept
safeti check
matrix util matrixutil check addit compat checkadditioncompat
open map real matrix openmaprealmatrix open map real matrix openmaprealmatrix
open int doubl hash map openinttodoublehashmap iter iter entri iter iter hasnext
iter advanc
row iter kei column dimens columndimens
col iter kei row column dimens columndimens
set entri setentri row col entri getentri row col iter
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
1f213732360e50bb42d066a45c78a7ed49fef7aa
|
ffa38f13dfc4a83cdd45cd1600ff14dc0e08ea01
|
/service/product/ProductDao.java
|
45830782375ab0739aefe48d21a91cd35f236f1c
|
[
"MIT"
] |
permissive
|
alvin198761/erp_laozhang
|
26b66fc19b35abc4ade2e0aa88255803a5d71b66
|
572efe71b03b91bd82e2d38c45c87fc69ee458c5
|
refs/heads/master
| 2020-04-08T10:07:37.339278
| 2019-03-05T01:37:39
| 2019-03-05T01:37:39
| 159,255,369
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,229
|
java
|
package org.alvin.cishan.sys.service.product;
import com.google.common.base.Joiner;
import org.alvin.cishan.common.BaseDao;
import org.alvin.cishan.sys.util.Page;
import org.alvin.cishan.sys.util.SqlUtil;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @类说明: 产品--数据访问层
* @author: 唐植超
* @date : 2018-11-27 14:04:59
**/
@Repository
public class ProductDao extends BaseDao {
private StringBuilder insert = new StringBuilder();
/**
* @方法说明: 构造方法,用于拼加SQL及初始化工作
*/
public ProductDao () {
insert.append("INSERT INTO product (prod_no,tax_type,prod_name,spec_no,note,unit,price,sell_price,");
insert.append("mark_price,price_mode,vendor_id,pic1,pic2,pic3,remark,has_tax) ");
insert.append(" VALUES (:prod_no,:tax_type,:prod_name,:spec_no,:note,:unit,:price,:sell_price_yes,:sell_price_no,");
insert.append(":mark_price_yes,:mark_price_no,:price_mode,:vendor_id,:pic1,:pic2,:pic3,:remark,:has_tax)");
}
/**
* @方法说明: 新增产品记录
*/
public int save(Product vo) {
StringBuilder sql = new StringBuilder();
sql.append("REPLACE INTO product (id,prod_no,tax_type,prod_name,spec_no,note,unit,price,sell_price,");
sql.append("mark_price,price_mode,vendor_id,pic1,pic2,pic3,remark,has_tax)");
sql.append(" VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ");
Object[] params ={ vo.getId(),vo.getProd_no(),vo.getTax_type(),vo.getProd_name(),vo.getSpec_no(),vo.getNote(),vo.getUnit(),vo.getPrice(),vo.getSell_price(),vo.getMark_price(),vo.getPrice_mode(),vo.getVendor_id(),vo.getPic1(),vo.getPic2(),vo.getPic3(),vo.getRemark() ,vo.getHas_tax()};
logger.info(SqlUtil.showSql(sql.toString(), params));//显示SQL语句
return jdbcTemplate.update(sql.toString(), params);
}
/**
* @方法说明:新增产品记录并返回自增涨主键值
*/
public long saveReturnPK(Product vo) {
return saveKey(vo, insert.toString(), "id");
}
/**
* @方法说明:批量插入产品记录
*/
public int[] insertBatch(List<Product> list) {
return batchOperate(list, insert.toString());
}
/**
* @方法说明:物理删除产品记录(多条)
*/
public int delete(Long ids[]) {
String sql = "DELETE FROM product WHERE id" + SqlUtil.ArrayToIn(ids);
return jdbcTemplate.update(sql);
}
/**
* @方法说明:更新产品记录
*/
public int update(Product vo) {
StringBuilder sql = new StringBuilder();
sql.append("UPDATE product SET prod_no=?,tax_type=?,prod_name=?,spec_no=?,note=?,unit=?,price=?,sell_price=?,");
sql.append("mark_price=?,price_mode=?,vendor_id=?,pic1=?,pic2=?,pic3=?,remark=?,has_tax=? ");
sql.append(" WHERE id=? ");
Object[] params = {vo.getProd_no(),vo.getTax_type(),vo.getProd_name(),vo.getSpec_no(),vo.getNote(),vo.getUnit(),vo.getPrice(),vo.getSell_price(),vo.getMark_price(),vo.getPrice_mode(),vo.getVendor_id(),vo.getPic1(),vo.getPic2(),vo.getPic3(),vo.getRemark(),vo.getHas_tax(),vo.getId()};
return jdbcTemplate.update(sql.toString(), params);
}
/**
* @方法说明:按条件查询分页产品列表
*/
public Page<Product> queryPage(ProductCond cond) {
StringBuilder sb = new StringBuilder("SELECT ");
sb.append(this.getSelectedItems(cond));
sb.append(" FROM product t ");
sb.append(getJoinTables());
sb.append(" WHERE 1=1 ");
sb.append(cond.getCondition());
sb.append(" order by id desc");//增加排序子句;
//logger.info(SqlUtil.showSql(sb.toString(),cond.getArray()));//显示SQL语句
return queryPage(sb.toString(), cond, Product.class);
}
/**
* @方法说明:按条件查询不分页产品列表
*/
public List<Product> queryList(ProductCond cond) {
StringBuilder sb = new StringBuilder("SELECT ");
sb.append(this.getSelectedItems(cond));
sb.append(" FROM product t ");
sb.append(getJoinTables());
sb.append(" WHERE 1=1 ");
sb.append(cond.getCondition());
sb.append(" order by id desc");//增加排序子句;
//sb.append(" ORDER BY operate_time DESC");
return jdbcTemplate.query(sb.toString(), cond.getArray(), new BeanPropertyRowMapper<>(Product.class));
}
/**
* @方法说明:按ID查找单个产品实体
*/
public Product findById(Long id) {
StringBuilder sb = new StringBuilder("SELECT ");
sb.append(this.getSelectedItems(null));
sb.append(" FROM product t ");
sb.append(getJoinTables());
sb.append(" WHERE 1=1 ");
sb.append(" AND t.id=?");
return jdbcTemplate.queryForObject(sb.toString(), new Object[]{id}, new BeanPropertyRowMapper<>(Product.class));
}
/**
* @方法说明:按条件查询产品记录个数
*/
public long queryCount(ProductCond cond) {
String countSql = "SELECT COUNT(1) FROM product t WHERE 1=1" + cond.getCondition();
return jdbcTemplate.queryForObject(countSql, cond.getArray(), Long.class);
}
/**
* @方法说明:按条件查询产品记录个数
*/
public int deleteLogic(Long ids[]) {
String sql = "UPDATE product SET delete_remark=1 WHERE id" + SqlUtil.ArrayToIn(ids);
return jdbcTemplate.update(sql);
}
/**
* @方法说明:查询参数定制
*/
public String getSelectedItems(ProductCond cond){
if(cond == null || cond.getSelectedFields() == null || cond.getSelectedFields().isEmpty()){
return "t.id,t.prod_no,t.tax_type,t.prod_name,t.spec_no,t.note,t.unit,t.price,t.sell_price,t.mark_price,t.price_mode,t.vendor_id,t.pic1,t.pic2,t.pic3,t.remark,t.has_tax,v.vendor_name,v.vendor_no"; //默认所有字段
}
return Joiner.on(",").join(cond.getSelectedFields());
}
/**
* @方法说明:表连接代码
* @return
*/
public String getJoinTables(){
return " join vendor v on t.vendor_id = v.id ";
}
}
|
[
"alvin198761@163.com"
] |
alvin198761@163.com
|
870b4d6a609ea586c50557420a8be3f71357cdea
|
37d44625ca52cbaf2be00027fd4c5340e9662d8d
|
/apps/android/user/tingchebao_user/src/main/java/com/tq/zld/widget/X5WebView.java
|
4207c25617e1aaaa95cb57585bf9258722da5fc4
|
[] |
no_license
|
uwitec/ParkingOS_cloud
|
95234dc2c2b19d8bf55c454d02baad90d57c5325
|
5e03e1b0267fb31ec62bcdbaaae9750b7bb698d4
|
refs/heads/master
| 2020-12-24T20:00:39.706918
| 2017-03-23T09:48:49
| 2017-03-23T09:48:49
| 86,226,688
| 0
| 1
| null | 2017-03-26T11:14:19
| 2017-03-26T11:14:19
| null |
UTF-8
|
Java
| false
| false
| 6,636
|
java
|
package com.tq.zld.widget;
import android.content.Context;
import android.content.Intent;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.Toast;
import com.tencent.smtt.export.external.interfaces.JsResult;
import com.tencent.smtt.sdk.WebChromeClient;
import com.tencent.smtt.sdk.WebSettings;
import com.tencent.smtt.sdk.WebView;
import com.tencent.smtt.sdk.WebViewClient;
import com.tencent.smtt.utils.TbsLog;
import com.tq.zld.BuildConfig;
import com.tq.zld.R;
import com.tq.zld.TCBApp;
import com.tq.zld.util.DensityUtils;
import java.util.ArrayList;
import java.util.List;
public class X5WebView extends WebView {
private ProgressBar progressbar;
private List<String> whiteList = new ArrayList<>();
public X5WebView(Context context){
super(context);
initProgressBar();
initSetting();
}
public X5WebView(Context context, AttributeSet attrs) {
super(context, attrs);
initProgressBar();
initSetting();
}
@Override
protected boolean drawChild(Canvas canvas, View child, long drawingTime) {
boolean ret = super.drawChild(canvas, child, drawingTime);
switch (BuildConfig.BUILD_TYPE) {
case "debug":
case "alpha":
drawX5Type(canvas);
}
return ret;
}
/**
* 显示X5内核是否开启
* @param canvas
*/
private void drawX5Type(Canvas canvas){
canvas.save();
Paint paint = new Paint();
paint.setColor(0x7fff0000);
paint.setTextSize(24.f);
paint.setAntiAlias(true);
if (getX5WebViewExtension() != null) {
canvas.drawText("X5 core:" + WebView.getTbsCoreVersion(getContext()), 10, 50, paint);
} else {
canvas.drawText("Sys Core", 10, 50, paint);
}
canvas.restore();
}
private void initProgressBar(){
progressbar = new ProgressBar(getContext(), null,
android.R.attr.progressBarStyleHorizontal);
progressbar.setMax(100);
progressbar.setProgressDrawable(new ColorDrawable(getResources()
.getColor(R.color.primary_green)));
progressbar.setBackgroundColor(Color.TRANSPARENT);
progressbar.setLayoutParams(new RelativeLayout.LayoutParams(
android.widget.RelativeLayout.LayoutParams.MATCH_PARENT,
DensityUtils.dip2px(getContext(), 3)));
addView(progressbar);
}
/**
* 各种设置
*/
private void initSetting(){
//添加白名单,
whiteList.add(TCBApp.mServerUrl);
whiteList.add("renrenche.com");
whiteList.add("app.qq.com");
whiteList.add("weixin.qq.com");
this.setWebViewClient(new WebViewClient(){
@Override
public boolean shouldOverrideUrlLoading(WebView webView, String url) {
if(BuildConfig.BUILD_TYPE.equals("release")) {
if (isWhite(url)) {
webView.loadUrl(url);
return true;
} else {
Intent in = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
TCBApp.getAppContext().startActivity(in);
return true;
}
}
return super.shouldOverrideUrlLoading(webView,url);
}
});
// this.setWebChromeClient(new WebChromeClient());
this.setWebChromeClient(new ProgressWebChromeClient(this.progressbar));
// 各种设置
if (this.getX5WebViewExtension() != null) {
this.getX5WebViewExtension().invokeMiscMethod("someExtensionMethod", new Bundle());
} else {
TbsLog.e("robins", "CoreVersion");
}
WebSettings webSetting = this.getSettings();
webSetting.setJavaScriptEnabled(true);
webSetting.setJavaScriptCanOpenWindowsAutomatically(true);
webSetting.setAllowFileAccess(true);
webSetting.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NARROW_COLUMNS);
webSetting.setSupportZoom(true);
webSetting.setBuiltInZoomControls(true);
webSetting.setUseWideViewPort(true);
webSetting.setSupportMultipleWindows(false);
webSetting.setLoadWithOverviewMode(true);
webSetting.setAppCacheEnabled(true);
webSetting.setDatabaseEnabled(true);
webSetting.setDomStorageEnabled(true);
webSetting.setGeolocationEnabled(true);
webSetting.setAppCacheMaxSize(Long.MAX_VALUE);
webSetting.setAppCachePath(this.getContext().getDir("appcache", 0).getPath());
webSetting.setDatabasePath(this.getContext().getDir("databases", 0).getPath());
webSetting.setGeolocationDatabasePath(this.getContext().getDir("geolocation", 0).getPath());
webSetting.setPluginState(WebSettings.PluginState.ON_DEMAND);
webSetting.setRenderPriority(WebSettings.RenderPriority.HIGH);
}
public void addWhiteList(String url){
if (!TextUtils.isEmpty(url)){
whiteList.add(url);
}
}
private boolean isWhite(String targetUrl){
for (String url : whiteList){
if (targetUrl.contains(url)){
return true;
}
}
return false;
}
public static class ProgressWebChromeClient extends WebChromeClient {
private ProgressBar mProgressBar;
public ProgressWebChromeClient(ProgressBar progressBar) {
this.mProgressBar = progressBar;
}
@Override
public final void onProgressChanged(WebView view, int newProgress) {
if (newProgress == 100) {
mProgressBar.setVisibility(GONE);
} else {
if (mProgressBar.getVisibility() == GONE)
mProgressBar.setVisibility(VISIBLE);
mProgressBar.setProgress(newProgress);
}
super.onProgressChanged(view, newProgress);
}
@Override
public boolean onJsAlert(WebView webView, String url, String message, JsResult jsResult) {
Toast.makeText(TCBApp.getAppContext(), message, Toast.LENGTH_SHORT).show();
jsResult.confirm();
return true;
}
}
}
|
[
"you@example.com"
] |
you@example.com
|
6e960eb616cb85c4125c769e26ff17071c24a2b2
|
02a087e8de0a7d0cfed9dba60e8cff5be4ae3be1
|
/Research_Bucket/Completed_Archived/ConcolicProcess/oracles/Bellon/bellon_benchmark/sourcecode/eclipse-jdtcore/src/internal/compiler/codegen/QualifiedNamesConstants.java
|
95db00d612805962b6f85a08dff4f7237d10c221
|
[] |
no_license
|
dan7800/Research
|
7baf8d5afda9824dc5a53f55c3e73f9734e61d46
|
f68ea72c599f74e88dd44d85503cc672474ec12a
|
refs/heads/master
| 2021-01-23T09:50:47.744309
| 2018-09-01T14:56:01
| 2018-09-01T14:56:01
| 32,521,867
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,055
|
java
|
package org.eclipse.jdt.internal.compiler.codegen;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import org.eclipse.jdt.internal.compiler.problem.*;
public interface QualifiedNamesConstants {
char[] JavaLangObjectConstantPoolName = "java/lang/Object".toCharArray(); //$NON-NLS-1$
char[] JavaLangStringConstantPoolName = "java/lang/String".toCharArray(); //$NON-NLS-1$
char[] JavaLangStringBufferConstantPoolName = "java/lang/StringBuffer".toCharArray(); //$NON-NLS-1$
char[] JavaLangClassConstantPoolName = "java/lang/Class".toCharArray(); //$NON-NLS-1$
char[] JavaLangThrowableConstantPoolName = "java/lang/Throwable".toCharArray(); //$NON-NLS-1$
char[] JavaLangClassNotFoundExceptionConstantPoolName = "java/lang/ClassNotFoundException".toCharArray(); //$NON-NLS-1$
char[] JavaLangNoClassDefFoundErrorConstantPoolName = "java/lang/NoClassDefFoundError".toCharArray(); //$NON-NLS-1$
char[] JavaLangIntegerConstantPoolName = "java/lang/Integer".toCharArray(); //$NON-NLS-1$
char[] JavaLangFloatConstantPoolName = "java/lang/Float".toCharArray(); //$NON-NLS-1$
char[] JavaLangDoubleConstantPoolName = "java/lang/Double".toCharArray(); //$NON-NLS-1$
char[] JavaLangLongConstantPoolName = "java/lang/Long".toCharArray(); //$NON-NLS-1$
char[] JavaLangShortConstantPoolName = "java/lang/Short".toCharArray(); //$NON-NLS-1$
char[] JavaLangByteConstantPoolName = "java/lang/Byte".toCharArray(); //$NON-NLS-1$
char[] JavaLangCharacterConstantPoolName = "java/lang/Character".toCharArray(); //$NON-NLS-1$
char[] JavaLangVoidConstantPoolName = "java/lang/Void".toCharArray(); //$NON-NLS-1$
char[] JavaLangBooleanConstantPoolName = "java/lang/Boolean".toCharArray(); //$NON-NLS-1$
char[] JavaLangSystemConstantPoolName = "java/lang/System".toCharArray(); //$NON-NLS-1$
char[] JavaLangErrorConstantPoolName = "java/lang/Error".toCharArray(); //$NON-NLS-1$
char[] JavaLangExceptionConstantPoolName = "java/lang/Exception".toCharArray(); //$NON-NLS-1$
char[] JavaLangReflectConstructor = "java/lang/reflect/Constructor".toCharArray(); //$NON-NLS-1$
char[] Append = new char[] {'a', 'p', 'p', 'e', 'n', 'd'};
char[] ToString = new char[] {'t', 'o', 'S', 't', 'r', 'i', 'n', 'g'};
char[] Init = new char[] {'<', 'i', 'n', 'i', 't', '>'};
char[] Clinit = new char[] {'<', 'c', 'l', 'i', 'n', 'i', 't', '>'};
char[] ValueOf = new char[] {'v', 'a', 'l', 'u', 'e', 'O', 'f'};
char[] ForName = new char[] {'f', 'o', 'r', 'N', 'a', 'm', 'e'};
char[] GetMessage = new char[] {'g', 'e', 't', 'M', 'e', 's', 's', 'a', 'g', 'e'};
char[] NewInstance = "newInstance".toCharArray(); //$NON-NLS-1$
char[] GetConstructor = "getConstructor".toCharArray(); //$NON-NLS-1$
char[] Exit = new char[] {'e', 'x', 'i', 't'};
char[] Intern = "intern".toCharArray(); //$NON-NLS-1$
char[] Out = new char[] {'o', 'u', 't'};
char[] TYPE = new char[] {'T', 'Y', 'P', 'E'};
char[] This = new char[] {'t', 'h', 'i', 's'};
char[] JavaLangClassSignature = new char[] {'L', 'j', 'a', 'v', 'a', '/', 'l', 'a', 'n', 'g', '/', 'C', 'l', 'a', 's', 's', ';'};
char[] ForNameSignature = "(Ljava/lang/String;)Ljava/lang/Class;".toCharArray(); //$NON-NLS-1$
char[] GetMessageSignature = "()Ljava/lang/String;".toCharArray(); //$NON-NLS-1$
char[] GetConstructorSignature = "([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;".toCharArray(); //$NON-NLS-1$
char[] StringConstructorSignature = "(Ljava/lang/String;)V".toCharArray(); //$NON-NLS-1$
char[] NewInstanceSignature = "([Ljava/lang/Object;)Ljava/lang/Object;".toCharArray(); //$NON-NLS-1$
char[] DefaultConstructorSignature = {'(', ')', 'V'};
char[] ClinitSignature = DefaultConstructorSignature;
char[] ToStringSignature = GetMessageSignature;
char[] InternSignature = GetMessageSignature;
char[] AppendIntSignature = "(I)Ljava/lang/StringBuffer;".toCharArray(); //$NON-NLS-1$
char[] AppendLongSignature = "(J)Ljava/lang/StringBuffer;".toCharArray(); //$NON-NLS-1$
char[] AppendFloatSignature = "(F)Ljava/lang/StringBuffer;".toCharArray(); //$NON-NLS-1$
char[] AppendDoubleSignature = "(D)Ljava/lang/StringBuffer;".toCharArray(); //$NON-NLS-1$
char[] AppendCharSignature = "(C)Ljava/lang/StringBuffer;".toCharArray(); //$NON-NLS-1$
char[] AppendBooleanSignature = "(Z)Ljava/lang/StringBuffer;".toCharArray(); //$NON-NLS-1$
char[] AppendObjectSignature = "(Ljava/lang/Object;)Ljava/lang/StringBuffer;".toCharArray(); //$NON-NLS-1$
char[] AppendStringSignature = "(Ljava/lang/String;)Ljava/lang/StringBuffer;".toCharArray(); //$NON-NLS-1$
char[] ValueOfObjectSignature = "(Ljava/lang/Object;)Ljava/lang/String;".toCharArray(); //$NON-NLS-1$
char[] ValueOfIntSignature = "(I)Ljava/lang/String;".toCharArray(); //$NON-NLS-1$
char[] ValueOfLongSignature = "(J)Ljava/lang/String;".toCharArray(); //$NON-NLS-1$
char[] ValueOfCharSignature = "(C)Ljava/lang/String;".toCharArray(); //$NON-NLS-1$
char[] ValueOfBooleanSignature = "(Z)Ljava/lang/String;".toCharArray(); //$NON-NLS-1$
char[] ValueOfDoubleSignature = "(D)Ljava/lang/String;".toCharArray(); //$NON-NLS-1$
char[] ValueOfFloatSignature = "(F)Ljava/lang/String;".toCharArray(); //$NON-NLS-1$
char[] JavaIoPrintStreamSignature = "Ljava/io/PrintStream;".toCharArray(); //$NON-NLS-1$
char[] ExitIntSignature = new char[] {'(', 'I', ')', 'V'};
char[] ArrayJavaLangObjectConstantPoolName = "[Ljava/lang/Object;".toCharArray(); //$NON-NLS-1$
char[] ArrayJavaLangClassConstantPoolName = "[Ljava/lang/Class;".toCharArray(); //$NON-NLS-1$
char[] JavaLangAssertionErrorConstantPoolName = "java/lang/AssertionError".toCharArray(); //$NON-NLS-1$
char[] AssertionErrorIntConstrSignature = "(I)V".toCharArray(); //$NON-NLS-1$
char[] AssertionErrorLongConstrSignature = "(J)V".toCharArray(); //$NON-NLS-1$
char[] AssertionErrorFloatConstrSignature = "(F)V".toCharArray(); //$NON-NLS-1$
char[] AssertionErrorDoubleConstrSignature = "(D)V".toCharArray(); //$NON-NLS-1$
char[] AssertionErrorCharConstrSignature = "(C)V".toCharArray(); //$NON-NLS-1$
char[] AssertionErrorBooleanConstrSignature = "(Z)V".toCharArray(); //$NON-NLS-1$
char[] AssertionErrorObjectConstrSignature = "(Ljava/lang/Object;)V".toCharArray(); //$NON-NLS-1$
char[] DesiredAssertionStatus = "desiredAssertionStatus".toCharArray(); //$NON-NLS-1$
char[] DesiredAssertionStatusSignature = "()Z".toCharArray(); //$NON-NLS-1$
char[] ShortConstrSignature = "(S)V".toCharArray(); //$NON-NLS-1$
char[] ByteConstrSignature = "(B)V".toCharArray(); //$NON-NLS-1$
char[] GetClass = "getClass".toCharArray(); //$NON-NLS-1$
char[] GetClassSignature = "()Ljava/lang/Class;".toCharArray(); }//$NON-NLS-1$
|
[
"dxkvse@rit.edu"
] |
dxkvse@rit.edu
|
227310a009d0ef8f0295dec25423df6c106e79a1
|
eadbd6ba5a2d5c960ffa9788f5f7e79eeb98384d
|
/src/com/tinder/d/o.java
|
c24ac12d63b7a9129af6f3649df7ee65098c6911
|
[] |
no_license
|
marcoucou/com.tinder
|
37edc3b9fb22496258f3a8670e6349ce5b1d8993
|
c68f08f7cacf76bf7f103016754eb87b1c0ac30d
|
refs/heads/master
| 2022-04-18T23:01:15.638983
| 2020-04-14T18:04:10
| 2020-04-14T18:04:10
| 255,685,521
| 0
| 0
| null | 2020-04-14T18:00:06
| 2020-04-14T18:00:05
| null |
UTF-8
|
Java
| false
| false
| 297
|
java
|
package com.tinder.d;
import com.tinder.iap.util.e;
public abstract interface o
{
public abstract void a(e parame);
public abstract void a(e parame, String paramString);
}
/* Location:
* Qualified Name: com.tinder.d.o
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
1080466d4d9f44727a9c84507d9e94582eb742f4
|
1fb19dffab7774e6e920a2c297f54a9a6b277c1f
|
/src/main/java/com/lambkit/core/api/json/ApiController.java
|
4ba8aad75582124a72e8f1e6e27ecd05adfde577
|
[
"Apache-2.0"
] |
permissive
|
gismaker/lambkit
|
7bcb8ba9b5a8a754c551444e03f8b9bafc259dca
|
1a3690a499380667be67b54f57eb62a82686cebf
|
refs/heads/master
| 2023-04-30T22:33:58.563394
| 2022-03-27T07:03:18
| 2022-03-27T07:03:18
| 171,219,377
| 12
| 2
|
Apache-2.0
| 2023-04-14T17:31:33
| 2019-02-18T05:18:25
|
Java
|
UTF-8
|
Java
| false
| false
| 467
|
java
|
package com.lambkit.core.api.json;
import com.lambkit.web.controller.LambkitController;
/**
* API通用接口
* @author Henry Yang 杨勇 (gismail@foxmail.com)
* @version 1.0
* @Package com.lambkit.core.api.json
*/
public class ApiController extends LambkitController {
/**
* 数据获取
*/
public void get() {
}
/**
* 数据添加、修改方法
*/
public void set() {
}
/**
* 数据删除方法
*/
public void del() {
}
}
|
[
"gismail@foxmail.com"
] |
gismail@foxmail.com
|
ebafb8b9266042d4d67020b311325f845725e0e7
|
863acb02a064a0fc66811688a67ce3511f1b81af
|
/sources/p019d/p022i/p023b/C13061d.java
|
a9e050c4cfb2f448dca1c361ac993e042c3d5802
|
[
"MIT"
] |
permissive
|
Game-Designing/Custom-Football-Game
|
98d33eb0c04ca2c48620aa4a763b91bc9c1b7915
|
47283462b2066ad5c53b3c901182e7ae62a34fc8
|
refs/heads/master
| 2020-08-04T00:02:04.876780
| 2019-10-06T06:55:08
| 2019-10-06T06:55:08
| 211,914,568
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 768
|
java
|
package p019d.p022i.p023b;
import p026rx.C0125T;
/* renamed from: d.i.b.d */
/* compiled from: NotificationLite */
final class C13061d {
/* renamed from: a */
private static final Object f40046a = new C13060c();
/* renamed from: a */
public static <T> Object m42512a(T t) {
if (t == null) {
return f40046a;
}
return t;
}
/* renamed from: a */
public static <T> boolean m42513a(C0125T<? super T> o, Object n) {
if (n == f40046a) {
o.onNext(null);
return false;
} else if (n != null) {
o.onNext(n);
return false;
} else {
throw new IllegalArgumentException("The lite notification can not be null");
}
}
}
|
[
"tusharchoudhary0003@gmail.com"
] |
tusharchoudhary0003@gmail.com
|
6aef5caaf1c54920df18f93f48e89b694af62aa8
|
107b0089c6e4567747a8704020145be2feab1418
|
/app/src/main/java/com/zhl/huiqu/scan/camera/CameraManager.java
|
367ac65d77afcda44fc80cbbb187799f37f7218d
|
[] |
no_license
|
cd031116/ShopBright
|
d49dc2d84bed843fec01fbc8f4de8f4a27171752
|
a411739a11777050e06683c44880281aaedea128
|
refs/heads/master
| 2020-12-30T10:24:27.925594
| 2017-12-28T08:53:10
| 2017-12-28T08:53:10
| 98,967,044
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,433
|
java
|
package com.zhl.huiqu.scan.camera;
import android.content.Context;
import android.graphics.Point;
import android.hardware.Camera;
import android.hardware.Camera.Parameters;
import android.os.Handler;
import android.view.SurfaceHolder;
import java.io.IOException;
/**
* 作者: 陈涛(1076559197@qq.com)
*
* 时间: 2014年5月9日 下午12:22:25
*
* 版本: V_1.0.0
*
* 描述: 相机管理
*/
public final class CameraManager {
private static CameraManager cameraManager;
static final int SDK_INT;
static {
int sdkInt;
try {
sdkInt = android.os.Build.VERSION.SDK_INT;
} catch (NumberFormatException nfe) {
sdkInt = 10000;
}
SDK_INT = sdkInt;
}
private final CameraConfigurationManager configManager;
private Camera camera;
private boolean initialized;
private boolean previewing;
private final boolean useOneShotPreviewCallback;
private final PreviewCallback previewCallback;
private final AutoFocusCallback autoFocusCallback;
private Parameters parameter;
public static void init(Context context) {
if (cameraManager == null) {
cameraManager = new CameraManager(context);
}
}
public static CameraManager get() {
return cameraManager;
}
private CameraManager(Context context) {
this.configManager = new CameraConfigurationManager(context);
useOneShotPreviewCallback = SDK_INT > 3;
previewCallback = new PreviewCallback(configManager, useOneShotPreviewCallback);
autoFocusCallback = new AutoFocusCallback();
}
public void openDriver(SurfaceHolder holder) throws IOException {
if (camera == null) {
camera = Camera.open();
if (camera == null) {
throw new IOException();
}
camera.setPreviewDisplay(holder);
if (!initialized) {
initialized = true;
configManager.initFromCameraParameters(camera);
}
configManager.setDesiredCameraParameters(camera);
FlashlightManager.enableFlashlight();
}
}
public Point getCameraResolution() {
return configManager.getCameraResolution();
}
public void closeDriver() {
if (camera != null) {
FlashlightManager.disableFlashlight();
camera.release();
camera = null;
}
}
public void startPreview() {
if (camera != null && !previewing) {
camera.startPreview();
previewing = true;
}
}
public void stopPreview() {
if (camera != null && previewing) {
if (!useOneShotPreviewCallback) {
camera.setPreviewCallback(null);
}
camera.stopPreview();
previewCallback.setHandler(null, 0);
autoFocusCallback.setHandler(null, 0);
previewing = false;
}
}
public void requestPreviewFrame(Handler handler, int message) {
if (camera != null && previewing) {
previewCallback.setHandler(handler, message);
if (useOneShotPreviewCallback) {
camera.setOneShotPreviewCallback(previewCallback);
} else {
camera.setPreviewCallback(previewCallback);
}
}
}
public void requestAutoFocus(Handler handler, int message) {
if (camera != null && previewing) {
autoFocusCallback.setHandler(handler, message);
camera.autoFocus(autoFocusCallback);
}
}
public void openLight() {
if (camera != null) {
parameter = camera.getParameters();
parameter.setFlashMode(Parameters.FLASH_MODE_TORCH);
camera.setParameters(parameter);
}
}
public void offLight() {
if (camera != null) {
parameter = camera.getParameters();
parameter.setFlashMode(Parameters.FLASH_MODE_OFF);
camera.setParameters(parameter);
}
}
}
|
[
"mm1314520"
] |
mm1314520
|
b184a10494daa3ca1a254ae26d9cb076caaa049f
|
5f85d47dc2198393c7cfd8e8e983c12ff1252192
|
/generators/src/test/java/com/pholser/junit/quickcheck/generator/java/math/RangedBigIntegerNoMinPropertyParameterTest.java
|
2eacbe9ad3b5da4c806bd7d2cafb7ed853925da0
|
[
"MIT"
] |
permissive
|
imace/junit-quickcheck
|
0333308808bfcef799bd75051c4cdc5b786b9f2a
|
d67b037b4f774e188fcb4390c53d53bbf194f341
|
refs/heads/master
| 2021-01-20T16:44:39.929923
| 2015-12-24T16:51:19
| 2015-12-24T16:51:19
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,789
|
java
|
/*
The MIT License
Copyright (c) 2010-2015 Paul R. Holser, Jr.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package com.pholser.junit.quickcheck.generator.java.math;
import java.math.BigInteger;
import java.util.List;
import com.pholser.junit.quickcheck.generator.BasicGeneratorPropertyParameterTest;
import com.pholser.junit.quickcheck.generator.InRange;
import static java.math.BigInteger.*;
import static java.util.Arrays.*;
import static org.mockito.Mockito.*;
public class RangedBigIntegerNoMinPropertyParameterTest
extends BasicGeneratorPropertyParameterTest {
@InRange(max = "987654321987654321")
public static final BigInteger TYPE_BEARER = null;
private final BigInteger max = new BigInteger("987654321987654321");
@Override protected void primeSourceOfRandomness() {
when(randomForParameterGenerator.nextBigInteger(max.subtract(max.subtract(TEN)).bitLength()))
.thenReturn(new BigInteger("6"));
when(randomForParameterGenerator.nextBigInteger(max.subtract(max.subtract(TEN.pow(2))).bitLength()))
.thenReturn(new BigInteger("35"));
when(distro.sampleWithMean(1, randomForParameterGenerator)).thenReturn(0);
when(distro.sampleWithMean(2, randomForParameterGenerator)).thenReturn(1);
}
@Override protected int trials() {
return 2;
}
@Override protected List<?> randomValues() {
return asList(new BigInteger("987654321987654317"), new BigInteger("987654321987654256"));
}
@Override public void verifyInteractionWithRandomness() {
verify(randomForParameterGenerator).nextBigInteger(max.subtract(max.subtract(TEN)).bitLength());
verify(randomForParameterGenerator).nextBigInteger(max.subtract(max.subtract(TEN.pow(2))).bitLength());
}
}
|
[
"pholser@alumni.rice.edu"
] |
pholser@alumni.rice.edu
|
c9f836f3e4d71b0b45f2a8ca1ee7f155b8fe17e2
|
c73cd727f1dd8081846ee8c3f886b7b01c454b97
|
/app/src/main/java/com/strong/yujiaapp/activity/CityChoiceActivity.java
|
87375d66883ef1934d381fca64ae963df0ca10f8
|
[] |
no_license
|
welldoe778/YujiaAPP
|
bee5e0990b31cf22d35a32f3292f3f23c4d03e18
|
e33b41833beb51b8f5e5baa1a55bc70eb852c02f
|
refs/heads/master
| 2021-01-21T12:19:57.721425
| 2017-09-01T08:24:24
| 2017-09-01T08:24:24
| 102,063,709
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,083
|
java
|
package com.strong.yujiaapp.activity;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.baidu.location.BDAbstractLocationListener;
import com.baidu.location.BDLocation;
import com.baidu.location.Poi;
import com.strong.yujiaapp.R;
import com.strong.yujiaapp.baidugps.LocationService;
import com.strong.yujiaapp.utils.ChooseCityInterface;
import com.strong.yujiaapp.utils.ChooseCityUtil;
/**
* Created by Administrator on 2017-08-30.
*/
public class CityChoiceActivity extends Activity {
private LocationService locationService;
TextView tvCity;//城市
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.citychoice);
initView();
}
/*protected void onStart() {
super.onStart();
locationService = ((ShareApplication) getApplication()).locationService;
locationService.registerListener(mListener);
}*/
private BDAbstractLocationListener mListener = new BDAbstractLocationListener() {
@Override
public void onReceiveLocation(BDLocation location) {
// TODO Auto-generated method stub
if (null != location && location.getLocType() != BDLocation.TypeServerError) {
StringBuffer sb = new StringBuffer(256);
sb.append("time : ");
/**
* 时间也可以使用systemClock.elapsedRealtime()方法 获取的是自从开机以来,每次回调的时间;
* location.getTime() 是指服务端出本次结果的时间,如果位置不发生变化,则时间不变
*/
sb.append(location.getTime());
sb.append("\nlocType : ");// 定位类型
sb.append(location.getLocType());
sb.append("\nlocType description : ");// *****对应的定位类型说明*****
sb.append(location.getLocTypeDescription());
sb.append("\nlatitude : ");// 纬度
sb.append(location.getLatitude());
sb.append("\nlontitude : ");// 经度
sb.append(location.getLongitude());
sb.append("\nradius : ");// 半径
sb.append(location.getRadius());
sb.append("\nCountryCode : ");// 国家码
sb.append(location.getCountryCode());
sb.append("\nCountry : ");// 国家名称
sb.append(location.getCountry());
sb.append("\ncitycode : ");// 城市编码
sb.append(location.getCityCode());
sb.append("\ncity : ");// 城市
sb.append(location.getCity());
sb.append("\nDistrict : ");// 区
sb.append(location.getDistrict());
sb.append("\nStreet : ");// 街道
sb.append(location.getStreet());
sb.append("\naddr : ");// 地址信息
sb.append(location.getAddrStr());
sb.append("\nUserIndoorState: ");// *****返回用户室内外判断结果*****
sb.append(location.getUserIndoorState());
sb.append("\nDirection(not all devices have value): ");
sb.append(location.getDirection());// 方向
sb.append("\nlocationdescribe: ");
sb.append(location.getLocationDescribe());// 位置语义化信息
sb.append("\nPoi: ");// POI信息
if (location.getPoiList() != null && !location.getPoiList().isEmpty()) {
for (int i = 0; i < location.getPoiList().size(); i++) {
Poi poi = (Poi) location.getPoiList().get(i);
sb.append(poi.getName() + ";");
}
}
if (location.getLocType() == BDLocation.TypeGpsLocation) {// GPS定位结果
sb.append("\nspeed : ");
sb.append(location.getSpeed());// 速度 单位:km/h
sb.append("\nsatellite : ");
sb.append(location.getSatelliteNumber());// 卫星数目
sb.append("\nheight : ");
sb.append(location.getAltitude());// 海拔高度 单位:米
sb.append("\ngps status : ");
sb.append(location.getGpsAccuracyStatus());// *****gps质量判断*****
sb.append("\ndescribe : ");
sb.append("gps定位成功");
} else if (location.getLocType() == BDLocation.TypeNetWorkLocation) {// 网络定位结果
// 运营商信息
if (location.hasAltitude()) {// *****如果有海拔高度*****
sb.append("\nheight : ");
sb.append(location.getAltitude());// 单位:米
}
sb.append("\noperationers : ");// 运营商信息
sb.append(location.getOperators());
sb.append("\ndescribe : ");
sb.append("网络定位成功");
} else if (location.getLocType() == BDLocation.TypeOffLineLocation) {// 离线定位结果
sb.append("\ndescribe : ");
sb.append("离线定位成功,离线定位结果也是有效的");
} else if (location.getLocType() == BDLocation.TypeServerError) {
sb.append("\ndescribe : ");
sb.append("服务端网络定位失败,可以反馈IMEI号和大体定位时间到loc-bugs@baidu.com,会有人追查原因");
} else if (location.getLocType() == BDLocation.TypeNetWorkException) {
sb.append("\ndescribe : ");
sb.append("网络不同导致定位失败,请检查网络是否通畅");
} else if (location.getLocType() == BDLocation.TypeCriteriaException) {
sb.append("\ndescribe : ");
sb.append("无法获取有效定位依据导致定位失败,一般是由于手机的原因,处于飞行模式下一般会造成这种结果,可以试着重启手机");
}
}
}
};
//初始化控件
private void initView() {
tvCity = (TextView) findViewById(R.id.tvCity);
}
//Choose Date 选择省市县
public void chooseCityDialog(View view) {
final ChooseCityUtil cityUtil = new ChooseCityUtil();
String[] oldCityArray = tvCity.getText().toString().split("-");//将TextView上的文本分割成数组 当做默认值
cityUtil.createDialog(this, oldCityArray, new ChooseCityInterface() {
@Override
public void sure(String[] newCityArray) {
//oldCityArray为传入的默认值 newCityArray为返回的结果
tvCity.setText(newCityArray[0] + "-" + newCityArray[1] + "-" + newCityArray[2]);
}
});
}
}
|
[
"123"
] |
123
|
c04985d92b33ba8879d1caccf2e39ad2b20fcd8e
|
7447f3599a9d0f7d430b7402dde6dadbbfc0aba0
|
/jbpm/superwifi/src/main/java/com/yazuo/superwifi/login/service/impl/IdentifyinginfoServiceImpl.java
|
3062171c339a263d70e059fb7b8a0e6553fc3596
|
[] |
no_license
|
liveqmock/workspace
|
43d5ad79fc0f0675412829d9015cf68255f9d891
|
c1da6eab74047cd612b1b3b1046c8fa03c5809fb
|
refs/heads/master
| 2020-04-02T01:11:11.800539
| 2015-04-13T02:55:46
| 2015-04-13T02:55:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,591
|
java
|
/*
* 文件名:IdentifyinginfoServiceImpl.java 版权:Copyright by www.yazuo.com 描述: 修改人:zhaohuaqin 修改时间:2014-12-26 跟踪单号: 修改单号:
* 修改内容:
*/
package com.yazuo.superwifi.login.service.impl;
import java.util.Date;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Order;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.data.mongodb.core.query.Update;
import org.springframework.stereotype.Service;
import com.yazuo.superwifi.login.service.IdentifyinginfoService;
import com.yazuo.superwifi.login.vo.Identifyinginfo;
/**
* 〈一句话功能简述〉 〈功能详细描述〉
*
* @author zhaohuaqin
* @version 2014-12-26
* @see IdentifyinginfoServiceImpl
* @since
*/
@Service("identifyinginfoServiceImpl")
public class IdentifyinginfoServiceImpl implements IdentifyinginfoService
{
@Resource(name = "mongoTemplate")
private MongoTemplate mongoTemplate;
@Override
public List<Identifyinginfo> getIdentifyinginfoByMobileAndIdentifyingCode(String mobileNumber,
String identifyingCode, Integer merchantId)
{
Query query = new Query(
Criteria.where("mobileNumber").is(mobileNumber).and("identifyingCode").is(identifyingCode).and("merchantId").is(
merchantId).and("status").is(Identifyinginfo.STATUS_NOUSE).and("flag").is(
Identifyinginfo.FLAG_MEMBERLOGIN));
query.sort().on("insertTime", Order.DESCENDING);
return mongoTemplate.find(query, Identifyinginfo.class);
}
@Override
public void updateIdentifyinginfo(Map<String, Object> map)
{
String id = map.get("id").toString();
Integer status = (Integer)map.get("status");
Query query = new Query(Criteria.where("id").is(id));
Update update = Update.update("status", status);
if (null != status && status.intValue() == Identifyinginfo.STATUS_USED)
{
update.set("passTime", new Date());
}
mongoTemplate.updateFirst(query, update, Identifyinginfo.class);
}
@Override
public void saveIdentifyinginfo(Identifyinginfo identifyinginfo)
{
mongoTemplate.insert(identifyinginfo);
}
}
|
[
"root@slave-01.(none)"
] |
root@slave-01.(none)
|
63a8cec645fd2472c1edf3a00d8cfb0adc78e7b6
|
8f8b07aff25f75e87449b6c2c05daed74d2cba48
|
/src/main/java/org/assertj/core/error/ShouldNotBeOfClassIn.java
|
72e1d662dcedc4bb8a35532df6fe0a92636daaf1
|
[
"Apache-2.0"
] |
permissive
|
elefevre/assertj-core
|
cec39c8c7b797c7a930fe4786e7730b667c2236c
|
6ce1747d315fe4eb14903418dcbb5411c6520f68
|
refs/heads/master
| 2021-01-17T05:50:08.583022
| 2013-04-01T11:11:09
| 2013-04-01T11:11:09
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,498
|
java
|
/*
* Created on Jun 12, 2012
*
* 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.
*
* Copyright @2010-2012 the original author or authors.
*/
package org.assertj.core.error;
/**
* Creates an error message indicating that an assertion that verifies that an object is not of type in group of types failed.
*
* @author Nicolas François
*/
public class ShouldNotBeOfClassIn extends BasicErrorMessageFactory {
/**
* Creates a new </code>{@link ShouldNotBeOfClassIn}</code>.
* @param actual the actual value in the failed assertion.
* @param types contains the types {@code actual} is not expected to be in.
* @return the created {@code ErrorMessageFactory}.
*/
public static ErrorMessageFactory shouldNotBeOfClassIn(Object actual, Object types) {
return new ShouldNotBeOfClassIn(actual, types);
}
private ShouldNotBeOfClassIn(Object actual, Object types) {
super("expected <%s> should not have type in <%s> but was:<%s>", actual, types, actual.getClass());
}
}
|
[
"joel.costigliola@gmail.com"
] |
joel.costigliola@gmail.com
|
aab9ae4fd797694bfcb0da0ed7ccf2a4f528638d
|
192fc75e245f8834861c2a8dbe9714daa2ec6c2e
|
/CWE89_SQL_Injection/CWE89_SQL_Injection__Environment_executeBatch_51a.java
|
880c0530cd2ffadbae3cf9a60064cbfcef779f84
|
[] |
no_license
|
Carlosboie/Playtech
|
6f8bb72efc6769612a0cb967a9130f6db78d19fc
|
684ae94b9b0ff069c8561157227b5b43a7ca1320
|
refs/heads/master
| 2021-05-27T11:05:24.157218
| 2012-09-12T08:08:30
| 2012-09-12T08:08:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,486
|
java
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE89_SQL_Injection__Environment_executeBatch_51a.java
Label Definition File: CWE89_SQL_Injection.label.xml
Template File: sources-sinks-51a.tmpl.java
*/
/*
* @description
* CWE: 89 SQL Injection
* BadSource: Environment Read a string from an environment variable
* GoodSource: A hardcoded string
* Sinks: executeBatch
* GoodSink: prepared sqlstatement, batch
* BadSink : untrusted input to raw update batch
* Flow Variant: 51 Data flow: data passed as an argument from one function to another in different classes in the same package
*
* */
package testcases.CWE89_SQL_Injection;
import testcasesupport.*;
import java.sql.*;
import javax.servlet.http.*;
import java.util.logging.Logger;
import java.util.logging.Logger;
public class CWE89_SQL_Injection__Environment_executeBatch_51a extends AbstractTestCase
{
public void bad() throws Throwable
{
String data;
Logger log_bad = Logger.getLogger("local-logger");
/* get environment variable ADD */
data = System.getenv("ADD");
(new CWE89_SQL_Injection__Environment_executeBatch_51b()).bad_sink(data );
}
public void good() throws Throwable
{
goodG2B();
goodB2G();
}
/* goodG2B() - use goodsource and badsink */
private void goodG2B() throws Throwable
{
String data;
java.util.logging.Logger log_good = java.util.logging.Logger.getLogger("local-logger");
/* FIX: Use a hardcoded string */
data = "foo";
(new CWE89_SQL_Injection__Environment_executeBatch_51b()).goodG2B_sink(data );
}
/* goodB2G() - use badsource and goodsink */
private void goodB2G() throws Throwable
{
String data;
Logger log_bad = Logger.getLogger("local-logger");
/* get environment variable ADD */
data = System.getenv("ADD");
(new CWE89_SQL_Injection__Environment_executeBatch_51b()).goodB2G_sink(data );
}
/* Below is the main(). It is only used when building this testcase on
its own for testing or for building a binary to use in testing binary
analysis tools. It is not used when compiling all the testcases as one
application, which is how source code analysis tools are tested. */
public static void main(String[] args) throws ClassNotFoundException,
InstantiationException, IllegalAccessException
{
mainFromParent(args);
}
}
|
[
"amitf@checkmarx.com"
] |
amitf@checkmarx.com
|
c67fd6a7c194e5c4cab59d83be31d0a115fc3f3b
|
683006be97495d4d480f2d83cf0ee5e701853507
|
/sample-games/game-sousse-pong/src/main/java/tn/edu/eniso/pong/main/client/dal/DALClient.java
|
b5accd4216207fb9e7e91c2e9665baf85eabe161
|
[] |
no_license
|
otoukebri/atom
|
0a74d360ec35e0e4eff92dce3858bffd4cf2fcbc
|
a639837defb7ca958922f435f3b3d4435cc27812
|
refs/heads/master
| 2021-01-12T03:30:56.848858
| 2016-10-27T22:54:19
| 2016-10-27T22:54:19
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 441
|
java
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tn.edu.eniso.pong.main.client.dal;
/**
* @author Taha Ben Salah (taha.bensalah@gmail.com)
*/
public interface DALClient {
public void start(String serverAddress, int serverPort, DALClientListener callback);
public void sendLeftKeyPressed();
public void sendRightKeyPressed();
public void sendSpacePressed();
}
|
[
"canard77"
] |
canard77
|
4d4255a3c5e869f64c727836133b1cd06e2a453c
|
bcdbb5f6fa570dc3c52d96f61ba45628ba1700b9
|
/travel-advice/travel-advice-web/src/main/java/tn/esprit/gl2/travel_advice/beans/LoginBean.java
|
fe0750420ed2f490fa8ebe520a261555f11f303d
|
[] |
no_license
|
medalibettaieb/shay
|
4bdd0ea5c27d9d3561483b79eeb1cea36a0c1e86
|
60c2e453e41a2f63ca0792ab34368b06b8a561bd
|
refs/heads/master
| 2021-01-15T15:39:03.228964
| 2016-11-14T09:54:55
| 2016-11-14T09:54:55
| 51,702,934
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,052
|
java
|
package tn.esprit.gl2.travel_advice.beans;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import tn.esprit.gl2.travel_advice.persistence.Traveler;
import tn.esprit.gl2.travel_advice.persistence.User;
import tn.esprit.gl2.travel_advice.services.UserServicesLocal;
@ManagedBean
@SessionScoped
public class LoginBean {
private User user = new User();
private int idT;
@EJB
private UserServicesLocal userServicesLocal;
public String doLogin() {
String navigateTo = null;
User userLoggedIn = userServicesLocal.login(user.getLogin(), user.getPassword());
if (userLoggedIn != null) {
if (userLoggedIn instanceof Traveler) {
navigateTo = "/pages/listCities?faces-redirect=true";
user = userLoggedIn;
}
}
return navigateTo;
}
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
public int getIdT() {
return idT;
}
public void setIdT(int idT) {
this.idT = idT;
}
}
|
[
"medali.bettaieb@esprit.tn"
] |
medali.bettaieb@esprit.tn
|
69b71e2913b8ab1cded4cb3935ab7496c3c30617
|
e0df638646bbb7891c5ff5ff996f8d3f4d08d0cb
|
/modules/base/base-rest/src/main/java/grape/base/rest/application/form/ApplicationListForm.java
|
19892c4dac240a08874daf6127e88d72b3629a2d
|
[] |
no_license
|
feihua666/grape
|
479f758600da13e7b43b2d60744c304ed72f71a4
|
22bd2eebd4952022dde72ea8ff9e85d6b1d79595
|
refs/heads/master
| 2023-01-22T13:00:02.901359
| 2020-01-02T05:01:22
| 2020-01-02T05:01:22
| 197,750,420
| 0
| 0
| null | 2023-01-04T08:23:17
| 2019-07-19T10:05:42
|
TSQL
|
UTF-8
|
Java
| false
| false
| 740
|
java
|
package grape.base.rest.application.form;
import grape.common.rest.form.BaseForm;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* 应用不分页查询条件对象
* </p>
*
* @author yangwei
* @since 2019-10-29
*/
@Data
@EqualsAndHashCode(callSuper=false)
@Accessors(chain = true)
@ApiModel(value="应用不分页查询条件对象")
public class ApplicationListForm extends BaseForm {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "应用编码")
private String code;
@ApiModelProperty(value = "应用名称")
private String name;
}
|
[
"feihua666@sina.com"
] |
feihua666@sina.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.