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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2921adae869558b920000aa87b6ad52a01df1b33
|
24d8cf871b092b2d60fc85d5320e1bc761a7cbe2
|
/GenealogyJ/rev5537-5673/left-branch-5610/src/core/genj/edit/actions/Undo.java
|
21d32a12f0bbfa9c4f07b3415129115680d8b4c4
|
[] |
no_license
|
joliebig/featurehouse_fstmerge_examples
|
af1b963537839d13e834f829cf51f8ad5e6ffe76
|
1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad
|
refs/heads/master
| 2016-09-05T10:24:50.974902
| 2013-03-28T16:28:47
| 2013-03-28T16:28:47
| 9,080,611
| 3
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,072
|
java
|
package genj.edit.actions;
import java.awt.event.ActionEvent;
import spin.Spin;
import genj.edit.Images;
import genj.gedcom.Entity;
import genj.gedcom.Gedcom;
import genj.gedcom.GedcomMetaListener;
import genj.gedcom.Property;
import genj.util.swing.Action2;
public class Undo extends Action2 implements GedcomMetaListener {
private Gedcom gedcom;
public Undo() {
this(null, false);
}
public Undo(Gedcom gedcom) {
this(gedcom, gedcom.canUndo());
}
public Undo(Gedcom gedcom, boolean enabled) {
setImage(Images.imgUndo);
setText(AbstractChange.resources.getString("undo"));
setTip(getText());
setEnabled(enabled);
this.gedcom = gedcom;
}
public void follow(Gedcom newGedcom) {
if (gedcom==newGedcom)
return;
if (gedcom!=null)
gedcom.removeGedcomListener((GedcomMetaListener)Spin.over(this));
gedcom = newGedcom;
if (gedcom!=null)
gedcom.addGedcomListener((GedcomMetaListener)Spin.over(this));
setEnabled(gedcom!=null && gedcom.canUndo());
}
public void actionPerformed(ActionEvent event) {
if (gedcom!=null&&gedcom.canUndo())
gedcom.undoUnitOfWork();
}
public void gedcomEntityAdded(Gedcom gedcom, Entity entity) {
}
public void gedcomEntityDeleted(Gedcom gedcom, Entity entity) {
}
public void gedcomPropertyAdded(Gedcom gedcom, Property property, int pos, Property added) {
}
public void gedcomPropertyChanged(Gedcom gedcom, Property prop) {
}
public void gedcomPropertyDeleted(Gedcom gedcom, Property property, int pos, Property removed) {
}
public void gedcomHeaderChanged(Gedcom gedcom) {
}
public void gedcomBeforeUnitOfWork(Gedcom gedcom) {
}
public void gedcomAfterUnitOfWork(Gedcom gedcom) {
}
public void gedcomWriteLockAcquired(Gedcom gedcom) {
}
public void gedcomWriteLockReleased(Gedcom gedcom) {
if (this.gedcom==gedcom)
setEnabled(gedcom.canUndo());
}
}
|
[
"joliebig@fim.uni-passau.de"
] |
joliebig@fim.uni-passau.de
|
3701981c79fe13667c619e7fcdddc79af7e98623
|
e1a97160ab0aae48d0a01c226be7e3d4c713fbb0
|
/music/src/main/java/com/example/cootek/newfastframe/MusicInfoProvider.java
|
b5a44bd9f1d1a101a84021bdc3b72d0fd5b833ad
|
[] |
no_license
|
javert0319/NewFastFrame
|
6d8920da774476821e5a7705625a5c789f677945
|
d3aae10aad892ba109879822fe86c137b2828584
|
refs/heads/master
| 2020-03-25T07:06:48.796127
| 2018-08-04T14:28:23
| 2018-08-04T14:28:23
| 143,542,060
| 1
| 0
| null | 2018-08-04T15:47:58
| 2018-08-04T15:47:58
| null |
UTF-8
|
Java
| false
| false
| 6,298
|
java
|
package com.example.cootek.newfastframe;
import android.content.Context;
import android.database.Cursor;
import android.provider.MediaStore;
import android.text.TextUtils;
import com.example.commonlibrary.BaseApplication;
import com.example.commonlibrary.bean.music.MusicPlayBean;
import com.example.commonlibrary.bean.music.MusicPlayBeanDao;
import com.example.commonlibrary.utils.CommonLogger;
import com.example.cootek.newfastframe.util.MusicUtil;
import java.util.ArrayList;
import java.util.List;
import io.reactivex.Observable;
import io.reactivex.ObservableEmitter;
import io.reactivex.ObservableOnSubscribe;
import io.reactivex.annotations.NonNull;
/**
* Created by COOTEK on 2017/8/10.
*/
public class MusicInfoProvider {
public static Cursor getSongCursor(Context context, String selection, String[] selectionArgs, String sortOrder) {
String baseSelection = "is_music=1 AND title!= ''";
if (!TextUtils.isEmpty(selection)) {
baseSelection = selection + " AND " + baseSelection;
}
return context.getContentResolver().query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, new String[]{
MediaStore.Audio.AudioColumns._ID, MediaStore.Audio.AudioColumns.TITLE
, MediaStore.Audio.AudioColumns.ARTIST, MediaStore.Audio.AudioColumns.ARTIST_ID,
MediaStore.Audio.AudioColumns.ALBUM, MediaStore.Audio.AudioColumns.ALBUM_ID,
MediaStore.Audio.AudioColumns.TRACK, MediaStore.Audio.AudioColumns.DURATION,
MediaStore.Audio.AudioColumns.DATA
}, baseSelection, selectionArgs, sortOrder);
}
public static Observable<List<MusicPlayBean>> searchMusic(Context context, String searchString) {
return getMusicForCursor(getSongCursor(context, "title LIKE ? or artist LIKE ? or album LIKE ? ",
new String[]{"%" + searchString + "%", "%" + searchString + "%", "%" + searchString + "%"}));
}
public static Observable<List<MusicPlayBean>> getAllMusic(boolean isLocal) {
if (isLocal) {
return getMusicForCursor(getSongCursor(BaseApplication.getInstance(), null, null));
} else {
return getDownLoadMusic();
}
}
private static Observable<List<MusicPlayBean>> getDownLoadMusic() {
List<MusicPlayBean> result = VideoApplication.getMainComponent().getDaoSession().getMusicPlayBeanDao().queryBuilder().where(MusicPlayBeanDao.Properties.IsLocal.eq(Boolean.FALSE)).list();
return Observable.just(result);
}
public static Observable<List<MusicPlayBean>> getMusicForPage(Context context, int num, int pageSize) {
return getMusicForCursor(getSongCursor(context, null, null, MediaStore.Audio.Media.DEFAULT_SORT_ORDER + " desc limit " + pageSize + " offset " + num));
}
public static Observable<List<MusicPlayBean>> getMusicForPage(int num, int pageSize) {
return getMusicForPage(BaseApplication.getInstance(), num, pageSize);
}
private static Observable<List<MusicPlayBean>> getMusicForCursor(final Cursor cursor) {
return Observable.create(new ObservableOnSubscribe<List<MusicPlayBean>>() {
@Override
public void subscribe(@NonNull ObservableEmitter<List<MusicPlayBean>> e) throws Exception {
List<MusicPlayBean> list = new ArrayList<>();
if (cursor != null && cursor.moveToFirst()) {
do {
MusicPlayBean music = new MusicPlayBean();
CommonLogger.e("data", cursor.getString(cursor.getColumnIndexOrThrow(MediaStore.Audio.AudioColumns.DATA)));
music.setSongId(cursor.getLong(cursor.getColumnIndexOrThrow(MediaStore.Audio.AudioColumns._ID)));
music.setSongName(cursor.getString(cursor.getColumnIndexOrThrow(MediaStore.Audio.AudioColumns.TITLE)));
music.setArtistId(cursor.getLong(cursor.getColumnIndexOrThrow(MediaStore.Audio.AudioColumns.ARTIST_ID)) + "");
music.setArtistName(cursor.getString(cursor.getColumnIndexOrThrow(MediaStore.Audio.AudioColumns.ARTIST)));
music.setAlbumId(cursor.getLong(cursor.getColumnIndexOrThrow(MediaStore.Audio.AudioColumns.ALBUM_ID)));
music.setAlbumName(cursor.getString(cursor.getColumnIndexOrThrow(MediaStore.Audio.AudioColumns.ALBUM)));
music.setAlbumUrl(MusicUtil.getAlbumArtUri(music.getAlbumId()).toString());
music.setDuration(cursor.getInt(cursor.getColumnIndexOrThrow(MediaStore.Audio.AudioColumns.DURATION)));
music.setLocal(true);
list.add(music);
} while (cursor.moveToNext());
}
e.onNext(list);
e.onComplete();
}
});
}
public static Cursor getSongCursor(Context context, String selection, String[] selectionArgs) {
StringBuilder select = new StringBuilder(" 1=1 and title != ''");
select.append(" and " + MediaStore.Audio.Media.SIZE + " > " + 1048576);
select.append(" and " + MediaStore.Audio.Media.DURATION + " > " + 6000);
if (!TextUtils.isEmpty(selection)) {
select.append(" and ").append(selection);
}
CommonLogger.e("这1");
return context.getContentResolver().query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, new String[]{
MediaStore.Audio.AudioColumns._ID, MediaStore.Audio.AudioColumns.TITLE
, MediaStore.Audio.AudioColumns.ARTIST, MediaStore.Audio.AudioColumns.ARTIST_ID,
MediaStore.Audio.AudioColumns.ALBUM, MediaStore.Audio.AudioColumns.ALBUM_ID,
MediaStore.Audio.AudioColumns.TRACK, MediaStore.Audio.AudioColumns.DURATION,
MediaStore.Audio.AudioColumns.DATA
}, select.toString(), selectionArgs, MediaStore.Audio.Media.DEFAULT_SORT_ORDER);
}
public static Observable<List<MusicPlayBean>> getMusicForSinger(String tingId) {
return Observable.just(VideoApplication.getMainComponent().getDaoSession().getMusicPlayBeanDao().queryBuilder()
.where(MusicPlayBeanDao.Properties.TingId.eq(tingId)).list());
}
}
|
[
"1981367757@qq.com"
] |
1981367757@qq.com
|
f4e97ba3fe2f1563511fdc7af95062d78284a71e
|
54d2953f37bf1094f77e5978b45f14d25942eee8
|
/runtime/opaeum-runtime-core/opaeum-runtime-domain/src/main/java/org/opaeum/runtime/domain/IObservation.java
|
31111697ebd425a788c6410712fd8dd855557bc8
|
[] |
no_license
|
opaeum/opaeum
|
7d30c2fc8f762856f577c2be35678da9890663f7
|
a517c2446577d6a961c1fcdcc9d6e4b7a165f33d
|
refs/heads/master
| 2022-07-14T00:35:23.180202
| 2016-01-01T15:23:11
| 2016-01-01T15:23:11
| 987,891
| 2
| 2
| null | 2022-06-29T19:45:00
| 2010-10-14T19:11:53
|
Java
|
UTF-8
|
Java
| false
| false
| 156
|
java
|
package org.opaeum.runtime.domain;
public interface IObservation{
void onEntry(IExecutionElement<?> element);
void onExit(IExecutionElement<?> element);
}
|
[
"ampieb@gmail.com"
] |
ampieb@gmail.com
|
974d515f926d366b084fd1b129ad1b61184c2f42
|
447520f40e82a060368a0802a391697bc00be96f
|
/apks/playstore_apps/com_ubercab/source/uy.java
|
4dcff5054c6697b79f1aa92e5fa6028e005b5a6f
|
[
"Apache-2.0",
"GPL-1.0-or-later"
] |
permissive
|
iantal/AndroidPermissions
|
7f3343a9c29d82dbcd4ecd98b3a50ddf8d179465
|
d623b732734243590b5f004d167e542e2e2ae249
|
refs/heads/master
| 2023-07-19T01:29:26.689186
| 2019-09-30T19:01:42
| 2019-09-30T19:01:42
| 107,239,248
| 0
| 0
|
Apache-2.0
| 2023-07-16T07:41:38
| 2017-10-17T08:22:57
| null |
UTF-8
|
Java
| false
| false
| 1,658
|
java
|
import android.graphics.Path;
import android.graphics.PathMeasure;
import android.view.animation.Interpolator;
class uy
implements Interpolator
{
private final float[] a;
private final float[] b;
uy(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
{
this(a(paramFloat1, paramFloat2, paramFloat3, paramFloat4));
}
uy(Path paramPath)
{
paramPath = new PathMeasure(paramPath, false);
float f = paramPath.getLength();
int j = (int)(f / 0.002F) + 1;
this.a = new float[j];
this.b = new float[j];
float[] arrayOfFloat = new float[2];
int i = 0;
while (i < j)
{
paramPath.getPosTan(i * f / (j - 1), arrayOfFloat, null);
this.a[i] = arrayOfFloat[0];
this.b[i] = arrayOfFloat[1];
i += 1;
}
}
private static Path a(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
{
Path localPath = new Path();
localPath.moveTo(0.0F, 0.0F);
localPath.cubicTo(paramFloat1, paramFloat2, paramFloat3, paramFloat4, 1.0F, 1.0F);
return localPath;
}
public float getInterpolation(float paramFloat)
{
if (paramFloat <= 0.0F) {
return 0.0F;
}
if (paramFloat >= 1.0F) {
return 1.0F;
}
int j = 0;
int i = this.a.length - 1;
while (i - j > 1)
{
int k = (j + i) / 2;
if (paramFloat < this.a[k]) {
i = k;
} else {
j = k;
}
}
float f = this.a[i] - this.a[j];
if (f == 0.0F) {
return this.b[j];
}
paramFloat = (paramFloat - this.a[j]) / f;
f = this.b[j];
return f + paramFloat * (this.b[i] - f);
}
}
|
[
"antal.micky@yahoo.com"
] |
antal.micky@yahoo.com
|
cb1fa43ec9bde6ee25bf7a43c94549025ad453dc
|
e47823f99752ec2da083ac5881f526d4add98d66
|
/test_data/06_Lucene1.4.3/src/org/apache/lucene/index/TestFieldInfos.java
|
44de6ffae1ce01df2cd5ac6e48e1fd5fea734264
|
[] |
no_license
|
Echtzeitsysteme/hulk-ase-2016
|
1dee8aca80e2425ab6acab18c8166542dace25cd
|
fbfb7aee1b9f29355a20e365f03bdf095afe9475
|
refs/heads/master
| 2020-12-24T05:31:49.671785
| 2017-05-04T08:18:32
| 2017-05-04T08:18:32
| 56,681,308
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,729
|
java
|
package org.apache.lucene.index;
import junit.framework.TestCase;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.lucene.store.RAMOutputStream;
import org.apache.lucene.store.RAMDirectory;
import org.apache.lucene.store.OutputStream;
import java.io.IOException;
import java.util.Map;
//import org.cnlp.utils.properties.ResourceBundleHelper;
public class TestFieldInfos extends TestCase {
private Document testDoc = new Document();
public TestFieldInfos(String s) {
super(s);
}
protected void setUp() {
DocHelper.setupDoc(testDoc);
}
protected void tearDown() {
}
public void test() {
//Positive test of FieldInfos
assertTrue(testDoc != null);
FieldInfos fieldInfos = new FieldInfos();
fieldInfos.add(testDoc);
//Since the complement is stored as well in the fields map
assertTrue(fieldInfos.size() == 7); //this is 7 b/c we are using the no-arg constructor
RAMDirectory dir = new RAMDirectory();
String name = "testFile";
OutputStream output = dir.createFile(name);
assertTrue(output != null);
//Use a RAMOutputStream
try {
fieldInfos.write(output);
output.close();
assertTrue(output.length() > 0);
FieldInfos readIn = new FieldInfos(dir, name);
assertTrue(fieldInfos.size() == readIn.size());
FieldInfo info = readIn.fieldInfo("textField1");
assertTrue(info != null);
assertTrue(info.storeTermVector == false);
info = readIn.fieldInfo("textField2");
assertTrue(info != null);
assertTrue(info.storeTermVector == true);
dir.close();
} catch (IOException e) {
assertTrue(false);
}
}
}
|
[
"sven.peldszus@stud.tu-darmstadt.de"
] |
sven.peldszus@stud.tu-darmstadt.de
|
ced5bf4768b07bd4f6fd663ff8a887a60b031773
|
7fa9c6b0fa1d0726ae1cda0199716c811a1ea01b
|
/Crawler/data/UnexpectedException.java
|
ca48f5e7b7326c5cdc95854b4d5c7c12bf989058
|
[] |
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
| 1,519
|
java
|
2
https://raw.githubusercontent.com/aayush-grover/SoundCloud-Rest-Api/master/musichoster-service/src/main/java/com/upgrad/musichoster/service/common/UnexpectedException.java
package com.upgrad.musichoster.service.common;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.text.MessageFormat;
public class UnexpectedException extends RuntimeException {
private static final long serialVersionUID = 2737472949025937415L;
private final ErrorCode errorCode;
private Throwable cause;
private final Object[] parameters;
public UnexpectedException(final ErrorCode errorCode, final Object... parameters) {
super();
this.errorCode = errorCode;
this.parameters = parameters;
}
public UnexpectedException(final ErrorCode errorCode, final Throwable cause, final Object... parameters) {
super();
this.errorCode = errorCode;
this.cause = cause;
this.parameters = parameters;
}
public ErrorCode getErrorCode() {
return errorCode;
}
@Override
public String getMessage() {
return MessageFormat.format(errorCode.getDefaultMessage(), this.parameters);
}
@Override
public Throwable getCause() {
return cause;
}
@Override
public final void printStackTrace(final PrintStream stream) {
super.printStackTrace(stream);
}
@Override
public final void printStackTrace(final PrintWriter writer) {
super.printStackTrace(writer);
}
}
|
[
"veronika.cucorova@gmail.com"
] |
veronika.cucorova@gmail.com
|
e68bbbf3d480670db06e1a479834b5fb39192bd9
|
684732efc4909172df38ded729c0972349c58b67
|
/interfaces/src/main/java/net/sf/ahtutils/model/interfaces/tracker/UtilsTracker.java
|
ac2b339d3fef3412913ef9c9b94f7db1853441d8
|
[] |
no_license
|
aht-group/jeesl
|
2c4683e8c1e9d9e9698d044c6a89a611b8dfe1e7
|
3f4bfca6cf33f60549cac23f3b90bf1218c9daf9
|
refs/heads/master
| 2023-08-13T20:06:38.593666
| 2023-08-12T06:59:51
| 2023-08-12T06:59:51
| 39,823,889
| 0
| 9
| null | 2022-12-13T18:35:24
| 2015-07-28T09:06:11
|
Java
|
UTF-8
|
Java
| false
| false
| 764
|
java
|
package net.sf.ahtutils.model.interfaces.tracker;
import java.util.List;
import org.jeesl.interfaces.model.system.locale.JeeslDescription;
import org.jeesl.interfaces.model.system.locale.JeeslLang;
import org.jeesl.interfaces.model.system.locale.status.JeeslStatus;
import org.jeesl.interfaces.model.with.primitive.number.EjbWithId;
public interface UtilsTracker<TR extends UtilsTracker<TR,TL,T,S,L,D>,
TL extends UtilsTrackerLog<TR,TL,T,S,L,D>,
T extends JeeslStatus<L,D,T>,
S extends JeeslStatus<L,D,S>,
L extends JeeslLang,
D extends JeeslDescription>
extends EjbWithId
{
long getRefId();
void setRefId(long refId);
T getType();
void setType(T type);
List<TL> getLogs();
void setLogs(List<TL> logs);
}
|
[
"t.kisner@web.de"
] |
t.kisner@web.de
|
f6d1860b13f3d8df74178cd480d2d6bbe7cd60df
|
963599f6f1f376ba94cbb504e8b324bcce5de7a3
|
/sources/com/google/firebase/datatransport/TransportRegistrar.java
|
9d240b51513d7d011ca073b3c5084e124fef2cfd
|
[] |
no_license
|
NikiHard/cuddly-pancake
|
563718cb73fdc4b7b12c6233d9bf44f381dd6759
|
3a5aa80d25d12da08fd621dc3a15fbd536d0b3d4
|
refs/heads/main
| 2023-04-09T06:58:04.403056
| 2021-04-20T00:45:08
| 2021-04-20T00:45:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 653
|
java
|
package com.google.firebase.datatransport;
import android.content.Context;
import com.google.android.datatransport.TransportFactory;
import com.google.firebase.components.Component;
import com.google.firebase.components.ComponentRegistrar;
import com.google.firebase.components.Dependency;
import java.util.Collections;
import java.util.List;
public class TransportRegistrar implements ComponentRegistrar {
public List<Component<?>> getComponents() {
return Collections.singletonList(Component.builder(TransportFactory.class).add(Dependency.required(Context.class)).factory(TransportRegistrar$$Lambda$1.lambdaFactory$()).build());
}
}
|
[
"a.amirovv@mail.ru"
] |
a.amirovv@mail.ru
|
5a50c9ed09910df24755336466d924b3f9e3002e
|
c585888f406869d0e0182be8557b3e33ce743ff0
|
/src/main/java/com/android/tools/r8/horizontalclassmerging/VirtualMethodMerger.java
|
734212430533e10cffb2fbeadb90599980b6d70d
|
[
"BSD-3-Clause",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
Yinkozi/R8
|
25623bfa8d67f553ea737472d6835740f9fc8099
|
af71090436ca05106ff3ac08c9533ed524163029
|
refs/heads/main
| 2023-01-04T00:13:30.647859
| 2020-10-21T10:40:00
| 2020-10-21T10:40:00
| 305,987,826
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,730
|
java
|
// Copyright (c) 2020, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.horizontalclassmerging;
import com.android.tools.r8.graph.AppView;
import com.android.tools.r8.graph.DexAnnotationSet;
import com.android.tools.r8.graph.DexEncodedMethod;
import com.android.tools.r8.graph.DexField;
import com.android.tools.r8.graph.DexItemFactory;
import com.android.tools.r8.graph.DexMethod;
import com.android.tools.r8.graph.DexProgramClass;
import com.android.tools.r8.graph.GenericSignature.MethodTypeSignature;
import com.android.tools.r8.graph.MethodAccessFlags;
import com.android.tools.r8.graph.ParameterAnnotationsList;
import com.android.tools.r8.graph.ProgramMethod;
import com.android.tools.r8.graph.ResolutionResult.SingleResolutionResult;
import com.android.tools.r8.ir.synthetic.AbstractSynthesizedCode;
import com.android.tools.r8.shaking.AppInfoWithLiveness;
import com.android.tools.r8.shaking.FieldAccessInfoCollectionModifier;
import com.google.common.collect.Iterables;
import it.unimi.dsi.fastutil.ints.Int2ReferenceAVLTreeMap;
import it.unimi.dsi.fastutil.ints.Int2ReferenceSortedMap;
import it.unimi.dsi.fastutil.objects.Reference2IntMap;
import java.util.ArrayList;
import java.util.Collection;
public class VirtualMethodMerger {
private final DexProgramClass target;
private final DexItemFactory dexItemFactory;
private final Collection<ProgramMethod> methods;
private final DexField classIdField;
private final AppView<AppInfoWithLiveness> appView;
private final DexMethod superMethod;
public VirtualMethodMerger(
AppView<AppInfoWithLiveness> appView,
DexProgramClass target,
Collection<ProgramMethod> methods,
DexField classIdField,
DexMethod superMethod) {
this.dexItemFactory = appView.dexItemFactory();
this.target = target;
this.classIdField = classIdField;
this.methods = methods;
this.appView = appView;
this.superMethod = superMethod;
}
public static class Builder {
private final Collection<ProgramMethod> methods = new ArrayList<>();
public Builder add(ProgramMethod constructor) {
methods.add(constructor);
return this;
}
/** Get the super method handle if this method overrides a parent method. */
private DexMethod superMethod(AppView<AppInfoWithLiveness> appView, DexProgramClass target) {
// TODO(b/167981556): Correctly detect super methods defined on interfaces.
DexMethod template = methods.iterator().next().getReference();
SingleResolutionResult resolutionResult =
appView
.withLiveness()
.appInfo()
.resolveMethodOnClass(template, target.superType)
.asSingleResolution();
if (resolutionResult == null) {
return null;
}
if (resolutionResult.getResolvedMethod().isAbstract()) {
return null;
}
return resolutionResult.getResolvedMethod().method;
}
public VirtualMethodMerger build(
AppView<AppInfoWithLiveness> appView, DexProgramClass target, DexField classIdField) {
DexMethod superMethod = superMethod(appView, target);
return new VirtualMethodMerger(appView, target, methods, classIdField, superMethod);
}
}
private DexMethod moveMethod(ProgramMethod oldMethod) {
DexMethod oldMethodReference = oldMethod.getReference();
DexMethod method =
dexItemFactory.createFreshMethodName(
oldMethodReference.name.toSourceString(),
oldMethod.getHolderType(),
oldMethodReference.proto,
target.type,
tryMethod -> target.lookupMethod(tryMethod) == null);
if (oldMethod.getHolderType() == target.type) {
target.removeMethod(oldMethod.getReference());
}
DexEncodedMethod encodedMethod = oldMethod.getDefinition().toTypeSubstitutedMethod(method);
MethodAccessFlags flags = encodedMethod.accessFlags;
flags.unsetProtected();
flags.unsetPublic();
flags.setPrivate();
target.addDirectMethod(encodedMethod);
return encodedMethod.method;
}
private MethodAccessFlags getAccessFlags() {
// TODO(b/164998929): ensure this behaviour is correct, should probably calculate upper bound
MethodAccessFlags flags = methods.iterator().next().getDefinition().getAccessFlags().copy();
if (flags.isFinal() && Iterables.any(methods, method -> !method.getAccessFlags().isFinal())) {
flags.unsetFinal();
}
return flags;
}
/**
* If there is only a single method that does not override anything then it is safe to just move
* it to the target type if it is not already in it.
*/
public void mergeTrivial(HorizontalClassMergerGraphLens.Builder lensBuilder) {
ProgramMethod method = methods.iterator().next();
if (method.getHolderType() != target.type) {
// If the method is not in the target type, move it and record it in the lens.
DexEncodedMethod newMethod =
method.getDefinition().toRenamedHolderMethod(target.type, dexItemFactory);
target.addVirtualMethod(newMethod);
lensBuilder.moveMethod(method.getReference(), newMethod.getReference());
}
}
public void merge(
HorizontalClassMergerGraphLens.Builder lensBuilder,
FieldAccessInfoCollectionModifier.Builder fieldAccessChangesBuilder,
Reference2IntMap classIdentifiers) {
assert !methods.isEmpty();
// Handle trivial merges.
if (superMethod == null && methods.size() == 1) {
mergeTrivial(lensBuilder);
return;
}
Int2ReferenceSortedMap<DexMethod> classIdToMethodMap = new Int2ReferenceAVLTreeMap<>();
int classFileVersion = -1;
for (ProgramMethod method : methods) {
if (method.getDefinition().hasClassFileVersion()) {
classFileVersion =
Integer.max(classFileVersion, method.getDefinition().getClassFileVersion());
}
DexMethod newMethod = moveMethod(method);
lensBuilder.mapMethod(newMethod, newMethod);
lensBuilder.mapMethodInverse(method.getReference(), newMethod);
classIdToMethodMap.put(classIdentifiers.getInt(method.getHolderType()), newMethod);
}
// Use the first of the original methods as the original method for the merged constructor.
DexMethod templateReference = methods.iterator().next().getReference();
DexMethod originalMethodReference =
appView.graphLens().getOriginalMethodSignature(templateReference);
DexMethod newMethodReference =
dexItemFactory.createMethod(target.type, templateReference.proto, templateReference.name);
AbstractSynthesizedCode synthesizedCode =
new VirtualMethodEntryPointSynthesizedCode(
classIdToMethodMap,
classIdField,
superMethod,
newMethodReference,
originalMethodReference);
DexEncodedMethod newMethod =
new DexEncodedMethod(
newMethodReference,
getAccessFlags(),
MethodTypeSignature.noSignature(),
DexAnnotationSet.empty(),
ParameterAnnotationsList.empty(),
synthesizedCode,
true,
classFileVersion);
// Map each old method to the newly synthesized method in the graph lens.
for (ProgramMethod oldMethod : methods) {
lensBuilder.moveMethod(oldMethod.getReference(), newMethodReference);
}
lensBuilder.recordExtraOriginalSignature(originalMethodReference, newMethodReference);
target.addVirtualMethod(newMethod);
fieldAccessChangesBuilder.fieldReadByMethod(classIdField, newMethod.method);
}
}
|
[
"zavidan@gmail.com"
] |
zavidan@gmail.com
|
fee3365eb6218a724b16d301a16ed128dd17e61d
|
963599f6f1f376ba94cbb504e8b324bcce5de7a3
|
/sources/p035ru/unicorn/ujin/view/fragments/AnotherPassRemoteRepository$getArchivePassList$1.java
|
4f81d56359d47b1902d019bc4081f2459509a286
|
[] |
no_license
|
NikiHard/cuddly-pancake
|
563718cb73fdc4b7b12c6233d9bf44f381dd6759
|
3a5aa80d25d12da08fd621dc3a15fbd536d0b3d4
|
refs/heads/main
| 2023-04-09T06:58:04.403056
| 2021-04-20T00:45:08
| 2021-04-20T00:45:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,247
|
java
|
package p035ru.unicorn.ujin.view.fragments;
import java.util.ArrayList;
import kotlin.Metadata;
import p035ru.unicorn.ujin.view.fragments.anotherPass.events.AnotherArchivePassListEvent;
import p035ru.unicorn.ujin.view.fragments.anotherPass.response.passList.AnotherPassListResponse;
import p035ru.unicorn.ujin.view.fragments.anotherPass.response.passList.Data;
import p035ru.unicorn.ujin.view.fragments.anotherPass.response.passList.Passe;
import p046io.reactivex.functions.Consumer;
import p046io.reactivex.subjects.PublishSubject;
@Metadata(mo51341bv = {1, 0, 3}, mo51342d1 = {"\u0000\u0010\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u00012\u000e\u0010\u0002\u001a\n \u0004*\u0004\u0018\u00010\u00030\u0003H\n¢\u0006\u0002\b\u0005"}, mo51343d2 = {"<anonymous>", "", "response", "Lru/unicorn/ujin/view/fragments/anotherPass/response/passList/AnotherPassListResponse;", "kotlin.jvm.PlatformType", "accept"}, mo51344k = 3, mo51345mv = {1, 4, 1})
/* renamed from: ru.unicorn.ujin.view.fragments.AnotherPassRemoteRepository$getArchivePassList$1 */
/* compiled from: AnotherPassRemoteRepository.kt */
final class AnotherPassRemoteRepository$getArchivePassList$1<T> implements Consumer<AnotherPassListResponse> {
final /* synthetic */ AnotherPassRemoteRepository this$0;
AnotherPassRemoteRepository$getArchivePassList$1(AnotherPassRemoteRepository anotherPassRemoteRepository) {
this.this$0 = anotherPassRemoteRepository;
}
public final void accept(AnotherPassListResponse anotherPassListResponse) {
ArrayList<Passe> arrayList;
Data data;
PublishSubject<AnotherArchivePassListEvent> myArchivePassListSubject = this.this$0.getMyArchivePassListSubject();
boolean z = anotherPassListResponse.getError() == 0;
String message = anotherPassListResponse.getMessage();
if (message == null) {
message = "";
}
if (anotherPassListResponse == null || (data = anotherPassListResponse.getData()) == null || (arrayList = data.getPasses()) == null) {
arrayList = new ArrayList<>();
}
myArchivePassListSubject.onNext(new AnotherArchivePassListEvent(z, message, arrayList));
}
}
|
[
"a.amirovv@mail.ru"
] |
a.amirovv@mail.ru
|
962ccbfec2af24604ecc3f4efee336df3f0419de
|
a4dab59f78b1e4144190e471468524bcb16bd87e
|
/src/main/java/net/ravendb/client/documents/smuggler/BackupUtils.java
|
627a3fcd46ca7bc2e61c4df3b2eb9170247aa8c7
|
[
"MIT"
] |
permissive
|
ravendb/ravendb-jvm-client
|
eeeacb6c30de43703181d05d8a05624016f7a55e
|
a515a192b28a9d682d7772c36b76d5a01a2f3115
|
refs/heads/v5.4
| 2023-08-25T14:40:57.799715
| 2023-08-03T13:01:50
| 2023-08-03T13:01:50
| 8,926,444
| 13
| 11
|
MIT
| 2023-08-03T13:01:51
| 2013-03-21T10:31:56
|
Java
|
UTF-8
|
Java
| false
| false
| 2,635
|
java
|
package net.ravendb.client.documents.smuggler;
import net.ravendb.client.Constants;
import org.apache.commons.io.FilenameUtils;
import java.io.File;
import java.util.Comparator;
public final class BackupUtils {
private BackupUtils() {
}
private static final String LEGACY_INCREMENTAL_BACKUP_EXTENSION = ".ravendb-incremental-dump";
private static final String LEGACY_FULL_BACKUP_EXTENSION = ".ravendb-full-dump";
public final static String[] BACKUP_FILE_SUFFIXES = new String[] {
LEGACY_INCREMENTAL_BACKUP_EXTENSION, LEGACY_FULL_BACKUP_EXTENSION,
Constants.Documents.PeriodicBackup.INCREMENTAL_BACKUP_EXTENSION,
Constants.Documents.PeriodicBackup.ENCRYPTED_INCREMENTAL_BACKUP_EXTENSION,
Constants.Documents.PeriodicBackup.FULL_BACKUP_EXTENSION,
Constants.Documents.PeriodicBackup.ENCRYPTED_FULL_BACKUP_EXTENSION
};
static boolean isFullBackupOrSnapshot(String extension) {
return isSnapshot(extension)
|| Constants.Documents.PeriodicBackup.FULL_BACKUP_EXTENSION.equalsIgnoreCase(extension)
|| Constants.Documents.PeriodicBackup.ENCRYPTED_FULL_BACKUP_EXTENSION.equalsIgnoreCase(extension);
}
static boolean isSnapshot(String extension) {
return Constants.Documents.PeriodicBackup.SNAPSHOT_EXTENSION.equalsIgnoreCase(extension)
|| Constants.Documents.PeriodicBackup.ENCRYPTED_SNAPSHOT_EXTENSION.equalsIgnoreCase(extension);
}
static boolean isIncrementalBackupFile(String extension) {
return Constants.Documents.PeriodicBackup.INCREMENTAL_BACKUP_EXTENSION.equalsIgnoreCase(extension)
|| Constants.Documents.PeriodicBackup.ENCRYPTED_INCREMENTAL_BACKUP_EXTENSION.equalsIgnoreCase(extension)
|| LEGACY_INCREMENTAL_BACKUP_EXTENSION.equalsIgnoreCase(extension);
}
public static final Comparator<File> COMPARATOR = (o1, o2) -> {
String baseName1 = FilenameUtils.getBaseName(o1.getName());
String baseName2 = FilenameUtils.getBaseName(o2.getName());
if (!baseName1.equals(baseName2)) {
return baseName1.compareTo(baseName2);
}
String extension1 = FilenameUtils.getExtension(o1.getName());
String extension2 = FilenameUtils.getExtension(o2.getName());
if (!extension1.equals(extension2)) {
return PeriodicBackupFileExtensionComparator.INSTANCE.compare(o1, o2);
}
long lastModified1 = o1.lastModified();
long lastModified2 = o2.lastModified();
return Long.compare(lastModified1, lastModified2);
};
}
|
[
"marcin@ravendb.net"
] |
marcin@ravendb.net
|
67c3289c282c0860b73a7aab4af9d2861159d9a7
|
81e59b7c4e37f9ca0c41c2ce9f70945ecfee4b67
|
/src/test/java/com/github/abel533/entity/test/TestExample.java
|
4bd2f02592b6a344b37274a00f884c0ee5ca80e0
|
[
"MIT"
] |
permissive
|
ziduye/Mapper
|
5ac259005c1dfa47d153fdecd206d8a45fb9c29a
|
75d717b1e2162be489f8d463d109210c8a9bf076
|
refs/heads/master
| 2021-01-18T00:46:06.571529
| 2015-04-13T01:32:01
| 2015-04-13T01:32:01
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,523
|
java
|
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 abel533@gmail.com
*
* 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.github.abel533.entity.test;
import com.github.abel533.entity.EntityMapper;
import com.github.abel533.entity.Example;
import com.github.abel533.entity.mapper.CommonMapper;
import com.github.abel533.entity.model.Country;
import com.github.abel533.mapper.MybatisHelper;
import org.apache.ibatis.session.SqlSession;
import org.junit.Assert;
import org.junit.Test;
import java.util.List;
/**
* 测试通用的Example
*
* @author liuzh
*/
public class TestExample {
@Test
public void testCountByExample() {
SqlSession sqlSession = MybatisHelper.getSqlSession();
try {
CommonMapper commonMapper = sqlSession.getMapper(CommonMapper.class);
EntityMapper entityMapper = new EntityMapper(commonMapper);
Example example = new Example(Country.class);
example.createCriteria().andGreaterThan("id", 100).andLessThanOrEqualTo("id", 150);
int count = entityMapper.countByExample(example);
Assert.assertEquals(50, count);
example = new Example(Country.class);
example.createCriteria().andLike("countryname", "A%");
count = entityMapper.countByExample(example);
Assert.assertEquals(12, count);
} finally {
sqlSession.close();
}
}
@Test
public void testDeleteByExample() {
SqlSession sqlSession = MybatisHelper.getSqlSession();
try {
CommonMapper commonMapper = sqlSession.getMapper(CommonMapper.class);
EntityMapper entityMapper = new EntityMapper(commonMapper);
Example example = new Example(Country.class);
example.createCriteria().andGreaterThan("id", 100).andLessThanOrEqualTo("id", 150);
int count = entityMapper.deleteByExample(example);
Assert.assertEquals(50, count);
example = new Example(Country.class);
example.createCriteria().andLike("countryname", "A%");
count = entityMapper.deleteByExample(example);
Assert.assertEquals(12, count);
} finally {
//回滚
sqlSession.rollback();
sqlSession.close();
}
}
@Test
public void testSelectByExample() {
SqlSession sqlSession = MybatisHelper.getSqlSession();
try {
CommonMapper commonMapper = sqlSession.getMapper(CommonMapper.class);
EntityMapper entityMapper = new EntityMapper(commonMapper);
Example example = new Example(Country.class);
example.createCriteria().andEqualTo("countryname", "China");
List<Country> countries = entityMapper.selectByExample(example);
Assert.assertEquals(1, countries.size());
Assert.assertEquals("CN", countries.get(0).getCountrycode());
example = new Example(Country.class);
example.createCriteria().andEqualTo("id", 100);
countries = entityMapper.selectByExample(example);
Assert.assertEquals(1, countries.size());
Assert.assertEquals("MY", countries.get(0).getCountrycode());
} finally {
sqlSession.close();
}
}
@Test
public void testUpdateByExampleSelective() {
SqlSession sqlSession = MybatisHelper.getSqlSession();
try {
CommonMapper commonMapper = sqlSession.getMapper(CommonMapper.class);
EntityMapper entityMapper = new EntityMapper(commonMapper);
Example example = new Example(Country.class);
example.createCriteria().andEqualTo("countryname", "China");
Country country = new Country();
country.setCountryname("天朝");
int count = entityMapper.updateByExampleSelective(country, example);
Assert.assertEquals(1, count);
example = new Example(Country.class);
example.createCriteria().andEqualTo("countryname", "天朝");
List<Country> countries = entityMapper.selectByExample(example);
Assert.assertEquals(1, countries.size());
Assert.assertEquals("天朝", countries.get(0).getCountryname());
} finally {
//回滚
sqlSession.rollback();
sqlSession.close();
}
}
@Test
public void testUpdateByExample() {
SqlSession sqlSession = MybatisHelper.getSqlSession();
try {
CommonMapper commonMapper = sqlSession.getMapper(CommonMapper.class);
EntityMapper entityMapper = new EntityMapper(commonMapper);
Example example = new Example(Country.class);
example.createCriteria().andLike("countryname", "A%");
Country country = new Country();
country.setCountryname("统一");
int count = entityMapper.updateByExample(country, example);
Assert.assertEquals(12, count);
example = new Example(Country.class);
example.createCriteria().andEqualTo("countryname", "统一");
List<Country> countries = entityMapper.selectByExample(example);
Assert.assertEquals(12, countries.size());
Assert.assertEquals("统一", countries.get(0).getCountryname());
} finally {
//回滚
sqlSession.rollback();
sqlSession.close();
}
}
}
|
[
"abel533@gmail.com"
] |
abel533@gmail.com
|
2e0fb330fe1cbd640cc54cfa68357cef68e0bdd3
|
066dcf95d870eb4537f148c2ff74fbed6820630b
|
/src/API/amazon/mws/xml/JAXB/Certificate.java
|
a20a55be92274f551bcdcc1fe2749c424e915a61
|
[
"MIT"
] |
permissive
|
VDuda/SyncRunner-Pub
|
0e24f864d24aa9d6112ba225156b7c765596186b
|
ab6b291178c08754b84f60d39e54b3ae889d476b
|
refs/heads/master
| 2022-11-17T03:43:38.054868
| 2022-08-11T15:02:11
| 2022-08-11T15:02:11
| 28,209,628
| 3
| 5
|
MIT
| 2022-10-22T16:10:55
| 2014-12-19T01:45:41
|
Java
|
UTF-8
|
Java
| false
| false
| 2,635
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.05.03 at 03:15:27 PM EDT
//
package API.amazon.mws.xml.JAXB;
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="certificate_type" type="{}StringValue"/>
* <element name="certificate_number" type="{}StringValue"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"certificateType",
"certificateNumber"
})
@XmlRootElement(name = "Certificate")
public class Certificate {
@XmlElement(name = "certificate_type", required = true)
protected StringValue certificateType;
@XmlElement(name = "certificate_number", required = true)
protected StringValue certificateNumber;
/**
* Gets the value of the certificateType property.
*
* @return
* possible object is
* {@link StringValue }
*
*/
public StringValue getCertificateType() {
return certificateType;
}
/**
* Sets the value of the certificateType property.
*
* @param value
* allowed object is
* {@link StringValue }
*
*/
public void setCertificateType(StringValue value) {
this.certificateType = value;
}
/**
* Gets the value of the certificateNumber property.
*
* @return
* possible object is
* {@link StringValue }
*
*/
public StringValue getCertificateNumber() {
return certificateNumber;
}
/**
* Sets the value of the certificateNumber property.
*
* @param value
* allowed object is
* {@link StringValue }
*
*/
public void setCertificateNumber(StringValue value) {
this.certificateNumber = value;
}
}
|
[
"volod2010@gmail.com"
] |
volod2010@gmail.com
|
5109dcb21612e6f8279849482a5b56abd746a9e2
|
647eef4da03aaaac9872c8b210e4fc24485e49dc
|
/TestMemory/wandoujia/src/main/java/com/google/zxing/oned/rss/expanded/decoders/i.java
|
cc2d1523390e39fcb1d6067a003c95fee52b4586
|
[] |
no_license
|
AlbertSnow/git_workspace
|
f2d3c68a7b6e62f41c1edcd7744f110e2bf7f021
|
a0b2cd83cfa6576182f440a44d957a9b9a6bda2e
|
refs/heads/master
| 2021-01-22T17:57:16.169136
| 2016-12-05T15:59:46
| 2016-12-05T15:59:46
| 28,154,580
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 820
|
java
|
package com.google.zxing.oned.rss.expanded.decoders;
import com.google.zxing.common.a;
abstract class i extends h
{
i(a parama)
{
super(parama);
}
protected abstract int a(int paramInt);
protected abstract void a(StringBuilder paramStringBuilder, int paramInt);
protected final void b(StringBuilder paramStringBuilder, int paramInt1, int paramInt2)
{
int i = c().a(paramInt1, paramInt2);
a(paramStringBuilder, i);
int j = a(i);
int k = 100000;
for (int m = 0; m < 5; m++)
{
if (j / k == 0)
paramStringBuilder.append('0');
k /= 10;
}
paramStringBuilder.append(j);
}
}
/* Location: C:\WorkSpace\WandDouJiaNotificationBar\WanDou1.jar
* Qualified Name: com.google.zxing.oned.rss.expanded.decoders.i
* JD-Core Version: 0.6.0
*/
|
[
"zhaojialiang@conew.com"
] |
zhaojialiang@conew.com
|
bdac3ad7465485693d4fb7c658dd219f782319b5
|
95e944448000c08dd3d6915abb468767c9f29d3c
|
/sources/org/apache/commons/codec/Charsets.java
|
9aad635aa2828da6df179a7d9ab72c9b9b564336
|
[] |
no_license
|
xrealm/tiktok-src
|
261b1faaf7b39d64bb7cb4106dc1a35963bd6868
|
90f305b5f981d39cfb313d75ab231326c9fca597
|
refs/heads/master
| 2022-11-12T06:43:07.401661
| 2020-07-04T20:21:12
| 2020-07-04T20:21:12
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 521
|
java
|
package org.apache.commons.codec;
import java.nio.charset.Charset;
public class Charsets {
public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1");
public static final Charset US_ASCII = Charset.forName("US-ASCII");
public static final Charset UTF_16 = Charset.forName("UTF-16");
public static final Charset UTF_16BE = Charset.forName("UTF-16BE");
public static final Charset UTF_16LE = Charset.forName("UTF-16LE");
public static final Charset UTF_8 = Charset.forName("UTF-8");
}
|
[
"65450641+Xyzdesk@users.noreply.github.com"
] |
65450641+Xyzdesk@users.noreply.github.com
|
3373155a78e31f30314bf47c2ce56eb82df18bcf
|
781e2692049e87a4256320c76e82a19be257a05d
|
/all_data/cs61b/src/hw2/462/Calculator.java
|
79c24a8d100cd168517e4190519298e646eebfdf
|
[] |
no_license
|
itsolutionscorp/AutoStyle-Clustering
|
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
|
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
|
refs/heads/master
| 2020-12-11T07:27:19.291038
| 2016-03-16T03:18:00
| 2016-03-16T03:18:42
| 59,454,921
| 4
| 0
| null | 2016-05-23T05:40:56
| 2016-05-23T05:40:56
| null |
UTF-8
|
Java
| false
| false
| 5,284
|
java
|
import list.EquationList;
public class Calculator {
EquationList functionList;
/**
* TASK 2: ADDING WITH BIT OPERATIONS
* add() is a method which computes the sum of two integers x and y using
* only bitwise operators.
* @param x is an integer which is one of two addends
* @param y is an integer which is the other of the two addends
* @return the sum of x and y
**/
public int add(int x, int y) {
if (y == 0){
return x;
}
int a = x ^ y;
int b = (x & y) << 1;
// System.out.println("x: "+x);
// System.out.println("y: "+y);
// System.out.println("a: "+a);
// System.out.println("b: "+b);
return add(a, b);
}
/**
* TASK 3: MULTIPLYING WITH BIT OPERATIONS
* multiply() is a method which computes the product of two integers x and
* y using only bitwise operators.
* @param x is an integer which is one of the two numbers to multiply
* @param y is an integer which is the other of the two numbers to multiply
* @return the product of x and y
**/
/* Uses the "Russian Peasant" multiplication method, as seen on
* http://www.codextream.com/multiply-two-numbers-using-bitwise-operator/
**/
public int multiply(int x, int y) {
// if (x < 0) {
// return multiply
// }
int product = 0;
int a = ~ (~ x);
int b = ~ (~ y);
while (Math.abs(a) >= 1) {
if ((a & 1) == 1){
product = add(product,b);
}
a = a >>> 1;
b = b << 1;
}
// System.out.println("x: "+x);
// System.out.println("y: "+y);
// System.out.println("a: "+a);
// System.out.println("b: "+b);
return product;
}
/**
* TASK 5A: CALCULATOR HISTORY - IMPLEMENTING THE HISTORY DATA STRUCTURE
* saveEquation() updates calculator history by storing the equation and
* the corresponding result.
* Note: You only need to save equations, not other commands. See spec for
* details.
* @param equation is a String representation of the equation, ex. "1 + 2"
* @param result is an integer corresponding to the result of the equation
**/
public void saveEquation(String equation, int result) {
if (functionList == null) {
functionList = new EquationList(equation,result,null);
} else {
functionList = new EquationList(equation,result,functionList);
}
}
/**
* TASK 5B: CALCULATOR HISTORY - PRINT HISTORY HELPER METHODS
* printAllHistory() prints each equation (and its corresponding result),
* most recent equation first with one equation per line. Please print in
* the following format:
* Ex "1 + 2 = 3"
**/
public void printAllHistory() {
EquationList cycle = functionList;
while (cycle != null) {
System.out.println(cycle.equation+" = "+cycle.result);
cycle = cycle.next;
}
}
/**
* TASK 5B: CALCULATOR HISTORY - PRINT HISTORY HELPER METHODS
* printHistory() prints each equation (and its corresponding result),
* most recent equation first with one equation per line. A maximum of n
* equations should be printed out. Please print in the following format:
* Ex "1 + 2 = 3"
**/
public void printHistory(int n) {
int i = 0;
EquationList cycle = functionList;
while (i < n) {
System.out.println(cycle.equation+" = "+cycle.result);
if (cycle.next == null) {
break;
}
cycle = cycle.next;
i = add(i,1);
}
}
/**
* TASK 6: CLEAR AND UNDO
* undoEquation() removes the most recent equation we saved to our history.
**/
public void undoEquation() {
if (functionList != null) {
functionList = functionList.next;
}
}
/**
* TASK 6: CLEAR AND UNDO
* clearHistory() removes all entries in our history.
**/
public void clearHistory() {
functionList = null;
}
/**
* TASK 7: ADVANCED CALCULATOR HISTORY COMMANDS
* cumulativeSum() computes the sum over the result of each equation in our
* history.
* @return the sum of all of the results in history
**/
public int cumulativeSum() {
int sum = 0;
EquationList cycle = functionList;
while (cycle != null) {
sum = add(sum,cycle.result);
cycle = cycle.next;
}
return sum;
}
/**
* TASK 7: ADVANCED CALCULATOR HISTORY COMMANDS
* cumulativeProduct() computes the product over the result of each equation
* in history.
* @return the product of all of the results in history
**/
public int cumulativeProduct() {
if (functionList != null) {
EquationList cycle = functionList;
int mul = cycle.result;
cycle = cycle.next;
while (cycle != null) {
mul = multiply(mul,cycle.result);
cycle = cycle.next;
}
return mul;
}
return 0;
}
}
|
[
"jmoghadam@berkeley.edu"
] |
jmoghadam@berkeley.edu
|
4b7d1d27c7f81da7dcd5617b2a8e0d8027bb1ddb
|
183f9c5e8090de44de2132ae02b400928f3354f3
|
/src/main/java/com/sangupta/jerry/util/DateUtils.java
|
0ffa0686198c4a24f068c2cf1b6f54151820168b
|
[
"Apache-2.0"
] |
permissive
|
sangupta/jerry-core
|
b6e6664607dfba35d668b5585c66df53c960c667
|
25041c87770aa67c9694d185c8810ec0af3a6997
|
refs/heads/master
| 2023-07-02T03:17:31.374922
| 2022-09-21T00:03:24
| 2022-09-21T00:03:24
| 16,635,253
| 6
| 2
|
Apache-2.0
| 2023-06-19T19:38:23
| 2014-02-08T03:50:38
|
Java
|
UTF-8
|
Java
| false
| false
| 3,643
|
java
|
/**
*
* jerry - Common Java Functionality
* Copyright (c) 2012-present, Sandeep Gupta
*
* http://sangupta.com/projects/jerry-core
*
* 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.sangupta.jerry.util;
import java.util.Date;
/**
* @author sangupta
*
*/
public abstract class DateUtils {
protected DateUtils() throws InstantiationException {
throw new InstantiationException("Instances of this class are forbidden");
}
/**
* One second expressed as millis
*/
public static final long ONE_SECOND = 1000l;
/**
* Fifteen seconds expressed as millis
*/
public static final long FIFTEEN_SECONDS = 15l * ONE_SECOND;
/**
* One minute expressed as millis
*/
public static final long ONE_MINUTE = 60l * ONE_SECOND;
/**
* Five minutes expressed as millis
*/
public static final long FIVE_MINUTES = 5l * ONE_MINUTE;
/**
* Fifteen minutes expressed in millis
*/
public static final long FIFTEEN_MINUTES = 15l * ONE_MINUTE;
/**
* One hour expressed as millis
*/
public static final long ONE_HOUR = 60l * ONE_MINUTE;
/**
* 6 hours expressed as millis
*/
public static final long SIX_HOURS = 6l * ONE_HOUR;
/**
* 12 hours expressed as millis
*/
public static final long TWELVE_HOURS = 12l * ONE_HOUR;
/**
* One day (24-hours) expressed as millis
*/
public static final long ONE_DAY = 24l * ONE_HOUR;
/**
* One week (7 days) expressed as millis
*/
public static final long ONE_WEEK = 7l * ONE_DAY;
/**
* One month (30-days) expressed as millis
*/
public static final long ONE_MONTH = 30l * ONE_DAY;
/**
* One year (365-days) expressed as millis
*/
public static final long ONE_YEAR = 365l * ONE_DAY;
/**
* Convert the given time (in millis) represented as a {@link Long} object
* into the {@link Date} object.
*
* @param millis
* the millis to be converted
*
* @return the {@link Date} object representation, or <code>null</code> if
* the incoming millis are <code>null</code>
*/
public static final Date getDate(Long millis) {
if(millis == null) {
return null;
}
return new Date(millis);
}
/**
* Find the difference between two {@link Date} objects in milliseconds. The
* method is <code>null</code>-safe. If either of the object is
* <code>null</code>, the total time of the other object is returned. If
* both the objects are <code>null</code>, a difference of <code>0</code> is
* returned. The value is always positive.
*
* @param first
* the first {@link Date} object
*
* @param second
* the second {@link Date} object
*
* @return the difference in milli-seconds.
*/
public static final long getDifference(Date first, Date second) {
if(first == null && second == null) {
return 0l;
}
if(first == null) {
return second.getTime();
}
if(second == null) {
return first.getTime();
}
long difference = first.getTime() - second.getTime();
if(difference < 0) {
return 0 - difference;
}
return difference;
}
}
|
[
"sandy.pec@gmail.com"
] |
sandy.pec@gmail.com
|
84312f58fae74be5822b0fccbe44eaaa4dba8893
|
216631a728680277640840ceb147e6d9ef6348b7
|
/src/main/java/net/balgre/controller/ReviewController.java
|
d96390084e3af93b6d8cb4e3337adb5176851c72
|
[] |
no_license
|
jingug1004/TNA3
|
c3e8e9ab9f92cb757dce02e11162ee0c7e84f1e1
|
28e06099a3f4bc4ddb5344193146e69e2a5525d4
|
refs/heads/master
| 2020-03-07T14:49:24.494275
| 2019-04-26T13:34:12
| 2019-04-26T13:34:12
| 127,536,645
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,216
|
java
|
package net.balgre.controller;
import java.util.List;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import net.balgre.domain.MyReviewResponse;
import net.balgre.domain.Review;
import net.balgre.domain.ReviewWait;
import net.balgre.dto.LoginDTO02;
import net.balgre.service.ReviewService;
@Controller
public class ReviewController {
@Autowired
private ReviewService reviewService;
@RequestMapping(value = "/myReview", method = RequestMethod.GET)
public String myReview(HttpSession session, Model model) {
LoginDTO02 login = (LoginDTO02)session.getAttribute("login");
MyReviewResponse res = reviewService.possibleReview2(login.getToken());
List<ReviewWait> res2 = res.getReviewList();
List<Review> res3 = res.getMyReviewList();
model.addAttribute("res", res);
model.addAttribute("res2", res2);
model.addAttribute("res3", res3);
return "/review/review";
}
}
|
[
"jingug1004@gmail.com"
] |
jingug1004@gmail.com
|
cfae84209ac49d0d88d12746562f2f27902de676
|
79943487f9311a0886a2cc2e5f1732f32c1b04ff
|
/engine/src/main/java/com/agiletec/aps/system/common/entity/loader/AttributeRolesLoader.java
|
f16bf0eb8c380bb513ba108b7c18e7b8736bcf30
|
[] |
no_license
|
Denix80/entando-core
|
f3b8827f9fe0789169f6e6cc160fbc2c6f322d45
|
c861199d39d28edb2d593203450d43a8ecaad7b4
|
refs/heads/master
| 2021-01-17T21:28:57.188088
| 2015-09-21T10:56:40
| 2015-09-21T10:56:40
| 42,932,167
| 0
| 0
| null | 2015-09-22T12:26:06
| 2015-09-22T12:26:06
| null |
UTF-8
|
Java
| false
| false
| 4,355
|
java
|
/*
* Copyright 2013-Present Entando Corporation (http://www.entando.com) All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.agiletec.aps.system.common.entity.loader;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.ListableBeanFactory;
import com.agiletec.aps.system.common.entity.IEntityManager;
import com.agiletec.aps.system.common.entity.model.attribute.AttributeRole;
import com.agiletec.aps.system.common.entity.parse.AttributeRoleDOM;
import com.agiletec.aps.util.FileTextReader;
/**
* The Class loader of the extra attribute roles.
* @author E.Santoboni
*/
public class AttributeRolesLoader {
private static final Logger _logger = LoggerFactory.getLogger(AttributeRolesLoader.class);
public Map<String, AttributeRole> extractAttributeRoles(String attributeRolesFileName, BeanFactory beanFactory, IEntityManager entityManager) {
Map<String, AttributeRole> attributeRoles = new HashMap<String, AttributeRole>();
try {
this.setEntityManager(entityManager);
this.setBeanFactory(beanFactory);
this.loadDefaultRoles(attributeRolesFileName, attributeRoles);
this.loadExtraRoles(attributeRoles);
} catch (Throwable t) {
//ApsSystemUtils.logThrowable(t, this, "extractAttributeRoles", "Error loading attribute Roles");
_logger.error("Error loading attribute Roles", t);
}
return attributeRoles;
}
private void loadDefaultRoles(String attributeRolesFileName, Map<String, AttributeRole> attributeRoles) {
try {
String xml = this.extractConfigFile(attributeRolesFileName);
if (null != xml) {
AttributeRoleDOM dom = new AttributeRoleDOM();
attributeRoles.putAll(dom.extractRoles(xml, attributeRolesFileName));
}
} catch (Throwable t) {
_logger.error("Error loading attribute Roles : file {}", attributeRolesFileName, t);
//ApsSystemUtils.logThrowable(t, this, "loadDefaultRoles", "Error loading attribute Roles : file " + attributeRolesFileName);
}
}
private void loadExtraRoles(Map<String, AttributeRole> attributeRoles) {
try {
ListableBeanFactory factory = (ListableBeanFactory) this.getBeanFactory();
String[] defNames = factory.getBeanNamesForType(ExtraAttributeRolesWrapper.class);
for (int i=0; i<defNames.length; i++) {
try {
Object loader = this.getBeanFactory().getBean(defNames[i]);
if (loader != null) {
((ExtraAttributeRolesWrapper) loader).executeLoading(attributeRoles, this.getEntityManager());
}
} catch (Throwable t) {
_logger.error("Error extracting attribute support object : bean {}", defNames[i], t);
//ApsSystemUtils.logThrowable(t, this, "loadExtraRoles", "Error extracting attribute support object : bean " + defNames[i]);
}
}
} catch (Throwable t) {
_logger.error("Error loading attribute support object", t);
//ApsSystemUtils.logThrowable(t, this, "loadExtraRoles", "Error loading attribute support object");
}
}
private String extractConfigFile(String fileName) throws Throwable {
InputStream is = this.getEntityManager().getClass().getResourceAsStream(fileName);
if (null == is) {
_logger.debug("{}: there isn't any object to load : file {}", this.getEntityManager().getClass().getName(), fileName);
return null;
}
return FileTextReader.getText(is);
}
protected IEntityManager getEntityManager() {
return _entityManager;
}
protected void setEntityManager(IEntityManager entityManager) {
this._entityManager = entityManager;
}
protected BeanFactory getBeanFactory() {
return _beanFactory;
}
protected void setBeanFactory(BeanFactory beanFactory) {
this._beanFactory = beanFactory;
}
private IEntityManager _entityManager;
private BeanFactory _beanFactory;
}
|
[
"eugenio.santoboni@gmail.com"
] |
eugenio.santoboni@gmail.com
|
3a76d617ab61e72aa2c19514086f9e300e5d2f92
|
f27f09e4b4b2302e33b84417a16fbb5c698b1cdc
|
/gwtent/src/main/java/com/gwtent/aop/client/advice/AfterReturningAdvice.java
|
a695afc5565f91901b9638d0300597b70820b25f
|
[
"Apache-2.0"
] |
permissive
|
nikelin/gwtent
|
f24b63fb49c698d561cca12bf83e72ee61dad7f8
|
e42ac106ad1b51e5d9764a86f9a9588c2a289410
|
refs/heads/master
| 2020-04-19T10:18:50.905010
| 2014-09-12T15:24:58
| 2014-09-12T15:24:59
| 23,965,815
| 2
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,671
|
java
|
/*******************************************************************************
* Copyright 2001, 2007 JamesLuo(JamesLuo.au@gmail.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.
*
* Contributors:
*******************************************************************************/
package com.gwtent.aop.client.advice;
import com.gwtent.aop.client.intercept.MethodInvocation;
import com.gwtent.reflection.client.Method;
/**
*
* @author JamesLuo.au@gmail.com
*
*/
public class AfterReturningAdvice extends AbstractAdvice {
public AfterReturningAdvice(Method method, Object aspectInstance) {
super(method, aspectInstance);
}
@Override
public Object invoke(MethodInvocation invocation) throws Throwable {
Object returnValue = invocation.proceed();
if (shouldInvokeByReturnValue(returnValue))
getAdviceMethod().invoke(getAspectInstance(), getArgs(invocation, returnValue));
return returnValue;
}
private boolean shouldInvokeByReturnValue(Object returnValue){
// ClassType classType = TypeOracle.Instance.getClassType(returnValue.getClass());
//
// if (classType != null){
//
// }
return true;
}
}
|
[
"self@nikelin.ru"
] |
self@nikelin.ru
|
657afc0d616deffef95352f1a3459ae010ee1735
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.mm/classes.jar/com/tencent/mm/plugin/voip_cs/model/c/a.java
|
969bf63b548f1974fac88f3102eab1073ce34042
|
[] |
no_license
|
tsuzcx/qq_apk
|
0d5e792c3c7351ab781957bac465c55c505caf61
|
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
|
refs/heads/main
| 2022-07-02T10:32:11.651957
| 2022-02-01T12:41:38
| 2022-02-01T12:41:38
| 453,860,108
| 36
| 9
| null | 2022-01-31T09:46:26
| 2022-01-31T02:43:22
|
Java
|
UTF-8
|
Java
| false
| false
| 2,336
|
java
|
package com.tencent.mm.plugin.voip_cs.model.c;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.am.c;
import com.tencent.mm.am.c.a;
import com.tencent.mm.am.c.b;
import com.tencent.mm.am.h;
import com.tencent.mm.am.p;
import com.tencent.mm.network.g;
import com.tencent.mm.network.m;
import com.tencent.mm.network.s;
import com.tencent.mm.protocal.protobuf.fzt;
import com.tencent.mm.protocal.protobuf.fzu;
import com.tencent.mm.sdk.platformtools.Log;
public final class a
extends p
implements m
{
private h callback;
public c rr;
public a(int paramInt1, long paramLong1, long paramLong2, String paramString, int paramInt2)
{
AppMethodBeat.i(125422);
Object localObject = new c.a();
((c.a)localObject).otE = new fzt();
((c.a)localObject).otF = new fzu();
((c.a)localObject).uri = "/cgi-bin/micromsg-bin/csvoiphangup";
((c.a)localObject).funcId = 880;
((c.a)localObject).otG = 0;
((c.a)localObject).respCmdId = 0;
this.rr = ((c.a)localObject).bEF();
localObject = (fzt)c.b.b(this.rr.otB);
((fzt)localObject).abmP = paramInt1;
((fzt)localObject).abKe = paramLong1;
((fzt)localObject).ZvA = paramLong2;
((fzt)localObject).abXB = paramString;
((fzt)localObject).YKo = paramInt2;
((fzt)localObject).abmO = System.currentTimeMillis();
AppMethodBeat.o(125422);
}
public final int doScene(g paramg, h paramh)
{
AppMethodBeat.i(125423);
this.callback = paramh;
int i = dispatch(paramg, this.rr, this);
AppMethodBeat.o(125423);
return i;
}
public final int getType()
{
return 880;
}
public final void onGYNetEnd(int paramInt1, int paramInt2, int paramInt3, String paramString, s params, byte[] paramArrayOfByte)
{
AppMethodBeat.i(125424);
Log.i("MicroMsg.NetSceneVoipCSHangUp", "onGYNetEnd, errType: %d, errCode: %d, errMsg: %s", new Object[] { Integer.valueOf(paramInt2), Integer.valueOf(paramInt3), paramString });
this.callback.onSceneEnd(paramInt2, paramInt3, paramString, this);
AppMethodBeat.o(125424);
}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes2.jar
* Qualified Name: com.tencent.mm.plugin.voip_cs.model.c.a
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
e792b096b2d5c47d44ae27c75c782761cd0b7950
|
dbf70b8d061d33cca63047c1a98cdb52430c58cb
|
/Source/edu/cmu/cs/stage3/alice/core/response/AbstractPointAtAnimation.java
|
926ac882a8b45e185ad1be74bd7d782fe4569292
|
[] |
no_license
|
pwsunderland/Alice-Sunderland
|
9ffad4d6bbdaa791dc12d83ce5c62f73848e1f83
|
987ee4c889fbd1f0f66e64406f521cf23dfc7311
|
refs/heads/master
| 2021-01-01T18:07:01.647398
| 2015-05-10T23:37:17
| 2015-05-10T23:37:17
| 35,165,423
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,064
|
java
|
/*
* Copyright (c) 1999-2003, Carnegie Mellon University. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* 3. Products derived from the software may not be called "Alice",
* nor may "Alice" appear in their name, without prior written
* permission of Carnegie Mellon University.
*
* 4. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* "This product includes software developed by Carnegie Mellon University"
*/
package edu.cmu.cs.stage3.alice.core.response;
import edu.cmu.cs.stage3.alice.core.property.ReferenceFrameProperty;
import edu.cmu.cs.stage3.alice.core.property.Vector3Property;
import edu.cmu.cs.stage3.lang.Messages;
public abstract class AbstractPointAtAnimation extends OrientationAnimation {
public final ReferenceFrameProperty target = new ReferenceFrameProperty( this, "target", null );
public final Vector3Property offset = new Vector3Property( this, "offset", null );
public final Vector3Property upGuide = new Vector3Property( this, "upGuide", null );
public abstract class RuntimeAbstractPointAtAnimation extends RuntimeOrientationAnimation {
protected edu.cmu.cs.stage3.alice.core.ReferenceFrame m_target;
protected javax.vecmath.Vector3d m_offset;
protected javax.vecmath.Vector3d m_upGuide;
protected boolean m_onlyAffectYaw;
protected abstract boolean onlyAffectYaw();
//added to allow overriding in subclasses
protected edu.cmu.cs.stage3.alice.core.ReferenceFrame getTarget() {
return AbstractPointAtAnimation.this.target.getReferenceFrameValue();
}
protected edu.cmu.cs.stage3.alice.core.Transformable getSubject() {
return AbstractPointAtAnimation.this.subject.getTransformableValue();
}
protected javax.vecmath.Vector3d getOffset() {
return AbstractPointAtAnimation.this.offset.getVector3Value();
}
protected javax.vecmath.Vector3d getUpguide() {
return AbstractPointAtAnimation.this.upGuide.getVector3Value();
}
public void prologue( double t ) {
super.prologue( t );
//setSubject(getSubject());
m_target = getTarget();
m_offset = getOffset();
m_upGuide = getUpguide();
m_onlyAffectYaw = onlyAffectYaw();
if( m_target == null ) {
throw new edu.cmu.cs.stage3.alice.core.SimulationPropertyException( Messages.getString("target_value_must_not_be_null_"), null, AbstractPointAtAnimation.this.target );
}
if( m_target == m_subject ) {
throw new edu.cmu.cs.stage3.alice.core.SimulationPropertyException( Messages.getString("target_value_must_not_be_equal_to_the_subject_value_"), getCurrentStack(), AbstractPointAtAnimation.this.target );
}
if ( (m_onlyAffectYaw) && (m_subject.isAncestorOf(m_target))) {
throw new edu.cmu.cs.stage3.alice.core.SimulationPropertyException( m_subject.name.getStringValue() + " " + Messages.getString("can_t_turn_to_face_or_turn_away_from_a_part_of_itself_"), getCurrentStack(), AbstractPointAtAnimation.this.target );
}
}
protected edu.cmu.cs.stage3.math.Matrix33 getTargetMatrix33() {
return m_subject.calculatePointAt( m_target, m_offset, m_upGuide, m_asSeenBy, m_onlyAffectYaw );
}
protected edu.cmu.cs.stage3.math.Quaternion getTargetQuaternion() {
return getTargetMatrix33().getQuaternion();
}
public void update( double t ) {
//for now we will need to calculate target quaternion every frame
markTargetQuaternionDirty();
super.update( t );
}
}
}
|
[
"peter.sunderland@usma.edu"
] |
peter.sunderland@usma.edu
|
b47ef0d30d400d56954471e8b726b81a664484d5
|
d83516af69daf73a56a081f595c704d214c3963e
|
/nan21.dnet.module.bd/nan21.dnet.module.bd.domain/src/main/java/net/nan21/dnet/module/bd/elem/domain/entity/ElementInput.java
|
e82b17c7e77fb454768d1d75ce5f666d9fca1bd6
|
[] |
no_license
|
nan21/nan21.dnet.modules_oss
|
fb86d20bf8a3560d30c17e885a80f6bf48a147fe
|
0251680173bf2fa922850bef833cf85ba954bb60
|
refs/heads/master
| 2020-05-07T20:35:06.507957
| 2013-02-19T12:59:05
| 2013-02-19T12:59:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,736
|
java
|
/*
* DNet eBusiness Suite
* Copyright: 2010-2013 Nan21 Electronics SRL. All rights reserved.
* Use is subject to license terms.
*/
package net.nan21.dnet.module.bd.elem.domain.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import net.nan21.dnet.core.domain.eventhandler.DefaultEventHandler;
import net.nan21.dnet.core.domain.model.AbstractAuditable;
import net.nan21.dnet.module.bd.elem.domain.entity.Element;
import org.eclipse.persistence.annotations.Customizer;
import org.eclipse.persistence.descriptors.DescriptorEvent;
import org.hibernate.validator.constraints.NotBlank;
@NamedQueries({})
@Entity
@Table(name = ElementInput.TABLE_NAME)
@Customizer(DefaultEventHandler.class)
public class ElementInput extends AbstractAuditable {
public static final String TABLE_NAME = "BD_ELEM_IN";
public static final String SEQUENCE_NAME = "BD_ELEM_IN_SEQ";
private static final long serialVersionUID = -8865917134914502125L;
/**
* System generated unique identifier.
*/
@Column(name = "ID", nullable = false)
@NotNull
@Id
@GeneratedValue(generator = SEQUENCE_NAME)
private Long id;
@Column(name = "ALIAS", nullable = false, length = 32)
@NotBlank
private String alias;
@ManyToOne(fetch = FetchType.LAZY, targetEntity = Element.class)
@JoinColumn(name = "ELEMENT_ID", referencedColumnName = "ID")
private Element element;
@ManyToOne(fetch = FetchType.LAZY, targetEntity = Element.class)
@JoinColumn(name = "CROSSREFERENCE_ID", referencedColumnName = "ID")
private Element crossReference;
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getAlias() {
return this.alias;
}
public void setAlias(String alias) {
this.alias = alias;
}
public Element getElement() {
return this.element;
}
public void setElement(Element element) {
if (element != null) {
this.__validate_client_context__(element.getClientId());
}
this.element = element;
}
public Element getCrossReference() {
return this.crossReference;
}
public void setCrossReference(Element crossReference) {
if (crossReference != null) {
this.__validate_client_context__(crossReference.getClientId());
}
this.crossReference = crossReference;
}
public void aboutToInsert(DescriptorEvent event) {
super.aboutToInsert(event);
}
}
|
[
"mathe_attila@yahoo.com"
] |
mathe_attila@yahoo.com
|
bef8afc716e9ed5ace3734d924130f79ef6f2833
|
fa4643ed09d5395c779aeac4268f62b31c35a551
|
/application/src/main/java/br/edu/utfpr/libex7/application/service/books/RemoveBookService.java
|
ee820d47cf36c18be3cfb9732ffd0b57fb8a475b
|
[] |
no_license
|
gabrielsmartins/libex7
|
7ba1b30020b7bb885874a32f570444609332deb6
|
26a313fc2aae339370cee7ca213b5e0d2acd6fa0
|
refs/heads/master
| 2022-08-21T00:53:18.931770
| 2022-07-17T17:55:46
| 2022-07-17T17:55:46
| 259,788,112
| 0
| 0
| null | 2020-05-06T21:45:55
| 2020-04-29T00:54:14
|
HTML
|
UTF-8
|
Java
| false
| false
| 449
|
java
|
package br.edu.utfpr.libex7.application.service.books;
import br.edu.utfpr.libex7.application.ports.in.books.RemoveBookUseCase;
import br.edu.utfpr.libex7.application.ports.out.books.RemoveBookPort;
import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor
public class RemoveBookService implements RemoveBookUseCase {
private final RemoveBookPort port;
@Override
public void remove(Long id) {
port.remove(id);
}
}
|
[
"ga.smartins94@gmail.com"
] |
ga.smartins94@gmail.com
|
bc5982a8e2d231e26d7f4ddb83161347ecb95d2a
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/large-multiproject/project58/src/test/java/org/gradle/test/performance58_3/Test58_273.java
|
0a28b5a14abb25f63e7ffd1c4c23ac7130a320aa
|
[] |
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.performance58_3;
import static org.junit.Assert.*;
public class Test58_273 {
private final Production58_273 production = new Production58_273("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
5f8d275aa64caccf08087c974192e430dc3e1177
|
3e611373d2ff48dbffc25ca367c0f0e3e51e2f90
|
/AE_MQL_WS/QMM.tests/src/qmm/tests/Number_Or_BitOperatorTest.java
|
448da65fbcdda40a3ed96e777dd2bfd55a9edd30
|
[] |
no_license
|
Racheast/AE_MQL
|
999fbd74a15261006fe8f3a0e2fdc1323b05c0a5
|
3f94f6d41986ae3786ae4291736b11f0750e6091
|
refs/heads/master
| 2020-04-26T08:53:49.746321
| 2019-06-01T10:13:26
| 2019-06-01T10:13:26
| 173,438,094
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,007
|
java
|
/**
*/
package qmm.tests;
import junit.textui.TestRunner;
import qmm.Number_Or_BitOperator;
import qmm.QmmFactory;
/**
* <!-- begin-user-doc -->
* A test case for the model object '<em><b>Number Or Bit Operator</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following operations are tested:
* <ul>
* <li>{@link qmm.Number_Or_BitOperator#getLiteral() <em>Get Literal</em>}</li>
* </ul>
* </p>
* @generated
*/
public class Number_Or_BitOperatorTest extends Number_BitOperatorTest {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static void main(String[] args) {
TestRunner.run(Number_Or_BitOperatorTest.class);
}
/**
* Constructs a new Number Or Bit Operator test case with the given name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Number_Or_BitOperatorTest(String name) {
super(name);
}
/**
* Returns the fixture for this Number Or Bit Operator test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected Number_Or_BitOperator getFixture() {
return (Number_Or_BitOperator)fixture;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#setUp()
* @generated
*/
@Override
protected void setUp() throws Exception {
setFixture(QmmFactory.eINSTANCE.createNumber_Or_BitOperator());
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#tearDown()
* @generated
*/
@Override
protected void tearDown() throws Exception {
setFixture(null);
}
/**
* Tests the '{@link qmm.Number_Or_BitOperator#getLiteral() <em>Get Literal</em>}' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see qmm.Number_Or_BitOperator#getLiteral()
* @generated
*/
public void testGetLiteral() {
// TODO: implement this operation test method
// Ensure that you remove @generated or mark it @generated NOT
fail();
}
} //Number_Or_BitOperatorTest
|
[
"e1128978@student.tuwien.ac.at"
] |
e1128978@student.tuwien.ac.at
|
2539ab46f78a0e17803339cb8ce5bd062e227876
|
781e2692049e87a4256320c76e82a19be257a05d
|
/all_data/cs61bl/lab08/cs61bl-bj/SequenceTest.java
|
9640f601ffb8194c1ddbd44c4f0cefb2c8503e75
|
[] |
no_license
|
itsolutionscorp/AutoStyle-Clustering
|
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
|
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
|
refs/heads/master
| 2020-12-11T07:27:19.291038
| 2016-03-16T03:18:00
| 2016-03-16T03:18:42
| 59,454,921
| 4
| 0
| null | 2016-05-23T05:40:56
| 2016-05-23T05:40:56
| null |
UTF-8
|
Java
| false
| false
| 1,120
|
java
|
import junit.framework.TestCase;
public class SequenceTest extends TestCase {
public void testTwostring() {
Sequence<Integer> i = new Sequence<Integer>(10);
// i.myValues ={3, -7, 42, -11, 0, 6, 9, 0, 0, 0};
i.add(3);
i.add(-7);
i.add(42);
i.add(-11);
i.add(0);
i.add(6);
i.add(9);
assertEquals("3 -7 42 -11 0 6 9", i.toString());
Sequence<String> j = new Sequence<String>(10);
// i.myValues ={3, -7, 42, -11, 0, 6, 9, 0, 0, 0};
j.add("3");
j.add("-7");
j.add("42");
j.add("-11");
j.add("0");
j.add("6");
j.add("9");
}
public void testRemove() {
Sequence<Integer> i = new Sequence<Integer>(10);
i.add(3);
i.add(-7);
i.add(42);
i.add(-11);
i.add(0);
i.add(6);
i.add(9);
i.remove(2);
assertEquals("3 -7 -11 0 6 9", i.toString());
}
public void testInsert() {
Sequence<Integer> i = new Sequence<Integer>(4);
i.add(3);
i.add(-7);
i.insert(0, 1);
assertEquals("1 3 -7", i.toString());
}
public void testContains() {
Sequence<Integer> i = new Sequence<Integer>(4);
i.add(9);
assertTrue(i.contains(9));
assertFalse(i.contains(5));
}
}
|
[
"moghadam.joseph@gmail.com"
] |
moghadam.joseph@gmail.com
|
6cd79768e0b4ae2ff6c58b7d6bbfd5dcfd9d8f50
|
9b294c3bf262770e9bac252b018f4b6e9412e3ee
|
/camerazadas/source/apk/com.sonyericsson.android.camera/src-cfr-nocode/com/google/android/gms/internal/w.java
|
2ec4c3db5be404a22c0246983d2da17a087465f1
|
[] |
no_license
|
h265/camera
|
2c00f767002fd7dbb64ef4dc15ff667e493cd937
|
77b986a60f99c3909638a746c0ef62cca38e4235
|
refs/heads/master
| 2020-12-30T22:09:17.331958
| 2015-08-25T01:22:25
| 2015-08-25T01:22:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 978
|
java
|
/*
* Decompiled with CFR 0_100.
*/
package com.google.android.gms.internal;
import android.content.Context;
import android.view.MotionEvent;
import com.google.android.gms.internal.ez;
import com.google.android.gms.internal.g;
import com.google.android.gms.internal.u;
import java.util.List;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicReference;
/*
* Exception performing whole class analysis.
*/
@ez
class w
implements g,
Runnable {
private u.b lr;
private final List<Object[]> me;
private final AtomicReference<g> mf;
CountDownLatch mg;
public w(u.b var1);
private void ax();
@Override
public String a(Context var1);
@Override
public String a(Context var1, String var2);
@Override
public void a(int var1, int var2, int var3);
@Override
public void a(MotionEvent var1);
protected void a(g var1);
protected void aw();
@Override
public void run();
}
|
[
"jmrm@ua.pt"
] |
jmrm@ua.pt
|
6660d0caeeaa7c32524649036bff37d7e44571a3
|
68181e49b07b7f791fa9af082f339208e203877e
|
/infra/rest-client/src/main/java/br/com/cdc/client/author/AuthorResponse.java
|
06897217245e228a2555e2d19d69c52211254a7e
|
[] |
no_license
|
fwfurtado/fj36-7838-microservice
|
e62e738bc29e66ef7407e270b645f8be52b28a7e
|
9285050907c0a76c1c0d134d46e43ec505ad3206
|
refs/heads/master
| 2020-04-10T07:29:49.982196
| 2019-02-25T13:24:22
| 2019-02-25T13:24:22
| 160,882,033
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 325
|
java
|
package br.com.cdc.client.author;
public class AuthorResponse {
private String name;
/**
* @deprecated feign eyes only
*/
@Deprecated
private AuthorResponse() { }
public AuthorResponse(String name) {
this.name = name;
}
public String getName() {
return name;
}
}
|
[
"feh.wilinando@gmail.com"
] |
feh.wilinando@gmail.com
|
79058d1196102ca48c196d17d8b441f0fb7d797a
|
1a32d704493deb99d3040646afbd0f6568d2c8e7
|
/BOOT-INF/lib/com/google/common/collect/ImmutableBiMapFauxverideShim.java
|
4cd18d114d63e9c0d8c1752798498a11cbc40eda
|
[] |
no_license
|
yanrumei/bullet-zone-server-2.0
|
e748ff40f601792405143ec21d3f77aa4d34ce69
|
474c4d1a8172a114986d16e00f5752dc019cdcd2
|
refs/heads/master
| 2020-05-19T11:16:31.172482
| 2019-03-25T17:38:31
| 2019-03-25T17:38:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,670
|
java
|
/* */ package com.google.common.collect;
/* */
/* */ import com.google.common.annotations.GwtIncompatible;
/* */ import java.util.function.BinaryOperator;
/* */ import java.util.function.Function;
/* */ import java.util.stream.Collector;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @GwtIncompatible
/* */ abstract class ImmutableBiMapFauxverideShim<K, V>
/* */ extends ImmutableMap<K, V>
/* */ {
/* */ @Deprecated
/* */ public static <T, K, V> Collector<T, ?, ImmutableMap<K, V>> toImmutableMap(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction)
/* */ {
/* 45 */ throw new UnsupportedOperationException();
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Deprecated
/* */ public static <T, K, V> Collector<T, ?, ImmutableMap<K, V>> toImmutableMap(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction, BinaryOperator<V> mergeFunction)
/* */ {
/* 61 */ throw new UnsupportedOperationException();
/* */ }
/* */ }
/* Location: C:\Users\ikatwal\Downloads\bullet-zone-server-2.0.jar!\BOOT-INF\lib\guava-22.0.jar!\com\google\common\collect\ImmutableBiMapFauxverideShim.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 0.7.1
*/
|
[
"ishankatwal@gmail.com"
] |
ishankatwal@gmail.com
|
26de47868e211510010079ed5e55835df1a4b2b8
|
8022511ad71cf4b1eccbc4ce6ce6af1dd7c88bec
|
/oim-server/src/main/java/com/im/business/common/service/RoomChatLogService.java
|
9eb6c8662773fc6e0e3d1d2d8769feca1dd79452
|
[] |
no_license
|
softfn/im-for-pc
|
f5411d88c172adbda75099582ae70dcd18e08958
|
e34a62c337e1b7f0c0fd39286353a8c71d5864ad
|
refs/heads/master
| 2020-07-16T23:53:31.585700
| 2016-11-17T01:59:15
| 2016-11-17T01:59:15
| 73,938,576
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,230
|
java
|
package com.im.business.common.service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Service;
import com.im.business.common.data.RoomChatQuery;
import com.im.bean.RoomChatContent;
import com.im.bean.RoomChatItem;
import com.im.business.common.dao.RoomChatDAO;
import com.im.business.server.message.Head;
import com.im.business.server.message.Message;
import com.im.business.server.message.data.PageData;
import com.im.business.server.message.data.UserData;
import com.im.business.server.message.data.chat.ChatQueryData;
import com.im.business.server.message.data.chat.Content;
import com.im.business.server.message.data.chat.Item;
import com.im.business.server.message.data.chat.Section;
import com.only.query.page.DefaultPage;
/**
* @author: XiaHui
* @date: 2016年8月23日 上午11:20:14
*/
@Service
public class RoomChatLogService {
protected final Logger logger = LogManager.getLogger(this.getClass());
@Resource
RoomChatDAO roomChatDAO;
public Message queryRoomChatLog(Head head, String roomId, ChatQueryData queryData, PageData page) {
List<Map<String, Object>> contents = queryRoomChatLog( roomId, queryData, page) ;
Map<String,Object> p=new HashMap<String,Object>();
p.put("totalPage", page.getTotalPage());
p.put("pageNumber", page.getPageNumber());
head.setTime(System.currentTimeMillis());
Message m = new Message();
m.setHead(head);
m.put("roomId", roomId);
m.put("page", p);
m.put("contents", contents);
return m;
}
public List<Map<String, Object>> queryRoomChatLog(String roomId, ChatQueryData queryData, PageData page) {
List<Map<String, Object>> contents = new ArrayList<Map<String, Object>>();
if (null != roomId && !"".equals(roomId)) {
RoomChatQuery roomChatQuery = new RoomChatQuery();
roomChatQuery.setRoomId(roomId);
roomChatQuery.setText(queryData.getText());
roomChatQuery.setStartDate(queryData.getStartDate());
roomChatQuery.setEndDate(queryData.getEndDate());
DefaultPage defaultPage=new DefaultPage();
List<RoomChatContent> chatContentList = roomChatDAO.queryRoomChatContentList(roomChatQuery, defaultPage);
List<String> messageIds = new ArrayList<String>();
for (RoomChatContent rcc : chatContentList) {
messageIds.add(rcc.getMessageId());
}
Map<String, List<RoomChatItem>> chatItemMap = new HashMap<String, List<RoomChatItem>>();
if (!messageIds.isEmpty()) {
List<RoomChatItem> chatItemList = roomChatDAO.getRoomChatItemList(messageIds);
for (RoomChatItem rci : chatItemList) {
List<RoomChatItem> list = chatItemMap.get(rci.getMessageId());
if (null == list) {
list = new ArrayList<RoomChatItem>();
chatItemMap.put(rci.getMessageId(), list);
}
list.add(rci);
}
}
for (RoomChatContent rcc : chatContentList) {
Map<String, Object> map = new HashMap<String, Object>();
Content content = new Content();
UserData userData = new UserData();
userData.setHead(rcc.getUserHead());
userData.setId(rcc.getUserId());
userData.setName(rcc.getUserName());
userData.setNickname(rcc.getUserNickname());
long timestamp =rcc.getTimestamp();
List<RoomChatItem> list = chatItemMap.get(rcc.getMessageId());
List<Section> sections = new ArrayList<Section>();
if (null != list&&!list.isEmpty()) {
int index = -1;
Section section;
List<Item> items = null;
for (RoomChatItem rci : list) {
if (index != rci.getSection()) {
index = rci.getSection();
items = new ArrayList<Item>();
section = new Section();
section.setItems(items);
sections.add(section);
}
Item item = new Item();
item.setType(rci.getType());
item.setValue(rci.getFilterValue());
if (null != items) {
items.add(item);
}
}
content.setSections(sections);
map.put("userData", userData);
map.put("content", content);
map.put("timestamp", timestamp);
contents.add(0, map);
}
}
}
return contents;
}
}
|
[
"softfn@hotmail.com"
] |
softfn@hotmail.com
|
0cd2cd32ef9f6dc6b9a6340fb46fd474b2a69b7c
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/MATH-58b-11-3-SPEA2-WeightedSum:TestLen:CallDiversity/org/apache/commons/math/optimization/fitting/CurveFitter_ESTest_scaffolding.java
|
546820f425e6c82e1aab29e38a6f54f135448533
|
[] |
no_license
|
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
|
cf118b23ecb87a8bf59643e42f7556b521d1f754
|
3bb39683f9c343b8ec94890a00b8f260d158dfe3
|
refs/heads/master
| 2022-07-29T14:44:00.774547
| 2020-08-10T15:14:49
| 2020-08-10T15:14:49
| 285,804,495
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 460
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Mon Apr 06 15:17:54 UTC 2020
*/
package org.apache.commons.math.optimization.fitting;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class CurveFitter_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
4a7ecb98a3d8219f29d3ffd2942ff23a2f236549
|
6259a830a3d9e735e6779e41a678a71b4c27feb2
|
/anchor-plugin-image-task/src/main/java/org/anchoranalysis/plugin/image/task/grouped/ConsistentChannelNamesChecker.java
|
d34f80e56aec7a1bb020511abf62071b856da60c
|
[
"MIT"
] |
permissive
|
anchoranalysis/anchor-plugins
|
103168052419b1072d0f8cd0201dabfb7dc84f15
|
5817d595d171b8598ab9c0195586c5d1f83ad92e
|
refs/heads/master
| 2023-07-24T02:38:11.667846
| 2023-07-18T07:51:10
| 2023-07-18T07:51:10
| 240,064,307
| 2
| 0
|
MIT
| 2023-07-18T07:51:12
| 2020-02-12T16:48:04
|
Java
|
UTF-8
|
Java
| false
| false
| 3,225
|
java
|
/*-
* #%L
* anchor-plugin-image-task
* %%
* Copyright (C) 2010 - 2020 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche
* %%
* 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.
* #L%
*/
package org.anchoranalysis.plugin.image.task.grouped;
import com.google.common.base.Preconditions;
import java.util.Set;
import lombok.Getter;
import org.anchoranalysis.core.exception.OperationFailedException;
import org.anchoranalysis.image.core.channel.Channel; // NOSONAR
/**
* Checks that each image has an identical set of {@link Channel}-names, and RGB-state.
*
* @author Owen Feehan
*/
public class ConsistentChannelNamesChecker {
/** The names of {@link Channel}s that are consistent across all images. */
@Getter private Set<String> channelNames;
/**
* Whether the {@link Stack} from which the {@link Channel}s originate was RGB or not.
*
* <p>This must also be consistent across all images.
*/
private boolean rgb;
/**
* Checks that the channel-names are consistent.
*
* @param channelNames the names of the channels to check.
* @param rgb whether these channels originate from an image that is RGB or not.
* @throws OperationFailedException if the image do not have identical channel-names or RGB
* status.
*/
public void checkChannelNames(Set<String> channelNames, boolean rgb)
throws OperationFailedException {
Preconditions.checkArgument(!channelNames.isEmpty());
if (this.channelNames == null) {
this.channelNames = channelNames;
this.rgb = rgb;
} else {
if (!this.channelNames.equals(channelNames)) {
throw new OperationFailedException(
String.format(
"All images must have identical channel-names, but they are not consistent: %s versus %s",
this.channelNames, channelNames));
}
if (this.rgb != rgb) {
throw new OperationFailedException(
"All images must be either RGB, or not-RGB, but a mixture is not allowed");
}
}
}
}
|
[
"owenfeehan@users.noreply.github.com"
] |
owenfeehan@users.noreply.github.com
|
d902b44e94c8cbc8311e946eedafccf38534431b
|
61a622eab52cbea805e9ccd5ffe92278cab04877
|
/Javanewfeature/src/main/java/luozix/start/lambdas/exams/answers/chapter9/CallbackArtistAnalyser.java
|
89b34ee801b33fafb2bf54c9f141e8bd06d04669
|
[
"Apache-2.0"
] |
permissive
|
renyiwei-xinyi/jmh-and-javanew
|
edbbd611c5365211fe2718cdddf3de5e3ffd6487
|
c70d5043420a2f7f8e500de076ad82f5df801756
|
refs/heads/master
| 2023-03-09T06:15:56.504278
| 2021-02-28T12:40:55
| 2021-02-28T12:40:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 925
|
java
|
package luozix.start.lambdas.exams.answers.chapter9;
import java.util.function.Consumer;
import java.util.function.Function;
import luozix.start.lambdas.exams.examples.chapter1.Artist;
public class CallbackArtistAnalyser implements ArtistAnalyzer {
private final Function<String, Artist> artistLookupService;
public CallbackArtistAnalyser(Function<String, Artist> artistLookupService) {
this.artistLookupService = artistLookupService;
}
@Override
public void isLargerGroup(String artistName, String otherArtistName, Consumer<Boolean> handler) {
boolean isLarger = getNumberOfMembers(artistName) > getNumberOfMembers(otherArtistName);
handler.accept(isLarger);
}
private long getNumberOfMembers(String artistName) {
return artistLookupService.apply(artistName)
.getMembers()
.count();
}
}
|
[
"xiaoyulong1988@gmail.com"
] |
xiaoyulong1988@gmail.com
|
2daa2d8be872c8185be131987489c0155a6051cc
|
05cb7fbdfbc22a4bf4a6e7810673ae4dffd3bc8f
|
/demos/bridge/jsf2-flows-portlet/src/main/java/com/liferay/faces/demos/service/CustomerService.java
|
b66e9b0045efb7ae781567e23d7a0dece873321f
|
[] |
no_license
|
thomassadowsky/liferay-faces
|
e1224272f2972b91de48e761b985c03a085b2a0a
|
018f2377231721e207d8fa5e3cfccce635a06e0b
|
refs/heads/master
| 2021-01-24T23:11:58.913232
| 2019-09-25T09:07:33
| 2019-09-25T09:07:33
| 15,863,183
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 787
|
java
|
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.faces.demos.service;
import com.liferay.faces.demos.dto.Customer;
/**
* @author Neil Griffin
*/
public interface CustomerService {
public void save(Customer customer);
}
|
[
"neil.griffin.scm@gmail.com"
] |
neil.griffin.scm@gmail.com
|
9c72911bbb834194b50ad40bb04e0925986cf905
|
0ff504f363c057e256556405acefdf3f827006fd
|
/src/main/java/com/app/demo/Gof23Model/adapter/section1/OuterUserInfo.java
|
1e84feec02fde74be9a88f4cd8ae5a9ff81adad8
|
[] |
no_license
|
Justdoitwj/breeze
|
b16606036c5303f5e9c9b4310ec711629ff77920
|
b772e01a3c1ede32c15cf106bd6a61b18be5671a
|
refs/heads/dev
| 2022-06-30T13:29:47.901212
| 2021-04-11T14:40:32
| 2021-04-11T14:40:32
| 210,748,978
| 1
| 2
| null | 2022-06-21T01:56:21
| 2019-09-25T03:37:36
|
Java
|
UTF-8
|
Java
| false
| false
| 1,724
|
java
|
package com.app.demo.Gof23Model.adapter.section1;
import java.util.Map;
/**
* @author cbf4Life cbf4life@126.com
* I'm glad to share my knowledge with you all.
* 把OuterUser包装成UserInfo
*/
@SuppressWarnings("all")
public class OuterUserInfo extends OuterUser implements IUserInfo {
private Map baseInfo = super.getUserBaseInfo(); //员工的基本信息
private Map homeInfo = super.getUserHomeInfo(); //员工的家庭 信息
private Map officeInfo = super.getUserOfficeInfo(); //工作信息
/*
* 家庭地址
*/
@Override
public String getHomeAddress() {
String homeAddress = (String)this.homeInfo.get("homeAddress");
System.out.println(homeAddress);
return homeAddress;
}
/*
* 家庭电话号码
*/
@Override
public String getHomeTelNumber() {
String homeTelNumber = (String)this.homeInfo.get("homeTelNumber");
System.out.println(homeTelNumber);
return homeTelNumber;
}
/*
*职位信息
*/
@Override
public String getJobPosition() {
String jobPosition = (String)this.officeInfo.get("jobPosition");
System.out.println(jobPosition);
return jobPosition;
}
/*
* 手机号码
*/
public String getMobileNumber() {
String mobileNumber = (String)this.baseInfo.get("mobileNumber");
System.out.println(mobileNumber);
return mobileNumber;
}
/*
* 办公电话
*/
@Override
public String getOfficeTelNumber() {
String officeTelNumber = (String)this.officeInfo.get("officeTelNumber");
System.out.println(officeTelNumber);
return officeTelNumber;
}
/*
* 员工的名称
*/
@Override
public String getUserName() {
String userName = (String)this.baseInfo.get("userName");
System.out.println(userName);
return userName;
}
}
|
[
"13227866253@163.com"
] |
13227866253@163.com
|
3a5f333e109bf50bc0268c93e194c9559278d0eb
|
febcf26c1afebd840d969908f9837ae869cc376d
|
/libniocommon/src/main/java/cn/sdt/libniocommon/Packet.java
|
3616e12122a3eaa523b3dbe134518125230b4f05
|
[] |
no_license
|
kisdy502/ETalk
|
e8de12da81bdb4e370914557a9e8250ec0701679
|
b95da93f4fb37ca6aaa887a8b60ea11a35908d86
|
refs/heads/master
| 2021-04-30T00:59:37.928002
| 2018-02-23T08:43:09
| 2018-02-23T08:43:09
| 121,469,999
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,981
|
java
|
package cn.sdt.libniocommon;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.v4.util.ArrayMap;
/**
* Created by SDT13411 on 2018/2/12.
*/
public class Packet implements Parcelable {
protected final static int BASE_ID = 100;
public final static int HEART_ID = 1;
public final static int HEART_RESPONSE_ID = HEART_ID + 1;
public final static int REGIST_ID = BASE_ID + 1;
public final static int REGIST_RESPONSE_ID = BASE_ID + 2;
public final static int LOGIN_ID = BASE_ID + 11;
public final static int LOGIN_RESPONSE_ID = BASE_ID + 12;
public final static int CHAT_ID = BASE_ID + 21;
public final static int CHAT_RESPONSE_ID = BASE_ID + 22;
protected int pId;
protected ArrayMap<String, String> params;
public Packet(int pId) {
this.pId = pId;
params = new ArrayMap<>();
}
protected Packet(Parcel in) {
pId = in.readInt();
}
public static final Creator<Packet> CREATOR = new Creator<Packet>() {
@Override
public Packet createFromParcel(Parcel in) {
return new Packet(in);
}
@Override
public Packet[] newArray(int size) {
return new Packet[size];
}
};
public int getpId() {
return pId;
}
public void setpId(int pId) {
this.pId = pId;
}
public ArrayMap<String, String> getParams() {
return params;
}
public void setParams(ArrayMap<String, String> params) {
this.params = params;
}
public void add(String key, String value) {
params.put(key, value);
}
public String getValue(String key) {
return params.get(key);
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(pId);
}
public String toString() {
return super.toString();
}
}
|
[
"bwply2009@163.com"
] |
bwply2009@163.com
|
f431ec77d65e06aaba1b608710895df5593ae04b
|
2749c41932af2432ce8b6eda8542c134a9fbc288
|
/src/main/java/com/wizeek/leetcode/Solution1009_2.java
|
eb59e7444c4ef90376ac8c062b174cca9b90d052
|
[] |
no_license
|
araslanov/leetcode
|
857a637a0d642a4a8732afa0cd3a6321dfcdb9da
|
723564c6ec27c737cd77ac58ee2b1e5cb898c191
|
refs/heads/master
| 2022-10-15T09:21:29.161545
| 2022-09-20T06:21:39
| 2022-09-20T06:21:39
| 135,767,448
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 474
|
java
|
package com.wizeek.leetcode;
public class Solution1009_2 {
public int bitwiseComplement(int n) {
if (n == 0) {
return 1;
}
String binary = Integer.toBinaryString(n);
int l = binary.length();
int result = 0;
for (int i = 0; i < l; i++) {
char c = binary.charAt(l - i - 1);
if (c == '0') {
result += Math.pow(2, i);
}
}
return result;
}
}
|
[
"wizeek80@gmail.com"
] |
wizeek80@gmail.com
|
f487b04b5d55e3c3ba9db10981dd308807d7c6cb
|
d03e4492551d03cdbf78897fc2dbdc34b074fe87
|
/common/src/main/java/org/fidoalliance/fdo/test/common/CsvUtils.java
|
aa2beb25e34a54da9a3854588e455904278da772
|
[
"Apache-2.0",
"LicenseRef-scancode-oracle-openjdk-exception-2.0",
"LGPL-2.1-only",
"LGPL-2.1-or-later",
"Classpath-exception-2.0",
"LGPL-2.0-or-later",
"GPL-2.0-only"
] |
permissive
|
himanshu7196/test-fidoiot
|
227d0845609cdbe0c774c9d00257432b341c698d
|
8e32fe4006e343e3bb4490dc65711d9e0848a19b
|
refs/heads/master
| 2023-06-13T01:19:15.766439
| 2021-06-29T09:37:07
| 2021-06-29T09:37:07
| 382,055,913
| 0
| 0
|
Apache-2.0
| 2021-07-01T14:14:13
| 2021-07-01T14:14:12
| null |
UTF-8
|
Java
| false
| false
| 1,306
|
java
|
package org.fidoalliance.fdo.test.common;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Arrays;
public class CsvUtils {
/**
* Returns the CSV data in String[][] format.
*/
public static String[][] getDataArray(String filePath) throws Exception {
String line = "";
BufferedReader br = new BufferedReader(new FileReader(filePath));
int rows = countLines(filePath);
int columns = br.readLine().split(",").length;
String[][] dataArray = new String[rows - 1][columns];
Arrays.stream(dataArray).forEach(dataRow -> Arrays.fill(dataRow, ""));
TestLogger.info("numRows: " + rows + "; numCols: " + columns);
int row = 0;
while ((line = br.readLine()) != null) {
String[] data = line.split(",");
int col;
for (col = 0; col < data.length; col++) {
String element = data[col];
dataArray[row][col] = element;
TestLogger.info(element);
}
row++;
TestLogger.info("");
}
return dataArray;
}
public static int countLines(String filepath) throws IOException {
return (int) Files.lines(Paths.get(filepath), Charset.defaultCharset()).count();
}
}
|
[
"tushar.ranjan.behera@intel.com"
] |
tushar.ranjan.behera@intel.com
|
874ea66ddc6843b68b7e9546b3b2cb34ac2decad
|
e5fcecd08dc30e947cf11d1440136994226187c6
|
/SpagoBIQbeEngine/src/main/java/it/eng/spagobi/engines/worksheet/services/designer/GetWorksheetImagesListAction.java
|
87f69e89705c70bfee6e5bef5724323ebf8fc332
|
[] |
no_license
|
skoppe/SpagoBI
|
16851fa5a6949b5829702eaea2724cee0629560b
|
7a295c096e3cca9fb53e5c125b9566983472b259
|
refs/heads/master
| 2021-05-05T10:18:35.120113
| 2017-11-27T10:26:44
| 2017-11-27T10:26:44
| 104,053,911
| 0
| 0
| null | 2017-09-19T09:19:44
| 2017-09-19T09:19:43
| null |
UTF-8
|
Java
| false
| false
| 2,871
|
java
|
/* SpagoBI, the Open Source Business Intelligence suite
* Copyright (C) 2012 Engineering Ingegneria Informatica S.p.A. - SpagoBI Competency Center
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0, without the "Incompatible With Secondary Licenses" notice.
* If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package it.eng.spagobi.engines.worksheet.services.designer;
import it.eng.spago.base.SourceBean;
import it.eng.spagobi.engines.qbe.QbeEngineConfig;
import it.eng.spagobi.engines.qbe.services.core.AbstractQbeEngineAction;
import it.eng.spagobi.utilities.engines.SpagoBIEngineServiceException;
import it.eng.spagobi.utilities.engines.SpagoBIEngineServiceExceptionHandler;
import it.eng.spagobi.utilities.service.JSONSuccess;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import org.apache.log4j.Logger;
import org.json.JSONArray;
/**
* The Class GetWorksheetImagesListAction.
*
* @author Davide Zerbetto (davide.zerbetto@eng.it)
*/
public class GetWorksheetImagesListAction extends AbstractQbeEngineAction {
// INPUT PARAMETERS
public static String CALLBACK = "callback";
// OUTPUT PARAMETERS
// SESSION PARAMETRES
// AVAILABLE PUBLISHERS
/** Logger component. */
private static transient Logger logger = Logger.getLogger(GetWorksheetImagesListAction.class);
public static final String ENGINE_NAME = "SpagoBIQbeEngine";
public void service(SourceBean request, SourceBean response) {
logger.debug("IN");
try {
super.service(request, response);
File[] images = getImagesList();
JSONArray array = new JSONArray();
for (int i = 0; i < images.length; i++) {
JSONArray temp = new JSONArray();
temp.put(images[i].getName());
array.put(temp);
}
String callback = getAttributeAsString( CALLBACK );
try {
if(callback == null) {
writeBackToClient( new JSONSuccess( array ));
} else {
writeBackToClient( new JSONSuccess( array, callback ));
}
} catch (IOException e) {
String message = "Impossible to write back the responce to the client";
throw new SpagoBIEngineServiceException(getActionName(), message, e);
}
} catch (Throwable t) {
throw SpagoBIEngineServiceExceptionHandler.getInstance().getWrappedException(getActionName(), getEngineInstance(), t);
} finally {
logger.debug("OUT");
}
}
public static File[] getImagesList() {
logger.debug("IN");
File imagesDir = QbeEngineConfig.getInstance().getWorksheetImagesDir();
File[] images = imagesDir.listFiles(new FileFilter() {
public boolean accept(File pathname) {
if (pathname.isFile()) {
return true;
}
return false;
}
});
logger.debug("OUT");
return images;
}
}
|
[
"mail@skoppe.eu"
] |
mail@skoppe.eu
|
630bc70458ec9f586cd87d3353da01c1637550b7
|
e21d17cdcd99c5d53300a7295ebb41e0f876bbcb
|
/22_Chapters_Edition/src/main/java/com/lypgod/test/tij4/practices/Ch16_Arrays/Practice23/Practice23.java
|
b71aa875994a2f6c50192663541232b3d806026b
|
[] |
no_license
|
lypgod/Thinking_In_Java_4th_Edition
|
dc42a377de28ae51de2c4000a860cd3bc93d0620
|
5dae477f1a44b15b9aa4944ecae2175bd5d8c10e
|
refs/heads/master
| 2020-04-05T17:39:55.720961
| 2018-11-11T12:07:56
| 2018-11-11T12:08:26
| 157,070,646
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 672
|
java
|
package com.lypgod.test.tij4.practices.Ch16_Arrays.Practice23;
import java.util.Arrays;
import java.util.Collections;
import java.util.Random;
public class Practice23 {
public static void main(String[] args) {
Random random = new Random();
Integer[] integers = new Integer[10];
for (int i = 0; i < integers.length; i++) {
integers[i] = random.nextInt(100);
}
System.out.println(Arrays.toString(integers));
Arrays.sort(integers);
System.out.println(Arrays.toString(integers));
Arrays.sort(integers, Collections.reverseOrder());
System.out.println(Arrays.toString(integers));
}
}
|
[
"lypgod@hotmail.com"
] |
lypgod@hotmail.com
|
12c4d59677030f3a436c38611116819348501c56
|
a42251b5c7105db9d95453c31cbffc0fa6dcb354
|
/profiler-test/src/main/java/com/navercorp/pinpoint/test/classloader/TestClassList.java
|
8a285b28b358f8538280264466888c186a759209
|
[
"DOC",
"LicenseRef-scancode-free-unknown",
"CC0-1.0",
"OFL-1.1",
"GPL-1.0-or-later",
"CC-PDDC",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference",
"MITNFA",
"MIT",
"CC-BY-4.0",
"OFL-1.0"
] |
permissive
|
asdad-emizzy/pinpoint
|
671234c41b22e3d891f9d35333d66ee0d5ef059d
|
f2fcb8d415019d0cea2e3d331e468b59fbe88b1a
|
refs/heads/master
| 2021-07-17T06:05:36.867590
| 2020-05-13T08:02:29
| 2020-05-13T08:02:29
| 155,566,238
| 3
| 0
|
Apache-2.0
| 2020-05-13T08:00:55
| 2018-10-31T13:56:04
|
Java
|
UTF-8
|
Java
| false
| false
| 1,901
|
java
|
/*
* Copyright 2016 NAVER Corp.
*
* 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.navercorp.pinpoint.test.classloader;
import java.util.ArrayList;
import java.util.List;
/**
* @author Woonduk Kang(emeroad)
*/
public class TestClassList {
private List<String> testClassList = new ArrayList<String>();
public TestClassList() {
add("com.navercorp.pinpoint.bootstrap.");
add("com.navercorp.pinpoint.common.");
add("com.navercorp.pinpoint.thrift.");
add("com.navercorp.pinpoint.profiler.context.");
add("com.navercorp.pinpoint.test.MockApplicationContext");
add("com.navercorp.pinpoint.test.TBaseRecorder");
add("com.navercorp.pinpoint.test.TBaseRecorderAdaptor");
add("com.navercorp.pinpoint.test.ListenableDataSender");
add("com.navercorp.pinpoint.test.ListenableDataSender$Listener");
add("com.navercorp.pinpoint.test.ResettableServerMetaDataHolder");
add("com.navercorp.pinpoint.test.junit4.TestContext");
add("com.navercorp.pinpoint.test.junit4.IsRootSpan");
add("org.apache.thrift.TBase");
add("junit.");
add("org.hamcrest.");
add("org.junit.");
}
private void add(String className) {
this.testClassList.add(className);
}
public List<String> getTestClassList() {
return testClassList;
}
}
|
[
"wd.kang@navercorp.com"
] |
wd.kang@navercorp.com
|
26f70d368d21abc9d04070d9977e7fe57a221b69
|
3ef55e152decb43bdd90e3de821ffea1a2ec8f75
|
/large/module0633_generated/src/java/module0633_generated/a/Foo0.java
|
52edfe7ffec45e6b52b4b4c119ccb6fe6cebc91c
|
[
"BSD-3-Clause"
] |
permissive
|
salesforce/bazel-ls-demo-project
|
5cc6ef749d65d6626080f3a94239b6a509ef145a
|
948ed278f87338edd7e40af68b8690ae4f73ebf0
|
refs/heads/master
| 2023-06-24T08:06:06.084651
| 2023-03-14T11:54:29
| 2023-03-14T11:54:29
| 241,489,944
| 0
| 5
|
BSD-3-Clause
| 2023-03-27T11:28:14
| 2020-02-18T23:30:47
|
Java
|
UTF-8
|
Java
| false
| false
| 1,304
|
java
|
package module0633_generated.a;
import javax.net.ssl.*;
import javax.rmi.ssl.*;
import java.awt.datatransfer.*;
/**
* Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
* labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
* Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
*
* @see javax.management.Attribute
* @see javax.naming.directory.DirContext
* @see javax.net.ssl.ExtendedSSLSession
*/
@SuppressWarnings("all")
public abstract class Foo0<M> implements module0633_generated.a.IFoo0<M> {
javax.rmi.ssl.SslRMIClientSocketFactory f0 = null;
java.awt.datatransfer.DataFlavor f1 = null;
java.beans.beancontext.BeanContext f2 = null;
public M element;
public static Foo0 instance;
public static Foo0 getInstance() {
return instance;
}
public static <T> T create(java.util.List<T> input) {
return null;
}
public String getName() {
return element.toString();
}
public void setName(String string) {
return;
}
public M get() {
return element;
}
public void set(Object element) {
this.element = (M)element;
}
public M call() throws Exception {
return (M)getInstance().call();
}
}
|
[
"gwagenknecht@salesforce.com"
] |
gwagenknecht@salesforce.com
|
3232d08e1c938282c25f982ba50dfa229b9b0428
|
f222dbc0c70f2372179c01ca9e6f7310ab624d63
|
/soap/src/java/com/zimbra/soap/mail/message/CheckRecurConflictsResponse.java
|
b6910714bda2a41b7ade80a69e672d2d6958443d
|
[] |
no_license
|
Prashantsurana/zm-mailbox
|
916480997851f55d4b2de1bc8034c2187ed34dda
|
2fb9a0de108df9c2cd530fe3cb2da678328b819d
|
refs/heads/develop
| 2021-01-23T01:07:59.215154
| 2017-05-26T09:18:30
| 2017-05-26T10:36:04
| 85,877,552
| 1
| 0
| null | 2017-03-22T21:23:04
| 2017-03-22T21:23:04
| null |
UTF-8
|
Java
| false
| false
| 2,539
|
java
|
/*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Server
* Copyright (C) 2011, 2012, 2013, 2014, 2016 Synacor, Inc.
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software Foundation,
* version 2 of the License.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program.
* If not, see <https://www.gnu.org/licenses/>.
* ***** END LICENSE BLOCK *****
*/
package com.zimbra.soap.mail.message;
import com.google.common.base.Objects;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
import java.util.Collections;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import com.zimbra.common.soap.MailConstants;
import com.zimbra.soap.mail.type.ConflictRecurrenceInstance;
@XmlAccessorType(XmlAccessType.NONE)
@XmlRootElement(name="CheckRecurConflictsResponse")
public class CheckRecurConflictsResponse {
/**
* @zm-api-field-description Information on conflicting instances
*/
@XmlElement(name=MailConstants.E_INSTANCE /* inst */, required=false)
private List<ConflictRecurrenceInstance> instances = Lists.newArrayList();
public CheckRecurConflictsResponse() {
}
public void setInstances(Iterable <ConflictRecurrenceInstance> instances) {
this.instances.clear();
if (instances != null) {
Iterables.addAll(this.instances,instances);
}
}
public CheckRecurConflictsResponse addInstance(
ConflictRecurrenceInstance instance) {
this.instances.add(instance);
return this;
}
public List<ConflictRecurrenceInstance> getInstances() {
return Collections.unmodifiableList(instances);
}
public Objects.ToStringHelper addToStringInfo(
Objects.ToStringHelper helper) {
return helper
.add("instances", instances);
}
@Override
public String toString() {
return addToStringInfo(Objects.toStringHelper(this))
.toString();
}
}
|
[
"shriram.vishwanathan@synacor.com"
] |
shriram.vishwanathan@synacor.com
|
13fa439f2a22a3dcaf8eba2376e6f0b9edefc628
|
ecf6da6d30a205ece6b050f5c308aa65c3ba6905
|
/src/frames/Test0.java
|
7472f5c13fe5a778adcf216c97cf59184f927849
|
[] |
no_license
|
javaandselenium/wsso2weekendsel
|
2d8eda5907ac57873fc69346a12b40efda86567c
|
8111bc43eb17b79c696cd44dbb1b8b7d39c6a821
|
refs/heads/master
| 2023-07-24T23:41:54.579694
| 2021-09-04T16:04:52
| 2021-09-04T16:04:52
| 391,297,396
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 601
|
java
|
package frames;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class Test0 {
public static void main(String[] args) {
WebDriver driver=new ChromeDriver();
driver.manage().window().maximize();
driver.get("https://www.google.com/");
driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);
driver.findElement(By.xpath("//a[@class='gb_C']")).click();
driver.switchTo().frame(0);
driver.findElement(By.xpath("//span[text()='Calendar']")).click();
}
}
|
[
"QSP@QSP"
] |
QSP@QSP
|
a27065c60c0ecf5f86357d47cc1db04a1a1e62f1
|
b97308d398479c31905802f33ef3927598f806d9
|
/src/test/java/com/jeff/fischman/spex/args/ArgParserTests.java
|
9edc52f1ea2a05c3d8275db3d85200c897aad6f7
|
[] |
no_license
|
jsf2184/trade-processor
|
01da258061a4cac8cf9b67ef0a8ff53b3fa126ea
|
c3d64debe8f08e056b196c1a385790c837b6df1b
|
refs/heads/master
| 2020-04-02T15:51:44.001820
| 2018-11-06T15:11:13
| 2018-11-06T15:11:13
| 154,586,701
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,712
|
java
|
package com.jeff.fischman.spex.args;
import com.jeff.fischman.spex.OutputField;
import com.jeff.fischman.spex.utility.StreamUtility;
import org.junit.Assert;
import org.junit.Test;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Stream;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.times;
public class ArgParserTests {
private static Stream<String> DummyStream = Stream.of("abc");
@Test
public void testWithConflictingArgs() {
verifyBadParse(new String[] {"-canned", "inputFile.csv"});
}
@Test
public void testWithHelpFlag() {
verifyBadParse(new String[] {"-h"});
}
@Test
public void testWithNoArgs() {
StreamUtility streamUtility = mock(StreamUtility.class);
when(streamUtility.getFileStream(ArgParser.DefaultInputFile)).thenReturn(DummyStream);
ArgParser sut = new ArgParser(new String[0], streamUtility);
Assert.assertTrue(sut.parse());
verify(streamUtility, times(1)).getFileStream(ArgParser.DefaultInputFile);
Assert.assertSame(DummyStream, sut.getInputStream());
Assert.assertEquals(Arrays.asList(OutputField.values()), sut.getOutputFields());
}
@Test
public void testWithGoodAlternativeInputFile() {
StreamUtility streamUtility = mock(StreamUtility.class);
when(streamUtility.getFileStream("sampleInput.csv")).thenReturn(DummyStream);
ArgParser sut = new ArgParser(new String[] {"sampleInput.csv"}, streamUtility);
Assert.assertTrue(sut.parse());
verify(streamUtility, times(1)).getFileStream("sampleInput.csv");
Assert.assertSame(DummyStream, sut.getInputStream());
}
@Test
public void testWithNonExistentInputFile() {
StreamUtility streamUtility = mock(StreamUtility.class);
when(streamUtility.getFileStream("nonExistent.csv")).thenReturn(null);
ArgParser sut = new ArgParser(new String[] {"nonExistent.csv"}, streamUtility);
Assert.assertFalse(sut.parse());
verify(streamUtility, times(1)).getFileStream("nonExistent.csv");
Assert.assertNull(sut.getInputStream());
}
@Test
public void testWithCannedInput() {
StreamUtility streamUtility = mock(StreamUtility.class);
when(streamUtility.getCannedSampleInputStream()).thenReturn(DummyStream);
ArgParser sut = new ArgParser(new String[] {"-canned"}, streamUtility);
Assert.assertTrue(sut.parse());
verify(streamUtility, times(1)).getCannedSampleInputStream();
Assert.assertSame(DummyStream, sut.getInputStream());
}
@Test
public void testWithAlteredOutputChars() {
StreamUtility streamUtility = mock(StreamUtility.class);
when(streamUtility.getCannedSampleInputStream()).thenReturn(DummyStream);
// shuffled order
ArgParser sut = new ArgParser(new String[] {"-output", "vgmw"}, streamUtility);
Assert.assertTrue(sut.parse());
List<OutputField> actual = sut.getOutputFields();
List<OutputField> expected = Arrays.asList(OutputField.volume,
OutputField.timegap,
OutputField.maxprice,
OutputField.wavg);
Assert.assertEquals(expected, actual);
}
@Test
public void testWithDuplicateOutputChars() {
StreamUtility streamUtility = mock(StreamUtility.class);
when(streamUtility.getCannedSampleInputStream()).thenReturn(DummyStream);
// shuffled order
ArgParser sut = new ArgParser(new String[] {"-output", "vgmwg"}, streamUtility);
Assert.assertFalse(sut.parse());
}
@Test
public void testWithBadOutputChars() {
StreamUtility streamUtility = mock(StreamUtility.class);
when(streamUtility.getCannedSampleInputStream()).thenReturn(DummyStream);
// shuffled order
ArgParser sut = new ArgParser(new String[] {"-output", "vgmx"}, streamUtility);
Assert.assertFalse(sut.parse());
}
@Test
public void testWithOutputSpecifiedButNoOutputChars() {
StreamUtility streamUtility = mock(StreamUtility.class);
when(streamUtility.getCannedSampleInputStream()).thenReturn(DummyStream);
// shuffled order
ArgParser sut = new ArgParser(new String[] {"-output"}, streamUtility);
Assert.assertFalse(sut.parse());
}
private void verifyBadParse(String[] args) {
ArgParser sut = new ArgParser(args);
Assert.assertFalse(sut.parse());
}
}
|
[
"jsf2184@gmail.com"
] |
jsf2184@gmail.com
|
f5093382c88880ee7a2e0e69cde7a0fd66910d86
|
3b8ff996d9fa48f6b25ff777bfa9fe29c1d91873
|
/src/ch16db/InsertEx01.java
|
314585c00f0f9d12fbe9a8f202cce5ec21a7c013
|
[] |
no_license
|
garasaja/Java_Study
|
b01a5393d89d5163c136dd56759bdbccd161d7cd
|
83f3a8e938fb803f4df1460c1857f23101dc94a1
|
refs/heads/master
| 2021-05-18T11:52:02.765143
| 2020-05-05T23:53:47
| 2020-05-05T23:53:47
| 249,372,730
| 0
| 0
| null | null | null | null |
UHC
|
Java
| false
| false
| 880
|
java
|
package ch16db;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
public class InsertEx01 {
public InsertEx01() {
}
public static void main(String[] args) {
try {
final String SQL = "INSERT INTO USERS (ID,NAME,EMAIL,PASSWORD) VALUES(?,?,?,?)";
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","ssar","bitc5600");//스트림연결
PreparedStatement pstmt = conn.prepareStatement(SQL);//버퍼달기 파싱 여러번 하는 거 방지(?를 사용하게 해줌)
pstmt.setInt(1, 4);//db는 1부터 시작
pstmt.setString(2, "석원모");
pstmt.setString(3, "suk@nate.com");
pstmt.setString(4, "1234");
pstmt.executeUpdate();//버퍼 입력 , COMMIT이 됨
} catch (Exception e) {
e.printStackTrace();
}
}
}
|
[
"cokj1610@naver.com"
] |
cokj1610@naver.com
|
04d5926446e75ca1df2878e1862b41ec7450eccb
|
459960cf5c9a0e5e254f83ae3971347c30434fdb
|
/src/old/net/sf/hibernate/type/SetType.java
|
215a336c954d468f60f697b7e03741da0fef334d
|
[] |
no_license
|
bradym80/MenuMine_Java
|
92374fbc0fd0b76c209a155ce57d6af4a975fd6f
|
d33ff38d34c133038a97c587631ec4abc30ffbc6
|
refs/heads/master
| 2021-01-17T22:41:58.089105
| 2014-01-31T03:52:29
| 2014-01-31T03:52:29
| 16,398,936
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,214
|
java
|
// $Id: SetType.java,v 1.2 2005/04/03 06:29:03 nick Exp $
package net.sf.hibernate.type;
import java.io.Serializable;
import net.sf.hibernate.HibernateException;
import net.sf.hibernate.collection.CollectionPersister;
import net.sf.hibernate.collection.PersistentCollection;
import net.sf.hibernate.collection.Set;
import net.sf.hibernate.engine.SessionImplementor;
public class SetType extends PersistentCollectionType {
public SetType(String role) {
super(role);
}
public PersistentCollection instantiate(SessionImplementor session,
CollectionPersister persister) {
return new Set(session);
}
public Class getReturnedClass() {
return java.util.Set.class;
}
public PersistentCollection wrap(SessionImplementor session,
Object collection) {
return new Set(session, (java.util.Set) collection);
}
public PersistentCollection assembleCachedCollection(
SessionImplementor session, CollectionPersister persister,
Serializable disassembled, Object owner) throws HibernateException {
return new Set(session, persister, disassembled, owner);
}
}
|
[
"matthewbrady@Matthews-MacBook-Air.local"
] |
matthewbrady@Matthews-MacBook-Air.local
|
0d44fcee23040fdd8b41606d6c1f814f4031f460
|
2311c1a002a025cc453bcfeff866faa68cca192d
|
/src/com/nieyue/service/impl/StudentInfoServiceImpl.java
|
75af7d9fd5aeeca3ef3ef994f07af44e76d1b036
|
[] |
no_license
|
nieyue/StudentStatus
|
3280adf99ad8e7457dcfc54f7a654aa7a704805f
|
0130e3a227decba89a990e2f61fdee13d5744e5b
|
refs/heads/master
| 2020-04-08T19:28:46.889842
| 2018-11-30T11:40:00
| 2018-11-30T11:40:00
| 159,657,071
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,872
|
java
|
package com.nieyue.service.impl;
import com.nieyue.bean.StudentInfo;
import com.nieyue.dao.StudentInfoDao;
import com.nieyue.service.StudentInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
import java.util.List;
@Service
public class StudentInfoServiceImpl implements StudentInfoService{
@Autowired
StudentInfoDao studentInfoDao;
@Transactional(propagation=Propagation.REQUIRED)
@Override
public boolean addStudentInfo(StudentInfo studentInfo) {
studentInfo.setCreateDate(new Date());
studentInfo.setUpdateDate(new Date());
boolean b = studentInfoDao.addStudentInfo(studentInfo);
return b;
}
@Transactional(propagation=Propagation.REQUIRED)
@Override
public boolean delStudentInfo(Integer studentInfo) {
boolean b = studentInfoDao.delStudentInfo(studentInfo);
return b;
}
@Transactional(propagation= Propagation.REQUIRED)
@Override
public boolean updateStudentInfo(StudentInfo studentInfo) {
boolean b = studentInfoDao.updateStudentInfo(studentInfo);
return b;
}
@Override
public StudentInfo loadStudentInfo(Integer studentInfo) {
StudentInfo r = studentInfoDao.loadStudentInfo(studentInfo);
return r;
}
@Override
public int countAll(Integer accountId) {
int c = studentInfoDao.countAll(accountId);
return c;
}
@Override
public List<StudentInfo> browsePagingStudentInfo(
Integer accountId,
int pageNum, int pageSize,
String orderName, String orderWay) {
if(pageNum<1){
pageNum=1;
}
if(pageSize<1){
pageSize=0;//没有数据
}
List<StudentInfo> l = studentInfoDao.browsePagingStudentInfo(
accountId,
pageNum-1, pageSize, orderName, orderWay);
return l;
}
}
|
[
"278076304@qq.com"
] |
278076304@qq.com
|
cb5a639831ea1f66a4c7e68689a20313b0d6ad95
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/5/5_d9b0d669040fc17892208d74a297cc7cc012168a/TransportToken/5_d9b0d669040fc17892208d74a297cc7cc012168a_TransportToken_s.java
|
84cc7ce86ddbaa3305ca46e7b8a702fb0e38f38b
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 3,240
|
java
|
/*
* Copyright 2004,2005 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.ws.secpolicy.model;
import org.apache.neethi.PolicyComponent;
import org.apache.ws.secpolicy.SP11Constants;
import org.apache.ws.secpolicy.SP12Constants;
import org.apache.ws.secpolicy.SPConstants;
import javax.xml.namespace.QName;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamWriter;
public class TransportToken extends AbstractSecurityAssertion implements TokenWrapper {
private Token transportToken;
public TransportToken(int version){
setVersion(version);
}
/**
* @return Returns the transportToken.
*/
public Token getTransportToken() {
return transportToken;
}
public QName getName() {
if ( version == SPConstants.SP_V12) {
return SP12Constants.TRANSPORT_TOKEN;
} else {
return SP11Constants.TRANSPORT_TOKEN;
}
}
public boolean isOptional() {
throw new UnsupportedOperationException();
}
public PolicyComponent normalize() {
throw new UnsupportedOperationException();
}
public short getType() {
return org.apache.neethi.Constants.TYPE_ASSERTION;
}
public void serialize(XMLStreamWriter writer) throws XMLStreamException {
String localName = getName().getLocalPart();
String namespaceURI = getName().getNamespaceURI();
String prefix = writer.getPrefix(namespaceURI);
if (prefix == null) {
writer.setPrefix(prefix, namespaceURI);
}
// <sp:TransportToken>
writer.writeStartElement(prefix, localName, namespaceURI);
String wspPrefix = writer.getPrefix(SPConstants.POLICY.getNamespaceURI());
if (wspPrefix == null) {
writer.setPrefix(wspPrefix, SPConstants.POLICY.getNamespaceURI());
}
// <wsp:Policy>
writer.writeStartElement(SPConstants.POLICY.getPrefix(), SPConstants.POLICY.getLocalPart(), SPConstants.POLICY.getNamespaceURI());
// serialization of the token ..
transportToken.serialize(writer);
// </wsp:Policy>
writer.writeEndElement();
writer.writeEndElement();
// </sp:TransportToken>
}
/* (non-Javadoc)
* @see org.apache.ws.secpolicy.model.TokenWrapper#setToken(org.apache.ws.secpolicy.model.Token)
*/
public void setToken(Token tok) {
this.transportToken = tok;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
1512cd85a81db1bb856aae8bda14742ab9b60738
|
447520f40e82a060368a0802a391697bc00be96f
|
/apks/playstore_apps/com_idamob_tinkoff_android/source/ru/tcsbank/mb/a/m.java
|
c219bd820df335949fbc04ad3a3bfce8cab4dbbf
|
[
"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
| 558
|
java
|
package ru.tcsbank.mb.a;
public final class m
{
private boolean a;
private boolean b;
private final a c;
public m(a paramA)
{
this.c = paramA;
}
public final void a()
{
if (this.a)
{
this.c.a();
return;
}
this.b = true;
}
public final void b()
{
this.a = true;
if (this.b)
{
this.c.a();
this.b = false;
}
}
public final void c()
{
if (this.a) {
this.c.a();
}
}
public static abstract interface a
{
public abstract void a();
}
}
|
[
"antal.micky@yahoo.com"
] |
antal.micky@yahoo.com
|
98de9d9aad537e6417c425a7a4bab4c8f31a301d
|
d9738e7c7d0a542e43201ff04cf40c8570152486
|
/src/main/java/net/simpleframework/mvc/component/ui/menu/AbstractMenuHandler.java
|
57e72f351cc5a58565e17d04c8e637bcd4524e1f
|
[] |
no_license
|
simple4/simple-mvc-impl
|
f18008e57eb2265d65ddee87d199de89cdd49c9f
|
efd23e259a95bdf5395173400a1f913854e28425
|
refs/heads/master
| 2016-08-07T10:31:31.092982
| 2012-11-24T16:06:54
| 2012-11-24T16:06:54
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 477
|
java
|
package net.simpleframework.mvc.component.ui.menu;
import net.simpleframework.mvc.component.AbstractComponentHandler;
/**
* 这是一个开源的软件,请在LGPLv3下合法使用、修改或重新发布。
*
* @author 陈侃(cknet@126.com, 13910090885)
* http://code.google.com/p/simpleframework/
* http://www.simpleframework.net
*/
public abstract class AbstractMenuHandler extends AbstractComponentHandler implements IMenuHandler {
}
|
[
"cknet@126.com"
] |
cknet@126.com
|
44526f6d785eaff34d7d9144201956ca60479a94
|
46a62c499faaa64fe3cce2356c8b229e9c4c9c49
|
/taobao-sdk-java-standard/taobao-sdk-java-online_standard-20120923-source/com/taobao/api/domain/RecommendWordPage.java
|
518078e8955eea5da962e6d56346080c0730762f
|
[] |
no_license
|
xjwangliang/learning-python
|
4ed40ff741051b28774585ef476ed59963eee579
|
da74bd7e466cd67565416b28429ed4c42e6a298f
|
refs/heads/master
| 2021-01-01T15:41:22.572679
| 2015-04-27T14:09:50
| 2015-04-27T14:09:50
| 5,881,815
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,624
|
java
|
package com.taobao.api.domain;
import java.util.List;
import com.taobao.api.TaobaoObject;
import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.internal.mapping.ApiListField;
/**
* 一页推荐词列表
*
* @author auto create
* @since 1.0, null
*/
public class RecommendWordPage extends TaobaoObject {
private static final long serialVersionUID = 6121816696659814215L;
/**
* 返回第几页的数据从1开始。
如果输入的值大于可取得的最大页码值时,将返回
最大的页码值并且recommend_word_list值将
为空
*/
@ApiField("page_no")
private Long pageNo;
/**
* 每页数据大小
*/
@ApiField("page_size")
private Long pageSize;
/**
* 推荐词分页对象列表
*/
@ApiListField("recommend_word_list")
@ApiField("recommend_word")
private List<RecommendWord> recommendWordList;
/**
* 所查询的数据总数
*/
@ApiField("total_item")
private Long totalItem;
public Long getPageNo() {
return this.pageNo;
}
public void setPageNo(Long pageNo) {
this.pageNo = pageNo;
}
public Long getPageSize() {
return this.pageSize;
}
public void setPageSize(Long pageSize) {
this.pageSize = pageSize;
}
public List<RecommendWord> getRecommendWordList() {
return this.recommendWordList;
}
public void setRecommendWordList(List<RecommendWord> recommendWordList) {
this.recommendWordList = recommendWordList;
}
public Long getTotalItem() {
return this.totalItem;
}
public void setTotalItem(Long totalItem) {
this.totalItem = totalItem;
}
}
|
[
"shigushuyuan@gmail.com"
] |
shigushuyuan@gmail.com
|
e8a411e7c4a0e365eb268c3b17c20531bc2e0ffe
|
6e7cfd37eae78e04deb3fda726a8eb96c8f36327
|
/imtProxy/src/test/java/be/fgov/famhp/imt/proxy/config/WebConfigurerTestController.java
|
00d9fbb026e91025edb87b5b15955564b5360eda
|
[] |
no_license
|
arakaima/blender
|
9225876b1f92854e5237ee3da0ebc177c9735490
|
1472ccf3376a11210c6fbeb5f1f35ad7d979f6a1
|
refs/heads/master
| 2022-12-10T13:35:50.208297
| 2022-11-16T20:26:15
| 2022-11-16T20:26:15
| 80,019,284
| 0
| 0
| null | 2022-11-16T20:26:16
| 2017-01-25T13:58:18
| null |
UTF-8
|
Java
| false
| false
| 376
|
java
|
package be.fgov.famhp.imt.proxy.config;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class WebConfigurerTestController {
@GetMapping("/api/test-cors")
public void testCorsOnApiPath() {}
@GetMapping("/test/test-cors")
public void testCorsOnOtherPath() {}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
1f64f439101d83c6fb74f6be51da66e62ee93be0
|
c8449573f82e6381f741e80301bb3408abdd7f41
|
/src/test/java/com/alibaba/druid/bvt/sql/mysql/insert/MySqlInsertTest_25_time.java
|
731d04747f6657a044bc421575c767900730ec5a
|
[
"Apache-2.0"
] |
permissive
|
waterif/druid
|
4fee1346311f18107640482348ed86ac4991cc9d
|
84465a0678fa29360dea313a93158729624846b9
|
refs/heads/master
| 2021-05-02T02:29:26.367866
| 2018-02-09T06:27:27
| 2018-02-09T06:27:27
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,392
|
java
|
/*
* Copyright 1999-2017 Alibaba Group Holding Ltd.
*
* 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.alibaba.druid.bvt.sql.mysql.insert;
import com.alibaba.druid.sql.MysqlTest;
import com.alibaba.druid.sql.SQLUtils;
import com.alibaba.druid.sql.ast.SQLStatement;
import com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlInsertStatement;
import com.alibaba.druid.sql.dialect.mysql.parser.MySqlStatementParser;
import com.alibaba.druid.sql.visitor.ParameterizedOutputVisitorUtils;
import com.alibaba.druid.util.JdbcConstants;
import java.util.ArrayList;
import java.util.List;
public class MySqlInsertTest_25_time extends MysqlTest {
public void test_insert() throws Exception {
String sql = "INSERT INTO DB1.TB2 (col1, col2, col3) VALUES(1, Timestamp '2019-01-01:12:12:21', '3')";
{
List<Object> outParameters = new ArrayList<Object>();
String psql = ParameterizedOutputVisitorUtils.parameterize(sql, JdbcConstants.MYSQL, outParameters);
assertEquals("INSERT INTO DB1.TB2(col1, col2, col3)\n" +
"VALUES (?, ?, ?)", psql);
assertEquals(3, outParameters.size());
String rsql = ParameterizedOutputVisitorUtils.restore(psql, JdbcConstants.MYSQL, outParameters);
assertEquals("INSERT INTO DB1.TB2 (col1, col2, col3)\n" +
"VALUES (1, '2019-01-01:12:12:21', '3')", rsql);
}
MySqlStatementParser parser = new MySqlStatementParser(sql);
List<SQLStatement> statementList = parser.parseStatementList();
SQLStatement stmt = statementList.get(0);
MySqlInsertStatement insertStmt = (MySqlInsertStatement) stmt;
assertEquals("INSERT INTO DB1.TB2 (col1, col2, col3)\n" +
"VALUES (1, TIMESTAMP '2019-01-01:12:12:21', '3')", SQLUtils.toMySqlString(insertStmt));
}
}
|
[
"szujobs@hotmail.com"
] |
szujobs@hotmail.com
|
831130bc6d51568664cd0b41ca692d4903563bde
|
65161901918eec1d28c599cf06f3bc2b9fc65ea2
|
/elastic-job-starter/src/main/java/com/youngboss/elasticjob/starter/help/JobNameParser.java
|
63afe19162db2b5a38b5e6cebf0cdfab234324d0
|
[] |
no_license
|
masteranthoneyd/starter
|
b2959002551d572d3d9559b10b7f57cdf8f628a8
|
cdc569759731e312302fb3de595433a235bdcf69
|
refs/heads/master
| 2021-07-11T14:47:02.333008
| 2019-01-08T04:05:15
| 2019-01-08T04:05:15
| 141,236,895
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 651
|
java
|
package com.youngboss.elasticjob.starter.help;
import com.dangdang.ddframe.job.api.simple.SimpleJob;
import org.springframework.lang.Nullable;
import java.io.Serializable;
/**
* @author ybd
* @date 18-7-16
* @contact yangbingdong1994@gmail.com
*/
public class JobNameParser {
private static final String SPLITER = "_";
public static String parseName(Class<? extends SimpleJob> jobClass, Serializable jobId) {
return jobClass.getSimpleName() + SPLITER + jobId;
}
@Nullable
public static String getJobId(String jobName) {
String[] split = jobName.split(SPLITER);
if (split.length == 2) {
return split[1];
}
return null;
}
}
|
[
"yangbingdong1994@gmail.com"
] |
yangbingdong1994@gmail.com
|
4f91cd5cc5191778195413a9c2a117e41deb9de0
|
e96172bcad99d9fddaa00c25d00a319716c9ca3a
|
/plugin/src/test/resources/codeInsight/daemonCodeAnalyzer/quickFix/delegateWithDefaultValue/beforeExistinMethod.java
|
0d5ff1b0782f6649cd1ab2c573f69a17a6f9bc23
|
[
"Apache-2.0"
] |
permissive
|
consulo/consulo-java
|
8c1633d485833651e2a9ecda43e27c3cbfa70a8a
|
a96757bc015eff692571285c0a10a140c8c721f8
|
refs/heads/master
| 2023-09-03T12:33:23.746878
| 2023-08-29T07:26:25
| 2023-08-29T07:26:25
| 13,799,330
| 5
| 4
|
Apache-2.0
| 2023-01-03T08:32:23
| 2013-10-23T09:56:39
|
Java
|
UTF-8
|
Java
| false
| false
| 128
|
java
|
// "Generate delegated method with default parameter value" "false"
class Test {
void foo(){}
void foo(int i<caret>i){
}
}
|
[
"vistall.valeriy@gmail.com"
] |
vistall.valeriy@gmail.com
|
bef26b2b339a33571fb1b16bdb5fae4e9a14a7d5
|
d334de5305dd13ec0e8248e33529ea78ff2ea31a
|
/weirenshiserver/weirenshi-web/src/main/java/com/gusubaiyi/weirenshi/controller/LoginController.java
|
4908038d9a56a03e73591f0b4c2b3c031e58a6c0
|
[] |
no_license
|
zhangduanfeng/weirenshi
|
3bb9d65d7777a23c72476a80f98abbf8981cd932
|
9fce7e4ce1747b7c71e0473d4447ad5ed06b3bc1
|
refs/heads/master
| 2021-05-17T08:13:54.956451
| 2020-03-28T03:00:12
| 2020-03-28T03:00:12
| 250,703,253
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 502
|
java
|
package com.gusubaiyi.weirenshi.controller;
import com.gusubaiyi.weirenshi.entity.RespBean;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @作者:姑苏白衣
* @微信号:zdf824780260
* @个人博客:www.gusubaiyi.com
* @时间:2020-02-20 13:19
**/
@RestController
public class LoginController {
@GetMapping
public RespBean login(){
return RespBean.error("尚未登录,请先登录!");
}
}
|
[
"824780260@qq.com"
] |
824780260@qq.com
|
b2d0c46437cf790dae9540acd8cb024601a4f3a0
|
db2cd2a4803e546d35d5df2a75b7deb09ffadc01
|
/nemo-tfl-common/src/main/java/com/novacroft/nemo/tfl/common/transfer/BaseResponseDTO.java
|
7845aa6b3047aa25b498d4786e3785defd789ef2
|
[] |
no_license
|
balamurugan678/nemo
|
66d0d6f7062e340ca8c559346e163565c2628814
|
1319daafa5dc25409ae1a1872b1ba9b14e5a297e
|
refs/heads/master
| 2021-01-19T17:47:22.002884
| 2015-06-18T12:03:43
| 2015-06-18T12:03:43
| 37,656,983
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 202
|
java
|
package com.novacroft.nemo.tfl.common.transfer;
/**
* Handle cubic error response
*/
public interface BaseResponseDTO {
Integer getErrorCode();
String getErrorDescription();
}
|
[
"balamurugan678@yahoo.co.in"
] |
balamurugan678@yahoo.co.in
|
31b5822141422ae5680056169f769487c9ddde39
|
b111b77f2729c030ce78096ea2273691b9b63749
|
/db-example-large-multi-project/project21/src/main/java/org/gradle/test/performance/mediumjavamultiproject/project21/p109/Production2192.java
|
c0e61a66505c73887d18096f12ae137553005b35
|
[] |
no_license
|
WeilerWebServices/Gradle
|
a1a55bdb0dd39240787adf9241289e52f593ccc1
|
6ab6192439f891256a10d9b60f3073cab110b2be
|
refs/heads/master
| 2023-01-19T16:48:09.415529
| 2020-11-28T13:28:40
| 2020-11-28T13:28:40
| 256,249,773
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,968
|
java
|
package org.gradle.test.performance.mediumjavamultiproject.project21.p109;
public class Production2192 {
private Production2183 property0;
public Production2183 getProperty0() {
return property0;
}
public void setProperty0(Production2183 value) {
property0 = value;
}
private Production2187 property1;
public Production2187 getProperty1() {
return property1;
}
public void setProperty1(Production2187 value) {
property1 = value;
}
private Production2191 property2;
public Production2191 getProperty2() {
return property2;
}
public void setProperty2(Production2191 value) {
property2 = value;
}
private String property3;
public String getProperty3() {
return property3;
}
public void setProperty3(String value) {
property3 = value;
}
private String property4;
public String getProperty4() {
return property4;
}
public void setProperty4(String value) {
property4 = value;
}
private String property5;
public String getProperty5() {
return property5;
}
public void setProperty5(String value) {
property5 = value;
}
private String property6;
public String getProperty6() {
return property6;
}
public void setProperty6(String value) {
property6 = value;
}
private String property7;
public String getProperty7() {
return property7;
}
public void setProperty7(String value) {
property7 = value;
}
private String property8;
public String getProperty8() {
return property8;
}
public void setProperty8(String value) {
property8 = value;
}
private String property9;
public String getProperty9() {
return property9;
}
public void setProperty9(String value) {
property9 = value;
}
}
|
[
"nateweiler84@gmail.com"
] |
nateweiler84@gmail.com
|
654bf4af86e602488807030b7df7a1addce26c1c
|
aa58b0b32c457eb8c49add9baa7693068fa12680
|
/src/main/java/com/beyongx/echarts/charts/effectscatter/markline/blur/LineStyle.java
|
304f4ab211be9dd884290e838ed3b717736af098
|
[
"Apache-2.0"
] |
permissive
|
wen501271303/java-echarts
|
045dcd41eee35b572122c9de27a340cf777a74b1
|
9eb611e8f964833e4dbb7360733a6ae7ac6eace1
|
refs/heads/master
| 2023-07-30T20:56:23.638092
| 2021-09-28T06:12:21
| 2021-09-28T06:12:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,151
|
java
|
/**
* Created by java-echarts library.
* @author: cattong <aronter@gmail.com>
*/
package com.beyongx.echarts.charts.effectscatter.markline.blur;
import java.io.Serializable;
import java.util.Map;
//import lombok.Data;
import lombok.EqualsAndHashCode;
/**
*
*
* {_more_}
*/
@lombok.Data
@EqualsAndHashCode(callSuper = false)
public class LineStyle implements Serializable {
private static final long serialVersionUID = 1L;
private String color; // Default: '"#000"'
private String width; // Default: 1
private Object type; //string|number|Array Default: 'solid'
private String dashOffset; // Default: 0
private String cap; // Default: 'butt'
private String join; // Default: 'bevel'
private String miterLimit; // Default: 10
private Integer shadowBlur; //
private String shadowColor; //
private String shadowOffsetX; // Default: 0
private String shadowOffsetY; // Default: 0
private String opacity; // Default: 1
public LineStyle()
{
}
public LineStyle(Map<String, Object> property)
{
}
}
|
[
"cattong@163.com"
] |
cattong@163.com
|
5d1bdcae880f517e03263f50c9bce3cb5914275d
|
0e4dd25f03d54fd5e9d19ee4a6440793bfe3ad1d
|
/viewslib/src/main/java/com/xinran/viewslib/qxtabview/recyclerView/progressindicator/indicator/BallScaleIndicator.java
|
a68fb398d982640307e5cad82ebe486a004cabae
|
[
"Apache-2.0"
] |
permissive
|
XinRan5312/viewslib
|
ff88ca9fac0b992b1d74fec834f6629e9fd33af7
|
1d366941a96eeb0ef3899413dfb21e0fe5965408
|
refs/heads/master
| 2021-01-17T16:45:36.844358
| 2017-03-14T07:05:51
| 2017-03-14T07:05:51
| 56,818,839
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,034
|
java
|
package com.xinran.viewslib.qxtabview.recyclerView.progressindicator.indicator;
import android.animation.Animator;
import android.animation.ValueAnimator;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.view.animation.LinearInterpolator;
import java.util.ArrayList;
import java.util.List;
/**
* Created by qixinh on 16/4/19.
*/
public class BallScaleIndicator extends BaseIndicatorController {
float scale=1;
int alpha=255;
@Override
public void draw(Canvas canvas, Paint paint) {
float circleSpacing=4;
paint.setAlpha(alpha);
canvas.scale(scale,scale,getWidth()/2,getHeight()/2);
paint.setAlpha(alpha);
canvas.drawCircle(getWidth()/2,getHeight()/2,getWidth()/2-circleSpacing,paint);
}
@Override
public List<Animator> createAnimation() {
List<Animator> animators=new ArrayList<>();
ValueAnimator scaleAnim=ValueAnimator.ofFloat(0,1);
scaleAnim.setInterpolator(new LinearInterpolator());
scaleAnim.setDuration(1000);
scaleAnim.setRepeatCount(-1);
scaleAnim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
@Override
public void onAnimationUpdate(ValueAnimator animation) {
scale = (float) animation.getAnimatedValue();
postInvalidate();
}
});
scaleAnim.start();
ValueAnimator alphaAnim=ValueAnimator.ofInt(255, 0);
alphaAnim.setInterpolator(new LinearInterpolator());
alphaAnim.setDuration(1000);
alphaAnim.setRepeatCount(-1);
alphaAnim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
@Override
public void onAnimationUpdate(ValueAnimator animation) {
alpha = (int) animation.getAnimatedValue();
postInvalidate();
}
});
alphaAnim.start();
animators.add(scaleAnim);
animators.add(alphaAnim);
return animators;
}
}
|
[
"qixinh@jumei.com"
] |
qixinh@jumei.com
|
85c082097d0d9c16d38ee39233ac7f0b0319bc3c
|
c0fe21b86f141256c85ab82c6ff3acc56b73d3db
|
/jdfusion/src/main/java/com/jdcloud/sdk/service/jdfusion/model/DeleteVserverGroupRequest.java
|
11ffcb7cb34ff3ce712153e0bcc3d7b89fa50543
|
[
"Apache-2.0"
] |
permissive
|
jdcloud-api/jdcloud-sdk-java
|
3fec9cf552693520f07b43a1e445954de60e34a0
|
bcebe28306c4ccc5b2b793e1a5848b0aac21b910
|
refs/heads/master
| 2023-07-25T07:03:36.682248
| 2023-07-25T06:54:39
| 2023-07-25T06:54:39
| 126,275,669
| 47
| 61
|
Apache-2.0
| 2023-09-07T08:41:24
| 2018-03-22T03:41:41
|
Java
|
UTF-8
|
Java
| false
| false
| 2,183
|
java
|
/*
* Copyright 2018 JDCLOUD.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.
*
* Vpc-VserverGroup
* 与服务器组相关的接口
*
* OpenAPI spec version: v1
* Contact:
*
* NOTE: This class is auto generated by the jdcloud code generator program.
*/
package com.jdcloud.sdk.service.jdfusion.model;
import com.jdcloud.sdk.annotation.Required;
import com.jdcloud.sdk.service.JdcloudRequest;
/**
* 删除服务器组
*/
public class DeleteVserverGroupRequest extends JdcloudRequest implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* 地域ID
* Required:true
*/
@Required
private String regionId;
/**
* 服务器组ID
* Required:true
*/
@Required
private String id;
/**
* get 地域ID
*
* @return
*/
public String getRegionId() {
return regionId;
}
/**
* set 地域ID
*
* @param regionId
*/
public void setRegionId(String regionId) {
this.regionId = regionId;
}
/**
* get 服务器组ID
*
* @return
*/
public String getId() {
return id;
}
/**
* set 服务器组ID
*
* @param id
*/
public void setId(String id) {
this.id = id;
}
/**
* set 地域ID
*
* @param regionId
*/
public DeleteVserverGroupRequest regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* set 服务器组ID
*
* @param id
*/
public DeleteVserverGroupRequest id(String id) {
this.id = id;
return this;
}
}
|
[
"tancong@jd.com"
] |
tancong@jd.com
|
48ba318f04d186c0df9272e21b4b59cf37fb702e
|
2c55167b086b19933d5a28e03c9d210dc26caf4c
|
/commercetools-models/src/main/java/io/sphere/sdk/payments/commands/updateactions/ChangeTransactionInteractionId.java
|
4505ce26ce273543a607a1a1eb5472abc5b64922
|
[
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] |
permissive
|
commercetools/commercetools-jvm-sdk
|
02a1b6162aff245dce35a2e17b41c5fc8481cf33
|
9268215185628611ad12502cb9c844e8b65c2944
|
refs/heads/master
| 2023-08-31T20:04:34.331396
| 2023-08-11T07:43:29
| 2023-08-11T07:43:29
| 20,855,247
| 46
| 50
|
NOASSERTION
| 2023-08-11T09:27:43
| 2014-06-15T12:46:24
|
Java
|
UTF-8
|
Java
| false
| false
| 1,158
|
java
|
package io.sphere.sdk.payments.commands.updateactions;
import io.sphere.sdk.commands.UpdateActionImpl;
import io.sphere.sdk.payments.Payment;
/**
* Changes the interactionId of a transaction. It should correspond to an Id of an interface interaction.
*
* {@doc.gen intro}
*
* {@include.example io.sphere.sdk.payments.commands.PaymentUpdateCommandIntegrationTest#changeTransactionInteractionId()}
*/
public final class ChangeTransactionInteractionId extends UpdateActionImpl<Payment> {
private String interactionId;
private String transactionId;
private ChangeTransactionInteractionId(final String interactionId, final String transactionId) {
super("changeTransactionInteractionId");
this.interactionId = interactionId;
this.transactionId = transactionId;
}
public static ChangeTransactionInteractionId of(final String interactionId, final String transactionId) {
return new ChangeTransactionInteractionId(interactionId, transactionId);
}
public String getInteractionId() {
return interactionId;
}
public String getTransactionId() {
return transactionId;
}
}
|
[
"michael.schleichardt@commercetools.de"
] |
michael.schleichardt@commercetools.de
|
90c4269e50980e697b3514a10cc8d45f88a8aca4
|
cb9f30a1244c22ce09db299e6d97a5ad1b6b5201
|
/src/org/intellij/plugins/ceylon/CeylonLanguage.java
|
1011a993e2dc93f7a7fa3d4b3dc530fc1da4575e
|
[] |
no_license
|
consulo-savepoint/consulo-ceylon
|
c7c91a493534407d5bead2b600f0c8d0445a4f15
|
54126fa29f84a606461f375dcf182844985bfa18
|
refs/heads/master
| 2021-05-28T21:33:22.955536
| 2015-02-24T07:53:08
| 2015-02-24T07:53:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 276
|
java
|
package org.intellij.plugins.ceylon;
import com.intellij.lang.Language;
public class CeylonLanguage extends Language {
public static final CeylonLanguage INSTANCE = new CeylonLanguage();
protected CeylonLanguage() {
super("Ceylon", "text/ceylon");
}
}
|
[
"bjansen@excilys.com"
] |
bjansen@excilys.com
|
7a1bd08c8f1b77f8b337f486d4611f0c5ce136bf
|
794aeadcfc3c28a981a3e6853ab73a5a477eac19
|
/openlab/openlab-web/src/main/java/tn/esprit/infob1/openlab/presentation/mbeans/TrainerBean.java
|
6ea0979361aea61b93934128e744a1eaf0495288
|
[] |
no_license
|
medalibettaieb/bitbox-openLab-repo
|
9f825cd9714dfca5e3bf823894f57f348ca927b2
|
c81b50ce4dc3e231bdced8388656d4fc244dd1ca
|
refs/heads/master
| 2021-01-13T15:47:00.796397
| 2017-04-24T12:20:27
| 2017-04-24T12:20:27
| 79,807,221
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 844
|
java
|
package tn.esprit.infob1.openlab.presentation.mbeans;
import java.util.ArrayList;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import tn.esprit.infob1.openlab.persistence.Teacher;
import tn.esprit.infob1.openlab.services.SubscriptionServiceLocal;
@ManagedBean
@ViewScoped
public class TrainerBean {
private List<Teacher> teachers = new ArrayList<>();
@EJB
private SubscriptionServiceLocal subscriptionServiceLocal;
public Teacher doFindTeacherByName(String name) {
return subscriptionServiceLocal.findTrainerByName(name);
}
public List<Teacher> getTeachers() {
teachers = subscriptionServiceLocal.findallTeachers();
return teachers;
}
public void setTeachers(List<Teacher> teachers) {
this.teachers = teachers;
}
}
|
[
"medali.bettaieb@esprit.tn"
] |
medali.bettaieb@esprit.tn
|
6ef30192709227d44d376c6174fa3e8e08ff763f
|
31cecb8f12d2ac6aca1149efe14b6373ee1d8171
|
/jdroid-android/src/main/java/com/jdroid/android/share/ShareAdapter.java
|
8b380b132dc8a9344999e797227383e4fbd3c206
|
[] |
no_license
|
jvlstudio/jdroid
|
ad1036b88c37e8e9f23d3569a247ae38b7ac298c
|
537b12cf025d278ea8723fa7045b63643cf00cb4
|
refs/heads/master
| 2021-01-17T05:47:24.549559
| 2013-02-16T04:16:22
| 2013-02-16T04:25:15
| 8,347,343
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,443
|
java
|
package com.jdroid.android.share;
import java.util.List;
import android.app.Activity;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.jdroid.android.R;
import com.jdroid.android.adapter.BaseHolderArrayAdapter;
import com.jdroid.android.facebook.FacebookShareLaunchable;
import com.jdroid.android.share.ShareAdapter.ShareViewHolder;
import com.jdroid.java.collections.Lists;
/**
*
* @author Estefania Caravatti
*/
public class ShareAdapter extends BaseHolderArrayAdapter<ShareLaunchable, ShareViewHolder> {
/** Pattern for the official Facebook activity */
private static final String FACEBOOK_APP_PATTERN = "^com.facebook.*";
/**
* @param context The {@link Activity} to use as context.
* @param apps The {@link ResolveInfo} for the apps to list.
* @param packageManager The {@link PackageManager}.
* @param facebookAppId
* @param accessToken
*/
public ShareAdapter(Activity context, List<ResolveInfo> apps, PackageManager packageManager, String facebookAppId,
String accessToken) {
super(context, R.layout.share_row);
// The Facebook app is removed and a custom FacebookShareLaunchable is used.
List<ShareLaunchable> launchables = Lists.newArrayList();
for (ResolveInfo resolveInfo : apps) {
if (!resolveInfo.activityInfo.name.matches(FACEBOOK_APP_PATTERN)) {
launchables.add(new ShareLaunchable(resolveInfo, packageManager));
}
}
launchables.add(new FacebookShareLaunchable(facebookAppId, accessToken));
add(launchables);
}
/**
* @see com.jdroid.android.adapter.BaseHolderArrayAdapter#fillHolderFromItem(java.lang.Object, java.lang.Object)
*/
@Override
protected void fillHolderFromItem(final ShareLaunchable item, ShareViewHolder holder) {
holder.appName.setText(item.getName());
holder.appIcon.setImageDrawable(item.getIcon());
}
/**
* @see com.jdroid.android.adapter.BaseHolderArrayAdapter#createViewHolderFromConvertView(android.view.View)
*/
@Override
protected ShareViewHolder createViewHolderFromConvertView(View convertView) {
ShareViewHolder holder = new ShareViewHolder();
holder.appName = findView(convertView, R.id.name);
holder.appIcon = findView(convertView, R.id.icon);
return holder;
}
public static class ShareViewHolder {
private TextView appName;
private ImageView appIcon;
}
}
|
[
"maxirosson@gmail.com"
] |
maxirosson@gmail.com
|
fefc09aaf20071452a2bbf178085ff6b6f63e6e6
|
4cf3a00ef74815ea28df4effd86372a35a2a2aab
|
/MyExam - 11.03.2018/Illidian.java
|
76a8956e70429b2a52f7eb52382579ad55cf8dbd
|
[] |
no_license
|
kristian9577/Java-Basics
|
671357141c8c40723266f5bc0d54d447d69d2505
|
5b070d21df40ce05d647924dccbe47b3b505885a
|
refs/heads/master
| 2020-03-14T01:18:01.177349
| 2018-10-30T13:39:25
| 2018-10-30T13:39:25
| 131,374,443
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 708
|
java
|
import java.util.Scanner;
public class Illidian {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int groupNumbers=Integer.parseInt(scan.nextLine());
int powerForOne=Integer.parseInt(scan.nextLine());
int blood=Integer.parseInt(scan.nextLine());
int allpower=groupNumbers*powerForOne;
if(allpower>=blood){
System.out.print("Illidan has been slain!");
System.out.printf(" You defeated him with %d points.",(allpower-blood));
}
else{
System.out.print("You are not prepared!");
System.out.printf(" You need %d more points.",(blood-allpower));
}
}
}
|
[
"kristian9577@gmail.com"
] |
kristian9577@gmail.com
|
5612f49b0bf1756c526c6e57290af204762cdf66
|
d5caee322aa020004b18244c4fc78ff7b5bc9775
|
/library/src/main/java/com/lxj/xpopup/impl/BottomListPopupView.java
|
03f4b1e8d26405155a981bc5e3ee15085966dfa0
|
[
"Apache-2.0"
] |
permissive
|
weikjblue/XPopup
|
ac9573adb9fe8d0558f2c5ac846e314213da34e3
|
3cfd208db1c7fc6381b692968f2078786ace7449
|
refs/heads/master
| 2020-06-25T17:21:02.472966
| 2019-07-16T15:21:37
| 2019-07-16T15:21:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,084
|
java
|
package com.lxj.xpopup.impl;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.text.TextUtils;
import android.view.View;
import android.widget.TextView;
import com.lxj.easyadapter.EasyAdapter;
import com.lxj.easyadapter.MultiItemTypeAdapter;
import com.lxj.easyadapter.ViewHolder;
import com.lxj.xpopup.R;
import com.lxj.xpopup.XPopup;
import com.lxj.xpopup.core.BottomPopupView;
import com.lxj.xpopup.interfaces.OnSelectListener;
import com.lxj.xpopup.widget.CheckView;
import java.util.Arrays;
/**
* Description: 底部的列表对话框
* Create by dance, at 2018/12/16
*/
public class BottomListPopupView extends BottomPopupView {
RecyclerView recyclerView;
TextView tv_title;
protected int bindLayoutId;
protected int bindItemLayoutId;
public BottomListPopupView(@NonNull Context context) {
super(context);
}
/**
* 传入自定义的布局,对布局中的id有要求
*
* @param layoutId 要求layoutId中必须有一个id为recyclerView的RecyclerView,如果你需要显示标题,则必须有一个id为tv_title的TextView
* @return
*/
public BottomListPopupView bindLayout(int layoutId) {
this.bindLayoutId = layoutId;
return this;
}
/**
* 传入自定义的 item布局
*
* @param itemLayoutId 条目的布局id,要求布局中必须有id为iv_image的ImageView,和id为tv_text的TextView
* @return
*/
public BottomListPopupView bindItemLayout(int itemLayoutId) {
this.bindItemLayoutId = itemLayoutId;
return this;
}
@Override
protected int getImplLayoutId() {
return bindLayoutId == 0 ? R.layout._xpopup_center_impl_list : bindLayoutId;
}
@Override
protected void initPopupContent() {
super.initPopupContent();
recyclerView = findViewById(R.id.recyclerView);
tv_title = findViewById(R.id.tv_title);
if(tv_title!=null){
if (TextUtils.isEmpty(title)) {
tv_title.setVisibility(GONE);
} else {
tv_title.setText(title);
}
}
final EasyAdapter<String> adapter = new EasyAdapter<String>(Arrays.asList(data), bindItemLayoutId == 0 ? R.layout._xpopup_adapter_text : bindItemLayoutId) {
@Override
protected void bind(@NonNull ViewHolder holder, @NonNull String s, int position) {
holder.setText(R.id.tv_text, s);
if (iconIds != null && iconIds.length > position) {
holder.getView(R.id.iv_image).setVisibility(VISIBLE);
holder.getView(R.id.iv_image).setBackgroundResource(iconIds[position]);
} else {
holder.getView(R.id.iv_image).setVisibility(GONE);
}
// 对勾View
if (checkedPosition != -1) {
if(holder.getView(R.id.check_view)!=null){
holder.getView(R.id.check_view).setVisibility(position == checkedPosition ? VISIBLE : GONE);
holder.<CheckView>getView(R.id.check_view).setColor(XPopup.getPrimaryColor());
}
holder.<TextView>getView(R.id.tv_text).setTextColor(position == checkedPosition ?
XPopup.getPrimaryColor() : getResources().getColor(R.color._xpopup_title_color));
}
}
};
adapter.setOnItemClickListener(new MultiItemTypeAdapter.SimpleOnItemClickListener() {
@Override
public void onItemClick(View view, RecyclerView.ViewHolder holder, int position) {
if (selectListener != null) {
selectListener.onSelect(position, adapter.getData().get(position));
}
if (checkedPosition != -1) {
checkedPosition = position;
adapter.notifyDataSetChanged();
}
postDelayed(new Runnable() {
@Override
public void run() {
if (popupInfo.autoDismiss) dismiss();
}
}, 100);
}
});
recyclerView.setAdapter(adapter);
}
String title;
String[] data;
int[] iconIds;
public BottomListPopupView setStringData(String title, String[] data, int[] iconIds) {
this.title = title;
this.data = data;
this.iconIds = iconIds;
return this;
}
private OnSelectListener selectListener;
public BottomListPopupView setOnSelectListener(OnSelectListener selectListener) {
this.selectListener = selectListener;
return this;
}
int checkedPosition = -1;
/**
* 设置默认选中的位置
*
* @param position
* @return
*/
public BottomListPopupView setCheckedPosition(int position) {
this.checkedPosition = position;
return this;
}
}
|
[
"16167479@qq.com"
] |
16167479@qq.com
|
02be54b61404da1f2dfc16401340c88ea724bc7b
|
b2abbc115b7401b081db78c4edd6d8c376a12db6
|
/Chp. 08 - Recursion and Dynamic Programming/_8_07_Permutations_without_Dups/Tester.java
|
29c6f94fdbc1fe06325727af1e3bf75963d4d6b7
|
[] |
no_license
|
duca/Cracking-the-Coding-Interview_solutions
|
2018c04c3d8ffff87e924fb81aee0fad2d1041f2
|
923b62079ad6b4e5e9a7be3f1535a8376b9e9c32
|
refs/heads/master
| 2020-04-13T17:58:17.399928
| 2018-07-28T04:11:30
| 2018-07-28T04:11:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 459
|
java
|
package _8_07_Permutations_without_Dups;
import java.util.ArrayList;
public class Tester {
public static void main(String[] args) {
System.out.println("*** Test 8.7: Permutations without Dups\n");
test("cat");
}
private static void test(String str) {
ArrayList<String> permutations = PermutationsWithoutDups.getPermutations(str);
System.out.println("Original string: " + str);
System.out.println("Permutations: " + permutations + "\n");
}
}
|
[
"9rodney@gmail.com"
] |
9rodney@gmail.com
|
ca34761554de32656029d46b77b1db99314abea9
|
10c96edfa12e1a7eef1caf3ad1d0e2cdc413ca6f
|
/src/main/resources/projs/Collection_4.1_parent/src/main/java/org/apache/commons/collections4/MultiMap.java
|
079a63690aa65fe87eb2f9806900d3219e4dce4d
|
[
"Apache-2.0"
] |
permissive
|
Gu-Youngfeng/EfficiencyMiner
|
c17c574e41feac44cc0f483135d98291139cda5c
|
48fb567015088f6e48dfb964a4c63f2a316e45d4
|
refs/heads/master
| 2020-03-19T10:06:33.362993
| 2018-08-01T01:17:40
| 2018-08-01T01:17:40
| 136,343,802
| 0
| 0
|
Apache-2.0
| 2018-08-01T01:17:41
| 2018-06-06T14:51:55
|
Java
|
UTF-8
|
Java
| false
| false
| 7,002
|
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.collections4;
import java.util.Collection;
/**
* Defines a map that holds a collection of values against each key.
* <p>
* A <code>MultiMap</code> is a Map with slightly different semantics.
* Putting a value into the map will add the value to a Collection at that key.
* Getting a value will return a Collection, holding all the values put to that key.
* <p>
* For example:
* <pre>
* MultiMap mhm = new MultiValueMap();
* mhm.put(key, "A");
* mhm.put(key, "B");
* mhm.put(key, "C");
* Collection coll = (Collection) mhm.get(key);</pre>
* <p>
* <code>coll</code> will be a collection containing "A", "B", "C".
* <p>
* NOTE: Additional methods were added to this interface in Commons Collections 3.1.
* These were added solely for documentation purposes and do not change the interface
* as they were defined in the superinterface <code>Map</code> anyway.
*
* @since 2.0
* @version $Id: MultiMap.java 1683018 2015-06-01 22:41:31Z tn $
* @deprecated since 4.1, use {@link MultiValuedMap} instead
*/
@Deprecated
public interface MultiMap<K, V> extends IterableMap<K, Object> {
/**
* Removes a specific value from map.
* <p>
* The item is removed from the collection mapped to the specified key.
* Other values attached to that key are unaffected.
* <p>
* If the last value for a key is removed, implementations typically
* return <code>null</code> from a subsequent <code>get(Object)</code>, however
* they may choose to return an empty collection.
*
* @param key the key to remove from
* @param item the item to remove
* @return {@code true} if the mapping was removed, {@code false} otherwise
* @throws UnsupportedOperationException if the map is unmodifiable
* @throws ClassCastException if the key or value is of an invalid type
* @throws NullPointerException if the key or value is null and null is invalid
* @since 4.0 (signature in previous releases: V remove(K, V))
*/
boolean removeMapping(K key, V item);
//-----------------------------------------------------------------------
/**
* Gets the number of keys in this map.
* <p>
* Implementations typically return only the count of keys in the map
* This cannot be mandated due to backwards compatibility of this interface.
*
* @return the number of key-collection mappings in this map
*/
int size();
/**
* Gets the collection of values associated with the specified key.
* <p>
* The returned value will implement <code>Collection</code>. Implementations
* are free to declare that they return <code>Collection</code> subclasses
* such as <code>List</code> or <code>Set</code>.
* <p>
* Implementations typically return <code>null</code> if no values have
* been mapped to the key, however the implementation may choose to
* return an empty collection.
* <p>
* Implementations may choose to return a clone of the internal collection.
*
* @param key the key to retrieve
* @return the <code>Collection</code> of values, implementations should
* return <code>null</code> for no mapping, but may return an empty collection
* @throws ClassCastException if the key is of an invalid type
* @throws NullPointerException if the key is null and null keys are invalid
*/
Object get(Object key); // Cannot use get(K key) as that does not properly implement Map#get
/**
* Checks whether the map contains the value specified.
* <p>
* Implementations typically check all collections against all keys for the value.
* This cannot be mandated due to backwards compatibility of this interface.
*
* @param value the value to search for
* @return true if the map contains the value
* @throws ClassCastException if the value is of an invalid type
* @throws NullPointerException if the value is null and null value are invalid
*/
boolean containsValue(Object value);
/**
* Adds the value to the collection associated with the specified key.
* <p>
* Unlike a normal <code>Map</code> the previous value is not replaced.
* Instead the new value is added to the collection stored against the key.
* The collection may be a <code>List</code>, <code>Set</code> or other
* collection dependent on implementation.
*
* @param key the key to store against
* @param value the value to add to the collection at the key
* @return typically the value added if the map changed and null if the map did not change
* @throws UnsupportedOperationException if the map is unmodifiable
* @throws ClassCastException if the key or value is of an invalid type
* @throws NullPointerException if the key or value is null and null is invalid
* @throws IllegalArgumentException if the key or value is invalid
*/
Object put(K key, Object value);
/**
* Removes all values associated with the specified key.
* <p>
* Implementations typically return <code>null</code> from a subsequent
* <code>get(Object)</code>, however they may choose to return an empty collection.
*
* @param key the key to remove values from
* @return the <code>Collection</code> of values removed, implementations should
* return <code>null</code> for no mapping found, but may return an empty collection
* @throws UnsupportedOperationException if the map is unmodifiable
* @throws ClassCastException if the key is of an invalid type
* @throws NullPointerException if the key is null and null keys are invalid
*/
Object remove(Object key); // Cannot use remove(K key) as that does not properly implement Map#remove
/**
* Gets a collection containing all the values in the map.
* <p>
* Implementations typically return a collection containing the combination
* of values from all keys.
* This cannot be mandated due to backwards compatibility of this interface.
*
* @return a collection view of the values contained in this map
*/
Collection<Object> values();
}
|
[
"yongfeng_gu@163.com"
] |
yongfeng_gu@163.com
|
3b224566daf0d3f4cc244c73df264892a75336c0
|
fb9ee00025b9e4b19bd7c9d009094d088f481125
|
/ccc/2004/Senior2004/S2.java
|
d16da624c60920d2962ee1ae4ce0f8469552937a
|
[] |
no_license
|
wonjohnchoi/competitions
|
e382e3e544915b57e48bbb826120ef40b99b9843
|
4ba5be75a5b36b56de68d4a4ab8912d89eb73a0e
|
refs/heads/master
| 2021-01-16T00:28:33.446271
| 2015-09-12T16:53:25
| 2015-09-12T16:53:25
| 2,786,296
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,289
|
java
|
package Senior2004;
/*
* By Wonjohn Choi
*/
import java.util.*;
import java.io.*;
public class S2 {
public static void main(String args[]) throws IOException {
Scanner sc = new Scanner(new FileReader("s2.in"));
int n = sc.nextInt();
int k = sc.nextInt();
int resultS[][] = new int[n][k];
for (int i = 0; i < k; i++) {
for (int j = 0; j < n; j++) {
resultS[j][i] += sc.nextInt();
if (i != k - 1) {
resultS[j][i + 1] = resultS[j][i];
}
}
}
ArrayList<Integer> winner = new ArrayList<Integer>();
int topScore = Integer.MIN_VALUE;
for (int i = 0; i < n; i++) {
if (topScore < resultS[i][k - 1]) {
winner = new ArrayList<Integer>();
winner.add(i);
topScore = resultS[i][k - 1];
} else if (topScore == resultS[i][k - 1]) {
winner.add(i);
}
}
for (int w = 0; w < winner.size(); w++) {
int worstRank = 0;
int curWinner = winner.get(w);
for (int i = 0; i < k; i++) {
int curRank = 0;
for (int j = 0; j < n; j++) {
if (resultS[j][i] > resultS[curWinner][i]) {
curRank++;
}
}
if (curRank > worstRank) {
worstRank = curRank;
}
}
System.out.printf("Yodeller %d is the TopYodeller: score %d, worst rank %d\n",
curWinner + 1, topScore, worstRank + 1);
}
}
}
|
[
"wonjohn.choi@gmail.com"
] |
wonjohn.choi@gmail.com
|
d51eeea86480b108adeeb1d2213352e2539fb244
|
9a6ea6087367965359d644665b8d244982d1b8b6
|
/src/main/java/X/AnonymousClass0F6.java
|
83c54befbf92229ef5f3f7721f0a09c1ec81f2f2
|
[] |
no_license
|
technocode/com.wa_2.21.2
|
a3dd842758ff54f207f1640531374d3da132b1d2
|
3c4b6f3c7bdef7c1523c06d5bd9a90b83acc80f9
|
refs/heads/master
| 2023-02-12T11:20:28.666116
| 2021-01-14T10:22:21
| 2021-01-14T10:22:21
| 329,578,591
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 596
|
java
|
package X;
/* renamed from: X.0F6 reason: invalid class name */
public class AnonymousClass0F6 {
public static volatile AnonymousClass0F6 A05;
public final C000300f A00;
public final AnonymousClass0CL A01;
public final AnonymousClass00C A02;
public final AnonymousClass0CW A03;
public final AnonymousClass0CT A04;
public AnonymousClass0F6(AnonymousClass0CL r1, C000300f r2, AnonymousClass0CT r3, AnonymousClass00C r4, AnonymousClass0CW r5) {
this.A01 = r1;
this.A00 = r2;
this.A04 = r3;
this.A02 = r4;
this.A03 = r5;
}
}
|
[
"madeinborneo@gmail.com"
] |
madeinborneo@gmail.com
|
59961da494374f85cb90e5973e4c12933a0573c8
|
62e334192393326476756dfa89dce9f0f08570d4
|
/ztk_code/ztk-commons-parent/json-tools/src/main/java/com/huatu/ztk/commons/JsonUtil.java
|
1dc44039c64f4533d97882b62880b0ef8dcae51b
|
[] |
no_license
|
JellyB/code_back
|
4796d5816ba6ff6f3925fded9d75254536a5ddcf
|
f5cecf3a9efd6851724a1315813337a0741bd89d
|
refs/heads/master
| 2022-07-16T14:19:39.770569
| 2019-11-22T09:22:12
| 2019-11-22T09:22:12
| 223,366,837
| 1
| 2
| null | 2022-06-30T20:21:38
| 2019-11-22T09:15:50
|
Java
|
UTF-8
|
Java
| false
| false
| 4,216
|
java
|
package com.huatu.ztk.commons;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.databind.type.MapType;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Created by shaojieyue on 10/18/15.
*/
public final class JsonUtil{
private final static ObjectMapper mapper = newMapper();
private JsonUtil(){
}
/**
* 将Object序列化为json字符串
*/
public static String toJson(Object object){
try{
return mapper.writeValueAsString(object);
}catch(JsonProcessingException e){
throw new JacksonSerializeException(e);
}
}
/**
* 将json字符串序列化为java Bean
* @param json
* @param valueType
* @param <T>
* @return
*/
public static <T> T toObject(String json, Class<T> valueType){
try{
return mapper.readValue(json, valueType);
}catch(IOException e){
throw new JacksonDeserializeException(e);
}
}
/**
* 将json转为泛型List
* @param json
* @param valueType
* @param <T>
* @return
*/
public static final <T> List<T> toList(String json, Class<T> valueType){
JavaType type = mapper.getTypeFactory().
constructCollectionType(List.class, valueType);
List<T> list = null;
try{
list = mapper.readValue(json, type);
}catch(IOException e){
throw new JacksonDeserializeException(e);
}
return list;
}
/**
* 将json转换为泛型map
* @param json json字符串
* @param keyType map泛型key
* @param valueType map泛型value
* @param <T>
* @param <V>
* @return
*/
public static final <T,V> Map<T,V> toMap(String json,Class<T> keyType,Class<V> valueType){
final MapType mapType = mapper.getTypeFactory().
constructMapType(HashMap.class, keyType, valueType);
Map<T,V> map = null;
try{
map = mapper.readValue(json, mapType);
}catch(IOException e){
throw new JacksonDeserializeException(e);
}
return map;
}
/**
* json转为map
* @param json
* @return
*/
public static final Map toMap(String json){
return toMap(json,Object.class,Object.class);
}
@SuppressWarnings("unchecked")
public static <T> T toObject(String json, TypeReference<T> typeReference){
try{
return (T) mapper.readValue(json, typeReference);
}catch(IOException e){
throw new JacksonDeserializeException(e);
}
}
private static final ObjectMapper newMapper(){
ObjectMapper objectMapper = new ObjectMapper();
// 允许单引号
objectMapper.configure(JsonParser.Feature.ALLOW_SINGLE_QUOTES, true);
// 允许反斜杆等字符
objectMapper.configure(JsonParser.Feature.ALLOW_UNQUOTED_CONTROL_CHARS, true);
// 允许出现对象中没有的字段
objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
objectMapper.configure(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT, true) ;
objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
//不进行格式化打印
objectMapper.disable(SerializationFeature.INDENT_OUTPUT);
objectMapper.configure(JsonGenerator.Feature.AUTO_CLOSE_TARGET, false);
objectMapper.configure(JsonGenerator.Feature.AUTO_CLOSE_JSON_CONTENT, false);
objectMapper.disable(SerializationFeature.FLUSH_AFTER_WRITE_VALUE);
objectMapper.disable(SerializationFeature.CLOSE_CLOSEABLE);
objectMapper.disable(SerializationFeature.FAIL_ON_EMPTY_BEANS);
objectMapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
return objectMapper;
}
}
|
[
"jelly_b@126.com"
] |
jelly_b@126.com
|
38e4077ce986f7c20ccdc1aaea3486eb606acb1c
|
9aa8a571eb8716b6523b9e07f88066ea2e97a4ca
|
/src/main/java/com/norteksoft/portal/entity/BaseSetting.java
|
e35d1b72f42573a79fe71d37148aaa66653a55ec
|
[] |
no_license
|
edd1225/iMatrix-v6.5.RC1
|
7a69669007a746cb4c5729e0ba452b9f4cad38ec
|
5c92b2bf450eacbece079f2db9175250d845cea7
|
refs/heads/master
| 2020-12-02T06:36:36.485540
| 2016-01-27T04:36:28
| 2016-01-27T04:36:28
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 969
|
java
|
package com.norteksoft.portal.entity;
import javax.persistence.Entity;
import javax.persistence.Table;
import com.norteksoft.product.orm.IdEntityNoExtendField;
@Entity
@Table(name="PORTAL_BASE_SETTING")
public class BaseSetting extends IdEntityNoExtendField{
private static final long serialVersionUID = 1L;
private Boolean messageVisible;//是否显示消息小窗体
private Integer refreshTime;//刷新间隔时间,单位:秒
private Integer showRows;//显示条数
public Integer getShowRows() {
return showRows;
}
public void setShowRows(Integer showRows) {
this.showRows = showRows;
}
public Boolean getMessageVisible() {
return messageVisible;
}
public void setMessageVisible(Boolean messageVisible) {
this.messageVisible = messageVisible;
}
public Integer getRefreshTime() {
return refreshTime;
}
public void setRefreshTime(Integer refreshTime) {
this.refreshTime = refreshTime;
}
}
|
[
"iMatrix@norteksoft.com"
] |
iMatrix@norteksoft.com
|
8427e5092b5c0236fe742c3f9eba7e14b7bbd3fd
|
50abf1545189bc25c02ae5abf56ed8cb7cb83c07
|
/amalgam/src/main/java/com/amalgam/app/ActivityManagerUtils.java
|
2e00cf0776a522669686201e0e658598094e5001
|
[] |
no_license
|
zhaoxiaoyunok/anyutilandroid
|
e98e61ddbf12102ece8997212e3d818fdc9faa83
|
051598fbe8f28da87256413bacd32650268225ca
|
refs/heads/master
| 2021-01-12T16:34:22.302340
| 2016-10-20T12:05:15
| 2016-10-20T12:05:15
| 71,411,437
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,169
|
java
|
/*
* Copyright (C) 2013 nohana, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.amalgam.app;
import android.annotation.TargetApi;
import android.app.ActivityManager;
import android.app.ActivityManager.RunningServiceInfo;
import android.app.ActivityManager.RunningAppProcessInfo;
import android.app.Service;
import android.content.ComponentName;
import android.content.Context;
import android.os.Build;
import android.text.TextUtils;
import java.util.List;
/**
* Utility for {@link android.app.ActivityManager}.
* @author KeithYokoma
*/
public final class ActivityManagerUtils {
/**
* Do NOT instantiate this class.
*/
private ActivityManagerUtils() {
throw new AssertionError();
}
/**
* 判断当前服务是否在运行
* Checks if the specified service is currently running or not.
* @param context the context.
* @param service the {@link java.lang.Class} of the service.
* @return true if the service is running, false otherwise.
*/
public static boolean isServiceRunning(Context context, Class<? extends Service> service) {
return isServiceRunning(context, service, Integer.MAX_VALUE);
}
/**
* 判断当前服务是否在运行
* Checks if the specified service is currently running or not.
* @param context the context.
* @param service the {@link java.lang.Class} of the service.
* @param maxCheckCount maximum value of the running service count for this check.
* @return true if the service is running, false otherwise.
*/
public static boolean isServiceRunning(Context context, Class<? extends Service> service, int maxCheckCount) {
if (context == null || service == null) {
return false;
}
ActivityManager manager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
List<RunningServiceInfo> list = manager.getRunningServices(maxCheckCount);
for (RunningServiceInfo info : list) {
if (service.getCanonicalName().equals(info.service.getClassName())) {
return true;
}
}
return false;
}
/**
* 指定包名的应用是否在运行
* @param context
* @param packageName
* @return
*/
public static boolean isApplicationRunning(Context context, String packageName) {
return isApplicationRunning(context, packageName, Integer.MAX_VALUE);
}
public static boolean isApplicationRunning(Context context, String packageName, int maxCheckCount) {
if (TextUtils.isEmpty(packageName)) {
return false;
}
ActivityManager manager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
List<ActivityManager.RunningTaskInfo> list = manager.getRunningTasks(maxCheckCount);
for (ActivityManager.RunningTaskInfo info : list) {
if (packageName.equals(info.baseActivity.getPackageName())) {
return true;
}
}
return false;
}
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
public static void moveTaskToFront(ActivityManager manager, ActivityManager.RunningTaskInfo info) {
manager.moveTaskToFront(info.id, 0x10000000);
}
/**
* 通过pid获取包名
* Get package name of the process id.
* @param context the context.
* @param pid the process id.
* @return the package name for the process id. {@code null} if no process found.
*/
public static String getPackageNameFromPid(Context context, int pid) {
ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
List<RunningAppProcessInfo> processes = am.getRunningAppProcesses();
for (RunningAppProcessInfo info : processes) {
if (info.pid == pid) {
String[] packages = info.pkgList;
if (packages.length > 0) {
return packages[0];
}
break;
}
}
return null;
}
/**
* 获取当前活动中的activity
* @param context
* @return
*/
public static ComponentName getCurrentActivity(Context context) {
ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
// get the info from the currently running task
List<ActivityManager.RunningTaskInfo> taskInfo = am.getRunningTasks(1);
if (taskInfo == null || taskInfo.size() <= 0) {
return null;
}
return taskInfo.get(0).topActivity;
}
}
|
[
"zhaoxiaoyunok@163.com"
] |
zhaoxiaoyunok@163.com
|
314807fc9b72bfabddfc253498a662a5383582c9
|
15b260ccada93e20bb696ae19b14ec62e78ed023
|
/v2/src/main/java/com/alipay/api/domain/ProjectRuleInfo.java
|
85e475827afb3bb2f6b03e225ddbaae6e6545ed2
|
[
"Apache-2.0"
] |
permissive
|
alipay/alipay-sdk-java-all
|
df461d00ead2be06d834c37ab1befa110736b5ab
|
8cd1750da98ce62dbc931ed437f6101684fbb66a
|
refs/heads/master
| 2023-08-27T03:59:06.566567
| 2023-08-22T14:54:57
| 2023-08-22T14:54:57
| 132,569,986
| 470
| 207
|
Apache-2.0
| 2022-12-25T07:37:40
| 2018-05-08T07:19:22
|
Java
|
UTF-8
|
Java
| false
| false
| 2,651
|
java
|
package com.alipay.api.domain;
import java.util.Date;
import java.util.List;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
/**
* 项目规则信息
*
* @author auto create
* @since 1.0, 2023-02-27 20:09:06
*/
public class ProjectRuleInfo extends AlipayObject {
private static final long serialVersionUID = 3784947322641157788L;
/**
* 有效期截止
*/
@ApiField("effective_end_date")
private Date effectiveEndDate;
/**
* 有效期起始
*/
@ApiField("effective_start_date")
private Date effectiveStartDate;
/**
* 切换open_id前请使用此字段:员工uid列表
*/
@ApiListField("employee_list")
@ApiField("string")
private List<String> employeeList;
/**
* 切换open_id后请使用此字段:员工open_id列表
*/
@ApiListField("employee_open_id_list")
@ApiField("string")
private List<String> employeeOpenIdList;
/**
* 规则组列表
*/
@ApiListField("expense_ctrl_rule_info_group_list")
@ApiField("expense_ctr_rule_group_info")
private List<ExpenseCtrRuleGroupInfo> expenseCtrlRuleInfoGroupList;
/**
* 项目id
*/
@ApiField("project_id")
private String projectId;
/**
* 项目名称
*/
@ApiField("project_name")
private String projectName;
public Date getEffectiveEndDate() {
return this.effectiveEndDate;
}
public void setEffectiveEndDate(Date effectiveEndDate) {
this.effectiveEndDate = effectiveEndDate;
}
public Date getEffectiveStartDate() {
return this.effectiveStartDate;
}
public void setEffectiveStartDate(Date effectiveStartDate) {
this.effectiveStartDate = effectiveStartDate;
}
public List<String> getEmployeeList() {
return this.employeeList;
}
public void setEmployeeList(List<String> employeeList) {
this.employeeList = employeeList;
}
public List<String> getEmployeeOpenIdList() {
return this.employeeOpenIdList;
}
public void setEmployeeOpenIdList(List<String> employeeOpenIdList) {
this.employeeOpenIdList = employeeOpenIdList;
}
public List<ExpenseCtrRuleGroupInfo> getExpenseCtrlRuleInfoGroupList() {
return this.expenseCtrlRuleInfoGroupList;
}
public void setExpenseCtrlRuleInfoGroupList(List<ExpenseCtrRuleGroupInfo> expenseCtrlRuleInfoGroupList) {
this.expenseCtrlRuleInfoGroupList = expenseCtrlRuleInfoGroupList;
}
public String getProjectId() {
return this.projectId;
}
public void setProjectId(String projectId) {
this.projectId = projectId;
}
public String getProjectName() {
return this.projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
}
}
|
[
"auto-publish"
] |
auto-publish
|
8207e424a8ce2674bbf73d89e8a858f303d637b7
|
3bb9e1a187cb72e2620a40aa208bf94e5cee46f5
|
/ifx-json/src/ong/eu/soon/ifx/element/PickupLoc.java
|
1967b597b65bf912bb19ec9d381c666928056359
|
[] |
no_license
|
eusoon/Mobile-Catalog
|
2e6f766864ea25f659f87548559502358ac5466c
|
869d7588447117b751fcd1387cd84be0bd66ef26
|
refs/heads/master
| 2021-01-22T23:49:12.717052
| 2013-12-10T08:22:20
| 2013-12-10T08:22:20
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 132
|
java
|
package ong.eu.soon.ifx.element;
import ong.eu.soon.ifx.basetypes.IFXString;
public class PickupLoc extends IFXString {
}
|
[
"eusoon@gmail.com"
] |
eusoon@gmail.com
|
86fbccd93cc3b528b5c77807e9759ab308d63a5f
|
520c40d98907288cdd72dc92d7520057bc3a0f11
|
/src/tilegame/entities/modules/Movement.java
|
78a44573a1612ae49c332a48fe90ff60c9d932c1
|
[] |
no_license
|
dixu11/2D-graphics-tilegame
|
14f2d0efca0a92ce8ea216278a6df4cdaea7c36e
|
eb3d8f215eecf0ab93ae285ec9c1397afad36e6c
|
refs/heads/master
| 2020-06-15T05:29:17.921321
| 2019-07-04T09:52:33
| 2019-07-04T09:52:33
| 195,215,020
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,121
|
java
|
package tilegame.entities.modules;
import tilegame.entities.creatures.MovableEntity;
import tilegame.mediators.Mediator;
import tilegame.wrappers.Coords;
import java.awt.*;
public class Movement { // Class created to avoid calculating movement in thisEntity class
private double speed;
private int streanght;
private double xMove, yMove;
private MovableEntity thisEntity;
private Rectangle bounds;
private Mediator mediator;
public Movement(double speed, MovableEntity movableEntity, int streanght) {
this.speed = speed;
this.streanght = streanght;
setOwner(movableEntity);
}
public void setOwner(MovableEntity owner) {
thisEntity = owner;
bounds = thisEntity.getBounds();
this.mediator = thisEntity.getMediator();
// maybe i could use strattegy pattern or something so i can executeMove this to the constructor
}
public boolean move(Side side) {
calculateInput(side);
return executeMove();
}
public void calculateInput(Side side) {
yMove = 0;
xMove = 0;
switch (side) {
case UP:
thisEntity.setFacingSide(Side.UP);
yMove = -speed;
break;
case DOWN:
thisEntity.setFacingSide(Side.DOWN);
yMove = speed;
break;
case LEFT:
thisEntity.setFacingSide(Side.LEFT);
xMove = -speed;
break;
case RIGHT:
thisEntity.setFacingSide(Side.RIGHT);
xMove = speed;
break;
}
}
public boolean executeMove() {
boolean moved = true;
if (thisEntity.comunicateColisions(new Coords(xMove, 0),streanght).isEmpty()) {
moved = moveX(); //should be executed if there is colision
}
if (thisEntity.comunicateColisions(new Coords(0, yMove),streanght).isEmpty()) {
moved = moveY();
}
return moved;
}
// 20 + 2 + 16 + 32 / 64 = Tile 1
public boolean moveX() {
boolean moved = false;
Coords coords = thisEntity.getCoords();
if (xMove > 0) { // moving right
double tempX = coords.getX() + xMove + bounds.x + bounds.width;
if (!isCollision(new Coords(tempX, coords.getY() + bounds.y)) &&
!isCollision(new Coords(tempX, coords.getY() + bounds.y + bounds.height))) {
coords.addToX(xMove);
moved = true;
}
} else if (xMove < 0) { //moving left
double tempX = coords.getX() + xMove + bounds.x;
if (!isCollision(new Coords(tempX, coords.getY() + bounds.y)) &&
!isCollision(new Coords(tempX, coords.getY() + bounds.y + bounds.height))) {
coords.addToX(xMove);
moved = true;
}
}
return moved;
}
public boolean moveY() {
boolean moved = false;
Coords coords = thisEntity.getCoords();
if (yMove < 0) { // moving up
double tempY = coords.getYInt() + yMove + bounds.y;
if (!isCollision(new Coords(coords.getX() + bounds.x, tempY)) &&
!isCollision(new Coords(coords.getX() + bounds.x + bounds.width, tempY))) {
coords.addToY(yMove);
moved = true;
}
} else if (yMove > 0) { // moving down
double tempY = coords.getYInt() + yMove + bounds.y + bounds.height;
if (!isCollision(new Coords(coords.getX() + bounds.x, tempY)) &&
!isCollision(new Coords(coords.getX() + bounds.x + bounds.width, tempY))) {
coords.addToY(yMove);
moved = true;
}
}
return moved;
}
public boolean isCollision(Coords pixelCoords) {
return mediator.isTileSolid(pixelCoords);
}
public enum Side {
UP(0), LEFT(1), DOWN(2), RIGHT(3);
int id;
Side(int id) {
this.id = id;
}
public int getId() {
return id;
}
public static Side getSideById(int id) {
for (Side side : Side.values()) {
if (side.getId() == id) {
return side;
}
}
return LEFT;
}
public static Side getNext(Side side) {
int id = side.getId();
if (id + 1 < Side.values().length) {
return getSideById(id + 1);
} else {
return getSideById(0);
}
}
}
public double getSpeed() {
return speed;
}
public void setSpeed(double speed) {
this.speed = speed;
}
public double getxMove() {
return xMove;
}
public void setXMove(double xMove) {
this.xMove = xMove;
}
public double getyMove() {
return yMove;
}
public void setYMove(double yMove) {
this.yMove = yMove;
}
}
|
[
"daniel.szlicht25@gmail.com"
] |
daniel.szlicht25@gmail.com
|
f3de15124d42b21c5aa43c3f1e6af8eda845a7a1
|
0f0b75d189bec77cde5f6870de0c746959665b28
|
/flamingo/src/main/java/org/pushingpixels/flamingo/api/common/ProgressEvent.java
|
4b77c6770cab0071ba7e3f23ec043cc5c7e19349
|
[
"BSD-3-Clause"
] |
permissive
|
vad-babushkin/radiance
|
08f21bf6102261a1bba6407bab738ab33baf9cd5
|
42d17c7018e009f16131e3ddc0e3e980f42770f6
|
refs/heads/master
| 2021-03-27T22:28:06.062205
| 2020-03-06T03:27:26
| 2020-03-06T03:27:26
| 247,813,010
| 1
| 0
|
BSD-3-Clause
| 2020-03-16T20:44:39
| 2020-03-16T20:44:38
| null |
UTF-8
|
Java
| false
| false
| 3,206
|
java
|
/*
* Copyright (c) 2005-2020 Radiance Kirill Grouchnikov. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* o 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.
*
* o Neither the name of the copyright holder 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.
*/
package org.pushingpixels.flamingo.api.common;
import java.util.EventObject;
/**
* This event is used to notify interested parties that progress has been made
* in the event source.
*
* @author Kirill Grouchnikov
* @see ProgressListener
*/
public class ProgressEvent extends EventObject {
/**
* Minimum value of the available progress range.
*/
private int minimum;
/**
* Maximum value of the available progress range.
*/
private int maximum;
/**
* Current value of the progress.
*/
private int progress;
/**
* Creates a new progress event.
*
* @param source
* Event source.
* @param min
* Minimum value of the available progress range.
* @param max
* Maximum value of the available progress range.
* @param progress
* Current value of the progress.
*/
public ProgressEvent(Object source, int min, int max, int progress) {
super(source);
this.maximum = max;
this.minimum = min;
this.progress = progress;
}
/**
* Returns the maximum value of the available progress range.
*
* @return The maximum value of the available progress range.
*/
public int getMaximum() {
return this.maximum;
}
/**
* Returns the minimum value of the available progress range.
*
* @return The minimum value of the available progress range.
*/
public int getMinimum() {
return this.minimum;
}
/**
* Returns the current value of the progress.
*
* @return The current value of the progress.
*/
public int getProgress() {
return this.progress;
}
}
|
[
"kirill.grouchnikov@gmail.com"
] |
kirill.grouchnikov@gmail.com
|
5f6d19617269ba87a8a8af20483437b3b8aa90df
|
27fd6668debd45b28e8c5c80abf9af49c675102a
|
/jse/src/cmm04/array/No04_AdcForLoopDemo.java
|
89504bc2f027ed4fc7fb9b086dcc94420f13fffc
|
[] |
no_license
|
rlawogmlz/jse-3Days
|
c52260f7cd5af5da6fb9af2b0653218a0fa4f82b
|
2266a82a02d24681f3449671b7c24203a9c23a0d
|
refs/heads/master
| 2016-09-10T00:11:03.422081
| 2015-06-03T02:53:00
| 2015-06-03T02:53:00
| 35,396,821
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 410
|
java
|
package cmm04.array;
public class No04_AdcForLoopDemo
{
public static void main(String[] args)
{
int[] intarr = {1,2,3,4,5};
System.out.println("향상된 For문으로 출력한 예제");
for(int i : intarr) //intarr.length와 i++을 축약한 for문
{ //i = 0을 하지 못하므로 시작점은 무조건 배열에 첫번째
System.out.println("\t"+i);
}
}
}
|
[
"Administrator@MSDN-SPECIAL"
] |
Administrator@MSDN-SPECIAL
|
b5e4059fac14a761577e7d7218f4607679dc7387
|
c885ef92397be9d54b87741f01557f61d3f794f3
|
/results/Mockito-2/org.mockito.internal.util.Timer/BBC-F0-opt-60/tests/9/org/mockito/internal/util/Timer_ESTest.java
|
c663e025937d3e3ac304c4cc82a4e2796bf3a30d
|
[
"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,745
|
java
|
/*
* This file was automatically generated by EvoSuite
* Tue Oct 19 18:47:34 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();
boolean boolean0 = timer0.isCounting();
assertTrue(boolean0);
}
@Test(timeout = 4000)
public void test1() throws Throwable {
Timer timer0 = new Timer((-951L));
System.setCurrentTimeMillis((-951L));
timer0.start();
boolean boolean0 = timer0.isCounting();
assertFalse(boolean0);
}
@Test(timeout = 4000)
public void test2() throws Throwable {
Timer timer0 = new Timer((-1L));
timer0.start();
System.setCurrentTimeMillis((-1L));
boolean boolean0 = timer0.isCounting();
assertTrue(boolean0);
}
@Test(timeout = 4000)
public void test3() throws Throwable {
Timer timer0 = new Timer((-951L));
// Undeclared exception!
try {
timer0.isCounting();
fail("Expecting exception: AssertionError");
} catch(AssertionError e) {
//
// no message in exception (getMessage() returned null)
//
}
}
}
|
[
"pderakhshanfar@serg2.ewi.tudelft.nl"
] |
pderakhshanfar@serg2.ewi.tudelft.nl
|
3daa997299f6f9a663e3ffed42f4c78110545d4a
|
3370a0d2a9e3c73340b895de3566f6e32aa3ca4a
|
/alwin-middleware-grapescode/alwin-core/src/test/java/com/codersteam/alwin/integration/mock/PersonServiceMock.java
|
0a587d23ef889dca7cddb21d7195b70f446c0d83
|
[] |
no_license
|
Wilczek01/alwin-projects
|
8af8e14601bd826b2ec7b3a4ce31a7d0f522b803
|
17cebb64f445206320fed40c3281c99949c47ca3
|
refs/heads/master
| 2023-01-11T16:37:59.535951
| 2020-03-24T09:01:01
| 2020-03-24T09:01:01
| 249,659,398
| 0
| 0
| null | 2023-01-07T16:18:14
| 2020-03-24T09:02:28
|
Java
|
UTF-8
|
Java
| false
| false
| 1,040
|
java
|
package com.codersteam.alwin.integration.mock;
import com.codersteam.aida.core.api.model.AidaPersonDto;
import com.codersteam.aida.core.api.service.PersonService;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @author Michal Horowic
*/
public class PersonServiceMock implements PersonService {
/**
* Osoby w zewnętrzym systemie dostępni po identyfikatorze firmy
*/
public final static Map<Long, List<AidaPersonDto>> PERSONS_BY_COMPANY_ID = new HashMap<>();
/**
* Osoby w zewnętrznym systemie dostępni po dacie
*/
public final static Map<Date, List<AidaPersonDto>> PERSONS_BY_DATE_FROM = new HashMap<>();
@Override
public List<AidaPersonDto> findPersonByCompanyId(final Long companyId) {
return PERSONS_BY_COMPANY_ID.get(companyId);
}
@Override
public List<AidaPersonDto> findModifiedPersonsExclusiveFromDate(final Date fromDate, final Date toDate) {
return PERSONS_BY_DATE_FROM.get(fromDate);
}
}
|
[
"grogus@ad.aliorleasing.pl"
] |
grogus@ad.aliorleasing.pl
|
dc37fae59a5ccc17b0f521c017d0b13b0a850d5b
|
9a217def71fd4d4b239a4caa2ec02c3a0ca86791
|
/DGVServer/src/wg/bookmovie/service/IBookMovieService.java
|
378c9f9f25927d9e48b32ec067871ade105bf4dd
|
[] |
no_license
|
so0487/MidProject
|
259a923a119b1e4b0128d025faa92c837bab6660
|
64ed99b3f415b38d803958f8560301d8016ccdca
|
refs/heads/main
| 2023-02-06T18:03:56.946865
| 2020-12-26T05:41:07
| 2020-12-26T05:41:07
| 311,552,740
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,217
|
java
|
package wg.bookmovie.service;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;
import wg.vo.BookMovieVO;
import wg.vo.BookMovieViewVO;
public interface IBookMovieService extends Remote {
/**
*
* @author 선미
* @param mem_id
* @return
*/
public List<BookMovieViewVO> getAllBookMovieView(String mem_id) throws RemoteException;
/**
*
* @author 선미
* @param book_id
* @return
*/
public List<String> getSeat_idList(String book_id) throws RemoteException;
/**
*
* @author 선미
* @param bvo
* @return
*/
public int insertBookMovie(BookMovieVO bvo) throws RemoteException;
/**
*
* @author 선미
* @param book_id
* @return
*/
public int deleteBookMovie(String book_id) throws RemoteException;
/**
* 예매id 생성을 위하여 DB의 BookMovie테이블의 book_id중 가장 큰 값을 반환하는 메서드
* @author 선미
* @return 가장 큰 book_id
*/
public String getMaxBook_id() throws RemoteException;
/**
* 관리자가 전체 예매 내역을 조회하는 매서드
* @author 이명석
* @return 전체 예매 내역
*/
public List<BookMovieViewVO> getAllBook() throws RemoteException;
}
|
[
"so04876725@gmail.com"
] |
so04876725@gmail.com
|
48c2347b491ef3236bb64998648b9a9d83bcbcc7
|
e1e5bd6b116e71a60040ec1e1642289217d527b0
|
/H5/L2jSunrise_com/L2jSunrise_com_2019_09_16/L2J_SunriseProject_Core/java/l2r/gameserver/model/actor/instance/L2BufferInstance.java
|
6845e63db76aa3dfa3701023f760040f8420df3b
|
[] |
no_license
|
serk123/L2jOpenSource
|
6d6e1988a421763a9467bba0e4ac1fe3796b34b3
|
603e784e5f58f7fd07b01f6282218e8492f7090b
|
refs/heads/master
| 2023-03-18T01:51:23.867273
| 2020-04-23T10:44:41
| 2020-04-23T10:44:41
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,583
|
java
|
package l2r.gameserver.model.actor.instance;
import l2r.gameserver.ThreadPoolManager;
import l2r.gameserver.enums.InstanceType;
import l2r.gameserver.enums.ZoneIdType;
import l2r.gameserver.model.actor.FakePc;
import l2r.gameserver.model.actor.L2Npc;
import l2r.gameserver.model.actor.templates.L2NpcTemplate;
import l2r.gameserver.network.serverpackets.ActionFailed;
import l2r.gameserver.network.serverpackets.NpcHtmlMessage;
import gr.sr.javaBuffer.AutoBuff;
import gr.sr.javaBuffer.BufferPacketCategories;
import gr.sr.javaBuffer.BufferPacketSender;
import gr.sr.javaBuffer.JavaBufferBypass;
import gr.sr.javaBuffer.PlayerMethods;
import gr.sr.javaBuffer.buffNpc.dynamicHtmls.GenerateHtmls;
import gr.sr.javaBuffer.runnable.BuffDeleter;
import gr.sr.main.Conditions;
public class L2BufferInstance extends L2Npc
{
@Override
public void showChatWindow(L2PcInstance player)
{
player.sendPacket(ActionFailed.STATIC_PACKET);
NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
html.setFile(player, player.getHtmlPrefix(), "data/html/sunrise/NpcBuffer/main.htm");
html.replace("%objectId%", String.valueOf(getObjectId()));
player.sendPacket(html);
}
public L2BufferInstance(L2NpcTemplate template)
{
super(template);
setInstanceType(InstanceType.L2BufferInstance);
FakePc fpc = getFakePc();
if (fpc != null)
{
setTitle(fpc.title);
}
}
// Manages all bypasses for normal players
@Override
public void onBypassFeedback(final L2PcInstance player, String command)
{
final String[] subCommand = command.split("_");
// No null pointers
if (player == null)
{
return;
}
if (!Conditions.checkPlayerConditions(player))
{
return;
}
// Page navigation, html command how to starts
if (command.startsWith("Chat"))
{
if (subCommand[1].isEmpty() || (subCommand[1] == null))
{
return;
}
NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
html.setFile(player, player.getHtmlPrefix(), "data/html/sunrise/NpcBuffer/" + subCommand[1]);
html.replace("%objectId%", String.valueOf(getObjectId()));
player.sendPacket(html);
}
// Method to remove all players buffs
else if (command.startsWith("removebuff"))
{
player.stopAllEffects();
BufferPacketSender.sendPacket(player, "functions.htm", BufferPacketCategories.FILE, getObjectId());
}
// Method to restore HP/MP/CP
else if (command.startsWith("healme"))
{
player.setCurrentHpMp(player.getMaxHp(), player.getMaxMp());
player.setCurrentCp(player.getMaxCp());
if (player.hasSummon())
{
player.getSummon().setCurrentHpMp(player.getSummon().getMaxHp(), player.getSummon().getMaxMp());
player.getSummon().setCurrentCp(player.getSummon().getMaxCp());
}
BufferPacketSender.sendPacket(player, "functions.htm", BufferPacketCategories.FILE, getObjectId());
}
// Method to give auto buffs depends on class
else if (command.startsWith("autobuff"))
{
if ((player.getPvpFlag() != 0) && !player.isInsideZone(ZoneIdType.PEACE))
{
player.sendMessage("Cannot use this feature here with flag.");
return;
}
AutoBuff.autoBuff(player);
BufferPacketSender.sendPacket(player, "functions.htm", BufferPacketCategories.FILE, getObjectId());
}
// Send buffs from profile to player or party or pet
else if (command.startsWith("bufffor"))
{
if (command.startsWith("buffforpet"))
{
JavaBufferBypass.callPetBuffCommand(player, subCommand[1]);
}
else if (command.startsWith("buffforparty"))
{
JavaBufferBypass.callPartyBuffCommand(player, subCommand[1]);
}
else if (command.startsWith("buffforme"))
{
JavaBufferBypass.callSelfBuffCommand(player, subCommand[1]);
}
BufferPacketSender.sendPacket(player, "main.htm", BufferPacketCategories.FILE, getObjectId());
}
// Method to give single buffs
else if (command.startsWith("buff"))
{
JavaBufferBypass.callBuffCommand(player, subCommand[1], subCommand[0], getObjectId());
}
// Scheme create new profile
else if (command.startsWith("saveProfile"))
{
try
{
JavaBufferBypass.callSaveProfile(player, subCommand[1], getObjectId());
}
catch (Exception e)
{
player.sendMessage("Please specify a valid profile name.");
BufferPacketSender.sendPacket(player, "newSchemeProfile.htm", BufferPacketCategories.FILE, getObjectId());
return;
}
}
else if (command.startsWith("showAvaliable"))
{
JavaBufferBypass.callAvailableCommand(player, subCommand[0], subCommand[1], getObjectId());
}
else if (command.startsWith("add"))
{
JavaBufferBypass.callAddCommand(player, subCommand[0], subCommand[1], subCommand[2], getObjectId());
}
// Method to delete player's selected profile
else if (command.startsWith("deleteProfile"))
{
PlayerMethods.delProfile(subCommand[1], player);
BufferPacketSender.sendPacket(player, "main.htm", BufferPacketCategories.FILE, getObjectId());
}
else if (command.startsWith("showBuffsToDelete"))
{
GenerateHtmls.showBuffsToDelete(player, subCommand[1], "removeBuffs", getObjectId());
}
else if (command.startsWith("removeBuffs"))
{
ThreadPoolManager.getInstance().executeGeneral(new BuffDeleter(player, subCommand[1], Integer.parseInt(subCommand[2]), getObjectId()));
}
else if (command.startsWith("showProfiles"))
{
GenerateHtmls.showSchemeToEdit(player, subCommand[1], getObjectId());
}
}
}
|
[
"64197706+L2jOpenSource@users.noreply.github.com"
] |
64197706+L2jOpenSource@users.noreply.github.com
|
60e1291a931c2d0f032d836237e50d2806e3705e
|
fb079e82c42cea89a3faea928d4caf0df4954b05
|
/Физкультура/ВДНХ/VelnessBMSTU_v1.2b_apkpure.com_source_from_JADX/android/support/v7/widget/AppCompatCompoundButtonHelper.java
|
ce95eafcb67e344c2185e45fbcb9ab0ac6d23bc2
|
[] |
no_license
|
Belousov-EA/university
|
33c80c701871379b6ef9aa3da8f731ccf698d242
|
6ec7303ca964081c52f259051833a045f0c91a39
|
refs/heads/master
| 2022-01-21T17:46:30.732221
| 2022-01-10T20:27:15
| 2022-01-10T20:27:15
| 123,337,018
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,112
|
java
|
package android.support.v7.widget;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
import android.graphics.PorterDuff.Mode;
import android.graphics.drawable.Drawable;
import android.os.Build.VERSION;
import android.support.annotation.Nullable;
import android.support.v4.graphics.drawable.DrawableCompat;
import android.support.v4.widget.CompoundButtonCompat;
import android.support.v7.appcompat.C0180R;
import android.support.v7.content.res.AppCompatResources;
import android.util.AttributeSet;
import android.widget.CompoundButton;
class AppCompatCompoundButtonHelper {
private ColorStateList mButtonTintList = null;
private Mode mButtonTintMode = null;
private boolean mHasButtonTint = false;
private boolean mHasButtonTintMode = false;
private boolean mSkipNextApply;
private final CompoundButton mView;
interface DirectSetButtonDrawableInterface {
void setButtonDrawable(Drawable drawable);
}
AppCompatCompoundButtonHelper(CompoundButton view) {
this.mView = view;
}
void loadFromAttributes(AttributeSet attrs, int defStyleAttr) {
TypedArray a = this.mView.getContext().obtainStyledAttributes(attrs, C0180R.styleable.CompoundButton, defStyleAttr, 0);
try {
if (a.hasValue(C0180R.styleable.CompoundButton_android_button)) {
int resourceId = a.getResourceId(C0180R.styleable.CompoundButton_android_button, 0);
if (resourceId != 0) {
this.mView.setButtonDrawable(AppCompatResources.getDrawable(this.mView.getContext(), resourceId));
}
}
if (a.hasValue(C0180R.styleable.CompoundButton_buttonTint)) {
CompoundButtonCompat.setButtonTintList(this.mView, a.getColorStateList(C0180R.styleable.CompoundButton_buttonTint));
}
if (a.hasValue(C0180R.styleable.CompoundButton_buttonTintMode)) {
CompoundButtonCompat.setButtonTintMode(this.mView, DrawableUtils.parseTintMode(a.getInt(C0180R.styleable.CompoundButton_buttonTintMode, -1), null));
}
a.recycle();
} catch (Throwable th) {
a.recycle();
}
}
void setSupportButtonTintList(ColorStateList tint) {
this.mButtonTintList = tint;
this.mHasButtonTint = true;
applyButtonTint();
}
ColorStateList getSupportButtonTintList() {
return this.mButtonTintList;
}
void setSupportButtonTintMode(@Nullable Mode tintMode) {
this.mButtonTintMode = tintMode;
this.mHasButtonTintMode = true;
applyButtonTint();
}
Mode getSupportButtonTintMode() {
return this.mButtonTintMode;
}
void onSetButtonDrawable() {
if (this.mSkipNextApply) {
this.mSkipNextApply = false;
return;
}
this.mSkipNextApply = true;
applyButtonTint();
}
void applyButtonTint() {
Drawable buttonDrawable = CompoundButtonCompat.getButtonDrawable(this.mView);
if (buttonDrawable == null) {
return;
}
if (this.mHasButtonTint || this.mHasButtonTintMode) {
buttonDrawable = DrawableCompat.wrap(buttonDrawable).mutate();
if (this.mHasButtonTint) {
DrawableCompat.setTintList(buttonDrawable, this.mButtonTintList);
}
if (this.mHasButtonTintMode) {
DrawableCompat.setTintMode(buttonDrawable, this.mButtonTintMode);
}
if (buttonDrawable.isStateful()) {
buttonDrawable.setState(this.mView.getDrawableState());
}
this.mView.setButtonDrawable(buttonDrawable);
}
}
int getCompoundPaddingLeft(int superValue) {
if (VERSION.SDK_INT >= 17) {
return superValue;
}
Drawable buttonDrawable = CompoundButtonCompat.getButtonDrawable(this.mView);
if (buttonDrawable != null) {
return superValue + buttonDrawable.getIntrinsicWidth();
}
return superValue;
}
}
|
[
"Belousov.EA98@gmail.com"
] |
Belousov.EA98@gmail.com
|
8304e8dfe783171c58b0b593f25bb7ae71141136
|
7af41d759f0575ec9b90eb61e83a023ac40a3877
|
/src/main/java/uk/org/ifopt/ifopt/Extensions.java
|
df50218bdfca94fabc7f65f24ea6675a1f5143a8
|
[
"MIT"
] |
permissive
|
camsys/onebusaway-siri-api-v20
|
5beb99c15b99cf270ede77cae049cd8415319f31
|
0ac892b154e138279ef3ce860b584c6a443e9e7c
|
refs/heads/master
| 2021-12-14T02:38:50.950084
| 2021-11-19T20:16:59
| 2021-11-19T20:16:59
| 29,933,328
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,865
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.11.22 at 01:45:09 PM EST
//
package uk.org.ifopt.ifopt;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.namespace.QName;
import org.w3c.dom.Element;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <extension base="{http://www.w3.org/2001/XMLSchema}anyType">
* <anyAttribute processContents='skip'/>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"any"
})
@XmlRootElement(name = "Extensions")
public class Extensions {
@XmlAnyElement
protected List<Element> any;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
/**
* Gets the value of the any 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 any property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAny().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Element }
*
*
*/
public List<Element> getAny() {
if (any == null) {
any = new ArrayList<Element>();
}
return this.any;
}
/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
* <p>
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map<QName, String> getOtherAttributes() {
return otherAttributes;
}
}
|
[
"lennycaraballo@gmail.com"
] |
lennycaraballo@gmail.com
|
caa360aa37f06d7eee8adfb2f01683e0599d562f
|
c6975da9f79731fd49fb01a4c91cf3b2defad249
|
/src/main/java/com/ccl/main/ApplicationConfig.java
|
9b1ebeb8fbc343c2731e178555fef14cd6258972
|
[] |
no_license
|
freedom541/MyJetty0810
|
e36cbf5092dfe9ef5b930b5aa4672ba8310d5c91
|
d54936ac2511b593e23b53f97ad76ba75ed6bd8d
|
refs/heads/master
| 2020-05-21T23:44:44.322508
| 2016-10-11T07:41:16
| 2016-10-11T07:41:16
| 65,367,026
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 465
|
java
|
package com.ccl.main;
import org.glassfish.jersey.jackson.JacksonFeature;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.server.ServerProperties;
/**
* Created by ccl on 16/8/10.
*/
public class ApplicationConfig extends ResourceConfig {
public ApplicationConfig() {
packages("com.ccl.action");
register(JacksonFeature.class);
property(ServerProperties.METAINF_SERVICES_LOOKUP_DISABLE, true);
}
}
|
[
"chencl@jiagouyun.com"
] |
chencl@jiagouyun.com
|
59faf0dd59e2ac02e1b39d501ad5928dc9401ee5
|
3b26a0d39305e54c859c80f040170f928f23a644
|
/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ShadowTextToSpeech.java
|
cdc4b39febcd3fc95d1b4da1c6ae020f6b69cfce
|
[] |
no_license
|
MyMagma/apps
|
cfd74d98c7b81d4bc2f4b4946484a7be1b3bb4ef
|
128d43ae1aa967328b32225f5eb162fb3b6569d3
|
refs/heads/master
| 2020-12-27T06:49:24.811808
| 2020-02-02T17:32:35
| 2020-02-02T17:32:35
| 237,800,995
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,508
|
java
|
/*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.car.settings.testutils;
import android.content.Context;
import android.os.Bundle;
import android.speech.tts.TextToSpeech;
import android.speech.tts.Voice;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.Resetter;
import java.util.Locale;
@Implements(TextToSpeech.class)
public class ShadowTextToSpeech {
private static TextToSpeech sInstance;
private static TextToSpeech.OnInitListener sOnInitListener;
private static String sEngine;
public static void setInstance(TextToSpeech textToSpeech) {
sInstance = textToSpeech;
}
/**
* Override constructor and only store the name of the last constructed engine and init
* listener.
*/
public void __constructor__(Context context, TextToSpeech.OnInitListener listener,
String engine,
String packageName, boolean useFallback) {
sOnInitListener = listener;
sEngine = engine;
}
public void __constructor__(Context context, TextToSpeech.OnInitListener listener,
String engine) {
__constructor__(context, listener, engine, null, false);
}
public void __constructor__(Context context, TextToSpeech.OnInitListener listener) {
__constructor__(context, listener, null, null, false);
}
@Implementation
protected String getCurrentEngine() {
return sInstance.getCurrentEngine();
}
@Implementation
protected int setLanguage(final Locale loc) {
return sInstance.setLanguage(loc);
}
@Implementation
protected void shutdown() {
sInstance.shutdown();
}
@Implementation
protected int setSpeechRate(float speechRate) {
return sInstance.setSpeechRate(speechRate);
}
@Implementation
protected int setPitch(float pitch) {
return sInstance.setPitch(pitch);
}
@Implementation
protected Voice getVoice() {
return sInstance.getVoice();
}
@Implementation
protected int isLanguageAvailable(final Locale loc) {
return sInstance.isLanguageAvailable(loc);
}
@Implementation
protected int speak(final CharSequence text,
final int queueMode,
final Bundle params,
final String utteranceId) {
return sInstance.speak(text, queueMode, params, utteranceId);
}
@Resetter
public static void reset() {
sInstance = null;
sOnInitListener = null;
sEngine = null;
}
/** Check for the last constructed engine name. */
public static String getLastConstructedEngine() {
return sEngine;
}
/** Trigger the initializtion callback given the input status. */
public static void callInitializationCallbackWithStatus(int status) {
sOnInitListener.onInit(status);
}
}
|
[
"user@email.edu"
] |
user@email.edu
|
64b48387acd7c394981cc553a8dcafc254ee1cbd
|
7f20b1bddf9f48108a43a9922433b141fac66a6d
|
/csplugins/trunk/ucsd/mes/api/src/main/java/org/cytoscape/io/read/CyReader.java
|
139eb52c5377cb52fe784fbe5ad6ea8b9bb5b0af
|
[] |
no_license
|
ahdahddl/cytoscape
|
bf783d44cddda313a5b3563ea746b07f38173022
|
a3df8f63dba4ec49942027c91ecac6efa920c195
|
refs/heads/master
| 2020-06-26T16:48:19.791722
| 2013-08-28T04:08:31
| 2013-08-28T04:08:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,717
|
java
|
/*
Copyright (c) 2008, The Cytoscape Consortium (www.cytoscape.org)
The Cytoscape Consortium is:
- Institute for Systems Biology
- University of California San Diego
- Memorial Sloan-Kettering Cancer Center
- Institut Pasteur
- Agilent Technologies
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation; either version 2.1 of the License, or
any later version.
This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. The software and
documentation provided hereunder is on an "as is" basis, and the
Institute for Systems Biology and the Whitehead Institute
have no obligations to provide maintenance, support,
updates, enhancements or modifications. In no event shall the
Institute for Systems Biology and the Whitehead Institute
be liable to any party for direct, indirect, special,
incidental or consequential damages, including lost profits, arising
out of the use of this software and its documentation, even if the
Institute for Systems Biology and the Whitehead Institute
have been advised of the possibility of such damage. See
the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this library; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
package org.cytoscape.io.read;
import java.io.IOException;
import java.io.InputStream;
/**
* The basic input interface that specifies what is to be read and when it is
* to be read. This interface should be extended by other interfaces to provide
* access to the data that gets read. One class can then implement multiple
* CyReader interfaces to support reading files that contain multiple types
* of data (like networks that contain both attribute and view model information).
*/
public interface CyReader {
/**
* Calling this method will initiate reading of the input specified in the {@link
* CyReader#setInput(InputStream is)}. This method will return once the data has been read and
* will(?) throw an exception otherwise.
*
* @throws IOException Will throw an IOException when any problem arises while performing the
* read operation.
*/
public void read() throws IOException;
/**
* This method sets the input that is to be read and must be called prior to the
* {@link CyReader#read()} method.
*
* @param is An InputStream to be read.
*/
public void setInput(InputStream is);
}
|
[
"mes@0ecc0d97-ab19-0410-9704-bfe1a75892f5"
] |
mes@0ecc0d97-ab19-0410-9704-bfe1a75892f5
|
ce107dc28923a2787f3f682b34f8959c331ce5d9
|
60c4056900b741a6b68b9bbaae3458a9e12b2441
|
/src/main/java/designpatterns/creational/abstractfactory/model/PC.java
|
9b1bffac4c7c1235af88f2508a7dd9bdddf71326
|
[] |
no_license
|
dhrub123/JavaFundamentals
|
c82b27822d294894f1b35ce853db206c505e38b1
|
cd626a3cca500fa3afb9c092aa68692e9a4ae880
|
refs/heads/master
| 2023-05-12T11:39:04.280928
| 2023-05-05T07:32:44
| 2023-05-05T07:32:44
| 289,631,254
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 565
|
java
|
package designpatterns.creational.abstractfactory.model;
public class PC extends Computer {
private String ram;
private String cpu;
private String hdd;
public PC(String ram, String cpu, String hdd) {
this.ram = ram;
this.cpu = cpu;
this.hdd = hdd;
}
@Override
public String getRam() {
return this.ram;
}
@Override
public String getHdd() {
return this.hdd;
}
@Override
public String getCpu() {
return this.cpu;
}
@Override
public String toString() {
return "PC [ram=" + ram + ", cpu=" + cpu + ", hdd=" + hdd + "]";
}
}
|
[
"dhrub123@gmail.com"
] |
dhrub123@gmail.com
|
91f62ae1c122be515eec080beabb82c1d7f2ea9c
|
cfc9e6b1d923642307c494cfaf31e5d437e8609b
|
/com/hbm/render/tileentity/RenderTauTurret.java
|
59995aac82361a375172ccb73d62f9e00f7fae07
|
[
"WTFPL"
] |
permissive
|
erbege/Hbm-s-Nuclear-Tech-GIT
|
0553ff447032c6e9bbc5b5d8a3f480bc33aac13d
|
043a07d5871568993526928db1457508f6e4c4f3
|
refs/heads/master
| 2023-08-02T16:32:28.680199
| 2020-09-16T20:53:45
| 2020-09-16T20:53:45
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,369
|
java
|
package com.hbm.render.tileentity;
import org.lwjgl.opengl.GL11;
import com.hbm.lib.RefStrings;
import com.hbm.main.ResourceManager;
import com.hbm.tileentity.bomb.TileEntityTurretBase;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
public class RenderTauTurret extends TileEntitySpecialRenderer {
public RenderTauTurret() { }
@Override
public void renderTileEntityAt(TileEntity tileEntity, double x, double y, double z, float f)
{
GL11.glPushMatrix();
GL11.glTranslated(x + 0.5D, y, z + 0.5D);
GL11.glEnable(GL11.GL_LIGHTING);
GL11.glDisable(GL11.GL_CULL_FACE);
GL11.glRotatef(180, 0F, 1F, 0F);
double yaw = 0;
double pitch = 0;
if(tileEntity instanceof TileEntityTurretBase) {
yaw = ((TileEntityTurretBase)tileEntity).rotationYaw;
pitch = ((TileEntityTurretBase)tileEntity).rotationPitch;
}
this.bindTexture(ResourceManager.turret_heavy_base_tex);
ResourceManager.turret_heavy_base.renderAll();
GL11.glPopMatrix();
renderTileEntityAt2(tileEntity, x, y, z, f, yaw, pitch);
}
public void renderTileEntityAt2(TileEntity tileEntity, double x, double y, double z, float f, double yaw, double pitch)
{
GL11.glPushMatrix();
GL11.glTranslated(x + 0.5D, y, z + 0.5D);
GL11.glEnable(GL11.GL_LIGHTING);
GL11.glDisable(GL11.GL_CULL_FACE);
GL11.glRotatef(180, 0F, 1F, 0F);
GL11.glRotated(yaw + 180, 0F, -1F, 0F);
this.bindTexture(ResourceManager.turret_tau_rotor_tex);
ResourceManager.turret_heavy_rotor.renderAll();
GL11.glPopMatrix();
renderTileEntityAt3(tileEntity, x, y, z, f, yaw, pitch);
}
public void renderTileEntityAt3(TileEntity tileEntity, double x, double y, double z, float f, double yaw, double pitch)
{
GL11.glPushMatrix();
GL11.glTranslated(x + 0.5D, y + 1, z + 0.5D);
GL11.glEnable(GL11.GL_LIGHTING);
GL11.glDisable(GL11.GL_CULL_FACE);
GL11.glRotatef(180, 0F, 1F, 0F);
GL11.glRotated(yaw + 180, 0F, -1F, 0F);
GL11.glRotated(pitch, 1F, 0F, 0F);
this.bindTexture(ResourceManager.turret_tau_gun_tex);
ResourceManager.turret_tau_gun.renderAll();
GL11.glPopMatrix();
}
}
|
[
"hbmmods@gmail.com"
] |
hbmmods@gmail.com
|
a1cdf0f9002c6afdd83b3699208319756cff1f4a
|
0f859255f131fa60a90acd3c137bbb0b9ee32d01
|
/odata-core/src/main/java/org/odata4j/core/OFunctionParameter.java
|
a620817abe410dca3b2b26408c56cf0b8129b977
|
[
"Apache-2.0"
] |
permissive
|
vhalbert/oreva
|
fe1f5c76b8f2416dbb36481769585b77dd46e6e9
|
39b6c90c432bcefc410894c04fb831178d560272
|
refs/heads/master
| 2021-01-18T01:10:00.864949
| 2020-01-28T15:25:14
| 2020-01-28T15:25:14
| 36,017,606
| 0
| 0
|
Apache-2.0
| 2020-02-12T14:47:49
| 2015-05-21T14:31:54
|
Java
|
UTF-8
|
Java
| false
| false
| 511
|
java
|
package org.odata4j.core;
import org.odata4j.edm.EdmType;
/**
* An immutable service operation parameter, consisting of a name, a strongly-typed value, and an edm-type.
* <p>The {@link OFunctionParameters} static factory class can be used to create <code>OFunctionParameter</code> instances.</p>
*
* @see OFunctionParameters
*/
public interface OFunctionParameter extends NamedValue<OObject> {
/**
* Gets the edm-type for this property.
*
* @return the edm-type
*/
EdmType getType();
}
|
[
"rareddy@jboss.org"
] |
rareddy@jboss.org
|
d64713532322248f19423b221323c858100b9d30
|
bf055dd686fd21c5e3fd9bbd39a2558e42eb4044
|
/formationSpringAppSpring/src/main/java/formationSpring/aspect/MonAspect.java
|
7f40257a7d558bf2bc9ebe859552164aec813902
|
[] |
no_license
|
jabid021/SOPRA-210629-GIT
|
e5f1cddcde09c42735e1603d141cd432bc5b4b26
|
7ca2b603b42d116c10b77ce0df59707c77d8b6b5
|
refs/heads/main
| 2023-08-16T06:50:51.046323
| 2021-09-17T15:18:24
| 2021-09-17T15:18:24
| 389,602,124
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,576
|
java
|
package formationSpring.aspect;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;
import formationSpring.Guitariste;
public class MonAspect {
@Pointcut("execution(* formationSpring.Musicien.jouer())")
public void pointcut() {
}
@Before("pointcut()")
public void before(JoinPoint joinPoint) {
if (joinPoint.getTarget() instanceof Guitariste) {
System.out.println("c'est un guitariste qui va jouer");
} else {
System.out.println("c'est un pianiste qui va jouer");
}
System.out.println("methode before jouer");
}
@AfterReturning(pointcut = "pointcut()")
public void afterReturning() {
System.out.println("methode afterReturning");
}
@AfterThrowing(pointcut = "pointcut()")
public void afterThrowing() {
methode();
}
private void methode() {
System.out.println("une methode");
}
@After("pointcut()")
public void after() {
System.out.println("methode after");
}
@Around("pointcut()")
public void around(ProceedingJoinPoint proceedingJoinPoint) throws Throwable {
System.out.println("around");
System.out.println("execution de la methode jouer");
proceedingJoinPoint.proceed();
System.out.println("fin du around");
}
}
|
[
"o.gozlan@ajc-ingenierie.fr"
] |
o.gozlan@ajc-ingenierie.fr
|
aabf83ac887621de558c8bd8a0efcc75780385dc
|
f87904b0d14bc865b174c21b9c6e8406ccccf6d1
|
/string-class/app1/src/com/lara/S.java
|
846dee2d3ed90269d7c98be21862b8ee6a1fe496
|
[] |
no_license
|
nextuser88/lara_java_code
|
f7c90e662b4d25cfb9a572f68a8ab86773febb92
|
f53349afa87aa5a8fa475b29ccf0c5ea903dcc74
|
refs/heads/master
| 2021-05-15T20:19:00.931695
| 2017-10-22T06:28:48
| 2017-10-22T06:28:48
| 107,842,369
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 229
|
java
|
package com.lara;
public class S
{
public static void main(String[] args)
{
String s1 = "ja";
String s2 = "va";
String s3 = s1 + s2;
String s4 = s1.concat(s2);
System.out.println(s3);
System.out.println(s4);
}
}
|
[
"abhishekmishra034@gmail.com"
] |
abhishekmishra034@gmail.com
|
364b23a7c96b9a148e6aa7c678b13b11a0fe925f
|
95cd21c6bfd537886adefa1dd7e5916ca4dcf559
|
/org/json/JSONStringer.java
|
5ffd4dce18cc195fb6635b0c50f359691481885c
|
[] |
no_license
|
RavenLeaks/BetterCraft-src
|
acd3653e9259b46571e102480164d86dc75fb93f
|
fca1f0f3345b6b75eef038458c990726f16c7ee8
|
refs/heads/master
| 2022-10-27T23:36:27.113266
| 2020-06-09T15:50:17
| 2020-06-09T15:50:17
| 271,044,072
| 4
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,201
|
java
|
/* */ package org.json;
/* */
/* */ import java.io.StringWriter;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class JSONStringer
/* */ extends JSONWriter
/* */ {
/* */ public JSONStringer() {
/* 64 */ super(new StringWriter());
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public String toString() {
/* 77 */ return (this.mode == 'd') ? this.writer.toString() : null;
/* */ }
/* */ }
/* Location: C:\Users\emlin\Desktop\BetterCraft.jar!\org\json\JSONStringer.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/
|
[
"emlin2021@gmail.com"
] |
emlin2021@gmail.com
|
79b90c92a996c5e5421eac0a8a6238d45cf5fc56
|
8dadce08a76ce387608951673fc0364feaa9a06a
|
/flexodesktop/model/flexofoundation/src/main/java/org/openflexo/foundation/ie/action/IECopy.java
|
ee9676bbb493a912154a870ca6a6a8e43a2eb133
|
[] |
no_license
|
melbarra/openflexo
|
b8e1a97d73a9edebad198df4e776d396ae8e9a09
|
9b2d8efe1982ec8f64dee8c43a2e7207594853f3
|
refs/heads/master
| 2021-01-24T02:22:47.141424
| 2012-03-12T00:15:57
| 2012-03-12T00:15:57
| 2,756,256
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,623
|
java
|
/*
* (c) Copyright 2010-2011 AgileBirds
*
* This file is part of OpenFlexo.
*
* OpenFlexo is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* OpenFlexo is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with OpenFlexo. If not, see <http://www.gnu.org/licenses/>.
*
*/
package org.openflexo.foundation.ie.action;
import java.util.Vector;
import java.util.logging.Logger;
import org.openflexo.foundation.FlexoEditor;
import org.openflexo.foundation.FlexoModelObject;
import org.openflexo.foundation.action.FlexoAction;
import org.openflexo.foundation.action.FlexoActionType;
import org.openflexo.foundation.ie.IEWOComponent;
import org.openflexo.foundation.ie.cl.ComponentDefinition;
import org.openflexo.foundation.ie.cl.FlexoComponentFolder;
public class IECopy extends FlexoAction
{
private static final Logger logger = Logger.getLogger(IECopy.class.getPackage().getName());
public static FlexoActionType actionType = new FlexoActionType ("copy",FlexoActionType.editGroup) {
/**
* Factory method
*/
@Override
public FlexoAction makeNewAction(FlexoModelObject focusedObject, Vector globalSelection, FlexoEditor editor)
{
return new IECopy(focusedObject, globalSelection,editor);
}
@Override
protected boolean isVisibleForSelection(FlexoModelObject object, Vector globalSelection)
{
return true;
}
@Override
protected boolean isEnabledForSelection(FlexoModelObject object, Vector globalSelection)
{
return (globalSelection != null) && globalSelection.size()==1 && !(globalSelection.firstElement() instanceof ComponentDefinition) && !(globalSelection.firstElement() instanceof IEWOComponent) && !(globalSelection.firstElement() instanceof FlexoComponentFolder);
}
};
IECopy (FlexoModelObject focusedObject, Vector globalSelection, FlexoEditor editor)
{
super(actionType, focusedObject, globalSelection, editor);
}
@Override
protected void doAction(Object context)
{
// Implemented in IE module
logger.info ("COPY on IE");
}
}
|
[
"guillaume.polet@gmail.com"
] |
guillaume.polet@gmail.com
|
b69ed104d76d5ae6511efa18026efe9615c62820
|
de190b785b8bc87843c7c810414e0746df8ecca9
|
/commons/audit/src/main/java/org/openehealth/ipf/commons/audit/codes/ActiveParticipantRoleIdCode.java
|
11916de38faa7e54c516831b42d8d57f68004f60
|
[
"Apache-2.0"
] |
permissive
|
oehf/ipf
|
05af0e5690d251bb3ab8553df77ca8b05883a55c
|
f7f00f30a986fc1fa499b8ce103e3978831722df
|
refs/heads/master
| 2023-08-25T15:06:17.402644
| 2023-08-18T15:29:04
| 2023-08-18T15:29:04
| 5,672,302
| 151
| 75
|
Apache-2.0
| 2022-11-28T21:06:16
| 2012-09-04T12:48:15
|
Java
|
UTF-8
|
Java
| false
| false
| 2,337
|
java
|
/*
* Copyright 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.openehealth.ipf.commons.audit.codes;
import lombok.Getter;
import org.openehealth.ipf.commons.audit.types.ActiveParticipantRoleId;
import org.openehealth.ipf.commons.audit.types.EnumeratedCodedValue;
import org.openehealth.ipf.commons.audit.types.EnumeratedValueSet;
/**
* Audit Active Participant Role ID Code as specified in
* http://dicom.nema.org/medical/dicom/current/output/html/part16.html#sect_CID_402
* 1.2.840.10008.6.1.905
* <p>
* ActiveParticipantRoleIdCode identifies which object took which role in the event.
* It also covers agents, multi-purpose entities, and multi-role entities.
* For the purpose of the event, one primary role is chosen.
* </p>
* <p>
* When describing a human user’s participation in an event, the RoleIDCode value should
* represent the access control roles/permissions that authorized the event.
* </p>
*
* @author Christian Ohr
* @since 3.5
*/
public enum ActiveParticipantRoleIdCode implements ActiveParticipantRoleId, EnumeratedCodedValue<ActiveParticipantRoleId> {
Application("110150", "Application"),
ApplicationLauncher("110151", "Application Launcher"),
Destination("110152", "Destination Role ID"),
Source("110153", "Source Role ID"),
DestinationMedia("110154", "Destination Media"),
SourceMedia("110155", "Source Media");
@Getter
private final ActiveParticipantRoleId value;
ActiveParticipantRoleIdCode(String code, String displayName) {
this.value = ActiveParticipantRoleId.of(code, "DCM", displayName);
}
public static ActiveParticipantRoleIdCode enumForCode(String code) {
return EnumeratedValueSet.enumForCode(ActiveParticipantRoleIdCode.class, code);
}
}
|
[
"christian.ohr@gmail.com"
] |
christian.ohr@gmail.com
|
1781d9816df7d2d02bb190d5febbbba33c1dd219
|
00d398f9718d5b936bc30e22b111f8dcb44fcca1
|
/app-many-observables/src/main/java/com/github/pwittchen/prefser/app/manyobservables/MainActivity.java
|
488d6232727b9c78414c622d73c69b63223de044
|
[
"Apache-2.0"
] |
permissive
|
muyi126/prefser
|
74e3a654b1958692a19369673c57406e22c24411
|
8aaa6d551a2d44f3707dc0997f7878fe873f9d98
|
refs/heads/master
| 2021-01-18T10:36:46.059302
| 2016-04-05T16:05:11
| 2016-04-05T16:05:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,940
|
java
|
/*
* Copyright (C) 2015 Piotr Wittchen
*
* 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.github.pwittchen.prefser.app.manyobservables;
import android.app.Activity;
import android.os.Bundle;
import android.widget.EditText;
import android.widget.Toast;
import butterknife.ButterKnife;
import butterknife.InjectView;
import butterknife.OnClick;
import com.github.pwittchen.prefser.library.Prefser;
import rx.Subscription;
import rx.android.schedulers.AndroidSchedulers;
import rx.functions.Action1;
import rx.schedulers.Schedulers;
public class MainActivity extends Activity {
private final static String EMPTY_STRING = "";
private final static String MY_KEY_ONE = "MY_KEY_ONE";
private final static String MY_KEY_TWO = "MY_KEY_TWO";
private final static String MY_KEY_THREE = "MY_KEY_THREE";
private Prefser prefser;
private Subscription subscriptionOne;
private Subscription subscriptionTwo;
private Subscription subscriptionThree;
@InjectView(R.id.value_one) protected EditText valueOne;
@InjectView(R.id.value_two) protected EditText valueTwo;
@InjectView(R.id.value_three) protected EditText valueThree;
@Override protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ButterKnife.inject(this);
prefser = new Prefser(this);
}
@Override protected void onResume() {
super.onResume();
createSubscriptionOne();
createSubscriptionTwo();
createSubscriptionThree();
}
@Override protected void onPause() {
super.onPause();
subscriptionOne.unsubscribe();
subscriptionTwo.unsubscribe();
subscriptionThree.unsubscribe();
}
private void createSubscriptionOne() {
subscriptionOne = prefser.getAndObserve(MY_KEY_ONE, String.class, EMPTY_STRING)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Action1<String>() {
@Override public void call(String value) {
valueOne.setText(value);
showToast(value);
}
});
}
private void createSubscriptionTwo() {
subscriptionTwo = prefser.getAndObserve(MY_KEY_TWO, String.class, EMPTY_STRING)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Action1<String>() {
@Override public void call(String value) {
valueTwo.setText(value);
showToast(value);
}
});
}
private void createSubscriptionThree() {
subscriptionThree = prefser.getAndObserve(MY_KEY_THREE, String.class, EMPTY_STRING)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Action1<String>() {
@Override public void call(String value) {
valueThree.setText(value);
showToast(value);
}
});
}
private void showToast(String message) {
if (message.equals(EMPTY_STRING)) {
message = "empty";
}
String formattedMessage = String.format("value is %s", message);
Toast.makeText(MainActivity.this, formattedMessage, Toast.LENGTH_SHORT).show();
}
@OnClick(R.id.save) public void onSaveClicked() {
prefser.put(MY_KEY_ONE, valueOne.getText().toString());
prefser.put(MY_KEY_TWO, valueTwo.getText().toString());
prefser.put(MY_KEY_THREE, valueThree.getText().toString());
}
}
|
[
"piotr@wittchen.biz.pl"
] |
piotr@wittchen.biz.pl
|
6d675ec37851b11e2bff25801d3307f169fbd412
|
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
|
/crash-reproduction-new-fitness/results/MOCKITO-21b-1-11-Single_Objective_GGA-WeightedSum-BasicBlockCoverage/org/mockito/internal/creation/instance/ConstructorInstantiator_ESTest_scaffolding.java
|
6a313c0430daec469132a8c1960cd7125ad9f55c
|
[
"MIT",
"CC-BY-4.0"
] |
permissive
|
STAMP-project/Botsing-basic-block-coverage-application
|
6c1095c6be945adc0be2b63bbec44f0014972793
|
80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da
|
refs/heads/master
| 2022-07-28T23:05:55.253779
| 2022-04-20T13:54:11
| 2022-04-20T13:54:11
| 285,771,370
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,141
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Tue May 19 08:22:26 UTC 2020
*/
package org.mockito.internal.creation.instance;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class ConstructorInstantiator_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "org.mockito.internal.creation.instance.ConstructorInstantiator";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(ConstructorInstantiator_ESTest_scaffolding.class.getClassLoader() ,
"org.mockito.internal.creation.instance.ConstructorInstantiator",
"org.mockito.internal.creation.instance.Instantiator",
"org.mockito.internal.creation.instance.InstantationException"
);
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.