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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f3e5f9e3e865f73b5acf158884c95dcd0b785d69 | 0dcd633de13f79941bb3f67e2b72a856ff944011 | /MyBatisGenerator插件的使用/src/main/java/org/lint/DAO/EcsVirtualGoodsCardMapper.java | 30f946ad7b343408805422426b08ebb852723f70 | [] | no_license | lintsGitHub/StudyMyBatisExample | 07666f4a94c05cfb9e92af790d9eefff25e50ced | d160472cc481e3843183647086e9e956643f9c9e | refs/heads/master | 2020-04-05T02:12:51.335275 | 2019-02-17T06:14:46 | 2019-02-17T06:14:46 | 156,468,204 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,268 | java | package org.lint.DAO;
import java.util.List;
import org.lint.Entity.EcsVirtualGoodsCard;
public interface EcsVirtualGoodsCardMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ecs_virtual_goods_card
*
* @mbg.generated
*/
int deleteByPrimaryKey(Integer cardId);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ecs_virtual_goods_card
*
* @mbg.generated
*/
int insert(EcsVirtualGoodsCard record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ecs_virtual_goods_card
*
* @mbg.generated
*/
EcsVirtualGoodsCard selectByPrimaryKey(Integer cardId);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ecs_virtual_goods_card
*
* @mbg.generated
*/
List<EcsVirtualGoodsCard> selectAll();
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ecs_virtual_goods_card
*
* @mbg.generated
*/
int updateByPrimaryKey(EcsVirtualGoodsCard record);
} | [
"2145604059@qq.com"
] | 2145604059@qq.com |
8c0c698b3c8ea66de95ff4b6873dad85a41f8a4d | 28c40b1cb95b171a78f7f702eb6fb76ea91821de | /aws-java-sdk-core/src/main/java/com/amazonaws/http/timers/client/NoOpClientExecutionAbortTrackerTask.java | 8a569f1e6a524fa5459056e1f92479567bdaf216 | [
"Apache-2.0",
"JSON"
] | permissive | picantegamer/aws-sdk-java | e9249bc9fad712f475c15df74068b306d773df10 | 206557596ee15a8aa470ad2f33a06d248042d5d0 | refs/heads/master | 2021-01-14T13:44:03.807035 | 2016-01-08T22:23:36 | 2016-01-08T22:23:36 | 49,227,858 | 0 | 0 | null | 2016-01-07T20:07:24 | 2016-01-07T20:07:23 | null | UTF-8 | Java | false | false | 1,397 | java | /*
* Copyright 2015-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.amazonaws.http.timers.client;
import org.apache.http.client.methods.HttpRequestBase;
/**
* Dummy implementation of {@link ClientExecutionAbortTrackerTask} used when the timer is disabled
* for a request
*/
public class NoOpClientExecutionAbortTrackerTask implements ClientExecutionAbortTrackerTask {
public static final NoOpClientExecutionAbortTrackerTask INSTANCE = new NoOpClientExecutionAbortTrackerTask();
// Singleton
private NoOpClientExecutionAbortTrackerTask() {
}
@Override
public void setCurrentHttpRequest(HttpRequestBase newRequest) {
}
@Override
public boolean hasTimeoutExpired() {
return false;
}
@Override
public boolean isEnabled() {
return false;
}
@Override
public void cancelTask() {
}
}
| [
"aws@amazon.com"
] | aws@amazon.com |
1f58b85d9cf8d0d7907e8d4c3d627110012be92d | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /java/realm-java/2017/8/BaseIntegrationTest.java | 8faa03f76b0060d8fa6daa7274f0ee9611452664 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Java | false | false | 4,793 | java | /*
* Copyright 2017 Realm Inc.
*
* 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 io.realm;
import android.support.test.InstrumentationRegistry;
import android.support.test.rule.UiThreadTestRule;
import android.util.Log;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Rule;
import org.junit.rules.ExpectedException;
import java.io.File;
import java.io.IOException;
import io.realm.internal.Util;
import io.realm.log.LogLevel;
import io.realm.log.RealmLog;
import io.realm.objectserver.utils.HttpUtils;
import io.realm.rule.RunInLooperThread;
import io.realm.rule.TestSyncConfigurationFactory;
public class BaseIntegrationTest {
private static int originalLogLevel;
@Rule
public final TestSyncConfigurationFactory configurationFactory = new TestSyncConfigurationFactory();
@Rule
public RunInLooperThread looperThread = new RunInLooperThread();
@Rule
public final UiThreadTestRule uiThreadTestRule = new UiThreadTestRule();
@Rule
public final ExpectedException thrown = ExpectedException.none();
@BeforeClass
public static void setupTestClass() throws Exception {
SyncManager.Debug.skipOnlineChecking = true;
try {
HttpUtils.startSyncServer();
} catch (Exception e) {
// Throwing an exception from this method will crash JUnit. Instead just log it.
// If this setup method fails, all unit tests in the class extending it will most likely fail as well.
Log.e(HttpUtils.TAG, "Could not start Sync Server: " + Util.getStackTrace(e));
}
}
@AfterClass
public static void tearDownTestClass() throws Exception {
try {
HttpUtils.stopSyncServer();
} catch (Exception e) {
Log.e(HttpUtils.TAG, "Failed to stop Sync Server" + Util.getStackTrace(e));
}
}
@Before
public void setupTest() throws IOException {
deleteRosFiles();
if (BaseRealm.applicationContext != null) {
// Realm was already initialized. Reset all internal state
// in order to be able fully re-initialize.
// This will set the 'm_metadata_manager' in 'sync_manager.cpp' to be 'null'
// causing the SyncUser to remain in memory.
// They're actually not persisted into disk.
// move this call to 'tearDown' to clean in-memory & on-disk users
// once https://github.com/realm/realm-object-store/issues/207 is resolved
SyncManager.reset();
BaseRealm.applicationContext = null; // Required for Realm.init() to work
}
Realm.init(InstrumentationRegistry.getContext());
originalLogLevel = RealmLog.getLevel();
RealmLog.setLevel(LogLevel.DEBUG);
}
@After
public void teardownTest() {
if (looperThread.isTestComplete()) {
// Non-looper tests can reset here
resetTestEnvironment();
} else {
// Otherwise we need to wait for the test to complete
looperThread.runAfterTest(new Runnable() {
@Override
public void run() {
resetTestEnvironment();
}
});
}
}
private void resetTestEnvironment() {
for (SyncUser syncUser : SyncUser.all().values()) {
syncUser.logout();
}
RealmLog.setLevel(originalLogLevel);
}
// Cleanup filesystem to make sure nothing lives for the next test.
// Failing to do so might lead to DIVERGENT_HISTORY errors being thrown if Realms from
// previous tests are being accessed.
private static void deleteRosFiles() throws IOException {
File rosFiles = new File(InstrumentationRegistry.getContext().getFilesDir(),"realm-object-server");
deleteFile(rosFiles);
}
private static void deleteFile(File file) throws IOException {
if (file.isDirectory()) {
for (File c : file.listFiles()) {
deleteFile(c);
}
}
if (!file.delete()) {
throw new IllegalStateException("Failed to delete file or directory: " + file.getAbsolutePath());
}
}
}
| [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
0028e7fc8dfaa18ffde872f912831e289cb8033b | b6729954e93c0565d3ccd23bacc9d263cf031f23 | /src/main/java/library/ravishankar/getcity/rest/model/Prediction.java | 924411238cdb79b9a32a1a68968fb7ee062e3345 | [] | no_license | ravishankarahirwar/GetCity | ad98e2c7bf17ee5578f4ed25972fd5bc7dd44454 | e1d833bb34f7af4f78aea04c140e8f24af66f42c | refs/heads/master | 2021-01-11T20:53:04.390845 | 2017-01-17T07:55:48 | 2017-01-17T07:55:48 | 79,202,571 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,748 | java | package library.ravishankar.getcity.rest.model;
import com.google.gson.annotations.SerializedName;
import org.parceler.Parcel;
import java.util.ArrayList;
/**
* @author Ravishankar Ahirwar
* @since 17/01/2017
* @version 1.0
*/
@Parcel
public class Prediction
{
@SerializedName("description")
private String mDescription;
@SerializedName("id")
private String mID;
@SerializedName("matched_substrings")
private ArrayList<MatchedSubstring> mMatchedSubstrings;
@SerializedName("place_id")
private String mPlaceID;
@SerializedName("reference")
private String mReference;
@SerializedName("terms")
private ArrayList<Terms> mTerms;
@SerializedName("types")
private ArrayList<String> mTypes;
public String getDescription()
{
return mDescription;
}
public String getID()
{
return mID;
}
public ArrayList<MatchedSubstring> getMatchedSubstrings()
{
return mMatchedSubstrings;
}
public String getPlaceID()
{
return mPlaceID;
}
public String getReference()
{
return mReference;
}
public ArrayList<Terms> getTerms()
{
return mTerms;
}
public ArrayList<String> getTypes()
{
return mTypes;
}
@Override
public String toString()
{
return "Prediction{" +
"mDescription='" + mDescription + '\'' +
", mID='" + mID + '\'' +
", mMatchedSubstrings=" + mMatchedSubstrings +
", mPlaceID='" + mPlaceID + '\'' +
", mReference='" + mReference + '\'' +
", mTerms=" + mTerms +
", mTypes=" + mTypes +
'}';
}
}
| [
"ravishankar.ahirwar@gmail.com"
] | ravishankar.ahirwar@gmail.com |
0e8d7b4eee921a45939f938928107b9d71252131 | db96b76094730056966dd1bb04b2fb4a88271549 | /services/Car/tests/carservice_unit_test/src/com/android/car/BluetoothAdapterHelper.java | fdf4996cee6619bc71b4dc4d43654c7adeba8d16 | [] | no_license | dylanbroodryk/Android-system-apps | 48335f66d3fad6532cda19e192f11af1f69dce00 | 50f6f11f70906260a710cbeb66a92fba72410504 | refs/heads/master | 2022-03-14T16:15:33.277628 | 2022-02-12T04:56:41 | 2022-02-12T04:56:41 | 228,542,760 | 0 | 0 | null | 2019-12-17T05:50:11 | 2019-12-17T05:50:10 | null | UTF-8 | Java | false | false | 8,134 | java | /*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.car;
import static org.junit.Assert.assertTrue;
import android.bluetooth.BluetoothAdapter;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.provider.Settings;
import android.util.Log;
import androidx.test.InstrumentationRegistry;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;
/**
* Contains the utilities to aid in car Bluetooth testing
*/
public class BluetoothAdapterHelper {
private static final String TAG = "BluetoothAdapterHelper";
private static final boolean DBG = Log.isLoggable(TAG, Log.DEBUG);
private Context mContext;
private BluetoothAdapterReceiver mBluetoothAdapterReceiver;
private BluetoothAdapter mBluetoothAdapter;
// Timeout for waiting for an adapter state change
private static final int BT_ADAPTER_TIMEOUT_MS = 8000; // ms
// Objects to block until the adapter has reached a desired state
private ReentrantLock mBluetoothAdapterLock;
private Condition mConditionAdapterStateReached;
private int mDesiredState;
/**
* Handles BluetoothAdapter state changes and signals when we've reached a desired state
*/
private class BluetoothAdapterReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
// Decode the intent
String action = intent.getAction();
// Watch for BluetoothAdapter intents only
if (BluetoothAdapter.ACTION_STATE_CHANGED.equals(action)) {
int newState = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, -1);
logd("Bluetooth adapter state changed: " + newState);
// Signal if the state is set to the one we're waiting on. If its not and we got a
// STATE_OFF event then handle the unexpected off event. Note that we could
// proactively turn the adapter back on to continue testing. For now we'll just
// log it
mBluetoothAdapterLock.lock();
try {
if (mDesiredState == newState) {
mConditionAdapterStateReached.signal();
} else if (newState == BluetoothAdapter.STATE_OFF) {
logw("Bluetooth turned off unexpectedly while test was running.");
}
} finally {
mBluetoothAdapterLock.unlock();
}
}
}
}
/**
* Create a BluetoothAdapterHelper and tell it how to log
*
* @param tag - The logging tag you wish it to have
*/
public BluetoothAdapterHelper() {
mContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
mDesiredState = -1; // Set and checked by waitForAdapterState()
mBluetoothAdapterLock = new ReentrantLock();
mConditionAdapterStateReached = mBluetoothAdapterLock.newCondition();
mBluetoothAdapterReceiver = new BluetoothAdapterReceiver();
}
/**
* Setup the helper and begin receiving BluetoothAdapter events.
*
* Must be called before functions will work.
*/
public void init() {
IntentFilter filter = new IntentFilter(BluetoothAdapter.ACTION_STATE_CHANGED);
mContext.registerReceiver(mBluetoothAdapterReceiver, filter);
}
/**
* Release resource in preparation to destroy the object
*/
public void release() {
mContext.unregisterReceiver(mBluetoothAdapterReceiver);
}
/**
* Get the state of the Bluetooth Adapter
*/
public int getAdapterState() {
return mBluetoothAdapter.getState();
}
/**
* Get the persisted Bluetooth state from Settings
*
* @return True if the persisted Bluetooth state is on, false otherwise
*/
public boolean isAdapterPersistedOn() {
return (Settings.Global.getInt(
mContext.getContentResolver(), Settings.Global.BLUETOOTH_ON, -1) != 0);
}
/**
* Wait until the adapter is ON. If the adapter is already on it will return immediately.
*/
public synchronized void waitForAdapterOn() {
waitForAdapterState(BluetoothAdapter.STATE_ON);
}
/**
* Wait until the adapter is OFF. If the adapter is already off it will return immediately.
*/
public synchronized void waitForAdapterOff() {
waitForAdapterState(BluetoothAdapter.STATE_OFF);
}
/**
* Wait for the bluetooth adapter to be in a given state
*/
private synchronized void waitForAdapterState(int desiredState) {
logd("Waiting for adapter state " + Utils.getAdapterStateName(desiredState));
mBluetoothAdapterLock.lock();
try {
// Update the desired state so that we'll signal when we get there
mDesiredState = desiredState;
// Wait until we're reached that desired state
while (desiredState != mBluetoothAdapter.getState()) {
if (!mConditionAdapterStateReached.await(
BT_ADAPTER_TIMEOUT_MS, TimeUnit.MILLISECONDS)) {
loge("Timeout while waiting for Bluetooth adapter state "
+ Utils.getAdapterStateName(desiredState));
break;
}
}
} catch (InterruptedException e) {
logw("waitForAdapterState(" + Utils.getAdapterStateName(desiredState)
+ "): interrupted, Reason: " + e);
} finally {
mBluetoothAdapterLock.unlock();
}
assertTrue(mBluetoothAdapter.getState() == desiredState);
}
/**
* Request that the adapter be turned on.
*/
public synchronized void forceAdapterOn() {
forceAdapterState(BluetoothAdapter.STATE_ON, true);
}
/**
* Request that the adapter be turned off.
*/
public synchronized void forceAdapterOff() {
forceAdapterState(BluetoothAdapter.STATE_OFF, true);
}
/**
* Request that the adapter be turned off. Do not persist the off state across a reboot
*/
public synchronized void forceAdapterOffDoNotPersist() {
forceAdapterState(BluetoothAdapter.STATE_OFF, false);
}
/**
* Request that the adapter be turned eother on or off.
*/
private void forceAdapterState(int desiredState, boolean persistAcrossReboot) {
logd("Forcing adapter to be " + Utils.getAdapterStateName(desiredState));
// If the current state matches the requested state, these calls return immediately and
// our loop below will simply read the proper state
if (desiredState == BluetoothAdapter.STATE_ON) {
mBluetoothAdapter.enable();
} else {
mBluetoothAdapter.disable(persistAcrossReboot);
}
waitForAdapterState(desiredState);
}
/**
* Log a message to DEBUG if debug is enabled
*/
private void logd(String msg) {
if (DBG) {
Log.d(TAG, msg);
}
}
/**
* Log a message to WARN
*/
private void logw(String msg) {
Log.w(TAG, msg);
}
/**
* Log a message to ERROR
*/
private void loge(String msg) {
Log.e(TAG, msg);
}
}
| [
"yuchuangu85@gmail.com"
] | yuchuangu85@gmail.com |
9858d78b7ae166a5aeee48542a1ab246a71026d6 | c6406a3adaedcce6cf36d5b0c20c4de51ed3f45b | /src/main/java/io/github/gibugeorge/config/DatabaseConfiguration.java | f1d065cdf0013b1dc460fa667ca40454cbb3f431 | [] | no_license | gibugeorge/bifrost | b9eb94ec5724d2a2be599ee798df7690b40d44e8 | 81ff1a2c8f7bc66460c1f451bfa5f0f664ef69ba | refs/heads/master | 2021-06-29T20:48:45.386383 | 2019-12-10T06:42:04 | 2019-12-10T06:42:04 | 227,047,337 | 0 | 0 | null | 2021-04-29T21:53:30 | 2019-12-10T06:41:50 | Java | UTF-8 | Java | false | false | 2,827 | java | package io.github.gibugeorge.config;
import io.github.jhipster.config.JHipsterConstants;
import com.github.mongobee.Mongobee;
import com.mongodb.MongoClient;
import io.github.jhipster.domain.util.JSR310DateConverters.DateToZonedDateTimeConverter;
import io.github.jhipster.domain.util.JSR310DateConverters.ZonedDateTimeToDateConverter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.Profile;
import org.springframework.core.convert.converter.Converter;
import org.springframework.data.mongodb.config.EnableMongoAuditing;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.convert.MongoCustomConversions;
import org.springframework.data.mongodb.core.mapping.event.ValidatingMongoEventListener;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean;
import java.util.ArrayList;
import java.util.List;
@Configuration
@EnableMongoRepositories("io.github.gibugeorge.repository")
@Profile("!" + JHipsterConstants.SPRING_PROFILE_CLOUD)
@Import(value = MongoAutoConfiguration.class)
@EnableMongoAuditing(auditorAwareRef = "springSecurityAuditorAware")
public class DatabaseConfiguration {
private final Logger log = LoggerFactory.getLogger(DatabaseConfiguration.class);
@Bean
public ValidatingMongoEventListener validatingMongoEventListener() {
return new ValidatingMongoEventListener(validator());
}
@Bean
public LocalValidatorFactoryBean validator() {
return new LocalValidatorFactoryBean();
}
@Bean
public MongoCustomConversions customConversions() {
List<Converter<?, ?>> converters = new ArrayList<>();
converters.add(DateToZonedDateTimeConverter.INSTANCE);
converters.add(ZonedDateTimeToDateConverter.INSTANCE);
return new MongoCustomConversions(converters);
}
@Bean
public Mongobee mongobee(MongoClient mongoClient, MongoTemplate mongoTemplate, MongoProperties mongoProperties) {
log.debug("Configuring Mongobee");
Mongobee mongobee = new Mongobee(mongoClient);
mongobee.setDbName(mongoProperties.getMongoClientDatabase());
mongobee.setMongoTemplate(mongoTemplate);
// package to scan for migrations
mongobee.setChangeLogsScanPackage("io.github.gibugeorge.config.dbmigrations");
mongobee.setEnabled(true);
return mongobee;
}}
| [
"jhipster-bot@jhipster.tech"
] | jhipster-bot@jhipster.tech |
f753c6d549bed42dc6e6c1ea8666f57ada184318 | 385df7ec7b4e05201dde9a87c74b607dad9a76a9 | /src/main/java/net/oriserver/taspl_parkour/Timer.java | 9acf469cefc5e74afdb4fdf82f9fee3817ebdbf9 | [] | no_license | orizeri/TASPL_Parkour | 22ed59a4429a5811c852b2a67558e926770928b5 | c9f709bf5aaa4685b7c8b8d2ce74ca7b7aaf6319 | refs/heads/master | 2020-04-22T17:15:50.010755 | 2019-02-13T15:49:57 | 2019-02-13T15:49:57 | 170,534,785 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 281 | 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 net.oriserver.taspl_parkour;
/**
*
* @author orizeri
*/
public class Timer {
}
| [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
649e5a507c0557a992e0dbedfda2551d86dcdbd8 | a450309747f45e6d751dd5cdd0facaf8d27c147f | /src/main/java/redis/clients/nedis/netty/ConfirmingBufferedWriteHandler.java | 23050bdc5eeff622fa4d409915dc68fdd3fd6f0c | [] | no_license | mmalyutin/dashkuj | b92021b9d8de4e3bc9cde4bb98d24d7cca70e7c4 | 3d8104652368378ddd3bfd90c36f91acd4a31366 | refs/heads/master | 2020-05-25T13:05:42.343815 | 2013-04-24T17:56:08 | 2013-04-24T17:56:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,491 | java | /**
* Helios, OpenSource Monitoring
* Brought to you by the Helios Development Group
*
* Copyright 2007, Helios Development Group and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This 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 software 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 this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*
*/
package redis.clients.nedis.netty;
import java.util.Queue;
import org.jboss.netty.channel.ChannelHandlerContext;
import org.jboss.netty.channel.MessageEvent;
import org.jboss.netty.handler.queue.BufferedWriteHandler;
/**
* <p>Title: ConfirmingBufferedWriteHandler</p>
* <p>Description: A {@link BufferedWriteHandler} extension that confirms the writes into the buffer by marking the {@link ChannelFuture} complete </p>
* <p>Company: Helios Development Group LLC</p>
* @author Whitehead (nwhitehead AT heliosdev DOT org)
* <p><code>redis.clients.nedis.netty.ConfirmingBufferedWriteHandler</code></p>
*/
public class ConfirmingBufferedWriteHandler extends BufferedWriteHandler {
/**
* Creates a new ConfirmingBufferedWriteHandler
* @param queue
* @param consolidateOnFlush
*/
public ConfirmingBufferedWriteHandler(Queue<MessageEvent> queue,
boolean consolidateOnFlush) {
super(queue, consolidateOnFlush);
// TODO Auto-generated constructor stub
}
/**
* {@inheritDoc}
* @see org.jboss.netty.handler.queue.BufferedWriteHandler#writeRequested(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.MessageEvent)
*/
@Override
public void writeRequested(ChannelHandlerContext ctx, MessageEvent e) throws Exception {
try {
super.writeRequested(ctx, e);
} catch (Exception ex) {
e.getFuture().setFailure(ex);
}
e.getFuture().setSuccess();
}
}
| [
"nwhitehead@heliosdev.org"
] | nwhitehead@heliosdev.org |
4a681faf7172e840b02d9a94ae011e21578a66ff | fa98b943f13ebbaf4e1b6f0cfdc64c95281b35ca | /ha-business/src/main/java/jp/co/ha/business/db/crud/update/HealthInfoUpdateService.java | fc665017897ee3609d95ff1b45c4765603dd91f4 | [] | no_license | kohei-okazaki/work-3g | e6f68b85443002face236a8b5b917063a7d714c6 | 62e30889f462f3abad0b4f9df186fa70d18aa211 | refs/heads/master | 2023-07-24T12:34:05.355446 | 2023-01-08T12:33:35 | 2023-01-08T12:33:35 | 128,875,758 | 23 | 4 | null | 2023-07-11T00:42:52 | 2018-04-10T04:55:59 | Java | UTF-8 | Java | false | false | 354 | java | package jp.co.ha.business.db.crud.update;
import jp.co.ha.db.entity.HealthInfo;
/**
* 健康情報更新サービスインターフェース
*
* @version 1.0.0
*/
public interface HealthInfoUpdateService {
/**
* 健康情報を更新する
*
* @param entity
* 健康情報
*/
void update(HealthInfo entity);
}
| [
"kou1210hei@gmail.com"
] | kou1210hei@gmail.com |
d8b82c092238a2854bc9d0fea28ee76f3544641c | 6d4b19b800e6a77d36e5c0595fc97ec0a05cf499 | /src/main/generated/br/com/kproj/salesman/infrastructure/entity/proposal/requestapproval/QApproverEntity.java | 83632d5bf3450031d5741b2c218fcf4a1b58abf7 | [] | no_license | mmaico/salesman-crm | 5252d72bb90130c6d4eff5e11990c1fa16bcc842 | 16614306f486b3ecdb78e202277e14b55b116774 | refs/heads/master | 2023-03-12T11:01:51.567003 | 2023-02-25T12:53:29 | 2023-02-25T12:53:29 | 92,890,395 | 7 | 3 | null | null | null | null | UTF-8 | Java | false | false | 2,006 | java | package br.com.kproj.salesman.infrastructure.entity.proposal.requestapproval;
import static com.querydsl.core.types.PathMetadataFactory.*;
import com.querydsl.core.types.dsl.*;
import com.querydsl.core.types.PathMetadata;
import javax.annotation.Generated;
import com.querydsl.core.types.Path;
import com.querydsl.core.types.dsl.PathInits;
/**
* QApproverEntity is a Querydsl query type for ApproverEntity
*/
@Generated("com.querydsl.codegen.EntitySerializer")
public class QApproverEntity extends EntityPathBase<ApproverEntity> {
private static final long serialVersionUID = -1114989487L;
private static final PathInits INITS = PathInits.DIRECT2;
public static final QApproverEntity approverEntity = new QApproverEntity("approverEntity");
public final br.com.kproj.salesman.infrastructure.entity.QIdentifiable _super = new br.com.kproj.salesman.infrastructure.entity.QIdentifiable(this);
public final br.com.kproj.salesman.infrastructure.entity.QUserEntity approver;
public final BooleanPath available = createBoolean("available");
public final NumberPath<Long> id = createNumber("id", Long.class);
public QApproverEntity(String variable) {
this(ApproverEntity.class, forVariable(variable), INITS);
}
public QApproverEntity(Path<? extends ApproverEntity> path) {
this(path.getType(), path.getMetadata(), PathInits.getFor(path.getMetadata(), INITS));
}
public QApproverEntity(PathMetadata metadata) {
this(metadata, PathInits.getFor(metadata, INITS));
}
public QApproverEntity(PathMetadata metadata, PathInits inits) {
this(ApproverEntity.class, metadata, inits);
}
public QApproverEntity(Class<? extends ApproverEntity> type, PathMetadata metadata, PathInits inits) {
super(type, metadata, inits);
this.approver = inits.isInitialized("approver") ? new br.com.kproj.salesman.infrastructure.entity.QUserEntity(forProperty("approver"), inits.get("approver")) : null;
}
}
| [
"mmaico@gmail.com"
] | mmaico@gmail.com |
d290712a3af2b37fb8e0fa827738b14cbb8dbb5b | 5f82aae041ab05a5e6c3d9ddd8319506191ab055 | /Projects/Codec/1/src/test/org/apache/commons/codec/BinaryEncoderAbstractTest.java | 441a36f3165c8035bd310b7cd68bd914cc99b344 | [
"Apache-2.0",
"LicenseRef-scancode-other-permissive"
] | permissive | lingming/prapr_data | e9ddabdf971451d46f1ef2cdbee15ce342a6f9dc | be9ababc95df45fd66574c6af01122ed9df3db5d | refs/heads/master | 2023-08-14T20:36:23.459190 | 2021-10-17T13:49:39 | 2021-10-17T13:49:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,596 | java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.codec;
import junit.framework.TestCase;
/**
* @author Apache Software Foundation
* @version $Id$
*/
public abstract class BinaryEncoderAbstractTest extends TestCase {
public BinaryEncoderAbstractTest(String name) {
super(name);
}
protected abstract BinaryEncoder makeEncoder();
// ------------------------------------------------------------------------
public void testEncodeEmpty() throws Exception {
BinaryEncoder encoder = makeEncoder();
encoder.encode(new byte[0]);
}
public void testEncodeNull() throws Exception {
BinaryEncoder encoder = makeEncoder();
try {
encoder.encode(null);
} catch( EncoderException ee ) {
// An exception should be thrown
}
}
}
| [
"2890268106@qq.com"
] | 2890268106@qq.com |
08f24bb590700c24d20e81038a4d858f8d78cd22 | 002140e0ea60a9fcfac9fc07f60bb3e9dc49ab67 | /src/main/java/net/ibizsys/psrt/srv/wf/demodel/wfassistwork/dataset/WFAssistWorkDefaultDSModelBase.java | cb6f75f15d76f59bdaba97c620b1d330038f6130 | [] | no_license | devibizsys/saibz5_all | ecacc91122920b8133c2cff3c2779c0ee0381211 | 87c44490511253b5b34cd778623f9b6a705cb97c | refs/heads/master | 2021-01-01T16:15:17.146300 | 2017-07-20T07:52:21 | 2017-07-20T07:52:21 | 97,795,014 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 878 | java | /**
* iBizSys 5.0 机器人生产代码(不要直接修改当前代码)
* http://www.ibizsys.net
*/
package net.ibizsys.psrt.srv.wf.demodel.wfassistwork.dataset;
import net.ibizsys.paas.core.DEDataSet;
import net.ibizsys.paas.core.DEDataSetQuery;
import net.ibizsys.paas.sysmodel.CodeListGlobal;
import net.ibizsys.paas.codelist.ICodeList;
import net.ibizsys.paas.demodel.DEDataSetGroupParamModel;
@DEDataSet(id="80bc47afe28e23ebfb7aea12fdbc1acd",name="DEFAULT",queries= {
@DEDataSetQuery(queryid="5C697418-9E5C-478F-9D8C-22168E18A358",queryname="DEFAULT")
})
/**
* 实体数据集合[DEFAULT]模型基类
*/
public abstract class WFAssistWorkDefaultDSModelBase extends net.ibizsys.paas.demodel.DEDataSetModelBase {
public WFAssistWorkDefaultDSModelBase() {
super();
this.initAnnotation(WFAssistWorkDefaultDSModelBase.class);
}
} | [
"dev@ibizsys.net"
] | dev@ibizsys.net |
75bf8f798afdd06d82d1cac6151cfba048d8d41e | 071e56623a35137ab839df24e361962d5c808772 | /src/main/java/com/bowen/myblog/dao/TypeRepository.java | c4513b5bbf79e9b712b9b685e7fdae2203658c42 | [] | no_license | BoWen98/MyBlog | 69b57c4fef58f1eb969096d7c8e21fb80f3291b2 | 82a377f52a52a769a33951805eceab8626e7dc98 | refs/heads/master | 2022-07-07T16:01:56.371697 | 2019-07-30T03:10:19 | 2019-07-30T03:10:19 | 199,566,657 | 0 | 0 | null | 2022-06-21T01:34:04 | 2019-07-30T03:20:58 | JavaScript | UTF-8 | Java | false | false | 896 | java | package com.bowen.myblog.dao;
import com.bowen.myblog.po.Type;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface TypeRepository extends JpaRepository<Type, Long> {
@Query(value = "select * from t_type where name=?1 ", nativeQuery = true)
Type findByName(String name);
@Query(value = "select * from t_type", nativeQuery = true)
List<Type> findTop(Pageable pageable);
@Query(value = "select * from t_type t where t.id=?1 ", nativeQuery = true)
Type findOne(Long id);
@Modifying
@Query(value = " delete from t_type where id= ?1 ", nativeQuery = true)
void deleteOne(Long id);
}
| [
"376512291@qq.com"
] | 376512291@qq.com |
bf8a6550fc9337994a898fa1eaaf2b9de08977f0 | 0ad453602f728ad624ff46eacb87ccaeeac8c35a | /background/src/main/java/org/background/controller/market/MarketIntegralController.java | 1592129529aa9c7fe0c575248a5aaca8c5a7b448 | [] | no_license | yshin1992/p2p-spring | d0414e2d9e81b0455eef95697e2d1594903b9971 | 53e66a7f4cedc3c9a2f1b2c7294f5d116ffec52a | refs/heads/master | 2020-04-28T16:27:10.815457 | 2019-04-10T14:14:47 | 2019-04-10T14:14:47 | 175,411,550 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,487 | java | package org.background.controller.market;
import javax.servlet.http.HttpSession;
import org.annotation.FunctionEx;
import org.annotation.MenuEx;
import org.apache.commons.lang3.StringUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.business.market.IntegralSetService;
import org.business.util.CacheUtil;
import org.domain.system.User;
import org.enums.CategoryAttrEnum;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import org.vo.IntegralSetDto;
import org.vo.ResponseMsg;
/**
* 积分管理
* @author yanshuai
*
*/
@Controller
@RequestMapping("/market")
public class MarketIntegralController {
private static final Logger logger = LoggerFactory.getLogger(MarketIntegralController.class);
@Autowired
private IntegralSetService integralSetService;
@Autowired
private CacheUtil cacheUtil;
@RequiresPermissions("p2p.market.integral.setting")
@MenuEx(code = "p2p.market.integral.setting", name = "积分设置", parentCd = "p2p.market.integral", listSort = 40601)
@RequestMapping("/integralset")
public ModelAndView integralSet(IntegralSetDto dto) {
ModelAndView mv = new ModelAndView("market/integralset");
if (StringUtils.isEmpty(CacheUtil.getConfig(CategoryAttrEnum.INTEGRAL_ISUSEINTEGRAL.getAttrCd()))) {
throw new RuntimeException("未初始化积分设置相关配置。");
}
// 获取显示
dto.setIsUseIntegral(CacheUtil.getInt(CategoryAttrEnum.INTEGRAL_ISUSEINTEGRAL.getAttrCd(), 0));//是否启用积分
dto.setRegisterGiveIntegral(CacheUtil.getInt(
CategoryAttrEnum.INTEGRAL_REGISTERGIVEINTEGRAL.getAttrCd(), 0));//注册获取积分
dto.setLoginGiveIntegral(CacheUtil.getInt(CategoryAttrEnum.INTEGRAL_LOGINGIVEINTEGRAL.getAttrCd(), 0));//登录获取积分
dto.setRecommendFriendsGiveIntegral(CacheUtil.getInt(
CategoryAttrEnum.INTEGRAL_RECOMMENDFRIENDSGIVEINTEGRAL.getAttrCd(), 0));//推荐好友获得积分
dto.setFriendsInvestGiveIntegral(CacheUtil.getInt(
CategoryAttrEnum.INTEGRAL_FRIENDSINVESTGIVEINTEGRAL.getAttrCd(), 0));//好友投资 推荐人获取积分
dto.setInvestGiveIntegral(CacheUtil.getInt(CategoryAttrEnum.INTEGRAL_INVESTGIVEINTEGRAL.getAttrCd(), 0));//投资获得积分
dto.setMaxInvestGiveIntegral(CacheUtil.getInt(
CategoryAttrEnum.INTEGRAL_MAXINVESTGIVEINTEGRAL.getAttrCd(), 0));//用户投资大于过往单次投资金额时获得积分
mv.addObject("item", dto);
logger.debug("积分设置参数显示=====进入显示界面,参数值:{}", dto);
return mv;
}
@RequiresPermissions("p2p.market.integral.setting.save")
@FunctionEx(code = "p2p.market.integral.setting.save", name = "积分设置保存", parentCd = "p2p.market.integral.setting")
@RequestMapping(value="/integralsave")
@ResponseBody
public ResponseMsg<String> integralSave(IntegralSetDto dto,HttpSession session){
ResponseMsg<String> resMsg = new ResponseMsg<String>();
try{
User user = (User)session.getAttribute("curUser");
integralSetService.save(dto, user);
//保存成功后刷新cache
cacheUtil.refresh();
}catch(Exception e){
resMsg.failure(e.getMessage());
logger.error("保存积分设置出现异常,{}",e);
}
return resMsg;
}
}
| [
"yshin1992@163.com"
] | yshin1992@163.com |
18eecb1b1c7821d719ac6ec215db5a313cc758dc | 313cac74fe44fa4a08c50b2f251e4167f637c049 | /retail-fas-1.1.2/retail-fas/retail-fas-web/src/main/java/cn/wonhigh/retail/fas/web/controller/HqInvoiceConfirmController.java | d4b29800637122329325af3a4f659d848cf5f468 | [] | no_license | gavin2lee/spring-projects | a1d6d495f4a027b5896e39f0de2765aaadc8a9de | 6e4a035ae3c9045e880a98e373dd67c8c81bfd36 | refs/heads/master | 2020-04-17T04:52:41.492652 | 2016-09-29T16:07:40 | 2016-09-29T16:07:40 | 66,710,003 | 0 | 3 | null | null | null | null | UTF-8 | Java | false | false | 559 | java | /**
* title:HqInvoiceConfirmController.java
* package:cn.wonhigh.retail.fas.web.controller
* description:总部到票确认
* auther:user
* date:2015-4-10 上午9:38:03
*/
package cn.wonhigh.retail.fas.web.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import com.yougou.logistics.base.common.annotation.ModuleVerify;
@Controller
@RequestMapping("invoice_confirm/hq/")
@ModuleVerify("30180002")
public class HqInvoiceConfirmController extends InvoiceConfirmController {
}
| [
"gavin2lee@163.com"
] | gavin2lee@163.com |
84a78103bfd5347f8a778b39408bb74932aeb959 | eaa5b8e5594734370be5f6b21dae64601a537208 | /util/src/main/java/com/ning/billing/util/export/dao/CSVExportOutputStream.java | 333a90c989404246395c8235695bd8d615b24fb1 | [
"Apache-2.0"
] | permissive | kevinpostlewaite/killbill | 1224c1809e8a7b388872b3d950582ab5cf70925c | 19e9ee463fa88cc33c890b1068f6f1f89e5b879d | refs/heads/master | 2021-01-18T07:53:33.623954 | 2014-06-27T01:07:54 | 2014-06-27T01:07:54 | 9,797,705 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,090 | java | /*
* Copyright 2010-2012 Ning, Inc.
*
* Ning 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 com.ning.billing.util.export.dao;
import java.io.IOException;
import java.io.OutputStream;
import java.util.List;
import java.util.Map;
import com.ning.billing.util.api.ColumnInfo;
import com.ning.billing.util.api.DatabaseExportOutputStream;
import com.fasterxml.jackson.databind.ObjectWriter;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.dataformat.csv.CsvMapper;
import com.fasterxml.jackson.dataformat.csv.CsvSchema;
import com.fasterxml.jackson.dataformat.csv.CsvSchema.ColumnType;
public class CSVExportOutputStream extends OutputStream implements DatabaseExportOutputStream {
private static final CsvMapper mapper = new CsvMapper();
private final OutputStream delegate;
private String currentTableName;
private CsvSchema currentCSVSchema;
private ObjectWriter writer;
private boolean shouldWriteHeader = false;
public CSVExportOutputStream(final OutputStream delegate) {
this.delegate = delegate;
// To be mysqlimport friendly with datetime type
mapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
}
@Override
public void write(final int b) throws IOException {
delegate.write(b);
}
@Override
public String toString() {
return delegate.toString();
}
@Override
public void newTable(final String tableName, final List<ColumnInfo> columnsForTable) {
currentTableName = tableName;
final CsvSchema.Builder builder = CsvSchema.builder();
for (final ColumnInfo columnInfo : columnsForTable) {
builder.addColumn(columnInfo.getColumnName(), getColumnTypeFromSqlType(columnInfo.getDataType()));
}
currentCSVSchema = builder.build();
writer = mapper.writer(currentCSVSchema);
shouldWriteHeader = true;
}
@Override
public void write(final Map<String, Object> row) throws IOException {
final byte[] bytes;
if (shouldWriteHeader) {
// Write the header once (mapper.writer will clone the writer). Add a small marker in front of the header
// to easily split it
write(String.format("-- %s ", currentTableName).getBytes());
bytes = mapper.writer(currentCSVSchema.withHeader()).writeValueAsBytes(row);
shouldWriteHeader = false;
} else {
bytes = writer.writeValueAsBytes(row);
}
write(bytes);
}
private ColumnType getColumnTypeFromSqlType(final String dataType) {
if (dataType == null) {
return ColumnType.STRING;
} else if ("bigint".equals(dataType)) {
return ColumnType.NUMBER_OR_STRING;
} else if ("blob".equals(dataType)) {
return ColumnType.STRING;
} else if ("char".equals(dataType)) {
return ColumnType.STRING;
} else if ("date".equals(dataType)) {
return ColumnType.STRING;
} else if ("datetime".equals(dataType)) {
return ColumnType.STRING;
} else if ("decimal".equals(dataType)) {
return ColumnType.NUMBER_OR_STRING;
} else if ("enum".equals(dataType)) {
return ColumnType.STRING;
} else if ("int".equals(dataType)) {
return ColumnType.NUMBER_OR_STRING;
} else if ("longblob".equals(dataType)) {
return ColumnType.STRING;
} else if ("longtext".equals(dataType)) {
return ColumnType.STRING;
} else if ("mediumblob".equals(dataType)) {
return ColumnType.STRING;
} else if ("mediumtext".equals(dataType)) {
return ColumnType.STRING;
} else if ("set".equals(dataType)) {
return ColumnType.STRING;
} else if ("smallint".equals(dataType)) {
return ColumnType.NUMBER_OR_STRING;
} else if ("text".equals(dataType)) {
return ColumnType.STRING;
} else if ("time".equals(dataType)) {
return ColumnType.STRING;
} else if ("timestamp".equals(dataType)) {
return ColumnType.STRING;
} else if ("tinyint".equals(dataType)) {
return ColumnType.NUMBER_OR_STRING;
} else if ("varbinary".equals(dataType)) {
return ColumnType.STRING;
} else if ("varchar".equals(dataType)) {
return ColumnType.STRING;
} else {
return ColumnType.STRING;
}
}
}
| [
"pierre@ning.com"
] | pierre@ning.com |
525c9a701bc5aab7b84280a6f0164dd55d353f88 | 73873523e017b92f3cc273283bda4429ff03b1ba | /acdpsp/ch10isp/src/main/java/oop/acdpsp/ch10isp/multiple/EntitySavedEvent.java | ee8f91acacf5e32344c33f409e90ac5391a51ba1 | [] | no_license | dpopkov/learnoop | 57c2fa3083b17f99a3d9741839a91c0c94ab8eae | fac286d037cb10f57383c71cac85aa13f11d8c4b | refs/heads/master | 2022-02-16T18:36:06.291915 | 2021-03-25T16:39:22 | 2021-03-25T16:39:22 | 235,383,658 | 0 | 0 | null | 2022-01-21T23:37:10 | 2020-01-21T16:06:40 | Java | UTF-8 | Java | false | false | 226 | java | package oop.acdpsp.ch10isp.multiple;
public class EntitySavedEvent<E> extends Event<E> {
private E savedEntity;
public EntitySavedEvent(E entity) {
super("EntitySaved");
savedEntity = entity;
}
}
| [
"pkvdenis@gmail.com"
] | pkvdenis@gmail.com |
f21d346600bc53ba53ede7f04e8caa38590df931 | e6f1481b08c519feae212c1cf0103934bad413cb | /src/org/semanticweb/swse/ann/reason/master/RemoteAnnReasonerThread.java | 37d7a97d052eae120d430032161ddf2e5c8a254f | [] | no_license | aidhog/swse | 826aca195a5dda05fddac305e8a5b17df8a3b4ce | b4e9fed3f525973bc0ffb3104152a7f313726fb2 | refs/heads/master | 2023-01-19T01:40:56.061727 | 2020-11-21T20:01:10 | 2020-11-21T20:01:10 | 314,888,556 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 936 | java | package org.semanticweb.swse.ann.reason.master;
import java.rmi.RemoteException;
import org.semanticweb.saorr.ann.domains.RankAnnotation;
import org.semanticweb.saorr.ann.rules.AnnotationRule;
import org.semanticweb.saorr.rules.LinkedRuleIndex;
import org.semanticweb.swse.RMIThread.VoidRMIThread;
import org.semanticweb.swse.ann.reason.RMIAnnReasonerInterface;
/**
* Thread to run init method on a remote crawler
* @author aidhog
*
*/
public class RemoteAnnReasonerThread extends VoidRMIThread {
private RMIAnnReasonerInterface _stub;
private LinkedRuleIndex<AnnotationRule<RankAnnotation>> _tmplRules;
public RemoteAnnReasonerThread(RMIAnnReasonerInterface stub, int server, LinkedRuleIndex<AnnotationRule<RankAnnotation>> tmplRules){
super(server);
_stub = stub;
_tmplRules = tmplRules;
}
protected void runRemoteVoidMethod() throws RemoteException{
_stub.reason(_tmplRules);
}
}
| [
"aidhog@gmail.com"
] | aidhog@gmail.com |
6097fb8156fa232ff71a5b59fe4b0395f2eab48c | cbf50e7f359debbc39d963275faa08962f0319ac | /app/src/main/java/com/commit451/aavd/sample/AAVDPathFragment.java | f10971fd4f47c2dd61c72a5820d961b243acf1e8 | [
"Apache-2.0"
] | permissive | lizhengdao/AAVD | 603f08528f1085f2347b825dd20ce2c618890bfc | ebb35cc50769a9cc0bf91486ed5338b38d060349 | refs/heads/master | 2021-06-01T01:08:30.681813 | 2016-06-24T20:58:45 | 2016-06-24T20:58:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,848 | java | package com.commit451.aavd.sample;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.util.ArrayList;
import butterknife.Bind;
import butterknife.ButterKnife;
/**
* Shows all of the normal awesome animated vector drawables
*/
public class AAVDPathFragment extends Fragment {
@Bind(R.id.list)
RecyclerView mList;
VectorAdapter mAdapter;
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_aavd, container, false);
}
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
ButterKnife.bind(this, view);
mList.setLayoutManager(new LinearLayoutManager(getActivity()));
mAdapter = new VectorAdapter(getVectors());
mList.setAdapter(mAdapter);
}
private ArrayList<Vector> getVectors() {
ArrayList<Vector> vectors = new ArrayList<>();
vectors.add(new Vector(getActivity(), "Share", R.drawable.aavd_avd_share, R.drawable.aavd_avd_share));
vectors.add(new Vector(getActivity(), "Add to comments", R.drawable.aavd_avd_add_to_comment, R.drawable.aavd_avd_add_to_comment));
vectors.add(new Vector(getActivity(), "Search/Back", R.drawable.aavd_avd_back_to_search, R.drawable.aavd_avd_search_to_back));
return vectors;
}
@Override
public void onDestroyView() {
super.onDestroyView();
ButterKnife.unbind(this);
}
}
| [
"jawnnypoo@gmail.com"
] | jawnnypoo@gmail.com |
af28f64c29b5ca68937468df44a3897ac39fc53d | 41c458373895fff1717455cc5ef7ed10b1096bfc | /src/test/java/com/izdebski/liquibasedemo/LiquibaseDemoApplicationTests.java | 0207c9eb8dd8694b6db4a38dc09557b83b14ed68 | [] | no_license | iizdebski/liquibaseDemo | af28f1ef29b2f0c889aae858c93e3a6b9ed5aebe | 3d9a777b78e5465ff9127e61e887b383b63b2a6a | refs/heads/master | 2022-09-12T07:05:34.571106 | 2020-05-27T18:21:25 | 2020-05-27T18:21:25 | 267,395,095 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 234 | java | package com.izdebski.liquibasedemo;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class LiquibaseDemoApplicationTests {
@Test
void contextLoads() {
}
}
| [
"iizdepskyy112@gmail.com"
] | iizdepskyy112@gmail.com |
1f53ad4227d9933f1c8f414f645539c2d28f3811 | 828b5327357d0fb4cb8f3b4472f392f3b8b10328 | /flink-runtime/src/main/java/org/apache/flink/runtime/execution/CancelTaskException.java | 1a6ca7e5fb4851bfea227e4ef058d69df2cbb10a | [
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"ISC",
"MIT-0",
"GPL-2.0-only",
"BSD-2-Clause-Views",
"OFL-1.1",
"Apache-2.0",
"LicenseRef-scancode-jdom",
"GCC-exception-3.1",
"MPL-2.0",
"CC-PDDC",
"AGPL-3.0-only",
"MPL-2.0-no-copyleft-exception",
"LicenseRef... | permissive | Romance-Zhang/flink_tpc_ds_game | 7e82d801ebd268d2c41c8e207a994700ed7d28c7 | 8202f33bed962b35c81c641a05de548cfef6025f | refs/heads/master | 2022-11-06T13:24:44.451821 | 2019-09-27T09:22:29 | 2019-09-27T09:22:29 | 211,280,838 | 0 | 1 | Apache-2.0 | 2022-10-06T07:11:45 | 2019-09-27T09:11:11 | Java | UTF-8 | Java | false | false | 1,313 | 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.flink.runtime.execution;
/**
* Thrown to trigger a canceling of the executing task. Intended to cause a cancelled status, rather
* than a failed status.
*/
public class CancelTaskException extends RuntimeException {
private static final long serialVersionUID = 1L;
public CancelTaskException(Throwable cause) {
super(cause);
}
public CancelTaskException(String msg) {
super(msg);
}
public CancelTaskException() {
super();
}
}
| [
"1003761104@qq.com"
] | 1003761104@qq.com |
9bc65930341d5845e765fff3b9ca1d19548a1eac | a4178e5042f43f94344789794d1926c8bdba51c0 | /iwxxm2Converter/src/schemabindings/schemabindings21/net/opengis/gml/v_3_2_1/TemporalCSPropertyType.java | d252ce04ecbadccf3e104243951eea4a51e1b18c | [
"Apache-2.0"
] | permissive | moryakovdv/iwxxmConverter | c6fb73bc49765c4aeb7ee0153cca04e3e3846ab0 | 5c2b57e57c3038a9968b026c55e381eef0f34dad | refs/heads/master | 2023-07-20T06:58:00.317736 | 2023-07-05T10:10:10 | 2023-07-05T10:10:10 | 128,777,786 | 11 | 7 | Apache-2.0 | 2023-07-05T10:03:12 | 2018-04-09T13:38:59 | Java | UTF-8 | Java | false | false | 8,155 | java | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// 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: 2018.02.27 at 12:41:52 PM MSK
//
package schemabindings21.net.opengis.gml.v_3_2_1;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import schemabindings21.org.w3._1999.xlink.ActuateType;
import schemabindings21.org.w3._1999.xlink.ShowType;
import schemabindings21.org.w3._1999.xlink.TypeType;
/**
* <p>Java class for TemporalCSPropertyType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="TemporalCSPropertyType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence minOccurs="0">
* <element ref="{http://www.opengis.net/gml/3.2}TemporalCS"/>
* </sequence>
* <attGroup ref="{http://www.opengis.net/gml/3.2}AssociationAttributeGroup"/>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TemporalCSPropertyType", propOrder = {
"temporalCS"
})
public class TemporalCSPropertyType {
@XmlElement(name = "TemporalCS")
protected TemporalCSType temporalCS;
@XmlAttribute(name = "nilReason")
protected List<String> nilReason;
@XmlAttribute(name = "remoteSchema", namespace = "http://www.opengis.net/gml/3.2")
@XmlSchemaType(name = "anyURI")
protected String remoteSchema;
/**
*
*
*/
@XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink")
public final static TypeType TYPE = TypeType.SIMPLE;
@XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink")
protected String href;
@XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink")
protected String role;
@XmlAttribute(name = "arcrole", namespace = "http://www.w3.org/1999/xlink")
protected String arcrole;
@XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink")
protected String title;
@XmlAttribute(name = "show", namespace = "http://www.w3.org/1999/xlink")
protected ShowType show;
@XmlAttribute(name = "actuate", namespace = "http://www.w3.org/1999/xlink")
protected ActuateType actuate;
/**
* Gets the value of the temporalCS property.
*
* @return
* possible object is
* {@link TemporalCSType }
*
*/
public TemporalCSType getTemporalCS() {
return temporalCS;
}
/**
* Sets the value of the temporalCS property.
*
* @param value
* allowed object is
* {@link TemporalCSType }
*
*/
public void setTemporalCS(TemporalCSType value) {
this.temporalCS = value;
}
public boolean isSetTemporalCS() {
return (this.temporalCS!= null);
}
/**
* Gets the value of the nilReason property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the nilReason property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getNilReason().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List<String> getNilReason() {
if (nilReason == null) {
nilReason = new ArrayList<String>();
}
return this.nilReason;
}
public boolean isSetNilReason() {
return ((this.nilReason!= null)&&(!this.nilReason.isEmpty()));
}
public void unsetNilReason() {
this.nilReason = null;
}
/**
* Gets the value of the remoteSchema property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRemoteSchema() {
return remoteSchema;
}
/**
* Sets the value of the remoteSchema property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRemoteSchema(String value) {
this.remoteSchema = value;
}
public boolean isSetRemoteSchema() {
return (this.remoteSchema!= null);
}
/**
* Gets the value of the href property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getHref() {
return href;
}
/**
* Sets the value of the href property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setHref(String value) {
this.href = value;
}
public boolean isSetHref() {
return (this.href!= null);
}
/**
* Gets the value of the role property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRole() {
return role;
}
/**
* Sets the value of the role property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRole(String value) {
this.role = value;
}
public boolean isSetRole() {
return (this.role!= null);
}
/**
* Gets the value of the arcrole property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getArcrole() {
return arcrole;
}
/**
* Sets the value of the arcrole property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setArcrole(String value) {
this.arcrole = value;
}
public boolean isSetArcrole() {
return (this.arcrole!= null);
}
/**
* Gets the value of the title property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTitle() {
return title;
}
/**
* Sets the value of the title property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTitle(String value) {
this.title = value;
}
public boolean isSetTitle() {
return (this.title!= null);
}
/**
* Gets the value of the show property.
*
* @return
* possible object is
* {@link ShowType }
*
*/
public ShowType getShow() {
return show;
}
/**
* Sets the value of the show property.
*
* @param value
* allowed object is
* {@link ShowType }
*
*/
public void setShow(ShowType value) {
this.show = value;
}
public boolean isSetShow() {
return (this.show!= null);
}
/**
* Gets the value of the actuate property.
*
* @return
* possible object is
* {@link ActuateType }
*
*/
public ActuateType getActuate() {
return actuate;
}
/**
* Sets the value of the actuate property.
*
* @param value
* allowed object is
* {@link ActuateType }
*
*/
public void setActuate(ActuateType value) {
this.actuate = value;
}
public boolean isSetActuate() {
return (this.actuate!= null);
}
}
| [
"moryakovdv@gmail.com"
] | moryakovdv@gmail.com |
e0ca7387db892f6de64c9e647cbe308b0ec5ea3e | 2b2fcb1902206ad0f207305b9268838504c3749b | /WakfuClientSources/srcx/class_9608_dKW.java | ca0ee4edd8177fe03d204a24eb38cee893818cf2 | [] | no_license | shelsonjava/Synx | 4fbcee964631f747efc9296477dee5a22826791a | 0cb26d5473ba1f36a3ea1d7163a5b9e6ebcb0b1d | refs/heads/master | 2021-01-15T13:51:41.816571 | 2013-11-17T10:46:22 | 2013-11-17T10:46:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 147 | java | public abstract interface dKW extends dFD
{
public abstract void setModulationColor(bNa parambNa);
public abstract bNa getModulationColor();
} | [
"music_inme@hotmail.fr"
] | music_inme@hotmail.fr |
64937b5f872c534979866b228b55a3fe8a96b31f | 2c9e0541ed8a22bcdc81ae2f9610a118f62c4c4d | /harmony/tests/vts/vm/src/test/vm/jvmti/funcs/GetLoadedClasses/GetLoadedClasses0101/GetLoadedClasses0101.java | 7442d2666188ac50e56bb660a035d05a1673a195 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | JetBrains/jdk8u_tests | 774de7dffd513fd61458b4f7c26edd7924c7f1a5 | 263c74f1842954bae0b34ec3703ad35668b3ffa2 | refs/heads/master | 2023-08-07T17:57:58.511814 | 2017-03-20T08:13:25 | 2017-03-20T08:16:11 | 70,048,797 | 11 | 9 | null | null | null | null | UTF-8 | Java | false | false | 1,146 | java | /*
Copyright 2005-2006 The Apache Software Foundation or its licensors, as applicable
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.harmony.vts.test.vm.jvmti;
/**
* @author Valentin Al. Sitnick
* @version $Revision: 1.1 $
*
*/
public class GetLoadedClasses0101 {
static public void main(String args[]) {
special_method();
}
static public void special_method() {
/*
* Transfer control to native part.
*/
try {
throw new InterruptedException();
} catch (Throwable tex) {}
return;
}
}
| [
"vitaly.provodin@jetbrains.com"
] | vitaly.provodin@jetbrains.com |
7bf341f7814a0546a1ec9e08f0263a0a5f7f115c | 4224837a6ce398f7acc49dec33de053859923059 | /core/src/test/java/com/google/errorprone/bugpatterns/ThrowNullTest.java | 34b566a8574aa322e82c096678b992957b6a01c5 | [
"Apache-2.0"
] | permissive | ZakariaBenjebara/error-prone | 13e8c262b5cc52b2917a976e0ecf520a3194e353 | 4b8a217c6cfd8e35def43cbb888802a2f1550199 | refs/heads/master | 2021-08-27T22:25:13.285094 | 2017-12-10T14:43:59 | 2017-12-10T14:43:59 | 113,441,842 | 1 | 0 | null | 2017-12-07T11:20:54 | 2017-12-07T11:20:54 | null | UTF-8 | Java | false | false | 1,612 | java | /*
* Copyright 2017 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.errorprone.bugpatterns;
import com.google.errorprone.CompilationTestHelper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
/** {@link ThrowNull}Test */
@RunWith(JUnit4.class)
public class ThrowNullTest {
private final CompilationTestHelper testHelper =
CompilationTestHelper.newInstance(ThrowNull.class, getClass());
@Test
public void positive() {
testHelper
.addSourceLines(
"Test.java", //
"class Test {",
" void f() {",
" // BUG: Diagnostic contains: throw new NullPointerException();",
" throw null;",
" }",
"}")
.doTest();
}
@Test
public void negative() {
testHelper
.addSourceLines(
"Test.java", //
"class Test {",
" void f() {",
" throw new NullPointerException();",
" }",
"}")
.doTest();
}
}
| [
"cushon@google.com"
] | cushon@google.com |
5c82f44593e1d7beef274c1e3baee443d5a42f70 | 59eb3572ca4904b6914200aac9adddf58d218beb | /src/main/java/com/lecture/java8/CompletableFutureInAction4.java | 9608122614f7334af608e7e907e74deba14275a6 | [
"MIT"
] | permissive | kusebingtang/java8-in-action-manning | 1d1af8a42d12fd744d3444e0fb1087a942dbf349 | ce7de6da09a0490d018b80fdd1b776d77bcb645d | refs/heads/master | 2020-11-24T21:22:44.210143 | 2019-12-18T07:38:47 | 2019-12-18T07:38:47 | 228,346,720 | 0 | 0 | MIT | 2020-10-13T18:15:03 | 2019-12-16T09:11:08 | Java | UTF-8 | Java | false | false | 1,644 | java | package com.lecture.java8;
import java.util.concurrent.CompletableFuture;
/***************************************
* @author:Alex Wang
* @Date:2016/11/13 QQ:532500648
* QQ交流群:286081824
***************************************/
public class CompletableFutureInAction4 {
public static void main(String[] args) throws InterruptedException {
/*CompletableFuture.supplyAsync(() -> 1)
.thenApply(i -> Integer.sum(i, 10))
.whenComplete((v, t) -> System.out.println(v));*/
/* CompletableFuture.supplyAsync(() -> 1)
.handle((v, t) -> Integer.sum(v, 10))
.whenComplete((v, t) -> System.out.println(v))
.thenRun(System.out::println);*/
/*
CompletableFuture.supplyAsync(() -> 1)
.thenApply(i -> Integer.sum(i, 10))
.thenAccept(System.out::println);*/
/*
CompletableFuture.supplyAsync(() -> 1)
.thenCompose(i -> CompletableFuture.supplyAsync(() -> 10 * i))
.thenAccept(System.out::println);*/
/* CompletableFuture.supplyAsync(() -> 1)
.thenCombine(CompletableFuture.supplyAsync(() -> 2.0d), (r1, r2) -> r1 + r2)
.thenAccept(System.out::println);*/
CompletableFuture.supplyAsync(() -> 1)
.thenAcceptBoth(CompletableFuture.supplyAsync(() -> 2.0d), (r1, r2) -> {
System.out.println(r1);
System.out.println(r2);
System.out.println(r1 + r2);
});
Thread.sleep(1000L);
}
}
| [
"jb@98game.cn"
] | jb@98game.cn |
943b32edd58a174c427a2750d076dd4dffa68fbd | aee955616baf3d1a86c5632a87a8d7fd94a193e1 | /app/src/main/java/com/nullcognition/animationtransitionmaterial/customtransition/CustomTransition.java | a4463fa43404954d9b484f4a72ef6bbb2d5acfa5 | [] | no_license | ersin-ertan/AnimationTransitionMaterial | adce08c03c37823f0fa3c8720bb633e3cd6b06d7 | 4b3167664d0664e825f932b8edfce1659d59bdc3 | refs/heads/master | 2021-01-25T05:22:35.116415 | 2015-08-16T13:09:31 | 2015-08-16T13:09:31 | 40,331,736 | 2 | 3 | null | null | null | null | UTF-8 | Java | false | false | 2,046 | java | package com.nullcognition.animationtransitionmaterial.customtransition;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.transition.Scene;
import android.transition.Transition;
import android.transition.TransitionManager;
import android.util.Log;
import android.view.View;
import android.widget.FrameLayout;
import com.nullcognition.animationtransitionmaterial.R;
public class CustomTransition extends AppCompatActivity
implements View.OnClickListener{
@Override
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_custom_transition);
initViews(savedInstanceState);
}
private static final String STATE_CURRENT_SCENE = "current_scene";
private static final String TAG = "CustomTransitionFragment";
private Scene[] mScenes;
private int mCurrentScene;
private Transition mTransition;
public CustomTransition(){}
public void initViews(Bundle savedInstanceState){
FrameLayout container = (FrameLayout) findViewById(R.id.container);
findViewById(R.id.show_next_scene).setOnClickListener(this);
if(null != savedInstanceState){
mCurrentScene = savedInstanceState.getInt(STATE_CURRENT_SCENE);
}
mScenes = new Scene[]{
Scene.getSceneForLayout(container, R.layout.ct_scene01, this),
Scene.getSceneForLayout(container, R.layout.ct_scene02, this),
Scene.getSceneForLayout(container, R.layout.ct_scene03, this),
};
mTransition = new ChangeColor();
TransitionManager.go(mScenes[mCurrentScene % mScenes.length]);
}
@Override
public void onSaveInstanceState(Bundle outState){
super.onSaveInstanceState(outState);
outState.putInt(STATE_CURRENT_SCENE, mCurrentScene);
}
@Override
public void onClick(View v){
switch(v.getId()){
case R.id.show_next_scene:{
mCurrentScene = (mCurrentScene + 1) % mScenes.length;
Log.i(TAG, "Trans:scene:" + mCurrentScene);
TransitionManager.go(mScenes[mCurrentScene], mTransition);
break;
}
}
}
}
| [
"ersin_the_ertan@hotmail.com"
] | ersin_the_ertan@hotmail.com |
14a3083c12d6a3f7655cffa126c2a1b3445187a0 | b36a85dd502904fc014f318e91a7ff5d67537905 | /src/main/java/com/redxun/sys/core/dao/SysElemRightDao.java | 59517d4e88581cb3f95de7b4707c056bfc038f5e | [] | no_license | clickear/jsaas | 7c0819b4f21443c10845e549b521fa50c3a1c760 | ddffd4c42ee40c8a2728d46e4c7009a95f7f801f | refs/heads/master | 2020-03-16T09:00:40.649868 | 2018-04-18T12:13:50 | 2018-04-18T12:13:50 | 132,606,788 | 4 | 8 | null | 2018-05-08T12:37:25 | 2018-05-08T12:37:25 | null | UTF-8 | Java | false | false | 613 | java | package com.redxun.sys.core.dao;
import org.springframework.stereotype.Repository;
import com.redxun.core.dao.jpa.BaseJpaDao;
import com.redxun.sys.core.entity.SysElemRight;
/**
* <pre>
* 描述:SysElemRight数据访问类
* 构建组:miweb
* 作者:keith
* 邮箱: chshxuan@163.com
* 日期:2014-2-1-上午12:52:41
* 广州红迅软件有限公司(http://www.redxun.cn)
* </pre>
*/
@Repository
public class SysElemRightDao extends BaseJpaDao<SysElemRight> {
@SuppressWarnings("rawtypes")
@Override
protected Class getEntityClass() {
return SysElemRight.class;
}
}
| [
"yijiang331"
] | yijiang331 |
8a544c7e9aa53ff06def5b260eb4edca4c9213d4 | 2af8d29ad4347310247ab01231c6af1b993aa1dd | /xith3d/src/org/xith3d/loop/DefaultFPSLimiter.java | da11a434bd3648d3cc27bd20b5794e9608eb6cdb | [
"BSD-2-Clause"
] | permissive | pboechat/xithcluster | 332951bef924febd3bb6a5181344aa26f09aaa9a | 4fc7cd30525b7661eaba35fcb9928891d866f442 | refs/heads/master | 2021-04-05T23:21:20.824335 | 2016-07-24T18:33:19 | 2016-07-24T18:33:19 | 1,865,370 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,425 | java | /**
* Copyright (c) 2003-2010, Xith3D Project Group all rights reserved.
*
* Portions based on the Java3D interface, Copyright by Sun Microsystems.
* Many thanks to the developers of Java3D and Sun Microsystems for their
* innovation and design.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of the 'Xith3D Project Group' nor the names of its
* contributors may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) A
* RISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE
*/
package org.xith3d.loop;
import org.jagatoo.util.timing.TimerInterface;
/**
* The default implementation of {@link FPSLimiter}.
* It guarantees, that the CPU load is kept at a minimum,
* while animation might be juddering.
*
* @author Marvin Froehlich (aka Qudus)
*/
public class DefaultFPSLimiter implements FPSLimiter
{
private static final long ONE_MIO = 1000000L;
private static final long HALF_MIO = 500000L;
private long accumulator = 0L;
private static DefaultFPSLimiter instance = null;
public static final DefaultFPSLimiter getInstance()
{
if ( instance == null )
instance = new DefaultFPSLimiter();
return ( instance );
}
/**
* {@inheritDoc}
*/
public long limitFPS( long frameIdx, long frameTime, long minFrameTime, TimerInterface timer )
{
accumulator += minFrameTime - frameTime;
if ( accumulator <= 0L )
{
Thread.yield();
return ( 0L );
}
long waitMillis = accumulator / ONE_MIO;
accumulator -= waitMillis * ONE_MIO;
if ( accumulator >= HALF_MIO )
{
accumulator -= ONE_MIO;
waitMillis += 1L;
}
long t1 = timer.getNanoseconds();
try
{
Thread.sleep( waitMillis );
}
catch ( InterruptedException e )
{
//e.printStackTrace();
}
long sleptTime = timer.getNanoseconds() - t1;
accumulator -= sleptTime - waitMillis * ONE_MIO;
return ( sleptTime );
}
}
| [
"boechat@icg.tugraz.at"
] | boechat@icg.tugraz.at |
3e238e5344cb2af16ddcdc3812874ce04328c666 | 8f881eab68a7b1c635f4aa78b2151a877f38808e | /taotao-parent/taotao-sso/taotao-sso-interface/src/main/java/com/taotao/sso/service/IUserRegisterService.java | 56607734813c90ae6e7fa444590c26d02cfbff16 | [] | no_license | suifeng930/taotao | c7dad1539db8054d45082f5a1d384a16c439237e | 31afb3415d340563c0991eb59ed48bff1f22ea52 | refs/heads/master | 2020-04-17T02:34:32.573325 | 2019-01-17T01:58:04 | 2019-01-17T01:58:04 | 166,140,539 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 581 | java | package com.taotao.sso.service;
import com.taotao.common.utils.TaotaoResult;
import com.taotao.pojo.TbUser;
/**
* 用户注册的接口
* @author Andre930
* @create 2019-01-10 17:47
*/
public interface IUserRegisterService {
/**
* 根据参数和类型进行校验
* @param param 要校验的数据
* @param type 1 2 3 username phone email
* @return
*/
public TaotaoResult checkData(String param,Integer type);
/**
* 用户注册
* @param user
* @return
*/
public TaotaoResult register(TbUser user);
}
| [
"goodMorning_glb@atguigu.com"
] | goodMorning_glb@atguigu.com |
5a4cb3eec0e6fcaa83d1feb3c13a613f98f146a6 | 3729763ddb479b21c7f3a5f1e0a9954500850b52 | /targetSources/com/workday/sources/ExternalDisabilitySelfIdentificationRecordDataType.java | 04e6489b8b9ffe2c8ef7790a188e7f957bcba999 | [] | no_license | SANDEEPERUMALLA/workdayscanner | fe0816e9a95de73a598d6e29be5b20aeeca6cb60 | 8a4c3660cc588402aa49f948afe2168c4faa9df5 | refs/heads/master | 2020-03-18T22:30:21.218489 | 2018-05-29T20:24:36 | 2018-05-29T20:24:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,194 | java |
package com.workday.sources;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
/**
* Encapsulating element containing all External Disability Self-Identification Record data.
*
* <p>Java class for External_Disability_Self-Identification_Record_DataType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="External_Disability_Self-Identification_Record_DataType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="ID" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="Employee_Reference" type="{urn:com.workday/bsvc}EmployeeObjectType"/>
* <element name="Disability_Status_Reference" type="{urn:com.workday/bsvc}Self-Identification_of_Disability_StatusObjectType" minOccurs="0"/>
* <element name="Invitation_Date" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
* <element name="Response_Date" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "External_Disability_Self-Identification_Record_DataType", propOrder = {
"id",
"employeeReference",
"disabilityStatusReference",
"invitationDate",
"responseDate"
})
public class ExternalDisabilitySelfIdentificationRecordDataType {
@XmlElement(name = "ID")
protected String id;
@XmlElement(name = "Employee_Reference", required = true)
protected EmployeeObjectType employeeReference;
@XmlElement(name = "Disability_Status_Reference")
protected SelfIdentificationOfDisabilityStatusObjectType disabilityStatusReference;
@XmlElement(name = "Invitation_Date")
@XmlSchemaType(name = "date")
protected XMLGregorianCalendar invitationDate;
@XmlElement(name = "Response_Date")
@XmlSchemaType(name = "date")
protected XMLGregorianCalendar responseDate;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getID() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setID(String value) {
this.id = value;
}
/**
* Gets the value of the employeeReference property.
*
* @return
* possible object is
* {@link EmployeeObjectType }
*
*/
public EmployeeObjectType getEmployeeReference() {
return employeeReference;
}
/**
* Sets the value of the employeeReference property.
*
* @param value
* allowed object is
* {@link EmployeeObjectType }
*
*/
public void setEmployeeReference(EmployeeObjectType value) {
this.employeeReference = value;
}
/**
* Gets the value of the disabilityStatusReference property.
*
* @return
* possible object is
* {@link SelfIdentificationOfDisabilityStatusObjectType }
*
*/
public SelfIdentificationOfDisabilityStatusObjectType getDisabilityStatusReference() {
return disabilityStatusReference;
}
/**
* Sets the value of the disabilityStatusReference property.
*
* @param value
* allowed object is
* {@link SelfIdentificationOfDisabilityStatusObjectType }
*
*/
public void setDisabilityStatusReference(SelfIdentificationOfDisabilityStatusObjectType value) {
this.disabilityStatusReference = value;
}
/**
* Gets the value of the invitationDate property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getInvitationDate() {
return invitationDate;
}
/**
* Sets the value of the invitationDate property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setInvitationDate(XMLGregorianCalendar value) {
this.invitationDate = value;
}
/**
* Gets the value of the responseDate property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getResponseDate() {
return responseDate;
}
/**
* Sets the value of the responseDate property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setResponseDate(XMLGregorianCalendar value) {
this.responseDate = value;
}
}
| [
"p.sandeepkumargupta@gmail.com"
] | p.sandeepkumargupta@gmail.com |
c0af5f43acf23d2c38a1b81be9a35e44b2ceca17 | f5c3640aef09a51beffabe5caaeb82f43e414e6e | /src/main/java/com/bolink/vo/CarTypeInfoVo.java | e1432a51996e14319f23bd37f1baa68642d7fd2a | [] | no_license | nzsnmn/caranalysis | f202cad54ba7cefa599ad5944e3d4e8632d8a076 | b0f144cc842e3f22b53120a7da52465f8049ed5b | refs/heads/master | 2020-05-02T18:09:18.591076 | 2019-03-28T03:37:17 | 2019-03-28T03:37:17 | 178,120,180 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,974 | java | package com.bolink.vo;
public class CarTypeInfoVo {
private String orderId;
private Long parkId;
private String logId;
private String plateNumber;
private Double score;
private String name;
private String year;
private Integer serialNo;
private String description;
private String baikeUrl;
private String imgUrl;
public String getOrderId() {
return orderId;
}
public void setOrderId(String orderId) {
this.orderId = orderId;
}
public Long getParkId() {
return parkId;
}
public void setParkId(Long parkId) {
this.parkId = parkId;
}
public String getLogId() {
return logId;
}
public void setLogId(String logId) {
this.logId = logId;
}
public String getPlateNumber() {
return plateNumber;
}
public void setPlateNumber(String plateNumber) {
this.plateNumber = plateNumber;
}
public Double getScore() {
return score;
}
public void setScore(Double score) {
this.score = score;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getYear() {
return year;
}
public void setYear(String year) {
this.year = year;
}
public Integer getSerialNo() {
return serialNo;
}
public void setSerialNo(Integer serialNo) {
this.serialNo = serialNo;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getBaikeUrl() {
return baikeUrl;
}
public void setBaikeUrl(String baikeUrl) {
this.baikeUrl = baikeUrl;
}
public String getImgUrl() {
return imgUrl;
}
public void setImgUrl(String imgUrl) {
this.imgUrl = imgUrl;
}
}
| [
"test@runoob.com"
] | test@runoob.com |
b4f4ffbc232884f5b3b0d94eb926e5e720e46db1 | 5569e85b18cac6c27b6232920fd56018c5661007 | /src/main/java/com/openkm/dao/bean/TranslationId.java | e6d71ffea31c6f1f90b7ee3c9e2b1f1c61ee3c9d | [] | no_license | bennyjiao/iwisdom | bbe718e5e0c1d613ba06fe32545a6428ca1a582c | 92f1fdf0ca05b4e6b51eee5c14de0a33cf65eb17 | refs/heads/master | 2020-05-30T20:17:19.070540 | 2013-08-10T05:08:26 | 2013-08-10T05:08:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,349 | java | /**
* OpenKM, Open Document Management System (http://www.openkm.com)
* Copyright (c) 2006-2012 Paco Avila & Josep Llort
*
* No bytes were intentionally harmed during the development of this application.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
package com.openkm.dao.bean;
import java.io.Serializable;
/**
* Translation
*
* @author pavila
*/
public class TranslationId implements Serializable {
private static final long serialVersionUID = 1L;
private String module = "";
private String key = "";
private String language = "";
public String getModule() {
return module;
}
public void setModule(String module) {
this.module = module;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getLanguage() {
return language;
}
public void setLanguage(String language) {
this.language = language;
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null) return false;
if (!(o instanceof TranslationId)) return false;
final TranslationId transId = (TranslationId) o;
if (!module.equals(transId.getModule()))
return false;
if (!key.equals(transId.getKey()))
return false;
if (!language.equals(transId.getLanguage()))
return false;
return true;
}
public int hashCode() {
return (module + key + language).hashCode();
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
sb.append("module="); sb.append(module);
sb.append(", key="); sb.append(key);
sb.append(", language="); sb.append(language);
sb.append("}");
return sb.toString();
}
} | [
"bennyjj@gmail.com"
] | bennyjj@gmail.com |
92ceffb984803ed2cff4afe1bcff760c36c2c7e5 | f6267c20c0dec6c3f56bd8a5c3672cb00aa168d7 | /src/test/java/fr/brouillard/oss/jgitver/strategy/pattern/defaults/Scenario12WithDefaultsTest.java | 7718c7d23891e3f0a3aedf6d6ac430289e9a888a | [
"Apache-2.0"
] | permissive | cchantep/jgitver | 2651213f24a3a489236978e7c2260d4e3c2fe85e | 00ce14a1f031b02058038ea8345623b34d3a3abe | refs/heads/master | 2022-11-24T12:01:56.514969 | 2020-06-11T13:47:10 | 2020-06-11T13:47:10 | 282,049,599 | 0 | 0 | Apache-2.0 | 2020-07-23T20:31:46 | 2020-07-23T20:31:44 | null | UTF-8 | Java | false | false | 5,177 | java | /**
* Copyright (C) 2016 Matthieu Brouillard [http://oss.brouillard.fr/jgitver] (matthieu@brouillard.fr)
*
* 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 fr.brouillard.oss.jgitver.strategy.pattern.defaults;
import static fr.brouillard.oss.jgitver.impl.Lambdas.unchecked;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import java.io.File;
import java.io.IOException;
import org.eclipse.jgit.lib.ObjectId;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import fr.brouillard.oss.jgitver.Scenarios;
import fr.brouillard.oss.jgitver.Strategies;
import fr.brouillard.oss.jgitver.metadata.Metadatas;
import fr.brouillard.oss.jgitver.ScenarioTest;
public class Scenario12WithDefaultsTest extends ScenarioTest {
public Scenario12WithDefaultsTest() {
super(
Scenarios::s12_linear_with_RC_tags,
calculator -> calculator.setStrategy(Strategies.PATTERN));
}
@Test
public void head_is_on_master_by_default() throws Exception {
assertThat(repository.getBranch(), is("master"));
}
@Test
public void version_of_A_commit() {
ObjectId aCommit = scenario.getCommits().get("A");
// checkout the first commit in scenario
unchecked(() -> git.checkout().setName(aCommit.name()).call());
assertThat(versionCalculator.getVersion(), is("1.0.0-0"));
}
@Test
public void version_of_B_commit() {
ObjectId bCommit = scenario.getCommits().get("B");
// checkout the first commit in scenario
unchecked(() -> git.checkout().setName(bCommit.name()).call());
assertThat(versionCalculator.getVersion(), is("1.0.0-1"));
}
@Test
public void version_of_C_commit() {
ObjectId cCommit = scenario.getCommits().get("C");
// checkout the first commit in scenario
unchecked(() -> git.checkout().setName(cCommit.name()).call());
assertThat(versionCalculator.getVersion(), is("1.0.0"));
}
@Test @Disabled
public void version_of_D_commit() {
ObjectId dCommit = scenario.getCommits().get("D");
// checkout the first commit in scenario
unchecked(() -> git.checkout().setName(dCommit.name()).call());
assertThat(versionCalculator.getVersion(), is("1.0.0-1"));
}
@Test
public void version_of_E_commit() {
ObjectId eCommit = scenario.getCommits().get("E");
// checkout the first commit in scenario
unchecked(() -> git.checkout().setName(eCommit.name()).call());
assertThat(versionCalculator.getVersion(), is("1.0.0"));
}
@Test @Disabled
public void version_of_F_commit() {
ObjectId fCommit = scenario.getCommits().get("F");
// checkout the first commit in scenario
unchecked(() -> git.checkout().setName(fCommit.name()).call());
assertThat(versionCalculator.getVersion(), is("1.0.0-1"));
}
@Test
public void version_of_G_commit() {
ObjectId gCommit = scenario.getCommits().get("G");
// checkout the first commit in scenario
unchecked(() -> git.checkout().setName(gCommit.name()).call());
assertThat(versionCalculator.getVersion(), is("1.0.0"));
}
@Test
public void version_of_tag_1_0_0() {
unchecked(() -> git.checkout().setName("1.0.0").call());
assertThat(versionCalculator.getVersion(), is("1.0.0"));
}
@Test
public void version_of_master() {
// checkout the commit in scenario
unchecked(() -> git.checkout().setName("master").call());
assertThat(versionCalculator.getVersion(), is("1.0.0"));
assertThat(versionCalculator.meta(Metadatas.NEXT_MAJOR_VERSION).get(), is("2.0.0"));
assertThat(versionCalculator.meta(Metadatas.NEXT_MINOR_VERSION).get(), is("1.1.0"));
assertThat(versionCalculator.meta(Metadatas.NEXT_PATCH_VERSION).get(), is("1.0.1"));
}
@Test
public void version_of_master_in_dirty_state() throws IOException {
File dirtyFile = null;
try {
// checkout the commit in scenario
unchecked(() -> git.checkout().setName("master").call());
dirtyFile = scenario.makeDirty();
assertThat(versionCalculator.getVersion(), is("2.0.0-0"));
versionCalculator.setUseDirty(true);
assertThat(versionCalculator.getVersion(), is("2.0.0-0"));
} finally {
if (dirtyFile != null) {
dirtyFile.delete();
}
}
}
}
| [
"matthieu@brouillard.fr"
] | matthieu@brouillard.fr |
e5ac4bad1f895296508ba9fed11609857af7eb4c | 263b9556d76279459ab9942b0005a911e2b085c5 | /src/main/java/com/alipay/api/domain/MybankCreditProdarrangementContracttextQueryModel.java | ad28ca8efb08b788a2e2ada0bc9080d3e3431af8 | [
"Apache-2.0"
] | permissive | getsgock/alipay-sdk-java-all | 1c98ffe7cb5601c715b4f4b956e6c2b41a067647 | 1ee16a85df59c08fb9a9b06755743711d5cd9814 | refs/heads/master | 2020-03-30T05:42:59.554699 | 2018-09-19T06:17:22 | 2018-09-19T06:17:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,370 | java | package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 根据产品合约编号查询合同内容
*
* @author auto create
* @since 1.0, 2017-09-29 12:17:25
*/
public class MybankCreditProdarrangementContracttextQueryModel extends AlipayObject {
private static final long serialVersionUID = 1454664894416563572L;
/**
* 业务编号,例如合约编号,贷款申请编号等
*/
@ApiField("bsn_no")
private String bsnNo;
/**
* 合同类型,枚举如下:LOAN:贷款合同类型,PRE_LOAN_INVESTIGATION : 贷前调查征信授权合同, POST_LOAN_MANAGEMENT : 贷后管理征信授权合同;
*/
@ApiField("contract_type")
private String contractType;
/**
* 查询场景类型,例如根据业务单据号或者合约号来查询;
枚举如下:AR_NO:合约类型,BSN_NO:业务场景
*/
@ApiField("query_type")
private String queryType;
public String getBsnNo() {
return this.bsnNo;
}
public void setBsnNo(String bsnNo) {
this.bsnNo = bsnNo;
}
public String getContractType() {
return this.contractType;
}
public void setContractType(String contractType) {
this.contractType = contractType;
}
public String getQueryType() {
return this.queryType;
}
public void setQueryType(String queryType) {
this.queryType = queryType;
}
}
| [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
3e22e62d34790be55fd6d3dcd10de1b7756fc93c | 65e481ddefce71e5aa1aab65cb39db0d78f0292b | /src/com/allever/demo/otherTest/OtherTest.java | 2ce5a439421806e433d367b5a3ccd343b46e9051 | [
"Apache-2.0"
] | permissive | devallever/JavaDemo | 6926709e2ae1aebac828eabb4d4f548f48552e84 | 35930b4a0f46b4be5ff593d66a6d20ba0e255ba5 | refs/heads/master | 2022-04-01T02:25:41.751100 | 2020-01-13T01:29:43 | 2020-01-13T01:29:43 | 119,523,614 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 397 | java | package com.allever.demo.otherTest;
/**
* Created by allever on 18-7-25.
*/
public class OtherTest {
public static void main(String[] args){
int sum;
sum = addTo100(0, 1);
System.out.println(sum);
}
private static int addTo100(int preSum, int b){
if (b > 100){
return preSum;
}
return addTo100(preSum + b, ++b);
}
}
| [
"devallever@163.com"
] | devallever@163.com |
39c5bc2bb6464ce066829242b0859d1fca0cfd0a | d37af28d8bf95332ec0903b29be1ef8962c624c8 | /src/java/fr/paris/lutece/portal/service/servlet/LuteceServletConfig.java | ec0c445da6d910288c68d02484e621d7c7501a6f | [
"LicenseRef-scancode-other-permissive"
] | permissive | khalilo/lutece-core | df2ca89f45fb627f87724cb6ce18781018f7433f | 0787eeb49de256fafc7319c7763ea2f3972646f1 | refs/heads/master | 2020-06-14T23:58:47.435720 | 2016-11-10T13:41:53 | 2016-11-10T13:41:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,029 | java | /*
* Copyright (c) 2002-2016, Mairie de Paris
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright notice
* and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice
* and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* 3. Neither the name of 'Mairie de Paris' nor 'Lutece' 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 HOLDERS 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.
*
* License 1.0
*/
package fr.paris.lutece.portal.service.servlet;
import java.util.Collections;
import java.util.Enumeration;
import java.util.Map;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
/**
*
*/
public class LuteceServletConfig implements ServletConfig
{
private String _strName;
private ServletContext _context;
private Map<String, String> _mapInitParameters;
/**
* Constructor
*
* @param strName
* The name
* @param context
* The servlet context
* @param mapInitParameters
* Init parameters as a Map
*/
public LuteceServletConfig( String strName, ServletContext context, Map<String, String> mapInitParameters )
{
_strName = strName;
_context = context;
_mapInitParameters = mapInitParameters;
}
/**
* {@inheritDoc}
*/
public String getServletName( )
{
return _strName;
}
/**
* {@inheritDoc}
*/
public ServletContext getServletContext( )
{
return _context;
}
/**
* {@inheritDoc}
*/
public String getInitParameter( String strKey )
{
return (String) _mapInitParameters.get( strKey );
}
/**
* {@inheritDoc}
*
* @return
*/
public Enumeration<String> getInitParameterNames( )
{
return Collections.enumeration( _mapInitParameters.keySet( ) );
}
}
| [
"pierrelevy@users.noreply.github.com"
] | pierrelevy@users.noreply.github.com |
f452b8bb540916bc472c5aff66f1961915d88395 | c4038f47f578d56b5dc61425e06a8a2946ca19a8 | /oxJsfUtil/src/main/java/org/gluu/jsf2/service/FacesService.java | 585f9c2ed312936c48c7a938f6db5526fb18d93b | [
"MIT"
] | permissive | shoebkhan09/oxCore | 6be4add33face93aad8a6735156b4d1d485a38b0 | 50912a0c5b3b318d1ca4e4e412b8f7d020be8104 | refs/heads/master | 2020-03-19T11:00:12.789646 | 2018-10-23T16:10:08 | 2018-10-23T16:10:08 | 136,420,310 | 0 | 0 | null | 2018-06-07T04:06:43 | 2018-06-07T04:06:42 | null | UTF-8 | Java | false | false | 4,600 | java | package org.gluu.jsf2.service;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import javax.enterprise.context.RequestScoped;
import javax.faces.application.NavigationHandler;
import javax.faces.application.ViewHandler;
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
import javax.inject.Inject;
import javax.inject.Named;
import org.gluu.jsf2.exception.RedirectException;
/**
* @author Yuriy Movchan
* @version 03/17/2017
*/
@RequestScoped
@Named
public class FacesService {
@Inject
private FacesContext facesContext;
@Inject
private ExternalContext externalContext;
public void redirect(String viewId) {
redirect(viewId, null);
}
public void redirectWithExternal(String redirectTo, Map<String, Object> parameters) {
if (redirectTo.startsWith("https") || redirectTo.startsWith("http")) {
redirectToExternalURL(redirectTo);
} else {
redirect(redirectTo, parameters);
}
}
public void redirect(String viewId, Map<String, Object> parameters) {
if (viewId == null) {
throw new RedirectException("cannot redirect to a null viewId");
}
String url = facesContext.getApplication().getViewHandler().getRedirectURL(facesContext, viewId,
Collections.<String, List<String>>emptyMap(), false);
if (parameters != null) {
url = encodeParameters(url, parameters);
}
try {
externalContext.redirect(externalContext.encodeActionURL(url));
} catch (IOException ioe) {
throw new RedirectException(ioe);
} catch (IllegalStateException ise) {
throw new RedirectException(ise.getMessage());
}
}
public void redirectToExternalURL(String url) {
try {
externalContext.redirect(url);
} catch (IOException e) {
throw new RedirectException(e);
}
}
public String encodeParameters(String url, Map<String, Object> parameters) {
if (parameters.isEmpty()) {
return url;
}
StringBuilder builder = new StringBuilder(url);
for (Map.Entry<String, Object> param : parameters.entrySet()) {
String parameterName = param.getKey();
if (!containsParameter(url, parameterName)) {
Object parameterValue = param.getValue();
if (parameterValue instanceof Iterable) {
for (Object value : (Iterable<?>) parameterValue) {
builder.append('&').append(parameterName).append('=');
if (value != null) {
builder.append(encode(value));
}
}
} else {
builder.append('&').append(parameterName).append('=');
if (parameterValue != null) {
builder.append(encode(parameterValue));
}
}
}
}
if (url.indexOf('?') < 0) {
builder.setCharAt(url.length(), '?');
}
return builder.toString();
}
public void renderView(String viewId) {
final FacesContext fc = FacesContext.getCurrentInstance();
final ViewHandler viewHandler = fc.getApplication().getViewHandler();
fc.setViewRoot(viewHandler.createView(fc, viewId));
fc.getPartialViewContext().setRenderAll(true);
fc.renderResponse();
}
public void navigateToView(String fromAction, String outcome, Map<String, Object> parameters) {
final FacesContext fc = FacesContext.getCurrentInstance();
Map<String, Object> requestMap = fc.getExternalContext().getRequestMap();
NavigationHandler nav = fc.getApplication().getNavigationHandler();
if (parameters != null) {
requestMap.putAll(parameters);
}
nav.handleNavigation(fc, fromAction, outcome);
fc.renderResponse();
}
private boolean containsParameter(String url, String parameterName) {
return url.indexOf('?' + parameterName + '=') > 0 || url.indexOf('&' + parameterName + '=') > 0;
}
private String encode(Object value) {
try {
return URLEncoder.encode(String.valueOf(value), "UTF-8");
} catch (UnsupportedEncodingException iee) {
throw new RuntimeException(iee);
}
}
}
| [
"Yuriy.Movchan@gmail.com"
] | Yuriy.Movchan@gmail.com |
7f79772d0880ef0a21879dfaab5536e82d83c941 | 85bce0faa22e809e357c3db467c2dfc4d714961a | /base-tool/common/src/main/java/com/janloong/common/base/author/AuthorInfoProvider.java | f9d61fc08d6e956baa110dadaafae7f8f789a043 | [] | no_license | yuhuigit/SpringCloud | a7857e4af1b9c7a68e5de32f8558b94e2f6eaab9 | 191c9b089947cac20a1614a9c6c1836d16f8702a | refs/heads/master | 2020-06-23T07:07:28.691978 | 2019-07-23T10:25:18 | 2019-07-23T10:25:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 754 | java | /*::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
: Copyright (c) 2019 All Rights Reserved.
: ProjectName: SpringCloud
: FileName: AuthorInfoProvider.java
: Author: janloongdoo@gmail.com
: Date: 19-6-10 下午3:50
: LastModify: 19-5-15 下午5:58
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/
package com.janloong.common.base.author;
/**
* @author <a href ="mailto: janloongdoo@gmail.com">Janloong</a>
* @date 2019-05-15 17:54
*/
public class AuthorInfoProvider {
AuthorInfo authrorInfo;
public AuthorInfo getAuthrorInfo() {
return authrorInfo;
}
public void setAuthrorInfo(AuthorInfo authrorInfo) {
this.authrorInfo = authrorInfo;
}
}
| [
"807110586@qq.com"
] | 807110586@qq.com |
997d4615c54d89960f266e9c2ff724779be79ca6 | 7aa28b2191f1d05bf7353b7b83fcf2c09fc9050d | /src/main/java/org/springframework/data/mapping/IdentifierAccessor.java | b89b469048407f712302fd9445616068e95b8750 | [
"LicenseRef-scancode-generic-cla"
] | no_license | restmad/spring-data-commons | 38a84c852c0ffb59bcd15b5a268c6a9e4d9437c1 | 013bda0dd21be01af246c8a91c524f7a594f4bbb | refs/heads/master | 2021-01-01T16:42:37.138941 | 2017-07-20T09:05:06 | 2017-07-20T13:53:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,651 | java | /*
* Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.mapping;
/**
* Interface for a component allowing the access of identifier values.
*
* @author Oliver Gierke
* @author Mark Paluch
* @see TargetAwareIdentifierAccessor
*/
public interface IdentifierAccessor {
/**
* Returns the value of the identifier.
*
* @return the identifier of the underlying instance.
*/
Object getIdentifier();
/**
* Returns the identifier of the underlying instance. Implementations are strongly recommended to extends either
* {@link TargetAwareIdentifierAccessor} or override this method to add more context to the exception being thrown in
* case of the absence of an identifier.
*
* @return the identifier of the underlying instance
* @throws IllegalStateException in case no identifier could be retrieved.
* @since 2.0
*/
default Object getRequiredIdentifier() {
Object identifier = getIdentifier();
if (identifier != null) {
return identifier;
}
throw new IllegalStateException("Could not obtain identifier!");
}
}
| [
"ogierke@pivotal.io"
] | ogierke@pivotal.io |
61fe87cff279055d9bf725011fbd68a888fcdd56 | 13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3 | /crash-reproduction-new-fitness/results/MATH-95b-2-24-Single_Objective_GGA-WeightedSum-BasicBlockCoverage-opt/org/apache/commons/math/analysis/UnivariateRealSolverUtils_ESTest_scaffolding.java | 20bf9fd5e7a1c09284808bb8e97722d914c63c8f | [
"MIT",
"CC-BY-4.0"
] | permissive | STAMP-project/Botsing-basic-block-coverage-application | 6c1095c6be945adc0be2b63bbec44f0014972793 | 80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da | refs/heads/master | 2022-07-28T23:05:55.253779 | 2022-04-20T13:54:11 | 2022-04-20T13:54:11 | 285,771,370 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,785 | java | /**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Tue Oct 26 22:39:54 UTC 2021
*/
package org.apache.commons.math.analysis;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import static org.evosuite.shaded.org.mockito.Mockito.*;
@EvoSuiteClassExclude
public class UnivariateRealSolverUtils_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "org.apache.commons.math.analysis.UnivariateRealSolverUtils";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
try { initMocksToAvoidTimeoutsInTheTests(); } catch(ClassNotFoundException e) {}
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(UnivariateRealSolverUtils_ESTest_scaffolding.class.getClassLoader() ,
"org.apache.commons.math.FunctionEvaluationException",
"org.apache.commons.math.analysis.PolynomialSplineFunction",
"org.apache.commons.math.analysis.UnivariateRealSolver",
"org.apache.commons.math.analysis.Expm1Function",
"org.apache.commons.math.analysis.PolynomialFunctionLagrangeForm",
"org.apache.commons.math.analysis.UnivariateRealSolverUtils",
"org.apache.commons.math.MathException",
"org.apache.commons.math.analysis.MonitoredFunction",
"org.apache.commons.math.DuplicateSampleAbscissaException",
"org.apache.commons.math.analysis.UnivariateRealSolverImpl",
"org.apache.commons.math.analysis.PolynomialFunction",
"org.apache.commons.math.ConvergenceException",
"org.apache.commons.math.analysis.Expm1Function$1",
"org.apache.commons.math.analysis.BrentSolver",
"org.apache.commons.math.analysis.QuinticFunction",
"org.apache.commons.math.analysis.DifferentiableUnivariateRealFunction",
"org.apache.commons.math.analysis.UnivariateRealFunction",
"org.apache.commons.math.analysis.PolynomialFunctionNewtonForm",
"org.apache.commons.math.ArgumentOutsideDomainException",
"org.apache.commons.math.analysis.UnivariateRealSolverFactoryImpl",
"org.apache.commons.math.analysis.SinFunction",
"org.apache.commons.math.MaxIterationsExceededException",
"org.apache.commons.math.analysis.UnivariateRealSolverFactory"
);
}
private static void initMocksToAvoidTimeoutsInTheTests() throws ClassNotFoundException {
mock(Class.forName("org.apache.commons.math.analysis.UnivariateRealFunction", false, UnivariateRealSolverUtils_ESTest_scaffolding.class.getClassLoader()));
}
}
| [
"pderakhshanfar@serg2.ewi.tudelft.nl"
] | pderakhshanfar@serg2.ewi.tudelft.nl |
ad50fef8849f70ab05040a9529090ec5c5902fd8 | 06524e70cf835526f93794b2c4d11cf78bc5d7d2 | /LoveLife/app/src/main/java/com/lovelife/lovelife/LoveChat/MyService.java | 3fac13b013d561e22eaf419bb835f628191ed305 | [] | no_license | KirtiVarinda/Projects | 3dcb96e4e689ce61d515baa7eacc475094919063 | 4b01814ca04e5159cd82ea8a5136fb8ae9df122d | refs/heads/master | 2021-01-22T04:22:52.149201 | 2017-02-10T07:57:53 | 2017-02-10T07:57:53 | 81,534,494 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,145 | java | package com.lovelife.lovelife.LoveChat;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.os.IBinder;
import com.lovelife.lovelife.R;
import com.lovelife.lovelife.SharedData.MySharedData;
import org.jivesoftware.smack.chat.Chat;
import org.jivesoftware.smack.tcp.XMPPTCPConnection;
public class MyService extends Service {
public static XMPPTCPConnection connection;
private static final String DOMAIN = "112.196.23.228";
//private static final String DOMAIN = "xmpp.jp";
private static String USERNAME = "";
private static String PASSWORD = "";
public static ConnectivityManager cm;
public static MyXMPP xmpp;
public static boolean ServerchatCreated = false;
String text = "";
@Override
public IBinder onBind(final Intent intent) {
return null;
}
public Chat chat;
@Override
public void onCreate() {
super.onCreate();
MySharedData mySharedData = new MySharedData(this);
USERNAME = mySharedData.getGeneralSaveSession(MySharedData.openfireUser);
PASSWORD = USERNAME + this.getResources().getString(R.string.half_pass);
System.out.println("MyService USER " + USERNAME);
System.out.println("MyService PASS " + PASSWORD);
cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
xmpp = MyXMPP.getInstance(MyService.this, DOMAIN, USERNAME, PASSWORD);
xmpp.connect("onCreate");
}
@Override
public int onStartCommand(final Intent intent, final int flags,
final int startId) {
return START_STICKY;
}
@Override
public void onTaskRemoved(Intent rootIntent) {
}
/* @Override
public boolean onUnbind(final Intent intent) {
return super.onUnbind(intent);
}
@Override
public void onDestroy() {
super.onDestroy();
//LoveLifeApplication.connection.disconnect();
}
public static boolean isNetworkConnected() {
return cm.getActiveNetworkInfo() != null;
}*/
} | [
"keeruvarinda@gmail.com"
] | keeruvarinda@gmail.com |
de38415a9f387aee4d77dce0b932e70650a0463e | 269bce0bf0e23f5e5f7b5d31167c8a804b62ae52 | /acapulco.preparation/src/acapulco/preparation/converters/Utils.java | f7d1ddfe4faf8bd37709c956448fac26f863346d | [] | no_license | acapulco-spl/acapulco_replication_package | 5c4378b7662d6aa10f11f52a9fa8793107b34d6d | 7de4d9a96c11977f0cd73d761a4f8af1e0e064e0 | refs/heads/master | 2023-04-15T17:40:14.003166 | 2022-04-13T08:37:11 | 2022-04-13T08:37:11 | 306,005,002 | 3 | 1 | null | 2022-04-11T17:35:06 | 2020-10-21T11:39:59 | Java | UTF-8 | Java | false | false | 2,087 | java | package acapulco.preparation.converters;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import de.ovgu.featureide.fm.core.base.IFeatureModel;
import de.ovgu.featureide.fm.core.base.impl.DefaultFeatureModelFactory;
import de.ovgu.featureide.fm.core.base.impl.FeatureModel;
import de.ovgu.featureide.fm.core.io.sxfm.SXFMFormat;
public class Utils {
public static void writeStringToFile(File file, String text) {
try {
BufferedWriter output;
output = new BufferedWriter(new FileWriter(file, false));
output.append(text);
output.close();
} catch (Exception e) {
e.printStackTrace();
}
}
/**
* Load fm in fama
*
* @param file
*/
public static IFeatureModel loadSXFM(File file) {
SXFMFormat format = new SXFMFormat();
IFeatureModel featureModel = new FeatureModel(DefaultFeatureModelFactory.ID);
format.read(featureModel, getStringOfFile(file));
return featureModel;
}
/**
* Get string
*
* @param file
* @return
*/
public static String getStringOfFile(File file) {
StringBuilder string = new StringBuilder();
for (String line : getLinesOfFile(file)) {
string.append(line + "\n");
}
if (string.length() > 0) // If the file is empty the -1 causes an exception
string.setLength(string.length() - 1);
return string.toString();
}
/**
* Get lines of a file
*
* @param file
* @return list of strings
*/
public static List<String> getLinesOfFile(File file) {
List<String> lines = new ArrayList<String>();
try {
FileInputStream fstream = new FileInputStream(file);
DataInputStream in = new DataInputStream(fstream);
BufferedReader br = new BufferedReader(new InputStreamReader(in));
String strLine;
while ((strLine = br.readLine()) != null) {
lines.add(strLine);
}
br.close();
in.close();
} catch (Exception e) {
e.printStackTrace();
}
return lines;
}
}
| [
"daniel_str@gmx.de"
] | daniel_str@gmx.de |
b6d40f5cdb541ce228e0bcaca7b96a367132e977 | 508a21eaa138fc8251acd4ad2a837b76ae28a3de | /io-netty-chatroom/io-netty-chatroom-client/src/main/java/com/mj/netty/chatroom/client/scanner/Invoker.java | 93eaea1cdd1752fd924fc133cbfbc5e4c04c0ac6 | [] | no_license | fakaka/learn | cb13bbd76b515250dd1376ceb46e5d75c2b974f6 | 8b6d82373c797f0cb8d163876836b2ca36a3e8a5 | refs/heads/master | 2021-09-14T10:44:12.277144 | 2018-05-12T05:50:45 | 2018-05-12T05:50:45 | 105,365,369 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,207 | java | package com.mj.netty.chatroom.client.scanner;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
/**
* 命令执行器
*
* @author MJ
*
*/
public class Invoker {
/**
* 方法
*/
private Method method;
/**
* 目标对象
*/
private Object target;
public static Invoker valueOf(Method method, Object target) {
Invoker invoker = new Invoker();
invoker.setMethod(method);
invoker.setTarget(target);
return invoker;
}
/**
* 执行
*
* @param paramValues
* @return
* @throws InvocationTargetException
* @throws IllegalArgumentException
* @throws IllegalAccessException
*/
public Object invoke(Object... paramValues) {
try {
return method.invoke(target, paramValues);
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (IllegalArgumentException e) {
e.printStackTrace();
} catch (InvocationTargetException e) {
e.printStackTrace();
}
return null;
}
public Method getMethod() {
return method;
}
public void setMethod(Method method) {
this.method = method;
}
public Object getTarget() {
return target;
}
public void setTarget(Object target) {
this.target = target;
}
}
| [
"vsmj012@163.com"
] | vsmj012@163.com |
c448a7c8585ec4fc257bfb4d8d1bd2897ff88558 | 3f5d19ac4afb5ce1d38df0aa6638e18103f468e0 | /com.revolsys.open.core/src/main/java/com/revolsys/io/filter/PatternFilenameFilter.java | 735334103d693df4cc7533c198d2cb0725f2d041 | [
"Apache-2.0"
] | permissive | lequynhnhu/com.revolsys.open | e94a25a8a127f5315a10aad32da6776407857e60 | d660384b05a402fb4b62d30d1592563c74ae8df5 | refs/heads/master | 2020-12-25T03:39:55.125381 | 2015-02-21T01:18:19 | 2015-02-21T01:18:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,997 | java | /*
* Copyright 2004-2005 Revolution Systems Inc.
*
* 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.revolsys.io.filter;
import java.io.File;
import java.io.FileFilter;
import java.io.FilenameFilter;
import java.util.regex.Pattern;
/**
* The PatternFileNameFilter is a {@link FileFilter} that only returns files if they
* match the regular expression.
*
* @author Paul Austin
*/
public class PatternFilenameFilter implements FilenameFilter {
/** The regular expression pattern to match file names. */
private final Pattern pattern;
private boolean ignoreCase;
/**
* Construct a new PatternFileNameFilter.
*
* @param regex The regular expression.
*/
public PatternFilenameFilter(final String regex) {
this.pattern = Pattern.compile(regex);
}
public PatternFilenameFilter(String regex, final boolean ignoreCase) {
if (ignoreCase) {
regex = regex.toLowerCase();
}
this.pattern = Pattern.compile(regex);
this.ignoreCase = ignoreCase;
}
/**
* Check to see if the file should be included in the list of matched files
*
* @param directory The file directory.
* @param fileName The file name.
* @return True if the file matched, false otherwise.
*/
@Override
public boolean accept(final File directory, String fileName) {
if (this.ignoreCase) {
fileName = fileName.toLowerCase();
}
final boolean matches = this.pattern.matcher(fileName).matches();
return matches;
}
}
| [
"paul.austin@revolsys.com"
] | paul.austin@revolsys.com |
9cc303d03fe88f422be9ecab26ea0b941b506b63 | d71e879b3517cf4fccde29f7bf82cff69856cfcd | /ExtractedJars/RT_News_com.rt.mobile.english/javafiles/com/google/android/gms/internal/ads/zzatv.java | c06e5164e0edef85b3ac5411ba7ac674e37db0d1 | [
"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 | 7,407 | 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.google.android.gms.internal.ads;
import android.os.Parcel;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
// Referenced classes of package com.google.android.gms.internal.ads:
// zzatw, zzbfi, zzbfh, zzba
public final class zzatv extends AbstractSafeParcelable
{
zzatv(int i, byte abyte0[])
{
// 0 0:aload_0
// 1 1:invokespecial #39 <Method void AbstractSafeParcelable()>
versionCode = i;
// 2 4:aload_0
// 3 5:iload_1
// 4 6:putfield #41 <Field int versionCode>
zzdhe = null;
// 5 9:aload_0
// 6 10:aconst_null
// 7 11:putfield #43 <Field zzba zzdhe>
zzdhf = abyte0;
// 8 14:aload_0
// 9 15:aload_2
// 10 16:putfield #45 <Field byte[] zzdhf>
zzwf();
// 11 19:aload_0
// 12 20:invokespecial #48 <Method void zzwf()>
// 13 23:return
}
private final void zzwf()
{
if(zzdhe == null && zzdhf != null)
//* 0 0:aload_0
//* 1 1:getfield #43 <Field zzba zzdhe>
//* 2 4:ifnonnull 15
//* 3 7:aload_0
//* 4 8:getfield #45 <Field byte[] zzdhf>
//* 5 11:ifnull 15
return;
// 6 14:return
if(zzdhe != null && zzdhf == null)
//* 7 15:aload_0
//* 8 16:getfield #43 <Field zzba zzdhe>
//* 9 19:ifnull 30
//* 10 22:aload_0
//* 11 23:getfield #45 <Field byte[] zzdhf>
//* 12 26:ifnonnull 30
return;
// 13 29:return
if(zzdhe != null && zzdhf != null)
//* 14 30:aload_0
//* 15 31:getfield #43 <Field zzba zzdhe>
//* 16 34:ifnull 54
//* 17 37:aload_0
//* 18 38:getfield #45 <Field byte[] zzdhf>
//* 19 41:ifnull 54
throw new IllegalStateException("Invalid internal representation - full");
// 20 44:new #52 <Class IllegalStateException>
// 21 47:dup
// 22 48:ldc1 #54 <String "Invalid internal representation - full">
// 23 50:invokespecial #57 <Method void IllegalStateException(String)>
// 24 53:athrow
if(zzdhe == null && zzdhf == null)
//* 25 54:aload_0
//* 26 55:getfield #43 <Field zzba zzdhe>
//* 27 58:ifnonnull 78
//* 28 61:aload_0
//* 29 62:getfield #45 <Field byte[] zzdhf>
//* 30 65:ifnonnull 78
throw new IllegalStateException("Invalid internal representation - empty");
// 31 68:new #52 <Class IllegalStateException>
// 32 71:dup
// 33 72:ldc1 #59 <String "Invalid internal representation - empty">
// 34 74:invokespecial #57 <Method void IllegalStateException(String)>
// 35 77:athrow
else
throw new IllegalStateException("Impossible");
// 36 78:new #52 <Class IllegalStateException>
// 37 81:dup
// 38 82:ldc1 #61 <String "Impossible">
// 39 84:invokespecial #57 <Method void IllegalStateException(String)>
// 40 87:athrow
}
public final void writeToParcel(Parcel parcel, int i)
{
i = SafeParcelWriter.beginObjectHeader(parcel);
// 0 0:aload_1
// 1 1:invokestatic #69 <Method int SafeParcelWriter.beginObjectHeader(Parcel)>
// 2 4:istore_2
SafeParcelWriter.writeInt(parcel, 1, versionCode);
// 3 5:aload_1
// 4 6:iconst_1
// 5 7:aload_0
// 6 8:getfield #41 <Field int versionCode>
// 7 11:invokestatic #73 <Method void SafeParcelWriter.writeInt(Parcel, int, int)>
byte abyte0[];
if(zzdhf != null)
//* 8 14:aload_0
//* 9 15:getfield #45 <Field byte[] zzdhf>
//* 10 18:ifnull 29
abyte0 = zzdhf;
// 11 21:aload_0
// 12 22:getfield #45 <Field byte[] zzdhf>
// 13 25:astore_3
else
//* 14 26:goto 37
abyte0 = zzbfi.zzb(((zzbfi) (zzdhe)));
// 15 29:aload_0
// 16 30:getfield #43 <Field zzba zzdhe>
// 17 33:invokestatic #79 <Method byte[] zzbfi.zzb(zzbfi)>
// 18 36:astore_3
SafeParcelWriter.writeByteArray(parcel, 2, abyte0, false);
// 19 37:aload_1
// 20 38:iconst_2
// 21 39:aload_3
// 22 40:iconst_0
// 23 41:invokestatic #83 <Method void SafeParcelWriter.writeByteArray(Parcel, int, byte[], boolean)>
SafeParcelWriter.finishObjectHeader(parcel, i);
// 24 44:aload_1
// 25 45:iload_2
// 26 46:invokestatic #86 <Method void SafeParcelWriter.finishObjectHeader(Parcel, int)>
// 27 49:return
}
public final zzba zzwe()
{
boolean flag;
if(zzdhe != null)
//* 0 0:aload_0
//* 1 1:getfield #43 <Field zzba zzdhe>
//* 2 4:ifnull 12
flag = true;
// 3 7:iconst_1
// 4 8:istore_1
else
//* 5 9:goto 14
flag = false;
// 6 12:iconst_0
// 7 13:istore_1
if(!flag)
//* 8 14:iload_1
//* 9 15:ifne 59
try
{
byte abyte0[] = zzdhf;
// 10 18:aload_0
// 11 19:getfield #45 <Field byte[] zzdhf>
// 12 22:astore_2
zzdhe = (zzba)zzbfi.zza(((zzbfi) (new zzba())), abyte0);
// 13 23:aload_0
// 14 24:new #92 <Class zzba>
// 15 27:dup
// 16 28:invokespecial #93 <Method void zzba()>
// 17 31:aload_2
// 18 32:invokestatic #97 <Method zzbfi zzbfi.zza(zzbfi, byte[])>
// 19 35:checkcast #92 <Class zzba>
// 20 38:putfield #43 <Field zzba zzdhe>
zzdhf = null;
// 21 41:aload_0
// 22 42:aconst_null
// 23 43:putfield #45 <Field byte[] zzdhf>
}
//* 24 46:goto 59
catch(zzbfh zzbfh1)
//* 25 49:astore_2
{
throw new IllegalStateException(((Throwable) (zzbfh1)));
// 26 50:new #52 <Class IllegalStateException>
// 27 53:dup
// 28 54:aload_2
// 29 55:invokespecial #100 <Method void IllegalStateException(Throwable)>
// 30 58:athrow
}
zzwf();
// 31 59:aload_0
// 32 60:invokespecial #48 <Method void zzwf()>
return zzdhe;
// 33 63:aload_0
// 34 64:getfield #43 <Field zzba zzdhe>
// 35 67:areturn
}
public static final android.os.Parcelable.Creator CREATOR = new zzatw();
private final int versionCode;
private zzba zzdhe;
private byte zzdhf[];
static
{
// 0 0:new #29 <Class zzatw>
// 1 3:dup
// 2 4:invokespecial #32 <Method void zzatw()>
// 3 7:putstatic #34 <Field android.os.Parcelable$Creator CREATOR>
//* 4 10:return
}
}
| [
"silenta237@gmail.com"
] | silenta237@gmail.com |
44b37446abe01338caedcb4e8adcc3fb5ea835e6 | 6e4a7ff31552045b36d5e0aa77e9f9bf0d8372e1 | /shiro/mybatis_generator/src/com/sxt/mapper/PermissionMapper.java | 15d49047e740778de13640eb00a349e06dd23e0a | [] | no_license | leslieAIbin/Note | 0f8c5c538ec52d063e379cb85ce09e139aedb9f7 | 67f3f18ac801cf65e2c9d777550ea0d50883ff0c | refs/heads/master | 2023-03-22T14:41:25.919160 | 2021-03-11T11:27:46 | 2021-03-11T11:27:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 377 | java | package com.sxt.mapper;
import com.sxt.domain.Permission;
public interface PermissionMapper {
int deleteByPrimaryKey(Integer perid);
int insert(Permission record);
int insertSelective(Permission record);
Permission selectByPrimaryKey(Integer perid);
int updateByPrimaryKeySelective(Permission record);
int updateByPrimaryKey(Permission record);
} | [
"2436013662@qq.com"
] | 2436013662@qq.com |
cb518fc91940886e06503a23d37622040ad78220 | 76699b4cdaf7ee20bfa7bed558981a6af956209f | /server/src/com/rofine/platform/web/demo/PALController.java | 81f752bc51a82984ca3f9e990e99a931fca05c6c | [] | no_license | jdepend/ILF | dcc64d01f0d196074b8474ce765c919e292f4c3e | 20fe443863aadaf5bec958355ca101ef893496a2 | refs/heads/master | 2021-01-10T09:02:12.849266 | 2016-04-25T09:02:22 | 2016-04-25T09:02:22 | 51,197,659 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,062 | java | package com.rofine.platform.web.demo;
import com.qeweb.framework.pl.common.parse.HTMLParseEngine;
import com.rofine.platform.web.filter.CachePropertyConfigurer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet.http.HttpServletRequest;
/**
* Created by Eric on 2016/2/4.
*/
@Controller
@RequestMapping(value = "/htmlparse")
public class PALController {
@Autowired
private CachePropertyConfigurer cachePropertyConfigurer;
@RequestMapping("/getHtmlByPalTemplet/{key}")
public String getHtmlByPalTemplet(HttpServletRequest req,@PathVariable String key) throws Exception{
String webpath = req.getServletContext().getRealPath("");
HTMLParseEngine.getInstance().parseXmlPageToLocalFile(webpath,key);
return "redirect:/pal/"+key+".html";
}
}
| [
"wangdg@neusoft.com"
] | wangdg@neusoft.com |
41e967404ed7b31a84323d9c6a2f95ff88cddd94 | 12871c9669510be3e57e48c4883bb3ad24e0afd7 | /inflearn/src/main/java/problem_11_to_20/_15FindAllAnagrams_2.java | 683cf62dc909c4614b5ddc561197bf65dfe2c030 | [] | no_license | yjs2952/algorithmStudy | e609406622e00935b74d5ce780a78ba467e2d147 | 207f9d4d331f9254cb3fd43b1e8d91c4d822ef95 | refs/heads/master | 2021-11-17T15:57:09.922189 | 2021-11-06T03:20:47 | 2021-11-06T03:20:47 | 246,577,497 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,836 | java | package problem_11_to_20;
import java.util.ArrayList;
import java.util.List;
public class _15FindAllAnagrams_2 {
/**
* Given a string s and a non-empty string p, find all the start indices of p's anagrams in s.
* Strings consists of lowercase English letters only and the length of both strings s and p will not be larger than 20,100.
* The order of output does not matter.
* Example 1:
* Input:
* s: "cbaebabacd" p: "abc"
* Output:
* [0, 6]
* Explanation:
* The substring with start index = 0 is "cba", which is an anagram of "abc".
* The substring with start index = 6 is "bac", which is an anagram of "abc".
*/
public static void main(String[] args) {
String s = "cbaebabacd";
String p = "abc";
System.out.println(findAnagrams(s, p));
}
public static List<Integer> findAnagrams(String txt, String pat) {
List<Integer> result = new ArrayList<>();
if (txt == null || txt.length() <= 0 || pat == null || pat.length() <= 0 || txt.length() < pat.length())
return result;
int[] patArr = new int[26];
for (int i = 0; i < pat.length(); i++) {
patArr[pat.charAt(i) - 'a']++;
}
for (int i = 0; i < txt.length() - pat.length() + 1; i++) {
int[] txtArr = new int[26];
for (int j = 0; j < pat.length(); j++) {
txtArr[txt.charAt(i + j) - 'a']++;
}
if (check(patArr, txtArr)) {
result.add(i);
}
}
return result;
}
private static boolean check(int[] patArr, int[] txtArr) {
for (int i = 0; i < patArr.length; i++) {
if (patArr[i] != txtArr[i]) {
return false;
}
}
return true;
}
}
| [
"yjs2952@naver.com"
] | yjs2952@naver.com |
e72137d4ea8c6a3f991f621b2e123595cb0143b3 | 69ab601bc6bc3a9d5097ba944b8bf355b6af0cde | /src/main/java/de/uni_mannheim/informatik/dws/winter/processing/aggregators/DistributionAggregator.java | bb4efc43a47bb67522df38ecfa5d379afbb48771 | [
"Apache-2.0"
] | permissive | peiwangdb/winter | 091d0f8f30f0cd6b6d0483596dfdacc9c4f3dc06 | 29ae4e6a080bb4bb314e3ce1519f470ae275af73 | refs/heads/master | 2021-05-05T18:48:08.119282 | 2017-09-11T11:59:37 | 2017-09-11T11:59:37 | 103,756,248 | 1 | 0 | null | 2017-09-16T14:02:09 | 2017-09-16T14:02:08 | null | UTF-8 | Java | false | false | 1,954 | java | /*
* Copyright (c) 2017 Data and Web Science Group, University of Mannheim, Germany (http://dws.informatik.uni-mannheim.de/)
*
* 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 de.uni_mannheim.informatik.dws.winter.processing.aggregators;
import de.uni_mannheim.informatik.dws.winter.processing.DataAggregator;
import de.uni_mannheim.informatik.dws.winter.utils.Distribution;
/**
*
* {@link DataAggregator} that creates a frequency distribution of the values given by getInnerKey(record).
*
* @author Oliver Lehmberg (oli@dwslab.de)
*
*/
public abstract class DistributionAggregator<KeyType, RecordType, InnerKeyType> implements DataAggregator<KeyType, RecordType, Distribution<InnerKeyType>> {
/**
*
*/
private static final long serialVersionUID = 1L;
/* (non-Javadoc)
* @see de.uni_mannheim.informatik.wdi.processing.DataAggregator#initialise(java.lang.Object)
*/
@Override
public Distribution<InnerKeyType> initialise(KeyType keyValue) {
return new Distribution<>();
}
/* (non-Javadoc)
* @see de.uni_mannheim.informatik.wdi.processing.DataAggregator#aggregate(java.lang.Object, java.lang.Object)
*/
@Override
public Distribution<InnerKeyType> aggregate(Distribution<InnerKeyType> previousResult, RecordType record) {
previousResult.add(getInnerKey(record));
return previousResult;
}
public abstract InnerKeyType getInnerKey(RecordType record);
}
| [
"oliver.lehmberg@live.de"
] | oliver.lehmberg@live.de |
6bd9f4c83b050f8ca1d03e15d080895071f00a05 | 93cd49fa1d10317988c3dd98965286b0d9dbc7ca | /src/main/java/me/hub/CHub.java | 47189fd7a0624c342df8c4d2516cbfea1fbfa729 | [] | no_license | adriancfbr/CHProject | de6dc52bccb4b5a620888946a4d3c916ba7d9ca1 | b33ac681e3e349f759c3ef026672ec98ab922111 | refs/heads/master | 2021-01-09T20:41:35.984207 | 2016-07-28T18:02:56 | 2016-07-28T18:02:56 | 61,957,868 | 2 | 2 | null | null | null | null | UTF-8 | Java | false | false | 2,087 | java | /**
* Main.java, Class CH-Group 25 de jun de 2016 - 18:33:24 by αdяiαиcf #Reloads
*
*###################################################################################
*###################################################################################
*
*101101101101 101101101101 101101101101 10110110101 101101101101
*101 101 101 101 101 101
*101 101 101 101 101 101
*101101101101 101 101101101101 101101 101 101
*101 101 101 101 101 101101 101 101101
*101 101 101 101 101 101 101 101
*101 101 101101101101 101 101101101101 101 101101101
*
*###################################################################################
*###################################################################################
adriancf
@Projeto CHub --- proprietário CH-Group, projeto criado no dia 25 de jun de 2016 as 18:33:24
Todo o me.hub e Main.java, esta sobre os direitos do CH-Group e de suas dependências.
Portantando você, não pode retirar os direitos dos criadores desta class.
@Info
αdяiαиcf
* Dependências utilizadas por CH-Projets
* Uso de projetos JSon
* Uso de Maven
* Uso de CGlib
* Entre outras...
Ass: αdяiαиcf - Códigos livres
*/
package me.hub;
import org.bukkit.plugin.java.JavaPlugin;
/**
* Código por adriancf, Group CH-Project
*/
public class CHub {
public static void onLoad()
{
System.out.print("Feito");
}
public static void onEnable()
{
System.out.print("Feito");
Test test = new Test(Main.plugin);
}
public static void onDisable()
{
System.out.print("Feito");
}
}
| [
"adriancf@outlook.com.br"
] | adriancf@outlook.com.br |
c47148213441c7cb89140556510e039c267f1123 | 76e86a2e835a121eb0531ffb2795625b7b2e531c | /src/JAVA/JavaClass01/CompareDemo02.java | ed373e7efe36b824c513cf95ff66f3b685bca991 | [] | no_license | 0ranges/OldTest | 7b942d0d4bbc94e1604874ee66d09307000e5e79 | 6f8ffd62d8b2c3eea3c65ffb1a46d800cf9da8ad | refs/heads/master | 2020-04-20T10:06:49.344822 | 2019-06-26T07:55:33 | 2019-06-26T07:55:33 | 168,781,870 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 211 | java | package JAVA.JavaClass01;
/**
* Created by user on 2017/3/29.
*/
public class CompareDemo02 {
public static void main(String args[]){
Comparable com = 30;
System.out.println(com);
}
}
| [
"864160262@qq.com"
] | 864160262@qq.com |
3db2f5929aa58242f4ebd0a46554a80a6720a289 | 4ad17f7216a2838f6cfecf77e216a8a882ad7093 | /clbs/src/main/java/com/zw/api2/swaggerEntity/SwaggerUserUpdateBean.java | 83b1610ac4eadd65b5e92250cc8b668882a40e6e | [
"MIT"
] | permissive | djingwu/hybrid-development | b3c5eed36331fe1f404042b1e1900a3c6a6948e5 | 784c5227a73d1e6609b701a42ef4cdfd6400d2b7 | refs/heads/main | 2023-08-06T22:34:07.359495 | 2021-09-29T02:10:11 | 2021-09-29T02:10:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,437 | java | package com.zw.api2.swaggerEntity;
import io.swagger.annotations.ApiParam;
import lombok.Data;
/***
@Author zhengjc
@Date 2019/2/14 14:02
@Description 用户修改
@version 1.0
**/
@Data
public class SwaggerUserUpdateBean {
/**
* 用户id
*/
@ApiParam(value = "需修改的用户id", required = true)
private String userId;
/**
* 用户名
*/
@ApiParam(value = "用户名,长度4——25", required = true)
private String username;
@ApiParam(value = "密码(不修改则不填),长度6——25")
private String password;
@ApiParam(value = "所属企业id", required = true)
private String groupId;
@ApiParam(value = "所属企业名称", required = true)
private String groupName;
@ApiParam(value = "用户状态:启用(1)/停用(0)", defaultValue = "1")
private String state;
@ApiParam(value = "用于修改用户时标记是否修改过用户名提交")
private String sign;
@ApiParam(value = "下发口令")
private String sendDownCommand;
@ApiParam(value = "授权截止日期")
private String authorizationDate;
@ApiParam(value = "真实姓名,长度2——20")
private String fullName;
@ApiParam(value = "性别(1:男;2:女)")
private String gender;
@ApiParam(value = "电话号码")
private String mobile;
@ApiParam(value = "性别(1:男;2:女)")
private String mail;
}
| [
"wuxuetao@zwlbs.com"
] | wuxuetao@zwlbs.com |
7680921ff0f17b0d248adca799d571c5a4c54341 | a7f2bc2900c5a9842348a0b9aa6b099d93a888e8 | /sample/source/blah/tests/ConverterException.java | d390f525a33fbf2c736f7fd5366e7664563b4980 | [
"Apache-2.0"
] | permissive | Skullabs/tRip | 452adb1a4f8001123e168e718f5aa0e5c92e72c2 | 0dc4407e69201ead84bd6886c037b536aca77796 | refs/heads/master | 2023-03-16T05:16:05.194912 | 2016-08-17T20:55:01 | 2016-08-17T20:55:01 | 19,279,270 | 1 | 1 | null | 2015-08-08T23:48:27 | 2014-04-29T14:25:50 | Java | UTF-8 | Java | false | false | 215 | java | package blah.tests;
public class ConverterException extends Exception {
private static final long serialVersionUID = -5789772329546754854L;
public ConverterException( Throwable cause ) {
super( cause );
}
}
| [
"miere00@gmail.com"
] | miere00@gmail.com |
2fc233513e9b00ec2b2515d8156602c189fa7d2a | f136f0d773d3ad0f29bb0daa02d36fb0747351c9 | /13 - Facade/src/AccountNumberCheck.java | 6d424ee957a25608378b0d08f1f40da01cb858b2 | [] | no_license | borjur/Design_Patterns | 0a8291a127cb60b0fe0124279bb7387ee8c08d3a | 2f9644faee882c895322695860243c90ec091b95 | refs/heads/master | 2020-04-20T01:43:30.897162 | 2014-01-11T18:05:04 | 2014-01-11T18:05:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 309 | java |
public class AccountNumberCheck{
private int accountNumber = 12345678;
public int getAccountNumber() { return accountNumber; }
public boolean accountActive(int acctNumToCheck){
if(acctNumToCheck == getAccountNumber()) {
return true;
} else {
return false;
}
}
}
| [
"borisjurosevic001@gmail.com"
] | borisjurosevic001@gmail.com |
aa5ec47de65821c1ec967ebcbfd9f5e1deb9cbb4 | 0e6f5b592caedbfb1fd61e6414661f3921a93ee3 | /src/main/java/com/bdi/sp/vo/Exam.java | 960661ea9a323e960856e6418ec26cc7d5431de6 | [] | no_license | kuwonpark/exam_sp | faec0261ef01fd6caf199d657637783a96d284d5 | d452e0b98653b8f0436e09b0573437420856a1b5 | refs/heads/master | 2020-04-04T10:18:43.967036 | 2018-11-02T10:29:33 | 2018-11-02T10:29:33 | 155,850,274 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 196 | java | package com.bdi.sp.vo;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
@Data
public class Exam {
public int exnum;
public String exname;
public int exage;
}
| [
"KOITT@KOITT-PC"
] | KOITT@KOITT-PC |
50097ca2e52c72724666877cff2933e4d38f8b54 | 92c2f7a74b62a1d70de0a74c1bd2b5e38a7cdcb1 | /codda2/project/sample_base/client_build/app_build/src/main/java/kr/pe/codda/impl/message/DocumentViewReq/DocumentViewReqServerCodec.java | a9c2f88a17191015d88a2c215baf7b6d7922b55a | [
"Apache-2.0"
] | permissive | madang01/gitcodda | 3ee7a0ecae9f20f5140cfc89eef7e7cdf48f40a7 | ffb65b0cf1e7c85fed5a2178bbb392710f6e04ce | refs/heads/master | 2022-12-02T01:18:26.099015 | 2022-11-30T13:01:59 | 2022-11-30T13:01:59 | 218,249,948 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,711 | 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 kr.pe.codda.impl.message.DocumentViewReq;
import kr.pe.codda.common.exception.DynamicClassCallException;
import kr.pe.codda.common.message.codec.AbstractMessageDecoder;
import kr.pe.codda.common.message.codec.AbstractMessageEncoder;
import kr.pe.codda.common.protocol.MessageCodecIF;
/**
* DocumentViewReq server codec
* @author Won Jonghoon
*
*/
public final class DocumentViewReqServerCodec implements MessageCodecIF {
private AbstractMessageDecoder messageDecoder = new DocumentViewReqDecoder();
@Override
public AbstractMessageDecoder getMessageDecoder() throws DynamicClassCallException {
return messageDecoder;
}
@Override
public AbstractMessageEncoder getMessageEncoder() throws DynamicClassCallException {
throw new DynamicClassCallException("the server don't need a message encoder because it is a message[DocumentViewReq] that is not sent from server to client");
}
} | [
"k9200544@hanmail.net"
] | k9200544@hanmail.net |
200bcd4ff46cb9b0a993f20fe5f0d3b8f705a454 | 9cfa20f826fc1e0042ebd4f11563f7abf5e3ec4d | /vcloud/core/src/main/java/org/jclouds/vcloud/VCloudPropertiesBuilder.java | 7190900356e9737e27ba3eee37d1ebeeeb83baae | [] | no_license | rimuhosting/jclouds | e56e9c7dd83c1c2bd41d78f47faede73e3033823 | f488c9f8c3072599fe4c6f015ea724d663dc5998 | refs/heads/master | 2022-07-30T11:47:18.202365 | 2009-11-25T00:55:02 | 2009-11-25T00:55:02 | 376,723 | 0 | 0 | null | 2022-07-06T19:59:46 | 2009-11-18T02:38:34 | Java | UTF-8 | Java | false | false | 2,971 | java | /**
*
* Copyright (C) 2009 Cloud Conscious, LLC. <info@cloudconscious.com>
*
* ====================================================================
* 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.jclouds.vcloud;
import static com.google.common.base.Preconditions.checkNotNull;
import static org.jclouds.vcloud.reference.VCloudConstants.PROPERTY_VCLOUD_ENDPOINT;
import static org.jclouds.vcloud.reference.VCloudConstants.PROPERTY_VCLOUD_KEY;
import static org.jclouds.vcloud.reference.VCloudConstants.PROPERTY_VCLOUD_SESSIONINTERVAL;
import static org.jclouds.vcloud.reference.VCloudConstants.PROPERTY_VCLOUD_USER;
import static org.jclouds.vcloud.reference.VCloudConstants.PROPERTY_VCLOUD_VERSION;
import java.net.URI;
import java.util.Properties;
import org.jclouds.http.HttpPropertiesBuilder;
/**
* Builds properties used in VCloud Clients
*
* @author Adrian Cole
*/
public class VCloudPropertiesBuilder extends HttpPropertiesBuilder {
@Override
protected Properties defaultProperties() {
Properties properties = super.defaultProperties();
properties.setProperty(PROPERTY_VCLOUD_VERSION, "0.8");
properties.setProperty(PROPERTY_VCLOUD_SESSIONINTERVAL, 9 * 60 + "");
return properties;
}
public VCloudPropertiesBuilder(Properties properties) {
super(properties);
}
public VCloudPropertiesBuilder(URI endpoint, String id, String secret) {
super();
withCredentials(id, secret);
withEndpoint(endpoint);
}
public VCloudPropertiesBuilder withTokenExpiration(long seconds) {
properties.setProperty(PROPERTY_VCLOUD_SESSIONINTERVAL, seconds + "");
return this;
}
public VCloudPropertiesBuilder withCredentials(String id, String secret) {
properties.setProperty(PROPERTY_VCLOUD_USER, checkNotNull(id, "user"));
properties.setProperty(PROPERTY_VCLOUD_KEY, checkNotNull(secret, "key"));
return this;
}
public VCloudPropertiesBuilder withEndpoint(URI endpoint) {
properties.setProperty(PROPERTY_VCLOUD_ENDPOINT, checkNotNull(endpoint, "endpoint")
.toString());
return this;
}
}
| [
"adrian.f.cole@3d8758e0-26b5-11de-8745-db77d3ebf521"
] | adrian.f.cole@3d8758e0-26b5-11de-8745-db77d3ebf521 |
c1db56359681dd495dec769ff7c6c9035990193c | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/27/27_6652a5b9ba2c46aa8d71690a363fab060369cbb2/SpreadsheetExport/27_6652a5b9ba2c46aa8d71690a363fab060369cbb2_SpreadsheetExport_s.java | db832885a0d7f8c85708d8abf17e69ebc06ecd0f | [] | 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 | 5,392 | java | package business.export;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import org.odftoolkit.odfdom.type.Color;
import org.odftoolkit.simple.SpreadsheetDocument;
import org.odftoolkit.simple.style.Border;
import org.odftoolkit.simple.style.StyleTypeDefinitions.CellBordersType;
import org.odftoolkit.simple.style.StyleTypeDefinitions.HorizontalAlignmentType;
import org.odftoolkit.simple.style.StyleTypeDefinitions.SupportedLinearMeasure;
import org.odftoolkit.simple.style.StyleTypeDefinitions.VerticalAlignmentType;
import org.odftoolkit.simple.table.Cell;
import org.odftoolkit.simple.table.Column;
import org.odftoolkit.simple.table.Row;
import org.odftoolkit.simple.table.Table;
import persistence.dto.DTO;
import persistence.dto.Documento;
import business.EJB.util.EJBUtility;
public class SpreadsheetExport {
private static String tmpPath;
private static void getPath(){
tmpPath = "/tmp"; // Jboss
}
private static double getStringWidth(String s){
/*
double width;
FontMetrics metrics = new FontMetricsExtension(new Font("Arial",Font.PLAIN,10));
width = metrics.stringWidth(s);
return (double) (0.264583 * width);
*/
return s.length()*2.5D;
}
public static String generateSpreadsheet(List<DTO> resultSet) throws Exception{
SpreadsheetDocument outerDoc = SpreadsheetDocument.newSpreadsheetDocument();
String creationDate = new SimpleDateFormat("dd-MM-YYYY").format(new Date());
Documento docDTO = null;
Table tbl = outerDoc.getSheetByIndex(0);
Row row = tbl.appendRow();
Column column = tbl.appendColumn();
Cell cel = row.getCellByIndex(0);
Color grey = new Color("#DDDDDD");
Border border = new Border(new Color("#000000"), 0.001, SupportedLinearMeasure.IN);
int coluna;
getPath();
// Primeira linha
coluna = 0;
row = tbl.getRowByIndex(0);
String index[] = {"Código da Caixa/Códice",
"Título da Caixa/Códice",
"Código do documento",
"Título do documento",
"Tipo de Documento",
"Autor",
"Ocupação do autor",
"Destinatário",
"Ocupação do destinatário",
"Local",
"Data",
"Palavra Chaves",
"URL da imagem",
"Resumo"};
for(int i = 0; i < index.length; i++){
column = tbl.getColumnByIndex(coluna);
column.setWidth(getStringWidth(index[i]));
cel = row.getCellByIndex(coluna++);
cel.setCellBackgroundColor(grey);
cel.setBorders(CellBordersType.ALL_FOUR, border);
cel.setHorizontalAlignment(HorizontalAlignmentType.CENTER);
cel.setVerticalAlignment(VerticalAlignmentType.MIDDLE);
cel.setDisplayText(index[i]);
}
// Segunda em diante
for(int linha = 0; linha < resultSet.size(); linha++){
coluna = 0;
docDTO = (Documento) resultSet.get(linha);
row = tbl.getRowByIndex(linha+1);
String cellContent[] = {docDTO.getCodiceCaixa().getCod().replace("-", " - "),
docDTO.getCodiceCaixa().getTitulo(),
docDTO.getCod().replace("-", " - "),
docDTO.getTitulo(),
docDTO.getTipoDocumento().getNome(),
docDTO.getAutor().getNome(),
docDTO.getAutor().getOcupacao(),
docDTO.getDestinatario().getNome(),
docDTO.getDestinatario().getOcupacao(),
docDTO.getLocal(),
docDTO.getData().getDay() + "-" + docDTO.getData().getMonth() + "-" + docDTO.getData().getYear(),
(docDTO.getPalavraChave1() != null ? docDTO.getPalavraChave1().getPalavra() : " ") +
(docDTO.getPalavraChave2() != null ? " - " + docDTO.getPalavraChave2().getPalavra() : " ") +
(docDTO.getPalavraChave3() != null ? " - " + docDTO.getPalavraChave3().getPalavra() : " "),
docDTO.getUrl(),
docDTO.getResumo()};
for(int i = 0; i < cellContent.length; i++){
column = tbl.getColumnByIndex(coluna);
if(getStringWidth(cellContent[i]) > column.getWidth()) column.setWidth(getStringWidth(cellContent[i]));
cel = row.getCellByIndex(coluna++);
if(linha%2 == 1) cel.setCellBackgroundColor(grey);
cel.setBorders(CellBordersType.ALL_FOUR, border);
cel.setHorizontalAlignment(HorizontalAlignmentType.CENTER);
cel.setVerticalAlignment(VerticalAlignmentType.MIDDLE);
cel.setDisplayText(cellContent[i]);
}
}
String filePath = tmpPath + "/rlt_" + EJBUtility.genRandomString(8) + "_" + creationDate + ".ods";
// System.out.println(filePath);
outerDoc.save(filePath);
outerDoc.close();
return filePath;
}
/*public static void main(String[] args) throws Exception {
getPath();
System.out.println(tmpPath);
List<DTO> lista = new ArrayList<DTO>();
// DocumentEJB busca = new DocumentEJB();
// lista = busca.findByKeyWord("gato");
lista.add(new Documento("123","teste","local", "http://google.com.br", "resumo",
new CodiceCaixa("123","testeCodiceCaixa",1500,1540),
new TipoDocumento("tipoDocumento","Descrição"),
new Autor("abcaheo aoehaeofgh aeohaeo foehrfaefh aehjioahrf","ocupação1"),
new Autor("abcaheo","ocupação2"),
new PalavraChave("a",new TemaPalavraChave("tema")),
new PalavraChave("a",new TemaPalavraChave("tema")),
new PalavraChave("a",new TemaPalavraChave("tema")),
new UserAccount("nome", new Profile("profile"), "a@b.com", "abc"),
new Date()));
SpreadsheetExport.generateSpreadsheet(lista);
}*/
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
1f731f4285a217b41a55ff2f0b92c62a98375374 | 6baf1fe00541560788e78de5244ae17a7a2b375a | /hollywood/com.oculus.browser-base/sources/defpackage/C4297pp1.java | 381783181474eeb6d5f0b7a86a5f0ea41d8c3114 | [] | 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,462 | java | package defpackage;
import com.oculus.browser.R;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.Objects;
import org.chromium.chrome.browser.tab.Tab;
/* renamed from: pp1 reason: default package and case insensitive filesystem */
/* compiled from: chromium-OculusBrowser.apk-stable-281887347 */
public class C4297pp1 extends RK {
/* renamed from: a reason: collision with root package name */
public final /* synthetic */ C4978tp1 f11089a;
public C4297pp1(C4978tp1 tp1) {
this.f11089a = tp1;
}
@Override // defpackage.RK
public void a(List list, List list2, boolean z) {
ArrayList arrayList = new ArrayList();
for (int i = 0; i < list.size(); i++) {
Tab tab = (Tab) list.get(i);
arrayList.add(new C4808sp1(this.f11089a, tab, ((Integer) list2.get(i)).intValue(), z ? ((Tab) list.get(0)).getId() : tab.getId()));
}
C4978tp1 tp1 = this.f11089a;
Objects.requireNonNull(tp1);
String format = String.format(Locale.getDefault(), "%d", Integer.valueOf(arrayList.size()));
View$OnClickListenerC5098uY0 U = tp1.c.U();
C4076oY0 c = C4076oY0.c(format, tp1, 0, 32);
c.c = tp1.f11372a.getString(R.string.f63970_resource_name_obfuscated_RES_2131953714);
c.d = tp1.f11372a.getString(R.string.f63930_resource_name_obfuscated_RES_2131953710);
c.e = arrayList;
U.l(c);
}
}
| [
"cyuubiapps@gmail.com"
] | cyuubiapps@gmail.com |
9ca03584c590a3e2d340ffd5031416aaf03786ec | 90d563a57497fff40c586b0cbbc5b10e0ac1a5f0 | /src/BinaryTree/LeetCode104/TreeNode.java | 695f23a303ac7aa2f29c92e72234fd1026cf1f7a | [] | no_license | betterGa/Review-DS | 852b6aa3da401e78ca19efc40486cd57089acb2d | 61699bcf4dcbfb4af2ca6cd95d8cb33804512fa0 | refs/heads/master | 2022-04-03T21:00:37.071086 | 2020-02-19T14:55:48 | 2020-02-19T14:55:48 | 209,009,441 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 582 | java | package BinaryTree.LeetCode104;
public class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) { val = x; }
}
class Solution {
int size=0;
//传入根节点,返回二叉树的最大深度
public int maxDepth(TreeNode root) {
//如果传入的根节点为空,深度为空。
if(root==null) return 0;
//二叉数的最大深度是左右子树两个最大深度值中的最大值再+1(因为根节点的深度为1)。
return Math.max(maxDepth(root.right),maxDepth(root.left))+1;
}
} | [
"2086543608@qq.com"
] | 2086543608@qq.com |
a7493f85577c340ea11fca17d4f8208b37b531e0 | 0a70d7c33a5a53448770ad471d518f21a8bf712a | /src/main/java/com/microsoft/devrel/j4kdemo/web/rest/errors/package-info.java | fc22c555f5bdb24c6333c1eaa8905520a4a847f1 | [] | no_license | jdubois/2021-j4k-demo | 3a4f9ede9e0ac2e6152fccdbf3a06e62229d4a8a | 21b74deae4903f9da9451a99defa609023b1be41 | refs/heads/main | 2023-05-04T22:28:38.072824 | 2021-05-28T09:56:04 | 2021-05-28T09:56:04 | 364,230,524 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 203 | java | /**
* Specific errors used with Zalando's "problem-spring-web" library.
*
* More information on https://github.com/zalando/problem-spring-web
*/
package com.microsoft.devrel.j4kdemo.web.rest.errors;
| [
"julien.dubois@gmail.com"
] | julien.dubois@gmail.com |
af2de3ce7fca1d7d905481070b767899c4e63b14 | 75f0d81197655407fd59ec1dca79243d2aa70be9 | /nd4j-jcublas-parent/nd4j-jcublas-common/src/main/java/jcuda/runtime/cudaStream_t.java | de01d3c2622c8252b2d68e69b57234453d61f241 | [
"Apache-2.0"
] | permissive | noelnamai/nd4j | 1a547e9ee5ad08f26d8a84f10af85c6c4278558f | f31d63d95e926c5d8cc93c5d0613f3b3c92e521c | refs/heads/master | 2021-01-22T09:04:35.467401 | 2015-06-05T02:49:29 | 2015-06-05T02:49:29 | 36,916,394 | 2 | 0 | null | 2015-06-05T06:37:09 | 2015-06-05T06:37:09 | null | UTF-8 | Java | false | false | 2,069 | java | /*
*
* * Copyright 2015 Skymind,Inc.
* *
* * 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 jcuda.runtime;
import jcuda.NativePointerObject;
import jcuda.driver.CUstream;
/**
* Java port of a cudaStream_t.
*
* @see JCuda#cudaStreamCreate
* @see JCuda#cudaStreamQuery
* @see JCuda#cudaStreamSynchronize
* @see JCuda#cudaStreamDestroy
*/
public class cudaStream_t extends NativePointerObject
{
/**
* Creates a new, uninitialized cudaStream_t
*/
public cudaStream_t()
{
}
/**
* Creates a cudaStream_t for the given {@link CUstream}. This
* corresponds to casting a CUstream to a cudaStream_t.
*
* @param stream The other stream
*/
public cudaStream_t(CUstream stream)
{
super(stream);
}
/**
* Create a cudaStream_t that is a constant with the given
* value. This is used for emulating the stream
* handling constants, {@link JCuda#cudaStreamLegacy}
* and {@link JCuda#cudaStreamPerThread()}
*
* @param value The pointer value
*/
cudaStream_t(long value)
{
super(value);
}
/**
* Returns a String representation of this object.
*
* @return A String representation of this object.
*/
@Override
public String toString()
{
return "cudaStream_t["+
"nativePointer="+getNativePointer()+"]";
}
}
| [
"adam@skymind.io"
] | adam@skymind.io |
9f60189391ded0bfa403912ae7c18c5d183541b4 | 7b82d70ba5fef677d83879dfeab859d17f4809aa | /tmp/sys/fastquery/src/main/java/org/fastquery/page/Slice.java | a802d378130b15a03a8d12470a0659c4e9899c5d | [
"Apache-2.0"
] | permissive | apollowesley/jun_test | fb962a28b6384c4097c7a8087a53878188db2ebc | c7a4600c3f0e1b045280eaf3464b64e908d2f0a2 | refs/heads/main | 2022-12-30T20:47:36.637165 | 2020-10-13T18:10:46 | 2020-10-13T18:10:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,561 | java | /*
* Copyright (c) 2016-2016, fastquery.org and/or its affiliates. All rights reserved.
*
* 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.
*
* For more information, please see http://www.fastquery.org/.
*
*/
package org.fastquery.page;
/**
*
* @author xixifeng (fastquery@126.com)
*/
public class Slice {
private int number; // 当前页码
private int size; // 每页多少条数据
/**
* 构造 TenetPageable
* @param number 当前页码
* @param size 每页多少条数据
*/
public Slice(int number, int size) {
this.number = number;
this.size = size;
}
public int getNumber() {
return number;
}
public int getSize() {
return size;
}
public void setNumber(int number) {
this.number = number;
}
public void setSize(int size) {
this.size = size;
}
}
| [
"wujun728@hotmail.com"
] | wujun728@hotmail.com |
a96a264c7f92ee1dbf1367028b36f8b0581dd201 | 5fe0220cbcc79948828b4aed8b1aaefa4c33a14c | /java-pot/src/name/martingeisse/javapot/ide/PotFileType.java | afc4f8b94d412d7b82fad5295fdb50cdd081b556 | [] | no_license | MartinGeisse/java-pot | 13b6093f8d8788d62c9815c0f1cc48ec62a95c14 | 52dbed921035859e268ec2580e233fb8f0eb924d | refs/heads/master | 2021-07-14T09:47:42.992562 | 2017-10-09T07:28:17 | 2017-10-09T07:28:17 | 106,176,814 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 959 | java | package name.martingeisse.javapot.ide;
import com.intellij.icons.AllIcons;
import com.intellij.openapi.fileTypes.LanguageFileType;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import javax.swing.*;
/**
*
*/
public class PotFileType extends LanguageFileType {
@NonNls
public static final String DEFAULT_EXTENSION = "pot";
@NonNls
public static final String DOT_DEFAULT_EXTENSION = ".pot";
public static final PotFileType INSTANCE = new PotFileType();
public PotFileType() {
super(PotSpecificationLanguage.INSTANCE);
}
@NotNull
@Override
public String getName() {
return "JAVAPOT";
}
@NotNull
@Override
public String getDescription() {
return "JavaPOT grammar file";
}
@NotNull
@Override
public String getDefaultExtension() {
return DEFAULT_EXTENSION;
}
@Nullable
@Override
public Icon getIcon() {
return AllIcons.FileTypes.Text;
}
}
| [
"martingeisse@googlemail.com"
] | martingeisse@googlemail.com |
71947817bcf7ed712e680074c72688fea708bcb1 | 08d0f3fa226655acbec206b2be0e04836921c970 | /apollo-client/src/main/java/com/ctrip/framework/apollo/util/factory/DefaultPropertiesFactory.java | 7d44d51e2a9e19001910e0aa1975c9e7d65bc864 | [
"Apache-2.0"
] | permissive | JaredTan95/apollo | 1e037ee0028e30731d7af658143bd3ed456ea106 | aa9b7ebd01f860c20df9c14129dbbc35cb9d989c | refs/heads/master | 2021-12-02T11:50:45.982955 | 2021-08-26T02:54:50 | 2021-08-26T02:54:50 | 154,436,972 | 4 | 1 | Apache-2.0 | 2018-10-24T04:05:48 | 2018-10-24T04:05:48 | null | UTF-8 | Java | false | false | 1,344 | java | /*
* Copyright 2021 Apollo 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.ctrip.framework.apollo.util.factory;
import com.ctrip.framework.apollo.build.ApolloInjector;
import com.ctrip.framework.apollo.util.ConfigUtil;
import com.ctrip.framework.apollo.util.OrderedProperties;
import java.util.Properties;
/**
* Default PropertiesFactory implementation.
*
* @author songdragon@zts.io
*/
public class DefaultPropertiesFactory implements PropertiesFactory {
private ConfigUtil m_configUtil;
public DefaultPropertiesFactory() {
m_configUtil = ApolloInjector.getInstance(ConfigUtil.class);
}
@Override
public Properties getPropertiesInstance() {
if (m_configUtil.isPropertiesOrderEnabled()) {
return new OrderedProperties();
} else {
return new Properties();
}
}
}
| [
"nobodyiam@gmail.com"
] | nobodyiam@gmail.com |
b97a4fc6334a475c8bbda178532ca951720de260 | 4510cd45e62ef8b7bc6223f6ec3a6afb71795422 | /app/src/main/java/com/example/android/apis/animation/LayoutAnimationsHideShow.java | d1d36d2e7856059b06c26d471eb72b82a7833fb8 | [] | no_license | rexnie/ApiDemos | 2a628abe761245d54fa714f634ca5381157c9027 | 1ed93d3393aba3c9eef92e5ff933b4e3f974623b | refs/heads/master | 2021-01-12T12:32:45.792538 | 2016-10-18T15:31:50 | 2016-10-18T15:31:50 | 72,546,370 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,439 | java | /*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.android.apis.animation;
// Need the following import to get access to the app resources, since this
// class is in a sub-package.
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.Keyframe;
import android.animation.LayoutTransition;
import android.animation.ObjectAnimator;
import android.animation.PropertyValuesHolder;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.LinearLayout;
import com.example.android.apis.R;
/**
* This application demonstrates how to use LayoutTransition to automate transition animations
* as items are hidden or shown in a container.
*/
public class LayoutAnimationsHideShow extends Activity {
ViewGroup container = null;
private int numButtons = 1;
private LayoutTransition mTransitioner;
/**
* Called when the activity is first created.
*/
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.layout_animations_hideshow);
final CheckBox hideGoneCB = (CheckBox) findViewById(R.id.hideGoneCB);
container = new LinearLayout(this);
container.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT));
// Add a slew of buttons to the container. We won't add any more buttons at runtime, but
// will just show/hide the buttons we've already created
for (int i = 0; i < 4; ++i) {
Button newButton = new Button(this);
newButton.setText(String.valueOf(i));
container.addView(newButton);
newButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
v.setVisibility(hideGoneCB.isChecked() ? View.GONE : View.INVISIBLE);
}
});
}
resetTransition();
ViewGroup parent = (ViewGroup) findViewById(R.id.parent);
parent.addView(container);
Button addButton = (Button) findViewById(R.id.addNewButton);
addButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
for (int i = 0; i < container.getChildCount(); ++i) {
View view = container.getChildAt(i);
view.setVisibility(View.VISIBLE);
}
}
});
CheckBox customAnimCB = (CheckBox) findViewById(R.id.customAnimCB);
customAnimCB.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
long duration;
if (isChecked) {
mTransitioner.setStagger(LayoutTransition.CHANGE_APPEARING, 30);
mTransitioner.setStagger(LayoutTransition.CHANGE_DISAPPEARING, 30);
setupCustomAnimations();
duration = 500;
} else {
resetTransition();
duration = 300;
}
mTransitioner.setDuration(duration);
}
});
}
private void resetTransition() {
mTransitioner = new LayoutTransition();
container.setLayoutTransition(mTransitioner);
}
private void setupCustomAnimations() {
// Changing while Adding
PropertyValuesHolder pvhLeft =
PropertyValuesHolder.ofInt("left", 0, 1);
PropertyValuesHolder pvhTop =
PropertyValuesHolder.ofInt("top", 0, 1);
PropertyValuesHolder pvhRight =
PropertyValuesHolder.ofInt("right", 0, 1);
PropertyValuesHolder pvhBottom =
PropertyValuesHolder.ofInt("bottom", 0, 1);
PropertyValuesHolder pvhScaleX =
PropertyValuesHolder.ofFloat("scaleX", 1f, 0f, 1f);
PropertyValuesHolder pvhScaleY =
PropertyValuesHolder.ofFloat("scaleY", 1f, 0f, 1f);
final ObjectAnimator changeIn = ObjectAnimator.ofPropertyValuesHolder(
this, pvhLeft, pvhTop, pvhRight, pvhBottom, pvhScaleX, pvhScaleY).
setDuration(mTransitioner.getDuration(LayoutTransition.CHANGE_APPEARING));
mTransitioner.setAnimator(LayoutTransition.CHANGE_APPEARING, changeIn);
changeIn.addListener(new AnimatorListenerAdapter() {
public void onAnimationEnd(Animator anim) {
View view = (View) ((ObjectAnimator) anim).getTarget();
view.setScaleX(1f);
view.setScaleY(1f);
}
});
// Changing while Removing
Keyframe kf0 = Keyframe.ofFloat(0f, 0f);
Keyframe kf1 = Keyframe.ofFloat(.9999f, 360f);
Keyframe kf2 = Keyframe.ofFloat(1f, 0f);
PropertyValuesHolder pvhRotation =
PropertyValuesHolder.ofKeyframe("rotation", kf0, kf1, kf2);
final ObjectAnimator changeOut = ObjectAnimator.ofPropertyValuesHolder(
this, pvhLeft, pvhTop, pvhRight, pvhBottom, pvhRotation).
setDuration(mTransitioner.getDuration(LayoutTransition.CHANGE_DISAPPEARING));
mTransitioner.setAnimator(LayoutTransition.CHANGE_DISAPPEARING, changeOut);
changeOut.addListener(new AnimatorListenerAdapter() {
public void onAnimationEnd(Animator anim) {
View view = (View) ((ObjectAnimator) anim).getTarget();
view.setRotation(0f);
}
});
// Adding
ObjectAnimator animIn = ObjectAnimator.ofFloat(null, "rotationY", 90f, 0f).
setDuration(mTransitioner.getDuration(LayoutTransition.APPEARING));
mTransitioner.setAnimator(LayoutTransition.APPEARING, animIn);
animIn.addListener(new AnimatorListenerAdapter() {
public void onAnimationEnd(Animator anim) {
View view = (View) ((ObjectAnimator) anim).getTarget();
view.setRotationY(0f);
}
});
// Removing
ObjectAnimator animOut = ObjectAnimator.ofFloat(null, "rotationX", 0f, 90f).
setDuration(mTransitioner.getDuration(LayoutTransition.DISAPPEARING));
mTransitioner.setAnimator(LayoutTransition.DISAPPEARING, animOut);
animOut.addListener(new AnimatorListenerAdapter() {
public void onAnimationEnd(Animator anim) {
View view = (View) ((ObjectAnimator) anim).getTarget();
view.setRotationX(0f);
}
});
}
} | [
"niedaocai@snda.com"
] | niedaocai@snda.com |
706386a95820f0fd132d88160430ce6f32abac55 | 4eee7dbf2cce9623c9975c5017b7b004c854d649 | /cloudsampleapp1/src/main/java/com/fastcode/cloudsampleapp1/domain/core/store/IStoreRepository.java | eee2c29e64c64ed89eb25d7e9e2e18d159188986 | [] | no_license | fastcoderepos/ff-sampleApplication1 | 8565885de0b108d0db4252f76b6f4782c55370e4 | e50124f97b7864a8a36e669ed12c605573f932ba | refs/heads/master | 2023-02-14T00:20:02.227079 | 2021-01-10T09:49:53 | 2021-01-10T09:49:53 | 328,350,151 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 431 | java | package com.fastcode.cloudsampleapp1.domain.core.store;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.stereotype.Repository;
import java.util.*;
import java.time.*;
@Repository("storeRepository")
public interface IStoreRepository extends JpaRepository<StoreEntity, Integer>,QuerydslPredicateExecutor<StoreEntity> {
}
| [
"info@nfinityllc.com"
] | info@nfinityllc.com |
caf5722321ef0f78e8503c75f0fff24bdd73016e | 2c41369e0af22e32867a39bb40e583eb380a59a4 | /src/main/java/com/telesens/academy/lesson14/lambda/DressComparator.java | af72c2a392fc1fc2e9f554226cde450bdba55704 | [] | no_license | Oleg-Afanasiev/java-part-maven-05 | 6da5f445447e7cc4847a02452b281496b651c88c | 01e2e1f1f2791ad32b28f4b46fc8352b119ae873 | refs/heads/master | 2020-04-03T22:49:24.078689 | 2018-12-18T08:02:54 | 2018-12-18T08:02:54 | 155,610,731 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 366 | java | package com.telesens.academy.lesson14.lambda;
import com.telesens.academy.automationpractice.model.EntityDress;
import java.util.Comparator;
public class DressComparator implements Comparator<EntityDress> {
@Override
public int compare(EntityDress dress1, EntityDress dress2) {
return Double.compare(dress1.getPrice(), dress2.getPrice());
}
}
| [
"oleg.kh81@gmail.com"
] | oleg.kh81@gmail.com |
756d42563daa27c06c7809236c5540eaef8c67d6 | 427b69465523bd39b1fb14b30aa5b13d86addfa7 | /sp5-web/ex02/src/main/java/org/zerock/domain/AttachFileDTO.java | da05e3f7eb983973cb4bf4784a3cfd8f4770b5e8 | [] | no_license | hansol4412/project | fb0fa7b816720fcf0bb518b91c7b2f172b3672a6 | a7ec872f30844944c83bc801f7b84df200dbaa43 | refs/heads/master | 2023-03-16T18:55:39.423865 | 2021-03-06T11:42:52 | 2021-03-06T11:42:52 | 313,502,040 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 187 | java | package org.zerock.domain;
import lombok.Data;
@Data
public class AttachFileDTO {
private String fileName;
private String uploadPath;
private String uuid;
private boolean image;
}
| [
"hansol4412@naver.com"
] | hansol4412@naver.com |
62f3e510d7469d451fba8289103ddc3977ae5c26 | 471a6511c91a87111aac30d9e1d0cf44812af6a2 | /src/main/java/org/codelibs/fess/es/cbean/bs/BsCrawlingSessionInfoCB.java | a15072dc4441d41f4c20428d5aa8078cc047e17e | [
"Apache-2.0"
] | permissive | beavis28/fess | 1160e8a66de4805ee235d1ce64f409f8247bf737 | 8dbc3e9b77c93fe270ff15210dfe3000cc3c9d8c | refs/heads/master | 2020-12-11T07:39:26.254838 | 2015-10-11T06:51:14 | 2015-10-11T06:51:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,934 | java | package org.codelibs.fess.es.cbean.bs;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.codelibs.fess.es.bsentity.dbmeta.CrawlingSessionInfoDbm;
import org.codelibs.fess.es.cbean.CrawlingSessionInfoCB;
import org.codelibs.fess.es.cbean.cq.CrawlingSessionInfoCQ;
import org.codelibs.fess.es.cbean.cq.bs.BsCrawlingSessionInfoCQ;
import org.dbflute.cbean.ConditionQuery;
import org.elasticsearch.action.count.CountRequestBuilder;
import org.elasticsearch.action.search.SearchRequestBuilder;
import org.elasticsearch.index.query.QueryBuilder;
/**
* @author FreeGen
*/
public class BsCrawlingSessionInfoCB extends AbstractConditionBean {
protected BsCrawlingSessionInfoCQ _conditionQuery;
protected HpSpecification _specification;
@Override
public CrawlingSessionInfoDbm asDBMeta() {
return CrawlingSessionInfoDbm.getInstance();
}
@Override
public String asTableDbName() {
return "crawling_session_info";
}
@Override
public boolean hasSpecifiedColumn() {
return _specification != null;
}
@Override
public ConditionQuery localCQ() {
return doGetConditionQuery();
}
public CrawlingSessionInfoCB acceptPK(String id) {
assertObjectNotNull("id", id);
BsCrawlingSessionInfoCB cb = this;
cb.query().docMeta().setId_Equal(id);
return (CrawlingSessionInfoCB) this;
}
@Override
public void acceptPrimaryKeyMap(Map<String, ? extends Object> primaryKeyMap) {
acceptPK((String) primaryKeyMap.get("_id"));
}
@Override
public CountRequestBuilder build(CountRequestBuilder builder) {
if (_conditionQuery != null) {
QueryBuilder queryBuilder = _conditionQuery.getQuery();
if (queryBuilder != null) {
builder.setQuery(queryBuilder);
}
}
return builder;
}
@Override
public SearchRequestBuilder build(SearchRequestBuilder builder) {
if (_conditionQuery != null) {
QueryBuilder queryBuilder = _conditionQuery.getQuery();
if (queryBuilder != null) {
builder.setQuery(queryBuilder);
}
_conditionQuery.getFieldSortBuilderList().forEach(sort -> {
builder.addSort(sort);
});
}
if (_specification != null) {
builder.setFetchSource(_specification.columnList.toArray(new String[_specification.columnList.size()]), null);
}
return builder;
}
public BsCrawlingSessionInfoCQ query() {
assertQueryPurpose();
return doGetConditionQuery();
}
protected BsCrawlingSessionInfoCQ doGetConditionQuery() {
if (_conditionQuery == null) {
_conditionQuery = createLocalCQ();
}
return _conditionQuery;
}
protected BsCrawlingSessionInfoCQ createLocalCQ() {
return new CrawlingSessionInfoCQ();
}
public HpSpecification specify() {
assertSpecifyPurpose();
if (_specification == null) {
_specification = new HpSpecification();
}
return _specification;
}
protected void assertQueryPurpose() {
// TODO
}
protected void assertSpecifyPurpose() {
// TODO
}
public static class HpSpecification {
private List<String> columnList = new ArrayList<>();
private void doColumn(String name) {
columnList.add(name);
}
public void columnCrawlingSessionId() {
doColumn("crawlingSessionId");
}
public void columnCreatedTime() {
doColumn("createdTime");
}
public void columnId() {
doColumn("id");
}
public void columnKey() {
doColumn("key");
}
public void columnValue() {
doColumn("value");
}
}
}
| [
"shinsuke@yahoo.co.jp"
] | shinsuke@yahoo.co.jp |
ae7e50582c1fe2ce86682fb0c62161e6721b25a2 | 2097d290e6d3d8f1236eda58a230a114d36089ad | /smbiz-admin/src/main/java/com/tll/model/Address.java | e58c55241afd7dafc0797929050660c67debf1c3 | [] | no_license | jopaki/tll | b31434a7b7b0c5b6592e52e1844f9cc80bae8ede | 9a37b43b3c1be6e32173d19f9b9a94e8f24a50f5 | refs/heads/master | 2021-01-20T11:13:32.672419 | 2012-09-04T05:31:45 | 2012-09-04T05:39:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,475 | java | package com.tll.model;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;
import com.tll.model.bk.BusinessKeyDef;
import com.tll.model.bk.BusinessObject;
import com.tll.model.validate.PhoneNumber;
import com.tll.model.validate.PhoneNumbers;
import com.tll.model.validate.PostalCode;
/**
* @author jpk
*/
@PhoneNumbers(value = {
@PhoneNumber(phonePropertyName = "phone"), @PhoneNumber(phonePropertyName = "fax") })
@PostalCode()
@BusinessObject(businessKeys = @BusinessKeyDef(name = "Address 1 and Postal Code", properties = {
"address1", "postalCode" }))
public class Address extends EntityBase {
public static Address findAddress(Long id) {
return EMF.get().instanceByEntityType(Address.class).load(id);
}
private static final long serialVersionUID = 69385466934038047L;
public static final int MAXLEN_FIRST_NAME = 128;
public static final int MAXLEN_LAST_NAME = 128;
public static final int MAXLEN_COMPANY = 128;
public static final int MAXLEN_ATTN = 64;
public static final int MAXLEN_ADDRESS1 = 128;
public static final int MAXLEN_ADDRESS2 = 128;
public static final int MAXLEN_CITY = 128;
public static final int MAXLEN_PROVINCE = 128;
public static final int MAXLEN_COUNTRY = 128;
public static final int MAXLEN_POSTAL_CODE = 15;
public static final int MAXLEN_PHONE = 15;
public static final int MAXLEN_FAX = 15;
public static final int MAXLEN_EMAIL_ADDRESS = 128;
private String firstName;
private String lastName;
private Character mi;
private String company;
private String attn;
private String address1;
private String address2;
private String city;
private String province;
private String postalCode;
private String country;
private String phone;
private String fax;
private String emailAddress;
@Override
public Class<? extends IEntity> entityClass() {
return Address.class;
}
/**
* @return Returns the address1.
*/
@NotEmpty
@Length(max = MAXLEN_ADDRESS1)
public String getAddress1() {
return address1;
}
/**
* @param address1 The address1 to set.
*/
public void setAddress1(final String address1) {
this.address1 = address1;
}
/**
* @return Returns the address2.
*/
@Length(max = MAXLEN_ADDRESS2)
public String getAddress2() {
return address2;
}
/**
* @param address2 The address2 to set.
*/
public void setAddress2(final String address2) {
this.address2 = address2;
}
/**
* @return Returns the attn.
*/
@Length(max = MAXLEN_ATTN)
public String getAttn() {
return attn;
}
/**
* @param attn The attn to set.
*/
public void setAttn(final String attn) {
this.attn = attn;
}
/**
* @return Returns the city.
*/
@NotEmpty
@Length(max = MAXLEN_CITY)
public String getCity() {
return city;
}
/**
* @param city The city to set.
*/
public void setCity(final String city) {
this.city = city;
}
/**
* @return Returns the company.
*/
@Length(max = MAXLEN_COMPANY)
public String getCompany() {
return company;
}
/**
* @param company The company to set.
*/
public void setCompany(final String company) {
this.company = company;
}
/**
* @return Returns the country.
*/
@NotEmpty
@Length(max = MAXLEN_COUNTRY)
public String getCountry() {
return country;
}
/**
* @param country The country to set.
*/
public void setCountry(final String country) {
this.country = country;
}
/**
* @return Returns the emailAddress.
*/
@NotEmpty
@Email
@Length(max = MAXLEN_EMAIL_ADDRESS)
public String getEmailAddress() {
return emailAddress;
}
/**
* @param emailAddress The emailAddress to set.
*/
public void setEmailAddress(final String emailAddress) {
this.emailAddress = emailAddress;
}
/**
* @return Returns the fax.
*/
@Length(max = MAXLEN_FAX)
public String getFax() {
return fax;
}
/**
* @param fax The fax to set.
*/
public void setFax(final String fax) {
this.fax = fax;
}
/**
* @return Returns the firstName.
*/
@Length(max = MAXLEN_FIRST_NAME)
public String getFirstName() {
return firstName;
}
/**
* @param firstName The firstName to set.
*/
public void setFirstName(final String firstName) {
this.firstName = firstName;
}
/**
* @return Returns the lastName.
*/
@Length(max = MAXLEN_LAST_NAME)
public String getLastName() {
return lastName;
}
/**
* @param lastName The lastName to set.
*/
public void setLastName(final String lastName) {
this.lastName = lastName;
}
/**
* @return Returns the mi.
*/
public Character getMi() {
return mi;
}
/**
* @param mi The mi to set.
*/
public void setMi(final Character mi) {
this.mi = mi;
}
/**
* @return Returns the phone.
*/
@Length(max = MAXLEN_PHONE)
public String getPhone() {
return phone;
}
/**
* @param phone The phone to set.
*/
public void setPhone(final String phone) {
this.phone = phone;
}
/**
* @return Returns the province.
*/
@NotEmpty
@Length(max = MAXLEN_PROVINCE)
public String getProvince() {
return province;
}
/**
* @param state The state to set.
*/
public void setProvince(final String state) {
this.province = state;
}
/**
* @return Returns the postalCode.
*/
@NotEmpty
@Length(max = MAXLEN_POSTAL_CODE)
public String getPostalCode() {
return postalCode;
}
/**
* @param zip The zip to set.
*/
public void setPostalCode(final String zip) {
this.postalCode = zip;
}
}
| [
"jopaki@gmail.com"
] | jopaki@gmail.com |
ae6f1b46948ff7f5d5c4b119b598ed8d26be663c | 6baf1fe00541560788e78de5244ae17a7a2b375a | /hollywood/com.oculus.socialplatform-base/sources/com/oculus/panelapp/messenger/views/DraftThreadParticipantViewHolder.java | 46a6e64583218dd9136ed5bfbaecac281fbe5397 | [] | 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 | 3,893 | java | package com.oculus.panelapp.messenger.views;
import X.AnonymousClass1Ah;
import android.view.MotionEvent;
import android.view.View;
import com.oculus.common.logutilities.LoggingUtil;
import com.oculus.common.sociallogger.ClickEventButtonId;
import com.oculus.common.sociallogger.SurfaceType;
import com.oculus.panelapp.messenger.MessengerPanelApp;
import com.oculus.panelapp.messenger.databinding.AnytimeTabletMessengerDraftThreadParticipantItemBinding;
import com.oculus.panelapp.messenger.fetchers.MessengerContact;
import com.oculus.vrshell.panels.SoundType;
public class DraftThreadParticipantViewHolder extends AnonymousClass1Ah {
public static final String TAG = LoggingUtil.tag(DraftThreadParticipantViewHolder.class);
public AnytimeTabletMessengerDraftThreadParticipantItemBinding mBinding;
public MessengerPanelApp mPanelApp;
public DraftThreadParticipantViewHolder(AnytimeTabletMessengerDraftThreadParticipantItemBinding anytimeTabletMessengerDraftThreadParticipantItemBinding, MessengerPanelApp messengerPanelApp) {
super(anytimeTabletMessengerDraftThreadParticipantItemBinding.mRoot);
this.mBinding = anytimeTabletMessengerDraftThreadParticipantItemBinding;
this.mPanelApp = messengerPanelApp;
setRemoveParticipantHaptics();
}
private void setRemoveParticipantHaptics() {
this.mBinding.removeIndicator.setOnHoverListener(new View.OnHoverListener() {
/* class com.oculus.panelapp.messenger.views.$$Lambda$DraftThreadParticipantViewHolder$qpcuT_5qsI1pK8hwoPsBgq6C1SU2 */
public final boolean onHover(View view, MotionEvent motionEvent) {
return DraftThreadParticipantViewHolder.this.lambda$setRemoveParticipantHaptics$1$DraftThreadParticipantViewHolder(view, motionEvent);
}
});
this.mBinding.removeIndicator.setOnClickListener(new View.OnClickListener() {
/* class com.oculus.panelapp.messenger.views.$$Lambda$DraftThreadParticipantViewHolder$JLPN9uXFWpB9b8UoX7DPPUA98yY2 */
public final void onClick(View view) {
DraftThreadParticipantViewHolder.this.lambda$setRemoveParticipantHaptics$2$DraftThreadParticipantViewHolder(view);
}
});
}
public void bindParticipant(MessengerContact messengerContact) {
this.mBinding.participantName.setText(messengerContact.mUserName);
this.mBinding.removeIndicator.setOnClickListener(new View.OnClickListener(messengerContact) {
/* class com.oculus.panelapp.messenger.views.$$Lambda$DraftThreadParticipantViewHolder$FAiYAlkWeWUK2e_qzJBDGEhyIa42 */
public final /* synthetic */ MessengerContact f$1;
{
this.f$1 = r2;
}
public final void onClick(View view) {
DraftThreadParticipantViewHolder.this.lambda$bindParticipant$0$DraftThreadParticipantViewHolder(this.f$1, view);
}
});
}
public /* synthetic */ void lambda$bindParticipant$0$DraftThreadParticipantViewHolder(MessengerContact messengerContact, View view) {
this.mPanelApp.logButtonClick(ClickEventButtonId.AUIV2_MESSENGER_DRAFT_THREAD_PARTICIPANT_REMOVE, SurfaceType.THREAD_VIEW);
this.mPanelApp.getAPIManager().mDraftThread.removeParticipant(messengerContact);
}
public /* synthetic */ void lambda$setRemoveParticipantHaptics$2$DraftThreadParticipantViewHolder(View view) {
this.mPanelApp.getAndroidPanelApp().mFrameCommandChannel.playAudio(SoundType.SELECT);
}
public /* synthetic */ boolean lambda$setRemoveParticipantHaptics$1$DraftThreadParticipantViewHolder(View view, MotionEvent motionEvent) {
if (motionEvent.getAction() != 9) {
return false;
}
this.mPanelApp.getAndroidPanelApp().mFrameCommandChannel.playAudio(SoundType.HOVER);
return false;
}
}
| [
"cyuubiapps@gmail.com"
] | cyuubiapps@gmail.com |
3afa4dd95d06a4a42e1b6d463cbf96d219c362e8 | 9afe21f8628629697abbc2197a5a17629de25f51 | /src/main/java/org/spongepowered/clean/block/tileentity/SBanner.java | 28891dce8a8e019bc29dcf224c2e780ff70cb395 | [
"MIT"
] | permissive | huokedu/CleanSponge | 0701ed7a3a4b87e3395bb4f69d7d3b08e3055296 | d5fd3dbca693149013d2e5f50ec330647e290f17 | refs/heads/master | 2021-06-13T08:01:13.756156 | 2017-03-13T04:29:19 | 2017-03-13T04:29:19 | 116,115,388 | 1 | 0 | null | 2018-01-03T09:00:58 | 2018-01-03T09:00:57 | null | UTF-8 | Java | false | false | 1,784 | java | /*
* This file is part of SpongeClean, licensed under the MIT License (MIT).
*
* Copyright (c) The VoxelBox <http://thevoxelbox.com>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package org.spongepowered.clean.block.tileentity;
import org.spongepowered.api.block.tileentity.Banner;
import org.spongepowered.api.block.tileentity.TileEntityType;
import org.spongepowered.api.block.tileentity.TileEntityTypes;
import org.spongepowered.clean.world.SWorld;
public class SBanner extends AbstractTileEntity implements Banner {
public SBanner(SWorld world, int x, int y, int z) {
super(world, x, y, z);
}
@Override
public TileEntityType getType() {
return TileEntityTypes.BANNER;
}
}
| [
"nick@budgiehouse.com"
] | nick@budgiehouse.com |
825563947a133fca0f7be127758cbbac14fa487d | 10d77fabcbb945fe37e15ae438e360a89a24ea05 | /graalvm/transactions/fork/narayana/qa/tests/src/org/jboss/jbossts/qa/RawResources02Servers/Server04.java | adf9295eafce9cfef95406f976872ffde9bd9db5 | [
"Apache-2.0",
"LGPL-2.1-only",
"LGPL-2.1-or-later",
"LicenseRef-scancode-other-copyleft"
] | permissive | nmcl/scratch | 1a881605971e22aa300487d2e57660209f8450d3 | 325513ea42f4769789f126adceb091a6002209bd | refs/heads/master | 2023-03-12T19:56:31.764819 | 2023-02-05T17:14:12 | 2023-02-05T17:14:12 | 48,547,106 | 2 | 1 | Apache-2.0 | 2023-03-01T12:44:18 | 2015-12-24T15:02:58 | Java | UTF-8 | Java | false | false | 2,637 | java | /*
* JBoss, Home of Professional Open Source
* Copyright 2007, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
* of the GNU Lesser General Public License, v. 2.1.
* This program is distributed in the hope that it will be useful, but WITHOUT A
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public License,
* v.2.1 along with this distribution; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
* (C) 2005-2006,
* @author JBoss Inc.
*/
//
// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003
//
// Arjuna Technologies Ltd.,
// Newcastle upon Tyne,
// Tyne and Wear,
// UK
//
package org.jboss.jbossts.qa.RawResources02Servers;
/*
* Copyright (C) 1999-2001 by HP Bluestone Software, Inc. All rights Reserved.
*
* HP Arjuna Labs,
* Newcastle upon Tyne,
* Tyne and Wear,
* UK.
*
* $Id: Server04.java,v 1.2 2003/06/26 11:44:59 rbegg Exp $
*/
/*
* Try to get around the differences between Ansi CPP and
* K&R cpp with concatenation.
*/
/*
* Copyright (C) 1999-2001 by HP Bluestone Software, Inc. All rights Reserved.
*
* HP Arjuna Labs,
* Newcastle upon Tyne,
* Tyne and Wear,
* UK.
*
* $Id: Server04.java,v 1.2 2003/06/26 11:44:59 rbegg Exp $
*/
import org.jboss.jbossts.qa.RawResources02.*;
import org.jboss.jbossts.qa.RawResources02Impls.ServiceImpl02;
import org.jboss.jbossts.qa.Utils.OAInterface;
import org.jboss.jbossts.qa.Utils.ORBInterface;
import org.jboss.jbossts.qa.Utils.ServerIORStore;
public class Server04
{
public static void main(String args[])
{
try
{
ORBInterface.initORB(args, null);
OAInterface.initOA();
ServiceImpl02 serviceImpl = new ServiceImpl02(0);
ServicePOATie servant = new ServicePOATie(serviceImpl);
OAInterface.objectIsReady(servant);
Service service = ServiceHelper.narrow(OAInterface.corbaReference(servant));
ServerIORStore.storeIOR(args[args.length - 1], ORBInterface.orb().object_to_string(service));
System.out.println("Ready");
ORBInterface.run();
}
catch (Exception exception)
{
System.err.println("Server04.main: " + exception);
exception.printStackTrace(System.err);
}
}
}
| [
"mlittle@redhat.com"
] | mlittle@redhat.com |
10e9c4678eb9d3ba46f4d5c5245c796207ff424d | 421f0a75a6b62c5af62f89595be61f406328113b | /generated_tests/model_seeding/36_schemaspy-net.sourceforge.schemaspy.view.DefaultSqlFormatter-0.5-7/net/sourceforge/schemaspy/view/DefaultSqlFormatter_ESTest.java | 0385dbca652a94571f9efdbe4bad36b7c2bbcdf3 | [] | no_license | tigerqiu712/evosuite-model-seeding-empirical-evaluation | c78c4b775e5c074aaa5e6ca56bc394ec03c2c7c6 | 11a920b8213d9855082d3946233731c843baf7bc | refs/heads/master | 2020-12-23T21:04:12.152289 | 2019-10-30T08:02:29 | 2019-10-30T08:02:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 674 | java | /*
* This file was automatically generated by EvoSuite
* Tue Oct 29 15:08:40 GMT 2019
*/
package net.sourceforge.schemaspy.view;
import org.junit.Test;
import static org.junit.Assert.*;
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, useJEE = true)
public class DefaultSqlFormatter_ESTest extends DefaultSqlFormatter_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
| [
"pderakhshanfar@bsr01.win.tue.nl"
] | pderakhshanfar@bsr01.win.tue.nl |
2362421119ccc92b70e93ca8afa734f6c4b39294 | afb86ad517d87b0cd95902a3c9e79682f9527e94 | /data-dao/src/main/java/com/kf/data/mybatis/entity/tdx/TdxCompanyList.java | d588f5f65cf74e16e4d75aafc1dc2e9150ab4e29 | [] | no_license | liangyangtao/datasync | 10e8eb2c0be73db749fd9be96e1e9f6e4b5170ef | d3e0470c645adc5f77e50346df8a80f1a3456767 | refs/heads/master | 2020-03-06T15:17:46.759358 | 2018-03-27T08:53:11 | 2018-03-27T08:53:11 | 126,953,079 | 0 | 0 | null | 2018-03-27T08:53:12 | 2018-03-27T08:19:26 | Java | UTF-8 | Java | false | false | 8,023 | java | package com.kf.data.mybatis.entity.tdx;
import java.util.Date;
public class TdxCompanyList {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tdx_company_list.id
*
* @mbggenerated Thu Mar 22 18:11:38 CST 2018
*/
private Integer id;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tdx_company_list.company_id
*
* @mbggenerated Thu Mar 22 18:11:38 CST 2018
*/
private String companyId;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tdx_company_list.short_name
*
* @mbggenerated Thu Mar 22 18:11:38 CST 2018
*/
private String shortName;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tdx_company_list.transfer_mode
*
* @mbggenerated Thu Mar 22 18:11:38 CST 2018
*/
private String transferMode;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tdx_company_list.special_name
*
* @mbggenerated Thu Mar 22 18:11:38 CST 2018
*/
private String specialName;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tdx_company_list.stock_code
*
* @mbggenerated Thu Mar 22 18:11:38 CST 2018
*/
private Integer stockCode;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tdx_company_list.listing_date
*
* @mbggenerated Thu Mar 22 18:11:38 CST 2018
*/
private String listingDate;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tdx_company_list.up_time
*
* @mbggenerated Thu Mar 22 18:11:38 CST 2018
*/
private Date upTime;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tdx_company_list.id
*
* @return the value of tdx_company_list.id
*
* @mbggenerated Thu Mar 22 18:11:38 CST 2018
*/
public Integer getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tdx_company_list.id
*
* @param id the value for tdx_company_list.id
*
* @mbggenerated Thu Mar 22 18:11:38 CST 2018
*/
public void setId(Integer id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tdx_company_list.company_id
*
* @return the value of tdx_company_list.company_id
*
* @mbggenerated Thu Mar 22 18:11:38 CST 2018
*/
public String getCompanyId() {
return companyId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tdx_company_list.company_id
*
* @param companyId the value for tdx_company_list.company_id
*
* @mbggenerated Thu Mar 22 18:11:38 CST 2018
*/
public void setCompanyId(String companyId) {
this.companyId = companyId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tdx_company_list.short_name
*
* @return the value of tdx_company_list.short_name
*
* @mbggenerated Thu Mar 22 18:11:38 CST 2018
*/
public String getShortName() {
return shortName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tdx_company_list.short_name
*
* @param shortName the value for tdx_company_list.short_name
*
* @mbggenerated Thu Mar 22 18:11:38 CST 2018
*/
public void setShortName(String shortName) {
this.shortName = shortName;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tdx_company_list.transfer_mode
*
* @return the value of tdx_company_list.transfer_mode
*
* @mbggenerated Thu Mar 22 18:11:38 CST 2018
*/
public String getTransferMode() {
return transferMode;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tdx_company_list.transfer_mode
*
* @param transferMode the value for tdx_company_list.transfer_mode
*
* @mbggenerated Thu Mar 22 18:11:38 CST 2018
*/
public void setTransferMode(String transferMode) {
this.transferMode = transferMode;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tdx_company_list.special_name
*
* @return the value of tdx_company_list.special_name
*
* @mbggenerated Thu Mar 22 18:11:38 CST 2018
*/
public String getSpecialName() {
return specialName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tdx_company_list.special_name
*
* @param specialName the value for tdx_company_list.special_name
*
* @mbggenerated Thu Mar 22 18:11:38 CST 2018
*/
public void setSpecialName(String specialName) {
this.specialName = specialName;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tdx_company_list.stock_code
*
* @return the value of tdx_company_list.stock_code
*
* @mbggenerated Thu Mar 22 18:11:38 CST 2018
*/
public Integer getStockCode() {
return stockCode;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tdx_company_list.stock_code
*
* @param stockCode the value for tdx_company_list.stock_code
*
* @mbggenerated Thu Mar 22 18:11:38 CST 2018
*/
public void setStockCode(Integer stockCode) {
this.stockCode = stockCode;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tdx_company_list.listing_date
*
* @return the value of tdx_company_list.listing_date
*
* @mbggenerated Thu Mar 22 18:11:38 CST 2018
*/
public String getListingDate() {
return listingDate;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tdx_company_list.listing_date
*
* @param listingDate the value for tdx_company_list.listing_date
*
* @mbggenerated Thu Mar 22 18:11:38 CST 2018
*/
public void setListingDate(String listingDate) {
this.listingDate = listingDate;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column tdx_company_list.up_time
*
* @return the value of tdx_company_list.up_time
*
* @mbggenerated Thu Mar 22 18:11:38 CST 2018
*/
public Date getUpTime() {
return upTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column tdx_company_list.up_time
*
* @param upTime the value for tdx_company_list.up_time
*
* @mbggenerated Thu Mar 22 18:11:38 CST 2018
*/
public void setUpTime(Date upTime) {
this.upTime = upTime;
}
} | [
"liangyt@kaifengdata.com"
] | liangyt@kaifengdata.com |
a27614f2c6066ba2f6dceca16c8ef9b726f90f11 | 1eebba6f547b54196094966fd966b426e5b6c0f0 | /src/main/java/com/pj/magic/model/search/ProductSearchCriteria.java | 54e24253f82906dde33a32da032bd3a2aaa1ae10 | [] | no_license | pendelhaven3/magic | 5f0a9d3d4f60f80a358809afe73b0535edaf6331 | 970c8822637d38afcb9031fcdc10b0c033cd6be9 | refs/heads/master | 2023-06-07T23:06:39.497532 | 2023-05-21T18:00:13 | 2023-05-21T18:00:13 | 21,517,240 | 0 | 0 | null | 2022-06-29T16:50:01 | 2014-07-05T09:51:08 | Java | UTF-8 | Java | false | false | 1,815 | java | package com.pj.magic.model.search;
import com.pj.magic.Constants;
import com.pj.magic.model.Manufacturer;
import com.pj.magic.model.PricingScheme;
import com.pj.magic.model.ProductCategory;
import com.pj.magic.model.ProductSubcategory;
import com.pj.magic.model.Supplier;
public class ProductSearchCriteria {
private Boolean active;
private PricingScheme pricingScheme = new PricingScheme(Constants.CANVASSER_PRICING_SCHEME_ID);
private Manufacturer manufacturer;
private ProductCategory category;
private ProductSubcategory subcategory;
private String codeOrDescriptionLike;
private Supplier supplier;
public Boolean getActive() {
return active;
}
public void setActive(Boolean active) {
this.active = active;
}
public PricingScheme getPricingScheme() {
return pricingScheme;
}
public void setPricingScheme(PricingScheme pricingScheme) {
this.pricingScheme = pricingScheme;
}
public Manufacturer getManufacturer() {
return manufacturer;
}
public void setManufacturer(Manufacturer manufacturer) {
this.manufacturer = manufacturer;
}
public ProductCategory getCategory() {
return category;
}
public void setCategory(ProductCategory category) {
this.category = category;
}
public ProductSubcategory getSubcategory() {
return subcategory;
}
public void setSubcategory(ProductSubcategory subcategory) {
this.subcategory = subcategory;
}
public String getCodeOrDescriptionLike() {
return codeOrDescriptionLike;
}
public void setCodeOrDescriptionLike(String codeOrDescriptionLike) {
this.codeOrDescriptionLike = codeOrDescriptionLike;
}
public Supplier getSupplier() {
return supplier;
}
public void setSupplier(Supplier supplier) {
this.supplier = supplier;
}
}
| [
"pendelhaven3@gmail.com"
] | pendelhaven3@gmail.com |
945861d908317d7a774b155c8ec1b98453b9182a | 79fd72afcde9a7b620d9b53bf20ca94cfef40a1a | /src/main/groovy/org/mikeneck/groovy/PropertiesBuilderSupport.java | f61b76b80b12d7ea896291309ec2d22f4207dd3d | [
"Apache-2.0"
] | permissive | mike-neck/properties-builder | cd8baa026564fbd60913420dc6c32339d68d6ff2 | 8bb99ca59eeb46e68775d23e72a40963d8dc9b89 | refs/heads/master | 2021-01-01T20:01:27.471903 | 2013-06-11T18:38:25 | 2013-06-11T18:38:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,454 | java | package org.mikeneck.groovy;
import java.util.Enumeration;
import java.util.Stack;
/**
* Copyright 2013 Shinya Mochida a.k.a. @mike_neck
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
public class PropertiesBuilderSupport {
private final Stack<String> stack;
PropertiesBuilderSupport () {
this.stack = new Stack<>();
}
public static String castToString (Object item) {
return item.toString();
}
String currentPropertyName () {
Enumeration<String> elements = stack.elements();
StringBuilder builder = new StringBuilder();
while (elements.hasMoreElements()) {
builder.append(elements.nextElement())
.append(elements.hasMoreElements()? '.' : "");
}
return builder.toString();
}
void addNamespace (Object name) {
stack.push(castToString(name));
}
void removeNamespace () {
stack.pop();
}
}
| [
"jkrt3333@gmail.com"
] | jkrt3333@gmail.com |
10c10d1748ac747bb00d0bc371b5d2d336d377b4 | 87ffe6cef639e2b96b8d5236b5ace57e16499491 | /app/src/main/java/com/activeandroid/query/Delete.java | 6eed6e8ef2ddef0098496be42684479393d2f8f1 | [] | no_license | leerduo/FoodsNutrition | 24ffeea902754b84a2b9fbd3299cf4fceb38da3f | a448a210e54f789201566da48cc44eceb719b212 | refs/heads/master | 2020-12-11T05:45:34.531682 | 2015-08-28T04:35:05 | 2015-08-28T04:35:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 448 | java | package com.activeandroid.query;
import com.activeandroid.Model;
public final class Delete
implements Sqlable
{
public From a(Class<? extends Model> paramClass)
{
return new From(paramClass, this);
}
public String a()
{
return "DELETE ";
}
}
/* Location: D:\15036015\反编译\shiwuku\classes_dex2jar.jar
* Qualified Name: com.activeandroid.query.Delete
* JD-Core Version: 0.7.0-SNAPSHOT-20130630
*/ | [
"1060221762@qq.com"
] | 1060221762@qq.com |
79ab7b3f490666904fed5ef96b2a37fbf1e73d4d | 5cfaeebdc7c50ca23ee368fa372d48ed1452dfeb | /xd-missionmanage-service/src/main/java/com/xiaodou/mission/engine/listener/impl/AnswerOnedayListener.java | 64626ea0d731e0519ff86906ddbf41034c25deaf | [] | no_license | zdhuangelephant/xd_pro | c8c8ff6dfcfb55aead733884909527389e2c8283 | 5611b036968edfff0b0b4f04f0c36968333b2c3b | refs/heads/master | 2022-12-23T16:57:28.306580 | 2019-12-05T06:05:43 | 2019-12-05T06:05:43 | 226,020,526 | 0 | 2 | null | 2022-12-16T02:23:20 | 2019-12-05T05:06:27 | JavaScript | UTF-8 | Java | false | false | 917 | java | package com.xiaodou.mission.engine.listener.impl;
import com.xiaodou.mission.constants.MissionConstant;
import com.xiaodou.mission.engine.listener.AbstractEventListener;
import com.xiaodou.mission.engine.model.Context;
/**
* @name @see com.xiaodou.mission.engine.listener.impl.AnswerOnedayListener.java
* @CopyRright (c) 2017 by Corp.XiaodouTech
*
* @author <a href="mailto:zhaodan@corp.51xiaodou.com">zhaodan</a>
* @date 2017年12月26日
* @description 单天答题数监听器
* @version 1.0
*/
public class AnswerOnedayListener extends AbstractEventListener {
@Override
public String getCurrentNum(Context context) {
if (null != context && null != context.getCoreParam()
&& null != context.getCoreParam().getAnswerOneday()) {
return context.getCoreParam().getAnswerOneday().toString();
}
return MissionConstant.DEFAULT_THROHOLD_UNRECHED;
}
}
| [
"zedong.huang@bitmain.com"
] | zedong.huang@bitmain.com |
ce72c0c10346a2ff2c6ca282b6ee9150e9bf8e8d | ee83bdef1b73384bc1b50ee5781bc3ce01af4d88 | /app/src/main/java/presenter/fragment/WeiXingPresenter.java | 2042a37c9bf910f382cf9aada9a64118e9fb67cb | [] | no_license | Imitater/BattleWorld | 47c6034ac31d9ef9b5afe4e6223db40a3e431391 | e672d94fdc39fc444f640d2a3b34df5366a2b626 | refs/heads/master | 2020-04-06T09:24:00.466593 | 2018-11-13T07:57:58 | 2018-11-13T07:57:58 | 157,341,163 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 223 | java | package presenter.fragment;
import base.BasePresenterImpl;
import contract.fragment.WeiXingContract;
public class WeiXingPresenter extends BasePresenterImpl<WeiXingContract.View> implements WeiXingContract.Presenter{
}
| [
"1013273644@qq.com"
] | 1013273644@qq.com |
1fd9ffec9fe94483375999af0976763d0a008f02 | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/4/4_27f1ba875b4a2bf7a549e6aba1a3ebf1f84cb0d3/ContentStreamTest/4_27f1ba875b4a2bf7a549e6aba1a3ebf1f84cb0d3_ContentStreamTest_t.java | b9fedc64fa0ead09f3206c56a090c5e5b1e9770a | [] | 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,072 | 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.solr.common.util;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringReader;
import java.net.ConnectException;
import java.net.URL;
import java.net.URLConnection;
import org.apache.commons.io.IOUtils;
import org.apache.lucene.util.LuceneTestCase;
import org.apache.solr.common.util.ContentStreamBase;
import org.apache.solr.core.SolrResourceLoader;
/**
*/
public class ContentStreamTest extends LuceneTestCase
{
public void testStringStream() throws IOException
{
String input = "aads ghaskdgasgldj asl sadg ajdsg &jag # @ hjsakg hsakdg hjkas s";
ContentStreamBase stream = new ContentStreamBase.StringStream( input );
assertEquals( input.length(), stream.getSize().intValue() );
assertEquals( input, IOUtils.toString( stream.getStream(), "UTF-8" ) );
assertEquals( input, IOUtils.toString( stream.getReader() ) );
}
public void testFileStream() throws IOException
{
InputStream is = new SolrResourceLoader(null, null).openResource( "solrj/README" );
assertNotNull( is );
File file = new File(TEMP_DIR, "README");
FileOutputStream os = new FileOutputStream(file);
IOUtils.copy(is, os);
os.close();
ContentStreamBase stream = new ContentStreamBase.FileStream( file );
assertEquals( file.length(), stream.getSize().intValue() );
assertTrue( IOUtils.contentEquals( new FileInputStream( file ), stream.getStream() ) );
assertTrue( IOUtils.contentEquals( new FileReader( file ), stream.getReader() ) );
}
public void testURLStream() throws IOException
{
byte[] content = null;
String contentType = null;
URL url = new URL( "http://svn.apache.org/repos/asf/lucene/dev/trunk/" );
InputStream in = null;
try {
URLConnection conn = url.openConnection();
in = conn.getInputStream();
contentType = conn.getContentType();
content = IOUtils.toByteArray(in);
assumeTrue("not enough content for test to be useful",
content.length > 10 );
} catch (IOException ex) {
assumeNoException("Unable to connect to " + url + " to run the test.", ex);
}finally {
if (in != null) {
IOUtils.closeQuietly(in);
}
}
ContentStreamBase stream = new ContentStreamBase.URLStream( url );
in = stream.getStream(); // getStream is needed before getSize is valid
assertEquals( content.length, stream.getSize().intValue() );
try {
assertTrue( IOUtils.contentEquals(
new ByteArrayInputStream(content), in ) );
}
finally {
IOUtils.closeQuietly(in);
}
String charset = ContentStreamBase.getCharsetFromContentType(contentType);
if (charset == null)
charset = ContentStreamBase.DEFAULT_CHARSET;
// Re-open the stream and this time use a reader
stream = new ContentStreamBase.URLStream( url );
assertTrue( IOUtils.contentEquals( new StringReader(new String(content, charset)), stream.getReader() ) );
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
712478d9cdca839e81c486f7463eacaa8c562305 | fb5bfb5b4cf7a118cb858490953e69517d8060a4 | /src/ch12/ex22/Ex22.java | 64d513ceeca2bc70243cf2edefec490de4967446 | [] | no_license | v777779/jbook | 573dd1e4e3847ed51c9b6b66d2b098bf8eb58af5 | 09fc56a27e9aed797327f01ea955bdf1815d0d54 | refs/heads/master | 2021-09-19T08:14:16.299382 | 2018-07-25T14:03:12 | 2018-07-25T14:03:12 | 86,017,001 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 188 | java | package ch12.ex22;
import ch12.ex22.access.Access;
/**
* Created by V1 on 03-Mar-17.
*/
public class Ex22 {
public static void main(String[] args) {
Access.app();
}
}
| [
"vadim.v.voronov@gmail.com"
] | vadim.v.voronov@gmail.com |
f7a748a8e31697f365ce03ed43da4a8aa828d201 | 79c6e0bddbead42db766bb22cb7315d9ce2d3b6f | /ProjectTest/src/main/java/DistributeDataBase/rule/config/beans/Preffix.java | 736cdf5347f00aed43e91e7863f8f447ad9f238b | [] | no_license | LUCKYZHOUSTAR/ProjectTest | 6ac1b85c411e27b961b085b24b05f34d25819292 | 2d67dde598851dca4550fbd123134025405c0c25 | refs/heads/master | 2021-01-15T15:32:19.218585 | 2016-08-10T03:00:23 | 2016-08-10T03:00:23 | 54,181,033 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 704 | java | /**
*
*/
package DistributeDataBase.rule.config.beans;
/**
* @ClassName: Preffix
* @Description:
* @author LUCKY
* @date 2016年5月17日 下午6:51:32
*
*/
public class Preffix {
private String tbPreffix = "_";
private String tbType;
public Preffix() {
}
public Preffix(String pre) {
this.tbPreffix = pre;
}
public String getTbPreffix() {
return this.tbPreffix;
}
public void setTbPreffix(String tbPreffix) {
this.tbPreffix = tbPreffix;
}
public String getTbType() {
return this.tbType;
}
public void setTbType(String tbType) {
this.tbType = tbType;
}
} | [
"LUCKY@ZHOU"
] | LUCKY@ZHOU |
bdba80c4022ab4a1f821d115e73e3a3d5f0c15da | 5efc9a74aa9c0cf0041c9cee889af026d61b84b2 | /samples/modern-java/src/com/waylau/java/controlflow/SwitchDemo2.java | 210f3906de3491d699c71d989d860525b0cea43d | [] | no_license | waylau/modern-java-demos | f096c46ad79fe8f923265d1f06ac1f9b7b3c9965 | f55563bca7cd8d0b36bbca9714ccebfb450abcee | refs/heads/master | 2022-10-18T13:57:43.231936 | 2022-10-03T07:20:46 | 2022-10-03T07:20:46 | 163,201,354 | 118 | 25 | null | 2020-03-22T08:19:41 | 2018-12-26T17:11:01 | null | UTF-8 | Java | false | false | 783 | java | /**
* Welcome to https://waylau.com
*/
package com.waylau.java.controlflow;
/**
* Switch Demo2.
*
* @since 1.0.0 2019年4月3日
* @author <a href="https://waylau.com">Way Lau</a>
*/
class SwitchDemo2 {
/**
* @param args
*/
public static void main(String[] args) {
int month = 2;
int year = 2000;
int numDays = 0;
switch (month) {
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
numDays = 31;
break;
case 4:
case 6:
case 9:
case 11:
numDays = 30;
break;
case 2:
if (((year % 4 == 0) && !(year % 100 == 0)) || (year % 400 == 0))
numDays = 29;
else
numDays = 28;
break;
default:
System.out.println("Invalid month.");
break;
}
System.out.println("Number of Days = " + numDays);
}
}
| [
"waylau521@gmail.com"
] | waylau521@gmail.com |
bcfa8d33222f968692be1d9f9ea95a44b71f2012 | 877b6d945bf0f5a174004d02b9534d905e74af92 | /ArStation/src/main/java/com/funoble/myarstation/common/SyncData.java | 99b42721dd822d0c781c68524d1e4a5fab2f983f | [] | no_license | Hengle/arstation | 47906e828c2a39f638bd7599e6c999f49524061c | e5550072cfd381372770eba457002e1ea4c8b564 | refs/heads/master | 2020-07-17T06:58:06.861077 | 2017-07-26T12:56:22 | 2017-07-26T12:56:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 797 | java | /*******************************************************************************
* Copyright (C) 1998-2009 BBG Inc.All Rights Reserved.
* FileName: SyncData.java
* Description:
* History:
* 版本号 作者 日期 简要介绍相关操作
* 1.0 sunny 2009-11-9 Create
*******************************************************************************/
package com.funoble.myarstation.common;
/**
* <p>
* 数据同步类
* </p>
*/
public class SyncData
{
/**
* 当前登录的帐户
*/
public static String curAccount = null;
/**
* 通信协议版本号
*/
public static final int VERSION_P = 1000;
/**
* 软件版本号
*/
public static final int VERSION_S = 100;
}
| [
"wmzh0003@qq.com"
] | wmzh0003@qq.com |
a7fd7c0ace08132a42e9fd2efd74afff0a2ea7a7 | 05d0a9553358fbf159e566c403626de2718e17c9 | /hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/contract/ITestAbfsFileSystemContractSeek.java | 35a5e1733d0e6772d2bedc89209e4e0ec7c8119d | [
"CC-BY-2.5",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"EPL-1.0",
"Classpath-exception-2.0",
"GCC-exception-3.1",
"BSD-3-Clause",
"CC-PDDC",
"GPL-2.0-only",
"CDDL-1.0",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"GPL-1.0-or-later",
"LicenseRef-scancode-jdom"... | permissive | hopshadoop/hops | d8baaf20bc418af460e582974839a3a9a72f173a | ed0d4de3dadbde5afa12899e703954aa67db7b3b | refs/heads/master | 2023-08-31T20:36:31.212647 | 2023-08-28T15:31:37 | 2023-08-28T15:31:37 | 32,975,439 | 295 | 85 | Apache-2.0 | 2023-09-05T09:19:57 | 2015-03-27T08:31:42 | Java | UTF-8 | Java | false | false | 1,741 | 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.hadoop.fs.azurebfs.contract;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.contract.AbstractContractSeekTest;
import org.apache.hadoop.fs.contract.AbstractFSContract;
/**
* Contract test for seek operation.
*/
public class ITestAbfsFileSystemContractSeek extends AbstractContractSeekTest{
private final boolean isSecure;
private final ABFSContractTestBinding binding;
public ITestAbfsFileSystemContractSeek() throws Exception {
binding = new ABFSContractTestBinding();
this.isSecure = binding.isSecureMode();
}
@Override
public void setup() throws Exception {
binding.setup();
super.setup();
}
@Override
protected Configuration createConfiguration() {
return binding.getRawConfiguration();
}
@Override
protected AbstractFSContract createContract(final Configuration conf) {
return new AbfsFileSystemContract(conf, isSecure);
}
}
| [
"gautier@sics.se"
] | gautier@sics.se |
930f738e8845a2c1789e1d246247bab4a4e14fb8 | 25baed098f88fc0fa22d051ccc8027aa1834a52b | /src/main/java/com/ljh/bean/RSeekind.java | 94fe7f91e1a32973c13ab4b54dce3477bf627e76 | [] | no_license | woai555/ljh | a5015444082f2f39d58fb3e38260a6d61a89af9f | 17cf8f4415c9ae7d9fedae46cd9e9d0d3ce536f9 | refs/heads/master | 2022-07-11T06:52:07.620091 | 2022-01-05T06:51:27 | 2022-01-05T06:51:27 | 132,585,637 | 0 | 0 | null | 2022-06-17T03:29:19 | 2018-05-08T09:25:32 | Java | UTF-8 | Java | false | false | 1,650 | java | package com.ljh.bean;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
/**
* <p>
* 看诊类别代码表(R_SeeKind)
* </p>
*
* @author ljh
* @since 2020-10-26
*/
public class RSeekind implements Serializable {
private static final long serialVersionUID=1L;
/**
* 看诊类别代号
*/
@TableId(value = "SEEKIND_CODE", type = IdType.AUTO)
private String seekindCode;
/**
* 看诊类别名称
*/
private String seekindName;
/**
* 最近改动日期
*/
private LocalDateTime operDate;
/**
* 操作员
*/
private String operCode;
public String getSeekindCode() {
return seekindCode;
}
public void setSeekindCode(String seekindCode) {
this.seekindCode = seekindCode;
}
public String getSeekindName() {
return seekindName;
}
public void setSeekindName(String seekindName) {
this.seekindName = seekindName;
}
public LocalDateTime getOperDate() {
return operDate;
}
public void setOperDate(LocalDateTime operDate) {
this.operDate = operDate;
}
public String getOperCode() {
return operCode;
}
public void setOperCode(String operCode) {
this.operCode = operCode;
}
@Override
public String toString() {
return "RSeekind{" +
"seekindCode=" + seekindCode +
", seekindName=" + seekindName +
", operDate=" + operDate +
", operCode=" + operCode +
"}";
}
}
| [
"37681193+woai555@users.noreply.github.com"
] | 37681193+woai555@users.noreply.github.com |
192214cc060e46162c0cf3ba3668aa50210750ce | c3b2a39eb15ffcf037a17c762946edf24edd5f2b | /src/main/java/com/threepie/stocknewsticker/utils/Constants.java | 3a22eed86f1a738957d1772d49f23e377302335f | [
"MIT"
] | permissive | vishalshubham/StockNewsTicker | 1155617bc5b8d7c396c514e91961c96d604f08a3 | 52c57f1dff411d5dd50b87f811b341539fe076f8 | refs/heads/master | 2023-05-01T05:52:20.403513 | 2018-05-20T18:15:58 | 2018-05-20T18:15:58 | 132,367,716 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 487 | java | package com.threepie.stocknewsticker.utils;
public final class Constants {
public static final String NEWS_API_KEY = "bebc2e5b6fe64fdd94aadbb64fd02bfa";
public static final String NEWS_BASE_URL = "https://newsapi.org/v2/";
public static final String NEWS_API = "everything";
public static final String STOCK_API_KEY = "F0FYC65W5BBQBQI4";
public static final String STOCK_BASE_URL = "https://www.alphavantage.co/";
public static final String STOCK_API = "query";
}
| [
"vishal.shubham@gmail.com"
] | vishal.shubham@gmail.com |
a336dbe6fbc65dd4053a1329bf632fd9593daec6 | 11f58aaa997257f928e2a19dd21f5445e2effb2f | /src/leetcode/problem_0199/Solution.java | a49debd864af53921db3d5c55acc32d5ed1a5871 | [
"MIT"
] | permissive | husaynhakeem/Algorithms-Playground | 033cf768202f9a3b00e1b6f1679ee42b9f7a36c3 | 25dc5a7688f49b473c004dd90a7536417655ba5a | refs/heads/master | 2021-06-02T05:04:21.102476 | 2021-04-26T04:34:46 | 2021-04-26T04:34:46 | 115,767,706 | 25 | 12 | null | 2018-08-25T18:28:13 | 2017-12-30T02:14:31 | Java | UTF-8 | Java | false | false | 993 | java | package leetcode.problem_0199;
import Utilities.java.TreeUtils.Node;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
public class Solution {
public List<Integer> rightSideView(Node root) {
final List<Integer> results = new ArrayList<>();
if (root == null) {
return results;
}
final Queue<Node> nodes = new LinkedList<>();
nodes.offer(root);
while (!nodes.isEmpty()) {
final int size = nodes.size();
for (int i = 0; i < size; i++) {
final Node node = nodes.poll();
if (node.left != null) {
nodes.offer(node.left);
}
if (node.right != null) {
nodes.offer(node.right);
}
if (i == size - 1) {
results.add(node.val);
}
}
}
return results;
}
}
| [
"husaynhakeem@gmail.com"
] | husaynhakeem@gmail.com |
6175dd39def258873b8b6bb991dd32db0df47121 | 8530211786cb36e8e42fd91450a6fb66e93de961 | /src/main/java/com/project/quiz/web/pojo/Students.java | ef0c5f9913a9a769c5437c3f0f8c92d4ed1c880c | [
"Apache-2.0"
] | permissive | forteach/lineEduQuiz | 21e83c48f22ff8dc130bf3d15aaede716a82a339 | e86170482dbfba95700d46076e7c6ba0472c6d63 | refs/heads/master | 2022-07-10T02:46:31.561459 | 2022-06-28T08:52:13 | 2022-06-28T08:52:13 | 200,226,037 | 0 | 2 | Apache-2.0 | 2022-06-28T08:52:14 | 2019-08-02T11:51:08 | Java | UTF-8 | Java | false | false | 862 | java | package com.project.quiz.web.pojo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @Description: 学生信息
* @author: liu zhenming
* @version: V1.0
* @date: 2018/12/5 23:19
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "学生信息", description = "学生的简略信息")
public class Students {
/**
* 学生id
*/
@ApiModelProperty(value = "学生id", name = "id")
private String id;
/**
* 学生名字
*/
@ApiModelProperty(value = "学生名字", name = "name")
private String name;
/**
* 学生头像
*/
@ApiModelProperty(value = "学生头像", name = "portrait")
private String portrait;
}
| [
"zhang10092009@hotmail.com"
] | zhang10092009@hotmail.com |
5ebcd2fa0e22368011be2872c58197ec1836f3e1 | 0e06e096a9f95ab094b8078ea2cd310759af008b | /classes52-dex2jar/com/google/android/gms/games/zzcg.java | 742333596c2fd953c5de7812132f32acf47139f1 | [] | no_license | Manifold0/adcom_decompile | 4bc2907a057c73703cf141dc0749ed4c014ebe55 | fce3d59b59480abe91f90ba05b0df4eaadd849f7 | refs/heads/master | 2020-05-21T02:01:59.787840 | 2019-05-10T00:36:27 | 2019-05-10T00:36:27 | 185,856,424 | 1 | 2 | null | 2019-05-10T00:36:28 | 2019-05-09T19:04:28 | Java | UTF-8 | Java | false | false | 530 | java | //
// Decompiled by Procyon v0.5.34
//
package com.google.android.gms.games;
import android.support.annotation.Nullable;
import com.google.android.gms.common.api.Result;
import com.google.android.gms.games.multiplayer.turnbased.TurnBasedMatch;
import com.google.android.gms.games.multiplayer.turnbased.TurnBasedMultiplayer;
import com.google.android.gms.common.internal.PendingResultUtil$ResultConverter;
final class zzcg implements PendingResultUtil$ResultConverter<TurnBasedMultiplayer.LoadMatchResult, TurnBasedMatch>
{
}
| [
"querky1231@gmail.com"
] | querky1231@gmail.com |
61f893780d704835f8cf8efa825193961c3e21d0 | ed6114c245144b1b8851a8c833f4831925c7fa77 | /DesignPatterns/src/FactoryExamplePizzaAbstractFactory/ChicagoPizzaIngredientFactory.java | 681ad25ca58662ca9ab53af49fee1c955e3e771d | [] | no_license | timatimtem/DesignPattern | 998392a93823b5d0b9eacbd7d23bead8b5cc4de8 | 0f0b05545a5e9fd8119cbd790d9dc8e4088ab1ef | refs/heads/master | 2022-05-09T07:21:02.819008 | 2016-09-14T15:58:58 | 2016-09-14T15:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 757 | java | package FactoryExamplePizzaAbstractFactory;
public class ChicagoPizzaIngredientFactory implements PizzaIngredientFactory {
@Override
public Dough createDough() {
return new ThickCrustDough();
}
@Override
public Sauce createSauce() {
return new PlumTomatoSauce();
}
@Override
public Cheese createCheese() {
return new MozzarellaCheese();
}
@Override
public Veggies[] createVeggies() {
Veggies [] veggies = {new BlackOlives(), new Spinach(), new Eggplant()};
return veggies;
}
@Override
public Pepperoni createPepperoni() {
return new SlicedPepperoni();
}
@Override
public Clams createClam() {
return new FrozenClams();
}
}
| [
"timur10645@icloud.com"
] | timur10645@icloud.com |
72c6ce28e6d965fd8279c9af073c51e8735ca6da | d1ea5077c83cb2e93fe69e3d19a2e26efe894a0e | /src/main/java/com/rograndec/feijiayun/chain/business/retail/saleflow/dao/SaleMapper.java | b8fd75c4a82100f15305ca56993a2df5056e16c3 | [] | no_license | Catfeeds/rog-backend | e89da5a3bf184e4636169e7492a97dfd0deef2a1 | 109670cfec6cbe326b751e93e49811f07045e531 | refs/heads/master | 2020-04-05T17:36:50.097728 | 2018-10-22T16:23:55 | 2018-10-22T16:23:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,915 | java | package com.rograndec.feijiayun.chain.business.retail.saleflow.dao;
import com.rograndec.feijiayun.chain.business.retail.saleflow.entity.Sale;
import com.rograndec.feijiayun.chain.business.retail.saleflow.vo.SaleForPrescrVO;
import com.rograndec.feijiayun.chain.business.retail.special.vo.RequestSaleVo;
import com.rograndec.feijiayun.chain.inf.pos.sale.vo.POSOrderParamVO;
import com.rograndec.feijiayun.chain.inf.pos.sale.vo.POSOrderVO;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
public interface SaleMapper {
/**
*
* @mbg.generated
*/
int deleteByPrimaryKey(Long id);
/**
*
* @mbg.generated
*/
int insert(Sale record);
/**
*
* @mbg.generated
*/
int insertSelective(Sale record);
/**
*
* @mbg.generated
*/
Sale selectByPrimaryKey(Long id);
/**
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(Sale record);
/**
*
* @mbg.generated
*/
int updateByPrimaryKey(Sale record);
/**
* @Description: TODO根据交接班ID查询总数
* @author liuqun
* @version 1.0
* @date 2017年9月21日 下午7:23:49
* @param id
* @return
* @return Long
*/
Long querySaleCountByShiftId(Long id);
/**
* @Description: TODO根据交接班ID查询销售数据
* @author liuqun
* @version 1.0
* @date 2017年9月21日 下午7:26:32
* @param start
* @param pageSize
* @param id
* @param order
* @param sort
* @return
* @return List<Map>
*/
List<Map> selectSaleDataByShiftId(@Param("start")int start, @Param("pageSize")Integer pageSize,
@Param("id")Long id, @Param("order")String order, @Param("sort")String sort);
List<Sale> selectByIds(List<Long> ids);
/**
* @Description: TODO根据交接班ID修改saas_sale状态
* @author liuqun
* @version 1.0
* @date 2017年9月23日 下午3:07:23
* @param shiftId
* @return void
*/
void updatePaymentFlagByShiftId(Long shiftId);
List<SaleForPrescrVO> getSaleForPrescrList(@Param("enterpriseId")Long enterpriseId, @Param("startDate")String startDate,
@Param("endDate")String endDate,@Param("start")Integer start,@Param("pageSize")Integer pageSize);
Integer getCountSaleForPrescrList(@Param("enterpriseId")Long enterpriseId,@Param("startDate")String startDate,@Param("endDate")String endDate);
/**
* <获取待登记销售单数据>
*
* @Author: Zhengbin.jin 金正斌
* @Email: Zhengbin.jin@rograndec.com
* @2017/9/25 17:10
*/
List<Sale> listUnRegisterSale(RequestSaleVo requestSaleVo);
/**
* <获取待登记销售单数量>
*
* @Author: Zhengbin.jin 金正斌
* @Email: Zhengbin.jin@rograndec.com
* @2017/9/25 17:09
*/
int countUnRegisterSale(RequestSaleVo requestSaleVo);
List<Sale> queryByCodeAndEnterpriseId(
@Param("saleCode")String saleCode, @Param("enterpriseId")Long enterpriseId);
List<POSOrderVO> selectOrderPageDataByParam(@Param("param")POSOrderParamVO param, @Param("start")Integer start,
@Param("pageSize")Integer pageSize, @Param("enterpriseId")Long enterpriseId, @Param("saleType")Integer saleType);
Long queryOrderCountByParam(@Param("param")POSOrderParamVO param, @Param("enterpriseId")Long enterpriseId,
@Param("saleType")Integer saleType);
List<Sale> selectExecessSaleDataByEnterpriseId(Long enterpriseId);
List<Sale> querySaleReturnByCodeAndEnterpriseId(@Param("saleCode")String saleCode, @Param("enterpriseId")Long enterpriseId);
List<Sale> selectByEnterpriseIdByPayeeId(@Param("enterpriseId") Long enterpriseId, @Param("payeeId") Long payeeId);
List<Sale> selectByShiftId(@Param("shiftId") Long shiftId);
} | [
"ruifeng.jia@rograndec.com"
] | ruifeng.jia@rograndec.com |
8f7549aaa2cbd23bd4cbe9ef6dc3a765c135c801 | ee461488c62d86f729eda976b421ac75a964114c | /tags/HtmlUnit-2.10/src/test/java/com/gargoylesoftware/htmlunit/util/FalsifyingWebConnectionTest.java | 0291bcf0c4f24502dba3b61ea506282d9b37e7ce | [
"Apache-2.0"
] | permissive | svn2github/htmlunit | 2c56f7abbd412e6d9e0efd0934fcd1277090af74 | 6fc1a7d70c08fb50fef1800673671fd9cada4899 | refs/heads/master | 2023-09-03T10:35:41.987099 | 2015-07-26T13:12:45 | 2015-07-26T13:12:45 | 37,107,064 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 4,954 | java | /*
* Copyright (c) 2002-2012 Gargoyle Software Inc.
*
* 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.gargoylesoftware.htmlunit.util;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import com.gargoylesoftware.htmlunit.BrowserRunner;
import com.gargoylesoftware.htmlunit.CollectingAlertHandler;
import com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException;
import com.gargoylesoftware.htmlunit.MockWebConnection;
import com.gargoylesoftware.htmlunit.WebClient;
import com.gargoylesoftware.htmlunit.WebRequest;
import com.gargoylesoftware.htmlunit.WebResponse;
import com.gargoylesoftware.htmlunit.WebTestCase;
/**
* Tests for {@link FalsifyingWebConnection}.
*
* @version $Revision$
* @author Marc Guillemot
*/
@RunWith(BrowserRunner.class)
public class FalsifyingWebConnectionTest extends WebTestCase {
/**
* @throws Exception if the test fails
*/
@Test
public void blockSomeRequests() throws Exception {
final WebClient webClient = getWebClient();
final String html = "<html><head>\n"
+ "<script src='http://www.google-analytics.com/ga.js'></script>\n"
+ "<script src='myJs.js'></script>\n"
+ "</head><body>\n"
+ "hello world!"
+ "<body></html>";
final MockWebConnection mockConnection = new MockWebConnection();
mockConnection.setResponse(URL_FIRST, html);
mockConnection.setResponse(new URL(URL_FIRST.toExternalForm() + "myJs.js"), "alert('hello');");
webClient.setWebConnection(mockConnection);
final List<String> collectedAlerts = new ArrayList<String>();
webClient.setAlertHandler(new CollectingAlertHandler(collectedAlerts));
// create a WebConnection that filters google-analytics scripts
// c'tor configures connection on the web client
new FalsifyingWebConnection(webClient) {
@Override
public WebResponse getResponse(final WebRequest request) throws IOException {
if ("www.google-analytics.com".equals(request.getUrl().getHost())) {
return createWebResponse(request, "", "application/javascript"); // -> empty script
}
return super.getResponse(request);
}
};
webClient.getPage(URL_FIRST);
assertEquals(2, mockConnection.getRequestCount());
final String[] expectedAlerts = {"hello"};
assertEquals(expectedAlerts, collectedAlerts);
}
/**
* @throws Exception if the test fails
*/
@Test
public void simulateHttpError() throws Exception {
final WebClient webClient = getWebClient();
final String html = "<html><head>\n"
+ "<script src='myJs.js'></script>\n"
+ "</head><body>\n"
+ "hello world!"
+ "<body></html>";
final MockWebConnection mockConnection = new MockWebConnection();
mockConnection.setResponse(URL_FIRST, html);
mockConnection.setResponse(new URL(URL_FIRST.toExternalForm() + "myJs.js"), "alert('hello');");
webClient.setWebConnection(mockConnection);
final List<String> collectedAlerts = new ArrayList<String>();
webClient.setAlertHandler(new CollectingAlertHandler(collectedAlerts));
// first test this "site" when everything is ok
webClient.getPage(URL_FIRST);
final String[] expectedAlerts = {"hello"};
assertEquals(expectedAlerts, collectedAlerts);
// now simulate some server problems
// create a WebConnection that filters google-analytics scripts
// c'tor configures connection on the web client
new FalsifyingWebConnection(webClient) {
@Override
public WebResponse getResponse(final WebRequest request) throws IOException {
if (request.getUrl().getPath().endsWith(".js")) {
return createWebResponse(request, "", "text/html", 500, "Application Error");
}
return super.getResponse(request);
}
};
try {
webClient.getPage(URL_FIRST);
Assert.fail("HTTP Exception expected!");
}
catch (final FailingHttpStatusCodeException e) {
// that's fine
}
}
}
| [
"asashour@5f5364db-9458-4db8-a492-e30667be6df6"
] | asashour@5f5364db-9458-4db8-a492-e30667be6df6 |
4c1fa1dba859d5fe5ee6302a63225a6a9263348a | 8af1164bac943cef64e41bae312223c3c0e38114 | /results-java/mockito--mockito/31fec00e6f3db5458d6dfb6266811dd498f3ada5/after/CustomMatchersTest.java | 4c253a55b5ff183d6508875b10c7134d9571b3c8 | [] | 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,908 | java | /*
* Copyright (c) 2007 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockitousage.matchers;
import static org.mockito.Matchers.*;
import static org.mockito.Mockito.*;
import org.junit.Before;
import org.junit.Test;
import org.mockito.ArgumentMatcher;
import org.mockito.Mockito;
import org.mockitousage.IMethods;
import org.mockitoutil.TestBase;
@SuppressWarnings("serial")
public class CustomMatchersTest extends TestBase {
private final class ContainsFoo extends ArgumentMatcher<String> {
public boolean matches(Object arg) {
return ((String) arg).contains("foo");
}
}
private final class IsAnyBoolean extends ArgumentMatcher<Boolean> {
public boolean matches(Object arg) {
return true;
}
}
private final class IsSorZ extends ArgumentMatcher<Character> {
public boolean matches(Object arg) {
Character character = (Character) arg;
return character.equals('s') || character.equals('z');
}
}
private final class IsZeroOrOne<T extends Number> extends ArgumentMatcher<T> {
public boolean matches(Object arg) {
Number number = (Number) arg;
if (number.intValue() == 0 || number.intValue() == 1) {
return true;
}
return false;
}
}
private IMethods mock;
@Before
public void setUp() {
mock = Mockito.mock(IMethods.class);
}
@Test
public void shouldUseCustomBooleanMatcher() {
when(mock.oneArg(booleanThat(new IsAnyBoolean()))).thenReturn("foo");
assertEquals("foo", mock.oneArg(true));
assertEquals("foo", mock.oneArg(false));
assertEquals(null, mock.oneArg("x"));
}
@Test
public void shouldUseCustomCharMatcher() {
when(mock.oneArg(charThat(new IsSorZ()))).thenReturn("foo");
assertEquals("foo", mock.oneArg('s'));
assertEquals("foo", mock.oneArg('z'));
assertEquals(null, mock.oneArg('x'));
}
class Article {
private int pageNumber;
private String headline;
public Article(int pageNumber, String headline) {
super();
this.pageNumber = pageNumber;
this.headline = headline;
}
public int getPageNumber() {
return pageNumber;
}
public String getHeadline() {
return headline;
}
}
@Test
public void shouldUseCustomPrimitiveNumberMatchers() {
when(mock.oneArg(byteThat(new IsZeroOrOne<Byte>()))).thenReturn("byte");
when(mock.oneArg(shortThat(new IsZeroOrOne<Short>()))).thenReturn("short");
when(mock.oneArg(intThat(new IsZeroOrOne<Integer>()))).thenReturn("int");
when(mock.oneArg(longThat(new IsZeroOrOne<Long>()))).thenReturn("long");
when(mock.oneArg(floatThat(new IsZeroOrOne<Float>()))).thenReturn("float");
when(mock.oneArg(doubleThat(new IsZeroOrOne<Double>()))).thenReturn("double");
assertEquals("byte", mock.oneArg((byte) 0));
assertEquals("short", mock.oneArg((short) 1));
assertEquals("int", mock.oneArg(0));
assertEquals("long", mock.oneArg(1L));
assertEquals("float", mock.oneArg(0F));
assertEquals("double", mock.oneArg(1.0));
assertEquals(null, mock.oneArg(2));
assertEquals(null, mock.oneArg("foo"));
}
@Test
public void shouldUseCustomObjectMatcher() {
when(mock.oneArg(argThat(new ContainsFoo()))).thenReturn("foo");
assertEquals("foo", mock.oneArg("foo"));
assertEquals(null, mock.oneArg("bar"));
}
@Test
public void shouldCustomMatcherPrintDescriptionBasedOnName() {
mock.simpleMethod("foo");
try {
verify(mock).simpleMethod(containsTest());
fail();
} catch (AssertionError e) {
assertContains("<String that contains xxx>", e.getMessage());
}
}
private String containsTest() {
return argThat(new StringThatContainsXxx());
}
private final class StringThatContainsXxx extends ArgumentMatcher<String> {
public boolean matches(Object argument) {
String arg = (String) argument;
return arg.contains("xxx");
}
}
@Test
public void shouldAnonymousCustomMatcherPrintDefaultDescription() {
mock.simpleMethod("foo");
try {
verify(mock).simpleMethod((String) argThat(new ArgumentMatcher<Object>() {
@Override public boolean matches(Object argument) {
return false;
}}));
fail();
} catch (AssertionError e) {
assertContains("<custom argument matcher>", e.getMessage());
assertContains("foo", e.getMessage());
}
}
} | [
"fraczwojciech@gmail.com"
] | fraczwojciech@gmail.com |
0c7ac70139933afcdfdfaf413374a660ec0d0a14 | 790464692ab27babd6fd75ebe049c602a1e830cf | /hibernate_part9/src/com/lara/Employee1.java | 68c39e09d88f79dfd6303a5c32fd958963b827f7 | [
"MIT"
] | permissive | mkp1104/localEclipseWorkspaceJava | 1bbfbbe06984a2a75b749988fa3fe38873724891 | 3523a0400ac95c0495c2714b8fb17c05f03d8dba | refs/heads/master | 2021-05-02T03:03:52.121194 | 2018-03-09T13:21:36 | 2018-03-09T13:21:36 | 120,890,874 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 999 | java | package com.lara;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.AttributeOverride;
@Entity
@Table(name="Employee1")
@AttributeOverrides({
@AttributeOverride(name="id",column=@Column(name="id")),
@AttributeOverride(name="firstName",column=@Column(name="firstName")),
@AttributeOverride(name="age",column=@Column(name="age")),
@AttributeOverride(name="address",column=@Column(name="address")),
@AttributeOverride(name="city",column=@Column(name="city"))
})
public class Employee1 extends Person1
{
@Column(name="destinastion")
private String designation;
@Column(name="email")
private String email;
public String getDesignation() {
return designation;
}
public void setDesignation(String designation) {
this.designation = designation;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
}
| [
"manish.aec1104@gmail.com"
] | manish.aec1104@gmail.com |
02a828fd258df819e2a7bb0ad2421c6539988de6 | 21c290f1ab05e41a5c9fa611e1a740fad503d030 | /quantity/src/main/java/si/uom/quantity/MagneticFieldStrength.java | 2afc60e31382a2b88bc6e46f8955c658dd4932be | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | andi-huber/si-units | 6657559dcf27464d4d4f186111a0f9168a54abaa | e4833c7ee897a819bf059d38fe529bf417bb757c | refs/heads/master | 2020-06-04T04:08:10.933632 | 2019-06-21T16:32:24 | 2019-06-21T16:32:24 | 191,867,255 | 0 | 0 | null | 2019-06-14T03:02:44 | 2019-06-14T03:02:43 | null | UTF-8 | Java | false | false | 2,060 | java | /*
* International System of Units (SI)
* Copyright (c) 2005-2019, Jean-Marie Dautelle, Werner Keil and others.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions
* and the following disclaimer in the documentation and/or other materials provided with the distribution.
*
* 3. Neither the name of JSR-385, Units of Measurement nor the names of their 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 si.uom.quantity;
import javax.measure.Quantity;
/**
* Magnetic field strength.
* The system unit for this quantity is "A/m" (ampere per metre).
*
* @author <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a>
* @author <a href="mailto:units@catmedia.us">Werner Keil</a>
* @version 1.0.3
*/
public interface MagneticFieldStrength extends Quantity<MagneticFieldStrength> {
}
| [
"werner.keil@gmx.net"
] | werner.keil@gmx.net |
52e2f4021b9c44a0ece66d20005576a35ef7d496 | 385b02bafdc8cf5b525dc638e34809d248b82ee2 | /src/jelectrum/UtxoStatus.java | aa822e2eef249a75618b5bc1ea8969dd43a68a85 | [
"MIT"
] | permissive | SuBPaR42/jelectrum | beb564777f2b706714dc41f90836300798f0e415 | 3d39604f8505d5db41e9666da3f02f83ed0c6a23 | refs/heads/master | 2020-04-07T18:48:47.337998 | 2015-08-22T03:43:02 | 2015-08-22T03:43:02 | 41,253,087 | 0 | 0 | null | 2015-08-23T14:35:10 | 2015-08-23T14:35:10 | null | UTF-8 | Java | false | false | 762 | java | package jelectrum;
import com.google.bitcoin.core.Sha256Hash;
import com.google.bitcoin.core.Block;
public class UtxoStatus implements java.io.Serializable
{
public Sha256Hash block_hash;
public Sha256Hash prev_block_hash;
public boolean complete;
public UtxoStatus()
{
}
public UtxoStatus(Sha256Hash block_hash)
{
this.block_hash = block_hash;
this.complete = true;
}
public UtxoStatus(Sha256Hash block_hash, Sha256Hash prev_block_hash)
{
this.block_hash = block_hash;
this.prev_block_hash = prev_block_hash;
this.complete = false;
}
public Sha256Hash getBlockHash(){return block_hash;}
public boolean isConsistent(){return complete;}
public Sha256Hash getPrevBlockHash(){return prev_block_hash;}
}
| [
"fireduck@gmail.com"
] | fireduck@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.