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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
454b50b882c56eb2e3efcb7993d932ab0afa3b3b
|
de7d57ab50624132a581b989040d7073e01811c6
|
/thermalview/src/main/java/com/simple/thermalview/MiViewTextView.java
|
c690c009c1b93678aac9fd96b0aadedd6cac179f
|
[] |
no_license
|
cxydxpx/AndroidSpace
|
bdfc38075e37008fdc3926a8c8e9dacf130f660a
|
c5a3ec4da74083cae4f7d0a02070346e2ecd48fd
|
refs/heads/master
| 2022-06-18T19:38:06.524323
| 2020-05-09T06:02:45
| 2020-05-09T06:02:45
| 262,500,690
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,233
|
java
|
package com.simple.thermalview;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.widget.TextView;
public class MiViewTextView extends TextView {
public static final String TAG = MiViewTextView.class.getSimpleName();
public MiViewTextView(Context context) {
super(context);
}
public MiViewTextView(Context context, AttributeSet attrs) {
super(context, attrs);
}
public MiViewTextView(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
}
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
// Log.i(TAG, MiView3.class.getSimpleName() + " onMeasure: ");
}
@Override
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
super.onLayout(changed, left, top, right, bottom);
// Log.i(TAG, MiView3.class.getSimpleName() + " onLayout: ");
}
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
// Log.i(TAG, MiView3.class.getSimpleName() + " onDraw: ");
}
}
|
[
"cxydxpx@163.com"
] |
cxydxpx@163.com
|
ad0039bd1a171e14e676fd24aca978d7ac3a4202
|
74775d92003c685305790e997ce06c55a42160e3
|
/src/com/gy/widget/Image/CircleImageView.java
|
854515cd52b8f7992dd55ffd70ed529ae9e9ca16
|
[] |
no_license
|
ganyao114/AudioRecorder
|
d5311cae718a6851093962c428b0d2359726cfa6
|
50e19958ebad18f7f30f07e7cdb15a0aeae3d0e9
|
refs/heads/master
| 2021-01-01T05:11:40.109459
| 2016-05-18T15:02:18
| 2016-05-18T15:02:18
| 59,119,752
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,514
|
java
|
package com.gy.widget.Image;
import com.just.AudioRecorder.R;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.BitmapShader;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.RectF;
import android.graphics.Shader;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.util.AttributeSet;
import android.widget.ImageView;
public class CircleImageView extends ImageView {
private static final ScaleType SCALE_TYPE = ScaleType.CENTER_CROP;
private static final Bitmap.Config BITMAP_CONFIG = Bitmap.Config.ARGB_8888;
private static final int COLORDRAWABLE_DIMENSION = 2;
private static final int DEFAULT_BORDER_WIDTH = 0;
private static final int DEFAULT_BORDER_COLOR = Color.BLACK;
private final RectF mDrawableRect = new RectF();
private final RectF mBorderRect = new RectF();
private final Matrix mShaderMatrix = new Matrix();
private final Paint mBitmapPaint = new Paint();
private final Paint mBorderPaint = new Paint();
private int mBorderColor = DEFAULT_BORDER_COLOR;
private int mBorderWidth = DEFAULT_BORDER_WIDTH;
private Bitmap mBitmap;
private BitmapShader mBitmapShader;
private int mBitmapWidth;
private int mBitmapHeight;
private float mDrawableRadius;
private float mBorderRadius;
private boolean mReady;
private boolean mSetupPending;
public CircleImageView(Context context) {
super(context);
init();
}
public CircleImageView(Context context, AttributeSet attrs) {
this(context, attrs, 0);
}
public CircleImageView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.CircleImageView, defStyle, 0);
mBorderWidth = a.getDimensionPixelSize(R.styleable.CircleImageView_border_width, DEFAULT_BORDER_WIDTH);
mBorderColor = a.getColor(R.styleable.CircleImageView_border_color, DEFAULT_BORDER_COLOR);
a.recycle();
init();
}
private void init() {
super.setScaleType(SCALE_TYPE);
mReady = true;
if (mSetupPending) {
setup();
mSetupPending = false;
}
}
@Override
public ScaleType getScaleType() {
return SCALE_TYPE;
}
@Override
public void setScaleType(ScaleType scaleType) {
if (scaleType != SCALE_TYPE) {
throw new IllegalArgumentException(String.format("ScaleType %s not supported.", scaleType));
}
}
@Override
public void setAdjustViewBounds(boolean adjustViewBounds) {
if (adjustViewBounds) {
throw new IllegalArgumentException("adjustViewBounds not supported.");
}
}
@Override
protected void onDraw(Canvas canvas) {
if (getDrawable() == null) {
return;
}
canvas.drawCircle(getWidth() / 2, getHeight() / 2, mDrawableRadius, mBitmapPaint);
if (mBorderWidth != 0) {
canvas.drawCircle(getWidth() / 2, getHeight() / 2, mBorderRadius, mBorderPaint);
}
}
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
setup();
}
public int getBorderColor() {
return mBorderColor;
}
public void setBorderColor(int borderColor) {
if (borderColor == mBorderColor) {
return;
}
mBorderColor = borderColor;
mBorderPaint.setColor(mBorderColor);
invalidate();
}
public int getBorderWidth() {
return mBorderWidth;
}
public void setBorderWidth(int borderWidth) {
if (borderWidth == mBorderWidth) {
return;
}
mBorderWidth = borderWidth;
setup();
}
@Override
public void setImageBitmap(Bitmap bm) {
super.setImageBitmap(bm);
mBitmap = bm;
setup();
}
@Override
public void setImageDrawable(Drawable drawable) {
super.setImageDrawable(drawable);
mBitmap = getBitmapFromDrawable(drawable);
setup();
}
@Override
public void setImageResource(int resId) {
super.setImageResource(resId);
mBitmap = getBitmapFromDrawable(getDrawable());
setup();
}
@Override
public void setImageURI(Uri uri) {
super.setImageURI(uri);
mBitmap = getBitmapFromDrawable(getDrawable());
setup();
}
private Bitmap getBitmapFromDrawable(Drawable drawable) {
if (drawable == null) {
return null;
}
if (drawable instanceof BitmapDrawable) {
return ((BitmapDrawable) drawable).getBitmap();
}
try {
Bitmap bitmap;
if (drawable instanceof ColorDrawable) {
bitmap = Bitmap.createBitmap(COLORDRAWABLE_DIMENSION, COLORDRAWABLE_DIMENSION, BITMAP_CONFIG);
} else {
bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), BITMAP_CONFIG);
}
Canvas canvas = new Canvas(bitmap);
drawable.setBounds(0, 0, canvas.getWidth(), canvas.getHeight());
drawable.draw(canvas);
return bitmap;
} catch (OutOfMemoryError e) {
return null;
}
}
private void setup() {
if (!mReady) {
mSetupPending = true;
return;
}
if (mBitmap == null) {
return;
}
mBitmapShader = new BitmapShader(mBitmap, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP);
mBitmapPaint.setAntiAlias(true);
mBitmapPaint.setShader(mBitmapShader);
mBorderPaint.setStyle(Paint.Style.STROKE);
mBorderPaint.setAntiAlias(true);
mBorderPaint.setColor(mBorderColor);
mBorderPaint.setStrokeWidth(mBorderWidth);
mBitmapHeight = mBitmap.getHeight();
mBitmapWidth = mBitmap.getWidth();
mBorderRect.set(0, 0, getWidth(), getHeight());
mBorderRadius = Math.min((mBorderRect.height() - mBorderWidth) / 2, (mBorderRect.width() - mBorderWidth) / 2);
mDrawableRect.set(mBorderWidth, mBorderWidth, mBorderRect.width() - mBorderWidth, mBorderRect.height() - mBorderWidth);
mDrawableRadius = Math.min(mDrawableRect.height() / 2, mDrawableRect.width() / 2);
updateShaderMatrix();
invalidate();
}
private void updateShaderMatrix() {
float scale;
float dx = 0;
float dy = 0;
mShaderMatrix.set(null);
if (mBitmapWidth * mDrawableRect.height() > mDrawableRect.width() * mBitmapHeight) {
scale = mDrawableRect.height() / (float) mBitmapHeight;
dx = (mDrawableRect.width() - mBitmapWidth * scale) * 0.5f;
} else {
scale = mDrawableRect.width() / (float) mBitmapWidth;
dy = (mDrawableRect.height() - mBitmapHeight * scale) * 0.5f;
}
mShaderMatrix.setScale(scale, scale);
mShaderMatrix.postTranslate((int) (dx + 0.5f) + mBorderWidth, (int) (dy + 0.5f) + mBorderWidth);
mBitmapShader.setLocalMatrix(mShaderMatrix);
}
}
|
[
"939543405@qq.com"
] |
939543405@qq.com
|
028249bebafc71f8039ec174f734cfab23cbe76a
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/large-multiproject/project30/src/test/java/org/gradle/test/performance30_2/Test30_156.java
|
1d9c6117fb126b0d13ed4b5914938ea0847bac78
|
[] |
no_license
|
gradle/performance-comparisons
|
b0d38db37c326e0ce271abebdb3c91769b860799
|
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
|
refs/heads/master
| 2023-08-14T19:24:39.164276
| 2022-11-24T05:18:33
| 2022-11-24T05:18:33
| 80,121,268
| 17
| 15
| null | 2022-09-30T08:04:35
| 2017-01-26T14:25:33
| null |
UTF-8
|
Java
| false
| false
| 292
|
java
|
package org.gradle.test.performance30_2;
import static org.junit.Assert.*;
public class Test30_156 {
private final Production30_156 production = new Production30_156("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
2ee3633220fb1cc520f29240dc39514459253eaa
|
fb70e6d16baecf886869e14eb439fe334954b39e
|
/Lezerkardosjdk/java/sun/text/resources/cldr/ar/FormatData_ar_DZ.java
|
67c9e682cd006661546250988bd3da51db40e425
|
[] |
no_license
|
Savitar97/Prog2
|
ae5dfc46c8fc61974e4c2ddb59ce9e23ab955d23
|
8bc2c19240862218b1b06c4b5abe9081747a54c0
|
refs/heads/master
| 2020-07-25T00:16:11.948303
| 2020-02-29T23:49:42
| 2020-02-29T23:49:42
| 208,092,693
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,875
|
java
|
/*
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* COPYRIGHT AND PERMISSION NOTICE
*
* Copyright (C) 1991-2012 Unicode, Inc. All rights reserved. Distributed under
* the Terms of Use in http://www.unicode.org/copyright.html.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of the Unicode data files and any associated documentation (the "Data
* Files") or Unicode software and any associated documentation (the
* "Software") to deal in the Data Files or Software without restriction,
* including without limitation the rights to use, copy, modify, merge,
* publish, distribute, and/or sell copies of the Data Files or Software, and
* to permit persons to whom the Data Files or Software are furnished to do so,
* provided that (a) the above copyright notice(s) and this permission notice
* appear with all copies of the Data Files or Software, (b) both the above
* copyright notice(s) and this permission notice appear in associated
* documentation, and (c) there is clear notice in each modified Data File or
* in the Software as well as in the documentation associated with the Data
* File(s) or Software that the data or software has been modified.
*
* THE DATA FILES AND SOFTWARE ARE 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 OF
* THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
* INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR
* CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THE DATA FILES OR SOFTWARE.
*
* Except as contained in this notice, the name of a copyright holder shall not
* be used in advertising or otherwise to promote the sale, use or other
* dealings in these Data Files or Software without prior written authorization
* of the copyright holder.
*/
package sun.text.resources.cldr.ar;
import java.util.ListResourceBundle;
public class FormatData_ar_DZ extends ListResourceBundle {
@Override
protected final Object[][] getContents() {
final Object[][] data = new Object[][] {
{ "DatePatterns",
new String[] {
"EEEE\u060c d MMMM\u060c y",
"d MMMM\u060c y",
"yyyy/MM/dd",
"yyyy/M/d",
}
},
{ "DefaultNumberingSystem", "latn" },
};
return data;
}
}
|
[
"atoth1571@gmail.com"
] |
atoth1571@gmail.com
|
0804aefb6686a4c45689f892edd2fa6b1402f349
|
ecce353fc76da452d1b6dcf3d17b81387959d0b9
|
/openMPS/src/main/java/nds/core/operation/ccmtmpl/service/CcmTmplService.java
|
217b195561ea436c76a228edf31132f2085417b3
|
[
"Apache-2.0"
] |
permissive
|
nds1993/OpenMPS
|
531ff9c110d7f1579f0a694a9c7b4a92dbd69043
|
8dc08d4cfe78303863387e8f0029b6e85cdfd020
|
refs/heads/master
| 2020-12-02T19:49:36.142224
| 2017-11-28T02:24:32
| 2017-11-28T02:24:32
| 96,393,573
| 3
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,934
|
java
|
package nds.core.operation.ccmtmpl.service;
import java.util.List;
/**
* <b>class : CcmTmplService </b>
* <b>Class Description</b><br>
* <b>History</b><br>
* <pre> : 2014.07.30 초기작성(오예솔)</pre>
* @author <a href="mailto:ysoh@nds.co.kr">오예솔</a>
* @version 1.0
*/
public interface CcmTmplService {
/**
* 템플릿 조회
* @param smsVO
* @return List
* @throws Exception
*/
List<CcmTmplVO> selectCcmTmplList(CcmTmplVO vo) throws Exception;
/**
* 템플릿 총건수 조회
* @param smsVO
* @return int
* @throws Exception
*/
int selectCcmTmplCnt(CcmTmplVO vo) throws Exception;
/**
* 템플릿 상세 조회
* @param smsVO
* @return CcmTmplVO
* @throws Exception
*/
CcmTmplVO selectByPrimaryKey(CcmTmplVO vo) throws Exception;
/**
* 템플릿 상세 조회
* @param smsVO
* @return CcmTmplVO
* @throws Exception
*/
CcmTmplVO selectByCcmTmplInfo(CcmTmplVO vo) throws Exception;
/**
* 템플릿 상세 조회
* @param smsVO
* @return CcmTmplVO
* @throws Exception
*/
CcmTmplVO selectByMessingerTmplInfo(CcmTmplVO vo) throws Exception;
/**
* 템플릿 생성
* @param smsVO
* @return
* @throws Exception
*/
String insertCcmTmpl(CcmTmplVO vo) throws Exception;
/**
* 템플릿 수정
* @param smsVO
* @return
* @throws Exception
*/
void updateCcmTmpl(CcmTmplVO vo) throws Exception;
/**
* 템플릿 삭제
* @param smsVO
* @return
* @throws Exception
*/
void deleteCcmTmpl(CcmTmplVO vo) throws Exception;
/**
* 템플릿 신규등록 전 등록가능여부 조회
* @param smsVO
* @return
* @throws Exception
*/
String selectInsertTmpl(CcmTmplVO vo) throws Exception;
}
|
[
"ljy1101@nongshim.co.kr"
] |
ljy1101@nongshim.co.kr
|
cf8f8b81bc29992efded5e436cc370a06e39fd85
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/2/2_3913ac6349a70268933c78671a0bc83be50663e7/Preference/2_3913ac6349a70268933c78671a0bc83be50663e7_Preference_s.java
|
42f657063e4c3ace54ba85a1a0d68dd98412b77e
|
[] |
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
| 1,733
|
java
|
package org.javaopen.prefix.phone;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.os.Bundle;
import android.preference.EditTextPreference;
import android.preference.Preference.OnPreferenceChangeListener;
import android.preference.PreferenceActivity;
import android.preference.PreferenceManager;
import android.util.Log;
public class Preference extends PreferenceActivity {
private static final String TAG = Preference.class.getName();
EditTextPreference prefixEdit = null;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.addPreferencesFromResource(R.xml.preference);
prefixEdit = (EditTextPreference)findPreference(getString(R.string.prefix_key));
initDefaults(prefixEdit);
prefixEdit.setOnPreferenceChangeListener(new OnPreferenceChangeListener() {
@Override
public boolean onPreferenceChange(
android.preference.Preference preference, Object newValue) {
preference.setSummary(newValue.toString());
return true;
}});
}
void initDefaults(EditTextPreference prefixEdit) {
SharedPreferences sp =
PreferenceManager.getDefaultSharedPreferences(this);
String defValue = getString(R.string.prefix_default);
String key = getString(R.string.prefix_key);
String value = sp.getString(key, null);
Log.d(TAG, "onCreate: defValue="+defValue+", key="+key+", value="+value);
if (value == null || value.length() <= 0) {
Editor editor = sp.edit();
editor.putString(key, defValue);
editor.commit();
}
value = sp.getString(key, null);
prefixEdit.setText(value);
prefixEdit.setSummary(value);
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
df300831ec93d553fd7b39b5b83c438eb87f038e
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Chart/5/org/jfree/data/xy/XYSeriesCollection_XYSeriesCollection_94.java
|
c52941977d1db82a9b61266375ba3ec561148b25
|
[] |
no_license
|
hvdthong/NetML
|
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
|
9bb103da21327912e5a29cbf9be9ff4d058731a5
|
refs/heads/master
| 2021-06-30T15:03:52.618255
| 2020-10-07T01:58:48
| 2020-10-07T01:58:48
| 150,383,588
| 1
| 1
| null | 2018-09-26T07:08:45
| 2018-09-26T07:08:44
| null |
UTF-8
|
Java
| false
| false
| 720
|
java
|
org jfree data
repres collect link seri xyseri object
dataset
seri collect xyseriescollect abstract interv dataset abstractintervalxydataset
construct empti dataset
seri collect xyseriescollect
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
3d30c29457f676e7b0e6bc177d28b059d18c30fc
|
e44797276871f1607b8605d06f5fae0f60fa4ae2
|
/src/main/java/com/firstdev/stdmng/config/audit/AuditEventConverter.java
|
31bd7acbaf0e47b0f57a13765656ca5767596627
|
[] |
no_license
|
liwei766/student-management
|
ecb8fc6ca53aaf05533a3e7bf670f294d4df5288
|
385567ae931a37b3908be8c53b73f1dd331e7ec7
|
refs/heads/master
| 2021-06-27T21:35:06.280872
| 2018-07-29T05:15:26
| 2018-07-29T05:15:26
| 142,732,915
| 0
| 1
| null | 2020-09-18T09:39:22
| 2018-07-29T05:15:11
|
Java
|
UTF-8
|
Java
| false
| false
| 3,201
|
java
|
package com.firstdev.stdmng.config.audit;
import com.firstdev.stdmng.domain.PersistentAuditEvent;
import org.springframework.boot.actuate.audit.AuditEvent;
import org.springframework.security.web.authentication.WebAuthenticationDetails;
import org.springframework.stereotype.Component;
import java.util.*;
@Component
public class AuditEventConverter {
/**
* Convert a list of PersistentAuditEvent to a list of AuditEvent
*
* @param persistentAuditEvents the list to convert
* @return the converted list.
*/
public List<AuditEvent> convertToAuditEvent(Iterable<PersistentAuditEvent> persistentAuditEvents) {
if (persistentAuditEvents == null) {
return Collections.emptyList();
}
List<AuditEvent> auditEvents = new ArrayList<>();
for (PersistentAuditEvent persistentAuditEvent : persistentAuditEvents) {
auditEvents.add(convertToAuditEvent(persistentAuditEvent));
}
return auditEvents;
}
/**
* Convert a PersistentAuditEvent to an AuditEvent
*
* @param persistentAuditEvent the event to convert
* @return the converted list.
*/
public AuditEvent convertToAuditEvent(PersistentAuditEvent persistentAuditEvent) {
if (persistentAuditEvent == null) {
return null;
}
return new AuditEvent(persistentAuditEvent.getAuditEventDate(), persistentAuditEvent.getPrincipal(),
persistentAuditEvent.getAuditEventType(), convertDataToObjects(persistentAuditEvent.getData()));
}
/**
* Internal conversion. This is needed to support the current SpringBoot actuator AuditEventRepository interface
*
* @param data the data to convert
* @return a map of String, Object
*/
public Map<String, Object> convertDataToObjects(Map<String, String> data) {
Map<String, Object> results = new HashMap<>();
if (data != null) {
for (Map.Entry<String, String> entry : data.entrySet()) {
results.put(entry.getKey(), entry.getValue());
}
}
return results;
}
/**
* Internal conversion. This method will allow to save additional data.
* By default, it will save the object as string
*
* @param data the data to convert
* @return a map of String, String
*/
public Map<String, String> convertDataToStrings(Map<String, Object> data) {
Map<String, String> results = new HashMap<>();
if (data != null) {
for (Map.Entry<String, Object> entry : data.entrySet()) {
// Extract the data that will be saved.
if (entry.getValue() instanceof WebAuthenticationDetails) {
WebAuthenticationDetails authenticationDetails = (WebAuthenticationDetails) entry.getValue();
results.put("remoteAddress", authenticationDetails.getRemoteAddress());
results.put("sessionId", authenticationDetails.getSessionId());
} else {
results.put(entry.getKey(), Objects.toString(entry.getValue()));
}
}
}
return results;
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
d32795d3a061a8089d002d0ac320193cff6cd450
|
2bc5230c520399499ce969962a54da3470afe41b
|
/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/testdo/relationship/auto/_MapToManyTarget.java
|
ccae26abd2056ca159d2b28ba1adb13f34c781cb
|
[] |
no_license
|
nirvdrum/cayenne
|
9019fcdbefe73736526b3bc62d88882870b519c1
|
01aef6f56820e869083f0833f2e0d0e9bd86f736
|
refs/heads/CAY-1215_new_cayenne-tools_module
| 2022-12-26T13:07:37.641397
| 2009-04-29T00:30:18
| 2009-04-29T00:41:16
| 188,067
| 3
| 1
| null | 2022-12-15T23:24:30
| 2009-04-29T01:16:03
|
Java
|
UTF-8
|
Java
| false
| false
| 1,080
|
java
|
package org.apache.cayenne.testdo.relationship.auto;
/** Class _MapToManyTarget was generated by Cayenne.
* It is probably a good idea to avoid changing this class manually,
* since it may be overwritten next time code is regenerated.
* If you need to make any customizations, please use subclass.
*/
public class _MapToManyTarget extends org.apache.cayenne.CayenneDataObject {
public static final String NAME_PROPERTY = "name";
public static final String MAP_TO_MANY_PROPERTY = "mapToMany";
public static final String ID_PK_COLUMN = "ID";
public void setName(String name) {
writeProperty("name", name);
}
public String getName() {
return (String)readProperty("name");
}
public void setMapToMany(org.apache.cayenne.testdo.relationship.MapToMany mapToMany) {
setToOneTarget("mapToMany", mapToMany, true);
}
public org.apache.cayenne.testdo.relationship.MapToMany getMapToMany() {
return (org.apache.cayenne.testdo.relationship.MapToMany)readProperty("mapToMany");
}
}
|
[
"aadamchik@apache.org"
] |
aadamchik@apache.org
|
59f691e9ff8080acc3bb6021eb0a9aba7c39815e
|
17212f964a8ae4dd75e3216824fa40086416c30b
|
/src/main/java/org/oxerr/youzan/dto/response/ItemsResponse.java
|
90774bbfe619351d807727c90461e537c4213a3c
|
[] |
no_license
|
gucs/youzan-client
|
5a37d1a93d944d99594b116695e838fd3617fa3e
|
33f9bc443cf589ade48ed728f61298b7adf1014f
|
refs/heads/master
| 2021-06-20T13:45:45.969443
| 2017-08-02T07:13:43
| 2017-08-02T07:13:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 534
|
java
|
package org.oxerr.youzan.dto.response;
import java.io.Serializable;
import org.oxerr.youzan.dto.GoodsDetail;
import com.fasterxml.jackson.annotation.JsonProperty;
public class ItemsResponse implements Serializable {
private static final long serialVersionUID = 2016061901L;
private GoodsDetail[] items;
public ItemsResponse(@JsonProperty("items") GoodsDetail[] items) {
this.items = items;
}
public GoodsDetail[] getItems() {
return items;
}
public void setItems(GoodsDetail[] items) {
this.items = items;
}
}
|
[
"zhoushuqun@gmail.com"
] |
zhoushuqun@gmail.com
|
1566c29409ce2044447ba37ea1906e05b0156e7a
|
3fcdca1ea49c02188eb1d9e253f47cbb49380833
|
/Prod/fin.scfw/fin.mkmm-sales-ui/src/main/java/com/yqjr/fin/mkmm/sales/ui/controller/FeeDetailReviewController.java
|
8fbd4fa434ad483973a8b1c445d0a3f03112170d
|
[] |
no_license
|
jsdelivrbot/yqjr
|
f13f50dc765b1c7aa7ad513ee455c9380ab3d7c6
|
08c7182c3d4dcc303f512b55b4405266dd3ad66c
|
refs/heads/master
| 2020-04-10T13:50:37.840713
| 2018-12-09T11:08:44
| 2018-12-09T11:08:44
| 161,060,607
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,329
|
java
|
package com.yqjr.fin.mkmm.sales.ui.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping(value = "/feeDetailReview")
public class FeeDetailReviewController {
//region generated by CodeRobot
@RequestMapping(value = "/list")
public String list() {
return "framework/system/feedetailreview/feeDetailReviewList";
}
@RequestMapping(value = "/view")
public String view() {
return "framework/system/feedetailreview/feeDetailReviewView";
}
@RequestMapping(value = "/form")
public String form() {
return "framework/system/feedetailreview/feeDetailReviewForm";
}
@RequestMapping(value = "/modify")
public String modify() {
return "framework/system/feedetailreview/feeDetailReviewModify";
}
@RequestMapping(value = "/modal")
public String modal() {
return "framework/system/feedetailreview/feeDetailReviewModal";
}
@RequestMapping(value = "/listModal")
public String listModal() {
return "framework/system/feedetailreview/feeDetailReviewListModal";
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~此线上方代码自动生成,在此下方编写自定义代码。
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//endregion
}
|
[
"1296345294@qq.com"
] |
1296345294@qq.com
|
7b4d281f5c625a51fc90a37690343f002ef14430
|
223c9adbefa6b2a0c7df251692f3cac2d2b52814
|
/src/main/java/com/sphenon/engines/factorysite/xml/BuildTextXMLBaseImpl.java
|
d64b7e83ffcf846fd37681f0618ae5fd833df93f
|
[
"Apache-2.0"
] |
permissive
|
616c/java-com.sphenon.components.engines.factorysite
|
22b607ead30f37387dbf4b8f6dc16b8f479510f5
|
b137c3778d75d21f4b889fcf361763ccc1b5dec6
|
refs/heads/master
| 2020-03-22T05:46:13.424947
| 2018-07-07T16:53:34
| 2018-07-07T16:53:34
| 139,588,854
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,822
|
java
|
package com.sphenon.engines.factorysite.xml;
/****************************************************************************
Copyright 2001-2018 Sphenon GmbH
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 com.sphenon.basics.context.*;
import com.sphenon.basics.many.*;
import com.sphenon.basics.many.tplinst.*;
import com.sphenon.engines.factorysite.*;
import com.sphenon.engines.factorysite.returncodes.*;
import com.sphenon.engines.factorysite.exceptions.*;
import java.util.HashMap;
import org.w3c.dom.Document;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.Text;
import org.w3c.dom.Element;
import org.w3c.dom.Attr;
abstract public class BuildTextXMLBaseImpl extends BuildTextBaseImpl implements BuildTextXML {
public BuildTextXMLBaseImpl(CallContext context, Element node, String source_location_info) {
super(context);
this.node = node;
if (node != null) {
this.node_name = node.getAttribute(BuildTextKeywords.NAME);
if (this.node_name == null || this.node_name.length() == 0) {
this.node_name = ( node.getNodeType() == Node.ELEMENT_NODE
? ((Element)node).getTagName().replaceFirst(".*\\.","")
// replaceFirst: possible dotted prefixes are handled in
// BuildTextComplexXML / getChild
// here only the final part should be processed
: null
);
}
this.oid = BuildTextXMLFactory.getAttribute(node, BuildTextKeywords.OID, BuildTextKeywords.OID_UC);
this.oid_ref = node.getAttribute(BuildTextKeywords.OIDREF);
this.assign_to = node.getAttribute(BuildTextKeywords.ASSIGNTO);
this.type_name = BuildTextXMLFactory.getAttribute(node, BuildTextKeywords.CLASS, BuildTextKeywords.CLASS_UC);
this.factory_name = BuildTextXMLFactory.getAttribute(node, BuildTextKeywords.FACTORY, BuildTextKeywords.FACTORY_UC);
this.retriever_name = BuildTextXMLFactory.getAttribute(node, BuildTextKeywords.RETRIEVER, BuildTextKeywords.RETRIEVER_UC);
this.method_name = node.getAttribute(BuildTextKeywords.METHOD);
this.alias = node.getAttribute(BuildTextKeywords.ALIAS);
String typecheck = node.getAttribute(BuildTextKeywords.TYPECHECK);
this.allow_dynamic_type_check = (typecheck != null && typecheck.equals("allow_dynamic") ? true : false);
String argumentcheck = node.getAttribute(BuildTextKeywords.ARGUMENTCHECK);
this.allow_missing_arguments = (argumentcheck != null && argumentcheck.equals("allow_missing") ? true : false);
this.is_singleton = (node.getAttributeNode(BuildTextKeywords.SINGLETON) != null);
this.have_dynamic_parameters = (node.getAttributeNode(BuildTextKeywords.DYNAMICPARAMETERS) != null);
this.name_attribute = node.getAttribute(BuildTextKeywords.NAME);
this.is_expression = ( node.getAttributeNode(BuildTextKeywords.EXPRESSION) != null
|| node.getAttributeNode(BuildTextKeywords.EXPRESSION_TEXT) != null
|| node.getAttributeNode(BuildTextKeywords.EXPRESSION_TEXT_UC) != null
|| node.getAttributeNode(BuildTextKeywords.EXPRESSION_VALUE) != null
|| node.getAttributeNode(BuildTextKeywords.EXPRESSION_VALUE_UC) != null
);
this.if_expression = BuildTextXMLFactory.getAttribute(node, BuildTextKeywords.IF, BuildTextKeywords.IF_UC);
this.foreach_expression = BuildTextXMLFactory.getAttribute(node, BuildTextKeywords.FOREACH, BuildTextKeywords.FOREACH_UC);
this.signature = BuildTextXMLFactory.getAttribute(node, BuildTextKeywords.SIGNATURE, BuildTextKeywords.SIGNATURE_UC);
this.define = BuildTextXMLFactory.getAttribute(node, BuildTextKeywords.DEFINE, BuildTextKeywords.DEFINE_UC);
this.evaluator = node.getAttribute(BuildTextKeywords.EVALUATOR);
this.j_catch = node.getAttribute(BuildTextKeywords.CATCH);
String pass_string = node.getAttribute(BuildTextKeywords.PASS);
this.pass = (pass_string == null || pass_string.length() == 0 ? 1 : Integer.parseInt(pass_string));
this.override = node.getAttribute(BuildTextKeywords.OVERRIDE);
this.name_space = node.getAttribute("xmlns");
this.applies_to = node.getAttribute(BuildTextKeywords.APPLIESTO);
this.listener = node.getAttribute(BuildTextKeywords.LISTENER);
}
this.source_location_info = source_location_info;
}
protected Node node;
public Node getNode (CallContext context) {
return this.node;
}
public void setNode (CallContext context, Node node) {
this.node = node;
}
protected String oid_ref;
public String getOIDRef (CallContext context) {
return this.oid_ref;
}
public void setOIDRef (CallContext context, String oid_ref) {
this.oid_ref = oid_ref;
}
}
|
[
"adev@leue.net"
] |
adev@leue.net
|
65af7bbd1a9f6307dc66cf59fc6de93293b14592
|
732bd2ab16d6b2fb570c46a3a0c312a5a40bce23
|
/Apache-Fop/src/main/java/org/apache/fop/render/rtf/rtflib/exceptions/RtfException.java
|
75d9e78df583d36e49de436c5c73352c54b290c6
|
[
"Apache-2.0"
] |
permissive
|
Guronzan/GenPDF
|
ddedaff22350c387fd7cf04db3c76c0b2c7ba636
|
b1e2d36fda01fbccd7edce5165a388470396e1dd
|
refs/heads/master
| 2016-09-06T08:51:50.479904
| 2014-05-25T11:35:10
| 2014-05-25T11:35:10
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,579
|
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.
*/
/* $Id: RtfException.java 1297404 2012-03-06 10:17:54Z vhennebert $ */
package org.apache.fop.render.rtf.rtflib.exceptions;
/*
* This file is part of the RTF library of the FOP project, which was originally
* created by Bertrand Delacretaz <bdelacretaz@codeconsult.ch> and by other
* contributors to the jfor project (www.jfor.org), who agreed to donate jfor to
* the FOP project.
*/
/**
* <p>
* Base class for rtflib exceptions.
* </p>
*
* <p>
* This work was authored by Bertrand Delacretaz (bdelacretaz@codeconsult.ch).
* </p>
*/
public class RtfException extends java.io.IOException {
/**
* @param reason
* Description of reason for Exception.
*/
public RtfException(final String reason) {
super(reason);
}
}
|
[
"guillaume.rodrigues@gmail.com"
] |
guillaume.rodrigues@gmail.com
|
a46a56549f6bce81c1b39860000185f94ec3c301
|
d5f09c7b0e954cd20dd613af600afd91b039c48a
|
/sources/com/coolapk/market/event/MyCardUpdateEvent.java
|
712c793aadc1e74acec01b9baf8351a39f79ebca
|
[] |
no_license
|
t0HiiBwn/CoolapkRelease
|
af5e00c701bf82c4e90b1033f5c5f9dc8526f4b3
|
a6a2b03e32cde0e5163016e0078391271a8d33ab
|
refs/heads/main
| 2022-07-29T23:28:35.867734
| 2021-03-26T11:41:18
| 2021-03-26T11:41:18
| 345,290,891
| 5
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,194
|
java
|
package com.coolapk.market.event;
import kotlin.Metadata;
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0002\b\b\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\b\b\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\t\u0010\u0007\u001a\u00020\u0003HÆ\u0003J\u0013\u0010\b\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\t\u001a\u00020\u00032\b\u0010\n\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u000b\u001a\u00020\fHÖ\u0001J\t\u0010\r\u001a\u00020\u000eHÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u000f"}, d2 = {"Lcom/coolapk/market/event/MyCardUpdateEvent;", "", "needRefrash", "", "(Z)V", "getNeedRefrash", "()Z", "component1", "copy", "equals", "other", "hashCode", "", "toString", "", "presentation_coolapkAppRelease"}, k = 1, mv = {1, 4, 2})
/* compiled from: MyCardUpdateEvent.kt */
public final class MyCardUpdateEvent {
private final boolean needRefrash;
public static /* synthetic */ MyCardUpdateEvent copy$default(MyCardUpdateEvent myCardUpdateEvent, boolean z, int i, Object obj) {
if ((i & 1) != 0) {
z = myCardUpdateEvent.needRefrash;
}
return myCardUpdateEvent.copy(z);
}
public final boolean component1() {
return this.needRefrash;
}
public final MyCardUpdateEvent copy(boolean z) {
return new MyCardUpdateEvent(z);
}
public boolean equals(Object obj) {
if (this != obj) {
return (obj instanceof MyCardUpdateEvent) && this.needRefrash == ((MyCardUpdateEvent) obj).needRefrash;
}
return true;
}
public int hashCode() {
boolean z = this.needRefrash;
if (z) {
return 1;
}
return z ? 1 : 0;
}
public String toString() {
return "MyCardUpdateEvent(needRefrash=" + this.needRefrash + ")";
}
public MyCardUpdateEvent(boolean z) {
this.needRefrash = z;
}
public final boolean getNeedRefrash() {
return this.needRefrash;
}
}
|
[
"test@gmail.com"
] |
test@gmail.com
|
260a72fa832288dccb28b62ea0bf92954d5b5ca0
|
65b261b7826a7fdd2f5071942a32fa7c870ff3c1
|
/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire907PerThreadWithoutThreadCountIT.java
|
1fd9ea8a7a58ea81b19cdb403a0f278329c31a8d
|
[] |
no_license
|
joostschouten/maven-surefire
|
3a55f3538baaa08220106f908a74c07c610f2a48
|
39a67f5837b6a846e87b427b7f372d965357c9b8
|
refs/heads/master
| 2020-12-24T20:33:18.567020
| 2012-12-09T09:55:36
| 2012-12-09T09:57:20
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,381
|
java
|
package org.apache.maven.surefire.its.jiras;
/*
* 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.
*/
import org.apache.maven.surefire.its.fixture.OutputValidator;
import org.apache.maven.surefire.its.fixture.SurefireJUnit4IntegrationTestCase;
import org.junit.Test;
public class Surefire907PerThreadWithoutThreadCountIT
extends SurefireJUnit4IntegrationTestCase
{
@Test
public void categoryAB()
{
OutputValidator validator = unpack( "fork-mode" ).forkPerThread().executeTestWithFailure();
validator.verifyTextInLog( "Fork modes perthread and onceperthread require a thread count" );
}
}
|
[
"krosenvold@apache.org"
] |
krosenvold@apache.org
|
87253df48719f565e7948227fb29fa8ab6c5f59a
|
ebea4900f9fc1bb3ef791d8ea99387e94bbc6d48
|
/open-metadata-implementation/common-services/ocf-metadata-management/ocf-metadata-handlers/src/main/java/org/odpi/openmetadata/commonservices/ocf/metadatamanagement/converters/ReferenceableConverter.java
|
ecf6bbcc8e73611851af84dc502d9e0eb7d1abe6
|
[
"Apache-2.0",
"CC-BY-4.0"
] |
permissive
|
ruxandraRosu/egeria
|
eb94db17229f571a87f05be3b9b9c3e19a84e952
|
f3906b67455fc0cd94df6480aefd45060690094e
|
refs/heads/master
| 2020-07-16T13:43:13.927174
| 2019-10-24T05:56:59
| 2019-10-24T05:56:59
| 205,798,916
| 0
| 0
|
Apache-2.0
| 2019-09-02T07:19:07
| 2019-09-02T07:19:06
| null |
UTF-8
|
Java
| false
| false
| 5,020
|
java
|
/* SPDX-License-Identifier: Apache 2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters;
import org.odpi.openmetadata.frameworks.connectors.properties.beans.Classification;
import org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper;
import java.util.ArrayList;
import java.util.List;
/**
* ReferenceableConverter transfers the relevant properties from an Open Metadata Repository Services (OMRS)
* EntityDetail object into a ReferenceableHeader bean.
*/
public class ReferenceableConverter extends ElementHeaderConverter
{
/**
* Constructor captures the initial content
*
* @param entity properties to convert
* @param repositoryHelper helper object to parse entity
* @param serviceName name of this component
*/
public ReferenceableConverter(EntityDetail entity,
OMRSRepositoryHelper repositoryHelper,
String serviceName)
{
super(entity, repositoryHelper, serviceName);
}
/**
* Constructor captures the initial content with relationship
*
* @param entity properties to convert
* @param relationship properties to convert
* @param repositoryHelper helper object to parse entity/relationship
* @param serviceName name of this component
*/
public ReferenceableConverter(EntityDetail entity,
Relationship relationship,
OMRSRepositoryHelper repositoryHelper,
String serviceName)
{
super(entity, relationship, repositoryHelper, serviceName);
}
/**
* Set up the bean to convert.
*
* @param bean output bean
*/
protected void updateBean(Referenceable bean)
{
if (entity != null)
{
super.updateBean(bean);
bean.setClassifications(this.getClassificationsFromEntity());
}
}
/**
* Extract the classifications from the entity.
*
* @return list of bean classifications
*/
private List<Classification> getClassificationsFromEntity()
{
List<Classification> classifications = null;
if (entity != null)
{
List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification> entityClassifications = entity.getClassifications();
if (entityClassifications != null)
{
classifications = new ArrayList<>();
for (org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification entityClassification : entityClassifications)
{
if (entityClassification != null)
{
Classification beanClassification = new Classification();
beanClassification.setClassificationName(entityClassification.getName());
beanClassification.setClassificationProperties(repositoryHelper.getInstancePropertiesAsMap(entityClassification.getProperties()));
}
}
}
}
return classifications;
}
/**
* Extract the classifications from the entity.
*
* @return list of bean classifications
*/
protected InstanceProperties getClassificationProperties(String classificationName)
{
if (entity != null)
{
List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification> entityClassifications = entity.getClassifications();
if (entityClassifications != null)
{
for (org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification entityClassification : entityClassifications)
{
if (entityClassification != null)
{
if (classificationName.equals(entityClassification.getName()))
{
return entityClassification.getProperties();
}
}
}
}
}
return null;
}
}
|
[
"mandy_chessell@uk.ibm.com"
] |
mandy_chessell@uk.ibm.com
|
b678ea4bac7339974308da48821ff8e2f88f263e
|
5fbd2cb2b0212950237a3f4cabbd2322f177be9b
|
/app/src/main/java/com/ipd/mayachuxing/contract/UserBalanceContract.java
|
46e536c32c3752ba1b8da61a3412a3afa74782fd
|
[] |
no_license
|
Fireky1in/MaYaChuXing
|
88f79cba04538cd98ec467868486ce1939f95700
|
e1df747fd2b17b47670ecb6c7b53704ab8e8122a
|
refs/heads/master
| 2022-02-25T08:17:03.027582
| 2019-10-11T09:09:33
| 2019-10-11T09:09:33
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,024
|
java
|
package com.ipd.mayachuxing.contract;
import com.ipd.mayachuxing.base.BasePresenter;
import com.ipd.mayachuxing.base.BaseView;
import com.ipd.mayachuxing.bean.ReturnDepositBean;
import com.ipd.mayachuxing.bean.UserBalanceBean;
import java.util.TreeMap;
import io.reactivex.ObservableTransformer;
/**
* Description :MemberCenterContract V 、P契约类
* Author : MengYang
* Email : 942685687@qq.com
* Time : 2019/4/2.
*/
public interface UserBalanceContract {
interface View extends BaseView {
//不同的Bean单独处理
void resultReturnDeposit(ReturnDepositBean data);
void resultUserBalance(UserBalanceBean data);
<T> ObservableTransformer<T, T> bindLifecycle();
}
abstract class Presenter extends BasePresenter<View> {
public abstract void getReturnDeposit(TreeMap<String, String> map, boolean isDialog, boolean cancelable);
public abstract void getUserBalance(TreeMap<String, String> map, boolean isDialog, boolean cancelable);
}
}
|
[
"942685687@qq.com"
] |
942685687@qq.com
|
45feb6fb2fa139a9881485a3274fa11d087bbbdf
|
995f73d30450a6dce6bc7145d89344b4ad6e0622
|
/Honor5C-7.0/src/main/java/android/hardware/hdmi/IHdmiRecordListener.java
|
a7d4f365e8cb53993fc1530fbdf94622a0797734
|
[] |
no_license
|
morningblu/HWFramework
|
0ceb02cbe42585d0169d9b6c4964a41b436039f5
|
672bb34094b8780806a10ba9b1d21036fd808b8e
|
refs/heads/master
| 2023-07-29T05:26:14.603817
| 2021-09-03T05:23:34
| 2021-09-03T05:23:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,217
|
java
|
package android.hardware.hdmi;
import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
public interface IHdmiRecordListener extends IInterface {
public static abstract class Stub extends Binder implements IHdmiRecordListener {
private static final String DESCRIPTOR = "android.hardware.hdmi.IHdmiRecordListener";
static final int TRANSACTION_getOneTouchRecordSource = 1;
static final int TRANSACTION_onClearTimerRecordingResult = 4;
static final int TRANSACTION_onOneTouchRecordResult = 2;
static final int TRANSACTION_onTimerRecordingResult = 3;
private static class Proxy implements IHdmiRecordListener {
private IBinder mRemote;
Proxy(IBinder remote) {
this.mRemote = remote;
}
public IBinder asBinder() {
return this.mRemote;
}
public String getInterfaceDescriptor() {
return Stub.DESCRIPTOR;
}
public byte[] getOneTouchRecordSource(int recorderAddress) throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
_data.writeInt(recorderAddress);
this.mRemote.transact(Stub.TRANSACTION_getOneTouchRecordSource, _data, _reply, 0);
_reply.readException();
byte[] _result = _reply.createByteArray();
return _result;
} finally {
_reply.recycle();
_data.recycle();
}
}
public void onOneTouchRecordResult(int recorderAddress, int result) throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
_data.writeInt(recorderAddress);
_data.writeInt(result);
this.mRemote.transact(Stub.TRANSACTION_onOneTouchRecordResult, _data, _reply, 0);
_reply.readException();
} finally {
_reply.recycle();
_data.recycle();
}
}
public void onTimerRecordingResult(int recorderAddress, int result) throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
_data.writeInt(recorderAddress);
_data.writeInt(result);
this.mRemote.transact(Stub.TRANSACTION_onTimerRecordingResult, _data, _reply, 0);
_reply.readException();
} finally {
_reply.recycle();
_data.recycle();
}
}
public void onClearTimerRecordingResult(int recorderAddress, int result) throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
_data.writeInt(recorderAddress);
_data.writeInt(result);
this.mRemote.transact(Stub.TRANSACTION_onClearTimerRecordingResult, _data, _reply, 0);
_reply.readException();
} finally {
_reply.recycle();
_data.recycle();
}
}
}
public Stub() {
attachInterface(this, DESCRIPTOR);
}
public static IHdmiRecordListener asInterface(IBinder obj) {
if (obj == null) {
return null;
}
IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (iin == null || !(iin instanceof IHdmiRecordListener)) {
return new Proxy(obj);
}
return (IHdmiRecordListener) iin;
}
public IBinder asBinder() {
return this;
}
public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException {
switch (code) {
case TRANSACTION_getOneTouchRecordSource /*1*/:
data.enforceInterface(DESCRIPTOR);
byte[] _result = getOneTouchRecordSource(data.readInt());
reply.writeNoException();
reply.writeByteArray(_result);
return true;
case TRANSACTION_onOneTouchRecordResult /*2*/:
data.enforceInterface(DESCRIPTOR);
onOneTouchRecordResult(data.readInt(), data.readInt());
reply.writeNoException();
return true;
case TRANSACTION_onTimerRecordingResult /*3*/:
data.enforceInterface(DESCRIPTOR);
onTimerRecordingResult(data.readInt(), data.readInt());
reply.writeNoException();
return true;
case TRANSACTION_onClearTimerRecordingResult /*4*/:
data.enforceInterface(DESCRIPTOR);
onClearTimerRecordingResult(data.readInt(), data.readInt());
reply.writeNoException();
return true;
case IBinder.INTERFACE_TRANSACTION /*1598968902*/:
reply.writeString(DESCRIPTOR);
return true;
default:
return super.onTransact(code, data, reply, flags);
}
}
}
byte[] getOneTouchRecordSource(int i) throws RemoteException;
void onClearTimerRecordingResult(int i, int i2) throws RemoteException;
void onOneTouchRecordResult(int i, int i2) throws RemoteException;
void onTimerRecordingResult(int i, int i2) throws RemoteException;
}
|
[
"dstmath@163.com"
] |
dstmath@163.com
|
294f466eedcaf1e3238d1f43955aaeb7ce45e0c8
|
2ac74657de3cb81bab734d18094e945a442a167d
|
/sechub-shared-kernel/src/main/java/com/mercedesbenz/sechub/sharedkernel/messaging/SynchronMessageHandler.java
|
0233a51561dc9c05704a22e6d60c5a2983b1ba0d
|
[
"MIT",
"ANTLR-PD",
"LicenseRef-scancode-generic-exception",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"LicenseRef-scancode-oracle-openjdk-exception-2.0",
"MPL-1.1",
"MPL-2.0",
"CC-PDDC",
"LicenseRef-scancode-warranty-disclaimer",
"EPL-2.0",
"GPL-2.0-only",
"EPL-1.0",
"CC0-1.0",
"Classpath-exception-2.0",
"Apache-2.0",
"LGPL-2.1-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-public-domain",
"GPL-2.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"Apache-1.1",
"MPL-1.0",
"CDDL-1.1",
"LicenseRef-scancode-proprietary-license"
] |
permissive
|
de-jcup/sechub
|
64055bb7ccd5496e32207c140e5812997e97583b
|
488d2d23b9ae74043e8747467623d291c7371b38
|
refs/heads/develop
| 2023-07-22T18:01:47.280074
| 2023-07-18T15:50:27
| 2023-07-18T15:50:27
| 199,480,695
| 0
| 1
|
MIT
| 2023-03-20T03:00:02
| 2019-07-29T15:37:19
|
Java
|
UTF-8
|
Java
| false
| false
| 508
|
java
|
// SPDX-License-Identifier: MIT
package com.mercedesbenz.sechub.sharedkernel.messaging;
public interface SynchronMessageHandler {
/**
* Handles synchronous message. Important: You must add handling methods with
* {@link IsRecevingSyncMessage} or {@link IsRecevingSyncMessages} otherwise the
* handler will not be called by internal framework!
*
* @param request
* @return
*/
public DomainMessageSynchronousResult receiveSynchronMessage(DomainMessage request);
}
|
[
"albert.tregnaghi@daimler.com"
] |
albert.tregnaghi@daimler.com
|
2f7e6dc225cb241625f447584124be03813aabee
|
622259e01d8555d552ddeba045fafe6624d80312
|
/edu.harvard.i2b2.eclipse.plugins.previousQuery/gensrc/edu/harvard/i2b2/crcxmljaxb/datavo/psm/query/PsmQryHeaderType.java
|
d1d60101fc5a59d1e6c57be938b5461f28a89549
|
[] |
no_license
|
kmullins/i2b2-workbench-old
|
93c8e7a3ec7fc70b68c4ce0ae9f2f2c5101f5774
|
8144b0b62924fa8a0e4076bf9672033bdff3b1ff
|
refs/heads/master
| 2021-05-30T01:06:11.258874
| 2015-11-05T18:00:58
| 2015-11-05T18:00:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,037
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.2-b01-fcs
// 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: 2015.07.21 at 10:39:09 AM EDT
//
package edu.harvard.i2b2.crcxmljaxb.datavo.psm.query;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for psm_qry_headerType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="psm_qry_headerType">
* <complexContent>
* <extension base="{http://www.i2b2.org/xsd/cell/crc/psm/1.1/}headerType">
* <sequence>
* <element name="request_type" type="{http://www.i2b2.org/xsd/cell/crc/psm/1.1/}psmRequest_typeType"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "psm_qry_headerType", propOrder = {
"requestType"
})
public class PsmQryHeaderType
extends HeaderType
{
@XmlElement(name = "request_type", required = true)
protected PsmRequestTypeType requestType;
/**
* Gets the value of the requestType property.
*
* @return
* possible object is
* {@link PsmRequestTypeType }
*
*/
public PsmRequestTypeType getRequestType() {
return requestType;
}
/**
* Sets the value of the requestType property.
*
* @param value
* allowed object is
* {@link PsmRequestTypeType }
*
*/
public void setRequestType(PsmRequestTypeType value) {
this.requestType = value;
}
}
|
[
"Janice@phs000774.partners.org"
] |
Janice@phs000774.partners.org
|
4f32b984a6edf9b823ca97b945245f5963db84b5
|
f4b7924a03289706c769aff23abf4cce028de6bc
|
/smart_logic/src/main/java/plan_pro/modell/flankenschutz/_1_9_0/TCFlaSignalZielsperrung.java
|
309047082186120d4e6c218434a52ba4b5a2ff34
|
[] |
no_license
|
jimbok8/ebd
|
aa18a2066b4a873bad1551e1578a7a1215de9b8b
|
9b0d5197bede5def2972cc44e63ac3711010eed4
|
refs/heads/main
| 2023-06-17T21:16:08.003689
| 2021-07-05T14:53:38
| 2021-07-05T14:53:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,977
|
java
|
//
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert
// Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// �nderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
// Generiert: 2020.01.16 um 04:27:51 PM CET
//
package plan_pro.modell.flankenschutz._1_9_0;
import plan_pro.modell.basistypen._1_9_0.CBasisAttribut;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java-Klasse f�r TCFla_Signal_Zielsperrung complex type.
*
* <p>Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.
*
* <pre>
* <complexType name="TCFla_Signal_Zielsperrung">
* <complexContent>
* <extension base="{http://www.plan-pro.org/modell/BasisTypen/1.9.0.2}CBasisAttribut">
* <sequence>
* <element name="Wert" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TCFla_Signal_Zielsperrung", propOrder = {
"wert"
})
public class TCFlaSignalZielsperrung
extends CBasisAttribut
{
@XmlElement(name = "Wert", required = true, type = Boolean.class, nillable = true)
protected Boolean wert;
/**
* Ruft den Wert der wert-Eigenschaft ab.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isWert() {
return wert;
}
/**
* Legt den Wert der wert-Eigenschaft fest.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setWert(Boolean value) {
this.wert = value;
}
}
|
[
"iberl@verkehr.tu-darmstadt.de"
] |
iberl@verkehr.tu-darmstadt.de
|
6fd03f009fdfcb3e9eab75e5c99670c61aa547ee
|
c44a59be90656e1d4bfbeb8765465ac4bf2aff82
|
/pousse-cafe-core/src/main/java/poussecafe/runtime/FailFastException.java
|
0d9c1c91ff15b9a971b246cbb940f1aa53c8aedf
|
[
"Apache-2.0"
] |
permissive
|
benoitdevos/pousse-cafe
|
fd5022833d0160fdf9f4a21e5b8d5bc4da320c9e
|
dbc84ca197fa0d851db3e1c2a60701d975141fc4
|
refs/heads/master
| 2020-09-29T00:12:48.705790
| 2019-12-07T15:09:00
| 2019-12-07T15:09:00
| 190,152,534
| 0
| 0
| null | 2019-06-04T07:34:14
| 2019-06-04T07:34:13
| null |
UTF-8
|
Java
| false
| false
| 484
|
java
|
package poussecafe.runtime;
import poussecafe.exception.PousseCafeException;
@SuppressWarnings("serial")
public class FailFastException extends PousseCafeException {
public FailFastException() {
super();
}
public FailFastException(String message, Throwable cause) {
super(message, cause);
}
public FailFastException(String message) {
super(message);
}
public FailFastException(Throwable cause) {
super(cause);
}
}
|
[
"g.dethier@gmail.com"
] |
g.dethier@gmail.com
|
240405655dab7c4a28b1b579c2b3e0392b5f69b6
|
1cc6988da857595099e52dd9dd2e6c752d69f903
|
/ZimbraSelenium/src/java/com/zimbra/qa/selenium/projects/octopus/tests/myfiles/history/FileHistory.java
|
e192de1275ea2ed9a62b9bb963a583dedf97cff9
|
[] |
no_license
|
mmariani/zimbra-5682-slapos
|
e250d6a8d5ad4ddd9670ac381211ba4b5075de61
|
d23f0f8ab394d3b3e8a294e10f56eaef730d2616
|
refs/heads/master
| 2021-01-19T06:58:19.601688
| 2013-03-26T16:30:38
| 2013-03-26T16:30:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,217
|
java
|
/*
* ***** BEGIN LICENSE BLOCK *****
*
* Zimbra Collaboration Suite Server
* Copyright (C) 2012 VMware, Inc.
*
* The contents of this file are subject to the Zimbra Public License
* Version 1.3 ("License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.zimbra.com/license.
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
*
* ***** END LICENSE BLOCK *****
*/
package com.zimbra.qa.selenium.projects.octopus.tests.myfiles.history;
import org.testng.annotations.*;
import com.zimbra.qa.selenium.framework.items.FileItem;
import com.zimbra.qa.selenium.framework.items.FolderItem;
import com.zimbra.qa.selenium.framework.items.FolderItem.SystemFolder;
import com.zimbra.qa.selenium.framework.ui.Action;
import com.zimbra.qa.selenium.framework.ui.Button;
import com.zimbra.qa.selenium.framework.util.*;
import com.zimbra.qa.selenium.projects.octopus.core.OctopusCommonTest;
import com.zimbra.qa.selenium.projects.octopus.ui.DialogFileHistory;
import com.zimbra.qa.selenium.projects.octopus.ui.DisplayFilePreview;
import com.zimbra.qa.selenium.projects.octopus.ui.PageMyFiles;
public class FileHistory extends OctopusCommonTest {
private boolean _folderIsCreated = false;
private String _folderName = null;
private boolean _fileAttached = false;
private String _fileId = null;
@BeforeMethod(groups = { "always" })
public void testReset() {
_folderName = null;
_folderIsCreated = false;
_fileId = null;
_fileAttached = false;
}
public FileHistory() {
logger.info("New " + FileHistory.class.getCanonicalName());
// test starts at the My Files tab
super.startingPage = app.zPageMyFiles;
super.startingAccountPreferences = null;
}
@Test(description = "Upload file through RestUtil - verify file name in the history through SOAP", groups = { "functional" })
public void FileHistory_01() throws HarnessException {
ZimbraAccount account = app.zGetActiveAccount();
FolderItem rootFolder = FolderItem.importFromSOAP(account,
SystemFolder.Briefcase);
// Create file item
String filePath = ZimbraSeleniumProperties.getBaseDirectory()
+ "/data/public/other/testpptfile.ppt";
FileItem fileItem = new FileItem(filePath);
String fileName = fileItem.getName();
// Upload file to server through RestUtil
String attachmentId = account.uploadFile(filePath);
// Save uploaded file to My Files through SOAP
account.soapSend("<SaveDocumentRequest xmlns='urn:zimbraMail'>"
+ "<doc l='" + rootFolder.getId() + "'><upload id='"
+ attachmentId + "'/></doc></SaveDocumentRequest>");
_fileAttached = true;
_fileId = account.soapSelectValue(
"//mail:SaveDocumentResponse//mail:doc", "id");
String name = account.soapSelectValue(
"//mail:SaveDocumentResponse//mail:doc", "name");
// verify the file is uploaded
ZAssert.assertEquals(fileName, name, "Verify file is uploaded");
// Verify file activity appears in the History
account.soapSend("<GetActivityStreamRequest xmlns='urn:zimbraMail' offset='0' limit='250' id='"
+ rootFolder.getId() + "'/>");
// Verify file name appears in the activity history
ZAssert.assertTrue(app.zPageOctopus.zVerifyElementText(account,
"//mail:GetActivityStreamResponse//mail:arg", fileName),
"Verify file name appears in the activity history");
}
@Test(description = "Upload file through RestUtil - verify file history in the History dialog", groups = { "smoke" })
public void FileHistory_02() throws HarnessException {
ZimbraAccount account = app.zGetActiveAccount();
FolderItem briefcaseRootFolder = FolderItem.importFromSOAP(account,
SystemFolder.Briefcase);
// Create file item
String filePath = ZimbraSeleniumProperties.getBaseDirectory()
+ "/data/public/other/samplejpg.jpg";
FileItem file = new FileItem(filePath);
String fileName = file.getName();
// Upload file to server through RestUtil
String attachmentId = account.uploadFile(filePath);
// Save uploaded file to the root folder through SOAP
account.soapSend(
"<SaveDocumentRequest xmlns='urn:zimbraMail'>" + "<doc l='"
+ briefcaseRootFolder.getId() + "'>" + "<upload id='"
+ attachmentId + "'/>" + "</doc></SaveDocumentRequest>");
// account.soapSelectNode("//mail:SaveDocumentResponse", 1);
_fileAttached = true;
_fileId = account.soapSelectValue(
"//mail:SaveDocumentResponse//mail:doc", "id");
// Click on My Files tab
app.zPageOctopus.zToolbarPressButton(Button.B_TAB_MY_FILES);
// Verify file exists in My Files view
ZAssert.assertTrue(app.zPageMyFiles.zWaitForElementPresent(
PageMyFiles.Locators.zMyFilesListViewItems.locator
+ ":contains(" + fileName + ")", "3000"),
"Verify file appears in My Files view");
// Select file in the list view
DisplayFilePreview filePreview = (DisplayFilePreview) app.zPageMyFiles.zListItem(
Action.A_LEFTCLICK, fileName);
DialogFileHistory fileHistory = (DialogFileHistory) filePreview
.zPressButton(Button.B_HISTORY);
// Verify file name appears in the history dialog
ZAssert.assertTrue(app.zPageOctopus.zWaitForElementPresent(
DialogFileHistory.Locators.zFileHistoryMenuBar.locator
+ ":contains(" + fileName + ")", "3000"),
"Verify file name appears in the history dialog");
// Verify Close button in the history dialog
ZAssert.assertTrue(app.zPageOctopus.zWaitForElementPresent(
DialogFileHistory.Locators.zFileHistoryCloseBtn.locator, "3000"),
"Verify Close button in the history dialog");
// dismiss the history dialog
fileHistory.zClickButton(Button.B_CLOSE);
}
@AfterMethod(groups = { "always" })
public void testCleanup() {
if (_fileAttached && _fileId != null) {
try {
// Delete it from Server
app.zPageOctopus.deleteItemUsingSOAP(_fileId,
app.zGetActiveAccount());
} catch (Exception e) {
logger.info("Failed while deleting the file", e);
} finally {
_fileId = null;
_fileAttached = false;
}
}
if (_folderIsCreated) {
try {
// Delete it from Server
FolderItem
.deleteUsingSOAP(app.zGetActiveAccount(), _folderName);
} catch (Exception e) {
logger.info("Failed while removing the folder.", e);
} finally {
_folderName = null;
_folderIsCreated = false;
}
}
try {
// Refresh view
// ZimbraAccount account = app.zGetActiveAccount();
// FolderItem item =
// FolderItem.importFromSOAP(account,SystemFolder.Briefcase);
// account.soapSend("<GetFolderRequest xmlns='urn:zimbraMail'><folder l='1' recursive='0'/>"
// + "</GetFolderRequest>");
// account.soapSend("<GetFolderRequest xmlns='urn:zimbraMail' requestId='folders' depth='1' tr='true' view='document'><folder l='"
// + item.getId() + "'/></GetFolderRequest>");
// account.soapSend("<GetActivityStreamRequest xmlns='urn:zimbraMail' id='16'/>");
// app.zGetActiveAccount().accountIsDirty = true;
// app.zPageOctopus.sRefresh();
// Empty trash
app.zPageTrash.emptyTrashUsingSOAP(app.zGetActiveAccount());
} catch (Exception e) {
logger.info("Failed while emptying Trash", e);
}
}
}
|
[
"marco.mariani@nexedi.com"
] |
marco.mariani@nexedi.com
|
e9f65670400ce545eae978cbf5f1b6fd0b5f612c
|
6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386
|
/google/cloud/channel/v1/google-cloud-channel-v1-java/proto-google-cloud-channel-v1-java/src/main/java/com/google/cloud/channel/v1/PriceByResourceOrBuilder.java
|
172c53815272a964618d57117245c091310a6594
|
[
"Apache-2.0"
] |
permissive
|
oltoco/googleapis-gen
|
bf40cfad61b4217aca07068bd4922a86e3bbd2d5
|
00ca50bdde80906d6f62314ef4f7630b8cdb6e15
|
refs/heads/master
| 2023-07-17T22:11:47.848185
| 2021-08-29T20:39:47
| 2021-08-29T20:39:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| true
| 2,712
|
java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/channel/v1/offers.proto
package com.google.cloud.channel.v1;
public interface PriceByResourceOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.cloud.channel.v1.PriceByResource)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Resource Type. Example: SEAT
* </pre>
*
* <code>.google.cloud.channel.v1.ResourceType resource_type = 1;</code>
* @return The enum numeric value on the wire for resourceType.
*/
int getResourceTypeValue();
/**
* <pre>
* Resource Type. Example: SEAT
* </pre>
*
* <code>.google.cloud.channel.v1.ResourceType resource_type = 1;</code>
* @return The resourceType.
*/
com.google.cloud.channel.v1.ResourceType getResourceType();
/**
* <pre>
* Price of the Offer. Present if there are no price phases.
* </pre>
*
* <code>.google.cloud.channel.v1.Price price = 2;</code>
* @return Whether the price field is set.
*/
boolean hasPrice();
/**
* <pre>
* Price of the Offer. Present if there are no price phases.
* </pre>
*
* <code>.google.cloud.channel.v1.Price price = 2;</code>
* @return The price.
*/
com.google.cloud.channel.v1.Price getPrice();
/**
* <pre>
* Price of the Offer. Present if there are no price phases.
* </pre>
*
* <code>.google.cloud.channel.v1.Price price = 2;</code>
*/
com.google.cloud.channel.v1.PriceOrBuilder getPriceOrBuilder();
/**
* <pre>
* Specifies the price by time range.
* </pre>
*
* <code>repeated .google.cloud.channel.v1.PricePhase price_phases = 3;</code>
*/
java.util.List<com.google.cloud.channel.v1.PricePhase>
getPricePhasesList();
/**
* <pre>
* Specifies the price by time range.
* </pre>
*
* <code>repeated .google.cloud.channel.v1.PricePhase price_phases = 3;</code>
*/
com.google.cloud.channel.v1.PricePhase getPricePhases(int index);
/**
* <pre>
* Specifies the price by time range.
* </pre>
*
* <code>repeated .google.cloud.channel.v1.PricePhase price_phases = 3;</code>
*/
int getPricePhasesCount();
/**
* <pre>
* Specifies the price by time range.
* </pre>
*
* <code>repeated .google.cloud.channel.v1.PricePhase price_phases = 3;</code>
*/
java.util.List<? extends com.google.cloud.channel.v1.PricePhaseOrBuilder>
getPricePhasesOrBuilderList();
/**
* <pre>
* Specifies the price by time range.
* </pre>
*
* <code>repeated .google.cloud.channel.v1.PricePhase price_phases = 3;</code>
*/
com.google.cloud.channel.v1.PricePhaseOrBuilder getPricePhasesOrBuilder(
int index);
}
|
[
"bazel-bot-development[bot]@users.noreply.github.com"
] |
bazel-bot-development[bot]@users.noreply.github.com
|
37c95188cb2daf77d1da084d8ab2169473533b56
|
5354abcd77f85fe8d2d88bf8f3875f99d6d889ec
|
/src/main/java/com/lys/utils/SPTCard_Size.java
|
3b02254e1b20185c2dc890348707dabd72fa4644
|
[] |
no_license
|
sengeiou/zjyk
|
5f8c4c87a9bc6ba416f0566306888b50326d1c07
|
7e742e02aa9151cb61e123fa354020d4c0ecc9a0
|
refs/heads/master
| 2023-01-29T01:41:39.312923
| 2020-12-13T03:25:20
| 2020-12-13T03:25:20
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 281
|
java
|
package com.lys.utils;
public class SPTCard_Size
{
public Integer width = 0;
public Integer height = 0;
public static SPTCard_Size create(Integer width, Integer height)
{
SPTCard_Size obj = new SPTCard_Size();
obj.width = width;
obj.height = height;
return obj;
}
}
|
[
"xnktyu@163.com"
] |
xnktyu@163.com
|
f5affd8157b838d3f2ea997cc457cb92944eb053
|
a6ee43db1ecf659c47967d3334ba15e504947a5e
|
/src/main/java/com/leetcode/maximum_average_subarray_i/Solution2.java
|
38889f092e80255d16453ad0d42eaaa698728993
|
[
"MIT"
] |
permissive
|
magnetic1/leetcode
|
fa3d640b640b4626705272bbcafc31c082fa6138
|
4577439aac13f095bc1f20adec5521520b3bef70
|
refs/heads/master
| 2023-04-21T10:28:10.320263
| 2021-05-06T12:22:57
| 2021-05-06T12:22:57
| 230,269,263
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 490
|
java
|
/**
* Leetcode - maximum_average_subarray_i
*/
package com.leetcode.maximum_average_subarray_i;
import java.util.*;
import com.ciaoshen.leetcode.util.*;
/**
* log instance is defined in Solution interface
* this is how slf4j will work in this class:
* =============================================
* if (log.isDebugEnabled()) {
* log.debug("a + b = {}", sum);
* }
* =============================================
*/
class Solution2 implements Solution {
}
|
[
"1228740123@qq.com"
] |
1228740123@qq.com
|
6dda106d587f6b2c142ba71a98db9d4d91d47f68
|
750245000fbe3caf06509300978d0a7d275ed79f
|
/lion-demo/lion-demo-consumer/src/main/java/com/lion/demo/consumer/temp/entity/TempTransactional.java
|
1f4cf86cb250b69d1866c6a4f9291622694264fa
|
[
"MIT"
] |
permissive
|
gxkai/lion
|
0e6ed946d281c272e0208124012f0bddbf03ca5e
|
692280c0a8f51b1cae64be28d65e6d02381d8b56
|
refs/heads/master
| 2021-04-16T14:59:21.634575
| 2020-03-29T08:30:05
| 2020-03-29T08:30:05
| 249,364,330
| 0
| 0
|
MIT
| 2020-03-23T07:35:37
| 2020-03-23T07:35:37
| null |
UTF-8
|
Java
| false
| false
| 873
|
java
|
package com.lion.demo.consumer.temp.entity;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
*
* </p>
*
* @author Yanzheng https://github.com/micyo202
* @since 2020-02-15
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TempTransactional extends Model<TempTransactional> {
private static final long serialVersionUID=1L;
private String id;
private String name;
private Boolean valid;
@TableField("createTime")
private LocalDateTime createTime;
private LocalDateTime updateTime;
@Override
protected Serializable pkVal() {
return this.id;
}
}
|
[
"micyo202@163.com"
] |
micyo202@163.com
|
db83c9fa4195c059b023220a1d0b831ff3066d8c
|
1f2e8cd3edb167900c33c0474d14a128a4a33e4c
|
/changgou-parent/changgou-service/changgou-service-goods/src/main/java/jack/changgou/service/impl/ParaServiceImpl.java
|
796a5a5ca197ba93286511882185ababc3c09f23
|
[] |
no_license
|
jack13163/changgou
|
b13039fc4f582598adea8d90980b4b44c6abfac2
|
6379bd4ef6f06f081c73b3a8db224b7e1821967d
|
refs/heads/master
| 2022-12-04T01:35:45.310842
| 2020-08-26T07:51:54
| 2020-08-26T07:51:54
| 288,689,914
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,832
|
java
|
package jack.changgou.service.impl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import jack.changgou.dao.ParaMapper;
import jack.changgou.dao.CategoryMapper;
import jack.changgou.goods.pojo.Category;
import jack.changgou.goods.pojo.Para;
import jack.changgou.service.ParaService;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;
import java.util.List;
@Service
public class ParaServiceImpl implements ParaService {
@Autowired
ParaMapper paraMapper;
@Autowired
CategoryMapper categoryMapper;
@Override
public List<Para> getAllPara() {
return paraMapper.selectAll();
}
@Override
public Para getParaById(Integer id) {
return paraMapper.selectByPrimaryKey(id);
}
@Override
public void addPara(Para para) {
paraMapper.insertSelective(para);
}
@Override
public void modefyPara(Para para) {
paraMapper.updateByPrimaryKey(para);
}
@Override
public void deleteParaById(Integer id) {
paraMapper.deleteByPrimaryKey(id);
}
/**
* 创建搜索条件
* @param para
* @return
*/
public Example createCriteria(Para para){
// 创建条件构造器
Example example = new Example(Para.class);
Example.Criteria criteria = example.createCriteria();
// 按照参数名查询
if(!StringUtils.isEmpty(para.getName())){
criteria.andEqualTo("name", para.getName());
}
// 按照模板Id查询
if(para.getTemplateId() != null){
criteria.andEqualTo("templateId", para.getTemplateId());
}
return example;
}
@Override
public List<Para> searchPara(Para para) {
return paraMapper.select(para);
}
@Override
public PageInfo<Para> getAllParaPaged(Integer page, Integer size) {
PageHelper.startPage(page, size);
List<Para> paras = paraMapper.selectAll();
return new PageInfo<>(paras);
}
@Override
public PageInfo<Para> searchParaPaged(Para para, Integer page, Integer size) {
PageHelper.startPage(page, size);
List<Para> paras = paraMapper.selectByExample(createCriteria(para));
return new PageInfo<>(paras);
}
@Override
public List<Para> getParasByCategoryId(Integer id) {
// 先查询分类表获取模板Id
Category category = categoryMapper.selectByPrimaryKey(id);
// 再查询参数表获取模板Id对应的所有参数
Para para = new Para();
para.setTemplateId(category.getTemplateId());
List<Para> paras = paraMapper.select(para);
return paras;
}
}
|
[
"18163132129@163.com"
] |
18163132129@163.com
|
f5b6d5ee4e6f6050bdf112ed7fc9b1617fd75f8c
|
33e7e854745addbeeb53d5702793240d1927d583
|
/gulimall-coupon/src/main/java/com/honyelchak/gulimall/coupon/service/SeckillPromotionService.java
|
27cd5bea3031fcca8acf9e1733d4a0d2b1bc07c3
|
[
"Apache-2.0"
] |
permissive
|
Honyelchak/gulimall
|
64f1acfd134ca49dbe3ec81a9cbb5d639374405e
|
a6c21aa832a76f6816908dcf316177d0d602703c
|
refs/heads/main
| 2023-03-03T18:45:35.318563
| 2021-02-19T12:11:31
| 2021-02-19T12:11:31
| 333,087,073
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 494
|
java
|
package com.honyelchak.gulimall.coupon.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.honyelchak.common.utils.PageUtils;
import com.honyelchak.gulimall.coupon.entity.SeckillPromotionEntity;
import java.util.Map;
/**
* 秒杀活动
*
* @author honyelchak
* @email 554417388@qq.com
* @date 2021-01-27 15:11:37
*/
public interface SeckillPromotionService extends IService<SeckillPromotionEntity> {
PageUtils queryPage(Map<String, Object> params);
}
|
[
"554417388@qq.com"
] |
554417388@qq.com
|
b2b78b668e5c3d22060f5b1c925d68e91b118ffc
|
3a69a03a93f7534757e89ba1693c227dfe393c69
|
/src/main/java/com/fly/reflect/Main.java
|
8e0f96b0934e2cf75962b6ed37737dbd39ac6f11
|
[] |
no_license
|
yunfeiSong/ssm
|
817e4b9a279b452d6dcb94a9520784d4f4373bfe
|
a0168348c43d761b32ebd1d9890ba946be6a0c70
|
refs/heads/master
| 2021-06-07T19:37:11.622091
| 2018-09-11T10:00:16
| 2018-09-11T10:00:16
| 147,804,771
| 1
| 0
| null | 2021-04-30T07:53:30
| 2018-09-07T09:49:33
|
Java
|
UTF-8
|
Java
| false
| false
| 2,910
|
java
|
package com.fly.reflect;
import com.fly.reflect.proxy.CGLIBProxyExample;
import com.fly.reflect.proxy.HelloWorld;
import com.fly.reflect.proxy.JDKProxyExample;
import java.lang.reflect.Method;
public class Main {
public static void main(String[] args) {
//System.out.println("Hello World!");
//getInstance();
//getInstance2().getName();
//reflectMethod();
//reflectObject();
//testJDKProxy();
CGLIBProxy();
}
public static void CGLIBProxy(){
CGLIBProxyExample CGLIBProxy = new CGLIBProxyExample();
ReflectServiceImpl2 proxy = (ReflectServiceImpl2) CGLIBProxy.getProxy(ReflectServiceImpl2.class);
proxy.sayHello("张三");
}
/**
* 测试JDK代理实例
*/
public static void testJDKProxy() {
//JDKProxyExample jdkProxy = new JDKProxyExample();
JDKProxyExample jdkProxy = null;
try {
jdkProxy = (JDKProxyExample) Class.forName("com.fly.reflect.proxy.JDKProxyExample").newInstance();
} catch (Exception e) {
e.printStackTrace();
}
//HelloWorld proxy = (HelloWorld) jdkProxy.bind(new HelloWorldImpl());
HelloWorld proxy = (HelloWorld) jdkProxy.bind(new ReflectServiceImpl());
proxy.sayHelloWorld();
}
/**
* 通过反射生成对象和其方法
*
* @return 生成的对象
*/
public static Object reflectObject() {
ReflectServiceImpl2 returnObj = null;
try {
returnObj = (ReflectServiceImpl2) Class.forName("com.fly.reflect.ReflectServiceImpl2").newInstance();
Method method = returnObj.getClass().getMethod("sayHello", String.class);
method.invoke(returnObj, "张三");
} catch (Exception e) {
e.printStackTrace();
}
return returnObj;
}
/**
* class.getMethod() 反射生成方法
*/
public static Object reflectMethod() {
Object returnObj = null;
ReflectServiceImpl target = new ReflectServiceImpl();
try {
//Method method = ReflectServiceImpl.class.getMethod("sayHello", String.class);
Method method = target.getClass().getMethod("sayHello", String.class);
returnObj = method.invoke(target, "张三");
} catch (Exception e) {
e.printStackTrace();
}
return returnObj;
}
/**
* 反射生成有参对象
*/
public static ReflectServiceImpl2 getInstance2() {
ReflectServiceImpl2 object = null;
try {
object = (ReflectServiceImpl2) Class.forName("com.fly.reflect.ReflectServiceImpl2").getConstructor(String.class).newInstance("张三");
} catch (Exception e) {
e.printStackTrace();
}
return object;
}
/**
* Class.forName 反射生成对象
*/
public static ReflectServiceImpl getInstance() {
ReflectServiceImpl object = null;
try {
object = (ReflectServiceImpl) Class.forName("com.fly.reflect.ReflectServiceImpl").newInstance();
} catch (Exception e) {
e.printStackTrace();
}
return object;
}
}
|
[
"you@example.com"
] |
you@example.com
|
dffe585106b78f9176f7ffd44a67fd74746bdb44
|
c9d9754a41fdb4b3015a639120a479cb44315aa9
|
/Source/com/drew/imaging/FileType.java
|
c9b27966fdfd806e068ce7f13911d066f6c3f218
|
[
"Apache-2.0"
] |
permissive
|
JaDCN/metadata-extractor
|
30e76230d373e1618639db1481de6077fbe53157
|
3c2e802ca6fb3590964377c16dfecdae6550645a
|
refs/heads/master
| 2021-01-18T08:50:14.787479
| 2015-02-01T22:31:11
| 2015-02-01T22:31:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,266
|
java
|
/*
* Copyright 2002-2015 Drew Noakes
*
* 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.
*
* More information about this project is available at:
*
* https://drewnoakes.com/code/exif/
* https://github.com/drewnoakes/metadata-extractor
*/
package com.drew.imaging;
/**
* Enumeration of supported image file formats.
*/
public enum FileType
{
Unknown,
Jpeg,
Tiff,
Psd,
Png,
Bmp,
Gif,
Ico,
/** Sony camera raw. */
Arw,
/** Canon camera raw, version 1. */
Crw,
/** Canon camera raw, version 2. */
Cr2,
/** Nikon camera raw. */
Nef,
/** Olympus camera raw. */
Orf,
/** FujiFilm camera raw. */
Raf,
/** Panasonic camera raw. */
Rw2
}
|
[
"git@drewnoakes.com"
] |
git@drewnoakes.com
|
784975f3ca3994e979861488252ea70dcb511f19
|
48ff3362a8c2313eff5b3f855a3d98cc5701644b
|
/ParallaxRefresh/app/src/main/java/com/yanzhenjie/parallaxrefresh/widget/ParallaxPtrFrameLayout.java
|
2cd9238bed4d6138eafc21b3831ff367cb1608a9
|
[
"Apache-2.0"
] |
permissive
|
gaoyufish/LiveSourceCode
|
0e0d953697d3cad41202dd96607c5d30d85e2f74
|
e7c96ef0cc82a7428c285ff87178ea92564c8e0e
|
refs/heads/master
| 2021-01-01T18:09:11.493068
| 2017-04-13T03:42:15
| 2017-04-13T03:42:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,112
|
java
|
/*
* AUTHOR:Yan Zhenjie
*
* DESCRIPTION:create the File, and add the content.
*
* Copyright © ZhiMore. All Rights Reserved
*
*/
package com.yanzhenjie.parallaxrefresh.widget;
import android.content.Context;
import android.util.AttributeSet;
import in.srain.cube.views.ptr.PtrFrameLayout;
/**
* Created by Yan Zhenjie on 2016/11/21.
*/
public class ParallaxPtrFrameLayout extends PtrFrameLayout {
private ParallaxHeader mParallaxHeader;
public ParallaxPtrFrameLayout(Context context) {
super(context);
initViews();
}
public ParallaxPtrFrameLayout(Context context, AttributeSet attrs) {
super(context, attrs);
initViews();
}
public ParallaxPtrFrameLayout(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
initViews();
}
private void initViews() {
mParallaxHeader = new ParallaxHeader(getContext());
setHeaderView(mParallaxHeader);
addPtrUIHandler(mParallaxHeader);
}
public ParallaxHeader getHeader() {
return mParallaxHeader;
}
}
|
[
"smallajax@foxmail.com"
] |
smallajax@foxmail.com
|
418c0478c1f11388515e4474fd893faf5ca2437f
|
e457376950380dd6e09e58fa7bee3d09e2a0f333
|
/python-impl/src/main/java/com/jetbrains/python/impl/packaging/PyPackageService.java
|
d5c4bec9bc463bc92adfc5e1aee2898de9706f6d
|
[
"Apache-2.0"
] |
permissive
|
consulo/consulo-python
|
b816b7b9a4b346bee5d431ef6c39fdffe40adf40
|
e191cd28f043c1211eb98af42d3c0a40454b2d98
|
refs/heads/master
| 2023-08-09T02:27:03.585942
| 2023-07-09T08:33:47
| 2023-07-09T08:33:47
| 12,317,018
| 0
| 0
|
Apache-2.0
| 2020-06-05T17:16:50
| 2013-08-23T07:16:43
|
Java
|
UTF-8
|
Java
| false
| false
| 3,049
|
java
|
/*
* Copyright 2000-2016 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.
*/
package com.jetbrains.python.impl.packaging;
import consulo.annotation.component.ComponentScope;
import consulo.annotation.component.ServiceAPI;
import consulo.annotation.component.ServiceImpl;
import consulo.component.persist.*;
import consulo.ide.ServiceManager;
import consulo.util.collection.ContainerUtil;
import consulo.util.collection.Lists;
import consulo.util.xml.serializer.XmlSerializerUtil;
import jakarta.inject.Singleton;
import java.util.List;
import java.util.Map;
/**
* User: catherine
*/
@State(name = "PyPackageService", storages = @Storage(file = StoragePathMacros.APP_CONFIG + "/py_packages.xml", roamingType = RoamingType.DISABLED))
@ServiceAPI(ComponentScope.APPLICATION)
@ServiceImpl
@Singleton
public class PyPackageService implements PersistentStateComponent<PyPackageService> {
public Map<String, Boolean> sdkToUsersite = ContainerUtil.newConcurrentMap();
public List<String> additionalRepositories = Lists.newLockFreeCopyOnWriteList();
public String virtualEnvBasePath;
public Boolean PYPI_REMOVED = false;
public long LAST_TIME_CHECKED = 0;
@Override
public PyPackageService getState() {
return this;
}
@Override
public void loadState(PyPackageService state) {
XmlSerializerUtil.copyBean(state, this);
}
public void addSdkToUserSite(String sdk, boolean useUsersite) {
sdkToUsersite.put(sdk, useUsersite);
}
public void addRepository(String repository) {
if (repository == null) {
return;
}
if (PyPIPackageUtil.isPyPIRepository(repository)) {
PYPI_REMOVED = false;
}
else {
if (!repository.endsWith("/")) {
repository += "/";
}
additionalRepositories.add(repository);
}
}
public void removeRepository(final String repository) {
if (additionalRepositories.contains(repository)) {
additionalRepositories.remove(repository);
}
else if (PyPIPackageUtil.isPyPIRepository(repository)) {
PYPI_REMOVED = true;
}
}
public boolean useUserSite(String sdk) {
if (sdkToUsersite.containsKey(sdk)) {
return sdkToUsersite.get(sdk);
}
return false;
}
public static PyPackageService getInstance() {
return ServiceManager.getService(PyPackageService.class);
}
public String getVirtualEnvBasePath() {
return virtualEnvBasePath;
}
public void setVirtualEnvBasePath(String virtualEnvBasePath) {
this.virtualEnvBasePath = virtualEnvBasePath;
}
}
|
[
"vistall.valeriy@gmail.com"
] |
vistall.valeriy@gmail.com
|
4ca07e71dab9f30cc1eee3965e8327540f32d4dd
|
2bc8c27f0ecc5b8dd67ebca66a1e106c7b4126fc
|
/target/cartridge-test/actual/java/src/com/poesys/db/memcached_test/sql/QueryAllTestChildChild.java
|
0dd952001ed70c1b066ed998a958fd0ca61f1202
|
[] |
no_license
|
Poesys-Associates/poesys-cartridge
|
f85b3d63d1c8966ec2cfdb7eef564e21b23d3607
|
207f39378ff2bd354f9201049d7c484ee5f52279
|
refs/heads/master
| 2020-12-09T01:05:26.488830
| 2017-05-11T15:44:55
| 2017-05-11T15:44:55
| 26,512,382
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 875
|
java
|
/**
* Copyright 2009 Poesys Associates. All rights reserved.
*/
// Template: QueryAll.vsl
package com.poesys.db.memcached_test.sql;
/**
* <p>
* An all-object query of a TestChildChild using its primary key. This class
* is the concrete subclass of the generated abstract class
* AbstractQueryAllTestChildChild.
* </p>
* <p>
* Make any changes to query behavior by overriding methods here rather than
* changing the abstract superclass; AndroMDA will overwrite that class when you
* run it but will never overwrite this concrete subclass.
* </p>
* <p>
* This class contains the specification of the SQL statement that queries all
* the TestChildChild objects in the database. Use caution with this query.
* </p>
${dto.getDocumentation}
*
* @author Poesys/DB Cartridge
*/
public class QueryAllTestChildChild extends AbstractQueryAllTestChildChild {
}
|
[
"muller@phoenixbioinformatics.org"
] |
muller@phoenixbioinformatics.org
|
b91fcdee701ee43762b421e8aa12795e7b66c5a4
|
bb586e1b53b91279cd6751c04c32be91b2635e52
|
/src/manager/orderManager/model/MngCommunication.java
|
19cffc029aa8d6f52afeaa2cc0743360254eeb25
|
[] |
no_license
|
Monkey-mi/outsideeasyredis
|
3dff4b3ac337948af6b7c86643f515b44b6b28c6
|
e0fd815fe95894a37a26a9ce3edf0e6b704eb076
|
refs/heads/master
| 2021-01-11T18:44:18.130885
| 2017-01-22T08:33:52
| 2017-01-22T08:33:52
| 79,613,536
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,490
|
java
|
package manager.orderManager.model;
import java.util.Date;
public class MngCommunication {
private int id;
private int bus_id;
private int parent_id;
private Date create_time;
private int company_id;
private String com_message;
private int module_type;
private int is_look;
private String company_name;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getBus_id() {
return bus_id;
}
public void setBus_id(int bus_id) {
this.bus_id = bus_id;
}
public int getParent_id() {
return parent_id;
}
public void setParent_id(int parent_id) {
this.parent_id = parent_id;
}
public Date getCreate_time() {
return create_time;
}
public void setCreate_time(Date create_time) {
this.create_time = create_time;
}
public String getCom_message() {
return com_message;
}
public void setCom_message(String com_message) {
this.com_message = com_message;
}
public int getModule_type() {
return module_type;
}
public void setModule_type(int module_type) {
this.module_type = module_type;
}
public int getIs_look() {
return is_look;
}
public void setIs_look(int is_look) {
this.is_look = is_look;
}
public int getCompany_id() {
return company_id;
}
public void setCompany_id(int company_id) {
this.company_id = company_id;
}
public String getCompany_name() {
return company_name;
}
public void setCompany_name(String company_name) {
this.company_name = company_name;
}
}
|
[
"mishengliang@live.com"
] |
mishengliang@live.com
|
891367904e11f93dcd728e3c5a861569a27eccaf
|
b7e6c469f45ed63d713b7e7020474dfb9ec026a7
|
/src/com/lianmeng/core/product/parser/ProductDetailParser.java
|
d4e218aa8eff979a5699bed74815218d9aa6f93d
|
[] |
no_license
|
Georgekaren/LMTrade_Android_SVN
|
bd5ead32c0a0f651bdc7dc4cc0158404aa7538bc
|
38d76fcdfb3c781869cd525a8e837b599c0b0353
|
refs/heads/master
| 2021-01-10T17:31:37.042850
| 2016-03-23T02:53:47
| 2016-03-23T02:53:47
| 48,981,807
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 689
|
java
|
package com.lianmeng.core.product.parser;
import org.json.JSONException;
import org.json.JSONObject;
import com.alibaba.fastjson.JSON;
import com.lianmeng.core.framework.sysparser.BaseParser;
import com.lianmeng.core.product.vo.ProductDetail;
public class ProductDetailParser extends BaseParser<ProductDetail> {
@Override
public ProductDetail parseJSON(String paramString) throws JSONException {
if(super.checkResponse(paramString)!=null){
JSONObject jsonObject = new JSONObject(paramString);
String product = jsonObject.getString("DATA_INFO");
ProductDetail productDetail = JSON.parseObject(product,ProductDetail.class);
return productDetail;
}
return null;
}
}
|
[
"ad181600@qq.com"
] |
ad181600@qq.com
|
c5e131a82e879edcb313825c3cb0cb0c5f6f73ae
|
9e5a398d20e1a7d485c0767fd38aca1ca6a1d7fb
|
/1_6.h12_dev/sonos.jad/src/ch/qos/logback/core/net/server/ServerSocketListener.java
|
0f0c208521c93e49a8879b85f97275b404265cb2
|
[] |
no_license
|
witokondoria/OpenWrt_Luci_Lua
|
6690e0f9cce38676ea93d176a7966546fd03fd32
|
07d1a20e1a950a330b51625b89cb6466ffaec84b
|
refs/heads/master
| 2021-06-01T18:25:09.937542
| 2016-08-26T13:14:10
| 2016-08-26T13:14:10
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,415
|
java
|
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
package ch.qos.logback.core.net.server;
import ch.qos.logback.core.util.CloseUtil;
import java.io.IOException;
import java.net.*;
// Referenced classes of package ch.qos.logback.core.net.server:
// ServerListener, Client
public abstract class ServerSocketListener
implements ServerListener
{
public ServerSocketListener(ServerSocket serversocket)
{
serverSocket = serversocket;
}
private String socketAddressToString(SocketAddress socketaddress)
{
String s = socketaddress.toString();
int i = s.indexOf("/");
if(i >= 0)
s = s.substring(i + 1);
return s;
}
public Client acceptClient()
throws IOException
{
Socket socket = serverSocket.accept();
return createClient(socketAddressToString(socket.getRemoteSocketAddress()), socket);
}
public void close()
{
CloseUtil.closeQuietly(serverSocket);
}
protected abstract Client createClient(String s, Socket socket)
throws IOException;
public String toString()
{
return socketAddressToString(serverSocket.getLocalSocketAddress());
}
private final ServerSocket serverSocket;
}
|
[
"huangruohai2010@gmail.com"
] |
huangruohai2010@gmail.com
|
a5a9b708a2f47f3a7719ee98fdfbce2f9a315f69
|
862c1ab788fe70c2dae45d2a4593e3b89afcdc0a
|
/springcode/spring-framework/spring-orm/src/test/java/org/springframework/orm/jpa/EntityManagerFactoryUtilsTests.java
|
3dcdb3a0a66d383870e17ecc2e8ab51aa3000588
|
[
"Apache-2.0"
] |
permissive
|
ldywork/sourcecode
|
801c1dffa40df1aa4a977f78798a1901644ebb84
|
7c17edfaeaca4d21b8ce8db6c5d0c475b4d44f4c
|
refs/heads/master
| 2022-12-22T13:25:49.881128
| 2019-10-27T09:48:49
| 2019-10-27T09:48:49
| 216,370,240
| 0
| 0
| null | 2022-12-16T01:35:34
| 2019-10-20T13:56:57
|
HTML
|
UTF-8
|
Java
| false
| false
| 5,920
|
java
|
/*
* Copyright 2002-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.orm.jpa;
import javax.persistence.EntityExistsException;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityNotFoundException;
import javax.persistence.NoResultException;
import javax.persistence.NonUniqueResultException;
import javax.persistence.OptimisticLockException;
import javax.persistence.PersistenceException;
import javax.persistence.TransactionRequiredException;
import org.junit.Test;
import org.springframework.dao.DataAccessException;
import org.springframework.dao.DataIntegrityViolationException;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.dao.IncorrectResultSizeDataAccessException;
import org.springframework.dao.InvalidDataAccessApiUsageException;
import org.springframework.transaction.support.TransactionSynchronizationManager;
import static org.junit.Assert.*;
import static org.mockito.BDDMockito.*;
/**
* @author Costin Leau
* @author Rod Johnson
* @author Juergen Hoeller
* @author Phillip Webb
*/
public class EntityManagerFactoryUtilsTests {
/*
* Test method for
* 'org.springframework.orm.jpa.EntityManagerFactoryUtils.doGetEntityManager(EntityManagerFactory)'
*/
@Test1
public void testDoGetEntityManager() {
// test null assertion
try {
EntityManagerFactoryUtils.doGetTransactionalEntityManager(null, null);
fail("expected exception");
}
catch (IllegalArgumentException ex) {
// it's okay
}
EntityManagerFactory factory = mock(EntityManagerFactory.class);
// no tx active
assertNull(EntityManagerFactoryUtils.doGetTransactionalEntityManager(factory, null));
assertTrue(TransactionSynchronizationManager.getResourceMap().isEmpty());
}
@Test1
public void testDoGetEntityManagerWithTx() throws Exception {
try {
EntityManagerFactory factory = mock(EntityManagerFactory.class);
EntityManager manager = mock(EntityManager.class);
TransactionSynchronizationManager.initSynchronization();
given(factory.createEntityManager()).willReturn(manager);
// no tx active
assertSame(manager, EntityManagerFactoryUtils.doGetTransactionalEntityManager(factory, null));
assertSame(manager, ((EntityManagerHolder)TransactionSynchronizationManager.unbindResource(factory)).getEntityManager());
}
finally {
TransactionSynchronizationManager.clearSynchronization();
}
assertTrue(TransactionSynchronizationManager.getResourceMap().isEmpty());
}
@Test1
public void testTranslatesIllegalStateException() {
IllegalStateException ise = new IllegalStateException();
DataAccessException dex = EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(ise);
assertSame(ise, dex.getCause());
assertTrue(dex instanceof InvalidDataAccessApiUsageException);
}
@Test1
public void testTranslatesIllegalArgumentException() {
IllegalArgumentException iae = new IllegalArgumentException();
DataAccessException dex = EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(iae);
assertSame(iae, dex.getCause());
assertTrue(dex instanceof InvalidDataAccessApiUsageException);
}
/**
* We do not convert unknown exceptions. They may result from user code.
*/
@Test1
public void testDoesNotTranslateUnfamiliarException() {
UnsupportedOperationException userRuntimeException = new UnsupportedOperationException();
assertNull(
"Exception should not be wrapped",
EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(userRuntimeException));
}
/*
* Test method for
* 'org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessException(PersistenceException)'
*/
@Test1
@SuppressWarnings("serial")
public void testConvertJpaPersistenceException() {
EntityNotFoundException entityNotFound = new EntityNotFoundException();
assertSame(JpaObjectRetrievalFailureException.class,
EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(entityNotFound).getClass());
NoResultException noResult = new NoResultException();
assertSame(EmptyResultDataAccessException.class,
EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(noResult).getClass());
NonUniqueResultException nonUniqueResult = new NonUniqueResultException();
assertSame(IncorrectResultSizeDataAccessException.class,
EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(nonUniqueResult).getClass());
OptimisticLockException optimisticLock = new OptimisticLockException();
assertSame(JpaOptimisticLockingFailureException.class,
EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(optimisticLock).getClass());
EntityExistsException entityExists = new EntityExistsException("foo");
assertSame(DataIntegrityViolationException.class,
EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(entityExists).getClass());
TransactionRequiredException transactionRequired = new TransactionRequiredException("foo");
assertSame(InvalidDataAccessApiUsageException.class,
EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(transactionRequired).getClass());
PersistenceException unknown = new PersistenceException() {
};
assertSame(JpaSystemException.class,
EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(unknown).getClass());
}
}
|
[
"ldylife@163.com"
] |
ldylife@163.com
|
d07b5a80fd5a625154ff4282e1591bb86bdd5094
|
ea6cf2dd1c4d285bb153806297f68f66c96d34fd
|
/src/main/java/base/Driver.java
|
8c6b7b919a7c71909867f3cef19193803ab2f24f
|
[] |
no_license
|
Museua/hotlineProject
|
feca39fb0a109818ab4cc74da6850a53f3809163
|
df51f6be76b555bcdb171a5fbcdeb96f8432d437
|
refs/heads/master
| 2023-05-11T01:57:52.891775
| 2020-07-18T05:06:19
| 2020-07-18T05:06:19
| 279,129,311
| 0
| 0
| null | 2023-05-09T18:40:07
| 2020-07-12T18:59:18
|
Java
|
UTF-8
|
Java
| false
| false
| 1,040
|
java
|
package base;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.remote.RemoteWebDriver;
import java.net.URL;
public class Driver {
private WebDriver driver;
public Driver(){
}
public WebDriver getDriver() {
return driver;
}
public void setDriver(WebDriver driver) {
this.driver = driver;
}
public void close() {
if (!(hasLive() || hasQuit())) {
driver.close();
}
}
public void stop() {
try {
driver.quit();
driver = null;
} catch (Exception e) {
System.out.println("Catch stop - " + e);
}
}
public boolean hasQuit() {
return ((RemoteWebDriver) driver).getSessionId() == null;
}
public boolean hasLive() {
return driver == null;
}
public Object setDriver(URL url, ChromeOptions options) {
this.driver = new RemoteWebDriver(url, options);
return this.driver;
}
}
|
[
"1234"
] |
1234
|
b3e0a7d342405ebb8b1bef5d102815d6dfce12ce
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/large-multiproject/project58/src/test/java/org/gradle/test/performance58_1/Test58_82.java
|
765b0ad0e12a1f48dcd6fe4f4974bd7a5dcd8b5b
|
[] |
no_license
|
gradle/performance-comparisons
|
b0d38db37c326e0ce271abebdb3c91769b860799
|
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
|
refs/heads/master
| 2023-08-14T19:24:39.164276
| 2022-11-24T05:18:33
| 2022-11-24T05:18:33
| 80,121,268
| 17
| 15
| null | 2022-09-30T08:04:35
| 2017-01-26T14:25:33
| null |
UTF-8
|
Java
| false
| false
| 289
|
java
|
package org.gradle.test.performance58_1;
import static org.junit.Assert.*;
public class Test58_82 {
private final Production58_82 production = new Production58_82("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
9ee66cb2c143ba748f538c468cec29eb8ca9d083
|
40391e6f67250a5c329c11cd538c2d416e7f1395
|
/rd/tag/2016.1.21/Server/ServerCode/hawkjava/GameServer/src/com/hawk/game/module/alliance/AllianceBaseHireHandler.java
|
713f8d440597a7be8c8089034168558173af1289
|
[] |
no_license
|
hw233/Java_CurrentProject
|
cd92c27924448714e32221bcb1cb96ca9ddd5da7
|
0ed6956a79e42ad1a75172315aba86700fbe14e9
|
refs/heads/master
| 2023-03-15T10:20:43.315720
| 2016-11-10T06:32:25
| 2016-11-10T06:32:25
| 136,134,984
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,656
|
java
|
package com.hawk.game.module.alliance;
import org.hawk.app.HawkAppObj;
import org.hawk.msg.HawkMsg;
import org.hawk.msg.HawkMsgHandler;
import com.hawk.game.entity.AllianceBaseEntity;
import com.hawk.game.entity.AllianceEntity;
import com.hawk.game.entity.PlayerAllianceEntity;
import com.hawk.game.entity.PlayerAllianceEntity.BaseMonsterInfo;
import com.hawk.game.manager.AllianceManager;
import com.hawk.game.player.Player;
import com.hawk.game.util.AllianceUtil;
public class AllianceBaseHireHandler implements HawkMsgHandler{
/**
* 消息处理器
*
* @param appObj
* @param msg
* @return
*/
@Override
public boolean onMessage(HawkAppObj appObj, HawkMsg msg)
{
Player player = (Player) msg.getParam(0);
int monsterId = (int) msg.getParam(1);
if(player.getAllianceId() == 0){
return true;
}
AllianceEntity allianceEntity = AllianceManager.getInstance().getAlliance(player.getAllianceId());
if (allianceEntity == null) {
return true;
}
PlayerAllianceEntity playerAllianceEntity = allianceEntity.getMember(player.getId());
if (playerAllianceEntity == null) {
return true;
}
AllianceBaseEntity allianceBaseEntity = allianceEntity.getAllianceBaseEntityMap().get(monsterId);
if (allianceBaseEntity != null) {
// 找到对应的怪
for (BaseMonsterInfo baseMonsterInfo : playerAllianceEntity.getBaseMonsterInfo().values()) {
if (baseMonsterInfo.getMonsterId() == monsterId) {
baseMonsterInfo.addReward(AllianceUtil.getAllianceBaseConfig(allianceBaseEntity.getBp()).getCoinHireget());
playerAllianceEntity.notifyUpdate(true);
break;
}
}
}
return true;
}
}
|
[
"xuelong9009@qq.com"
] |
xuelong9009@qq.com
|
405bbe84ecfff26dc5bd793cdef4151d8cfe2bb3
|
e1b72551e4c89f95674447cc62c5e4fea34902fe
|
/mycrawler-tutorial/mycrawler-tutorial-spring/Spring Transaction Managament/2. Managing Transactions Declaratively/Managing Transactions in Hibernate/using Annotations/springTransactions/src/main/java/com/soni/dao/BookPurchaseDaoImpl.java
|
39e0f99cbc02178e2e53cbd44bf362f4f62e5d90
|
[
"Apache-2.0"
] |
permissive
|
yrj2011/mycrawler
|
b45f1e749ea12a92a75dbec9c99faacf1a2b0a0a
|
fcba78a76237eaf181e36fbaa731d897cb73d803
|
refs/heads/master
| 2020-04-06T04:17:34.180301
| 2017-08-30T09:39:03
| 2017-08-30T09:39:03
| 95,403,205
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,207
|
java
|
package com.soni.dao;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import com.soni.modal.Account;
import com.soni.modal.Book;
import com.soni.modal.BookStock;
@Transactional(propagation=Propagation.REQUIRED)
@Repository
@Getter
@Setter
public class BookPurchaseDaoImpl implements BookPurchaseDao {
@Autowired
private SessionFactory sessionFactory;
private Session session;
@Override
@Transactional(propagation=Propagation.REQUIRED, rollbackFor=Exception.class)
public void bookPurchase(int bookId, int userId, String userPass) throws Exception {
if (!authenticate(userId, userPass)) {
throw new Exception("Unauthorized Access");
}
session = getSessionFactory().getCurrentSession();
Book book = (Book) session.load(Book.class, bookId);
BookStock bookStock = (BookStock) session.load(BookStock.class, bookId);
Account account = (Account) session.load(Account.class, userId);
// update book stock, reduce the stock by 1
bookStock.setBookStock(bookStock.getBookStock() - 1);
session.update(bookStock);
// update user account, deduct balance
account.setBalance(account.getBalance() - book.getBookPrice());
session.update(account);
if(bookStock.getBookStock()<0){
throw new Exception("This book is out of stock");
}
if(account.getBalance()<0){
throw new Exception("You don't have enough balance in your account");
}
}
public boolean authenticate(int userId, String userPass) {
session = sessionFactory.openSession();
String hql = "select usr.userPass from User usr where usr.userId=:userId";
Query query = session.createQuery(hql);
query.setParameter("userId", userId);
String storedPassword = (String) query.list().get(0);
if (userPass.equals(storedPassword)) {
return true;
}
return false;
}
}
|
[
"root@localhost.localdomain"
] |
root@localhost.localdomain
|
9cd63ed767e52c8f3ea036c44cbf286796e83445
|
cce2eadb81c78617bbe87a60e4cb0ad52af043a8
|
/entity-view/testsuite/src/test/java/com/blazebit/persistence/view/collections/basic/model/BasicDocumentCollectionsView.java
|
3e11757187de7afdb4feffe5cb40456a3e8f175e
|
[
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] |
permissive
|
cybernetics/blaze-persistence
|
c88c35214c4ca24989095c6a7b30986ad49a9ce2
|
2e4270829aaddda5fa2ca2a4a15d89dd549bf8cf
|
refs/heads/master
| 2020-12-25T15:29:44.129281
| 2014-08-22T00:04:12
| 2014-08-22T00:04:12
| 23,229,185
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,375
|
java
|
/*
* Copyright 2014 Blazebit.
*
* 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.blazebit.persistence.view.collections.basic.model;
import com.blazebit.persistence.view.EntityView;
import com.blazebit.persistence.view.Mapping;
import com.blazebit.persistence.view.collections.entity.DocumentForCollections;
import com.blazebit.persistence.view.collections.entity.PersonForCollections;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
*
* @author Christian Beikov
* @since 1.0
*/
@EntityView(DocumentForCollections.class)
public interface BasicDocumentCollectionsView {
public String getName();
@Mapping("contacts")
public Map<Integer, PersonForCollections> getContacts();
@Mapping("partners")
public Set<PersonForCollections> getPartners();
public List<PersonForCollections> getPersonList();
}
|
[
"christian.beikov@gmail.com"
] |
christian.beikov@gmail.com
|
21769ca46246fb6a939c7d0b9247686d8c8e4832
|
b9e07edf6ddf7cff59af14e705bb379f58368dbb
|
/src/main/java/com/jabaraster/petshop/web/rest/PetResource.java
|
cbcf46fabff114cd21147827c8dfda1085dd43a3
|
[] |
no_license
|
jabaraster/PetShop
|
605e82b6b9926c907c9e8151f3d920f432ed7586
|
49d427959f62e4f83c862295695bf6cfb546aec9
|
refs/heads/master
| 2016-09-06T17:19:07.489124
| 2014-03-19T14:56:33
| 2014-03-19T14:56:33
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,898
|
java
|
/**
*
*/
package com.jabaraster.petshop.web.rest;
import jabara.general.ArgUtil;
import jabara.general.NotFound;
import jabara.jpa.entity.EntityBase_;
import java.io.IOException;
import java.io.OutputStream;
import java.util.List;
import javax.inject.Inject;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.HttpHeaders;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;
import javax.ws.rs.core.StreamingOutput;
import com.jabaraster.petshop.entity.EPet;
import com.jabaraster.petshop.entity.EPetImageData;
import com.jabaraster.petshop.service.IPetService;
/**
* @author jabaraster
*/
@Path("pet")
public class PetResource {
/**
*
*/
public static final String DEFAULT_PET_LIST_FIRST = "0"; //$NON-NLS-1$
/**
*
*/
public static final String DEFAULT_PET_LIST_COUNT = "100"; //$NON-NLS-1$
private final IPetService petService;
/**
* @param pPetService -
*/
@Inject
public PetResource(final IPetService pPetService) {
this.petService = ArgUtil.checkNull(pPetService, "pPetService"); //$NON-NLS-1$
}
/**
* @param pPetImageDataId
* @param pHeaders @
* @return -
*/
@Path("images/{petImageDataId}")
@GET
public Response getImage( //
@PathParam("petImageDataId") final long pPetImageDataId //
, @Context final HttpHeaders pHeaders //
) {
try {
final List<String> ifNoneMatch = pHeaders.getRequestHeader(HttpHeaders.IF_NONE_MATCH);
if (ifNoneMatch == null || ifNoneMatch.isEmpty()) { // isEmpty()はチェックしなくても結果は同じなのだが、DBを見に行く回数を減らすためにチェックした方がよい.
return createImageDataResponseWithEtag(pPetImageDataId);
}
// ETag は quoted-string と定義されているので、前後を「"」で囲む必要があるらしい.
// http://www.studyinghttp.net/cgi-bin/rfc.cgi?2616#Sec3.11
// http://www.machu.jp/diary/20060826.html#p01
final String hash = "\"" + this.petService.findImageDataHashByImageDataId(pPetImageDataId) + "\""; //$NON-NLS-1$//$NON-NLS-2$
if (ifNoneMatch.contains(hash)) {
return Response.notModified().build();
}
return createImageDataResponseWithEtag(pPetImageDataId);
} catch (final NotFound e) {
throw new WebApplicationException(Status.NOT_FOUND);
}
}
/**
* @param pFirst -
* @param pCount -
* @return -
*/
@Path("index")
@GET
@Produces({ MediaType.APPLICATION_JSON })
public List<EPet> getPets( //
@QueryParam("first") @DefaultValue(DEFAULT_PET_LIST_FIRST) final int pFirst //
, @QueryParam("count") @DefaultValue(DEFAULT_PET_LIST_COUNT) final int pCount //
) {
return this.petService.fetch(pFirst, pCount, null, EntityBase_.id.getName(), true);
}
private Response createImageDataResponseWithEtag(final long pPetImageDataId) throws NotFound {
final EPetImageData imageData = this.petService.findImageDataByPetImageDataId(pPetImageDataId);
final StreamingOutput entity = new StreamingOutput() {
@Override
public void write(final OutputStream pOutput) throws IOException, WebApplicationException {
pOutput.write(imageData.getData());
}
};
return Response.ok(entity) //
.type(imageData.getContentType()) //
.tag(imageData.getHash()) //
.build();
}
}
|
[
"jabaraster@gmail.com"
] |
jabaraster@gmail.com
|
089e39d5dd6ccb2dea9515b1ae39e3f935fe0398
|
fb37b7cdb9ef96bdca8081632959556f55e7c8fd
|
/src/main/java/br/com/alura/forum/config/security/DevSecurityConfiguration.java
|
55015e5d298691f8bb32b4cd116db3282fdfe4dc
|
[] |
no_license
|
Matheus-Ferreira95/api-rest-spring-security
|
52ad988fac5389233c3627fcebee9230440ba964
|
9a4b68846aadef09e046266e45184e49f3825746
|
refs/heads/main
| 2023-04-17T07:12:04.197682
| 2021-04-21T16:36:58
| 2021-04-21T16:36:58
| 358,365,920
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,489
|
java
|
package br.com.alura.forum.config.security;
import br.com.alura.forum.repository.UsuarioRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.http.HttpMethod;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.builders.WebSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.config.http.SessionCreationPolicy;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
@EnableWebSecurity
@Configuration
@Profile("dev")
public class DevSecurityConfiguration extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests()
.antMatchers("/**").permitAll()
.and().csrf().disable();
}
}
|
[
"matheus_fsilva05@hotmail.com"
] |
matheus_fsilva05@hotmail.com
|
04e92cd92f718f1b8900a22b11ec666fad975185
|
eaa7abca125a59c2a4d685fdb844cb1c0b8703b6
|
/tools/shell/src/main/java/org/apache/zest/tools/shell/create/project/common/StorageModuleWriter.java
|
8d8f8c8139933e9f19221aa4a44bf5577dad1212
|
[
"BSD-3-Clause",
"MIT",
"Apache-2.0",
"W3C"
] |
permissive
|
barsifedron/zest-java
|
9ee747b1490ca5e7f1a901081580e3ae1c323690
|
dc30f4b41497087280ac734d2285123bf2f1f398
|
refs/heads/develop
| 2020-06-16T12:06:48.714025
| 2016-11-28T18:27:06
| 2016-11-28T18:27:06
| 75,105,997
| 0
| 0
| null | 2016-11-29T17:38:05
| 2016-11-29T17:38:04
| null |
UTF-8
|
Java
| false
| false
| 3,630
|
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.zest.tools.shell.create.project.common;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Map;
import org.apache.zest.tools.shell.FileUtils;
public class StorageModuleWriter
{
public void writeClass( Map<String, String> properties )
throws IOException
{
String rootPackage = properties.get( "root.package" );
String projectName = properties.get( "project.name" );
try (PrintWriter pw = createPrinter( properties ))
{
pw.print( "package " );
pw.print( properties.get( "root.package" ) );
pw.println( ".bootstrap.infrastructure;" );
pw.println();
pw.println(
"import org.apache.zest.api.common.Visibility;\n" +
"import org.apache.zest.bootstrap.AssemblyException;\n" +
"import org.apache.zest.bootstrap.LayerAssembly;\n" +
"import org.apache.zest.bootstrap.ModuleAssembly;\n" +
"import org.apache.zest.bootstrap.layered.ModuleAssembler;\n" +
"import org.apache.zest.entitystore.file.assembly.FileEntityStoreAssembler;\n" +
"\n" +
"public class StorageModule\n" +
" implements ModuleAssembler\n" +
"{\n" +
" public static final String NAME = \"Storage Module\";\n" +
" private final ModuleAssembly configModule;\n" +
"\n" +
" public StorageModule( ModuleAssembly configModule )\n" +
" {\n" +
" this.configModule = configModule;\n" +
" }\n" +
"\n" +
" @Override\n" +
" public ModuleAssembly assemble( LayerAssembly layer, ModuleAssembly module )\n" +
" throws AssemblyException\n" +
" {\n" +
"\n" +
" new FileEntityStoreAssembler()\n" +
" .visibleIn( Visibility.application )\n" +
" .withConfig( configModule, Visibility.application )\n" +
" .identifiedBy( \"filestore\" )\n" +
" .assemble( module );\n" +
" return module;\n" +
" }\n" +
"}\n"
);
}
}
private PrintWriter createPrinter( Map<String, String> properties )
throws IOException
{
String packagename = properties.get( "root.package" ).replaceAll( "\\.", "/" ) + "/bootstrap/infrastructure/";
String classname = "StorageModule";
return FileUtils.createJavaClassPrintWriter( properties, "bootstrap", packagename, classname );
}
}
|
[
"niclas@hedhman.org"
] |
niclas@hedhman.org
|
f5556f7e381edfd2497062e79b11024e5aa44c16
|
1619909090583ea0c6832c0aecb0672874392c46
|
/litho-rendercore-text/src/main/java/com/facebook/rendercore/text/TextRenderUnit.java
|
ecdbd580f08afc295bbec6b21f50e8dce362b7da
|
[
"Apache-2.0"
] |
permissive
|
pakoito/litho
|
7f3c88680c9a4a76a9c49b2659dc4fbf1b29f623
|
c3ce911bfe217770c3af8dc739e7a01e6fd86edc
|
refs/heads/master
| 2021-01-19T21:44:08.950835
| 2020-09-16T11:19:50
| 2020-09-16T11:19:50
| 283,141,735
| 0
| 0
|
Apache-2.0
| 2020-07-28T07:56:09
| 2020-07-28T07:56:08
| null |
UTF-8
|
Java
| false
| false
| 3,457
|
java
|
/*
* Copyright (c) Facebook, Inc. and 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 com.facebook.rendercore.text;
import static com.facebook.rendercore.RenderUnit.Extension.extension;
import static com.facebook.rendercore.RenderUnit.RenderType.VIEW;
import android.content.Context;
import com.facebook.rendercore.RenderUnit;
import com.facebook.rendercore.text.TextMeasurementUtils.TextLayoutContext;
public class TextRenderUnit extends RenderUnit<RCTextView> {
private long mId;
public TextRenderUnit(long id) {
super(VIEW);
mId = id;
addMountUnmountExtension(extension(this, sMountUnmount));
}
@Override
public RCTextView createContent(Context c) {
return new RCTextView(c);
}
@Override
public long getId() {
return mId;
}
public static Binder<TextRenderUnit, RCTextView> sMountUnmount =
new Binder<TextRenderUnit, RCTextView>() {
@Override
public boolean shouldUpdate(
TextRenderUnit currentValue,
TextRenderUnit newValue,
Object currentLayoutData,
Object newLayoutData) {
return true;
}
@Override
public void bind(
Context context,
RCTextView textView,
TextRenderUnit textRenderUnit,
Object layoutData) {
if (layoutData == null) {
throw new RuntimeException("Missing text layout context!");
}
final TextLayoutContext textLayoutContext = (TextLayoutContext) layoutData;
textView.mount(
textLayoutContext.processedText,
textLayoutContext.layout,
textLayoutContext.textLayoutTranslationY,
textLayoutContext.textStyle.clipToBounds,
textLayoutContext.textStyle.textColorStateList,
textLayoutContext.textStyle.textColor,
textLayoutContext.textStyle.highlightColor,
textLayoutContext.imageSpans,
textLayoutContext.textStyle.highlightStartOffset,
textLayoutContext.textStyle.highlightEndOffset);
if (textLayoutContext.processedText instanceof MountableCharSequence) {
((MountableCharSequence) textLayoutContext.processedText).onMount(textView);
}
}
@Override
public void unbind(
Context context,
RCTextView textView,
TextRenderUnit textRenderUnit,
Object layoutData) {
textView.unmount();
final TextLayoutContext textLayoutContext = (TextLayoutContext) layoutData;
if (textLayoutContext == null) {
throw new RuntimeException("Missing text layout context!");
}
if (textLayoutContext.processedText instanceof MountableCharSequence) {
((MountableCharSequence) textLayoutContext.processedText).onUnmount(textView);
}
}
};
}
|
[
"facebook-github-bot@users.noreply.github.com"
] |
facebook-github-bot@users.noreply.github.com
|
028b69836df87be1d72bd0d54ccc8da691bd2f9c
|
a56109d28bec71ad7d007cb2f87663c6bd5047e9
|
/app/src/main/java/dongwei/fajuary/movedimensionapp/Alipay/PayUtils.java
|
13d2443a1bd4742c92fa4c7a143f7750673a25c6
|
[] |
no_license
|
fajuary/MoveDimensionApp
|
04259ae6984f0b5b75b0298b307ccb5eced7f02e
|
e9b05bb91626cc72093fc4255984dda65648f605
|
refs/heads/master
| 2020-04-07T08:13:55.175903
| 2018-11-19T10:51:49
| 2018-11-19T10:51:49
| 158,205,660
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,425
|
java
|
package dongwei.fajuary.movedimensionapp.Alipay;
import android.app.Activity;
import com.tencent.mm.opensdk.modelpay.PayReq;
import com.tencent.mm.opensdk.openapi.IWXAPI;
import com.tencent.mm.opensdk.openapi.WXAPIFactory;
import org.json.JSONObject;
/**
* 支付宝/微信支付相关处理
*/
public class PayUtils {
/**
* Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/tencent/a/a/a/a/a.class
*/
// 商户PID
// 商户收款账号
private static final int SDK_PAY_FLAG = 1;
public static int noti = 1;
public Activity activity;
// @SuppressLint("HandlerLeak")
// private Handler mHandler = new Handler() {
// @SuppressWarnings("unused")
// public void handleMessage(Message msg) {
// switch ( msg.what ) {
// case SDK_PAY_FLAG: {//支付宝支付相关处理
// Logger.e(" msg.obj--->" + msg.obj);
// PayResult payResult = new PayResult((String) msg.obj);
// /**
// * 同步返回的结果必须放置到服务端进行验证(验证的规则请看https://doc.open.alipay.com/doc2/
// * detail.htm?spm=0.0.0.0.xdvAU6&treeId=59&articleId=103665&
// * docType=1) 建议商户依赖异步通知
// */
// String resultInfo = payResult.getResult();// 同步返回需要验证的信息
//
// String resultStatus = payResult.getResultStatus();
// Logger.e("resultStatus----》"+resultStatus);
// // 判断resultStatus 为“9000”则代表支付成功,具体状态码代表含义可参考接口文档
// if ( TextUtils.equals(resultStatus, "9000") ) {
// SmallFeatureUtils.Toast("支付成功");
// if ( from != null ) {
// JSONObject jsonObject = PayUtils.from;
// }
// Intent intent = new Intent ();
//
// if (classType.equals("buyGoods")){//购买商品处理
// intent.setClass(activity, MyOrderActivity.class);
//
// intent.putExtra("appointType","order");
//
// activity.startActivity (intent);
//
// }else if (classType.equals("orderNo")){
// intent.setClass(activity, MyOrderActivity.class);
//
// intent.putExtra("appointType","order");
//
// activity.startActivity (intent);
//
// }else {
// intent.setClass (activity,MyWalletActivity.class);
// activity.startActivity (intent);
// }
//
//
// } else {
// // 判断resultStatus 为非"9000"则代表可能支付失败
// // "8000"代表支付结果因为支付渠道原因或者系统原因还在等待支付结果确认,最终交易是否成功以服务端异步通知为准(小概率状态)
// if ( TextUtils.equals(resultStatus, "8000") ) {
// SmallFeatureUtils.Toast("支付结果确认中");
//
// } else {
// // 其他值就可以判断为支付失败,包括用户主动取消支付,或者系统返回的错误
// SmallFeatureUtils.Toast("支付失败");
//
// }
// }
// break;
// }
// default:
// break;
// }
// }
// };
public static String orderID;
public static int specialEffectsInt;
public PayUtils(String orderid,int effectsInt) {
orderID = orderid;
specialEffectsInt=effectsInt;
}
// /**
// * call alipay sdk pay. 调用SDK支付
// * 支付宝相关参数
// */
// public void pay(final Activity activity, String sign) {
// this.activity = activity;
// /**
// * 特别注意,这里的签名逻辑需要放在服务端,切勿将私钥泄露在代码中!
// */
//
// /**
// * 完整的符合支付宝参数规范的订单信息
// */
// final String payInfo = sign;
// Runnable payRunnable = new Runnable() {
//
// @Override
// public void run() {
// // 构造PayTask 对象
// PayTask alipay = new PayTask(activity);
// // 调用支付接口,获取支付结果
// String result = alipay.pay(payInfo, true);
//
// Message msg = new Message();
// msg.what = SDK_PAY_FLAG;
// msg.obj = result;
//
// mHandler.sendMessage(msg);
// }
// };
//
// // 必须异步调用
// Thread payThread = new Thread(payRunnable);
// payThread.start();
// }
public static String payType;
public static String downUrlStr;
public void wxpay(Activity activity, JSONObject sig) {//微信支付相关参数
IWXAPI api;
String appidStr = sig.optString("appId");
api = WXAPIFactory.createWXAPI(activity, appidStr, false);
api.registerApp(appidStr);
PayReq request = new PayReq();
request.appId = appidStr;
request.partnerId = sig.optString("partnerid");
request.prepayId = sig.optString("prepay_id");
request.packageValue = sig.optString("pack");
request.nonceStr = sig.optString("nonceStr");
request.timeStamp = sig.optString("timeStamp");
request.sign = sig.optString("sign");
api.sendReq(request);
}
// /**
// * get the sdk version. 获取SDK版本号
// */
// public void getSDKVersion() {
// PayTask payTask = new PayTask(activity);
// String version = payTask.getVersion();
// SmallFeatureUtils.Toast(version);
// }
}
|
[
"18242312549@163.com"
] |
18242312549@163.com
|
5c98339b0e2257a0e53f9733dff37bea80c41b2e
|
af606a04ed291e8c9b1e500739106a926e205ee2
|
/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/GetInstanceResponse.java
|
3a8d351c60f16e7f6069788a4729ceee8ab4e94a
|
[
"Apache-2.0"
] |
permissive
|
xtlGitHub/aliyun-openapi-java-sdk
|
a733f0a16c8cc493cc28062751290f563ab73ace
|
f60c71de2c9277932b6549c79631b0f03b11cc36
|
refs/heads/master
| 2023-09-03T13:56:50.071024
| 2021-11-10T11:53:25
| 2021-11-10T11:53:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,434
|
java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.dataworks_public.model.v20200518;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.dataworks_public.transform.v20200518.GetInstanceResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class GetInstanceResponse extends AcsResponse {
private Integer httpStatusCode;
private String requestId;
private String errorMessage;
private Boolean success;
private String errorCode;
private Data data;
public Integer getHttpStatusCode() {
return this.httpStatusCode;
}
public void setHttpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
}
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public String getErrorMessage() {
return this.errorMessage;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public String getErrorCode() {
return this.errorCode;
}
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}
public Data getData() {
return this.data;
}
public void setData(Data data) {
this.data = data;
}
public static class Data {
private String status;
private Long cycTime;
private Long beginRunningTime;
private Long finishTime;
private String errorMessage;
private Long createTime;
private Long dagId;
private Integer priority;
private String taskType;
private String paramValues;
private String connection;
private Long baselineId;
private Integer dqcType;
private String dagType;
private Long businessId;
private Integer taskRerunTime;
private Long modifyTime;
private Boolean repeatability;
private Long repeatInterval;
private Long instanceId;
private Long beginWaitResTime;
private Long relatedFlowId;
private Long bizdate;
private String nodeName;
private Long beginWaitTimeTime;
private String dqcDescription;
private Long nodeId;
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
public Long getCycTime() {
return this.cycTime;
}
public void setCycTime(Long cycTime) {
this.cycTime = cycTime;
}
public Long getBeginRunningTime() {
return this.beginRunningTime;
}
public void setBeginRunningTime(Long beginRunningTime) {
this.beginRunningTime = beginRunningTime;
}
public Long getFinishTime() {
return this.finishTime;
}
public void setFinishTime(Long finishTime) {
this.finishTime = finishTime;
}
public String getErrorMessage() {
return this.errorMessage;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
public Long getCreateTime() {
return this.createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
public Long getDagId() {
return this.dagId;
}
public void setDagId(Long dagId) {
this.dagId = dagId;
}
public Integer getPriority() {
return this.priority;
}
public void setPriority(Integer priority) {
this.priority = priority;
}
public String getTaskType() {
return this.taskType;
}
public void setTaskType(String taskType) {
this.taskType = taskType;
}
public String getParamValues() {
return this.paramValues;
}
public void setParamValues(String paramValues) {
this.paramValues = paramValues;
}
public String getConnection() {
return this.connection;
}
public void setConnection(String connection) {
this.connection = connection;
}
public Long getBaselineId() {
return this.baselineId;
}
public void setBaselineId(Long baselineId) {
this.baselineId = baselineId;
}
public Integer getDqcType() {
return this.dqcType;
}
public void setDqcType(Integer dqcType) {
this.dqcType = dqcType;
}
public String getDagType() {
return this.dagType;
}
public void setDagType(String dagType) {
this.dagType = dagType;
}
public Long getBusinessId() {
return this.businessId;
}
public void setBusinessId(Long businessId) {
this.businessId = businessId;
}
public Integer getTaskRerunTime() {
return this.taskRerunTime;
}
public void setTaskRerunTime(Integer taskRerunTime) {
this.taskRerunTime = taskRerunTime;
}
public Long getModifyTime() {
return this.modifyTime;
}
public void setModifyTime(Long modifyTime) {
this.modifyTime = modifyTime;
}
public Boolean getRepeatability() {
return this.repeatability;
}
public void setRepeatability(Boolean repeatability) {
this.repeatability = repeatability;
}
public Long getRepeatInterval() {
return this.repeatInterval;
}
public void setRepeatInterval(Long repeatInterval) {
this.repeatInterval = repeatInterval;
}
public Long getInstanceId() {
return this.instanceId;
}
public void setInstanceId(Long instanceId) {
this.instanceId = instanceId;
}
public Long getBeginWaitResTime() {
return this.beginWaitResTime;
}
public void setBeginWaitResTime(Long beginWaitResTime) {
this.beginWaitResTime = beginWaitResTime;
}
public Long getRelatedFlowId() {
return this.relatedFlowId;
}
public void setRelatedFlowId(Long relatedFlowId) {
this.relatedFlowId = relatedFlowId;
}
public Long getBizdate() {
return this.bizdate;
}
public void setBizdate(Long bizdate) {
this.bizdate = bizdate;
}
public String getNodeName() {
return this.nodeName;
}
public void setNodeName(String nodeName) {
this.nodeName = nodeName;
}
public Long getBeginWaitTimeTime() {
return this.beginWaitTimeTime;
}
public void setBeginWaitTimeTime(Long beginWaitTimeTime) {
this.beginWaitTimeTime = beginWaitTimeTime;
}
public String getDqcDescription() {
return this.dqcDescription;
}
public void setDqcDescription(String dqcDescription) {
this.dqcDescription = dqcDescription;
}
public Long getNodeId() {
return this.nodeId;
}
public void setNodeId(Long nodeId) {
this.nodeId = nodeId;
}
}
@Override
public GetInstanceResponse getInstance(UnmarshallerContext context) {
return GetInstanceResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
2e493749ed7f8a9d58c0422843376effcdf885f5
|
727a808f191267b89504e5478afb619231ef66fd
|
/app/src/main/java/com/xl/game/tool/RcList.java
|
969f8298e87726235a8372570f1016594b81dc2b
|
[
"Apache-2.0"
] |
permissive
|
fengdeyingzi/J2ME-Loader
|
66cc1fa67e0203cce173e9f77336cb579e742745
|
0c2fa83663a76abd639dde53f0926ab76342c177
|
refs/heads/master
| 2021-05-06T00:12:59.079882
| 2018-01-11T16:49:13
| 2018-01-11T16:49:13
| 117,123,066
| 1
| 0
| null | 2018-01-11T16:18:50
| 2018-01-11T16:18:50
| null |
UTF-8
|
Java
| false
| false
| 7,899
|
java
|
package com.xl.game.tool;
import java.util.Vector;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
//import org.apache.http.util.EncodingUtils;
import java.io.FileOutputStream;
import java.nio.charset.Charset;
import java.nio.CharBuffer;
import java.nio.ByteBuffer;
import android.util.Log;
import java.io.UnsupportedEncodingException;
public class RcList
{
public String filename;
Vector <String> texts;
public int gb;
public boolean load;
int FirstItem;//链表首项,当前项
int AddrSize; //偏移所用字节数,<64K时为2位,>64K为4位
int RcStrCode; //RC字符串编码,0 = Unicode Big,1 = GB2312
public static final int
_UNICODE_BIG=0,
_GB2312=1,
_UTF8=2;
//新建
public RcList(String filename,int math)
{
this.filename=filename;
texts= new Vector<String>();
for(int i=0;i<math;i++)
texts.add("");
gb=0;
load=true;
}
//读文件
public RcList(String filename)
{
this.filename=filename;
texts=new Vector<String>();
gb=0;
load= false;
File file = new File(filename);
FileInputStream fis = null ;
int length=10;
String res=null;
byte [] buffer = new byte[length];
try
{
fis= new FileInputStream(file);
try
{
length = fis.available();
buffer = new byte[length];
fis.read(buffer);
fis.close();
load=true;
Log.e("XLLOG","信息:rc文件length"+length);
}
catch(IOException e)
{
load=false;
}
//String newfilename=new String(filename);
//newfilename+=".bak";
//File newfile=new File(newfilename);
//file.renameTo(newfile);
//save();
readRc(buffer);
//res = EncodingUtils.getString(buffer, "UTF-16BE");
}
catch(FileNotFoundException e)
{
load=false;
}
}
int readRc(byte rc[])
{
char rc_int[]=new char[rc.length/2];
if(rc.length<10)return -1;
byte r1,r2;
for(int i=0;i<rc_int.length;i++)
{
r1=rc[i*2];
r2=rc[i*2+1];
rc_int[i]=(char)( ((char)r2<<8)|((char)r1 & 0xff) );
if(i<9)
Log.e("XLLOG","信息:"+(r2*256+r1)+(int)rc_int[i]);
}
int endptr;
int math=1;//从第一位开始数
//获取最后一个rc的偏移
//当最后一项没有字符时,直接返回,否则跳转到0后的一位
if(rc_int[rc_int.length-2]==0)
{
endptr=rc_int.length-2;
}
else
{
for(endptr=rc_int.length-2;endptr>=0;endptr--)
{
if(rc_int[endptr]==0)
{
endptr++;
break;
}
}
}
Log.e("XLLOG","信息:endptr "+endptr);
//分析rc数目
int rOffset=0;
int temp_offset=0;
while(true)
{
//检测数组
if(math>=rc_int.length)
break;
temp_offset=rOffset;
rOffset=rc_int[math]/2;
//rc前面偏移绝对比后面小
if(temp_offset>=rOffset)
{
break;
}
//检测偏移是否超过文件
if (rOffset >= (rc_int.length - math ))
break;
if(rc_int[math]/2+math+1==endptr)
{
math++;
break;
}
math++;
}
//解析rc
for(int i=0;i<math;i++)
{
byte temp[]=new byte[rc.length];
// System.arraycopy(temp,0, rc,rc_int[i],rc.length-rc_int[i]);
wstrcpy(temp,rc,rc_int[i]+math*2);
//System.arraycopy(temp,0,rc,rc_int[i]+math*2,
texts.add(i, new String(unToChars( temp)));
}
return math;
}
int read()
{
return 0;
}
public int size()
{
return texts.size();
}
public boolean save()
{
boolean load=false;
int rc_int[]=new int[size()];
byte rc_intb[]=new byte[size()*2];
byte temp_text[][]=new byte[size()][];
//生成序列
int i=0;
int temp_int=0;
while(i<size())
{
rc_int[i]=temp_int;
//转换为byte
rc_intb[i*2]=(byte)(temp_int &0xff);
rc_intb[i*2+1]=(byte)((temp_int>>8) & 0xff);
temp_int+=(getText(i).length()*2+2);
//获取字符串
temp_text[i]=getBytes(getText(i).toCharArray());
i++;
}
File file = new File(filename);
File filebak= new File(filename+".bak");
file.renameTo(filebak);
FileOutputStream fos = null;
try
{
fos = new FileOutputStream(file);
}
catch(FileNotFoundException e)
{}
//byte [] bytes = str.getBytes();
byte rc0[]=new byte[2];
rc0[0]=0;rc0[1]=0;
try
{
//写文件偏移
fos.write(rc_intb);
//写字符串
for(i=0;i<texts.size();i++)
{
char [] c = texts.elementAt(i).toCharArray();
fos.write(getBytes(c));
fos.write(rc0);
}
fos.close();
load=true;
}
catch(IOException e)
{}
return load;
}
//保存为文本
public boolean savetotext(String filename)
{
boolean load=false;
File file = new File(filename);
FileOutputStream fos = null;
try
{
fos = new FileOutputStream(file);
}
catch(FileNotFoundException e)
{}
//byte [] bytes = str.getBytes();
try
{
for(int i=0;i<texts.size();i++)
{
char [] c = texts.get(i).toCharArray();
fos.write(getBytes(c));
}
fos.close();
load=true;
}
catch(IOException e)
{}
return load;
}
//取得一项文本
public String getText(int n)
{
if(texts.size()<n)
return null;
return texts.elementAt(n);
}
//设置一项文本
public void setText(String text,int n)
{
texts.setElementAt(text,n);
}
//向后插入一项
public void add_back(String text)
{
texts.add(gb+1, text);
}
//向前插入一项
public void add_head(String text)
{
texts.add(gb, text);
}
//移除一项内容
public void remove(int i)
{
texts.remove(i);
}
private byte[] getBytes (char[] chars)
{
Charset cs = Charset.forName ("UTF-16BE");
CharBuffer cb = CharBuffer.allocate (chars.length);
cb.put (chars);
cb.flip ();
ByteBuffer bb = cs.encode (cb);
return bb.array();
}
private char[] getChars (byte[] bytes)
{
Charset cs = Charset.forName ("UTF-16BE");
ByteBuffer bb = ByteBuffer.allocate (bytes.length);
bb.put (bytes);
bb.flip ();
CharBuffer cb = cs.decode (bb);
return cb.array();
}
//获取字符串的一部分
private char[] getChars(char text[], int offset, int end)
{
int len=end-offset;
char newtext[]=new char[len];
for(int i=0;i<len;i++)
{
newtext[i]=text[offset+i];
}
return newtext;
}
//获取以0为结尾的字符串
private char[] getChars(char text[],int offset)
{
int i=offset;
int n=0;
char newtext[] =new char[1];
while(i<text.length)
{
if(text[i]==0)
break;
n++;
i++;
}
if(n>0)
newtext=new char[n];
for(i=0;i<n;i++)
newtext[i]=text[i];
return newtext;
}
void wstrcpy(byte temp[],byte bt[],int btstart)
{
int i=0;
if(btstart+i+1>= bt.length || i+1>=temp.length)
{
Log.e("","wstrcpy溢出:"+ "start="+btstart+"/"+bt.length);
return;
}
while(bt[btstart+i]!=0 || bt[btstart+i+1]!=0)
{
temp[i]=bt[btstart+i];
temp[i+1]=bt[btstart+i+1];
i+=2;
if(btstart+i+1>= bt.length || i+1>=temp.length)
{
Log.e("","wstrcpy 溢出:"+ "start="+btstart);
break;
}
}
if(i+1<temp.length)
{
temp[i]=0;
temp[i+1]=0;
}
}
int wstrlen(byte temp[])
{
int i=0;
while(temp[i]!=0 || temp[i+1]!=0)
{
i+=2;
if(i+1 >= temp.length)
{
Log.e("","wstrlen 溢出");
break;
}
}
return i;
}
char [] unToChars(byte temp[])
{
//计算temp长度
char c[]=new char[wstrlen(temp)/2];
byte r1,r2;
for(int i=0;i<c.length;i++)
{
r1=temp[i*2];
r2=temp[i*2+1];
c[i]=(char)(((char)r1<<8)|((char)r2 & 0xff));
}
return c;
}
//将int转换为byte(大端)
public static byte[] intToByteArray1(int i)
{
byte[] result = new byte[4];
result[0] = (byte)((i >> 24) & 0xFF);
result[1] = (byte)((i >> 16) & 0xFF);
result[2] = (byte)((i >> 8) & 0xFF);
result[3] = (byte)(i & 0xFF);
return result;
}
}
|
[
"2541012655@qq.com"
] |
2541012655@qq.com
|
024aedf945d438cd0b01b07114decc9eb4b68680
|
10e1fe4940718d045f980577b82dd427315153e0
|
/src/maven/myjava/headfirst1/chap16/Jukebox1.java
|
7d8b768d059e8d7aad8bd43fd5e216eeec1ea549
|
[] |
no_license
|
ValenbergHar/G-JD1-2019-10-01_ValenbergHar
|
6b693f08becdf624b235170712e552a4ff148ac3
|
bff38b21a10594cdfa7a719c216c04614cc01ac3
|
refs/heads/master
| 2022-12-22T12:10:22.999080
| 2020-10-20T21:02:01
| 2020-10-20T21:02:01
| 212,853,204
| 0
| 1
| null | 2022-12-16T15:42:29
| 2019-10-04T16:00:20
|
Java
|
UTF-8
|
Java
| false
| false
| 826
|
java
|
package headfirst1.chap16;
import java.util.*;
import java.io.*;
public class Jukebox1
{
ArrayList<String> songList = new ArrayList<String>();
public static void main(String[] args) {
new Jukebox1().go();
}
public void go() {
getSongs();
System.out.println(songList);
}
void getSongs() {
try {
File file = new File("SongList.txt");
BufferedReader reader = new BufferedReader(new FileReader(file));
String line = null;
while ((line = reader.readLine()) != null) {
addSong(line);
}
} catch (Exception ex) { ex.printStackTrace(); }
}
void addSong(String lineToParse) {
String[]tokens = lineToParse.split("/");
songList.add(tokens[0]);
}
}
|
[
"maskevich.valeri@gmail.com"
] |
maskevich.valeri@gmail.com
|
a9c80274c7ad31c5399d6feb5742fe9b0c1c9c3c
|
7e24a8d22ed0bce7e3a290130a7def76f53a5378
|
/urtruck/com.urt.dao/src/main/java/com/urt/mapper/LaoSsAccountPoMapper.java
|
4abc3df910e61beb9d793e6ab3f936fff5785a61
|
[
"Apache-2.0"
] |
permissive
|
tenchoo/URTrack
|
4b036e1e23af8c28afd1a381a950c4bc455dc00e
|
3ac0b03b3a0359b51d6bd794629cf9b27191976c
|
refs/heads/master
| 2021-07-02T13:13:52.814514
| 2017-09-23T14:09:50
| 2017-09-23T14:09:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 403
|
java
|
package com.urt.mapper;
import com.urt.po.LaoSsAccountPo;
public interface LaoSsAccountPoMapper {
int deleteByPrimaryKey(Long acconutId);
int insert(LaoSsAccountPo record);
int insertSelective(LaoSsAccountPo record);
LaoSsAccountPo selectByPrimaryKey(Long acconutId);
int updateByPrimaryKeySelective(LaoSsAccountPo record);
int updateByPrimaryKey(LaoSsAccountPo record);
}
|
[
"519344289@qq.com"
] |
519344289@qq.com
|
66f4e4412624a99b58f5b43f736b4f6e3e264dec
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/23/23_71811d3f5a490c1678c65990218a619adacd88bb/DispatcherInterceptor/23_71811d3f5a490c1678c65990218a619adacd88bb_DispatcherInterceptor_s.java
|
74e755105ef5734cdbe9187c056a7beefcbc0ad7
|
[] |
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,144
|
java
|
package org.nju.artemis.aejb.component.interceptors;
import java.lang.reflect.Proxy;
import java.util.Map;
import javax.ejb.EJBHome;
import javax.ejb.EJBLocalHome;
import org.jboss.ejb.client.EJBClient;
import org.jboss.ejb.client.EJBHomeLocator;
import org.jboss.ejb.client.EJBLocator;
import org.jboss.ejb.client.StatelessEJBLocator;
import org.jboss.invocation.Interceptor;
import org.jboss.invocation.InterceptorContext;
import org.jboss.logging.Logger;
/**
* @author <a href="wangjue1199@gmail.com">Jason</a>
*/
public class DispatcherInterceptor implements Interceptor {
Logger log = Logger.getLogger(DispatcherInterceptor.class);
private Map<String,Object> contextData;
@Override
public Object processInvocation(InterceptorContext context) throws Exception {
log.info("DispatcherInterceptor: processInvocation");
contextData = context.getContextData();
String appName = (String) contextData.get("appName");
String moduleName = (String) contextData.get("moduleName");
String distinctName = (String) contextData.get("distinctName");
String beanName = (String) contextData.get("beanName");
Class<?> viewClass = (Class<?>) contextData.get("viewClass");
boolean stateful = (Boolean) contextData.get("stateful");
return dispatch(context, appName, moduleName, distinctName, beanName, viewClass, stateful);
}
@SuppressWarnings({ "rawtypes", "unchecked", "static-access" })
private Object dispatch(InterceptorContext context, String appName, String moduleName, String distinctName, String beanName, Class<?> viewClass, boolean stateful){
EJBLocator ejbLocator = null;
Object result = null;
final String proxyName = "Proxy:" + appName + moduleName + beanName + distinctName;
if(contextData.containsKey(proxyName)) {
final Proxy proxy = (Proxy) contextData.get(proxyName);
try {
result = proxy.getInvocationHandler(proxy).invoke(proxy, context.getMethod(), context.getParameters());
} catch (IllegalArgumentException e) {
e.printStackTrace();
} catch (Throwable e) {
e.printStackTrace();
}
return result;
}
if (EJBHome.class.isAssignableFrom(viewClass) || EJBLocalHome.class.isAssignableFrom(viewClass)) {
ejbLocator = new EJBHomeLocator(viewClass, appName, moduleName, beanName, distinctName);
} else if (stateful) {
try {
ejbLocator = EJBClient.createSession(viewClass, appName, moduleName, beanName, distinctName);
} catch (Exception e) {
throw new RuntimeException(e);
}
} else {
ejbLocator = new StatelessEJBLocator(viewClass, appName, moduleName, beanName, distinctName);
}
final Proxy proxy = (Proxy)EJBClient.createProxy(ejbLocator);
try {
result = proxy.getInvocationHandler(proxy).invoke(proxy, context.getMethod(), context.getParameters());
} catch (IllegalArgumentException e) {
e.printStackTrace();
} catch (Throwable e) {
e.printStackTrace();
}
context.getContextData().put(proxyName, proxy);
return result;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
fd9467cee037ce2ddcf974db66c39e04e5fd07a3
|
b6e99b0346572b7def0e9cdd1b03990beb99e26f
|
/src/gcom/gui/relatorio/cadastro/categoria/GerarRelatorioSubcategoriaManterAction.java
|
152097fa61e096d065aa982e499914616293e7b3
|
[] |
no_license
|
prodigasistemas/gsan
|
ad64782c7bc991329ce5f0bf5491c810e9487d6b
|
bfbf7ad298c3c9646bdf5d9c791e62d7366499c1
|
refs/heads/master
| 2023-08-31T10:47:21.784105
| 2023-08-23T17:53:24
| 2023-08-23T17:53:24
| 14,600,520
| 19
| 20
| null | 2015-07-29T19:39:10
| 2013-11-21T21:24:16
|
Java
|
ISO-8859-1
|
Java
| false
| false
| 4,731
|
java
|
package gcom.gui.relatorio.cadastro.categoria;
import gcom.cadastro.imovel.Categoria;
import gcom.cadastro.imovel.FiltroCategoria;
import gcom.cadastro.imovel.FiltroSubCategoria;
import gcom.cadastro.imovel.Subcategoria;
import gcom.fachada.Fachada;
import gcom.gui.cadastro.imovel.FiltrarSubcategoriaActionForm;
import gcom.relatorio.ExibidorProcessamentoTarefaRelatorio;
import gcom.relatorio.cadastro.categoria.RelatorioManterSubcategoria;
import gcom.seguranca.acesso.usuario.Usuario;
import gcom.tarefa.TarefaRelatorio;
import gcom.util.filtro.ParametroSimples;
import java.util.Collection;
import java.util.Iterator;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
/**
* action responsável pela exibição do relatório de bairro manter
*
* @author Sávio Luiz
* @created 11 de Julho de 2005
*/
public class GerarRelatorioSubcategoriaManterAction extends
ExibidorProcessamentoTarefaRelatorio {
/**
* < <Descrição do método>>
*
* @param actionMapping
* Descrição do parâmetro
* @param actionForm
* Descrição do parâmetro
* @param httpServletRequest
* Descrição do parâmetro
* @param httpServletResponse
* Descrição do parâmetro
* @return Descrição do retorno
*/
public ActionForward execute(ActionMapping actionMapping,
ActionForm actionForm, HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse) {
// cria a variável de retorno
ActionForward retorno = null;
// Mudar isso quando tiver esquema de segurança
HttpSession sessao = httpServletRequest.getSession(false);
FiltrarSubcategoriaActionForm filtrarSubcategoriaActionForm = (FiltrarSubcategoriaActionForm) actionForm;
Fachada fachada = Fachada.getInstancia();
FiltroSubCategoria filtroSubcategoria = (FiltroSubCategoria) sessao
.getAttribute("filtroSubcategoria");
// Inicio da parte que vai mandar os parametros para o relatório
Subcategoria subcategoriaParametros = new Subcategoria();
String idCategoria = (String) filtrarSubcategoriaActionForm
.getIdCategoria();
Categoria categoria = null;
if (idCategoria != null && !idCategoria.equals("")) {
FiltroCategoria filtroCategoria = new FiltroCategoria();
filtroCategoria.adicionarParametro(new ParametroSimples(
FiltroCategoria.CODIGO, idCategoria));
Collection colecaoCategorias = fachada.pesquisar(filtroCategoria,
Categoria.class.getName());
if (colecaoCategorias != null && !colecaoCategorias.isEmpty()) {
// O municipio foi encontrado
Iterator colecaoCategoriasIterator = colecaoCategorias
.iterator();
categoria = (Categoria) colecaoCategoriasIterator.next();
}
} else {
categoria = new Categoria();
}
int codigo = -1;
String codigoPesquisar = (String) filtrarSubcategoriaActionForm
.getCodigoSubcategoria();
if (codigoPesquisar != null && !codigoPesquisar.equals("")) {
codigo = Integer.parseInt(codigoPesquisar);
}
Short indicadorDeUso = null;
if (filtrarSubcategoriaActionForm.getIndicadorUso() != null
&& !filtrarSubcategoriaActionForm.getIndicadorUso().equals("")) {
indicadorDeUso = new Short(filtrarSubcategoriaActionForm
.getIndicadorUso());
}
// seta os parametros que serão mostrados no relatório
subcategoriaParametros.setCategoria(categoria);
subcategoriaParametros.setCodigo(codigo);
subcategoriaParametros.setDescricao(filtrarSubcategoriaActionForm
.getDescricao());
subcategoriaParametros.setIndicadorUso(indicadorDeUso);
// Fim da parte que vai mandar os parametros para o relatório
String tipoRelatorio = httpServletRequest.getParameter("tipoRelatorio");
RelatorioManterSubcategoria relatorio = new RelatorioManterSubcategoria(
(Usuario)(httpServletRequest.getSession(false)).getAttribute("usuarioLogado"));
relatorio.addParametro("filtroSubcategoria", filtroSubcategoria);
relatorio.addParametro("subcategoriaParametros", subcategoriaParametros);
if (tipoRelatorio == null) {
tipoRelatorio = TarefaRelatorio.TIPO_PDF + "";
}
relatorio.addParametro("tipoFormatoRelatorio", Integer
.parseInt(tipoRelatorio));
retorno = processarExibicaoRelatorio(relatorio, tipoRelatorio,
httpServletRequest, httpServletResponse, actionMapping);
// devolve o mapeamento contido na variável retorno
return retorno;
}
}
|
[
"piagodinho@gmail.com"
] |
piagodinho@gmail.com
|
6b6c912aeb3710866104ea592c6ff548cc2bbb2e
|
178f3299d250c8618955cde711a6dc83700a053a
|
/subjects/are-we-there-yet/ch.blinkenlights.battery_1335983644_src/gen/ch/blinkenlights/battery/BuildConfig.java
|
f2a27e771bd968bc7be4ad16396f81e98fa54606
|
[
"BSD-3-Clause"
] |
permissive
|
FlyingPumba/evolutiz
|
cffe8c5da35562e7924f5d8d217e48a833c78044
|
521515dbd172bed10d95af3364a59340ddd24027
|
refs/heads/master
| 2022-08-18T09:21:25.014692
| 2021-08-28T01:21:09
| 2021-08-28T01:21:09
| 133,412,307
| 3
| 1
|
NOASSERTION
| 2022-06-21T21:23:16
| 2018-05-14T19:37:25
|
Java
|
UTF-8
|
Java
| false
| false
| 166
|
java
|
/** Automatically generated file. DO NOT MODIFY */
package ch.blinkenlights.battery;
public final class BuildConfig {
public final static boolean DEBUG = true;
}
|
[
"iarcuschin@gmail.com"
] |
iarcuschin@gmail.com
|
4ba3796ccca12acacc9d253f4d0d51fd23576936
|
c2a8064107b200289989bc003074d166637de2b0
|
/src/main/java/com/ipace/chaoJie/A003Services/dingShiRenWu/你好.java
|
630ed38b1ae2918114483fb1a66cfb98eb469703
|
[] |
no_license
|
hanpenghu/chaoJieBugXiuFu
|
456c2446163b256b47c189c732f499723223d3f5
|
2f189bfe1ffe32da4117ec3efba2fc24ed69a4e0
|
refs/heads/master
| 2021-09-13T16:54:01.948037
| 2018-05-02T10:06:55
| 2018-05-02T10:06:55
| 113,005,985
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 222
|
java
|
package com.ipace.chaoJie.A003Services.dingShiRenWu;
import org.springframework.stereotype.Component;
@Component
public class 你好 {
public void 我曹(){
System.out.println("变色龙VS冲冲");
}
}
|
[
"563909408@qq.com"
] |
563909408@qq.com
|
6dd9fdaf704ae3cfa620bff1959cb8ab2cb8d08e
|
cdc9a334996b0c933269b7aa8b39357c97176ca5
|
/java/service-buc/src/main/java/com/suneee/core/bpmn20/entity/omgdi/Label.java
|
491c79275d23b26b2d8bd40cff2e293e7dec5a84
|
[] |
no_license
|
lmr1109665009/oa
|
857c2729398f08f2094f47824f383cfa4d808ae6
|
21cf4bac10ab72520a1f0dfdd965b9378081823c
|
refs/heads/master
| 2020-05-16T10:39:51.316044
| 2019-04-23T10:13:26
| 2019-04-23T10:13:26
| 182,986,352
| 2
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,891
|
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.03.13 at 11:13:53 ���� CST
//
package com.suneee.core.bpmn20.entity.omgdi;
import com.suneee.core.bpmn20.entity.bpmndi.BPMNLabel;
import com.suneee.core.bpmn20.entity.omgdc.Bounds;
import javax.xml.bind.annotation.*;
/**
* <p>Java class for Label complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="Label">
* <complexContent>
* <extension base="{http://www.omg.org/spec/DD/20100524/DI}Node">
* <sequence>
* <element ref="{http://www.omg.org/spec/DD/20100524/DC}Bounds" minOccurs="0"/>
* </sequence>
* <anyAttribute processContents='lax' namespace='##other'/>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Label", propOrder = {
"bounds"
})
@XmlSeeAlso({
BPMNLabel.class
})
public abstract class Label
extends Node
{
@XmlElement(name = "Bounds", namespace = "http://www.omg.org/spec/DD/20100524/DC")
protected Bounds bounds;
/**
* Gets the value of the bounds property.
*
* @return
* possible object is
* {@link Bounds }
*
*/
public Bounds getBounds() {
return bounds;
}
/**
* Sets the value of the bounds property.
*
* @param value
* allowed object is
* {@link Bounds }
*
*/
public void setBounds(Bounds value) {
this.bounds = value;
}
}
|
[
"lmr1109665009@163.com"
] |
lmr1109665009@163.com
|
91aee4af045fdadc197d44cb2aef3f6e308b5e02
|
4d97a8ec832633b154a03049d17f8b58233cbc5d
|
/Closure/118/Closure/evosuite-branch/6/com/google/javascript/jscomp/DisambiguatePropertiesEvoSuite_branch_Test.java
|
0a1a83873a87ca226ae3acd8808c616227004055
|
[] |
no_license
|
4open-science/evosuite-defects4j
|
be2d172a5ce11e0de5f1272a8d00d2e1a2e5f756
|
ca7d316883a38177c9066e0290e6dcaa8b5ebd77
|
refs/heads/master
| 2021-06-16T18:43:29.227993
| 2017-06-07T10:37:26
| 2017-06-07T10:37:26
| 93,623,570
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 877
|
java
|
/*
* This file was automatically generated by EvoSuite
* Thu Dec 11 20:23:51 GMT 2014
*/
package com.google.javascript.jscomp;
import static org.junit.Assert.*;
import org.junit.Test;
import com.google.javascript.jscomp.DisambiguateProperties;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.evosuite.runtime.EvoSuiteFile;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, resetStaticState = true)
public class DisambiguatePropertiesEvoSuite_branch_Test extends DisambiguatePropertiesEvoSuite_branch_Test_scaffolding {
@Test
public void test0() throws Throwable {
DisambiguateProperties.Warnings disambiguateProperties_Warnings0 = new DisambiguateProperties.Warnings();
assertNotNull(disambiguateProperties_Warnings0);
}
}
|
[
"martin.monperrus@gnieh.org"
] |
martin.monperrus@gnieh.org
|
f8e5fd8f742a6c23d3ca2077f5980eef96768c24
|
656ce78b903ef3426f8f1ecdaee57217f9fbc40e
|
/src/org/spongycastle/crypto/params/DESedeParameters.java
|
746faf192827eae37fd7e2ee77d969e638722965
|
[] |
no_license
|
zhuharev/periscope-android-source
|
51bce2c1b0b356718be207789c0b84acf1e7e201
|
637ab941ed6352845900b9d465b8e302146b3f8f
|
refs/heads/master
| 2021-01-10T01:47:19.177515
| 2015-12-25T16:51:27
| 2015-12-25T16:51:27
| 48,586,306
| 8
| 10
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 626
|
java
|
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package org.spongycastle.crypto.params;
// Referenced classes of package org.spongycastle.crypto.params:
// DESParameters
public class DESedeParameters extends DESParameters
{
public static boolean FE73(byte abyte0[], int i, int j)
{
for (i = 0; i < j; i += 8)
{
if (DESParameters._mth1428(abyte0, i))
{
return true;
}
}
return false;
}
}
|
[
"hostmaster@zhuharev.ru"
] |
hostmaster@zhuharev.ru
|
0c6c24071d3ed1aea0fa43946b187d807456f89c
|
6ac12da7bc81c9fbf8bbf844553bc46bd2746ba9
|
/ds4p-receiver/ds4p-admin-test-harness/src/main/java/utsapi2_0/UtsMetathesaurusContent/GetSourceConceptResponse.java
|
2cfac7fe335a0cd15b1d9e20816ba0de8ec8202e
|
[] |
no_license
|
wanghaisheng/ds4p-pilot-public
|
b8fd90ee5e196e0e055e250af0e3c547cfa84eaa
|
235cc22266868917d88332fb32d03baded2dd684
|
refs/heads/master
| 2020-04-08T03:19:53.614880
| 2012-12-08T10:02:38
| 2012-12-08T10:02:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,825
|
java
|
/**
* This software is being provided per FARS 52.227-14 Rights in Data - General.
* Any redistribution or request for copyright requires written consent by the
* Department of Veterans Affairs.
*/
package UtsMetathesaurusContent;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for getSourceConceptResponse complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="getSourceConceptResponse">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="return" type="{http://webservice.uts.umls.nlm.nih.gov/}sourceAtomClusterDTO" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "getSourceConceptResponse", propOrder = {
"_return"
})
public class GetSourceConceptResponse {
@XmlElement(name = "return")
protected SourceAtomClusterDTO _return;
/**
* Gets the value of the return property.
*
* @return
* possible object is
* {@link SourceAtomClusterDTO }
*
*/
public SourceAtomClusterDTO getReturn() {
return _return;
}
/**
* Sets the value of the return property.
*
* @param value
* allowed object is
* {@link SourceAtomClusterDTO }
*
*/
public void setReturn(SourceAtomClusterDTO value) {
this._return = value;
}
}
|
[
"Duane DeCouteau@Socratic5"
] |
Duane DeCouteau@Socratic5
|
ef301114d6f3cc550f3ae1952b80bc976132cd7e
|
4ad388433d97a42865c915ce31533756de7dc55b
|
/DioriteAPI/src/main/java/org/diorite/material/items/FlintAndSteelMat.java
|
ede31ead46621da7a82653733d8455e128b4daa7
|
[
"MIT"
] |
permissive
|
TheMolkaPL/Diorite
|
36eecbb3fa706176ff0757a4fd12c6b6c788c34f
|
c4ab275b5a4141fb2b07d06ed099728b3d26b115
|
refs/heads/master
| 2020-12-07T15:30:16.921382
| 2015-11-10T20:21:40
| 2015-11-10T20:21:40
| 45,780,857
| 0
| 0
| null | 2015-11-08T13:07:41
| 2015-11-08T13:07:40
| null |
UTF-8
|
Java
| false
| false
| 6,546
|
java
|
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 Diorite (by Bartłomiej Mazur (aka GotoFinal))
*
* 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.diorite.material.items;
import java.util.Map;
import org.diorite.material.BasicToolData;
import org.diorite.utils.collections.maps.CaseInsensitiveMap;
import org.diorite.utils.lazy.LazyValue;
import org.diorite.utils.math.DioriteMathUtils;
import gnu.trove.map.TShortObjectMap;
import gnu.trove.map.hash.TShortObjectHashMap;
/**
* Class representing 'Flint And Steel' item material in minecraft. <br>
* ID of material: 259 <br>
* String ID of material: minecraft:flint_and_steel <br>
* Max item stack size: 1
*/
@SuppressWarnings({"JavaDoc", "ClassHasNoToStringMethod"})
public class FlintAndSteelMat extends BasicToolMat
{
/**
* Sub-ids used by diorite/minecraft by default
*/
public static final int USED_DATA_VALUES = 1;
public static final FlintAndSteelMat FLINT_AND_STEEL = new FlintAndSteelMat();
private static final Map<String, FlintAndSteelMat> byName = new CaseInsensitiveMap<>(USED_DATA_VALUES, SMALL_LOAD_FACTOR);
private static final TShortObjectMap<FlintAndSteelMat> byID = new TShortObjectHashMap<>(USED_DATA_VALUES, SMALL_LOAD_FACTOR, Short.MIN_VALUE);
protected final LazyValue<FlintAndSteelMat> next = new LazyValue<>(() -> (this.haveValidDurability()) ? getByDurability(this.getDurability() + 1) : null);
protected final LazyValue<FlintAndSteelMat> prev = new LazyValue<>(() -> (this.haveValidDurability()) ? getByDurability(this.getDurability() - 1) : null);
@SuppressWarnings("MagicNumber")
protected FlintAndSteelMat()
{
super("FLINT_AND_STEEL", 259, "minecraft:flint_and_steel", "NEW", (short) 0x00, new BasicToolData(65));
}
protected FlintAndSteelMat(final int durability)
{
super(FLINT_AND_STEEL.name(), FLINT_AND_STEEL.getId(), FLINT_AND_STEEL.getMinecraftId(), Integer.toString(durability), (short) durability, new BasicToolData(FLINT_AND_STEEL.getToolData()));
}
public FlintAndSteelMat(final String enumName, final int id, final String minecraftId, final String typeName, final short type, final BasicToolData toolData)
{
super(enumName, id, minecraftId, typeName, type, toolData);
}
public FlintAndSteelMat(final String enumName, final int id, final String minecraftId, final int maxStack, final String typeName, final short type, final BasicToolData toolData)
{
super(enumName, id, minecraftId, maxStack, typeName, type, toolData);
}
@Override
public FlintAndSteelMat getType(final String type)
{
return getByEnumName(type);
}
@Override
public FlintAndSteelMat getType(final int type)
{
return getByID(type);
}
@Override
public FlintAndSteelMat increaseDurability()
{
return this.next.get();
}
@Override
public FlintAndSteelMat decreaseDurability()
{
return this.prev.get();
}
@Override
public FlintAndSteelMat setDurability(final int durability)
{
return this.getType(durability);
}
@Override
public FlintAndSteelMat[] types()
{
return flintAndSteelTypes();
}
/**
* Returns one of FlintAndSteel sub-type based on sub-id.
*
* @param id sub-type id
*
* @return sub-type of FlintAndSteel.
*/
public static FlintAndSteelMat getByID(final int id)
{
FlintAndSteelMat mat = byID.get((short) id);
if (mat == null)
{
mat = new FlintAndSteelMat(id);
if ((id > 0) && (id < FLINT_AND_STEEL.getBaseDurability()))
{
FlintAndSteelMat.register(mat);
}
}
return mat;
}
/**
* Returns one of FlintAndSteel sub-type based on durability.
*
* @param id durability of type.
*
* @return sub-type of FlintAndSteel.
*/
public static FlintAndSteelMat getByDurability(final int id)
{
return getByID(id);
}
/**
* Returns one of FlintAndSteel-type based on name (selected by diorite team).
* If item contains only one type, sub-name of it will be this same as name of material.<br>
* Returns null if name can't be parsed to int and it isn't "NEW" one.
*
* @param name name of sub-type
*
* @return sub-type of FlintAndSteel.
*/
public static FlintAndSteelMat getByEnumName(final String name)
{
final FlintAndSteelMat mat = byName.get(name);
if (mat == null)
{
final Integer idType = DioriteMathUtils.asInt(name);
if (idType == null)
{
return null;
}
return getByID(idType);
}
return mat;
}
/**
* Register new sub-type, may replace existing sub-types.
* Should be used only if you know what are you doing, it will not create fully usable material.
*
* @param element sub-type to register
*/
public static void register(final FlintAndSteelMat element)
{
byID.put(element.getType(), element);
byName.put(element.getTypeName(), element);
}
/**
* @return array that contains all sub-types of this item.
*/
public static FlintAndSteelMat[] flintAndSteelTypes()
{
return new FlintAndSteelMat[]{FLINT_AND_STEEL};
}
static
{
FlintAndSteelMat.register(FLINT_AND_STEEL);
}
}
|
[
"bartlomiejkmazur@gmail.com"
] |
bartlomiejkmazur@gmail.com
|
bf6faad97e43e311e4b13acab8974b670e28c2b7
|
d980af51a994052ec23f29773219a741aadda3a0
|
/springcloud-feign/feign-user-server/src/main/java/com/wu/feignuserserver/FeignUserServerApplication.java
|
e0789d66312a240af9e19ffa9648710d07feb8ed
|
[] |
no_license
|
jadewoo8888/myspringcloud
|
701f230cd5b03a15f100f7f05ab2670628d70966
|
e6031db000c34af2067229b8ce16de9075c3fe32
|
refs/heads/master
| 2022-04-26T13:59:32.166581
| 2020-04-23T03:18:14
| 2020-04-23T03:18:14
| 255,092,424
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 516
|
java
|
package com.wu.feignuserserver;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
@EnableEurekaClient
@EnableFeignClients
@SpringBootApplication
public class FeignUserServerApplication {
public static void main(String[] args) {
SpringApplication.run(FeignUserServerApplication.class, args);
}
}
|
[
"313388925@qq.com"
] |
313388925@qq.com
|
54adb6fc5327ccc4b2afbda43d327153c09aa59d
|
340244f649995da96ea7b079c78a31b6302c4504
|
/trunk/org.openebiz.core/src/org/openebiz/core/common/cbc/TraceIDType.java
|
e75f4b675aa2211344765ba462b084036f9f251a
|
[] |
no_license
|
BackupTheBerlios/openebiz-svn
|
6be3506ba0f5068a69459e6f093917699af50708
|
f83946dab9371d17ffbc0ec43fe157e4544d97fe
|
refs/heads/master
| 2020-04-18T01:46:26.607391
| 2009-03-08T17:23:20
| 2009-03-08T17:23:20
| 40,749,474
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,087
|
java
|
/*******************************************************************************
* Open E-Biz - Darrell Kundel
*
* Contributors:
* Darrell Kundel - initial API and implementation
*******************************************************************************/
package org.openebiz.core.common.cbc;
import org.openebiz.core.common.udt.IdentifierType;
import java.io.Serializable;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Trace ID Type</b></em>'.
* <!-- end-user-doc -->
*
*
* @generated
*/
public class TraceIDType extends IdentifierType implements Serializable {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final String copyright = "Open E-Biz - Darrell Kundel"; //$NON-NLS-1$
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final long serialVersionUID = 1L;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public TraceIDType() {
super();
}
} // TraceIDType
|
[
"wukunlun@3b9d58ea-9e0c-0410-94fd-f833e57fda8f"
] |
wukunlun@3b9d58ea-9e0c-0410-94fd-f833e57fda8f
|
d0b397d6173f95552e233184b5750f2cf3e7c727
|
f731eea3d31426aa680953d9d9777a0eba84b153
|
/user-api/src/main/java/asia/cmg/f8/user/api/AccountTokenApi.java
|
3f3a3cfda7e60ed1ca0d06e2d84e164e65365e76
|
[] |
no_license
|
longpham041292/java-sample
|
893a53b182d8d91a4aac4b05126438efeec16cca
|
0b3ef36688eabbcf690de1b3daff57586dc010b7
|
refs/heads/main
| 2023-08-04T20:23:33.935587
| 2021-10-03T06:37:02
| 2021-10-03T06:37:02
| 412,994,810
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,474
|
java
|
package asia.cmg.f8.user.api;
import java.util.Optional;
import javax.validation.Valid;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import asia.cmg.f8.user.entity.AccountTokenEntity;
import asia.cmg.f8.user.repository.AccountTokenRepository;
@RestController
public class AccountTokenApi {
@Autowired
private AccountTokenRepository accountTokenRepo;
private static final Logger LOGGER = LoggerFactory.getLogger(AccountTokenApi.class);
@RequestMapping(value = "/users/{uuid}/token", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
public AccountTokenEntity getTokenByUserUuid(@PathVariable(name = "uuid") final String userUuid) throws Exception {
try {
Optional<AccountTokenEntity> optAccountToken = accountTokenRepo.findByUuid(userUuid);
if(optAccountToken.isPresent()) {
return optAccountToken.get();
} else {
LOGGER.info("Token of owner {} not existed", userUuid);
throw new Exception("Token of owner not existed");
}
} catch (Exception e) {
throw new Exception("Get token failed: " + e.getMessage());
}
}
@RequestMapping(value = "/users/token", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
public AccountTokenEntity getByAccessToken(@RequestParam(name = "leep_access_token") final String accessToken) throws Exception {
try {
AccountTokenEntity accountToken = accountTokenRepo.findByAccessToken(accessToken);
if(accountToken != null) {
return accountToken;
} else {
LOGGER.info("Token {} not existed", accessToken);
throw new Exception("Token not existed");
}
} catch (Exception e) {
throw new Exception("Get token failed: " + e.getMessage());
}
}
@RequestMapping(value = "/users/token/refresh-token", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
public AccountTokenEntity getByAccessTokenAndRefreshToken(@RequestParam(name = "leep_access_token") final String accessToken,
@RequestParam(name = "leep_refresh_token") final String refreshToken) throws Exception {
try {
AccountTokenEntity accountToken = accountTokenRepo.findByAccessTokenAndRefreshToken(accessToken, refreshToken);
if(accountToken != null) {
return accountToken;
} else {
LOGGER.info("Access token {} and refresh token not existed", accessToken, refreshToken);
throw new Exception("Access token and refresh token not existed");
}
} catch (Exception e) {
throw new Exception("Get getByAccessTokenAndRefreshToken failed: " + e.getMessage());
}
}
@RequestMapping(value = "/users/token", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
public AccountTokenEntity saveUserAccessToken(@RequestBody @Valid AccountTokenEntity request) throws Exception {
try {
return accountTokenRepo.save(request);
} catch (Exception e) {
LOGGER.info("Save token of owner {} failed", request.getUuid());
throw new Exception("Save token failed: " + e.getMessage());
}
}
}
|
[
"longpham@leep.app"
] |
longpham@leep.app
|
34c1391da9637d36cd66647b8bcec95ba731e0ff
|
21efac6b88e7513be3296189b0e8bcdad5337312
|
/tomitribe-crest/src/main/java/org/tomitribe/crest/cmds/MissingArgumentException.java
|
beb94c14437f5bf7d586bb6c2c84aa94077d0db5
|
[
"Apache-2.0"
] |
permissive
|
tomitribe/crest
|
b415a44c0b19ce72bdad3e0da3cdeb40e87af6e6
|
4423b96cf42cb5e3ece694feabdeeb7e2e1e7a5d
|
refs/heads/master
| 2023-08-16T19:10:35.546524
| 2023-08-01T03:18:54
| 2023-08-01T03:18:54
| 11,673,895
| 43
| 17
|
Apache-2.0
| 2022-06-08T20:05:48
| 2013-07-26T00:12:26
|
Java
|
UTF-8
|
Java
| false
| false
| 1,140
|
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.tomitribe.crest.cmds;
import org.tomitribe.crest.api.Exit;
@Exit(value = 400, help = true) // using http status codes because it's fun :)
public class MissingArgumentException extends IllegalArgumentException {
public MissingArgumentException(final String s) {
super("Missing argument: " + s + "");
}
}
|
[
"david.blevins@gmail.com"
] |
david.blevins@gmail.com
|
213b3cab31e0b7cbc8e139a3972008406001ae7a
|
3c45a5f2aaef7951be8769a28fa28e05d6d3fbb4
|
/utilities/src/main/java/com/logica/ndk/tm/utilities/file/SmallFileCharacterizationImpl.java
|
c82c7acb314d5757672384e2f88e6a332b745832
|
[] |
no_license
|
NLCR/NDK-validator-2012-legacy
|
99c51442655b5a9c872fc9b4cb57d98138d6c8e0
|
3ddcf34131f2f0e8366297c4ad7738f651d7a340
|
refs/heads/master
| 2021-05-28T17:10:32.391360
| 2014-11-10T10:18:47
| 2014-11-10T10:18:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 635
|
java
|
package com.logica.ndk.tm.utilities.file;
import com.logica.ndk.tm.process.ParamMap;
import com.logica.ndk.tm.utilities.AbstractUtility;
public class SmallFileCharacterizationImpl extends AbstractUtility{
public String execute(final String cdmId, final String sourcePath, final String targetPath, final ParamMap parameters) throws FileCharacterizationException{
log.info("Utility smallFileCharacterization started");
log.info(String.format("cdmId %s, source %s, target %s", cdmId, sourcePath, targetPath));
return new FileCharacterizationImpl().execute(cdmId, sourcePath, targetPath, parameters);
}
}
|
[
"rudolf@m2117.nkp.cz"
] |
rudolf@m2117.nkp.cz
|
6d578fe03ffc51bf799be1c96eb2c414bf01b3c4
|
065c1f648e8dd061a20147ff9c0dbb6b5bc8b9be
|
/eclipsejdt_cluster/60290/src_0.java
|
aa84f3887aea3fdf84ff23fc909699935e685cb2
|
[] |
no_license
|
martinezmatias/GenPat-data-C3
|
63cfe27efee2946831139747e6c20cf952f1d6f6
|
b360265a6aa3bb21bd1d64f1fc43c3b37d0da2a4
|
refs/heads/master
| 2022-04-25T17:59:03.905613
| 2020-04-15T14:41:34
| 2020-04-15T14:41:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,515
|
java
|
package org.eclipse.jdt.internal.core.newbuilder;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer;
class ClasspathMultiDirectory extends ClasspathDirectory {
String sourcePath; // includes .class files. The primary path is the source path
NameEnvironment nameEnvironment; // set at the beginning of each compile loop
ClasspathMultiDirectory(String sourcePath, String binaryPath) {
super(binaryPath);
this.sourcePath = sourcePath;
if (!sourcePath.endsWith("/")) //$NON-NLS-1$
this.sourcePath += "/"; //$NON-NLS-1$
}
void cleanup() {
super.cleanup();
this.nameEnvironment = null;
}
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof ClasspathMultiDirectory)) return false;
ClasspathMultiDirectory md = (ClasspathMultiDirectory) o;
return binaryPath.equalsIgnoreCase(md.binaryPath) && sourcePath.equalsIgnoreCase(md.sourcePath);
}
NameEnvironmentAnswer findClass(char[] className, char[][] packageName) {
if (nameEnvironment.additionalSourceFilenames != null) {
// if an additional source file is waiting to be compiled, answer it
// BUT not if this is a secondary type search,
// if we answer the source file X.java which may no longer define Y
// then the binary type looking for Y will fail & think the class path is wrong
// let the recompile loop fix up dependents when Y has been deleted from X.java
String sourceFilename = new String(className) + ".java"; //$NON-NLS-1$
if (exists(sourcePath, sourceFilename, packageName)) {
String fullSourceName = sourcePath + NameEnvironment.assembleName(sourceFilename, packageName, '/');
String[] additionalSourceFilenames = nameEnvironment.additionalSourceFilenames;
for (int i = 0, l = additionalSourceFilenames.length; i < l; i++)
if (fullSourceName.equals(additionalSourceFilenames[i]))
return new NameEnvironmentAnswer(new SourceFile(fullSourceName, packageName));
}
}
// assume any class file found in this output folder would eventually be found...
// its possible with multiple source folders, that a class file should not be found associated
// with this source folder, but with another which we have yet to search
return super.findClass(className, packageName);
}
public String toString() {
return "Source classpath directory " + sourcePath + //$NON-NLS-1$
" with binary directory " + binaryPath; //$NON-NLS-1$
}
}
|
[
"375833274@qq.com"
] |
375833274@qq.com
|
9942e6d078f151aa6fc8e55546e8cc1bd196988e
|
926ddb5f89895868a1817a555e03e795f5cd230d
|
/src/main/java/com/test/designPattern/创建型模式/原型模式/PrototypePatternDemo.java
|
a111dc3774ab0c967a8690193a18fd99911aea18
|
[] |
no_license
|
xxzds/test
|
cb0837ebc6f2c0b2b78bd8b5ebc74edf0f6dc898
|
0bb1e5c7e18509d5c2fb327c2833c58d9f7a3cfb
|
refs/heads/master
| 2021-08-24T13:20:51.541410
| 2017-11-21T08:02:41
| 2017-11-21T08:02:41
| 111,517,811
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 688
|
java
|
package com.test.designPattern.创建型模式.原型模式;
/**
* PrototypePatternDemo 使用 ShapeCache 类来获取存储在 Hashtable 中的形状的克隆。
* @author ding.shuai
* @date 2016年8月3日下午10:49:00
*/
public class PrototypePatternDemo {
public static void main(String[] args) {
ShapeCache.loadCache();
Shape clonedShape = (Shape) ShapeCache.getShape("1");
System.out.println("Shape : " + clonedShape.getType());
Shape clonedShape2 = (Shape) ShapeCache.getShape("2");
System.out.println("Shape : " + clonedShape2.getType());
Shape clonedShape3 = (Shape) ShapeCache.getShape("3");
System.out.println("Shape : " + clonedShape3.getType());
}
}
|
[
"1114332905@qq.com"
] |
1114332905@qq.com
|
3e88baaaef6f8f80598b96a3917f7ac9f972a03b
|
f11d0634c95a3340dd6b880ddd892a8da85729a9
|
/way-boleto/src/test/java/br/com/objectos/way/boleto/SacadorAvalistaFalso.java
|
5e7f1cc41d6297fa17a6d9ac2a5567e9e1bc3011
|
[
"Apache-2.0"
] |
permissive
|
fredwilliamtjr/jabuticava
|
11e27091cffd080853b6811ef364c8c9ab9aa9aa
|
3235e3cc2f48e2145c86dfe73b88ebeed141cddb
|
refs/heads/master
| 2023-03-18T05:16:17.925964
| 2014-09-27T22:00:56
| 2014-09-27T22:00:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,066
|
java
|
/*
* Copyright 2013 Objectos, Fábrica de Software LTDA.
*
* 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 br.com.objectos.way.boleto;
import br.com.objectos.way.base.br.CadastroRFB;
import br.com.objectos.way.base.br.Cnpj;
/**
* @author edenir.anschau@objectos.com.br (Edenir Norberto Anschau)
*/
public class SacadorAvalistaFalso implements BoletoSacadorAvalista {
@Override
public String getNome() {
return "Avalista XYZ";
}
@Override
public CadastroRFB getCadastroRFB() {
return Cnpj.valueOf("45.291.381/0001-43");
}
}
|
[
"marcio.endo@objectos.com.br"
] |
marcio.endo@objectos.com.br
|
4ea7ba9d5f17ce8ca24910335f7bfae6939c3061
|
a7bff68f0adfc377c97777534f780d9ed4ed62a4
|
/code/struts_10.27/src/com/umt/struts/vo/Student.java
|
57185feb21a529518af26072814eac7c483039a4
|
[] |
no_license
|
salingers/Jee
|
0a683715c62fd1e7c2d16d29f1c311506a23ed3b
|
c6ba53bdc87c60740a7f3a284518b9dd2c3f8d9e
|
refs/heads/master
| 2021-01-11T05:42:08.078111
| 2016-11-22T05:09:55
| 2016-11-22T05:09:55
| 71,548,561
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 602
|
java
|
package com.umt.struts.vo;
public class Student {
private int stuNo;
private String stuName;
private Dept dept;
public Dept getDept() {
return dept;
}
public void setDept(Dept dept) {
this.dept = dept;
}
public Student() {
super();
}
public Student(int stuNo, String stuName) {
super();
this.stuNo = stuNo;
this.stuName = stuName;
}
public int getStuNo() {
return stuNo;
}
public void setStuNo(int stuNo) {
this.stuNo = stuNo;
}
public String getStuName() {
return stuName;
}
public void setStuName(String stuName) {
this.stuName = stuName;
}
}
|
[
"salingersms@msn.com"
] |
salingersms@msn.com
|
3b2aafa689821dc17712d7c7362ed7ab569336b7
|
2840c5871070b5404b4d29ab6132bce81b5eb672
|
/spring-mvc-conversionvalidacion/src/com/atrium/controller/Administracion_Accion.java
|
77ac99509492bc3f7d79aa47b37d7c73e843ea56
|
[] |
no_license
|
SmpCat/Profesor-Ejemplos-Master-Java
|
b88c4eb7f58261a2d48d8bb7e79a0f7374eb1705
|
60dbcea0ee3d2cb395aa97e3a33fc661f675269b
|
refs/heads/master
| 2020-06-18T04:22:58.062727
| 2019-07-10T09:19:29
| 2019-07-10T09:19:29
| 196,162,087
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,755
|
java
|
package com.atrium.controller;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import com.atrium.dominio.Datos_Usuario;
import com.atrium.hibernate.Roles;
import com.atrium.hibernate.Usuarios;
import com.atrium.hibernate.modelo.IGestion_Roles;
import com.atrium.validadores.Validar_Usuario;
/**
* Procesos de administracion de usuarios.
*
* @author Juan Antonio Solves Garcia.
* @version 2.0.
* @since 10-11-2017.
*
*/
@Controller("administracion_accion")
@Scope("prototype")
public class Administracion_Accion {
// PROPIEDADES PARA LOS PROCESOS DE ADMINISTRACION
private Datos_Usuario datos_usuario;
private ModelAndView navegacion;
private Validar_Usuario validar_usuarios;
public Administracion_Accion() {
System.out.println("soy el controller de usuario");
}
/**
* Proceso de alta de usuario.
*
* @param usuario_administracion
* Objeto de dominio con la informacion de la peticion,
* convertida y validada.
* @param errores
* Posibles errores de la conversion o validacion.
* @return Navegacion segun logica.
*/
@RequestMapping(value = "/usuario.htm")
public ModelAndView alta_Usuario(
@Validated @ModelAttribute("usuario_peticion") Datos_Usuario usuario_administracion,
BindingResult errores, HttpServletRequest peticion,
HttpServletResponse respuesta) {
// /RECARGA DE LA PAGINA DE PRUEBA
navegacion = new ModelAndView("administracion", "usuario_peticion",
usuario_administracion);
return navegacion;
}
/**
* Carga del validador personalizado para el modelo datos_login.<br/>
* Para la version de validacion con jsr303 se retira la anotacion
* initbinder del metodo.<br/>
*
* @InitBinder Indica la ejecucion de este metodo para la definicion de el
* proceso de validacion, oblogatoria.
*
* @param registro_validador
* Objeto {@link WebDataBinder} de spring para el registras el
* validador personalizado.
*/
@InitBinder
public void cargar_Validacion(WebDataBinder registro_validadores) {
registro_validadores.setValidator(validar_usuarios);
}
/**
* Gestion de la creacion del objeto de dominio.
*
* @return
*/
@ModelAttribute("usuario_peticion")
public Datos_Usuario crear_UsuarioPeticion() {
this.iniciar_Dominio();
return datos_usuario;
}
/**
* Proceso de iniciacion de valores para el objeto de dominio.
*/
private void iniciar_Dominio() {
datos_usuario.setCarpetaDocumentacion("");
datos_usuario.setFechaAlta(new Date());
datos_usuario.setFechaBaja(null);
datos_usuario.setNombreUsuario("");
datos_usuario.setPassword("");
datos_usuario.setIdioma("");
datos_usuario.setRoles(null);
}
// ACCESORES PARA SPRING
public void setNavegacion(ModelAndView navegacion) {
this.navegacion = navegacion;
}
public void setValidar_usuarios(Validar_Usuario validar_usuarios) {
this.validar_usuarios = validar_usuarios;
}
public void setDatos_usuario(Datos_Usuario datos_usuario) {
this.datos_usuario = datos_usuario;
}
}
|
[
"48870324+SmpCat@users.noreply.github.com"
] |
48870324+SmpCat@users.noreply.github.com
|
444d96890b5cc1d6a524ba30dc9f786d8ab60672
|
2088303ad9939663f5f8180f316b0319a54bc1a6
|
/src/main/java/com/lottery/lottype/jc/jclq/dxf/Jclqdxf25020.java
|
c1a06ad3676d4b43eefc4a6e0798cc87cefa7505
|
[] |
no_license
|
lichaoliu/lottery
|
f8afc33ccc70dd5da19c620250d14814df766095
|
7796650e5b851c90fce7fd0a56f994f613078e10
|
refs/heads/master
| 2022-12-23T05:30:22.666503
| 2019-06-10T13:46:38
| 2019-06-10T13:46:38
| 141,867,129
| 7
| 1
| null | 2022-12-16T10:52:50
| 2018-07-22T04:59:44
|
Java
|
UTF-8
|
Java
| false
| false
| 775
|
java
|
package com.lottery.lottype.jc.jclq.dxf;
import java.math.BigDecimal;
import java.util.List;
import com.lottery.lottype.SplitedLot;
public class Jclqdxf25020 extends JclqdxfX{
Jclqdxf15020 dxf = new Jclqdxf15020();
@Override
public long getSingleBetAmount(String betcode, BigDecimal beishu,
int oneAmount) {
return getSingleBetAmountDT(betcode, beishu, oneAmount);
}
@Override
public List<SplitedLot> splitByType(String betcode, int lotmulti,
int oneAmount) {
return splitByBetTypeDT(betcode, lotmulti, oneAmount);
}
@Override
protected int getPlayType() {
return 5020;
}
@Override
protected long getNormalBetAmount(String betcode, BigDecimal beishu,
int oneAmount) {
return dxf.getSingleBetAmount(betcode, beishu, oneAmount);
}
}
|
[
"1147149597@qq.com"
] |
1147149597@qq.com
|
a38b234dbf45d58c0aa823f77f57c3cc8cf10fbd
|
6fa0dd9215520541ca9e60d9fceab735011a5e25
|
/src/fr/klemms/interchat/Config.java
|
f0210af85e0ab663037d932e828e1e631e2dfe7f
|
[] |
no_license
|
Klemms/Interchat
|
3bee8819fdca977a8a674ce06bf5d4a039df8244
|
c1ee00f1d101787a99c36902f94f802a775bdce1
|
refs/heads/master
| 2021-05-04T03:52:00.371405
| 2017-04-13T21:52:32
| 2017-04-13T21:52:32
| 70,798,684
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 339
|
java
|
package fr.klemms.interchat;
import org.bukkit.plugin.java.JavaPlugin;
public class Config {
public static int pluginVersion = 1;
public static void registerConfig(JavaPlugin plugin) {
plugin.getConfig().addDefault("pluginVersion", pluginVersion);
plugin.getConfig().options().copyDefaults(true);
plugin.saveConfig();
}
}
|
[
"unconfigured@null.spigotmc.org"
] |
unconfigured@null.spigotmc.org
|
a27dc836080f662a4756295762ec64a646bb1d1c
|
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
|
/crash-reproduction-new-fitness/results/XWIKI-12667-1-1-Single_Objective_GGA-WeightedSum-BasicBlockCoverage/org/xwiki/model/reference/EntityReference_ESTest_scaffolding.java
|
6499cd5f79853778b83df154873ac479fac86994
|
[
"MIT",
"CC-BY-4.0"
] |
permissive
|
STAMP-project/Botsing-basic-block-coverage-application
|
6c1095c6be945adc0be2b63bbec44f0014972793
|
80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da
|
refs/heads/master
| 2022-07-28T23:05:55.253779
| 2022-04-20T13:54:11
| 2022-04-20T13:54:11
| 285,771,370
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,831
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Thu May 14 13:15:09 UTC 2020
*/
package org.xwiki.model.reference;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class EntityReference_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "org.xwiki.model.reference.EntityReference";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(EntityReference_ESTest_scaffolding.class.getClassLoader() ,
"org.xwiki.model.internal.reference.LocalizedStringEntityReferenceSerializer",
"org.xwiki.model.internal.reference.StringReferenceSeparators$3",
"org.xwiki.model.internal.reference.AbstractStringEntityReferenceSerializer",
"org.xwiki.model.internal.reference.StringReferenceSeparators$4",
"org.xwiki.component.annotation.Component",
"org.xwiki.model.reference.EntityReference",
"org.xwiki.model.internal.reference.StringReferenceSeparators",
"org.xwiki.model.internal.reference.StringReferenceSeparators$1",
"org.xwiki.text.StringUtils",
"org.xwiki.model.internal.reference.StringReferenceSeparators$2",
"org.apache.commons.lang3.StringUtils",
"org.xwiki.model.internal.reference.DefaultStringEntityReferenceSerializer",
"org.xwiki.model.reference.DocumentReference",
"org.xwiki.model.EntityType",
"org.xwiki.model.reference.EntityReferenceSerializer"
);
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
f48618d66e5499d9644a13a5438d84d447a76daa
|
8af1164bac943cef64e41bae312223c3c0e38114
|
/results-java/elastic--elasticsearch/e4cbdfa05bbe87f636d76aa7539e2ab3f0ec39b1/before/StringFieldData.java
|
07f210f1273616d2728acad0be47ff14b5489cbd
|
[] |
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
| 3,523
|
java
|
/*
* Licensed to Elastic Search and Shay Banon under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Elastic Search 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.elasticsearch.index.field.data.strings;
import org.apache.lucene.index.IndexReader;
import org.elasticsearch.common.RamUsage;
import org.elasticsearch.index.field.data.FieldData;
import org.elasticsearch.index.field.data.FieldDataType;
import org.elasticsearch.index.field.data.support.FieldDataLoader;
import java.io.IOException;
import java.util.ArrayList;
/**
* @author kimchy (shay.banon)
*/
public abstract class StringFieldData extends FieldData<StringDocFieldData> {
protected final String[] values;
protected StringFieldData(String fieldName, String[] values) {
super(fieldName);
this.values = values;
}
@Override protected long computeSizeInBytes() {
long size = RamUsage.NUM_BYTES_ARRAY_HEADER;
for (String value : values) {
if (value != null) {
size += RamUsage.NUM_BYTES_OBJECT_HEADER + ((value.length() * RamUsage.NUM_BYTES_CHAR) + (3 * RamUsage.NUM_BYTES_INT));
}
}
return size;
}
abstract public String value(int docId);
abstract public String[] values(int docId);
@Override public StringDocFieldData docFieldData(int docId) {
return super.docFieldData(docId);
}
@Override public String stringValue(int docId) {
return value(docId);
}
@Override protected StringDocFieldData createFieldData() {
return new StringDocFieldData(this);
}
@Override public FieldDataType type() {
return FieldDataType.DefaultTypes.STRING;
}
@Override public void forEachValue(StringValueProc proc) {
for (int i = 1; i < values.length; i++) {
proc.onValue(values[i]);
}
}
public static StringFieldData load(IndexReader reader, String field) throws IOException {
return FieldDataLoader.load(reader, field, new StringTypeLoader());
}
static class StringTypeLoader extends FieldDataLoader.FreqsTypeLoader<StringFieldData> {
private final ArrayList<String> terms = new ArrayList<String>();
StringTypeLoader() {
super();
// the first one indicates null value
terms.add(null);
}
@Override public void collectTerm(String term) {
terms.add(term);
}
@Override public StringFieldData buildSingleValue(String field, int[] ordinals) {
return new SingleValueStringFieldData(field, ordinals, terms.toArray(new String[terms.size()]));
}
@Override public StringFieldData buildMultiValue(String field, int[][] ordinals) {
return new MultiValueStringFieldData(field, ordinals, terms.toArray(new String[terms.size()]));
}
}
}
|
[
"fraczwojciech@gmail.com"
] |
fraczwojciech@gmail.com
|
748ca468d99b4c30c0c1153889ca48e4abbe35cd
|
89be44270846bd4f32ca3f51f29de4921c1d298a
|
/bitcamp-project-server/v37_5/java/com/eomcs/lms/servlet/MemberDeleteServlet.java
|
a4cea82e12b40a315df79ffd31811f5991c754ec
|
[] |
no_license
|
nayoung00/bitcamp-study
|
931b439c40a8fe10bdee49c0aaf449399d8fe801
|
b3d3c9135114cf17c7afd3ceaee83b5c2cedff29
|
refs/heads/master
| 2020-09-28T17:39:04.332086
| 2020-04-30T23:57:45
| 2020-04-30T23:57:45
| 226,825,309
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 649
|
java
|
package com.eomcs.lms.servlet;
import java.io.PrintStream;
import java.util.Scanner;
import com.eomcs.lms.dao.MemberDao;
public class MemberDeleteServlet implements Servlet {
MemberDao memberDao;
public MemberDeleteServlet(MemberDao memberDao) {
this.memberDao = memberDao;
}
@Override
public void service(Scanner in, PrintStream out) throws Exception {
out.println("번호? \n!{}!");
out.flush();
int no = Integer.parseInt(in.nextLine());
if (memberDao.delete(no) > 0) {
out.println("회원을 삭제했습니다.");
} else {
out.println("해당 번호의 회원이 없습니다.");
}
}
}
|
[
"invin1201@gmail.com"
] |
invin1201@gmail.com
|
5cb5df6f7a05e0a99f65c97eb3870af1ad1abc8c
|
bf7b4c21300a8ccebb380e0e0a031982466ccd83
|
/middlewareConcepts2014-master/Assignment3/lib/jacorb-3.4/src/generated/org/omg/CosNotification/StructuredEvent.java
|
b0b7b752c4a1ed0ec0985d15e0eb18f8b7f70ee3
|
[] |
no_license
|
Puriakshat/Tuberlin
|
3fe36b970aabad30ed95e8a07c2f875e4912a3db
|
28dcf7f7edfe7320c740c306b1c0593a6c1b3115
|
refs/heads/master
| 2021-01-19T07:30:16.857479
| 2014-11-06T18:49:16
| 2014-11-06T18:49:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 813
|
java
|
package org.omg.CosNotification;
/**
* Generated from IDL struct "StructuredEvent".
*
* @author JacORB IDL compiler V @project.version@
* @version generated at 27-May-2014 20:14:30
*/
public final class StructuredEvent
implements org.omg.CORBA.portable.IDLEntity
{
/** Serial version UID. */
private static final long serialVersionUID = 1L;
public StructuredEvent(){}
public org.omg.CosNotification.EventHeader header;
public org.omg.CosNotification.Property[] filterable_data;
public org.omg.CORBA.Any remainder_of_body;
public StructuredEvent(org.omg.CosNotification.EventHeader header, org.omg.CosNotification.Property[] filterable_data, org.omg.CORBA.Any remainder_of_body)
{
this.header = header;
this.filterable_data = filterable_data;
this.remainder_of_body = remainder_of_body;
}
}
|
[
"puri.akshat@gmail.com"
] |
puri.akshat@gmail.com
|
e19d26d8625eed8697f36c97f3ff0c0fe3d23a8b
|
b339d666e64a2746b551c0f757267f156919eebd
|
/com.onpositive.keras.importer/src/com/onpositive/keras/importer/model/Config.java
|
b0934f9adcb03f2ac8cabb690c1611d532d9d59f
|
[] |
no_license
|
32kda/com.onpositive.keras.importer
|
4cc94ca906d0b82fe995b7a3ef02797cc3ba0c6d
|
dac1ae2643299ea35b02ddd3a7a2f3c93a46202e
|
refs/heads/master
| 2020-12-02T20:52:21.036428
| 2017-07-05T06:40:19
| 2017-07-05T06:41:56
| 96,223,902
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,593
|
java
|
package com.onpositive.keras.importer.model;
import com.google.gson.annotations.SerializedName;
public class Config {
private String name;
private boolean trainable;
private int units;
private String activation;
@SerializedName(value="recurrent_activation")
private String recurrentActivation;
@SerializedName(value="use_bias")
private boolean useBias;
@SerializedName(value="batch_input_shape")
private Integer[] batchInputShape;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public boolean isTrainable() {
return trainable;
}
public void setTrainable(boolean trainable) {
this.trainable = trainable;
}
public int getUnits() {
return units;
}
public void setUnits(int units) {
this.units = units;
}
public String getActivation() {
return activation;
}
public void setActivation(String activation) {
this.activation = activation;
}
public boolean isUseBias() {
return useBias;
}
public void setUseBias(boolean useBias) {
this.useBias = useBias;
}
@Override
public String toString() {
return "Config [name=" + name + ", units=" + units + "]";
}
public String getRecurrentActivation() {
return recurrentActivation;
}
public void setRecurrentActivation(String recurrentActivation) {
this.recurrentActivation = recurrentActivation;
}
public Integer[] getBatchInputShape() {
return batchInputShape;
}
public void setBatchInputShape(Integer[] batchInputShape) {
this.batchInputShape = batchInputShape;
}
}
|
[
"dmitry@onpositive.com"
] |
dmitry@onpositive.com
|
c311c2902d01fd64afd208d73b4362dbed472515
|
7662573af10a26e6319c7c21d2a4c8020ffae210
|
/src/main/java/org/sikuli/script/natives/SWIGTYPE_p_cv__Rect.java
|
41e8ea13d0b2c04b9d10ede63de98ed4ecb0d7ea
|
[] |
no_license
|
Fractalizer3/SikuliX-API
|
e85f5c304e68772a0e715561503f77d8ab7ec126
|
df45dd7b94e4fb292fd36da08b2a460a46d14114
|
refs/heads/master
| 2021-01-18T09:35:20.735382
| 2013-07-13T05:47:42
| 2013-07-13T05:47:42
| 11,404,945
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 729
|
java
|
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.7
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package org.sikuli.script.natives;
public class SWIGTYPE_p_cv__Rect {
private long swigCPtr;
protected SWIGTYPE_p_cv__Rect(long cPtr, boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_cv__Rect() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_cv__Rect obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
|
[
"rmhdevelop@me.com"
] |
rmhdevelop@me.com
|
c17c6c76ae233cc7280332e96cb27c01bc29baa1
|
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/BasicShapeWithTitleDef.java
|
94c49b239426fa7c65bad813b3090f4d6e719e3b
|
[
"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
| 1,190
|
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;
import org.kie.workbench.common.stunner.core.client.shape.view.HasTitle;
public interface BasicShapeWithTitleDef<W>
extends BasicShapeDef<W> {
String getNamePropertyValue( W element );
String getFontFamily( W element );
String getFontColor( W element );
double getFontSize( W element );
double getFontBorderSize( W element );
HasTitle.Position getFontPosition( W element );
/**
* The rotation value in degree units.
*/
double getFontRotation( W element );
}
|
[
"manstis@users.noreply.github.com"
] |
manstis@users.noreply.github.com
|
12e8f68fb6e4ab90fa3dddeba34fef38d57ceb1b
|
7016cec54fb7140fd93ed805514b74201f721ccd
|
/src/java/com/echothree/control/user/selector/common/spec/SelectorSpec.java
|
a31341a309f3f9b287a57dfc4367f9839f0533b7
|
[
"MIT",
"Apache-1.1",
"Apache-2.0"
] |
permissive
|
echothreellc/echothree
|
62fa6e88ef6449406d3035de7642ed92ffb2831b
|
bfe6152b1a40075ec65af0880dda135350a50eaf
|
refs/heads/master
| 2023-09-01T08:58:01.429249
| 2023-08-21T11:44:08
| 2023-08-21T11:44:08
| 154,900,256
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 978
|
java
|
// --------------------------------------------------------------------------------
// Copyright 2002-2023 Echo Three, LLC
//
// 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.echothree.control.user.selector.common.spec;
public interface SelectorSpec
extends SelectorTypeSpec {
String getSelectorName();
void setSelectorName(String selectorName);
}
|
[
"rich@echothree.com"
] |
rich@echothree.com
|
d66db573b83f092c5f91f41e00fc862383e7f73d
|
c18dd934e4df46679411666794657015ea4949ad
|
/debezium-common/src/test/java/com/abin/lee/debezium/svr/common/test/AppTest.java
|
2ee7a0af25185aa023ba57a191976066e57a77af
|
[] |
no_license
|
zondahuman/debezium-svr
|
3c5e0b22c726cbd52db172fc4e90712bea69254f
|
e8f07856809638d5aa3a1b09c9328cb5d8976833
|
refs/heads/master
| 2021-04-26T21:51:38.699583
| 2018-03-07T02:29:45
| 2018-03-07T02:29:45
| 123,868,733
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 176
|
java
|
package com.abin.lee.debezium.svr.common.test;
/**
* Created by abin on 2018/3/5 13:11.
* debezium-svr
* com.abin.lee.debezium.svr.common.test
*/
public class AppTest {
}
|
[
"zondahuman@gmail.com"
] |
zondahuman@gmail.com
|
e0b876c04cb332c6a7df4aacecf1fe0d9ffa6dcb
|
cfd4a68aad521aac7b1f3af1c868dfdd397666ab
|
/order-place/src/main/java/com/topscore/omnichannel/order/api/place/PlaceOrderRepository.java
|
fc8b2544ca9da57bcd3773f60ede83d0b056f761
|
[] |
no_license
|
meiyanzhong/order
|
ff91ba9afc6d8e117916537ec96bab1948030d3a
|
72612593823a349f26627034cb404e2324b35820
|
refs/heads/master
| 2021-09-01T05:15:17.224869
| 2017-12-25T02:03:19
| 2017-12-25T02:03:19
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 153
|
java
|
package com.topscore.omnichannel.order.api.place;
import org.springframework.stereotype.Repository;
@Repository
public class PlaceOrderRepository {
}
|
[
"dengbin19910916@163.com"
] |
dengbin19910916@163.com
|
c0e88fd6f76df5daf0cebcd6fdd657ff0ecd0b8d
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/11/11_e7626fc874be10fb95e07f1790f95c9ab965e680/CalculableMeta/11_e7626fc874be10fb95e07f1790f95c9ab965e680_CalculableMeta_s.java
|
641cde789c4272a97ea92b989f9b238deafe16e6
|
[] |
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
| 1,623
|
java
|
package de.bananaco.bpermissions.api.util;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import de.bananaco.bpermissions.api.Group;
public class CalculableMeta extends GroupCarrier {
Map<String, String> effectiveMeta;
@SuppressWarnings({ "unchecked", "rawtypes" })
protected CalculableMeta(Set<String> groups, Set<Permission> permissions,
String world) {
super(groups, permissions, world);
effectiveMeta = new HashMap();
}
/**
* Used to calculate the total permissions gained by the object
* @throws RecursiveGroupException
*/
public void calculateEffectiveMeta() throws RecursiveGroupException {
try {
// Implement meta priorities
effectiveMeta.clear();
int lastGroup = -1;
for (Group group : getGroups()) {
if(group.getPriority() > lastGroup) {
lastGroup = group.getPriority();
group.calculateEffectiveMeta();
Map<String, String> meta = group.getEffectiveMeta();
for(String key : meta.keySet()) {
effectiveMeta.put(key, meta.get(key));
}
}
}
// Obviously local priority wins every time
Map<String, String> meta = this.getMeta();
for(String key : meta.keySet()) {
effectiveMeta.put(key, meta.get(key));
}
} catch (StackOverflowError e) {
throw new RecursiveGroupException(this);
}
}
public Map<String, String> getEffectiveMeta() {
return effectiveMeta;
}
public String getEffectiveValue(String key) {
return effectiveMeta.get(key);
}
public boolean containsEffectiveValue(String key) {
return effectiveMeta.containsKey(key);
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
21fd856e85ae9805064dd9e61327c0e1309048b2
|
ce52038047763d5932b3a373e947e151e6f3d168
|
/ASPM-emftext/ASPM.resource.ASPM/src-gen/ASPM/resource/ASPM/grammar/ASPMBooleanTerminal.java
|
41cbc0efacd5305910b0852fa88b24189cdd6b94
|
[] |
no_license
|
rominaeramo/JTLframework
|
f6d506d117ab6c1f8c0dc83a72f8f00eb31c862b
|
5371071f63d8f951f532eed7225fb37656404cae
|
refs/heads/master
| 2021-01-21T13:25:24.999553
| 2016-05-12T15:32:27
| 2016-05-12T15:32:27
| 47,969,148
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 949
|
java
|
/**
* <copyright>
* </copyright>
*
*
*/
package ASPM.resource.ASPM.grammar;
/**
* A class to represent boolean terminals in a grammar.
*/
public class ASPMBooleanTerminal extends ASPM.resource.ASPM.grammar.ASPMTerminal {
private String trueLiteral;
private String falseLiteral;
public ASPMBooleanTerminal(org.eclipse.emf.ecore.EStructuralFeature attribute, String trueLiteral, String falseLiteral, ASPM.resource.ASPM.grammar.ASPMCardinality cardinality, int mandatoryOccurrencesAfter) {
super(attribute, cardinality, mandatoryOccurrencesAfter);
assert attribute instanceof org.eclipse.emf.ecore.EAttribute;
this.trueLiteral = trueLiteral;
this.falseLiteral = falseLiteral;
}
public String getTrueLiteral() {
return trueLiteral;
}
public String getFalseLiteral() {
return falseLiteral;
}
public org.eclipse.emf.ecore.EAttribute getAttribute() {
return (org.eclipse.emf.ecore.EAttribute) getFeature();
}
}
|
[
"r.eramo@gmail.com"
] |
r.eramo@gmail.com
|
ddeaae183f995b6d40961ed86b46596505b3804d
|
90f17cd659cc96c8fff1d5cfd893cbbe18b1240f
|
/src/main/java/com/vinzscam/reactnativefileviewer/RNFileViewerModule.java
|
2177d03b7eefa406f931985ce86abae7915f51b4
|
[] |
no_license
|
redpicasso/fluffy-octo-robot
|
c9b98d2e8745805edc8ddb92e8afc1788ceadd08
|
b2b62d7344da65af7e35068f40d6aae0cd0835a6
|
refs/heads/master
| 2022-11-15T14:43:37.515136
| 2020-07-01T22:19:16
| 2020-07-01T22:19:16
| 276,492,708
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,483
|
java
|
package com.vinzscam.reactnativefileviewer;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Parcelable;
import android.webkit.MimeTypeMap;
import androidx.core.content.FileProvider;
import com.RNFetchBlob.RNFetchBlobConst;
import com.brentvatne.react.ReactVideoView;
import com.facebook.react.bridge.ActivityEventListener;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.BaseActivityEventListener;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.bridge.ReadableMap;
import com.facebook.react.bridge.WritableMap;
import com.facebook.react.modules.core.DeviceEventManagerModule.RCTDeviceEventEmitter;
import java.io.File;
public class RNFileViewerModule extends ReactContextBaseJavaModule {
private static final String DISMISS_EVENT = "RNFileViewerDidDismiss";
private static final String OPEN_EVENT = "RNFileViewerDidOpen";
private static final Integer RN_FILE_VIEWER_REQUEST = Integer.valueOf(33341);
private static final String SHOW_OPEN_WITH_DIALOG = "showOpenWithDialog";
private static final String SHOW_STORE_SUGGESTIONS = "showAppsSuggestions";
private final ActivityEventListener mActivityEventListener = new BaseActivityEventListener() {
public void onActivityResult(Activity activity, int i, int i2, Intent intent) {
RNFileViewerModule.this.sendEvent(RNFileViewerModule.DISMISS_EVENT, Integer.valueOf(i - RNFileViewerModule.RN_FILE_VIEWER_REQUEST.intValue()), null);
}
};
private final ReactApplicationContext reactContext;
public String getName() {
return "RNFileViewer";
}
public RNFileViewerModule(ReactApplicationContext reactApplicationContext) {
super(reactApplicationContext);
this.reactContext = reactApplicationContext;
reactApplicationContext.addActivityEventListener(this.mActivityEventListener);
}
@ReactMethod
public void open(String str, Integer num, ReadableMap readableMap) {
Parcelable parse;
String str2 = SHOW_OPEN_WITH_DIALOG;
boolean z = false;
Boolean valueOf = Boolean.valueOf(readableMap.hasKey(str2) ? readableMap.getBoolean(str2) : false);
String str3 = SHOW_STORE_SUGGESTIONS;
if (readableMap.hasKey(str3)) {
z = readableMap.getBoolean(str3);
}
Boolean valueOf2 = Boolean.valueOf(z);
boolean startsWith = str.startsWith(RNFetchBlobConst.FILE_PREFIX_CONTENT);
String str4 = OPEN_EVENT;
if (startsWith) {
parse = Uri.parse(str);
} else {
File file = new File(str);
try {
StringBuilder stringBuilder = new StringBuilder(access$700().getPackageName());
stringBuilder.append(".provider");
parse = FileProvider.getUriForFile(access$700(), stringBuilder.toString(), file);
} catch (IllegalArgumentException e) {
sendEvent(str4, num, e.getMessage());
return;
}
}
if (parse == null) {
sendEvent(str4, num, "Invalid file");
return;
}
str = MimeTypeMap.getSingleton().getMimeTypeFromExtension(MimeTypeMap.getFileExtensionFromUrl(str).toLowerCase());
Intent intent = new Intent();
String str5 = "android.intent.action.VIEW";
intent.setAction(str5);
intent.addFlags(1);
intent.setDataAndType(parse, str);
intent.putExtra("android.intent.extra.STREAM", parse);
Intent createChooser = valueOf.booleanValue() ? Intent.createChooser(intent, "Open with") : intent;
if (intent.resolveActivity(access$700().getPackageManager()) != null) {
try {
access$700().startActivityForResult(createChooser, num.intValue() + RN_FILE_VIEWER_REQUEST.intValue());
sendEvent(str4, num, null);
} catch (Exception e2) {
sendEvent(str4, num, e2.getMessage());
}
} else {
try {
if (valueOf2.booleanValue()) {
if (str == null) {
throw new Exception("It wasn't possible to detect the type of the file");
}
StringBuilder stringBuilder2 = new StringBuilder();
stringBuilder2.append("market://search?q=");
stringBuilder2.append(str);
stringBuilder2.append("&c=apps");
access$700().startActivity(new Intent(str5, Uri.parse(stringBuilder2.toString())));
}
throw new Exception("No app associated with this mime type");
} catch (Exception e22) {
sendEvent(str4, num, e22.getMessage());
}
}
}
private void sendEvent(String str, Integer num, String str2) {
WritableMap createMap = Arguments.createMap();
createMap.putInt("id", num.intValue());
if (str2 != null) {
createMap.putString(ReactVideoView.EVENT_PROP_ERROR, str2);
}
((RCTDeviceEventEmitter) this.reactContext.getJSModule(RCTDeviceEventEmitter.class)).emit(str, createMap);
}
}
|
[
"aaron@goodreturn.org"
] |
aaron@goodreturn.org
|
0507aa44c6e80ef35e5764db6f1e7da8b1236324
|
d730308970df56fba9be1f2ff81bcc5814b9c787
|
/Framework/src/com/trascender/framework/recurso/filtros/FiltroDiaFeriado.java
|
c204679e61e1d20d00e89cb51212c3254000bbb4
|
[] |
no_license
|
munivictoria/sgmdv
|
dda1285de24477e75986d655c9fc4d805ef47a4e
|
9da300b2c90cb3ec7f7c3af47509db884f71ab05
|
refs/heads/master
| 2021-01-18T21:16:59.795064
| 2016-05-16T13:36:11
| 2016-05-16T13:36:11
| 28,036,850
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 717
|
java
|
package com.trascender.framework.recurso.filtros;
import com.trascender.framework.recurso.persistent.DiaFeriado;
import com.trascender.framework.util.FiltroAbstracto;
public class FiltroDiaFeriado extends FiltroAbstracto<DiaFeriado>{
public FiltroDiaFeriado(String pNombre, Integer pAnio) {
nombre = pNombre;
anio = pAnio;
}
public FiltroDiaFeriado() {
}
private static final long serialVersionUID = -2085372839374335546L;
private String nombre;
private Integer anio;
public String getNombre() {
return nombre;
}
public void setNombre(String pNombre) {
nombre = pNombre;
}
public Integer getAnio() {
return anio;
}
public void setAnio(Integer pAnio) {
anio = pAnio;
}
}
|
[
"ferna@fernando-notebook.(none)"
] |
ferna@fernando-notebook.(none)
|
b0ef9120045df78889b9ebebc60c2c8fcd63041f
|
ea87e7258602e16675cec3e29dd8bb102d7f90f8
|
/fest-swing/src/test/java/org/fest/swing/driver/JComboBoxDriver_clearSelection_Test.java
|
f55dfb0f6c5b43f0deedddf3d7daeec16d951dc9
|
[
"Apache-2.0"
] |
permissive
|
codehaus/fest
|
501714cb0e6f44aa1b567df57e4f9f6586311862
|
a91c0c0585c2928e255913f1825d65fa03399bc6
|
refs/heads/master
| 2023-07-20T01:30:54.762720
| 2010-09-02T00:56:33
| 2010-09-02T00:56:33
| 36,525,844
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,276
|
java
|
/*
* Created on Feb 24, 2008
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*
* Copyright @2008-2010 the original author or authors.
*/
package org.fest.swing.driver;
import static org.fest.assertions.Assertions.assertThat;
import static org.fest.swing.driver.JComboBoxSelectedIndexQuery.selectedIndexOf;
import org.junit.Test;
/**
* Tests for <code>{@link JComboBoxDriver#clearSelection(javax.swing.JComboBox)}</code>.
*
* @author Alex Ruiz
* @author Yvonne Wang
*/
public class JComboBoxDriver_clearSelection_Test extends JComboBoxDriver_TestCase {
@Test
public void should_clear_selection() {
selectFirstItem();
driver.clearSelection(comboBox);
assertThat(selectedIndexOf(comboBox)).isEqualTo(-1);
}
}
|
[
"alexruiz@0e018e5f-c563-0410-a877-f7675914c6cc"
] |
alexruiz@0e018e5f-c563-0410-a877-f7675914c6cc
|
b6d709734f1a1c755aa09ee241962f77c8835b46
|
115fc7bbb60d915632bba730063560f78df63461
|
/rsf-center/rsf-center-runtime/src/main/java/net/hasor/rsf/center/server/launcher/StartupModule.java
|
9cbb8e723938e8d7944330baa6875d0d4139f82e
|
[] |
no_license
|
richardy2012/rsf
|
63ef4fd82485bea3c345fd80a250deb7c62659d5
|
9f2571c63046649dc18ede49d6bab87036e07680
|
refs/heads/master
| 2021-01-22T01:51:30.098854
| 2016-04-13T12:59:52
| 2016-04-13T12:59:52
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,407
|
java
|
/*
* Copyright 2008-2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.hasor.rsf.center.server.launcher;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import net.hasor.core.ApiBinder;
import net.hasor.core.Module;
import net.hasor.rsf.center.server.core.startup.RsfCenterServerModule;
import net.hasor.rsf.console.RsfCommand;
/**
*
* @version : 2016年4月13日
* @author 赵永春(zyc@hasor.net)
*/
class StartupModule implements Module {
protected static Logger logger = LoggerFactory.getLogger(StartupModule.class);
@Override
public void loadModule(ApiBinder apiBinder) throws Throwable {
logger.info(">>>>>>>>>> init <<<<<<<<<<");
//
apiBinder.bindType(RsfCommand.class).uniqueName().to(CenterAppShutdownCommand.class);
apiBinder.installModule(new RsfCenterServerModule());
}
}
|
[
"zyc@hasor.net"
] |
zyc@hasor.net
|
9ac97c889606f0c0d5875fc5b652b1a1b244c6e3
|
732182a102a07211f7c1106a1b8f409323e607e0
|
/serviced/externs/cfg/ectype/SweepCondition.java
|
4014d85f8cf7d6c898d22ebaf5b6f6f119a68584
|
[] |
no_license
|
BanyLee/QYZ_Server
|
a67df7e7b4ec021d0aaa41cfc7f3bd8c7f1af3da
|
0eeb0eb70e9e9a1a06306ba4f08267af142957de
|
refs/heads/master
| 2021-09-13T22:32:27.563172
| 2018-05-05T09:20:55
| 2018-05-05T09:20:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 254
|
java
|
package cfg.ectype;
public final class SweepCondition {
public final static int NULL = -1;
public final static int CLEAR = 1;
public final static int THREE_STAR = 2;
public final static java.util.List<Integer> enums = java.util.Arrays.asList(1 ,2);
}
|
[
"hadowhadow@gmail.com"
] |
hadowhadow@gmail.com
|
89fa11f9f0fd6cfb3e1539206666dc6d8bf6f8b6
|
a5011219b47faf1ea5b8a13abd99a6a61ea42457
|
/src/main/java/br/ufpa/labes/spm/domain/WorkGroupInstSug.java
|
ca14895c5d367561eed13523eedb9301602ee265
|
[] |
no_license
|
Lakshamana/spmtmp
|
13c9c1ae9fd06223e2d0793d4f00b89871e0b0de
|
1376c1036cd7379709fdab15813c029469c0e394
|
refs/heads/master
| 2022-12-25T05:44:06.996515
| 2019-10-24T01:15:48
| 2019-10-24T01:15:48
| 212,907,678
| 0
| 0
| null | 2022-12-16T05:03:37
| 2019-10-04T21:48:40
|
Java
|
UTF-8
|
Java
| false
| false
| 3,490
|
java
|
package br.ufpa.labes.spm.domain;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import javax.persistence.*;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
/**
* A WorkGroupInstSug.
*/
@Entity
@Table(name = "work_group_inst_sug")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class WorkGroupInstSug extends PeopleInstSug implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@ManyToOne
@JsonIgnoreProperties("theWorkGroupInstSugs")
private WorkGroup groupChosen;
@ManyToOne
@JsonIgnoreProperties("theWorkGroupInstSugs")
private WorkGroupType groupTypeRequired;
@ManyToMany
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@JoinTable(name = "work_group_inst_sug_group_suggested",
joinColumns = @JoinColumn(name = "work_group_inst_sug_id", referencedColumnName = "id"),
inverseJoinColumns = @JoinColumn(name = "group_suggested_id", referencedColumnName = "id"))
private Set<WorkGroup> groupSuggesteds = new HashSet<>();
// jhipster-needle-entity-add-field - JHipster will add fields here, do not remove
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public WorkGroup getGroupChosen() {
return groupChosen;
}
public WorkGroupInstSug groupChosen(WorkGroup workGroup) {
this.groupChosen = workGroup;
return this;
}
public void setGroupChosen(WorkGroup workGroup) {
this.groupChosen = workGroup;
}
public WorkGroupType getGroupTypeRequired() {
return groupTypeRequired;
}
public WorkGroupInstSug groupTypeRequired(WorkGroupType workGroupType) {
this.groupTypeRequired = workGroupType;
return this;
}
public void setGroupTypeRequired(WorkGroupType workGroupType) {
this.groupTypeRequired = workGroupType;
}
public Set<WorkGroup> getGroupSuggesteds() {
return groupSuggesteds;
}
public WorkGroupInstSug groupSuggesteds(Set<WorkGroup> workGroups) {
this.groupSuggesteds = workGroups;
return this;
}
public WorkGroupInstSug addGroupSuggested(WorkGroup workGroup) {
this.groupSuggesteds.add(workGroup);
workGroup.getTheSuggestedGroups().add(this);
return this;
}
public WorkGroupInstSug removeGroupSuggested(WorkGroup workGroup) {
this.groupSuggesteds.remove(workGroup);
workGroup.getTheSuggestedGroups().remove(this);
return this;
}
public void setGroupSuggesteds(Set<WorkGroup> workGroups) {
this.groupSuggesteds = workGroups;
}
// jhipster-needle-entity-add-getters-setters - JHipster will add getters and setters here, do not remove
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof WorkGroupInstSug)) {
return false;
}
return id != null && id.equals(((WorkGroupInstSug) o).id);
}
@Override
public int hashCode() {
return 31;
}
@Override
public String toString() {
return "WorkGroupInstSug{" +
"id=" + getId() +
"}";
}
}
|
[
"guitrompa1@gmail.com"
] |
guitrompa1@gmail.com
|
ea8f7a2e90b9531283eb3f477de078100324b6d8
|
91adc264eb26be39c656f054005ec740d07900bd
|
/easthope_project/ehpoj/client/nc/ui/eh/refpub/NewAreaclRefModel.java
|
91c93672a86f8b575b065f59ad801e26108a3c1d
|
[] |
no_license
|
xhrise/nc-workspaces
|
9f30caf273e932bd1b4c2d419ac6bef4ef55e1cc
|
d5fcbce810ba4d4b5405edabfb5a26c36a19e7f8
|
refs/heads/master
| 2020-05-19T10:43:29.058686
| 2013-06-20T02:40:27
| 2013-06-20T02:40:27
| 37,459,512
| 0
| 1
| null | null | null | null |
GB18030
|
Java
| false
| false
| 1,273
|
java
|
/**
* @(#)TradeclassRefModel.java V3.1 2007-8-29
*
* Copyright 1988-2005 UFIDA, Inc. All Rights Reserved.
*
* This software is the proprietary information of UFSoft, Inc.
* Use is subject to license terms.
*
*/
package nc.ui.eh.refpub;
import nc.ui.bd.ref.AbstractRefModel;
public class NewAreaclRefModel extends AbstractRefModel {
@Override
public String[] getFieldCode() {
// TODO Auto-generated method stub
return new String[] {"areacode","areaname", "pk_areacl","fatherpk"};
}
@Override
public String[] getFieldName() {
// TODO Auto-generated method stub
return new String[] {"片区编号","片区名称", "主键","父键"};
}
@Override
public String getPkFieldCode() {
// TODO Auto-generated method stub
return "pk_areacl";
}
@Override
public String getRefTitle() {
// TODO Auto-generated method stub
return "片区参照";
}
@Override
public String getTableName() {
// TODO Auto-generated method stub
return "eh_areacl";
}
@Override
public String getWherePart() {
return " pk_corp = '"+getPk_corp()+"' and nvl(stop_flag,'N')='N' and nvl(dr,0)=0";
}
}
|
[
"comicme_yanghe@126.com"
] |
comicme_yanghe@126.com
|
40c78dd67e3a0aa436a15c3c6a546ff64d6b5971
|
79e2e3347aaaac76f771beebdf4a50bcb9804e9f
|
/app/src/main/java/com/windmillsteward/jukutech/activity/home/specialty/adapter/SpecialtyRecommendGroupAdapter.java
|
5cf3aac4d06c79c20e60823e1b24c512f345a64f
|
[] |
no_license
|
inyuo/shunfengche
|
2b3d5ecda7703c8414ad483326a8c05998b4201d
|
a8c2668f43db962b9b0def531c3fe87cc1f0119d
|
refs/heads/master
| 2020-07-13T13:26:44.196536
| 2019-08-06T07:43:38
| 2019-08-06T07:43:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,062
|
java
|
package com.windmillsteward.jukutech.activity.home.specialty.adapter;
import android.app.Activity;
import android.content.Context;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.windmillsteward.jukutech.R;
import com.windmillsteward.jukutech.base.baseadapter.BaseQuickAdapter;
import com.windmillsteward.jukutech.base.baseadapter.BaseViewHolder;
import com.windmillsteward.jukutech.bean.SpecialtyHomeRecommendBean;
import com.windmillsteward.jukutech.customview.GradientTextView;
import com.windmillsteward.jukutech.utils.GlideUtil;
import com.windmillsteward.jukutech.utils.GraphicUtil;
import java.util.List;
import java.util.Random;
/**
* 描述:特产推荐列表主item
* 时间:2018/7/10/
* 作者:cyq
*/
public class SpecialtyRecommendGroupAdapter extends BaseQuickAdapter<SpecialtyHomeRecommendBean, BaseViewHolder> {
private SpecialtyHomeAdapter.RecyclerViewDataCallBack mDataCallBack;
private Context context;
public SpecialtyRecommendGroupAdapter(Context context,List<SpecialtyHomeRecommendBean> list,SpecialtyHomeAdapter.RecyclerViewDataCallBack mDataCallBack) {
super(R.layout.specialty_home_recommend_group, list);
this.mDataCallBack = mDataCallBack;
this.context = context;
}
@Override
protected void convert(BaseViewHolder helper, final SpecialtyHomeRecommendBean item) {
if (item != null) {
Random rand = new Random();
int random = rand.nextInt(3);
GradientTextView tv_title = (GradientTextView) helper.getView(R.id.tv_title);
ImageView iv_bg = (ImageView) helper.getView(R.id.iv_bg);
ImageView iv_banner = (ImageView) helper.getView(R.id.iv_banner);
TextView tv_more = (TextView) helper.getView(R.id.tv_more);
RecyclerView mRecyclerView = (RecyclerView) helper.getView(R.id.mRecyclerView);
if (random == 0) {
tv_title.setmColorList(new int[]{0xb0f451, 0xFFffd229, 0xFFfd7c00});
iv_bg.setImageResource(R.mipmap.icon_home_title2);
} else if (random == 1) {
tv_title.setmColorList(new int[]{0xFF08e0f9, 0xFF78c800, 0xFFfd7c00});
iv_bg.setImageResource(R.mipmap.icon_home_title);
} else if (random == 2) {
tv_title.setmColorList(new int[]{0xFFdde742, 0xFFffa200, 0xFF77c600});
iv_bg.setImageResource(R.mipmap.icon_home_title3);
} else if (random == 3) {
tv_title.setmColorList(new int[]{0xFF09f08e, 0xFF00cfd7, 0xFF00878c});
iv_bg.setImageResource(R.mipmap.icon_home_title);
}
tv_title.setText(item.getName());
tv_title.setVertrial(false);
ViewGroup.LayoutParams layoutParams = iv_banner.getLayoutParams();
int screenWH = GraphicUtil.getScreenWH((Activity)context, GraphicUtil.TAG_WIDTH);
layoutParams.width = screenWH;
layoutParams.height = 275 * layoutParams.width / 1010;
iv_banner.setLayoutParams(layoutParams);
GlideUtil.show(context,item.getClass_banner(),iv_banner,R.mipmap.icon_default_pic);
int position = helper.getAdapterPosition() - getHeaderLayoutCount();
List<SpecialtyHomeRecommendBean.ListBean> recommend_list = item.getRecommend_list();
SpecialtyRecommendChildAdapter adapter = new SpecialtyRecommendChildAdapter(position,recommend_list,context);
mRecyclerView.setAdapter(adapter);
mRecyclerView.setLayoutManager(new LinearLayoutManager(context));
tv_more.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
mDataCallBack.setOnRecommendMoreClick(item);
}
});
}
}
}
|
[
"mxnzp_life@163.com"
] |
mxnzp_life@163.com
|
34fd49bac97aaec7bbc92022fea7ba12be2b2332
|
32f38cd53372ba374c6dab6cc27af78f0a1b0190
|
/app/src/main/java/defpackage/blb.java
|
e939ff441bf02e7cb035fc440446baef7c0f18b3
|
[
"BSD-3-Clause"
] |
permissive
|
shuixi2013/AmapCode
|
9ea7aefb42e0413f348f238f0721c93245f4eac6
|
1a3a8d4dddfcc5439df8df570000cca12b15186a
|
refs/heads/master
| 2023-06-06T23:08:57.391040
| 2019-08-29T04:36:02
| 2019-08-29T04:36:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,096
|
java
|
package defpackage;
import com.alipay.mobile.h5container.api.H5Param;
import com.amap.bundle.jsadapter.JsAdapter;
import com.autonavi.common.PageBundle;
import org.json.JSONException;
import org.json.JSONObject;
/* renamed from: blb reason: default package */
/* compiled from: GetTransparentParamsAction */
public class blb extends vz {
public final void a(JSONObject jSONObject, wa waVar) {
JsAdapter a = a();
if (a != null) {
JSONObject jSONObject2 = new JSONObject();
String str = "";
if (a.mPageContext != null) {
PageBundle arguments = a.mPageContext.getArguments();
if (arguments != null) {
str = arguments.getString(H5Param.LONG_TRANSPARENT);
}
}
try {
jSONObject2.put("_action", waVar.b);
jSONObject2.put(H5Param.LONG_TRANSPARENT, str);
a.callJs(waVar.a, jSONObject2.toString());
} catch (JSONException e) {
kf.a((Throwable) e);
}
}
}
}
|
[
"hubert.yang@nf-3.com"
] |
hubert.yang@nf-3.com
|
b34a3546953c4ac1db389511ed5311e4d0c0dc92
|
e0e419440db3b9af4f7f415ca9488793fb5be468
|
/collect-core/src/main/java/org/openforis/collect/event/AttributeUpdatedEvent.java
|
e8f595eabc5034448c411a92dffca5cb873b24ec
|
[
"MIT"
] |
permissive
|
brianl9995/collect
|
864d06815a0cfb63326a8e60e200b4582d739a09
|
6b424d6e3c97828876e72a1c0933d7a6290a1c1e
|
refs/heads/master
| 2022-11-13T00:24:28.775873
| 2020-06-08T20:16:22
| 2020-06-08T20:16:22
| 270,810,016
| 0
| 0
| null | 2020-06-08T20:04:42
| 2020-06-08T20:04:41
| null |
UTF-8
|
Java
| false
| false
| 521
|
java
|
package org.openforis.collect.event;
import java.util.Date;
import java.util.List;
/**
*
* @author D. Wiell
* @author S. Ricci
*
*/
public abstract class AttributeUpdatedEvent extends AttributeEvent {
public AttributeUpdatedEvent(String surveyName, Integer recordId,
RecordStep step, String definitionId, List<String> ancestorIds,
String nodeId, Date timestamp, String userName) {
super(surveyName, recordId, step, definitionId, ancestorIds, nodeId,
timestamp, userName);
}
}
|
[
"stefano.ricci@fao.org"
] |
stefano.ricci@fao.org
|
c726ba97366d733058f73d1652a2d5faec4b8eb9
|
694d574b989e75282326153d51bd85cb8b83fb9f
|
/google-ads/src/main/java/com/google/ads/googleads/v1/services/stub/CampaignCriterionServiceStub.java
|
5acc7c0973709352b1b70a9a77fedb77d2a6702f
|
[
"Apache-2.0"
] |
permissive
|
tikivn/google-ads-java
|
99201ef20efd52f884d651755eb5a3634e951e9b
|
1456d890e5c6efc5fad6bd276b4a3cd877175418
|
refs/heads/master
| 2023-08-03T13:02:40.730269
| 2020-07-17T16:33:40
| 2020-07-17T16:33:40
| 280,845,720
| 0
| 0
|
Apache-2.0
| 2023-07-23T23:39:26
| 2020-07-19T10:51:35
| null |
UTF-8
|
Java
| false
| false
| 1,968
|
java
|
/*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.ads.googleads.v1.services.stub;
import com.google.ads.googleads.v1.resources.CampaignCriterion;
import com.google.ads.googleads.v1.services.GetCampaignCriterionRequest;
import com.google.ads.googleads.v1.services.MutateCampaignCriteriaRequest;
import com.google.ads.googleads.v1.services.MutateCampaignCriteriaResponse;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.rpc.UnaryCallable;
import javax.annotation.Generated;
// AUTO-GENERATED DOCUMENTATION AND CLASS
/**
* Base stub class for Google Ads API.
*
* <p>This class is for advanced usage and reflects the underlying API directly.
*/
@Generated("by gapic-generator")
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public abstract class CampaignCriterionServiceStub implements BackgroundResource {
public UnaryCallable<GetCampaignCriterionRequest, CampaignCriterion>
getCampaignCriterionCallable() {
throw new UnsupportedOperationException("Not implemented: getCampaignCriterionCallable()");
}
public UnaryCallable<MutateCampaignCriteriaRequest, MutateCampaignCriteriaResponse>
mutateCampaignCriteriaCallable() {
throw new UnsupportedOperationException("Not implemented: mutateCampaignCriteriaCallable()");
}
@Override
public abstract void close();
}
|
[
"nwbirnie@gmail.com"
] |
nwbirnie@gmail.com
|
563f528296683e1322fdafd810a0f8e742960943
|
2b6e3a34ec277f72a5da125afecfe3f4a61419f5
|
/Ruyicai_91/v3.7.2/src/com/ruyicai/net/newtransaction/BalanceQueryInterface.java
|
7076895403463069ebf98a2b3d1be87750e6211d
|
[] |
no_license
|
surport/Android
|
03d538fe8484b0ff0a83b8b0b2499ad14592c64b
|
afc2668728379caeb504c9b769011f2ba1e27d25
|
refs/heads/master
| 2020-04-02T10:29:40.438348
| 2013-12-18T09:55:42
| 2013-12-18T09:55:42
| 15,285,717
| 3
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,767
|
java
|
package com.ruyicai.net.newtransaction;
import org.json.JSONException;
import org.json.JSONObject;
import com.ruyicai.constant.Constants;
import com.ruyicai.net.InternetUtils;
import com.ruyicai.util.ProtocolManager;
/**
* 用户中心,余额查询
*
* @author miao
*
*/
public class BalanceQueryInterface {
private static String COMMAND = "AllQuery";
private static BalanceQueryInterface instance = null;
private BalanceQueryInterface() {
}
public synchronized static BalanceQueryInterface getInstance() {
if (instance == null) {
instance = new BalanceQueryInterface();
}
return instance;
}
/**
* 余额查询方法
*
* @param userno
* @param sessionid
* @param phonenum
* @return error_code| message<br>
* 000000 | 成功<br>
* 000047 | 无记录<br>
* 999999 |操作失败<br>
* balance :余额 用户余额<br>
* drawbalance :可提现余额<br>
* freezebalance: 用户冻结金额<br>
* bet_balance : 投注金额<br>
*/
public static String balanceQuery(String userno, String sessionid,
String phonenum) {
JSONObject jsonProtocol = ProtocolManager.getInstance()
.getDefaultJsonProtocol();
try {
jsonProtocol.put(ProtocolManager.COMMAND, COMMAND);
jsonProtocol.put(ProtocolManager.USERNO, userno);
jsonProtocol.put(ProtocolManager.SESSIONID, sessionid);
jsonProtocol.put(ProtocolManager.TYPE, "balance");
jsonProtocol.put(ProtocolManager.PHONE_NUM, phonenum);
return InternetUtils.GetMethodOpenHttpConnectSecurity(
Constants.LOT_SERVER, jsonProtocol.toString());
} catch (JSONException e) {
e.printStackTrace();
}
return "";
}
}
|
[
"zxflimit@gmail.com"
] |
zxflimit@gmail.com
|
8990fed05faca4769b1dd2e9e3a4bace5d38a829
|
7a0029548ee61693a6eb40cadae0111335c73fec
|
/debezium-core/src/test/java/io/debezium/relational/history/MemoryDatabaseHistoryTest.java
|
7aa80980d7afc0a5907c85c1ffce9dd316fcce1a
|
[
"Apache-2.0"
] |
permissive
|
RedVentures/debezium
|
2f3585e39b42a25e6ababdfbcb7874ed786f25b3
|
e86fb83459c2b328a186072ff2500f3d6f590d3c
|
refs/heads/master
| 2021-09-08T11:28:30.485315
| 2016-08-16T14:56:47
| 2016-08-16T14:56:47
| 65,745,620
| 0
| 0
|
NOASSERTION
| 2021-08-19T02:57:59
| 2016-08-15T16:04:36
|
Java
|
UTF-8
|
Java
| false
| false
| 427
|
java
|
/*
* Copyright Debezium Authors.
*
* Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package io.debezium.relational.history;
/**
* @author Randall Hauch
*/
public class MemoryDatabaseHistoryTest extends AbstractDatabaseHistoryTest {
@Override
protected DatabaseHistory createHistory() {
return new MemoryDatabaseHistory();
}
}
|
[
"rhauch@gmail.com"
] |
rhauch@gmail.com
|
98f647f740eca669c3bb4393a314d82c7baebc99
|
ef2aaf0c359a9487f269d792c53472e4b41689a6
|
/documentation/design/essn/SubjectRegistry/edu/duke/cabig/c3pr/webservice/iso21090/IVLHighTSBirth.java
|
18005a7a5119e8c0b459cb00c21bf06e1ae0202d
|
[] |
no_license
|
NCIP/c3pr-docs
|
eec40451ac30fb5fee55bb2d22c10c6ae400845e
|
5adca8c04fcb47adecbb4c045be98fcced6ceaee
|
refs/heads/master
| 2016-09-05T22:56:44.805679
| 2013-03-08T19:59:03
| 2013-03-08T19:59:03
| 7,276,330
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,143
|
java
|
package edu.duke.cabig.c3pr.webservice.iso21090;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for IVL.High_TS.Birth complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="IVL.High_TS.Birth">
* <complexContent>
* <restriction base="{uri:iso.org:21090}IVL_TS.Birth">
* <sequence>
* <element name="originalText" type="{uri:iso.org:21090}ED.Text" minOccurs="0"/>
* <element name="low" type="{uri:iso.org:21090}TS.Birth" maxOccurs="0" minOccurs="0"/>
* <element name="high" type="{uri:iso.org:21090}TS.Birth" minOccurs="0"/>
* <element name="width" type="{uri:iso.org:21090}QTY" maxOccurs="0" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "IVL.High_TS.Birth")
public class IVLHighTSBirth
extends IVLTSBirth
{
}
|
[
"kruttikagarwal@gmail.com"
] |
kruttikagarwal@gmail.com
|
f6e810901d92366d12a03a73104ee0a3c0373523
|
03bcf39c35b6f0ada8701b85298db27b5c40b1d0
|
/src/xt/java/com/blnz/xsl/trax/TraxUtil.java
|
bdc2829f24111a80ffd768bf4c2aa9e567114146
|
[
"MIT"
] |
permissive
|
blnz/xt
|
72ec72b0fb980d5fc24649ffa58fd1ca8eaa507c
|
8db763a4c00ac180716098c878bd1717b408197c
|
refs/heads/master
| 2021-01-17T13:49:27.000858
| 2016-08-01T15:34:27
| 2016-08-01T15:34:27
| 998,935
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,162
|
java
|
// $Id: TraxUtil.java 98 2005-02-28 21:37:10Z blindsey $
package com.blnz.xsl.trax;
import java.io.*;
import javax.xml.transform.*;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.dom.DOMResult;
import javax.xml.transform.sax.SAXSource;
import javax.xml.transform.sax.SAXResult;
import javax.xml.transform.stream.StreamSource;
import javax.xml.transform.stream.StreamResult;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.InputSource;
import org.xml.sax.XMLReader;
import org.xml.sax.SAXException;
import org.xml.sax.ContentHandler;
import org.w3c.dom.Node;
import org.w3c.dom.Document;
/**
* A collection of TrAX related utility methods.
*/
public abstract class TraxUtil
{
// /**
// * Create a XmlSource from a javax.xml.transform.Source.
// */
// public static XmlSource getXmlSource(Source source) throws TransformerConfigurationException
// {
// try
// {
// String systemId = source.getSystemId();
// if (systemId == null)
// systemId = "";
// if (source instanceof StreamSource)
// {
// StreamSource streamSource = (StreamSource)source;
// InputSource inputSource = new InputSource(systemId);
// inputSource.setByteStream(streamSource.getInputStream());
// inputSource.setCharacterStream(streamSource.getReader());
// inputSource.setPublicId(streamSource.getPublicId());
// return new XmlSource(inputSource);
// }
// if (source instanceof SAXSource)
// {
// SAXSource saxSource = (SAXSource)source;
// InputSource inputSource = saxSource.getInputSource();
// if (inputSource == null)
// throw new TransformerConfigurationException("SAXSource does not provide an InputSource");
// if (inputSource.getSystemId() == null)
// inputSource.setSystemId("");
// XmlSource xmlSource = new XmlSource(inputSource);
// xmlSource.setXmlReader(saxSource.getXMLReader());
// return xmlSource;
// }
// if (source instanceof DOMSource)
// {
// Node node = ((DOMSource)source).getNode();
// return new XmlSource(systemId, node);
// }
// if (source instanceof TraxModelXmlSource)
// {
// return new ModelXmlSource(systemId, ((TraxModelXmlSource)source).getRoot());
// }
// }
// catch(TransformerConfigurationException e)
// {
// throw (TransformerConfigurationException)e;
// }
// catch(Exception e)
// {
// throw new TransformerConfigurationException(e);
// }
// throw new TransformerConfigurationException("cannot handle a transformation source of " + source.getClass());
// }
// /**
// * Create a XsltResult from a javax.xml.transform.Result.
// */
// public static XsltResult getXsltResult(Result result) throws TransformerConfigurationException
// {
// if (result instanceof StreamResult)
// return getXsltResult((StreamResult)result);
// if (result instanceof DOMResult)
// return new XsltResult(getDomResultBuilder((DOMResult)result));
// if (result instanceof SAXResult)
// return new XsltResult(getSaxResultBuilder((SAXResult)result));
// throw new TransformerConfigurationException("cannot handle transformation result " + result.getClass());
// }
// private static XsltResult getXsltResult(StreamResult result)
// throws TransformerConfigurationException
// {
// String systemId = result.getSystemId();
// String uri = (systemId != null) ? systemId : "";
// // try to use the OutputStream of the StreamResult
// OutputStream out = result.getOutputStream();
// if (out != null)
// return new XsltResult(uri, out, false);
// // try to use the Writer of the StreamResult
// Writer writer = result.getWriter();
// if (writer != null)
// return new XsltResult(uri, writer, false);
// if (systemId != null)
// {
// // try to derive a file name from the systemId
// String fileName = systemId;
// if (fileName.startsWith("file:///"))
// fileName = fileName.substring(8);
// try
// {
// out = new BufferedOutputStream(new FileOutputStream(fileName));
// }
// catch(IOException e)
// {
// throw new TransformerConfigurationException(e);
// }
// return new XsltResult(uri, out, true);
// }
// throw new TransformerConfigurationException("StreamResult has no OutputStream, Writer or SystemId");
// }
// /**
// * Create a ResultBuilder for a DOMResult.
// */
// private static ResultBuilder getDomResultBuilder(DOMResult result)
// throws TransformerConfigurationException
// {
// // extract a Node from the result
// Node node = result.getNode();
// if (node == null)
// {
// node = createDomDocument();
// result.setNode(node);
// }
// Document doc = node.getNodeType() == Node.DOCUMENT_NODE ?
// (Document)node : node.getOwnerDocument();
// if (doc == null)
// throw new TransformerConfigurationException("Node of DOMResult does not have a owner-document");
// return new DomResultBuilder(doc, node);
// }
// private static ResultBuilder getSaxResultBuilder(SAXResult result)
// throws TransformerConfigurationException
// {
// // extract the systemId, a ContentHandler and a LexicalHandler
// // from the result
// SAXResult saxResult = (SAXResult)result;
// String systemId = result.getSystemId();
// if (systemId == null)
// systemId = "";
// ContentHandler contentHandler = saxResult.getHandler();
// if (contentHandler == null)
// throw new TransformerConfigurationException("SAXResult does not provide a ContentHandler");
// return new SaxResultBuilder(systemId, contentHandler, saxResult.getLexicalHandler());
// }
// /**
// * Create a new DOM document.
// */
// public static Document createDomDocument() throws TransformerConfigurationException
// {
// try
// {
// DocumentBuilderFactory dbfactory = DocumentBuilderFactory.newInstance();
// return dbfactory.newDocumentBuilder().newDocument();
// }
// catch(ParserConfigurationException e)
// {
// throw new TransformerConfigurationException(e);
// }
// }
// /**
// * Create a UriResolver from a Trax URIResolver.
// */
// public static UriResolver getUriResolver(URIResolver traxUriResolver)
// {
// return (traxUriResolver == null) ? null : new UriResolverAdapter(traxUriResolver);
// }
// /**
// * Convert a qualified name from the Trax representation ([{<uri>}]name)
// * to jd representation ([<uri>:]name).
// */
// public static String convertQualifiedName(String name)
// {
// if (name.charAt(0) == '{')
// {
// int p = name.charAt('}');
// if (p == -1)
// throw new IllegalArgumentException("cannot extract namespace uri from name '" + name + "'");
// name = name.substring(1, p) + ':' + name.substring(p + 1);
// }
// return name;
// }
}
|
[
"bill@blnz.com"
] |
bill@blnz.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.