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
87115dd3c1ee8ac8352813ee4ad4f196343e3e02
959bf16c61da510056601113319976b9b944c8f7
/Prj16_Albergo/src/controller/Prenotazione.java
a1f428382251722b40a849700a22daf5f3d6b8d7
[]
no_license
maboglia/TSS2020
24da33f89d7595799243f422b23bc9bc7f27f137
0cee461ca1c2a3944f9841041efeafb6e47fea0c
refs/heads/master
2022-07-03T09:56:29.140085
2021-02-20T20:23:37
2021-02-20T20:23:37
216,988,136
2
0
null
2022-06-21T02:54:10
2019-10-23T06:52:19
Java
WINDOWS-1252
Java
false
false
1,682
java
package controller; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import dao.PrenotazioneDAOImpl; /** * Servlet implementation class Prenotazione */ @WebServlet("/prenota") public class Prenotazione extends HttpServlet { private static final long serialVersionUID = 1L; /** * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) */ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub response.getWriter().append("Served at: ").append(request.getContextPath()); } /** * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) */ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { int nGiorni = Integer.parseInt(request.getParameter("nGiorni")); int nPersone = Integer.parseInt(request.getParameter("nPersone")); String nome = request.getParameter("nome"); model.Prenotazione p = new model.Prenotazione(); p.setnGiorni(nGiorni); p.setnPersone(nPersone); p.setNome(nome); response.getWriter().append("Il preventivo di spesa è: " + p.calcolaPreventivo()); PrenotazioneDAOImpl pdi = new PrenotazioneDAOImpl(); pdi.insert(p); for (model.Prenotazione p2 : pdi.getAll()) { System.out.println(p2.getNome() +": "+ p2.calcolaPreventivo()); } } }
[ "mauro.bogliaccino@gmail.com" ]
mauro.bogliaccino@gmail.com
3a59e22749c2c1e0213ba716df7be647ec36d18e
75efe9194b0697754d44859b5ce93567d594d314
/godzilla-common/src/main/java/cn/godzilla/common/serialize/Serializer.java
5fbbce8fcd5872ed0319c629433871cb144cb390
[]
no_license
gybing/godzilla
4040f5684a4340c2db5ade04ef4a953f9b5b3151
d9a8069d03116c1933ba1fa1f34b34fc18e69c8b
refs/heads/master
2021-01-13T15:30:21.747560
2016-03-09T09:20:43
2016-03-09T09:20:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
193
java
package cn.godzilla.common.serialize; public interface Serializer<T> { byte[] serialize(T t) throws SerializationException ; T deserialize(byte[] bytes) throws SerializationException; }
[ "1678907570@qq.com" ]
1678907570@qq.com
2d3b15c3af28decf601a61a237ba0fbada5a3c28
5e3235edf3de262f4d10b9e9e1fcc3bd13d6b8b1
/Code Snippet Repository/Jetty/Jetty3361.java
1106f425b3500e38e640904a027183e7d543a28c
[]
no_license
saber13812002/DeepCRM
3336a244d4852a364800af3181e03e868cf6f9f5
be3e5e50e34a042d5ba7259ff5ff75c08ab32bb9
refs/heads/master
2023-03-16T00:08:06.473699
2018-04-18T05:29:50
2018-04-18T05:29:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
449
java
@Test public void testAllContentListenAfterHandle() throws Exception { handle(()-> { _state.startAsync(null); check(); }); deliver(new TContent("Hello"),EOF_CONTENT); check(); _in.setReadListener(_listener); check("onReadReady true","wake"); wake(); check("onDataAvailable","read 5","read -1","onAllDataRead"); }
[ "Qing.Mi@my.cityu.edu.hk" ]
Qing.Mi@my.cityu.edu.hk
9d5d1852ed44918ae918ee98c47fe7ef2879d490
e43d77c611a6a8a21239831bc2c6c704a5f03615
/app/src/main/java/com/example/xiudd/sese/activity/CartoonActivity.java
9cd5b0596cf3b14ebba777b1a3dd92000855a064
[]
no_license
xyj155/XiuDD
0179a2b7ed8797225c5b4c37c908adaa309f4dc8
9c7ee4150374fb91cf3143c8d096c3c4827d112d
refs/heads/master
2020-04-03T04:57:50.453306
2018-10-28T02:52:09
2018-10-28T02:52:09
153,211,173
0
0
null
null
null
null
UTF-8
Java
false
false
7,285
java
package com.example.xiudd.sese.activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.StaggeredGridLayoutManager; import android.support.v7.widget.Toolbar; import android.view.View; import android.widget.ImageView; import com.bumptech.glide.Glide; import com.bumptech.glide.request.RequestOptions; import com.chad.library.adapter.base.BaseQuickAdapter; import com.chad.library.adapter.base.BaseViewHolder; import com.example.xiudd.sese.MyApp; import com.example.xiudd.sese.R; import com.example.xiudd.sese.base.BaseActivity; import com.example.xiudd.sese.contract.CartoonContract; import com.example.xiudd.sese.fragment.HomeFragment; import com.example.xiudd.sese.fragment.MainPageFragment; import com.example.xiudd.sese.greenDAO.DownloadDAO; import com.example.xiudd.sese.greenDAO.DownloadDAODao; import com.example.xiudd.sese.gson.HotVideoGson; import com.example.xiudd.sese.presenter.CartoonPresenter; import com.example.xiudd.sese.util.GlideRoundTransform; import com.scwang.smartrefresh.layout.SmartRefreshLayout; import com.scwang.smartrefresh.layout.api.RefreshLayout; import com.scwang.smartrefresh.layout.listener.OnRefreshListener; import com.zhouwei.mzbanner.MZBannerView; import com.zhouwei.mzbanner.holder.MZHolderCreator; import com.zhouwei.mzbanner.holder.MZViewHolder; import java.util.ArrayList; import java.util.List; import butterknife.ButterKnife; import butterknife.InjectView; public class CartoonActivity extends BaseActivity implements CartoonContract.View { @InjectView(R.id.toolbar) Toolbar toolbar; @InjectView(R.id.banner) MZBannerView banner; @InjectView(R.id.ry_foreign) RecyclerView ryForeign; @InjectView(R.id.sl_foreign) SmartRefreshLayout slForeign; private CartoonPresenter presenter = new CartoonPresenter(this); @Override public int intiLayout() { return R.layout.activity_cartoon; } @Override public void initView() { ButterKnife.inject(this); StaggeredGridLayoutManager staggeredGridLayoutManager = new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL); //通过布局管理器控制条目排列的顺序 true:反向显示 false:正向显示 staggeredGridLayoutManager.setReverseLayout(false); //设置布局管理器,参数StaggeredGridLayoutManager,可以是RecyclerView实现和StaggeredGridView一样的效果 ryForeign.setLayoutManager(new LinearLayoutManager(CartoonActivity.this)); initToolBar().setToolbarBackIco().setToolbarTitle("成人动漫"); } @Override public void initData() { presenter.setCartoonVideo(); List<String> list = new ArrayList<>(); list.add("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1539755425221&di=c5ab59282e280ba0d658fa8247a27a55&imgtype=0&src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F01106257b673380000018c1bdeb3b6.jpg%40900w_1l_2o_100sh.jpg"); list.add("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1539755425221&di=c5ab59282e280ba0d658fa8247a27a55&imgtype=0&src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F01106257b673380000018c1bdeb3b6.jpg%40900w_1l_2o_100sh.jpg"); list.add("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1539755425221&di=c5ab59282e280ba0d658fa8247a27a55&imgtype=0&src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F01106257b673380000018c1bdeb3b6.jpg%40900w_1l_2o_100sh.jpg"); list.add("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1539755425221&di=c5ab59282e280ba0d658fa8247a27a55&imgtype=0&src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F01106257b673380000018c1bdeb3b6.jpg%40900w_1l_2o_100sh.jpg"); banner.setDelayedTime(5000); banner.setIndicatorVisible(true); banner.setPages(list, new MZHolderCreator() { @Override public MZViewHolder createViewHolder() { return new HomeFragment.BannerViewHolder(); } }); banner.start(); slForeign.autoRefresh(); slForeign.setOnRefreshListener(new OnRefreshListener() { @Override public void onRefresh(RefreshLayout refreshLayout) { presenter.setCartoonVideo(); slForeign.finishRefresh(200); } }); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // TODO: add setContentView(...) invocation } @Override public void showLoadingDialog() { showmDialog("数据加载中"); } @Override public void hideLoadingDialog() { hidemDialog(); } @Override public void loadCartoonVideo(List<HotVideoGson> gsons) { ryForeign.setNestedScrollingEnabled(false); ForeignVideoAdapter adapter = new ForeignVideoAdapter(CartoonActivity.this, gsons); ryForeign.setAdapter(adapter); } private class ForeignVideoAdapter extends BaseQuickAdapter<HotVideoGson, BaseViewHolder> { private Context context; public ForeignVideoAdapter(Context context, @Nullable List<HotVideoGson> data) { super(R.layout.ry_hot_video_item, data); this.context = context; } @Override protected void convert(BaseViewHolder helper, final HotVideoGson item) { helper.setText(R.id.tv_title, item.getVideo_name()) .setOnClickListener(R.id.ll_video, new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(context, VideoPlayerActivity.class); intent.putExtra("url", item.getVideo_url()); intent.putExtra("cover", item.getCover()); intent.putExtra("title", item.getVideo_name()); context.startActivity(intent); } }) .setOnClickListener(R.id.tv_download, new View.OnClickListener() { @Override public void onClick(View v) { DownloadDAODao downloadDAODao = MyApp.getInstances().getDaoSession().getDownloadDAODao(); long time = System.currentTimeMillis() / 1000; DownloadDAO downloadDAO = new DownloadDAO(time, item.getVideo_name(), "", item.getVideo_url(),item.getCover(), 1); downloadDAODao.insert(downloadDAO);//添加一个 startActivity(new Intent(context,UserDownLoadActivity.class)); } }); RequestOptions requestOptions = new RequestOptions() .error(R.drawable.error_pic) .transform(new GlideRoundTransform(context, 5)); Glide.with(context).load(item.getCover()).apply(requestOptions).into((ImageView) helper.getView(R.id.iv_cover)); } } }
[ "1789780841@qq.com" ]
1789780841@qq.com
ed602015562f6e47b65bb495f90ae034f2b407fd
b5502ea9580e882a1c530f6e5914ce090e2d00a6
/experiment/CASSANDRA/cassandra/build/test/classes/org/apache/cassandra/test/microbench/generated/PendingRangesBench_jmh_B2.java
4e089731ff7b386cea9c671d92f209fab6e14a88
[ "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-public-domain" ]
permissive
Lingzhi-Ouyang/Almost-Strong-Consistency-Cassandra
a3fb54a8c35805a6810532719d7a8da99998f997
2b9aa8e78e134fc8811ea6caff3daca1f4a92936
refs/heads/master
2021-07-09T01:13:04.424482
2020-11-03T03:12:13
2020-11-03T03:12:13
205,116,322
2
2
null
null
null
null
UTF-8
Java
false
false
1,630
java
package org.apache.cassandra.test.microbench.generated; import java.util.concurrent.atomic.AtomicIntegerFieldUpdater; public class PendingRangesBench_jmh_B2 extends PendingRangesBench_jmh_B1 { public volatile int setupTrialMutex; public volatile int tearTrialMutex; public final static AtomicIntegerFieldUpdater setupTrialMutexUpdater = AtomicIntegerFieldUpdater.newUpdater(PendingRangesBench_jmh_B2.class, "setupTrialMutex"); public final static AtomicIntegerFieldUpdater tearTrialMutexUpdater = AtomicIntegerFieldUpdater.newUpdater(PendingRangesBench_jmh_B2.class, "tearTrialMutex"); public volatile int setupIterationMutex; public volatile int tearIterationMutex; public final static AtomicIntegerFieldUpdater setupIterationMutexUpdater = AtomicIntegerFieldUpdater.newUpdater(PendingRangesBench_jmh_B2.class, "setupIterationMutex"); public final static AtomicIntegerFieldUpdater tearIterationMutexUpdater = AtomicIntegerFieldUpdater.newUpdater(PendingRangesBench_jmh_B2.class, "tearIterationMutex"); public volatile int setupInvocationMutex; public volatile int tearInvocationMutex; public final static AtomicIntegerFieldUpdater setupInvocationMutexUpdater = AtomicIntegerFieldUpdater.newUpdater(PendingRangesBench_jmh_B2.class, "setupInvocationMutex"); public final static AtomicIntegerFieldUpdater tearInvocationMutexUpdater = AtomicIntegerFieldUpdater.newUpdater(PendingRangesBench_jmh_B2.class, "tearInvocationMutex"); public volatile boolean readyTrial; public volatile boolean readyIteration; public volatile boolean readyInvocation; }
[ "lingzhi.ouyang@outlook.com" ]
lingzhi.ouyang@outlook.com
2a6fd26551af2a0f2eb2b49e0631819383ce866a
4d05782d86c549eeea0e78fdba5b40f1d03862dc
/app/src/main/java/tech/boshu/changjiangshidai/ui/activity/stockinfo/allocatesearch/StockAllocateSearchInteractorImpl.java
be26e302721f3128129bb678e7507b30634390ee
[]
no_license
JETYIN/changjiang
4898367cbff2b1c981aebb4b46df78a57d1d4967
ff16ed18dddc8e197f6b2458e6b71bb8f2941fb2
refs/heads/master
2020-09-22T06:05:35.757974
2016-08-29T14:24:14
2016-08-29T14:24:14
66,849,827
0
0
null
null
null
null
UTF-8
Java
false
false
676
java
package tech.boshu.changjiangshidai.ui.activity.stockinfo.allocatesearch; import tech.boshu.changjiangshidai.libs.activity.BaseInteractorImpl; /** * @author * @version 1.00 2016/1/6 * @(#)StockAllocateSearchInteractorImpl.java */ public class StockAllocateSearchInteractorImpl extends BaseInteractorImpl implements IStockAllocateSearchInteractor { public void chooseInStock() { } public void chooseOutStock() { } public void chooseStart() { } public void chooseEnd() { } public void search() { // Intent intent = new Intent(context, StockAllocateHistoryActivity.class); // context.startActivity(intent); } }
[ "494699974@qq.com" ]
494699974@qq.com
edd03c6ed97f23dec216885f95427630a22ef682
69824fef1d11ee59c47a193075d7402cee410f5d
/jOOQ-test/src/test/java/org/jooq/test/postgres/generatedclasses/tables/records/T_3111Record.java
7a3f47733c2c348cf2beefd527984bbc15d87088
[ "Apache-2.0" ]
permissive
gquintana/jOOQ
5db0590dfbabecc702f61afe6f63cca206472261
4a5105d4054606fb021808169394a118113422b4
refs/heads/master
2020-12-06T23:27:19.420528
2014-08-26T11:33:22
2014-08-26T11:33:22
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,215
java
/** * This class is generated by jOOQ */ package org.jooq.test.postgres.generatedclasses.tables.records; /** * This class is generated by jOOQ. */ @java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class T_3111Record extends org.jooq.impl.UpdatableRecordImpl<org.jooq.test.postgres.generatedclasses.tables.records.T_3111Record> implements org.jooq.Record4<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer>, org.jooq.test.postgres.generatedclasses.tables.interfaces.IT_3111 { private static final long serialVersionUID = -1992016764; /** * Setter for <code>public.t_3111.id</code>. */ public T_3111Record setId(java.lang.Integer value) { setValue(0, value); return this; } /** * Getter for <code>public.t_3111.id</code>. */ @Override public java.lang.Integer getId() { return (java.lang.Integer) getValue(0); } /** * Setter for <code>public.t_3111.inverse</code>. */ public T_3111Record setInverse(java.lang.Integer value) { setValue(1, value); return this; } /** * Getter for <code>public.t_3111.inverse</code>. */ @Override public java.lang.Integer getInverse() { return (java.lang.Integer) getValue(1); } /** * Setter for <code>public.t_3111.bool1</code>. */ public T_3111Record setBool1(java.lang.Integer value) { setValue(2, value); return this; } /** * Getter for <code>public.t_3111.bool1</code>. */ @Override public java.lang.Integer getBool1() { return (java.lang.Integer) getValue(2); } /** * Setter for <code>public.t_3111.bool2</code>. */ public T_3111Record setBool2(java.lang.Integer value) { setValue(3, value); return this; } /** * Getter for <code>public.t_3111.bool2</code>. */ @Override public java.lang.Integer getBool2() { return (java.lang.Integer) getValue(3); } // ------------------------------------------------------------------------- // Primary key information // ------------------------------------------------------------------------- /** * {@inheritDoc} */ @Override public org.jooq.Record1<java.lang.Integer> key() { return (org.jooq.Record1) super.key(); } // ------------------------------------------------------------------------- // Record4 type implementation // ------------------------------------------------------------------------- /** * {@inheritDoc} */ @Override public org.jooq.Row4<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer> fieldsRow() { return (org.jooq.Row4) super.fieldsRow(); } /** * {@inheritDoc} */ @Override public org.jooq.Row4<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer> valuesRow() { return (org.jooq.Row4) super.valuesRow(); } /** * {@inheritDoc} */ @Override public org.jooq.Field<java.lang.Integer> field1() { return org.jooq.test.postgres.generatedclasses.tables.T_3111.T_3111.ID; } /** * {@inheritDoc} */ @Override public org.jooq.Field<java.lang.Integer> field2() { return org.jooq.test.postgres.generatedclasses.tables.T_3111.T_3111.INVERSE; } /** * {@inheritDoc} */ @Override public org.jooq.Field<java.lang.Integer> field3() { return org.jooq.test.postgres.generatedclasses.tables.T_3111.T_3111.BOOL1; } /** * {@inheritDoc} */ @Override public org.jooq.Field<java.lang.Integer> field4() { return org.jooq.test.postgres.generatedclasses.tables.T_3111.T_3111.BOOL2; } /** * {@inheritDoc} */ @Override public java.lang.Integer value1() { return getId(); } /** * {@inheritDoc} */ @Override public java.lang.Integer value2() { return getInverse(); } /** * {@inheritDoc} */ @Override public java.lang.Integer value3() { return getBool1(); } /** * {@inheritDoc} */ @Override public java.lang.Integer value4() { return getBool2(); } /** * {@inheritDoc} */ @Override public T_3111Record value1(java.lang.Integer value) { setId(value); return this; } /** * {@inheritDoc} */ @Override public T_3111Record value2(java.lang.Integer value) { setInverse(value); return this; } /** * {@inheritDoc} */ @Override public T_3111Record value3(java.lang.Integer value) { setBool1(value); return this; } /** * {@inheritDoc} */ @Override public T_3111Record value4(java.lang.Integer value) { setBool2(value); return this; } /** * {@inheritDoc} */ @Override public T_3111Record values(java.lang.Integer value1, java.lang.Integer value2, java.lang.Integer value3, java.lang.Integer value4) { return this; } // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- /** * Create a detached T_3111Record */ public T_3111Record() { super(org.jooq.test.postgres.generatedclasses.tables.T_3111.T_3111); } /** * Create a detached, initialised T_3111Record */ public T_3111Record(java.lang.Integer id, java.lang.Integer inverse, java.lang.Integer bool1, java.lang.Integer bool2) { super(org.jooq.test.postgres.generatedclasses.tables.T_3111.T_3111); setValue(0, id); setValue(1, inverse); setValue(2, bool1); setValue(3, bool2); } }
[ "lukas.eder@gmail.com" ]
lukas.eder@gmail.com
d4acbb8d1f9b374ea9b408cf2188109c507fa19f
23a210a857e1d8cda630f3ad40830e2fc8bb2876
/emp_7.3/emp/txgl/com/montnets/emp/servmodule/txgl/table/TableMobileArea.java
1b63e0b4d91d5da55b8d9940f617420eff8f2009
[]
no_license
zengyijava/shaoguang
415a613b20f73cabf9ab171f3bf64a8233e994f8
5d8ad6fa54536e946a15b5e7e7a62eb2e110c6b0
refs/heads/main
2023-04-25T07:57:11.656001
2021-05-18T01:18:49
2021-05-18T01:18:49
368,159,409
0
0
null
null
null
null
UTF-8
Java
false
false
965
java
package com.montnets.emp.servmodule.txgl.table; import java.util.HashMap; import java.util.Map; public class TableMobileArea { public static final String TABLE_NAME = "A_MOBILEAREA"; private static final String ID = "ID"; private static final String MOBILE = "MOBILE"; private static final String AREACODE = "AREACODE"; private static final String CREATETIME = "CREATETIME"; private static final String SEQUENCE = "SEQ_A_MOBILEAREA"; protected static final Map<String, String> columns = new HashMap<String, String>(); static { columns.put("MobileArea", TABLE_NAME); columns.put("id", ID); columns.put("tableId", ID); columns.put("mobile", MOBILE); columns.put("areacode", AREACODE); columns.put("createtime", CREATETIME); columns.put("sequence", SEQUENCE); }; /** * 返回实体类字段与数据库字段实体类映射的map集合 * * @return */ public static Map<String, String> getORM() { return columns; } }
[ "2461418944@qq.com" ]
2461418944@qq.com
7139972d28bd8165b0f1da3ccba0569ff59ee0a7
cd00813c6f6e40c35754c2fc767ddc263851bd76
/control-garantia/control-garantia-web/src/main/java/cl/aduana/gar/web/controladores/GloTrazaNotificacionCtrl.java
d55de322f5ca6df9da889cf671e506a2c607f4fd
[]
no_license
EdGoll/ilma-garantia
ed25d71fc7268178b9c3c81c79e6c7dd483cf7e7
487d66db26c4b8c5d15921d8919394cb3bf73212
refs/heads/master
2021-08-29T19:50:33.362527
2017-12-14T20:43:12
2017-12-14T20:43:12
114,294,594
0
0
null
null
null
null
UTF-8
Java
false
false
5,034
java
package cl.aduana.gar.web.controladores; import java.io.IOException; import java.util.List; import java.util.Map; import javax.ejb.EJB; import javax.faces.bean.ViewScoped; import javax.faces.context.ExternalContext; import javax.faces.context.FacesContext; import javax.inject.Inject; import javax.inject.Named; import org.apache.log4j.Logger; import org.primefaces.event.SelectEvent; import cl.aduana.gar.web.controladores.paginadores.GlotrazaNotifiDataPagBean; import cl.aduana.gar.web.base.JsfUtils; import cl.aduana.gar.negocio.modelo.entidades.GloTrazaNotificacion; import cl.aduana.gar.negocio.modelo.entidades.Person; import cl.aduana.gar.negocio.modelo.entidades.TrazabilidadServicios; import cl.aduana.gar.negocio.base.BusinessLiveCycleExcepcion; import cl.aduana.gar.negocio.base.qualifiers.Audited; import cl.aduana.gar.negocio.base.qualifiers.LoggedMethod; import cl.aduana.gar.negocio.base.qualifiers.LoggerUtil; import cl.aduana.gar.negocio.servicios.GloTrazaNotificacionServ; /** * Clase de ejemplo que representa un Controlador ManageBean de JSF, el cual se * ubica detras de la vista y gestiona su comportamiento para lel DTO * GloTrazaNotificaciónDTO. * * @author Nombre Apellido * @version 1.0, 31/05/2013 */ @Named @ViewScoped public class GloTrazaNotificacionCtrl { @Inject @LoggerUtil private Logger logger; @EJB private GloTrazaNotificacionServ service; private String categoria; private List<GloTrazaNotificacion> listaGloTrazaNotificacion; private GloTrazaNotificacion gloTrazaNotificacionDTOSelected; private Person personSelected = new Person(); private GloTrazaNotificacion selectedRow; private Person selectedRowPerson; private String msjPanel = "****hola***"; @Inject private JsfUtils jsfUtils; @Inject private GlotrazaNotifiDataPagBean paginatorLazyBean; public List<GloTrazaNotificacion> getListaGloTrazaNotificacionDTO() { return listaGloTrazaNotificacion; } public void setSelectedRow(GloTrazaNotificacion selectedRow) { this.selectedRow = selectedRow; } public GloTrazaNotificacion getSelectedRow() { return this.selectedRow; } public void goConsultar() throws IOException { this.setSessionObject("gloTrazaNotificacionDTOSelected", gloTrazaNotificacionDTOSelected); jsfUtils.goPage("/principal/consultar/" + gloTrazaNotificacionDTOSelected.getId()); } public GloTrazaNotificacion getGloTrazaNotificacionDTOSelected() { return gloTrazaNotificacionDTOSelected; } public String setGloTrazaNotificacionDTOConsultada() { return gloTrazaNotificacionDTOSelected.getCategoria(); } public String getGloTrazaNotificacionDTOConsultada() { return this.categoria; } private Object setSessionObject(String objName, GloTrazaNotificacion obj) { FacesContext ctx = FacesContext.getCurrentInstance(); ExternalContext extCtx = ctx.getExternalContext(); Map<String, Object> sessionMap = extCtx.getSessionMap(); return sessionMap.put(objName, obj); } public GlotrazaNotifiDataPagBean getPaginatorLazyBean() { return paginatorLazyBean; } public void setPaginatorLazyBean(GlotrazaNotifiDataPagBean paginatorLazyBean) { this.paginatorLazyBean = paginatorLazyBean; } public void onRowSelect(SelectEvent event) { gloTrazaNotificacionDTOSelected = (GloTrazaNotificacion) event .getObject(); try { goConsultar(); } catch (IOException e) { logger.error("Destino no encontrado", e); } } public void onRowSelectPerson(SelectEvent event) { personSelected = (Person) event.getObject(); } public List<TrazabilidadServicios> getListaTrazabilidad() throws BusinessLiveCycleExcepcion { return service.findAllTrazavilidad(); } public List<GloTrazaNotificacion> findAll(Integer inicio, Integer cantRegs) { List<GloTrazaNotificacion> trazaNotificacionList = null; try { trazaNotificacionList = service.findAll(inicio, cantRegs); } catch (Exception e) { logger.error("Error al acceder a la capa de Negocio", e); } return trazaNotificacionList; } @LoggedMethod @Audited public GloTrazaNotificacion find(Long id) { GloTrazaNotificacion trazaNotificacion = null; try { trazaNotificacion = service.find(id); } catch (Exception e) { logger.error("Error obtener objeto desde capa de negocio.", e); } return trazaNotificacion; } public List<TrazabilidadServicios> findAllTravilidadTO() throws BusinessLiveCycleExcepcion { return service.findAllTrazavilidad(); } public Integer countRowsOfEntity() throws BusinessLiveCycleExcepcion { return service.countRowsOfEntity(); } public String getMsjPanel() { return msjPanel; } public void setMsjPanel(String msjPanel) { this.msjPanel = msjPanel; } public Person getSelectedRowPerson() { return selectedRowPerson; } public void setSelectedRowPerson(Person selectedRowPerson) { this.selectedRowPerson = selectedRowPerson; } public Person getPersonSelected() { return personSelected; } public void setPersonSelected(Person personSelected) { this.personSelected = personSelected; } }
[ "eduardo.gl@gmail.com" ]
eduardo.gl@gmail.com
8f78ea3da40476a1df80cb9f9b71a2c2c7b3aac7
ef50e50e0b61db62d0476b5b7df3d5f5044a16a9
/Graph_theory/borrowing-money/java/lazy_zc.java
316d3c6752e3ea3047728e99cb89bda16528e306
[]
no_license
saketrule/Research_Project-HackerRank_CheckStyle
09fd6ef3a067926c754af693b13566cc55fe16ae
4334bcbc4620fb94fd3d63034a320756e7233ded
refs/heads/master
2021-01-22T13:03:08.055929
2017-09-12T12:11:19
2017-09-12T12:11:19
102,361,527
0
1
null
null
null
null
UTF-8
Java
false
false
3,443
java
import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */ Scanner in = new Scanner(System.in); int n = in.nextInt(); int m = in.nextInt(); List<Integer> houses = new LinkedList<Integer>(); Map<Integer, Integer> money = new HashMap<Integer, Integer>(); Map<Integer, Set<Integer>> links = new HashMap<Integer, Set<Integer>>(); for(int i = 1; i<=n; i++){ int c = in.nextInt(); houses.add(i); money.put(i, c); } for(int i = 0; i<m; i++){ int a = in.nextInt(); int b = in.nextInt(); if(links.containsKey(a)){ links.get(a).add(b); } else { Set<Integer> nodes = new HashSet<Integer>(); nodes.add(a); nodes.add(b); links.put(a, nodes); } if(links.containsKey(b)){ links.get(b).add(a); } else { Set<Integer> nodes = new HashSet<Integer>(); nodes.add(b); nodes.add(a); links.put(b, nodes); } } List<Integer> unlinkedHouses = new LinkedList<Integer>(houses); unlinkedHouses.removeAll(links.keySet()); int numOfUnlinkedZero = 0; long totalUnlinkedMoney = 0L; for(int unlinkedHouse : unlinkedHouses){ if(money.get(unlinkedHouse) == 0){ numOfUnlinkedZero++; } totalUnlinkedMoney += money.get(unlinkedHouse); } long additionalWays = 1L; if(numOfUnlinkedZero > 0){ additionalWays = (long)Math.pow(2, numOfUnlinkedZero); } Set<Set<Integer>> ways = getNodes(new LinkedList<Integer>(links.keySet()), links); Map<Long, Long> options = new HashMap<Long, Long>(); long max = 0; for(Set<Integer> way : ways){ long totalMoney = 0; //System.out.println(way); for(int node : way){ totalMoney += money.get(node); } if(options.containsKey(totalMoney)){ options.put(totalMoney, options.get(totalMoney)+1L); } else { options.put(totalMoney, 1L); } if(totalMoney > max){ max = totalMoney; } } System.out.println((max + totalUnlinkedMoney) + " " + options.get(max) * additionalWays); } private static Set<Set<Integer>> getNodes(List<Integer> nodeList, Map<Integer, Set<Integer>> links){ Set<Set<Integer>> ways = new HashSet<Set<Integer>>(); ways.add(new HashSet<Integer>()); for(int node : nodeList){ Set<Integer> nodes = new HashSet<Integer>(); nodes.add(node);//pick a node List<Integer> subList = new LinkedList<Integer>(nodeList); subList.removeAll(links.get(node));//remove all linked nodes to work on sublist if(subList.size() == 0){ ways.add(nodes); } else { Set<Set<Integer>> subWays = getNodes(subList, links); for(Set<Integer> subNodes: subWays){ Set<Integer> notes2 = new HashSet<Integer>(nodes); notes2.addAll(subNodes); ways.add(notes2); } } } return ways; } }
[ "anonymoussaketjoshi@gmail.com" ]
anonymoussaketjoshi@gmail.com
1b520412e818faefec391680706fd9047bd99ef3
ca030864a3a1c24be6b9d1802c2353da4ca0d441
/classes8.dex_source_from_JADX/com/facebook/reaction/feed/unitcomponents/partdefinition/ui/genericrecyclerview/SubComponentProps.java
c426a94a4d143a38a7db183323c6110a83def9f3
[]
no_license
pxson001/facebook-app
87aa51e29195eeaae69adeb30219547f83a5b7b1
640630f078980f9818049625ebc42569c67c69f7
refs/heads/master
2020-04-07T20:36:45.758523
2018-03-07T09:04:57
2018-03-07T09:04:57
124,208,458
4
0
null
null
null
null
UTF-8
Java
false
false
503
java
package com.facebook.reaction.feed.unitcomponents.partdefinition.ui.genericrecyclerview; import com.facebook.multirow.api.ViewType; import com.facebook.multirow.api.renderers.SimpleRenderer; /* compiled from: a_place_for_theme */ public class SubComponentProps { public final SimpleRenderer f20191a; public final ViewType f20192b; public SubComponentProps(SimpleRenderer simpleRenderer, ViewType viewType) { this.f20191a = simpleRenderer; this.f20192b = viewType; } }
[ "son.pham@jmango360.com" ]
son.pham@jmango360.com
33ecc229256e5435554a1fe7be276a9d54ffae76
522414f379699b4e91bb8d4bede29707e42fc54d
/src/main/med/com/sooware/med/controller/MpController.java
8b08422392fab2b408fbb3c7cd4e23fbb13c17f1
[]
no_license
pnoker/med
4762d735e2ef42bf1d15efa73aa1b73f8f535af3
bc6e5f6f195038e99ed8c41c52baa5366ae0d4b6
refs/heads/master
2021-01-21T13:33:33.428406
2016-05-18T03:34:12
2016-05-18T04:29:20
46,706,073
0
2
null
null
null
null
UTF-8
Java
false
false
4,902
java
package com.sooware.med.controller; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import com.sooware.med.handler.MpLogHandler; import com.sooware.med.handler.MpTextHandler; import me.chanjar.weixin.common.util.StringUtils; import me.chanjar.weixin.mp.api.WxMpInMemoryConfigStorage; import me.chanjar.weixin.mp.api.WxMpMessageHandler; import me.chanjar.weixin.mp.api.WxMpMessageRouter; import me.chanjar.weixin.mp.api.WxMpService; import me.chanjar.weixin.mp.api.WxMpServiceImpl; import me.chanjar.weixin.mp.bean.WxMpXmlMessage; import me.chanjar.weixin.mp.bean.WxMpXmlOutMessage; @Controller @RequestMapping("/mp") public class MpController { static final Logger logger = LogManager.getLogger(MpController.class); @RequestMapping("/{id}") @ResponseBody public void mp(HttpServletRequest request, HttpServletResponse response, @PathVariable String id) throws IOException { response.setContentType("text/html;charset=utf-8"); response.setStatus(HttpServletResponse.SC_OK); String signature = request.getParameter("signature"); String nonce = request.getParameter("nonce"); String timestamp = request.getParameter("timestamp"); WxMpInMemoryConfigStorage wxMpConfigStorage = new WxMpInMemoryConfigStorage(); // // 设置微信公众号的appid 陈正全测试号 // wxMpConfigStorage.setAppId("wxbb43ea35c0c192a2"); // // 设置微信公众号的appSecret // wxMpConfigStorage.setSecret("d4624c36b6795d1d99dcf0547af5443d"); // // 设置微信公众号的token // wxMpConfigStorage.setToken("168155462c1f4848a1b2ceae2aac0ef5"); // // 设置微信公众号的EncodingAESKey // wxMpConfigStorage.setAesKey("houW3MM2L9hHQtaS0Wta3EOi7Sv4uT2KjxpGvoJXLfN"); // // 设置微信公众号的appid 陈正全 // wxMpConfigStorage.setAppId("wx8fc27d35102c6d24"); // // 设置微信公众号的appSecret // wxMpConfigStorage.setSecret("45e8c9bb8bb03713b62b65161c4c9508"); // // 设置微信公众号的token // wxMpConfigStorage.setToken("168155462c1f4848a1b2ceae2aac0ef5"); // // 设置微信公众号的EncodingAESKey // wxMpConfigStorage.setAesKey("houW3MM2L9hHQtaS0Wta3EOi7Sv4uT2KjxpGvoJXLfN"); // 设置微信公众号的appid 康众医生 wxMpConfigStorage.setAppId("wxd8b1a926887393a1"); // 设置微信公众号的appSecret wxMpConfigStorage.setSecret("b8a172b0b1f540e4b09fa1b549294693"); // 设置微信公众号的token wxMpConfigStorage.setToken("168155462c1f4848a1b2ceae2aac0ef5"); // 设置微信公众号的EncodingAESKey wxMpConfigStorage.setAesKey("houW3MM2L9hHQtaS0Wta3EOi7Sv4uT2KjxpGvoJXLfN"); WxMpService wxMpService = new WxMpServiceImpl(); wxMpService.setWxMpConfigStorage(wxMpConfigStorage); WxMpMessageHandler logHandler = new MpLogHandler(); WxMpMessageHandler textHandler = new MpTextHandler(); WxMpMessageRouter wxMpMessageRouter = new WxMpMessageRouter(wxMpService); wxMpMessageRouter.rule().handler(logHandler).next().rule().async(false).handler(textHandler).end(); if (!wxMpService.checkSignature(timestamp, nonce, signature)) { // 消息签名不正确,说明不是公众平台发过来的消息 response.getWriter().println("非法请求"); return; } String echostr = request.getParameter("echostr"); if (StringUtils.isNotBlank(echostr)) { // 说明是一个仅仅用来验证的请求,回显echostr response.getWriter().println(echostr); return; } String encryptType = StringUtils.isBlank(request.getParameter("encrypt_type")) ? "raw" : request.getParameter("encrypt_type"); if ("raw".equals(encryptType)) { // 明文传输的消息 WxMpXmlMessage inMessage = WxMpXmlMessage.fromXml(request.getInputStream()); WxMpXmlOutMessage outMessage = wxMpMessageRouter.route(inMessage); if (outMessage != null) { response.getWriter().write(outMessage.toXml()); } return; } if ("aes".equals(encryptType)) { // 是aes加密的消息 String msgSignature = request.getParameter("msg_signature"); WxMpXmlMessage inMessage = WxMpXmlMessage.fromEncryptedXml(request.getInputStream(), wxMpConfigStorage, timestamp, nonce, msgSignature); WxMpXmlOutMessage outMessage = wxMpMessageRouter.route(inMessage); if (outMessage != null) { response.getWriter().write(outMessage.toEncryptedXml(wxMpConfigStorage)); } return; } response.getWriter().println("不可识别的加密类型"); return; } }
[ "peter-no@foxmail.com" ]
peter-no@foxmail.com
ea606875853fb989804d62239b547dd446ed6ab4
d18497a1aeec52b51914d1792f9b4dd9a097ca23
/LeetCode/src/string/RansomNote.java
b057824e52893a3b09db1e0b582e5e193138b5b8
[]
no_license
amitmungare/LeetCode
9b1cf7c9f30dacc287847f80dde79b8f21c18a23
26869bb6156bc3c0f4f0b4179e5d34ecbdfd65a3
refs/heads/master
2023-06-20T13:29:59.772337
2021-07-15T17:43:22
2021-07-15T17:43:22
372,259,538
2
0
null
null
null
null
UTF-8
Java
false
false
415
java
package string; public class RansomNote { public boolean canConstruct(String r, String m) { int arr[] =new int[26]; for(char c: m.toCharArray()){ arr[c-'a']++; } for(char c: r.toCharArray()){ if(arr[c-'a']==0){ return false; } arr[c-'a']--; } return true; } }
[ "amungare27@gmail.com" ]
amungare27@gmail.com
818cca2a290b47b31ffc51c7e236312afb7288d0
0af8b92686a58eb0b64e319b22411432aca7a8f3
/large-multiproject/project92/src/main/java/org/gradle/test/performance92_4/Production92_302.java
baf3af4b22e9d53b1611967b140d48a17ec786db
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
305
java
package org.gradle.test.performance92_4; public class Production92_302 extends org.gradle.test.performance17_4.Production17_302 { private final String property; public Production92_302() { this.property = "foo"; } public String getProperty() { return property; } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
d6ba10b0531972073a8ddbee17e94348eaf232c6
954bd8c43237b879fdd659a0f4c207a6ec0da7ea
/java.labs/jdnc-trunk/src/kleopatra/foreign/rasto1968/checklist/ContainerProvider.java
b8007d1c8ca464527b3b5b909b185c3cec2031f1
[]
no_license
bothmagic/marxenter-labs
5e85921ae5b964b9cd58c98602a0faf85be4264e
cf1040e4de8cf4fd13b95470d6846196e1c73ff4
refs/heads/master
2021-01-10T14:15:31.594790
2013-12-20T11:22:53
2013-12-20T11:22:53
46,557,821
2
0
null
null
null
null
UTF-8
Java
false
false
4,606
java
/* * $Id: ContainerProvider.java 3162 2009-06-22 15:55:21Z kschaefe $ * * Copyright 2008 Sun Microsystems, Inc., 4150 Network Circle, * Santa Clara, California 95054, U.S.A. All rights reserved. * * This library 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 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ package rasto1968.checklist; import javax.swing.BorderFactory; import javax.swing.JComponent; import javax.swing.tree.DefaultMutableTreeNode; import org.jdesktop.swingx.renderer.CellContext; import org.jdesktop.swingx.renderer.ComponentProvider; import org.jdesktop.swingx.treetable.TreeTableNode; import rasto1968.checklist.CheckListModel.SelectableNode; /** * A {@code ComponentProvider} for creating a compound rendering display. */ public class ContainerProvider extends ComponentProvider<RenderingPanel> { ComponentProvider<JComponent> mainWrappee; ComponentProvider<JComponent> leadingWrappee; public ContainerProvider(ComponentProvider<? extends JComponent> main, ComponentProvider<? extends JComponent> leading) { setMainWrappee(main); setLeadingWrappee(leading); } @Override public RenderingPanel getRendererComponent(CellContext context) { if (context != null) { rendererComponent.setLeadingDelegate(getComponent(leadingWrappee, context)); // PENDING JW: here the provider is not agnostic of the content // must not adjust the value before giving it to the leading delegate // which is the checkbox. Hmmm ... Object oldValue = adjustContextValue(context); rendererComponent.setMainDelegate(getComponent(mainWrappee, context)); restoreContextValue(context, oldValue); } return super.getRendererComponent(context); } /** * Restores the context value to the old value. * * @param context * the CellContext to restore. * @param oldValue * the value to restore the context to. */ protected void restoreContextValue(CellContext context, Object oldValue) { context.replaceValue(oldValue); } /** * Replace the context's value with the userobject if it's a treenode. * <p> * Subclasses may override but must guarantee to return the original value for restoring. * * @param context * the context to adjust * @return the old context value */ protected Object adjustContextValue(CellContext context) { Object oldValue = context.getValue(); if (oldValue instanceof DefaultMutableTreeNode) { context.replaceValue(((DefaultMutableTreeNode) oldValue).getUserObject()); } else if (oldValue instanceof TreeTableNode) { TreeTableNode node = (TreeTableNode) oldValue; context.replaceValue(node.getUserObject()); } else if (oldValue instanceof SelectableNode) { context.replaceValue(((SelectableNode) oldValue).getUserObject()); } return oldValue; } private JComponent getComponent(ComponentProvider wrappee, CellContext context) { JComponent comp = null; if (wrappee != null) { comp = wrappee.getRendererComponent(context); comp.setBorder(BorderFactory.createEmptyBorder()); } return comp; } @Override protected void configureState(CellContext context) { } @Override protected RenderingPanel createRendererComponent() { return new RenderingPanel(); } @Override protected void format(CellContext context) { } public void setLeadingWrappee(ComponentProvider leading) { this.leadingWrappee = leading; } public void setMainWrappee(ComponentProvider main) { this.mainWrappee = main; } }
[ "markus.taubert@c8aec436-628a-29fb-4c76-4f2700b0ca23" ]
markus.taubert@c8aec436-628a-29fb-4c76-4f2700b0ca23
ec3ae04cd6ffb1dc16c5dc9bfd2f1b89732dc9f7
915a302341b8e7c7484d5d0ae87bfea95288e59f
/EletroVisionDesktop/src/entidades/agendarTarefas/bean/EnumTipoVinculoAgendarTarefas.java
887f69de125f286c87e50922ea140c4e55c2add9
[]
no_license
WesllenSousa/eletrovision
1a561aed32476799173a6e1186dfc0ed7c279882
8cf6c6a32133ae1d2b639f7b6d72b9414a02719e
refs/heads/master
2021-03-24T12:05:18.307627
2018-06-29T19:08:35
2018-06-29T19:08:35
106,296,054
0
0
null
null
null
null
UTF-8
Java
false
false
1,208
java
package entidades.agendarTarefas.bean; /** * * @author hendrio */ public enum EnumTipoVinculoAgendarTarefas { MENSAGEM(0, "Mensagem"), ACIONAMENTO(1, "Acionamento"), CAMERA(2, "Câmera"); private Integer ordem; private String descricao; private EnumTipoVinculoAgendarTarefas(Integer ordem, String descricao){ this.ordem = ordem; this.descricao = descricao; } public String getDescricao() { return descricao; } public void setDescricao(String descricao) { this.descricao = descricao; } public Integer getOrdem() { return ordem; } public void setOrdem(Integer ordem) { this.ordem = ordem; } @Override public String toString() { return this.descricao; } public static EnumTipoVinculoAgendarTarefas parse(int ordem) { EnumTipoVinculoAgendarTarefas enumn = null; for (EnumTipoVinculoAgendarTarefas item : EnumTipoVinculoAgendarTarefas.values()) { if (item.getOrdem() == ordem) { enumn = item; break; } } return enumn; } }
[ "wesllen.wsl@gmail.com" ]
wesllen.wsl@gmail.com
3cdc39284ea4b653e1504996e2f26856c241cf3d
87f7af1e58e6f6e029ef7bc4877f3e78926c6c81
/src/Galaga/Board/Item.java
34c9916a5b25d1ed249073c3bd357ead2337d96e
[]
no_license
d3sd1/uc3m-workarounds
a115942b4fb2c1003bc770134973ed4304b30fee
ada16b68a26c11081db696cca813a28551957661
refs/heads/master
2020-12-12T12:27:39.685148
2020-04-23T21:29:58
2020-04-23T21:29:58
234,124,789
0
0
null
2020-04-23T21:30:00
2020-01-15T16:35:43
HTML
UTF-8
Java
false
false
4,332
java
package Galaga.Board; import GUI.Board; import Galaga.Config; import Utils.Constants; import Utils.Directions; import Utils.Movements; import java.text.DecimalFormat; public abstract class Item { private int x; private int y; private int id; private String image; private boolean moveEnabled; private int direction; private int lifePoints; public int getLifePoints() { return lifePoints; } public void setLifePoints(int lifePoints) { if(lifePoints > Config.MAX_PLAYER_HP) { lifePoints = Config.MAX_PLAYER_HP; } this.lifePoints = lifePoints; this.checkIfHasDied(); } public void removeLifePoint() { this.setLifePoints(this.getLifePoints() - 1); this.checkIfHasDied(); } protected void checkIfHasDied() { if(this.getLifePoints() <= 0) { this.die(); } } protected abstract void die(); public boolean isAlive() { return this.lifePoints > 0; } protected Item(int x, int y, String image) { this.setX(x); this. setY(y); this.setId(Constants.LAST_ITEM_ID++); this.setImage(image); this.setDirection(Directions.DIR_N); this.setLifePoints(1); // 1 HP by default // Initialize item this.register(); } public void setX(int x) { if (x >= 0) { this.x = x; } else { this.x = Constants.DEFAULT_BOARD_WIDTH * 10 + 10; } } public void setY(int y) { if(y >= 0 && Constants.DEFAULT_BOARD_HEIGHT * 10 < y) { this.y = Constants.DEFAULT_BOARD_HEIGHT * 10 - 5; } else if (y >= 0) { this.y = y; } else { this.y = Constants.DEFAULT_BOARD_HEIGHT * 10 - 5; } } public void setId(int id) { this.id = id; } public void setImage(String im) { this.image = im; } public int getX() { return this.x; } public int getY() { return this.y; } public int getId() { return this.id; } public String getImage() { return this.image; } private String getSprite() { DecimalFormat formatter = new DecimalFormat("00"); String parsedDirectionSprite = formatter.format(this.getDirection()); return parsedDirectionSprite; } protected void register() { Board.getBoard().getGameGUI().gb_addSprite(this.getId(), this.getImage().replace("{dir}", this.getSprite()), true); Board.getBoard().getGameGUI().gb_setSpriteVisible(this.getId(), true); this.update(); } protected void update() { this.updateWithimage(this.getSprite()); } protected void updateWithimage(String img) { if(this.isAlive()) { Board.getBoard().getGameGUI().gb_setSpriteImage(this.getId(), this.getImage().replace("{dir}", img)); Board.getBoard().getGameGUI().gb_moveSpriteCoord(this.getId(), this.getX(), this.getY()); } } public boolean move(int direction, int steps) { if(!this.isAlive()) { return false; } // If parameters are wrong we don't move and return false. if (direction < 0 || direction > 16 || steps < 1) { return false; } else { // changing the direction this.setDirection(direction); // calculating the new x and y int nextX = this.getX() + Movements.MOVES[direction][0] * steps, nextY = this.getY() + Movements.MOVES[direction][1] * steps; this.setX(nextX); this.setY(nextY); this.update(); return true; } } public void hide() { Board.getBoard().getGameGUI().gb_setSpriteVisible(this.getId(), false); } public void show() { Board.getBoard().getGameGUI().gb_setSpriteVisible(this.getId(), true); this.update(); } public int getDirection() { return direction; } public void setDirection(int direction) { this.direction = direction; } public boolean isMoveEnabled() { return moveEnabled; } public void setMoveEnabled(boolean moveEnabled) { this.moveEnabled = moveEnabled; } }
[ "andreigarciacuadra@gmail.com" ]
andreigarciacuadra@gmail.com
39f92a06d23b8edc90189c407918b68d8acf68a2
5a13f24c35c34082492ef851fb91d404827b7ddb
/src/main/java/com/alipay/api/domain/AlipayEcoMycarParkingOrderRefundModel.java
1cbc6c4cb47b0d88ff27ac8e61127232959d286e
[]
no_license
featherfly/alipay-sdk
69b2f2fc89a09996004b36373bd5512664521bfd
ba2355a05de358dc15855ffaab8e19acfa24a93b
refs/heads/master
2021-01-22T11:03:20.304528
2017-09-04T09:39:42
2017-09-04T09:39:42
102,344,436
1
0
null
null
null
null
UTF-8
Java
false
false
1,702
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-04-12 11:49:32 */ public class AlipayEcoMycarParkingOrderRefundModel extends AlipayObject { private static final long serialVersionUID = 3893343987853487811L; /** * 代扣时返回的支付宝支付交易流水号,系统唯一 */ @ApiField("order_no") private String orderNo; /** * ISV代扣订单号,ISV唯一 */ @ApiField("out_order_no") private String outOrderNo; /** * 外部申请退款请求流水,ISV唯一 */ @ApiField("out_refund_no") private String outRefundNo; /** * 退款金额,保留小数点后两位 */ @ApiField("refund_fee") private String refundFee; /** * 退款理由 */ @ApiField("refund_reason") private String refundReason; public String getOrderNo() { return this.orderNo; } public void setOrderNo(String orderNo) { this.orderNo = orderNo; } public String getOutOrderNo() { return this.outOrderNo; } public void setOutOrderNo(String outOrderNo) { this.outOrderNo = outOrderNo; } public String getOutRefundNo() { return this.outRefundNo; } public void setOutRefundNo(String outRefundNo) { this.outRefundNo = outRefundNo; } public String getRefundFee() { return this.refundFee; } public void setRefundFee(String refundFee) { this.refundFee = refundFee; } public String getRefundReason() { return this.refundReason; } public void setRefundReason(String refundReason) { this.refundReason = refundReason; } }
[ "zhongj@cdmhzx.com" ]
zhongj@cdmhzx.com
f9161b544c35d896af37137c7eb75db3b8c65a8e
f0cba7b74f4379819fb8d0d171a283479babe884
/src/main/java/com/alipay/api/domain/AlipayUserStepcounterSyncModel.java
de212b2b2838bbd9ab5e4455a16f056f0846aafc
[ "Apache-2.0" ]
permissive
kenhuang/alipay-sdk
48f7b2dfa7566ec95b01c6e68cdefa8321312a5a
2ecf9116a96be52442ce040a15b9d09ef06043f6
refs/heads/master
2021-05-07T05:00:47.286551
2017-11-20T11:31:33
2017-11-20T11:31:33
111,361,108
0
0
null
2017-11-20T04:20:09
2017-11-20T04:20:09
null
UTF-8
Java
false
false
4,048
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, 2017-03-31 11:20:20 */ public class AlipayUserStepcounterSyncModel extends AlipayObject { private static final long serialVersionUID = 5115866325168629517L; /** * 年龄数据。是外部商户系统中录入的用户年龄数据 */ @ApiField("age") private Long age; /** * 卡路里。是商户系统通过用户运动设备(如手环)读取到的用户运动卡路里值 */ @ApiField("calorie") private String calorie; /** * 步数。商户系统通过用户运动设备(如手环)读取到的用户当日步数值 */ @ApiField("count") private Long count; /** * 业务方标识。步数来源的唯一标识,每一个外部商户都会分配一个业务方标识,请使用钉钉联系支付宝小二骁然获取此标识 */ @ApiField("data_provider") private String dataProvider; /** * 运动距离。是外部商户系统从用户设备中读取到的用户步行距离,单位:米 */ @ApiField("distance") private Long distance; /** * 身高数据。是外部商户系统中录入的用户身高数据,单位:cm */ @ApiField("height") private String height; /** * 位置纬度。是商户系统从用户设备中读取到的用户位置纬度,必须使用wgs84坐标集 */ @ApiField("latitude") private String latitude; /** * 位置经度。是商户系统从用户客户端设备中读取到的用户位置经度,必须使用wgs84坐标集 */ @ApiField("longitude") private String longitude; /** * 商户系统的用户uid。是外部商户系统中的用户唯一id */ @ApiField("out_user_id") private String outUserId; /** * 步数更新时间。用户步数上报到商户服务端的时间 */ @ApiField("time") private Date time; /** * 用户时区。外部商户系统从用户运动设备中读取到的设备时区 */ @ApiField("time_zone") private String timeZone; /** * 支付宝用户id。为2088开头id号,需通过alipay.user.userinfo.share接口获取此值 */ @ApiField("user_id") private String userId; /** * 体重数据。是外部商户系统中录入的用户体重数据,单位:kg */ @ApiField("weight") private String weight; public Long getAge() { return this.age; } public void setAge(Long age) { this.age = age; } public String getCalorie() { return this.calorie; } public void setCalorie(String calorie) { this.calorie = calorie; } public Long getCount() { return this.count; } public void setCount(Long count) { this.count = count; } public String getDataProvider() { return this.dataProvider; } public void setDataProvider(String dataProvider) { this.dataProvider = dataProvider; } public Long getDistance() { return this.distance; } public void setDistance(Long distance) { this.distance = distance; } public String getHeight() { return this.height; } public void setHeight(String height) { this.height = height; } public String getLatitude() { return this.latitude; } public void setLatitude(String latitude) { this.latitude = latitude; } public String getLongitude() { return this.longitude; } public void setLongitude(String longitude) { this.longitude = longitude; } public String getOutUserId() { return this.outUserId; } public void setOutUserId(String outUserId) { this.outUserId = outUserId; } public Date getTime() { return this.time; } public void setTime(Date time) { this.time = time; } public String getTimeZone() { return this.timeZone; } public void setTimeZone(String timeZone) { this.timeZone = timeZone; } public String getUserId() { return this.userId; } public void setUserId(String userId) { this.userId = userId; } public String getWeight() { return this.weight; } public void setWeight(String weight) { this.weight = weight; } }
[ "howechiang@gmail.com" ]
howechiang@gmail.com
967a8129c431f6b053fb3f98ab2213ea339abd91
509d3df31f196a19488959349726fa87c9a187cf
/tephra-ctrl/src/main/java/org/lpw/tephra/ctrl/template/Templates.java
12c190631adcd7d6521b204e23d57f45e35cf44f
[ "Apache-2.0" ]
permissive
Su-Git/tephra
b6f4075a0cda0c9239b2cb694d2c434c19669f03
c9d0c10aa31e6b296d2a32c5cbda16c74ea18b45
refs/heads/master
2021-06-09T06:17:45.931630
2016-11-29T07:00:01
2016-11-29T07:00:01
null
0
0
null
null
null
null
UTF-8
Java
false
false
735
java
package org.lpw.tephra.ctrl.template; /** * 模板管理器。用于获取模板实例。 * * @author lpw */ public interface Templates { /** * JSON模板类型。 */ String JSON = "json"; /** * FreeMarker模板类型。 */ String FREEMARKER = "freemarker"; /** * String模板类型。 */ String STRING = "string"; /** * Stream模板类型。 */ String STREAM = "stream"; /** * 获取默认模板实例。 * * @return 默认模板实例。 */ Template get(); /** * 获取指定类型的模板实例。 * * @param type 模板类型。 * @return 模板实例。 */ Template get(String type); }
[ "heisedebaise@hotmail.com" ]
heisedebaise@hotmail.com
3aec93a4e8fcb564af5199101363a83f28769015
a3a06ca27ecad4b4674694387561d97d4920da47
/kie-wb-common-dmn/kie-wb-common-dmn-client/src/test/java/org/kie/workbench/common/dmn/client/widgets/toolbar/DMNGraphProcessorTest.java
87ba844566deb3567d8425922f6d8a8a1742b13f
[ "Apache-2.0" ]
permissive
danielzhe/kie-wb-common
71e777afc9c518c52f307f33230850bacfcb2013
e12a7deeb73befb765939e7185f95b2409715b41
refs/heads/main
2022-08-24T12:01:21.180766
2022-03-29T07:55:56
2022-03-29T07:55:56
136,397,477
1
0
Apache-2.0
2020-08-06T14:50:34
2018-06-06T23:43:53
Java
UTF-8
Java
false
false
4,371
java
/* * Copyright 2019 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.kie.workbench.common.dmn.client.widgets.toolbar; import java.util.Arrays; import java.util.List; import com.google.gwtmockito.GwtMockitoTestRunner; import org.junit.Test; import org.junit.runner.RunWith; import org.kie.workbench.common.dmn.api.definition.model.Decision; import org.kie.workbench.common.dmn.api.definition.model.DecisionService; import org.kie.workbench.common.stunner.core.graph.Graph; import org.kie.workbench.common.stunner.core.graph.Node; import org.kie.workbench.common.stunner.core.graph.content.definition.Definition; import static junit.framework.TestCase.assertEquals; import static junit.framework.TestCase.assertFalse; import static junit.framework.TestCase.assertTrue; import static org.mockito.Mockito.doReturn; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.spy; import static org.mockito.Mockito.when; @RunWith(GwtMockitoTestRunner.class) public class DMNGraphProcessorTest { @Test public void testGetNodes() { final DMNGraphProcessor processor = new DMNGraphProcessor(); final Graph graph = mock(Graph.class); final Decision decision1 = mock(Decision.class); final Decision decision2 = mock(Decision.class); final Node node1 = createNode(decision1, "id1"); final Node node2 = createNode(decision2, "id2"); final List<Node> graphNodes = createGraphNodes(node1, node2); when(graph.nodes()).thenReturn(graphNodes); final Iterable<? extends Node> nodes = processor.getNodes(graph); for (final Node node : nodes) { assertTrue(graphNodes.contains(node)); assertFalse(processor.isReplacedByAnotherNode(node.getUUID())); } } @Test public void testGetNodesWithDecisionServices() { final String childId1 = "id1"; final String childId2 = "id2"; final String dsId = "dsId"; final String decisionNodeId = "decision1Node"; final DMNGraphProcessor processor = spy(new DMNGraphProcessor()); final Graph graph = mock(Graph.class); final Decision decision1 = mock(Decision.class); final Node decisionNode = createNode(decision1, decisionNodeId); final DecisionService ds = mock(DecisionService.class); final Node dsNode = createNode(ds, dsId); final Decision child1 = mock(Decision.class); final Node ch1 = createNode(child1, childId1); final Decision child2 = mock(Decision.class); final Node ch2 = createNode(child2, childId2); final List<Node> children = Arrays.asList(ch1, ch2); doReturn(children).when(processor).getChildNodes(dsNode); final List<Node> graphNodes = createGraphNodes(dsNode, decisionNode); when(graph.nodes()).thenReturn(graphNodes); final List<Node> nodes = (List<Node>) processor.getNodes(graph); assertEquals(2, nodes.size()); assertTrue(nodes.contains(dsNode)); assertTrue(nodes.contains(decisionNode)); assertTrue(processor.isReplacedByAnotherNode(childId1)); assertEquals(dsId, processor.getReplaceNodeId(childId1)); assertTrue(processor.isReplacedByAnotherNode(childId2)); assertEquals(dsId, processor.getReplaceNodeId(childId2)); } private List<Node> createGraphNodes(final Node... nodes) { return Arrays.asList(nodes); } private Node createNode(final Object definition, final String nodeId) { final Node node = mock(Node.class); when(node.getUUID()).thenReturn(nodeId); final Definition content = mock(Definition.class); when(node.getContent()).thenReturn(content); when(content.getDefinition()).thenReturn(definition); return node; } }
[ "manstis@users.noreply.github.com" ]
manstis@users.noreply.github.com
a9ebd5b7dc8858da487bf056ac18289991376c76
56e87f1d1ea499318c5fcdb4594f0efd9cfceebb
/repository/src/main/java/oasis/names/tc/emergency/edxl/ct/_1/WeatherObscurationType.java
f65c9f5fdbe4fde7e86fde5dfffd19c726014e6d
[]
no_license
vergetid/impress
7da9353b65bc324bb58c6694747925ab92bac104
dd207cabeff4af8449245d96d276ceb7a71ba14d
refs/heads/master
2020-05-21T12:34:54.412796
2017-06-20T13:28:14
2017-06-20T13:28:14
55,222,896
0
0
null
2017-03-31T13:00:22
2016-04-01T10:06:44
Java
UTF-8
Java
false
false
2,141
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2016.04.01 at 06:02:17 PM EEST // package oasis.names.tc.emergency.edxl.ct._1; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlEnumValue; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for WeatherObscurationType. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * &lt;simpleType name="WeatherObscurationType"> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;enumeration value="Mist"/> * &lt;enumeration value="Sand"/> * &lt;enumeration value="Smoke"/> * &lt;enumeration value="Haze"/> * &lt;enumeration value="Volcanic Ash"/> * &lt;enumeration value="Spray"/> * &lt;enumeration value="Widespread Dust"/> * &lt;enumeration value="Other"/> * &lt;/restriction> * &lt;/simpleType> * </pre> * */ @XmlType(name = "WeatherObscurationType") @XmlEnum public enum WeatherObscurationType { @XmlEnumValue("Mist") MIST("Mist"), @XmlEnumValue("Sand") SAND("Sand"), @XmlEnumValue("Smoke") SMOKE("Smoke"), @XmlEnumValue("Haze") HAZE("Haze"), @XmlEnumValue("Volcanic Ash") VOLCANIC_ASH("Volcanic Ash"), @XmlEnumValue("Spray") SPRAY("Spray"), @XmlEnumValue("Widespread Dust") WIDESPREAD_DUST("Widespread Dust"), @XmlEnumValue("Other") OTHER("Other"); private final String value; WeatherObscurationType(String v) { value = v; } public String value() { return value; } public static WeatherObscurationType fromValue(String v) { for (WeatherObscurationType c: WeatherObscurationType.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); } }
[ "vergetid@ubitech.eu" ]
vergetid@ubitech.eu
e7988c4139e3872c0fd215bba692c37133624287
8dadce08a76ce387608951673fc0364feaa9a06a
/flexodesktop/modules/flexovieweditor/src/main/java/org/openflexo/ve/VECst.java
e1e55c6a394319c955e38bc22f631aaa1a516974
[]
no_license
melbarra/openflexo
b8e1a97d73a9edebad198df4e776d396ae8e9a09
9b2d8efe1982ec8f64dee8c43a2e7207594853f3
refs/heads/master
2021-01-24T02:22:47.141424
2012-03-12T00:15:57
2012-03-12T00:15:57
2,756,256
0
0
null
null
null
null
UTF-8
Java
false
false
2,293
java
/* * (c) Copyright 2010-2011 AgileBirds * * This file is part of OpenFlexo. * * OpenFlexo 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. * * OpenFlexo 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 OpenFlexo. If not, see <http://www.gnu.org/licenses/>. * */ package org.openflexo.ve; import java.io.File; import org.openflexo.toolbox.FileResource; /** * Constants used by the OE module. * * @author sylvain */ public class VECst { public static final String DEFAULT_OE_BROWSER_WINDOW_TITLE = "ontology_browser"; public static final int DEFAULT_OE_BROWSER_WINDOW_WIDTH = 300; public static final int DEFAULT_OE_BROWSER_WINDOW_HEIGHT = 250; public static final int DEFAULT_MAINFRAME_WIDTH = 850; public static final int DEFAULT_MAINFRAME_HEIGHT = 600; public static final int PALETTE_DOC_SPLIT_LOCATION = 300; // General public static File ONTOLOGY_VIEW_FIB = new FileResource("Fib/OntologyView.fib"); // Shema edition public static File ADD_VIEW_DIALOG_FIB = new FileResource("Fib/Dialog/AddViewDialog.fib"); public static File DELETE_VIEW_ELEMENTS_DIALOG_FIB = new FileResource("Fib/Dialog/DeleteViewElementsDialog.fib"); // Ontology edition public static File CREATE_ONTOLOGY_CLASS_DIALOG_FIB = new FileResource("Fib/Dialog/CreateOntologyClassDialog.fib"); public static File CREATE_ONTOLOGY_INDIVIDUAL_FIB = new FileResource("Fib/Dialog/CreateOntologyIndividualDialog.fib"); public static File DELETE_ONTOLOGY_OBJECTS_DIALOG_FIB = new FileResource("Fib/Dialog/DeleteOntologyObjectsDialog.fib"); public static File CREATE_DATA_PROPERTY_DIALOG_FIB = new FileResource("Fib/Dialog/CreateDataPropertyDialog.fib"); public static File CREATE_OBJECT_PROPERTY_DIALOG_FIB = new FileResource("Fib/Dialog/CreateObjectPropertyDialog.fib"); }
[ "sylvain@openflexo.org" ]
sylvain@openflexo.org
233f6f186511d664d2aed7b06a4e642eaf51107d
98779c054da77b139a91357894ff1e9fa63ea802
/be/java/basic/code4/SwitchDemo3.java
615a896128153ebeaea80e29fa0f671c06100e98
[]
no_license
pengfen/learn17
0e384d700426bfedd732c01bcd0665fd897f0c97
744a82908c9921365a4f7c983d3f3d0651944224
refs/heads/master
2021-09-16T05:41:25.889434
2018-06-17T10:06:14
2018-06-17T10:06:14
112,165,893
2
2
null
null
null
null
WINDOWS-1252
Java
false
false
470
java
package com.test; /* ¿´³ÌÐòд½á¹û */ class SwitchDemo3 { public static void main(String[] args) { int x = 2; int y = 3; switch(x){ default: y++; break; case 3: y++; case 4: y++; } System.out.println("y="+y); System.out.println("---------------"); int a = 2; int b = 3; switch(a){ default: b++; case 3: b++; case 4: b++; } System.out.println("b="+b); } }
[ "caopeng8787@163.com" ]
caopeng8787@163.com
f8a9709f0a475da8bc67c8e8118fe6a8176fe2db
a59e09c729fd3b6033892bed58874718dc249add
/com.appjangle.android.localserver/src/com/appjangle/i110/data/cases/Case8Pandora.java
ad2ac151b7322949a6f2a2f34be71bba18b815e8
[]
no_license
mxro/nextweb-local-android
d510f5ea977ba0dbff83cc1d19617cfd084c5bb9
65e3d196375943edb1dfd4ba774e378976416dde
refs/heads/master
2020-04-08T06:42:36.982598
2013-06-18T00:27:35
2013-06-18T00:27:35
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,074
java
package com.appjangle.i110.data.cases; import io.nextweb.Query; import com.appjangle.i110.data.Types; public class Case8Pandora { public static void injectData(Types t, Query c) { // <!-- one.download https://u1.linnk.it/qc8sbw/usr/apps/textsync/files/case8-pandora --> c.append("Pandora", "./brandName").append(t.brandName); c.append("To play only music people will love", "./vision").append(t.vision); c.append("http://cdn.thetechjournal.com/wp-content/uploads/2012/10/pandora.jpg", "./brandImage").append(t.brandImage); c.append("http://www.youtube.com/watch?v=NVYHq3M1ByI", "./brandVideo").append(t.brandVideo); c.append("Internet Radio", "./industry").append(t.industry); c.append("costLeadership", "./correctStrategy").append(t.correctStrategy); c.append("Pandora targets everyone who listens to music", "./competitiveScope").append(t.competitiveScope); c.append("Pandora offers their service for free", "./costStrategy").append(t.costStrategy); c.append("high:low:high:high:high", "./correctIndustryStructure").append(t.correctIndustryStructure); c.append("There are lots of alternatives to listening to music such as watching TV, Movies, browsing the web etc.", "./threatOfSubsitutes").append(t.threatOfSubsitutes); c.append("The music labels have attempted to shut down Pandora and failed so I would suggest their power is low. The Internet infrastructure suppliers have little power as there are many of them in the market.", "./supplierPower").append(t.supplierPower); c.append("There are quite a few companies in the Internet radio space and they all offer their core service for free.", "./rivalry").append(t.rivarly); c.append("Buyers can very easily switch to a rival provider. Pandora attempts to reduce their power by using IT to make sure that customers only get music they love.", "./buyerPower").append(t.buyerPower); c.append("There are no major impediments to starting up an online radio business.", "./newEntrants").append(t.newEntrants); c.append("afterSales,makeProjectOrService,technologyDevelopment", "./correctValueChainActivites").append(t.correctValueChainActivites); c.append("Service After The Sale is critical to Pandora to continually provide only the music that listeners love.\n"+ "Make the Product or Service is important as they need to deliver the music that listeners love when they want it.\n"+ "Technology Development is vital in that they use their music selection algorithm as their key competitive advantage over their competitors. ", "./valueChainJustification").append(t.valueChainJustification); c.append("Acquire new music process", "./processName").append(t.processName); c.append("Pandora has to continually add new and existing songs to it's music database for analysis and distribution to listeners.", "./importantProcess").append(t.importantProcess); c.append("Add songs to database:Analyse songs:Generate song profiles", "./processSteps").append(t.processSteps); c.append("S1:S2:S3", "./systems").append(t.systems); c.append("O1:O2:O3", "./orgUnits").append(t.orgUnits); // <!-- one.end --> } }
[ "mxro@nowhere.com" ]
mxro@nowhere.com
c96e8a953aa87b1bc626fe0a622259347c937088
473b76b1043df2f09214f8c335d4359d3a8151e0
/benchmark/bigclonebenchdata_completed/1949890.java
77b9f2fa0fd1340d14fd9bf4295d8d5203a4f932
[]
no_license
whatafree/JCoffee
08dc47f79f8369af32e755de01c52d9a8479d44c
fa7194635a5bd48259d325e5b0a190780a53c55f
refs/heads/master
2022-11-16T01:58:04.254688
2020-07-13T20:11:17
2020-07-13T20:11:17
null
0
0
null
null
null
null
UTF-8
Java
false
false
995
java
class c1949890 { // @Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException { req.setCharacterEncoding("UTF-8"); resp.setContentType(req.getContentType()); MyHelperClass IOUtils = new MyHelperClass(); IOUtils.copy(req.getReader(), resp.getWriter()); } } // Code below this line has been added to remove errors class MyHelperClass { public MyHelperClass copy(MyHelperClass o0, MyHelperClass o1){ return null; }} class HttpServletRequest { public MyHelperClass setCharacterEncoding(String o0){ return null; } public MyHelperClass getReader(){ return null; } public MyHelperClass getContentType(){ return null; }} class HttpServletResponse { public MyHelperClass getWriter(){ return null; } public MyHelperClass setContentType(MyHelperClass o0){ return null; }} class IOException extends Exception{ public IOException(String errorMessage) { super(errorMessage); } }
[ "piyush16066@iiitd.ac.in" ]
piyush16066@iiitd.ac.in
400f5df8f50c66539b6d24b017a813c1ab360836
89db51eee43cea32efffb9a5bdaed6808314684f
/CN1Auth0Test/lib/impl/native/android/com/codename1/auth0/LockNativeInterfaceImpl.java
1326360b82efac9902b3b978845e886148674a81
[]
no_license
chen-fishbein/auth0-codenameone
ed7af5364ab916bc91d2ed7a6e9e8fdd557a11cc
aaae4c3b1af0893d89b3a2fd0edd4c9d7dfc6d71
refs/heads/master
2021-01-01T05:45:00.735511
2016-06-03T06:27:13
2016-06-03T06:27:13
58,559,273
1
1
null
2016-06-03T16:34:16
2016-05-11T15:53:55
Java
UTF-8
Java
false
false
2,228
java
package com.codename1.auth0; import com.codename1.impl.android.*; import com.auth0.lock.Lock; import com.auth0.lock.LockContext; import com.auth0.lock.LockActivity; import com.auth0.core.*; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import com.codename1.processing.Result; import android.support.v4.content.LocalBroadcastManager; import static com.auth0.lock.Lock.AUTHENTICATION_ACTION; public class LockNativeInterfaceImpl { private LocalBroadcastManager broadcastManager; private BroadcastReceiver authenticationReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { com.auth0.core.UserProfile p = intent.getParcelableExtra(Lock.AUTHENTICATION_ACTION_PROFILE_PARAMETER); Token token = intent.getParcelableExtra(Lock.AUTHENTICATION_ACTION_TOKEN_PARAMETER); java.util.Map m = p.getExtraInfo(); Result res = Result.fromContent(m); String extra = res.toString(); LockManager.loggedIn(token.getAccessToken(), p.getId(), p.getName(), p.getNickname(), p.getEmail(), p.getPictureURL(), extra); } }; private boolean initialized = false; public void showLockScreen() { if (!initialized) { initialized = true; init(); } } public boolean isSupported() { return true; } private void init() { LockContext.configureLock( new Lock.Builder() .loadFromApplication(AndroidNativeUtil.getActivity().getApplication()) .closable(true) ); broadcastManager = LocalBroadcastManager.getInstance(AndroidNativeUtil.getActivity()); broadcastManager.registerReceiver(authenticationReceiver, new IntentFilter(AUTHENTICATION_ACTION)); Intent intent = new Intent(AndroidNativeUtil.getActivity(), LockActivity.class); AndroidNativeUtil.startActivityForResult(intent, new IntentResultListener(){ public void onActivityResult (int requestCode, int resultCode, Intent data){ } }); } }
[ "steve@weblite.ca" ]
steve@weblite.ca
16d2db0a18507a685a67c687e0418cdc0016daad
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/4/4_de4b945cfeb32622e208821078604ae6fbd7defa/Prefs/4_de4b945cfeb32622e208821078604ae6fbd7defa_Prefs_s.java
37ebd6836f5543a1ac5678be73a492255641d44c
[]
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
4,074
java
package org.fife.tmm; import java.awt.Dimension; import java.awt.Point; import java.io.File; import java.io.IOException; import java.util.HashMap; import java.util.prefs.Preferences; import javax.swing.UIManager; import org.fife.ui.app.GUIApplicationPreferences; /** * Preferences for TokenMakerMaker. * * @author Robert Futrell * @version 1.0 */ public class Prefs extends GUIApplicationPreferences { public File javac; public File outputDir; public File classOutputDir; private static final String CLASS_OUTPUT_DIR = "classOutputDir"; private static final String JAVAC_LOC = "javacLoc"; private static final String SOURCE_OUTPUT_DIR = "sourceOutputDir"; private static final String DEFAULT_OUTPUT_DIR = System.getProperty("java.io.tmpdir"); private static final String DEFAULT_CLASS_OUTPUT_DIR = DEFAULT_OUTPUT_DIR; public Prefs() { setDefaults(); } public static Prefs createPreferences(TokenMakerMaker tmm) { Prefs prefs = new Prefs(); // "Common" preferences prefs.location = tmm.getLocation(); prefs.location.translate(15,15); prefs.size = tmm.isMaximized() ? new Dimension(-1,-1) : tmm.getSize(); prefs.lookAndFeel = UIManager.getLookAndFeel().getClass().getName(); prefs.toolbarVisible = tmm.getToolBarVisible(); prefs.statusBarVisible = tmm.getStatusBarVisible(); prefs.language = tmm.getLanguage(); prefs.javac = tmm.getJavac(); prefs.outputDir = tmm.getSourceOutputDirectory(); prefs.classOutputDir = tmm.getClassOutputDirectory(); return prefs; } private File getDefaultJavac() { String javaHome = System.getProperty("java.home"); // First, see if we're running directly from a JDK. String loc = "bin/javac"; if (File.separatorChar=='\\') { loc += ".exe"; } File javac = new File(javaHome, loc); if (!javac.isFile()) { // Next, check if we're in a JRE inside a JDK. javac = new File(javaHome, "../" + loc); if (!javac.isFile()) { javac = null; } } if (javac.isFile()) { try { javac = javac.getCanonicalFile(); } catch (IOException ioe) { ioe.printStackTrace(); } } return javac; } public static GUIApplicationPreferences loadPreferences() { Prefs prefs = new Prefs(); try { // Get all properties associated with the RText class. Preferences prefs2 = Preferences.userNodeForPackage(TokenMakerMaker.class); loadCommonPreferences(prefs, prefs2); String dir = prefs2.get(SOURCE_OUTPUT_DIR, DEFAULT_OUTPUT_DIR); prefs.outputDir = new File(dir); dir = prefs2.get(CLASS_OUTPUT_DIR, DEFAULT_CLASS_OUTPUT_DIR); prefs.classOutputDir = new File(dir); } catch (RuntimeException re) { // FindBugs throw re; } catch (Exception e) { e.printStackTrace(); prefs.setDefaults(); } return prefs; } @Override public void savePreferences(Object tmm) { Preferences prefs = Preferences.userNodeForPackage(TokenMakerMaker.class); saveCommonPreferences(prefs); prefs.put(JAVAC_LOC, javac==null ? "" : javac.getAbsolutePath()); prefs.put(CLASS_OUTPUT_DIR, classOutputDir.getAbsolutePath()); prefs.put(SOURCE_OUTPUT_DIR, outputDir.getAbsolutePath()); } @SuppressWarnings("unchecked") @Override protected void setDefaults() { // TODO: This should be done in GUIApplicationPreferences and we should // have to call super.setDefaults() location = new Point(); size = new Dimension(-1, -1); // TODO: "null" size should default to "pack" behavior lookAndFeel = UIManager.getSystemLookAndFeelClassName(); toolbarVisible = true; statusBarVisible = true; language = "en"; accelerators = new HashMap(); javac = getDefaultJavac(); outputDir = new File(DEFAULT_OUTPUT_DIR); classOutputDir = new File(DEFAULT_CLASS_OUTPUT_DIR); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
18bfa21e4c4ebab7d7f1abcc7c1a3d76adcfe8c1
5b63ea99d197808c2d80ea737e12f508f819bc72
/src/test/java/com/hushunjian/test/NumberTest.java
37273fd0b15882ce84f2942fcd9d01f511e7a873
[]
no_license
hsjhsjhsj/hsj
8c4832f8afb04a4cf65a8a50a37cb623ae12dbf7
f92037d5ac192d91a131efae37a7f17b4fca732f
refs/heads/master
2022-10-22T16:05:00.150857
2020-07-25T08:26:53
2020-07-25T08:26:53
120,415,362
4
0
null
2022-10-12T19:51:34
2018-02-06T07:04:34
Java
UTF-8
Java
false
false
1,893
java
package com.hushunjian.test; import java.math.BigDecimal; public class NumberTest { private static final int BASE = 1024; public static void main(String[] args) { String a = "2222222222222"; Long b = Long.valueOf(a); System.out.println(bytes2kb(b)); System.out.println(converByteSize(b)); } public static String bytes2kb(long bytes) { BigDecimal filesize = new BigDecimal(bytes); BigDecimal gibibyte = new BigDecimal(1024*1024*1024); float returnValue = filesize.divide(gibibyte, 2, BigDecimal.ROUND_UP).floatValue(); if(returnValue > 10) { return (returnValue + "GB"); } else { BigDecimal mebibyte = new BigDecimal(1024*1024); returnValue = filesize.divide(mebibyte, 2, BigDecimal.ROUND_UP).floatValue(); if(returnValue > 1) { return (returnValue + "MB"); } else { BigDecimal kibibyte = new BigDecimal(1024); returnValue = filesize.divide(kibibyte, 2,BigDecimal.ROUND_UP).floatValue(); return (returnValue + "KB"); } } } public static String converByteSize(long byteSize) { BigDecimal byteNum = new BigDecimal(byteSize); BigDecimal divisor = BigDecimal.ONE; String unit; float value; if (byteSize < BASE){ unit = "BT"; }else if (byteSize < BASE * BASE){ divisor = new BigDecimal(BASE); unit = "KB"; }else if(byteSize < BASE * BASE * BASE) { unit = "MB"; divisor = new BigDecimal(BASE * BASE); }else { unit = "GB"; divisor = new BigDecimal(BASE * BASE * BASE); } value = byteNum.divide(divisor, 2, BigDecimal.ROUND_UP).floatValue(); return value + unit; } }
[ "hushunjian950420@163.com" ]
hushunjian950420@163.com
076a6da1ce8fb41240614fb82b1d2727f80448f5
2e3d120be21f5a0d3eb8c73512ff0599b452d30d
/src/com/ajia/Test3.java
dc2b2367d1c76847b2b0d11f2252984e073d8c1c
[]
no_license
lyouyue/yy
f519e4db0aa076b8692c9c16aacbf7975a252ad1
958994007d0b92db0dcb558738a99f68705d7c9a
refs/heads/master
2021-03-27T14:28:50.725383
2018-02-28T11:42:57
2018-02-28T11:42:57
123,273,730
0
0
null
null
null
null
GB18030
Java
false
false
1,120
java
package com.ajia; public class Test3 { public static void main(String[] args) { /** * 方法的重载 * 方法名称相同,参数个数,参数类型不同,返回类型不同 * 叫做方法的重载。 */ print(); print(1); print(1.1); print(1.2,2); print(12.0,12.1); } public static void print(){ System.out.println("天涯犹在,不诉薄凉"); } public static void print(int a){ System.out.println("凡是过去,皆为序章,你现在气质里," + "藏着你走过的路,读过的书,爱过的人"); } public static void print(double a){ System.out.println("转山转水转佛塔,一路藽见,不为修佛," + "只愿入住布达拉宫,寻觅雪域中最大王,只愿流浪在拉萨街头," + "和你一样,我是世间最美情郎"); } public static void print(double a,double b){ System.out.println("因为遇见你很晚,所以决定爱你很久"); } public static double print(double a,int b){ System.out.println("世间安得双全法,不负如来不负卿"); return 0.0; } }
[ "136861916@qq.com" ]
136861916@qq.com
31e782c80716beecd4ea895cff5c5c9f449e0000
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XRENDERING-481-1-14-NSGA_II-WeightedSum:TestLen:CallDiversity/org/xwiki/rendering/internal/macro/toc/TreeParametersBuilder_ESTest.java
a634b2d4fd65a98c433c6a0964533babe2569b39
[]
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
587
java
/* * This file was automatically generated by EvoSuite * Thu Apr 02 10:57:23 UTC 2020 */ package org.xwiki.rendering.internal.macro.toc; 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 TreeParametersBuilder_ESTest extends TreeParametersBuilder_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
de2365a428a272e776e18a1a2392c1ccaf52f50c
6d2fe29219cbdd28b64a3cff54c3de3050d6c7be
/plc4j/drivers/bacnet/src/main/generated/org/apache/plc4x/java/bacnetip/readwrite/BACnetConstructedDataTotalRecordCount.java
c136febe1a01f0859aa1239dcb565a8d58038a86
[ "Apache-2.0", "Unlicense" ]
permissive
siyka-au/plc4x
ca5e7b02702c8e59844bf45ba595052fcda24ac8
44e4ede3b4f54370553549946639a3af2c956bd1
refs/heads/develop
2023-05-12T12:28:09.037476
2023-04-27T22:55:23
2023-04-27T22:55:23
179,656,431
4
3
Apache-2.0
2023-03-02T21:19:18
2019-04-05T09:43:27
Java
UTF-8
Java
false
false
7,682
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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.plc4x.java.bacnetip.readwrite; import static org.apache.plc4x.java.spi.codegen.fields.FieldReaderFactory.*; import static org.apache.plc4x.java.spi.codegen.fields.FieldWriterFactory.*; import static org.apache.plc4x.java.spi.codegen.io.DataReaderFactory.*; import static org.apache.plc4x.java.spi.codegen.io.DataWriterFactory.*; import static org.apache.plc4x.java.spi.generation.StaticHelper.*; import java.time.*; import java.util.*; import org.apache.plc4x.java.api.exceptions.*; import org.apache.plc4x.java.api.value.*; import org.apache.plc4x.java.spi.codegen.*; import org.apache.plc4x.java.spi.codegen.fields.*; import org.apache.plc4x.java.spi.codegen.io.*; import org.apache.plc4x.java.spi.generation.*; // Code generated by code-generation. DO NOT EDIT. public class BACnetConstructedDataTotalRecordCount extends BACnetConstructedData implements Message { // Accessors for discriminator values. public BACnetObjectType getObjectTypeArgument() { return null; } public BACnetPropertyIdentifier getPropertyIdentifierArgument() { return BACnetPropertyIdentifier.TOTAL_RECORD_COUNT; } // Properties. protected final BACnetApplicationTagUnsignedInteger totalRecordCount; // Arguments. protected final Short tagNumber; protected final BACnetTagPayloadUnsignedInteger arrayIndexArgument; public BACnetConstructedDataTotalRecordCount( BACnetOpeningTag openingTag, BACnetTagHeader peekedTagHeader, BACnetClosingTag closingTag, BACnetApplicationTagUnsignedInteger totalRecordCount, Short tagNumber, BACnetTagPayloadUnsignedInteger arrayIndexArgument) { super(openingTag, peekedTagHeader, closingTag, tagNumber, arrayIndexArgument); this.totalRecordCount = totalRecordCount; this.tagNumber = tagNumber; this.arrayIndexArgument = arrayIndexArgument; } public BACnetApplicationTagUnsignedInteger getTotalRecordCount() { return totalRecordCount; } public BACnetApplicationTagUnsignedInteger getActualValue() { return (BACnetApplicationTagUnsignedInteger) (getTotalRecordCount()); } @Override protected void serializeBACnetConstructedDataChild(WriteBuffer writeBuffer) throws SerializationException { PositionAware positionAware = writeBuffer; boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get(); int startPos = positionAware.getPos(); writeBuffer.pushContext("BACnetConstructedDataTotalRecordCount"); // Simple Field (totalRecordCount) writeSimpleField( "totalRecordCount", totalRecordCount, new DataWriterComplexDefault<>(writeBuffer)); // Virtual field (doesn't actually serialize anything, just makes the value available) BACnetApplicationTagUnsignedInteger actualValue = getActualValue(); writeBuffer.writeVirtual("actualValue", actualValue); writeBuffer.popContext("BACnetConstructedDataTotalRecordCount"); } @Override public int getLengthInBytes() { return (int) Math.ceil((float) getLengthInBits() / 8.0); } @Override public int getLengthInBits() { int lengthInBits = super.getLengthInBits(); BACnetConstructedDataTotalRecordCount _value = this; boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get(); // Simple field (totalRecordCount) lengthInBits += totalRecordCount.getLengthInBits(); // A virtual field doesn't have any in- or output. return lengthInBits; } public static BACnetConstructedDataBuilder staticParseBACnetConstructedDataBuilder( ReadBuffer readBuffer, Short tagNumber, BACnetObjectType objectTypeArgument, BACnetPropertyIdentifier propertyIdentifierArgument, BACnetTagPayloadUnsignedInteger arrayIndexArgument) throws ParseException { readBuffer.pullContext("BACnetConstructedDataTotalRecordCount"); PositionAware positionAware = readBuffer; int startPos = positionAware.getPos(); int curPos; boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get(); BACnetApplicationTagUnsignedInteger totalRecordCount = readSimpleField( "totalRecordCount", new DataReaderComplexDefault<>( () -> (BACnetApplicationTagUnsignedInteger) BACnetApplicationTag.staticParse(readBuffer), readBuffer)); BACnetApplicationTagUnsignedInteger actualValue = readVirtualField( "actualValue", BACnetApplicationTagUnsignedInteger.class, totalRecordCount); readBuffer.closeContext("BACnetConstructedDataTotalRecordCount"); // Create the instance return new BACnetConstructedDataTotalRecordCountBuilderImpl( totalRecordCount, tagNumber, arrayIndexArgument); } public static class BACnetConstructedDataTotalRecordCountBuilderImpl implements BACnetConstructedData.BACnetConstructedDataBuilder { private final BACnetApplicationTagUnsignedInteger totalRecordCount; private final Short tagNumber; private final BACnetTagPayloadUnsignedInteger arrayIndexArgument; public BACnetConstructedDataTotalRecordCountBuilderImpl( BACnetApplicationTagUnsignedInteger totalRecordCount, Short tagNumber, BACnetTagPayloadUnsignedInteger arrayIndexArgument) { this.totalRecordCount = totalRecordCount; this.tagNumber = tagNumber; this.arrayIndexArgument = arrayIndexArgument; } public BACnetConstructedDataTotalRecordCount build( BACnetOpeningTag openingTag, BACnetTagHeader peekedTagHeader, BACnetClosingTag closingTag, Short tagNumber, BACnetTagPayloadUnsignedInteger arrayIndexArgument) { BACnetConstructedDataTotalRecordCount bACnetConstructedDataTotalRecordCount = new BACnetConstructedDataTotalRecordCount( openingTag, peekedTagHeader, closingTag, totalRecordCount, tagNumber, arrayIndexArgument); return bACnetConstructedDataTotalRecordCount; } } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof BACnetConstructedDataTotalRecordCount)) { return false; } BACnetConstructedDataTotalRecordCount that = (BACnetConstructedDataTotalRecordCount) o; return (getTotalRecordCount() == that.getTotalRecordCount()) && super.equals(that) && true; } @Override public int hashCode() { return Objects.hash(super.hashCode(), getTotalRecordCount()); } @Override public String toString() { WriteBufferBoxBased writeBufferBoxBased = new WriteBufferBoxBased(true, true); try { writeBufferBoxBased.writeSerializable(this); } catch (SerializationException e) { throw new RuntimeException(e); } return "\n" + writeBufferBoxBased.getBox().toString() + "\n"; } }
[ "christofer.dutz@c-ware.de" ]
christofer.dutz@c-ware.de
ae828a700afefaf6b44e64fc4c282951748d1beb
8bb34dcd57eeeb78592a2ee346fb0bae3f472c49
/iot-user/iot-user-service/src/main/java/com/monolithiot/iot/user/service/listener/UserRegisterListener.java
f80b02496f0119d35e05cc7c28457ba9a171033e
[]
no_license
levent8421/monolithiot-parent
1dd8b2722e9040af523f0703748c5f0a961992c9
0b8065872e79fb6af87780b12f4a51a5c82e8335
refs/heads/master
2022-07-05T02:20:30.444317
2020-12-15T08:36:59
2020-12-15T08:36:59
191,195,755
0
0
null
2021-04-26T19:13:33
2019-06-10T15:35:22
Java
UTF-8
Java
false
false
396
java
package com.monolithiot.iot.user.service.listener; import com.monolithiot.iot.user.entity.User; /** * Create By leven ont 2019/6/18 22:36 * Class Name :[UserRegisterListener] * <p> * 监听用户注册行为 * * @author leven */ public interface UserRegisterListener { /** * 用户注册成功后调用 * * @param user 用户 */ void onRegister(User user); }
[ "levent8421@outlook.com" ]
levent8421@outlook.com
9eb35dd7d0f05988f8549c127b38aae3c349f3df
17e8438486cb3e3073966ca2c14956d3ba9209ea
/dso/branches/resource-management/management-tsa/management-tsa-impl/src/main/java/com/terracotta/management/security/impl/RelayingJerseyIdentityAssertionServiceClient.java
c6efdac7d38dea337acbe342a0b668fafc346c7f
[]
no_license
sirinath/Terracotta
fedfc2c4f0f06c990f94b8b6c3b9c93293334345
00a7662b9cf530dfdb43f2dd821fa559e998c892
refs/heads/master
2021-01-23T05:41:52.414211
2015-07-02T15:21:54
2015-07-02T15:21:54
38,613,711
1
0
null
null
null
null
UTF-8
Java
false
false
1,519
java
/* * All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved. */ package com.terracotta.management.security.impl; import com.terracotta.management.security.ContextService; import com.terracotta.management.security.IACredentials; import com.terracotta.management.security.InvalidIAInteractionException; import com.terracotta.management.security.KeyChainAccessor; import com.terracotta.management.security.SSLContextFactory; import com.terracotta.management.user.UserInfo; import java.net.MalformedURLException; import java.net.URISyntaxException; /** * @author Ludovic Orban */ public class RelayingJerseyIdentityAssertionServiceClient extends JerseyIdentityAssertionServiceClient { private final ContextService contextService; public RelayingJerseyIdentityAssertionServiceClient(KeyChainAccessor keyChainAccessor, SSLContextFactory sslCtxtFactory, String securitySvcLocation, Integer secuirtySvcTimeout, ContextService contextService) throws URISyntaxException, MalformedURLException { super(keyChainAccessor, sslCtxtFactory, securitySvcLocation, secuirtySvcTimeout); this.contextService = contextService; } @Override public UserInfo retreiveUserDetail(IACredentials credentials) throws InvalidIAInteractionException { UserInfo userInfo = super.retreiveUserDetail(credentials); contextService.putUserInfo(userInfo); return userInfo; } }
[ "twu@7fc7bbf3-cf45-46d4-be06-341739edd864" ]
twu@7fc7bbf3-cf45-46d4-be06-341739edd864
8d23ccc757c876864006f3c008a1dc7f63094cf7
0f909f99aa229aa9d0e49665af7bc51cc2403f65
/src/generated/java/cdm/product/asset/validation/DividendCurrencyValidator.java
f28e56aa145be398aaa64ee37a5b343cb7b10095
[]
no_license
Xuanling-Chen/cdm-source-ext
8c93bc824e8c01255dfc06456bd6ec1fb3115649
e4cf7d5e549e514760cbd1e2d6789af171e5ea41
refs/heads/master
2023-07-11T20:35:26.485723
2021-08-29T04:12:00
2021-08-29T04:12:00
400,947,430
0
0
null
null
null
null
UTF-8
Java
false
false
1,608
java
package cdm.product.asset.validation; import cdm.product.asset.DividendCurrency; import com.google.common.collect.Lists; import com.rosetta.model.lib.expression.ComparisonResult; import com.rosetta.model.lib.path.RosettaPath; import com.rosetta.model.lib.validation.ValidationResult; import com.rosetta.model.lib.validation.ValidationResult.ValidationType; import com.rosetta.model.lib.validation.Validator; import static com.google.common.base.Strings.isNullOrEmpty; import static com.rosetta.model.lib.expression.ExpressionOperators.checkCardinality; import static com.rosetta.model.lib.validation.ValidationResult.failure; import static com.rosetta.model.lib.validation.ValidationResult.success; import static java.util.stream.Collectors.joining; public class DividendCurrencyValidator implements Validator<DividendCurrency> { @Override public ValidationResult<DividendCurrency> validate(RosettaPath path, DividendCurrency o) { String error = Lists.<ComparisonResult>newArrayList( checkCardinality("currency", o.getCurrency()!=null ? 1 : 0, 0, 1), checkCardinality("determinationMethod", o.getDeterminationMethod()!=null ? 1 : 0, 0, 1), checkCardinality("currencyReference", o.getCurrencyReference()!=null ? 1 : 0, 0, 1) ).stream().filter(res -> !res.get()).map(res -> res.getError()).collect(joining("; ")); if (!isNullOrEmpty(error)) { return failure("DividendCurrency", ValidationType.MODEL_INSTANCE, o.getClass().getSimpleName(), path, "", error); } return success("DividendCurrency", ValidationType.MODEL_INSTANCE, o.getClass().getSimpleName(), path, ""); } }
[ "xuanling_chen@epam.com" ]
xuanling_chen@epam.com
73f1e01519bb999c034e0c5f38e5608d5f3d23dd
a2272f1002da68cc554cd57bf9470322a547c605
/src/jdk/jdk.internal.vm.compiler/org.graalvm.compiler.lir.aarch64/src/org/graalvm/compiler/lir/aarch64/AArch64BitFieldOp.java
6bacf5531b18c7dda8285f41a94372ce32b7df31
[]
no_license
framework-projects/java
50af8953ab46c509432c467c9ad69cc63818fa63
2d131cb46f232d3bf909face20502e4ba4b84db0
refs/heads/master
2023-06-28T05:08:00.482568
2021-08-04T08:42:32
2021-08-04T08:42:32
312,414,414
2
0
null
null
null
null
UTF-8
Java
false
false
2,234
java
/* * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2019, Arm Limited and affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * */ package org.graalvm.compiler.lir.aarch64; import jdk.vm.ci.code.Register; import jdk.vm.ci.meta.AllocatableValue; import org.graalvm.compiler.asm.aarch64.AArch64MacroAssembler; import org.graalvm.compiler.debug.GraalError; import org.graalvm.compiler.lir.LIRInstructionClass; import org.graalvm.compiler.lir.Opcode; import org.graalvm.compiler.lir.asm.CompilationResultBuilder; import static jdk.vm.ci.code.ValueUtil.asRegister; import static org.graalvm.compiler.lir.LIRInstruction.OperandFlag.REG; /** * Bit field ops for AArch64. */ public class AArch64BitFieldOp extends AArch64LIRInstruction { public enum BitFieldOpCode { UBFX, UBFIZ, } private static final LIRInstructionClass<AArch64BitFieldOp> TYPE = LIRInstructionClass.create(AArch64BitFieldOp.class); @Opcode private final AArch64BitFieldOp.BitFieldOpCode opcode; @Def protected AllocatableValue result; @Use({REG}) protected AllocatableValue input; private final int lsb; private final int width; public AArch64BitFieldOp(AArch64BitFieldOp.BitFieldOpCode opcode, AllocatableValue result, AllocatableValue input, int lsb, int width) { super(TYPE); this.opcode = opcode; this.result = result; this.input = input; this.lsb = lsb; this.width = width; } @Override protected void emitCode(CompilationResultBuilder crb, AArch64MacroAssembler masm) { Register dst = asRegister(result); Register src = asRegister(input); final int size = input.getPlatformKind().getSizeInBytes() * Byte.SIZE; switch (opcode) { case UBFX: masm.ubfm(size, dst, src, lsb, lsb + width - 1); break; case UBFIZ: masm.ubfm(size, dst, src, size - lsb, width - 1); break; default: throw GraalError.shouldNotReachHere(); } } }
[ "chovavea@outlook.com" ]
chovavea@outlook.com
9dfadf1e43044cbe63ffd0bd58111fc567e70f82
fc05322703594e40548f8e738449b9418efb7518
/src/main/java/org/basex/query/func/file/FileCreateTempFile.java
d06ba01aa9eed9c8552b671e2aa16c4a39ef372f
[]
no_license
mauricioscastro/basex-lmdb
0028994871be99ec1f5d86738adfad18983d3046
bb8f32b800cb0f894c398c0019bc501196a1a801
refs/heads/master
2021-01-21T00:08:36.905964
2017-09-26T17:39:31
2017-09-26T17:39:31
41,042,448
1
1
null
2017-09-26T14:58:24
2015-08-19T15:24:11
Java
UTF-8
Java
false
false
1,637
java
package org.basex.query.func.file; import static org.basex.query.QueryError.*; import static org.basex.util.Token.*; import java.io.*; import java.nio.file.*; import java.util.*; import org.basex.query.*; import org.basex.query.value.item.*; import org.basex.util.*; /** * Function implementation. * * @author BaseX Team 2005-15, BSD License * @author Christian Gruen */ public class FileCreateTempFile extends FileFn { @Override public Item item(final QueryContext qc) throws QueryException, IOException { return createTemp(false, qc); } /** * Creates a temporary file or directory. * @param qc query context * @param dir create a directory instead of a file * @return path of created file or directory * @throws QueryException query exception * @throws IOException I/O exception */ final synchronized Item createTemp(final boolean dir, final QueryContext qc) throws QueryException, IOException { final String pref = string(toToken(exprs[0], qc)); final String suf = exprs.length > 1 ? string(toToken(exprs[1], qc)) : ""; final Path root; if(exprs.length > 2) { root = toPath(2, qc); if(Files.isRegularFile(root)) throw FILE_NO_DIR_X.get(info, root); } else { root = Paths.get(Prop.TMP); } // choose non-existing file path final Random rnd = new Random(); Path file; do { file = root.resolve(pref + rnd.nextLong() + suf); } while(Files.exists(file)); // create directory or file if(dir) { Files.createDirectory(file); } else { Files.createFile(file); } return get(file, dir); } }
[ "mauricioscastro@hotmail.com" ]
mauricioscastro@hotmail.com
97778bdef49304b3c8b39a60b9d6c17cde681297
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
/aliyun-java-sdk-airticketopen/src/main/java/com/aliyuncs/airticketopen/model/v20230117/ChangeCancelResponse.java
7af14e641dfe2e73c71ae41bce2c2ada4cc8640d
[ "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,127
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.airticketopen.model.v20230117; import com.aliyuncs.AcsResponse; import com.aliyuncs.airticketopen.transform.v20230117.ChangeCancelResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class ChangeCancelResponse extends AcsResponse { @Override public ChangeCancelResponse getInstance(UnmarshallerContext context) { return ChangeCancelResponseUnmarshaller.unmarshall(this, context); } @Override public boolean checkShowJsonItemName() { return false; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
bc57b4d16d74593ec124e1738bd2a49e12ab916c
e8b4e0c11ea0ce37df179bfc25e418634623a567
/src/main/java/com/myself/sbdiancan/exception/SbAuthorizeException.java
4e4bf46e8fc132018788b605db4eecd011208b1d
[]
no_license
DelkTsai/MintSells
0f9d0fc3f4c4643bd9f23a3c82bcc08cf4e34786
ce9977882a640a7334425cb46f5cceb0775b8423
refs/heads/master
2020-03-28T19:54:04.128431
2018-06-07T03:35:11
2018-06-07T03:35:11
null
0
0
null
null
null
null
UTF-8
Java
false
false
285
java
package com.myself.sbdiancan.exception; /** * 返回AOP登录登出切面异常 * @Author:UncleCatMySelf * @Email:zhupeijie_java@126.com * @QQ:1341933031 * @Date:Created in 11:20 2018\6\6 0006 */ public class SbAuthorizeException extends RuntimeException { }
[ "awakeningcode@126.com" ]
awakeningcode@126.com
45c778a1f3bbfbb140b78178d6b1e5a08913558c
1aade6a7337ca22ddd9a0eff6a5997c20b408374
/src/day12/Stack_ex.java
239bdb1243f884813a90f93062186170a4c50b3b
[]
no_license
ha3548/Java_practice
b8c9214908757896a3e3e40c53ae08b74a1c9b8c
205074705e3a8fc7830962f111ea34fa48a9188b
refs/heads/master
2020-08-20T19:58:30.590988
2019-10-18T16:05:26
2019-10-18T16:05:26
216,060,577
1
1
null
null
null
null
UTF-8
Java
false
false
522
java
package day12; import java.util.*; public class Stack_ex { public static void main(String[] args) { Stack<Integer> stack = new Stack<>(); stack.push(10); stack.push(20); stack.push(30); System.out.println(stack.pop()); System.out.println(stack.pop()); System.out.println(stack.pop()); Queue<Integer> queue = new LinkedList<>(); queue.offer(10); queue.offer(20); queue.offer(30); System.out.println(queue.poll()); System.out.println(queue.poll()); System.out.println(queue.poll()); } }
[ "ha3548@naver.com" ]
ha3548@naver.com
cf682cdf2795670657293e77c900878357948b70
8af1164bac943cef64e41bae312223c3c0e38114
/results-java/neo4j--neo4j/b5efb742e795de758b9d5d071baa726565e5928b/before/LogEntryStart.java
245c31ff641ac1c503bdff2dac775ed62ba1808e
[]
no_license
fracz/refactor-extractor
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
dd5e82bfcc376e74a99e18c2bf54c95676914272
refs/heads/master
2021-01-19T06:50:08.211003
2018-11-30T13:00:57
2018-11-30T13:00:57
87,353,478
0
0
null
null
null
null
UTF-8
Java
false
false
5,772
java
/** * Copyright (c) 2002-2014 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j 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 org.neo4j.kernel.impl.transaction.xaframework.log.entry; import java.io.IOException; import java.util.Arrays; import java.util.TimeZone; import org.neo4j.helpers.Format; import org.neo4j.kernel.impl.nioneo.xa.command.LogHandler; import org.neo4j.kernel.impl.transaction.xaframework.LogPosition; public class LogEntryStart extends LogEntry { private final int masterId; private final int authorId; private final long timeWritten; private final long lastCommittedTxWhenTransactionStarted; private final byte[] additionalHeader; private LogPosition startPosition; public LogEntryStart( int masterId, int authorId, long timeWritten, long lastCommittedTxWhenTransactionStarted, byte[] additionalHeader, LogPosition startPosition ) { this( CURRENT_LOG_ENTRY_VERSION, masterId, authorId, timeWritten, lastCommittedTxWhenTransactionStarted, additionalHeader, startPosition ); } public LogEntryStart( byte version, int masterId, int authorId, long timeWritten, long lastCommittedTxWhenTransactionStarted, byte[] additionalHeader, LogPosition startPosition ) { super( TX_START, version ); this.masterId = masterId; this.authorId = authorId; this.startPosition = startPosition; this.timeWritten = timeWritten; this.lastCommittedTxWhenTransactionStarted = lastCommittedTxWhenTransactionStarted; this.additionalHeader = additionalHeader; } public int getMasterId() { return masterId; } public int getLocalId() { return authorId; } public LogPosition getStartPosition() { return startPosition; } public void setStartPosition( LogPosition position ) { this.startPosition = position; } public long getTimeWritten() { return timeWritten; } public long getLastCommittedTxWhenTransactionStarted() { return lastCommittedTxWhenTransactionStarted; } public byte[] getAdditionalHeader() { return additionalHeader; } /** * @return combines necessary state to get a unique checksum to identify this transaction uniquely. */ public static long checksum( byte[] additionalHeader, int masterId, int authorId ) { // [4 bits combined masterId/myId][4 bits xid hashcode, which combines time/randomness] long lowBits = Arrays.hashCode( additionalHeader ); long highBits = masterId*37 + authorId; return (highBits << 32) | (lowBits & 0xFFFFFFFFL); } public static long checksum( LogEntryStart entry ) { return checksum( entry.additionalHeader, entry.masterId, entry.authorId ); } @Override public String toString() { return toString( Format.DEFAULT_TIME_ZONE ); } @Override public void accept( LogHandler handler ) throws IOException { handler.startEntry( this ); } @Override public String toString( TimeZone timeZone ) { return "Start[" + "master=" + masterId + "," + "me=" + authorId + "," + "time=" + timestamp( timeWritten, timeZone ) + "," + "lastCommittedTxWhenTransactionStarted=" + lastCommittedTxWhenTransactionStarted + "," + "additionalHeaderLength=" + (additionalHeader == null ? -1 : additionalHeader.length) + "]"; } @Override public boolean equals( Object o ) { if ( this == o ) { return true; } if ( o == null || getClass() != o.getClass() ) { return false; } LogEntryStart start = (LogEntryStart) o; if ( authorId != start.authorId ) { return false; } if ( lastCommittedTxWhenTransactionStarted != start.lastCommittedTxWhenTransactionStarted ) { return false; } if ( masterId != start.masterId ) { return false; } if ( timeWritten != start.timeWritten ) { return false; } if ( !Arrays.equals( additionalHeader, start.additionalHeader ) ) { return false; } if ( !startPosition.equals( start.startPosition ) ) { return false; } return true; } @Override public int hashCode() { int result = masterId; result = 31 * result + authorId; result = 31 * result + (int) (timeWritten ^ (timeWritten >>> 32)); result = 31 * result + (int) (lastCommittedTxWhenTransactionStarted ^ (lastCommittedTxWhenTransactionStarted >>> 32)); result = 31 * result + (additionalHeader != null ? Arrays.hashCode( additionalHeader ) : 0); result = 31 * result + startPosition.hashCode(); return result; } }
[ "fraczwojciech@gmail.com" ]
fraczwojciech@gmail.com
20426a9ee4eae8d65cbb439cfbd4d56cb20d26b9
058dc2df69bf4bb7424796b64114bc9325dbcec6
/ContactoCliente/src/ContactoApp/IContatoHolder.java
ae67ea8ee36a49ff7a2ea9e654b1566e1495657c
[]
no_license
LuisEnriqueSosaHernandez/Sistemas-distribuidos
33b8966de59ba118cf34dd05082f9bec8fda02cb
277fbfed6d05f51e8af46a04f5724a11ef907ad0
refs/heads/master
2020-04-23T16:44:57.622696
2019-06-12T22:14:10
2019-06-12T22:14:10
171,308,401
0
0
null
null
null
null
ISO-8859-1
Java
false
false
791
java
package ContactoApp; /** * ContactoApp/IContatoHolder.java . * Generated by the IDL-to-Java compiler (portable), version "3.2" * from Contacto.idl * miércoles 8 de mayo de 2019 03:10:18 PM CDT */ public final class IContatoHolder implements org.omg.CORBA.portable.Streamable { public ContactoApp.IContato value = null; public IContatoHolder () { } public IContatoHolder (ContactoApp.IContato initialValue) { value = initialValue; } public void _read (org.omg.CORBA.portable.InputStream i) { value = ContactoApp.IContatoHelper.read (i); } public void _write (org.omg.CORBA.portable.OutputStream o) { ContactoApp.IContatoHelper.write (o, value); } public org.omg.CORBA.TypeCode _type () { return ContactoApp.IContatoHelper.type (); } }
[ "kiquesasuke@gmail.com" ]
kiquesasuke@gmail.com
f3a84ac9996c7a099a0cbf13553fc99f861d7599
4239ef0a26db275e460fe4be575691e7104d9e86
/src/amata1219/fimbulwinter/FimbulwinterAPI.java
0d99b911a1505c50f73b4d67ad47fec09fbd5c89
[]
no_license
amata1219/Fimbulwinter
12816331b8223410ae79f9c4002b44f9eaf7b9cd
9dc1052ee023c54c121ef33ceb534b16b4af4321
refs/heads/master
2023-03-11T16:26:19.873986
2021-02-23T08:41:22
2021-02-23T08:41:22
327,378,506
0
0
null
null
null
null
UTF-8
Java
false
false
206
java
package amata1219.fimbulwinter; import amata1219.fimbulwinter.dsl.ExecutableItem; public interface FimbulwinterAPI { void register(ExecutableItem item); void unregister(ExecutableItem item); }
[ "suzukiamata@gmail.com" ]
suzukiamata@gmail.com
98b1fdb5f349d856637913d698c68d92e69e3683
a2df6764e9f4350e0d9184efadb6c92c40d40212
/aliyun-java-sdk-sofa/src/main/java/com/aliyuncs/sofa/model/v20190815/CreateLinkeBahamutCustomflowtaskRequest.java
9b1d5ccaa6f6157707a254948fc65f9b6f80b1e8
[ "Apache-2.0" ]
permissive
warriorsZXX/aliyun-openapi-java-sdk
567840c4bdd438d43be6bd21edde86585cd6274a
f8fd2b81a5f2cd46b1e31974ff6a7afed111a245
refs/heads/master
2022-12-06T15:45:20.418475
2020-08-20T08:37:31
2020-08-26T06:17:49
290,450,773
1
0
NOASSERTION
2020-08-26T09:15:48
2020-08-26T09:15:47
null
UTF-8
Java
false
false
4,072
java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.aliyuncs.sofa.model.v20190815; import com.aliyuncs.RpcAcsRequest; import com.aliyuncs.http.MethodType; import com.aliyuncs.sofa.Endpoint; /** * @author auto create * @version */ public class CreateLinkeBahamutCustomflowtaskRequest extends RpcAcsRequest<CreateLinkeBahamutCustomflowtaskResponse> { private String ctuUrl; private String approvalTitle; private String appList; private String approvalContext; private String stcManager; private String approver; private String taskType; private String stage; private String iterationId; private String iterationUnitId; public CreateLinkeBahamutCustomflowtaskRequest() { super("SOFA", "2019-08-15", "CreateLinkeBahamutCustomflowtask", "sofa"); 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 getCtuUrl() { return this.ctuUrl; } public void setCtuUrl(String ctuUrl) { this.ctuUrl = ctuUrl; if(ctuUrl != null){ putBodyParameter("CtuUrl", ctuUrl); } } public String getApprovalTitle() { return this.approvalTitle; } public void setApprovalTitle(String approvalTitle) { this.approvalTitle = approvalTitle; if(approvalTitle != null){ putBodyParameter("ApprovalTitle", approvalTitle); } } public String getAppList() { return this.appList; } public void setAppList(String appList) { this.appList = appList; if(appList != null){ putBodyParameter("AppList", appList); } } public String getApprovalContext() { return this.approvalContext; } public void setApprovalContext(String approvalContext) { this.approvalContext = approvalContext; if(approvalContext != null){ putBodyParameter("ApprovalContext", approvalContext); } } public String getStcManager() { return this.stcManager; } public void setStcManager(String stcManager) { this.stcManager = stcManager; if(stcManager != null){ putBodyParameter("StcManager", stcManager); } } public String getApprover() { return this.approver; } public void setApprover(String approver) { this.approver = approver; if(approver != null){ putBodyParameter("Approver", approver); } } public String getTaskType() { return this.taskType; } public void setTaskType(String taskType) { this.taskType = taskType; if(taskType != null){ putBodyParameter("TaskType", taskType); } } public String getStage() { return this.stage; } public void setStage(String stage) { this.stage = stage; if(stage != null){ putBodyParameter("Stage", stage); } } public String getIterationId() { return this.iterationId; } public void setIterationId(String iterationId) { this.iterationId = iterationId; if(iterationId != null){ putBodyParameter("IterationId", iterationId); } } public String getIterationUnitId() { return this.iterationUnitId; } public void setIterationUnitId(String iterationUnitId) { this.iterationUnitId = iterationUnitId; if(iterationUnitId != null){ putBodyParameter("IterationUnitId", iterationUnitId); } } @Override public Class<CreateLinkeBahamutCustomflowtaskResponse> getResponseClass() { return CreateLinkeBahamutCustomflowtaskResponse.class; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
d016cdc62cfe03614b122cf7a9199c47aae0c1ba
d2449835575d64ee2741bdd7d1d32cc8c92a0501
/chapter-06/java/flying-high/src/test/java/com/manning/bddinaction/frequentflyer/stepdefinitions/FrequentFlyerPointsStepDefinitions.java
bcde68c2eb542dbef6a4479e52abd266271b8735
[ "Apache-2.0" ]
permissive
collbb/second-edition
8ffaae3a42a9ac4196a01790f672c573ea9b8466
246e5a9a9487da146708d6ce1e9dd098faef1a40
refs/heads/master
2022-12-09T19:04:57.429808
2020-08-30T21:48:36
2020-08-30T21:48:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,070
java
package com.manning.bddinaction.frequentflyer.stepdefinitions; import io.cucumber.datatable.DataTable; import io.cucumber.java.en.And; import io.cucumber.java.en.Given; import io.cucumber.java.en.Then; import io.cucumber.java.en.When; public class FrequentFlyerPointsStepDefinitions { @Given("the distance from {} to {} is {int} km") public void recordFlightDistance(String departure, String destination, int distanceInKm) { } @Given("{word} is a Frequent Flyer traveller") public void createFrequentFlyerNamed(String frequentFlyer) { // TODO: Setup a frequent flyer traveller account } @When("he/she completes a flight between {} and {}") public void travellerCompletesAFlight(String departure, String destination) { // TODO: Record the flight details } @Then("he/she should earn {int} points") public void shouldEarnPoints(int expectedPoints) { // TODO: Check that the traveller has earned this many points } @And("{} is a standard Frequent Flyer member") public void aStandardFrequentFlyerMember(String frequentFlyer) { } @When("{} flies from {} to {}") public void fliesFromSydneyToMelbourne(String frequentFlyer, String departure, String destination) { } @When("{} flies from {} to {} in {} class") public void flyFromSydneyToMelbourneInBusinessClass(String frequentFlyer, String departure, String destination, String flyerClass) { } @When("{} flies from {} to {} on a Partner Airlines flight") public void iFlyFromSydneyToMelbourneOnAPartnerAirlinesFlight(String frequentFlyer, String departure, String destination) { } @Given("{} is a {} Frequent Flyer member") public void fredIsAStatusFrequentFlyerMember(String frequentFlyer, String status) { } @When("{} flies on a flight that is worth {int} base points") public void fredFliesOnAFlightThatIsWorthBaseBasePoints(String frequentFlyer, int points) { } @Then("he/she should earn a status bonus of {int}") public void heShouldEarnAStatusBonusOfBonus(int bonus) { } @And("he/she should have guaranteed minimum earned points per trip of {int}") public void heShouldHaveGuaranteedMinimumEarnedPointsPerTripOfMinimum(int minimum) { } @Given("{word} and {word} are family members") public void familyMembers(String giver, String receiver) { } @And("they have the following accounts:") public void theyHaveTheFollowingAccounts(DataTable accountDetails) { } @When("{word} transfers {int} points to {word}") public void martinTransfersPointsToDanielle(String giver, int amount, String receiver) { } @Then("the accounts should be as follows:") public void theAccountsShouldBeAsFollows(DataTable accountDetails) { } @Given("Todd has just joined the Frequent Flyer programme") public void toddHasJustJoinedTheFrequentFlyerProgramme() { } @And("Todd asks for the following flight to be credited to his account:") public void toddAsksForTheFollowingFlightToBeCreditedToHisAccount(DataTable fights) { } @Then("the flight should be considered {word}") public void theFlightShouldBeConsideredEligibility(String eligibility) { } @Given("Tara has booked the following flight:") public void tara_has_booked_the_following_flight(io.cucumber.datatable.DataTable dataTable) { } @When("Tara updates the flight date to {}") public void tara_updates_the_flight_date_to(String flightDate) { } @Then("there should be no additional charge") public void there_should_be_no_additional_charge() { } @Then("the booking should be updated to the following:") public void the_booking_should_be_updated_to_the_following(io.cucumber.datatable.DataTable dataTable) { } @Given("Terry joined the Frequent Flyer program on {}") public void terry_joined_the_frequent_flyer_program_on(String start) { } @When("he asks for the following flight to count towards his Frequent Flyer points:") public void he_asks_for_the_following_flight_to_count_towards_his_frequent_flyer_points(io.cucumber.datatable.DataTable dataTable) { } @Then("the flight should be credited: {}") public void the_flight_should_be_credited(String result) { } @Given("Tara has logged on to the Frequent Flyer application using tara@email.com") public void tara_has_logged_on_to_the_frequent_flyer_application_using_tara_email_com() { } @When("the fare difference is ${int}") public void the_fare_difference_is_$(Integer int1) { } @Then("Tara should be charged ${int}") public void tara_should_be_charged_$(Integer int1) { } @When("Terry requests credit for flight {} on {} with Flying High") public void terry_requests_credit_for_flight_fh_on_with_flying_high(String flight, String date) { } @When("Terry requests credit for flight {} on {} with Other Air") public void terry_requests_credit_for_flight_oa_on_with_other_air(String flight, String date) { } }
[ "john.smart@wakaleo.com" ]
john.smart@wakaleo.com
e0fdb2367b0a2eeafc64139b2fecd5fe7380114a
58b1fb9090c4938a7eb6b8cbd1aed88794a78a50
/org.afplib.afptext/src-gen/org/afplib/afpText/impl/GSCPImpl.java
bad94e5c6f9490bee46b25dadd1be1d1b4303f1d
[ "Apache-2.0" ]
permissive
yan74/afptext
7750310189759d7ede7393e0bbdd726e3b81914a
2d0a89be3d3dd1de981e522c2c6791d789894475
refs/heads/master
2020-07-28T09:04:05.789849
2019-09-22T09:36:22
2019-09-22T09:36:22
209,372,642
0
0
null
null
null
null
UTF-8
Java
false
false
4,973
java
/** * generated by Xtext 2.19.0 */ package org.afplib.afpText.impl; import org.afplib.afpText.AfpTextPackage; import org.afplib.afpText.GSCP; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.impl.ENotificationImpl; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>GSCP</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * </p> * <ul> * <li>{@link org.afplib.afpText.impl.GSCPImpl#getXPOS <em>XPOS</em>}</li> * <li>{@link org.afplib.afpText.impl.GSCPImpl#getYPOS <em>YPOS</em>}</li> * </ul> * * @generated */ public class GSCPImpl extends tripletImpl implements GSCP { /** * The default value of the '{@link #getXPOS() <em>XPOS</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getXPOS() * @generated * @ordered */ protected static final Integer XPOS_EDEFAULT = null; /** * The cached value of the '{@link #getXPOS() <em>XPOS</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getXPOS() * @generated * @ordered */ protected Integer xpos = XPOS_EDEFAULT; /** * The default value of the '{@link #getYPOS() <em>YPOS</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getYPOS() * @generated * @ordered */ protected static final Integer YPOS_EDEFAULT = null; /** * The cached value of the '{@link #getYPOS() <em>YPOS</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getYPOS() * @generated * @ordered */ protected Integer ypos = YPOS_EDEFAULT; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected GSCPImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return AfpTextPackage.eINSTANCE.getGSCP(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Integer getXPOS() { return xpos; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setXPOS(Integer newXPOS) { Integer oldXPOS = xpos; xpos = newXPOS; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfpTextPackage.GSCP__XPOS, oldXPOS, xpos)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Integer getYPOS() { return ypos; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setYPOS(Integer newYPOS) { Integer oldYPOS = ypos; ypos = newYPOS; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfpTextPackage.GSCP__YPOS, oldYPOS, ypos)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case AfpTextPackage.GSCP__XPOS: return getXPOS(); case AfpTextPackage.GSCP__YPOS: return getYPOS(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case AfpTextPackage.GSCP__XPOS: setXPOS((Integer)newValue); return; case AfpTextPackage.GSCP__YPOS: setYPOS((Integer)newValue); return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case AfpTextPackage.GSCP__XPOS: setXPOS(XPOS_EDEFAULT); return; case AfpTextPackage.GSCP__YPOS: setYPOS(YPOS_EDEFAULT); return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case AfpTextPackage.GSCP__XPOS: return XPOS_EDEFAULT == null ? xpos != null : !XPOS_EDEFAULT.equals(xpos); case AfpTextPackage.GSCP__YPOS: return YPOS_EDEFAULT == null ? ypos != null : !YPOS_EDEFAULT.equals(ypos); } return super.eIsSet(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (XPOS: "); result.append(xpos); result.append(", YPOS: "); result.append(ypos); result.append(')'); return result.toString(); } } //GSCPImpl
[ "yan@hcsystems.de" ]
yan@hcsystems.de
9d2755f80fd97b9cb37bd2b1227954e87356d883
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
/com.tencent.qqlite/assets/exlibs.1.jar/classes.jar/com/tencent/litetransfersdk/ApplyUploadHitRsp.java
4003fb084fdb512c864b1f401c7697828b913a13
[]
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
591
java
package com.tencent.litetransfersdk; public class ApplyUploadHitRsp { public byte[] bytes_upload_key; public byte[] bytes_uuid; public int int32_ret_code; public String str_ret_msg; public String str_upload_domain; public String str_upload_ip; public int uint32_upload_port; public long uint64_total_space; public long uint64_used_space; } /* Location: L:\local\mybackup\temp\qq_apk\com.tencent.qqlite\assets\exlibs.1.jar\classes.jar * Qualified Name: com.tencent.litetransfersdk.ApplyUploadHitRsp * JD-Core Version: 0.7.0.1 */
[ "98632993+tsuzcx@users.noreply.github.com" ]
98632993+tsuzcx@users.noreply.github.com
4bb3c6a688097e641a893bf42448ac51624595e4
95bca8b42b506860014f5e7f631490f321f51a63
/dhis-2/dhis-support/dhis-support-jdbc/src/main/java/org/hisp/dhis/jdbc/StatementBuilder.java
6a26f4452173ec35387f69ce112e99700aaad974
[ "BSD-3-Clause" ]
permissive
hispindia/HP-2.7
d5174d2c58423952f8f67d9846bec84c60dfab28
bc101117e8e30c132ce4992a1939443bf7a44b61
refs/heads/master
2022-12-25T04:13:06.635159
2020-09-29T06:32:53
2020-09-29T06:32:53
84,940,096
0
0
BSD-3-Clause
2022-12-15T23:53:32
2017-03-14T11:13:27
Java
UTF-8
Java
false
false
6,072
java
package org.hisp.dhis.jdbc; /* * Copyright (c) 2004-2012, University of Oslo * 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 HISP project nor the names of its contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL 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. */ import org.hisp.dhis.period.Period; import java.util.List; /** * @author Lars Helge Overland * @version $Id: StatementBuilder.java 5715 2008-09-17 14:05:28Z larshelg $ */ public interface StatementBuilder { final String QUOTE = "'"; /** * Encodes the provided SQL value. * * @param value the value. * @return the SQL encoded value. */ String encode( String value ); /** * Returns the name of a double column type. * @return the name of a double column type. */ String getDoubleColumnType(); /** * Creates a SELECT statement returning the identifier of the given Period. * * @param period the Period to use in the statement. * @return a SELECT statement returning the identifier of the given Period. */ String getPeriodIdentifierStatement( Period period ); /** * Creates a create table statement for the aggregated datavalue table. */ String getCreateAggregatedDataValueTable(); /** * Creates a create table statement for the aggregated organisation unit * group datavalue table. */ String getCreateAggregatedOrgUnitDataValueTable(); /** * Creates a create table statement for the aggregated indicatorvalue table. */ String getCreateAggregatedIndicatorTable(); /** * Creates a create table statement for the aggregated organisation unit * group indicatorvalue table. */ String getCreateAggregatedOrgUnitIndicatorTable(); /** * Creates a create table statement for the aggregated datasetcompleteness table. */ String getCreateDataSetCompletenessTable(); /** * Creates a create table statement for the aggregated organisation unit * group datasetcompleteness table. */ String getCreateOrgUnitDataSetCompletenessTable(); /** * Creates a delete datavalue statement. * @return a delete datavalue statement. */ String getDeleteZeroDataValues(); /** * Returns the maximum number of columns in a table. * * @return the maximum number of columns in a table. */ int getMaximumNumberOfColumns(); /** * Drop Dataset foreign key for DataEntryForm table * * @return */ String getDropDatasetForeignKeyForDataEntryFormTable(); String getMoveDataValueToDestination( int sourceId, int destinationId ); String getSummarizeDestinationAndSourceWhereMatching( int sourceId, int destinationId ); String getMoveFromSourceToDestination( int destDataElementId, int destCategoryOptionComboId, int sourceDataElementId, int sourceCategoryOptionComboId ); String getUpdateDestination( int destDataElementId, int destCategoryOptionComboId, int sourceDataElementId, int sourceCategoryOptionComboId ); String getStandardDeviation( int dataElementId, int categoryOptionComboId, int organisationUnitId ); String getAverage( int dataElementId, int categoryOptionComboId, int organisationUnitId ); String getDeflatedDataValues( int dataElementId, String dataElementName, int categoryOptionComboId, String periodIds, int organisationUnitId, String organisationUnitName, int lowerBound, int upperBound ); String archiveData( String startDate, String endDate ); String unArchiveData( String startDate, String endDate ); String deleteRegularOverlappingData(); String deleteArchivedOverlappingData(); String deleteOldestOverlappingDataValue(); String deleteOldestOverlappingArchiveData(); String archivePatientData ( String startDate, String endDate ); String unArchivePatientData ( String startDate, String endDate ); String deleteRegularOverlappingPatientData(); String deleteArchivedOverlappingPatientData(); String deleteOldestOverlappingPatientDataValue(); String deleteOldestOverlappingPatientArchiveData(); String getPatientsByFullName( String fullName ); String getPatientsByFullName( String fullName, int min, int max ); String countPatientsByFullName( String fullName ); String queryDataElementStructureForOrgUnit(); String queryRawDataElementsForOrgUnitBetweenPeriods( Integer orgUnitId, List<Integer> betweenPeriodIds); String getActivityPlan( int orgunitId, int min, int max ); String limitRecord( int min, int max ); }
[ "mithilesh.hisp@gmail.com" ]
mithilesh.hisp@gmail.com
64befdf872e676a9044524a43837a0b2ac57319a
56319e53f4155b0f0ae4ab249b1d3249fc8ddd98
/apache-tomcat-8.0.39/converted/org/apache/catalina/webresources/MainForTestDirResourceSetInternal_testListFile.java
3c6ec2eaf78176c146aca40a52b6d1d12f62a106
[]
no_license
SnowOnion/J2mConvertedTestcases
2f904e2f2754f859f6125f248d3672eb1a70abd1
e74b0e4c08f12e5effeeb8581670156ace42640a
refs/heads/master
2021-01-11T19:01:42.207334
2017-01-19T12:22:22
2017-01-19T12:22:22
79,295,183
1
0
null
null
null
null
UTF-8
Java
false
false
681
java
package org.apache.catalina.webresources; import org.apache.catalina.webresources.TestDirResourceSetInternal; public class MainForTestDirResourceSetInternal_testListFile { public static void main(String[] args) { try { TestDirResourceSetInternal.before(); TestDirResourceSetInternal objTestDirResourceSetInternal = new TestDirResourceSetInternal(); objTestDirResourceSetInternal.setup(); objTestDirResourceSetInternal.testListFile(); objTestDirResourceSetInternal.teardown(); TestDirResourceSetInternal.after(); } catch (Throwable e) { e.printStackTrace(); } } }
[ "snowonionlee@gmail.com" ]
snowonionlee@gmail.com
19f1dbb8c0167eee6319814f9f192a47743131e8
be59c0ca127a4f7041758b2709e1327bc71b6e12
/qipai/game-pdkuai/src/main/java/com/sy599/game/qipai/pdkuai/command/PdkCommandProcessor.java
7b8217d1ab44ce42133de491557e7de90278e852
[]
no_license
Yiwei-TEST/xxqp-server
2389dd6b12614b0a9557d59b473f88a3a59620cf
c2c683ce8060c0cbaee86c3ee550e0195e1bb7e4
refs/heads/main
2023-08-14T08:49:37.586893
2021-09-15T03:21:13
2021-09-15T03:21:13
401,583,086
1
4
null
null
null
null
UTF-8
Java
false
false
2,156
java
package com.sy599.game.qipai.pdkuai.command; import com.sy599.game.gcommand.BaseCommand; import com.sy599.game.qipai.AbstractCommandProcessor; import com.sy599.game.util.ObjectUtil; import com.sy599.game.qipai.pdkuai.bean.PdkPlayer; import com.sy599.game.qipai.pdkuai.command.play.CutCardCommand; import com.sy599.game.qipai.pdkuai.command.play.PlayCommand; import com.sy599.game.util.LogUtil; import com.sy599.game.websocket.constant.WebSocketMsgType; import java.util.HashMap; import java.util.Map; public class PdkCommandProcessor extends AbstractCommandProcessor<PdkPlayer> { private static PdkCommandProcessor processor = new PdkCommandProcessor(); private static Map<Short, Class<? extends BaseCommand<PdkPlayer>>> commandMap = new HashMap<Short, Class<? extends BaseCommand<PdkPlayer>>>(); private static Map<Class<?>, Short> msgClassToMsgTypeMap = new HashMap<Class<?>, Short>(); static { // commandMap.put(WebSocketMsgType.cs_com, ComCommand.class); commandMap.put(WebSocketMsgType.cs_play, PlayCommand.class); commandMap.put(WebSocketMsgType.cs_com, CutCardCommand.class); // commandMap.put(WebSocketMsgType.cs_com, PdkComCommand.class); try { for (Short type : commandMap.keySet()) { Class<? extends BaseCommand> cl = commandMap.get(type); BaseCommand action = ObjectUtil.newInstance(cl); Map<Class<?>, Short> msgTypeMap = action.getMsgTypeMap(); if (msgTypeMap != null && !msgTypeMap.isEmpty()) { for (Class<?> msgClass : msgTypeMap.keySet()) { if (msgClassToMsgTypeMap.containsKey(msgClass)) { throw new Exception("msgClassToMsgTypeMap err!!!!"); } else { msgClassToMsgTypeMap.put(msgClass, msgTypeMap.get(msgClass)); } } } } } catch (Exception e) { LogUtil.e("SocketAcitonProcessor err:", e); } } public static PdkCommandProcessor getInstance() { return processor; } public short getMsgType(Class<?> clazz) { if (msgClassToMsgTypeMap.containsKey(clazz)) { return msgClassToMsgTypeMap.get(clazz); } return 0; } @Override public Map<Short, Class<? extends BaseCommand<PdkPlayer>>> loadCommands() { return commandMap; } }
[ "ee68i5@yeah.net" ]
ee68i5@yeah.net
8ac60ecb70a764eac4a076a2c763cce970aed40e
c9578926823151cec7479c6fa0bcae9a8399595e
/org.modeldriven.alf/src/org/modeldriven/alf/uml/PrimitiveType.java
6a8621ddc713ddb21175dbe8cf7f808b3e81ba6f
[]
no_license
ModelDriven/Alf-Reference-Implementation
1eb6f3b08fbbce72523bf0ab4dddb42101862281
36ad46b9201138b1392ea9aa8f2038550f00fa19
refs/heads/master
2023-04-06T20:57:11.180992
2023-03-28T20:37:40
2023-03-28T21:06:14
47,217,748
33
3
null
2020-10-21T14:13:21
2015-12-01T21:12:48
Java
UTF-8
Java
false
false
656
java
/******************************************************************************* * Copyright 2011, 2013 Model Driven Solutions, Inc. * All rights reserved worldwide. This program and the accompanying materials * are made available for use under the terms of the GNU General Public License * (GPL) version 3 that accompanies this distribution and is available at * http://www.gnu.org/licenses/gpl-3.0.html. For alternative licensing terms, * contact Model Driven Solutions. *******************************************************************************/ package org.modeldriven.alf.uml; public interface PrimitiveType extends DataType { }
[ "ed-s@modeldriven.com" ]
ed-s@modeldriven.com
eccf36d20316c75d155304e69663952daedde888
f6c34e7f311cbb502d198b924a3c75c400aafbd7
/jservlet2-examples/ch13/HelloJapan.java
1e4ae1ac2fb652bd6cea386f793d4cea60d21b5e
[ "LicenseRef-scancode-oreilly-notice" ]
permissive
golddusty/javaservletprogramming
856d49670c4b8f47efb823ab6f4683066035f4dc
2fcd33b8ebe6dc36564a23aa3e27163d4e7cdf66
refs/heads/master
2020-06-04T06:02:17.054928
2017-06-27T15:04:34
2017-06-27T15:04:34
191,897,888
0
0
null
null
null
null
UTF-8
Java
false
false
855
java
import java.io.*; import java.text.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class HelloJapan extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/plain; charset=Shift_JIS"); PrintWriter out = res.getWriter(); res.setHeader("Content-Language", "ja"); Locale locale = new Locale("ja", ""); DateFormat full = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, locale); out.println("In Japanese:"); out.println("\u4eca\u65e5\u306f\u4e16\u754c"); // Hello World out.println(full.format(new Date())); } }
[ "booktech@oreilly.com" ]
booktech@oreilly.com
3b285756ec6608e6877b9cd092768b9b83bb92ff
09a631fbd3d75e9b578fee760f30165590fff0a7
/app/src/main/java/com/randomappsinc/simpleflashcards/quizlet/api/QuizletRestClient.java
79e9c97d209596400a0865e2701ff031d2dc533f
[ "Apache-2.0" ]
permissive
laithhas/Simple-Flashcards
f7532d806fc2be6e591549499845836c024f970e
bdbec74e6047e8ad5fab16d9a85081e8dc4d8711
refs/heads/master
2022-02-17T20:07:16.470019
2019-08-27T05:19:22
2019-08-27T05:19:22
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,349
java
package com.randomappsinc.simpleflashcards.quizlet.api; import android.os.Handler; import android.os.HandlerThread; import com.randomappsinc.simpleflashcards.quizlet.api.callbacks.FetchFlashcardSetCallback; import com.randomappsinc.simpleflashcards.quizlet.api.callbacks.FindFlashcardSetsCallback; import com.randomappsinc.simpleflashcards.quizlet.api.models.QuizletFlashcardSet; import com.randomappsinc.simpleflashcards.quizlet.api.models.QuizletSearchResults; import okhttp3.OkHttpClient; import retrofit2.Call; import retrofit2.Retrofit; import retrofit2.converter.gson.GsonConverterFactory; public class QuizletRestClient { private static final long SEARCH_DELAY_MILLISECONDS = 1000L; private final Runnable searchRunnable = new Runnable() { @Override public void run() { currentFindFlashcardSetsCall = quizletService.findFlashcardSets( currentSearchTerm, imageSetsOnly, pageToFetch, ApiConstants.PAGE_SIZE); currentFindFlashcardSetsCall.enqueue(new FindFlashcardSetsCallback()); } }; private static QuizletRestClient instance; protected QuizletService quizletService; private Handler handler; private Handler searchHandler; private boolean isPaginating = false; protected String currentSearchTerm; protected int imageSetsOnly; protected int pageToFetch; protected Call<QuizletSearchResults> currentFindFlashcardSetsCall; protected Call<QuizletFlashcardSet> currentFetchSetCall; public static QuizletRestClient getInstance() { if (instance == null) { instance = new QuizletRestClient(); } return instance; } private QuizletRestClient() { OkHttpClient client = new OkHttpClient.Builder() .addInterceptor(new QuizletAuthInterceptor()) .build(); Retrofit retrofit = new Retrofit.Builder() .baseUrl(ApiConstants.BASE_URL) .client(client) .addConverterFactory(GsonConverterFactory.create()) .build(); quizletService = retrofit.create(QuizletService.class); HandlerThread backgroundThread = new HandlerThread(""); backgroundThread.start(); handler = new Handler(backgroundThread.getLooper()); HandlerThread backgroundSearchThread = new HandlerThread(""); backgroundSearchThread.start(); searchHandler = new Handler(backgroundSearchThread.getLooper()); } void doFlashcardSetSearch(final String searchTerm, final int imageSetsOnly) { searchHandler.removeCallbacks(searchRunnable); isPaginating = false; pageToFetch = 1; currentSearchTerm = searchTerm; this.imageSetsOnly = imageSetsOnly; handler.post(() -> { if (currentFetchSetCall != null) { currentFetchSetCall.cancel(); } searchHandler.postDelayed(searchRunnable, SEARCH_DELAY_MILLISECONDS); }); } void fetchNewPage() { if (!isPaginating) { isPaginating = true; currentFindFlashcardSetsCall = quizletService.findFlashcardSets( currentSearchTerm, imageSetsOnly, pageToFetch, ApiConstants.PAGE_SIZE); currentFindFlashcardSetsCall.enqueue(new FindFlashcardSetsCallback()); } } void onFlashcardSetsFetched() { isPaginating = false; pageToFetch++; } void cancelFlashcardsSearch() { handler.post(() -> { if (currentFindFlashcardSetsCall != null) { currentFindFlashcardSetsCall.cancel(); } }); } void fetchFlashcardSet(final long setId) { handler.post(() -> { if (currentFetchSetCall != null) { currentFetchSetCall.cancel(); } currentFetchSetCall = quizletService.getFlashcardSetInfo(setId); currentFetchSetCall.enqueue(new FetchFlashcardSetCallback()); }); } void cancelFlashcardSetFetch() { handler.post(() -> { if (currentFetchSetCall != null) { currentFetchSetCall.cancel(); } }); } }
[ "chessnone@yahoo.com" ]
chessnone@yahoo.com
1dc088923749f10297228ec2811244399bea4477
534efe193f0fdcf0a386b5092508779555587c80
/2.JavaCore/src/com/javarush/task/task14/task1408/Solution.java
1cd6e55f4a2ae907f3895248273bef424c815337
[]
no_license
teoheel/JavaRushTasks
b1ddef5da78858aa1b462d19042208a5f1241688
447e9c3172324251aaaccd1e50134c2b4005b544
refs/heads/master
2023-07-16T04:59:32.379948
2021-09-06T14:54:15
2021-09-06T14:54:15
284,746,280
0
0
null
null
null
null
UTF-8
Java
false
false
854
java
package com.javarush.task.task14.task1408; /* Куриная фабрика */ public class Solution { public static void main(String[] args) { Hen hen = HenFactory.getHen(Country.BELARUS); hen.getCountOfEggsPerMonth(); } static class HenFactory { static Hen getHen(String country) { Hen hen = null; //напишите тут ваш код if (country == Country.BELARUS) { hen = new BelarusianHen(); } if (country == Country.MOLDOVA) { hen = new MoldovanHen(); } if (country == Country.RUSSIA) { hen = new RussianHen(); } if (country == Country.UKRAINE) { hen = new UkrainianHen(); } return hen; } } }
[ "69160439+teoheel@users.noreply.github.com" ]
69160439+teoheel@users.noreply.github.com
66bd43c918f51e7a975c9ab6573e3b4a4ec03298
cf1c7cd146b381cb83c4e5910c35fef936a5ec14
/utils-project/java-dom/src/main/java/com/asakusafw/utils/java/internal/model/syntax/ParenthesizedExpressionImpl.java
eb3fa17bf1f931ca29c167905fc200d3f03afd5c
[ "Apache-2.0" ]
permissive
claymodel/asakusafw
b0df814b608ccf2446a0a2cf4f8503dcc065e92b
d86fd41add8c32e0b8a3b83d367ed0bd2754f00a
refs/heads/master
2021-01-18T01:59:06.648773
2013-07-26T12:18:20
2013-07-26T12:18:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,148
java
/** * Copyright 2011-2013 Asakusa Framework Team. * * 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.asakusafw.utils.java.internal.model.syntax; import com.asakusafw.utils.java.model.syntax.Expression; import com.asakusafw.utils.java.model.syntax.ModelKind; import com.asakusafw.utils.java.model.syntax.ParenthesizedExpression; import com.asakusafw.utils.java.model.syntax.Visitor; /** * {@link ParenthesizedExpression}の実装。 */ public final class ParenthesizedExpressionImpl extends ModelRoot implements ParenthesizedExpression { /** * 内包する式。 */ private Expression expression; @Override public Expression getExpression() { return this.expression; } /** * 内包する式を設定する。 * @param expression * 内包する式 * @throws IllegalArgumentException * {@code expression}に{@code null}が指定された場合 */ public void setExpression(Expression expression) { Util.notNull(expression, "expression"); //$NON-NLS-1$ this.expression = expression; } /** * この要素の種類を表す{@link ModelKind#PARENTHESIZED_EXPRESSION}を返す。 * @return {@link ModelKind#PARENTHESIZED_EXPRESSION} */ @Override public ModelKind getModelKind() { return ModelKind.PARENTHESIZED_EXPRESSION; } @Override public <R, C, E extends Throwable> R accept( Visitor<R, C, E> visitor, C context) throws E { Util.notNull(visitor, "visitor"); //$NON-NLS-1$ return visitor.visitParenthesizedExpression(this, context); } }
[ "akirakw@gmail.com" ]
akirakw@gmail.com
2cb3bf9931637a04b1b5ae4149e09f831bb8ca13
de2eff0e71efe69175d7e54889d84d449d6ed974
/ext-api/src/main/java/org/omg/SecurityLevel2/DelegationDirectivePolicyHelper.java
4d04e12ef98896abd6bf67b1f1b6e0675fb0d3a8
[]
no_license
mmusgrov/corba
bb266f631ebdcbabb4719f7d70cb8c766609a3e5
03d993498b68d745018061b39196e7818e0fe64d
refs/heads/master
2021-01-18T10:42:20.114343
2013-01-22T06:02:07
2013-01-22T06:02:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,898
java
package org.omg.SecurityLevel2; /** * Generated from IDL interface "DelegationDirectivePolicy". * * @author JacORB IDL compiler V 2.3.1, 27-May-2009 * @version generated at 10/01/2013 11:46:17 AM */ public final class DelegationDirectivePolicyHelper { public static void insert (final org.omg.CORBA.Any any, final org.omg.SecurityLevel2.DelegationDirectivePolicy s) { any.insert_Object(s); } public static org.omg.SecurityLevel2.DelegationDirectivePolicy extract(final org.omg.CORBA.Any any) { return narrow(any.extract_Object()) ; } public static org.omg.CORBA.TypeCode type() { return org.omg.CORBA.ORB.init().create_interface_tc("IDL:omg.org/SecurityLevel2/DelegationDirectivePolicy:1.0", "DelegationDirectivePolicy"); } public static String id() { return "IDL:omg.org/SecurityLevel2/DelegationDirectivePolicy:1.0"; } public static DelegationDirectivePolicy read(final org.omg.CORBA.portable.InputStream in) { return narrow(in.read_Object()); } public static void write(final org.omg.CORBA.portable.OutputStream _out, final org.omg.SecurityLevel2.DelegationDirectivePolicy s) { _out.write_Object(s); } public static org.omg.SecurityLevel2.DelegationDirectivePolicy narrow(final org.omg.CORBA.Object obj) { if (obj == null) { return null; } else if (obj instanceof org.omg.SecurityLevel2.DelegationDirectivePolicy) { return (org.omg.SecurityLevel2.DelegationDirectivePolicy)obj; } else { throw new org.omg.CORBA.BAD_PARAM("Narrow failed"); } } public static org.omg.SecurityLevel2.DelegationDirectivePolicy unchecked_narrow(final org.omg.CORBA.Object obj) { if (obj == null) { return null; } else if (obj instanceof org.omg.SecurityLevel2.DelegationDirectivePolicy) { return (org.omg.SecurityLevel2.DelegationDirectivePolicy)obj; } else { throw new org.omg.CORBA.BAD_PARAM("Narrow failed"); } } }
[ "stuart.w.douglas@gmail.com" ]
stuart.w.douglas@gmail.com
3913acacb3cf6fec6b25593b2aad6c466a4a1006
857c202fc186292878f11437f9bbe5f57821e585
/app/src/main/java/vollyemultipart/ServerResponseCode.java
9bfcfc6be3d0ae064f86b259ba087707d7c45bc8
[]
no_license
nehadubey2394/Uhungry
d1f145f82a5d9b794a926d7897dcc4863f9230d3
2a42b312c29dff0df08ca18d4de6ef2b3e1da146
refs/heads/master
2020-03-28T23:01:37.514268
2018-09-18T10:43:01
2018-09-18T10:43:01
149,271,803
1
0
null
null
null
null
UTF-8
Java
false
false
1,685
java
package vollyemultipart; public class ServerResponseCode { public static String getmeesageCode(int code){ String valueofmessage ="" ; switch (code){ case 101: valueofmessage = "Continue"; break; case 200: valueofmessage = "Ok"; break; case 202: valueofmessage = "Accepted"; break; case 203: valueofmessage = "Non-Authoritative Information"; break; case 204: valueofmessage = "No Content"; break; case 300: valueofmessage = "Multiple Choices"; break; case 302: valueofmessage = "Found"; break; case 304: valueofmessage = "Not Modified"; break; case 305: valueofmessage = "Use Proxy"; break; case 400: valueofmessage = "Your session is expired please login again"; break; case 404: valueofmessage = "Not Found"; break; case 502: valueofmessage = "Bad Gateway"; break; case 503: valueofmessage = "Service Unavailable"; break; case 504: valueofmessage = "Gateway Timeout"; break; case 505: valueofmessage = "HTTP Version Not Supported"; break; } return valueofmessage; } }
[ "neha.mindiii@gmail.com" ]
neha.mindiii@gmail.com
c5e4897ac0dc8fb0ee95e0551964de0ea1380e6e
d71e879b3517cf4fccde29f7bf82cff69856cfcd
/ExtractedJars/Ibotta_com.ibotta.android/javafiles/com/appboy/Appboy$16.java
7008d6fbf135836a1c1105dd0126486986a1eed7
[ "MIT" ]
permissive
Andreas237/AndroidPolicyAutomation
b8e949e072d08cf6c6166c3f15c9c63379b8f6ce
c1ed10a2c6d4cf3dfda8b8e6291dee2c2a15ee8a
refs/heads/master
2020-04-10T02:14:08.789751
2019-05-16T19:29:11
2019-05-16T19:29:11
160,739,088
5
1
null
null
null
null
UTF-8
Java
false
false
1,061
java
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package com.appboy; import java.util.concurrent.Callable; // Referenced classes of package com.appboy: // Appboy, AppboyUser class Appboy$16 implements Callable { public AppboyUser a() { return Appboy.g(a); // 0 0:aload_0 // 1 1:getfield #18 <Field Appboy a> // 2 4:invokestatic #26 <Method AppboyUser Appboy.g(Appboy)> // 3 7:areturn } public Object call() { return ((Object) (a())); // 0 0:aload_0 // 1 1:invokevirtual #30 <Method AppboyUser a()> // 2 4:areturn } final Appboy a; Appboy$16(Appboy appboy) { a = appboy; // 0 0:aload_0 // 1 1:aload_1 // 2 2:putfield #18 <Field Appboy a> super(); // 3 5:aload_0 // 4 6:invokespecial #21 <Method void Object()> // 5 9:return } }
[ "silenta237@gmail.com" ]
silenta237@gmail.com
613501b22846d0bb0e3f48203298072cf359e470
2ce53e37c521a18a1468dd11f6871a0bbffca4db
/plugin/src/main/java/consulo/maven/module/extension/MavenModuleExtensionProvider.java
9c24868c2765781e9e38ecffc3327b5579f40578
[ "Apache-2.0" ]
permissive
consulo/consulo-maven
f41e07942a27e52f060a5263afac231b0a45fbf5
013d3ffc687da61a2d1ac4ddbd23248d5212e592
refs/heads/master
2023-09-01T02:23:41.637143
2023-08-24T08:09:46
2023-08-24T08:09:46
13,903,591
2
2
null
null
null
null
UTF-8
Java
false
false
1,476
java
package consulo.maven.module.extension; import consulo.annotation.component.ExtensionImpl; import consulo.localize.LocalizeValue; import consulo.maven.icon.MavenIconGroup; import consulo.module.content.layer.ModuleExtensionProvider; import consulo.module.content.layer.ModuleRootLayer; import consulo.module.extension.ModuleExtension; import consulo.module.extension.MutableModuleExtension; import consulo.ui.image.Image; import javax.annotation.Nonnull; import javax.annotation.Nullable; /** * @author VISTALL * @since 20/01/2023 */ @ExtensionImpl public class MavenModuleExtensionProvider implements ModuleExtensionProvider<MavenModuleExtension> { @Nonnull @Override public String getId() { return "maven"; } @Nullable @Override public String getParentId() { return "java"; } @Nonnull @Override public LocalizeValue getName() { return LocalizeValue.localizeTODO("Maven"); } @Nonnull @Override public Image getIcon() { return MavenIconGroup.mavenlogo(); } @Nonnull @Override public ModuleExtension<MavenModuleExtension> createImmutableExtension(@Nonnull ModuleRootLayer moduleRootLayer) { return new MavenModuleExtension(getId(), moduleRootLayer); } @Nonnull @Override public MutableModuleExtension<MavenModuleExtension> createMutableExtension(@Nonnull ModuleRootLayer moduleRootLayer) { return new MavenMutableModuleExtension(getId(), moduleRootLayer); } @Override public boolean isSystemOnly() { return true; } }
[ "vistall.valeriy@gmail.com" ]
vistall.valeriy@gmail.com
a30f46bf54886aad74d845c7976ea6867c67ebb2
77c0c4a462091aa0f5f33ea2b4b8e1e772fab90f
/AcciMarket-temp/src-gen/banamex/dominio/src/main/java/com/aforebanamex/plata/cg/dominio/service/TitularContratoService.java
6877dac686b8e752d2c8aa8b5e02ea8f54d66c6f
[]
no_license
javoPB/test-git
29a89cb69f98f0c886f3592ba138e17d9cace281
d8cf1716d168152660c2a3c833894d6f7b5955de
refs/heads/master
2023-01-28T17:28:18.421100
2020-12-09T18:59:21
2020-12-09T18:59:21
300,303,289
0
0
null
null
null
null
UTF-8
Java
false
false
856
java
package com.aforebanamex.plata.cg.dominio.service; import com.aforebanamex.plata.cg.dominio.exception.EliminarTitularContratoInactivoException; import com.aforebanamex.plata.cg.dominio.exception.TitularContratoDuplicadoException; import com.aforebanamex.plata.cg.dominio.exception.PlantillaNoExisteException; import com.aforebanamex.plata.comunes.model.ConsultaSalidaInformacion; import com.aforebanamex.plata.comunes.model.TitularContrato; import com.aforebanamex.plata.comunes.model.RequestPlata; import com.aforebanamex.plata.comunes.model.ResponsePlata; import com.aforebanamex.plata.comunes.model.SubprocesoConsulta; public interface TitularContratoService { void actualizar(TitularContrato data) throws TitularContratoDuplicadoException; void agregar(TitularContrato req) throws TitularContratoDuplicadoException, PlantillaNoExisteException; }
[ "pbjavouam@gmail.com" ]
pbjavouam@gmail.com
06ad2e142e6018fadb2460379eba2084aca804e1
411e9b935c3138660ff8fe91efb57aac922ecc90
/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/codesystems/MedicationRequestStatusEnumFactory.java
da6f236e11de78713dcb9c1ec94946a55d04cbfc
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
pobedite/hapi-fhir
6591f9004f4bd6b59491026d4db6440e20223072
223df60c1d0ad5683b62a801bebf3b3a793e5335
refs/heads/master
2020-06-09T12:59:04.666298
2016-12-08T15:50:42
2016-12-08T15:50:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,468
java
package org.hl7.fhir.dstu3.model.codesystems; /* Copyright (c) 2011+, HL7, Inc. 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 HL7 nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER 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. */ // Generated on Sat, Nov 5, 2016 08:41-0400 for FHIR v1.7.0 import org.hl7.fhir.dstu3.model.EnumFactory; public class MedicationRequestStatusEnumFactory implements EnumFactory<MedicationRequestStatus> { public MedicationRequestStatus fromCode(String codeString) throws IllegalArgumentException { if (codeString == null || "".equals(codeString)) return null; if ("active".equals(codeString)) return MedicationRequestStatus.ACTIVE; if ("on-hold".equals(codeString)) return MedicationRequestStatus.ONHOLD; if ("cancelled".equals(codeString)) return MedicationRequestStatus.CANCELLED; if ("completed".equals(codeString)) return MedicationRequestStatus.COMPLETED; if ("entered-in-error".equals(codeString)) return MedicationRequestStatus.ENTEREDINERROR; if ("stopped".equals(codeString)) return MedicationRequestStatus.STOPPED; if ("draft".equals(codeString)) return MedicationRequestStatus.DRAFT; throw new IllegalArgumentException("Unknown MedicationRequestStatus code '"+codeString+"'"); } public String toCode(MedicationRequestStatus code) { if (code == MedicationRequestStatus.ACTIVE) return "active"; if (code == MedicationRequestStatus.ONHOLD) return "on-hold"; if (code == MedicationRequestStatus.CANCELLED) return "cancelled"; if (code == MedicationRequestStatus.COMPLETED) return "completed"; if (code == MedicationRequestStatus.ENTEREDINERROR) return "entered-in-error"; if (code == MedicationRequestStatus.STOPPED) return "stopped"; if (code == MedicationRequestStatus.DRAFT) return "draft"; return "?"; } public String toSystem(MedicationRequestStatus code) { return code.getSystem(); } }
[ "jamesagnew@gmail.com" ]
jamesagnew@gmail.com
d64686dda8f2d41c73718959c667c56c2a81a77a
75a89809d9feb274dcb537362442b974f4ba3494
/app/src/main/java/com/dyaco/spiritbike/support/ScreenReceiver.java
453b55997d06a3caaa03834543f097b6ca0a7c66
[]
no_license
bluce-clj/SoleF85
77fbaa411862b64ea8c6a653b31bb021fb3317a4
c1784ab70581e66d78eded32b845942bbcd30c2a
refs/heads/master
2023-05-06T09:43:56.684568
2021-05-18T04:59:57
2021-05-18T04:59:57
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,521
java
package com.dyaco.spiritbike.support; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.util.Log; import com.corestar.libs.device.Device; import static com.dyaco.spiritbike.MyApplication.GO_SLEEP; import static com.dyaco.spiritbike.MyApplication.IS_CHILD_LOCKING; import static com.dyaco.spiritbike.MyApplication.WIFI_EVENT; import static com.dyaco.spiritbike.MyApplication.btnFnaI; import static com.dyaco.spiritbike.MyApplication.getInstance; import static com.dyaco.spiritbike.MyApplication.isLocked; import static com.dyaco.spiritbike.MyApplication.wasScreenOn; public class ScreenReceiver extends BroadcastReceiver { @Override public void onReceive(final Context context, final Intent intent) { if (intent.getAction().equals(Intent.ACTION_SCREEN_OFF)) { // do whatever you need to do here Log.d("休眠", "ACTION_SCREEN_OFF: "); IS_CHILD_LOCKING = false; isLocked = true; wasScreenOn = false; btnFnaI = 0; getInstance().mDevice.setFan(Device.FAN.STOP); getInstance().commandSetEup(1); RxBus.getInstance().post(new MsgEvent(GO_SLEEP, true)); } else if (intent.getAction().equals(Intent.ACTION_SCREEN_ON)) { // and do whatever you need to do here wasScreenOn = true; Log.d("休眠", "ACTION_SCREEN_ON: "); getInstance().commandDeviceInfo(); } } }
[ "gorillaz1801058@gmail.com" ]
gorillaz1801058@gmail.com
5d391cfff5c7ce82aa9631b3b4e5201cc011a8ab
fbfc55e7335cd07e38289cd9b291ebbded62a96b
/projetos/algafood-api-resource-server/src/main/java/com/algaworks/algafood/api/v1/controller/EstatisticasController.java
f4377570ef171e1a1da369f9a004aaf244a6eda3
[]
no_license
dvsilva/algaworks-especialista-spring-rest
cc8097a5432fb7d7263f5f5f050a5e05443779f8
c190bb9901d86f6c0eb3ffdedfb1868b8eedd40b
refs/heads/master
2023-04-02T01:44:18.271430
2021-04-02T19:34:26
2021-04-02T19:34:26
304,274,947
0
1
null
2020-12-19T14:03:49
2020-10-15T09:26:38
Java
UTF-8
Java
false
false
2,743
java
package com.algaworks.algafood.api.v1.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.hateoas.RepresentationModel; import org.springframework.http.HttpHeaders; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.algaworks.algafood.api.v1.AlgaLinks; import com.algaworks.algafood.api.v1.openapi.controller.EstatisticasControllerOpenApi; import com.algaworks.algafood.core.security.CheckSecurity; import com.algaworks.algafood.domain.filter.VendaDiariaFilter; import com.algaworks.algafood.domain.model.dto.VendaDiaria; import com.algaworks.algafood.domain.service.VendaQueryService; import com.algaworks.algafood.domain.service.VendaReportService; @RestController @RequestMapping(path = "/v1/estatisticas") public class EstatisticasController implements EstatisticasControllerOpenApi { @Autowired private VendaQueryService vendaQueryService; @Autowired private VendaReportService vendaReportService; @Autowired private AlgaLinks algaLinks; @CheckSecurity.Estatisticas.PodeConsultar @Override @GetMapping(produces = MediaType.APPLICATION_JSON_VALUE) public EstatisticasModel estatisticas() { var estatisticasModel = new EstatisticasModel(); estatisticasModel.add(algaLinks.linkToEstatisticasVendasDiarias("vendas-diarias")); return estatisticasModel; } @CheckSecurity.Estatisticas.PodeConsultar @GetMapping(path = "/vendas-diarias", produces = MediaType.APPLICATION_JSON_VALUE) public List<VendaDiaria> consultarVendasDiarias(VendaDiariaFilter filtro, @RequestParam(required = false, defaultValue = "+00:00") String timeOffset) { return vendaQueryService.consultarVendasDiarias(filtro, timeOffset); } @CheckSecurity.Estatisticas.PodeConsultar @GetMapping(path = "/vendas-diarias", produces = MediaType.APPLICATION_PDF_VALUE) public ResponseEntity<byte[]> consultarVendasDiariasPdf(VendaDiariaFilter filtro, @RequestParam(required = false, defaultValue = "+00:00") String timeOffset) { byte[] bytesPdf = vendaReportService.emitirVendasDiarias(filtro, timeOffset); var headers = new HttpHeaders(); headers.add(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=vendas-diarias.pdf"); return ResponseEntity.ok() .contentType(MediaType.APPLICATION_PDF) .headers(headers) .body(bytesPdf); } public static class EstatisticasModel extends RepresentationModel<EstatisticasModel> { } }
[ "danyllo.dvs@gmail.com" ]
danyllo.dvs@gmail.com
b8f2f4faec8569a596b80ec6ee449ff964414407
1ee03a39164a1ac7e4f2b62b3d98e23c095b8b74
/app/src/main/java/p/js/gtest/media/Encoder.java
d0de8e2795f4cddfb760fb8dce19bcf79ea18a2e
[]
no_license
hub-zjy1024/GTest
248d6a3720a41b8e28cc43c7d19e64726614b524
a4554bb4212f6bc33f17a4c7c9896ed10612aecd
refs/heads/master
2022-02-20T01:19:49.509787
2019-09-04T09:39:33
2019-09-04T09:39:33
198,196,351
0
0
null
null
null
null
UTF-8
Java
false
false
5,549
java
package p.js.gtest.media; import android.media.MediaCodec; import android.media.MediaCodecInfo; import android.media.MediaFormat; import android.util.Log; import android.view.Surface; import java.io.IOException; import java.nio.ByteBuffer; /** Created by 张建宇 on 2019/8/21. */ public class Encoder { public static final int TRY_AGAIN_LATER = -1; public static final int BUFFER_OK = 0; public static final int BUFFER_TOO_SMALL = 1; public static final int OUTPUT_UPDATE = 2; private int format = 0; private final String MIME_TYPE = "video/avc"; private MediaCodec mMC = null; private MediaFormat mMF; private ByteBuffer[] inputBuffers; private ByteBuffer[] outputBuffers; private long BUFFER_TIMEOUT = 0; private MediaCodec.BufferInfo mBI; /** * 初始化编码器 * @throws IOException 创建编码器失败会抛出异常 */ public void init() throws IOException { mMC = MediaCodec.createEncoderByType(MIME_TYPE); format = MediaCodecInfo.CodecCapabilities.COLOR_FormatYUV420Planar; mBI = new MediaCodec.BufferInfo(); } /** * 配置编码器,需要配置颜色、帧率、比特率以及视频宽高 * @param width 视频的宽 * @param height 视频的高 * @param bitrate 视频比特率 * @param framerate 视频帧率 */ public void configure(int width,int height,int bitrate,int framerate){ if(mMF == null){ mMF = MediaFormat.createVideoFormat(MIME_TYPE, width, height); mMF.setInteger(MediaFormat.KEY_BIT_RATE, bitrate); mMF.setInteger(MediaFormat.KEY_FRAME_RATE, framerate); if (format != 0){ mMF.setInteger(MediaFormat.KEY_COLOR_FORMAT, format); } mMF.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, -1); //关键帧间隔时间 单位s } mMC.configure(mMF,null,null,MediaCodec.CONFIGURE_FLAG_ENCODE); } /** 配置编码器,需要配置颜色、帧率、比特率以及视频宽高 @param width 视频的宽 @param height 视频的高 @param bitrate 视频比特率 @param framerate 视频帧率 */ public void configure2(int width, int height, Surface mSurface, int bitrate, int framerate) { if (mMF == null) { mMF = MediaFormat.createVideoFormat(MIME_TYPE, width, height); mMF.setInteger(MediaFormat.KEY_BIT_RATE, bitrate); mMF.setInteger(MediaFormat.KEY_FRAME_RATE, framerate); if (format != 0) { mMF.setInteger(MediaFormat.KEY_COLOR_FORMAT, format); } mMF.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, -1); //关键帧间隔时间 单位s } mMC.configure(mMF, mSurface, null, MediaCodec.CONFIGURE_FLAG_ENCODE); } /** * 开启编码器,获取输入输出缓冲区 */ public void start(){ mMC.start(); inputBuffers = mMC.getInputBuffers(); outputBuffers = mMC.getOutputBuffers(); } /** * 向编码器输入数据,此处要求输入YUV420P的数据 * @param data YUV数据 * @param len 数据长度 * @param timestamp 时间戳 * @return */ public int input(byte[] data,int len,long timestamp){ int index = mMC.dequeueInputBuffer(BUFFER_TIMEOUT); Log.e("...", "dequeueInputBuffer index=" + index); if(index >= 0){ // ByteBuffer inputBuffer = inputBuffers[index]; // inputBuffer.clear(); ByteBuffer inputBuffer = mMC.getInputBuffer(index); if (inputBuffer.capacity() < len) { mMC.queueInputBuffer(index, 0, 0, timestamp, 0); return BUFFER_TOO_SMALL; } else { inputBuffer.put(data,0,len); mMC.queueInputBuffer(index,0,len,timestamp,0); return BUFFER_OK; } }else{ return index; } } /** * 输出编码后的数据 * @param data 数据 * @param len 有效数据长度 * @param ts 时间戳 * @return */ public int output(/*out*/byte[] data,/* out */int[] len,/* out */long[] ts){ int i = mMC.dequeueOutputBuffer(mBI, BUFFER_TIMEOUT); if(i >= 0){ // if(mBI.size > data.length) return BUFFER_TOO_SMALL; // outputBuffers[i].position(mBI.offset); // outputBuffers[i].limit(mBI.offset + mBI.size); // outputBuffers[i].get(data, 0, mBI.size); ByteBuffer outputBuffers = mMC.getOutputBuffer(i); outputBuffers.position(mBI.offset); outputBuffers.limit(mBI.offset + mBI.size); outputBuffers.get(data, 0, mBI.size); len[0] = mBI.size ; ts[0] = mBI.presentationTimeUs; mMC.releaseOutputBuffer(i, false); } else if (i == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED) { outputBuffers = mMC.getOutputBuffers(); return OUTPUT_UPDATE; } else if (i == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) { mMF = mMC.getOutputFormat(); return OUTPUT_UPDATE; } else if (i == MediaCodec.INFO_TRY_AGAIN_LATER) { return TRY_AGAIN_LATER; } return BUFFER_OK; } public void release(){ mMC.stop(); mMC.release(); mMC = null; outputBuffers = null; inputBuffers = null; } public void flush() { mMC.flush(); } }
[ "851280963@qq.com" ]
851280963@qq.com
68c797dd4247a58123f351811f2d94f8c46ba5b5
9ccb632efc5767fd570d912d2c3f3cf7bcbc7943
/04JavaOOP/01WorkingWithAbstraction_Exercises/03CardsWithPower/CardRank.java
4d486c1a892f59578a42eaa4b1427062ca52f656
[]
no_license
CrystallizedSnowflakes/Java-SoftUni
59203e45589bd2c77c0e95ec40246f3a672f1ba5
753b132649c2b94d29e727db0d8753be52cf3133
refs/heads/main
2023-07-11T01:29:42.474682
2021-08-23T16:41:27
2021-08-23T16:41:27
321,304,125
0
0
null
null
null
null
UTF-8
Java
false
false
374
java
package e03CardsWithPower; public enum CardRank { ACE(14), TWO(2), THREE(3), FOUR(4), FIVE(5), SIX(6), SEVEN(7), EIGHT(8), NINE(9), TEN(10), JACK(11), QUEEN(12), KING(13); private int power; CardRank(int power) { this.power = power; } public int getPower() { return this.power; } }
[ "nadezhda.georgieva2@gmail.com" ]
nadezhda.georgieva2@gmail.com
3c1fe27a132ba12da986199834b3dc1d2fb0f34f
b2686811a65c31a19040562687291f81a11e2179
/source/core/nl.uva.vlet.glite.lfc/src/nl/uva/vlet/glite/lfc/internal/CnsGStatResponse.java
0a1fdf26947b58c721486625f813c4ea044140f5
[ "Apache-2.0" ]
permissive
skoulouzis/vlet
5d98ec5925491ed1149a88d46ae55ea34598784e
a9effed8947723cf0b40182cf8d4175252ed080e
refs/heads/master
2016-09-06T09:15:37.496823
2015-11-30T17:33:00
2015-11-30T17:33:00
27,225,958
0
0
null
null
null
null
UTF-8
Java
false
false
1,637
java
/* * Initial development of the original code was made for the * g-Eclipse project founded by European Union * project number: FP6-IST-034327 http://www.geclipse.eu/ * * Contributors: * Mateusz Pabis (PSNC) - initial API and implementation * Piter T. de boer - Refactoring to standalone API and bugfixing. * Spiros Koulouzis - Refactoring to standalone API and bugfixing. */ package nl.uva.vlet.glite.lfc.internal; import java.io.DataInputStream; import java.io.IOException; import nl.uva.vlet.glite.lfc.LFCError; import nl.uva.vlet.glite.lfc.LFCServer; import nl.uva.vlet.glite.lfc.Messages; /** * Encapsulates LFC server response to requested LSTAT command.<br> * Receives 12 byte header and then link description * @see CnsLinkStatRequest */ public class CnsGStatResponse extends AbstractCnsResponse { private FileDesc fileDesc; /** * @return received link description * @see FileDesc */ public FileDesc getFileDesc() { return this.fileDesc; } @Override public void readFrom( final DataInputStream input ) throws IOException { LFCServer.staticLogIOMessage( Messages.lfc_log_recv_statg ); // Header super.readFrom( input ); // check for response type if ( this.type == CnsConstants.CNS_RC ) { // received RESET CONTEXT request! // we have an error! LFCServer.staticLogIOMessage( "RESPONSE: " + LFCError.getMessage( this.size ) ); //$NON-NLS-1$ } else { // Data this.fileDesc = FileDesc.getFromStream( input, false, true, true, false ); this.size = super.receiveHeader( input ); } } }
[ "devpiter@796de75e-ed0f-4de0-881b-f1dc9bee7bff" ]
devpiter@796de75e-ed0f-4de0-881b-f1dc9bee7bff
5942754e768242c02dbf19812b5cc219046e02a7
7dc6bf17c5acc4a5755063a3ffc0c86f4b6ad8c3
/java_decompiled_from_smali/com/google/android/gms/maps/model/VisibleRegion.java
af3917bf3fa6d3eac0c20b8339ff0dcc8eaeb884
[]
no_license
alecsandrudaj/mobileapp
183dd6dc5c2fe8ab3aa1f21495d4221e6f304965
b1b4ad337ec36ffb125df8aa1d04c759c33c418a
refs/heads/master
2023-02-19T18:07:50.922596
2021-01-07T15:30:44
2021-01-07T15:30:44
300,325,195
0
0
null
2020-11-19T13:26:25
2020-10-01T15:18:57
Smali
UTF-8
Java
false
false
1,912
java
package com.google.android.gms.maps.model; import android.os.Parcel; import com.google.android.gms.common.internal.safeparcel.SafeParcelable; import com.google.android.gms.internal.dl; import com.google.android.gms.maps.a.bk; public final class VisibleRegion implements SafeParcelable { public static final p CREATOR = new p(); public final LatLng a; public final LatLng b; public final LatLng c; public final LatLng d; public final LatLngBounds e; private final int f; VisibleRegion(int i, LatLng latLng, LatLng latLng2, LatLng latLng3, LatLng latLng4, LatLngBounds latLngBounds) { this.f = i; this.a = latLng; this.b = latLng2; this.c = latLng3; this.d = latLng4; this.e = latLngBounds; } /* Access modifiers changed, original: 0000 */ public int a() { return this.f; } public int describeContents() { return 0; } public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof VisibleRegion)) { return false; } VisibleRegion visibleRegion = (VisibleRegion) obj; return this.a.equals(visibleRegion.a) && this.b.equals(visibleRegion.b) && this.c.equals(visibleRegion.c) && this.d.equals(visibleRegion.d) && this.e.equals(visibleRegion.e); } public int hashCode() { return dl.a(this.a, this.b, this.c, this.d, this.e); } public String toString() { return dl.a((Object) this).a("nearLeft", this.a).a("nearRight", this.b).a("farLeft", this.c).a("farRight", this.d).a("latLngBounds", this.e).toString(); } public void writeToParcel(Parcel parcel, int i) { if (bk.a()) { aa.a(this, parcel, i); } else { p.a(this, parcel, i); } } }
[ "rgosa@bitdefender.com" ]
rgosa@bitdefender.com
eec351c8c73182416d1e3421fc1d35a1966f44ce
1895bdbfc3d5bfc10dcb4ed75f81e8416d618fb7
/src/main/java/com/example/pattern/SingletonExample2.java
43f88c9c165f8b3e847b421aede737eb53fee557
[]
no_license
whz-NJ/demo
057973484239037bc6a81dbdecf1f47636313f50
3879b2b630600b0c1eef695f8a2030395e486513
refs/heads/master
2020-04-13T18:49:25.065883
2018-09-16T04:59:52
2018-09-16T04:59:52
null
0
0
null
null
null
null
UTF-8
Java
false
false
453
java
package com.example.pattern; import com.annotation.ThreadSafe; @ThreadSafe public class SingletonExample2 { // 私有构造方法 private SingletonExample2 () { } // 单例对象 private static SingletonExample2 instance = null; // 静态代码块是按照顺序执行的,所以上下两个顺序不能调 static { instance = new SingletonExample2(); } public static SingletonExample2 getInstance () { return instance; } }
[ "pamgogdpyc@163.com" ]
pamgogdpyc@163.com
5159be712a456496531794297d7d8637f17fd9f0
410ddd0f6aab1474b441a308279d35a94d1cb69a
/app/src/main/java/com/hongyuan/fitness/ui/main/main_home/recommend/vtwo_home/VtwoStarCoachBean.java
d857611fe514cecc1b95774967f32ff90830330c
[]
no_license
cdj416/Fitness
580a1ff9826bed311891acb85bdd6697df8b6479
f053ba4217c4cd06a98635646626663bc1e2e43b
refs/heads/master
2021-07-07T18:47:08.691901
2019-09-06T06:36:45
2019-09-06T06:36:45
206,727,488
0
0
null
null
null
null
UTF-8
Java
false
false
5,188
java
package com.hongyuan.fitness.ui.main.main_home.recommend.vtwo_home; import com.hongyuan.fitness.base.BaseBean; import java.util.List; public class VtwoStarCoachBean extends BaseBean { /** * hasmore : false * curpage : 1 * page_total : 1 * data : {"list":[{"coach_head":"http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20190722/3749235a38c65966c07dbcc49d7855af6c726aff_800x600.jpg","coach_nickname":"小明","mi_sex":1,"m_id":3,"coach_ft_ids":"7,6,4,3","os_name":"首玺健身(环城西路店)","os_id":16,"distance_um":1778,"total_course":6,"cp_price":0.01,"ft_str":"塑形/POS/拉伸/康复","last_kong_date":"2019-08-17 10:30"}]} */ private boolean hasmore; private int curpage; private int page_total; private DataBean data; public boolean isHasmore() { return hasmore; } public void setHasmore(boolean hasmore) { this.hasmore = hasmore; } public int getCurpage() { return curpage; } public void setCurpage(int curpage) { this.curpage = curpage; } public int getPage_total() { return page_total; } public void setPage_total(int page_total) { this.page_total = page_total; } public DataBean getData() { return data; } public void setData(DataBean data) { this.data = data; } public static class DataBean { private List<ListBean> list; public List<ListBean> getList() { return list; } public void setList(List<ListBean> list) { this.list = list; } public static class ListBean { /** * coach_head : http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20190722/3749235a38c65966c07dbcc49d7855af6c726aff_800x600.jpg * coach_nickname : 小明 * mi_sex : 1 * m_id : 3 * coach_ft_ids : 7,6,4,3 * os_name : 首玺健身(环城西路店) * os_id : 16 * distance_um : 1778 * total_course : 6 * cp_price : 0.01 * ft_str : 塑形/POS/拉伸/康复 * last_kong_date : 2019-08-17 10:30 */ private String coach_head; private String coach_nickname; private int mi_sex; private int m_id; private String coach_ft_ids; private String os_name; private int os_id; private int distance_um; private int total_course; private double cp_price; private String ft_str; private String last_kong_date; public String getCoach_head() { return coach_head; } public void setCoach_head(String coach_head) { this.coach_head = coach_head; } public String getCoach_nickname() { return coach_nickname; } public void setCoach_nickname(String coach_nickname) { this.coach_nickname = coach_nickname; } public int getMi_sex() { return mi_sex; } public void setMi_sex(int mi_sex) { this.mi_sex = mi_sex; } public int getM_id() { return m_id; } public void setM_id(int m_id) { this.m_id = m_id; } public String getCoach_ft_ids() { return coach_ft_ids; } public void setCoach_ft_ids(String coach_ft_ids) { this.coach_ft_ids = coach_ft_ids; } public String getOs_name() { return os_name; } public void setOs_name(String os_name) { this.os_name = os_name; } public int getOs_id() { return os_id; } public void setOs_id(int os_id) { this.os_id = os_id; } public int getDistance_um() { return distance_um; } public void setDistance_um(int distance_um) { this.distance_um = distance_um; } public int getTotal_course() { return total_course; } public void setTotal_course(int total_course) { this.total_course = total_course; } public double getCp_price() { return cp_price; } public void setCp_price(double cp_price) { this.cp_price = cp_price; } public String getFt_str() { return ft_str; } public void setFt_str(String ft_str) { this.ft_str = ft_str; } public String getLast_kong_date() { return last_kong_date; } public void setLast_kong_date(String last_kong_date) { this.last_kong_date = last_kong_date; } } } }
[ "179966827@qq.com" ]
179966827@qq.com
1d404f7ae3b6414d49aa00e057c739f5963cf2b8
093e87146b0a75d409d70fb94cbda318c0a59e55
/bibliotheque-serveur/bibliotheque-serveur-business/src/main/java/fr/oc/projet/business/contract/manager/bibliotheque/LivreUniqueManager.java
0dff5013581ef40a66aa289ec546ee959fb03bd0
[]
no_license
YoannR09/Projet_10_OC
ae8070760ec34c977268f0c9f1292c184843e1a7
5420db99f05fff14358d2f6097d80bc6fc94406c
refs/heads/master
2022-10-16T14:41:36.017204
2019-11-12T16:59:02
2019-11-12T16:59:02
214,351,719
0
0
null
2022-09-22T18:54:27
2019-10-11T05:36:08
Java
UTF-8
Java
false
false
1,628
java
package fr.oc.projet.business.contract.manager.bibliotheque; import fr.oc.projet.model.beans.bibliotheque.LivreUnique; import java.util.List; public interface LivreUniqueManager { LivreUnique getLivreUnique(Integer pId); List<LivreUnique> getListLivreUniqueTitreAuteurISBN(String titre, String auteur, String isbn); List<LivreUnique> getListLivreUniqueTitreAuteur(String titre,String auteur); List<LivreUnique> getListLivreUniqueAuteurISBN(String auteur,String isbn); List<LivreUnique> getListLivreUniqueTitreISBN(String titre,String isbn); List<LivreUnique> getListLivreUniqueTitre(String titre); List<LivreUnique> getListLivreUniqueAuteur(String auteur); List<LivreUnique> getListLivreUniqueISBN(String isbn); List<LivreUnique> getListLivreUniqueTitreAuteurISBNBibliotheque(String titre, String auteur, String isbn, Integer bibliothequeId); List<LivreUnique> getListLivreUniqueTitreAuteurBibliotheque(String titre,String auteur, Integer bibliothequeId); List<LivreUnique> getListLivreUniqueAuteurISBNBibliotheque(String auteur,String isbn, Integer bibliothequeId); List<LivreUnique> getListLivreUniqueTitreISBNBibliotheque(String titre,String isbn, Integer bibliothequeId); List<LivreUnique> getListLivreUniqueTitreBibliotheque(String titre, Integer bibliothequeId); List<LivreUnique> getListLivreUniqueAuteurBibliotheque(String auteur, Integer bibliothequeId); List<LivreUnique> getListLivreUniqueISBNBibliotheque(String isbn, Integer bibliothequeId); List<LivreUnique> getListLivreUnique(); void updateDispo(LivreUnique livreUnique); }
[ "el-rambo-poto@hotmail.fr" ]
el-rambo-poto@hotmail.fr
c1100d40330188f7fc23b5a4cbc9fe2183f4f4a9
0ae1a440558a9a02933eb000f5529a34e559211c
/src/test/java/TeegonConsumeClientTest.java
d8282f45169eeb0a28e3ba3479ca450f44bce54f
[]
no_license
superemewill/teegon_java
39203ae66fdfb756464094163210ef0d3b766c39
14d7a8cb2e04bcb38533e12da5f8e468ae204308
refs/heads/master
2020-03-19T16:33:55.913095
2018-06-06T07:18:42
2018-06-06T07:18:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,473
java
import com.teegon.sdk.inter.MsgHandler; import com.teegon.sdk.pojo.ResponseMsg; import com.teegon.sdk.TeegonClient; import jp.a840.websocket.WebSocket; import jp.a840.websocket.exception.WebSocketException; import org.apache.log4j.Logger; import org.junit.Test; public class TeegonConsumeClientTest { private static Logger logger = Logger.getLogger(TeegonConsumeClientTest.class); String url = "http://192.168.10.73:8001/message/websocket"; String appkey = "6w8m6yb"; String secret = "xGRwfwWJaNeFsDhT8Fty"; Boolean block_model = true; @Test public void websocketConnect() { final TeegonClient teegonClient = new TeegonClient(url, appkey, secret, block_model); teegonClient.setTeegonMsgHandler(new MsgHandler() { public void onOpen(WebSocket socket) { logger.info("---> open"); consume(teegonClient); } public void onMessage(WebSocket socket, ResponseMsg resMsg) { System.out.println("---> receive msg:" + resMsg); } public void onError(WebSocket socket, WebSocketException e) { } public void onClose(WebSocket socket) { System.out.println("---> close"); } }); teegonClient.executeNotify(); } public void consume(TeegonClient teegonClient) { teegonClient.consume("default"); } }
[ "daixinyu@shopex.cn" ]
daixinyu@shopex.cn
757073f10272c59829179d0eb2a967263e9c24ac
13516f81274e767d2bcece79dca22752461471e1
/maven-java-02-algorithm_and_data_structures/src/main/java/com/zzt/data_structures/queue/QueueDemo01.java
b3d84952a2262a5e3c9a9d82df880b7503cf5f76
[]
no_license
zhouzhitong/maven-java-learning_route
899d7aa2d8546c7fc6e2af371a704b462bfccb02
776ef9cbe5d46d5930fee5b9703c83a7da791115
refs/heads/master
2023-02-20T17:32:33.595828
2020-10-22T13:22:16
2020-10-22T13:22:16
296,757,433
0
1
null
null
null
null
UTF-8
Java
false
false
562
java
package com.zzt.data_structures.queue; import java.util.LinkedList; import java.util.Queue; /** * 描述:<br>队列: * 特点:1. 先进先出。 * </> * * @author 周志通 * @version 1.0.0 * @date 2020/9/12 17:50 */ public class QueueDemo01 { public static void main(String[] args) { Queue<Integer> queue = new LinkedList<>(); queue.add(1); queue.add(2); queue.offer(3); System.out.println(queue.poll()); System.out.println(queue.poll()); System.out.println(queue.poll()); } }
[ "528382226@qq.com" ]
528382226@qq.com
98605b1b53ee8dd0555a6f7e1ce97bbd006a15ab
8dc84558f0058d90dfc4955e905dab1b22d12c08
/third_party/mockito/src/src/main/java/org/mockito/internal/matchers/text/ValuePrinter.java
f382c39ffb261bcc7046e978755a984205e2ec84
[ "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
meniossin/src
42a95cc6c4a9c71d43d62bc4311224ca1fd61e03
44f73f7e76119e5ab415d4593ac66485e65d700a
refs/heads/master
2022-12-16T20:17:03.747113
2020-09-03T10:43:12
2020-09-03T10:43:12
263,710,168
1
0
BSD-3-Clause
2020-05-13T18:20:09
2020-05-13T18:20:08
null
UTF-8
Java
false
false
2,893
java
package org.mockito.internal.matchers.text; import java.util.Iterator; import static java.lang.String.valueOf; /** * Prints a Java object value in a way humans can read it neatly. * Inspired on hamcrest. Used for printing arguments in verification errors. */ public class ValuePrinter { /** * Prints given value so that it is neatly readable by humans. * Handles explosive toString() implementations. */ public static String print(Object value) { if (value == null) { return "null"; } else if (value instanceof String) { return "\"" + value + "\""; } else if (value instanceof Character) { return printChar((Character) value); } else if (value.getClass().isArray()) { return printValues("[", ", ", "]", new org.mockito.internal.matchers.text.ArrayIterator(value)); } else if (value instanceof FormattedText) { return (((FormattedText) value).getText()); } return descriptionOf(value); } /** * Print values in a nice format, e.g. (1, 2, 3) * * @param start the beginning of the values, e.g. "(" * @param separator the separator of values, e.g. ", " * @param end the end of the values, e.g. ")" * @param values the values to print * * @return neatly formatted value list */ public static String printValues(String start, String separator, String end, Iterator values) { if(start == null){ start = "("; } if (separator == null){ separator = ","; } if (end == null){ end = ")"; } if (values == null){ values = new ArrayIterator(new String[]{""}); } StringBuilder sb = new StringBuilder(start); while(values.hasNext()) { sb.append(print(values.next())); if (values.hasNext()) { sb.append(separator); } } return sb.append(end).toString(); } private static String printChar(char value) { StringBuilder sb = new StringBuilder(); sb.append('\''); switch (value) { case '"': sb.append("\\\""); break; case '\n': sb.append("\\n"); break; case '\r': sb.append("\\r"); break; case '\t': sb.append("\\t"); break; default: sb.append(value); } sb.append('\''); return sb.toString(); } private static String descriptionOf(Object value) { try { return valueOf(value); } catch (Exception e) { return value.getClass().getName() + "@" + Integer.toHexString(value.hashCode()); } } }
[ "arnaud@geometry.ee" ]
arnaud@geometry.ee
885c146fe6f3ab160464de711b9364cc41d0a401
5c14f0308673e38da9b0bdc861953e017b8651fd
/IU/src/external/SmartImageView/SmartImageTask.java
b1c61d3df344cb6b4e3aa4bdbb257ddddb686219
[]
no_license
haiiv/IU
64dc675bde3b50683dcf35915ad138123372c190
8a91c507f7e63d03e6aace5c7a5b22705478a3ad
refs/heads/master
2021-01-15T15:38:18.830061
2015-05-09T02:09:25
2015-05-09T02:09:25
36,289,989
1
0
null
2015-05-26T10:54:23
2015-05-26T10:54:23
null
UTF-8
Java
false
false
1,714
java
package external.SmartImageView; import java.util.Map; import android.content.Context; import android.graphics.Bitmap; import android.os.Handler; import android.os.Message; public class SmartImageTask implements Runnable { private static final int BITMAP_READY = 0; private boolean cancelled = false; private OnCompleteHandler onCompleteHandler; private SmartImage image; private Context context; private Map<String, String> mHeader = null; public static class OnCompleteHandler extends Handler { @Override public void handleMessage(Message msg) { Bitmap bitmap = (Bitmap) msg.obj; onComplete(bitmap); } public void onComplete(Bitmap bitmap) { }; } public SmartImageTask(Context context, SmartImage image) { this(context, image, null); } public SmartImageTask(Context context, SmartImage image, Map<String, String> header) { this.image = image; this.context = context; this.mHeader = header; } @Override public void run() { if (image != null) { complete(image.getBitmap(context, mHeader)); context = null; } } public void setOnCompleteHandler(OnCompleteHandler handler) { this.onCompleteHandler = handler; } public void cancel() { cancelled = true; } private void complete(Bitmap bitmap) { if (onCompleteHandler != null && !cancelled) { onCompleteHandler.sendMessage(onCompleteHandler.obtainMessage( BITMAP_READY, bitmap)); } } public interface OnCompleteListener { public void onComplete(); } }
[ "sollian@qq.com" ]
sollian@qq.com
144358ab16b99270eff38e599368bd26112a8d2d
53d677a55e4ece8883526738f1c9d00fa6560ff7
/com/tencent/mm/plugin/luckymoney/appbrand/ui/receive/c$1.java
5ffff3b74f2d7e23d3216afb11325d7236db510c
[]
no_license
0jinxing/wechat-apk-source
544c2d79bfc10261eb36389c1edfdf553d8f312a
f75eefd87e9b9ecf2f76fc6d48dbba8e24afcf3d
refs/heads/master
2020-06-07T20:06:03.580028
2019-06-21T09:17:26
2019-06-21T09:17:26
193,069,132
9
4
null
null
null
null
UTF-8
Java
false
false
3,986
java
package com.tencent.mm.plugin.luckymoney.appbrand.ui.receive; import android.content.Intent; import com.tencent.matrix.trace.core.AppMethodBeat; import com.tencent.mm.ai.a.a; import com.tencent.mm.protocal.protobuf.bqb; import com.tencent.mm.sdk.platformtools.ab; import com.tencent.mm.vending.c.a; final class c$1 implements a<Void, a.a<bqb>> { c$1(c paramc) { } private Void d(a.a<bqb> parama) { AppMethodBeat.i(42123); Object localObject1; if ((parama.errType == 0) && (parama.errCode == 0)) { ab.i("MicroMsg.WxaReceiveLuckyMoneyLogic", "CgiReceiveWxaHB succeed, wxahb_status = [%d],receive_status = [%d],sendId = [%s]", new Object[] { Integer.valueOf(((bqb)parama.fsy).wKy), Integer.valueOf(((bqb)parama.fsy).nSb), this.nTO.nSX }); if ((((bqb)parama.fsy).wKy != 1) && (((bqb)parama.fsy).wKx != null)) this.nTO.nTL = ((bqb)parama.fsy).wKx.toByteArray(); this.nTO.state = ((bqb)parama.fsy).wKy; localObject1 = this.nTO; parama = (bqb)parama.fsy; if (((c)localObject1).nTK == null) { ab.i("MicroMsg.WxaReceiveLuckyMoneyLogic", "CgiReceiveWxaHB succeed but ui == null"); AppMethodBeat.o(42123); } } while (true) { return null; int i; if ((parama.wKH == 1) && (parama.nSc == 0)) i = 1; while (true) { if (i == 0) break label223; ab.i("MicroMsg.WxaReceiveLuckyMoneyLogic", "onLuckyMoneyReceived shouldSkipToDetailUI"); ((c)localObject1).bLg(); break; if (parama.nSb == 2) i = 1; else i = 0; } label223: Object localObject2; String str1; Object localObject3; boolean bool1; label270: boolean bool2; if (parama.wKy == 1) { localObject2 = ((c)localObject1).nTK; str1 = parama.wKF; localObject3 = parama.wKG; i = parama.wKy; localObject1 = parama.wKJ; if (parama.wKH == 1) { bool1 = true; if (parama.nSc != 1) break label307; } label307: for (bool2 = true; ; bool2 = false) { ((b)localObject2).a(str1, (String)localObject3, i, (String)localObject1, bool1, bool2); break; bool1 = false; break label270; } } if (parama.wKy == 0) { localObject3 = ((c)localObject1).nTK; String str2 = parama.wKF; localObject1 = parama.wKG; str1 = parama.kfM; localObject2 = parama.nSd; if (parama.wKH == 1) { bool1 = true; label360: if (parama.nSc != 1) break label398; } label398: for (bool2 = true; ; bool2 = false) { ((b)localObject3).a(str2, (String)localObject1, str1, (String)localObject2, bool1, bool2); break; bool1 = false; break label360; } } ab.i("MicroMsg.WxaReceiveLuckyMoneyLogic", "back.resp.wxahb_status is invalid.resp. wxahb_status = [%d] receive_status = [%d] hb_type = [%d]", new Object[] { Integer.valueOf(parama.wKy), Integer.valueOf(parama.nSb), Integer.valueOf(parama.nSc) }); break; ab.e("MicroMsg.WxaReceiveLuckyMoneyLogic", "CgiReceiveWxaHB failed [%d, %d, %s]", new Object[] { Integer.valueOf(parama.errType), Integer.valueOf(parama.errCode), parama.aIm }); this.nTO.af(new Intent().putExtra("result_error_code", -1).putExtra("result_error_msg", "fail:system error {{service error Receive errType = " + parama.errType + ",errCode" + parama.errCode + "}}")); AppMethodBeat.o(42123); } } } /* Location: C:\Users\Lin\Downloads\dex-tools-2.1-SNAPSHOT\dex-tools-2.1-SNAPSHOT\classes6-dex2jar.jar * Qualified Name: com.tencent.mm.plugin.luckymoney.appbrand.ui.receive.c.1 * JD-Core Version: 0.6.2 */
[ "172601673@qq.com" ]
172601673@qq.com
005ed9bf764b5ed392de8f912b082749090dad94
3a5985651d77a31437cfdac25e594087c27e93d6
/ojc-core/bpelse/bpelcore/src/com/sun/jbi/engine/bpel/core/bpel/util/PropagationConfigManager.java
884096dbb1edb37460be255900d5c38d5b633273
[]
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
2,610
java
/* * BEGIN_HEADER - DO NOT EDIT * * The contents of this file are subject to the terms * of the Common Development and Distribution License * (the "License"). You may not use this file except * in compliance with the License. * * You can obtain a copy of the license at * https://open-jbi-components.dev.java.net/public/CDDLv1.0.html. * See the License for the specific language governing * permissions and limitations under the License. * * When distributing Covered Code, include this CDDL * HEADER in each file and include the License file at * https://open-jbi-components.dev.java.net/public/CDDLv1.0.html. * If applicable add the following below this CDDL HEADER, * with the fields enclosed by brackets "[]" replaced with * your own identifying information: Portions Copyright * [year] [name of copyright owner] */ /* * @(#)PropagationConfigManager.java * * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved. * * END_HEADER - DO NOT EDIT */ package com.sun.jbi.engine.bpel.core.bpel.util; import javax.jbi.messaging.MessageExchange; import com.sun.jbi.systemic.quality.propagation.api.ConfigManager; /** * * * @author Sun Microsystems */ public class PropagationConfigManager implements ConfigManager { private PropagationContext mPropContext; /** * */ public PropagationConfigManager(PropagationContext propContext) { mPropContext = propContext; } /* (non-Javadoc) * @see com.sun.jbi.systemic.quality.propagation.api.ConfigManager#createNewTransaction(javax.jbi.messaging.MessageExchange, javax.jbi.messaging.MessageExchange) */ public Object createNewTransaction(MessageExchange childExchange) { return mPropContext.getTransaction(); } /* (non-Javadoc) * @see com.sun.jbi.systemic.quality.propagation.api.ConfigManager#getSecurityType(javax.jbi.messaging.MessageExchange, javax.jbi.messaging.MessageExchange) */ public SECURITYTYPE getSecurityType(MessageExchange childExchange) { return mPropContext.getSecurityType(); } /* (non-Javadoc) * @see com.sun.jbi.systemic.quality.propagation.api.ConfigManager#getTransaction(javax.jbi.messaging.MessageExchange, javax.jbi.messaging.MessageExchange) */ public Object getTransaction(MessageExchange childExchange) { return mPropContext.getTransaction(); } /* (non-Javadoc) * @see com.sun.jbi.systemic.quality.propagation.api.ConfigManager#getTransactionType(javax.jbi.messaging.MessageExchange, javax.jbi.messaging.MessageExchange) */ public TRANSACTIONTYPE getTransactionType(MessageExchange childExchange) { return mPropContext.getTransactionType(); } }
[ "bitbucket@bitbucket02.private.bitbucket.org" ]
bitbucket@bitbucket02.private.bitbucket.org
16e6b9b4cc3db5f33a5fdddb1911462ed2545247
46e871c73639c19c1e166078d2dac458d68bafe4
/BOSSTUA_v2/app/src/main/java/com/android/app/buystoreapp/managementservice/ExplainWebViewActivity.java
798a63b77f96f4cf6850b27a3d08b64f5b8d909b
[]
no_license
hongqinghe/BossApp
cc1ac138dc762b02fe5212781ecdbacd4df59ee7
506d54bcf4758e7e40a649b7a4cb6e5f793bda92
refs/heads/master
2021-07-20T15:07:44.141166
2017-10-30T15:29:20
2017-10-30T15:29:20
108,870,157
1
1
null
null
null
null
UTF-8
Java
false
false
3,541
java
package com.android.app.buystoreapp.managementservice; import android.os.Bundle; import android.view.View; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; import android.widget.ImageButton; import android.widget.TextView; import com.android.app.buystoreapp.R; import com.android.app.buystoreapp.base.BaseAct; public class ExplainWebViewActivity extends BaseAct implements View.OnClickListener { private ImageButton ib_explain_back; private WebView myWebView; private TextView tv_explain; private int flag; private String url = "http://59.110.5.164/bossgroupimage/bbb/aaa.html"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_explain_web_view); flag = getIntent().getExtras().getInt("flag"); initView(); } private void initView() { tv_explain = (TextView) findViewById(R.id.tv_explain); switch (flag) { case 1000: tv_explain.setText("Boss团注册协议"); url = getResources().getString(R.string.boss_group_registration_protocol); break; case 2000: tv_explain.setText("提现说明"); url = getResources().getString(R.string.description_of_the_present); break; case 3000: tv_explain.setText("软件许可使用协议"); url = getResources().getString(R.string.software_license_agreement); break; case 4000: tv_explain.setText("使用条款和隐私协议"); url = getResources().getString(R.string.terms_of_use_and_privacy_agreement); break; case 5000: tv_explain.setText("发布须知"); url = getResources().getString(R.string.release_notes); break; case 6000: tv_explain.setText("安全提示"); url = getResources().getString(R.string.safety_signs); break; } ib_explain_back = (ImageButton) findViewById(R.id.ib_explain_back); myWebView = (WebView) findViewById(R.id.webView); myWebView.loadUrl(url); myWebView.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { //返回值是true的时候控制去WebView打开,为false调用系统浏览器或第三方浏览器 view.loadUrl(url); return super.shouldOverrideUrlLoading(view, url); } }); myWebView.getSettings().setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK); if (flag == 5000) initWebViewSetting(myWebView.getSettings()); ib_explain_back.setOnClickListener(this); } /** * webView的设置 * * @param ws */ private void initWebViewSetting(WebSettings ws) { ws.setUseWideViewPort(true); ws.setLoadWithOverviewMode(true); ws.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NARROW_COLUMNS); ws.setBuiltInZoomControls(true); // ws.setUseWideViewPort(true); // ws.setLoadWithOverviewMode(true); } @Override public void onClick(View view) { switch (view.getId()) { case R.id.ib_explain_back: finish(); break; } } }
[ "gongtong@2dfire.com" ]
gongtong@2dfire.com
3cbc767c921f3e08f448a8a0fb6ffb4b57da11dc
e32622e1a7ad14702e9f6fc7736b7d91e5704206
/platform_1123/src/main/java/gcp/ccs/model/search/CcsRoleSearch.java
f5edece466e521839a607f5cae9b19be754609a7
[]
no_license
mrhaaaann/ZTS
cd2dfbf6b2a267aa8b28c7059fb0e5cd589f0e78
a465c4c114755e07bb2b39ec7621a6f87a73ca58
refs/heads/master
2021-06-09T05:23:51.403221
2016-11-23T11:17:54
2016-11-23T11:17:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
251
java
package gcp.ccs.model.search; import intune.gsf.model.BaseSearchCondition; import lombok.Data; @Data public class CcsRoleSearch extends BaseSearchCondition { private String searchType; private String roleId; private String roleName; }
[ "redbear0101@gmail.com" ]
redbear0101@gmail.com
67e691ff8c85deed109a547743a25b1a7453817d
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
/com.tencent.mm/res/raw/android_wear_micro_apk_apk/classes.jar/com/tencent/mm/sdk/platformtools/k.java
6432a5445084b72a620142492ef01d3728406a20
[]
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
4,454
java
package com.tencent.mm.sdk.platformtools; import android.os.Bundle; import android.os.Debug; import android.os.Handler; import android.os.Handler.Callback; import android.os.Looper; import android.os.Message; import android.os.SystemClock; import junit.framework.Assert; public class k extends Handler implements o { private Handler.Callback ZA; public l ZB; private String Zy = null; private Looper Zz = getLooper(); public k(Looper paramLooper, Handler.Callback paramCallback, l paraml) { super(paramLooper, null); this.ZA = null; this.ZB = paraml; } public k(Looper paramLooper, l paraml) { super(paramLooper); this.ZB = paraml; } public k(l paraml) { this.ZB = paraml; } public final void c(Runnable paramRunnable, n paramn) { if (this.ZB != null) { this.ZB.b(paramRunnable, paramn); } } public void dispatchMessage(Message paramMessage) { if ((paramMessage.getCallback() != null) || (this.ZA != null)) { super.dispatchMessage(paramMessage); } do { return; System.currentTimeMillis(); Bundle localBundle = paramMessage.getData(); localBundle.getLong("addTime"); localBundle.getLong("delay"); localBundle = localBundle.getBundle("tmp"); Debug.threadCpuTimeNanos(); paramMessage.setData(localBundle); handleMessage(paramMessage); } while (this.ZB == null); this.Zz.getThread(); System.currentTimeMillis(); Debug.threadCpuTimeNanos(); } public void handleMessage(Message paramMessage) {} public boolean sendMessageAtTime(Message paramMessage, long paramLong) { boolean bool1; Runnable localRunnable; long l; Object localObject; if (paramMessage != null) { bool1 = true; Assert.assertTrue("msg is null", bool1); localRunnable = paramMessage.getCallback(); l = paramLong - SystemClock.uptimeMillis(); if (localRunnable != null) { break label94; } localObject = new Bundle(); ((Bundle)localObject).putBundle("tmp", paramMessage.getData()); ((Bundle)localObject).putLong("delay", l); ((Bundle)localObject).putLong("addTime", System.currentTimeMillis()); paramMessage.setData((Bundle)localObject); bool1 = super.sendMessageAtTime(paramMessage, paramLong); } label94: boolean bool2; do { do { return bool1; bool1 = false; break; if (paramMessage.getTarget() == null) {} Message localMessage; for (localObject = this;; localObject = paramMessage.getTarget()) { localObject = new n(this.Zz.getThread(), (Handler)localObject, localRunnable, paramMessage.obj, this); if (l > 0L) { ((n)localObject).ZJ = l; } localMessage = Message.obtain(paramMessage.getTarget(), (Runnable)localObject); localMessage.what = paramMessage.what; localMessage.arg1 = paramMessage.arg1; localMessage.arg2 = paramMessage.arg2; localMessage.obj = paramMessage.obj; localMessage.replyTo = paramMessage.replyTo; localMessage.setData(paramMessage.getData()); paramMessage.recycle(); if ((getLooper() == null) || (getLooper().getThread().isAlive())) { break; } f.b("MicroMsg.MMInnerHandler", "sendMessageAtTime but thread[%d, %s] is dead so return false!", new Object[] { Long.valueOf(getLooper().getThread().getId()), getLooper().getThread().getName() }); return false; } if (this.ZB != null) { this.ZB.a(localRunnable, (n)localObject); } bool2 = super.sendMessageAtTime(localMessage, paramLong); bool1 = bool2; } while (bool2); bool1 = bool2; } while (this.ZB == null); this.ZB.b(localRunnable, (n)localObject); return bool2; } public String toString() { if (this.Zy == null) { this.Zy = ("MMInnerHandler{listener = " + this.ZB + "}"); } return this.Zy; } } /* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\res\raw\android_wear_micro_apk_apk\classes.jar * Qualified Name: com.tencent.mm.sdk.platformtools.k * JD-Core Version: 0.7.0.1 */
[ "98632993+tsuzcx@users.noreply.github.com" ]
98632993+tsuzcx@users.noreply.github.com
77f036d63a9fd8caac61c7dcda88b43b33e3925f
3ac2f87a7efb813366e5fbb73d4aeec903241858
/EasyEngenharia_Jsp/src/java/br/com/easynet/gwt/easyportal/jb/Tpms_temporaria_pmsConsultJB.java
507df5c77861638231e75c194f415a309fcd5066
[]
no_license
topfontes/EngenhariaSoluction
97c1357803a781e4af94da9d3d0737058f01f840
36042f1099d058365f0d7db08a805c774542a194
refs/heads/master
2021-01-11T09:01:26.010283
2018-10-05T20:46:19
2018-10-05T20:46:19
77,538,830
0
0
null
null
null
null
UTF-8
Java
false
false
4,771
java
package br.com.easynet.gwt.easyportal.jb; import br.com.easynet.database.DataSet; import java.util.List; import br.com.easynet.gwt.easyportal.dao.*; import br.com.easynet.gwt.easyportal.transfer.*; import java.util.ArrayList; /** Classe Criada Automaticamente pelo "EasyNet Generate JDragon" */ public class Tpms_temporaria_pmsConsultJB extends SystemBase { // Atributos e propriedades private Tpms_temporaria_pmsT tpms_temporaria_pmsT = new Tpms_temporaria_pmsT(); private Pms_planilha_medicao_servicoT pms_planilha_medicao_servicoT = new Pms_planilha_medicao_servicoT(); private Vw_importacao_orcamentoT vw_importacao_orcamentoT = new Vw_importacao_orcamentoT(); private double percentual = 0; public void setTpms_temporaria_pmsT(Tpms_temporaria_pmsT tpms_temporaria_pmsT) { this.tpms_temporaria_pmsT = tpms_temporaria_pmsT; } public Tpms_temporaria_pmsT getTpms_temporaria_pmsT() { return tpms_temporaria_pmsT; } private List<Tpms_temporaria_pmsT> list; public List<Tpms_temporaria_pmsT> getList() { return list; } public void setList(List<Tpms_temporaria_pmsT> list) { this.list = list; } public void pageLoad() throws Exception { super.pageLoad(); } public void consult() throws Exception { try { Consult_PMS_JB consultPMS = new Consult_PMS_JB(pms_planilha_medicao_servicoT,getDAO()); list = consultPMS.consult(); } catch (Exception e) { e.printStackTrace(); setMsg("Falha ao realizar consulta!"); } finally { close(); } } /** * pegar a quantidade caso o já tenha sido digitado no mes e ano * @return */ public float getQtdeAcumulada() { try { Pms_planilha_medicao_servicoDAO dAO = getPms_planilha_medicao_servicoDAO(); DataSet ds = dAO.getByQtdeAcumulada(pms_planilha_medicao_servicoT); if (ds.getList().get(0).getColumn(0) != null) { return Float.parseFloat(ds.getList().get(0).getColumn(0).toString()); } } catch (Exception e) { e.printStackTrace(); } return 0; } public double getQtdeDigitadoMesAno() { try { Pms_planilha_medicao_servicoDAO dAO = getPms_planilha_medicao_servicoDAO(); List<Pms_planilha_medicao_servicoT> listTemp = dAO.getByQtdeDigitado(pms_planilha_medicao_servicoT); if (listTemp.size() > 0) { percentual = listTemp.get(0).getPms_nr_percentual(); return listTemp.get(0).getPms_nr_quantidade_servico(); } } catch (Exception e) { e.printStackTrace(); } return 0; } public void delete() throws Exception { try { Tpms_temporaria_pmsDAO tpms_temporaria_pmsDAO = getTpms_temporaria_pmsDAO(); tpms_temporaria_pmsDAO.delete(tpms_temporaria_pmsT); setMsg("Exclus�o efetuada com sucesso!"); tpms_temporaria_pmsT = new Tpms_temporaria_pmsT(); consult(); } catch (Exception e) { e.printStackTrace(); setMsg("Falha ao realizar exclus�o!"); } finally { close(); } } public void insert() throws Exception { // TODO Insert try { String page = "tpms_temporaria_pmsInsert.jsp";// defina aqui a página que deve ser chamada getResponse().sendRedirect(page); } catch (Exception e) { } } public void cancel() throws Exception { // TODO Cancel try { String page = "";// defina aqui a página que deve ser chamada getResponse().sendRedirect(page); } catch (Exception e) { } } /** * @return the vw_importacao_orcamentoT */ public Vw_importacao_orcamentoT getVw_importacao_orcamentoT() { return vw_importacao_orcamentoT; } /** * @param vw_importacao_orcamentoT the vw_importacao_orcamentoT to set */ public void setVw_importacao_orcamentoT(Vw_importacao_orcamentoT vw_importacao_orcamentoT) { this.vw_importacao_orcamentoT = vw_importacao_orcamentoT; } /** * @return the pms_planilha_medicao_servicoT */ public Pms_planilha_medicao_servicoT getPms_planilha_medicao_servicoT() { return pms_planilha_medicao_servicoT; } /** * @param pms_planilha_medicao_servicoT the pms_planilha_medicao_servicoT to set */ public void setPms_planilha_medicao_servicoT(Pms_planilha_medicao_servicoT pms_planilha_medicao_servicoT) { this.pms_planilha_medicao_servicoT = pms_planilha_medicao_servicoT; } }
[ "topfontes@gmail.com" ]
topfontes@gmail.com
3b83f4a697a9330c465be6ad9cc1162c50f024cb
947d3280447eac36f978c97d730fee40ffe42d39
/MicroServices/customerPhysical/src/main/java/com/example/demo/repo/CustomerRepository.java
9d1613d8d8f15fbeb5093558552cf58b9734714c
[]
no_license
poorvikgamb/Spartans-FSD-IBM-SmartFood
6c2a79eada93753545946a8b2d13bcb39c93fd7d
b47c28efb9a2e8712937ff2e41ea9bd2915847be
refs/heads/master
2020-07-30T14:14:26.899023
2019-10-01T09:41:58
2019-10-01T09:41:58
210,260,000
0
0
null
2019-09-23T03:50:34
2019-09-23T03:50:34
null
UTF-8
Java
false
false
272
java
package com.example.demo.repo; import org.springframework.data.jpa.repository.JpaRepository; import com.example.demo.entity.Customer; import com.example.demo.entity.PhysicalDetail; public interface CustomerRepository extends JpaRepository<Customer, Integer> { }
[ "b4ibmjava15@iiht.tech" ]
b4ibmjava15@iiht.tech
2939a7776c56d6fc4922c1eee061b4b98355e932
0fdcb6bdf341120ec189985e975015298842a1f3
/src/test/java/pl/codeleak/samples/springbootjunit5/todo/TaskControllerWebMvcWithMockBeanTest.java
cacfb99fedd05e9a0ba18a0875dbd08b46af9545
[]
no_license
akenzegar/spring-boot-junit5
1002d7e983ca00a981ba9a7a5104879e476d7cd7
b3b90c9f4cc6439c1922d9bf0b098bb6158507fd
refs/heads/master
2022-03-24T03:36:09.103291
2019-10-21T21:14:28
2019-10-21T21:14:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,505
java
package pl.codeleak.samples.springbootjunit5.todo; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; import org.springframework.boot.test.mock.mockito.MockBean; import org.springframework.test.web.servlet.MockMvc; import static org.mockito.Mockito.when; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; @WebMvcTest class TaskControllerWebMvcWithMockBeanTest { @Autowired private MockMvc mockMvc; @MockBean private TaskRepository taskRepository; @Test void findsTaskById() throws Exception { // arrange var taskToReturn = new Task(); taskToReturn.setId(1); taskToReturn.setTitle("delectus aut autem"); taskToReturn.setCompleted(true); taskToReturn.setUserId(1); when(taskRepository.findOne(1)).thenReturn(taskToReturn); // act and assert mockMvc.perform(get("/tasks/1")) .andDo(print()) .andExpect(status().isOk()) .andExpect(content().json("{\"id\":1,\"title\":\"delectus aut autem\",\"userId\":1,\"completed\":true}")); } }
[ "rafal.borowiec@gmail.com" ]
rafal.borowiec@gmail.com
88a353660c49a6f32fb217ed0ab6c9c99ba50536
a8409f0d3a3c4177b50cf8c2459f7ffc6885fe90
/web/src/main/java/org/fao/geonet/kernel/search/index/LuceneIndexReaderFactory.java
306d0789eb1789670c96fc3c5c8367c723696a75
[]
no_license
metawal/metawal-core-geonetwork
70081193b902b9cdc37e18de33859377897c0cce
d6221bd9f2b9df1ce179f97321f3803bebbad47f
refs/heads/master
2021-01-15T16:48:44.236108
2013-02-04T13:31:52
2013-02-04T13:31:52
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,631
java
package org.fao.geonet.kernel.search.index; import java.io.IOException; import org.apache.lucene.index.MultiReader; import org.fao.geonet.kernel.search.IndexAndTaxonomy; /** * Utility class to get/refresh readers for SearchManager class Works by opening an IndexReader at * startup and keeping that reader open. It is never closed. Users of this class call getReader * which increments the ref count on the IndexReader when they need an IndexReader and when * finished, releaseReader which decrements the ref count. Any call to getReader may reopen the * index if changes have been made. Idea and some code taken from SearchManager.java, Lucene In * Action 2, Manning Books */ public class LuceneIndexReaderFactory { private LuceneIndexLanguageTracker tracker; // =========================================================================== // Constructor public LuceneIndexReaderFactory( LuceneIndexLanguageTracker tracker ) { this.tracker = tracker; } // =========================================================================== // Public interface methods /** * Get {@linkplain MultiReader}. If * * @param versionToken A token indicating which state of search should be obtained * @return an index reader for reading from all indices */ public IndexAndTaxonomy aquire(String preferedLang, long versionToken) throws IOException { return tracker.aquire(preferedLang, versionToken); } public void release (GeonetworkMultiReader reader) throws InterruptedException, IOException { reader.releaseToNRTManager(); } }
[ "jesse.eichar@camptocamp.com" ]
jesse.eichar@camptocamp.com
47cefc1f2291d53db46b81f5ce94417e07184da1
b74ced03fae6fbe125c980d3de5f85feee7ace87
/src/com/yidao/jdbc/designpattern/Composite/Folder.java
2f15d83f3a140837ea41e45605ff896c536b717e
[]
no_license
hanks7/JavaWebLearn
f1749734d2bac9fd658c0841a1ccb7c81e0aedd6
808582fe3bc7d98b3eb0b6a843aadbf15947b4b2
refs/heads/master
2021-07-06T01:00:10.694566
2020-09-10T02:32:36
2020-09-10T02:32:36
166,959,565
0
1
null
null
null
null
UTF-8
Java
false
false
1,503
java
package com.yidao.jdbc.designpattern.Composite; import java.util.ArrayList; import java.util.Iterator; import java.util.List; public class Folder implements Component { private String name; private List<Component> files; private List<Component> folders; public Folder(String name){ this.name = name; files = new ArrayList<Component>(); folders = new ArrayList<Component>(); } @Override public void addFile(Component file) { files.add(file); } @Override public Component addFolder(Component folder) { folders.add(folder); return this; } @Override public void removeFile(Component file) { files.remove(file); } @Override public void removeFolder(Component folder) { folders.remove(folder); } @Override public List<Component> getFiles() { return files; } @Override public List<Component> getFolders() { return folders; } @Override public List<Component> getAll() { List<Component> all = new ArrayList<Component>(folders); all.addAll(files); return all; } @Override public Iterator<Component> iterator() { List<Component> all = new ArrayList<Component>(); add(all,this); return all.iterator(); } private void add(List<Component> all,Component component){ if(component==null) return; all.add(component); Iterator<Component> iterator = component.getFolders().iterator(); while(iterator.hasNext()){ add(all,iterator.next()); } all.addAll(component.getFiles()); } @Override public void display() { System.out.println(name); } }
[ "474664736@qq.com" ]
474664736@qq.com
532b88f9bb5f16b992b07bb8723c54e2c2b92d68
065c1f648e8dd061a20147ff9c0dbb6b5bc8b9be
/ant_cluster/22641/src_1.java
d0b89b7f7902d9c7dd5ccf0a4568bb10dfd6566f
[]
no_license
martinezmatias/GenPat-data-C3
63cfe27efee2946831139747e6c20cf952f1d6f6
b360265a6aa3bb21bd1d64f1fc43c3b37d0da2a4
refs/heads/master
2022-04-25T17:59:03.905613
2020-04-15T14:41:34
2020-04-15T14:41:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,756
java
/* * The Apache Software License, Version 1.1 * * Copyright (c) 2001-2002 The Apache Software Foundation. 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 end-user documentation included with the redistribution, if * any, must include the following acknowlegement: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowlegement may appear in the software itself, * if and wherever such third-party acknowlegements normally appear. * * 4. The names "The Jakarta Project", "Ant", and "Apache Software * Foundation" must not be used to endorse or promote products derived * from this software without prior written permission. For written * permission, please contact apache@apache.org. * * 5. Products derived from this software may not be called "Apache" * nor may "Apache" appear in their names without prior written * permission of the Apache Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 APACHE SOFTWARE FOUNDATION OR * ITS 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. * ==================================================================== * * 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 org.apache.tools.ant.taskdefs.compilers; import org.apache.tools.ant.BuildException; import org.apache.tools.ant.Project; import org.apache.tools.ant.types.Path; import org.apache.tools.ant.types.Commandline; /** * The implementation of the jvc compiler from microsoft. * This is primarily a cut-and-paste from the original javac task before it * was refactored. * * @author James Davidson <a href="mailto:duncan@x180.com">duncan@x180.com</a> * @author Robin Green * <a href="mailto:greenrd@hotmail.com">greenrd@hotmail.com</a> * @author <a href="mailto:stefan.bodewig@epost.de">Stefan Bodewig</a> * @author <a href="mailto:jayglanville@home.com">J D Glanville</a> * @since Ant 1.3 */ public class Jvc extends DefaultCompilerAdapter { /** * Run the compilation. * * @exception BuildException if the compilation has problems. */ public boolean execute() throws BuildException { attributes.log("Using jvc compiler", Project.MSG_VERBOSE); Path classpath = new Path(project); // jvc doesn't support bootclasspath dir (-bootclasspath) // so we'll emulate it for compatibility and convenience. if (bootclasspath != null) { classpath.append(bootclasspath); } // jvc doesn't support an extension dir (-extdir) // so we'll emulate it for compatibility and convenience. classpath.addExtdirs(extdirs); if (bootclasspath == null || bootclasspath.size() == 0) { // no bootclasspath, therefore, get one from the java runtime includeJavaRuntime = true; } else { // there is a bootclasspath stated. By default, the // includeJavaRuntime is false. If the user has stated a // bootclasspath and said to include the java runtime, it's on // their head! } classpath.append(getCompileClasspath()); // jvc has no option for source-path so we // will add it to classpath. classpath.append(src); Commandline cmd = new Commandline(); cmd.setExecutable("jvc"); if (destDir != null) { cmd.createArgument().setValue("/d"); cmd.createArgument().setFile(destDir); } // Add the Classpath before the "internal" one. cmd.createArgument().setValue("/cp:p"); cmd.createArgument().setPath(classpath); // Enable MS-Extensions and ... cmd.createArgument().setValue("/x-"); // ... do not display a Message about this. cmd.createArgument().setValue("/nomessage"); // Do not display Logo cmd.createArgument().setValue("/nologo"); if (debug) { cmd.createArgument().setValue("/g"); } if (optimize) { cmd.createArgument().setValue("/O"); } if (verbose) { cmd.createArgument().setValue("/verbose"); } addCurrentCompilerArgs(cmd); int firstFileName = cmd.size(); logAndAddFilesToCompile(cmd); return executeExternalCompile(cmd.getCommandline(), firstFileName) == 0; } }
[ "375833274@qq.com" ]
375833274@qq.com
c19817c1d7ef85778ab1cb16f7ebd779a6d3cec0
ab76cfd89d377a6577536499a59bd5c8ab644315
/house-common/src/main/java/com/yx/housesale/common/constant/HouseConstant.java
68621f39dc34cc8acf698fec9e70da8b7ba0ae01
[]
no_license
yaoxin003/housesale
04d46c8e7bcb756058c57c726c1c91e5e826a381
de8dbf9cd43b2f2b5d6d648fa86c5a4cf87dfd8b
refs/heads/master
2022-09-26T19:26:20.933305
2020-03-25T09:01:34
2020-03-25T09:01:44
232,215,880
0
0
null
null
null
null
UTF-8
Java
false
false
1,628
java
package com.yx.housesale.common.constant; /** * @description: * @author: yx * @date: 2020/01/12/10:08 */ public class HouseConstant { /**---------------------------数据库字段 关系数据库 库名 表名 字段名 常量---------------------------**/ //user表 public static final Integer DB_HOUSE_USER_ENABLE_STOP = 0;//停用 public static final Integer DB_HOUSE_USER_ENABLE_START = 1;//启用 public static final Integer DB_HOUSE_USER_TYPE_COMMON_USER = 1;//1.普通用户 public static final Integer DB_HOUSE_USER_TYPE_AGENT = 2;//2.经纪人 //house表 public static final Integer DB_HOUSE_HOUSE_TYPE_SALE = 1;//销售 public static final Integer DB_HOUSE_HOUSE_TYPE_RENT = 1;//出租 public static final Integer DB_HOUSE_HOUSE_STATE_UP = 1;//上架 public static final Integer DB_HOUSE_HOUSE_STATE_DOWN = 1;//下架 //house_user表 public static final Integer DB_HOUSE_HOUSE_USER_TYPE_SALE = 1;//1-售卖 枚举类HouseUserType.value public static final Integer DB_HOUSE_HOUSE_USER_TYPE_COLLECTION = 2;//2-收藏 枚举类HouseUserType.value /**---------------------------session---------------------------**/ public static final String SESSION_USER_ATTRIBUTE = "loginUser"; /**---------------------------cache---------------------------**/ public static final String CACHE_HOT_HOUSES_KEY = "HOT_HOUSES_KEY";//热门房产 /**---------------------------页面---------------------------**/ public static final String PAGE_TYPE_OWN = "own";//自己 public static final String PAGE_TYPE_BOOKMARK = "bookmark";//收藏 }
[ "yaoxin003@aliyun.com" ]
yaoxin003@aliyun.com
bd5d660ca3cb6f5cc607c5a3219083b709cd1482
62ce3ebeff80dc21d9529d42d71db412a5f3001a
/app/src/main/java/com/example/ruolan/letgo/Dao/DaoManager.java
a4aaab5e29b3a3565c070989051bd3d630f2309e
[]
no_license
liuwen370494581/My_Novel
c53464809702b236e6b0d3c730a54b67c15c8b74
6ee79fa1cef68a76a6c1e3f9543a43a74ff5914b
refs/heads/master
2020-04-05T13:33:20.850877
2017-10-17T07:33:30
2017-10-17T07:33:30
94,873,928
2
1
null
null
null
null
UTF-8
Java
false
false
1,226
java
package com.example.ruolan.letgo.Dao; import android.content.Context; import org.greenrobot.greendao.database.Database; import star.liuwen.com.novel_lw.Dao.DaoMaster; import star.liuwen.com.novel_lw.Dao.DaoSession; /** * Created by Administrator on 2017/2/17 0017. */ public class DaoManager { // 指定数据库的名字 private static String DB_NAME = "sqtwin.db"; private static DaoManager mDaoManager; private static MySQLiteOpenHelper mySqlLiteOpenHelper; private static DaoSession mDaoSession; private static Database mDatabase; private DaoManager() { } public static DaoManager getInstance() { if (mDaoManager == null) { synchronized (DaoManager.class) { if (mDaoManager == null) { mDaoManager = new DaoManager(); } } } return mDaoManager; } public static void init(Context context) { mySqlLiteOpenHelper = new MySQLiteOpenHelper(context, DB_NAME, null); mDatabase = mySqlLiteOpenHelper.getWritableDb(); mDaoSession = new DaoMaster(mDatabase).newSession(); } public DaoSession getDaoSession() { return mDaoSession; } }
[ "370494581@qq.com" ]
370494581@qq.com
4c6f71421dececcbfb1692c9955900f625b9071c
5f14ad83aa707b700e9d9385e8404e28fbf481c5
/src/main/java/mr/senhit/test/web/rest/errors/EmailNotFoundException.java
a57799c8b80487dc6104070e32c69d77acfa92f5
[]
no_license
orgsen/jhipster-sample-application
2b15a3e435a9d77cbf241475dc20c32cddab2266
1a534e7db3735a88433ec87dae34852823d07c87
refs/heads/master
2022-12-22T07:33:49.224845
2019-12-04T22:53:34
2019-12-04T22:53:34
225,603,812
0
0
null
2022-12-16T04:42:08
2019-12-03T11:30:06
Java
UTF-8
Java
false
false
406
java
package mr.senhit.test.web.rest.errors; import org.zalando.problem.AbstractThrowableProblem; import org.zalando.problem.Status; public class EmailNotFoundException extends AbstractThrowableProblem { private static final long serialVersionUID = 1L; public EmailNotFoundException() { super(ErrorConstants.EMAIL_NOT_FOUND_TYPE, "Email address not registered", Status.BAD_REQUEST); } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
28a99e4ef09e85bac401a61f6f385d7d03b8decd
3337951cb0a330d8de39a75b211623f644fe9e9e
/src/main/java/cn/com/rebirth/core/inject/internal/Classes.java
33e4b748fa17807fe379e5d9d85155399aa9b601
[]
no_license
dowsam/rebirth-core
29b4dee1ed4dcf5bd79a2ecea0a2266e3133b96e
5530583235d5d81c3c576319ffa335fc86ab277b
refs/heads/master
2021-01-13T02:10:38.995265
2012-09-05T05:31:47
2012-09-05T05:31:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
919
java
/* * Copyright (c) 2005-2012 www.china-cti.com All rights reserved * Info:rebirth-search-commons Classes.java 2012-7-6 10:23:49 l.xue.nong$$ */ package cn.com.rebirth.core.inject.internal; import java.lang.reflect.Modifier; /** * The Class Classes. * * @author l.xue.nong */ public class Classes { /** * Checks if is inner class. * * @param clazz the clazz * @return true, if is inner class */ public static boolean isInnerClass(Class<?> clazz) { return !Modifier.isStatic(clazz.getModifiers()) && clazz.getEnclosingClass() != null; } /** * Checks if is concrete. * * @param clazz the clazz * @return true, if is concrete */ public static boolean isConcrete(Class<?> clazz) { int modifiers = clazz.getModifiers(); return !clazz.isInterface() && !Modifier.isAbstract(modifiers); } }
[ "l.xue.nong@gmail.com" ]
l.xue.nong@gmail.com
9227075771a62b45af02cf910a7a3d752340e8b0
961409eedc1c9ce04eaa98faedee0cbb9ece3148
/app/src/main/java/com/hao/minovel/moudle/adapter/StackMuneAdapter.java
59c2002ad2b67a46a03ec15d93ab34b6f0ffa660
[]
no_license
haofighter/MiNovel
0b5b4be969673e79fc8097649915caedb5434aea
f30ef5580c312fc7d8374975daf69c8b4a4a3ded
refs/heads/master
2023-02-18T11:07:02.940556
2021-01-14T09:52:31
2021-01-14T09:52:31
285,253,025
0
0
null
null
null
null
UTF-8
Java
false
false
3,675
java
package com.hao.minovel.moudle.adapter; import android.content.Context; import android.graphics.Color; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView.ViewHolder; import com.hao.minovel.R; import com.hao.minovel.spider.data.NovelType; import java.util.ArrayList; import java.util.List; public class StackMuneAdapter extends RecyclerView.Adapter<ViewHolder> { Context mContext; List<NovelType> novelTypes = new ArrayList<>(); View.OnClickListener onClickListener; int nowCheck; public StackMuneAdapter(Context mContext, List<NovelType> novelTypes, View.OnClickListener onClickListener) { this.mContext = mContext; this.onClickListener = onClickListener; this.novelTypes = novelTypes; } @NonNull @Override public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { if (viewType == 0) { View v = LayoutInflater.from(mContext).inflate(R.layout.logo, null); v.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)); return new HeadViewHolder(v); } else { View v = LayoutInflater.from(mContext).inflate(R.layout.mune_item, null); v.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)); return new MuneViewHolder(v); } } @Override public void onBindViewHolder(@NonNull ViewHolder holder, int position) { if (position == 0) { } else { int index = position - 1; ((MuneViewHolder) holder).setDate(novelTypes.get(index), onClickListener, index, nowCheck); } } @Override public int getItemViewType(int position) { if (position == 0) { return 0; } else { return 1; } } @Override public int getItemCount() { return novelTypes.size() + 1; } class MuneViewHolder extends ViewHolder { TextView textView; ImageView imageView; View itemView; ImageView item_icon; public MuneViewHolder(@NonNull View itemView) { super(itemView); this.itemView = itemView; this.imageView = itemView.findViewById(R.id.item_show_img); imageView.setVisibility(View.GONE); this.textView = itemView.findViewById(R.id.item_name_tv); this.item_icon = itemView.findViewById(R.id.item_icon); } public void setDate(NovelType novelType, View.OnClickListener onClickListener, int index, int nowCheck) { textView.setText(novelType.getType()); textView.setTextColor(Color.BLACK); itemView.setTag(index); itemView.setOnClickListener(onClickListener); if (index == nowCheck) { itemView.setBackgroundResource(R.color.gray_11); item_icon.setVisibility(View.VISIBLE); } else { itemView.setBackgroundResource(R.color.transparent); item_icon.setVisibility(View.GONE); } } } class HeadViewHolder extends ViewHolder { public HeadViewHolder(@NonNull View itemView) { super(itemView); } } public void setCheck(int index) { this.nowCheck = index; notifyDataSetChanged(); } }
[ "274595569@qq.com" ]
274595569@qq.com
7d9a2e2e3a4eb6e6c8acf9f3941cf36a8e13751c
c08d38751e98409382c9879a3ad58389673a4292
/java/spring-resilience4j/spring-resilience4j-api-a/src/main/java/com/bmarques/springresilience4japia/invoice/Invoice.java
beab4923322eeac4b62456c80f9880e87a54da28
[]
no_license
tiagobmarques/spring
5ca857286af8fc1d3a6232bfec4f2f2e0695f24d
b5b2ad203e7b8813c87941d89de17a79fb7355d4
refs/heads/master
2022-12-04T12:48:11.250983
2022-11-12T21:19:03
2022-11-12T21:19:03
251,614,196
0
1
null
2021-07-26T19:58:42
2020-03-31T13:41:41
Java
UTF-8
Java
false
false
344
java
package com.bmarques.springresilience4japia.invoice; import lombok.*; import java.time.LocalDate; @Builder @Getter @Setter @AllArgsConstructor @NoArgsConstructor public class Invoice { private Integer id; private LocalDate installmentDate; private String document; private Integer participantId; private Double value; }
[ "tiagobm564@gmail.com" ]
tiagobm564@gmail.com
4fb4dcdb8e3aea6eb610a671a42666ee2fc20807
063c22bdd0fe74ae41e09045316cf40c4d005735
/Java/MyNote_GourdErwa/kafka_streams/src/main/java/com/gourd/erwa/streams/examples/utils/WindowedSerde.java
e729e6b295ee9fee6290af0cdf7d58d217c74358
[ "MIT" ]
permissive
no0xd/MyStudy
29804f9debbb09c68d546a01f9de37bf6ca8cc3a
bc5d4a3e984884a71775b05e8b87f86638e98ebe
refs/heads/master
2020-03-09T04:26:59.013778
2018-04-07T07:10:44
2018-04-07T07:10:44
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,345
java
package com.gourd.erwa.streams.examples.utils; import org.apache.kafka.common.serialization.Deserializer; import org.apache.kafka.common.serialization.Serde; import org.apache.kafka.common.serialization.Serdes; import org.apache.kafka.common.serialization.Serializer; import org.apache.kafka.streams.kstream.Windowed; import org.apache.kafka.streams.kstream.internals.WindowedDeserializer; import org.apache.kafka.streams.kstream.internals.WindowedSerializer; import java.util.Map; public class WindowedSerde<T> implements Serde<Windowed<T>> { private final Serde<Windowed<T>> inner; public WindowedSerde(Serde<T> serde) { inner = Serdes.serdeFrom( new WindowedSerializer<>(serde.serializer()), new WindowedDeserializer<>(serde.deserializer())); } @Override public Serializer<Windowed<T>> serializer() { return inner.serializer(); } @Override public Deserializer<Windowed<T>> deserializer() { return inner.deserializer(); } @Override public void configure(Map<String, ?> configs, boolean isKey) { inner.serializer().configure(configs, isKey); inner.deserializer().configure(configs, isKey); } @Override public void close() { inner.serializer().close(); inner.deserializer().close(); } }
[ "h4x0r_001@163.com" ]
h4x0r_001@163.com
450c2aae2b72ecb77d35bbc5ff5aaf44a3e672bb
9e8a364ba1c5a93629417eb038b222fc0d0ae3de
/src/main/java/com/draco18s/ores/recipes/OreTypeHard.java
86b254fc340bfa424d06014c5d1ac74cd7d4587a
[]
no_license
Draco18s/HarderStuff
df3068363fe96b1efc5b8b8812913cfb6e60fe44
9c0392a26798745bbdfd5fd7e064586352d8d941
refs/heads/master
2020-12-29T02:44:50.179418
2016-12-18T05:08:21
2016-12-18T05:08:21
29,373,510
9
4
null
2016-12-18T05:08:21
2015-01-17T00:02:22
Java
UTF-8
Java
false
false
3,117
java
package com.draco18s.ores.recipes; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashSet; import com.draco18s.ores.OresBase; /*import net.minecraft.block.Block; import net.minecraft.init.Blocks; import net.minecraft.item.ItemStack; import Reika.DragonAPI.Instantiable.Data.Maps.ItemHashMap; import Reika.DragonAPI.Instantiable.Data.Maps.MultiMap; import Reika.DragonAPI.Interfaces.OreType; import Reika.DragonAPI.ModRegistry.ModOreList;*/ public enum OreTypeHard /*implements OreType*/ { /*IRON("Iron", 0xD8AD91, OreRarity.AVERAGE, "chunkIron", 1, OresBase.oreIron, "oreIronHard"), GOLD("Gold", 0xD6A400, OreRarity.SCATTERED, "chunkGold", 1, OresBase.oreGold, "oreGoldHard"), DIAMOND("Diamond", 0x68FFE3, OreRarity.SCARCE, "chunkDiamond", 1, OresBase.oreDiamond, "oreDiamondHard"), LEAD("Lead", 0x697597, OreRarity.SCATTERED, "chunkLead", 1, OresBase.oreLead, "oreLeadHard"), URANIUM("Uranium", 0x4CFF00, OreRarity.SCARCE, "chunkUranium", 1, OresBase.oreUranium, "oreUraniumHard"), TIN("Tin", 0xB2D5E9, OreRarity.EVERYWHERE, "chunkTin", 1, OresBase.oreTin, "oreTinHard"), COPPER("Copper", 0xBC6C01, OreRarity.COMMON, "chunkCopper", 1, OresBase.oreCopper, "oreCopperHard"), SILVER("Silver", 0xA4D0DA, OreRarity.SCATTERED, "chunkSilver", 1, OresBase.oreSilver, "oreSilverHard"), NICKEL("Nickel", 0xD0CCAD, OreRarity.SCATTERED, "chunkNickel", 1, OresBase.oreNickel, "oreNickelHard"); private ArrayList<ItemStack> ores = new ArrayList(); public final String displayName; private String[] oreLabel; public final int dropCount; public final int oreColor; private String product; //private boolean init; public final OreRarity rarity; //private MultiMap<String, ItemStack> perName = new MultiMap(); //private static final ArrayList<ItemStack> blocks = new ArrayList<ItemStack>(); public static final OreTypeHard[] oreList = values(); //private static final ItemHashMap<ModOreList> oreMappings = new ItemHashMap(); //private static final HashSet<String> oreNames = new HashSet(); private OreTypeHard(String n, int color, OreRarity r, String prod, int count, Block oreBlock, String... ore) { dropCount = count; oreColor = color; displayName = n; product = prod; oreLabel = new String[ore.length]; for (int i = 0; i < ore.length; i++) { oreLabel[i] = ore[i]; } for(int i=0; i < 16; i++) ores.add(new ItemStack(oreBlock, 1, i)); rarity = r; } @Override public boolean existsInGame() { return !ores.isEmpty(); } @Override public boolean canGenerateIn(Block b) { return b == Blocks.stone; } @Override public Collection<ItemStack> getAllOreBlocks() { return Collections.unmodifiableCollection(ores); } @Override public ItemStack getFirstOreBlock() { if (!this.existsInGame()) return null; return ores.get(0); } @Override public OreRarity getRarity() { return rarity; } @Override public boolean isEnd() { return false; } @Override public boolean isNether() { return false; }*/ }
[ "draco18s@gmail.com" ]
draco18s@gmail.com
4ffcb4789be8e87990e264aeab276159a8c82e7a
0a86fd5bbed27bc81bb95ee3d52f0808a6655126
/src/main/java/paleoftheancients/thevixen/powers/SubstitutePower.java
57a1aac15233700480d96bd4f4aa8f45c13e2243
[]
no_license
a-personal-account/PaleOfTheAncients
bfb13d7b510079d915cadfd70b13180722e8a10e
f1d590100796f3b3ab9903464413f6b7546a6ecc
refs/heads/master
2022-07-12T20:55:34.654067
2022-06-27T16:30:57
2022-06-27T16:30:57
203,721,380
0
1
null
2020-03-20T11:29:44
2019-08-22T05:36:02
Java
UTF-8
Java
false
false
3,332
java
package paleoftheancients.thevixen.powers; import paleoftheancients.PaleMod; import paleoftheancients.thevixen.helpers.BraixenAnimation; import paleoftheancients.thevixen.monsters.TheVixenBoss; import basemod.ReflectionHacks; import basemod.abstracts.CustomMonster; import com.megacrit.cardcrawl.actions.common.ReducePowerAction; import com.megacrit.cardcrawl.actions.common.RemoveSpecificPowerAction; import com.megacrit.cardcrawl.cards.DamageInfo; import com.megacrit.cardcrawl.core.AbstractCreature; import com.megacrit.cardcrawl.core.CardCrawlGame; import com.megacrit.cardcrawl.dungeons.AbstractDungeon; import com.megacrit.cardcrawl.localization.PowerStrings; public class SubstitutePower extends AbstractTheVixenPower { public static final String POWER_ID = PaleMod.makeID("SubstitutePower"); private static final PowerStrings powerStrings; public static final String NAME; public static final String[] DESCRIPTIONS; public static PowerType POWER_TYPE = PowerType.BUFF; public static final String IMG = "substitute.png"; public SubstitutePower(AbstractCreature owner, int amount) { super(IMG); this.owner = owner; this.amount = amount; this.name = NAME; this.ID = POWER_ID; this.type = POWER_TYPE; updateDescription(); this.priority = 99; } @Override public void updateDescription() { this.description = DESCRIPTIONS[0] + this.amount + DESCRIPTIONS[1]; } @Override public int onAttacked(DamageInfo info, int damageAmount) { return reduce(damageAmount); } public int onLoseHp(int damageAmount) { return reduce(damageAmount); } @Override public void onVictory() { onRemove(); } @Override public void onInitialApplication() { BraixenAnimation ba; if((ba = getAnimation()) != null) { ba.substitute(); } } @Override public void onRemove() { BraixenAnimation ba; if((ba = getAnimation()) != null) { ba.resetAnimation(); } } private int reduce(int damageAmount) { if (!this.owner.hasPower("Buffer") && damageAmount > 0) { if (this.amount > damageAmount) { AbstractDungeon.actionManager.addToTop(new ReducePowerAction(this.owner, this.owner, this.ID, damageAmount)); } else { AbstractDungeon.actionManager.addToTop(new RemoveSpecificPowerAction(this.owner, this.owner, this.ID)); BraixenAnimation ba; if((ba = getAnimation()) != null) { ba.resetAnimation(); } } damageAmount = 0; } return damageAmount; } private BraixenAnimation getAnimation() { if(this.owner instanceof TheVixenBoss) { BraixenAnimation ba = (BraixenAnimation) ReflectionHacks.getPrivate(this.owner, CustomMonster.class, "animation"); //ReflectionHacks.setPrivateInherited(this.owner, TheVixenBoss.class, "animation", ba); return ba; } return null; } static { powerStrings = CardCrawlGame.languagePack.getPowerStrings(POWER_ID); NAME = powerStrings.NAME; DESCRIPTIONS = powerStrings.DESCRIPTIONS; } }
[ "razash@gmail.com" ]
razash@gmail.com
5b9c3d729d866b4acb460161ad2c87812cfe3a58
48e835e6f176a8ac9ae3ca718e8922891f1e5a18
/benchmark/training/com/vaadin/tests/components/treegrid/TreeGridSelectTest.java
c4535f2583ac1b5faa599b4626ed279d6d70e389
[]
no_license
STAMP-project/dspot-experiments
f2c7a639d6616ae0adfc491b4cb4eefcb83d04e5
121487e65cdce6988081b67f21bbc6731354a47f
refs/heads/master
2023-02-07T14:40:12.919811
2019-11-06T07:17:09
2019-11-06T07:17:09
75,710,758
14
19
null
2023-01-26T23:57:41
2016-12-06T08:27:42
null
UTF-8
Java
false
false
1,116
java
package com.vaadin.tests.components.treegrid; import com.vaadin.testbench.elements.TreeGridElement; import com.vaadin.tests.tb3.SingleBrowserTest; import org.junit.Test; public class TreeGridSelectTest extends SingleBrowserTest { @Test public void select_and_deselect_all() { openTestURL(); selectMenuPath("Component", "Features", "Set data provider", "TreeDataProvider"); selectMenuPath("Component", "State", "Selection mode", "multi"); TreeGridElement grid = $(TreeGridElement.class).first(); assertAllRowsDeselected(grid); clickSelectAll(grid); assertAllRowsSelected(grid); grid.expandWithClick(1, 1); grid.expandWithClick(2, 1); assertAllRowsSelected(grid); clickSelectAll(grid); assertAllRowsDeselected(grid); clickSelectAll(grid); grid.collapseWithClick(2, 1); grid.expandWithClick(2, 1); assertAllRowsSelected(grid); grid.collapseWithClick(2, 1); clickSelectAll(grid); grid.expandWithClick(2, 1); assertAllRowsDeselected(grid); } }
[ "benjamin.danglot@inria.fr" ]
benjamin.danglot@inria.fr
b12ae32c1d986f3d0b45f3fb4a1871ecf671d46b
82cea37d7947409dbe5358bbf99374835e3c284e
/src/main/java/net/finmath/optimizer/OptimizerFactoryCMAES.java
c2de8675a583f9e0c6c8b7d5078b744d6de1734f
[ "Apache-2.0", "LicenseRef-scancode-mit-old-style", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.0-or-later" ]
permissive
Diffblue-benchmarks/finmath-lib
813f6a77bed031169e7905beca159160b7993daa
6833bc313240c2b1e1ff0d46e3879eea8174e262
refs/heads/master
2020-04-22T11:15:30.345998
2019-02-10T21:27:29
2019-02-10T21:27:29
170,333,282
0
0
Apache-2.0
2019-02-19T12:02:53
2019-02-12T14:36:09
Java
UTF-8
Java
false
false
5,030
java
/* * (c) Copyright Christian P. Fries, Germany. Contact: email@christian-fries.de. * * Created on 30.05.2015 */ package net.finmath.optimizer; import org.apache.commons.math3.optim.SimplePointChecker; import org.apache.commons.math3.random.MersenneTwister; import net.finmath.optimizer.Optimizer.ObjectiveFunction; /** * @author Christian Fries * * @version 1.0 */ public class OptimizerFactoryCMAES implements OptimizerFactory { private final double accuracy; private final int maxIterations; private final double[] parameterLowerBound; private final double[] parameterUppderBound; private final double[] parameterStandardDeviation; public OptimizerFactoryCMAES(double accuracy, int maxIterations, double[] parameterLowerBound, double[] parameterUppderBound, double[] parameterStandardDeviation) { super(); this.accuracy = accuracy; this.maxIterations = maxIterations; this.parameterLowerBound = parameterLowerBound; this.parameterUppderBound = parameterUppderBound; this.parameterStandardDeviation = parameterStandardDeviation; } public OptimizerFactoryCMAES(double accuracy, int maxIterations, double[] parameterStandardDeviation) { super(); this.accuracy = accuracy; this.maxIterations = maxIterations; this.parameterLowerBound = null; this.parameterUppderBound = null; this.parameterStandardDeviation = parameterStandardDeviation; } public OptimizerFactoryCMAES(double accuracy, int maxIterations) { super(); this.accuracy = accuracy; this.maxIterations = maxIterations; this.parameterLowerBound = null; this.parameterUppderBound = null; this.parameterStandardDeviation = null; } @Override public Optimizer getOptimizer(final ObjectiveFunction objectiveFunction, final double[] initialParameters, final double[] targetValues) { return getOptimizer(objectiveFunction, initialParameters, null, null, null, targetValues); } @Override public Optimizer getOptimizer(final ObjectiveFunction objectiveFunction, final double[] initialParameters, final double[] lowerBound,final double[] upperBound, double[] targetValues) { return getOptimizer(objectiveFunction, initialParameters, lowerBound, upperBound, null, targetValues); } @Override public Optimizer getOptimizer(final ObjectiveFunction objectiveFunction, final double[] initialParameters, final double[] lowerBound,final double[] upperBound, final double[] parameterStep, double[] targetValues) { final double[] values = new double[targetValues.length]; final double[] effectiveParameterLowerBound = parameterLowerBound != null ? this.parameterLowerBound : lowerBound; final double[] effectiveParameterUpperBound = parameterUppderBound != null ? this.parameterUppderBound : upperBound; final double[] effectiveParameterStandardDeviation = parameterStandardDeviation != null ? this.parameterStandardDeviation : parameterStep; // Throw exception if std dev is non null, but lower bound / upper bound are null. return new Optimizer() { private org.apache.commons.math3.optim.nonlinear.scalar.noderiv.CMAESOptimizer optimizer; private org.apache.commons.math3.optim.PointValuePair result; @Override public double[] getBestFitParameters() { return result.getPoint(); } @Override public double getRootMeanSquaredError() { return result.getValue(); } @Override public int getIterations() { return optimizer != null ? optimizer.getIterations() : 0; } @Override public void run() { optimizer = new org.apache.commons.math3.optim.nonlinear.scalar.noderiv.CMAESOptimizer(maxIterations, accuracy, true, 0, 0, new MersenneTwister(3141), false, new SimplePointChecker<org.apache.commons.math3.optim.PointValuePair>(0, 0)) { @Override public double computeObjectiveValue(double[] parameters) { try { objectiveFunction.setValues(parameters, values); } catch (SolverException e) { return Double.NaN; } double rms = 0; for(double value : values) { rms += value*value; } return Math.sqrt(rms); } @Override public org.apache.commons.math3.optim.nonlinear.scalar.GoalType getGoalType() { return org.apache.commons.math3.optim.nonlinear.scalar.GoalType.MINIMIZE; } @Override public double[] getStartPoint() { return initialParameters; } @Override public double[] getLowerBound() { return effectiveParameterLowerBound; } @Override public double[] getUpperBound() { return effectiveParameterUpperBound; } }; try { result = optimizer.optimize( new org.apache.commons.math3.optim.nonlinear.scalar.noderiv.CMAESOptimizer.PopulationSize((int) (4 + 3 * Math.log(initialParameters.length))), new org.apache.commons.math3.optim.nonlinear.scalar.noderiv.CMAESOptimizer.Sigma(effectiveParameterStandardDeviation) ); } catch(org.apache.commons.math3.exception.MathIllegalStateException e) { new SolverException(e); } } }; } }
[ "email@christian-fries.de" ]
email@christian-fries.de
43ea9333e654b44a3058bf0a505248c59333f327
db97ce70bd53e5c258ecda4c34a5ec641e12d488
/src/main/java/com/alipay/api/response/AlipayCommerceTransportVehicleownerTransdataSyncResponse.java
c8496b2f76998a749ba6f8b3f851d41aaf82a82d
[ "Apache-2.0" ]
permissive
smitzhang/alipay-sdk-java-all
dccc7493c03b3c937f93e7e2be750619f9bed068
a835a9c91e800e7c9350d479e84f9a74b211f0c4
refs/heads/master
2022-11-23T20:32:27.041116
2020-08-03T13:03:02
2020-08-03T13:03:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
923
java
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.commerce.transport.vehicleowner.transdata.sync response. * * @author auto create * @since 1.0, 2020-05-27 19:58:12 */ public class AlipayCommerceTransportVehicleownerTransdataSyncResponse extends AlipayResponse { private static final long serialVersionUID = 6196344514644762116L; /** * 数据执行行数 */ @ApiField("excute_lines") private String excuteLines; /** * 执行结果 */ @ApiField("result") private String result; public void setExcuteLines(String excuteLines) { this.excuteLines = excuteLines; } public String getExcuteLines( ) { return this.excuteLines; } public void setResult(String result) { this.result = result; } public String getResult( ) { return this.result; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
f773922ef162cb56d89bd124e37e4135f84cca7a
d00be105055225808a242cd6bd8411b376c4f4e1
/src/net/java/sip/communicator/impl/protocol/jabber/OperationSetServerStoredContactInfoJabberImpl.java
272273cd01ca6f722edbe4aa9b54de74a4bffc05
[]
no_license
zhiji6/sip-comm-jn
bae7d463353de91a5e95bfb4ea5bb85e42c7609c
8259cf641bd4d868481c0ef4785a5ce75aac098d
refs/heads/master
2020-04-29T02:52:02.743960
2010-11-08T19:48:29
2010-11-08T19:48:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,908
java
/* * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client. * * Distributable under LGPL license. * See terms of license at gnu.org. */ package net.java.sip.communicator.impl.protocol.jabber; import java.util.*; import net.java.sip.communicator.service.protocol.*; import net.java.sip.communicator.service.protocol.ServerStoredDetails.*; /** * @author Damian Minkov */ public class OperationSetServerStoredContactInfoJabberImpl implements OperationSetServerStoredContactInfo { private InfoRetreiver infoRetreiver = null; protected OperationSetServerStoredContactInfoJabberImpl( InfoRetreiver infoRetreiver) { this.infoRetreiver = infoRetreiver; } /** * returns the user details from the specified class or its descendants * the class is one from the * net.java.sip.communicator.service.protocol.ServerStoredDetails * or implemented one in the operation set for the user info * * @param contact Contact * @param detailClass Class * @return Iterator */ public Iterator<GenericDetail> getDetailsAndDescendants( Contact contact, Class<? extends GenericDetail> detailClass) { List<GenericDetail> details = infoRetreiver.getContactDetails(contact.getAddress()); List<GenericDetail> result = new LinkedList<GenericDetail>(); if(details == null) return result.iterator(); for (GenericDetail item : details) if(detailClass.isInstance(item)) result.add(item); return result.iterator(); } /** * returns the user details from the specified class * exactly that class not its descendants * * @param contact Contact * @param detailClass Class * @return Iterator */ public Iterator<GenericDetail> getDetails( Contact contact, Class<? extends GenericDetail> detailClass) { List<GenericDetail> details = infoRetreiver.getContactDetails(contact.getAddress()); List<GenericDetail> result = new LinkedList<GenericDetail>(); if(details == null) return result.iterator(); for (GenericDetail item : details) if(detailClass.equals(item.getClass())) result.add(item); return result.iterator(); } /** * request the full info for the given uin * waits and return this details * * @param contact Contact * @return Iterator */ public Iterator<GenericDetail> getAllDetailsForContact(Contact contact) { List<GenericDetail> details = infoRetreiver.getContactDetails(contact.getAddress()); if(details == null) return new LinkedList<GenericDetail>().iterator(); else return new LinkedList<GenericDetail>(details).iterator(); } }
[ "barata7@gmail.com" ]
barata7@gmail.com
a911afd72f9eb338a1a4facd21b98538750f8706
6edf6c315706e14dc6aef57788a2abea17da10a3
/com/planet_ink/marble_mud/Libraries/interfaces/ShoppingLibrary.java
2d059b0cecbe6aa988e0b0cdfb1485a514fd0212
[]
no_license
Cocanuta/Marble
c88efd73c46bd152098f588ba1cdc123316df818
4306fbda39b5488dac465a221bf9d8da4cbf2235
refs/heads/master
2020-12-25T18:20:08.253300
2012-09-10T17:09:50
2012-09-10T17:09:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,388
java
package com.planet_ink.marble_mud.Libraries.interfaces; import com.planet_ink.marble_mud.core.interfaces.*; import com.planet_ink.marble_mud.core.*; import com.planet_ink.marble_mud.core.collections.*; import com.planet_ink.marble_mud.Abilities.interfaces.*; import com.planet_ink.marble_mud.Areas.interfaces.*; import com.planet_ink.marble_mud.Behaviors.interfaces.*; import com.planet_ink.marble_mud.CharClasses.interfaces.*; import com.planet_ink.marble_mud.Commands.interfaces.*; import com.planet_ink.marble_mud.Common.interfaces.*; import com.planet_ink.marble_mud.Exits.interfaces.*; import com.planet_ink.marble_mud.Items.interfaces.*; import com.planet_ink.marble_mud.Locales.interfaces.*; import com.planet_ink.marble_mud.MOBS.interfaces.*; import com.planet_ink.marble_mud.MOBS.interfaces.Auctioneer.AuctionData; import com.planet_ink.marble_mud.Races.interfaces.*; import java.util.*; /* 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. */ public interface ShoppingLibrary extends CMLibrary { public ShopKeeper getShopKeeper(Environmental E); public List<Environmental> getAllShopkeepers(Room here, MOB notMOB); public String getViewDescription(Environmental E); public double rawSpecificGoldPrice(Environmental product, CoffeeShop shop, double numberOfThem); public double prejudiceValueFromPart(MOB customer, boolean sellTo, String part); public double prejudiceFactor(MOB customer, String factors, boolean sellTo); public ShopKeeper.ShopPrice sellingPrice(MOB seller, MOB buyer, Environmental product, ShopKeeper shop, boolean includeSalesTax); public double devalue(ShopKeeper shop, Environmental product); public ShopKeeper.ShopPrice pawningPrice(MOB seller, MOB buyer, Environmental product, ShopKeeper shop); public double getSalesTax(Room homeRoom, MOB seller); public boolean standardSellEvaluation(MOB seller, MOB buyer, Environmental product, ShopKeeper shop, double maxToPay, double maxEverPaid, boolean sellNotValue); public boolean standardBuyEvaluation(MOB seller, MOB buyer, Environmental product, ShopKeeper shop, boolean buyNotView); public String getListInventory(MOB seller, MOB buyer, List<? extends Environmental> inventory, int limit, ShopKeeper shop, String mask); public String findInnRoom(InnKey key, String addThis, Room R); public MOB parseBuyingFor(MOB buyer, String message); public double transactPawn(MOB shopkeeper, MOB pawner, ShopKeeper shop, Environmental product); public void transactMoneyOnly(MOB seller, MOB buyer, ShopKeeper shop, Environmental product, boolean sellerGetsPaid); public boolean purchaseItems(Item baseProduct, List<Environmental> products, MOB seller, MOB mobFor); public boolean purchaseMOB(MOB product, MOB seller, ShopKeeper shop, MOB mobFor); public void purchaseAbility(Ability A, MOB seller, ShopKeeper shop, MOB mobFor); public List<Environmental> addRealEstateTitles(List<Environmental> V, MOB buyer, CoffeeShop shop, Room myRoom); public boolean ignoreIfNecessary(MOB mob, String ignoreMask, MOB whoIgnores); public String storeKeeperString(CoffeeShop shop); public boolean doISellThis(Environmental thisThang, ShopKeeper shop); public String[] bid(MOB mob, double bid, String bidCurrency, Auctioneer.AuctionData auctionData, Item I, List<String> auctionAnnounces); public void returnMoney(MOB to, String currency, double amt); public String getAuctionInventory(MOB seller,MOB buyer,Auctioneer auction,String mask); public String getListForMask(String targetMessage); public List<AuctionData> getAuctions(Object ofLike, String auctionHouse); public Auctioneer.AuctionData getEnumeratedAuction(String named, String auctionHouse); public void auctionNotify(MOB M, String resp, String regardingItem); public void cancelAuction(String auctionHouse, Auctioneer.AuctionData data); public void saveAuction(Auctioneer.AuctionData data, String auctionHouse, boolean updateOnly); }
[ "Cocanuta@Gmail.com" ]
Cocanuta@Gmail.com
82f476336bfff65afec1afc7476727c64b9bd96a
830e7cfd9f7521a7be65d71ff9487a7bbfdcf4c1
/src/homeWork/hw1/loginEllos/EllosMainPage.java
70006776a23f3ed335752d6ee5b41a5d345faaa4
[]
no_license
alexace013/QAcourse
cb9961b97e1a8d51a4720cb3aeefc3e970326b04
f0d174fd8ab06213d5aa1fbbe815ed6fd3d6b056
refs/heads/master
2021-01-10T14:27:15.135644
2016-01-28T17:50:50
2016-01-28T17:50:50
49,738,211
0
0
null
null
null
null
UTF-8
Java
false
false
1,096
java
package homeWork.hw1.loginEllos; import org.apache.log4j.Logger; import org.openqa.selenium.WebDriver; import weekend.utils.web.WebElementsActions_Lesson; import java.io.IOException; public class EllosMainPage { WebDriver driver; WebElementsActions_Lesson web; Logger log = Logger.getLogger(EllosMainPage.class); public EllosMainPage(WebDriver driver) { this.driver = driver; web = new WebElementsActions_Lesson(driver); } public void clickLogo() { try { web.clickLink("Logo"); log.info("click on logo link"); } catch (IOException e) { e.printStackTrace(); } } public void switchToLoginPage() { try { web.clickLink("LoginLink"); log.info("click on LoginLink"); } catch (IOException e) { e.printStackTrace(); } if (web.isElementPresentBy("EmailField")) { log.info("SwitchTo Login Page was correct"); } else { log.error("SwitchTo Login Page was INCORRECT"); } } }
[ "alexace013@gmail.com" ]
alexace013@gmail.com