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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cf8e0f89ff72d358de6dc93279dcbfae0b5461ce
|
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
|
/genny_JavaWithoutLambdas/applicationModule/src/test/java/applicationModulepackageJava9/Foo456Test.java
|
171cc077ac5653d052c276630fe603f7fdbd76ba
|
[] |
no_license
|
NikitaKozlov/generated-project-for-desugaring
|
0bc1443ab3ddc84cd289331c726761585766aea7
|
81506b3711004185070ca4bb9a93482b70011d36
|
refs/heads/master
| 2020-03-20T00:35:06.996525
| 2018-06-12T09:30:37
| 2018-06-12T09:30:37
| 137,049,317
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 481
|
java
|
package applicationModulepackageJava9;
import org.junit.Test;
public class Foo456Test {
@Test
public void testFoo0() {
new Foo456().foo0();
}
@Test
public void testFoo1() {
new Foo456().foo1();
}
@Test
public void testFoo2() {
new Foo456().foo2();
}
@Test
public void testFoo3() {
new Foo456().foo3();
}
@Test
public void testFoo4() {
new Foo456().foo4();
}
@Test
public void testFoo5() {
new Foo456().foo5();
}
}
|
[
"nikita.e.kozlov@gmail.com"
] |
nikita.e.kozlov@gmail.com
|
08e4bd7a1d45b35ccf32f1711a10f21b1f3e6dc6
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/22/22_31140ba2a667a7f8d6486de49c604d0477f1b325/ComicsWebView/22_31140ba2a667a7f8d6486de49c604d0477f1b325_ComicsWebView_s.java
|
3cdf6b7addf285ec0495ef03f1778c682c274516
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 4,338
|
java
|
/* Copyright 2012, Robert Myers */
/*
* This file is part of ComicsApp.
ComicsApp is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Comics is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ComicsApp. If not, see <http://www.gnu.org/licenses/>
*/
package com.robandjen.comicsapp;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
import android.preference.PreferenceManager;
import android.util.AttributeSet;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.webkit.WebView;
public class ComicsWebView extends WebView implements OnSharedPreferenceChangeListener {
GestureDetector mGestureDetect;
ComicsEvents mEvents;
static final float MAXTHRESHOLDY = 500f;
static final float MINTHRESHOLDX = 1500f;
static final String GESTUREPREF = "pref_usegestures";
boolean mGesturesEnabled;
//This assumes the view is the width of the screen
boolean handleTap(MotionEvent e) {
boolean rc = false;
if (mEvents != null) {
//Allow links and such in the hit region
WebView.HitTestResult htr = getHitTestResult();
if (htr.getType() != WebView.HitTestResult.UNKNOWN_TYPE
&& htr.getType() != WebView.HitTestResult.IMAGE_TYPE) {
return false;
}
//Tap in 1/CLICKRANGEth of edge causes next/previous
final int CLICKRANGE = 10;
final int width = getWidth();
final int prevrange = width / CLICKRANGE;
final int nextrange = width - prevrange;
final int xpos = (int) e.getX();
if (xpos <= prevrange) {
mEvents.onPreviousComic(this);
rc = true;
} else if (xpos >= nextrange) {
mEvents.onNextComic(this);
rc = true;
}
}
return rc;
}
void onActivityPause() {
SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(getContext().getApplicationContext());
pref.unregisterOnSharedPreferenceChangeListener(this);
}
void onActivityResume() {
SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(getContext().getApplicationContext());
pref.registerOnSharedPreferenceChangeListener(this);
mGesturesEnabled = pref.getBoolean(GESTUREPREF, false);
}
public void setListener(ComicsEvents listener) {
mEvents = listener;
}
private void initDetector() {
mGestureDetect = new GestureDetector(getContext(), new GestureDetector.SimpleOnGestureListener() {
@Override
public boolean onFling(MotionEvent e1,MotionEvent e2,float velocityX,float velocityY) {
boolean rc = false;
if (mEvents != null) {
if (Math.abs(velocityY) < Math.abs(velocityX) && Math.abs(velocityX) > MINTHRESHOLDX) {
if (velocityX < 0) {
mEvents.onNextComic(ComicsWebView.this);
}
else {
mEvents.onPreviousComic(ComicsWebView.this);
}
rc = true;
}
}
return rc;
}
@Override
public boolean onSingleTapUp(MotionEvent e) {
return handleTap(e);
}
}
);
}
public ComicsWebView(Context context) {
super(context);
initDetector();
}
public ComicsWebView(Context context, AttributeSet attrs) {
super(context, attrs);
initDetector();
}
public ComicsWebView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
initDetector();
}
@Override
public boolean onTouchEvent(MotionEvent event) {
boolean superrc = super.onTouchEvent(event);
boolean gesturerc = mGesturesEnabled && mGestureDetect.onTouchEvent(event);
return superrc || gesturerc;
}
@Override
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
if (key.equals(GESTUREPREF)) {
mGesturesEnabled = sharedPreferences.getBoolean(key, false);
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
bb7317beaacfe0cc2c90a7fe37be0fb12e3358d1
|
73308ecf567af9e5f4ef8d5ff10f5e9a71e81709
|
/en62526262/src/main/java/com/example/en62526262/CardRepository.java
|
08109d768dfb683c4a2f35bd2dd6ea73d2734fa3
|
[] |
no_license
|
yukihane/stackoverflow-qa
|
bfaf371e3c61919492e2084ed4c65f33323d7231
|
ba5e6a0d51f5ecfa80bb149456adea49de1bf6fb
|
refs/heads/main
| 2023-08-03T06:54:32.086724
| 2023-07-26T20:02:07
| 2023-07-26T20:02:07
| 194,699,870
| 3
| 3
| null | 2023-03-02T23:37:45
| 2019-07-01T15:34:08
|
Java
|
UTF-8
|
Java
| false
| false
| 189
|
java
|
package com.example.en62526262;
import java.util.UUID;
import org.springframework.data.jpa.repository.JpaRepository;
public interface CardRepository extends JpaRepository<Card, UUID> {
}
|
[
"yukihane.feather@gmail.com"
] |
yukihane.feather@gmail.com
|
bd43f97b59689c4d29d5e95d289c6ce8714c6735
|
50dd30a2cb11756345772d1e5f67f24c327b93ea
|
/src/main/java/z3950/RS_Explain/CategoryInfo.java
|
23c4709c5743d21fe395cdc7f323df2d07de54dc
|
[] |
no_license
|
cul/new_hrwa_manager
|
5812392e8a24cccc8df245662ec9c215d710cc7d
|
ad26b231ad4224a9cda77a89144039f82eec695c
|
refs/heads/master
| 2020-03-29T09:35:40.097290
| 2015-10-06T18:46:36
| 2015-10-06T18:46:36
| 35,516,444
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,175
|
java
|
/*
* $Source$
* $Date$
* $Revision$
*
* Copyright (C) 1998, Hoylen Sue. All Rights Reserved.
* <h.sue@ieee.org>
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Refer to
* the supplied license for more details.
*
* Generated by Zebulun ASN1tojava: 1998-09-08 03:15:14 UTC
*/
//----------------------------------------------------------------
package z3950.RS_Explain;
import asn1.*;
import z3950.v3.AttributeElement;
import z3950.v3.AttributeList;
import z3950.v3.AttributeSetId;
import z3950.v3.DatabaseName;
import z3950.v3.ElementSetName;
import z3950.v3.IntUnit;
import z3950.v3.InternationalString;
import z3950.v3.OtherInformation;
import z3950.v3.Specification;
import z3950.v3.StringOrNumeric;
import z3950.v3.Term;
import z3950.v3.Unit;
//================================================================
/**
* Class for representing a <code>CategoryInfo</code> from <code>RecordSyntax-explain</code>
*
* <pre>
* CategoryInfo ::=
* SEQUENCE {
* category [1] IMPLICIT InternationalString
* originalCategory [2] IMPLICIT InternationalString OPTIONAL
* description [3] IMPLICIT HumanString OPTIONAL
* asn1Module [4] IMPLICIT InternationalString OPTIONAL
* }
* </pre>
*
* @version $Release$ $Date$
*/
//----------------------------------------------------------------
public final class CategoryInfo extends ASN1Any
{
public final static String VERSION = "Copyright (C) Hoylen Sue, 1998. 199809080315Z";
//----------------------------------------------------------------
/**
* Default constructor for a CategoryInfo.
*/
public
CategoryInfo()
{
}
//----------------------------------------------------------------
/**
* Constructor for a CategoryInfo from a BER encoding.
* <p>
*
* @param ber the BER encoding.
* @param check_tag will check tag if true, use false
* if the BER has been implicitly tagged. You should
* usually be passing true.
* @exception ASN1Exception if the BER encoding is bad.
*/
public
CategoryInfo(BEREncoding ber, boolean check_tag)
throws ASN1Exception
{
super(ber, check_tag);
}
//----------------------------------------------------------------
/**
* Initializing object from a BER encoding.
* This method is for internal use only. You should use
* the constructor that takes a BEREncoding.
*
* @param ber the BER to decode.
* @param check_tag if the tag should be checked.
* @exception ASN1Exception if the BER encoding is bad.
*/
public void
ber_decode(BEREncoding ber, boolean check_tag)
throws ASN1Exception
{
// CategoryInfo should be encoded by a constructed BER
BERConstructed ber_cons;
try {
ber_cons = (BERConstructed) ber;
} catch (ClassCastException e) {
throw new ASN1EncodingException
("Zebulun CategoryInfo: bad BER form\n");
}
// Prepare to decode the components
int num_parts = ber_cons.number_components();
int part = 0;
BEREncoding p;
// Decoding: category [1] IMPLICIT InternationalString
if (num_parts <= part) {
// End of record, but still more elements to get
throw new ASN1Exception("Zebulun CategoryInfo: incomplete");
}
p = ber_cons.elementAt(part);
if (p.tag_get() != 1 ||
p.tag_type_get() != BEREncoding.CONTEXT_SPECIFIC_TAG)
throw new ASN1EncodingException
("Zebulun CategoryInfo: bad tag in s_category\n");
s_category = new InternationalString(p, false);
part++;
// Remaining elements are optional, set variables
// to null (not present) so can return at end of BER
s_originalCategory = null;
s_description = null;
s_asn1Module = null;
// Decoding: originalCategory [2] IMPLICIT InternationalString OPTIONAL
if (num_parts <= part) {
return; // no more data, but ok (rest is optional)
}
p = ber_cons.elementAt(part);
if (p.tag_get() == 2 &&
p.tag_type_get() == BEREncoding.CONTEXT_SPECIFIC_TAG) {
s_originalCategory = new InternationalString(p, false);
part++;
}
// Decoding: description [3] IMPLICIT HumanString OPTIONAL
if (num_parts <= part) {
return; // no more data, but ok (rest is optional)
}
p = ber_cons.elementAt(part);
if (p.tag_get() == 3 &&
p.tag_type_get() == BEREncoding.CONTEXT_SPECIFIC_TAG) {
s_description = new HumanString(p, false);
part++;
}
// Decoding: asn1Module [4] IMPLICIT InternationalString OPTIONAL
if (num_parts <= part) {
return; // no more data, but ok (rest is optional)
}
p = ber_cons.elementAt(part);
if (p.tag_get() == 4 &&
p.tag_type_get() == BEREncoding.CONTEXT_SPECIFIC_TAG) {
s_asn1Module = new InternationalString(p, false);
part++;
}
// Should not be any more parts
if (part < num_parts) {
throw new ASN1Exception("Zebulun CategoryInfo: bad BER: extra data " + part + "/" + num_parts + " processed");
}
}
//----------------------------------------------------------------
/**
* Returns a BER encoding of the CategoryInfo.
*
* @exception ASN1Exception Invalid or cannot be encoded.
* @return The BER encoding.
*/
public BEREncoding
ber_encode()
throws ASN1Exception
{
return ber_encode(BEREncoding.UNIVERSAL_TAG, ASN1Sequence.TAG);
}
//----------------------------------------------------------------
/**
* Returns a BER encoding of CategoryInfo, implicitly tagged.
*
* @param tag_type The type of the implicit tag.
* @param tag The implicit tag.
* @return The BER encoding of the object.
* @exception ASN1Exception When invalid or cannot be encoded.
* @see asn1.BEREncoding#UNIVERSAL_TAG
* @see asn1.BEREncoding#APPLICATION_TAG
* @see asn1.BEREncoding#CONTEXT_SPECIFIC_TAG
* @see asn1.BEREncoding#PRIVATE_TAG
*/
public BEREncoding
ber_encode(int tag_type, int tag)
throws ASN1Exception
{
// Calculate the number of fields in the encoding
int num_fields = 1; // number of mandatories
if (s_originalCategory != null)
num_fields++;
if (s_description != null)
num_fields++;
if (s_asn1Module != null)
num_fields++;
// Encode it
BEREncoding fields[] = new BEREncoding[num_fields];
int x = 0;
// Encoding s_category: InternationalString
fields[x++] = s_category.ber_encode(BEREncoding.CONTEXT_SPECIFIC_TAG, 1);
// Encoding s_originalCategory: InternationalString OPTIONAL
if (s_originalCategory != null) {
fields[x++] = s_originalCategory.ber_encode(BEREncoding.CONTEXT_SPECIFIC_TAG, 2);
}
// Encoding s_description: HumanString OPTIONAL
if (s_description != null) {
fields[x++] = s_description.ber_encode(BEREncoding.CONTEXT_SPECIFIC_TAG, 3);
}
// Encoding s_asn1Module: InternationalString OPTIONAL
if (s_asn1Module != null) {
fields[x++] = s_asn1Module.ber_encode(BEREncoding.CONTEXT_SPECIFIC_TAG, 4);
}
return new BERConstructed(tag_type, tag, fields);
}
//----------------------------------------------------------------
/**
* Returns a new String object containing a text representing
* of the CategoryInfo.
*/
public String
toString()
{
StringBuffer str = new StringBuffer("{");
int outputted = 0;
str.append("category ");
str.append(s_category);
outputted++;
if (s_originalCategory != null) {
if (0 < outputted)
str.append(", ");
str.append("originalCategory ");
str.append(s_originalCategory);
outputted++;
}
if (s_description != null) {
if (0 < outputted)
str.append(", ");
str.append("description ");
str.append(s_description);
outputted++;
}
if (s_asn1Module != null) {
if (0 < outputted)
str.append(", ");
str.append("asn1Module ");
str.append(s_asn1Module);
outputted++;
}
str.append("}");
return str.toString();
}
//----------------------------------------------------------------
/*
* Internal variables for class.
*/
public InternationalString s_category;
public InternationalString s_originalCategory; // optional
public HumanString s_description; // optional
public InternationalString s_asn1Module; // optional
} // CategoryInfo
//----------------------------------------------------------------
//EOF
|
[
"eric@ejdigitalmedia.com"
] |
eric@ejdigitalmedia.com
|
76f5e9ed94ce55b2a1489bcd5eef50a5e66e0a62
|
a7a0d051fc3e377bcb49adbf5cea71774f827a3f
|
/app/src/main/java/com/example/myuitest_b/DragView.java
|
a4056ccfb7d75f5c7aa875bcccaaa207a70d8566
|
[] |
no_license
|
ljrRookie/MyUiTest_B
|
1eaa1ff9ac616534e7c69e33696fa96f1e2cafab
|
3168891dea37106bd3360fe6ac2192f345483ff4
|
refs/heads/master
| 2020-05-19T19:16:08.088547
| 2019-05-06T10:31:40
| 2019-05-06T10:31:40
| 185,175,387
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,813
|
java
|
package com.example.myuitest_b;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PointF;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Toast;
public class DragView extends View {
/**
* 圆半径
*/
private float mBubbleRadius = 100f;
private PointF mBubMovableCenter;
private Paint mBubblePaint;
private Context mContext;
private float mDist;
public DragView(Context context) {
this(context, null);
mContext = context;
}
public DragView(Context context, @Nullable AttributeSet attrs) {
this(context, attrs, 0);
}
public DragView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
//抗锯齿
mBubblePaint = new Paint(Paint.ANTI_ALIAS_FLAG);
mBubblePaint.setColor(Color.RED);
mBubblePaint.setStyle(Paint.Style.FILL);
}
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
if (mBubMovableCenter == null) {
mBubMovableCenter = new PointF(w / 2, h / 2);
} else {
mBubMovableCenter.set(w / 2, h / 2);
}
}
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
canvas.drawCircle(mBubMovableCenter.x, mBubMovableCenter.y, mBubbleRadius, mBubblePaint);
}
@Override
public boolean onTouchEvent(MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
mDist = (float) Math.hypot(event.getX() - mBubMovableCenter.x, event.getY() - mBubMovableCenter.y);
if (mDist < mBubbleRadius) {
Toast.makeText(mContext, mContext.getResources().getString(R.string.drag), Toast.LENGTH_SHORT).show();
Log.e(">>>>>", "点到我啦,可以滑动啦");
} else {
Toast.makeText(mContext, mContext.getResources().getString(R.string.not_drag), Toast.LENGTH_SHORT).show();
Log.e(">>>>>", "要点到我才可以拖动");
}
break;
case MotionEvent.ACTION_MOVE:
if (mDist < mBubbleRadius) {
mBubMovableCenter.x = event.getX();
mBubMovableCenter.y = event.getY();
invalidate();
}
break;
case MotionEvent.ACTION_UP:
break;
}
return true;
}
}
|
[
"15622732935@163.com"
] |
15622732935@163.com
|
fd9cf61cc5c9cc088565241b637901ee25ab4b83
|
a938c8162313da137e94d6a9d223d1ec8db5a5ca
|
/NicadOutputFile_maven/Clone Pairs 212/Nicad_maven424.java
|
a3b2e42a2cb07455aba42917ef2a63bcb7d11792
|
[] |
no_license
|
ryosuke-ku/Nicad_ScrapinG
|
a94a61574dc17585047624b827639196b23b8e21
|
62200621eb293d7a8953ef6e18a7e0f2019ecc48
|
refs/heads/master
| 2020-06-29T22:03:44.189953
| 2019-08-05T13:17:57
| 2019-08-05T13:17:57
| 200,636,057
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,030
|
java
|
//1135:maven/maven-model-builder/src/main/java/org/apache/maven/model/merge/MavenModelMerger.java
//maven/maven-model-builder/src/test/java/org/apache/maven/model/merge/MavenModelMergerTest.java
public class Nicad_maven424
{
protected void mergeDistributionManagement_Repository( DistributionManagement target,
DistributionManagement source, boolean sourceDominant,
Map<Object, Object> context )
{
DeploymentRepository src = source.getRepository();
if ( src != null )
{
DeploymentRepository tgt = target.getRepository();
if ( sourceDominant || tgt == null )
{
tgt = new DeploymentRepository();
tgt.setLocation( "", src.getLocation( "" ) );
target.setRepository( tgt );
mergeDeploymentRepository( tgt, src, sourceDominant, context );
}
}
}
|
[
"naist1020@gmail.com"
] |
naist1020@gmail.com
|
e9da22244111c8ab19cceaf6fde6b941a6e48f33
|
6be39fc2c882d0b9269f1530e0650fd3717df493
|
/weixin反编译/sources/com/tencent/mm/insane_statistic/PluginInsaneStatistic.java
|
09d488de03803e1a4a1ae4e072bf9904ce60ce80
|
[] |
no_license
|
sir-deng/res
|
f1819af90b366e8326bf23d1b2f1074dfe33848f
|
3cf9b044e1f4744350e5e89648d27247c9dc9877
|
refs/heads/master
| 2022-06-11T21:54:36.725180
| 2020-05-07T06:03:23
| 2020-05-07T06:03:23
| 155,177,067
| 5
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 403
|
java
|
package com.tencent.mm.insane_statistic;
import com.tencent.mm.ap.r;
import com.tencent.mm.insane_statistic.a.a;
import com.tencent.mm.kernel.b.f;
import com.tencent.mm.kernel.b.g;
public class PluginInsaneStatistic extends f implements a {
public void execute(g gVar) {
if (gVar.DZ()) {
r.hEB = new b();
com.tencent.mm.modelstat.r.hUI = new a();
}
}
}
|
[
"denghailong@vargo.com.cn"
] |
denghailong@vargo.com.cn
|
fca9a7f60901b913ea81e0cca1ed238025626939
|
efc55d73f1425ac90d227209b70867f4dd487c5c
|
/Chapter4/Singularity/SingularityBase/src/main/java/com/hubspot/singularity/SingularityRequestParent.java
|
487443b841e558d326c7f821949d694903012888
|
[
"Apache-2.0",
"MIT"
] |
permissive
|
PacktPublishing/Mastering-Mesos
|
9f6171b449ad96222ce18ad3e3f3c6cdfe8fdbf3
|
88dddb51ed9ad070340edb33eef9fd12745b9f8a
|
refs/heads/master
| 2023-02-08T18:51:28.227621
| 2023-01-30T10:09:39
| 2023-01-30T10:09:39
| 58,921,823
| 12
| 6
|
MIT
| 2022-12-14T20:22:53
| 2016-05-16T09:52:00
|
Java
|
UTF-8
|
Java
| false
| false
| 4,546
|
java
|
package com.hubspot.singularity;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Optional;
import com.hubspot.singularity.expiring.SingularityExpiringBounce;
import com.hubspot.singularity.expiring.SingularityExpiringPause;
import com.hubspot.singularity.expiring.SingularityExpiringScale;
import com.hubspot.singularity.expiring.SingularityExpiringSkipHealthchecks;
public class SingularityRequestParent {
private final SingularityRequest request;
private final RequestState state;
private final Optional<SingularityRequestDeployState> requestDeployState;
private final Optional<SingularityDeploy> activeDeploy;
private final Optional<SingularityDeploy> pendingDeploy;
private final Optional<SingularityPendingDeploy> pendingDeployState;
private final Optional<SingularityExpiringBounce> expiringBounce;
private final Optional<SingularityExpiringPause> expiringPause;
private final Optional<SingularityExpiringScale> expiringScale;
private final Optional<SingularityExpiringSkipHealthchecks> expiringSkipHealthchecks;
public SingularityRequestParent(SingularityRequest request, RequestState state) {
this(request, state, Optional.<SingularityRequestDeployState> absent());
}
public SingularityRequestParent(SingularityRequest request, RequestState state, Optional<SingularityRequestDeployState> requestDeployState) {
this(request, state, requestDeployState, Optional.<SingularityDeploy> absent(), Optional.<SingularityDeploy> absent(),
Optional.<SingularityPendingDeploy> absent(), Optional.<SingularityExpiringBounce> absent(), Optional.<SingularityExpiringPause> absent(),
Optional.<SingularityExpiringScale> absent(), Optional.<SingularityExpiringSkipHealthchecks> absent());
}
@JsonCreator
public SingularityRequestParent(@JsonProperty("request") SingularityRequest request, @JsonProperty("state") RequestState state,
@JsonProperty("requestDeployState") Optional<SingularityRequestDeployState> requestDeployState,
@JsonProperty("activeDeploy") Optional<SingularityDeploy> activeDeploy, @JsonProperty("pendingDeploy") Optional<SingularityDeploy> pendingDeploy,
@JsonProperty("pendingDeployState") Optional<SingularityPendingDeploy> pendingDeployState, @JsonProperty("expiringBounce") Optional<SingularityExpiringBounce> expiringBounce,
@JsonProperty("expiringPause") Optional<SingularityExpiringPause> expiringPause, @JsonProperty("expiringScale") Optional<SingularityExpiringScale> expiringScale,
@JsonProperty("expiringSkipHealthchecks") Optional<SingularityExpiringSkipHealthchecks> expiringSkipHealthchecks) {
this.request = request;
this.state = state;
this.requestDeployState = requestDeployState;
this.activeDeploy = activeDeploy;
this.pendingDeploy = pendingDeploy;
this.pendingDeployState = pendingDeployState;
this.expiringBounce = expiringBounce;
this.expiringPause = expiringPause;
this.expiringScale = expiringScale;
this.expiringSkipHealthchecks = expiringSkipHealthchecks;
}
public RequestState getState() {
return state;
}
public SingularityRequest getRequest() {
return request;
}
public Optional<SingularityRequestDeployState> getRequestDeployState() {
return requestDeployState;
}
public Optional<SingularityDeploy> getActiveDeploy() {
return activeDeploy;
}
public Optional<SingularityDeploy> getPendingDeploy() {
return pendingDeploy;
}
public Optional<SingularityPendingDeploy> getPendingDeployState() {
return pendingDeployState;
}
public Optional<SingularityExpiringBounce> getExpiringBounce() {
return expiringBounce;
}
public Optional<SingularityExpiringPause> getExpiringPause() {
return expiringPause;
}
public Optional<SingularityExpiringScale> getExpiringScale() {
return expiringScale;
}
public Optional<SingularityExpiringSkipHealthchecks> getExpiringSkipHealthchecks() {
return expiringSkipHealthchecks;
}
@Override
public String toString() {
return "SingularityRequestParent [request=" + request + ", state=" + state + ", requestDeployState=" + requestDeployState + ", activeDeploy=" + activeDeploy + ", pendingDeploy=" + pendingDeploy
+ ", pendingDeployState=" + pendingDeployState + ", expiringBounce=" + expiringBounce + ", expiringPause=" + expiringPause + ", expiringScale=" + expiringScale + ", expiringSkipHealthchecks="
+ expiringSkipHealthchecks + "]";
}
}
|
[
"root@msgin.vvv.facebook.com"
] |
root@msgin.vvv.facebook.com
|
1b0f2c1c1521262b9cecd4eca50656ca20ef57aa
|
5e224ff6d555ee74e0fda6dfa9a645fb7de60989
|
/database/src/main/java/adila/db/s4750.java
|
9cd599fc48960672fe91f207a1863c3a8109c48c
|
[
"MIT"
] |
permissive
|
karim/adila
|
8b0b6ba56d83f3f29f6354a2964377e6197761c4
|
00f262f6d5352b9d535ae54a2023e4a807449faa
|
refs/heads/master
| 2021-01-18T22:52:51.508129
| 2016-11-13T13:08:04
| 2016-11-13T13:08:04
| 45,054,909
| 3
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 217
|
java
|
// This file is automatically generated.
package adila.db;
/*
* Wiko HIGHWAY SIGNS
*
* DEVICE: s4750
* MODEL: HIGHWAY SIGNS
*/
final class s4750 {
public static final String DATA = "Wiko|HIGHWAY SIGNS|";
}
|
[
"keldeeb@gmail.com"
] |
keldeeb@gmail.com
|
ff662dded8ed647adffb44af597e5296c47035cf
|
d1dea6217a38ff6f92bc955504a82d8da62d49c2
|
/Practice/src/ClassWork_20/BubbleSort.java
|
5203d63456ca88a77b9582461351f4ef611a8dfc
|
[] |
no_license
|
rajneeshkumar146/java_workspace
|
fbdf12d0a8f8a99f6a800d3a9fa37dac9ec81ac5
|
f77fbbb82dccbb3762fd27618dd366388724cf9b
|
refs/heads/master
| 2020-03-31T04:51:22.151046
| 2018-10-27T11:54:20
| 2018-10-27T11:54:20
| 151,922,604
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,974
|
java
|
package ClassWork_20;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.util.InputMismatchException;
public class BubbleSort {
// public static Scanner scn = new Scanner(System.in);
private static Scan scn = new Scan(System.in);
private static Print pnter = new Print();
public static void main(String[] args) throws Exception {
solve();
pnter.close();
}
public static void solve() throws Exception {
int[][] arr = { { 0, 0, 1, 0 },
{ 1, 0, 0, 0 }, { 0, 0, 0, 0 }, { 1, 0, 1, 0 } };
displayMatrix(arr);
exitpoint(arr);
}
/*
* private static void transpose(int[][] arr){ for(int
* i=0;i<arr.length;i++){ for(int j=i;j<arr[0].length;j++){ swap(arr,i,j);
*
* }
*
* } for(int k=0;k<arr.length;k++) { int left=0; int right=arr[0].length-1;
* while(left<right) { int temp=arr[k][left]; arr[k][left]=arr[k][right];
* arr[k][right]=temp; left++; right--; } }
*
* }
*
*/
private static void exitpoint(int[][] arr)
{
int i = 0;
int j = 0;
int dir = 0;
while (true) {
dir = (dir + arr[i][j]) % 4;
if (dir == 0) {
j++;
} else if (dir == 1) {
i++;
} else if (dir == 2) {
j--;
} else if (dir == 3) {
i--;
}
if (i < 0) {
i++;
System.out.println(i+" "+j);
break;
} else if (j < 0) {
j++;
System.out.println(i+" "+j);
break;
}
if (j >= arr[0].length) {
j--;
System.out.println(i+" "+j);
break;
} else if (i >= arr.length) {
i--;
System.out.println(i+" "+j);
break;
}
}
}
private static void swap(int[][] arr, int i, int j) {
int temp = arr[i][j];
arr[i][j] = arr[j][i];
arr[j][i] = temp;
}
/*
* private static void BubblSort(int[] arr, int n) { for(int
* i=0;i<arr.length;i++){ for(int j=1;j<arr.length-i;j++){
*
* if(arr[j-1]>arr[j]) swap(arr, j-1, j);
*
* } }
*
* }
*
* private static void Selectionsort(int[] arr, int n) { for (int i = 0; i <
* arr.length; i++) { for (int j = i + 1; j < arr.length; j++) { if (arr[j]
* < arr[i]) swap(arr, i, j);
*
* }
*/
private static void Insertionsort(int[] arr, int n) {
for (int i = 1; i < arr.length; i++) {
for (int j = i; j > 0; j--) {
if (arr[j] < arr[j - 1]) {
swap(arr, j, j - 1);
} else {
break;
}
}
}
}
// -------------------------------------------------------------------------------------------------------------
private static int NumberLength(int n) {
int length = 0;
while (n != 0) {
length++;
n = n / 10;
}
return length;
}
private static void ReverseArray(int[] arr, int st, int en) {
for (int i = st; st <= en; st++, en--) {
swap(arr, st, en);
}
}
private static int[] PrifixSumArray(int le, int ri, int[] arr) {
for (int i = le + 1; i < ri; i++) {
arr[i] += arr[i - 1];
}
return arr;
}
private static void swap(int[] arr, int i, int j) {
int temp = arr[i];
arr[i] = arr[j];
arr[j] = temp;
}
private static int maxInArray(int[] arr) {
int max = arr[0];
for (int i : arr) {
if (i > max) {
max = i;
}
}
return max;
}
private static int[] takeArrayInput(int n) throws IOException {
int[] arr = new int[n];
for (int i = 0; i < n; i++) {
arr[i] = scn.scanInt();
// arr[i] = scn.nextInt();
}
return arr;
}
private static int[][] takeMatrixInput(int n, int m) throws IOException {
int[][] arr = new int[n][m];
for (int row = 0; row < n; row++) {
for (int col = 0; col < m; col++) {
arr[row][col] = scn.scanInt();
// arr[row][col] = scn.nextInt();
}
}
return arr;
}
private static void displayArray(int le, int ri, int[] arr) throws IOException {
for (int i = le; i <= ri; i++) {
pnter.print(arr[i] + " ");
// System.out.print(arr[i]+" ");
}
pnter.printLine("");
// System.out.println();
}
private static void displayMatrix(int[][] arr) throws IOException {
for (int[] i : arr) {
for (int el : i) {
pnter.print(el + " ");
// System.out.print(el+" ");
}
pnter.printLine("");
// System.out.println();
}
}
private static void cloneArray(int[] arr, int[] Oarr, int n) {
for (int i = 0; i < n; i++) {
arr[i] = Oarr[i];
}
}
static class Scan {
private InputStream in;
private byte[] buf = new byte[1024 * 1024];
private int index;
private int total;
public Scan(InputStream in) {
this.in = in;
}
public int scan() throws IOException {
if (total < 0)
throw new InputMismatchException();
if (index >= total) {
index = 0;
total = in.read(buf);
if (total <= 0)
return -1;
}
return buf[index++];
}
public int scanInt() throws IOException {
int integer = 0;
int n = scan();
while (isWhiteSpace(n))
n = scan();
int neg = 1;
if (n == '-') {
neg = -1;
n = scan();
}
while (!isWhiteSpace(n)) {
if (n >= '0' && n <= '9') {
integer *= 10;
integer += n - '0';
n = scan();
} else
throw new InputMismatchException();
}
return neg * integer;
}
public long scanLong() throws IOException {
long integer = 0;
int n = scan();
while (isWhiteSpace(n))
n = scan();
int neg = 1;
if (n == '-') {
neg = -1;
n = scan();
}
while (!isWhiteSpace(n)) {
if (n >= '0' && n <= '9') {
integer *= 10;
integer += n - '0';
n = scan();
} else
throw new InputMismatchException();
}
return neg * integer;
}
public double scanDouble() throws IOException {
double doub = 0;
int n = scan();
while (isWhiteSpace(n))
n = scan();
int neg = 1;
if (n == '-') {
neg = -1;
n = scan();
}
while (!isWhiteSpace(n) && n != '.') {
if (n >= '0' && n <= '9') {
doub *= 10;
doub += n - '0';
n = scan();
} else
throw new InputMismatchException();
}
if (n == '.') {
n = scan();
double temp = 1;
while (!isWhiteSpace(n)) {
if (n >= '0' && n <= '9') {
temp /= 10;
doub += (n - '0') * temp;
n = scan();
} else
throw new InputMismatchException();
}
}
return doub * neg;
}
public String scanString() throws IOException {
StringBuilder sb = new StringBuilder();
int n = scan();
while (isWhiteSpace(n))
n = scan();
while (!isWhiteSpace(n)) {
sb.append((char) n);
n = scan();
}
return sb.toString();
}
private boolean isWhiteSpace(int n) {
if (n == ' ' || n == '\n' || n == '\r' || n == '\t' || n == -1)
return true;
return false;
}
}
static class Print {
private final BufferedWriter bw;
public Print() {
bw = new BufferedWriter(new OutputStreamWriter(System.out));
}
public void print(String str) throws IOException {
bw.append(str);
}
public void printLine(String str) throws IOException {
print(str);
bw.append("\n");
}
public void close() throws IOException {
bw.close();
}
}
}
|
[
"rajneeshkumar146@gmail.com"
] |
rajneeshkumar146@gmail.com
|
a22c63c3869c2b96af89414c6e93644b4807710c
|
0529524c95045b3232f6553d18a7fef5a059545e
|
/app/src/androidTest/java/TestCase_com_arlabsmobile_altimeterfree__1029258739.java
|
fd8e191c07856815451f13d66f2d35f1e6deeb2f
|
[] |
no_license
|
sunxiaobiu/BasicUnitAndroidTest
|
432aa3e10f6a1ef5d674f269db50e2f1faad2096
|
fed24f163d21408ef88588b8eaf7ce60d1809931
|
refs/heads/main
| 2023-02-11T21:02:03.784493
| 2021-01-03T10:07:07
| 2021-01-03T10:07:07
| 322,577,379
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 420
|
java
|
import android.location.Location;
import androidx.test.runner.AndroidJUnit4;
import org.easymock.EasyMock;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(AndroidJUnit4.class)
public class TestCase_com_arlabsmobile_altimeterfree__1029258739 {
@Test
public void testCase() throws Exception {
Object var1 = EasyMock.createMock(Location.class);
((Location)var1).removeAltitude();
}
}
|
[
"sunxiaobiu@gmail.com"
] |
sunxiaobiu@gmail.com
|
32eaebfee0e649e0b88e079de60bc4edf8dcc4e4
|
02f363a8e59eec4f7f6e1403a30408644fea9d76
|
/src/main/java/org/springframework/core/io/ContextResource.java
|
3d6d61d1a5006d8c18a337e640c4215454aef94e
|
[
"Apache-2.0"
] |
permissive
|
liudebin/zero-springframework
|
43a7dee3569f38b6e62b36b45270b4259b3e8148
|
dcb6b11b1a17bd4f934527edccf8d1dc8ff4fb4f
|
refs/heads/master
| 2021-07-04T10:55:36.695965
| 2019-03-21T08:21:13
| 2019-03-21T08:21:13
| 107,293,540
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,414
|
java
|
/*
* Copyright 2002-2007 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.core.io;
/**
* Extended interface for a resource that is loaded from an enclosing
* 'context', e.g. from a {@link javax.servlet.ServletContext} but also
* from plain classpath paths or relative file system paths (specified
* without an explicit prefix, hence applying relative to the local
* {@link org.springframework.core.io.ResourceLoader}'s context).
*
* @author Juergen Hoeller
* @since 2.5
* @see org.springframework.web.context.support.ServletContextResource
*/
public interface ContextResource extends Resource {
/**
* Return the path within the enclosing 'context'.
* <p>This is typically path relative to a context-specific root directory,
* e.g. a ServletContext root or a PortletContext root.
*/
String getPathWithinContext();
}
|
[
"liuguobin@nonobank.com"
] |
liuguobin@nonobank.com
|
c9b2fbc89428085b1958a98c4f747a52e5c777b0
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/2/2_f9533266b411dd070b9e471ad9d02b94c8e3fb31/HomeworkActivity/2_f9533266b411dd070b9e471ad9d02b94c8e3fb31_HomeworkActivity_s.java
|
a0663a8bc64a44dc22ef8cdff41a9be215a4549f
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 4,884
|
java
|
package edu.mines.caseysoto.schoolschedulercaseysoto;
/*
* http://www.androidhive.info/2013/09/android-sqlite-database-with-multiple-tables/
*/
import android.annotation.SuppressLint;
import android.app.ListActivity;
import android.app.LoaderManager;
import android.content.CursorLoader;
import android.content.Intent;
import android.content.Loader;
import android.database.Cursor;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.view.ContextMenu.ContextMenuInfo;
import android.widget.SimpleCursorAdapter;
import android.widget.TextView;
import android.widget.AdapterView.AdapterContextMenuInfo;
@SuppressLint("NewApi")
public class HomeworkActivity extends ListActivity implements LoaderManager.LoaderCallbacks<Cursor>{
private static final int DELETE_ID = Menu.FIRST + 1;
private static final int EDIT_ID = Menu.FIRST + 2;
private String homeworkName;
private SimpleCursorAdapter adapter;
public static final String HW_NAME = "NameOfHomework";
private String courseName;
private View mCourseText;
/** Called when the activity is first created. */
@Override
public void onCreate( Bundle savedInstanceState )
{
super.onCreate( savedInstanceState );
setContentView( R.layout.homework_list );
this.getListView().setDividerHeight( 2 );
fillData();
registerForContextMenu( getListView() );
mCourseText= findViewById(R.id.courseNameMid);
// Get the message from the intent
Intent intent = getIntent();
String message = intent.getStringExtra( MainActivity.COURSE_MNAME);
((TextView) mCourseText).setText(message);
courseName = message;
}
@Override
public Loader<Cursor> onCreateLoader(int arg0, Bundle arg1) {
String[] projection = { HomeworkTable.COLUMN_ID, HomeworkTable.COLUMN_NAME, HomeworkTable.COLUMN_DATE, HomeworkTable.COLUMN_DESCRIPTION, HomeworkTable.COLUMN_COURSE_NAME };
CursorLoader cursorLoader = new CursorLoader( this, SchedulerContentProvider.CONTENT_URI_H, projection, null, null, null );
return cursorLoader;
}
@Override
public void onLoadFinished(Loader<Cursor> arg0, Cursor arg1) {
this.adapter.swapCursor( arg1 );
}
@Override
public void onLoaderReset(Loader<Cursor> arg0) {
this.adapter.swapCursor( null );
}
private void fillData()
{
// Fields from the database (projection)
// Must include the _id column for the adapter to work
String[] from = new String[] { HomeworkTable.COLUMN_NAME, HomeworkTable.COLUMN_DATE, HomeworkTable.COLUMN_DESCRIPTION };
// Fields on the UI to which we map
int[] to = new int[] { R.id.hwName, R.id.date, R.id.descrption };
// Ensure a loader is initialized and active.
getLoaderManager().initLoader( 0, null, this );
// Note the last parameter to this constructor (zero), which indicates the adaptor should
// not try to automatically re-query the data ... the loader will take care of this.
this.adapter = new SimpleCursorAdapter( this, R.layout.list_row, null, from, to, 0 ){
@Override
public View getView(int position, View convertView, ViewGroup parent) {
View v = super.getView(position, convertView, parent);
if (position %2 ==1) {
v.setBackgroundColor(Color.argb(TRIM_MEMORY_MODERATE, 100, 100, 100));
} else {
v.setBackgroundColor(Color.argb(TRIM_MEMORY_MODERATE, 170, 170, 170)); //or whatever was original
}
return v;
}
};;
// Let this ListActivity display the contents of the cursor adapter.
setListAdapter( this.adapter );
}
public void addHomeworkToList(View view){
Intent intent = new Intent(this, AddHomeworkActivity.class);
intent.putExtra(MainActivity.COURSE_MNAME, courseName);
startActivity(intent);
}
/** The menu displayed on a long touch. */
@Override
public void onCreateContextMenu( ContextMenu menu, View v, ContextMenuInfo menuInfo )
{
super.onCreateContextMenu( menu, v, menuInfo );
menu.add( 0, DELETE_ID, 0, R.string.menu_delete );
menu.add( 0, EDIT_ID, 0, R.string.menu_edit );
}
@Override
public boolean onContextItemSelected( MenuItem item )
{
switch( item.getItemId() )
{
case DELETE_ID:
AdapterContextMenuInfo info = (AdapterContextMenuInfo)item.getMenuInfo();
Uri uri = Uri.parse( SchedulerContentProvider.CONTENT_URI_H + "/" + info.id );
getContentResolver().delete( uri, null, null );
fillData();
return true;
case EDIT_ID:
info = (AdapterContextMenuInfo)item.getMenuInfo();
uri = Uri.parse( SchedulerContentProvider.CONTENT_URI + "/" + info.id );
return true;
}
return super.onContextItemSelected( item );
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
99c50b03efec3c2efbc6d54b3f5e896f0ebaca92
|
447520f40e82a060368a0802a391697bc00be96f
|
/apks/obfuscation_and_logging/de_number26_android/source/android/support/v7/app/f.java
|
6c0a2c6104ba8fad5b5bf7d2ae5e19b44a7b891a
|
[
"Apache-2.0"
] |
permissive
|
iantal/AndroidPermissions
|
7f3343a9c29d82dbcd4ecd98b3a50ddf8d179465
|
d623b732734243590b5f004d167e542e2e2ae249
|
refs/heads/master
| 2023-07-19T01:29:26.689186
| 2019-09-30T19:01:42
| 2019-09-30T19:01:42
| 107,239,248
| 0
| 0
|
Apache-2.0
| 2023-07-16T07:41:38
| 2017-10-17T08:22:57
| null |
UTF-8
|
Java
| false
| false
| 960
|
java
|
package android.support.v7.app;
import android.content.Context;
import android.view.KeyboardShortcutGroup;
import android.view.Menu;
import android.view.Window;
import android.view.Window.Callback;
import java.util.List;
class f
extends h
{
f(Context paramContext, Window paramWindow, c paramC)
{
super(paramContext, paramWindow, paramC);
}
Window.Callback a(Window.Callback paramCallback)
{
return new a(paramCallback);
}
class a
extends h.a
{
a(Window.Callback paramCallback)
{
super(paramCallback);
}
public void onProvideKeyboardShortcuts(List<KeyboardShortcutGroup> paramList, Menu paramMenu, int paramInt)
{
i.d localD = f.this.a(0, true);
if ((localD != null) && (localD.j != null))
{
super.onProvideKeyboardShortcuts(paramList, localD.j, paramInt);
return;
}
super.onProvideKeyboardShortcuts(paramList, paramMenu, paramInt);
}
}
}
|
[
"antal.micky@yahoo.com"
] |
antal.micky@yahoo.com
|
9d5269d41468e320cc406521ad832756d6b69139
|
93fe59125bf04f8115cc72783dbf739e595f7d52
|
/api/hbase/src/main/java/org/pentaho/bigdata/api/hbase/HBaseService.java
|
3d1f99b57a7bac1bc8b90af47de46fb102563fd9
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
majinju/big-data-plugin
|
7fcc4558895e55e8e588f7170f55385682b231cb
|
fba346dc2e09291dd691ead3a87d919ae86c956d
|
refs/heads/master
| 2021-06-15T08:48:34.731381
| 2016-08-05T19:09:59
| 2016-08-05T19:09:59
| 65,175,946
| 2
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,766
|
java
|
/*******************************************************************************
*
* Pentaho Big Data
*
* Copyright (C) 2002-2016 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
******************************************************************************/
package org.pentaho.bigdata.api.hbase;
import org.pentaho.bigdata.api.hbase.mapping.ColumnFilterFactory;
import org.pentaho.bigdata.api.hbase.mapping.MappingFactory;
import org.pentaho.bigdata.api.hbase.meta.HBaseValueMetaInterfaceFactory;
import org.pentaho.di.core.logging.LogChannelInterface;
import org.pentaho.di.core.variables.VariableSpace;
import java.io.IOException;
/**
* Created by bryan on 1/19/16.
*/
public interface HBaseService {
HBaseConnection getHBaseConnection( VariableSpace variableSpace, String siteConfig, String defaultConfig, LogChannelInterface logChannelInterface )
throws IOException;
ColumnFilterFactory getColumnFilterFactory();
MappingFactory getMappingFactory();
HBaseValueMetaInterfaceFactory getHBaseValueMetaInterfaceFactory();
ByteConversionUtil getByteConversionUtil();
ResultFactory getResultFactory();
}
|
[
"brosander@pentaho.com"
] |
brosander@pentaho.com
|
d7c5a4f5140297aae925cae0037b669fc6e5b64b
|
f9852e15cbfc56515d4e156198cc92d8ebe06d60
|
/proj/RavenImportExport/src/com/kitfox/raven/image/importer/ImageImporterWizard.java
|
a704b3a1aaae99c7b89c171f2ed4350dcd3d6b40
|
[] |
no_license
|
kansasSamurai/raven
|
0c708ee9fc4224f53d49700834f622b357915bb6
|
d4b4f6dde43c7d801837977dfb087d8913ed71ca
|
refs/heads/master
| 2021-06-09T08:08:14.593699
| 2014-06-10T02:30:48
| 2014-06-10T02:30:48
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,611
|
java
|
/*
* Copyright 2011 Mark McKay
*
* 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.kitfox.raven.image.importer;
import com.kitfox.raven.util.tree.NodeSymbol;
import com.kitfox.raven.wizard.RavenWizardPageIteratorSimple;
import java.util.Properties;
/**
*
* @author kitfox
*/
public class ImageImporterWizard extends RavenWizardPageIteratorSimple
{
ImageImporterContext ctx;
ImageImporterPanel panel;
private ImageImporterWizard(ImageImporterContext ctx, ImageImporterPanel panel)
{
super(panel);
this.ctx = ctx;
this.panel = panel;
}
public static ImageImporterWizard create(NodeSymbol doc, Properties preferences)
{
ImageImporterContext ctx = new ImageImporterContext(doc, preferences);
ImageImporterPanel panel = new ImageImporterPanel(ctx);
return new ImageImporterWizard(ctx, panel);
}
@Override
public Object finish()
{
ctx.savePreferences();
ctx.doImport();
return null;
}
}
|
[
"kitfox@6b8830c1-5349-cced-e2ce-a6a69cd31f76"
] |
kitfox@6b8830c1-5349-cced-e2ce-a6a69cd31f76
|
be7746b4b0e0e7dc1b8e0a8df0a8eefab75fec87
|
7fa9c6b0fa1d0726ae1cda0199716c811a1ea01b
|
/Crawler/data/RegisterExtensionFunctionsEvent.java
|
61456996fc827c8007597d36436e4272f38eaea7
|
[] |
no_license
|
NayrozD/DD2476-Project
|
b0ca75799793d8ced8d4d3ba3c43c79bb84a72c0
|
94dfb3c0a470527b069e2e0fd9ee375787ee5532
|
refs/heads/master
| 2023-03-18T04:04:59.111664
| 2021-03-10T15:03:07
| 2021-03-10T15:03:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 653
|
java
|
12
https://raw.githubusercontent.com/Pingvin235/bgerp/master/src/ru/bgcrm/plugin/bgbilling/event/RegisterExtensionFunctionsEvent.java
package ru.bgcrm.plugin.bgbilling.event;
import net.sf.saxon.s9api.Processor;
import ru.bgcrm.event.UserEvent;
import ru.bgcrm.struts.form.DynActionForm;
//Событие для регистрации в модулях расширений XSLT.
public class RegisterExtensionFunctionsEvent
extends UserEvent
{
private final Processor proc;
public RegisterExtensionFunctionsEvent( Processor proc, DynActionForm form )
{
super( form );
this.proc = proc;
}
public Processor getProc()
{
return proc;
}
}
|
[
"veronika.cucorova@gmail.com"
] |
veronika.cucorova@gmail.com
|
a6d49331bf34318295f73e95599dfc15039a6a4c
|
faf825ce4412a786aba44c9ced5f673d446fcd3c
|
/1.7.10/src/main/java/stevekung/mods/moreplanets/planets/fronos/blocks/BlockOrangeCreamLayer.java
|
c919e223612d93fed3508164d37d6f51dfb7bd86
|
[] |
no_license
|
AugiteSoul/MorePlanets
|
87022c06706c3194bde6926039ee7f28acf4983f
|
dd1941d7d520cb372db41abee67d865bd5125f87
|
refs/heads/master
| 2021-08-15T12:23:01.538212
| 2017-11-16T16:00:34
| 2017-11-16T16:00:34
| 111,147,939
| 0
| 0
| null | 2017-11-17T20:32:07
| 2017-11-17T20:32:06
| null |
UTF-8
|
Java
| false
| false
| 1,050
|
java
|
/*******************************************************************************
* Copyright 2015 SteveKunG - More Planets Mod
*
* This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
******************************************************************************/
package stevekung.mods.moreplanets.planets.fronos.blocks;
import net.minecraft.item.Item;
import stevekung.mods.moreplanets.planets.fronos.items.FronosItems;
public class BlockOrangeCreamLayer extends BlockCreamLayer
{
public BlockOrangeCreamLayer(String name)
{
super();
this.setBlockName(name);
}
@Override
public String getCreamTexture()
{
return "fronos:orange_cream";
}
@Override
public Item getCreamBallDropped()
{
return FronosItems.cream_ball;
}
@Override
public int getCreamBallMetaDropped()
{
return 3;
}
}
|
[
"mccommander_minecraft@hotmail.com"
] |
mccommander_minecraft@hotmail.com
|
7b73056daf4e9309f783d02c978a7ac5c8233252
|
de6bd989806039d1880db9f5cdfaebb89b59f1ba
|
/app/src/main/java/com/ztiany/sqlbritedemo/MainActivity.java
|
fabaeb54be03bde0d4b7e0ed97a9eb32dc4c8ba7
|
[
"Apache-2.0"
] |
permissive
|
cube-andy/SqlBriteDemo
|
8415d371b0a75530dc6f1c0a5276bce8d59d820a
|
c00029ab31f36a0fae53e23f8c01bf610438f6f7
|
refs/heads/master
| 2021-01-20T14:31:38.802411
| 2016-08-11T17:23:14
| 2016-08-11T17:23:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,846
|
java
|
package com.ztiany.sqlbritedemo;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.AppCompatActivity;
import com.ztiany.sqlbritedemo.home.HomeFragment;
import com.ztiany.sqlbritedemo.todocagetory.TodoCategoryFragment;
public class MainActivity extends AppCompatActivity
implements HomeFragment.HomeFragmentCallback {
private static final int TODO = 1;
private static final int BOOKS = 2;
private static final int FRIENDS = 3;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
if (savedInstanceState == null) {
getSupportFragmentManager()
.beginTransaction()
.replace(R.id.activity_main, HomeFragment.newInstance(), HomeFragment.class.getName())
.commit();
}
}
@Override
public void showBookList() {
}
@Override
public void showFriendList() {
}
@Override
public void showTodoList() {
switchFragment(TODO);
}
private void switchFragment(int page) {
Fragment fragment = createFragment(page);
getSupportFragmentManager()
.beginTransaction()
.replace(R.id.activity_main, fragment, fragment.getClass().getName())
.commit();
}
private Fragment createFragment(int page) {
switch (page) {
case TODO: {
return TodoCategoryFragment.newInstance();
}
case BOOKS: {
return null;
}
case FRIENDS: {
return null;
}
default: {
throw new IllegalArgumentException();
}
}
}
}
|
[
"ztiany3@gmail.com"
] |
ztiany3@gmail.com
|
ed8819c74551faa169b91da3fd3d5d16c6415219
|
2a2dada59990e9ad3ef1c6d686707aff3a5a0015
|
/common/src/main/java/com/linkedin/dagli/distribution/MostLikelyLabelsFromDistribution.java
|
b889e7d4fda45e52353ef1112c958c2bf08efcdc
|
[
"BSD-2-Clause",
"BSD-3-Clause",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] |
permissive
|
Mu-L/dagli
|
ee8d0eda22379f74128d938be6b61d23c2c2756e
|
d9c09ff17e52a8c29c37937e0ac7aa84c7954b3c
|
refs/heads/master
| 2023-08-01T18:06:04.775159
| 2021-10-05T04:54:22
| 2021-10-05T04:54:22
| 313,231,605
| 0
| 0
|
BSD-2-Clause
| 2021-10-05T07:38:59
| 2020-11-16T08:10:53
|
Java
|
UTF-8
|
Java
| false
| false
| 2,079
|
java
|
package com.linkedin.dagli.distribution;
import com.linkedin.dagli.annotation.equality.ValueEquality;
import com.linkedin.dagli.math.distribution.DiscreteDistribution;
import com.linkedin.dagli.math.distribution.LabelProbability;
import com.linkedin.dagli.producer.Producer;
import com.linkedin.dagli.transformer.AbstractPreparedTransformer1WithInput;
import java.util.List;
import java.util.stream.Collectors;
/**
* Gets the most likely labels from a distribution (the labels with the highest probability), ordered by decreasing
* probability. Ties are broken arbitrarily.
*
* @param <L> the type of label in the distribution
*/
@ValueEquality
public class MostLikelyLabelsFromDistribution<L> extends
AbstractPreparedTransformer1WithInput<DiscreteDistribution<? extends L>, List<L>, MostLikelyLabelsFromDistribution<L>> {
private static final long serialVersionUID = 1;
private int _limit = Integer.MAX_VALUE;
/**
* Creates a new instance with no initial input.
*/
public MostLikelyLabelsFromDistribution() { }
/**
* Creates a new instance that will accept the provided input.
*
* @param input an input providing the {@link DiscreteDistribution}s whose labels are to be extracted
*/
public MostLikelyLabelsFromDistribution(Producer<? extends DiscreteDistribution<? extends L>> input) {
super(input);
}
/**
* Gets the maximum number of labels that will be returned. By default this is Integer.MAX_VALUE.
*
* @return the maximum number of labels to return
*/
public long getLimit() {
return _limit;
}
/**
* Sets the limit on the maximum number of labels to return. By default this is Integer.MAX_VALUE.
*
* @param limit the limit to enforce.
* @return a copy of this instance with the specified limit
*/
public MostLikelyLabelsFromDistribution<L> withLimit(int limit) {
return clone(c -> c._limit = limit);
}
@Override
public List<L> apply(DiscreteDistribution<? extends L> dd) {
return dd.stream().map(LabelProbability::getLabel).collect(Collectors.toList());
}
}
|
[
"jepasternack@linkedin.com"
] |
jepasternack@linkedin.com
|
a88d565b9efab4456f50c945c4583906b6243b76
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/single-large-project/src/test/java/org/gradle/test/performancenull_339/Testnull_33834.java
|
b12db0a35e4b61f959104719702f04b0475aae5c
|
[] |
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
| 308
|
java
|
package org.gradle.test.performancenull_339;
import static org.junit.Assert.*;
public class Testnull_33834 {
private final Productionnull_33834 production = new Productionnull_33834("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
3cafc21da301ea96b5591e145698638084557e63
|
0deb56bdcf91ca229bf61da0cf3cf3406223fb2c
|
/iot-channel-app/common/src/main/java/swaiotos/channel/iot/common/push/PushMsgIntentService.java
|
87884e4cd8353221f2633624060d97c764b5a1ee
|
[] |
no_license
|
soulcure/airplay
|
2ceb0a6707b2d4a69f85dd091b797dcb6f2c9d46
|
37dd3a890148a708d8aa6f95ac84355606af6a18
|
refs/heads/master
| 2023-04-11T03:49:15.246072
| 2021-04-16T09:15:03
| 2021-04-16T09:15:03
| 357,804,553
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,855
|
java
|
package swaiotos.channel.iot.common.push;
import android.app.IntentService;
import android.content.Intent;
import android.support.v4.content.LocalBroadcastManager;
import android.util.Log;
import android.widget.Toast;
import java.util.HashMap;
import swaiotos.channel.iot.common.utils.Constants;
/**
* @author fc
*/
public class PushMsgIntentService extends IntentService {
private String msgId, pushId, msg;
private static String TAG = PushMsgIntentService.class.getSimpleName();
public PushMsgIntentService() {
super("PushMsgIntentService");
}
@Override
protected void onHandleIntent(Intent intent) {
try {
Log.d(TAG,"---PushMsgIntentService start-");
if (intent == null) return;
parseMsg(intent);
} catch (Exception e) {
e.printStackTrace();
}
}
/**
* 从intent中解析消息 @param intent
* 收到消息后把msgId,pushId,pkg,currentTime 回传给push APK做数据统计使用
*/
private void parseMsg(Intent intent) {
msgId = intent.getStringExtra(CCPushConst.MSG_ID_KEY);
pushId = intent.getStringExtra(CCPushConst.REGID_RESULT_KEY);
HashMap<String, String> map = new HashMap<>();
map.put(CCPushConst.MSG_ID_KEY, msgId);
map.put(CCPushConst.REGID_RESULT_KEY, pushId);
map.put(CCPushConst.THIRD_PKGNAME, getApplicationContext().getPackageName());
map.put(CCPushConst.CURRENT_TIME, String.valueOf(System.currentTimeMillis()));
PushMsgFeedBack.msgFeedBack(getApplicationContext(),CCPushConst.THRID_APP_RECEIVE, map);
msg = intent.getStringExtra(CCPushConst.MSG_RESULT_KEY);
Toast.makeText(getApplicationContext(),msg,Toast.LENGTH_LONG).show();
Log.d(TAG,"---PushMsgIntentService msg:"+msg);
Intent msgIntent = new Intent();
msgIntent.setAction(Constants.COOCAA_PUSH_ACTION);
msgIntent.putExtra(Constants.COOCAA_PUSH_MSG,msg);
LocalBroadcastManager.getInstance(getApplicationContext()).sendBroadcast(msgIntent);
handleReceiveMsg();
}
/**
* 处理消息后把msgId,pushId,pkg,currentTime,是否处理成功 回传给push APK做数据统计使用
*/
private void handleReceiveMsg() {
// TODO: 2020/4/11 第三方应用自己去处理msg消息{}
HashMap<String, String> map = new HashMap<>();
map.put(CCPushConst.THRID_APP_HANDLE_RESULT, "true");
map.put(CCPushConst.MSG_ID_KEY, msgId);
map.put(CCPushConst.REGID_RESULT_KEY, pushId);
map.put(CCPushConst.THIRD_PKGNAME, getApplicationContext().getPackageName());
map.put(CCPushConst.CURRENT_TIME, String.valueOf(System.currentTimeMillis()));
PushMsgFeedBack.msgFeedBack(getApplicationContext(),CCPushConst.THRID_APP_HANDLE, map);
}
}
|
[
"chenqiongyao@coocaa.com"
] |
chenqiongyao@coocaa.com
|
c5ed1d1df99ed0b959c48391a7336854f189defa
|
9e43ad7a51773b54a9cd2c6eb28c4aea83cc7886
|
/java/java2/src/session07/create_thread_by_implements_runable_interface.java
|
94582c35670b95aab4b841447772f257d2d2d911
|
[] |
no_license
|
lnminh58/All_Work_Space
|
01434cf6b575bb94f7cf48e3c5d74c664d5543d1
|
12667639481c862b99046db7b41554bb31e6e534
|
refs/heads/master
| 2023-01-05T18:08:22.525652
| 2019-11-24T08:42:35
| 2019-11-24T08:42:35
| 127,608,330
| 0
| 0
| null | 2023-01-05T11:21:58
| 2018-04-01T07:43:35
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 1,565
|
java
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package session07;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author nguyenducthao
*/
class myThreadImplementsRunableInterface implements Runnable {
String threadName;
public myThreadImplementsRunableInterface() {
}
public myThreadImplementsRunableInterface(String threadName) {
this.threadName = threadName;
}
public String getThreadName() {
return threadName;
}
@Override
public void run() {
for (int i = 0; i < 5; i++) {
System.out.println("Thread name: " + this.getThreadName());
Thread.currentThread().setName("abc");
System.out.println("Active thread: "+Thread.currentThread().getName());
try {
Thread.sleep(500);
} catch (InterruptedException ex) {
Logger.getLogger(myThreadExtendsThreadClass.class.getName()).log(Level.SEVERE, null, ex);
}
}
}
}
public class create_thread_by_implements_runable_interface {
public static void main(String[] args) {
Thread myThread1 = new Thread(new myThreadImplementsRunableInterface("Thread 1"));
Thread myThread2 = new Thread(new myThreadImplementsRunableInterface("Thread 2"));
myThread1.start();
myThread2.start();
}
}
|
[
"lnminh58@gmail.com"
] |
lnminh58@gmail.com
|
5fb250c634ed1da8accba851a8c86602365d4f28
|
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
|
/genny_JavaWithLambdasApi21/applicationModule/src/main/java/applicationModulepackageJava5/Foo900.java
|
8d1085fea8bcacd553b4c3b4e1949900f83d9cd9
|
[] |
no_license
|
NikitaKozlov/generated-project-for-desugaring
|
0bc1443ab3ddc84cd289331c726761585766aea7
|
81506b3711004185070ca4bb9a93482b70011d36
|
refs/heads/master
| 2020-03-20T00:35:06.996525
| 2018-06-12T09:30:37
| 2018-06-12T09:30:37
| 137,049,317
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 575
|
java
|
package applicationModulepackageJava5;
public class Foo900 {
public void foo0() {
final Runnable anything0 = () -> System.out.println("anything");
new applicationModulepackageJava5.Foo899().foo9();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public void foo4() {
foo3();
}
public void foo5() {
foo4();
}
public void foo6() {
foo5();
}
public void foo7() {
foo6();
}
public void foo8() {
foo7();
}
public void foo9() {
foo8();
}
}
|
[
"nikita.e.kozlov@gmail.com"
] |
nikita.e.kozlov@gmail.com
|
5c895599de2b13b0282ae959ccd6099ce2fe3d0c
|
b726affeea30012e7ebdff8f271cf5c0fbffbb76
|
/cucumber/cucumber-mvc/src/main/java/br/com/leonardoferreira/test/domain/Account.java
|
e44c62faf79b30f88de6d48a03424d444813f213
|
[] |
no_license
|
LeonardoFerreiraa/poc
|
3114ef0a78240f3b74eab8198f266ac63e026c17
|
19f6224e155087f18545b8cf5364ad2fadd52c09
|
refs/heads/master
| 2023-04-12T09:14:38.601232
| 2022-07-31T21:09:53
| 2022-07-31T21:09:53
| 115,114,577
| 16
| 11
| null | 2022-10-19T06:01:44
| 2017-12-22T12:44:57
|
Java
|
UTF-8
|
Java
| false
| false
| 705
|
java
|
package br.com.leonardoferreira.test.domain;
import lombok.Data;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.UpdateTimestamp;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.time.LocalDateTime;
@Data
@Entity
public class Account implements UserDetails {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String username;
private String password;
private String name;
@CreationTimestamp
private LocalDateTime createdAt;
@UpdateTimestamp
private LocalDateTime updatedAt;
}
|
[
"mail@leonardoferreira.com.br"
] |
mail@leonardoferreira.com.br
|
1ed87f5ee47611610d32c0d4e024dfb1b155b50d
|
4ccc21f2016916052384a3b917170fe790f949dd
|
/src/main/java/org/sikuli/recorder/examples/HTMLGeneratorExample.java
|
5a66fe70bb49498b72f97b4da1bb4c644ba3f6bb
|
[
"MIT"
] |
permissive
|
xpierro/sikuli-slides
|
c89727887d5060717e1bcea461c3d20f445cefff
|
1de91ca6e9545f0fac7faa52ff2737c22a5f9f42
|
refs/heads/master
| 2021-01-01T06:52:16.383457
| 2017-07-18T00:46:42
| 2017-07-18T00:46:42
| 97,535,311
| 1
| 0
| null | 2017-07-18T00:46:43
| 2017-07-18T00:45:11
|
Java
|
UTF-8
|
Java
| false
| false
| 322
|
java
|
package org.sikuli.recorder.examples;
import java.io.File;
import org.sikuli.recorder.html.HTMLGenerator;
public class HTMLGeneratorExample {
public static void main(String[] args) {
File eventDir = new File("tmp/example");
eventDir.mkdirs();
HTMLGenerator.generate(eventDir, new File("tmp/html"));
}
}
|
[
"doubleshow@gmail.com"
] |
doubleshow@gmail.com
|
fbd4a84f4a45747c89226a77e0cc1598da016e46
|
3f7a6e5f2466148a93531fd22ea76910038657e7
|
/germes-ticket-service/src/main/java/com/revenat/germes/ticket/core/domain/model/Ticket.java
|
4608bd521ff29f67ef9040a3fba57714a1448776
|
[] |
no_license
|
VitaliyDragun1990/grms
|
7682c502a023b18a06909a54549b0d9a8a804ca6
|
ee9e7d37aad37cd50febee27979f7046947651da
|
refs/heads/master
| 2023-01-07T20:07:27.623011
| 2020-03-06T17:00:43
| 2020-03-06T17:00:43
| 232,298,728
| 0
| 0
| null | 2023-01-05T09:03:44
| 2020-01-07T10:17:31
|
Java
|
UTF-8
|
Java
| false
| false
| 1,767
|
java
|
package com.revenat.germes.ticket.core.domain.model;
import com.revenat.germes.common.core.shared.helper.Asserts;
import com.revenat.germes.common.core.domain.model.AbstractEntity;
import lombok.AccessLevel;
import lombok.Setter;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.PrePersist;
import javax.persistence.Table;
import java.time.LocalDateTime;
/**
* Trip ticket
*
* @author Vitaliy Dragun
*/
@Entity
@Table(name = "TICKETS")
public class Ticket extends AbstractEntity {
public static final int TICKET_NUMBER_SIZE = 32;
/**
* Link to the underlying trip
*/
@Setter
private String tripId;
/**
* Client name/surname
*/
@Setter
private String clientName;
/**
* Auto-generated ticket identifier (usually random)
*/
@Setter(AccessLevel.PACKAGE)
private String uid;
@Column(name = "TRIP_ID", nullable = false)
public String getTripId() {
return tripId;
}
@Column(name = "CLIENT_NAME", length = 32, nullable = false)
public String getClientName() {
return clientName;
}
@Column(length = 60, nullable = false, unique = true)
public String getUid() {
return uid;
}
/**
* Generates system-unique ticket number
*
* @param numberGenerator string generator that should generate unique uid strings
*/
public void generateUid(final TicketNumberGenerator numberGenerator) {
Asserts.assertNotNull(numberGenerator, "numberGenerator should be initialized");
uid = numberGenerator.generate();
}
@PrePersist
void setCreatedAt() {
if (getCreatedAt() == null) {
setCreatedAt(LocalDateTime.now());
}
}
}
|
[
"vdrag00n90@gmail.com"
] |
vdrag00n90@gmail.com
|
572c1d91c31454060c7d01f26e3ef64f7e7954e2
|
75d5f2955b7cc38dbed300a9c77ef1cdc77df0fe
|
/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/RawImportTapeSpectraS3Request.java
|
6100bf34b9ade3790bc28a66eaf7692c05eb326c
|
[
"Apache-2.0"
] |
permissive
|
shabtaisharon/ds3_java_sdk
|
00b4cc960daf2007c567be04dd07843c814a475f
|
f97d10d0e644f20a7a40c5e51101bab3e4bd6c8f
|
refs/heads/master
| 2021-01-18T00:44:19.369801
| 2018-09-18T18:17:23
| 2018-09-18T18:17:23
| 43,845,561
| 0
| 0
| null | 2015-10-07T21:25:06
| 2015-10-07T21:25:06
| null |
UTF-8
|
Java
| false
| false
| 3,141
|
java
|
/*
* ******************************************************************************
* Copyright 2014-2017 Spectra Logic Corporation. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use
* this file except in compliance with the License. A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in the "license" file accompanying this file.
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
* ****************************************************************************
*/
// This code is auto-generated, do not modify
package com.spectralogic.ds3client.commands.spectrads3;
import com.spectralogic.ds3client.networking.HttpVerb;
import com.spectralogic.ds3client.commands.interfaces.AbstractRequest;
import com.google.common.net.UrlEscapers;
import java.util.UUID;
import com.spectralogic.ds3client.models.Priority;
public class RawImportTapeSpectraS3Request extends AbstractRequest {
// Variables
private final String tapeId;
private final String bucketId;
private String storageDomainId;
private Priority taskPriority;
// Constructor
public RawImportTapeSpectraS3Request(final String bucketId, final UUID tapeId) {
this.tapeId = tapeId.toString();
this.bucketId = bucketId;
this.getQueryParams().put("operation", "import");
this.updateQueryParam("bucket_id", bucketId);
}
public RawImportTapeSpectraS3Request(final String bucketId, final String tapeId) {
this.tapeId = tapeId;
this.bucketId = bucketId;
this.getQueryParams().put("operation", "import");
this.updateQueryParam("bucket_id", bucketId);
}
public RawImportTapeSpectraS3Request withStorageDomainId(final UUID storageDomainId) {
this.storageDomainId = storageDomainId.toString();
this.updateQueryParam("storage_domain_id", storageDomainId);
return this;
}
public RawImportTapeSpectraS3Request withStorageDomainId(final String storageDomainId) {
this.storageDomainId = storageDomainId;
this.updateQueryParam("storage_domain_id", storageDomainId);
return this;
}
public RawImportTapeSpectraS3Request withTaskPriority(final Priority taskPriority) {
this.taskPriority = taskPriority;
this.updateQueryParam("task_priority", taskPriority);
return this;
}
@Override
public HttpVerb getVerb() {
return HttpVerb.PUT;
}
@Override
public String getPath() {
return "/_rest_/tape/" + tapeId;
}
public String getTapeId() {
return this.tapeId;
}
public String getBucketId() {
return this.bucketId;
}
public String getStorageDomainId() {
return this.storageDomainId;
}
public Priority getTaskPriority() {
return this.taskPriority;
}
}
|
[
"rachelt@spectralogic.com"
] |
rachelt@spectralogic.com
|
7debb7473491bd87cccfbf4fc9830fb9bcf085b5
|
d715d4ffff654a57e8c9dc668f142fb512b40bb5
|
/workspace/glaf-isdp/src/main/java/com/glaf/isdp/query/ProjectCellAndFileRefQuery.java
|
b3d7ac3114ed8974f4b4ccc6d61b138da88eea71
|
[] |
no_license
|
jior/isdp
|
c940d9e1477d74e9e0e24096f32ffb1430b841e7
|
251fe724dcce7464df53479c7a373fa43f6264ca
|
refs/heads/master
| 2016-09-06T07:43:11.220255
| 2014-12-28T09:18:14
| 2014-12-28T09:18:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,416
|
java
|
package com.glaf.isdp.query;
import java.util.*;
import com.glaf.core.query.DataQuery;
public class ProjectCellAndFileRefQuery extends DataQuery {
private static final long serialVersionUID = 1L;
protected String pfileid;
protected String pfileidLike;
protected List<String> pfileids;
protected String cellid;
protected String cellidLike;
protected List<String> cellids;
public ProjectCellAndFileRefQuery() {
}
public ProjectCellAndFileRefQuery cellid(String cellid) {
if (cellid == null) {
throw new RuntimeException("cellid is null");
}
this.cellid = cellid;
return this;
}
public ProjectCellAndFileRefQuery cellidLike(String cellidLike) {
if (cellidLike == null) {
throw new RuntimeException("cellid is null");
}
this.cellidLike = cellidLike;
return this;
}
public ProjectCellAndFileRefQuery cellids(List<String> cellids) {
if (cellids == null) {
throw new RuntimeException("cellids is empty ");
}
this.cellids = cellids;
return this;
}
public String getCellid() {
return cellid;
}
public String getCellidLike() {
if (cellidLike != null && cellidLike.trim().length() > 0) {
if (!cellidLike.startsWith("%")) {
cellidLike = "%" + cellidLike;
}
if (!cellidLike.endsWith("%")) {
cellidLike = cellidLike + "%";
}
}
return cellidLike;
}
public List<String> getCellids() {
return cellids;
}
public String getOrderBy() {
if (sortField != null) {
String a_x = " asc ";
if (getSortOrder()!= null) {
a_x = " desc ";
}
if (columns.get(sortField) != null) {
orderBy = " E." + columns.get(sortField) + a_x;
}
}
return orderBy;
}
public String getPfileid() {
return pfileid;
}
public String getPfileidLike() {
if (pfileidLike != null && pfileidLike.trim().length() > 0) {
if (!pfileidLike.startsWith("%")) {
pfileidLike = "%" + pfileidLike;
}
if (!pfileidLike.endsWith("%")) {
pfileidLike = pfileidLike + "%";
}
}
return pfileidLike;
}
public List<String> getPfileids() {
return pfileids;
}
@Override
public void initQueryColumns() {
super.initQueryColumns();
addColumn("id", "id");
addColumn("pfileid", "pfileid");
addColumn("cellid", "cellid");
}
public String getSortOrder() {
return sortOrder;
}
public ProjectCellAndFileRefQuery pfileid(String pfileid) {
if (pfileid == null) {
throw new RuntimeException("pfileid is null");
}
this.pfileid = pfileid;
return this;
}
public ProjectCellAndFileRefQuery pfileidLike(String pfileidLike) {
if (pfileidLike == null) {
throw new RuntimeException("pfileid is null");
}
this.pfileidLike = pfileidLike;
return this;
}
public ProjectCellAndFileRefQuery pfileids(List<String> pfileids) {
if (pfileids == null) {
throw new RuntimeException("pfileids is empty ");
}
this.pfileids = pfileids;
return this;
}
public void setCellid(String cellid) {
this.cellid = cellid;
}
public void setCellidLike(String cellidLike) {
this.cellidLike = cellidLike;
}
public void setCellids(List<String> cellids) {
this.cellids = cellids;
}
public void setPfileid(String pfileid) {
this.pfileid = pfileid;
}
public void setPfileidLike(String pfileidLike) {
this.pfileidLike = pfileidLike;
}
public void setPfileids(List<String> pfileids) {
this.pfileids = pfileids;
}
public void setSortOrder(String sortOrder) {
this.sortOrder = sortOrder;
}
}
|
[
"jior2008@gmail.com"
] |
jior2008@gmail.com
|
a152acafa7e37949d31294e18acc8c77c708c0fc
|
6e5b7db61b2132823308c9dd871476dbda5b788a
|
/yiwangrencai/app/src/main/java/com/yiwangrencai/ywkj/bean/AreaCounty.java
|
8aea6b08ece71daa7e07fe5c9bcddfb6a623dd61
|
[] |
no_license
|
wangchenxing1990/yiwangrencai
|
637cf1095d541f9e67f99f89c9648cfc05f68a20
|
60c08652e151470dc5efb0cc773f4614869095a6
|
refs/heads/master
| 2020-05-26T13:07:21.382126
| 2019-05-23T13:52:37
| 2019-05-23T13:52:37
| 158,181,922
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,008
|
java
|
package com.yiwangrencai.ywkj.bean;
import java.io.Serializable;
/**
* Created by Administrator on 2017/4/22.
*/
public class AreaCounty implements Serializable {
private String name;
private String next;
private String nexts;
private String cid;
public AreaCounty() {
}
public AreaCounty(String name, String next, String nexts,String cid) {
this.name = name;
this.next = next;
this.nexts = nexts;
this.cid = cid;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getNext() {
return next;
}
public void setNext(String next) {
this.next = next;
}
public String getNexts() {
return nexts;
}
public void setNexts(String nexts) {
this.nexts = nexts;
}
public String getCid() {
return cid;
}
public void setCid(String cid) {
this.cid = cid;
}
}
|
[
"18317770484@163.com"
] |
18317770484@163.com
|
5e9cbec24b6047517bc68a5e8b1ade2b3089f229
|
180e78725121de49801e34de358c32cf7148b0a2
|
/dataset/protocol1/yauaa/learning/3426/ParseUserAgentFunction.java
|
8a1c037377745c92b3ae9012b2dc3c6ccb11e9d8
|
[] |
no_license
|
ASSERT-KTH/synthetic-checkstyle-error-dataset
|
40e8d1e0a7ebe7f7711def96a390891a6922f7bd
|
40c057e1669584bfc6fecf789b5b2854660222f3
|
refs/heads/master
| 2023-03-18T12:50:55.410343
| 2019-01-25T09:54:39
| 2019-01-25T09:54:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,088
|
java
|
/*
* Yet Another UserAgent Analyzer
* Copyright (C) 2013-2018 Niels Basjes
*
* 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 nl.basjes.parse.useragent. drill;
import io.netty.buffer.DrillBuf;
import org.apache.drill.exec.expr.DrillSimpleFunc;
import org.apache.drill.exec.expr.annotations.FunctionTemplate;
import org.apache.drill.exec.expr.annotations.Output;
import org.apache.drill.exec.expr.annotations.Param;
import org.apache.drill.exec.expr.annotations.Workspace;
import org.apache.drill.exec.expr.holders.NullableVarCharHolder;
import org.apache.drill.exec.vector.complex.writer.BaseWriter;
import javax.inject.Inject;
@FunctionTemplate(
name = "parse_user_agent",
scope = FunctionTemplate.FunctionScope.SIMPLE,
nulls = FunctionTemplate.NullHandling.NULL_IF_NULL
)
public class ParseUserAgentFunction implements DrillSimpleFunc {
@Param
NullableVarCharHolder input;
@Output
BaseWriter.ComplexWriter outWriter;
@Inject
DrillBuf outBuffer;
@Workspace
nl.basjes.parse.useragent.UserAgentAnalyzer uaa;
@Workspace
java.util.List<String> allFields;
public void setup() {
uaa = nl.basjes.parse.useragent.drill.UserAgentAnalyzerPreLoader.getInstance();
allFields = uaa.getAllPossibleFieldNamesSorted();
}
public void eval() {
org.apache.drill.exec.vector.complex.writer.BaseWriter.MapWriter queryMapWriter = outWriter.rootAsMap();
if (input.buffer == null) {
return;
}
String userAgentString = org.apache.drill.exec.expr.fn.impl.StringFunctionHelpers.toStringFromUTF8(input.start, input.end, input.buffer);
if (userAgentString.isEmpty() || userAgentString.equals("null")) {
userAgentString = "";
}
nl.basjes.parse.useragent.UserAgent agent = uaa.parse(userAgentString);
for (String fieldName: agent.getAvailableFieldNamesSorted()) {
org.apache.drill.exec.expr.holders.VarCharHolder rowHolder = new org.apache.drill.exec.expr.holders.VarCharHolder();
String field = agent.getValue(fieldName);
if (field == null) {
field = "Unknown";
}
byte[] rowStringBytes = field.getBytes();
outBuffer.reallocIfNeeded(rowStringBytes.length);
outBuffer.setBytes(0, rowStringBytes);
rowHolder.start = 0;
rowHolder.end = rowStringBytes.length;
rowHolder.buffer = outBuffer;
queryMapWriter.varChar(fieldName).write(rowHolder);
}
}
}
|
[
"bloriot97@gmail.com"
] |
bloriot97@gmail.com
|
55ebe2f3d7a0bf23d14aa6909b1c96503b8f86da
|
07ca63e60677abcf3c9a11882ad6af09a03875f5
|
/play23/java/zentasks-using-sbtweb/app/controllers/Projects.java
|
39d3e802446216c1b8774a74290d1f634abda93f
|
[
"Apache-2.0"
] |
permissive
|
project-kotinos/play2-maven-test-projects
|
8aca9a1538337a971789f2d3cc2d829236650789
|
fe0162250f713e8717e9fca3f0acdda440229c6e
|
refs/heads/master
| 2022-11-18T05:27:53.941683
| 2020-06-30T22:32:46
| 2020-06-30T22:32:46
| 276,168,773
| 0
| 0
|
Apache-2.0
| 2020-07-21T17:55:14
| 2020-06-30T17:40:53
|
TSQL
|
UTF-8
|
Java
| false
| false
| 2,935
|
java
|
package controllers;
import play.mvc.*;
import static play.data.Form.*;
import java.util.*;
import models.*;
import views.html.*;
import views.html.projects.*;
/**
* Manage projects related operations.
*/
@Security.Authenticated(Secured.class)
public class Projects extends Controller {
/**
* Display the dashboard.
*/
public static Result index() {
return ok(
dashboard.render(
Project.findInvolving(request().username()),
Task.findTodoInvolving(request().username()),
User.find.byId(request().username())
)
);
}
// -- Projects
/**
* Add a project.
*/
public static Result add() {
Project newProject = Project.create(
"New project",
form().bindFromRequest().get("group"),
request().username()
);
return ok(item.render(newProject));
}
/**
* Rename a project.
*/
public static Result rename(Long project) {
if(Secured.isMemberOf(project)) {
return ok(
Project.rename(
project,
form().bindFromRequest().get("name")
)
);
} else {
return forbidden();
}
}
/**
* Delete a project.
*/
public static Result delete(Long project) {
if(Secured.isMemberOf(project)) {
Project.find.ref(project).delete();
return ok();
} else {
return forbidden();
}
}
// -- Project groups
/**
* Add a new project group.
*/
public static Result addGroup() {
return ok(
group.render("New group", new ArrayList<Project>())
);
}
/**
* Delete a project group.
*/
public static Result deleteGroup(String group) {
Project.deleteInFolder(group);
return ok();
}
/**
* Rename a project group.
*/
public static Result renameGroup(String group) {
return ok(
Project.renameFolder(group, form().bindFromRequest().get("name"))
);
}
// -- Members
/**
* Add a project member.
*/
public static Result addUser(Long project) {
if(Secured.isMemberOf(project)) {
Project.addMember(
project,
form().bindFromRequest().get("user")
);
return ok();
} else {
return forbidden();
}
}
/**
* Remove a project member.
*/
public static Result removeUser(Long project) {
if(Secured.isMemberOf(project)) {
Project.removeMember(
project,
form().bindFromRequest().get("user")
);
return ok();
} else {
return forbidden();
}
}
}
|
[
"gslowikowski@gmail.com"
] |
gslowikowski@gmail.com
|
53360cdfeb95c0f46f07ac2c43ffb8dd249f472e
|
575c19e81594666f51cceb55cb1ab094b218f66b
|
/octopusconsortium/src/main/java/OctopusConsortium/Models/PDS/XActRelationshipDocumentX.java
|
4b4a766238189bbf75ee36d05272e9698d5fff4b
|
[
"Apache-2.0"
] |
permissive
|
uk-gov-mirror/111online.ITK-MessagingEngine
|
62b702653ea716786e2684e3d368898533e77534
|
011e8cbe0bcb982eedc2204318d94e2bb5d4adb2
|
refs/heads/master
| 2023-01-22T17:47:54.631879
| 2020-12-01T14:18:05
| 2020-12-01T14:18:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,123
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-257
// 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: 2012.09.07 at 10:56:02 AM BST
//
package OctopusConsortium.Models.PDS;
import javax.xml.bind.annotation.XmlEnum;
/**
* <p>Java class for x_ActRelationshipDocument_X.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="x_ActRelationshipDocument_X">
* <restriction base="{urn:hl7-org:v3}cs">
* <enumeration value="RPLC"/>
* <enumeration value="APND"/>
* <enumeration value="XFRM"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlEnum
public enum XActRelationshipDocumentX {
RPLC,
APND,
XFRM;
public String value() {
return name();
}
public static XActRelationshipDocumentX fromValue(String v) {
return valueOf(v);
}
}
|
[
"tom.axworthy@nhs.net"
] |
tom.axworthy@nhs.net
|
65b96d093dbb3fa2c7d1c168da5c21f2441d2552
|
31f5db098ebd2e848dc2e8a62b37311575b8a2dd
|
/Android lecture/Sample_Code/AndroidLab/part3-9/build/generated/source/r/debug/android/support/coreui/R.java
|
7a8183eabc3e49ddf9e0f60ed8ded278a625a982
|
[] |
no_license
|
jinkwang2018/lecture-note
|
7bce8ab5b96201231617e2ecc0af543c8334ea4b
|
cc2b5f41c46102320882c5b64d29a6424a33a83b
|
refs/heads/master
| 2021-06-24T21:10:49.341707
| 2019-03-22T08:20:38
| 2019-03-22T08:20:38
| 177,101,162
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,610
|
java
|
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* gradle plugin from the resource data it found. It
* should not be modified by hand.
*/
package android.support.coreui;
public final class R {
public static final class attr {
public static final int font = 0x7f030070;
public static final int fontProviderAuthority = 0x7f030072;
public static final int fontProviderCerts = 0x7f030073;
public static final int fontProviderFetchStrategy = 0x7f030074;
public static final int fontProviderFetchTimeout = 0x7f030075;
public static final int fontProviderPackage = 0x7f030076;
public static final int fontProviderQuery = 0x7f030077;
public static final int fontStyle = 0x7f030078;
public static final int fontWeight = 0x7f030079;
}
public static final class bool {
public static final int abc_action_bar_embed_tabs = 0x7f040000;
}
public static final class color {
public static final int notification_action_color_filter = 0x7f05003e;
public static final int notification_icon_bg_color = 0x7f05003f;
public static final int ripple_material_light = 0x7f05004a;
public static final int secondary_text_default_material_light = 0x7f05004c;
}
public static final class dimen {
public static final int compat_button_inset_horizontal_material = 0x7f06004a;
public static final int compat_button_inset_vertical_material = 0x7f06004b;
public static final int compat_button_padding_horizontal_material = 0x7f06004c;
public static final int compat_button_padding_vertical_material = 0x7f06004d;
public static final int compat_control_corner_material = 0x7f06004e;
public static final int notification_action_icon_size = 0x7f060058;
public static final int notification_action_text_size = 0x7f060059;
public static final int notification_big_circle_margin = 0x7f06005a;
public static final int notification_content_margin_start = 0x7f06005b;
public static final int notification_large_icon_height = 0x7f06005c;
public static final int notification_large_icon_width = 0x7f06005d;
public static final int notification_main_column_padding_top = 0x7f06005e;
public static final int notification_media_narrow_margin = 0x7f06005f;
public static final int notification_right_icon_size = 0x7f060060;
public static final int notification_right_side_padding_top = 0x7f060061;
public static final int notification_small_icon_background_padding = 0x7f060062;
public static final int notification_small_icon_size_as_large = 0x7f060063;
public static final int notification_subtext_size = 0x7f060064;
public static final int notification_top_pad = 0x7f060065;
public static final int notification_top_pad_large_text = 0x7f060066;
}
public static final class drawable {
public static final int notification_action_background = 0x7f070054;
public static final int notification_bg = 0x7f070055;
public static final int notification_bg_low = 0x7f070056;
public static final int notification_bg_low_normal = 0x7f070057;
public static final int notification_bg_low_pressed = 0x7f070058;
public static final int notification_bg_normal = 0x7f070059;
public static final int notification_bg_normal_pressed = 0x7f07005a;
public static final int notification_icon_background = 0x7f07005b;
public static final int notification_template_icon_bg = 0x7f07005c;
public static final int notification_template_icon_low_bg = 0x7f07005d;
public static final int notification_tile_bg = 0x7f07005e;
public static final int notify_panel_notification_icon_bg = 0x7f07005f;
}
public static final class id {
public static final int action_container = 0x7f08000e;
public static final int action_divider = 0x7f080010;
public static final int action_image = 0x7f080011;
public static final int action_text = 0x7f080017;
public static final int actions = 0x7f080018;
public static final int async = 0x7f080020;
public static final int blocking = 0x7f080023;
public static final int chronometer = 0x7f08002a;
public static final int forever = 0x7f080039;
public static final int icon = 0x7f08003c;
public static final int icon_group = 0x7f08003d;
public static final int info = 0x7f080040;
public static final int italic = 0x7f080041;
public static final int line1 = 0x7f080042;
public static final int line3 = 0x7f080043;
public static final int normal = 0x7f08004c;
public static final int notification_background = 0x7f08004d;
public static final int notification_main_column = 0x7f08004e;
public static final int notification_main_column_container = 0x7f08004f;
public static final int right_icon = 0x7f080056;
public static final int right_side = 0x7f080057;
public static final int text = 0x7f080077;
public static final int text2 = 0x7f080078;
public static final int time = 0x7f08007b;
public static final int title = 0x7f08007c;
}
public static final class integer {
public static final int status_bar_notification_info_maxnum = 0x7f090004;
}
public static final class layout {
public static final int notification_action = 0x7f0a001e;
public static final int notification_action_tombstone = 0x7f0a001f;
public static final int notification_template_custom_big = 0x7f0a0026;
public static final int notification_template_icon_group = 0x7f0a0027;
public static final int notification_template_part_chronometer = 0x7f0a002b;
public static final int notification_template_part_time = 0x7f0a002c;
}
public static final class string {
public static final int status_bar_notification_info_overflow = 0x7f0c0021;
}
public static final class style {
public static final int TextAppearance_Compat_Notification = 0x7f0d00fa;
public static final int TextAppearance_Compat_Notification_Info = 0x7f0d00fb;
public static final int TextAppearance_Compat_Notification_Line2 = 0x7f0d00fd;
public static final int TextAppearance_Compat_Notification_Time = 0x7f0d0100;
public static final int TextAppearance_Compat_Notification_Title = 0x7f0d0102;
public static final int Widget_Compat_NotificationActionContainer = 0x7f0d016b;
public static final int Widget_Compat_NotificationActionText = 0x7f0d016c;
}
public static final class styleable {
public static final int[] FontFamily = { 0x7f030072, 0x7f030073, 0x7f030074, 0x7f030075, 0x7f030076, 0x7f030077 };
public static final int FontFamily_fontProviderAuthority = 0;
public static final int FontFamily_fontProviderCerts = 1;
public static final int FontFamily_fontProviderFetchStrategy = 2;
public static final int FontFamily_fontProviderFetchTimeout = 3;
public static final int FontFamily_fontProviderPackage = 4;
public static final int FontFamily_fontProviderQuery = 5;
public static final int[] FontFamilyFont = { 0x7f030070, 0x7f030078, 0x7f030079 };
public static final int FontFamilyFont_font = 0;
public static final int FontFamilyFont_fontStyle = 1;
public static final int FontFamilyFont_fontWeight = 2;
}
}
|
[
"36331994+jinkwang2018@users.noreply.github.com"
] |
36331994+jinkwang2018@users.noreply.github.com
|
cb32244453b8a82c52f90098b847e20f90c9377f
|
ebea4900f9fc1bb3ef791d8ea99387e94bbc6d48
|
/open-metadata-implementation/access-services/subject-area/subject-area-server/src/main/java/org/odpi/openmetadata/accessservices/subjectarea/server/mappers/classifications/ConfidentialityMapper.java
|
7850885c93a1cc14eecab161f6bbe22e2b731949
|
[
"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,757
|
java
|
/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.accessservices.subjectarea.server.mappers.classifications;
import org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Confidentiality;
import org.odpi.openmetadata.accessservices.subjectarea.properties.enums.ConfidenceLevel;
import org.odpi.openmetadata.accessservices.subjectarea.properties.enums.ConfidentialityLevel;
import org.odpi.openmetadata.accessservices.subjectarea.properties.enums.GovernanceClassificationStatus;
import org.odpi.openmetadata.accessservices.subjectarea.utilities.OMRSAPIHelper;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EnumPropertyValue;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertyValue;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.PrimitivePropertyValue;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.PrimitiveDefCategory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/**
* Mapping methods to map between Confidentiality and the omrs equivalents.
*/
public class ConfidentialityMapper extends ClassificationMapper{
private static final Logger log = LoggerFactory.getLogger( ConfidentialityMapper.class);
private static final String className = ConfidentialityMapper.class.getName();
private static final String typeName = "Confidentiality";
public ConfidentialityMapper(OMRSAPIHelper omrsapiHelper) {
super(omrsapiHelper);
}
@Override
protected Set<String> mapKnownAttributesToOmrs(org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification omasClassification, InstanceProperties omrsClassificationProperties) {
Confidentiality confidentiality = (Confidentiality)omasClassification;
String stringValue = repositoryHelper.getStringProperty(omrsapiHelper.getServiceName(),"steward",omrsClassificationProperties,"");
confidentiality.setSteward(stringValue);
stringValue = repositoryHelper.getStringProperty(omrsapiHelper.getServiceName(),"notes",omrsClassificationProperties,"");
confidentiality.setNotes(stringValue);
Integer intValue = repositoryHelper.getIntProperty(omrsapiHelper.getServiceName(),"confidence",omrsClassificationProperties,"");
confidentiality.setConfidence(intValue);
intValue = repositoryHelper.getIntProperty(omrsapiHelper.getServiceName(),"level",omrsClassificationProperties,"");
confidentiality.setLevel(intValue);
// map enums
Map<String, InstancePropertyValue> instancePropertyMap = omrsClassificationProperties.getInstanceProperties();
InstancePropertyValue instancePropertyValue = instancePropertyMap.get("status");
if (instancePropertyValue!=null) {
EnumPropertyValue enumPropertyValue = (EnumPropertyValue) instancePropertyValue;
GovernanceClassificationStatus status = GovernanceClassificationStatus.valueOf(enumPropertyValue.getSymbolicName());
confidentiality.setStatus(status);
}
return Confidentiality.PROPERTY_NAMES_SET;
}
@Override
protected String getTypeName() {
return typeName;
}
@Override
protected org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification createOmasClassification() {
return new Confidentiality();
}
@Override
protected InstanceProperties updateOMRSAttributes(org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification omasClassification) {
InstanceProperties instanceProperties = new InstanceProperties();
Confidentiality confidentiality = (Confidentiality)omasClassification;
if (confidentiality.getSteward()!=null) {
repositoryHelper.addStringPropertyToInstance(omrsapiHelper.getServiceName(),instanceProperties,"steward",confidentiality.getSteward(),"updateOMRSAttributes");
}
if (confidentiality.getSource()!=null) {
repositoryHelper.addStringPropertyToInstance(omrsapiHelper.getServiceName(),instanceProperties,"source",confidentiality.getSource(),"updateOMRSAttributes");
}
if (confidentiality.getNotes()!=null) {
repositoryHelper.addStringPropertyToInstance(omrsapiHelper.getServiceName(),instanceProperties,"notes",confidentiality.getNotes(),"updateOMRSAttributes");
}
if (confidentiality.getConfidence()!=null) {
repositoryHelper.addIntPropertyToInstance(omrsapiHelper.getServiceName(),instanceProperties,"confidence",confidentiality.getConfidence(),"updateOMRSAttributes");
}
if (confidentiality.getLevel()!=null) {
repositoryHelper.addIntPropertyToInstance(omrsapiHelper.getServiceName(),instanceProperties,"level",confidentiality.getLevel(),"updateOMRSAttributes");
}
if (confidentiality.getStatus()!=null) {
EnumPropertyValue enumPropertyValue = new EnumPropertyValue();
enumPropertyValue.setOrdinal(confidentiality.getStatus().getOrdinal());
enumPropertyValue.setSymbolicName(confidentiality.getStatus().getName());
instanceProperties.setProperty("status",enumPropertyValue);
}
return instanceProperties;
}
}
|
[
"david_radley@uk.ibm.com"
] |
david_radley@uk.ibm.com
|
d3cb4bae5724efeb560a51aa46d81266feda74bb
|
9ee5cebe58bd1f85ccb2d2d01fcb03a1f96ee83a
|
/src/main/java/at/study/redmine/ui/BrowserUtils.java
|
09e3496d9eaa51215100cc8e13f5b93c79127488
|
[] |
no_license
|
at-study/at-study-automation-2
|
3887dd7d6701be619ec4c02014e50427a7a36d18
|
7b6dfd384789795fec62596566ea156f70c3d008
|
refs/heads/master
| 2023-09-02T06:33:52.335119
| 2021-11-24T17:05:31
| 2021-11-24T17:05:31
| 406,842,436
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,010
|
java
|
package at.study.redmine.ui;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.WebElement;
import at.study.redmine.property.Property;
public class BrowserUtils {
public static List<String> getElementsText(List<WebElement> elements) {
return elements.stream()
.map(WebElement::getText)
.collect(Collectors.toList());
}
public static boolean isElementCurrentlyDisplayed(WebElement element) {
try {
BrowserManager.getBrowser().getDriver().manage().timeouts().implicitlyWait(1, TimeUnit.SECONDS);
return element.isDisplayed();
} catch (NoSuchElementException exception) {
return false;
} finally {
BrowserManager.getBrowser().getDriver().manage().timeouts().implicitlyWait(Property.getIntegerProperty("element.timeout"), TimeUnit.SECONDS);
}
}
}
|
[
"fan-mag@mail.ru"
] |
fan-mag@mail.ru
|
174fbbcce1ef718e36b315a3981fe7dbf9c234b9
|
26da0aea2ab0a2266bbee962d94a96d98a770e5f
|
/bookshop2/bookshop2-seller/bookshop2-seller-service/src/main/java/bookshop2/seller/outgoing/orderRejected/OrderRejectedReply.java
|
ed0a193912271ea76bf6c2c7d837b921e2cd46a2
|
[
"Apache-2.0"
] |
permissive
|
tfisher1226/ARIES
|
1de2bc076cf83488703cf18f7e3f6e3c5ef1b40b
|
814e3a4b4b48396bcd6d082e78f6519679ccaa01
|
refs/heads/master
| 2021-01-10T02:28:07.807313
| 2015-12-10T20:30:00
| 2015-12-10T20:30:00
| 44,076,313
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 460
|
java
|
package bookshop2.seller.outgoing.orderRejected;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import bookshop2.OrderRejectedMessage;
@WebService(name = "orderRejectedReply", targetNamespace = "http://bookshop2/seller")
@SOAPBinding(style = SOAPBinding.Style.RPC)
public interface OrderRejectedReply {
public String ID = "bookshop2.seller.orderRejectedReply";
public void orderRejected(OrderRejectedMessage orderRejectedMessage);
}
|
[
"tfisher@kattare.com"
] |
tfisher@kattare.com
|
33617329086b777f8736675dec151ad5ab2b6515
|
2e6991f186ab0febc02731f30af674281ea24477
|
/一找网/yizhao/src/com/yizhao/activity/ShopActivity.java
|
a3e764af11801de81cd2dd921785a0247c915067
|
[] |
no_license
|
jameswatt2008/Android_App_OpenSource
|
fb1d335284b6375325b1e8a91b26536c8dd67095
|
f7ef68a54b6f4edc1dcdf0dd1f18d5c60b773f14
|
refs/heads/master
| 2020-12-27T20:39:41.117013
| 2014-01-23T15:45:33
| 2014-01-23T15:45:33
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,788
|
java
|
package com.yizhao.activity;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import com.yizhao.action.ProductAction;
import com.yizhao.adapter.DetailShopsAdapter;
import com.yizhao.bean.DetailShopsBean;
import com.yizhao.bean.ShopsBean;
import com.yizhao.core.AsyncWorkHandler;
import com.yizhao.core.Const;
import com.yizhao.util.NetUtil;
import android.app.Activity;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Message;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import android.widget.AdapterView.OnItemClickListener;
public class ShopActivity extends Activity{
private Context _context;
private TextView shops_count;
private ListView shops_listview;
private DetailShopsAdapter shopsAdapter;
private LayoutInflater inflater;
private View footer;
private Intent _intent;
private String pid;
private int curpage = 1;//当前页
private int pages = 1;//共多少页
private ArrayList<ShopsBean> fileList;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.shops);
super.onCreate(savedInstanceState);
_context = this;
_intent = this.getIntent();
inflater = LayoutInflater.from(_context);
footer = inflater.inflate(R.layout.shops_footer, null);
shops_listview = (ListView)findViewById(R.id.shops_listview);
shops_listview.addFooterView(footer);
shops_count = (TextView)findViewById(R.id.shops_count);
pid = _intent.getStringExtra("product_id");
AsyncWorkHandler asyncQueryHandler = new AsyncWorkHandler(){
@Override
public Object excute(Map<String, String> map) {
return ProductAction.getProductShops(map);
}
@Override
public void handleMessage(Message msg) {
if(msg.obj!=null){
DetailShopsBean bean = (DetailShopsBean)msg.obj;
if("true".equals(bean.getResult())){
pages = (bean.getShops()%Const.PAGE_SIZE_INT == 0) ? bean.getShops()/Const.PAGE_SIZE_INT : bean.getShops()/Const.PAGE_SIZE_INT+1;
shops_count.setText(bean.getShops()+"家");
fileList = bean.getFileList();
shopsAdapter = new DetailShopsAdapter(_context,fileList);
if(shopsAdapter!=null){
shops_listview.setAdapter(shopsAdapter);
}
_intent.putExtra("status", true);
}
}
removeDialog(Const.PROGRESSBAR_WAIT);
}
};
//异步获取信息
showDialog(Const.PROGRESSBAR_WAIT);
Map<String,String> param = new HashMap<String,String>();
param.put("product_id", pid);
param.put("p", "1");
asyncQueryHandler.doWork(param);
shops_listview.setOnItemClickListener(new OnItemClickListener(){
@Override
public void onItemClick(AdapterView<?> arg0, View arg1, int position,
long arg3) {
Intent it = new Intent(Intent.ACTION_VIEW, Uri.parse(NetUtil.getUrl(fileList.get(position).getSellUrl())));
//it.setClassName("com.android.browser", "com.android.browser.BrowserActivity");
startActivity(it);
}
});
footer.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
if(curpage < pages){
int cur = curpage+1;
AsyncWorkHandler asyncQueryHandler = new AsyncWorkHandler(){
@Override
public Object excute(Map<String, String> map) {
return ProductAction.getProductShops(map);
}
@Override
public void handleMessage(Message msg) {
if(msg.obj!=null){
DetailShopsBean bean = (DetailShopsBean)msg.obj;
if("true".equals(bean.getResult())){
ArrayList<ShopsBean> tmpList = bean.getFileList();
if(tmpList!=null && tmpList.size() > 0){
curpage++;
for(ShopsBean shopBean : tmpList){
fileList.add(shopBean);
}
Log.d(Const.TAG, "ShopActivity.AsyncWork|curpage="+curpage+",pages="+pages+",fileList.size="+fileList.size());
shopsAdapter.notifyDataSetChanged();
}
}
}
removeDialog(Const.PROGRESSBAR_WAIT);
}
};
//异步获取信息
showDialog(Const.PROGRESSBAR_WAIT);
Map<String,String> param = new HashMap<String,String>();
param.put("product_id", pid);
param.put("p", ""+cur);
asyncQueryHandler.doWork(param);
}else{
Toast.makeText(_context, "已经到最后一页", Toast.LENGTH_SHORT).show();
}
}
});
}
@Override
protected Dialog onCreateDialog(int id) {
switch (id) {
case Const.PROGRESSBAR_WAIT:
ProgressDialog wait_pd = new ProgressDialog(this);
wait_pd.setMessage(Const.LOADING);
return wait_pd;
}
return null;
}
}
|
[
"ww1095@163.com"
] |
ww1095@163.com
|
a38c1ae58501568487a03af09b961ed3b0eaa53b
|
6b487fd0beb90d310592f6e503fd11d12608a119
|
/app/src/main/java/com/xuexiang/protobufdemo/grpc/SimpleStreamObserver.java
|
ce432f39dacf669874fa75b6ce0e938093fa0775
|
[] |
no_license
|
yxwandroid/Protobuf-gRPC-Android
|
8000fb7f6babeb68725a73b2c57fbd61b33d4f16
|
697a6aa2b1717fddf1efe8a1c42457ffc8b26858
|
refs/heads/master
| 2022-11-18T07:23:43.818729
| 2020-07-14T03:55:12
| 2020-07-14T03:55:12
| 262,925,371
| 0
| 0
| null | 2020-05-11T03:04:55
| 2020-05-11T03:04:54
| null |
UTF-8
|
Java
| false
| false
| 1,261
|
java
|
package com.xuexiang.protobufdemo.grpc;
import com.xuexiang.xaop.annotation.MainThread;
import com.xuexiang.xutil.tip.ToastUtils;
import io.grpc.Status;
import io.grpc.StatusException;
import io.grpc.StatusRuntimeException;
import io.grpc.stub.StreamObserver;
/**
* 简单的StreamObserver[回到主线程]
*
* @author XUE
* @since 2019/3/19 13:34
*/
public abstract class SimpleStreamObserver<T> implements StreamObserver<T> {
@Override
public void onCompleted() {
}
@MainThread
@Override
public void onNext(T value) {
//增加注解,回到主线程
onSuccess(value);
}
@Override
public void onError(Throwable t) {
t.printStackTrace();
if (t instanceof StatusRuntimeException) {
Status status = ((StatusRuntimeException) t).getStatus();
ToastUtils.toast(status.getDescription());
} else if (t instanceof StatusException) {
Status status = ((StatusException) t).getStatus();
ToastUtils.toast(status.getDescription());
} else {
ToastUtils.toast(t.getMessage());
}
}
/**
* 请求成功的回调
*
* @param value
*/
protected abstract void onSuccess(T value);
}
|
[
"xuexiangjys@163.com"
] |
xuexiangjys@163.com
|
8cd68ecdeb80ac255a51af42c0de1d7daa5f836f
|
09832253bbd9c7837d4a380c7410bd116d9d8119
|
/From Friend/NetBeansProjects/My-Evidence/New folder/prime/CheckPrime.java
|
a86be71852fc9c175ec2d296e19b51a566c5d27e
|
[] |
no_license
|
shshetu/Java
|
d892ae2725f8ad0acb2d98f5fd4e6ca2b1ce171e
|
51bddc580432c74e0339588213ef9aa0d384169a
|
refs/heads/master
| 2020-04-11T21:25:12.588859
| 2019-04-02T05:41:00
| 2019-04-02T05:41:00
| 162,104,906
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 604
|
java
|
package com.coderbd.prime;
import java.util.Scanner;
public class CheckPrime {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Enter any positive number : ");
int num = input.nextInt();
int count = 0;
for (int i = 2; i < num; i++) {
if (num % i == 0) {
count++;
break;
}
}
if (count == 0) {
System.out.println("Is prime number");
} else {
System.out.println("Not is prime number");
}
}
}
|
[
"shshetu2017@gmail.com"
] |
shshetu2017@gmail.com
|
5f78f7f54ff8dcd297282c08af8f65d719466f0b
|
774d36285e48bd429017b6901a59b8e3a51d6add
|
/sources/com/onesignal/R$layout.java
|
ced2efe7f949a0281d36ee8b447ce676e0f4c85e
|
[] |
no_license
|
jorge-luque/hb
|
83c086851a409e7e476298ffdf6ba0c8d06911db
|
b467a9af24164f7561057e5bcd19cdbc8647d2e5
|
refs/heads/master
| 2023-08-25T09:32:18.793176
| 2020-10-02T11:02:01
| 2020-10-02T11:02:01
| 300,586,541
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,441
|
java
|
package com.onesignal;
public final class R$layout {
public static final int browser_actions_context_menu_page = 2131361849;
public static final int browser_actions_context_menu_row = 2131361850;
public static final int notification_action = 2131361875;
public static final int notification_action_tombstone = 2131361876;
public static final int notification_media_action = 2131361877;
public static final int notification_media_cancel_action = 2131361878;
public static final int notification_template_big_media = 2131361879;
public static final int notification_template_big_media_custom = 2131361880;
public static final int notification_template_big_media_narrow = 2131361881;
public static final int notification_template_big_media_narrow_custom = 2131361882;
public static final int notification_template_custom_big = 2131361883;
public static final int notification_template_icon_group = 2131361884;
public static final int notification_template_lines_media = 2131361885;
public static final int notification_template_media = 2131361886;
public static final int notification_template_media_custom = 2131361887;
public static final int notification_template_part_chronometer = 2131361888;
public static final int notification_template_part_time = 2131361889;
public static final int onesignal_bgimage_notif_layout = 2131361890;
private R$layout() {
}
}
|
[
"jorge.luque@taiger.com"
] |
jorge.luque@taiger.com
|
c71f461fdd45ecdec63c7e4e84acfcf61a3766e5
|
69e933527f1bc9be4fa2a47e2c0a65d5e8e4abeb
|
/src/main/java/com/java/basics/io/streams/DataInputStreamSample.java
|
2d61f85253617110ee26d17f1bb0d0e1554cb51b
|
[] |
no_license
|
javadevgy/java
|
6846eb8c319944f49ce1923e74a42e0e50b0f60a
|
29a0643ae87f8f13995ec4242c422f77394e7c79
|
refs/heads/master
| 2020-04-20T17:15:39.310917
| 2019-02-03T19:23:13
| 2019-02-03T19:23:13
| 168,982,275
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,640
|
java
|
package com.java.basics.io.streams;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
public class DataInputStreamSample {
public static void main(String[] args) {
byte value1 = 127;
short value2 = 15431;
double value3 = 3.14159265;
double value4 = 2.23;
int value5 = 1821178321;
String fileName = "src/main/java/com/java/basics/io/streams/TrialWithNumbers.txt";
try (FileOutputStream stream = new FileOutputStream(fileName);
BufferedOutputStream buff = new BufferedOutputStream(stream);
DataOutputStream writer = new DataOutputStream(buff)) {
writer.writeByte(value1);
writer.writeShort(value2);
writer.writeDouble(value3);
writer.writeDouble(value4);
writer.writeInt(value5);
} catch (FileNotFoundException e) {
System.out.println(e.getMessage());
} catch (IOException e) {
System.out.println(e.getMessage());
}
try (FileInputStream stream = new FileInputStream(fileName);
BufferedInputStream buff = new BufferedInputStream(stream);
DataInputStream reader = new DataInputStream(buff)) {
System.out.println(reader.readByte());
System.out.println(reader.readShort());
System.out.println(reader.readDouble());
System.out.println(reader.readDouble());
System.out.println(reader.readInt());
} catch (FileNotFoundException e) {
System.out.println(e.getMessage());
} catch (IOException e) {
System.out.println(e.getMessage());
}
}
}
|
[
"a_sanver@hotmail.com"
] |
a_sanver@hotmail.com
|
2c49cb064bf601c3c138de498997d2de6a337bff
|
73364c57427e07e90d66692a3664281d5113177e
|
/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/GetAttributesAction.java
|
f158ac525357e27306019a553c5d38e26187d341
|
[
"BSD-3-Clause"
] |
permissive
|
abyot/sun-pmt
|
4681f008804c8a7fc7a75fe5124f9b90df24d44d
|
40add275f06134b04c363027de6af793c692c0a1
|
refs/heads/master
| 2022-12-28T09:54:11.381274
| 2019-06-10T15:47:21
| 2019-06-10T15:47:21
| 55,851,437
| 0
| 1
|
BSD-3-Clause
| 2022-12-16T12:05:12
| 2016-04-09T15:21:22
|
Java
|
UTF-8
|
Java
| false
| false
| 3,194
|
java
|
package org.hisp.dhis.commons.action;
/*
* Copyright (c) 2004-2017, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* Neither the name of the HISP project nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.apache.struts2.ServletActionContext;
import org.hisp.dhis.attribute.Attribute;
import org.hisp.dhis.attribute.AttributeService;
import org.hisp.dhis.util.ContextUtils;
import com.opensymphony.xwork2.Action;
/**
* @author mortenoh
*/
public class GetAttributesAction
implements Action
{
// -------------------------------------------------------------------------
// Dependencies
// -------------------------------------------------------------------------
private AttributeService attributeService;
public void setAttributeService( AttributeService attributeService )
{
this.attributeService = attributeService;
}
// -------------------------------------------------------------------------
// Input & Output
// -------------------------------------------------------------------------
private List<Attribute> attributes;
public List<Attribute> getAttributes()
{
return attributes;
}
// -------------------------------------------------------------------------
// Action implementation
// -------------------------------------------------------------------------
@Override
public String execute()
{
attributes = new ArrayList<>( attributeService.getAllAttributes() );
ContextUtils.clearIfNotModified( ServletActionContext.getRequest(), ServletActionContext.getResponse(), attributes );
Collections.sort( attributes );
return SUCCESS;
}
}
|
[
"abyota@gmail.com"
] |
abyota@gmail.com
|
b68560d6a88b8a5f1c473b0f905fe28b640c7b79
|
d5230e06c2da5525419fbd5fe62c3345832ec158
|
/src/IADMSDKLib/IASABRECONF.java
|
88fb8551b207b75dbc74a276966cea64cf0446af
|
[] |
no_license
|
Javonet-io-user/6dbe81c0-baa8-49d5-8ac4-911cb610339f
|
bb31a05485135ad1a25ad68005f53d539a793891
|
7fe132a146d9fb7e6d95c22d8b7472a14ad16a21
|
refs/heads/master
| 2020-06-02T10:01:37.515233
| 2019-06-10T07:48:03
| 2019-06-10T07:48:03
| 191,121,816
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,807
|
java
|
package IADMSDKLib;
import Common.Activation;
import static Common.JavonetHelper.Convert;
import static Common.JavonetHelper.getGetObjectName;
import static Common.JavonetHelper.getReturnObjectName;
import static Common.JavonetHelper.ConvertToConcreteInterfaceImplementation;
import Common.JavonetHelper;
import Common.MethodTypeAnnotation;
import com.javonet.Javonet;
import com.javonet.JavonetException;
import com.javonet.JavonetFramework;
import com.javonet.api.NObject;
import com.javonet.api.NEnum;
import com.javonet.api.keywords.NRef;
import com.javonet.api.keywords.NOut;
import com.javonet.api.NControlContainer;
import java.util.concurrent.atomic.AtomicReference;
import java.util.Iterator;
import java.lang.*;
import jio.System.*;
import IADMSDKLib.*;
public class IASABRECONF extends ValueType {
protected NObject javonetHandle;
/** GetFiled */
@MethodTypeAnnotation(type = "GetField")
public java.lang.Integer getSabreStatus() {
try {
java.lang.Integer res = javonetHandle.get("SabreStatus");
if (res == null) return 0;
return res;
} catch (JavonetException _javonetException) {
_javonetException.printStackTrace();
return 0;
}
}
/** SetFiled */
@MethodTypeAnnotation(type = "SetField")
public void setSabreStatus(java.lang.Integer param) {
try {
javonetHandle.set("SabreStatus", param);
} catch (JavonetException _javonetException) {
_javonetException.printStackTrace();
}
}
/** GetFiled */
@MethodTypeAnnotation(type = "GetField")
public java.lang.Double getCPUSpeed() {
try {
java.lang.Double res = javonetHandle.get("CPUSpeed");
if (res == null) return 0.0;
return res;
} catch (JavonetException _javonetException) {
_javonetException.printStackTrace();
return 0.0;
}
}
/** SetFiled */
@MethodTypeAnnotation(type = "SetField")
public void setCPUSpeed(java.lang.Double param) {
try {
javonetHandle.set("CPUSpeed", param);
} catch (JavonetException _javonetException) {
_javonetException.printStackTrace();
}
}
/** GetFiled */
@MethodTypeAnnotation(type = "GetField")
public java.lang.Double getMemorySize() {
try {
java.lang.Double res = javonetHandle.get("MemorySize");
if (res == null) return 0.0;
return res;
} catch (JavonetException _javonetException) {
_javonetException.printStackTrace();
return 0.0;
}
}
/** SetFiled */
@MethodTypeAnnotation(type = "SetField")
public void setMemorySize(java.lang.Double param) {
try {
javonetHandle.set("MemorySize", param);
} catch (JavonetException _javonetException) {
_javonetException.printStackTrace();
}
}
/** GetFiled */
@MethodTypeAnnotation(type = "GetField")
public java.lang.Byte[] getSoftwareVersion(Class<?> returnArrayType) {
try {
Object[] res = javonetHandle.<NObject[]>get("SoftwareVersion");
if (res == null) return null;
return (java.lang.Byte[])
JavonetHelper.ConvertNObjectToDestinationType((Object) res, returnArrayType);
} catch (JavonetException _javonetException) {
_javonetException.printStackTrace();
return null;
}
}
/** SetFiled */
@MethodTypeAnnotation(type = "SetField")
public void setSoftwareVersion(java.lang.Byte[] param) {
try {
javonetHandle.set("SoftwareVersion", new Object[] {param});
} catch (JavonetException _javonetException) {
_javonetException.printStackTrace();
}
}
/** GetFiled */
@MethodTypeAnnotation(type = "GetField")
public java.lang.Byte[] getOSVersion(Class<?> returnArrayType) {
try {
Object[] res = javonetHandle.<NObject[]>get("OSVersion");
if (res == null) return null;
return (java.lang.Byte[])
JavonetHelper.ConvertNObjectToDestinationType((Object) res, returnArrayType);
} catch (JavonetException _javonetException) {
_javonetException.printStackTrace();
return null;
}
}
/** SetFiled */
@MethodTypeAnnotation(type = "SetField")
public void setOSVersion(java.lang.Byte[] param) {
try {
javonetHandle.set("OSVersion", new Object[] {param});
} catch (JavonetException _javonetException) {
_javonetException.printStackTrace();
}
}
/** GetFiled */
@MethodTypeAnnotation(type = "GetField")
public java.lang.Byte getOSType() {
try {
java.lang.Byte res = javonetHandle.get("OSType");
if (res == null) return 0;
return res;
} catch (JavonetException _javonetException) {
_javonetException.printStackTrace();
return 0;
}
}
/** SetFiled */
@MethodTypeAnnotation(type = "SetField")
public void setOSType(java.lang.Byte param) {
try {
javonetHandle.set("OSType", param);
} catch (JavonetException _javonetException) {
_javonetException.printStackTrace();
}
}
/** GetFiled */
@MethodTypeAnnotation(type = "GetField")
public java.lang.Byte[] getIPAddress(Class<?> returnArrayType) {
try {
Object[] res = javonetHandle.<NObject[]>get("IPAddress");
if (res == null) return null;
return (java.lang.Byte[])
JavonetHelper.ConvertNObjectToDestinationType((Object) res, returnArrayType);
} catch (JavonetException _javonetException) {
_javonetException.printStackTrace();
return null;
}
}
/** SetFiled */
@MethodTypeAnnotation(type = "SetField")
public void setIPAddress(java.lang.Byte[] param) {
try {
javonetHandle.set("IPAddress", new Object[] {param});
} catch (JavonetException _javonetException) {
_javonetException.printStackTrace();
}
}
/** GetFiled */
@MethodTypeAnnotation(type = "GetField")
public java.lang.Byte[] getSubnetMask(Class<?> returnArrayType) {
try {
Object[] res = javonetHandle.<NObject[]>get("SubnetMask");
if (res == null) return null;
return (java.lang.Byte[])
JavonetHelper.ConvertNObjectToDestinationType((Object) res, returnArrayType);
} catch (JavonetException _javonetException) {
_javonetException.printStackTrace();
return null;
}
}
/** SetFiled */
@MethodTypeAnnotation(type = "SetField")
public void setSubnetMask(java.lang.Byte[] param) {
try {
javonetHandle.set("SubnetMask", new Object[] {param});
} catch (JavonetException _javonetException) {
_javonetException.printStackTrace();
}
}
/** GetFiled */
@MethodTypeAnnotation(type = "GetField")
public java.lang.Byte[] getDefaultGateway(Class<?> returnArrayType) {
try {
Object[] res = javonetHandle.<NObject[]>get("DefaultGateway");
if (res == null) return null;
return (java.lang.Byte[])
JavonetHelper.ConvertNObjectToDestinationType((Object) res, returnArrayType);
} catch (JavonetException _javonetException) {
_javonetException.printStackTrace();
return null;
}
}
/** SetFiled */
@MethodTypeAnnotation(type = "SetField")
public void setDefaultGateway(java.lang.Byte[] param) {
try {
javonetHandle.set("DefaultGateway", new Object[] {param});
} catch (JavonetException _javonetException) {
_javonetException.printStackTrace();
}
}
public IASABRECONF(NObject handle) {
super(handle);
this.javonetHandle = handle;
}
public void setJavonetHandle(NObject handle) {
this.javonetHandle = handle;
}
static {
try {
Activation.initializeJavonet();
} catch (java.lang.Exception e) {
e.printStackTrace();
}
}
}
|
[
"support@javonet.com"
] |
support@javonet.com
|
30e8ecec4be0cfaf3fec988659ed378b30081c5c
|
135089e1716a632e29d8c91413b36607f6d4c9d8
|
/src/main/java/org/dlese/dpc/xml/schema/SchemaProps.java
|
71ec1803fb012ea7e75936d39bf2da32b9f2fe52
|
[] |
no_license
|
MPDL/joai-maven
|
149e54f8e3cadde255026e79c0d21c8567307d9f
|
a1be9dca48b67d379bd006a4880864df78d55224
|
refs/heads/master
| 2022-06-02T18:45:42.016575
| 2022-05-23T15:24:18
| 2022-05-23T15:24:18
| 144,267,411
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,778
|
java
|
/*
Copyright 2017 Digital Learning Sciences (DLS) at the
University Corporation for Atmospheric Research (UCAR),
P.O. Box 3000, Boulder, CO 80307
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.dlese.dpc.xml.schema;
import java.io.File;
import java.net.URI;
import java.net.URL;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
// import org.dlese.dpc.xml.schema.compositor.Compositor;
import org.dlese.dpc.xml.Dom4jUtils;
import org.dom4j.Attribute;
import org.dom4j.Document;
import org.dom4j.Element;
import org.dom4j.Node;
/**
* Stores XML schema properties defined in the root schema File
* <p>
*
*
*
* @author ostwald
* <p>
*
*
*/
public class SchemaProps {
private static boolean debug = true;
private Map map;
private Element rootElement = null;
private boolean namespaceEnabled = false;
/*
* private URI rootURI = null; private String version; private String
* targetNamespace; private String elementFormDefault = "qualified"; private
* String attributeFormDefault = "unqualified"; private Namespace schemaNS;
*/
/**
* Constructor for the SchemaProps object for disk-based schema
*
* @param schemaFile
* path to root file of schema
* @exception SchemaPropsException
* Description of the Exception
*/
public SchemaProps(URI uri) {
map = new HashMap();
setProp("schemaLocation", uri.toString());
}
public void init(Document schemaDoc) {
rootElement = schemaDoc.getRootElement();
if (rootElement == null) {
prtln("SchemaProps ERROR: rootElement not found");
return;
}
setProp("namespace", rootElement.getNamespace());
setDefaultProps();
for (Iterator i = rootElement.attributeIterator(); i.hasNext();) {
Attribute att = (Attribute) i.next();
setProp(att.getName(), att.getValue());
}
}
private void setDefaultProps() {
setProp("elementFormDefault", "qualified");
setProp("attributeFormDefault", "unqualified");
}
public void setProp(String name, Object val) {
map.put(name, val);
}
public Object getProp(String prop) {
return map.get(prop);
}
public static void main(String[] args) throws Exception {
// paths to schema files
String play = "http://www.dpc.ucar.edu/people/ostwald/Metadata/NameSpacesPlay/cd.xsd";
String news_opps = "/devel/ostwald/metadata-frameworks/news-opps-project/news-opps.xsd";
String dlese_collect = "/devel/ostwald/metadata-frameworks/collection-v1.0.00/collection.xsd";
String local_play = "/devel/ostwald/SchemEdit/NameSpaces/Play-local/cd.xsd";
String original = "/devel/ostwald/SchemEdit/NameSpaces/Original/cd.xsd";
String framework_config = "/devel/ostwald/tomcat/tomcat/webapps/schemedit/WEB-INF/metadata-frameworks/framework-config/dcsFrameworkConfig-0.0.2.xsd";
String nsdl = "http://ns.nsdl.org/schemas/nsdl_dc/nsdl_dc_v1.02.xsd";
String statusReportSimple = "/devel/ostwald/metadata-frameworks/ProjectReport/statusReportSimple.xsd";
String path = statusReportSimple;
URI uri = null;
if (args.length > 0)
path = args[0];
prtln("\n-------------------------------------------------");
prtln("SchemaProps\n");
Document doc = null;
if (path.indexOf("http:") == 0) {
URL schemaUrl = null;
try {
schemaUrl = new URL(path);
} catch (Exception e) {
prtln("bad url: " + e.getMessage());
return;
}
doc = Dom4jUtils.getXmlDocument(schemaUrl);
uri = schemaUrl.toURI();
} else {
File file = new File(path);
doc = Dom4jUtils.getXmlDocument(file);
uri = file.toURI();
}
SchemaProps props = new SchemaProps(uri);
props.init(doc);
props.showProps();
}
public void showProps() {
Iterator i = map.keySet().iterator();
prtln("Schema props map (" + map.size() + ")");
while (i.hasNext()) {
String propName = (String) i.next();
prtln("\t" + propName + ": " + getProp(propName));
}
}
/**
* Description of the Method
*
* @param o
* Description of the Parameter
*/
private void pp(Node n) {
prtln(Dom4jUtils.prettyPrint(n));
}
/**
* Description of the Method
*
* @param s
* Description of the Parameter
*/
private static void prtln(String s) {
if (debug) {
// System.out.println("SchemaProps: " + s);
System.out.println(s);
}
}
}
|
[
"haarlaender@mpdl.mpg.de"
] |
haarlaender@mpdl.mpg.de
|
e2b6e677a33335b8977adad3619445b37045516a
|
c41ffe078942c25495fe17e115750daa7bacd244
|
/gui/src/main/java/org/jboss/as/console/client/administration/role/model/Roles.java
|
456285d23fac5cd398eeb98a54db1718db6282fd
|
[] |
no_license
|
rhatlapa/core
|
2938cbcc2e6e98c840b8b4f98da289c160bb349e
|
0cd456cad503fd036599756c4ab51a977e06aceb
|
refs/heads/master
| 2020-12-25T21:34:27.973026
| 2015-05-28T07:31:07
| 2015-05-28T07:31:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,734
|
java
|
/*
* JBoss, Home of Professional Open Source
* Copyright 2013 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @author tags. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
* of the GNU Lesser General Public License, v. 2.1.
* This program is distributed in the hope that it will be useful, but WITHOUT A
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public License,
* v.2.1 along with this distribution; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
package org.jboss.as.console.client.administration.role.model;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.SortedSet;
import java.util.TreeSet;
/**
* Contains the list of standard roles plus the custom defined scoped roles.
*
* @author Harald Pehl
*/
public class Roles implements Iterable<Role> {
private final Map<String, Role> lookup;
private final SortedSet<Role> standardRoles;
private final SortedSet<Role> scopedRoles;
public Roles() {
this.lookup = new HashMap<String, Role>();
this.standardRoles = new TreeSet<Role>(new RoleComparator());
this.scopedRoles = new TreeSet<Role>(new RoleComparator());
}
public void add(Role role) {
if (role != null) {
lookup.put(role.getId(), role);
if (role.isStandard()) {
standardRoles.add(role);
} else if (role.isScoped()) {
scopedRoles.add(role);
}
}
}
public void clear() {
lookup.clear();
standardRoles.clear();
scopedRoles.clear();
}
public List<Role> getRoles() {
List<Role> roles = new ArrayList<Role>(standardRoles);
roles.addAll(scopedRoles);
return roles;
}
public List<Role> getStandardRoles() {
return new ArrayList<Role>(standardRoles);
}
public List<Role> getScopedRoles() {
return new ArrayList<Role>(scopedRoles);
}
public Role getRole(String id) {
if (id != null) {
return lookup.get(id);
}
return null;
}
@Override
public Iterator<Role> iterator() {
return getRoles().iterator();
}
}
|
[
"harald.pehl@gmail.com"
] |
harald.pehl@gmail.com
|
8d499493e3aa5021da62e5a2caf38fbfb3379f85
|
2cd64269df4137e0a39e8e67063ff3bd44d72f1b
|
/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyQuoteRequestUpdateActionImpl.java
|
8be9964898c2edc873de6f946d479d21496490f8
|
[
"Apache-2.0",
"GPL-2.0-only",
"EPL-2.0",
"CDDL-1.0",
"MIT",
"BSD-3-Clause",
"Classpath-exception-2.0"
] |
permissive
|
commercetools/commercetools-sdk-java-v2
|
a8703f5f8c5dde6cc3ebe4619c892cccfcf71cb8
|
76d5065566ff37d365c28829b8137cbc48f14df1
|
refs/heads/main
| 2023-08-14T16:16:38.709763
| 2023-08-14T11:58:19
| 2023-08-14T11:58:19
| 206,558,937
| 29
| 13
|
Apache-2.0
| 2023-09-14T12:30:00
| 2019-09-05T12:30:27
|
Java
|
UTF-8
|
Java
| false
| false
| 1,620
|
java
|
package com.commercetools.api.models.me;
import java.time.*;
import java.util.*;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.*;
import io.vrap.rmf.base.client.ModelBase;
import io.vrap.rmf.base.client.utils.Generated;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
/**
* MyQuoteRequestUpdateAction
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public class MyQuoteRequestUpdateActionImpl implements MyQuoteRequestUpdateAction, ModelBase {
private String action;
/**
* create instance with all properties
*/
@JsonCreator
MyQuoteRequestUpdateActionImpl(@JsonProperty("action") final String action) {
this.action = action;
}
/**
* create empty instance
*/
public MyQuoteRequestUpdateActionImpl() {
}
/**
*
*/
public String getAction() {
return this.action;
}
@Override
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || getClass() != o.getClass())
return false;
MyQuoteRequestUpdateActionImpl that = (MyQuoteRequestUpdateActionImpl) o;
return new EqualsBuilder().append(action, that.action).append(action, that.action).isEquals();
}
@Override
public int hashCode() {
return new HashCodeBuilder(17, 37).append(action).toHashCode();
}
}
|
[
"automation@commercetools.com"
] |
automation@commercetools.com
|
d5e35bc6b02442d198c54dc53f523271eff8df16
|
9d4f77f7dd470a4583a946e284646f2782964a79
|
/src/main/java/com/czyh/czyhweb/dao/CustomerWithdrawalDAO.java
|
afab57d43003b7e6f2bcbb160d4e10eae6949142
|
[] |
no_license
|
qinkangkang/czyh
|
442fb9288607c8f50b586ce2d5e780d7566e35b3
|
7cd40bd2782ba9fc8ba92850639a74607738faa8
|
refs/heads/master
| 2021-07-24T22:47:40.460441
| 2017-11-07T08:20:13
| 2017-11-07T08:20:13
| 109,805,958
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 363
|
java
|
package com.czyh.czyhweb.dao;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import com.czyh.czyhweb.entity.TCustomerWithdrawal;
public interface CustomerWithdrawalDAO
extends JpaRepository<TCustomerWithdrawal, String>, JpaSpecificationExecutor<TCustomerWithdrawal> {
}
|
[
"shemar.qin@sdeals.me"
] |
shemar.qin@sdeals.me
|
54b732f824c4bd05bb6fe62f8d7d6df5b56fa41a
|
90da1e8991558e773df0e31f4aad06e830e128fb
|
/src/main/java/com/fisc/decltca/config/KafkaProperties.java
|
9cb8f5bc0391ead3a4665f05b9e91433bce33b27
|
[] |
no_license
|
sandalothier/jhipster-decltca
|
695ba8d3d8350b37e58855be02c7fea712c79bd1
|
241820a40af3391c7b591a83f9b4ee8261271dc4
|
refs/heads/master
| 2022-12-23T17:26:38.196664
| 2019-12-19T13:15:51
| 2019-12-19T13:15:51
| 229,057,975
| 0
| 0
| null | 2022-12-16T06:28:37
| 2019-12-19T13:15:43
|
Java
|
UTF-8
|
Java
| false
| false
| 754
|
java
|
package com.fisc.decltca.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import java.util.Map;
@Configuration
@ConfigurationProperties(prefix = "kafka")
public class KafkaProperties {
private Map<String, String> consumer;
private Map<String, String> producer;
public Map<String, Object> getConsumerProps() {
return (Map) consumer;
}
public void setConsumer(Map<String, String> consumer) {
this.consumer = consumer;
}
public Map<String, Object> getProducerProps() {
return (Map) producer;
}
public void setProducer(Map<String, String> producer) {
this.producer = producer;
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
806978a1cf6193c65fe8ba2c3d2bb50bed8a1aee
|
081eaa81b1812fab62959e4fe94ad9179ebd1edb
|
/src/client/java/com/mumfrey/liteloader/client/mixin/MixinFramebuffer.java
|
7170148cb45d25253e0c154e4de98eb1bfb96c39
|
[] |
no_license
|
hempflower/LiteLoader
|
8ff5b0b881485dd024260c4c2d57f66685e00cbf
|
4cc2bb00c8eff08863c9f7625be08983951546a5
|
refs/heads/master
| 2020-04-11T15:10:15.098165
| 2017-11-28T14:35:15
| 2017-11-28T14:35:15
| 161,882,049
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,642
|
java
|
/*
* This file is part of LiteLoader.
* Copyright (C) 2012-16 Adam Mummery-Smith
* All Rights Reserved.
*/
package com.mumfrey.liteloader.client.mixin;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import com.mumfrey.liteloader.client.LiteLoaderEventBrokerClient;
import com.mumfrey.liteloader.client.ducks.IFramebuffer;
import net.minecraft.client.shader.Framebuffer;
@Mixin(Framebuffer.class)
public abstract class MixinFramebuffer implements IFramebuffer
{
private LiteLoaderEventBrokerClient broker;
private boolean dispatchRenderEvent;
@Override
public IFramebuffer setDispatchRenderEvent(boolean dispatchRenderEvent)
{
this.dispatchRenderEvent = dispatchRenderEvent;
return this;
}
@Override
public boolean isDispatchRenderEvent()
{
return this.dispatchRenderEvent;
}
@Inject(method = "framebufferRenderExt(IIZ)V", at = @At(
value = "INVOKE",
target = "Lnet/minecraft/client/shader/Framebuffer;bindFramebufferTexture()V"
))
private void onRenderFBO(int width, int height, boolean flag, CallbackInfo ci)
{
if (this.broker == null)
{
this.broker = LiteLoaderEventBrokerClient.getInstance();
}
if (this.dispatchRenderEvent && this.broker != null)
{
this.broker.onRenderFBO((Framebuffer)(Object)this, width, height);
}
this.dispatchRenderEvent = false;
}
}
|
[
"adam@eq2.co.uk"
] |
adam@eq2.co.uk
|
5d00df43bef2049644609b4817f24f9738d1124b
|
180e78725121de49801e34de358c32cf7148b0a2
|
/dataset/protocol1/jdbi/learning/161/ElementTypeNotFoundException.java
|
38e59d519cadf6ffa927647e6eb5997d4b683290
|
[] |
no_license
|
ASSERT-KTH/synthetic-checkstyle-error-dataset
|
40e8d1e0a7ebe7f7711def96a390891a6922f7bd
|
40c057e1669584bfc6fecf789b5b2854660222f3
|
refs/heads/master
| 2023-03-18T12:50:55.410343
| 2019-01-25T09:54:39
| 2019-01-25T09:54:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,141
|
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 org.jdbi.v3.core.collector;
import org.jdbi.v3.core.JdbiException;
/**
* Thrown when Jdbi tries to build a Collector, but cannot determine the element
* type intended for it.
*/
@SuppressWarnings("serial")
public class ElementTypeNotFoundException extends JdbiException {
public ElementTypeNotFoundException(String string, Throwable throwable) {
super(string, throwable);
}
public ElementTypeNotFoundException(Throwable cause) {
super(cause);
}
public ElementTypeNotFoundException(String message) {
super(message) ;
}
}
|
[
"bloriot97@gmail.com"
] |
bloriot97@gmail.com
|
526f8dcb9f7fee7745ddbc95a89fb84b2163a0d3
|
df124bcb6e44e456cbcea43a25524fa05b349deb
|
/spring-framework-5.0.2.RELEASE-中文注释版/spring-web/src/main/java/org/springframework/web/server/ServerErrorException.java
|
f25cad188666794961017e6b4b7b60b05ee01c49
|
[
"Apache-2.0"
] |
permissive
|
wuzx13342/Spring5Chinese
|
6fe1e77e1ef9056cd089a8301ba83ef5293b5bb7
|
fa0bde538ce148566dc1e94ee0546e23e42be8ef
|
refs/heads/master
| 2023-01-07T18:56:32.202885
| 2020-10-27T03:32:15
| 2020-10-27T03:32:15
| 267,821,783
| 6
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,989
|
java
|
/*
* Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* 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.web.server;
import org.springframework.core.MethodParameter;
import org.springframework.http.HttpStatus;
import org.springframework.lang.Nullable;
/**
* Exception for errors that fit response status 500 (bad request) for use in
* Spring Web applications. The exception provides additional fields (e.g.
* an optional {@link MethodParameter} if related to the error).
*
* @author Rossen Stoyanchev
* @since 5.0
*/
@SuppressWarnings("serial")
public class ServerErrorException extends ResponseStatusException {
@Nullable
private final MethodParameter parameter;
/**
* Constructor with an explanation only.
*/
public ServerErrorException(String reason) {
this(reason, null, null);
}
/**
* Constructor for a 500 error linked to a specific {@code MethodParameter}.
*/
public ServerErrorException(String reason, MethodParameter parameter) {
this(reason, parameter, null);
}
/**
* Constructor for a 500 error with a root cause.
*/
public ServerErrorException(String reason, @Nullable MethodParameter parameter, @Nullable Throwable cause) {
super(HttpStatus.INTERNAL_SERVER_ERROR, reason, cause);
this.parameter = parameter;
}
/**
* Return the {@code MethodParameter} associated with this error, if any.
*/
@Nullable
public MethodParameter getMethodParameter() {
return this.parameter;
}
}
|
[
"wuzhixiang@51xf.cn"
] |
wuzhixiang@51xf.cn
|
88a7784baeed897fa249681d60dc72ed49a29f91
|
f321db1ace514d08219cc9ba5089ebcfff13c87a
|
/generated-tests/random/tests/s1044/29_image/evosuite-tests/org/apache/commons/imaging/common/mylzw/MyLzwDecompressor_ESTest.java
|
91bc376c59750c51475d1a5988e4123f66af8d03
|
[] |
no_license
|
sealuzh/dynamic-performance-replication
|
01bd512bde9d591ea9afa326968b35123aec6d78
|
f89b4dd1143de282cd590311f0315f59c9c7143a
|
refs/heads/master
| 2021-07-12T06:09:46.990436
| 2020-06-05T09:44:56
| 2020-06-05T09:44:56
| 146,285,168
| 2
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,047
|
java
|
/*
* This file was automatically generated by EvoSuite
* Sun Mar 24 17:04:16 GMT 2019
*/
package org.apache.commons.imaging.common.mylzw;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.shaded.org.mockito.Mockito.*;
import static org.evosuite.runtime.EvoAssertions.*;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteOrder;
import org.apache.commons.imaging.common.mylzw.MyLzwDecompressor;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.evosuite.runtime.ViolatedAssumptionAnswer;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true, useJEE = true)
public class MyLzwDecompressor_ESTest extends MyLzwDecompressor_ESTest_scaffolding {
@Test(timeout = 4000)
public void test0() throws Throwable {
ByteOrder byteOrder0 = ByteOrder.BIG_ENDIAN;
MyLzwDecompressor.Listener myLzwDecompressor_Listener0 = mock(MyLzwDecompressor.Listener.class, new ViolatedAssumptionAnswer());
MyLzwDecompressor myLzwDecompressor0 = null;
try {
myLzwDecompressor0 = new MyLzwDecompressor(4177, byteOrder0, myLzwDecompressor_Listener0);
fail("Expecting exception: ArrayIndexOutOfBoundsException");
} catch(ArrayIndexOutOfBoundsException e) {
//
// no message in exception (getMessage() returned null)
//
}
}
@Test(timeout = 4000)
public void test1() throws Throwable {
ByteOrder byteOrder0 = ByteOrder.nativeOrder();
MyLzwDecompressor myLzwDecompressor0 = null;
try {
myLzwDecompressor0 = new MyLzwDecompressor(4051, byteOrder0);
fail("Expecting exception: ArrayIndexOutOfBoundsException");
} catch(ArrayIndexOutOfBoundsException e) {
//
// no message in exception (getMessage() returned null)
//
}
}
@Test(timeout = 4000)
public void test2() throws Throwable {
ByteOrder byteOrder0 = ByteOrder.BIG_ENDIAN;
MyLzwDecompressor myLzwDecompressor0 = new MyLzwDecompressor(8, byteOrder0);
byte[] byteArray0 = new byte[9];
myLzwDecompressor0.setTiffLZWMode();
ByteArrayInputStream byteArrayInputStream0 = new ByteArrayInputStream(byteArray0, 8, 146);
byte[] byteArray1 = myLzwDecompressor0.decompress(byteArrayInputStream0, (byte)100);
assertEquals(0, byteArray1.length);
}
@Test(timeout = 4000)
public void test3() throws Throwable {
ByteOrder byteOrder0 = ByteOrder.nativeOrder();
MyLzwDecompressor.Listener myLzwDecompressor_Listener0 = mock(MyLzwDecompressor.Listener.class, new ViolatedAssumptionAnswer());
byte[] byteArray0 = new byte[3];
ByteArrayInputStream byteArrayInputStream0 = new ByteArrayInputStream(byteArray0);
MyLzwDecompressor myLzwDecompressor0 = new MyLzwDecompressor((byte)31, byteOrder0, myLzwDecompressor_Listener0);
try {
myLzwDecompressor0.decompress(byteArrayInputStream0, 4096);
fail("Expecting exception: IOException");
} catch(IOException e) {
//
// Bad Code: -1 codes: -2147483646 code_size: 32, table: 4096
//
verifyException("org.apache.commons.imaging.common.mylzw.MyLzwDecompressor", e);
}
}
@Test(timeout = 4000)
public void test4() throws Throwable {
ByteOrder byteOrder0 = ByteOrder.BIG_ENDIAN;
MyLzwDecompressor myLzwDecompressor0 = new MyLzwDecompressor((-4822), byteOrder0, (MyLzwDecompressor.Listener) null);
try {
myLzwDecompressor0.decompress((InputStream) null, 2);
fail("Expecting exception: IOException");
} catch(IOException e) {
//
// Bad Code: -1 codes: 1026 code_size: -4821, table: 4096
//
verifyException("org.apache.commons.imaging.common.mylzw.MyLzwDecompressor", e);
}
}
}
|
[
"granogiovanni90@gmail.com"
] |
granogiovanni90@gmail.com
|
62721427fd4c20e19b51dcc5e2de10fa405a3449
|
e977c424543422f49a25695665eb85bfc0700784
|
/benchmark/icse15/888322/buggy-version/lucene/java/branches/flex_1458/src/java/org/apache/lucene/search/PrefixTermsEnum.java
|
25e30e83d406887de72e1483f3a4284333cd9d72
|
[] |
no_license
|
amir9979/pattern-detector-experiment
|
17fcb8934cef379fb96002450d11fac62e002dd3
|
db67691e536e1550245e76d7d1c8dced181df496
|
refs/heads/master
| 2022-02-18T10:24:32.235975
| 2019-09-13T15:42:55
| 2019-09-13T15:42:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,831
|
java
|
package org.apache.lucene.search;
/**
* 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 java.io.IOException;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.Term;
import org.apache.lucene.index.TermRef;
/**
* Subclass of FilteredTermEnum for enumerating all terms that match the
* specified prefix filter term.
* <p>Term enumerations are always ordered by
* {@link #getTermComparator}. Each term in the enumeration is
* greater than all that precede it.</p>
*/
public class PrefixTermsEnum extends FilteredTermsEnum {
private final Term prefix;
private final TermRef prefixRef;
public PrefixTermsEnum(IndexReader reader, Term prefix) throws IOException {
super(reader, prefix.field());
this.prefix = prefix;
setInitialSeekTerm(prefixRef = new TermRef(prefix.text()));
}
protected Term getPrefixTerm() {
return prefix;
}
@Override
protected AcceptStatus accept(TermRef term) {
if (term.startsWith(prefixRef)) {
return AcceptStatus.YES;
} else {
return AcceptStatus.END;
}
}
}
|
[
"durieuxthomas@hotmail.com"
] |
durieuxthomas@hotmail.com
|
68081093439d939b51d197eb14dde4487eec07ab
|
1098d8ca29f1f094f78458bf75294edc6f784c1e
|
/converter/src/main/java/com/wildbeeslabs/sensiblemetrics/diffy/converter/service/ArrayConverter.java
|
b394fae4c17df3adc855b09e006aebf5408b1e1c
|
[
"MIT"
] |
permissive
|
AlexRogalskiy/Diffy
|
8e8879a89dbd18ff58ebfbf7e5e663bf5bc0f849
|
42a03c14d639663387e7b796dca41cb1300ad36b
|
refs/heads/master
| 2022-12-08T13:35:07.874614
| 2019-12-24T19:58:16
| 2019-12-24T19:58:16
| 168,051,241
| 1
| 2
|
MIT
| 2022-11-16T12:21:54
| 2019-01-28T22:52:50
|
Java
|
UTF-8
|
Java
| false
| false
| 3,225
|
java
|
/*
* The MIT License
*
* Copyright 2019 WildBees Labs, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package com.wildbeeslabs.sensiblemetrics.diffy.converter.service;
import com.wildbeeslabs.sensiblemetrics.diffy.converter.exception.ConvertOperationException;
import com.wildbeeslabs.sensiblemetrics.diffy.converter.interfaces.Converter;
import java.util.HashMap;
import java.util.Map;
/**
* Array {@link AbstractConverter} implementation
*/
@SuppressWarnings("unchecked")
public class ArrayConverter extends AbstractConverter<Object, Object> {
private static final Map<Class, Converter<Object, Object>> CNV = new HashMap<>();
@Override
public Object valueOf(final Object value) {
if (!CNV.containsKey(value.getClass())) {
throw new ConvertOperationException(String.format("ERROR: cannot convert type: {%s} to: {%s}", value.getClass().getName(), Boolean.class.getName()));
}
return CNV.get(value.getClass()).convert(value);
}
@Override
public boolean canConvert(final Class<Object> clazz) {
return CNV.containsKey(clazz);
}
static {
CNV.put(String[].class,
(Converter) o -> {
final Object[] old = (Object[]) o;
final String[] n = new String[old.length];
for (int i = 0; i < old.length; i++) {
n[i] = String.valueOf(old[i]);
}
return n;
}
);
CNV.put(Integer[].class,
(Converter) o -> {
final Object[] old = (Object[]) o;
final Integer[] n = new Integer[old.length];
for (int i = 0; i < old.length; i++) {
n[i] = Integer.parseInt(String.valueOf(old[i]));
}
return n;
});
CNV.put(int[].class,
(Converter) o -> {
final Object[] old = (Object[]) o;
final int[] n = new int[old.length];
for (int i = 0; i < old.length; i++) {
n[i] = Integer.parseInt(String.valueOf(old[i]));
}
return n;
});
}
}
|
[
"alexander.rogalsky@yandex.ru"
] |
alexander.rogalsky@yandex.ru
|
aca4f21aec43c5aade1056bd9c83451ac51c46bd
|
7cab112a472df702c9b616c760b8940d50324550
|
/java-game-server-master/jetclient/src/main/java/org/menacheri/jetclient/util/SimpleCredentials.java
|
c9701b1be37e58e21884f4ec4f402a31cd1f5bb5
|
[
"MIT"
] |
permissive
|
luckychenheng/server_demo
|
86d31c939fd895c7576156b643ce89354e102209
|
97bdcb1f6cd614fd360cfed800c479fbdb695cd3
|
refs/heads/master
| 2020-05-15T02:59:07.396818
| 2019-05-09T10:30:47
| 2019-05-09T10:30:47
| 182,059,222
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 556
|
java
|
package org.menacheri.jetclient.util;
import org.jboss.netty.buffer.ChannelBuffer;
public class SimpleCredentials implements Credentials
{
private final String username;
private final String password;
public SimpleCredentials(ChannelBuffer buffer)
{
this.username = NettyUtils.readString(buffer);
this.password = NettyUtils.readString(buffer);
}
@Override
public String getUsername()
{
return username;
}
@Override
public String getPassword()
{
return password;
}
@Override
public String toString()
{
return username;
}
}
|
[
"seemac@seedeMacBook-Pro.local"
] |
seemac@seedeMacBook-Pro.local
|
01fe2c886ac7b4771657e9ebbdf497467c24ace6
|
2636b9ce828a7862d93ca19521bfec89e8530a2c
|
/turms-server-common/src/main/java/im/turms/server/common/access/client/dto/request/group/DeleteGroupRequestOuterClass.java
|
fe36be47dea874e81002ca0346fb3a0e1b14393c
|
[
"LicenseRef-scancode-proprietary-license",
"Apache-2.0",
"AGPL-3.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"SSPL-1.0"
] |
permissive
|
turms-im/turms
|
f1ccbc78175a176b3f5edf34b2b2badc901dcece
|
33bef70a5737c23adea72c6ba150b851bee6bfb6
|
refs/heads/develop
| 2023-09-01T17:02:03.053493
| 2023-08-23T13:53:21
| 2023-08-23T14:04:20
| 191,290,973
| 1,506
| 217
|
Apache-2.0
| 2023-04-25T02:38:02
| 2019-06-11T04:01:39
|
Java
|
UTF-8
|
Java
| false
| false
| 2,657
|
java
|
/*
* Copyright (C) 2019 The Turms Project
* https://github.com/turms-im/turms
*
* 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 im.turms.server.common.access.client.dto.request.group;
public final class DeleteGroupRequestOuterClass {
private DeleteGroupRequestOuterClass() {
}
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor internal_static_im_turms_proto_DeleteGroupRequest_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_im_turms_proto_DeleteGroupRequest_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
static {
java.lang.String[] descriptorData = {"\n(request/group/delete_group_request.pro"
+ "to\022\016im.turms.proto\"&\n\022DeleteGroupRequest"
+ "\022\020\n\010group_id\030\001 \001(\003B=\n6im.turms.server.co"
+ "mmon.access.client.dto.request.groupP\001\272\002"
+ "\000b\006proto3"};
descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[]{});
internal_static_im_turms_proto_DeleteGroupRequest_descriptor =
getDescriptor().getMessageTypes()
.get(0);
internal_static_im_turms_proto_DeleteGroupRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_im_turms_proto_DeleteGroupRequest_descriptor,
new java.lang.String[]{"GroupId",});
}
// @@protoc_insertion_point(outer_class_scope)
}
|
[
"eurekajameschen@gmail.com"
] |
eurekajameschen@gmail.com
|
0204c1217ed5a8c6a5405bfd3f00bb2f07150137
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/5/5_3351ddd551bfde900b5161ab9e86781c0a67dc9b/KeyStoreResolver/5_3351ddd551bfde900b5161ab9e86781c0a67dc9b_KeyStoreResolver_t.java
|
f821f5dc9acd2b403dcda1f28442b460b4430ad4
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 4,060
|
java
|
/*
* Copyright 1999-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.xml.security.keys.storage.implementations;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.cert.X509Certificate;
import java.util.Enumeration;
import java.util.Iterator;
import org.apache.xml.security.keys.storage.StorageResolverException;
import org.apache.xml.security.keys.storage.StorageResolverSpi;
/**
* Makes the Certificates from a JAVA {@link KeyStore} object available to the
* {@link org.apache.xml.security.keys.storage.StorageResolver}.
*
* @author $Author$
*/
public class KeyStoreResolver extends StorageResolverSpi {
/** Field _keyStore */
KeyStore _keyStore = null;
/** Field _iterator */
Iterator _iterator = null;
/**
* Constructor KeyStoreResolver
*
* @param keyStore is the keystore which contains the Certificates
* @throws StorageResolverException
*/
public KeyStoreResolver(KeyStore keyStore) throws StorageResolverException {
this._keyStore = keyStore;
this._iterator = new KeyStoreIterator(this._keyStore);
}
/** @inheritDoc */
public Iterator getIterator() {
return this._iterator;
}
/**
* Class KeyStoreIterator
*
* @author $Author$
* @version $Revision$
*/
static class KeyStoreIterator implements Iterator {
/** Field _keyStore */
KeyStore _keyStore = null;
/** Field _aliases */
Enumeration _aliases = null;
/**
* Constructor KeyStoreIterator
*
* @param keyStore
* @throws StorageResolverException
*/
public KeyStoreIterator(KeyStore keyStore)
throws StorageResolverException {
try {
this._keyStore = keyStore;
this._aliases = this._keyStore.aliases();
} catch (KeyStoreException ex) {
throw new StorageResolverException("generic.EmptyMessage", ex);
}
}
/** @inheritDoc */
public boolean hasNext() {
return this._aliases.hasMoreElements();
}
/** @inheritDoc */
public Object next() {
String alias = (String) this._aliases.nextElement();
try {
return this._keyStore.getCertificate(alias);
} catch (KeyStoreException ex) {
return null;
}
}
/**
* Method remove
*
*/
public void remove() {
throw new UnsupportedOperationException(
"Can't remove keys from KeyStore");
}
}
/**
* Method main
*
* @param unused
* @throws Exception
*/
public static void main(String unused[]) throws Exception {
KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());
ks.load(
new java.io.FileInputStream(
"data/org/apache/xml/security/samples/input/keystore.jks"),
"xmlsecurity".toCharArray());
KeyStoreResolver krs = new KeyStoreResolver(ks);
for (Iterator i = krs.getIterator(); i.hasNext(); ) {
X509Certificate cert = (X509Certificate) i.next();
byte[] ski =
org.apache.xml.security.keys.content.x509.XMLX509SKI
.getSKIBytesFromCert(cert);
System.out.println(org.apache.xml.security.utils.Base64.encode(ski));
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
5bc89dd07aaecb31d8b67730a6cc9b54b09e9625
|
15b080d6544a457515a62d409a1405ad5e222094
|
/src/main/java/com/glory/process/model/product/ProcessPicture.java
|
1c5f17d78242008e94048b149ab3b321b86f5dc8
|
[] |
no_license
|
chendingying/gongyiping
|
5301eae3bf84cdb0de133c0e3e53cd7773bf5a61
|
ed714f4003f6e4c84b6ae5382f52ec7186b4bd99
|
refs/heads/master
| 2020-04-12T13:14:01.785653
| 2018-12-20T02:40:15
| 2018-12-20T02:40:15
| 162,516,713
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,262
|
java
|
package com.glory.process.model.product;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* Created by CDZ on 2018/12/1.
*/
@Table(name = "product_process")
public class ProcessPicture {
@Id
private Integer id;
@Column(name = "process_id")
private Integer processId;
private String type;
private String path;
private byte[] text;
private String version;
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public byte[] getText() {
return text;
}
public void setText(byte[] text) {
this.text = text;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getProcessId() {
return processId;
}
public void setProcessId(Integer processId) {
this.processId = processId;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
}
|
[
"chen@dingying.com"
] |
chen@dingying.com
|
84c4ea8f44afc21cb83ffff35542ab02f90c545e
|
95daabc077a4d0645aa810d7753edf80c661d3bb
|
/hermes-metaserver/src/main/java/com/ctrip/hermes/metaserver/processor/QueryOffsetResultCommandProcessor.java
|
45f324d104845630f2bda9457b9aea21c203eb6a
|
[
"Apache-2.0"
] |
permissive
|
waterif/hermes
|
de145fd9b57d1d2224233a7e5be1dbd8d4c84bbb
|
a41a7accf3102aee921f21fa846196c4b019e005
|
refs/heads/master
| 2021-05-02T02:05:10.122424
| 2018-02-09T08:30:07
| 2018-02-09T08:30:07
| 120,878,937
| 0
| 0
| null | 2018-02-09T08:28:34
| 2018-02-09T08:28:34
| null |
UTF-8
|
Java
| false
| false
| 1,019
|
java
|
package com.ctrip.hermes.metaserver.processor;
import java.util.Arrays;
import java.util.List;
import org.unidal.lookup.annotation.Inject;
import com.ctrip.hermes.core.transport.command.CommandType;
import com.ctrip.hermes.core.transport.command.QueryOffsetResultCommand;
import com.ctrip.hermes.core.transport.command.processor.CommandProcessor;
import com.ctrip.hermes.core.transport.command.processor.CommandProcessorContext;
import com.ctrip.hermes.metaserver.monitor.QueryOffsetResultMonitor;
/**
* @author Leo Liang(liangjinhua@gmail.com)
*
*/
public class QueryOffsetResultCommandProcessor implements CommandProcessor {
@Inject
private QueryOffsetResultMonitor m_queryOffsetResultMonitor;
@Override
public List<CommandType> commandTypes() {
return Arrays.asList(CommandType.RESULT_QUERY_OFFSET);
}
@Override
public void process(CommandProcessorContext ctx) {
QueryOffsetResultCommand cmd = (QueryOffsetResultCommand) ctx.getCommand();
m_queryOffsetResultMonitor.resultReceived(cmd);
}
}
|
[
"liangjinhua@gmail.com"
] |
liangjinhua@gmail.com
|
df7c93cb5d0fe09adcbf6dc935277b54148a87a6
|
c885ef92397be9d54b87741f01557f61d3f794f3
|
/tests-without-trycatch/Mockito-2/org.mockito.internal.util.Timer/BBC-F0-opt-20/29/org/mockito/internal/util/Timer_ESTest.java
|
78fd5a5f476ac0f4af2fc5eac8f1d2849105a737
|
[
"CC-BY-4.0",
"MIT"
] |
permissive
|
pderakhshanfar/EMSE-BBC-experiment
|
f60ac5f7664dd9a85f755a00a57ec12c7551e8c6
|
fea1a92c2e7ba7080b8529e2052259c9b697bbda
|
refs/heads/main
| 2022-11-25T00:39:58.983828
| 2022-04-12T16:04:26
| 2022-04-12T16:04:26
| 309,335,889
| 0
| 1
| null | 2021-11-05T11:18:43
| 2020-11-02T10:30:38
| null |
UTF-8
|
Java
| false
| false
| 1,754
|
java
|
/*
* This file was automatically generated by EvoSuite
* Sat Oct 23 22:37:57 GMT 2021
*/
package org.mockito.internal.util;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.evosuite.runtime.System;
import org.junit.runner.RunWith;
import org.mockito.internal.util.Timer;
@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true)
public class Timer_ESTest extends Timer_ESTest_scaffolding {
@Test(timeout = 4000)
public void test0() throws Throwable {
Timer timer0 = new Timer(0L);
timer0.start();
System.setCurrentTimeMillis((-3361L));
boolean boolean0 = timer0.isCounting();
assertTrue(boolean0);
}
@Test(timeout = 4000)
public void test1() throws Throwable {
System.setCurrentTimeMillis((-3361L));
Timer timer0 = new Timer(0L);
timer0.start();
boolean boolean0 = timer0.isCounting();
assertTrue(boolean0);
}
@Test(timeout = 4000)
public void test2() throws Throwable {
Timer timer0 = new Timer((-38L));
timer0.start();
boolean boolean0 = timer0.isCounting();
assertFalse(boolean0);
}
@Test(timeout = 4000)
public void test3() throws Throwable {
Timer timer0 = new Timer(0L);
// Undeclared exception!
// try {
timer0.isCounting();
// fail("Expecting exception: AssertionError");
// } catch(AssertionError e) {
// //
// // no message in exception (getMessage() returned null)
// //
// }
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
fe665549621c34d46b54286ef092ca1d3e38e9a1
|
3171702d22be1ea7c5a84b09aa9e89a8b035ceae
|
/no.hal.learning/no.hal.learning.exercise/model.ui/src/no/hal/learning/exercise/views/plot/PlotData.java
|
b32c5fa02ffec381bb2846648d9dff9b15c44992
|
[] |
no_license
|
hallvard/jexercise
|
345b728a84b89e43632eb95d825e9d86ea4cec58
|
0e6a911ea31d8f7f7dc0f288122214e239d9d5eb
|
refs/heads/master
| 2021-05-25T09:19:30.421067
| 2020-12-14T15:57:44
| 2020-12-14T15:57:44
| 1,203,162
| 5
| 17
| null | 2020-10-13T10:16:03
| 2010-12-28T15:06:53
|
Java
|
UTF-8
|
Java
| false
| false
| 3,664
|
java
|
package no.hal.learning.exercise.views.plot;
import java.sql.Date;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.Resource;
import org.eclipse.swt.widgets.Display;
public class PlotData<O, E> {
O owner;
ITimestampProvider<E> timestampProvider;
IValueProvider<E, Number> valueProvider;
List<Point<E>> points;
String name;
int colorId;
String dashes;
PlotPath<E> plotPath;
Object devicePath;
Image lineImage;
void setModelData(O key, Collection<E> ts, String name, ITimestampProvider<E> timestampProvider, IValueProvider<E, Number> valueProvider) {
this.owner = key;
this.name = name;
this.timestampProvider = timestampProvider;
this.valueProvider = valueProvider;
this.points = new ArrayList<PlotData.Point<E>>(ts != null ? ts.size() : 10);
int valueNum = 0;
if (ts != null) {
for (E t : ts) {
float value = valueNum;
if (valueProvider != null) {
try {
value = valueProvider.getValue(t).floatValue();
} catch (Exception e) {
continue;
}
}
if (timestampProvider != null && value >= 0.0) {
this.points.add(new Point<E>(t, valueProvider.getName(), timestampProvider.getTimestamp(t), value));
valueNum++;
}
}
}
}
void setViewData(int colorId, String dashes, PlotPath<E> plotPath) {
this.colorId = colorId;
this.dashes = dashes;
this.plotPath = (plotPath != null && plotPath.size() == 0 ? null : plotPath);
if (this.devicePath != null) {
if (this.devicePath instanceof Resource) {
Resource resource = (Resource) this.devicePath;
if (! resource.isDisposed()) {
resource.dispose();
}
}
this.devicePath = null;
}
}
void setDashes(GC gc) {
if (dashes == null || dashes.length() == 0) {
gc.setLineStyle(SWT.LINE_SOLID);
} else if (Character.isLetter(dashes.charAt(0))) {
try {
Integer lineStyle = (Integer) SWT.class.getField("LINE_" + dashes).get(null);
gc.setLineStyle(lineStyle);
} catch (Exception e) {
gc.setLineStyle(SWT.LINE_SOLID);
}
} else {
int[] dashArray = createDashArray(dashes);
gc.setLineStyle(SWT.LINE_CUSTOM);
gc.setLineDash(dashArray);
}
}
private int[] dashChars = { '_', 4, '-', 2, '.', 1, ' ', 2, '\t', 4 };
private int[] createDashArray(String dashes) {
int[] dashArray = new int[dashes.length()];
for (int i = 0; i < dashes.length(); i++) {
char c = dashes.charAt(i);
int d = 1;
for (int j = 0; j < dashChars.length; j += 2) {
if (dashChars[j] == c) {
d = dashChars[j + 1];
break;
}
}
dashArray[i] = d;
}
return dashArray;
}
void initPlotDataImage(Display display) {
lineImage = new Image(display, 64, 16);
GC gc = new GC(lineImage);
setDashes(gc);
gc.setForeground(display.getSystemColor(colorId));
gc.drawLine(0, 8, 64, 8);
gc.dispose();
}
public static class Point<E> implements Comparable<Point<E>>, IEventProvider<E> {
final E event;
final String name;
final long timestamp;
final float value;
public Point(E event, String name, long timestamp, float value) {
this.event = event;
this.name = name;
this.timestamp = timestamp;
this.value = value;
}
@Override
public String toString() {
return value + " " + name + " @ " + new Date(timestamp) + " : " + event;
}
@Override
public int compareTo(Point<E> other) {
if (timestamp < other.timestamp) return -1;
else if (timestamp > other.timestamp) return 1;
else return 0;
}
@Override
public E getEvent() {
return event;
}
}
}
|
[
"hal@idi.ntnu.no"
] |
hal@idi.ntnu.no
|
95a8714221241f45d51667a3977d69a67d2f7764
|
1b1a0920d4f36b1ee9c87dc5660ce87785a56f9e
|
/enderio-base/src/main/java/crazypants/enderio/base/filter/FilterHandler.java
|
87bce88c0721e6d9c87989b1b2e136b30d2fe0e5
|
[
"Unlicense",
"CC-BY-NC-3.0",
"CC0-1.0",
"CC-BY-3.0",
"LicenseRef-scancode-public-domain"
] |
permissive
|
TartaricAcid/EnderIO
|
cb75fcfcdd250fcdf06910b3f206decb01179109
|
ed87c5ee49694a4bc49ad6bed3c4651389543ba2
|
refs/heads/master
| 2021-01-21T10:19:34.091970
| 2018-10-11T04:53:38
| 2018-10-11T04:53:38
| 144,875,177
| 0
| 0
|
Unlicense
| 2018-08-15T16:09:51
| 2018-08-15T16:09:51
| null |
UTF-8
|
Java
| false
| false
| 1,727
|
java
|
package crazypants.enderio.base.filter;
import java.lang.reflect.Field;
import java.util.Set;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import com.enderio.core.common.NBTAction;
import crazypants.enderio.base.filter.item.IItemFilter;
import info.loenwind.autosave.Registry;
import info.loenwind.autosave.exceptions.NoHandlerFoundException;
import info.loenwind.autosave.handlers.IHandler;
import net.minecraft.nbt.NBTTagCompound;
public class FilterHandler implements IHandler<IFilter> {
static {
Registry.GLOBAL_REGISTRY.register(new FilterHandler());
}
@Override
public boolean canHandle(Class<?> clazz) {
return IItemFilter.class.isAssignableFrom(clazz);
}
@Override
public boolean store(@Nonnull Registry registry, @Nonnull Set<NBTAction> phase, @Nonnull NBTTagCompound nbt, @Nonnull String name, @Nonnull IFilter object)
throws IllegalArgumentException, IllegalAccessException, InstantiationException, NoHandlerFoundException {
NBTTagCompound root = new NBTTagCompound();
FilterRegistry.writeFilterToNbt(object, root);
nbt.setTag(name, root);
return true;
}
@Override
public IFilter read(@Nonnull Registry registry, @Nonnull Set<NBTAction> phase, @Nonnull NBTTagCompound nbt, @Nullable Field field, @Nonnull String name,
@Nullable IFilter object) throws IllegalArgumentException, IllegalAccessException, InstantiationException, NoHandlerFoundException {
if (object == null && !nbt.hasKey(name)) {
// Note: This will be called with no nbt when a fresh itemstack is placed---output should be null!
return object;
}
object = FilterRegistry.loadFilterFromNbt(nbt.getCompoundTag(name));
return object;
}
}
|
[
"epicsquid315@gmail.com"
] |
epicsquid315@gmail.com
|
f538ce72ce466a45c8c9180314334abbeddeaf20
|
70eee5ec333822adcd9f3dd02bb2140be8e756a7
|
/p249.java
|
39c755abfecf6ed03471a5286575a3f70b74a3fe
|
[
"LicenseRef-scancode-warranty-disclaimer"
] |
no_license
|
albertspahiu/Project-Euler-solutions
|
5dc37b840907ad4a96ccdddf35a9dc8b1381e9f0
|
12d2b33b22711bc1e57fb2dad4f194e4f92ab32c
|
refs/heads/master
| 2020-04-08T06:38:08.997965
| 2013-01-31T00:12:40
| 2013-01-31T00:12:40
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,453
|
java
|
/*
* Solution to Project Euler problem 249
* By Nayuki Minase
*
* http://nayuki.eigenstate.org/page/project-euler-solutions
* https://github.com/nayuki/Project-Euler-solutions
*/
public final class p249 implements EulerSolution {
public static void main(String[] args) {
System.out.println(new p249().run());
}
private static final int LIMIT = 5000;
private static final long MODULUS = 10000000000000000L;
public String run() {
// Use dynamic programming
boolean[] isPrime = Library.listPrimality(LIMIT * LIMIT / 2);
long[] numSubsets = new long[LIMIT * LIMIT / 2]; // numSubsets[i] is the number of subsets with sum i, mod 10^16
numSubsets[0] = 1;
int maxSum = 0; // Sum of all primes seen so far
for (int i = 0; i < LIMIT; i++) {
if (!isPrime[i])
continue;
maxSum += i;
for (int j = maxSum; j >= i; j--) {
// Optimization of modulo because we know 0 <= numSubsets[j] + numSubsets[j - i] < 2 * MODULUS
long temp = numSubsets[j] + numSubsets[j - i];
if (temp < MODULUS)
numSubsets[j] = temp;
else
numSubsets[j] = temp - MODULUS;
}
}
long sum = 0;
for (int i = 0; i < numSubsets.length; i++) {
if (isPrime[i]) {
// Optimization of modulo because we know 0 <= sum + numSubsets[i] < 2 * MODULUS
long temp = sum + numSubsets[i];
if (temp < MODULUS)
sum = temp;
else
sum = temp - MODULUS;
}
}
return Long.toString(sum);
}
}
|
[
"nayuki@eigenstate.org"
] |
nayuki@eigenstate.org
|
88a1b71150fc6ddf32a5e8af0af56c493e12c190
|
60ffee4de5e1853aaa3735d0e5e7d73c1608672c
|
/src/Leetcode/easy/LC349_IntersectionArrays.java
|
f1fdc9f4a6bf43a85951ef60a60f08b14c800eb6
|
[] |
no_license
|
roppel/CodingInterviewProblems
|
d903e23de6f67c9e64ba19ea65af63684878fc03
|
4e63ef308e380f0e1644da3473c383ad95bdfbe4
|
refs/heads/master
| 2023-01-31T18:06:09.428696
| 2020-12-13T19:29:54
| 2020-12-13T19:29:54
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 737
|
java
|
package Leetcode.easy;
import java.util.HashSet;
public class LC349_IntersectionArrays {
public static void main(String[] args) {
}
public int[] intersection(int[] nums1, int[] nums2) {
HashSet<Integer> result= new HashSet<>();
HashSet<Integer> set = new HashSet<>();
for(int i =0;i< nums1.length;i++){
set.add(nums1[i]);
}
for(int i =0;i< nums2.length;i++){
if(set.contains(nums2[i])){
result.add(nums2[i]);
}
}
int[] finalResult = new int[result.size()];
int i=0;
for(Integer res : result){
finalResult[i] = res;
i++;
}
return finalResult;
}
}
|
[
"michaelperera32@gmail.com"
] |
michaelperera32@gmail.com
|
259dbf13fe6d6657274fb436f9ce5ffdef323e96
|
33c7eefe39e6cb1cd845f8836be38c901bd65e7b
|
/src/test/java/buildingmaintenance/service/BuildingManagerServiceTest.java
|
31d322653fe5a4af7e8553987febbca98281e7fb
|
[] |
no_license
|
nkosy/buildingmanteinance
|
a61911c28291403bad24b1d463c2b339b23c0010
|
ba6d9e0961e3c04f106079f1cf38b9c885197f98
|
refs/heads/master
| 2021-01-20T22:25:41.047843
| 2015-10-02T14:49:14
| 2015-10-02T14:49:14
| 34,987,495
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,560
|
java
|
package buildingmaintenance.service;
import buildingmaintenance.BuildingmaintenanceApplication;
import buildingmaintenance.conf.factory.BuildingManagerFactory;
import buildingmaintenance.domain.Building;
import buildingmaintenance.domain.BuildingManager;
import buildingmaintenance.repository.BuildingManagerRepository;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;
import java.util.ArrayList;
import java.util.List;
/**
* Created by nkosi on 2015/05/21.
*/
@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes= BuildingmaintenanceApplication.class)
@WebAppConfiguration
public class BuildingManagerServiceTest {
@Autowired
private BuildingManagerService service;
@Autowired
private BuildingManagerRepository repository;
@Before
public void setUp() throws Exception {
//This is just me balancing shit out
boolean found = false;
for(BuildingManager man: repository.findAll())
if(man != null)
found = true;
if(found == false) {
List<Building> buildings = new ArrayList<Building>();
BuildingManager buildingManager = BuildingManagerFactory
.createBuildingManager("lil Wayne", buildings);
repository.save(buildingManager);
repository.save(buildingManager);
}
}
@Test
public void testGetAllManagers() throws Exception {
// List<BuildingManager> managerList = service.getAllManagers();
// Assert.assertTrue(managerList.size() >= 2);
}
@Test
public void testGetManagerByID() throws Exception {
// BuildingManager manager = service.getManagerByID((long)1);
// Assert.assertEquals("lil Wayne", manager.getManager_name());
}
@Test
public void testGetManagerByName() throws Exception {
// BuildingManager manager = service.getManagerByName("lil Wayne");
// Assert.assertNotNull(manager);
}
@After
public void tearDown() throws Exception {
//This is just me balancing shit out.
for(BuildingManager man: repository.findAll())
if(man.getManager_id() > 2)
repository.delete(man);
}
}
|
[
"you@example.com"
] |
you@example.com
|
5f05cce2e2e6c1f46eac2ca785f81946b138c477
|
3fd59906ff88c88a0b11cb6b409cd4d7023b917b
|
/src/main/java/com/hd/domain/ImageObj.java
|
034e17db96df16dc6c8d48b73dee85c4e7840be6
|
[] |
no_license
|
qirmii01/home_decoration
|
9763e7e90a1f674c71a9d81f88f4b7a9bdb23296
|
92724a4de6cb4dfa522da2124b3ec1c76193c397
|
refs/heads/master
| 2021-04-12T09:59:20.130801
| 2018-05-08T22:59:49
| 2018-05-08T22:59:49
| 126,672,169
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 814
|
java
|
package com.hd.domain;
public class ImageObj {
private String src;
/** layui富文本 **/
private String title;
/** layer photos */
//图片名
private String alt;
//图片id
private String pid;
//缩略图地址
private String thumb;
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getSrc() {
return src;
}
public void setSrc(String src) {
this.src = src;
}
public String getAlt() {
return alt;
}
public void setAlt(String alt) {
this.alt = alt;
}
public String getpid() {
return pid;
}
public void setpid(String pid) {
this.pid = pid;
}
public String getThumb() {
return thumb;
}
public void setThumb(String thumb) {
this.thumb = thumb;
}
}
|
[
"Administrator@windows10.microdone.cn"
] |
Administrator@windows10.microdone.cn
|
2116e4aadddca47639f77cdcb8c97c8e332faff5
|
f843788f75b1ff8d5ff6d24fd7137be1b05d1aa6
|
/src/ac/biu/nlp/nlp/datasets/trec/jaxb_generated/fr/TEXT.java
|
9a69e6b73fce96aa314bc1b0970b2e38c279956e
|
[] |
no_license
|
oferbr/biu-infrastructure
|
fe830d02defc7931f9be239402931cfbf223c05e
|
051096636b705ffe7756f144f58c384a56a7fcc3
|
refs/heads/master
| 2021-01-19T08:12:33.484302
| 2013-02-05T16:08:58
| 2013-02-05T16:08:58
| 6,156,024
| 2
| 0
| null | 2012-11-18T09:42:20
| 2012-10-10T11:02:33
|
Java
|
UTF-8
|
Java
| false
| false
| 2,942
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.2-7
// 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: 2011.03.28 at 01:00:59 PM GMT+02:00
//
package ac.biu.nlp.nlp.datasets.trec.jaxb_generated.fr;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlMixed;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <choice maxOccurs="unbounded" minOccurs="0">
* <element ref="{}ITAG"/>
* <element ref="{}T2"/>
* <element ref="{}T4"/>
* <element ref="{}FTAG"/>
* </choice>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
@XmlRootElement(name = "TEXT")
public class TEXT {
@XmlElementRefs({
@XmlElementRef(name = "FTAG", type = FTAG.class),
@XmlElementRef(name = "T4", type = JAXBElement.class),
@XmlElementRef(name = "T2", type = JAXBElement.class),
@XmlElementRef(name = "ITAG", type = ITAG.class)
})
@XmlMixed
protected List<Object> content;
/**
* Gets the value of the content property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
* {@link JAXBElement }{@code <}{@link String }{@code >}
* {@link JAXBElement }{@code <}{@link String }{@code >}
* {@link ITAG }
* {@link FTAG }
*
*
*/
public List<Object> getContent() {
if (content == null) {
content = new ArrayList<Object>();
}
return this.content;
}
}
|
[
"oferbr@gmail.com"
] |
oferbr@gmail.com
|
77ceb5ce716cb42803ac304014b49ebadecc99a7
|
ebdcaff90c72bf9bb7871574b25602ec22e45c35
|
/modules/adwords_axis/src/main/java/com/google/api/ads/adwords/axis/v201802/rm/MutateMembersOperation.java
|
c2fb47b4f1c7887b495ebc020cc30d1316a15884
|
[
"Apache-2.0"
] |
permissive
|
ColleenKeegan/googleads-java-lib
|
3c25ea93740b3abceb52bb0534aff66388d8abd1
|
3d38daadf66e5d9c3db220559f099fd5c5b19e70
|
refs/heads/master
| 2023-04-06T16:16:51.690975
| 2018-11-15T20:50:26
| 2018-11-15T20:50:26
| 158,986,306
| 1
| 0
|
Apache-2.0
| 2023-04-04T01:42:56
| 2018-11-25T00:56:39
|
Java
|
UTF-8
|
Java
| false
| false
| 5,839
|
java
|
// Copyright 2018 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
//
// 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.
/**
* MutateMembersOperation.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.adwords.axis.v201802.rm;
/**
* Operation representing a request to add or remove members from
* a user list.
* The following {@link Operator}s are supported: ADD and
* REMOVE. The SET operator
* is not supported.
*/
public class MutateMembersOperation extends com.google.api.ads.adwords.axis.v201802.cm.Operation implements java.io.Serializable {
/* The mutate members operand to operate on.
* <span class="constraint Required">This field is
* required and should not be {@code null}.</span> */
private com.google.api.ads.adwords.axis.v201802.rm.MutateMembersOperand operand;
public MutateMembersOperation() {
}
public MutateMembersOperation(
com.google.api.ads.adwords.axis.v201802.cm.Operator operator,
java.lang.String operationType,
com.google.api.ads.adwords.axis.v201802.rm.MutateMembersOperand operand) {
super(
operator,
operationType);
this.operand = operand;
}
@Override
public String toString() {
return com.google.common.base.MoreObjects.toStringHelper(this.getClass())
.omitNullValues()
.add("operand", getOperand())
.add("operationType", getOperationType())
.add("operator", getOperator())
.toString();
}
/**
* Gets the operand value for this MutateMembersOperation.
*
* @return operand * The mutate members operand to operate on.
* <span class="constraint Required">This field is
* required and should not be {@code null}.</span>
*/
public com.google.api.ads.adwords.axis.v201802.rm.MutateMembersOperand getOperand() {
return operand;
}
/**
* Sets the operand value for this MutateMembersOperation.
*
* @param operand * The mutate members operand to operate on.
* <span class="constraint Required">This field is
* required and should not be {@code null}.</span>
*/
public void setOperand(com.google.api.ads.adwords.axis.v201802.rm.MutateMembersOperand operand) {
this.operand = operand;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof MutateMembersOperation)) return false;
MutateMembersOperation other = (MutateMembersOperation) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj) &&
((this.operand==null && other.getOperand()==null) ||
(this.operand!=null &&
this.operand.equals(other.getOperand())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
if (getOperand() != null) {
_hashCode += getOperand().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(MutateMembersOperation.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/rm/v201802", "MutateMembersOperation"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("operand");
elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/rm/v201802", "operand"));
elemField.setXmlType(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/rm/v201802", "MutateMembersOperand"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
|
[
"jradcliff@users.noreply.github.com"
] |
jradcliff@users.noreply.github.com
|
ed8481f8c91e73294a873d17973995737519e8f0
|
18c70f2a4f73a9db9975280a545066c9e4d9898e
|
/mirror-composite/composite-api/src/main/java/com/aspire/mirror/composite/service/template/payload/ZabbixTemplateDetailResponse.java
|
f1cbc87358448dd70adbf63f9a19d27256c7cbab
|
[] |
no_license
|
iu28igvc9o0/cmdb_aspire
|
1fe5d8607fdacc436b8a733f0ea44446f431dfa8
|
793eb6344c4468fe4c61c230df51fc44f7d8357b
|
refs/heads/master
| 2023-08-11T03:54:45.820508
| 2021-09-18T01:47:25
| 2021-09-18T01:47:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 305
|
java
|
package com.aspire.mirror.composite.service.template.payload;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
@Data
public class ZabbixTemplateDetailResponse {
@JsonProperty("templateid")
private Integer templateId;
@JsonProperty("name")
private String templateName;
}
|
[
"jiangxuwen7515@163.com"
] |
jiangxuwen7515@163.com
|
78f67caf58028ab388c1766f7da5e99f8a3d91d8
|
79a33795eed2bbf921e426fdaaf285ed4a38a68f
|
/geinihua/app/src/main/java/com/example/apple/geinihua/activity/UserBaseInfoActivity.java
|
5dca34a0705b722bf53e4216c3749acff35cfca8
|
[] |
no_license
|
bluelzx/miaobaitiao
|
d809c6cf778852998513f0ae73624567d0798ca1
|
b8be0d5256cb029fef8784069dae7704bb16ad85
|
refs/heads/master
| 2021-01-20T01:51:21.518301
| 2017-04-20T02:53:42
| 2017-04-20T02:53:42
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,504
|
java
|
package com.example.apple.geinihua.activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.KeyEvent;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.RadioButton;
import android.widget.TextView;
import android.widget.Toast;
import com.example.apple.geinihua.R;
import com.example.apple.geinihua.dao.DaoSession;
import com.example.apple.geinihua.dao.User;
import com.example.apple.geinihua.dao.UserDao;
import com.example.apple.geinihua.utils.StatusBarUtil;
public class UserBaseInfoActivity extends AppCompatActivity implements View.OnClickListener {
private MyApp myApp;
private DaoSession daoSession;
private User user;
private UserDao userDao;
private ImageView back;
private TextView name,card_type;
private EditText person_name,person_tell,person_email,person_describ;
private RadioButton boy,gril;
private Button button;
private SharedPreferences sharedPreferences;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_user_base_info);
initView();
}
@Override
public void onStart() {
super.onStart();
StatusBarUtil.setColor(this, Color.parseColor("#607d8b"), 0);
}
private void initView(){
myApp = MyApp.getApp();
user = MyApp.user;
myApp.addToList(this);
daoSession = myApp.getDaoSession(this);
userDao = daoSession.getUserDao();
sharedPreferences = super.getSharedPreferences("says", Context.MODE_PRIVATE);
back = (ImageView) findViewById(R.id.back);
card_type = (TextView) findViewById(R.id.card_type);
name = (TextView) findViewById(R.id.name);
person_name = (EditText) findViewById(R.id.person_name);
person_tell = (EditText) findViewById(R.id.person_tell);
person_email = (EditText) findViewById(R.id.person_email);
person_describ = (EditText) findViewById(R.id.person_describ);
boy = (RadioButton) findViewById(R.id.boy);
gril = (RadioButton) findViewById(R.id.gril);
button = (Button) findViewById(R.id.save);
person_name.setText(user.getU_name());
person_tell.setText(user.getU_phone());
person_email.setText(user.getU_email());
person_describ.setText(getSay());
String sex = user.getU_sex();
if ("男".equals(sex)){
boy.setChecked(true);
}else {
gril.setChecked(true);
}
card_type.setText("个人信息");
name.setText(user.getU_name());
back.setOnClickListener(this);
button.setOnClickListener(this);
}
//保存签名
private void saveSay(String str){
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putString("person_say",str).commit();
}
//获得签名
private String getSay(){
return sharedPreferences.getString("person_say","");
}
@Override
public void onClick(View v) {
int id = v.getId();
switch (id){
case R.id.save:
saveEdit();
break;
case R.id.back:
finish();
break;
}
}
private String u_name,u_tell,u_emial,u_describ,sex;
private void saveEdit(){
u_name = person_name.getText().toString().trim();
u_tell = person_tell.getText().toString().trim();
u_emial = person_email.getText().toString().trim();
u_describ = person_describ.getText().toString();
if (boy.isChecked()){
sex = "男";
}else {
sex = "女";
}
user.setU_name(u_name);
user.setU_sex(sex);
user.setU_email(u_emial);
user.setU_phone(u_tell);
saveSay(u_describ);
MyApp.user = user;
userDao.update(user);
name.setText(u_name);
toast("保存成功");
}
@Override
public boolean onKeyUp(int keyCode, KeyEvent event) {
if (keyCode== KeyEvent.KEYCODE_BACK){
finish();
}
return super.onKeyUp(keyCode, event);
}
private void toast(String str){
Toast.makeText(this, str, Toast.LENGTH_SHORT).show();
}
}
|
[
"mexicande@hotmail.com"
] |
mexicande@hotmail.com
|
2eaa01388034ff97cefbc1a56be6474336d653ab
|
40d844c1c780cf3618979626282cf59be833907f
|
/src/testcases/CWE369_Divide_by_Zero/s03/CWE369_Divide_by_Zero__int_Property_divide_81_base.java
|
af3cdefd6f6356ea0622e6b1384c69bdfb5f6cd7
|
[] |
no_license
|
rubengomez97/juliet
|
f9566de7be198921113658f904b521b6bca4d262
|
13debb7a1cc801977b9371b8cc1a313cd1de3a0e
|
refs/heads/master
| 2023-06-02T00:37:24.532638
| 2021-06-23T17:22:22
| 2021-06-23T17:22:22
| 379,676,259
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 828
|
java
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE369_Divide_by_Zero__int_Property_divide_81_base.java
Label Definition File: CWE369_Divide_by_Zero__int.label.xml
Template File: sources-sinks-81_base.tmpl.java
*/
/*
* @description
* CWE: 369 Divide by zero
* BadSource: Property Read data from a system property
* GoodSource: A hardcoded non-zero, non-min, non-max, even number
* Sinks: divide
* GoodSink: Check for zero before dividing
* BadSink : Dividing by a value that may be zero
* Flow Variant: 81 Data flow: data passed in a parameter to an abstract method
*
* */
package testcases.CWE369_Divide_by_Zero.s03;
import testcasesupport.*;
import javax.servlet.http.*;
public abstract class CWE369_Divide_by_Zero__int_Property_divide_81_base
{
public abstract void action(int data ) throws Throwable;
}
|
[
"you@example.com"
] |
you@example.com
|
84f51842bc0a616be8b89a8818c9ffdc81e265dc
|
2d666e65b8fce172523b4814d34bb88fdccf4a92
|
/sample2/ReturnObj2.java
|
2fe0bc917af26a54da6cc9c2e966b6f4b284841d
|
[] |
no_license
|
agnelrayan/java
|
b95c89a31f075edfa8c4b4b3ff3c1734da89119a
|
3f6ba7b48320957e0f930e37f910cd041e4121ae
|
refs/heads/master
| 2021-01-01T16:46:57.881527
| 2018-06-08T11:46:20
| 2018-06-08T11:46:20
| 97,918,738
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 217
|
java
|
package com.expertzlab.sample2;
/**
* Created by agnel on 5/7/18.
*/
public class ReturnObj2 {
public static void main(String[] args) {
}
public void test(){
// return new Object[][];
}
}
|
[
"agnelrayan@gmail.com"
] |
agnelrayan@gmail.com
|
99478a1683b55b6e7f303b6c5637cc491d97de7b
|
51394231ea039236457c73dbcdb5997d9cf2d6a1
|
/commons-vfs2/src/main/java/org/apache/commons/vfs2/AllFileSelector.java
|
ad2fb8d044666b4eb33da1bcad82a6c9fb7d8c42
|
[
"Apache-2.0"
] |
permissive
|
wso2/wso2-commons-vfs
|
9c43b32ecdd572c459df32e6a5a7fbfeb1f8459c
|
94238737553d356f6612331e9c1508af04c1f965
|
refs/heads/2.2.x
| 2023-08-21T16:37:18.991696
| 2023-08-17T06:37:01
| 2023-08-17T06:37:01
| 17,473,456
| 40
| 72
|
Apache-2.0
| 2023-08-17T06:35:14
| 2014-03-06T10:01:42
|
Java
|
UTF-8
|
Java
| false
| false
| 1,584
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.vfs2;
/**
* A {@link FileSelector} that selects everything.
*/
public class AllFileSelector implements FileSelector {
/**
* Determines if a file or folder should be selected.
*
* @param fileInfo The file selection information.
* @return true if the file should be selected, false otherwise.
*/
@Override
public boolean includeFile(final FileSelectInfo fileInfo) {
return true;
}
/**
* Determines whether a folder should be traversed.
*
* @param fileInfo The file selection information.
* @return true if descendants should be traversed, false otherwise.
*/
@Override
public boolean traverseDescendents(final FileSelectInfo fileInfo) {
return true;
}
}
|
[
"nandika@wso2.com"
] |
nandika@wso2.com
|
cebc7923cc5b30052167123a35a28e22956cab3f
|
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
|
/aliyun-java-sdk-smartag/src/main/java/com/aliyuncs/smartag/model/v20180313/ModifySagLanResponse.java
|
080dbcf9010a18419e0f56b7a4fe52f6f1cf9e44
|
[
"Apache-2.0"
] |
permissive
|
aliyun/aliyun-openapi-java-sdk
|
a263fa08e261f12d45586d1b3ad8a6609bba0e91
|
e19239808ad2298d32dda77db29a6d809e4f7add
|
refs/heads/master
| 2023-09-03T12:28:09.765286
| 2023-09-01T09:03:00
| 2023-09-01T09:03:00
| 39,555,898
| 1,542
| 1,317
|
NOASSERTION
| 2023-09-14T07:27:05
| 2015-07-23T08:41:13
|
Java
|
UTF-8
|
Java
| false
| false
| 1,294
|
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.smartag.model.v20180313;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.smartag.transform.v20180313.ModifySagLanResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class ModifySagLanResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public ModifySagLanResponse getInstance(UnmarshallerContext context) {
return ModifySagLanResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
d421a4b27d3c6dc2657475628b24f48d422a616d
|
643d1d9269a8eb87924ac142aac7c890cac4f405
|
/src/main/java/ncis/cpt/opr/req/slaRprt/vo/SlaRprtSearchVo.java
|
f62d4eb6aec3ee158b38bb779b3e7be111d30a0e
|
[] |
no_license
|
jobbs/example
|
e090c1d9233e76e6a928801473e9f2a7c83ca725
|
874be10b39c02081ce2b899b91d1ba7851c4ff23
|
refs/heads/master
| 2020-04-07T08:32:16.566777
| 2018-11-19T12:34:07
| 2018-11-19T12:34:07
| 158,218,294
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,401
|
java
|
/**
* copyright 2016 NCIS Cloud Portal System
* @description
* <pre></pre>
*
* @filename SlaRprtSearchVo.java
*
* @author 이화영
* @lastmodifier 이화영
* @created 2016. 10. 4.
* @lastmodified 2016. 10. 4.
*
* @history
* -----------------------------------------------------------
* Date author ver Description
* -----------------------------------------------------------
* 2016. 10. 4. 이화영 v1.0 최초생성
*
*/
package ncis.cpt.opr.req.slaRprt.vo;
import ncis.cmn.vo.CommonSearchVo;
/**
* @author 이화영
*
*/
public class SlaRprtSearchVo extends CommonSearchVo {
private String searchRegion;
private String institutionNm;
private String institutionId;
private String searchrSrcReqTyCd;
private String searchStartRegDt;
private String searchEndRegDt;
private String searchTime;
private String rsrcReqTyCd;
private String searchrSrcReqClCd;
public String getSearchRegion() {
return searchRegion;
}
public void setSearchRegion(String searchRegion) {
this.searchRegion = searchRegion;
}
public String getSearchrSrcReqTyCd() {
return searchrSrcReqTyCd;
}
public void setSearchrSrcReqTyCd(String searchrSrcReqTyCd) {
this.searchrSrcReqTyCd = searchrSrcReqTyCd;
}
public String getSearchStartRegDt() {
return searchStartRegDt;
}
public void setSearchStartRegDt(String searchStartRegDt) {
this.searchStartRegDt = searchStartRegDt;
}
public String getSearchEndRegDt() {
return searchEndRegDt;
}
public void setSearchEndRegDt(String searchEndRegDt) {
this.searchEndRegDt = searchEndRegDt;
}
public String getSearchTime() {
return searchTime;
}
public void setSearchTime(String searchTime) {
this.searchTime = searchTime;
}
public String getRsrcReqTyCd() {
return rsrcReqTyCd;
}
public void setRsrcReqTyCd(String rsrcReqTyCd) {
this.rsrcReqTyCd = rsrcReqTyCd;
}
public String getInstitutionNm() {
return institutionNm;
}
public void setInstitutionNm(String institutionNm) {
this.institutionNm = institutionNm;
}
public String getInstitutionId() {
return institutionId;
}
public void setInstitutionId(String institutionId) {
this.institutionId = institutionId;
}
public String getSearchrSrcReqClCd() {
return searchrSrcReqClCd;
}
public void setSearchrSrcReqClCd(String searchrSrcReqClCd) {
this.searchrSrcReqClCd = searchrSrcReqClCd;
}
}
|
[
"jobbs@selim.co.kr"
] |
jobbs@selim.co.kr
|
86242cfc0606f229d5505044907daad5b8eb20f1
|
ee3e30a6d5990432657214fedd81b2083c26ab28
|
/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/codesystems/GoalPriority.java
|
dfc4a0e33a567cfbf3a50dc5246f2718b3dce7a3
|
[
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] |
permissive
|
herimakil/hapi-fhir
|
588938b328e3c83809617b674ff25903c1541bab
|
15cc76600069af8f3d7419575d4cfb9e4b613db0
|
refs/heads/master
| 2021-01-19T20:43:57.911661
| 2017-04-14T15:27:37
| 2017-04-14T15:27:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,400
|
java
|
package org.hl7.fhir.dstu3.model.codesystems;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
// Generated on Sat, Mar 4, 2017 06:58-0500 for FHIR v1.9.0
import org.hl7.fhir.exceptions.FHIRException;
public enum GoalPriority {
/**
* Indicates that the goal is of considerable importance and should be a primary focus of care delivery.
*/
HIGHPRIORITY,
/**
* Indicates that the goal has a reasonable degree of importance and that concrete action should be taken towards the goal. Attainment is not as critical as high-priority goals.
*/
MEDIUMPRIORITY,
/**
* The goal is desirable but is not sufficiently important to devote significant resources to. Achievement of the goal may be sought when incidental to achieving other goals.
*/
LOWPRIORITY,
/**
* added to help the parsers
*/
NULL;
public static GoalPriority fromCode(String codeString) throws FHIRException {
if (codeString == null || "".equals(codeString))
return null;
if ("high-priority".equals(codeString))
return HIGHPRIORITY;
if ("medium-priority".equals(codeString))
return MEDIUMPRIORITY;
if ("low-priority".equals(codeString))
return LOWPRIORITY;
throw new FHIRException("Unknown GoalPriority code '"+codeString+"'");
}
public String toCode() {
switch (this) {
case HIGHPRIORITY: return "high-priority";
case MEDIUMPRIORITY: return "medium-priority";
case LOWPRIORITY: return "low-priority";
default: return "?";
}
}
public String getSystem() {
return "http://hl7.org/fhir/goal-priority";
}
public String getDefinition() {
switch (this) {
case HIGHPRIORITY: return "Indicates that the goal is of considerable importance and should be a primary focus of care delivery.";
case MEDIUMPRIORITY: return "Indicates that the goal has a reasonable degree of importance and that concrete action should be taken towards the goal. Attainment is not as critical as high-priority goals.";
case LOWPRIORITY: return "The goal is desirable but is not sufficiently important to devote significant resources to. Achievement of the goal may be sought when incidental to achieving other goals.";
default: return "?";
}
}
public String getDisplay() {
switch (this) {
case HIGHPRIORITY: return "High Priority";
case MEDIUMPRIORITY: return "Medium Priority";
case LOWPRIORITY: return "Low Priority";
default: return "?";
}
}
}
|
[
"jamesagnew@gmail.com"
] |
jamesagnew@gmail.com
|
509b2d8bced9828f7f465beaef35afbfdb87ffa2
|
ee7884b9d25af3714e517a75a09016c3aec55709
|
/src/day11/JavaMath.java
|
4800b87d3fa58d7405df634503f3db25f5ea50d3
|
[] |
no_license
|
umedgit/java-course
|
ad79142c8bbb0bd6be3ea0fc958eecfdd4998f79
|
37643155c12b1beccc1a808b4abf0cdb2295b30c
|
refs/heads/master
| 2022-10-15T13:18:15.500709
| 2020-06-12T15:18:57
| 2020-06-12T15:18:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,190
|
java
|
package day11;
public class JavaMath {
/*
Math.abs(a)
It will return the Absolute value of the given value.
Math.max(a, b)
It returns the Largest of two values.
Math.min(a, b)
It is used to return the Smallest of two values.
Math.round(a)
It is used to round of the decimal numbers to the nearest value.
Math.sqrt(a)
It is used to return the square root of a number.
Math.pow(a, b)
It returns the value of first argument raised to the power to second argument.
Math.ceil(a) 3.1 => 4
It is used to find the smallest integer value that is greater than or equal to the argument
or mathematical integer.
Math.floor(a) 3.7 => 3
It is used to find the largest integer value which is less than
or equal to the argument and is equal to the mathematical integer of a double value.
Math.random()
0.0 <= R <= 1.0
It returns a double value with a positive sign,
greater than or equal to 0.0 and less than 1.0.
*/
public static void main(String[] args) {
// Math.abs
System.out.println( "abs of - 10: " + Math.abs( -10 ) );
// Math.max(a, b)
System.out.println( "\nmax of (5, 11): " + Math.max( 5, 11 ) );
// Math.min(a, b)
System.out.println( "min of (5, 15): " + Math.min( 5, 15 ) );
// Math.round(a)
System.out.println( "\nround of 3.1: " + Math.round( 3.1 ) );
System.out.println( "round of 3.5: " + Math.round( 3.5 ) );
// Math.ceil(a)
System.out.println( "\nceil of 3.1: " + Math.ceil( 3.1 ) );
System.out.println( "ceil of 3.5: " + Math.ceil( 3.5 ) );
// Math.floor(a)
System.out.println( "\nfloor of 3.1: " + Math.floor( 3.1 ) );
System.out.println( "floor of 3.5: " + Math.floor( 3.5 ) );
// Math.sqrt(a)
System.out.println( "\nsqrt of 4: " + Math.sqrt( 4 ) );
System.out.println( "sqrt of 16: " + Math.sqrt( 16 ) );
// Math.pow
System.out.println( "\npow of (3, 2): " + Math.pow( 3, 2 ) );
System.out.println( "\npow of (2, 4): " + Math.pow( 2, 4 ) );
// Math.random(); gives random number between 0.0 and 1.0
System.out.println( "\nrandom: " + Math.random() );
}
}
|
[
"info@techno.study"
] |
info@techno.study
|
7e0889d95391766a2566ed077ea940036d602013
|
cf202e855aa6ec2c29bcbfb96255622447bd4956
|
/src/main/java/com/webapp/cybersecurityforum/service/OneTimePasswordService.java
|
30dcc6b536df8de1238cc845817abb9d09f3ec9b
|
[] |
no_license
|
IvanPostu/cybersecurity-forum
|
25337a8f3263edb807d6dc6834877e8e0db3a340
|
862783d3ce6bfb31593836f6103089c35f51be52
|
refs/heads/master
| 2022-11-16T00:46:48.200585
| 2020-06-28T15:08:15
| 2020-06-28T15:08:15
| 262,344,509
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 410
|
java
|
package com.webapp.cybersecurityforum.service;
import java.util.Random;
import org.springframework.stereotype.Service;
@Service
public class OneTimePasswordService {
public String generateOneTimePassword(){
Random random = new Random();
StringBuilder result = new StringBuilder();
for(int i=0; i<6; i++){
result.append(random.nextInt(10));
}
return result.toString();
}
}
|
[
"ipostu20000127@gmail.com"
] |
ipostu20000127@gmail.com
|
ba4231468853f3653ab9179617af1c2d9151eaa9
|
13c2d3db2d49c40c74c2e6420a9cd89377f1c934
|
/program_data/JavaProgramData/2/997.java
|
4923ac5878bca0a4afdfb88b2c091306a494118c
|
[
"MIT"
] |
permissive
|
qiuchili/ggnn_graph_classification
|
c2090fefe11f8bf650e734442eb96996a54dc112
|
291ff02404555511b94a4f477c6974ebd62dcf44
|
refs/heads/master
| 2021-10-18T14:54:26.154367
| 2018-10-21T23:34:14
| 2018-10-21T23:34:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,382
|
java
|
public class chushu
{
public int num;
public String s = new String(new char[30]);
public chushu next;
}
package <missing>;
public class GlobalMembers
{
public static int[] a = new int[26];
public static int n;
public static int max;
public static int hao;
public static chushu create()
{
int j = 0;
int q;
int i = 0;
int k = 0;
chushu head;
chushu p1;
chushu p2;
//C++ TO JAVA CONVERTER TODO TASK: The memory management function 'malloc' has no equivalent in Java:
p1 = (chushu)malloc(len);
String tempVar = ConsoleInput.scanfRead();
if (tempVar != null)
{
p1.num = Integer.parseInt(tempVar);
}
String tempVar2 = ConsoleInput.scanfRead(" ");
if (tempVar2 != null)
{
p1.s = tempVar2.charAt(0);
}
for (i = 0;p1.s.charAt(i) != '\0';i++)
{
j = p1.s.charAt(i) - 65;
a[j] = a[j] + 1;
}
head = p1;
p2 = p1;
while (k < n - 1)
{
k++;
p2 = p1;
//C++ TO JAVA CONVERTER TODO TASK: The memory management function 'malloc' has no equivalent in Java:
p1 = (chushu)malloc(len);
String tempVar3 = ConsoleInput.scanfRead();
if (tempVar3 != null)
{
p1.num = Integer.parseInt(tempVar3);
}
String tempVar4 = ConsoleInput.scanfRead(" ");
if (tempVar4 != null)
{
p1.s = tempVar4.charAt(0);
}
for (i = 0;p1.s.charAt(i) != '\0';i++)
{
j = p1.s.charAt(i) - 65;
a[j] = a[j] + 1;
}
p2.next = p1;
}
p2 = p1;
p2.next = null;
return (head);
}
/*void print(struct chushu *head)
{
struct chushu *p;
p=head;
while(p!=NULL)
{printf("%d\n",p->num);
p=p->next;}
}*/
public static void search(chushu head)
{
int i;
chushu p;
p = head;
while (p.next != null)
{
for (i = 0;p.s.charAt(i) != '\0';i++)
{
if (hao + 65 == p.s.charAt(i))
{
System.out.printf("%d\n",p.num);
}
}
p = p.next;
}
for (i = 0;p.s.charAt(i) != '\0';i++)
{
if (hao + 65 == p.s.charAt(i))
{
System.out.printf("%d\n",p.num);
}
}
}
public static void Main()
{
int i;
chushu p;
String tempVar = ConsoleInput.scanfRead();
if (tempVar != null)
{
n = Integer.parseInt(tempVar);
}
p = create();
max = 0;
//print(p);
for (i = 0;i < 26;i++)
{
if (a[i] > max)
{
max = a[i];
hao = i;
}
}
System.out.printf("%c\n",hao + 65);
System.out.printf("%d\n",max);
search(p);
}
}
|
[
"y.yu@open.ac.uk"
] |
y.yu@open.ac.uk
|
d413dce3848ceb784ee68c0dbdd5df23ac234808
|
c0744fca880b4c88a3f84fd7dde6e580539d8b09
|
/JPF/src/jpf/JPF.java
|
4c2ed67602a471a759802344e44bea384f206ede
|
[] |
no_license
|
YThibos/JavaEEProjects
|
c2907d18c45a11988d4c5c33db07e5197b41728d
|
96de0fb88b60ebed0dc6db9ad8a0242f3320f7a5
|
refs/heads/master
| 2016-08-12T09:33:04.297757
| 2016-02-17T11:25:09
| 2016-02-17T11:25:09
| 51,911,293
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 610
|
java
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package jpf;
/**
*
* @author yannick.thibos
*/
public class JPF {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
long rekNr = 737524091952L;
int deeltal = (int)rekNr / 100;
int rest = (int)(deeltal % 97);
byte controle = (byte)(rekNr % 100);
System.out.println(rest == controle);
}
}
|
[
"yannick.thibos@gmail.com"
] |
yannick.thibos@gmail.com
|
474a0325efc35b7814d85367f1984ab3e259d978
|
6be39fc2c882d0b9269f1530e0650fd3717df493
|
/weixin反编译/sources/com/tencent/mm/protocal/c/cap.java
|
28f7943b65a4cc0ac8c4fca3544807a8f89fd1a1
|
[] |
no_license
|
sir-deng/res
|
f1819af90b366e8326bf23d1b2f1074dfe33848f
|
3cf9b044e1f4744350e5e89648d27247c9dc9877
|
refs/heads/master
| 2022-06-11T21:54:36.725180
| 2020-05-07T06:03:23
| 2020-05-07T06:03:23
| 155,177,067
| 5
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,904
|
java
|
package com.tencent.mm.protocal.c;
import com.tencent.mm.bp.a;
import com.tencent.mm.bp.b;
public final class cap extends a {
public b vPr;
public long xgC;
public int xgV;
protected final int a(int i, Object... objArr) {
int R;
if (i == 0) {
e.a.a.c.a aVar = (e.a.a.c.a) objArr[0];
if (this.vPr == null) {
throw new e.a.a.b("Not all required fields were included: VoiceData");
}
aVar.S(1, this.xgC);
if (this.vPr != null) {
aVar.b(2, this.vPr);
}
aVar.fX(3, this.xgV);
return 0;
} else if (i == 1) {
R = e.a.a.a.R(1, this.xgC) + 0;
if (this.vPr != null) {
R += e.a.a.a.a(2, this.vPr);
}
return R + e.a.a.a.fU(3, this.xgV);
} else if (i == 2) {
e.a.a.a.a aVar2 = new e.a.a.a.a((byte[]) objArr[0], unknownTagHandler);
for (R = a.a(aVar2); R > 0; R = a.a(aVar2)) {
if (!super.a(aVar2, this, R)) {
aVar2.cKx();
}
}
if (this.vPr != null) {
return 0;
}
throw new e.a.a.b("Not all required fields were included: VoiceData");
} else if (i != 3) {
return -1;
} else {
e.a.a.a.a aVar3 = (e.a.a.a.a) objArr[0];
cap cap = (cap) objArr[1];
switch (((Integer) objArr[2]).intValue()) {
case 1:
cap.xgC = aVar3.AEQ.rA();
return 0;
case 2:
cap.vPr = aVar3.cKw();
return 0;
case 3:
cap.xgV = aVar3.AEQ.rz();
return 0;
default:
return -1;
}
}
}
}
|
[
"denghailong@vargo.com.cn"
] |
denghailong@vargo.com.cn
|
0a5d5c5ebb5185916154f2a087291a4e7e9a4d73
|
c8eea055d28a8db91f17dacce95a63a25409a875
|
/liferay/liferay/work/com.liferay.social.bookmarks.analytics-1.0.2/org/apache/jsp/dynamic_005finclude/init_jsp.java
|
6e1ab56cf02142b8466403e34c5eb4839e29a183
|
[
"MIT"
] |
permissive
|
victorlaerte/liferay-forms-demo
|
0c539560800c4832fd685b6c9181e1343afa6eae
|
9d3010ce7ea9b1ff9e4c3d46aaf481f0945744a7
|
refs/heads/master
| 2020-04-05T13:56:15.042923
| 2018-11-09T19:28:41
| 2018-11-09T19:28:41
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,958
|
java
|
package org.apache.jsp.dynamic_005finclude;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class init_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List<String> _jspx_dependants;
private org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector;
public java.util.List<String> getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
_jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector");
out.write('\n');
out.write('\n');
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
else throw new ServletException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
|
[
"paulo.cruz@liferay.com"
] |
paulo.cruz@liferay.com
|
d14c12841aedf1d68933255ce38c24c2175f48ae
|
17e8438486cb3e3073966ca2c14956d3ba9209ea
|
/dso/branches/lock-jmx/code/base/dso-l1/src/com/tc/object/applicator/TCURL.java
|
5e99c0aeb6a084aaa2f26f8730599ee8d52da4a5
|
[] |
no_license
|
sirinath/Terracotta
|
fedfc2c4f0f06c990f94b8b6c3b9c93293334345
|
00a7662b9cf530dfdb43f2dd821fa559e998c892
|
refs/heads/master
| 2021-01-23T05:41:52.414211
| 2015-07-02T15:21:54
| 2015-07-02T15:21:54
| 38,613,711
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 391
|
java
|
/*
* All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
* notice. All rights reserved.
*/
package com.tc.object.applicator;
public interface TCURL {
public void __tc_set_logical(String protocol, String host, int port, String authority, String userInfo, String path,
String query, String ref);
}
|
[
"asi@7fc7bbf3-cf45-46d4-be06-341739edd864"
] |
asi@7fc7bbf3-cf45-46d4-be06-341739edd864
|
e315ebb952e76e985b6dd1a355f2a9f7de759f87
|
28bff920143b5d0052fbf6199c5645327673bea1
|
/src/main/java/com/sun/xml/internal/ws/api/pipe/Engine.java
|
214ca77246b30c3dc69eaf880989620441b997e3
|
[] |
no_license
|
zhangpanqin/fly-jdk8
|
24fd419e1defbf51e96fe9752d3a5e4292e2672b
|
d3ea0773c63eaea61668f812d04cdea1024a3d42
|
refs/heads/master
| 2023-03-05T22:41:21.783129
| 2021-02-21T03:20:58
| 2021-02-21T03:20:58
| 272,603,433
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,145
|
java
|
/*
* Copyright (c) 1997, 2012, 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.
*/
package com.sun.xml.internal.ws.api.pipe;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.atomic.AtomicInteger;
import com.sun.xml.internal.ws.api.message.Packet;
import com.sun.xml.internal.ws.api.server.Container;
import com.sun.xml.internal.ws.api.server.ContainerResolver;
/**
* Collection of {@link Fiber}s.
* Owns an {@link Executor} to run them.
*
* @author Kohsuke Kawaguchi
* @author Jitendra Kotamraju
*/
public class Engine {
private volatile Executor threadPool;
public final String id;
private final Container container;
String getId() { return id; }
Container getContainer() { return container; }
Executor getExecutor() { return threadPool; }
public Engine(String id, Executor threadPool) {
this(id, ContainerResolver.getDefault().getContainer(), threadPool);
}
public Engine(String id, Container container, Executor threadPool) {
this(id, container);
this.threadPool = threadPool != null ? wrap(threadPool) : null;
}
public Engine(String id) {
this(id, ContainerResolver.getDefault().getContainer());
}
public Engine(String id, Container container) {
this.id = id;
this.container = container;
}
public void setExecutor(Executor threadPool) {
this.threadPool = threadPool != null ? wrap(threadPool) : null;
}
void addRunnable(Fiber fiber) {
if(threadPool==null) {
synchronized(this) {
threadPool = wrap(Executors.newCachedThreadPool(new DaemonThreadFactory()));
}
}
threadPool.execute(fiber);
}
private Executor wrap(Executor ex) {
return ContainerResolver.getDefault().wrapExecutor(container, ex);
}
/**
* Creates a new fiber in a suspended state.
*
* <p>
* To start the returned fiber, call {@link Fiber#start(Tube,Packet,Fiber.CompletionCallback)}.
* It will start executing the given {@link Tube} with the given {@link Packet}.
*
* @return new Fiber
*/
public Fiber createFiber() {
return new Fiber(this);
}
private static class DaemonThreadFactory implements ThreadFactory {
static final AtomicInteger poolNumber = new AtomicInteger(1);
final AtomicInteger threadNumber = new AtomicInteger(1);
final String namePrefix;
DaemonThreadFactory() {
namePrefix = "jaxws-engine-" + poolNumber.getAndIncrement() + "-thread-";
}
public Thread newThread(Runnable r) {
Thread t = new Thread(null, r, namePrefix + threadNumber.getAndIncrement(), 0);
if (!t.isDaemon()) {
t.setDaemon(true);
}
if (t.getPriority() != Thread.NORM_PRIORITY) {
t.setPriority(Thread.NORM_PRIORITY);
}
return t;
}
}
}
|
[
"zhangpanqin@outlook.com"
] |
zhangpanqin@outlook.com
|
b51b4d503ff17eb95fbdd7976ee9c54d427033e5
|
d985649d694169c8c35523a27476bf700f3ea77b
|
/src/test/java/io/syndesis/simulator/SimulatorClientConfig.java
|
22e33c54433c73116a6f8115f7fcba227cfd96c4
|
[
"Apache-2.0"
] |
permissive
|
christophd/simulator-google-sheets
|
30211b52585f5a6c10e842ca3514419e08dd8679
|
863e30bcdf1bb6144f875765685be255f9ad2d84
|
refs/heads/master
| 2020-04-16T19:20:55.200532
| 2019-01-15T15:34:12
| 2019-01-15T15:34:12
| 165,856,000
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,803
|
java
|
package io.syndesis.simulator;
import javax.net.ssl.SSLContext;
import java.io.IOException;
import java.security.KeyManagementException;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.cert.CertificateException;
import com.consol.citrus.dsl.endpoint.CitrusEndpoints;
import com.consol.citrus.http.client.HttpClient;
import com.consol.citrus.http.server.HttpServer;
import org.apache.http.conn.ssl.NoopHostnameVerifier;
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
import org.apache.http.conn.ssl.TrustSelfSignedStrategy;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.ssl.SSLContexts;
import org.springframework.beans.factory.BeanCreationException;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.io.ClassPathResource;
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
/**
* @author Christoph Deppisch
*/
@Configuration
@PropertySource("classpath:application.properties")
public class SimulatorClientConfig {
@Bean
public HttpServer appServer() {
return CitrusEndpoints.http()
.server()
.port(8081)
.autoStart(true)
.build();
}
@Bean
public HttpClient simulatorClient() {
return CitrusEndpoints.http()
.client()
.requestUrl("https://localhost:8443")
.requestFactory(sslRequestFactory())
.build();
}
@Bean
public HttpComponentsClientHttpRequestFactory sslRequestFactory() {
return new HttpComponentsClientHttpRequestFactory(httpClient());
}
@Bean
public org.apache.http.client.HttpClient httpClient() {
try {
SSLContext sslcontext = SSLContexts.custom()
.loadTrustMaterial(new ClassPathResource("googleapis.jks", GoogleSheetsSimulator.class).getFile(), "secret".toCharArray(),
new TrustSelfSignedStrategy())
.build();
SSLConnectionSocketFactory sslSocketFactory = new SSLConnectionSocketFactory(
sslcontext, NoopHostnameVerifier.INSTANCE);
return HttpClients.custom()
.setSSLSocketFactory(sslSocketFactory)
.setSSLHostnameVerifier(NoopHostnameVerifier.INSTANCE)
.build();
} catch (IOException | CertificateException | NoSuchAlgorithmException | KeyStoreException | KeyManagementException e) {
throw new BeanCreationException("Failed to create http client for ssl connection", e);
}
}
}
|
[
"cdeppisch@redhat.com"
] |
cdeppisch@redhat.com
|
0dfb1fb175a5e70c103b2e800e077f6ad73c4ebd
|
3a5985651d77a31437cfdac25e594087c27e93d6
|
/jbi-cdk/jbisupport/jbicomponent/component-common/src/java/com/sun/jbi/sample/component/common/AbstractMessageExchangeHandler.java
|
e2f6299d8ffc4cf327add1ed2192af957885652a
|
[] |
no_license
|
vitalif/openesb-components
|
a37d62133d81edb3fdc091abd5c1d72dbe2fc736
|
560910d2a1fdf31879e3d76825edf079f76812c7
|
refs/heads/master
| 2023-09-04T14:40:55.665415
| 2016-01-25T13:12:22
| 2016-01-25T13:12:33
| 48,222,841
| 0
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,840
|
java
|
/*
* AbstractMessageExchangeHandler.java
*
*/
package com.sun.jbi.sample.component.common;
import java.io.StringReader;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.jbi.messaging.DeliveryChannel;
import javax.jbi.messaging.ExchangeStatus;
import javax.jbi.messaging.Fault;
import javax.jbi.messaging.MessageExchange;
import javax.jbi.messaging.MessagingException;
import javax.xml.namespace.QName;
/**
* This class is an abstract implementation of the MessageExchangeHandler which
* provides the base implementation of the ME processing and provides hooks to
* extended classes to implement component specific processing.
*
* @author chikkala
*/
public abstract class AbstractMessageExchangeHandler implements MessageExchangeHandler {
public static String IN_MESSAGE = "in";
public static String OUT_MESSAGE = "out";
private MessageExchange mMessageExchange;
private ExchangeStatus mStatus;
/** Creates a new instance of AbstractMessageExchangeHandler */
protected AbstractMessageExchangeHandler() {
this.mMessageExchange = null;
}
protected abstract Logger getLogger();
protected abstract DeliveryChannel getDeliveryChannel();
protected abstract void validateMessageExchange() throws MessagingException;
protected abstract void processError(Exception ex);
protected abstract void processDone();
protected abstract void processMessage();
protected abstract void processFault(Fault fault);
public final MessageExchange getMessageExchange() {
return this.mMessageExchange;
}
public final void setMessageExchange(MessageExchange msgExchange) {
this.mMessageExchange = msgExchange;
}
public final ExchangeStatus getMessageExchangeStatus() {
if ( this.mStatus != null ) {
return this.mStatus;
} else if ( this.mMessageExchange != null ) {
return this.mMessageExchange.getStatus();
} else {
return null;
}
}
public final void setMessageExchangeStatus(ExchangeStatus status) {
this.mStatus = status;
}
protected void send() throws MessagingException {
this.getDeliveryChannel().send(this.mMessageExchange);
}
protected boolean sendSync(long timeout) throws MessagingException {
return this.getDeliveryChannel().sendSync(this.mMessageExchange, timeout);
}
protected void sendDone() throws MessagingException {
this.mMessageExchange.setStatus(ExchangeStatus.DONE);
this.getDeliveryChannel().send(this.mMessageExchange);
}
protected void sendError(Exception ex) throws MessagingException {
this.mMessageExchange.setError(ex);
this.getDeliveryChannel().send(this.mMessageExchange);
}
protected void sendFault(Exception ex, QName type, String name) throws MessagingException {
Fault fault = this.mMessageExchange.createFault();
if ( ex != null ) {
String xmlText = RuntimeHelper.getExceptionAsXmlText(ex);
fault.setContent(RuntimeHelper.createDOMSource(new StringReader(xmlText)));
}
this.mMessageExchange.setFault(fault);
this.getDeliveryChannel().send(this.mMessageExchange);
}
protected void processActive() {
Fault fault = this.getMessageExchange().getFault();
if ( fault != null ) {
processFault(fault);
} else {
processMessage();
}
}
/**
* implementation of the MessageExchangeHandler#processMessageExchange method.
*/
public void processMessageExchange(ExchangeStatus status, MessageExchange msgEx) {
getLogger().fine("MessageExchangeHandler.processMessageExchange:status: " + status );
this.setMessageExchangeStatus(status);
this.setMessageExchange(msgEx);
try {
validateMessageExchange();
} catch (MessagingException ex) {
getLogger().log(Level.FINE, "Invalid message exchange for processing ", ex);
if ( this.getMessageExchange() != null ) {
try {
sendError(ex);
} catch (MessagingException errEx) {
getLogger().log(Level.FINE, "Can not send invalid message exchange error", errEx);
}
}
return;
}
MessageExchange msgExchange = this.getMessageExchange();
if (ExchangeStatus.ACTIVE.equals(status) ) {
processActive();
} else if (ExchangeStatus.DONE.equals(status) ) {
processDone();
} else if (ExchangeStatus.ERROR.equals(status) ) {
processError(msgExchange.getError());
}
}
}
|
[
"bitbucket@bitbucket02.private.bitbucket.org"
] |
bitbucket@bitbucket02.private.bitbucket.org
|
6c4049815777a8f942e93967dfc5fda293f22c21
|
f3b9a444d2d513c670d216f7c700131410c47f92
|
/game_pay/src/com/gamecenter/common/packets/RechargeForTx_request.java
|
bfc26db35162134cd0e4724501418c97345e2f5e
|
[] |
no_license
|
kuainiao/GameAdminWeb
|
6a372087380e3c5ad98fc7cf4c8cbf9f01854e5d
|
f89327374d39c112421606e6a9fe9189b46c1a90
|
refs/heads/master
| 2020-06-03T22:15:02.944948
| 2017-12-22T06:20:38
| 2017-12-22T06:20:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,733
|
java
|
package com.gamecenter.common.packets;
import java.nio.ByteBuffer;
import com.alibaba.fastjson.JSONObject;
/**
* 腾讯 充值请求 Created by IntelliJ IDEA. User: Administrator Date: 12-9-6 Time: 下午2:22 To change this template use File | Settings | File Templates.
*/
public class RechargeForTx_request implements PacketBuildUp {
private String openid;
private String ts;
private String payitem;
private String token;
private String billno;
private String sigstr;
public ByteBuffer data() {
ByteBuffer tempData = ByteBuffer.allocate(500);
tempData.putInt(Integer.MIN_VALUE);
tempData.putInt(-1);
tempData.putInt(-1);
tempData.putShort((short) 0x5011);
// tempData.putShort((short) JSONObject.fromObject(this).toString().getBytes().length);
// tempData.put(JSONObject.fromObject(this).toString().getBytes());
// tempData.putInt(0, (int) (tempData.position() - 4));
// System.out.println("RechargeForTx_request:" + JSONObject.fromObject(this).toString());
tempData.flip();
return tempData;
}
public String getOpenid() {
return openid;
}
public void setOpenid(String openid) {
this.openid = openid;
}
public String getTs() {
return ts;
}
public void setTs(String ts) {
this.ts = ts;
}
public String getPayitem() {
return payitem;
}
public void setPayitem(String payitem) {
this.payitem = payitem;
}
public String getToken() {
return token;
}
public void setToken(String token) {
this.token = token;
}
public String getBillno() {
return billno;
}
public void setBillno(String billno) {
this.billno = billno;
}
public String getSigstr() {
return sigstr;
}
public void setSigstr(String sigstr) {
this.sigstr = sigstr;
}
}
|
[
"lyh@163.com"
] |
lyh@163.com
|
ae4e5093f5d07ff69e7a55be9e9a7d15e02e8afa
|
a280aa9ac69d3834dc00219e9a4ba07996dfb4dd
|
/regularexpress/home/weilaidb/work/java/je-6.4.25/test/com/sleepycat/je/rep/txn/PostLogCommitTest.java
|
3d84362f72e829b12a9f79eceab391303cbbdec9
|
[] |
no_license
|
weilaidb/PythonExample
|
b2cc6c514816a0e1bfb7c0cbd5045cf87bd28466
|
798bf1bdfdf7594f528788c4df02f79f0f7827ce
|
refs/heads/master
| 2021-01-12T13:56:19.346041
| 2017-07-22T16:30:33
| 2017-07-22T16:30:33
| 68,925,741
| 4
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,010
|
java
|
package com.sleepycat.je.rep.txn;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertSame;
import static org.junit.Assert.fail;
import java.io.File;
import java.io.IOException;
import org.junit.Test;
import com.sleepycat.je.Database;
import com.sleepycat.je.DatabaseConfig;
import com.sleepycat.je.DatabaseEntry;
import com.sleepycat.je.Durability;
import com.sleepycat.je.OperationStatus;
import com.sleepycat.je.Transaction;
import com.sleepycat.je.TransactionConfig;
import com.sleepycat.je.dbi.EnvironmentImpl;
import com.sleepycat.je.rep.InsufficientAcksException;
import com.sleepycat.je.rep.ReplicatedEnvironment;
import com.sleepycat.je.rep.impl.node.NameIdPair;
import com.sleepycat.je.rep.txn.MasterTxn.MasterTxnFactory;
import com.sleepycat.je.rep.utilint.RepTestUtils;
import com.sleepycat.je.rep.utilint.RepTestUtils.RepEnvInfo;
import com.sleepycat.util.test.SharedTestUtils;
import com.sleepycat.util.test.TestBase;
public class PostLogCommitTest extends TestBase
|
[
"weilaidb@localhost.localdomain"
] |
weilaidb@localhost.localdomain
|
44ac0328ea8cef1e6141cae5ec07966e1d6efe41
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/large-multiproject/project77/src/test/java/org/gradle/test/performance77_2/Test77_154.java
|
874c1aaf9db4013d426129f7b1fe6b28c3a0e2eb
|
[] |
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.performance77_2;
import static org.junit.Assert.*;
public class Test77_154 {
private final Production77_154 production = new Production77_154("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
2417e0a96d8bbf90d9386fccb34c7e1702009d7a
|
592eb3c39bbd5550c5406abdfd45f49c24e6fd6c
|
/autoweb/src/main/java/com/autosite/db/AutositeLoginExtentDAO.java
|
3058fb19330146c7cd404b118ad005061ea3687d
|
[] |
no_license
|
passionblue/autoweb
|
f77dc89098d59fddc48a40a81f2f2cf27cd08cfb
|
8ea27a5b83f02f4f0b66740b22179bea4d73709e
|
refs/heads/master
| 2021-01-17T20:33:28.634291
| 2016-06-17T01:38:45
| 2016-06-17T01:38:45
| 60,968,206
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,374
|
java
|
package com.autosite.db;
import com.surveygen.db.BaseHibernateDAO;
import java.sql.Timestamp;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.hibernate.Query;
import org.hibernate.criterion.Example;
/**
* A data access object (DAO) providing persistence and search support for
* AutositeLoginExtent entities. Transaction control of the save(), update() and
* delete() operations can directly support Spring container-managed
* transactions or they can be augmented to handle user-managed Spring
* transactions. Each of these methods provides additional information for how
* to configure it for the desired type of transaction control.
*
* @see com.autosite.db.AutositeLoginExtent
* @author MyEclipse Persistence Tools
*/
public class AutositeLoginExtentDAO extends BaseHibernateDAO {
private static final Log log = LogFactory.getLog(AutositeLoginExtentDAO.class);
// property constants
public static final String SITE_ID = "siteId";
public static final String CLASS_NAME = "className";
public static final String INACTIVE = "inactive";
public void save(AutositeLoginExtent transientInstance) {
log.debug("saving AutositeLoginExtent instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public void delete(AutositeLoginExtent persistentInstance) {
log.debug("deleting AutositeLoginExtent instance");
try {
getSession().delete(persistentInstance);
log.debug("delete successful");
}
catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public AutositeLoginExtent findById(Long id) {
log.debug("getting AutositeLoginExtent instance with id: " + id);
try {
AutositeLoginExtent instance = (AutositeLoginExtent) getSession().get("com.autosite.db.AutositeLoginExtent", id);
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
}
public List findByExample(AutositeLoginExtent instance) {
log.debug("finding AutositeLoginExtent instance by example");
try {
List results = getSession().createCriteria("com.autosite.db.AutositeLoginExtent").add(Example.create(instance)).list();
log.debug("find by example successful, result size: " + results.size());
return results;
}
catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
}
}
public List findByProperty(String propertyName, Object value) {
log.debug("finding AutositeLoginExtent instance with property: " + propertyName + ", value: " + value);
try {
String queryString = "from AutositeLoginExtent as model where model." + propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
}
catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
}
}
public List findBySiteId(Object siteId) {
return findByProperty(SITE_ID, siteId);
}
public List findByClassName(Object className) {
return findByProperty(CLASS_NAME, className);
}
public List findByInactive(Object inactive) {
return findByProperty(INACTIVE, inactive);
}
public List findAll() {
log.debug("finding all AutositeLoginExtent instances");
try {
String queryString = "from AutositeLoginExtent";
Query queryObject = getSession().createQuery(queryString);
return queryObject.list();
}
catch (RuntimeException re) {
log.error("find all failed", re);
throw re;
}
}
public AutositeLoginExtent merge(AutositeLoginExtent detachedInstance) {
log.debug("merging AutositeLoginExtent instance");
try {
AutositeLoginExtent result = (AutositeLoginExtent) getSession().merge(detachedInstance);
log.debug("merge successful");
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public void attachDirty(AutositeLoginExtent instance) {
log.debug("attaching dirty AutositeLoginExtent instance");
try {
getSession().saveOrUpdate(instance);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(AutositeLoginExtent instance) {
log.debug("attaching clean AutositeLoginExtent instance");
try {
getSession().lock(instance, LockMode.NONE);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
}
|
[
"joshua@joshua-dell"
] |
joshua@joshua-dell
|
d31e59d8fc3d9510df0c73357b210a487e701668
|
b0317e99f28ae989d511a78ecdf5c8e41b25e7c4
|
/io/netty/handler/codec/socksx/v4/Socks4CommandRequest.java
|
3f4747a89e5ee3b62ee0156875bbb8fcf30347a0
|
[] |
no_license
|
ayunami2000/cactuschat
|
25fc877e7c9945324eed0d1d3886021f31a803cd
|
5465aea549d0a457874251872953582c5f591692
|
refs/heads/master
| 2020-07-03T19:34:36.671311
| 2019-08-12T23:33:44
| 2019-08-12T23:33:44
| 202,024,411
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 256
|
java
|
//
// Decompiled by Procyon v0.5.36
//
package io.netty.handler.codec.socksx.v4;
public interface Socks4CommandRequest extends Socks4Message
{
Socks4CommandType type();
String userId();
String dstAddr();
int dstPort();
}
|
[
"spwilliamsiam@gmail.com"
] |
spwilliamsiam@gmail.com
|
babf3220a0190c1b5aad688077c97bca833850b7
|
1a6974cce238519d2ef9d7bfea96ae9effd49fdb
|
/src/test/java/unit/feed/controller/categories/AssignFeedToCategoryTest.java
|
374bedbc7ba8051ce1fd47a377a09ddc7660c804
|
[] |
no_license
|
vitaliikacov/nmdService
|
f592c66960934ceea1cf2d0ad0fd1041dbb96c97
|
f998eeceb5c287ec934065496a40110e4c06e957
|
refs/heads/master
| 2021-01-18T13:21:44.041693
| 2015-04-14T19:11:00
| 2015-04-14T19:11:00
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,467
|
java
|
package unit.feed.controller.categories;
import nmd.orb.error.ServiceException;
import nmd.orb.reader.Category;
import nmd.orb.services.report.CategoryReport;
import org.junit.Test;
import org.mockito.Mockito;
import unit.feed.controller.AbstractControllerTestBase;
import java.util.List;
import java.util.UUID;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
/**
* Author : Igor Usenko ( igors48@gmail.com )
* Date : 15.03.14
*/
public class AssignFeedToCategoryTest extends AbstractControllerTestBase {
@Test
public void whenFeedIsAssignedToSecondCategoryThenItIsUnAssignedFromFirst() throws ServiceException {
final Category firstCategory = this.categoriesService.addCategory("first");
final Category secondCategory = this.categoriesService.addCategory("second");
final UUID feedId = addValidFirstRssFeed(firstCategory.uuid);
this.categoriesService.assignFeedToCategory(feedId, secondCategory.uuid);
final List<CategoryReport> categoryReports = this.categoriesService.getCategoriesReport();
final CategoryReport main = findForCategory(firstCategory.uuid, categoryReports);
final CategoryReport second = findForCategory(secondCategory.uuid, categoryReports);
assertNull(findForFeed(feedId, main.feedReadReports));
assertNotNull(findForFeed(feedId, second.feedReadReports));
}
@Test
public void whenFeedIsAssignedToCategoryThenItIsRegistered() throws ServiceException {
final Category firstCategory = this.categoriesService.addCategory("first");
final UUID feedId = addValidFirstRssFeed(firstCategory.uuid);
this.categoriesService.assignFeedToCategory(feedId, firstCategory.uuid);
Mockito.verify(this.changeRegistrationServiceSpy, Mockito.times(3)).registerChange();
}
@Test(expected = ServiceException.class)
public void whenFeedIsNotFoundThenExceptionOccurs() throws ServiceException {
final Category secondCategory = this.categoriesService.addCategory("second");
this.categoriesService.assignFeedToCategory(UUID.randomUUID(), secondCategory.uuid);
}
@Test(expected = ServiceException.class)
public void whenCategoryIsNotFoundThenExceptionOccurs() throws ServiceException {
final UUID feedId = addValidFirstRssFeedToMainCategory();
this.categoriesService.assignFeedToCategory(feedId, UUID.randomUUID().toString());
}
}
|
[
"nmds48@gmail.com"
] |
nmds48@gmail.com
|
a4cdc10096efa70b0f9cf6878f848ffa01d0b0e4
|
cb2e0b45e47ebeb518f1c8d7d12dfa0680aed01c
|
/openbanking-api-soap-transform/src/main/gen/com/laegler/openbanking/soap/model/OBAuthoritiesPOSTSearchforoneormoreresourcesusingHTTPPOSTInputMessage.java
|
d53036e65c4586a468f48daac7d46507e0926861
|
[
"MIT"
] |
permissive
|
thlaegler/openbanking
|
4909cc9e580210267874c231a79979c7c6ec64d8
|
924a29ac8c0638622fba7a5674c21c803d6dc5a9
|
refs/heads/develop
| 2022-12-23T15:50:28.827916
| 2019-10-30T09:11:26
| 2019-10-31T05:43:04
| 213,506,933
| 1
| 0
|
MIT
| 2022-11-16T11:55:44
| 2019-10-07T23:39:49
|
HTML
|
UTF-8
|
Java
| false
| false
| 1,874
|
java
|
package com.laegler.openbanking.soap.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="SCIM2.0SearchRequestMessage" type="{http://laegler.com/openbanking/soap/model}SearchRequest" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"scim20SearchRequestMessage"
})
@XmlRootElement(name = "OBAuthorities_POST_SearchforoneormoreresourcesusingHTTPPOST_InputMessage")
public class OBAuthoritiesPOSTSearchforoneormoreresourcesusingHTTPPOSTInputMessage {
@XmlElement(name = "SCIM2.0SearchRequestMessage")
protected SearchRequest scim20SearchRequestMessage;
/**
* Gets the value of the scim20SearchRequestMessage property.
*
* @return
* possible object is
* {@link SearchRequest }
*
*/
public SearchRequest getSCIM20SearchRequestMessage() {
return scim20SearchRequestMessage;
}
/**
* Sets the value of the scim20SearchRequestMessage property.
*
* @param value
* allowed object is
* {@link SearchRequest }
*
*/
public void setSCIM20SearchRequestMessage(SearchRequest value) {
this.scim20SearchRequestMessage = value;
}
}
|
[
"thomas.laegler@googlemail.com"
] |
thomas.laegler@googlemail.com
|
2ced037371b3c6688fd40c654f386432a9473c2c
|
76852b1b29410436817bafa34c6dedaedd0786cd
|
/sources-2020-11-04-tempmail/sources/com/google/android/gms/internal/ads/zzcco.java
|
67aadf9ddcec7722aa6d2e9e8e59f9b42f35fea8
|
[] |
no_license
|
zteeed/tempmail-apks
|
040e64e07beadd8f5e48cd7bea8b47233e99611c
|
19f8da1993c2f783b8847234afb52d94b9d1aa4c
|
refs/heads/master
| 2023-01-09T06:43:40.830942
| 2020-11-04T18:55:05
| 2020-11-04T18:55:05
| 310,075,224
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 635
|
java
|
package com.google.android.gms.internal.ads;
import org.json.JSONObject;
/* compiled from: com.google.android.gms:play-services-ads@@19.2.0 */
public class zzcco {
/* renamed from: a reason: collision with root package name */
protected final zzdkk f7023a;
public zzcco(zzdkk zzdkk) {
this.f7023a = zzdkk;
}
public boolean a() {
return this.f7023a.K;
}
public JSONObject b() {
return null;
}
public boolean c() {
return false;
}
public boolean d() {
return this.f7023a.C;
}
public boolean e() {
return this.f7023a.B;
}
}
|
[
"zteeed@minet.net"
] |
zteeed@minet.net
|
5afee9ef530c616bd5ebb4b68a3b23561ff27541
|
77f41106d18d9d2fd2ca85c18531f7e30e6968a8
|
/chorus/mssharing-fileserver/src/test/java/com/infoclinika/mssharing/fileserver/test/FileStorageServiceTest.java
|
4294682068da0bec00200163a2a2ad68a7e2f8dc
|
[] |
no_license
|
StratusBioSciences/chorus
|
a8abaa7ab1e9e8f6d867d327c7ec26e804e6fe0b
|
c9d8099419733314c0166980ee6270563a212383
|
refs/heads/master
| 2021-01-20T12:41:17.996158
| 2017-05-05T13:33:37
| 2017-05-05T13:33:37
| 90,378,816
| 0
| 4
| null | 2019-05-08T17:09:36
| 2017-05-05T13:32:47
|
Java
|
UTF-8
|
Java
| false
| false
| 3,236
|
java
|
package com.infoclinika.mssharing.fileserver.test;/*
* C O P Y R I G H T N O T I C E
* -----------------------------------------------------------------------
* Copyright (c) 2011-2012 InfoClinika, Inc. 5901 152nd Ave SE, Bellevue, WA 98006,
* United States of America. (425) 442-8058. http://www.infoclinika.com.
* All Rights Reserved. Reproduction, adaptation, or translation without prior written permission of InfoClinika, Inc. is prohibited.
* Unpublished--rights reserved under the copyright laws of the United States. RESTRICTED RIGHTS LEGEND Use, duplication or disclosure by the
*/
import com.google.common.io.ByteStreams;
import com.google.common.io.Files;
import com.infoclinika.mssharing.platform.fileserver.impl.FileStorageService;
import com.infoclinika.mssharing.platform.fileserver.model.NodePath;
import com.infoclinika.mssharing.platform.fileserver.model.StoredFile;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
import org.testng.annotations.Test;
import javax.inject.Inject;
import java.io.*;
import static org.testng.Assert.*;
/**
* @author Oleksii Tymchenko
*/
@ContextConfiguration(locations = {"classpath:fileserver-test.cfg.xml"})
public class FileStorageServiceTest extends AbstractTestNGSpringContextTests {
@Inject
private FileStorageService storageService;
@Test(enabled = false)
public void testGetNonExistingFile() {
final NodePath randomPath = new NodePath("non-existing-node-path" + System.currentTimeMillis());
final StoredFile file = storageService.get(randomPath);
assertNull(file, "File obtained at random path expected to be NULL, but it is not.");
}
@Test(enabled = false)
public void testPutGet() {
final File tempDir = Files.createTempDir();
final String filename = "testPutGet" + System.currentTimeMillis() + "test.tmp";
final File file = new File(tempDir, filename);
try {
Files.touch(file);
Files.write("My test file contents".getBytes(), file);
final NodePath nodePath = new NodePath("myuser/" + filename);
final StoredFile storedFile = new StoredFile(new BufferedInputStream(new FileInputStream(file)));
storageService.put(nodePath, storedFile);
final StoredFile obtainedFile = storageService.get(nodePath);
assertNotNull(obtainedFile, "Obtained file must not be NULL at path " + nodePath);
final File tempDestFile = File.createTempFile("unit-test", null);
final FileOutputStream fos = new FileOutputStream(tempDestFile);
InputStream inputStream = obtainedFile.getInputStream();
ByteStreams.copy(inputStream, fos);
fos.flush();
final boolean filesAreTheSame = Files.equal(file, tempDestFile);
assertTrue(filesAreTheSame, "Source file and obtained file must have the same contents");
} catch (IOException e) {
fail("Something terrible has happened during the test", e);
} finally {
if (file.exists()) {
file.deleteOnExit();
}
}
}
}
|
[
"vladimir.moiseiev@teamdev.com"
] |
vladimir.moiseiev@teamdev.com
|
b867de776aaae4f2f8142aba9e8f5c3e0bc8ea88
|
d432e0a44332bde35b1e06931feb5ba9e5fc6b07
|
/okhttputils/src/main/java/com/zhy/http/okhttp/log/cookie/store/CookieStore.java
|
e5842ee7d5e434e385dc2a1b15f809a366d7fd6e
|
[] |
no_license
|
wgl0419/MarketTest
|
132f27c08988b77287d2bc6f2c8b8713f21ec72f
|
993107d814bc68c1959b1057922d3c8f1af8c62d
|
refs/heads/master
| 2023-01-12T01:52:25.838962
| 2020-08-21T01:21:17
| 2020-08-21T01:21:17
| 313,812,259
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 345
|
java
|
package com.zhy.http.okhttp.log.cookie.store;
import java.util.List;
import okhttp3.Cookie;
import okhttp3.HttpUrl;
public interface CookieStore
{
void add(HttpUrl uri, List<Cookie> cookie);
List<Cookie> get(HttpUrl uri);
List<Cookie> getCookies();
boolean remove(HttpUrl uri, Cookie cookie);
boolean removeAll();
}
|
[
"366549434@qq.com"
] |
366549434@qq.com
|
fdb45e550b3f2cb69bb746038c705d26bc621bb4
|
385f8eca3787451f83dcc55fa758c98491e4cf28
|
/android_project/AudioMixer/src/main/java/com/github/piasy/audio_mixer/AudioFileDecoder.java
|
7b92693bf0251d5a0ce49c9cad7ed876e6e4a3cb
|
[
"MIT"
] |
permissive
|
jomael/AudioMixer
|
e5337a3bab9f8efb173217bd793a61b04856eb32
|
cfdd19b0d56418f9bf37164429a248f075a0751a
|
refs/heads/master
| 2021-11-20T16:27:57.454387
| 2021-08-08T21:29:57
| 2021-08-08T21:29:57
| 148,709,153
| 0
| 0
|
MIT
| 2020-04-25T23:48:18
| 2018-09-13T23:21:37
|
C++
|
UTF-8
|
Java
| false
| false
| 1,798
|
java
|
package com.github.piasy.audio_mixer;
/**
* Created by Piasy{github.com/Piasy} on 05/11/2017.
*
* Usage:
*
* <pre>{@code
* AudioFileDecoder decoder = new AudioFileDecoder(filepath, msPerBuf);
*
* while (true) {
* AudioBuffer buffer = decoder.consume();
* if (buffer.getSize() > 0) {
* audioTrack.write(buffer.getBuffer(), 0, buffer.getSize());
* } else {
* exitCode = buffer.getSize();
* break;
* }
* }
*
* Log.d(TAG, "decode finish: " + exitCode);
*
* decoder.destroy();
* }</pre>
*/
public class AudioFileDecoder {
private final AudioBuffer mBuffer;
private final int mSamplesPerBuf;
private long mNativeHandle;
public AudioFileDecoder(String filepath, int frameDurationMs) {
mNativeHandle = nativeInit(filepath);
mSamplesPerBuf = getSampleRate() / (1000 / frameDurationMs);
int bufferSize = mSamplesPerBuf * getChannelNum() * AudioMixer.SAMPLE_SIZE;
mBuffer = new AudioBuffer(new byte[bufferSize], bufferSize);
}
private static native long nativeInit(String filepath);
private static native int nativeGetSampleRate(long handle);
private static native int nativeGetChannelNum(long handle);
private static native int nativeConsume(long handle, byte[] buffer, int samples);
private static native void nativeDestroy(long handle);
public int getSampleRate() {
return nativeGetSampleRate(mNativeHandle);
}
public int getChannelNum() {
return nativeGetChannelNum(mNativeHandle);
}
public AudioBuffer consume() {
return mBuffer.setSize(
nativeConsume(mNativeHandle, mBuffer.getBuffer(), mSamplesPerBuf)
);
}
public void destroy() {
nativeDestroy(mNativeHandle);
}
}
|
[
"xz4215@gmail.com"
] |
xz4215@gmail.com
|
11eed09633c96fda6ef8ae64f23007132d60e05e
|
281fc20ae4900efb21e46e8de4e7c1e476f0d132
|
/test-applications/richfaces-docs/web/src/main/java/org/docs/ColorPicker.java
|
28e9fa7393b9faae65ba0fd50bc088a7dff920a9
|
[] |
no_license
|
nuxeo/richfaces-3.3
|
c23b31e69668810219cf3376281f669fa4bf256f
|
485749c5f49ac6169d9187cc448110d477acab3b
|
refs/heads/master
| 2023-08-25T13:27:08.790730
| 2015-01-05T10:42:11
| 2015-01-05T10:42:11
| 10,627,040
| 3
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 619
|
java
|
package org.docs;
public class ColorPicker {
String value;
String showEvent;
String colorMode;
String flat;
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String getShowEvent() {
return showEvent;
}
public void setShowEvent(String showEvent) {
this.showEvent = showEvent;
}
public String getColorMode() {
return colorMode;
}
public void setColorMode(String colorMode) {
this.colorMode = colorMode;
}
public String getFlat() {
return flat;
}
public void setFlat(String flat) {
this.flat = flat;
}
}
|
[
"grenard@nuxeo.com"
] |
grenard@nuxeo.com
|
3abe95185957cfcbc6ad1b3e5c2386fb7cdd11c7
|
db824b5305c81e53e2df99b733c68baaeaf727cb
|
/kkgame_adsdkhz73/src/com/kkgame/hz/service/ProductService.java
|
d3db1ad8b231a729dff7d137a92ab747477219e8
|
[] |
no_license
|
luotianwen/pgy
|
bd86d8c52ad7632d482017d55293c167d32e39fa
|
b90cf94deea005f55300fa19bedff766ce9fcbef
|
refs/heads/master
| 2021-01-23T23:13:53.332427
| 2017-09-09T14:41:06
| 2017-09-09T14:41:06
| 102,959,923
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,247
|
java
|
package com.kkgame.hz.service;
import java.util.List;
import com.kkfun.exceptions.DatabaseException;
import com.kkgame.hz.entities.ProductVO;
public interface ProductService {
List<ProductVO> getProductVOList(ProductVO productVO) throws DatabaseException;
Integer create(ProductVO productVO) throws DatabaseException;
ProductVO getProductVO(ProductVO productVO) throws DatabaseException;
void update(ProductVO productVO) throws DatabaseException;
void delete(ProductVO productVO) throws DatabaseException;
List<ProductVO> getAllProductVOList(ProductVO productVO) throws DatabaseException;
ProductVO getProductVOByName(ProductVO productVO) throws DatabaseException;
List<ProductVO> getProductVOListByProductIds(String productIds) throws DatabaseException;
List<ProductVO> getAllProductVOSubscribeList(ProductVO productVO) throws DatabaseException;
List<ProductVO> getProductVOSubscribeList(ProductVO productVO)throws DatabaseException;
int createSubscribe(ProductVO productVO)throws DatabaseException;
ProductVO getProductVOSubscribe(ProductVO productVO)throws DatabaseException;
void updateSubscribe(ProductVO productVO)throws DatabaseException;
void deleteSubscribe(ProductVO productVO)throws DatabaseException;
}
|
[
"tw l"
] |
tw l
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.