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
556ad1bbcc8d6749168f03f13b2c435ff2c10052
58d3477305eb5e6864d0614d9eee463ecad7ce37
/src/main/java/com/bnymellon/synthetictxn/txnflow/repository/AuthorityRepository.java
b66e2f9da199db6e90a3700556fd816ad0391ff5
[]
no_license
ckotwal/txnFlow
545b5010f893d1002e09380ae5fbefc5ccb8e09a
ffa7d2b31197fc48bf5ca95dd1d4f0cd0c792921
refs/heads/master
2021-06-30T15:33:53.461200
2018-08-12T06:06:53
2018-08-12T06:06:53
144,358,356
0
1
null
2020-09-18T04:06:38
2018-08-11T05:31:44
Java
UTF-8
Java
false
false
326
java
package com.bnymellon.synthetictxn.txnflow.repository; import com.bnymellon.synthetictxn.txnflow.domain.Authority; import org.springframework.data.jpa.repository.JpaRepository; /** * Spring Data JPA repository for the Authority entity. */ public interface AuthorityRepository extends JpaRepository<Authority, String> { }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
4dbee592a0bd7991b25c285f76eeceb659c09900
289a3eadd2a26fc7f82ca0d58a29902b753dcee3
/craft3data/src/com/hiveworkshop/wc3/gui/modeledit/newstuff/manipulator/RotateManipulator.java
9b54f00a7bcc1fc60f520233ff79a66928546d1c
[ "MIT" ]
permissive
Retera/ReterasModelStudio
e6cfe3099eed1c6426dff34f2f965ca040597d34
2b7c9f0c223874381074f4e04f82442f03a8ec53
refs/heads/master
2023-08-30T19:26:33.917185
2023-06-02T03:00:14
2023-06-02T03:00:14
39,873,368
59
18
null
2021-05-30T21:14:35
2015-07-29T04:32:41
Java
UTF-8
Java
false
false
2,272
java
package com.hiveworkshop.wc3.gui.modeledit.newstuff.manipulator; import java.awt.geom.Point2D.Double; import com.hiveworkshop.wc3.gui.modeledit.UndoAction; import com.hiveworkshop.wc3.gui.modeledit.newstuff.ModelEditor; import com.hiveworkshop.wc3.gui.modeledit.newstuff.actions.util.GenericRotateAction; import com.hiveworkshop.wc3.gui.modeledit.selection.SelectionView; import com.hiveworkshop.wc3.mdl.Vertex; public class RotateManipulator extends AbstractManipulator { private final ModelEditor modelEditor; private final SelectionView selectionView; private GenericRotateAction rotationAction; public RotateManipulator(final ModelEditor modelEditor, final SelectionView selectionView) { this.modelEditor = modelEditor; this.selectionView = selectionView; } @Override protected void onStart(final Double mouseStart, final byte dim1, final byte dim2) { super.onStart(mouseStart, dim1, dim2); final Vertex center = selectionView.getCenter(); rotationAction = modelEditor.beginRotation(center.x, center.y, center.z, dim1, dim2); } @Override public void update(final Double mouseStart, final Double mouseEnd, final byte dim1, final byte dim2) { final Vertex center = selectionView.getCenter(); final double radians = computeRotateRadians(mouseStart, mouseEnd, center, dim1, dim2); rotationAction.updateRotation(radians); } @Override public UndoAction finish(final Double mouseStart, final Double mouseEnd, final byte dim1, final byte dim2) { update(mouseStart, mouseEnd, dim1, dim2); return rotationAction; } private static double computeRotateRadians(final Double startingClick, final Double endingClick, final Vertex center, final byte portFirstXYZ, final byte portSecondXYZ) { final double startingDeltaX = startingClick.x - center.getCoord(portFirstXYZ); final double startingDeltaY = startingClick.y - center.getCoord(portSecondXYZ); final double endingDeltaX = endingClick.x - center.getCoord(portFirstXYZ); final double endingDeltaY = endingClick.y - center.getCoord(portSecondXYZ); final double startingAngle = Math.atan2(startingDeltaY, startingDeltaX); final double endingAngle = Math.atan2(endingDeltaY, endingDeltaX); final double deltaAngle = endingAngle - startingAngle; return deltaAngle; } }
[ "retera@etheller.com" ]
retera@etheller.com
1f521efa42b0cb09726da600efacbc5b506c0364
e169b621af2bae23d06cb8d0f5056d1d8ebd5192
/src/gameLogic/scene/lake/Lake7.java
19408e59b58d6f246c3fc1b11d11d7cca3a5933f
[]
no_license
Aloisius64/Zelda-IGPE
b15aac7a90e5f90b46f8c3968e0121a3d41856b8
132e71ca16e5f0a432b4a1a87d1901200a0bebac
refs/heads/master
2020-08-02T07:14:29.704432
2017-01-23T18:43:06
2017-01-23T18:43:06
211,272,944
0
0
null
null
null
null
UTF-8
Java
false
false
682
java
package gameLogic.scene.lake; import gameLogic.scene.AbstractObjectScene; import gameLogic.scene.Empty; import gameLogic.scene.XLand; import gameLogic.world.ConcreteWorld; import gameLogic.world.World; import java.awt.Graphics; import common.ImageProvider; import staticConstant.StaticConstantID; public class Lake7 extends AbstractObjectScene { public Lake7(int xPosition, int yPosition) { super(xPosition, yPosition); setId(StaticConstantID.LAKE_7); } @Override public boolean canAdd(int x, int y) { return false; } @Override public void manageAddition(World world, int x, int y) { } @Override public void manageRemotion(World world, int x, int y) { } }
[ "luigiolivella@gmail.com" ]
luigiolivella@gmail.com
b48063115ae082a888e3de91ba404b0b5af9bb1e
d8946a76bf529a711bd2f0f6edbff554a00bfe09
/live-service/src/main/java/com/xq/live/service/OrderInvoiceService.java
029f6f7d5bf7a54849a58e5a52245008e365814d
[]
no_license
bs-debugger/ShoppingMall
d126b027cb0d4c7818a8fda1020669dbfe2aa5cd
a23303268ffec5f598b4608d6dcbe760ba8b2470
refs/heads/master
2022-12-23T12:19:49.928887
2019-07-11T10:18:43
2019-07-11T10:18:43
196,370,705
0
0
null
2022-12-16T02:23:13
2019-07-11T10:11:35
Java
UTF-8
Java
false
false
1,056
java
package com.xq.live.service; import com.github.pagehelper.PageInfo; import com.xq.live.common.BaseResp; import com.xq.live.common.Pager; import com.xq.live.model.OrderInvoice; import com.xq.live.vo.in.OrderInvoiceInVo; import com.xq.live.vo.out.OrderInvoiceOut; /** * 订单发票Service * Created by lipeng on 2018/12/22. */ public interface OrderInvoiceService { Pager<OrderInvoiceOut> list(OrderInvoiceInVo inVo); Long add(OrderInvoice inVo); /** * 查询订单是否已经开发票或者在开发票申请中 * true 是 * false 未开或被驳回 * @param inVo * @return */ Boolean checkOrderInvoice(OrderInvoice inVo); /** * 分页查询申请状态的发票列表 * @param orderInvoiceInVo * @return */ PageInfo<OrderInvoiceOut> showListByTemp(OrderInvoiceInVo orderInvoiceInVo); /** * 批量同意and驳回发票申请 * */ BaseResp agreeApply(OrderInvoiceInVo orderInvoiceInVo); /** * 驳回原因 * */ BaseResp getReason(); }
[ "hbxfbs@126.com" ]
hbxfbs@126.com
3678ac47709e1652217711953435ac93cc5fdab8
252851ec3358c42892b69c579d863e7fb82b37e5
/spark_project/src/main/java/com/cky/sparkproject/utils/ParamUtils.java
6410a795a95385d330a19d356adaa48c2f7faa0a
[]
no_license
salted-fish-cky/project_space
e613a3a2a1121d3c91554a2919fc3ae1e9b25eac
e1079b72e14d4b6e95d451e59c6ce250783569ef
refs/heads/master
2022-12-21T14:31:46.945062
2019-07-08T08:32:56
2019-07-08T08:32:56
174,693,502
0
0
null
2022-12-16T11:56:07
2019-03-09T12:46:07
JavaScript
UTF-8
Java
false
false
1,271
java
package com.cky.sparkproject.utils; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.cky.sparkproject.conf.ConfigurationManager; import com.cky.sparkproject.constants.Constants; /** * 参数工具类 * @author Administrator * */ public class ParamUtils { /** * 从命令行参数中提取任务id * @param args 命令行参数 * @return 任务id */ public static Long getTaskIdFromArgs(String[] args,String taskType) { Boolean local = ConfigurationManager.getBoolean(Constants.SPARK_LOCAL); if(local){ return ConfigurationManager.getLong(taskType); }else{ try { if(args != null && args.length > 0) { return Long.valueOf(args[0]); } } catch (Exception e) { e.printStackTrace(); } } return null; } /** * 从JSON对象中提取参数 * @param jsonObject JSON对象 * @return 参数 */ public static String getParam(JSONObject jsonObject, String field) { JSONArray jsonArray = jsonObject.getJSONArray(field); if(jsonArray != null && jsonArray.size() > 0) { return jsonArray.getString(0); } return null; } public static String getParamNotArray(JSONObject jsonObject, String field){ String value = jsonObject.getString(field); return value; } }
[ "1324775254@qq.com" ]
1324775254@qq.com
6e70f461cfe2f6c9123628f0202be957940c2715
066c3640aa155279b0b259f12f8fd926b8e9e72a
/emms_GXDD/.svn/pristine/28/28e46a009949323f608115dc886a615826ac4ce0.svn-base
2724568e40d41ac7adc9c87c74f23d56cc04ecf4
[]
no_license
zjt0428/emms_GXDD
3eebe850533357e7e43858120cfa58a55d797f7c
9dd7af521efa613c9bba3ce8f7e1c706d8b94a50
refs/heads/master
2020-09-13T18:09:00.499402
2019-11-20T07:56:23
2019-11-20T07:56:23
222,864,042
0
0
null
null
null
null
UTF-8
Java
false
false
732
package com.knight.emms.model; import java.math.BigDecimal; import com.google.gson.annotations.Expose; import com.knight.core.model.BaseModel; import com.knight.core.table.CodeFieldDeclare; import lombok.Data; import lombok.ToString; @Data @ToString(callSuper = false, doNotUseGetters = true) public class EnterFactoryEquip extends BaseModel{ @Expose private Long enFactoryEquipId; @Expose private Long factoryNoticeId; @Expose private String equipGenericName; @Expose private String equipSpecificName; @Expose private Integer counts; @Expose private BigDecimal initHeight; @Expose private BigDecimal contractHeight; @Expose private Integer wallAttacheQty; @Expose private BigDecimal brachium; }
[ "3555673863@qq.com" ]
3555673863@qq.com
86595d59674ad036992f506fa3aad19426da124a
28c95ff3e059e896d2f10caf25b3353c7ac50109
/characteristic/u2b96/src/main/java/org/im97mori/ble/characteristic/u2b96/TrackChanged.java
ad66414daa57ccf4cda8c85e9507e3de798326b6
[ "MIT" ]
permissive
im97mori-github/JavaBLEUtil
7c8fd4bf0b640c87a874a07aa8873815ba1beb09
335b7a76869abf89ad1397aaf7544c1ca5b92526
refs/heads/master
2023-08-30T21:04:34.786942
2023-08-25T12:00:07
2023-08-26T23:07:11
242,078,480
1
1
null
null
null
null
UTF-8
Java
false
false
737
java
package org.im97mori.ble.characteristic.u2b96; import org.im97mori.ble.ByteArrayInterface; import androidx.annotation.NonNull; /** * Track Changed (Characteristics UUID: 0x2B96) */ // TODO Media Control Service public class TrackChanged implements ByteArrayInterface { /** * Constructor from byte array * * @param values byte array from <a href="https://developer.android.com/reference/android/bluetooth/BluetoothGattCharacteristic#getValue()">BluetoothGattCharacteristic#getValue()</a> */ public TrackChanged(@NonNull byte[] values) { } /** * {@inheritDoc} */ @Override @NonNull public byte[] getBytes() { byte[] data = new byte[0]; return data; } }
[ "github@im97mori.org" ]
github@im97mori.org
2b5a58a9a281bdf9ebfd4c3f6318eeaeb2215caf
4bb3a88b8e2dfa18c592fd0878a3110740c6db38
/remote/branches/VuzeRemote_2.6.1/vuzeAndroidRemote/src/main/java/com/vuze/android/widget/FlingLinearLayout.java
8042a8bb7cdcef0175a1c607b82cad31fd6af147
[]
no_license
svn2github/vuze-android
84f725baf90f17b64bfe5be8b350434a46160a95
833b9ee1c6b151d2b9ae7a7f9d646a0ca807a7d8
refs/heads/master
2023-09-03T15:33:20.420306
2017-03-06T23:47:51
2017-03-06T23:47:51
48,538,637
0
1
null
null
null
null
UTF-8
Java
false
false
3,934
java
/* * Copyright (c) Azureus Software, Inc, All Rights Reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * 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, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ package com.vuze.android.widget; import com.vuze.util.Thunk; import android.annotation.TargetApi; import android.content.Context; import android.os.Build; import android.util.AttributeSet; import android.view.GestureDetector; import android.view.MotionEvent; import android.view.View; import android.widget.LinearLayout; /** * Created by TuxPaper on 6/20/16. */ public class FlingLinearLayout extends LinearLayout { /** fling behavior threshold */ @Thunk static final int FLING_THRESHOLD = 180; /** callback return value content : Left to Right */ public static final int LEFT_TO_RIGHT = 1; /** callback return value content : Right to Left */ @SuppressWarnings("WeakerAccess") public static final int RIGHT_TO_LEFT = -1; private GestureDetector mGestureDetector; @Thunk OnSwipeListener mOnSwipeListener; /** * OnSwipeListener interface */ public interface OnSwipeListener { void onSwipe(View view, int direction); } public void setOnSwipeListener(final OnSwipeListener listener) { mOnSwipeListener = listener; } public FlingLinearLayout(Context context) { super(context); init(context); } public FlingLinearLayout(Context context, AttributeSet attrs) { super(context, attrs); init(context); } @TargetApi(Build.VERSION_CODES.HONEYCOMB) public FlingLinearLayout(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); init(context); } @TargetApi(Build.VERSION_CODES.LOLLIPOP) public FlingLinearLayout(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { super(context, attrs, defStyleAttr, defStyleRes); init(context); } private void init(Context context) { mGestureDetector = new GestureDetector(context, new MySimpleOnGestureListener()); } @Override public boolean onTouchEvent(MotionEvent event) { // For the area that doesn't have any children (only ACTION_DOWN will be triggered in onInterceptTouchEvent) mGestureDetector.onTouchEvent(event); super.onTouchEvent(event); return true; } @Override public boolean onInterceptTouchEvent(MotionEvent ev) { return mGestureDetector.onTouchEvent(ev); } /** * GestureDetector.SimpleOnGestureListener */ @Thunk class MySimpleOnGestureListener extends GestureDetector.SimpleOnGestureListener { @Override public boolean onDown(MotionEvent e) { return false; } @Override public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { float sX = e1.getX(); float sY = e1.getY(); float eX = e2.getX(); float eY = e2.getY(); float deltaX = eX - sX; float deltaY = eY - sY; if (Math.abs(deltaX) > Math.abs(deltaY) && Math.abs(deltaX) > FLING_THRESHOLD) { // Left to Right if (e1.getX() < e2.getX()) { if (mOnSwipeListener != null) { mOnSwipeListener.onSwipe(FlingLinearLayout.this, LEFT_TO_RIGHT); return true; } } // Right to Left if (e1.getX() > e2.getX()) { if (mOnSwipeListener != null) { mOnSwipeListener.onSwipe(FlingLinearLayout.this, RIGHT_TO_LEFT); return true; } } } return false; } } }
[ "amogge@c2c1b7af-1477-405b-86ee-8aefd1fc4dd2" ]
amogge@c2c1b7af-1477-405b-86ee-8aefd1fc4dd2
af1b54f1810c72ed208ae8045cb6e708ab7f76ee
2403e5d04d8bdcb7cd6d545eff244c813b71c555
/app/src/main/java/com/zhangju/xingquban/interestclassapp/ui/fragment/me/Institutions/jgjj/MeJiGouJgjjTjBean.java
80af3a31b0bb8b294a8a348117013325164231ff
[]
no_license
tangyang0317/XQB-Android
4a9eb9f183cad2ec84ee4bd257b9fb48ef875b8b
8acc0ed1b4a7208f28b9e2f9c2e972c25e62cd75
refs/heads/master
2020-03-25T11:27:07.132526
2018-11-20T03:49:51
2018-11-20T03:49:51
143,732,904
1
0
null
null
null
null
UTF-8
Java
false
false
471
java
package com.zhangju.xingquban.interestclassapp.ui.fragment.me.Institutions.jgjj; /** * Created by zsl on 2017/8/29. */ public class MeJiGouJgjjTjBean { private String Content; private int Type; public String getContent() { return Content; } public void setContent(String content) { Content = content; } public int getType() { return Type; } public void setType(int type) { Type = type; } }
[ "2491548203@qq.com" ]
2491548203@qq.com
48a1497fb2193ec76209e92fb8edaaca88d83958
8b419373faa9450ed8653f9cdebf25e7dfafd6cf
/slot-machine-android/src/main/java/com/slotmachine/android/AboutDialogFragment.java
f4961689da4fd64c4177b57cf0ab8c1cd21e2ef3
[]
no_license
kamalclabs/slot-machine
ffc37b1a12337361cf23dff0620dd62f029728db
b66058af19c4c2efc3ecf234111f68d0b4f4781f
refs/heads/master
2021-01-20T12:22:35.076859
2013-02-26T21:38:36
2013-02-26T21:38:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,190
java
package com.slotmachine.android; import com.jdroid.android.dialog.AbstractAboutDialogFragment; import com.jdroid.android.utils.AndroidUtils; import com.jdroid.slotmachine.lite.R; /** * * @author Maxi Rosson */ public class AboutDialogFragment extends AbstractAboutDialogFragment { /** * @see com.jdroid.android.dialog.AbstractAboutDialogFragment#getAppName() */ @Override protected String getAppName() { return getString(AndroidApplication.get().getAndroidApplicationContext().isFreeApp() ? R.string.appNameFree : R.string.appName); } /** * @see com.jdroid.android.dialog.AbstractAboutDialogFragment#getShareEmailSubject() */ @Override protected String getShareEmailSubject() { return getString(R.string.shareSubject); } /** * @see com.jdroid.android.dialog.AbstractAboutDialogFragment#getShareEmailContent() */ @Override protected String getShareEmailContent() { return getString(R.string.shareContent, AndroidUtils.getPackageName()); } /** * @see com.jdroid.android.dialog.AbstractAboutDialogFragment#getContactUsEmail() */ @Override protected String getContactUsEmail() { return ApplicationContext.get().getContactUsEmail(); } }
[ "maxirosson@gmail.com" ]
maxirosson@gmail.com
376f428a6c667e51bb50948004cb7030a6e6c73d
1374237fa0c18f6896c81fb331bcc96a558c37f4
/java/com/winnertel/ems/epon/iad/bbs4000/mib/r400/UniExtAttributeTable.java
a99e97d8686e635d39bd9ed240a2cf12326fdb3c
[]
no_license
fangniude/lct
0ae5bc550820676f05d03f19f7570dc2f442313e
adb490fb8d0c379a8b991c1a22684e910b950796
refs/heads/master
2020-12-02T16:37:32.690589
2017-12-25T01:56:32
2017-12-25T01:56:32
96,560,039
0
0
null
null
null
null
UTF-8
Java
false
false
5,238
java
/** * Created by Zhou Chao, 2010/6/22 */ package com.winnertel.ems.epon.iad.bbs4000.mib.r400; import com.winnertel.em.framework.model.MibBeanException; import com.winnertel.em.framework.model.snmp.ISnmpConstant; import com.winnertel.em.framework.model.snmp.ISnmpProxy; import com.winnertel.em.framework.model.snmp.SnmpMibBean; import com.winnertel.em.framework.model.snmp.SnmpMibBeanProperty; import java.util.Vector; public class UniExtAttributeTable extends SnmpMibBean { public static final String uniExtAttributeCardIndex = "uniExtAttributeCardIndex"; public static final String uniExtAttributePortIndex = "uniExtAttributePortIndex"; public static final String uniPerfStats15minuteEnable = "uniPerfStats15minuteEnable"; public static final String uniPerfStats24hourEnable = "uniPerfStats24hourEnable"; public static final String uniLastChangeTime = "uniLastChangeTime"; public static final String uniIsolationEnable = "uniIsolationEnable"; public static final String uniMacAddrLearnMaxNum = "uniMacAddrLearnMaxNum"; public UniExtAttributeTable(ISnmpProxy aSnmpProxy) { super(aSnmpProxy); init(); } protected void init() { initProperty(uniExtAttributeCardIndex, new SnmpMibBeanProperty(uniExtAttributeCardIndex, ".1.3.6.1.4.1.17409.2.3.5.7.1.1", ISnmpConstant.INTEGER)); initProperty(uniExtAttributePortIndex, new SnmpMibBeanProperty(uniExtAttributePortIndex, ".1.3.6.1.4.1.17409.2.3.5.7.1.2", ISnmpConstant.INTEGER)); initProperty(uniPerfStats15minuteEnable, new SnmpMibBeanProperty(uniPerfStats15minuteEnable, ".1.3.6.1.4.1.17409.2.3.5.7.1.3", ISnmpConstant.INTEGER)); initProperty(uniPerfStats24hourEnable, new SnmpMibBeanProperty(uniPerfStats24hourEnable, ".1.3.6.1.4.1.17409.2.3.5.7.1.4", ISnmpConstant.INTEGER)); initProperty(uniLastChangeTime, new SnmpMibBeanProperty(uniLastChangeTime, ".1.3.6.1.4.1.17409.2.3.5.7.1.5", ISnmpConstant.COUNTER)); initProperty(uniIsolationEnable, new SnmpMibBeanProperty(uniIsolationEnable, ".1.3.6.1.4.1.17409.2.3.5.7.1.6", ISnmpConstant.INTEGER)); initProperty(uniMacAddrLearnMaxNum, new SnmpMibBeanProperty(uniMacAddrLearnMaxNum, ".1.3.6.1.4.1.17409.2.3.5.7.1.7", ISnmpConstant.INTEGER)); } public Integer getUniExtAttributeCardIndex() { return (Integer) getIndex(0); } public void setUniExtAttributeCardIndex(Integer aUniExtAttributeCardIndex) { setIndex(0, aUniExtAttributeCardIndex); } public Integer getUniExtAttributePortIndex() { return (Integer) getIndex(1); } public void setUniExtAttributePortIndex(Integer aUniExtAttributePortIndex) { setIndex(1, aUniExtAttributePortIndex); } public Integer getUniPerfStats15minuteEnable() { return (Integer) getProperty(uniPerfStats15minuteEnable).getValue(); } public void setUniPerfStats15minuteEnable(Integer aUniPerfStats15minuteEnable) { getProperty(uniPerfStats15minuteEnable).setValue(aUniPerfStats15minuteEnable); } public Integer getUniPerfStats24hourEnable() { return (Integer) getProperty(uniPerfStats24hourEnable).getValue(); } public void setUniPerfStats24hourEnable(Integer aUniPerfStats24hourEnable) { getProperty(uniPerfStats24hourEnable).setValue(aUniPerfStats24hourEnable); } public Long getUniLastChangeTime() { return (Long) getProperty(uniLastChangeTime).getValue(); } public void setUniLastChangeTime(Long aUniLastChangeTime) { getProperty(uniLastChangeTime).setValue(aUniLastChangeTime); } public Integer getUniIsolationEnable() { return (Integer) getProperty(uniIsolationEnable).getValue(); } public void setUniIsolationEnable(Integer aUniIsolationEnable) { getProperty(uniIsolationEnable).setValue(aUniIsolationEnable); } public Integer getUniMacAddrLearnMaxNum() { return (Integer) getProperty(uniMacAddrLearnMaxNum).getValue(); } public void setUniMacAddrLearnMaxNum(Integer aUniMacAddrLearnMaxNum) { getProperty(uniMacAddrLearnMaxNum).setValue(aUniMacAddrLearnMaxNum); } public boolean retrieve() throws MibBeanException { prepareRead(getProperty(uniPerfStats15minuteEnable)); prepareRead(getProperty(uniPerfStats24hourEnable)); prepareRead(getProperty(uniLastChangeTime)); prepareRead(getProperty(uniIsolationEnable)); prepareRead(getProperty(uniMacAddrLearnMaxNum)); return load(); } public Vector retrieveAll() throws MibBeanException { prepareRead(getProperty(uniPerfStats15minuteEnable)); prepareRead(getProperty(uniPerfStats24hourEnable)); prepareRead(getProperty(uniLastChangeTime)); prepareRead(getProperty(uniIsolationEnable)); prepareRead(getProperty(uniMacAddrLearnMaxNum)); return loadAll(new int[]{1, 1}); } public boolean modify() throws MibBeanException { prepareSave(getProperty(uniPerfStats15minuteEnable)); prepareSave(getProperty(uniPerfStats24hourEnable)); prepareSave(getProperty(uniIsolationEnable)); prepareSave(getProperty(uniMacAddrLearnMaxNum)); return save(); } }
[ "fangniude@gmail.com" ]
fangniude@gmail.com
f755d434780e49ce575e92198c8756377f7a0e1b
ed58225e220e7860f79a7ddaedfe62c5373e6f9d
/ShellEngine_dev/src/com/go/gl/animation/TranslateAnimation.java
67a42664901f8fd488735f97e4e15f6c28e4fa22
[]
no_license
led-os/samplea1
f453125996384ef5453c3dca7c42333cc9534853
e55e57f9d5c7de0e08c6795851acbc1b1679d3a1
refs/heads/master
2021-08-30T05:37:00.963358
2017-12-03T08:55:00
2017-12-03T08:55:00
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,630
java
package com.go.gl.animation; /* * Copyright (C) 2006 The Android Open Source Project * * 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. */ import android.content.Context; import android.util.AttributeSet; /** * An animation that controls the position of an object. See the * {@link android.view.animation full package} description for details and * sample code. * */ public class TranslateAnimation extends Animation { private int mFromXType = ABSOLUTE; private int mToXType = ABSOLUTE; private int mFromYType = ABSOLUTE; private int mToYType = ABSOLUTE; private float mFromXValue = 0.0f; private float mToXValue = 0.0f; private float mFromYValue = 0.0f; private float mToYValue = 0.0f; private float mFromXDelta; private float mToXDelta; private float mFromYDelta; private float mToYDelta; /** * Constructor used when a TranslateAnimation is loaded from a resource. * * @param context Application context to use * @param attrs Attribute set from which to read values */ public TranslateAnimation(Context context, AttributeSet attrs) { super(context, attrs); //TODO // TypedArray a = context.obtainStyledAttributes(attrs, // com.android.internal.R.styleable.TranslateAnimation); // // Description d = Description.parseValue(a.peekValue( // com.android.internal.R.styleable.TranslateAnimation_fromXDelta)); // mFromXType = d.type; // mFromXValue = d.value; // // d = Description.parseValue(a.peekValue( // com.android.internal.R.styleable.TranslateAnimation_toXDelta)); // mToXType = d.type; // mToXValue = d.value; // // d = Description.parseValue(a.peekValue( // com.android.internal.R.styleable.TranslateAnimation_fromYDelta)); // mFromYType = d.type; // mFromYValue = d.value; // // d = Description.parseValue(a.peekValue( // com.android.internal.R.styleable.TranslateAnimation_toYDelta)); // mToYType = d.type; // mToYValue = d.value; // // a.recycle(); } /** * Constructor to use when building a TranslateAnimation from code * * @param fromXDelta Change in X coordinate to apply at the start of the * animation * @param toXDelta Change in X coordinate to apply at the end of the * animation * @param fromYDelta Change in Y coordinate to apply at the start of the * animation * @param toYDelta Change in Y coordinate to apply at the end of the * animation */ public TranslateAnimation(float fromXDelta, float toXDelta, float fromYDelta, float toYDelta) { mFromXValue = fromXDelta; mToXValue = toXDelta; mFromYValue = fromYDelta; mToYValue = toYDelta; mFromXType = ABSOLUTE; mToXType = ABSOLUTE; mFromYType = ABSOLUTE; mToYType = ABSOLUTE; } /** * Constructor to use when building a TranslateAnimation from code * * @param fromXType Specifies how fromXValue should be interpreted. One of * Animation.ABSOLUTE, Animation.RELATIVE_TO_SELF, or * Animation.RELATIVE_TO_PARENT. * @param fromXValue Change in X coordinate to apply at the start of the * animation. This value can either be an absolute number if fromXType * is ABSOLUTE, or a percentage (where 1.0 is 100%) otherwise. * @param toXType Specifies how toXValue should be interpreted. One of * Animation.ABSOLUTE, Animation.RELATIVE_TO_SELF, or * Animation.RELATIVE_TO_PARENT. * @param toXValue Change in X coordinate to apply at the end of the * animation. This value can either be an absolute number if toXType * is ABSOLUTE, or a percentage (where 1.0 is 100%) otherwise. * @param fromYType Specifies how fromYValue should be interpreted. One of * Animation.ABSOLUTE, Animation.RELATIVE_TO_SELF, or * Animation.RELATIVE_TO_PARENT. * @param fromYValue Change in Y coordinate to apply at the start of the * animation. This value can either be an absolute number if fromYType * is ABSOLUTE, or a percentage (where 1.0 is 100%) otherwise. * @param toYType Specifies how toYValue should be interpreted. One of * Animation.ABSOLUTE, Animation.RELATIVE_TO_SELF, or * Animation.RELATIVE_TO_PARENT. * @param toYValue Change in Y coordinate to apply at the end of the * animation. This value can either be an absolute number if toYType * is ABSOLUTE, or a percentage (where 1.0 is 100%) otherwise. */ public TranslateAnimation(int fromXType, float fromXValue, int toXType, float toXValue, int fromYType, float fromYValue, int toYType, float toYValue) { mFromXValue = fromXValue; mToXValue = toXValue; mFromYValue = fromYValue; mToYValue = toYValue; mFromXType = fromXType; mToXType = toXType; mFromYType = fromYType; mToYType = toYType; } @Override protected void applyTransformation(float interpolatedTime, Transformation3D t) { float dx = mFromXDelta; float dy = mFromYDelta; if (mFromXDelta != mToXDelta) { dx = mFromXDelta + ((mToXDelta - mFromXDelta) * interpolatedTime); } if (mFromYDelta != mToYDelta) { dy = mFromYDelta + ((mToYDelta - mFromYDelta) * interpolatedTime); } t.setTranslate(dx, dy); } @Override public void initialize(int width, int height, int parentWidth, int parentHeight) { super.initialize(width, height, parentWidth, parentHeight); mFromXDelta = resolveSize(mFromXType, mFromXValue, width, parentWidth); mToXDelta = resolveSize(mToXType, mToXValue, width, parentWidth); mFromYDelta = resolveSize(mFromYType, mFromYValue, height, parentHeight); mToYDelta = resolveSize(mToYType, mToYValue, height, parentHeight); } }
[ "clteir28410@chacuo.net" ]
clteir28410@chacuo.net
4340edb885f216540c2f4a1890a3196bc116cbd3
1374d8de0a481c4e14360a239f9fcd797c246fa6
/04-模板/com/giousa/sys/service/impl/LoginInfoServiceImpl.java
1781886c9b541d12e0012b93e217db6abf956b8f
[]
no_license
Giousa/GoTestProject
04293f5fa5c27c01f7c4f47bb402fec2451248e3
df41c9d128e55f0be068f280cfc1e83910abd9a8
refs/heads/main
2023-07-01T12:27:48.860912
2021-07-28T05:49:39
2021-07-28T05:49:39
327,627,978
0
0
null
null
null
null
UTF-8
Java
false
false
697
java
package com.giousa.sys.service.impl; /** * Description: * Author: * Date: */ @Service public class LoginInfoServiceImpl implements LoginInfoService { @Autowired private LoginInfoMapper loginInfoMapper; @Override public ResultVO addLoginInfo(LoginInfo loginInfo) { return null; } @Override public ResultVO updateLoginInfo(LoginInfo loginInfo) { return null; } @Override public ResultVO findLoginInfoById(String id) { return null; } @Override public ResultVO deleteLoginInfoById(String id) { return null; } @Override public ResultVO findLoginInfoListByPage(int page,int size) { return null; } }
[ "65489469@qq.com" ]
65489469@qq.com
1e947d0083289ba8b932fc9682f6bf56d9d45160
542e78ed5a5fb6074e83f8b1afbf5a9165988a79
/bin/custom/training/trainingstorefront/web/src/com/training/storefront/interceptors/beforeview/UiExperienceMetadataViewHandler.java
0444da3f26eb4ee6f15120534120b14414a1ff82
[]
no_license
VladislawL/hybris-commerce-trails
49d08b6639520a5e71273132b2761b5f27ddc114
a1ce4ae00952077bf23a78a64162a375cb50f1a1
refs/heads/master
2022-12-27T19:39:27.514634
2020-10-06T08:25:13
2020-10-06T08:25:13
299,559,346
0
0
null
null
null
null
UTF-8
Java
false
false
2,707
java
/* * Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. */ package com.training.storefront.interceptors.beforeview; import de.hybris.platform.acceleratorservices.storefront.data.MetaElementData; import de.hybris.platform.acceleratorservices.uiexperience.UiExperienceService; import de.hybris.platform.acceleratorstorefrontcommons.interceptors.BeforeViewHandler; import de.hybris.platform.commerceservices.enums.UiExperienceLevel; import de.hybris.platform.commerceservices.util.ResponsiveUtils; import java.util.List; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.web.servlet.ModelAndView; /** * Adds meta tags to help guide the device for the current UI Experience. */ public class UiExperienceMetadataViewHandler implements BeforeViewHandler { @Resource(name = "uiExperienceService") private UiExperienceService uiExperienceService; @Override public void beforeView(final HttpServletRequest request, final HttpServletResponse response, final ModelAndView modelAndView) throws Exception { if (modelAndView != null && modelAndView.getModel().containsKey("metatags")) { final List<MetaElementData> metaelements = (List<MetaElementData>) modelAndView.getModel().get("metatags"); final UiExperienceLevel currentUiExperienceLevel = uiExperienceService.getUiExperienceLevel(); if (UiExperienceLevel.DESKTOP.equals(currentUiExperienceLevel)) { if (!ResponsiveUtils.isResponsive()) { // Provide some hints to mobile browser even though this is not the mobile site --> metaelements.add(createMetaElement("HandheldFriendly", "True")); metaelements.add(createMetaElement("MobileOptimized", "970")); metaelements.add(createMetaElement("viewport", "width=970, target-densitydpi=160, maximum-scale=1.0")); } } else if (UiExperienceLevel.MOBILE.equals(currentUiExperienceLevel)) { // Provide some hints to mobile browser even though this is not the mobile site --> metaelements.add(createMetaElement("HandheldFriendly", "True")); metaelements.add(createMetaElement("MobileOptimized", "320")); metaelements .add(createMetaElement("viewport", "width=device-width, target-densitydpi=160, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no")); metaelements.add(createMetaElement("format-detection", "telephone=no")); } } } protected MetaElementData createMetaElement(final String name, final String content) { final MetaElementData element = new MetaElementData(); element.setName(name); element.setContent(content); return element; } }
[ "vladislaw.logvin@yandex.ru" ]
vladislaw.logvin@yandex.ru
81ac3a1ecc1c2df6a5db322840bc9993ddb0eb4e
33a5fcf025d92929669d53cf2dc3f1635eeb59c6
/济南大气/base/src/main/java/cn/com/mapuni/meshing/base/interfaces/IInitData.java
26fa838d708ae99f837351463b7dee00c1fbe9c0
[]
no_license
dayunxiang/MyHistoryProjects
2cacbe26d522eeb3f858d69aa6b3c77f3c533f37
6e041f53a184e7c4380ce25f5c0274aa10f06c8e
refs/heads/master
2020-11-29T09:23:27.085614
2018-03-12T07:07:18
2018-03-12T07:07:18
null
0
0
null
null
null
null
GB18030
Java
false
false
558
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package cn.com.mapuni.meshing.base.interfaces; import android.content.Context; import android.content.Intent; /** *准备功能模块跳转的数据 */ public interface IInitData { /** * Description: 初始化所需模块点击跳转的数据 * @param context * @param intent * @param obj * @return * @author 王红娟 * Create at: 2013-4-19 下午14:32:34 */ public Intent InitData(Context context,Intent intent,String ywl); }
[ "you@example.com" ]
you@example.com
a9628e8969d5b40444efd6af0b4dd0aedb560a5a
7fd2bdd7d656333da49cb6b13e7a099d4aa09197
/spring-batch-tips/src/main/java/com/jojoldu/blogcode/batch/domain/ProductRepository.java
c6729eeda25e34e0d350ceb6c74fe12d0c850237
[]
no_license
jojoldu/blog-code
5b0e38479bfb576c505b3720cb12be0fb8f7fe15
acabdb8e4b1f258aa35f554f0c964cf167a8e2ac
refs/heads/master
2023-08-29T14:31:27.509799
2023-08-19T15:37:04
2023-08-19T15:37:04
65,371,147
705
451
null
2023-09-04T10:45:08
2016-08-10T09:51:58
Java
UTF-8
Java
false
false
535
java
package com.jojoldu.blogcode.batch.domain; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.transaction.annotation.Transactional; import java.time.LocalDate; import java.util.List; /** * Created by jojoldu@gmail.com on 20/08/2018 * Blog : http://jojoldu.tistory.com * Github : https://github.com/jojoldu */ public interface ProductRepository extends JpaRepository<Product, Long> { @Transactional(readOnly = true) List<Product> findAllByCreateDateEquals(LocalDate createDate); }
[ "jojoldu@gmail.com" ]
jojoldu@gmail.com
48d42e5e379738505f85faeb60df47bdf341cc3a
418064b46ca9837bf525b0a7b330e74791ffd986
/jdroid-android/src/main/java/com/jdroid/android/activity/ActivityLifecycleHandler.java
8247dc45f0191c24d6d75fb7a3867d0bb5ca2187
[ "Apache-2.0" ]
permissive
vaginessa/jdroid
266c40687f82b8a26dc0de0ddb670150519b7e85
9841989dc0834c10d8df044f808b2d25d966aad0
refs/heads/master
2021-05-11T03:09:28.490500
2018-01-17T01:05:09
2018-01-17T01:05:09
117,907,641
0
0
Apache-2.0
2019-01-18T10:12:45
2018-01-18T00:02:04
Java
UTF-8
Java
false
false
1,000
java
package com.jdroid.android.activity; import android.app.Activity; import android.app.Application; import android.os.Bundle; public class ActivityLifecycleHandler implements Application.ActivityLifecycleCallbacks { private int numStarted; @Override public void onActivityCreated(Activity activity, Bundle savedInstanceState) { } @Override public void onActivityStarted(Activity activity) { numStarted++; } @Override public void onActivityResumed(Activity activity) { } @Override public void onActivityPaused(Activity activity) { } @Override public void onActivityStopped(Activity activity) { numStarted--; } @Override public void onActivitySaveInstanceState(Activity activity, Bundle outState) { } @Override public void onActivityDestroyed(Activity activity) { } public Boolean isInBackground() { // http://stackoverflow.com/questions/3667022/checking-if-an-android-application-is-running-in-the-background/13809991#13809991 return numStarted == 0; } }
[ "maxirosson@gmail.com" ]
maxirosson@gmail.com
62b475a956d14495e7c5b3f6480efba792156347
10c96edfa12e1a7eef1caf3ad1d0e2cdc413ca6f
/src/main/resources/projs/Commons-io-2.5_parent/src/test/java/org/apache/commons/io/input/TeeInputStreamTest.java
bd0da4918db37876280ddf25f1af7e21f729438b
[ "Apache-2.0" ]
permissive
Gu-Youngfeng/EfficiencyMiner
c17c574e41feac44cc0f483135d98291139cda5c
48fb567015088f6e48dfb964a4c63f2a316e45d4
refs/heads/master
2020-03-19T10:06:33.362993
2018-08-01T01:17:40
2018-08-01T01:17:40
136,343,802
0
0
Apache-2.0
2018-08-01T01:17:41
2018-06-06T14:51:55
Java
UTF-8
Java
false
false
3,555
java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.commons.io.input; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.InputStream; import junit.framework.TestCase; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.assertEquals; /** * JUnit Test Case for {@link TeeInputStream}. */ public class TeeInputStreamTest { private final String ASCII = "US-ASCII"; private InputStream tee; private ByteArrayOutputStream output; @Before public void setUp() throws Exception { final InputStream input = new ByteArrayInputStream("abc".getBytes(ASCII)); output = new ByteArrayOutputStream(); tee = new TeeInputStream(input, output); } @Test public void testReadNothing() throws Exception { assertEquals("", new String(output.toString(ASCII))); } @Test public void testReadOneByte() throws Exception { assertEquals('a', tee.read()); assertEquals("a", new String(output.toString(ASCII))); } @Test public void testReadEverything() throws Exception { assertEquals('a', tee.read()); assertEquals('b', tee.read()); assertEquals('c', tee.read()); assertEquals(-1, tee.read()); assertEquals("abc", new String(output.toString(ASCII))); } @Test public void testReadToArray() throws Exception { final byte[] buffer = new byte[8]; assertEquals(3, tee.read(buffer)); assertEquals('a', buffer[0]); assertEquals('b', buffer[1]); assertEquals('c', buffer[2]); assertEquals(-1, tee.read(buffer)); assertEquals("abc", new String(output.toString(ASCII))); } @Test public void testReadToArrayWithOffset() throws Exception { final byte[] buffer = new byte[8]; assertEquals(3, tee.read(buffer, 4, 4)); assertEquals('a', buffer[4]); assertEquals('b', buffer[5]); assertEquals('c', buffer[6]); assertEquals(-1, tee.read(buffer, 4, 4)); assertEquals("abc", new String(output.toString(ASCII))); } @Test public void testSkip() throws Exception { assertEquals('a', tee.read()); assertEquals(1, tee.skip(1)); assertEquals('c', tee.read()); assertEquals(-1, tee.read()); assertEquals("ac", new String(output.toString(ASCII))); } @Test public void testMarkReset() throws Exception { assertEquals('a', tee.read()); tee.mark(1); assertEquals('b', tee.read()); tee.reset(); assertEquals('b', tee.read()); assertEquals('c', tee.read()); assertEquals(-1, tee.read()); assertEquals("abbc", new String(output.toString(ASCII))); } }
[ "yongfeng_gu@163.com" ]
yongfeng_gu@163.com
33327b97c413a200cebc40fb0c13ec7ba273fe9b
a663fb8e8638c935440149eec63c427652eed146
/support/maven-archetype/src/main/resources/archetype-resources/src/test/functional/BaseFunctionalTestCase.java
1e89f7c850162ef58b5e3828ea84abfb2d7ec33d
[ "Apache-2.0" ]
permissive
wfwei/springside4
8a119b051210bb6a5b92597a9a9ddbe66d8eeeca
292408f3f535f4f7dcf649d2ff43168139e63fbc
refs/heads/master
2021-01-16T23:05:50.219815
2013-01-31T08:05:14
2013-01-31T08:05:14
7,932,723
3
3
null
null
null
null
UTF-8
Java
false
false
3,093
java
#set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' ) package ${package}.functional; import java.net.URL; import java.sql.Driver; import org.eclipse.jetty.server.Server; import org.junit.BeforeClass; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.jdbc.datasource.SimpleDriverDataSource; import org.springside.modules.test.data.DataFixtures; import org.springside.modules.test.jetty.JettyFactory; import org.springside.modules.test.selenium.Selenium2; import org.springside.modules.utils.PropertiesLoader; /** * 功能测试基类. * * 在整个测试期间启动一次Jetty Server和 Selenium,在JVM退出时关闭两者。 * 在每个TestCase Class执行前重新载入默认数据. * * @author calvin */ public class BaseFunctionalTestCase { protected static String baseUrl; protected static Server jettyServer; protected static SimpleDriverDataSource dataSource; protected static Selenium2 s; protected static PropertiesLoader propertiesLoader = new PropertiesLoader("classpath:/application.properties", "classpath:/application.functional.properties", "classpath:/application.functional-local.properties"); private static Logger logger = LoggerFactory.getLogger(BaseFunctionalTestCase.class); @BeforeClass public static void beforeClass() throws Exception { baseUrl = propertiesLoader.getProperty("baseUrl", QuickStartServer.BASE_URL); //如果是目标地址是localhost,则启动嵌入式jetty。如果指向远程地址,则不需要启动Jetty. Boolean isEmbedded = new URL(baseUrl).getHost().equals("localhost"); if (isEmbedded) { startJettyOnce(); } buildDataSourceOnce(); reloadSampleData(); } /** * 启动Jetty服务器, 仅启动一次. */ protected static void startJettyOnce() throws Exception { if (jettyServer == null) { //设定Spring的profile System.setProperty("spring.profiles.active", "functional"); jettyServer = JettyFactory.createServerInSource(new URL(baseUrl).getPort(), QuickStartServer.CONTEXT); JettyFactory.setTldJarNames(jettyServer, QuickStartServer.TLD_JAR_NAMES); jettyServer.start(); logger.info("Jetty Server started"); } } /** * 构造数据源,仅构造一次. * 连接参数从配置文件中读取,可指向本地的开发环境,也可以指向远程的测试服务器。 */ protected static void buildDataSourceOnce() throws ClassNotFoundException { if (dataSource == null) { dataSource = new SimpleDriverDataSource(); dataSource.setDriverClass((Class<? extends Driver>) Class.forName(propertiesLoader .getProperty("jdbc.driver"))); dataSource.setUrl(propertiesLoader.getProperty("jdbc.url")); dataSource.setUsername(propertiesLoader.getProperty("jdbc.username")); dataSource.setPassword(propertiesLoader.getProperty("jdbc.password")); } } /** * 载入测试数据. */ protected static void reloadSampleData() throws Exception { DataFixtures.executeScript(dataSource, "classpath:data/cleanup-data.sql", "classpath:data/import-data.sql"); } }
[ "calvinxiu@gmail.com" ]
calvinxiu@gmail.com
d8ae822862a3ea8f8d40a75471f0333b9e58b237
a0071a9c08916968d429f9db2ed8730cac42f2d7
/src/test/java/br/gov/caixa/arqrefservices/soap/econsig/CancelarReservaTest.java
506a56e2a6c80b30d3c047fea546a53723e1ab37
[]
no_license
MaurilioDeveloper/arqref
a62ea7fe009941077d3778131f7cddc9d5162ea4
7f186fc3fc769e1b30d16e6339688f29b41d828a
refs/heads/master
2020-03-22T14:57:59.419703
2018-07-09T02:04:59
2018-07-09T02:04:59
140,218,663
0
0
null
null
null
null
UTF-8
Java
false
false
2,190
java
package br.gov.caixa.arqrefservices.soap.econsig; import java.util.logging.Logger; import junit.framework.Assert; import org.junit.Test; import br.gov.caixa.arqrefcore.jaxb.conversor.ConverterXML; import br.gov.caixa.arqrefservices.dominio.econsig.cancelarReserva.CancelarReservaDadosREQ; import br.gov.caixa.arqrefservices.dominio.econsig.cancelarReserva.CancelarReservaREQ; import br.gov.caixa.arqrefservices.dominio.econsig.cancelarReserva.CancelarReservaRET; import br.gov.caixa.arqrefservices.soap.SOAPCorpo; import br.gov.caixa.arqrefservices.soap.SystemProxyFabrica; import br.gov.caixa.arqrefservices.soap.WSConsumidor; public class CancelarReservaTest extends SystemProxyFabrica { private static Logger log = Logger.getLogger(CancelarReservaTest.class.getName()); @Test public void autorizarReserva() throws Exception { log.info(" ===================================================================="); log.info(" =====>>> INICIO DO TESTE DO SERVIÇO: CancelarReserva <<<<====="); verificaProxyRequerido(); CancelarReservaREQ reserva = new CancelarReservaREQ(); SOAPCorpo<CancelarReservaDadosREQ> corpoSOAP = new SOAPCorpo<CancelarReservaDadosREQ>(); reserva.setBody(corpoSOAP); CancelarReservaDadosREQ dadosREQ = new CancelarReservaDadosREQ(); dadosREQ.setCliente(getProperties().getProperty("CLIENTE_ZETRA")); dadosREQ.setConvenio(getProperties().getProperty("CONVENIO_ZETRA")); dadosREQ.setUsuario(getProperties().getProperty("USUARIO_ZETRA")); dadosREQ.setSenha(getProperties().getProperty("SENHA_ZETRA")); dadosREQ.setAdeNumero(3179L); dadosREQ.setAdeIdentificador("IMPORTADO 20100901"); corpoSOAP.setDados(dadosREQ); String xmlREQ = ConverterXML.convertToXml(reserva, CancelarReservaREQ.class); WSConsumidor consumidor = new WSConsumidor(getProperties().getProperty("URL_ZETRA")); String xmlRET = consumidor.executar(xmlREQ); CancelarReservaRET dadosRetorno = ConverterXML.converterXmlSemSanitizacao(xmlRET, CancelarReservaRET.class); log.info(" =====>>> FIM DO TESTE DO SERVIÇO: CancelarReserva <<<<====="); Assert.assertTrue(dadosRetorno.getBody().getDados().getSucesso()); } }
[ "marlonspinf@gmail.com" ]
marlonspinf@gmail.com
fcb4471492fc63298aa479cdd7f684d290cba728
465e7794e346585621a8901abba0ce9c997a7e57
/Src/FCBlockBedrock.java
5ef350a98f0963d05de96ef139e9ab6eaf10dbdf
[ "CC-BY-4.0" ]
permissive
BetterThanUpdates/BetterThanWolves
b37cd1fb2b98d3340eda949a7e5f7819e50247c4
7cdd976a742520f09c5672730df5d0f4b08ee987
refs/heads/master
2023-04-01T14:45:50.686898
2021-04-14T03:38:47
2021-04-14T03:38:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
872
java
// FCMOD package net.minecraft.src; public class FCBlockBedrock extends FCBlockFullBlock { public FCBlockBedrock( int iBlockID ) { super( iBlockID, Material.rock ); setBlockUnbreakable(); setResistance( 6000000F ); setStepSound( soundStoneFootstep ); setUnlocalizedName( "bedrock" ); disableStats(); setCreativeTab( CreativeTabs.tabBlock ); } @Override public int getMobilityFlag() { return 2; // cannot be pushed } @Override public boolean CanMobsSpawnOn( World world, int i, int j, int k ) { return false; } @Override public ItemStack GetStackRetrievedByBlockDispenser( World world, int i, int j, int k ) { return null; // can't be picked up } //------------- Class Specific Methods ------------// //------------ Client Side Functionality ----------// }
[ "molmatt9@gmail.com" ]
molmatt9@gmail.com
8f4c86d33edf58436fce7f02345a74410c4162ef
95c82867f7233f4c48bc0aa9048080e52a4384c0
/app/src/main/java/com/furestic/office/ppt/lxs/docx/pdf/viwer/reader/free/fc/dom4j/rule/RuleManager.java
cdf2f8eb2d883fd010a02ffaa6394a3c3ec96363
[]
no_license
MayBenz/AllDocsReader
b4f2d4b788545c0ed476f20c845824ea7057f393
1914cde82471cb2bc21e00bb5ac336706febfd30
refs/heads/master
2023-01-06T04:03:43.564202
2020-10-16T13:14:09
2020-10-16T13:14:09
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,848
java
/* * Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved. * * This software is open source. * See the bottom of this file for the licence. */ package com.furestic.office.ppt.lxs.docx.pdf.viwer.reader.free.fc.dom4j.rule; import com.furestic.office.ppt.lxs.docx.pdf.viwer.reader.free.fc.dom4j.Document; import com.furestic.office.ppt.lxs.docx.pdf.viwer.reader.free.fc.dom4j.Element; import com.furestic.office.ppt.lxs.docx.pdf.viwer.reader.free.fc.dom4j.Node; import com.furestic.office.ppt.lxs.docx.pdf.viwer.reader.free.fc.dom4j.rule.pattern.NodeTypePattern; import java.util.HashMap; /** * <p> * <code>RuleManager</code> manages a set of rules such that a rule can be * found for a given DOM4J Node using the XSLT processing model. * </p> * * @author <a href="mailto:james.strachan@metastuff.com">James Strachan </a> * @version $Revision: 1.9 $ */ public class RuleManager { /** Map of modes indexed by mode */ private HashMap modes = new HashMap(); /** * A counter so that rules can be ordered by the order in which they were * added to the rule base */ private int appearenceCount; /** Holds value of property valueOfAction. */ private Action valueOfAction; public RuleManager() { } /** * DOCUMENT ME! * * @param modeName * DOCUMENT ME! * * @return the Mode instance for the given mode name. If one does not exist * then it will be created. */ public Mode getMode(String modeName) { Mode mode = (Mode)modes.get(modeName); if (mode == null) { mode = createMode(); modes.put(modeName, mode); } return mode; } public void addRule(Rule rule) { rule.setAppearenceCount(++appearenceCount); Mode mode = getMode(rule.getMode()); Rule[] childRules = rule.getUnionRules(); if (childRules != null) { for (int i = 0, size = childRules.length; i < size; i++) { mode.addRule(childRules[i]); } } else { mode.addRule(rule); } } public void removeRule(Rule rule) { Mode mode = getMode(rule.getMode()); Rule[] childRules = rule.getUnionRules(); if (childRules != null) { for (int i = 0, size = childRules.length; i < size; i++) { mode.removeRule(childRules[i]); } } else { mode.removeRule(rule); } } /** * Performs an XSLT processing model match for the rule which matches the * given Node the best. * * @param modeName * is the name of the mode associated with the rule if any * @param node * is the DOM4J Node to match against * * @return the matching Rule or no rule if none matched */ public Rule getMatchingRule(String modeName, Node node) { Mode mode = (Mode)modes.get(modeName); if (mode != null) { return mode.getMatchingRule(node); } else { System.out.println("Warning: No Mode for mode: " + mode); return null; } } public void clear() { modes.clear(); appearenceCount = 0; } // Properties // ------------------------------------------------------------------------- /** * DOCUMENT ME! * * @return the default value-of action which is used in the default rules * for the pattern "text()|&#64;" */ public Action getValueOfAction() { return valueOfAction; } /** * Sets the default value-of action which is used in the default rules for * the pattern "text()|&#64;" * * @param valueOfAction * DOCUMENT ME! */ public void setValueOfAction(Action valueOfAction) { this.valueOfAction = valueOfAction; } // Implementation methods // ------------------------------------------------------------------------- /** * A factory method to return a new {@link Mode}instance which should add * the necessary default rules * * @return DOCUMENT ME! */ protected Mode createMode() { Mode mode = new Mode(); addDefaultRules(mode); return mode; } /** * Adds the default stylesheet rules to the given {@link Mode}instance * * @param mode * DOCUMENT ME! */ protected void addDefaultRules(final Mode mode) { // add an apply templates rule Action applyTemplates = new Action() { public void run(Node node) throws Exception { if (node instanceof Element) { mode.applyTemplates((Element)node); } else if (node instanceof Document) { mode.applyTemplates((Document)node); } } }; Action valueOf = getValueOfAction(); addDefaultRule(mode, NodeTypePattern.ANY_DOCUMENT, applyTemplates); addDefaultRule(mode, NodeTypePattern.ANY_ELEMENT, applyTemplates); if (valueOf != null) { addDefaultRule(mode, NodeTypePattern.ANY_ATTRIBUTE, valueOf); addDefaultRule(mode, NodeTypePattern.ANY_TEXT, valueOf); } } protected void addDefaultRule(Mode mode, Pattern pattern, Action action) { Rule rule = createDefaultRule(pattern, action); mode.addRule(rule); } protected Rule createDefaultRule(Pattern pattern, Action action) { Rule rule = new Rule(pattern, action); rule.setImportPrecedence(-1); return rule; } } /* * Redistribution and use of this software and associated documentation * ("Software"), with or without modification, are permitted provided that the * following conditions are met: * * 1. Redistributions of source code must retain copyright statements and * notices. Redistributions must also contain a copy of this document. * * 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 name "DOM4J" must not be used to endorse or promote products derived * from this Software without prior written permission of MetaStuff, Ltd. For * written permission, please contact dom4j-info@metastuff.com. * * 4. Products derived from this Software may not be called "DOM4J" nor may * "DOM4J" appear in their names without prior written permission of MetaStuff, * Ltd. DOM4J is a registered trademark of MetaStuff, Ltd. * * 5. Due credit should be given to the DOM4J Project - http://www.dom4j.org * * THIS SOFTWARE IS PROVIDED BY METASTUFF, LTD. AND CONTRIBUTORS ``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 METASTUFF, LTD. 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. * * Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved. */
[ "zeeshanhayat61@gmail.com" ]
zeeshanhayat61@gmail.com
1081aff6a7ff66a31584040011d5ad966bb5f1dd
fddcd2ceab893b3b9383059f748029d701b585d2
/command/src/main/java/com/gds/command/Command.java
91be978a86c7da3b8e1816466cf71cac2b888847
[]
no_license
a514760469/design-pattern
8a6c4a475e1b4d167b9c03f3b034302734bf0333
1060c44adbf3127bcb36bb0316b53d552c658afe
refs/heads/master
2022-12-06T02:12:29.624422
2020-05-08T09:33:48
2020-05-08T09:33:48
234,487,244
1
0
null
2022-11-24T09:37:52
2020-01-17T06:39:03
Java
UTF-8
Java
false
false
351
java
package com.gds.command; /** * @author zhanglifeng * @since 2020-03-04 10:37 */ public abstract class Command { public abstract void execute(Target target); /** * 撤销 */ public abstract void undo(); /** * 重做 */ public abstract void redo(); @Override public abstract String toString(); }
[ "514760469@qq.com" ]
514760469@qq.com
e221ecc2b1e1059e85d21d1ffe6b82c622789213
ccf3b9914a04e121a323de4050dc8a1c450bf21b
/10_JAVA_Training_Projects/30_Level_39_BIG_TASK_BANKOMAT_Command_Pattern/command/DepositCommand.java
d10c008757ed5af748e9da679f27d6da89940084
[]
no_license
PetrBelmst/JavaRush_Course_Rep
81333e65963bb69ee2f032acbaab025580cc5bde
39e6fb64f8d5fc9b5284c8477b70cd1c62a769d5
refs/heads/master
2021-05-23T14:20:51.674509
2020-05-05T05:45:25
2020-05-05T05:45:25
253,335,289
1
0
null
null
null
null
UTF-8
Java
false
false
1,346
java
package com.company.command; import com.company.CashMachine; import com.company.ConsoleHelper; import com.company.CurrencyManipulator; import com.company.CurrencyManipulatorFactory; import com.company.exception.InterruptOperationException; import java.util.Locale; import java.util.ResourceBundle; class DepositCommand implements Command { private ResourceBundle res = ResourceBundle.getBundle(CashMachine.RESOURCE_PATH + "deposit_en", Locale.ENGLISH); @Override public void execute() throws InterruptOperationException { ConsoleHelper.writeMessage(res.getString("before")); String currCode = ConsoleHelper.askCurrencyCode(); int nominal = 0; int quantity = 0; CurrencyManipulator manipulator = CurrencyManipulatorFactory .getManipulatorByCurrencyCode(currCode); try { String[] cashInfo = ConsoleHelper.getValidTwoDigits(currCode); nominal = Integer.parseInt(cashInfo[0]); quantity = Integer.parseInt(cashInfo[1]); } catch (NumberFormatException e) { ConsoleHelper.writeMessage(res.getString("invalid.data")); } manipulator.addAmount(nominal, quantity); ConsoleHelper.writeMessage(String.format(res.getString("success.format"), nominal * quantity, currCode)); } }
[ "PetrBelmst@users.noreply.github.com" ]
PetrBelmst@users.noreply.github.com
b4d0d2fff2069bc4601aec47bf4217354ccad51d
793ce5d664509a89062ed3bb5f8bae41a5c218cc
/nodes/src/main/java/org/nodes/util/BufferedImageTranscoder.java
36fd9e23374697c0a11f430c0c10de8d23831414
[ "MIT" ]
permissive
Data2Semantics/nodes
4a5e032c932e8bce695930fd044a8dbf95e8cdd1
0c91c4120b33d478a41cf3ce7be7d715fb5c0dfd
refs/heads/master
2021-01-19T01:53:19.484297
2018-06-21T11:10:31
2018-06-21T11:10:31
14,892,701
17
8
null
null
null
null
UTF-8
Java
false
false
697
java
package org.nodes.util; import java.awt.image.BufferedImage; import org.apache.batik.transcoder.TranscoderOutput; import org.apache.batik.transcoder.image.ImageTranscoder; /** * Credits: http://bbgen.net/blog/2011/06/java-svg-to-bufferedimage/ * * @author Peter * */ public class BufferedImageTranscoder extends ImageTranscoder { @Override public BufferedImage createImage(int w, int h) { BufferedImage bi = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB); return bi; } @Override public void writeImage(BufferedImage img, TranscoderOutput output) { this.img = img; } public BufferedImage getBufferedImage() { return img; } private BufferedImage img = null; }
[ "p@peterbloem.nl" ]
p@peterbloem.nl
d026baad8cd328b4570623a39bbf15abfc55378a
bafab6aea4107c2915cc2da62fa14296f4f9ded9
/kie-wb-common-stunner/kie-wb-common-stunner-client/kie-wb-common-stunner-shapes/kie-wb-common-stunner-shapes-api/src/main/java/org/kie/workbench/common/stunner/shapes/def/RectangleShapeDef.java
795eea9786a8dd6acf07f0f479f18cd0bbcffc81
[ "Apache-2.0" ]
permissive
lazarotti/kie-wb-common
7da98f53758c211c94002660cf44698b9a2cccc4
bc98aca29846baaa01fb9a5dc468ab4f3f55a8c7
refs/heads/master
2021-01-12T01:46:55.935051
2017-01-09T10:58:05
2017-01-09T10:58:05
78,430,514
0
0
null
2017-01-09T13:19:14
2017-01-09T13:19:14
null
UTF-8
Java
false
false
863
java
/* * Copyright 2016 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.stunner.shapes.def; public interface RectangleShapeDef<W> extends BasicShapeWithTitleDef<W> { double getWidth( W element ); double getHeight( W element ); double getCornerRadius( W element ); }
[ "manstis@users.noreply.github.com" ]
manstis@users.noreply.github.com
0feeb153077e50e6a204c67654f974c950d16706
da6c16acb4ebd7f8654807917ab38f52d3512e69
/myshop-manager/myshop-manager-service/src/main/java/com/rocket/myshop/service/impl/ItemServiceImpl.java
3dcf5cd3ec727bde5c11609f7d468efb865ae17c
[ "Apache-2.0" ]
permissive
goder037/myshop
fcfb4d7001ae6de39f39afa72dbe502f100f98fc
2a50f4ee8efddb96a8164ceb5f7982c606c42341
refs/heads/master
2021-01-20T11:40:59.937697
2017-02-18T14:48:16
2017-02-18T14:48:16
74,632,452
1
3
null
null
null
null
UTF-8
Java
false
false
911
java
package com.rocket.myshop.service.impl; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.rocket.myshop.dto.ItemDto; import com.rocket.myshop.dto.common.ShopQueryResult; import com.rocket.myshop.mapper.ItemMapper; import com.rocket.myshop.service.ItemService; @Service("ItemService") public class ItemServiceImpl implements ItemService { @Resource ItemMapper itemMapper; @Override public ShopQueryResult listItem(Map<String, Object> params) { int count = itemMapper.getCount(params); ShopQueryResult result = new ShopQueryResult(); result.setTotal(count); if (count > 0) { Integer length = (Integer) params.get("length"); if (length == -1) { params.put("length", Integer.MAX_VALUE); } List<ItemDto> items = itemMapper.listItem(params); result.setList(items); } return result; } }
[ "liujie152@hotmail.com" ]
liujie152@hotmail.com
289e702ca61dbd6154a73215eea1e118fa91d7a0
b8cc6a22c29080799de0fd67ff7b82360c4cd096
/Class11.java
2c03eb0803422df1248e48596c085799f45ff69c
[]
no_license
kewle003/474_Client
adae6f0fdb2c4baa1e2d077614950757dfbc3f3a
46986c56449e2980e593273fcd8e5a48538c6255
refs/heads/master
2021-01-10T19:19:11.468509
2013-11-24T03:28:33
2013-11-24T03:28:33
12,489,021
0
1
null
null
null
null
UTF-8
Java
false
false
2,651
java
/* Class11 - Decompiled by JODE * Visit http://jode.sourceforge.net/ */ public class Class11 { public int anInt202; public int anInt203; public Class5[] aClass5Array204; public Class37_Sub22_Sub1 method86() { byte[] is = method87(); return new Class37_Sub22_Sub1(22050, is, 22050 * anInt202 / 1000, 22050 * anInt203 / 1000); } public byte[] method87() { int i = 0; for (int i_0_ = 0; i_0_ < 10; i_0_++) { if (aClass5Array204[i_0_] != null && (aClass5Array204[i_0_].anInt111 + aClass5Array204[i_0_].anInt112) > i) i = (aClass5Array204[i_0_].anInt111 + aClass5Array204[i_0_].anInt112); } if (i == 0) return new byte[0]; int i_1_ = 22050 * i / 1000; byte[] is = new byte[i_1_]; for (int i_2_ = 0; i_2_ < 10; i_2_++) { if (aClass5Array204[i_2_] != null) { int i_3_ = aClass5Array204[i_2_].anInt111 * 22050 / 1000; int i_4_ = aClass5Array204[i_2_].anInt112 * 22050 / 1000; int[] is_5_ = aClass5Array204[i_2_] .method56(i_3_, aClass5Array204[i_2_].anInt111); for (int i_6_ = 0; i_6_ < i_3_; i_6_++) { int i_7_ = is[i_6_ + i_4_] + (is_5_[i_6_] >> 8); if ((i_7_ + 128 & ~0xff) != 0) i_7_ = i_7_ >> 31 ^ 0x7f; is[i_6_ + i_4_] = (byte) i_7_; } } } return is; } public Class11(ByteVector class37_sub11) { aClass5Array204 = new Class5[10]; for (int i = 0; i < 10; i++) { int i_8_ = class37_sub11.getUnsignedByte(120); if (i_8_ != 0) { class37_sub11.currentOffset--; aClass5Array204[i] = new Class5(); aClass5Array204[i].method57(class37_sub11); } } anInt202 = class37_sub11.getUnsignedShort(); anInt203 = class37_sub11.getUnsignedShort(); } public static Class11 method88(Class15 class15, int i, int i_9_) { byte[] is = class15.method131(i_9_, i, 1); if (is == null) return null; return new Class11(new ByteVector(is)); } public int method89() { int i = 9999999; for (int i_10_ = 0; i_10_ < 10; i_10_++) { if (aClass5Array204[i_10_] != null && aClass5Array204[i_10_].anInt112 / 20 < i) i = aClass5Array204[i_10_].anInt112 / 20; } if (anInt202 < anInt203 && anInt202 / 20 < i) i = anInt202 / 20; if (i == 9999999 || i == 0) return 0; for (int i_11_ = 0; i_11_ < 10; i_11_++) { if (aClass5Array204[i_11_] != null) aClass5Array204[i_11_].anInt112 -= i * 20; } if (anInt202 < anInt203) { anInt202 -= i * 20; anInt203 -= i * 20; } return i; } public Class11() { aClass5Array204 = new Class5[10]; } }
[ "markkewley@hotmail.com" ]
markkewley@hotmail.com
0eb1368aa81277d846f76df0f6681e23822e2d38
2d24754d9671da6c33292828f5cc1acd902e7dc7
/src/test/java/com/Encryption/EncryptedLogin.java
a1234229f8c4f6f852c602a8a7ab4562de8a4528
[]
no_license
Muntasir101/TestAutomationBITM01
a3483b3fafb46bebe6fd3f0e9e9905edced8843c
ef0a4bc7a045ca3b051beb0c15717473ded98487
refs/heads/master
2023-06-05T14:49:51.540946
2021-06-19T10:56:23
2021-06-19T10:56:23
273,706,416
0
0
null
null
null
null
UTF-8
Java
false
false
1,378
java
package com.Encryption; import java.util.Base64; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; public class EncryptedLogin extends EncodeDecode{ /* public static String getEncodePassword() { String password="123456"; return new String(Base64.getEncoder().encode(password.getBytes())); } public static String getDecodepassword() { return new String(Base64.getDecoder().decode(getEncodePassword().getBytes())); } */ public static void main(String[] args) { WebDriver driver; System.setProperty("webdriver.gecko.driver", "E:\\Training\\PeopleNTech\\BITM Online 1\\Tools\\geckodriver.exe"); driver=new FirefoxDriver(); String BaseUrl="https://demo.opencart.com/index.php?route=account/login"; String TestEmail="mail22@mail.com"; driver.get(BaseUrl); //Email WebElement Email=driver.findElement(By.id("input-email")); //Password WebElement Password=driver.findElement(By.id("input-password")); //Login Button WebElement LoginBtn=driver.findElement(By.cssSelector("#content > div > div:nth-child(2) > div > form > input")); //Action Email.clear(); Email.sendKeys(TestEmail); Password.clear(); Password.sendKeys(getDecodepassword()); System.out.println(getDecodepassword()); LoginBtn.click(); } }
[ "muntasir.abdullah01@gmail.com" ]
muntasir.abdullah01@gmail.com
75d53f31b5a52e37e4073342b5ec015caaee9d62
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
/vcs-20200515/src/main/java/com/aliyun/vcs20200515/models/GetCatalogListResponse.java
ab59ab4c4d75cef7f742464209c137cc83b4a51b
[ "Apache-2.0" ]
permissive
aliyun/alibabacloud-java-sdk
83a6036a33c7278bca6f1bafccb0180940d58b0b
008923f156adf2e4f4785a0419f60640273854ec
refs/heads/master
2023-09-01T04:10:33.640756
2023-09-01T02:40:45
2023-09-01T02:40:45
288,968,318
40
45
null
2023-06-13T02:47:13
2020-08-20T09:51:08
Java
UTF-8
Java
false
false
1,357
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.vcs20200515.models; import com.aliyun.tea.*; public class GetCatalogListResponse extends TeaModel { @NameInMap("headers") @Validation(required = true) public java.util.Map<String, String> headers; @NameInMap("statusCode") @Validation(required = true) public Integer statusCode; @NameInMap("body") @Validation(required = true) public GetCatalogListResponseBody body; public static GetCatalogListResponse build(java.util.Map<String, ?> map) throws Exception { GetCatalogListResponse self = new GetCatalogListResponse(); return TeaModel.build(map, self); } public GetCatalogListResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public GetCatalogListResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public GetCatalogListResponse setBody(GetCatalogListResponseBody body) { this.body = body; return this; } public GetCatalogListResponseBody getBody() { return this.body; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
839297a0591995eabddde6d84e6d84b3456dd1ba
7b73756ba240202ea92f8f0c5c51c8343c0efa5f
/classes2/vga.java
c75ac1b4303f5a7a2e43f0f2dea2427d01155eb6
[]
no_license
meeidol-luo/qooq
588a4ca6d8ad579b28dec66ec8084399fb0991ef
e723920ac555e99d5325b1d4024552383713c28d
refs/heads/master
2020-03-27T03:16:06.616300
2016-10-08T07:33:58
2016-10-08T07:33:58
null
0
0
null
null
null
null
UTF-8
Java
false
false
517
java
import com.tencent.mobileqq.hotpatch.NotVerifyClass; import com.tencent.mobileqq.troop.activity.TroopAdminList; import com.tencent.mobileqq.troop.activity.TroopAdminList.AdminListAdapter; class vga implements Runnable { vga(vfz paramvfz) { boolean bool = NotVerifyClass.DO_VERIFY_CLASS; } public void run() { this.a.a.a.notifyDataSetChanged(); } } /* Location: E:\apk\QQ_91\classes2-dex2jar.jar!\vga.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "1776098770@qq.com" ]
1776098770@qq.com
299bc2ee1854eb421aaa929cd76625d6e1a157c1
54c1dcb9a6fb9e257c6ebe7745d5008d29b0d6b6
/app/src/main/java/com/facebook/imageutils/TiffUtil.java
12ae869d89777d641a74a4168c539592e0f659d4
[]
no_license
rcoolboy/guilvN
3817397da465c34fcee82c0ca8c39f7292bcc7e1
c779a8e2e5fd458d62503dc1344aa2185101f0f0
refs/heads/master
2023-05-31T10:04:41.992499
2021-07-07T09:58:05
2021-07-07T09:58:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,511
java
package com.facebook.imageutils; import com.facebook.common.logging.FLog; import java.io.IOException; import java.io.InputStream; public class TiffUtil { public static final Class<?> TAG = TiffUtil.class; public static final int TIFF_BYTE_ORDER_BIG_END = 1296891946; public static final int TIFF_BYTE_ORDER_LITTLE_END = 1229531648; public static final int TIFF_TAG_ORIENTATION = 274; public static final int TIFF_TYPE_SHORT = 3; public static class TiffHeader { public int byteOrder; public int firstIfdOffset; public boolean isLittleEndian; public TiffHeader() { } } public static int getAutoRotateAngleFromOrientation(int i) { if (i == 3) { return 180; } if (i != 6) { return i != 8 ? 0 : 270; } return 90; } public static int getOrientationFromTiffEntry(InputStream inputStream, int i, boolean z) throws IOException { if (i < 10 || StreamProcessor.readPackedInt(inputStream, 2, z) != 3 || StreamProcessor.readPackedInt(inputStream, 4, z) != 1) { return 0; } int readPackedInt = StreamProcessor.readPackedInt(inputStream, 2, z); StreamProcessor.readPackedInt(inputStream, 2, z); return readPackedInt; } public static int moveToTiffEntryWithTag(InputStream inputStream, int i, boolean z, int i2) throws IOException { if (i < 14) { return 0; } int readPackedInt = StreamProcessor.readPackedInt(inputStream, 2, z); int i3 = i - 2; while (true) { int i4 = readPackedInt - 1; if (readPackedInt <= 0 || i3 < 12) { return 0; } int i5 = i3 - 2; if (StreamProcessor.readPackedInt(inputStream, 2, z) == i2) { return i5; } inputStream.skip(10); i3 = i5 - 10; readPackedInt = i4; } return 0; } public static int readOrientationFromTIFF(InputStream inputStream, int i) throws IOException { TiffHeader tiffHeader = new TiffHeader(); int readTiffHeader = readTiffHeader(inputStream, i, tiffHeader); int i2 = tiffHeader.firstIfdOffset - 8; if (readTiffHeader == 0 || i2 > readTiffHeader) { return 0; } inputStream.skip((long) i2); return getOrientationFromTiffEntry(inputStream, moveToTiffEntryWithTag(inputStream, readTiffHeader - i2, tiffHeader.isLittleEndian, 274), tiffHeader.isLittleEndian); } public static int readTiffHeader(InputStream inputStream, int i, TiffHeader tiffHeader) throws IOException { if (i <= 8) { return 0; } int readPackedInt = StreamProcessor.readPackedInt(inputStream, 4, false); tiffHeader.byteOrder = readPackedInt; int i2 = i - 4; if (readPackedInt == 1229531648 || readPackedInt == 1296891946) { boolean z = tiffHeader.byteOrder == 1229531648; tiffHeader.isLittleEndian = z; int readPackedInt2 = StreamProcessor.readPackedInt(inputStream, 4, z); tiffHeader.firstIfdOffset = readPackedInt2; int i3 = i2 - 4; if (readPackedInt2 >= 8 && readPackedInt2 - 8 <= i3) { return i3; } FLog.m869e(TAG, "Invalid offset"); return 0; } FLog.m869e(TAG, "Invalid TIFF header"); return 0; } }
[ "593746220@qq.com" ]
593746220@qq.com
ba24aff0c8b2b2cda2fa55b0018ae51fecd745ff
2b675fd33d8481c88409b2dcaff55500d86efaaa
/infinispan/core/src/main/java/org/infinispan/config/parsing/XmlConfigurationParser.java
b5075db2fb0b40c75e0cd666cb12b50ce5e27668
[ "LGPL-2.0-or-later", "Apache-2.0" ]
permissive
nmldiegues/stibt
d3d761464aaf97e41dcc9cc1d43f0e3234a1269b
1ee662b7d4ed1f80e6092c22e235a3c994d1d393
refs/heads/master
2022-12-21T23:08:11.452962
2015-09-30T16:01:43
2015-09-30T16:01:43
42,459,902
0
2
Apache-2.0
2022-12-13T19:15:31
2015-09-14T16:02:52
Java
UTF-8
Java
false
false
2,559
java
/* * JBoss, Home of Professional Open Source * Copyright 2009 Red Hat Inc. and/or its affiliates and other * contributors as indicated by the @author tags. All rights reserved. * See the copyright.txt in the distribution for a full listing of * individual contributors. * * This 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 software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this software; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.infinispan.config.parsing; import org.infinispan.config.Configuration; import org.infinispan.config.ConfigurationException; import org.infinispan.config.GlobalConfiguration; import java.util.Map; /** * Implementations of this interface are responsible for parsing XML configuration files. * * @author Manik Surtani * @since 4.0 */ public interface XmlConfigurationParser { /** * Parses the default template configuration. * * @return a configuration instance representing the "default" block in the configuration file * @throws ConfigurationException if there is a problem parsing the configuration XML */ Configuration parseDefaultConfiguration() throws ConfigurationException; /** * Parses and retrieves configuration overrides for named caches. * * @return a Map of Configuration overrides keyed on cache name * @throws ConfigurationException if there is a problem parsing the configuration XML */ Map<String, Configuration> parseNamedConfigurations() throws ConfigurationException; /** * GlobalConfiguration would also have a reference to the template default configuration, accessible via {@link * org.infinispan.config.GlobalConfiguration#getDefaultConfiguration()} * <p/> * This is typically used to configure a {@link org.infinispan.manager.DefaultCacheManager} * * @return a GlobalConfiguration as parsed from the configuration file. */ GlobalConfiguration parseGlobalConfiguration(); }
[ "nmld@ist.utl.pt" ]
nmld@ist.utl.pt
317cc683f2a645ae042e18dab61d67e8be0f903c
13cbb329807224bd736ff0ac38fd731eb6739389
/sun/java2d/loops/SetDrawLineANY.java
4a276732c66b3229aed57d5f6ef21c75c98534cd
[]
no_license
ZhipingLi/rt-source
5e2537ed5f25d9ba9a0f8009ff8eeca33930564c
1a70a036a07b2c6b8a2aac6f71964192c89aae3c
refs/heads/master
2023-07-14T15:00:33.100256
2021-09-01T04:49:04
2021-09-01T04:49:04
401,933,858
0
0
null
null
null
null
UTF-8
Java
false
false
1,026
java
package sun.java2d.loops; import sun.java2d.SunGraphics2D; import sun.java2d.SurfaceData; class SetDrawLineANY extends DrawLine { SetDrawLineANY() { super(SurfaceType.AnyColor, CompositeType.SrcNoEa, SurfaceType.Any); } public void DrawLine(SunGraphics2D paramSunGraphics2D, SurfaceData paramSurfaceData, int paramInt1, int paramInt2, int paramInt3, int paramInt4) { PixelWriter pixelWriter = GeneralRenderer.createSolidPixelWriter(paramSunGraphics2D, paramSurfaceData); if (paramInt2 >= paramInt4) { GeneralRenderer.doDrawLine(paramSurfaceData, pixelWriter, null, paramSunGraphics2D.getCompClip(), paramInt3, paramInt4, paramInt1, paramInt2); } else { GeneralRenderer.doDrawLine(paramSurfaceData, pixelWriter, null, paramSunGraphics2D.getCompClip(), paramInt1, paramInt2, paramInt3, paramInt4); } } } /* Location: D:\software\jd-gui\jd-gui-windows-1.6.3\rt.jar!\sun\java2d\loops\SetDrawLineANY.class * Java compiler version: 8 (52.0) * JD-Core Version: 1.0.7 */
[ "michael__lee@yeah.net" ]
michael__lee@yeah.net
78c4afb08b9c8cd198e6f496dedbf09d37e199d1
68dd7e6f37f146bca8550cbc2505f19408d911d9
/app/src/main/java/com/jaja/photopicker/utils/RuntimePermissionHelper.java
9055652f82e67ec9bbf48778f006b1ec0e4c0f86
[]
no_license
2223512468/PhotoPicker
847aa8d3329978ae478ced4e7baf651c1e08d877
9f9b4f901cf2f47becbbf0e37c5a4c83198c9eee
refs/heads/master
2021-09-02T23:27:52.410820
2018-01-04T03:32:15
2018-01-04T03:32:15
116,209,988
0
0
null
null
null
null
UTF-8
Java
false
false
4,153
java
package com.jaja.photopicker.utils; import android.app.Activity; import android.content.Context; import android.content.pm.PackageManager; import android.support.annotation.NonNull; import android.support.v4.app.ActivityCompat; import android.support.v4.app.Fragment; import java.util.ArrayList; import java.util.List; /** * 类名:RuntimePermissionHelper <br/> * 描述:运行时权限帮助类 * 创建时间:2016/12/24 13:15 * * @author hanter * @version 1.0 */ public class RuntimePermissionHelper { private Activity mActivity; private Fragment mFragment; private OnGrantPermissionListener mListener; public interface OnGrantPermissionListener { /** 授权结果 */ void onGrant(int requestCode, int result, String[] deniedPermissions); } public RuntimePermissionHelper(Activity activity, OnGrantPermissionListener listener) { this.mListener = listener; this.mActivity = activity; } public RuntimePermissionHelper(Fragment fragment, OnGrantPermissionListener listener) { this.mListener = listener; this.mFragment = fragment; } public boolean hasPermissions(String[] permissions) { boolean granted = true; for (String permission : permissions) { Context context; if (mActivity != null) { context = mActivity; } else { context = mFragment.getContext(); } if (ActivityCompat.checkSelfPermission(context, permission) != PackageManager.PERMISSION_GRANTED) { granted = false; } } return granted; } public void grantPermissions(int requestCode, String[] permissions) { boolean granted = true; List<String> deniedPermissionList = new ArrayList<>(); for (String permission : permissions) { Context context; if (mActivity != null) { context = mActivity; } else { context = mFragment.getContext(); } if (ActivityCompat.checkSelfPermission(context, permission) != PackageManager.PERMISSION_GRANTED) { granted = false; deniedPermissionList.add(permission); } } if (granted) { if (mListener != null) { mListener.onGrant(requestCode, PackageManager.PERMISSION_GRANTED, list2Array(deniedPermissionList)); } } else { if (mActivity != null) { ActivityCompat.requestPermissions(mActivity, list2Array(deniedPermissionList), requestCode); } else if (mFragment != null) { mFragment.requestPermissions(list2Array(deniedPermissionList), requestCode); } } } public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { boolean granted = false; List<String> deniedPermissionList = new ArrayList<>(); try { int i = 0; for (int result : grantResults) { if (result == PackageManager.PERMISSION_GRANTED) { granted = true; } else { deniedPermissionList.add(permissions[i]); } i++; } } catch (Exception e) { e.printStackTrace(); } finally { if (mListener != null) { if (granted) mListener.onGrant(requestCode, PackageManager.PERMISSION_GRANTED, list2Array(deniedPermissionList)); else mListener.onGrant(requestCode, PackageManager.PERMISSION_DENIED, list2Array(deniedPermissionList)); } } } private static String[] list2Array(List<String> list) { String[] aStr = new String[list.size()]; return list.toArray(aStr); } }
[ "2223512468@qq.com" ]
2223512468@qq.com
2cabfaa8cfde83cba2823e5c8a2cfbc5357e0373
0c891b07775795df9a6855862151fd82bd71fd14
/common/src/main/java/me/lucko/luckperms/common/messaging/MessagingFactory.java
4c55d138d9f9b9ffcf6d7292aefbd09d66e20aaa
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ZiberCraft/LuckPerms
7157f3ec6a940bedd7ba4b667eb03db2857615ee
ef556f7cf7281f11568cb060910bc44ffde13ec7
refs/heads/master
2022-11-20T23:02:21.145229
2020-07-16T20:00:17
2020-07-16T20:00:17
280,664,211
1
0
MIT
2020-07-18T13:40:25
2020-07-18T13:40:24
null
UTF-8
Java
false
false
6,752
java
/* * This file is part of LuckPerms, licensed under the MIT License. * * Copyright (c) lucko (Luck) <luck@lucko.me> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ package me.lucko.luckperms.common.messaging; import me.lucko.luckperms.common.config.ConfigKeys; import me.lucko.luckperms.common.config.LuckPermsConfiguration; import me.lucko.luckperms.common.messaging.redis.RedisMessenger; import me.lucko.luckperms.common.messaging.sql.SqlMessenger; import me.lucko.luckperms.common.plugin.LuckPermsPlugin; import me.lucko.luckperms.common.storage.implementation.StorageImplementation; import me.lucko.luckperms.common.storage.implementation.sql.SqlStorage; import me.lucko.luckperms.common.storage.implementation.sql.connection.hikari.MariaDbConnectionFactory; import me.lucko.luckperms.common.storage.implementation.sql.connection.hikari.MySqlConnectionFactory; import net.luckperms.api.messenger.IncomingMessageConsumer; import net.luckperms.api.messenger.Messenger; import net.luckperms.api.messenger.MessengerProvider; import org.checkerframework.checker.nullness.qual.NonNull; public class MessagingFactory<P extends LuckPermsPlugin> { private final P plugin; public MessagingFactory(P plugin) { this.plugin = plugin; } protected P getPlugin() { return this.plugin; } public final InternalMessagingService getInstance() { String messagingType = this.plugin.getConfiguration().get(ConfigKeys.MESSAGING_SERVICE); if (messagingType.equals("none")) { messagingType = "auto"; } // attempt to detect "auto" messaging service type. if (messagingType.equals("auto")) { if (this.plugin.getConfiguration().get(ConfigKeys.REDIS_ENABLED)) { messagingType = "redis"; } else { for (StorageImplementation implementation : this.plugin.getStorage().getImplementations()) { if (implementation instanceof SqlStorage) { SqlStorage sql = (SqlStorage) implementation; if (sql.getConnectionFactory() instanceof MySqlConnectionFactory || sql.getConnectionFactory() instanceof MariaDbConnectionFactory) { messagingType = "sql"; break; } } } } } if (messagingType.equals("auto") || messagingType.equals("notsql")) { return null; } this.plugin.getLogger().info("Loading messaging service... [" + messagingType.toUpperCase() + "]"); InternalMessagingService service = getServiceFor(messagingType); if (service != null) { return service; } this.plugin.getLogger().warn("Messaging service '" + messagingType + "' not recognised."); return null; } protected InternalMessagingService getServiceFor(String messagingType) { if (messagingType.equals("redis")) { if (this.plugin.getConfiguration().get(ConfigKeys.REDIS_ENABLED)) { try { return new LuckPermsMessagingService(this.plugin, new RedisMessengerProvider()); } catch (Exception e) { e.printStackTrace(); } } else { this.plugin.getLogger().warn("Messaging Service was set to redis, but redis is not enabled!"); } } else if (messagingType.equals("sql")) { try { return new LuckPermsMessagingService(this.plugin, new SqlMessengerProvider()); } catch (Exception e) { e.printStackTrace(); } } return null; } private class RedisMessengerProvider implements MessengerProvider { @Override public @NonNull String getName() { return "Redis"; } @Override public @NonNull Messenger obtain(@NonNull IncomingMessageConsumer incomingMessageConsumer) { RedisMessenger redis = new RedisMessenger(getPlugin(), incomingMessageConsumer); LuckPermsConfiguration config = getPlugin().getConfiguration(); String address = config.get(ConfigKeys.REDIS_ADDRESS); String password = config.get(ConfigKeys.REDIS_PASSWORD); if (password.isEmpty()) { password = null; } boolean ssl = config.get(ConfigKeys.REDIS_SSL); redis.init(address, password, ssl); return redis; } } private class SqlMessengerProvider implements MessengerProvider { @Override public @NonNull String getName() { return "Sql"; } @Override public @NonNull Messenger obtain(@NonNull IncomingMessageConsumer incomingMessageConsumer) { for (StorageImplementation implementation : getPlugin().getStorage().getImplementations()) { if (implementation instanceof SqlStorage) { SqlStorage storage = (SqlStorage) implementation; if (storage.getConnectionFactory() instanceof MySqlConnectionFactory || storage.getConnectionFactory() instanceof MariaDbConnectionFactory) { // found an implementation match! SqlMessenger sql = new SqlMessenger(getPlugin(), storage, incomingMessageConsumer); sql.init(); return sql; } } } throw new IllegalStateException("Can't find a supported sql storage implementation"); } } }
[ "git@lucko.me" ]
git@lucko.me
a229600a7d7c5c5c92af9c84c7b0168b583afd36
a0cd546101594e679544d24f92ae8fcc17013142
/refactorit-core/src/test/projects/Audit/corrective/EarlyDeclaration/EarlyDeclarationCorrectiveAction/in/Test2.java
1e44f58e98556c030769e62e7931e905be68de63
[]
no_license
svn2github/RefactorIT
f65198bb64f6c11e20d35ace5f9563d781b7fe5c
4b1fc1ebd06c8e192af9ccd94eb5c2d96f79f94c
refs/heads/master
2021-01-10T03:09:28.310366
2008-09-18T10:17:56
2008-09-18T10:17:56
47,540,746
0
1
null
null
null
null
UTF-8
Java
false
false
898
java
/** * @violations 4 */ public class Test2 { public void method1() { int ii; int c; c++; ii++; } public void method2() { int iii; int c; iii++; } public void method3(int a) { a++; } public void method4() { int c; int a[] = new int[5]; c++; a[0] = 3; } public void method5() { int a = 0; int iiii = 1; while (iiii < a) a++; } public void method6() { int iiiii; { { iiiii++; } iiiii++; } } public void method7() { int o; for (int i=0; 0<2; i++) { o++; } } public void method8() { int i = 0; { { while (i < 10) i++; } } } public void method10() { int i = 0; String a = (new Integer(i)).toString(); int o = i; i++; o++; a += "bu"; } }
[ "l950637@285b47d1-db48-0410-a9c5-fb61d244d46c" ]
l950637@285b47d1-db48-0410-a9c5-fb61d244d46c
e7ef9b26b8a913f113a9b8ec98e24ca9be3b8810
8b7ea5475818da25141e5e7e8bf70b138b0603b1
/k12servo/src/main/java/cn/k12soft/servo/module/WIFIDevice/management/DeviceManagement.java
b36350c5466cdbaf699c72fe8ea685cec4ac1190
[ "Apache-2.0" ]
permissive
Mengxc2018/k12
f92abd49830026edc7553741af25c3fe21e4ffbd
3af8d1e37606cae089475f3c767b04454cbd5a15
refs/heads/master
2020-04-10T21:48:40.149046
2019-03-31T07:52:11
2019-03-31T07:52:11
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,755
java
package cn.k12soft.servo.module.WIFIDevice.management; import cn.k12soft.servo.domain.Actor; import cn.k12soft.servo.module.WIFIDevice.domain.dto.DeviceDTO; import cn.k12soft.servo.module.WIFIDevice.domain.form.DeviceForm; import cn.k12soft.servo.module.WIFIDevice.service.DeviceService; import cn.k12soft.servo.security.Active; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import javax.validation.Valid; import java.util.Collection; @RestController @RequestMapping("/device/management") public class DeviceManagement { private final DeviceService deviceService; @Autowired public DeviceManagement(DeviceService deviceService) { this.deviceService = deviceService; } /** * 新增设备 * @param form * @return */ @ApiOperation("新增WIFI打卡设备") @PostMapping public DeviceDTO create(@Active Actor actor, @RequestBody @Valid DeviceForm form){ return deviceService.create(actor, form); } @ApiOperation("更新WIFI打卡设备") @PutMapping public DeviceDTO update(@Active Actor actor, @RequestParam @Valid Integer id, @RequestBody @Valid DeviceForm form){ return deviceService.update(id, form); } @ApiOperation("查询WIFI打卡设备") @GetMapping public Collection<DeviceDTO> query(@Active Actor actor){ return deviceService.findBySchoolId(actor); } @ApiOperation("删除WIFI打卡设备") @DeleteMapping("/{id:\\d+}") public void delete(@PathVariable @Valid Long id){ deviceService.delete(id); } }
[ "mxc12345" ]
mxc12345
92e4e69c68e6688e4090ffa870b05bb7affc4952
92c1674aacda6c550402a52a96281ff17cfe5cff
/module12/module01/src/main/java/com/android/example/module12_module01/ClassAAA.java
d3f507ac7ba86b12219e5108bb181737636351ca
[]
no_license
bingranl/android-benchmark-project
2815c926df6a377895bd02ad894455c8b8c6d4d5
28738e2a94406bd212c5f74a79179424dd72722a
refs/heads/main
2023-03-18T20:29:59.335650
2021-03-12T11:47:03
2021-03-12T11:47:03
336,009,838
0
0
null
null
null
null
UTF-8
Java
false
false
1,267
java
package com.android.example.module12_module01; public class ClassAAA { private dagger.internal.DelegateFactory<Object> instance_var_1_0 = new dagger.internal.DelegateFactory(); private dagger.internal.DelegateFactory<Object> instance_var_1_1 = new dagger.internal.DelegateFactory(); public void method0( dagger.internal.DelegateFactory<Object> param0, dagger.internal.DelegateFactory<Object> param1, dagger.internal.DelegateFactory<Object> param2) throws Throwable { } public void method1( dagger.internal.DelegateFactory<Object> param0) throws Throwable { dagger.internal.DelegateFactory<Object> local_var_2_1 = new dagger.internal.DelegateFactory(); local_var_2_1.get(); java.util.Collections.emptyList().forEach( lambda0 -> { try { param0.get(); dagger.internal.DelegateFactory<Object> local_var_3_0 = new dagger.internal.DelegateFactory(); local_var_3_0.get(); } catch(Throwable e) { } // ignore }); } public void method2( dagger.internal.DelegateFactory<Object> param0) throws Throwable { } public void method3( dagger.internal.DelegateFactory<Object> param0) throws Throwable { dagger.internal.DelegateFactory<Object> local_var_2_1 = new dagger.internal.DelegateFactory(); local_var_2_1.get(); } }
[ "bingran@google.com" ]
bingran@google.com
f2be6e177aac40e3b7ca357390783cb726206a83
f816add68ec1390455a9f021bb9387197fd80d98
/code/dsol-interpreter/src/main/java/nl/tudelft/simulation/dsol/interpreter/operations/LDC2_W.java
9a4da8364d8f9150bb82724913e1b3ed9d231fc2
[ "BSD-3-Clause" ]
permissive
daviiz/DOSL-Study
5ae384e5361a86a7e7f4a6a78c459044e96c1c9c
6e6de2864b6b4b9c57133e23bb32e75e50bbf257
refs/heads/master
2020-04-14T15:28:55.163746
2019-01-18T08:34:51
2019-01-18T08:34:51
163,928,266
0
1
null
null
null
null
UTF-8
Java
false
false
2,561
java
package nl.tudelft.simulation.dsol.interpreter.operations; import java.io.DataInput; import java.io.IOException; import nl.tudelft.simulation.dsol.interpreter.LocalVariable; import nl.tudelft.simulation.dsol.interpreter.OperandStack; import nl.tudelft.simulation.dsol.interpreter.classfile.Constant; import nl.tudelft.simulation.dsol.interpreter.classfile.ConstantDouble; import nl.tudelft.simulation.dsol.interpreter.classfile.ConstantLong; /** * The LDC2_W operation as defined in <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5"> * https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5 </a>. * <p> * Copyright (c) 2002-2019 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights * reserved. See for project information <a href="https://simulation.tudelft.nl/" target="_blank"> * https://simulation.tudelft.nl</a>. The DSOL project is distributed under a three-clause BSD-style license, which can * be found at <a href="https://simulation.tudelft.nl/dsol/3.0/license.html" target="_blank"> * https://simulation.tudelft.nl/dsol/3.0/license.html</a>. * </p> * @author <a href="https://www.linkedin.com/in/peterhmjacobs">Peter Jacobs</a> * @author <a href="https://www.tudelft.nl/averbraeck">Alexander Verbraeck</a> */ public class LDC2_W extends VoidOperation { /** OP refers to the operand code. */ public static final int OP = 20; /** the index to load. */ private final int index; /** * constructs a new LDC_W. * @param dataInput DataInput; the dataInput * @throws IOException on IOfailure */ public LDC2_W(final DataInput dataInput) throws IOException { super(); this.index = dataInput.readUnsignedShort(); } /** {@inheritDoc} */ @Override public final void execute(final OperandStack stack, final Constant[] constantPool, final LocalVariable[] localVariables) { Constant constant = constantPool[this.index]; if (constant instanceof ConstantLong) { stack.push(Long.valueOf(((ConstantLong) constant).getValue())); } else if (constant instanceof ConstantDouble) { stack.push(Double.valueOf(((ConstantDouble) constant).getValue())); } } /** {@inheritDoc} */ @Override public final int getByteLength() { return OPCODE_BYTE_LENGTH + 2; } /** {@inheritDoc} */ @Override public final int getOpcode() { return LDC2_W.OP; } }
[ "daviiz1117@163.com" ]
daviiz1117@163.com
f7a4d00dab71e9b2a5761d5c35899776903ab15f
0742ad8c9d461dbf2cfdb81896f81200e74d3f01
/commonlibrary/src/main/java/com/jy/commonlibrary/aspect/SingleClick.java
a947bf9e7f59510806625e688c0fcc9d12a5edd7
[]
no_license
sd99886/YLibrary
af61d192ab212b499dcd79f97fb8858e659dcfa4
2a3171acec262bc4cd0b6df529e7ddde234e869a
refs/heads/master
2023-04-09T05:16:42.874628
2021-04-19T09:18:31
2021-04-19T09:18:31
null
0
0
null
null
null
null
UTF-8
Java
false
false
415
java
package com.jy.commonlibrary.aspect; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * @Author Administrator * @Date 2019/11/8-17:05 * @TODO 快速点击注解 */ @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface SingleClick { long value() default 1000; }
[ "123456" ]
123456
f49317ed62b33a62303463da9ebf0c25939d3425
0d36e8d7aa9727b910cb2ed6ff96eecb4444b782
/foundation-generator/src/main/java/com/arm/pelion/sdk/foundation/generator/util/CleanException.java
e295e158a8c525185867b7f66272af806e9a9da1
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
PelionIoT/mbed-cloud-sdk-java
b6d93f7e22c5afa30a51329b60e0f33c042ef00e
cc99c51db43cc9ae36601f20f20b7d8cd7515432
refs/heads/master
2023-08-19T01:25:29.548242
2020-07-01T16:48:16
2020-07-01T16:48:16
95,459,293
0
1
Apache-2.0
2021-01-15T08:44:08
2017-06-26T15:06:56
Java
UTF-8
Java
false
false
618
java
package com.arm.pelion.sdk.foundation.generator.util; public class CleanException extends Exception { /** * */ private static final long serialVersionUID = 1968950771088631535L; public CleanException() { super(); } public CleanException(String arg0) { super(arg0); } public CleanException(Throwable arg0) { super(arg0); } public CleanException(String arg0, Throwable arg1) { super(arg0, arg1); } public CleanException(String arg0, Throwable arg1, boolean arg2, boolean arg3) { super(arg0, arg1, arg2, arg3); } }
[ "adrien.cabarbaye@arm.com" ]
adrien.cabarbaye@arm.com
c75d0187928f8fe845fe52e7c2d1826a41fb4d4a
4d03191dbdd779c0397991aa99a08046d905122a
/app/src/main/java/ranglerz/veterinaryandpatient/SignUpAsClient.java
347adfaaed1320e90ce74c34147a8c4500d4c633
[]
no_license
iamrahulyadav/VeterinaryAndPatient
ba18226388f7967dd09329c295d66af5cef986d1
95d7370278daf373544b55d6971f720687cc712c
refs/heads/master
2020-03-27T18:32:23.561569
2018-05-30T12:00:00
2018-05-30T12:00:00
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,120
java
package ranglerz.veterinaryandpatient; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.view.WindowManager; import android.widget.Button; public class SignUpAsClient extends AppCompatActivity { Button bt_register; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_sign_up_as_client); getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN); init(); btRegisterButtonClickHandler(); } private void init(){ bt_register = (Button) findViewById(R.id.bt_register); } private void btRegisterButtonClickHandler(){ bt_register.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent verficationActivity = new Intent(SignUpAsClient.this, VerficationClient.class); startActivity(verficationActivity); } }); } }
[ "shoaibanwar.vu@gmail.com" ]
shoaibanwar.vu@gmail.com
5f66806f832efe112c0d3573795f2027d1044d01
09e9721ca121d2593189667c222a4f930e471fb8
/Primary_Extension/src/main/java/org/lobobrowser/protocol/data/DataURLConnection.java
a7803fb067edf6e7cfabc3d8fed02e95ae7d5140
[]
no_license
meetkumarpatel/Loboevolution
e89f822fed8b3fa24acc78f7582f602cc95a1272
4c587553bcd9885d7589ee7f867bf3e633733887
refs/heads/master
2020-12-29T00:25:54.817591
2016-08-02T11:15:00
2016-08-02T11:15:00
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,363
java
/* GNU GENERAL LICENSE Copyright (C) 2006 The Lobo Project. Copyright (C) 2014 - 2016 Lobo Evolution This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either verion 2 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 License for more details. You should have received a copy of the GNU 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 Contact info: lobochief@users.sourceforge.net; ivan.difrancesco@yahoo.it */ package org.lobobrowser.protocol.data; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URL; import java.net.URLDecoder; import java.util.HashMap; import java.util.logging.Logger; import javax.xml.bind.DatatypeConverter; /** * The Class DataURLConnection. */ public class DataURLConnection extends HttpURLConnection { /** The Constant logger. */ private static final Logger logger = Logger.getLogger(DataURLConnection.class.getName()); /** The header map. */ private HashMap<String, String> headerMap = new HashMap<String, String>(); /** The content. */ private byte[] content = new byte[0]; /** * Instantiates a new data url connection. * * @param url * the url */ protected DataURLConnection(URL url) { super(url); } /* * (non-Javadoc) * * @see java.net.URLConnection#connect() */ @Override public void connect() throws IOException { loadHeaderMap(); } @Override public String getContentType() { String type = headerMap.get("Content-Type"); if (type == null) { return "Content-Type: text/plain; charset=UTF-8"; } return type; } /* * (non-Javadoc) * * @see java.net.URLConnection#getContentLength() */ @Override public int getContentLength() { if (content != null) { return content.length; } return 0; } /* * (non-Javadoc) * * @see java.net.URLConnection#getHeaderField(int) */ @Override public String getHeaderField(int n) { return headerMap.get(headerMap.keySet().toArray()[n]); } /* * (non-Javadoc) * * @see java.net.URLConnection#getHeaderField(java.lang.String) */ @Override public String getHeaderField(String name) { return headerMap.get(name); } /* * (non-Javadoc) * * @see java.net.URLConnection#getInputStream() */ @Override public InputStream getInputStream() throws IOException { connect(); if (content != null) { return new ByteArrayInputStream(content); } return new ByteArrayInputStream(new byte[] {}); } /** * Load header map. */ private void loadHeaderMap() { String UTF8 = "UTF-8"; this.headerMap.clear(); String path = getURL().getPath(); int index2 = path.toLowerCase().indexOf(","); if (index2 == -1) { index2 = path.toLowerCase().lastIndexOf(";"); } String mediatype = path.substring(0, index2).trim(); boolean base64 = false; String[] split = mediatype.split("[;,]"); String value = path.substring(index2 + 1).trim(); if (split[0].equals("")) { split[0] = "text/plain"; } this.headerMap.put("content-type", split[0]); try { for (int i = 1; i < split.length; i++) { if (split[i].contains("=")) { int index = split[i].indexOf("="); String attr = split[i].substring(0, index); String v = split[i].substring(index + 1); this.headerMap.put(attr, URLDecoder.decode(v, UTF8)); } else if (split[i].equalsIgnoreCase("base64")) { base64 = true; } } String charset = this.getHeaderField("charset"); if (charset == null) { charset = UTF8; } if (base64) { this.content = DatatypeConverter.parseBase64Binary(value); } else { value = URLDecoder.decode(value, charset); this.content = value.getBytes(); } } catch (IOException e) { logger.severe(e.getMessage()); } } @Override public void disconnect() { } @Override public boolean usingProxy() { return false; } }
[ "ivan.difrancesco@yahoo.it" ]
ivan.difrancesco@yahoo.it
71d80b01320f55da8bd827de8d51f81bf26db91d
a128f19f6c10fc775cd14daf740a5b4e99bcd2fb
/middleheaven-injection/src/main/java/org/middleheaven/injection/Scope.java
b222451f76c23c2c07f63adfffffcfb1417c33b5
[]
no_license
HalasNet/middleheaven
c8bfa6199cb9b320b9cfd17b1f8e4961e3d35e6e
15e3e91c338e359a96ad01dffe9d94e069070e9c
refs/heads/master
2021-06-20T23:25:09.978612
2017-08-12T21:35:56
2017-08-12T21:37:17
null
0
0
null
null
null
null
UTF-8
Java
false
false
366
java
/** * */ package org.middleheaven.injection; /** * */ public interface Scope { /** * Obtains the instance with the given name from the scope. * @param name * @return */ Object getInstance(String name); /** * Recives instance after creation. * @param instance */ void offerInstance(String name, Object instance); }
[ "sergiotaborda@yahoo.com.br" ]
sergiotaborda@yahoo.com.br
153697242234af9f7d16ca90d1b5a412344dd4e9
04a12720462c0cfce091e25b8cdaedb13f921b61
/day48_传智健康/day48_health_parent/health_web/src/main/java/com/itheima/controller/CheckGroupController.java
ec5de2ca50483b6ef07850c4bc720f3c34281da1
[]
no_license
haoxiangjiao/Java20210921
31662732e44b248208b21f6f1aaf18e6335b398c
6edcbd081d33bace427fdc6041e9eeaac89def8a
refs/heads/main
2023-07-19T03:42:17.498075
2021-09-25T15:06:11
2021-09-25T15:06:11
409,024,583
0
0
null
2021-09-22T01:19:43
2021-09-22T01:19:43
null
UTF-8
Java
false
false
3,140
java
package com.itheima.controller; import com.itheima.constant.MessageConstant; import com.itheima.entity.PageResult; import com.itheima.entity.QueryPageBean; import com.itheima.entity.Result; import com.itheima.health.pojo.CheckGroup; import com.itheima.service.CheckGroupService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.Arrays; import java.util.List; /* 检查组的控制器 */ @RestController @RequestMapping("/checkgroup") public class CheckGroupController { @Autowired private CheckGroupService cs ; /** * 查询所有的检查组 * @return */ @RequestMapping("/findAll") public Result findAll(){ List<CheckGroup> list = cs.findAll(); return new Result (true , MessageConstant.QUERY_CHECKGROUP_SUCCESS , list); } /** * 更新检查组 * @param checkGroup 检查组的基本信息 * @param checkitemIds 检查组包含的检查项的id * @return */ @RequestMapping("/update") public Result update(@RequestBody CheckGroup checkGroup , int [] checkitemIds){ //1. 调用service int row = cs.update(checkGroup, checkitemIds); //2. 判断 Result result = null; if(row > 0 ){ result = new Result(true , MessageConstant.EDIT_CHECKGROUP_SUCCESS); }else{ result = new Result(false , MessageConstant.EDIT_CHECKGROUP_FAIL); } return result; } /** * 根据检查组的id,查询这个检查组都包含了哪些检查项 * @param id 检查组的id * @return */ @RequestMapping("/findItemsById") public Result findItemsById(int id){ //1. 调用Service List<Integer> list = cs.findItemsById(id); //2. 返回 return new Result(true , MessageConstant.QUERY_CHECKITEM_SUCCESS , list); } /** * 分页处理 * @param bean * @return */ @RequestMapping("/findPage") public Result findPage(@RequestBody QueryPageBean bean){ //1. 调用service PageResult<CheckGroup> pageResult = cs.findPage(bean); //2. 封装数据返回 return new Result(true , MessageConstant.QUERY_CHECKGROUP_SUCCESS , pageResult); } /** * 添加检查组 * @param checkGroup * @param checkitemIds * @return */ @RequestMapping("/add") public Result add(@RequestBody CheckGroup checkGroup , int [] checkitemIds){ System.out.println(checkGroup); System.out.println(Arrays.toString(checkitemIds)); //1. 调用Service干活 int row = cs.add(checkGroup, checkitemIds); //2. 判定 Result result = null; if(row >0 ){ result = new Result(true , MessageConstant.ADD_CHECKGROUP_SUCCESS); }else{ result = new Result(false , MessageConstant.ADD_CHECKGROUP_FAIL); } return result; } }
[ "70306977+liufanpy@users.noreply.github.com" ]
70306977+liufanpy@users.noreply.github.com
070ef5838ab29c08593eeb4119624dfe90e36453
e3109a079793c5a66891aebef6dd7c2a44f8d360
/base/java/e/e/a/u/i.java
349e67f39fcce786c5edf1c27aaf9b911a11ae3e
[]
no_license
msorland/no.simula.smittestopp
d5a317b432e8a37c547fc9f2403f25db78ffd871
f5eeba1cc4b1cad98b8174315bb2b0b388d14be9
refs/heads/master
2022-04-17T12:50:10.853188
2020-04-17T10:14:01
2020-04-17T10:14:01
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,127
java
package e.e.a.u; import e.e.a.a; import e.e.a.v.c; import i.a.b.d; import java.net.URI; import java.security.KeyStore; import java.text.ParseException; import java.util.Arrays; import java.util.Collections; import java.util.HashSet; import java.util.LinkedHashMap; import java.util.List; import java.util.Objects; import java.util.Set; public class i extends d { public static final Set<a> N = Collections.unmodifiableSet(new HashSet(Arrays.asList(new a[]{a.C, a.D, a.E, a.F}))); public final a I; public final c J; public final byte[] K; public final c L; public final byte[] M; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public i(a aVar, c cVar, g gVar, Set<e> set, a aVar2, String str, URI uri, c cVar2, c cVar3, List<e.e.a.v.a> list, KeyStore keyStore) { super(f.B, gVar, set, aVar2, str, uri, cVar2, cVar3, list, keyStore); a aVar3 = aVar; c cVar4 = cVar; if (aVar3 == null) { throw new IllegalArgumentException("The curve must not be null"); } else if (N.contains(aVar)) { this.I = aVar3; if (cVar4 != null) { this.J = cVar4; this.K = cVar.b(); this.L = null; this.M = null; return; } throw new IllegalArgumentException("The 'x' parameter must not be null"); } else { throw new IllegalArgumentException("Unknown / unsupported curve: " + aVar); } } public static i a(d dVar) { a a = a.a(e.c.a.a.b.l.c.d(dVar, "crv")); c cVar = new c(e.c.a.a.b.l.c.d(dVar, "x")); if (e.c.a.a.b.l.c.d(dVar) == f.B) { c cVar2 = null; if (dVar.get("d") != null) { cVar2 = new c(e.c.a.a.b.l.c.d(dVar, "d")); } c cVar3 = cVar2; if (cVar3 != null) { return new i(a, cVar, cVar3, e.c.a.a.b.l.c.e(dVar), e.c.a.a.b.l.c.c(dVar), e.c.a.a.b.l.c.a(dVar), e.c.a.a.b.l.c.b(dVar), e.c.a.a.b.l.c.i(dVar), e.c.a.a.b.l.c.h(dVar), e.c.a.a.b.l.c.g(dVar), e.c.a.a.b.l.c.f(dVar), (KeyStore) null); } try { return new i(a, cVar, e.c.a.a.b.l.c.e(dVar), e.c.a.a.b.l.c.c(dVar), e.c.a.a.b.l.c.a(dVar), e.c.a.a.b.l.c.b(dVar), e.c.a.a.b.l.c.i(dVar), e.c.a.a.b.l.c.h(dVar), e.c.a.a.b.l.c.g(dVar), e.c.a.a.b.l.c.f(dVar), (KeyStore) null); } catch (IllegalArgumentException e2) { throw new ParseException(e2.getMessage(), 0); } } else { throw new ParseException("The key type \"kty\" must be OKP", 0); } } public LinkedHashMap<String, ?> d() { LinkedHashMap<String, ?> linkedHashMap = new LinkedHashMap<>(); linkedHashMap.put("crv", this.I.x); linkedHashMap.put("kty", this.x.x); linkedHashMap.put("x", this.J.x); return linkedHashMap; } public boolean e() { return this.L != null; } public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof i) || !super.equals(obj)) { return false; } i iVar = (i) obj; if (!Objects.equals(this.I, iVar.I) || !Objects.equals(this.J, iVar.J) || !Arrays.equals(this.K, iVar.K) || !Objects.equals(this.L, iVar.L) || !Arrays.equals(this.M, iVar.M)) { return false; } return true; } public d f() { d f2 = super.f(); f2.put("crv", this.I.x); f2.put("x", this.J.x); c cVar = this.L; if (cVar != null) { f2.put("d", cVar.x); } return f2; } public int hashCode() { Object[] objArr = {Integer.valueOf(super.hashCode()), this.I, this.J, this.L}; int hashCode = Arrays.hashCode(this.K); return Arrays.hashCode(this.M) + ((hashCode + (Objects.hash(objArr) * 31)) * 31); } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public i(a aVar, c cVar, c cVar2, g gVar, Set<e> set, a aVar2, String str, URI uri, c cVar3, c cVar4, List<e.e.a.v.a> list, KeyStore keyStore) { super(f.B, gVar, set, aVar2, str, uri, cVar3, cVar4, list, keyStore); a aVar3 = aVar; c cVar5 = cVar; c cVar6 = cVar2; if (aVar3 == null) { throw new IllegalArgumentException("The curve must not be null"); } else if (N.contains(aVar3)) { this.I = aVar3; if (cVar5 != null) { this.J = cVar5; this.K = cVar.b(); if (cVar6 != null) { this.L = cVar6; this.M = cVar2.b(); return; } throw new IllegalArgumentException("The 'd' parameter must not be null"); } throw new IllegalArgumentException("The 'x' parameter must not be null"); } else { throw new IllegalArgumentException("Unknown / unsupported curve: " + aVar3); } } }
[ "djkaty@users.noreply.github.com" ]
djkaty@users.noreply.github.com
7eed22f4bc7fc5df778da4e8021f23778dc02e6f
b41a76a5c84110abef8a49f921b71eea727cbb2b
/Squale/squale-web/src/main/java/org/squale/squaleweb/applicationlayer/formbean/rulechecking/CppTestRuleSetListForm.java
6e8e51dc1fc671e1cbbfc59177985901af30ac99
[]
no_license
zeeneddie/squale
d175db676504a92f7e1148fc28512bb88d2d3bd6
e6a44c744e37317b5d81cf5081dcd6ad5360c132
refs/heads/master
2020-03-27T07:55:27.557302
2018-09-04T07:01:42
2018-09-04T07:01:42
146,205,739
0
0
null
null
null
null
UTF-8
Java
false
false
974
java
/** * Copyright (C) 2008-2010, Squale Project - http://www.squale.org * * This file is part of Squale. * * Squale is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of the * License, or any later version. * * Squale 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 Lesser General Public License * along with Squale. If not, see <http://www.gnu.org/licenses/>. */ package org.squale.squaleweb.applicationlayer.formbean.rulechecking; /** * Formulaire de chargement des configurations CppTest */ public class CppTestRuleSetListForm extends AbstractRuleSetListForm { }
[ "bellingard@gmail.com" ]
bellingard@gmail.com
cbc8e430bf11b876cff40279a6510440ea9d5884
dbaa3975557514137e0a01165cab2bc5b6812c25
/app/src/main/java/com/xuexiang/xuidemo/fragment/components/tabbar/TabControlViewFragment.java
62970f011007ed5b3a570a26442c3e3330b657b4
[ "Apache-2.0" ]
permissive
leoapp/XUI
6465a6565ab5b56430f5929f1a6fab07a774f611
6483fcd0795a3626529e4bc3a186242714790d60
refs/heads/master
2020-09-19T04:27:54.013977
2019-10-28T16:40:19
2019-10-28T16:40:19
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,976
java
/* * Copyright (C) 2019 xuexiangjys(xuexiangjys@163.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.xuexiang.xuidemo.fragment.components.tabbar; import com.xuexiang.xpage.annotation.Page; import com.xuexiang.xui.utils.ResUtils; import com.xuexiang.xui.widget.tabbar.MultiTabControlView; import com.xuexiang.xui.widget.tabbar.TabControlView; import com.xuexiang.xuidemo.R; import com.xuexiang.xuidemo.base.BaseFragment; import com.xuexiang.xuidemo.utils.XToastUtils; import butterknife.BindView; /** * * * @author xuexiang * @since 2019/1/3 上午12:41 */ @Page(name = "TabControlView\n选项卡控制滑块") public class TabControlViewFragment extends BaseFragment { @BindView(R.id.tcv_select) TabControlView mTabControlView; @BindView(R.id.tcv_multi_select) MultiTabControlView mMultiTabControlView; @Override protected int getLayoutId() { return R.layout.fragment_tabcontrolview; } @Override protected void initViews() { initTabControlView(); initMultiTabControlView(); } private void initTabControlView() { try { mTabControlView.setItems(ResUtils.getStringArray(R.array.course_param_option), ResUtils.getStringArray(R.array.course_param_value)); mTabControlView.setDefaultSelection(1); } catch (Exception e) { e.printStackTrace(); } mTabControlView.setOnTabSelectionChangedListener(new TabControlView.OnTabSelectionChangedListener() { @Override public void newSelection(String title, String value) { XToastUtils.toast("选中了:" + title + ", 选中的值为:" + value); } }); } private void initMultiTabControlView() { try { mMultiTabControlView.setItems(ResUtils.getStringArray(R.array.course_param_option), ResUtils.getStringArray(R.array.course_param_value)); mMultiTabControlView.setDefaultSelection(1, 2); } catch (Exception e) { e.printStackTrace(); } mMultiTabControlView.setOnMultiTabSelectionChangedListener(new MultiTabControlView.OnMultiTabSelectionChangedListener() { @Override public void newSelection(String title, String value, boolean isChecked) { XToastUtils.toast("选中了:" + title + ", 选中的值为:" + value + ", isChecked:" + isChecked); } }); } }
[ "xuexiangjys@163.com" ]
xuexiangjys@163.com
39b7ed592a0b426cf46d1e7780f19c9713797a98
7c0acec36a1c569b1eefd4cc1022686b6a8c9427
/it.ltc.logica.ufficio.gui/src/it/ltc/logica/ufficio/gui/elements/prodotto/OrdinatoreModelli.java
568c01a53f7eebf035ad03621b26fbacfbfc8055
[]
no_license
Dufler/logica
3fa53fbfbfb36df9f00f10eeaa41535a1cbf0dba
e623a07d29fdfd4121106b9b3081faa59992e248
refs/heads/master
2020-05-02T20:10:08.565067
2019-06-04T13:29:07
2019-06-04T13:29:07
122,049,673
0
0
null
null
null
null
UTF-8
Java
false
false
478
java
package it.ltc.logica.ufficio.gui.elements.prodotto; import it.ltc.logica.database.model.prodotto.Modello; import it.ltc.logica.gui.elements.Ordinatore; public class OrdinatoreModelli extends Ordinatore<Modello> { @Override protected int compare(Modello t1, Modello t2, int property) { int compare; switch (property) { case 1 : compare = compareString(t1.getModello(), t2.getModello()); break; default : compare = 0; } return compare; } }
[ "Damiano@Damiano-PC" ]
Damiano@Damiano-PC
453cc9102b0082863c41416c1548948a754e3693
e956050c1023f81fa348c2dcad473a30f84ec5f7
/app/src/main/java/com/pratham/assessment/ui/content_player/TtsListener.java
a5463e223d40c42bd985ec2f17de7d3b2a5e1843
[]
no_license
prathamApp/GIT_Assessment
c865cb30f19a9ec064db9140072d5988d0755e75
3ab6d5f8d4fc911a038285c0f907660008385139
refs/heads/master
2021-06-15T23:11:10.394704
2021-03-13T09:41:40
2021-03-13T09:41:40
175,365,218
1
1
null
null
null
null
UTF-8
Java
false
false
919
java
package com.pratham.assessment.ui.content_player; import android.annotation.TargetApi; import android.os.Build; import android.speech.tts.TextToSpeech; import android.widget.Toast; import java.util.Locale; import static com.pratham.assessment.ui.content_player.TextToSpeechCustom.textToSpeech; public class TtsListener implements TextToSpeech.OnInitListener { float spRate; public TtsListener(float spRate) { this.spRate = spRate; } @TargetApi(Build.VERSION_CODES.LOLLIPOP) @Override public void onInit(int status) { if (status == TextToSpeech.SUCCESS) { textToSpeech.setLanguage(new Locale("hi", "IN")); textToSpeech.setSpeechRate(spRate); } else { textToSpeech = null; Toast.makeText(TextToSpeechCustom.mContext, "Failed to initialize TTS engine.", Toast.LENGTH_SHORT).show(); } } }
[ "prathambaner123@gmail.com" ]
prathambaner123@gmail.com
d4dba54483e19f3c64d732601a52f6d4296bb2c2
a1f94955c480d73d042fe939cf229774ac1c0646
/src/main/java/slimeknights/tconstruct/library/fluid/FillOnlyFluidHandler.java
14a0f08bb30d22e43d5b3dba8e3ceb13e429359e
[ "MIT" ]
permissive
SlimeKnights/TinkersConstruct
6d581a9a52df175b1a9bb7cee17c1822ccfc00b4
09626c7f3f379ebe68e37312395af07b8c16e475
refs/heads/1.18.2
2023-08-26T08:59:01.749216
2023-08-09T07:07:40
2023-08-09T07:07:40
7,760,890
1,126
911
MIT
2023-08-22T15:57:33
2013-01-22T20:46:32
Java
UTF-8
Java
false
false
1,206
java
package slimeknights.tconstruct.library.fluid; import net.minecraftforge.fluids.FluidStack; import net.minecraftforge.fluids.capability.IFluidHandler; import javax.annotation.Nonnull; import net.minecraftforge.fluids.capability.IFluidHandler.FluidAction; /** * Fluid handler wrapper that only allows filling */ public class FillOnlyFluidHandler implements IFluidHandler { private final IFluidHandler parent; public FillOnlyFluidHandler(IFluidHandler parent) { this.parent = parent; } @Override public int getTanks() { return parent.getTanks(); } @Nonnull @Override public FluidStack getFluidInTank(int tank) { return parent.getFluidInTank(tank); } @Override public int getTankCapacity(int tank) { return parent.getTankCapacity(tank); } @Override public boolean isFluidValid(int tank, FluidStack stack) { return false; } @Override public int fill(FluidStack resource, FluidAction action) { return parent.fill(resource, action); } @Nonnull @Override public FluidStack drain(FluidStack resource, FluidAction action) { return FluidStack.EMPTY; } @Nonnull @Override public FluidStack drain(int maxDrain, FluidAction action) { return FluidStack.EMPTY; } }
[ "knightminer4@gmail.com" ]
knightminer4@gmail.com
5060613d6279ba5cc9b6f3f59c98a386f3f272b8
4c8178ef69d9d15ff62459515f5835adb5970cbe
/JobFlo/app/src/main/java/data/science/com/florensis/DataAdapter.java
c98cd163b0ac351891052f26059ebdbee20cf68a
[]
no_license
Bravo2017/android-projects
3dbd71bef8310a333226a8bf0ac6321b565cb00b
f54962f10ab4137d15ece9d55019774023b4fbb4
refs/heads/master
2021-06-17T13:37:21.961147
2017-04-10T06:56:15
2017-04-10T06:56:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,690
java
package data.science.com.florensis; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; import java.util.ArrayList; import java.util.List; public class DataAdapter extends ArrayAdapter { List list = new ArrayList(); public DataAdapter(Context context, int resource){ super(context, resource); } public void add(Data object) { list.add(object); super.add(object); } public int getCount(){ return list.size(); } public Object getItem(int position){ return list.get(position); } public View getView(int position, View convertView, ViewGroup parent){ View row= convertView; ProductHolder productHolder; if (row == null){ LayoutInflater layoutInflater= (LayoutInflater) this.getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); row = layoutInflater.inflate(R.layout.activity_view,parent,false); productHolder = new ProductHolder(); productHolder.g_name = (TextView) row.findViewById(R.id.g_name); productHolder.b_name = (TextView) row.findViewById(R.id.b_name); row.setTag(productHolder); }else { productHolder = (ProductHolder) row.getTag(); } Data data = (Data) getItem(position); productHolder.g_name.setText(data.getGreenhouse().toString()); productHolder.b_name.setText(data.getBedID().toString()); return row; } static class ProductHolder{ TextView g_name, b_name; } }
[ "imayadismas@gmail.com" ]
imayadismas@gmail.com
245ffa76bcfad7e00b69d1cd20a03f313fc42af2
c474b03758be154e43758220e47b3403eb7fc1fc
/apk/decompiled/com.tinder_2018-07-26_source_from_JADX/sources/com/facebook/ads/internal/view/p052c/p053b/C4166e.java
290974566855876902f8c51e9b756129a2f86efa
[]
no_license
EstebanDalelR/tinderAnalysis
f80fe1f43b3b9dba283b5db1781189a0dd592c24
941e2c634c40e5dbf5585c6876ef33f2a578b65c
refs/heads/master
2020-04-04T09:03:32.659099
2018-11-23T20:41:28
2018-11-23T20:41:28
155,805,042
0
0
null
2018-11-18T16:02:45
2018-11-02T02:44:34
null
UTF-8
Java
false
false
3,284
java
package com.facebook.ads.internal.view.p052c.p053b; import android.content.Context; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Paint.Style; import android.graphics.RectF; import android.net.Uri; import android.util.DisplayMetrics; import android.view.View; import android.view.View.OnClickListener; import android.widget.RelativeLayout.LayoutParams; import android.widget.TextView; import com.facebook.ads.internal.p034a.C1348a; import com.facebook.ads.internal.p034a.C1349b; import com.facebook.ads.internal.p041h.C1425f; import com.facebook.ads.internal.view.p052c.p080a.C3328a; import java.util.HashMap; /* renamed from: com.facebook.ads.internal.view.c.b.e */ public class C4166e extends C3361o { /* renamed from: a */ private final String f13304a; /* renamed from: b */ private final TextView f13305b = new TextView(getContext()); /* renamed from: c */ private final C1425f f13306c; /* renamed from: d */ private final String f13307d; /* renamed from: e */ private final Paint f13308e; /* renamed from: f */ private final RectF f13309f; /* renamed from: com.facebook.ads.internal.view.c.b.e$1 */ class C15731 implements OnClickListener { /* renamed from: a */ final /* synthetic */ C4166e f4369a; C15731(C4166e c4166e) { this.f4369a = c4166e; } public void onClick(View view) { if (this.f4369a.getVideoView() != null) { Uri parse = Uri.parse(this.f4369a.f13304a); this.f4369a.getVideoView().getEventBus().m4994a(new C3328a(parse)); C1348a a = C1349b.m4701a(this.f4369a.getContext(), this.f4369a.f13306c, this.f4369a.f13307d, parse, new HashMap()); if (a != null) { a.mo1718b(); } } } } public C4166e(Context context, String str, C1425f c1425f, String str2, String str3) { super(context); this.f13304a = str; this.f13306c = c1425f; this.f13307d = str2; DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics(); this.f13305b.setTextColor(-3355444); this.f13305b.setTextSize(16.0f); this.f13305b.setPadding((int) (displayMetrics.density * 6.0f), (int) (displayMetrics.density * 4.0f), (int) (displayMetrics.density * 6.0f), (int) (displayMetrics.density * 4.0f)); this.f13308e = new Paint(); this.f13308e.setStyle(Style.FILL); this.f13308e.setColor(-16777216); this.f13308e.setAlpha(178); this.f13309f = new RectF(); setBackgroundColor(0); this.f13305b.setText(str3); addView(this.f13305b, new LayoutParams(-2, -2)); } /* renamed from: a */ protected void mo3339a() { super.mo3339a(); this.f13305b.setOnClickListener(new C15731(this)); } /* renamed from: b */ protected void mo3340b() { this.f13305b.setOnClickListener(null); super.mo3340b(); } protected void onDraw(Canvas canvas) { this.f13309f.set(0.0f, 0.0f, (float) getWidth(), (float) getHeight()); canvas.drawRoundRect(this.f13309f, 0.0f, 0.0f, this.f13308e); super.onDraw(canvas); } }
[ "jdguzmans@hotmail.com" ]
jdguzmans@hotmail.com
c72217053a755bbfa643e67d22d68916e6b649cf
335afe0d7c68a0cc365da7366ae34889aa3c638b
/smack-experimental/src/main/java/org/jivesoftware/smackx/dox/DnsOverXmppManager.java
1ffba55976984b084695b0652d74ae08bf2fe204
[ "Apache-2.0" ]
permissive
jagmeet787/Smack
5307668a50b7e0f062172dae8361f3f8062ad1cd
ce2dfa3848408a93589ed0703cf149a392c14e52
refs/heads/master
2021-03-21T13:37:55.577938
2020-03-23T21:23:23
2020-03-23T21:23:23
247,299,157
0
0
Apache-2.0
2020-03-14T15:11:35
2020-03-14T15:11:34
null
UTF-8
Java
false
false
6,299
java
/** * * Copyright 2019 Florian Schmaus * * 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.jivesoftware.smackx.dox; import java.io.IOException; import java.util.Map; import java.util.WeakHashMap; import java.util.logging.Logger; import org.jivesoftware.smack.Manager; import org.jivesoftware.smack.SmackException.NoResponseException; import org.jivesoftware.smack.SmackException.NotConnectedException; import org.jivesoftware.smack.XMPPConnection; import org.jivesoftware.smack.XMPPException.XMPPErrorException; import org.jivesoftware.smack.iqrequest.AbstractIqRequestHandler; import org.jivesoftware.smack.iqrequest.IQRequestHandler.Mode; import org.jivesoftware.smack.packet.IQ; import org.jivesoftware.smack.packet.StanzaError; import org.jivesoftware.smack.packet.StanzaError.Condition; import org.jivesoftware.smack.packet.StanzaError.Type; import org.jivesoftware.smack.util.RandomUtil; import org.jivesoftware.smackx.disco.ServiceDiscoveryManager; import org.jivesoftware.smackx.dox.element.DnsIq; import org.jxmpp.jid.Jid; import org.minidns.dnsmessage.DnsMessage; import org.minidns.dnsmessage.Question; public final class DnsOverXmppManager extends Manager { private static final Logger LOGGER = Logger.getLogger(DnsOverXmppManager.class.getName()); private static final Map<XMPPConnection, DnsOverXmppManager> INSTANCES = new WeakHashMap<>(); public static synchronized DnsOverXmppManager getInstanceFor(XMPPConnection connection) { DnsOverXmppManager manager = INSTANCES.get(connection); if (manager == null) { manager = new DnsOverXmppManager(connection); INSTANCES.put(connection, manager); } return manager; } private static final String NAMESPACE = DnsIq.NAMESPACE; private static DnsOverXmppResolver defaultResolver; public void setDefaultDnsOverXmppResolver(DnsOverXmppResolver resolver) { defaultResolver = resolver; } private final ServiceDiscoveryManager serviceDiscoveryManager; private DnsOverXmppResolver resolver = defaultResolver; private boolean enabled; private final AbstractIqRequestHandler dnsIqRequestHandler = new AbstractIqRequestHandler( DnsIq.ELEMENT, DnsIq.NAMESPACE, IQ.Type.get, Mode.async) { @Override public IQ handleIQRequest(IQ iqRequest) { DnsOverXmppResolver resolver = DnsOverXmppManager.this.resolver; if (resolver == null) { LOGGER.info("Resolver was null while attempting to handle " + iqRequest); return null; } DnsIq dnsIqRequest = (DnsIq) iqRequest; DnsMessage query = dnsIqRequest.getDnsMessage(); DnsMessage response; try { response = resolver.resolve(query); } catch (IOException exception) { StanzaError errorBuilder = StanzaError.getBuilder() .setType(Type.CANCEL) .setCondition(Condition.internal_server_error) .setDescriptiveEnText("Exception while resolving your DNS query", exception) .build() ; IQ errorResponse = IQ.createErrorResponse(iqRequest, errorBuilder); return errorResponse; } if (query.id != response.id) { // The ID may not match because the resolver returned a cached result. response = response.asBuilder().setId(query.id).build(); } DnsIq dnsIqResult = new DnsIq(response); dnsIqResult.setType(IQ.Type.result); return dnsIqResult; } }; private DnsOverXmppManager(XMPPConnection connection) { super(connection); this.serviceDiscoveryManager = ServiceDiscoveryManager.getInstanceFor(connection); } public synchronized void setDnsOverXmppResolver(DnsOverXmppResolver resolver) { this.resolver = resolver; if (resolver == null) { disable(); } } public synchronized void enable() { if (enabled) return; if (resolver == null) { throw new IllegalStateException("No DnsOverXmppResolver configured"); } XMPPConnection connection = connection(); if (connection == null) return; connection.registerIQRequestHandler(dnsIqRequestHandler); serviceDiscoveryManager.addFeature(NAMESPACE); } public synchronized void disable() { if (!enabled) return; XMPPConnection connection = connection(); if (connection == null) return; serviceDiscoveryManager.removeFeature(NAMESPACE); connection.unregisterIQRequestHandler(dnsIqRequestHandler); } public boolean isSupported(Jid jid) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException { return serviceDiscoveryManager.supportsFeature(jid, NAMESPACE); } public DnsMessage query(Jid jid, Question question) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException { DnsMessage queryMessage = DnsMessage.builder() .addQuestion(question) .setId(RandomUtil.nextSecureRandomInt()) .setRecursionDesired(true) .build(); return query(jid, queryMessage); } public DnsMessage query(Jid jid, DnsMessage query) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException { DnsIq queryIq = new DnsIq(query, jid); DnsIq responseIq = connection().sendIqRequestAndWaitForResponse(queryIq); return responseIq.getDnsMessage(); } }
[ "flo@geekplace.eu" ]
flo@geekplace.eu
04967348574f22d2c389f54739549fa93a0228be
d4c23e6b812d4fba032f482a8da8712deaeff381
/modules/swagger-promote-core/src/main/java/com/axway/apim/lib/CommandParameters.java
8524cb157b2f31342eb8b55ba620bb685d85d15d
[ "Apache-2.0" ]
permissive
vuvdoan/apimanager-swagger-promote
7adb8e0d1c0c8b4ee1d6b6a9a2632935cf5a665e
f6f1e1c62361544e8ce04775a6fbbcb8c6aeb9d8
refs/heads/develop
2020-06-15T08:21:59.769175
2019-07-24T11:38:36
2019-07-24T11:38:36
192,732,761
0
0
Apache-2.0
2019-06-28T13:03:48
2019-06-19T12:59:02
Java
UTF-8
Java
false
false
4,998
java
package com.axway.apim.lib; import java.util.Map; import org.apache.commons.cli.CommandLine; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class CommandParameters { private static Logger LOG = LoggerFactory.getLogger(CommandParameters.class); public static String MODE_REPLACE = "replace"; public static String MODE_IGNORE = "ignore"; public static String MODE_ADD = "add"; private static CommandParameters instance; int port = 8075; private CommandLine cmd; private CommandLine internalCmd; private EnvironmentProperties envProperties; public CommandParameters (CommandLine cmd) throws AppException { this(cmd, null, null); } public CommandParameters (CommandLine cmd, CommandLine internalCmd, EnvironmentProperties environment) throws AppException { this.cmd = cmd; this.internalCmd = internalCmd; this.envProperties = environment; validateRequiredParameters(); CommandParameters.instance = this; } public static synchronized CommandParameters getInstance() { if(TestIndicator.getInstance().isTestRunning()) return null; // Skip this, if executed as a test if (CommandParameters.instance == null) { LOG.error("CommandParameters has not been initialized."); throw new RuntimeException("CommandParameters has not been initialized."); } return CommandParameters.instance; } public String getUsername() { if(getValue("username")!=null) { return getValue("username"); } else { // Perhaps the admin_username is given return getValue("admin_username"); } } public String getPassword() { if(getValue("password")!=null) { return getValue("password"); } else { // Perhaps the admin_password is given (hopefully in combination with the admin_username) return getValue("admin_password"); } } public String getAdminUsername() { return getValue("admin_username"); } public String getAdminPassword() { return getValue("admin_password"); } public String getHostname() { return getValue("host"); } public int getPort() { if(getValue("port")==null) return port; return Integer.parseInt(getValue("port")); } public boolean isEnforceBreakingChange() { if(getValue("force")==null) return false; return Boolean.parseBoolean(getValue("force")); } public boolean isIgnoreQuotas() { if(getValue("ignoreQuotas")==null) return false; return Boolean.parseBoolean(getValue("ignoreQuotas")); } public boolean isIgnoreClientApps() { if(getClientAppsMode().equals(MODE_IGNORE)) return true; return false; } public String getClientAppsMode() { if(getValue("clientAppsMode")==null) return MODE_ADD; return getValue("clientAppsMode").toLowerCase(); } public boolean isIgnoreClientOrgs() { if(getClientOrgsMode().equals(MODE_IGNORE)) return true; return false; } public String getClientOrgsMode() { if(getValue("clientOrgsMode")==null) return MODE_ADD; return getValue("clientOrgsMode").toLowerCase(); } public String getAPIManagerURL() { return "https://"+this.getHostname()+":"+this.getPort(); } public boolean ignoreAdminAccount() { if(getValue("ignoreAdminAccount")==null) return false; return Boolean.parseBoolean(getValue("ignoreAdminAccount")); } public String getDetailsExportFile() { if(getValue("detailsExportFile")==null) return null; return getValue("detailsExportFile"); } public boolean replaceHostInSwagger() { if(getValue("replaceHostInSwagger")==null) return true; return Boolean.parseBoolean(getValue("replaceHostInSwagger")); } public boolean rollback() { if(getValue("rollback")==null) return true; return Boolean.parseBoolean(getValue("rollback")); } public void validateRequiredParameters() throws AppException { ErrorState errors = ErrorState.getInstance(); if(getValue("username")==null && getValue("admin_username")==null) errors.setError("Required parameter: 'username' or 'admin_username' is missing.", ErrorCode.MISSING_PARAMETER, false); if(getValue("password")==null && getValue("admin_password")==null) errors.setError("Required parameter: 'password' or 'admin_password' is missing.", ErrorCode.MISSING_PARAMETER, false); if(getValue("host")==null) errors.setError("Required parameter: 'host' is missing.", ErrorCode.MISSING_PARAMETER, false); if(errors.hasError) { LOG.error("Provide parameters either using Command-Line-Options or in Environment.Properties"); throw new AppException("Missing required parameters.", ErrorCode.MISSING_PARAMETER); } } public String getValue(String key) { if(this.cmd.getOptionValue(key)!=null) { return this.cmd.getOptionValue(key); } else if(this.internalCmd!=null && this.internalCmd.getOptionValue(key)!=null) { return this.internalCmd.getOptionValue(key); } else if(this.envProperties!=null && this.envProperties.containsKey(key)) { return this.envProperties.get(key); } else { return null; } } public Map<String, String> getEnvironmentProperties() { return this.envProperties; } }
[ "cwiechmann@axway.com" ]
cwiechmann@axway.com
4aff9aa26d0f78d454e7096492f634b170f79ef7
7f0a24c6ab5f8a6b13057176b2c8457ab2525b0d
/ClawNDagger/src/com/rem/clawndagger/file/manager/Smelter.java
b72e9be6cfd2f016883b6b77ab82397d79a9b909
[]
no_license
RedEyedMars/ClawNDagger
772379c7a53762ddd1bf56f92f3e555e7ac4cdbd
94490a7f4eefc14209be090c0939f23a9caaefbc
refs/heads/master
2020-04-15T01:11:31.058636
2019-05-02T23:19:10
2019-05-02T23:19:10
164,266,727
0
0
null
null
null
null
UTF-8
Java
false
false
3,932
java
package com.rem.clawndagger.file.manager; import java.io.IOException; import java.io.Writer; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.StandardOpenOption; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import java.util.function.Supplier; import java.util.stream.Collectors; import java.util.stream.Stream; import com.rem.clawndagger.game.events.Events; import com.rem.clawndagger.graphics.Gui; import com.rem.clawndagger.interfaces.Savable; public class Smelter { private static Stream.Builder<Savable> unsaved = null; private static Map<Savable,Supplier<Boolean>> saved = new HashMap<Savable,Supplier<Boolean>>(); private static Set<Supplier<Boolean>> savers = new HashSet<Supplier<Boolean>>(); private static boolean saveThreadStarted = false; public static void link(Savable unsavedActor){ synchronized(saved){ if(!saved.containsKey(unsavedActor)){ if(unsaved==null){ unsaved = Stream.builder(); } if(unsavedActor==null){ throw new RuntimeException("No Nulls!"); } unsaved.add(unsavedActor); } } } public static void startSaveThread(){ if(!saveThreadStarted){ saveThreadStarted = true; new Thread(new Runnable(){ @Override public void run() { while(Gui.isRunning){ try { Thread.sleep(100); } catch (InterruptedException e) { Gui.isRunning = false; e.printStackTrace(); } synchronized(saved){ if(unsaved!=null){ unsaved.build() .parallel() .map(S->Smelter.saver(S,"./res/save")) .collect(Collectors.toList()).stream() .peek(savers::add) .collect(Collectors.toMap( Saver::getHost, S->S )); unsaved = null; } } savers.parallelStream().forEach(Supplier::get); } }}).start(); } } private static abstract class Saver implements Supplier<Boolean> { private Savable host; public Saver(Savable host){ this.host = host; } public Savable getHost(){ return host; } } private static boolean getClassName(Class<?> enclosedClass, StringBuilder className){ if(enclosedClass!=null){ if(getClassName(enclosedClass.getEnclosingClass(),className)){ className.append("."); } className.append(enclosedClass.getSimpleName()); return true; } else { return false; } } private static Path createPath(Path packageName, String className) throws IOException { synchronized(unsaved){ Path result = null; if(!Files.exists(packageName)){ Files.createDirectory(packageName); result = packageName.resolve(className); Files.createDirectory(result); } else { result = packageName.resolve(className); if(!Files.exists(result)){ Files.createDirectory(result); } } return result; } } public static Saver saver(Savable savable, String fileName) { StringBuilder className = new StringBuilder(); if(getClassName(savable.getClass().getEnclosingClass(),className)){ className.append("."); } className.append(savable.getClass().getSimpleName()); try{ Path directory = createPath(Paths.get(fileName,savable.getClass().getPackage().getName()),className.toString()); List<Savable.Lineable> lines = savable.getSaveLines(); return new Saver(savable){public Boolean get(){ try(Writer writer = Files.newBufferedWriter(directory.resolve(savable.getName()+".dat"), StandardOpenOption.CREATE);){ lines.forEach(L->{ try { writer.write(L.getSaveLine()); writer.write('\n'); } catch (Exception e) { e.printStackTrace(); } }); } catch (IOException e) { e.printStackTrace(); } return true; }}; } catch(IOException e){ e.printStackTrace(); } return null; } }
[ "greg_estouffey@hotmail.com" ]
greg_estouffey@hotmail.com
63150544f8838ecbb9a0f71b6bbe14839509da42
9394ec36a35e33e7e63a679c1902beed30903001
/cSRC_PerCap/MinDues/Software/src/org/afscme/enterprise/roles/MemberPrivileges.java
55dbae7b895a494fc4ac14d64df8069004cab79c
[]
no_license
mfengafscme/mDuesPerCap_new
a2256aeb2bf8c34d90b24b34cce93878320f7ec8
e8b4763cb1c50ce22881134b52d201197a08c9e5
refs/heads/master
2020-03-06T19:19:50.668199
2018-03-27T17:48:47
2018-03-27T17:48:47
127,025,416
0
0
null
null
null
null
UTF-8
Java
false
false
426
java
package org.afscme.enterprise.roles; /** Contains constants used by get/setMemberPrivileges in the MaintainPrivileges EJB */ public interface MemberPrivileges { /** Members may not view or edit their data */ public static final int NONE = 0; /** Members may only view their data */ public static final int VIEW = 1; /** Members may edit and view their data */ public static final int VIEW_AND_EDIT = 2; }
[ "32712375+mfengafscme@users.noreply.github.com" ]
32712375+mfengafscme@users.noreply.github.com
b55b696c3bd2e67856e83892bd127745992da21a
d68b23a8af66b07f6e443e1ad485fa16150b0dc0
/csharp-psi-impl/src/main/java/consulo/csharp/lang/impl/psi/source/resolve/sorter/TypeLikeComparator.java
02548106ea248bf4d858d19a6aa75c366f632fec
[ "Apache-2.0" ]
permissive
consulo/consulo-csharp
34e1f591b31411cfa4ac6b96e82522e5ffbf80ad
ccb078d27b4ba37be9bb3f2c258aad9fb152a640
refs/heads/master
2023-08-31T16:12:36.841763
2023-08-17T10:56:13
2023-08-17T10:56:13
21,350,424
51
9
Apache-2.0
2023-01-01T16:33:23
2014-06-30T12:35:16
Java
UTF-8
Java
false
false
2,460
java
/* * Copyright 2013-2017 consulo.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package consulo.csharp.lang.impl.psi.source.resolve.sorter; import consulo.annotation.access.RequiredReadAction; import consulo.csharp.lang.psi.CSharpTypeDefStatement; import consulo.csharp.lang.impl.psi.source.CSharpReferenceExpressionImplUtil; import consulo.csharp.lang.psi.resolve.CSharpElementGroup; import consulo.dotnet.psi.DotNetGenericParameterListOwner; import consulo.dotnet.psi.DotNetVariable; import consulo.dotnet.psi.resolve.DotNetNamespaceAsElement; import consulo.language.psi.PsiElement; import consulo.language.psi.ResolveResult; import javax.annotation.Nonnull; import java.util.Comparator; /** * @author VISTALL * @since 27.10.14 */ public class TypeLikeComparator implements Comparator<ResolveResult> { @Nonnull @RequiredReadAction public static TypeLikeComparator create(@Nonnull PsiElement element) { return new TypeLikeComparator(CSharpReferenceExpressionImplUtil.getTypeArgumentListSize(element)); } private final int myGenericCount; public TypeLikeComparator(int genericCount) { myGenericCount = genericCount; } @Override public int compare(ResolveResult o1, ResolveResult o2) { return getWeight(o2) - getWeight(o1); } public int getWeight(ResolveResult resolveResult) { PsiElement element = resolveResult.getElement(); if(element instanceof DotNetVariable) { return 200000; } if(element instanceof CSharpElementGroup) { return 100000; } if(element instanceof CSharpTypeDefStatement) { return 50100; } if(element instanceof DotNetGenericParameterListOwner) { if(((DotNetGenericParameterListOwner) element).getGenericParametersCount() == myGenericCount) { return 50000; } return -((DotNetGenericParameterListOwner) element).getGenericParametersCount() * 100; } if(element instanceof DotNetNamespaceAsElement) { return 0; } return 10; } }
[ "vistall.valeriy@gmail.com" ]
vistall.valeriy@gmail.com
eebd2a53ca461868aedf45421503756a16e33af1
b37726900ee16a5b72a6cd7b2a2d72814fffe924
/src/main/java/vn/com/vndirect/commons/web/IWebStatistic.java
6dc32ebdbd0bcba56cc1350e7a7990b5a57e62a6
[]
no_license
UnsungHero0/portal
6b9cfd7271f2b1d587a6f311de49c67e8dd8ff9f
32325d3e1732d900ee3f874c55890afc8f347700
refs/heads/master
2021-01-20T06:18:01.548033
2014-11-12T10:27:43
2014-11-12T10:27:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
227
java
package vn.com.vndirect.commons.web; public interface IWebStatistic { /** * * @return */ String getCode(); /** * * @return */ Double getNumberValue(); /** * * @return */ String getStringValue(); }
[ "minh.nguyen@vndirect.com.vn" ]
minh.nguyen@vndirect.com.vn
2ba93a3761390d4f0f4e0a39b9bdaaf33c19c344
447520f40e82a060368a0802a391697bc00be96f
/apks/playstore_apps/com_ubercab/source/tr.java
ade32d78d8e838db68b8e45a5e38eef505762602
[ "Apache-2.0", "GPL-1.0-or-later" ]
permissive
iantal/AndroidPermissions
7f3343a9c29d82dbcd4ecd98b3a50ddf8d179465
d623b732734243590b5f004d167e542e2e2ae249
refs/heads/master
2023-07-19T01:29:26.689186
2019-09-30T19:01:42
2019-09-30T19:01:42
107,239,248
0
0
Apache-2.0
2023-07-16T07:41:38
2017-10-17T08:22:57
null
UTF-8
Java
false
false
320
java
import java.lang.annotation.Annotation; import java.lang.annotation.Inherited; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Inherited @Retention(RetentionPolicy.RUNTIME) @Target({java.lang.annotation.ElementType.TYPE}) public @interface tr {}
[ "antal.micky@yahoo.com" ]
antal.micky@yahoo.com
8b22764bae1ee8ec85a3b735cca35bf76364ea0c
7a2c91813117a8d949571521510895ee53daad49
/src/main/java/com/alipay/api/response/AlipayPcreditLoanThirdNotifyResponse.java
a260eee9696936d68b969d9b0810963937c0699e
[ "Apache-2.0" ]
permissive
dut3062796s/alipay-sdk-java-all
eb5afb5b570fb0deb40d8c960b85a01d13506568
559180f4c370f7fcfef67a1c559768d11475c745
refs/heads/master
2020-07-03T21:00:06.124387
2019-06-23T01:13:43
2019-06-23T01:13:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
375
java
package com.alipay.api.response; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.pcredit.loan.third.notify response. * * @author auto create * @since 1.0, 2019-01-07 20:51:15 */ public class AlipayPcreditLoanThirdNotifyResponse extends AlipayResponse { private static final long serialVersionUID = 2745498353771275347L; }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
f318fa8ec052a9d089dac60d9f7ee90fb1013e50
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/34/34_dacc89a7c6659bf3651e7ed5a9fe143982f5ba37/InjectableTemporaryFolder/34_dacc89a7c6659bf3651e7ed5a9fe143982f5ba37_InjectableTemporaryFolder_s.java
46bc14dca30c35b2c6a2fcbc816971301c25e004
[]
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
208
java
package org.commonjava.web.fd.fixture; import javax.inject.Singleton; import org.junit.rules.TemporaryFolder; @Singleton public class InjectableTemporaryFolder extends TemporaryFolder { }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
c1d9fb5684f717d8537e4d0dfe981272c099b3fb
981f7ae13c9ffbc79f240a926e745f9f47a671b7
/src/main/java/me/study/jpa/chap13/Period.java
aeac2f0fc5c59ddf8b019a4c00445753ea09beb3
[]
no_license
jsyang-dev/study-jpa
367229fbdabd2dff513b8670fad831bdab9954ab
9cc82573044484585336a3c0e4ffcd61af744a1c
refs/heads/master
2023-07-27T04:16:08.761169
2022-01-22T08:25:13
2022-01-22T08:25:13
248,248,065
0
0
null
null
null
null
UTF-8
Java
false
false
717
java
package me.study.jpa.chap13; import javax.persistence.Embeddable; import java.time.LocalDateTime; @Embeddable public class Period { private LocalDateTime startDate; private LocalDateTime endDate; public Period() { } public Period(LocalDateTime startDate, LocalDateTime endDate) { this.startDate = startDate; this.endDate = endDate; } public LocalDateTime getStartDate() { return startDate; } public void setStartDate(LocalDateTime startDate) { this.startDate = startDate; } public LocalDateTime getEndDate() { return endDate; } public void setEndDate(LocalDateTime endDate) { this.endDate = endDate; } }
[ "mycat83@gmail.com" ]
mycat83@gmail.com
050d8479ecf76f28dbf0520a69d20b86079d8a70
8bf7fc828ddc913fc885d8c72585a2e5481d7d88
/app/src/main/java/com/wbb/dp/chapter24/SmallCoffee.java
c3c12926ee5f823c1eec8f1cf18858d20582d370
[ "MIT" ]
permissive
keeponZhang/android_design_pattern_book_source
eacfb6b6d338e7b2c52042d5a0cdb5c27e1be3ec
8c8e98c2071546da5fc517f1c937f302d3a5ec52
refs/heads/master
2022-12-16T03:43:31.622111
2020-09-11T11:43:58
2020-09-11T11:43:58
293,052,105
0
0
null
null
null
null
UTF-8
Java
false
false
330
java
package com.wbb.dp.chapter24; /** * @author weibb * @date 2019/1/9 * email: weibb@chingo.cn */ public class SmallCoffee extends Coffee { public SmallCoffee(CoffeeAdditives impl) { super(impl); } @Override public void makeCoffee() { System.out.println("小杯的" + impl + "咖啡"); } }
[ "zhangwengao@yy.com" ]
zhangwengao@yy.com
9a8bf51571dddda734e9799778fcd7ba793f96b1
1d6f1faea75e8a1c2d6aa2e208f6e087c54628b7
/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/JsonViewResponseBodyAdvice.java
9a1847a00b17f8c25af2b29d81b977263c31cd8a
[]
no_license
lixw1992/spring4
7acde76816b08582048368fb0e4fc38c23160636
54cbd97957528a7a7af813394bb1adbb802256f8
refs/heads/master
2020-07-02T01:56:42.815034
2019-08-01T03:49:53
2019-08-01T03:49:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,991
java
package org.springframework.web.servlet.mvc.method.annotation; import com.fasterxml.jackson.annotation.JsonView; import org.springframework.core.MethodParameter; import org.springframework.http.MediaType; import org.springframework.http.converter.HttpMessageConverter; import org.springframework.http.converter.json.MappingJacksonValue; import org.springframework.http.server.ServerHttpRequest; import org.springframework.http.server.ServerHttpResponse; /** * A {@link ResponseBodyAdvice} implementation that adds support for Jackson's * {@code @JsonView} annotation declared on a Spring MVC {@code @RequestMapping} * or {@code @ExceptionHandler} method. * * <p>The serialization view specified in the annotation will be passed in to the * {@link org.springframework.http.converter.json.MappingJackson2HttpMessageConverter} * which will then use it to serialize the response body. * * <p>Note that despite {@code @JsonView} allowing for more than one class to * be specified, the use for a response body advice is only supported with * exactly one class argument. Consider the use of a composite interface. */ public class JsonViewResponseBodyAdvice extends AbstractMappingJacksonResponseBodyAdvice { @Override public boolean supports(MethodParameter returnType, Class<? extends HttpMessageConverter<?>> converterType) { return super.supports(returnType, converterType) && returnType.hasMethodAnnotation(JsonView.class); } @Override protected void beforeBodyWriteInternal(MappingJacksonValue bodyContainer, MediaType contentType, MethodParameter returnType, ServerHttpRequest request, ServerHttpResponse response) { JsonView annotation = returnType.getMethodAnnotation(JsonView.class); Class<?>[] classes = annotation.value(); if (classes.length != 1) { throw new IllegalArgumentException( "@JsonView only supported for response body advice with exactly 1 class argument: " + returnType); } bodyContainer.setSerializationView(classes[0]); } }
[ "yuexiaoguang@vortexinfo.cn" ]
yuexiaoguang@vortexinfo.cn
f5d02fa39c872c455af60df3aa9c65fdafc8e85d
573b9c497f644aeefd5c05def17315f497bd9536
/src/main/java/com/alipay/api/domain/KbAdvertCommissionClauseQuota.java
4bbe06d693562aa49ea163057562d7fc3f9451e6
[ "Apache-2.0" ]
permissive
zzzyw-work/alipay-sdk-java-all
44d72874f95cd70ca42083b927a31a277694b672
294cc314cd40f5446a0f7f10acbb5e9740c9cce4
refs/heads/master
2022-04-15T21:17:33.204840
2020-04-14T12:17:20
2020-04-14T12:17:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,013
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 口碑广告系统分佣规则(定额) * * @author auto create * @since 1.0, 2016-11-21 17:14:39 */ public class KbAdvertCommissionClauseQuota extends AlipayObject { private static final long serialVersionUID = 1513628695411438376L; /** * 定额结束范围(精度2位的非负小数) */ @ApiField("quota_amount_end") private String quotaAmountEnd; /** * 定额开始范围(精度2位的非负小数) */ @ApiField("quota_amount_start") private String quotaAmountStart; public String getQuotaAmountEnd() { return this.quotaAmountEnd; } public void setQuotaAmountEnd(String quotaAmountEnd) { this.quotaAmountEnd = quotaAmountEnd; } public String getQuotaAmountStart() { return this.quotaAmountStart; } public void setQuotaAmountStart(String quotaAmountStart) { this.quotaAmountStart = quotaAmountStart; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
26646c11e9f7be48d131fabaf812fe9062ba12b4
616d74752ae96a55b3351782d54113b9a152fd82
/trunk/src/facemap/Landmark.java
97e8b25de1f7754f87743cac7fb502508bfdac1f
[]
no_license
BGCX067/face-map-svn-to-git
cc4c50169b3738d221ecdcd61c657ebd08c58fe6
5ec5d80d6e5009052bf098a1eddea4803e145758
refs/heads/master
2016-09-01T08:53:31.615770
2015-12-28T14:42:15
2015-12-28T14:42:15
48,702,134
0
0
null
null
null
null
UTF-8
Java
false
false
2,836
java
package facemap; import java.util.Date; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import java.text.SimpleDateFormat; /** * Definition of a Landmark * Represents a location on the map. **/ @PersistenceCapable public class Landmark { /** * User id **/ protected String userID; /** * User id **/ protected String fbID; /** * Name of the landmark. **/ protected String landmarkName = null; /** * Address of the landmark. **/ protected String address = null; /** * Category of the landmark. **/ protected String geocode = null; /** * Description of the landmark. **/ protected String description = null; /** * Date when the landmark is added. **/ protected Date dateAdded = null; /** * Default constructor. **/ protected Landmark() { } /** Constructor. */ public Landmark(String userID, String fbID, String landmarkName, String address, String geocode, String description, Date dateAdded) { // TODO Auto-generated constructor stub this.userID = userID ; this.fbID = fbID ; this.landmarkName = landmarkName ; this.address = address; this.geocode = geocode; this.description = description; this.dateAdded = dateAdded; } // -------------------------Accessors ------------------------ public String getUserID() { return userID; } public String getFbID() { return fbID; } public String getLandmarkName() { return landmarkName; } public String getAddress() { return address; } public String getGeocode() { return geocode; } public String getDescription() { return description; } public Date getDateAdded() { return dateAdded; } public String getDateFormat() { String dateFormat; SimpleDateFormat formatter = new SimpleDateFormat("MMM dd 'at' hh:mm aaa"); dateFormat = formatter.format(this.dateAdded); return dateFormat; } // ---------------------------Mutators ---------------------------- public void setUserID(String userID) { this.userID = userID; } public void setFbID(String fbID) { this.fbID = fbID; } public void setLandmarkName(String landmarkName) { this.landmarkName = landmarkName; } public void setAddress(String address) { this.address = address; } public void setGeocode(String geocode) { this.geocode = geocode; } public void setDescription(String description) { this.description = description; } public void setDateAdded(Date dateAdded) { this.dateAdded = dateAdded; } }
[ "you@example.com" ]
you@example.com
0ac231f260414a5f1dcb33937ddf5704e8966c1b
26183990a4c6b9f6104e6404ee212239da2d9f62
/components/file_system_server/src/java/tests/com/topcoder/file/transfer/accuracytests/AccuracyTests.java
fa355837d1d98ce50603c4cdf5cb1e53664d3a1d
[]
no_license
topcoder-platform/tc-java-components
34c5798ece342a9f1804daeb5acc3ea4b0e0765b
51b204566eb0df3902624c15f4fb69b5f99dc61b
refs/heads/dev
2023-08-08T22:09:32.765506
2022-02-25T06:23:56
2022-02-25T06:23:56
138,811,944
0
8
null
2022-02-23T21:06:12
2018-06-27T01:10:36
Rich Text Format
UTF-8
Java
false
false
3,591
java
/* * Copyright (C) 2008 TopCoder Inc., All Rights Reserved. */ package com.topcoder.file.transfer.accuracytests; import com.topcoder.file.transfer.accuracytests.message.BytesMessageTypeAccuracyTest; import com.topcoder.file.transfer.accuracytests.message.FileSystemMessageAccuracyTest; import com.topcoder.file.transfer.accuracytests.message.MessageTypeAccuracyTest; import com.topcoder.file.transfer.accuracytests.message.RequestMessageAccuracyTest; import com.topcoder.file.transfer.accuracytests.message.ResponseMessageAccuracyTest; import com.topcoder.file.transfer.accuracytests.persistence.FileAlreadyLockedExceptionAccuracyTest; import com.topcoder.file.transfer.accuracytests.persistence.FileNotYetLockedExceptionAccuracyTest; import com.topcoder.file.transfer.accuracytests.persistence.FileSystemPersistenceAccuracyTest; import com.topcoder.file.transfer.accuracytests.persistence.InputStreamBytesIteratorAccuracyTest; import com.topcoder.file.transfer.accuracytests.persistence.SimpleLockingFileSystemPersistenceAccuracyTest; import com.topcoder.file.transfer.accuracytests.registry.FileSystemXmlRegistryAccuracyTest; import com.topcoder.file.transfer.accuracytests.search.FileIdGroupSearcherAccuracyTest; import com.topcoder.file.transfer.accuracytests.search.RegexFileSearcherAccuracyTest; import com.topcoder.file.transfer.accuracytests.search.RegexGroupSearcherAccuracyTest; import com.topcoder.file.transfer.accuracytests.search.SearchManagerAccuracyTest; import com.topcoder.file.transfer.accuracytests.validator.FreeDiskSpaceNativeCheckerAccuracyTest; import com.topcoder.file.transfer.accuracytests.validator.UploadRequestValidatorAccuracyTest; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * <p> * This test case aggregates all Accuracy test cases. * </p> * @author mayday * @version 1.1 */ public class AccuracyTests extends TestCase { /** * <p> * Aggregates the accuracy tests to a new test suite. * </p> * @return test suite */ public static Test suite() { final TestSuite suite = new TestSuite(); suite.addTestSuite(BytesMessageTypeAccuracyTest.class); suite.addTestSuite(FileSystemMessageAccuracyTest.class); suite.addTestSuite(MessageTypeAccuracyTest.class); suite.addTestSuite(RequestMessageAccuracyTest.class); suite.addTestSuite(ResponseMessageAccuracyTest.class); suite.addTestSuite(FileIdGroupSearcherAccuracyTest.class); suite.addTestSuite(RegexFileSearcherAccuracyTest.class); suite.addTestSuite(RegexGroupSearcherAccuracyTest.class); suite.addTestSuite(SearchManagerAccuracyTest.class); suite.addTestSuite(FileSystemPersistenceAccuracyTest.class); suite.addTestSuite(InputStreamBytesIteratorAccuracyTest.class); suite.addTestSuite(FileSystemXmlRegistryAccuracyTest.class); suite.addTestSuite(FileUploadCheckStatusAccuracyTest.class); suite.addTestSuite(FileSystemHandlerAccuracyTest.class); suite.addTestSuite(FileSystemClientAccuracyTest.class); suite.addTestSuite(UploadRequestValidatorAccuracyTest.class); suite.addTestSuite(FreeDiskSpaceNativeCheckerAccuracyTest.class); suite.addTestSuite(FileAlreadyLockedExceptionAccuracyTest.class); suite.addTestSuite(FileNotYetLockedExceptionAccuracyTest.class); suite.addTestSuite(SimpleLockingFileSystemPersistenceAccuracyTest.class); return suite; } }
[ "pvmagacho@gmail.com" ]
pvmagacho@gmail.com
1749ff5a801009a0ce11025d1449795a88087bd7
a0c680b5f17882de7ca58e1d742e5a1829907ca3
/TxMgmtProj1(Delc-Txmgmt-SpringAOP - Flat & Local)/src/com/nt/dao/BankDAO.java
0d9e0bafa9454d0f1f0d0d9629d4ccc26d4e87cb
[]
no_license
aakulasaikiran/Spring_Ntsp47
ed72cf795a77dfb55e0054b627244a18fbfa776f
0b1a9cfb9e75e465eca8f1c39eb1690caefea91e
refs/heads/master
2020-03-23T15:24:15.955366
2018-07-20T18:39:45
2018-07-20T18:39:45
141,745,936
0
0
null
null
null
null
UTF-8
Java
false
false
139
java
package com.nt.dao; public interface BankDAO { public int withdraw(int srcNo,int amount); public int deposite(int destNo,int amount); }
[ "aakulasaikiran@gmail.com" ]
aakulasaikiran@gmail.com
2cf6305bce986324fd2236bc55ca4e1c25f46e3e
398f7dc8dfeb4729029dd8c9e19917b5dc022427
/src/main/java/com/example/lambdaandtesting/lambda/MyAwesomeLambda.java
d3b08ca82a151af9b0c4a430a0bba309b8f98a00
[]
no_license
nishantverma160380/AWS_LAMBDA_CORRETTO_JAVA_11
abd5fb45533236a75f23375f7868f148ece9eac4
bf0acd3b23241c422dfcb924b522d43cc71b0f42
refs/heads/main
2023-06-07T00:48:13.898715
2020-12-28T03:31:14
2020-12-28T03:31:14
383,112,627
0
0
null
null
null
null
UTF-8
Java
false
false
1,043
java
package com.example.lambdaandtesting.lambda; import com.amazonaws.lambda.thirdparty.com.google.gson.Gson; import com.amazonaws.lambda.thirdparty.com.google.gson.GsonBuilder; import com.amazonaws.services.lambda.runtime.Context; import com.amazonaws.services.lambda.runtime.LambdaLogger; import com.amazonaws.services.lambda.runtime.RequestHandler; import java.util.Map; public class MyAwesomeLambda implements RequestHandler<Map<String,String>, SpaceShip>{ Gson gson = new GsonBuilder().setPrettyPrinting().create(); @Override public SpaceShip handleRequest(Map<String,String> event, Context context) { LambdaLogger logger = context.getLogger(); // log execution details logger.log("ENVIRONMENT VARIABLES: " + gson.toJson(System.getenv())); logger.log("CONTEXT: " + gson.toJson(context)); // process event logger.log("EVENT: " + gson.toJson(event)); logger.log("EVENT TYPE: " + event.getClass().toString()); return new SpaceShip("round", "Mike", 77); } }
[ "mmni@protonmail.com" ]
mmni@protonmail.com
8999f891805d405ca2a83c98de81d8df0371653c
e1b1ce58fb1277b724022933176f0809169682d9
/sources/p000a/p001a/p002a/p011c/p012a/C0099f.java
09ea1d75eac6dfa3e54e954c70522deae9d1ce8b
[]
no_license
MR-116/com.masociete.projet_mobile-1_source_from_JADX
a5949c814f0f77437f74b7111ea9dca17140f2ea
6cd80095cd68cb9392e6e067f26993ab2bf08bb2
refs/heads/master
2020-04-11T15:00:54.967026
2018-12-15T06:33:57
2018-12-15T06:33:57
161,873,466
0
0
null
null
null
null
UTF-8
Java
false
false
551
java
package p000a.p001a.p002a.p011c.p012a; /* renamed from: a.a.a.c.a.f */ final class C0099f extends C0098e { /* renamed from: c */ private int f302c; /* renamed from: d */ private final C0100g f303d; C0099f(int i, int i2, C0100g c0100g) { super(i, i2); this.f303d = c0100g; } /* renamed from: c */ int m576c() { return this.f302c; } /* renamed from: d */ C0100g m577d() { return this.f303d; } /* renamed from: e */ void m578e() { this.f302c++; } }
[ "Entrepreneursmalaysia1@gmail.com" ]
Entrepreneursmalaysia1@gmail.com
ed2ebbe72a07161bde62660dd7e7b8a73ff57eb5
3bc62f2a6d32df436e99507fa315938bc16652b1
/IDEtalk/src/idea/jetbrains/communicator/idea/actions/SelectedUserCanReadMyFiles.java
97915b0acb0b88a586d99f8f5ea1bcbd24d211dd
[ "Apache-2.0" ]
permissive
JetBrains/intellij-obsolete-plugins
7abf3f10603e7fe42b9982b49171de839870e535
3e388a1f9ae5195dc538df0d3008841c61f11aef
refs/heads/master
2023-09-04T05:22:46.470136
2023-06-11T16:42:37
2023-06-11T16:42:37
184,035,533
19
29
Apache-2.0
2023-07-30T14:23:05
2019-04-29T08:54:54
Java
UTF-8
Java
false
false
1,478
java
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package jetbrains.communicator.idea.actions; import com.intellij.openapi.actionSystem.AnActionEvent; import com.intellij.openapi.actionSystem.ToggleAction; import jetbrains.communicator.commands.ToggleFileAccessCommand; import jetbrains.communicator.core.Pico; import org.jetbrains.annotations.NotNull; /** * @author Kir */ public class SelectedUserCanReadMyFiles extends ToggleAction { public SelectedUserCanReadMyFiles() { } @Override public boolean isSelected(@NotNull AnActionEvent anActionEvent) { ToggleFileAccessCommand command = getCommand(anActionEvent); return command != null && command.isSelected(); } @Override public void setSelected(@NotNull AnActionEvent anActionEvent, boolean b) { getCommand(anActionEvent).execute(); } @Override public void update(@NotNull AnActionEvent e) { super.update(e); if (e.getProject() == null) { e.getPresentation().setEnabled(false); return; } ToggleFileAccessCommand command = getCommand(e); boolean enabled = command.isEnabled(); e.getPresentation().setEnabled(enabled); e.getPresentation().setText(command.getText()); } private static ToggleFileAccessCommand getCommand(AnActionEvent e) { return Pico.getCommandManager().getCommand(ToggleFileAccessCommand.class, BaseAction.getContainer(e)); } }
[ "dmitriy.smirnov@jetbrains.com" ]
dmitriy.smirnov@jetbrains.com
12aee906dea0699e8e2f418820b4bcff516091e5
7396a56d1f6c61b81355fc6cb034491b97feb785
/lang_interface/java/com/intel/daal/algorithms/multi_class_classifier/quality_metric_set/QualityMetricId.java
97ad6aa2673e89d02188bfa751d91a1d88bd6281
[ "Apache-2.0", "Intel" ]
permissive
francktcheng/daal
0ad1703be1e628a5e761ae41d2d9f8c0dde7c0bc
875ddcc8e055d1dd7e5ea51e7c1b39886f9c7b79
refs/heads/master
2018-10-01T06:08:39.904147
2017-09-20T22:37:02
2017-09-20T22:37:02
119,408,979
0
0
null
2018-01-29T16:29:51
2018-01-29T16:29:51
null
UTF-8
Java
false
false
3,274
java
/* file: QualityMetricId.java */ /******************************************************************************* * Copyright 2014-2017 Intel Corporation * All Rights Reserved. * * If this software was obtained under the Intel Simplified Software License, * the following terms apply: * * The source code, information and material ("Material") contained herein is * owned by Intel Corporation or its suppliers or licensors, and title to such * Material remains with Intel Corporation or its suppliers or licensors. The * Material contains proprietary information of Intel or its suppliers and * licensors. The Material is protected by worldwide copyright laws and treaty * provisions. No part of the Material may be used, copied, reproduced, * modified, published, uploaded, posted, transmitted, distributed or disclosed * in any way without Intel's prior express written permission. No license under * any patent, copyright or other intellectual property rights in the Material * is granted to or conferred upon you, either expressly, by implication, * inducement, estoppel or otherwise. Any license under such intellectual * property rights must be express and approved by Intel in writing. * * Unless otherwise agreed by Intel in writing, you may not remove or alter this * notice or any other notice embedded in Materials by Intel or Intel's * suppliers or licensors in any way. * * * If this software was obtained under the Apache License, Version 2.0 (the * "License"), the following terms apply: * * 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. *******************************************************************************/ /** * @ingroup multi_class_classifier_quality_metric_set * @{ */ package com.intel.daal.algorithms.multi_class_classifier.quality_metric_set; /** * <a name="DAAL-CLASS-ALGORITHMS__MULTI_CLASS_CLASSIFIER__QUALITY_METRIC_SET__QUALITYMETRICID"></a> * @brief Available identifiers of the quality metrics available for the model trained with the multi-class SVM algorithm */ public final class QualityMetricId { private int _value; /** * Constructs the quality metrics object identifier using the provided value * @param value Value corresponding to the quality metrics object identifier */ public QualityMetricId(int value) { _value = value; } /** * Returns the value corresponding to the quality metrics object identifier * @return Value corresponding to the quality metrics object identifier */ public int getValue() { return _value; } private static final int ConfusionMatrix = 0; public static final QualityMetricId confusionMatrix = new QualityMetricId(ConfusionMatrix); /*!< Confusion matrix */ } /** @} */
[ "vasily.rubtsov@intel.com" ]
vasily.rubtsov@intel.com
99d77fa0507a6423b5fff97e9abb88f044cb3094
042342f9dc0e8662a1a7da671ab5dc9d82ccd835
/esb/org.wso2.developerstudio.eclipse.gmf.esb/src/org/wso2/developerstudio/eclipse/gmf/esb/RuleFactValueType.java
55c96aa0e64ac79776641d843916f04743b63822
[ "Apache-2.0" ]
permissive
ksdperera/developer-studio
6fe6d50a66e4fb73de3a4dbeef8d68b461da1ab6
9c0f601b91cc34dda036c660598a93c232260e08
refs/heads/developer-studio-3.8.0
2021-01-15T08:50:21.571267
2018-10-26T12:59:17
2018-10-26T12:59:17
39,486,894
0
1
Apache-2.0
2018-10-26T12:59:18
2015-07-22T05:13:13
Java
UTF-8
Java
false
false
6,043
java
/** * <copyright> * </copyright> * * $Id$ */ package org.wso2.developerstudio.eclipse.gmf.esb; import java.util.Arrays; import java.util.Collections; import java.util.List; import org.eclipse.emf.common.util.Enumerator; /** * <!-- begin-user-doc --> * A representation of the literals of the enumeration '<em><b>Rule Fact Value Type</b></em>', * and utility methods for working with them. * <!-- end-user-doc --> * @see org.wso2.developerstudio.eclipse.gmf.esb.EsbPackage#getRuleFactValueType() * @model * @generated */ public enum RuleFactValueType implements Enumerator { /** * The '<em><b>NONE</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #NONE_VALUE * @generated * @ordered */ NONE(0, "NONE", "NONE"), /** * The '<em><b>LITERAL</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #LITERAL_VALUE * @generated * @ordered */ LITERAL(1, "LITERAL", "LITERAL"), /** * The '<em><b>EXPRESSION</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #EXPRESSION_VALUE * @generated * @ordered */ EXPRESSION(2, "EXPRESSION", "EXPRESSION"), /** * The '<em><b>REGISTRY REFERENCE</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #REGISTRY_REFERENCE_VALUE * @generated * @ordered */ REGISTRY_REFERENCE(3, "REGISTRY_REFERENCE", "REGISTRY_REFERENCE"); /** * The '<em><b>NONE</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>NONE</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #NONE * @model * @generated * @ordered */ public static final int NONE_VALUE = 0; /** * The '<em><b>LITERAL</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>LITERAL</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #LITERAL * @model * @generated * @ordered */ public static final int LITERAL_VALUE = 1; /** * The '<em><b>EXPRESSION</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>EXPRESSION</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #EXPRESSION * @model * @generated * @ordered */ public static final int EXPRESSION_VALUE = 2; /** * The '<em><b>REGISTRY REFERENCE</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>REGISTRY REFERENCE</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #REGISTRY_REFERENCE * @model * @generated * @ordered */ public static final int REGISTRY_REFERENCE_VALUE = 3; /** * An array of all the '<em><b>Rule Fact Value Type</b></em>' enumerators. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private static final RuleFactValueType[] VALUES_ARRAY = new RuleFactValueType[] { NONE, LITERAL, EXPRESSION, REGISTRY_REFERENCE, }; /** * A public read-only list of all the '<em><b>Rule Fact Value Type</b></em>' enumerators. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final List<RuleFactValueType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the '<em><b>Rule Fact Value Type</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static RuleFactValueType get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { RuleFactValueType result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; } /** * Returns the '<em><b>Rule Fact Value Type</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static RuleFactValueType getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { RuleFactValueType result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; } /** * Returns the '<em><b>Rule Fact Value Type</b></em>' literal with the specified integer value. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static RuleFactValueType get(int value) { switch (value) { case NONE_VALUE: return NONE; case LITERAL_VALUE: return LITERAL; case EXPRESSION_VALUE: return EXPRESSION; case REGISTRY_REFERENCE_VALUE: return REGISTRY_REFERENCE; } return null; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private final int value; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private final String name; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private final String literal; /** * Only this class can construct instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private RuleFactValueType(int value, String name, String literal) { this.value = value; this.name = name; this.literal = literal; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public int getValue() { return value; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getName() { return name; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getLiteral() { return literal; } /** * Returns the literal value of the enumerator, which is its string representation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public String toString() { return literal; } } //RuleFactValueType
[ "harshana@wso2.com" ]
harshana@wso2.com
e7aeed2a30bf0ed4071600324c4b0d7ec11d4c14
3df27b037c878b7d980b5c068d3663682c09b0b3
/src/com/freework/freedbm/dao/jdbcm/map/dto/MapFieldInfo.java
c0d830e4187238cc555d7a35dea4534af55a024c
[]
no_license
shinow/tjec
82fbd67886bc1f60c63af3e6054d1e4c16df2a0d
0b2f4de2eda13acf351dfc04faceea508c9dd4b0
refs/heads/master
2021-09-24T15:45:42.212349
2018-10-11T06:13:55
2018-10-11T06:13:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,638
java
package com.freework.freedbm.dao.jdbcm.map.dto; import com.freework.freedbm.cfg.fieldcfg.FieldInfoEnum; import com.freework.freedbm.cfg.fieldcfg.Like; import com.freework.freedbm.cfg.fieldcfg.WhereOperators; import com.freework.freedbm.cfg.fieldcfg.type.Type; import com.freework.freedbm.dao.jdbcm.JdbcForDTO; import com.freework.base.util.unmodifiableMap.UnmodifiableKeyMap; public class MapFieldInfo implements JdbcForDTO,FieldInfoEnum { private static final long serialVersionUID = -109829329369074814L; private int order=0; private String name; private String colName; @Override public Object clone() { return new MapFieldInfo(order, colName, colName, type, isDbCol, isDbCol, like, colName); } private String comments; private Type type; private boolean isDbCol; private boolean iskey; private Object defVal=null; private WhereOperators like; public MapFieldInfo(int order, String name, String colName, Type type, boolean isDbCol, boolean iskey, WhereOperators like,String comments) { super(); this.order = order; this.name = name; this.colName = colName; this.comments = comments; this.type = type; this.isDbCol = isDbCol; this.iskey = iskey; this.like = like; } public WhereOperators getLike() { return like; } public void setLike(WhereOperators like) { this.like = like; } public boolean isKey() { return iskey; } public void setIskey(boolean iskey) { this.iskey = iskey; } public String getName() { return name; } public Type getType() { return type; } public String getColName() { return colName; } public void setColName(String colName) { this.colName = colName; } public String getComments() { return comments; } public void setComments(String comments) { this.comments = comments; } public boolean isDbCol() { return isDbCol; } public void setDbCol(boolean isDbCol) { this.isDbCol = isDbCol; } public void setName(String name) { this.name = name; } public void setType(Type type) { this.type = type; } public Object getValue(Object obj) { return ((UnmodifiableKeyMap)obj).getIndex(order); } public void setValue(Object obj, Object Value) { ((UnmodifiableKeyMap)obj).putIndex(order, Value); } public int getOrder() { return order; } public void setOrder(int order) { this.order = order; } public JdbcForDTO getFieldInfo() { return this; } public String name() { return name; } public int ordinal() { return order; } public Object getDefVal() { return defVal; } public void setDefVal(Object defVal) { this.defVal = defVal; } }
[ "lin521lh" ]
lin521lh
d8c6c9745427b0b495d23f393bffcaffb63f68fd
9b6e669381193a97728001e9de0ccdc15ff4d892
/app/src/main/java/com/yksj/healthtalk/entity/ConsultationServiceEntity.java
529dc6b38c943f4142e027fe82edf2e460120013
[]
no_license
13525846841/ConSonP
94d0e14a67a0930ac65aacfae668ab6820287650
2a469de7b0e8c7547cbff23b88e0e036683a3bc6
refs/heads/master
2020-05-22T07:26:40.576191
2019-06-05T09:56:35
2019-06-05T09:56:35
186,260,855
1
0
null
null
null
null
UTF-8
Java
false
false
4,809
java
/** * */ package com.yksj.healthtalk.entity; /** * @author zheng * */ public class ConsultationServiceEntity { private String consultationId;//会诊id private String consultationCenterId;//CONSULTATION_CENTER_ID六一健康id private String expertId;//EXPERT_ID private String customerNickName; private String consultationName; private String ConsultationState; private String ExpertName; private String applytime; private String SExpertHeader; private String BExpertHeader; private String serviceStatusName;//SERVICE_STATUS_NAME //列表项前标记 private String serviceOperation;//SERVICE_OPERATION //列表项后标记 private String consultationCentent; private String isTalk;//完成后是否能聊天 private String createDoctorIdName;//医生姓名 private String createDoctorId;//医生Id private String patientName;//患者姓名 private String patientId;//患者Id public String getIsTalk() { return isTalk; } public void setIsTalk(String isTalk) { this.isTalk = isTalk; } public String getConsultationId() { return consultationId; } public void setConsultationId(String consultationId) { this.consultationId = consultationId; } public String getConsultationCenterId() { return consultationCenterId; } public void setConsultationCenterId(String consultationCenterId) { this.consultationCenterId = consultationCenterId; } public String getExpertId() { return expertId; } public void setExpertId(String expertId) { this.expertId = expertId; } public String getConsultationName() { return consultationName; } public void setConsultationName(String consultationName) { this.consultationName = consultationName; } public String getConsultationState() { return ConsultationState; } public void setConsultationState(String consultationState) { ConsultationState = consultationState; } public String getExpertName() { return ExpertName; } public void setExpertName(String expertName) { ExpertName = expertName; } public String getApplytime() { return applytime; } public void setApplytime(String applytime) { this.applytime = applytime; } public String getSExpertHeader() { return SExpertHeader; } public void setSExpertHeader(String sExpertHeader) { SExpertHeader = sExpertHeader; } public String getBExpertHeader() { return BExpertHeader; } public void setBExpertHeader(String bExpertHeader) { BExpertHeader = bExpertHeader; } public String getServiceStatusName() { return serviceStatusName; } public void setServiceStatusName(String serviceStatusName) { this.serviceStatusName = serviceStatusName; } public String getServiceOperation() { return serviceOperation; } public void setServiceOperation(String serviceOperation) { this.serviceOperation = serviceOperation; } public String getConsultationCentent() { return consultationCentent; } public void setConsultationCentent(String consultationCentent) { this.consultationCentent = consultationCentent; } public String getCustomerNickName() { return customerNickName; } public void setCustomerNickName(String customerNickName) { this.customerNickName = customerNickName; } public String getCreateDoctorIdName() { return createDoctorIdName; } public void setCreateDoctorIdName(String createDoctorIdName) { this.createDoctorIdName = createDoctorIdName; } public String getPatientId() { return patientId; } public void setPatientId(String patientId) { this.patientId = patientId; } public String getPatientName() { return patientName; } public void setPatientName(String patientName) { this.patientName = patientName; } public String getCreateDoctorId() { return createDoctorId; } public void setCreateDoctorId(String createDoctorId) { this.createDoctorId = createDoctorId; } @Override public String toString() { return "ConsultationServiceEntity{" + "consultationId='" + consultationId + '\'' + ", consultationCenterId='" + consultationCenterId + '\'' + ", expertId='" + expertId + '\'' + ", customerNickName='" + customerNickName + '\'' + ", consultationName='" + consultationName + '\'' + ", ConsultationState='" + ConsultationState + '\'' + ", ExpertName='" + ExpertName + '\'' + ", applytime='" + applytime + '\'' + ", SExpertHeader='" + SExpertHeader + '\'' + ", BExpertHeader='" + BExpertHeader + '\'' + ", serviceStatusName='" + serviceStatusName + '\'' + ", serviceOperation='" + serviceOperation + '\'' + ", consultationCentent='" + consultationCentent + '\'' + ", isTalk='" + isTalk + '\'' + ", createDoctorIdName='" + createDoctorIdName + '\'' + ", createDoctorId='" + createDoctorId + '\'' + ", patientName='" + patientName + '\'' + ", patientId='" + patientId + '\'' + '}'; } }
[ "2965378806" ]
2965378806
78f95c949150f21fc82da4720659926b5abfc462
28c940ced69bbd154c276bcc79bfbf021c3781fe
/jaxb/src/main/java/com/webcohesion/enunciate/modules/jaxb/api/impl/ExampleImpl.java
0cd86c7a31bac62879e7e1b8b5f689c23967b6cd
[ "Apache-2.0" ]
permissive
davidlewis711/enunciate
57bc5080650d5586eeb944206ec48e5bf8a08d14
c7cd4b23b53ff148db4501919875dda0522f047c
refs/heads/master
2020-07-10T08:33:22.055513
2016-03-07T23:35:00
2016-03-07T23:35:00
53,363,696
0
0
null
2016-03-07T22:25:56
2016-03-07T22:25:56
null
UTF-8
Java
false
false
7,983
java
package com.webcohesion.enunciate.modules.jaxb.api.impl; import com.webcohesion.enunciate.EnunciateException; import com.webcohesion.enunciate.api.datatype.Example; import com.webcohesion.enunciate.javac.decorations.element.ElementUtils; import com.webcohesion.enunciate.metadata.DocumentationExample; import com.webcohesion.enunciate.modules.jaxb.model.Attribute; import com.webcohesion.enunciate.modules.jaxb.model.ComplexTypeDefinition; import com.webcohesion.enunciate.modules.jaxb.model.ElementDeclaration; import com.webcohesion.enunciate.modules.jaxb.model.types.XmlClassType; import com.webcohesion.enunciate.modules.jaxb.model.types.XmlType; import org.w3c.dom.Document; import org.w3c.dom.Element; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import javax.xml.transform.OutputKeys; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerException; import javax.xml.transform.TransformerFactory; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; import java.io.StringWriter; import java.util.LinkedList; /** * @author Ryan Heaton */ public class ExampleImpl implements Example { private final ComplexTypeDefinition typeDefinition; public ExampleImpl(ComplexTypeDefinition typeDefinition) { this.typeDefinition = typeDefinition; } @Override public String getLang() { return "xml"; } @Override public String getBody() { try { DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance(); builderFactory.setNamespaceAware(true); DocumentBuilder domBuilder = builderFactory.newDocumentBuilder(); Document document = domBuilder.newDocument(); String rootName = Character.toLowerCase(this.typeDefinition.getSimpleName().charAt(0)) + "-----"; String rootNamespace = this.typeDefinition.getNamespace(); ElementDeclaration element = typeDefinition.getContext().findElementDeclaration(typeDefinition); if (element != null) { rootName = element.getName(); rootNamespace = element.getNamespace(); } Element rootElement = document.createElementNS(rootNamespace, rootName); document.appendChild(rootElement); build(rootElement, this.typeDefinition, document, new LinkedList<String>()); TransformerFactory transformerFactory = TransformerFactory.newInstance(); Transformer transformer = transformerFactory.newTransformer(); transformer.setOutputProperty(OutputKeys.INDENT, "yes"); transformer.setOutputProperty(OutputKeys.METHOD, "xml"); transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes"); transformer.setOutputProperty(OutputKeys.ENCODING, "utf-8"); transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2"); DOMSource source = new DOMSource(document); StringWriter value = new StringWriter(); transformer.transform(source, new StreamResult(value)); return value.toString(); } catch (ParserConfigurationException e) { throw new EnunciateException(e); } catch (TransformerException e) { throw new EnunciateException(e); } } private String build(Element rootElement, ComplexTypeDefinition type, final Document document, LinkedList<String> context) { if (context.size() > 2) { //don't go deeper than 2 for fear of the OOM (see https://github.com/stoicflame/enunciate/issues/139). return rootElement.getNamespaceURI(); } if (context.contains(type.getQualifiedName().toString())) { return rootElement.getNamespaceURI(); } String defaultNamespace = rootElement.getNamespaceURI(); context.push(type.getQualifiedName().toString()); try { for (Attribute attribute : type.getAttributes()) { if (ElementUtils.findDeprecationMessage(attribute) != null) { continue; } String example = "..."; DocumentationExample documentationExample = attribute.getAnnotation(DocumentationExample.class); if (documentationExample != null) { if (documentationExample.exclude()) { continue; } else if (!"##default".equals(documentationExample.value())) { example = documentationExample.value(); } } rootElement.setAttributeNS(attribute.getNamespace(), attribute.getName(), example); if (attribute.getNamespace() == null) { defaultNamespace = null; } } if (type.getValue() != null) { String example = "..."; DocumentationExample documentationExample = type.getValue().getAnnotation(DocumentationExample.class); if (documentationExample != null) { if (!"##default".equals(documentationExample.value())) { example = documentationExample.value(); } } rootElement.setTextContent(example); } else { for (com.webcohesion.enunciate.modules.jaxb.model.Element element : type.getElements()) { if (ElementUtils.findDeprecationMessage(element) != null) { continue; } Element currentElement = rootElement; if (element.isWrapped()) { Element wrapper = document.createElementNS(element.getWrapperNamespace(), element.getWrapperName()); rootElement.appendChild(wrapper); currentElement = wrapper; if (element.getWrapperNamespace() == null) { defaultNamespace = null; } } for (com.webcohesion.enunciate.modules.jaxb.model.Element choice : element.getChoices()) { Element childElement = document.createElementNS(choice.getNamespace(), choice.getName()); if (choice.getNamespace() == null) { defaultNamespace = null; } XmlType baseType = choice.getXmlType(); if (baseType instanceof XmlClassType && ((XmlClassType) baseType).getTypeDefinition() instanceof ComplexTypeDefinition) { String defaultChildNs = build(childElement, (ComplexTypeDefinition) ((XmlClassType) baseType).getTypeDefinition(), document, context); if (defaultChildNs == null) { defaultNamespace = null; } } else { String example = "..."; DocumentationExample documentationExample = choice.getAnnotation(DocumentationExample.class); if (documentationExample != null) { if (documentationExample.exclude()) { continue; } else if (!"##default".equals(documentationExample.value())) { example = documentationExample.value(); } } childElement.setTextContent(example); } currentElement.appendChild(childElement); } } } XmlType supertype = type.getBaseType(); if (supertype instanceof XmlClassType && ((XmlClassType)supertype).getTypeDefinition() instanceof ComplexTypeDefinition) { String defaultSuperNs = build(rootElement, (ComplexTypeDefinition) ((XmlClassType) supertype).getTypeDefinition(), document, context); if (defaultSuperNs == null) { defaultNamespace = null; } } if (type.getAnyElement() != null && ElementUtils.findDeprecationMessage(type.getAnyElement()) == null) { Element extension1 = document.createElementNS(defaultNamespace, "extension1"); extension1.setTextContent("..."); rootElement.appendChild(extension1); Element extension2 = document.createElementNS(defaultNamespace, "extension2"); extension2.setTextContent("..."); rootElement.appendChild(extension2); } } finally { context.pop(); } return defaultNamespace; } }
[ "ryan@webcohesion.com" ]
ryan@webcohesion.com
32b1238211acfdcea751c4e8b442f3fe38446bb1
63e24adc15dd2155767a477c5026608273d89323
/scm-study/src/main/java/org/xfs/core/business/goods/item/po/ItemPo.java
7b677a99ee4f56b0d1017f0879898da7a7f03627
[]
no_license
shenfengzhusheng/scm
17978a395182a3f164357372c5c44242659bc970
9b04e91d7c2d4dcac55d326b08606482aba2fea9
refs/heads/master
2022-12-21T14:31:37.214723
2018-11-17T03:24:01
2018-11-17T03:24:01
82,155,192
0
0
null
null
null
null
UTF-8
Java
false
false
839
java
package org.xfs.core.business.goods.item.po; public class ItemPo { private Long itemId; private String itemCode; private String itemName; private Boolean status; public Long getItemId() { return itemId; } public void setItemId(Long itemId) { this.itemId = itemId; } public String getItemCode() { return itemCode; } public void setItemCode(String itemCode) { this.itemCode = itemCode == null ? null : itemCode.trim(); } public String getItemName() { return itemName; } public void setItemName(String itemName) { this.itemName = itemName == null ? null : itemName.trim(); } public Boolean getStatus() { return status; } public void setStatus(Boolean status) { this.status = status; } }
[ "xixingyingzhongdui@gmail.com" ]
xixingyingzhongdui@gmail.com
d3bc51b5d5d2463ca4f75b7623ade64daff1fdba
e7ee311e20b40c87bf6d23a53a1d7b11fd29d2c3
/src/chosun/ciis/se/rcp/dm/SE_RCP_1320_LDM.java
a17cfee2c331c4b9db228edc2bba9a04f6d9de05
[]
no_license
nosmoon/misdevteam
4e3695ef7bbdcd231bb84d7d8d7df54a23ff0a60
1829d5bd489eb6dd307ca244f0e183a31a1de773
refs/heads/master
2020-04-15T15:57:05.480056
2019-01-10T01:12:01
2019-01-10T01:12:01
164,812,547
1
0
null
null
null
null
UHC
Java
false
false
7,430
java
/*************************************************************************************************** * 파일명 : .java * 기능 : 판매시스템 * 작성일자 : 2009-02-18 * 작성자 : 배창희 ***************************************************************************************************/ /*************************************************************************************************** * 수정내역 : * 수정자 : * 수정일자 : * 백업 : ***************************************************************************************************/ package chosun.ciis.se.rcp.dm; import java.sql.*; import oracle.jdbc.driver.*; import somo.framework.db.*; import somo.framework.util.*; import chosun.ciis.se.rcp.ds.*; import chosun.ciis.se.rcp.rec.*; /** * */ public class SE_RCP_1320_LDM extends somo.framework.db.BaseDM implements java.io.Serializable{ public String cmpy_cd; public String area_cd; public String occr_dt; public String slip_clsf; public String seq; public String rcpm_dt; public String incmg_pers; public SE_RCP_1320_LDM(){} public SE_RCP_1320_LDM(String cmpy_cd, String area_cd, String occr_dt, String slip_clsf, String seq, String rcpm_dt, String incmg_pers){ this.cmpy_cd = cmpy_cd; this.area_cd = area_cd; this.occr_dt = occr_dt; this.slip_clsf = slip_clsf; this.seq = seq; this.rcpm_dt = rcpm_dt; this.incmg_pers = incmg_pers; } public void setCmpy_cd(String cmpy_cd){ this.cmpy_cd = cmpy_cd; } public void setArea_cd(String area_cd){ this.area_cd = area_cd; } public void setOccr_dt(String occr_dt){ this.occr_dt = occr_dt; } public void setSlip_clsf(String slip_clsf){ this.slip_clsf = slip_clsf; } public void setSeq(String seq){ this.seq = seq; } public void setRcpm_dt(String rcpm_dt){ this.rcpm_dt = rcpm_dt; } public void setIncmg_pers(String incmg_pers){ this.incmg_pers = incmg_pers; } public String getCmpy_cd(){ return this.cmpy_cd; } public String getArea_cd(){ return this.area_cd; } public String getOccr_dt(){ return this.occr_dt; } public String getSlip_clsf(){ return this.slip_clsf; } public String getSeq(){ return this.seq; } public String getRcpm_dt(){ return this.rcpm_dt; } public String getIncmg_pers(){ return this.incmg_pers; } public String getSQL(){ return "{ call CRMSAL_COM.SP_SE_RCP_1320_L(? ,? ,? ,? ,? ,? ,? ,? ,? ,?) }"; } public void setParams(CallableStatement cstmt, BaseDM bdm) throws SQLException{ SE_RCP_1320_LDM dm = (SE_RCP_1320_LDM)bdm; cstmt.registerOutParameter(1, Types.VARCHAR); cstmt.registerOutParameter(2, Types.VARCHAR); cstmt.setString(3, dm.cmpy_cd); cstmt.setString(4, dm.area_cd); cstmt.setString(5, dm.occr_dt); cstmt.setString(6, dm.slip_clsf); cstmt.setString(7, dm.seq); cstmt.setString(8, dm.rcpm_dt); cstmt.setString(9, dm.incmg_pers); cstmt.registerOutParameter(10, OracleTypes.CURSOR); } public BaseDataSet createDataSetObject(){ return new chosun.ciis.se.rcp.ds.SE_RCP_1320_LDataSet(); } public void print(){ System.out.println("cmpy_cd = " + getCmpy_cd()); System.out.println("area_cd = " + getArea_cd()); System.out.println("occr_dt = " + getOccr_dt()); System.out.println("slip_clsf = " + getSlip_clsf()); System.out.println("seq = " + getSeq()); System.out.println("rcpm_dt = " + getRcpm_dt()); System.out.println("incmg_pers = " + getIncmg_pers()); } } /*---------------------------------------------------------------------------------------------------- Web Tier에서 req.getParameter() 처리 및 결과확인 검사시 사용하십시오. String cmpy_cd = req.getParameter("cmpy_cd"); if( cmpy_cd == null){ System.out.println(this.toString+" : cmpy_cd is null" ); }else{ System.out.println(this.toString+" : cmpy_cd is "+cmpy_cd ); } String area_cd = req.getParameter("area_cd"); if( area_cd == null){ System.out.println(this.toString+" : area_cd is null" ); }else{ System.out.println(this.toString+" : area_cd is "+area_cd ); } String occr_dt = req.getParameter("occr_dt"); if( occr_dt == null){ System.out.println(this.toString+" : occr_dt is null" ); }else{ System.out.println(this.toString+" : occr_dt is "+occr_dt ); } String slip_clsf = req.getParameter("slip_clsf"); if( slip_clsf == null){ System.out.println(this.toString+" : slip_clsf is null" ); }else{ System.out.println(this.toString+" : slip_clsf is "+slip_clsf ); } String seq = req.getParameter("seq"); if( seq == null){ System.out.println(this.toString+" : seq is null" ); }else{ System.out.println(this.toString+" : seq is "+seq ); } String rcpm_dt = req.getParameter("rcpm_dt"); if( rcpm_dt == null){ System.out.println(this.toString+" : rcpm_dt is null" ); }else{ System.out.println(this.toString+" : rcpm_dt is "+rcpm_dt ); } String incmg_pers = req.getParameter("incmg_pers"); if( incmg_pers == null){ System.out.println(this.toString+" : incmg_pers is null" ); }else{ System.out.println(this.toString+" : incmg_pers is "+incmg_pers ); } ----------------------------------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------------------------------- Web Tier에서 req.getParameter() 처리시 사용하십시오. String cmpy_cd = Util.checkString(req.getParameter("cmpy_cd")); String area_cd = Util.checkString(req.getParameter("area_cd")); String occr_dt = Util.checkString(req.getParameter("occr_dt")); String slip_clsf = Util.checkString(req.getParameter("slip_clsf")); String seq = Util.checkString(req.getParameter("seq")); String rcpm_dt = Util.checkString(req.getParameter("rcpm_dt")); String incmg_pers = Util.checkString(req.getParameter("incmg_pers")); ----------------------------------------------------------------------------------------------------*//*---------------------------------------------------------------------------------------------------- Web Tier에서 한글처리와 동시에 req.getParameter() 처리시 사용하십시오. String cmpy_cd = Util.Uni2Ksc(Util.checkString(req.getParameter("cmpy_cd"))); String area_cd = Util.Uni2Ksc(Util.checkString(req.getParameter("area_cd"))); String occr_dt = Util.Uni2Ksc(Util.checkString(req.getParameter("occr_dt"))); String slip_clsf = Util.Uni2Ksc(Util.checkString(req.getParameter("slip_clsf"))); String seq = Util.Uni2Ksc(Util.checkString(req.getParameter("seq"))); String rcpm_dt = Util.Uni2Ksc(Util.checkString(req.getParameter("rcpm_dt"))); String incmg_pers = Util.Uni2Ksc(Util.checkString(req.getParameter("incmg_pers"))); ----------------------------------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------------------------------- Web Tier에서 DM 파일의 변수를 설정시 사용하십시오. dm.setCmpy_cd(cmpy_cd); dm.setArea_cd(area_cd); dm.setOccr_dt(occr_dt); dm.setSlip_clsf(slip_clsf); dm.setSeq(seq); dm.setRcpm_dt(rcpm_dt); dm.setIncmg_pers(incmg_pers); ----------------------------------------------------------------------------------------------------*/ /* 작성시간 : Wed Apr 29 13:25:20 KST 2009 */
[ "DLCOM000@172.16.30.11" ]
DLCOM000@172.16.30.11
239d6e11496c2f63b83a81d11b2c083b7df31b37
ffaf34f67a9964b0e6d25675d9a76edc122bd574
/basic-common/src/main/java/com/ybk/sms/ipyy/resp/SendResult.java
2cc09632345fe1b92c74874379b769baffbabddc
[]
no_license
hunqian/kjplus
614aad21c1fc5b796fc6f3f8f0f05f0b7306c1de
0595c513e34960165c7ad324496548994e62443a
refs/heads/master
2022-12-21T03:34:28.869590
2019-09-04T06:43:22
2019-09-04T06:43:22
206,249,733
0
0
null
2022-12-16T02:30:07
2019-09-04T06:39:49
JavaScript
UTF-8
Java
false
false
1,325
java
package com.ybk.sms.ipyy.resp; import javax.xml.bind.annotation.XmlRootElement; //调用返回结果 @XmlRootElement(name="returnsms") public class SendResult { private String returnstatus; private String message; private String taskID; private String successCounts; private Double remainpoint; public SendResult() { } public SendResult(String returnstatus, String message, String taskID, String successCounts, Double remainpoint) { super(); this.returnstatus = returnstatus; this.message = message; this.taskID = taskID; this.successCounts = successCounts; this.remainpoint = remainpoint; } public String getReturnstatus() { return returnstatus; } public void setReturnstatus(String returnstatus) { this.returnstatus = returnstatus; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } public String getTaskID() { return taskID; } public void setTaskID(String taskID) { this.taskID = taskID; } public String getSuccessCounts() { return successCounts; } public void setSuccessCounts(String successCounts) { this.successCounts = successCounts; } public Double getRemainpoint() { return remainpoint; } public void setRemainpoint(Double remainpoint) { this.remainpoint = remainpoint; } }
[ "yuebin.song@apicloud.com" ]
yuebin.song@apicloud.com
39c1819f9f85c30fd2d349e773933fee8f7d030c
1c639ba032eb85076f93531e47b7ba099ba369a4
/src/main/java/com/example/auth/SwaggerConfig.java
3093102e8776abc6734b91d30e2b44c51f2fe521
[]
no_license
basriumar12/AuthJwtWithSpringboot
6f792f0927dafa97fa7024ae94e4df202f5b46b1
af6ea8f4de2633901b30f29be76a9b6087eec654
refs/heads/master
2021-04-01T09:47:34.736746
2020-03-18T08:43:39
2020-03-18T08:43:39
248,179,304
0
0
null
null
null
null
UTF-8
Java
false
false
1,682
java
package com.example.auth; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import com.google.common.base.Predicate; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders.PathSelectors; import springfox.documentation.builders.RequestHandlerSelectors; import springfox.documentation.service.ApiInfo; import springfox.documentation.service.Contact; import springfox.documentation.spi.DocumentationType; import springfox.documentation.spring.web.plugins.Docket; import springfox.documentation.swagger2.annotations.EnableSwagger2; import static com.google.common.base.Predicates.not; @Configuration @EnableSwagger2 public class SwaggerConfig { @Bean public Docket api() { return new Docket(DocumentationType.SWAGGER_2) .apiInfo(apiInfo()) .select() .apis(RequestHandlerSelectors.any()) .paths(exceptErrorPaths()) .build(); } private Predicate<String> exceptErrorPaths() { return not(PathSelectors.regex("/error")); } private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("Crud Springboot") .description("Crud Doang") .termsOfServiceUrl("") .licenseUrl("github.com/nashihu") .contact(new Contact("Basri Umar", "", "basriumar12@gmail.com")) .license("cool sangat") .version("0.0.1") .build(); } }
[ "basriumar12@gmail.com" ]
basriumar12@gmail.com
7bef9640000b0683f095094bbeb4b264923b78e0
737b0fc040333ec26f50409fc16372f5c64c7df6
/bus-image/src/main/java/org/aoju/bus/image/galaxy/io/RAFInputStreamAdapter.java
9b845964476e1f17d8f4dc09489335a1901c9db3
[ "MIT" ]
permissive
sfg11/bus
1714cdc6c77f0042e3b80f32e1d9b7483c154e3e
d560ba4d3abd2e0a6c5dfda9faf7075da8e8d73e
refs/heads/master
2022-12-13T02:26:18.533039
2020-08-26T02:23:34
2020-08-26T02:23:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,353
java
/********************************************************************************* * * * The MIT License (MIT) * * * * Copyright (c) 2015-2020 aoju.org and other contributors. * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * * in the Software without restriction, including without limitation the rights * * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * * copies of the Software, and to permit persons to whom the Software is * * furnished to do so, subject to the following conditions: * * * * The above copyright notice and this permission notice shall be included in * * all copies or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * * THE SOFTWARE. * ********************************************************************************/ package org.aoju.bus.image.galaxy.io; import java.io.IOException; import java.io.InputStream; import java.io.RandomAccessFile; /** * @author Kimi Liu * @version 6.0.8 * @since JDK 1.8+ */ public class RAFInputStreamAdapter extends InputStream { private final RandomAccessFile raf; private long markedPos; private IOException markException; public RAFInputStreamAdapter(RandomAccessFile raf) { if (raf == null) throw new NullPointerException(); this.raf = raf; } @Override public int read() throws IOException { return raf.read(); } @Override public int read(byte[] b, int off, int len) throws IOException { return raf.read(b, off, len); } @Override public long skip(long n) throws IOException { return raf.skipBytes((int) n); } @Override public synchronized void mark(int readlimit) { try { this.markedPos = raf.getFilePointer(); this.markException = null; } catch (IOException e) { this.markException = e; } } @Override public synchronized void reset() throws IOException { if (markException != null) throw markException; raf.seek(markedPos); } @Override public boolean markSupported() { return true; } }
[ "839536@qq.com" ]
839536@qq.com
2043df373b654cd4be4781f69e1977142cde185d
09d0ddd512472a10bab82c912b66cbb13113fcbf
/TestApplications/TF-BETA-THERMATK-v5.7.1/DecompiledCode/JADX/src/main/java/org/telegram/messenger/C0655-$$Lambda$MessagesController$SnNO4Xza4siBfE3j_QycdBx_L6U.java
2b53a798fa801d291c71c31df718d39209b10106
[]
no_license
sgros/activity_flow_plugin
bde2de3745d95e8097c053795c9e990c829a88f4
9e59f8b3adacf078946990db9c58f4965a5ccb48
refs/heads/master
2020-06-19T02:39:13.865609
2019-07-08T20:17:28
2019-07-08T20:17:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
940
java
package org.telegram.messenger; import java.util.ArrayList; /* compiled from: lambda */ /* renamed from: org.telegram.messenger.-$$Lambda$MessagesController$SnNO4Xza4siBfE3j_QycdBx_L6U */ public final /* synthetic */ class C0655-$$Lambda$MessagesController$SnNO4Xza4siBfE3j_QycdBx_L6U implements Runnable { private final /* synthetic */ MessagesController f$0; private final /* synthetic */ long f$1; private final /* synthetic */ ArrayList f$2; private final /* synthetic */ ArrayList f$3; public /* synthetic */ C0655-$$Lambda$MessagesController$SnNO4Xza4siBfE3j_QycdBx_L6U(MessagesController messagesController, long j, ArrayList arrayList, ArrayList arrayList2) { this.f$0 = messagesController; this.f$1 = j; this.f$2 = arrayList; this.f$3 = arrayList2; } public final void run() { this.f$0.lambda$null$21$MessagesController(this.f$1, this.f$2, this.f$3); } }
[ "crash@home.home.hr" ]
crash@home.home.hr
1c1950e8817b8640357178121f5452b0f27c3e3d
c9ae5bbaf082abe43738a7f17ffab43309327977
/Source/FA-GameServer/data/scripts/system/handlers/quest/altgard/_2020KeepingtheBlackClawTribeinCheck.java
9633a156454e2423f336823aefa108c672f487d8
[]
no_license
Ace65/emu-santiago
2071f50e83e3e4075b247e4265c15d032fc13789
ddb2a59abd9881ec95c58149c8bf27f313e3051c
refs/heads/master
2021-01-13T00:43:18.239492
2012-02-22T21:14:53
2012-02-22T21:14:53
54,834,822
0
1
null
null
null
null
UTF-8
Java
false
false
3,912
java
/* * This file is part of aion-unique <aion-unique.org>. * * aion-unique 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. * * aion-unique 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 aion-unique. If not, see <http://www.gnu.org/licenses/>. */ package quest.altgard; import gameserver.model.gameobjects.Npc; import gameserver.model.gameobjects.player.Player; import gameserver.network.aion.serverpackets.SM_DIALOG_WINDOW; import gameserver.quest.handlers.QuestHandler; import gameserver.quest.model.QuestCookie; import gameserver.quest.model.QuestState; import gameserver.quest.model.QuestStatus; import gameserver.services.QuestService; import gameserver.utils.PacketSendUtility; /** * @author Mr. Poke * */ public class _2020KeepingtheBlackClawTribeinCheck extends QuestHandler { private final static int questId = 2020; public _2020KeepingtheBlackClawTribeinCheck() { super(questId); } @Override public void register() { qe.addQuestLvlUp(questId); qe.setNpcQuestData(203665).addOnTalkEvent(questId); qe.setNpcQuestData(203668).addOnTalkEvent(questId); qe.setNpcQuestData(210562).addOnKillEvent(questId); } @Override public boolean onDialogEvent(QuestCookie env) { final Player player = env.getPlayer(); final QuestState qs = player.getQuestStateList().getQuestState(questId); if(qs == null) return false; final int var = qs.getQuestVarById(0); int targetId = 0; if(env.getVisibleObject() instanceof Npc) targetId = ((Npc) env.getVisibleObject()).getNpcId(); if(qs.getStatus() == QuestStatus.START) { switch (targetId) { case 203665: switch(env.getDialogId()) { case 26: if(var == 0) return sendQuestDialog(env, 1011); break; case 10000: if (var == 0) { qs.setQuestVarById(0, var+1); updateQuestStatus(env); PacketSendUtility.sendPacket(player, new SM_DIALOG_WINDOW(env.getVisibleObject().getObjectId(), 10)); return true; } } break; case 203668: switch(env.getDialogId()) { case 26: if(var == 1) return sendQuestDialog(env, 1352); else if(var == 5) return sendQuestDialog(env, 1693); else if(var == 6) return sendQuestDialog(env, 2034); break; case 10001: case 10002: if (var == 1 || var== 5) { qs.setQuestVarById(0, var+1); updateQuestStatus(env); PacketSendUtility.sendPacket(player, new SM_DIALOG_WINDOW(env.getVisibleObject().getObjectId(), 10)); return true; } case 34: if (var == 6) { if(QuestService.collectItemCheck(env, true)) { qs.setStatus(QuestStatus.REWARD); updateQuestStatus(env); return sendQuestDialog(env, 5); } else return sendQuestDialog(env, 2120); } } } } else if(qs.getStatus() == QuestStatus.REWARD) { if(targetId == 203668) return defaultQuestEndDialog(env); } return false; } @Override public boolean onKillEvent(QuestCookie env) { if(defaultQuestOnKillEvent(env, 210562, 2, 5)) return true; else return false; } @Override public boolean onLvlUpEvent(QuestCookie env) { return defaultQuestOnLvlUpEvent(env); } }
[ "mixerdj.carlos@gmail.com" ]
mixerdj.carlos@gmail.com
c6403602b7d657e019c89f8dd66e07d3c5774a5f
011ac2359247395b35f09b4f121e91f2d48e5876
/springcloud-alibaba-bus-rocketmq/springcloud-alibaba-bus-rocketmq-demo-listener/src/main/java/springcloud/alibaba/bus/rocketmq/demo/listener/SpringCloudAlibabaBusListenerApplication.java
e3d16656828785e0fb46420c69bc4ba778c843cb
[]
no_license
lhj502819/SpringBoot-study
aeac104f644afdd31bb46aeaa4e61b311ba229bd
5772d885fa0a6bffbb27fab4871973190b0df2ab
refs/heads/master
2022-11-20T09:36:53.120541
2020-07-23T02:30:03
2020-07-23T02:30:03
272,590,395
1
0
null
null
null
null
UTF-8
Java
false
false
776
java
package springcloud.alibaba.bus.rocketmq.demo.listener; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.bus.jackson.RemoteApplicationEventScan; /** * Description:publisher启动类 * * @author li.hongjian * @email lhj502819@163.com * @Date 2020/6/16 */ @SpringBootApplication @RemoteApplicationEventScan //添加Spring Cloud Bus定义的RemoteApplicationEventScan注解, // 声明要从Spring Cloud Bus监听RemoteApplicationEvent事件 public class SpringCloudAlibabaBusListenerApplication { public static void main(String[] args) { SpringApplication.run(SpringCloudAlibabaBusListenerApplication.class, args); } }
[ "lhj502819@163.com" ]
lhj502819@163.com
7d446e1a4a91730473d21a1ced1bff00565645cc
2fc1e0070e576fd45ae13ed80daad3a4834fc444
/src/main/java/com/cloudera/cdp/datahub/model/RotateAutoTlsCertificatesRequest.java
22aa21b8b886bc8940190ae7e4def0655286f8c1
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
isabella232/cdp-sdk-java
832c47e119e8399a782848c04815612e35acad0d
f6fb9f121065f1c3759a9c3fd777c32ad25ac118
refs/heads/master
2023-01-19T08:18:20.758968
2020-11-24T15:36:52
2020-11-24T15:36:52
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,701
java
/* * Copyright (c) 2018 Cloudera, Inc. All Rights Reserved. * * Portions Copyright (c) Copyright 2013-2018 Amazon.com, Inc. or its * affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.cloudera.cdp.datahub.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; import com.cloudera.cdp.client.CdpResponse; /** * Request object to rotate autotls certificates on datahub&#39;s hosts. **/ @javax.annotation.Generated(value = "com.cloudera.cdp.client.codegen.CdpSDKJavaCodegen", date = "2020-11-24T07:35:51.763-08:00") public class RotateAutoTlsCertificatesRequest { /** * The name or CRN of the datahub. **/ private String datahubName = null; /** * Getter for datahubName. * The name or CRN of the datahub. **/ @JsonProperty("datahubName") public String getDatahubName() { return datahubName; } /** * Setter for datahubName. * The name or CRN of the datahub. **/ public void setDatahubName(String datahubName) { this.datahubName = datahubName; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RotateAutoTlsCertificatesRequest rotateAutoTlsCertificatesRequest = (RotateAutoTlsCertificatesRequest) o; if (!Objects.equals(this.datahubName, rotateAutoTlsCertificatesRequest.datahubName)) { return false; } return true; } @Override public int hashCode() { return Objects.hash(datahubName); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RotateAutoTlsCertificatesRequest {\n"); sb.append(" datahubName: ").append(toIndentedString(datahubName)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line except the first indented by 4 spaces. */ private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
[ "dev-kitchen@cloudera.com" ]
dev-kitchen@cloudera.com
9fdf6e5a7a337de6d18b986a81ace3c3a8f0dda6
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/7/7_9ed8a06fc417c5988f494752f82441440d690a9c/BooksExampleTests/7_9ed8a06fc417c5988f494752f82441440d690a9c_BooksExampleTests_t.java
6517c2bc371f1b7b2515bd1cc778ef2ea443546b
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
3,085
java
/* * JBoss, Home of Professional Open Source * Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors * as indicated by the @authors tag. All rights reserved. * See the copyright.txt in the distribution for a * full listing of individual contributors. * * This copyrighted material is made available to anyone wishing to use, * modify, copy, or redistribute it subject to the terms and conditions * of the GNU Lesser General Public License, v. 2.1. * This program is distributed in the hope that it will be useful, but WITHOUT A * 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, * v.2.1 along with this distribution; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ package org.infinispan.query.indexedembedded; import java.util.List; import org.apache.lucene.search.Query; import org.infinispan.config.Configuration; import org.infinispan.manager.EmbeddedCacheManager; import org.infinispan.query.Search; import org.infinispan.query.SearchManager; import org.infinispan.test.SingleCacheManagerTest; import org.infinispan.test.fwk.TestCacheManagerFactory; import org.infinispan.transaction.TransactionMode; import org.testng.annotations.Test; /** * @author Sanne Grinovero <sanne@infinispan.org> (C) 2011 Red Hat Inc. */ @Test(groups = "functional", testName = "query.BooksExampleTests") public class BooksExampleTests extends SingleCacheManagerTest { protected EmbeddedCacheManager createCacheManager() throws Exception { Configuration c = getDefaultStandaloneConfig(true); c.fluent() .transaction() .transactionMode(TransactionMode.TRANSACTIONAL) .indexing() .indexLocalOnly(false) .addProperty("hibernate.search.default.directory_provider", "ram") .addProperty("hibernate.search.lucene_version", "LUCENE_CURRENT"); return TestCacheManagerFactory.createCacheManager(c); } @Test public void searchOnEmptyIndex() { cache.put("1", new Book("Seam in Action", "Dan Allen", "Manning")); cache.put("2", new Book("Hibernate Search in Action", "Emmanuel Bernard and John Griffin", "Manning")); cache.put("3", new Book("Megaprogramming Ruby", "Paolo Perrotta", "The Pragmatic Programmers")); SearchManager qf = Search.getSearchManager(cache); Query query = qf.buildQueryBuilderForClass(Book.class) .get() .phrase() .onField("title") .sentence("in action") .createQuery(); List<Object> list = qf.getQuery(query).list(); assert list.size() == 2; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
2474fda84e589dc7d5d85417089b2ef3d1533b2c
f65d8efd8488c3f26ec272067534453916bb433b
/algorithm-study/src/main/java/org/woodwhale/code/chapter_2_listproblem/Problem_06_JosephusProblem.java
5edc57e202dee65089990b5ea9b345878da0349f
[ "WTFPL" ]
permissive
woodwhales/woodwhales-study
3c63d08e7aff503484905ea857ba389d5ee972d6
d8b95c559d3223b54211418bce78b9d9d41f9b08
refs/heads/master
2023-03-04T16:04:59.516245
2022-08-21T07:16:20
2022-08-21T07:16:20
184,915,908
2
3
WTFPL
2023-03-01T03:42:52
2019-05-04T16:00:32
Java
UTF-8
Java
false
false
2,078
java
package org.woodwhale.code.chapter_2_listproblem; public class Problem_06_JosephusProblem { public static class Node { public int value; public Node next; public Node(int data) { this.value = data; } } public static Node josephusKill1(Node head, int m) { if (head == null || head.next == head || m < 1) { return head; } Node last = head; while (last.next != head) { last = last.next; } int count = 0; while (head != last) { if (++count == m) { last.next = head.next; count = 0; } else { last = last.next; } head = last.next; } return head; } public static Node josephusKill2(Node head, int m) { if (head == null || head.next == head || m < 1) { return head; } Node cur = head.next; int tmp = 1; // tmp -> list size while (cur != head) { tmp++; cur = cur.next; } tmp = getLive(tmp, m); // tmp -> service node position while (--tmp != 0) { head = head.next; } head.next = head; return head; } public static int getLive(int i, int m) { if (i == 1) { return 1; } return (getLive(i - 1, m) + m - 1) % i + 1; } public static void printCircularList(Node head) { if (head == null) { return; } System.out.print("Circular List: " + head.value + " "); Node cur = head.next; while (cur != head) { System.out.print(cur.value + " "); cur = cur.next; } System.out.println("-> " + head.value); } public static void main(String[] args) { Node head1 = new Node(1); head1.next = new Node(2); head1.next.next = new Node(3); head1.next.next.next = new Node(4); head1.next.next.next.next = new Node(5); head1.next.next.next.next.next = head1; printCircularList(head1); head1 = josephusKill1(head1, 3); printCircularList(head1); Node head2 = new Node(1); head2.next = new Node(2); head2.next.next = new Node(3); head2.next.next.next = new Node(4); head2.next.next.next.next = new Node(5); head2.next.next.next.next.next = head2; printCircularList(head2); head2 = josephusKill2(head2, 3); printCircularList(head2); } }
[ "woodwhales@163.com" ]
woodwhales@163.com
a7eacd19c8d392bb62196bac85485249a075409b
b02bdd9811b958fb52554ee906ecc3f99b0da4bb
/app/src/main/java/com/jxkj/fit_5a/base/PatientListData.java
1fe6b105b7fd69266b584610ef928e3c98b0c1ea
[]
no_license
ltg263/5AFit_12
19d29773b9f0152dbc88ccf186b2868af7648039
a7d545ab37a456b42f30eb03d6a6c95efb5b0541
refs/heads/master
2023-07-15T20:46:19.465180
2021-08-17T09:59:57
2021-08-17T09:59:57
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,112
java
package com.jxkj.fit_5a.base; import java.io.Serializable; /** * author : LiuJie * date : 2020/6/1014:24 */ public class PatientListData implements Serializable { /** * id 客户id * portraitUri 头像 * nickname 昵称 * realName 真实姓名 * gender 性别:1,男;2,女 * address 地址 * provinceId 省id * cityId 市id * districtId 区id * conditionName 病情名称 * billingSum 总开单量 */ private String id = "6"; private String portraitUri; private String nickname; private String realName; private int gender; private String address = ""; private String conditionName = ""; private String billingSum; private String age = ""; public String getAge() { return age; } public void setAge(String age) { this.age = age; } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getPortraitUri() { return portraitUri; } public void setPortraitUri(String portraitUri) { this.portraitUri = portraitUri; } public String getNickname() { return nickname; } public void setNickname(String nickname) { this.nickname = nickname; } public String getRealName() { return realName; } public void setRealName(String realName) { this.realName = realName; } public int getGender() { return gender; } public void setGender(int gender) { this.gender = gender; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public String getConditionName() { return conditionName; } public void setConditionName(String conditionName) { this.conditionName = conditionName; } public String getBillingSum() { return billingSum; } public void setBillingSum(String billingSum) { this.billingSum = billingSum; } }
[ "qzj842179561@gmail.com" ]
qzj842179561@gmail.com
e461b7f02a4412e765bbc00ad33e394d4919a930
5a37fcc167c3bc3ac8a49222f2753d968cee5b14
/wegas-core/src/main/java/com/wegas/core/exception/internal/WegasForbiddenException.java
e5c74114214ce9bb58aef0dfad809b5d3c2397e0
[ "MIT" ]
permissive
deepscan/Wegas
5da0bd9940adf6090ae61373362d2efb39cd9f48
0ee6178a166ac5a81cca402e817b13f61f6d6106
refs/heads/master
2020-04-01T14:17:36.226332
2018-10-15T12:45:37
2018-10-15T12:45:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
692
java
/* * Wegas * http://wegas.albasim.ch * * Copyright (c) 2013-2018 School of Business and Engineering Vaud, Comem, MEI * Licensed under the MIT License */ package com.wegas.core.exception.internal; /** * * @author Maxence Laurent <maxence.laurent at gmail.com> */ public class WegasForbiddenException extends WegasInternalException { /** * */ public WegasForbiddenException() { super(); } /** * * @param message */ public WegasForbiddenException(String message) { super(message); } /** * * @param cause */ public WegasForbiddenException(final Throwable cause) { super(cause); } }
[ "maxence.laurent@gmail.com" ]
maxence.laurent@gmail.com
be18a150be117c299efe01f3c93c49769c2b0f21
22b9c697e549de334ac354dfc1d14223eff99121
/PaaS_SaaS_Accelerator_RESTFulFacade/XJC_Beans/src/com/oracle/xmlns/apps/cdm/foundation/parties/personservice/applicationmodule/types/MergePersonProfileAsyncResponse.java
ae0becab824b225fafa8b8f0d217ea949e71402b
[ "BSD-3-Clause" ]
permissive
digideskio/oracle-cloud
50e0d24e937b3afc991ad9cb418aa2bb263a4372
80420e9516290e5d5bfd6c0fa2eaacbc11762ec7
refs/heads/master
2021-01-22T13:57:21.947497
2016-05-13T06:26:16
2016-05-13T06:26:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,127
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 // 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: 2013.10.24 at 02:08:08 PM BST // package com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; import com.oracle.xmlns.apps.cdm.foundation.parties.personservice.PersonProfile; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="result" type="{http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/}PersonProfile"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "result" }) @XmlRootElement(name = "mergePersonProfileAsyncResponse") public class MergePersonProfileAsyncResponse { @XmlElement(required = true) protected PersonProfile result; /** * Gets the value of the result property. * * @return * possible object is * {@link PersonProfile } * */ public PersonProfile getResult() { return result; } /** * Sets the value of the result property. * * @param value * allowed object is * {@link PersonProfile } * */ public void setResult(PersonProfile value) { this.result = value; } }
[ "shailendrapradhan@Shailendras-MacBook-Pro.local" ]
shailendrapradhan@Shailendras-MacBook-Pro.local
dea76919cb9b75f7e2689f52457891b5792a9825
528869210a42be2911ca6e40b9cb5b541153f286
/app/src/main/java/com/thedaycoupon/activity/RemoteService/FavoriteService.java
352c0674b997298304a7c3496091faf615839b79
[]
no_license
qskeksq/AndroidProject_thedaycoupon
43cd354888baa36be64db31aa80f60c6e7c9b1e1
afacc8d81b362fd743a2008b94513df147a46ac4
refs/heads/master
2021-09-03T16:41:32.047205
2018-01-10T14:25:21
2018-01-10T14:25:21
116,833,225
5
1
null
null
null
null
UTF-8
Java
false
false
5,180
java
package com.thedaycoupon.activity.RemoteService; import android.content.Context; import com.thedaycoupon.domain.favorite.Favorite; import com.thedaycoupon.domain.favorite.FavoriteDao; import com.thedaycoupon.domain.favorite.FavoriteInfo; import com.thedaycoupon.domain.tempFavorite.TempFavorite; import com.thedaycoupon.domain.tempFavorite.TempFavoriteDao; import com.thedaycoupon.remote.IRemoteService; import com.thedaycoupon.remote.ServiceGenerator; import com.thedaycoupon.util.Const; import com.thedaycoupon.util.LogUtil; import com.thedaycoupon.util.SignInUtil; import java.util.List; import retrofit2.Call; import retrofit2.Callback; import retrofit2.Response; /** * Created by mac on 2017. 12. 13.. */ public class FavoriteService { private String TAG = getClass().getSimpleName(); private IFavoriteService service; private Context context; private int parentNo; public FavoriteService(IFavoriteService service, Context context) { this.context = context; this.service = service; } /** * 콜백 인터페이스 */ public interface IFavoriteService { void checkUnDeleteLeftOvers(); } /** * 즐겨찾기 정보 DELETE */ public void deleteFavorite(int parentNo) { this.parentNo = parentNo; IRemoteService service = ServiceGenerator.createService(IRemoteService.class); Call<FavoriteInfo> call = service.deleteFavoriteInfo(SignInUtil.getId(context), parentNo); call.enqueue(deleteFavoriteCallback); } Callback<FavoriteInfo> deleteFavoriteCallback = new Callback<FavoriteInfo>() { @Override public void onResponse(Call<FavoriteInfo> call, Response<FavoriteInfo> response) { if (response.isSuccessful()) { postDeleteFavoriteResponse(response.body()); } createTempFavorite(); } @Override public void onFailure(Call<FavoriteInfo> call, Throwable t) { createTempFavorite(); } }; private void postDeleteFavoriteResponse(FavoriteInfo info) { if (info.getRESULT().getCODE().equals(Const.OK)) { deleteLocalFavorite(); return; } createTempFavorite(); } private void deleteLocalFavorite() { FavoriteDao.getInstance(context).delete(parentNo); } private void createTempFavorite() { LogUtil.e(TAG, "deleteFavoriteCallback 서버 오류"); // 1. TempFavorite 테이블로 옮겨준다 TempFavoriteDao.getInstance(context).create(new TempFavorite(parentNo, context)); // 2. 사용자의 눈에서는 사라져야 하니까 Favorite 테이블에서 삭제 FavoriteDao.getInstance(context).delete(parentNo); } /** * 미반영 즐겨찾기 POST */ public void loadLeftOvers(List<Favorite> leftOvers) { IRemoteService service = ServiceGenerator.createService(IRemoteService.class); Call<FavoriteInfo> call = service.insertFavoriteLeftOver(leftOvers); call.enqueue(favoriteInfoCallback); } Callback<FavoriteInfo> favoriteInfoCallback = new Callback<FavoriteInfo>() { @Override public void onResponse(Call<FavoriteInfo> call, Response<FavoriteInfo> response) { if (response.isSuccessful()) { LogUtil.e(TAG, "loadFavorite 성공"); postLoadFavoriteResponse(response.body()); return; } LogUtil.e(TAG, "loadFavorite 서버 오류"); } @Override public void onFailure(Call<FavoriteInfo> call, Throwable t) { LogUtil.e(TAG, "loadFavorite 네트워크 오류"); } }; private void postLoadFavoriteResponse(FavoriteInfo info) { if (info.getRESULT().getCODE().equals(Const.OK)) { FavoriteDao.getInstance(context).updateOnOffServer(1); service.checkUnDeleteLeftOvers(); } } /** * 삭제되지 못한 즐겨찾기 삭제 삭제 */ public void deleteLeftOver(List<TempFavorite> tempFavorite) { IRemoteService service = ServiceGenerator.createService(IRemoteService.class); Call<FavoriteInfo> call = service.deleteFavoriteLeftOvers(tempFavorite); call.enqueue(favoriteInfoCallback2); } Callback<FavoriteInfo> favoriteInfoCallback2 = new Callback<FavoriteInfo>() { @Override public void onResponse(Call<FavoriteInfo> call, Response<FavoriteInfo> response) { if (response.isSuccessful()) { LogUtil.e(TAG, "deleteLeftOver 성공"); postDeleteLeftOverResponse(response.body()); return; } LogUtil.e(TAG, "deleteLeftOver 서버 오류"); } @Override public void onFailure(Call<FavoriteInfo> call, Throwable t) { LogUtil.e("leftover", "deleteLeftOver 네트워크 오류"); } }; private void postDeleteLeftOverResponse(FavoriteInfo info) { if (info.getRESULT().getCODE().equals(Const.OK)) { TempFavoriteDao.getInstance(context).deleteAll(); } } }
[ "qskeksq@gmail.com" ]
qskeksq@gmail.com
19d98af262db5b311919368542a34ad66cfe9c27
8bd4cd295806cb42af7bac6120f376e6a4e4f288
/com/google/android/gms/drive/internal/QueryRequest.java
88311af8719bf41240a20b1f0468c6396ffac2e8
[]
no_license
awestlake87/dapath
74d95d27854bc75b5d26456621d45eae79d5995b
8e83688c9ec6ab9d5b0def17e9dc5b2c6896ea0b
refs/heads/master
2020-03-13T10:40:49.896330
2018-04-26T02:22:12
2018-04-26T02:22:12
131,088,145
0
0
null
null
null
null
UTF-8
Java
false
false
738
java
package com.google.android.gms.drive.internal; import android.os.Parcel; import android.os.Parcelable.Creator; import com.google.android.gms.common.internal.safeparcel.SafeParcelable; import com.google.android.gms.drive.query.Query; public class QueryRequest implements SafeParcelable { public static final Creator<QueryRequest> CREATOR = new at(); final Query JE; final int xM; QueryRequest(int versionCode, Query query) { this.xM = versionCode; this.JE = query; } public QueryRequest(Query query) { this(1, query); } public int describeContents() { return 0; } public void writeToParcel(Parcel dest, int flags) { at.m333a(this, dest, flags); } }
[ "kelixes@gmail.com" ]
kelixes@gmail.com
047df0bd44c6d5fd8e82a57faf79d048ebe1fb61
5d473a369790a6ce6e02788bfa22bc7e6858fa08
/javax/servlet/jsp/tagext/BodyTag.java
ecc26271dcd565dca94bb8403ebf5f43b13a01da
[]
no_license
toby941/tomcat
a187a3d676b7544f7607c364dedbef6d0bfa0821
2e6f458470ef0671905aed3ba2e8c998e0ff33cd
refs/heads/master
2021-01-23T07:21:41.388214
2013-09-14T04:02:38
2013-09-14T04:02:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,559
java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package javax.servlet.jsp.tagext; import javax.servlet.jsp.*; /** * The BodyTag interface extends IterationTag by defining additional * methods that let a tag handler manipulate the content of evaluating its body. * * <p> * It is the responsibility of the tag handler to manipulate the body * content. For example the tag handler may take the body content, * convert it into a String using the bodyContent.getString * method and then use it. Or the tag handler may take the body * content and write it out into its enclosing JspWriter using * the bodyContent.writeOut method. * * <p> A tag handler that implements BodyTag is treated as one that * implements IterationTag, except that the doStartTag method can * return SKIP_BODY, EVAL_BODY_INCLUDE or EVAL_BODY_BUFFERED. * * <p> * If EVAL_BODY_INCLUDE is returned, then evaluation happens * as in IterationTag. * * <p> * If EVAL_BODY_BUFFERED is returned, then a BodyContent object will be * created (by code generated by the JSP compiler) to capture the body * evaluation. * The code generated by the JSP compiler obtains the BodyContent object by * calling the pushBody method of the current pageContext, which * additionally has the effect of saving the previous out value. * The page compiler returns this object by calling the popBody * method of the PageContext class; * the call also restores the value of out. * * <p> * The interface provides one new property with a setter method and one * new action method. * * <p><B>Properties</B> * <p> There is a new property: bodyContent, to contain the BodyContent * object, where the JSP Page implementation object will place the * evaluation (and reevaluation, if appropriate) of the body. The setter * method (setBodyContent) will only be invoked if doStartTag() returns * EVAL_BODY_BUFFERED and the corresponding action element does not have * an empty body. * * <p><B>Methods</B> * <p> In addition to the setter method for the bodyContent property, there * is a new action method: doInitBody(), which is invoked right after * setBodyContent() and before the body evaluation. This method is only * invoked if doStartTag() returns EVAL_BODY_BUFFERED. * * <p><B>Lifecycle</B> * <p> Lifecycle details are described by the transition diagram below. * Exceptions that are thrown during the computation of doStartTag(), * setBodyContent(), doInitBody(), BODY, doAfterBody() interrupt the * execution sequence and are propagated up the stack, unless the * tag handler implements the TryCatchFinally interface; see that * interface for details. * <p> * <IMG src="doc-files/BodyTagProtocol.gif" * alt="Lifecycle Details Transition Diagram for BodyTag"/> * * <p><B>Empty and Non-Empty Action</B> * <p> If the TagLibraryDescriptor file indicates that the action must * always have an empty element body, by an &lt;body-content&gt; entry * of "empty", then the doStartTag() method must return SKIP_BODY. * Otherwise, the doStartTag() method may return SKIP_BODY, * EVAL_BODY_INCLUDE, or EVAL_BODY_BUFFERED. * * <p>Note that which methods are invoked after the doStartTag() depends on * both the return value and on if the custom action element is empty * or not in the JSP page, not how it's declared in the TLD. * * <p> * If SKIP_BODY is returned the body is not evaluated, and doEndTag() is * invoked. * * <p> * If EVAL_BODY_INCLUDE is returned, and the custom action element is not * empty, setBodyContent() is not invoked, * doInitBody() is not invoked, the body is evaluated and * "passed through" to the current out, doAfterBody() is invoked * and then, after zero or more iterations, doEndTag() is invoked. * If the custom action element is empty, only doStart() and * doEndTag() are invoked. * * <p> * If EVAL_BODY_BUFFERED is returned, and the custom action element is not * empty, setBodyContent() is invoked, * doInitBody() is invoked, the body is evaluated, doAfterBody() is * invoked, and then, after zero or more iterations, doEndTag() is invoked. * If the custom action element is empty, only doStart() and doEndTag() * are invoked. */ public interface BodyTag extends IterationTag { /** * Deprecated constant that has the same value as EVAL_BODY_BUFFERED * and EVAL_BODY_AGAIN. This name has been marked as deprecated * to encourage the use of the two different terms, which are much * more descriptive. * * @deprecated As of Java JSP API 1.2, use BodyTag.EVAL_BODY_BUFFERED * or IterationTag.EVAL_BODY_AGAIN. */ @Deprecated @SuppressWarnings("dep-ann") // TCK signature test fails with annotation public final static int EVAL_BODY_TAG = 2; /** * Request the creation of new buffer, a BodyContent on which to * evaluate the body of this tag. * * Returned from doStartTag when it implements BodyTag. * This is an illegal return value for doStartTag when the class * does not implement BodyTag. */ public final static int EVAL_BODY_BUFFERED = 2; /** * Set the bodyContent property. * This method is invoked by the JSP page implementation object at * most once per action invocation. * This method will be invoked before doInitBody. * This method will not be invoked for empty tags or for non-empty * tags whose doStartTag() method returns SKIP_BODY or EVAL_BODY_INCLUDE. * * <p> * When setBodyContent is invoked, the value of the implicit object out * has already been changed in the pageContext object. The BodyContent * object passed will have not data on it but may have been reused * (and cleared) from some previous invocation. * * <p> * The BodyContent object is available and with the appropriate content * until after the invocation of the doEndTag method, at which case it * may be reused. * * @param b the BodyContent * @see #doInitBody * @see #doAfterBody */ void setBodyContent(BodyContent b); /** * Prepare for evaluation of the body. * This method is invoked by the JSP page implementation object * after setBodyContent and before the first time * the body is to be evaluated. * This method will not be invoked for empty tags or for non-empty * tags whose doStartTag() method returns SKIP_BODY or EVAL_BODY_INCLUDE. * * <p> * The JSP container will resynchronize the values of any AT_BEGIN and * NESTED variables (defined by the associated TagExtraInfo or TLD) after * the invocation of doInitBody(). * * @throws JspException if an error occurred while processing this tag * @see #doAfterBody */ void doInitBody() throws JspException; }
[ "toby941@gmail.com" ]
toby941@gmail.com
23c25e3bf9b1cb0746f47efb9ddf6875fae467e8
82e2fa3b1128edc8abd2bd84ecfc01c932831bc0
/jena-arq/src/test/java/org/apache/jena/riot/writer/TestRiotWriterDataset.java
46533e062a599928c896c6578464b3dc823bb0ea
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
apache/jena
b64f6013582f2b5aa38d1c9972d7b14e55686316
fb41e79d97f065b8df9ebbc6c69b3f983b6cde04
refs/heads/main
2023-08-14T15:16:21.086308
2023-08-03T08:34:08
2023-08-03T08:34:08
7,437,073
966
760
Apache-2.0
2023-09-02T09:04:08
2013-01-04T08:00:32
Java
UTF-8
Java
false
false
5,029
java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.riot.writer; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.util.Arrays; import org.apache.jena.atlas.lib.StrUtils; import org.apache.jena.query.Dataset; import org.apache.jena.query.DatasetFactory; import org.apache.jena.riot.*; import org.apache.jena.sparql.util.IsoMatcher; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; @SuppressWarnings("deprecation") @RunWith(Parameterized.class) public class TestRiotWriterDataset extends AbstractWriterTest { @Parameters(name = "{index}: {0}") public static Iterable<Object[]> data() { return Arrays.asList(new Object[][] { { RDFFormat.RDFNULL } , { RDFFormat.TRIG } , { RDFFormat.TRIG_PRETTY } , { RDFFormat.TRIG_BLOCKS } , { RDFFormat.TRIG_FLAT } , { RDFFormat.JSONLD } , { RDFFormat.JSONLD_PRETTY } , { RDFFormat.JSONLD_FLAT } , { RDFFormat.NQUADS} , { RDFFormat.NQUADS_UTF8} , { RDFFormat.NQUADS_ASCII} , { RDFFormat.RDF_PROTO } , { RDFFormat.RDF_PROTO_VALUES } , { RDFFormat.RDF_THRIFT } , { RDFFormat.RDF_THRIFT_VALUES } , { RDFFormat.TRIX } }); } private RDFFormat format; public TestRiotWriterDataset(RDFFormat format) { this.format = format; } private static boolean isJsonLDJava(RDFFormat format) { return Lang.JSONLD.equals(format.getLang()) || Lang.JSONLD10.equals(format.getLang()); } @Test public void writer00() { test("writer-rt-20.trig"); } @Test public void writer01() { test("writer-rt-21.trig"); } @Test public void writer02() { test("writer-rt-22.trig"); } @Test public void writer03() { test("writer-rt-23.trig"); } @Test public void writer04() { test("writer-rt-24.trig"); } @Test public void writer05() { test("writer-rt-25.trig"); } @Test public void writer06() { test("writer-rt-26.trig"); } @Test public void writer07() { test("writer-rt-27.trig"); } @Test public void writer08() { // List across graphs if ( isJsonLDJava(format) ) // Broken for JSON-LD return; test("writer-rt-28.trig"); } @Test public void writer09() { test("writer-rt-29.trig"); } @Test public void writer10() { test("writer-rt-30.trig"); } private void test(String filename) { String displayname = filename.substring(0, filename.lastIndexOf('.')); Dataset ds = readDataset(filename); Lang lang = format.getLang(); WriterDatasetRIOT rs = RDFWriterRegistry.getWriterDatasetFactory(format).create(format); assertEquals(lang, rs.getLang()); ByteArrayOutputStream out = new ByteArrayOutputStream(); RDFDataMgr.write(out, ds, format); if ( lang == Lang.RDFNULL ) return; ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray()); String s = StrUtils.fromUTF8bytes(out.toByteArray()); Dataset ds2 = DatasetFactory.create(); try { RDFDataMgr.read(ds2, in, lang); } catch (RiotException ex) { System.out.println(displayname+" : "+format); System.out.println(s); throw ex; } boolean b = IsoMatcher.isomorphic(ds.asDatasetGraph(), ds2.asDatasetGraph()); if ( ! b ) { System.out.println("Test: "+format.toString()); System.out.println("-- Input"); RDFDataMgr.write(System.out, ds.asDatasetGraph(), Lang.NQUADS ); System.out.println("-- Written"); System.out.println(s); System.out.println(); System.out.println("-- Seen as"); RDFDataMgr.write(System.out, ds2.asDatasetGraph(), Lang.NQUADS ); System.out.println("-------------"); } assertTrue("Datasets are not isomorphic", b); //**** Test ds2 iso ds } }
[ "andy@apache.org" ]
andy@apache.org
bcc8fa7fffe42b6fa37ed9a1664a12cc73756325
2fd9d77d529e9b90fd077d0aa5ed2889525129e3
/DecompiledViberSrc/app/src/main/java/com/facebook/react/fabric/jsi/ComponentRegistry.java
9702e756796d93b98de004d25dce9187f97c1194
[]
no_license
cga2351/code
703f5d49dc3be45eafc4521e931f8d9d270e8a92
4e35fb567d359c252c2feca1e21b3a2a386f2bdb
refs/heads/master
2021-07-08T15:11:06.299852
2021-05-06T13:22:21
2021-05-06T13:22:21
60,314,071
1
3
null
null
null
null
UTF-8
Java
false
false
565
java
package com.facebook.react.fabric.jsi; import com.facebook.jni.HybridData; import com.facebook.proguard.annotations.DoNotStrip; @DoNotStrip public class ComponentRegistry { private final HybridData mHybridData = initHybrid(); static { FabricSoLoader.staticInit(); } @DoNotStrip private static native HybridData initHybrid(); } /* Location: E:\Study\Tools\apktool2_2\dex2jar-0.0.9.15\classes_viber_dex2jar.jar * Qualified Name: com.facebook.react.fabric.jsi.ComponentRegistry * JD-Core Version: 0.6.2 */
[ "yu.liang@navercorp.com" ]
yu.liang@navercorp.com
176e1b80da2127b2e709c2e9445f0d4759963915
8af1164bac943cef64e41bae312223c3c0e38114
/results-java/JetBrains--intellij-community/9f107c83fa1978d800ed6940ecf2eb127f09163d/before/MoveCaretDownWithSelectionAction.java
857590cf30cda85799057f4c4cfdc4863f897361
[]
no_license
fracz/refactor-extractor
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
dd5e82bfcc376e74a99e18c2bf54c95676914272
refs/heads/master
2021-01-19T06:50:08.211003
2018-11-30T13:00:57
2018-11-30T13:00:57
87,353,478
0
0
null
null
null
null
UTF-8
Java
false
false
1,460
java
/* * Copyright 2000-2009 JetBrains s.r.o. * * 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. */ /* * Created by IntelliJ IDEA. * User: max * Date: May 13, 2002 * Time: 9:58:23 PM * To change template for new class use * Code Style | Class Templates options (Tools | IDE Options). */ package com.intellij.openapi.editor.actions; import com.intellij.openapi.actionSystem.DataContext; import com.intellij.openapi.editor.Editor; import com.intellij.openapi.editor.actionSystem.EditorAction; import com.intellij.openapi.editor.actionSystem.EditorActionHandler; public class MoveCaretDownWithSelectionAction extends EditorAction { public MoveCaretDownWithSelectionAction() { super(new Handler()); } private static class Handler extends EditorActionHandler { @Override public void execute(Editor editor, DataContext dataContext) { editor.getCaretModel().moveCaretRelatively(0, 1, true, editor.isColumnMode(), true); } } }
[ "fraczwojciech@gmail.com" ]
fraczwojciech@gmail.com
8cb89c8fc83554dfa5d06981578481ae33c2ad7a
0ae9e5956cc3363eb26e6039f0f45633a552feba
/src/main/java/com/gifisan/nio/component/concurrent/AbstractLinkedList.java
95ee833b7e772a3bc0c2443c52ca35f7129c9dbd
[]
no_license
liuzhenfeng511/NimbleIO
79f242c4ccad59c2265807852f7ed607443ef94d
6953f4a7c3f290fa3d81c160839a248e30b66cf2
refs/heads/master
2021-01-18T00:07:02.730682
2016-08-15T09:26:39
2016-08-15T09:26:39
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,604
java
package com.gifisan.nio.component.concurrent; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.ReentrantLock; import com.gifisan.nio.common.MessageFormatter; public abstract class AbstractLinkedList<T> implements LinkedList<T> { protected int _capability ; private Object[] _array ; private AtomicInteger _size = new AtomicInteger(0); private ReentrantLock _lock = new ReentrantLock(); private AtomicInteger _real_size = new AtomicInteger(); private Condition _notEmpty = _lock.newCondition(); private boolean _locked = false; private int _start ; protected AbstractLinkedList(int capability) { this._capability = capability; this._array = new Object[capability]; } protected AbstractLinkedList() { this(1024 * 8); } public boolean offer(T object) { if (!tryIncrementSize()) { return false; } int _c = getAndIncrementEnd(); _array[_c] = object; _real_size.incrementAndGet(); if (_locked) { final ReentrantLock _lock = this._lock; _lock.lock(); _notEmpty.signal(); _locked = false; _lock.unlock(); } return true; } private boolean tryIncrementSize() { for (;;) { int __size = _size.get(); int _next = __size + 1; if (_next > _capability) { return false; } if (_size.compareAndSet(__size, _next)) return true; } } @SuppressWarnings("unchecked") public T poll() { if (_real_size.get() == 0) { return null; } int index = getAndincrementStart(); Object obj = _array[index]; _size.decrementAndGet(); _real_size.decrementAndGet(); return (T) obj; } @SuppressWarnings("unchecked") public T poll(long timeout) { if (_real_size.get() == 0) { final ReentrantLock _lock = this._lock; _lock.lock(); try { _locked = true; _notEmpty.await(timeout, TimeUnit.MILLISECONDS); } catch (InterruptedException e1) { e1.printStackTrace(); _notEmpty.signal(); } _locked = false; _lock.unlock(); return poll(); } int index = getAndincrementStart(); Object obj = _array[index]; _size.decrementAndGet(); _real_size.decrementAndGet(); return (T) obj; } public int size() { return _size.get(); } protected int getAndincrementStart() { if (_start == _capability) { _start = 0; } return _start++; } protected abstract int getAndIncrementEnd(); public String toString() { return MessageFormatter.format("capability {} , size {}", _capability,_real_size.get()); } }
[ "8738115@qq.com" ]
8738115@qq.com
8c03c8e9122ba5857616ebf72abbbd4d4fa58f0d
228296b0bca9f494b73f26e1cec3aeadb3dc0aea
/src/main/java/net/haesleinhuepf/clijx/advancedmath/GreaterOrEqualConstant.java
3a59bda966cf4f998565d2b2def3e157f8087d33
[ "BSD-3-Clause" ]
permissive
ruthhwj/clij-advanced-filters
c71b15463023eb21786c86b8d42e142980dbc8c5
96b842578302c60e13b35b3f884b0d7bfbc015b4
refs/heads/master
2020-09-08T22:00:18.205781
2019-11-11T21:14:48
2019-11-11T21:14:48
221,254,097
0
0
NOASSERTION
2019-11-12T15:47:12
2019-11-12T15:47:12
null
UTF-8
Java
false
false
1,822
java
package net.haesleinhuepf.clijx.advancedmath; import net.haesleinhuepf.clij.CLIJ; import net.haesleinhuepf.clij.clearcl.ClearCLBuffer; import net.haesleinhuepf.clij.macro.AbstractCLIJPlugin; import net.haesleinhuepf.clij.macro.CLIJMacroPlugin; import net.haesleinhuepf.clij.macro.CLIJOpenCLProcessor; import net.haesleinhuepf.clij.macro.documentation.OffersDocumentation; import org.scijava.plugin.Plugin; import java.util.HashMap; /** * Author: @haesleinhuepf * August 2019 */ @Plugin(type = CLIJMacroPlugin.class, name = "CLIJx_greaterOrEqualConstant") public class GreaterOrEqualConstant extends AbstractCLIJPlugin implements CLIJMacroPlugin, CLIJOpenCLProcessor, OffersDocumentation { @Override public boolean executeCL() { boolean result = greaterOrEqualConstant(clij, (ClearCLBuffer)( args[0]), (ClearCLBuffer)(args[1]), asFloat(args[2])); return result; } public static boolean greaterOrEqualConstant(CLIJ clij, ClearCLBuffer src1, ClearCLBuffer dst, Float scalar) { HashMap<String, Object> parameters = new HashMap<>(); parameters.clear(); parameters.put("src1", src1); parameters.put("scalar", scalar); parameters.put("dst", dst); return clij.execute(GreaterOrEqualConstant.class, "comparison_constants.cl", "greater_or_equal_" + src1.getDimension() + "d", parameters); } @Override public String getParameterHelpText() { return "Image source, Image destination, Number constant"; } @Override public String getDescription() { return "Determines if two images A and B greater or equal pixel wise.\n\nf(a, b) = 1 if a >= b; 0 otherwise. "; } @Override public String getAvailableForDimensions() { return "2D, 3D"; } }
[ "rhaase@mpi-cbg.de" ]
rhaase@mpi-cbg.de