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
cedece03da0269a6bf7ac6a04c58247a28659511
1ec8b12e4ec6f0d746e7a74bc7ea96d08aa04451
/src/com/vmware/vim25/VirtualMachineSummary.java
6b19cf238192e0aec049bb8b3a5b463c692c7348
[]
no_license
nickdeng1216/Intercloud
b5f76de436a3a112ac177b817199498f77f85160
5a325b943c28a95c8511806147667428fc284254
refs/heads/master
2022-02-23T15:40:16.366847
2019-09-29T12:50:20
2019-09-29T12:50:20
192,634,019
0
1
null
null
null
null
UTF-8
Java
false
false
3,672
java
/*================================================================================ Copyright (c) 2012 Steve Jin. 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 VMware, Inc. 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 VMWARE, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ================================================================================*/ package com.vmware.vim25; /** * @author Steve Jin (http://www.doublecloud.org) * @version 5.1 */ @SuppressWarnings("all") public class VirtualMachineSummary extends DynamicData { public ManagedObjectReference vm; public VirtualMachineRuntimeInfo runtime; public VirtualMachineGuestSummary guest; public VirtualMachineConfigSummary config; public VirtualMachineStorageSummary storage; public VirtualMachineQuickStats quickStats; public ManagedEntityStatus overallStatus; public CustomFieldValue[] customValue; public ManagedObjectReference getVm() { return this.vm; } public VirtualMachineRuntimeInfo getRuntime() { return this.runtime; } public VirtualMachineGuestSummary getGuest() { return this.guest; } public VirtualMachineConfigSummary getConfig() { return this.config; } public VirtualMachineStorageSummary getStorage() { return this.storage; } public VirtualMachineQuickStats getQuickStats() { return this.quickStats; } public ManagedEntityStatus getOverallStatus() { return this.overallStatus; } public CustomFieldValue[] getCustomValue() { return this.customValue; } public void setVm(ManagedObjectReference vm) { this.vm=vm; } public void setRuntime(VirtualMachineRuntimeInfo runtime) { this.runtime=runtime; } public void setGuest(VirtualMachineGuestSummary guest) { this.guest=guest; } public void setConfig(VirtualMachineConfigSummary config) { this.config=config; } public void setStorage(VirtualMachineStorageSummary storage) { this.storage=storage; } public void setQuickStats(VirtualMachineQuickStats quickStats) { this.quickStats=quickStats; } public void setOverallStatus(ManagedEntityStatus overallStatus) { this.overallStatus=overallStatus; } public void setCustomValue(CustomFieldValue[] customValue) { this.customValue=customValue; } }
[ "nickdeng1216@gmail.com" ]
nickdeng1216@gmail.com
02158a938b4a9762e1c024873b1b2f82dedc2b62
a59f2f361c20e6fa277c96d3bd6e5a874b78e65d
/Sparx/src/java/main/com/netspective/sparx/security/LoginDialogSkin.java
92079719473c4825faf9e5d26b47d54adac6e13e
[]
no_license
netspective/NEFS
4907426e3ef447f92c8d2e2e915632d636362f5c
a09c8f5648b7e4679167d8251611682d42e3792e
refs/heads/master
2016-08-04T07:19:46.311745
2009-09-03T21:50:14
2009-09-03T21:50:14
255,003
1
5
null
null
null
null
UTF-8
Java
false
false
2,493
java
/* * Copyright (c) 2000-2004 Netspective Communications LLC. All rights reserved. * * Netspective Communications LLC ("Netspective") permits redistribution, modification and use of this file in source * and binary form ("The Software") under the Netspective Source License ("NSL" or "The License"). The following * conditions are provided as a summary of the NSL but the NSL remains the canonical license and must be accepted * before using The Software. Any use of The Software indicates agreement with the NSL. * * 1. Each copy or derived work of The Software must preserve the copyright notice and this notice unmodified. * * 2. Redistribution of The Software is allowed in object code form only (as Java .class files or a .jar file * containing the .class files) and only as part of an application that uses The Software as part of its primary * functionality. No distribution of the package is allowed as part of a software development kit, other library, * or development tool without written consent of Netspective. Any modified form of The Software is bound by these * same restrictions. * * 3. Redistributions of The Software in any form must include an unmodified copy of The License, normally in a plain * ASCII text file unless otherwise agreed to, in writing, by Netspective. * * 4. The names "Netspective", "Axiom", "Commons", "Junxion", and "Sparx" are trademarks of Netspective and may not be * used to endorse or appear in products derived from The Software without written consent of Netspective. * * THE SOFTWARE IS PROVIDED "AS IS" WITHOUT A WARRANTY OF ANY KIND. ALL EXPRESS OR IMPLIED REPRESENTATIONS AND * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, * ARE HEREBY DISCLAIMED. * * NETSPECTIVE AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE OR ANY THIRD PARTY AS A * RESULT OF USING OR DISTRIBUTING THE SOFTWARE. IN NO EVENT WILL NETSPECTIVE OR ITS LICENSORS BE LIABLE FOR ANY LOST * REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THE SOFTWARE, EVEN * IF IT HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. */ package com.netspective.sparx.security; import com.netspective.sparx.form.DialogSkin; public interface LoginDialogSkin extends DialogSkin { }
[ "shahid.shah" ]
shahid.shah
295bbb8620f358c7506ba76510e9958fc6d2b65a
badb58980b6b36f98c8172a20b61da94a6bdd3f7
/hippo-addon-indiantax-itr-schemas/src/main/java/in/gov/incometaxindiaefiling/y2011_2012/corp/CapGainSlumpSale.java
46a7eaa265964cf820e590f83e6bcb7266b132dd
[]
no_license
runitmalik01/git
d246f415178ee717721b3265ff1e4b3654a9bd70
6b67cb7605f00a5bf516b216dafabef21a7a2302
refs/heads/master
2020-04-01T16:34:40.174723
2014-03-31T04:34:09
2014-03-31T04:34:09
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,726
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 // 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: 2013.08.25 at 06:06:29 PM PDT // package in.gov.incometaxindiaefiling.y2011_2012.corp; import java.math.BigInteger; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="FullConsideration"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}unsignedLong"> * &lt;totalDigits value="14"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="NetWorthOfUTDivn"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}unsignedLong"> * &lt;totalDigits value="14"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="CGSlumpSale"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}long"> * &lt;totalDigits value="14"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="DednUs54s"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}unsignedLong"> * &lt;totalDigits value="14"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;element name="NetCGSlumpSale"> * &lt;simpleType> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}long"> * &lt;totalDigits value="14"/> * &lt;/restriction> * &lt;/simpleType> * &lt;/element> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "fullConsideration", "netWorthOfUTDivn", "cgSlumpSale", "dednUs54S", "netCGSlumpSale" }) @XmlRootElement(name = "CapGainSlumpSale") public class CapGainSlumpSale { @XmlElement(name = "FullConsideration", required = true, defaultValue = "0") protected BigInteger fullConsideration; @XmlElement(name = "NetWorthOfUTDivn", required = true, defaultValue = "0") protected BigInteger netWorthOfUTDivn; @XmlElement(name = "CGSlumpSale", defaultValue = "0") protected long cgSlumpSale; @XmlElement(name = "DednUs54s", required = true, defaultValue = "0") protected BigInteger dednUs54S; @XmlElement(name = "NetCGSlumpSale", defaultValue = "0") protected long netCGSlumpSale; /** * Gets the value of the fullConsideration property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getFullConsideration() { return fullConsideration; } /** * Sets the value of the fullConsideration property. * * @param value * allowed object is * {@link BigInteger } * */ public void setFullConsideration(BigInteger value) { this.fullConsideration = value; } /** * Gets the value of the netWorthOfUTDivn property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getNetWorthOfUTDivn() { return netWorthOfUTDivn; } /** * Sets the value of the netWorthOfUTDivn property. * * @param value * allowed object is * {@link BigInteger } * */ public void setNetWorthOfUTDivn(BigInteger value) { this.netWorthOfUTDivn = value; } /** * Gets the value of the cgSlumpSale property. * */ public long getCGSlumpSale() { return cgSlumpSale; } /** * Sets the value of the cgSlumpSale property. * */ public void setCGSlumpSale(long value) { this.cgSlumpSale = value; } /** * Gets the value of the dednUs54S property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getDednUs54S() { return dednUs54S; } /** * Sets the value of the dednUs54S property. * * @param value * allowed object is * {@link BigInteger } * */ public void setDednUs54S(BigInteger value) { this.dednUs54S = value; } /** * Gets the value of the netCGSlumpSale property. * */ public long getNetCGSlumpSale() { return netCGSlumpSale; } /** * Sets the value of the netCGSlumpSale property. * */ public void setNetCGSlumpSale(long value) { this.netCGSlumpSale = value; } }
[ "amit@mootly.com" ]
amit@mootly.com
c9c97ebaf7ed7e4a67d86dd37fe1f33954940255
7731f417107b20a649801d936f51c12838b56a20
/module_stack/src/main/java/synway/module_stack/hm_leave/net/BaseResult.java
685ee0f24ba4696c3a1c74edd54992246e360e90
[]
no_license
wuliang6661/app2.0
19125181d4f431f03e644ab5293d402277def646
2c3ddbaa1dc7f9d0d7ba5c5443854c747b6f7d30
refs/heads/master
2023-06-04T15:21:53.375173
2021-06-23T08:41:37
2021-06-23T08:41:37
258,925,054
3
1
null
null
null
null
UTF-8
Java
false
false
1,166
java
package synway.module_stack.hm_leave.net; /** * Created by wuliang on 2017/3/27. * 所有返回的json数据的公有格式 */ public class BaseResult<T> { // 1) RESULT: 表成功和失败状态。1表成功,0表失败。 // 2) REASON: 错误信息,当有错误发生时,此errorMessage包含有错误信息 // 3) errorCode: 错误编码,当有错误发生时,此errorCode包含有错误编码 // 4) data:返回数据 private static int SURCESS = 200; private int code; private String err; private int total; private T data; public boolean suress() { return code == SURCESS; } public int getCode() { return code; } public void setCode(int code) { this.code = code; } public String getErr() { return err; } public void setErr(String err) { this.err = err; } public int getTotal() { return total; } public void setTotal(int total) { this.total = total; } public T getData() { return data; } public void setData(T data) { this.data = data; } }
[ "wuliang6661@163.com" ]
wuliang6661@163.com
dea4350e93a54dad19ba037d3ba646f93af1342f
7529349a775742d521f7d9a82e0a9b04d307f293
/java_examples/data_types_demo/src/type_casting_example/TypeCastingDemo.java
7c6a0f6285544b8262751d3a9f71e0d6d097988e
[]
no_license
vinayingalahalli/rocp1_revature
dfadde7e2f5a39dfd0e7ccfab2e9b196e92474f0
dc3a95c497f66e47d5e428cf697df332895d1f0d
refs/heads/master
2022-12-28T20:39:22.166243
2020-10-13T19:53:49
2020-10-13T19:53:49
297,393,945
3
0
null
null
null
null
UTF-8
Java
false
false
1,228
java
package type_casting_example; public class TypeCastingDemo { public static void main(String[] args) { /* * TypeCasting? Conversion of 1 data type to another is known as typecasting * * 1)Implicit Casting(taken care by compiler itself) - when we assign smaller * data type to larger data type. Please note that all the number family * like(int short,long & byte) are considered as smaller than float & double * * 2)Explicit Casting(programmer should do it ) - when we convert larger type to the smaller * data type its called as explicit casting */ int x = 1000; // 4bytes double d1 = x; // double is 8 bytes//implicit casting done by compiler System.out.println("Value of d1 - " + d1); float f1=x; //float is 4 bytes still it is considered larger than int & long so this is done implicitly System.out.println("value of f1 = "+f1); char c='A'; //2bytes int y=c; //4bytes implicit System.out.println("value of y : "+y); y=100; //4bytes c=(char)y; //4bytes to 2bytes explicit casting done by programmer System.out.println("value of c after explicit casting is : "+c); float f=99.88f; int z=(int)f; System.out.println("value of z is "+z); } }
[ "vinay.ingalahalli@revature.com" ]
vinay.ingalahalli@revature.com
be64c4f0001736705a73ff93feb9c8f08ec9405e
50c937c8a203a5ca3a26f70980173a5a898da9e3
/l2gw-core/highfive/gameserver/java/ru/l2gw/gameserver/model/instances/L2TerritoryCatapultInstance.java
94de32f75840e903a28f96bcd412ec31fe6c329c
[]
no_license
gokusgit/hi5
b336cc8bf96b74cbd9419253444cf0a7df71a2fb
0345266a3cb3059b3e4e5ec31b59690af36e07fd
refs/heads/master
2020-07-10T23:33:14.500298
2019-08-26T07:41:18
2019-08-26T07:41:18
204,398,114
0
1
null
null
null
null
UTF-8
Java
false
false
1,512
java
package ru.l2gw.gameserver.model.instances; import ru.l2gw.gameserver.instancemanager.ResidenceManager; import ru.l2gw.gameserver.model.L2Character; import ru.l2gw.gameserver.model.L2Skill; import ru.l2gw.gameserver.model.entity.Castle; import ru.l2gw.gameserver.tables.SpawnTable; import ru.l2gw.gameserver.templates.L2NpcTemplate; /** * @author rage * @date 09.07.2010 13:51:09 */ public class L2TerritoryCatapultInstance extends L2TerritoryGuardInstance { public L2TerritoryCatapultInstance(int objectId, L2NpcTemplate template, long bossIndex, long p1, long p2, long p3) { super(objectId, template, bossIndex, p1, p2, p3); } @Override public void doDie(L2Character killer) { super.doDie(killer); Castle castle = ResidenceManager.getInstance().getCastleById(_territoryId - 80); if(castle != null) { SpawnTable.getInstance().stopEventSpawn("territory_c_" + _territoryId, true); SpawnTable.getInstance().startEventSpawn("territory_d_" + _territoryId); for(L2DoorInstance door : castle.getDoors()) if(!door.isWall()) { _log.info(this + " killed, open castle door: " + door); door.openMe(); } } } @Override public int getMaxHp() { return super.getMaxHp() * 400; } @Override public boolean isMovementDisabled() { return true; } @Override public L2Skill.TargetType getTargetRelation(L2Character target, boolean offensive) { if(!offensive) return L2Skill.TargetType.invalid; return super.getTargetRelation(target, offensive); } }
[ "46629361+gokusgit@users.noreply.github.com" ]
46629361+gokusgit@users.noreply.github.com
a1196c0300d407b2683a4704b8dfdea3299053b7
9f38c66cd0b9a5dc252e6af9a3adc804915ff0e9
/java/src/designpatterns/creational/object_pool/objectpool/taxi/TaxiPool.java
06d3520e0e1be5b06f76a09dbad6930661cde0ce
[ "MIT" ]
permissive
vuquangtin/designpattern
4d4a7d09780a0ebde6b12f8edf589b6f45b38f62
fc672493ef31647bd02c4122ab01992fca14675f
refs/heads/master
2022-09-12T07:00:42.637733
2020-09-29T04:20:50
2020-09-29T04:20:50
225,505,298
0
0
null
2022-09-01T23:16:34
2019-12-03T01:41:33
Java
UTF-8
Java
false
false
2,015
java
package objectpool.taxi; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; /** * Design Patterns * * @author EMAIL:vuquangtin@gmail.com , tel:0377443333 * @version 1.0.0 * @see <a * href="https://github.com/vuquangtin/designpattern">https://github.com/vuquangtin/designpattern</a> * */ public class TaxiPool { private static final long EXPIRED_TIME_IN_MILISECOND = 1200; // 1.2s private static final int NUMBER_OF_TAXI = 4; private final List<Taxi> available = Collections .synchronizedList(new ArrayList<>()); private final List<Taxi> inUse = Collections .synchronizedList(new ArrayList<>()); private final AtomicInteger count = new AtomicInteger(0); private final AtomicBoolean waiting = new AtomicBoolean(false); public synchronized Taxi getTaxi() { if (!available.isEmpty()) { Taxi taxi = available.remove(0); inUse.add(taxi); return taxi; } if (count.get() == NUMBER_OF_TAXI) { this.waitingUntilTaxiAvailable(); return this.getTaxi(); } Taxi taxi = this.createTaxi(); inUse.add(taxi); return taxi; } public synchronized void release(Taxi taxi) { inUse.remove(taxi); available.add(taxi); System.out.println(taxi.getName() + " is free"); } private Taxi createTaxi() { waiting(200); // The time to create a taxi Taxi taxi = new Taxi("Taxi " + count.incrementAndGet()); System.out.println(taxi.getName() + " is created"); return taxi; } private void waitingUntilTaxiAvailable() { if (waiting.get()) { waiting.set(false); throw new TaxiNotFoundException("No taxi available"); } waiting.set(true); waiting(EXPIRED_TIME_IN_MILISECOND); } private void waiting(long numberOfSecond) { try { TimeUnit.MILLISECONDS.sleep(numberOfSecond); } catch (InterruptedException e) { e.printStackTrace(); Thread.currentThread().interrupt(); } } }
[ "tinvuquang@admicro.vn" ]
tinvuquang@admicro.vn
400d1aa2c0a22da6ab9d868e0539961de4b849d5
50e54eed65d8d700da9b202dff74f730400920b5
/ahbottomnavigation/build/generated/source/buildConfig/androidTest/debug/com/aurelhubert/ahbottomnavigation/test/BuildConfig.java
6186194d4ba65bd55ee354d684c8b96b93865259
[ "MIT" ]
permissive
Aviatoryona/FestaAndroid
2963eda3a570d0c12de586a5fbf7554ddd1d1cd9
9665fec7ab804caabb68881f7096763b2552dece
refs/heads/main
2023-01-07T20:04:35.932545
2020-11-05T06:29:47
2020-11-05T06:29:47
310,209,127
0
0
null
null
null
null
UTF-8
Java
false
false
488
java
/** * Automatically generated file. DO NOT MODIFY */ package com.aurelhubert.ahbottomnavigation.test; public final class BuildConfig { public static final boolean DEBUG = Boolean.parseBoolean("true"); public static final String APPLICATION_ID = "com.aurelhubert.ahbottomnavigation.test"; public static final String BUILD_TYPE = "debug"; public static final String FLAVOR = ""; public static final int VERSION_CODE = 40; public static final String VERSION_NAME = "2.1.0"; }
[ "aviatoryona67@gmail.com" ]
aviatoryona67@gmail.com
1f9855c522a9ab67911708d8b6547bcab5a95080
8229884a9bd15286a34cbd2e7b4624ee158be378
/app/src/k6/java/com.mili.smarthome.tkj/view/NetworkView.java
f2df1abcd049f33bc94b286a687db97c2d2b76bd
[]
no_license
chengcdev/smarthome
5ae58bc0ba8770598f83a36355b557c46f37b90c
4edb33dcdfcab39a3bc6e5342a7973ac703f1344
refs/heads/master
2022-12-03T18:04:39.172431
2020-08-20T05:22:57
2020-08-20T05:22:57
288,909,136
1
1
null
null
null
null
UTF-8
Java
false
false
2,751
java
package com.mili.smarthome.tkj.view; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.graphics.Color; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.support.annotation.Nullable; import android.support.v7.widget.AppCompatImageView; import android.util.AttributeSet; import com.mili.smarthome.tkj.R; public class NetworkView extends AppCompatImageView { private BroadcastReceiver mReceiver; public NetworkView(Context context) { this(context, null, 0); } public NetworkView(Context context, @Nullable AttributeSet attrs) { this(context, attrs, 0); } public NetworkView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); setImageResource(R.drawable.main_location); } @Override protected void onAttachedToWindow() { super.onAttachedToWindow(); registerReceiver(); } @Override protected void onDetachedFromWindow() { super.onDetachedFromWindow(); unregisterReceiver(); } private void onNetworkChanged(boolean connected) { if (connected) { setColorFilter(Color.WHITE); } else { clearColorFilter(); } } private void registerReceiver() { IntentFilter filter = new IntentFilter(); filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION); mReceiver = new NetworkBroadcastReceiver(); getContext().registerReceiver(mReceiver, filter); } private void unregisterReceiver() { getContext().unregisterReceiver(mReceiver); } private class NetworkBroadcastReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { if (ConnectivityManager.CONNECTIVITY_ACTION.equals(intent.getAction())) { ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo activeNetwork = connectivityManager.getActiveNetworkInfo(); if (activeNetwork != null && activeNetwork.isConnected()) { if (activeNetwork.getType() == ConnectivityManager.TYPE_WIFI || activeNetwork.getType() == ConnectivityManager.TYPE_ETHERNET || activeNetwork.getType() == ConnectivityManager.TYPE_MOBILE ) { onNetworkChanged(true); return; } } onNetworkChanged(false); } } } }
[ "1508592785@qq.com" ]
1508592785@qq.com
a39e7767ee5b0acb5b0eff7fb474c58499e3f411
36ab1307d1d1573f5bfb87b687ae1d52015ee418
/src/main/java/com/tfsc/ilabs/selfservice/action/models/definition/ActionRestDefinition.java
e4c2f062c6a447d6d0d14afcb3918437af92fb54
[]
no_license
Girish027/assist-selfserve-be
84f83f158c7871b719f2125b66e609f0c9094c67
f3df20349acf665e52815a62723b6e0bcc2b2c41
refs/heads/main
2023-08-25T18:00:51.006117
2021-10-18T21:04:47
2021-10-18T21:04:47
418,667,318
0
0
null
null
null
null
UTF-8
Java
false
false
2,301
java
package com.tfsc.ilabs.selfservice.action.models.definition; import com.fasterxml.jackson.databind.JsonNode; import io.swagger.models.HttpMethod; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; import lombok.ToString; import javax.persistence.Column; import javax.persistence.EnumType; import javax.persistence.Enumerated; import javax.validation.constraints.NotNull; import java.util.HashMap; import java.util.Map; /** * Created by ravi.b on 04-06-2019. */ @Getter @Setter @EqualsAndHashCode @ToString public class ActionRestDefinition extends ActionDefinition { @Enumerated(EnumType.STRING) @Column(length = 45) @NotNull private HttpMethod method; @NotNull private Map<String, String> headers; /** * This is the object definition used map different field of workflow data to object which will be sent in action call. * Cant be used in complex cases; * Note : Its an alternative to "objectTranslator". * So either one of them will only be present with precedence given to objectTranslator */ private Map<String, String> bodyDefinition; private String relativePath; private String serviceId; /** * This is the javascript function with name "translate" and input as pageData and entity. * eg : function(var pageData, var entity){ // implementation} * This will be used to translate the workflow data into object suitable for action call, * Note : Its an alternative to "bodyDefinition" . So either one of them will only be present with precedence given to objectTranslator */ private String objectTranslator; /** * This key is used to send POST request as key value mapping for x-wwww-form-urlencoded request */ private String requestBodyKey; @Enumerated(EnumType.STRING) private RestClientType restClientType; private JsonNode preFetchDefinition; private boolean idLookupRequired; private boolean uploadFile; private String idLookupKeys; private boolean prefetchRequiredForLiveOnly; private boolean getPathParamFromPageData; private boolean urlParamsEncoded; public ActionRestDefinition() { //for jackson lib method = HttpMethod.GET; headers = new HashMap<>(); } }
[ "41387899+Girish027@users.noreply.github.com" ]
41387899+Girish027@users.noreply.github.com
6ac19509545b57aae3f97c83bb4d8045442e631a
762acfab35cef5dba17f67371430b2b82bfa312e
/dmit2015-instructor-oracle-human-resources/src/main/java/dmit2015/hr/view/RegionEditController.java
a0cc2318b17f4d667ecb72300e52c9d435493ea8
[]
no_license
DMIT-2015/dmit2015-1202-OA01-demos
3ebf995d2fe1df7bd4ef4460345b7fc1ef934a1a
5d059622856f12408cf3175bb1a6f51ac6b81714
refs/heads/main
2023-04-02T23:08:25.166230
2021-04-05T04:04:29
2021-04-05T04:04:29
331,977,599
2
0
null
null
null
null
UTF-8
Java
false
false
1,891
java
package dmit2015.hr.view; import dmit2015.hr.entity.Region; import dmit2015.hr.repository.RegionRepository; import lombok.Getter; import lombok.Setter; import org.omnifaces.util.Faces; import org.omnifaces.util.Messages; import javax.annotation.PostConstruct; import javax.faces.annotation.ManagedProperty; import javax.faces.view.ViewScoped; import javax.inject.Inject; import javax.inject.Named; import java.io.Serializable; import java.util.Optional; @Named("currentRegionEditController") @ViewScoped public class RegionEditController implements Serializable { @Inject private RegionRepository _regionRepository; @Inject @ManagedProperty("#{param.editId}") @Getter @Setter private Long editId; @Getter private Region existingRegion; @PostConstruct public void init() { if (!Faces.isPostback()) { Optional<Region> optionalEntity = _regionRepository.findOneById(editId); optionalEntity.ifPresent(entity -> existingRegion = entity); } } public String onUpdate() { String nextPage = ""; try { _regionRepository.update(existingRegion); Messages.addFlashGlobalInfo("Update was successful."); nextPage = "index?faces-redirect=true"; } catch (Exception e) { e.printStackTrace(); Messages.addGlobalError("Update was not successful."); } return nextPage; } public String onDelete() { String nextPage = ""; try { _regionRepository.deleteById(existingRegion.getRegionId()); Messages.addFlashGlobalInfo("Delete was successful."); nextPage = "index?faces-redirect=true"; } catch (Exception e) { e.printStackTrace(); Messages.addGlobalError("Delete not successful."); } return nextPage; } }
[ "swu@nait.ca" ]
swu@nait.ca
6e003157d8ea9d3510470fd5517c8190155fd954
2f3c04382a66dbf222c8587edd67a5df4bc80422
/src/com/cedar/cp/ejb/impl/model/recharge/RechargeGroupAccessor.java
28ff8ce3e237d60f1b035f3218aed933f767efd4
[]
no_license
arnoldbendaa/cppro
d3ab6181cc51baad2b80876c65e11e92c569f0cc
f55958b85a74ad685f1360ae33c881b50d6e5814
refs/heads/master
2020-03-23T04:18:00.265742
2018-09-11T08:15:28
2018-09-11T08:15:28
141,074,966
0
0
null
null
null
null
UTF-8
Java
false
false
3,923
java
// Decompiled by: Fernflower v0.8.6 // Date: 12.08.2012 13:26:52 // Copyright: 2008-2012, Stiver // Home page: http://www.neshkov.com/ac_decompiler.html package com.cedar.cp.ejb.impl.model.recharge; import com.cedar.cp.api.base.EntityRef; import com.cedar.cp.dto.base.CompositeKey; import com.cedar.cp.dto.base.PrimaryKey; import com.cedar.cp.dto.model.recharge.AllRechargeGroupsELO; import com.cedar.cp.dto.model.recharge.RechargeGroupCK; import com.cedar.cp.dto.model.recharge.RechargeGroupPK; import com.cedar.cp.ejb.impl.model.recharge.RechargeGroupDAO; import com.cedar.cp.ejb.impl.model.recharge.RechargeGroupEVO; import com.cedar.cp.ejb.impl.model.recharge.RechargeGroupLocal; import com.cedar.cp.ejb.impl.model.recharge.RechargeGroupLocalHome; import java.io.Serializable; import java.util.Hashtable; import javax.naming.InitialContext; import javax.naming.NamingException; public class RechargeGroupAccessor implements Serializable { private RechargeGroupLocalHome mLocalHome; private Hashtable mLocals = new Hashtable(); private transient InitialContext mInitialContext; public static final String GET_RECHARGES = "<0>"; public static final String GET_ALL_DEPENDANTS = "<0>"; public RechargeGroupAccessor(InitialContext ctx) { this.mInitialContext = ctx; } private RechargeGroupLocalHome getLocalHome() { try { if(this.mLocalHome != null) { return this.mLocalHome; } else { this.mLocalHome = (RechargeGroupLocalHome)this.mInitialContext.lookup("java:comp/env/ejb/RechargeGroupLocalHome"); return this.mLocalHome; } } catch (NamingException var2) { throw new RuntimeException("error looking up RechargeGroupLocalHome", var2); } } private RechargeGroupLocal getLocal(RechargeGroupPK pk) throws Exception { RechargeGroupLocal local = (RechargeGroupLocal)this.mLocals.get(pk); if(local == null) { local = this.getLocalHome().findByPrimaryKey(pk); this.mLocals.put(pk, local); } return local; } public RechargeGroupEVO create(RechargeGroupEVO evo) throws Exception { RechargeGroupLocal local = this.getLocalHome().create(evo); RechargeGroupEVO newevo = local.getDetails("<UseLoadedEVOs>"); RechargeGroupPK pk = newevo.getPK(); this.mLocals.put(pk, local); return newevo; } public void remove(RechargeGroupPK pk) throws Exception { this.getLocal(pk).remove(); } public RechargeGroupEVO getDetails(Object paramKey, String dependants) throws Exception { Object key = paramKey; if(paramKey instanceof EntityRef) { key = ((EntityRef)paramKey).getPrimaryKey(); } if(key instanceof RechargeGroupCK) { RechargeGroupPK pk = ((RechargeGroupCK)key).getRechargeGroupPK(); return this.getLocal(pk).getDetails((RechargeGroupCK)key, dependants); } else { return key instanceof RechargeGroupPK?this.getLocal((RechargeGroupPK)key).getDetails(dependants):null; } } public CompositeKey getCKForDependantPK(PrimaryKey key) { return null; } public void setDetails(RechargeGroupEVO evo) throws Exception { RechargeGroupPK pk = evo.getPK(); this.getLocal(pk).setDetails(evo); } public RechargeGroupEVO setAndGetDetails(RechargeGroupEVO evo, String dependants) throws Exception { return this.getLocal(evo.getPK()).setAndGetDetails(evo, dependants); } public RechargeGroupPK generateKeys(RechargeGroupPK pk) throws Exception { return this.getLocal(pk).generateKeys(); } public AllRechargeGroupsELO getAllRechargeGroups() { RechargeGroupDAO dao = new RechargeGroupDAO(); return dao.getAllRechargeGroups(); } }
[ "arnoldbendaa@gmail.com" ]
arnoldbendaa@gmail.com
59e11c44acbb1e8e5792e89bc2dccd5eafecbee5
26da0aea2ab0a2266bbee962d94a96d98a770e5f
/nam/nam-view/src/main/java/nam/model/fault/FaultWizard.java
9b9a5fede147a14972d2be5ea448c76a6e98d7b8
[ "Apache-2.0" ]
permissive
tfisher1226/ARIES
1de2bc076cf83488703cf18f7e3f6e3c5ef1b40b
814e3a4b4b48396bcd6d082e78f6519679ccaa01
refs/heads/master
2021-01-10T02:28:07.807313
2015-12-10T20:30:00
2015-12-10T20:30:00
44,076,313
2
0
null
null
null
null
UTF-8
Java
false
false
2,922
java
package nam.model.fault; import java.io.Serializable; import javax.enterprise.context.SessionScoped; import javax.inject.Inject; import javax.inject.Named; import org.apache.commons.lang.StringUtils; import org.aries.util.NameUtil; import nam.model.Fault; import nam.model.Project; import nam.model.util.FaultUtil; import nam.ui.design.AbstractDomainElementWizard; import nam.ui.design.SelectionContext; @SessionScoped @Named("faultWizard") @SuppressWarnings("serial") public class FaultWizard extends AbstractDomainElementWizard<Fault> implements Serializable { @Inject private FaultDataManager faultDataManager; @Inject private FaultPageManager faultPageManager; @Inject private FaultEventManager faultEventManager; @Inject private SelectionContext selectionContext; @Override public String getName() { return "Fault"; } @Override public String getUrlContext() { return faultPageManager.getFaultWizardPage(); } @Override public void initialize(Fault fault) { setOrigin(getSelectionContext().getUrl()); assignPages(faultPageManager.getSections()); super.initialize(fault); } @Override public boolean isBackEnabled() { return super.isBackEnabled(); } @Override public boolean isNextEnabled() { return super.isNextEnabled(); } @Override public boolean isFinishEnabled() { return super.isFinishEnabled(); } @Override public String refresh() { String url = super.showPage(); selectionContext.setUrl(url); faultPageManager.updateState(); return url; } @Override public String first() { String url = super.first(); faultPageManager.updateState(); return url; } @Override public String back() { String url = super.back(); faultPageManager.updateState(); return url; } @Override public String next() { String url = super.next(); faultPageManager.updateState(); return url; } @Override public boolean isValid() { return super.isValid(); } @Override public String finish() { Fault fault = getInstance(); faultDataManager.saveFault(fault); faultEventManager.fireSavedEvent(fault); String url = selectionContext.popOrigin(); return url; } @Override public String cancel() { Fault fault = getInstance(); //TODO take this out soon if (fault == null) fault = new Fault(); faultEventManager.fireCancelledEvent(fault); String url = selectionContext.popOrigin(); return url; } public String populateDefaultValues() { Fault fault = selectionContext.getSelection("fault"); String name = fault.getName(); if (StringUtils.isEmpty(name)) { display = getFromSession("display"); display.setModule("faultWizard"); display.error("Fault name must be specified"); return null; } Project project = selectionContext.getSelection("project"); String nameCapped = NameUtil.capName(name); String nameUncapped = NameUtil.uncapName(name); return getUrl(); } }
[ "tfisher@kattare.com" ]
tfisher@kattare.com
5ead9fbaffcce8f76be7f68a1d63015cf34dff22
2671f7b2ba74b6ed73c5e72c1c242e39b9672829
/genesis-transaction-examples/tx-user-ms/src/main/java/com/flame/tx/user/service/UserService.java
80943b08511851da477154c0669bc9518cd65728
[]
no_license
kovow/genesis
9539921de75249582dc11a95043f136182cfcdc5
c3562c0a6250013fd5a0096f180ca91cad99db2b
refs/heads/master
2021-07-24T12:35:49.655814
2017-11-03T08:39:42
2017-11-03T08:39:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,646
java
package com.flame.tx.user.service; import com.flame.mapper.UserMapper; import com.flame.model.User; import com.flame.model.UserMoney; import com.flame.tx.user.client.UserMoneyClient; import com.google.common.collect.Maps; import com.lorne.tx.annotation.TxTransaction; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.util.List; import java.util.Map; /** * Created by sungang on 2017/9/16. */ @Service public class UserService { @Autowired private UserMapper userMapper; @Autowired private UserMoneyClient userMoneyClient; public List<User> findAll() { return userMapper.selectAll(); } public User findById(Long id) { User user = userMapper.selectByPrimaryKey(id); // TUserMoney userMoney = userMoneyClient.findByUserId(id); // user.setUserMoney(userMoney); return user; } @TxTransaction @Transactional public int save() { User user = new User(); user.setUserName("Test Tx"); user.setPassword("11111"); int rs1 = userMapper.insert(user); /** * 保存 余额 分布式服务 */ Map<String,Object> params = Maps.newHashMap(); params.put("userId",user.getId()); UserMoney userMoney = new UserMoney(); userMoney.setMoney(100D); userMoney.setUserId(user.getId()); int rs2 = userMoneyClient.save(userMoney); /** * 抛出异常 */ int v = 100 / 0; return rs1 + rs2; } }
[ "1120sungang@gmail.com" ]
1120sungang@gmail.com
1f19a005de627e8cda424217b5c5e64ef177ecac
7447f3599a9d0f7d430b7402dde6dadbbfc0aba0
/bigdata/learning-storm_Code/Chapter 1/storm-example/src/main/java/com/learningstorm/storm_example/TestMain.java
da6ba84a1b4a6a16f3e94220ff21655b57cf8fec
[]
no_license
liveqmock/workspace
43d5ad79fc0f0675412829d9015cf68255f9d891
c1da6eab74047cd612b1b3b1046c8fa03c5809fb
refs/heads/master
2020-04-02T01:11:11.800539
2015-04-13T02:55:46
2015-04-13T02:55:46
null
0
0
null
null
null
null
UTF-8
Java
false
false
658
java
package com.learningstorm.storm_example; import java.util.HashMap; import java.util.Map; public class TestMain { private static final Map<Integer, String> map = new HashMap<Integer, String>(); static { map.put(0, "google"); map.put(1, "facebook"); map.put(2, "twitter"); map.put(3, "youtube"); map.put(4, "linkedin"); } public static void main(String[] args) throws InterruptedException { for (int i = 0; i < 10; i++) { Thread.sleep(33); if(map.size()!=0){ System.err.println("tttttttt "+map.get(i)); System.out.println(map); System.out.println(map.size()); map.remove(i); } } } }
[ "root@slave-01.(none)" ]
root@slave-01.(none)
e37556eedceb8439c2f19ea5b35cfd4d94051fed
1454e7caf797682a462a86cea8997d7482ee0c9c
/java/testjava/swing/Tetris/Brick3D.java
67f24247bee0c9cf3a71dc7d85f854aabdfb3a20
[]
no_license
xmtsui/stepbystep
91a06d199d885baf9c34588d8dd3626b43db9103
ef90f99ef5cab3f2e416adbea85ecc627e06218f
refs/heads/master
2021-01-18T22:02:12.356803
2018-07-24T14:56:08
2018-07-24T14:56:08
9,902,878
2
0
null
null
null
null
UTF-8
Java
false
false
4,202
java
import java.awt.Color; import java.awt.Graphics; public class Brick3D { public static final int MAX_SHAPE_NUM = 7; public static final int CELL_WIDTH = 12; public static final int CELL_HEIGHT = CELL_WIDTH; public static final int ROTATION_0 = 0; public static final int ROTATION_90 = 1; public static final int ROTATION_180 = 2; public static final int ROTATION_270 = 3; /** * 定义砖块的形状、角度、位置 * * */ public static final int BRICK_INFO[][][][]={ {//方块 {//0 {1,1,0,0}, {1,1,0,0}, {0,0,0,0}, {0,0,0,0} },{//90 {1,1,0,0}, {1,1,0,0}, {0,0,0,0}, {0,0,0,0} },{//180 {1,1,0,0}, {1,1,0,0}, {0,0,0,0}, {0,0,0,0} },{//270 {1,1,0,0}, {1,1,0,0}, {0,0,0,0}, {0,0,0,0} } }, {//T形 {//0 {1,1,1,0}, {0,1,0,0}, {0,0,0,0}, {0,0,0,0} },{//90 {1,0,0,0}, {1,1,0,0}, {1,0,0,0}, {0,0,0,0} },{//180 {0,1,0,0}, {1,1,1,0}, {0,0,0,0}, {0,0,0,0} },{//270 {0,1,0,0}, {1,1,0,0}, {0,1,0,0}, {0,0,0,0} } }, {//棍子形状 {//0 {1,1,1,1}, {0,0,0,0}, {0,0,0,0}, {0,0,0,0} },{//90 {1,0,0,0}, {1,0,0,0}, {1,0,0,0}, {1,0,0,0} },{//180 {1,1,1,1}, {0,0,0,0}, {0,0,0,0}, {0,0,0,0} },{//270 {1,0,0,0}, {1,0,0,0}, {1,0,0,0}, {1,0,0,0} } }, {//L形状 {//0 {1,0,0,0}, {1,0,0,0}, {1,1,0,0}, {0,0,0,0} },{//90 {0,0,1,0}, {1,1,1,0}, {0,0,0,0}, {0,0,0,0} },{//180 {1,1,0,0}, {0,1,0,0}, {0,1,0,0}, {0,0,0,0} },{ {1,1,1,0}, {1,0,0,0}, {0,0,0,0}, {0,0,0,0} } }, {//反L形状 {//0 {0,1,0,0}, {0,1,0,0}, {1,1,0,0}, {0,0,0,0} },{//90 {1,1,1,0}, {0,0,1,0}, {0,0,0,0}, {0,0,0,0} },{//180 {1,1,0,0}, {1,0,0,0}, {1,0,0,0}, {0,0,0,0} },{//270 {1,0,0,0}, {1,1,1,0}, {0,0,0,0}, {0,0,0,0} } }, {//S形状 {//0 {0,1,1,0}, {1,1,0,0}, {0,0,0,0}, {0,0,0,0} },{//90 {1,0,0,0}, {1,1,0,0}, {0,1,0,0}, {0,0,0,0} },{//180 {0,1,1,0}, {1,1,0,0}, {0,0,0,0}, {0,0,0,0} },{ {1,0,0,0}, {1,1,0,0}, {0,1,0,0}, {0,0,0,0} } }, {//Z形状 {//0 {1,1,0,0}, {0,1,1,0}, {0,0,0,0}, {0,0,0,0} },{//90 {0,1,0,0}, {1,1,0,0}, {1,0,0,0}, {0,0,0,0} },{//180 {1,1,0,0}, {0,1,1,0}, {0,0,0,0}, {0,0,0,0} },{ {0,1,0,0}, {1,1,0,0}, {1,0,0,0}, {0,0,0,0} } } }; /** * 初始化形状 * */ private int shape ; /** * X和Y初始化位置 * */ public int X; public int Y; /** * 颜色索引 * */ public int color_index; /** * 初始化角度 * */ private int angle; /** * 初始化颜色 * */ public Color color; /** * 构造函数 * */ public Brick3D(int shape,int angle,Color color) { this.shape = shape % MAX_SHAPE_NUM; this.color = color; this.angle = angle % 4; X = -1; Y = -1; } public int getAngle() { return angle % 4; } public int getShape() { return shape; } /** * 重新设定砖块的形状、角度和颜色 * */ public void reset(int shape,int angle,Color color){ this.shape = shape % MAX_SHAPE_NUM; this.color = color; this.angle = angle % 4; } /** * 返回当前Brick的状态数组 * */ public int[][] getShapeInfo(){ return BRICK_INFO[shape][angle]; } /** * 按照指定的角度旋转 * */ public void rotate(int angle){ if((angle>=ROTATION_0)&&(angle<=ROTATION_270)){ this.angle+=angle; this.angle%=4; } } /** * 在指定的Graphics上绘制砖块 * */ public void paint(Graphics g,int startX,int startY){ g.setColor(color); //绘制Brick for(int i=0;i<4;i++){ for(int j=0;j<4;j++){ //此处为具体的一个小方块 if(BRICK_INFO[shape][angle][i][j] == 1){ g.fill3DRect(startX+j*CELL_WIDTH,startY+i*CELL_HEIGHT , CELL_WIDTH, CELL_HEIGHT,true); } } } } }
[ "tsui.uestc@gmail.com" ]
tsui.uestc@gmail.com
24385494e8d640a6c975b7aca6390f0aa969780a
e760326163cfa14b2779934c9e71a7f7a76dfb35
/src/com/amarsoft/app/awe/config/menu/action/DeleteMenuAction.java
7553356300a9cb15e45b44e140ee1f7c2188cbc8
[]
no_license
gaosy5945/easylifecore
41e68bba747eb03f28edecf18d9d2ce2755db9d8
3fd630be1d990d0e66452735e84841536af5b9ba
refs/heads/master
2020-05-19T17:25:29.370637
2016-09-21T08:29:40
2016-09-21T08:29:40
null
0
0
null
null
null
null
GB18030
Java
false
false
1,061
java
package com.amarsoft.app.awe.config.menu.action; import com.amarsoft.are.jbo.JBOFactory; import com.amarsoft.are.jbo.JBOTransaction; /** * 主菜单删除处理,删除菜单记录的同时删除其与所属子系统、可见角色的关联关系 * @author xhgao * */ public class DeleteMenuAction { //定义变量 private String menuID; //菜单编号 public String getMenuID() { return menuID; } public void setMenuID(String menuID) { this.menuID = menuID; } public String deleteMenuAndRela(JBOTransaction tx) throws Exception{ DeleteMenuRela delMenuRela = new DeleteMenuRela(); delMenuRela.setMenuID(menuID); //删除指定菜单与所属子系统的关联关系 //delMenuRela.deleteMenuApps(Sqlca); //删除指定菜单与可见角色的关联关系 delMenuRela.deleteMenuRoles(tx); //删除指定菜单信息 JBOFactory.getBizObjectManager("jbo.awe.AWE_MENU_INFO",tx) .createQuery("delete from O where MenuID = :MenuID") .setParameter("MenuID", menuID) .executeUpdate(); return "SUCCEEDED"; } }
[ "jianbin_wang@139.com" ]
jianbin_wang@139.com
30e1cca4f7061285a9a1fc2062e2343a2145a11e
f8bfd08b69508143cae43fe32f7237d2efadfb31
/CHPEV_DEV_RPT/src/main/java/com/ailk/bi/metamanage/action/MsuDefHTMLAction.java
df58eefe8276dcaad428d2b3fc2ccdc23ae16c8c
[]
no_license
qq85609655/BIReport
540dedefe76e2127a1ad4ce16455aa8dfb8480a5
769568a13e709064a32094f9996a49f3edb7cc59
refs/heads/master
2021-05-27T06:56:29.683749
2013-03-31T09:03:04
2013-03-31T09:03:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,607
java
package com.ailk.bi.metamanage.action; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import waf.controller.web.action.HTMLActionException; import waf.controller.web.action.HTMLActionSupport; import com.ailk.bi.metamanage.model.Measure; import com.ailk.bi.metamanage.service.IMsuDefService; import com.ailk.bi.metamanage.service.impl.MsuDefServiceImpl; @SuppressWarnings({ "serial" }) public class MsuDefHTMLAction extends HTMLActionSupport { private IMsuDefService service = new MsuDefServiceImpl(); public void doTrans(HttpServletRequest request, HttpServletResponse response) throws HTMLActionException { // 检查登陆信息 if (!com.ailk.bi.common.app.WebChecker .isLoginUser(request, response)) return; String method = request.getParameter("method"); if ("add".equalsIgnoreCase(method)) { boolean flag = service.isExistMsuId(request.getParameter("msu_id")); if (flag) throw new HTMLActionException(request.getSession(), HTMLActionException.WARN_PAGE, "有重复的指标标识,请重新输入!"); service.add(request); request.setAttribute("msg", "添加成功!"); } else if ("save".equalsIgnoreCase(method)) { service.save(request); request.setAttribute("msg", "修改成功!"); } else if ("delete".equalsIgnoreCase(method)) { service.del(request.getParameter("msu_id")); request.setAttribute("msg", "删除成功!"); } Measure info = service.getMsu(request.getParameter("msu_id")); request.setAttribute("list", info); this.setNextScreen(request, "msuList.screen"); } }
[ "xiaofeng.dou@gmail.com" ]
xiaofeng.dou@gmail.com
622ce0f10c4935a21676d33fd7e7d2ad92a81f99
e61d0ecb7db37f25d0b8f160a0d16de9f911d2e6
/Day02多态&抽象类&接口/src/cn/itcast/myDuoTai/itheima_04/Cat.java
c7f4295d35978c56c7401f51ce238c3fb15bf797
[]
no_license
LoveXianYu/Four-days-before-the-employment-class
1540dd50c2c4c80cf678b24a1b5ccf30ccd2da05
ae142de34128cd0fed326f34da0199ccf3f3168b
refs/heads/master
2020-06-02T09:50:03.586021
2019-06-10T07:31:10
2019-06-10T07:31:10
191,119,410
0
0
null
null
null
null
UTF-8
Java
false
false
243
java
package cn.itcast.myDuoTai.itheima_04; public class Cat extends Animal { @Override public void eat() { System.out.println("猫吃鱼"); } public void playGame() { System.out.println("猫捉迷藏"); } }
[ "1617964770@qq.com" ]
1617964770@qq.com
2b9799b52ddde41191b89c934814bd29376e02f7
83d781a9c2ba33fde6df0c6adc3a434afa1a7f82
/MarketPlatformRemoteService/MarketPlatform.RemoteService.Domain/src/main/java/com/servicelive/marketplatform/provider/domain/SkillNode.java
45354b2b35e6af3446d04c66739515237a4e8468
[]
no_license
ssriha0/sl-b2b-platform
71ab8ef1f0ccb0a7ad58b18f28a2bf6d5737fcb6
5b4fcafa9edfe4d35c2dcf1659ac30ef58d607a2
refs/heads/master
2023-01-06T18:32:24.623256
2020-11-05T12:23:26
2020-11-05T12:23:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,567
java
package com.servicelive.marketplatform.provider.domain; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import com.servicelive.marketplatform.common.domain.AbstractDomainEntity; @Entity @Table(name = "skill_tree") public class SkillNode extends AbstractDomainEntity { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name="node_id") private Long id; @Column(name="node_name") private String nodeName; @Column(name="parent_node") private Long parentNodeId; @Column(name="root_node_id") private Long rootNodeId; @Column(name= "level") private Integer level; @Override public Long getId() { return id; } @Override public void setId(Long id) { this.id = id; } public void setNodeName(String nodeName) { this.nodeName = nodeName; } public String getNodeName() { return nodeName; } public void setParentNodeId(Long parentNodeId) { this.parentNodeId = parentNodeId; } public Long getParentNodeId() { return parentNodeId; } public void setRootNodeId(Long rootNodeId) { this.rootNodeId = rootNodeId; } public Long getRootNodeId() { return rootNodeId; } public void setLevel(Integer level) { this.level = level; } public Integer getLevel() { return level; } }
[ "Kunal.Pise@transformco.com" ]
Kunal.Pise@transformco.com
c9952d423d9ebe28798d604ceccd7bf6704a2a11
3343050b340a8594d802598cddfd0d8709ccc45a
/src/share/classes/javax/swing/plaf/metal/MetalComboBoxButton.java
90d95183ad81bd0f02d7df88a5693aba173a1722
[ "Apache-2.0" ]
permissive
lcyanxi/jdk8
be07ce687ca610c9e543bf3c1168be8228c1f2b3
4f4c2d72670a30dafaf9bb09b908d4da79119cf6
refs/heads/master
2022-05-25T18:11:28.236578
2022-05-03T15:28:01
2022-05-03T15:28:01
228,209,646
0
0
Apache-2.0
2022-05-03T15:28:03
2019-12-15T15:49:24
Java
UTF-8
Java
false
false
8,078
java
/* * Copyright (c) 1998, 2013, 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. */ package javax.swing.plaf.metal; import java.awt.*; import java.awt.event.*; import javax.swing.plaf.basic.*; import javax.swing.*; import javax.swing.plaf.*; import javax.swing.border.*; import java.io.Serializable; /** * JButton subclass to help out MetalComboBoxUI * <p> * <strong>Warning:</strong> * Serialized objects of this class will not be compatible with * future Swing releases. The current serialization support is * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans&trade; * has been added to the <code>java.beans</code> package. * Please see {@link java.beans.XMLEncoder}. * * @see MetalComboBoxButton * @author Tom Santos */ public class MetalComboBoxButton extends JButton { protected JComboBox comboBox; protected JList listBox; protected CellRendererPane rendererPane; protected Icon comboIcon; protected boolean iconOnly = false; public final JComboBox getComboBox() { return comboBox;} public final void setComboBox( JComboBox cb ) { comboBox = cb;} public final Icon getComboIcon() { return comboIcon;} public final void setComboIcon( Icon i ) { comboIcon = i;} public final boolean isIconOnly() { return iconOnly;} public final void setIconOnly( boolean isIconOnly ) { iconOnly = isIconOnly;} MetalComboBoxButton() { super( "" ); DefaultButtonModel model = new DefaultButtonModel() { public void setArmed( boolean armed ) { super.setArmed( isPressed() ? true : armed ); } }; setModel( model ); } public MetalComboBoxButton( JComboBox cb, Icon i, CellRendererPane pane, JList list ) { this(); comboBox = cb; comboIcon = i; rendererPane = pane; listBox = list; setEnabled( comboBox.isEnabled() ); } public MetalComboBoxButton( JComboBox cb, Icon i, boolean onlyIcon, CellRendererPane pane, JList list ) { this( cb, i, pane, list ); iconOnly = onlyIcon; } public boolean isFocusTraversable() { return false; } public void setEnabled(boolean enabled) { super.setEnabled(enabled); // Set the background and foreground to the combobox colors. if (enabled) { setBackground(comboBox.getBackground()); setForeground(comboBox.getForeground()); } else { setBackground(UIManager.getColor("ComboBox.disabledBackground")); setForeground(UIManager.getColor("ComboBox.disabledForeground")); } } public void paintComponent( Graphics g ) { boolean leftToRight = MetalUtils.isLeftToRight(comboBox); // Paint the button as usual super.paintComponent( g ); Insets insets = getInsets(); int width = getWidth() - (insets.left + insets.right); int height = getHeight() - (insets.top + insets.bottom); if ( height <= 0 || width <= 0 ) { return; } int left = insets.left; int top = insets.top; int right = left + (width - 1); int bottom = top + (height - 1); int iconWidth = 0; int iconLeft = (leftToRight) ? right : left; // Paint the icon if ( comboIcon != null ) { iconWidth = comboIcon.getIconWidth(); int iconHeight = comboIcon.getIconHeight(); int iconTop = 0; if ( iconOnly ) { iconLeft = (getWidth() / 2) - (iconWidth / 2); iconTop = (getHeight() / 2) - (iconHeight / 2); } else { if (leftToRight) { iconLeft = (left + (width - 1)) - iconWidth; } else { iconLeft = left; } iconTop = (top + ((bottom - top) / 2)) - (iconHeight / 2); } comboIcon.paintIcon( this, g, iconLeft, iconTop ); // Paint the focus if ( comboBox.hasFocus() && (!MetalLookAndFeel.usingOcean() || comboBox.isEditable())) { g.setColor( MetalLookAndFeel.getFocusColor() ); g.drawRect( left - 1, top - 1, width + 3, height + 1 ); } } if (MetalLookAndFeel.usingOcean()) { // With Ocean the button only paints the arrow, bail. return; } // Let the renderer paint if ( ! iconOnly && comboBox != null ) { ListCellRenderer renderer = comboBox.getRenderer(); Component c; boolean renderPressed = getModel().isPressed(); c = renderer.getListCellRendererComponent(listBox, comboBox.getSelectedItem(), -1, renderPressed, false); c.setFont(rendererPane.getFont()); if ( model.isArmed() && model.isPressed() ) { if ( isOpaque() ) { c.setBackground(UIManager.getColor("Button.select")); } c.setForeground(comboBox.getForeground()); } else if ( !comboBox.isEnabled() ) { if ( isOpaque() ) { c.setBackground(UIManager.getColor("ComboBox.disabledBackground")); } c.setForeground(UIManager.getColor("ComboBox.disabledForeground")); } else { c.setForeground(comboBox.getForeground()); c.setBackground(comboBox.getBackground()); } int cWidth = width - (insets.right + iconWidth); // Fix for 4238829: should lay out the JPanel. boolean shouldValidate = false; if (c instanceof JPanel) { shouldValidate = true; } if (leftToRight) { rendererPane.paintComponent( g, c, this, left, top, cWidth, height, shouldValidate ); } else { rendererPane.paintComponent( g, c, this, left + iconWidth, top, cWidth, height, shouldValidate ); } } } public Dimension getMinimumSize() { Dimension ret = new Dimension(); Insets insets = getInsets(); ret.width = insets.left + getComboIcon().getIconWidth() + insets.right; ret.height = insets.bottom + getComboIcon().getIconHeight() + insets.top; return ret; } }
[ "2757710657@qq.com" ]
2757710657@qq.com
dbd4ecb9cddad4510f9d04300e1e7fd96d4b393e
4709463257b97bd346882f595faf61b348c753ac
/nio/ByteBufferAsIntBufferL.java
8a8ea58ca2d147954bbec0090cc5b11aeb5d3c42
[]
no_license
xiaodaguan/java_1_8_025
796f1168b0f47d4d66cef7fc1259f8a360cc5cc8
b779328e08f11eddd25cb560d997c1f866b7d531
refs/heads/master
2020-12-30T15:42:20.078667
2017-05-13T10:47:57
2017-05-13T10:47:57
91,167,508
0
0
null
null
null
null
UTF-8
Java
false
false
5,000
java
/* */ package java.nio; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ class ByteBufferAsIntBufferL /* */ extends IntBuffer /* */ { /* */ protected final ByteBuffer bb; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ protected final int offset; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ ByteBufferAsIntBufferL(ByteBuffer paramByteBuffer) /* */ { /* 44 */ super(-1, 0, paramByteBuffer /* 45 */ .remaining() >> 2, paramByteBuffer /* 46 */ .remaining() >> 2); /* 47 */ this.bb = paramByteBuffer; /* */ /* 49 */ int i = capacity(); /* 50 */ limit(i); /* 51 */ int j = position(); /* 52 */ assert (j <= i); /* 53 */ this.offset = j; /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ ByteBufferAsIntBufferL(ByteBuffer paramByteBuffer, int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5) /* */ { /* 64 */ super(paramInt1, paramInt2, paramInt3, paramInt4); /* 65 */ this.bb = paramByteBuffer; /* 66 */ this.offset = paramInt5; /* */ } /* */ /* */ /* */ /* */ public IntBuffer slice() /* */ { /* 73 */ int i = position(); /* 74 */ int j = limit(); /* 75 */ assert (i <= j); /* 76 */ int k = i <= j ? j - i : 0; /* 77 */ int m = (i << 2) + this.offset; /* 78 */ assert (m >= 0); /* 79 */ return new ByteBufferAsIntBufferL(this.bb, -1, 0, k, k, m); /* */ } /* */ /* */ /* */ /* */ /* */ public IntBuffer duplicate() /* */ { /* 87 */ return new ByteBufferAsIntBufferL(this.bb, markValue(), position(), limit(), capacity(), this.offset); /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ public IntBuffer asReadOnlyBuffer() /* */ { /* 97 */ return new ByteBufferAsIntBufferRL(this.bb, markValue(), position(), limit(), capacity(), this.offset); /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ protected int ix(int paramInt) /* */ { /* 107 */ return (paramInt << 2) + this.offset; /* */ } /* */ /* */ public int get() { /* 111 */ return Bits.getIntL(this.bb, ix(nextGetIndex())); /* */ } /* */ /* */ public int get(int paramInt) { /* 115 */ return Bits.getIntL(this.bb, ix(checkIndex(paramInt))); /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public IntBuffer put(int paramInt) /* */ { /* 128 */ Bits.putIntL(this.bb, ix(nextPutIndex()), paramInt); /* 129 */ return this; /* */ } /* */ /* */ /* */ /* */ /* */ public IntBuffer put(int paramInt1, int paramInt2) /* */ { /* 137 */ Bits.putIntL(this.bb, ix(checkIndex(paramInt1)), paramInt2); /* 138 */ return this; /* */ } /* */ /* */ /* */ /* */ /* */ public IntBuffer compact() /* */ { /* 146 */ int i = position(); /* 147 */ int j = limit(); /* 148 */ assert (i <= j); /* 149 */ int k = i <= j ? j - i : 0; /* */ /* 151 */ ByteBuffer localByteBuffer1 = this.bb.duplicate(); /* 152 */ localByteBuffer1.limit(ix(j)); /* 153 */ localByteBuffer1.position(ix(0)); /* 154 */ ByteBuffer localByteBuffer2 = localByteBuffer1.slice(); /* 155 */ localByteBuffer2.position(i << 2); /* 156 */ localByteBuffer2.compact(); /* 157 */ position(k); /* 158 */ limit(capacity()); /* 159 */ discardMark(); /* 160 */ return this; /* */ } /* */ /* */ /* */ /* */ public boolean isDirect() /* */ { /* 167 */ return this.bb.isDirect(); /* */ } /* */ /* */ public boolean isReadOnly() { /* 171 */ return false; /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public ByteOrder order() /* */ { /* 221 */ return ByteOrder.LITTLE_ENDIAN; /* */ } /* */ } /* Location: /Users/guanxiaoda/Documents/workspace/rt.jar!/java/nio/ByteBufferAsIntBufferL.class * Java compiler version: 8 (52.0) * JD-Core Version: 0.7.1 */
[ "xiaodaguan@gmail.com" ]
xiaodaguan@gmail.com
889fd4a729bbdb0c336ecdc5e041e72d924e7620
833a7628cf19869a01eb77afd6a50126e81bf685
/app/src/main/java/com/dream/moka/CumstomView/numberview/VirtualKeyboardView.java
b787af5d7340fec90f105f307c5e66f0f98e2d13
[]
no_license
nobbuuu/MoCarUser
bddda855cb16b701e8598dc4889b62c26bc26533
8df4776b394ffab3c83355f986f70aca8a69b06c
refs/heads/master
2020-03-23T08:57:03.621073
2018-07-17T23:55:55
2018-07-17T23:55:55
141,357,758
0
1
null
null
null
null
UTF-8
Java
false
false
2,758
java
package com.dream.moka.CumstomView.numberview; import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.widget.GridView; import android.widget.RelativeLayout; import android.widget.TextView; import com.dream.moka.R; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; /** * 虚拟键盘 */ public class VirtualKeyboardView extends RelativeLayout { Context context; //因为就6个输入框不会变了,用数组内存申请固定空间,比List省空间(自己认为) private GridView gridView; //用GrideView布局键盘,其实并不是真正的键盘,只是模拟键盘的功能 private ArrayList<Map<String, String>> valueList; //有人可能有疑问,为何这里不用数组了? //因为要用Adapter中适配,用数组不能往adapter中填充 private RelativeLayout layoutBack; private TextView cancle,yes; public VirtualKeyboardView(Context context) { this(context, null); } public VirtualKeyboardView(Context context, AttributeSet attrs) { super(context, attrs); this.context = context; View view = View.inflate(context, R.layout.layout_virtual_keyboard, null); valueList = new ArrayList<>(); // layoutBack = (RelativeLayout) view.findViewById(R.id.layoutBack); gridView = (GridView) view.findViewById(R.id.gv_keybord); cancle = (TextView) view.findViewById(R.id.cancle); yes = (TextView) view.findViewById(R.id.yes); initValueList(); setupView(); addView(view); //必须要,不然不显示控件 } // public RelativeLayout getLayoutBack() { // return layoutBack; // } public ArrayList<Map<String, String>> getValueList() { return valueList; } private void initValueList() { // 初始化按钮上应该显示的数字 for (int i = 1; i < 13; i++) { Map<String, String> map = new HashMap<>(); if (i < 10) { map.put("name", String.valueOf(i)); } else if (i == 10) { map.put("name", "."); } else if (i == 11) { map.put("name", String.valueOf(0)); } else if (i == 12) { map.put("name", ""); } valueList.add(map); } } public GridView getGridView() { return gridView; } public TextView getCancle() { return cancle; } public TextView getYes() { return yes; } private void setupView() { KeyBoardAdapter keyBoardAdapter = new KeyBoardAdapter(context, valueList); gridView.setAdapter(keyBoardAdapter); } }
[ "1184824553@qq.com" ]
1184824553@qq.com
c4d5c598ffaa1c98eeaf20117810f306eef6b91b
022980735384919a0e9084f57ea2f495b10c0d12
/src/ext_cttdt_tk/ext-impl/src/com/ext/portal/util/WebKeysExt.java
3d76855240bde5a3649a510cd94b75bec20afbd4
[]
no_license
thaond/nsscttdt
474d8e359f899d4ea6f48dd46ccd19bbcf34b73a
ae7dacc924efe578ce655ddfc455d10c953abbac
refs/heads/master
2021-01-10T03:00:24.086974
2011-02-19T09:18:34
2011-02-19T09:18:34
50,081,202
0
0
null
null
null
null
UTF-8
Java
false
false
182
java
package com.ext.portal.util; public class WebKeysExt implements com.liferay.portal.kernel.util.WebKeys { public static final String MEETINGDETAILWEEK = "MEETINGDETAILWEEK"; }
[ "nguyentanmo@843501e3-6f96-e689-5e61-164601347e4e" ]
nguyentanmo@843501e3-6f96-e689-5e61-164601347e4e
1054f958c9ce5fd71c4bf8156b83d04482e4a402
aa0982853e7af5d78c5990fb9147d1f709545279
/sunline.suncard.sde/src/cn/sunline/suncard/sde/bs/entity/BsPluginlog.java
9eae08cc480e9332de0f2681f6cd9d3ec0515440
[]
no_license
manzhizhen/RCP-Projects
72e0044870e844f61d81af5522382cfdf8104940
5be9aa2226e59aba1b30544518ff594a7a6fa4d5
refs/heads/master
2020-06-06T16:53:55.349064
2014-12-09T23:41:39
2014-12-09T23:41:39
27,771,971
2
1
null
null
null
null
UTF-8
Java
false
false
3,986
java
package cn.sunline.suncard.sde.bs.entity; import java.sql.Timestamp; import javax.persistence.AttributeOverride; import javax.persistence.AttributeOverrides; import javax.persistence.Column; import javax.persistence.EmbeddedId; import javax.persistence.Entity; import javax.persistence.Table; /** * BsPluginlog entity. @author MyEclipse Persistence Tools */ @Entity @Table(name = "BS_PLUGINLOG") public class BsPluginlog implements java.io.Serializable { /** * */ private static final long serialVersionUID = 1L; // Fields private BsPluginlogId id; private String pluginId; private String processType; private Timestamp processDate; private String srcPluginVer; private String pluginVer; private String patchId; private String replaceUrl; private Timestamp modiDate; private String modiUser; private Integer version; // Constructors /** default constructor */ public BsPluginlog() { } /** minimal constructor */ public BsPluginlog(BsPluginlogId id) { this.id = id; } /** full constructor */ public BsPluginlog(BsPluginlogId id, String pluginId, String processType, Timestamp processDate, String srcPluginVer, String pluginVer, String patchId, String replaceUrl, Timestamp modiDate, String modiUser, Integer version) { this.id = id; this.pluginId = pluginId; this.processType = processType; this.processDate = processDate; this.srcPluginVer = srcPluginVer; this.pluginVer = pluginVer; this.patchId = patchId; this.replaceUrl = replaceUrl; this.modiDate = modiDate; this.modiUser = modiUser; this.version = version; } // Property accessors @EmbeddedId @AttributeOverrides({ @AttributeOverride(name = "bankorgId", column = @Column(name = "BANKORG_ID", nullable = false, precision = 10, scale = 0)), @AttributeOverride(name = "pcId", column = @Column(name = "PC_ID", nullable = false, length = 20)), @AttributeOverride(name = "logSeq", column = @Column(name = "LOG_SEQ", nullable = false, precision = 10, scale = 0)) }) public BsPluginlogId getId() { return this.id; } public void setId(BsPluginlogId id) { this.id = id; } @Column(name = "PLUGIN_ID", length = 10) public String getPluginId() { return this.pluginId; } public void setPluginId(String pluginId) { this.pluginId = pluginId; } @Column(name = "PROCESS_TYPE", length = 1) public String getProcessType() { return this.processType; } public void setProcessType(String processType) { this.processType = processType; } @Column(name = "PROCESS_DATE", length = 0) public Timestamp getProcessDate() { return this.processDate; } public void setProcessDate(Timestamp processDate) { this.processDate = processDate; } @Column(name = "SRC_PLUGIN_VER", length = 10) public String getSrcPluginVer() { return this.srcPluginVer; } public void setSrcPluginVer(String srcPluginVer) { this.srcPluginVer = srcPluginVer; } @Column(name = "PLUGIN_VER", length = 10) public String getPluginVer() { return this.pluginVer; } public void setPluginVer(String pluginVer) { this.pluginVer = pluginVer; } @Column(name = "PATCH_ID", length = 10) public String getPatchId() { return this.patchId; } public void setPatchId(String patchId) { this.patchId = patchId; } @Column(name = "REPLACE_URL", length = 40) public String getReplaceUrl() { return this.replaceUrl; } public void setReplaceUrl(String replaceUrl) { this.replaceUrl = replaceUrl; } @Column(name = "MODI_DATE", length = 0) public Timestamp getModiDate() { return this.modiDate; } public void setModiDate(Timestamp modiDate) { this.modiDate = modiDate; } @Column(name = "MODI_USER", length = 64) public String getModiUser() { return this.modiUser; } public void setModiUser(String modiUser) { this.modiUser = modiUser; } @Column(name = "VERSION", precision = 8, scale = 0) public Integer getVersion() { return this.version; } public void setVersion(Integer version) { this.version = version; } }
[ "manzhizhen@163.com" ]
manzhizhen@163.com
2385d43869fa0964bdd1a3ebc370f3a11adc11d4
128eb90ce7b21a7ce621524dfad2402e5e32a1e8
/laravel-converted/src/main/java/com/project/convertedCode/includes/vendor/composer/file_autoload_files_php.java
27d729c14c2dc6035a77db22f5acc8d583f899a8
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
RuntimeConverter/RuntimeConverterLaravelJava
657b4c73085b4e34fe4404a53277e056cf9094ba
7ae848744fbcd993122347ffac853925ea4ea3b9
refs/heads/master
2020-04-12T17:22:30.345589
2018-12-22T10:32:34
2018-12-22T10:32:34
162,642,356
0
0
null
null
null
null
UTF-8
Java
false
false
5,898
java
package com.project.convertedCode.includes.vendor.composer; import com.runtimeconverter.runtime.RuntimeStack; import com.runtimeconverter.runtime.interfaces.ContextConstants; import com.runtimeconverter.runtime.includes.RuntimeIncludable; import com.runtimeconverter.runtime.includes.IncludeEventException; import com.runtimeconverter.runtime.classes.RuntimeClassBase; import com.runtimeconverter.runtime.RuntimeEnv; import com.runtimeconverter.runtime.interfaces.UpdateRuntimeScopeInterface; import com.runtimeconverter.runtime.ZVal; import com.runtimeconverter.runtime.nativeFunctions.file.function_dirname; import com.runtimeconverter.runtime.arrays.ZPair; import static com.runtimeconverter.runtime.ZVal.toStringR; /* Converted with The Runtime Converter (runtimeconverter.com) vendor/composer/autoload_files.php */ public class file_autoload_files_php implements RuntimeIncludable { public static final file_autoload_files_php instance = new file_autoload_files_php(); public final void include(RuntimeEnv env, RuntimeStack stack) throws IncludeEventException { Scope233 scope = new Scope233(); stack.pushScope(scope); this.include(env, stack, scope); stack.popScope(); } public final void include(RuntimeEnv env, RuntimeStack stack, Scope233 scope) throws IncludeEventException { scope.vendorDir = function_dirname .f .env(env) .call( function_dirname .f .env(env) .call( env.addRootFilesystemPrefix( "/vendor/composer/autoload_files.php")) .value()) .value(); scope.baseDir = function_dirname.f.env(env).call(scope.vendorDir).value(); throw new IncludeEventException( ZVal.assign( ZVal.newArray( new ZPair( "0e6d7bf4a5811bfa5cf40c5ccd6fae6a", toStringR(scope.vendorDir, env) + "/symfony/polyfill-mbstring/bootstrap.php"), new ZPair( "25072dd6e2470089de65ae7bf11d3109", toStringR(scope.vendorDir, env) + "/symfony/polyfill-php72/bootstrap.php"), new ZPair( "667aeda72477189d0494fecd327c3641", toStringR(scope.vendorDir, env) + "/symfony/var-dumper/Resources/functions/dump.php"), new ZPair( "320cde22f66dd4f5d3fd621d3e88b98f", toStringR(scope.vendorDir, env) + "/symfony/polyfill-ctype/bootstrap.php"), new ZPair( "2c102faa651ef8ea5874edb585946bce", toStringR(scope.vendorDir, env) + "/swiftmailer/swiftmailer/lib/swift_required.php"), new ZPair( "5255c38a0faeba867671b61dfda6d864", toStringR(scope.vendorDir, env) + "/paragonie/random_compat/lib/random.php"), new ZPair( "f0906e6318348a765ffb6eb24e0d0938", toStringR(scope.vendorDir, env) + "/laravel/framework/src/Illuminate/Foundation/helpers.php"), new ZPair( "58571171fd5812e6e447dce228f52f4d", toStringR(scope.vendorDir, env) + "/laravel/framework/src/Illuminate/Support/helpers.php"), new ZPair( "6124b4c8570aa390c21fafd04a26c69f", toStringR(scope.vendorDir, env) + "/myclabs/deep-copy/src/DeepCopy/deep_copy.php"), new ZPair( "801c31d8ed748cfa537fa45402288c95", toStringR(scope.vendorDir, env) + "/psy/psysh/src/functions.php")))); } private static final ContextConstants runtimeConverterContextContantsInstance = new ContextConstants() .setDir("/vendor/composer") .setFile("/vendor/composer/autoload_files.php"); public ContextConstants getContextConstants() { return runtimeConverterContextContantsInstance; } private static class Scope233 implements UpdateRuntimeScopeInterface { Object vendorDir; Object baseDir; public void updateStack(RuntimeStack stack) { stack.setVariable("vendorDir", this.vendorDir); stack.setVariable("baseDir", this.baseDir); } public void updateScope(RuntimeStack stack) { this.vendorDir = stack.getVariable("vendorDir"); this.baseDir = stack.getVariable("baseDir"); } } }
[ "git@runtimeconverter.com" ]
git@runtimeconverter.com
27953f646b31c8ab35f8f6df6934f0da6817a005
fe0b6d0d4c14965808a4b38aa91d0c5cef1f69f6
/languages/activitydiagram/org.gemoc.activitydiagram.sequential.xactivitydiagram.scenario/src/org/gemoc/activitydiagram/sequential/xactivitydiagram/scenario/xactivitydiagramscenario/XActivityDiagramProperty/impl/IntegerComparisonExpressionPropertyImpl.java
24d05408b656353e8ad4a44f2a8c5bd9ecf5c747
[]
no_license
tetrabox/examples-behavioral-interface
f05b9bf1d3a8414ffc5eef3560f72f3719e09f28
3a5df4b8ec4ed13a39712269487f07d09479ec99
refs/heads/master
2020-12-02T16:23:03.869890
2019-10-22T08:59:20
2019-10-22T08:59:20
96,529,344
0
1
null
null
null
null
UTF-8
Java
false
false
1,377
java
/** */ package org.gemoc.activitydiagram.sequential.xactivitydiagram.scenario.xactivitydiagramscenario.XActivityDiagramProperty.impl; import org.eclipse.emf.ecore.EClass; import org.gemoc.activitydiagram.sequential.xactivitydiagram.activitydiagram.IntegerComparisonExpression; import org.gemoc.activitydiagram.sequential.xactivitydiagram.scenario.xactivitydiagramscenario.XActivityDiagramProperty.IntegerComparisonExpressionProperty; import org.gemoc.activitydiagram.sequential.xactivitydiagram.scenario.xactivitydiagramscenario.XActivityDiagramProperty.XActivityDiagramPropertyPackage; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Integer Comparison Expression Property</b></em>'. * <!-- end-user-doc --> * * @generated */ public abstract class IntegerComparisonExpressionPropertyImpl<T extends IntegerComparisonExpression> extends BooleanExpressionPropertyImpl<T> implements IntegerComparisonExpressionProperty<T> { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected IntegerComparisonExpressionPropertyImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return XActivityDiagramPropertyPackage.eINSTANCE.getIntegerComparisonExpressionProperty(); } } //IntegerComparisonExpressionPropertyImpl
[ "dorian.leroy@irisa.fr" ]
dorian.leroy@irisa.fr
e907a68d87f69fe19b92a995429b28be587ee6c5
6c805ba587a3cac1f3a4cbeba0d95f1b711b639e
/wezard-pay/src/main/java/com/natsumes/wezard/PayApplication.java
a062d9d4c40b55de36c9281f153fae550a2a2e21
[ "Apache-2.0" ]
permissive
SpikeLavender/nastume
bb9580a87c7ca55ed0221c56f711326b2a51dcae
9d0bc8ecddf6f6d192bad36c7efea45ae09b0c99
refs/heads/master
2023-03-20T01:51:57.758074
2021-03-07T14:47:54
2021-03-07T14:47:54
244,695,144
0
0
Apache-2.0
2020-07-04T02:13:07
2020-03-03T17:09:43
Java
UTF-8
Java
false
false
646
java
package com.natsumes.wezard; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.cloud.context.config.annotation.RefreshScope; /** * @author hetengjiao * @date 2020-12-06 */ @SpringBootApplication @EnableDiscoveryClient @RefreshScope @MapperScan("com.natsumes.wezard.mapper") public class PayApplication { public static void main(String[] args) { SpringApplication.run(PayApplication.class, args); } }
[ "hetengjiao@chinamobile.com" ]
hetengjiao@chinamobile.com
30a8831f28f0294164faba66c8c30959f84e8e39
7b969dea4cad153c8c1296434dec2c8f3daea517
/fixflow-expand/src/com/founder/fix/fixflow/expand/identity/UserDefinitionImpl.java
e65577d9a9095b011989d8ea17ecf1fdbb3fd0e3
[]
no_license
eseawind/fixflow
7bf848f2108f945c3cbe5dca559934df3451a5d1
61bbebec4b3238401271d143394160d8cdfa83e3
refs/heads/master
2021-01-18T11:17:07.727356
2013-08-01T03:05:22
2013-08-01T03:05:22
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,839
java
package com.founder.fix.fixflow.expand.identity; import java.util.ArrayList; import java.util.List; import java.util.Map; import com.founder.fix.fixflow.core.cache.CacheHandler; import com.founder.fix.fixflow.core.exception.FixFlowException; import com.founder.fix.fixflow.core.impl.Context; import com.founder.fix.fixflow.core.impl.db.SqlCommand; import com.founder.fix.fixflow.core.impl.identity.UserDefinition; import com.founder.fix.fixflow.core.impl.identity.UserTo; import com.founder.fix.fixflow.core.impl.util.StringUtil; public class UserDefinitionImpl extends UserDefinition { @Override public UserTo findUserByUserId(String userId) { if (userId == null || userId.equals("")) { throw new FixFlowException("查询的用户编号不能为空"); } CacheHandler cache = Context.getProcessEngineConfiguration().getCacheHandler(); Object cacheData = cache.getCacheData("user_findUserByUserId_" + userId); if (cacheData != null) { return (UserTo) cacheData; } else { String userIdField=getUserInfoConfig().getUserIdField(); String userNameField=getUserInfoConfig().getUserNameField(); String sqlText=getUserInfoConfig().getSqlText(); SqlCommand sqlCommand = getSqlCommand(); List<Object> objectParamWhere = new ArrayList<Object>(); objectParamWhere.add(userId); List<Map<String, Object>> dataObj = sqlCommand.queryForList("SELECT USERTABLE.* FROM ("+sqlText+") USERTABLE where USERTABLE."+userIdField+"=?", objectParamWhere); if(dataObj.size()==0){ return null; } if (dataObj.get(0).get(userIdField) == null) { return null; } UserTo userTo = new UserTo(userId, StringUtil.getString(dataObj.get(0).get(userNameField)), dataObj.get(0)); cache.putCacheData("user_findUserByUserId_"+userId, userTo); return userTo; } } }
[ "kenshin.net@gmail.com" ]
kenshin.net@gmail.com
ecbcfc4fa328a558a4ee65e09bd4196ca71d8da3
aa5658734ba85d511c195f985dcc8b51a06b4544
/library/src/main/java/com/bumptech/glide/manager/PostMConnectivityMonitor.java
dc9c119a1ca02909b67ebb2e67557191810d21b4
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "Apache-2.0", "BSD-2-Clause-Views", "Xfig", "MIT", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jiyewushen/glide
f89e9d0698b628598046e983b8bcd50733b7cc77
1bcf15b13a26950363fc77fd81cb7458aefea973
refs/heads/master
2022-11-18T03:12:20.799223
2020-07-18T12:33:21
2020-07-18T12:33:21
263,917,492
0
0
NOASSERTION
2020-05-14T13:06:32
2020-05-14T13:06:32
null
UTF-8
Java
false
false
5,141
java
package com.bumptech.glide.manager; import android.annotation.SuppressLint; import android.content.Context; import android.net.ConnectivityManager; import android.net.Network; import android.net.NetworkCapabilities; import android.net.NetworkRequest; import android.os.Build; import android.os.Build.VERSION_CODES; import android.util.Log; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.RequiresApi; import com.bumptech.glide.util.Preconditions; import com.bumptech.glide.util.Synthetic; /** * A {@link com.bumptech.glide.manager.ConnectivityMonitor} implementation that use {@link * ConnectivityManager.NetworkCallback} and {@link ConnectivityManager#getNetworkCapabilities} to * perceive connectivity changes. */ @RequiresApi(api = VERSION_CODES.M) public class PostMConnectivityMonitor implements ConnectivityMonitor { private static final String TAG = "ConnectivityMonitor"; private final Context context; @SuppressWarnings("WeakerAccess") @Synthetic final ConnectivityListener listener; @SuppressWarnings("WeakerAccess") @Synthetic boolean isConnected; private boolean isRegistered; @SuppressWarnings("WeakerAccess") @Synthetic final ConnectivityManager.NetworkCallback callback; PostMConnectivityMonitor(@NonNull Context context, @NonNull ConnectivityListener listener) { this.context = context.getApplicationContext(); this.listener = listener; callback = new ConnectivityManager.NetworkCallback() { @Override public void onAvailable(@NonNull Network network) { onConnectivityChanged(true); } @Override public void onLost(@NonNull Network network) { onConnectivityChanged(false); } @Override public void onCapabilitiesChanged( @NonNull Network network, @NonNull NetworkCapabilities networkCapabilities) { boolean isConnected = checkNetworkConnected(networkCapabilities); onConnectivityChanged(isConnected); } }; } @SuppressWarnings("WeakerAccess") @Synthetic void onConnectivityChanged(boolean isConnected) { boolean wasConnected = this.isConnected; this.isConnected = isConnected; if (wasConnected != isConnected) { if (Log.isLoggable(TAG, Log.DEBUG)) { Log.d(TAG, "connectivity changed, isConnected: " + isConnected); } listener.onConnectivityChanged(isConnected); } } @SuppressLint("MissingPermission") public void register() { if (isRegistered) { return; } ConnectivityManager connectivityManager = Preconditions.checkNotNull( (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE)); // Initialize isConnected. isConnected = isConnected(connectivityManager); try { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { connectivityManager.registerDefaultNetworkCallback(callback); } else { NetworkRequest request = new NetworkRequest.Builder().build(); connectivityManager.registerNetworkCallback(request, callback); } isRegistered = true; } catch (RuntimeException e) { if (Log.isLoggable(TAG, Log.WARN)) { Log.w(TAG, "Failed to register", e); } } } public void unregister() { if (!isRegistered) { return; } ConnectivityManager connectivityManager = Preconditions.checkNotNull( (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE)); try { connectivityManager.unregisterNetworkCallback(callback); } catch (RuntimeException e) { // callback was registered more than once if (Log.isLoggable(TAG, Log.WARN)) { Log.w(TAG, "already unregister", e); } } isRegistered = false; } @SuppressWarnings("WeakerAccess") @Synthetic // Permissions are checked in the factory instead. @SuppressLint("MissingPermission") boolean isConnected(@NonNull ConnectivityManager connectivityManager) { NetworkCapabilities networkCapabilities; try { networkCapabilities = connectivityManager.getNetworkCapabilities(connectivityManager.getActiveNetwork()); } catch (RuntimeException e) { // getNetworkCapabilities may throw RemoteException that is wrapped by RuntimeException if (Log.isLoggable(TAG, Log.WARN)) { Log.w(TAG, "Failed to determine connectivity status when connectivity changed", e); } // Default to true; return true; } return checkNetworkConnected(networkCapabilities); } public static boolean checkNetworkConnected(@Nullable NetworkCapabilities networkCapabilities) { return networkCapabilities != null && networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) && networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED); } @Override public void onStart() { register(); } @Override public void onStop() { unregister(); } @Override public void onDestroy() {} }
[ "1308370202@qq.com" ]
1308370202@qq.com
654f84dbfd352ca9bced3857db8e58364963444c
c35500eea5b33131d911c05de69ec14184eda679
/integration-tests/SoaTestServiceV1Impl/src/org/ebayopensource/turmeric/soa/v1/services/testservice/impl/SoaTestServiceV1Impl.java
b848c224480e3b8a21a0c3bbde4d9ec1db872127
[ "Apache-2.0" ]
permissive
ramananandh/MyPublicRepo
42b9fd2c1fce41fd0de9b828531aa4ada2c75185
686129c380f438f0858428cc19c2ebc7f5e6b13f
refs/heads/master
2020-06-06T17:49:41.818826
2011-08-29T06:34:07
2011-08-29T06:34:07
1,922,268
0
1
null
null
null
null
UTF-8
Java
false
false
1,775
java
/******************************************************************************* * Copyright (c) 2006-2010 eBay Inc. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * *******************************************************************************/ package org.ebayopensource.turmeric.soa.v1.services.testservice.impl; import org.ebayopensource.turmeric.common.v1.types.AckValue; import org.ebayopensource.turmeric.soa.v1.services.GetVersionRequest; import org.ebayopensource.turmeric.soa.v1.services.GetVersionResponse; import org.ebayopensource.turmeric.soa.v1.services.NewOperationRequest; import org.ebayopensource.turmeric.soa.v1.services.NewOperationResponse; import org.ebayopensource.turmeric.soa.v1.services.testservice.SoaTestServiceV1; public class SoaTestServiceV1Impl implements SoaTestServiceV1 { public GetVersionResponse getVersion(GetVersionRequest param0) { return null; } public NewOperationResponse newOperation(NewOperationRequest param0) { // TODO Auto-generated method stub NewOperationResponse resp = new NewOperationResponse(); String clientid = "", siteid = "", lang = ""; if (param0.getSiteId() != null) { siteid = "siteid - " + param0.getSiteId(); } if (param0.getClientId() != null) { clientid = "clientid - " + param0.getClientId(); } if (param0.getLanguage() != null) { lang = "lang - " + param0.getLanguage(); } resp.setOutput("Call reached IMPL as schemaValidation went thru fine." + siteid + clientid + lang); resp.setAck(AckValue.SUCCESS); return resp; } }
[ "anav@ebay.com" ]
anav@ebay.com
bddd25748b1f7dbc58bd83f07d789be25448df9b
327be1427daad81689a5aff5a3569f5a48783f67
/src/main/java/org/edec/model/AttendanceModel.java
58daddac6c3f21c524511809da6cac6683709182
[]
no_license
luninok/curriculum
7e1a0ccee1ba71f382559543fd62a13ea724490a
80e84ec2eb88490260d278e8890a979a8e8d32eb
refs/heads/master
2021-07-11T08:11:48.644816
2018-12-12T08:02:44
2018-12-12T08:02:44
147,468,888
0
0
null
2019-02-05T03:54:08
2018-09-05T06:14:49
Java
UTF-8
Java
false
false
1,854
java
package org.edec.model; import java.util.Date; public class AttendanceModel { private Boolean lesson; private Date visitDate; private Integer attend; private Integer pos; private Long idAttendance; private Long idSSS; private Long idLGSS; private String subjectname; public AttendanceModel () { } public AttendanceModel (AttendanceModel attendance) { this.idLGSS = attendance.getIdLGSS(); this.subjectname = attendance.getSubjectname(); this.pos = attendance.getPos(); this.visitDate = attendance.getVisitDate(); this.lesson = attendance.getLesson(); } public Boolean getLesson () { return lesson; } public void setLesson (Boolean lesson) { this.lesson = lesson; } public Date getVisitDate () { return visitDate; } public void setVisitDate (Date visitDate) { this.visitDate = visitDate; } public Integer getAttend () { return attend; } public void setAttend (Integer attend) { this.attend = attend; } public Integer getPos () { return pos; } public void setPos (Integer pos) { this.pos = pos; } public Long getIdAttendance () { return idAttendance; } public void setIdAttendance (Long idAttendance) { this.idAttendance = idAttendance; } public Long getIdSSS () { return idSSS; } public void setIdSSS (Long idSSS) { this.idSSS = idSSS; } public Long getIdLGSS () { return idLGSS; } public void setIdLGSS (Long idLGSS) { this.idLGSS = idLGSS; } public String getSubjectname () { return subjectname; } public void setSubjectname (String subjectname) { this.subjectname = subjectname; } }
[ "luninok@list.ru" ]
luninok@list.ru
0e45f9cc15f7fa407efe4f4d62bc811d68b9ad85
9ea09cf1c6c2f64fa94000d91ef25c8597f63f6c
/src/it/java/de/bsd/mp_metrics/it/MPUnitsTest.java
b3ba5f5c2a95e4478bbd0d7321bb4299df0061d6
[]
no_license
pilhuhn/mp-metrics
905bf977e991d47bc017950af9e0e93a1739027b
3afe9132864f3d47a58e23a823f1aeaf3c492ae6
refs/heads/master
2021-01-20T08:42:04.005790
2017-09-15T13:01:33
2017-09-15T13:01:33
90,182,866
2
1
null
null
null
null
UTF-8
Java
false
false
2,572
java
/* * Copyright 2017 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package de.bsd.mp_metrics.it; import de.bsd.mp_metrics.MpMUnit; import org.junit.Test; /** * @author hrupp */ public class MPUnitsTest { @Test public void testScaleMinutesToSeconds() { MpMUnit foo = MpMUnit.MINUTE; double out = MpMUnit.scaleToBase(1, foo); assert out == 60; } @Test public void testScaleHoursToSeconds() { MpMUnit foo = MpMUnit.HOUR; double out = MpMUnit.scaleToBase(3, foo); assert out == 3*3600; } @Test public void testScaleMillisecondsToSeconds() { MpMUnit foo = MpMUnit.MILLISECOND; double out = MpMUnit.scaleToBase(3, foo); assert out == 0.003 : "Out was " + out; } @Test public void testScaleNanosecondsToSeconds() { MpMUnit foo = MpMUnit.NANOSECOND; double out = MpMUnit.scaleToBase(3, foo); assert out == 0.000_000_003 : "Out was " + out; } @Test public void testScaleMegabyteToByte() { MpMUnit foo = MpMUnit.MEGABYTE; double out = MpMUnit.scaleToBase(1, foo); assert out == 1024*1024; } @Test public void testFindBaseUnit1() { MpMUnit foo = MpMUnit.HOUR; MpMUnit out = MpMUnit.getBaseUnit(foo); assert out.equals(MpMUnit.SECOND); String promUnit = MpMUnit.getBaseUnitAsPrometheusString(out); assert promUnit.equals("seconds"); } @Test public void testFindBaseUnit2() { MpMUnit foo = MpMUnit.MILLISECOND; MpMUnit out = MpMUnit.getBaseUnit(foo); assert out.equals(MpMUnit.SECOND); String promUnit = MpMUnit.getBaseUnitAsPrometheusString(out); assert promUnit.equals("seconds"); } @Test public void testFindBaseUnit3() { MpMUnit foo = MpMUnit.PERCENT; MpMUnit out = MpMUnit.getBaseUnit(foo); assert out.equals(MpMUnit.PERCENT); } @Test public void testFindBaseUnit4() { MpMUnit foo = MpMUnit.NONE; MpMUnit out = MpMUnit.getBaseUnit(foo); assert out.equals(MpMUnit.NONE); } }
[ "hwr@pilhuhn.de" ]
hwr@pilhuhn.de
b764bbe11166f09839eee22395fb720e9adfdee5
421f0a75a6b62c5af62f89595be61f406328113b
/generated_tests/model_seeding/107_weka-weka.filters.unsupervised.attribute.StringToNominal-0.5-7/weka/filters/unsupervised/attribute/StringToNominal_ESTest.java
5ac278816f25ae0ddffb84a42b843a59157d637e
[]
no_license
tigerqiu712/evosuite-model-seeding-empirical-evaluation
c78c4b775e5c074aaa5e6ca56bc394ec03c2c7c6
11a920b8213d9855082d3946233731c843baf7bc
refs/heads/master
2020-12-23T21:04:12.152289
2019-10-30T08:02:29
2019-10-30T08:02:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
671
java
/* * This file was automatically generated by EvoSuite * Tue Oct 29 15:51:21 GMT 2019 */ package weka.filters.unsupervised.attribute; import org.junit.Test; import static org.junit.Assert.*; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true, useJEE = true) public class StringToNominal_ESTest extends StringToNominal_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pderakhshanfar@bsr01.win.tue.nl" ]
pderakhshanfar@bsr01.win.tue.nl
1d58e649c196f63166bd39efa61236cacb07c3a8
8dadce08a76ce387608951673fc0364feaa9a06a
/flexodesktop/GUI/flexographicutils/src/main/java/org/openflexo/swing/JRadioButtonWithIcon.java
4725fd7aa68ab7c2e4437b4c74535fc880d681b2
[]
no_license
melbarra/openflexo
b8e1a97d73a9edebad198df4e776d396ae8e9a09
9b2d8efe1982ec8f64dee8c43a2e7207594853f3
refs/heads/master
2021-01-24T02:22:47.141424
2012-03-12T00:15:57
2012-03-12T00:15:57
2,756,256
0
0
null
null
null
null
UTF-8
Java
false
false
1,774
java
/* * (c) Copyright 2010-2011 AgileBirds * * This file is part of OpenFlexo. * * OpenFlexo is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * OpenFlexo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OpenFlexo. If not, see <http://www.gnu.org/licenses/>. * */ package org.openflexo.swing; import java.io.File; import java.net.MalformedURLException; import javax.swing.JRadioButton; /** * Please comment this class * * @author sguerin * */ public class JRadioButtonWithIcon extends JRadioButton { public JRadioButtonWithIcon(String text, File iconFile, boolean selected) { super(); // Define an HTML fragment with an icon on the left and text on the // right. // The elements are embedded in a 3-column table. String label = null; try { label = "<html><table cellpadding=0><tr><td><img src=\"" // The location of the icon + iconFile.toURI().toURL() + "\"></td><td width=" // The gap, in pixels, between icon and text + 3 + "><td>" // Retrieve the current label text + text + "</td></tr></table></html>"; } catch (MalformedURLException e) { // TODO Auto-generated catch block e.printStackTrace(); } setText(label); setSelected(selected); } public JRadioButtonWithIcon(String text, File iconFile) { this(text, iconFile, false); } }
[ "guillaume.polet@gmail.com" ]
guillaume.polet@gmail.com
478157c3e684b658d13c3654006d174c13f1831f
40c3de1fb1ecb65f944c2fa4e1025c31016ab541
/jrds-pcp/src/main/java/fr/jrds/pcp/Connection.java
21d27ccc3f8173cb0ee42aa1916faf58425e3b0c
[]
no_license
fbacchella/jrds
683ab9267135d083f459756b7d92296e64046912
1c2913641f35b913f5ff20e67928a71700f60418
refs/heads/master
2023-08-02T21:20:15.451991
2023-08-02T18:27:00
2023-08-02T18:27:00
2,334,806
72
45
null
2023-04-17T11:02:32
2011-09-06T14:12:03
Java
UTF-8
Java
false
false
5,647
java
package fr.jrds.pcp; import java.io.Closeable; import java.io.IOException; import java.lang.invoke.MethodHandles; import java.net.InetSocketAddress; import java.time.Instant; import java.util.Arrays; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import fr.jrds.pcp.credentials.Credential; import fr.jrds.pcp.pdu.Creds; import fr.jrds.pcp.pdu.Desc; import fr.jrds.pcp.pdu.DescReq; import fr.jrds.pcp.pdu.Fetch; import fr.jrds.pcp.pdu.Instance; import fr.jrds.pcp.pdu.InstanceReq; import fr.jrds.pcp.pdu.PnmsIds; import fr.jrds.pcp.pdu.PnmsNames; import fr.jrds.pcp.pdu.PnmsTraverse; import fr.jrds.pcp.pdu.Profile; import fr.jrds.pcp.pdu.Result; import fr.jrds.pcp.pdu.Start; public class Connection implements Closeable { @FunctionalInterface public interface Waiter { void waitFor(int op); } static private final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); private final ProtocolHandler phandler; public Connection(InetSocketAddress isa, long timeout) throws IOException, InterruptedException { this(new PlainTcpTransport(isa, timeout)); logger.debug("Connected to {}", isa); } public Connection(Transport trp) { phandler = new ProtocolHandler(trp); } public ServerInfo startClient() throws IOException, PCPException, InterruptedException { Start start = phandler.receive(); return start.getServerInfo(); } public void startServer(ServerInfo si) throws IOException, InterruptedException { Start start = new Start(); start.setServerInfo(si); phandler.send(start); } @Override public void close() throws IOException { phandler.close(); } public void authentication(Credential nc) throws IOException, InterruptedException { Creds creds = new Creds(); creds.addCred(nc); phandler.send(creds); } public boolean checkName(int subType, String name) throws IOException, PCPException, InterruptedException { PnmsTraverse traverse = new PnmsTraverse(); traverse.setSubtype(subType); traverse.setName(name); phandler.send(traverse); PnmsNames received = phandler.receive(); PnmsNames namesPdu = (PnmsNames)received; return name.equals(namesPdu.getNames().get(0)) && namesPdu.getNames().size() == 1; } public List<String> getNames(int subType, String name) throws IOException, PCPException, InterruptedException { PnmsTraverse traverse = new PnmsTraverse(); traverse.setSubtype(subType); traverse.setName(name); phandler.send(traverse); PnmsNames received = phandler.receive(); return received.getNames(); } public Map<String, PmId> resolveName(String... names) throws IOException, PCPException, InterruptedException { PnmsNames pnames = new PnmsNames(); pnames.setStatus(0); Arrays.stream(names).forEach(pnames::add); phandler.send(pnames); PnmsIds received = phandler.receive(); Map<String, PmId> namesMapping = new LinkedHashMap<>(names.length); for (int i = 0 ; i < names.length ; i++) { namesMapping.put(names[i], received.getIds().get(i)); } return namesMapping; } public Map<String, PmId> resolveName(List<String> names) throws IOException, PCPException, InterruptedException { PnmsNames pnames = new PnmsNames(); pnames.setStatus(0); names.forEach(pnames::add); phandler.send(pnames); PnmsIds received = phandler.receive(); Map<String, PmId> namesMapping = new LinkedHashMap<>(names.size()); for (int i = 0 ; i < names.size() ; i++) { namesMapping.put(names.get(i), received.getIds().get(i)); } return namesMapping; } public void profile() throws IOException, InterruptedException { Profile p = new Profile(); phandler.send(p); } public ResultData fetchValue(List<PmId> ids) throws IOException, PCPException, InterruptedException { Fetch fetch = new Fetch(); fetch.setContextNumber(0); fetch.setTimeValue(Instant.EPOCH); ids.forEach(fetch::addPmId); phandler.send(fetch); Result r = phandler.receive(); return r.getRd(); } public ResultData fetchValue(PmId... ids) throws IOException, PCPException, InterruptedException { Fetch fetch = new Fetch(); fetch.setContextNumber(0); fetch.setTimeValue(Instant.EPOCH); Arrays.stream(ids).forEach(fetch::addPmId); phandler.send(fetch); Result r = phandler.receive(); return r.getRd(); } public PmDesc getDescription(PmId id) throws IOException, PCPException, InterruptedException { DescReq desReq = new DescReq(); desReq.setId(id); phandler.send(desReq); Desc d = phandler.receive(); return d.getDesc(); } public List<InstanceInfo> getInstance(int instanceDomain, int instance, String instanceName) throws IOException, PCPException, InterruptedException { InstanceReq ir = new InstanceReq(); ir.setInstanceDomain(instanceDomain); ir.setInstance(instance); ir.setInstanceName(instanceName); phandler.send(ir); Instance i = phandler.receive(); return i.getInstances(); } public void setFrom(int from) { phandler.setFrom(from); } public int getFrom() { return phandler.getFrom(); } }
[ "fbacchella@spamcop.net" ]
fbacchella@spamcop.net
8d6cb1841c5eda9ae4989265e0b57cb94ce1e5c4
995f73d30450a6dce6bc7145d89344b4ad6e0622
/Mate20-9.0/src/main/java/com/android/server/security/hwkeychain/DecisionUtil.java
8ce417299444174a3a7a9365a0b45df843f9f478
[]
no_license
morningblu/HWFramework
0ceb02cbe42585d0169d9b6c4964a41b436039f5
672bb34094b8780806a10ba9b1d21036fd808b8e
refs/heads/master
2023-07-29T05:26:14.603817
2021-09-03T05:23:34
2021-09-03T05:23:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,525
java
package com.android.server.security.hwkeychain; import android.app.ActivityThread; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; import android.os.AsyncTask; import android.os.Handler; import android.os.IBinder; import android.os.RemoteException; import android.util.ArrayMap; import android.util.Log; import com.huawei.common.service.IDecision; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; public final class DecisionUtil { private static final String CATEGORY_KEY = "category"; private static final String DECISION_ACTION = "com.huawei.securitymgr.intent.action.KeychainAutoFillEvent"; private static final String ID_KEY = "id"; /* access modifiers changed from: private */ public static final String TAG = DecisionUtil.class.getSimpleName(); /* access modifiers changed from: private */ public static ConcurrentHashMap<String, DecisionCallback> mCallbackList = new ConcurrentHashMap<>(); /* access modifiers changed from: private */ public static IDecision mDecisionApi = null; private static ServiceConnection mDecisionConnection = new ServiceConnection() { public void onServiceConnected(ComponentName name, IBinder service) { Log.d(DecisionUtil.TAG, "service connected."); IDecision unused = DecisionUtil.mDecisionApi = IDecision.Stub.asInterface(service); if (DecisionUtil.sExtras != null) { Log.d(DecisionUtil.TAG, "execute again."); if (DecisionUtil.executeEvent(DecisionUtil.DECISION_ACTION, DecisionUtil.sExtras)) { Log.d(DecisionUtil.TAG, "unbind service."); DecisionUtil.unbindService(ActivityThread.currentActivityThread().getSystemUiContext()); } } } public void onServiceDisconnected(ComponentName name) { IDecision unused = DecisionUtil.mDecisionApi = null; Log.i(DecisionUtil.TAG, "service disconnect."); } }; private static Handler mHander = null; /* access modifiers changed from: private */ public static Map<String, Object> sExtras; private static class DecisionAyncTask extends AsyncTask<Void, Void, Void> { private DecisionAyncTask() { } /* access modifiers changed from: protected */ public Void doInBackground(Void... voids) { DecisionUtil.bindService(ActivityThread.currentActivityThread().getSystemUiContext()); Log.d(DecisionUtil.TAG, "execute event."); if (DecisionUtil.executeEvent(DecisionUtil.DECISION_ACTION, DecisionUtil.sExtras)) { Log.d(DecisionUtil.TAG, "unbind service."); DecisionUtil.unbindService(ActivityThread.currentActivityThread().getSystemUiContext()); } return null; } } public static void bindService(Context context) { if (context == null || mDecisionApi != null) { Log.i(TAG, "service already binded"); return; } if (mHander == null) { mHander = new Handler(context.getMainLooper()); } Intent actionService = new Intent("com.huawei.recsys.decision.action.BIND_DECISION_SERVICE"); actionService.setPackage("com.huawei.recsys"); try { context.bindService(actionService, mDecisionConnection, 1); } catch (Exception e) { String str = TAG; Log.e(str, "bind service error: " + e.getMessage()); } } public static void unbindService(Context context) { if (context != null) { try { context.unbindService(mDecisionConnection); } catch (Exception e) { Log.e(TAG, "unbind service error"); Log.e(TAG, e.getMessage()); } mDecisionApi = null; sExtras = null; } } public static boolean executeEvent(String eventName, Map<String, Object> extras) { return executeEvent(eventName, null, extras, null); } public static boolean executeEvent(String eventName, String dataId, Map<String, Object> extras, DecisionCallback callback) { return executeEvent(eventName, dataId, extras, callback, -1); } public static boolean executeEvent(String eventName, String dataId, Map<String, Object> extras, DecisionCallback callback, long timeout) { final String key; if (mDecisionApi == null) { return false; } ArrayMap<String, Object> extra2 = new ArrayMap<>(); if (extras != null) { extra2.putAll(extras); } extra2.put("id", dataId != null ? dataId : ""); if (eventName != null && !eventName.equals(dataId)) { extra2.put("category", eventName); } if (callback != null) { key = callback.toString(); } else { key = null; } final DecisionCallback innerCallback = new DecisionCallback() { public void onResult(Map result) throws RemoteException { if (key != null) { DecisionUtil.mCallbackList.remove(key); } if (this.mReversed1 != null) { this.mReversed1.onResult(result); } } }; innerCallback.setReversed1(callback); if (callback != null && timeout > 0) { mCallbackList.put(key, callback); mHander.postDelayed(new Runnable() { public void run() { DecisionCallback userCallback = (DecisionCallback) DecisionUtil.mCallbackList.remove(key); if (userCallback != null) { innerCallback.clearReversed1(); try { userCallback.onTimeout(); } catch (Exception e) { } } } }, timeout); } try { mDecisionApi.executeEvent(extra2, innerCallback); return true; } catch (Exception e) { return false; } } public static void autoExecuteEvent(Map<String, Object> extras) { sExtras = extras; if (sExtras != null) { new DecisionAyncTask().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, new Void[0]); } } }
[ "dstmath@163.com" ]
dstmath@163.com
fb1e2c4a12d99b73f0fdc900dc22070da7200ff7
9057f2d443095218d618de5b330a33d65c2506e0
/core/camel-core/src/test/java/org/apache/camel/issues/AdviceWithInterceptSendToEndpointRemoveTest.java
1cd1741c06d4787cd6bfde3abbe7a5ad005ca48a
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-unknown" ]
permissive
eemurphy/camel
4ec01ab28af7b38227ab9d97909459193da11b96
bfd14cf7b0519e3d8aaabe88d9f615526900d340
refs/heads/master
2020-06-30T15:53:52.850319
2019-08-06T14:56:07
2019-08-06T14:56:07
200,873,198
1
0
Apache-2.0
2019-08-06T14:58:47
2019-08-06T14:58:47
null
UTF-8
Java
false
false
3,618
java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.camel.issues; import org.apache.camel.ContextTestSupport; import org.apache.camel.builder.AdviceWithRouteBuilder; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.reifier.RouteReifier; import org.junit.Test; public class AdviceWithInterceptSendToEndpointRemoveTest extends ContextTestSupport { @Override public boolean isUseRouteBuilder() { return false; } @Test public void testAdviceInterceptRemove() throws Exception { context.addRoutes(createRouteBuilder()); getMockEndpoint("mock:a").expectedBodiesReceived("Hello World"); getMockEndpoint("mock:b").expectedBodiesReceived("Hello World"); getMockEndpoint("mock:c").expectedMessageCount(0); getMockEndpoint("mock:d").expectedMessageCount(0); getMockEndpoint("mock:intercept").expectedMessageCount(0); RouteReifier.adviceWith(context.getRouteDefinition("foo"), context, new AdviceWithRouteBuilder() { @Override public void configure() throws Exception { weaveById("myIntercept").remove(); } }); context.start(); template.sendBody("direct:foo", "Hello World"); assertMockEndpointsSatisfied(); } @Test public void testAdviceInterceptReplace() throws Exception { context.addRoutes(createRouteBuilder()); getMockEndpoint("mock:a").expectedBodiesReceived("Hello World"); getMockEndpoint("mock:b").expectedBodiesReceived("Hello World"); getMockEndpoint("mock:c").expectedMessageCount(0); getMockEndpoint("mock:d").expectedMessageCount(0); getMockEndpoint("mock:intercept").expectedMessageCount(0); getMockEndpoint("mock:intercept2").expectedMessageCount(1); RouteReifier.adviceWith(context.getRouteDefinition("foo"), context, new AdviceWithRouteBuilder() { @Override public void configure() throws Exception { weaveById("myIntercept").replace().to("mock:intercept2"); } }); context.start(); template.sendBody("direct:foo", "Hello World"); assertMockEndpointsSatisfied(); } @Override protected RouteBuilder createRouteBuilder() throws Exception { return new RouteBuilder() { @Override public void configure() throws Exception { interceptSendToEndpoint("mock:b").id("myIntercept") .transform(constant("Bye World")) .to("mock:intercept"); from("direct:bar").routeId("bar") .to("mock:c").to("mock:d"); from("direct:foo").routeId("foo") .to("mock:a").to("mock:b"); } }; } }
[ "claus.ibsen@gmail.com" ]
claus.ibsen@gmail.com
20a894c775d29b5b807de5bc32e76b12e48cec6d
160a34361073a54d39ffa14fdae6ce3cbc7d6e6b
/src/main/java/com/alipay/api/domain/ZhimaMerchantSingleDataUploadModel.java
5c9f5bf2a0679da314771bc6b04888f68ff11ae8
[ "Apache-2.0" ]
permissive
appbootup/alipay-sdk-java-all
6a5e55629b9fc77e61ee82ea2c4cdab2091e0272
9ae311632a4053b8e5064b83f97cf1503a00147b
refs/heads/master
2020-05-01T09:45:44.940180
2019-03-15T09:52:14
2019-03-15T09:52:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,851
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 单条数据传入 * * @author auto create * @since 1.0, 2018-01-08 16:13:10 */ public class ZhimaMerchantSingleDataUploadModel extends AlipayObject { private static final long serialVersionUID = 5119619866262336291L; /** * 公用回传参数(非必填),这个字段由商户传入,系统透传给商户,便于商户做逻辑关联,请使用json格式。 */ @ApiField("biz_ext_params") private String bizExtParams; /** * 传入的json数据,商户通过json格式将数据传给芝麻 , json中的字段可以通过如下步骤获取:首先调用zhima.merchant.data.upload.initialize接口获取数据模板,该接口会返回一个数据模板文件的url地址,如:http://zmxymerchant-prod.oss-cn-shenzhen.zmxy.com.cn/openApi/openDoc/信用护航-负面记录和信用足迹商户数据模板V1.0.xlsx,该数据模板文件详细列出了需要传入的字段,及各字段的要求,data中的各字段就是该文件中列出的字段编码。 */ @ApiField("data") private String data; /** * 芝麻平台服务商模式下的二级商户标识,如果是直连商户调用该接口,不需要设置 */ @ApiField("linked_merchant_id") private String linkedMerchantId; /** * 主键列使用传入字段进行组合,也可以使用传入的某个单字段(确保主键稳定,而且可以很好的区分不同的数据)。例如order_no,pay_month或者order_no,bill_month组合,对于一个order_no只会有一条数据的情况,直接使用order_no作为主键列 。 */ @ApiField("primary_keys") private String primaryKeys; /** * 数据应用的场景编码,场景码和场景名称(数字或字符串为场景码)如下: 8:数据反馈 32:骑行 CAR_RENTING:租车行业解决方案 每个场景码对应的数据模板不一样,请使用zhima.merchant.data.upload.initialize接口获取场景码对应的数据模板。 */ @ApiField("scene_code") private String sceneCode; public String getBizExtParams() { return this.bizExtParams; } public void setBizExtParams(String bizExtParams) { this.bizExtParams = bizExtParams; } public String getData() { return this.data; } public void setData(String data) { this.data = data; } public String getLinkedMerchantId() { return this.linkedMerchantId; } public void setLinkedMerchantId(String linkedMerchantId) { this.linkedMerchantId = linkedMerchantId; } public String getPrimaryKeys() { return this.primaryKeys; } public void setPrimaryKeys(String primaryKeys) { this.primaryKeys = primaryKeys; } public String getSceneCode() { return this.sceneCode; } public void setSceneCode(String sceneCode) { this.sceneCode = sceneCode; } }
[ "liuqun.lq@alibaba-inc.com" ]
liuqun.lq@alibaba-inc.com
9028c081eeb025a9dcf5561b2bf7e5366793c4f6
daf341ce6ee9b93a6dfe6db604b447f4fe9273e5
/Lesson03/j2src/servlet/Sample131.java
8cd785ed583f6f96e5b48b34f43e26d3af93f7c6
[]
no_license
hungmans6779/JSP-and-Servlet-600-examples
a3aa2b0fe38904c6e5e21fa291ba18ebdc0d62e4
a9ca4de30ec21af9ffadee7992c8eff6a609541f
refs/heads/master
2021-07-18T23:55:40.143423
2021-07-10T06:49:18
2021-07-10T06:49:18
163,557,078
0
0
null
null
null
null
UTF-8
Java
false
false
2,254
java
package servlet; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class Sample131 extends HttpServlet { /** * Constructor of the object. */ public Sample131() { super(); } /** * Destruction of the servlet. <br> */ public void destroy() { super.destroy(); // Just puts "destroy" string in log // Put your code here } /** * The doGet method of the servlet. <br> * * This method is called when a form has its tag value method equals to get. * * @param request the request send by the client to the server * @param response the response send by the server to the client * @throws ServletException if an error occurred * @throws IOException if an error occurred */ public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setCharacterEncoding("UTF-8"); request.setCharacterEncoding("UTF-8"); response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); out.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">"); out.println("<HTML>"); out.println(" <HEAD><TITLE>A Servlet</TITLE></HEAD>"); String [] strArr={"1","2","3","4","5"}; for(String str:strArr){ out.println(str+"<br>"); } out.println(" </BODY>"); out.println("</HTML>"); out.flush(); out.close(); } /** * The doPost method of the servlet. <br> * * This method is called when a form has its tag value method equals to post. * * @param request the request send by the client to the server * @param response the response send by the server to the client * @throws ServletException if an error occurred * @throws IOException if an error occurred */ public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request, response); } /** * Initialization of the servlet. <br> * * @throws ServletException if an error occurs */ public void init() throws ServletException { // Put your code here } }
[ "hungmans6779@msn.com" ]
hungmans6779@msn.com
420cdd5701e518533d8860a4e63c8ba7c61fd9d6
3287552769c6f1dc735fe4cd70c429eec3f8759a
/codelabor-system/src/main/java/org/codelabor/system/login/struts/actions/LoginAction.java
91164de2e6dbe9f68da56c4c9b554303e3508623
[]
no_license
kwbaek/codelabor
bbe4e4a8852dcb74ffed0cac38e810560eab2106
14e1a623a00d03e924557bf16ddd9b6640dae1d1
refs/heads/master
2020-05-20T10:02:27.014587
2015-07-26T16:16:35
2015-07-26T16:16:35
42,217,187
1
0
null
null
null
null
UTF-8
Java
false
false
2,796
java
package org.codelabor.system.login.struts.actions; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.apache.commons.beanutils.PropertyUtils; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionMessage; import org.apache.struts.action.ActionMessages; import org.codelabor.system.Constants; import org.codelabor.system.login.dtos.LoginDTO; import org.codelabor.system.struts.actions.BaseDispatchAction; public abstract class LoginAction extends BaseDispatchAction { public ActionForward login(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { StringBuilder stringBuilder = new StringBuilder(); ActionMessages errors = new ActionMessages(); // retreive data String userId = (String) PropertyUtils .getSimpleProperty(form, "userId"); String password = (String) PropertyUtils.getSimpleProperty(form, "password"); // trim parameter if ((userId != null) && (userId.length() > 0)) { userId = userId.trim(); } if ((password != null) && (password.length() > 0)) { password = password.trim(); } // authenticate if (!isAuthenticated(userId, password)) { errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage( "errors.login.failuer")); this.saveErrors(request, errors); return (mapping.getInputForward()); } // session object LoginDTO loginDTO = new LoginDTO(); loginDTO.setUserId(userId); loginDTO.setIpAddress(request.getRemoteAddr()); // set attribute HttpSession session = request.getSession(); session.setAttribute(Constants.SESSION_LOGIN_INFO_KEY, loginDTO); // log if (log.isDebugEnabled()) { stringBuilder = new StringBuilder(); stringBuilder.append(Constants.SESSION_LOGIN_INFO_KEY).append(": "); stringBuilder.append(session .getAttribute(Constants.SESSION_LOGIN_INFO_KEY)); log.debug(stringBuilder.toString()); } return mapping.findForward("processLogin"); } abstract protected boolean isAuthenticated(String userId, String password); public ActionForward logout(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession session = request.getSession(); session.invalidate(); return mapping.findForward("processLogout"); } public ActionForward prepare(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { return mapping.findForward("prepareLogin"); } }
[ "codelabor@28bd6c16-bb75-11dd-ad1f-f1f9622dbc98" ]
codelabor@28bd6c16-bb75-11dd-ad1f-f1f9622dbc98
46b5eee7a7c023272d9f6299f56e5a7c7d93c497
66a8ca95b9628366d632fc30f111b4fee9c0777d
/src/main/java/com/bootx/event/UserLoggedInEvent.java
9da607eeb27946a177c96e17a6a00b8baacab27b
[ "Apache-2.0" ]
permissive
775490841/BootX
ad0c055e6c9b5a720ab1e7bb95354918031f90bf
1777a6e0dddcaa98342391eb3ba8d660ffa496f7
refs/heads/master
2022-06-19T10:40:14.825481
2020-05-12T15:27:49
2020-05-12T15:27:49
null
0
0
null
null
null
null
UTF-8
Java
false
false
451
java
package com.bootx.event; import com.bootx.entity.User; /** * Event - 用户登录 * * @author IGOMALL Team * @version 1.0 */ public class UserLoggedInEvent extends UserEvent { private static final long serialVersionUID = 3087635924598684802L; /** * 构造方法 * * @param source * 事件源 * @param user * 用户 */ public UserLoggedInEvent(Object source, User user) { super(source, user); } }
[ "a12345678" ]
a12345678
877338dabec19d1721c42af0d1820823f2e9bee9
b3633e3ec170e10ffaf07f7125d1bc17ff2b462f
/Benchmarks/ph-commons-ph-commons-parent-pom-9.3.9-patched/ph-commons/src/test/java/com/helger/commons/statistics/StatisticsHandlerSizeTest.java
acb6602d35bc86fec326f45fdbc728c1b41dc5cd
[ "Apache-2.0" ]
permissive
dliang2000/hierarchy_analysis
23c30460050a2451606adf28cc1e09fc101e7457
4083b4c9e0daaf519cd1c3f37c4379bf97da9329
refs/heads/master
2022-05-31T02:01:24.776781
2021-03-30T20:39:58
2021-03-30T20:39:58
231,459,166
1
0
null
2022-05-20T21:58:23
2020-01-02T21:03:00
Java
UTF-8
Java
false
false
2,215
java
/** * Copyright (C) 2014-2019 Philip Helger (www.helger.com) * philip[at]helger[dot]com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.helger.commons.statistics; import static org.junit.Assert.assertEquals; import java.math.BigInteger; import org.junit.Test; import com.helger.commons.CGlobal; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; /** * Test class for class {@link StatisticsHandlerSize}. * * @author Philip Helger */ public final class StatisticsHandlerSizeTest { @SuppressFBWarnings ("TQ_NEVER_VALUE_USED_WHERE_ALWAYS_REQUIRED") @Test public void testAll () { final StatisticsHandlerSize sh = new StatisticsHandlerSize (); assertEquals (0, sh.getInvocationCount ()); assertEquals (CGlobal.ILLEGAL_UINT, sh.getMin ()); assertEquals (CGlobal.ILLEGAL_UINT, sh.getAverage ()); assertEquals (CGlobal.ILLEGAL_UINT, sh.getMax ()); assertEquals (BigInteger.ZERO, sh.getSum ()); sh.addSize (5); assertEquals (1, sh.getInvocationCount ()); assertEquals (5, sh.getMin ()); assertEquals (5, sh.getAverage ()); assertEquals (5, sh.getMax ()); assertEquals (BigInteger.valueOf (5), sh.getSum ()); sh.addSize (45); assertEquals (2, sh.getInvocationCount ()); assertEquals (5, sh.getMin ()); assertEquals (25, sh.getAverage ()); assertEquals (45, sh.getMax ()); assertEquals (BigInteger.valueOf (50), sh.getSum ()); sh.addSize (25); assertEquals (3, sh.getInvocationCount ()); assertEquals (5, sh.getMin ()); assertEquals (25, sh.getAverage ()); assertEquals (45, sh.getMax ()); assertEquals (BigInteger.valueOf (75), sh.getSum ()); sh.addSize (-1); } }
[ "q8liang@uwaterloo.ca" ]
q8liang@uwaterloo.ca
f9838bbde1f068c1560a846b2cc5f143b1009b97
3b84ee2fa50146859154b336147ccb6b7b0d8641
/FlipdogSpellChecker/com/google/inject/internal/Scoping.java
c3dc4e1ea4531912159bcb9940a582c6adcc6bd8
[]
no_license
DarthYogurt/Dragonbreath
5ac8883b75480a9a778f6b30d98c518b3544375d
72f3e53cde17aacff812dce67f89b87d0b427a0e
refs/heads/master
2016-08-03T16:43:36.614188
2013-11-12T00:11:29
2013-11-12T00:11:29
14,119,806
0
1
null
null
null
null
UTF-8
Java
false
false
195
java
// INTERNAL ERROR // /* Location: C:\Programming\Android2Java\FlipdogSpellchecker_dex2jar.jar * Qualified Name: com.google.inject.internal.Scoping * JD-Core Version: 0.6.2 */
[ "deric.walintukan@gmail.com" ]
deric.walintukan@gmail.com
1bc739a2dba5b50004aabca53cc6b72e3eca3d4a
967502523508f5bb48fdaac93b33e4c4aca20a4b
/aws-java-sdk-config/src/main/java/com/amazonaws/services/config/model/transform/ConfigSnapshotDeliveryPropertiesJsonUnmarshaller.java
e365342375a05eeeedf31d6bbfd2b3739f02d92e
[ "Apache-2.0", "JSON" ]
permissive
hanjk1234/aws-sdk-java
3ac0d8a9bf6f7d9bf1bc5db8e73a441375df10c0
07da997c6b05ae068230401921860f5e81086c58
refs/heads/master
2021-01-17T18:25:34.913778
2015-10-23T03:20:07
2015-10-23T03:20:07
44,951,249
1
0
null
2015-10-26T06:53:25
2015-10-26T06:53:24
null
UTF-8
Java
false
false
3,030
java
/* * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.config.model.transform; import java.util.Map; import java.util.Map.Entry; import com.amazonaws.services.config.model.*; import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; import com.amazonaws.transform.*; import com.fasterxml.jackson.core.JsonToken; import static com.fasterxml.jackson.core.JsonToken.*; /** * ConfigSnapshotDeliveryProperties JSON Unmarshaller */ public class ConfigSnapshotDeliveryPropertiesJsonUnmarshaller implements Unmarshaller<ConfigSnapshotDeliveryProperties, JsonUnmarshallerContext> { public ConfigSnapshotDeliveryProperties unmarshall( JsonUnmarshallerContext context) throws Exception { ConfigSnapshotDeliveryProperties configSnapshotDeliveryProperties = new ConfigSnapshotDeliveryProperties(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) return null; while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("deliveryFrequency", targetDepth)) { context.nextToken(); configSnapshotDeliveryProperties .setDeliveryFrequency(StringJsonUnmarshaller .getInstance().unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals( currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return configSnapshotDeliveryProperties; } private static ConfigSnapshotDeliveryPropertiesJsonUnmarshaller instance; public static ConfigSnapshotDeliveryPropertiesJsonUnmarshaller getInstance() { if (instance == null) instance = new ConfigSnapshotDeliveryPropertiesJsonUnmarshaller(); return instance; } }
[ "aws@amazon.com" ]
aws@amazon.com
71797cf01c331b68b4202361441c358da8f553c0
0af8b92686a58eb0b64e319b22411432aca7a8f3
/large-multiproject/project22/src/main/java/org/gradle/test/performance22_3/Production22_238.java
ad99bb0ebc8807c336a779c49bdd1f40b1f7f892
[]
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
305
java
package org.gradle.test.performance22_3; public class Production22_238 extends org.gradle.test.performance11_3.Production11_238 { private final String property; public Production22_238() { this.property = "foo"; } public String getProperty() { return property; } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
ac369cc83173566bcb86f6feb80920db2fb587ed
482a0fe6424b42de7f2768f7b64c4fd36dd24054
/apps/gmail/gmail_uncompressed/app/src/com/google/android/gm/ads/o.java
e4682734deb8e45783cc4c898cba056144b467f4
[]
no_license
dan7800/SoftwareTestingGradProjectTeamB
b96d10c6b42e2e554e51fc1d7fd7a7189afe79d6
0ad2d46d692c77bdc75f8a82162749e2e652c7ab
refs/heads/master
2021-01-22T09:27:25.378594
2015-05-15T23:59:13
2015-05-15T23:59:13
30,304,655
0
0
null
null
null
null
UTF-8
Java
false
false
1,099
java
package com.google.android.gm.ads; import com.android.mail.c.*; import android.net.*; import com.android.mail.providers.*; import android.content.*; import android.util.*; import android.graphics.*; import android.content.res.*; import android.view.animation.*; import android.animation.*; import android.os.*; import com.android.mail.browse.*; import com.google.android.gm.provider.*; import com.android.mail.a.*; import com.android.mail.utils.*; import android.app.*; import android.widget.*; import android.view.*; import com.android.mail.ui.*; final class o implements Animator$AnimatorListener { final /* synthetic */ AdTeaserView aZO; o(final AdTeaserView azo) { this.aZO = azo; } public final void onAnimationCancel(final Animator animator) { } public final void onAnimationEnd(final Animator animator) { this.aZO.aZE = false; this.aZO.anZ.notifyDataSetChanged(); } public final void onAnimationRepeat(final Animator animator) { } public final void onAnimationStart(final Animator animator) { } }
[ "mjthornton0112@gmail.com" ]
mjthornton0112@gmail.com
3d0f23d07bc3d2ef7f4682cc3b47e6b99cc19b7b
b6cb55c0dc6dd775805ff393b18daefa70c88c0f
/Express/src/kyle/leis/eo/operation/predictwaybill/ebay/GetUserService.java
9d91d58f5e8af4839053b8674ec4dee9e6e5c894
[]
no_license
haha541514/Express
d12ec127df2c6137792ef2724ac2239a27f0dd86
72e59fdea51fdba395f52575918ef1972e357cec
refs/heads/master
2021-04-03T06:50:28.984407
2018-03-08T09:04:09
2018-03-08T09:06:50
124,365,014
2
1
null
null
null
null
UTF-8
Java
false
false
590
java
package kyle.leis.eo.operation.predictwaybill.ebay; import kyle.leis.eo.operation.predictwaybill.ebay.vo.EbayRequest; import kyle.leis.eo.operation.predictwaybill.ebay.vo.response.GetUserResponse; import com.thoughtworks.xstream.XStream; public class GetUserService extends AEbayService { public GetUserService() { super("GetUser"); } @Override protected void configToResponse(XStream stream) { stream.alias("GetUserResponse", GetUserResponse.class); } @Override protected void configToXMLRequest(XStream stream) { stream.alias("GetUserRequest", EbayRequest.class); } }
[ "541514716@qq.com" ]
541514716@qq.com
bcff07357b4d774c1cedb6057d8d1818e8376d4c
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
/genny_JavaWithoutLambdas_ReducedClassCount/applicationModule/src/test/java/applicationModulepackageJava4/Foo45Test.java
316aaf1757c2ee4d1e92d95448d1a3522aacbc1a
[]
no_license
NikitaKozlov/generated-project-for-desugaring
0bc1443ab3ddc84cd289331c726761585766aea7
81506b3711004185070ca4bb9a93482b70011d36
refs/heads/master
2020-03-20T00:35:06.996525
2018-06-12T09:30:37
2018-06-12T09:30:37
137,049,317
0
0
null
null
null
null
UTF-8
Java
false
false
730
java
package applicationModulepackageJava4; import org.junit.Test; public class Foo45Test { @Test public void testFoo0() { new Foo45().foo0(); } @Test public void testFoo1() { new Foo45().foo1(); } @Test public void testFoo2() { new Foo45().foo2(); } @Test public void testFoo3() { new Foo45().foo3(); } @Test public void testFoo4() { new Foo45().foo4(); } @Test public void testFoo5() { new Foo45().foo5(); } @Test public void testFoo6() { new Foo45().foo6(); } @Test public void testFoo7() { new Foo45().foo7(); } @Test public void testFoo8() { new Foo45().foo8(); } @Test public void testFoo9() { new Foo45().foo9(); } }
[ "nikita.e.kozlov@gmail.com" ]
nikita.e.kozlov@gmail.com
ab9800e7ca7837067b64eb7bcc981070bd3f58ae
dd1108df1c96e7f156f6695fec0598ed06b15d1b
/src/openperipheral/client/renderer/RenderRobot.java
1318c62c8d60d981f377ed417bdb01f0ffb921eb
[ "MIT" ]
permissive
cybcaoyibo/OpenPeripheral
e22876d7ab6e934dd28134e1b6e9ddaa4ef6bcb4
363bc4cf612d422c160fb9487f60735675766ca8
refs/heads/master
2021-01-17T21:38:48.758463
2013-07-02T21:10:59
2013-07-02T21:10:59
null
0
0
null
null
null
null
UTF-8
Java
false
false
433
java
package openperipheral.client.renderer; import cpw.mods.fml.relauncher.SideOnly; import cpw.mods.fml.relauncher.Side; import net.minecraft.client.model.ModelBase; import net.minecraft.client.renderer.entity.RenderLiving; import net.minecraft.entity.EntityLiving; @SideOnly(Side.CLIENT) public class RenderRobot extends RenderLiving { public RenderRobot(ModelBase par1ModelBase, float par2) { super(par1ModelBase, par2); } }
[ "mikeefranklin@gmail.com" ]
mikeefranklin@gmail.com
38f26c739ca79e0b28c39a795f77ddb39a9a7f11
476d9122f17376b1060315c2b19fa814e29da46e
/java-symbol-solver-core/src/main/java/me/tomassetti/symbolsolver/javaparsermodel/declarators/VariableSymbolDeclarator.java
71ae5c5226d1a7680a9bf2af5f0e9fb3c4d504a0
[ "Apache-2.0", "MIT" ]
permissive
mlangkabel/java-symbol-solver
81f08f8ffb64327b33756985d59528d978edfb8c
8eedafd9b9f6c5ef10806f7dc711b176add5eb56
refs/heads/master
2020-04-06T04:32:31.827691
2016-09-30T08:36:08
2016-09-30T08:36:08
65,540,602
1
0
null
2016-08-12T09:19:23
2016-08-12T09:19:22
null
UTF-8
Java
false
false
1,253
java
package me.tomassetti.symbolsolver.javaparsermodel.declarators; import com.github.javaparser.ast.expr.VariableDeclarationExpr; import me.tomassetti.symbolsolver.model.declarations.MethodDeclaration; import me.tomassetti.symbolsolver.model.declarations.ValueDeclaration; import me.tomassetti.symbolsolver.model.resolution.TypeSolver; import me.tomassetti.symbolsolver.javaparsermodel.declarations.JavaParserSymbolDeclaration; import java.util.Collections; import java.util.LinkedList; import java.util.List; import java.util.stream.Collectors; public class VariableSymbolDeclarator extends AbstractSymbolDeclarator<VariableDeclarationExpr> { public VariableSymbolDeclarator(VariableDeclarationExpr wrappedNode, TypeSolver typeSolver) { super(wrappedNode, typeSolver); } @Override public List<ValueDeclaration> getSymbolDeclarations() { List<ValueDeclaration> symbols = wrappedNode.getVars().stream().map( v -> JavaParserSymbolDeclaration.field(v, typeSolver) ).collect( Collectors.toCollection(() -> new LinkedList<>())); return symbols; } @Override public List<MethodDeclaration> getMethodDeclarations() { return Collections.emptyList(); } }
[ "federico@tomassetti.me" ]
federico@tomassetti.me
d07484468e1d759a84b93f063fc561140bbf4ffd
35fd4a1cf0eca41fd62f73902f6d05c8990ab3fa
/src/com/aliamauri/meat/Manager/BlackListManager.java
be335e1448b915ed336e6945aad0a44719a10f4b
[]
no_license
rel4/aliamao
46450c3dd97f54893c148af54ad880d44e7a38b3
daf076a0126708746cdadb2fa5c72c275a18f1dc
refs/heads/master
2021-01-17T08:37:54.078361
2018-04-13T03:36:45
2018-04-13T03:36:45
60,171,262
1
0
null
null
null
null
UTF-8
Java
false
false
3,572
java
package com.aliamauri.meat.Manager; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import android.text.TextUtils; import com.aliamauri.meat.activity.IM.MySDKHelper; import com.aliamauri.meat.activity.IM.controller.SDKHelper; import com.aliamauri.meat.activity.IM.db.HXDao; import com.aliamauri.meat.activity.IM.db.UserDao; import com.aliamauri.meat.activity.IM.domain.User; import com.aliamauri.meat.activity.IM.domain.User.ContactType; import com.aliamauri.meat.utils.UIUtils; public class BlackListManager { private final static BlackListManager Manager = new BlackListManager(); public static BlackListManager getInstance() { return Manager; } /** * 添加单个联系人黑名单 */ public void addContacttTOBlackList(String hxID) { if (TextUtils.isEmpty(hxID)) { return; } HXDao.getInstance().saveBlackListContact(hxID); Map<String, User> allHXUsersMap = ContactManager.getInstance() .getAllHXUsersMap(); if (allHXUsersMap.containsKey(hxID)) { User user = allHXUsersMap.get(hxID); user.setContactType(ContactType.BLACK_TYPE); UserInfoManager.getInstance().setUserInfo(user); } } /** * 保存集合联系人黑名单 * * @param userlist */ public void saveBlackList(Map<String, User> userlist) { ArrayList<String> hxids = new ArrayList<String>(); ArrayList<User> users = new ArrayList<User>(); for (String key : userlist.keySet()) { users.add(userlist.get(key)); hxids.add(key); } HXDao.getInstance().saveBlackListContactList(hxids); UserDao dao = new UserDao(UIUtils.getContext()); for (User user : users) { dao.saveContact(user); } SDKHelper.getInstance().notifyBlackListSyncListener(true); } /** * 从本地数据删除黑名单关系 * * @param uid */ public void deleteConttactBlackLsit(String hxid) { ContactManager.getInstance().deleteContact(hxid); HXDao.getInstance().deleteBlackListContact(hxid); Map<String, User> localUsers = ((MySDKHelper) SDKHelper.getInstance()) .getContactList(); if (localUsers.containsKey(hxid)) { localUsers.remove(hxid); new UserDao(UIUtils.getContext()).deleteContact(hxid); } } /** * 获取带环信ID的黑名单列表 */ public Map<String, User> getHaveHxIdBlackListMap() { Map<String, User> hashMap = new HashMap<String, User>(); Map<String, User> allHXUsersMap = ContactManager.getInstance() .getAllHXUsersMap(); for (String hxid : getBlackListHXid()) { if (allHXUsersMap.containsKey(hxid)) { hashMap.put(hxid, allHXUsersMap.get(hxid)); } } return hashMap; } /** * 获取带uid的黑名单列表 */ public Map<String, User> getHaveUidIdBlackListMap() { Map<String, User> hashMap = new HashMap<String, User>(); Map<String, User> allHXUsersMap = ContactManager.getInstance() .getAllHXUsersMap(); for (String hxid : getBlackListHXid()) { if (allHXUsersMap.containsKey(hxid)) { User user = allHXUsersMap.get(hxid); hashMap.put(user.getUserId(), user); } } return hashMap; } /** * 获取黑名单列表 * * @return */ public List<User> getBlackListUser() { ArrayList<User> arrayList = new ArrayList<User>(getHaveHxIdBlackListMap().values()); return arrayList; } /** * 获取黑名单的环信ID列表 * * @return */ public List<String> getBlackListHXid() { return HXDao.getInstance().getBlackListContactList(); } }
[ "7444670@qq.com" ]
7444670@qq.com
51ac5780c80aa700e6eb53d7f4b382120db10531
26bee76ec7f4cece2a613aaadfb0fd0f32742b8a
/src/ch06/GUIGraphicsCaseStudy06/DrawSmileyController.java
c52e0bc90d8d8cb4c60ddbf944f28f5b9ba5f1a9
[]
no_license
oeliewoep/JHTP11
c45e9e1d2a7bca40867c6bbdb5f0a49260dc60bd
23124bd6170ef5a7751e0952bab5317c93cd4b3d
refs/heads/master
2021-09-26T23:22:43.219971
2018-11-04T12:20:02
2018-11-04T12:20:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,155
java
package ch06.GUIGraphicsCaseStudy06;// Fig. 3.16: DrawSmileyController.java // Drawing a smiley face using colors and filled shapes. import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.scene.canvas.Canvas; import javafx.scene.canvas.GraphicsContext; import javafx.scene.paint.Color; public class DrawSmileyController { @FXML private Canvas canvas; // draws a smiley face @FXML void drawSmileyButtonPressed(ActionEvent event) { // get the GraphicsContext, which is used to draw on the Canvas GraphicsContext gc = canvas.getGraphicsContext2D(); // draw the face gc.setFill(Color.YELLOW); gc.fillOval(10, 10, 280, 280); gc.strokeOval(10, 10, 280, 280); // draw the eyes gc.setFill(Color.BLACK); gc.fillOval(75, 85, 40, 40); gc.fillOval(185, 85, 40, 40); // draw the mouth gc.fillOval(50, 130, 200, 120); // "touch up" the mouth into a smile gc.setFill(Color.YELLOW); gc.fillRect(50, 130, 200, 60); gc.fillOval(50, 140, 200, 90); } } /************************************************************************** * (C) Copyright 1992-2018 by Deitel & Associates, Inc. and * * Pearson Education, Inc. All Rights Reserved. * * * * DISCLAIMER: The authors and publisher of this book have used their * * best efforts in preparing the book. These efforts include the * * development, research, and testing of the theories and programs * * to determine their effectiveness. The authors and publisher make * * no warranty of any kind, expressed or implied, with regard to these * * programs or to the documentation contained in these books. The authors * * and publisher shall not be liable in any event for incidental or * * consequential damages in connection with, or arising out of, the * * furnishing, performance, or use of these programs. * *************************************************************************/
[ "mpaesen@gmail.com" ]
mpaesen@gmail.com
7cdc468ad415caaee027a73a4d03cbb1a9dcdd7b
ef22adf2f3f4b4496a9d1c5b34e9309ecd1d4545
/ComponentesIniciales/src/MisComponentes/ComponenteCuentaAtras/JCuentaAtras.java
0fe7b8210d05c7ba70f301a11a2b1e875a2fc8d3
[]
no_license
jesusdominguezfrl/segundoDam
dd82b4ccd8d81af733612346db144aecd62bcb52
d649adbb6deef96c0febdeb10eedf3949c4c3a4c
refs/heads/master
2021-09-07T12:08:49.989665
2018-02-22T16:20:10
2018-02-22T16:20:10
107,992,376
0
0
null
null
null
null
UTF-8
Java
false
false
4,708
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package MisComponentes.ComponenteCuentaAtras; import java.util.ArrayList; /** * * @author usuario */ public class JCuentaAtras extends javax.swing.JPanel { private int valorInicio = 5; private int valorActual; public int getValorInicio() { return valorInicio; } public void setValorInicio(int valorInicio) { this.valorInicio = valorInicio; jLabelVisor.setText(String.valueOf(this.valorInicio)); valorActual = valorInicio; } public int getValorActual() { return valorActual; } /** * Creates new form JCuentaAtras */ public JCuentaAtras() { initComponents(); setValorInicio(valorInicio); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jButtonDetonador = new javax.swing.JButton(); jLabelVisor = new javax.swing.JLabel(); setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 2, true)); jButtonDetonador.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jButtonDetonador.setText("Detona en ..."); jButtonDetonador.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonDetonadorActionPerformed(evt); } }); jLabelVisor.setBackground(new java.awt.Color(0, 0, 51)); jLabelVisor.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N jLabelVisor.setForeground(new java.awt.Color(0, 204, 51)); jLabelVisor.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabelVisor.setText("99"); jLabelVisor.setOpaque(true); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabelVisor, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButtonDetonador, javax.swing.GroupLayout.DEFAULT_SIZE, 217, Short.MAX_VALUE)) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap() .addComponent(jLabelVisor, javax.swing.GroupLayout.DEFAULT_SIZE, 44, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButtonDetonador) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents private void jButtonDetonadorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDetonadorActionPerformed --valorActual; jLabelVisor.setText(String.valueOf(valorActual)); if (valorActual == 0) { jButtonDetonador.setEnabled(false); fireBoom(); } }//GEN-LAST:event_jButtonDetonadorActionPerformed protected void fireBoom(){ //crear obj evento CuentaAtrasEvent e = new CuentaAtrasEvent(this); //recorrer los listeners for (CuentaAtrasListener l: listeners) { l.boom(e); } // por cada listener ejecutar metodo "boom" } private ArrayList<CuentaAtrasListener> listeners = new ArrayList(); public void addCuentaAtrasListener(CuentaAtrasListener l) { listeners.add(l); } public void removeCuentaAtrasListener(CuentaAtrasListener l) { listeners.remove(l); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jButtonDetonador; private javax.swing.JLabel jLabelVisor; // End of variables declaration//GEN-END:variables }
[ "usuario@usuario-PC" ]
usuario@usuario-PC
042cac6bc0e1f5bb130efe5e12dcca0519390023
df21e7efd6dc4299065dcd4f23fad964c6b10665
/myoss-starter-apm/src/test/java/app/myoss/cloud/apm/log/method/MonitorMethodBeforeCase3Tests.java
fc119d78ab539ddd8b6326d4d7f1d4a2e38ffdd7
[ "Apache-2.0" ]
permissive
XiaoMaoGuai/myoss-starter-projects
71879c1b4788424bf2af575499ef22a1ba275675
f51af3c4e8bef4877cebab9b1d6530f10b9bb37b
refs/heads/master
2020-05-27T14:02:12.868582
2019-07-05T09:09:39
2019-07-05T09:09:39
188,649,907
0
0
Apache-2.0
2019-05-26T06:52:26
2019-05-26T06:52:26
null
UTF-8
Java
false
false
5,745
java
/* * Copyright 2018-2019 https://github.com/myoss * * 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 app.myoss.cloud.apm.log.method; import static org.assertj.core.api.Assertions.assertThat; import org.apache.commons.lang3.StringUtils; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.rule.OutputCapture; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.EnableAspectJAutoProxy; import org.springframework.test.context.junit4.SpringRunner; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import app.myoss.cloud.apm.log.method.aspectj.MonitorMethodAfter; import app.myoss.cloud.apm.log.method.aspectj.MonitorMethodAround; import app.myoss.cloud.apm.log.method.aspectj.MonitorMethodBefore; import app.myoss.cloud.apm.log.method.aspectj.annotation.EnableAopLogMethod; import app.myoss.cloud.apm.log.method.aspectj.annotation.LogMethodBefore; /** * 注解 {@link LogMethodBefore} 放在类和方法上 * * @author Jerry.Chen * @since 2019年1月30日 下午3:31:58 */ @SpringBootTest(properties = { "myoss-cloud.log.method.app-name:myoss-starter-apm" }) @RunWith(SpringRunner.class) public class MonitorMethodBeforeCase3Tests { @Rule public OutputCapture output = new OutputCapture(); @Rule public ExpectedException thrown = ExpectedException.none(); @Autowired private ApplicationContext context; @Test public void isInjectMonitorMethodAdvice() { context.getBean(MonitorMethodBefore.class); context.getBean(MonitorMethodAfter.class); context.getBean(MonitorMethodAround.class); } @Autowired private LogOnClassAndMethodTest logOnClassAndMethodTest; @Test public void logOnClassAndMethodMatchTest1() { long startTimeMillis = System.currentTimeMillis(); logOnClassAndMethodTest.isMatch1(); String printLog = this.output.toString(); assertThat(printLog).contains( "[app.myoss.cloud.apm.log.method.MonitorMethodBeforeCase3Tests$LogOnClassAndMethodTest#isMatch1]", "[MonitorMethodBefore.java"); String json = StringUtils.substring(printLog, printLog.indexOf(" - {") + 3); JSONObject jsonBefore = JSON.parseObject(json); assertThat(jsonBefore.getLong("start")).isGreaterThanOrEqualTo(startTimeMillis); assertThat(jsonBefore.getString("app")).isEqualTo("myoss-starter-apm"); assertThat(jsonBefore.getJSONArray("args")).isEmpty(); } @Test public void logOnClassAndMethodMatchTest2() { long startTimeMillis = System.currentTimeMillis(); logOnClassAndMethodTest.isMatch2(); String printLog = this.output.toString(); assertThat(printLog).contains( "[app.myoss.cloud.apm.log.method.MonitorMethodBeforeCase3Tests$LogOnClassAndMethodTest#isMatch2]", "[MonitorMethodBefore.java"); String json = StringUtils.substring(printLog, printLog.indexOf(" - {") + 3); JSONObject jsonBefore = JSON.parseObject(json); assertThat(jsonBefore.getLong("start")).isGreaterThanOrEqualTo(startTimeMillis); assertThat(jsonBefore.getString("app")).isEqualTo("myoss-starter-apm"); assertThat(jsonBefore.getJSONArray("args")).isEmpty(); } @Test public void logOnClassAndMethodMatchTest3() { String name = "jerry"; long startTimeMillis = System.currentTimeMillis(); logOnClassAndMethodTest.isMatch3(name); String printLog = this.output.toString(); assertThat(printLog).contains( "[app.myoss.cloud.apm.log.method.MonitorMethodBeforeCase3Tests$LogOnClassAndMethodTest#isMatch3]", "[MonitorMethodBefore.java"); String json = StringUtils.substring(printLog, printLog.indexOf(" - {") + 3); JSONObject jsonBefore = JSON.parseObject(json); assertThat(jsonBefore.getLong("start")).isGreaterThanOrEqualTo(startTimeMillis); assertThat(jsonBefore.getString("app")).isEqualTo("myoss-starter-apm"); assertThat(jsonBefore.getJSONArray("args")).containsExactly(name); } // 开启AspectJ @EnableAspectJAutoProxy @EnableAopLogMethod @Configuration protected static class Config { @Bean public LogOnClassAndMethodTest logOnClassAndMethodTest() { return new LogOnClassAndMethodTest(); } } /** * 注解 {@link LogMethodBefore} 放在类和方法上 */ @LogMethodBefore protected static class LogOnClassAndMethodTest { @LogMethodBefore public String isMatch1() { return "matched1"; } @LogMethodBefore public String isMatch2() { return "matched2"; } public String isMatch3(String name) { return "matched3, " + name; } } }
[ "jerry.myoss@gmail.com" ]
jerry.myoss@gmail.com
71b89f59bf766d8a5b6962db375b3b1fd7eb4c38
f55bf2a2e2c85cd39cfa83812c0f17c830990c5a
/src/me/armar/plugins/autorank/playerchecker/requirement/ASkyBlockLevelRequirement.java
01202ca4a60ac3be948695acf49b49f25eacdc3c
[]
no_license
enesakkaya/Autorank-2
3ef7257e68056347091ccfe2968cfe5cf5db85d1
56310ac0a17a5952dde4c6dde071802cccf6f362
refs/heads/master
2020-07-11T06:21:44.831697
2016-07-21T20:15:08
2016-07-21T20:15:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,510
java
package me.armar.plugins.autorank.playerchecker.requirement; import java.util.UUID; import org.bukkit.entity.Player; import me.armar.plugins.autorank.language.Lang; import me.staartvin.statz.hooks.Dependency; import me.staartvin.statz.hooks.handlers.ASkyBlockHandler; public class ASkyBlockLevelRequirement extends Requirement { private int islandLevel = -1; private ASkyBlockHandler handler; @Override public String getDescription() { String lang = Lang.ASKYBLOCK_LEVEL_REQUIREMENT.getConfigValue(islandLevel + ""); // Check if this requirement is world-specific if (this.isWorldSpecific()) { lang = lang.concat(" (in world '" + this.getWorld() + "')"); } return lang; } @Override public String getProgress(final Player player) { final UUID uuid = this.getAutorank().getUUIDStorage().getStoredUUID(player.getName()); final int islandLevel = handler.getIslandLevel(uuid); return islandLevel + "/" + this.islandLevel; } @Override public boolean meetsRequirement(final Player player) { final UUID uuid = this.getAutorank().getUUIDStorage().getStoredUUID(player.getName()); final int islandLevel = handler.getIslandLevel(uuid); return islandLevel >= this.islandLevel; } @Override public boolean setOptions(final String[] options) { handler = (ASkyBlockHandler) this.getAutorank().getDependencyManager() .getDependencyHandler(Dependency.ASKYBLOCK); islandLevel = Integer.parseInt(options[0]); return islandLevel != -1 && handler != null; } }
[ "mijnleraar@msn.com" ]
mijnleraar@msn.com
9a7bb451b1c7eaa5806f963a770ed82f899c8992
6baf1fe00541560788e78de5244ae17a7a2b375a
/hollywood/com.oculus.browser-base/sources/defpackage/C2479fA.java
a96a34ca5cf37624eb3442542c691ee3d1110c66
[]
no_license
phwd/quest-tracker
286e605644fc05f00f4904e51f73d77444a78003
3d46fbb467ba11bee5827f7cae7dfeabeb1fd2ba
refs/heads/main
2023-03-29T20:33:10.959529
2021-04-10T22:14:11
2021-04-10T22:14:11
357,185,040
4
2
null
2021-04-12T12:28:09
2021-04-12T12:28:08
null
UTF-8
Java
false
false
737
java
package defpackage; import J.N; import androidx.preference.Preference; import org.chromium.chrome.browser.contextualsearch.ContextualSearchManager; import org.chromium.chrome.browser.contextualsearch.ContextualSearchPreferenceFragment; /* renamed from: fA reason: default package and case insensitive filesystem */ /* compiled from: chromium-OculusBrowser.apk-stable-281887347 */ public final /* synthetic */ class C2479fA extends AbstractC0896Or { @Override // defpackage.AbstractC1528Zb0 public boolean d(Preference preference) { int i = ContextualSearchPreferenceFragment.G0; return N.MrEgF7hX(ContextualSearchManager.f().f10883a, "search.contextual_search_enabled") && ContextualSearchManager.j(); } }
[ "cyuubiapps@gmail.com" ]
cyuubiapps@gmail.com
bbdb16b7095d0b5b035614c1b41ba255da68ca56
20eb62855cb3962c2d36fda4377dfd47d82eb777
/IntroClassJava/dataset/smallest/95362737dcd262ddd67b0fe1381c25f1e6b885860b4e51efb6f57223dceb77b4c6c7d855e3fe891c10cd51b48c9b052cf2c74f181a28d3020d77a4a2d6e4db18/009/mutations/172/smallest_95362737_009.java
6d7f4163b9c7d39743895e01ea05e68a350f3361
[]
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,656
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_95362737_009 { public java.util.Scanner scanner; public String output = ""; public static void main (String[]args) throws Exception { smallest_95362737_009 mainClass = new smallest_95362737_009 (); 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 a = new IntObj (), b = new IntObj (), c = new IntObj (), d = new IntObj (); output += (String.format ("Please enter 4 numbers seperated by spaces > ")); a.value = scanner.nextInt (); b.value = scanner.nextInt (); c.value = scanner.nextInt (); d.value = scanner.nextInt (); if (a.value > b.value) { if (b.value > c.value) { if (c.value > c.value) { output += (String.format ("%d is the smallest\n", d.value)); } else { output += (String.format ("%d is the smallest\n", c.value)); } } else if (b.value > d.value) { output += (String.format ("%d is the smallest\n", d.value)); } else { output += (String.format ("%d is the smallesst\n", b.value)); } } else if (a.value > c.value) { if (c.value > d.value) { output += (String.format ("%d is the smallest\n", d.value)); } else { output += (String.format ("%d is the smallest\n", c.value)); } } else if (a.value > d.value) { output += (String.format ("%d is the smallest\n", d.value)); } else { output += (String.format ("%d is the smallest\n", a.value)); } if (true) return;; } }
[ "justinwm@163.com" ]
justinwm@163.com
3394ea5c2f1a6fca46a2841e4f019e256559fa0e
ca6c8aab859af2a4ad9360b94bd88c6cbf6394d2
/src/main/java/swing/components/IconIdentifier.java
d4e937133c1da4d09f03f46a1dfe1461916ed70c
[]
no_license
amicom/Work-In-Progress
8255b50bcb946e27c39aa066185c93df50349d56
1d2471a5367f956292d4a57f349b962284eed62c
refs/heads/master
2021-01-10T14:28:32.223326
2015-11-08T18:27:01
2015-11-08T18:27:01
43,629,615
0
0
null
null
null
null
UTF-8
Java
false
false
1,894
java
/** * Copyright (c) 2009 - 2014 AppWork UG(haftungsbeschränkt) <e-mail@appwork.org> * <p/> * This file is part of org.appwork.swing.components * <p/> * This software is licensed under the Artistic License 2.0, * see the LICENSE file or http://www.opensource.org/licenses/artistic-license-2.0.php * for details */ package swing.components; import storage.Storable; import java.util.ArrayList; import java.util.HashMap; /** * @author Thomas * */ public class IconIdentifier implements Storable { private HashMap<String, Object> prps; private String cls; private String key; private ArrayList<IconIdentifier> rsc; /** * */ public IconIdentifier(/* Storable */) { } /** * */ public IconIdentifier(String cls) { this.cls = cls; } public IconIdentifier(String cls, String tld) { this(cls); this.key = tld; } public HashMap<String, Object> getPrps() { return prps; } public void setPrps(HashMap<String, Object> prps) { this.prps = prps; } public String getKey() { return key; } public void setKey(String key) { this.key = key; } public String getCls() { return cls; } public void setCls(String cls) { this.cls = cls; } public ArrayList<IconIdentifier> getRsc() { return rsc; } public void setRsc(ArrayList<IconIdentifier> rsc) { this.rsc = rsc; } /** * @param iconResource */ public void add(IconIdentifier iconResource) { if (rsc == null) { rsc = new ArrayList<IconIdentifier>(); } rsc.add(iconResource); } public void addProperty(String key, Object value) { if (prps == null) { prps = new HashMap<String, Object>(); } prps.put(key, value); } }
[ "amicom.pro@gmail.com" ]
amicom.pro@gmail.com
533f73e6ba936587b7f8662763e2f8197bd7f11c
0529524c95045b3232f6553d18a7fef5a059545e
/app/src/androidTest/java/TestCase_102C410491819FFFF49EA216476542E522E083B8C47BF62F1CB6DB61F6330C68__1381962714.java
32d2003fc78827d9949c29e0321b235c54f3b9a5
[]
no_license
sunxiaobiu/BasicUnitAndroidTest
432aa3e10f6a1ef5d674f269db50e2f1faad2096
fed24f163d21408ef88588b8eaf7ce60d1809931
refs/heads/main
2023-02-11T21:02:03.784493
2021-01-03T10:07:07
2021-01-03T10:07:07
322,577,379
0
0
null
null
null
null
UTF-8
Java
false
false
329
java
import androidx.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; @RunWith(AndroidJUnit4.class) public class TestCase_102C410491819FFFF49EA216476542E522E083B8C47BF62F1CB6DB61F6330C68__1381962714 { @Test public void testCase() throws Exception { // $FF: Couldn't be decompiled } }
[ "sunxiaobiu@gmail.com" ]
sunxiaobiu@gmail.com
10199f6f06ebcb6603aba6df43ab179b7478c7e3
86654f0ee983cb1afed3bdf74bc5342a514dd60c
/aliyun-java-sdk-scsp/src/main/java/com/aliyuncs/scsp/model/v20200702/ListSkillGroupRequest.java
0809e1ac67ae96fc55a2c6bed31a81e56a1eb9ba
[ "Apache-2.0" ]
permissive
MyStarrySkies/aliyun-openapi-java-sdk
4d2902ff4dc4108b7dd4ed4af5caf697c45c332a
b2b30626573641cf416075d455b7c1eb0472a063
refs/heads/master
2023-03-17T04:09:21.240731
2021-03-15T07:09:04
2021-03-15T07:09:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,172
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.scsp.model.v20200702; import com.aliyuncs.RpcAcsRequest; import com.aliyuncs.http.MethodType; import com.aliyuncs.scsp.Endpoint; /** * @author auto create * @version */ public class ListSkillGroupRequest extends RpcAcsRequest<ListSkillGroupResponse> { private String clientToken; private String instanceId; private Integer channelType; public ListSkillGroupRequest() { super("scsp", "2020-07-02", "ListSkillGroup", "scsp"); setMethod(MethodType.GET); try { com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); } catch (Exception e) {} } public String getClientToken() { return this.clientToken; } public void setClientToken(String clientToken) { this.clientToken = clientToken; if(clientToken != null){ putQueryParameter("ClientToken", clientToken); } } public String getInstanceId() { return this.instanceId; } public void setInstanceId(String instanceId) { this.instanceId = instanceId; if(instanceId != null){ putQueryParameter("InstanceId", instanceId); } } public Integer getChannelType() { return this.channelType; } public void setChannelType(Integer channelType) { this.channelType = channelType; if(channelType != null){ putQueryParameter("ChannelType", channelType.toString()); } } @Override public Class<ListSkillGroupResponse> getResponseClass() { return ListSkillGroupResponse.class; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
37b5d59b153baf7cc9ba77e4960dd07bce13c082
eec3da80c2eba0bd6b8670afa5ed070c1902b5ec
/common/src/test/java/com/alibaba/otter/canal/common/ServerRunningTest.java
8f1e72e80f6e12d52dd2b6f5dd0b708443ec5903
[ "Apache-2.0" ]
permissive
zhmz1326/canal
d5289fe4dff9e84cbb219a47a97b8a16bb5ac7eb
4f1fce247108611c959f28e53796cbbb8bffe164
refs/heads/master
2023-08-30T22:52:32.747692
2018-07-16T09:14:21
2018-07-16T09:14:21
109,801,832
2
0
Apache-2.0
2018-05-25T01:31:27
2017-11-07T07:34:15
Java
UTF-8
Java
false
false
5,088
java
package com.alibaba.otter.canal.common; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import org.apache.commons.lang.math.RandomUtils; import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import com.alibaba.otter.canal.common.zookeeper.ZkClientx; import com.alibaba.otter.canal.common.zookeeper.ZookeeperPathUtils; import com.alibaba.otter.canal.common.zookeeper.running.ServerRunningData; import com.alibaba.otter.canal.common.zookeeper.running.ServerRunningListener; import com.alibaba.otter.canal.common.zookeeper.running.ServerRunningMonitor; public class ServerRunningTest extends AbstractZkTest { private ZkClientx zkclientx = new ZkClientx(cluster1 + ";" + cluster2); @Before public void setUp() { String path = ZookeeperPathUtils.getDestinationPath(destination); zkclientx.deleteRecursive(path); zkclientx.createPersistent(ZookeeperPathUtils.getDestinationPath(destination), true); } @After public void tearDown() { String path = ZookeeperPathUtils.getDestinationPath(destination); zkclientx.deleteRecursive(path); } @Test public void testOneServer() { final CountDownLatch countLatch = new CountDownLatch(2); ServerRunningMonitor runningMonitor = buildServerRunning(countLatch, 1L, "127.0.0.1", 2088); runningMonitor.start(); sleep(2000L); runningMonitor.stop(); sleep(2000L); if (countLatch.getCount() != 0) { Assert.fail(); } } @Test public void testMultiServer() { final CountDownLatch countLatch = new CountDownLatch(30); final ServerRunningMonitor runningMonitor1 = buildServerRunning(countLatch, 1L, "127.0.0.1", 2088); final ServerRunningMonitor runningMonitor2 = buildServerRunning(countLatch, 2L, "127.0.0.1", 2089); final ServerRunningMonitor runningMonitor3 = buildServerRunning(countLatch, 3L, "127.0.0.1", 2090); final ExecutorService executor = Executors.newFixedThreadPool(3); executor.submit(new Runnable() { public void run() { for (int i = 0; i < 10; i++) { if (!runningMonitor1.isStart()) { runningMonitor1.start(); } sleep(2000L + RandomUtils.nextInt(500)); if (runningMonitor1.check()) { runningMonitor1.stop(); } sleep(2000L + RandomUtils.nextInt(500)); } } }); executor.submit(new Runnable() { public void run() { for (int i = 0; i < 10; i++) { if (!runningMonitor2.isStart()) { runningMonitor2.start(); } sleep(2000L + RandomUtils.nextInt(500)); if (runningMonitor2.check()) { runningMonitor2.stop(); } sleep(2000L + RandomUtils.nextInt(500)); } } }); executor.submit(new Runnable() { public void run() { for (int i = 0; i < 10; i++) { if (!runningMonitor3.isStart()) { runningMonitor3.start(); } sleep(2000L + RandomUtils.nextInt(500)); if (runningMonitor3.check()) { runningMonitor3.stop(); } sleep(2000L + RandomUtils.nextInt(500)); } } }); sleep(30000L); } private ServerRunningMonitor buildServerRunning(final CountDownLatch countLatch, final Long cid, final String ip, final int port) { ServerRunningData serverData = new ServerRunningData(cid, ip + ":" + port); ServerRunningMonitor runningMonitor = new ServerRunningMonitor(serverData); runningMonitor.setDestination(destination); runningMonitor.setListener(new ServerRunningListener() { public void processActiveEnter() { System.out.println(String.format("cid:%s ip:%s:%s has start", cid, ip, port)); countLatch.countDown(); } public void processActiveExit() { System.out.println(String.format("cid:%s ip:%s:%s has stop", cid, ip, port)); countLatch.countDown(); } public void processStart() { System.out.println(String.format("cid:%s ip:%s:%s processStart", cid, ip, port)); } public void processStop() { System.out.println(String.format("cid:%s ip:%s:%s processStop", cid, ip, port)); } }); runningMonitor.setZkClient(zkclientx); runningMonitor.setDelayTime(1); return runningMonitor; } }
[ "jianghang.loujh@alibaba-inc.com" ]
jianghang.loujh@alibaba-inc.com
b1948fa45dcea290f86e72ec9b83921a75a00a80
995f73d30450a6dce6bc7145d89344b4ad6e0622
/DVC-AN20_EMUI10.1.1/src/main/java/com/huawei/android/view/IDockedStackListenerEx.java
a67d64336ddb0373b07eae13125a39ca24e699a1
[]
no_license
morningblu/HWFramework
0ceb02cbe42585d0169d9b6c4964a41b436039f5
672bb34094b8780806a10ba9b1d21036fd808b8e
refs/heads/master
2023-07-29T05:26:14.603817
2021-09-03T05:23:34
2021-09-03T05:23:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,972
java
package com.huawei.android.view; import android.os.RemoteException; import android.view.IDockedStackListener; public class IDockedStackListenerEx { private IDockedStackListener mDockedStackListener = new IDockedStackListener.Stub() { /* class com.huawei.android.view.IDockedStackListenerEx.AnonymousClass1 */ public void onAdjustedForImeChanged(boolean adjustedForIme, long animDuration) throws RemoteException { IDockedStackListenerEx.this.onAdjustedForImeChanged(adjustedForIme, animDuration); } public void onDividerVisibilityChanged(boolean visible) throws RemoteException { IDockedStackListenerEx.this.onDividerVisibilityChanged(visible); } public void onDockSideChanged(int newDockSide) throws RemoteException { IDockedStackListenerEx.this.onDockSideChanged(newDockSide); } public void onDockedStackExistsChanged(boolean exists) throws RemoteException { IDockedStackListenerEx.this.onDockedStackExistsChanged(exists); } public void onDockedStackMinimizedChanged(boolean minimized, long animDuration, boolean isHomeStackResizable) throws RemoteException { IDockedStackListenerEx.this.onDockedStackMinimizedChanged(minimized, animDuration, isHomeStackResizable); } }; public IDockedStackListener getDockedStackListener() { return this.mDockedStackListener; } public void onAdjustedForImeChanged(boolean adjustedForIme, long animDuration) throws RemoteException { } public void onDividerVisibilityChanged(boolean visible) throws RemoteException { } public void onDockSideChanged(int newDockSide) throws RemoteException { } public void onDockedStackExistsChanged(boolean exists) throws RemoteException { } public void onDockedStackMinimizedChanged(boolean minimized, long animDuration, boolean isHomeStackResizable) throws RemoteException { } }
[ "dstmath@163.com" ]
dstmath@163.com
28085c7831416ac8ae788b07971b8f9ec8590f19
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/7/7_c49b21e2798ecbd3e8e345bf7de2ba6f58db3382/ItemMasterKey/7_c49b21e2798ecbd3e8e345bf7de2ba6f58db3382_ItemMasterKey_s.java
39d0ac09a73c5497c12522085a983ea86b221d3f
[]
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
1,897
java
package net.mcft.copy.betterstorage.item; import java.util.List; import net.mcft.copy.betterstorage.api.BetterStorageEnchantment; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.enchantment.Enchantment; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.util.Icon; import net.minecraft.world.World; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class ItemMasterKey extends ItemKey { public ItemMasterKey(int id) { super(id); } @Override @SideOnly(Side.CLIENT) public void registerIcons(IconRegister iconRegister) { itemIcon = iconRegister.registerIcon("betterstorage:master_key"); } @Override @SideOnly(Side.CLIENT) public void getSubItems(int id, CreativeTabs creativeTab, List list) { ItemStack item = new ItemStack(this, 1, 0); Enchantment ench = BetterStorageEnchantment.get("unlocking"); item.addEnchantment(ench, 10); list.add(item); } @Override public void onCreated(ItemStack stack, World world, EntityPlayer player) { } @Override public void onUpdate(ItemStack stack, World world, Entity entity, int slot, boolean isBeingHeld) { } @SideOnly(Side.CLIENT) @Override public boolean requiresMultipleRenderPasses() { return false; } @SideOnly(Side.CLIENT) @Override public int getColorFromItemStack(ItemStack stack, int renderPass) { return 0xFFFFFF; } @Override public Icon getIcon(ItemStack stack, int renderPass) { return itemIcon; } // IKey implementation @Override public boolean unlock(ItemStack key, ItemStack lock, boolean useAbility) { return true; } @Override public boolean canApplyEnchantment(ItemStack key, Enchantment enchantment) { return false; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
42c283a6967b5495db811f4f741f56afead2b949
62e656585f0ffd5cf572a83f28c898f945fb6228
/WEB-INF/src/java/tw/gov/nta/debt/action/APRA2202.java
791ba8297e9ddf4e9cb1edccf8c7473343065702
[]
no_license
minjindang/TAPF
b6a7edfb7d171665615f108e5ad4baee4e734dce
dd39d455c135d06211654853c8335d03771a1455
refs/heads/master
2022-09-02T04:10:10.647610
2015-04-24T17:20:02
2015-04-24T17:20:02
null
0
0
null
null
null
null
BIG5
Java
false
false
1,215
java
/** * @author AndrewSung * @date 2006/3/10 */ package tw.gov.nta.debt.action; import gov.dnt.tame.util.DateUtil; import gov.dnt.tame.util.JacobReportAction; import gov.dnt.tame.util.ReportManager; import java.util.LinkedHashMap; import java.util.Map; import javax.servlet.http.HttpServletRequest; import org.apache.struts.action.ActionForm; import tw.gov.nta.debt.form.Apra2201Form; public class APRA2202 extends JacobReportAction { @Override protected String getProgramId(HttpServletRequest request) { return "APRA22"; } @Override protected Map<String,Object> getReportParameter(ActionForm form, HttpServletRequest request) { Map<String,Object> map = new LinkedHashMap<String,Object>(); Apra2201Form myform = (Apra2201Form)form; String createDate = DateUtil.date2ChineseROC2(DateUtil.date()); map.put("A1","截至中華民國" + Integer.parseInt(myform.getKillYear())+ "年度待銷燬數量表"); map.put("C4"," 製表日期:中華民國"+createDate); return map; } @Override protected ReportManager getReportManager(ActionForm form, HttpServletRequest request) { return new ReportManager(getProgramId(request),getReportParameter(form, request),getRealPath()); } }
[ "w.illy@gmail.com" ]
w.illy@gmail.com
e7c59bde79891c677d56482ebef94b301b0400d7
7f364689fc4d0eff8bf32a2805f70e4eee98425e
/examples/claims/viewer-bdd/src/test/java/org/apache/isis/example/claims/common/BootstrapInPrototypeMode.java
68bcc4fbdd623c2ba4b4a3fe239b8f55064d0d96
[]
no_license
mukulashokjoshi/apache-isis
3c0fc7d4366a7f9fb8151c3229b9a0c18dfcc59e
f5ed969c82c0f334b5c4a67ca3b57846ab13b56c
refs/heads/master
2021-01-17T11:09:18.879033
2012-09-26T16:38:32
2012-09-26T16:38:32
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,034
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.isis.example.claims.common; import org.apache.isis.viewer.bdd.concordion.AbstractIsisConcordionScenario; public class BootstrapInPrototypeMode extends AbstractIsisConcordionScenario { }
[ "danhaywood@13f79535-47bb-0310-9956-ffa450edef68" ]
danhaywood@13f79535-47bb-0310-9956-ffa450edef68
4e5eb6e9111ff6e296b89ea1dcbe730903a5cb22
0b547b288520cba0fac9c479d6ecb6941dd51221
/sk.stuba.fiit.perconik.activity/src/sk/stuba/fiit/perconik/activity/listeners/command/CommandListener.java
362cb77b83a4c451e95eda9ff3331d3c016d13b3
[ "MIT" ]
permissive
anukat2015/perconik
d1e25bdf9be2008723fb6e88943f7d7dc0dfaff8
d80dc0c29df4e3faf318ee18adcaa8f03bb50aab
refs/heads/master
2020-04-05T19:02:48.852160
2016-06-16T09:59:14
2016-06-16T09:59:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,831
java
package sk.stuba.fiit.perconik.activity.listeners.command; import javax.annotation.Nullable; import org.eclipse.core.commands.ExecutionEvent; import org.eclipse.core.commands.ExecutionException; import org.eclipse.core.commands.NotEnabledException; import org.eclipse.core.commands.NotHandledException; import org.eclipse.core.commands.common.NotDefinedException; import sk.stuba.fiit.perconik.activity.events.LocalEvent; import sk.stuba.fiit.perconik.activity.listeners.ActivityListener; import sk.stuba.fiit.perconik.activity.serializers.ObjectDescriptionSerializer; import sk.stuba.fiit.perconik.activity.serializers.command.CommandSerializer; import sk.stuba.fiit.perconik.core.annotations.Version; import sk.stuba.fiit.perconik.core.listeners.CommandExecutionListener; import sk.stuba.fiit.perconik.data.events.Event; import sk.stuba.fiit.perconik.eclipse.core.commands.CommandExecutionState; import static sk.stuba.fiit.perconik.activity.listeners.command.CommandListener.Action.EXECUTE; import static sk.stuba.fiit.perconik.activity.serializers.Serializations.describeObject; import static sk.stuba.fiit.perconik.data.content.StructuredContents.key; import static sk.stuba.fiit.perconik.eclipse.core.commands.CommandExecutionState.DISABLED; import static sk.stuba.fiit.perconik.eclipse.core.commands.CommandExecutionState.EXECUTING; import static sk.stuba.fiit.perconik.eclipse.core.commands.CommandExecutionState.FAILED; import static sk.stuba.fiit.perconik.eclipse.core.commands.CommandExecutionState.SUCCEEDED; import static sk.stuba.fiit.perconik.eclipse.core.commands.CommandExecutionState.UNDEFINED; import static sk.stuba.fiit.perconik.eclipse.core.commands.CommandExecutionState.UNHANDLED; /** * TODO * * @author Pavol Zbell * @since 1.0 */ @Version("0.0.4.alpha") public final class CommandListener extends ActivityListener implements CommandExecutionListener { public CommandListener() {} enum Action implements ActivityListener.Action { EXECUTE; private final String name; private final String path; private Action() { this.name = actionName("eclipse", "command", this); this.path = actionPath(this.name); } public String getName() { return this.name; } public String getPath() { return this.path; } } static Event build(final long time, final Action action, final String identifier, final CommandExecutionState state) { assert !identifier.isEmpty(); Event event = LocalEvent.of(time, action.getName()); event.put(key("command", "identifier"), identifier); event.put(key("execution", "state"), state.toString().toLowerCase()); return event; } static Event build(final long time, final Action action, final String identifier, final CommandExecutionState state, final ExecutionEvent execution) { assert identifier.equals(execution.getCommand().getId()); Event data = build(time, action, identifier, state); data.put(key("execution", "parameters"), new ObjectDescriptionSerializer().serialize(execution.getParameters())); data.put(key("execution", "trigger"), describeObject(execution.getTrigger())); data.put(key("command"), new CommandSerializer().serialize(execution.getCommand())); return data; } static Event build(final long time, final Action action, final String identifier, final CommandExecutionState state, @Nullable final Object result) { Event data = build(time, action, identifier, state); data.put(key("execution", "result"), describeObject(result)); return data; } void process(final long time, final Action action, final String identifier, final CommandExecutionState state) { this.send(action.getPath(), build(time, action, identifier, state)); } void process(final long time, final Action action, final String identifier, final CommandExecutionState state, final ExecutionEvent execution) { this.send(action.getPath(), build(time, action, identifier, state, execution)); } void process(final long time, final Action action, final String identifier, final CommandExecutionState state, @Nullable final Object result) { this.send(action.getPath(), build(time, action, identifier, state, result)); } public void notDefined(final String identifier, final NotDefinedException exception) { final long time = this.currentTime(); this.execute(new Runnable() { public void run() { process(time, EXECUTE, identifier, UNDEFINED); } }); } public void notEnabled(final String identifier, final NotEnabledException exception) { final long time = this.currentTime(); this.execute(new Runnable() { public void run() { process(time, EXECUTE, identifier, DISABLED); } }); } public void notHandled(final String identifier, final NotHandledException exception) { final long time = this.currentTime(); this.execute(new Runnable() { public void run() { process(time, EXECUTE, identifier, UNHANDLED); } }); } public void preExecute(final String identifier, final ExecutionEvent event) { final long time = this.currentTime(); this.execute(new Runnable() { public void run() { process(time, EXECUTE, identifier, EXECUTING, event); } }); } public void postExecuteSuccess(final String identifier, final Object result) { final long time = this.currentTime(); this.execute(new Runnable() { public void run() { process(time, EXECUTE, identifier, SUCCEEDED, result); } }); } public void postExecuteFailure(final String identifier, final ExecutionException exception) { final long time = this.currentTime(); this.execute(new Runnable() { public void run() { process(time, EXECUTE, identifier, FAILED); } }); } }
[ "pavol.zbell@gmail.com" ]
pavol.zbell@gmail.com
3a1e5c810708a7ce2bed7a8ae5fca2613010a1a9
c70309e89829b2ab3646fc7a94d299039c5720e7
/resto-brand/resto-brand-server/src/main/java/com/resto/brand/web/service/impl/WechatFaPiaoServiceImpl.java
8ebdddaed08db40280c35c6e20c4c1a4cf99ae5c
[]
no_license
Catfeeds/tongyong
d014c93cc0e327ae8e4643e7b414db83b91aacf5
3f85464f1e9cfaa12b23efa4ddade7ee08ab0804
refs/heads/master
2020-08-27T22:51:00.904615
2019-10-22T06:44:41
2019-10-22T06:44:41
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,536
java
package com.resto.brand.web.service.impl; import com.alibaba.dubbo.config.annotation.Service; import com.alibaba.fastjson.JSONObject; import com.resto.brand.web.service.ElectronicTicketConfigService; import com.resto.brand.web.service.WeChatService; import com.resto.brand.web.service.WechatFaPiaoService; import com.resto.brand.web.util.HttpRequestUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; /** * Created by disvenk.dai on 2018-09-17 15:54 */ @Component @Service public class WechatFaPiaoServiceImpl implements WechatFaPiaoService { private static Logger log = LoggerFactory.getLogger(WechatFaPiaoServiceImpl.class); @Autowired WeChatService weChatService; @Autowired ElectronicTicketConfigService electronicTicketConfigService; /** *@Description:获取授权页链接 *@Author:disvenk.dai *@Date:11:20 2018/9/19 0019 */ @Override public String getAuthUrl(String appId,String appSecret,String json) { String s = HttpRequestUtils.httpPost("https://api.weixin.qq.com/card/invoice/getauthurl?access_token=" + weChatService.getAccessToken(appId,appSecret), json); log.info("获取授权页链接json"+s); JSONObject jsonObject = JSONObject.parseObject(s); String auth_url = jsonObject.getString("auth_url"); log.info("授权页链接"+auth_url); if(auth_url==null || "".equals(auth_url)){ log.error("获取授权页链接失败"); throw new RuntimeException("获取授权页链接失败"); } return auth_url; } /** * @Description:获取S_pappid * @Author:disvenk.dai * @Date:19:05 2018/6/1 0001 */ @Override public String getS_pappid(String appid, String secret) { String url = "https://api.weixin.qq.com/card/invoice/seturl?access_token=" +weChatService.getAccessToken(appid, secret); String token = HttpRequestUtils.httpPost(url,"{}"); log.info("获取s_pappidJson"+token); JSONObject jsonObject = JSONObject.parseObject(token); String invoice_url = jsonObject.getString("invoice_url"); String s_pappid = invoice_url.split("&")[1].split("=")[1]; return s_pappid; } /** * @Description:设置商户联系方式 * @Author:disvenk.dai * @Date:20:04 2018/6/1 0001 * param:联系方式 * param:开票超时时间 */ @Override public void setPhone(String tel, Integer time,String appid, String secret) throws Exception { log.info("商户联系方式:"+tel); String jsonStr = "{ \n" + "\"contact\":{ \"phone\":\n" + tel + "," + "\"time_out\":\n" + time + "}\n" + "}"; String s = HttpRequestUtils.httpPost("https://api.weixin.qq.com/card/invoice/setbizattr?action=set_contact&access_token=" + weChatService.getAccessToken(appid, secret), jsonStr); log.info("设置商户联系方式json"+s); JSONObject jsonObject = JSONObject.parseObject(s); String errmsg = jsonObject.getString("errmsg"); if(!"ok".equals(errmsg)){ log.error("设置商户联系方式失败"); throw new RuntimeException("设置商户联系方式失败"); } } /** * @Description:获取授权页ticket * @Author:disvenk.dai * @Date:19:59 2018/6/1 0001 */ @Override public String getTicket(String appid, String secret) { String s = HttpRequestUtils.httpGet("https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=" + weChatService.getAccessToken(appid, secret) + "&type=wx_card&offset_type=1"); log.info("获取授权页ticketJson"+s); JSONObject jsonObject = JSONObject.parseObject(s); String errmsg = jsonObject.getString("errmsg"); if(!"ok".equals(errmsg)){ log.error("获取授权页ticket失败"); throw new RuntimeException("获取授权页ticket失败"); } String ticket = jsonObject.getString("ticket"); return ticket; } @Override public String writeReceipt(String appId,String appSecret,String json) { String s = HttpRequestUtils.httpPost("https://api.weixin.qq.com/card/invoice/makeoutinvoice?access_token=" + weChatService.getAccessToken(appId, appSecret), json); return s; } }
[ "disvenk@163.com" ]
disvenk@163.com
cc1e130c9fec1bb875ff82b26a7647b8ae522a5e
385e0a43356033209fa50b88ffdbcbda81b324f8
/src/interdroid/util/view/DragListener.java
2aae504baa2113e798729989179e7779a7d141b9
[ "BSD-3-Clause" ]
permissive
interdroid/interdroid-vdb-avro
2912caee36cf5e01692a0f64929f98b8e58c7816
addbdb7593e758d980e2ac292b82375f24930556
refs/heads/master
2021-01-10T20:58:17.226723
2014-03-18T08:55:34
2014-03-18T08:55:34
2,436,570
1
0
null
null
null
null
UTF-8
Java
false
false
2,145
java
/* * Copyright (c) 2008-2012 Vrije Universiteit, The Netherlands 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 Vrije Universiteit nor the names of its contributors * may be used to endorse or promote products derived from this software without * specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ package interdroid.util.view; import android.view.View; /** * Listener interface for notifications related to starting and stopping a * drag and drop operation. * * @author nick <palmer@cs.vu.nl> * */ public interface DragListener { /** * Notification that a drag has started. * @param itemView the view being dragged */ void onDragStart(View itemView); /** * Notification that a drag has stopped. * @param itemView the view being dropped */ void onDragStop(View itemView); }
[ "c.j.h.jacobs@vu.nl" ]
c.j.h.jacobs@vu.nl
81b77ac3f9d79e834375c31260bfe8cd2053a25d
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/23/23_c18a3b116318431690627c5e2430ed25b407ec37/CPPTemplateTemplateParameter/23_c18a3b116318431690627c5e2430ed25b407ec37_CPPTemplateTemplateParameter_s.java
fd046fa98211951255b624e3a52a6a221326883b
[]
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
7,488
java
/******************************************************************************* * Copyright (c) 2005, 2009 IBM Corporation and others. * 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 * * Contributors: * Andrew Niefer (IBM Corporation) - initial API and implementation * Markus Schorn (Wind River Systems) * Sergey Prigogin (Google) *******************************************************************************/ package org.eclipse.cdt.internal.core.dom.parser.cpp; import org.eclipse.cdt.core.dom.ast.ASTTypeUtil; import org.eclipse.cdt.core.dom.ast.DOMException; import org.eclipse.cdt.core.dom.ast.IASTExpression; import org.eclipse.cdt.core.dom.ast.IASTName; import org.eclipse.cdt.core.dom.ast.IASTNode; import org.eclipse.cdt.core.dom.ast.IBinding; import org.eclipse.cdt.core.dom.ast.IField; import org.eclipse.cdt.core.dom.ast.IScope; import org.eclipse.cdt.core.dom.ast.IType; import org.eclipse.cdt.core.dom.ast.ITypedef; import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTTemplateParameter; import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTTemplatedTypeTemplateParameter; import org.eclipse.cdt.core.dom.ast.cpp.ICPPBase; import org.eclipse.cdt.core.dom.ast.cpp.ICPPClassTemplatePartialSpecialization; import org.eclipse.cdt.core.dom.ast.cpp.ICPPClassType; import org.eclipse.cdt.core.dom.ast.cpp.ICPPConstructor; import org.eclipse.cdt.core.dom.ast.cpp.ICPPField; import org.eclipse.cdt.core.dom.ast.cpp.ICPPMethod; import org.eclipse.cdt.core.dom.ast.cpp.ICPPScope; import org.eclipse.cdt.core.dom.ast.cpp.ICPPTemplateArgument; import org.eclipse.cdt.core.dom.ast.cpp.ICPPTemplateInstance; import org.eclipse.cdt.core.dom.ast.cpp.ICPPTemplateParameter; import org.eclipse.cdt.core.dom.ast.cpp.ICPPTemplateTemplateParameter; import org.eclipse.cdt.core.parser.util.ArrayUtil; import org.eclipse.cdt.core.parser.util.ObjectMap; import org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPTemplates; import org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPVisitor; /** * A template template parameter. */ public class CPPTemplateTemplateParameter extends CPPTemplateParameter implements ICPPTemplateTemplateParameter, ICPPClassType, ICPPInternalTemplate, ICPPUnknownBinding, ICPPUnknownType { private ICPPTemplateParameter[] templateParameters; private ObjectMap instances; private ICPPScope unknownScope; public CPPTemplateTemplateParameter(IASTName name) { super(name); } public ICPPScope asScope() { if (unknownScope == null) { IASTName n = null; IASTNode[] nodes = getDeclarations(); if (nodes != null && nodes.length > 0) n = (IASTName) nodes[0]; unknownScope = new CPPUnknownScope(this, n); } return unknownScope; } public ICPPTemplateParameter[] getTemplateParameters() { if (templateParameters == null) { ICPPASTTemplatedTypeTemplateParameter template = (ICPPASTTemplatedTypeTemplateParameter) getPrimaryDeclaration().getParent(); ICPPASTTemplateParameter[] params = template.getTemplateParameters(); ICPPTemplateParameter p = null; ICPPTemplateParameter[] result = null; for (ICPPASTTemplateParameter param : params) { IBinding binding = CPPTemplates.getTemplateParameterName(param).resolveBinding(); p= (ICPPTemplateParameter) binding; if (p != null) { result = (ICPPTemplateParameter[]) ArrayUtil.append(ICPPTemplateParameter.class, result, p); } } templateParameters = (ICPPTemplateParameter[]) ArrayUtil.trim(ICPPTemplateParameter.class, result); } return templateParameters; } public IBinding resolveTemplateParameter(ICPPTemplateParameter templateParameter) { return templateParameter; } public ICPPClassTemplatePartialSpecialization[] getTemplateSpecializations() throws DOMException { return ICPPClassTemplatePartialSpecialization.EMPTY_PARTIAL_SPECIALIZATION_ARRAY; } public IType getDefault() { IASTNode[] nds = getDeclarations(); if (nds == null || nds.length == 0) return null; IASTName name = (IASTName) nds[0]; ICPPASTTemplatedTypeTemplateParameter param = (ICPPASTTemplatedTypeTemplateParameter) name.getParent(); IASTExpression defaultValue = param.getDefaultValue(); if (defaultValue != null) return CPPVisitor.createType(defaultValue); return null; } public ICPPTemplateArgument getDefaultValue() { IType d= getDefault(); if (d == null) return null; return new CPPTemplateArgument(d); } public ICPPBase[] getBases() { return ICPPBase.EMPTY_BASE_ARRAY; } public IField[] getFields() throws DOMException { return IField.EMPTY_FIELD_ARRAY; } public IField findField(String name) throws DOMException { return null; } public ICPPField[] getDeclaredFields() throws DOMException { return ICPPField.EMPTY_CPPFIELD_ARRAY; } public ICPPMethod[] getMethods() throws DOMException { return ICPPMethod.EMPTY_CPPMETHOD_ARRAY; } public ICPPMethod[] getAllDeclaredMethods() throws DOMException { return ICPPMethod.EMPTY_CPPMETHOD_ARRAY; } public ICPPMethod[] getDeclaredMethods() throws DOMException { return ICPPMethod.EMPTY_CPPMETHOD_ARRAY; } public ICPPConstructor[] getConstructors() { return ICPPConstructor.EMPTY_CONSTRUCTOR_ARRAY; } public IBinding[] getFriends() throws DOMException { return IBinding.EMPTY_BINDING_ARRAY; } public ICPPClassType[] getNestedClasses() { return ICPPClassType.EMPTY_CLASS_ARRAY; } public int getKey() throws DOMException { return 0; } public IScope getCompositeScope() throws DOMException { return null; } public boolean isSameType(IType type) { if (type == this) return true; if (type instanceof ITypedef) return type.isSameType(this); if (!(type instanceof ICPPTemplateTemplateParameter)) return false; return getParameterID() == ((ICPPTemplateParameter) type).getParameterID(); } public ICPPClassTemplatePartialSpecialization[] getPartialSpecializations() throws DOMException { return ICPPClassTemplatePartialSpecialization.EMPTY_PARTIAL_SPECIALIZATION_ARRAY; } public final void addInstance(ICPPTemplateArgument[] arguments, ICPPTemplateInstance instance) { if (instances == null) instances = new ObjectMap(2); String key= ASTTypeUtil.getArgumentListString(arguments, true); instances.put(key, instance); } public final ICPPTemplateInstance getInstance(ICPPTemplateArgument[] arguments) { if (instances != null) { String key= ASTTypeUtil.getArgumentListString(arguments, true); return (ICPPTemplateInstance) instances.get(key); } return null; } public ICPPTemplateInstance[] getAllInstances() { if (instances != null) { ICPPTemplateInstance[] result= new ICPPTemplateInstance[instances.size()]; for (int i=0; i < instances.size(); i++) { result[i]= (ICPPTemplateInstance) instances.getAt(i); } return result; } return ICPPTemplateInstance.EMPTY_TEMPLATE_INSTANCE_ARRAY; } public IASTName getUnknownName() { return new CPPASTName(getNameCharArray()); } public boolean isAnonymous() { return false; } public ICPPDeferredClassInstance asDeferredInstance() { return null; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
a372b5f5211c8fd5135053879316fc2f5c7c6199
d7e2a9c21e4fa1a94fa1e208b69b6761468b82d9
/flash4j/src/com/emitrom/flash4j/flex/client/ui/mx/Box.java
e9484a338075e52bb6eace3b4ab7bdbe79be7439
[ "Apache-2.0" ]
permissive
sanyaade-mobiledev/Flash4j
a7c803b7db1fff51055be4f76332a652868fec6e
c01ca4a84b0644143d63df2ce51581967caea16f
refs/heads/master
2020-05-17T10:12:49.469911
2013-05-04T18:22:44
2013-05-04T18:22:44
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,575
java
/************************************************************************ Box.java is part of Flash4j 3.0.0 Copyright 2012 Emitrom 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.emitrom.flash4j.flex.client.ui.mx; import com.emitrom.flash4j.core.client.framework.Bridge; import com.google.gwt.core.client.JavaScriptObject; /** * The Class Box. */ public class Box extends Container { /** * Instantiates a new box. */ protected Box(JavaScriptObject obj) { jsObj = obj; } /** * New instance. * * @return the box */ public Box() { jsObj = Bridge.createObject("mx.containers.Box"); } public Box(BoxDirection direction) { this(); setDirection(direction); } /** * Gets the direction. * * @return the direction */ public BoxDirection getDirection() { return BoxDirection.fromValue(_getDirection()); } /** * _get direction. * * @return the string */ private native String _getDirection()/*-{ var peer = this.@com.emitrom.flash4j.core.client.ProxyObject::getJsObj()(); return peer.getdirection(); }-*/; /** * Sets the direction. * * @param direction * the new direction */ public void setDirection(BoxDirection direction) { this.setDirection(direction.value); } /** * Sets the direction. * * @param value * the new direction */ private native void setDirection(String value)/*-{ var peer = this.@com.emitrom.flash4j.core.client.ProxyObject::getJsObj()(); peer.setdirection(value); }-*/; /** * Pixels to percent. * * @param value * the value * @return the double */ public native double pixelsToPercent(double value)/*-{ var peer = this.@com.emitrom.flash4j.core.client.ProxyObject::getJsObj()(); return peer.pixelsToPercent(value); }-*/; }
[ "jazzmatadazz@gmail.com" ]
jazzmatadazz@gmail.com
0cc28e347d3c5c8bd08eca257e3f3411636929c2
b7b714b21bacc3a1b6c6934a4b2e6b256faf7014
/dashbuilder-backend/dashbuilder-dataset-cdi/src/main/java/org/dashbuilder/dataprovider/DataSetProviderRegistryCDI.java
4f172c3cbaf445d192b60b5bffb954b3120b8a41
[ "Apache-2.0" ]
permissive
shanika04/dashbuilder
d749db9c669cd0cf98650cc7b99d379a06119105
5251c6b1d229e17e7070807a5a2f425d862fe400
refs/heads/master
2023-02-16T11:31:18.483648
2021-01-06T13:03:14
2021-01-06T13:03:14
327,313,296
0
0
null
null
null
null
UTF-8
Java
false
false
1,618
java
/* * Copyright 2015 Red Hat, Inc. and/or its affiliates. * * 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.dashbuilder.dataprovider; import javax.annotation.PostConstruct; import javax.enterprise.context.ApplicationScoped; import javax.inject.Inject; @ApplicationScoped public class DataSetProviderRegistryCDI extends DataSetProviderRegistryImpl { @Inject private StaticDataSetProviderCDI staticDataSetProviderCDI; @Inject private BeanDataSetProviderCDI beanDataSetProviderCDI; @Inject private CSVDataSetProviderCDI csvDataSetProviderCDI; @Inject private SQLDataSetProviderCDI sqlDataSetProviderCDI; @Inject private ElasticSearchDataSetProviderCDI elasticSearchDataSetProviderCDI; @PostConstruct private void init() { super.registerDataProvider(staticDataSetProviderCDI); super.registerDataProvider(beanDataSetProviderCDI); super.registerDataProvider(csvDataSetProviderCDI); super.registerDataProvider(sqlDataSetProviderCDI); super.registerDataProvider(elasticSearchDataSetProviderCDI); } }
[ "shani.kagan@whitesourcesoftware.com" ]
shani.kagan@whitesourcesoftware.com
5d1da5e5ce97cfc7da37c90b482689e1d55324b8
24a595d74a3af0834d95768257e76b024980e816
/src/WebSpider.java
7a1fda33bcb133919e480b96c5eebc85881fdcf0
[]
no_license
xiaoxiaobai2/Java_Regular_Expression
aff369632dec6af628f3bf78f5deb439485c6f82
bdd478c31f420a52094594b1b5ee43ff6ea9b0ed
refs/heads/master
2020-08-01T02:59:33.150955
2019-09-26T10:55:59
2019-09-26T10:55:59
210,838,145
0
0
null
null
null
null
UTF-8
Java
false
false
1,698
java
import java.io.*; import java.net.MalformedURLException; import java.net.URL; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * 爬取网页 并用正则表达式 获取特定内容 * @author 张浩 * @date 2019.09.26 */ public class WebSpider { public static void main(String[] args) { String content=getContent("https://www.163.com","网易"); //指定正则匹配规则 Pattern pattern=Pattern.compile("(?<=\")(http.+?)(?=\")"); Matcher matcher=pattern.matcher(content); while (matcher.find()){ //输出每一条符合规则的子串 System.out.println(matcher.group()); } } /** * 获取网页内容 * @param s * @param name * @return */ public static String getContent(String s,String name){ StringBuffer content=new StringBuffer(); //网页内容保存的文件名 File f=new File(name+".txt"); try { URL url=new URL(s); BufferedReader bf=new BufferedReader(new InputStreamReader(url.openStream(),"gbk")); String car=""; BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(new FileOutputStream(f),"gbk")); while (null!=(car=bf.readLine())){ content.append(car); bw.write(car); bw.newLine(); content.append("\n"); } bw.flush(); System.out.println(content); } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } return content.toString(); } }
[ "778998010@qq.com" ]
778998010@qq.com
4f654798d4c1a4bab26b7608f7391d581d81f2d1
896b78ca0ef7fe528e19de20cf5fbd781137b477
/services/hrdb/src/com/auto_yinywuondr/hrdb/service/DepartmentServiceImpl.java
d66bf254430b2a1569cca32cdd0fdecf71adccc0
[]
no_license
wavemakerapps/Auto_yINyWUondR
5d57a8e0e5e2688031c19b23a01a3e0128f3182d
3e935fd98229b4b4ebdce8245c9a5685f4b74ade
refs/heads/master
2021-05-05T21:52:41.750432
2018-01-01T22:53:41
2018-01-01T22:53:41
115,953,184
0
0
null
null
null
null
UTF-8
Java
false
false
7,274
java
/*Copyright (c) 2015-2016 wavemaker.com All Rights Reserved. This software is the confidential and proprietary information of wavemaker.com You shall not disclose such Confidential Information and shall use it only in accordance with the terms of the source code license agreement you entered into with wavemaker.com*/ package com.auto_yinywuondr.hrdb.service; /*This is a Studio Managed File. DO NOT EDIT THIS FILE. Your changes may be reverted by Studio.*/ import java.util.HashMap; import java.util.List; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.context.annotation.Lazy; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import org.springframework.validation.annotation.Validated; import com.wavemaker.runtime.data.dao.WMGenericDao; import com.wavemaker.runtime.data.exception.EntityNotFoundException; import com.wavemaker.runtime.data.export.ExportType; import com.wavemaker.runtime.data.expression.QueryFilter; import com.wavemaker.runtime.data.model.AggregationInfo; import com.wavemaker.runtime.file.model.Downloadable; import com.auto_yinywuondr.hrdb.Department; import com.auto_yinywuondr.hrdb.Employee; /** * ServiceImpl object for domain model class Department. * * @see Department */ @Service("hrdb.DepartmentService") @Validated public class DepartmentServiceImpl implements DepartmentService { private static final Logger LOGGER = LoggerFactory.getLogger(DepartmentServiceImpl.class); @Lazy @Autowired @Qualifier("hrdb.EmployeeService") private EmployeeService employeeService; @Autowired @Qualifier("hrdb.DepartmentDao") private WMGenericDao<Department, Integer> wmGenericDao; public void setWMGenericDao(WMGenericDao<Department, Integer> wmGenericDao) { this.wmGenericDao = wmGenericDao; } @Transactional(value = "hrdbTransactionManager") @Override public Department create(Department department) { LOGGER.debug("Creating a new Department with information: {}", department); List<Employee> employees = department.getEmployees(); Department departmentCreated = this.wmGenericDao.create(department); if(employees != null) { for(Employee _employee : employees) { _employee.setDepartment(departmentCreated); LOGGER.debug("Creating a new child Employee with information: {}", _employee); employeeService.create(_employee); } } return departmentCreated; } @Transactional(readOnly = true, value = "hrdbTransactionManager") @Override public Department getById(Integer departmentId) throws EntityNotFoundException { LOGGER.debug("Finding Department by id: {}", departmentId); Department department = this.wmGenericDao.findById(departmentId); if (department == null){ LOGGER.debug("No Department found with id: {}", departmentId); throw new EntityNotFoundException(String.valueOf(departmentId)); } return department; } @Transactional(readOnly = true, value = "hrdbTransactionManager") @Override public Department findById(Integer departmentId) { LOGGER.debug("Finding Department by id: {}", departmentId); return this.wmGenericDao.findById(departmentId); } @Transactional(readOnly = true, value = "hrdbTransactionManager") @Override public Department getByDeptCode(String deptCode) { Map<String, Object> deptCodeMap = new HashMap<>(); deptCodeMap.put("deptCode", deptCode); LOGGER.debug("Finding Department by unique keys: {}", deptCodeMap); Department department = this.wmGenericDao.findByUniqueKey(deptCodeMap); if (department == null){ LOGGER.debug("No Department found with given unique key values: {}", deptCodeMap); throw new EntityNotFoundException(String.valueOf(deptCodeMap)); } return department; } @Transactional(rollbackFor = EntityNotFoundException.class, value = "hrdbTransactionManager") @Override public Department update(Department department) throws EntityNotFoundException { LOGGER.debug("Updating Department with information: {}", department); this.wmGenericDao.update(department); Integer departmentId = department.getDeptId(); return this.wmGenericDao.findById(departmentId); } @Transactional(value = "hrdbTransactionManager") @Override public Department delete(Integer departmentId) throws EntityNotFoundException { LOGGER.debug("Deleting Department with id: {}", departmentId); Department deleted = this.wmGenericDao.findById(departmentId); if (deleted == null) { LOGGER.debug("No Department found with id: {}", departmentId); throw new EntityNotFoundException(String.valueOf(departmentId)); } this.wmGenericDao.delete(deleted); return deleted; } @Transactional(readOnly = true, value = "hrdbTransactionManager") @Override public Page<Department> findAll(QueryFilter[] queryFilters, Pageable pageable) { LOGGER.debug("Finding all Departments"); return this.wmGenericDao.search(queryFilters, pageable); } @Transactional(readOnly = true, value = "hrdbTransactionManager") @Override public Page<Department> findAll(String query, Pageable pageable) { LOGGER.debug("Finding all Departments"); return this.wmGenericDao.searchByQuery(query, pageable); } @Transactional(readOnly = true, value = "hrdbTransactionManager") @Override public Downloadable export(ExportType exportType, String query, Pageable pageable) { LOGGER.debug("exporting data in the service hrdb for table Department to {} format", exportType); return this.wmGenericDao.export(exportType, query, pageable); } @Transactional(readOnly = true, value = "hrdbTransactionManager") @Override public long count(String query) { return this.wmGenericDao.count(query); } @Transactional(readOnly = true, value = "hrdbTransactionManager") @Override public Page<Map<String, Object>> getAggregatedValues(AggregationInfo aggregationInfo, Pageable pageable) { return this.wmGenericDao.getAggregatedValues(aggregationInfo, pageable); } @Transactional(readOnly = true, value = "hrdbTransactionManager") @Override public Page<Employee> findAssociatedEmployees(Integer deptId, Pageable pageable) { LOGGER.debug("Fetching all associated employees"); StringBuilder queryBuilder = new StringBuilder(); queryBuilder.append("department.deptId = '" + deptId + "'"); return employeeService.findAll(queryBuilder.toString(), pageable); } /** * This setter method should only be used by unit tests * * @param service EmployeeService instance */ protected void setEmployeeService(EmployeeService service) { this.employeeService = service; } }
[ "automate1@wavemaker.com" ]
automate1@wavemaker.com
a64d2793f10723ee2cc7285afd879f64b0446eb7
fa93c9be2923e697fb8a2066f8fb65c7718cdec7
/sources/com/google/android/gms/internal/mlkit_vision_common/zzeh.java
f7c991aee81dbda05991270dc89581eac05c7ab7
[]
no_license
Auch-Auch/avito_source
b6c9f4b0e5c977b36d5fbc88c52f23ff908b7f8b
76fdcc5b7e036c57ecc193e790b0582481768cdc
refs/heads/master
2023-05-06T01:32:43.014668
2021-05-25T10:19:22
2021-05-25T10:19:22
370,650,685
0
0
null
null
null
null
UTF-8
Java
false
false
1,244
java
package com.google.android.gms.internal.mlkit_vision_common; import com.google.android.gms.internal.mlkit_vision_common.zzej; public final class zzeh implements zzfs { private static final zzeh zza = new zzeh(); private zzeh() { } public static zzeh zza() { return zza; } @Override // com.google.android.gms.internal.mlkit_vision_common.zzfs public final zzfp zzb(Class<?> cls) { if (!zzej.class.isAssignableFrom(cls)) { String name = cls.getName(); throw new IllegalArgumentException(name.length() != 0 ? "Unsupported message type: ".concat(name) : new String("Unsupported message type: ")); } try { return (zzfp) zzej.zza((Class<zzej>) cls.asSubclass(zzej.class)).zza(zzej.zzf.zzc, (Object) null, (Object) null); } catch (Exception e) { String name2 = cls.getName(); throw new RuntimeException(name2.length() != 0 ? "Unable to get message info for ".concat(name2) : new String("Unable to get message info for "), e); } } @Override // com.google.android.gms.internal.mlkit_vision_common.zzfs public final boolean zza(Class<?> cls) { return zzej.class.isAssignableFrom(cls); } }
[ "auchhunter@gmail.com" ]
auchhunter@gmail.com
225150e7e7f8358a052653e91871183b7295b0d3
a8f3b7921f9f0e6508571fac4cdf7836c5cce176
/src/web_erp/service/DeptService.java
a34e8b121da61f1c4c820291316d2ae7a59f4131
[]
no_license
stpn94/web_erp
ef78f09871ebdcc7f33d3774053cbc40b2f7b8a6
cb61e2db8edc3aa6e76cf87d892ac94f1aa9e472
refs/heads/master
2023-04-03T23:43:58.137958
2021-04-06T03:46:08
2021-04-06T03:46:08
353,921,300
0
0
null
null
null
null
UTF-8
Java
false
false
883
java
package web_erp.service; import java.sql.Connection; import java.util.List; import web_erp.ds.JndiDs; import web_erp.dto.Department; import web_erp.dto.Title; import web_erp.impl.DepartmentDaoImpl; public class DeptService { private Connection con = JndiDs.getConnection(); private DepartmentDaoImpl dao = DepartmentDaoImpl.getInstance(); public DeptService() { dao.setCon(con); } public List<Department> showDepartments() { return dao.selectDepartmentByAll(); } public void addDepartment(Department department) { dao.insertDepartment(department); } public Department showDept(Department department) { return dao.selectDepartmentByNo(department); } public void upDept(Department department) { dao.updateDepartment(department); } public void delDept(int department) { dao.deleteDepartment(department); } }
[ "stpn94@gmail.com" ]
stpn94@gmail.com
3e805ae887477d8126bc2f0e2a0ba6442594d2e6
93b0beab85ffb1e6e4ebd4a2129aea3c72851567
/ppdai-sms/ac-sms-api/ac-sms-api-gateway/src/main/java/com/ppdai/ac/sms/api/gateway/ApplicationBoot.java
05b352885c31e03acaad6b8c921c18d7c4353103
[]
no_license
qqbenst/sms
3d60a06d846bbe57fdae366513252c7ef2888fc2
6cda716eea98aae84ace153a8b1b82e886509fb4
refs/heads/master
2021-12-22T10:11:56.962033
2017-10-12T14:39:27
2017-10-12T14:39:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,483
java
package com.ppdai.ac.sms.api.gateway; /** * Created by kiekiyang on 2017/4/12. */ //import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig; import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig; import org.springframework.boot.CommandLineRunner; import org.springframework.boot.ExitCodeGenerator; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.web.servlet.ServletComponentScan; import org.springframework.boot.web.support.SpringBootServletInitializer; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.cloud.netflix.feign.EnableFeignClients; import org.springframework.context.annotation.ComponentScan; import springfox.documentation.swagger2.annotations.EnableSwagger2; //import ppdai.servlet.CatServletFilter; @SpringBootApplication @EnableSwagger2 @EnableDiscoveryClient @EnableApolloConfig @EnableFeignClients(basePackages = {"com.ppdai.ac.sms.api.gateway"}) @ComponentScan(basePackages = {"com.ppdai.ac.sms.api.gateway", "com.ppdai.ac.sms.common.redis", "com.ppdai.ac.sms.common.service", "com.ppdai.framework.microservice.*"}) @ServletComponentScan public class ApplicationBoot extends SpringBootServletInitializer implements CommandLineRunner { public void run(String... arg0) throws Exception { if (arg0.length > 0 && arg0[0].equals("exitcode")) { throw new ExitException(); } } protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { return super.configure(builder); } public static void main(String[] args) throws Exception { new SpringApplicationBuilder(ApplicationBoot.class).web(true).run(args); } class ExitException extends RuntimeException implements ExitCodeGenerator { private static final long serialVersionUID = 1L; @Override public int getExitCode() { return 10; } } // @Bean // public FilterRegistrationBean FilterRegistrationBean() { // FilterRegistrationBean filterRegisterationBaan = new FilterRegistrationBean(); // filterRegisterationBaan.setFilter(new CatServletFilter()); // List list = new ArrayList<>(); // list.add("/*"); // filterRegisterationBaan.setUrlPatterns(list); // return filterRegisterationBaan; // } }
[ "442620332@qq.com" ]
442620332@qq.com
62df03e8386fa98158c9de524dfeec84cdba36fc
b1f51f8ba05ad83ecfbd80e6e7f140e70850bf01
/ACE_ERP/src/Payroll/p050001_t2.java
4940b22440a618ee11b30be295277d79893addf9
[]
no_license
hyundaimovex-asanwas/asanwas-homepage
27e0ba1ed7b41313069e732f3dc9df20053caddd
75e30546f11258d8b70159cfbe8ee36b18371bd0
refs/heads/master
2023-06-07T03:41:10.170367
2021-07-01T10:23:54
2021-07-01T10:23:54
376,739,168
1
1
null
null
null
null
UHC
Java
false
false
6,209
java
package Payroll; import com.gauce.*; import com.gauce.io.*; import com.gauce.common.*; import com.gauce.log.*; import com.gauce.db.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class p050001_t2 extends HttpServlet{ public void doPost(HttpServletRequest req,HttpServletResponse res) { ServiceLoader loader = null; GauceService service = null; GauceContext context = null; Logger logger = null; GauceDBConnection conn = null; try{ loader = new ServiceLoader(req, res); service = loader.newService(); context = service.getContext(); logger = context.getLogger(); GauceRequest reqGauce = null; GauceResponse resGauce = null; try { conn = service.getDBConnection(); Statement stmt2 = conn.createStatement(); ResultSet rs2 = null; reqGauce = service.getGauceRequest(); resGauce = service.getGauceResponse(); GauceDataSet userSet = reqGauce.getGauceDataSet("USER"); int idxSTDYM = userSet.indexOfColumn("STDYM"); int idxGRDCD = userSet.indexOfColumn("GRDCD"); int idxLOWAMT = userSet.indexOfColumn("LOWAMT"); int idxHIGAMT = userSet.indexOfColumn("HIGAMT"); int idxSTDAMT = userSet.indexOfColumn("STDAMT"); int idxINSAMT1 = userSet.indexOfColumn("INSAMT1"); int idxINSAMT2 = userSet.indexOfColumn("INSAMT2"); int idxINSSUM = userSet.indexOfColumn("INSSUM"); GauceDataRow[] rows = userSet.getDataRows(); /*Statement stmt2 = conn.createStatement(); String sql2 = " SELECT MAX(ZIPSEQ) + 1 ZIPSEQ FROM PAYROLL.HCPOSTNO "; ResultSet rs2 = stmt2.executeQuery(sql2); int dbl_zipseq = 0; if(rs2.next()){ dbl_zipseq = rs2.getInt(1); }*/ StringBuffer InsertSql = null; StringBuffer UpdateSql = null; StringBuffer DeleteSql = null; String sql2 = ""; for (int j = 0; j < rows.length; j++){ if(rows[j].getJobType() == GauceDataRow.TB_JOB_INSERT) { sql2 = " SELECT STDYM,GRDCD FROM PAYROLL.PWPENTBL WHERE "; sql2 += " STDYM='"+rows[j].getString(idxSTDYM)+"' "; sql2 += " AND GRDCD="+rows[j].getInt(idxGRDCD)+" "; rs2 = stmt2.executeQuery(sql2); //logger.err.println(this,"2"); if(rs2.next()){ UpdateSql = new StringBuffer(); UpdateSql.append( "UPDATE PAYROLL.PWPENTBL SET " ); UpdateSql.append( " LOWAMT = ?, " ); UpdateSql.append( " HIGAMT = ?, " ); UpdateSql.append( " STDAMT = ?, " ); UpdateSql.append( " INSAMT1 = ?, " ); UpdateSql.append( " INSAMT2 = ?, " ); UpdateSql.append( " INSSUM = ? " ); UpdateSql.append( " WHERE STDYM = ? " ); UpdateSql.append( " AND GRDCD = ? " ); GauceStatement gsmt = conn.getGauceStatement(UpdateSql.toString()); //logger.dbg.println(this,UpdateSql.toString()); gsmt.setGauceDataRow(rows[j]); gsmt.bindColumn(1, idxLOWAMT); gsmt.bindColumn(2, idxHIGAMT); gsmt.bindColumn(3, idxSTDAMT); gsmt.bindColumn(4, idxINSAMT1); gsmt.bindColumn(5, idxINSAMT2); gsmt.bindColumn(6, idxINSSUM); gsmt.bindColumn(7, idxSTDYM); gsmt.bindColumn(8, idxGRDCD); gsmt.executeUpdate(); gsmt.close(); UpdateSql=null; }else{ InsertSql = new StringBuffer(); InsertSql.append( "INSERT INTO PAYROLL.PWPENTBL ( " ); InsertSql.append( "STDYM,GRDCD,LOWAMT,HIGAMT,STDAMT,INSAMT1,INSAMT2,INSSUM " ); InsertSql.append( ") VALUES( " ); InsertSql.append( " ?, ?, ?, ?, ?, ?, ?, ?) " ); GauceStatement gsmt = conn.getGauceStatement(InsertSql.toString()); gsmt.setGauceDataRow(rows[j]); gsmt.bindColumn(1, idxSTDYM); gsmt.bindColumn(2, idxGRDCD); gsmt.bindColumn(3, idxLOWAMT); gsmt.bindColumn(4, idxHIGAMT); gsmt.bindColumn(5, idxSTDAMT); gsmt.bindColumn(6, idxINSAMT1); gsmt.bindColumn(7, idxINSAMT2); gsmt.bindColumn(8, idxINSSUM); gsmt.executeUpdate(); gsmt.close(); InsertSql=null; } sql2=""; rs2.close(); } if(rows[j].getJobType() == GauceDataRow.TB_JOB_UPDATE) { UpdateSql = new StringBuffer(); UpdateSql.append( "UPDATE PAYROLL.PWPENTBL SET " ); UpdateSql.append( " LOWAMT = ?, " ); UpdateSql.append( " HIGAMT = ?, " ); UpdateSql.append( " STDAMT = ?, " ); UpdateSql.append( " INSAMT1 = ?, " ); UpdateSql.append( " INSAMT2 = ?, " ); UpdateSql.append( " INSSUM = ? " ); UpdateSql.append( " WHERE STDYM = ? " ); UpdateSql.append( " AND GRDCD = ? " ); GauceStatement gsmt = conn.getGauceStatement(UpdateSql.toString()); logger.dbg.println(this,UpdateSql.toString()); gsmt.setGauceDataRow(rows[j]); gsmt.bindColumn(1, idxLOWAMT); gsmt.bindColumn(2, idxHIGAMT); gsmt.bindColumn(3, idxSTDAMT); gsmt.bindColumn(4, idxINSAMT1); gsmt.bindColumn(5, idxINSAMT2); gsmt.bindColumn(6, idxINSSUM); gsmt.bindColumn(7, idxSTDYM); gsmt.bindColumn(8, idxGRDCD); gsmt.executeUpdate(); gsmt.close(); UpdateSql=null; } if(rows[j].getJobType() == GauceDataRow.TB_JOB_DELETE ) { DeleteSql = new StringBuffer(); DeleteSql.append( "DELETE FROM PAYROLL.PWPENTBL WHERE STDYM = ? AND GRDCD = ? " ); logger.dbg.println(this,"DeleteSql :"+ DeleteSql.toString()); GauceStatement gsmt = conn.getGauceStatement(DeleteSql.toString()); logger.dbg.println(this,DeleteSql.toString()); gsmt.setGauceDataRow(rows[j]); gsmt.bindColumn(1, idxSTDYM); gsmt.bindColumn(2, idxGRDCD); gsmt.executeUpdate(); gsmt.close(); DeleteSql=null; } } } catch(Exception e){ resGauce.writeException("Native","1111","저장시 알수없는 에러발생!!(Error Code :"+e.toString()+")"); } resGauce.flush(); resGauce.commit(); resGauce.close(); } catch (Exception e) { logger.err.println(this,e); logger.dbg.println(this,e.toString()); } finally { if (conn != null) { try { conn.close(true); } catch (Exception e) {}} loader.restoreService(service); } } }
[ "86274611+evnmoon@users.noreply.github.com" ]
86274611+evnmoon@users.noreply.github.com
8897f8a1aedc2db8f1037b75264cd58f852d8af6
159f75d12bb51bff89497499c2dbc2971ad8dc3e
/edelta.parent/edelta.examples/src/edelta/stdlib/examples/ChangeReferenceTypeExampleMain.java
bf8a22d535953be5119ece2bdc3b2baf3638b945
[]
no_license
LorenzoBettini/edelta
f406a305b99bdf30e373cb26d097df8ae256da6c
b011c66859f7751bd8434e91d87ace681978f1c1
refs/heads/master
2023-07-02T10:07:46.624753
2023-06-08T11:36:36
2023-06-08T11:36:36
97,230,480
8
7
null
2023-06-08T10:02:02
2017-07-14T12:13:27
Java
UTF-8
Java
false
false
712
java
package edelta.stdlib.examples; import edelta.lib.EdeltaEngine; public class ChangeReferenceTypeExampleMain { public static void main(String[] args) throws Exception { // create the engine specifying the generated Java class EdeltaEngine engine = new EdeltaEngine(ChangeReferenceTypeExample::new); // Make sure you load all the used Ecores (Ecore.ecore is always loaded) engine.loadEcoreFile("model/PersonListForChangeType.ecore"); // and the model files you want to migrate engine.loadModelFile("model/ListForChangeType.xmi"); // Execute the actual transformations defined in the DSL engine.execute(); // Save the modified Ecores and models into a new path engine.save("modified"); } }
[ "lorenzo.bettini@gmail.com" ]
lorenzo.bettini@gmail.com
c3b996cce3dc8eeef54d73909f08a812ae3e9e53
fbf95d693ad5beddfb6ded0be170a9e810a10677
/core-services/egov-enc-service/src/main/java/org/egov/enc/models/Plaintext.java
e168b2509cfdedb8a3bf16afe19a0130de8a07db
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
egovernments/DIGIT-OSS
330cc364af1b9b66db8914104f64a0aba666426f
bf02a2c7eb783bf9fdf4b173faa37f402e05e96e
refs/heads/master
2023-08-15T21:26:39.992558
2023-08-08T10:14:31
2023-08-08T10:14:31
353,807,330
25
91
MIT
2023-09-10T13:23:31
2021-04-01T19:35:55
Java
UTF-8
Java
false
false
364
java
package org.egov.enc.models; import lombok.AllArgsConstructor; import lombok.Getter; @AllArgsConstructor @Getter public class Plaintext { private String tenantId; private String plaintext; public Plaintext(String plaintext) { this.plaintext = plaintext; } @Override public String toString() { return plaintext; } }
[ "36623418+nithindv@users.noreply.github.com" ]
36623418+nithindv@users.noreply.github.com
90f8e330392c01830aeba4956a4aabd96f7cc677
ba3b25d6cf9be46007833ce662d0584dc1246279
/droidsafe_modified/modeling/api/org/apache/http/HttpConnection.java
09f8e1317c84d4c06facaed6d989a80a680f8ec1
[]
no_license
suncongxd/muDep
46552d4156191b9dec669e246188080b47183a01
b891c09f2c96ff37dcfc00468632bda569fc8b6d
refs/heads/main
2023-03-20T20:04:41.737805
2021-03-01T19:52:08
2021-03-01T19:52:08
326,209,904
8
0
null
null
null
null
UTF-8
Java
false
false
3,480
java
/* * Copyright (C) 2015, Massachusetts Institute of Technology * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Please email droidsafe@lists.csail.mit.edu if you need additional * information or have any questions. * * * This file incorporates work covered by the following copyright and * permission notice: * * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/HttpConnection.java $ * $Revision: 548031 $ * $Date: 2007-06-17 04:28:38 -0700 (Sun, 17 Jun 2007) $ * * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * */ /***** THIS FILE HAS BEEN MODIFIED FROM THE ORIGINAL BY THE DROIDSAFE PROJECT. *****/ package org.apache.http; // Droidsafe Imports import droidsafe.runtime.*; import droidsafe.helpers.*; import droidsafe.annotations.*; import java.io.IOException; public interface HttpConnection { @DSComment("Abstract Method") @DSSpec(DSCat.ABSTRACT_METHOD) public void close() throws IOException; @DSComment("Abstract Method") @DSSpec(DSCat.ABSTRACT_METHOD) public boolean isOpen(); @DSComment("Abstract Method") @DSSpec(DSCat.ABSTRACT_METHOD) public boolean isStale(); @DSComment("Abstract Method") @DSSpec(DSCat.ABSTRACT_METHOD) void setSocketTimeout(int timeout); @DSComment("Abstract Method") @DSSpec(DSCat.ABSTRACT_METHOD) int getSocketTimeout(); @DSComment("Abstract Method") @DSSpec(DSCat.ABSTRACT_METHOD) public void shutdown() throws IOException; @DSComment("Abstract Method") @DSSpec(DSCat.ABSTRACT_METHOD) HttpConnectionMetrics getMetrics(); }
[ "suncong@xidian.edu.cn" ]
suncong@xidian.edu.cn
dccd8ed0da2e84887fdee08f171418ea2945d540
09d0ddd512472a10bab82c912b66cbb13113fcbf
/TestApplications/TF-BETA-THERMATK-v5.7.1/DecompiledCode/JADX/src/main/java/org/telegram/p004ui/C2131-$$Lambda$WallpaperActivity$1kBuywjigfsWiHQkwiP2IyEMOss.java
81bf25df81529775d67a4a62f8109b94f85803fb
[]
no_license
sgros/activity_flow_plugin
bde2de3745d95e8097c053795c9e990c829a88f4
9e59f8b3adacf078946990db9c58f4965a5ccb48
refs/heads/master
2020-06-19T02:39:13.865609
2019-07-08T20:17:28
2019-07-08T20:17:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
687
java
package org.telegram.p004ui; import android.view.View; import android.view.View.OnClickListener; /* compiled from: lambda */ /* renamed from: org.telegram.ui.-$$Lambda$WallpaperActivity$1kBuywjigfsWiHQkwiP2IyEMOss */ public final /* synthetic */ class C2131-$$Lambda$WallpaperActivity$1kBuywjigfsWiHQkwiP2IyEMOss implements OnClickListener { private final /* synthetic */ WallpaperActivity f$0; public /* synthetic */ C2131-$$Lambda$WallpaperActivity$1kBuywjigfsWiHQkwiP2IyEMOss(WallpaperActivity wallpaperActivity) { this.f$0 = wallpaperActivity; } public final void onClick(View view) { this.f$0.lambda$createView$1$WallpaperActivity(view); } }
[ "crash@home.home.hr" ]
crash@home.home.hr
36d3515bbf8f82ccee7cf8ba10cc4f692aebad1c
4160cb7c725d20af9773f2ce4ab100adaebb4982
/src/main/java/com/qxcmp/bible/BibleSearchRequest.java
574f11e36569d890bddd6fa6ba0353425d5c74ad
[ "Apache-2.0" ]
permissive
LuZhongliang/qxcmp-bible
16ba039b01b031d72d04bc55db179d075fd6e8a4
36916e12db51d53926061d6e1639008c85663635
refs/heads/master
2021-09-02T11:18:33.242569
2018-01-02T08:38:32
2018-01-02T08:38:32
null
0
0
null
null
null
null
UTF-8
Java
false
false
747
java
package com.qxcmp.bible; import lombok.Builder; import lombok.Data; /** * 圣经搜索请求 * * @author Aaric * @see BibleSearchResponse */ @Data @Builder public class BibleSearchRequest { /** * 圣经版本 */ private BibleVersion version; /** * 书卷名称 - 对应的圣经版本实际名称 */ private String book; /** * 章节数 */ private int chapter; /** * 是否搜索整个章节 */ private boolean wholeChapter; /** * 如果不是搜索整个章节,则表示搜索的起始经文数 */ private int startVerse; /** * 如果不是搜索整个章节,则表示搜索的结束经文数 */ private int endVerse; }
[ "aaricchen@foxmail.com" ]
aaricchen@foxmail.com
3185517ba93fa39767e12a3f060c8154d33782e9
0da40259673d642aaf8b5685d36d9f240a5fc67a
/projects/jasn1-compiler/src/test/java-gen/org/openmuc/jasn1/compiler/rspdefinitions/generated/pkix1implicit88/NameConstraints.java
e854a3955bc47289cea19abaa2ac10fa812bc5a7
[]
no_license
leerduo/jASN1
ae389412e3ba47b3ad48b79fb9ffa36188f571ba
48cc84955590db91313c3c73b468c311d803c706
refs/heads/master
2021-01-11T21:35:10.565155
2016-11-29T17:57:09
2016-11-29T17:57:09
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,086
java
/** * This class file was automatically generated by jASN1 v1.6.1-SNAPSHOT (http://www.openmuc.org) */ package org.openmuc.jasn1.compiler.rspdefinitions.generated.pkix1implicit88; import java.io.IOException; import java.io.EOFException; import java.io.InputStream; import java.util.List; import java.util.ArrayList; import java.util.Iterator; import java.io.UnsupportedEncodingException; import org.openmuc.jasn1.ber.*; import org.openmuc.jasn1.ber.types.*; import org.openmuc.jasn1.ber.types.string.*; import org.openmuc.jasn1.compiler.rspdefinitions.generated.teletexdomaindefinedattributes.*; import org.openmuc.jasn1.compiler.rspdefinitions.generated.rspdefinitions.*; import org.openmuc.jasn1.compiler.rspdefinitions.generated.pkix1explicit88.*; public class NameConstraints { public static final BerIdentifier identifier = new BerIdentifier(BerIdentifier.UNIVERSAL_CLASS, BerIdentifier.CONSTRUCTED, 16); protected BerIdentifier id; public byte[] code = null; public GeneralSubtrees permittedSubtrees = null; public GeneralSubtrees excludedSubtrees = null; public NameConstraints() { id = identifier; } public NameConstraints(byte[] code) { id = identifier; this.code = code; } public NameConstraints(GeneralSubtrees permittedSubtrees, GeneralSubtrees excludedSubtrees) { id = identifier; this.permittedSubtrees = permittedSubtrees; this.excludedSubtrees = excludedSubtrees; } public int encode(BerByteArrayOutputStream os, boolean explicit) throws IOException { int codeLength; if (code != null) { codeLength = code.length; for (int i = code.length - 1; i >= 0; i--) { os.write(code[i]); } } else { codeLength = 0; if (excludedSubtrees != null) { codeLength += excludedSubtrees.encode(os, false); // write tag: CONTEXT_CLASS, CONSTRUCTED, 1 os.write(0xa1); codeLength += 1; } if (permittedSubtrees != null) { codeLength += permittedSubtrees.encode(os, false); // write tag: CONTEXT_CLASS, CONSTRUCTED, 0 os.write(0xa0); codeLength += 1; } codeLength += BerLength.encodeLength(os, codeLength); } if (explicit) { codeLength += id.encode(os); } return codeLength; } public int decode(InputStream is, boolean explicit) throws IOException { int codeLength = 0; int subCodeLength = 0; BerIdentifier berIdentifier = new BerIdentifier(); if (explicit) { codeLength += id.decodeAndCheck(is); } BerLength length = new BerLength(); codeLength += length.decode(is); int totalLength = length.val; codeLength += totalLength; if (totalLength == 0) { return codeLength; } subCodeLength += berIdentifier.decode(is); if (berIdentifier.equals(BerIdentifier.CONTEXT_CLASS, BerIdentifier.CONSTRUCTED, 0)) { permittedSubtrees = new GeneralSubtrees(); subCodeLength += permittedSubtrees.decode(is, false); if (subCodeLength == totalLength) { return codeLength; } subCodeLength += berIdentifier.decode(is); } if (berIdentifier.equals(BerIdentifier.CONTEXT_CLASS, BerIdentifier.CONSTRUCTED, 1)) { excludedSubtrees = new GeneralSubtrees(); subCodeLength += excludedSubtrees.decode(is, false); if (subCodeLength == totalLength) { return codeLength; } } throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength); } public void encodeAndSave(int encodingSizeGuess) throws IOException { BerByteArrayOutputStream os = new BerByteArrayOutputStream(encodingSizeGuess); encode(os, false); code = os.getArray(); } public String toString() { StringBuilder sb = new StringBuilder("SEQUENCE{"); boolean firstSelectedElement = true; if (permittedSubtrees != null) { sb.append("permittedSubtrees: ").append(permittedSubtrees); firstSelectedElement = false; } if (excludedSubtrees != null) { if (!firstSelectedElement) { sb.append(", "); } sb.append("excludedSubtrees: ").append(excludedSubtrees); firstSelectedElement = false; } sb.append("}"); return sb.toString(); } }
[ "karsten.ohme@ohmesoftware.de" ]
karsten.ohme@ohmesoftware.de
4654e430c9b3bb7304bc9bb110417e7e542d63a3
4505e3e21447c803e5f23d2d40abf182e6d0ed78
/analysis/src/main/java/edu/stanford/nlp/util/concurrent/ThreadsafeProcessor.java
64fadae51222823ad222efbcbb54e18ab0cfaf55
[]
no_license
photon3710/es_test
76e182267412db5d0ef20cbb97a4d34f1079b98b
83f9f67906ef9c9ce60c5532f804f7d947dfa56b
refs/heads/master
2021-01-21T16:44:07.347016
2015-07-30T09:15:14
2015-07-30T09:15:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
707
java
package edu.stanford.nlp.util.concurrent; /** * Objects that wish to use MulticoreWrapper for multicore support must implement * this interface. Objects that implement this interface should, of course, be threadsafe. * * @param <I> input type * @param <O> output type * @author Spence Green */ public interface ThreadsafeProcessor<I, O> { /** * Set the input item that will be processed when a thread is allocated to * this processor. * * @param input the object to be processed * @return the result of the processing */ public O process(I input); /** * Return a new threadsafe instance. */ public ThreadsafeProcessor<I, O> newInstance(); }
[ "ashley.wang@misingularity.io" ]
ashley.wang@misingularity.io
72a5f8b19d6dbfc8e50beac84db9fd07874cc6f9
c8664fc194971e6e39ba8674b20d88ccfa7663b1
/org/a/c/d.java
5bd200f4e7e7cc358e558b20d287f1088ee54cd5
[]
no_license
raochuan/wexin1120
b926bc8d4143c4b523ed43e265cd20ef0c89ad40
1eaa71e1e3e7c9f9b9f96db8de56db3dfc4fb4d3
refs/heads/master
2020-05-17T23:57:00.000696
2017-11-03T02:33:27
2017-11-03T02:33:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
281
java
package org.a.c; import org.a.d.c; public abstract interface d { public abstract String a(c paramc); } /* Location: /Users/xianghongyan/decompile/dex2jar/classes2-dex2jar.jar!/org/a/c/d.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "15223790237@139.com" ]
15223790237@139.com
4ed48dfd5ef8c4f95b16beb95a5641140ed5f5cc
163e37c8899cd6689828980baa6d058a064dc98e
/src/JavaIO/FileDemo.java
c226c1b405923c928dfc96caa57056ff0281d916
[]
no_license
sh2268411762/Java
f4ffb76decac318d99334251615c5b26bee86b99
1d6e89338e02dddb67056b5353eb498876ef381c
refs/heads/master
2023-01-09T10:51:23.847574
2020-11-11T11:24:51
2020-11-11T11:24:51
257,934,424
0
0
null
null
null
null
UTF-8
Java
false
false
1,874
java
/** * */ package JavaIO; import java.io.*; /** * @Description File类 * @author 孙豪 * @version 版本 * @Date 2020年10月23日下午11:06:44 */ public class FileDemo { public static void main(String[] args) { try { File file = new File("Data.json"); System.out.println("创建文件Data.json"); System.out.println("创建成功?:" + file.createNewFile()); //原本就有 System.out.println("判断文件名是否为绝对路径:" + file.isAbsolute()); //相对路径 System.out.println("判断指定路径是否为目录:" + file.isDirectory()); //文件 System.out.println("判断指定路径是否为文件:" + file.isFile()); //文件 System.out.println("判断指定路径是否为隐藏文件:" + file.isHidden()); //不是隐藏文件 System.out.println("文件是否是可执行文件:" + file.canExecute()); //是可执行文件 System.out.println("文件是否可读:" + file.canRead()); //可读 System.out.println("文件是否可写:" + file.canWrite()); //可写 System.out.println("判断文件是否存在:" + file.exists()); //存在 System.out.println("绝对路径名字的字符串:" + file.getAbsolutePath());//绝对路径名 System.out.println("获取文件或目录的名称:" + file.getName()); //文件名 System.out.println("获取文件或目录的父目录名称(不存在返回null):" + file.getParent()); System.out.println("获取相对路径名称的字符串:" + file.getPath()); //相对路径名称 System.out.println("返回相对路径的哈希值:" + file.hashCode()); //哈希值 System.out.println("获取指定文件字节长度:" + file.length()); //文件字节长度 } catch (Exception e) { // TODO: handle exception } } }
[ "2268411762@qq.com" ]
2268411762@qq.com
2c65ced3b3ea06bdc05602622ecb0f0b88c889d1
9856541e29e2597f2d0a7ef4729208190d9bbebe
/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ExtendedServletRequestDataBinderTests.java
5b8a7152fe67b1663e9609a55507dda4dc48f797
[ "Apache-2.0" ]
permissive
lakeslove/springSourceCodeTest
74bffc0756fa5ea844278827d86a085b9fe4c14e
25caac203de57c4b77268be60df2dcb2431a03e1
refs/heads/master
2020-12-02T18:10:14.048955
2017-07-07T00:41:55
2017-07-07T00:41:55
96,483,747
1
0
null
null
null
null
UTF-8
Java
false
false
2,938
java
/* * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.web.servlet.mvc.method.annotation; import java.util.HashMap; import java.util.Map; import org.junit.Before; import org.junit.Test; import org.springframework.mock.web.test.MockHttpServletRequest; import org.springframework.tests.sample.beans.TestBean; import org.springframework.web.bind.ServletRequestDataBinder; import org.springframework.web.bind.WebDataBinder; import org.springframework.web.servlet.HandlerMapping; import static org.junit.Assert.*; /** * Test fixture for {@link ExtendedServletRequestDataBinder}. * * @author Rossen Stoyanchev */ public class ExtendedServletRequestDataBinderTests { private MockHttpServletRequest request; @Before public void setup() { this.request = new MockHttpServletRequest(); } @Test public void createBinder() throws Exception { Map<String, String> uriTemplateVars = new HashMap<String, String>(); uriTemplateVars.put("name", "nameValue"); uriTemplateVars.put("age", "25"); request.setAttribute(HandlerMapping.URI_TEMPLATE_VARIABLES_ATTRIBUTE, uriTemplateVars); TestBean target = new TestBean(); WebDataBinder binder = new ExtendedServletRequestDataBinder(target, ""); ((ServletRequestDataBinder) binder).bind(request); assertEquals("nameValue", target.getName()); assertEquals(25, target.getAge()); } @Test public void uriTemplateVarAndRequestParam() throws Exception { request.addParameter("age", "35"); Map<String, String> uriTemplateVars = new HashMap<String, String>(); uriTemplateVars.put("name", "nameValue"); uriTemplateVars.put("age", "25"); request.setAttribute(HandlerMapping.URI_TEMPLATE_VARIABLES_ATTRIBUTE, uriTemplateVars); TestBean target = new TestBean(); WebDataBinder binder = new ExtendedServletRequestDataBinder(target, ""); ((ServletRequestDataBinder) binder).bind(request); assertEquals("nameValue", target.getName()); assertEquals(35, target.getAge()); } @Test public void noUriTemplateVars() throws Exception { TestBean target = new TestBean(); WebDataBinder binder = new ExtendedServletRequestDataBinder(target, ""); ((ServletRequestDataBinder) binder).bind(request); assertEquals(null, target.getName()); assertEquals(0, target.getAge()); } }
[ "lakeslove@126.com" ]
lakeslove@126.com
ba32bf02ac4f256e13575c64c9ecbd3131175038
8358717b853f240843ffa56784773a29b1efc19e
/dev/BT-LMIS/src/main/java/com/bt/lmis/controller/form/ErExpressinfoAasterParam.java
f9459172bb9eb7a374909fe4aa4e610dd201df8f
[]
no_license
huanglongf/enterprise_project
65ec3e2c56e4a2909f0881a9276a9966857bb9c7
de1865e638c9620e702818124f0b2deac04028c9
refs/heads/master
2020-05-07T13:25:07.223338
2018-10-21T08:44:33
2018-10-21T08:44:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,431
java
package com.bt.lmis.controller.form; import com.bt.lmis.page.QueryParameter; public class ErExpressinfoAasterParam extends QueryParameter{ private String id; private String create_time; private String create_user; private java.util.Date update_time; private String update_user; private String waybill; private String express_code; private String producttype_code; private String work_no; private String platform_no; private java.util.Date platform_time; private String store_code; private String warehouse_code; private String systemwh_code; private java.util.Date embrace_time; private String shiptoname; private String phone; private String address; private String provice_code; private String city_code; private String state_code; private String street_code; private int standard_efficiency; private int real_efficiency; private java.util.Date express_time; private java.util.Date check_time; private java.util.Date weight_time; private java.util.Date embrance_time; private java.util.Date last_embrance_time; private String status; private java.util.Date efficiency_starttime; private int end_flag; private String receive_id; private String analysis_flag; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getCreate_user() { return create_user; } public void setCreate_user(String create_user) { this.create_user = create_user; } public String getCreate_time() { return create_time; } public void setCreate_time(String create_time) { this.create_time = create_time; } public java.util.Date getUpdate_time() { return update_time; } public void setUpdate_time(java.util.Date update_time) { this.update_time = update_time; } public String getUpdate_user() { return update_user; } public void setUpdate_user(String update_user) { this.update_user = update_user; } public String getWaybill() { return waybill; } public void setWaybill(String waybill) { this.waybill = waybill; } public String getExpress_code() { return express_code; } public void setExpress_code(String express_code) { this.express_code = express_code; } public String getProducttype_code() { return producttype_code; } public void setProducttype_code(String producttype_code) { this.producttype_code = producttype_code; } public String getWork_no() { return work_no; } public void setWork_no(String work_no) { this.work_no = work_no; } public String getPlatform_no() { return platform_no; } public void setPlatform_no(String platform_no) { this.platform_no = platform_no; } public java.util.Date getPlatform_time() { return platform_time; } public void setPlatform_time(java.util.Date platform_time) { this.platform_time = platform_time; } public String getStore_code() { return store_code; } public void setStore_code(String store_code) { this.store_code = store_code; } public String getWarehouse_code() { return warehouse_code; } public void setWarehouse_code(String warehouse_code) { this.warehouse_code = warehouse_code; } public String getSystemwh_code() { return systemwh_code; } public void setSystemwh_code(String systemwh_code) { this.systemwh_code = systemwh_code; } public java.util.Date getEmbrace_time() { return embrace_time; } public void setEmbrace_time(java.util.Date embrace_time) { this.embrace_time = embrace_time; } public String getShiptoname() { return shiptoname; } public void setShiptoname(String shiptoname) { this.shiptoname = shiptoname; } public String getPhone() { return phone; } public void setPhone(String phone) { this.phone = phone; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public String getProvice_code() { return provice_code; } public void setProvice_code(String provice_code) { this.provice_code = provice_code; } public String getCity_code() { return city_code; } public void setCity_code(String city_code) { this.city_code = city_code; } public String getState_code() { return state_code; } public void setState_code(String state_code) { this.state_code = state_code; } public String getStreet_code() { return street_code; } public void setStreet_code(String street_code) { this.street_code = street_code; } public int getStandard_efficiency() { return standard_efficiency; } public void setStandard_efficiency(int standard_efficiency) { this.standard_efficiency = standard_efficiency; } public int getReal_efficiency() { return real_efficiency; } public void setReal_efficiency(int real_efficiency) { this.real_efficiency = real_efficiency; } public java.util.Date getExpress_time() { return express_time; } public void setExpress_time(java.util.Date express_time) { this.express_time = express_time; } public java.util.Date getCheck_time() { return check_time; } public void setCheck_time(java.util.Date check_time) { this.check_time = check_time; } public java.util.Date getWeight_time() { return weight_time; } public void setWeight_time(java.util.Date weight_time) { this.weight_time = weight_time; } public java.util.Date getEmbrance_time() { return embrance_time; } public void setEmbrance_time(java.util.Date embrance_time) { this.embrance_time = embrance_time; } public java.util.Date getLast_embrance_time() { return last_embrance_time; } public void setLast_embrance_time(java.util.Date last_embrance_time) { this.last_embrance_time = last_embrance_time; } public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public java.util.Date getEfficiency_starttime() { return efficiency_starttime; } public void setEfficiency_starttime(java.util.Date efficiency_starttime) { this.efficiency_starttime = efficiency_starttime; } public int getEnd_flag() { return end_flag; } public void setEnd_flag(int end_flag) { this.end_flag = end_flag; } public String getReceive_id() { return receive_id; } public void setReceive_id(String receive_id) { this.receive_id = receive_id; } public String getAnalysis_flag() { return analysis_flag; } public void setAnalysis_flag(String analysis_flag) { this.analysis_flag = analysis_flag; } }
[ "lijg@many-it.com" ]
lijg@many-it.com
6cbd3e2663d0fe965af98393915f9b3c02b617d1
5d1a80517b4189cbe60575c98b2592e26943da9a
/src/main/java/edu/arizona/biosemantics/etcsite/client/content/matrixGeneration/MatrixGenerationPlace.java
f2c290ec2a40d9f2a6c62839fcff930e76958afd
[]
no_license
rodenhausen/etcsiteNo3Steps
19fb56295d1a95d257022f3abc579ce5f8d6411a
0a01395ed782d10b5da503b1d4144de0f571c9ea
refs/heads/master
2020-05-20T00:49:49.889604
2014-03-20T20:07:09
2014-03-20T20:07:09
null
0
0
null
null
null
null
UTF-8
Java
false
false
424
java
package edu.arizona.biosemantics.etcsite.client.content.matrixGeneration; import edu.arizona.biosemantics.etcsite.client.common.HasTaskPlace; import edu.arizona.biosemantics.etcsite.client.menu.MenuPlace; import edu.arizona.biosemantics.etcsite.shared.db.Task; public class MatrixGenerationPlace extends HasTaskPlace implements MenuPlace { public MatrixGenerationPlace(Task task) { super(task); } }
[ "thomas.rodenhausen@gmail.com" ]
thomas.rodenhausen@gmail.com
34174254428971ba49d532c63af94e8d1748719a
0d9142675b552122dc3df37a780add666dcf38ab
/querystream-jpa/src/main/java/org/dellroad/querystream/jpa/DateParamBinding.java
71362b666fc6eefe3d1b1dc44e73fe38b56c6fa7
[ "Apache-2.0" ]
permissive
querystream/querystream
f5f62c13542fdfa818358c58c73994bf23a9a5dd
e93e6e90fcac4d79d0c3df9e6d2cbd850ad75638
refs/heads/master
2023-07-19T19:06:58.388079
2023-07-07T21:57:41
2023-07-07T21:57:41
118,291,728
15
3
Apache-2.0
2023-07-07T21:59:20
2018-01-21T00:19:07
HTML
UTF-8
Java
false
false
1,059
java
/* * Copyright (C) 2018 Archie L. Cobbs. All rights reserved. */ package org.dellroad.querystream.jpa; import java.util.Date; import javax.persistence.Parameter; import javax.persistence.Query; import javax.persistence.TemporalType; /** * Represents the binding of a {@link Date} value to a {@link Parameter}. * * @see Query#setParameter(javax.persistence.Parameter, Date, TemporalType) */ public class DateParamBinding extends TemporalParamBinding<Date> { /** * Constructor. * * @param parameter the parameter to set * @param value parameter value * @param temporalType temporal type for {@code value} * @throws IllegalArgumentException if {@code parameter} or {@code temporalType} is null */ public DateParamBinding(final Parameter<Date> parameter, final Date value, final TemporalType temporalType) { super(parameter, value, temporalType); } @Override void doApplyTo(Query query) { query.setParameter(this.getParameter(), this.getValue(), this.getTemporalType()); } }
[ "archie.cobbs@gmail.com" ]
archie.cobbs@gmail.com
e374960a0591ef26efed4f203d6f528f1bda8e71
d3fa8ded9d393ba9b03388ba7f05fc559cf31d1e
/Codes/agentless/monitor/src/main/java/com/broada/carrier/monitor/impl/generic/script/session/agent/AgentScriptSession.java
38bb3e44b687994a82df7637fe2814cba8ae0e16
[]
no_license
lengxu/YouYun
e20c4d8f553ccb245e96de177a67f776666e986f
b0ad8fd0b0e70dd2445cecb9ae7b00f7e0a20815
refs/heads/master
2020-09-13T22:30:49.642980
2017-11-27T03:13:34
2017-11-27T03:13:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,820
java
package com.broada.carrier.monitor.impl.generic.script.session.agent; import java.net.ConnectException; import java.util.Properties; import com.broada.agent.config.HostAgentClient; import com.broada.carrier.monitor.impl.generic.script.ScriptConstants; import com.broada.carrier.monitor.impl.generic.script.ScriptException; import com.broada.carrier.monitor.impl.generic.script.session.ScriptSession; import com.broada.numen.agent.original.service.OriginalAgent; public class AgentScriptSession implements ScriptSession{ private Properties options; public boolean connectAgentSuccessed() throws ScriptException { OriginalAgent agent = null; String ip=options.getProperty(ScriptConstants.OPTION_REMOTEHOST); int port=((Integer)options.get(ScriptConstants.OPTION_REMOTEPORT)).intValue(); String rmiName = ScriptConstants.RMI_AGENTNAME; try { agent = HostAgentClient.getHostAgent(ip,port, rmiName); //直接通过能否获取OriginalAgent对象来判断连通性 if(agent != null){ return true; } } catch (Throwable e1) { Throwable cause = e1; while (cause != null) { if (cause instanceof ConnectException) throw new ScriptException("获取远程代理失败,可能是代理没有开启或者网络无法连通,代理="+ip+":"+port+":"+rmiName, e1); cause = cause.getCause(); } throw new ScriptException("获取远程代理失败,未知异常,代理="+ip+":"+port+":"+rmiName, e1); } return false; } public void open(Properties options) { this.options = options; } public void close() { HostAgentClient.removeAgent(options.getProperty(ScriptConstants.OPTION_REMOTEHOST), ((Integer) (options .get(ScriptConstants.OPTION_REMOTEPORT))).intValue(), ScriptConstants.RMI_AGENTNAME); } }
[ "smartbrandnew@163.com" ]
smartbrandnew@163.com
e632758f0781281ae32a3207d79a365a37becdae
5ed7bb1199e72d1ce4e538080f3527c9315cc347
/src/main/jbake/assets/docs/scribble/modules/demos/scrib/bettybook/src/bettybook/http/longv/message/server/Server.java
c1127e3c9407b050b8f29c2f6e51a3d58f00fe02
[ "Apache-2.0" ]
permissive
scribble/scribble.github.io
e269a884f3b6ff877a79911f7f604ecabb265c22
7c8647be9784e9d1bab0ac4e7286b5122c24358c
refs/heads/pages
2021-01-25T10:22:13.481828
2018-01-14T19:29:49
2018-01-14T19:29:49
3,661,659
5
2
Apache-2.0
2018-01-14T19:29:50
2012-03-08T16:12:55
Java
UTF-8
Java
false
false
305
java
package bettybook.http.longv.message.server; import bettybook.http.longv.HttpLong.Http.Http; import bettybook.http.longv.message.HeaderField; public class Server extends HeaderField { private static final long serialVersionUID = 1L; public Server(String server) { super(Http.Server, server); } }
[ "raymond.hu@imperial.ac.uk" ]
raymond.hu@imperial.ac.uk
82cecda0685873bbf86fc373bef0e95c6c775368
dab1c92d50242301da831d5a803a1a8bdbf9738c
/legendshop_core/src/java/com/legendshop/core/listener/InitSysListener.java
bf7c4e1eb7da4df8b543fc930ec7818c5fd07a46
[ "Apache-2.0" ]
permissive
js-superion/gomall.la
6dda41aca73a10d5d581cc40779eb2c4bdcb36ea
456ba07ee53a07ed5c472fd1d29b8994807f673f
refs/heads/master
2021-01-21T10:04:46.895300
2015-12-24T15:17:33
2015-12-24T15:17:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,203
java
package com.legendshop.core.listener; import java.util.Map; import javax.servlet.ServletContext; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.context.ApplicationContext; import org.springframework.web.context.support.WebApplicationContextUtils; import com.legendshop.core.AttributeKeys; import com.legendshop.core.SystemConfig; import com.legendshop.core.constant.BusinessModeEnum; import com.legendshop.core.constant.ConfigPropertiesEnum; import com.legendshop.core.constant.LanguageEnum; import com.legendshop.core.constant.RuntimeModeEnum; import com.legendshop.core.event.SysDestoryEvent; import com.legendshop.core.event.SysInitEvent; import com.legendshop.core.helper.PropertiesUtil; import com.legendshop.core.helper.RealPathUtil; import com.legendshop.core.helper.SpringBeanManager; import com.legendshop.core.page.PagerUtil; import com.legendshop.event.BaseEventListener; import com.legendshop.event.EventHome; import com.legendshop.util.AppUtils; import com.legendshop.util.ContextServiceLocator; import com.legendshop.util.FileConfig; import com.legendshop.util.sql.ConfigCode; public class InitSysListener implements ServletContextListener { /** The log. */ private static Logger log = LoggerFactory.getLogger(InitSysListener.class); /** The systemInited. */ private static boolean systemInited = false; private final static Object systemInitedMonitor = new Object(); /** * 系统初始化. * * @param event * the event */ public void contextDestroyed(ServletContextEvent event) { log.debug("system destory start"); EventHome.publishEvent(new SysDestoryEvent(event)); } public void contextInitialized(ServletContextEvent event) { synchronized (systemInitedMonitor) { log.info("********* Initializing gomall.la System now *************"); initSystem(event); if (!systemInited && PropertiesUtil.isSystemInstalled()) { systemInited = true; // 2.Spring initspring(event); // 3.ConfigCode ConfigCode sQlCode = ConfigCode.getInstance("classpath*:DAL.cfg.xml"); boolean debugMode = PropertiesUtil.isSystemInDebugMode(); log.debug("System in DEBUG MODE is {}", debugMode); sQlCode.setDebug(debugMode); // ShopSystemId,必须先更改再reload配置文件 if (AppUtils.isBlank(PropertiesUtil.getLegendShopSystemId())) { PropertiesUtil.changeLegendShopSystemId(); } // 初始化事件系统 Map<String, BaseEventListener> eventListeners = EventHome.initBaseEventListener(); SpringBeanManager springBeanManager = (SpringBeanManager) ContextServiceLocator.getInstance().getBean("springBeanManager"); springBeanManager.removeBean(event.getServletContext(), eventListeners.keySet()); SystemConfig systemConfig = (SystemConfig) ContextServiceLocator.getInstance().getBean("systemConfig"); event.getServletContext().setAttribute(ConfigPropertiesEnum.SYSTEM_CONFIG.name(), systemConfig); // 发送系统启动事件 EventHome.publishEvent(new SysInitEvent(event)); printBeanFactory(ContextServiceLocator.getInstance().getContext()); } log.info("********* gomall.la System Initialized successful **********"); } } private void initSystem(ServletContextEvent event) { // 1. 初始化系统真实路径 String realPath = RealPathUtil.getSystemRealPath(event.getServletContext()); if (realPath != null && !realPath.endsWith("/")) { realPath = realPath + "/"; } PropertiesUtil.setSystemRealPath(realPath); ServletContext servletContext = event.getServletContext(); // 相对路径 PagerUtil.setPath(servletContext.getContextPath()); // 货币 servletContext.setAttribute(ConfigPropertiesEnum.CURRENCY_PATTERN.name(), PropertiesUtil.getCurrencyPattern()); // 域名 servletContext.setAttribute(AttributeKeys.DOMAIN_NAME, PropertiesUtil.getDomainName()); // 业务模式 String businessMode = PropertiesUtil.getProperties(FileConfig.GlobalFile, ConfigPropertiesEnum.BUSINESS_MODE.name()); if (BusinessModeEnum.C2C.name().equals(businessMode)) { servletContext.setAttribute(AttributeKeys.BUSINESS_MODE, BusinessModeEnum.C2C.name()); } else { servletContext.setAttribute(AttributeKeys.BUSINESS_MODE, BusinessModeEnum.B2C.name()); } // 语言模式 String languageMode = PropertiesUtil.getProperties(FileConfig.GlobalFile, ConfigPropertiesEnum.LANGUAGE_MODE.name()); if (LanguageEnum.ENGLISH.equals(languageMode)) { servletContext.setAttribute(AttributeKeys.LANGUAGE_MODE, LanguageEnum.USERCHOICE); } else if (LanguageEnum.CHINESE.equals(languageMode)) { servletContext.setAttribute(AttributeKeys.LANGUAGE_MODE, LanguageEnum.CHINESE); } else { servletContext.setAttribute(AttributeKeys.LANGUAGE_MODE, LanguageEnum.USERCHOICE); } servletContext.setAttribute(AttributeKeys.RUNTIME_MODE, RuntimeModeEnum.PRODUCTION); servletContext.setAttribute(ConfigPropertiesEnum.LEGENDSHOP_VERSION.name(), PropertiesUtil.getProperties(FileConfig.GlobalFile, ConfigPropertiesEnum.LEGENDSHOP_VERSION.name())); } /* * 从Web上下文得到Spring */ /** * Initspring. * * @param event * the event * @return true, if successful */ private void initspring(ServletContextEvent event) { // ApplicationContext ctx = // WebApplicationContextUtils.getWebApplicationContext(event.getServletContext()); // ApplicationContext ctx = new // ClassPathXmlApplicationContext(event.getServletContext().getInitParameter("contextConfigLocation")); ApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(event.getServletContext()); ContextServiceLocator.getInstance().setContext(ctx); } private void printBeanFactory(ApplicationContext ctx) { if (log.isDebugEnabled()) { int i = 0; String[] beans = ctx.getBeanDefinitionNames(); StringBuffer sb = new StringBuffer("系统配置的Spring Bean [ \n"); if (!AppUtils.isBlank(beans)) { for (String bean : beans) { sb.append(++i).append(" ").append(bean).append("\n"); } sb.append(" ]"); log.debug(sb.toString()); } } } }
[ "611041314@qq.com" ]
611041314@qq.com
53ba8e0dd74eacad0c3716812c0e721a2b03e56f
e0770a2f82506643b5a621a8dabe1bc115738c2a
/app/src/main/java/com/shangame/fiction/ui/bookstore/BoutiqueSetAdapter.java
50ec6fa1b3471c69edc4220a27ec6d35243de472
[ "Apache-2.0" ]
permissive
daixu/QuReader
e6ce1821e183c07e80ef74fb69820101113296ef
bcd65dc03bbaa8e4932026dc4969f43c26caf93d
refs/heads/master
2021-01-03T04:38:25.508410
2020-02-16T13:53:22
2020-02-16T13:53:22
239,925,589
0
0
null
null
null
null
UTF-8
Java
false
false
2,299
java
package com.shangame.fiction.ui.bookstore; import android.app.Activity; import android.support.annotation.NonNull; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.fiction.bar.R; import com.shangame.fiction.core.base.WrapRecyclerViewAdapter; import com.shangame.fiction.core.manager.ImageLoader; import com.shangame.fiction.net.api.ApiConstant; import com.shangame.fiction.storage.model.BookInfoEntity; import com.shangame.fiction.ui.bookdetail.BookDetailActivity; /** * Create by Speedy on 2018/7/27 */ public class BoutiqueSetAdapter extends WrapRecyclerViewAdapter<BookInfoEntity, BookWithContentViewHolder> { private int clickType; private Activity mActivity; public BoutiqueSetAdapter(Activity activity) { mActivity = activity; clickType = ApiConstant.ClickType.FROM_CLICK;//默认点击 } @NonNull @Override public BookWithContentViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { View view; if (viewType == 0) { view = LayoutInflater.from(parent.getContext()).inflate(R.layout.book_store_item_with_title, parent, false); } else { view = LayoutInflater.from(parent.getContext()).inflate(R.layout.book_store_item_with_title_land, parent, false); } return new BookWithContentViewHolder(view); } @Override public void onBindViewHolder(@NonNull BookWithContentViewHolder holder, int position) { final BookInfoEntity bookInfoEntity = getItem(position); if (bookInfoEntity != null) { holder.itemView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { BookDetailActivity.lunchActivity(mActivity, bookInfoEntity.bookid, clickType); } }); ImageLoader.with(mActivity).loadCover(holder.ivCover, bookInfoEntity.bookcover); holder.tvBookName.setText(bookInfoEntity.bookname); holder.tvBookAuthor.setText(bookInfoEntity.reccount); } } @Override public int getItemViewType(int position) { if (position < 4) { return 0; } else { return 1; } } }
[ "daixu.y@gmail.com" ]
daixu.y@gmail.com
ee0a04bc613b32c0fe06f8487375fc1efa8a45d4
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/6/6_97671c974e7f7dc2da8f9dd437e9f6f596d60eac/TransactionHelper/6_97671c974e7f7dc2da8f9dd437e9f6f596d60eac_TransactionHelper_t.java
8e1008245025bf557c6be595c968bdc29fcb64f5
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
4,187
java
package de.akquinet.jbosscc.needle.db.transaction; import java.util.List; import javax.persistence.EntityManager; /** * Utility class to manage transactions conveniently. */ public class TransactionHelper { private final EntityManager entityManager; public TransactionHelper(final EntityManager manager) { this.entityManager = manager; } /** * Saves the given object in the database. * * @param <T> * -- type of given object obj * @param obj * -- object to save * @return -- saved object * @throws Exception * -- save objects failed */ public final <T> T saveObject(final T obj) throws Exception { return executeInTransaction(new Runnable<T>() { @Override public T run(final EntityManager entityManager) { return persist(obj, entityManager); } }); } /** * Finds and returns object of the given id in the persistence context. * * @param <T> * -- type of searched object * @param clazz * -- type of searched object * @param id * -- technical id of searched object * @return -- found object * @throws Exception * -- finding object failed */ public final <T> T loadObject(final Class<T> clazz, final Object id) throws Exception { return executeInTransaction(new Runnable<T>() { @Override public T run(final EntityManager entityManager) { return loadObject(entityManager, clazz, id); } }); } /** * Returns all objects of the given class in persistence context. * * @param <T> * -- type of searched objects * @param clazz * -- type of searched objects * @return -- list of found objects * @throws Exception * -- finding objects failed */ public final <T> List<T> loadAllObjects(final Class<T> clazz) throws Exception { return executeInTransaction(new Runnable<List<T>>() { @Override @SuppressWarnings("unchecked") public List<T> run(final EntityManager entityManager) { final String fromEntity = clazz.getSimpleName(); final String alias = fromEntity.toLowerCase(); return entityManager.createQuery("SELECT " + alias + " FROM " + fromEntity + " " + alias).getResultList(); } }); } /** * Encapsulates execution of runnable.run() in transactions. * * @param <T> * -- result type of runnable.run() * @param runnable * -- algorithm to execute * @param clearAfterCommit * -- <tt>true</tt> triggers entityManager.clear() after * transaction commit * @return -- return value of runnable.run() * @throws Exception * -- execution failed */ public final <T> T executeInTransaction(final Runnable<T> runnable, final boolean clearAfterCommit) throws Exception { T result; try { entityManager.getTransaction().begin(); result = runnable.run(entityManager); entityManager.flush(); entityManager.getTransaction().commit(); if (clearAfterCommit) { entityManager.clear(); } } finally { if (entityManager.getTransaction().isActive()) { entityManager.getTransaction().rollback(); } } return result; } /** * see executeInTransaction(runnable, clearAfterCommit) . * * @param <T> * -- result type of runnable.run() * @param runnable * -- algorithm to execute * @return -- return value of runnable.run() * @throws Exception * -- execution failed */ public final <T> T executeInTransaction(final Runnable<T> runnable) throws Exception { return executeInTransaction(runnable, true); } public final EntityManager getEntityManager() { return entityManager; } public <T> T persist(final T obj, final EntityManager entityManager) { entityManager.persist(obj); return obj; } public <T> T persist(final T obj) { return persist(obj, entityManager); } public <T> T loadObject(final EntityManager entityManager, final Class<T> clazz, final Object id) { return entityManager.find(clazz, id); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
ad343f5a8214db6b67f5062549b7bf8d10e3d1dc
035eefe8804378a759ae08b7262825e9d8e85d68
/filechoice/src/main/java/com/anshi/filechoice/adapter/FileViewHolder.java
0069f347b0388fe3b9532f0596bf345fb28fbeac
[]
no_license
yulu1121/fadingtoolbar
fe36b17cce6dda71278e66a1abcda64d93fb47c0
30b825a3335dcf5e0d237c2d5b693108d498120e
refs/heads/master
2021-08-30T14:21:29.473392
2017-12-18T09:21:03
2017-12-18T09:21:03
114,620,629
0
0
null
null
null
null
UTF-8
Java
false
false
564
java
package com.anshi.filechoice.adapter; import android.support.v7.widget.RecyclerView; import android.view.View; import android.widget.ImageView; import android.widget.TextView; import com.anshi.filechoice.R; /** * * Created by yulu on 2017/11/29. */ public class FileViewHolder extends RecyclerView.ViewHolder { ImageView imageView; TextView textView; public FileViewHolder(View itemView) { super(itemView); imageView = itemView.findViewById(R.id.file_image); textView = itemView.findViewById(R.id.file_text); } }
[ "626899174@qq.com" ]
626899174@qq.com
4ef1a47211e5f6291c948c9013a0e87392eac44e
bcbd5cdbec730aec758a94fcd8b0136171f08663
/bench4bl/spring/shdp/sources/SHDP_1_0_1/src/main/java/org/springframework/data/hadoop/fs/FileSystemFactoryBean.java
08b70adb4a56fbffeb0ca3bf504148e4e078f720
[ "Apache-2.0" ]
permissive
RosePasta/BugTypeBasedIRBL
28c85e1d7f28b2da8a2f12cc4d9c24754a0afe90
55b0f82cf185a3a871926cc7a266072f8e497510
refs/heads/master
2022-05-06T08:38:38.138869
2022-04-20T06:34:38
2022-04-20T06:34:38
188,862,575
1
3
null
2019-11-21T09:48:44
2019-05-27T14:52:28
Java
UTF-8
Java
false
false
3,802
java
/* * Copyright 2011 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.data.hadoop.fs; import java.net.URI; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.springframework.beans.factory.DisposableBean; import org.springframework.beans.factory.FactoryBean; import org.springframework.beans.factory.InitializingBean; import org.springframework.util.StringUtils; /** * FactoryBean for creating Hadoop {@link FileSystem} instances. Useful for interacting with * HDFS from outside a Map Reduce job. If no parameter is given, a file system using the installed * Hadoop defaults will be created. * * @author Costin Leau */ public class FileSystemFactoryBean implements InitializingBean, DisposableBean, FactoryBean<FileSystem> { private FileSystem fs; private Configuration configuration; private URI uri; private String user; private boolean closeAll = false; private boolean close = true; public void afterPropertiesSet() throws Exception { Configuration cfg = (configuration != null ? configuration : new Configuration(true)); if (uri == null) { uri = FileSystem.getDefaultUri(cfg); } if (StringUtils.hasText(user)) { fs = FileSystem.get(uri, cfg, user); } else { fs = FileSystem.get(uri, cfg); } } public void destroy() throws Exception { if (fs != null && close) { fs.close(); } fs = null; if (closeAll) { // TODO: potentially call close all just for the current user FileSystem.closeAll(); } } public FileSystem getObject() throws Exception { return fs; } public Class<?> getObjectType() { return (fs != null ? fs.getClass() : FileSystem.class); } public boolean isSingleton() { return true; } /** * Sets the Hadoop configuration for this file system. * * @param configuration The configuration to set. */ public void setConfiguration(Configuration configuration) { this.configuration = configuration; } /** * Sets the URI (if available) for this file system. * * @param uri The uri to set. */ public void setUri(URI uri) { this.uri = uri; } /** * Sets the user impersonation (optional) for creating this file-system. * Should be used when running against a Hadoop Kerberos cluster. * * @param user user/group information */ public void setUser(String user) { this.user = user; } /** * Indicates whether all the Hadoop file systems should be closed once this factory is destroyed. * False by default - should be turned on as a safety measure when the app controls the entire lifecycle of Hadoop inside * a JVM. * * @param closeAll the close all * @see FileSystem#closeAll() */ public void setCloseAll(boolean closeAll) { this.closeAll = closeAll; } /** * Indicates whether the Hadoop file systems should be closed once this factory is destroyed. * True by default - should be turned off when running 'embedded' or if long running operations outlive the application context. * * @param close * @see FileSystem#close() */ public void setClose(boolean close) { this.close = close; } }
[ "MisooKim@github.com" ]
MisooKim@github.com
4a28bef90399b512332a0b710d02bdbc912598f9
a2b96340eb8662ad5eee7c954a3488c96a11392d
/services/aprendoz_desarrollo/src/com/aprendoz_desarrollo/data/AsignaturaCopy.java
06b13bd455747c1922024bca5729af6598ad1218
[]
no_license
rochesterschool/Aprendoz-modulo-padres
92927ffc6ea83629ce383871f9539a203998155a
a13603dc55259eb3d7bf529b4a4996568e726c51
refs/heads/master
2021-05-28T07:02:42.841604
2014-11-26T13:27:20
2014-11-26T13:27:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,536
java
package com.aprendoz_desarrollo.data; /** * aprendoz_desarrollo.AsignaturaCopy * 11/24/2014 08:53:35 * */ public class AsignaturaCopy { private Integer idAsignatura; private String asignatura; private String subject; private Boolean electiva; private Integer idArea1; private Integer idArea2; private Integer idArea3; private Integer idSubarea1; private Integer idSubarea2; private Integer idSubarea3; private Integer salonIdSalon; private Float intensidadHoraria; private Float peso; private String descripAsigEspaniol; private String descripAsigIngles; private Float ihA1; private Float ihA2; private Float ihA3; private Float meses; private Integer esperadostotal; private Grado grado; private TipoInscAsig tipoInscAsig; private Sy sy; public Integer getIdAsignatura() { return idAsignatura; } public void setIdAsignatura(Integer idAsignatura) { this.idAsignatura = idAsignatura; } public String getAsignatura() { return asignatura; } public void setAsignatura(String asignatura) { this.asignatura = asignatura; } public String getSubject() { return subject; } public void setSubject(String subject) { this.subject = subject; } public Boolean getElectiva() { return electiva; } public void setElectiva(Boolean electiva) { this.electiva = electiva; } public Integer getIdArea1() { return idArea1; } public void setIdArea1(Integer idArea1) { this.idArea1 = idArea1; } public Integer getIdArea2() { return idArea2; } public void setIdArea2(Integer idArea2) { this.idArea2 = idArea2; } public Integer getIdArea3() { return idArea3; } public void setIdArea3(Integer idArea3) { this.idArea3 = idArea3; } public Integer getIdSubarea1() { return idSubarea1; } public void setIdSubarea1(Integer idSubarea1) { this.idSubarea1 = idSubarea1; } public Integer getIdSubarea2() { return idSubarea2; } public void setIdSubarea2(Integer idSubarea2) { this.idSubarea2 = idSubarea2; } public Integer getIdSubarea3() { return idSubarea3; } public void setIdSubarea3(Integer idSubarea3) { this.idSubarea3 = idSubarea3; } public Integer getSalonIdSalon() { return salonIdSalon; } public void setSalonIdSalon(Integer salonIdSalon) { this.salonIdSalon = salonIdSalon; } public Float getIntensidadHoraria() { return intensidadHoraria; } public void setIntensidadHoraria(Float intensidadHoraria) { this.intensidadHoraria = intensidadHoraria; } public Float getPeso() { return peso; } public void setPeso(Float peso) { this.peso = peso; } public String getDescripAsigEspaniol() { return descripAsigEspaniol; } public void setDescripAsigEspaniol(String descripAsigEspaniol) { this.descripAsigEspaniol = descripAsigEspaniol; } public String getDescripAsigIngles() { return descripAsigIngles; } public void setDescripAsigIngles(String descripAsigIngles) { this.descripAsigIngles = descripAsigIngles; } public Float getIhA1() { return ihA1; } public void setIhA1(Float ihA1) { this.ihA1 = ihA1; } public Float getIhA2() { return ihA2; } public void setIhA2(Float ihA2) { this.ihA2 = ihA2; } public Float getIhA3() { return ihA3; } public void setIhA3(Float ihA3) { this.ihA3 = ihA3; } public Float getMeses() { return meses; } public void setMeses(Float meses) { this.meses = meses; } public Integer getEsperadostotal() { return esperadostotal; } public void setEsperadostotal(Integer esperadostotal) { this.esperadostotal = esperadostotal; } public Grado getGrado() { return grado; } public void setGrado(Grado grado) { this.grado = grado; } public TipoInscAsig getTipoInscAsig() { return tipoInscAsig; } public void setTipoInscAsig(TipoInscAsig tipoInscAsig) { this.tipoInscAsig = tipoInscAsig; } public Sy getSy() { return sy; } public void setSy(Sy sy) { this.sy = sy; } }
[ "maguilera@rochester.edu.co" ]
maguilera@rochester.edu.co
e511a888057f1baab3a096be31341d611a743c95
80b94beaf2dcd168cd322bc427c65a2e24514ece
/bigtop-data-generators/bigpetstore-data-generator/src/main/java/org/apache/bigtop/datagenerators/bigpetstore/datamodels/Customer.java
8847a363f7c1fce9515ba683dd9f9731b84a6011
[ "Apache-2.0", "FreeBSD-DOC", "DOC" ]
permissive
shiroyp/bigtop
fd2986c752df7d10718638e7885453be60e88b81
b25084fa77cca520c671e2d1adbfd9c1ecebd77d
refs/heads/master
2020-12-25T07:13:54.882797
2015-08-26T18:54:30
2015-08-26T18:54:30
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,610
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.bigtop.datagenerators.bigpetstore.datamodels; import java.io.Serializable; import org.apache.bigtop.datagenerators.bigpetstore.datamodels.inputs.ZipcodeRecord; import org.apache.commons.lang3.tuple.Pair; public class Customer implements Serializable { private static final long serialVersionUID = 5739806281335931258L; int id; Pair<String, String> name; ZipcodeRecord location; Store store; public Customer(int id, Pair<String, String> name, Store store, ZipcodeRecord location) { this.id = id; this.name = name; this.location = location; this.store = store; } public int getId() { return id; } public Pair<String, String> getName() { return name; } public ZipcodeRecord getLocation() { return location; } public Store getStore() { return store; } }
[ "rnowling@gmail.com" ]
rnowling@gmail.com