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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5d7b55fbb05f526e59a1aa140410fb720b808f13
|
fde12555b15598267c8042deea260e841f4b93a0
|
/07 - Spring Fundamentals/JudgeV2 Application/src/main/java/com/softuni/model/view/UserProfileViewModel.java
|
81737b528be8f96d9de02df5f2dc906a95f8a331
|
[] |
no_license
|
elenaborisova/SoftUni-Java-Web-Developer-Path
|
de4cc3c0bb85784815246f23c186aff3f56cc4e8
|
49b435de458df4d89fcb88742ce96461c325270e
|
refs/heads/master
| 2023-07-14T21:10:46.689598
| 2021-09-03T13:06:28
| 2021-09-03T13:06:28
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 998
|
java
|
package com.softuni.model.view;
import java.util.Set;
public class UserProfileViewModel {
private String username;
private Set<String> homeworkSet;
private String email;
private String git;
public UserProfileViewModel() {
}
public String getUsername() {
return username;
}
public UserProfileViewModel setUsername(String username) {
this.username = username;
return this;
}
public Set<String> getHomeworkSet() {
return homeworkSet;
}
public UserProfileViewModel setHomeworkSet(Set<String> homeworkSet) {
this.homeworkSet = homeworkSet;
return this;
}
public String getEmail() {
return email;
}
public UserProfileViewModel setEmail(String email) {
this.email = email;
return this;
}
public String getGit() {
return git;
}
public UserProfileViewModel setGit(String git) {
this.git = git;
return this;
}
}
|
[
"p.bozidarova@gmail.com"
] |
p.bozidarova@gmail.com
|
466f9c224e8ee6a630eb482ba21404a27e6398e3
|
6d943c9f546854a99ae27784d582955830993cee
|
/modules/dfp_appengine/src/main/java/com/google/api/ads/admanager/jaxws/v202002/AdUnitAction.java
|
bfe525cdae814df812d5e2f614e9e45ad704c547
|
[
"Apache-2.0"
] |
permissive
|
MinYoungKim1997/googleads-java-lib
|
02da3d3f1de3edf388a3f2d3669a86fe1087231c
|
16968056a0c2a9ea1676b378ab7cbfe1395de71b
|
refs/heads/master
| 2021-03-25T15:24:24.446692
| 2020-03-16T06:36:10
| 2020-03-16T06:36:10
| 247,628,741
| 0
| 0
|
Apache-2.0
| 2020-03-16T06:36:35
| 2020-03-16T06:36:34
| null |
UTF-8
|
Java
| false
| false
| 1,587
|
java
|
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.api.ads.admanager.jaxws.v202002;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
*
* Represents the actions that can be performed on {@link AdUnit} objects.
*
*
* <p>Java class for AdUnitAction complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="AdUnitAction">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AdUnitAction")
@XmlSeeAlso({
DeactivateAdUnits.class,
ActivateAdUnits.class,
ArchiveAdUnits.class
})
public abstract class AdUnitAction {
}
|
[
"christopherseeley@users.noreply.github.com"
] |
christopherseeley@users.noreply.github.com
|
41669d021ffe12cd68f4ffe73e119374f4d0f03b
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/large-multiproject/project79/src/test/java/org/gradle/test/performance79_1/Test79_79.java
|
317e26f67af43f975c5ecda18d1095e262603e43
|
[] |
no_license
|
gradle/performance-comparisons
|
b0d38db37c326e0ce271abebdb3c91769b860799
|
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
|
refs/heads/master
| 2023-08-14T19:24:39.164276
| 2022-11-24T05:18:33
| 2022-11-24T05:18:33
| 80,121,268
| 17
| 15
| null | 2022-09-30T08:04:35
| 2017-01-26T14:25:33
| null |
UTF-8
|
Java
| false
| false
| 289
|
java
|
package org.gradle.test.performance79_1;
import static org.junit.Assert.*;
public class Test79_79 {
private final Production79_79 production = new Production79_79("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
90073e1bbffe4b7e33b114729bc052d58b030fd8
|
6d2d4af76f82e154b3aa06531adc248e3201c09b
|
/src/main/java/com/robertx22/mine_and_slash/world_gen/biome_color_schemes/RedDesertTheme.java
|
8914b58f776b7d578da1fd4607df838dc968e648
|
[
"LicenseRef-scancode-warranty-disclaimer"
] |
no_license
|
AzureDoom/Mine-and-Slash
|
4bd16494be00bde5a038bcc01dd66fb45209fe7f
|
a772326882824039eee814dcff4af321923a5736
|
refs/heads/AzureBranch
| 2021-07-10T03:32:16.672923
| 2020-08-16T03:59:14
| 2020-08-16T03:59:14
| 188,708,742
| 1
| 3
|
NOASSERTION
| 2020-02-24T09:12:49
| 2019-05-26T16:48:17
|
Java
|
UTF-8
|
Java
| false
| false
| 1,076
|
java
|
package com.robertx22.mine_and_slash.world_gen.biome_color_schemes;
import com.robertx22.mine_and_slash.world_gen.biome_color_schemes.bases.BiomeColorTheme;
import com.robertx22.mine_and_slash.world_gen.biome_color_schemes.bases.BlockWeight;
import net.minecraft.block.Blocks;
import java.util.Arrays;
import java.util.List;
public class RedDesertTheme extends BiomeColorTheme {
@Override
public List<BlockWeight> OAK_LOG() {
return Arrays.asList(new BlockWeight(Blocks.RED_SANDSTONE));
}
@Override
public List<BlockWeight> OAK_PLANKS() {
return Arrays.asList(new BlockWeight(Blocks.CHISELED_RED_SANDSTONE));
}
@Override
public List<BlockWeight> OAK_STAIRS() {
return Arrays.asList(new BlockWeight(Blocks.RED_SANDSTONE_STAIRS));
}
@Override
public List<BlockWeight> OAK_SLABS() {
return Arrays.asList(new BlockWeight(Blocks.RED_SANDSTONE_SLAB));
}
@Override
public List<BlockWeight> OAK_FENCE() {
return Arrays.asList(new BlockWeight(Blocks.RED_SANDSTONE_WALL));
}
}
|
[
"treborx555@gmail.com"
] |
treborx555@gmail.com
|
e40f1138bbff6d6a708ffac3590c5745f4f16cf4
|
14d083e172837377a0bc3e9b2b031c058e75a4aa
|
/src/GameInterfaces/Armor/Leather/ILeatherNinjaPants.java
|
7f63478267cec40ae79afecae93da39ac756a3b6
|
[] |
no_license
|
wgres101/NECROTEK3Dv2
|
478b708936b4dcfd9aa7f9b949e23bfa3e61bd43
|
4f57b5f56fc2fa6406d2ce6ed5fdce21964fd483
|
refs/heads/master
| 2020-12-18T18:58:42.660286
| 2017-08-10T23:23:29
| 2017-08-10T23:23:29
| 235,483,578
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 140
|
java
|
package GameInterfaces.Armor.Leather;
import GameInterfaces.Armor.IBaseArmor;
public interface ILeatherNinjaPants extends IBaseArmor {
}
|
[
"ted_gress@yahoo.com"
] |
ted_gress@yahoo.com
|
c9e1c9d1edba4ec1af5ed34e8feda2747c53f85d
|
a84b2d2806564b59714e90d88b2652e5446c7952
|
/services/hrdb/src/com/auto_cskemexrpg/hrdb/service/VacationServiceImpl.java
|
3eb1ad634788ae4eb5e5300591fa3ae31646de44
|
[] |
no_license
|
wavemakerapps/Auto_cSKEmexrPG
|
e2e6b781c42c3063e41df3dfbcbed72d82535c25
|
ac2f34573b53ec8b486832b282bdfa0379ad1b70
|
refs/heads/master
| 2020-03-06T20:30:27.271629
| 2018-03-27T22:57:57
| 2018-03-27T22:57:57
| 127,054,691
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,467
|
java
|
/*Copyright (c) 2015-2016 wavemaker.com All Rights Reserved.
This software is the confidential and proprietary information of wavemaker.com You shall not disclose such Confidential Information and shall use it only in accordance
with the terms of the source code license agreement you entered into with wavemaker.com*/
package com.auto_cskemexrpg.hrdb.service;
/*This is a Studio Managed File. DO NOT EDIT THIS FILE. Your changes may be reverted by Studio.*/
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.validation.annotation.Validated;
import com.wavemaker.runtime.data.dao.WMGenericDao;
import com.wavemaker.runtime.data.exception.EntityNotFoundException;
import com.wavemaker.runtime.data.export.ExportType;
import com.wavemaker.runtime.data.expression.QueryFilter;
import com.wavemaker.runtime.data.model.AggregationInfo;
import com.wavemaker.runtime.file.model.Downloadable;
import com.auto_cskemexrpg.hrdb.Vacation;
/**
* ServiceImpl object for domain model class Vacation.
*
* @see Vacation
*/
@Service("hrdb.VacationService")
@Validated
public class VacationServiceImpl implements VacationService {
private static final Logger LOGGER = LoggerFactory.getLogger(VacationServiceImpl.class);
@Autowired
@Qualifier("hrdb.VacationDao")
private WMGenericDao<Vacation, Integer> wmGenericDao;
public void setWMGenericDao(WMGenericDao<Vacation, Integer> wmGenericDao) {
this.wmGenericDao = wmGenericDao;
}
@Transactional(value = "hrdbTransactionManager")
@Override
public Vacation create(Vacation vacation) {
LOGGER.debug("Creating a new Vacation with information: {}", vacation);
Vacation vacationCreated = this.wmGenericDao.create(vacation);
// reloading object from database to get database defined & server defined values.
return this.wmGenericDao.refresh(vacationCreated);
}
@Transactional(readOnly = true, value = "hrdbTransactionManager")
@Override
public Vacation getById(Integer vacationId) throws EntityNotFoundException {
LOGGER.debug("Finding Vacation by id: {}", vacationId);
return this.wmGenericDao.findById(vacationId);
}
@Transactional(readOnly = true, value = "hrdbTransactionManager")
@Override
public Vacation findById(Integer vacationId) {
LOGGER.debug("Finding Vacation by id: {}", vacationId);
try {
return this.wmGenericDao.findById(vacationId);
} catch(EntityNotFoundException ex) {
LOGGER.debug("No Vacation found with id: {}", vacationId, ex);
return null;
}
}
@Transactional(rollbackFor = EntityNotFoundException.class, value = "hrdbTransactionManager")
@Override
public Vacation update(Vacation vacation) throws EntityNotFoundException {
LOGGER.debug("Updating Vacation with information: {}", vacation);
this.wmGenericDao.update(vacation);
this.wmGenericDao.refresh(vacation);
return vacation;
}
@Transactional(value = "hrdbTransactionManager")
@Override
public Vacation delete(Integer vacationId) throws EntityNotFoundException {
LOGGER.debug("Deleting Vacation with id: {}", vacationId);
Vacation deleted = this.wmGenericDao.findById(vacationId);
if (deleted == null) {
LOGGER.debug("No Vacation found with id: {}", vacationId);
throw new EntityNotFoundException(String.valueOf(vacationId));
}
this.wmGenericDao.delete(deleted);
return deleted;
}
@Transactional(value = "hrdbTransactionManager")
@Override
public void delete(Vacation vacation) {
LOGGER.debug("Deleting Vacation with {}", vacation);
this.wmGenericDao.delete(vacation);
}
@Transactional(readOnly = true, value = "hrdbTransactionManager")
@Override
public Page<Vacation> findAll(QueryFilter[] queryFilters, Pageable pageable) {
LOGGER.debug("Finding all Vacations");
return this.wmGenericDao.search(queryFilters, pageable);
}
@Transactional(readOnly = true, value = "hrdbTransactionManager")
@Override
public Page<Vacation> findAll(String query, Pageable pageable) {
LOGGER.debug("Finding all Vacations");
return this.wmGenericDao.searchByQuery(query, pageable);
}
@Transactional(readOnly = true, value = "hrdbTransactionManager")
@Override
public Downloadable export(ExportType exportType, String query, Pageable pageable) {
LOGGER.debug("exporting data in the service hrdb for table Vacation to {} format", exportType);
return this.wmGenericDao.export(exportType, query, pageable);
}
@Transactional(readOnly = true, value = "hrdbTransactionManager")
@Override
public long count(String query) {
return this.wmGenericDao.count(query);
}
@Transactional(readOnly = true, value = "hrdbTransactionManager")
@Override
public Page<Map<String, Object>> getAggregatedValues(AggregationInfo aggregationInfo, Pageable pageable) {
return this.wmGenericDao.getAggregatedValues(aggregationInfo, pageable);
}
}
|
[
"automate1@wavemaker.com"
] |
automate1@wavemaker.com
|
9a62dcbe1db205ad82efc44ed8daf884a1922bf7
|
67934dd3dfa02e8aac0b76c1043b1935a68ef678
|
/src/main/java/com/github/lindenb/jvarkit/io/DataSerializable.java
|
098a670f1913f8a9d23c4222488eadc0f92d5c87
|
[
"MIT"
] |
permissive
|
lindenb/jvarkit
|
5dbb37a1eda66b76c4ba495f1f52e9ec023fc37f
|
3d336e522b2862e7f9490bbdfc80b219e68532e2
|
refs/heads/master
| 2023-08-22T13:27:44.758256
| 2023-05-05T15:32:15
| 2023-05-05T15:32:15
| 9,889,013
| 423
| 150
|
NOASSERTION
| 2023-01-27T14:39:22
| 2013-05-06T14:49:08
|
Java
|
UTF-8
|
Java
| false
| false
| 1,578
|
java
|
/*
The MIT License (MIT)
Copyright (c) 2023 Pierre Lindenbaum
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
package com.github.lindenb.jvarkit.io;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
/** interface for object I/O to/from DataInput/OutputStream */
public interface DataSerializable {
/** read item from this DataInputStream */
public void readDataInputStream(final DataInputStream in) throws IOException;
/** write item to this DataOutputStream */
public void writeDataOutputStream(final DataOutputStream daos) throws IOException;
}
|
[
"plindenbaum@yahoo.fr"
] |
plindenbaum@yahoo.fr
|
1196d42c0bc118647842213826500e82c3e8eac7
|
b77be0b0e6b3ea59e8208a5980601729a198f4d1
|
/app/src/main/java/com/google/android/gms/fitness/Fitness.java
|
5a905cf4747d997f843c76e2b518068708997272
|
[] |
no_license
|
jotaxed/Final
|
72bece24fb2e59ee5d604b6aca5d90656d2a7170
|
f625eb81e99a23e959c9d0ec6b0419a3b795977a
|
refs/heads/master
| 2020-04-13T11:50:14.498334
| 2018-12-26T13:46:17
| 2018-12-26T13:46:17
| 163,185,048
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,113
|
java
|
package com.google.android.gms.fitness;
import android.content.Context;
import android.content.Intent;
import android.os.Build.VERSION;
import android.os.Looper;
import com.google.android.gms.common.Scopes;
import com.google.android.gms.common.api.Api;
import com.google.android.gms.common.api.Api.ApiOptions.NoOptions;
import com.google.android.gms.common.api.Api.a;
import com.google.android.gms.common.api.Api.b;
import com.google.android.gms.common.api.Api.c;
import com.google.android.gms.common.api.GoogleApiClient.ConnectionCallbacks;
import com.google.android.gms.common.api.GoogleApiClient.OnConnectionFailedListener;
import com.google.android.gms.common.api.Scope;
import com.google.android.gms.internal.jg;
import com.google.android.gms.internal.lu;
import com.google.android.gms.internal.lv;
import com.google.android.gms.internal.mf;
import com.google.android.gms.internal.mh;
import com.google.android.gms.internal.mi;
import com.google.android.gms.internal.mj;
import com.google.android.gms.internal.mk;
import com.google.android.gms.internal.ml;
import com.google.android.gms.internal.mm;
import com.google.android.gms.internal.mn;
import com.google.android.gms.internal.mo;
import java.util.concurrent.TimeUnit;
public class Fitness {
public static final String ACTION_TRACK = "vnd.google.fitness.TRACK";
public static final String ACTION_VIEW = "vnd.google.fitness.VIEW";
public static final String ACTION_VIEW_GOAL = "vnd.google.fitness.VIEW_GOAL";
public static final Api<NoOptions> API = new Api(DR, DQ, new Scope[0]);
public static final BleApi BleApi = jj();
public static final ConfigApi ConfigApi = new mi();
public static final c<lu> DQ = new c();
private static final b<lu, NoOptions> DR = new b<lu, NoOptions>() {
public /* synthetic */ a a(Context context, Looper looper, jg jgVar, Object obj, ConnectionCallbacks connectionCallbacks, OnConnectionFailedListener onConnectionFailedListener) {
return d(context, looper, jgVar, (NoOptions) obj, connectionCallbacks, onConnectionFailedListener);
}
public lu d(Context context, Looper looper, jg jgVar, NoOptions noOptions, ConnectionCallbacks connectionCallbacks, OnConnectionFailedListener onConnectionFailedListener) {
return new lv(context, looper, connectionCallbacks, onConnectionFailedListener, jgVar.hm(), a.e(jgVar.ho()));
}
public int getPriority() {
return Integer.MAX_VALUE;
}
};
public static final String EXTRA_END_TIME = "vnd.google.fitness.end_time";
public static final String EXTRA_START_TIME = "vnd.google.fitness.start_time";
public static final HistoryApi HistoryApi = new mj();
public static final RecordingApi RecordingApi = new ml();
public static final Scope SCOPE_ACTIVITY_READ = new Scope(Scopes.FITNESS_ACTIVITY_READ);
public static final Scope SCOPE_ACTIVITY_READ_WRITE = new Scope(Scopes.FITNESS_ACTIVITY_READ_WRITE);
public static final Scope SCOPE_BODY_READ = new Scope(Scopes.FITNESS_BODY_READ);
public static final Scope SCOPE_BODY_READ_WRITE = new Scope(Scopes.FITNESS_BODY_READ_WRITE);
public static final Scope SCOPE_LOCATION_READ = new Scope(Scopes.FITNESS_LOCATION_READ);
public static final Scope SCOPE_LOCATION_READ_WRITE = new Scope(Scopes.FITNESS_LOCATION_READ_WRITE);
public static final SensorsApi SensorsApi = new mm();
public static final SessionsApi SessionsApi = new mn();
public static final mf TK = new mk();
private Fitness() {
}
public static long getEndTime(Intent intent, TimeUnit timeUnit) {
long longExtra = intent.getLongExtra(EXTRA_END_TIME, -1);
return longExtra == -1 ? -1 : timeUnit.convert(longExtra, TimeUnit.MILLISECONDS);
}
public static long getStartTime(Intent intent, TimeUnit timeUnit) {
long longExtra = intent.getLongExtra(EXTRA_START_TIME, -1);
return longExtra == -1 ? -1 : timeUnit.convert(longExtra, TimeUnit.MILLISECONDS);
}
private static BleApi jj() {
return VERSION.SDK_INT >= 18 ? new mh() : new mo();
}
}
|
[
"jotaxed@gmail.com"
] |
jotaxed@gmail.com
|
41e70c32861467eba98f1da6f19cd87a5cc2fafe
|
9ace5770a86dcb67323d597e0b93d62b4259782a
|
/module_payment/src/main/java/com/demons/pay/base/net/RetrofitManager.java
|
216976f169ae7d3aace53e068c9170ace2b3d39b
|
[] |
no_license
|
demoned/lib_pay
|
16c9479810f9a69f6d138d87b8e432f7bc5f12bb
|
e274618b81894bb11acec8b20e954a68315fe7e8
|
refs/heads/main
| 2023-05-15T21:22:00.196786
| 2021-06-09T05:48:24
| 2021-06-09T05:48:24
| 375,234,061
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,973
|
java
|
package com.demons.pay.base.net;
import android.content.Context;
import android.widget.Toast;
import com.demons.pay.base.manager.PayManager;
import com.demons.pay.base.net.config.Api;
import com.demons.pay.base.net.http.BaseInterceptor;
import com.demons.pay.base.util.LogUtils;
import com.demons.pay.base.util.SSLContextUtil;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSocketFactory;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
import retrofit2.converter.gson.GsonConverterFactory;
/**
* RetrofitManager
* 网络请求管理器
*/
public class RetrofitManager {
public static RetrofitManager retrofitManager;
public static Context mContext;
private Retrofit mRetrofit;
public String TOKEN;
private RetrofitManager() {
OkHttpClient.Builder okHttpBuilder = new OkHttpClient.Builder();
//添加token
okHttpBuilder.addInterceptor(new BaseInterceptor(mContext));
//添加日志拦截相关
HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor(new HttpLoggingInterceptor.Logger() {
@Override
public void log(String message) {
LogUtils.e("网络请求:-----", message);
}
});
interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
if (PayManager.isDebug()) {
okHttpBuilder.addInterceptor(interceptor);
}
SSLContext sslContext = SSLContextUtil.getDefaultSLLContext();
if (sslContext != null) {
SSLSocketFactory socketFactory = sslContext.getSocketFactory();
okHttpBuilder.sslSocketFactory(socketFactory);
}
// okHttpBuilder.hostnameVerifier(SSLContextUtil.HOSTNAME_VERIFIER);
try {
mRetrofit = new Retrofit.Builder().client(okHttpBuilder.build()).baseUrl(Api.getInstance().getHostUrl()).addCallAdapterFactory(RxJava2CallAdapterFactory.create()).addConverterFactory(GsonConverterFactory.create()).build();
} catch (Exception e) {
Toast.makeText(RetrofitManager.mContext, "当前域名不是有效主机域名!", Toast.LENGTH_SHORT).show();
}
}
public static void init(Context context) {
mContext = context;
}
public static RetrofitManager getInstance() {
if (retrofitManager == null) {
synchronized (RetrofitManager.class) {
if (retrofitManager == null) {
retrofitManager = new RetrofitManager();
}
}
}
return retrofitManager;
}
/**
* 创建一个公共服务
*
* @return
*/
public CommonService getCommonService() {
return mRetrofit.create(CommonService.class);
}
public static void release() {
if (null != retrofitManager) {
retrofitManager = null;
}
}
}
|
[
"atl1314@qq.com"
] |
atl1314@qq.com
|
308bd9ef83bb43f31222971d39c6e7acfd6f1dba
|
956ff06ea26f8ab16ad65fafa2f6042c88b46839
|
/alloy/src/main/java/com/liferay/faces/alloy/component/paginator/Paginator.java
|
e6531994ec2977ee2d46d3fb6218d3bda06da8e6
|
[] |
no_license
|
banuk77/liferay-faces
|
2dbd02b5a8aeefbb010ce252b886b7cfa0703b2c
|
f2737800d3db6c9c11db91f9cdee618914801642
|
refs/heads/master
| 2020-04-01T19:26:25.654338
| 2015-04-08T19:56:47
| 2015-04-08T19:56:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,029
|
java
|
/**
* Copyright (c) 2000-2015 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.faces.alloy.component.paginator;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import javax.faces.component.FacesComponent;
import javax.faces.component.UIComponent;
import javax.faces.component.UIData;
import javax.faces.component.behavior.ClientBehaviorHolder;
import com.liferay.faces.util.component.ComponentUtil;
/**
* @author Neil Griffin
*/
@FacesComponent(value = Paginator.COMPONENT_TYPE)
public class Paginator extends PaginatorBase implements ClientBehaviorHolder {
// Public Constants
public static final String COMPONENT_FAMILY = "com.liferay.faces.alloy.component.paginator";
public static final String COMPONENT_TYPE = "com.liferay.faces.alloy.component.paginator.Paginator";
public static final String RENDERER_TYPE = "com.liferay.faces.alloy.component.paginator.internal.PaginatorRenderer";
public static final String STYLE_CLASS_NAME = "alloy-paginator";
// Private Constants
private static final Collection<String> EVENT_NAMES = Collections.unmodifiableCollection(Arrays.asList("action"));
public Paginator() {
super();
setRendererType(RENDERER_TYPE);
}
@Override
public String getDefaultEventName() {
return "action";
}
@Override
public Collection<String> getEventNames() {
return EVENT_NAMES;
}
@Override
public String getFamily() {
return COMPONENT_FAMILY;
}
@Override
public String getStyleClass() {
// getStateHelper().eval(PropertyKeys.styleClass, null) is called because super.getStyleClass() may return the
// STYLE_CLASS_NAME of the super class.
String styleClass = (String) getStateHelper().eval(PaginatorPropertyKeys.styleClass, null);
return ComponentUtil.concatCssClasses(styleClass, STYLE_CLASS_NAME);
}
public UIData getUIData() {
UIData uiData = null;
String for_ = getFor();
if (for_ == null) {
uiData = getUIDataParent(this);
}
else {
UIComponent forComponent = findComponent(for_);
if (forComponent != null) {
if (forComponent instanceof UIData) {
uiData = (UIData) forComponent;
}
}
}
return uiData;
}
protected UIData getUIDataParent(UIComponent uiComponent) {
UIData uiDataParent = null;
UIComponent parent = uiComponent.getParent();
if (parent != null) {
if (parent instanceof UIData) {
uiDataParent = (UIData) parent;
}
else {
uiDataParent = getUIDataParent(parent);
}
}
return uiDataParent;
}
}
|
[
"neil.griffin.scm@gmail.com"
] |
neil.griffin.scm@gmail.com
|
f85ec343f6d210ccf91f731fbd45a471f8469db0
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Chart/10/org/jfree/chart/labels/XYZToolTipGenerator_generateToolTip_62.java
|
a815c892f5595f2f6522466ba8e1e79100178a80
|
[] |
no_license
|
hvdthong/NetML
|
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
|
9bb103da21327912e5a29cbf9be9ff4d058731a5
|
refs/heads/master
| 2021-06-30T15:03:52.618255
| 2020-10-07T01:58:48
| 2020-10-07T01:58:48
| 150,383,588
| 1
| 1
| null | 2018-09-26T07:08:45
| 2018-09-26T07:08:44
| null |
UTF-8
|
Java
| false
| false
| 440
|
java
|
org jfree chart label
interfac tooltip gener plot data
link xyz dataset xyzdataset
xyz tool tip gener xyztooltipgener tool tip gener xytooltipgener
gener tool tip text item item seri
param dataset dataset code code permit
param seri seri index base
param item item index base
tooltip text possibl code code
string gener tool tip generatetooltip xyz dataset xyzdataset dataset seri item
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
2d1d15ca50fd7d2ba93c7fd33d456155c27ec16e
|
f4dc98194091d07ee728ea9a8696f98126bc2d09
|
/app/src/main/java/com/gta/zssx/patrolclass/popup/NewAddPopupWindow.java
|
4b9577a990e3aeccd2242251dde32af8970a370e
|
[] |
no_license
|
ecenllen/ZSSX_V2.0
|
1c58e7c24ed27c80c5952663e355f8540f37636b
|
02640fb16aa39d985d6832e942a3fde6eb87ca66
|
refs/heads/master
| 2021-01-16T21:14:46.649616
| 2017-08-14T07:45:24
| 2017-08-14T07:45:24
| 100,223,879
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,710
|
java
|
package com.gta.zssx.patrolclass.popup;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.PopupWindow;
import android.widget.RelativeLayout;
import com.gta.zssx.R;
import com.gta.zssx.fun.assetmanagement.view.page.AssetManagementActivity;
import com.gta.zssx.fun.coursedaily.registercourse.view.pageV2.CourseDailyActivity;
import com.gta.zssx.main.HomePageActivity;
import com.gta.zssx.patrolclass.view.page.PatrolClassActivity;
import com.gta.zssx.patrolclass.view.page.SearchResultActivity;
import com.gta.zssx.pub.util.Screen;
/**
* [Description]
* <p>
* [How to use]
* <p>
* [Tips] Created by tengfei.lv on 2016/8/1 16:58.
*/
public class NewAddPopupWindow implements View.OnClickListener {
private Screen mScreen;
private Context context;
private PopupWindow popupWindow;
private NewAddPopupItemClickListener listener;
public NewAddPopupWindow(Context context, NewAddPopupItemClickListener listener, int which) {
this.context = context;
this.listener = listener;
if (which == 1) {
mScreen = new Screen((HomePageActivity) context);
} else if (which == 2) {
mScreen = new Screen((PatrolClassActivity) context);
} else if (which == 3) {
mScreen = new Screen((SearchResultActivity) context);
} else if (which == 4) {
mScreen = new Screen((CourseDailyActivity) context);
} else if (which == 5) {
mScreen = new Screen((AssetManagementActivity) context);
}
}
public void onCreate() {
View view = LayoutInflater.from(context).inflate(R.layout.home_add_page, null, false);
popupWindow = new PopupWindow(view, mScreen.getWidth(), mScreen.getHeight() - getStatusBarHeight(), true);
popupWindow.setBackgroundDrawable(new ColorDrawable(Color.WHITE));
popupWindow.setAnimationStyle(R.style.mypopwindow_anim_style);
popupWindow.showAtLocation(view, Gravity.NO_GRAVITY, 0, getStatusBarHeight());
initView(view);
}
private void initView(View view) {
AnimationTextView lLog_register = (AnimationTextView) view.findViewById(R.id.tv_log_register);
AnimationTextView lRandom_patrol = (AnimationTextView) view.findViewById(R.id.tv_random_class);
AnimationTextView lPlan_patrol = (AnimationTextView) view.findViewById(R.id.tv_plan_class);
AnimationTextView lAsset_dispatch = (AnimationTextView) view.findViewById(R.id.tv_asset_dispatch);
AnimationTextView lAsset_transform = (AnimationTextView) view.findViewById(R.id.tv_asset_transform);
AnimationTextView lAsset_repair = (AnimationTextView) view.findViewById(R.id.tv_asset_repair);
RelativeLayout lRl_exit = (RelativeLayout) view.findViewById(R.id.rl_exit);
lLog_register.setOnClickListener(this);
lRandom_patrol.setOnClickListener(this);
lPlan_patrol.setOnClickListener(this);
lAsset_dispatch.setOnClickListener(this);
lAsset_transform.setOnClickListener(this);
lAsset_repair.setOnClickListener(this);
lRl_exit.setOnClickListener(this);
}
private int getStatusBarHeight() {
int result = 0;
int resourceId = context.getResources().getIdentifier("status_bar_height", "dimen", "android");
if (resourceId > 0) {
result = context.getResources().getDimensionPixelSize(resourceId);
}
return result;
}
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.tv_log_register:
//跳转到日志登记页面
listener.judgeToLogRegister();
break;
case R.id.tv_random_class:
//跳转到随机巡课页面
listener.judgeToRandomClass();
break;
case R.id.tv_plan_class:
//跳转到按计划巡课页面
listener.judgeToPlanClass();
break;
case R.id.rl_exit:
break;
case R.id.tv_asset_dispatch:
break;
case R.id.tv_asset_transform:
break;
case R.id.tv_asset_repair:
break;
default:
break;
}
popupWindow.dismiss();
listener.exitClick();
}
public interface NewAddPopupItemClickListener {
void judgeToRandomClass();
void judgeToPlanClass();
void judgeToLogRegister();
void exitClick();
}
}
|
[
"weiye.chen@gtadata.com"
] |
weiye.chen@gtadata.com
|
126a751252c2eefa3520fefbb9e170d4b5e1b4d7
|
fca66adff89217bb28869017e2b4cfd382c1d31f
|
/tijava/src/tjjava/ten/TestParcel.java
|
91a73331e754c5746c52448f00a1b756bdaf86b8
|
[] |
no_license
|
a1422020484/tijava
|
096f8db56d0d5e72e5e56d436c16ac0a362188ca
|
1bd7b39dcf44816c1935e98d7406cd16f61911b7
|
refs/heads/master
| 2020-06-28T20:34:23.530504
| 2019-11-28T10:40:29
| 2019-11-28T10:40:29
| 74,475,470
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 817
|
java
|
package tjjava.ten;
import tjjava.ten.Parcel4.PDestination;
class Parcel4 {
private class PContents implements Contents {
private int i = 11;
@Override
public int value() {
// TODO Auto-generated method stub
return i;
}
}
protected class PDestination implements Destination{
private String label;
private PDestination(String whereTo){
label = whereTo;
}
@Override
public String readLable() {
return label;
}
}
public Destination destination(String s){
return new PDestination(s);
}
public Contents contents(){
return new PContents();
}
}
public class TestParcel {
public static void main(String[] args) {
Parcel4 p = new Parcel4();
Contents c = p.contents();
Destination d = p.destination("Tasmania");
// Destination f = p.new PDestination("Tasmania");
}
}
|
[
"1422020484@qq.com"
] |
1422020484@qq.com
|
f8821970b2f25cf503c3d2a171b321afc6709660
|
022980735384919a0e9084f57ea2f495b10c0d12
|
/src/ext-lltnxp/ext-service/src/com/sgs/portlet/vanbannoibo/service/FileDinhKemVanBanNoiBoLocalServiceFactory.java
|
7f57a22115ce5dabfb91509d0247263098847f1f
|
[] |
no_license
|
thaond/nsscttdt
|
474d8e359f899d4ea6f48dd46ccd19bbcf34b73a
|
ae7dacc924efe578ce655ddfc455d10c953abbac
|
refs/heads/master
| 2021-01-10T03:00:24.086974
| 2011-02-19T09:18:34
| 2011-02-19T09:18:34
| 50,081,202
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,809
|
java
|
package com.sgs.portlet.vanbannoibo.service;
import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
/**
* <a href="FileDinhKemVanBanNoiBoLocalServiceFactory.java.html"><b><i>View Source</i></b></a>
*
* <p>
* ServiceBuilder generated this class. Modifications in this class will be
* overwritten the next time is generated.
* </p>
*
* <p>
* This class is responsible for the lookup of the implementation for
* <code>com.sgs.portlet.vanbannoibo.service.FileDinhKemVanBanNoiBoLocalService</code>.
* Spring manages the lookup and lifecycle of the beans. This means you can
* modify the Spring configuration files to return a different implementation or
* to inject additional behavior.
* </p>
*
* <p>
* See the <code>spring.configs</code> property in portal.properties for
* additional information on how to customize the Spring XML files.
* </p>
*
* @author Brian Wing Shun Chan
*
* @see com.sgs.portlet.vanbannoibo.service.FileDinhKemVanBanNoiBoLocalService
* @see com.sgs.portlet.vanbannoibo.service.FileDinhKemVanBanNoiBoLocalServiceUtil
*
*/
public class FileDinhKemVanBanNoiBoLocalServiceFactory {
private static final String _FACTORY = FileDinhKemVanBanNoiBoLocalServiceFactory.class.getName();
private static final String _IMPL = FileDinhKemVanBanNoiBoLocalService.class.getName() +
".impl";
private static final String _TX_IMPL = FileDinhKemVanBanNoiBoLocalService.class.getName() +
".transaction";
private static FileDinhKemVanBanNoiBoLocalServiceFactory _factory;
private static FileDinhKemVanBanNoiBoLocalService _impl;
private static FileDinhKemVanBanNoiBoLocalService _txImpl;
private FileDinhKemVanBanNoiBoLocalService _service;
/**
* @deprecated
*/
public static FileDinhKemVanBanNoiBoLocalService getService() {
return _getFactory()._service;
}
/**
* @deprecated
*/
public static FileDinhKemVanBanNoiBoLocalService getImpl() {
if (_impl == null) {
_impl = (FileDinhKemVanBanNoiBoLocalService) PortalBeanLocatorUtil.locate(_IMPL);
}
return _impl;
}
/**
* @deprecated
*/
public static FileDinhKemVanBanNoiBoLocalService getTxImpl() {
if (_txImpl == null) {
_txImpl = (FileDinhKemVanBanNoiBoLocalService) PortalBeanLocatorUtil.locate(_TX_IMPL);
}
return _txImpl;
}
/**
* @deprecated
*/
public void setService(FileDinhKemVanBanNoiBoLocalService service) {
_service = service;
}
private static FileDinhKemVanBanNoiBoLocalServiceFactory _getFactory() {
if (_factory == null) {
_factory = (FileDinhKemVanBanNoiBoLocalServiceFactory) PortalBeanLocatorUtil.locate(_FACTORY);
}
return _factory;
}
}
|
[
"nguyentanmo@843501e3-6f96-e689-5e61-164601347e4e"
] |
nguyentanmo@843501e3-6f96-e689-5e61-164601347e4e
|
ac2238513f934cdc6cf75ebfdce6db5cbf0c6c46
|
6baf1fe00541560788e78de5244ae17a7a2b375a
|
/hollywood/com.oculus.assistant-base/sources/X/C0784hI.java
|
b7c27860908195ee960b68f64e91fa09c5cf63b4
|
[] |
no_license
|
phwd/quest-tracker
|
286e605644fc05f00f4904e51f73d77444a78003
|
3d46fbb467ba11bee5827f7cae7dfeabeb1fd2ba
|
refs/heads/main
| 2023-03-29T20:33:10.959529
| 2021-04-10T22:14:11
| 2021-04-10T22:14:11
| 357,185,040
| 4
| 2
| null | 2021-04-12T12:28:09
| 2021-04-12T12:28:08
| null |
UTF-8
|
Java
| false
| false
| 1,041
|
java
|
package X;
import com.facebook.common.time.RealtimeSinceBootClock;
import java.util.LinkedHashMap;
import java.util.Map;
/* renamed from: X.hI reason: case insensitive filesystem */
public final class C0784hI implements AbstractC00869q {
public LinkedHashMap A00 = new LinkedHashMap();
public final synchronized void A00(String str, C0113Ar ar) {
this.A00.put(str, Long.valueOf(RealtimeSinceBootClock.A00.now() - ar.A03));
}
@Override // X.AbstractC00869q
public final synchronized void A3u() {
StringBuilder sb = new StringBuilder();
for (Map.Entry entry : this.A00.entrySet()) {
if (sb.length() != 0) {
sb.append(",");
}
sb.append((String) entry.getKey());
sb.append(":");
sb.append(entry.getValue());
}
C00879r.A00.A03(EnumC00899t.MESSAGE_BUS_LAG, sb.toString());
}
@Override // X.AbstractC00869q
public final synchronized void A4F() {
this.A00 = new LinkedHashMap();
}
}
|
[
"cyuubiapps@gmail.com"
] |
cyuubiapps@gmail.com
|
e0da9948bb6c01a7608fbcd77254c1dcff9800b6
|
27a13543c5a21811e696278b5212755ecdebca53
|
/hsco/src/main/java/hsco/mis/hrm/HRM040201/HRM040201ServiceImpl.java
|
b0ece7266dc3993605c0677aa4594b133a2c31e1
|
[] |
no_license
|
chaseDeveloper/hsco
|
9dad73c971500c4bd98adfefa3e91a91d26ca318
|
7052d6da3ac772cd3b13ec391818139355935916
|
refs/heads/master
| 2023-06-15T23:55:10.592683
| 2021-07-06T07:46:07
| 2021-07-06T07:46:07
| 383,377,343
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,801
|
java
|
package hsco.mis.hrm.HRM040201;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.nexacro.xapi.data.DataSet;
import hsco.cmm.exception.NexaServiceException;
import hsco.cmm.ria.nexacro.NexacroConstant;
import hsco.cmm.ria.nexacro.map.DataSetMap;
import hsco.cmm.service.BaseService;
/**
* <pre>
* @Project Name : 화성도시공사 차세대정보시스템
* @Class Name : HRM040201ServiceImpl.java
* @Description :
* @author : 김형태
* @since : 2015. 09. 04.
* @version : 1.0
* @see :
* @COPYRIGHT (c) 2015 나눔아이씨티, Inc. All Right Reserved.
* <pre>
* ------------------------------------------------------------------
* Modification Information
* ------------------------------------------------------------------
* 작성일 작성자 내용
* ------------------------------------------------------------------
* 2015. 09.04. 김형태 최초생성
* </pre>
*/
@Service("HRM040201Service")
public class HRM040201ServiceImpl extends BaseService implements HRM040201Service {
protected Logger log = LoggerFactory.getLogger(this.getClass());
/** 제안입상자 목록조회 */
@SuppressWarnings({ "rawtypes", "unchecked" })
public void tbhrmPropseWnpzList(DataSetMap tranInfo, Map<String, Object> inVar,
Map<String, DataSetMap> inDataset, Map<String, Object> outVar,
Map<String, DataSetMap> outDataset) throws NexaServiceException {
DataSetMap inDsMap = (DataSetMap)inDataset.get("input1");
Map inMap = null;
if (inDsMap != null)
inMap = inDsMap.get(0);
DataSetMap outDsMap = new DataSetMap();
outDsMap.setRowMaps((List<Map>) baseDao.list("HRM040201DAO.tbhrmPropseWnpzList", inMap));
outDataset.put("output1", outDsMap);
}
/** 제안입상 저장(CUD) */
@SuppressWarnings({ "rawtypes" })
public void tbhrmPropseWnpzSave(DataSetMap tranInfo, Map<String, Object> inVar,
Map<String, DataSetMap> inDataset, Map<String, Object> outVar,
Map<String, DataSetMap> outDataset) throws NexaServiceException {
DataSetMap list = (DataSetMap) inDataset.get("input1");
for (int x = 0; x < list.size(); x++) {
Map map = list.get(x);
int rowType = ((Integer) map.get(NexacroConstant.DATASET_ROW_TYPE)).intValue();
switch (rowType) {
case DataSet.ROW_TYPE_INSERTED:
baseDao.insert("HRM040201DAO.insertPropseWnpz", map);
break;
case DataSet.ROW_TYPE_UPDATED:
baseDao.update("HRM040201DAO.updatePropseWnpz", map);
break;
case DataSet.ROW_TYPE_DELETED:
baseDao.delete("HRM040201DAO.deletePropseWnpz", map);
break;
}
}
}
/** 사외수상자 목록조회 */
@SuppressWarnings({ "rawtypes", "unchecked" })
public void tbhrmOutCompanyWnpzList(DataSetMap tranInfo, Map<String, Object> inVar,
Map<String, DataSetMap> inDataset, Map<String, Object> outVar,
Map<String, DataSetMap> outDataset) throws NexaServiceException {
DataSetMap inDsMap = (DataSetMap)inDataset.get("input1");
Map inMap = null;
if (inDsMap != null)
inMap = inDsMap.get(0);
DataSetMap outDsMap = new DataSetMap();
outDsMap.setRowMaps((List<Map>) baseDao.list("HRM040201DAO.tbhrmOutCompanyWnpzList", inMap));
outDataset.put("output1", outDsMap);
}
/** 사외수상 저장(CUD) */
@SuppressWarnings({ "rawtypes" })
public void tbhrmOutCompanyWnpzSave(DataSetMap tranInfo, Map<String, Object> inVar,
Map<String, DataSetMap> inDataset, Map<String, Object> outVar,
Map<String, DataSetMap> outDataset) throws NexaServiceException {
DataSetMap list = (DataSetMap) inDataset.get("input1");
for (int x = 0; x < list.size(); x++) {
Map map = list.get(x);
int rowType = ((Integer) map.get(NexacroConstant.DATASET_ROW_TYPE)).intValue();
switch (rowType) {
case DataSet.ROW_TYPE_INSERTED:
baseDao.insert("HRM040201DAO.insertOutCompanyWnpz", map);
break;
case DataSet.ROW_TYPE_UPDATED:
baseDao.update("HRM040201DAO.updateOutCompanyWnpz", map);
break;
case DataSet.ROW_TYPE_DELETED:
baseDao.delete("HRM040201DAO.deleteOutCompanyWnpz", map);
break;
}
}
}
}
|
[
"kdk@ichase.co.kr"
] |
kdk@ichase.co.kr
|
5c2cffd641a38b874a4749259792c9bf022e1583
|
b6ede16e87a6a08104051332ee6ab5555e0e719f
|
/barteczko/src/main/java/oca/ch02/SwichExamples.java
|
08ebe585b71869bd7c870aacf20c21d5abb4eb7f
|
[] |
no_license
|
krzysztofkolcz/java
|
96929e4b993ddfb4b3c00b312dcb4fa56366fdf0
|
f10f14cd4fd8050be3e35ea0d65b2d8dc9cbd55f
|
refs/heads/master
| 2021-01-20T20:47:51.571515
| 2019-10-12T12:47:48
| 2019-10-12T12:47:48
| 64,404,216
| 0
| 0
| null | 2020-10-13T11:40:46
| 2016-07-28T14:53:34
|
Java
|
UTF-8
|
Java
| false
| false
| 3,465
|
java
|
package oca.ch02;
/*
* 1. Only String, byte, char, short, int, and enum values can be used as types of a switch variable.
* (String is allowed since Java 7.) Wrapper classes Byte, Character, Short, and Integer are allowed as well.
* 2. The case constants must be assignable to the switch variable.
* For example, if your switch variable is of class String, your case labels must use Strings as well.
* 3. The switch variable must be big enough to hold all the case constants.
* For example, if the switch variable is of type char, then none of the case
* constants can be greater than 65535 because a char's range is from 0 to 65535.
* Similarly, the following will not compile because 300 cannot be assigned to 'by',
* which can only hold values from -128 to 127. byte by = 10;
* switch(by){ case 200 : //some code; case 300 : //some code; }
* 4. All case labels should be COMPILE TIME CONSTANTS.
* 5. No two of the case constant expressions associated with a switch statement may have the same value.
* 6. At most one default label may be associated with the same switch statement.
*/
public class SwichExamples {
public static void main(String[] args) {
System.out.println("main");
// switch006((byte) 8);
// switch007();
switchWithIf() ;
}
public static void case001() {
int x = 3;
switch(x) {
default: System.out.println("default");
case 1: System.out.println("1");
case 2: System.out.println("2");
}
}
public static void case002() {
int x = 3;
switch(x) {
default: System.out.println("default");
case 1: System.out.println("1");
case 2: System.out.println("2");
}
}
public static void case003() {
String x = "bla";
final String y = "bla";
switch(x) {
default: System.out.println("default");
// case 'bla': System.out.println("bla");
case y: System.out.println("y");
case "blak": System.out.println("y");
// case x: System.out.println(x);//case expression must be constant expression
}
}
public static void case004() {
char x = '\u0001';
switch(x) {
default: System.out.println("default");
case 1 : System.out.println("1");
case 65535 : System.out.println("1");
// case 65536 : System.out.println("1");
}
}
public static void case005() {
int x = 1;
switch(x) {
default: System.out.println("default");
case 1 : System.out.println("1");
case 'a' : System.out.println("a");
}
}
public static void switch006(byte x) {
switch(x){
case 'b': // 1
default : // 2
case -2: // 3
case 80: // 4
}
}
public static void switch007() {
switch (1) { default : break; }
}
public static void switchIntAndCharOk() {
int x = 1;
switch(x){
case 'a' : System.out.println("a");//OK
}
}
public static void switchIntegerAndCharWrong() {
//Note that the following is invalid though because a char cannot be assigned to an Integer:
Integer x = 1;// int x = 1; is valid.
switch(x){
// case 'a' : System.out.println("a");//DOES NOT COMPILE
}
}
public static void switchWithIf() {
int k = 9, s = 5;
switch(k){
default :
if( k == 10) {
s = s*2;
}else{
s = s+4;
break;
}
case 7 : s = s+3;
}
System.out.println(s);
}
public static int test() {
int i = 0,j = 1;
return i>j?i:i;
}
}
|
[
"krzysztof.kolcz@gmail.com"
] |
krzysztof.kolcz@gmail.com
|
fef55cb7191aa71ecba778ccb8e50e949480106a
|
ed166738e5dec46078b90f7cca13a3c19a1fd04b
|
/minor/guice-OOM-error-reproduction/src/main/java/gen/D_Gen26.java
|
d7a8dc900c5a9833743f2755f0586fa5904851b1
|
[] |
no_license
|
michalradziwon/script
|
39efc1db45237b95288fe580357e81d6f9f84107
|
1fd5f191621d9da3daccb147d247d1323fb92429
|
refs/heads/master
| 2021-01-21T21:47:16.432732
| 2016-03-23T02:41:50
| 2016-03-23T02:41:50
| 22,663,317
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 326
|
java
|
package gen;
public class D_Gen26 {
@com.google.inject.Inject
public D_Gen26(D_Gen27 d_gen27){
System.out.println(this.getClass().getCanonicalName() + " created. " + d_gen27 );
}
@com.google.inject.Inject public void injectInterfaceWithoutImpl(gen.InterfaceWithoutImpl i){} // should expolode :)
}
|
[
"michal.radzi.won@gmail.com"
] |
michal.radzi.won@gmail.com
|
be8442f2bbaa36157e338ff7beddf9576b80dc05
|
17e8438486cb3e3073966ca2c14956d3ba9209ea
|
/dso/branches/3.1/code/base/dso-spring-tests/tests.system/com/tctest/spring/integrationtests/tests/JMXSupportTest.java
|
52430b068761497fd8dbb5d27d05f32188f57045
|
[] |
no_license
|
sirinath/Terracotta
|
fedfc2c4f0f06c990f94b8b6c3b9c93293334345
|
00a7662b9cf530dfdb43f2dd821fa559e998c892
|
refs/heads/master
| 2021-01-23T05:41:52.414211
| 2015-07-02T15:21:54
| 2015-07-02T15:21:54
| 38,613,711
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,090
|
java
|
/*
* All content copyright (c) 2003-2008 Terracotta, Inc., except as may otherwise be noted in a separate copyright
* notice. All rights reserved.
*/
package com.tctest.spring.integrationtests.tests;
import com.tc.test.server.appserver.deployment.AbstractTwoServerDeploymentTest;
import com.tc.test.server.appserver.deployment.DeploymentBuilder;
import com.tctest.spring.bean.ISingleton;
import com.tctest.spring.integrationtests.SpringTwoServerTestSetup;
import javax.management.MBeanServerConnection;
import javax.management.ObjectName;
import junit.framework.Test;
/**
* Test TC-Spring working with Spring JMX support.
*/
public class JMXSupportTest extends AbstractTwoServerDeploymentTest {
public JMXSupportTest() {
//
}
private static final String REMOTE_SERVICE_NAME = "Singleton";
private static final String BEAN_DEFINITION_FILE_FOR_TEST = "classpath:/com/tctest/spring/beanfactory-jmx.xml";
private static final String CONFIG_FILE_FOR_TEST = "/tc-config-files/singleton-tc-config.xml";
private static ISingleton singleton1;
private static ISingleton singleton2;
private static MBeanServerConnection mbeanServerConn1;
private static MBeanServerConnection mbeanServerConn2;
public void testJMXSupport() throws Exception {
logger.debug("testing JMX Support");
singleton1.incrementCounter();
singleton2.incrementCounter();
Integer counter1 = (Integer) mbeanServerConn1.getAttribute(new ObjectName("bean:name=singleton"), "Counter");
Integer counter2 = (Integer) mbeanServerConn2.getAttribute(new ObjectName("bean:name=singleton"), "Counter");
assertEquals("Expecting multiple increments in singleton", 2, singleton1.getCounter());
assertEquals("Expecting multiple increments in singleton", 2, singleton2.getCounter());
assertEquals("Expecting multiple increments in mbean", 2, counter1.intValue());
assertEquals("Expecting multiple increments in mbean", 2, counter2.intValue());
logger.debug("!!!! Asserts passed !!!");
}
private static class JMXSupportTestSetup extends SpringTwoServerTestSetup {
private JMXSupportTestSetup() {
super(JMXSupportTest.class, CONFIG_FILE_FOR_TEST, "test-singleton");
}
protected void setUp() throws Exception {
super.setUp();
if (shouldDisable()) return;
try {
singleton1 = (ISingleton) server0.getProxy(ISingleton.class, REMOTE_SERVICE_NAME);
singleton2 = (ISingleton) server1.getProxy(ISingleton.class, REMOTE_SERVICE_NAME);
mbeanServerConn1 = server0.getMBeanServerConnection();
mbeanServerConn2 = server1.getMBeanServerConnection();
} catch (Exception e) {
e.printStackTrace();
throw e;
}
}
protected void configureWar(DeploymentBuilder builder) {
builder.addBeanDefinitionFile(BEAN_DEFINITION_FILE_FOR_TEST);
builder.addRemoteService(REMOTE_SERVICE_NAME, "singleton", ISingleton.class);
}
}
public static Test suite() {
return new JMXSupportTestSetup();
}
}
|
[
"hhuynh@7fc7bbf3-cf45-46d4-be06-341739edd864"
] |
hhuynh@7fc7bbf3-cf45-46d4-be06-341739edd864
|
08e461c791f7f68ec09f5df7f15bf086453702e0
|
e05a290f18b0ae8089709f4fbe92f3f49042daee
|
/registration/registration-service/src/main/java/io/mosip/registration/dto/biometric/BiometricExceptionDTO.java
|
c9e5f0b7ad4446441822b3f9614615f21535b38f
|
[] |
no_license
|
Aswin-MN/personal
|
25e6d6bf306e61a236d0ea886d33ea621bb7dc56
|
d096fa6ab16e13a66a82be0325cf4d117d3669f3
|
refs/heads/master
| 2021-10-11T16:24:08.604019
| 2019-01-28T12:52:41
| 2019-01-28T12:52:41
| 166,238,628
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,158
|
java
|
package io.mosip.registration.dto.biometric;
import io.mosip.registration.dto.BaseDTO;
/**
* This class contains the information on exception fingerprint data
*
* @author Dinesh Asokan
* @since 1.0.0
*/
public class BiometricExceptionDTO extends BaseDTO {
// Fingerprint or Iris
protected String biometricType;
protected String missingBiometric;
protected String exceptionDescription;
// Permanent or Temporary
protected String exceptionType;
public String getBiometricType() {
return biometricType;
}
public void setBiometricType(String biometricType) {
this.biometricType = biometricType;
}
public String getMissingBiometric() {
return missingBiometric;
}
public void setMissingBiometric(String missingBiometric) {
this.missingBiometric = missingBiometric;
}
public String getExceptionDescription() {
return exceptionDescription;
}
public void setExceptionDescription(String exceptionDescription) {
this.exceptionDescription = exceptionDescription;
}
public String getExceptionType() {
return exceptionType;
}
public void setExceptionType(String exceptionType) {
this.exceptionType = exceptionType;
}
}
|
[
"info@mosip.io"
] |
info@mosip.io
|
2a8ec69234c404ca1d3d8e062f61111d581e4267
|
278a79a6cf9f2ea49f8bddd51dc3bbfacedc38f8
|
/src/main/java/ru/m2mcom/pondnotes/repository/search/MeterReadingSearchRepository.java
|
a0b1febf843290101819171ca43a08d37d1f243d
|
[] |
no_license
|
alexcopy/pondNotes_micro
|
8b3a5ce967632d72c4d0e39c5e7b7c05f4fc797f
|
5395a3f439cea29b6f9a78892126ff098628b4be
|
refs/heads/master
| 2021-01-23T06:01:35.540353
| 2017-04-11T16:23:50
| 2017-04-11T16:23:50
| 86,330,400
| 0
| 0
| null | 2017-04-04T22:38:14
| 2017-03-27T12:04:17
|
Java
|
UTF-8
|
Java
| false
| false
| 358
|
java
|
package ru.m2mcom.pondnotes.repository.search;
import ru.m2mcom.pondnotes.domain.MeterReading;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
/**
* Spring Data Elasticsearch repository for the MeterReading entity.
*/
public interface MeterReadingSearchRepository extends ElasticsearchRepository<MeterReading, Long> {
}
|
[
"alexr@nr-online.com"
] |
alexr@nr-online.com
|
129177e9b8506a8a8ef09cba536363a453e925f4
|
121d10146315ef36faf7c4aad7ae0d9c50d215ea
|
/src/main/java/com/wdz/boot/helloboot/mapper/TableConstraintsMapper.java
|
031d47253059ec740508fed09d4c2574ce3786cf
|
[] |
no_license
|
wdzlove/Spring-boot-mybatis
|
ea3ceda8055656121f136e401d8a6076a3136c38
|
07f6fd3458c17640c3af93c585b2e04361771b18
|
refs/heads/master
| 2020-04-26T02:55:15.194464
| 2019-03-01T08:57:04
| 2019-03-01T08:57:04
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 202
|
java
|
package com.wdz.boot.helloboot.mapper;
import com.wdz.boot.helloboot.entity.TableConstraints;
import tk.mybatis.MyMapper;
public interface TableConstraintsMapper extends MyMapper<TableConstraints> {
}
|
[
"wangdingzhu"
] |
wangdingzhu
|
9ce15b974c6b060a4b12d108f2a24a11bf9a7fe8
|
0448b9309c0e49ba74fc7e29d76af47632be078d
|
/bitkylin-algorithm/section-2/leetcode2/TopKFrequentElements.java
|
057c5b5278d060bf632226e7d46303c7fc37dca2
|
[
"MIT"
] |
permissive
|
bitkylin/featureLab
|
f0a506309eaf29e80a606670784481c4f31c0524
|
5e02a906534d68eb6b649d1efdf48e07eea27c84
|
refs/heads/master
| 2023-08-04T19:24:04.091882
| 2023-07-23T06:56:53
| 2023-07-23T06:56:53
| 184,685,587
| 23
| 10
|
MIT
| 2023-07-23T06:56:54
| 2019-05-03T02:00:49
|
Java
|
UTF-8
|
Java
| false
| false
| 3,434
|
java
|
/**
* <p>给你一个整数数组 <code>nums</code> 和一个整数 <code>k</code> ,请你返回其中出现频率前 <code>k</code> 高的元素。你可以按 <strong>任意顺序</strong> 返回答案。</p>
*
* <p> </p>
*
* <p><strong>示例 1:</strong></p>
*
* <pre>
* <strong>输入: </strong>nums = [1,1,1,2,2,3], k = 2
* <strong>输出: </strong>[1,2]
* </pre>
*
* <p><strong>示例 2:</strong></p>
*
* <pre>
* <strong>输入: </strong>nums = [1], k = 1
* <strong>输出: </strong>[1]</pre>
*
* <p> </p>
*
* <p><strong>提示:</strong></p>
*
* <ul>
* <li><code>1 <= nums.length <= 10<sup>5</sup></code></li>
* <li><code>k</code> 的取值范围是 <code>[1, 数组中不相同的元素的个数]</code></li>
* <li>题目数据保证答案唯一,换句话说,数组中前 <code>k</code> 个高频元素的集合是唯一的</li>
* </ul>
*
* <p> </p>
*
* <p><strong>进阶:</strong>你所设计算法的时间复杂度 <strong>必须</strong> 优于 <code>O(n log n)</code> ,其中 <code>n</code><em> </em>是数组大小。</p>
* <div><div>Related Topics</div><div><li>数组</li><li>哈希表</li><li>分治</li><li>桶排序</li><li>计数</li><li>快速选择</li><li>排序</li><li>堆(优先队列)</li></div></div><br><div><li>👍 1010</li><li>👎 0</li></div>
*/
package leetcode2;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;
import java.util.PriorityQueue;
public class TopKFrequentElements {
public static void main(String[] args) {
Solution solution = new TopKFrequentElements().new Solution();
}
/**
* 使用定长的小顶堆
* 时间复杂度:O(NlogK) = O(n) + O(NlogK)
*/
class Solution {
public int[] topKFrequent(int[] nums, int k) {
if (nums == null || nums.length < 2) {
return nums;
}
Map<Integer, Integer> map = new HashMap<>(nums.length);
for (int num : nums) {
map.put(num, map.getOrDefault(num, 0) + 1);
}
PriorityQueue<Map.Entry<Integer, Integer>> queue = new PriorityQueue<>(Comparator.comparingInt(Map.Entry::getValue));
for (Map.Entry<Integer, Integer> entry : map.entrySet()) {
queue.add(entry);
if (queue.size() > k) {
queue.poll();
}
}
int[] res = new int[k];
for (int i = 0; !queue.isEmpty() && i < k; i++) {
res[i] = queue.poll().getKey();
}
return res;
}
}
/**
* 大顶堆,无限制容量
* O(NlogN),时间复杂度不符合要求
*/
class Solution2 {
public int[] topKFrequent(int[] nums, int k) {
Map<Integer, Integer> map = new HashMap<>();
for (int num : nums) {
Integer count = map.get(num);
map.put(num, count == null ? 1 : count + 1);
}
PriorityQueue<Map.Entry<Integer, Integer>> queue = new PriorityQueue<>((o1, o2) -> o2.getValue() - o1.getValue());
// map.entrySet().forEach(item -> queue.add(item));
queue.addAll(map.entrySet());
int[] res = new int[k];
for (int i = 0; i < k && !queue.isEmpty(); i++) {
res[i] = queue.poll().getKey();
}
return res;
}
}
}
|
[
"bitkylin@163.com"
] |
bitkylin@163.com
|
f71627a1ea9c21dbc36da669432db36610ecee36
|
dc654f1fd11552b97fb062c0c7384017d9a96e66
|
/app/src/main/java/com/qlckh/chunlvv/activity/SplashActivity.java
|
b25b4b1e029c8f1b60ac1b8e4e3c26ca8a4d9a1d
|
[] |
no_license
|
AndyAls/chulvv
|
efef7d09d8567d9dacfd091b8a86dc2aa0171f81
|
7b832883683195e8b25d684b984a902cc4a9dbcb
|
refs/heads/master
| 2021-06-20T01:33:21.591074
| 2019-10-11T02:52:02
| 2019-10-11T02:52:02
| 207,237,043
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,235
|
java
|
package com.qlckh.chunlvv.activity;
import android.animation.ObjectAnimator;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationSet;
import android.view.animation.RotateAnimation;
import android.view.animation.ScaleAnimation;
import android.widget.ImageView;
import android.widget.TextView;
import com.gyf.barlibrary.ImmersionBar;
import com.qlckh.chunlvv.R;
import com.qlckh.chunlvv.base.BaseMvpActivity;
import com.qlckh.chunlvv.impl.LoginPresenterImpl;
import com.qlckh.chunlvv.presenter.LoginPresenter;
import com.qlckh.chunlvv.user.UseDo;
import com.qlckh.chunlvv.user.UserConfig;
import com.qlckh.chunlvv.utils.GlideUtil;
import butterknife.BindView;
import butterknife.ButterKnife;
/**
* @author Andy
* @date 2018/5/14 11:00
* Desc: 启动界面
*/
public class SplashActivity extends BaseMvpActivity<LoginPresenter> implements LoginPresenter.LoginView {
@BindView(R.id.iv_bg)
ImageView ivBg;
@BindView(R.id.iv_logo)
ImageView ivLogo;
@BindView(R.id.tv_logo)
TextView tvLogo;
@Override
public int getContentView() {
return R.layout.activity_splash;
}
@Override
protected boolean isSetFondSize() {
return true;
}
@Override
public void initView() {
header.setVisibility(View.GONE);
if ((getIntent().getFlags() & Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT) != 0) {
finish();
return;
}
ImmersionBar.with(this).transparentBar().init();
showAnim();
}
private void showAnim() {
GlideUtil.displayCircleImg(this, R.mipmap.app_icon, ivLogo);
// 以view中心为缩放点,由初始状态放大两倍
ScaleAnimation animation = new ScaleAnimation(
0.2f, 1.0f, 0.2f, 1.0f,
Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f
);
animation.setRepeatCount(1);
animation.setDuration(2000);
tvLogo.startAnimation(animation);
RotateAnimation rotateAnimation = new RotateAnimation(180f, 360f, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
rotateAnimation.setRepeatCount(1);
rotateAnimation.setDuration(2000);
AnimationSet set = new AnimationSet(false);
set.addAnimation(animation);
set.addAnimation(rotateAnimation);
ivLogo.startAnimation(set);
}
@Override
public void initDate() {
if (UserConfig.isLogin()) {
if (UserConfig.getType() == 0) {
new Handler().postDelayed(this::toMian,2000);
} else {
mPresenter.login(UserConfig.getUserName(), UserConfig.getPwd(), UserConfig.getType());
}
} else {
toLogin();
}
}
@Override
public void showError(String msg) {
showShort(msg);
toLogin();
}
@Override
public void release() {
// RxHttpUtils.cancelAllRequest();
}
@Override
protected LoginPresenter initPresenter() {
return new LoginPresenterImpl();
}
@Override
public void showLoading() {
}
@Override
public void dissmissLoading() {
}
@Override
public void getUser(UseDo info) {
if (info.getStatus() == 1) {
if (UserConfig.getType() == 0) {
toMian();
} else {
toXmain();
}
UserConfig.userInfo = info.getData();
UserConfig.savaLogin(true);
} else {
showShort(info.getMsg());
toLogin();
UserConfig.savaLogin(false);
}
}
private void toXmain() {
startActivity(new Intent(this, XMianActivity.class));
finish();
overridePendingTransition(0, 0);
}
private void toMian() {
startActivity(new Intent(this, MainActivity.class));
finish();
overridePendingTransition(0, 0);
}
private void toLogin() {
startActivity(new Intent(this, LoginActivity.class));
finish();
overridePendingTransition(0, 0);
}
}
|
[
"andy_als@163.com"
] |
andy_als@163.com
|
0ac8ca4aa147ed509560534f4cf7a4c6d1a515fa
|
d71e879b3517cf4fccde29f7bf82cff69856cfcd
|
/ExtractedJars/Ibotta_com.ibotta.android/javafiles/com/bumptech/glide/request/target/ViewTarget$SizeDeterminer$SizeDeterminerLayoutListener.java
|
eec9d77714062584bc609e3d5e4cdaf09ad3b1e3
|
[
"MIT"
] |
permissive
|
Andreas237/AndroidPolicyAutomation
|
b8e949e072d08cf6c6166c3f15c9c63379b8f6ce
|
c1ed10a2c6d4cf3dfda8b8e6291dee2c2a15ee8a
|
refs/heads/master
| 2020-04-10T02:14:08.789751
| 2019-05-16T19:29:11
| 2019-05-16T19:29:11
| 160,739,088
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,237
|
java
|
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.bumptech.glide.request.target;
import android.util.Log;
import java.lang.ref.WeakReference;
// Referenced classes of package com.bumptech.glide.request.target:
// ViewTarget
private static final class ViewTarget$SizeDeterminer$SizeDeterminerLayoutListener
implements android.view.ViewTreeObserver.OnPreDrawListener
{
public boolean onPreDraw()
{
if(Log.isLoggable("ViewTarget", 2))
//* 0 0:ldc1 #34 <String "ViewTarget">
//* 1 2:iconst_2
//* 2 3:invokestatic #40 <Method boolean Log.isLoggable(String, int)>
//* 3 6:ifeq 40
{
StringBuilder stringbuilder = new StringBuilder();
// 4 9:new #42 <Class StringBuilder>
// 5 12:dup
// 6 13:invokespecial #43 <Method void StringBuilder()>
// 7 16:astore_1
stringbuilder.append("OnGlobalLayoutListener called attachStateListener=");
// 8 17:aload_1
// 9 18:ldc1 #45 <String "OnGlobalLayoutListener called attachStateListener=">
// 10 20:invokevirtual #49 <Method StringBuilder StringBuilder.append(String)>
// 11 23:pop
stringbuilder.append(((Object) (this)));
// 12 24:aload_1
// 13 25:aload_0
// 14 26:invokevirtual #52 <Method StringBuilder StringBuilder.append(Object)>
// 15 29:pop
Log.v("ViewTarget", stringbuilder.toString());
// 16 30:ldc1 #34 <String "ViewTarget">
// 17 32:aload_1
// 18 33:invokevirtual #56 <Method String StringBuilder.toString()>
// 19 36:invokestatic #60 <Method int Log.v(String, String)>
// 20 39:pop
}
ViewTarget.SizeDeterminer sizedeterminer = (ViewTarget.SizeDeterminer)sizeDeterminerRef.get();
// 21 40:aload_0
// 22 41:getfield #28 <Field WeakReference sizeDeterminerRef>
// 23 44:invokevirtual #64 <Method Object WeakReference.get()>
// 24 47:checkcast #8 <Class ViewTarget$SizeDeterminer>
// 25 50:astore_1
if(sizedeterminer != null)
//* 26 51:aload_1
//* 27 52:ifnull 59
sizedeterminer.checkCurrentDimens();
// 28 55:aload_1
// 29 56:invokevirtual #67 <Method void ViewTarget$SizeDeterminer.checkCurrentDimens()>
return true;
// 30 59:iconst_1
// 31 60:ireturn
}
private final WeakReference sizeDeterminerRef;
ViewTarget$SizeDeterminer$SizeDeterminerLayoutListener(ViewTarget.SizeDeterminer sizedeterminer)
{
// 0 0:aload_0
// 1 1:invokespecial #21 <Method void Object()>
sizeDeterminerRef = new WeakReference(((Object) (sizedeterminer)));
// 2 4:aload_0
// 3 5:new #23 <Class WeakReference>
// 4 8:dup
// 5 9:aload_1
// 6 10:invokespecial #26 <Method void WeakReference(Object)>
// 7 13:putfield #28 <Field WeakReference sizeDeterminerRef>
// 8 16:return
}
}
|
[
"silenta237@gmail.com"
] |
silenta237@gmail.com
|
8ac8cc313fd892a1d1dda8051b9c5a0f6a3f336c
|
c024ac5e0b74dd7e5775753294962390b45e9ae7
|
/src/main/java/net/mcreator/blahmod/procedures/DMBlockHitProcedure.java
|
a7cf176272bdeffe94b30ca638bc98be512482f6
|
[] |
no_license
|
blahblahbal/Blah-s-Minecraft-MCreator-Mod
|
600f9cce717b965c51de5b15a9762c50138cfe22
|
a8cdf57bc5078de5e07fc233f5f3542c94b3255d
|
refs/heads/master
| 2023-05-06T11:03:33.889262
| 2021-06-03T02:25:09
| 2021-06-03T02:25:09
| 373,354,094
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,605
|
java
|
package net.mcreator.blahmod.procedures;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraft.world.World;
import net.minecraft.world.IWorld;
import net.minecraft.world.GameType;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.SoundCategory;
import net.minecraft.util.ResourceLocation;
import net.minecraft.entity.player.ServerPlayerEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.Entity;
import net.minecraft.client.network.play.NetworkPlayerInfo;
import net.minecraft.client.entity.player.AbstractClientPlayerEntity;
import net.minecraft.client.Minecraft;
import net.mcreator.blahmod.BlahmodModElements;
import net.mcreator.blahmod.BlahmodMod;
import java.util.Map;
@BlahmodModElements.ModElement.Tag
public class DMBlockHitProcedure extends BlahmodModElements.ModElement {
public DMBlockHitProcedure(BlahmodModElements instance) {
super(instance, 1278);
}
public static void executeProcedure(Map<String, Object> dependencies) {
if (dependencies.get("entity") == null) {
if (!dependencies.containsKey("entity"))
BlahmodMod.LOGGER.warn("Failed to load dependency entity for procedure DMBlockHit!");
return;
}
if (dependencies.get("x") == null) {
if (!dependencies.containsKey("x"))
BlahmodMod.LOGGER.warn("Failed to load dependency x for procedure DMBlockHit!");
return;
}
if (dependencies.get("y") == null) {
if (!dependencies.containsKey("y"))
BlahmodMod.LOGGER.warn("Failed to load dependency y for procedure DMBlockHit!");
return;
}
if (dependencies.get("z") == null) {
if (!dependencies.containsKey("z"))
BlahmodMod.LOGGER.warn("Failed to load dependency z for procedure DMBlockHit!");
return;
}
if (dependencies.get("world") == null) {
if (!dependencies.containsKey("world"))
BlahmodMod.LOGGER.warn("Failed to load dependency world for procedure DMBlockHit!");
return;
}
Entity entity = (Entity) dependencies.get("entity");
double x = dependencies.get("x") instanceof Integer ? (int) dependencies.get("x") : (double) dependencies.get("x");
double y = dependencies.get("y") instanceof Integer ? (int) dependencies.get("y") : (double) dependencies.get("y");
double z = dependencies.get("z") instanceof Integer ? (int) dependencies.get("z") : (double) dependencies.get("z");
IWorld world = (IWorld) dependencies.get("world");
if ((!(new Object() {
public boolean checkGamemode(Entity _ent) {
if (_ent instanceof ServerPlayerEntity) {
return ((ServerPlayerEntity) _ent).interactionManager.getGameType() == GameType.CREATIVE;
} else if (_ent instanceof PlayerEntity && _ent.world.isRemote()) {
NetworkPlayerInfo _npi = Minecraft.getInstance().getConnection()
.getPlayerInfo(((AbstractClientPlayerEntity) _ent).getGameProfile().getId());
return _npi != null && _npi.getGameType() == GameType.CREATIVE;
}
return false;
}
}.checkGamemode(entity)))) {
if (world instanceof World && !world.isRemote()) {
((World) world).playSound(null, new BlockPos((int) x, (int) y, (int) z),
(net.minecraft.util.SoundEvent) ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.slime_block.hit")),
SoundCategory.NEUTRAL, (float) 1, (float) 1);
} else {
((World) world).playSound(x, y, z,
(net.minecraft.util.SoundEvent) ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.slime_block.hit")),
SoundCategory.NEUTRAL, (float) 1, (float) 1, false);
}
}
}
}
|
[
"jabawakijadehawk@gmail.com"
] |
jabawakijadehawk@gmail.com
|
88d26a924c1f9bbffdca5d3a7e842bfa2f1b8a71
|
c33cdaa74f06351fe92a93f266fd471e9de353bf
|
/src/main/java/com/jiedangou/i17dl/api/sdk/bean/param/biz/Message.java
|
8f6f6fc2e541f383ca0a3ee28b03a722e8f5c223
|
[
"Apache-2.0"
] |
permissive
|
howe/17dlApi-sdk
|
4b5675bd188d63fff07739a638829ad4030c75b8
|
26bcd8b728a300972c391a5fc7cc12846bd3e9cf
|
refs/heads/master
| 2021-05-09T07:33:20.514109
| 2018-03-06T14:45:37
| 2018-03-06T14:45:37
| 119,365,430
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,711
|
java
|
package com.jiedangou.i17dl.api.sdk.bean.param.biz;
/**
* Created on 2018/1/28
*
* @author Jianghao(howechiang @ gmail.com)
*/
public class Message {
private String _id;
private Integer type;
private Integer uid;
private String comment;
private Long create_time;
private String type_msg;
private String uid_name;
private String avator;
private Integer is_read;
public String get_id() {
return _id;
}
public void set_id(String _id) {
this._id = _id;
}
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
public Integer getUid() {
return uid;
}
public void setUid(Integer uid) {
this.uid = uid;
}
public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = comment;
}
public Long getCreate_time() {
return create_time;
}
public void setCreate_time(Long create_time) {
this.create_time = create_time;
}
public String getType_msg() {
return type_msg;
}
public void setType_msg(String type_msg) {
this.type_msg = type_msg;
}
public String getUid_name() {
return uid_name;
}
public void setUid_name(String uid_name) {
this.uid_name = uid_name;
}
public String getAvator() {
return avator;
}
public void setAvator(String avator) {
this.avator = avator;
}
public Integer getIs_read() {
return is_read;
}
public void setIs_read(Integer is_read) {
this.is_read = is_read;
}
}
|
[
"howechiang@gmail.com"
] |
howechiang@gmail.com
|
becc2abcc9cebd8e72d92f0c974e7e364ab6447c
|
5b5f90c99f66587cea981a640063a54b6ea75185
|
/src/main/java/com/coxandkings/travel/operations/service/partPaymentMonitor/impl/PartPaymentMonitorServiceImpl.java
|
ec1a02d70cfdfdeb645b338ba9e4a8c1fdb47625
|
[] |
no_license
|
suyash-capiot/operations
|
02558d5f4c72a895d4a7e7e743495a118b953e97
|
b6ad01cbdd60190e3be1f2a12d94258091fec934
|
refs/heads/master
| 2020-04-02T06:22:30.589898
| 2018-10-26T12:11:11
| 2018-10-26T12:11:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,574
|
java
|
package com.coxandkings.travel.operations.service.partPaymentMonitor.impl;
import com.coxandkings.travel.operations.enums.todo.*;
import com.coxandkings.travel.operations.exceptions.OperationException;
import com.coxandkings.travel.operations.model.core.OpsBooking;
import com.coxandkings.travel.operations.model.todo.ToDoSubType;
import com.coxandkings.travel.operations.repository.partpaymentmonitor.PartPaymentMonitorToDoTaskRepository;
import com.coxandkings.travel.operations.resource.todo.ToDoStatus;
import com.coxandkings.travel.operations.resource.todo.ToDoTaskResource;
import com.coxandkings.travel.operations.resource.user.MdmUserInfo;
import com.coxandkings.travel.operations.resource.user.OpsUser;
import com.coxandkings.travel.operations.service.booking.OpsBookingService;
import com.coxandkings.travel.operations.service.partPaymentMonitor.PartPaymentMonitorFinanceService;
import com.coxandkings.travel.operations.service.partPaymentMonitor.PartPaymentMonitorService;
import com.coxandkings.travel.operations.service.todo.ToDoTaskService;
import com.coxandkings.travel.operations.service.user.UserService;
import com.coxandkings.travel.operations.systemlogin.MDMToken;
import org.apache.logging.log4j.Logger;import org.apache.logging.log4j.LogManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import java.time.ZonedDateTime;
import java.util.List;
@Service
public class PartPaymentMonitorServiceImpl implements PartPaymentMonitorService {
@Autowired
private ToDoTaskService toDoTaskService;
@Autowired
private PartPaymentMonitorFinanceService financeService;
@Autowired
private OpsBookingService bookingService;
@Autowired
private UserService userService;
@Autowired
@Qualifier( value = "mDMToken" )
private MDMToken mdmToken; //Token used by System to connect to MDM
@Autowired
private PartPaymentMonitorToDoTaskRepository toTaskRepo;
private static final Logger logger = LogManager.getLogger( PartPaymentMonitorServiceImpl.class );
@Override
public void findPartPaymentBookings() throws OperationException {
try {
// Get all Bookings from Finance where Payment Status is part payment or no payment done
List<String> partPaymentBookingIDs = financeService.getPartPaymentBookings();
// Get User Info for system user from MDM Token
MdmUserInfo mdmUser = userService.createUserDetailsFromToken( mdmToken.getToken() );
OpsUser aOpsUser = userService.getOpsUser( mdmUser );
String userID = aOpsUser.getUserID();
/*
UsernamePasswordAuthenticationToken userPwdAuth = (UsernamePasswordAuthenticationToken) SecurityContextHolder.getContext().getAuthentication();
OpsUser loggedInUser = (OpsUser) userPwdAuth.getPrincipal();
String userID = loggedInUser.getUserID();
*/
// Go to ToDoTask and fetch existing ToDoTasks which are NOT in CLOSED state for Operations &&
// are of type Part Payment
ToDoSubType subType = new ToDoSubType();
subType.setId("PART_PAYMENT" );
ToDoStatus aToDoStatus = new ToDoStatus();
aToDoStatus.setId( "Closed" );
// Fetch from ToDoTask Table
List<String> alreadyAvailableFollowupTasksList = toTaskRepo.getToDoTasksBySubType( subType, aToDoStatus );
// Remove Bookings which have already ToDoTask assigned for Part Payment
partPaymentBookingIDs.removeAll( alreadyAvailableFollowupTasksList );
// If we have Bookings which require follow up, create new ToDoTask below
if (partPaymentBookingIDs != null && (!partPaymentBookingIDs.isEmpty())) {
for (String aBookingID : partPaymentBookingIDs) {
OpsBooking aBooking = bookingService.getBooking( aBookingID );
// Create a ToDoTask
ToDoTaskResource toDoTaskResource = new ToDoTaskResource();
toDoTaskResource.setReferenceId( aBookingID );
toDoTaskResource.setCreatedByUserId( userID );
toDoTaskResource.setAssignedBy( userID );
toDoTaskResource.setClientId( aBooking.getClientID() );
toDoTaskResource.setClientCategoryId( "" );
//Its not possible to use specific AbstractProductFactory/Order as payment is made for Booking2
toDoTaskResource.setProductId( "" );
toDoTaskResource.setClientSubCategoryId("");
toDoTaskResource.setClientTypeId("");
toDoTaskResource.setCompanyId("");
toDoTaskResource.setCompanyMarketId("");
toDoTaskResource.setTaskNameId(ToDoTaskNameValues.UPDATE.getValue());
toDoTaskResource.setTaskTypeId(ToDoTaskTypeValues.MAIN.getValue());
toDoTaskResource.setTaskSubTypeId(ToDoTaskSubTypeValues.PART_PAYMENT.toString()); //PART_PAYMENT_BOOKING
toDoTaskResource.setTaskFunctionalAreaId(ToDoFunctionalAreaValues.OPERATIONS.getValue()); // OPERATIONS or FINANCE
toDoTaskResource.setTaskStatusId(ToDoTaskStatusValues.ASSIGNED.getValue());
toDoTaskResource.setTaskPriorityId(ToDoTaskPriorityValues.HIGH.getValue());;
toDoTaskResource.setTaskGeneratedTypeId(ToDoTaskGeneratedTypeValues.AUTO.toString());
toDoTaskResource.setFileHandlerId("PART_PAYMENT_HANDLER");// TODO - should be to a User Group for Ops
// toDoTaskResource.setSecondaryFileHandlerId("REFUND_APPROVER"); // secondary approver
toDoTaskResource.setSuggestedActions("");//sent the rest end point for now
//TODO : This should be from Booking2 Object (payment due date)
ZonedDateTime sampleTime = java.time.ZonedDateTime.now();
//toDoTaskResource.setDueOnDate(sampleTime.toString());
toDoTaskService.save( toDoTaskResource );
}
}
}
catch( Exception e ) {
logger.error( e );
e.printStackTrace();
// TODO - Exception Handling
OperationException partPaymentBatchError = new OperationException( "Error occurred while running Part Payment Monitor Batch Job" );
}
}
}
|
[
"sahil@capiot.com"
] |
sahil@capiot.com
|
29cb0a0bd9439334acd65b4eee1781d64765257d
|
7983b2efeafb036a7dbf41a6d738996aa768e4c0
|
/src/main/java/coinsorter/textui/SetCurrencyCommand.java
|
8d9ceb8255d3347754080bf000bf6578dd9b5876
|
[
"MIT"
] |
permissive
|
dtmo/coin-sorter
|
2ed2fbfed426f029e4a6e0faca2b9a087f6f6da4
|
dd0efc10485156001cce0e320518b0f816d4a581
|
refs/heads/main
| 2023-01-23T20:44:45.199793
| 2020-11-29T11:42:24
| 2020-11-29T11:42:24
| 316,559,510
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 753
|
java
|
package coinsorter.textui;
import java.util.List;
import coinsorter.CoinSorter;
import coinsorter.validation.NotBlankConstraintValidator;
public class SetCurrencyCommand implements Command {
private final CoinSorter coinSorter;
private final Console console;
public SetCurrencyCommand(final CoinSorter coinSorter, final Console console) {
this.coinSorter = coinSorter;
this.console = console;
}
@Override
public void execute() {
final String currency = console.promptForValidText(
"Current currency is: " + coinSorter.getCurrency() + "\nPlease enter a new currency: ",
List.of(NotBlankConstraintValidator.INSTANCE));
coinSorter.setCurrency(currency);
}
}
|
[
"dtmorgan@gmail.com"
] |
dtmorgan@gmail.com
|
a0fec2eaa5bb639e9862250fdb595fa171cbcd9f
|
10bbb49b8b82e67f8aae8568321d5677500738d9
|
/goja-core/src/main/java/goja/el/opt/custom/Min.java
|
60a8ac4214aa3d8d474d11e5626546a0976d74c1
|
[
"Apache-2.0",
"MIT"
] |
permissive
|
shootboss/goja
|
178acc8f6e7b76863bda556d8fb742649b141ec6
|
1d6aef9c6cd13728f7601ee126d38276a3f1efb5
|
refs/heads/master
| 2021-01-22T20:08:23.456712
| 2014-11-15T15:21:34
| 2014-11-15T15:21:34
| 26,850,053
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,366
|
java
|
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2013-2014 sagyf Yang. The Four Group.
*/
package goja.el.opt.custom;
import goja.el.opt.RunMethod;
import java.util.List;
/**
* 取小
* @author juqkai(juqkai@gmail.com)
*
*/
public class Min implements RunMethod {
public Object run(List<Object> param) {
if(param.size() <= 0){
return null;
}
Number n1 = (Number) param.get(0);
for(int i = 1; i < param.size(); i ++){
Number n2 = (Number) param.get(i);
n1 = (Number) min(n1, n2);
}
return n1;
}
private Object min(Number n1, Number n2){
if(n1 == null){
return n2;
}
if(n2 == null){
return n1;
}
if(n1 instanceof Double || n2 instanceof Double){
return Math.min(n1.doubleValue(), n2.doubleValue());
}
if(n1 instanceof Float || n2 instanceof Float){
return Math.min(n1.floatValue(), n2.floatValue());
}
if(n1 instanceof Long || n2 instanceof Long){
return Math.min(n1.longValue(), n2.longValue());
}
return Math.min(n1.intValue(), n2.intValue());
}
public boolean canWork() {
return true;
}
public String fetchSelf() {
return "min";
}
}
|
[
"poplar1123@gmail.com"
] |
poplar1123@gmail.com
|
204e19298a10853b94dfba609c71760216e111dc
|
7016cec54fb7140fd93ed805514b74201f721ccd
|
/ui/web/main/src/java/com/echothree/ui/web/main/action/core/ratingtype/DescriptionAction.java
|
d76976de6a94c71a2c778bd79dd0a73af933112e
|
[
"MIT",
"Apache-1.1",
"Apache-2.0"
] |
permissive
|
echothreellc/echothree
|
62fa6e88ef6449406d3035de7642ed92ffb2831b
|
bfe6152b1a40075ec65af0880dda135350a50eaf
|
refs/heads/master
| 2023-09-01T08:58:01.429249
| 2023-08-21T11:44:08
| 2023-08-21T11:44:08
| 154,900,256
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,987
|
java
|
// --------------------------------------------------------------------------------
// Copyright 2002-2023 Echo Three, LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// --------------------------------------------------------------------------------
package com.echothree.ui.web.main.action.core.ratingtype;
import com.echothree.control.user.rating.common.RatingUtil;
import com.echothree.control.user.rating.common.form.GetRatingTypeDescriptionsForm;
import com.echothree.control.user.rating.common.result.GetRatingTypeDescriptionsResult;
import com.echothree.ui.web.main.framework.AttributeConstants;
import com.echothree.ui.web.main.framework.ForwardConstants;
import com.echothree.ui.web.main.framework.MainBaseAction;
import com.echothree.ui.web.main.framework.ParameterConstants;
import com.echothree.util.common.command.CommandResult;
import com.echothree.util.common.command.ExecutionResult;
import com.echothree.view.client.web.struts.sprout.annotation.SproutAction;
import com.echothree.view.client.web.struts.sprout.annotation.SproutForward;
import com.echothree.view.client.web.struts.sprout.annotation.SproutProperty;
import com.echothree.view.client.web.struts.sslext.config.SecureActionMapping;
import javax.naming.NamingException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
@SproutAction(
path = "/Core/RatingType/Description",
mappingClass = SecureActionMapping.class,
properties = {
@SproutProperty(property = "secure", value = "true")
},
forwards = {
@SproutForward(name = "Display", path = "/core/ratingtype/description.jsp")
}
)
public class DescriptionAction
extends MainBaseAction<ActionForm> {
@Override
public ActionForward executeAction(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
throws Exception {
String forwardKey;
try {
String componentVendorName = request.getParameter(ParameterConstants.COMPONENT_VENDOR_NAME);
String entityTypeName = request.getParameter(ParameterConstants.ENTITY_TYPE_NAME);
String ratingTypeName = request.getParameter(ParameterConstants.RATING_TYPE_NAME);
GetRatingTypeDescriptionsForm commandForm = RatingUtil.getHome().getGetRatingTypeDescriptionsForm();
commandForm.setComponentVendorName(componentVendorName);
commandForm.setEntityTypeName(entityTypeName);
commandForm.setRatingTypeName(ratingTypeName);
CommandResult commandResult = RatingUtil.getHome().getRatingTypeDescriptions(getUserVisitPK(request), commandForm);
ExecutionResult executionResult = commandResult.getExecutionResult();
GetRatingTypeDescriptionsResult result = (GetRatingTypeDescriptionsResult)executionResult.getResult();
request.setAttribute(AttributeConstants.RATING_TYPE, result.getRatingType());
request.setAttribute(AttributeConstants.RATING_TYPE_DESCRIPTIONS, result.getRatingTypeDescriptions());
forwardKey = ForwardConstants.DISPLAY;
} catch (NamingException ne) {
forwardKey = ForwardConstants.ERROR_500;
}
return mapping.findForward(forwardKey);
}
}
|
[
"rich@echothree.com"
] |
rich@echothree.com
|
37dcb9b11cd9afc170d6a94a159698b2443b2230
|
e70abc02efbb8a7637eb3655f287b0a409cfa23b
|
/hyjf-mybatis/src/main/java/com/hyjf/mybatis/model/auto/BankCreditEnd.java
|
1c2eead702633a31484c1ea7e5d67531c498ff14
|
[] |
no_license
|
WangYouzheng1994/hyjf
|
ecb221560460e30439f6915574251266c1a49042
|
6cbc76c109675bb1f120737f29a786fea69852fc
|
refs/heads/master
| 2023-05-12T03:29:02.563411
| 2020-05-19T13:49:56
| 2020-05-19T13:49:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,646
|
java
|
package com.hyjf.mybatis.model.auto;
import java.io.Serializable;
public class BankCreditEnd implements Serializable {
private Integer id;
private String batchNo;
private String txDate;
private String txTime;
private String seqNo;
private Integer txCounts;
private Integer userId;
private String username;
private Integer tenderUserId;
private String tenderUsername;
private String accountId;
private String tenderAccountId;
private String orderId;
private String orgOrderId;
private String borrowNid;
private String authCode;
private Integer creditEndType;
private Integer received;
private String checkRetcode;
private String checkRetmsg;
private String retcode;
private String retmsg;
private Integer sucCounts;
private Integer failCounts;
private String state;
private Integer status;
private String failmsg;
private Integer createUser;
private Integer createTime;
private Integer updateUser;
private Integer updateTime;
private static final long serialVersionUID = 1L;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getBatchNo() {
return batchNo;
}
public void setBatchNo(String batchNo) {
this.batchNo = batchNo == null ? null : batchNo.trim();
}
public String getTxDate() {
return txDate;
}
public void setTxDate(String txDate) {
this.txDate = txDate == null ? null : txDate.trim();
}
public String getTxTime() {
return txTime;
}
public void setTxTime(String txTime) {
this.txTime = txTime == null ? null : txTime.trim();
}
public String getSeqNo() {
return seqNo;
}
public void setSeqNo(String seqNo) {
this.seqNo = seqNo == null ? null : seqNo.trim();
}
public Integer getTxCounts() {
return txCounts;
}
public void setTxCounts(Integer txCounts) {
this.txCounts = txCounts;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username == null ? null : username.trim();
}
public Integer getTenderUserId() {
return tenderUserId;
}
public void setTenderUserId(Integer tenderUserId) {
this.tenderUserId = tenderUserId;
}
public String getTenderUsername() {
return tenderUsername;
}
public void setTenderUsername(String tenderUsername) {
this.tenderUsername = tenderUsername == null ? null : tenderUsername.trim();
}
public String getAccountId() {
return accountId;
}
public void setAccountId(String accountId) {
this.accountId = accountId == null ? null : accountId.trim();
}
public String getTenderAccountId() {
return tenderAccountId;
}
public void setTenderAccountId(String tenderAccountId) {
this.tenderAccountId = tenderAccountId == null ? null : tenderAccountId.trim();
}
public String getOrderId() {
return orderId;
}
public void setOrderId(String orderId) {
this.orderId = orderId == null ? null : orderId.trim();
}
public String getOrgOrderId() {
return orgOrderId;
}
public void setOrgOrderId(String orgOrderId) {
this.orgOrderId = orgOrderId == null ? null : orgOrderId.trim();
}
public String getBorrowNid() {
return borrowNid;
}
public void setBorrowNid(String borrowNid) {
this.borrowNid = borrowNid == null ? null : borrowNid.trim();
}
public String getAuthCode() {
return authCode;
}
public void setAuthCode(String authCode) {
this.authCode = authCode == null ? null : authCode.trim();
}
public Integer getCreditEndType() {
return creditEndType;
}
public void setCreditEndType(Integer creditEndType) {
this.creditEndType = creditEndType;
}
public Integer getReceived() {
return received;
}
public void setReceived(Integer received) {
this.received = received;
}
public String getCheckRetcode() {
return checkRetcode;
}
public void setCheckRetcode(String checkRetcode) {
this.checkRetcode = checkRetcode == null ? null : checkRetcode.trim();
}
public String getCheckRetmsg() {
return checkRetmsg;
}
public void setCheckRetmsg(String checkRetmsg) {
this.checkRetmsg = checkRetmsg == null ? null : checkRetmsg.trim();
}
public String getRetcode() {
return retcode;
}
public void setRetcode(String retcode) {
this.retcode = retcode == null ? null : retcode.trim();
}
public String getRetmsg() {
return retmsg;
}
public void setRetmsg(String retmsg) {
this.retmsg = retmsg == null ? null : retmsg.trim();
}
public Integer getSucCounts() {
return sucCounts;
}
public void setSucCounts(Integer sucCounts) {
this.sucCounts = sucCounts;
}
public Integer getFailCounts() {
return failCounts;
}
public void setFailCounts(Integer failCounts) {
this.failCounts = failCounts;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state == null ? null : state.trim();
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public String getFailmsg() {
return failmsg;
}
public void setFailmsg(String failmsg) {
this.failmsg = failmsg == null ? null : failmsg.trim();
}
public Integer getCreateUser() {
return createUser;
}
public void setCreateUser(Integer createUser) {
this.createUser = createUser;
}
public Integer getCreateTime() {
return createTime;
}
public void setCreateTime(Integer createTime) {
this.createTime = createTime;
}
public Integer getUpdateUser() {
return updateUser;
}
public void setUpdateUser(Integer updateUser) {
this.updateUser = updateUser;
}
public Integer getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Integer updateTime) {
this.updateTime = updateTime;
}
}
|
[
"heshuying@hyjf.com"
] |
heshuying@hyjf.com
|
7ef2def5c42f3c3f9a253df6a633939dedf462cc
|
318f01d9c7d6d5615c32eaf3a48b38e72c89dec6
|
/thirdpp-channel/src/main/java/com/zendaimoney/thirdpp/channel/dto/resp/allinpay/sign/SignResp.java
|
053cdf6a354a413b18de672148f879ff71058e44
|
[] |
no_license
|
ichoukou/thirdapp
|
dce52f5df2834f79a51895475b995a3e758be8c0
|
aae0a1596e06992b600a1a442723b833736240e3
|
refs/heads/master
| 2020-05-03T03:12:33.064089
| 2018-04-18T06:00:14
| 2018-04-18T06:00:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,253
|
java
|
package com.zendaimoney.thirdpp.channel.dto.resp.allinpay.sign;
import com.zendaimoney.thirdpp.channel.dto.resp.RespDto;
import com.zendaimoney.thirdpp.channel.dto.resp.allinpay.sign.message.RespBody;
import com.zendaimoney.thirdpp.channel.dto.resp.allinpay.sign.message.RespHeader;
import com.zendaimoney.thirdpp.channel.exception.PlatformException;
import com.zendaimoney.thirdpp.channel.util.JaxbBinder;
import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Document")
@XmlRootElement(name = "AIPG")
public class SignResp extends RespDto {
/**
* 返回头
*/
@XmlElement(name = "INFO")
private RespHeader header;
/**
* 返回体
*/
@XmlElement(name = "FAGRCRET")
private RespBody body;
public RespHeader getHeader() {
return header;
}
public void setHeader(RespHeader header) {
this.header = header;
}
public RespBody getBody() {
return body;
}
public void setBody(RespBody body) {
this.body = body;
}
@Override
public SignResp decode(String respMsg) throws PlatformException {
JaxbBinder binder = new JaxbBinder(this.getClass());
return binder.fromXml(respMsg);
}
}
|
[
"gaohongxuhappy@163.com"
] |
gaohongxuhappy@163.com
|
79505ca93661a5e6ce69b4ea9408577d2a95566d
|
2cb7187bcbef4ce4d8dac997e8b6838a5265bb7a
|
/BetaApplications/src/aplicacion/ventas/pedido/test/.svn/text-base/_Test.java.svn-base
|
d5df00791ee35158820672043cea2d121e911c4b
|
[] |
no_license
|
pjpincheiragr/Catalogos
|
cc5185e7a22c4a2c4ed1c9ebfd6d42186f996c50
|
d462cc5bcd740215a01f7684a5ea6cb6086ef3db
|
refs/heads/master
| 2021-01-10T06:15:27.738122
| 2015-12-18T13:05:54
| 2015-12-18T13:05:54
| 48,194,633
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 259
|
package aplicacion.ventas.pedido.test;
import javax.swing.*;
import aplicacion.ventas.pedido.constructor._Constructor;
public class _Test {
public static void main(String[] args){
_Constructor CC=new _Constructor();
CC.build(null);
CC.init();
}
}
|
[
"juli.otero01@gmail.com"
] |
juli.otero01@gmail.com
|
|
fdb47342aa42c0957dc3f9628a3c31ea2eeb0394
|
efa7935f77f5368e655c072b236d598059badcff
|
/src/com/sammyun/dao/impl/PaymentMethodDaoImpl.java
|
7ab54b548eb6405b3ba8284b60eeb618999c563b
|
[] |
no_license
|
ma-xu/Library
|
c1404f4f5e909be3e5b56f9884355e431c40f51b
|
766744898745f8fad31766cafae9fd4db0318534
|
refs/heads/master
| 2022-02-23T13:34:47.439654
| 2016-06-03T11:27:21
| 2016-06-03T11:27:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 518
|
java
|
/*
* Copyright 2012-2014 sammyun.com.cn. All rights reserved.
* Support: http://www.sammyun.com.cn
* License: http://www.sammyun.com.cn/license
*/
package com.sammyun.dao.impl;
import org.springframework.stereotype.Repository;
import com.sammyun.dao.PaymentMethodDao;
import com.sammyun.entity.PaymentMethod;
/**
* Dao - 支付方式
*
*/
@Repository("paymentMethodDaoImpl")
public class PaymentMethodDaoImpl extends BaseDaoImpl<PaymentMethod, Long> implements PaymentMethodDao {
}
|
[
"melody@maxudeMacBook-Pro.local"
] |
melody@maxudeMacBook-Pro.local
|
f8ab02dc940e66bb432e12d701987bb18f0ce066
|
e8d5800924f81b167cab824767e320b12676afee
|
/ProjectStart/src/com/company/gui_and_music/Button1_north.java
|
aa1cbcbf59c5546943c42ee35c62803c7a4711bf
|
[] |
no_license
|
Sergei-JD/JavaProjects
|
b2252ec99651dc1eeef1153e978b8e10c532e7c2
|
885da4511bf2ee7375b51da95d9ab30abde30f4c
|
refs/heads/master
| 2023-06-27T23:11:56.438531
| 2021-07-31T15:57:55
| 2021-07-31T15:57:55
| 369,480,614
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 567
|
java
|
package com.company.gui_and_music;
import javax.swing.*;
import java.awt.*;
public class Button1_north {
public static void main(String[] args) {
Button1_north gui = new Button1_north();
gui.go();
}
public void go() {
JFrame frame = new JFrame();
JButton button = new JButton("Click This!");
Font bigFont = new Font("serif", Font.BOLD, 28);
button.setFont(bigFont);
frame.getContentPane().add(BorderLayout.NORTH, button);
frame.setSize(200, 200);
frame.setVisible(true);
}
}
|
[
"sergshlyazhko@gmail.com"
] |
sergshlyazhko@gmail.com
|
6291cb2aaf25ca9c32774c9e571035724c736e8f
|
7ae8c7356f33085860016ae6f3b84676be661049
|
/src/battle/Tech.java
|
df03d7c5c420b0c2c0928c0dee4cb9aaf6b3b2ec
|
[] |
no_license
|
ABK7997/Outer-Station
|
4fca870a13aca846a85a78f986a7482f5729a220
|
3b6c94e932ad8aec7e9a8ccf5a5a9f25307bd0b0
|
refs/heads/master
| 2021-01-23T08:48:57.528096
| 2017-09-06T02:56:04
| 2017-09-06T02:56:04
| 79,752,778
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,760
|
java
|
package battle;
import java.awt.Graphics;
import java.util.Random;
import party.Brawler;
import main.Game;
import entity.mobs.enemies.Enemy;
public abstract class Tech {
protected int x, y, index;
protected Random random = new Random();
protected int anim = 0;
protected int w = Game.frame.getWidth();
protected int h = Game.frame.getHeight();
protected String name;
protected int dmg, cost, price;
protected String type;
protected String range = "Single";
protected Brawler p;
protected Enemy e;
protected Enemy friend;
protected boolean animating = false;
protected boolean usable = false;
protected String description = "Spell";
//Player Commands
public void heal(Brawler p) {
}
public void attack(Enemy e) {
}
public void alter(Brawler p) {
}
//Enemy Commands
public void heal(Enemy e) {
}
public void attack(Brawler p) {
}
public void alter(Enemy e) {
}
public void update() {
if (animating) anim++;
}
public void update2() {
if (animating) anim++;
}
//Player animation
public void animate(Graphics g) {
}
//Enemy animation
public void animate2(Graphics g) {
}
public String getName() {
return name;
}
public int getIndex() {
return index;
}
public String getType() {
return type;
}
public int getCost() {
return cost;
}
public int getPrice() {
return price;
}
public int getDmg() {
return dmg;
}
public void setAnimating(boolean bool) {
animating = bool;
anim = 12;
}
public boolean isAnimating() {
return animating;
}
public boolean usable() {
return usable;
}
public String getRange() {
return range;
}
public String getDescription() {
return description;
}
//Assign to player
public void setBrawler(Brawler b) {
p = b;
}
}
|
[
"="
] |
=
|
6943e34a90377f670d5071f961caff5ce2810148
|
1d2fda2245888413e3eef8798a61236822f022db
|
/com/sun/xml/bind/api/BridgeContext.java
|
3d2cdc1fa4cd629fbb9516351963ff55d981ea91
|
[
"IJG"
] |
permissive
|
SynieztroLedPar/Wu
|
3b4391e916f6a5605d60663f800702f3e45d5dfc
|
5f7daebc2fb430411ddb76a179005eeecde9802b
|
refs/heads/master
| 2023-04-29T17:27:08.301723
| 2020-10-10T22:28:40
| 2020-10-10T22:28:40
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 913
|
java
|
package com.sun.xml.bind.api;
import javax.xml.bind.ValidationEventHandler;
import javax.xml.bind.attachment.AttachmentMarshaller;
import javax.xml.bind.attachment.AttachmentUnmarshaller;
/**
* @deprecated
*/
public abstract class BridgeContext
{
public abstract void setErrorHandler(ValidationEventHandler paramValidationEventHandler);
public abstract void setAttachmentMarshaller(AttachmentMarshaller paramAttachmentMarshaller);
public abstract void setAttachmentUnmarshaller(AttachmentUnmarshaller paramAttachmentUnmarshaller);
public abstract AttachmentMarshaller getAttachmentMarshaller();
public abstract AttachmentUnmarshaller getAttachmentUnmarshaller();
}
/* Location: C:\Games\SteamLibrary\steamapps\common\Wurm Unlimited Dedicated Server\server.jar!\com\sun\xml\bind\api\BridgeContext.class
* Java compiler version: 5 (49.0)
* JD-Core Version: 0.7.1
*/
|
[
"dwayne.griffiths@outlook.com"
] |
dwayne.griffiths@outlook.com
|
b322e925753a8e430792dc328eedb3471e310744
|
6baa09045c69b0231c35c22b06cdf69a8ce227d6
|
/modules/adwords_axis/src/main/java/com/google/api/ads/adwords/axis/v201607/express/ProductServicePage.java
|
e6ae23a281cff510d8ac6e7a7968864fb57bddaa
|
[
"Apache-2.0"
] |
permissive
|
remotejob/googleads-java-lib
|
f603b47117522104f7df2a72d2c96ae8c1ea011d
|
a330df0799de8d8de0dcdddf4c317d6b0cd2fe10
|
refs/heads/master
| 2020-12-11T01:36:29.506854
| 2016-07-28T22:13:24
| 2016-07-28T22:13:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,973
|
java
|
/**
* ProductServicePage.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.adwords.axis.v201607.express;
/**
* Contains a page of {@link ProductService}s with no stats.
*/
public class ProductServicePage extends com.google.api.ads.adwords.axis.v201607.express.NoStatsPage implements java.io.Serializable {
/* The result entries in this page. */
private com.google.api.ads.adwords.axis.v201607.express.ProductService[] entries;
public ProductServicePage() {
}
public ProductServicePage(
java.lang.Integer totalNumEntries,
java.lang.String pageType,
com.google.api.ads.adwords.axis.v201607.express.ProductService[] entries) {
super(
totalNumEntries,
pageType);
this.entries = entries;
}
/**
* Gets the entries value for this ProductServicePage.
*
* @return entries * The result entries in this page.
*/
public com.google.api.ads.adwords.axis.v201607.express.ProductService[] getEntries() {
return entries;
}
/**
* Sets the entries value for this ProductServicePage.
*
* @param entries * The result entries in this page.
*/
public void setEntries(com.google.api.ads.adwords.axis.v201607.express.ProductService[] entries) {
this.entries = entries;
}
public com.google.api.ads.adwords.axis.v201607.express.ProductService getEntries(int i) {
return this.entries[i];
}
public void setEntries(int i, com.google.api.ads.adwords.axis.v201607.express.ProductService _value) {
this.entries[i] = _value;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof ProductServicePage)) return false;
ProductServicePage other = (ProductServicePage) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj) &&
((this.entries==null && other.getEntries()==null) ||
(this.entries!=null &&
java.util.Arrays.equals(this.entries, other.getEntries())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
if (getEntries() != null) {
for (int i=0;
i<java.lang.reflect.Array.getLength(getEntries());
i++) {
java.lang.Object obj = java.lang.reflect.Array.get(getEntries(), i);
if (obj != null &&
!obj.getClass().isArray()) {
_hashCode += obj.hashCode();
}
}
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(ProductServicePage.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/express/v201607", "ProductServicePage"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("entries");
elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/express/v201607", "entries"));
elemField.setXmlType(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/express/v201607", "ProductService"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
elemField.setMaxOccursUnbounded(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
|
[
"jradcliff@users.noreply.github.com"
] |
jradcliff@users.noreply.github.com
|
f5e325184d3b38085551bf8fa1e57ec59b10e2b0
|
c885ef92397be9d54b87741f01557f61d3f794f3
|
/results/Codec-10/org.apache.commons.codec.language.Caverphone/BBC-F0-opt-40/tests/3/org/apache/commons/codec/language/Caverphone_ESTest.java
|
1c93e198bb83df6af2a66781d4d3c41b09b19ca9
|
[
"CC-BY-4.0",
"MIT"
] |
permissive
|
pderakhshanfar/EMSE-BBC-experiment
|
f60ac5f7664dd9a85f755a00a57ec12c7551e8c6
|
fea1a92c2e7ba7080b8529e2052259c9b697bbda
|
refs/heads/main
| 2022-11-25T00:39:58.983828
| 2022-04-12T16:04:26
| 2022-04-12T16:04:26
| 309,335,889
| 0
| 1
| null | 2021-11-05T11:18:43
| 2020-11-02T10:30:38
| null |
UTF-8
|
Java
| false
| false
| 2,697
|
java
|
/*
* This file was automatically generated by EvoSuite
* Wed Oct 13 20:00:43 GMT 2021
*/
package org.apache.commons.codec.language;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import org.apache.commons.codec.language.Caverphone;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true)
public class Caverphone_ESTest extends Caverphone_ESTest_scaffolding {
@Test(timeout = 4000)
public void test0() throws Throwable {
Caverphone caverphone0 = new Caverphone();
boolean boolean0 = caverphone0.isCaverphoneEqual((String) null, (String) null);
assertTrue(boolean0);
}
@Test(timeout = 4000)
public void test1() throws Throwable {
Caverphone caverphone0 = new Caverphone();
String string0 = caverphone0.caverphone("");
assertEquals("1111111111", string0);
}
@Test(timeout = 4000)
public void test2() throws Throwable {
Caverphone caverphone0 = new Caverphone();
String string0 = caverphone0.caverphone("^cough");
assertEquals("KF11111111", string0);
}
@Test(timeout = 4000)
public void test3() throws Throwable {
Caverphone caverphone0 = new Caverphone();
Object object0 = new Object();
try {
caverphone0.encode(object0);
fail("Expecting exception: Exception");
} catch(Exception e) {
//
// Parameter supplied to Caverphone encode is not of type java.lang.String
//
verifyException("org.apache.commons.codec.language.Caverphone", e);
}
}
@Test(timeout = 4000)
public void test4() throws Throwable {
Caverphone caverphone0 = new Caverphone();
Object object0 = caverphone0.encode((Object) "");
assertEquals("1111111111", object0);
}
@Test(timeout = 4000)
public void test5() throws Throwable {
Caverphone caverphone0 = new Caverphone();
String string0 = caverphone0.caverphone((String) null);
assertEquals("1111111111", string0);
}
@Test(timeout = 4000)
public void test6() throws Throwable {
Caverphone caverphone0 = new Caverphone();
boolean boolean0 = caverphone0.isCaverphoneEqual("-U%J", "1111111111");
assertFalse(boolean0);
}
@Test(timeout = 4000)
public void test7() throws Throwable {
Caverphone caverphone0 = new Caverphone();
String string0 = caverphone0.encode("");
assertEquals("1111111111", string0);
}
}
|
[
"pderakhshanfar@serg2.ewi.tudelft.nl"
] |
pderakhshanfar@serg2.ewi.tudelft.nl
|
855eb04e09e7b8d183289c268f22e4f7c81cd9a1
|
d1bdcbb6261cce5f953abba5557b8ca9f9891950
|
/leetcode/Math/比较版本号.java
|
c2eccfc0e4291adc59e39ab05e4aa3f4c6e69063
|
[] |
no_license
|
zoe1101/review_java_idea
|
920b502e245aa7da962bb0f0cfdfa4114271edc8
|
a705365d632f9a5b8fab065cd111cd7a1f8aba44
|
refs/heads/master
| 2020-07-11T07:44:52.045414
| 2019-09-15T14:29:58
| 2019-09-15T14:29:58
| 204,480,640
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,515
|
java
|
package Math;
/*
比较两个版本号 version1 和 version2。
如果 version1 > version2 返回 1,如果 version1 < version2 返回 -1, 除此之外返回 0。
你可以假设版本字符串非空,并且只包含数字和 . 字符。
. 字符不代表小数点,而是用于分隔数字序列。
例如,2.5 不是“两个半”,也不是“差一半到三”,而是第二版中的第五个小版本。
你可以假设版本号的每一级的默认修订版号为 0。例如,版本号 3.4 的第一级(大版本)和
第二级(小版本)修订号分别为 3 和 4。其第三级和第四级修订号均为 0。
示例 1:
输入: version1 = "0.1", version2 = "1.1"
输出: -1
示例 2:
输入: version1 = "1.0.1", version2 = "1"
输出: 1
*/
public class 比较版本号 {
public int compareVersion(String version1, String version2) {
String[] ver1=version1.trim().split("\\.");
String[] ver2=version2.trim().split("\\.");
int i=0;
for (; i < ver1.length && i < ver2.length; i++) {
Integer num1=Integer.parseInt(ver1[i]);
Integer num2=Integer.parseInt(ver2[i]);
if (num1>num2) {
return 1;
}else if (num1<num2) {
return -1;
}
}
while (i<ver1.length) {
Integer num1=Integer.parseInt(ver1[i]);
if (num1!=0) {
return 1;
}
i++;
}
while (i<ver2.length) {
Integer num2=Integer.parseInt(ver2[i]);
if (num2!=0) {
return -1;
}
i++;
}
return 0;
}
}
|
[
"tangli.1994@163.com"
] |
tangli.1994@163.com
|
fac7ce8388f84d54a163504d82a6b838576351d0
|
a55b85b6dd6a4ebf856b3fd80c9a424da2cd12bd
|
/photon/plugins/org.marketcetera.photon.commons/src/main/java/org/marketcetera/photon/commons/Messages.java
|
6e720889dd878dacaba9f228f9ed89c8b5e53b4a
|
[] |
no_license
|
jeffreymu/marketcetera-2.2.0-16652
|
a384a42b2e404bcc6140119dd2c6d297d466596c
|
81cdd34979492f839233552432f80b3606d0349f
|
refs/heads/master
| 2021-12-02T11:18:01.399940
| 2013-08-09T14:36:21
| 2013-08-09T14:36:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 778
|
java
|
package org.marketcetera.photon.commons;
import org.marketcetera.util.log.I18NMessage0P;
import org.marketcetera.util.misc.ClassVersion;
/* $License$ */
/**
* The internationalization constants used by this package.
*
* @author <a href="mailto:will@marketcetera.com">Will Horn</a>
* @version $Id: Messages.java 16154 2012-07-14 16:34:05Z colin $
* @since 2.0.0
*/
@ClassVersion("$Id: Messages.java 16154 2012-07-14 16:34:05Z colin $")
final class Messages {
static I18NMessage0P SIMPLE_EXECUTOR_SERVICE_REJECT_SHUTDOWN;
static I18NMessage0P SIMPLE_EXECUTOR_SERVICE_ABNORMAL_SHUTDOWN;
static {
ReflectiveMessages.init(Messages.class);
}
private Messages() {
throw new AssertionError("non-instantiable"); //$NON-NLS-1$
}
}
|
[
"vladimir_petrovich@yahoo.com"
] |
vladimir_petrovich@yahoo.com
|
65f94e97d8b7f39c6625da006b4bd4c1605b4062
|
e12e4ed573b6d699f8263857da449290056bfa6c
|
/src/main/java/game/phase/MorningPhase.java
|
bee889d7dfeefb963df5192d4c3f54365c19c88a
|
[] |
no_license
|
teemodevs/Client-PC-MafiaGame
|
67799e26ee85663076c866702bbec57f97c059c5
|
c534ec7b61bc9550da3a832493f7bac70a2cfd70
|
refs/heads/master
| 2021-06-18T05:02:09.972881
| 2021-02-10T03:05:49
| 2021-02-10T03:05:49
| 173,294,262
| 1
| 0
| null | 2021-02-10T03:05:50
| 2019-03-01T11:54:46
|
Java
|
UTF-8
|
Java
| false
| false
| 481
|
java
|
package game.phase;
import client.frame.game.GameFrame;
import java.awt.*;
/**
* 아침 Phase
*/
public class MorningPhase implements Phase {
private static MorningPhase morningPhase = new MorningPhase();
private MorningPhase() {}
public static MorningPhase getInstance() {
return morningPhase;
}
@Override
public void phaseStart() {
GameFrame.getInstance().appendMessageToTextPane("아침이 되었습니다.", Color.BLUE);
}
}
|
[
"qkrdpcks0419@naver.com"
] |
qkrdpcks0419@naver.com
|
d2bfa11fc69b459829e3fb0e24c7f64265b50021
|
065c1f648e8dd061a20147ff9c0dbb6b5bc8b9be
|
/ant_cluster/18750/tar_3.java
|
288152e3d6ae2ca1034424f927708aec4c333cd5
|
[] |
no_license
|
martinezmatias/GenPat-data-C3
|
63cfe27efee2946831139747e6c20cf952f1d6f6
|
b360265a6aa3bb21bd1d64f1fc43c3b37d0da2a4
|
refs/heads/master
| 2022-04-25T17:59:03.905613
| 2020-04-15T14:41:34
| 2020-04-15T14:41:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,507
|
java
|
/*
* Copyright 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.tools.ant.taskdefs.optional.repository;
import org.apache.tools.ant.util.FileUtils;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.net.URL;
/**
* A Maven repository knows about maven repository layout rules It also defaults
* to http://www.ibiblio.org/maven/
*
* @link http://maven.apache.org/reference/user-guide.html#Remote_Repository_Layout
* @link
* @since Ant1.7
*/
public class MavenRepository extends HttpRepository {
public static final String MAVEN_URL = "http://www.ibiblio.org/maven/";
/**
* check the MD5 flag
*/
public boolean checkMD5;
/**
* this is what we think the MD5 type is
*/
protected static final String MAVEN_MD5_FILE_TYPE = "US-ASCII";
/**
* bind to the main maven repository
*/
public MavenRepository() {
setUrl(MAVEN_URL);
}
/**
* set this to check the MD5 signatures. SECURITY IS NOT YET FUNCTIONAL
* @param checkMD5
*/
public void setCheckMD5(boolean checkMD5) {
this.checkMD5 = checkMD5;
}
/**
* Get the path to a remote library. This is the full URL
*
* @param library
*
* @return URL to library
*/
protected String getRemoteLibraryURL(Library library) {
String base = getUrl();
if (!base.endsWith("/")) {
base = base + '/';
}
return base + library.getMavenPath('/');
}
/**
* Returns a string representation of the repository
*
* @return the base URL
*/
public String toString() {
return "Maven Repository at " + getUrl();
}
/**
* this is a string that uniquely describes the repository and can be used
* for equality tests <i>across</i> instances.
*
* @return maven identifier
*/
public String getRepositoryURI() {
return "maven://" + getUrl();
}
/**
* fetch a library from the repository
*
* @param library
*
* @param useTimestamp
* @return true if we retrieved
*
* @throws org.apache.tools.ant.BuildException
*
*/
public boolean fetch(Library library, boolean useTimestamp) throws IOException {
boolean fetched=super.fetch(library, useTimestamp);
if(fetched && checkMD5) {
//we got here if there was a fetch. so we now get the MD5 info from the file,
boolean successful=false;
String md5path = getRemoteLibraryURL(library) + ".md5";
File md5file = File.createTempFile(library.getArchive(),".md5");
Reader in = null;
try {
URL md5url=new URL(md5path);
logVerbose("getting md5 file from " + md5path +" to "+md5file.getAbsolutePath());
get(md5url,md5file, false,getUsername(), getPassword());
in = new InputStreamReader(new FileInputStream(md5file),MAVEN_MD5_FILE_TYPE);
char md5data[] =new char[32];
in.read(md5data);
logDebug("md5 data "+md5data);
//TODO: verify this against a <checksum> generated signature.
successful=true;
} catch (IOException e) {
logVerbose("IO failure on MD5 fetch "+e.getMessage());
throw e;
} finally {
FileUtils.close(in);
if(md5file.exists()) {
md5file.delete();
}
if(!successful) {
//if security checks failed for any reason,
//delete the library file
//brute force paranoia
library.getLibraryFile().delete();
}
}
}
return fetched;
}
}
|
[
"375833274@qq.com"
] |
375833274@qq.com
|
d8065609d6745598f97f6169231830e4e0f4628b
|
f151dc4e0126339ddeb358530475d0ceba79b503
|
/idea_workplace/da24_mybatisgenerater/src/main/java/com/itheima/domain/User.java
|
8be64a3aa4c6b3bfb157a0c1e119e1f9b88c9360
|
[] |
no_license
|
humq1992/mylearningroad
|
348e8806e7787c92cf0a7e999e83572bc8c9a330
|
794c46fb320b7a2d8409e7762c9af7e7ada639dc
|
refs/heads/master
| 2022-12-26T01:11:13.510728
| 2019-09-04T13:22:05
| 2019-09-04T13:22:05
| 196,204,680
| 0
| 0
| null | 2022-12-16T07:18:24
| 2019-07-10T12:51:03
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 999
|
java
|
package com.itheima.domain;
import java.util.Date;
public class User {
private Integer id;
private String username;
private Date birthday;
private String sex;
private String address;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username == null ? null : username.trim();
}
public Date getBirthday() {
return birthday;
}
public void setBirthday(Date birthday) {
this.birthday = birthday;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex == null ? null : sex.trim();
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address == null ? null : address.trim();
}
}
|
[
"aaa"
] |
aaa
|
9471d0a3c764a8dd2e07e2b45d34a6750c48d48f
|
b49d56ae4b22eba2f5b04b7f16b6db8d18022fe8
|
/UMS/src/main/java/com/appzoneltd/lastmile/microservice/ums/dao/UserHubRepository.java
|
0d565174a4a524f69c4f4a75f8e7296c9cba6b1f
|
[] |
no_license
|
hashish93/last-mile-backend
|
15259d7bbeadcf6c1b10fde4917279cd208b30cf
|
b15f29ac6aea277941b386e7ba8019d0ecf206ab
|
refs/heads/master
| 2020-04-07T14:31:54.409913
| 2018-11-20T21:15:09
| 2018-11-20T21:15:09
| 158,450,997
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 327
|
java
|
package com.appzoneltd.lastmile.microservice.ums.dao;
import org.springframework.data.repository.PagingAndSortingRepository;
import com.appzoneltd.lastmile.microservice.ums.entity.UserHubEntity;
/**
* Repository : UserHub.
*/
public interface UserHubRepository extends PagingAndSortingRepository<UserHubEntity, Long> {
}
|
[
"m.hashish93@gmail.com"
] |
m.hashish93@gmail.com
|
cb1063f185bf48412e1df7d7ec159989d8e24b47
|
36bf98918aebe18c97381705bbd0998dd67e356f
|
/projects/castor-1.3.3/cpactf/src/test/java/org/castor/cpa/test/test20/AbstractKeyGenObjectString.java
|
3df716b324aaa3d172f1969e8313c2a079ae0ee4
|
[] |
no_license
|
ESSeRE-Lab/qualitas.class-corpus
|
cb9513f115f7d9a72410b3f5a72636d14e4853ea
|
940f5f2cf0b3dc4bd159cbfd49d5c1ee4d06d213
|
refs/heads/master
| 2020-12-24T21:22:32.381385
| 2016-05-17T14:03:21
| 2016-05-17T14:03:21
| 59,008,169
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,579
|
java
|
/*
* Copyright 2009 Udai Gupta, Ralf Joachim
*
* 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.castor.cpa.test.test20;
/**
* The base class of all test object for key generators for non-numeric key columns.
*/
public abstract class AbstractKeyGenObjectString {
public static final String DEFAULT_ATTR = "attr";
public static final String DEFAULT_EXT = "ext";
private String _id;
private String _attr;
private String _ext;
public AbstractKeyGenObjectString() {
_attr = DEFAULT_ATTR;
_ext = DEFAULT_EXT;
}
public final void setId(final String id) { _id = id; }
public final String getId() { return _id; }
public final void setAttr(final String attr) { _attr = attr; }
public final String getAttr() { return _attr; }
public final void setExt(final String ext) { _ext = ext; }
public final String getExt() { return _ext; }
public String toString() {
String str = ((_id == null) ? "null" : _id);
str = str + " / " + _attr + " / " + _ext;
return str;
}
}
|
[
"marco.zanoni@disco.unimib.it"
] |
marco.zanoni@disco.unimib.it
|
a3bcc47ccddf1c89400c1e137eb16db0dd6e4fd2
|
0059515990bc490d35ff28d1be0741f66d622421
|
/src/ingredients/pizzas/Parmeggiano.java
|
f9d9a1a8edcbcdbe725b7be468b11a70925f2674
|
[] |
no_license
|
bwielk/PizzaAbstractFactory
|
fe709e04590e78ceb2a3bcafb39b717e71e889b5
|
b80154fbd1ab0e58b8e247eda56e1c9fb6c87cd8
|
refs/heads/master
| 2021-09-02T09:55:56.361197
| 2018-01-01T17:15:13
| 2018-01-01T17:15:13
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 157
|
java
|
package pizzas;
public class Parmeggiano implements Cheese {
private String name = "Parmeggiano";
public String getCheeseName() {
return name;
}
}
|
[
"bwielk@gmail.com"
] |
bwielk@gmail.com
|
0a69a55c3d77f991f6c964790ffd269b11b1fe38
|
095b1b4ca6e958818d00de210aeae342ce32cbd2
|
/src/TextArea/UndoRedoText/UndoRedoOfTextArea.java
|
37bf54c80926e1c0db7a66be0ed7daf40522c03b
|
[] |
no_license
|
Indivikar/Example
|
3a94bc4418439af9bbc7bedef78fe8b27f225f04
|
1919cdad84217e8a0a78ede2de6b3ec2d47ef7c1
|
refs/heads/master
| 2020-12-03T03:39:10.960347
| 2017-10-23T05:24:35
| 2017-10-23T05:24:35
| 95,755,403
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,956
|
java
|
package TextArea.UndoRedoText;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.TextArea;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.StackPane;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
import com.sun.javafx.scene.control.behavior.TextInputControlBehavior;
import com.sun.javafx.scene.control.skin.TextInputControlSkin;
public class UndoRedoOfTextArea extends Application {
Stage stage;
Scene scene;
StackPane root;
public static void main(String[] args) {
Application.launch(args);
}
@Override
public void start(Stage stage) throws Exception {
this.stage = stage;
configureScene();
configureStage();
final TextArea txt = new TextArea();
Button btn = new Button("Undo");
btn.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent paramT) {
((TextInputControlBehavior)((TextInputControlSkin)txt.getSkin()).getBehavior()).callAction("Undo");
}
});
Button btn2 = new Button("Redo");
btn2.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent paramT) {
((TextInputControlBehavior)((TextInputControlSkin)txt.getSkin()).getBehavior()).callAction("Redo");
}
});
VBox vb = new VBox();
vb.setSpacing(15);
vb.getChildren().addAll(txt,btn, btn2);
root.getChildren().add(vb);
}
private void configureStage(){
stage.setTitle(this.getClass().getSimpleName());
stage.setWidth(500);
stage.setHeight(500);
stage.setScene(this.scene);
stage.show();
}
private void configureScene(){
root = new StackPane();
BorderPane bp = new BorderPane();
bp.setCenter(root);
bp.autosize();
this.scene = new Scene(bp, Color.LINEN);
scene.getStylesheets().add("styles/template.css");
}
}
|
[
"d.hirt@indivikar.ch"
] |
d.hirt@indivikar.ch
|
bfd137cdc80c1f6d54310e7597f694c7fdeb9f1f
|
a5721d03524d9094f344bdc12746ca3b5579bc04
|
/hy-lyjc-industrial-operation-monitoring/src/main/java/net/cdsunrise/hy/lyjc/industrialoperationmonitoring/vo/FeatureTourismResourceCondition.java
|
fd02488e019020ba30ae20cdec06b27408077b4e
|
[] |
no_license
|
yesewenrou/test
|
2aeaa0ea09842eeed2b0e589895b4f00319bf13b
|
992a70bed383f5574e4cc0db539dd764d984e5c6
|
refs/heads/master
| 2023-02-16T21:02:59.801518
| 2021-01-20T02:31:17
| 2021-01-20T02:31:17
| 327,574,246
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 585
|
java
|
package net.cdsunrise.hy.lyjc.industrialoperationmonitoring.vo;
import lombok.Data;
import javax.validation.constraints.NotBlank;
/**
* @author LHY
* 用于分页搜索条件
*/
@Data
public class FeatureTourismResourceCondition {
/**
* 资源名称
*/
private String resourceName;
/**
* 资源类型编码
*/
@NotBlank(message = "资源类型不能为空")
private String resourceTypeCode;
/**
* 所属区域编码
*/
private String regionalCode;
/**
* 特色标签
*/
private String featureLabel;
}
|
[
"896586757@qq.com"
] |
896586757@qq.com
|
f3bc3c3bdff16c899e7ae93ef444ae4a97843586
|
58da62dfc6e145a3c836a6be8ee11e4b69ff1878
|
/src/main/java/com/alipay/api/domain/MybankCreditUserSitememberEnterpriseMatchModel.java
|
6bd22d0ed15d4a713984385948cca2cfd5803c03
|
[
"Apache-2.0"
] |
permissive
|
zhoujiangzi/alipay-sdk-java-all
|
00ef60ed9501c74d337eb582cdc9606159a49837
|
560d30b6817a590fd9d2c53c3cecac0dca4449b3
|
refs/heads/master
| 2022-12-26T00:27:31.553428
| 2020-09-07T03:39:05
| 2020-09-07T03:39:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,840
|
java
|
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 企业支付宝与企业信息匹配校验服务
*
* @author auto create
* @since 1.0, 2018-09-06 14:19:07
*/
public class MybankCreditUserSitememberEnterpriseMatchModel extends AlipayObject {
private static final long serialVersionUID = 2251728481438133457L;
/**
* 工商注册号,与social_credit_code字段不能同时为空
*/
@ApiField("business_reg_no")
private String businessRegNo;
/**
* 公司名称
*/
@ApiField("company_name")
private String companyName;
/**
* 站点类型,如支付宝、淘宝等
*/
@ApiField("site")
private String site;
/**
* 站点登录号,比如企业支付宝的手机号或邮箱
*/
@ApiField("site_login_id")
private String siteLoginId;
/**
* 统一社会信用代码,与business_reg_no字段不能同时为空
*/
@ApiField("social_credit_code")
private String socialCreditCode;
public String getBusinessRegNo() {
return this.businessRegNo;
}
public void setBusinessRegNo(String businessRegNo) {
this.businessRegNo = businessRegNo;
}
public String getCompanyName() {
return this.companyName;
}
public void setCompanyName(String companyName) {
this.companyName = companyName;
}
public String getSite() {
return this.site;
}
public void setSite(String site) {
this.site = site;
}
public String getSiteLoginId() {
return this.siteLoginId;
}
public void setSiteLoginId(String siteLoginId) {
this.siteLoginId = siteLoginId;
}
public String getSocialCreditCode() {
return this.socialCreditCode;
}
public void setSocialCreditCode(String socialCreditCode) {
this.socialCreditCode = socialCreditCode;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
6b368229e561c494c17a02fe053e0e28178f6136
|
bf76adb6518f66e1633f08c47083d9afa6e3f007
|
/Y2017JC79PRO/src/Teacher/ADVANCED_TOPICs/JDBC_PROVIDERS/DEMO17062017/MOD04/MOD04DEMO3.java
|
ef804a9a5e27481160eaf83715d9ead7d1e8e30f
|
[] |
no_license
|
dongbuihuu/Y2017JC79DB
|
0699e394fdd2e2f7dc06e915a42374e98b76ea00
|
36ba4d22a35bd2defa6b851a0de24e8547c4808d
|
refs/heads/master
| 2021-08-28T10:47:53.207455
| 2017-12-12T01:20:39
| 2017-12-12T01:20:39
| 105,788,617
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,560
|
java
|
package JAVACORE_TRAINING.TEACHER.ADVANCED_TOPICs.JDBC_PROVIDERS.DEMO17062017.MOD04;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.ResultSet;
import javax.swing.JOptionPane;
import com.microsoft.sqlserver.jdbc.SQLServerDataSource;
import com.microsoft.sqlserver.jdbc.SQLServerException;
import JC19SQLConnection.SQLConnect;
public class MOD04DEMO3 {
public static void main(String[] args) {
//1. Khai báo đối tượng
Connection objConnection;
//2. Khai báo & thiết lập các tham số kết nối
JC19SQLConnection.SQLConnect objData = new SQLConnect();
//3. Thực thi mở kết nối tới csdl SQL
try {
objConnection = objData.OpenConnection(
"127.0.0.1",
"nothing", "sa", "TICKETBOX_DB", 1433);
if(!objConnection.isClosed()){
//4. Khai báo các đối tượng
ResultSet objRs;
CallableStatement objCmst;
//String sSQL = "SELECT EventName, Price, EventDay FROM cs_Events";
//5. Khởi tạo đối tượng CallableStatement qua Connection
objCmst = objConnection.prepareCall
("{call SP_DELETE_STUDENT(?)}");
objCmst.setInt("RollNo", 2);
//6. Thực thi nhận về tập bản ghi --> đưa vào Resultset
objCmst.execute();
//7.
short shOpt = (short)JOptionPane.showConfirmDialog(null,
"Bạn có xem dữ liệu ko?", "Thông báo",
JOptionPane.YES_NO_OPTION);
if(shOpt == 0){
//5. Khởi tạo đối tượng CallableStatement qua Connection
objCmst = objConnection.prepareCall("{call SP_GetStudent()}");
//6. Thực thi nhận về tập bản ghi --> đưa vào Resultset
objRs = objCmst.executeQuery();
//7. Duyệt và hiển thị
if(objRs.getRow() > 0){
while(objRs.next()){
System.out.println("- RollNo: "+ objRs.getInt(1));
System.out.println("- FullName: "
+ objRs.getString("FullName"));
System.out.println("- Email: "
+ objRs.getString("Email"));
System.out.println("- Mobile: "
+ objRs.getString("Mobile"));
System.out.println("- Mark: "
+ objRs.getFloat("Mark"));
}
}else{
System.out.println("Ko còn dữ liệu :D");
}
}
else{
JOptionPane.showMessageDialog(null, "Cảm ơn vì bạn Thúy ko muốn xem!!!");
}
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
|
[
"silamy1927@gmail.com"
] |
silamy1927@gmail.com
|
a822131a14ff207f0198589ffac32da42dec1709
|
f232c2c7966e5769d1f68af87c83615fe4202870
|
/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/datacenters/DataCenterEventListModel.java
|
28cf011186619be6fe3cb41e6404bfe0b62c854b
|
[] |
no_license
|
BillTheBest/ovirt-engine
|
54d0d3cf5b103c561c4e72e65856948f252b41a1
|
7d5d711b707e080a69920eb042f6f547dfa9443f
|
refs/heads/master
| 2016-08-05T16:52:16.557733
| 2011-11-07T02:49:42
| 2011-11-07T02:49:42
| 2,938,776
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,777
|
java
|
package org.ovirt.engine.ui.uicommonweb.models.datacenters;
import java.util.Collections;
import org.ovirt.engine.core.compat.*;
import org.ovirt.engine.ui.uicompat.*;
import org.ovirt.engine.core.common.businessentities.*;
import org.ovirt.engine.core.common.vdscommands.*;
import org.ovirt.engine.core.common.queries.*;
import org.ovirt.engine.core.common.action.*;
import org.ovirt.engine.ui.frontend.*;
import org.ovirt.engine.ui.uicommonweb.*;
import org.ovirt.engine.ui.uicommonweb.models.*;
import org.ovirt.engine.core.common.*;
import org.ovirt.engine.ui.uicommonweb.models.events.*;
import org.ovirt.engine.ui.uicompat.*;
import org.ovirt.engine.core.common.interfaces.*;
import org.ovirt.engine.core.common.businessentities.*;
import org.ovirt.engine.core.common.queries.*;
import org.ovirt.engine.ui.uicommonweb.*;
import org.ovirt.engine.ui.uicommonweb.models.*;
@SuppressWarnings("unused")
public class DataCenterEventListModel extends EventListModel
{
public storage_pool getEntity()
{
return (storage_pool)((super.getEntity() instanceof storage_pool) ? super.getEntity() : null);
}
public void setEntity(storage_pool value)
{
super.setEntity(value);
}
@Override
protected void OnEntityChanged()
{
super.OnEntityChanged();
if (getEntity() != null)
{
getSearchCommand().Execute();
}
else
{
setItems(null);
}
}
@Override
public void Search()
{
if (getEntity() != null)
{
setSearchString(StringFormat.format("Events: event_datacenter=%1$s", getEntity().getname()));
super.Search();
}
}
@Override
protected void EntityPropertyChanged(Object sender, PropertyChangedEventArgs e)
{
super.EntityPropertyChanged(sender, e);
if (e.PropertyName.equals("name"))
{
getSearchCommand().Execute();
}
}
}
|
[
"liuyang3240@gmail.com"
] |
liuyang3240@gmail.com
|
910d0a4733a56cabab6d2bf539615597c2b033f4
|
0fe47261ddb3f34785ea605c2ed86184810bb2e6
|
/arachnidium-app-model/src/test/java/mobile/ios/IOSTestExample.java
|
ff09517eb81969959b38157c99c14edf673399fa
|
[] |
no_license
|
voodoo144/arachnidium-java
|
2f63ea02027921a775b7bbf88cac64bd094b2d59
|
85e76628a84187ff190b7eade80d4d63889ad787
|
refs/heads/master
| 2020-12-03T09:21:33.281355
| 2014-11-12T12:49:14
| 2014-11-12T12:49:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,946
|
java
|
package mobile.ios;
import com.github.arachnidium.util.configuration.Configuration;
import org.testng.annotations.Test;
import com.github.arachnidium.mobile.ios.iucatalog.ActionSheets;
import com.github.arachnidium.mobile.ios.iucatalog.AlertView;
import com.github.arachnidium.mobile.ios.iucatalog.AppleCom;
import com.github.arachnidium.mobile.ios.iucatalog.UICatalog;
import com.github.arachnidium.model.mobile.MobileApplication;
import com.github.arachnidium.model.mobile.MobileFactory;
import com.github.arachnidium.model.mobile.WebViewContent;
public class IOSTestExample {
@Test
public void iOSUICatalogTest() {
Configuration config = Configuration
.get("src/test/resources/configs/mobile/app/ios/ios_uiCatalog.json");
MobileApplication uiCatalog = new MobileFactory(config).launch(
MobileApplication.class);
try {
UICatalog uicatalog = uiCatalog.getPart(UICatalog.class);
uicatalog.backToMe();
uicatalog.shake();
uicatalog
.selectItem("Action Sheets");
ActionSheets<?> actionSheets = uiCatalog
.getPart(ActionSheets.class);
actionSheets.clickOnOk_Cancel();
actionSheets.clickOnSplashButton("OK");
actionSheets.clickOnOther();
actionSheets.clickOnSplashButton("Safe Choice");
uicatalog.backToMe();
uicatalog.selectItem("Alert Views");
AlertView alertView = uiCatalog.getPart(AlertView.class);
alertView.invokeSimpleAlert();
uiCatalog.getManager().getAlert().dismiss();
uicatalog.backToMe();
uicatalog.selectItem("Web View");
WebViewContent webView = uiCatalog.getPart(WebViewContent.class);
webView.getCurrentUrl();
webView.refresh();
webView.to("http://www.google.com");
webView.back();
AppleCom appleCom = webView.getPart(AppleCom.class);
appleCom.selectLink("Store");
appleCom.selectShop("Shop iPhone");
uicatalog.backToMe();
uicatalog
.selectItem("Action Sheets");
} finally {
uiCatalog.quit();
}
}
}
|
[
"tichomirovsergey@gmail.com"
] |
tichomirovsergey@gmail.com
|
d6b11607b728704720aa05b75a387a0acdb28712
|
b7693e7a6ba1c217c17b257f56367a6c826193f2
|
/plugins/org.ifc4emf.metamodel.ifc/src/IFC2X3/IfcQuantityArea.java
|
cc1db1343a9e16ebf9ee8f307dbba5ee0f6e8478
|
[] |
no_license
|
patins1/ifc4emf
|
6941967114f87965ea124c36b95aaedc5ef01349
|
ad65df3fce500e5691625d4e0906041c8c0db284
|
refs/heads/master
| 2021-01-19T10:40:16.758125
| 2017-09-11T02:25:57
| 2017-09-11T02:25:57
| 87,891,492
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,247
|
java
|
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package IFC2X3;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Ifc Quantity Area</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link IFC2X3.IfcQuantityArea#getAreaValue <em>Area Value</em>}</li>
* </ul>
* </p>
*
* @see IFC2X3.IFC2X3Package#getIfcQuantityArea()
* @model
* @generated
*/
public interface IfcQuantityArea extends IfcPhysicalSimpleQuantity {
/**
* Returns the value of the '<em><b>Area Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Area Value</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Area Value</em>' attribute.
* @see #isSetAreaValue()
* @see #unsetAreaValue()
* @see #setAreaValue(Double)
* @see IFC2X3.IFC2X3Package#getIfcQuantityArea_AreaValue()
* @model unsettable="true" dataType="IFC2X3.REAL" required="true"
* @generated
*/
Double getAreaValue();
/**
* Sets the value of the '{@link IFC2X3.IfcQuantityArea#getAreaValue <em>Area Value</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Area Value</em>' attribute.
* @see #isSetAreaValue()
* @see #unsetAreaValue()
* @see #getAreaValue()
* @generated
*/
void setAreaValue(Double value);
/**
* Unsets the value of the '{@link IFC2X3.IfcQuantityArea#getAreaValue <em>Area Value</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isSetAreaValue()
* @see #getAreaValue()
* @see #setAreaValue(Double)
* @generated
*/
void unsetAreaValue();
/**
* Returns whether the value of the '{@link IFC2X3.IfcQuantityArea#getAreaValue <em>Area Value</em>}' attribute is set.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return whether the value of the '<em>Area Value</em>' attribute is set.
* @see #unsetAreaValue()
* @see #getAreaValue()
* @see #setAreaValue(Double)
* @generated
*/
boolean isSetAreaValue();
} // IfcQuantityArea
|
[
"patins@4fe55a55-8cb9-4820-ac24-0eeacf389520"
] |
patins@4fe55a55-8cb9-4820-ac24-0eeacf389520
|
37c9dbffb153ee61174779a0e94d38e669bd6e06
|
bdb249c3436511fd8a914928291d97a4dc3cfc54
|
/KotlinTest/qrcode-module/src/main/java/com/xfs/qrcode_module/camera/open/CameraFacing.java
|
4def5e26660849963f15b2fe39f099f6b5ae9888
|
[] |
no_license
|
1136346879/picture_dx
|
090ba198fde99eb322ab3c9975f4fb805f202cfa
|
fd26e94c6f5f86f77de5b544cd27b6a748aaa2dc
|
refs/heads/master
| 2023-02-20T04:19:08.732978
| 2023-02-10T08:37:59
| 2023-02-10T08:37:59
| 158,658,353
| 13
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 807
|
java
|
/*
* Copyright (C) 2015 ZXing 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 com.xfs.qrcode_module.camera.open;
/**
* Enumeration of directions a camera may face: front or back.
*/
public enum CameraFacing {
BACK, // must be value 0!
FRONT, // must be value 1!
}
|
[
"1136346879@qq.com"
] |
1136346879@qq.com
|
2f00a5350dd41adf0477982bebb0b51dbbfef60e
|
b760f94cba183e9c1f58190401230bb4a979ca92
|
/网课/动力节点/javase进阶/集合/src/com/yiming/java1025/CollectionTest05.java
|
46af2f8071945fa651079c3aadf5659ea14292a9
|
[] |
no_license
|
zym-bass/Java--
|
866d302963e89a81a1285d683f06916d19a10166
|
10617f3f5d1446f6a5f54e32464ed82f4c5c0628
|
refs/heads/main
| 2023-02-09T12:42:13.369757
| 2021-01-08T11:44:19
| 2021-01-08T11:44:19
| 304,755,939
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,203
|
java
|
package com.yiming.java1025;
import java.util.ArrayList;
import java.util.Collection;
public class CollectionTest05 {
public static void main(String[] args){
//创建集合对象
Collection c = new ArrayList();
Animal a1 = new Animal("一名");
c.add(a1);
Animal a2 = new Animal("一名");
System.out.println(c.contains(a2));
System.out.println("当前元素的集合个数为:" + c.size());
//同理remove()方法也调用了equals()方法
Animal a3 = new Animal("一名");
c.remove(a3);
System.out.println("当前元素的集合个数为:" + c.size());
}
}
class Animal{
private String name ;
public Animal(){
super();
}
public Animal(String name){
this.name = name;
}
//重写equals方法
public boolean equals(Object o) {
if (o == null && !(o instanceof Animal)) {
return false;
}
if (this == o) {
return true;
}
Animal c = (Animal) o;
/*if (c.name.equals(this.name)) {
return true;
}
return false;*/
return c.name.equals(this.name);
}
}
|
[
"824122161@qq.com"
] |
824122161@qq.com
|
c453fed1f7d2f7e73bdb3573d21434051bd78629
|
c0fe21b86f141256c85ab82c6ff3acc56b73d3db
|
/vod/src/main/java/com/jdcloud/sdk/service/vod/model/GetIPRuleRequest.java
|
1537b79b0a45d425fb2136f0d67d6faa91046e1e
|
[
"Apache-2.0"
] |
permissive
|
jdcloud-api/jdcloud-sdk-java
|
3fec9cf552693520f07b43a1e445954de60e34a0
|
bcebe28306c4ccc5b2b793e1a5848b0aac21b910
|
refs/heads/master
| 2023-07-25T07:03:36.682248
| 2023-07-25T06:54:39
| 2023-07-25T06:54:39
| 126,275,669
| 47
| 61
|
Apache-2.0
| 2023-09-07T08:41:24
| 2018-03-22T03:41:41
|
Java
|
UTF-8
|
Java
| false
| false
| 1,642
|
java
|
/*
* Copyright 2018 JDCLOUD.COM
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:#www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Domain
* 域名配置相关接口
*
* OpenAPI spec version: v1
* Contact:
*
* NOTE: This class is auto generated by the jdcloud code generator program.
*/
package com.jdcloud.sdk.service.vod.model;
import com.jdcloud.sdk.annotation.Required;
import com.jdcloud.sdk.service.JdcloudRequest;
/**
* 查询CDN域名IP黑名单规则配置
*/
public class GetIPRuleRequest extends JdcloudRequest implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* 域名ID
* Required:true
*/
@Required
private Long domainId;
/**
* get 域名ID
*
* @return
*/
public Long getDomainId() {
return domainId;
}
/**
* set 域名ID
*
* @param domainId
*/
public void setDomainId(Long domainId) {
this.domainId = domainId;
}
/**
* set 域名ID
*
* @param domainId
*/
public GetIPRuleRequest domainId(Long domainId) {
this.domainId = domainId;
return this;
}
}
|
[
"tancong@jd.com"
] |
tancong@jd.com
|
8579150b548a1442580bccdd0a722ea72f52e629
|
5f8fdf99f76653e8d26986f7cea1caa829d9abf4
|
/6 Command Pattern/src/command/LightOffCommand.java
|
170fe8ffa4d51e73ded90e668654304910e3a953
|
[] |
no_license
|
nanwan03/HeadFirst-Design-Pattern-Self
|
08048b67e61bb376f89a1d31511613cfc0108a32
|
341430a228f5610c440f101a8dc145490e7c2f38
|
refs/heads/master
| 2021-01-10T07:00:20.930669
| 2016-02-20T22:00:44
| 2016-02-20T22:00:44
| 51,129,682
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 355
|
java
|
package command;
import vendors.Light;
public class LightOffCommand implements Command {
Light light;
public LightOffCommand(Light light) {
this.light = light;
}
@Override
public void execute() {
// TODO Auto-generated method stub
light.off();
}
@Override
public void undo() {
// TODO Auto-generated method stub
light.on();
}
}
|
[
"wn1842@gmail.com"
] |
wn1842@gmail.com
|
cf81d26df8d1e6e236572f6312bbf3d9bd846af8
|
c4623aa95fb8cdd0ee1bc68962711c33af44604e
|
/src/com/google/android/gms/internal/oq$a.java
|
86adfa9b6dc247ebe857d5b0c88ee8b661230725
|
[] |
no_license
|
reverseengineeringer/com.yelp.android
|
48f7f2c830a3a1714112649a6a0a3110f7bdc2b1
|
b0ac8d4f6cd5fc5543f0d8de399b6d7b3a2184c8
|
refs/heads/master
| 2021-01-19T02:07:25.997811
| 2016-07-19T16:37:24
| 2016-07-19T16:37:24
| 38,555,675
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,422
|
java
|
package com.google.android.gms.internal;
import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
public abstract class oq$a
extends Binder
implements oq
{
public static oq bI(IBinder paramIBinder)
{
if (paramIBinder == null) {
return null;
}
IInterface localIInterface = paramIBinder.queryLocalInterface("com.google.android.gms.playlog.internal.IPlayLogService");
if ((localIInterface != null) && ((localIInterface instanceof oq))) {
return (oq)localIInterface;
}
return new oq.a.a(paramIBinder);
}
public boolean onTransact(int paramInt1, Parcel paramParcel1, Parcel paramParcel2, int paramInt2)
{
String str = null;
Object localObject2 = null;
Object localObject1 = null;
switch (paramInt1)
{
default:
return super.onTransact(paramInt1, paramParcel1, paramParcel2, paramInt2);
case 1598968902:
paramParcel2.writeString("com.google.android.gms.playlog.internal.IPlayLogService");
return true;
case 2:
paramParcel1.enforceInterface("com.google.android.gms.playlog.internal.IPlayLogService");
str = paramParcel1.readString();
if (paramParcel1.readInt() != 0) {}
for (paramParcel2 = ov.CREATOR.du(paramParcel1);; paramParcel2 = null)
{
if (paramParcel1.readInt() != 0) {
localObject1 = or.CREATOR.dt(paramParcel1);
}
a(str, paramParcel2, (or)localObject1);
return true;
}
case 3:
paramParcel1.enforceInterface("com.google.android.gms.playlog.internal.IPlayLogService");
localObject1 = paramParcel1.readString();
paramParcel2 = str;
if (paramParcel1.readInt() != 0) {
paramParcel2 = ov.CREATOR.du(paramParcel1);
}
a((String)localObject1, paramParcel2, paramParcel1.createTypedArrayList(or.CREATOR));
return true;
}
paramParcel1.enforceInterface("com.google.android.gms.playlog.internal.IPlayLogService");
localObject1 = paramParcel1.readString();
paramParcel2 = (Parcel)localObject2;
if (paramParcel1.readInt() != 0) {
paramParcel2 = ov.CREATOR.du(paramParcel1);
}
a((String)localObject1, paramParcel2, paramParcel1.createByteArray());
return true;
}
}
/* Location:
* Qualified Name: com.google.android.gms.internal.oq.a
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
d69be8edbdb3664c93fd36aadb5cd6134062fa5a
|
fb10774d7a7adb669fb95064fde48051d8496e11
|
/source/openapi-sdk-message-1.3.4.20170608-sources/com/yiji/openapi/message/product/ewpay/QftIntegratedPaymentResponse.java
|
2d8ceb3afdbcc4cd40cbcc2708d6f8186b9855c3
|
[] |
no_license
|
jtyjty99999/yiji-nodejs
|
9297339138df66590d02b637c76a62e54f0747ca
|
0e3e2e66f89bcc2f6de7466b1adf892b2d903d09
|
refs/heads/master
| 2021-01-22T22:35:31.766945
| 2017-06-25T15:16:36
| 2017-06-25T15:16:36
| 85,558,620
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,725
|
java
|
/*
* www.yiji.com Inc.
* Copyright (c) 2014 All Rights Reserved.
*/
/*
* 修订记录:
* @author xinqing@yiji.com 下午2:32:05 创建
*/
package com.yiji.openapi.message.product.ewpay;
import java.util.Date;
import org.hibernate.validator.constraints.NotBlank;
import com.yiji.openapi.sdk.common.annotation.OpenApiField;
import com.yiji.openapi.sdk.common.annotation.OpenApiMessage;
import com.yiji.openapi.sdk.common.enums.ApiMessageType;
import com.yiji.openapi.sdk.common.message.ApiResponse;
/**
*
*
* @author xinqing@yiji.com
*
*/
@OpenApiMessage(service = "qftIntegratedPayment", type = ApiMessageType.Response)
public class QftIntegratedPaymentResponse extends ApiResponse {
@NotBlank
@OpenApiField(desc = "统一流水号" ,demo = "500237199008287628")
private String gid;
@OpenApiField(desc = "商户id" ,demo = "500237199008287628")
private String parterId;
@NotBlank
@OpenApiField(desc = "渠道id" ,demo = "openapi")
private String channelId;
@NotBlank
@OpenApiField(desc = "交易号" ,demo = "cowpayorderno1443078490480")
private String tradeNo;
@OpenApiField(desc = "商户卡号" ,demo = "12345678901234567890")
private String merchantCardNo;
@OpenApiField(desc = "商户资金帐号" ,demo = "12345678901234567890")
private String merchantAccNo;
@OpenApiField(desc = "入口编码" ,demo = "01")
private String inlet = "01";
@OpenApiField(desc = "请求时间" ,demo = "20160232143022")
private Date requestDate=new Date();
public Date getRequestDate() {
return requestDate;
}
public void setRequestDate(Date requestDate) {
this.requestDate = requestDate;
}
public String getGid() {
return this.gid;
}
public void setGid(String gid) {
this.gid = gid;
}
public String getParterId() {
return this.parterId;
}
public void setParterId(String parterId) {
this.parterId = parterId;
}
public String getChannelId() {
return this.channelId;
}
public void setChannelId(String channelId) {
this.channelId = channelId;
}
public String getTradeNo() {
return this.tradeNo;
}
public void setTradeNo(String tradeNo) {
this.tradeNo = tradeNo;
}
public String getMerchantCardNo() {
return this.merchantCardNo;
}
public void setMerchantCardNo(String merchantCardNo) {
this.merchantCardNo = merchantCardNo;
}
public String getMerchantAccNo() {
return this.merchantAccNo;
}
public void setMerchantAccNo(String merchantAccNo) {
this.merchantAccNo = merchantAccNo;
}
public String getInlet() {
return this.inlet;
}
public void setInlet(String inlet) {
this.inlet = inlet;
}
}
|
[
"tianyi.jiangty@alibaba-inc.com"
] |
tianyi.jiangty@alibaba-inc.com
|
06647652c4614e1c283fc90c36cfbce2af222037
|
638a364c2f91cf5e783ecd76e14b16a519d28bad
|
/src/main/java/net/mcreator/lotmodfabric/block/LotmodPlanksBlock.java
|
a0e9352d563b9dfb4b76dc4f23c043256f6620ed
|
[] |
no_license
|
Segreguj-com/Lotmod-fabric
|
c86dbaf9f3388adc4207efa3f324767ebc914600
|
cd2131e25dda38e3993d981593575ff1d06aa28d
|
refs/heads/master
| 2023-01-05T19:12:41.076157
| 2020-10-31T10:40:45
| 2020-10-31T10:40:45
| 307,742,323
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 931
|
java
|
package net.mcreator.lotmodfabric.block;
import net.minecraft.loot.context.LootContext;
import net.minecraft.item.ItemStack;
import net.minecraft.block.Material;
import net.minecraft.block.BlockState;
import net.minecraft.block.Block;
import net.fabricmc.fabric.api.tools.FabricToolTags;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import java.util.List;
import java.util.Collections;
public class LotmodPlanksBlock extends Block {
public LotmodPlanksBlock() {
super(FabricBlockSettings.of(Material.WOOD).strength(4F, 5.223303379776745F).lightLevel(0).breakByTool(FabricToolTags.AXES, 0));
}
@Override
public List<ItemStack> getDroppedStacks(BlockState state, LootContext.Builder builder) {
List<ItemStack> dropsOriginal = super.getDroppedStacks(state, builder);
if (!dropsOriginal.isEmpty())
return dropsOriginal;
return Collections.singletonList(new ItemStack(this, 1));
}
}
|
[
"unconfigured@null.spigotmc.org"
] |
unconfigured@null.spigotmc.org
|
630c8050bfb56010a076ff6c9bdf7fdd599551df
|
f0deaa81f032c7fa919fe55ce96225f3f2e1ff29
|
/ch03/ex3-13.AmazonProperties.java
|
d73aefd836d25e84f2f6d731e3c3ed6bf920dad1
|
[] |
no_license
|
freebz/Spring-Boot-in-Action
|
37dcfeb84f3250b7b312ff30266d638d5189304a
|
09b484eba6af0806220b93d9284334d8350619ab
|
refs/heads/master
| 2020-06-05T01:00:43.518618
| 2019-06-17T02:07:25
| 2019-06-17T02:07:25
| 192,259,480
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 584
|
java
|
// 코드 3-13 빈 안에 구성 프로퍼티 포함(AmazoneProperties)
package readinglist;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@Component
@ConfigurationProperties("amazon") // "amazon" 접두어가 붙은 프로퍼티 주입
public class AmazonProperties {
private String associateId;
public void setAssociateId(String associateId) { // associateId 세터 메서드
this.associateId = associateId;
}
public String getAssociatedId() {
return associateId;
}
}
|
[
"freebz@hananet.net"
] |
freebz@hananet.net
|
fbf68c0747be640770bdf5dc717c7e5dbc14dd5e
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Math/11/org/apache/commons/math3/optimization/direct/CMAESOptimizer_randn_1424.java
|
760c66bdb8069e694220a42c8b6bc912ad924d6b
|
[] |
no_license
|
hvdthong/NetML
|
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
|
9bb103da21327912e5a29cbf9be9ff4d058731a5
|
refs/heads/master
| 2021-06-30T15:03:52.618255
| 2020-10-07T01:58:48
| 2020-10-07T01:58:48
| 150,383,588
| 1
| 1
| null | 2018-09-26T07:08:45
| 2018-09-26T07:08:44
| null |
UTF-8
|
Java
| false
| false
| 2,711
|
java
|
org apach common math3 optim direct
implement activ covari matrix adapt evolut strategi cma
linear convex smooth global function minim
cma evolut strategi cma reliabl stochast optim method
appli deriv base method quasi newton bfg
conjug gradient fail due rug search landscap nois local
optima outlier object function
quasi newton method cma learn appli variabl metric
underli search space unlik quasi newton method
cma estim gradient make consider
reliabl term find good close optim solut
gener smooth object function cma roughli ten time
slower bfg count object function evalu gradient provid
math math variabl deriv free simplex
direct search method nelder mead faster
reliabl cma
cma suit separ
badli condit problem observ advantag cma compar
convent evolut strategi
math math function evalu difficult problem complet
optim singl run expect roughli
math math math math
function evalu
implement translat adapt matlab version
cma algorithm implement modul code cmae version
inform refer link
href http www lri hansen cmae matlab code
href http www lri hansen cmaesintro html introduct cma
href http wikipedia org wiki cma wikipedia
version
deprec remov
cmae optim cmaesoptim
param size length random arrai
arrai gaussian random number
randn size
randn size
size
randn random gaussian nextgaussian
randn
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
e996395fc5c68d2c0c810f74280b49ec2edc0476
|
c32e0ca159f9928483006bf379210f0a6c7ec6d6
|
/src/main/java/com/kurtomerfaruk/primeadminbsb/models/Productdocument.java
|
29a8fa92737b85be9caa8a201bf2cf1223690391
|
[] |
no_license
|
jhovannycanas/PrimeFacesAdminBSB
|
477acb29d71eb6e99f8078aab38797b1c35b248b
|
0bd843df78fbccc7677c79dfdf15155a06c4a961
|
refs/heads/master
| 2021-01-01T06:53:00.155919
| 2017-06-21T20:55:56
| 2017-06-21T20:55:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,552
|
java
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.kurtomerfaruk.primeadminbsb.models;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlRootElement;
/**
*
* @author Omer Faruk KURT kurtomerfaruk@gmail.com
* @blog : http://kurtomerfaruk.com
* Created on date 27.01.2017 23:11:04
*/
@Entity
@Table(name = "productdocument")
@XmlRootElement
@NamedQueries({
@NamedQuery(name = "Productdocument.findAll", query = "SELECT p FROM Productdocument p"),
@NamedQuery(name = "Productdocument.findByProductID", query = "SELECT p FROM Productdocument p WHERE p.productdocumentPK.productID = :productID"),
@NamedQuery(name = "Productdocument.findByDocumentID", query = "SELECT p FROM Productdocument p WHERE p.productdocumentPK.documentID = :documentID"),
@NamedQuery(name = "Productdocument.findByModifiedDate", query = "SELECT p FROM Productdocument p WHERE p.modifiedDate = :modifiedDate")})
public class Productdocument implements Serializable {
private static final long serialVersionUID = 1L;
@EmbeddedId
protected ProductdocumentPK productdocumentPK;
@Basic(optional = false)
@NotNull
@Column(name = "ModifiedDate")
@Temporal(TemporalType.TIMESTAMP)
private Date modifiedDate;
public Productdocument() {
}
public Productdocument(ProductdocumentPK productdocumentPK) {
this.productdocumentPK = productdocumentPK;
}
public Productdocument(ProductdocumentPK productdocumentPK, Date modifiedDate) {
this.productdocumentPK = productdocumentPK;
this.modifiedDate = modifiedDate;
}
public Productdocument(int productID, int documentID) {
this.productdocumentPK = new ProductdocumentPK(productID, documentID);
}
public ProductdocumentPK getProductdocumentPK() {
return productdocumentPK;
}
public void setProductdocumentPK(ProductdocumentPK productdocumentPK) {
this.productdocumentPK = productdocumentPK;
}
public Date getModifiedDate() {
return modifiedDate;
}
public void setModifiedDate(Date modifiedDate) {
this.modifiedDate = modifiedDate;
}
@Override
public int hashCode() {
int hash = 0;
hash += (productdocumentPK != null ? productdocumentPK.hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof Productdocument)) {
return false;
}
Productdocument other = (Productdocument) object;
if ((this.productdocumentPK == null && other.productdocumentPK != null) || (this.productdocumentPK != null && !this.productdocumentPK.equals(other.productdocumentPK))) {
return false;
}
return true;
}
@Override
public String toString() {
return "com.kurtomerfaruk.primeadminbsb.models.Productdocument[ productdocumentPK=" + productdocumentPK + " ]";
}
}
|
[
"kurtomerfaruk@gmail.com"
] |
kurtomerfaruk@gmail.com
|
afff39d1650e1d3e8a1bd0e961334b273c962c22
|
a5dbeadebfd268a529d6a012fb23dc0b635f9b8c
|
/core/src/test/java/ru/mipt/cybersecurity/math/ec/test/FixedPointTest.java
|
3e1e78d0a84dd6d4cc5faa8f3d43b818857fbdd0
|
[] |
no_license
|
skhvostyuk/CyberSecurity
|
22f6a272e38b56bfb054aae0dd7aa03bc96b6d06
|
33ea483df41973984d0edbe47a20201b204150aa
|
refs/heads/master
| 2021-08-29T04:44:31.041415
| 2017-12-13T12:15:29
| 2017-12-13T12:15:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,675
|
java
|
package ru.mipt.cybersecurity.math.ec.test;
import java.math.BigInteger;
import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import ru.mipt.cybersecurity.asn1.x9.ECNamedCurveTable;
import ru.mipt.cybersecurity.asn1.x9.X9ECParameters;
import ru.mipt.cybersecurity.crypto.ec.CustomNamedCurves;
import ru.mipt.cybersecurity.math.ec.ECAlgorithms;
import ru.mipt.cybersecurity.math.ec.ECPoint;
import ru.mipt.cybersecurity.math.ec.FixedPointCombMultiplier;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
public class FixedPointTest
extends TestCase
{
private static final SecureRandom RANDOM = new SecureRandom();
private static final int TESTS_PER_CURVE = 5;
public void testFixedPointMultiplier()
{
final FixedPointCombMultiplier M = new FixedPointCombMultiplier();
Set names = new HashSet(enumToList(ECNamedCurveTable.getNames()));
names.addAll(enumToList(CustomNamedCurves.getNames()));
Iterator it = names.iterator();
while (it.hasNext())
{
String name = (String)it.next();
X9ECParameters x9A = ECNamedCurveTable.getByName(name);
X9ECParameters x9B = CustomNamedCurves.getByName(name);
X9ECParameters x9 = x9B != null ? x9B : x9A;
for (int i = 0; i < TESTS_PER_CURVE; ++i)
{
BigInteger k = new BigInteger(x9.getN().bitLength(), RANDOM);
ECPoint pRef = ECAlgorithms.referenceMultiply(x9.getG(), k);
if (x9A != null)
{
ECPoint pA = M.multiply(x9A.getG(), k);
assertPointsEqual("Standard curve fixed-point failure", pRef, pA);
}
if (x9B != null)
{
ECPoint pB = M.multiply(x9B.getG(), k);
assertPointsEqual("Custom curve fixed-point failure", pRef, pB);
}
}
}
}
private List enumToList(Enumeration en)
{
List rv = new ArrayList();
while (en.hasMoreElements())
{
rv.add(en.nextElement());
}
return rv;
}
private void assertPointsEqual(String message, ECPoint a, ECPoint b)
{
// NOTE: We intentionally test points for equality in both directions
assertEquals(message, a, b);
assertEquals(message, b, a);
}
public static Test suite()
{
return new TestSuite(FixedPointTest.class);
}
}
|
[
"hvostuksergey@gmail.com"
] |
hvostuksergey@gmail.com
|
4569d934910bd369def1a973486d472827c9d399
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/5/5_9512d3a4f6ce63f9af57858f0a3dda9e4b210d59/Character/5_9512d3a4f6ce63f9af57858f0a3dda9e4b210d59_Character_s.java
|
7b4d79f3ff264526d767a2511ddd5ff34a0d113a
|
[] |
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,716
|
java
|
/* java.lang.Character -- Wrapper class for char, and Unicode subsets
Copyright (C) 1998, 1999, 2001, 2002, 2005 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA.
Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.
As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module. An independent module is a module which is not derived from
or based on this library. If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
package java.lang;
public final class Character {
// TODO: NOTE: works only for ASCII encoding
/**
* Largest value allowed for radix arguments in Java. This value is 36.
*
* @see #digit(char,int)
* @see #forDigit(int,int)
* @see Integer#toString(int,int)
* @see Integer#valueOf(String)
*/
public static final int MAX_RADIX = 36;
/**
* The maximum value the char data type can hold. This value is
* <code>'\\uFFFF'</code>.
*/
public static final char MAX_VALUE = '\u007F';
/**
* Smallest value allowed for radix arguments in Java. This value is 2.
*
* @see #digit(char,int)
* @see #forDigit(int,int)
* @see Integer#toString(int,int)
* @see Integer#valueOf(String)
*/
public static final int MIN_RADIX = 2;
/**
* The minimum value the char data type can hold. This value is
* <code>'\\u0000'</code>.
*/
public static final char MIN_VALUE = '\u0000';
/**
* The immutable value of this Character.
*
* @serial the value of this Character
*/
private final char value;
/**
* Wraps up a character.
*
* @param value
* the character to wrap
*/
public Character(char value) {
this.value = value;
}
public char charValue() {
return value;
}
public static int digit(char ch, int radix) {
// TODO: only for radix 10 at the moment
if (radix != 10)
throw new IllegalArgumentException(
"lang.Character: works only for radix 10");
int intch = (int) ch;
if (30 <= intch && intch <= 57)
return intch - 48;
return -1;
}
public boolean equals(Object o) {
// TODO: instance of not implemented
// return o instanceof Character && value == ((Character) o).value;
return value == ((Character) o).value;
}
public int hashCode() {
return value;
}
public static boolean isDigit(char ch) {
int intch = (int) ch;
if (30 <= intch && intch <= 57)
return true;
return false;
}
public static boolean isLowerCase(char ch) {
int intch = (int) ch;
if (97 <= intch && intch <= 122)
return true;
return false;
}
public static boolean isUpperCase(char ch) {
int intch = (int) ch;
if (65 <= intch && intch <= 90)
return true;
return false;
}
public static char toLowerCase(char ch) {
int intch = (int) ch;
if (97 <= intch && intch <= 122)
return ch;
if (65 <= intch && intch <= 90)
return (char) (intch + 32);
return ch;
}
public String toString() {
// Package constructor avoids an array copy.
return new String(new char[] { value }, 0, 1);
}
public static char toUpperCase(char ch) {
int intch = (int) ch;
if (97 <= intch && intch <= 122)
return (char) (intch - 32);
if (65 <= intch && intch <= 90)
return ch;
return ch;
}
} // class Character
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
0ad4877494a153a47962e4415974bf86ace815b1
|
a92bba9923cb5cb7b37a91e09ccb70c70103375d
|
/ConexionBD/app/src/main/java/cibertec/dam1/conexionbd/MainActivity.java
|
c64ff48e4715b815af0d5b6b4f1e382141c49814
|
[] |
no_license
|
pelguera/EjemplosAndroid
|
b4b88d6db3c780d8f1cd6b6c8034c12fd7954a6e
|
f786c5eeb2431c21b2b6d839b28500e802ddb572
|
refs/heads/master
| 2020-07-09T16:57:38.973170
| 2019-08-23T16:04:28
| 2019-08-23T16:04:28
| 204,027,509
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,115
|
java
|
package cibertec.dam1.conexionbd;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import java.util.List;
import cibertec.dam1.conexionbd.dao.ClientesDB;
import cibertec.dam1.conexionbd.modelos.Cliente;
public class MainActivity extends AppCompatActivity {
private ClientesDB db;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
db = new ClientesDB(this);
Cliente cliente1 = new Cliente("Jaime","11111","jaime@mail.net");
Cliente cliente2 = new Cliente("Juan","22222","juan@mail.net");
Cliente cliente3 = new Cliente("Pedro","33333","pedro@mail.net");
Cliente cliente4 = new Cliente("David","44444","david@mail.net");
Log.i("---> Base de datos: ", "Insertando Clientes....");
db.insertCliente(cliente1);
db.insertCliente(cliente2);
db.insertCliente(cliente3);
db.insertCliente(cliente4);
Log.i("---> Base de datos: ", "Mostrando Clientes....");
mostrarClientesLog();
Log.i("---> Base de datos: ", "Borrando Cliente con id 1....");
db.deleteCliente(1);
mostrarClientesLog();
Log.i("---> Base de datos: ", "Cambiando el nombre de cliente2....");
cliente2.setName("María");
db.updateCliente(cliente2);
mostrarClientesLog();
Log.i("---> Base de datos: ", "Buscando datos de cliente....");
Cliente cliente = new Cliente();
cliente = db.buscarCliente("Juan");
Log.i("---> Base de datos: ", "Los datos de pedro son: "+cliente.toString());
Log.i("---> Base de datos: ", "Cambiando el nombre de Juan....");
cliente.setName("Maria");
db.updateCliente(cliente);
mostrarClientesLog();
//this.mostrarClientesLog();
}
private void mostrarClientesLog() {
List list = db.loadClientes();
for(Object cliente : list) {
Log.i("---> Base de datos: ", cliente.toString());
}
}
}
|
[
"paul.elguera@bbva.com"
] |
paul.elguera@bbva.com
|
a11e417cf31aa6257e8bfe8cc0019b3dcc431a38
|
53066f3b52ec57da05e8c61d33d4fe5ee073422c
|
/springjdbcautowire/src/main/java/com/gp/spring/springjdbc/Test.java
|
f6e97bf6ac21d2a3b9268e049f54812473f5f0e8
|
[] |
no_license
|
callgp/bt_servlet_jsp_jdbc
|
d8dbdbac29acc81290f3e1db0db26f09b9589048
|
0789f6c9c1c7670aa25977be42ab53555b9b50b4
|
refs/heads/master
| 2023-02-13T23:37:57.421627
| 2021-01-10T23:03:59
| 2021-01-10T23:03:59
| 293,679,279
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 649
|
java
|
package com.gp.spring.springjdbc;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import .core.JdbcTemplate;
public class Test {
public static void main(String[] args) {
ApplicationContext context = new ClassPathXmlApplicationContext("com/gp/spring/springjdbc/config.xml");
JdbcTemplate jdbcTemplate = (JdbcTemplate) context.getBean("jdbcTemplate");
String sql = "insert into employee values(?,?,?)";
int result = jdbcTemplate.update(sql, new Integer(2), "ff2", "ll2");
System.out.println("Number of records inserted are: " + result);
}
}
|
[
"callgp@gmail.com"
] |
callgp@gmail.com
|
22de3867edb14cc953abf4fd473ccd400bb44c3d
|
c1d859b804ef712a518da60c342bde3d03a194ad
|
/cdcommon/src/main/java/com/cdkj/baselibrary/appmanager/EventTags.java
|
83d2e41722e6a63280d2557839240c8f33a68b2d
|
[] |
no_license
|
wbteve/xn-zxzx-android
|
8a0e80d670d84ba943f11b0aef1decdc12817263
|
49408ae3885e2a6f006e34516f9fa559ef0c9c2d
|
refs/heads/master
| 2021-01-07T15:46:32.726956
| 2018-01-22T03:40:00
| 2018-01-22T03:40:00
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 711
|
java
|
package com.cdkj.baselibrary.appmanager;
/**
* EventBus
* Created by cdkj on 2017/7/18.
*/
public class EventTags {
//修改手机号后刷新数据
public final static String CHANGEPHONENUMBER_REFRESH = "1";
//修改支付密码
public final static String CHANGE_PAY_PWD_REFRESH = "2";
//结束所有界面
public final static String AllFINISH = "3";
//改变MainActivity显示界面
public final static String MAINCHANGESHOWINDEX = "4";
//结束MAINACTIVITY
public final static String MAINFINISH = "5";
//登录成功
public final static String LOGINREFRESH = "6";
//人行回答问题完成
public final static String RhQUESTIONFINISH = "7";
}
|
[
"200951328@qq.com"
] |
200951328@qq.com
|
ceaf91cf89942d4563a39624fd0dcf41c157fa95
|
1a512c1c818823c44b8efb19009e14bf950dde05
|
/project/psychologicalprj/src/com/entity/CourseOrder.java
|
99b84dd69365399b76d6ccd02aee492425949c9e
|
[] |
no_license
|
bao9777/Software
|
0af426f09a5ba7e42c2cff86f69ff55996f0c6a2
|
b7d12e3074667aab02b6327e8feefe2b2d343e50
|
refs/heads/master
| 2020-04-01T04:13:44.778795
| 2019-01-04T12:35:45
| 2019-01-04T12:44:56
| 152,854,885
| 0
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,844
|
java
|
package com.entity;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
/**
*
*@desc:课程订单表
* 字段:流水号,课程ID,用户ID,购买时间,成交价格,课程订单号
* 映射关系:单向多对一 用户表和课程表
*@author 段智兴
*@date:2018年11月20日下午4:30:41
*/
@Entity
@Table(name="courseorder")
public class CourseOrder {
private int courseorderId;
private Date courseorderBuyTime;
private float courseorderPrice;
private User user;
private Course course;
private String courseorderRandomId;
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
public int getCourseorderId() {
return courseorderId;
}
public void setCourseorderId(int courseorderId) {
this.courseorderId = courseorderId;
}
public Date getCourseorderBuyTime() {
return courseorderBuyTime;
}
public void setCourseorderBuyTime(Date courseorderBuyTime) {
this.courseorderBuyTime = courseorderBuyTime;
}
public float getCourseorderPrice() {
return courseorderPrice;
}
public void setCourseorderPrice(float courseorderPrice) {
this.courseorderPrice = courseorderPrice;
}
@ManyToOne
@JoinColumn(name="userId")
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
@ManyToOne
@JoinColumn(name="courseId")
public Course getCourse() {
return course;
}
public void setCourse(Course course) {
this.course = course;
}
public String getCourseorderRandomId() {
return courseorderRandomId;
}
public void setCourseorderRandomId(String courseorderRandomId) {
this.courseorderRandomId = courseorderRandomId;
}
}
|
[
"977702305@qq.com"
] |
977702305@qq.com
|
f7fd801402a273ba39031492b746c40badcb4588
|
76026dc39bbffec752d39577367057f43bbbdd54
|
/src/main/java/com/awin/recruitment/transfer/consumer/Consumer.java
|
005cf48571c6e252cd8395ccadae49f7727c75d4
|
[] |
no_license
|
pcwieka/Recruitment
|
4156b67dcdd2b9fbd6e107cd63d47233549242e4
|
6ac277d4c9f27bc2df2f3b06884088685ebf01b5
|
refs/heads/master
| 2020-03-28T06:26:52.724832
| 2018-09-12T00:31:25
| 2018-09-12T00:31:25
| 147,834,858
| 0
| 0
| null | 2018-09-07T14:31:48
| 2018-09-07T14:31:48
| null |
UTF-8
|
Java
| false
| false
| 137
|
java
|
package com.awin.recruitment.transfer.consumer;
public interface Consumer<T>{
void consume(
Iterable<T> messages
);
}
|
[
"="
] |
=
|
982134ca4b43922e75abe15e804993bf45f530ce
|
c5488473c8114647c12b835cd7b36e1dfb4c95a9
|
/Mobile App/Code/sources/com/google/android/gms/internal/C1794ke.java
|
b956229702bc81c26841768b8b30cc585a46f31e
|
[
"MIT"
] |
permissive
|
shivi98g/EpilNet-EpilepsyPredictor
|
5cf86835473112f98c130bb066edba4cf8fa3f20
|
15a98fb9ac7ee535005fb2aebb36548f28c7f6d1
|
refs/heads/main
| 2023-08-04T09:43:24.941854
| 2021-09-24T12:25:42
| 2021-09-24T12:25:42
| 389,867,899
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,372
|
java
|
package com.google.android.gms.internal;
import android.os.RemoteException;
import com.google.android.gms.common.api.BaseImplementation;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.PendingResult;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.internal.C1797kf;
/* renamed from: com.google.android.gms.internal.ke */
public final class C1794ke implements C1793kd {
/* renamed from: com.google.android.gms.internal.ke$a */
private static class C1796a extends C1790kb {
/* renamed from: Ea */
private final BaseImplementation.C0670b<Status> f3958Ea;
public C1796a(BaseImplementation.C0670b<Status> bVar) {
this.f3958Ea = bVar;
}
/* renamed from: aI */
public void mo15948aI(int i) throws RemoteException {
this.f3958Ea.mo10914b(new Status(i));
}
}
/* renamed from: c */
public PendingResult<Status> mo15950c(GoogleApiClient googleApiClient) {
return new C1797kf.C1798a(googleApiClient) {
/* access modifiers changed from: protected */
/* renamed from: a */
public void mo10540a(C1799kg kgVar) throws RemoteException {
((C1803ki) kgVar.mo15820hw()).mo15957a(new C1796a(this));
}
}.mo10928gE();
}
}
|
[
"31238277+shivi98g@users.noreply.github.com"
] |
31238277+shivi98g@users.noreply.github.com
|
dcf2b5c9e007bfb68f0102f3bbf55cf1002e7452
|
c476611a877bb77bf218ceda8179080f4d801359
|
/CardPersonalizationAssistantTool/src/com/gerenhua/tool/configdao/CAInfo.java
|
05008d9a9c46fc0d58ec2452a3c5ca61f07621c3
|
[] |
no_license
|
lindherm/easywebjsplab
|
180aac26dac5995ea68cc6363eb1fe5797917ef0
|
c7c9c49f14ef592ce2da2a0b069787044be37aea
|
refs/heads/master
| 2021-01-10T08:40:55.456479
| 2014-07-25T09:51:13
| 2014-07-25T09:51:13
| 49,270,764
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 841
|
java
|
package com.gerenhua.tool.configdao;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import com.gerenhua.tool.utils.Config;
public class CAInfo {
private String Rid;
public String getRid() {
return Rid;
}
public void setRid(String rid) {
Rid = rid;
}
public String getCaType() {
return CaType;
}
public void setCaType(String caType) {
CaType = caType;
}
private String CaType;
public List<CAInfo> getCaInfos(String aidSection) {
List<CAInfo> result=new ArrayList<CAInfo>();
Collection<String> rids = Config.getItems(aidSection);
for (String rid : rids) {
String caType = Config.getValue(aidSection, rid);
CAInfo caInfo=new CAInfo();
caInfo.setRid(rid);
caInfo.setCaType(caType);
result.add(caInfo);
}
return result;
}
}
|
[
"ly.easyweb@gmail.com"
] |
ly.easyweb@gmail.com
|
730afc7f340b8ec10cc917f614ae6706c0a7b293
|
c606b6395c88dfbbd3a2973ba6008515f1bf13d9
|
/Cy_3/src/org/apache/commons/math3/util/BigReal.java
|
0cc9659be66524b9d934bf0752bc928a420e7510
|
[] |
no_license
|
OliverKramer02/Cy_3
|
1dfcc9d16ce54a491d9ec2133e3789d4754b6561
|
7458d36ce13b716f9d104dd7b2f7f05c8c4fd539
|
refs/heads/master
| 2020-05-17T07:57:48.802053
| 2014-09-12T21:42:52
| 2014-09-12T21:42:52
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,631
|
java
|
/* 1: */ package org.apache.commons.math3.util;
/* 2: */
/* 3: */ import java.io.Serializable;
/* 4: */ import java.math.BigDecimal;
/* 5: */ import java.math.BigInteger;
/* 6: */ import java.math.MathContext;
/* 7: */ import java.math.RoundingMode;
/* 8: */ import org.apache.commons.math3.Field;
/* 9: */ import org.apache.commons.math3.FieldElement;
/* 10: */ import org.apache.commons.math3.exception.MathArithmeticException;
/* 11: */ import org.apache.commons.math3.exception.util.LocalizedFormats;
/* 12: */
/* 13: */ public class BigReal
/* 14: */ implements FieldElement<BigReal>, Comparable<BigReal>, Serializable
/* 15: */ {
/* 16: 43 */ public static final BigReal ZERO = new BigReal(BigDecimal.ZERO);
/* 17: 46 */ public static final BigReal ONE = new BigReal(BigDecimal.ONE);
/* 18: */ private static final long serialVersionUID = 4984534880991310382L;
/* 19: */ private final BigDecimal d;
/* 20: 55 */ private RoundingMode roundingMode = RoundingMode.HALF_UP;
/* 21: 58 */ private int scale = 64;
/* 22: */
/* 23: */ public BigReal(BigDecimal val)
/* 24: */ {
/* 25: 64 */ this.d = val;
/* 26: */ }
/* 27: */
/* 28: */ public BigReal(BigInteger val)
/* 29: */ {
/* 30: 71 */ this.d = new BigDecimal(val);
/* 31: */ }
/* 32: */
/* 33: */ public BigReal(BigInteger unscaledVal, int scale)
/* 34: */ {
/* 35: 79 */ this.d = new BigDecimal(unscaledVal, scale);
/* 36: */ }
/* 37: */
/* 38: */ public BigReal(BigInteger unscaledVal, int scale, MathContext mc)
/* 39: */ {
/* 40: 88 */ this.d = new BigDecimal(unscaledVal, scale, mc);
/* 41: */ }
/* 42: */
/* 43: */ public BigReal(BigInteger val, MathContext mc)
/* 44: */ {
/* 45: 96 */ this.d = new BigDecimal(val, mc);
/* 46: */ }
/* 47: */
/* 48: */ public BigReal(char[] in)
/* 49: */ {
/* 50:103 */ this.d = new BigDecimal(in);
/* 51: */ }
/* 52: */
/* 53: */ public BigReal(char[] in, int offset, int len)
/* 54: */ {
/* 55:112 */ this.d = new BigDecimal(in, offset, len);
/* 56: */ }
/* 57: */
/* 58: */ public BigReal(char[] in, int offset, int len, MathContext mc)
/* 59: */ {
/* 60:122 */ this.d = new BigDecimal(in, offset, len, mc);
/* 61: */ }
/* 62: */
/* 63: */ public BigReal(char[] in, MathContext mc)
/* 64: */ {
/* 65:130 */ this.d = new BigDecimal(in, mc);
/* 66: */ }
/* 67: */
/* 68: */ public BigReal(double val)
/* 69: */ {
/* 70:137 */ this.d = new BigDecimal(val);
/* 71: */ }
/* 72: */
/* 73: */ public BigReal(double val, MathContext mc)
/* 74: */ {
/* 75:145 */ this.d = new BigDecimal(val, mc);
/* 76: */ }
/* 77: */
/* 78: */ public BigReal(int val)
/* 79: */ {
/* 80:152 */ this.d = new BigDecimal(val);
/* 81: */ }
/* 82: */
/* 83: */ public BigReal(int val, MathContext mc)
/* 84: */ {
/* 85:160 */ this.d = new BigDecimal(val, mc);
/* 86: */ }
/* 87: */
/* 88: */ public BigReal(long val)
/* 89: */ {
/* 90:167 */ this.d = new BigDecimal(val);
/* 91: */ }
/* 92: */
/* 93: */ public BigReal(long val, MathContext mc)
/* 94: */ {
/* 95:175 */ this.d = new BigDecimal(val, mc);
/* 96: */ }
/* 97: */
/* 98: */ public BigReal(String val)
/* 99: */ {
/* 100:182 */ this.d = new BigDecimal(val);
/* 101: */ }
/* 102: */
/* 103: */ public BigReal(String val, MathContext mc)
/* 104: */ {
/* 105:190 */ this.d = new BigDecimal(val, mc);
/* 106: */ }
/* 107: */
/* 108: */ public RoundingMode getRoundingMode()
/* 109: */ {
/* 110:200 */ return this.roundingMode;
/* 111: */ }
/* 112: */
/* 113: */ public void setRoundingMode(RoundingMode roundingMode)
/* 114: */ {
/* 115:209 */ this.roundingMode = roundingMode;
/* 116: */ }
/* 117: */
/* 118: */ public int getScale()
/* 119: */ {
/* 120:219 */ return this.scale;
/* 121: */ }
/* 122: */
/* 123: */ public void setScale(int scale)
/* 124: */ {
/* 125:228 */ this.scale = scale;
/* 126: */ }
/* 127: */
/* 128: */ public BigReal add(BigReal a)
/* 129: */ {
/* 130:233 */ return new BigReal(this.d.add(a.d));
/* 131: */ }
/* 132: */
/* 133: */ public BigReal subtract(BigReal a)
/* 134: */ {
/* 135:238 */ return new BigReal(this.d.subtract(a.d));
/* 136: */ }
/* 137: */
/* 138: */ public BigReal negate()
/* 139: */ {
/* 140:243 */ return new BigReal(this.d.negate());
/* 141: */ }
/* 142: */
/* 143: */ public BigReal divide(BigReal a)
/* 144: */ {
/* 145: */ try
/* 146: */ {
/* 147:253 */ return new BigReal(this.d.divide(a.d, this.scale, this.roundingMode));
/* 148: */ }
/* 149: */ catch (ArithmeticException e)
/* 150: */ {
/* 151:256 */ throw new MathArithmeticException(LocalizedFormats.ZERO_NOT_ALLOWED, new Object[0]);
/* 152: */ }
/* 153: */ }
/* 154: */
/* 155: */ public BigReal reciprocal()
/* 156: */ {
/* 157: */ try
/* 158: */ {
/* 159:267 */ return new BigReal(BigDecimal.ONE.divide(this.d, this.scale, this.roundingMode));
/* 160: */ }
/* 161: */ catch (ArithmeticException e)
/* 162: */ {
/* 163:270 */ throw new MathArithmeticException(LocalizedFormats.ZERO_NOT_ALLOWED, new Object[0]);
/* 164: */ }
/* 165: */ }
/* 166: */
/* 167: */ public BigReal multiply(BigReal a)
/* 168: */ {
/* 169:276 */ return new BigReal(this.d.multiply(a.d));
/* 170: */ }
/* 171: */
/* 172: */ public BigReal multiply(int n)
/* 173: */ {
/* 174:281 */ return new BigReal(this.d.multiply(new BigDecimal(n)));
/* 175: */ }
/* 176: */
/* 177: */ public int compareTo(BigReal a)
/* 178: */ {
/* 179:286 */ return this.d.compareTo(a.d);
/* 180: */ }
/* 181: */
/* 182: */ public double doubleValue()
/* 183: */ {
/* 184:293 */ return this.d.doubleValue();
/* 185: */ }
/* 186: */
/* 187: */ public BigDecimal bigDecimalValue()
/* 188: */ {
/* 189:300 */ return this.d;
/* 190: */ }
/* 191: */
/* 192: */ public boolean equals(Object other)
/* 193: */ {
/* 194:306 */ if (this == other) {
/* 195:307 */ return true;
/* 196: */ }
/* 197:310 */ if ((other instanceof BigReal)) {
/* 198:311 */ return this.d.equals(((BigReal)other).d);
/* 199: */ }
/* 200:313 */ return false;
/* 201: */ }
/* 202: */
/* 203: */ public int hashCode()
/* 204: */ {
/* 205:319 */ return this.d.hashCode();
/* 206: */ }
/* 207: */
/* 208: */ public Field<BigReal> getField()
/* 209: */ {
/* 210:324 */ return BigRealField.getInstance();
/* 211: */ }
/* 212: */ }
/* Location: C:\Users\Olli\Desktop\NetworkPrioritizer-1.01.jar
* Qualified Name: org.apache.commons.math3.util.BigReal
* JD-Core Version: 0.7.0.1
*/
|
[
"ok082355@uni-greifswald.de"
] |
ok082355@uni-greifswald.de
|
7eaaa1b915c2ace6dd509417f856623ee5ce3025
|
37ec146943fadb0ce4e4b47eec692e1fdcd6940d
|
/ch09-enterprise/ch09-enterprise-activemq/src/main/java/com/zccoder/boot1/ch9/enterprise/activemq/activemq/MsgSender.java
|
01bef98ae20eaaae184fe57856fd6424e0fea832
|
[] |
no_license
|
GeorgeLe5qq/springboot-learning
|
bd09efe2574ce2347a60611d83f5c41942bf56d7
|
2f72442f255273548766700d02b70851ebfebacb
|
refs/heads/master
| 2022-04-06T00:54:27.110860
| 2020-02-26T15:50:38
| 2020-02-26T15:50:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 993
|
java
|
package com.zccoder.boot1.ch9.enterprise.activemq.activemq;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.jms.core.JmsTemplate;
import org.springframework.stereotype.Component;
/**
* @title 消息发送及目的地定义类
* @describe Spring Boot为我们提供了CommandLineRunner接口,用于程序启动后执行的代码,通过重写其run方法执行
* @author zc
* @version 1.0 2017-10-08
*/
@Component
public class MsgSender implements CommandLineRunner{
/**
* // 注入Spring Boot配置好的JmsTemplate的Bean
*/
@Autowired
private JmsTemplate jmsTemplate;
@Override
public void run(String... strings) throws Exception {
// 通过JmsTemplate的send方法向 my-destination 目的地发送Msg消息,这里也等于在消息代理上定义了一个目的地叫my-destination
jmsTemplate.send("my-destination",new Msg());
}
}
|
[
"zccoder@aliyun.com"
] |
zccoder@aliyun.com
|
4b16b0211613d85ab61f80e904d1b9c9354a2691
|
a101c0955afb62c44bdaaafb794d8e3c43823beb
|
/embedded-cassandra-parent/embedded-cassandra/src/test/java/com/github/nosan/embedded/cassandra/VersionTests.java
|
63368d3dec0140f1ef0c0429b5624ec3af49e0ed
|
[
"Apache-2.0"
] |
permissive
|
repairnator/embedded-cassandra
|
79fbca466bf88550cc18ab32dfbfa9e03706bb00
|
5f29374367a2d6e929e351f1d933630ea4ed0a54
|
refs/heads/master
| 2020-06-19T03:18:35.121090
| 2019-07-12T14:51:44
| 2019-07-12T14:51:44
| 196,545,537
| 0
| 0
|
Apache-2.0
| 2019-07-12T14:51:46
| 2019-07-12T08:59:33
|
Java
|
UTF-8
|
Java
| false
| false
| 3,127
|
java
|
/*
* Copyright 2018-2019 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.nosan.embedded.cassandra;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
/**
* Tests for {@link Version}.
*
* @author Dmytro Nosan
*/
class VersionTests {
@Test
void shouldParseMajorMinorPatch() {
Version version = Version.parse("3.11.3");
assertThat(version).isEqualTo(getVersion(3, 11, 3));
assertThat(version).isEqualByComparingTo(getVersion(3, 11, 3));
assertThat(version).isNotEqualByComparingTo(getVersion(3, 12));
assertThat(version).isNotEqualByComparingTo(getVersion(3, 11, 2));
assertThat(version.getMajor()).isEqualTo(3);
assertThat(version.getMinor()).isEqualTo(11);
assertThat(version.getPatch()).hasValue(3);
assertThat(version.toString()).isEqualTo("3.11.3");
}
@Test
void shouldParseMajorMinor() {
Version version = Version.parse("3.11");
assertThat(version).isEqualTo(getVersion(3, 11));
assertThat(version).isEqualByComparingTo(getVersion(3, 11));
assertThat(version).isNotEqualByComparingTo(getVersion(3, 12));
assertThat(version).isNotEqualByComparingTo(getVersion(3, 11, 2));
assertThat(version).isNotEqualByComparingTo(getVersion(3, 12, 2));
assertThat(version.getMajor()).isEqualTo(3);
assertThat(version.getMinor()).isEqualTo(11);
assertThat(version.getPatch()).isEmpty();
assertThat(version.toString()).isEqualTo("3.11");
}
@Test
void shouldNotParseInvalidFormat() {
assertThatThrownBy(() -> Version.parse("3.")).hasStackTraceContaining("is invalid")
.isInstanceOf(IllegalArgumentException.class);
}
@Test
void shouldParseBetaVersion() {
String v = "1.1.0-beta1";
Version version = Version.parse(v);
assertThat(version).isEqualTo(Version.parse(v));
assertThat(version).isEqualByComparingTo(Version.parse(v));
assertThat(version).isNotEqualByComparingTo(getVersion(1, 1, 0));
assertThat(version).isNotEqualByComparingTo(getVersion(1, 1, 1));
assertThat(version).isNotEqualByComparingTo(getVersion(1, 1));
assertThat(version.getMajor()).isEqualTo(1);
assertThat(version.getMinor()).isEqualTo(1);
assertThat(version.getPatch()).hasValue(0);
assertThat(version.toString()).isEqualTo(v);
}
private static Version getVersion(int major, int minor, int patch) {
return Version.parse(String.format("%d.%d.%d", major, minor, patch));
}
private static Version getVersion(int major, int minor) {
return Version.parse(String.format("%d.%d", major, minor));
}
}
|
[
"dimanosan@gmail.com"
] |
dimanosan@gmail.com
|
734bc62488a8e9af3e34a54393afd23a0874d14f
|
4ed13753f5bc20ec143dc25039280f80c3edddd8
|
/gosu-core-api/src/main/java/gw/fs/physical/win32/NativeWin32API.java
|
78264cc01da5c4893e16e1d43e6e1b2afbacec29
|
[
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause"
] |
permissive
|
hmsck/gosu-lang
|
180a96aab69ff0184700e70876bb0cf10c8a938f
|
78c5f6c839597a81ac5ec75a46259cbb6ad40545
|
refs/heads/master
| 2021-02-13T06:53:30.208378
| 2019-10-31T23:15:13
| 2019-10-31T23:15:13
| 244,672,021
| 0
| 0
|
Apache-2.0
| 2020-03-03T15:27:47
| 2020-03-03T15:27:46
| null |
UTF-8
|
Java
| false
| false
| 4,893
|
java
|
/*
* Copyright 2014 Guidewire Software, Inc.
*/
package gw.fs.physical.win32;
import gw.lang.UnstableAPI;
import java.io.File;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
@UnstableAPI
public class NativeWin32API {
// ------------------------ Start test code
public static int _numNativeFiles = 0;
public static int _numJavaFiles = 0;
public static void main(String[] args) {
long start = System.currentTimeMillis();
recursiveListDir("C:\\eng\\diamond\\pl2\\active\\core");
System.out.println("Native found " + _numNativeFiles + " in " + (System.currentTimeMillis() - start));
// start = System.currentTimeMillis();
// recursiveListDirInJava(new File("C:\\eng\\diamond\\pl2\\active\\core"));
// System.out.println("Java found " + _numJavaFiles + " in " + (System.currentTimeMillis() - start));
testFileMetadata("C:\\eng\\diamond\\pl2\\active\\core\\platform\\gosu-core\\src\\gw\\internal\\gosu\\module\\fs\\IFileFactory.java",
"C:\\eng\\diamond\\pl2\\active\\core\\platform\\gosu-core\\src\\gw\\internal\\gosu\\module\\fs\\ResourcePath.java");
testFileListing("C:\\eng\\diamond\\pl2\\active\\core",
"C:\\eng\\diamond\\pl2\\active\\core\\platform\\gosu-core\\src\\gw\\internal\\gosu\\module\\fs");
}
public static void recursiveListDir(String path) {
List<Win32FindData> metadataList = listDir(path);
for (Win32FindData fileMd : metadataList) {
_numNativeFiles++;
// System.out.println("[" + path + "\\" + fileMd.getName() + "]");
if ((Win32Util.FILE_ATTRIBUTE_DIRECTORY & fileMd.getAttributes()) != 0) {
recursiveListDir(path + "\\" + fileMd.getName());
}
}
}
public static void recursiveListDirInJava(File f) {
File[] files = f.listFiles();
for (File child : files) {
_numJavaFiles++;
if (child.isDirectory()) {
recursiveListDirInJava(child);
}
}
}
public static void testFileMetadata(String path1, String path2) {
int numTests = 10000;
long start = System.currentTimeMillis();
for (int i = 0; i < numTests; i++) {
// fileMetadata(path1);
fileMetadata(path2);
}
long nativeTime = System.currentTimeMillis() - start;
System.out.println("Native attribute time was " + nativeTime + "ms");
start = System.currentTimeMillis();
for (int i = 0; i < numTests; i++) {
// new File(path1).lastModified();
new File(path2).lastModified();
}
long javaTime = System.currentTimeMillis() - start;
System.out.println("Java attribute time was " + javaTime + "ms");
}
public static void testFileListing(String path1, String path2) {
int numTests = 1000;
long start = System.currentTimeMillis();
for (int i = 0; i < numTests; i++) {
listDir(path1);
listDir(path2);
}
long nativeTime = System.currentTimeMillis() - start;
System.out.println("Native listing time was " + nativeTime + "ms");
start = System.currentTimeMillis();
for (int i = 0; i < numTests; i++) {
new File(path1).listFiles();
new File(path2).listFiles();
}
long javaTime = System.currentTimeMillis() - start;
System.out.println("Java listing time was " + javaTime + "ms");
}
// --------------- END TEST CODE
public static List<Win32FindData> listDir(String path) {
final List<Win32FindData> results = new ArrayList<Win32FindData>();
listDirectory(path, new INativeWin32APICallback() {
@Override
public void handleFile(String name, int attributes, long createTime, long lastAccessTime, long lastModifiedTime, long length) {
if (!(name.equals(".") || name.equals(".."))) {
results.add(new Win32FindData(attributes, createTime, lastAccessTime, lastModifiedTime, length, name));
}
}
});
return results;
}
public static Win32FindData fileMetadata(String path) {
final Win32FindData[] result = new Win32FindData[1];
fileMetadata(path, new INativeWin32APICallback() {
@Override
public void handleFile(String name, int attributes, long createTime, long lastAccessTime, long lastModifiedTime, long length) {
result[0] = new Win32FindData(attributes, createTime, lastAccessTime, lastModifiedTime, length, name);
}
});
return result[0];
}
private static boolean _enabled = false;
static {
try {
URL loc = Class.forName( "gw.NativeLibraryLocationMarker" ).getProtectionDomain().getCodeSource().getLocation();
System.load( new File( loc.toURI() ).getParent() + File.separator + "newdirscanner.dll" );
_enabled = true;
} catch(Throwable t) {
_enabled = false;
t.printStackTrace();
}
}
public static native void listDirectory(String path, INativeWin32APICallback callback);
public static native void fileMetadata(String path, INativeWin32APICallback callback);
}
|
[
"lboasso@guidewire.com"
] |
lboasso@guidewire.com
|
0735f14f86bedbcf7920706ad89713a2579ca2d5
|
3a5985651d77a31437cfdac25e594087c27e93d6
|
/ojc-core/hl7bc/hl7bcimpl/src/com/sun/jbi/hl7bc/extservice/ack/hl7v26/VH.java
|
93e63cdf10819cb70ce28486c17c0453ebf2af7c
|
[] |
no_license
|
vitalif/openesb-components
|
a37d62133d81edb3fdc091abd5c1d72dbe2fc736
|
560910d2a1fdf31879e3d76825edf079f76812c7
|
refs/heads/master
| 2023-09-04T14:40:55.665415
| 2016-01-25T13:12:22
| 2016-01-25T13:12:33
| 48,222,841
| 0
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,464
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1-b02-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2008.12.04 at 12:45:30 AM IST
//
package com.sun.jbi.hl7bc.extservice.ack.hl7v26;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for VH complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="VH">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{urn:hl7-org:v2xml}VH.1" minOccurs="0"/>
* <element ref="{urn:hl7-org:v2xml}VH.2" minOccurs="0"/>
* <element ref="{urn:hl7-org:v2xml}VH.3" minOccurs="0"/>
* <element ref="{urn:hl7-org:v2xml}VH.4" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "VH", propOrder = {
"vh1",
"vh2",
"vh3",
"vh4"
})
public class VH {
@XmlElement(name = "VH.1")
protected VH1CONTENT vh1;
@XmlElement(name = "VH.2")
protected VH2CONTENT vh2;
@XmlElement(name = "VH.3")
protected VH3CONTENT vh3;
@XmlElement(name = "VH.4")
protected VH4CONTENT vh4;
/**
* Gets the value of the vh1 property.
*
* @return
* possible object is
* {@link VH1CONTENT }
*
*/
public VH1CONTENT getVH1() {
return vh1;
}
/**
* Sets the value of the vh1 property.
*
* @param value
* allowed object is
* {@link VH1CONTENT }
*
*/
public void setVH1(VH1CONTENT value) {
this.vh1 = value;
}
/**
* Gets the value of the vh2 property.
*
* @return
* possible object is
* {@link VH2CONTENT }
*
*/
public VH2CONTENT getVH2() {
return vh2;
}
/**
* Sets the value of the vh2 property.
*
* @param value
* allowed object is
* {@link VH2CONTENT }
*
*/
public void setVH2(VH2CONTENT value) {
this.vh2 = value;
}
/**
* Gets the value of the vh3 property.
*
* @return
* possible object is
* {@link VH3CONTENT }
*
*/
public VH3CONTENT getVH3() {
return vh3;
}
/**
* Sets the value of the vh3 property.
*
* @param value
* allowed object is
* {@link VH3CONTENT }
*
*/
public void setVH3(VH3CONTENT value) {
this.vh3 = value;
}
/**
* Gets the value of the vh4 property.
*
* @return
* possible object is
* {@link VH4CONTENT }
*
*/
public VH4CONTENT getVH4() {
return vh4;
}
/**
* Sets the value of the vh4 property.
*
* @param value
* allowed object is
* {@link VH4CONTENT }
*
*/
public void setVH4(VH4CONTENT value) {
this.vh4 = value;
}
}
|
[
"bitbucket@bitbucket02.private.bitbucket.org"
] |
bitbucket@bitbucket02.private.bitbucket.org
|
c6daf3979378cadd7810796da452e2f523f3039f
|
cfd346ab436b00ab9bfd98a5772e004d6a25451a
|
/hub/AxiataMediator/src/main/java/com/axiata/dialog/mife/mediator/impl/sms/SMSExecutor.java
|
0ff8b943b35fc2c3781beaa7b36e631451f4ec07
|
[] |
no_license
|
Shasthojoy/wso2telcohub
|
74df08e954348c2395cb3bc4d59732cfae065dad
|
0f5275f1226d66540568803282a183e1e584bf85
|
refs/heads/master
| 2021-04-09T15:37:33.245057
| 2016-03-08T05:44:30
| 2016-03-08T05:44:30
| 125,588,468
| 0
| 0
| null | 2018-03-17T02:03:11
| 2018-03-17T02:03:11
| null |
UTF-8
|
Java
| false
| false
| 1,506
|
java
|
package com.axiata.dialog.mife.mediator.impl.sms;
import com.axiata.dialog.mife.mediator.AxiataRequestExecutor;
import com.axiata.dialog.oneapi.validation.AxiataException;
import org.apache.axis2.AxisFault;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.synapse.MessageContext;
import org.json.JSONException;
import org.json.JSONObject;
public class SMSExecutor extends AxiataRequestExecutor {
private Log log = LogFactory.getLog(SMSExecutor.class);
private SMSHandler handler;
@Override
public boolean execute(MessageContext context) throws AxiataException, AxisFault, Exception {
try {
SMSHandler handler = getSMSHandler(getSubResourcePath());
return handler.handle(context);
} catch (JSONException e) {
log.error(e.getMessage());
throw new AxiataException("SVC0001", "", new String[]{"Request is missing required URI components"});
}
}
@Override
public boolean validateRequest(String httpMethod, String requestPath, JSONObject jsonBody, MessageContext
context) throws Exception {
SMSHandler handler = getSMSHandler(requestPath);
return handler.validate(httpMethod, requestPath, jsonBody, context);
}
private SMSHandler getSMSHandler(String requestPath) {
if (handler == null) {
handler = SMSHandlerFactory.createHandler(requestPath, this);
}
return handler;
}
}
|
[
"igunawardana@mitrai.com"
] |
igunawardana@mitrai.com
|
60c7ebea55462797613b1081229f567ccfd293b8
|
65a6345a544888bcbdbc5c04aa4942a3c201e219
|
/src/main/java/mayday/vis3/plots/tagcloud/TagGraph.java
|
5167431bad2291a3c798b6cada86ecc39c4c8ace
|
[] |
no_license
|
Integrative-Transcriptomics/Mayday-level2
|
e7dd61ba68d149bed845b173cced4db012ba55b1
|
46a28829e8ead11794951fbae6d61e7ff37cad4a
|
refs/heads/master
| 2023-01-11T21:57:47.943395
| 2016-04-25T12:59:01
| 2016-04-25T12:59:01
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 481
|
java
|
//package mayday.vis3.plots.tagcloud;
//
//import java.util.List;
//
//import mayday.core.structures.graph.Graph;
//import mayday.core.structures.graph.nodes.ContainerNode;
//
//@Deprecated
//public class TagGraph extends Graph
//{
// public TagGraph(List<Tag> tags)
// {
// super();
// for(Tag t:tags)
// {
// ContainerNode<Tag> node =new ContainerNode<Tag>(this,t);
// node.setRole("Tag");
// node.setName(t.getTag().toString());
// addNode(node);
// }
// }
//}
|
[
"adrian.geissler@student.uni-tuebingen.de"
] |
adrian.geissler@student.uni-tuebingen.de
|
067479f78cb22ed482add55d789ff42fd0ab73ce
|
c65fb0fe3971335a22f21e096aee62e98110f3e1
|
/config-center-server/src/main/java/com/bbytes/ccenter/security/AuthoritiesConstants.java
|
2e6cabd08e128a4a0828531713bdb7e2b91f8abd
|
[] |
no_license
|
dongbin86/config-center
|
c5a898cfbc31323c69a3c62498ba8623336cd028
|
f132d117e5d8d58a438e7257919b1e6ed68975e8
|
refs/heads/master
| 2021-05-28T02:39:44.842724
| 2014-11-09T13:24:23
| 2014-11-09T13:24:23
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 348
|
java
|
package com.bbytes.ccenter.security;
/**
* Constants for Spring Security authorities.
*/
public final class AuthoritiesConstants {
private AuthoritiesConstants() {
}
public static final String ADMIN = "ROLE_ADMIN";
public static final String USER = "ROLE_USER";
public static final String ANONYMOUS = "ROLE_ANONYMOUS";
}
|
[
"tm@beyondbytes.co.in"
] |
tm@beyondbytes.co.in
|
7f2a28ec58d569346b853a67af9c721b2758b55d
|
5321081656b15cee17a2f83aedd90c3b1f033338
|
/javaserver/src/main/java/com/dol/cdf/tools/modelGenerate/util/ModelGenUtil.java
|
56ba57d7202f7260576f04efec9142c1727d5940
|
[] |
no_license
|
wangxiangtao666/javaserver
|
f4ac8d38369cbfaebf17dda281a4974f4c7376bf
|
83d80085a163fa41424ac9d52392f4663443be59
|
refs/heads/master
| 2021-05-30T18:49:52.547381
| 2016-01-22T11:38:37
| 2016-01-22T11:38:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,640
|
java
|
package com.dol.cdf.tools.modelGenerate.util;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.io.FileUtils;
import org.apache.log4j.Logger;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import com.dol.cdf.tools.modelGenerate.model.Excel2JavaPropertiesModel;
public class ModelGenUtil {
public static Logger logger = Logger.getLogger(ModelGenUtil.class);
/**
* 首字母转小写
*
* @param s
* @return
*/
public static String toLowerCaseFirstOne(String s)
{
if(Character.isLowerCase(s.charAt(0)))
return s;
else
return (new StringBuilder()).append(Character.toLowerCase(s.charAt(0))).append(s.substring(1)).toString();
}
/**
* 首字母转大写
*
* @param s
* @return
*/
public static String toUpperCaseFirstOne(String s)
{
if(Character.isUpperCase(s.charAt(0)))
return s;
else
return (new StringBuilder()).append(Character.toUpperCase(s.charAt(0))).append(s.substring(1)).toString();
}
public static void writeJavaFile(String outFilePath,String className,List<Excel2JavaPropertiesModel> models){
StringBuilder sb=new StringBuilder();
sb.append("/**").append("\n")
.append("* auto generated, do not change it !!!!!").append("\n")
.append("*/").append("\n")
.append("package com.dol.cdf.common.bean;").append("\n")
.append("import com.dol.cdf.common.*;").append("\n");
if (className.equals("Accessory") || className.equals("Item")
||className.equals("Gem") || className.equals("Material")) {
sb.append("public class ").append(toUpperCaseFirstOne(className)).append(" implements BaseItem {").append("\n");
} else {
sb.append("public class ").append(toUpperCaseFirstOne(className)).append(" {").append("\n");
}
for(Excel2JavaPropertiesModel model:models){
sb.append("\t").append("/**"+model.getDes()+"*/").append("\n")
.append("\t").append("private "+model.getType()+" "+model.getName()+";").append("\n");
}
for(Excel2JavaPropertiesModel model:models){
//get
sb.append("\t").append("public "+model.getType()+" "+"get"+toUpperCaseFirstOne(model.getName())+"(){").append("\n")
.append("\t").append("\t").append(" return this."+model.getName()+";").append("\n")
.append("\t").append("}").append("\n")
//set
.append("\t").append("public void set"+toUpperCaseFirstOne(model.getName())+"("+model.getType()+" "+model.getName()+"){").append("\n")
.append("\t").append("\t").append("this."+model.getName()+" = "+model.getName()+" ;").append("\n")
.append("\t").append("}").append("\n");
}
sb.append("\t").append("public String toString(){").append("\n")
.append("\t").append("\t").append("return StringHelper.obj2String(this, null);").append("\n")
.append("\t").append("}").append("\n");
sb.append("}").append("\n");
File file=new File(outFilePath+"/"+toUpperCaseFirstOne(className)+".java");
try {
if(file.exists()){
file.delete();
}
FileUtils.writeStringToFile(file, sb.toString());
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
public static List<Excel2JavaPropertiesModel> loadExcel(File file) {
InputStream is = null;// 输入流对象
String cellStr = null;// 单元格,最终按字符串处理
List<Excel2JavaPropertiesModel> excelModels = new ArrayList<Excel2JavaPropertiesModel>();
Excel2JavaPropertiesModel excelModel = null;
try {
is = new FileInputStream(file);// 获取文件输入流
HSSFWorkbook workbook2003 = new HSSFWorkbook(is);// 创建Excel2003文件对象
HSSFSheet sheet = workbook2003.getSheetAt(0);// 取出第一个工作表,索引是0
// 开始循环遍历行,表头不处理,从1开始
for (int i = 1; i <= sheet.getLastRowNum(); i++) {
HSSFRow row = sheet.getRow(i);// 获取行对象
if (row == null || row.getCell(0) == null) {// 如果为空,不处理
return excelModels;
}
excelModel=new Excel2JavaPropertiesModel();
// 循环遍历单元格
for (int j = 0; j < row.getLastCellNum(); j++) {
HSSFCell cell = row.getCell(j);// 获取单元格对象
if (cell == null) {// 单元格为空设置cellStr为空串
cellStr = "";
} else if (cell.getCellType() == HSSFCell.CELL_TYPE_BOOLEAN) {// 对布尔值的处理
cellStr = String.valueOf(cell.getBooleanCellValue());
} else if (cell.getCellType() == HSSFCell.CELL_TYPE_NUMERIC) {// 对数字值的处理
cellStr = cell.getNumericCellValue() + "";
} else {// 其余按照字符串处理
cellStr = cell.getStringCellValue();
}
// 下面按照数据出现位置封装到bean中
if(j==0){
excelModel.setDes(cellStr);
}else if (j == 1) {
excelModel.setName(cellStr);
} else if (j == 2) {
excelModel.setType(cellStr);
}
}
if(excelModel.getDes()!=null&&excelModel.getDes().length()>0){
excelModels.add(excelModel);
}
}
} catch (IOException e) {
e.printStackTrace();
} finally {// 关闭文件流
if (is != null) {
try {
is.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
return excelModels;
}
}
|
[
"dj2@macmini-dj2.local"
] |
dj2@macmini-dj2.local
|
01bad243ca2bbe9edc07db3798463130fbd903a6
|
cb31f2914feb0c400a8f51817b97652b04e61332
|
/src/com/wayfinder/pal/blackberry/network/transport/DummyTransport.java
|
1efd580fdd934d87a8c1323411c4a0f2efa27c1c
|
[] |
no_license
|
wayfinder/Wayfinder-JavaCore-PAL-BlackBerry
|
c2d5314eafe2f8fc7d548c7942d0969e96df7866
|
8c65e45f18c06f74d2812c6bdf54d1064ca219cd
|
refs/heads/master
| 2020-04-27T04:47:17.205882
| 2010-06-22T07:32:37
| 2010-06-22T07:32:37
| 727,483
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,530
|
java
|
/*******************************************************************************
* Copyright (c) 1999-2010, Vodafone Group Services
* 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 Vodafone Group Services nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
* OF SUCH DAMAGE.
******************************************************************************/
package com.wayfinder.pal.blackberry.network.transport;
import java.io.IOException;
import java.util.Hashtable;
import javax.microedition.io.HttpConnection;
import com.wayfinder.pal.blackberry.permissions.PALPermissions;
import net.rim.device.api.system.UnsupportedOperationException;
/**
*
*/
class DummyTransport extends TransportType {
void appendSubHTTPHeaders(HttpConnection aConn) throws IOException {
throw new UnsupportedOperationException(getErrorMessage());
}
void appendSubHTTPHeaders(Hashtable aHashTable) {
throw new UnsupportedOperationException(getErrorMessage());
}
public String getHTTPConnectionParameters() {
throw new UnsupportedOperationException(getErrorMessage());
}
String getIdentifier() {
return "DummyTransport";
}
public short getRequiredPermission() {
return PALPermissions.PERMISSION_CONNECTION_COMPANY;
}
public String getSocketConnectionParameters() throws UnsupportedOperationException {
throw new UnsupportedOperationException(getErrorMessage());
}
public String getTransportDebugName() {
return "Invalid";
}
public byte getTransportTestConstant() {
return TRANSPORT_CARRIER_CONFIG;
}
public String getTransportUserFriendlyName() {
return "Invalid";
}
public boolean hasSufficientCoverage() {
return false;
}
public boolean requiresAlternateGZIPEncoding() {
return false;
}
public boolean supportSockets() {
return false;
}
private static String getErrorMessage() {
return "Functionallity not available in current transport type";
}
}
|
[
"stefan@seld-usr.itinerary.com"
] |
stefan@seld-usr.itinerary.com
|
192a36f8f005e10edfbe1710448dda2415bf95c6
|
88ae8695987ada722184307301e221e1ba3cc2fa
|
/chrome/android/javatests/src/org/chromium/chrome/browser/video/VideoTest.java
|
20e37822c8771f0c4a0123e996e40c450c096e5b
|
[
"BSD-3-Clause"
] |
permissive
|
iridium-browser/iridium-browser
|
71d9c5ff76e014e6900b825f67389ab0ccd01329
|
5ee297f53dc7f8e70183031cff62f37b0f19d25f
|
refs/heads/master
| 2023-08-03T16:44:16.844552
| 2023-07-20T15:17:00
| 2023-07-23T16:09:30
| 220,016,632
| 341
| 40
|
BSD-3-Clause
| 2021-08-13T13:54:45
| 2019-11-06T14:32:31
| null |
UTF-8
|
Java
| false
| false
| 2,603
|
java
|
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.video;
import androidx.test.core.app.ApplicationProvider;
import androidx.test.filters.LargeTest;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.chromium.base.test.util.CommandLineFlags;
import org.chromium.base.test.util.Feature;
import org.chromium.chrome.browser.flags.ChromeSwitches;
import org.chromium.chrome.browser.tab.Tab;
import org.chromium.chrome.test.ChromeJUnit4ClassRunner;
import org.chromium.chrome.test.ChromeTabbedActivityTestRule;
import org.chromium.chrome.test.util.ChromeTabUtils;
import org.chromium.chrome.test.util.browser.TabTitleObserver;
import org.chromium.content_public.browser.test.util.DOMUtils;
import org.chromium.net.test.EmbeddedTestServer;
import java.util.concurrent.TimeoutException;
/**
* Simple tests of html5 video.
*/
@RunWith(ChromeJUnit4ClassRunner.class)
@CommandLineFlags.Add({ChromeSwitches.DISABLE_FIRST_RUN_EXPERIENCE})
public class VideoTest {
@Rule
public ChromeTabbedActivityTestRule mActivityTestRule = new ChromeTabbedActivityTestRule();
@Test
@Feature({"Media", "Media-Video", "Main"})
@LargeTest
public void testLoadMediaUrl() throws TimeoutException {
EmbeddedTestServer testServer = EmbeddedTestServer.createAndStartServer(
ApplicationProvider.getApplicationContext());
try {
Tab tab = mActivityTestRule.getActivity().getActivityTab();
TabTitleObserver titleObserver = new TabTitleObserver(tab, "ready_to_play");
mActivityTestRule.loadUrl(
testServer.getURL("/chrome/test/data/android/media/video-play.html"));
titleObserver.waitForTitleUpdate(5);
Assert.assertEquals("ready_to_play", ChromeTabUtils.getTitleOnUiThread(tab));
titleObserver = new TabTitleObserver(tab, "ended");
DOMUtils.clickNode(tab.getWebContents(), "button1");
// Now the video will play for 5 secs.
// Makes sure that the video ends and title was changed.
titleObserver.waitForTitleUpdate(15);
Assert.assertEquals("ended", ChromeTabUtils.getTitleOnUiThread(tab));
} finally {
testServer.stopAndDestroyServer();
}
}
@Before
public void setUp() throws InterruptedException {
mActivityTestRule.startMainActivityOnBlankPage();
}
}
|
[
"jengelh@inai.de"
] |
jengelh@inai.de
|
418e7dfc3d702e548f9c4f917d92607016d7e405
|
3175c79fd0f89d1e213543743b99659245fe1065
|
/SisVenLog-ejb/src/java/dao/GruposClientesFacade.java
|
d070be6aab83dd8a0a7b4130fc2e9da5274d9413
|
[] |
no_license
|
HugoF92/SisVenLog-WEB
|
1bb209b88d79635c34636910d69855f0b32fb270
|
f41f39baa1c232567c52e76764e298e5f4c47f51
|
refs/heads/master
| 2021-12-22T01:42:29.934040
| 2021-08-12T20:21:34
| 2021-08-12T20:21:34
| 229,111,856
| 1
| 2
| null | 2020-01-27T02:34:13
| 2019-12-19T18:04:44
|
Java
|
UTF-8
|
Java
| false
| false
| 719
|
java
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package dao;
import entidad.GruposClientes;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
/**
*
* @author admin
*/
@Stateless
public class GruposClientesFacade extends AbstractFacade<GruposClientes> {
@PersistenceContext(unitName = "SisVenLog-ejbPU")
private EntityManager em;
@Override
protected EntityManager getEntityManager() {
return em;
}
public GruposClientesFacade() {
super(GruposClientes.class);
}
}
|
[
"jvera.exe@gmail.com"
] |
jvera.exe@gmail.com
|
227c9eb9283d44bbc5d216a8e9ac631753307130
|
2fb974d50962a107769edf2c530b84aa6c3ddf15
|
/components/camel-aws2-sqs/src/test/java/org/apache/camel/component/aws2/sqs/SqsComponentSpringTest.java
|
b73806661bb94247f4825675dc1f7f523433e915
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-unknown"
] |
permissive
|
Rudy-Menekam/camel
|
82916c99c4f87bb2410372a79686ad5b4e0f7fe6
|
6662ec3e2fb77b09a4b3d09c2d2783d5aae3e7c1
|
refs/heads/master
| 2021-03-15T06:32:55.906732
| 2020-03-12T10:23:27
| 2020-03-12T10:56:49
| 246,829,757
| 1
| 0
|
Apache-2.0
| 2020-03-12T12:34:25
| 2020-03-12T12:34:24
| null |
UTF-8
|
Java
| false
| false
| 5,670
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.component.aws2.sqs;
import java.util.ArrayList;
import java.util.Collection;
import org.apache.camel.EndpointInject;
import org.apache.camel.Exchange;
import org.apache.camel.ExchangePattern;
import org.apache.camel.Processor;
import org.apache.camel.ProducerTemplate;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.test.spring.CamelSpringTestSupport;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import software.amazon.awssdk.services.sqs.model.DeleteMessageResponse;
import software.amazon.awssdk.services.sqs.model.SendMessageBatchResponse;
public class SqsComponentSpringTest extends CamelSpringTestSupport {
@EndpointInject("direct:start")
private ProducerTemplate template;
@EndpointInject("mock:result")
private MockEndpoint result;
@Test
public void sendInOnly() throws Exception {
result.expectedMessageCount(1);
Exchange exchange = template.send("direct:start", ExchangePattern.InOnly, new Processor() {
public void process(Exchange exchange) throws Exception {
exchange.getIn().setBody("This is my message text.");
}
});
assertMockEndpointsSatisfied();
Exchange resultExchange = result.getExchanges().get(0);
assertEquals("This is my message text.", resultExchange.getIn().getBody());
assertNotNull(resultExchange.getIn().getHeader(Sqs2Constants.MESSAGE_ID));
assertNotNull(resultExchange.getIn().getHeader(Sqs2Constants.RECEIPT_HANDLE));
assertEquals("6a1559560f67c5e7a7d5d838bf0272ee", resultExchange.getIn().getHeader(Sqs2Constants.MD5_OF_BODY));
assertNotNull(resultExchange.getIn().getHeader(Sqs2Constants.ATTRIBUTES));
assertNotNull(resultExchange.getIn().getHeader(Sqs2Constants.MESSAGE_ATTRIBUTES));
assertNotNull(exchange.getIn().getHeader(Sqs2Constants.MESSAGE_ID));
assertEquals("6a1559560f67c5e7a7d5d838bf0272ee", resultExchange.getIn().getHeader(Sqs2Constants.MD5_OF_BODY));
}
@Test
public void sendInOut() throws Exception {
result.expectedMessageCount(1);
Exchange exchange = template.send("direct:start", ExchangePattern.InOut, new Processor() {
public void process(Exchange exchange) throws Exception {
exchange.getIn().setBody("This is my message text.");
}
});
assertMockEndpointsSatisfied();
Exchange resultExchange = result.getExchanges().get(0);
assertEquals("This is my message text.", resultExchange.getIn().getBody());
assertNotNull(resultExchange.getIn().getHeader(Sqs2Constants.RECEIPT_HANDLE));
assertNotNull(resultExchange.getIn().getHeader(Sqs2Constants.MESSAGE_ID));
assertEquals("6a1559560f67c5e7a7d5d838bf0272ee", resultExchange.getIn().getHeader(Sqs2Constants.MD5_OF_BODY));
assertNotNull(resultExchange.getIn().getHeader(Sqs2Constants.ATTRIBUTES));
assertNotNull(resultExchange.getIn().getHeader(Sqs2Constants.MESSAGE_ATTRIBUTES));
assertNotNull(exchange.getMessage().getHeader(Sqs2Constants.MESSAGE_ID));
assertEquals("6a1559560f67c5e7a7d5d838bf0272ee", exchange.getMessage().getHeader(Sqs2Constants.MD5_OF_BODY));
}
@Test
public void sendBatchMessage() throws Exception {
result.expectedMessageCount(1);
template.send("direct:start-batch", new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
Collection c = new ArrayList<Integer>();
c.add("team1");
c.add("team2");
c.add("team3");
c.add("team4");
exchange.getIn().setBody(c);
}
});
assertMockEndpointsSatisfied();
SendMessageBatchResponse res = result.getExchanges().get(0).getIn().getBody(SendMessageBatchResponse.class);
assertEquals(2, res.failed().size());
assertEquals(2, res.successful().size());
}
@Test
public void deleteMessage() throws Exception {
result.expectedMessageCount(1);
template.send("direct:start-delete", new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
exchange.getIn().setHeader(Sqs2Constants.RECEIPT_HANDLE, "123456");
}
});
assertMockEndpointsSatisfied();
DeleteMessageResponse res = result.getExchanges().get(0).getIn().getBody(DeleteMessageResponse.class);
assertNotNull(res);
}
@Override
protected ClassPathXmlApplicationContext createApplicationContext() {
return new ClassPathXmlApplicationContext("org/apache/camel/component/aws2/sqs/SqsComponentSpringTest-context.xml");
}
}
|
[
"ancosen@gmail.com"
] |
ancosen@gmail.com
|
ca308166bb35150a4bc90127271115b2a69caa7e
|
59280f076f35e2faafee628f5f22f37926e17266
|
/customerapp/app/src/main/java/com/ourdevelops/ornids/json/GetNearRideCarRequestJson.java
|
4074102aa2ac2cb1e705f7f2dc07a7e5a5458886
|
[] |
no_license
|
BlondelSeumo/Multi-Service-App-With-Customer-App-Driver-App-Merchant-App-and-Admin-Panel
|
fb07eba76210664ebe087842edc2dc86e8958474
|
cd8b38e0ac069cdfd5d334acb06a43c45cb7cf9c
|
refs/heads/main
| 2023-02-22T06:22:37.094435
| 2021-02-01T11:12:21
| 2021-02-01T11:12:21
| 334,922,648
| 8
| 6
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 911
|
java
|
package com.ourdevelops.ornids.json;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* Created by Ourdevelops Team on 10/17/2019.
*/
public class GetNearRideCarRequestJson {
@Expose
@SerializedName("latitude")
private double latitude;
@Expose
@SerializedName("longitude")
private double longitude;
@Expose
@SerializedName("service")
private String service;
public double getLatitude() {
return latitude;
}
public void setLatitude(double latitude) {
this.latitude = latitude;
}
public double getLongitude() {
return longitude;
}
public void setLongitude(double longitude) {
this.longitude = longitude;
}
public String getFitur() {
return service;
}
public void setFitur(String service) {
this.service = service;
}
}
|
[
"seumoblondel@gmail.com"
] |
seumoblondel@gmail.com
|
ada3223005109f56b4b0c89965b5352f55cb8ff2
|
5e3235edf3de262f4d10b9e9e1fcc3bd13d6b8b1
|
/Code Snippet Repository/Spring/Spring10773.java
|
cd50bc40df82d048c13151b6f421ef9cbd476791
|
[] |
no_license
|
saber13812002/DeepCRM
|
3336a244d4852a364800af3181e03e868cf6f9f5
|
be3e5e50e34a042d5ba7259ff5ff75c08ab32bb9
|
refs/heads/master
| 2023-03-16T00:08:06.473699
| 2018-04-18T05:29:50
| 2018-04-18T05:29:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 472
|
java
|
@Test
public void wrapFormEncodedOnly() throws Exception {
request.setContent("".getBytes("ISO-8859-1"));
String[] contentTypes = new String[] {"text/plain", "multipart/form-data"};
for (String contentType : contentTypes) {
request.setContentType(contentType);
filterChain = new MockFilterChain();
filter.doFilter(request, response, filterChain);
assertSame("Should not wrap for content type " + contentType, request, filterChain.getRequest());
}
}
|
[
"Qing.Mi@my.cityu.edu.hk"
] |
Qing.Mi@my.cityu.edu.hk
|
16d6de48484b832192d68097c76b7cbb59213da8
|
cb601c9b503d43d5dea2c54e777ecd115222a16a
|
/src/org/pepstock/charba/client/zoom/Zoom.java
|
d0fbe622767ae0ce55e090f3d17435a6816afe4d
|
[
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"MIT"
] |
permissive
|
pepstock-org/Charba
|
cdd98c47081cb3cf52a939c8c3489a80fa9451fd
|
32e1807325b646918f595b3043e4990dccb112b4
|
refs/heads/master
| 2023-09-01T11:43:20.143296
| 2023-08-28T19:49:14
| 2023-08-28T19:49:14
| 106,569,586
| 55
| 7
|
Apache-2.0
| 2023-08-28T19:37:21
| 2017-10-11T15:03:37
|
Java
|
UTF-8
|
Java
| false
| false
| 5,708
|
java
|
/**
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
package org.pepstock.charba.client.zoom;
import org.pepstock.charba.client.commons.CallbackPropertyHandler;
import org.pepstock.charba.client.commons.Key;
import org.pepstock.charba.client.commons.NativeObject;
import org.pepstock.charba.client.zoom.callbacks.CompletedCallback;
import org.pepstock.charba.client.zoom.callbacks.ProgressCallback;
import org.pepstock.charba.client.zoom.callbacks.RejectedCallback;
import org.pepstock.charba.client.zoom.callbacks.StartCallback;
/**
* Base object to map zoom options for {@link ZoomPlugin#ID} plugin configuration.<br>
* It represents the container for ZOOM options.
*
* @author Andrea "Stock" Stocchero
*/
public final class Zoom extends AbstractConfigurationItem implements IsDefaultZoom {
// progress callback
private static final CallbackPropertyHandler<ProgressCallback> ZOOM_PROGRESS_PROPERTY_HANDLER = new CallbackPropertyHandler<>(Property.ON_ZOOM);
// completed callback
private static final CallbackPropertyHandler<CompletedCallback> ZOOM_COMPLETED_PROPERTY_HANDLER = new CallbackPropertyHandler<>(Property.ON_ZOOM_COMPLETED);
// rejected callback
private static final CallbackPropertyHandler<RejectedCallback> ZOOM_REJECTED_PROPERTY_HANDLER = new CallbackPropertyHandler<>(Property.ON_ZOOM_REJECTED);
// rejected callback
private static final CallbackPropertyHandler<StartCallback> ZOOM_START_PROPERTY_HANDLER = new CallbackPropertyHandler<>(Property.ON_ZOOM_START);
/**
* Name of properties of native object.
*/
private enum Property implements Key
{
WHEEL("wheel"),
DRAG("drag"),
PINCH("pinch"),
ON_ZOOM("onZoom"),
ON_ZOOM_START("onZoomStart"),
ON_ZOOM_COMPLETED("onZoomComplete"),
ON_ZOOM_REJECTED("onZoomRejected");
// name value of property
private final String value;
/**
* Creates with the property value to use in the native object.
*
* @param value value of property name
*/
private Property(String value) {
this.value = value;
}
/*
* (non-Javadoc)
*
* @see org.pepstock.charba.client.commons.Key#value()
*/
@Override
public String value() {
return value;
}
}
// default values instance
private final IsDefaultZoom defaultOptions;
// wheel element instance
private final Wheel wheel;
// drag element instance
private final Drag drag;
// wheel element instance
private final Pinch pinch;
/**
* Creates new zooming element, using stored native object instance and the default values options.
*
* @param nativeObject stored zooming values in the native object to read.
* @param defaultOptions default ZOOM options to returns the default when required.
*/
Zoom(IsDefaultZoom defaultOptions, NativeObject nativeObject) {
super(nativeObject);
// checks if defaults options is consistent
// stores defaults options
this.defaultOptions = checkDefaultValuesArgument(defaultOptions);
// loads inner elements
this.wheel = new Wheel(this, Property.WHEEL, this.defaultOptions.getWheel(), getValue(Property.WHEEL));
this.drag = new Drag(this, Property.DRAG, this.defaultOptions.getDrag(), getValue(Property.DRAG));
this.pinch = new Pinch(this, Property.PINCH, this.defaultOptions.getPinch(), getValue(Property.PINCH));
}
/*
* (non-Javadoc)
*
* @see org.pepstock.charba.client.zoom.AbstractConfigurationItem#getDefaultsOptions()
*/
@Override
IsDefaultConfigurationItem getDefaultsOptions() {
return defaultOptions;
}
/*
* (non-Javadoc)
*
* @see org.pepstock.charba.client.zoom.AbstractConfigurationItem#getProgessPropertyHandler()
*/
@Override
CallbackPropertyHandler<ProgressCallback> getProgessPropertyHandler() {
return ZOOM_PROGRESS_PROPERTY_HANDLER;
}
/*
* (non-Javadoc)
*
* @see org.pepstock.charba.client.zoom.AbstractConfigurationItem#getCompletePropertyHandler()
*/
@Override
CallbackPropertyHandler<CompletedCallback> getCompletedPropertyHandler() {
return ZOOM_COMPLETED_PROPERTY_HANDLER;
}
/*
* (non-Javadoc)
*
* @see org.pepstock.charba.client.zoom.AbstractConfigurationItem#getRejectedPropertyHandler()
*/
@Override
CallbackPropertyHandler<RejectedCallback> getRejectedPropertyHandler() {
return ZOOM_REJECTED_PROPERTY_HANDLER;
}
/*
* (non-Javadoc)
*
* @see org.pepstock.charba.client.zoom.AbstractConfigurationItem#getStartPropertyHandler()
*/
@Override
CallbackPropertyHandler<StartCallback> getStartPropertyHandler() {
return ZOOM_START_PROPERTY_HANDLER;
}
/**
* Returns the wheel-to-zoom effect.
*
* @return the wheel-to-zoom effect
*/
@Override
public Wheel getWheel() {
return wheel;
}
/**
* Returns the drag-to-zoom effect.
*
* @return the drag-to-zoom effect
*/
@Override
public Drag getDrag() {
return drag;
}
/**
* Returns the pinch-to-zoom effect.
*
* @return the pinch-to-zoom effect
*/
@Override
public Pinch getPinch() {
return pinch;
}
}
|
[
"stocki.nail@gmail.com"
] |
stocki.nail@gmail.com
|
ac1e315e08e157050022191a4928b6dabf96021a
|
53d677a55e4ece8883526738f1c9d00fa6560ff7
|
/com/tencent/mm/plugin/talkroom/model/i$8.java
|
71e85f8bc8ba7b74b66d51db51f7a6daa87cd1e4
|
[] |
no_license
|
0jinxing/wechat-apk-source
|
544c2d79bfc10261eb36389c1edfdf553d8f312a
|
f75eefd87e9b9ecf2f76fc6d48dbba8e24afcf3d
|
refs/heads/master
| 2020-06-07T20:06:03.580028
| 2019-06-21T09:17:26
| 2019-06-21T09:17:26
| 193,069,132
| 9
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 790
|
java
|
package com.tencent.mm.plugin.talkroom.model;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.bg.d;
import java.util.Iterator;
import java.util.List;
final class i$8
implements Runnable
{
i$8(i parami, String paramString)
{
}
public final void run()
{
AppMethodBeat.i(25854);
synchronized (this.syV.callbacks)
{
Iterator localIterator = this.syV.callbacks.iterator();
if (localIterator.hasNext())
((d)localIterator.next()).tO(this.cgF);
}
AppMethodBeat.o(25854);
}
}
/* Location: C:\Users\Lin\Downloads\dex-tools-2.1-SNAPSHOT\dex-tools-2.1-SNAPSHOT\classes6-dex2jar.jar
* Qualified Name: com.tencent.mm.plugin.talkroom.model.i.8
* JD-Core Version: 0.6.2
*/
|
[
"172601673@qq.com"
] |
172601673@qq.com
|
b4c21118e561c669856d13a756af05fca028cb38
|
a00326c0e2fc8944112589cd2ad638b278f058b9
|
/src/main/java/000/132/725/CWE193_Off_by_One_Error__for_03.java
|
5c08d74d87f28ac95dd8edd87abac9f75476f935
|
[] |
no_license
|
Lanhbao/Static-Testing-for-Juliet-Test-Suite
|
6fd3f62713be7a084260eafa9ab221b1b9833be6
|
b095b11c7cb6d4a5bb2b76181e35d6ee00e96e68
|
refs/heads/master
| 2020-08-24T13:34:04.004149
| 2019-10-25T09:26:00
| 2019-10-25T09:26:00
| 216,822,684
| 0
| 1
| null | 2019-11-08T09:51:54
| 2019-10-22T13:37:13
|
Java
|
UTF-8
|
Java
| false
| false
| 2,407
|
java
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE193_Off_by_One_Error__for_03.java
Label Definition File: CWE193_Off_by_One_Error.label.xml
Template File: point-flaw-03.tmpl.java
*/
/*
* @description
* CWE: 193 An array index is 1 off from the max array index
* Sinks: for
* GoodSink: restrict max index value
* BadSink : access array index outside array max
* Flow Variant: 03 Control flow: if(5==5) and if(5!=5)
*
* */
public class CWE193_Off_by_One_Error__for_03 extends AbstractTestCase
{
public void bad() throws Throwable
{
if (5 == 5)
{
int[] intArray = new int[10];
/* FLAW: index outside of array, off by one */
for (int i = 0; i <= intArray.length; i++)
{
IO.writeLine("intArray[" + i + "] = " + (intArray[i] = i));
}
}
}
/* good1() changes 5==5 to 5!=5 */
private void good1() throws Throwable
{
if (5 != 5)
{
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
IO.writeLine("Benign, fixed string");
}
else
{
int[] intArray = new int[10];
/* FIX: Use < to ensure no out of bounds access */
for (int i = 0; i < intArray.length; i++)
{
IO.writeLine("intArray[" + i + "] = " + (intArray[i] = i));
}
}
}
/* good2() reverses the bodies in the if statement */
private void good2() throws Throwable
{
if (5 == 5)
{
int[] intArray = new int[10];
/* FIX: Use < to ensure no out of bounds access */
for (int i = 0; i < intArray.length; i++)
{
IO.writeLine("intArray[" + i + "] = " + (intArray[i] = i));
}
}
}
public void good() throws Throwable
{
good1();
good2();
}
/* Below is the main(). It is only used when building this testcase on
* its own for testing or for building a binary to use in testing binary
* analysis tools. It is not used when compiling all the testcases as one
* application, which is how source code analysis tools are tested.
*/
public static void main(String[] args) throws ClassNotFoundException,
InstantiationException, IllegalAccessException
{
mainFromParent(args);
}
}
|
[
"anhtluet12@gmail.com"
] |
anhtluet12@gmail.com
|
3983b1349692badd8740da9f09bb80d3dcc4820b
|
8af1164bac943cef64e41bae312223c3c0e38114
|
/results-java/koush--AndroidAsync/1f131ce28f8b25aec4d8d8fcab68d8f55de08bcf/before/ChunkedInputFilter.java
|
9d645e2b0ad501b90741ca5916103bfa3519ef1c
|
[] |
no_license
|
fracz/refactor-extractor
|
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
|
dd5e82bfcc376e74a99e18c2bf54c95676914272
|
refs/heads/master
| 2021-01-19T06:50:08.211003
| 2018-11-30T13:00:57
| 2018-11-30T13:00:57
| 87,353,478
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,131
|
java
|
package com.koushikdutta.async.http.filter;
import junit.framework.Assert;
import com.koushikdutta.async.ByteBufferList;
import com.koushikdutta.async.DataEmitter;
import com.koushikdutta.async.DataTransformerBase;
import com.koushikdutta.async.Util;
import com.koushikdutta.async.callback.CompletedCallback;
public abstract class ChunkedInputFilter extends DataTransformerBase implements CompletedCallback {
private int mChunkLength = 0;
private int mChunkLengthRemaining = 0;
private State mState = State.CHUNK_LEN;
private static enum State {
CHUNK_LEN,
CHUNK_LEN_CR,
CHUNK_LEN_CRLF,
CHUNK,
CHUNK_CR,
CHUNK_CRLF,
COMPLETE
}
private boolean checkByte(char b, char value) {
if (b != value) {
report(new Exception(value + " was expeceted, got " + (char)b));
return false;
}
return true;
}
private boolean checkLF(char b) {
return checkByte(b, '\n');
}
private boolean checkCR(char b) {
return checkByte(b, '\r');
}
@Override
public void onDataAvailable(DataEmitter emitter, ByteBufferList bb) {
try {
while (bb.remaining() > 0) {
switch (mState) {
case CHUNK_LEN:
char c = bb.getByteChar();
if (c == '\r') {
mState = State.CHUNK_LEN_CR;
}
else {
mChunkLength *= 16;
if (c >= 'a' && c <= 'f')
mChunkLength += (c - 'a' + 10);
else if (c >= '0' && c <= '9')
mChunkLength += c - '0';
else if (c >= 'A' && c <= 'F')
mChunkLength += (c - 'A' + 10);
else {
report(new Exception("invalid chunk length: " + c));
return;
}
}
mChunkLengthRemaining = mChunkLength;
break;
case CHUNK_LEN_CR:
if (!checkLF(bb.getByteChar()))
return;
mState = State.CHUNK;
break;
case CHUNK:
int remaining = bb.remaining();
int reading = Math.min(mChunkLengthRemaining, remaining);
mChunkLengthRemaining -= reading;
if (mChunkLengthRemaining == 0) {
mState = State.CHUNK_CR;
}
if (reading == 0)
break;
ByteBufferList chunk = bb.get(reading);
int newRemaining = bb.remaining();
Assert.assertEquals(remaining, chunk.remaining() + bb.remaining());
Assert.assertEquals(reading, chunk.remaining());
Util.emitAllData(this, chunk);
Assert.assertEquals(newRemaining, bb.remaining());
break;
case CHUNK_CR:
if (!checkCR(bb.getByteChar()))
return;
mState = State.CHUNK_CRLF;
break;
case CHUNK_CRLF:
if (!checkLF(bb.getByteChar()))
return;
if (mChunkLength > 0) {
mState = State.CHUNK_LEN;
}
else {
mState = State.COMPLETE;
onCompleted(null);
}
mChunkLength = 0;
break;
case COMPLETE:
Exception fail = new Exception("Continued receiving data after chunk complete");
report(fail);
onCompleted(fail);
return;
}
}
}
catch (Exception ex) {
report(ex);
}
}
}
|
[
"fraczwojciech@gmail.com"
] |
fraczwojciech@gmail.com
|
705f6033bb368d23a274c75f7234dc7ecd8d4dea
|
a0e4f155a7b594f78a56958bca2cadedced8ffcd
|
/header/src/main/java/org/zstack/header/storage/primary/PrimaryStorageAllocatorStrategyFactory.java
|
f2e4d6d3cdb3b095829a0311867fefdc80249391
|
[
"Apache-2.0"
] |
permissive
|
zhao-qc/zstack
|
e67533eabbbabd5ae9118d256f560107f9331be0
|
b38cd2324e272d736f291c836f01966f412653fa
|
refs/heads/master
| 2020-08-14T15:03:52.102504
| 2019-10-14T03:51:12
| 2019-10-14T03:51:12
| 215,187,833
| 3
| 0
|
Apache-2.0
| 2019-10-15T02:27:17
| 2019-10-15T02:27:16
| null |
UTF-8
|
Java
| false
| false
| 261
|
java
|
package org.zstack.header.storage.primary;
public interface PrimaryStorageAllocatorStrategyFactory {
PrimaryStorageAllocatorStrategyType getPrimaryStorageAllocatorStrategyType();
PrimaryStorageAllocatorStrategy getPrimaryStorageAllocatorStrategy();
}
|
[
"xuexuemiao@yeah.net"
] |
xuexuemiao@yeah.net
|
553a562b9d6e76166491fdff29a261d92695843c
|
7df40f6ea2209b7d48979465fd8081ec2ad198cc
|
/TOOLS/server/com/sun/jnlp/FileSaveServiceImpl.java
|
2f8976a60dedf1022c7de3cb47e57a6f8bc9e5f1
|
[
"IJG"
] |
permissive
|
warchiefmarkus/WurmServerModLauncher-0.43
|
d513810045c7f9aebbf2ec3ee38fc94ccdadd6db
|
3e9d624577178cd4a5c159e8f61a1dd33d9463f6
|
refs/heads/master
| 2021-09-27T10:11:56.037815
| 2021-09-19T16:23:45
| 2021-09-19T16:23:45
| 252,689,028
| 0
| 0
| null | 2021-09-19T16:53:10
| 2020-04-03T09:33:50
|
Java
|
UTF-8
|
Java
| false
| false
| 6,420
|
java
|
/* */ package com.sun.jnlp;
/* */
/* */ import com.sun.deploy.resources.ResourceManager;
/* */ import com.sun.deploy.util.DialogFactory;
/* */ import java.io.BufferedInputStream;
/* */ import java.io.BufferedOutputStream;
/* */ import java.io.File;
/* */ import java.io.FileOutputStream;
/* */ import java.io.IOException;
/* */ import java.io.InputStream;
/* */ import java.security.AccessController;
/* */ import java.security.PrivilegedAction;
/* */ import javax.jnlp.FileContents;
/* */ import javax.jnlp.FileSaveService;
/* */ import javax.swing.JFileChooser;
/* */ import javax.swing.filechooser.FileSystemView;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public final class FileSaveServiceImpl
/* */ implements FileSaveService
/* */ {
/* 30 */ static FileSaveServiceImpl _sharedInstance = null;
/* */
/* 32 */ private SmartSecurityDialog _securityDialog = null;
/* */
/* */ private String _lastPath;
/* */
/* */ private FileSaveServiceImpl() {
/* 37 */ this._securityDialog = new SmartSecurityDialog(ResourceManager.getString("APIImpl.file.save.message"));
/* */ }
/* */
/* */
/* */ public static synchronized FileSaveService getInstance() {
/* 42 */ if (_sharedInstance == null) {
/* 43 */ _sharedInstance = new FileSaveServiceImpl();
/* */ }
/* 45 */ return _sharedInstance;
/* */ }
/* */
/* */ String getLastPath() {
/* 49 */ return this._lastPath; } void setLastPath(String paramString) {
/* 50 */ this._lastPath = paramString;
/* */ }
/* */
/* */ public FileContents saveAsFileDialog(String paramString, String[] paramArrayOfString, FileContents paramFileContents) throws IOException {
/* 54 */ return saveFileDialog(paramString, paramArrayOfString, paramFileContents.getInputStream(), paramFileContents.getName());
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ public FileContents saveFileDialog(String paramString1, String[] paramArrayOfString, InputStream paramInputStream, String paramString2) throws IOException {
/* */ try {
/* 63 */ if (!askUser()) return null;
/* */
/* 65 */ FileContents fileContents = (FileContents)AccessController.doPrivileged(new PrivilegedAction(this, paramString1, paramInputStream) { private final String val$pathHint;
/* */ public Object run() {
/* 67 */ JFileChooser jFileChooser = null;
/* 68 */ FileSystemView fileSystemView = FileOpenServiceImpl.getFileSystemView();
/* */
/* 70 */ if (this.val$pathHint != null) {
/* */
/* 72 */ jFileChooser = new JFileChooser(this.val$pathHint, fileSystemView);
/* */
/* */ }
/* */ else {
/* */
/* 77 */ jFileChooser = new JFileChooser(this.this$0.getLastPath(), fileSystemView);
/* */ }
/* */
/* */
/* 81 */ jFileChooser.setFileSelectionMode(0);
/* 82 */ jFileChooser.setDialogType(1);
/* 83 */ jFileChooser.setMultiSelectionEnabled(false);
/* 84 */ int i = jFileChooser.showSaveDialog(null);
/* 85 */ if (i == 1) {
/* 86 */ return null;
/* */ }
/* 88 */ File file = jFileChooser.getSelectedFile();
/* 89 */ if (file != null) {
/* */
/* 91 */ if (!FileSaveServiceImpl.fileChk(file)) {
/* 92 */ return null;
/* */ }
/* */ try {
/* 95 */ byte[] arrayOfByte = new byte[8192];
/* 96 */ BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(new FileOutputStream(file));
/* 97 */ BufferedInputStream bufferedInputStream = new BufferedInputStream(this.val$stream);
/* 98 */ int j = bufferedInputStream.read(arrayOfByte);
/* 99 */ while (j != -1) {
/* 100 */ bufferedOutputStream.write(arrayOfByte, 0, j);
/* 101 */ j = bufferedInputStream.read(arrayOfByte);
/* */ }
/* 103 */ bufferedOutputStream.close();
/* 104 */ this.this$0.setLastPath(file.getPath());
/* 105 */ return new FileContentsImpl(file, FileSaveServiceImpl.computeMaxLength(file.length()));
/* 106 */ } catch (IOException iOException) {
/* */
/* 108 */ return iOException;
/* */ }
/* */ }
/* 111 */ return null;
/* */ } private final InputStream val$stream; private final FileSaveServiceImpl this$0; }
/* */ );
/* 114 */ if (fileContents instanceof IOException) {
/* 115 */ throw (IOException)fileContents;
/* */ }
/* 117 */ return fileContents;
/* */ } finally {}
/* */ }
/* */
/* */
/* */
/* */ synchronized boolean askUser() {
/* 124 */ if (CheckServicePermission.hasFileAccessPermissions()) return true;
/* */
/* 126 */ return this._securityDialog.showDialog();
/* */ }
/* */
/* */
/* */
/* */ static long computeMaxLength(long paramLong) {
/* 132 */ return paramLong * 3L;
/* */ }
/* */
/* */
/* */
/* */ static boolean fileChk(File paramFile) {
/* 138 */ if (paramFile.exists()) {
/* 139 */ String str1 = ResourceManager.getString("APIImpl.file.save.fileExist", paramFile.getPath());
/* */
/* */
/* 142 */ String str2 = ResourceManager.getMessage("APIImpl.file.save.fileExistTitle");
/* */
/* */
/* 145 */ int i = DialogFactory.showConfirmDialog(str1, str2);
/* 146 */ return (i == 0);
/* */ }
/* */
/* 149 */ return true;
/* */ }
/* */ }
/* Location: C:\Users\leo\Desktop\server.jar!\com\sun\jnlp\FileSaveServiceImpl.class
* Java compiler version: 2 (46.0)
* JD-Core Version: 1.1.3
*/
|
[
"warchiefmarkus@gmail.com"
] |
warchiefmarkus@gmail.com
|
96d070df3c7a546d47722b234919c3e21677e295
|
7b0afc726b697888bd695d426f77fae040c2c481
|
/src/test/java/org/sansorm/testutils/DummyConnection.java
|
a65cffb7c2c08faf661cc2e76f3573582f40d838
|
[
"Apache-2.0"
] |
permissive
|
h-thurow/q2o
|
094e6f140a4a403c18d7325f16dd3b679ad0108d
|
d5167322e288da7383e5b8d4bc4d7bbf9e0520ed
|
refs/heads/master
| 2023-09-01T18:01:48.556963
| 2023-07-02T07:23:25
| 2023-07-02T07:23:25
| 126,706,586
| 3
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,986
|
java
|
package org.sansorm.testutils;
import org.h2.jdbc.JdbcPreparedStatement;
import java.sql.*;
import java.util.Map;
import java.util.Properties;
import java.util.concurrent.Executor;
/**
* @author Holger Thurow (thurow.h@gmail.com)
* @since 24.03.18
*/
public class DummyConnection implements Connection {
@Override
public Statement createStatement() throws SQLException {
return null;
}
@Override
public PreparedStatement prepareStatement(String sql) throws SQLException {
return null;
}
@Override
public CallableStatement prepareCall(String sql) throws SQLException {
return null;
}
@Override
public String nativeSQL(String sql) throws SQLException {
return null;
}
@Override
public void setAutoCommit(boolean autoCommit) throws SQLException {
}
@Override
public boolean getAutoCommit() throws SQLException {
return false;
}
@Override
public void commit() throws SQLException {
}
@Override
public void rollback() throws SQLException {
}
@Override
public void close() throws SQLException {
}
@Override
public boolean isClosed() throws SQLException {
return false;
}
@Override
public DatabaseMetaData getMetaData() throws SQLException {
return null;
}
@Override
public void setReadOnly(boolean readOnly) throws SQLException {
}
@Override
public boolean isReadOnly() throws SQLException {
return false;
}
@Override
public void setCatalog(String catalog) throws SQLException {
}
@Override
public String getCatalog() throws SQLException {
return null;
}
@Override
public void setTransactionIsolation(int level) throws SQLException {
}
@Override
public int getTransactionIsolation() throws SQLException {
return 0;
}
@Override
public SQLWarning getWarnings() throws SQLException {
return null;
}
@Override
public void clearWarnings() throws SQLException {
}
@Override
public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException {
return null;
}
@Override
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException {
return null;
}
@Override
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException {
return null;
}
@Override
public Map<String, Class<?>> getTypeMap() throws SQLException {
return null;
}
@Override
public void setTypeMap(Map<String, Class<?>> map) throws SQLException {
}
@Override
public void setHoldability(int holdability) throws SQLException {
}
@Override
public int getHoldability() throws SQLException {
return 0;
}
@Override
public Savepoint setSavepoint() throws SQLException {
return null;
}
@Override
public Savepoint setSavepoint(String name) throws SQLException {
return null;
}
@Override
public void rollback(Savepoint savepoint) throws SQLException {
}
@Override
public void releaseSavepoint(Savepoint savepoint) throws SQLException {
}
@Override
public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
return null;
}
@Override
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
return null;
}
@Override
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
return null;
}
@Override
public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException {
return null;
}
@Override
public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException {
return null;
}
@Override
public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException {
return null;
}
@Override
public Clob createClob() throws SQLException {
return null;
}
@Override
public Blob createBlob() throws SQLException {
return null;
}
@Override
public NClob createNClob() throws SQLException {
return null;
}
@Override
public SQLXML createSQLXML() throws SQLException {
return null;
}
@Override
public boolean isValid(int timeout) throws SQLException {
return false;
}
@Override
public void setClientInfo(String name, String value) throws SQLClientInfoException {
}
@Override
public void setClientInfo(Properties properties) throws SQLClientInfoException {
}
@Override
public String getClientInfo(String name) throws SQLException {
return null;
}
@Override
public Properties getClientInfo() throws SQLException {
return null;
}
@Override
public Array createArrayOf(String typeName, Object[] elements) throws SQLException {
return null;
}
@Override
public Struct createStruct(String typeName, Object[] attributes) throws SQLException {
return null;
}
@Override
public void setSchema(String schema) throws SQLException {
}
@Override
public String getSchema() throws SQLException {
return null;
}
@Override
public void abort(Executor executor) throws SQLException {
}
@Override
public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException {
}
@Override
public int getNetworkTimeout() throws SQLException {
return 0;
}
@Override
public <T> T unwrap(Class<T> iface) throws SQLException {
return null;
}
@Override
public boolean isWrapperFor(Class<?> iface) throws SQLException {
return false;
}
}
|
[
"brett.wooldridge@gmail.com"
] |
brett.wooldridge@gmail.com
|
47d271d038e80469c31fb8a18f64232985ef37e3
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/2/2_ac8ae5077e5601f72bf7446565b68648f7c9aeef/MidiMessageDecoderTest/2_ac8ae5077e5601f72bf7446565b68648f7c9aeef_MidiMessageDecoderTest_t.java
|
b1dd9d4975d40827ebbb05b1868b5739bea79156
|
[] |
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,527
|
java
|
package no.rmz.chordguesser;
import org.junit.*;
import static org.junit.Assert.*;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import static org.mockito.Mockito.*;
import org.mockito.runners.MockitoJUnit44Runner;
@RunWith(MockitoJUnit44Runner.class)
public final class MidiMessageDecoderTest {
private @Mock NoteListener noteListener;
/**
* Test of getHighNibble method, of class MidiMessageDecoder.
*/
@Test
public void testGetHighNibble() {
final byte b = (byte) 0xAB;
final byte expResult = 0xA;
final byte result = MidiMessageDecoder.getHighNibble(b);
assertEquals(expResult, result);
}
/**
* Test of getLowNibble method, of class MidiMessageDecoder.
*/
@Test
public void testGetLowNibble() {
final byte b = (byte) 0xAB;
final byte expResult = 0xB;
final byte result = MidiMessageDecoder.getLowNibble(b);
assertEquals(expResult, result);
}
/**
* Test of getCmdFromByte method, of class MidiMessageDecoder.
*/
@Test
public void testGetNoteOnCmdFromByte() {
byte b = (byte) 0x9E;
final MidiCmd expResult = MidiCmd.NOTE_ON;
final MidiCmd result = MidiMessageDecoder.getCmdFromByte(b);
assertEquals(expResult, result);
}
/**
* Test of getCmdFromByte method, of class MidiMessageDecoder.
*/
@Test
public void testGetNoteOffCmdFromByte() {
byte b = (byte) 0x8E;
final MidiCmd expResult = MidiCmd.NOTE_OFF;
final MidiCmd result = MidiMessageDecoder.getCmdFromByte(b);
assertEquals(expResult, result);
}
/**
* Test of getMidiChannelFromByte method, of class MidiMessageDecoder.
*/
@Test
public void testGetMidiChannelFromByte() {
final byte b = (byte) 0x8E;
final int expResult = (byte) 0xE;
final int result = MidiMessageDecoder.getMidiChannelFromByte(b);
assertEquals(expResult, result);
}
/**
* Test of getCmdFromByte method, of class MidiMessageDecoder.
*/
@Test
public void testGetCmdFromByte() {
final byte b = (byte) 0x90;
final MidiCmd expResult = MidiCmd.NOTE_ON;
final MidiCmd result = MidiMessageDecoder.getCmdFromByte(b);
assertEquals(expResult, result);
}
/**
* Test of decode method, of class MidiMessageDecoder.
*/
@Test
public void testDecodeMiddleCToneOn() {
// XXXX Don't use 60, say what it means.
final byte[] m = new byte[]{(byte) 0x90, (byte) 60, (byte) 60};
final long timestamp = 4711L;
final MidiMessageDecoder instance = new MidiMessageDecoder(noteListener);
instance.decode(m, timestamp);
verify(noteListener).noteOn(60);
}
/**
* Test of decode method, of class MidiMessageDecoder.
*/
@Test
public void testDecodeAllTonesCToneOn() {
for (int tone = 0; tone < 128; tone++) {
final byte[] m = new byte[]{ScaleAndChordGeneration.MIDI_TONE_DOWN_CNAN_ZERO, (byte) tone, (byte) 60};
final long timestamp = 4711L;
noteListener = mock(NoteListener.class);
final MidiMessageDecoder instance = new MidiMessageDecoder(noteListener);
instance.decode(m, timestamp);
verify(noteListener).noteOn(tone);
}
}
/**
* This is an exploratory test, when the exploration is done it probably
* doesn't even belong in this class.
*/
@Test
public void testCMajorChordDetection() {
byte[][] cMajorChordArpeggiated =
// XXX Replae 60 withsome constant.
ScaleAndChordGeneration.midiToneDownSequenceForTones(new byte[]{
ScaleAndChordGeneration.MIDDLE_C_MIDI_ENCODING,
ScaleAndChordGeneration.MIDDLE_C_MIDI_ENCODING + 4,
ScaleAndChordGeneration.MIDDLE_C_MIDI_ENCODING + 7});
final MidiMessageDecoder instance = new MidiMessageDecoder(noteListener);
ScaleAndChordGeneration.inject(instance, cMajorChordArpeggiated);
verify(noteListener).noteOn(ScaleAndChordGeneration.MIDDLE_C_MIDI_ENCODING);
verify(noteListener).noteOn(ScaleAndChordGeneration.MIDDLE_C_MIDI_ENCODING + 4);
verify(noteListener).noteOn(ScaleAndChordGeneration.MIDDLE_C_MIDI_ENCODING + 7);
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
8a83c29a20eff5c72d198d98609adb59d32d8305
|
91297ffb10fb4a601cf1d261e32886e7c746c201
|
/cnd.debugger.common2/src/org/netbeans/modules/cnd/debugger/common2/debugger/options/SignalTableModel.java
|
a48924e17caa6c6147a596c2375eac9fb3aa7915
|
[] |
no_license
|
JavaQualitasCorpus/netbeans-7.3
|
0b0a49d8191393ef848241a4d0aa0ecc2a71ceba
|
60018fd982f9b0c9fa81702c49980db5a47f241e
|
refs/heads/master
| 2023-08-12T09:29:23.549956
| 2019-03-16T17:06:32
| 2019-03-16T17:06:32
| 167,005,013
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,481
|
java
|
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.
*
* Oracle and Java are registered trademarks of Oracle and/or its affiliates.
* Other names may be trademarks of their respective owners.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common
* Development and Distribution License("CDDL") (collectively, the
* "License"). You may not use this file except in compliance with the
* License. You can obtain a copy of the License at
* http://www.netbeans.org/cddl-gplv2.html
* or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
* specific language governing permissions and limitations under the
* License. When distributing the software, include this License Header
* Notice in each file and include the License file at
* nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the GPL Version 2 section of the License file that
* accompanied this code. If applicable, add the following below the
* License Header, with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* Contributor(s):
*
* The Original Software is NetBeans. The Initial Developer of the Original
* Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
* Microsystems, Inc. All Rights Reserved.
*
* If you wish your version of this file to be governed by only the CDDL
* or only the GPL Version 2, indicate your decision by adding
* "[Contributor] elects to include this software in this distribution
* under the [CDDL or GPL Version 2] license." If you do not indicate a
* single choice of license, a recipient has the option to distribute
* your version of this file under either the CDDL, the GPL Version 2 or
* to extend the choice of license to its licensees as provided above.
* However, if you add GPL Version 2 code and therefore, elected the GPL
* Version 2 license, then the option applies only if the new code is
* made subject to such option by the copyright holder.
*/
package org.netbeans.modules.cnd.debugger.common2.debugger.options;
import javax.swing.table.AbstractTableModel;
/**
* was: based on utils.ListTableModel.
*/
final class SignalTableModel extends AbstractTableModel {
private static final String ignored =
Catalog.get("Signal_Ignored"); // NOI18N
private static final String ignoredDefault =
Catalog.get("Signal_IgnoredDefault"); // NOI18N
private static final String caught =
Catalog.get("Signal_Caught"); // NOI18N
private static final String caughtDefault =
Catalog.get("Signal_CaughtDefault"); // NOI18N
private Signals signals;
private static final int colCount = 4;
private static final String[] columnName = new String[] {
Catalog.get("Signal_Number"), // NOI18N
Catalog.get("Signal_Signal"), // NOI18N
Catalog.get("Signal_Desc"), // NOI18N
Catalog.get("Signal_Handled"), // NOI18N
};
private boolean haveSignals() {
return signals != null;
}
public SignalTableModel() {
super();
}
// interface TableModel
public int getRowCount() {
if (haveSignals()) {
return signals.count();
} else {
return 1;
}
}
// interface TableModel
public int getColumnCount() {
return colCount;
}
// interface TableModel
@Override
public String getColumnName(int columnIndex) {
return columnName[columnIndex];
}
// interface TableModel
@Override
public Class<?> getColumnClass(int columnIndex) {
/* Don't want integer's left justified
if (columnIndex == 0) {
return Integer.class;
} else {
*/
return String.class;
}
// interface TableModel
@Override
public boolean isCellEditable(int rowIndex, int columnIndex) {
if (!haveSignals() || rowIndex == 8 /* signal KILL */) {
// No signals: no editing
return false;
} else {
// Only the "handled" column is editable
return (columnIndex == 3);
}
}
// interface TableModel
public Object getValueAt(int rowIndex, int columnIndex) {
if (!haveSignals()) {
if (columnIndex == 2)
return Catalog.get("NoSigsUntilDebug"); // NOI18N
else
return "";
}
Signals.InitialSignalInfo signal = signals.getSignal(rowIndex);
switch(columnIndex) {
case 0:
return new Integer(signal.signo());
case 1:
return signal.name();
case 2:
return signal.description();
case 3:
if (signal.isCaught()) {
if (signal.isCaughtByDefault()) {
return caughtDefault;
} else {
return caught;
}
} else {
if (signal.isCaughtByDefault()) {
return ignored;
} else {
return ignoredDefault;
}
}
default:
return "";
}
}
// interface TableModel
@Override
public void setValueAt(Object newValue, int rowIndex, int columnIndex) {
Signals.InitialSignalInfo signal = signals.getSignal(rowIndex);
if (signal == null)
return;
switch (columnIndex) {
case 0:
case 1:
case 2:
default:
assert false : "SetValueAt() for bad column " + columnIndex;
break;
case 3:
String newString = newValue.toString();
if (ignored.equals(newString)) {
signal.setCaught(false);
} else if (caught.equals(newString)) {
signal.setCaught(true);
} else {
assert Catalog.get("Signal_Default"). // NOI18N
equals(newString);
signal.resetCaught();
}
signals.checkSignal();
break;
}
fireTableRowsUpdated(rowIndex, rowIndex);
}
/**
* The signal list has changed.
*/
public void signalsUpdated(Signals signals) {
if (signals != null) {
assert signals.isClone() :
"SignalTableModel.signalsUpdated() not getting a clone"; // NOI18N
}
// remove existing rows
if (haveSignals()) {
fireTableRowsDeleted(0, this.signals.count());
}
this.signals = signals;
if (signals == null) {
return;
}
fireTableRowsInserted(0, signals.count());
}
public boolean isDefaultValue(int rowIndex) {
if (!haveSignals()) {
return true;
} else {
Signals.InitialSignalInfo s = signals.getSignal(rowIndex);
if (s == null)
return true;
if (s.isCaught()) {
return s.isCaughtByDefault();
} else {
return !s.isCaughtByDefault();
}
}
}
}
|
[
"taibi@sonar-scheduler.rd.tut.fi"
] |
taibi@sonar-scheduler.rd.tut.fi
|
9533ef6cf4a4965ea5498b97959e75d1582b1bfa
|
24d4605647869da8d34f627f7c8494a640af64ab
|
/Gradle/Staticizer/staticizer/src/main/java/com/commonsware/android/staticizer/Staticizer.java
|
baa3eddea7b1ada58c8b1b4d7116a7c2dd0a8171
|
[
"Apache-2.0"
] |
permissive
|
chrisluwi/cw-omnibus
|
30deeba5fed2e8c237a19a7c578e7c1bab772f51
|
9122eb0f1f7125471b3e2b27a7498f6358397910
|
refs/heads/master
| 2021-01-11T01:34:19.253614
| 2021-01-10T05:49:28
| 2021-01-10T05:49:28
| 70,690,515
| 0
| 0
|
Apache-2.0
| 2021-01-10T05:49:29
| 2016-10-12T10:47:18
|
Java
|
UTF-8
|
Java
| false
| false
| 3,554
|
java
|
/***
Copyright (c) 2016 CommonsWare, LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required
by applicable law or agreed to in writing, software distributed under the
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
OF ANY KIND, either express or implied. See the License for the specific
language governing permissions and limitations under the License.
Covered in detail in the book _The Busy Coder's Guide to Android Development_
https://commonsware.com/Android
*/
package com.commonsware.android.staticizer;
import com.google.common.base.CaseFormat;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.squareup.javapoet.FieldSpec;
import com.squareup.javapoet.JavaFile;
import com.squareup.javapoet.TypeName;
import com.squareup.javapoet.TypeSpec;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.lang.reflect.Type;
import java.util.LinkedHashMap;
import java.util.Map;
import javax.lang.model.element.Modifier;
class Staticizer {
void generate(File input, File outputDir,
String packageName) throws IOException {
Type type=
new TypeToken<LinkedHashMap<String,Object>>() {}.getType();
LinkedHashMap<String, Object> data=
new Gson().fromJson(new FileReader(input), type);
String basename=removeExtension(input.getAbsolutePath());
TypeSpec.Builder builder=TypeSpec.classBuilder(basename)
.addModifiers(Modifier.PUBLIC, Modifier.FINAL);
for (Map.Entry<String, Object> entry : data.entrySet()) {
String fieldName=
CaseFormat.LOWER_CAMEL
.to(CaseFormat.UPPER_UNDERSCORE, entry.getKey());
FieldSpec.Builder field;
if (entry.getValue() instanceof Float) {
field=FieldSpec.builder(TypeName.FLOAT, fieldName)
.initializer("$L", entry.getValue());
}
else if (entry.getValue() instanceof Double) {
field=FieldSpec.builder(TypeName.DOUBLE, fieldName)
.initializer("$L", entry.getValue());
}
else if (entry.getValue() instanceof Integer) {
field=FieldSpec.builder(TypeName.INT, fieldName)
.initializer("$L", entry.getValue());
}
else if (entry.getValue() instanceof Long) {
field=FieldSpec.builder(TypeName.LONG, fieldName)
.initializer("$L", entry.getValue());
}
else if (entry.getValue() instanceof Boolean) {
field=FieldSpec.builder(TypeName.BOOLEAN, fieldName)
.initializer("$L", entry.getValue());
}
else {
field=FieldSpec.builder(String.class, fieldName)
.initializer("$S", entry.getValue().toString());
}
field.addModifiers(Modifier.PUBLIC, Modifier.STATIC, Modifier.FINAL)
.build();
builder.addField(field.build());
}
JavaFile.builder(packageName, builder.build())
.build()
.writeTo(outputDir);
}
// inspired by http://stackoverflow.com/a/990492/115145
private static String removeExtension(String s) {
String result;
int sepIndex=
s.lastIndexOf(System.getProperty("file.separator"));
if (sepIndex==-1) {
result=s;
}
else {
result=s.substring(sepIndex+1);
}
int extIndex=result.lastIndexOf(".");
if (extIndex!=-1) {
result=result.substring(0, extIndex);
}
return(result);
}
}
|
[
"mmurphy@commonsware.com"
] |
mmurphy@commonsware.com
|
7dd25d650208e3bc64d44eb264d4418a059f44f3
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/28/28_9582bc3fd6a8121b691d4dd44105285e2d5fe139/TestCaseDetail/28_9582bc3fd6a8121b691d4dd44105285e2d5fe139_TestCaseDetail_s.java
|
f557c84dd1c01ad15f5d624ec4b252ed9fbbbb85
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 3,119
|
java
|
/**
* Maven and Sonar plugin for .Net
* Copyright (C) 2010 Jose Chillan and Alexandre Victoor
* mailto: jose.chillan@codehaus.org or alexvictoor@codehaus.org
*
* Sonar is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* Sonar is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
/*
* Created on Apr 28, 2009
*/
package org.sonar.plugin.dotnet.gallio;
import java.io.File;
/**
* Details for a test case.
*
* @author Jose CHILLAN Jun 16, 2009
*/
public class TestCaseDetail {
private String name;
private TestStatus status;
private String stackTrace;
private String errorMessage;
private int timeMillis = 0;
private int countAsserts;
private File sourceFile;
/**
* Constructs an empty @link{TestCaseDetail}.
*/
public TestCaseDetail() {
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getStackTrace() {
return stackTrace;
}
public void setStackTrace(String stackTrace) {
this.stackTrace = stackTrace;
}
public String getErrorMessage() {
return errorMessage;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
public int getTimeMillis() {
return timeMillis;
}
public void setTimeMillis(int timeMS) {
this.timeMillis = timeMS;
}
public int getCountAsserts() {
return this.countAsserts;
}
public void setCountAsserts(int countAsserts) {
this.countAsserts = countAsserts;
}
@Override
public String toString() {
return "Test " + name + "(" + status + ", time=" + timeMillis * 0.001 + ")";
}
/**
* Returns the status.
*
* @return The status to return.
*/
public TestStatus getStatus() {
return this.status;
}
/**
* Sets the status.
*
* @param status
* The status to set.
*/
public void setStatus(TestStatus status) {
this.status = status;
}
/**
* Returns the testFile.
*
* @return The testFile to return.
*/
public File getSourceFile() {
return this.sourceFile;
}
/**
* Sets the testFile.
*
* @param testFile
* The testFile to set.
*/
public void setSourceFile(File testFile) {
this.sourceFile = testFile;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.