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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0611c61a0cf92be53ae1cdc54f08e19968aa14ac
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.minihd.qq/assets/exlibs.1.jar/classes.jar/com/tencent/mobileqq/filemanager/activity/base/QfileFileItemHolder.java
|
a580518443a85324878ac50f7907a37bcabc2d2a
|
[] |
no_license
|
tsuzcx/qq_apk
|
0d5e792c3c7351ab781957bac465c55c505caf61
|
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
|
refs/heads/main
| 2022-07-02T10:32:11.651957
| 2022-02-01T12:41:38
| 2022-02-01T12:41:38
| 453,860,108
| 36
| 9
| null | 2022-01-31T09:46:26
| 2022-01-31T02:43:22
|
Java
|
UTF-8
|
Java
| false
| false
| 908
|
java
|
package com.tencent.mobileqq.filemanager.activity.base;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.tencent.mobileqq.filemanager.widget.AsyncImageView;
public class QfileFileItemHolder
implements Cloneable
{
public int a;
public Button a;
public CheckBox a;
public ImageView a;
public ProgressBar a;
public RelativeLayout a;
public TextView a;
public AsyncImageView a;
public Object a;
public TextView b;
public TextView c;
public TextView d;
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.minihd.qq\assets\exlibs.1.jar\classes.jar
* Qualified Name: com.tencent.mobileqq.filemanager.activity.base.QfileFileItemHolder
* JD-Core Version: 0.7.0.1
*/
|
[
"[email protected]"
] | |
759ad1c6c61fc781a052560badf82c84338a8155
|
0e0dae718251c31cbe9181ccabf01d2b791bc2c2
|
/SCT2/branches/Extension API/org.yakindu.sct.ui.editor/src/org/yakindu/sct/ui/editor/policies/StateCompartmentCanonicalEditPolicy.java
|
d824d661a1837a9f70ba52bd9ebd0c1a9a23d3cf
|
[] |
no_license
|
huybuidac20593/yakindu
|
377fb9100d7db6f4bb33a3caa78776c4a4b03773
|
304fb02b9c166f340f521f5e4c41d970268f28e9
|
refs/heads/master
| 2021-05-29T14:46:43.225721
| 2015-05-28T11:54:07
| 2015-05-28T11:54:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,880
|
java
|
/**
* Copyright (c) 2011 committers of YAKINDU 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:
* committers of YAKINDU - initial API and implementation
*
*/
package org.yakindu.sct.ui.editor.policies;
import java.util.List;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gmf.runtime.diagram.core.util.ViewType;
import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy;
import org.eclipse.gmf.runtime.notation.View;
import org.yakindu.sct.model.sgraph.State;
import org.yakindu.sct.ui.editor.utils.SemanticHintUtil;
/**
* @author andreas muelder
*/
public class StateCompartmentCanonicalEditPolicy extends CanonicalEditPolicy {
@SuppressWarnings("rawtypes")
@Override
protected List getSemanticChildrenList() {
return getSemanticHost().getRegions();
}
@Override
public State getSemanticHost() {
return (State) super.getSemanticHost();
}
@Override
public IGraphicalEditPart getHost() {
return (IGraphicalEditPart) super.getHost();
}
@Override
protected String getFactoryHint(IAdaptable elementAdapter) {
EObject modelElement = (EObject) elementAdapter
.getAdapter(EObject.class);
String factoryHint = SemanticHintUtil.getSemanticHint(modelElement);
return factoryHint;
}
protected boolean shouldDeleteView(View view) {
if (ViewType.NOTE.equals(view.getType())
|| ViewType.NOTEATTACHMENT.equals(view.getType())
|| ViewType.TEXT.equals(view.getType())) {
return false;
}
return true;
}
}
|
[
"[email protected]"
] | |
cc0055bff38fb4024205ffd7f3a6fe4430ae12c2
|
e820097c99fb212c1c819945e82bd0370b4f1cf7
|
/gwt-sh/src/main/java/com/skynet/spms/client/gui/finance/apply/PayApplyPanel.java
|
f51cdde9097b3fa89bd819586d4969ecabd6dfa2
|
[] |
no_license
|
jayanttupe/springas-train-example
|
7b173ca4298ceef543dc9cf8ae5f5ea365431453
|
adc2e0f60ddd85d287995f606b372c3d686c3be7
|
refs/heads/master
| 2021-01-10T10:37:28.615899
| 2011-12-20T07:47:31
| 2011-12-20T07:47:31
| 36,887,613
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,968
|
java
|
package com.skynet.spms.client.gui.finance.apply;
import com.skynet.spms.client.PanelFactory;
import com.skynet.spms.client.ShowcasePanel;
import com.skynet.spms.client.entity.DataInfo;
import com.skynet.spms.client.feature.data.DataSourceTool;
import com.skynet.spms.client.feature.data.DataSourceTool.PostDataSourceInit;
import com.smartgwt.client.data.DataSource;
import com.smartgwt.client.types.VisibilityMode;
import com.smartgwt.client.widgets.Canvas;
import com.smartgwt.client.widgets.layout.SectionStack;
import com.smartgwt.client.widgets.layout.SectionStackSection;
import com.smartgwt.client.widgets.layout.VLayout;
public class PayApplyPanel extends ShowcasePanel {
private static final String DESCRIPTION = "付款申请管理信息维护页面";
private PayApplyButtonToolBar payApplyToolBar;
private PayApplyList payApplyList;
private VLayout mainPanelLayout;
private DataInfo dataInfomation;
public static class Factory implements PanelFactory {
private String DESCRIPTION = "付款申请管理模块";
private String id;
@Override
public Canvas create() {
PayApplyPanel panel = new PayApplyPanel();
id = panel.getID();
return panel;
}
@Override
public String getID() {
// TODO Auto-generated method stub
return id;
}
@Override
public String getDescription() {
// TODO Auto-generated method stub
return DESCRIPTION;
}
}
@Override
public Canvas getViewPanel() {
// TODO Auto-generated method stub
String modName="account.applyManager.payApplyManager";
String dsName="finance_payApply_dataSource";
mainPanelLayout = new VLayout();
SectionStack mainStack = new SectionStack();
mainStack.setVisibilityMode(VisibilityMode.MULTIPLE);
mainStack.setAnimateSections(true);
payApplyList = new PayApplyList();
DataSourceTool dataSourceTool = new DataSourceTool();
dataSourceTool.onCreateDataSource(modName, dsName,
new PostDataSourceInit() {
@Override
public void doPostOper(DataSource dataSource,
DataInfo dataInfo) {
// TODO Auto-generated method stub
payApplyList.setHeight(200);
payApplyList.setAutoFetchData(true);
payApplyList.setShowFilterEditor(true);
payApplyList.setDataSource(dataSource);
payApplyList.setPayApplyDataInfo(dataInfo);
dataInfomation= dataInfo;
payApplyList.fetchData();
payApplyList.drawPayApplyList();
}
});
final SectionStackSection payApplyMainSection = new SectionStackSection("付款申请管理");
//payApplyList.drawPayApplyList();
payApplyToolBar = new PayApplyButtonToolBar(payApplyList);
payApplyMainSection.setItems(payApplyToolBar, payApplyList);
payApplyMainSection.setExpanded(true);
mainStack.addSection(payApplyMainSection);
mainPanelLayout.addMember(mainStack);
return mainPanelLayout;
}
}
|
[
"usedtolove@3b6edebd-8678-f8c2-051a-d8e859c3524d"
] |
usedtolove@3b6edebd-8678-f8c2-051a-d8e859c3524d
|
6e89c6afc6d5a797637d23f4f7e3caed98e4460f
|
fd3e4cc20a58c2a46892b3a38b96d5e2303266d8
|
/src/main/java/com/autonavi/tbt/ServiceFacilityInfo.java
|
4947785267e0ec21c165eb26a962b40503b069e9
|
[] |
no_license
|
makewheels/AnalyzeBusDex
|
42ef50f575779b66bd659c096c57f94dca809050
|
3cb818d981c7bc32c3cbd8c046aa78cd38b20e8a
|
refs/heads/master
| 2021-10-22T07:16:40.087139
| 2019-03-09T03:11:05
| 2019-03-09T03:11:05
| 173,123,231
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 277
|
java
|
package com.autonavi.tbt;
import p054u.aly.bi_常量类;
public class ServiceFacilityInfo {
public double lat = 0.0d;
public double lon = 0.0d;
public String name = bi_常量类.f6358b_空串;
public int remainDist = -1;
public int type = 0;
}
|
[
"[email protected]"
] | |
aa1048534d10864733b5449d606dd279a1cc1a19
|
b6017b2feeb4feb14336cb00e074bce6e4234026
|
/app/src/main/java/com/xzwzz/mimi/ui/adapter/LiveChannelAdapter2.java
|
9618a8ccdfc752edc56c1b70baf05b781a6c26fd
|
[] |
no_license
|
gaoyuan117/MiMi
|
2495536fcb0b69cde2a6d926e31d73e0eac56c7c
|
0bc00a5ccd4f7746b0a993466a628325c63cbb47
|
refs/heads/master
| 2020-03-28T20:53:50.932241
| 2018-09-17T11:01:03
| 2018-09-17T11:01:03
| 149,111,919
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,624
|
java
|
package com.xzwzz.mimi.ui.adapter;
import android.support.annotation.Nullable;
import android.widget.ImageView;
import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.xzwzz.mimi.R;
import com.xzwzz.mimi.bean.ChannelDataBean2;
import com.xzwzz.mimi.glide.GlideApp;
import com.xzwzz.mimi.glide.GlideCircleTransform;
import java.util.ArrayList;
import java.util.List;
/**
* Created by aaaa on 2018/5/16.
*/
public class LiveChannelAdapter2 extends BaseQuickAdapter<ChannelDataBean2.DataBean, BaseViewHolder> {
public LiveChannelAdapter2() {
this(new ArrayList<>());
}
public LiveChannelAdapter2(@Nullable List<ChannelDataBean2.DataBean> data) {
super(R.layout.item_live_channel, data);
}
@Override
protected void convert(BaseViewHolder helper, ChannelDataBean2.DataBean item) {
helper.setText(R.id.tv_name, item.getTitle());
helper.setText(R.id.tv_peoplenum, item.getPep()+"");
GlideApp.with(mContext)
.load(item.getImg())
.placeholder(R.color.color_darker_gray)
.transition(new DrawableTransitionOptions().crossFade())
.into((ImageView) helper.getView(R.id.iv_cover));
GlideApp.with(mContext)
.load(item.getImg())
.transform(new GlideCircleTransform(mContext))
.transition(new DrawableTransitionOptions().crossFade())
.into((ImageView) helper.getView(R.id.iv_avatar));
}
}
|
[
"[email protected]"
] | |
caca765388577055e6680474295da71a132a89f3
|
f163b86f4eba5d7598415943f5ae536c2b616723
|
/src/varviewer/client/services/SampleListService.java
|
06db663209d43be1de09e719e95bb5a1e14a1537
|
[] |
no_license
|
brendanofallon/VarViewer
|
34def3fd5128a0544218033d6fa86b59cb33e45d
|
af44922bf18677a04cd2f92dade2b6d87fc1ca79
|
refs/heads/master
| 2021-05-04T09:39:06.180251
| 2015-07-17T14:45:03
| 2015-07-17T14:45:03
| 7,565,687
| 0
| 1
| null | 2017-09-20T18:12:27
| 2013-01-11T19:38:31
|
Java
|
UTF-8
|
Java
| false
| false
| 338
|
java
|
package varviewer.client.services;
import varviewer.shared.SampleListResult;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
@RemoteServiceRelativePath("samplelist")
public interface SampleListService extends RemoteService {
SampleListResult getSampleList();
}
|
[
"[email protected]"
] | |
0bd7459cc72a4db54960932399833f53548ec353
|
4e463cf651929f3d87a57cf71238521d9bec990c
|
/hengjia-api-web/src/main/java/com/baibei/hengjia/api/modules/cash/service/ICashFunctionService.java
|
fa359efd37a0dd068d9c83cb11417225d7e978e9
|
[] |
no_license
|
yyhLogin/hengjia
|
2e54a355273659c341f93ab51f63d62f0a3bce26
|
8cdc18c14aa97046d9bc8b86aaf007a3c49f9a8f
|
refs/heads/master
| 2022-04-24T20:21:27.958289
| 2020-04-21T06:34:18
| 2020-04-21T06:34:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 801
|
java
|
package com.baibei.hengjia.api.modules.cash.service;
import com.baibei.hengjia.api.modules.cash.base.BaseRequest;
import com.baibei.hengjia.api.modules.cash.base.BaseResponse;
import com.baibei.hengjia.api.modules.cash.enumeration.CashFunctionType;
import com.baibei.hengjia.common.tool.api.ApiResult;
import java.util.Map;
public interface ICashFunctionService<T extends BaseRequest, V extends BaseResponse> {
/**
* 获取请求类型
*
* @return
*/
CashFunctionType getType();
/**
* 获取银行的请求
*
* @param backMessages 请求消息体
* @return
*/
String response(Map<String, String> backMessages);
/**
* 组成请求参数,发送给银行
*
* @return
*/
ApiResult<V> request(T request);
}
|
[
"[email protected]"
] | |
3ceec0d46132b83514f62e021eeb6ec2383d1b63
|
c9b8db6ceff0be3420542d0067854dea1a1e7b12
|
/web/KoreanAir/src/main/java/com/ke/css/cimp/fwb/fwb6/Rule_CONSIGNEE_NAME.java
|
e5f205c4fe6af3c6c84f4999b07fac690331db44
|
[
"Apache-2.0"
] |
permissive
|
ganzijo/portfolio
|
12ae1531bd0f4d554c1fcfa7d68953d1c79cdf9a
|
a31834b23308be7b3a992451ab8140bef5a61728
|
refs/heads/master
| 2021-04-15T09:25:07.189213
| 2018-03-22T12:11:00
| 2018-03-22T12:11:00
| 126,326,291
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,186
|
java
|
package com.ke.css.cimp.fwb.fwb6;
/* -----------------------------------------------------------------------------
* Rule_CONSIGNEE_NAME.java
* -----------------------------------------------------------------------------
*
* Producer : com.parse2.aparse.Parser 2.5
* Produced : Tue Mar 06 10:37:30 KST 2018
*
* -----------------------------------------------------------------------------
*/
import java.util.ArrayList;
final public class Rule_CONSIGNEE_NAME extends Rule
{
public Rule_CONSIGNEE_NAME(String spelling, ArrayList<Rule> rules)
{
super(spelling, rules);
}
public Object accept(Visitor visitor)
{
return visitor.visit(this);
}
public static Rule_CONSIGNEE_NAME parse(ParserContext context)
{
context.push("CONSIGNEE_NAME");
boolean parsed = true;
int s0 = context.index;
ParserAlternative a0 = new ParserAlternative(s0);
ArrayList<ParserAlternative> as1 = new ArrayList<ParserAlternative>();
parsed = false;
{
int s1 = context.index;
ParserAlternative a1 = new ParserAlternative(s1);
parsed = true;
if (parsed)
{
boolean f1 = true;
@SuppressWarnings("unused")
int c1 = 0;
for (int i1 = 0; i1 < 35 && f1; i1++)
{
Rule rule = Rule_Typ_Text.parse(context);
if ((f1 = rule != null))
{
a1.add(rule, context.index);
c1++;
}
}
parsed = true;
}
if (parsed)
{
as1.add(a1);
}
context.index = s1;
}
ParserAlternative b = ParserAlternative.getBest(as1);
parsed = b != null;
if (parsed)
{
a0.add(b.rules, b.end);
context.index = b.end;
}
Rule rule = null;
if (parsed)
{
rule = new Rule_CONSIGNEE_NAME(context.text.substring(a0.start, a0.end), a0.rules);
}
else
{
context.index = s0;
}
context.pop("CONSIGNEE_NAME", parsed);
return (Rule_CONSIGNEE_NAME)rule;
}
}
/* -----------------------------------------------------------------------------
* eof
* -----------------------------------------------------------------------------
*/
|
[
"[email protected]"
] | |
2de992658c295c9d723002a4a0db769281e70462
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Math/8/org/apache/commons/math3/util/MathArrays_equals_1133.java
|
5ed86874c567a5fe5b9ea75b55d64b6a2b95996a
|
[] |
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,532
|
java
|
org apach common math3 util
arrai util
version
math arrai matharrai
return iff argument dimens
element equal defin
link precis equal
param arrai
param arrai
valu dimens
equal element
equal
length length
length
precis equal
|
[
"[email protected]"
] | |
3fab573e106e9e6c2d842d16c820ffb8fbc20b59
|
4305724b1b3441900dee0eb2009ac176ac7ecab0
|
/src/main/java/com/thread/comparetoandlist/Detest.java
|
75c7f46d9e61792193c6f90dc24394088944cdba
|
[] |
no_license
|
liu92/spring_thread
|
07fb5d67cbf958cb573d085ee8375adff3438ca8
|
42ed3e24f5856eebfb942bbfe49b54c21b71dec0
|
refs/heads/master
| 2022-12-21T03:07:51.523498
| 2020-04-27T07:32:10
| 2020-04-27T07:32:10
| 115,611,809
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,122
|
java
|
package com.thread.comparetoandlist;
import java.util.List;
/**
* java类简单作用描述
* @ProjectName: Detest.java
* @Package: com.thread.comparetoandlist
* @ClassName: Detest
* @Description: java类作用描述
* @Author: 作者姓名
* @CreateDate: 2018/11/22 0022 17:49
* @UpdateUser: 作者姓名
* @UpdateDate: 2018/11/22 0022 17:49
* @UpdateRemark: The modified content
* @Version: 1.0
*/
public class Detest {
private String extParam;
private String name;
private String code;
private List<Deo> detos;
public String getExtParam() {
return extParam;
}
public void setExtParam(String extParam) {
this.extParam = extParam;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public List<Deo> getDetos() {
return detos;
}
public void setDetos(List<Deo> detos) {
this.detos = detos;
}
}
|
[
"[email protected]"
] | |
4fde736c6f743c666915795e0d633a5ec8e849d0
|
d59659decc96ff98f3ac12eade4c211d743e7265
|
/app/src/main/java/com/example/haoss/ui/person/integral/IntegralConvertRecordAty.java
|
051c2ece5003c3cafd65333e4c7fa5335a5073d8
|
[] |
no_license
|
chentt521520/Hss_FuLi_full
|
7a76b2fa78bc3f6776a2e81730a0276fdc5dcf95
|
cf926c4bbe5065409b722348ae4285b72b4994bb
|
refs/heads/master
| 2020-07-03T03:31:51.000165
| 2019-09-20T08:46:17
| 2019-09-20T08:46:17
| 201,770,085
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,071
|
java
|
package com.example.haoss.ui.person.integral;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.ListView;
import com.example.applibrary.utils.DateTimeUtils;
import com.example.applibrary.utils.StringUtils;
import com.example.applibrary.widget.freshLoadView.RefreshLayout;
import com.example.applibrary.widget.freshLoadView.RefreshListenerAdapter;
import com.example.haoss.R;
import com.example.haoss.base.BaseActivity;
import java.util.ArrayList;
import java.util.List;
public class IntegralConvertRecordAty extends BaseActivity {
private RefreshLayout refreshLayout;
private ListIntegralConvertAdapter adapter;
private List<IntegralRecord> listData;
private int page = 1;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTitleContentView(R.layout.activity_card_convert_record);
init();
getList();
}
private void init() {
listData = new ArrayList<>();
this.getTitleView().setTitleText("兑换记录");
ListView listView = findViewById(R.id.list_view);
refreshLayout = findViewById(R.id.refresh_layout);
refreshLayout.setOnRefreshListener(new RefreshListenerAdapter() {
@Override
public void onRefresh(RefreshLayout refreshLayout) {
super.onRefresh(refreshLayout);
page = 1;
getList();
}
@Override
public void onLoadMore(RefreshLayout refreshLayout) {
super.onLoadMore(refreshLayout);
page++;
getList();
}
});
adapter = new ListIntegralConvertAdapter(this, listData);
listView.setAdapter(adapter);
}
private void getList() {
// Map<String, Object> map = new HashMap<>();
// map.put("token", AppLibLication.getInstance().getToken());
// map.put("page", page);
// map.put("limit", 20);
//
// ApiManager.getIntegralConvertRecord("", map, new OnHttpCallback<List<IntegralRecord>>() {
// @Override
// public void success(List<IntegralRecord> result) {
List<IntegralRecord> result = new ArrayList<>();
long time = System.currentTimeMillis();
for (int i = 0; i < 10; i++) {
result.add(new IntegralRecord(DateTimeUtils.timeStampToDate(time + (i * 1000L)), "商品" + i, "", i, (int) (Math.random() * 1000) + ""));
}
refreshLayout.finishLoadmore();
refreshLayout.finishRefreshing();
if (page == 1) {
listData.clear();
}
if (!StringUtils.listIsEmpty(result)) {
listData.addAll(result);
}
adapter.refresh(listData);
}
// @Override
// public void error(int code, String msg) {
// refreshLayout.finishLoadmore();
// refreshLayout.finishRefreshing();
// toast(code, msg);
// }
// });
//}
}
|
[
"[email protected]"
] | |
ee2b38100ba205f12c7f69dfbd5cf8e0b7f6305b
|
eef972e40459a278e8022a1a567358a37f6647a4
|
/src/main/java/cn/itsmith/sysutils/resacl/entities/DomOwnerResA.java
|
dbc29f7570ae50e179cdeb50067b6f940478b095
|
[] |
no_license
|
1562200285wxf/domain
|
ae422da1bdc191447c8957aa5cea4341533e598b
|
5cc10c32d1f3c503761c41f07c74b57963cc2b1a
|
refs/heads/master
| 2021-04-11T06:43:53.949805
| 2020-03-21T15:35:40
| 2020-03-21T15:35:40
| 249,000,917
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 166
|
java
|
package cn.itsmith.sysutils.resacl.entities;
import lombok.Data;
@Data
public class DomOwnerResA {
Integer domId;
Integer resTypeId;
Integer ownerId;
}
|
[
"[email protected]"
] | |
91a118d8db0689727a00eda4426b0c61c4e9fba1
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/16/16_ff83e5f3a478388bd771b1257ba4a809e03257cc/LIFOInvocationDispatcher/16_ff83e5f3a478388bd771b1257ba4a809e03257cc_LIFOInvocationDispatcher_t.java
|
3670590adf5e69fb29c48bc8a6498cb9d0850d38
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 2,245
|
java
|
/* Copyright (c) 2000-2004 jMock.org
*/
package org.jmock.core;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.ListIterator;
import org.jmock.core.stub.TestFailureStub;
public class LIFOInvocationDispatcher
implements InvocationDispatcher
{
public static final String NO_EXPECTATIONS_MESSAGE = "No expectations set";
private ArrayList invokables = new ArrayList();
private Stub defaultStub = new TestFailureStub("unexpected invocation");
public Object dispatch( Invocation invocation ) throws Throwable {
ListIterator i = invokables.listIterator(invokables.size());
while (i.hasPrevious()) {
Invokable invokable = (Invokable)i.previous();
if (invokable.matches(invocation)) {
return invokable.invoke(invocation);
}
}
return defaultStub.invoke(invocation);
}
public void setDefaultStub( Stub defaultStub ) {
this.defaultStub = defaultStub;
}
public void add( Invokable invokable ) {
invokables.add(invokable);
}
public void verify() {
Iterator i = invokables.iterator();
while (i.hasNext()) {
((Verifiable)i.next()).verify();
}
}
public void clear() {
invokables.clear();
}
public StringBuffer describeTo( StringBuffer buffer ) {
if (anyInvokableHasDescription()) {
writeInvokablesTo(buffer);
} else {
buffer.append(NO_EXPECTATIONS_MESSAGE);
}
return buffer;
}
private void writeInvokablesTo( StringBuffer buffer ) {
Iterator iterator = invokables.iterator();
while (iterator.hasNext()) {
Invokable invokable = (Invokable)iterator.next();
if (invokable.hasDescription()) {
invokable.describeTo(buffer).append("\n");
}
}
}
private boolean anyInvokableHasDescription() {
Iterator iterator = invokables.iterator();
while (iterator.hasNext()) {
if (((Invokable)iterator.next()).hasDescription()) return true;
}
return false;
}
}
|
[
"[email protected]"
] | |
ef354c8e9e2ca47a95f5225e551dc9ff54de7ec2
|
2de257be8dc9ffc70dd28988e7a9f1b64519b360
|
/tags/rds-0.26/src/datascript/emit/java/UnionEmitter.java
|
8e8085393a41ee0eac98fd1f2b8c55c4c63ceed0
|
[] |
no_license
|
MichalLeonBorsuk/datascript-svn
|
f141e5573a1728b006a13a0852a5ebb0495177f8
|
8a89530c50cdfde43696eb7309767d45979e2f40
|
refs/heads/master
| 2020-04-13T03:11:45.133544
| 2010-04-06T13:04:03
| 2010-04-06T13:04:03
| 162,924,533
| 0
| 1
| null | 2018-12-23T21:18:53
| 2018-12-23T21:18:52
| null |
UTF-8
|
Java
| false
| false
| 5,508
|
java
|
/* BSD License
*
* Copyright (c) 2006, Harald Wellmann, Henrik Wedekind Harman/Becker Automotive Systems
* All rights reserved.
*
* This software is derived from previous work
* Copyright (c) 2003, Godmar Back.
*
* 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 Harman/Becker Automotive Systems or
* Godmar Back nor the names of their contributors may be used to
* endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package datascript.emit.java;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
import datascript.antlr.util.ToolContext;
import datascript.ast.CompoundType;
import datascript.ast.DataScriptException;
import datascript.ast.Field;
import datascript.ast.FunctionType;
import datascript.ast.Parameter;
import datascript.ast.UnionType;
import freemarker.template.Configuration;
import freemarker.template.Template;
public class UnionEmitter extends CompoundEmitter
{
private final List<CompoundFunctionEmitter> functions =
new ArrayList<CompoundFunctionEmitter>();
private final List<UnionFieldEmitter> fields =
new ArrayList<UnionFieldEmitter>();
private UnionType union;
public static class UnionFieldEmitter extends FieldEmitter
{
private static Template tpl = null;
public UnionFieldEmitter(Field f, CompoundEmitter j)
{
super(f, j);
}
@Override
public void emit(PrintWriter pw, Configuration cfg) throws Exception
{
if (tpl == null)
tpl = cfg.getTemplate("java/UnionFieldAccessor.ftl");
tpl.process(this, pw);
}
public String getCheckerName()
{
return AccessorNameEmitter.getCheckerName(field);
}
public String getText()
{
return field.toString();
}
}
public UnionEmitter(JavaDefaultEmitter j, UnionType union)
{
super(j);
this.union = union;
}
public UnionType getUnionType()
{
return union;
}
@Override
public CompoundType getCompoundType()
{
return union;
}
public void begin(Configuration cfg)
{
fields.clear();
for (Field field : union.getFields())
{
if (field.getAlignment() != null)
ToolContext.logError(field, "align is not allowed in union");
UnionFieldEmitter fe = new UnionFieldEmitter(field, this);
fields.add(fe);
}
params.clear();
for (Parameter param : union.getParameters())
{
CompoundParameterEmitter p = new CompoundParameterEmitter(param, this);
params.add(p);
}
functions.clear();
for (FunctionType func : union.getFunctions())
{
CompoundFunctionEmitter f = new CompoundFunctionEmitter(func);
functions.add(f);
}
try
{
Template tpl = cfg.getTemplate("java/UnionBegin.ftl");
tpl.process(this, writer);
for (UnionFieldEmitter field : fields)
{
field.emit(writer, cfg);
}
for (CompoundParameterEmitter param : params)
{
param.emit(writer, cfg);
}
for (CompoundFunctionEmitter func : functions)
{
func.emit(writer, cfg);
}
tpl = cfg.getTemplate("java/UnionRead.ftl");
tpl.process(this, writer);
tpl = cfg.getTemplate("java/UnionWrite.ftl");
tpl.process(this, writer);
}
catch (Exception e)
{
throw new DataScriptException(e);
}
}
public void end(Configuration cfg)
{
try
{
Template tpl = cfg.getTemplate("java/SequenceEnd.ftl");
tpl.process(this, writer);
}
catch (Exception e)
{
throw new DataScriptException(e);
}
}
public List<UnionFieldEmitter> getFields()
{
return fields;
}
}
|
[
"hwellmann@7eccfe4a-4f19-0410-86c7-be9599f3b344"
] |
hwellmann@7eccfe4a-4f19-0410-86c7-be9599f3b344
|
4b11a5f47ca5ced3c9da9e8495ba67fdbfc10a34
|
5122a4619b344c36bfc969283076c12419f198ea
|
/src/test/java/com/snapwiz/selenium/tests/staf/learningspaces/testcases/IT9/R1/LTILSAndAdptiveLoginWithResourceLinkIdblank.java
|
87cbea9101ac79556beb7a26b45a95c9528a34af
|
[] |
no_license
|
mukesh89m/automation
|
0c1e8ff4e38e8e371cc121e64aacc6dc91915d3a
|
a0b4c939204af946cf7ca7954097660b2a0dfa8d
|
refs/heads/master
| 2020-05-18T15:30:22.681006
| 2018-06-09T15:14:11
| 2018-06-09T15:14:11
| 32,666,214
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 992
|
java
|
package com.snapwiz.selenium.tests.staf.learningspaces.testcases.IT9.R1;
import org.testng.Assert;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.Test;
import com.snapwiz.selenium.tests.staf.learningspaces.Driver;
import com.snapwiz.selenium.tests.staf.learningspaces.apphelper.LoginUsingLTI;
import com.snapwiz.selenium.tests.staf.learningspaces.uihelper.BooleanValue;
/*
* 21
*/
public class LTILSAndAdptiveLoginWithResourceLinkIdblank extends Driver{
@Test
public void ltiLSAndAdptiveLoginWithResourceLinkIdblank()
{
try
{
new LoginUsingLTI().ltiLogin("21");
boolean dashboard=new BooleanValue().booleanbyclass("ls-dashboard-container");
if(dashboard==false)
Assert.fail("User still lands in Dashboard with Resource Link id left blank during LTILogin.");
}
catch(Exception e)
{
Assert.fail("Exception in TestCase ltiLSAndAdptiveLoginWithResourceLinkIdblank in class LTILSAndAdptiveLoginWithResourceLinkIdblank. ", e);
}
}
}
|
[
"[email protected]"
] | |
67f2dd8b8aa7bb2102099dda117a502f94aafec0
|
8b4f30926eef1d7832ab666e27b6fe615d8604fd
|
/src/main/java/org/librairy/service/nlp/client/SpotlightClient.java
|
0c4e75883d0a3aace965975fcc60f8f9db6aa0e2
|
[
"Apache-2.0"
] |
permissive
|
librairy/nlpES-service
|
3dfb0888e992eb4f60971d56a3ce7b1080cec85d
|
5f07f08ee1059595ce9d4e817372e689d903f679
|
refs/heads/master
| 2021-05-12T14:05:37.348728
| 2019-03-12T23:55:37
| 2019-03-12T23:55:37
| 116,943,132
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,499
|
java
|
package org.librairy.service.nlp.client;
import org.apache.commons.io.IOUtils;
import org.apache.http.HttpEntity;
import org.apache.http.HttpStatus;
import org.apache.http.NameValuePair;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.methods.HttpUriRequest;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.util.EntityUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.w3c.dom.Document;
import org.xml.sax.InputSource;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringReader;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
* @author Badenes Olmedo, Carlos <[email protected]>
*/
public class SpotlightClient {
private static final Logger LOG = LoggerFactory.getLogger(SpotlightClient.class);
private final CloseableHttpClient httpclient;
public SpotlightClient() {
this.httpclient = HttpClients.createDefault();
}
public Document request(String url, Map<String,String> parameters) throws Exception{
Document doc = null;
HttpPost httpPost = new HttpPost(url);
httpPost.setHeader("Content-Type", "application/x-www-form-urlencoded;charset=utf-8");
httpPost.setHeader("Accept", "text/xml");
List<NameValuePair> params = parameters.entrySet().stream().map(entry -> new BasicNameValuePair(entry.getKey(), entry.getValue())).collect(Collectors.toList());
httpPost.setEntity(new UrlEncodedFormEntity(params));
String xml = request(httpPost);
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
InputSource is = new InputSource(new StringReader(xml));
Document document = builder.parse(is);
return document;
}
public String request(HttpUriRequest method) throws Exception
{
String xml ="";
CloseableHttpResponse response = null;
try {
response = httpclient.execute(method);
// Execute the method.
int statusCode = response.getStatusLine().getStatusCode();
if (statusCode != HttpStatus.SC_OK)
{
LOG.error("Method failed: " + response.getStatusLine());
}
// Read the response body.
// // Deal with the response.
// // Use caution: ensure correct character encoding and is not binary data
HttpEntity entity2 = response.getEntity();
// do something useful with the response body
// and ensure it is fully consumed
InputStream responseBody = entity2.getContent();
xml = IOUtils.toString(responseBody, "UTF-8");
EntityUtils.consume(entity2);
} catch (IOException e)
{
LOG.error("Fatal transport error: " + e.getMessage());
throw new Exception("Transport error executing HTTP request.", e);
}
finally
{
// Release the connection.
if (response != null) response.close();
}
return xml;
}
}
|
[
"[email protected]"
] | |
ba5068a4d54d5a1c967635b8baa34cde7f7d25b7
|
0f95f50be23e409c083dd8562452cd8ca55b743c
|
/boss/src/com/tstar/crm/service/CrmUserService.java
|
21b11dea70d887df82e59decf831c93be3154d39
|
[] |
no_license
|
RisingStar20/yan
|
727d467bb43fb6fd911de9dcd73621376e5dc9c4
|
7002f62eac5872788715760f9af20af1d71173f3
|
refs/heads/master
| 2020-05-09T12:21:42.681959
| 2018-04-12T15:01:00
| 2018-04-12T15:01:00
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 495
|
java
|
/**
*
*/
package com.tstar.crm.service;
import java.util.List;
import java.util.Map;
import com.tstar.crm.model.CrmUser;
/**
* @author zhumengfeng
*
*/
public interface CrmUserService {
CrmUser selectByPrimaryKey(String id);
Map<String, Object> selectFullInfoById(String id);
Map<String, Object> selectFullInfoByBusinessKey(String businessKey);
int countByCriteria(Map<String, Object> map);
List<CrmUser> selectByPage(Map<String, Object> map);
}
|
[
"[email protected]"
] | |
fba5d82541b01fb0984a3e28a5bf598e848d8ad4
|
890af51efbc9b8237e0fd09903f78fe2bb9caadd
|
/general/system/com/hd/agent/system/timer/ClearLockTimer.java
|
4645fd2896ce4e59fe24f932addf0db4771784d8
|
[] |
no_license
|
1045907427/project
|
815fb0c5b4b44bf5d8365acfde61b6f68be6e52a
|
6eaecf09cd3414295ccf91454f62cf4d619cdbf2
|
refs/heads/master
| 2020-04-14T19:17:54.310613
| 2019-01-14T10:49:11
| 2019-01-14T10:49:11
| 164,052,678
| 0
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 927
|
java
|
/**
* @(#)LockTimer.java
* @author chenwei
* 版本历史
* -------------------------------------------------------------------------
* 时间 作者 内容
* -------------------------------------------------------------------------
* Mar 13, 2013 chenwei 创建版本
*/
package com.hd.agent.system.timer;
import java.util.Date;
import com.hd.agent.system.service.INetLockService;
/**
*
* 网络互斥解锁定时器
* @author chenwei
*/
public class ClearLockTimer {
private INetLockService netLockService;
public INetLockService getNetLockService() {
return netLockService;
}
public void setNetLockService(INetLockService netLockService) {
this.netLockService = netLockService;
}
/**
* 清除超时的加锁数据
* @throws Exception
* @author chenwei
* @date Mar 13, 2013
*/
public void run() throws Exception{
System.out.println(new Date());
netLockService.clearLock();
}
}
|
[
"[email protected]"
] | |
cea126c1a3216afce717aa70ecfbc3b9e55201d9
|
691d588accc94c0306d9dae9706d9bdc543db8d3
|
/webanno-automation/src/main/java/de/tudarmstadt/ukp/clarin/webanno/automation/service/export/AutomationMiraTemplateExporter.java
|
2987dea0b2d576016d67d78887da79cb6e9839d5
|
[
"Apache-2.0"
] |
permissive
|
pw-mini-ig/webanno
|
c8ecccd2d136b7ff49f5d65c54bd73dfd63f203a
|
78592a4706f2fca2bcb2333203f9ae1438e607cd
|
refs/heads/master
| 2023-02-21T06:24:14.929426
| 2021-01-28T12:59:43
| 2021-01-28T12:59:43
| 320,852,744
| 0
| 0
|
Apache-2.0
| 2021-01-28T12:59:44
| 2020-12-12T14:45:30
| null |
UTF-8
|
Java
| false
| false
| 5,580
|
java
|
/*
* Copyright 2018
* Ubiquitous Knowledge Processing (UKP) Lab and FG Language Technology
* Technische Universität Darmstadt
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.tudarmstadt.ukp.clarin.webanno.automation.service.export;
import static java.util.Arrays.asList;
import java.io.File;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.zip.ZipFile;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import de.tudarmstadt.ukp.clarin.webanno.api.AnnotationSchemaService;
import de.tudarmstadt.ukp.clarin.webanno.api.dao.export.exporters.LayerExporter;
import de.tudarmstadt.ukp.clarin.webanno.api.export.ProjectExportRequest;
import de.tudarmstadt.ukp.clarin.webanno.api.export.ProjectExportTaskMonitor;
import de.tudarmstadt.ukp.clarin.webanno.api.export.ProjectExporter;
import de.tudarmstadt.ukp.clarin.webanno.api.export.ProjectImportRequest;
import de.tudarmstadt.ukp.clarin.webanno.automation.model.MiraTemplate;
import de.tudarmstadt.ukp.clarin.webanno.automation.service.AutomationService;
import de.tudarmstadt.ukp.clarin.webanno.automation.service.export.model.ExportedMiraTemplate;
import de.tudarmstadt.ukp.clarin.webanno.export.model.ExportedAnnotationFeatureReference;
import de.tudarmstadt.ukp.clarin.webanno.export.model.ExportedProject;
import de.tudarmstadt.ukp.clarin.webanno.model.AnnotationFeature;
import de.tudarmstadt.ukp.clarin.webanno.model.AnnotationLayer;
import de.tudarmstadt.ukp.clarin.webanno.model.Project;
@Component
public class AutomationMiraTemplateExporter
implements ProjectExporter
{
private static final String MIRA_TEMPLATES = "mira_templates";
private @Autowired AnnotationSchemaService annotationService;
private @Autowired AutomationService automationService;
@Override
public List<Class<? extends ProjectExporter>> getImportDependencies()
{
return asList(LayerExporter.class);
}
@Override
public void exportData(ProjectExportRequest aRequest, ProjectExportTaskMonitor aMonitor,
ExportedProject aExProject, File aStage)
throws Exception
{
List<ExportedMiraTemplate> exTemplates = new ArrayList<>();
for (MiraTemplate template : automationService.listMiraTemplates(aRequest.getProject())) {
ExportedMiraTemplate exTemplate = new ExportedMiraTemplate();
exTemplate.setAnnotateAndPredict(template.isAnnotateAndRepeat());
exTemplate.setAutomationStarted(template.isAutomationStarted());
exTemplate.setCurrentLayer(template.isCurrentLayer());
exTemplate.setResult(template.getResult());
exTemplate.setTrainFeature(
new ExportedAnnotationFeatureReference(template.getTrainFeature()));
if (template.getOtherFeatures().size() > 0) {
Set<ExportedAnnotationFeatureReference> exOtherFeatures = new HashSet<>();
for (AnnotationFeature feature : template.getOtherFeatures()) {
exOtherFeatures.add(new ExportedAnnotationFeatureReference(feature));
}
exTemplate.setOtherFeatures(exOtherFeatures);
}
exTemplates.add(exTemplate);
}
aExProject.setProperty(MIRA_TEMPLATES, exTemplates);
}
@Override
public void importData(ProjectImportRequest aRequest, Project aProject,
ExportedProject aExProject, ZipFile aZip)
throws Exception
{
ExportedMiraTemplate[] templates = aExProject.getArrayProperty(MIRA_TEMPLATES,
ExportedMiraTemplate.class);
for (ExportedMiraTemplate exTemplate : templates) {
MiraTemplate template = new MiraTemplate();
template.setAnnotateAndRepeat(exTemplate.isAnnotateAndPredict());
template.setAutomationStarted(false);
template.setCurrentLayer(exTemplate.isCurrentLayer());
template.setResult("---");
AnnotationLayer trainingLayer = annotationService.findLayer(aProject,
exTemplate.getTrainFeature().getLayer());
AnnotationFeature trainingFeature = annotationService
.getFeature(exTemplate.getTrainFeature().getName(), trainingLayer);
template.setTrainFeature(trainingFeature);
Set<AnnotationFeature> otherFeatures = new HashSet<>();
if (exTemplate.getOtherFeatures() != null) {
for (ExportedAnnotationFeatureReference other : exTemplate.getOtherFeatures()) {
AnnotationLayer layer = annotationService.findLayer(aProject, other.getLayer());
AnnotationFeature feature = annotationService.getFeature(other.getName(),
layer);
otherFeatures.add(feature);
}
template.setOtherFeatures(otherFeatures);
}
automationService.createTemplate(template);
}
}
}
|
[
"[email protected]"
] | |
f3d0380e3f82ac71684f569c07960f67051067ed
|
a1d3aa27bfec92ef6c53c47135063a5b37eb79c4
|
/BackEnd/Core/sailfish-core/src/main/java/com/exactpro/sf/embedded/statistics/storage/reporting/TagGroupReportRow.java
|
daf3b8094a08aea1d04d5b3399571011eec5902f
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
1ekrem/sailfish-core
|
661159ca9c56a025302d6795c4e702568a588482
|
b6051b1eb72b2bde5731a7e645f9ea4b8f92c514
|
refs/heads/master
| 2020-05-01T16:36:15.334838
| 2018-12-29T12:28:57
| 2018-12-29T13:33:52
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,606
|
java
|
/******************************************************************************
* Copyright 2009-2018 Exactpro (Exactpro Systems Limited)
*
* 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.exactpro.sf.embedded.statistics.storage.reporting;
import java.io.Serializable;
import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@SuppressWarnings("serial")
public class TagGroupReportRow implements Serializable {
private String[] dimensionsPath;
private long totalExecTime;
private long totalTcCount;
private long passedCount;
private long failedCount;
private long conditionallyPassedCount;
private BigDecimal passedPercent;
private BigDecimal failedPercent;
private BigDecimal conditionallyPassedPercent;
private int totalMatrices;
private int failedMatrices;
private String formattedExecTime;
public String getPathEnd() {
if(this.dimensionsPath != null) {
return this.dimensionsPath[dimensionsPath.length-1];
} else {
return null;
}
}
public String[] getDimensionsPath() {
return dimensionsPath;
}
public void setDimensionsPath(String[] dimensionsPath) {
this.dimensionsPath = dimensionsPath;
}
public long getTotalExecTime() {
return totalExecTime;
}
public void setTotalExecTime(long totalExecTime) {
this.totalExecTime = totalExecTime;
}
public long getTotalTcCount() {
return totalTcCount;
}
public void setTotalTcCount(long totalTcCount) {
this.totalTcCount = totalTcCount;
}
public long getPassedCount() {
return passedCount;
}
public void setPassedCount(long passedCount) {
this.passedCount = passedCount;
}
public long getFailedCount() {
return failedCount;
}
public void setFailedCount(long failedCount) {
this.failedCount = failedCount;
}
public long getConditionallyPassedCount() {
return conditionallyPassedCount;
}
public void setConditionallyPassedCount(long conditionallyPassedCount) {
this.conditionallyPassedCount = conditionallyPassedCount;
}
public BigDecimal getPassedPercent() {
return passedPercent;
}
public void setPassedPercent(BigDecimal passedPercent) {
this.passedPercent = passedPercent;
}
public BigDecimal getFailedPercent() {
return failedPercent;
}
public void setFailedPercent(BigDecimal failedPercent) {
this.failedPercent = failedPercent;
}
public BigDecimal getConditionallyPassedPercent() {
return conditionallyPassedPercent;
}
public void setConditionallyPassedPercent(BigDecimal conditionallyPassedPercent) {
this.conditionallyPassedPercent = conditionallyPassedPercent;
}
public int getTotalMatrices() {
return totalMatrices;
}
public void setTotalMatrices(int totalMatrices) {
this.totalMatrices = totalMatrices;
}
public int getFailedMatrices() {
return failedMatrices;
}
public void setFailedMatrices(int failedMatrices) {
this.failedMatrices = failedMatrices;
}
@Override
public String toString() {
ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
builder.append("dimensionsPath", dimensionsPath);
builder.append("totalExecTime", totalExecTime);
builder.append("totalTcCount", totalTcCount);
builder.append("passedCount", passedCount);
builder.append("conditionallyPassedCount", conditionallyPassedCount);
builder.append("failedCount", failedCount);
builder.append("passedPercent", passedPercent);
builder.append("conditionallyPassedPercent", conditionallyPassedPercent);
builder.append("failedPercent", failedPercent);
builder.append("totalMatrices", totalMatrices);
return builder.toString();
}
public String getFormattedExecTime() {
return formattedExecTime;
}
public void setFormattedExecTime(String formattedExecTime) {
this.formattedExecTime = formattedExecTime;
}
}
|
[
"[email protected]"
] | |
99652ab946435083f0df3a150722528e2e8335fa
|
70375ad64773d74e8882e45b2f7351b7739fa629
|
/src/test/java/org/apache/ibatis/domain/blog/mappers/CopyOfAuthorMapper.java
|
baa2d58bd61041eae80b4feed93bf50ec9464bc9
|
[
"Apache-2.0",
"BSD-3-Clause"
] |
permissive
|
yangfancoming/mybatis
|
104e64e3f1659ebe1228413f16c4a373e8bedd1c
|
7cd9c6093a608a0e0da32155e75d1fddd090c8d5
|
refs/heads/master
| 2022-09-22T21:09:10.430995
| 2021-05-30T10:37:34
| 2021-05-30T10:37:34
| 195,225,348
| 0
| 0
|
Apache-2.0
| 2022-09-08T01:01:18
| 2019-07-04T11:00:52
|
Java
|
UTF-8
|
Java
| false
| false
| 472
|
java
|
package org.apache.ibatis.domain.blog.mappers;
import org.apache.ibatis.domain.blog.Author;
import org.apache.ibatis.session.ResultHandler;
import java.util.List;
public interface CopyOfAuthorMapper {
List selectAllAuthors();
void selectAllAuthors(ResultHandler handler);
Author selectAuthor(int id);
void selectAuthor(int id, ResultHandler handler);
void insertAuthor(Author author);
int deleteAuthor(int id);
int updateAuthor(Author author);
}
|
[
"[email protected]"
] | |
674595ec0fa04a513dab4cc0dbe6539ca7853416
|
47e7b03ccd007aaf4a388f2cee4c170aff835d99
|
/src/main/java/com/gagan/server/service/implementation/AuthService.java
|
f30f8712ffd613be81ea03e51625c0767c4207c9
|
[] |
no_license
|
Gagandeep39/server-transaction-viewver
|
c6d47be4bbfb394678d16a47c913982cc1adec90
|
eea54150c5b7131ce9cd934702484d23c7cb10fc
|
refs/heads/master
| 2023-02-03T06:25:33.869767
| 2020-12-24T19:57:31
| 2020-12-24T19:57:31
| 324,146,530
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,646
|
java
|
package com.gagan.server.service.implementation;
import com.gagan.server.domain.User;
import com.gagan.server.exceptions.InvalidCredentialException;
import com.gagan.server.model.JwtRequest;
import com.gagan.server.model.JwtResponse;
import com.gagan.server.repos.UserRepository;
import com.gagan.server.security.JwtProvider;
import com.gagan.server.service.IAuthService;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import lombok.AllArgsConstructor;
@Service
@AllArgsConstructor
public class AuthService implements IAuthService {
private final UserRepository userRepository;
private final PasswordEncoder passwordEncoder;
private final JwtProvider jwtProvider;
@Override
public JwtResponse login(JwtRequest loginRequest) {
User user = findUserByCredentials(loginRequest.getUserId(), loginRequest.getPassword());
return JwtResponse.builder()
.userId(user.getUserid())
.token(jwtProvider.generateTokenWithUsername(user.getUserid().toString()))
.build();
}
@Override
public boolean checkIfUsernameExists(String username) {
return false;
}
@Transactional(readOnly = true)
public User findUserByCredentials(Integer username, String password) {
User user = userRepository.findById(username)
.orElseThrow(() -> new InvalidCredentialException("userId", "User " + username + " doesn't exist"));
if (!passwordEncoder.matches(password, user.getPassword())) throw new InvalidCredentialException("password", "Invalid Password");
return user;
}
}
|
[
"[email protected]"
] | |
bc96e02a8b067d9f4195a0dc8d8ed4500ac1758b
|
9ac8184133b176912b5489e9fe90046404cff6a3
|
/g-Projects/WebSocketDemos/demo01/src/main/java/top/iqqcode/demo01/controller/MessageController.java
|
d25ec96a41b3bb7965d67b17cca9de8bc3dbd5a7
|
[] |
no_license
|
IQQcode/Code-Java
|
d5524151b33811d423c6f877418b948f10f10c96
|
96b3157c16674be50e0b8a1ea58867a3de11d930
|
refs/heads/master
| 2022-12-27T12:32:05.824182
| 2022-07-31T09:32:18
| 2022-07-31T09:32:18
| 159,743,511
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 904
|
java
|
package top.iqqcode.demo01.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.messaging.handler.annotation.MessageMapping;
import org.springframework.messaging.simp.SimpMessageSendingOperations;
import org.springframework.stereotype.Controller;
import top.iqqcode.demo01.domain.MessageBody;
@Controller
public class MessageController {
/**
* 消息发送工具对象
*/
@Autowired
private SimpMessageSendingOperations simpMessageSendingOperations;
/**
* 广播发送消息,将消息发送到指定的目标地址
*/
@MessageMapping("/test")
public void sendTopicMessage(MessageBody messageBody) {
// 将消息发送到 WebSocket 配置类中配置的代理中(/topic)进行消息转发
simpMessageSendingOperations.convertAndSend(messageBody.getDestination(), messageBody);
}
}
|
[
"[email protected]"
] | |
66368806006c765e637e7d698fbbff73b8ba90c3
|
aa76c179f0b424cdf4d0f11e89265881443bdd9a
|
/app/src/main/java/com/lltech/manager/activity/xj/XjAty.java
|
962d86b9cd8530c6791e074f5132a62bb6afd2ac
|
[] |
no_license
|
317764920/manager
|
ad9a63567e6c9f1c2c0787a1bc8085bda755df13
|
9813fcfe8208a4d5be746dca7d6e4b58fb0b9ca3
|
refs/heads/master
| 2020-12-25T09:38:17.988949
| 2016-06-23T08:39:28
| 2016-06-23T08:39:28
| 61,787,972
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,602
|
java
|
package com.lltech.manager.activity.xj;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import android.view.View;
import android.widget.TextView;
import com.lcx.mysdk.activity.BaseFragmentActivity;
import com.lcx.mysdk.application.BaseApplication;
import com.lltech.manager.R;
import com.lltech.manager.fragment.xj.MiddleFragment;
import com.lltech.manager.widget.TopBar;
import java.util.ArrayList;
import java.util.List;
/**
* @ClassName(类名) : XjAty
* @Description(描述) : 巡检
* @author(作者) :liuchunxu
* @date (开发日期) :2016年05月23日 10:53
*/
public class XjAty extends BaseFragmentActivity implements MiddleFragment.OnButtonClick {
private BaseApplication application = BaseApplication.getApplication();
private ViewPager mViewPager;
private TopBar topBar;
private FragmentPagerAdapter mAdapter;
private List<Fragment> mTabContents = new ArrayList<Fragment>();
int position = 0;
private TextView txt_address, txt_content;
@Override
public void setContentView() {
setContentView(R.layout.activity_xj);
}
@Override
public void initViews() {
mViewPager = $(R.id.id_vp);
topBar = $(R.id.top);
txt_address = $(R.id.txt_address);
txt_content = $(R.id.txt_content);
}
@Override
public void initListeners() {
}
@Override
public void initData() {
showFragment();
}
@Override
public void initConfig() {
topBar.getLeftBtn().setVisibility(View.GONE);
topBar.getRightBtn1().setVisibility(View.GONE);
topBar.getRightBtn2().setVisibility(View.GONE);
topBar.setTopText("巡检执行");
}
private void showFragment() {
mTabContents.clear();
MiddleFragment middleFragment;
for (int i = 0; i <= 20; i++) {
middleFragment = new MiddleFragment();
mTabContents.add(middleFragment);
}
mAdapter = new FragmentPagerAdapter(getSupportFragmentManager()) {
@Override
public Fragment getItem(int position) {
return mTabContents.get(position);
}
@Override
public int getCount() {
return mTabContents.size();
}
};
mViewPager.setAdapter(mAdapter);
}
@Override
public void OnButtonClick(View view, Boolean value) {
if (value) {
position++;
mViewPager.setCurrentItem(position);
}
}
}
|
[
"java"
] |
java
|
4565fc267229f778e0135ab8f7af2d21dc04f699
|
1448f519f5beeb597449613ca319a36ee691d6e6
|
/openTCS-PlantOverview-Base/src/main/java/org/opentcs/guing/components/properties/type/SymbolProperty.java
|
60d7827faa8679902705828da161a86f8b742c45
|
[
"CC-BY-4.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
bluseking/opentcs
|
2acc808042a1fe9973c33dda6f2a19366dd7e139
|
0edd4f5a882787b83e5132097cf3cf9fc6ac4cc2
|
refs/heads/master
| 2023-09-06T06:44:10.473728
| 2021-11-25T15:43:14
| 2021-11-25T15:43:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,926
|
java
|
/**
* Copyright (c) The openTCS Authors.
*
* This program is free software and subject to the MIT license. (For details,
* see the licensing information (LICENSE.txt) you should have received with
* this copy of the software.)
*/
package org.opentcs.guing.components.properties.type;
import org.opentcs.data.model.visualization.LocationRepresentation;
import org.opentcs.guing.model.ModelComponent;
/**
* A property for a graphical symbol.
*
* @author Sebastian Naumann (ifak e.V. Magdeburg)
*/
public class SymbolProperty
extends AbstractComplexProperty {
/**
* The location representation.
*/
private LocationRepresentation locationRepresentation;
/**
* Creates a new instance.
*
* @param model The model component this property belongs to.
*/
public SymbolProperty(ModelComponent model) {
super(model);
}
@Override
public Object getComparableValue() {
return locationRepresentation;
}
/**
* Set the location representation for this property.
*
* @param locationRepresentation The location representation.
*/
public void setLocationRepresentation(LocationRepresentation locationRepresentation) {
this.locationRepresentation = locationRepresentation;
}
/**
* Returns the location representation for this property.
*
* @return The location representation.
*/
public LocationRepresentation getLocationRepresentation() {
return locationRepresentation;
}
@Override // java.lang.Object
public String toString() {
if (fValue != null) {
return fValue.toString();
}
return locationRepresentation == null ? "" : locationRepresentation.name();
}
@Override // AbstractProperty
public void copyFrom(Property property) {
SymbolProperty symbolProperty = (SymbolProperty) property;
symbolProperty.setValue(null);
setLocationRepresentation(symbolProperty.getLocationRepresentation());
}
}
|
[
"[email protected]"
] | |
cb72e0b7d6207333b2bb2282b8c8df2220bd3330
|
95ea92360a655265240a0da03f777a87861992c6
|
/jOOQ-test/src/org/jooq/test/oracle/generatedclasses/test/routines/PEnhanceAddress2.java
|
52fd68a1c11c86eda397fbb48de0b596cf485a64
|
[
"Apache-2.0",
"BSD-3-Clause"
] |
permissive
|
hekar/jOOQ
|
886bd8579d6d1069d477f8d1322a51b6f4acfce0
|
d5945b9ee37ac92949fa6f5e9cd229046923c2e0
|
refs/heads/master
| 2021-01-17T21:58:21.141951
| 2012-09-03T02:11:51
| 2012-09-03T02:11:51
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,029
|
java
|
/**
* This class is generated by jOOQ
*/
package org.jooq.test.oracle.generatedclasses.test.routines;
/**
* This class is generated by jOOQ.
*/
public class PEnhanceAddress2 extends org.jooq.impl.AbstractRoutine<java.lang.Void> {
private static final long serialVersionUID = -441980941;
/**
* The procedure parameter <code>TEST.P_ENHANCE_ADDRESS2.ADDRESS</code>
*/
public static final org.jooq.Parameter<org.jooq.test.oracle.generatedclasses.test.udt.records.UAddressTypeRecord> ADDRESS = createParameter("ADDRESS", org.jooq.test.oracle.generatedclasses.test.udt.UAddressType.U_ADDRESS_TYPE.getDataType());
/**
* Create a new routine call instance
*/
public PEnhanceAddress2() {
super("P_ENHANCE_ADDRESS2", org.jooq.test.oracle.generatedclasses.test.Test.TEST);
addOutParameter(ADDRESS);
}
/**
* Get the <code>ADDRESS</code> parameter OUT value from the routine
*/
public org.jooq.test.oracle.generatedclasses.test.udt.records.UAddressTypeRecord getAddress() {
return getValue(ADDRESS);
}
}
|
[
"[email protected]"
] | |
36322fd24d08034626497347a847a5754719ec05
|
0ac05e3da06d78292fdfb64141ead86ff6ca038f
|
/OSWE/oswe/openCRX/rtjar/rt.jar.src/com/sun/xml/internal/ws/api/databinding/DatabindingFactory.java
|
6ac276bbf46f092d33eecf3604670602582b2c87
|
[] |
no_license
|
qoo7972365/timmy
|
31581cdcbb8858ac19a8bb7b773441a68b6c390a
|
2fc8baba4f53d38dfe9c2b3afd89dcf87cbef578
|
refs/heads/master
| 2023-07-26T12:26:35.266587
| 2023-07-17T12:35:19
| 2023-07-17T12:35:19
| 353,889,195
| 7
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,367
|
java
|
/* */ package com.sun.xml.internal.ws.api.databinding;
/* */
/* */ import com.oracle.webservices.internal.api.databinding.Databinding;
/* */ import com.oracle.webservices.internal.api.databinding.DatabindingFactory;
/* */ import com.sun.xml.internal.ws.db.DatabindingFactoryImpl;
/* */ import java.util.Map;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public abstract class DatabindingFactory
/* */ extends DatabindingFactory
/* */ {
/* 102 */ static final String ImplClass = DatabindingFactoryImpl.class.getName();
/* */
/* */
/* */
/* */ public abstract Databinding createRuntime(DatabindingConfig paramDatabindingConfig);
/* */
/* */
/* */
/* */ public abstract Map<String, Object> properties();
/* */
/* */
/* */
/* */ public static DatabindingFactory newInstance() {
/* */ try {
/* 116 */ Class<?> cls = Class.forName(ImplClass);
/* 117 */ return (DatabindingFactory)cls.newInstance();
/* 118 */ } catch (Exception e) {
/* 119 */ e.printStackTrace();
/* */
/* 121 */ return null;
/* */ }
/* */ }
/* */ }
/* Location: /Users/timmy/timmy/OSWE/oswe/openCRX/rt.jar!/com/sun/xml/internal/ws/api/databinding/DatabindingFactory.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/
|
[
"t0984456716"
] |
t0984456716
|
b44622ceaa561c713575acd6b7d276fa73bce50b
|
a0728a167e1cb883255a34e055cac4ac60309f20
|
/db/tempSQL/beauty/src/main/java/com/beauty/repository/specification/ProductCategorySpecification.java
|
21994c08e7c6ff5c28c3a8baa7ea8c57df152132
|
[] |
no_license
|
jingug1004/pythonBasic
|
3d3c6c091830215c8be49cc6280b7467fd19dc76
|
554e3d1a9880b4f74872145dc4adaf0b099b0845
|
refs/heads/master
| 2023-03-06T06:24:05.671015
| 2022-03-09T08:16:58
| 2022-03-09T08:16:58
| 179,009,504
| 0
| 0
| null | 2023-03-03T13:09:01
| 2019-04-02T06:02:44
|
Java
|
UTF-8
|
Java
| false
| false
| 1,359
|
java
|
package com.beauty.repository.specification;
import java.util.List;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Join;
import javax.persistence.criteria.JoinType;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import org.springframework.data.jpa.domain.Specification;
import com.beauty.entity.Category;
import com.beauty.entity.Product;
import com.beauty.entity.ProductCategory;
public class ProductCategorySpecification {
public static Specification<ProductCategory> categoryIn(List<Category> category) {
return new Specification<ProductCategory>() {
@Override
public Predicate toPredicate(Root<ProductCategory> root, CriteriaQuery<?> query, CriteriaBuilder cb) {
// final Subquery<Product> personQuery = query.subquery(Product.class);
final Join<ProductCategory, Product> ids = root.join("product", JoinType.LEFT);
// personQuery.select(ids.<Product> get("product"));
// personQuery.where(cb.equal(ids.<Product> get("stopSelling"), 1));
query.groupBy(ids.<Product> get("productId"));
Predicate p1 = cb.equal(ids.<Product> get("stopSelling"), 0);
Predicate predicate = root.get("category").in(category);
return cb.and(p1, predicate);
}
};
}
}
|
[
"[email protected]"
] | |
d2739a1edb75e58876c1dc3abccc834a4467129d
|
4a8bcfa280c0aed245383150b66acf1a7550458d
|
/org.obeonetwork.dsl.spem/src/org/obeonetwork/dsl/spem/uma/impl/DisciplinePackageImpl.java
|
c5e8464b820dac5057248f3e0d9f3aeff3868fc1
|
[] |
no_license
|
SebastienAndreo/SPEM-Designer
|
f4eedad7e0d68403a1a3bddfddcfb2182796a222
|
532e71548fde8d73a78b471a8fd8dd402e92f58e
|
refs/heads/master
| 2021-01-15T13:06:10.846652
| 2012-08-07T07:13:03
| 2012-08-07T07:13:03
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 877
|
java
|
/**
* THALES (c)
*/
package org.obeonetwork.dsl.spem.uma.impl;
import org.eclipse.emf.ecore.EClass;
import org.obeonetwork.dsl.spem.impl.MethodContentPackageImpl;
import org.obeonetwork.dsl.spem.uma.DisciplinePackage;
import org.obeonetwork.dsl.spem.uma.UmaPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Discipline Package</b></em>'.
* <!-- end-user-doc -->
* <p>
* </p>
*
* @generated
*/
public class DisciplinePackageImpl extends MethodContentPackageImpl implements DisciplinePackage {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected DisciplinePackageImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return UmaPackage.Literals.DISCIPLINE_PACKAGE;
}
} //DisciplinePackageImpl
|
[
"[email protected]"
] | |
2a7e453f80b6a2fc8c185f310077d567183ade24
|
1ec018880634c6fb4e3e8265f0f95f46f71ef402
|
/app/src/main/java/com/blankj/androidutilcode/base/IBaseView.java
|
261c0b3063a117382a720d9225cb533614c22255
|
[
"Apache-2.0"
] |
permissive
|
android24/AndroidUtilCode
|
93482f74c162846594139a873904baae98a00f54
|
0f566fd345ea2e289eb8e8d1483d999e02be2405
|
refs/heads/master
| 2020-03-09T05:24:19.689808
| 2018-04-08T06:23:15
| 2018-04-08T06:23:15
| 128,612,972
| 1
| 0
|
Apache-2.0
| 2018-04-08T07:33:57
| 2018-04-08T07:33:57
| null |
UTF-8
|
Java
| false
| false
| 785
|
java
|
package com.blankj.androidutilcode.base;
import android.os.Bundle;
import android.view.View;
/**
* <pre>
* author: Blankj
* blog : http://blankj.com
* time : 2017/06/27
* desc :
* </pre>
*/
interface IBaseView extends View.OnClickListener {
/**
* 初始化数据
*
* @param bundle 传递过来的 bundle
*/
void initData(final Bundle bundle);
/**
* 绑定布局
*
* @return 布局 Id
*/
int bindLayout();
/**
* 初始化 view
*/
void initView(final Bundle savedInstanceState, final View contentView);
/**
* 业务操作
*/
void doBusiness();
/**
* 视图点击事件
*
* @param view 视图
*/
void onWidgetClick(final View view);
}
|
[
"[email protected]"
] | |
4d10c99aac38a20b63a280deca48e478fb7919c3
|
a43d4202628ecb52e806d09f0f3dc1f5bab3ef4f
|
/src/main/java/pnc/mesadmin/entity/DevGpDtlInfo.java
|
bf964bcfe2d357ec6788557af2fbb4fd7f5401cf
|
[] |
no_license
|
pnc-mes/base
|
b88583929e53670340a704f848e4e9e2027f1334
|
162135b8752b4edc397b218ffd26664929f6920d
|
refs/heads/main
| 2023-01-07T22:06:10.794300
| 2020-10-27T07:47:20
| 2020-10-27T07:47:20
| 307,621,190
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,022
|
java
|
package pnc.mesadmin.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
/**
* 公司名称:驭航信息技术(上海)有限公司
* 系统名称:PNC-MES管理系统
* 子系统名称:设备组信息Model
* 创建人:刘福志
* 创建时间:2017-8-7
* 修改人:
* 修改时间:
*/
@TableName(value = "tpm_devgpdtlinfo")
public class DevGpDtlInfo {
private int ruid;
private String guid;
private String devGpGd;
private String devGd;
private String creator;
private Date createTime;
private String lastModifyMan;
private Date lastModifyTime;
private String remark;
public int getRuid() {
return ruid;
}
public void setRuid(int ruid) {
this.ruid = ruid;
}
public String getGuid() {
return guid;
}
public void setGuid(String guid) {
this.guid = guid;
}
public String getDevGpGd() {
return devGpGd;
}
public void setDevGpGd(String devGpGd) {
this.devGpGd = devGpGd;
}
public String getDevGd() {
return devGd;
}
public void setDevGd(String devGd) {
this.devGd = devGd;
}
public String getCreator() {
return creator;
}
public void setCreator(String creator) {
this.creator = creator;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getLastModifyMan() {
return lastModifyMan;
}
public void setLastModifyMan(String lastModifyMan) {
this.lastModifyMan = lastModifyMan;
}
public Date getLastModifyTime() {
return lastModifyTime;
}
public void setLastModifyTime(Date lastModifyTime) {
this.lastModifyTime = lastModifyTime;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
}
|
[
"[email protected]"
] | |
03f083b3d9a1409556630f6f84221cf809b33496
|
3a5985651d77a31437cfdac25e594087c27e93d6
|
/ojc-core/component-common/axiondb/src/org/axiondb/engine/indexes/StringBTreeIndex.java
|
10c5518155847beb4483cb5e022ebd98057031fd
|
[] |
no_license
|
vitalif/openesb-components
|
a37d62133d81edb3fdc091abd5c1d72dbe2fc736
|
560910d2a1fdf31879e3d76825edf079f76812c7
|
refs/heads/master
| 2023-09-04T14:40:55.665415
| 2016-01-25T13:12:22
| 2016-01-25T13:12:33
| 48,222,841
| 0
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,620
|
java
|
/*
*
* =======================================================================
* Copyright (c) 2003-2005 Axion Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above
* copyright notice, this list of conditions and the following
* disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The names "Tigris", "Axion", nor the names of its contributors may
* not be used to endorse or promote products derived from this
* software without specific prior written permission.
*
* 4. Products derived from this software may not be called "Axion", nor
* may "Tigris" or "Axion" appear in their names without specific prior
* written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* =======================================================================
*/
package org.axiondb.engine.indexes;
import java.io.File;
import java.io.IOException;
import org.axiondb.AxionException;
import org.axiondb.Column;
import org.axiondb.DataType;
import org.axiondb.IndexLoader;
import org.axiondb.engine.StringBTreeIndexLoader;
import org.axiondb.util.NullObject;
import org.axiondb.util.ObjectBTree;
import org.axiondb.util.StringBTree;
/**
* @version
* @author Rodney Waldhoff
*/
public class StringBTreeIndex extends ObjectBTreeIndex {
public StringBTreeIndex(String name, Column column, boolean unique) throws AxionException {
this(name, column, unique, 1000);
}
public StringBTreeIndex(String name, Column column, boolean unique, int minimizationFactor) throws AxionException {
this(name, column, unique, minimizationFactor, null);
}
public StringBTreeIndex(String name, Column column, boolean unique, int minimizationFactor, File dataDirectory) throws AxionException {
super(name, column, unique, dataDirectory);
_minimizationFactor = minimizationFactor;
}
public IndexLoader getIndexLoader() {
return LOADER;
}
public int getMinimizationFactor() {
return _minimizationFactor;
}
protected ObjectBTree createTree(File dataDirectory, String name, int minimizationFactor, DataType dataType) throws IOException,
ClassNotFoundException {
return new StringBTree(dataDirectory, name, minimizationFactor, dataType);
}
protected Object getNullKey() {
return NullObject.INSTANCE.toString();
}
private static final IndexLoader LOADER = new StringBTreeIndexLoader();
}
|
[
"[email protected]"
] | |
00a0d118b16f905c89421a2f821ddf90c81bca2c
|
70cbaeb10970c6996b80a3e908258f240cbf1b99
|
/WiFi万能钥匙dex1-dex2jar.jar.src/com/b/a/i.java
|
079b2b2f11f229929b512de03dc5f9c529150f01
|
[] |
no_license
|
nwpu043814/wifimaster4.2.02
|
eabd02f529a259ca3b5b63fe68c081974393e3dd
|
ef4ce18574fd7b1e4dafa59318df9d8748c87d37
|
refs/heads/master
| 2021-08-28T11:11:12.320794
| 2017-12-12T03:01:54
| 2017-12-12T03:01:54
| 113,553,417
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 315
|
java
|
package com.b.a;
public abstract interface i
{
public abstract boolean a(l paraml);
public abstract boolean a(Class<?> paramClass);
}
/* Location: /Users/hanlian/Downloads/WiFi万能钥匙dex1-dex2jar.jar!/com/b/a/i.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"[email protected]"
] | |
4ac0a57a8729463d8180ddf2fe922feec6cb2044
|
0cfa4343f83eea4288bafeef64ad2f7cb7a499ba
|
/app/src/main/java/com/example/huichuanyi/utils/ActivityUtils.java
|
6f2bb3be4ccca0d64a957f19cdd4261003013e4e
|
[] |
no_license
|
wodejiusannian/HuiChuanYi
|
4a049b2a901d6b2dc868ccff5a7227c2462315f0
|
14aa2cc99ec1b0a1c1c085662d6fb324f3a714fc
|
refs/heads/master
| 2020-12-02T18:16:53.406731
| 2018-07-10T01:14:28
| 2018-07-10T01:14:28
| 81,194,590
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,970
|
java
|
package com.example.huichuanyi.utils;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Toast;
import java.util.Map;
public class ActivityUtils {
/**
* </br><b>title : </b> 设置Activity全屏显示
* </br><b>description :</b>设置Activity全屏显示。
*
* @param activity Activity引用
* @param isFull true为全屏,false为非全屏
*/
public static void setFullScreen(Activity activity, boolean isFull) {
Window window = activity.getWindow();
WindowManager.LayoutParams params = window.getAttributes();
if (isFull) {
params.flags |= WindowManager.LayoutParams.FLAG_FULLSCREEN;
window.setAttributes(params);
window.addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
} else {
params.flags &= (~WindowManager.LayoutParams.FLAG_FULLSCREEN);
window.setAttributes(params);
window.clearFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
}
}
/**
* 获得状态栏的高度
*
* @param context
* @return
*/
public static int getStatusBarHeight(Context context) {
int result = 0;
int resourceId = context.getResources().getIdentifier("status_bar_height", "dimen", "android");
if (resourceId > 0) {
result = context.getResources().getDimensionPixelSize(resourceId);
}
return result;
}
/**
* </br><b>title : </b> 隐藏系统标题栏
* </br><b>description :</b>隐藏Activity的系统默认标题栏
*
* @param activity Activity对象
*/
public static void hideTitleBar(Activity activity) {
activity.requestWindowFeature(Window.FEATURE_NO_TITLE);
}
public static void setScreenVertical(Activity activity) {
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
}
/**
* </br><b>title : </b> 设置Activity的显示方向为横向
* </br><b>description :</b>强制设置Actiity的显示方向为横向。
*
* @param activity Activity对象
*/
public static void setScreenHorizontal(Activity activity) {
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
}
/**
* </br><b>title : </b> 隐藏软件输入法
* </br><b>description :</b>隐藏软件输入法
* </br><b>time :</b> 2012-7-12 下午7:20:00
*
* @param activity
*/
public static void hideSoftInput(Activity activity) {
activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
}
/**
* </br><b>title : </b> 使UI适配输入法
* </br><b>description :</b>使UI适配输入法
* </br><b>time :</b> 2012-7-17 下午10:21:26
*
* @param activity
*/
public static void adjustSoftInput(Activity activity) {
activity.getWindow().setSoftInputMode(
WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
}
/**
* </br><b>title : </b> 跳转到某个Activity。
* </br><b>description :</b>跳转到某个Activity
* </br><b>time :</b> 2012-7-8 下午3:20:00
*
* @param activity 本Activity
* @param targetActivity 目标Activity的Class
*/
public static void switchTo(Activity activity, Class<? extends Activity> targetActivity) {
switchTo(activity, new Intent(activity, targetActivity));
}
/**
* </br><b>title : </b> 根据给定的Intent进行Activity跳转
* </br><b>description :</b>根据给定的Intent进行Activity跳转
* </br><b>time :</b> 2012-7-8 下午3:22:23
*
* @param activity Activity对象
* @param intent 要传递的Intent对象
*/
public static void switchTo(Activity activity, Intent intent) {
activity.startActivity(intent);
}
/**
* </br><b>title : </b> 带参数进行Activity跳转
* </br><b>description :</b>带参数进行Activity跳转
* </br><b>time :</b> 2012-7-8 下午3:24:54
*
* @param activity Activity对象
* @param targetActivity 目标Activity的Class
* @param params 跳转所带的参数
*/
public static void switchTo(Activity activity, Class<? extends Activity> targetActivity, Map<String, Object> params) {
if (null != params) {
Intent intent = new Intent(activity, targetActivity);
for (Map.Entry<String, Object> entry : params.entrySet()) {
setValueToIntent(intent, entry.getKey(), entry.getValue());
}
switchTo(activity, intent);
}
}
/* *//**
* </br><b>title : </b> 带参数进行Activity跳转
* </br><b>description :</b>带参数进行Activity跳转
* </br><b>time :</b> 2012-7-17 下午10:22:58
* @param activity
* @param target
* @param params
*//*
public static void switchTo(Activity activity,Class<? extends Activity> target,NameValuePair...params){
if( null != params ){
Intent intent = new Intent(activity,target);
for(NameValuePair param : params){
setValueToIntent(intent, param.getName(), param.getValue());
}
switchTo(activity, intent);
}
}*/
/**
* </br><b>title : </b> 显示Toast消息。
* </br><b>description :</b>显示Toast消息,并保证运行在UI线程中
* </br><b>time :</b> 2012-7-10 下午08:36:02
*
* @param activity
* @param message
*/
public static void toastShow(final Activity activity, final String message) {
activity.runOnUiThread(new Runnable() {
public void run() {
Toast.makeText(activity, message, Toast.LENGTH_SHORT).show();
}
});
}
/**
* </br><b>title : </b> 将值设置到Intent里
* </br><b>description :</b>将值设置到Intent里
* </br><b>time :</b> 2012-7-8 下午3:31:17
*
* @param intent Inent对象
* @param key Key
* @param val Value
*/
public static void setValueToIntent(Intent intent, String key, Object val) {
if (val instanceof Boolean)
intent.putExtra(key, (Boolean) val);
else if (val instanceof Boolean[])
intent.putExtra(key, (Boolean[]) val);
else if (val instanceof String)
intent.putExtra(key, (String) val);
else if (val instanceof String[])
intent.putExtra(key, (String[]) val);
else if (val instanceof Integer)
intent.putExtra(key, (Integer) val);
else if (val instanceof Integer[])
intent.putExtra(key, (Integer[]) val);
else if (val instanceof Long)
intent.putExtra(key, (Long) val);
else if (val instanceof Long[])
intent.putExtra(key, (Long[]) val);
else if (val instanceof Double)
intent.putExtra(key, (Double) val);
else if (val instanceof Double[])
intent.putExtra(key, (Double[]) val);
else if (val instanceof Float)
intent.putExtra(key, (Float) val);
else if (val instanceof Float[])
intent.putExtra(key, (Float[]) val);
}
/**
* dp转换成px
*/
public static int dp2px(Context context,float dpValue){
float scale=context.getResources().getDisplayMetrics().density;
return (int)(dpValue*scale+0.5f);
}
/**
* px转换成dp
*/
public static int px2dp(Context context,float pxValue){
float scale=context.getResources().getDisplayMetrics().density;
return (int)(pxValue/scale+0.5f);
}
}
|
[
"[email protected]"
] | |
10093ef48143cecb289e7efc59ac05e18c32a7c8
|
55b93ddeb025281f1e5bdfa165cb5074ec622544
|
/graphsdk/src/main/java/com/microsoft/graph/generated/IBaseOnenoteResourceCollectionRequest.java
|
213ef3b27d8b3cc0863a3f43bbf5adfa05bc2ed2
|
[
"MIT"
] |
permissive
|
Glennmen/msgraph-sdk-android
|
7c13e8367fb6cb7bb9a655860a4c14036601296b
|
cb774abbaa1abde0c63229a70256b3d97f212a3e
|
refs/heads/master
| 2020-03-30T15:56:29.622277
| 2018-10-03T09:07:00
| 2018-10-03T09:07:00
| 151,386,422
| 1
| 0
|
NOASSERTION
| 2018-10-03T09:03:00
| 2018-10-03T09:02:59
| null |
UTF-8
|
Java
| false
| false
| 1,867
|
java
|
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.generated;
import com.microsoft.graph.concurrency.*;
import com.microsoft.graph.core.*;
import com.microsoft.graph.extensions.*;
import com.microsoft.graph.http.*;
import com.microsoft.graph.generated.*;
import com.microsoft.graph.options.*;
import com.microsoft.graph.serializer.*;
import java.util.Arrays;
import java.util.EnumSet;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The interface for the Base Onenote Resource Collection Request.
*/
public interface IBaseOnenoteResourceCollectionRequest {
void get(final ICallback<IOnenoteResourceCollectionPage> callback);
IOnenoteResourceCollectionPage get() throws ClientException;
void post(final OnenoteResource newOnenoteResource, final ICallback<OnenoteResource> callback);
OnenoteResource post(final OnenoteResource newOnenoteResource) throws ClientException;
/**
* Sets the expand clause for the request
*
* @param value The expand clause
* @return The updated request
*/
IOnenoteResourceCollectionRequest expand(final String value);
/**
* Sets the select clause for the request
*
* @param value The select clause
* @return The updated request
*/
IOnenoteResourceCollectionRequest select(final String value);
/**
* Sets the top value for the request
*
* @param value The max number of items to return
* @return The updated request
*/
IOnenoteResourceCollectionRequest top(final int value);
}
|
[
"[email protected]"
] | |
4c59a3d7ab9e9497cd24b3530959dc71a236ead2
|
10535e4ebeeac5bc2fb6e852aff1066d1dcfe0f3
|
/xcr-web/xcr-web-app/src/main/java/com/yatang/xc/xcr/dto/inputs/EditNewGoodsDto.java
|
33f4544801747f0355434368cb7b029433fbbbc1
|
[] |
no_license
|
pocketbbaa/XCR
|
c6b3b08a432a7af2e5396f3551ad82133dc1af6b
|
03940b44cb6aa733657609f372ca3c4d5e81165a
|
refs/heads/master
| 2021-04-03T07:09:40.935591
| 2018-03-09T06:43:27
| 2018-03-09T06:43:27
| 124,474,053
| 2
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,696
|
java
|
package com.yatang.xc.xcr.dto.inputs;
import java.io.Serializable;
/**
* @Author : BobLee
* @CreateTime : 2017年12月08日 14:38
* @Summary : 编辑商品v2.6
*/
@SuppressWarnings("serial")
public class EditNewGoodsDto implements Serializable {
/**
* 用户ID
*/
private String userId;
/**
* 门店编号
*/
private String storeSerialNo;
/**
* TOKEN
*/
private String token;
/**
* 商品Id
*/
private String goodsId;
/**
* 1:自建商品、2:非自建商品
*商品类别
*/
private Integer goodsType;
/**
* 自建商品可修改
*商品名称
*/
private String goodsName;
/**
*商品条码
*/
private String goodsCode;
/**
* 商品简码
* 为称重商品时才有
*/
private String goodsSimpleCode;
/**
*售价
*/
private String goodsPrice;
/**
*参考成本价
*/
private String costPrice;
/**
* 1:是,0:否
*是否称重商品
*/
private Integer isWeighingGoods;
/**
* 1:是,0:否
*是否允许退货
*/
private Integer isAllowReturn;
/**
*1:上架,0:下架
*商品上下架状态
*/
private Integer frameType;
/**
*备注
*/
private String remark;
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getStoreSerialNo() {
return storeSerialNo;
}
public void setStoreSerialNo(String storeSerialNo) {
this.storeSerialNo = storeSerialNo;
}
public String getToken() {
return token;
}
public void setToken(String token) {
this.token = token;
}
public String getGoodsId() {
return goodsId;
}
public void setGoodsId(String goodsId) {
this.goodsId = goodsId;
}
public Integer getGoodsType() {
return goodsType;
}
public void setGoodsType(Integer goodsType) {
this.goodsType = goodsType;
}
public String getGoodsName() {
return goodsName;
}
public void setGoodsName(String goodsName) {
this.goodsName = goodsName;
}
public String getGoodsCode() {
return goodsCode;
}
public void setGoodsCode(String goodsCode) {
this.goodsCode = goodsCode;
}
public String getGoodsSimpleCode() {
return goodsSimpleCode;
}
public void setGoodsSimpleCode(String goodsSimpleCode) {
this.goodsSimpleCode = goodsSimpleCode;
}
public String getGoodsPrice() {
return goodsPrice;
}
public void setGoodsPrice(String goodsPrice) {
this.goodsPrice = goodsPrice;
}
public String getCostPrice() {
return costPrice;
}
public void setCostPrice(String costPrice) {
this.costPrice = costPrice;
}
public Integer getIsWeighingGoods() {
return isWeighingGoods;
}
public void setIsWeighingGoods(Integer isWeighingGoods) {
this.isWeighingGoods = isWeighingGoods;
}
public Integer getIsAllowReturn() {
return isAllowReturn;
}
public void setIsAllowReturn(Integer isAllowReturn) {
this.isAllowReturn = isAllowReturn;
}
public Integer getFrameType() {
return frameType;
}
public void setFrameType(Integer frameType) {
this.frameType = frameType;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
}
|
[
"[email protected]"
] | |
2ea90e3d37826c745eb1115f471c40ba1d8dfe42
|
2640c34d161600de72bfbb5acd7f10bc323b0398
|
/gravitee-am-model/src/main/java/io/gravitee/am/model/flow/Flow.java
|
3fda5183d20ba7b833f7ded00c107e34a33d7949
|
[
"Apache-2.0"
] |
permissive
|
tiagoros/gravitee-access-management
|
2f78c88c6d0a9d4f1bd6b3850410fdcf107f8ddf
|
fb0e9cffa49dfae9083debe8560081548ca5e473
|
refs/heads/master
| 2023-07-28T07:37:11.971492
| 2021-08-31T14:24:21
| 2021-09-07T14:42:05
| 404,282,714
| 0
| 0
|
Apache-2.0
| 2021-09-08T09:12:18
| 2021-09-08T09:12:17
| null |
UTF-8
|
Java
| false
| false
| 5,085
|
java
|
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 io.gravitee.am.model.flow;
import io.gravitee.am.model.ReferenceType;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* @author Titouan COMPIEGNE (titouan.compiegne at graviteesource.com)
* @author GraviteeSource Team
*/
public class Flow {
/**
* Flow technical id
*/
private String id;
/**
* The type of reference the flow is attached to (for now, should be DOMAIN).
*/
private ReferenceType referenceType;
/**
* The id of the reference the flow is attached to (for now, should be the domain id).
*/
private String referenceId;
/**
* The application id the flow is attached to (if flow is defined at application level).
*/
private String application;
/**
* Flow name
*/
private String name;
/**
* execution order of the flow if multiple flows with the same 'type' exist
*/
private Integer order;
/**
* Flow pre steps
*/
private List<Step> pre = new ArrayList<>();
/**
* Flow post steps
*/
private List<Step> post = new ArrayList<>();
/**
* Flow state
*/
private boolean enabled;
/**
* The type of flow
*/
private Type type;
/**
* Condition attached to the Flow
*/
private String condition;
/**
* Flow created date
*/
private Date createdAt;
/**
* Flow updated date
*/
private Date updatedAt;
public Integer getOrder() {
return order;
}
public void setOrder(Integer order) {
this.order = order;
}
public Flow() {
}
public Flow(Flow other) {
this.id = other.id;
this.referenceType = other.referenceType;
this.referenceId = other.referenceId;
this.application = other.application;
this.name = other.name;
this.pre = other.pre;
this.post = other.post;
this.enabled = other.enabled;
this.type = other.type;
this.order = other.getOrder();
this.condition = other.condition;
this.createdAt = other.createdAt;
this.updatedAt = other.updatedAt;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public ReferenceType getReferenceType() {
return referenceType;
}
public void setReferenceType(ReferenceType referenceType) {
this.referenceType = referenceType;
}
public String getReferenceId() {
return referenceId;
}
public void setReferenceId(String referenceId) {
this.referenceId = referenceId;
}
public String getApplication() {
return application;
}
public void setApplication(String application) {
this.application = application;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public List<Step> getPre() {
return pre;
}
public void setPre(List<Step> pre) {
this.pre = pre;
}
public List<Step> getPost() {
return post;
}
public void setPost(List<Step> post) {
this.post = post;
}
public boolean isEnabled() {
return enabled;
}
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
public Type getType() {
return type;
}
public void setType(Type type) {
this.type = type;
}
public String getCondition() {
return condition;
}
public void setCondition(String condition) {
this.condition = condition;
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
@Override
public String toString() {
return "{\"_class\":\"Flow\", " +
"\"id\":" + (id == null ? "null" : "\"" + id + "\"") + ", " +
"\"referenceType\":" + (referenceType == null ? "null" : referenceType) + ", " +
"\"referenceId\":" + (referenceId == null ? "null" : "\"" + referenceId + "\"") + ", " +
"\"name\":" + (name == null ? "null" : "\"" + name + "\"") +
"}";
}
}
|
[
"[email protected]"
] | |
e40f13f4d1ffd855fc451730ce1044599c07ac38
|
1e9d9f2a1f49fe6ad543f9c199bbfbfaa05b75f7
|
/src/main/java/org/mitre/cybox/common_2/PersonnelType.java
|
402f53bec8949d28b1f80f8e006963530649264a
|
[] |
no_license
|
raydogg779/Java_Stix
|
7ceec4bbc92d95fe04b7684070c7b407e5f62366
|
0df279a4f2a5dab3567d34842e58fcd13c41f286
|
refs/heads/master
| 2021-01-20T21:56:54.967406
| 2014-04-09T21:21:28
| 2014-04-09T21:21:28
| 23,079,250
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,370
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.04.09 at 05:02:22 PM EDT
//
package org.mitre.cybox.common_2;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* The PersonnelType is an abstracted data type to standardize the description of sets of personnel.
*
* <p>Java class for PersonnelType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="PersonnelType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Contributor" type="{http://cybox.mitre.org/common-2}ContributorType" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PersonnelType", propOrder = {
"contributor"
})
public class PersonnelType {
@XmlElement(name = "Contributor", required = true)
protected List<ContributorType> contributor;
/**
* Gets the value of the contributor property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the contributor property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContributor().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ContributorType }
*
*
*/
public List<ContributorType> getContributor() {
if (contributor == null) {
contributor = new ArrayList<ContributorType>();
}
return this.contributor;
}
}
|
[
"[email protected]"
] | |
a06e683ea40482c89aca9c914445df60477902be
|
6c07762b53597858e243d9f5d3449ecbaf5dc801
|
/UBL2.1/src/oasis/names/specification/ubl/schema/xsd/commonbasiccomponents_2/ProfileIDType.java
|
3b5a404650080eaf0c22cc15a08591c1bd7a5c2f
|
[] |
no_license
|
edwinrjrc/RHCProy2.1
|
9823806a62bb754a870cd7f5fa84d1bc482fbde2
|
4aa28e21f0d499a71f18bb8d1b2b06a3a5bef22a
|
refs/heads/master
| 2020-03-28T22:19:08.113338
| 2019-06-23T04:36:52
| 2019-06-23T04:36:52
| 149,223,588
| 0
| 0
| null | null | null | null |
WINDOWS-1250
|
Java
| false
| false
| 1,317
|
java
|
//
// Este archivo ha sido generado por la arquitectura JavaTM para la implantación de la referencia de enlace (JAXB) XML v2.2.8-b130911.1802
// Visite <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Todas las modificaciones realizadas en este archivo se perderán si se vuelve a compilar el esquema de origen.
// Generado el: 2018.09.09 a las 12:31:18 PM COT
//
package oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import oasis.names.specification.ubl.schema.xsd.unqualifieddatatypes_2.IdentifierType;
/**
* <p>Clase Java para ProfileIDType complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
* <pre>
* <complexType name="ProfileIDType">
* <simpleContent>
* <extension base="<urn:oasis:names:specification:ubl:schema:xsd:UnqualifiedDataTypes-2>IdentifierType">
* </extension>
* </simpleContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ProfileIDType")
public class ProfileIDType
extends IdentifierType
{
}
|
[
"[email protected]"
] | |
73b7a4b00d04925d81bba07ef538e25cbfea3a21
|
a8452cc2b5663dd5b0928169936c223374c7f0d6
|
/app/src/main/java/com/dom/player/utils/MediaUtil.java
|
3e85c456f9224f5aa58e6d9d7433a9624a019b93
|
[] |
no_license
|
chenanddom/MusicPlayer2
|
d7920fcc95f729b9a47723ab0d1934a5914f848a
|
705a413f7b85ac3453d9b702dee983d1de82f9ed
|
refs/heads/master
| 2020-12-24T10:40:05.766888
| 2016-11-14T03:30:51
| 2016-11-14T03:30:51
| 73,140,827
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,893
|
java
|
package com.dom.player.utils;
import android.content.ContentResolver;
import android.content.ContentUris;
import android.content.Context;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.ParcelFileDescriptor;
import android.provider.MediaStore;
import com.dom.player.bean.Song;
import java.io.FileDescriptor;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import player.dom.com.musicplayer.R;
/**
* Created by chendom on 16-11-8.
*/
/**
* 怎样获取图片的大小?
* 首先我们把这个图片转成Bitmap,然后再利用Bitmap的getWidth()和getHeight()方法就可以取到图片的宽高了。
* 新问题又来了,在通过BitmapFactory.decodeFile(String path)方法将突破转成Bitmap时,遇到大一些的图片,我们经常会遇到OOM(Out Of Memory)的问题。怎么避免它呢?
* 这就用到了我们上面提到的BitmapFactory.Options这个类。
* <p>
* BitmapFactory.Options这个类,有一个字段叫做 inJustDecodeBounds 。SDK中对这个成员的说明是这样的:
* If set to true, the decoder will return null (no bitmap), but the out…
* 也就是说,如果我们把它设为true,那么BitmapFactory.decodeFile(String path, Options opt)并不会真的返回一个Bitmap给你,它仅仅会把它的宽,高取回来给你,这样就不会占用太多的内存,也就不会那么频繁的发生OOM了。
*/
public class MediaUtil {
private static final Uri albumArtUri = Uri.parse("content://media/external/audio/albumart");
public static ArrayList<Song> getAllSongs(Context context) {
Cursor cursor = context.getContentResolver().query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, null, null, null, MediaStore.Audio.Media.DEFAULT_SORT_ORDER);
ArrayList<Song> mp3Infos = new ArrayList<Song>();
for (int i = 0; i < cursor.getCount(); i++) {
cursor.moveToNext();
Song mp3Info = new Song();
long id = cursor.getLong(cursor.getColumnIndex(MediaStore.Audio.Media._ID));//get music's id
String title = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.TITLE));//get music's title
String artist = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.ARTIST));//get music's artist
String album = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.ALBUM));
String displayeName = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.DISPLAY_NAME));
long albumId = cursor.getInt(cursor.getColumnIndex(MediaStore.Audio.Media.ALBUM_ID));
long duration = cursor.getLong(cursor.getColumnIndex(MediaStore.Audio.Media.DURATION));
long size = cursor.getLong(cursor.getColumnIndex(MediaStore.Audio.Media.SIZE));
String url = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.DATA));
int isMusic = cursor.getInt(cursor.getColumnIndex(MediaStore.Audio.Media.IS_MUSIC));
if (isMusic != 0) {
mp3Info.setId(id);
mp3Info.setTitle(title);
mp3Info.setArtist(artist);
mp3Info.setAlbum(album);
mp3Info.setDispalyeName(displayeName);
mp3Info.setAlbumId(albumId);
mp3Info.setDuration(duration);
mp3Info.setSize(size);
mp3Info.setUrl(url);
mp3Infos.add(mp3Info);
}
}
return mp3Infos;
}
public static String formatTimer(long time) {
String min = time / (1000 * 60) + "";
String sec = time % (1000 * 60) + "";
if (min.length() < 2) {
min = "0" + time / (1000 * 60) + "";
} else {
sec = time / (1000 * 60) + "";
}
if (sec.length() == 4) {
sec = "0" + (time % (1000 * 60)) + "";
} else if (sec.length() == 3) {
sec = "00" + (time % (1000 * 60)) + "";
} else if (sec.length() == 2) {
sec = "000" + (time % (1000 * 60)) + "";
} else if (sec.length() == 1) {
sec = "0000" + (time % (1000 * 60)) + "";
}
return min + ":" + sec.trim().substring(0, 2);
}
private static final Uri sArtworkUri = Uri.parse("content://media/external/audio/albumart");
private static final BitmapFactory.Options sBitmapOptions = new BitmapFactory.Options();
public static final Bitmap getArtwork(Context context, long songId, long albumId, boolean allowdefault) {
if (albumId < 0) {
if (songId >= 0) {
// Bitmap bmp = get
Bitmap bmp = getArtworkFromFile(context, songId, -1);
if (bmp != null) {
return bmp;
}
}
if (allowdefault) {
return getDefaulArtwork(context);
}
return null;
}
ContentResolver res = context.getContentResolver();
Uri uri = ContentUris.withAppendedId(sArtworkUri, albumId);
if (uri != null) {
InputStream in = null;
try {
in = res.openInputStream(uri);
Bitmap bm = BitmapFactory.decodeStream(in, null, sBitmapOptions);
if (bm == null) {
bm = getDefaulArtwork(context);
}
return bm;
} catch (Exception e) {
Bitmap bm = getArtworkFromFile(context, songId, albumId);
if (bm != null) {
if (bm.getConfig() == null) {
bm = bm.copy(Bitmap.Config.RGB_565, false);
if (bm == null && allowdefault) {
return getDefaulArtwork(context);
}
}
} else if (allowdefault) {
bm = getDefaulArtwork(context);
}
return bm;
} finally {
try {
if (in != null) {
in.close();
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
return null;
}
private static Bitmap getArtworkFromFile(Context context, long songId, long albumId) {
Bitmap bmp = null;
if (albumId < 0 && songId < 0) {
throw new IllegalArgumentException("must specify an abum or a song id");
}
try {
if (albumId < 0) {
Uri uri = Uri.parse("content://media/external/audio/media/" + songId + "/albumart");
ParcelFileDescriptor pfd = context.getContentResolver().openFileDescriptor(uri, "r");
if (pfd != null) {
FileDescriptor fd = pfd.getFileDescriptor();
bmp = BitmapFactory.decodeFileDescriptor(fd);
}
} else {
Uri uri = ContentUris.withAppendedId(sArtworkUri, albumId);
ParcelFileDescriptor pfd = context.getContentResolver().openFileDescriptor(uri, "r");
if (pfd != null) {
FileDescriptor fd = pfd.getFileDescriptor();
bmp = BitmapFactory.decodeFileDescriptor(fd);
}
}
} catch (FileNotFoundException e) {
e.printStackTrace();
}
return bmp;
}
private static Bitmap getDefaulArtwork(Context context) {
BitmapFactory.Options opts = new BitmapFactory.Options();
opts.inPreferredConfig = Bitmap.Config.RGB_565;
return BitmapFactory.decodeStream(context.getResources().openRawResource(R.raw.icon_monkey), null, opts);
}
}
|
[
"[email protected]"
] | |
59e92e76928c1a94f469e50b64c5efde0b5c5d63
|
c8ec156aff710230b23fcdcad3cff99e90ec43b1
|
/src/test/java/jmind/pigg/binding/InvocationContextFactoryTest.java
|
55561ee050fa1a436af8862a7933927a6c477652
|
[
"Apache-2.0"
] |
permissive
|
weiboxie/jmind-pigg
|
b13f7c98acb55cde74fabb31de2662b5abfd1cbe
|
37a9d39042e15b214a2dbb2b4206be15da585ae9
|
refs/heads/master
| 2023-08-28T19:20:50.323692
| 2021-05-19T06:59:07
| 2021-05-19T06:59:07
| 415,533,073
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,807
|
java
|
package jmind.pigg.binding;
import org.junit.Test;
import jmind.pigg.binding.BindingParameter;
import jmind.pigg.binding.BindingParameterInvoker;
import jmind.pigg.binding.DefaultParameterContext;
import jmind.pigg.binding.FunctionalBindingParameterInvoker;
import jmind.pigg.binding.InvocationContext;
import jmind.pigg.binding.InvocationContextFactory;
import jmind.pigg.binding.ParameterContext;
import jmind.pigg.descriptor.ParameterDescriptor;
import java.lang.annotation.Annotation;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
/**
* @author xieweibo
*/
public class InvocationContextFactoryTest {
@Test
public void testNewInvocationContext() throws Exception {
List<Annotation> empty = Collections.emptyList();
ParameterDescriptor p0 = ParameterDescriptor.create(0, String.class, empty, "name");
ParameterDescriptor p1 = ParameterDescriptor.create(1, int.class, empty, "id");
List<ParameterDescriptor> pds = Arrays.asList(p0, p1);
ParameterContext paramCtx = DefaultParameterContext.create(pds);
InvocationContextFactory factory = InvocationContextFactory.create(paramCtx);
InvocationContext invCtx = factory.newInvocationContext(new Object[]{"ash", 9527});
BindingParameterInvoker nameInvoker =
FunctionalBindingParameterInvoker.create(String.class, BindingParameter.create("name", "", null));
BindingParameterInvoker idInvoker =
FunctionalBindingParameterInvoker.create(String.class, BindingParameter.create("id", "", null));
assertThat(invCtx.getNullableBindingValue(nameInvoker), equalTo((Object) "ash"));
assertThat(invCtx.getNullableBindingValue(idInvoker), equalTo((Object) 9527));
}
}
|
[
"[email protected]"
] | |
e51e892f22ac2a466d54c228efaf3f8c956ca1b2
|
91e67632d2a4d3e02b8ebe954c47fe5ae2bdfb33
|
/app/src/main/java/com/omneagate/DTO/FPSStockHistoryCollectionDto.java
|
d834bc80cf4bdca595b03659e70b16537cc09107
|
[] |
no_license
|
RamprasathPnr/FpsPosUttarPradesh
|
a2b14022d59f41b5af0d7d8e6a564ee3abd1fbb3
|
99fb57ecb4b0df59b29119f398a83eaf434d2681
|
refs/heads/master
| 2021-08-31T13:32:10.236720
| 2017-12-21T13:47:01
| 2017-12-21T13:47:01
| 115,010,323
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 652
|
java
|
package com.omneagate.DTO;
import lombok.Data;
/**
* Created for FPSStockHistoryCollectionDto
*/
@Data
public class FPSStockHistoryCollectionDto {
Long id;
String deviceNum;
/**FPS identifier*/
long fpsId;
/**product identifier*/
ProductDto productDto;
/**Stock quantity which is to be increased or decrease*/
Double quantity;
/**Previous quantity of the stock*/
Double prevQuantity;
/**Current quantity of the stock*/
Double currQuantity;
/**Created by of the stock*/
long createdBy;
/**Date of creation*/
long createdDate;
/**Operation Type*/
String operation;
}
|
[
"[email protected]"
] | |
9f5405ac18ab277db52af61520d0191d83ad5442
|
3fcc55e69477bfd8f1aefd2596a53073a9b1a438
|
/src/main/java/com/clara/taskdb/repository/TaskRepository.java
|
7c02af6ce71424a6e76d53642ee51f2536989084
|
[] |
no_license
|
ande3674/Task_DB_Spring_Knockout_Final
|
12d816470b04052a0bad012028dd6b87919257df
|
e872eb32ef0802f5d90a884a73c6a29ca395b57b
|
refs/heads/master
| 2020-03-11T17:24:49.621506
| 2018-04-25T02:35:24
| 2018-04-25T02:35:24
| 130,146,224
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 741
|
java
|
package com.clara.taskdb.repository;
import com.clara.taskdb.model.Task;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@Repository
public interface TaskRepository extends JpaRepository<Task, Long> {
List<Task> findAllByOrderByUrgentDesc();
@Transactional
@Modifying
@Query("Update Task t set t.completed = ?1 where t.id = ?2")
int setTaskCompleted(boolean completed, long id);
}
|
[
"[email protected]"
] | |
cef239e0faf71f60870b9b2b5d31b91126ee4f07
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-14319-1-25-NSGA_II-WeightedSum:TestLen:CallDiversity/com/xpn/xwiki/doc/XWikiDocument_ESTest.java
|
c27b5585bf418497bfb427a03764beafdbaeb5b3
|
[] |
no_license
|
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
|
cf118b23ecb87a8bf59643e42f7556b521d1f754
|
3bb39683f9c343b8ec94890a00b8f260d158dfe3
|
refs/heads/master
| 2022-07-29T14:44:00.774547
| 2020-08-10T15:14:49
| 2020-08-10T15:14:49
| 285,804,495
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 550
|
java
|
/*
* This file was automatically generated by EvoSuite
* Wed Apr 01 19:11:48 UTC 2020
*/
package com.xpn.xwiki.doc;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class XWikiDocument_ESTest extends XWikiDocument_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"[email protected]"
] | |
2b50690447b4ff0dab710617437c86e520f9b331
|
a9883fd97f10a720b55652f52583d7588f85b97a
|
/src/main/java/net/epoxide/surge/features/FeatureManager.java
|
2bd3292390ac5c0f44eafaed8c5528f967fbf73d
|
[] |
no_license
|
Zaggy1024/Surge
|
61604c224050fc63983280032d26b1af0f4878b1
|
9f5baf744a12eb1686048f40fc64baa500320cb8
|
refs/heads/master
| 2020-07-12T00:03:30.074539
| 2016-08-26T03:41:12
| 2016-08-26T03:50:29
| 66,614,303
| 0
| 0
| null | 2016-08-26T03:41:38
| 2016-08-26T03:41:38
| null |
UTF-8
|
Java
| false
| false
| 3,074
|
java
|
package net.epoxide.surge.features;
import java.util.ArrayList;
import java.util.List;
import net.epoxide.surge.features.animation.FeatureDisableAnimation;
import net.epoxide.surge.features.gpucloud.FeatureGPUClouds;
import net.epoxide.surge.features.hideplayers.FeatureHidePlayer;
import net.epoxide.surge.features.loadtime.FeatureLoadTimes;
import net.epoxide.surge.features.redstonetoggle.FeatureRedstoneFix;
import net.epoxide.surge.features.renderculling.FeatureGroupRenderCulling;
import net.epoxide.surge.handler.ConfigurationHandler;
import net.minecraftforge.fml.relauncher.FMLLaunchHandler;
import net.minecraftforge.fml.relauncher.Side;
public class FeatureManager {
/**
* List of all registered features.
*/
public static final List<Feature> FEATURES = new ArrayList<>();
/**
* List of all transformer features.
*/
public static final List<Feature> TRANSFORMERS = new ArrayList<>();
/**
* This method is called before any mods have had a chance to initialize. Constructors
* should take care not to reference any actual game code.
*/
public static void initFeatures () {
if (FMLLaunchHandler.side() == Side.CLIENT) {
//Disabled for now// registerFeature(new FeatureGroupRenderCulling(), "Group Render Culling", "Cuts down on the amount of entities rendered, when they are bunched together.");
registerFeature(new FeatureHidePlayer(), "Hide Players", "Command to disable the rendering of other players on the client.");
registerFeature(new FeatureRedstoneFix(), "Redstone Toggle Fix", "Fixes a memory leak with toggle state of redstone torches. MC-101233");
registerFeature(new FeatureGPUClouds(), "Cloud Rendering", "Switches the RenderGlobal to render clouds using GPU to render.");
registerFeature(new FeatureDisableAnimation(), "Disable Animation", "Allows the animation of block/item textures to be disabled.");
}
registerFeature(new FeatureLoadTimes(), "Load Time Analysis", "Records the load time of all mods being loaded.");
}
/**
* Registers a new feature with the feature manager. This will automatically create an
* entry in the configuration file to enable/disable this feature. If the feature has been
* disabled, it will not be registered. This will also handle event bus subscriptions.
*
* @param feature The feature being registered.
* @param name The name of the feature.
* @param description A short description of the feature.
*/
private static void registerFeature (Feature feature, String name, String description) {
feature.enabled = ConfigurationHandler.isFeatureEnabled(feature, name, description);
if (feature.enabled) {
feature.configName = name.toLowerCase().replace(' ', '_');
FEATURES.add(feature);
if (feature.isTransformer())
TRANSFORMERS.add(feature);
}
}
}
|
[
"[email protected]"
] | |
66155b9566d4f44a7a68697d79ef8b973e4dd0b0
|
05e8db6ca54457783b406d46049fd99fb1b27e41
|
/JAVA/Tp Java M1 STIC/HeritageEtPolymorphisme/src/Mer.java
|
35e2461faa8b78ab591042552f1983932970e2ae
|
[] |
no_license
|
mohsenuss91/Academic
|
f860c21886b6915206cc0831bd1ff4acfc4df8e9
|
12507a09d9a821646f03464a72b17e2ba2c402b0
|
refs/heads/master
| 2016-09-05T15:45:02.440164
| 2016-02-03T14:47:35
| 2016-02-03T14:47:35
| 26,594,620
| 0
| 0
| null | 2014-11-13T18:21:01
| 2014-11-13T15:38:50
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 193
|
java
|
public class Mer extends Eau {
Mer(String nom, float poid, int nbnag) {
super(nom, poid, nbnag);
}
public float vitesse() {
return ((Pokemon.poid/25)*(this.nbnag));
}
}
|
[
"[email protected]"
] | |
0c7f70a9afcc269d840e9238f8a7260db1da05e3
|
9c0d7e84e99bea9d8e0db5ebc40b3de153198fa1
|
/DataProcessingDSLPart1/ASEProject-Metamodel.diagram/src/pipelineproject/diagram/edit/policies/NullValuesRemovalNullValuesRemovalRuntimeInfoCompartmentCanonicalEditPolicy.java
|
2b8fa1c34ff6c8fc0248ff5aafa3cf6dfeb9094d
|
[] |
no_license
|
FrancescoPinto/DataProcessingDSL
|
ea36221638d15c69948abe3386bc73a7ae899e3f
|
eff66e28aa1e575f0817332c6281506582704d20
|
refs/heads/master
| 2022-04-24T09:59:55.097385
| 2020-04-20T18:57:30
| 2020-04-20T18:57:30
| 257,376,186
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,051
|
java
|
/*
*
*/
package pipelineproject.diagram.edit.policies;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.gef.EditPart;
import org.eclipse.gef.commands.Command;
import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
import org.eclipse.gmf.runtime.diagram.ui.commands.DeferredLayoutCommand;
import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
import org.eclipse.gmf.runtime.diagram.ui.commands.SetViewMutabilityCommand;
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy;
import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
import org.eclipse.gmf.runtime.notation.Node;
import org.eclipse.gmf.runtime.notation.View;
import pipelineproject.PipelineprojectPackage;
import pipelineproject.diagram.edit.parts.RuntimeInfoEditPart;
import pipelineproject.diagram.part.PipelineprojectDiagramUpdater;
import pipelineproject.diagram.part.PipelineprojectNodeDescriptor;
import pipelineproject.diagram.part.PipelineprojectVisualIDRegistry;
/**
* @generated
*/
public class NullValuesRemovalNullValuesRemovalRuntimeInfoCompartmentCanonicalEditPolicy extends CanonicalEditPolicy {
/**
* @generated
*/
protected void refreshOnActivate() {
// Need to activate editpart children before invoking the canonical refresh for EditParts to add event listeners
List<?> c = getHost().getChildren();
for (int i = 0; i < c.size(); i++) {
((EditPart) c.get(i)).activate();
}
super.refreshOnActivate();
}
/**
* @generated
*/
protected EStructuralFeature getFeatureToSynchronize() {
return PipelineprojectPackage.eINSTANCE.getTask_RuntimeInfo();
}
/**
* @generated
*/
@SuppressWarnings("rawtypes")
protected List getSemanticChildrenList() {
View viewObject = (View) getHost().getModel();
LinkedList<EObject> result = new LinkedList<EObject>();
List<PipelineprojectNodeDescriptor> childDescriptors = PipelineprojectDiagramUpdater
.getNullValuesRemovalNullValuesRemovalRuntimeInfoCompartment_7092SemanticChildren(viewObject);
for (PipelineprojectNodeDescriptor d : childDescriptors) {
result.add(d.getModelElement());
}
return result;
}
/**
* @generated
*/
protected boolean isOrphaned(Collection<EObject> semanticChildren, final View view) {
return isMyDiagramElement(view) && !semanticChildren.contains(view.getElement());
}
/**
* @generated
*/
private boolean isMyDiagramElement(View view) {
return RuntimeInfoEditPart.VISUAL_ID == PipelineprojectVisualIDRegistry.getVisualID(view);
}
/**
* @generated
*/
protected void refreshSemantic() {
if (resolveSemanticElement() == null) {
return;
}
LinkedList<IAdaptable> createdViews = new LinkedList<IAdaptable>();
List<PipelineprojectNodeDescriptor> childDescriptors = PipelineprojectDiagramUpdater
.getNullValuesRemovalNullValuesRemovalRuntimeInfoCompartment_7092SemanticChildren(
(View) getHost().getModel());
LinkedList<View> orphaned = new LinkedList<View>();
// we care to check only views we recognize as ours
LinkedList<View> knownViewChildren = new LinkedList<View>();
for (View v : getViewChildren()) {
if (isMyDiagramElement(v)) {
knownViewChildren.add(v);
}
}
// alternative to #cleanCanonicalSemanticChildren(getViewChildren(), semanticChildren)
//
// iteration happens over list of desired semantic elements, trying to find best matching View, while original CEP
// iterates views, potentially losing view (size/bounds) information - i.e. if there are few views to reference same EObject, only last one
// to answer isOrphaned == true will be used for the domain element representation, see #cleanCanonicalSemanticChildren()
for (Iterator<PipelineprojectNodeDescriptor> descriptorsIterator = childDescriptors
.iterator(); descriptorsIterator.hasNext();) {
PipelineprojectNodeDescriptor next = descriptorsIterator.next();
String hint = PipelineprojectVisualIDRegistry.getType(next.getVisualID());
LinkedList<View> perfectMatch = new LinkedList<View>(); // both semanticElement and hint match that of NodeDescriptor
for (View childView : getViewChildren()) {
EObject semanticElement = childView.getElement();
if (next.getModelElement().equals(semanticElement)) {
if (hint.equals(childView.getType())) {
perfectMatch.add(childView);
// actually, can stop iteration over view children here, but
// may want to use not the first view but last one as a 'real' match (the way original CEP does
// with its trick with viewToSemanticMap inside #cleanCanonicalSemanticChildren
}
}
}
if (perfectMatch.size() > 0) {
descriptorsIterator.remove(); // precise match found no need to create anything for the NodeDescriptor
// use only one view (first or last?), keep rest as orphaned for further consideration
knownViewChildren.remove(perfectMatch.getFirst());
}
}
// those left in knownViewChildren are subject to removal - they are our diagram elements we didn't find match to,
// or those we have potential matches to, and thus need to be recreated, preserving size/location information.
orphaned.addAll(knownViewChildren);
//
ArrayList<CreateViewRequest.ViewDescriptor> viewDescriptors = new ArrayList<CreateViewRequest.ViewDescriptor>(
childDescriptors.size());
for (PipelineprojectNodeDescriptor next : childDescriptors) {
String hint = PipelineprojectVisualIDRegistry.getType(next.getVisualID());
IAdaptable elementAdapter = new CanonicalElementAdapter(next.getModelElement(), hint);
CreateViewRequest.ViewDescriptor descriptor = new CreateViewRequest.ViewDescriptor(elementAdapter,
Node.class, hint, ViewUtil.APPEND, false, host().getDiagramPreferencesHint());
viewDescriptors.add(descriptor);
}
boolean changed = deleteViews(orphaned.iterator());
//
CreateViewRequest request = getCreateViewRequest(viewDescriptors);
Command cmd = getCreateViewCommand(request);
if (cmd != null && cmd.canExecute()) {
SetViewMutabilityCommand.makeMutable(new EObjectAdapter(host().getNotationView())).execute();
executeCommand(cmd);
@SuppressWarnings("unchecked")
List<IAdaptable> nl = (List<IAdaptable>) request.getNewObject();
createdViews.addAll(nl);
}
if (changed || createdViews.size() > 0) {
postProcessRefreshSemantic(createdViews);
}
if (createdViews.size() > 1) {
// perform a layout of the container
DeferredLayoutCommand layoutCmd = new DeferredLayoutCommand(host().getEditingDomain(), createdViews,
host());
executeCommand(new ICommandProxy(layoutCmd));
}
makeViewsImmutable(createdViews);
}
}
|
[
"[email protected]"
] | |
9ad289141f61af27af406cd84210f0a55c3e3477
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/19/19_60dd44fc116e3c0c1102f2b165cf96fa7c10e090/AssetsImageDimensions/19_60dd44fc116e3c0c1102f2b165cf96fa7c10e090_AssetsImageDimensions_s.java
|
bd35ae5841a868728b0ee77a67b1af8bce920dc3
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 2,680
|
java
|
/*******************************************************************************
* eAdventure (formerly <e-Adventure> and <e-Game>) is a research project of the e-UCM
* research group.
*
* Copyright 2005-2012 e-UCM research group.
*
* e-UCM is a research group of the Department of Software Engineering
* and Artificial Intelligence at the Complutense University of Madrid
* (School of Computer Science).
*
* C Profesor Jose Garcia Santesmases sn,
* 28040 Madrid (Madrid), Spain.
*
* For more info please visit: <http://e-adventure.e-ucm.es> or
* <http://www.e-ucm.es>
*
* ****************************************************************************
* This file is part of eAdventure, version 1.5.
*
* You can access a list of all the contributors to eAdventure at:
* http://e-adventure.e-ucm.es/contributors
*
* ****************************************************************************
* eAdventure is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* eAdventure is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Adventure. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
package es.eucm.eadventure.common.auxiliar;
/**
* Set of constants which declare maximum sizes permitted for some type of assets.
* AssetController (editor) must implement it.
*
* @author Ángel S.
*
*/
public interface AssetsImageDimensions {
/**
* Dimensions for background
*/
public static final int BACKGROUND_MAX_WIDTH = 800;
public static final int BACKGROUND_MAX_HEIGHT = 600;
/**
* Dimensions for icons
*/
public static final int ICON_MAX_WIDTH = 80;
public static final int ICON_MAX_HEIGHT = 48;
/**
* Dimensionsn for book arrows
*/
public static final int ARROW_BOOK_MAX_WIDTH = 300;
public static final int ARROW_BOOK_MAX_HEIGHT = 200;
}
|
[
"[email protected]"
] | |
59b2e85d160cb1371caefdc1195b0e4523f5510b
|
da9e57fa9472869a09abeb7a6a381cf86d4878ba
|
/src/plugin/quest/restlessghost/RestlessGhost.java
|
a65454d8e3cf753003a9d6f036a9fce6c8e7ef73
|
[] |
no_license
|
ModGallus/Server
|
f617b45a9e71f5fc1c04e6ab82fd7579c856ccaa
|
38bd2219cfda82936b5249932c0c4465d02c2b65
|
refs/heads/master
| 2021-01-11T15:21:20.792638
| 2017-01-29T09:58:40
| 2017-01-29T09:58:40
| 80,338,829
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,766
|
java
|
package plugin.quest.restlessghost;
import org.areillan.game.content.skill.Skills;
import org.areillan.game.node.entity.player.Player;
import org.areillan.game.node.entity.player.link.quest.Quest;
import org.areillan.game.node.item.Item;
import org.areillan.plugin.PluginManager;
/**
* Represents the restless ghost quest.
* @author Vexia
*
*/
public class RestlessGhost extends Quest {
/**
* The ghost speak amulet.
*/
public static final Item AMULET = new Item(552);
/**
* Constructs a new {@Code RestlessGhost} {@Code Object}
*/
public RestlessGhost() {
super("The Restless Ghost", 25, 24, 1, 107, 0, 4, 5);
}
@Override
public Quest newInstance(Object object) {
PluginManager.definePlugin(new OldCronDialogue());
return this;
}
@Override
public void drawJournal(Player player, int stage) {
super.drawJournal(player, stage);
if (stage == 0) {
player.getPacketDispatch().sendString("<col=08088A>I can start this quest by speaking to <col=8A0808>Father Aereck</col> <col=08088A>in the", 275, 4+ 7);
player.getPacketDispatch().sendString("<col=8A0808>church</col> <col=08088A>next to <col=8A0808>Lumbridge Castle.<col=8A0808>", 275, 5+ 7);
player.getPacketDispatch().sendString("<col=08088A>I must be unafraid of a <col=8A0808>Level 13 Skeleton ", 275, 6+ 7);
}
if (stage == 10) {
player.getPacketDispatch().sendString("<str>Father Aereck asked me to help him deal with the Ghost in", 275, 4+ 7);
player.getPacketDispatch().sendString("<str>the graveyard next to the church.", 275, 5+ 7);
player.getPacketDispatch().sendString("<col=08088A>I should find <col=8A0808>Father Urhney</col><col=08088A> who is an expert on </col><col=8A0808>ghosts.</col> ", 275, 6+ 7);
player.getPacketDispatch().sendString("<col=08088A>He lives in a <col=8A0808>shack</col><col=08088A> in <col=8A0808>Lumbridge Swamp.", 275, 7+ 7);
}
if (stage == 20) {
player.getPacketDispatch().sendString("<str>Father Aereck asked me to help him deal with the Ghost in", 275, 4+ 7);
player.getPacketDispatch().sendString("<str>the graveyard next to the church.", 275, 5+ 7);
player.getPacketDispatch().sendString("<str>I should find Father Urhney who is an expert on ghosts.</str> ", 275, 6+ 7);
player.getPacketDispatch().sendString("<str>He lives in a shack in Lumbridge Swamp.</str>", 275, 7+ 7);
player.getPacketDispatch().sendString("<col=08088A>I should talk to the</col> <col=8A0808>Ghost</col> <col=08088A>to find out why it is haunting the", 275, 8+ 7);
player.getPacketDispatch().sendString("<col=8A0808>graveyard crypt", 275, 9+ 7);
}
if (stage == 30) {
player.getPacketDispatch().sendString("<str>Father Aereck asked me to help him deal with the Ghost in", 275, 4+ 7);
player.getPacketDispatch().sendString("<str>the graveyard next to the church.", 275, 5+ 7);
player.getPacketDispatch().sendString("<str>I found Father Urhney in the swamp south of Lumbridge.He</str> ", 275, 6+ 7);
player.getPacketDispatch().sendString("<str>gave me an Amulet of Ghostspeak to talk to the ghost.</str>", 275, 7+ 7);
player.getPacketDispatch().sendString("<str>I spoke to the Ghost and he told me he could not rest in</str>", 275, 8+ 7);
player.getPacketDispatch().sendString("<str>peace because an evil wizard had stolen his skull.</str>", 275, 9+ 7);
player.getPacketDispatch().sendString("<col=08088A>I should go and search the <col=8A0808>Wizard's Tower South West of", 275, 10+ 7);
player.getPacketDispatch().sendString("<col=8A0808>Lumbridge</col> <col=08088A>for the <col=8A0808>Ghost's Skull.", 275, 11+ 7);
}
if (stage == 40) {
player.getPacketDispatch().sendString("<str>Father Aereck asked me to help him deal with the Ghost in", 275, 4+ 7);
player.getPacketDispatch().sendString("<str>the graveyard next to the church.", 275, 5+ 7);
player.getPacketDispatch().sendString("<str>I found Father Urhney in the swamp south of Lumbridge.He</str> ", 275, 6+ 7);
player.getPacketDispatch().sendString("<str>gave me an Amulet of Ghostspeak to talk to the ghost.</str>", 275, 7+ 7);
player.getPacketDispatch().sendString("<str>I spoke to the Ghost and he told me he could not rest in</str>", 275, 8+ 7);
player.getPacketDispatch().sendString("<str>peace because an evil wizard had stolen his skull.</str>", 275, 9+ 7);
player.getPacketDispatch().sendString("<str>I found the Ghost's Skull in the basement of the Wizards'", 275, 10+ 7);
player.getPacketDispatch().sendString("<str>Tower. It was guarded by a skeleton, but I took it anyways.</str>", 275, 11+ 7);
player.getPacketDispatch().sendString("<col=08088A>I should take the <col=8A0808>Skull</col> <col=08088A>back to the <col=8A0808>Ghost</col> <col=08088A>so it can rest.", 275, 12+ 7);
}
if (stage == 100) {
player.getPacketDispatch().sendString("<str>Father Aereck asked me to help him deal with the Ghost in", 275, 4+ 7);
player.getPacketDispatch().sendString("<str>the graveyard next to the church.", 275, 5+ 7);
player.getPacketDispatch().sendString("<str>I found Father Urhney in the swamp south of Lumbridge.He</str> ", 275, 6+ 7);
player.getPacketDispatch().sendString("<str>gave me an Amulet of Ghostspeak to talk to the ghost.</str>", 275, 7+ 7);
player.getPacketDispatch().sendString("<str>I spoke to the Ghost and he told me he could not rest in</str>", 275, 8+ 7);
player.getPacketDispatch().sendString("<str>peace because an evil wizard had stolen his skull.</str>", 275, 9+ 7);
player.getPacketDispatch().sendString("<str>I found the Ghost's Skull in the basement of the Wizards'", 275, 10+ 7);
player.getPacketDispatch().sendString("<str>Tower. It was guarded by a skeleton, but I took it anyways.</str>", 275, 11+ 7);
player.getPacketDispatch().sendString("<str>I placed the Skull in the Ghost's coffin, and allowed it to", 275, 12+ 7);
player.getPacketDispatch().sendString("<str>rest in peace once more, with gratitude for my help.", 275, 13+ 7);
player.getPacketDispatch().sendString("<col=FF0000>QUEST COMPLETE!", 275, 16+ 7);
}
}
@Override
public void finish(Player player) {
super.finish(player);
player.getPacketDispatch().sendString("1 Quest Point", 277, 8 + 2);
player.getPacketDispatch().sendString("1125 Prayer XP", 277, 9 + 2);
player.getPacketDispatch().sendItemZoomOnInterface(964, 240, 277, 3 + 2);
player.getSkills().addExperience(Skills.PRAYER, 1125);
player.getInterfaceManager().closeChatbox();
player.getPacketDispatch().sendString("You have completed The Restless Ghost Quest!", 277, 2 + 2);
player.getConfigManager().set(728, 31, true);
player.getPacketDispatch().sendMessage("Congratulations! Quest complete!");
player.getGameAttributes().removeAttribute("restless-ghost:urhney");
}
}
|
[
"[email protected]"
] | |
798a1e83d2280bbaf4f5f1990fa14feff8e256e1
|
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
|
/aligenie-ip_1_0/src/main/java/com/aliyun/aligenieip_1_0/models/QueryRoomControlDevicesRequest.java
|
37a9e23e98ce90dfba4e525d47f56a7c926b1cae
|
[
"Apache-2.0"
] |
permissive
|
aliyun/alibabacloud-java-sdk
|
83a6036a33c7278bca6f1bafccb0180940d58b0b
|
008923f156adf2e4f4785a0419f60640273854ec
|
refs/heads/master
| 2023-09-01T04:10:33.640756
| 2023-09-01T02:40:45
| 2023-09-01T02:40:45
| 288,968,318
| 40
| 45
| null | 2023-06-13T02:47:13
| 2020-08-20T09:51:08
|
Java
|
UTF-8
|
Java
| false
| false
| 924
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.aligenieip_1_0.models;
import com.aliyun.tea.*;
public class QueryRoomControlDevicesRequest extends TeaModel {
@NameInMap("HotelId")
public String hotelId;
@NameInMap("RoomNo")
public String roomNo;
public static QueryRoomControlDevicesRequest build(java.util.Map<String, ?> map) throws Exception {
QueryRoomControlDevicesRequest self = new QueryRoomControlDevicesRequest();
return TeaModel.build(map, self);
}
public QueryRoomControlDevicesRequest setHotelId(String hotelId) {
this.hotelId = hotelId;
return this;
}
public String getHotelId() {
return this.hotelId;
}
public QueryRoomControlDevicesRequest setRoomNo(String roomNo) {
this.roomNo = roomNo;
return this;
}
public String getRoomNo() {
return this.roomNo;
}
}
|
[
"[email protected]"
] | |
0a0fe880d14e386335e84f523d42d4f45e71f8da
|
b905fbc16a3e4c1765ce4b4eb270d017e6b4b5d2
|
/HRMS/TMS-Domain/src/main/java/com/csipl/tms/dto/attendancelog/AttendanceLogSearchDTO.java
|
cc446fca7f9db1d38147017877aea8f262466c98
|
[] |
no_license
|
ravindra2017bangalore/FabHR
|
76ed00741be81b6219b565bb38c4c4a68a364dc1
|
c77e5d4c99d5e9bdb042efea5e30fa25e7e0561e
|
refs/heads/master
| 2021-07-03T22:56:55.877324
| 2019-03-11T15:13:02
| 2019-03-11T15:13:02
| 175,022,830
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,667
|
java
|
package com.csipl.tms.dto.attendancelog;
import java.util.Date;
import com.csipl.tms.dto.common.SearchDTO;
public class AttendanceLogSearchDTO extends SearchDTO {
private String employeeName;
private Long departmentId;
private Long designationId;
private String employeeCode;
private String status;
private Long companyId;
private String attendanceTitle;
public String getAttendanceTitle() {
return attendanceTitle;
}
public void setAttendanceTitle(String attendanceTitle) {
this.attendanceTitle = attendanceTitle;
}
private Date attendanceDate;
public String getEmployeeName() {
return employeeName;
}
public void setEmployeeName(String employeeName) {
this.employeeName = employeeName;
}
public String getEmployeeCode() {
return employeeCode;
}
public void setEmployeeCode(String employeeCode) {
this.employeeCode = employeeCode;
}
public Long getCompanyId() {
return companyId;
}
public void setCompanyId(Long companyId) {
this.companyId = companyId;
}
public Long getDepartmentId() {
return departmentId;
}
public void setDepartmentId(Long departmentId) {
this.departmentId = departmentId;
}
public Long getDesignationId() {
return designationId;
}
public void setDesignationId(Long designationId) {
this.designationId = designationId;
}
public Date getAttendanceDate() {
return attendanceDate;
}
public void setAttendanceDate(Date attendanceDate) {
this.attendanceDate = attendanceDate;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
}
|
[
"[email protected]"
] | |
7c58e4ed5aeb24657f4c369b62027e85128cc476
|
ab14a6d0270bbdb567b0de714705d77f62d40caf
|
/bin/custom/training/trainingstorefront/web/src/com/hybris/training/storefront/filters/UrlEncoderFilter.java
|
c7cb4c3c8b8e42ec9e4be075efc748e7b7b15bc8
|
[
"Unlicense"
] |
permissive
|
sandeepvalapi/Hybris
|
5acfe524b0d2f7a33e1b566b8fc492331eb8a845
|
927d38b76d64fc0199b0626878500c81bd62129d
|
refs/heads/master
| 2021-08-06T10:45:48.423967
| 2020-04-04T09:54:28
| 2020-04-04T09:54:28
| 125,392,092
| 5
| 1
|
Unlicense
| 2021-04-23T19:37:06
| 2018-03-15T15:59:15
|
Java
|
UTF-8
|
Java
| false
| false
| 3,886
|
java
|
/*
* Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
*/
package com.hybris.training.storefront.filters;
import de.hybris.platform.acceleratorfacades.urlencoder.UrlEncoderFacade;
import de.hybris.platform.acceleratorfacades.urlencoder.data.UrlEncoderData;
import de.hybris.platform.acceleratorstorefrontcommons.constants.WebConstants;
import de.hybris.platform.servicelayer.session.SessionService;
import com.hybris.training.storefront.web.wrappers.UrlEncodeHttpRequestWrapper;
import java.io.IOException;
import java.util.List;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.web.filter.OncePerRequestFilter;
/**
* This filter inspects the url and inject the url attributes if any for that CMSSite. Calls facades to fetch the list
* of attributes and encode them in the URL.
*/
public class UrlEncoderFilter extends OncePerRequestFilter
{
private static final Logger LOG = Logger.getLogger(UrlEncoderFilter.class.getName());
private UrlEncoderFacade urlEncoderFacade;
private SessionService sessionService;
@Override
protected void doFilterInternal(final HttpServletRequest request, final HttpServletResponse response,
final FilterChain filterChain) throws ServletException, IOException
{
if (LOG.isDebugEnabled())
{
LOG.debug(" The incoming URL : [" + request.getRequestURL().toString() + "]");
}
final List<UrlEncoderData> currentUrlEncoderDatas = getUrlEncoderFacade().getCurrentUrlEncodingData();
if (currentUrlEncoderDatas != null && !currentUrlEncoderDatas.isEmpty())
{
final String currentPattern = getSessionService().getAttribute(WebConstants.URL_ENCODING_ATTRIBUTES);
final String newPattern = getUrlEncoderFacade().calculateAndUpdateUrlEncodingData(request.getRequestURI().toString(),
request.getContextPath());
final String newPatternWithSlash = "/" + newPattern;
if (!StringUtils.equalsIgnoreCase(currentPattern, newPatternWithSlash))
{
getUrlEncoderFacade().updateSiteFromUrlEncodingData();
getSessionService().setAttribute(WebConstants.URL_ENCODING_ATTRIBUTES, newPatternWithSlash);
}
final UrlEncodeHttpRequestWrapper wrappedRequest = new UrlEncodeHttpRequestWrapper(request, newPattern);
wrappedRequest.setAttribute(WebConstants.URL_ENCODING_ATTRIBUTES, newPatternWithSlash);
wrappedRequest.setAttribute("originalContextPath",
StringUtils.isBlank(request.getContextPath()) ? "/" : request.getContextPath());
if (LOG.isDebugEnabled())
{
LOG.debug("ContextPath=[" + wrappedRequest.getContextPath() + "]" + " Servlet Path= ["
+ wrappedRequest.getServletPath() + "]" + " Request Url= [" + wrappedRequest.getRequestURL() + "]");
}
filterChain.doFilter(wrappedRequest, response);
}
else
{
if (LOG.isDebugEnabled())
{
LOG.debug(" No URL attributes defined");
}
request.setAttribute("originalContextPath",
StringUtils.isBlank(request.getContextPath()) ? "/" : request.getContextPath());
request.setAttribute(WebConstants.URL_ENCODING_ATTRIBUTES, "");
filterChain.doFilter(request, response);
}
}
protected UrlEncoderFacade getUrlEncoderFacade()
{
return urlEncoderFacade;
}
@Required
public void setUrlEncoderFacade(final UrlEncoderFacade urlEncoderFacade)
{
this.urlEncoderFacade = urlEncoderFacade;
}
protected SessionService getSessionService()
{
return sessionService;
}
@Required
public void setSessionService(final SessionService sessionService)
{
this.sessionService = sessionService;
}
}
|
[
"[email protected]"
] | |
9744a4b86896e2d89ee4883ef2bd0436f89e572b
|
ed3cb95dcc590e98d09117ea0b4768df18e8f99e
|
/project_1_1/src/b/d/j/e/Calc_1_1_13948.java
|
dc37592b273f4f0924d479f72e64ffd36f3d263f
|
[] |
no_license
|
chalstrick/bigRepo1
|
ac7fd5785d475b3c38f1328e370ba9a85a751cff
|
dad1852eef66fcec200df10083959c674fdcc55d
|
refs/heads/master
| 2016-08-11T17:59:16.079541
| 2015-12-18T14:26:49
| 2015-12-18T14:26:49
| 48,244,030
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 134
|
java
|
package b.d.j.e;
public class Calc_1_1_13948 {
/** @return the sum of a and b */
public int add(int a, int b) {
return a+b;
}
}
|
[
"[email protected]"
] | |
397da9818dbde0ab9ec630d400dadd35363f7660
|
54052eb96a6e7bc2b54f6b3d08fed2ec09d2de16
|
/fullstack-server/src/main/java/sg/edu/iss/fullstack/FullstackApplication.java
|
7daf94e9e5bc39b609f60378f5750022b84788ee
|
[
"MIT"
] |
permissive
|
ZT4188/ISSSA52
|
fc0a2063696116bc0d5a8b94751d3ad5c1e97fe9
|
68b8819e9775f3becfcdef511a89fcd52df5497f
|
refs/heads/main
| 2023-06-08T13:25:37.437370
| 2021-06-29T05:11:01
| 2021-06-29T05:11:01
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 933
|
java
|
package sg.edu.iss.fullstack;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import sg.edu.iss.fullstack.student.Student;
import sg.edu.iss.fullstack.student.StudentRepository;
@SpringBootApplication
public class FullstackApplication {
@Autowired
StudentRepository srepo;
public static void main(String[] args) {
SpringApplication.run(FullstackApplication.class, args);
}
@Bean
CommandLineRunner runner() {
return args -> {
Student s1 = new Student("S1", "William", "Willy", 100);
srepo.save(s1);
Student s2 = new Student("S2", "Zerita", "Zen", 100);
srepo.save(s2);
Student s3 = new Student("S3", "Lee Yiquan", "Lee", 100);
srepo.save(s3);
};
}
}
|
[
"[email protected]"
] | |
5ecc9dfa1489a5815e5dcca1b2563afec3bd323a
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/27/27_a00d4689d11fc68559273cff9a12704c3c033189/AirTest/27_a00d4689d11fc68559273cff9a12704c3c033189_AirTest_t.java
|
dd5997f59628f4de7719162036108610e506b6ad
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 3,651
|
java
|
package cn.org.rapid_framework.generator.ext.tableconfig.model;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.sql.SQLException;
import cn.org.rapid_framework.generator.Generator;
import cn.org.rapid_framework.generator.GeneratorConstants;
import cn.org.rapid_framework.generator.GeneratorProperties;
import cn.org.rapid_framework.generator.GeneratorTestCase;
import cn.org.rapid_framework.generator.Generator.GeneratorModel;
import cn.org.rapid_framework.generator.ext.tableconfig.builder.TableConfigXmlBuilder;
import cn.org.rapid_framework.generator.provider.db.sql.model.Sql;
import cn.org.rapid_framework.generator.util.FileHelper;
import cn.org.rapid_framework.generator.util.GLogger;
public class AirTest extends GeneratorTestCase {
public void setUp() throws Exception {
GLogger.perfLogLevel = GLogger.DEBUG;
GLogger.logLevel = GLogger.DEBUG;
System.setProperty(GeneratorConstants.GG_IS_OVERRIDE.code, "true");
System.setProperty(GeneratorConstants.GENERATOR_SQL_RESULTCLASS_SUFFIX.code, "DO");
GeneratorProperties.setProperty(GeneratorConstants.JDBC_URL, "jdbc:mysql://mypay1.devdb.alipay.net:3306/mcenter?useUnicode=true&characterEncoding=UTF-8");
GeneratorProperties.setProperty(GeneratorConstants.JDBC_DRIVER, "com.mysql.jdbc.Driver");
GeneratorProperties.setProperty(GeneratorConstants.JDBC_USERNAME, "merchant");
GeneratorProperties.setProperty(GeneratorConstants.JDBC_PASSWORD, "merchant");
GeneratorProperties.setProperty("basepackage", "com.alipay.mquery.common.dal.air");
GeneratorProperties.setProperty("appName", "rapid");
g = new Generator();
g.setSourceEncoding("GBK");
g.setOutputEncoding("GBK");
g.setOutRootDir("./target/temp/generate_by_sql_config");
}
public void test_genereate_by_sql_config() throws Exception {
// genereate_by_table_config("trade_base.xml");
// genereate_by_table_config("mcenter_air_ext.xml");
// genereate_by_table_config("mcenter_creditpay.xml");
// genereate_by_table_config("mcenter_account_log.xml");
// genereate_by_table_config("system_partner_query_trade_base.xml");
// genereate_by_table_config("trade_fund_bill.xml");
// genereate_by_table_config("mcenter_air_ext.xml");
}
private void genereate_by_table_config(String tableConfigFilename)
throws IOException,
FileNotFoundException,
Exception,
SQLException {
g.setTemplateRootDir(FileHelper.getFileByClassLoader("for_generate_by_sql_config"));
File file = FileHelper.getFileByClassLoader("cn/org/rapid_framework/generator/ext/tableconfig/"+tableConfigFilename);
TableConfig t = new TableConfigXmlBuilder().parseFromXML(file);
GeneratorModel gm = MetaTableTest.newFromTable(t);
g.generateBy(gm.templateModel, gm.filePathModel);
g.setTemplateRootDir(FileHelper.getFileByClassLoader("for_generate_by_sql"));
for(Sql sql : t.getSqls()) {
GeneratorModel sqlGM = MetaTableTest.newFromSql(sql,t);
g.generateBy(sqlGM.templateModel, sqlGM.filePathModel);
}
}
}
|
[
"[email protected]"
] | |
c9862aa8f8066a13294d5a4d74e3234a58e0a432
|
8358717b853f240843ffa56784773a29b1efc19e
|
/service-impl-wms/src/main/java/com/jumbo/dao/authorization/UserGroupRelationDao.java
|
2febe8d499851214dfda4e915288dc096c52ad26
|
[] |
no_license
|
huanglongf/enterprise_project
|
65ec3e2c56e4a2909f0881a9276a9966857bb9c7
|
de1865e638c9620e702818124f0b2deac04028c9
|
refs/heads/master
| 2020-05-07T13:25:07.223338
| 2018-10-21T08:44:33
| 2018-10-21T08:44:33
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,437
|
java
|
/**
* Copyright (c) 2010 Jumbomart All Rights Reserved.
*
* This software is the confidential and proprietary information of Jumbomart. 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 Jumbo.
*
* JUMBOMART MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE SOFTWARE, EITHER
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. JUMBOMART SHALL NOT BE LIABLE FOR ANY
* DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
* DERIVATIVES.
*
*/
package com.jumbo.dao.authorization;
import loxia.annotation.NativeQuery;
import loxia.annotation.QueryParam;
import loxia.dao.GenericEntityDao;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.transaction.annotation.Transactional;
import com.jumbo.wms.model.authorization.UserGroup;
import com.jumbo.wms.model.authorization.UserGroupRelation;
@Transactional
public interface UserGroupRelationDao extends GenericEntityDao<UserGroupRelation, Long> {
/**
* @param id
* @param beanPropertyRowMapper
* @return
*/
@NativeQuery
UserGroup findUserGroupByUser(@QueryParam("id") Long id, BeanPropertyRowMapper<UserGroup> beanPropertyRowMapper);
}
|
[
"[email protected]"
] | |
8438d4f2292932bac30eee950d15857af26b43ae
|
ce5ab857d1c9c7bce2f98100b0dbcc9bda26b58f
|
/plugins/OpenSHAFaultPlugins/src/org/scec/vtk/plugins/opensha/simulators/EQSimsDepthColorer.java
|
68bf5f6bae0f6aaa47dd6f9eac58626abccb3099
|
[
"Apache-2.0"
] |
permissive
|
kevinmilner/scec-vdo
|
ef6d71a2c2eacdac0003702b08889ec9825b0cbc
|
bf36d3f9aa5cda1d8d5cb9843a4c764030556799
|
refs/heads/master
| 2020-03-27T04:03:26.762919
| 2018-10-15T23:44:29
| 2018-10-15T23:44:29
| 145,909,056
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,095
|
java
|
package org.scec.vtk.plugins.opensha.simulators;
import java.awt.Color;
import org.opensha.commons.param.ParameterList;
import org.opensha.commons.util.cpt.CPT;
import org.scec.vtk.commons.opensha.faults.AbstractFaultSection;
import org.scec.vtk.commons.opensha.faults.colorers.CPTBasedColorer;
import org.scec.vtk.commons.opensha.faults.colorers.ColorerChangeListener;
import org.scec.vtk.commons.opensha.faults.colorers.FaultColorer;
import org.scec.vtk.commons.opensha.faults.faultSectionImpl.SimulatorElementFault;
import com.google.common.base.Preconditions;
public class EQSimsDepthColorer extends CPTBasedColorer {
private static CPT getDefaultCPT() {
CPT cpt = new CPT(0d, 15d, Color.BLUE, Color.RED);
return cpt;
}
public EQSimsDepthColorer() {
super(getDefaultCPT(), false);
}
@Override
public String getName() {
return "Depth (km)";
}
@Override
public double getValue(AbstractFaultSection fault) {
Preconditions.checkState(fault instanceof SimulatorElementFault);
return ((SimulatorElementFault)fault).getElement().getCenterLocation().getDepth();
}
}
|
[
"[email protected]"
] | |
d23cf3c91960d96f0ba5b2e0083899b7b20e5f67
|
dd76d0b680549acb07278b2ecd387cb05ec84d64
|
/divestory-CFR/com/google/android/gms/drive/DriveContents.java
|
cf9f726d8cdff8f4fab4748ca86ece99cd305007
|
[] |
no_license
|
ryangardner/excursion-decompiling
|
43c99a799ce75a417e636da85bddd5d1d9a9109c
|
4b6d11d6f118cdab31328c877c268f3d56b95c58
|
refs/heads/master
| 2023-07-02T13:32:30.872241
| 2021-08-09T19:33:37
| 2021-08-09T19:33:37
| 299,657,052
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,414
|
java
|
/*
* Decompiled with CFR <Could not determine version>.
*
* Could not load the following classes:
* android.os.ParcelFileDescriptor
*/
package com.google.android.gms.drive;
import android.os.ParcelFileDescriptor;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.PendingResult;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.drive.Contents;
import com.google.android.gms.drive.DriveApi;
import com.google.android.gms.drive.DriveId;
import com.google.android.gms.drive.ExecutionOptions;
import com.google.android.gms.drive.MetadataChangeSet;
import java.io.InputStream;
import java.io.OutputStream;
public interface DriveContents {
@Deprecated
public PendingResult<Status> commit(GoogleApiClient var1, MetadataChangeSet var2);
@Deprecated
public PendingResult<Status> commit(GoogleApiClient var1, MetadataChangeSet var2, ExecutionOptions var3);
@Deprecated
public void discard(GoogleApiClient var1);
public DriveId getDriveId();
public InputStream getInputStream();
public int getMode();
public OutputStream getOutputStream();
public ParcelFileDescriptor getParcelFileDescriptor();
@Deprecated
public PendingResult<DriveApi.DriveContentsResult> reopenForWrite(GoogleApiClient var1);
public Contents zzi();
public void zzj();
public boolean zzk();
}
|
[
"[email protected]"
] | |
bda8ad3064914f9413949771c65108df47d51c35
|
128eb90ce7b21a7ce621524dfad2402e5e32a1e8
|
/laravel-converted/src/main/java/com/project/convertedCode/globalNamespace/classes/PHP_Token_LT.java
|
3aa68e53a64672fc7d88673af609c039355cfa57
|
[
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
RuntimeConverter/RuntimeConverterLaravelJava
|
657b4c73085b4e34fe4404a53277e056cf9094ba
|
7ae848744fbcd993122347ffac853925ea4ea3b9
|
refs/heads/master
| 2020-04-12T17:22:30.345589
| 2018-12-22T10:32:34
| 2018-12-22T10:32:34
| 162,642,356
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,812
|
java
|
package com.project.convertedCode.globalNamespace.classes;
import java.lang.invoke.MethodHandles;
import com.runtimeconverter.runtime.passByReference.PassByReferenceArgs;
import com.runtimeconverter.runtime.classes.NoConstructor;
import com.project.convertedCode.globalNamespace.classes.PHP_Token;
import com.runtimeconverter.runtime.classes.RuntimeClassBase;
import com.runtimeconverter.runtime.RuntimeEnv;
import com.runtimeconverter.runtime.reflection.ReflectionClassData;
import com.runtimeconverter.runtime.arrays.ZPair;
/*
Converted with The Runtime Converter (runtimeconverter.com)
vendor/phpunit/php-token-stream/src/Token.php
*/
public class PHP_Token_LT extends PHP_Token {
public PHP_Token_LT(RuntimeEnv env, Object... args) {
super(env);
if (this.getClass() == PHP_Token_LT.class) {
this.__construct(env, args);
}
}
public PHP_Token_LT(NoConstructor n) {
super(n);
}
public static final Object CONST_class = "PHP_Token_LT";
// Runtime Converter Internals
// RuntimeStaticCompanion contains static methods
// RequestStaticProperties contains static (per-request) properties
// ReflectionClassData contains php reflection data used by the runtime library
public static class RuntimeStaticCompanion extends PHP_Token.RuntimeStaticCompanion {
private static final MethodHandles.Lookup staticCompanionLookup = MethodHandles.lookup();
}
public static final RuntimeStaticCompanion runtimeStaticObject = new RuntimeStaticCompanion();
private static final ReflectionClassData runtimeConverterReflectionData =
ReflectionClassData.builder()
.setName("PHP_Token_LT")
.setLookup(
PHP_Token_LT.class,
MethodHandles.lookup(),
RuntimeStaticCompanion.staticCompanionLookup)
.setLocalProperties("id", "line", "text", "tokenStream")
.setFilename("vendor/phpunit/php-token-stream/src/Token.php")
.addExtendsClass("PHP_Token")
.get();
@Override
public ReflectionClassData getRuntimeConverterReflectionData() {
return runtimeConverterReflectionData;
}
@Override
public Object converterRuntimeCallExtended(
RuntimeEnv env,
String method,
Class<?> caller,
PassByReferenceArgs passByReferenceArgs,
Object... args) {
return RuntimeClassBase.converterRuntimeCallExtendedWithDataStatic(
this,
runtimeConverterReflectionData,
env,
method,
caller,
passByReferenceArgs,
args);
}
}
|
[
"[email protected]"
] | |
0b186d0a79dc24f0f34fb196917328b59932b0ff
|
42f6583f088563a75a458d2e60f55422e02ea83a
|
/sources/kotlin/collections/ArraysKt___ArraysKt$withIndex$9.java
|
c183ed588cdd3f106395314a4ae4265d779c80aa
|
[] |
no_license
|
jinendrasahu/Music-Player-Android-Application
|
dcac7f57d4dc05ee3c772c0fff27da3a315ed927
|
230f8c0c3b2cfbf07690b62e9485c04899fcc517
|
refs/heads/master
| 2023-02-04T21:13:09.658658
| 2020-12-25T12:29:23
| 2020-12-25T12:29:23
| 324,344,841
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 898
|
java
|
package kotlin.collections;
import kotlin.Metadata;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.ArrayIteratorsKt;
import kotlin.jvm.internal.Lambda;
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\b\n\u0000\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "Lkotlin/collections/CharIterator;", "invoke"}, k = 3, mv = {1, 1, 15})
/* compiled from: _Arrays.kt */
final class ArraysKt___ArraysKt$withIndex$9 extends Lambda implements Function0<CharIterator> {
final /* synthetic */ char[] $this_withIndex;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
ArraysKt___ArraysKt$withIndex$9(char[] cArr) {
super(0);
this.$this_withIndex = cArr;
}
public final CharIterator invoke() {
return ArrayIteratorsKt.iterator(this.$this_withIndex);
}
}
|
[
"[email protected]"
] | |
7866035a66d762f21c3af10b399377099d974cbd
|
f8af02dd6d14287f6bfbb8725e3b11094261875b
|
/deps/src/main/java/com/newrelic/deps/org/apache/http/impl/cookie/DateParseException.java
|
096eb0a92650db9df24b76a7f27c3eff0ff93607
|
[] |
no_license
|
masonmei/mx
|
fca12bedf2c9fef30452a485b81e23d416a0b534
|
38e0909f9a1720f32d59af280d7fd9a591c45f6c
|
refs/heads/master
| 2021-01-11T04:57:18.501563
| 2015-07-30T08:20:28
| 2015-07-30T08:20:31
| 39,553,289
| 2
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,778
|
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.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
package com.newrelic.deps.org.apache.http.impl.cookie;
import com.newrelic.deps.org.apache.http.annotation.Immutable;
/**
* An exception to indicate an error parsing a date string.
*
* @see DateUtils
*
*
* @since 4.0
*/
@Immutable
public class DateParseException extends Exception {
private static final long serialVersionUID = 4417696455000643370L;
/**
*
*/
public DateParseException() {
super();
}
/**
* @param message the exception message
*/
public DateParseException(final String message) {
super(message);
}
}
|
[
"[email protected]"
] | |
089fb54bca2e5f7f99d6ea3c948f37ed2e470c33
|
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
|
/holowatcher-20200730/src/main/java/com/aliyun/holowatcher20200730/models/ValidAliyunUidResponse.java
|
9d46fcbf0e4a3eb6ce7c20b70b4e146e8c4cd380
|
[
"Apache-2.0"
] |
permissive
|
aliyun/alibabacloud-java-sdk
|
83a6036a33c7278bca6f1bafccb0180940d58b0b
|
008923f156adf2e4f4785a0419f60640273854ec
|
refs/heads/master
| 2023-09-01T04:10:33.640756
| 2023-09-01T02:40:45
| 2023-09-01T02:40:45
| 288,968,318
| 40
| 45
| null | 2023-06-13T02:47:13
| 2020-08-20T09:51:08
|
Java
|
UTF-8
|
Java
| false
| false
| 1,365
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.holowatcher20200730.models;
import com.aliyun.tea.*;
public class ValidAliyunUidResponse extends TeaModel {
@NameInMap("headers")
@Validation(required = true)
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
@Validation(required = true)
public Integer statusCode;
@NameInMap("body")
@Validation(required = true)
public ValidAliyunUidResponseBody body;
public static ValidAliyunUidResponse build(java.util.Map<String, ?> map) throws Exception {
ValidAliyunUidResponse self = new ValidAliyunUidResponse();
return TeaModel.build(map, self);
}
public ValidAliyunUidResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public ValidAliyunUidResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public ValidAliyunUidResponse setBody(ValidAliyunUidResponseBody body) {
this.body = body;
return this;
}
public ValidAliyunUidResponseBody getBody() {
return this.body;
}
}
|
[
"[email protected]"
] | |
b319c9f9156dbc51c6588b4e9870afe104890879
|
5e97803fabbb02ddd210184c9455ef9126a0aeee
|
/jrt_api/src/main/java/com/wocai/jrt/paper/dao/OptionsDao.java
|
6aec88693deb22de5fd19edb135526038d54a37f
|
[] |
no_license
|
gaga839/demo_api
|
366ff118173b5de4dde891655216757ad4bad96c
|
6bded9851636d6da66039a3d56e10dc551f0f772
|
refs/heads/master
| 2020-04-11T20:08:38.112265
| 2016-01-25T01:22:12
| 2016-01-25T01:22:12
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 484
|
java
|
package com.wocai.jrt.paper.dao;
import com.vteba.tx.jdbc.mybatis.annotation.DaoMapper;
import com.vteba.tx.jdbc.mybatis.spi.BaseDao;
import com.wocai.jrt.paper.model.Options;
import com.wocai.jrt.paper.model.OptionsBean;
/**
* 表options的MyBatis Dao Mapper。
* 由代码工具自动生成,可以新增方法,但是不要修改自动生成的方法。
* @date 2015-11-09 16:40:04
*/
@DaoMapper
public interface OptionsDao extends BaseDao<Options, OptionsBean, String> {
}
|
[
"[email protected]"
] | |
c47867bf037f362aae867ab09393b13aaee50083
|
cd4802766531a9ccf0fb54ca4b8ea4ddc15e31b5
|
/java/com/l2jmobius/gameserver/model/items/enchant/EnchantScrollGroup.java
|
492768eca4d931fd538f9ae3c64c70819fdf89cf
|
[] |
no_license
|
singto53/underground
|
8933179b0d72418f4b9dc483a8f8998ef5268e3e
|
94264f5168165f0b17cc040955d4afd0ba436557
|
refs/heads/master
| 2021-01-13T10:30:20.094599
| 2016-12-11T20:32:47
| 2016-12-11T20:32:47
| 76,455,182
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,906
|
java
|
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.gameserver.model.items.enchant;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import com.l2jmobius.gameserver.model.items.L2Item;
/**
* @author UnAfraid
*/
public final class EnchantScrollGroup
{
private final int _id;
private List<EnchantRateItem> _rateGroups;
public EnchantScrollGroup(int id)
{
_id = id;
}
/**
* @return id of current enchant scroll group.
*/
public int getId()
{
return _id;
}
/**
* Adds new rate group.
* @param group
*/
public void addRateGroup(EnchantRateItem group)
{
if (_rateGroups == null)
{
_rateGroups = new ArrayList<>();
}
_rateGroups.add(group);
}
/**
* @return {@code List} of all enchant rate items, Empty list if none.
*/
public List<EnchantRateItem> getRateGroups()
{
return _rateGroups != null ? _rateGroups : Collections.emptyList();
}
/**
* @param item
* @return {@link EnchantRateItem}, {@code NULL} in case non of rate items can be used with.
*/
public EnchantRateItem getRateGroup(L2Item item)
{
for (EnchantRateItem group : getRateGroups())
{
if (group.validate(item))
{
return group;
}
}
return null;
}
}
|
[
"MobiusDev@7325c9f8-25fd-504a-9f63-8876acdc129b"
] |
MobiusDev@7325c9f8-25fd-504a-9f63-8876acdc129b
|
61dc6a20f88945e6598e0075e841c3057a0bc4d5
|
2122d24de66635b64ec2b46a7c3f6f664297edc4
|
/spring/spring-boot/spring-boot-data-elasticsearch5-sample/src/main/java/com/example/lee/DemoApplication.java
|
cfd12c7eda453262e82e66cd6df5da69cdafa013
|
[] |
no_license
|
yiminyangguang520/Java-Learning
|
8cfecc1b226ca905c4ee791300e9b025db40cc6a
|
87ec6c09228f8ad3d154c96bd2a9e65c80fc4b25
|
refs/heads/master
| 2023-01-10T09:56:29.568765
| 2022-08-29T05:56:27
| 2022-08-29T05:56:27
| 92,575,777
| 5
| 1
| null | 2023-01-05T05:21:02
| 2017-05-27T06:16:40
|
Java
|
UTF-8
|
Java
| false
| false
| 555
|
java
|
package com.example.lee;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;
/**
* @author min
*/
@SpringBootApplication
@EnableElasticsearchRepositories
@ComponentScan("com.example.lee")
public class DemoApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
}
|
[
"[email protected]"
] | |
038da2e7e4f29557dac8cce937ce5e7668a14c99
|
e4b58c0c540b6fd4e74764c40d079afdc6688992
|
/src/net/shopxx/service/SensitivityService.java
|
ea51c70a25248e7d754d73a04cee2f7b619cc32e
|
[] |
no_license
|
shenlong07412/shop
|
8fcdaffd39908ce3160405059292eb0052b4689c
|
6ce4bb79edc12dd253fa1ad617a45c859b6565ae
|
refs/heads/master
| 2021-01-02T08:31:50.036226
| 2015-06-26T03:16:01
| 2015-06-26T03:16:01
| 37,038,744
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 337
|
java
|
package net.shopxx.service;
import net.shopxx.entity.Sensitivity;
public interface SensitivityService extends BaseService<Sensitivity, Long>{
/**
* 替换敏感词
* @param source 要替换的字符串
* @param to 要替换成的目标字符
* @return
*/
public String replaceSensitivity(String source,String to);
}
|
[
"[email protected]"
] | |
c19fc21feb6539617a3560bed7cef2e5fad6f215
|
9a04b2482f9c9ddf5d537a074cdf32b20e3c353e
|
/angryships-core/src/main/java/com/gemserk/games/angryships/components/Components.java
|
1881292a4df6857412edd6097adf78e2b734a9f6
|
[] |
no_license
|
jesuslopezparkour/angryships
|
34fe85be6dad50c8c175404ee956d29eff432dd2
|
6c9c419ed91850a13a6ea6cadc0c14784fd160d2
|
refs/heads/master
| 2020-12-25T00:56:12.984681
| 2012-01-13T16:13:18
| 2012-01-13T16:13:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,223
|
java
|
package com.gemserk.games.angryships.components;
import com.artemis.ComponentType;
import com.artemis.ComponentTypeManager;
import com.artemis.Entity;
public class Components extends com.gemserk.commons.artemis.components.Components {
public static final Class<CameraDistanceComponent> cameraDistanceComponentClass = CameraDistanceComponent.class;
public static final ComponentType cameraDistanceComponentType = ComponentTypeManager.getTypeFor(cameraDistanceComponentClass);
public static final Class<ControllerComponent> controllerComponentClass = ControllerComponent.class;
public static final ComponentType controllerComponentType = ComponentTypeManager.getTypeFor(controllerComponentClass);
public static final Class<PixmapCollidableComponent> pixmapCollidableComponentClass = PixmapCollidableComponent.class;
public static final ComponentType pixmapCollidableComponentType = ComponentTypeManager.getTypeFor(pixmapCollidableComponentClass);
public static final Class<ExplosionComponent> explosionComponentClass = ExplosionComponent.class;
public static final ComponentType explosionComponentType = ComponentTypeManager.getTypeFor(explosionComponentClass);
public static final Class<ClusterBombComponent> clusterBombComponentClass = ClusterBombComponent.class;
public static final ComponentType clusterBombComponentType = ComponentTypeManager.getTypeFor(clusterBombComponentClass);
public static ControllerComponent getControllerComponent(Entity e) {
return controllerComponentClass.cast(e.getComponent(controllerComponentType));
}
public static PixmapCollidableComponent getPixmapCollidableComponent(Entity e) {
return pixmapCollidableComponentClass.cast(e.getComponent(pixmapCollidableComponentType));
}
public static ExplosionComponent getExplosionComponent(Entity e) {
return explosionComponentClass.cast(e.getComponent(explosionComponentType));
}
public static CameraDistanceComponent getCameraDistanceComponent(Entity e) {
return cameraDistanceComponentClass.cast(e.getComponent(cameraDistanceComponentType));
}
public static ClusterBombComponent getClusterBombComponent(Entity e) {
return clusterBombComponentClass.cast(e.getComponent(clusterBombComponentType));
}
}
|
[
"[email protected]"
] | |
4b2f4595325de024f9adf6169340e8e0b0ab1236
|
3f2fe92f11fe6a012ea87936bedbeb08fd392a1a
|
/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/administrative/registries/DeleteMetadataSchemaConfirm.java
|
b558c526b388cf9531c42ac7e6574ae0cfd0ceb7
|
[] |
no_license
|
pulipulichen/dspace-dlll
|
bbb61aa528876e2ce4908fac87bc9b2323baac3c
|
e9379176291c171c19573f7f6c685b6dc995efe1
|
refs/heads/master
| 2022-08-22T21:15:12.751565
| 2022-07-12T14:50:10
| 2022-07-12T14:50:10
| 9,954,185
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,179
|
java
|
/*
* DeleteMetadataSchemaConfirm.java
*
* Version: $Revision: 1.0 $
*
* Date: $Date: 2006/07/13 23:20:54 $
*
* Copyright (c) 2002, Hewlett-Packard Company and Massachusetts
* Institute of Technology. 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 Hewlett-Packard Company nor the name of the
* Massachusetts Institute of Technology nor the names of their
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*/
package org.dspace.app.xmlui.aspect.administrative.registries;
import java.sql.SQLException;
import java.util.ArrayList;
import org.dspace.app.xmlui.cocoon.AbstractDSpaceTransformer;
import org.dspace.app.xmlui.wing.Message;
import org.dspace.app.xmlui.wing.WingException;
import org.dspace.app.xmlui.wing.element.Body;
import org.dspace.app.xmlui.wing.element.Division;
import org.dspace.app.xmlui.wing.element.PageMeta;
import org.dspace.app.xmlui.wing.element.Para;
import org.dspace.app.xmlui.wing.element.Row;
import org.dspace.app.xmlui.wing.element.Table;
import org.dspace.authorize.AuthorizeException;
import org.dspace.content.MetadataSchema;
/**
* Prompt the user to determin if they really want to delete the displayed schemas.
*
* @author Scott phillips
*/
public class DeleteMetadataSchemaConfirm extends AbstractDSpaceTransformer
{
/** Language Strings */
private static final Message T_dspace_home =
message("xmlui.general.dspace_home");
private static final Message T_title =
message("xmlui.administrative.registries.DeleteMetadataSchemaConfirm.title");
private static final Message T_metadata_registry_trail =
message("xmlui.administrative.registries.general.metadata_registry_trail");
private static final Message T_trail =
message("xmlui.administrative.registries.DeleteMetadataSchemaConfirm.trail");
private static final Message T_head =
message("xmlui.administrative.registries.DeleteMetadataSchemaConfirm.head");
private static final Message T_para1 =
message("xmlui.administrative.registries.DeleteMetadataSchemaConfirm.para1");
private static final Message T_warning =
message("xmlui.administrative.registries.DeleteMetadataSchemaConfirm.warning");
private static final Message T_para2 =
message("xmlui.administrative.registries.DeleteMetadataSchemaConfirm.para2");
private static final Message T_column1 =
message("xmlui.administrative.registries.DeleteMetadataSchemaConfirm.column1");
private static final Message T_column2 =
message("xmlui.administrative.registries.DeleteMetadataSchemaConfirm.column2");
private static final Message T_column3 =
message("xmlui.administrative.registries.DeleteMetadataSchemaConfirm.column3");
private static final Message T_submit_delete =
message("xmlui.general.delete");
private static final Message T_submit_cancel =
message("xmlui.general.cancel");
public void addPageMeta(PageMeta pageMeta) throws WingException
{
pageMeta.addMetadata("title").addContent(T_title);
pageMeta.addTrailLink(contextPath + "/", T_dspace_home);
pageMeta.addTrailLink(contextPath + "/admin/metadata-registry",T_metadata_registry_trail);
pageMeta.addTrail().addContent(T_trail);
}
public void addBody(Body body) throws WingException, SQLException, AuthorizeException
{
// Get all our parameters
String idsString = parameters.getParameter("schemaIDs", null);
ArrayList<MetadataSchema> schemas = new ArrayList<MetadataSchema>();
for (String id : idsString.split(","))
{
MetadataSchema schema = MetadataSchema.find(context,Integer.valueOf(id));
schemas.add(schema);
}
// DIVISION: metadata-schema-confirm-delete
Division deleted = body.addInteractiveDivision("metadata-schema-confirm-delete",contextPath+"/admin/metadata-registry",Division.METHOD_POST,"primary administrative metadata-registry");
deleted.setHead(T_head);
deleted.addPara(T_para1);
Para warning = deleted.addPara();
warning.addHighlight("bold").addContent(T_warning);
warning.addContent(T_para2);
Table table = deleted.addTable("schema-confirm-delete",schemas.size() + 1, 3);
Row header = table.addRow(Row.ROLE_HEADER);
header.addCell().addContent(T_column1);
header.addCell().addContent(T_column2);
header.addCell().addContent(T_column3);
for (MetadataSchema schema : schemas)
{
Row row = table.addRow();
row.addCell().addContent(schema.getSchemaID());
row.addCell().addContent(schema.getNamespace());
row.addCell().addContent(schema.getName());
}
Para buttons = deleted.addPara();
buttons.addButton("submit_confirm").setValue(T_submit_delete);
buttons.addButton("submit_cancel").setValue(T_submit_cancel);
deleted.addHidden("administrative-continue").setValue(knot.getId());
}
}
|
[
"[email protected]"
] | |
aa5e2327288c80fc755c4af245b3a4695fe7072f
|
2125fefae7e7caca0a0bdf45371d730d20be8f34
|
/app/src/main/java/jlyv/upeu/edu/pe/asistencia/utils/EventoRecyclerAdapter.java
|
cb0276d9d250185e4eb6c6d5299f46bc370e0247
|
[] |
no_license
|
JorgeYapo/LoginSocialGF
|
2a848ced46f7997397d0c461a61995591f6b1c7d
|
f6d5876e0d5257dfed81460f0853c2e11a4b9adb
|
refs/heads/master
| 2020-03-14T05:06:58.363458
| 2018-04-29T21:19:42
| 2018-04-29T21:19:42
| 131,457,224
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,225
|
java
|
package jlyv.upeu.edu.pe.asistencia.utils;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.util.List;
import jlyv.upeu.edu.pe.asistencia.R;
import jlyv.upeu.edu.pe.asistencia.to.EventoTO;
import jlyv.upeu.edu.pe.asistencia.upeuasistenciaqr.EventoViewHolder;
public class EventoRecyclerAdapter extends RecyclerView.Adapter<EventoViewHolder> {
List<EventoTO> eventos;
public EventoRecyclerAdapter(List<EventoTO> eventos){
this.eventos=eventos;
}
@Override
public EventoViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
Context context =parent.getContext();
View view= LayoutInflater.from(context).inflate(R.layout.listaevento,parent,false);
EventoViewHolder eventoViewHolder = new EventoViewHolder(view);
return eventoViewHolder;
}
@Override
public void onBindViewHolder(EventoViewHolder holder, int position) {
EventoTO eventox =eventos.get(position);
holder.setEvento(eventox);
}
@Override
public int getItemCount() {
return eventos.size();
}
}
|
[
"[email protected]"
] | |
9605f6885c27cda92af4e6ed94fec28897190cf5
|
e08314b8c22df72cf3aa9e089624fc511ff0d808
|
/src/sdk4.0/ces/sdk/util/PropertyUtil.java
|
7bae22ea35de0a8b4238c5f79035819f3d371805
|
[] |
no_license
|
quxiongwei/qhzyc
|
46acd4f6ba41ab3b39968071aa114b24212cd375
|
4b44839639c033ea77685b98e65813bfb269b89d
|
refs/heads/master
| 2020-12-02T06:38:21.581621
| 2017-07-12T02:06:10
| 2017-07-12T02:06:10
| 96,864,946
| 0
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,017
|
java
|
package ces.sdk.util;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.text.MessageFormat;
import java.util.Properties;
/**
* 属性文件解析类
* */
public class PropertyUtil {
private static PropertyUtil instance = null;
private PropertyUtil(){}
public static PropertyUtil getInstance() {
instance = null==instance?new PropertyUtil():instance;
return instance;
}
private Properties ces_initProperties ; //ces_init.properties
private Properties db_Properties ; //数据源的配置文件
private Properties sql_Properties ; //当前的数据库配置文件
private Properties commonSql_Properties ; //通用的sql配置文件
public Properties getCes_initProperties(){
if(null==ces_initProperties){
ces_initProperties = new Properties();
String ces_initFilePath = CesGlobals.getInstance().getClassesPath()+"/ces_init.properties";
FileInputStream fis = null;
try {
fis = new FileInputStream(new File(ces_initFilePath));
ces_initProperties.load(fis);
} catch (FileNotFoundException e) {
throw new RuntimeException(e.getMessage()+"/n/n ces_init.properties 配置文件没有找到!");
} catch (IOException e) {
e.printStackTrace();
} finally{
if(null!=fis) {
try {
fis.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
}
return ces_initProperties;
}
/**
* 根据数据库类型获取当前sql配置文件
* */
public Properties getSql_Properties(){
if(null==sql_Properties){
sql_Properties = new Properties();
String sql_FilePath = "/sql_config/"+ConnectionUtil.getDataBaseType()+"/"+ConnectionUtil.getDataBaseType()+".properties";
InputStream fis = getClass().getResourceAsStream(sql_FilePath);
try {
sql_Properties.load(fis);
} catch (IOException e) {
throw new RuntimeException(e.getMessage()+"/n/n sql配置文件没有找到或者读取错误!");
}
}
return sql_Properties;
}
/**
* 根据数据库类型获取当前sql配置文件
* */
public Properties getCommonSql_Properties(){
if(null==commonSql_Properties){
commonSql_Properties = new Properties();
String sql_FilePath = "/sql_config/common/common_sql.properties";
InputStream fis = getClass().getResourceAsStream(sql_FilePath);
try {
commonSql_Properties.load(fis);
} catch (IOException e) {
throw new RuntimeException(e.getMessage()+"/n/n sql配置文件没有找到或者读取错误!");
}
}
return commonSql_Properties;
}
public Properties getDB_Properties(){
if(null==db_Properties){
db_Properties = new Properties();
String ces_initFilePathString = CesGlobals.getInstance().getClassesPath()+"/db_config.properties";
FileInputStream fis = null;
try {
fis = new FileInputStream(new File(ces_initFilePathString));
db_Properties.load(fis);
} catch (FileNotFoundException e) {
throw new RuntimeException(e.getMessage()+"/n/n db_config.properties 配置文件没有找到");
} catch (IOException e) {
e.printStackTrace();
} finally{
if(null!=fis) {
try {
fis.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
}
return db_Properties;
}
public String getPropertyValueByKey(Properties properties,String key){
String result = properties.getProperty(key);
// if(null!=result)
// try {
// result = new String(result.getBytes("ISO8859-1"),"UTF-8");
// } catch (UnsupportedEncodingException e) {
// e.printStackTrace();
// }
return result;
}
public static void main(String[] args) {
//System.out.println(getInstance().getSql_Properties().getProperty("userInfoFacade_getMoreInfoByCondition"));
System.out.println(MessageFormat.format(
getInstance().getSql_Properties().getProperty("DBOpLogInfoFacade_queryOpLogInfo"),
"管理","请求","2012-1-1","2015-1-1"));
}
}
|
[
"[email protected]"
] | |
fc9ba7f473f345ea9878aa2df04cbad4baf0e754
|
19b2339916cfa1c67064bd1bcb596b90176cbe09
|
/webbeans-impl/src/test/java/org/apache/webbeans/test/portable/scopeextension/ExternalTestScopeExtension.java
|
a525f83169ae9031bda997cccb2ec6ce40e3a8dc
|
[
"Apache-2.0"
] |
permissive
|
tomitribe/openwebbeans
|
11bc241ed4057076ea34904f6f0bfc5520349b7d
|
c59d327f49f59bb6cf59eb5c62a34758bcea9e1c
|
refs/heads/trunk
| 2023-03-17T21:36:10.567187
| 2018-11-07T15:53:10
| 2018-11-07T15:53:10
| 156,701,071
| 0
| 2
|
Apache-2.0
| 2022-06-08T21:50:31
| 2018-11-08T12:06:38
|
Java
|
UTF-8
|
Java
| false
| false
| 1,797
|
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.webbeans.test.portable.scopeextension;
import javax.enterprise.event.Observes;
import javax.enterprise.inject.spi.AfterBeanDiscovery;
import javax.enterprise.inject.spi.BeanManager;
import javax.enterprise.inject.spi.BeforeBeanDiscovery;
import javax.enterprise.inject.spi.Extension;
import org.junit.Assert;
public class ExternalTestScopeExtension implements Extension
{
public void addViewScoped(@Observes BeforeBeanDiscovery beforeBeanDiscovery, BeanManager beanManager)
{
// see OWB-622 it's expected that the BeanManager already exists even in BeforeBeanDiscovery.
Assert.assertNotNull(beanManager);
beforeBeanDiscovery.addScope(ExternalTestScoped.class, true, true);
}
public void registerViewContext(@Observes AfterBeanDiscovery afterBeanDiscovery)
{
afterBeanDiscovery.addContext(new ExternalTestScopeContext(true));
afterBeanDiscovery.addContext(new ExternalTestScopeContext(false));
}
}
|
[
"[email protected]"
] | |
69f789441e2b5144f7439e4cfbc387ceed4c506c
|
73267be654cd1fd76cf2cb9ea3a75630d9f58a41
|
/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/SubscribeAppReq.java
|
ab570d80de50d76ae58835934566b0bfaf7f001d
|
[
"Apache-2.0"
] |
permissive
|
huaweicloud/huaweicloud-sdk-java-v3
|
51b32a451fac321a0affe2176663fed8a9cd8042
|
2f8543d0d037b35c2664298ba39a89cc9d8ed9a3
|
refs/heads/master
| 2023-08-29T06:50:15.642693
| 2023-08-24T08:34:48
| 2023-08-24T08:34:48
| 262,207,545
| 91
| 57
|
NOASSERTION
| 2023-09-08T12:24:55
| 2020-05-08T02:27:00
|
Java
|
UTF-8
|
Java
| false
| false
| 4,528
|
java
|
package com.huaweicloud.sdk.eihealth.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* 订阅应用请求体
*/
public class SubscribeAppReq {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "asset_id")
private String assetId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "asset_version")
private String assetVersion;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "destination_app_name")
private String destinationAppName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "destination_app_version")
private String destinationAppVersion;
public SubscribeAppReq withAssetId(String assetId) {
this.assetId = assetId;
return this;
}
/**
* 资产id。长度1-128,只能包含字母、数字、下划线和中划线
* @return assetId
*/
public String getAssetId() {
return assetId;
}
public void setAssetId(String assetId) {
this.assetId = assetId;
}
public SubscribeAppReq withAssetVersion(String assetVersion) {
this.assetVersion = assetVersion;
return this;
}
/**
* 资产版本。长度1-128,字母或数字开头,后面跟小写字母、数字、小数点、斜杠、下划线或中划线
* @return assetVersion
*/
public String getAssetVersion() {
return assetVersion;
}
public void setAssetVersion(String assetVersion) {
this.assetVersion = assetVersion;
}
public SubscribeAppReq withDestinationAppName(String destinationAppName) {
this.destinationAppName = destinationAppName;
return this;
}
/**
* 目标应用名称 取值范围:长度为[1,56],以大小写字母开头,允许出现中划线(-)、下划线(_)、小写字母和数字,且必须以大小写字母或数字结尾。
* @return destinationAppName
*/
public String getDestinationAppName() {
return destinationAppName;
}
public void setDestinationAppName(String destinationAppName) {
this.destinationAppName = destinationAppName;
}
public SubscribeAppReq withDestinationAppVersion(String destinationAppVersion) {
this.destinationAppVersion = destinationAppVersion;
return this;
}
/**
* 目标应用版本。取值范围:长度[1,24],以小写字母或数字或大写字母开头,允许出现中划线,必须以小写字母或数字或大写字母结尾。
* @return destinationAppVersion
*/
public String getDestinationAppVersion() {
return destinationAppVersion;
}
public void setDestinationAppVersion(String destinationAppVersion) {
this.destinationAppVersion = destinationAppVersion;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
SubscribeAppReq that = (SubscribeAppReq) obj;
return Objects.equals(this.assetId, that.assetId) && Objects.equals(this.assetVersion, that.assetVersion)
&& Objects.equals(this.destinationAppName, that.destinationAppName)
&& Objects.equals(this.destinationAppVersion, that.destinationAppVersion);
}
@Override
public int hashCode() {
return Objects.hash(assetId, assetVersion, destinationAppName, destinationAppVersion);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SubscribeAppReq {\n");
sb.append(" assetId: ").append(toIndentedString(assetId)).append("\n");
sb.append(" assetVersion: ").append(toIndentedString(assetVersion)).append("\n");
sb.append(" destinationAppName: ").append(toIndentedString(destinationAppName)).append("\n");
sb.append(" destinationAppVersion: ").append(toIndentedString(destinationAppVersion)).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 ");
}
}
|
[
"[email protected]"
] | |
bc1647535a624dd1d1fd7a6d49fc8e2a60921f5c
|
11622501f403df318ad5436cbda22b3454ca2358
|
/tusharroy/src/main/java/com/interview/tusharroy/tree/ClosestValueBinaryTree.java
|
570a757e5d1469a1dd9f331f8dcdaddc2d1cdef3
|
[] |
no_license
|
aanush/copy-of-mission-peace
|
fe13d6bcfb84c1657e15e578643eb93945a5a047
|
4da7e551bea04b7335cece08f73f598bf579b438
|
refs/heads/master
| 2020-03-14T14:02:48.514727
| 2018-04-30T21:00:25
| 2018-04-30T21:00:25
| 131,645,343
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 981
|
java
|
package com.interview.tusharroy.tree;
/**
* Given a non-empty binary search tree and a target value, find the value in the BST that is closest to the target.
* https://leetcode.com/problems/closest-binary-search-tree-value/
*/
public class ClosestValueBinaryTree {
public int closestValue(Node root, double target) {
int r = target > 0 ? Integer.MIN_VALUE : Integer.MAX_VALUE;
return closestValueUtil(root, target, r);
}
private int closestValueUtil(Node root, double target, int result) {
if (root == null) {
return (int) result;
}
if (target == root.data) {
return root.data;
}
if (Math.abs(root.data - target) < Math.abs(result - target)) {
result = root.data;
}
if (target < root.data) {
return closestValueUtil(root.left, target, result);
} else {
return closestValueUtil(root.right, target, result);
}
}
}
|
[
"[email protected]"
] | |
153bb19409ad7354a38a8db6ba1982000847c92d
|
bfc7a4cda00a0b89d4b984c83976770b0523f7f5
|
/OA/JavaSource/com/icss/oa/commsite/admin/DeleteWebPageServlet.java
|
ed1ee617f9fc0512e688b337603218ec39b9211d
|
[] |
no_license
|
liveqmock/oa
|
100c4a554c99cabe0c3f9af7a1ab5629dcb697a6
|
0dfbb239210d4187e46a933661a031dba2711459
|
refs/heads/master
| 2021-01-18T05:02:00.704337
| 2015-03-03T06:47:30
| 2015-03-03T06:47:30
| 35,557,095
| 0
| 1
| null | 2015-05-13T15:26:06
| 2015-05-13T15:26:06
| null |
GB18030
|
Java
| false
| false
| 1,740
|
java
|
/*
* 创建日期 2004-4-1
*
* 更改所生成文件模板为
* 窗口 > 首选项 > Java > 代码生成 > 代码和注释
*/
package com.icss.oa.commsite.admin;
import java.io.IOException;
import java.sql.Connection;
import java.sql.SQLException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.icss.common.log.ConnLog;
import com.icss.j2ee.servlet.ServletBase;
import com.icss.j2ee.util.Globals;
import com.icss.oa.commsite.handler.*;
/**
* @author Administrator
*
* 更改所生成类型注释的模板为
* 窗口 > 首选项 > Java > 代码生成 > 代码和注释
*/
public class DeleteWebPageServlet extends ServletBase {
/* (非 Javadoc)
* @see com.icss.j2ee.servlet.ServletBase#performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
*/
protected void performTask(
HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
Connection conn = null;
try {
conn = this.getConnection(Globals.DATASOURCEJNDI);
ConnLog.open("DeleteWebPageServlet");
CommsiteHandler handler = new CommsiteHandler(conn);
Integer ocsId = new Integer(request.getParameter("ocsId"));
handler.delete(ocsId);
response.sendRedirect(
"ListWebPageServlet?_page_num="
+ request.getParameter("_page_num"));
} catch (Exception e) {
e.printStackTrace();
handleError(e);
} finally {
try {
if (conn != null) {
conn.close();
ConnLog.close("DeleteWebPageServlet");
}
} catch (SQLException sqle) {
sqle.printStackTrace();
}
}
}
}
|
[
"[email protected]"
] | |
2b4d1d735a9c15c5d89d97f61eb12b2b2161b65e
|
25d052d0aaf04d5c437375772f127e04bc732b3c
|
/hse/here2/RegistrationIntentService.java
|
ecf7748be5c31e1e2b0d492a283dbb29e9868f40
|
[] |
no_license
|
muhammed-ajmal/HseHere
|
6879b87a44b566321365c337c217e92f5c51a022
|
4667fdccc35753999c4f94793a0dbe38845fc338
|
refs/heads/master
| 2021-09-15T12:33:06.907668
| 2018-06-01T12:07:31
| 2018-06-01T12:07:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,484
|
java
|
package hse.here2;
import android.app.IntentService;
import android.content.Intent;
import android.content.SharedPreferences;
import com.google.android.gms.gcm.GoogleCloudMessaging;
import com.google.android.gms.iid.InstanceID;
public class RegistrationIntentService extends IntentService {
String accion = "A";
String codigo;
int idusu;
String[] usu;
private void sendRegistrationToServer(java.lang.String r12) {
/* JADX: method processing error */
/*
Error: jadx.core.utils.exceptions.JadxRuntimeException: Can't find block by offset: 0x007d in list []
at jadx.core.utils.BlockUtils.getBlockByOffset(BlockUtils.java:42)
at jadx.core.dex.instructions.IfNode.initBlocks(IfNode.java:60)
at jadx.core.dex.visitors.blocksmaker.BlockFinish.initBlocksInIfNodes(BlockFinish.java:48)
at jadx.core.dex.visitors.blocksmaker.BlockFinish.visit(BlockFinish.java:33)
at jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)
at jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)
at jadx.core.ProcessClass.process(ProcessClass.java:37)
at jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)
at jadx.api.JavaClass.decompile(JavaClass.java:62)
at jadx.api.JadxDecompiler$1.run(JadxDecompiler.java:199)
*/
/*
r11 = this;
r8 = r11.idusu;
if (r8 <= 0) goto L_0x007d;
L_0x0004:
r8 = "";
r8 = r12.equals(r8);
if (r8 != 0) goto L_0x007d;
L_0x000c:
r8 = new java.lang.StringBuilder;
r8.<init>();
r9 = "http://srv1.androidcreator.com/srv/guardargcmid.php?idusu=";
r8 = r8.append(r9);
r9 = r11.idusu;
r8 = r8.append(r9);
r9 = "&gcmid=";
r8 = r8.append(r9);
r8 = r8.append(r12);
r9 = "&accion=";
r8 = r8.append(r9);
r9 = r11.accion;
r8 = r8.append(r9);
r2 = r8.toString();
r1 = 0;
r5 = new java.net.URL; Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r5.<init>(r2); Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r8 = r5.openConnection(); Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r0 = r8; Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r0 = (java.net.HttpURLConnection) r0; Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r1 = r0; Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r8 = 1; Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r1.setDoInput(r8); Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r8 = 10000; // 0x2710 float:1.4013E-41 double:4.9407E-320; Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r1.setConnectTimeout(r8); Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r8 = 10000; // 0x2710 float:1.4013E-41 double:4.9407E-320; Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r1.setReadTimeout(r8); Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r8 = "User-Agent"; Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r9 = "Android Vinebre Software"; Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r1.setRequestProperty(r8, r9); Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r3 = r1.getInputStream(); Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r6 = new java.io.BufferedReader; Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r8 = new java.io.InputStreamReader; Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r8.<init>(r3); Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r6.<init>(r8); Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r7 = new java.lang.StringBuilder; Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r7.<init>(); Catch:{ Exception -> 0x0077, all -> 0x00b0 }
L_0x006d:
r4 = r6.readLine(); Catch:{ Exception -> 0x0077, all -> 0x00b0 }
if (r4 == 0) goto L_0x007e; Catch:{ Exception -> 0x0077, all -> 0x00b0 }
L_0x0073:
r7.append(r4); Catch:{ Exception -> 0x0077, all -> 0x00b0 }
goto L_0x006d;
L_0x0077:
r8 = move-exception;
if (r1 == 0) goto L_0x007d;
L_0x007a:
r1.disconnect();
L_0x007d:
return;
L_0x007e:
r8 = r7.toString(); Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r9 = "ANDROID:OK"; Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r8 = r8.indexOf(r9); Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r9 = -1; Catch:{ Exception -> 0x0077, all -> 0x00b0 }
if (r8 == r9) goto L_0x00aa; Catch:{ Exception -> 0x0077, all -> 0x00b0 }
L_0x008b:
r8 = r11.accion; Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r9 = "A"; Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r8 = r8.equals(r9); Catch:{ Exception -> 0x0077, all -> 0x00b0 }
if (r8 == 0) goto L_0x00aa; Catch:{ Exception -> 0x0077, all -> 0x00b0 }
L_0x0095:
r8 = "sh"; Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r9 = 0; Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r8 = r11.getSharedPreferences(r8, r9); Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r8 = r8.edit(); Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r9 = "SENT_TOKEN_TO_SERVER"; Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r10 = 1; Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r8 = r8.putBoolean(r9, r10); Catch:{ Exception -> 0x0077, all -> 0x00b0 }
r8.apply(); Catch:{ Exception -> 0x0077, all -> 0x00b0 }
L_0x00aa:
if (r1 == 0) goto L_0x007d;
L_0x00ac:
r1.disconnect();
goto L_0x007d;
L_0x00b0:
r8 = move-exception;
if (r1 == 0) goto L_0x00b6;
L_0x00b3:
r1.disconnect();
L_0x00b6:
throw r8;
*/
throw new UnsupportedOperationException("Method not decompiled: hse.here2.RegistrationIntentService.sendRegistrationToServer(java.lang.String):void");
}
public RegistrationIntentService() {
super("RegistrationIntentService");
}
protected void onHandleIntent(Intent intent) {
SharedPreferences settings = getSharedPreferences("sh", 0);
this.idusu = settings.getInt("idusu", 0);
this.codigo = settings.getString("cod", "");
if (this.idusu > 0) {
try {
sendRegistrationToServer(InstanceID.getInstance(this).getToken(config.SENDER_ID, GoogleCloudMessaging.INSTANCE_ID_SCOPE, null));
} catch (Exception e) {
settings.edit().putBoolean("SENT_TOKEN_TO_SERVER", false).apply();
}
}
}
}
|
[
"[email protected]"
] | |
d9ed93017280f1299deabbca5ce371ea6c653617
|
d277ee3f92afb29db21b4af3df0b99816d00cc57
|
/src/HungQuery/cau7/class7.java
|
96353691517362f1f2e7cd5d4dcf01639a399a94
|
[] |
no_license
|
hungnv281/CSDL
|
584702f5670682bf2849bb368578223ec64a0fa3
|
debba54a162436d43e84c52f6b68bcca4f6bee10
|
refs/heads/main
| 2023-05-14T18:00:04.083222
| 2021-06-10T08:15:35
| 2021-06-10T08:15:35
| 375,621,378
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,138
|
java
|
package HungQuery.cau7;
import java.sql.Date;
public class class7 {
private String manv, hoten;
private Date ngaysinh;
private String quequan,gioitinh,dantoc,sdt,mapb,macv,matdhv,bacluong;
private Date ngaykt;
public class7(String manv, String hoten, Date ngaysinh, String quequan,
String gioitinh, String dantoc, String sdt,
String mapb, String macv, String matdhv, String bacluong, Date ngaykt) {
this.manv = manv;
this.hoten = hoten;
this.ngaysinh = ngaysinh;
this.quequan = quequan;
this.gioitinh = gioitinh;
this.dantoc = dantoc;
this.sdt = sdt;
this.mapb = mapb;
this.macv = macv;
this.matdhv = matdhv;
this.bacluong = bacluong;
this.ngaykt = ngaykt;
}
public String getManv() {
return manv;
}
public void setManv(String manv) {
this.manv = manv;
}
public String getHoten() {
return hoten;
}
public void setHoten(String hoten) {
this.hoten = hoten;
}
public Date getNgaysinh() {
return ngaysinh;
}
public void setNgaysinh(Date ngaysinh) {
this.ngaysinh = ngaysinh;
}
public String getQuequan() {
return quequan;
}
public void setQuequan(String quequan) {
this.quequan = quequan;
}
public String getGioitinh() {
return gioitinh;
}
public void setGioitinh(String gioitinh) {
this.gioitinh = gioitinh;
}
public String getDantoc() {
return dantoc;
}
public void setDantoc(String dantoc) {
this.dantoc = dantoc;
}
public String getSdt() {
return sdt;
}
public void setSdt(String sdt) {
this.sdt = sdt;
}
public String getMapb() {
return mapb;
}
public void setMapb(String mapb) {
this.mapb = mapb;
}
public String getMacv() {
return macv;
}
public void setMacv(String macv) {
this.macv = macv;
}
public String getMatdhv() {
return matdhv;
}
public void setMatdhv(String matdhv) {
this.matdhv = matdhv;
}
public String getBacluong() {
return bacluong;
}
public void setBacluong(String bacluong) {
this.bacluong = bacluong;
}
public Date getNgaykt() {
return ngaykt;
}
public void setNgaykt(Date ngaykt) {
this.ngaykt = ngaykt;
}
@Override
public String toString() {
return "class7{" +
"manv='" + manv + '\'' +
", hoten='" + hoten + '\'' +
", ngaysinh=" + ngaysinh +
", quequan='" + quequan + '\'' +
", gioitinh='" + gioitinh + '\'' +
", dantoc='" + dantoc + '\'' +
", sdt='" + sdt + '\'' +
", mapb='" + mapb + '\'' +
", macv='" + macv + '\'' +
", matdhv='" + matdhv + '\'' +
", bacluong='" + bacluong + '\'' +
", ngaykt=" + ngaykt +
'}';
}
}
|
[
"="
] |
=
|
b17b56981e2fb2161dbf01965faea7a8b2777972
|
709b22be3cc1e8286a9579c9fb609a195a6863e6
|
/app/src/main/java/sinia/com/entertainer/utils/city/Cityinfo.java
|
637314f02b71cc0356114c1645a66d195adb279e
|
[] |
no_license
|
jackvvv/Entertainer
|
ad908b21a8e5cd95f33732ea525c36960f0a6c5d
|
f27231f6b2621899733874c2e7ab583169cb8bed
|
refs/heads/master
| 2021-01-16T02:43:03.271462
| 2017-01-20T11:08:37
| 2017-01-20T11:08:37
| 78,906,284
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 511
|
java
|
package sinia.com.entertainer.utils.city;
import java.io.Serializable;
public class Cityinfo implements Serializable {
private String id;
private String city_name;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getCity_name() {
return city_name;
}
public void setCity_name(String city_name) {
this.city_name = city_name;
}
@Override
public String toString() {
return "Cityinfo [id=" + id + ", city_name=" + city_name + "]";
}
}
|
[
"[email protected]"
] | |
fea3b661b22d2f12745bbb9a5217dda2d7c6dd83
|
2b69d7124ce03cb40c3ee284aa0d3ce0d1814575
|
/p2p-order/p2p-trading/src/main/java/com/zb/txs/p2p/investment/controller/InvestmentController.java
|
3988ee4b2a59843794a485464712bd1181a6bd81
|
[] |
no_license
|
hhhcommon/fincore_p2p
|
6bb7a4c44ebd8ff12a4c1f7ca2cf5cc182b55b44
|
550e937c1f7d1c6642bda948cd2f3cc9feb7d3eb
|
refs/heads/master
| 2021-10-24T12:12:22.322007
| 2019-03-26T02:17:01
| 2019-03-26T02:17:01
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,168
|
java
|
package com.zb.txs.p2p.investment.controller;
import com.google.common.base.Preconditions;
import com.zb.txs.p2p.business.enums.order.ResponseCodeEnum;
import com.zb.txs.p2p.business.invest.repose.InvestProfitResp;
import com.zb.txs.p2p.business.invest.repose.InvestmentRecordResp;
import com.zb.txs.p2p.business.invest.request.InvestPageReq;
import com.zb.txs.p2p.business.invest.request.InvestmentRecordRequest;
import com.zb.txs.p2p.business.invest.request.InvestmentRequest;
import com.zb.txs.p2p.business.order.response.CommonResponse;
import com.zb.txs.p2p.business.order.response.PageQueryResp;
import com.zb.txs.p2p.investment.service.InvestmentService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/p2p/trading/investment")
@Slf4j
public class InvestmentController {
@Autowired
InvestmentService investmentService;
/**
* 昨日收益和网贷总额接口
*
* @param investmentRequest
* @return 投资详情
*/
@RequestMapping(value = "/holdTotalAssets", method = RequestMethod.POST)
public CommonResponse<InvestProfitResp> getInvestProfit(@RequestBody InvestmentRequest investmentRequest) {
try {
Preconditions.checkNotNull(investmentRequest, "请求实体investmentRequest为空");
Preconditions.checkNotNull(investmentRequest.getMemberId(), "用户ID为空");
Preconditions.checkNotNull(investmentRequest.getInterestDate(), "收益日期为空");
} catch (NullPointerException e) {
log.warn("请求参数错误: {}", e.getMessage());
return CommonResponse.build(ResponseCodeEnum.RESPONSE_PARAM_FAIL.getCode(), e.getMessage(), null);
}
log.info("getInvestProfit请求参数,investmentRequest:{}", investmentRequest);
return investmentService.getInvestProfit(investmentRequest);
}
/**
* 前端查询交易记录接口(TXS后端)
* @param investmentRecordRequest
* @return 投资详情
*/
@RequestMapping(value = "/tradeRecord", method = RequestMethod.POST)
public CommonResponse<InvestmentRecordResp> getInvestmentRecord(@RequestBody InvestmentRecordRequest investmentRecordRequest) {
try{
Preconditions.checkNotNull(investmentRecordRequest,"请求实体investmentRecordRequest为空");
Preconditions.checkNotNull(investmentRecordRequest.getMemberId(), "用户ID为空");
Preconditions.checkNotNull(investmentRecordRequest.getTransType(), "交易类型为空");
}catch(NullPointerException e){
log.warn("请求参数错误: {}", e.getMessage());
return CommonResponse.build(ResponseCodeEnum.RESPONSE_PARAM_FAIL.getCode(), e.getMessage(), null);
}
try {
log.info("getInvestmentRecord请求参数,investmentRecordRequest:{}", investmentRecordRequest);
return investmentService.getInvestmentRecord(investmentRecordRequest);
} catch (Exception e) {
log.error("系统异常:", e);
return CommonResponse.failure();
}
}
/**
* 运营台查询资金交易记录接口
*
* @param investPageReq
*/
@RequestMapping(value = "/listPageRecord", method = RequestMethod.POST)
public CommonResponse<PageQueryResp> listPageRecord(@RequestBody InvestPageReq investPageReq) {
try {
Preconditions.checkNotNull(investPageReq, "请求实体investPageReq为空");
Preconditions.checkNotNull(investPageReq.getStartDate(), "开始时间为空");
Preconditions.checkNotNull(investPageReq.getEndDate(), "结束时间为空");
Preconditions.checkNotNull(investPageReq.getTransType(), "交易类型为空");
Preconditions.checkNotNull(investPageReq.getMemberId(), "用户ID为空");
Preconditions.checkNotNull(investPageReq.getPageNo(), "页码为空");
Preconditions.checkNotNull(investPageReq.getPageSize(), "每页显示条数为空");
} catch (NullPointerException e) {
log.warn("请求参数错误: {}", e.getMessage());
return CommonResponse.build(ResponseCodeEnum.RESPONSE_PARAM_FAIL.getCode(), e.getMessage(), null);
}
if (investPageReq.getStartDate().getTime() > investPageReq.getEndDate().getTime()) {
return CommonResponse.build(ResponseCodeEnum.RESPONSE_PARAM_FAIL.getCode(), "开始时间不能大于结束时间", null);
}
if (investPageReq.getPageNo() <= 0 || investPageReq.getPageSize() <= 0) {
return CommonResponse.build(ResponseCodeEnum.RESPONSE_PARAM_FAIL.getCode(), "pageNo或pageSize必须大于0", null);
}
log.info("listPageRecord请求参数,investPageReq:{}", investPageReq);
return investmentService.listPageRecord(investPageReq);
}
}
|
[
"[email protected]"
] | |
19fcc029d6d525830d51df17bfd35562b6cd99a9
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/4/4_a992db5b37cc777225650c02a76168e3ada70f3e/NeoServiceExtension/4_a992db5b37cc777225650c02a76168e3ada70f3e_NeoServiceExtension_s.java
|
0a0616fcfe5c45a7fc7cc4fb5c442a68d161fa5a
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 2,068
|
java
|
package org.amanzi.awe.catalog.neo;
import java.io.File;
import java.io.Serializable;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import net.refractions.udig.catalog.IService;
import net.refractions.udig.catalog.ServiceExtension;
public class NeoServiceExtension implements ServiceExtension {
/* Neo4J service key, URL to the Neo4J database and gis node */
public static final String URL_KEY = "org.amanzi.awe.catalog.neo.url";
public static final String CLASS_KEY = "org.amanzi.awe.catalog.neo.class";
@Override
public Map<String, Serializable> createParams(URL url) {
try {
if (url.getProtocol().equals("file")) {
// the URL represent a normal file or directory on disk
File path = new File(url.toURI());
if (path.exists() && path.isDirectory()) {
// check the directory, does it contain a neo4j database
File neostore = new File(path,"neostore");
if (neostore.exists()) {
Map<String, Serializable> params = new HashMap<String, Serializable>();
params.put(URL_KEY, url);
params.put(CLASS_KEY, URL.class);
return params;
}
}
}
} catch (Throwable t) {
// something went wrong, URL must be for another service
}
// unable to create the parameters, URL must be for another service
return null;
}
@Override
public IService createService(URL id, Map<String, Serializable> params) {
// good defensive programming
if (params == null) {
return null;
}
// check for the property service key
if (params.containsKey(URL_KEY)) {
// found it, create the service handle
return new NeoService(params);
}
// key not found
return null;
}
}
|
[
"[email protected]"
] | |
1a50caf26e6b2d438e38db7dde59414ea6d26340
|
1e00d2cbe7ac6cc296242283be2ee5dc0e08733d
|
/src/main/java/com/common/trycatch/TryDemo.java
|
01da63d5896d0df3a52e69d7bfb6f9a988affb33
|
[] |
no_license
|
chuckma/MyJavaWebProject
|
6b7852750c1c8decfa16b077716ba8b3b432ab2d
|
f6262716ffa76c237fad006e8677839cb9493f77
|
refs/heads/master
| 2023-01-05T06:45:55.377745
| 2020-04-08T03:19:17
| 2020-04-08T03:19:17
| 102,749,242
| 1
| 0
| null | 2022-12-16T03:46:23
| 2017-09-07T14:46:58
|
Java
|
UTF-8
|
Java
| false
| false
| 462
|
java
|
package com.common.trycatch;
/**
* @author Administrator
*/
public class TryDemo {
public static void main(String[] args) {
System.out.println(action());
}
private static String action() {
try{
System.out.println(1/1);
return "try";
}catch (Exception e){
e.printStackTrace();
return "catch";
}finally {
System.out.println("finally");
}
}
}
|
[
"[email protected]"
] | |
eaa9b31b82620b978322ca510bf7a2ee5274ec40
|
c4a6aa9551d524f33455641fe912c67c0bfed6ad
|
/LoginWithSocial/app/src/main/java/org/simpumind/com/loginwithsocial/PDetails.java
|
0e2bf2e29e1b0db5eb46a6ca0f272dcb972f213d
|
[] |
no_license
|
moderateepheezy/All-Project
|
5cc2b88890bfed57f0857d8b427fba019a0eba6e
|
febdd22349ccf04bd9d470aa44fc15a1c017634d
|
refs/heads/master
| 2021-01-10T06:06:49.459862
| 2016-03-18T16:01:55
| 2016-03-18T16:01:55
| 54,213,625
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 871
|
java
|
package org.simpumind.com.loginwithsocial;
/**
* Created by simpumind on 2/4/16.
*/
public class PDetails {
public String userName;
public String userEmail;
public String userPhoto;
public String userGender;
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getUserEmail() {
return userEmail;
}
public void setUserEmail(String userEmail) {
this.userEmail = userEmail;
}
public String getUserPhoto() {
return userPhoto;
}
public void setUserPhoto(String userPhoto) {
this.userPhoto = userPhoto;
}
public String getUserGender() {
return userGender;
}
public void setUserGender(String userGender) {
this.userGender = userGender;
}
}
|
[
"[email protected]"
] | |
0473fabc8c78865e9d310f87a9d85d50e533fbe2
|
049dae8498403c9afe455cfb5c32b133a6fc3d5f
|
/app/src/main/java/com/bang/bookshare/activity/BookInfoActivity.java
|
0c55acadefba2c4d548ca2289f0ba40ce0ea733a
|
[] |
no_license
|
chenliguan/BookShare
|
62a2e83a1d2917775a5e43a53259d90eaafafefe
|
ccdfa7e310ec8fbd0dcc6040d924c3f350cf0427
|
refs/heads/master
| 2021-01-10T13:35:03.083106
| 2016-02-05T16:50:59
| 2016-02-05T16:50:59
| 50,761,628
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,699
|
java
|
package com.bang.bookshare.activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.bang.bookshare.R;
import com.bang.bookshare.entity.Book;
import com.bang.bookshare.entity.User;
import com.bang.bookshare.utils.ActivityStack;
import com.bang.bookshare.utils.EnumDataChange;
import com.bang.bookshare.utils.HttpPathUtil;
import com.bang.bookshare.utils.LogUtil;
import com.bang.bookshare.view.CircleImageView;
import com.bang.bookshare.volley.VolleyHandler;
import com.bang.bookshare.volley.VolleyHttpRequest;
import java.util.HashMap;
import butterknife.ButterKnife;
import butterknife.InjectView;
import butterknife.OnClick;
/**
* 图书详情页面
*
* @author Bang
* @file com.bang.bookshare.activity
* @date 2016/1/31
* @Version 1.0
*/
public class BookInfoActivity extends FrameActivity {
@InjectView(R.id.civ_head_afd)
CircleImageView civHeadAfd;
@InjectView(R.id.tv_book_name)
TextView tvBookName;
@InjectView(R.id.tv_user_name)
TextView tvUserName;
@InjectView(R.id.tv_profile)
TextView tvProfile;
@InjectView(R.id.tv_author)
TextView tvAuthor;
@InjectView(R.id.tv_is_borrowed)
TextView tvIsBorrowed;
@InjectView(R.id.tv_book_collections)
TextView tvBookCollections;
@InjectView(R.id.tv_phone)
TextView tvPhone;
@InjectView(R.id.tv_address)
TextView tvAddress;
@InjectView(R.id.tv_title)
TextView tvTitle;
private Book.EcListEntity ecListEntity;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_book_info);
ButterKnife.inject(this);
ActivityStack.getInstance().addActivity(this);
/**
* 初始化变量
*/
initVariable();
/**
* 绑定/设置数据操作
*/
bindData();
}
/**
* 初始化变量
*/
private void initVariable() {
tvTitle.setText(getString(R.string.book_detail));
// 暂时以此图片代替
civHeadAfd.setImageUrl(getString(R.string.book), R.mipmap.ic_head, R.mipmap.ic_head);
// 获取传来的book
Intent intent = this.getIntent();
ecListEntity = (Book.EcListEntity) intent.getSerializableExtra("ecListEntity");
tvUserName.setText(ecListEntity.getUserName());
tvIsBorrowed.setText(ecListEntity.getIsBorrowed());
tvBookName.setText(ecListEntity.getBookName());
tvAuthor.setText(ecListEntity.getBookAuthor());
tvBookCollections.setText(ecListEntity.getBookCollections());
tvProfile.setText(ecListEntity.getBookProfile());
tvPhone.setText(String.valueOf(ecListEntity.getUserId()));
}
/**
* 绑定/设置数据操作
*/
public void bindData() {
// 请求获取用户信息
getUserIfo();
}
/**
* 监听实现
*/
@OnClick({R.id.iv_back, R.id.rlyt_phone, R.id.btn_chat})
public void onClick(View view) {
switch (view.getId()) {
case R.id.iv_back:
finish();
break;
case R.id.rlyt_phone:
// 用户拨打书主电话
Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:" + tvPhone.getText()));
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
break;
case R.id.btn_chat:
Intent intent2 = new Intent(this, ChatActivity.class);
Bundle bundle = new Bundle();
bundle.putSerializable("relatedUserId",ecListEntity.getUserId());
intent2.putExtras(bundle);
startActivity(intent2);
LogUtil.showLog("ecListEntity.getUserId():" + ecListEntity.getUserId());
break;
default:
break;
}
}
/**
* 请求获取用户信息
*/
private void getUserIfo() {
VolleyHandler<String> volleyRequest = new VolleyHandler<String>() {
@Override
public void reqSuccess(String response) {
if (response == null) {
showMsg(getString(R.string.msg_loading_error));
} else {
// 解析数据
User user = User.praseJson(response);
// 请求业务判断
if (user.isSuccess()) {
User.EcListEntity entity = user.ecList.get(0);
// 英文转换陈中文
String userSchool = null;
if (entity.getUserSchool() != null) {
userSchool = EnumDataChange.EN_CH(entity.getUserSchool());
}
// 设置页面当前的值
String address = userSchool + entity.getClasses() + entity.getAdress();
tvAddress.setText(address);
} else {
showMsg(user.getMessage());
}
}
}
@Override
public void reqError(String error) {
showMsg(getString(R.string.msg_con_server_error));
}
};
// Post请求键值对
HashMap<String, String> params = new HashMap<>();
params.put("userId", String.valueOf(ecListEntity.getUserId()));
VolleyHttpRequest.String_request(HttpPathUtil.getUserIfo(), params, volleyRequest);
}
}
|
[
"[email protected]"
] | |
eb89c12259096483510961dea2eb173e9cb2c111
|
d3bf4dfd7b48597f13f656a1f28eca1e79c1cb2a
|
/smilife/smilife_web/src/main/java/com/iskyshop/core/tools/ClientInfo.java
|
599f28c325e1834ff7fc3113625d2909f07eb91d
|
[] |
no_license
|
zengchi/project
|
6a5b0d71ec6e7bcc8d32380509b34d9eebbe1ed7
|
a72c4aabb260bca8d2e340f2262d2f6c53f98898
|
refs/heads/master
| 2021-04-08T14:37:56.661873
| 2017-12-23T02:42:31
| 2017-12-23T02:42:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,211
|
java
|
package com.iskyshop.core.tools;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
*
* <p>
* Title: ClientInfo.java
* </p>
*
* <p>
* Description: 返回客户端信息工具类
* </p>
*
* <p>
* Copyright: Copyright (c) 2014
* </p>
*
* <p>
* Company: 沈阳网之商科技有限公司 www.iskyshop.com
* </p>
*
* @author erikzhang
*
* @date 2014-4-24
*
* @version iskyshop_b2b2c v2.0 2015版
*/
public class ClientInfo {
private String info = "";
private String explorerVer = "未知";
private String OSVer = "未知";
/*
* 构造函数 参数:String request.getHeader("user-agent")
*
* IE7:Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729;
* .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C) IE8:Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0;
* SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C) Maxthon:Mozilla/4.0
* (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729;
* Media Center PC 6.0; .NET4.0C; Maxthon 2.0) firefox:Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.11)
* Gecko/20101012 Firefox/3.6.11 Chrome:Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like
* Gecko) Chrome/7.0.517.44 Safari/534.7 Opera:Opera/9.80 (Windows NT 6.1; U; zh-cn) Presto/2.6.30 Version/10.63
*
* 操作系统: Win7 : Windows NT 6.1 WinXP : Windows NT 5.1
*/
public ClientInfo(String info) {
this.info = info;
}
/*
* 获取核心浏览器名称
*/
public String getExplorerName() {
String str = "未知";
Pattern pattern = Pattern.compile("");
Matcher matcher;
if (info.indexOf("MSIE") != -1) {
str = "MSIE"; // 微软IE
pattern = Pattern.compile(str + "\\s([0-9.]+)");
} else if (info.indexOf("Firefox") != -1) {
str = "Firefox"; // 火狐
pattern = Pattern.compile(str + "\\/([0-9.]+)");
} else if (info.indexOf("Chrome") != -1) {
str = "Chrome"; // Google
pattern = Pattern.compile(str + "\\/([0-9.]+)");
} else if (info.indexOf("Opera") != -1) {
str = "Opera"; // Opera
pattern = Pattern.compile("Version\\/([0-9.]+)");
}
matcher = pattern.matcher(info);
if (matcher.find())
explorerVer = matcher.group(1);
return str;
}
/*
* 获取核心浏览器版本
*/
public String getExplorerVer() {
return this.explorerVer;
}
/*
* 获取浏览器插件名称(例如:遨游、世界之窗等)
*/
public String getExplorerPlug() {
String str = "无";
if (info.indexOf("Maxthon") != -1)
str = "Maxthon"; // 遨游
return str;
}
/*
* 获取操作系统名称
*/
public String getOSName() {
String str = "未知";
Pattern pattern = Pattern.compile("");
Matcher matcher;
if (info.indexOf("Windows") != -1) {
str = "Windows"; // Windows NT 6.1
pattern = Pattern.compile(str + "\\s([a-zA-Z0-9]+\\s[0-9.]+)");
}
matcher = pattern.matcher(info);
if (matcher.find())
OSVer = matcher.group(1);
return str;
}
/*
* 获取操作系统版本
*/
public String getOSVer() {
return this.OSVer;
}
}
|
[
"[email protected]"
] | |
41bc24d6642509ff012140324ba44dcee8e50e93
|
292bd357f3a14a81d7fd743453fbd52e2c3090e8
|
/src/programmers/pg_67256_kakao.java
|
36303794e21026b5a9518700c543b86b51101657
|
[] |
no_license
|
BangKiHyun/Algorithm
|
90ea1e07924d06ab7c16a9aa6e5578c33953c705
|
065953a728227c796294ef993815a1fa50d9be31
|
refs/heads/master
| 2023-04-13T11:14:35.325863
| 2023-04-02T08:50:43
| 2023-04-02T08:50:43
| 190,966,256
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,573
|
java
|
package programmers;
import java.util.Arrays;
import java.util.List;
public class pg_67256_kakao {
private static final String right = "R";
private static final String left = "L";
private static List<Pos> list = Arrays.asList(
new Pos(3, 1),
new Pos(0, 0),
new Pos(0, 1),
new Pos(0, 2),
new Pos(1, 0),
new Pos(1, 1),
new Pos(1, 2),
new Pos(2, 0),
new Pos(2, 1),
new Pos(2, 2));
public static void main(String[] args) {
int[] numbers = {1, 3, 4, 5, 8, 2, 1, 4, 5, 9, 5};
String hand = "right";
System.out.println(solution(numbers, hand));
}
private static String solution(int[] numbers, String hand) {
StringBuilder sb = new StringBuilder();
Pos rightHand = new Pos(3, 2);
Pos leftHand = new Pos(3, 0);
for (int i = 0; i < numbers.length; i++) {
int number = numbers[i];
if (isLeftHand(number)) {
leftHand = list.get(number);
sb.append(left);
} else if (isRightHand(number)) {
rightHand = list.get(number);
sb.append(right);
} else {
if (closeToRight(number, rightHand, leftHand, hand)) {
rightHand = list.get(number);
sb.append(right);
} else {
leftHand = list.get(number);
sb.append(left);
}
}
}
return String.valueOf(sb);
}
private static boolean isLeftHand(int number) {
return number == 1 || number == 4 || number == 7;
}
private static boolean isRightHand(int number) {
return number == 3 || number == 6 || number == 9;
}
private static boolean closeToRight(int number, Pos rightHand, Pos leftHand, String myHand) {
int rightDistance = getDistance(list.get(number), rightHand);
int leftDistance = getDistance(list.get(number), leftHand);
if (rightDistance < leftDistance || (rightDistance == leftDistance && myHand.equals("right"))) {
return true;
}
return false;
}
private static int getDistance(Pos cur, Pos rightHand) {
return Math.abs(cur.x - rightHand.x) + Math.abs(cur.y - rightHand.y);
}
private static class Pos {
private int x;
private int y;
public Pos(int x, int y) {
this.x = x;
this.y = y;
}
}
}
|
[
"[email protected]"
] | |
aebe53a96ef70fb8a2ec19b24bc3c5d3147bbe16
|
3f4d50ac6cc4c84b6e5af83ca785d1630f730a07
|
/app/src/main/java/cn/poco/home/home4/introAnimation/ArchAnimator.java
|
de543e7013e625f020740193051373288403c92f
|
[] |
no_license
|
FranklinNEO/BeautyCamera2016
|
5ceb02047750b54d3be44f07ba08a8d84516bdc2
|
c0aa17fefa283b43187396ba35073fdef2b541f5
|
refs/heads/master
| 2022-09-08T08:37:30.260238
| 2020-06-01T10:12:02
| 2020-06-01T10:12:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,531
|
java
|
package cn.poco.home.home4.introAnimation;
import android.animation.ValueAnimator;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.view.View;
import android.view.animation.DecelerateInterpolator;
/**
* Created by lgd on 2016/11/12.
*/
public class ArchAnimator extends ValueAnimator
{
public final static int DURATION = Config.DURATION_ARCH;
private final int archMaxHeight;
private View mView;
private int archHeight;
private int archWidth;
private float ratio;
private int centerX;
private int centerY;
private int alpha;
private Paint mPaint;
private int mCurRadius;
private final int mOriginRadius;
public ArchAnimator(View view)
{
mView = view;
alpha = 255;
archHeight = Config.ARCH_HEIGHT;
archMaxHeight = Config.ARCH_MAX_HEIGHT;
archWidth = Config.ARCH_WIDTH;
//(x-B长度)平方 +(A长度的一半)平方 = x平方
int radius = (archWidth * archWidth + archHeight * archHeight) / (archHeight*2);
mOriginRadius = radius - archHeight;
centerY = Config.ARCH_CENTER_Y + mOriginRadius;
centerX = Config.ARCH_CENTER_X;
ratio = archWidth / archHeight;
initAnim();
}
boolean isReBound = false;
private void initAnim()
{
this.setDuration(DURATION);
this.setInterpolator(new DecelerateInterpolator());
mCurRadius = mOriginRadius;
this.setIntValues(mOriginRadius, mOriginRadius + archMaxHeight, mOriginRadius + archHeight);
this.addUpdateListener(new AnimatorUpdateListener()
{
int curRadius;
int lastRadius;
float scale;
@Override
public void onAnimationUpdate(ValueAnimator animation)
{
lastRadius = curRadius;
curRadius = (int)animation.getAnimatedValue();
mCurRadius = curRadius;
if(curRadius < lastRadius || curRadius == mOriginRadius + archMaxHeight)
{
//回弹
alpha = (curRadius - mOriginRadius - archHeight) * 255 / (archMaxHeight - archHeight);
scale = ((curRadius-mOriginRadius)*1.0f / archHeight);
if(fadeInCallBack != null)
{
fadeInCallBack.fadeIn(alpha*1.0f/255,scale);
}
}
mView.postInvalidate();
}
});
}
public void draw(Canvas canvas, Paint paint)
{
if(mPaint == null)
{
mPaint = new Paint(paint);
}
mPaint.setAlpha(alpha);
canvas.drawCircle(centerX, centerY, mCurRadius, mPaint);
}
private FadeInCallBack fadeInCallBack;
interface FadeInCallBack
{
void fadeIn(float alpha, float scale);
}
public void setFadeInCallBack(FadeInCallBack fadeInCallBack)
{
this.fadeInCallBack = fadeInCallBack;
}
}
|
[
"[email protected]"
] | |
6f4732226a5b453ea03e30d0435f30a26404fe0a
|
8aeae1fd40c14f8f8175d17ed3420bc789bdc19e
|
/src/net/ion/radon/upgrade/AntCommand.java
|
d887dd7ef7e8384e00314bffdc79fd65908bac19
|
[] |
no_license
|
bleujin/aradon
|
15aa37a5fd479b0e84428095fabdf7d7eed022d4
|
589881dff83cb37d7798a286e5553be1f68fc9d6
|
refs/heads/master
| 2016-09-10T20:09:15.806224
| 2014-09-24T01:28:31
| 2014-09-24T01:28:31
| 2,208,277
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,344
|
java
|
package net.ion.radon.upgrade;
import java.io.File;
import java.io.IOException;
import net.ion.framework.parse.html.HTag;
import net.ion.framework.util.ObjectUtil;
import net.ion.framework.util.UTF8FileUtils;
import org.apache.tools.ant.BuildLogger;
import org.apache.tools.ant.DefaultLogger;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.ProjectHelper;
public class AntCommand extends ICommand{
@Override
public void run() throws IOException {
HTag config = getConfig() ;
File file = File.createTempFile("ws", "script") ;
file.deleteOnExit() ;
UTF8FileUtils.writeStringToFile(file, config.getOnlyText(), "UTF-8") ;
runTarget(file, null) ;
}
public void runTarget(File configFile, String target) throws IOException{
BuildLogger logger = new DefaultLogger() ;
logger.setMessageOutputLevel(Project.MSG_INFO) ;
logger.setOutputPrintStream(System.out) ;
logger.setErrorPrintStream(System.out) ;
logger.setEmacsMode(true) ;
ProjectHelper ph = ProjectHelper.getProjectHelper() ;
Project p = new Project() ;
p.setBaseDir(new File("./")) ;
p.addBuildListener(logger) ;
p.init() ;
p.addReference("ant.projectHelper", ph) ;
ph.parse(p, configFile) ;
p.executeTarget(ObjectUtil.coalesce(target, p.getDefaultTarget())) ;
}
}
|
[
"[email protected]"
] | |
2e7cede4e07d60d3970b507adcb2570e18fdfcc9
|
d4261417db59c92bb118cb7ec12c0bc43c85d62f
|
/src/de/uni/bielefeld/sc/hterhors/psink/obie/projects/soccerplayer/ontology/interfaces/IFreemantleFC.java
|
dc42afb284a6f1dd559d2d99f7de7c70bcbf67ab
|
[
"Apache-2.0"
] |
permissive
|
berezovskyi/SoccerPlayerOntology
|
ed3a24a7ace88ba209f5439a49b04c11a8e6034a
|
c7dafee008911b45a2b9e8c55ffd43c1e69c3660
|
refs/heads/master
| 2022-06-20T02:17:21.385038
| 2018-09-21T17:09:38
| 2018-09-21T17:09:38
| 149,870,122
| 0
| 0
|
Apache-2.0
| 2022-05-20T22:00:24
| 2018-09-22T11:19:31
|
Java
|
UTF-8
|
Java
| false
| false
| 579
|
java
|
package de.uni.bielefeld.sc.hterhors.psink.obie.projects.soccerplayer.ontology.interfaces;
import de.uni.bielefeld.sc.hterhors.psink.obie.core.ontology.annotations.AssignableSubInterfaces;
import de.uni.bielefeld.sc.hterhors.psink.obie.core.ontology.annotations.ImplementationClass;
import de.uni.bielefeld.sc.hterhors.psink.obie.projects.soccerplayer.ontology.classes.FreemantleFC;
/**
*
* @author hterhors
*
*
* Sep 6, 2018
*/
@AssignableSubInterfaces(get = {})
@ImplementationClass(get = FreemantleFC.class)
public interface IFreemantleFC extends ITeam {
}
|
[
"[email protected]"
] | |
f2ddbe29f5b46cffbf19890e549bd290d15899c3
|
484ae52cc9fb33083e6e1424abad7ce56a987956
|
/src/br/ufpe/cin/tests/DeletionsHandlerTest.java
|
7f597b309221736cfafc8bae399c2d2c518922c8
|
[] |
no_license
|
lilingrowup/jFSTMerge
|
5bff033eec5d91a07a229d169216893906d5dbc9
|
f4e39910e2bef88e24730739e8fd1eaaf83ef2e9
|
refs/heads/master
| 2020-03-26T20:52:16.290937
| 2018-08-18T17:37:40
| 2018-08-18T17:37:40
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,075
|
java
|
package br.ufpe.cin.tests;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.io.OutputStream;
import java.io.PrintStream;
import org.junit.BeforeClass;
import org.junit.Test;
import br.ufpe.cin.app.JFSTMerge;
import br.ufpe.cin.files.FilesManager;
import br.ufpe.cin.mergers.util.MergeContext;
public class DeletionsHandlerTest {
@BeforeClass
public static void setUpBeforeClass() throws Exception {
//hidding sysout output
@SuppressWarnings("unused")
PrintStream originalStream = System.out;
PrintStream hideStream = new PrintStream(new OutputStream(){
public void write(int b) {}
});
System.setOut(hideStream);
}
@Test
public void testFileDeletion() {
MergeContext ctx = new JFSTMerge().mergeFiles(
new File("testfiles/deletioninner/left.java"),
new File("testfiles/deletioninner/base.java"),
null,
null);
assertTrue(
FilesManager.getStringContentIntoSingleLineNoSpacing(ctx.semistructuredOutput)
.equals("<<<<<<<MINEpackagecom.example;publicclassTest{voidm(){}}=======>>>>>>>YOURS")
);
}
@Test
public void testInnerDeletion() {
MergeContext ctx = new JFSTMerge().mergeFiles(
new File("testfiles/deletioninner/left.java"),
new File("testfiles/deletioninner/base.java"),
new File("testfiles/deletioninner/right.java"),
null);
assertTrue(
FilesManager.getStringContentIntoSingleLineNoSpacing(ctx.semistructuredOutput)
.equals("packagecom.example;publicclassTest{voidm(){}intb;}")
);
assertTrue(ctx.innerDeletionConflicts==0);
}
@Test
public void testInnerDeletionReversed() {
MergeContext ctx = new JFSTMerge().mergeFiles(
new File("testfiles/deletioninner/left.java"),
new File("testfiles/deletioninner/base.java"),
new File("testfiles/deletioninner/right.java"),
null);
assertTrue(
FilesManager.getStringContentIntoSingleLineNoSpacing(ctx.semistructuredOutput)
.equals("packagecom.example;publicclassTest{voidm(){}intb;}")
);
assertTrue(ctx.innerDeletionConflicts==0);
}
@Test
public void testInnerDeletionWithNewInstanceOfOriginal() {
MergeContext ctx = new JFSTMerge().mergeFiles(
new File("testfiles/deletioninnernewinstanceoforiginal/left.java"),
new File("testfiles/deletioninnernewinstanceoforiginal/base.java"),
new File("testfiles/deletioninnernewinstanceoforiginal/right.java"),
null);
assertTrue(
FilesManager.getStringContentIntoSingleLineNoSpacing(ctx.semistructuredOutput)
.equals("packagecom.example;publicclassTest{classA{doublea;doubleb;}classB{doublea;}publicstaticvoidmain(String[]args){newA();}}")
);
assertTrue(ctx.innerDeletionConflicts==0);
}
@Test
public void testInnerDeletionWithNoNewInstanceOfOriginal() {
MergeContext ctx = new JFSTMerge().mergeFiles(
new File("testfiles/deletioninnernoinstanceoforiginal/left.java"),
new File("testfiles/deletioninnernoinstanceoforiginal/base.java"),
new File("testfiles/deletioninnernoinstanceoforiginal/right.java"),
null);
assertTrue(
FilesManager.getStringContentIntoSingleLineNoSpacing(ctx.semistructuredOutput)
.equals("packagecom.example;publicclassTest{classB{doublea;doubleb;}}")
);
assertTrue(ctx.innerDeletionConflicts==0);
}
@Test
public void testInnerDeletionWithNewInstanceOfRenamed() {
MergeContext ctx = new JFSTMerge().mergeFiles(
new File("testfiles/deletioninnernewinstanceofrenamed/left.java"),
new File("testfiles/deletioninnernewinstanceofrenamed/base.java"),
new File("testfiles/deletioninnernewinstanceofrenamed/right.java"),
null);
assertTrue(
FilesManager.getStringContentIntoSingleLineNoSpacing(ctx.semistructuredOutput)
.equals("packagecom.example;publicclassTest{<<<<<<<MINE=======classA{doublea;doubleb;}>>>>>>>YOURSclassB{doublea;}publicstaticvoidmain(String[]args){newB();}}")
);
assertTrue(ctx.innerDeletionConflicts==1);
}
@Test
public void testInnerDeletionWithNoEditionOfOriginal() {
MergeContext ctx = new JFSTMerge().mergeFiles(
new File("testfiles/deletioninnernoeditionoforiginal/left.java"),
new File("testfiles/deletioninnernoeditionoforiginal/base.java"),
new File("testfiles/deletioninnernoeditionoforiginal/right.java"),
null);
assertTrue(
FilesManager.getStringContentIntoSingleLineNoSpacing(ctx.semistructuredOutput)
.equals("packagecom.example;publicclassTest{classB{doublea;}inta;}")
);
assertTrue(ctx.innerDeletionConflicts==0);
}
@Test
public void testInnerDeletionNotRefactoring() {
MergeContext ctx = new JFSTMerge().mergeFiles(
new File("testfiles/deletioninnernotrefactoring/left.java"),
new File("testfiles/deletioninnernotrefactoring/base.java"),
new File("testfiles/deletioninnernotrefactoring/right.java"),
null);
assertTrue(
FilesManager.getStringContentIntoSingleLineNoSpacing(ctx.semistructuredOutput)
.equals("packagecom.example;publicclassTest{classB{doublea;doubleb;}inta;}")
);
assertTrue(ctx.innerDeletionConflicts==0);
}
@Test
public void testInnerDeletionWithNewInstanceOfOriginalReversed() {
MergeContext ctx = new JFSTMerge().mergeFiles(
new File("testfiles/deletioninnernewinstanceoforiginal/right.java"),
new File("testfiles/deletioninnernewinstanceoforiginal/base.java"),
new File("testfiles/deletioninnernewinstanceoforiginal/left.java"),
null);
assertTrue(
FilesManager.getStringContentIntoSingleLineNoSpacing(ctx.semistructuredOutput)
.equals("packagecom.example;publicclassTest{classA{doublea;doubleb;}publicstaticvoidmain(String[]args){newA();}classB{doublea;}}")
);
assertTrue(ctx.innerDeletionConflicts==0);
}
@Test
public void testInnerDeletionWithNoNewInstanceOfOriginalReversed() {
MergeContext ctx = new JFSTMerge().mergeFiles(
new File("testfiles/deletioninnernoinstanceoforiginal/right.java"),
new File("testfiles/deletioninnernoinstanceoforiginal/base.java"),
new File("testfiles/deletioninnernoinstanceoforiginal/left.java"),
null);
assertTrue(
FilesManager.getStringContentIntoSingleLineNoSpacing(ctx.semistructuredOutput)
.equals("packagecom.example;publicclassTest{classB{doublea;doubleb;}}")
);
assertTrue(ctx.innerDeletionConflicts==0);
}
@Test
public void testInnerDeletionWithNewInstanceOfRenamedReversed() {
MergeContext ctx = new JFSTMerge().mergeFiles(
new File("testfiles/deletioninnernewinstanceofrenamed/right.java"),
new File("testfiles/deletioninnernewinstanceofrenamed/base.java"),
new File("testfiles/deletioninnernewinstanceofrenamed/left.java"),
null);
assertTrue(
FilesManager.getStringContentIntoSingleLineNoSpacing(ctx.semistructuredOutput)
.equals("packagecom.example;publicclassTest{<<<<<<<MINEclassA{doublea;doubleb;}=======>>>>>>>YOURSclassB{doublea;}publicstaticvoidmain(String[]args){newB();}}")
);
assertTrue(ctx.innerDeletionConflicts==1);
}
@Test
public void testInnerDeletionWithNoEditionOfOriginalReversed() {
MergeContext ctx = new JFSTMerge().mergeFiles(
new File("testfiles/deletioninnernoeditionoforiginal/right.java"),
new File("testfiles/deletioninnernoeditionoforiginal/base.java"),
new File("testfiles/deletioninnernoeditionoforiginal/left.java"),
null);
assertTrue(
FilesManager.getStringContentIntoSingleLineNoSpacing(ctx.semistructuredOutput)
.equals("packagecom.example;publicclassTest{inta;classB{doublea;}}")
);
assertTrue(ctx.innerDeletionConflicts==0);
}
@Test
public void testInnerDeletionNotRefactoringReversed() {
MergeContext ctx = new JFSTMerge().mergeFiles(
new File("testfiles/deletioninnernotrefactoring/right.java"),
new File("testfiles/deletioninnernotrefactoring/base.java"),
new File("testfiles/deletioninnernotrefactoring/left.java"),
null);
assertTrue(
FilesManager.getStringContentIntoSingleLineNoSpacing(ctx.semistructuredOutput)
.equals("packagecom.example;publicclassTest{inta;classB{doublea;doubleb;}}")
);
assertTrue(ctx.innerDeletionConflicts==0);
}
}
|
[
"[email protected]"
] | |
666151f1382607dd53fe93bdc18f5d7b086127c6
|
50eeacf730c67bfc5f989281e19d52f865a294c9
|
/trunk/myfaces-impl-2021override/src/main/java/org/apache/myfaces/ov2021/context/servlet/RequestMap.java
|
a7d1290be80b04c5d9563d568d27c08e8e5cac1a
|
[
"Apache-2.0"
] |
permissive
|
lu4242/ext-myfaces-2.0.2-patch
|
4dc5c2b49ce4a3cfc1261b78848bb3cea3b6d597
|
703d0dcf45469dbc69e84d8a607b913dd6be712a
|
refs/heads/master
| 2021-01-10T19:09:03.293299
| 2014-04-04T13:03:06
| 2014-04-04T13:03:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,259
|
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.myfaces.ov2021.context.servlet;
import java.util.Enumeration;
import java.util.Map;
import javax.servlet.ServletRequest;
import org.apache.myfaces.ov2021.util.AbstractAttributeMap;
/**
* ServletRequest attributes Map.
*
* @author Anton Koinov (latest modification by $Author: bommel $)
* @version $Revision: 1187700 $ $Date: 2011-10-22 14:19:37 +0200 (Sa, 22 Okt 2011) $
*/
public final class RequestMap extends AbstractAttributeMap<Object>
{
final ServletRequest _servletRequest;
RequestMap(final ServletRequest servletRequest)
{
_servletRequest = servletRequest;
}
@Override
protected Object getAttribute(final String key)
{
return _servletRequest.getAttribute(key);
}
@Override
protected void setAttribute(final String key, final Object value)
{
_servletRequest.setAttribute(key, value);
}
@Override
protected void removeAttribute(final String key)
{
_servletRequest.removeAttribute(key);
}
@Override
@SuppressWarnings("unchecked")
protected Enumeration<String> getAttributeNames()
{
return _servletRequest.getAttributeNames();
}
@Override
public void putAll(final Map<? extends String, ? extends Object> t)
{
throw new UnsupportedOperationException();
}
@Override
public void clear()
{
throw new UnsupportedOperationException();
}
}
|
[
"[email protected]"
] | |
98ff092d4c2cc4f0ac4b7161bff4d0bfc25faa62
|
58da62dfc6e145a3c836a6be8ee11e4b69ff1878
|
/src/main/java/com/alipay/api/domain/ValidDateInfo.java
|
585b12403b8ed5a1d0688ddc3829a002e4cd3de0
|
[
"Apache-2.0"
] |
permissive
|
zhoujiangzi/alipay-sdk-java-all
|
00ef60ed9501c74d337eb582cdc9606159a49837
|
560d30b6817a590fd9d2c53c3cecac0dca4449b3
|
refs/heads/master
| 2022-12-26T00:27:31.553428
| 2020-09-07T03:39:05
| 2020-09-07T03:39:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,345
|
java
|
package com.alipay.api.domain;
import java.util.Date;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 有效期
*
* @author auto create
* @since 1.0, 2016-06-23 17:38:07
*/
public class ValidDateInfo extends AlipayObject {
private static final long serialVersionUID = 4713928566885146866L;
/**
* 截至时间
*/
@ApiField("end_time")
private Date endTime;
/**
* 相对有效期
*/
@ApiField("relative_time")
private PeriodInfo relativeTime;
/**
* 开始时间
*/
@ApiField("start_time")
private Date startTime;
/**
* 时间模式,RELATIVE=相对时间,RELATIVE=绝对模式
*/
@ApiField("time_mode")
private String timeMode;
public Date getEndTime() {
return this.endTime;
}
public void setEndTime(Date endTime) {
this.endTime = endTime;
}
public PeriodInfo getRelativeTime() {
return this.relativeTime;
}
public void setRelativeTime(PeriodInfo relativeTime) {
this.relativeTime = relativeTime;
}
public Date getStartTime() {
return this.startTime;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
public String getTimeMode() {
return this.timeMode;
}
public void setTimeMode(String timeMode) {
this.timeMode = timeMode;
}
}
|
[
"[email protected]"
] | |
3986ea0e224805ab776fb6873a2e5b91525060ff
|
774d36285e48bd429017b6901a59b8e3a51d6add
|
/sources/com/google/android/gms/internal/ads/zzbk.java
|
8abd768ebd622fa7e49ec73306e7cfb9060ee380
|
[] |
no_license
|
jorge-luque/hb
|
83c086851a409e7e476298ffdf6ba0c8d06911db
|
b467a9af24164f7561057e5bcd19cdbc8647d2e5
|
refs/heads/master
| 2023-08-25T09:32:18.793176
| 2020-10-02T11:02:01
| 2020-10-02T11:02:01
| 300,586,541
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,282
|
java
|
package com.google.android.gms.internal.ads;
import java.nio.ByteBuffer;
import java.util.Date;
/* compiled from: com.google.android.gms:play-services-ads@@19.1.0 */
public final class zzbk extends zzegk {
private Date zzct;
private Date zzcu;
private long zzcv;
private long zzcw;
private double zzcx = 1.0d;
private float zzcy = 1.0f;
private zzegu zzcz = zzegu.zziix;
private long zzda;
private int zzdb;
private int zzdc;
private int zzdd;
private int zzde;
private int zzdf;
private int zzdg;
public zzbk() {
super("mvhd");
}
public final long getDuration() {
return this.zzcw;
}
public final String toString() {
return "MovieHeaderBox[" + "creationTime=" + this.zzct + ";" + "modificationTime=" + this.zzcu + ";" + "timescale=" + this.zzcv + ";" + "duration=" + this.zzcw + ";" + "rate=" + this.zzcx + ";" + "volume=" + this.zzcy + ";" + "matrix=" + this.zzcz + ";" + "nextTrackId=" + this.zzda + "]";
}
public final void zzg(ByteBuffer byteBuffer) {
zzm(byteBuffer);
if (getVersion() == 1) {
this.zzct = zzegn.zzfv(zzbg.zzc(byteBuffer));
this.zzcu = zzegn.zzfv(zzbg.zzc(byteBuffer));
this.zzcv = zzbg.zza(byteBuffer);
this.zzcw = zzbg.zzc(byteBuffer);
} else {
this.zzct = zzegn.zzfv(zzbg.zza(byteBuffer));
this.zzcu = zzegn.zzfv(zzbg.zza(byteBuffer));
this.zzcv = zzbg.zza(byteBuffer);
this.zzcw = zzbg.zza(byteBuffer);
}
this.zzcx = zzbg.zzd(byteBuffer);
byte[] bArr = new byte[2];
byteBuffer.get(bArr);
this.zzcy = ((float) ((short) ((bArr[1] & 255) | ((short) (0 | ((bArr[0] << 8) & 65280)))))) / 256.0f;
zzbg.zzb(byteBuffer);
zzbg.zza(byteBuffer);
zzbg.zza(byteBuffer);
this.zzcz = zzegu.zzn(byteBuffer);
this.zzdb = byteBuffer.getInt();
this.zzdc = byteBuffer.getInt();
this.zzdd = byteBuffer.getInt();
this.zzde = byteBuffer.getInt();
this.zzdf = byteBuffer.getInt();
this.zzdg = byteBuffer.getInt();
this.zzda = zzbg.zza(byteBuffer);
}
public final long zzs() {
return this.zzcv;
}
}
|
[
"[email protected]"
] | |
5b4a512f178b2978077d741e92994c2226bba79e
|
6dbae30c806f661bcdcbc5f5f6a366ad702b1eea
|
/Corpus/eclipse.jdt.ui/9074.java
|
ed5cb0d7d52ca827da077585a54b814bf4f3aa0b
|
[
"MIT"
] |
permissive
|
SurfGitHub/BLIZZARD-Replication-Package-ESEC-FSE2018
|
d3fd21745dfddb2979e8ac262588cfdfe471899f
|
0f8f4affd0ce1ecaa8ff8f487426f8edd6ad02c0
|
refs/heads/master
| 2020-03-31T15:52:01.005505
| 2018-10-01T23:38:50
| 2018-10-01T23:38:50
| 152,354,327
| 1
| 0
|
MIT
| 2018-10-10T02:57:02
| 2018-10-10T02:57:02
| null |
UTF-8
|
Java
| false
| false
| 299
|
java
|
package p;
import static java.util.Arrays.asList;
import q.B;
public class A {
public static class X {
void m(B.C c) {
n();
A.m();
asList("a", "b");
}
public static void n() {
}
}
public static void m() {
}
}
|
[
"[email protected]"
] | |
edb65c48027d5d98f33dc98d64c24ea4b393e73d
|
cf77384b56599c201eba57d4450b0d2782b5007e
|
/cosmo-api/src/main/java/org/unitedinternet/cosmo/model/MessageStamp.java
|
7132c2a2ea4fac5be15414f3f54c439291edd46f
|
[
"Apache-2.0"
] |
permissive
|
1and1/cosmo
|
76e1864ca50713e63a8fb67d26eb99f15aa83913
|
e6c9ae8593a36a14c0cc50c3f29137df2736bccb
|
refs/heads/master
| 2023-08-29T16:44:25.959228
| 2023-07-05T06:18:19
| 2023-07-05T06:18:19
| 35,554,985
| 79
| 50
|
Apache-2.0
| 2023-06-29T12:50:17
| 2015-05-13T14:48:26
|
Java
|
UTF-8
|
Java
| false
| false
| 1,783
|
java
|
/*
* Copyright 2007 Open Source Applications 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.
*/
package org.unitedinternet.cosmo.model;
import java.io.Reader;
/**
* Stamp that associates message-specific attributes to an item.
*/
public interface MessageStamp extends Stamp{
public static final String FORMAT_DATE_SENT = "EEE', 'dd' 'MMM' 'yyyy' 'HH:mm:ss' 'Z";
// Property accessors
public String getMessageId();
public void setMessageId(String id);
public String getHeaders();
public void setHeaders(String headers);
public void setHeaders(Reader headers);
public String getFrom();
public void setFrom(String from);
public String getTo();
public void setTo(String to);
public String getBcc();
public void setBcc(String bcc);
public String getCc();
public void setCc(String cc);
public String getOriginators();
public void setOriginators(String originators);
public String getDateSent();
public void setDateSent(String dateSent);
public String getInReplyTo();
public void setInReplyTo(String inReplyTo);
public String getReferences();
public void setReferences(String references);
public void setReferences(Reader references);
}
|
[
"[email protected]"
] | |
2972ffe502de2f886e1d3853b6c6e70a217e10ab
|
4d6c00789d5eb8118e6df6fc5bcd0f671bbcdd2d
|
/src/main/java/com/alipay/api/domain/KoubeiItemTaobaoIndexQueryModel.java
|
b42b90ffa53e28e5245241315ee8de15f81eeb58
|
[
"Apache-2.0"
] |
permissive
|
weizai118/payment-alipay
|
042898e172ce7f1162a69c1dc445e69e53a1899c
|
e3c1ad17d96524e5f1c4ba6d0af5b9e8fce97ac1
|
refs/heads/master
| 2020-04-05T06:29:57.113650
| 2018-11-06T11:03:05
| 2018-11-06T11:03:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,650
|
java
|
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 淘抢购批量商品查询接口
*
* @author auto create
* @since 1.0, 2017-12-01 11:22:32
*/
public class KoubeiItemTaobaoIndexQueryModel extends AlipayObject {
private static final long serialVersionUID = 4613565843542355124L;
/**
* 城市编码
*/
@ApiField("city_id")
private String cityId;
/**
* 扩展信息,json格式
*/
@ApiField("ext_info")
private String extInfo;
/**
* 纬度
*/
@ApiField("latitude")
private String latitude;
/**
* 经度
*/
@ApiField("longitude")
private String longitude;
/**
* 场景码,TAO_BIG_BUY:淘抢购大牌抢购;JU_BIG_BUY:聚划算大牌抢购
*/
@ApiField("scene_code")
private String sceneCode;
/**
* 蚂蚁统一会员ID
*/
@ApiField("user_id")
private String userId;
/**
* Gets city id.
*
* @return the city id
*/
public String getCityId() {
return this.cityId;
}
/**
* Sets city id.
*
* @param cityId the city id
*/
public void setCityId(String cityId) {
this.cityId = cityId;
}
/**
* Gets ext info.
*
* @return the ext info
*/
public String getExtInfo() {
return this.extInfo;
}
/**
* Sets ext info.
*
* @param extInfo the ext info
*/
public void setExtInfo(String extInfo) {
this.extInfo = extInfo;
}
/**
* Gets latitude.
*
* @return the latitude
*/
public String getLatitude() {
return this.latitude;
}
/**
* Sets latitude.
*
* @param latitude the latitude
*/
public void setLatitude(String latitude) {
this.latitude = latitude;
}
/**
* Gets longitude.
*
* @return the longitude
*/
public String getLongitude() {
return this.longitude;
}
/**
* Sets longitude.
*
* @param longitude the longitude
*/
public void setLongitude(String longitude) {
this.longitude = longitude;
}
/**
* Gets scene code.
*
* @return the scene code
*/
public String getSceneCode() {
return this.sceneCode;
}
/**
* Sets scene code.
*
* @param sceneCode the scene code
*/
public void setSceneCode(String sceneCode) {
this.sceneCode = sceneCode;
}
/**
* Gets user id.
*
* @return the user id
*/
public String getUserId() {
return this.userId;
}
/**
* Sets user id.
*
* @param userId the user id
*/
public void setUserId(String userId) {
this.userId = userId;
}
}
|
[
"[email protected]"
] | |
dca533aa3e6f8781da74cc8eb38247afdb4fed67
|
863acb02a064a0fc66811688a67ce3511f1b81af
|
/sources/p005cm/aptoide/p006pt/search/view/C4754Sc.java
|
dcc0dfe7682635be0f38db7a506c055d2d813354
|
[
"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
| 535
|
java
|
package p005cm.aptoide.p006pt.search.view;
import p026rx.p027b.C0129b;
/* renamed from: cm.aptoide.pt.search.view.Sc */
/* compiled from: lambda */
public final /* synthetic */ class C4754Sc implements C0129b {
/* renamed from: a */
private final /* synthetic */ SearchResultPresenter f8389a;
public /* synthetic */ C4754Sc(SearchResultPresenter searchResultPresenter) {
this.f8389a = searchResultPresenter;
}
public final void call(Object obj) {
this.f8389a.mo16284e((Throwable) obj);
}
}
|
[
"[email protected]"
] | |
71282fb053d59455787b9a2b8a8570b1abd8812c
|
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
|
/aliyun-java-sdk-hbase/src/main/java/com/aliyuncs/hbase/model/v20190101/DescribeBackupStatusRequest.java
|
9c62988a0c4a322465a8ee0794cfa69ab81c1bc6
|
[
"Apache-2.0"
] |
permissive
|
aliyun/aliyun-openapi-java-sdk
|
a263fa08e261f12d45586d1b3ad8a6609bba0e91
|
e19239808ad2298d32dda77db29a6d809e4f7add
|
refs/heads/master
| 2023-09-03T12:28:09.765286
| 2023-09-01T09:03:00
| 2023-09-01T09:03:00
| 39,555,898
| 1,542
| 1,317
|
NOASSERTION
| 2023-09-14T07:27:05
| 2015-07-23T08:41:13
|
Java
|
UTF-8
|
Java
| false
| false
| 1,639
|
java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.hbase.model.v20190101;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.hbase.Endpoint;
/**
* @author auto create
* @version
*/
public class DescribeBackupStatusRequest extends RpcAcsRequest<DescribeBackupStatusResponse> {
private String clusterId;
public DescribeBackupStatusRequest() {
super("HBase", "2019-01-01", "DescribeBackupStatus", "hbase");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}
public String getClusterId() {
return this.clusterId;
}
public void setClusterId(String clusterId) {
this.clusterId = clusterId;
if(clusterId != null){
putQueryParameter("ClusterId", clusterId);
}
}
@Override
public Class<DescribeBackupStatusResponse> getResponseClass() {
return DescribeBackupStatusResponse.class;
}
}
|
[
"[email protected]"
] | |
eb2459d749c64e6ab7493802ddf8d622c7f83782
|
e94283089810516f048bd58590036c88588112cb
|
/src/S2321MaximumScoreSplicedArray.java
|
3bdee827612f8a929e9694b80e40da2e3c868bdd
|
[] |
no_license
|
camelcc/leetcode
|
e0839e6267ebda5eef57da065d4adaefecb4b557
|
d982b9e71bc475a599df45d66cf2b78cf017594d
|
refs/heads/master
| 2022-07-19T06:24:49.148849
| 2022-07-10T07:00:34
| 2022-07-10T07:00:34
| 135,386,923
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 797
|
java
|
public class S2321MaximumScoreSplicedArray {
public int maximumsSplicedArray(int[] nums1, int[] nums2) {
int N = nums1.length;
int[] sum1 = new int[nums1.length+1];
int[] sum2 = new int[nums2.length+1];
for (int i = 0; i < N; i++) {
sum1[i+1] = sum1[i] + nums1[i];
sum2[i+1] = sum2[i] + nums2[i];
}
int res = Math.max(sum1[N], sum2[N]);
int max1 = 0, max2 = 0;
for (int i = 0; i < nums1.length; i++) {
int s1 = sum1[N]-sum1[i+1];
int s2 = sum2[N]-sum2[i+1];
max1 = Math.max(max1+nums2[i], sum1[i]+nums2[i]);
max2 = Math.max(max2+nums1[i], sum2[i]+nums1[i]);
res = Math.max(res, Math.max(max1+s1, max2+s2));
}
return res;
}
}
|
[
"[email protected]"
] | |
e8fac58036b6b3c5c22c7ae2011709032e6e6de7
|
2714d16592250bb7e1db4f238290eccfd9579bc3
|
/app/biz/imiqian/src/main/java/com/jinhui/scheduler/biz/imiqian/footer/AmqAccountConfirmFileFooterCallback.java
|
3dcd2b30daf41c0812bfd006d099bb51402b2e96
|
[] |
no_license
|
loroxxx/scheduler-1
|
d47a55527f8bbc9a37b4f780944ffaaf2d6a7339
|
f9d1d7e4d2af7acf3bcfc030035814ef643d4b54
|
refs/heads/master
| 2020-04-13T05:40:02.522097
| 2018-12-24T13:22:26
| 2018-12-24T13:22:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 584
|
java
|
package com.jinhui.scheduler.biz.imiqian.footer;
import com.jinhui.scheduler.biz.imiqian.common.AmqAccountFileConstants;
import org.springframework.batch.item.file.FlatFileFooterCallback;
import java.io.IOException;
import java.io.Writer;
/**
* Created by wsc on 2017/05/21
*/
public class AmqAccountConfirmFileFooterCallback implements FlatFileFooterCallback{
@Override
public void writeFooter(Writer writer) throws IOException {
String end = AmqAccountFileConstants.FILE_ENDFLAG + System.lineSeparator();//文件结束标志
writer.write(end);
}
}
|
[
"[email protected]"
] | |
e854903441ea23b55db117d999d100b03bd89837
|
5b82e2f7c720c49dff236970aacd610e7c41a077
|
/QueryReformulation-master 2/data/processed/BasicFactoryImpl.java
|
cd47e4a1e229f022b5b70a5e803159739f6fd434
|
[] |
no_license
|
shy942/EGITrepoOnlineVersion
|
4b157da0f76dc5bbf179437242d2224d782dd267
|
f88fb20497dcc30ff1add5fe359cbca772142b09
|
refs/heads/master
| 2021-01-20T16:04:23.509863
| 2016-07-21T20:43:22
| 2016-07-21T20:43:22
| 63,737,385
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,271
|
java
|
/***/
package org.eclipse.e4.ui.model.application.ui.basic.impl;
import org.eclipse.e4.ui.model.application.ui.basic.*;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
* @generated
*/
public class BasicFactoryImpl extends EFactoryImpl implements MBasicFactory {
/**
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final BasicFactoryImpl eINSTANCE = init();
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static BasicFactoryImpl init() {
try {
BasicFactoryImpl theBasicFactory = (BasicFactoryImpl) EPackage.Registry.INSTANCE.getEFactory(BasicPackageImpl.eNS_URI);
if (theBasicFactory != null) {
return theBasicFactory;
}
} catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new BasicFactoryImpl();
}
/**
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public BasicFactoryImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch(eClass.getClassifierID()) {
case BasicPackageImpl.PART:
return (EObject) createPart();
case BasicPackageImpl.COMPOSITE_PART:
return (EObject) createCompositePart();
case BasicPackageImpl.INPUT_PART:
return (EObject) createInputPart();
case BasicPackageImpl.PART_STACK:
return (EObject) createPartStack();
case BasicPackageImpl.PART_SASH_CONTAINER:
return (EObject) createPartSashContainer();
case BasicPackageImpl.WINDOW:
return (EObject) createWindow();
case BasicPackageImpl.TRIMMED_WINDOW:
return (EObject) createTrimmedWindow();
case BasicPackageImpl.TRIM_BAR:
return (EObject) createTrimBar();
case BasicPackageImpl.DIALOG:
return (EObject) createDialog();
case BasicPackageImpl.WIZARD_DIALOG:
return (EObject) createWizardDialog();
default:
//$NON-NLS-1$ //$NON-NLS-2$
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MPart createPart() {
PartImpl part = new PartImpl();
return part;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MCompositePart createCompositePart() {
CompositePartImpl compositePart = new CompositePartImpl();
return compositePart;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MInputPart createInputPart() {
InputPartImpl inputPart = new InputPartImpl();
return inputPart;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MPartStack createPartStack() {
PartStackImpl partStack = new PartStackImpl();
return partStack;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MPartSashContainer createPartSashContainer() {
PartSashContainerImpl partSashContainer = new PartSashContainerImpl();
return partSashContainer;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MWindow createWindow() {
WindowImpl window = new WindowImpl();
return window;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MTrimmedWindow createTrimmedWindow() {
TrimmedWindowImpl trimmedWindow = new TrimmedWindowImpl();
return trimmedWindow;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MTrimBar createTrimBar() {
TrimBarImpl trimBar = new TrimBarImpl();
return trimBar;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MDialog createDialog() {
DialogImpl dialog = new DialogImpl();
return dialog;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MWizardDialog createWizardDialog() {
WizardDialogImpl wizardDialog = new WizardDialogImpl();
return wizardDialog;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public BasicPackageImpl getBasicPackage() {
return (BasicPackageImpl) getEPackage();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @deprecated
* @generated
*/
@Deprecated
public static BasicPackageImpl getPackage() {
return BasicPackageImpl.eINSTANCE;
}
}
//BasicFactoryImpl
|
[
"[email protected]"
] | |
84c28f23218021ddb7b63aab3ed559c906132926
|
c6f145685b7d5de6b4d9b9460edc9e52d54b9f81
|
/test_cases/CWE259/CWE259_Hard_Coded_Password_mysqlDataSourceSetPassword/CWE259_Hard_Coded_Password_mysqlDataSourceSetPassword_53c.java
|
aedb687a13ff474ccd09fa0bfd5b3d56a73ee649
|
[] |
no_license
|
Johndoetheone/new-test-repair
|
531ca91dab608abd52eb474c740c0a211ba8eb9f
|
7fa0e221093a60c340049e80ce008e233482269c
|
refs/heads/master
| 2022-04-26T03:44:51.807603
| 2020-04-25T01:10:47
| 2020-04-25T01:10:47
| 258,659,310
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,358
|
java
|
/*
* TEMPLATE GENERATED TESTCASE FILE
* @description
* CWE: 259 Hard Coded Password
* BadSource: hardcodedPassword Set data to a hardcoded string
* Flow Variant: 53 Data flow: data passed as an argument from one method through two others to a fourth; all four functions are in different classes in the same package
* */
package test_cases.CWE259.CWE259_Hard_Coded_Password_mysqlDataSourceSetPassword;
import testcasesupport.*;
import java.util.Arrays;
import java.util.Properties;
import java.util.logging.Level;
import java.io.*;
import java.sql.*;
import com.mysql.cj.jdbc.MysqlDataSource;
public class CWE259_Hard_Coded_Password_mysqlDataSourceSetPassword_53c
{
public void badSink(String data) throws Throwable
{
(new CWE259_Hard_Coded_Password_mysqlDataSourceSetPassword_53d()).badSink(data);
}
public void goodG2BSink(String data) throws Throwable
{
(new CWE259_Hard_Coded_Password_mysqlDataSourceSetPassword_53d()).goodG2BSink(data);
}
public void goodCharSink(char[] data) throws Throwable
{
(new CWE259_Hard_Coded_Password_mysqlDataSourceSetPassword_53d()).goodCharSink(data);
}
public void goodExpectedSink(Properties properties) throws Throwable
{
(new CWE259_Hard_Coded_Password_mysqlDataSourceSetPassword_53d()).goodExpectedSink(properties);
}
}
|
[
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.