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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
300e9b20a84a2b33c850f4528dc5e93abb5cb0f3
|
47da275d6b10915cc60d6fc3238b5bc243d6c5c1
|
/de.rcenvironment.components.excel.common/src/main/java/de/rcenvironment/components/excel/common/GarbageDestroyer.java
|
5e5eada212fa72e971620dad991419b4c0c06f57
|
[] |
no_license
|
rcenvironment/rce-test
|
aa325877be8508ee0f08181304a50bd97fa9f96c
|
392406e8ca968b5d8168a9dd3155d620b5631ab6
|
HEAD
| 2016-09-06T03:35:58.165632
| 2015-01-16T10:45:50
| 2015-01-16T10:45:50
| 29,299,206
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 409
|
java
|
/*
* Copyright (C) 2006-2014 DLR, Germany
*
* All rights reserved
*
* http://www.rcenvironment.de/
*/
package de.rcenvironment.components.excel.common;
/**
* Simple Thread-Class for calling garbage collector manually.
*
* @author Markus Kunde
*/
public class GarbageDestroyer implements Runnable {
@Override
public void run() {
System.gc();
}
}
|
[
"robert.mischke@dlr.de"
] |
robert.mischke@dlr.de
|
8010a33e1f92dfcc31d9969560e6493590d5c0f0
|
51efc4e6807c67caec3204b24e78fa41351e77ef
|
/SystemApp/Dialer_AS/app/src/main/java/com/android/voicemail/impl/SubscriptionInfoHelper.java
|
ea607c47e7fac72d5861a70c6d2257b81d637950
|
[] |
no_license
|
skypep/WorkSpace
|
88942bf0ff381095dd8b684b20ff40929ddd64d8
|
8bf9987094a86cfa9321758ed12f75307ff7e093
|
refs/heads/master
| 2020-03-29T19:07:13.013950
| 2018-11-30T10:04:46
| 2018-11-30T10:04:46
| 150,248,577
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,996
|
java
|
/**
* Copyright (C) 2014 The Android Open Source Project
*
* <p>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
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
*
* <p>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.voicemail.impl;
import android.app.ActionBar;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.telecom.PhoneAccountHandle;
import android.telephony.SubscriptionInfo;
import android.telephony.SubscriptionManager;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import java.util.List;
/**
* Helper for manipulating intents or components with subscription-related information.
*
* <p>In settings, subscription ids and labels are passed along to indicate that settings are being
* changed for particular subscriptions. This helper provides functions for helping extract this
* info and perform common operations using this info.
*/
public class SubscriptionInfoHelper {
public static final int NO_SUB_ID = -1;
public static final int INVALID_SIM_SLOT_INDEX = -1;
// Extra on intent containing the id of a subscription.
public static final String SUB_ID_EXTRA =
"com.android.phone.settings.SubscriptionInfoHelper.SubscriptionId";
// Extra on intent containing the label of a subscription.
private static final String SUB_LABEL_EXTRA =
"com.android.phone.settings.SubscriptionInfoHelper.SubscriptionLabel";
private static Context mContext;
private int mSubId = NO_SUB_ID;
private int mSlotIndex = INVALID_SIM_SLOT_INDEX;
private String mSubLabel;
private PhoneAccountHandle mPhoneAccountHandle;
/** Instantiates the helper, by parsing the subscription id and label from the phone account. */
public SubscriptionInfoHelper(Context context, PhoneAccountHandle phoneAccountHandle) {
mContext = context;
SubscriptionManager sm = SubscriptionManager.from(mContext);
List<SubscriptionInfo> subInfoList = sm.getActiveSubscriptionInfoList();
if (phoneAccountHandle != null && !TextUtils.isEmpty(phoneAccountHandle.getId())
&& subInfoList != null) {
for (SubscriptionInfo subInfo : subInfoList) {
if (phoneAccountHandle.getId().startsWith(subInfo.getIccId())) {
mSubId = subInfo.getSubscriptionId();
mSubLabel = subInfo.getDisplayName().toString();
mSlotIndex = subInfo.getSimSlotIndex();
break;
}
}
}
}
public SubscriptionInfoHelper(Context context, String accountId) {
mContext = context;
SubscriptionManager sm = SubscriptionManager.from(mContext);
List<SubscriptionInfo> subInfoList = sm.getActiveSubscriptionInfoList();
if (!TextUtils.isEmpty(accountId)
&& subInfoList != null) {
for (SubscriptionInfo subInfo : subInfoList) {
if (accountId.startsWith(subInfo.getIccId())) {
mSubId = subInfo.getSubscriptionId();
mSubLabel = subInfo.getDisplayName().toString();
mSlotIndex = subInfo.getSimSlotIndex();
break;
}
}
}
}
public Intent getConfiguringVoiceMailIntent() {
Intent intent = new Intent(TelephonyManager.ACTION_CONFIGURE_VOICEMAIL);
if (hasSubId()) {
intent.putExtra(SUB_ID_EXTRA, mSubId);
if (!TextUtils.isEmpty(mSubLabel)) {
intent.putExtra(SUB_LABEL_EXTRA, mSubLabel);
}
}
return intent;
}
public boolean hasSubId() {
return mSubId != NO_SUB_ID;
}
public int getSubId() {
return mSubId;
}
public int getSimSlotIndex() {
return mSlotIndex;
}
}
|
[
"lj@toro-tech.com"
] |
lj@toro-tech.com
|
d27067aef59c24e207e6db13a0e9a3cb656e610d
|
d50f4735640f99ff9321b3871a6680a015cd8ce6
|
/mil.dod.th.ose.remote/src/mil/dod/th/ose/remote/RemoteSettingsImpl.java
|
5013c7c4b10c9043dff31d3190d307f3ddbb56cc
|
[
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
LlamaWithOwl/OSUS-R
|
c7f55f9449e66028e387369680eed97c6afaaac6
|
d0ddfeae3ff8598f1d2a4fb953f1b9d90c12fb06
|
refs/heads/master
| 2021-01-24T18:47:06.624676
| 2016-11-28T19:22:53
| 2016-11-28T19:22:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,344
|
java
|
//==============================================================================
// This software is part of the Open Standard for Unattended Sensors (OSUS)
// reference implementation (OSUS-R).
//
// To the extent possible under law, the author(s) have dedicated all copyright
// and related and neighboring rights to this software to the public domain
// worldwide. This software is distributed without any warranty.
//
// You should have received a copy of the CC0 Public Domain Dedication along
// with this software. If not, see
// <http://creativecommons.org/publicdomain/zero/1.0/>.
//==============================================================================
package mil.dod.th.ose.remote;
import java.util.HashMap;
import java.util.Map;
import aQute.bnd.annotation.component.Activate;
import aQute.bnd.annotation.component.Component;
import aQute.bnd.annotation.component.ConfigurationPolicy;
import aQute.bnd.annotation.component.Modified;
import aQute.bnd.annotation.metatype.Configurable;
import mil.dod.th.ose.remote.api.RemoteSettings;
import org.osgi.framework.BundleContext;
/**
* Implementation of {@link RemoteSettings}.
*/
@Component(name = RemoteSettings.PID, designate = RemoteSettingsConfig.class,
configurationPolicy = ConfigurationPolicy.optional, immediate = true)
public class RemoteSettingsImpl implements RemoteSettings // TODO: TH-700 - shouldn't need to be immediate, but helps
{ //keep this component active
/**
* Name of the OSGi framework property containing the default behavior for this component.
*/
public static final String ENCRYPTION_FRAMEWORK_PROPERTY = "mil.dod.th.ose.remote.encryption.level";
/**
* True if we want to log remote messages.
*/
private boolean m_IsLogRemoteMessagesEnabled;
/**
* Encryption mode.
*/
private EncryptionMode m_EncryptionMode;
/**
* Message size, in bytes.
*/
private long m_MaxMsgSizeInBytes;
/**
* The bundle context from the bundle containing this component.
*/
private BundleContext m_Context;
/**
* Activate this component.
*
* @param context
* context for this bundle
* @param props
* properties to use for this component
*/
@Activate
public void activate(final BundleContext context, final Map<String, Object> props)
{
m_Context = context;
updateProps(props);
}
/**
* Called when the properties of this component are modified.
*
* @param props
* new properties
*/
@Modified
public void modified(final Map<String, Object> props)
{
updateProps(props);
}
@Override
public boolean isLogRemoteMessagesEnabled()
{
return m_IsLogRemoteMessagesEnabled;
}
@Override
public EncryptionMode getEncryptionMode()
{
return m_EncryptionMode;
}
/**
* Update the properties of this component.
*
* @param props
* new properties
*/
private void updateProps(final Map<String, Object> props)
{
//new map of properties the original is read only
final Map<String, Object> newProperties = new HashMap<String, Object>(props);
//framework property
final String frameworkProp = m_Context.getProperty(ENCRYPTION_FRAMEWORK_PROPERTY);
//check if there is already a configuration property, if not use framework, if framework is null
//use default of NONE
if (props.get(RemoteSettings.KEY_ENCRYPTION_MODE) == null && frameworkProp != null)
{
newProperties.put(RemoteSettings.KEY_ENCRYPTION_MODE, EncryptionMode.valueOf(frameworkProp));
}
final RemoteSettingsConfig config = Configurable.createConfigurable(RemoteSettingsConfig.class, newProperties);
m_IsLogRemoteMessagesEnabled = config.logRemoteMessages();
m_EncryptionMode = config.encryptionMode();
m_MaxMsgSizeInBytes = config.maxMsgSizeInBytes();
}
/* (non-Javadoc)
* @see mil.dod.th.ose.remote.RemoteSettings#getMaxMessageSize()
*/
@Override
public long getMaxMessageSize()
{
return m_MaxMsgSizeInBytes;
}
}
|
[
"darren.landoll@udri.udayton.edu"
] |
darren.landoll@udri.udayton.edu
|
90e4834a88321d8c9019fd0c0b1170040491e7bc
|
f8d31528e4dca2a6340b434bffd5ba6a2cacafcd
|
/jdk8src/src/main/java/sun/util/resources/cldr/es/CurrencyNames_es_EC.java
|
3cea9d2ff3d5d0c66226102359d7bf01482de810
|
[] |
no_license
|
uptonking/jdksrc
|
1871ad9c312845f6873d741db2f13837f046232d
|
d628a733240986c59d96185acef84283e1b5aff5
|
refs/heads/master
| 2021-09-15T00:10:18.103059
| 2018-03-03T12:31:24
| 2018-03-03T12:31:24
| 109,384,307
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,626
|
java
|
/*
* Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* COPYRIGHT AND PERMISSION NOTICE
*
* Copyright (C) 1991-2012 Unicode, Inc. All rights reserved. Distributed under
* the Terms of Use in http://www.unicode.org/copyright.html.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of the Unicode data files and any associated documentation (the "Data
* Files") or Unicode software and any associated documentation (the
* "Software") to deal in the Data Files or Software without restriction,
* including without limitation the rights to use, copy, modify, merge,
* publish, distribute, and/or sell copies of the Data Files or Software, and
* to permit persons to whom the Data Files or Software are furnished to do so,
* provided that (a) the above copyright notice(s) and this permission notice
* appear with all copies of the Data Files or Software, (b) both the above
* copyright notice(s) and this permission notice appear in associated
* documentation, and (c) there is clear notice in each modified Data File or
* in the Software as well as in the documentation associated with the Data
* File(s) or Software that the data or software has been modified.
*
* THE DATA FILES AND SOFTWARE ARE 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 OF
* THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
* INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR
* CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THE DATA FILES OR SOFTWARE.
*
* Except as contained in this notice, the name of a copyright holder shall not
* be used in advertising or otherwise to promote the sale, use or other
* dealings in these Data Files or Software without prior written authorization
* of the copyright holder.
*/
package sun.util.resources.cldr.es;
import sun.util.resources.OpenListResourceBundle;
public class CurrencyNames_es_EC extends OpenListResourceBundle {
@Override
protected final Object[][] getContents() {
final Object[][] data = new Object[][] {
{ "USD", "$" },
};
return data;
}
}
|
[
"jinyaoo86@gmail.com"
] |
jinyaoo86@gmail.com
|
b7a6277b374c089760b4f1a6af5af1e0055be248
|
6193f2aab2b5aba0fcf24c4876cdcb6f19a1be88
|
/hgpu/src/public/nc/vo/hg/pu/check/oldmaterials/CritiCHK.java
|
46d3bb95d6c19ffac5f422fd6ff7c2b36bb11c89
|
[] |
no_license
|
uwitec/nc-wandashan
|
60b5cac6d1837e8e1e4f9fbb1cc3d9959f55992c
|
98d9a19dc4eb278fa8aa15f120eb6ebd95e35300
|
refs/heads/master
| 2016-09-06T12:15:04.634079
| 2011-11-05T02:29:15
| 2011-11-05T02:29:15
| 41,097,642
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 809
|
java
|
package nc.vo.hg.pu.check.oldmaterials;
import java.util.ArrayList;
import nc.vo.trade.comcheckunique.IUniqueFieldCheck;
import nc.vo.trade.pub.IBDGetCheckClass;
import nc.vo.trade.pub.IRetCurrentDataAfterSave;
public class CritiCHK implements IUniqueFieldCheck, IBDGetCheckClass,IRetCurrentDataAfterSave{
public ArrayList getFieldArray() {
// TODO Auto-generated method stub
return null;
}
public ArrayList getNameArray() {
// TODO Auto-generated method stub
return null;
}
public boolean isDetail() {
// TODO Auto-generated method stub
return false;
}
public boolean isSingleTable() {
// TODO Auto-generated method stub
return false;
}
public String getCheckClass() {
return "nc.bs.hg.pu.check.oldmaterials.OldmaterialsCheckCHK";
}
}
|
[
"liuyushi_alice@163.com"
] |
liuyushi_alice@163.com
|
c3e6b59bb30466c809165054c2f5dec760b08924
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.mm/classes.jar/com/tencent/mm/plugin/editor/model/a/m.java
|
59796db464063b4b1e81ef90aa79587621694fb8
|
[] |
no_license
|
tsuzcx/qq_apk
|
0d5e792c3c7351ab781957bac465c55c505caf61
|
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
|
refs/heads/main
| 2022-07-02T10:32:11.651957
| 2022-02-01T12:41:38
| 2022-02-01T12:41:38
| 453,860,108
| 36
| 9
| null | 2022-01-31T09:46:26
| 2022-01-31T02:43:22
|
Java
|
UTF-8
|
Java
| false
| false
| 480
|
java
|
package com.tencent.mm.plugin.editor.model.a;
public final class m
extends f
{
public Boolean xyA = Boolean.FALSE;
public Boolean xyz = Boolean.FALSE;
public final String dwe()
{
return this.xyq;
}
public final int getType()
{
return 4;
}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes6.jar
* Qualified Name: com.tencent.mm.plugin.editor.model.a.m
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
9284298f8e1f4ca12e1bb6d9d93b7ef0b3af4f5a
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/2/2_485f69c20465dd994a3bc406c8334a809b1a86b4/SensAppHelper/2_485f69c20465dd994a3bc406c8334a809b1a86b4_SensAppHelper_s.java
|
1b5836c1f004e4e54eef6d7aa2e29549561623f2
|
[] |
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
| 6,531
|
java
|
package org.sensapp.android.sensappdroid.api;
import org.sensapp.android.sensappdroid.contract.SensAppContract;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.ActivityNotFoundException;
import android.content.ContentValues;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.net.Uri;
public class SensAppHelper {
public static Uri insertMeasure(Context context, String sensor, int value) throws IllegalArgumentException {
return insertMeasure(context, sensor, String.valueOf(value));
}
public static Uri insertMeasure(Context context, String sensor, float value) throws IllegalArgumentException {
return insertMeasure(context, sensor, String.valueOf(value));
}
public static Uri insertMeasure(Context context, String sensor, String value) throws IllegalArgumentException {
if (context == null) {
throw new IllegalArgumentException("The context is null");
}
if (sensor == null) {
throw new IllegalArgumentException("The sensor is null");
} else if (!isSensorRegistered(context, sensor)) {
throw new IllegalArgumentException(sensor + " is not maintained");
}
if (value == null) {
throw new IllegalArgumentException("The value is null");
}
ContentValues values = new ContentValues();
values.put(SensAppContract.Measure.SENSOR, sensor);
values.put(SensAppContract.Measure.VALUE, value);
values.put(SensAppContract.Measure.BASETIME, 0);
values.put(SensAppContract.Measure.TIME, System.currentTimeMillis() / 1000);
return context.getContentResolver().insert(SensAppContract.Measure.CONTENT_URI, values);
}
public static Uri insertMeasure(Context context, String sensor, int value, long basetime, long time) throws IllegalArgumentException {
return insertMeasure(context, sensor, String.valueOf(value), basetime, time);
}
public static Uri insertMeasure(Context context, String sensor, float value, long basetime, long time) throws IllegalArgumentException {
return insertMeasure(context, sensor, String.valueOf(value), basetime, time);
}
public static Uri insertMeasure(Context context, String sensor, String value, long basetime, long time) throws IllegalArgumentException {
if (context == null) {
throw new IllegalArgumentException("The context is null");
}
if (sensor == null) {
throw new IllegalArgumentException("The sensor is null");
} else if (!isSensorRegistered(context, sensor)) {
throw new IllegalArgumentException(sensor + " is not maintained");
}
if (value == null) {
throw new IllegalArgumentException("The value is null");
}
ContentValues values = new ContentValues();
values.put(SensAppContract.Measure.SENSOR, sensor);
values.put(SensAppContract.Measure.VALUE, value);
values.put(SensAppContract.Measure.BASETIME, basetime);
values.put(SensAppContract.Measure.TIME, time);
return context.getContentResolver().insert(SensAppContract.Measure.CONTENT_URI, values);
}
public static Uri registerNumericalSensor(Context context, String name, String description, SensAppUnit unit) throws IllegalArgumentException {
return registerSensor(context, name, description, unit, SensAppTemplate.numerical);
}
public static Uri registerStringSensor(Context context, String name, String description, SensAppUnit unit) throws IllegalArgumentException {
return registerSensor(context, name, description, unit, SensAppTemplate.string);
}
public static boolean isSensAppInstalled(Context context) {
try{
context.getPackageManager().getApplicationInfo("org.sensapp.android.sensappdroid", 0);
} catch (PackageManager.NameNotFoundException e ) {
return false;
}
return true;
}
public static Dialog getInstallationDialog(final Context context) {
AlertDialog.Builder builder = new AlertDialog.Builder(context);
builder.setMessage("SensApp application is needed. Would you like install it now?");
builder.setCancelable(false);
builder.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
Uri uri = Uri.parse("market://details?id=" + "org.sensapp.android.sensappdroid");
try {
context.startActivity(new Intent(Intent.ACTION_VIEW, uri));
} catch (ActivityNotFoundException e) {
e.printStackTrace();
}
}
});
builder.setNegativeButton("No", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
return builder.create();
}
private static Uri registerSensor(Context context, String name, String description, SensAppUnit unit, SensAppTemplate template) throws IllegalArgumentException {
if (context == null) {
throw new IllegalArgumentException("The context is null");
}
if (name == null) {
throw new IllegalArgumentException("The sensor name is null");
} else if (isSensorRegistered(context, name)) {
return null;
}
if (unit == null) {
throw new IllegalArgumentException("The sensor unit is null");
}
ContentValues values = new ContentValues();
values.put(SensAppContract.Sensor.NAME, name);
if (description == null) {
values.put(SensAppContract.Sensor.DESCRIPTION, "");
}
values.put(SensAppContract.Sensor.UNIT, unit.getIANAUnit());
values.put(SensAppContract.Sensor.BACKEND, SensAppBackend.raw.getBackend());
values.put(SensAppContract.Sensor.TEMPLATE, template.getTemplate());
return context.getContentResolver().insert(SensAppContract.Sensor.CONTENT_URI, values);
}
private static boolean isSensorRegistered(Context context, String name) {
Cursor c = context.getContentResolver().query(Uri.parse(SensAppContract.Sensor.CONTENT_URI + "/" + name), null, null, null, null);
boolean isRegistered = c.getCount() > 0;
c.close();
return isRegistered;
}
private static enum SensAppBackend {
raw("raw");
private String backend;
private SensAppBackend(String backend) {
this.backend = backend;
}
public String getBackend() {
return backend;
}
}
private static enum SensAppTemplate {
string("String"),
numerical("Numerical");
private String template;
private SensAppTemplate(String template) {
this.template = template;
}
public String getTemplate() {
return template;
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
379da8bb83a423cdbd031990ee5df86694d1cf40
|
12b7d3c487be96453dbe3d539cb2a7fb9f1854ab
|
/aTalk/src/main/java/net/java/sip/communicator/impl/protocol/jabber/extensions/jingleinfo/StunExtensionElement.java
|
c66d2c74cfeca7ccdf9477e19403cc1a4dc770b2
|
[
"Apache-2.0"
] |
permissive
|
zhiji6/atalk-android
|
8d74abe9894cbc181b9c96039bba986fd82ac65a
|
37140a66dd7436bd26273202d202c0d994a18645
|
refs/heads/master
| 2020-04-28T15:09:32.187611
| 2019-03-04T09:09:02
| 2019-03-04T09:09:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 756
|
java
|
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.protocol.jabber.extensions.jingleinfo;
import net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractExtensionElement;
/**
* Stun packet extension.
*
* @author Sebastien Vincent
* @author Eng Chong Meng
*/
public class StunExtensionElement extends AbstractExtensionElement
{
/**
* The namespace.
*/
public static final String NAMESPACE = "google:jingleinfo";
/**
* The element name.
*/
public static final String ELEMENT_NAME = "stun";
/**
* Constructor.
*/
public StunExtensionElement()
{
super(ELEMENT_NAME, NAMESPACE);
}
}
|
[
"cmeng.gm@gmail.com"
] |
cmeng.gm@gmail.com
|
a034238df3e56e31e9509fea378e8fb4b93f0dd3
|
a2440dbe95b034784aa940ddc0ee0faae7869e76
|
/modules/lwjgl/harfbuzz/src/generated/java/org/lwjgl/util/harfbuzz/hb_paint_pop_group_func_t.java
|
fcdbced9f8465e89f011508a1a056dfe90d3f7b3
|
[
"LGPL-2.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive",
"MIT-Modern-Variant"
] |
permissive
|
LWJGL/lwjgl3
|
8972338303520c5880d4a705ddeef60472a3d8e5
|
67b64ad33bdeece7c09b0f533effffb278c3ecf7
|
refs/heads/master
| 2023-08-26T16:21:38.090410
| 2023-08-26T16:05:52
| 2023-08-26T16:05:52
| 7,296,244
| 4,835
| 1,004
|
BSD-3-Clause
| 2023-09-10T12:03:24
| 2012-12-23T15:40:04
|
Java
|
UTF-8
|
Java
| false
| false
| 2,438
|
java
|
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.util.harfbuzz;
import javax.annotation.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.MemoryUtil.*;
/**
* <h3>Type</h3>
*
* <pre><code>
* void (*{@link #invoke}) (
* hb_paint_funcs_t *funcs,
* void *paint_data,
* hb_paint_composite_mode_t mode,
* void *user_data
* )</code></pre>
*/
public abstract class hb_paint_pop_group_func_t extends Callback implements hb_paint_pop_group_func_tI {
/**
* Creates a {@code hb_paint_pop_group_func_t} instance from the specified function pointer.
*
* @return the new {@code hb_paint_pop_group_func_t}
*/
public static hb_paint_pop_group_func_t create(long functionPointer) {
hb_paint_pop_group_func_tI instance = Callback.get(functionPointer);
return instance instanceof hb_paint_pop_group_func_t
? (hb_paint_pop_group_func_t)instance
: new Container(functionPointer, instance);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code functionPointer} is {@code NULL}. */
@Nullable
public static hb_paint_pop_group_func_t createSafe(long functionPointer) {
return functionPointer == NULL ? null : create(functionPointer);
}
/** Creates a {@code hb_paint_pop_group_func_t} instance that delegates to the specified {@code hb_paint_pop_group_func_tI} instance. */
public static hb_paint_pop_group_func_t create(hb_paint_pop_group_func_tI instance) {
return instance instanceof hb_paint_pop_group_func_t
? (hb_paint_pop_group_func_t)instance
: new Container(instance.address(), instance);
}
protected hb_paint_pop_group_func_t() {
super(CIF);
}
hb_paint_pop_group_func_t(long functionPointer) {
super(functionPointer);
}
private static final class Container extends hb_paint_pop_group_func_t {
private final hb_paint_pop_group_func_tI delegate;
Container(long functionPointer, hb_paint_pop_group_func_tI delegate) {
super(functionPointer);
this.delegate = delegate;
}
@Override
public void invoke(long funcs, long paint_data, int mode, long user_data) {
delegate.invoke(funcs, paint_data, mode, user_data);
}
}
}
|
[
"iotsakp@gmail.com"
] |
iotsakp@gmail.com
|
6c21fa1c21a904ceb923645a400eda2611b77434
|
a88059ba13e91c6ebff9fe20a793de48f07e39e8
|
/app/src/main/java/com/xiyang/xiyang/model/Fragment1Model.java
|
145d408c7cc3b5e7dd7a2ad9990ce02a7c61c517
|
[] |
no_license
|
Yunzhong-Zhou/XiYang
|
8afb5383e34c41070613a378899e8ff9a11cf56d
|
9882a016a5ca2212105aec066ac1d0a7c917fcca
|
refs/heads/master
| 2023-07-07T08:36:59.301022
| 2021-08-13T08:53:07
| 2021-08-13T08:53:07
| 351,667,184
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,197
|
java
|
package com.xiyang.xiyang.model;
import java.io.Serializable;
import java.util.List;
/**
* Created by Mr.Z on 2021/3/29.
*/
public class Fragment1Model implements Serializable {
/**
* manageMerchantNum : 0
* signMerchantNum : 2
* recommendMerchantNum : 0
* money : 100000
* waitSign : [{"id":"1411240609229967360","name":"商户名称","createTime":null},{"id":"1411989698812973056","name":"商户名称1","createTime":null}]
* waitCheck : []
* hasRefuse : []
* hasChecked : []
* merchantsList : [{"id":"1411240609229967360","name":"商户名称","image":"http://xiyang-oms.oss-cn-shanghai.aliyuncs.com/2021/07/03/16253009550771625300772843.png","deviceNum":null,"address":"阿斯顿马丁路德金阿斯顿","status":"3","statusTitle":null,"money":null,"bddescription":null},{"id":"1411989698812973056","name":"商户名称1","image":"http://xiyang-oms.oss-cn-shanghai.aliyuncs.com/2021/07/05/16254795519841625479367281.png","deviceNum":null,"address":"啊水电费阿斯顿","status":"3","statusTitle":null,"money":null,"bddescription":null}]
*/
private String manageMerchantNum;
private String signMerchantNum;
private String recommendMerchantNum;
private String money;
private List<WaitSignBean> waitSign;
private List<WaitSignBean> waitCheck;
private List<WaitSignBean> hasRefuse;
private List<WaitSignBean> hasChecked;
private List<MerchantsListBean> merchantsList;
public String getManageMerchantNum() {
return manageMerchantNum;
}
public void setManageMerchantNum(String manageMerchantNum) {
this.manageMerchantNum = manageMerchantNum;
}
public String getSignMerchantNum() {
return signMerchantNum;
}
public void setSignMerchantNum(String signMerchantNum) {
this.signMerchantNum = signMerchantNum;
}
public String getRecommendMerchantNum() {
return recommendMerchantNum;
}
public void setRecommendMerchantNum(String recommendMerchantNum) {
this.recommendMerchantNum = recommendMerchantNum;
}
public String getMoney() {
return money;
}
public void setMoney(String money) {
this.money = money;
}
public List<WaitSignBean> getWaitSign() {
return waitSign;
}
public void setWaitSign(List<WaitSignBean> waitSign) {
this.waitSign = waitSign;
}
public List<WaitSignBean> getWaitCheck() {
return waitCheck;
}
public void setWaitCheck(List<WaitSignBean> waitCheck) {
this.waitCheck = waitCheck;
}
public List<WaitSignBean> getHasRefuse() {
return hasRefuse;
}
public void setHasRefuse(List<WaitSignBean> hasRefuse) {
this.hasRefuse = hasRefuse;
}
public List<WaitSignBean> getHasChecked() {
return hasChecked;
}
public void setHasChecked(List<WaitSignBean> hasChecked) {
this.hasChecked = hasChecked;
}
public List<MerchantsListBean> getMerchantsList() {
return merchantsList;
}
public void setMerchantsList(List<MerchantsListBean> merchantsList) {
this.merchantsList = merchantsList;
}
public static class WaitSignBean {
/**
* id : 1411240609229967360
* name : 商户名称
* createTime : null
*/
private String id;
private String name;
private String createTime;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
}
public static class MerchantsListBean {
/**
* id : 1411240609229967360
* name : 商户名称
* image : http://xiyang-oms.oss-cn-shanghai.aliyuncs.com/2021/07/03/16253009550771625300772843.png
* deviceNum : null
* address : 阿斯顿马丁路德金阿斯顿
* status : 3
* statusTitle : null
* money : null
* bddescription : null
*/
private String id;
private String name;
private String image;
private String storeNum;
private String address;
private String status;
private String statusTitle;
private String money;
private String bddescription;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getImage() {
return image;
}
public void setImage(String image) {
this.image = image;
}
public String getStoreNum() {
return storeNum;
}
public void setStoreNum(String storeNum) {
this.storeNum = storeNum;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getStatusTitle() {
return statusTitle;
}
public void setStatusTitle(String statusTitle) {
this.statusTitle = statusTitle;
}
public String getMoney() {
return money;
}
public void setMoney(String money) {
this.money = money;
}
public String getBddescription() {
return bddescription;
}
public void setBddescription(String bddescription) {
this.bddescription = bddescription;
}
}
}
|
[
"1125213018@qq.com"
] |
1125213018@qq.com
|
71923a6c2b0456e45888a000555d185b35ffc026
|
7c23099374591bc68283712ad4e95f977f8dd0d2
|
/com/google/android/gms/common/api/BatchResultToken.java
|
903db86ba1f79ec3edf630929e815068e7d15540
|
[] |
no_license
|
eFOIA-12/eFOIA
|
736af184a67de80c209c2719c8119fc260e9fe3e
|
e9add4119191d68f826981a42fcacdb44982ac89
|
refs/heads/master
| 2021-01-21T23:33:36.280202
| 2015-07-14T17:47:01
| 2015-07-14T17:47:01
| 38,971,834
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 182
|
java
|
package com.google.android.gms.common.api;
public final class BatchResultToken {
protected final int mId;
BatchResultToken(int var1) {
this.mId = var1;
}
}
|
[
"guest@example.edu"
] |
guest@example.edu
|
c7c90bc0fb9dcc6af8098aad647453709a0b2d9f
|
c33ecc336c0e25874b606faf22fab01c7331a710
|
/server/src/main/java/com/njustc/framework/mybatis/RoleMapper.java
|
63f9663d38487a91598dc02d590bc19953858778
|
[] |
no_license
|
lllwwwbbb/dev-stc
|
eee52394d6dea453c3ca1c933e0b2b7070071ab2
|
644dec55987ec5aa3cb792a272af175b4fce650f
|
refs/heads/master
| 2021-10-21T09:04:51.066089
| 2019-03-04T01:26:58
| 2019-03-04T01:26:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 586
|
java
|
package com.njustc.framework.mybatis;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;
@Mapper
public interface RoleMapper
{
@Select("SELECT organization.ID FROM TBL_SYS_ORGANIZATION organization "
+ "WHERE EXISTS "
+ "(SELECT org_user.ORGANIZATION_ID FROM TBL_SYS_ORGANIZATION_USER org_user "
+ "WHERE organization.ID = org_user.ORGANIZATION_ID "
+ "AND org_user.USER_ID = #{userId}")
List<String> getOrganizationIdsByUserId(@Param("userId")String userId);
}
|
[
"27091925@qq.com"
] |
27091925@qq.com
|
a42ab7eafaea90a22be7e7992111dfe1543d0054
|
7fdb95003f2342be8d4a15c0210dd21acbc5c5f9
|
/src/main/java/no/ugland/utransprod/model/validators/CostTypeValidator.java
|
c477d5a376c858dea5dd848969474a6787bd1b1b
|
[] |
no_license
|
abrekka/protrans
|
ca9f622c524ee46cb038dbba64bb2b64c06073aa
|
d1a2cb45be11badef43769c86c0c551c28b508d7
|
refs/heads/master
| 2023-07-21T04:10:10.521165
| 2021-03-08T12:13:42
| 2021-03-08T12:13:42
| 13,751,649
| 0
| 0
| null | 2022-06-29T16:55:36
| 2013-10-21T18:47:33
|
Java
|
ISO-8859-15
|
Java
| false
| false
| 1,273
|
java
|
package no.ugland.utransprod.model.validators;
import no.ugland.utransprod.gui.model.CostTypeModel;
import com.jgoodies.validation.ValidationResult;
import com.jgoodies.validation.Validator;
import com.jgoodies.validation.util.PropertyValidationSupport;
import com.jgoodies.validation.util.ValidationUtils;
/**
* Validator for kostnadstype
* @author atle.brekka
*/
public class CostTypeValidator implements Validator {
/**
* Holds the order to be validated.
*/
private CostTypeModel costTypeModel;
/**
* @param aCostTypeModel
*/
public CostTypeValidator(final CostTypeModel aCostTypeModel) {
this.costTypeModel = aCostTypeModel;
}
/**
* Validates this Validator's Order and returns the result as an instance of
* {@link ValidationResult}.
* @return the ValidationResult of the order validation
*/
public final ValidationResult validate() {
PropertyValidationSupport support = new PropertyValidationSupport(
costTypeModel, "Kostnadstype");
if (ValidationUtils.isBlank(costTypeModel.getCostTypeName())) {
support.addError("navn", "må settes");
}
return support.getResult();
}
}
|
[
"atle@brekka.no"
] |
atle@brekka.no
|
34ff6f61ff9ecc1abb9323614004543d313fb507
|
cb78cd548345e8a2be8495f6e18c7367cfc0cff0
|
/app/src/main/java/com/unisound/media/example/WakeupActivity.java
|
f9b44d251df3046813d4e2f804334e72c3b4b68e
|
[] |
no_license
|
15814903830/ProSdk_APP
|
df997f9100450cbfb329bf12855896a247513f6c
|
128a89387597d4c00ade0bd18554334dc640fd8c
|
refs/heads/master
| 2020-07-15T23:58:19.646365
| 2019-09-03T15:30:25
| 2019-09-03T15:30:25
| 205,676,358
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,091
|
java
|
package com.unisound.media.example;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.view.WindowManager;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import com.unisound.watchassist.R;
import com.unisound.sdk.asr.AsrEvent;
import com.unisound.sdk.asr.AsrOption;
import com.unisound.sdk.asr.UnisoundAsrEngine;
import com.unisound.sdk.asr.impl.IAsrResultListener;
import com.unisound.sdk.utils.SdkLogMgr;
import java.util.HashSet;
public class WakeupActivity extends AppCompatActivity implements IAsrResultListener {
private static final String TAG = "WakeupActivity";
private int[] color = { Color.RED, Color.GREEN };
private int position = 0;
private TextView txtNlu;
private TextView txtNluLists;
private View viewBg;
private EditText etWakeup;
private UnisoundAsrEngine unisoundAsrEngine;
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.layout_wakeup);
initView();
unisoundAsrEngine = VoicePresenter.getInstance().getUnisoundAsrEngine();
VoicePresenter.getInstance().setAsrListener(this);
onSetWakeUpWord();
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);
}
private void initView() {
txtNlu = findViewById(R.id.txtNlu);
txtNluLists = findViewById(R.id.tv_wakeup_list);
viewBg = findViewById(R.id.viewBg);
etWakeup = findViewById(R.id.et_wakeup);
}
public void onSetWakeUpWord() {
HashSet<String> mainWakeUpWord = new HashSet<>();
mainWakeUpWord.add("你好魔方");
unisoundAsrEngine.setWakeUpWord(mainWakeUpWord, mainWakeUpWord);
refreshWakeUpWord();
}
public void onStartWakeUp(View view) {
onAddWakeUpWord();
softInputMethod(false);
if (!unisoundAsrEngine.startWakeUp()) {
Toast.makeText(this, "唤醒失败", Toast.LENGTH_SHORT).show();
}
}
public void onAddWakeUpWord() {
if (!TextUtils.isEmpty(etWakeup.getText())) {
HashSet<String> mainWakeUpWord = new HashSet<>();
mainWakeUpWord.add(etWakeup.getText().toString());
mainWakeUpWord.addAll(unisoundAsrEngine.getWakeUpWord());
etWakeup.getText().clear();
unisoundAsrEngine.setWakeUpWord(mainWakeUpWord, mainWakeUpWord);
refreshWakeUpWord();
}
}
private void refreshWakeUpWord() {
HashSet<String> mainWakeUpWord = unisoundAsrEngine.getWakeUpWord();
StringBuffer wakeUpBuffer = new StringBuffer();
wakeUpBuffer.append("唤醒词:\n");
for (String wakeup : mainWakeUpWord) {
wakeUpBuffer.append(wakeup).append("\n");
}
txtNluLists.setText(wakeUpBuffer.toString());
}
@Override public void onResult(int event, String result) {
Log.d(TAG, "onResult:" + result);
if (event == AsrEvent.ASR_EVENT_WAKEUP_RESULT) {
int doaResult = (int) VoicePresenter.getInstance()
.getUnisoundAsrEngine()
.getOption(AsrOption.ASR_OPTION_DOA_RESULT);
SdkLogMgr.d(TAG, "doaResult:" + doaResult);
viewBg.setBackgroundColor(color[position % color.length]);
txtNlu.setText(result);
position++;
}
}
@Override public void onEvent(int event) {
Log.d(TAG, "onEvent:" + event);
}
@Override public void onError(int error) {
Log.d(TAG, "onError:" + error);
}
public void softInputMethod(boolean show) {
try {
InputMethodManager inputMethodManager =
((InputMethodManager) getSystemService(INPUT_METHOD_SERVICE));
if (show) {
inputMethodManager.showSoftInput(null, InputMethodManager.SHOW_FORCED);
} else {
View currentFocus = getCurrentFocus();
if (currentFocus != null) {
inputMethodManager.hideSoftInputFromWindow(currentFocus.getWindowToken(),
InputMethodManager.HIDE_NOT_ALWAYS);
}
}
} catch (Exception e) {
}
}
}
|
[
"1273258724@qq.com"
] |
1273258724@qq.com
|
1834736148a7aa2839d7fdd1a465331ee8db78bb
|
28e83c89cb21035762ad57c0a6c0edda49db8bd8
|
/2.JavaCore/src/com/javarush/task/task14/task1414/Solution.java
|
d8533bf16c123a7150f66405aadc7bd421cd4058
|
[] |
no_license
|
serggrp/JRT
|
b85a179176babffc6ae1649c07eab00c3b65a773
|
f7a5cc3fc3fb538394572a6986a74782e73aeb44
|
refs/heads/master
| 2023-02-15T15:10:42.278785
| 2021-01-12T21:13:55
| 2021-01-12T21:13:55
| 329,107,716
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,762
|
java
|
package com.javarush.task.task14.task1414;
/*
MovieFactory
*/
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Solution {
public static void main(String[] args) throws Exception {
//ввести с консоли несколько ключей (строк), пункт 7
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
Movie movie = null;
do {
movie = MovieFactory.getMovie(reader.readLine());
if (movie != null)
System.out.println(movie.getClass().getSimpleName());
}
while (movie != null);
reader.close();
/*
8 Создать переменную movie класса Movie и для каждой введенной строки(ключа):
8.1 получить объект используя MovieFactory.getMovie и присвоить его переменной movie
8.2 вывести на экран movie.getClass().getSimpleName()
*/
}
static class MovieFactory {
static Movie getMovie(String key) {
Movie movie = null;
//создание объекта SoapOpera (мыльная опера) для ключа "soapOpera"
if ("soapOpera".equals(key)) {
movie = new SoapOpera();
} else if ("cartoon".equals(key)) {
movie = new Cartoon();
} else if ("thriller".equals(key)) {
movie = new Thriller();
}
return movie;
}
}
static abstract class Movie {
}
static class SoapOpera extends Movie {
}
static class Cartoon extends Movie {
}
static class Thriller extends Movie {
}
}
|
[
"sergie92@yandex.ru"
] |
sergie92@yandex.ru
|
94e7431aff3d3805989e924ff20b0291c1706d33
|
91f44d73663d47eeae7f486163148f4f54f2ce49
|
/spring-core/src/main/java/wiring/adv/qualifier/AnimalConfig3Test.java
|
f6f53378219493dcb273c8a9da13a6f310d91eb7
|
[] |
no_license
|
liuchenwei2000/Spring4
|
0fba0dc3cfcbca52b2ac25725cde3ae702cbdbd5
|
18950d41daf96f841d764a726aad70dff49508e0
|
refs/heads/master
| 2022-12-21T05:03:22.436001
| 2020-04-19T08:38:34
| 2020-04-19T08:38:34
| 75,167,639
| 0
| 0
| null | 2022-12-16T10:32:48
| 2016-11-30T08:37:39
|
Java
|
UTF-8
|
Java
| false
| false
| 2,778
|
java
|
package wiring.adv.qualifier;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import static org.junit.Assert.assertTrue;
/**
* 解决自动装配歧义性示例
* <p>
* 限定自动装配的 bean
* <p>
* Spring 的限定符能够在所有可选的 bean 上进行缩小范围的操作,
* 最终能够达到只有一个 bean 满足所规定的限制条件。
* <p>
* Created by liuchenwei on 2016/12/1.
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes=Animal3Config.class)
public class AnimalConfig3Test {
@Autowired
// @Qualifier 注解是使用限定符的主要方式,它可以与 @Autowired
// 和 @Inject 协同使用,在注入的时候指定想要注入进去的是哪个 bean。
@Qualifier("dog")
// 为 @Qualifier 注解所设置的参数就是想要注入的 bean 的 id。
// 所有使用 @Component 注解声明的类都会创建为 bean,并且 id 为首字母变为小写的类名;
// 所有使用 @Bean 注解所声明的方法都会创建为 bean,并且 id 为方法名。
// 实际上,本例 @Qualifier 所引用的 bean 要具有 String 类型的 “dog” 作为限定符。
// 如果没有指定其他的限定符的话,所有的 bean 都会给定一个默认的限定符,与 bean 的 id 相同。
private Animal animal;
@Autowired
@Qualifier("bd")
private Animal animal2;
@Test
public void test(){
assertTrue(animal instanceof Dog);
System.out.println(animal);
assertTrue(animal2 instanceof Bird);
System.out.println(animal2);
}
}
@Configuration
class Animal3Config {
// 这里有两个 Animal 类型的 bean
@Bean
public Animal cat() {
return new Cat();
}
@Bean
public Animal dog() {
return new Dog();
}
@Bean
// 可以为 bean 设置自己的限定符,而不是依赖于将 bean id 作为限定符。
// 在 bean 声明上添加 @Qualifier() 注解即可设置限定符。
// 它既可以与 @Bean 组合使用,也可以与 @Component 组合使用。
// 这种方式可以使得 bean 的限定符与类名解耦,因此可以随便重构类名,而不必担心自动装配被破坏。
// 在注入的地方,只要引用 bd 这个限定符即可。
@Qualifier("bd")
public Animal bird() {
return new Bird();
}
}
|
[
"liuchenwei2000@163.com"
] |
liuchenwei2000@163.com
|
3436b97ba42aa7acf173bc7dcb89a4b51474cee7
|
4a35eb46507eb8207f634e6dad23762d0aec94df
|
/project/MapExplore/jMetal-jmetal-5.1/jmetal-core/src/main/java/org/uma/jmetal/util/AlgorithmBuilder.java
|
3844fea0832d6719c0adc5afcdfcc61a97f7eb8f
|
[] |
no_license
|
fairanswers/fss16joe
|
8800ad81c60ab06f90b9643bf601c6c2c9a51107
|
f5dde87038ec5404a6bb2d9a538b2ceef571ac9d
|
refs/heads/master
| 2020-05-22T06:44:32.138162
| 2016-12-07T19:46:54
| 2016-12-07T19:46:54
| 65,820,114
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 940
|
java
|
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// 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 Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
package org.uma.jmetal.util;
import org.uma.jmetal.algorithm.Algorithm;
/**
* Interface representing algorithm builders
*
* @author Antonio J. Nebro <antonio@lcc.uma.es>
*/
public interface AlgorithmBuilder<A extends Algorithm<?>> {
public A build() ;
}
|
[
"joe@bodkinconsulting.com"
] |
joe@bodkinconsulting.com
|
b1d5b1fe61c14ee486b1c07764ea7e9424ad9dd8
|
64a57283d422fd17b9cdac0c4528059008002d5c
|
/Project-new-spring/boost-server-master/boost-server-api/src/main/java/com/qooco/boost/data/oracle/reposistories/UserFitRepository.java
|
d611e141a2485813b28ac1334866ea2367af1202
|
[
"BSL-1.0"
] |
permissive
|
dolynhan15/Java-spring-boot
|
b2ff6785b45577a5e16b016d8eeab00cf0dec56b
|
3541b6ba1b0e6a2c254f29bf29cf90d7efd1479a
|
refs/heads/main
| 2023-08-13T11:53:57.369574
| 2021-10-19T07:36:42
| 2021-10-19T07:36:42
| 397,813,627
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,113
|
java
|
package com.qooco.boost.data.oracle.reposistories;
import com.qooco.boost.data.oracle.entities.UserFit;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@Repository
@Transactional
public interface UserFitRepository extends Boot2JpaRepository<UserFit, Long> {
UserFit findByUsername(String username);
//boolean existsById(Long userId);
@Query("SELECT u FROM UserFit u WHERE u.userProfileId = :id AND u.isDeleted = false")
UserFit findValidById(@Param("id") Long id);
@Query("SELECT u FROM UserFit u WHERE u.userProfileId IN :ids AND u.isDeleted = false")
List<UserFit> findByIds(@Param("ids") List<Long> ids);
@Modifying
@Transactional
@Query("UPDATE UserFit u SET u.defaultCompanyId = :companyId WHERE u.userProfileId = :id")
void setDefaultCompany(@Param("id") Long id, @Param("companyId") Long companyId);
}
|
[
"dolynhan15@gmail.com"
] |
dolynhan15@gmail.com
|
b4e17dc9eb0c2cc6ad8db23835777520aedfac3e
|
c46304a8d962b6bea66bc6e4ef04b908bdb0dc97
|
/src/main/java8/net/finmath/marketdata/model/volatilities/VolatilitySurface.java
|
2b961fe97e37decd3c6d4e3fff859c745bfcc85c
|
[
"Apache-2.0",
"LicenseRef-scancode-mit-old-style",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.0-or-later"
] |
permissive
|
finmath/finmath-lib
|
93f0f67e7914e76bbdc4e32c6dddce9eba4f50a4
|
b80aba56bdf6b93551d966503d5b399409c36bff
|
refs/heads/master
| 2023-08-04T09:28:21.146535
| 2023-07-26T17:18:45
| 2023-07-26T17:18:45
| 8,832,601
| 459
| 211
|
Apache-2.0
| 2023-07-21T13:28:03
| 2013-03-17T10:00:22
|
Java
|
UTF-8
|
Java
| false
| false
| 2,327
|
java
|
/*
* (c) Copyright Christian P. Fries, Germany. Contact: email@christian-fries.de.
*
* Created on 22.06.2014
*/
package net.finmath.marketdata.model.volatilities;
import java.time.LocalDate;
import net.finmath.marketdata.model.AnalyticModel;
/**
* Interface for classes representing a volatility surface,
* i.e. European option prices.
*
* @author Christian Fries
* @version 1.0
*/
public interface VolatilitySurface {
/**
* Quoting conventions.
* It may be that the implementing class does not support all quoting conventions.
*
* @author Christian Fries
*/
enum QuotingConvention {
VOLATILITYLOGNORMAL,
VOLATILITYNORMAL,
PRICE
}
/**
* Returns the name of the volatility surface.
*
* @return The name of the volatility surface.
*/
String getName();
/**
* Return the reference date of this surface, i.e. the date
* associated with t=0.
*
* @return The date identified as t=0.
*/
LocalDate getReferenceDate();
/**
* Returns the price or implied volatility for the corresponding maturity and strike.
*
* @param maturity The option maturity for which the price or implied volatility is requested.
* @param strike The option strike for which the price or implied volatility is requested.
* @param quotingConvention The quoting convention to be used for the return value.
* @return The price or implied volatility depending on the quoting convention.
*/
double getValue(double maturity, double strike, QuotingConvention quotingConvention);
/**
* Returns the price or implied volatility for the corresponding maturity and strike.
*
* @param model An analytic model providing a context. Some curves do not need this (may be null).
* @param maturity The option maturity for which the price or implied volatility is requested.
* @param strike The option strike for which the price or implied volatility is requested.
* @param quotingConvention The quoting convention to be used for the return value.
* @return The price or implied volatility depending on the quoting convention.
*/
double getValue(AnalyticModel model, double maturity, double strike, QuotingConvention quotingConvention);
/**
* Return the default quoting convention of this surface.
*
* @return the quotingConvention
*/
QuotingConvention getQuotingConvention();
}
|
[
"email@christian-fries.de"
] |
email@christian-fries.de
|
56e6be053b43608e1abe3c277661d1fc694c0772
|
2148f5bd7a5ffa6ae07849e40a28d1cf528f230e
|
/XML Processing/Lab/xmlDemo/src/main/java/com/example/xml/repository/AddressRepository.java
|
839a8bf8c00b09bd45fe1439de4c0b4db8c15a87
|
[] |
no_license
|
vanshianec/Hibernate-And-Spring-Data
|
d2b0c8f1db686377834bacd6f1db85be04b27a15
|
2aed2b7af4f96456d919a31cfb3336cbcfcb1286
|
refs/heads/master
| 2022-07-05T19:50:31.552910
| 2019-08-01T21:23:14
| 2019-08-01T21:23:14
| 200,120,653
| 0
| 0
| null | 2022-06-21T01:35:10
| 2019-08-01T21:20:42
|
Java
|
UTF-8
|
Java
| false
| false
| 224
|
java
|
package com.example.xml.repository;
import com.example.xml.domain.entities.Address;
import org.springframework.data.jpa.repository.JpaRepository;
public interface AddressRepository extends JpaRepository<Address, Long> {
}
|
[
"ivaniovov@abv.bg"
] |
ivaniovov@abv.bg
|
9856a76486fd6a4c6ceda770134d95966b78317f
|
363c936f4a89b7d3f5f4fb588e8ca20c527f6022
|
/AL-Game/src/com/aionemu/gameserver/skillengine/effect/BoostSkillCostEffect.java
|
e4e623046ae5286753a1c81f5aaa67a23698ff8d
|
[] |
no_license
|
G-Robson26/AionServer-4.9F
|
d628ccb4307aa0589a70b293b311422019088858
|
3376c78b8d90bd4d859a7cfc25c5edc775e51cbf
|
refs/heads/master
| 2023-09-04T00:46:47.954822
| 2017-08-09T13:23:03
| 2017-08-09T13:23:03
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,205
|
java
|
/**
* This file is part of Aion-Lightning <aion-lightning.org>.
*
* Aion-Lightning is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Aion-Lightning 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 Aion-Lightning.
* If not, see <http://www.gnu.org/licenses/>.
*/
package com.aionemu.gameserver.skillengine.effect;
import com.aionemu.gameserver.controllers.observer.ActionObserver;
import com.aionemu.gameserver.controllers.observer.ObserverType;
import com.aionemu.gameserver.skillengine.model.Effect;
import com.aionemu.gameserver.skillengine.model.Skill;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* @author Rama and Sippolo
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "BoostSkillCostEffect")
public class BoostSkillCostEffect extends BuffEffect {
@XmlAttribute
protected boolean percent;
@Override
public void startEffect(final Effect effect) {
super.startEffect(effect);
ActionObserver observer = new ActionObserver(ObserverType.SKILLUSE) {
@Override
public void skilluse(Skill skill) {
skill.setBoostSkillCost(value);
}
};
effect.getEffected().getObserveController().addObserver(observer);
effect.setActionObserver(observer, position);
}
@Override
public void endEffect(Effect effect) {
super.endEffect(effect);
ActionObserver observer = effect.getActionObserver(position);
effect.getEffected().getObserveController().removeObserver(observer);
}
}
|
[
"falke34@a70f7278-c47d-401d-a0e4-c9401b7f63ed"
] |
falke34@a70f7278-c47d-401d-a0e4-c9401b7f63ed
|
7b8bcc395ae8c215ec07b78c7ad8fb341bc07034
|
461ad83c563e680811dd916d5b588eab44dd696e
|
/src/main/java/com/ltsllc/miranda/http/JettyHttpServer.java
|
731d8e1eac1058b2e83d1fbe0c6235be617fba29
|
[
"Apache-2.0"
] |
permissive
|
ClarkHobbie/miranda_old
|
0cd3df266b016ef419483bd7a50a1e0ceefd7b4b
|
8af7a7a2b7a6193ef98f880a8b05fc959216169f
|
refs/heads/master
| 2022-02-19T17:31:05.753535
| 2017-06-25T20:25:25
| 2017-06-25T20:25:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,842
|
java
|
/*
* Copyright 2017 Long Term Software LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ltsllc.miranda.http;
import com.ltsllc.miranda.Panic;
import com.ltsllc.miranda.StartupPanic;
import com.ltsllc.miranda.miranda.Miranda;
import com.ltsllc.miranda.servlet.catchall.CatchallServlet;
import com.ltsllc.miranda.servlet.objects.ServletMapping;
import org.apache.log4j.Logger;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.handler.HandlerCollection;
import org.eclipse.jetty.servlet.ServletHandler;
import java.util.List;
/**
* Created by Clark on 3/9/2017.
*/
public class JettyHttpServer extends HttpServer {
private static HandlerCollection ourHandlerCollection;
private static ServletHandler ourServletHandler;
private static Logger logger = Logger.getLogger(JettyHttpServer.class);
private Server jetty;
public JettyHttpServer (Server jetty, HandlerCollection handlerCollection) {
super();
this.jetty = jetty;
ourHandlerCollection = handlerCollection;
}
public static ServletHandler getServletHandler() {
return ourServletHandler;
}
public static HandlerCollection getHandlerCollection () {
return ourHandlerCollection;
}
public Server getJetty () {
return jetty;
}
@Override
public void addServlets(List<ServletMapping> servlets) {
ServletHandler servletHandler = new ServletHandler();
for (ServletMapping mapping : servlets) {
servletHandler.addServletWithMapping(mapping.getServletClass(), mapping.getPath());
}
getHandlerCollection().addHandler(servletHandler);
}
@Override
public void startServer() {
try {
ServletHandler servletHandler = new ServletHandler();
servletHandler.addServletWithMapping(CatchallServlet.class, "/");
// getHandlerCollection().addHandler(servletHandler);
getJetty().setHandler(getHandlerCollection());
getJetty().start();
logger.info("Jetty started");
} catch (Exception e) {
Panic panic = new StartupPanic("Excepion trying to start HttpServer", e, StartupPanic.StartupReasons.ExceptionStartingHttpServer);
Miranda.getInstance().panic(panic);
}
}
}
|
[
"clark.hobbie@gmail.com"
] |
clark.hobbie@gmail.com
|
2b1f315c172e6cbbe4950e4450b6bfb70254c74c
|
85659db6cd40fcbd0d4eca9654a018d3ac4d0925
|
/packages/apps/ContactsProvider/src/com/android/providers/contacts/util/Hex.java
|
e2734bcdc14d69a2a9fab101ab90a4278da6ee7c
|
[] |
no_license
|
qwe00921/switchui
|
28e6e9e7da559c27a3a6663495a5f75593f48fb8
|
6d859b67402fb0cd9f7e7a9808428df108357e4d
|
refs/heads/master
| 2021-01-17T06:34:05.414076
| 2014-01-15T15:40:35
| 2014-01-15T15:40:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,537
|
java
|
/*
* Copyright (C) 2009 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.providers.contacts.util;
/**
* Basic hex operations: from byte array to string and vice versa.
*
* TODO: move to the framework and consider implementing as native code.
*/
public class Hex {
private static final char[] HEX_DIGITS = new char[]{
'0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'A', 'B', 'C', 'D', 'E', 'F'
};
private static final char[] FIRST_CHAR = new char[256];
private static final char[] SECOND_CHAR = new char[256];
static {
for (int i = 0; i < 256; i++) {
FIRST_CHAR[i] = HEX_DIGITS[(i >> 4) & 0xF];
SECOND_CHAR[i] = HEX_DIGITS[i & 0xF];
}
}
private static final byte[] DIGITS = new byte['f'+1];
static {
for (int i = 0; i <= 'F'; i++) {
DIGITS[i] = -1;
}
for (byte i = 0; i < 10; i++) {
DIGITS['0' + i] = i;
}
for (byte i = 0; i < 6; i++) {
DIGITS['A' + i] = (byte)(10 + i);
DIGITS['a' + i] = (byte)(10 + i);
}
}
/**
* Quickly converts a byte array to a hexadecimal string representation.
*
* @param array byte array, possibly zero-terminated.
*/
public static String encodeHex(byte[] array, boolean zeroTerminated) {
char[] cArray = new char[array.length * 2];
int j = 0;
for (int i = 0; i < array.length; i++) {
int index = array[i] & 0xFF;
if (zeroTerminated && index == 0 && i == array.length-1) {
break;
}
cArray[j++] = FIRST_CHAR[index];
cArray[j++] = SECOND_CHAR[index];
}
return new String(cArray, 0, j);
}
/**
* Quickly converts a hexadecimal string to a byte array.
*/
public static byte[] decodeHex(String hexString) {
int length = hexString.length();
if ((length & 0x01) != 0) {
throw new IllegalArgumentException("Odd number of characters: " + hexString);
}
boolean badHex = false;
byte[] out = new byte[length >> 1];
for (int i = 0, j = 0; j < length; i++) {
int c1 = hexString.charAt(j++);
if (c1 > 'f') {
badHex = true;
break;
}
final byte d1 = DIGITS[c1];
if (d1 == -1) {
badHex = true;
break;
}
int c2 = hexString.charAt(j++);
if (c2 > 'f') {
badHex = true;
break;
}
final byte d2 = DIGITS[c2];
if (d2 == -1) {
badHex = true;
break;
}
out[i] = (byte) (d1 << 4 | d2);
}
if (badHex) {
throw new IllegalArgumentException("Invalid hexadecimal digit: " + hexString);
}
return out;
}
}
|
[
"cheng.carmark@gmail.com"
] |
cheng.carmark@gmail.com
|
18a9edc32ea9a61ffe9595563ff835f8de974ee2
|
ae0ab07cc46b518a1ee9959248e845e0e7f5fbbb
|
/generator/schema2template/src/test/resources/test-reference/odf/generation/odfdom-java/odf-schema-1.1/org/odftoolkit/odfdom/dom/attribute/draw/DrawHandleMirrorVerticalAttribute.java
|
41b8b2d78d294216f55ffdec0a6c30edf8a9619a
|
[
"BSD-3-Clause",
"MIT",
"W3C",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-generic-cla"
] |
permissive
|
tdf/odftoolkit
|
22c19bfadb6e5cba0176296ab51f963ab264b256
|
e38051da51b06d962a09012c765addeaae6e6874
|
refs/heads/master
| 2023-08-09T08:42:40.878413
| 2023-08-03T14:37:12
| 2023-08-04T08:32:14
| 161,654,269
| 95
| 52
|
Apache-2.0
| 2023-09-14T16:15:30
| 2018-12-13T14:57:43
|
Java
|
UTF-8
|
Java
| false
| false
| 3,566
|
java
|
/************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
*
* Copyright 2008, 2010 Oracle and/or its affiliates. All rights reserved.
*
* Use is subject to license terms.
*
* 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. You can also
* obtain a copy of the License at http://odftoolkit.org/docs/license.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
* See the License for the specific language governing permissions and
* limitations under the License.
*
************************************************************************/
/*
* This file is automatically generated.
* Don't edit manually.
*/
package org.odftoolkit.odfdom.dom.attribute.draw;
import org.odftoolkit.odfdom.dom.OdfDocumentNamespace;
import org.odftoolkit.odfdom.pkg.OdfAttribute;
import org.odftoolkit.odfdom.pkg.OdfElement;
import org.odftoolkit.odfdom.pkg.OdfFileDom;
import org.odftoolkit.odfdom.pkg.OdfName;
/**
* DOM implementation of OpenDocument attribute {@odf.attribute draw:handle-mirror-vertical}.
*
*/
public class DrawHandleMirrorVerticalAttribute extends OdfAttribute {
public static final OdfName ATTRIBUTE_NAME = OdfName.newName(OdfDocumentNamespace.DRAW, "handle-mirror-vertical");
public static final String DEFAULT_VALUE = "false";
/**
* Create the instance of OpenDocument attribute {@odf.attribute draw:handle-mirror-vertical}.
*
* @param ownerDocument The type is <code>OdfFileDom</code>
*/
public DrawHandleMirrorVerticalAttribute(OdfFileDom ownerDocument) {
super(ownerDocument, ATTRIBUTE_NAME);
}
/**
* Returns the attribute name.
*
* @return the <code>OdfName</code> for {@odf.attribute draw:handle-mirror-vertical}.
*/
@Override
public OdfName getOdfName() {
return ATTRIBUTE_NAME;
}
/**
* @return Returns the name of this attribute.
*/
@Override
public String getName() {
return ATTRIBUTE_NAME.getLocalName();
}
/**
* @param value The <code>boolean</code> value of the attribute.
*/
public void setBooleanValue(boolean value) {
super.setValue(String.valueOf(value));
}
/**
* @return Returns the <code>boolean</code> value of the attribute
*/
public boolean booleanValue() {
String val = super.getValue();
return Boolean.parseBoolean(val);
}
/**
* Returns the default value of {@odf.attribute draw:handle-mirror-vertical}.
*
* @return the default value as <code>String</code> dependent of its element name
* return <code>null</code> if the default value does not exist
*/
@Override
public String getDefault() {
return DEFAULT_VALUE;
}
/**
* Default value indicator. As the attribute default value is dependent from its element, the attribute has only a default, when a parent element exists.
*
* @return <code>true</code> if {@odf.attribute draw:handle-mirror-vertical} has an element parent
* otherwise return <code>false</code> as undefined.
*/
@Override
public boolean hasDefault() {
return getOwnerElement() == null ? false : true;
}
/**
* @return Returns whether this attribute is known to be of type ID (i.e. xml:id ?)
*/
@Override
public boolean isId() {
return false;
}
}
|
[
"michael.stahl@allotropia.de"
] |
michael.stahl@allotropia.de
|
1fb4a874e5dd8ecd00bb4cd6995c4ce07da7c004
|
b2bdefda6f0a099f4fac32ddda9129710b5ffe1e
|
/app/src/main/java/cn/book/keeping/libs/activity/ViewPagerActivity.java
|
441039feb74bc1effa10b2d1d06236b02e9de135
|
[] |
no_license
|
blythe104/BookKeeping
|
24cfd32c3f66e65d7cc2c8128c8876235a025653
|
c9c1fb8c890680d44c41c26b840219d7ffa72391
|
refs/heads/master
| 2021-01-13T08:21:36.134330
| 2016-10-22T17:24:55
| 2016-10-22T17:24:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,339
|
java
|
package cn.book.keeping.libs.activity;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import android.view.animation.AnimationSet;
import android.view.animation.TranslateAnimation;
import android.widget.ImageView;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import java.util.ArrayList;
import java.util.List;
import cn.book.keeping.R;
import cn.book.keeping.libs.adapter.FragmentAdapter;
import cn.book.keeping.libs.fragment.BaseFragment;
import cn.book.keeping.libs.ui.CustomViewPager;
import cn.book.keeping.libs.utils.LogUtils;
/**
* Created by chuangtou on 16/8/13.
* 国丞创投
*/
public abstract class ViewPagerActivity extends BaseActivity{
protected CustomViewPager viewPager;
protected RadioGroup radioGroup;
protected RadioButton radioButtonOne;
protected RadioButton radioButtonTwo;
protected RadioButton radioButtonThree;
protected ImageView viewBar;
protected int layoutWidth;
protected int currentX = 0;
protected int currIndex = 0;
private int pageCount = 0;
protected int dx = 0;
protected long duration = 200;
protected List<BaseFragment> fragmentList;
protected int layoutId = R.layout.fragment_base_bottom_tab;
@Override
protected void initViews(Bundle savedInstanceState) {
this.setContentView(layoutId);
viewPager = (CustomViewPager) findViewById(R.id.view_pager);
viewPager.setOffscreenPageLimit(3);
radioGroup = (RadioGroup) findViewById(R.id.radio_group);
((RadioButton) radioGroup.getChildAt(0)).setChecked(true);
radioButtonOne = (RadioButton) findViewById(R.id.radio_one);
radioButtonTwo = (RadioButton) findViewById(R.id.radio_two);
radioButtonThree = (RadioButton) findViewById(R.id.radio_three);
this.viewBar = (ImageView) findViewById(R.id.view_bar);
fragmentList = new ArrayList<>();
this.layoutWidth = this.getWindow().getWindowManager().getDefaultDisplay().getWidth();
initFragment();
initViewPager();
setListener();
}
private void setListener() {
viewPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {
@Override
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
LogUtils.log("positionOffset", "positionOffset = " + positionOffset + " positionOffsetPixels = " + positionOffsetPixels);
}
@Override
public void onPageSelected(int position) {
AnimationSet _AnimationSet = new AnimationSet(true);
TranslateAnimation _TranslateAnimation = new TranslateAnimation((float) currentX, (float) (layoutWidth * position / pageCount + dx), 0.0F, 0.0F);
_AnimationSet.addAnimation(_TranslateAnimation);
_AnimationSet.setFillBefore(true);
_AnimationSet.setFillAfter(true);
if (Math.abs(currentX - layoutWidth * position / pageCount) > layoutWidth / pageCount) {
_AnimationSet.setDuration(0L);
} else {
_AnimationSet.setDuration(duration);
}
viewBar.startAnimation(_AnimationSet);
currentX = layoutWidth * position / pageCount + dx;
switch (position) {
case 0:
radioButtonOne.setChecked(true);
break;
case 1:
radioButtonTwo.setChecked(true);
break;
case 2:
radioButtonThree.setChecked(true);
break;
}
}
@Override
public void onPageScrollStateChanged(int state) {
}
});
radioGroup.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(RadioGroup group, int checkedId) {
switch (checkedId) {
case R.id.radio_one:
viewPager.setCurrentItem(0);
break;
case R.id.radio_two:
viewPager.setCurrentItem(1);
break;
case R.id.radio_three:
viewPager.setCurrentItem(2);
break;
case R.id.radio_four:
viewPager.setCurrentItem(3);
break;
}
}
});
}
public abstract void initFragment();
private void initViewPager() {
List<String> tabList = new ArrayList<>();
for (int index = 0; index < fragmentList.size(); index++) {
tabList.add("");
}
pageCount = tabList.size();
FragmentManager fragmentManager =this.getSupportFragmentManager();
FragmentPagerAdapter pagerAdapter = new FragmentAdapter(fragmentManager, fragmentList, tabList);
viewPager.setAdapter(pagerAdapter);
}
public void setLayoutId(int layoutId) {
this.layoutId = layoutId;
}
}
|
[
"you@example.com"
] |
you@example.com
|
48caace0442349fb2e491e81fea199c4859ca2bd
|
73364c57427e07e90d66692a3664281d5113177e
|
/dhis-support/dhis-support-jdbc/src/main/java/org/hisp/dhis/jdbc/batchhandler/DataValueBatchHandler.java
|
4eccd7d92a6c9b88c64feb57f1bf8823b01733d0
|
[
"BSD-3-Clause"
] |
permissive
|
abyot/sun-pmt
|
4681f008804c8a7fc7a75fe5124f9b90df24d44d
|
40add275f06134b04c363027de6af793c692c0a1
|
refs/heads/master
| 2022-12-28T09:54:11.381274
| 2019-06-10T15:47:21
| 2019-06-10T15:47:21
| 55,851,437
| 0
| 1
|
BSD-3-Clause
| 2022-12-16T12:05:12
| 2016-04-09T15:21:22
|
Java
|
UTF-8
|
Java
| false
| false
| 5,688
|
java
|
package org.hisp.dhis.jdbc.batchhandler;
/*
* Copyright (c) 2004-2017, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* Neither the name of the HISP project nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
import org.hisp.quick.JdbcConfiguration;
import org.hisp.quick.batchhandler.AbstractBatchHandler;
import org.hisp.dhis.datavalue.DataValue;
import static org.hisp.dhis.system.util.DateUtils.getLongDateString;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
/**
* @author Lars Helge Overland
*/
public class DataValueBatchHandler
extends AbstractBatchHandler<DataValue>
{
// -------------------------------------------------------------------------
// Constructor
// -------------------------------------------------------------------------
public DataValueBatchHandler( JdbcConfiguration config )
{
super( config );
}
// -------------------------------------------------------------------------
// AbstractBatchHandler implementation
// -------------------------------------------------------------------------
@Override
public String getTableName()
{
return "datavalue";
}
@Override
public String getAutoIncrementColumn()
{
return null;
}
@Override
public boolean isInclusiveUniqueColumns()
{
return true;
}
@Override
public List<String> getIdentifierColumns()
{
return getStringList(
"dataelementid",
"periodid",
"sourceid",
"categoryoptioncomboid",
"attributeoptioncomboid" );
}
@Override
public List<Object> getIdentifierValues( DataValue value )
{
return getObjectList(
value.getDataElement().getId(),
value.getPeriod().getId(),
value.getSource().getId(),
value.getCategoryOptionCombo().getId(),
value.getAttributeOptionCombo().getId() );
}
@Override
public List<String> getUniqueColumns()
{
return getStringList(
"dataelementid",
"periodid",
"sourceid",
"categoryoptioncomboid",
"attributeoptioncomboid" );
}
@Override
public List<Object> getUniqueValues( DataValue value )
{
return getObjectList(
value.getDataElement().getId(),
value.getPeriod().getId(),
value.getSource().getId(),
value.getCategoryOptionCombo().getId(),
value.getAttributeOptionCombo().getId() );
}
@Override
public List<String> getColumns()
{
return getStringList(
"dataelementid",
"periodid",
"sourceid",
"categoryoptioncomboid",
"attributeoptioncomboid",
"value",
"storedby",
"created",
"lastupdated",
"comment",
"followup",
"deleted" );
}
@Override
public List<Object> getValues( DataValue value )
{
return getObjectList(
value.getDataElement().getId(),
value.getPeriod().getId(),
value.getSource().getId(),
value.getCategoryOptionCombo().getId(),
value.getAttributeOptionCombo().getId(),
value.getValue(),
value.getStoredBy(),
getLongDateString( value.getCreated() ),
getLongDateString( value.getLastUpdated() ),
value.getComment(),
value.isFollowup(),
value.isDeleted() );
}
@Override
public DataValue mapRow( ResultSet resultSet )
throws SQLException
{
DataValue dv = new DataValue();
dv.setValue( resultSet.getString( "value" ) );
dv.setStoredBy( resultSet.getString( "storedBy" ) );
dv.setComment( resultSet.getString( "comment" ) );
dv.setFollowup( resultSet.getBoolean( "followup" ) );
dv.setDeleted( resultSet.getBoolean( "deleted" ) );
return dv;
}
}
|
[
"abyota@gmail.com"
] |
abyota@gmail.com
|
47eb3c447a81cceb69d09421700b671c4fdc8f8e
|
7fd2e6234459f4e86abec4e943bf67913d18d670
|
/src/test/java/com/ptit/demo/ArchTest.java
|
0e4ae6ab2f817f9b633801e19bfc75d6a57fe41d
|
[] |
no_license
|
shinnoo/BookingStore-1
|
dd1ca8a9f0d366b51a969c3268a0e896b9736d97
|
8e917905b358055322eae3edd4d516be2fcf3d8b
|
refs/heads/master
| 2023-04-08T08:37:40.176152
| 2021-03-30T00:08:51
| 2021-03-30T00:08:51
| 352,818,901
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 994
|
java
|
package com.ptit.demo;
import com.tngtech.archunit.core.domain.JavaClasses;
import com.tngtech.archunit.core.importer.ClassFileImporter;
import com.tngtech.archunit.core.importer.ImportOption;
import org.junit.jupiter.api.Test;
import static com.tngtech.archunit.lang.syntax.ArchRuleDefinition.noClasses;
class ArchTest {
@Test
void servicesAndRepositoriesShouldNotDependOnWebLayer() {
JavaClasses importedClasses = new ClassFileImporter()
.withImportOption(ImportOption.Predefined.DO_NOT_INCLUDE_TESTS)
.importPackages("com.ptit.demo");
noClasses()
.that()
.resideInAnyPackage("com.ptit.demo.service..")
.or()
.resideInAnyPackage("com.ptit.demo.repository..")
.should().dependOnClassesThat()
.resideInAnyPackage("..com.ptit.demo.web..")
.because("Services and repositories should not depend on web layer")
.check(importedClasses);
}
}
|
[
"trandung164.ptit@gmail.com"
] |
trandung164.ptit@gmail.com
|
ddfa343b2b6535171e9d2c5dd6597455e8c9426d
|
811ae7f8f4acb2e9fb8789a78e4d3d4ce20007c8
|
/app/src/main/java/com/poct/android/net/ProgressResponseBody.java
|
a4a4a61525c5579c655e00ad0a41186994137959
|
[] |
no_license
|
sengeiou/potc
|
dca3c7e9c64c96ecf82d41fad58e4b9becb8f16f
|
92133d3a247371bb07d3eb2b4b5b19b137316988
|
refs/heads/master
| 2022-03-16T19:23:48.348612
| 2019-10-30T09:43:02
| 2019-10-30T09:43:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,173
|
java
|
package com.poct.android.net;
import java.io.IOException;
import okhttp3.MediaType;
import okhttp3.ResponseBody;
import okio.Buffer;
import okio.BufferedSource;
import okio.ForwardingSource;
import okio.Okio;
import okio.Source;
/**
* 包装的响体,处理进度,用到下载
* Created by yyw on 2016/1/20.
*/
public class ProgressResponseBody extends ResponseBody {
/**待包装的响应体**/
private ResponseBody mResponseBody;
/**进度监听**/
private ProgressResponseListener mListener;
/**包装完成的BufferedSource**/
private BufferedSource mSource ;
public ProgressResponseBody(ProgressResponseListener mListener, ResponseBody mResponseBody) {
this.mListener = mListener;
this.mResponseBody = mResponseBody;
}
@Override
public long contentLength() {
return mResponseBody.contentLength();
}
@Override
public MediaType contentType() {
return mResponseBody.contentType();
}
/**
* 重写进行包装source
* @return BufferedSource
*/
@Override
public BufferedSource source() {
if (mSource == null){
//包装
mSource = Okio.buffer(source(mResponseBody.source()));
}
return mSource;
}
private Source source(Source source){
return new ForwardingSource(source) {
//当前已经读取字节数
private long totalBytesRead = 0L;
private long contentLength = 0l;
@Override
public long read(Buffer sink, long byteCount) throws IOException {
//当前读取的字节
long byteRead = super.read(sink, byteCount);
if (contentLength == 0){
contentLength = contentLength();
}
if (byteRead != -1){
totalBytesRead += byteRead;
mListener.onProgressResponse(contentLength,totalBytesRead,false);
}else {
mListener.onProgressResponse(contentLength,totalBytesRead,true);
}
return byteRead;
}
};
}
}
|
[
"xpx456@163.com"
] |
xpx456@163.com
|
50c33d3128765f1519862c713ae5b9ae5a795c6c
|
86ccb87786458a8807fe9eff9b7200f2626c01a2
|
/src/main/java/m0710/Solution3.java
|
00023ea574b0b5f18309b9d8c47a424501bf1a22
|
[] |
no_license
|
fisher310/leetcoderevolver
|
d919e566271730b3df26fe28b85c387a3f48faa3
|
83263b69728f94b51e7188cd79fcdac1f261c339
|
refs/heads/master
| 2023-03-07T19:05:58.119634
| 2022-03-23T12:40:13
| 2022-03-23T12:40:13
| 251,488,466
| 0
| 0
| null | 2021-03-24T01:50:58
| 2020-03-31T03:14:04
|
Java
|
UTF-8
|
Java
| false
| false
| 1,695
|
java
|
package m0710;
import java.util.*;
class Solution3 {
public int findMinArrowShots(int[][] points) {
TreeSet<Boll> treeSet = new TreeSet<>((o1, o2) -> {
int c1 = Integer.compare(o1.right, o2.right);
return c1 == 0 ? Integer.compare(o1.left, o2.left) : c1;
});
Map<Integer, Set<Boll>> map = new HashMap<>();
for (int i = 0; i < points.length; i++) {
int[] p = points[i];
treeSet.add(new Boll(p[0], p[1]));
}
for (Boll a : treeSet) {
for (Boll b : treeSet) {
if (a == b) continue;
if (b.left <= a.right && a.right <= b.right) {
if (map.containsKey(a.right)) {
Set<Boll> list = map.get(a.right);
list.add(b);
} else {
Set<Boll> list = new HashSet<>();
list.add(b);
list.add(a);
map.put(a.right, list);
}
}
}
}
int ans = 0;
while (!treeSet.isEmpty()) {
ans++;
Boll b = treeSet.pollFirst();
Set<Boll> lb = map.get(b.right);
if (lb != null) {
for (Boll lbb : lb) {
treeSet.remove(lbb);
}
}
}
return ans;
}
static class Boll {
int left;
int right;
Boll(int _left, int _right) {
this.left = _left;
this.right = _right;
}
}
public static void main(String[] args) {
Solution3 s = new Solution3();
System.out.println(
s.findMinArrowShots(
new int[][] {
{0, 9}, {1, 8}, {7, 8}, {1, 6}, {9, 16}, {7, 13}, {7, 10}, {6, 11}, {6, 9}, {9, 13}
}));
System.out.println(s.findMinArrowShots(new int[][] {{10, 16}, {2, 8}, {1, 6}, {7, 12}}));
}
}
|
[
"316049914@qq.com"
] |
316049914@qq.com
|
3d9f37bf7e44d195a9d6423575c2a7edf9c5b550
|
e64f3ab561f5d8df834deb87fa49f29895ba4634
|
/src/main/java/org/jetbrains/annotations/Async.java
|
c6d7996bce1c7332701bff03e4eff31c25a38309
|
[
"Apache-2.0"
] |
permissive
|
realityforge/org.jetbrains.annotations
|
1ab3f111c7b6028bacb7e38d0cccb62e60a299b8
|
bc3015776a789b80d05d896be9888ec1dd6546c6
|
refs/heads/master
| 2022-05-02T02:37:06.323090
| 2022-04-29T05:07:07
| 2022-04-29T05:07:07
| 140,839,898
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,677
|
java
|
/*
* Copyright 2000-2020 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Helper annotations for asynchronous computation.
* Used for example in IntelliJ IDEA's debugger for async stacktraces feature.
*
* @author egor
*/
public final class Async {
/**
* Indicates that the marked method schedules async computation.
* Scheduled object is either {@code this}, or the annotated parameter value.
*/
@Retention(RetentionPolicy.CLASS)
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.PARAMETER})
public @interface Schedule {}
/**
* Indicates that the marked method executes async computation.
* Executed object is either {@code this}, or the annotated parameter value.
* This object needs to match with the one annotated with {@link Schedule}
*/
@Retention(RetentionPolicy.CLASS)
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.PARAMETER})
public @interface Execute {}
}
|
[
"peter@realityforge.org"
] |
peter@realityforge.org
|
e7535b82c04f918072b3bebe7337aa4d0e5a294b
|
3dd35c0681b374ce31dbb255b87df077387405ff
|
/generated/com/guidewire/_generated/productmodel/OptionGL7ProdsCompldOpsBIDedTypeImpl.java
|
e5229d2eba634b5ce7f3e43e1023c4445b17efbb
|
[] |
no_license
|
walisashwini/SBTBackup
|
58b635a358e8992339db8f2cc06978326fed1b99
|
4d4de43576ec483bc031f3213389f02a92ad7528
|
refs/heads/master
| 2023-01-11T09:09:10.205139
| 2020-11-18T12:11:45
| 2020-11-18T12:11:45
| 311,884,817
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 913
|
java
|
package com.guidewire._generated.productmodel;
@gw.lang.SimplePropertyProcessing
@javax.annotation.Generated(comments = "config/resources/productmodel/policylinepatterns/GL7Line/coveragepatterns/GL7Deds.xml", date = "", value = "com.guidewire.pc.productmodel.codegen.ProductModelCodegen")
public class OptionGL7ProdsCompldOpsBIDedTypeImpl extends com.guidewire.pc.api.domain.covterm.OptionCovTermInternal<productmodel.OptionGL7ProdsCompldOpsBIDedType> implements productmodel.OptionGL7ProdsCompldOpsBIDedType {
public OptionGL7ProdsCompldOpsBIDedTypeImpl(gw.api.productmodel.OptionCovTermPattern pattern, entity.Clause clause) {
super(pattern, clause);
}
@java.lang.Override
public productmodel.GL7Deds getCoverage() {
return (productmodel.GL7Deds)getClause();
}
@java.lang.Override
public productmodel.GL7Deds getGL7Deds() {
return (productmodel.GL7Deds)getClause();
}
}
|
[
"ashwini@cruxxtechnologies.com"
] |
ashwini@cruxxtechnologies.com
|
8a63116810d7060c8a0c3d50f5711ecf527df07d
|
665f0f5c68b0657b7ec304cd7393c8343df2b0d0
|
/Week2/app/src/main/java/com/example/myapplication/MainActivity.java
|
08ae94c290f893cfe027167a71bcd0c67dbfd4d5
|
[] |
no_license
|
gujianlong/lianx
|
e2268d5815b89ca7f12a2ba1fb6b808a68b419ff
|
43684531b0724beea8a94813deba96c644a41c44
|
refs/heads/master
| 2021-01-27T00:54:31.434735
| 2020-03-06T08:48:12
| 2020-03-06T08:48:12
| 243,470,216
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,070
|
java
|
package com.example.myapplication;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.example.myapplication.adapter.MyAdapter;
import com.example.myapplication.base.BaseActivity;
import com.example.myapplication.base.BasePresenter;
import com.example.myapplication.bean.UserBean;
import com.example.myapplication.mvp.Presenter;
import com.google.gson.Gson;
import java.util.ArrayList;
import java.util.List;
import butterknife.BindView;
import butterknife.ButterKnife;
public class MainActivity extends BaseActivity {
@BindView(R.id.rv)
RecyclerView rv;
private List<UserBean.ResultBean> list = new ArrayList<>();
private MyAdapter myAdapter;
@Override
protected void startDing() {
myAdapter = new MyAdapter(this, list);
rv.setAdapter(myAdapter);
mPresenter.getInfo("http://172.17.8.100/small/commodity/v1/findCommodityByKeyword?keyword=板鞋&page=1&count=5");
myAdapter.setItemClick(new MyAdapter.ItemClick() {
@Override
public void onItemClick(int position) {
Toast.makeText(MainActivity.this, "跳转成功", Toast.LENGTH_SHORT).show();
Intent intent = new Intent(MainActivity.this, Main2Activity.class);
startActivity(intent);
}
});
}
@Override
protected void initView() {
rv.setLayoutManager(new LinearLayoutManager(this));
}
@Override
protected BasePresenter getPresenter() {
return new Presenter();
}
@Override
protected int layoutId() {
return R.layout.activity_main;
}
@Override
public void onSuccess(String url) {
Gson gson = new Gson();
UserBean userBean = gson.fromJson(url, UserBean.class);
list.addAll(userBean.getResult());
myAdapter.notifyDataSetChanged();
}
@Override
public void onError(Throwable throwable) {
}
}
|
[
"gjl2879905137@163.com"
] |
gjl2879905137@163.com
|
26e961637e91a9aec4590a8af9b87b107d0e1d5e
|
30069d60dbdb93c3e0eabe82806e112a6677facf
|
/vasco/src/main/java/org/mpi/vasco/coordination/protocols/util/asym/AsymNonBarrierCounter.java
|
622315f0c7ccd82fce5604f16d1b0a4b1d611213
|
[] |
no_license
|
pandaworrior/VascoRepo
|
31b7af0d14848850acb47282b906cedabd554e21
|
e7139a3a5c7400a242437b323ddf00726b28e3ff
|
refs/heads/master
| 2021-01-10T05:22:47.827866
| 2019-04-18T11:31:25
| 2019-04-18T11:31:25
| 36,298,032
| 3
| 1
| null | 2020-10-13T10:05:26
| 2015-05-26T13:34:42
|
Java
|
UTF-8
|
Java
| false
| false
| 1,204
|
java
|
package org.mpi.vasco.coordination.protocols.util.asym;
public class AsymNonBarrierCounter extends AsymCounter{
private long localCount;
private long globalCount;
public AsymNonBarrierCounter() {
this.setLocalCount(0);
this.setGlobalCount(0);
}
public AsymNonBarrierCounter(long lc, long gc) {
this.setLocalCount(lc);
this.setGlobalCount(gc);
}
public long getLocalCount() {
return localCount;
}
public void setLocalCount(long localCount) {
this.localCount = localCount;
}
public long getGlobalCount() {
return globalCount;
}
public void setGlobalCount(long globalCount) {
this.globalCount = globalCount;
}
public void addLocalInstance(){
this.localCount++;
}
public void completeLocalInstance(){
this.globalCount++;
}
public void addRemoteInstance(){
this.globalCount++;
}
@Override
public boolean isBarrier() {
return false;
}
@Override
public String toString() {
StringBuilder strBuild = new StringBuilder("(non-barrier counter: ");
strBuild.append("(local: ");
strBuild.append(this.localCount);
strBuild.append(", global: ");
strBuild.append(this.globalCount);
strBuild.append("))");
return strBuild.toString();
}
}
|
[
"chenglinkcs@gmail.com"
] |
chenglinkcs@gmail.com
|
cf28bcdae1af684d59f3b109235013b4ca0409b8
|
313cac74fe44fa4a08c50b2f251e4167f637c049
|
/retail-fas-1.1.2/retail-fas/retail-fas-service/src/main/java/cn/wonhigh/retail/fas/service/BillSplitDtlService.java
|
76b93212d49aa6f29fbb64bccff491556f2ccf4b
|
[] |
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
| 945
|
java
|
package cn.wonhigh.retail.fas.service;
import java.util.List;
import java.util.Map;
import cn.wonhigh.retail.fas.common.model.BillSplitDtl;
import com.yougou.logistics.base.common.exception.ServiceException;
import com.yougou.logistics.base.service.BaseCrudService;
/**
* 请写出类的用途
* @author yang.y
* @date 2014-08-29 13:20:36
* @version 1.0.0
* @copyright (C) 2013 YouGou Information Technology Co.,Ltd
* All Rights Reserved.
*
* The software for the YouGou technology development, without the
* company's written consent, and any other individuals and
* organizations shall not be used, Copying, Modify or distribute
* the software.
*
*/
public interface BillSplitDtlService extends BaseCrudService {
int batchAdd(List<BillSplitDtl> list) throws ServiceException;
int batchUpdateBalanceNoById(Map<String, Object> params) throws ServiceException;
int findSplitCount(Map<String, Object> params);
}
|
[
"gavin2lee@163.com"
] |
gavin2lee@163.com
|
2aabffcfe65ab638f93d34657464224821e10ce7
|
e75be673baeeddee986ece49ef6e1c718a8e7a5d
|
/submissions/blizzard/Corpus/tomcat70/851.java
|
77d98eeb6d8e82b2fbaf8de3f40518177b05999e
|
[
"MIT"
] |
permissive
|
zhendong2050/fse18
|
edbea132be9122b57e272a20c20fae2bb949e63e
|
f0f016140489961c9e3c2e837577f698c2d4cf44
|
refs/heads/master
| 2020-12-21T11:31:53.800358
| 2018-07-23T10:10:57
| 2018-07-23T10:10:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,415
|
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.catalina.tribes.io;
import org.apache.juli.logging.Log;
import org.apache.juli.logging.LogFactory;
/**
*
* @author Filip Hanik
*
* @version 1.0
*/
public class BufferPool {
private static final Log log = LogFactory.getLog(BufferPool.class);
//100MB
public static final int DEFAULT_POOL_SIZE = 100 * 1024 * 1024;
protected static volatile BufferPool instance = null;
protected BufferPoolAPI pool = null;
private BufferPool(BufferPoolAPI pool) {
this.pool = pool;
}
public XByteBuffer getBuffer(int minSize, boolean discard) {
if (pool != null)
return pool.getBuffer(minSize, discard);
else
return new XByteBuffer(minSize, discard);
}
public void returnBuffer(XByteBuffer buffer) {
if (pool != null)
pool.returnBuffer(buffer);
}
public void clear() {
if (pool != null)
pool.clear();
}
public static BufferPool getBufferPool() {
if ((instance == null)) {
synchronized (BufferPool.class) {
if (instance == null) {
BufferPoolAPI pool = null;
Class<?> clazz = null;
try {
// TODO Is this approach still required?
clazz = Class.forName("org.apache.catalina.tribes.io.BufferPool15Impl");
pool = (BufferPoolAPI) clazz.newInstance();
} catch (Throwable x) {
log.warn("Unable to initilize BufferPool, not pooling XByteBuffer objects:" + x.getMessage());
if (log.isDebugEnabled())
log.debug("Unable to initilize BufferPool, not pooling XByteBuffer objects:", x);
}
if (pool != null) {
pool.setMaxSize(DEFAULT_POOL_SIZE);
log.info("Created a buffer pool with max size:" + DEFAULT_POOL_SIZE + " bytes of type:" + (clazz != null ? clazz.getName() : "null"));
instance = new BufferPool(pool);
}
}
//end if
}
//sync
}
//end if
return instance;
}
public static interface BufferPoolAPI {
public void setMaxSize(int bytes);
public XByteBuffer getBuffer(int minSize, boolean discard);
public void returnBuffer(XByteBuffer buffer);
public void clear();
}
}
|
[
"tim.menzies@gmail.com"
] |
tim.menzies@gmail.com
|
941dfc475f2d4d311067a76be38d7e65017a3603
|
fa1408365e2e3f372aa61e7d1e5ea5afcd652199
|
/src/testcases/CWE789_Uncontrolled_Mem_Alloc/s02/CWE789_Uncontrolled_Mem_Alloc__PropertiesFile_HashMap_54a.java
|
163819dfe80e04d5e84c217c9c229456258fd22d
|
[] |
no_license
|
bqcuong/Juliet-Test-Case
|
31e9c89c27bf54a07b7ba547eddd029287b2e191
|
e770f1c3969be76fdba5d7760e036f9ba060957d
|
refs/heads/master
| 2020-07-17T14:51:49.610703
| 2019-09-03T16:22:58
| 2019-09-03T16:22:58
| 206,039,578
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,880
|
java
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE789_Uncontrolled_Mem_Alloc__PropertiesFile_HashMap_54a.java
Label Definition File: CWE789_Uncontrolled_Mem_Alloc.int.label.xml
Template File: sources-sink-54a.tmpl.java
*/
/*
* @description
* CWE: 789 Uncontrolled Memory Allocation
* BadSource: PropertiesFile Read data from a .properties file (in property named data)
* GoodSource: A hardcoded non-zero, non-min, non-max, even number
* Sinks: HashMap
* BadSink : Create a HashMap using data as the initial size
* Flow Variant: 54 Data flow: data passed as an argument from one method through three others to a fifth; all five functions are in different classes in the same package
*
* */
package testcases.CWE789_Uncontrolled_Mem_Alloc.s02;
import testcasesupport.*;
import javax.servlet.http.*;
import java.util.Properties;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.logging.Level;
public class CWE789_Uncontrolled_Mem_Alloc__PropertiesFile_HashMap_54a extends AbstractTestCase
{
public void bad() throws Throwable
{
int data;
data = Integer.MIN_VALUE; /* Initialize data */
/* retrieve the property */
{
Properties properties = new Properties();
FileInputStream streamFileInput = null;
try
{
streamFileInput = new FileInputStream("../common/config.properties");
properties.load(streamFileInput);
/* POTENTIAL FLAW: Read data from a .properties file */
String stringNumber = properties.getProperty("data");
if (stringNumber != null) // avoid NPD incidental warnings
{
try
{
data = Integer.parseInt(stringNumber.trim());
}
catch(NumberFormatException exceptNumberFormat)
{
IO.logger.log(Level.WARNING, "Number format exception parsing data from string", exceptNumberFormat);
}
}
}
catch (IOException exceptIO)
{
IO.logger.log(Level.WARNING, "Error with stream reading", exceptIO);
}
finally
{
/* Close stream reading object */
try
{
if (streamFileInput != null)
{
streamFileInput.close();
}
}
catch (IOException exceptIO)
{
IO.logger.log(Level.WARNING, "Error closing FileInputStream", exceptIO);
}
}
}
(new CWE789_Uncontrolled_Mem_Alloc__PropertiesFile_HashMap_54b()).badSink(data );
}
public void good() throws Throwable
{
goodG2B();
}
/* goodG2B() - use goodsource and badsink */
private void goodG2B() throws Throwable
{
int data;
/* FIX: Use a hardcoded number that won't cause underflow, overflow, divide by zero, or loss-of-precision issues */
data = 2;
(new CWE789_Uncontrolled_Mem_Alloc__PropertiesFile_HashMap_54b()).goodG2BSink(data );
}
/* Below is the main(). It is only used when building this testcase on
* its own for testing or for building a binary to use in testing binary
* analysis tools. It is not used when compiling all the testcases as one
* application, which is how source code analysis tools are tested.
*/
public static void main(String[] args) throws ClassNotFoundException,
InstantiationException, IllegalAccessException
{
mainFromParent(args);
}
}
|
[
"bqcuong2212@gmail.com"
] |
bqcuong2212@gmail.com
|
01ace464f8c0b90ac9c254b374b21f0bbad75b97
|
a66cff77e4f17171ded905db32461fb9756b3ec3
|
/plugins/eu.hydrologis.jgrass.ui.utilities/src/eu/hydrologis/jgrass/ui/utilities/CatalogJGrassMapsetTreeViewerDialog.java
|
571422f5882804355086d05053751c02064c473f
|
[] |
no_license
|
zulfahmi/jgrass
|
d2b2836e26d3d3b5b9c2e2b3a257b2ae5461debb
|
41d98df8a616a13d5f6b77061a06ee88eea59240
|
refs/heads/master
| 2021-01-19T11:17:48.420072
| 2015-08-23T10:33:49
| 2015-08-23T10:33:49
| 41,245,221
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,067
|
java
|
/*
* JGrass - Free Open Source Java GIS http://www.jgrass.org
* (C) HydroloGIS - www.hydrologis.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* 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 Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package eu.hydrologis.jgrass.ui.utilities;
import java.util.List;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import eu.hydrologis.jgrass.ui.utilities.messages.Messages;
import eu.udig.catalog.jgrass.core.JGrassMapsetGeoResource;
/**
* <p>
* This class supplies a tree viewer containing the JGrass mapsets that are at that time present in
* the catalog.
* </p>
*
* @author Andrea Antonello - www.hydrologis.com
* @since 1.1.0
*/
public class CatalogJGrassMapsetTreeViewerDialog {
private CatalogJGrassMapsetsTreeViewer active;
private List<JGrassMapsetGeoResource> newLayers;
private boolean doContinue = false;
private synchronized boolean isContinueRequired() {
return doContinue;
}
private synchronized void setRequireContinue( boolean cont ) {
doContinue = cont;
}
public void open( Shell parentShell ) {
try {
setRequireContinue(false);
Dialog dialog = new Dialog(parentShell){
@Override
protected void configureShell( Shell shell ) {
super.configureShell(shell);
shell.setText(Messages
.getString("CatalogJGrassMapsetTreeViewerDialog.choosemapset")); //$NON-NLS-1$
}
@Override
protected Point getInitialSize() {
return new Point(250, 250);
}
@Override
protected Control createDialogArea( Composite parent ) {
Composite parentPanel = (Composite) super.createDialogArea(parent);
GridLayout gLayout = (GridLayout) parentPanel.getLayout();
gLayout.numColumns = 1;
active = new CatalogJGrassMapsetsTreeViewer(parentPanel, SWT.BORDER, SWT.SINGLE);
return parentPanel;
}
@Override
protected void buttonPressed( int buttonId ) {
super.buttonPressed(buttonId);
if (buttonId == OK) {
newLayers = active.getSelectedLayers();
} else {
newLayers = null;
}
setRequireContinue(true);
}
};
dialog.setBlockOnOpen(true);
dialog.open();
while( !isContinueRequired() ) {
if (dialog.getShell().isDisposed()) {
break;
}
if (Display.getCurrent().readAndDispatch()) {
continue;
}
try {
Thread.sleep(300);
} catch (InterruptedException ex) {
ex.printStackTrace();
}
}
} catch (Exception e) {
e.printStackTrace();
}
}
public List<JGrassMapsetGeoResource> getSelectedLayers() {
return newLayers;
}
}
|
[
"andrea.antonello@gmail.com"
] |
andrea.antonello@gmail.com
|
dd6b73564841ba62b2070de493f287d3ad23fd80
|
f3c795356b8d4af1aed88626de5882313bc2ae8b
|
/Medical/src/main/java/com/gewu/Medical/controller/DoctorController.java
|
a8585a2091c2ac4d7c2eb03664841f972ddfe63b
|
[] |
no_license
|
vincentduan/Medical
|
2e692f403744249d08c5456663db8a7cce30213b
|
fd5659e58efdffa69e9d5ef385716c05aba3b1d1
|
refs/heads/master
| 2020-04-06T06:55:58.666123
| 2016-09-08T10:36:04
| 2016-09-08T10:36:04
| 64,371,383
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,542
|
java
|
package com.gewu.Medical.controller;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
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.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.gewu.Medical.model.Doctor;
import com.gewu.Medical.service.DoctorService;
@Controller
@RequestMapping(value = "/doctor")
public class DoctorController {
private static Logger logger = Logger.getLogger(DoctorController.class);
@Autowired
private DoctorService doctorService;
/**
* 根据科室id 得到当前科室的所有医生
* @param request
* @param response
* @return
*/
@RequestMapping(value = "findDoctorsByDepartment", method = RequestMethod.GET)
@ResponseBody
public List<Doctor> findDoctorsByDepartment(HttpServletRequest request,
HttpServletResponse response) {
int departmentid = Integer.parseInt(request.getParameter("departmentid"));
List<Doctor> doctors = doctorService.findDoctorsByDepartment(departmentid);
return doctors;
}
@RequestMapping(value = "findAllDoctors", method = RequestMethod.GET)
@ResponseBody
public List<Doctor> findAllDoctors(HttpServletRequest request,
HttpServletResponse response) {
List<Doctor> doctors = doctorService.findAllDoctors();
return doctors;
}
}
|
[
"duandingyang@bjtu.edu.cn"
] |
duandingyang@bjtu.edu.cn
|
5434d73fa796de46feea85299fe252aa704ae96b
|
39a07ecbb8c1e9165bc0354d0690f568c6581c2f
|
/app/src/main/java/com/example/nytimesmostpopulararticles_mvp/ui/base/BasePresenter.java
|
f9090d461147ab7cd93bf2573edcede2eaf8cd43
|
[
"Apache-2.0"
] |
permissive
|
AmrAbdelhameed/NYTimesMostPopularArticles_MVP
|
c7c93357ac621e4c0a0b88306b1b6234c481776c
|
e7c6466f6b4c391297bfb3ce94f8f1215ec2e28d
|
refs/heads/master
| 2020-07-29T17:27:32.288154
| 2019-12-28T22:26:59
| 2019-12-28T22:26:59
| 209,901,521
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,611
|
java
|
package com.example.nytimesmostpopulararticles_mvp.ui.base;
import android.util.Log;
import com.androidnetworking.common.ANConstants;
import com.androidnetworking.error.ANError;
import com.example.nytimesmostpopulararticles_mvp.R;
import com.example.nytimesmostpopulararticles_mvp.data.DataManager;
import com.example.nytimesmostpopulararticles_mvp.data.network.model.ApiError;
import com.example.nytimesmostpopulararticles_mvp.utils.AppConstants;
import com.example.nytimesmostpopulararticles_mvp.utils.rx.SchedulerProvider;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonSyntaxException;
import javax.inject.Inject;
import javax.net.ssl.HttpsURLConnection;
import io.reactivex.disposables.CompositeDisposable;
/**
* Base class that implements the Presenter interface and provides a base implementation for
* onAttach() and onDetach(). It also handles keeping a reference to the mvpView that
* can be accessed from the children classes by calling getMvpView().
*/
public class BasePresenter<V extends MvpView> implements MvpPresenter<V> {
private static final String TAG = "BasePresenter";
private final DataManager mDataManager;
private final SchedulerProvider mSchedulerProvider;
private final CompositeDisposable mCompositeDisposable;
private V mMvpView;
@Inject
public BasePresenter(DataManager dataManager,
SchedulerProvider schedulerProvider,
CompositeDisposable compositeDisposable) {
this.mDataManager = dataManager;
this.mSchedulerProvider = schedulerProvider;
this.mCompositeDisposable = compositeDisposable;
}
@Override
public void onAttach(V mvpView) {
mMvpView = mvpView;
}
@Override
public void onDetach() {
mCompositeDisposable.dispose();
mMvpView = null;
}
public boolean isViewAttached() {
return mMvpView != null;
}
public V getMvpView() {
return mMvpView;
}
public void checkViewAttached() {
if (!isViewAttached()) throw new MvpViewNotAttachedException();
}
public DataManager getDataManager() {
return mDataManager;
}
public SchedulerProvider getSchedulerProvider() {
return mSchedulerProvider;
}
public CompositeDisposable getCompositeDisposable() {
return mCompositeDisposable;
}
@Override
public void handleApiError(ANError error) {
if (error == null || error.getErrorBody() == null) {
getMvpView().onError(R.string.api_default_error);
return;
}
if (error.getErrorCode() == AppConstants.API_STATUS_CODE_LOCAL_ERROR
&& error.getErrorDetail().equals(ANConstants.CONNECTION_ERROR)) {
getMvpView().onError(R.string.connection_error);
return;
}
if (error.getErrorCode() == AppConstants.API_STATUS_CODE_LOCAL_ERROR
&& error.getErrorDetail().equals(ANConstants.REQUEST_CANCELLED_ERROR)) {
getMvpView().onError(R.string.api_retry_error);
return;
}
final GsonBuilder builder = new GsonBuilder().excludeFieldsWithoutExposeAnnotation();
final Gson gson = builder.create();
try {
ApiError apiError = gson.fromJson(error.getErrorBody(), ApiError.class);
if (apiError == null || apiError.getMessage() == null) {
getMvpView().onError(R.string.api_default_error);
return;
}
switch (error.getErrorCode()) {
case HttpsURLConnection.HTTP_UNAUTHORIZED:
case HttpsURLConnection.HTTP_FORBIDDEN:
setUserAsLoggedOut();
getMvpView().openActivityOnTokenExpire();
case HttpsURLConnection.HTTP_INTERNAL_ERROR:
case HttpsURLConnection.HTTP_NOT_FOUND:
default:
getMvpView().onError(apiError.getMessage());
}
} catch (JsonSyntaxException | NullPointerException e) {
Log.e(TAG, "handleApiError", e);
getMvpView().onError(R.string.api_default_error);
}
}
@Override
public void setUserAsLoggedOut() {
// getDataManager().setAccessToken(null);
}
public static class MvpViewNotAttachedException extends RuntimeException {
public MvpViewNotAttachedException() {
super("Please call Presenter.onAttach(MvpView) before" +
" requesting data to the Presenter");
}
}
}
|
[
"amrabdelhameedfcis123@gmail.com"
] |
amrabdelhameedfcis123@gmail.com
|
712fea4140342099e500ba73c3b0186c0be8ef76
|
d5f09c7b0e954cd20dd613af600afd91b039c48a
|
/sources/com/coolapk/market/databinding/ItemAppViewDownloadBinding.java
|
9b4fcbc870f87ab11d39852ef672b5f29b729a25
|
[] |
no_license
|
t0HiiBwn/CoolapkRelease
|
af5e00c701bf82c4e90b1033f5c5f9dc8526f4b3
|
a6a2b03e32cde0e5163016e0078391271a8d33ab
|
refs/heads/main
| 2022-07-29T23:28:35.867734
| 2021-03-26T11:41:18
| 2021-03-26T11:41:18
| 345,290,891
| 5
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,542
|
java
|
package com.coolapk.market.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.databinding.Bindable;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;
import com.coolapk.market.view.app.AppViewViewModel;
import com.coolapk.market.widget.ActionButtonFrameLayout;
public abstract class ItemAppViewDownloadBinding extends ViewDataBinding {
public final TextView actionButton;
public final ActionButtonFrameLayout actionContainer;
public final LinearLayout followView;
public final TextView historyVersionView;
@Bindable
protected AppViewViewModel mViewModel;
public abstract void setViewModel(AppViewViewModel appViewViewModel);
protected ItemAppViewDownloadBinding(Object obj, View view, int i, TextView textView, ActionButtonFrameLayout actionButtonFrameLayout, LinearLayout linearLayout, TextView textView2) {
super(obj, view, i);
this.actionButton = textView;
this.actionContainer = actionButtonFrameLayout;
this.followView = linearLayout;
this.historyVersionView = textView2;
}
public AppViewViewModel getViewModel() {
return this.mViewModel;
}
public static ItemAppViewDownloadBinding inflate(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z) {
return inflate(layoutInflater, viewGroup, z, DataBindingUtil.getDefaultComponent());
}
@Deprecated
public static ItemAppViewDownloadBinding inflate(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z, Object obj) {
return (ItemAppViewDownloadBinding) ViewDataBinding.inflateInternal(layoutInflater, 2131558607, viewGroup, z, obj);
}
public static ItemAppViewDownloadBinding inflate(LayoutInflater layoutInflater) {
return inflate(layoutInflater, DataBindingUtil.getDefaultComponent());
}
@Deprecated
public static ItemAppViewDownloadBinding inflate(LayoutInflater layoutInflater, Object obj) {
return (ItemAppViewDownloadBinding) ViewDataBinding.inflateInternal(layoutInflater, 2131558607, null, false, obj);
}
public static ItemAppViewDownloadBinding bind(View view) {
return bind(view, DataBindingUtil.getDefaultComponent());
}
@Deprecated
public static ItemAppViewDownloadBinding bind(View view, Object obj) {
return (ItemAppViewDownloadBinding) bind(obj, view, 2131558607);
}
}
|
[
"test@gmail.com"
] |
test@gmail.com
|
3d108e465adf4e4a08b19bc1465839d086bf8c0f
|
02569c8302b678e65c90400b12f68cd4020e3981
|
/04/AppTest.java
|
9393728dd81645461781462f36cd1b96cbb0ac41
|
[
"MIT"
] |
permissive
|
n0rd3r/aoc2018
|
edc17e69d6443c4ba2e310d966bee5fe05a815db
|
0d8476ba460f6f0983a6f8116deaa08331edeb9f
|
refs/heads/master
| 2020-04-08T20:27:58.463567
| 2018-12-06T22:37:28
| 2018-12-06T22:37:28
| 159,700,297
| 0
| 0
|
MIT
| 2018-12-05T04:11:36
| 2018-11-29T17:03:14
|
Java
|
UTF-8
|
Java
| false
| false
| 1,099
|
java
|
import java.util.*;
public class AppTest {
public static void main(String[] args) {
App a = new App();
System.out.println("ID 1234: " + a.processId("[1518-11-01 23:58] Guard #1234 begins shift"));
System.out.println("Minute 58: " + a.processMinute("[1518-11-01 23:58] Guard #1234 begins shift"));
System.out.println("Max 10: " + a.processMaxMinute("1:10,10:20,10:30"));
Guard g1 = new Guard("1", 10, 20);
Guard g2 = new Guard("2", 10, 15);
Guard g3 = new Guard("3", 10, 16);
Guard g4 = new Guard("1", 20, 26);
List<Guard> lg = new ArrayList<Guard>();
lg.add(g1);
lg.add(g2);
lg.add(g3);
lg.add(g4);
Map<String, Integer> m = a.processList(lg);
int max = 0;
String maxId = new String();
for (String key : m.keySet()) {
if (m.get(key) > max) {
max = m.get(key);
maxId = key;
}
}
System.out.println("Guard 1: 16: " + m.get("1"));
System.out.println("Max ID 1: " + maxId);
}
}
|
[
"none"
] |
none
|
b4c7c8d1c6f4098a78741feb82ee64e38256d034
|
ec9b1c2bbf49885c5184286eb09bb1b921b94a7e
|
/Java Programming/Voorbeeldproject - Mastermind/Mastermind v1/src/be/kdg/mastermind/model/MastermindException.java
|
dd01ed1723168ee2d7ff0ad7c75715c99ba8d007
|
[] |
no_license
|
gvdhaege/KdG
|
a7c46973be303162c85383fe5eaa2d74fda12b0a
|
9fdec9800fdcd0773340472bc5d711bfe73be3e4
|
refs/heads/master
| 2020-03-27T17:44:10.149815
| 2018-05-25T09:52:42
| 2018-05-25T09:52:42
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 209
|
java
|
package be.kdg.mastermind.model;
/**
* Created by vochtenh on 17/02/2016.
*/
public class MastermindException extends RuntimeException {
public MastermindException(String s) {
super(s);
}
}
|
[
"steven.excelmans@cegeka.com"
] |
steven.excelmans@cegeka.com
|
75ea65a70f9a8fb68964fe84f7140b385a2887db
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/single-large-project/src/main/java/org/gradle/test/performancenull_351/Productionnull_35039.java
|
1320006b8bda14d56f1d4108d319a82c51f5db80
|
[] |
no_license
|
gradle/performance-comparisons
|
b0d38db37c326e0ce271abebdb3c91769b860799
|
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
|
refs/heads/master
| 2023-08-14T19:24:39.164276
| 2022-11-24T05:18:33
| 2022-11-24T05:18:33
| 80,121,268
| 17
| 15
| null | 2022-09-30T08:04:35
| 2017-01-26T14:25:33
| null |
UTF-8
|
Java
| false
| false
| 588
|
java
|
package org.gradle.test.performancenull_351;
public class Productionnull_35039 {
private final String property;
public Productionnull_35039(String param) {
this.property = param;
}
public String getProperty() {
return property;
}
private String prop0;
public String getProp0() {
return prop0;
}
public void setProp0(String value) {
prop0 = value;
}
private String prop1;
public String getProp1() {
return prop1;
}
public void setProp1(String value) {
prop1 = value;
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
735c5153d430bd49b89c1477629cc2dca0919475
|
b12a74b3094c9ad76eb07f971893a1944bd8b226
|
/src/main/java/org/mismo/residential/_2009/schemas/MISMONumericString.java
|
b9f6a606d528884444d3710e7884a2a772e3cf1f
|
[] |
no_license
|
suniltota/TransformX-Service-UCD-ConvertTemplate
|
fc80801d3e6acd916b1ef6aaddefd82a6584b012
|
8eefca11b2fd2eb93bdb15e3ce07420b15d3eda1
|
refs/heads/master
| 2021-01-22T19:42:40.495580
| 2017-08-07T10:56:23
| 2017-08-07T10:56:23
| 100,713,001
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,562
|
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: 2016.12.01 at 06:02:48 PM IST
//
package org.mismo.residential._2009.schemas;
import java.util.HashMap;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import javax.xml.namespace.QName;
/**
* A data type of NumericString SHOULD identify a series of digits that are not number values. It MUST NOT contain any punctuation.
* EXAMPLE: A Taxpayer Identifier Value for a party could be expressed as "011223333".
*
* <p>Java class for MISMONumericString complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="MISMONumericString">
* <simpleContent>
* <extension base="<http://www.mismo.org/residential/2009/schemas>MISMONumericString_Base">
* <attGroup ref="{http://www.w3.org/1999/xlink}MISMOresourceLink"/>
* <attGroup ref="{http://www.mismo.org/residential/2009/schemas}AttributeExtension"/>
* <attribute name="SensitiveIndicator" type="{http://www.mismo.org/residential/2009/schemas}MISMOIndicator_Base" />
* <anyAttribute processContents='lax'/>
* </extension>
* </simpleContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MISMONumericString", propOrder = {
"value"
})
public class MISMONumericString {
@XmlValue
protected String value;
@XmlAttribute(name = "SensitiveIndicator")
protected Boolean sensitiveIndicator;
@XmlAttribute(name = "label", namespace = "http://www.w3.org/1999/xlink")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String label;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}
/**
* Gets the value of the sensitiveIndicator property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isSensitiveIndicator() {
return sensitiveIndicator;
}
/**
* Sets the value of the sensitiveIndicator property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setSensitiveIndicator(Boolean value) {
this.sensitiveIndicator = value;
}
/**
* Gets the value of the label property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLabel() {
return label;
}
/**
* Sets the value of the label property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLabel(String value) {
this.label = value;
}
/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
* <p>
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map<QName, String> getOtherAttributes() {
return otherAttributes;
}
}
|
[
"shravan.boragala@compugain.com"
] |
shravan.boragala@compugain.com
|
cdc2ced2de709cea219a6fd7ef891abbf1c079e8
|
f65b2cdc1970308ab26a7cf36da52f470cb5238a
|
/domain/src/main/java/com/homepaas/sls/domain/repository/WorkerInfoRepo.java
|
d9f417f4730b22d1499d1dbd14ed8f3af9bc4a2c
|
[] |
no_license
|
Miotlink/MAndroidClient
|
5cac8a0eeff2289eb676a4ddd51a90926a6ff7ad
|
83cbd50c38662a7a3662221b52d6b71f157d9740
|
refs/heads/master
| 2020-04-18T11:24:18.926374
| 2019-01-25T06:44:13
| 2019-01-25T06:44:13
| 167,498,578
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,062
|
java
|
package com.homepaas.sls.domain.repository;
import com.homepaas.sls.domain.entity.Evaluation;
import com.homepaas.sls.domain.entity.WorkerCollectionEntity;
import com.homepaas.sls.domain.entity.WorkerInfo;
import com.homepaas.sls.domain.exception.GetDataException;
import com.homepaas.sls.domain.exception.AuthException;
import java.util.List;
/**
* on 2016/1/19 0019
*
* @author zhudongjie .
*/
public interface WorkerInfoRepo {
WorkerInfo getWorkerInfo(String workerId) throws GetDataException;
List<WorkerCollectionEntity> getCollectedWorkerList() throws GetDataException, AuthException;
boolean likeWorker(String workerId, boolean like) throws GetDataException,AuthException;
boolean collectWorker(String workerId, boolean collect) throws GetDataException,AuthException;
boolean checkCallable(String workerId,String phone) throws GetDataException;
List<Evaluation> getEvaluationList(String workerId, int pageIndex, int pageSize)throws GetDataException;
String reportWorker(String workerId)throws GetDataException;
}
|
[
"pm@miotlinl.com"
] |
pm@miotlinl.com
|
f2862fad498a0e27e13e6e1d439654f8f0a5633c
|
5109720a75cd98addf7c80d2419ec66148246cc7
|
/app/src/main/java/com/yanlong/im/pay/server/PayServer.java
|
8121fb2a7c07d1138fb67f35c4b278c5c2f3f04d
|
[] |
no_license
|
tiebenxin/testHH
|
63382fb39ded70008aac020c0beb6d5b5eb28679
|
6cd273a5c61df94bdd044f2cf5d18d4bec65aaa4
|
refs/heads/master
| 2020-12-04T01:05:48.772485
| 2020-01-03T08:44:40
| 2020-01-03T08:44:40
| 231,546,613
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 304
|
java
|
package com.yanlong.im.pay.server;
import com.yanlong.im.pay.bean.SignatureBean;
import net.cb.cb.library.bean.ReturnBean;
import retrofit2.Call;
import retrofit2.http.POST;
public interface PayServer {
@POST("/red-envelope/get-signature")
Call<ReturnBean<SignatureBean>> getSignature();
}
|
[
"1062678603@qq.com"
] |
1062678603@qq.com
|
092ab99048655a4d686b19685b7f69bba04af4ad
|
fa93c9be2923e697fb8a2066f8fb65c7718cdec7
|
/sources/com/google/android/gms/phenotype/zzj.java
|
dc1cb13669c27c7adad052cdb552e72734c11d59
|
[] |
no_license
|
Auch-Auch/avito_source
|
b6c9f4b0e5c977b36d5fbc88c52f23ff908b7f8b
|
76fdcc5b7e036c57ecc193e790b0582481768cdc
|
refs/heads/master
| 2023-05-06T01:32:43.014668
| 2021-05-25T10:19:22
| 2021-05-25T10:19:22
| 370,650,685
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 532
|
java
|
package com.google.android.gms.phenotype;
import java.util.Comparator;
public final class zzj implements Comparator<zzi> {
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
@Override // java.util.Comparator
public final /* synthetic */ int compare(zzi zzi, zzi zzi2) {
zzi zzi3 = zzi;
zzi zzi4 = zzi2;
int i = zzi3.zzah;
int i2 = zzi4.zzah;
return i == i2 ? zzi3.name.compareTo(zzi4.name) : i - i2;
}
}
|
[
"auchhunter@gmail.com"
] |
auchhunter@gmail.com
|
403cc5ab5b619543611f4014079f9f025d4c0013
|
26ecb9ebb203f9b0f93a3ed67915b897280ada0b
|
/integrationtest/src/test/resources/springTest/src/main/java/org/mapstruct/itest/spring/SourceTargetMapperDecorator.java
|
6ac7fe3cb9c0320d7ca6e92fbd2d6e822898b5b9
|
[
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
maurofran/mapstruct
|
946687c25289f1374065eb3e3ec7636fa7409f98
|
71f4a4b2ca7840551ee61a35f25a0ac03c5bf0a9
|
refs/heads/master
| 2021-05-29T07:29:02.126434
| 2015-08-17T21:02:16
| 2015-08-17T21:02:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,489
|
java
|
/**
* Copyright 2012-2015 Gunnar Morling (http://www.gunnarmorling.de/)
* and/or other contributors as indicated by the @authors tag. See the
* copyright.txt file in the distribution for a full listing of all
* contributors.
*
* 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.mapstruct.itest.spring;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;
@Component
@Primary
public class SourceTargetMapperDecorator implements DecoratedSourceTargetMapper {
@Autowired
@Qualifier( "delegate" )
private DecoratedSourceTargetMapper delegate;
public SourceTargetMapperDecorator() {
}
@Override
public Target sourceToTarget(Source source) {
Target t = delegate.sourceToTarget( source );
t.setFoo( 43L );
return t;
}
}
|
[
"gunnar.morling@googlemail.com"
] |
gunnar.morling@googlemail.com
|
fca2007c8e8f7f09c04454936181d13fb5f7b7ed
|
0403033c74f6f136d0b2de99d8d67a1d55c3b9bf
|
/app/src/main/java/com/zhongke/weiduo/mvp/contract/ActivityAwardContract.java
|
ec963e1d881c453b13a03d494d637897cf5e27b5
|
[] |
no_license
|
Leney/WeiDuoCopy2
|
26fc7970fb5ed5cbac6a33ddfb3b889ee489b72b
|
64335960807c57ec2b7cc1e1e6013b9d3877cae5
|
refs/heads/master
| 2021-08-28T02:32:24.611003
| 2017-12-11T03:38:39
| 2017-12-11T03:38:39
| 113,806,617
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 190
|
java
|
package com.zhongke.weiduo.mvp.contract;
import com.zhongke.weiduo.mvp.base.BaseView;
/**
* Created by hyx on 2017/10/26.
*/
public interface ActivityAwardContract extends BaseView {
}
|
[
"lilijunboy@163.com"
] |
lilijunboy@163.com
|
7a807f4b426ac497d70eb9a78a1686cfb895871b
|
f0d25d83176909b18b9989e6fe34c414590c3599
|
/app/src/main/java/com/amazonaws/auth/QueryStringSigner.java
|
3b05026b9b8a33734cd18974f4ede597c4fb1b37
|
[] |
no_license
|
lycfr/lq
|
e8dd702263e6565486bea92f05cd93e45ef8defc
|
123914e7c0d45956184dc908e87f63870e46aa2e
|
refs/heads/master
| 2022-04-07T18:16:31.660038
| 2020-02-23T03:09:18
| 2020-02-23T03:09:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,848
|
java
|
package com.amazonaws.auth;
import com.amazonaws.AmazonClientException;
import com.amazonaws.Request;
import com.amazonaws.util.DateUtils;
import com.appsflyer.share.Constants;
import java.net.URI;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Map;
import java.util.SortedMap;
import java.util.TimeZone;
import java.util.TreeMap;
public class QueryStringSigner extends AbstractAWSSigner implements Signer {
private Date overriddenDate;
public void sign(Request<?> request, AWSCredentials credentials) throws AmazonClientException {
sign(request, SignatureVersion.V2, SigningAlgorithm.HmacSHA256, credentials);
}
public void sign(Request<?> request, SignatureVersion version, SigningAlgorithm algorithm, AWSCredentials credentials) throws AmazonClientException {
String stringToSign;
if (!(credentials instanceof AnonymousAWSCredentials)) {
AWSCredentials sanitizedCredentials = sanitizeCredentials(credentials);
request.addParameter("AWSAccessKeyId", sanitizedCredentials.getAWSAccessKeyId());
request.addParameter("SignatureVersion", version.toString());
request.addParameter("Timestamp", getFormattedTimestamp(getTimeOffset(request)));
if (sanitizedCredentials instanceof AWSSessionCredentials) {
addSessionCredentials(request, (AWSSessionCredentials) sanitizedCredentials);
}
if (version.equals(SignatureVersion.V1)) {
stringToSign = calculateStringToSignV1(request.getParameters());
} else if (version.equals(SignatureVersion.V2)) {
request.addParameter("SignatureMethod", algorithm.toString());
stringToSign = calculateStringToSignV2(request);
} else {
throw new AmazonClientException("Invalid Signature Version specified");
}
request.addParameter("Signature", signAndBase64Encode(stringToSign, sanitizedCredentials.getAWSSecretKey(), algorithm));
}
}
private String calculateStringToSignV1(Map<String, String> parameters) {
StringBuilder data = new StringBuilder();
SortedMap<String, String> sorted = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
sorted.putAll(parameters);
for (Map.Entry<String, String> entry : sorted.entrySet()) {
data.append(entry.getKey());
data.append(entry.getValue());
}
return data.toString();
}
private String calculateStringToSignV2(Request<?> request) throws AmazonClientException {
URI endpoint = request.getEndpoint();
Map<String, String> parameters = request.getParameters();
StringBuilder data = new StringBuilder();
data.append("POST").append("\n");
data.append(getCanonicalizedEndpoint(endpoint)).append("\n");
data.append(getCanonicalizedResourcePath(request)).append("\n");
data.append(getCanonicalizedQueryString(parameters));
return data.toString();
}
private String getCanonicalizedResourcePath(Request<?> request) {
String resourcePath = "";
if (request.getEndpoint().getPath() != null) {
resourcePath = resourcePath + request.getEndpoint().getPath();
}
if (request.getResourcePath() != null) {
if (resourcePath.length() > 0 && !resourcePath.endsWith(Constants.URL_PATH_DELIMITER) && !request.getResourcePath().startsWith(Constants.URL_PATH_DELIMITER)) {
resourcePath = resourcePath + Constants.URL_PATH_DELIMITER;
}
resourcePath = resourcePath + request.getResourcePath();
} else if (!resourcePath.endsWith(Constants.URL_PATH_DELIMITER)) {
resourcePath = resourcePath + Constants.URL_PATH_DELIMITER;
}
if (!resourcePath.startsWith(Constants.URL_PATH_DELIMITER)) {
resourcePath = Constants.URL_PATH_DELIMITER + resourcePath;
}
if (resourcePath.startsWith("//")) {
return resourcePath.substring(1);
}
return resourcePath;
}
private String getFormattedTimestamp(int offset) {
SimpleDateFormat df = new SimpleDateFormat(DateUtils.ISO8601_DATE_PATTERN);
df.setTimeZone(TimeZone.getTimeZone("UTC"));
if (this.overriddenDate != null) {
return df.format(this.overriddenDate);
}
return df.format(getSignatureDate(offset));
}
/* access modifiers changed from: package-private */
public void overrideDate(Date date) {
this.overriddenDate = date;
}
/* access modifiers changed from: protected */
public void addSessionCredentials(Request<?> request, AWSSessionCredentials credentials) {
request.addParameter("SecurityToken", credentials.getSessionToken());
}
}
|
[
"quyenlm.vn@gmail.com"
] |
quyenlm.vn@gmail.com
|
94b22d194f4eb8b28476de220586f2aee04dffeb
|
3432ee3fcfa7a7a6b551630459baec17fe4a0342
|
/xhh-db/src/main/java/org/xhh/db/service/ActivitymealService.java
|
b3f95829c0b9d66dda287694ce0dba24381718a9
|
[] |
no_license
|
sfyproject/xhh
|
65f6cdf3c2e0c6ed23b84acfaa62d9bbb4bf1345
|
7eacf887e210793b8fca141a72373c5ac44fb2fb
|
refs/heads/master
| 2022-06-24T04:34:21.044523
| 2019-10-05T14:28:18
| 2019-10-05T14:28:18
| 187,440,519
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,563
|
java
|
package org.xhh.db.service;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import org.xhh.db.dao.ActivitymealMapper;
import org.xhh.db.domain.*;
import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.List;
@Service
public class ActivitymealService {
@Resource
private ActivitymealMapper activitymealMapper;
public void add(Activitymeal activitymeal) {
activitymeal.setCreateid("1");
activitymeal.setCreatetime(LocalDateTime.now());
activitymeal.setUpdateid("2");
activitymeal.setUpdatetime(LocalDateTime.now());
activitymealMapper.insertSelective(activitymeal);
}
public List<Activitymeal> querySelective(String name, Integer page, Integer limit) {
ActivitymealExample activityExample = new ActivitymealExample();
ActivitymealExample.Criteria criteria = activityExample.createCriteria();
if (!StringUtils.isEmpty(name)) {
criteria.andNameLike("%" + name + "%");
}
PageHelper.startPage(page, limit);
return activitymealMapper.selectByExample(activityExample);
}
public void deleteById(Integer id) {
activitymealMapper.deleteByPrimaryKey(id);
}
public void updateById(Activitymeal activitymeal) {
activitymealMapper.updateByPrimaryKeySelective(activitymeal);
}
public Activitymeal queryById(Integer id) {
return activitymealMapper.selectByPrimaryKeySelective(id);
}
}
|
[
"sfy5941@163.com"
] |
sfy5941@163.com
|
77e70c5c7d2205c5327b3ebdee5f4c3e0d0f7bf3
|
5ccf28cec123481ef77a3a6a865266dab5552f2a
|
/facesys-data/src/main/java/com/ss/facesys/data/viid/common/dto/common/SubImageInfo.java
|
6e812b875dc87a846cd1eed8cd4fea4960f9db9d
|
[] |
no_license
|
liangmuxue/facesys
|
dde7199a62fdc1b5727faf14e5c4fd40a068a2b8
|
ffa838a10216cecf2aea4b54c180f3c5443742ea
|
refs/heads/master
| 2022-12-21T15:54:59.846101
| 2021-04-07T09:17:34
| 2021-04-07T09:17:34
| 224,800,426
| 2
| 5
| null | 2022-12-16T10:56:21
| 2019-11-29T07:30:22
|
Java
|
UTF-8
|
Java
| false
| false
| 7,957
|
java
|
package com.ss.facesys.data.viid.common.dto.common;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
public class SubImageInfo {
@JSONField(name = "ImageID")
@JsonProperty("ImageID")
private String imageId;
@JSONField(name = "EventSort")
@JsonProperty("EventSort")
private Integer eventSort;
@JSONField(name = "DeviceID")
@JsonProperty("DeviceID")
private String deviceId;
@JSONField(name = "StoragePath")
@JsonProperty("StoragePath")
private String storagePath;
@JSONField(name = "Type")
@JsonProperty("Type")
private String type;
@JSONField(name = "ShotTime")
@JsonProperty("ShotTime")
private String shotTime;
@JSONField(name = "Width")
@JsonProperty("Width")
private Integer width;
@JSONField(name = "FileFormat")
@JsonProperty("FileFormat")
private String fileFormat = "Jpeg";
@JSONField(name = "Height")
@JsonProperty("Height")
private Integer height;
@JSONField(name = "Data")
@JsonProperty("Data")
private String data;
@JSONField(name = "SnapUuid")
@JsonProperty("SnapUuid")
private String snapUuid;
@JSONField(name = "DeviceChannel")
@JsonProperty("DeviceChannel")
private String deviceChannel;
public boolean equals(Object o) {
if (o == this) return true;
if (!(o instanceof SubImageInfo)) return false;
SubImageInfo other = (SubImageInfo) o;
if (!other.canEqual(this)) return false;
Object this$imageId = getImageId(), other$imageId = other.getImageId();
if ((this$imageId == null) ? (other$imageId != null) : !this$imageId.equals(other$imageId)) return false;
Object this$eventSort = getEventSort(), other$eventSort = other.getEventSort();
if ((this$eventSort == null) ? (other$eventSort != null) : !this$eventSort.equals(other$eventSort))
return false;
Object this$deviceId = getDeviceId(), other$deviceId = other.getDeviceId();
if ((this$deviceId == null) ? (other$deviceId != null) : !this$deviceId.equals(other$deviceId)) return false;
Object this$storagePath = getStoragePath(), other$storagePath = other.getStoragePath();
if ((this$storagePath == null) ? (other$storagePath != null) : !this$storagePath.equals(other$storagePath))
return false;
Object this$type = getType(), other$type = other.getType();
if ((this$type == null) ? (other$type != null) : !this$type.equals(other$type)) return false;
Object this$fileFormat = getFileFormat(), other$fileFormat = other.getFileFormat();
if ((this$fileFormat == null) ? (other$fileFormat != null) : !this$fileFormat.equals(other$fileFormat))
return false;
Object this$shotTime = getShotTime(), other$shotTime = other.getShotTime();
if ((this$shotTime == null) ? (other$shotTime != null) : !this$shotTime.equals(other$shotTime)) return false;
Object this$width = getWidth(), other$width = other.getWidth();
if ((this$width == null) ? (other$width != null) : !this$width.equals(other$width)) return false;
Object this$height = getHeight(), other$height = other.getHeight();
if ((this$height == null) ? (other$height != null) : !this$height.equals(other$height)) return false;
Object this$data = getData(), other$data = other.getData();
if ((this$data == null) ? (other$data != null) : !this$data.equals(other$data)) return false;
Object this$snapUuid = getSnapUuid(), other$snapUuid = other.getSnapUuid();
if ((this$snapUuid == null) ? (other$snapUuid != null) : !this$snapUuid.equals(other$snapUuid)) return false;
Object this$deviceChannel = getDeviceChannel(), other$deviceChannel = other.getDeviceChannel();
return !((this$deviceChannel == null) ? (other$deviceChannel != null) : !this$deviceChannel.equals(other$deviceChannel));
}
protected boolean canEqual(Object other) {
return other instanceof SubImageInfo;
}
public int hashCode() {
int PRIME = 59;
int result = 1;
Object $imageId = getImageId();
result = result * 59 + (($imageId == null) ? 0 : $imageId.hashCode());
Object $eventSort = getEventSort();
result = result * 59 + (($eventSort == null) ? 0 : $eventSort.hashCode());
Object $deviceId = getDeviceId();
result = result * 59 + (($deviceId == null) ? 0 : $deviceId.hashCode());
Object $storagePath = getStoragePath();
result = result * 59 + (($storagePath == null) ? 0 : $storagePath.hashCode());
Object $type = getType();
result = result * 59 + (($type == null) ? 0 : $type.hashCode());
Object $fileFormat = getFileFormat();
result = result * 59 + (($fileFormat == null) ? 0 : $fileFormat.hashCode());
Object $shotTime = getShotTime();
result = result * 59 + (($shotTime == null) ? 0 : $shotTime.hashCode());
Object $width = getWidth();
result = result * 59 + (($width == null) ? 0 : $width.hashCode());
Object $height = getHeight();
result = result * 59 + (($height == null) ? 0 : $height.hashCode());
Object $data = getData();
result = result * 59 + (($data == null) ? 0 : $data.hashCode());
Object $snapUuid = getSnapUuid();
result = result * 59 + (($snapUuid == null) ? 0 : $snapUuid.hashCode());
Object $deviceChannel = getDeviceChannel();
return result * 59 + (($deviceChannel == null) ? 0 : $deviceChannel.hashCode());
}
public String toString() {
return "SubImageInfo(imageId=" + getImageId() + ", eventSort=" + getEventSort() + ", deviceId=" + getDeviceId() + ", storagePath=" + getStoragePath() + ", type=" + getType() + ", fileFormat=" + getFileFormat() + ", shotTime=" + getShotTime() + ", width=" + getWidth() + ", height=" + getHeight() + ", data=" + getData() + ", snapUuid=" + getSnapUuid() + ", deviceChannel=" + getDeviceChannel() + ")";
}
public String getImageId() {
return this.imageId;
}
public void setImageId(String imageId) {
this.imageId = imageId;
}
public Integer getEventSort() {
return this.eventSort;
}
public void setEventSort(Integer eventSort) {
this.eventSort = eventSort;
}
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public String getStoragePath() {
return this.storagePath;
}
public void setStoragePath(String storagePath) {
this.storagePath = storagePath;
}
public String getType() {
return this.type;
}
public void setType(String type) {
this.type = type;
}
public String getFileFormat() {
return this.fileFormat;
}
public void setFileFormat(String fileFormat) {
this.fileFormat = fileFormat;
}
public String getShotTime() {
return this.shotTime;
}
public void setShotTime(String shotTime) {
this.shotTime = shotTime;
}
public Integer getWidth() {
return this.width;
}
public void setWidth(Integer width) {
this.width = width;
}
public Integer getHeight() {
return this.height;
}
public void setHeight(Integer height) {
this.height = height;
}
public String getData() {
return this.data;
}
public void setData(String data) {
this.data = data;
}
public String getSnapUuid() {
return this.snapUuid;
}
public void setSnapUuid(String snapUuid) {
this.snapUuid = snapUuid;
}
public String getDeviceChannel() {
return this.deviceChannel;
}
public void setDeviceChannel(String deviceChannel) {
this.deviceChannel = deviceChannel;
}
}
|
[
"francis_isys@163.com"
] |
francis_isys@163.com
|
66c4d6e9cd854bf8c0ad5f998959eeefb7858147
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/26/26_15f31766de5a191802399362994708817fb297ec/InputCompleteEvent/26_15f31766de5a191802399362994708817fb297ec_InputCompleteEvent_s.java
|
cf563e09ed48ee984b4f054b1e344aafd94c1776
|
[] |
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
| 2,999
|
java
|
/**
* Copyright 2010 Voxeo Corporation
*
* 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.voxeo.moho.event;
public class InputCompleteEvent extends MediaCompleteEvent {
public enum Cause {
/** the input is terminated because the initial silence is too long */
INI_TIMEOUT,
/** the input is terminated because the INTER_SIG_TIMEOUT_EXCEEDED */
IS_TIMEOUT,
/** the input is terminated by exceeding its max time allowed */
MAX_TIMEOUT,
/** the input is terminated by unknown error */
ERROR,
/** the input is canceled */
CANCEL,
/** the input is completed without a match */
NO_MATCH,
/** the input is completed with a match */
MATCH,
/** the input is terminated because the source is disconnected */
DISCONNECT, UNKNOWN
}
private static final long serialVersionUID = 4354478901698920065L;
protected Cause _cause;
protected String _concept;
protected String _interpretation;
protected String _utterance;
protected float _confidence;
protected String _nlsml;
protected boolean successful;
public InputCompleteEvent(final EventSource source, final Cause cause) {
super(source);
_cause = cause;
if (_cause == Cause.MATCH) {
successful = true;
}
}
public String getConcept() {
return _concept;
}
public void setConcept(final String _concept) {
this._concept = _concept;
}
public String getInterpretation() {
return _interpretation;
}
public void setInterpretation(final String _interpretation) {
this._interpretation = _interpretation;
}
public String getUtterance() {
return _utterance;
}
public void setUtterance(final String _utterance) {
this._utterance = _utterance;
}
public float getConfidence() {
return _confidence;
}
public void setConfidence(final float _confidence) {
this._confidence = _confidence;
}
public String getNlsml() {
return _nlsml;
}
public void setNlsml(final String _nlsml) {
this._nlsml = _nlsml;
}
public Cause getCause() {
return _cause;
}
public boolean hasMatch() {
return successful;
}
public String getValue() {
String retval = getConcept();
if (retval == null) {
retval = getInterpretation();
}
if (retval == null) {
retval = getUtterance();
}
return retval;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
aa611004dc10532dda627ce0287bde78a282fc71
|
86505462601eae6007bef6c9f0f4eeb9fcdd1e7b
|
/bin/modules/sap-framework-core/sapcorejcorec/src/de/hybris/platform/sap/core/jco/rec/RepositoryPlaybackFactory.java
|
d344f41222fe327fd3a9ee630d37709ac78d5e3e
|
[] |
no_license
|
jp-developer0/hybrisTrail
|
82165c5b91352332a3d471b3414faee47bdb6cee
|
a0208ffee7fee5b7f83dd982e372276492ae83d4
|
refs/heads/master
| 2020-12-03T19:53:58.652431
| 2020-01-02T18:02:34
| 2020-01-02T18:02:34
| 231,430,332
| 0
| 4
| null | 2020-08-05T22:46:23
| 2020-01-02T17:39:15
| null |
UTF-8
|
Java
| false
| false
| 791
|
java
|
/*
* Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* license agreement you entered into with SAP.
*/
package de.hybris.platform.sap.core.jco.rec;
/**
* This factory creates new instances of {@link RepositoryPlayback} implementations depending on the RepositoryVersion
* in the repository-file.
*/
public interface RepositoryPlaybackFactory
{
/**
* The actual factory method.
*
* @return Returns a new instance of the {@link RepositoryPlayback} implementation.
*/
public RepositoryPlayback createRepositoryPlayback();
}
|
[
"juan.gonzalez.working@gmail.com"
] |
juan.gonzalez.working@gmail.com
|
caf77e3b256368710385a72d04cbc64257dcbe55
|
7e1511cdceeec0c0aad2b9b916431fc39bc71d9b
|
/flakiness-predicter/input_data/original_tests/apache-ambari/nonFlakyMethods/org.apache.ambari.server.state.cluster.ClustersTest-testAddAndGetHost.java
|
c8a92f0eaad8426aa659929ff16cd7007a4b20c8
|
[
"BSD-3-Clause"
] |
permissive
|
Taher-Ghaleb/FlakeFlagger
|
6fd7c95d2710632fd093346ce787fd70923a1435
|
45f3d4bc5b790a80daeb4d28ec84f5e46433e060
|
refs/heads/main
| 2023-07-14T16:57:24.507743
| 2021-08-26T14:50:16
| 2021-08-26T14:50:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 716
|
java
|
@Test public void testAddAndGetHost() throws AmbariException {
String h1="h1";
String h2="h2";
String h3="h3";
clusters.addHost(h1);
try {
clusters.addHost(h1);
fail("Expected exception on duplicate host entry");
}
catch ( Exception e) {
}
clusters.addHost(h2);
clusters.addHost(h3);
List<Host> hosts=clusters.getHosts();
Assert.assertEquals(3,hosts.size());
Assert.assertNotNull(clusters.getHost(h1));
Assert.assertNotNull(clusters.getHost(h2));
Assert.assertNotNull(clusters.getHost(h3));
Host h=clusters.getHost(h2);
Assert.assertNotNull(h);
try {
clusters.getHost("foo");
fail("Expected error for unknown host");
}
catch ( HostNotFoundException e) {
}
}
|
[
"aalsha2@masonlive.gmu.edu"
] |
aalsha2@masonlive.gmu.edu
|
021e7e929af2f428acf71dbcbfbbebde603dfe5c
|
a5e50b1a45833a177258c236fca7b48e9b79f7ed
|
/Day11_eleven/src/com/itheima/_Demo05/Server.java
|
535863dbb9f78ee82b70af90db9f1e21cb6957b0
|
[] |
no_license
|
LeeMrChang/JavaTest01
|
0df51939604c8aad77350419b0e953d1b787d862
|
22142816fbb0a3a5c94fcb304e84d64665527d07
|
refs/heads/master
| 2020-09-30T13:28:14.761143
| 2019-12-11T06:46:47
| 2019-12-11T06:46:47
| 227,295,997
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,552
|
java
|
package com.itheima._Demo05;
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
public class Server {
public static void main(String[] args) throws IOException {
System.out.println("服务器启动了......");
//创建服务器对象
ServerSocket server = new ServerSocket(8000);
//调用accpnt方法(),建立连接
Socket socket = server.accept();
//转换流读取浏览器的请求信息
BufferedReader fas = new BufferedReader(new InputStreamReader(socket.getInputStream()));
String requst = fas.readLine();
//取出请求资源的路径
String[] strArr = requst.split(" ");
//去掉web前面的/
String path = strArr[1].substring(1);//获取得到的路径
//读取客户端请求的资源文件
FileInputStream file = new FileInputStream(path);
byte[] buffer = new byte[1024];
int len;
//字节输出流,将文件写出客户端
OutputStream out = socket.getOutputStream();
//写入HTTP协议响应头,固定写法
out.write("HTTP/1.1 200 OK\r\n".getBytes());
out.write("Content-Type:test/heml\r\n".getBytes());
//必须要写入空行,否则浏览器不解析
out.write("\r\n".getBytes());
while ((len = file.read(buffer)) != -1) {
out.write(buffer, 0, len);
}
//
file.close();
out.close();
fas.close();
socket.close();
server.close();
}
}
|
[
"840591418@qq.com"
] |
840591418@qq.com
|
2ace8d8441a4dfc81b223eee8d89e6b27058b0ff
|
41e407fbce3e10ddd61217c3acbaf04ade3294b0
|
/jOOQ/src/main/java/org/jooq/impl/FlashbackTable.java
|
ab980c2e5124a5d1cef1fb547e75923a011c076f
|
[
"Apache-2.0",
"BSD-3-Clause"
] |
permissive
|
pierrecarre/jOOQ-jdk5
|
ad65b1eb77e89924cf6f5cad5e346440e1bc67ad
|
ce46c54fff7ebf4753c37c120c5d64b4d35f9690
|
refs/heads/master
| 2021-01-21T09:50:02.647487
| 2014-01-22T16:44:38
| 2014-01-22T16:44:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,349
|
java
|
/**
* Copyright (c) 2009-2013, Data Geekery GmbH (http://www.datageekery.com)
* All rights reserved.
*
* This work is dual-licensed
* - under the Apache Software License 2.0 (the "ASL")
* - under the jOOQ License and Maintenance Agreement (the "jOOQ License")
* =============================================================================
* You may choose which license applies to you:
*
* - If you're using this work with Open Source databases, you may choose
* either ASL or jOOQ License.
* - If you're using this work with at least one commercial database, you must
* choose jOOQ License
*
* For more information, please visit http://www.jooq.org/licenses
*
* Apache Software License 2.0:
* -----------------------------------------------------------------------------
* 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.
*
* jOOQ License and Maintenance Agreement:
* -----------------------------------------------------------------------------
* Data Geekery grants the Customer the non-exclusive, timely limited and
* non-transferable license to install and use the Software under the terms of
* the jOOQ License and Maintenance Agreement.
*
* This library is distributed with a LIMITED WARRANTY. See the jOOQ License
* and Maintenance Agreement for more details: http://www.jooq.org/licensing
*/
package org.jooq.impl;
/* [pro] xx
xxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxx
xxxxxx xxxxxxxxxxxxxxxxxxxxx
xxxxxx xxxxxxxxxxxxxxx
xxxxxx xxxxxxxxxxxxxxxxxxx
xxxxxx xxxxxxxxxxxxxxxx
xxxxxx xxxxxxxxxxxxxxxxxxxxxxx
xxxxxx xxxxxxxxxxxxxxx
xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxx
x x xxxxxxxxx xxxxx xxxxxx xxxxxxxxxxxxxxx
x
x xxxxxxx xxxxx xxxx
xx
xxxxx xxxxxxxxxxxxxxxx xxxxxxx xxxxxxx xx
xxxxxxx xxxxxxxxxxxxxxxx
xxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xx x
xxx
x xxxxxxxxx xxx
xx
xxxxxxx xxxxxx xxxxx xxxx xxxxxxxxxxxxxxxx x xxxxxxxxxxxxxxxxxxxxxx
xxxxxxx xxxxx xxxxxxxx xxxxxx
xxxxxxx xxxxx xxxxxxxxx xxxxx
xxxxxxx xxxxx xxxxxxxx xxxxx
xxxxxxx xxxxx xxxxxxxxx xxxxxxxxx
xxxxxxx xxxxxxxxx xxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxx xxxxx xxxxxxxx xxxxxxxxx xxxxxxxxxxxxx xxxxx x
xxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxx x xxxxxx
xxxxxxxxx x xxxxx
xxxxxxxxxxxxx x xxxxxxxx xx xxxx x xxxxxxxx x xxxxxxxxxxxxxxxxxxxx
xxxxxxxxx x xxxx xx xxxxxxxxxxxxxxxxx x xxxxxxxxxxxxxx x xxxxxxxxxxxxxxxxxxxxx
x
xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xx xxxx xxxxxxxxx xxx
xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxx
xxxxxx xxxxx xxxxxxxx xxxxx xxxxxx x
xxxxxx xxxxxxxxxxxxxxxx
x
xxxxxxxxx
xxxxxx xxxxx xxxxxxxx xxxxxxxxxxx xxxxxxx xx xxxxxx x
xxxxxxxx x xxxxxx
xxxxxx xxxxx
x
xxxxxxxxx
xxxxxx xxxxx xxxxxxxx xxxxxxxxxxxxx x
xxxxxxxx x xxxxxxxxxxxxxxxxxxxx
xxxxxx xxxxx
x
xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xx xxxx xxxxx xxx
xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxx
xxxxxx xxxxx xxxxxxx xxxxxxx xx xxxxxxxxxxxxxxx x
xxxxxx xxxxxxxxxxxxxxxxxxxxxx
x
xxxxxxxxx
xxxxxx xxxxx xxxx xxxxxxxxxxxxxxxxxxx xxxxxxxx x
xxxxxxxxxxxxxxxxxxxxx
xx xxxxx xx xxxxx x
xxxxxxxxxxxxx xx
xxxxxxxxxxxx xxxx
xxxxxx xx
xxxxxxxxxxxx
xxxxxx xx
xxxxxxxxxxxxx
x
xxxx x
xxxxxxxxxxxxx xx
xxxxxxxxxxxxxxxxxx xxxxxxxxx
xxxxxx xx
xxxxxxxxxxxx
xxxxxx xx
xxxxxxxxxxxxxxxx
xxxxxx xx
xxxxxxxxxxxxxxx
xxxxxx xx
xxxxxxxxxxxxxxxxx
x
x
xxxxxxxxx
xxxxxx xxxxx xxxx xxxxxxxxxxxxxxxx xxxxxxxx x
xxxxxxxxxxxxxxxxxxxxx
xx xxxxx xx xxxxx x
xxxxxxxxxxxxxxxxxxxx
x
xxxx x
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
x
x
xxxxxxxxx
xxxxxx xxxxx xxxxxxx xxxxxxxxxxxxxxxx x
xxxxxx xxxxx
x
xxxxxxxxx
xxxxxx xxxxx xxxxxxxx xxxxxxxxx xxxxxx x
xxxxxx xxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxx
x
xxxxxxxxx
xxxxxx xxxxx xxxxxxxx xxxxxxxxx xxxxxx xxxxxxxxx xxxxxxxxxxxxx x
xxxxxx xxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxx xxxxxx
x
xxxxxxxxx
xxxxx xxxxxxxxx xxxxxxxxx x
xxxxxx xxx xxxxxxxxxxxxxxxxxxxxxxxxxx
x
xxx
x xxx xxxxxxxxx xxxxx xxxxxx xxxx
xx
xxxx xxxxxxxxxxxxx x
xxxx xxxxxxxxxx
x
x
xx [/pro] */
|
[
"lukas.eder@gmail.com"
] |
lukas.eder@gmail.com
|
9c00e37d0516728e9a37a93afec0495f7a59ec51
|
25baed098f88fc0fa22d051ccc8027aa1834a52b
|
/src/main/java/com/ljh/service/RDepttypeService.java
|
f9671fba6878f07affa8b35f7a7ac82af66ba541
|
[] |
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
| 282
|
java
|
package com.ljh.service;
import com.ljh.bean.RDepttype;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 医院科室分类表 服务类
* </p>
*
* @author ljh
* @since 2020-10-26
*/
public interface RDepttypeService extends IService<RDepttype> {
}
|
[
"37681193+woai555@users.noreply.github.com"
] |
37681193+woai555@users.noreply.github.com
|
027ba135db827d61b289fe6300b30cac587edef5
|
de3c2d89f623527b35cc5dd936773f32946025d2
|
/src/main/java/p005cn/bingoogolapple/qrcode/core/ScanResult.java
|
f6d2cc6369b2759c81202169d5e674fc39e5cf08
|
[] |
no_license
|
ren19890419/lvxing
|
5f89f7b118df59fd1da06aaba43bd9b41b5da1e6
|
239875461cb39e58183ac54e93565ec5f7f28ddb
|
refs/heads/master
| 2023-04-15T08:56:25.048806
| 2020-06-05T10:46:05
| 2020-06-05T10:46:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 239
|
java
|
package p005cn.bingoogolapple.qrcode.core;
/* renamed from: cn.bingoogolapple.qrcode.core.d */
public class ScanResult {
/* renamed from: a */
String f1202a;
public ScanResult(String str) {
this.f1202a = str;
}
}
|
[
"593746220@qq.com"
] |
593746220@qq.com
|
ae67368fadc082700007b91e884c7353511b0ec4
|
63aa90f81728c223df1eca002ba8b30e3b89ab29
|
/src/main/java/org/assertj/core/error/ShouldContainsOnlyOnce.java
|
ad491fff7d87d1b3064c7a4761193955cb728ccc
|
[
"Apache-2.0"
] |
permissive
|
assilzm/assertj-core
|
f87b92f05d8644b7c7946fdcbdf1041196dad6dc
|
faa1b442e674d440caa54ae860a70983ba3e2588
|
refs/heads/master
| 2021-01-18T08:24:33.533825
| 2015-03-11T21:11:44
| 2015-03-15T04:37:40
| 32,510,975
| 1
| 0
| null | 2015-03-19T09:01:51
| 2015-03-19T09:01:51
| null |
UTF-8
|
Java
| false
| false
| 4,155
|
java
|
/**
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*
* Copyright 2012-2015 the original author or authors.
*/
package org.assertj.core.error;
import static org.assertj.core.util.Iterables.isNullOrEmpty;
import java.util.Set;
import org.assertj.core.internal.ComparisonStrategy;
import org.assertj.core.internal.StandardComparisonStrategy;
/**
* Creates an error message indicating that an assertion that verifies a group of elements contains only a given set of
* values and nothing else failed. A group of elements can be a collection, an array or a {@code String}.
*
* @author William Delanoue
*/
public class ShouldContainsOnlyOnce extends BasicErrorMessageFactory {
/**
* Creates a new </code>{@link ShouldContainsOnlyOnce}</code>.
*
* @param actual the actual value in the failed assertion.
* @param expected values expected to be contained in {@code actual}.
* @param notFound values in {@code expected} not found in {@code actual}.
* @param notOnlyOnce values in {@code actual} that were not only once in {@code expected}.
* @param comparisonStrategy the {@link ComparisonStrategy} used to evaluate assertion.
* @return the created {@code ErrorMessageFactory}.
*/
public static ErrorMessageFactory shouldContainsOnlyOnce(Object actual, Object expected, Set<?> notFound,
Set<?> notOnlyOnce, ComparisonStrategy comparisonStrategy) {
if (!isNullOrEmpty(notFound) && !isNullOrEmpty(notOnlyOnce))
return new ShouldContainsOnlyOnce(actual, expected, notFound, notOnlyOnce, comparisonStrategy);
if (!isNullOrEmpty(notFound))
return new ShouldContainsOnlyOnce(actual, expected, notFound, comparisonStrategy);
// case where no elements were missing but some appeared more than once.
return new ShouldContainsOnlyOnce(notOnlyOnce, actual, expected, comparisonStrategy);
}
/**
* Creates a new </code>{@link ShouldContainsOnlyOnce}</code>.
*
* @param actual the actual value in the failed assertion.
* @param expected values expected to be contained in {@code actual}.
* @param notFound values in {@code expected} not found in {@code actual}.
* @param notOnlyOnce values in {@code actual} that were found not only once in {@code expected}.
* @return the created {@code ErrorMessageFactory}.
*/
public static ErrorMessageFactory shouldContainsOnlyOnce(Object actual, Object expected, Set<?> notFound,
Set<?> notOnlyOnce) {
return shouldContainsOnlyOnce(actual, expected, notFound, notOnlyOnce, StandardComparisonStrategy.instance());
}
private ShouldContainsOnlyOnce(Object actual, Object expected, Set<?> notFound, Set<?> notOnlyOnce,
ComparisonStrategy comparisonStrategy) {
super("%nExpecting:%n <%s>%nto contain only once:%n <%s>%n"
+ "but some elements were not found:%n <%s>%n"
+ "and others were found more than once:%n <%s>%n%s",
actual, expected, notFound, notOnlyOnce, comparisonStrategy);
}
private ShouldContainsOnlyOnce(Object actual, Object expected, Set<?> notFound, ComparisonStrategy comparisonStrategy) {
super("%nExpecting:%n <%s>%nto contain only once:%n <%s>%nbut some elements were not found:%n <%s>%n%s",
actual, expected, notFound, comparisonStrategy);
}
// change the order of parameters to avoid confusion with previous constructor
private ShouldContainsOnlyOnce(Set<?> notOnlyOnce, Object actual, Object expected,
ComparisonStrategy comparisonStrategy) {
super("%nExpecting:%n <%s>%nto contain only once:%n <%s>%nbut some elements were found more than once:%n <%s>%n%s",
actual, expected, notOnlyOnce, comparisonStrategy);
}
}
|
[
"joel.costigliola@gmail.com"
] |
joel.costigliola@gmail.com
|
8d178d9f9a8f82a19b950b8270924791ca6c6374
|
2c669ccff008612f6e12054d9162597f2088442c
|
/MEVO_apkpure.com_source_from_JADX/sources/com/google/android/gms/location/zzam.java
|
973661a99857480d5ce1e61b7f56139ddc980d13
|
[] |
no_license
|
PythonicNinja/mevo
|
e97fb27f302cb3554a69b27022dada2134ff99c0
|
cab7cea9376085caead1302b93e62e0d34a75470
|
refs/heads/master
| 2020-05-02T22:32:46.764930
| 2019-03-28T23:37:51
| 2019-03-28T23:37:51
| 178,254,526
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,548
|
java
|
package com.google.android.gms.location;
import android.app.PendingIntent;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
import java.util.List;
public final class zzam implements Creator<zzal> {
public final /* synthetic */ Object createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
List list = null;
String str = "";
PendingIntent pendingIntent = null;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
switch (SafeParcelReader.getFieldId(readHeader)) {
case 1:
list = SafeParcelReader.createStringList(parcel, readHeader);
break;
case 2:
pendingIntent = (PendingIntent) SafeParcelReader.createParcelable(parcel, readHeader, PendingIntent.CREATOR);
break;
case 3:
str = SafeParcelReader.createString(parcel, readHeader);
break;
default:
SafeParcelReader.skipUnknownField(parcel, readHeader);
break;
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new zzal(list, pendingIntent, str);
}
public final /* synthetic */ Object[] newArray(int i) {
return new zzal[i];
}
}
|
[
"mail@pythonic.ninja"
] |
mail@pythonic.ninja
|
1e1ff79b579a103b50c6fd62d3abb83322f5a52b
|
f7234c916ea792d5e29171ef4e818e4ff4ee6e44
|
/eve_batch/app3/B.java
|
8c92f39fca6d2d20947caab6642bb3dbbce4dd2c
|
[] |
no_license
|
priyankakumbha/Java
|
9f19366d6a3fa3e6f2b16575169d05bdc49e8845
|
b03e29e497448a540abfb89e3dce1f0ae5408663
|
refs/heads/master
| 2021-01-22T18:38:10.484390
| 2017-11-30T09:08:00
| 2017-11-30T09:08:00
| 100,762,622
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 149
|
java
|
class B
{
static int i;
static int j;
public static void main(String[] args)
{
System.out.println(i);
System.out.println(j);
}
}
|
[
"priyankakumbhar789@gmail.com"
] |
priyankakumbhar789@gmail.com
|
fe17bfc266ca0ca4c504be14bf2198bc2f81ab2e
|
5d059d98ffd879095d503f8db0bc701fab13ed11
|
/sfm/src/main/java/org/sfm/jdbc/impl/getter/CharacterResultSetGetter.java
|
c0310816aadab6b25cf95c417dd152c8da49c96f
|
[
"MIT"
] |
permissive
|
sripadapavan/SimpleFlatMapper
|
c74cce774b0326d5ea5ea141ee9f3caf07a98372
|
8359a08abb3a321b3a47f91cd4046ca1a88590fd
|
refs/heads/master
| 2021-01-17T08:11:57.463205
| 2016-02-06T14:38:44
| 2016-02-07T16:50:53
| 51,313,393
| 1
| 0
| null | 2016-02-08T17:23:12
| 2016-02-08T17:23:12
| null |
UTF-8
|
Java
| false
| false
| 922
|
java
|
package org.sfm.jdbc.impl.getter;
import org.sfm.reflect.Getter;
import org.sfm.reflect.primitive.CharacterGetter;
import java.sql.ResultSet;
import java.sql.SQLException;
public final class CharacterResultSetGetter implements CharacterGetter<ResultSet>, Getter<ResultSet, Character> {
private final int column;
public CharacterResultSetGetter(final int column) {
this.column = column;
}
@Override
public char getCharacter(final ResultSet target) throws SQLException {
return (char)target.getInt(column);
}
@Override
public Character get(final ResultSet target) throws SQLException {
final char c = getCharacter(target);
if (c == 0 && target.wasNull()) {
return null;
} else {
return c;
}
}
@Override
public String toString() {
return "CharacterResultSetGetter{" +
"column=" + column +
'}';
}
}
|
[
"arnaud.roger@gmail.com"
] |
arnaud.roger@gmail.com
|
8594ffeb7f8cd3e8fb9beadde58dd09cab6cd3b0
|
b481557b5d0e85a057195d8e2ed85555aaf6b4e7
|
/src/test/java/com/jlee/leetcodesolutions/TestLeetCode0809.java
|
4132f89b6235709b6b9c05ca453fad282a83ff03
|
[] |
no_license
|
jlee301/leetcodesolutions
|
b9c61d7fbe96bcb138a2727b69b3a39bbe153911
|
788ac8c1c95eb78eda27b21ecb7b29eea1c7b5a4
|
refs/heads/master
| 2021-06-05T12:27:42.795124
| 2019-08-11T23:04:07
| 2019-08-11T23:04:07
| 113,272,040
| 0
| 1
| null | 2020-10-12T23:39:27
| 2017-12-06T05:16:39
|
Java
|
UTF-8
|
Java
| false
| false
| 1,713
|
java
|
package com.jlee.leetcodesolutions;
import com.jlee.leetcodesolutions.LeetCode0809;
import org.junit.Assert;
import org.junit.Test;
public class TestLeetCode0809 {
@Test
public void testProblemCase() {
String S = "heeellooo";
String[] words = {"hello", "hi", "helo"};
LeetCode0809 solution = new LeetCode0809();
Assert.assertEquals(1, solution.expressiveWords(S, words));
}
@Test
public void testWordHasHigherCountGroup() {
String S = "heeellooo";
String[] words = {"helllo"};
LeetCode0809 solution = new LeetCode0809();
Assert.assertEquals(0, solution.expressiveWords(S, words));
}
@Test
public void testStringHasMoreChar() {
String S = "abcd";
String[] words = { "abc" };
LeetCode0809 solution = new LeetCode0809();
Assert.assertEquals(0, solution.expressiveWords(S, words));
}
@Test
public void testWordHasMoreChar() {
String S = "abc";
String[] words = { "abcd" };
LeetCode0809 solution = new LeetCode0809();
Assert.assertEquals(0, solution.expressiveWords(S, words));
}
@Test
public void testCharMismatch() {
String S = "ab";
String[] words = { "bc" };
LeetCode0809 solution = new LeetCode0809();
Assert.assertEquals(0, solution.expressiveWords(S, words));
}
@Test
public void testWordHasMore() {
String S = "aaa";
String[] words = { "aaaa" };
LeetCode0809 solution = new LeetCode0809();
Assert.assertEquals(0, solution.expressiveWords(S, words));
}
@Test
public void testWordCannotExtend() {
String S = "ll";
String[] words = { "l" };
LeetCode0809 solution = new LeetCode0809();
Assert.assertEquals(0, solution.expressiveWords(S, words));
}
}
|
[
"john.m.lee@gmail.com"
] |
john.m.lee@gmail.com
|
bfb4f7ac9c22605da10d0427e82f7aca86ef9ea0
|
ef44d044ff58ebc6c0052962b04b0130025a102b
|
/com.freevisiontech.fvmobile_source_from_JADX/sources/android/support/p001v4/view/LayoutInflaterCompat.java
|
31cb74f48d5df1063e6e87fa7fd3b2f5066d0084
|
[] |
no_license
|
thedemoncat/FVShare
|
e610bac0f2dc394534ac0ccec86941ff523e2dfd
|
bd1e52defaec868f0d1f9b4f2039625c8ff3ee4a
|
refs/heads/master
| 2023-08-06T04:11:16.403943
| 2021-09-25T10:11:13
| 2021-09-25T10:11:13
| 410,232,121
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,987
|
java
|
package android.support.p001v4.view;
import android.content.Context;
import android.os.Build;
import android.support.annotation.NonNull;
import android.support.annotation.RequiresApi;
import android.util.AttributeSet;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import java.lang.reflect.Field;
/* renamed from: android.support.v4.view.LayoutInflaterCompat */
public final class LayoutInflaterCompat {
static final LayoutInflaterCompatBaseImpl IMPL;
private static final String TAG = "LayoutInflaterCompatHC";
private static boolean sCheckedField;
private static Field sLayoutInflaterFactory2Field;
/* renamed from: android.support.v4.view.LayoutInflaterCompat$Factory2Wrapper */
static class Factory2Wrapper implements LayoutInflater.Factory2 {
final LayoutInflaterFactory mDelegateFactory;
Factory2Wrapper(LayoutInflaterFactory delegateFactory) {
this.mDelegateFactory = delegateFactory;
}
public View onCreateView(String name, Context context, AttributeSet attrs) {
return this.mDelegateFactory.onCreateView((View) null, name, context, attrs);
}
public View onCreateView(View parent, String name, Context context, AttributeSet attributeSet) {
return this.mDelegateFactory.onCreateView(parent, name, context, attributeSet);
}
public String toString() {
return getClass().getName() + "{" + this.mDelegateFactory + "}";
}
}
static void forceSetFactory2(LayoutInflater inflater, LayoutInflater.Factory2 factory) {
if (!sCheckedField) {
try {
sLayoutInflaterFactory2Field = LayoutInflater.class.getDeclaredField("mFactory2");
sLayoutInflaterFactory2Field.setAccessible(true);
} catch (NoSuchFieldException e) {
Log.e(TAG, "forceSetFactory2 Could not find field 'mFactory2' on class " + LayoutInflater.class.getName() + "; inflation may have unexpected results.", e);
}
sCheckedField = true;
}
if (sLayoutInflaterFactory2Field != null) {
try {
sLayoutInflaterFactory2Field.set(inflater, factory);
} catch (IllegalAccessException e2) {
Log.e(TAG, "forceSetFactory2 could not set the Factory2 on LayoutInflater " + inflater + "; inflation may have unexpected results.", e2);
}
}
}
/* renamed from: android.support.v4.view.LayoutInflaterCompat$LayoutInflaterCompatBaseImpl */
static class LayoutInflaterCompatBaseImpl {
LayoutInflaterCompatBaseImpl() {
}
public void setFactory(LayoutInflater inflater, LayoutInflaterFactory factory) {
setFactory2(inflater, factory != null ? new Factory2Wrapper(factory) : null);
}
public void setFactory2(LayoutInflater inflater, LayoutInflater.Factory2 factory) {
inflater.setFactory2(factory);
LayoutInflater.Factory f = inflater.getFactory();
if (f instanceof LayoutInflater.Factory2) {
LayoutInflaterCompat.forceSetFactory2(inflater, (LayoutInflater.Factory2) f);
} else {
LayoutInflaterCompat.forceSetFactory2(inflater, factory);
}
}
public LayoutInflaterFactory getFactory(LayoutInflater inflater) {
LayoutInflater.Factory factory = inflater.getFactory();
if (factory instanceof Factory2Wrapper) {
return ((Factory2Wrapper) factory).mDelegateFactory;
}
return null;
}
}
@RequiresApi(21)
/* renamed from: android.support.v4.view.LayoutInflaterCompat$LayoutInflaterCompatApi21Impl */
static class LayoutInflaterCompatApi21Impl extends LayoutInflaterCompatBaseImpl {
LayoutInflaterCompatApi21Impl() {
}
public void setFactory(LayoutInflater inflater, LayoutInflaterFactory factory) {
inflater.setFactory2(factory != null ? new Factory2Wrapper(factory) : null);
}
public void setFactory2(LayoutInflater inflater, LayoutInflater.Factory2 factory) {
inflater.setFactory2(factory);
}
}
static {
if (Build.VERSION.SDK_INT >= 21) {
IMPL = new LayoutInflaterCompatApi21Impl();
} else {
IMPL = new LayoutInflaterCompatBaseImpl();
}
}
private LayoutInflaterCompat() {
}
@Deprecated
public static void setFactory(@NonNull LayoutInflater inflater, @NonNull LayoutInflaterFactory factory) {
IMPL.setFactory(inflater, factory);
}
public static void setFactory2(@NonNull LayoutInflater inflater, @NonNull LayoutInflater.Factory2 factory) {
IMPL.setFactory2(inflater, factory);
}
@Deprecated
public static LayoutInflaterFactory getFactory(LayoutInflater inflater) {
return IMPL.getFactory(inflater);
}
}
|
[
"nl.ruslan@yandex.ru"
] |
nl.ruslan@yandex.ru
|
09a0f495ef5a817aaf0855cfd6d76efd52181b94
|
6a123b6cf379a555cc68e92d0d640380133d0ea5
|
/custom/gpcommerce/gpb2bstorefront/web/src/com/gp/commerce/b2b/storefront/controllers/integration/BaseIntegrationController.java
|
7ef8fc92a66fffcba58d2f190c7bd1071672276b
|
[] |
no_license
|
Myzenvei/Docs
|
c9357221bc306dc754b322350fc676dee1972e39
|
45809ee928669142073354e1126e7444dedd4730
|
refs/heads/master
| 2020-06-30T17:23:52.981874
| 2019-07-15T09:39:19
| 2019-07-15T09:39:19
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,883
|
java
|
/*
* [y] hybris Platform
*
* Copyright (c) 2017 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* license agreement you entered into with SAP.
*/
package com.gp.commerce.b2b.storefront.controllers.integration;
import de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController;
import de.hybris.platform.cms2.exceptions.CMSItemNotFoundException;
import de.hybris.platform.cms2.model.site.CMSSiteModel;
import de.hybris.platform.cms2.servicelayer.services.CMSSiteService;
import de.hybris.platform.site.BaseSiteService;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
/**
* Base controller for all integration controllers.
*/
public class BaseIntegrationController extends AbstractController
{
private static final Logger LOG = Logger.getLogger(BaseIntegrationController.class);
@Resource(name = "cmsSiteService")
protected CMSSiteService cmsSiteService;
@Resource(name = "baseSiteService")
protected BaseSiteService baseSiteService;
protected void initializeSiteFromRequest(final HttpServletRequest httpRequest)
{
final String queryString = httpRequest.getQueryString();
final String currentRequestURL = httpRequest.getRequestURL().toString();
final String absoluteURL = StringUtils.removeEnd(currentRequestURL, "/")
+ (StringUtils.isBlank(queryString) ? "" : "?" + queryString);
try
{
final URL currentURL = new URL(absoluteURL);
final CMSSiteModel cmsSiteModel = cmsSiteService.getSiteForURL(currentURL);
if (cmsSiteModel != null)
{
baseSiteService.setCurrentBaseSite(cmsSiteModel, true);
}
}
catch (final MalformedURLException e)
{
if (LOG.isDebugEnabled())
{
LOG.debug("Cannot find CMSSite associated with current URL ( " + absoluteURL
+ " - check whether this is correct URL) !");
}
}
catch (final CMSItemNotFoundException e)
{
LOG.warn("Cannot find CMSSite associated with current URL (" + absoluteURL + ")!");
if (LOG.isDebugEnabled())
{
LOG.debug(e);
}
}
}
protected Map<String, String> getParameterMap(final HttpServletRequest request)
{
final Map<String, String> map = new HashMap<>();
final Enumeration myEnum = request.getParameterNames();
while (myEnum.hasMoreElements())
{
final String paramName = (String) myEnum.nextElement();
final String paramValue = request.getParameter(paramName);
map.put(paramName, paramValue);
}
return map;
}
}
|
[
"shikhgupta@deloitte.com"
] |
shikhgupta@deloitte.com
|
1c763917c2728c064b053b6c75f01aed709325bd
|
2ebc9528389faf1551574a8d6203cbe338a72221
|
/zf/src/main/java/com/chinazhoufan/admin/modules/lgt/entity/bs/Shop.java
|
11c6dd00eae0dc7a041aa6d4246a082b4b0d107f
|
[
"Apache-2.0"
] |
permissive
|
flypig5211/zf-admin
|
237a7299a5dc65e33701df2aeca50fd4b2107e21
|
dbf36f42e2d6a2f3162d4856e9daa8152ee1d56e
|
refs/heads/master
| 2022-02-27T00:14:12.904808
| 2017-12-06T10:01:15
| 2017-12-06T10:01:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,217
|
java
|
/**
* Copyright © 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.chinazhoufan.admin.modules.lgt.entity.bs;
import org.hibernate.validator.constraints.Length;
import com.chinazhoufan.admin.common.persistence.DataEntity;
import com.chinazhoufan.admin.modules.sys.entity.Area;
import javax.validation.constraints.NotNull;
/**
* 体验店(自提点)Entity
* @author 张金俊
* @version 2016-01-21
*/
public class Shop extends DataEntity<Shop> {
private static final long serialVersionUID = 1L;
private String name; // 体验店名称
private String tel; // 联系电话
private Area area; // 地址ID
private String areaDetail; // 地址详情
private String photoUrl; // 展示图片
private String selfPickFlag; // 是否可自提
public static final String SELF_PICK_YES = "1";//自提
public static final String SELF_PICK_NO = "0";//配送
public Shop() {
super();
}
public Shop(String id){
super(id);
}
@Length(min=1, max=50, message="体验店名称长度必须介于 1 和 50 之间")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Length(min=1, max=50, message="联系电话长度必须介于 1 和 50 之间")
public String getTel() {
return tel;
}
public void setTel(String tel) {
this.tel = tel;
}
@NotNull(message="地址ID不能为空")
public Area getArea() {
return area;
}
public void setArea(Area area) {
this.area = area;
}
@Length(min=1, max=255, message="地址详情长度必须介于 1 和 255 之间")
public String getAreaDetail() {
return areaDetail;
}
public void setAreaDetail(String areaDetail) {
this.areaDetail = areaDetail;
}
@Length(min=1, max=255, message="展示图片长度必须介于 1 和 255 之间")
public String getPhotoUrl() {
return photoUrl;
}
public void setPhotoUrl(String photoUrl) {
this.photoUrl = photoUrl;
}
@Length(min=1, max=1, message="是否可自提长度必须介于 1 和 1 之间")
public String getSelfPickFlag() {
return selfPickFlag;
}
public void setSelfPickFlag(String selfPickFlag) {
this.selfPickFlag = selfPickFlag;
}
}
|
[
"646686483@qq.com"
] |
646686483@qq.com
|
2f441d865708d333e2f75f00d4f3a5f2abc4c923
|
8388d3009c0be9cb4e3ea25abbce7a0ad6f9b299
|
/business/pms/pms-core/src/main/java/com/sinosoft/pms/core/kernel/service/PrpDkindClauseService.java
|
ddf0aba7e37155908b87c7fae72caa2c1b100df8
|
[] |
no_license
|
foxhack/NewAgri2018
|
a182bd34d0c583a53c30d825d5e2fa569f605515
|
be8ab05e0784c6e7e7f46fea743debb846407e4f
|
refs/heads/master
| 2021-09-24T21:58:18.577979
| 2018-10-15T11:24:21
| 2018-10-15T11:24:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,184
|
java
|
package com.sinosoft.pms.core.kernel.service;
import com.sinosoft.framework.dto.PageInfo;
import com.sinosoft.pms.api.kernel.dto.PrpDkindClauseDto;
import java.util.List;
/**
* @author codegen@研发中心
* @mail admin@sinosoft.com.cn
* @time 2017-11-04 10:42:46.546
* @description PrpDkindClauseCore接口
*/
public interface PrpDkindClauseService {
/**
*@description 新增
*@param
*/
void save(PrpDkindClauseDto prpDkindClauseDto);
/**
*@description 删除
*@param
*/
void remove(String riskCode, String clauseFlag, String kindCode, String language, String clauseCode);
/**
*@description 修改
*@param
*/
void modify(PrpDkindClauseDto prpDkindClauseDto);
/**
*@description 按主键查询实体
*@param
*/
PrpDkindClauseDto queryByPK(String riskCode, String clauseFlag, String kindCode, String language, String clauseCode);
/**
* 根据险种代码查询条款代码集合
* @param riskCode 险种代码
* @return List<String> 条款代码集合
* @throws Exception
*/
public List<String> queryClauseCode(String riskCode)throws Exception;
}
|
[
"vicentdk77@users.noreply.github.com"
] |
vicentdk77@users.noreply.github.com
|
2dbe680fba10f008113374faa0060b6c51ff1f48
|
20eb62855cb3962c2d36fda4377dfd47d82eb777
|
/IntroClassJava/dataset/smallest/9013bd3be8c00de447e6ed49a0fe0fab037251c28e26954bf780f2f3b929a9e7ce9da037811c76028e4069d3857410f82b8f399c7fa4386ea8f97f80aab1f191/000/mutations/111/smallest_9013bd3b_000.java
|
ca59dc6e06ceb7bcc9169ad8ac44423a289c11e1
|
[] |
no_license
|
ozzydong/CapGen
|
356746618848065cce4e253e5d3c381baa85044a
|
0ba0321b6b1191443276021f1997833342f02515
|
refs/heads/master
| 2023-03-18T20:12:02.923428
| 2020-08-21T03:08:28
| 2020-08-21T03:08:28
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,510
|
java
|
package introclassJava;
class IntObj {
public int value;
public IntObj () {
} public IntObj (int i) {
value = i;
}
}
class FloatObj {
public float value;
public FloatObj () {
} public FloatObj (float i) {
value = i;
}
}
class LongObj {
public long value;
public LongObj () {
} public LongObj (long i) {
value = i;
}
}
class DoubleObj {
public double value;
public DoubleObj () {
} public DoubleObj (double i) {
value = i;
}
}
class CharObj {
public char value;
public CharObj () {
} public CharObj (char i) {
value = i;
}
}
public class smallest_9013bd3b_000 {
public java.util.Scanner scanner;
public String output = "";
public static void main (String[]args) throws Exception {
smallest_9013bd3b_000 mainClass = new smallest_9013bd3b_000 ();
String output;
if (args.length > 0) {
mainClass.scanner = new java.util.Scanner (args[0]);
} else {
mainClass.scanner = new java.util.Scanner (System.in);
}
mainClass.exec ();
System.out.println (mainClass.output);
}
public void exec () throws Exception {
IntObj first = new IntObj (), second = new IntObj (), third =
new IntObj (), fourth = new IntObj ();
output +=
(String.format ("Please enter 4 numbers separated by spaces > "));
first.value = scanner.nextInt ();
second.value = scanner.nextInt ();
third.value = scanner.nextInt ();
fourth.value = scanner.nextInt ();
if ((first.value < second.value) && (first.value < third.value)
&& (first.value < fourth.value)) {
output += (String.format ("%d is the smallest\n", first.value));
}
if ((second.value < first.value) && (second.value < third.value)
&& (second.value < fourth.value)) {
output += (String.format ("%d is the smallest\n", second.value));
}
if ((third.value < first.value) && (fourth.value < second.value)
&& (third.value < fourth.value)) {
output += (String.format ("%d is the smallest\n", third.value));
}
if ((fourth.value < third.value) && (fourth.value < second.value)
&& (fourth.value < first.value)) {
output += (String.format ("%d is the smallest\n", fourth.value));
}
if (true)
return;;
}
}
|
[
"justinwm@163.com"
] |
justinwm@163.com
|
84782c40f05b3261e989445c9571183fd751946d
|
a00326c0e2fc8944112589cd2ad638b278f058b9
|
/src/main/java/000/124/462/CWE113_HTTP_Response_Splitting__listen_tcp_addHeaderServlet_52c.java
|
284c32d24d79939526dcfad6ef5c8e3b11ebfd8b
|
[] |
no_license
|
Lanhbao/Static-Testing-for-Juliet-Test-Suite
|
6fd3f62713be7a084260eafa9ab221b1b9833be6
|
b095b11c7cb6d4a5bb2b76181e35d6ee00e96e68
|
refs/heads/master
| 2020-08-24T13:34:04.004149
| 2019-10-25T09:26:00
| 2019-10-25T09:26:00
| 216,822,684
| 0
| 1
| null | 2019-11-08T09:51:54
| 2019-10-22T13:37:13
|
Java
|
UTF-8
|
Java
| false
| false
| 1,867
|
java
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE113_HTTP_Response_Splitting__listen_tcp_addHeaderServlet_52c.java
Label Definition File: CWE113_HTTP_Response_Splitting.label.xml
Template File: sources-sinks-52c.tmpl.java
*/
/*
* @description
* CWE: 113 HTTP Response Splitting
* BadSource: listen_tcp Read data using a listening tcp connection
* GoodSource: A hardcoded string
* Sinks: addHeaderServlet
* GoodSink: URLEncode input
* BadSink : querystring to addHeader()
* Flow Variant: 52 Data flow: data passed as an argument from one method to another to another in three different classes in the same package
*
* */
import javax.servlet.http.*;
import java.net.URLEncoder;
public class CWE113_HTTP_Response_Splitting__listen_tcp_addHeaderServlet_52c
{
public void badSink(String data , HttpServletRequest request, HttpServletResponse response) throws Throwable
{
/* POTENTIAL FLAW: Input from file not verified */
if (data != null)
{
response.addHeader("Location", "/author.jsp?lang=" + data);
}
}
/* goodG2B() - use goodsource and badsink */
public void goodG2BSink(String data , HttpServletRequest request, HttpServletResponse response) throws Throwable
{
/* POTENTIAL FLAW: Input from file not verified */
if (data != null)
{
response.addHeader("Location", "/author.jsp?lang=" + data);
}
}
/* goodB2G() - use badsource and goodsink */
public void goodB2GSink(String data , HttpServletRequest request, HttpServletResponse response) throws Throwable
{
/* FIX: use URLEncoder.encode to hex-encode non-alphanumerics */
if (data != null)
{
data = URLEncoder.encode(data, "UTF-8");
response.addHeader("Location", "/author.jsp?lang=" + data);
}
}
}
|
[
"anhtluet12@gmail.com"
] |
anhtluet12@gmail.com
|
6fc28c4b9f0edb795256185a8430a97aefc86af8
|
3f605d058523f0b1e51f6557ed3c7663d5fa31d6
|
/core/org.ebayopensource.vjet.core.javatojs/src/org/ebayopensource/dsf/javatojs/report/DefaultErrorReportPolicy.java
|
d19e4a3d2a38777a2e75aee355c9a94db165252d
|
[] |
no_license
|
vjetteam/vjet
|
47e21a13978cd860f1faf5b0c2379e321a9b688c
|
ba90843b89dc40d7a7eb289cdf64e127ec548d1d
|
refs/heads/master
| 2020-12-25T11:05:55.420303
| 2012-08-07T21:56:30
| 2012-08-07T21:56:30
| 3,181,492
| 3
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,161
|
java
|
/*******************************************************************************
* Copyright (c) 2005-2011 eBay Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*******************************************************************************/
package org.ebayopensource.dsf.javatojs.report;
public class DefaultErrorReportPolicy implements ErrorReportPolicy {
ReportLevel m_unsupportedImport = ReportLevel.WARNING;
ReportLevel m_unsupportedModifier = ReportLevel.WARNING;
ReportLevel m_unsupportedDataType = ReportLevel.ERROR;
ReportLevel m_unsupportedType = ReportLevel.ERROR;
public ReportLevel getUnsupportedImportLevel() {
return m_unsupportedImport;
}
public ReportLevel getUnsupportedModifierLevel() {
return m_unsupportedModifier;
}
public ReportLevel getUnsupportedDataTypeLevel() {
return m_unsupportedDataType;
}
public ReportLevel getUnsupportedTypeLevel() {
return m_unsupportedType;
}
}
|
[
"pwang@27f4aac7-f869-4a38-a8c2-f1a995e726e6"
] |
pwang@27f4aac7-f869-4a38-a8c2-f1a995e726e6
|
cd1c9b024359f3c3cbdcd175bdb6de8657456466
|
9c05b703a7f3d00d70b77d3815ff087b3f244c06
|
/JavaEE/Servlet_folder/Common_ErrorPage_For_Servlet_Jsp/myapp/WEB-INF/classes/InitTest1.java
|
0fd66d35743a152386f333aad1c588ec5af28ad6
|
[] |
no_license
|
ramdafale/Notes1
|
641ef32d34bf66fc4097b71402bf9e046f11351e
|
20bcf6e9440308f87db7ce435d68ca26bad17e9b
|
refs/heads/master
| 2020-03-17T04:16:12.660683
| 2018-12-19T10:40:23
| 2018-12-19T10:40:23
| 133,268,772
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 519
|
java
|
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class InitTest1 extends HttpServlet
{
public void service(ServletRequest request,ServletResponse response)throws ServletException,IOException
{
PrintWriter pw=response.getWriter();
pw.println("Without overriding init");
pw.println("Config parameter value "+getServletConfig().getInitParameter("user"));
pw.println("<br>");
pw.println("Context parameter value "+getServletContext().getInitParameter("driver"));
}
}
|
[
"ramdafale@gmail.com"
] |
ramdafale@gmail.com
|
e7d5ad0d981945ea8bdd598867e5b50ef31221c3
|
0faaf7cdde41debd9c8dc1fc4315453ce182bae5
|
/zProject/InstitutionsProfile/src/main/java/com/csi/institutionsprofile/model/Stakeholder.java
|
78d2cfc7e1a31f38e43980fb33d59355a4537ec8
|
[] |
no_license
|
madbarsolutionsgthub/AndZProjectSCode
|
7969a9ca441a0b4e427b03c798ea695a3da967c6
|
ff2577939cf86e4a125d83573185211d392d7685
|
refs/heads/master
| 2020-03-16T17:49:58.138099
| 2018-05-10T04:45:20
| 2018-05-10T04:45:20
| 132,848,568
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,699
|
java
|
package com.csi.institutionsprofile.model;
/**
* Created by Jahid on 11/8/17.
*/
public class Stakeholder {
private int id;
private String name;
private String designation;
private int division;
private String district;
private String mobile;
private String email;
public Stakeholder(int id, String name, String designation, int division, String district, String mobile, String email){
this.id = id;
this.name = name;
this.designation = designation;
this.division = division;
this.district = district;
this.mobile = mobile;
this.email = email;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDesignation() {
return designation;
}
public void setDesignation(String designation) {
this.designation = designation;
}
public int getDivision() {
return division;
}
public void setDivision(int division) {
this.division = division;
}
public String getDistrict() {
return district;
}
public void setDistrict(String district) {
this.district = district;
}
public String getMobile() {
return mobile;
}
public void setMobile(String mobile) {
this.mobile = mobile;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String toString() {
return email;
}
}
|
[
"imranmadbar@gmail.com"
] |
imranmadbar@gmail.com
|
8ca6a4bf4c6cf746b775adf56175e5545eb0cf18
|
4daecc44942759bcbc47bfce44f0bdcb0b78ccf3
|
/src/org/jdownloader/captcha/v2/solver/dbc/DeathByCaptchaSettings.java
|
e505b0b044dc822612c969423512af889eb02129
|
[] |
no_license
|
madnight/jdownloader
|
de7b98edeba951ae6b9ea2d5205d9a870849abaa
|
6cb84609157ff0163c37993ceb083499e8942bb4
|
refs/heads/master
| 2021-01-19T10:16:48.746791
| 2017-04-11T10:01:20
| 2017-04-11T10:01:20
| 87,842,989
| 5
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,818
|
java
|
package org.jdownloader.captcha.v2.solver.dbc;
import java.util.HashMap;
import org.appwork.storage.config.annotations.AboutConfig;
import org.appwork.storage.config.annotations.DefaultBooleanValue;
import org.appwork.storage.config.annotations.DefaultIntValue;
import org.appwork.storage.config.annotations.DefaultJsonObject;
import org.appwork.storage.config.annotations.DescriptionForConfigEntry;
import org.appwork.storage.config.annotations.RequiresRestart;
import org.appwork.storage.config.annotations.SpinnerValidator;
import org.jdownloader.captcha.v2.ChallengeSolverConfig;
public interface DeathByCaptchaSettings extends ChallengeSolverConfig {
@AboutConfig
@DescriptionForConfigEntry("Your deathbycaptcha.eu Username")
String getUserName();
void setUserName(String jser);
@AboutConfig
@DescriptionForConfigEntry("Your deathbycaptcha.eu Password")
String getPassword();
void setPassword(String jser);
@AboutConfig
@RequiresRestart("A JDownloader Restart is required after changes")
@DefaultIntValue(5)
@SpinnerValidator(min = 0, max = 25)
@DescriptionForConfigEntry("Max. Captchas Parallel")
int getThreadpoolSize();
void setThreadpoolSize(int size);
@AboutConfig
@DefaultBooleanValue(false)
@DescriptionForConfigEntry("Activate the Captcha Feedback")
boolean isFeedBackSendingEnabled();
void setFeedBackSendingEnabled(boolean b);
@AboutConfig
@DefaultJsonObject("{\"jdownloader.org\":60000}")
@DescriptionForConfigEntry("Host bound Waittime before using CES. Use CaptchaExchangeChanceToSkipBubbleTimeout for a global timeout")
HashMap<String, Integer> getBubbleTimeoutByHostMap();
void setBubbleTimeoutByHostMap(HashMap<String, Integer> map);
}
|
[
"coalado@ebf7c1c2-ba36-0410-9fe8-c592906822b4"
] |
coalado@ebf7c1c2-ba36-0410-9fe8-c592906822b4
|
7cd1bf284ab446d07173e26badbec179dff28817
|
112aefeeb023f2630d1bc8d6775e9a01fbbf6f7d
|
/app/src/main/java/com/example/adapterkit/old/OldModel.java
|
86d9b3f8385f656d06e90b6941a001bc7fc343c0
|
[
"Apache-2.0"
] |
permissive
|
ydstar/AdapterKit
|
fdead4172dcf5fda783b57e7852764008ae3d685
|
4cc6eb2fb30a7aed553f865d4bd34f6dd14fae5c
|
refs/heads/main
| 2023-09-05T07:26:08.659521
| 2021-11-11T11:18:38
| 2021-11-11T11:18:38
| 350,630,634
| 151
| 8
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 519
|
java
|
package com.example.adapterkit.old;
/**
* Author: 信仰年轻
* Date: 2021-01-04 17:14
* Email: hydznsqk@163.com
* Des:
*/
public class OldModel {
public static final int TYPE_TOP_TAB = 1;
public static final int TYPE_BANNER = 2;
public static final int TYPE_GRID_ITEM = 3;
public static final int TYPE_ACTIVITY = 4;
public static final int TYPE_ITEM_TAB = 5;
public static final int TYPE_VIDEO = 6;
public static final int TYPE_IMAGE = 7;
public int itemType;//item的类型
}
|
[
"hydznsqk@163.com"
] |
hydznsqk@163.com
|
d6eb3afc9e9ef5de5ccaf9f41e09c0aa47d8dc6f
|
52c36ce3a9d25073bdbe002757f08a267abb91c6
|
/src/main/java/com/alipay/api/domain/AlipayUserAccountInvitedConvertSyncModel.java
|
d123de7626be742bbaf8c6e4c91c25b63b224425
|
[
"Apache-2.0"
] |
permissive
|
itc7/alipay-sdk-java-all
|
d2f2f2403f3c9c7122baa9e438ebd2932935afec
|
c220e02cbcdda5180b76d9da129147e5b38dcf17
|
refs/heads/master
| 2022-08-28T08:03:08.497774
| 2020-05-27T10:16:10
| 2020-05-27T10:16:10
| 267,271,062
| 0
| 0
|
Apache-2.0
| 2020-05-27T09:02:04
| 2020-05-27T09:02:04
| null |
UTF-8
|
Java
| false
| false
| 847
|
java
|
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 被邀请者淘宝端转化同步
*
* @author auto create
* @since 1.0, 2019-09-18 21:53:38
*/
public class AlipayUserAccountInvitedConvertSyncModel extends AlipayObject {
private static final long serialVersionUID = 5238845218544913721L;
/**
* 转化标签
*/
@ApiField("convert_tag")
private String convertTag;
/**
* 蚂蚁统一会员ID
*/
@ApiField("user_id")
private String userId;
public String getConvertTag() {
return this.convertTag;
}
public void setConvertTag(String convertTag) {
this.convertTag = convertTag;
}
public String getUserId() {
return this.userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
cb3e8961ae7217b910d4847702c63439a0448f70
|
6992d12265e3ee64eaf7358cd3092705f3a1095d
|
/aliyun-java-sdk-pts/src/main/java/com/aliyuncs/pts/model/v20181111/QueryPlanStatusResponse.java
|
fdcedc6774d07e899d5dca3f7476834053a2080f
|
[
"Apache-2.0"
] |
permissive
|
flavorzyb/aliyun-openapi-java-sdk
|
7f57986fdf7a95658008a9dce607142d8dbaff70
|
123577d770eadfcc18c7c9f921f92984c40de021
|
refs/heads/master
| 2020-09-21T15:19:56.512627
| 2019-11-29T09:08:23
| 2019-11-29T09:08:23
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,685
|
java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.pts.model.v20181111;
import java.util.List;
import java.util.Map;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.pts.transform.v20181111.QueryPlanStatusResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class QueryPlanStatusResponse extends AcsResponse {
private String requestId;
private String code;
private String message;
private Boolean success;
private String tips;
private String requestCount;
private Integer vum;
private String bpsRequest;
private String bpsResponse;
private Integer failedRequestCount;
private Integer failedBusinessCount;
private Integer concurrency;
private Integer concurrencyLimit;
private Integer tps;
private Integer tpsLimit;
private Integer aliveAgentCount;
private Integer totalAgentCount;
private Integer seg90Rt;
private Integer averageRt;
private Long reportId;
private Long startTime;
private Long currentTime;
private List<Map<Object,Object>> monitorData;
private List<Map<Object,Object>> agentLocations;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public String getCode() {
return this.code;
}
public void setCode(String code) {
this.code = code;
}
public String getMessage() {
return this.message;
}
public void setMessage(String message) {
this.message = message;
}
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public String getTips() {
return this.tips;
}
public void setTips(String tips) {
this.tips = tips;
}
public String getRequestCount() {
return this.requestCount;
}
public void setRequestCount(String requestCount) {
this.requestCount = requestCount;
}
public Integer getVum() {
return this.vum;
}
public void setVum(Integer vum) {
this.vum = vum;
}
public String getBpsRequest() {
return this.bpsRequest;
}
public void setBpsRequest(String bpsRequest) {
this.bpsRequest = bpsRequest;
}
public String getBpsResponse() {
return this.bpsResponse;
}
public void setBpsResponse(String bpsResponse) {
this.bpsResponse = bpsResponse;
}
public Integer getFailedRequestCount() {
return this.failedRequestCount;
}
public void setFailedRequestCount(Integer failedRequestCount) {
this.failedRequestCount = failedRequestCount;
}
public Integer getFailedBusinessCount() {
return this.failedBusinessCount;
}
public void setFailedBusinessCount(Integer failedBusinessCount) {
this.failedBusinessCount = failedBusinessCount;
}
public Integer getConcurrency() {
return this.concurrency;
}
public void setConcurrency(Integer concurrency) {
this.concurrency = concurrency;
}
public Integer getConcurrencyLimit() {
return this.concurrencyLimit;
}
public void setConcurrencyLimit(Integer concurrencyLimit) {
this.concurrencyLimit = concurrencyLimit;
}
public Integer getTps() {
return this.tps;
}
public void setTps(Integer tps) {
this.tps = tps;
}
public Integer getTpsLimit() {
return this.tpsLimit;
}
public void setTpsLimit(Integer tpsLimit) {
this.tpsLimit = tpsLimit;
}
public Integer getAliveAgentCount() {
return this.aliveAgentCount;
}
public void setAliveAgentCount(Integer aliveAgentCount) {
this.aliveAgentCount = aliveAgentCount;
}
public Integer getTotalAgentCount() {
return this.totalAgentCount;
}
public void setTotalAgentCount(Integer totalAgentCount) {
this.totalAgentCount = totalAgentCount;
}
public Integer getSeg90Rt() {
return this.seg90Rt;
}
public void setSeg90Rt(Integer seg90Rt) {
this.seg90Rt = seg90Rt;
}
public Integer getAverageRt() {
return this.averageRt;
}
public void setAverageRt(Integer averageRt) {
this.averageRt = averageRt;
}
public Long getReportId() {
return this.reportId;
}
public void setReportId(Long reportId) {
this.reportId = reportId;
}
public Long getStartTime() {
return this.startTime;
}
public void setStartTime(Long startTime) {
this.startTime = startTime;
}
public Long getCurrentTime() {
return this.currentTime;
}
public void setCurrentTime(Long currentTime) {
this.currentTime = currentTime;
}
public List<Map<Object,Object>> getMonitorData() {
return this.monitorData;
}
public void setMonitorData(List<Map<Object,Object>> monitorData) {
this.monitorData = monitorData;
}
public List<Map<Object,Object>> getAgentLocations() {
return this.agentLocations;
}
public void setAgentLocations(List<Map<Object,Object>> agentLocations) {
this.agentLocations = agentLocations;
}
@Override
public QueryPlanStatusResponse getInstance(UnmarshallerContext context) {
return QueryPlanStatusResponseUnmarshaller.unmarshall(this, context);
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
7d42c5e2e104084630171b6778d2304d457b5841
|
af8c70f1cf2459a9f7317fbfd8b4edf60f6f3c0d
|
/subprojects/griffon-pivot/src/test/java/griffon/pivot/support/adapters/FormAttributeAdapterTest.java
|
512307527a02f7109af4593f11554781b94a895d
|
[
"Apache-2.0"
] |
permissive
|
OlegDokuka/griffon
|
cbc23cc7815a2507c8c5c4383330caf60df40fc6
|
30f0433d6e8a0d618511fad8ea36ec673be265ee
|
refs/heads/development
| 2021-01-15T09:15:52.504366
| 2015-11-13T01:30:50
| 2015-11-13T01:30:50
| 46,296,147
| 1
| 0
| null | 2015-11-16T19:12:23
| 2015-11-16T19:12:23
| null |
UTF-8
|
Java
| false
| false
| 2,667
|
java
|
/*
* Copyright 2008-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package griffon.pivot.support.adapters;
import griffon.core.CallableWithArgs;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
public class FormAttributeAdapterTest {
private FormAttributeAdapter adapter = new FormAttributeAdapter();
@Test
public void testLabelChanged() {
final boolean[] invoked = new boolean[1];
CallableWithArgs<Void> callable = new CallableWithArgs<Void>() {
public Void call(Object... args) {
invoked[0] = true;
return null;
}
};
assertNull(adapter.getLabelChanged());
adapter.labelChanged(null, null, null);
assertFalse(invoked[0]);
adapter.setLabelChanged(callable);
adapter.labelChanged(null, null, null);
assertTrue(invoked[0]);
}
@Test
public void testRequiredChanged() {
final boolean[] invoked = new boolean[1];
CallableWithArgs<Void> callable = new CallableWithArgs<Void>() {
public Void call(Object... args) {
invoked[0] = true;
return null;
}
};
assertNull(adapter.getRequiredChanged());
adapter.requiredChanged(null, null);
assertFalse(invoked[0]);
adapter.setRequiredChanged(callable);
adapter.requiredChanged(null, null);
assertTrue(invoked[0]);
}
@Test
public void testFlagChanged() {
final boolean[] invoked = new boolean[1];
CallableWithArgs<Void> callable = new CallableWithArgs<Void>() {
public Void call(Object... args) {
invoked[0] = true;
return null;
}
};
assertNull(adapter.getFlagChanged());
adapter.flagChanged(null, null, null);
assertFalse(invoked[0]);
adapter.setFlagChanged(callable);
adapter.flagChanged(null, null, null);
assertTrue(invoked[0]);
}
}
|
[
"aalmiray@gmail.com"
] |
aalmiray@gmail.com
|
4360f2e78a76cf244d1b7e68628f7eb08f7f7f63
|
339de4d0b1e600f86021200f63065b3cea77be2f
|
/eureka/service-hi-7011/src/test/java/com/yin/servicehi7011/ServiceHi7011ApplicationTests.java
|
76d8fe44a47349588a58e96bd2f5bafbf91d1246
|
[
"Apache-2.0"
] |
permissive
|
yinfuquan/spring-cloud
|
8e0db8e7261a43aafee620b9360e38f76e856e9a
|
0ad8bd377a8d7d9fa4bc2ff2cd9a2fa8b83ffca6
|
refs/heads/master
| 2020-05-25T03:54:52.213171
| 2019-05-26T01:19:43
| 2019-05-26T01:19:43
| 187,604,395
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 354
|
java
|
package com.yin.servicehi7011;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class ServiceHi7011ApplicationTests {
@Test
public void contextLoads() {
}
}
|
[
"1257791382@qq.com"
] |
1257791382@qq.com
|
9408e7fe943b76b94767be2456154f76c6cb2c59
|
1f84dabca413a98a3751373da2a03c71feb2767b
|
/bus-health/src/main/java/org/aoju/bus/health/hardware/windows/WindowsBaseboard.java
|
2e30bbb111b81c1f774601304428eefd35712727
|
[
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
348840275/bus
|
22f1120e0d0ac4ab5f68d576a038bcc1a45e65f8
|
8a944e4619deb6ebc29bb8029635058ce5ec6319
|
refs/heads/master
| 2020-11-30T14:23:05.750889
| 2019-12-27T09:14:30
| 2019-12-27T09:14:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,827
|
java
|
/*
* The MIT License
*
* Copyright (c) 2017 aoju.org All rights reserved.
*
* 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.aoju.bus.health.hardware.windows;
import com.sun.jna.platform.win32.COM.WbemcliUtil.WmiQuery;
import com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult;
import org.aoju.bus.core.utils.StringUtils;
import org.aoju.bus.health.Builder;
import org.aoju.bus.health.Memoizer;
import org.aoju.bus.health.common.windows.WmiQueryHandler;
import org.aoju.bus.health.common.windows.WmiUtils;
import org.aoju.bus.health.hardware.AbstractBaseboard;
import java.util.function.Supplier;
/**
* Baseboard data obtained from WMI
*
* @author Kimi Liu
* @version 5.3.9
* @since JDK 1.8+
*/
final class WindowsBaseboard extends AbstractBaseboard {
private final Supplier<WmiStrings> wmi = Memoizer.memoize(this::queryWmi);
@Override
public String getManufacturer() {
return wmi.get().manufacturer;
}
@Override
public String getModel() {
return wmi.get().model;
}
@Override
public String getVersion() {
return wmi.get().version;
}
@Override
public String getSerialNumber() {
return wmi.get().serialNumber;
}
private WmiStrings queryWmi() {
WmiQuery<BaseboardProperty> baseboardQuery = new WmiQuery<>("Win32_BaseBoard", BaseboardProperty.class);
WmiResult<BaseboardProperty> win32BaseBoard = WmiQueryHandler.createInstance().queryWMI(baseboardQuery);
if (win32BaseBoard.getResultCount() > 0) {
return new WmiStrings(WmiUtils.getString(win32BaseBoard, BaseboardProperty.MANUFACTURER, 0),
WmiUtils.getString(win32BaseBoard, BaseboardProperty.MODEL, 0),
WmiUtils.getString(win32BaseBoard, BaseboardProperty.VERSION, 0),
WmiUtils.getString(win32BaseBoard, BaseboardProperty.SERIALNUMBER, 0));
}
return new WmiStrings(Builder.UNKNOWN, Builder.UNKNOWN, Builder.UNKNOWN, Builder.UNKNOWN);
}
enum BaseboardProperty {
MANUFACTURER, MODEL, VERSION, SERIALNUMBER
}
private static final class WmiStrings {
private final String manufacturer;
private final String model;
private final String version;
private final String serialNumber;
private WmiStrings(String manufacturer, String model, String version, String serialNumber) {
this.manufacturer = StringUtils.isBlank(manufacturer) ? Builder.UNKNOWN : manufacturer;
this.model = StringUtils.isBlank(model) ? Builder.UNKNOWN : model;
this.version = StringUtils.isBlank(version) ? Builder.UNKNOWN : version;
this.serialNumber = StringUtils.isBlank(serialNumber) ? Builder.UNKNOWN : serialNumber;
}
}
}
|
[
"839536@qq.com"
] |
839536@qq.com
|
b0b81efcf025dc416f781fe9fc5f8377cf6ca31e
|
38d71395d37d04ea5ee2d75274faa7cb0677fb11
|
/software/nbia-dao/src/gov/nih/nci/nbia/deletion/dao/StudyDAO.java
|
85d05cb0bd4f5e578f85460d465c468a2aa571b2
|
[
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] |
permissive
|
CBIIT/NBIA-TCIA
|
2d9cd401de611ef96684b7d1b92a3815744ce268
|
fcae8647a2ad375397444678751652e35cf716a3
|
refs/heads/master
| 2023-08-18T00:05:32.870581
| 2023-08-17T05:27:51
| 2023-08-17T05:27:51
| 69,281,028
| 15
| 6
|
NOASSERTION
| 2020-07-22T13:21:00
| 2016-09-26T18:40:19
|
Java
|
UTF-8
|
Java
| false
| false
| 764
|
java
|
/*L
* Copyright SAIC, Ellumen and RSNA (CTP)
*
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/national-biomedical-image-archive/LICENSE.txt for details.
*/
package gov.nih.nci.nbia.deletion.dao;
import gov.nih.nci.nbia.deletion.DeletionAuditStudyInfo;
import gov.nih.nci.nbia.exception.DataAccessException;
public interface StudyDAO {
public void removeStudy(Integer studyId) throws DataAccessException;
public boolean checkStudyNeedToBeRemoved(Integer studyId, Integer count) throws DataAccessException;
public int getTotalSeriesNumber(Integer studyId) throws DataAccessException;
public Integer getPatientId(Integer studyId);
public DeletionAuditStudyInfo getDeletionAuditStudyInfo(Integer studyId);
}
|
[
"panq@mail.nih.gov"
] |
panq@mail.nih.gov
|
0f7d41288e99adcf68e22a695c3d8effa6400c08
|
c6f83b7c4d60ef6aedd1bce3343796288b1c4dd9
|
/src/main/java/ua/com/alevel/GenericTest.java
|
f0565e390ef9356e698266878f14ca850698521c
|
[] |
no_license
|
Iegor-Funtusov/qa_reflections
|
2439618ecd81d22edad979423f2e0240d10632b8
|
06b82ed92ff0d7dcbd13074358927f838ad82f3f
|
refs/heads/master
| 2023-06-19T05:23:58.358998
| 2021-07-19T18:39:26
| 2021-07-19T18:39:26
| 387,561,466
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 562
|
java
|
package ua.com.alevel;
import java.util.List;
public class GenericTest<USER extends User> {
private List<USER> objects;
public void add(USER user) {
objects.add(user);
}
public List<USER> getUsers() {
return objects;
}
public void test() {
GenericTest<Personal> userGenericTest = new GenericTest<>();
userGenericTest.add(new Personal());
userGenericTest.add(new Personal());
userGenericTest.add(new Personal());
List<Personal> personals = userGenericTest.getUsers();
}
}
|
[
"funtushan@gmail.com"
] |
funtushan@gmail.com
|
0b29a190c0ebbcdd65005ac6f3a717c4d38cad52
|
bcb3e750e703acc65d2fcd2b18228717aebdd1af
|
/src/main/java/com/zkw/concurrent/java_Multithread_programmingbook/c4_1/c4_1_5/Run.java
|
669bc7c503746e024013fc5bafac3884f63d24b5
|
[] |
no_license
|
jameszkw/demo
|
095879f15339411d4c02de45d207343c271f8d90
|
ace9b39c5498c4476483476e886a05b19104bbde
|
refs/heads/master
| 2020-05-29T20:16:38.762554
| 2018-04-18T01:23:18
| 2018-04-18T01:23:18
| 32,331,158
| 4
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 624
|
java
|
package com.zkw.concurrent.java_Multithread_programmingbook.c4_1.c4_1_5;
/**
* ${DESCRIPTION}
*
* @author James
* @create 2017-09-14 下午 9:47
**/
public class Run {
public static void main(String[] args) {
MyService service=new MyService();
ThreadA a=new ThreadA(service);
a.setName("A");
a.start();
ThreadB b=new ThreadB(service);
b.setName("B");
b.start();
try {
Thread.sleep(3000);
} catch (InterruptedException e) {
e.printStackTrace();
}
service.singalAll();
}
}
|
[
"zhangkewu@paypalm.cn"
] |
zhangkewu@paypalm.cn
|
4a2b600ef28098d8a17d0f795f895538e26c6954
|
5521841bfcdc2dd41d0a928daede83aa68b2e50e
|
/FifthExersiceReflection/pr0304BarracksMine/Main.java
|
03021a0053090e4aaa2cb7dc0a9eaf85e61e210b
|
[] |
no_license
|
krasimirvasilev1/Java-8-OOPAdvanced
|
0528fcd1c64e67ab40d82f9c9f893be9f8cc797c
|
9fa1c49d8ab7fe0179e089bba3b55214e899b15a
|
refs/heads/master
| 2021-09-05T01:06:03.404291
| 2018-01-23T08:28:28
| 2018-01-23T08:28:28
| 113,306,820
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,163
|
java
|
package FifthExersiceReflection.pr0304BarracksMine;
import FifthExersiceReflection.pr0304BarracksMine.contracts.CommandInterpreter;
import FifthExersiceReflection.pr0304BarracksMine.contracts.Repository;
import FifthExersiceReflection.pr0304BarracksMine.contracts.Runnable;
import FifthExersiceReflection.pr0304BarracksMine.contracts.UnitFactory;
import FifthExersiceReflection.pr0304BarracksMine.core.Engine;
import FifthExersiceReflection.pr0304BarracksMine.core.factories.UnitFactoryImpl;
import FifthExersiceReflection.pr0304BarracksMine.data.UnitRepository;
import FifthExersiceReflection.pr0304BarracksMine.interpretes.CommandInterpretesImpl;
import java.lang.reflect.InvocationTargetException;
public class Main {
public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchFieldException {
Repository repository = new UnitRepository();
UnitFactory unitFactory = new UnitFactoryImpl();
CommandInterpreter command = new CommandInterpretesImpl();
Runnable engine = new Engine(repository, unitFactory,command);
engine.run();
}
}
|
[
"krasimir_vasilev1995@abv.bg"
] |
krasimir_vasilev1995@abv.bg
|
ced645ec4a3c5942be90a1e35691568375dc7978
|
48ae8e24dfe5a8e099eb1ce2d14c9a24f48975cc
|
/Product/Production/Services/DocumentSubmissionCore/src/main/java/gov/hhs/fha/nhinc/docsubmission/adapter/deferred/request/proxy/service/AdapterDocSubmissionDeferredRequestUnsecuredServicePortDescriptor.java
|
a37e5b4c7ffa8950549237bd4abbcc02e7e8840c
|
[
"BSD-3-Clause"
] |
permissive
|
CONNECT-Continuum/Continuum
|
f12394db3cc8b794fdfcb2cb3224e4a89f23c9d5
|
23acf3ea144c939905f82c59ffeff221efd9cc68
|
refs/heads/master
| 2022-12-16T15:04:50.675762
| 2019-09-07T16:14:08
| 2019-09-07T16:14:08
| 206,986,335
| 0
| 0
|
NOASSERTION
| 2022-12-05T23:32:14
| 2019-09-07T15:18:59
|
Java
|
UTF-8
|
Java
| false
| false
| 2,722
|
java
|
/*
* Copyright (c) 2009-2019, United States Government, as represented by the Secretary of Health and Human Services.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above
* copyright notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* * Neither the name of the United States Government 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 UNITED STATES GOVERNMENT 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 gov.hhs.fha.nhinc.docsubmission.adapter.deferred.request.proxy.service;
import gov.hhs.fha.nhinc.adapterxdrrequest.AdapterXDRRequestPortType;
import gov.hhs.fha.nhinc.messaging.service.port.SOAP12ServicePortDescriptor;
/**
* @author zmelnick
*
*/
public class AdapterDocSubmissionDeferredRequestUnsecuredServicePortDescriptor extends
SOAP12ServicePortDescriptor<AdapterXDRRequestPortType> {
private static final String WS_ADDRESSING_ACTION = "urn:gov:hhs:fha:nhinc:adapterxdrrequest:XDRRequestInputMessage";
/*
* (non-Javadoc)
*
* @see gov.hhs.fha.nhinc.messaging.service.port.ServicePortDescriptor#getWSAddressingAction()
*/
@Override
public String getWSAddressingAction() {
return WS_ADDRESSING_ACTION;
}
/*
* (non-Javadoc)
*
* @see gov.hhs.fha.nhinc.messaging.service.port.ServicePortDescriptor#getPortClass()
*/
@Override
public Class<AdapterXDRRequestPortType> getPortClass() {
return AdapterXDRRequestPortType.class;
}
}
|
[
"minh-hai.nguyen@cgi.com"
] |
minh-hai.nguyen@cgi.com
|
7b7a90302d3435574708cb740c3fa3c7a95650f1
|
4536078b4070fc3143086ff48f088e2bc4b4c681
|
/v1.0.4/decompiled/k/b/a/z0.java
|
698394604bf8328b2b08c6f61a719edeb6146d8f
|
[] |
no_license
|
olealgoritme/smittestopp_src
|
485b81422752c3d1e7980fbc9301f4f0e0030d16
|
52080d5b7613cb9279bc6cda5b469a5c84e34f6a
|
refs/heads/master
| 2023-05-27T21:25:17.564334
| 2023-05-02T14:24:31
| 2023-05-02T14:24:31
| 262,846,147
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 868
|
java
|
package k.b.a;
import java.util.Arrays;
import k.b.c.e.a;
import k.b.j.f;
public class z0
extends t
implements a0
{
public final byte[] x;
public z0(byte[] paramArrayOfByte)
{
x = paramArrayOfByte;
}
public void a(r paramr, boolean paramBoolean)
{
paramr.a(paramBoolean, 18, x);
}
public boolean a(t paramt)
{
if (!(paramt instanceof z0)) {
return false;
}
paramt = (z0)paramt;
return Arrays.equals(x, x);
}
public String d()
{
return f.a(x);
}
public int f()
{
return d2.a(x.length) + 1 + x.length;
}
public boolean g()
{
return false;
}
public int hashCode()
{
return a.d(x);
}
public String toString()
{
return d();
}
}
/* Location:
* Qualified Name: base.k.b.a.z0
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"olealgoritme@gmail.com"
] |
olealgoritme@gmail.com
|
a4c00cada66283123c147193944d724b3fc0b93b
|
383e578ec8ac3043ddece8223494f27f4a4c76dd
|
/legend.client/src/main/java/com/tqmall/legend/object/result/customer/CustomerPrechecksDTO.java
|
65e42e4d69f1f3a82a292542f2272758456fbc2f
|
[] |
no_license
|
xie-summer/legend
|
0018ee61f9e864204382cd202fe595b63d58343a
|
7e7bb14d209e03445a098b84cf63566702e07f15
|
refs/heads/master
| 2021-06-19T13:44:58.640870
| 2017-05-18T08:34:13
| 2017-05-18T08:34:13
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 812
|
java
|
package com.tqmall.legend.object.result.customer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* Created by lifeilong on 2016/3/21.
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class CustomerPrechecksDTO implements Serializable {
private static final long serialVersionUID = -2147562654536272467L;
//预检单(上次车况)
private Long id; //预检单id 或 淘汽检测id
private String gmtCreateStr; //创建时间
private String checksName;// 车况登记 / 淘汽检测xx项
private Integer checksFlag; // 0:车况登记 , 1:淘汽检测xx项
//淘汽检测记录
private String carLicense; //车牌号
private String carInfo; //车辆型号信息 (carBrandName+(importInfo)+ carModel+carSeriesName)
}
|
[
"zhangting.huang@tqmall.com"
] |
zhangting.huang@tqmall.com
|
a6a05b93861fa06186d94de0802dcc6971942162
|
8c2e243ce8bcfce4f67c50c7ba6340e874633cda
|
/com/facebook/share/internal/LegacyNativeDialogParameters.java
|
acbe20303b0dd9ed47b20b163bd3d527a5a07ceb
|
[] |
no_license
|
atresumes/Tele-2
|
f84a095a48ccd5b423acf14268e600fc59635a36
|
e98d32baab40b8dfc7f2c30d165b73393a1b0dd9
|
refs/heads/master
| 2020-03-21T11:22:20.490680
| 2018-06-24T17:45:25
| 2018-06-24T17:45:25
| 138,503,432
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,273
|
java
|
package com.facebook.share.internal;
import android.os.Bundle;
import com.facebook.FacebookException;
import com.facebook.internal.Utility;
import com.facebook.internal.Validate;
import com.facebook.share.model.ShareContent;
import com.facebook.share.model.ShareLinkContent;
import com.facebook.share.model.ShareOpenGraphContent;
import com.facebook.share.model.SharePhotoContent;
import com.facebook.share.model.ShareVideoContent;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.UUID;
import org.json.JSONException;
import org.json.JSONObject;
public class LegacyNativeDialogParameters {
public static Bundle create(UUID callId, ShareContent shareContent, boolean shouldFailOnDataError) {
Validate.notNull(shareContent, "shareContent");
Validate.notNull(callId, "callId");
if (shareContent instanceof ShareLinkContent) {
return create((ShareLinkContent) shareContent, shouldFailOnDataError);
}
if (shareContent instanceof SharePhotoContent) {
SharePhotoContent photoContent = (SharePhotoContent) shareContent;
return create(photoContent, ShareInternalUtility.getPhotoUrls(photoContent, callId), shouldFailOnDataError);
} else if (shareContent instanceof ShareVideoContent) {
return create((ShareVideoContent) shareContent, shouldFailOnDataError);
} else {
if (!(shareContent instanceof ShareOpenGraphContent)) {
return null;
}
ShareOpenGraphContent openGraphContent = (ShareOpenGraphContent) shareContent;
try {
return create(openGraphContent, ShareInternalUtility.toJSONObjectForCall(callId, openGraphContent.getAction()), shouldFailOnDataError);
} catch (JSONException e) {
throw new FacebookException("Unable to create a JSON Object from the provided ShareOpenGraphContent: " + e.getMessage());
}
}
}
private static Bundle create(ShareLinkContent linkContent, boolean dataErrorsFatal) {
Bundle params = createBaseParameters(linkContent, dataErrorsFatal);
Utility.putNonEmptyString(params, ShareConstants.LEGACY_TITLE, linkContent.getContentTitle());
Utility.putNonEmptyString(params, ShareConstants.LEGACY_DESCRIPTION, linkContent.getContentDescription());
Utility.putUri(params, ShareConstants.LEGACY_IMAGE, linkContent.getImageUrl());
return params;
}
private static Bundle create(SharePhotoContent photoContent, List<String> imageUrls, boolean dataErrorsFatal) {
Bundle params = createBaseParameters(photoContent, dataErrorsFatal);
params.putStringArrayList(ShareConstants.LEGACY_PHOTOS, new ArrayList(imageUrls));
return params;
}
private static Bundle create(ShareVideoContent videoContent, boolean dataErrorsFatal) {
return null;
}
private static Bundle create(ShareOpenGraphContent openGraphContent, JSONObject openGraphActionJSON, boolean dataErrorsFatal) {
Bundle params = createBaseParameters(openGraphContent, dataErrorsFatal);
Utility.putNonEmptyString(params, ShareConstants.LEGACY_PREVIEW_PROPERTY_NAME, openGraphContent.getPreviewPropertyName());
Utility.putNonEmptyString(params, ShareConstants.LEGACY_ACTION_TYPE, openGraphContent.getAction().getActionType());
Utility.putNonEmptyString(params, ShareConstants.LEGACY_ACTION, openGraphActionJSON.toString());
return params;
}
private static Bundle createBaseParameters(ShareContent content, boolean dataErrorsFatal) {
Bundle params = new Bundle();
Utility.putUri(params, ShareConstants.LEGACY_LINK, content.getContentUrl());
Utility.putNonEmptyString(params, ShareConstants.LEGACY_PLACE_TAG, content.getPlaceId());
Utility.putNonEmptyString(params, ShareConstants.LEGACY_REF, content.getRef());
params.putBoolean(ShareConstants.LEGACY_DATA_FAILURES_FATAL, dataErrorsFatal);
Collection peopleIds = content.getPeopleIds();
if (!Utility.isNullOrEmpty(peopleIds)) {
params.putStringArrayList(ShareConstants.LEGACY_FRIEND_TAGS, new ArrayList(peopleIds));
}
return params;
}
}
|
[
"40494744+atresumes@users.noreply.github.com"
] |
40494744+atresumes@users.noreply.github.com
|
bc85d5647fea7dd2996d64a176455cd4f81db74d
|
45f01bf1352851c25b50c91a92a3d585bf21073d
|
/src/cn/jpush/api/push/model/Notification.java
|
913f72cd28b679caf12610a31e29a64fa217d495
|
[] |
no_license
|
jasobimDevelopers/jasobim
|
23c7144d68a343f61685b062460f2875be483a68
|
3d5a0546205c4df9070433284feb3ecb287fa52b
|
refs/heads/jasobim_project
| 2022-12-21T15:15:38.890086
| 2018-12-24T05:56:11
| 2018-12-24T05:56:11
| 124,464,874
| 1
| 0
| null | 2022-12-16T10:32:48
| 2018-03-09T00:29:18
|
Java
|
UTF-8
|
Java
| false
| false
| 5,011
|
java
|
package cn.jpush.api.push.model;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonPrimitive;
import cn.jiguang.common.utils.Preconditions;
import cn.jpush.api.push.model.PushModel;
import cn.jpush.api.push.model.notification.AndroidNotification;
import cn.jpush.api.push.model.notification.IosAlert;
import cn.jpush.api.push.model.notification.IosNotification;
import cn.jpush.api.push.model.notification.PlatformNotification;
import cn.jpush.api.push.model.notification.WinphoneNotification;
public class Notification implements PushModel {
private final Object alert;
private final Set<PlatformNotification> notifications;
private Notification(Object alert, Set<PlatformNotification> notifications) {
this.alert = alert;
this.notifications = notifications;
}
public static Builder newBuilder() {
return new Builder();
}
/**
* Quick set all platform alert.
* Platform notification can override this alert.
*
* @param alert Notification alert
* @return first level notification object
*/
public static Notification alert(Object alert) {
return newBuilder().setAlert(alert).build();
}
public static Notification android(String alert, String title, Map<String, String> extras) {
return newBuilder()
.addPlatformNotification(AndroidNotification.newBuilder()
.setAlert(alert)
.setTitle(title)
.addExtras(extras)
.build())
.build();
}
public static Notification ios(Object alert, Map<String, String> extras) {
return newBuilder()
.addPlatformNotification(IosNotification.newBuilder()
.setAlert(alert)
.addExtras(extras)
.build())
.build();
}
public static Notification ios_auto_badge() {
return newBuilder()
.addPlatformNotification(IosNotification.newBuilder()
.setAlert("")
.autoBadge()
.build())
.build();
}
public static Notification ios_set_badge(int badge) {
return newBuilder()
.addPlatformNotification(IosNotification.newBuilder()
.setAlert("")
.setBadge(badge)
.build())
.build();
}
public static Notification ios_incr_badge(int badge) {
return newBuilder()
.addPlatformNotification(IosNotification.newBuilder()
.setAlert("")
.incrBadge(badge)
.build())
.build();
}
public static Notification winphone(String alert, Map<String, String> extras) {
return newBuilder()
.addPlatformNotification(WinphoneNotification.newBuilder()
.setAlert(alert)
.addExtras(extras)
.build())
.build();
}
public JsonElement toJSON() {
JsonObject json = new JsonObject();
if (null != alert) {
if(alert instanceof JsonObject) {
json.add(PlatformNotification.ALERT, (JsonObject) alert);
} else if (alert instanceof IosAlert) {
json.add(PlatformNotification.ALERT, ((IosAlert) alert).toJSON());
} else {
json.add(PlatformNotification.ALERT, new JsonPrimitive(alert.toString()));
}
}
if (null != notifications) {
for (PlatformNotification pn : notifications) {
if (this.alert != null && pn.getAlert() == null) {
pn.setAlert(this.alert);
}
Preconditions.checkArgument(! (null == pn.getAlert()),
"For any platform notification, alert field is needed. It can be empty string.");
json.add(pn.getPlatform(), pn.toJSON());
}
}
return json;
}
public static class Builder {
private Object alert;
private Set<PlatformNotification> builder;
public Builder setAlert(Object alert) {
this.alert = alert;
return this;
}
public Builder addPlatformNotification(PlatformNotification notification) {
if (null == builder) {
builder = new HashSet<PlatformNotification>();
}
builder.add(notification);
return this;
}
public Notification build() {
Preconditions.checkArgument(! (null == builder && null == alert),
"No notification payload is set.");
return new Notification(alert, builder);
}
}
}
|
[
"1055337148@qq.com"
] |
1055337148@qq.com
|
5c6f86132668a998292712e6ee076fc8ba4711cd
|
95d4c3ea2a704ebfd919a1c384f6047afb5eb9cd
|
/src/main/java/gg/steve/bgbuddyboy/canetop/utils/ColorUtil.java
|
76b58ce1353dbff361c95ef04031ebb037f1b248
|
[] |
no_license
|
nbdSteve/CaneTop
|
e449a605819dbdd8396352963b96731d613065b4
|
8254e81a2f61ee896d3998c209d716a89d2ce029
|
refs/heads/master
| 2022-06-01T22:11:08.119706
| 2020-05-02T03:59:26
| 2020-05-02T03:59:26
| 260,436,729
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 450
|
java
|
package gg.steve.bgbuddyboy.canetop.utils;
import org.bukkit.ChatColor;
/**
* Handles colouring messages and other strings
*/
public class ColorUtil {
/**
* Will apply the Bukkit color codes to the specified message
*
* @param message String, the message to colorize
* @return String
*/
public static String colorize(String message) {
return ChatColor.translateAlternateColorCodes('&', message);
}
}
|
[
"s.goodhill@protonmail.com"
] |
s.goodhill@protonmail.com
|
e62a724b0a26efe33ec498c9a8d241083127c17c
|
61fa6101d74bff27cd4f85be205e5f9bd9b1ae30
|
/CompetitionRegistration_V2/src/com/ServletAndroid/GetOrganizationServelet.java
|
4d61ca4cca7bb73801060ef76782abccec0d49f5
|
[] |
no_license
|
LiHuaYang/college
|
93810c6f15aa213f8386a295b2c474dbd6c5c4bc
|
5648bbee3d2df252be0fb925d41dd8b158476e56
|
refs/heads/main
| 2023-02-22T09:49:04.944870
| 2021-01-20T07:15:00
| 2021-01-20T07:15:00
| 89,077,293
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,304
|
java
|
package com.ServletAndroid;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import com.Bll.CBllFrame;
import com.Bll.IBllFrame;
import com.EntityWeb.Organization;
public class GetOrganizationServelet extends HttpServlet {
@Override
protected void service(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
// TODO Auto-generated method stub
req.setCharacterEncoding("UTF-8");
resp.setCharacterEncoding("UTF-8");
super.service(req, resp);
}
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
int contestId = Integer.parseInt(request.getParameter("contestId"));
IBllFrame interfaceOfBllFrame = CBllFrame.getInstance();
JSONArray jsonArr = new JSONArray();
JSONObject jsonObject2 = new JSONObject();
List<Organization> newsInfo = interfaceOfBllFrame.GetOrganization(contestId);
int length = newsInfo.size();
for (int i=0; i<length; i++) {
JSONObject jsonObject = new JSONObject();
jsonObject.put("OrganizationName", newsInfo.get(i).getOrganizationName());
jsonObject.put("OrganizationId", newsInfo.get(i).getOrganizationId());
jsonArr.add(jsonObject);
}
if(jsonArr.size()!=0){
jsonObject2.put("flag", true);
jsonObject2.element("result", jsonArr); // 添加竞赛列表至JSON对象
}
else{
jsonObject2.put("flag", false);
jsonObject2.put("message","搜索为空");
}
System.out.println(jsonObject2);
PrintWriter out = response.getWriter();
out.println(jsonObject2);
out.flush();
out.close();
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
doGet(request, response);
}
@Override
public void service(ServletRequest req, ServletResponse res)
throws ServletException, IOException {
// TODO Auto-generated method stub
super.service(req, res);
}
}
|
[
"lihy@fingard.com"
] |
lihy@fingard.com
|
60dd9d495cb8fead4451cb22f648255d5480ab35
|
f8687ed371b2cc82cbb94cb0eee718fda51d9d90
|
/Persistence/egovframework.rte.psl.dataaccess/src/test/java/egovframework/rte/psl/dataaccess/dao/JobHistMapper.java
|
dda31070b0b2c45174732fe51540ba1b72cbbe12
|
[
"Apache-2.0"
] |
permissive
|
ddONGzaru/egovframework.rte.root
|
bdafd4c4c20a245bb3e059b829c10e51bac34fd3
|
5fae80337e05697f5e2242a69a9c91767eb00509
|
refs/heads/master
| 2021-01-17T08:33:01.048440
| 2013-07-30T01:04:23
| 2013-07-30T01:04:23
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 892
|
java
|
package egovframework.rte.psl.dataaccess.dao;
import java.util.List;
import javax.annotation.Resource;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.stereotype.Repository;
import egovframework.rte.psl.dataaccess.EgovAbstractMapper;
import egovframework.rte.psl.dataaccess.vo.JobHistVO;
@Repository("jobHistMapper")
public class JobHistMapper extends EgovAbstractMapper {
@Resource(name = "batchSqlSessionTemplate")
public void setSqlSessionTemplate(SqlSessionTemplate sqlSessionTemplate) {
super.setSqlSessionTemplate(sqlSessionTemplate);
}
public JobHistVO selectJobHist(String queryId, JobHistVO vo) {
return (JobHistVO) selectByPk(queryId, vo);
}
@SuppressWarnings("unchecked")
public List<JobHistVO> selectJobHistList(String queryId, JobHistVO vo) {
return list(queryId, vo);
}
}
|
[
"whiteship@epril.com"
] |
whiteship@epril.com
|
874a476db063d0b2f478884e42a8f5114734f8e8
|
aa126db53163bfb27d0161e6a5424eb56acbc1c7
|
/java/org/l2jserver/gameserver/handler/skillhandlers/FishingSkill.java
|
576ad8dc66418228635e664beab3d5f16961b207
|
[
"MIT"
] |
permissive
|
marlonprudente/L2JServer_C6_Interlude
|
6ce3ed34a8120223183921f41e6d517b2dcc89eb
|
f3d3b329657c0f031dab107e6d4ceb5ddad0bea6
|
refs/heads/master
| 2022-06-20T01:11:36.557960
| 2020-05-13T17:39:48
| 2020-05-13T17:39:48
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,704
|
java
|
/*
* This file is part of the L2JServer project.
*
* 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 3 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, see <http://www.gnu.org/licenses/>.
*/
package org.l2jserver.gameserver.handler.skillhandlers;
import org.l2jserver.gameserver.handler.ISkillHandler;
import org.l2jserver.gameserver.model.Fishing;
import org.l2jserver.gameserver.model.Skill;
import org.l2jserver.gameserver.model.Skill.SkillType;
import org.l2jserver.gameserver.model.WorldObject;
import org.l2jserver.gameserver.model.actor.Creature;
import org.l2jserver.gameserver.model.actor.instance.PlayerInstance;
import org.l2jserver.gameserver.model.items.Weapon;
import org.l2jserver.gameserver.model.items.instance.ItemInstance;
import org.l2jserver.gameserver.model.items.type.WeaponType;
import org.l2jserver.gameserver.network.SystemMessageId;
import org.l2jserver.gameserver.network.serverpackets.ActionFailed;
import org.l2jserver.gameserver.network.serverpackets.SystemMessage;
public class FishingSkill implements ISkillHandler
{
private static final SkillType[] SKILL_IDS =
{
SkillType.PUMPING,
SkillType.REELING
};
@Override
public void useSkill(Creature creature, Skill skill, WorldObject[] targets)
{
if (!(creature instanceof PlayerInstance))
{
return;
}
final PlayerInstance player = (PlayerInstance) creature;
final Fishing fish = player.getFishCombat();
if (fish == null)
{
if (skill.getSkillType() == SkillType.PUMPING)
{
// Pumping skill is available only while fishing
// player.sendPacket(SystemMessageId.CAN_USE_PUMPING_ONLY_WHILE_FISHING));
}
else if (skill.getSkillType() == SkillType.REELING)
{
// Reeling skill is available only while fishing
// player.sendPacket(SystemMessageId.CAN_USE_REELING_ONLY_WHILE_FISHING));
}
player.sendPacket(ActionFailed.STATIC_PACKET);
return;
}
final Weapon weaponItem = player.getActiveWeaponItem();
final ItemInstance weaponInst = creature.getActiveWeaponInstance();
if ((weaponInst == null) || (weaponItem == null) || (weaponItem.getItemType() != WeaponType.ROD))
{
creature.sendPacket(new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED_DUE_TO_UNSUITABLE_TERMS));
return;
}
int ss = 1;
int pen = 0;
if (weaponInst.getChargedFishshot())
{
ss = 2;
}
final double gradebonus = 1 + (weaponItem.getCrystalType() * 0.1);
int dmg = (int) (skill.getPower() * gradebonus * ss);
if (player.getSkillLevel(1315) <= (skill.getLevel() - 2)) // 1315 - Fish Expertise Penalty
{
player.sendPacket(SystemMessageId.DUE_TO_YOUR_REELING_AND_OR_PUMPING_SKILL_BEING_THREE_OR_MORE_LEVELS_HIGHER_THAN_YOUR_FISHING_SKILL_A_50_DAMAGE_PENALTY_WILL_BE_APPLIED);
pen = 50;
final int penatlydmg = dmg - pen;
if (player.isGM())
{
player.sendMessage("Dmg w/o penalty = " + dmg);
}
dmg = penatlydmg;
}
if (ss > 1)
{
weaponInst.setChargedFishshot(false);
}
if (skill.getSkillType() == SkillType.REELING) // Realing
{
fish.useRealing(dmg, pen);
}
else // Pumping
{
fish.usePomping(dmg, pen);
}
}
@Override
public SkillType[] getSkillIds()
{
return SKILL_IDS;
}
}
|
[
"libera.libera@gmail.com"
] |
libera.libera@gmail.com
|
42a0f6f7cd294e22c895368dfd860171a9614c34
|
b1473679b84519ff2be56bc8fa5b5c168603ece7
|
/messenger-service/src/main/java/vn/com/omart/messenger/domain/model/ContactRepository.java
|
376a3c5d70f1bec435457f5479221606e7a0482d
|
[] |
no_license
|
hxhits/omvnok
|
64540effc1172eeadf8331592619454353994db6
|
661ec6d3606bb108a73af7e0f15cd443b9054dee
|
refs/heads/master
| 2020-03-28T03:57:56.562736
| 2018-09-06T14:26:54
| 2018-09-06T14:26:54
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,615
|
java
|
package vn.com.omart.messenger.domain.model;
import java.util.List;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
/**
* Contact Repository.
*
* @author Win10
*
*/
@Repository
public interface ContactRepository extends JpaRepository<Contact, Long> {
public List<Contact> findByUserIdOrderByTypeDesc(String userId, Pageable pageable);
public List<Contact> findByUserIdOrderByNameAsc(String userId);
public List<Contact> findByUserIdAndType(String userId, int type);
@Query(nativeQuery = true, value = "SELECT ct.*,u.avatar FROM omart_db.omart_contact ct inner join auth_db.oauth_user u on u.id = ct.omart_id where ct.user_id = :userId and ct.type = :type")
public List<Object[]> getContactWithUserIdAndType(@Param("userId") String userId, @Param("type") int type);
@Query(value="SELECT u.id FROM omart_db.omart_user_profile u WHERE u.user_id = :userId", nativeQuery=true)
public String getIdByUserId(@Param("userId") String userId);
@Query(value="SELECT group_concat(f.user_id) AS str1 , group_concat(f.friend_id) AS str2 FROM omart_db.omart_user_friend f where f.user_id = :id or f.friend_id = :id",nativeQuery=true)
public List<Object[]> getFriendById(@Param("id") Long id);
@Query(value="SELECT u.user_id FROM omart_db.omart_user_profile u WHERE u.id in (:ids)", nativeQuery=true)
public List<Object[]> getUserIdInIds(@Param("ids") List<String> ids);
}
|
[
"huonghx@omartvietnam.com"
] |
huonghx@omartvietnam.com
|
89d1328c489740f8aec40246325ca3272fba0379
|
cd91f376e55b815fff0478ef4e3e268e132f8721
|
/app/src/main/java/cn/bertsir/qrtest/take/camera/ImageDataType.java
|
f35c60761a2ff377dceb57dd1bf8aadeacc18e54
|
[
"MIT"
] |
permissive
|
Sususuperman/QrScanDemo
|
2ae9d800d3d768fa8f86760f93d4377be72736d9
|
ccb1f969540e7eb0732dd43fa49b8b1e0e179d25
|
refs/heads/master
| 2020-04-01T17:06:33.827530
| 2018-10-17T07:29:10
| 2018-10-17T07:29:10
| 153,412,996
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 255
|
java
|
package cn.bertsir.qrtest.take.camera;
/**
* 希望有天可以对新手有帮助
* 作者:zhx
* 时间:2018\7\24 0024 12:47
* 类名:ImageDataType
* 邮箱:194093798@qq.com
*/
public enum ImageDataType {
BITMAP,
PATH,
BYTES;
}
|
[
"chaoisgoodman@163.com"
] |
chaoisgoodman@163.com
|
36d306ddf604a82bf734002abedb37b8d0f505e4
|
56456387c8a2ff1062f34780b471712cc2a49b71
|
/com/google/android/gms/maps/model/internal/zzd$zza$zza.java
|
eed7b89cd452a1315a0bd561fcbca0e38b9ae69f
|
[] |
no_license
|
nendraharyo/presensimahasiswa-sourcecode
|
55d4b8e9f6968eaf71a2ea002e0e7f08d16c5a50
|
890fc86782e9b2b4748bdb9f3db946bfb830b252
|
refs/heads/master
| 2020-05-21T11:21:55.143420
| 2019-05-10T19:03:56
| 2019-05-10T19:03:56
| 186,022,425
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,334
|
java
|
package com.google.android.gms.maps.model.internal;
import android.os.IBinder;
import android.os.Parcel;
import java.util.List;
class zzd$zza$zza
implements zzd
{
private IBinder zzoz;
zzd$zza$zza(IBinder paramIBinder)
{
this.zzoz = paramIBinder;
}
public IBinder asBinder()
{
return this.zzoz;
}
public int getActiveLevelIndex()
{
Parcel localParcel1 = Parcel.obtain();
Parcel localParcel2 = Parcel.obtain();
Object localObject1 = "com.google.android.gms.maps.model.internal.IIndoorBuildingDelegate";
try
{
localParcel1.writeInterfaceToken((String)localObject1);
localObject1 = this.zzoz;
int i = 1;
((IBinder)localObject1).transact(i, localParcel1, localParcel2, 0);
localParcel2.readException();
int j = localParcel2.readInt();
return j;
}
finally
{
localParcel2.recycle();
localParcel1.recycle();
}
}
public int getDefaultLevelIndex()
{
Parcel localParcel1 = Parcel.obtain();
Parcel localParcel2 = Parcel.obtain();
Object localObject1 = "com.google.android.gms.maps.model.internal.IIndoorBuildingDelegate";
try
{
localParcel1.writeInterfaceToken((String)localObject1);
localObject1 = this.zzoz;
int i = 2;
((IBinder)localObject1).transact(i, localParcel1, localParcel2, 0);
localParcel2.readException();
int j = localParcel2.readInt();
return j;
}
finally
{
localParcel2.recycle();
localParcel1.recycle();
}
}
public List getLevels()
{
Parcel localParcel1 = Parcel.obtain();
Parcel localParcel2 = Parcel.obtain();
Object localObject1 = "com.google.android.gms.maps.model.internal.IIndoorBuildingDelegate";
try
{
localParcel1.writeInterfaceToken((String)localObject1);
localObject1 = this.zzoz;
int i = 3;
((IBinder)localObject1).transact(i, localParcel1, localParcel2, 0);
localParcel2.readException();
localObject1 = localParcel2.createBinderArrayList();
return (List)localObject1;
}
finally
{
localParcel2.recycle();
localParcel1.recycle();
}
}
public int hashCodeRemote()
{
Parcel localParcel1 = Parcel.obtain();
Parcel localParcel2 = Parcel.obtain();
Object localObject1 = "com.google.android.gms.maps.model.internal.IIndoorBuildingDelegate";
try
{
localParcel1.writeInterfaceToken((String)localObject1);
localObject1 = this.zzoz;
int i = 6;
((IBinder)localObject1).transact(i, localParcel1, localParcel2, 0);
localParcel2.readException();
int j = localParcel2.readInt();
return j;
}
finally
{
localParcel2.recycle();
localParcel1.recycle();
}
}
public boolean isUnderground()
{
boolean bool = false;
Object localObject1 = null;
Parcel localParcel1 = Parcel.obtain();
Parcel localParcel2 = Parcel.obtain();
Object localObject3 = "com.google.android.gms.maps.model.internal.IIndoorBuildingDelegate";
try
{
localParcel1.writeInterfaceToken((String)localObject3);
localObject3 = this.zzoz;
int i = 4;
((IBinder)localObject3).transact(i, localParcel1, localParcel2, 0);
localParcel2.readException();
int j = localParcel2.readInt();
if (j != 0) {
bool = true;
}
return bool;
}
finally
{
localParcel2.recycle();
localParcel1.recycle();
}
}
/* Error */
public boolean zzb(zzd paramzzd)
{
// Byte code:
// 0: iconst_0
// 1: istore_2
// 2: aconst_null
// 3: astore_3
// 4: invokestatic 20 android/os/Parcel:obtain ()Landroid/os/Parcel;
// 7: astore 4
// 9: invokestatic 20 android/os/Parcel:obtain ()Landroid/os/Parcel;
// 12: astore 5
// 14: ldc 22
// 16: astore 6
// 18: aload 4
// 20: aload 6
// 22: invokevirtual 26 android/os/Parcel:writeInterfaceToken (Ljava/lang/String;)V
// 25: aload_1
// 26: ifnull +73 -> 99
// 29: aload_1
// 30: invokeinterface 55 1 0
// 35: astore 6
// 37: aload 4
// 39: aload 6
// 41: invokevirtual 59 android/os/Parcel:writeStrongBinder (Landroid/os/IBinder;)V
// 44: aload_0
// 45: getfield 14 com/google/android/gms/maps/model/internal/zzd$zza$zza:zzoz Landroid/os/IBinder;
// 48: astore 6
// 50: iconst_5
// 51: istore 7
// 53: aload 6
// 55: iload 7
// 57: aload 4
// 59: aload 5
// 61: iconst_0
// 62: invokeinterface 33 5 0
// 67: pop
// 68: aload 5
// 70: invokevirtual 36 android/os/Parcel:readException ()V
// 73: aload 5
// 75: invokevirtual 40 android/os/Parcel:readInt ()I
// 78: istore 8
// 80: iload 8
// 82: ifeq +5 -> 87
// 85: iconst_1
// 86: istore_2
// 87: aload 5
// 89: invokevirtual 43 android/os/Parcel:recycle ()V
// 92: aload 4
// 94: invokevirtual 43 android/os/Parcel:recycle ()V
// 97: iload_2
// 98: ireturn
// 99: iconst_0
// 100: istore 8
// 102: aconst_null
// 103: astore 6
// 105: goto -68 -> 37
// 108: astore_3
// 109: aload 5
// 111: invokevirtual 43 android/os/Parcel:recycle ()V
// 114: aload 4
// 116: invokevirtual 43 android/os/Parcel:recycle ()V
// 119: aload_3
// 120: athrow
// Local variable table:
// start length slot name signature
// 0 121 0 this zza
// 0 121 1 paramzzd zzd
// 1 97 2 bool boolean
// 3 1 3 localObject1 Object
// 108 12 3 localObject2 Object
// 7 108 4 localParcel1 Parcel
// 12 98 5 localParcel2 Parcel
// 16 88 6 localObject3 Object
// 51 5 7 i int
// 78 23 8 j int
// Exception table:
// from to target type
// 20 25 108 finally
// 29 35 108 finally
// 39 44 108 finally
// 44 48 108 finally
// 61 68 108 finally
// 68 73 108 finally
// 73 78 108 finally
}
}
/* Location: C:\Users\haryo\Desktop\enjarify-master\presensi-enjarify.jar!\com\google\android\gms\maps\model\internal\zzd$zza$zza.class
* Java compiler version: 5 (49.0)
* JD-Core Version: 0.7.1
*/
|
[
"haryo.nendra@gmail.com"
] |
haryo.nendra@gmail.com
|
f24fcc20fe6fd271ea5f965285c3bad2e6c32a97
|
22bddb70c540a1ca1419734da817f75960a30b0a
|
/app/src/main/java/ru/exampleopit111/sportsnutritionstore/di/modules/RepositoryModule.java
|
ddf976d40323ab9e0b5ffd0b473fd8e13b4e553b
|
[] |
no_license
|
max-android/SportsNutritionStore
|
9e88505cb8d78459dc204d2648bc175786d67f1c
|
59cd6b3b6cc5b6d1a0c03a3299c6fbee3137f63f
|
refs/heads/master
| 2020-03-23T03:51:46.146836
| 2018-07-15T18:36:55
| 2018-07-15T18:36:55
| 141,053,092
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,112
|
java
|
package ru.exampleopit111.sportsnutritionstore.di.modules;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
import ru.exampleopit111.sportsnutritionstore.model.data_holder.UserDataHolder;
import ru.exampleopit111.sportsnutritionstore.model.database.AppBase;
import ru.exampleopit111.sportsnutritionstore.model.internal_storage.InternalFileManager;
import ru.exampleopit111.sportsnutritionstore.model.network.AdvertisingService;
import ru.exampleopit111.sportsnutritionstore.model.network.MapService;
import ru.exampleopit111.sportsnutritionstore.model.network.SportsNutritionService;
import ru.exampleopit111.sportsnutritionstore.model.repository.AdvertisingRepository;
import ru.exampleopit111.sportsnutritionstore.model.repository.DataBaseRepository;
import ru.exampleopit111.sportsnutritionstore.model.repository.MapRepository;
import ru.exampleopit111.sportsnutritionstore.model.repository.ProfileRepository;
import ru.exampleopit111.sportsnutritionstore.model.repository.SportsNutritionRepository;
/**
* Created Максим on 15.06.2018.
* Copyright © Max
*/
@Module
@Singleton
public class RepositoryModule {
@Provides
@Singleton
public ProfileRepository provideProfileRepository(InternalFileManager fileManager,
UserDataHolder userDataHolder) {
return new ProfileRepository(fileManager, userDataHolder);
}
@Provides
@Singleton
public AdvertisingRepository provideAdvertisingRepository(AdvertisingService service) {
return new AdvertisingRepository(service);
}
@Provides
@Singleton
public SportsNutritionRepository provideServiceRepository(SportsNutritionService service) {
return new SportsNutritionRepository(service);
}
@Provides
@Singleton
public DataBaseRepository provideDataBaseRepository(AppBase database) {
return new DataBaseRepository(database);
}
@Provides
@Singleton
public MapRepository provideMapRepository(MapService mapService) {
return new MapRepository(mapService);
}
}
|
[
"preferenceLEAD111@yandex.ru"
] |
preferenceLEAD111@yandex.ru
|
d372272889538c48ef89142831c0cc6aeb462d8e
|
8b63f4abe160faf30a77be5a51c735aabbb65a95
|
/mcp751/temp/src/minecraft/net/minecraft/item/ItemEditableBook.java
|
0182e8ae57c95db9e3559cc7c1b411fffff68744
|
[] |
no_license
|
soultek101/gECON-mod
|
80b3f6e760ac1f416fb70677fcfbb8378cbb65f2
|
33d1acbc88e8bd0f87b703901d71062a9720e748
|
refs/heads/master
| 2021-01-15T09:14:41.559008
| 2014-10-12T20:38:34
| 2014-10-12T20:38:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,337
|
java
|
package net.minecraft.item;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import java.util.List;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemWritableBook;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagString;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
public class ItemEditableBook extends Item {
public ItemEditableBook(int p_i3698_1_) {
super(p_i3698_1_);
this.func_77625_d(1);
}
public static boolean func_77828_a(NBTTagCompound p_77828_0_) {
if(!ItemWritableBook.func_77829_a(p_77828_0_)) {
return false;
} else if(!p_77828_0_.func_74764_b("title")) {
return false;
} else {
String var1 = p_77828_0_.func_74779_i("title");
return var1 != null && var1.length() <= 16?p_77828_0_.func_74764_b("author"):false;
}
}
public String func_77628_j(ItemStack p_77628_1_) {
if(p_77628_1_.func_77942_o()) {
NBTTagCompound var2 = p_77628_1_.func_77978_p();
NBTTagString var3 = (NBTTagString)var2.func_74781_a("title");
if(var3 != null) {
return var3.toString();
}
}
return super.func_77628_j(p_77628_1_);
}
@SideOnly(Side.CLIENT)
public void func_77624_a(ItemStack p_77624_1_, EntityPlayer p_77624_2_, List p_77624_3_, boolean p_77624_4_) {
if(p_77624_1_.func_77942_o()) {
NBTTagCompound var5 = p_77624_1_.func_77978_p();
NBTTagString var6 = (NBTTagString)var5.func_74781_a("author");
if(var6 != null) {
p_77624_3_.add(EnumChatFormatting.GRAY + String.format(StatCollector.func_74837_a("book.byAuthor", new Object[]{var6.field_74751_a}), new Object[0]));
}
}
}
public ItemStack func_77659_a(ItemStack p_77659_1_, World p_77659_2_, EntityPlayer p_77659_3_) {
p_77659_3_.func_71048_c(p_77659_1_);
return p_77659_1_;
}
public boolean func_77651_p() {
return true;
}
@SideOnly(Side.CLIENT)
public boolean func_77636_d(ItemStack p_77636_1_) {
return true;
}
}
|
[
"coreyleonardcole@gmail.com"
] |
coreyleonardcole@gmail.com
|
fc9ade51bd2d864ac04a369ca26edbb3ba3f321a
|
1f820fc487b633469e67a52c2436061a45974838
|
/015-4271-重建二叉树/src/Main.java
|
78567b6f4c37678123176327a4962545e10c9ef1
|
[] |
no_license
|
ladygagaclass/Huawei-OJ-JAVA-Middle
|
a8171eef1b9040d38755bd97ddf2935b8ad91b13
|
33306ee77e27fd632df1da809a3d9c5a813542b1
|
refs/heads/master
| 2020-07-02T05:26:40.580818
| 2016-02-03T02:30:53
| 2016-02-03T02:30:53
| null | 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 2,683
|
java
|
import java.util.Scanner;
/**
* Author: 王俊超
* Date: 2016-01-19 11:11
* CSDN: http://blog.csdn.net/derrantcm
* Github: https://github.com/Wang-Jun-Chao
* Declaration: All Rights Reserved !!!
*/
public class Main {
public static void main(String[] args) {
//Scanner scanner = new Scanner(System.in);
Scanner scanner = new Scanner(Main.class.getClassLoader().getResourceAsStream("data.txt"));
while (scanner.hasNext()) {
int n = scanner.nextInt();
int[] preOrder = new int[n];
int[] inOrder = new int[n];
for (int i = 0; i < n; i++) {
preOrder[i] = scanner.nextInt();
}
for (int i = 0; i < n; i++) {
inOrder[i] = scanner.nextInt();
}
boolean[] result = {true};
TreeNode root = createTree(preOrder, 0, preOrder.length - 1, inOrder, 0, inOrder.length -1, result);
if (!result[0]) {
System.out.println("No");
} else {
StringBuilder builder = new StringBuilder();
postVisit(root, builder);
System.out.println(builder);
}
}
scanner.close();
}
private static void postVisit(TreeNode root, StringBuilder builder) {
if (root != null) {
postVisit(root.left, builder);
postVisit(root.right, builder);
builder.append(root.val).append(' ');
}
}
private static TreeNode createTree(int[] preOrder, int preBeg, int preEnd,
int[] inOrder, int inBeg, int inEnd, boolean[] result) {
if (preBeg <= preEnd && result[0]) {
TreeNode root = new TreeNode(preOrder[preBeg]);
// 在中序序列中找根结点元素的位置
int inIdx = inBeg;
while (inIdx <= inEnd && inOrder[inIdx] != preOrder[preBeg]) {
inIdx++;
}
if (inIdx > inEnd) {
result[0] = false;
return null;
}
// 左子树的元素个数
int leftNum = inIdx - inBeg;
root.left = createTree(preOrder, preBeg + 1, preBeg + leftNum, inOrder, inBeg, inIdx - 1, result);
root.right = createTree(preOrder, preBeg + leftNum + 1, preEnd, inOrder, inIdx + 1, inEnd, result);
return root;
}
return null;
}
public static class TreeNode {
private int val;
private TreeNode left;
private TreeNode right;
public TreeNode(int val) {
this.val = val;
}
}
}
|
[
"shining-glory@qq.com"
] |
shining-glory@qq.com
|
053e1a239357489a3527ede0d27f940612776660
|
8e1bb34c5cef5930ce2ff2678e2d42566b7e6099
|
/p27_interpreter/src/com/wzc/p27_interpreter/_2_music_example/Expression.java
|
577fd044be5b27c68e6fed45b7b2eeb9ad6a634e
|
[] |
no_license
|
jhwsx/DesignPatternDemos
|
07f29bd383fee3b5e6a64eef8ee5adae75899db2
|
cbbca8ec1113223a96ec2382858323f927c4d7d1
|
refs/heads/master
| 2021-12-15T14:09:21.781415
| 2021-12-10T07:58:00
| 2021-12-10T07:58:00
| 130,048,744
| 7
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 936
|
java
|
package com.wzc.p27_interpreter._2_music_example;
/**
* 表达式类
*
* @author wangzhichao
* @since 2019/12/14
*/
public abstract class Expression {
public void interpret(PlayContext context) {
if (context.getText().length() == 0) {
return;
}
// O 3 E 0.5 G 0.5 A 3
// 取出 O 作为 playKey,3 作为 playValue,余下的部分作为 text
String playKey = context.getText().substring(0, 1);
String text = context.getText().substring(2); // 3 E 0.5 G 0.5 A 3
String playValue;
if (text.contains(" ")) {
playValue = text.substring(0, text.indexOf(" "));
context.setText(text.substring(text.indexOf(" ") + 1));
} else {
playValue = text;
context.setText("");
}
execute(playKey, Double.valueOf(playValue));
}
public abstract void execute(String key, double value);
}
|
[
"wangzhichao@adups.com"
] |
wangzhichao@adups.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.