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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
93cb62adaaa1fb87a3093819121632a1b5eeabe6
|
217b6ca03aae468cbae64b519237044cd3178b33
|
/olyo/src/net/java/sip/communicator/impl/gui/main/chat/MenusPanel.java
|
6eac46d1df0f23c03414e17d9d29209afab4d550
|
[] |
no_license
|
lilichun/olyo
|
41778e668784ca2fa179c65a67d99f3b94fdbb45
|
b3237b7d62808a5b1d059a8dd426508e6e4af0b9
|
refs/heads/master
| 2021-01-22T07:27:30.658459
| 2008-06-19T09:57:36
| 2008-06-19T09:57:36
| 32,123,461
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,359
|
java
|
/*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.gui.main.chat;
import java.awt.*;
import javax.swing.*;
import net.java.sip.communicator.impl.gui.main.chat.menus.*;
import net.java.sip.communicator.impl.gui.main.chat.toolBars.*;
import net.java.sip.communicator.impl.gui.utils.*;
/**
* The <tt>MenusPanel</tt> is the panel, containing all toolbars in the chat
* window.
*
* @author Yana Stamcheva
*/
public class MenusPanel
extends JPanel
{
private MessageWindowMenuBar menuBar;
private EditTextToolBar editTextToolBar = new EditTextToolBar();
private MainToolBar mainToolBar;
private ChatWindow parentWindow;
/**
* Creates an instance and constructs the <tt>MenusPanel</tt>.
*
* @param parentWindow The parent <tt>ChatWindow</tt> for this panel.
*/
public MenusPanel(ChatWindow parentWindow)
{
super();
this.parentWindow = parentWindow;
boolean isToolBarExtended
= new Boolean(ApplicationProperties
.getProperty("isToolBarExteneded")).booleanValue();
if (isToolBarExtended)
mainToolBar = new ExtendedMainToolBar(this.parentWindow);
else
mainToolBar = new MainToolBar(this.parentWindow);
menuBar = new MessageWindowMenuBar(this.parentWindow);
this.setLayout(new BorderLayout(5, 5));
this.add(menuBar, BorderLayout.NORTH);
this.add(mainToolBar, BorderLayout.CENTER);
// this.add(editTextToolBar);
}
/**
* Adds a new toolbar to this <tt>MenusPanel</tt>.
*
* @param toolBar The toolbar to add.
*/
public void addToolBar(JToolBar toolBar)
{
this.add(toolBar);
}
/**
* Returns the <tt>MainToolBar</tt>.
*
* @return the <tt>MainToolBar</tt>.
*/
public MainToolBar getMainToolBar()
{
return mainToolBar;
}
/**
* Returns the <tt>MessageWindowMenuBar</tt>.
*
* @return the <tt>MessageWindowMenuBar</tt>
*/
public MessageWindowMenuBar getMainMenuBar()
{
return menuBar;
}
}
|
[
"dongfengyu20032045@1a5f2d27-d927-0410-a143-5778ce1304a0"
] |
dongfengyu20032045@1a5f2d27-d927-0410-a143-5778ce1304a0
|
71a2d48e91e2d39c23ee1155bb32b4386817e13d
|
c81963cab526c4dc24bee21840f2388caf7ff4cf
|
/com/google/android/gms/internal/measurement/zzif.java
|
4ebc234ed0648ed46dfd8524a7245601411843a0
|
[] |
no_license
|
ryank231231/jp.co.penet.gekidanprince
|
ba2f38e732828a4454402aa7ef93a501f8b7541e
|
d76db01eeadf228d31006e4e71700739edbf214f
|
refs/heads/main
| 2023-02-19T01:38:54.459230
| 2021-01-16T10:04:22
| 2021-01-16T10:04:22
| 329,815,191
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 965
|
java
|
package com.google.android.gms.internal.measurement;
public enum zzif {
zzalr(zzik.zzamp, 1),
zzals(zzik.zzamo, 5),
zzalt(zzik.zzamn, 0),
zzalu(zzik.zzamn, 0),
zzalv(zzik.zzamm, 0),
zzalw(zzik.zzamn, 1),
zzalx(zzik.zzamm, 5),
zzaly(zzik.zzamq, 0),
zzalz(zzik.zzamr, 2),
zzama(zzik.zzamu, 3),
zzamb(zzik.zzamu, 2),
zzamc(zzik.zzams, 2),
zzamd(zzik.zzamm, 0),
zzame(zzik.zzamt, 0),
zzamf(zzik.zzamm, 5),
zzamg(zzik.zzamn, 1),
zzamh(zzik.zzamm, 0),
zzami(zzik.zzamn, 0);
private final zzik zzamj;
private final int zzamk;
zzif(zzik paramzzik, int paramInt1) {
this.zzamj = paramzzik;
this.zzamk = paramInt1;
}
public final zzik zzpb() {
return this.zzamj;
}
public final int zzpc() {
return this.zzamk;
}
}
/* Location: Y:\classes-dex2jar.jar!\com\google\android\gms\internal\measurement\zzif.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 1.1.3
*/
|
[
"ryank231231@gmail.com"
] |
ryank231231@gmail.com
|
231efc79b2728eda6af1472e54a09ab9c3c4f60b
|
0962f1385c483396cb85c2bcd9a7339d26376bec
|
/sponge-api/src/main/java/org/openksavi/sponge/type/ListType.java
|
9b3f1403f3316d243eabe9f947bba0244a6c1e28
|
[
"Apache-2.0"
] |
permissive
|
linuxerwang/sponge
|
d26946b1030b15f2952a61501bce604bb8cd13b7
|
5fcb5cce276a8ab5eaf181c6fd38943298e32e23
|
refs/heads/master
| 2020-12-01T21:16:04.048108
| 2019-12-20T17:55:56
| 2019-12-20T17:55:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,089
|
java
|
/*
* Copyright 2016-2018 The Sponge 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.openksavi.sponge.type;
import java.util.List;
import java.util.Map;
import org.openksavi.sponge.type.provided.ProvidedMeta;
/**
* A list type. This type requires an {@code elementType} parameter, which is is a type of list elements.
*
* @param <E> element type.
*/
public class ListType<E> extends CollectionType<List<E>> {
/** The list element type. */
private DataType<?> elementType;
/** The flag specifying if the list should contain unique values. Defaults to {@code false}. */
private boolean unique = false;
public ListType() {
this((String) null);
}
@SuppressWarnings("unchecked")
public ListType(String name) {
this(name, (DataType<E>) new AnyType());
}
public ListType(DataType<E> elementType) {
this(null, elementType);
}
public ListType(String name, DataType<E> elementType) {
super(DataTypeKind.LIST, name);
this.elementType = elementType;
}
@Override
public ListType<E> withName(String name) {
return (ListType<E>) super.withName(name);
}
@Override
public ListType<E> withLabel(String label) {
return (ListType<E>) super.withLabel(label);
}
@Override
public ListType<E> withDescription(String description) {
return (ListType<E>) super.withDescription(description);
}
@Override
public ListType<E> withAnnotated(boolean annotated) {
return (ListType<E>) super.withAnnotated(annotated);
}
@Override
public ListType<E> withAnnotated() {
return (ListType<E>) super.withAnnotated();
}
@Override
public ListType<E> withFormat(String format) {
return (ListType<E>) super.withFormat(format);
}
@Override
public ListType<E> withFeatures(Map<String, Object> features) {
return (ListType<E>) super.withFeatures(features);
}
@Override
public ListType<E> withFeature(String name, Object value) {
return (ListType<E>) super.withFeature(name, value);
}
@Override
public ListType<E> withDefaultValue(List<E> value) {
return (ListType<E>) super.withDefaultValue(value);
}
@Override
public ListType<E> withNullable(boolean nullable) {
return (ListType<E>) super.withNullable(nullable);
}
@Override
public ListType<E> withNullable() {
return (ListType<E>) super.withNullable();
}
@Override
public ListType<E> withOptional() {
return (ListType<E>) super.withOptional();
}
@Override
public ListType<E> withProvided(ProvidedMeta provided) {
return (ListType<E>) super.withProvided(provided);
}
public ListType<E> withElement(DataType<E> elementType) {
this.elementType = elementType;
return this;
}
public ListType<E> withUnique(boolean unique) {
this.unique = unique;
return this;
}
public ListType<E> withUnique() {
return withUnique(true);
}
@SuppressWarnings("unchecked")
public DataType<E> getElementType() {
return (DataType<E>) elementType;
}
public boolean isUnique() {
return unique;
}
public void setUnique(boolean unique) {
this.unique = unique;
}
@Override
public ListType<E> clone() {
ListType<E> cloned = (ListType<E>) super.clone();
cloned.elementType = elementType != null ? elementType.clone() : null;
return cloned;
}
}
|
[
"marcin.pas@softelnet.com"
] |
marcin.pas@softelnet.com
|
3c0cbf47034ec5cb41f8d7e44fbb05537ea9af67
|
590cebae4483121569983808da1f91563254efed
|
/Router/schemas-src/eps-fts-schemas/src/main/java/ru/acs/fts/schemas/album/oez_report/Table4GoodsType.java
|
bb0a675c2261f6a99e6d317ef9eca53413ede83b
|
[] |
no_license
|
ke-kontur/eps
|
8b00f9c7a5f92edeaac2f04146bf0676a3a78e27
|
7f0580cd82022d36d99fb846c4025e5950b0c103
|
refs/heads/master
| 2020-05-16T23:53:03.163443
| 2014-11-26T07:00:34
| 2014-11-26T07:01:51
| null | 0
| 0
| null | null | null | null |
WINDOWS-1251
|
Java
| false
| false
| 922
|
java
|
package ru.acs.fts.schemas.album.oez_report;
/**
* Товар, изготовленный (полученный) из товаров, помещенных под таможенную процедуру свободной таможенной зоны
*/
public class Table4GoodsType extends GoodsWithoutStatusBaseType
{
private String quantity;
/**
* Get the 'Quantity' element value. Количество товара, находящееся на территории ОЭЗ на дату отчёта
*
* @return value
*/
public String getQuantity() {
return quantity;
}
/**
* Set the 'Quantity' element value. Количество товара, находящееся на территории ОЭЗ на дату отчёта
*
* @param quantity
*/
public void setQuantity(String quantity) {
this.quantity = quantity;
}
}
|
[
"m@brel.me"
] |
m@brel.me
|
81917a6202d6d4a704a2540fdc51c73a0c44ff22
|
bc20b8db8e0afdc84edec1eb299553e0c413fc4c
|
/CiF071BroadcastRecievers/app/src/main/java/com/gmail/expencive/cif071broadcastrecievers/OrderedReceiver3.java
|
bddb1339b69907f26e7a7478355fe2f9a76b9b90
|
[] |
no_license
|
expencive/AndroidLessonsPart03
|
1c0ced3a2fcbec304f4408d7350d0e7d72404de9
|
adb5bac6b07706240d07809c38284ff543b67f71
|
refs/heads/master
| 2020-04-04T10:01:10.199663
| 2020-03-04T15:45:03
| 2020-03-04T15:45:03
| 155,839,690
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,028
|
java
|
package com.gmail.expencive.cif071broadcastrecievers;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;
public class OrderedReceiver3 extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
int resultCode = getResultCode();
String resultData = getResultData();
Bundle resultExtras = getResultExtras(true);
String stringExtra = resultExtras.getString("stringExtra");
resultCode++;
stringExtra += "->OR3";
String toastText = "OR3\n" +
"resultCode: " + resultCode + "\n" +
"resultData: " + resultData + "\n" +
"stringExtra: " + stringExtra;
Toast.makeText(context, toastText, Toast.LENGTH_LONG).show();
resultData = "OR3";
resultExtras.putString("stringExtra", stringExtra);
setResult(resultCode, resultData, resultExtras);
}
}
|
[
"43270198+expencive@users.noreply.github.com"
] |
43270198+expencive@users.noreply.github.com
|
5c31bbcbfd736d65378baa56dee07010a47abdb8
|
f1a4e131a1301419ec1d361139bc43401fb204a4
|
/baselib/src/main/java/com/yanb/daqsoft/baselib/utils/photoview/PicturePreviewActivity.java
|
c24980684499e9aef11bb1556f4831bac8549f8b
|
[] |
no_license
|
1976222027/BaseAndroid
|
a18cd1e094ee25343e7872cd4f84b77bf54af23a
|
ce13d42828b7e06becdbba37f3e54d6ed7c801e4
|
refs/heads/master
| 2020-07-08T13:07:29.969732
| 2019-08-21T09:56:17
| 2019-08-21T09:56:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,981
|
java
|
package com.yanb.daqsoft.baselib.utils.photoview;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
import com.yanb.daqsoft.baselib.R;
import com.yanb.daqsoft.baselib.utils.viewpager.PhotoViewPager;
import java.util.List;
/**
* 图片预览的界面
*
* @author 严博
* @version 1.0.0
* @date 2018-7-11.13:37
* @since JDK 1.8
*/
public class PicturePreviewActivity extends AppCompatActivity {
public static final String TAG = PicturePreviewActivity.class.getSimpleName();
private PhotoViewPager mViewPager;
private int currentPosition;
private MyImageVpAdapter adapter;
private TextView mTvImageCount;
private List<String> Urls;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_picture_preview);
initView();
initData();
}
private void initData() {
Intent intent = getIntent();
currentPosition = intent.getIntExtra("currentPosition", 0);
Urls = intent.getStringArrayListExtra("imgList");
adapter = new MyImageVpAdapter(Urls, this);
mViewPager.setAdapter(adapter);
mViewPager.setCurrentItem(currentPosition, false);
mTvImageCount.setText(currentPosition+1 + "/" + Urls.size());
mViewPager.addOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() {
@Override
public void onPageSelected(int position) {
super.onPageSelected(position);
currentPosition = position;
mTvImageCount.setText(currentPosition + 1 + "/" + Urls.size());
}
});
}
private void initView() {
mViewPager = (PhotoViewPager) findViewById(R.id.view_pager_photo);
mTvImageCount = (TextView) findViewById(R.id.tv_img_num);
}
}
|
[
"760375443@qq.com"
] |
760375443@qq.com
|
6a9efebbd254b98905463a8facaccda0d8c3e6f3
|
3bab81792c722411c542596fedc8e4b1d086c1a9
|
/src/main/java/com/gome/maven/openapi/vcs/changes/SwitchedFileHolder.java
|
a192b4745a0895b0df98929a926e748e6e7d8666
|
[] |
no_license
|
nicholas879110/maven-code-check-plugin
|
80d6810cc3c12a3b6c22e3eada331136e3d9a03e
|
8162834e19ed0a06ae5240b5e11a365c0f80d0a0
|
refs/heads/master
| 2021-04-30T07:09:42.455482
| 2018-03-01T03:21:21
| 2018-03-01T03:21:21
| 121,457,530
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,453
|
java
|
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.gome.maven.openapi.vcs.changes;
import com.gome.maven.openapi.project.Project;
import com.gome.maven.openapi.util.Pair;
import com.gome.maven.openapi.vcs.FilePathImpl;
import com.gome.maven.openapi.vfs.VfsUtil;
import com.gome.maven.openapi.vfs.VirtualFile;
import com.gome.maven.util.PairProcessor;
import com.gome.maven.util.containers.MultiMap;
import java.util.HashMap;
import java.util.Map;
import java.util.SortedMap;
// true = recursively, branch name
public class SwitchedFileHolder extends RecursiveFileHolder<Pair<Boolean, String>> {
public SwitchedFileHolder(final Project project, final HolderType holderType) {
super(project, holderType);
}
public void takeFrom(final SwitchedFileHolder holder) {
myMap.clear();
myMap.putAll(holder.myMap);
}
public synchronized SwitchedFileHolder copy() {
final SwitchedFileHolder copyHolder = new SwitchedFileHolder(myProject, myHolderType);
copyHolder.myMap.putAll(myMap);
return copyHolder;
}
@Override
protected boolean isFileDirty(final VcsDirtyScope scope, final VirtualFile file) {
if (scope == null) return true;
if (fileDropped(file)) return true;
return scope.belongsTo(new FilePathImpl(file));
}
public Map<VirtualFile, String> getFilesMapCopy() {
final HashMap<VirtualFile, String> result = new HashMap<VirtualFile, String>();
for (final VirtualFile vf : myMap.keySet()) {
result.put(vf, myMap.get(vf).getSecond());
}
return result;
}
public void addFile(final VirtualFile file, final String branch, final boolean recursive) {
// without optimization here
myMap.put(file, new Pair<Boolean, String>(recursive, branch));
}
public synchronized MultiMap<String, VirtualFile> getBranchToFileMap() {
final MultiMap<String, VirtualFile> result = new MultiMap<String, VirtualFile>();
for (final VirtualFile vf : myMap.keySet()) {
result.putValue(myMap.get(vf).getSecond(), vf);
}
return result;
}
@Override
public synchronized boolean containsFile(final VirtualFile file) {
final VirtualFile floor = myMap.floorKey(file);
if (floor == null) return false;
final SortedMap<VirtualFile, Pair<Boolean, String>> floorMap = myMap.headMap(floor, true);
for (VirtualFile parent : floorMap.keySet()) {
if (VfsUtil.isAncestor(parent, file, false)) {
final Pair<Boolean, String> value = floorMap.get(parent);
return parent.equals(file) || value.getFirst();
}
}
return false;
}
public String getBranchForFile(final VirtualFile file) {
final VirtualFile floor = myMap.floorKey(file);
if (floor == null) return null;
final SortedMap<VirtualFile, Pair<Boolean, String>> floorMap = myMap.headMap(floor);
for (VirtualFile parent : floorMap.keySet()) {
if (VfsUtil.isAncestor(parent, file, false)) {
return floorMap.get(parent).getSecond();
}
}
return null;
}
public void calculateChildren() {
//myMap.optimizeMap(MyOptimizeProcessor.getInstance());
}
private static class MyOptimizeProcessor implements PairProcessor<Pair<Boolean, String>, Pair<Boolean, String>> {
private final static MyOptimizeProcessor ourInstance = new MyOptimizeProcessor();
public static MyOptimizeProcessor getInstance() {
return ourInstance;
}
@Override
public boolean process(final Pair<Boolean, String> parentPair, final Pair<Boolean, String> childPair) {
return Boolean.TRUE.equals(parentPair.getFirst()) && parentPair.getSecond().equals(childPair.getSecond());
}
}
}
|
[
"zhangliewei@gome.com.cn"
] |
zhangliewei@gome.com.cn
|
52f0a69e7693a00d5bad6e39142286c5dd328cf5
|
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
|
/genny_JavaWithoutLambdasApi21_ReducedClassCount/applicationModule/src/test/java/applicationModulepackageJava5/Foo552Test.java
|
7bd2da5b5e011f3ed420347d5e1335bf9d71bf7b
|
[] |
no_license
|
NikitaKozlov/generated-project-for-desugaring
|
0bc1443ab3ddc84cd289331c726761585766aea7
|
81506b3711004185070ca4bb9a93482b70011d36
|
refs/heads/master
| 2020-03-20T00:35:06.996525
| 2018-06-12T09:30:37
| 2018-06-12T09:30:37
| 137,049,317
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 741
|
java
|
package applicationModulepackageJava5;
import org.junit.Test;
public class Foo552Test {
@Test
public void testFoo0() {
new Foo552().foo0();
}
@Test
public void testFoo1() {
new Foo552().foo1();
}
@Test
public void testFoo2() {
new Foo552().foo2();
}
@Test
public void testFoo3() {
new Foo552().foo3();
}
@Test
public void testFoo4() {
new Foo552().foo4();
}
@Test
public void testFoo5() {
new Foo552().foo5();
}
@Test
public void testFoo6() {
new Foo552().foo6();
}
@Test
public void testFoo7() {
new Foo552().foo7();
}
@Test
public void testFoo8() {
new Foo552().foo8();
}
@Test
public void testFoo9() {
new Foo552().foo9();
}
}
|
[
"nikita.e.kozlov@gmail.com"
] |
nikita.e.kozlov@gmail.com
|
c08c389183c6a965e06fad6c45b34e2c5591f0fc
|
2edbc7267d9a2431ee3b58fc19c4ec4eef900655
|
/AL-Game/data/scripts/system/handlers/quest/cygnea/_15012Corral_The_Coral_Horns.java
|
f8cb27c8912c050094c61cd7546f4827c874ec13
|
[] |
no_license
|
EmuZONE/Aion-Lightning-5.1
|
3c93b8bc5e63fd9205446c52be9b324193695089
|
f4cfc45f6aa66dfbfdaa6c0f140b1861bdcd13c5
|
refs/heads/master
| 2020-03-08T14:38:42.579437
| 2018-04-06T04:18:19
| 2018-04-06T04:18:19
| 128,191,634
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,560
|
java
|
/*
* This file is part of Encom. **ENCOM FUCK OTHER SVN**
*
* Encom is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Encom 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 Public License for more details.
*
* You should have received a copy of the GNU Lesser Public License
* along with Encom. If not, see <http://www.gnu.org/licenses/>.
*/
package quest.cygnea;
import com.aionemu.gameserver.model.gameobjects.player.Player;
import com.aionemu.gameserver.questEngine.handlers.QuestHandler;
import com.aionemu.gameserver.questEngine.model.QuestDialog;
import com.aionemu.gameserver.questEngine.model.QuestEnv;
import com.aionemu.gameserver.questEngine.model.QuestState;
import com.aionemu.gameserver.questEngine.model.QuestStatus;
/****/
/** Author Rinzler (Encom)
/****/
public class _15012Corral_The_Coral_Horns extends QuestHandler
{
private static final int questId = 15012;
public _15012Corral_The_Coral_Horns() {
super(questId);
}
@Override
public void register() {
qe.registerQuestNpc(804875).addOnQuestStart(questId);
qe.registerQuestNpc(804875).addOnTalkEvent(questId);
}
@Override
public boolean onDialogEvent(QuestEnv env) {
Player player = env.getPlayer();
QuestState qs = player.getQuestStateList().getQuestState(questId);
QuestDialog dialog = env.getDialog();
int targetId = env.getTargetId();
if (qs == null || qs.getStatus() == QuestStatus.NONE) {
if (targetId == 804875) {
switch (dialog) {
case START_DIALOG: {
return sendQuestDialog(env, 4762);
}
case ACCEPT_QUEST:
case ACCEPT_QUEST_SIMPLE:
return sendQuestStartDialog(env);
case REFUSE_QUEST_SIMPLE:
return closeDialogWindow(env);
}
}
} else if (qs.getStatus() == QuestStatus.START) {
if (targetId == 804875) {
switch (dialog) {
case START_DIALOG: {
return sendQuestDialog(env, 1011);
} case CHECK_COLLECTED_ITEMS: {
return checkQuestItems(env, 0, 0, true, 5, 2716);
} case FINISH_DIALOG: {
return sendQuestSelectionDialog(env);
}
}
}
} else if (qs.getStatus() == QuestStatus.REWARD) {
if (targetId == 804875) {
return sendQuestEndDialog(env);
}
}
return false;
}
}
|
[
"naxdevil@gmail.com"
] |
naxdevil@gmail.com
|
d9d37fc8584b61d90528b477098035dbb6040da7
|
fa93c9be2923e697fb8a2066f8fb65c7718cdec7
|
/sources/com/avito/android/user_stats/tab/UserStatsTabFragmentKt.java
|
edc8fa9efbf6cfa837d4113b876c96addd0f7ced
|
[] |
no_license
|
Auch-Auch/avito_source
|
b6c9f4b0e5c977b36d5fbc88c52f23ff908b7f8b
|
76fdcc5b7e036c57ecc193e790b0582481768cdc
|
refs/heads/master
| 2023-05-06T01:32:43.014668
| 2021-05-25T10:19:22
| 2021-05-25T10:19:22
| 370,650,685
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,106
|
java
|
package com.avito.android.user_stats.tab;
import android.os.Bundle;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u000e\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u001a\u0015\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000¢\u0006\u0004\b\u0003\u0010\u0004¨\u0006\u0005"}, d2 = {"", "id", "Lcom/avito/android/user_stats/tab/UserStatsTabFragment;", "createUserStatsTabFragment", "(Ljava/lang/String;)Lcom/avito/android/user_stats/tab/UserStatsTabFragment;", "user-stats_release"}, k = 2, mv = {1, 4, 2})
public final class UserStatsTabFragmentKt {
@NotNull
public static final UserStatsTabFragment createUserStatsTabFragment(@NotNull String str) {
Intrinsics.checkNotNullParameter(str, "id");
UserStatsTabFragment userStatsTabFragment = new UserStatsTabFragment();
Bundle bundle = new Bundle();
bundle.putString("tab_id", str);
userStatsTabFragment.setArguments(bundle);
return userStatsTabFragment;
}
}
|
[
"auchhunter@gmail.com"
] |
auchhunter@gmail.com
|
f5dc8fedb39d8c0a01c439623b2c38da3483691a
|
f27883bf0aeb2c65c1ea00035aea01059d2d5b37
|
/src/main/java/ru/patterns/behavioural/observer/Bank.java
|
e7b3e239a79cf311fe8dadf8c4cb1e893767d525
|
[
"Apache-2.0"
] |
permissive
|
Sir-Hedgehog/design_patterns
|
27e73fa83305d3cab903cabee110662379c7d433
|
c2b3d3355ad6d5e6d487c89a2705f3cbc09a662e
|
refs/heads/main
| 2023-05-29T03:55:02.590804
| 2021-06-02T20:15:10
| 2021-06-02T20:15:10
| 300,958,074
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 267
|
java
|
package ru.patterns.behavioural.observer;
/**
* @author Sir-Hedgehog (mailto:quaresma_08@mail.ru)
* @version 1.0
* @since 05.10.2020
*/
public interface Bank {
void addClient(Client client);
void removeClient(Client client);
void notifyClients();
}
|
[
"mailto:quaresma_08@mail.ru"
] |
mailto:quaresma_08@mail.ru
|
3adcaf0fad45148a026cf5ded05b5fd98a46016e
|
421f0a75a6b62c5af62f89595be61f406328113b
|
/generated_tests/model_seeding/6_jnfe-br.com.jnfe.base.TUFs-1.0-9/br/com/jnfe/base/TUFs_ESTest_scaffolding.java
|
acf07e60799a165028b649bf45ede61a4614fea6
|
[] |
no_license
|
tigerqiu712/evosuite-model-seeding-empirical-evaluation
|
c78c4b775e5c074aaa5e6ca56bc394ec03c2c7c6
|
11a920b8213d9855082d3946233731c843baf7bc
|
refs/heads/master
| 2020-12-23T21:04:12.152289
| 2019-10-30T08:02:29
| 2019-10-30T08:02:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 527
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Sat Oct 26 00:24:16 GMT 2019
*/
package br.com.jnfe.base;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.evosuite.runtime.sandbox.Sandbox;
import org.evosuite.runtime.sandbox.Sandbox.SandboxMode;
@EvoSuiteClassExclude
public class TUFs_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pderakhshanfar@bsr01.win.tue.nl"
] |
pderakhshanfar@bsr01.win.tue.nl
|
96eb6ef7af21376396ae4433a71c22d9947c86e5
|
a697cc95da205533ce04e347d6e85c9717a2ca07
|
/examples/android-simple/src/main/java/com/example/dagger/simple/dummy/ConcreteDummyClass335.java
|
723ac718f09f339dbd83484dd11d5621d31ad8e0
|
[
"Apache-2.0"
] |
permissive
|
jasta/dagger
|
ee248b5b98782fb2fb8d5b7248cb91241783966f
|
4c6f7e6c676bec65b27ce41a52710728f89716fa
|
refs/heads/master
| 2021-01-16T01:06:51.734316
| 2013-09-16T02:13:55
| 2013-09-16T02:18:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 229
|
java
|
package com.example.dagger.simple.dummy;
public class ConcreteDummyClass335 implements DummyClass335 {
@Override
public void printHello() {
System.out.println("Hello from " + getClass().getSimpleName());
}
}
|
[
"jasta@devtcg.org"
] |
jasta@devtcg.org
|
310f175ab2a5b4e0c19cef65a041b225ca0ccc94
|
1340008b0c11f30d14f4ed2fbfb42849b5c5ccd5
|
/test_java/interview/recursion/ReconstructItinerary.java
|
c7192bae093bc7cccd08a40e50da10417d0d54c7
|
[] |
no_license
|
hopana/Test
|
b7652532968d208bafed3d07ca4490f8961ce7f4
|
117dd8f9319bc16a24acc3e9c72be75f33b9a09f
|
refs/heads/master
| 2023-05-03T13:37:00.370904
| 2022-06-15T02:45:45
| 2022-06-15T02:45:45
| 127,226,829
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,354
|
java
|
package recursion;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* Date 03/08/2016
*
* @author Tushar Roy
* <p>
* Reconstruct itinerary based on ticket.
* <p>
* https://leetcode.com/problems/reconstruct-itinerary/
*/
public class ReconstructItinerary {
public List<String> findItinerary(String[][] tickets) {
List<Itinerary> input = new ArrayList<>();
for (String[] ticket : tickets) {
input.add(new Itinerary(ticket[0], ticket[1]));
}
Collections.sort(input);
List<String> output = new ArrayList<>();
boolean[] used = new boolean[input.size()];
findItineraryUtil(input, used, "JFK", output, 0);
return output;
}
boolean findItineraryUtil(List<Itinerary> input, boolean[] used, String end, List<String> output, int count) {
if (count == used.length) {
output.add(end);
return true;
}
for (int i = 0; i < input.size(); i++) {
if (used[i]) {
continue;
}
Itinerary itr = input.get(i);
if (itr.start.equals(end)) {
output.add(itr.start);
used[i] = true;
if (findItineraryUtil(input, used, itr.dest, output, count + 1)) {
return true;
}
used[i] = false;
output.remove(output.size() - 1);
}
}
return false;
}
class Itinerary implements Comparable<Itinerary> {
String start;
String dest;
Itinerary(String start, String dest) {
this.start = start;
this.dest = dest;
}
@Override
public int compareTo(Itinerary other) {
if (this.start.equals(other.start)) {
return this.dest.compareTo(other.dest);
} else {
return this.start.compareTo(other.start);
}
}
}
public static void main(String args[]) {
String input[][] = {{"MUC", "LHR"}, {"JFK", "MUC"}, {"SFO", "SJC"}, {"LHR", "SFO"}};
ReconstructItinerary ri = new ReconstructItinerary();
List<String> output = ri.findItinerary(input);
output.forEach(r -> System.out.print(r + " "));
}
}
|
[
"hopana@163.com"
] |
hopana@163.com
|
806dd5c62864ad889981555175b33695fea90d57
|
9a52fe3bcdd090a396e59c68c63130f32c54a7a8
|
/sources/com/google/android/gms/internal/ads/zzayf.java
|
5913aaab6374231387d10ed73b5d88fbd9fcc882
|
[] |
no_license
|
mzkh/LudoKing
|
19d7c76a298ee5bd1454736063bc392e103a8203
|
ee0d0e75ed9fa8894ed9877576d8e5589813b1ba
|
refs/heads/master
| 2022-04-25T06:08:41.916017
| 2020-04-14T17:00:45
| 2020-04-14T17:00:45
| 255,670,636
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,253
|
java
|
package com.google.android.gms.internal.ads;
import android.view.View;
import android.view.ViewTreeObserver;
import android.view.ViewTreeObserver.OnScrollChangedListener;
import java.lang.ref.WeakReference;
/* compiled from: com.google.android.gms:play-services-ads@@18.2.0 */
final class zzayf extends zzayi implements OnScrollChangedListener {
private final WeakReference<OnScrollChangedListener> zzdwz;
public zzayf(View view, OnScrollChangedListener onScrollChangedListener) {
super(view);
this.zzdwz = new WeakReference<>(onScrollChangedListener);
}
public final void onScrollChanged() {
OnScrollChangedListener onScrollChangedListener = (OnScrollChangedListener) this.zzdwz.get();
if (onScrollChangedListener != null) {
onScrollChangedListener.onScrollChanged();
} else {
detach();
}
}
/* access modifiers changed from: protected */
public final void zza(ViewTreeObserver viewTreeObserver) {
viewTreeObserver.addOnScrollChangedListener(this);
}
/* access modifiers changed from: protected */
public final void zzb(ViewTreeObserver viewTreeObserver) {
viewTreeObserver.removeOnScrollChangedListener(this);
}
}
|
[
"mdkhnmm@amazon.com"
] |
mdkhnmm@amazon.com
|
050759fe92fef520b5eddade33f6ea0176b4c415
|
62409b25a652c7b8c8186e82dd744147fc4ed6c2
|
/ws/th/net/cat/epis/ws/f11_reversewriteoffpos/f11_reversewriteoffsi/F11_ReverseWriteOffSIExport1_F11_ReverseWriteOffSIHttpPortImpl.java
|
e88e08b34b59def0d4764567851f2b8e34cc48c8
|
[] |
no_license
|
pipat0924/WebApp
|
6e5327f8319f47ab592a839a8741dfe396ef62f7
|
af6134fe8e1a34508baefc7269dd69f0a639b360
|
refs/heads/master
| 2021-05-11T00:58:56.738484
| 2018-01-25T15:17:10
| 2018-01-25T15:17:10
| 118,315,036
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,146
|
java
|
/**
* Please modify this class to meet your needs
* This class is not complete
*/
package th.net.cat.epis.ws.f11_reversewriteoffpos.f11_reversewriteoffsi;
import java.util.logging.Logger;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;
/**
* This class was generated by Apache CXF 3.1.6
* 2017-03-24T17:18:48.178+07:00
* Generated source version: 3.1.6
*
*/
@WebService(
serviceName = "F11_ReverseWriteOffSIExport1_F11_ReverseWriteOffSIHttpService",
portName = "F11_ReverseWriteOffSIExport1_F11_ReverseWriteOffSIHttpPort",
targetNamespace = "http://F11_ReverseWriteOffPOS/F11_ReverseWriteOffSI",
wsdlLocation = "http://10.32.23.134:7800/F11_ReverseWriteOffSIExport1_F11_ReverseWriteOffSIHttpService?wsdl",
endpointInterface = "th.net.cat.epis.ws.f11_reversewriteoffpos.f11_reversewriteoffsi.F11ReverseWriteOffSI")
public class F11_ReverseWriteOffSIExport1_F11_ReverseWriteOffSIHttpPortImpl implements F11ReverseWriteOffSI {
private static final Logger LOG = Logger.getLogger(F11_ReverseWriteOffSIExport1_F11_ReverseWriteOffSIHttpPortImpl.class.getName());
/* (non-Javadoc)
* @see f11_reversewriteoffpos.f11_reversewriteoffsi.F11ReverseWriteOffSI#reverseWriteOff(f11_reversewriteoffpos.ReverseWriteOffRequest reverseWriteOffRequest )*
*/
public th.net.cat.epis.ws.f11_reversewriteoffpos.ReverseWriteOffResponse reverseWriteOff(th.net.cat.epis.ws.f11_reversewriteoffpos.ReverseWriteOffRequest reverseWriteOffRequest) {
LOG.info("Executing operation reverseWriteOff");
System.out.println(reverseWriteOffRequest);
try {
th.net.cat.epis.ws.f11_reversewriteoffpos.ReverseWriteOffResponse _return = null;
return _return;
} catch (Exception ex) {
ex.printStackTrace();
throw new RuntimeException(ex);
}
}
}
|
[
"33363766+pipat0924@users.noreply.github.com"
] |
33363766+pipat0924@users.noreply.github.com
|
14a1b0a8638da7c0eba7ef600bd16cd9537eb06e
|
4abd603f82fdfa5f5503c212605f35979b77c406
|
/html/Programs/hw4/d49fc83a1c31c7784c98a2b019c6d5f0/Deques.java
|
c8a37215add656846a750f4c84c7458be77f26ac
|
[] |
no_license
|
dn070017/1042-PDSA
|
b23070f51946c8ac708d3ab9f447ab8185bd2a34
|
5e7d7b1b2c9d751a93de9725316aa3b8f59652e6
|
refs/heads/master
| 2020-03-20T12:13:43.229042
| 2018-06-15T01:00:48
| 2018-06-15T01:00:48
| 137,424,305
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,988
|
java
|
import java.util.Iterator;
import java.util.NoSuchElementException;
import java.lang.UnsupportedOperationException;
import java.util.NoSuchElementException;
public class Deque<Item> implements Iterable<Item>
{
private int N; // number of elements on queue
private Node<Item> first; // beginning of queue
private Node<Item> last; // end of queue
private Node<Item> temp; // pre end of queue
private static class Node<Item> {
private Item item;
private Node<Item> next;
}
public Deque(){
first = null;
last = null;
temp = null;
N = 0;
} // construct an empty deque
public boolean isEmpty() // is the deque empty?
{
return first == null;
}
public int size() // return the number of items on the deque
{
return N;
}
public void addFirst(Item item) // add the item to the front
{
Deque.Node<Item> oldfirst = first;
first = new Deque.Node<Item>();
first.item = item;
first.next = oldfirst;
N++;
}
public void addLast(Item item) // add the item to the end
{
Deque.Node<Item> oldlast = last;
last = new Deque.Node<Item>();
last.item = item;
last.next = null;
if (isEmpty()) first = last;
else oldlast.next = last;
N++;
}
public Item removeFirst() // remove and return the item from the front
{
Item item = first.item; // save item to return
first = first.next; // delete first node
N--;
return item;
}
public Item removeLast() // remove and return the item from the end
{
Item item = last.item;
temp = first;
for(int i=1;i<N-1;i++){
temp = temp.next;
}
last = temp;
temp = null;
N--;
return item;
}
public Iterator iterator() // return an iterator over items in order from front to end
{
return new ListIterator();
}
private class ListIterator<Item> implements Iterator<Item>
{
private Deque.Node<Item> current;
public ListIterator(Deque.Node<Item> first) {
current = first;
}
private ListIterator() {
.
}
public boolean hasNext() { return current != null; }
public void remove() { throw new UnsupportedOperationException(); }
public Item next() {
if (!hasNext()) throw new NoSuchElementException();
Item item = current.item;
current = current.next;
return item;
}
}
public static void main(String[] args) // unit testing
{
}
}
|
[
"dn070017@gmail.com"
] |
dn070017@gmail.com
|
976d209abd43312c395b42e7dff86463851b0c28
|
8d008b86ab459d15be75ee8a41d0ab554aefdfbf
|
/src/main/java/com/te/hospitalmanagement/service/PatientService.java
|
153d36a41a2e62dfed1587f646ba52b75266b7c5
|
[] |
no_license
|
shukia/ServletHospitalManagement
|
a508a20e8ab604b8545f2803fb194b1d17fe0d0c
|
16e5d6f733e287ad61b4346c80d6202edeb8e6a9
|
refs/heads/master
| 2023-02-06T02:05:37.232303
| 2020-12-23T12:11:34
| 2020-12-23T12:11:34
| 323,841,666
| 0
| 0
| null | 2020-12-23T12:22:12
| 2020-12-23T08:08:52
|
Java
|
UTF-8
|
Java
| false
| false
| 762
|
java
|
package com.te.hospitalmanagement.service;
import com.te.hospitalmanagement.dto.PatientDto;
import javax.servlet.ServletException;
import java.util.List;
import java.util.Optional;
public interface PatientService {
Optional<PatientDto> getPatient(String name);
List<PatientDto> getAllPatients();
String getAllPatientsToString();
String getAllPatientEmails();
void savePatient(PatientDto patient);
Optional<PatientDto> updatePatientEmailByName(String name, String email);
void saveAllPatient(List<PatientDto> patients);
void saveAllPatientWithValidateEmail(List<PatientDto> patients);
PatientDto getPatientByEmail(String email) throws ServletException;
boolean addPatientIfValidEmail(PatientDto patientDto);
}
|
[
"shuki.avraham@whitesourcesoftware.com"
] |
shuki.avraham@whitesourcesoftware.com
|
d492e3b3fd971f6ba9fc3d58ea2780d3e0b429f8
|
3100a2c212c9cf6d21aa43bd9af134d84e809a04
|
/common/src/main/java/com/hua/constant/ext/Gender.java
|
751f62bbde7c447b54e4f55d921ed25d61d836fe
|
[
"Apache-2.0"
] |
permissive
|
dearcode2018/common
|
08a1c8d25bd23a36a5f7fbe7bbdaa6d655d1d892
|
281bc600f2cf73773f34b193f8fda6f447085f9c
|
refs/heads/master
| 2022-12-06T16:28:38.218537
| 2021-05-22T01:21:58
| 2021-05-22T01:21:58
| 128,623,804
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,992
|
java
|
/**
* 描述:
* Gender.java
*
* @author qye.zheng
* version 1.0
*/
package com.hua.constant.ext;
import com.hua.face.IEnumCommon;
import com.hua.util.StringUtil;
/**
* 描述: 性别 - 枚举
*
* @author qye.zheng
* Gender
*/
public enum Gender implements IEnumCommon<Gender> {
/*
* 枚举公开实例
*/
// 未知
UNKNOW("未知", "Unknow"),
// 男(male)
MALE("男", "Male"),
// 2-女(female)
FEMALE("女", "Female");
/*
父类Enum也有一个name属性,
父类name的值存储的是每个枚举
实例的字面值
*/
// 枚举实例的名称 (中文)
private String name;
// 值,code (英文/英文缩写)
private String value;
// 描述信息 (中文+ 英文描述)
private String description;
/**
* 无参构造方法 - 私有化
* 描述:
* @author qye.zheng
*/
private Gender()
{
}
/**
*
* 构造方法 - 私有化
* 描述:
* @author qye.zheng
* @param name
*/
private Gender(final String name) {
this.name = name;
}
private Gender(String name, String value)
{
this.name = name;
this.value = value;
}
private Gender(String name, String value, String description)
{
this.name = name;
this.value = value;
this.description = description;
}
/**
*
* 描述: 根据value值获取枚举实例
* @author qye.zheng
* @param value
* @return
*/
public static Gender getInstance(final String value)
{
Gender instance = null;
if (StringUtil.isEmpty(value))
{
return instance;
}
final Gender[] array = Gender.values();
for (int i = 0; i < array.length; i++)
{
instance = array[i];
if (instance.getValue().equals(value))
{
return instance;
}
}
return instance ;
}
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @return the value
*/
public String getValue()
{
return value;
}
/**
* @return the description
*/
public String getDescription()
{
return description;
}
}
|
[
"dearzqy@163.com"
] |
dearzqy@163.com
|
f2691cb6f9734159463cd1a31ba3861671ff28b6
|
7d0e096aa6ccb65cfc185ec35d344689b7bc07e4
|
/springboot-mybatis-xml-multi/src/main/java/com/secbro/mapper/db2/UserMapper.java
|
505a85f37305fc6659e50145e399cec4ff21ba39
|
[] |
no_license
|
secbr/springboot-all
|
89bad6bcd350da2bdcfd36b6e2332a074e417244
|
8f7413e591e2a5f12074a67eeba6ef6674bbf513
|
refs/heads/master
| 2022-08-24T09:40:35.197236
| 2022-08-02T02:21:30
| 2022-08-02T02:21:30
| 178,757,985
| 28
| 22
| null | 2022-07-31T11:01:25
| 2019-04-01T00:31:28
|
Java
|
UTF-8
|
Java
| false
| false
| 673
|
java
|
package com.secbro.mapper.db2;
import com.secbro.model.User;
import java.util.List;
/**
* @author sec
* @version 1.0
* @date 2020/3/1 10:01 AM
**/
public interface UserMapper {
/**
* 创建订单
*
* @param user 订单信息
* @return 记录数
*/
int save(User user);
/**
* 更新订单
*
* @param user 订单信息
* @return 记录数
*/
int update(User user);
/**
* 删除
*
* @param id id
* @return 条数
*/
int delete(int id);
/**
* 根据ID查询
*
* @param id 订单id
* @return 订单详情
*/
User findById(int id);
/**
* 查询所有用户
*
* @return 用户列表
*/
List<User> findAll();
}
|
[
"xinyoulingxi2008@126.com"
] |
xinyoulingxi2008@126.com
|
470660e37c82ce3b53c0ffe7011e57c97f2ea5f5
|
fcef66b62d6fba3359308076c8fa80dfabae465e
|
/src/main/java/org/terasology/cities/symmetry/Symmetry.java
|
112bd96c17c21d48a431743c911dde534c5699c1
|
[
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
Josharias/Cities
|
267cee2e07384792ad6dc71f481392db94448bb8
|
7b67eeef76045eba02594f2ec490d84cf784ceaa
|
refs/heads/master
| 2021-01-16T20:28:27.923840
| 2014-09-09T02:26:42
| 2014-09-09T02:26:42
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,440
|
java
|
/*
* Copyright 2014 MovingBlocks
*
* 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.terasology.cities.symmetry;
import javax.vecmath.Point2i;
/**
* Defines a symmetry
* @author Martin Steiger
*/
public interface Symmetry {
/**
* @param v the position coordinate
* @return true if the location is on the "mirrored" part of the height map
*/
boolean isMirrored(Point2i v);
/**
* @param x the x coordinate
* @param z the z coordinate
* @return true if the location is on the "mirrored" part of the height map
*/
boolean isMirrored(int x, int z);
/**
* @param sc the position coordinates
* @return the mirrored position
*/
Point2i getMirrored(Point2i sc);
/**
* @param x the x position coordinate
* @param z the z position coordinate
* @return the mirrored position
*/
Point2i getMirrored(int x, int z);
}
|
[
"git@martin-steiger.de"
] |
git@martin-steiger.de
|
67369a83a7c7ae0fbcbbb30f388b6d05cc1953df
|
25a547d7d889664ff3a490c9981aa6fe8d97016f
|
/src/main/java/nl/topicus/onderwijs/dashboard/modules/hudson/NumberOfUnitTestsImpl.java
|
ec33152798868a2f44b731c1fe89abcf4b00c9c9
|
[] |
no_license
|
topicusbv/dashboard
|
9c620c7c086b0ff4c15eadbab74cdc78891157ca
|
6d9831a892869c3376bea307acee938b35c13439
|
refs/heads/master
| 2020-04-03T13:28:24.562481
| 2010-11-02T10:15:16
| 2010-11-02T15:37:00
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,629
|
java
|
package nl.topicus.onderwijs.dashboard.modules.hudson;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import nl.topicus.onderwijs.dashboard.datasources.NumberOfUnitTests;
import nl.topicus.onderwijs.dashboard.modules.Project;
import nl.topicus.onderwijs.dashboard.modules.hudson.model.Action;
import nl.topicus.onderwijs.dashboard.modules.hudson.model.Build;
class NumberOfUnitTestsImpl implements NumberOfUnitTests {
private Project project;
private HudsonService service;
NumberOfUnitTestsImpl(Project project, HudsonService service) {
this.project = project;
this.service = service;
}
@Override
public Integer getValue() {
class UnitTestComparator implements Comparator<Build> {
@Override
public int compare(Build o1, Build o2) {
Action test1 = getTestReport(o1);
Action test2 = getTestReport(o2);
if (test1 == null && test2 == null)
return 0;
if (test1 == null)
return 1;
if (test2 == null)
return -1;
return test1.getTotalCount() - test2.getTotalCount();
}
}
List<Build> builds = service.getBuilds(project);
if (builds.isEmpty())
return null;
Build buildWithMaxUnitTests = Collections.max(builds,
new UnitTestComparator());
Action testReport = getTestReport(buildWithMaxUnitTests);
return testReport == null ? null : testReport.getTotalCount();
}
private Action getTestReport(Build build) {
if (build != null && build.getActions() != null) {
for (Action action : build.getActions()) {
if ("testReport".equals(action.getUrlName())) {
return action;
}
}
}
return null;
}
}
|
[
"martijn.dashorst@gmail.com"
] |
martijn.dashorst@gmail.com
|
e171859eb40e15f8b9817be216ae27f20534b24a
|
7773ea6f465ffecfd4f9821aad56ee1eab90d97a
|
/plugins/stream-debugger/src/com/intellij/debugger/streams/wrapper/impl/StreamCallImpl.java
|
322c0d4e710da09b654edec2564c468db4023e35
|
[
"Apache-2.0"
] |
permissive
|
aghasyedbilal/intellij-community
|
5fa14a8bb62a037c0d2764fb172e8109a3db471f
|
fa602b2874ea4eb59442f9937b952dcb55910b6e
|
refs/heads/master
| 2023-04-10T20:55:27.988445
| 2020-05-03T22:00:26
| 2020-05-03T22:26:23
| 261,074,802
| 2
| 0
|
Apache-2.0
| 2020-05-04T03:48:36
| 2020-05-04T03:48:35
| null |
UTF-8
|
Java
| false
| false
| 1,338
|
java
|
// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.debugger.streams.wrapper.impl;
import com.intellij.debugger.streams.wrapper.CallArgument;
import com.intellij.debugger.streams.wrapper.StreamCall;
import com.intellij.debugger.streams.wrapper.StreamCallType;
import com.intellij.openapi.util.TextRange;
import org.jetbrains.annotations.NotNull;
import java.util.List;
/**
* @author Vitaliy.Bibaev
*/
public abstract class StreamCallImpl implements StreamCall {
private final String myName;
private final List<CallArgument> myArgs;
private final StreamCallType myType;
private final TextRange myTextRange;
StreamCallImpl(@NotNull String name,
@NotNull List<CallArgument> args,
@NotNull StreamCallType type,
@NotNull TextRange range) {
myName = name;
myArgs = args;
myType = type;
myTextRange = range;
}
@NotNull
@Override
public TextRange getTextRange() {
return myTextRange;
}
@NotNull
@Override
public String getName() {
return myName;
}
@NotNull
@Override
public List<CallArgument> getArguments() {
return myArgs;
}
@NotNull
@Override
public StreamCallType getType() {
return myType;
}
}
|
[
"vitaliy.bibaev@jetbrains.com"
] |
vitaliy.bibaev@jetbrains.com
|
baf3e7132004d5edc50820117e2ab5010f823f51
|
abba09db9d75de8ecd8be2f6c80acd0d3c91cbd6
|
/src/main/java/com/tfar/stellarfluidconduits/common/conduit/StellarFluidConduitObject.java
|
c336f243b39de3b176c5cf483da3f001088892b0
|
[] |
no_license
|
BernardoGrigiastro/StellarFluidConduits
|
9221d181d2e8456c4ff0877bfdcc0dd675cf2093
|
232267b823263a047cb40c00b29caf908088a5b0
|
refs/heads/master
| 2022-11-11T07:29:19.112263
| 2020-07-05T00:51:27
| 2020-07-05T00:51:27
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,701
|
java
|
package com.tfar.stellarfluidconduits.common.conduit;
import com.enderio.core.common.util.NullHelper;
import crazypants.enderio.api.IModObject;
import crazypants.enderio.api.IModTileEntity;
import crazypants.enderio.base.EnderIOTab;
import crazypants.enderio.base.init.IModObjectBase;
import crazypants.enderio.base.init.ModObjectRegistry;
import crazypants.enderio.base.init.RegisterModObject;
import com.tfar.stellarfluidconduits.ReferenceVariables;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.util.ResourceLocation;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.function.BiFunction;
import java.util.function.Function;
public enum StellarFluidConduitObject implements IModObjectBase {
itemFluidConduit(ItemStellarFluidConduit::create),
;
public static void registerBlocksEarly(@Nonnull RegisterModObject event) {
event.register(StellarFluidConduitObject.class);
}
@Nonnull
protected final String unlocalisedName;
@Nullable
protected Block block;
@Nullable
protected Item item;
@Nullable
protected final Function<IModObject, Block> blockMaker;
@Nullable
protected final BiFunction<IModObject, Block, Item> itemMaker;
@Nullable
protected final IModTileEntity modTileEntity;
StellarFluidConduitObject(@Nonnull BiFunction<IModObject, Block, Item> itemMaker) {
this(null, itemMaker, null);
}
StellarFluidConduitObject(@Nonnull Function<IModObject, Block> blockMaker) {
this(blockMaker, null, null);
}
StellarFluidConduitObject(@Nonnull Function<IModObject, Block> blockMaker,
@Nonnull BiFunction<IModObject, Block, Item> itemMaker) {
this(blockMaker, itemMaker, null);
}
StellarFluidConduitObject(@Nonnull Function<IModObject, Block> blockMaker, @Nonnull IModTileEntity modTileEntity) {
this(blockMaker, null, modTileEntity);
}
StellarFluidConduitObject(@Nullable Function<IModObject, Block> blockMaker,
@Nullable BiFunction<IModObject, Block, Item> itemMaker, @Nullable IModTileEntity modTileEntity) {
this.unlocalisedName = ModObjectRegistry.sanitizeName(NullHelper.notnullJ(name(), "Enum.name()"));
this.blockMaker = blockMaker;
this.itemMaker = itemMaker;
if (blockMaker == null && itemMaker == null) {
throw new RuntimeException(this + " unexpectedly is neither a Block nor an Item.");
}
this.modTileEntity = null;
}
@Nonnull
@Override
public final String getUnlocalisedName() {
return unlocalisedName;
}
@Nonnull
@Override
public ResourceLocation getRegistryName() {
return new ResourceLocation(ReferenceVariables.MOD_ID, getUnlocalisedName());
}
@Nullable
@Override
public final Block getBlock() {
return block;
}
@Nullable
@Override
public final Item getItem() {
return item;
}
@Override
@Nullable
public IModTileEntity getTileEntity() {
return modTileEntity;
}
@Nonnull
@Override
public final <B extends Block> B apply(@Nonnull B blockIn) {
blockIn.setCreativeTab(EnderIOTab.tabEnderIOConduits);
return IModObjectBase.super.apply(blockIn);
}
@Nonnull
@Override
public Function<IModObject, Block> getBlockCreator() {
return blockMaker != null ? blockMaker : mo -> null;
}
@Nonnull
@Override
public BiFunction<IModObject, Block, Item> getItemCreator() {
return NullHelper.first(itemMaker, IModObject.WithBlockItem.itemCreator);
}
}
|
[
"44327798+Gimpler@users.noreply.github.com"
] |
44327798+Gimpler@users.noreply.github.com
|
56613dcecd4c1580058fa04f3cc77f546ff57b77
|
7b73756ba240202ea92f8f0c5c51c8343c0efa5f
|
/classes5/com/tencent/mobileqq/freshnews/feed/FNEmptyItemBuilder.java
|
1017b7afb8bcd07d7aaddd61b1f34714e853d8ed
|
[] |
no_license
|
meeidol-luo/qooq
|
588a4ca6d8ad579b28dec66ec8084399fb0991ef
|
e723920ac555e99d5325b1d4024552383713c28d
|
refs/heads/master
| 2020-03-27T03:16:06.616300
| 2016-10-08T07:33:58
| 2016-10-08T07:33:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,022
|
java
|
package com.tencent.mobileqq.freshnews.feed;
import android.content.Context;
import android.content.res.Resources;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.TextView;
import com.tencent.mobileqq.hotpatch.NotVerifyClass;
import com.tencent.mobileqq.util.FaceDecoder;
import com.tencent.qphone.base.util.QLog;
import com.tencent.widget.AbsListView.LayoutParams;
public class FNEmptyItemBuilder
extends FNBaseItemBuilder
{
public FNEmptyItemBuilder()
{
boolean bool = NotVerifyClass.DO_VERIFY_CLASS;
}
public View a(int paramInt, Object paramObject, FaceDecoder paramFaceDecoder, boolean paramBoolean, View paramView1, View paramView2, Context paramContext, View.OnClickListener paramOnClickListener)
{
paramOnClickListener = null;
paramFaceDecoder = paramOnClickListener;
if (paramView1 != null)
{
paramFaceDecoder = paramOnClickListener;
if ((paramView1.getTag() instanceof FNEmptyItemBuilder.FNEmptyItemHolder)) {
paramFaceDecoder = (FNEmptyItemBuilder.FNEmptyItemHolder)paramView1.getTag();
}
}
paramOnClickListener = paramFaceDecoder;
if (paramFaceDecoder == null)
{
paramOnClickListener = new FNEmptyItemBuilder.FNEmptyItemHolder();
paramView1 = LayoutInflater.from(paramContext).inflate(2130904169, null);
paramFaceDecoder = new AbsListView.LayoutParams(-1, -1);
paramFaceDecoder.width = -1;
paramFaceDecoder.height = paramView2.getHeight();
paramView1.setLayoutParams(paramFaceDecoder);
paramOnClickListener.jdField_a_of_type_AndroidWidgetImageView = ((ImageView)paramView1.findViewById(2131297535));
paramOnClickListener.jdField_a_of_type_AndroidWidgetTextView = ((TextView)paramView1.findViewById(2131298153));
paramOnClickListener.b = ((TextView)paramView1.findViewById(2131298160));
paramView1.setTag(paramOnClickListener);
}
if (paramBoolean) {
paramView1.setBackgroundResource(2131427641);
}
for (;;)
{
if ((paramObject instanceof Integer))
{
paramInt = ((Integer)paramObject).intValue();
if (QLog.isColorLevel()) {
QLog.d("Q.nearby.freshNews", 2, "FNEmptyItemBuilder|emptyFlag:" + paramInt);
}
if (paramInt != 0) {
break;
}
paramOnClickListener.jdField_a_of_type_AndroidWidgetImageView.setVisibility(0);
paramOnClickListener.jdField_a_of_type_AndroidWidgetTextView.setVisibility(0);
paramOnClickListener.b.setVisibility(0);
paramOnClickListener.jdField_a_of_type_AndroidWidgetImageView.setImageResource(2130840679);
paramOnClickListener.jdField_a_of_type_AndroidWidgetTextView.setText(2131372600);
paramOnClickListener.b.setText(2131372601);
paramOnClickListener.jdField_a_of_type_AndroidWidgetTextView.setTextColor(paramContext.getResources().getColor(2131428297));
}
return paramView1;
paramView1.setBackgroundResource(2131427640);
}
if (paramInt == 1)
{
paramOnClickListener.jdField_a_of_type_AndroidWidgetImageView.setVisibility(0);
paramOnClickListener.jdField_a_of_type_AndroidWidgetTextView.setVisibility(0);
paramOnClickListener.b.setVisibility(8);
paramOnClickListener.jdField_a_of_type_AndroidWidgetImageView.setImageResource(2130838205);
paramOnClickListener.jdField_a_of_type_AndroidWidgetTextView.setTextColor(paramContext.getResources().getColor(2131427365));
return paramView1;
}
paramOnClickListener.jdField_a_of_type_AndroidWidgetImageView.setVisibility(8);
paramOnClickListener.jdField_a_of_type_AndroidWidgetTextView.setVisibility(8);
paramOnClickListener.b.setVisibility(8);
return paramView1;
}
}
/* Location: E:\apk\QQ_91\classes5-dex2jar.jar!\com\tencent\mobileqq\freshnews\feed\FNEmptyItemBuilder.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"1776098770@qq.com"
] |
1776098770@qq.com
|
b450c04f94ac4791ad97b2259f8ceb3602c6ba22
|
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
|
/aiccs-20191015/src/main/java/com/aliyun/aiccs20191015/models/AttachTaskRequest.java
|
1d10f4633e1a19f817ec19a7c0882751f04b6616
|
[
"Apache-2.0"
] |
permissive
|
aliyun/alibabacloud-java-sdk
|
83a6036a33c7278bca6f1bafccb0180940d58b0b
|
008923f156adf2e4f4785a0419f60640273854ec
|
refs/heads/master
| 2023-09-01T04:10:33.640756
| 2023-09-01T02:40:45
| 2023-09-01T02:40:45
| 288,968,318
| 40
| 45
| null | 2023-06-13T02:47:13
| 2020-08-20T09:51:08
|
Java
|
UTF-8
|
Java
| false
| false
| 1,739
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.aiccs20191015.models;
import com.aliyun.tea.*;
public class AttachTaskRequest extends TeaModel {
@NameInMap("CallString")
public String callString;
@NameInMap("OwnerId")
public Long ownerId;
@NameInMap("ResourceOwnerAccount")
public String resourceOwnerAccount;
@NameInMap("ResourceOwnerId")
public Long resourceOwnerId;
@NameInMap("TaskId")
public Long taskId;
public static AttachTaskRequest build(java.util.Map<String, ?> map) throws Exception {
AttachTaskRequest self = new AttachTaskRequest();
return TeaModel.build(map, self);
}
public AttachTaskRequest setCallString(String callString) {
this.callString = callString;
return this;
}
public String getCallString() {
return this.callString;
}
public AttachTaskRequest setOwnerId(Long ownerId) {
this.ownerId = ownerId;
return this;
}
public Long getOwnerId() {
return this.ownerId;
}
public AttachTaskRequest setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
public AttachTaskRequest setResourceOwnerId(Long resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
return this;
}
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public AttachTaskRequest setTaskId(Long taskId) {
this.taskId = taskId;
return this;
}
public Long getTaskId() {
return this.taskId;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
2aafdc0a9236c977b6b10b7f17ab689d75de3c27
|
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
|
/methods/Method_12810.java
|
28340bbbcd7f494b4b5ce86ed6bef4786c030a63
|
[] |
no_license
|
P79N6A/icse_20_user_study
|
5b9c42c6384502fdc9588430899f257761f1f506
|
8a3676bc96059ea2c4f6d209016f5088a5628f3c
|
refs/heads/master
| 2020-06-24T08:25:22.606717
| 2019-07-25T15:31:16
| 2019-07-25T15:31:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 426
|
java
|
private void onNewBookArrived(Book book) throws RemoteException {
mBookList.add(book);
final int N=mListenerList.beginBroadcast();
for (int i=0; i < N; i++) {
IOnNewBookArrivedListener l=mListenerList.getBroadcastItem(i);
if (l != null) {
try {
l.onNewBookArrived(book);
}
catch ( RemoteException e) {
e.printStackTrace();
}
}
}
mListenerList.finishBroadcast();
}
|
[
"sonnguyen@utdallas.edu"
] |
sonnguyen@utdallas.edu
|
690cb2816052a4f04088d680e63deeb630f94505
|
f60d91838cc2471bcad3784a56be2aeece101f71
|
/spring-framework-4.3.15.RELEASE/spring-web/src/main/java/org/springframework/web/bind/annotation/RequestParam.java
|
9c5e2a03d1737ecda82e3331f1b3633fbda2d81e
|
[
"Apache-2.0"
] |
permissive
|
fisher123456/spring-boot-1.5.11.RELEASE
|
b3af74913eb1a753a20c3dedecea090de82035dc
|
d3c27f632101e8be27ea2baeb4b546b5cae69607
|
refs/heads/master
| 2023-01-07T04:12:02.625478
| 2019-01-26T17:44:05
| 2019-01-26T17:44:05
| 167,649,054
| 0
| 0
|
Apache-2.0
| 2022-12-27T14:50:58
| 2019-01-26T04:21:05
|
Java
|
UTF-8
|
Java
| false
| false
| 3,116
|
java
|
/*
* Copyright 2002-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.web.bind.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.Map;
import org.springframework.core.annotation.AliasFor;
/**
* Annotation which indicates that a method parameter should be bound to a web
* request parameter.
*
* <p>Supported for annotated handler methods in Servlet and Portlet environments.
*
* <p>If the method parameter type is {@link Map} and a request parameter name
* is specified, then the request parameter value is converted to a {@link Map}
* assuming an appropriate conversion strategy is available.
*
* <p>If the method parameter is {@link java.util.Map Map<String, String>} or
* {@link org.springframework.util.MultiValueMap MultiValueMap<String, String>}
* and a parameter name is not specified, then the map parameter is populated
* with all request parameter names and values.
*
* @author Arjen Poutsma
* @author Juergen Hoeller
* @author Sam Brannen
* @since 2.5
* @see RequestMapping
* @see RequestHeader
* @see CookieValue
* @see org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter
* @see org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter
* @see org.springframework.web.portlet.mvc.annotation.AnnotationMethodHandlerAdapter
*/
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RequestParam {
/**
* Alias for {@link #name}.
*/
@AliasFor("name")
String value() default "";
/**
* The name of the request parameter to bind to.
* @since 4.2
*/
@AliasFor("value")
String name() default "";
/**
* Whether the parameter is required.
* <p>Defaults to {@code true}, leading to an exception being thrown
* if the parameter is missing in the request. Switch this to
* {@code false} if you prefer a {@code null} value if the parameter is
* not present in the request.
* <p>Alternatively, provide a {@link #defaultValue}, which implicitly
* sets this flag to {@code false}.
*/
boolean required() default true;
/**
* The default value to use as a fallback when the request parameter is
* not provided or has an empty value.
* <p>Supplying a default value implicitly sets {@link #required} to
* {@code false}.
*/
String defaultValue() default ValueConstants.DEFAULT_NONE;
}
|
[
"171509086@qq.com"
] |
171509086@qq.com
|
3ddc703d3319a743281c9d436d26455f3a1849c4
|
7eecef9e67ac192503b049fced4ca2c59b5767f6
|
/src/main/java/com/ringcentral/definitions/AccountPresenceInfo.java
|
51e4021030c03a9b1c9c9192e809259218aaf11b
|
[] |
no_license
|
PacoVu/ringcentral-java
|
985edecd37a92751a5f3206b7a045d9a99a63980
|
df6833104538fc75757a41a3542c3263cf421d28
|
refs/heads/master
| 2020-05-29T12:56:18.438431
| 2019-05-30T14:42:02
| 2019-05-30T14:42:02
| 140,632,299
| 0
| 0
| null | 2018-07-11T22:08:32
| 2018-07-11T22:08:31
| null |
UTF-8
|
Java
| false
| false
| 867
|
java
|
package com.ringcentral.definitions;
import com.alibaba.fastjson.annotation.JSONField;
public class AccountPresenceInfo
{
// Canonical URI of account presence resource
public String uri;
public AccountPresenceInfo uri(String uri) {
this.uri = uri;
return this;
}
// List of Prompts
public GetPresenceInfo[] records;
public AccountPresenceInfo records(GetPresenceInfo[] records) {
this.records = records;
return this;
}
// Information on navigation
public NavigationInfo navigation;
public AccountPresenceInfo navigation(NavigationInfo navigation) {
this.navigation = navigation;
return this;
}
// Information on paging
public PagingInfo paging;
public AccountPresenceInfo paging(PagingInfo paging) {
this.paging = paging;
return this;
}
}
|
[
"tyler4long@gmail.com"
] |
tyler4long@gmail.com
|
2a1c8365cceab91ff2dbbda2232888d78b67af0d
|
afd572566a045184ec6af501ef2af11266a64704
|
/app/src/main/java/com/application/boxmadikv1/utils/EncryptPBKDF2WithHmacSHA1.java
|
2df558276416bc08e13e09730ef571d739510933
|
[] |
no_license
|
luisrojash/BoxMadikApp
|
393dd60c26e84a77a3eca00467c225f56f028a8d
|
cfb6b98bf57456ef5926d6bff00cc1772fe38de1
|
refs/heads/master
| 2022-11-23T12:41:35.067982
| 2020-07-03T15:42:36
| 2020-07-03T15:42:36
| 276,934,247
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,125
|
java
|
package com.application.boxmadikv1.utils;
import android.util.Log;
import java.math.BigInteger;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.security.spec.InvalidKeySpecException;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.PBEKeySpec;
public class EncryptPBKDF2WithHmacSHA1 {
/*
String originalPassword = "password";
String generatedSecuredPasswordHash = null;
try {
generatedSecuredPasswordHash = generateStorngPasswordHash(originalPassword);
Log.d(TAG, "validate : " + generatedSecuredPasswordHash);
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
} catch (InvalidKeySpecException e) {
e.printStackTrace();
}
System.out.println(generatedSecuredPasswordHash);
boolean matched = false;
try {
matched = validatePassword("password", generatedSecuredPasswordHash);
Log.d(TAG, "valdiate 2 : " + matched);
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
} catch (InvalidKeySpecException e) {
e.printStackTrace();
}
System.out.println(matched);
try {
matched = validatePassword("password1", generatedSecuredPasswordHash);
Log.d(TAG, "valdiate 3 : " + matched);
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
} catch (InvalidKeySpecException e) {
e.printStackTrace();
}
System.out.println(matched);*/
public static void main(String[] args) throws NoSuchAlgorithmException, InvalidKeySpecException
{
String originalPassword = "password";
String generatedSecuredPasswordHash = generateStorngPasswordHash(originalPassword);
System.out.println(generatedSecuredPasswordHash);
}
private static String generateStorngPasswordHash(String password) throws NoSuchAlgorithmException, InvalidKeySpecException
{
int iterations = 1000;
char[] chars = password.toCharArray();
byte[] salt = getSalt();
PBEKeySpec spec = new PBEKeySpec(chars, salt, iterations, 64 * 8);
SecretKeyFactory skf = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA1");
byte[] hash = skf.generateSecret(spec).getEncoded();
return iterations + ":" + toHex(salt) + ":" + toHex(hash);
}
private static byte[] getSalt() throws NoSuchAlgorithmException
{
SecureRandom sr = SecureRandom.getInstance("SHA1PRNG");
byte[] salt = new byte[16];
sr.nextBytes(salt);
return salt;
}
private static String toHex(byte[] array) throws NoSuchAlgorithmException
{
BigInteger bi = new BigInteger(1, array);
String hex = bi.toString(16);
int paddingLength = (array.length * 2) - hex.length();
if(paddingLength > 0)
{
return String.format("%0" +paddingLength + "d", 0) + hex;
}else{
return hex;
}
}
/*Metodo para validar String*/
private static boolean validatePassword(String originalPassword, String storedPassword) throws NoSuchAlgorithmException, InvalidKeySpecException {
String[] parts = storedPassword.split(":");
int iterations = Integer.parseInt(parts[0]);
byte[] salt = fromHex(parts[1]);
byte[] hash = fromHex(parts[2]);
PBEKeySpec spec = new PBEKeySpec(originalPassword.toCharArray(), salt, iterations, hash.length * 8);
SecretKeyFactory skf = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA1");
byte[] testHash = skf.generateSecret(spec).getEncoded();
int diff = hash.length ^ testHash.length;
for (int i = 0; i < hash.length && i < testHash.length; i++) {
diff |= hash[i] ^ testHash[i];
}
return diff == 0;
}
private static byte[] fromHex(String hex) throws NoSuchAlgorithmException {
byte[] bytes = new byte[hex.length() / 2];
for (int i = 0; i < bytes.length; i++) {
bytes[i] = (byte) Integer.parseInt(hex.substring(2 * i, 2 * i + 2), 16);
}
return bytes;
}
}
|
[
"lerojas@farmaciasperuanas.pe"
] |
lerojas@farmaciasperuanas.pe
|
36b2d5d44063d4788331d9f0f40216a6a26f8dfd
|
6ddb0868a1c199374a4a14fb57d493c29a4ae722
|
/src/main/java/com/yp/jhipster/application/web/rest/errors/package-info.java
|
777afccb9a227862705a9e314b161ed70a6168fc
|
[] |
no_license
|
yaaperezu/jhipster-sample-application
|
ea498a244237baad9d2132b8586be65ac5ed5d82
|
44c8c7b8449f588f198e5aa782fbeae44ba8831f
|
refs/heads/master
| 2020-05-03T12:34:57.294360
| 2019-04-02T20:15:17
| 2019-04-02T20:15:17
| 178,630,423
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 202
|
java
|
/**
* Specific errors used with Zalando's "problem-spring-web" library.
*
* More information on https://github.com/zalando/problem-spring-web
*/
package com.yp.jhipster.application.web.rest.errors;
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
d5de0b4c29fa9e363c0d4fdefb13846cdf87fa7d
|
dc530e309a708610686246234098cd0d191a9386
|
/src/main/java/com/betterprojectsfaster/tutorial/jhipsterdocker/web/rest/vm/LoginVM.java
|
0c3766d09fc8c49fafaf9b82deb23d73cf6f6abd
|
[] |
no_license
|
josamartinezv/bpf-tutorial-jhipster-docker
|
033df261a89b6e6c470d2e4b2fa0e73723386b33
|
c6f9f8714319e9412798853b2baea4fb31407318
|
refs/heads/master
| 2020-11-26T03:32:34.981307
| 2019-08-01T13:02:30
| 2019-08-01T13:02:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,085
|
java
|
package com.betterprojectsfaster.tutorial.jhipsterdocker.web.rest.vm;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
/**
* View Model object for storing a user's credentials.
*/
public class LoginVM {
@NotNull
@Size(min = 1, max = 50)
private String username;
@NotNull
@Size(min = 4, max = 100)
private String password;
private Boolean rememberMe;
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public Boolean isRememberMe() {
return rememberMe;
}
public void setRememberMe(Boolean rememberMe) {
this.rememberMe = rememberMe;
}
@Override
public String toString() {
return "LoginVM{" +
"username='" + username + '\'' +
", rememberMe=" + rememberMe +
'}';
}
}
|
[
"karsten.silz@outlook.com"
] |
karsten.silz@outlook.com
|
95213fb2c1b9b555163be85002a0f72d7cccbb18
|
89d037a0b778530ff1ef2f94bad047ef76b03e2c
|
/lib/id-generator/src/test/java/org/sagebionetworks/ids/IdGeneratorImplTest.java
|
26c673baf4b12ce231d1cdbbf2a2659bea6fe37e
|
[] |
no_license
|
fgamador/Synapse-Repository-Services
|
c8da5ed1364bff7a3400073674e72b6d263696f1
|
287362ec8a9a2c348f62d64197e8a921f9efeaff
|
refs/heads/master
| 2021-01-21T01:39:15.825580
| 2013-06-27T17:43:17
| 2013-06-27T17:43:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,383
|
java
|
package org.sagebionetworks.ids;
import static org.junit.Assert.*;
import java.io.IOException;
import java.util.HashSet;
import java.util.Set;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:id-generator.spb.xml" })
public class IdGeneratorImplTest {
@Autowired
IdGenerator idGenerator;
@Test
public void testGetSchema(){
String schema = "someScheamName";
String connection = "jdbc:mysql://someaddresss:someport/"+schema;
String results = IdGeneratorImpl.getSchemaFromConnectionString(connection);
assertEquals(schema, results);
}
@Test
public void testLoadSchemaFile() throws IOException{
String schema = IdGeneratorImpl.loadSchemaSql();
assertNotNull(schema);
System.out.println(schema);
assertTrue(schema.startsWith("CREATE TABLE"));
assertTrue(schema.endsWith("AUTO_INCREMENT=0"));
}
@Test
public void testNewId(){
assertNotNull(idGenerator);
// Create a few IDs
Set<Long> unique = new HashSet<Long>();
int toCreate = 1;
for(int i=0; i<toCreate;i++){
long start = System.currentTimeMillis();
Long id = idGenerator.generateNewId();
long end = System.currentTimeMillis();
assertTrue(unique.add(id));
System.out.println("ID: "+id+" in "+(end-start)+" ms");
}
}
@Test
public void testReserveId(){
// Start with the current ID.
Long id = idGenerator.generateNewId();
// Reserve this ID + 10
Long reserved = id+10;
idGenerator.reserveId(reserved);
// Now get make sure the next ID is greater than the reserve
Long next = idGenerator.generateNewId();
assertEquals(next.longValue(), reserved.longValue()+1);
}
@Test
public void testReserveIdLessThan(){
// Start with the current ID.
Long id = idGenerator.generateNewId();
// Reserve this ID
Long reserved = id;
// This time the ID is already reserved so this method should be a wash.
idGenerator.reserveId(reserved);
// The next ID should just be the ID + 1
Long next = idGenerator.generateNewId();
assertEquals(next.longValue(), id.longValue()+1);
}
}
|
[
"john.hill@sagebase.org"
] |
john.hill@sagebase.org
|
d59f843bdc1cb3a7f9a64ffc0c6b72e46e7bd159
|
fdcf2af8597b33110799fed80bb7303fbc7c06e2
|
/boot_shiro/src/main/java/org/javaboy/boot_shiro/HelloController.java
|
01a3cb3967bd852d3af885cd44d40e63aa66d094
|
[] |
no_license
|
MrDongShan/javaboy-code-samples
|
82b5ecf245cf14e693ee8e4f14d002572c01f4f2
|
5e7af1d93a4acc6c50c2ca5ec1e80ee9da42d057
|
refs/heads/master
| 2023-07-06T02:48:08.621361
| 2023-05-14T14:01:53
| 2023-05-14T14:01:53
| 245,963,632
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,259
|
java
|
package org.javaboy.boot_shiro;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.UsernamePasswordToken;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @author 江南一点雨
* @微信公众号 江南一点雨
* @网站 http://www.itboyhub.com
* @国际站 http://www.javaboy.org
* @微信 a_java_boy
* @GitHub https://github.com/lenve
* @Gitee https://gitee.com/lenve
*/
@RestController
public class HelloController {
@GetMapping("/hello")
public String hello() {
return "hello shiro";
}
@GetMapping("/admin")
@RequiresRoles("admin")
public String admin() {
return "hello admin";
}
@PostMapping("/doLogin")
public String doLogin(String username,String password) {
try {
SecurityUtils.getSubject().login(new UsernamePasswordToken(username, password));
return "success";
} catch (AuthenticationException e) {
e.printStackTrace();
}
return "failed";
}
}
|
[
"wangsong0210@gmail.com"
] |
wangsong0210@gmail.com
|
35612b7fd9138487eb8c3e410405454d0b2ed754
|
b780bd4abf4eef2e325c3cf888133fe8f67d74a9
|
/src/main/java/com/notronix/etsy/impl/model/EtsyCoupon.java
|
09450bb971a7f2a69d1e5ae39859e60c26f177a3
|
[
"Apache-2.0"
] |
permissive
|
quanglatte/JEtsy
|
000faa89f4eaed1509dc6c7f34a340dbef63a0d1
|
e8647fde13eae9cd84c1a5f31568fc5d7c736103
|
refs/heads/master
| 2023-01-12T00:27:11.619504
| 2020-11-12T15:19:36
| 2020-11-12T15:19:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,310
|
java
|
package com.notronix.etsy.impl.model;
import com.google.gson.annotations.SerializedName;
import com.notronix.etsy.api.model.Coupon;
public class EtsyCoupon implements Coupon
{
@SerializedName(value = "coupon_id")
private Long couponId;
@SerializedName(value = "coupon_code")
private String couponCode;
@SerializedName(value = "seller_active")
private Boolean sellerActive;
@SerializedName(value = "pct_discount")
private Float pctDiscount;
@SerializedName(value = "free_shipping")
private Boolean freeShipping;
@SerializedName(value = "domestic_only")
private Boolean domesticOnly;
@SerializedName(value = "currency_code")
private String currencyCode;
@SerializedName(value = "fixed_discount")
private String fixedDiscount;
@SerializedName(value = "minimum_purchase_price")
private String minimumPurchasePrice;
@SerializedName(value = "expiration_date")
private Long expirationDate;
@SerializedName(value = "coupon_type")
private String couponType;
@Override
public Long getCouponId() {
return couponId;
}
public void setCouponId(Long couponId) {
this.couponId = couponId;
}
@Override
public String getCouponCode() {
return couponCode;
}
public void setCouponCode(String couponCode) {
this.couponCode = couponCode;
}
@Override
public Boolean getSellerActive() {
return sellerActive;
}
public void setSellerActive(Boolean sellerActive) {
this.sellerActive = sellerActive;
}
@Override
public Float getPctDiscount() {
return pctDiscount;
}
public void setPctDiscount(Float pctDiscount) {
this.pctDiscount = pctDiscount;
}
@Override
public Boolean getFreeShipping() {
return freeShipping;
}
public void setFreeShipping(Boolean freeShipping) {
this.freeShipping = freeShipping;
}
@Override
public Boolean getDomesticOnly() {
return domesticOnly;
}
public void setDomesticOnly(Boolean domesticOnly) {
this.domesticOnly = domesticOnly;
}
@Override
public String getCurrencyCode() {
return currencyCode;
}
public void setCurrencyCode(String currencyCode) {
this.currencyCode = currencyCode;
}
@Override
public String getFixedDiscount() {
return fixedDiscount;
}
public void setFixedDiscount(String fixedDiscount) {
this.fixedDiscount = fixedDiscount;
}
@Override
public String getMinimumPurchasePrice() {
return minimumPurchasePrice;
}
public void setMinimumPurchasePrice(String minimumPurchasePrice) {
this.minimumPurchasePrice = minimumPurchasePrice;
}
@Override
public Long getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(Long expirationDate) {
this.expirationDate = expirationDate;
}
@Override
public String getCouponType() {
return couponType;
}
public void setCouponType(String couponType) {
this.couponType = couponType;
}
}
|
[
"clint.munden@notronix.com"
] |
clint.munden@notronix.com
|
584e8b8e66d3d56494ef6628134873b98c42b3c4
|
c9a57700fbda4ff49279547b28eed8a97174a33a
|
/module-1/spring-4/src/main/java/com/archsoft/model/Person.java
|
5ad9a65ba4f79be1f0cbaa96525f6769c06b99fa
|
[] |
no_license
|
mistermagson/archsoft-training-code
|
cac551575d822515424ef29d0e04e05e86981553
|
bf22adbbf853e0eb04f453c16656712f10ee77e1
|
refs/heads/master
| 2023-01-29T02:53:23.209540
| 2022-01-08T12:28:00
| 2022-01-08T12:28:00
| 295,813,460
| 0
| 0
| null | 2020-09-15T18:18:32
| 2020-09-15T18:18:32
| null |
UTF-8
|
Java
| false
| false
| 1,188
|
java
|
package com.archsoft.model;
import java.util.Objects;
public class Person {
private long id;
private String name;
private int age;
public Person() {
}
public Person(long id, String name, int age) {
this.id = id;
this.name = name;
this.age = age;
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Person person = (Person) o;
return id == person.id;
}
@Override
public int hashCode() {
return Objects.hash(id);
}
@Override
public String toString() {
return "Person{" +
"id=" + id +
", name='" + name + '\'' +
", age=" + age +
'}';
}
}
|
[
"filosofisto@hotmail.com"
] |
filosofisto@hotmail.com
|
23f836edb6bc65ab15dc18a89aab3b39d6fc6ee4
|
4ebf76ff55fc096b92c1bdc5e0458492da71f362
|
/lottor-samples/lottor-demo-producer/src/test/java/com/blueskykong/sc/producer/TransactionDemoProducerApplicationTests.java
|
51e08a2d6381b18ecbc67ec0537a09df0c31f8ad
|
[
"MIT"
] |
permissive
|
czl349095941/Lottor
|
8ed504712fd1715c4a5f473c0ab134604a3be8e1
|
08dd0e84b247089f31c7ae20c949d20222a06e21
|
refs/heads/master
| 2020-03-23T19:47:46.026793
| 2018-07-22T16:15:06
| 2018-07-22T16:15:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,198
|
java
|
package com.blueskykong.sc.producer;
import com.blueskykong.sc.producer.domain.Product;
import lombok.AllArgsConstructor;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import java.util.function.Consumer;
import java.util.function.Function;
@RunWith(SpringRunner.class)
@SpringBootTest
public class TransactionDemoProducerApplicationTests {
@Test
public void contextLoads() {
Function<String, Integer> toInteger = Integer::valueOf;
Function<String, String> backToString = toInteger.andThen(String::valueOf);
backToString.apply("123");
People p = new People("1", "123");
Object o = p;
System.out.println(o.getClass());
}
public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
Function<String, Integer> toInteger = Integer::valueOf;
Function<String, String> backToString = toInteger.andThen(String::valueOf);
System.out.println(backToString.apply("123").getClass());
Function t = (p) -> p;
People people = new People("1", "123");
Object o = people;
Product product = new Product("1", "2", "3");
String name = product.getClass().getName();
System.out.println("class type is: " + name);
Class clzz = Class.forName(name);
// Object classObj = clzz.newInstance();
System.out.println(clzz.getName());
Consumer f = (p) -> {
System.out.println(p);
};
Consumer<People> greeter = (p) -> System.out.println("Hello, " + p.getName());
// greeter.accept(new People("Luke", "Skywalker"));
}
@AllArgsConstructor
static class People {
String name;
String desc;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
}
}
|
[
"928420597@qq.com"
] |
928420597@qq.com
|
7f46e24b698bbec978298c19930622718c06bed3
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/23/23_b2b599fb9cb2be75b177ef46acd7ef6b04f04100/MainMenuScene/23_b2b599fb9cb2be75b177ef46acd7ef6b04f04100_MainMenuScene_t.java
|
2ece42e70efbe93762ed18270c63e85eabd70df6
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 4,373
|
java
|
package scene;
import java.io.File;
import java.util.ArrayList;
import org.newdawn.slick.*;
import org.newdawn.slick.gui.AbstractComponent;
import org.newdawn.slick.gui.ComponentListener;
import org.newdawn.slick.state.StateBasedGame;
import component.Button;
import component.Component;
import component.Label;
import component.Panel;
import component.Positionable;
import component.SegmentedControl;
import component.modal.ComponentModal;
import component.modal.Modal;
import component.sprite.Sprite;
import core.*;
/**
* Scene displayed upon game startup - displays title of game.
*/
public class MainMenuScene extends Scene {
public static final SceneID ID = SceneID.MAINMENU;
private final int BUTTON_WIDTH = 230;
private final int BUTTON_HEIGHT = 60;
private final int PADDING = 20;
private final int LOGO_PADDING = 75;
private Button newGameButton, loadButton, optionsButton, quitButton;
private boolean loadEnabled;
@Override
public void init(GameContainer container, StateBasedGame game) throws SlickException {
super.init(container, game);
SoundStore.get().setVolume(.5f);
SoundStore.get().loopMusic("GBU");
//Make buttons
Font fieldFont = FontStore.get().getFont(FontStore.FontID.FIELD);
ArrayList<Component> componentList = new ArrayList<Component>();
newGameButton = new Button(container, BUTTON_WIDTH, BUTTON_HEIGHT, new Label(container, fieldFont, Color.white, ConstantStore.get("MAIN_MENU", "NEW_GAME")));
newGameButton.addListener(new ButtonListener());
componentList.add(newGameButton);
loadButton = new Button(container, BUTTON_WIDTH, BUTTON_HEIGHT, new Label(container, fieldFont, Color.white, "Load"));
loadButton.addListener(new ButtonListener());
loadButton.setDisabled(!loadEnabled);
componentList.add(loadButton);
optionsButton = new Button(container, BUTTON_WIDTH, BUTTON_HEIGHT, new Label(container, fieldFont, Color.white, "Options"));
optionsButton.addListener(new ButtonListener());
componentList.add(optionsButton);
quitButton = new Button(container, BUTTON_WIDTH, BUTTON_HEIGHT, new Label(container, fieldFont, Color.white, "Quit"));
quitButton.addListener(new ButtonListener());
componentList.add(quitButton);
//Logo
Sprite logoSprite = new Sprite(container, 480, ImageStore.get().getImage("LOGO"));
mainLayer.add(logoSprite, mainLayer.getPosition(Positionable.ReferencePoint.TOPCENTER), Positionable.ReferencePoint.TOPCENTER, 0, LOGO_PADDING);
mainLayer.addAsRow(componentList.iterator(), mainLayer.getPosition(Positionable.ReferencePoint.BOTTOMLEFT), PADDING, -BUTTON_HEIGHT*2, PADDING);
backgroundLayer.add(new Panel(container, ImageStore.get().getImage("TRAIL_MAP")));
}
@Override
public void prepareToEnter() {
super.prepareToEnter();
File file = new File("resources/serialized/");
if(!file.exists() || file.list().length == 0) {
loadEnabled = false;
} else {
loadEnabled = true;
}
if(loadButton != null) {
loadButton.setDisabled(!loadEnabled);
}
}
@Override
public void update(GameContainer container, StateBasedGame game, int delta) throws SlickException {
return;
}
@Override
public int getID() {
return ID.ordinal();
}
@SuppressWarnings("unchecked")
public void dismissModal(Modal modal, int button) {
super.dismissModal(modal, button);
if (button != modal.getCancelButtonIndex()) {
ComponentModal<SegmentedControl> loadModal = (ComponentModal<SegmentedControl>) modal;
SegmentedControl loadControl = loadModal.getComponent();
GameDirector.sharedSceneListener().deserialize("Game " + (loadControl.getSelection()[0] + 1));
}
}
private class ButtonListener implements ComponentListener {
@Override
public void componentActivated(AbstractComponent source) {
if (source == newGameButton) {
SoundStore.get().setMusicVolume(.25f);
GameDirector.sharedSceneListener().requestScene(SceneID.PARTYCREATION, MainMenuScene.this, true);
} else if (source == loadButton) {
showModal(GameDirector.sharedSceneListener().getLoadSaveModal(true, MainMenuScene.this));
} else if (source == optionsButton) {
GameDirector.sharedSceneListener().requestScene(SceneID.OPTIONS, MainMenuScene.this, false);
} else if (source == quitButton) {
System.exit(0);
}
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
fddded06afa1f3a5bd4525e59657590add4e40af
|
94d91903819947c4fb2598af40cf53344304dbac
|
/wssmall_1.2.0/orderexp_server/.svn/pristine/61/6143218c28370a247c45cc9fa466a33684f1b5de.svn-base
|
779f7ad85ac589471d5b64fb866e861f8d65f22f
|
[] |
no_license
|
lichao20000/Union
|
28175725ad19733aa92134ccbfb8c30570f4795a
|
a298de70065c5193c98982dacc7c2b3e2d4b5d86
|
refs/heads/master
| 2023-03-07T16:24:58.933965
| 2021-02-22T12:34:05
| 2021-02-22T12:34:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 931
|
package com.ztesoft.net.model;
import java.io.Serializable;
/**
* 关键字关联归类实体
* @author qin.yingxiong
*/
public class EsearchSpecvaluesRelc implements Serializable{
private static final long serialVersionUID = 1L;
//关键字id
private String key_id;
//归类id
private String catalog_id;
//创建时间
private String create_time;
//工号
private String staff_no;
public String getKey_id() {
return key_id;
}
public void setKey_id(String key_id) {
this.key_id = key_id;
}
public String getCatalog_id() {
return catalog_id;
}
public void setCatalog_id(String catalog_id) {
this.catalog_id = catalog_id;
}
public String getCreate_time() {
return create_time;
}
public void setCreate_time(String create_time) {
this.create_time = create_time;
}
public String getStaff_no() {
return staff_no;
}
public void setStaff_no(String staff_no) {
this.staff_no = staff_no;
}
}
|
[
"hxl971230.outlook.com"
] |
hxl971230.outlook.com
|
|
9645e4173ec28faffc0f3374e74c5e256eec84d6
|
3ebd14e15e940cd91014298bd8b1d3af69bc8e21
|
/polymer-pay-web-back/src/main/java/com/zyzf/polymer/pay/controller/coupon/PmsCouponSellerController.java
|
9c2dde0e31fdf5b0db4a8106355fb563b39bbee0
|
[] |
no_license
|
rjzfrj/polymerPay
|
50e680cf072703e1a30d9055b72e41c58ed971ae
|
a6019128e3caa20db0d4590136abd19070e86ee9
|
refs/heads/master
| 2021-05-12T05:19:25.107255
| 2018-04-21T04:37:22
| 2018-04-21T04:37:22
| 117,188,773
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 9,067
|
java
|
package com.zyzf.polymer.pay.controller.coupon;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.shiro.authz.annotation.RequiresPermissions;
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.ResponseBody;
import com.alibaba.fastjson.JSON;
import com.zyzf.polymer.pay.common.core.page.PageBean;
import com.zyzf.polymer.pay.common.core.page.PageParam;
import com.zyzf.polymer.pay.common.core.utils.BeanUtil;
import com.zyzf.polymer.pay.controller.common.BaseController;
import com.zyzf.polymer.pay.coupon.entity.PmsCouponSeller;
import com.zyzf.polymer.pay.coupon.entity.PmsIndustryType;
import com.zyzf.polymer.pay.coupon.service.PmsCouponSellerService;
import com.zyzf.polymer.pay.coupon.service.PmsIndustryTypeService;
@Controller
@RequestMapping("/coupon/seller")
public class PmsCouponSellerController extends BaseController {
private static final Log log = LogFactory.getLog(PmsCouponSellerController.class);
@Autowired
PmsCouponSellerService pmsCouponSellerService;
@Autowired
PmsIndustryTypeService pmsIndustryTypeService;//行业类型service
/**
* 优惠券商家管理列表
* @return PmsMenuList .
*/
@RequiresPermissions("coupon:seller:view")
@RequestMapping("/list")
public String listPmsCouponSeller( PageParam pageParam, PmsCouponSeller pmsCouponSeller, Model model) {
try {
Map<String, Object> paramMap=BeanUtil.beanToMap(pmsCouponSeller);
PageBean<PmsIndustryType> pageBean = pmsCouponSellerService.searchListEntityPage(pageParam, paramMap);
model.addAttribute(pageBean);
return "coupon/couponSellerList";
} catch (Exception e) {
log.error("== listPmsCouponProduct exception:", e);
return operateError("获取优惠券商家列表失败-", model);
}
}
/**
* 添加优惠卷商家页面
*/
@RequiresPermissions("coupon:seller:add")
@RequestMapping("/addUI")
public String addCouponSellerUI(HttpServletRequest req,PmsCouponSeller pmsCouponSeller ,Model model) {
try {
//查询行业类型
List<PmsIndustryType> list=new ArrayList<PmsIndustryType>();
list= pmsIndustryTypeService.byParentId(0);
model.addAttribute("parentList",list);
//返回添加页面
return "coupon/couponSellerAdd";
} catch (Exception e) {
log.error("== addTransRefuseCardList exception:"+e);
e.printStackTrace();
return operateError("进入优惠券商家页面错误", model);
}
}
/**
* 查询二级
* @param req
* @param model
* @param parentId
* @return
*/
@RequiresPermissions("coupon:seller:view")
@RequestMapping("/listSeller")
@ResponseBody
public String selectIndustryType(HttpServletRequest req,Model model,Integer parentId){
try {
List<PmsIndustryType> list=new ArrayList<PmsIndustryType>();
list= pmsIndustryTypeService.byParentId(parentId);
Map<String,Object> map=new HashMap<String,Object>();
map.put("statusCode", "200");
map.put("message", "ok");
map.put("list", list);
return JSON.toJSONString(map);
} catch (Exception e) {
log.error("== listSecondPmsMenu exception:", e);
return operateErrorAjax("获取子类型出错");
}
}
/**
* 保存添加优惠卷商家
*/
@RequiresPermissions("coupon:seller:add")
@RequestMapping("/add")
@ResponseBody
public String addCouponSeller(HttpServletRequest req,PmsCouponSeller pmsCouponSeller ,Model model) {
try {
if(null==pmsCouponSeller){
return operateErrorAjax("上传信息商家能为空");
}
//添加先判断此商户是否从在
PmsCouponSeller Seller=null;
Seller=pmsCouponSellerService.selectByName(pmsCouponSeller.getSellerName());
if(Seller!=null){
return operateErrorAjax("添加优惠券商户名字重复");
}
//开始保存商户信息
Date date=new Date();
pmsCouponSeller.setCreateTime(date);
int result= pmsCouponSellerService.insertEntity(pmsCouponSeller);
if(result>0){
return operateSuccessAjax("保存优惠券商户信息成功!!!");
}
return operateErrorAjax("很抱歉保存优惠券商户信息失败了请稍后重试!!!");
} catch (Exception e) {
log.error("== addTransRefuseCardList exception:"+e);
e.printStackTrace();
return operateErrorAjax("很抱歉保存优惠券商户信息失败了请稍后重试!!!");
}
}
/**
*优惠卷商家修改页面
*/
@RequiresPermissions("coupon:seller:edit")
@RequestMapping("/toEditUI")
public String couponSellerEdit(HttpServletRequest req,PmsCouponSeller pmsCouponSeller ,Model model) {
try {
PmsCouponSeller Seller=null;
//查询商家信息
Seller= pmsCouponSellerService.searchEntityById(pmsCouponSeller.getSellerId());
//查询行业类型父级
List<PmsIndustryType> list=new ArrayList<PmsIndustryType>();
list= pmsIndustryTypeService.byParentId(0);
model.addAttribute("parentList",list);
PmsIndustryType industryType=null;
industryType= pmsIndustryTypeService.searchEntityById(pmsCouponSeller.getIndustryTypeId());
if(industryType!=null && industryType.getParentId()!=null ){
}
if(null!=Seller){
model.addAttribute("pmsCouponSeller",Seller);
//返回添加页面
return "coupon/couponSellerEdit";
}
return operateError("进入商家修改页面失败了!", model);
} catch (Exception e) {
log.error("== TransRefuseCardEdit exception:"+e);
e.printStackTrace();
return operateError("进入修改页发生错误了", model);
}
}
/**
*保存优惠卷商家修改信息
*/
@RequiresPermissions("coupon:seller:edit")
@RequestMapping("/edit")
@ResponseBody
public String couponSellerUpdate(HttpServletRequest req,PmsCouponSeller pmsCouponSeller ,Model model) {
try {
if(pmsCouponSeller!=null){
//添加先判断此商户是否从在
PmsCouponSeller Seller=null;
Seller=pmsCouponSellerService.selectByName(pmsCouponSeller.getSellerName());
if(Seller!=null){
return operateErrorAjax("修改优惠券商户名字重复");
}
Date date=new Date();
pmsCouponSeller.setEditTime(date);
//开始保存修改信息
int result=pmsCouponSellerService.updateEntitySelective(pmsCouponSeller);
if(result>0){
return operateSuccessAjax("恭喜您修改信息成功了!!!");
}
return operateErrorAjax("很抱歉修改信息失败了,请稍后重试!");
}
return operateErrorAjax("修改信息不能为空");
} catch (Exception e) {
log.error("== TransRefuseCardEdit exception:"+e);
e.printStackTrace();
return operateError("抱歉修改商户信息发生错误了,请稍后重试!!!", model);
}
}
/**
* 删除商户信息
*/
@RequiresPermissions("coupon:seller:delete")
@RequestMapping("/delete")
@ResponseBody
public String couponSellerDelete(HttpServletRequest req,PmsCouponSeller pmsCouponSeller ,Model model) {
try{
if(pmsCouponSeller!=null){
int result =pmsCouponSellerService.deleteEntity(pmsCouponSeller.getSellerId());
if(result>0){
return operateSuccessAjax("恭喜您删除优惠券商家成功了!!!");
}
return operateErrorAjax("很抱歉删除优惠券商家失败了,请稍后重试!!!");
}
return operateErrorAjax("传入的删除参数有误!!!");
}catch(Exception e){
log.error("== TransRefuseCardDelete exception:", e);
return operateErrorAjax("很抱歉删除优惠券商家失败了,请稍后重试!!!");
}
}
/**
* 批量删除
* @author wuhp
*/
@RequiresPermissions("coupon:industryType:delete")
@RequestMapping("/deletes")
@ResponseBody
public String couponSellerDeletes(HttpServletRequest req ,Model model,String ids) {
try{
if(null==ids || ids==""){
return operateError("传入id有误!!!", model);
}
List list= Arrays.asList(ids.split(","));
int count=pmsCouponSellerService.deleteEntity(list);
if(count>0){
return operateSuccessAjax("恭喜您批量删除成功");
} else{
return operateErrorAjax("很抱歉删除失败了!!!请稍后重试!!");
}
}catch(Exception e){
log.error("== merFreeRateDelete exception:", e);
return operateErrorAjax("批量删除失败了");
}
}
}
|
[
"1074166578@qq.com"
] |
1074166578@qq.com
|
acf97f5a9dc17c897525ef784daac9a19efd9fa8
|
f490119b5f7eea314c3049fc212ff77dd29a1e67
|
/core/src/main/java/com/alibaba/alink/operator/stream/onlinelearning/FtrlTrainStreamOp.java
|
0193ac0c260bf2a44599145d89dcb67603606551
|
[
"Apache-2.0"
] |
permissive
|
lethetann/Alink
|
b4cb3ddab211baa77e3a93a9b099ddcde662b903
|
a483a8a25ecd136ad4e18709c17c5a242c7e76fa
|
refs/heads/master
| 2021-10-27T17:11:40.158889
| 2021-10-08T10:05:41
| 2021-10-08T10:05:41
| 229,357,943
| 0
| 0
|
Apache-2.0
| 2020-08-06T01:30:39
| 2019-12-21T00:55:32
|
Java
|
UTF-8
|
Java
| false
| false
| 4,013
|
java
|
package com.alibaba.alink.operator.stream.onlinelearning;
import org.apache.flink.ml.api.misc.param.Params;
import com.alibaba.alink.common.linalg.DenseVector;
import com.alibaba.alink.common.linalg.SparseVector;
import com.alibaba.alink.common.linalg.Vector;
import com.alibaba.alink.operator.batch.BatchOperator;
import com.alibaba.alink.params.onlinelearning.FtrlTrainParams;
/**
* Stream train operation of FTRL Algorithm.
*/
public class FtrlTrainStreamOp extends BaseOnlineTrainStreamOp <FtrlTrainStreamOp>
implements FtrlTrainParams <FtrlTrainStreamOp> {
private static final long serialVersionUID = 3688413917992858013L;
public FtrlTrainStreamOp(BatchOperator model) throws Exception {
super(model);
setLearningKernel(new FtrlLearningKernel());
}
public FtrlTrainStreamOp(BatchOperator model, Params params) throws Exception {
super(model, params);
setLearningKernel(new FtrlLearningKernel());
}
public static class FtrlLearningKernel extends OnlineLearningKernel {
private static final long serialVersionUID = 5856064547671182071L;
private Object[] labelValues;
private double alpha;
private double beta;
private double l1;
private double l2;
private double[] nParam;
private double[] zParam;
@Override
public void setModelParams(Params params, int localModelSize, Object[] labelValues) {
nParam = new double[localModelSize];
zParam = new double[localModelSize];
this.alpha = params.get(FtrlTrainParams.ALPHA);
this.beta = params.get(FtrlTrainParams.BETA);
this.l1 = params.get(FtrlTrainParams.L_1);
this.l2 = params.get(FtrlTrainParams.L_2);
this.labelValues = labelValues;
}
@Override
public double[] getFeedbackVar(double[] wx) {
return new double[] {1 / (1 + Math.exp(-wx[0]))};
}
@Override
public double[] calcLocalWx(double[] coef, Vector vec, int startIdx) {
double y = 0.0;
if (vec instanceof SparseVector) {
int[] indices = ((SparseVector) vec).getIndices();
for (int i = 0; i < indices.length; ++i) {
y += ((SparseVector) vec).getValues()[i] * coef[indices[i] - startIdx];
}
} else {
for (int i = 0; i < vec.size(); ++i) {
y += vec.get(i) * coef[i];
}
}
return new double[] {y};
}
@Override
public void updateModel(double[] coef, Vector vec, double[] wx, long timeInterval,
int startIdx, Object labelValue) {
double pred = wx[0];
double label;
if (labelValues[0] instanceof Number) {
label = (Double.valueOf(labelValue.toString())
.equals(Double.valueOf(labelValues[0].toString()))) ? 1.0 : 0.0;
} else {
label = (labelValue.toString().equals(labelValues[0].toString())) ? 1.0 : 0.0;
}
if (vec instanceof SparseVector) {
int[] indices = ((SparseVector) vec).getIndices();
double[] values = ((SparseVector) vec).getValues();
for (int i = 0; i < indices.length; ++i) {
// update zParam nParam
int id = indices[i] - startIdx;
double g = (pred - label) * values[i] / Math.sqrt(timeInterval + 1);
double sigma = (Math.sqrt(nParam[id] + g * g) - Math.sqrt(nParam[id])) / alpha;
zParam[id] += g - sigma * coef[id];
nParam[id] += g * g;
// update model coefficient
if (Math.abs(zParam[id]) <= l1) {
coef[id] = 0.0;
} else {
coef[id] = ((zParam[id] < 0 ? -1 : 1) * l1 - zParam[id])
/ ((beta + Math.sqrt(nParam[id]) / alpha + l2));
}
}
} else {
double[] data = ((DenseVector) vec).getData();
for (int i = 0; i < data.length; ++i) {
// update zParam nParam
double g = (pred - label) * data[i] / Math.sqrt(timeInterval + 1);
double sigma = (Math.sqrt(nParam[i] + g * g) - Math.sqrt(nParam[i])) / alpha;
zParam[i] += g - sigma * coef[i];
nParam[i] += g * g;
// update model coefficient
if (Math.abs(zParam[i]) <= l1) {
coef[i] = 0.0;
} else {
coef[i] = ((zParam[i] < 0 ? -1 : 1) * l1 - zParam[i])
/ ((beta + Math.sqrt(nParam[i]) / alpha + l2));
}
}
}
}
}
}
|
[
"xuyang1706@gmail.com"
] |
xuyang1706@gmail.com
|
8e1a6ad4c910ee0290fa7d97855a0c2793f8f9c3
|
b045364b75e81e6479a101e3bbadd9ba543ff759
|
/app/src/main/java/me/zhanghai/android/douya/item/content/MovieResource.java
|
131619af5c406e8ac628e8bec7d5aec14fb3ef7b
|
[
"Apache-2.0"
] |
permissive
|
roiseXzero/Douya
|
0a239d2a366d4ac60cc7afa772d93e7e6cc125ca
|
52858d16233dd34542513147b08107ffe010336c
|
refs/heads/master
| 2020-03-16T18:03:58.440275
| 2018-05-10T05:17:13
| 2018-05-10T05:17:13
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,046
|
java
|
/*
* Copyright (c) 2017 Zhang Hai <Dreaming.in.Code.ZH@Gmail.com>
* All Rights Reserved.
*/
package me.zhanghai.android.douya.item.content;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import me.zhanghai.android.douya.network.api.info.frodo.CollectableItem;
import me.zhanghai.android.douya.network.api.info.frodo.Movie;
import me.zhanghai.android.douya.network.api.info.frodo.SimpleMovie;
import me.zhanghai.android.douya.util.FragmentUtils;
public class MovieResource extends BaseItemResource<SimpleMovie, Movie> {
private static final String FRAGMENT_TAG_DEFAULT = MovieResource.class.getName();
private static MovieResource newInstance(long movieId, SimpleMovie simpleMovie, Movie movie) {
//noinspection deprecation
MovieResource instance = new MovieResource();
instance.setArguments(movieId, simpleMovie, movie);
return instance;
}
public static MovieResource attachTo(long movieId, SimpleMovie simpleMovie, Movie movie,
Fragment fragment, String tag,
int requestCode) {
FragmentActivity activity = fragment.getActivity();
MovieResource instance = FragmentUtils.findByTag(activity, tag);
if (instance == null) {
instance = newInstance(movieId, simpleMovie, movie);
FragmentUtils.add(instance, activity, tag);
}
instance.setTarget(fragment, requestCode);
return instance;
}
public static MovieResource attachTo(long movieId, SimpleMovie simpleMovie, Movie movie,
Fragment fragment) {
return attachTo(movieId, simpleMovie, movie, fragment, FRAGMENT_TAG_DEFAULT,
REQUEST_CODE_INVALID);
}
/**
* @deprecated Use {@code attachTo()} instead.
*/
public MovieResource() {}
@Override
protected CollectableItem.Type getDefaultItemType() {
return CollectableItem.Type.MOVIE;
}
}
|
[
"dreaming.in.code.zh@gmail.com"
] |
dreaming.in.code.zh@gmail.com
|
60222878f3de7aacba7aa545831bff64e556074b
|
fe0399d20951733eb5958b9c39256f38b77e6b8f
|
/org/omg/PortableServer/ServantActivatorOperations.java
|
a2353f2f1c855d0a78bd1f99c2e498b464b4eb2e
|
[] |
no_license
|
zxlooong/jdk14219
|
812e743b9e24238a40a858e12816fe0d87397171
|
b9422ce246ee463a24e55f3e91797b33862c9d4c
|
refs/heads/master
| 2021-01-23T11:49:55.331875
| 2013-12-06T15:59:08
| 2013-12-06T15:59:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,569
|
java
|
package org.omg.PortableServer;
/**
* org/omg/PortableServer/ServantActivatorOperations.java .
* Generated by the IDL-to-Java compiler (portable), version "3.1"
* from ../../../../src/share/classes/org/omg/PortableServer/poa.idl
* Monday, November 10, 2008 6:32:12 AM GMT
*/
/**
* When the POA has the RETAIN policy it uses servant
* managers that are ServantActivators.
*/
public interface ServantActivatorOperations extends org.omg.PortableServer.ServantManagerOperations
{
/**
* This operation is invoked by the POA whenever the
* POA receives a request for an object that is not
* currently active, assuming the POA has the
* USE_SERVANT_MANAGER and RETAIN policies.
* @param oid object Id associated with the object on
* the request was made.
* @param adapter object reference for the POA in which
* the object is being activated.
* @return Servant corresponding to oid is created or
* located by the user supplied servant manager.
* @exception ForwardRequest to indicate to the ORB
* that it is responsible for delivering
* the current request and subsequent
* requests to the object denoted in the
* forward_reference member of the exception.
*/
org.omg.PortableServer.Servant incarnate (byte[] oid, org.omg.PortableServer.POA adapter) throws org.omg.PortableServer.ForwardRequest;
/**
* This operation is invoked whenever a servant for
* an object is deactivated, assuming the POA has
* the USE_SERVANT_MANAGER and RETAIN policies.
* @param oid object Id associated with the object
* being deactivated.
* @param adapter object reference for the POA in which
* the object was active.
* @param serv contains reference to the servant
* associated with the object being deactivated.
* @param cleanup_in_progress if TRUE indicates that
* destroy or deactivate is called with
* etherealize_objects param of TRUE. FALSE
* indicates that etherealize was called due to
* other reasons.
* @param remaining_activations indicates whether the
* Servant Manager can destroy a servant. If
* set to TRUE, the Servant Manager should wait
* until all invocations in progress have
* completed.
*/
void etherealize (byte[] oid, org.omg.PortableServer.POA adapter, org.omg.PortableServer.Servant serv, boolean cleanup_in_progress, boolean remaining_activations);
} // interface ServantActivatorOperations
|
[
"zxlooong@gmail.com"
] |
zxlooong@gmail.com
|
85195a41f31c405785052048d4fd8492bc4b2a45
|
f0568343ecd32379a6a2d598bda93fa419847584
|
/modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201309/cm/FeedService.java
|
9b7f5beb39725431f1dd78109c6d8d2a28086448
|
[
"Apache-2.0"
] |
permissive
|
frankzwang/googleads-java-lib
|
bd098b7b61622bd50352ccca815c4de15c45a545
|
0cf942d2558754589a12b4d9daa5902d7499e43f
|
refs/heads/master
| 2021-01-20T23:20:53.380875
| 2014-07-02T19:14:30
| 2014-07-02T19:14:30
| 21,526,492
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,652
|
java
|
package com.google.api.ads.adwords.jaxws.v201309.cm;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceException;
import javax.xml.ws.WebServiceFeature;
/**
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.2.4-b01
* Generated source version: 2.1
*
*/
@WebServiceClient(name = "FeedService", targetNamespace = "https://adwords.google.com/api/adwords/cm/v201309", wsdlLocation = "https://adwords.google.com/api/adwords/cm/v201309/FeedService?wsdl")
public class FeedService
extends Service
{
private final static URL FEEDSERVICE_WSDL_LOCATION;
private final static WebServiceException FEEDSERVICE_EXCEPTION;
private final static QName FEEDSERVICE_QNAME = new QName("https://adwords.google.com/api/adwords/cm/v201309", "FeedService");
static {
URL url = null;
WebServiceException e = null;
try {
url = new URL("https://adwords.google.com/api/adwords/cm/v201309/FeedService?wsdl");
} catch (MalformedURLException ex) {
e = new WebServiceException(ex);
}
FEEDSERVICE_WSDL_LOCATION = url;
FEEDSERVICE_EXCEPTION = e;
}
public FeedService() {
super(__getWsdlLocation(), FEEDSERVICE_QNAME);
}
public FeedService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
/**
*
* @return
* returns FeedServiceInterface
*/
@WebEndpoint(name = "FeedServiceInterfacePort")
public FeedServiceInterface getFeedServiceInterfacePort() {
return super.getPort(new QName("https://adwords.google.com/api/adwords/cm/v201309", "FeedServiceInterfacePort"), FeedServiceInterface.class);
}
/**
*
* @param features
* A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
* @return
* returns FeedServiceInterface
*/
@WebEndpoint(name = "FeedServiceInterfacePort")
public FeedServiceInterface getFeedServiceInterfacePort(WebServiceFeature... features) {
return super.getPort(new QName("https://adwords.google.com/api/adwords/cm/v201309", "FeedServiceInterfacePort"), FeedServiceInterface.class, features);
}
private static URL __getWsdlLocation() {
if (FEEDSERVICE_EXCEPTION!= null) {
throw FEEDSERVICE_EXCEPTION;
}
return FEEDSERVICE_WSDL_LOCATION;
}
}
|
[
"jradcliff@google.com"
] |
jradcliff@google.com
|
62ddad6558f406a60b0aa23304bd1a8b875c432c
|
d6c041879c662f4882892648fd02e0673a57261c
|
/com/planet_ink/coffee_mud/Items/Basic/GenBook.java
|
6bcb7268be3e46c85f2369bea6f8bbeee0fdf22c
|
[
"Apache-2.0"
] |
permissive
|
linuxshout/CoffeeMud
|
15a2c09c1635f8b19b0d4e82c9ef8cd59e1233f6
|
a418aa8685046b08c6d970083e778efb76fd3716
|
refs/heads/master
| 2020-04-14T04:17:39.858690
| 2018-12-29T20:50:15
| 2018-12-29T20:50:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,678
|
java
|
package com.planet_ink.coffee_mud.Items.Basic;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet_ink.coffee_mud.Behaviors.interfaces.*;
import com.planet_ink.coffee_mud.CharClasses.interfaces.*;
import com.planet_ink.coffee_mud.Commands.interfaces.*;
import com.planet_ink.coffee_mud.Common.interfaces.*;
import com.planet_ink.coffee_mud.Exits.interfaces.*;
import com.planet_ink.coffee_mud.Items.interfaces.*;
import com.planet_ink.coffee_mud.Locales.interfaces.*;
import com.planet_ink.coffee_mud.MOBS.interfaces.*;
import com.planet_ink.coffee_mud.Races.interfaces.*;
import java.util.*;
import com.planet_ink.coffee_mud.Libraries.interfaces.*;
/*
Copyright 2006-2018 Bo Zimmerman
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
public class GenBook extends StdBook
{
@Override
public String ID()
{
return "GenBook";
}
protected String readableText="";
public GenBook()
{
super();
setDisplayText("a book sits here.");
setDescription("Enter `READ [NUMBER] [BOOK]` to read a chapter.%0D%0AUse your WRITE skill to add new chapters. ");
basePhyStats().setSensesMask(PhyStats.SENSE_ITEMREADABLE);
recoverPhyStats();
setMaterial(RawMaterial.RESOURCE_PAPER);
}
@Override
public boolean isGeneric()
{
return true;
}
@Override
public String text()
{
return CMLib.coffeeMaker().getPropertiesStr(this,false);
}
@Override
public void executeMsg(final Environmental host, final CMMsg msg)
{
if(((msg.target()==this)||(msg.tool()==this))
&&(name().trim().equalsIgnoreCase("THE ARCHON BOOK")))
destroy();
else
super.executeMsg(host,msg);
}
@Override
public String readableText()
{
return readableText;
}
@Override
public void setReadableText(final String text)
{
readableText=text;
}
@Override
public void setMiscText(final String newText)
{
miscText="";
CMLib.coffeeMaker().setPropertiesStr(this,newText,false);
recoverPhyStats();
}
private final static String[] MYCODES={"MAXPAGES","MAXCHARSPAGE"};
@Override
public String getStat(final String code)
{
if(CMLib.coffeeMaker().getGenItemCodeNum(code)>=0)
return CMLib.coffeeMaker().getGenItemStat(this,code);
switch(getCodeNum(code))
{
case 0:
return "" + this.getMaxPages();
case 1:
return "" + this.getMaxCharsPerPage();
default:
return CMProps.getStatCodeExtensionValue(getStatCodes(), xtraValues, code);
}
}
@Override
public void setStat(final String code, final String val)
{
if(CMLib.coffeeMaker().getGenItemCodeNum(code)>=0)
CMLib.coffeeMaker().setGenItemStat(this,code,val);
else
switch(getCodeNum(code))
{
case 0:
this.setMaxPages(CMath.parseIntExpression(val));
break;
case 1:
this.setMaxCharsPerPage(CMath.parseIntExpression(val));
break;
default:
CMProps.setStatCodeExtensionValue(getStatCodes(), xtraValues, code, val);
break;
}
}
@Override
protected int getCodeNum(final String code)
{
for(int i=0;i<MYCODES.length;i++)
{
if(code.equalsIgnoreCase(MYCODES[i]))
return i;
}
return -1;
}
private static String[] codes = null;
@Override
public String[] getStatCodes()
{
if(codes!=null)
return codes;
final String[] MYCODES=CMProps.getStatCodesList(GenBook.MYCODES,this);
final String[] superCodes=CMParms.toStringArray(GenericBuilder.GenItemCode.values());
codes=new String[superCodes.length+MYCODES.length];
int i=0;
for(;i<superCodes.length;i++)
codes[i]=superCodes[i];
for(int x=0;x<MYCODES.length;i++,x++)
codes[i]=MYCODES[x];
return codes;
}
@Override
public boolean sameAs(final Environmental E)
{
if(!(E instanceof GenBook))
return false;
for(int i=0;i<getStatCodes().length;i++)
{
if(!E.getStat(getStatCodes()[i]).equals(getStat(getStatCodes()[i])))
return false;
}
return true;
}
}
|
[
"bo@zimmers.net"
] |
bo@zimmers.net
|
700931693a63e75b1c1cb0de91e409e953906c7c
|
f718bc3bde3dae13971ff100a93fc6add0dfd4d3
|
/2.JavaCore/src/com/javarush/task/task14/task1419/Solution.java
|
e1b2020d346a93809836366481f0b7c9a6276209
|
[] |
no_license
|
lazarevspb/JavaRushTasks
|
eb8e9176a6b918f0da4886a8c7cc9d43352d76e8
|
3759ed4877aa3ce017c8a2e4d6e4c4f81b176d5f
|
refs/heads/master
| 2023-05-02T22:52:17.153735
| 2021-05-18T19:14:09
| 2021-05-18T19:14:09
| 295,786,986
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,110
|
java
|
package com.javarush.task.task14.task1419;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InterruptedIOException;
import java.util.ArrayList;
import java.util.List;
/*
Нашествие исключений
*/
public class Solution {
public static List<Exception> exceptions = new ArrayList<Exception>();
public static void main(String[] args) {
initExceptions();
for (Exception exception : exceptions) {
System.out.println(exception);
}
}
private static void initExceptions() { //the first exception
try {
float i = 1 / 0;
} catch (Exception e) {
exceptions.add(e);
}
try {
Class.forName("someClass");
} catch (ClassNotFoundException e) {
exceptions.add(e);
}
try {
String s = null;
s.split(" ");
} catch (Exception e) {
exceptions.add(e);
}
try {
Object x = new Integer(0);
System.out.println((String) x);
} catch (Exception e) {
exceptions.add(e);
}
try {
int[] ints = new int[1];
ints[0] = ints[2];
} catch (Exception e) {
exceptions.add(e);
}
try {
Object x[] = new String[3];
x[0] = new Integer(0);
} catch (Exception e) {
exceptions.add(e);
}
try {
FileInputStream fileInputStream = new FileInputStream("fileName");
} catch (FileNotFoundException e) {
exceptions.add(e);
}
try {
throw new InterruptedException();
} catch (InterruptedException e) {
exceptions.add(e);
}
try {
throw new IOException();
} catch (Exception e) {
exceptions.add(e);
}
try {
throw new java.sql.SQLException();
} catch (Exception e) {
exceptions.add(e);
}
}
}
|
[
"v.lazarev.spb@gmail.com"
] |
v.lazarev.spb@gmail.com
|
6779534b25d76b5dff5d7d07fe9d57efa98d1054
|
eeca771cfa828884be1c56e732d63a451f179c52
|
/java-project2-server/src06/main/java/com/eomcs/lms/dao/mariadb/LessonDaoImpl.java
|
ab4fc69104454b2d38d72590f8fda47729f3ad9b
|
[] |
no_license
|
eikhyeonchoi/bitcamp-java-2018-12
|
54e03db59224d8378de0a5a392917f4ae87cd72f
|
66d6bce206d8de7b09c482f4695af6f3cd1acf14
|
refs/heads/master
| 2021-08-06T17:17:30.648837
| 2020-04-30T13:12:48
| 2020-04-30T13:12:48
| 163,650,669
| 1
| 2
| null | 2020-04-30T17:33:35
| 2018-12-31T08:00:40
|
Java
|
UTF-8
|
Java
| false
| false
| 3,699
|
java
|
package com.eomcs.lms.dao.mariadb;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
import com.eomcs.lms.dao.LessonDao;
import com.eomcs.lms.domain.Lesson;
public class LessonDaoImpl implements LessonDao {
Connection con;
public LessonDaoImpl(Connection con) {
this.con = con;
}
public List<Lesson> findAll() {
ArrayList<Lesson> list = new ArrayList<Lesson>();
try(PreparedStatement stmt = con.prepareStatement(
"select * from lms_lesson "
+ "order by lesson_id desc")){
try( ResultSet rs = stmt.executeQuery(); ) {
while(rs.next()) {
Lesson lesson = new Lesson();
lesson.setNo(rs.getInt("lesson_id"));
lesson.setContents(rs.getString("conts"));
lesson.setTitle(rs.getString("titl"));
lesson.setStartDate(rs.getDate("sdt"));
lesson.setEndDate(rs.getDate("edt"));
lesson.setTotalHours(rs.getInt("tot_hr"));
lesson.setDayHours(rs.getInt("day_hr"));
list.add(lesson);
} // while
return (ArrayList<Lesson>)list;
}
} catch(Exception e) {
throw new RuntimeException(e);
}
} // list()
public void insert(Lesson lesson) {
try(PreparedStatement stmt = con.prepareStatement(
"insert into lms_lesson(conts, titl, sdt, edt, tot_hr, day_hr)"
+ " values(?, ?, ?, ?, ?, ?)"); ){
stmt.setString(1, lesson.getContents());
stmt.setString(2, lesson.getTitle());
stmt.setDate(3, lesson.getStartDate());
stmt.setDate(4, lesson.getEndDate());
stmt.setInt(5, lesson.getTotalHours());
stmt.setInt(6, lesson.getDayHours());
stmt.executeUpdate();
} catch(Exception e) {
throw new RuntimeException(e);
}
} // add()
public Lesson findByNo(int no) {
try(PreparedStatement stmt = con.prepareStatement(
"select * from lms_lesson where lesson_id = ?"); ){
stmt.setInt(1, no);
try( ResultSet rs = stmt.executeQuery(); ) {
if(rs.next()) { // next()를 호출해야지만 서버에 요청하는 것
Lesson lesson = new Lesson();
lesson.setNo(rs.getInt("lesson_id"));
lesson.setTitle(rs.getString("titl"));
lesson.setContents(rs.getString("conts"));
lesson.setStartDate(rs.getDate("sdt"));
lesson.setEndDate(rs.getDate("edt"));
lesson.setTotalHours(rs.getInt("tot_hr"));
lesson.setDayHours(rs.getInt("day_hr"));
return lesson;
} else return null;
}
}catch(Exception e) {
throw new RuntimeException(e);
}
} // get()
public int update(Lesson lesson) {
try(PreparedStatement stmt = con.prepareStatement(
"update lms_lesson set titl = ?, conts = ?, sdt = ?, edt = ?,"
+ " tot_hr = ?, day_hr = ? where lesson_id = ?"); ){
stmt.setString(1, lesson.getTitle());
stmt.setString(2, lesson.getContents());
stmt.setDate(3, lesson.getStartDate());
stmt.setDate(4, lesson.getEndDate());
stmt.setInt(5, lesson.getTotalHours());
stmt.setInt(6, lesson.getDayHours());
stmt.setInt(7, lesson.getNo());
return stmt.executeUpdate();
} catch(Exception e) {
throw new RuntimeException(e);
}
} // update()
public int delete(int no) {
try(PreparedStatement stmt = con.prepareStatement(
"delete from lms_lesson where lesson_id = ?"); ){
stmt.setInt(1, no);
return stmt.executeUpdate();
} catch(Exception e) {
throw new RuntimeException(e);
}
} // delete()
}
|
[
"eikhyeon.choi@gmail.com"
] |
eikhyeon.choi@gmail.com
|
51a8b144a03cfa1f1e8b854ed298f01f3d870880
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.mm/classes.jar/com/google/d/cs.java
|
93d2a0f24105784a94a55aa6ee6e6b9308c30614
|
[] |
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
| 1,279
|
java
|
package com.google.d;
import java.io.InputStream;
import java.nio.ByteBuffer;
public abstract interface cs<MessageType>
{
public abstract MessageType parseDelimitedFrom(InputStream paramInputStream);
public abstract MessageType parseDelimitedFrom(InputStream paramInputStream, at paramat);
public abstract MessageType parseFrom(h paramh);
public abstract MessageType parseFrom(h paramh, at paramat);
public abstract MessageType parseFrom(i parami);
public abstract MessageType parseFrom(i parami, at paramat);
public abstract MessageType parseFrom(InputStream paramInputStream);
public abstract MessageType parseFrom(InputStream paramInputStream, at paramat);
public abstract MessageType parseFrom(ByteBuffer paramByteBuffer);
public abstract MessageType parseFrom(ByteBuffer paramByteBuffer, at paramat);
public abstract MessageType parseFrom(byte[] paramArrayOfByte);
public abstract MessageType parseFrom(byte[] paramArrayOfByte, at paramat);
public abstract MessageType parsePartialFrom(i parami, at paramat);
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes11.jar
* Qualified Name: com.google.d.cs
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
f7e197e9f0b0d536e1ede0fda9c887d34a318af7
|
c9f879674374cabda5283e99f05be008773f1cc5
|
/src/main/java/com/brandon3055/draconicevolution/blocks/tileentity/TileEnergyInfuser.java
|
acf94e283f8793077c82548c4d729ab4f16a9720
|
[
"MIT",
"LicenseRef-scancode-public-domain"
] |
permissive
|
Dunamis4tw/Draconic-Evolution
|
308192cc326e7729f467d01db3d1c97b7afc6249
|
6c939b75c3e4ba1cc9f8d0ec6c04cca3a1e168f5
|
refs/heads/master
| 2020-12-02T19:28:45.680428
| 2017-06-30T00:09:48
| 2017-06-30T00:09:48
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,392
|
java
|
package com.brandon3055.draconicevolution.blocks.tileentity;
import cofh.api.energy.IEnergyContainerItem;
import cofh.api.energy.IEnergyReceiver;
import com.brandon3055.brandonscore.blocks.TileEnergyInventoryBase;
import com.brandon3055.brandonscore.client.particle.BCEffectHandler;
import com.brandon3055.brandonscore.lib.Vec3D;
import com.brandon3055.brandonscore.lib.datamanager.ManagedBool;
import com.brandon3055.draconicevolution.client.DEParticles;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ITickable;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
/**
* Created by brandon3055 on 30/05/2016.
*/
public class TileEnergyInfuser extends TileEnergyInventoryBase implements IEnergyReceiver, ITickable {
public final ManagedBool running = register("running", new ManagedBool(false)).syncViaTile().finish();
public final ManagedBool charging = register("charging", new ManagedBool(false)).syncViaTile().finish();
public float rotation = 0;
public TileEnergyInfuser() {
this.setCapacityAndTransfer(10000000, 10000000, 10000000);
this.setInventorySize(1);
setEnergySyncMode().syncViaContainer();
}
//region Function
@Override
public void update() {
if (world.isRemote) {
spawnParticles();
}
else {
super.update();
ItemStack stack = getStackInSlot(0);
if (stack.getItem() instanceof IEnergyContainerItem) {
IEnergyContainerItem item = (IEnergyContainerItem) stack.getItem();
int maxAccept = item.receiveEnergy(stack, energyStorage.getMaxExtract(), true);
running.value = maxAccept > 0;
int transfer = energyStorage.extractEnergy(item.receiveEnergy(stack, Math.min(energyStorage.getEnergyStored(), energyStorage.getMaxExtract()), false), false);
charging.value = transfer > 0;
}
else {
running.value = charging.value = false;
}
}
if (running.value) {
rotation++;
}
}
@Override
public boolean isItemValidForSlot(int index, ItemStack stack) {
return stack.getItem() instanceof IEnergyContainerItem;
}
//endregion
//region Render
@SideOnly(Side.CLIENT)
private void spawnParticles() {
if (world.isRemote && running.value && charging.value) {
for (int i = 0; i < 4; i++) {
double rotation = (this.rotation / 180 * Math.PI) + (i * (Math.PI / 2));
Vec3D spawn = new Vec3D(pos).add(0.5, 0.5, 0.5).add(Math.sin(rotation) * 0.33, 0.30, Math.cos(rotation) * 0.33);
Vec3D target = new Vec3D(pos).add(0.5, 0.7, 0.5);
BCEffectHandler.spawnFX(DEParticles.INFUSER, world, spawn, target, 0);
double xRand = 0.4 + (world.rand.nextDouble() * 0.7);
double yRand = world.rand.nextDouble() * 0.45;
spawn = new Vec3D(pos).add(0.5, 0.45, 0.5).add(Math.sin(rotation) * xRand, yRand, Math.cos(rotation) * xRand);
BCEffectHandler.spawnFX(DEParticles.INFUSER, world, spawn, target, 1);
}
}
}
@Override
public boolean hasFastRenderer() {
return false;//ToDo Re write fancy renderer
}
//endregion
}
|
[
"brandon4261@gmail.com"
] |
brandon4261@gmail.com
|
8059fa7b4b83238de65524dfe086f99aceac23e5
|
e27942cce249f7d62b7dc8c9b86cd40391c1ddd4
|
/modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201708/mcm/ManagedCustomer.java
|
12ee4d8c7c00da9e462c94ff6a97d7fdd96a0b2e
|
[
"Apache-2.0"
] |
permissive
|
mo4ss/googleads-java-lib
|
b4b6178747d25d16ae6aa0c80d80ee18a2dfe01a
|
efaa9c3bd8a46a3ed4b00963dc9760c6dd8bd641
|
refs/heads/master
| 2022-12-05T00:30:56.740813
| 2022-11-16T10:47:15
| 2022-11-16T10:47:15
| 108,132,394
| 0
| 0
|
Apache-2.0
| 2022-11-16T10:47:16
| 2017-10-24T13:41:43
|
Java
|
UTF-8
|
Java
| false
| false
| 7,197
|
java
|
// Copyright 2017 Google 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.google.api.ads.adwords.jaxws.v201708.mcm;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
*
* Data object that represents a managed customer. Member of {@link ManagedCustomerPage}.
*
*
* <p>Java class for ManagedCustomer complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="ManagedCustomer">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="customerId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
* <element name="canManageClients" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* <element name="currencyCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="dateTimeZone" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="testAccount" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* <element name="accountLabels" type="{https://adwords.google.com/api/adwords/mcm/v201708}AccountLabel" maxOccurs="unbounded" minOccurs="0"/>
* <element name="excludeHiddenAccounts" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ManagedCustomer", propOrder = {
"name",
"customerId",
"canManageClients",
"currencyCode",
"dateTimeZone",
"testAccount",
"accountLabels",
"excludeHiddenAccounts"
})
public class ManagedCustomer {
protected String name;
protected Long customerId;
protected Boolean canManageClients;
protected String currencyCode;
protected String dateTimeZone;
protected Boolean testAccount;
protected List<AccountLabel> accountLabels;
protected Boolean excludeHiddenAccounts;
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the customerId property.
*
* @return
* possible object is
* {@link Long }
*
*/
public Long getCustomerId() {
return customerId;
}
/**
* Sets the value of the customerId property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setCustomerId(Long value) {
this.customerId = value;
}
/**
* Gets the value of the canManageClients property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isCanManageClients() {
return canManageClients;
}
/**
* Sets the value of the canManageClients property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setCanManageClients(Boolean value) {
this.canManageClients = value;
}
/**
* Gets the value of the currencyCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCurrencyCode() {
return currencyCode;
}
/**
* Sets the value of the currencyCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCurrencyCode(String value) {
this.currencyCode = value;
}
/**
* Gets the value of the dateTimeZone property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDateTimeZone() {
return dateTimeZone;
}
/**
* Sets the value of the dateTimeZone property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDateTimeZone(String value) {
this.dateTimeZone = value;
}
/**
* Gets the value of the testAccount property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isTestAccount() {
return testAccount;
}
/**
* Sets the value of the testAccount property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setTestAccount(Boolean value) {
this.testAccount = value;
}
/**
* Gets the value of the accountLabels 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 accountLabels property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAccountLabels().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link AccountLabel }
*
*
*/
public List<AccountLabel> getAccountLabels() {
if (accountLabels == null) {
accountLabels = new ArrayList<AccountLabel>();
}
return this.accountLabels;
}
/**
* Gets the value of the excludeHiddenAccounts property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isExcludeHiddenAccounts() {
return excludeHiddenAccounts;
}
/**
* Sets the value of the excludeHiddenAccounts property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setExcludeHiddenAccounts(Boolean value) {
this.excludeHiddenAccounts = value;
}
}
|
[
"jradcliff@users.noreply.github.com"
] |
jradcliff@users.noreply.github.com
|
90b93cd5f89dfb5fdd9980a55e86fab9e369d5bc
|
63bb953f15a8980387fa68f670c28b2a7153b77b
|
/Games/Logoton/rnokia-poster-editor/src/main/java/ru/da/rrg/RNokiaIconMaker/graphics/RPanel.java
|
67a973787830ae123a239139125cc0f5fb3be5b7
|
[
"Unlicense"
] |
permissive
|
raydac/old-stuff
|
867314f6dc042dd4f629f6b8d81082a096b98e3e
|
68f19ab3857bec5d87c12d23e257b6ccbe9579a6
|
refs/heads/master
| 2021-12-12T21:38:13.049479
| 2021-12-02T22:01:31
| 2021-12-02T22:01:31
| 162,352,496
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 871
|
java
|
// Author: Igor A. Maznitsa (rrg@forth.org.ru)
// (C) 2001 All Copyright by Igor A. Maznitsa
package ru.da.rrg.RNokiaIconMaker.graphics;
import java.awt.*;
import java.applet.*;
import java.io.*;
public class RPanel extends Container
{
protected Applet prnt = null;
protected Image bckg = null;
public Applet getParentApplet(){return prnt; }
public RPanel(Applet appl,String imgname) throws IOException
{
super();
bckg = Utilities.loadImageResource(appl,imgname);
prnt = appl;
}
public void onActivate(){}
public void update(Graphics g)
{
paint(g);
}
public synchronized void paint(Graphics g)
{
if (!isVisible())return;
if (g==null) return;
if (bckg!=null) g.drawImage(bckg,0,0,this);
Component [] compo = getComponents();
for(int li=0;li<compo.length;li++)
{
compo[li].repaint();
}
}
}
|
[
"rrg4400@gmail.com"
] |
rrg4400@gmail.com
|
67af9f0cee05f8923857da983751ec674091b75a
|
54f352a242a8ad6ff5516703e91da61e08d9a9e6
|
/Source Codes/AtCoder/abc076/A/4488249.java
|
b8c23e915f59df08f379ba5013e629af833496b0
|
[] |
no_license
|
Kawser-nerd/CLCDSA
|
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
|
aee32551795763b54acb26856ab239370cac4e75
|
refs/heads/master
| 2022-02-09T11:08:56.588303
| 2022-01-26T18:53:40
| 2022-01-26T18:53:40
| 211,783,197
| 23
| 9
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,207
|
java
|
import java.io.*;
import java.math.*;
import java.util.*;
class Main {
private static final PrintWriter out = new PrintWriter(System.out);
private static final Scanner scanner = new Scanner(System.in);
private static int[] dx = {1, 0, -1, 0, 1, 1, -1, -1};
private static int[] dy = {0, 1, 0, -1, 1, -1, 1, -1};
private static int INF = 0x3f3f3f3f;
public static void main(String[] args) {
// From IntelliJ IDEA
int r = fgetInt();
println(2*fgetInt() - r);
suomi();
}
private static boolean isMovable( int x, int y, int w, int h ) {
return ( x >= 0 && y >= 0 && x < w && y < h );
}
private static String fgetStr(){
return FastScanner.next();
}
private static String fgetLine(){
return FastScanner.nextLine();
}
private static char fgetChar(){
return fgetStr().charAt(0);
}
private static int fgetInt(){
return FastScanner.nextInt();
}
private static long fgetLong(){
return FastScanner.nextLong();
}
private static double fgetDouble(){
return FastScanner.nextDouble();
}
private static BigInteger fgetBig(){
return new BigInteger(fgetStr());
}
private static String reverseStr(String str){
return new StringBuffer(str).reverse().toString();
}
private static void println(Object a){
out.println(a);
}
private static void print(Object a){
out.print(a);
}
private static void printf(String string, Object... args) {
out.printf(string, args);
}
private static void suomi(){
out.flush();
}
private static long pow ( long x, long n ) {
final long MOD = 1000000007;
long ans = 1;
while ( n > 0 ) {
if ( ( n & 1 ) == 1 ) {
ans = (ans * x) % MOD;
}
x = ( x * x ) % MOD;
n >>= 1;
}
return ans;
}
private static long gcd(long x, long y) {
return x % y == 0 ? y : gcd(y, x % y);
}
private static long lcm(long x, long y) {
return ( x / gcd(x, y) * y);
}
}
class Edge implements Comparable<Edge> {
int u;
int v;
int cost;
public Edge(int u, int v, int cost) {
this.u = u;
this.v = v;
this.cost = cost;
}
@Override
public int compareTo(Edge edge) {
return Integer.compare(this.cost, edge.cost);
}
}
class FastScanner {
private static final InputStream in = System.in;
private static final byte[] buffer = new byte[1024];
private static int ptr = 0;
private static int bufferLength = 0;
private static boolean hasNextByte() {
if (ptr < bufferLength) {
return true;
}else{
ptr = 0;
try {
bufferLength = in.read(buffer);
} catch ( IOException e) {
e.printStackTrace();
}
if (bufferLength <= 0) {
return false;
}
}
return true;
}
private static int readByte() {
if (hasNextByte()) return buffer[ptr++];
else return -1;
}
private static boolean isPrintableChar(int c) {
return 33 <= c && c <= 126;
}
private static boolean hasNext() {
while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;
return hasNextByte();
}
static String next() {
if (!hasNext()) throw new NoSuchElementException();
StringBuilder sb = new StringBuilder();
int b = readByte();
while(isPrintableChar(b)) {
sb.appendCodePoint(b);
b = readByte();
}
return sb.toString();
}
static String nextLine() {
if (!hasNext()) throw new NoSuchElementException();
StringBuilder sb = new StringBuilder();
int b = readByte();
while(isPrintableChar(b) || b == 32) {
sb.appendCodePoint(b);
b = readByte();
}
return sb.toString();
}
static long nextLong() {
if (!hasNext()) throw new NoSuchElementException();
long n = 0;
boolean minus = false;
int b = readByte();
if (b == '-') {
minus = true;
b = readByte();
}
if (b < '0' || '9' < b) {
throw new NumberFormatException();
}
while(true){
if ('0' <= b && b <= '9') {
n *= 10;
n += b - '0';
}else if(b == -1 || !isPrintableChar(b)){
return minus ? -n : n;
}else{
throw new NumberFormatException();
}
b = readByte();
}
}
static int nextInt() {
long nl = nextLong();
if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
return (int) nl;
}
static double nextDouble() {
return Double.parseDouble(next());
}
}
|
[
"kwnafi@yahoo.com"
] |
kwnafi@yahoo.com
|
1c33d5cef9e8bb07205ddc8f61125f2203f57715
|
9aaa1c4d1a5c9e596337ca7c943011bdeaef43bb
|
/09JavaEEJSFLibrariesTagsAndTemplates/src/main/java/fdmc2/repository/util/EntityDeleter.java
|
ce459f518ba53fba5b67d2b1281de3ef856dd7ad
|
[
"MIT"
] |
permissive
|
lapd87/SoftUniJavaWebDevelopmentBasics
|
82ff23e05417eb00aa96abc97239cdb9a8933689
|
4386f8e189c71130f9f7eeddb81bdcee53b14b2a
|
refs/heads/master
| 2020-04-25T03:24:59.610520
| 2019-02-25T09:34:05
| 2019-02-25T09:34:05
| 172,475,350
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,458
|
java
|
package fdmc2.repository.util;
import javax.persistence.EntityManager;
import javax.persistence.Query;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaDelete;
import javax.persistence.criteria.Root;
import static fdmc2.constants.Constants.CACHE_IGNORE;
import static fdmc2.constants.Constants.CACHE_MODE;
/**
* Created by IntelliJ IDEA.
* User: LAPD
* Date: 7.2.2019 г.
* Time: 10:07 ч.
*/
public class EntityDeleter {
public static <T> void deleteEntityByParameter(String parameterValue,
String parameterName,
EntityManager entityManager,
Class<T> aClass) {
CacheClearer.clearCache(entityManager);
CriteriaBuilder criteriaBuilder = entityManager
.getCriteriaBuilder();
CriteriaDelete<T> criteriaDelete = criteriaBuilder
.createCriteriaDelete(aClass);
Root<T> root = criteriaDelete.from(aClass);
criteriaDelete.where(criteriaBuilder
.equal(root.get(parameterName), parameterValue));
entityManager.getTransaction().begin();
Query query = entityManager
.createQuery(criteriaDelete)
.setHint(CACHE_MODE, CACHE_IGNORE);
query.executeUpdate();
entityManager.getTransaction().commit();
}
}
|
[
"mario87lapd@gmail.com"
] |
mario87lapd@gmail.com
|
c347aa44135bbabc1399742d502a29c692332bb1
|
637817184196b8d73130958fc1fc0b27833d8d92
|
/aprint-gui/src/main/java/org/barrelorgandiscovery/gui/search/ReadOnlyDefaultTableModel.java
|
2bc27f4933ebd19a5ddc0ec8f3a31662c98bb8c0
|
[] |
no_license
|
barrelorgandiscovery/aprintproject
|
daad59e1e52e6e8e4187f943de95b79622827c81
|
ebc932c50d3116a4bbe9802910eac097151b1625
|
refs/heads/master
| 2023-06-28T03:11:25.779074
| 2023-05-08T12:15:27
| 2023-05-08T12:15:27
| 258,808,541
| 2
| 0
| null | 2023-05-08T09:50:33
| 2020-04-25T15:24:59
|
Java
|
UTF-8
|
Java
| false
| false
| 910
|
java
|
package org.barrelorgandiscovery.gui.search;
import java.util.Vector;
import javax.swing.table.DefaultTableModel;
public class ReadOnlyDefaultTableModel extends DefaultTableModel {
public ReadOnlyDefaultTableModel() {
super();
// TODO Auto-generated constructor stub
}
public ReadOnlyDefaultTableModel(int rowCount, int columnCount) {
super(rowCount, columnCount);
}
public ReadOnlyDefaultTableModel(Object[] columnNames, int rowCount) {
super(columnNames, rowCount);
}
public ReadOnlyDefaultTableModel(Object[][] data, Object[] columnNames) {
super(data, columnNames);
}
public ReadOnlyDefaultTableModel(Vector columnNames, int rowCount) {
super(columnNames, rowCount);
}
public ReadOnlyDefaultTableModel(Vector data, Vector columnNames) {
super(data, columnNames);
}
@Override
public boolean isCellEditable(int row, int column) {
return false;
}
}
|
[
"frett27@gmail.com"
] |
frett27@gmail.com
|
79a6d151153067e64e426a2dc24b53c3569617fe
|
b0b7f0e90f1f1508fe04eac9141429ad869b9653
|
/src/amazon/Q1668.java
|
eab8e9c381175c05b5133fd398e82d2102bde862
|
[] |
no_license
|
Hennessyan/leetcode
|
a4652db02fee4231746f358a92b5c452eb2dc2ab
|
00b1c0a4a5b9c25a01585e3bc4aacef294b3b95b
|
refs/heads/master
| 2022-02-06T20:16:41.012056
| 2022-01-29T01:02:10
| 2022-01-29T01:02:10
| 215,460,839
| 0
| 0
| null | 2022-01-29T01:02:11
| 2019-10-16T05:01:41
|
Java
|
UTF-8
|
Java
| false
| false
| 1,763
|
java
|
package amazon;
// Maximum Repeating Substring
public class Q1668 {
public int maxRepeating0(String sequence, String word) {
int count=0;
StringBuilder str = new StringBuilder(word);
while(sequence.contains(str.toString())) // bad performance
{
count++;
str.append(word);
}
return count;
}
public int maxRepeating(String sequence, String word) {
if(word == null || sequence == null || word.length() > sequence.length()) {
return 0;
}
int max = 0, m = sequence.length(), n = word.length();
int[] dp = new int[m];
for(int i = 0; i <= m - n; i++) {
if(sequence.substring(i, i + n).equals(word)) {
dp[i] = 1;
}
}
for(int i = 0; i < m; i++) {
if(i - n >= 0 && dp[i] != 0 && dp[i - n] != 0) { // 只有不等于0的情况才可以相加!!!
dp[i] += dp[i - n];
}
max = Math.max(dp[i], max);
}
return max;
}
public int maxRepeating2(String sequence, String word) {
if(word == null || sequence == null || word.length() > sequence.length()) {
return 0;
}
int max = 0, m = sequence.length(), n = word.length();
int r = m / n, l = 0;
while(l <= r) {
int mid = l + (r - l) / 2;
StringBuilder sb = new StringBuilder();
for(int j = 0; j < mid; j++) {
sb.append(word);
}
if(sequence.contains(sb)) {
max = Math.max(max, mid);
l = mid + 1;
} else {
r = mid - 1;
}
}
return max;
}
}
|
[
"llu17@binghamton.edu"
] |
llu17@binghamton.edu
|
65b9ff7ec7d037ca3f0ec4a7ca7f9165bf2dfcde
|
4c21aaf396af5039b5ba7493f77e2b73ada01686
|
/src/main/java/com/star/sud/scheduler/service/DynamicScheduler.java
|
e91f8fce634186e287111b6eb202216497f175eb
|
[] |
no_license
|
owaresabd/Dynamic-Task-Scheduling-Cron-Job
|
2f620b9504c68073ba00a53e5eba675cd516480b
|
19424f6871fc725a2abbe4613d0883b4f17f2047
|
refs/heads/master
| 2022-04-28T11:49:21.964166
| 2020-04-28T01:25:47
| 2020-04-28T01:25:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,440
|
java
|
package com.star.sud.scheduler.service;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;
import java.util.Random;
import java.util.TimeZone;
import javax.annotation.PostConstruct;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.TaskScheduler;
import org.springframework.scheduling.annotation.SchedulingConfigurer;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
import org.springframework.scheduling.config.ScheduledTaskRegistrar;
import org.springframework.scheduling.support.CronTrigger;
import org.springframework.stereotype.Service;
import com.star.sud.model.TConfiguration;
import com.star.sud.repository.ConfigurationRepository;
@Service
public class DynamicScheduler implements SchedulingConfigurer {
private static final Logger log = LoggerFactory.getLogger(DynamicScheduler.class);
@Autowired
private ConfigurationRepository repository;
@PostConstruct
public void initDatabase() {
List<TConfiguration> entitys = new ArrayList<>();
TConfiguration entity = new TConfiguration("NEXT_EXEC_TIME", "4", 'A');
TConfiguration entity2 = new TConfiguration("CHRON_EXPRESSION", "0/10 * * * * ?", 'A');
entitys.add(entity);
entitys.add(entity2);
repository.saveAll(entitys);
}
public TaskScheduler poolScheduler() {
ThreadPoolTaskScheduler scheduler = new ThreadPoolTaskScheduler();
scheduler.setThreadNamePrefix("ThreadPoolTaskScheduler");
scheduler.setPoolSize(1);
scheduler.initialize();
return scheduler;
}
@Override
public void configureTasks(ScheduledTaskRegistrar taskRegistrar) {
taskRegistrar.setScheduler(poolScheduler());
// Random next execution time
taskRegistrar.addTriggerTask(() -> scheduleDynamically(), t -> {
Calendar nextExecutionTime = new GregorianCalendar();
Date lastActualExecutionTime = t.lastActualExecutionTime();
nextExecutionTime.setTime(lastActualExecutionTime != null ? lastActualExecutionTime : new Date());
nextExecutionTime.add(Calendar.SECOND, getNextExecutionTime());
return nextExecutionTime.getTime();
});
// Fixed next execution time.
taskRegistrar.addTriggerTask(() -> scheduleFixed(), t -> {
Calendar nextExecutionTime = new GregorianCalendar();
Date lastActualExecutionTime = t.lastActualExecutionTime();
nextExecutionTime.setTime(lastActualExecutionTime != null ? lastActualExecutionTime : new Date());
nextExecutionTime.add(Calendar.SECOND, 7); // This is where we set the next execution time.
return nextExecutionTime.getTime();
});
// Next execution time is taken from DB, so if the value in DB changes, next
// execution time will change too.
taskRegistrar.addTriggerTask(
() -> scheduledDatabase(repository.findById("NEXT_EXEC_TIME").get().getConfigValue()), t -> {
Calendar nextExecutionTime = new GregorianCalendar();
Date lastActualExecutionTime = t.lastActualExecutionTime();
nextExecutionTime.setTime(lastActualExecutionTime != null ? lastActualExecutionTime : new Date());
nextExecutionTime.add(Calendar.SECOND,
Integer.parseInt(repository.findById("NEXT_EXEC_TIME").get().getConfigValue()));
return nextExecutionTime.getTime();
});
// Cron expression
// CronTrigger cronTrigger = new CronTrigger("0/10 * * * * ?",
// TimeZone.getDefault());
// taskRegistrar.addTriggerTask(() -> scheduleCron("0/10 * * * * ?"),
// cronTrigger);
String expression = repository.findById("CHRON_EXPRESSION").get().getConfigValue();
CronTrigger cronTrigger = new CronTrigger(expression, TimeZone.getDefault());
taskRegistrar.addTriggerTask(() -> scheduleCron(expression), cronTrigger);
}
private int getNextExecutionTime() {
return new Random().nextInt(5) + 1;
}
private void scheduleDynamically() {
log.info("scheduleDynamically: Next execution time of this changes every time between 1 and 5 seconds");
}
private void scheduleFixed() {
log.info("scheduleFixed: Next execution time of this will always be 7 seconds");
}
private void scheduledDatabase(String time) {
log.info("scheduledDatabase: Next execution time of this will be taken from DB -> {}", time);
}
private void scheduleCron(String cron) {
log.info("scheduleCron: Next execution time of this taken from cron expression -> {}", cron);
}
}
|
[
"sudarshan.java.p@gmail.com"
] |
sudarshan.java.p@gmail.com
|
d0b44d07f3241b7c36735ca65f73b17a2d27edb9
|
1ac0d7acec3d3791309dc88dbda226e4467a0249
|
/test-ios/src/test/java/bukalapak/pageObject/CreditCardPage.java
|
08d40c50feb670a92c5a7c5093fd8eac4f9442f2
|
[] |
no_license
|
anggastika/bibit-technical-test
|
3b1c4c73c5602836904aa1d72cb3fb1a79c770b5
|
967476f64486cb04a84c081289b35783ee493b3d
|
refs/heads/master
| 2023-08-18T01:50:36.881644
| 2021-10-20T15:21:52
| 2021-10-20T15:21:52
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,718
|
java
|
package bukalapak.pageObject;
import bukalapak.data.HelperData;
import bukalapak.data.MtxData;
import bukalapak.data.TransactionData;
import io.appium.java_client.ios.IOSDriver;
import io.appium.java_client.ios.IOSElement;
/**
* Created by NurdianSetyawan on 9/1/19.
*/
public class CreditCardPage extends BasePage {
public CreditCardPage(IOSDriver<IOSElement> iosDriver){
super(iosDriver);
}
public void userOnCreditCardPage() {
waitForVisibilityOf("credit_card_amount_text", 50);
verifyElementExist("credit_card_page_title");
HelperData.setLastActionPage(new CreditCardPage(iosDriver));
}
public void verifyTotalPaymentIsMatch() {
if (isElementVisible("credit_card_jenius_text")) {
assertEquals(TransactionData.getTotalPrice().replaceAll("[^0-9]", ""), String.valueOf(getIntegerFromTextElement("credit_card_amount_jenius_text")/100), "Jumlah transaksi tidak sama!");
} else {
assertEquals(TransactionData.getTotalPrice().replaceAll("[^0-9]", ""), String.valueOf(getIntegerFromTextElement("credit_card_amount_text")/100), "Jumlah transaksi tidak sama!");
}
}
public void verifyMasterCardPaymentIsMatch() {
waitForVisibilityOf("credit_card_mastercard_amount_text", 50);
String amountText = getElementLabel("credit_card_mastercard_amount_text");
amountText = amountText.replaceAll("[^0-9]", "");
assertTrue(TransactionData.getTotalPrice().replaceAll("[^0-9]", "").equals(amountText.substring(0, amountText.length() - 2)));
}
public void goToHomePage() {
backToHomePageViaDeeplink();
HelperData.setLastActionPage(new HomePage(iosDriver));
}
}
|
[
"49613928+dikako@users.noreply.github.com"
] |
49613928+dikako@users.noreply.github.com
|
e4551ac7fd719f007fe050db8fccc47c80db1899
|
cd9705d97d7ae0530149cddf8c3b3bb5ca246ea0
|
/configcenter-facade/src/main/java/org/antframework/configcenter/facade/order/AddReleaseOrder.java
|
8c20aa8a449a6b725527f020920289f5ea20211d
|
[] |
no_license
|
luchao0111/configcenter
|
ed4e08c34489a39b3d806d870120a45ff095a09c
|
cf3f9941921312d121c3e31100ca7c7682e24bb8
|
refs/heads/master
| 2020-07-11T01:20:06.455501
| 2019-08-15T14:56:53
| 2019-08-15T14:56:53
| 204,417,856
| 1
| 0
| null | 2019-08-26T07:12:56
| 2019-08-26T07:12:55
| null |
UTF-8
|
Java
| false
| false
| 1,266
|
java
|
/*
* 作者:钟勋 (e-mail:zhongxunking@163.com)
*/
/*
* 修订记录:
* @author 钟勋 2018-12-08 20:57 创建
*/
package org.antframework.configcenter.facade.order;
import lombok.Getter;
import lombok.Setter;
import org.antframework.common.util.facade.AbstractOrder;
import org.antframework.configcenter.facade.vo.Property;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.HashSet;
import java.util.Set;
/**
* 新增发布order
*/
public class AddReleaseOrder extends AbstractOrder {
// 应用id
@NotBlank
@Getter
@Setter
private String appId;
// 环境id
@NotBlank
@Getter
@Setter
private String profileId;
// 备注
@Getter
@Setter
private String memo;
// 需添加或修改的配置
@NotNull
@Getter
private Set<Property> addedOrModifiedProperties = new HashSet<>();
// 需删除的配置
@NotNull
@Getter
private Set<String> deletedPropertyKeys = new HashSet<>();
public void addAddedOrModifiedProperty(Property property) {
addedOrModifiedProperties.add(property);
}
public void addDeletedPropertyKey(String propertyKey) {
deletedPropertyKeys.add(propertyKey);
}
}
|
[
"zhongxunking@163.com"
] |
zhongxunking@163.com
|
0c1079cd84bfdd64127ba70a20f0abd58743691d
|
79f9fbe58f5e4688419d3801be8d4887d8b452bd
|
/app/src/main/java/renchaigao/com/zjb/team/join/joinTeam.java
|
6a0a817a073d1a054099b066428095446b4ff1b9
|
[] |
no_license
|
goying666/zjb2018
|
52ca1456ffd59cc4df12abfd3e5bd064c1b836b6
|
d9a54b5e7036875e14fef6780ab90287ef52c009
|
refs/heads/master
| 2020-03-21T06:21:34.159850
| 2018-06-27T07:20:53
| 2018-06-27T07:20:53
| 138,214,489
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 372
|
java
|
package renchaigao.com.zjb.team.join;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import renchaigao.com.zjb.R;
public class joinTeam extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_join_team);
}
}
|
[
"13040837899@163.com"
] |
13040837899@163.com
|
77865700465074c6d453ae900c70b7ecb952f16c
|
7b73756ba240202ea92f8f0c5c51c8343c0efa5f
|
/classes5/sfi.java
|
31428908e207c02a3a0c0f932470004c325eff62
|
[] |
no_license
|
meeidol-luo/qooq
|
588a4ca6d8ad579b28dec66ec8084399fb0991ef
|
e723920ac555e99d5325b1d4024552383713c28d
|
refs/heads/master
| 2020-03-27T03:16:06.616300
| 2016-10-08T07:33:58
| 2016-10-08T07:33:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 725
|
java
|
import android.app.Activity;
import android.graphics.Bitmap;
import com.tencent.mobileqq.filemanager.fileviewer.FileView.LocalVideoFileView;
import com.tencent.mobileqq.filemanager.util.FileManagerUtil.IGetVideoCallback;
import com.tencent.mobileqq.hotpatch.NotVerifyClass;
public class sfi
implements FileManagerUtil.IGetVideoCallback
{
public sfi(LocalVideoFileView paramLocalVideoFileView)
{
boolean bool = NotVerifyClass.DO_VERIFY_CLASS;
}
public void a(Bitmap paramBitmap)
{
LocalVideoFileView.b(this.a).runOnUiThread(new sfj(this, paramBitmap));
}
}
/* Location: E:\apk\QQ_91\classes5-dex2jar.jar!\sfi.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"1776098770@qq.com"
] |
1776098770@qq.com
|
e6db6cb05f0bf75c1f81d5b24fec65794b2d315e
|
f2b6d20a53b6c5fb451914188e32ce932bdff831
|
/src/com/google/android/gms/common/api/internal/zzj$5.java
|
c0ac6d110887621b2166fc3b49bebdaa4bbf11ef
|
[] |
no_license
|
reverseengineeringer/com.linkedin.android
|
08068c28267335a27a8571d53a706604b151faee
|
4e7235e12a1984915075f82b102420392223b44d
|
refs/heads/master
| 2021-04-09T11:30:00.434542
| 2016-07-21T03:54:43
| 2016-07-21T03:54:43
| 63,835,028
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 525
|
java
|
package com.google.android.gms.common.api.internal;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.ResultCallback;
import com.google.android.gms.common.api.Status;
final class zzj$5
implements ResultCallback<Status>
{
zzj$5(zzj paramzzj, zzv paramzzv, boolean paramBoolean, GoogleApiClient paramGoogleApiClient) {}
}
/* Location:
* Qualified Name: com.google.android.gms.common.api.internal.zzj.5
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
6e97a9dc839704faf4de1edb13f2122c2d1360f2
|
ad006acacf521c3e321567c9250cb0b8eee0c324
|
/src/test/java/net/finmath/optimizer/StochasticLevenbergMarquardtTest.java
|
2d249daa53d14ebba434800babe59a53c756add1
|
[
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"LicenseRef-scancode-mit-old-style"
] |
permissive
|
William1104/finmath-lib
|
3811e837bb3bd7efe14b530be49c7a4e899f21a8
|
272cfd0fc31bf89a84811dde50e34791f15bcf09
|
refs/heads/master
| 2022-06-23T17:05:38.975389
| 2017-12-13T15:53:18
| 2017-12-13T15:53:18
| 113,209,174
| 0
| 0
|
Apache-2.0
| 2022-06-20T22:47:29
| 2017-12-05T16:55:28
|
Java
|
UTF-8
|
Java
| false
| false
| 4,354
|
java
|
/**
*
*/
package net.finmath.optimizer;
import java.util.Arrays;
import org.junit.Test;
import net.finmath.montecarlo.RandomVariable;
import net.finmath.stochastic.RandomVariableInterface;
/**
* @author Christian Fries
*
*/
public class StochasticLevenbergMarquardtTest {
@Test
public void test() throws SolverException {
final int numberOfParameters = 2;
RandomVariableInterface[] initialParameters = new RandomVariableInterface[numberOfParameters];
RandomVariableInterface[] parameterSteps = new RandomVariableInterface[numberOfParameters];
// The following two lines decides if we use AAD or FD
// Arrays.fill(initialParameters, new RandomVariableDifferentiableAAD(2.0));
Arrays.fill(initialParameters, new RandomVariable(2.0));
Arrays.fill(parameterSteps, new RandomVariable(1E-8));
RandomVariableInterface[] weights = new RandomVariableInterface[] { new RandomVariable(1.0) };
RandomVariableInterface[] targetValues = new RandomVariableInterface[] { new RandomVariable(0) };
int maxIteration = 1000;
StochasticLevenbergMarquardt optimizer = new StochasticLevenbergMarquardt(initialParameters, targetValues, weights, parameterSteps, maxIteration, null, null) {
private static final long serialVersionUID = -282626938650139518L;
@Override
public void setValues(RandomVariableInterface[] parameters, RandomVariableInterface[] values) {
values[0] = parameters[0].add(parameters[1].mult(2)).sub(7).pow(2).add(parameters[0].mult(2).add(parameters[1]).sub(5).pow(2));
}
};
// Set solver parameters
optimizer.run();
RandomVariableInterface[] bestParameters = optimizer.getBestFitParameters();
System.out.println("The solver for problem 1 required " + optimizer.getIterations() + " iterations. The best fit parameters are:");
for (int i = 0; i < bestParameters.length; i++) System.out.println("\tparameter[" + i + "]: " + bestParameters[i]);
System.out.println("The solver accuracy is " + optimizer.getRootMeanSquaredError().getAverage());
}
@Test
public void testBoothFunctionWithAnalyticDerivative() throws SolverException {
final int numberOfParameters = 2;
RandomVariableInterface[] initialParameters = new RandomVariableInterface[numberOfParameters];
RandomVariableInterface[] parameterSteps = new RandomVariableInterface[numberOfParameters];
// RandomVariableInterface[] parameterSteps = null;
// The following two lines decides if we use AAD or FD
// Arrays.fill(initialParameters, new RandomVariableDifferentiableAAD(2.0));
Arrays.fill(initialParameters, new RandomVariable(2.0));
Arrays.fill(parameterSteps, new RandomVariable(.000001));
RandomVariableInterface[] weights = new RandomVariableInterface[] { new RandomVariable(1.0) };
RandomVariableInterface[] targetValues = new RandomVariableInterface[] { new RandomVariable(0) };
int maxIteration = 1000;
StochasticLevenbergMarquardt optimizer = new StochasticLevenbergMarquardt(initialParameters, targetValues, weights, parameterSteps, maxIteration, null, null) {
private static final long serialVersionUID = -282626938650139518L;
@Override
public void setValues(RandomVariableInterface[] parameters, RandomVariableInterface[] values) {
values[0] = parameters[0].add(parameters[1].mult(2)).sub(7).squared().add(parameters[0].mult(2).add(parameters[1]).sub(5).squared());
}
@Override
public void setDerivatives(RandomVariableInterface[] parameters, RandomVariableInterface[][] derivatives) {
derivatives[0][0] = parameters[0].add(parameters[1].mult(2)).sub(7).mult(2).add(parameters[0].mult(2).add(parameters[1]).sub(5).mult(4));
derivatives[1][0] = parameters[0].add(parameters[1].mult(2)).sub(7).mult(4).add(parameters[0].mult(2).add(parameters[1]).sub(5).mult(2));
}
};
// Set solver parameters
optimizer.run();
RandomVariableInterface[] bestParameters = optimizer.getBestFitParameters();
System.out.println("The solver for problem 1 required " + optimizer.getIterations() + " iterations. The best fit parameters are:");
for (int i = 0; i < bestParameters.length; i++) System.out.println("\tparameter[" + i + "]: " + bestParameters[i]);
System.out.println("The solver accuracy is " + optimizer.getRootMeanSquaredError().getAverage());
}
}
|
[
"email@christian-fries.de"
] |
email@christian-fries.de
|
6e3018e4b10c7874179a9637ccfb9d318700194d
|
58ce44ff5fcc13be7876dd903e700b5be989ab19
|
/JavaWork/JSP19_AJAX/src/common/D.java
|
4407c66076a992cb81039baf734a0408820aebfc
|
[] |
no_license
|
binna/full-stack
|
eb78836414a8d60d5dc5e78f5abc57b9348af48d
|
9e6990e1ce7eff8a515603b1cd71b25660b40f80
|
refs/heads/main
| 2023-04-23T08:50:52.441080
| 2021-05-15T15:33:05
| 2021-05-15T15:33:05
| 320,798,523
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,299
|
java
|
package common;
/*
* DB 접속 정보, 쿼리문, 테이블명, 컬럼명 등은
* 별도로 관리하든지
* XML, 초기화 파라미터 등에서 관리하는 것이 좋다.
*/
public class D {
public static final String DRIVER = "oracle.jdbc.driver.OracleDriver"; // JDBC 드라이버 클래스
public static final String URL = "jdbc:oracle:thin:@localhost:1521:XE"; // DB 접속 URL
public static final String USERID = "scott0316"; // DB 접속 계정 정보
public static final String USERPW = "tiger0316";
public static final String SQL_WRITE_SELECT =
"SELECT * FROM test_write ORDER BY wr_uid DESC";
public static final String SQL_WRITE_INSERT = "INSERT INTO test_write " +
"(wr_uid, wr_subject, wr_content, wr_name) " +
"VALUES(test_write_seq.nextval, ?, ?, ?)";
public static final String SQL_WRITE_INC_VIEWCNT = // 조회수 증가
"UPDATE test_write SET wr_viewcnt = wr_viewcnt + 1 WHERE wr_uid = ?";
public static final String SQL_WRITE_SELECT_BY_UID = // 글 읽어 오기
"SELECT * FROM test_write WHERE wr_uid = ?";
public static final String SQL_WRITE_UPDATE =
"UPDATE test_write SET wr_subject = ?, wr_content = ? WHERE wr_uid = ?";
public static final String SQL_WRITE_DELETE_BY_UID =
"DELETE FROM test_write WHERE wr_uid = ?";
}
|
[
"every5116@naver.com"
] |
every5116@naver.com
|
9bd09a884a739a6050097bccc8a1d13c0d345194
|
17afcc3f70925b04e21ad214bdb1723adfb6405a
|
/LeetCode2018/MaximumSubarray/Solution2.java
|
bab377fe22ce610997829c84c5036b67de3169bf
|
[] |
no_license
|
wonderli/Solutions
|
a848eeda6ceb86e3be0c47ab34b426dea0282343
|
56e6b90cd1e7bca06ec5ee69a1a8d3257f99ed29
|
refs/heads/master
| 2022-11-06T17:03:29.667413
| 2022-10-24T18:18:47
| 2022-10-24T18:18:47
| 3,465,559
| 11
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 688
|
java
|
import java.util.*;
public class Solution2{
public int maxSubArray(int[] nums) {
if(nums == null || nums.length == 0) return 0;
int max = nums[0];
int maxCurrent = nums[0];
for(int i = 1; i < nums.length; i++){
maxCurrent = Math.max(maxCurrent + nums[i], nums[i]);
max = Math.max(max, maxCurrent);
}
return max;
}
public static void main(String args[]){
Solution2 sol = new Solution2();
}
}
class ListNode {
int val;
ListNode next;
ListNode(int x) { val = x; next = null; }
}
class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) { val = x; }
}
|
[
"lixinyu2268@gmail.com"
] |
lixinyu2268@gmail.com
|
2a1da8115546e1adf64dc7e32f2b3f1986e29581
|
b863479f00471986561c57291edb483fc5f4532c
|
/src/main/java/nom/bdezonia/zorbage/algebra/SetK.java
|
e37c83e7f2ea8ab0ada3d4b0539be1a742c66429
|
[] |
permissive
|
bdezonia/zorbage
|
6da6cbdc8f9fcb6cde89d39aca9687e2eee08c9b
|
651625e60b7d6ca9273ffc1a282b6a8af5c2d925
|
refs/heads/master
| 2023-09-01T08:32:59.157936
| 2023-08-08T00:57:18
| 2023-08-08T00:57:18
| 74,696,586
| 11
| 0
|
BSD-2-Clause
| 2020-11-09T03:01:42
| 2016-11-24T18:24:55
|
Java
|
UTF-8
|
Java
| false
| false
| 1,749
|
java
|
/*
* Zorbage: an algebraic data hierarchy for use in numeric processing.
*
* Copyright (c) 2016-2022 Barry DeZonia All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list
* of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice, this
* list of conditions and the following disclaimer in the documentation and/or other
* materials provided with the distribution.
*
* Neither the name of the <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 <COPYRIGHT HOLDER> 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 nom.bdezonia.zorbage.algebra;
/**
*
* @author Barry DeZonia
*
*/
public interface SetK<U>
{
void setK(U val);
}
|
[
"bdezonia@gmail.com"
] |
bdezonia@gmail.com
|
3461e5193e94f146c58c13dcca7ae7408ba8103a
|
a03ddb4111faca852088ea25738bc8b3657e7b5c
|
/TestTransit/src/jp/co/yahoo/android/apps/transit/SearchResultListActivity$7.java
|
033733bd56d04660721586150a3dfc3658bc9b90
|
[] |
no_license
|
randhika/TestMM
|
5f0de3aee77b45ca00f59cac227450e79abc801f
|
4278b34cfe421bcfb8c4e218981069a7d7505628
|
refs/heads/master
| 2020-12-26T20:48:28.446555
| 2014-09-29T14:37:51
| 2014-09-29T14:37:51
| 24,874,176
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,518
|
java
|
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package jp.co.yahoo.android.apps.transit;
import android.content.res.Resources;
import android.view.View;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.HashMap;
import jp.co.yahoo.android.apps.transit.api.data.ConditionData;
import jp.co.yahoo.android.apps.transit.api.data.NaviSearchData;
// Referenced classes of package jp.co.yahoo.android.apps.transit:
// SearchResultListActivity
class this._cls0
implements android.view.esultListActivity._cls7
{
final SearchResultListActivity this$0;
public void onClick(View view)
{
touchTapRD(getString(0x7f0d03c2));
SearchResultListActivity.access$502(SearchResultListActivity.this, (ConditionData)SearchResultListActivity.access$400(SearchResultListActivity.this).clone());
SearchResultListActivity.access$500(SearchResultListActivity.this).mtf = -1;
HashMap hashmap = SearchResultListActivity.access$1300(SearchResultListActivity.this).points;
ArrayList arraylist = SearchResultListActivity.access$1300(SearchResultListActivity.this).routes;
ArrayList arraylist1 = ((jp.co.yahoo.android.apps.transit.api.data.a)arraylist.get(0)).edges;
jp.co.yahoo.android.apps.transit.api.data.a a = (jp.co.yahoo.android.apps.transit.api.data.a)hashmap.get(((jp.co.yahoo.android.apps.transit.api.data.a)arraylist1.get(0)).intTarget);
SearchResultListActivity.access$500(SearchResultListActivity.this).startName = a.stationName;
SearchResultListActivity.access$500(SearchResultListActivity.this).startCode = "";
jp.co.yahoo.android.apps.transit.api.data.a a1 = (jp.co.yahoo.android.apps.transit.api.data.a)hashmap.get(((jp.co.yahoo.android.apps.transit.api.data.a)arraylist1.get(-1 + arraylist1.size())).intTarget);
SearchResultListActivity.access$500(SearchResultListActivity.this).goalName = a1.stationName;
SearchResultListActivity.access$500(SearchResultListActivity.this).goalCode = "";
String s = ((jp.co.yahoo.android.apps.transit.api.data.a)arraylist.get(0)).startTime;
int i = Integer.parseInt(s.substring(0, 4));
int j = Integer.parseInt(s.substring(4, 6));
int k = Integer.parseInt(s.substring(6, 8));
int l = Integer.parseInt(s.substring(8, 10));
int i1 = Integer.parseInt(s.substring(10));
GregorianCalendar gregoriancalendar = new GregorianCalendar(i, j - 1, k, l, i1);
gregoriancalendar.add(12, 1);
SearchResultListActivity.access$500(SearchResultListActivity.this).year = gregoriancalendar.get(1);
SearchResultListActivity.access$500(SearchResultListActivity.this).month = 1 + gregoriancalendar.get(2);
SearchResultListActivity.access$500(SearchResultListActivity.this).day = gregoriancalendar.get(5);
SearchResultListActivity.access$500(SearchResultListActivity.this).hour = gregoriancalendar.get(11);
SearchResultListActivity.access$500(SearchResultListActivity.this).minite = gregoriancalendar.get(12);
if (SearchResultListActivity.access$1400(SearchResultListActivity.this) != null)
{
SearchResultListActivity.access$500(SearchResultListActivity.this).startLat = SearchResultListActivity.access$1400(SearchResultListActivity.this).lat;
SearchResultListActivity.access$500(SearchResultListActivity.this).startLon = SearchResultListActivity.access$1400(SearchResultListActivity.this).lon;
}
if (SearchResultListActivity.access$1500(SearchResultListActivity.this) != null)
{
SearchResultListActivity.access$500(SearchResultListActivity.this).goalLat = SearchResultListActivity.access$1500(SearchResultListActivity.this).lat;
SearchResultListActivity.access$500(SearchResultListActivity.this).goalLon = SearchResultListActivity.access$1500(SearchResultListActivity.this).lon;
}
SearchResultListActivity.access$500(SearchResultListActivity.this).type = getResources().getInteger(0x7f0c0070);
SearchResultListActivity.access$500(SearchResultListActivity.this).afterFinal = true;
SearchResultListActivity.access$500(SearchResultListActivity.this).midnightBus = true;
search();
}
iPointData()
{
this$0 = SearchResultListActivity.this;
super();
}
}
|
[
"metromancn@gmail.com"
] |
metromancn@gmail.com
|
309707bf36aad59f08bca90a8bfefddd474e58d5
|
bd69661f67730b2cc05083489dc9b394f5619c57
|
/SpiderX/src/perfer/org/apache/http/auth/AuthProtocolState.java
|
5a466358999d79b7f5f30f062b8162d5dd5d997c
|
[] |
no_license
|
WoYang/WebSpiderAndroid
|
6292763823fe5792b542e6b1e60264267337a068
|
4a5f713bf97fa3f6f3242bd19750afd78c562887
|
refs/heads/master
| 2021-01-12T10:53:42.601043
| 2018-11-12T08:55:51
| 2018-11-12T08:55:51
| 72,708,475
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,349
|
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.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
package perfer.org.apache.http.auth;
public enum AuthProtocolState {
UNCHALLENGED, CHALLENGED, HANDSHAKE, FAILURE, SUCCESS
}
|
[
"564477645@qq.com"
] |
564477645@qq.com
|
f9b410aa985916c04ebe4697874a19e1a73af924
|
e1e5bd6b116e71a60040ec1e1642289217d527b0
|
/Interlude/L2jFrozen_15/L2jFrozen_15_Revision_1596/L2jFrozen_15/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/SpecialXMas.java
|
9e96aaf4fb18791fb9313bc1b4c5d27a1dc54590
|
[] |
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
| 1,378
|
java
|
package com.l2jfrozen.gameserver.handler.itemhandlers;
import com.l2jfrozen.gameserver.handler.IItemHandler;
import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance;
import com.l2jfrozen.gameserver.network.serverpackets.ActionFailed;
import com.l2jfrozen.gameserver.network.serverpackets.ShowXMasSeal;
/**
* @author devScarlet & mrTJO
*/
public class SpecialXMas implements IItemHandler
{
private static int[] itemIds =
{
5555
};
@Override
public void useItem(final L2PlayableInstance playable, final L2ItemInstance item)
{
if (!(playable instanceof L2PcInstance))
{
return;
}
L2PcInstance activeChar = (L2PcInstance) playable;
final int itemId = item.getItemId();
if (activeChar.isParalyzed())
{
activeChar.sendMessage("You Cannot Use This While You Are Paralyzed");
activeChar.sendPacket(ActionFailed.STATIC_PACKET);
return;
}
if (itemId == 5555) // Token of Love
{
ShowXMasSeal SXS = new ShowXMasSeal(5555);
activeChar.sendPacket(SXS);
// activeChar.broadcastPacket(SXS);
SXS = null;
}
activeChar = null;
}
/**
* @see com.l2jfrozen.gameserver.handler.IItemHandler#getItemIds()
*/
@Override
public int[] getItemIds()
{
return itemIds;
}
}
|
[
"64197706+L2jOpenSource@users.noreply.github.com"
] |
64197706+L2jOpenSource@users.noreply.github.com
|
323eb3d08cd81644aaf1fda636fd847f9d17fff7
|
b143675957e73c177c1d0f65804eae669ab13d22
|
/src/main/java/org/onvif/ver20/media/wsdl/SetAudioEncoderConfiguration.java
|
4bc174ea49e0d10355d06b9d5cc857beab9ef187
|
[
"MIT"
] |
permissive
|
JoshLikesBeer/onvifjava
|
18e694730d8dafce9777cf511732bc4f2e3557c1
|
eee958bcc77c08e9e81dd31b84aeda346497f993
|
refs/heads/master
| 2020-03-17T18:45:50.895272
| 2019-09-16T15:39:49
| 2019-09-16T15:39:49
| 133,832,410
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,185
|
java
|
//
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-2 generiert
// Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// �nderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
// Generiert: 2016.02.05 um 06:25:30 PM CET
//
package org.onvif.ver20.media.wsdl;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.onvif.ver10.schema.AudioEncoder2Configuration;
/**
* <p>Java-Klasse f�r anonymous complex type.
*
* <p>Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Configuration" type="{http://www.onvif.org/ver10/schema}AudioEncoder2Configuration"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"configuration"
})
@XmlRootElement(name = "SetAudioEncoderConfiguration")
public class SetAudioEncoderConfiguration {
@XmlElement(name = "Configuration", required = true)
protected AudioEncoder2Configuration configuration;
/**
* Ruft den Wert der configuration-Eigenschaft ab.
*
* @return
* possible object is
* {@link AudioEncoder2Configuration }
*
*/
public AudioEncoder2Configuration getConfiguration() {
return configuration;
}
/**
* Legt den Wert der configuration-Eigenschaft fest.
*
* @param value
* allowed object is
* {@link AudioEncoder2Configuration }
*
*/
public void setConfiguration(AudioEncoder2Configuration value) {
this.configuration = value;
}
}
|
[
"dmitry.druzhynin@gmail.com"
] |
dmitry.druzhynin@gmail.com
|
d2351c8f931e61048c7c1bbb41bf8f893f7b41a8
|
0721305fd9b1c643a7687b6382dccc56a82a2dad
|
/src/app.zenly.locator_4.8.0_base_source_from_JADX/sources/com/google/android/gms/common/internal/safeparcel/C10135b.java
|
168af3d1b66125b06d4456e1ad5d42ee4a1c9f11
|
[] |
no_license
|
a2en/Zenly_re
|
09c635ad886c8285f70a8292ae4f74167a4ad620
|
f87af0c2dd0bc14fd772c69d5bc70cd8aa727516
|
refs/heads/master
| 2020-12-13T17:07:11.442473
| 2020-01-17T04:32:44
| 2020-01-17T04:32:44
| 234,470,083
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,026
|
java
|
package com.google.android.gms.common.internal.safeparcel;
import android.content.Intent;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import com.google.android.gms.common.internal.C10123l;
/* renamed from: com.google.android.gms.common.internal.safeparcel.b */
public final class C10135b {
/* renamed from: a */
public static <T extends SafeParcelable> T m25599a(byte[] bArr, Creator<T> creator) {
C10123l.m25505a(creator);
Parcel obtain = Parcel.obtain();
obtain.unmarshall(bArr, 0, bArr.length);
obtain.setDataPosition(0);
T t = (SafeParcelable) creator.createFromParcel(obtain);
obtain.recycle();
return t;
}
/* renamed from: a */
public static <T extends SafeParcelable> T m25598a(Intent intent, String str, Creator<T> creator) {
byte[] byteArrayExtra = intent.getByteArrayExtra(str);
if (byteArrayExtra == null) {
return null;
}
return m25599a(byteArrayExtra, creator);
}
}
|
[
"developer@appzoc.com"
] |
developer@appzoc.com
|
75a12564c763fbbdce0af1a67ddb1159c3deb48e
|
d1dea6217a38ff6f92bc955504a82d8da62d49c2
|
/CodingQuestions/src/Geeks/DP/QuestionTill30/Q020_LongestIncreasingPathFourMovesAllow.java
|
b8a0c66162695e658ba4768f0f17fbac2930bc47
|
[] |
no_license
|
rajneeshkumar146/java_workspace
|
fbdf12d0a8f8a99f6a800d3a9fa37dac9ec81ac5
|
f77fbbb82dccbb3762fd27618dd366388724cf9b
|
refs/heads/master
| 2020-03-31T04:51:22.151046
| 2018-10-27T11:54:20
| 2018-10-27T11:54:20
| 151,922,604
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,642
|
java
|
package Geeks.DP;
import java.util.Scanner;
public class Q020_LongestIncreasingPathFourMovesAllow {
public static Scanner scn = new Scanner(System.in);
public static void main(String[] args) throws Exception {
solve();
}
public static void solve() throws Exception {
int mat[][] = { { 1, 2, 9 }, { 5, 3, 8 }, { 4, 6, 7 } };
LongestIncreasingPath(mat);
}
public static void LongestIncreasingPath(int[][] mat) {
int[][] strg = new int[mat.length][mat[0].length];
int max = 0;
for (int i = 0; i < mat.length; i++) {
for (int j = 0; j < mat[0].length; j++) {
if (mat[i][j] != 0) {
max = Math.max(max, LIP(mat, i, j, strg));
}
}
}
System.out.println(max);
displayMatrix(strg);
}
private static int LIP(int[][] mat, int i, int j, int[][] strg) {
if (i > mat.length || j > mat[0].length || i < 0 || j < 0) {
return 0;
}
if (strg[i][j] != 0) {
return strg[i][j];
}
int[][] dirc = { { 1, 0 }, { 0, 1 }, { -1, 0 }, { 0, -1 } };
int max = 0;
for (int dir = 0; dir < dirc.length; dir++) {
int x = i + 1 * dirc[dir][0];
int y = j + 1 * dirc[dir][1];
if (isValid(mat, i, j, x, y)) {
max = Math.max(LIP(mat, x, y, strg), max);
}
}
strg[i][j] = max + 1;
return strg[i][j];
}
private static boolean isValid(int[][] mat, int i, int j, int x, int y) {
if (x >= mat.length || y >= mat[0].length || x < 0 || y < 0 || mat[x][y] - mat[i][j] != 1) {
return false;
}
return true;
}
private static void displayMatrix(int[][] arr) {
for (int[] i : arr) {
for (int el : i) {
System.out.print(el + " ");
}
System.out.println();
}
}
}
|
[
"rajneeshkumar146@gmail.com"
] |
rajneeshkumar146@gmail.com
|
dd7c3f1b1b15e3c0a5a88b86e172f1fd83a9de24
|
062ab1db4c39e994610e937d66acc45acd74982a
|
/com/sygic/aura/settings/preferences/VideoQualityPreference.java
|
24bd00519ebd88cbdb4a056870d9d97595f1896d
|
[] |
no_license
|
Ravinther/Navigation
|
838804535c86e664258b83d958f39b1994e8311b
|
7dd6a07aea47aafe616b2f7e58a8012bef9899a1
|
refs/heads/master
| 2021-01-20T18:15:10.681957
| 2016-08-16T01:12:57
| 2016-08-16T01:12:57
| 65,776,099
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,675
|
java
|
package com.sygic.aura.settings.preferences;
import android.content.Context;
import android.media.CamcorderProfile;
import android.os.Build.VERSION;
import android.util.AttributeSet;
import com.sygic.aura.blackbox.fragment.BlackBoxFragment;
import com.sygic.aura.utils.Pair;
import java.util.ArrayList;
import java.util.List;
public class VideoQualityPreference extends SummaryListPreference {
public VideoQualityPreference(Context context) {
super(context);
init();
}
public VideoQualityPreference(Context context, AttributeSet attrs) {
super(context, attrs);
init();
}
private void init() {
List<String> entries = new ArrayList();
List<String> values = new ArrayList();
for (Pair<Integer, String> quality : getQualitySettings()) {
if (CamcorderProfile.hasProfile(((Integer) quality.getFirst()).intValue())) {
entries.add(getProfileDescription((String) quality.getSecond(), CamcorderProfile.get(((Integer) quality.getFirst()).intValue())));
values.add(String.valueOf(quality.getFirst()));
}
}
setEntries((CharSequence[]) entries.toArray(new String[entries.size()]));
setEntryValues((CharSequence[]) values.toArray(new String[values.size()]));
if (getValue() == null) {
setValue(String.valueOf(BlackBoxFragment.getQuality(BlackBoxFragment.getCameraId(), -1)));
}
}
private List<Pair<Integer, String>> getQualitySettings() {
List<Pair<Integer, String>> result = new ArrayList();
result.add(new Pair(Integer.valueOf(2), "QCIF"));
if (VERSION.SDK_INT >= 15) {
result.add(new Pair(Integer.valueOf(7), "QVGA"));
}
result.add(new Pair(Integer.valueOf(4), "SD"));
result.add(new Pair(Integer.valueOf(5), "HD"));
result.add(new Pair(Integer.valueOf(6), "Full HD"));
if (VERSION.SDK_INT >= 21) {
result.add(new Pair(Integer.valueOf(8), "UltraHD"));
}
return result;
}
protected boolean persistString(String value) {
return value != null && persistInt(Integer.valueOf(value).intValue());
}
protected String getPersistedString(String defaultReturnValue) {
if (getSharedPreferences().contains(getKey())) {
return String.valueOf(getPersistedInt(0));
}
return defaultReturnValue;
}
private String getProfileDescription(String name, CamcorderProfile profile) {
return String.format("%s (%dx%d)", new Object[]{name, Integer.valueOf(profile.videoFrameWidth), Integer.valueOf(profile.videoFrameHeight)});
}
}
|
[
"m.ravinther@yahoo.com"
] |
m.ravinther@yahoo.com
|
6cb8282fdbf4e5626b4128d9eeed29f5bdaa415c
|
d4a2dd890ff8c57dbcb42e7a6b54f85ddbca6ef2
|
/src/main/java/com/diviso/graeshoppe/repository/CategoryRepository.java
|
490093fc1276a1651086028dec2aeac813d367fc
|
[] |
no_license
|
DivisoSofttech/product
|
1610ac98261f2620873328e4ae61244a02c0b89a
|
a292b541d21c4b92a212b924656118064fc4229b
|
refs/heads/master
| 2020-05-14T15:04:44.359823
| 2019-07-24T09:44:36
| 2019-07-24T09:44:36
| 181,833,447
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 370
|
java
|
package com.diviso.graeshoppe.repository;
import com.diviso.graeshoppe.domain.Category;
import org.springframework.data.jpa.repository.*;
import org.springframework.stereotype.Repository;
/**
* Spring Data repository for the Category entity.
*/
@SuppressWarnings("unused")
@Repository
public interface CategoryRepository extends JpaRepository<Category, Long> {
}
|
[
"maya.k.k@lxisoft.com"
] |
maya.k.k@lxisoft.com
|
b71eff7a6e78ca577a0f58acdce6cec4ac6b0ad6
|
307ca1f40a1d6a99ff2c2cebeb4d176d4a5d0b59
|
/ppss/src/com/ppss/controller/FrameController.java
|
6b0f8c7895d248bb30d740ac689e6968bb8c1ea0
|
[] |
no_license
|
DavidLei08/ppss_copy
|
7d00f931aaab55dfdd209e88c1464a350ec03f15
|
f15b37c6689a24d87f11586a06387c3cd88589e1
|
refs/heads/master
| 2020-12-01T16:47:37.783860
| 2019-05-17T06:53:36
| 2019-05-17T06:53:36
| 230,702,344
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,006
|
java
|
package com.ppss.controller;
import java.util.List;
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 com.ppss.model.MedicineModel;
import com.ppss.service.MedicineService;
import com.ppss.utils.DateTimeUtils;
/**
* 框架集前端控制
*
* @author ZXM
*
*/
@RequestMapping(value = "frame")
@Controller
public class FrameController {
@Autowired
private MedicineService medicineService;
/**
* 管理员菜单页
*
* @return
*/
@RequestMapping(value = "managermenu")
public String ManagerMenu(Model model) {
// 取出库存不足的药品记录
List<MedicineModel> medicineList = medicineService.findNotEnoughMedicine();
// 记录条数取得
int size = medicineList.size();
// 初始化警告信息
String warnMessage = "";
// 判空处理
if (size > 0) {
// 设定警告信息
warnMessage = "" + size;
}
// 信息存入
model.addAttribute("warnMessage", warnMessage);
return "managermenu";
}
@RequestMapping(value = "/warninfo", method = RequestMethod.GET)
public String warnInfo(Model model) {
// 取出库存不足的药品记录
List<MedicineModel> medicineList = medicineService.findNotEnoughMedicine();
model.addAttribute("medicineList", medicineList);
return "medicinewarninfo";
}
/**
* 普通用户菜单页
*
* @return
*/
@RequestMapping(value = "simplemenu")
public String SimpleMenu() {
return "simplemenu";
}
/**
* 初始化欢迎页
*
* @param model
* @return
*/
@RequestMapping("init")
public String PageInit(Model model) {
model.addAttribute("dayScope", DateTimeUtils.getDayScope());
model.addAttribute("dateTime", DateTimeUtils.getDateTimeStr());
return "init";
}
}
|
[
"you@example.com"
] |
you@example.com
|
ab323ae2d1713627e3dad11491960ed45f21b821
|
217d96db536ff284fc1b168bf640104f00ba1ad5
|
/deprecated/org.rifidi.designer.rcp/src/org/rifidi/designer/rcp/handlers/view3d/ToggleGridHandler.java
|
0d58d2b016575bf8647d8a7a2e6641e0842ce5b4
|
[] |
no_license
|
TranscendsLLC/emulator
|
d5b94965b8ebd894707c093334c51aabf30d0075
|
a46c42cd2e86aafc213df7585dc923895a589446
|
refs/heads/master
| 2021-01-14T12:31:10.876450
| 2010-10-01T21:28:07
| 2010-10-01T21:28:07
| 43,608,652
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,170
|
java
|
/*
* NewSceneDataHandler.java
*
* Project: RiFidi Designer - A Virtualization tool for 3D RFID environments
* http://www.rifidi.org
* http://rifidi.sourceforge.net
* Copyright: Pramari LLC and the Rifidi Project
* License: Lesser GNU Public License (LGPL)
* http://www.opensource.org/licenses/lgpl-license.html
*/
package org.rifidi.designer.rcp.handlers.view3d;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.ui.PlatformUI;
import org.rifidi.designer.rcp.views.view3d.View3D;
/**
* Handler for enableing/disabling the overlay grid.
*
* @author Jochen Mader - jochen@pramari.com - Feb 17, 2008
*
*/
public class ToggleGridHandler extends AbstractHandler {
/*
* (non-Javadoc)
*
* @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
*/
@Override
public Object execute(ExecutionEvent arg0) throws ExecutionException {
((View3D) PlatformUI.getWorkbench().getActiveWorkbenchWindow()
.getActivePage().findView(View3D.ID)).toggleGrid();
return null;
}
}
|
[
"jochen@70ba6d20-ffbb-44b8-b480-e27427137dba"
] |
jochen@70ba6d20-ffbb-44b8-b480-e27427137dba
|
094be27d3bae7f353d0e8953f3775fe5bbaa3cef
|
c159f53e6cf8f1b12625b61c2a5cc7d891cc9ca2
|
/src/main/java/de/uni/bielefeld/sc/hterhors/psink/obie/projects/scio/ie/baselines/slotfilling/ComputeRandomBaseline.java
|
d91b9798cb69be3077fe1142d3c622c50372a0f8
|
[
"Apache-2.0"
] |
permissive
|
ag-sc/SpinalCordInjuryOBIE
|
42b778eee39a0bd57e2b75616436b4553ac1a530
|
7745c73b6ddc66c921fbc5de8ca55cb045e0c195
|
refs/heads/master
| 2022-10-03T21:59:54.827880
| 2019-03-29T11:16:38
| 2019-03-29T11:16:38
| 156,360,172
| 1
| 1
|
Apache-2.0
| 2022-09-01T22:59:29
| 2018-11-06T09:38:56
|
Java
|
UTF-8
|
Java
| false
| false
| 2,568
|
java
|
package de.uni.bielefeld.sc.hterhors.psink.obie.projects.scio.ie.baselines.slotfilling;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
import de.hterhors.obie.core.evaluation.PRF1;
import de.hterhors.obie.core.ontology.OntologyInitializer;
import de.hterhors.obie.ml.run.AbstractOBIERunner;
import de.hterhors.obie.ml.run.DefaultSlotFillingRunner;
import de.hterhors.obie.ml.run.param.RunParameter;
import de.hterhors.obie.ml.tools.baseline.RandomBaseline;
import de.uni.bielefeld.sc.hterhors.psink.obie.projects.scio.ie.environments.OntologyEnvironment;
import de.uni.bielefeld.sc.hterhors.psink.obie.projects.scio.ie.run.parameter.SCIOParameterQuickAccess;
import de.uni.bielefeld.sc.hterhors.psink.obie.projects.scio.ontology.interfaces.IInjury;
import de.uni.bielefeld.sc.hterhors.psink.obie.projects.scio.ontology.interfaces.IInvestigationMethod;
import de.uni.bielefeld.sc.hterhors.psink.obie.projects.scio.ontology.interfaces.IOrganismModel;
import de.uni.bielefeld.sc.hterhors.psink.obie.projects.scio.ontology.interfaces.ISCIOThing;
import de.uni.bielefeld.sc.hterhors.psink.obie.projects.scio.ontology.interfaces.ITreatment;
public class ComputeRandomBaseline {
public static void main(String[] args) throws Exception {
OntologyInitializer.initializeOntology(OntologyEnvironment.getInstance());
List<Class<? extends ISCIOThing>> searchTypes = Arrays.asList(IOrganismModel.class, IInjury.class,
IInvestigationMethod.class, ITreatment.class);
for (Class<? extends ISCIOThing> class1 : searchTypes) {
nTimesValidation(class1, 100);
}
}
private static void nTimesValidation(Class<? extends ISCIOThing> class1, final int n) throws Exception {
PRF1 mean = new PRF1(0, 0, 0);
long allTime = System.currentTimeMillis();
RunParameter param = SCIOParameterQuickAccess.getREParameter("", false, class1, false).build();
AbstractOBIERunner runner = new DefaultSlotFillingRunner(param);
final long initSeed = 100L;
Random r = new Random(initSeed);
System.out.println("#############################");
for (int i = 0; i < n; i++) {
long seed = r.nextLong();
long time = System.currentTimeMillis();
PRF1 prf1 = new RandomBaseline(param, seed).run(runner.corpusProvider.getFullCorpus());
mean.add(prf1);
// System.out.println("Time needed: " + (System.currentTimeMillis() - time));
}
System.out.println(class1.getSimpleName()+"\t"+mean);
// System.out.println("Time needed: " + (System.currentTimeMillis() - allTime));
System.out.println("#############################");
}
}
|
[
"hterhors@techfak.uni-bielefeld.de"
] |
hterhors@techfak.uni-bielefeld.de
|
1eec7190de6144932edc57f076f837da23f3b1a4
|
0e55a1aff4e191ffdd4a15217fbb878a6625c802
|
/src/test/java/java_class/OOP/Vehicles/Car.java
|
7be4f7fcd49b9b9c329cf09df20af2800241a83d
|
[] |
no_license
|
ridvanceko/Java-All-Folders
|
0ca38d4f7038090edd4be4c0128f91582de19eff
|
09f28bddca087e31e2f6f032b6d5a1f2a02aac12
|
refs/heads/main
| 2023-03-10T01:47:01.876335
| 2021-02-28T19:22:34
| 2021-02-28T19:22:34
| 325,149,426
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,478
|
java
|
package OOP.Vehicles;
public class Car extends Vehicle {
String model;
double engineSize;
public Car(String model, String brand, int year) {
super(model, brand, year);
// it is calls the constructor from parent class
//it should be in the first line
}
@Override
public void drive() {
System.out.println("Car is moving");
}
//check what is Autoboxing!!!!
//casting with explicite and inplicite
public Integer accelerate() {
System.out.println(super.model + " is the car");
return 10;
}
public boolean stop() {
System.out.println("Car is stopping");
return false;
}
public long transmission() {
return 5;
}
public static void main(String[] args) {
Vehicle vehicle = new Vehicle("Corolla", "Toyota", 2018);
vehicle.accelerate();
System.out.println(vehicle.model);
Car car = new Car("Accord", "Honda", 2012);
car.accelerate();
System.out.println(car.model);
// System.out.println(super.model); super can not work with static
}
}
/*
- Car
* extends the Vehicle
- Create one String Model;
- Create one engine type;
- Override the drive method from the parent class and print 'Car is moving'
- Override the accelerate() method from parent class and returns the Integer
and calls the Model of the vehicle from Parent class.
*/
|
[
"ridvanceko@gmail.com"
] |
ridvanceko@gmail.com
|
37282b5555c5493b2f90c0bc590c63cadb8c33c5
|
327d615dbf9e4dd902193b5cd7684dfd789a76b1
|
/base_source_from_JADX/sources/com/google/android/gms/internal/ads/zzdjf.java
|
2d7e6323e2360506da57730677808d679722a4e3
|
[] |
no_license
|
dnosauro/singcie
|
e53ce4c124cfb311e0ffafd55b58c840d462e96f
|
34d09c2e2b3497dd452246b76646b3571a18a100
|
refs/heads/main
| 2023-01-13T23:17:49.094499
| 2020-11-20T10:46:19
| 2020-11-20T10:46:19
| 314,513,307
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,990
|
java
|
package com.google.android.gms.internal.ads;
import android.content.Context;
import android.os.Bundle;
import com.google.android.gms.ads.internal.overlay.zzl;
import com.google.android.gms.ads.internal.overlay.zzp;
import com.google.android.gms.ads.internal.util.zzd;
import com.google.android.gms.ads.internal.util.zzm;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.dynamic.IObjectWrapper;
import java.util.concurrent.atomic.AtomicBoolean;
import javax.annotation.concurrent.GuardedBy;
public final class zzdjf extends zzxf implements zzp, zzsc {
private final String zzbum;
private final zzbgm zzgss;
private final Context zzgvn;
private AtomicBoolean zzhdd = new AtomicBoolean();
/* access modifiers changed from: private */
public final zzdir zzhdf;
@GuardedBy("this")
private zzbkv zzhdh;
private final zzdjd zzhec;
@GuardedBy("this")
private long zzhed = -1;
@GuardedBy("this")
protected zzblv zzhee;
public zzdjf(zzbgm zzbgm, Context context, String str, zzdjd zzdjd, zzdir zzdir) {
this.zzgss = zzbgm;
this.zzgvn = context;
this.zzbum = str;
this.zzhec = zzdjd;
this.zzhdf = zzdir;
zzdir.zza((zzp) this);
}
/* access modifiers changed from: private */
public final void zza(zzblv zzblv) {
zzblv.zza(this);
}
private final synchronized void zzeb(int i) {
if (this.zzhdd.compareAndSet(false, true)) {
this.zzhdf.onAdClosed();
if (this.zzhdh != null) {
com.google.android.gms.ads.internal.zzp.zzkt().zzb(this.zzhdh);
}
if (this.zzhee != null) {
long j = -1;
if (this.zzhed != -1) {
j = com.google.android.gms.ads.internal.zzp.zzkx().elapsedRealtime() - this.zzhed;
}
this.zzhee.zzb(j, i);
}
destroy();
}
}
public final synchronized void destroy() {
Preconditions.checkMainThread("destroy must be called on the main UI thread.");
if (this.zzhee != null) {
this.zzhee.destroy();
}
}
public final Bundle getAdMetadata() {
return new Bundle();
}
public final synchronized String getAdUnitId() {
return this.zzbum;
}
public final synchronized String getMediationAdapterClassName() {
return null;
}
public final synchronized zzys getVideoController() {
return null;
}
public final synchronized boolean isLoading() {
return this.zzhec.isLoading();
}
public final boolean isReady() {
return false;
}
public final void onPause() {
}
public final void onResume() {
}
public final synchronized void onUserLeaveHint() {
if (this.zzhee != null) {
this.zzhee.zzb(com.google.android.gms.ads.internal.zzp.zzkx().elapsedRealtime() - this.zzhed, zzblb.zzfsf);
}
}
public final synchronized void pause() {
Preconditions.checkMainThread("pause must be called on the main UI thread.");
}
public final synchronized void resume() {
Preconditions.checkMainThread("resume must be called on the main UI thread.");
}
public final void setImmersiveMode(boolean z) {
}
public final synchronized void setManualImpressionsEnabled(boolean z) {
}
public final void setUserId(String str) {
}
public final synchronized void showInterstitial() {
}
public final void stopLoading() {
}
public final void zza(zzl zzl) {
int i;
switch (zzdji.zzhef[zzl.ordinal()]) {
case 1:
i = zzblb.zzfsh;
break;
case 2:
i = zzblb.zzfsg;
break;
case 3:
i = zzblb.zzfsi;
break;
case 4:
zzeb(zzblb.zzfsk);
return;
default:
return;
}
zzeb(i);
}
public final synchronized void zza(zzaak zzaak) {
}
public final synchronized void zza(zzacb zzacb) {
}
public final void zza(zzart zzart) {
}
public final void zza(zzarz zzarz, String str) {
}
public final void zza(zzaup zzaup) {
}
public final void zza(zzsl zzsl) {
this.zzhdf.zzb(zzsl);
}
public final synchronized void zza(zzvn zzvn) {
Preconditions.checkMainThread("setAdSize must be called on the main UI thread.");
}
public final void zza(zzvw zzvw) {
this.zzhec.zza(zzvw);
}
public final void zza(zzws zzws) {
}
public final void zza(zzwt zzwt) {
}
public final void zza(zzxj zzxj) {
}
public final void zza(zzxo zzxo) {
}
public final synchronized void zza(zzxu zzxu) {
}
public final void zza(zzym zzym) {
}
public final void zza(zzyy zzyy) {
}
public final synchronized boolean zza(zzvk zzvk) {
Preconditions.checkMainThread("loadAd must be called on the main UI thread.");
com.google.android.gms.ads.internal.zzp.zzkq();
if (zzm.zzbb(this.zzgvn) && zzvk.zzchn == null) {
zzd.zzey("Failed to load the ad because app ID is missing.");
this.zzhdf.zzk(zzdoi.zza(zzdok.APP_ID_MISSING, (String) null, (zzve) null));
return false;
} else if (isLoading()) {
return false;
} else {
this.zzhdd = new AtomicBoolean();
return this.zzhec.zza(zzvk, this.zzbum, new zzdjg(this), new zzdjj(this));
}
}
/* access modifiers changed from: package-private */
public final /* synthetic */ void zzatw() {
this.zzgss.zzaek().execute(new zzdje(this));
}
/* access modifiers changed from: package-private */
public final /* synthetic */ void zzatx() {
zzeb(zzblb.zzfsj);
}
public final void zzbl(String str) {
}
public final IObjectWrapper zzkd() {
return null;
}
public final synchronized void zzke() {
}
public final synchronized zzvn zzkf() {
return null;
}
public final synchronized String zzkg() {
return null;
}
public final synchronized zzyn zzkh() {
return null;
}
public final zzxo zzki() {
return null;
}
public final zzwt zzkj() {
return null;
}
public final void zzms() {
zzeb(zzblb.zzfsh);
}
public final synchronized void zzux() {
if (this.zzhee != null) {
this.zzhed = com.google.android.gms.ads.internal.zzp.zzkx().elapsedRealtime();
int zzaip = this.zzhee.zzaip();
if (zzaip > 0) {
this.zzhdh = new zzbkv(this.zzgss.zzael(), com.google.android.gms.ads.internal.zzp.zzkx());
this.zzhdh.zza(zzaip, new zzdjh(this));
}
}
}
}
|
[
"dno_sauro@yahoo.it"
] |
dno_sauro@yahoo.it
|
aba551b81bf5a98905b99c86947c82cad49da860
|
15b103b9015e7d29d665bfac873cc16fa56a077a
|
/MJCompiler/src/rs/ac/bg/etf/pp1/ast/StmtDoWhile.java
|
bcbddfa18fb64cb5e4ea40804fc2e11efe080ece
|
[] |
no_license
|
urosisakovic/MicroJavaCompiler
|
d5bb50796b7bd79a9f29f2fcdc9324772dbb98b8
|
91147dd9d152f9aa48472ac491a9549731965973
|
refs/heads/master
| 2023-07-31T23:18:35.562179
| 2021-09-18T21:18:29
| 2021-09-18T21:18:29
| 405,446,132
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,839
|
java
|
// generated with ast extension for cup
// version 0.8
// 18/8/2021 23:12:44
package rs.ac.bg.etf.pp1.ast;
public class StmtDoWhile extends Statement {
private DoKw DoKw;
private StatementWhileBody StatementWhileBody;
private Condition Condition;
public StmtDoWhile (DoKw DoKw, StatementWhileBody StatementWhileBody, Condition Condition) {
this.DoKw=DoKw;
if(DoKw!=null) DoKw.setParent(this);
this.StatementWhileBody=StatementWhileBody;
if(StatementWhileBody!=null) StatementWhileBody.setParent(this);
this.Condition=Condition;
if(Condition!=null) Condition.setParent(this);
}
public DoKw getDoKw() {
return DoKw;
}
public void setDoKw(DoKw DoKw) {
this.DoKw=DoKw;
}
public StatementWhileBody getStatementWhileBody() {
return StatementWhileBody;
}
public void setStatementWhileBody(StatementWhileBody StatementWhileBody) {
this.StatementWhileBody=StatementWhileBody;
}
public Condition getCondition() {
return Condition;
}
public void setCondition(Condition Condition) {
this.Condition=Condition;
}
public void accept(Visitor visitor) {
visitor.visit(this);
}
public void childrenAccept(Visitor visitor) {
if(DoKw!=null) DoKw.accept(visitor);
if(StatementWhileBody!=null) StatementWhileBody.accept(visitor);
if(Condition!=null) Condition.accept(visitor);
}
public void traverseTopDown(Visitor visitor) {
accept(visitor);
if(DoKw!=null) DoKw.traverseTopDown(visitor);
if(StatementWhileBody!=null) StatementWhileBody.traverseTopDown(visitor);
if(Condition!=null) Condition.traverseTopDown(visitor);
}
public void traverseBottomUp(Visitor visitor) {
if(DoKw!=null) DoKw.traverseBottomUp(visitor);
if(StatementWhileBody!=null) StatementWhileBody.traverseBottomUp(visitor);
if(Condition!=null) Condition.traverseBottomUp(visitor);
accept(visitor);
}
public String toString(String tab) {
StringBuffer buffer=new StringBuffer();
buffer.append(tab);
buffer.append("StmtDoWhile(\n");
if(DoKw!=null)
buffer.append(DoKw.toString(" "+tab));
else
buffer.append(tab+" null");
buffer.append("\n");
if(StatementWhileBody!=null)
buffer.append(StatementWhileBody.toString(" "+tab));
else
buffer.append(tab+" null");
buffer.append("\n");
if(Condition!=null)
buffer.append(Condition.toString(" "+tab));
else
buffer.append(tab+" null");
buffer.append("\n");
buffer.append(tab);
buffer.append(") [StmtDoWhile]");
return buffer.toString();
}
}
|
[
"user@user.com"
] |
user@user.com
|
b6f7a3d630052acb610f9c1e13663c132d93074f
|
07490456008c59d78e549932164cbb4892512c23
|
/nsjp-persistencia/src/main/java/mx/gob/segob/nsjp/dao/forma/FormaDAO.java
|
0e5d2feffe443f9f6113d0a937b3d6b70098e752
|
[] |
no_license
|
RichichiDomotics/poder-judicial
|
80d713177aaa846c812a3822df53cd14b9e50871
|
a288862a3e50cfe6b943d5b353ccce5ed6e88e46
|
refs/heads/master
| 2016-09-06T21:52:39.734925
| 2015-03-28T06:02:59
| 2015-03-28T06:02:59
| 33,019,991
| 0
| 1
| null | null | null | null |
WINDOWS-1250
|
Java
| false
| false
| 2,287
|
java
|
/**
* Nombre del Programa : FormaDAO.java
* Autor : Emigdio Hernández
* Compania : Ultrasist
* Proyecto : NSJP Fecha: 30/05/2011
* Marca de cambio : N/A
* Descripcion General : Definición del objeto de acceso a datos para el catálogo de formas
* Programa Dependiente :N/A
* Programa Subsecuente :N/A
* Cond. de ejecucion :N/A
* Dias de ejecucion :N/A Horario: N/A
* MODIFICACIONES
*------------------------------------------------------------------------------
* Autor :N/A
* Compania :N/A
* Proyecto :N/A Fecha: N/A
* Modificacion :N/A
*------------------------------------------------------------------------------
*/
package mx.gob.segob.nsjp.dao.forma;
import java.util.List;
import mx.gob.segob.nsjp.comun.excepcion.NSJPNegocioException;
import mx.gob.segob.nsjp.dao.base.GenericDao;
import mx.gob.segob.nsjp.model.Forma;
/**
* Definición del objeto de acceso a datos para el catálogo de formas
* @author Emigdio Hernández
*
*/
public interface FormaDAO extends GenericDao<Forma, Long >{
/**
* Operación que realiza la funcionalidad de consultar las plantillas
* registradas en el sistema de acuerdo a un criterio de tipo de documento.
*
* @param tipoDocumento
* @return Devuelve un listado de plantillas, en caso contrario, regresa null.
*/
List<Forma> consultarFormaPlantilla(String tipoDocumento);
/**
* Consulta el inventario de formas disponibles en el sistema filtradas
* por cierto tipo de forma, si el tipo de forma enviado es 0 entonces
* no filtra los elementos
* @param tipoFormaId el tipo de forma a filtrar
* @return Listado de formas
*/
public List<Forma> consultarPlantillaPorTipo(Long tipoForma);
/**
* Consulta el inventario de formas disponibles en el sistema
* @return Listado de formas
*/
List<Forma> consultarFormasDisponibles();
/**
* Consulta una forma en base a su nombre
* @param nombreForma Nombre de la forma a buscar
* @return Forma encontrada, null si no se encuentra
*/
Forma consultarFormaPorNombre(String nombreForma);
}
|
[
"larryconther@gmail.com"
] |
larryconther@gmail.com
|
41c869ff001b5f5e8c29df2bda8b0eda50788b56
|
4777a0c394979a3786fb1d255ec4d815b2a1d2f3
|
/retail-goods/src/main/java/com/morning/star/retail/entity/CategoryLogEntity.java
|
812ee6d85722ba34f2b88c5ea534603b9a83715c
|
[] |
no_license
|
chaoren007/big-middle
|
0d98ea0ce7b2c892eb249dbbd116b4e0767686c5
|
29952ea01f0af89847286fa7d910640b1c83e3db
|
refs/heads/master
| 2022-12-15T13:29:44.555680
| 2019-07-29T08:47:03
| 2019-07-29T08:47:03
| 199,414,109
| 0
| 3
| null | 2022-12-10T03:18:29
| 2019-07-29T08:45:13
|
Java
|
UTF-8
|
Java
| false
| false
| 1,134
|
java
|
package com.morning.star.retail.entity;
import org.hibernate.annotations.Where;
import javax.persistence.*;
@Entity
@Table(name = "retail_category_log")
@Where(clause = "delete_flag <> 1")
public class CategoryLogEntity extends BaseEntity {
private static final long serialVersionUID = 3176858011720865431L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@Column
private Long categoryId;
@Column(length=64)
private String categoryName;
@Column(length=64)
private String storeCode;
@Column(length=64)
private String groupCode;
public String getStoreCode() {
return storeCode;
}
public void setStoreCode(String storeCode) {
this.storeCode = storeCode;
}
public String getGroupCode() {
return groupCode;
}
public void setGroupCode(String groupCode) {
this.groupCode = groupCode;
}
public Long getCategoryId() {
return categoryId;
}
public void setCategoryId(Long categoryId) {
this.categoryId = categoryId;
}
public String getCategoryName() {
return categoryName;
}
public void setCategoryName(String categoryName) {
this.categoryName = categoryName;
}
}
|
[
"liquorsea@163.com"
] |
liquorsea@163.com
|
086bd6531fb19cd262e48bf6499c4a1fcf87065c
|
cd00a18db7ee2e538319fee90b81b318a3e28652
|
/src/datastructures/share/variable/B.java
|
7606274a5b43e18f07ccb1c4a98b333a48ad4f17
|
[] |
no_license
|
GoodPineApple/AlgorithmStudy
|
cc6e7a708bf7eda4e5fdfcab21d0f983d37312ca
|
e5e0e217c9d086e9a707868cdc2c27a60a67af4e
|
refs/heads/master
| 2021-01-20T07:47:05.258425
| 2017-09-07T00:49:28
| 2017-09-07T00:49:28
| 89,543,862
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 321
|
java
|
package datastructures.share.variable;
/**
* Created by taemi on 2017-08-01.
*/
public class B {
public static void main(String[] args) {
A objectA = new A();
String c = objectA.methodC();
System.out.println(c);
String d = objectA.methodD(c);
System.out.println(d);
}
}
|
[
"taemin3000@naver.com"
] |
taemin3000@naver.com
|
5ba5b80fdde6537c0dee1b4292d115aaec0654a2
|
db49802b13906c7c2cb947b4f56b4ef4cfe04fd9
|
/webapp/cas-server-webapp-init-tomcat/src/main/java/org/apereo/cas/config/CasEmbeddedContainerTomcatConfiguration.java
|
bab89be87a0703ce195d43d7ed08f7b665d5823c
|
[
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
mac-reid/cas
|
82164a7e2105c180703743f51be1a6c7b7ef3daa
|
d02a22240b90301be41a2dce3bccd11f84633779
|
refs/heads/master
| 2022-06-20T05:16:40.010919
| 2022-04-29T03:03:10
| 2022-04-29T03:03:10
| 147,408,267
| 0
| 0
|
Apache-2.0
| 2018-09-04T20:04:23
| 2018-09-04T20:04:22
| null |
UTF-8
|
Java
| false
| false
| 2,507
|
java
|
package org.apereo.cas.config;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.configuration.support.CasFeatureModule;
import org.apereo.cas.tomcat.CasTomcatServletWebServerFactory;
import org.apereo.cas.tomcat.CasTomcatServletWebServerFactoryCustomizer;
import org.apereo.cas.util.spring.boot.ConditionalOnFeature;
import org.apache.catalina.startup.Tomcat;
import org.apache.coyote.http2.Http2Protocol;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigureOrder;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.web.ServerProperties;
import org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryAutoConfiguration;
import org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryCustomizer;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.core.Ordered;
/**
* This is {@link CasEmbeddedContainerTomcatConfiguration}.
*
* @author Misagh Moayyed
* @since 5.0.0
*/
@EnableConfigurationProperties(CasConfigurationProperties.class)
@ConditionalOnClass(value = {Tomcat.class, Http2Protocol.class})
@AutoConfigureOrder(Ordered.HIGHEST_PRECEDENCE)
@ConditionalOnFeature(feature = CasFeatureModule.FeatureCatalog.ApacheTomcat)
@AutoConfiguration(before = ServletWebServerFactoryAutoConfiguration.class)
public class CasEmbeddedContainerTomcatConfiguration {
@ConditionalOnMissingBean(name = "casServletWebServerFactory")
@Bean
public ConfigurableServletWebServerFactory casServletWebServerFactory(
final ServerProperties serverProperties,
final CasConfigurationProperties casProperties) {
return new CasTomcatServletWebServerFactory(casProperties, serverProperties);
}
@ConditionalOnMissingBean(name = "casTomcatEmbeddedServletContainerCustomizer")
@Bean
public ServletWebServerFactoryCustomizer casTomcatEmbeddedServletContainerCustomizer(
final ServerProperties serverProperties,
final CasConfigurationProperties casProperties) {
return new CasTomcatServletWebServerFactoryCustomizer(serverProperties, casProperties);
}
}
|
[
"mm1844@gmail.com"
] |
mm1844@gmail.com
|
de37133f182429a6498e1d0ca35d0b0c4fc44221
|
b1c827fca4c792578056ddef8502bd7c061b1aa6
|
/sample-games/game-sousse-craft/src/main/java/net/thevpc/gaming/atom/examples/soussecraft/main/dal/DALServer.java
|
efed2e9a727d2585253de73ff21efc70acdd2efc
|
[] |
no_license
|
thevpc/atom
|
df51b2d8deba535884ce8dccb21091452e6cb9a7
|
536f4efe9aa795bad84396cad7dd5533157ff66d
|
refs/heads/master
| 2022-10-07T22:11:24.331853
| 2022-09-23T15:38:27
| 2022-09-23T15:38:27
| 71,977,120
| 3
| 1
| null | 2020-10-13T04:45:16
| 2016-10-26T07:23:21
|
Java
|
UTF-8
|
Java
| false
| false
| 1,994
|
java
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package net.thevpc.gaming.atom.examples.soussecraft.main.dal;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import net.thevpc.gaming.atom.engine.SceneEngine;
import net.thevpc.gaming.atom.model.Sprite;
import net.thevpc.gaming.atom.examples.soussecraft.main.ModelTracker;
/**
*
* @author Taha Ben Salah
*/
public class DALServer {
private DALServerListener listener;
private DALServerRMIImpl rmi;
public DALServer(DALServerListener listener) {
this.listener = listener;
}
DALServerListener getListener() {
return listener;
}
public void start() {
new Thread(new Runnable() {
public void run() {
startAsync();
}
}).start();
}
private void startAsync() {
try {
Registry r = LocateRegistry.createRegistry(9999);
rmi = new DALServerRMIImpl(this);
r.bind("Server", rmi);
} catch (Exception e) {
e.printStackTrace();
}
}
public void gameStarted(SceneEngine model, ModelTracker modelTracker) {
rmi.gameStarted(convert(model,modelTracker));
}
public void modelChanged(SceneEngine model, ModelTracker modelTracker) {
rmi.modelChanged(convert(model,modelTracker));
}
private DalModel convert(SceneEngine model, ModelTracker t){
DalModel m=new DalModel();
m.setPlayersCount(model.getPlayers().size());
for (Sprite s : model.getSprites()) {
m.add(s);
}
// for (Sprite s : t.getAddedSprites().values()) {
// m.add(s);
// }
// for (Update s : t.getUpdatedSprites().values()) {
// m.update(s.getSprite());
// }
// for (Sprite sprite : t.getRemovedSprites().values()) {
// m.remove(sprite);
// }
return m;
}
}
|
[
"taha.bensalah@gmail.com"
] |
taha.bensalah@gmail.com
|
9145b951c2d992c28db1014e2cee04e1d2242840
|
97fd02f71b45aa235f917e79dd68b61c62b56c1c
|
/src/main/java/com/tencentcloudapi/monitor/v20180724/models/UpdateGrafanaConfigRequest.java
|
506d3cf95c88d440930f6fdf3ff489e3b44e3d95
|
[
"Apache-2.0"
] |
permissive
|
TencentCloud/tencentcloud-sdk-java
|
7df922f7c5826732e35edeab3320035e0cdfba05
|
09fa672d75e5ca33319a23fcd8b9ca3d2afab1ec
|
refs/heads/master
| 2023-09-04T10:51:57.854153
| 2023-09-01T03:21:09
| 2023-09-01T03:21:09
| 129,837,505
| 537
| 317
|
Apache-2.0
| 2023-09-13T02:42:03
| 2018-04-17T02:58:16
|
Java
|
UTF-8
|
Java
| false
| false
| 2,669
|
java
|
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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.tencentcloudapi.monitor.v20180724.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class UpdateGrafanaConfigRequest extends AbstractModel{
/**
* 实例 ID
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* JSON 编码后的字符串
*/
@SerializedName("Config")
@Expose
private String Config;
/**
* Get 实例 ID
* @return InstanceId 实例 ID
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set 实例 ID
* @param InstanceId 实例 ID
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get JSON 编码后的字符串
* @return Config JSON 编码后的字符串
*/
public String getConfig() {
return this.Config;
}
/**
* Set JSON 编码后的字符串
* @param Config JSON 编码后的字符串
*/
public void setConfig(String Config) {
this.Config = Config;
}
public UpdateGrafanaConfigRequest() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public UpdateGrafanaConfigRequest(UpdateGrafanaConfigRequest source) {
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.Config != null) {
this.Config = new String(source.Config);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap<String, String> map, String prefix) {
this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.setParamSimple(map, prefix + "Config", this.Config);
}
}
|
[
"tencentcloudapi@tencent.com"
] |
tencentcloudapi@tencent.com
|
060d54256b4c44b7fc673661abd54c72d53f46db
|
eb8a82730c3b004c638bed2c98682722e2863f86
|
/learning/learning/src/test/java/com/sklink/learning/dp/dpInRunoob/$14commandPattern/Broker.java
|
d057421b4694c655df5baa1a2009a01a1b0a0997
|
[] |
no_license
|
wendelhuang/learning
|
664791b3b6b317b2ebb42b7b8ecec042118b3e87
|
c19c5d07426193333ab87e5d324e803b92b83b94
|
refs/heads/master
| 2022-06-27T18:27:46.017847
| 2021-01-14T12:55:05
| 2021-01-14T12:55:05
| 171,136,008
| 0
| 0
| null | 2022-06-21T04:10:10
| 2019-02-17T15:08:52
|
Java
|
UTF-8
|
Java
| false
| false
| 354
|
java
|
package com.sklink.learning.dp.dpInRunoob.$14commandPattern;
import java.util.ArrayList;
import java.util.List;
public class Broker {
private List<Order> orders = new ArrayList<>();
public void takeOrder(Order order) {
orders.add(order);
}
public void placeOrder() {
for(Order order : orders) {
order.execute();
}
orders.clear();
}
}
|
[
"huangww@hsfund.com"
] |
huangww@hsfund.com
|
bf45eccd51e318bfddcb0f4dd11183ac6eeee772
|
1105eed0dfd8caaf29a3c479d2b910c9738eed1d
|
/ren-automation-tests/src/test/java/com/exigen/ren/modules/policy/gb_di_ltd/master/TestArchiveTransactionRulesMasterPolicy.java
|
3e02d41d912caf419844c173faa22f54a225ac84
|
[] |
no_license
|
NandiniDR29/123
|
3123d04b44f2b6c74b6c5c3c1c9c271a8028e520
|
22138c8dd8267270aca05d67a7ae8cec791abb81
|
refs/heads/master
| 2022-12-09T15:01:34.815286
| 2020-09-22T05:26:56
| 2020-09-22T05:26:56
| 297,538,529
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,047
|
java
|
package com.exigen.ren.modules.policy.gb_di_ltd.master;
import com.exigen.istf.utils.TestInfo;
import com.exigen.ren.main.modules.policy.common.GroupBenefitsMasterPolicyType;
import com.exigen.ren.main.modules.policy.gb_di_ltd.masterpolicy.LongTermDisabilityMasterPolicyContext;
import com.exigen.ren.modules.policy.scenarios.master.ScenarioTestArchiveTransactionRulesMasterPolicy;
import org.testng.annotations.Test;
import static com.exigen.ren.utils.components.Components.POLICY_GROUPBENEFITS;
import static com.exigen.ren.utils.groups.Groups.*;
public class TestArchiveTransactionRulesMasterPolicy extends ScenarioTestArchiveTransactionRulesMasterPolicy implements LongTermDisabilityMasterPolicyContext {
@Test(groups = {GB, GB_PRECONFIGURED, GB_DI_LTD, WITHOUT_TS, REGRESSION})
@TestInfo(testCaseId = "REN-28310", component = POLICY_GROUPBENEFITS)
public void testArchiveTransactionRulesForMp() {
super.testArchiveTransactionRulesForMP(GroupBenefitsMasterPolicyType.GB_DI_LTD, getDefaultLTDMasterPolicyData());
}
}
|
[
"NRamachandra@previseit.com"
] |
NRamachandra@previseit.com
|
8d72b31a003774e79228470f4c1fe0fb6cd76e5a
|
fe94bb01bbaf452ab1752cb3c1d1e4ecf297b9be
|
/src/main/java/com/opencart/extension/total/ModelExtensionTotalCouponServiceImpl.java
|
fae723a7279a32b2c8130af9444c773a7b6831e3
|
[] |
no_license
|
gmai2006/opencart
|
9d3b037f09294973112bafbadd22d5edd8457de5
|
dba44adabf4b8eab3bdb07062c887ba0a2a5405f
|
refs/heads/master
| 2020-12-31T06:13:33.113098
| 2018-01-24T07:35:45
| 2018-01-24T07:35:45
| 80,637,392
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,830
|
java
|
/*************************************************************************
*
* DATASCIENCE9 LLC CONFIDENTIAL
* __________________
*
* [2018] Datascience9 LLC
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Datascience9 LLC and its suppliers,
* if any. The intellectual and technical concepts contained
* herein are proprietary to Datascience9 LLC
* and its suppliers and may be covered by U.S. and Foreign Patents,
* patents in process, and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Datascience9 LLC.
* @author Paul Mai - Datascience9 LLC
*/
package com.opencart.extension.total;
import static java.util.Objects.requireNonNull;
import java.util.List;
import java.util.logging.Logger;
import javax.inject.Inject;
import com.opencart.entity.*;
import com.opencart.entity.dao.*;
/**
* auto generated from SQL
*/
public class ModelExtensionTotalCouponServiceImpl implements ModelExtensionTotalCouponService {
private final static Logger logger = Logger.getLogger(ModelExtensionTotalCouponServiceImpl.class.getName());
private ModelExtensionTotalCouponDao dao;
@Inject
protected ModelExtensionTotalCouponServiceImpl(final ModelExtensionTotalCouponDao rhs) {
requireNonNull(rhs);
this.dao = dao;
}
/**
source file name:java.math.BigInteger
*/
@Override
public java.math.BigInteger getCouponHistoryQuery(Integer coupon_id,Integer customer_id) {
logger.info("getCouponHistoryQuery - entered");
final java.math.BigInteger returnList = dao.getCouponHistoryQuery(coupon_id,customer_id);
logger.info(returnList.toString());
return returnList;
}
/**
source file name:OcCoupon
*/
@Override
public List<OcCoupon> getCouponQuery(String code) {
logger.info("getCouponQuery - entered");
final List<OcCoupon> returnList = dao.getCouponQuery(code);
logger.info(returnList.toString());
return returnList;
}
/**
source file name:java.math.BigInteger
*/
@Override
public java.math.BigInteger getCouponCategoryQuery(Integer product_id,Integer category_id) {
logger.info("getCouponCategoryQuery - entered");
final java.math.BigInteger returnList = dao.getCouponCategoryQuery(product_id,category_id);
logger.info(returnList.toString());
return returnList;
}
/**
source file name:OcCouponProduct
*/
@Override
public List<OcCouponProduct> getCouponProductQuery(Integer coupon_id) {
logger.info("getCouponProductQuery - entered");
final List<OcCouponProduct> returnList = dao.getCouponProductQuery(coupon_id);
logger.info(returnList.toString());
return returnList;
}
}
|
[
"gmai2006@gmail.com"
] |
gmai2006@gmail.com
|
8a4a630f3cb3857971dcd9ece64aab0475ff76e0
|
d0a035af319f5ed43047defc1804980cdf3469aa
|
/azkarra-api/src/main/java/io/streamthoughts/azkarra/api/AzkarraVersion.java
|
06af94a388672a78726cc9e565f3e580fbb40091
|
[
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
streamthoughts/azkarra-streams
|
43f9d742081818a4349d0a54403255ac4db7ac11
|
a485a42f520f1d86919da4f1ba8d752dac037940
|
refs/heads/master
| 2023-01-05T21:27:15.555160
| 2022-01-04T16:33:45
| 2022-01-06T13:21:22
| 224,235,390
| 186
| 26
|
Apache-2.0
| 2023-01-05T01:50:51
| 2019-11-26T16:18:45
|
HTML
|
UTF-8
|
Java
| false
| false
| 2,071
|
java
|
/*
* Copyright 2019-2020 StreamThoughts.
*
* 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 io.streamthoughts.azkarra.api;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Properties;
/**
* A {@link AzkarraVersion} is used to get version information about the running azkarra library.
*/
public class AzkarraVersion {
private static final Logger LOG = LoggerFactory.getLogger(AzkarraVersion.class);
private static String version = "unknown";
private static String gitBranch = "unknown";
private static String gitCommitId = "unknown";
static {
try {
Properties props = new Properties();
props.load(AzkarraVersion.class.getResourceAsStream("/azkarra-version.properties"));
version = props.getProperty("version", version).trim();
gitBranch = props.getProperty("git.branch", gitBranch).trim();
gitCommitId = props.getProperty("git.commit.id", gitCommitId).trim();
} catch (Exception e) {
LOG.warn("Error while loading version: ", e);
}
}
public static String getVersion() {
return version;
}
public static String getGitBranch() {
return gitBranch;
}
public static String getGitCommitId() {
return gitCommitId;
}
}
|
[
"florian.hussonnois@gmail.com"
] |
florian.hussonnois@gmail.com
|
994dfbb7089e0905bab4922afcffe0f02aa6774b
|
e3f536b7dcfdd059761f8d0c5b141c76df4d36be
|
/tinderavatarview/src/main/java/com/example/nbhung94/tinderavatarview/MainActivity.java
|
f053c7814942d3b946e69fe2f790b3c37be1ca08
|
[] |
no_license
|
nguyenbahung94/LearnEveryDay
|
5854fdd51631892bc72b6ac00ca1b0cf97c3d17b
|
a031083128d594210d43919523eb5d047804220c
|
refs/heads/master
| 2020-03-19T03:58:14.246000
| 2018-08-29T15:32:07
| 2018-08-29T15:32:07
| 135,781,155
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,721
|
java
|
package com.example.nbhung94.tinderavatarview;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.athbk.avatarview.TinderRecyclerView;
import com.example.nbhung94.tinderavatarview.Adapter.CustomAdapter;
import com.example.nbhung94.tinderavatarview.Model.Item;
import java.util.ArrayList;
import java.util.List;
public class MainActivity extends AppCompatActivity {
private List<Item> itemList = new ArrayList<>();
private TinderRecyclerView recyclerView;
private CustomAdapter customAdapter;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
recyclerView = findViewById(R.id.recycleView);
initData();
customAdapter = new CustomAdapter(this, itemList);
recyclerView.initRecyclerView(this, customAdapter);
}
private void initData() {
Item item = new Item("https://cdn-images-1.medium.com/max/2000/1*LMtdnSjMi9HvMmasXY0kRQ.png", 0);
Item item1 = new Item("https://cdn-images-1.medium.com/max/2000/1*LMtdnSjMi9HvMmasXY0kRQ.png", 1);
Item item2 = new Item("https://cdn-images-1.medium.com/max/2000/1*LMtdnSjMi9HvMmasXY0kRQ.png", 2);
Item item3 = new Item("https://cdn-images-1.medium.com/max/2000/1*LMtdnSjMi9HvMmasXY0kRQ.png", 3);
Item item4 = new Item("https://cdn-images-1.medium.com/max/2000/1*LMtdnSjMi9HvMmasXY0kRQ.png", 4);
Item item5 = new Item("https://cdn-images-1.medium.com/max/2000/1*LMtdnSjMi9HvMmasXY0kRQ.png", 5);
Item item6 = new Item("https://cdn-images-1.medium.com/max/2000/1*LMtdnSjMi9HvMmasXY0kRQ.png", 6);
Item item7 = new Item("https://cdn-images-1.medium.com/max/2000/1*LMtdnSjMi9HvMmasXY0kRQ.png", 7);
Item item8 = new Item("https://cdn-images-1.medium.com/max/2000/1*LMtdnSjMi9HvMmasXY0kRQ.png", 8);
Item item9 = new Item("https://cdn-images-1.medium.com/max/2000/1*LMtdnSjMi9HvMmasXY0kRQ.png", 9);
Item item10 = new Item("https://cdn-images-1.medium.com/max/2000/1*LMtdnSjMi9HvMmasXY0kRQ.png", 10);
Item item11 = new Item("https://cdn-images-1.medium.com/max/2000/1*LMtdnSjMi9HvMmasXY0kRQ.png", 11);
Item item12 = new Item("https://cdn-images-1.medium.com/max/2000/1*LMtdnSjMi9HvMmasXY0kRQ.png", 12);
itemList.add(item);
itemList.add(item1);
itemList.add(item2);
itemList.add(item3);
itemList.add(item4);
itemList.add(item5);
itemList.add(item6);
itemList.add(item7);
itemList.add(item8);
itemList.add(item9);
itemList.add(item10);
itemList.add(item11);
itemList.add(item12);
}
}
|
[
"mr.hungcity@gmail.com"
] |
mr.hungcity@gmail.com
|
91b67461643c001affc74646b6942eb7d7c7ac71
|
5252a00843c6082d739d7a00142525fff0a2f3e7
|
/zoeeasy-cloud-platform/zoeeasy-cloud-modules/zoeeasy-cloud-pms/zoeeasy-cloud-pms-server/src/main/java/com/zoeeasy/cloud/pms/service/impl/ParkingQrcodeServiceImpl.java
|
eacd876597cdcc3d01d103c0471b1a8e4b1944e6
|
[] |
no_license
|
P79N6A/parking
|
be8dc0ae6394096ec49faa89521d723425a5c965
|
6e3ea14312edc7487f725f2df315de989eaabb10
|
refs/heads/master
| 2020-05-07T22:07:03.790311
| 2019-04-12T03:06:26
| 2019-04-12T03:06:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,171
|
java
|
package com.zoeeasy.cloud.pms.service.impl;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.scapegoat.infrastructure.core.dto.result.ObjectResultDto;
import com.zoeeasy.cloud.pms.domain.ParkingQrcodeEntity;
import com.zoeeasy.cloud.pms.park.ParkingQrcodeService;
import com.zoeeasy.cloud.pms.platform.dto.request.ParkingQrcodeGetRequestDto;
import com.zoeeasy.cloud.pms.platform.dto.result.ParkingQrcodeResultDto;
import com.zoeeasy.cloud.pms.service.ParkingQrcodeCrudService;
import lombok.extern.slf4j.Slf4j;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* @author zwq
* @date 2018/12/21 0022
*/
@Service("parkingQrcodeService")
@Slf4j
public class ParkingQrcodeServiceImpl implements ParkingQrcodeService {
@Autowired
private ParkingQrcodeCrudService parkingQrcodeCrudService;
@Autowired
private ModelMapper modelMapper;
/**
* 通过noncestr获取parkingId
*
* @param requestDto requestDto
* @return ObjectResultDto<ParkingQrcodeResultDto>
*/
@Override
public ObjectResultDto<ParkingQrcodeResultDto> getParkingQrcode(ParkingQrcodeGetRequestDto requestDto) {
ObjectResultDto<ParkingQrcodeResultDto> objectResultDto = new ObjectResultDto<>();
try {
Wrapper<ParkingQrcodeEntity> entityEntityWrapper = new EntityWrapper<>();
entityEntityWrapper.eq("noncestr", requestDto.getNoncestr());
ParkingQrcodeEntity parkingQrcodeEntity = parkingQrcodeCrudService.findParkingQrcode(entityEntityWrapper);
if (null != parkingQrcodeEntity) {
ParkingQrcodeResultDto parkingQrcodeResultDto = modelMapper.map(parkingQrcodeEntity, ParkingQrcodeResultDto.class);
objectResultDto.setData(parkingQrcodeResultDto);
}
objectResultDto.success();
} catch (Exception e) {
log.error("获取停车场二维码数据失败", e.getMessage());
objectResultDto.failed();
}
return objectResultDto;
}
}
|
[
"xuqinghuo@126.com"
] |
xuqinghuo@126.com
|
4e064b98ac263fa60c81a8cdea15518793044620
|
154145c010e52aafab916f155513c2b7e9606997
|
/src/main/java/com/flowpowered/engine/FlowSingleplayerImpl.java
|
9b174ecee5516e49d5231a9feff78588ac40cde1
|
[
"MIT"
] |
permissive
|
Thelonedevil/flow-engine
|
abdde54e3423868f2a1f10902c10fcf9d8b23ad8
|
052d87b462b8c06ef718e02eb868cb7168f481ef
|
refs/heads/master
| 2021-01-14T13:57:47.239044
| 2014-09-08T08:04:45
| 2014-09-08T08:04:45
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,734
|
java
|
/*
* This file is part of Flow Engine, licensed under the MIT License (MIT).
*
* Copyright (c) 2013 Spout LLC <http://www.spout.org/>
*
* 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.flowpowered.engine;
import java.util.concurrent.atomic.AtomicReference;
import org.apache.logging.log4j.LogManager;
import com.flowpowered.api.Platform;
import com.flowpowered.api.geo.discrete.Transform;
import com.flowpowered.engine.player.FlowPlayer;
import com.flowpowered.engine.network.FlowSession;
import com.flowpowered.engine.network.FlowSingleplayerSession;
import com.flowpowered.engine.render.FlowRenderer;
import org.spout.renderer.lwjgl.LWJGLUtil;
public class FlowSingleplayerImpl extends FlowServerImpl implements FlowSingleplayer {
private final AtomicReference<FlowPlayer> player = new AtomicReference<>();
private FlowSingleplayerSession session = null;
public FlowSingleplayerImpl(FlowApplication args) {
super(args);
}
@Override
public void init() {
try {
LWJGLUtil.deployNatives(null);
} catch (Exception ex) {
LogManager.getLogger(FlowSingleplayer.class.getName()).fatal("", ex);
return;
}
super.init();
}
@Override
public void start() {
getScheduler().startClientThreads(this);
try {
// Wait until RenderThread has initialized
// TODO: confirm necessary
getScheduler().getRenderThread().getIntializedLatch().await();
} catch (InterruptedException ex) {}
super.start();
FlowPlayer player = addPlayer("Flowy", new FlowSingleplayerSession(this, true));
this.player.set(player);
session = new FlowSingleplayerSession(this, false);
session.setPlayer(player);
}
@Override
public boolean stop() {
return super.stop();
}
@Override
public Platform getPlatform() {
return Platform.SINGLEPLAYER;
}
@Override
public FlowPlayer getPlayer() {
return player.get();
}
@Override
public FlowRenderer getRenderer() {
return getScheduler().getRenderThread().getRenderer();
}
@Override
public Transform getTransform() {
FlowPlayer player = getPlayer();
if (player == null) {
return Transform.INVALID;
} else {
return player.getTransformProvider().getTransform();
}
}
@Override
public void setTransform(Transform transform) {
throw new UnsupportedOperationException("Singleplayer does not gets it's Transform set.");
}
@Override
public FlowSession getSession() {
return session;
}
}
|
[
"kitskub@gmail.com"
] |
kitskub@gmail.com
|
07875b9374ad2f6d15c21372fbda73e8b004cb2b
|
ed5159d056e98d6715357d0d14a9b3f20b764f89
|
/test/irvine/oeis/a103/A103322Test.java
|
7c78431ae146d21e0639ab21eaf39cdd8ce2a223
|
[] |
no_license
|
flywind2/joeis
|
c5753169cf562939b04dd246f8a2958e97f74558
|
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
|
refs/heads/master
| 2020-09-13T18:34:35.080552
| 2019-11-19T05:40:55
| 2019-11-19T05:40:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 195
|
java
|
package irvine.oeis.a103;
import irvine.oeis.AbstractSequenceTest;
/**
* Tests the corresponding class.
* @author Sean A. Irvine
*/
public class A103322Test extends AbstractSequenceTest {
}
|
[
"sairvin@gmail.com"
] |
sairvin@gmail.com
|
7b7222f4dc5ffb7b9026079103c748ee0c262dde
|
eec3da80c2eba0bd6b8670afa5ed070c1902b5ec
|
/meta/src/test/java/com/alibaba/otter/canal/meta/MixedMetaManagerTest.java
|
de7a3d3042a7815c7aa9a12aa225af940e379e58
|
[
"Apache-2.0"
] |
permissive
|
zhmz1326/canal
|
d5289fe4dff9e84cbb219a47a97b8a16bb5ac7eb
|
4f1fce247108611c959f28e53796cbbb8bffe164
|
refs/heads/master
| 2023-08-30T22:52:32.747692
| 2018-07-16T09:14:21
| 2018-07-16T09:14:21
| 109,801,832
| 2
| 0
|
Apache-2.0
| 2018-05-25T01:31:27
| 2017-11-07T07:34:15
|
Java
|
UTF-8
|
Java
| false
| false
| 3,545
|
java
|
package com.alibaba.otter.canal.meta;
import java.util.List;
import java.util.Map;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import com.alibaba.otter.canal.common.zookeeper.ZkClientx;
import com.alibaba.otter.canal.common.zookeeper.ZookeeperPathUtils;
import com.alibaba.otter.canal.protocol.ClientIdentity;
import com.alibaba.otter.canal.protocol.position.Position;
import com.alibaba.otter.canal.protocol.position.PositionRange;
public class MixedMetaManagerTest extends AbstractMetaManagerTest {
private ZkClientx zkclientx = new ZkClientx(cluster1 + ";" + cluster2);
@Before
public void setUp() {
String path = ZookeeperPathUtils.getDestinationPath(destination);
zkclientx.deleteRecursive(path);
}
@After
public void tearDown() {
String path = ZookeeperPathUtils.getDestinationPath(destination);
zkclientx.deleteRecursive(path);
}
@Test
public void testSubscribeAll() {
MixedMetaManager metaManager = new MixedMetaManager();
ZooKeeperMetaManager zooKeeperMetaManager = new ZooKeeperMetaManager();
zooKeeperMetaManager.setZkClientx(zkclientx);
metaManager.setZooKeeperMetaManager(zooKeeperMetaManager);
metaManager.start();
doSubscribeTest(metaManager);
sleep(1000L);
// 重新构建一次,能获得上一次zk上的记录
MixedMetaManager metaManager2 = new MixedMetaManager();
metaManager2.setZooKeeperMetaManager(zooKeeperMetaManager);
metaManager2.start();
List<ClientIdentity> clients = metaManager2.listAllSubscribeInfo(destination);
Assert.assertEquals(2, clients.size());
metaManager.stop();
}
@Test
public void testBatchAll() {
MixedMetaManager metaManager = new MixedMetaManager();
ZooKeeperMetaManager zooKeeperMetaManager = new ZooKeeperMetaManager();
zooKeeperMetaManager.setZkClientx(zkclientx);
metaManager.setZooKeeperMetaManager(zooKeeperMetaManager);
metaManager.start();
doBatchTest(metaManager);
sleep(1000L);
// 重新构建一次,能获得上一次zk上的记录
MixedMetaManager metaManager2 = new MixedMetaManager();
metaManager2.setZooKeeperMetaManager(zooKeeperMetaManager);
metaManager2.start();
Map<Long, PositionRange> ranges = metaManager2.listAllBatchs(clientIdentity);
Assert.assertEquals(3, ranges.size());
metaManager.clearAllBatchs(clientIdentity);
ranges = metaManager.listAllBatchs(clientIdentity);
Assert.assertEquals(0, ranges.size());
metaManager.stop();
metaManager2.stop();
}
@Test
public void testCursorAll() {
MixedMetaManager metaManager = new MixedMetaManager();
ZooKeeperMetaManager zooKeeperMetaManager = new ZooKeeperMetaManager();
zooKeeperMetaManager.setZkClientx(zkclientx);
metaManager.setZooKeeperMetaManager(zooKeeperMetaManager);
metaManager.start();
Position lastPosition = doCursorTest(metaManager);
sleep(1000L);
// 重新构建一次,能获得上一次zk上的记录
MixedMetaManager metaManager2 = new MixedMetaManager();
metaManager2.setZooKeeperMetaManager(zooKeeperMetaManager);
metaManager2.start();
Position position = metaManager2.getCursor(clientIdentity);
Assert.assertEquals(position, lastPosition);
metaManager.stop();
}
}
|
[
"jianghang.loujh@alibaba-inc.com"
] |
jianghang.loujh@alibaba-inc.com
|
5de8309bc2714baeb12923743013d3e2c96bfd12
|
dc075f7401ff0f89f95ed3b5d0ebda09db332b21
|
/app/src/main/java/com/idx/smartspeakdock/standby/presenter/OnQueryWeatherListener.java
|
e34fce1caceb7501e9aaa08721a2e31f4141ce6e
|
[] |
no_license
|
sqHayden/SmartSpeakDock
|
0a8da86d5804cc095cf394c808d4ab223b300ea3
|
7811686c8ead597a3633ce41a9b53f3d634032c3
|
refs/heads/master
| 2020-03-21T14:53:26.031113
| 2018-03-06T02:18:37
| 2018-03-06T02:18:37
| 138,681,305
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 304
|
java
|
package com.idx.smartspeakdock.standby.presenter;
import com.idx.smartspeakdock.weather.model.weather.Weather;
/**
* Created by ryan on 17-12-22.
* Email: Ryan_chan01212@yeah.net
*/
public interface OnQueryWeatherListener {
void onSuccess(Weather weather);
void onError(String errorMsg);
}
|
[
"ryan.fp.chan@mail.foxconn.com"
] |
ryan.fp.chan@mail.foxconn.com
|
b247458ed73654f0a9969cba10da393a28600319
|
ed9138bc0d1291163a386124fa467d52e0fb7f3f
|
/Pos2Books/src/se/budohoor/economics/pos2books/plugins/books/economic/types/DebtorEntryGetDataArray.java
|
19727395c510ce0088f8d0d92d0c23e1b2f96fd9
|
[] |
no_license
|
odie37/pos-2-books
|
56a06439e9e072d8bea2e747d65ef3dad3349709
|
cbec64fef1d7abb48d948b3adc2f8be36e09cf19
|
refs/heads/master
| 2016-09-10T10:37:04.105489
| 2015-01-04T19:11:32
| 2015-01-04T19:11:32
| 28,779,078
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,607
|
java
|
package se.budohoor.economics.pos2books.plugins.books.economic.types;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
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="entityHandles" type="{http://e-conomic.com}ArrayOfDebtorEntryHandle" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"entityHandles"
})
@XmlRootElement(name = "DebtorEntry_GetDataArray")
public class DebtorEntryGetDataArray {
protected ArrayOfDebtorEntryHandle entityHandles;
/**
* Gets the value of the entityHandles property.
*
* @return
* possible object is
* {@link ArrayOfDebtorEntryHandle }
*
*/
public ArrayOfDebtorEntryHandle getEntityHandles() {
return entityHandles;
}
/**
* Sets the value of the entityHandles property.
*
* @param value
* allowed object is
* {@link ArrayOfDebtorEntryHandle }
*
*/
public void setEntityHandles(ArrayOfDebtorEntryHandle value) {
this.entityHandles = value;
}
}
|
[
"mattias.fritzson@gmail.com"
] |
mattias.fritzson@gmail.com
|
474f8da301760843a63fb1006d93252b3aafb3e4
|
231a828518021345de448c47c31f3b4c11333d0e
|
/src/pdf/bouncycastle/crypto/modes/kgcm/BasicKGCMMultiplier_512.java
|
666e5ec89472c394e9e9d60976aa37ee92e6b706
|
[] |
no_license
|
Dynamit88/PDFBox-Java
|
f39b96b25f85271efbb3a9135cf6a15591dec678
|
480a576bc97fc52299e1e869bb80a1aeade67502
|
refs/heads/master
| 2020-05-24T14:58:29.287880
| 2019-05-18T04:25:21
| 2019-05-18T04:25:21
| 187,312,933
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 346
|
java
|
package pdf.bouncycastle.crypto.modes.kgcm;
public class BasicKGCMMultiplier_512
implements KGCMMultiplier
{
private final long[] H = new long[KGCMUtil_512.SIZE];
public void init(long[] H)
{
KGCMUtil_512.copy(H, this.H);
}
public void multiplyH(long[] z)
{
KGCMUtil_512.multiply(z, H, z);
}
}
|
[
"vtuse@mail.ru"
] |
vtuse@mail.ru
|
c25213472d78066d04d95296be2cc83f1d5ac405
|
e159264a501f9792d71325122e41acb43f9fb7a9
|
/src/main/java/com/pancm/test/redisTest/redisListTest.java
|
416ea5d1bee9d1fc8681ecd91df25abffc58652e
|
[] |
no_license
|
tandingbo/pancm_project
|
4ce807ee8938d1de6f715ba7f6d27fe785a2de52
|
ea8d2c7ac9770b5aa9db5d9782ecd94e00af529c
|
refs/heads/master
| 2020-03-17T16:57:24.890168
| 2018-05-14T10:00:07
| 2018-05-14T10:00:07
| 133,769,185
| 2
| 0
| null | 2018-05-17T06:30:43
| 2018-05-17T06:30:42
| null |
UTF-8
|
Java
| false
| false
| 823
|
java
|
package com.pancm.test.redisTest;
import java.util.List;
import redis.clients.jedis.Jedis;
/**
*
* Title: redisStringTest
* Description: redis存储list示例
* Version:1.0.0
* @author Administrator
* @date 2017-8-19
*/
public class redisListTest {
/**
* @param args
*/
public static void main(String[] args) {
//连接本地的 Redis 服务
Jedis jedis = new Jedis("127.0.0.1");
System.out.println("连接成功");
//存储到列表中
jedis.lpush("list", "redis");
jedis.lpush("list", "java");
jedis.lpush("list", "mysql");
//获取存储的数据并输出
List<String> list=jedis.lrange("list", 0, 2);
for(int i=0,j=list.size();i<j;i++){
System.out.println("list的输出结果:"+list.get(i));
}
}
}
|
[
"1060589146@qq.com"
] |
1060589146@qq.com
|
d1eb9ac7f580f932e08fc335e95369ddcd998f55
|
fdd0e2f2363c932e7f508a3a8c1e220f54c3e50c
|
/rongyanLibrary/src/main/java/com/rongyan/rongyanlibrary/ImageLoader/ImageLoader.java
|
2f0cfc32ac2bf54c63a7fa26a7c83445f585c5de
|
[] |
no_license
|
XuRongYan/IKanVideo
|
a0a7f0582e1ab98278cabd332bb6798c302601c5
|
3247003ed719dc18a47c502784003d3b1c42c579
|
refs/heads/master
| 2020-05-05T07:13:19.934246
| 2019-04-06T10:12:36
| 2019-04-06T10:12:36
| 179,817,648
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,067
|
java
|
package com.rongyan.rongyanlibrary.ImageLoader;
import android.widget.ImageView;
/**
* 图片加载类的封装,Builder模式
* Created by XRY on 2016/8/31.
*/
public class ImageLoader {
private int type; //类型(大图、小图、中图)
private String url; //需要解析的url
private int placeHolder; //当没有成功加载时显示的占位图
private ImageView imageView; //imageView实例
public ImageLoader(Builder builder) {
this.type = builder.type;
this.url = builder.url;
this.placeHolder = builder.placeHolder;
this.imageView = builder.imageView;
}
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public int getPlaceHolder() {
return placeHolder;
}
public void setPlaceHolder(int placeHolder) {
this.placeHolder = placeHolder;
}
public ImageView getImageView() {
return imageView;
}
public void setImageView(ImageView imageView) {
this.imageView = imageView;
}
public static class Builder {
private int type; //类型(大图、小图、中图)
private String url; //需要解析的url
private int placeHolder; //当没有成功加载时显示的占位图
private ImageView imageView; //imageView实例
public Builder type(int type) {
this.type = type;
return this;
}
public Builder url(String url) {
this.url = url;
return this;
}
public Builder placeHolder(int placeHolder) {
this.placeHolder = placeHolder;
return this;
}
public Builder imgView(ImageView imageView) {
this.imageView = imageView;
return this;
}
public ImageLoader build() {
return new ImageLoader(this);
}
}
}
|
[
"1536980672@qq.com"
] |
1536980672@qq.com
|
7272d10aea3f559c505c35f67bdf384bf599fc1e
|
22e506ee8e3620ee039e50de447def1e1b9a8fb3
|
/java_src/com/tencent/cos/xml/model/bucket/PutBucketVersioningResult.java
|
6569ee5abd61363fa77b282577d3185ee57216c6
|
[] |
no_license
|
Qiangong2/GraffitiAllianceSource
|
477152471c02aa2382814719021ce22d762b1d87
|
5a32de16987709c4e38594823cbfdf1bd37119c5
|
refs/heads/master
| 2023-07-04T23:09:23.004755
| 2021-08-11T18:10:17
| 2021-08-11T18:10:17
| 395,075,728
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 543
|
java
|
package com.tencent.cos.xml.model.bucket;
import com.tencent.cos.xml.exception.CosXmlClientException;
import com.tencent.cos.xml.exception.CosXmlServiceException;
import com.tencent.cos.xml.model.CosXmlResult;
import com.tencent.qcloud.core.http.HttpResponse;
public class PutBucketVersioningResult extends CosXmlResult {
@Override // com.tencent.cos.xml.model.CosXmlResult
public void parseResponseBody(HttpResponse response) throws CosXmlServiceException, CosXmlClientException {
super.parseResponseBody(response);
}
}
|
[
"sassafrass@fasizzle.com"
] |
sassafrass@fasizzle.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.