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
63ddfb4c04e474ed7f98269e973c21895daf7c3b
0d8eb76ba339a581a5db235780edbd49355f7fc4
/src/Unit15/Assignments/StrangeGravityBall.java
1874ba2abe342ee93a1c2ddd478eaf93d688bc17
[]
no_license
INeedAUniqueUsername/AP-Computer-Science-A
cfb6630f9cba9cc5b887f37db176483ae4868c7e
45937a15125b4b10b14bb0f6789e8adee6a5ee6f
refs/heads/master
2020-12-30T22:43:53.954433
2017-11-28T19:29:27
2017-11-28T19:29:27
80,654,507
0
0
null
2017-04-29T05:27:32
2017-02-01T19:16:45
HTML
UTF-8
Java
false
false
919
java
package Unit15.Assignments; import java.awt.Color; public class StrangeGravityBall extends Ball { int tick = 0; double gravityAngle = 0; public StrangeGravityBall() { this(200, 200); } public StrangeGravityBall(int x, int y) { this(x, y, 10, 10); } public StrangeGravityBall(int x, int y, int w, int h) { this(x, y, w, h, new Color(0)); } public StrangeGravityBall(int x, int y, int w, int h, Color c) { this(x, y, w, h, c, 3, 1); } public StrangeGravityBall(int x, int y, int w, int h, Color c, int vx, int vy) { super(x, y, w, h, c); setVelX(vx); setVelY(vy); } public void update() { super.update(); tick++; //double angle_from_center = Math.PI+Math.atan2(600-getY(), 800-getX()); if(tick%30 == 0) { incVelX((int) (5 * Math.cos(gravityAngle))); incVelY((int) (5 * Math.sin(gravityAngle))); } if(tick%150 == 0) { gravityAngle = Math.random() * 2 * Math.PI; } } }
[ "alexiscomical445@gmail.com" ]
alexiscomical445@gmail.com
6f3522a68a7d521d50120847f32036e97a2741a7
5d82f3ced50601af2b804cee3cf967945da5ff97
/design-synthesis/coordination-delegates/CD-selfcheckoutmachine-marketingapplication/src/main/java/org/choreos/services/cd/ShoppingList.java
e7519b277c08c060cc93ccd049464f4c17ab9adf
[ "Apache-2.0" ]
permissive
sesygroup/choreography-synthesis-enactment
7f345fe7a9e0288bbde539fc373b43f1f0bd1eb5
6eb43ea97203853c40f8e447597570f21ea5f52f
refs/heads/master
2022-01-26T13:20:50.701514
2020-03-20T12:18:44
2020-03-20T12:18:44
141,552,936
0
1
Apache-2.0
2022-01-06T19:56:05
2018-07-19T09:04:05
Java
UTF-8
Java
false
false
1,866
java
package org.choreos.services.cd; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Classe Java per shoppingList complex type. * * <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe. * * <pre> * &lt;complexType name="shoppingList"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="entry" type="{http://services.choreos.org/}shoppingListEntry" maxOccurs="unbounded" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "shoppingList", propOrder = { "entry" }) public class ShoppingList { @XmlElement(nillable = true) protected List<ShoppingListEntry> entry; /** * Gets the value of the entry property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the entry property. * * <p> * For example, to add a new item, do as follows: * <pre> * getEntry().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link ShoppingListEntry } * * */ public List<ShoppingListEntry> getEntry() { if (entry == null) { entry = new ArrayList<ShoppingListEntry>(); } return this.entry; } }
[ "alexander.perucci@gmail.com" ]
alexander.perucci@gmail.com
75a38cbf9c1fc2c346c679b1a86f861781e24af8
10502fc66e162cbbc3c42feecec4f365d221f752
/antares-client-spring/src/test/java/me/hao0/antares/client/job/DemoJobA.java
31b14b70996313c97e2314c9c2f6e8192a371d5d
[]
no_license
heric-liu/antares
c7f3dd88fbc7d1d509ca648e7cc2fca065bc07c4
65cd5fc7ea4bdef51d9e56c2804f155d85813af9
refs/heads/master
2020-11-28T19:51:59.960007
2017-08-15T00:42:40
2017-08-15T00:42:40
229,907,417
1
0
null
2019-12-24T08:55:37
2019-12-24T08:55:37
null
UTF-8
Java
false
false
562
java
package me.hao0.antares.client.job; import me.hao0.antares.common.util.Sleeps; import java.util.Random; /** * Author: haolin * Email: haolin.h0@gmail.com */ public class DemoJobA implements DefaultJob { private final Random random = new Random(); @Override public JobResult execute(JobContext context) { System.out.println("DemoJobA start..."); System.out.println("context: " + context); Sleeps.sleep(random.nextInt(10) + 1); System.out.println("DemoJobA end..."); return JobResult.SUCCESS; } }
[ "haolin.h0@gmail.com" ]
haolin.h0@gmail.com
d3d24fb37158b6a6fcb4622a9cb2399a75939feb
46da4bfdecec9ee8e528608f00a7d1cff14037ca
/app/src/main/java/com/rahul/blx/ElectronicsResponseClasses/ValueElectronicClasses.java
0663a5c6daff96c70384343399de27bc32348ef3
[]
no_license
rahul6975/BLX
54916abda956c1c7ac1e31064507ccce30524b85
843b01166f8e139f3a7c27ed8e8f3ad5b2de4e62
refs/heads/master
2023-05-06T07:23:51.364724
2021-05-29T06:52:39
2021-05-29T06:52:39
371,899,921
0
0
null
null
null
null
UTF-8
Java
false
false
617
java
package com.rahul.blx.ElectronicsResponseClasses; import javax.annotation.Generated; import com.google.gson.annotations.SerializedName; import java.io.Serializable; @Generated("com.robohorse.robopojogenerator") public class ValueElectronicClasses implements Serializable { @SerializedName("raw") private Object raw; @SerializedName("currency") private CurrencyElectronicClasses currency; @SerializedName("display") private String display; public Object getRaw(){ return raw; } public CurrencyElectronicClasses getCurrency(){ return currency; } public String getDisplay(){ return display; } }
[ "rahulya7569@gmail.com" ]
rahulya7569@gmail.com
0a6df994a3765f3286d25edd8954632a4b021512
1ef2c6182582592157414cd0aaf0a3f629e1bf25
/joy-core/src/main/java/org/joy/core/ehcache/EhCachePlugin.java
b2a430d731c1141829e32ee27b5c42aee6da5e0e
[]
no_license
zenjava/joy
95af28c0eeb7213ae2a42a12f9a8e41d29b8fda9
dc1eb57dfe0429455b18c833302ef2b34fd7d0a5
refs/heads/master
2021-01-22T19:30:44.484376
2014-10-31T06:06:16
2014-10-31T06:06:18
34,838,163
1
0
null
2015-04-30T06:30:54
2015-04-30T06:30:54
null
UTF-8
Java
false
false
3,221
java
package org.joy.core.ehcache; import net.sf.ehcache.Cache; import net.sf.ehcache.CacheManager; import net.sf.ehcache.config.CacheConfiguration; import org.joy.commons.log.Log; import org.joy.commons.log.LogFactory; import org.joy.core.ehcache.model.po.TSysCacheCfg; import org.joy.core.ehcache.model.po.TSysCacheCfg_; import org.joy.core.init.service.IPlugin; import org.joy.core.persistence.orm.jpa.JpaTool; import org.joy.core.spring.utils.CoreBeanFactory; import org.springframework.cache.ehcache.EhCacheCacheManager; import org.springframework.stereotype.Component; import javax.persistence.Transient; import java.util.List; /** * EhCache插件,该插件用于管理本地缓存 * * @author Kevice * @time 2013-2-3 下午4:24:32 * @since 1.0.0 */ @Component public class EhCachePlugin implements IPlugin { protected static final Log logger = LogFactory.getLog(EhCachePlugin.class); public String getName() { return "EhCache缓存"; } public void startup() { joinDbEhCacheConf(); } public void destroy() { } private void joinDbEhCacheConf() { EhCacheCacheManager ehCacheCacheManager = CoreBeanFactory.getEhCacheCacheManager(); CacheManager cacheManager = ehCacheCacheManager.getCacheManager(); List<TSysCacheCfg> cacheCfgList = JpaTool.search(TSysCacheCfg.class, TSysCacheCfg_.deleted, "0"); for (TSysCacheCfg cacheCfg : cacheCfgList) { joinDbEhCacheConf(cacheManager, cacheCfg); } } private void joinDbEhCacheConf(CacheManager cacheManager, TSysCacheCfg cacheCfg) { if (cacheManager.cacheExists(cacheCfg.getCacheName()) == false) { CacheConfiguration configuration = createCacheConfiguration(cacheCfg); Cache cache = new Cache(configuration); cacheManager.addCache(cache); } else { logger.warn("缓存【" + cacheCfg.getCacheName() + "】已存在,不能重复添加!"); } } private CacheConfiguration createCacheConfiguration(TSysCacheCfg cacheCfg) { CacheConfiguration configuration = new CacheConfiguration(); configuration.setName(cacheCfg.getCacheName()); configuration.setMaxElementsInMemory(cacheCfg.getMaxElementsInMemory()); configuration.setMaxElementsOnDisk(cacheCfg.getMaxElementsOnDisk()); configuration.setEternal(cacheCfg.eternal()); configuration.setOverflowToDisk(cacheCfg.overflowToDisk()); configuration.setTimeToIdleSeconds(cacheCfg.getTimeToIdleSeconds()); configuration.setTimeToLiveSeconds(cacheCfg.getTimeToLiveSeconds()); configuration.setMemoryStoreEvictionPolicy(cacheCfg.getMemoryStoreEvictionPolicy()); configuration.setDiskPersistent(cacheCfg.diskPersistent()); configuration.setDiskExpiryThreadIntervalSeconds(cacheCfg.getDiskExpiryThreadIntervalSeconds()); configuration.setDiskSpoolBufferSizeMB(cacheCfg.getDiskSpoolBufferSizeMb()); return configuration; } @Override public boolean isEnabled() { return true; // 作为核心组件,必须启用 } public int getInitPriority() { return 0; } @Override public String getSqlMigrationPrefix() { return "EHCACHE"; } @Override public String getPoPackage() { return TSysCacheCfg.class.getPackage().getName(); } @Override public String getCtxConfLocation() { return "classpath*:/conf/comp-appCtx-ehcache.xml"; } }
[ "kevice@qq.com" ]
kevice@qq.com
6bb7019c81f68e96bda279e68569e0fa2c01dc2d
c84088fed6a7b4f392810bb166e66dbfe3df4286
/wms2014/src/main/java/com/yongjun/tdms/dao/base/lubricationOil/hibernate/HibernateLubricationOil.java
20ee550042bfcee6bdde6b2c44599aa1be0a860d
[]
no_license
1Will/Work1
4c419b9013d2989c4bbe6721c155de609e5ce9b5
16e707588da13e9dede5f7de97ca53e15a7d5a78
refs/heads/master
2020-05-22T16:52:56.501596
2018-03-20T01:21:01
2018-03-20T01:21:01
84,697,600
0
0
null
null
null
null
UTF-8
Java
false
false
2,224
java
/* * Copyright (c) 2001-2007 YongJun Technology Pte.,Ltd. All Rights Reserved. * * This software is the confidential and proprietary information of YongJun * Technology Pte.,Ltd. ("Confidential Information"). You shall not disclose * such Confidential Information and shall use it only in accordance with the * terms of the license agreement you entered into with YongJun. * * YONGJUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR * NON-INFRINGEMENT. YONGJUN SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY * LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS * DERIVATIVES. */ package com.yongjun.tdms.dao.base.lubricationOil.hibernate; import java.util.Collection; import java.util.List; import com.yongjun.pluto.dao.hibernate.BaseHibernateDao; import com.yongjun.tdms.dao.base.lubricationOil.LubricationOilDao; import com.yongjun.tdms.model.base.lubricationOil.LubricationOil; /** * <p>Title: HibernateLubricationOil * <p>Description: 润滑油数据访问实现类</p> * <p>Copyright: Copyright (c) 2007 yj-technology</p> * <p>Company: www.yj-technology.com</p> * @author zbzhang@yj-technology.com * @version $Id: $ * @see com.yongjun.tdms.dao.base.lubricationOil.LubricationOilDao */ public class HibernateLubricationOil extends BaseHibernateDao implements LubricationOilDao { public LubricationOil loadLubricationOil(Long lubricationOilId) { return this.load(LubricationOil.class, lubricationOilId); } public List<LubricationOil> loadAllLubricationOils(Long[] lubricationOilId) { return this.loadAll(LubricationOil.class, lubricationOilId); } public List<LubricationOil> loadAllLubricationOils() { return this.loadAll(LubricationOil.class); } public void storeLubricationOil(LubricationOil lubricationOil) { this.store(lubricationOil); } public void deleteLubricationOil(LubricationOil lubricationOil) { this.delete(lubricationOil); } public void deleteAllLubricationOils( Collection<LubricationOil> lubricationOils) { this.deleteAll(lubricationOils); } }
[ "287463504@qq.com" ]
287463504@qq.com
1f1e3467bdf5258ff6b47fe9a5c84689ed76d8bd
5f1fcddb9f754fbc01038bcaac1b22b4ecc5d605
/src/com/DGSD/DGUtils/Receiver/PortableReceiver.java
992f898929ca41d15e86bfd8bf575a0e5da50eea
[]
no_license
DanielGrech/DGUtils
828d466bccda97f9174ab271a0354e1cc334d4a0
505a016a23c5a5a79d8da43b3ef9554e187373d5
refs/heads/master
2016-09-03T01:27:02.044774
2012-01-15T05:47:19
2012-01-15T05:47:19
2,955,740
0
0
null
null
null
null
UTF-8
Java
false
false
819
java
package com.DGSD.DGUtils.Receiver; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import com.DGSD.DGUtils.Utils.Log; /** * Hack needed to dynamically allocate a receiver */ public class PortableReceiver extends BroadcastReceiver { private static final String TAG = PortableReceiver.class.getSimpleName(); private Receiver mReceiver; public void clearReceiver() { mReceiver = null; } public void setReceiver(Receiver receiver) { mReceiver = receiver; } public interface Receiver { public void onReceive(Context context, Intent intent); } @Override public void onReceive(Context context, Intent intent) { if (mReceiver != null) { mReceiver.onReceive(context, intent); } else { Log.w(TAG, "Dropping received Result"); } } }
[ "danielgrech91@gmail.com" ]
danielgrech91@gmail.com
2b9b33ddde88ed9a72c56983214912961cd6d207
0af8b92686a58eb0b64e319b22411432aca7a8f3
/single-large-project/src/test/java/org/gradle/test/performancenull_91/Testnull_9039.java
6685631139f2a485ec761e4d5f639f3eeabe8839
[]
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
304
java
package org.gradle.test.performancenull_91; import static org.junit.Assert.*; public class Testnull_9039 { private final Productionnull_9039 production = new Productionnull_9039("value"); @org.junit.Test public void test() { assertEquals(production.getProperty(), "value"); } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
a62cb50b5c1e309b404889f382f3d58251989fb8
2fb66c71bbbe0be20baf6b1130cbe5c3c4dc99f0
/src/main/java/com/ji/algo/L701_750/Solution.java
32ed0b8a64f058d5c24a23bc062299ce8ece43b2
[]
no_license
jiwawa123/myleetcode
f4aadeab23e066717cae62768710bc30033e7e18
d2719615678e9fa0b7be3b9269cbc453b6c331b1
refs/heads/master
2023-08-22T12:55:29.013924
2023-08-11T13:21:45
2023-08-11T13:21:45
179,252,894
4
1
null
2020-10-13T12:40:33
2019-04-03T09:09:24
Java
UTF-8
Java
false
false
702
java
package com.ji.algo.L701_750;/* user ji data 2019/8/8 time 9:10 AM */ import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Random; public class Solution { int[] b; int M; Random r; public Solution(int N, int[] blacklist) { b=blacklist; Arrays.sort(b); M=N-b.length; r=new Random(); } public int pick() { int a=r.nextInt(M); int l=0,r=b.length; while(l<r){ int m=(l+r)/2; if(b[m]-1-m>=a){//5 4 0 类似每一个slot最后的数 r=m; }else{ l=m+1; } } return a+l; } }
[ "252099562@qq.com" ]
252099562@qq.com
04eac4547da9533abbb986d37bb41016223c1498
801ea23bf1e788dee7047584c5c26d99a4d0b2e3
/com/planet_ink/coffee_mud/Abilities/Druid/Chant_PrayerWard.java
cd8ddfee599ef852d49a992730e78bacd712ad49
[ "Apache-2.0" ]
permissive
Tearstar/CoffeeMud
61136965ccda651ff50d416b6c6af7e9a89f5784
bb1687575f7166fb8418684c45f431411497cef9
refs/heads/master
2021-01-17T20:23:57.161495
2014-10-18T08:03:37
2014-10-18T08:03:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,556
java
package com.planet_ink.coffee_mud.Abilities.Druid; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; import com.planet_ink.coffee_mud.Behaviors.interfaces.*; import com.planet_ink.coffee_mud.CharClasses.interfaces.*; import com.planet_ink.coffee_mud.Commands.interfaces.*; import com.planet_ink.coffee_mud.Common.interfaces.*; import com.planet_ink.coffee_mud.Exits.interfaces.*; import com.planet_ink.coffee_mud.Items.interfaces.*; import com.planet_ink.coffee_mud.Locales.interfaces.*; import com.planet_ink.coffee_mud.MOBS.interfaces.*; import com.planet_ink.coffee_mud.Races.interfaces.*; import java.util.*; /* Copyright 2003-2014 Bo Zimmerman Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ @SuppressWarnings("rawtypes") public class Chant_PrayerWard extends Chant { @Override public String ID() { return "Chant_PrayerWard"; } private final static String localizedName = CMLib.lang().L("Prayer Ward"); @Override public String name() { return localizedName; } private final static String localizedStaticDisplay = CMLib.lang().L("(Prayer Ward)"); @Override public String displayText() { return localizedStaticDisplay; } @Override public int abstractQuality(){ return Ability.QUALITY_BENEFICIAL_SELF;} @Override protected int canAffectCode(){return CAN_MOBS;} @Override public int classificationCode(){return Ability.ACODE_CHANT|Ability.DOMAIN_PRESERVING;} @Override public void unInvoke() { // undo the affects of this spell if(!(affected instanceof MOB)) return; final MOB mob=(MOB)affected; if(canBeUninvoked()) mob.tell(L("Your ward against prayers fades.")); super.unInvoke(); } @Override public int castingQuality(MOB mob, Physical target) { if(mob!=null) { if(target instanceof MOB) { final MOB victim=((MOB)target).getVictim(); if((victim!=null)&&(CMLib.flags().domainAbilities(victim,Ability.ACODE_PRAYER).size()==0)) return Ability.QUALITY_INDIFFERENT; } } return super.castingQuality(mob,target); } @Override public boolean okMessage(final Environmental myHost, final CMMsg msg) { if(!(affected instanceof MOB)) return super.okMessage(myHost,msg); final MOB mob=(MOB)affected; if((msg.amITarget(mob)) &&(CMath.bset(msg.targetMajor(),CMMsg.MASK_MALICIOUS)) &&(msg.targetMinor()==CMMsg.TYP_CAST_SPELL) &&(msg.tool()!=null) &&(msg.tool() instanceof Ability) &&((((Ability)msg.tool()).classificationCode()&Ability.ALL_ACODES)==Ability.ACODE_PRAYER) &&(invoker!=null) &&(!mob.amDead()) &&(CMLib.dice().rollPercentage()<35)) { mob.location().show(mob,null,CMMsg.MSG_OK_VISUAL,L("The ward around <S-NAME> inhibits @x1!",msg.tool().name())); return false; } return super.okMessage(myHost,msg); } @Override public boolean invoke(MOB mob, Vector commands, Physical givenTarget, boolean auto, int asLevel) { MOB target=mob; if((auto)&&(givenTarget!=null)&&(givenTarget instanceof MOB)) target=(MOB)givenTarget; if(target.fetchEffect(ID())!=null) { mob.tell(target,null,null,L("<S-NAME> <S-IS-ARE> already affected by @x1.",name())); return false; } if(!super.invoke(mob,commands,givenTarget,auto,asLevel)) return false; final boolean success=proficiencyCheck(mob,0,auto); if(success) { final CMMsg msg=CMClass.getMsg(mob,target,this,verbalCastCode(mob,target,auto),auto?L("<T-NAME> <T-IS-ARE> protected from prayers."):L("^S<S-NAME> chant(s) for a ward against prayers around <T-NAMESELF>.^?")); if(mob.location().okMessage(mob,msg)) { mob.location().send(mob,msg); beneficialAffect(mob,target,asLevel,0); } } else beneficialWordsFizzle(mob,target,L("<S-NAME> chant(s) for a ward, but nothing happens.")); return success; } }
[ "bo@zimmers.net" ]
bo@zimmers.net
309d471d5f1f89e54d2ca2041698d79d202774a2
aa423bd2b28b572768617537a7e0913c7d12d526
/src/main/java/com/aspl/org/entity/ShiftMaster.java
07927568bba2f73c301c1c598a36af9eb86defae
[]
no_license
sougata143/HrMasterModuleApplication
c527a83011f6fd10eea1101dc0fd2626cffd215f
1748194e6c5c6ca6504272404298b7a7f9cd3e9e
refs/heads/master
2023-08-14T13:46:15.845104
2019-11-07T12:02:01
2019-11-07T12:02:01
220,227,009
0
0
null
2023-07-22T20:55:55
2019-11-07T12:00:53
Java
UTF-8
Java
false
false
1,313
java
package com.aspl.org.entity; import java.sql.Time; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name="shiftmaster" , schema = "crawley" ) public class ShiftMaster { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer shiftID; private String shiftName; private Time intime; private Time outtime; /** * @return the shiftID */ public Integer getShiftID() { return shiftID; } /** * @param shiftID the shiftID to set */ public void setShiftID(Integer shiftID) { this.shiftID = shiftID; } /** * @return the shiftName */ public String getShiftName() { return shiftName; } /** * @param shiftName the shiftName to set */ public void setShiftName(String shiftName) { this.shiftName = shiftName; } /** * @return the intime */ public Time getIntime() { return intime; } /** * @param intime the intime to set */ public void setIntime(Time intime) { this.intime = intime; } /** * @return the outtime */ public Time getOuttime() { return outtime; } /** * @param outtime the outtime to set */ public void setOuttime(Time outtime) { this.outtime = outtime; } }
[ "sougata.rintu@gmail.com" ]
sougata.rintu@gmail.com
d63c1fde6def5f091c8b739c54c18b8921034e7d
4545f8351ff5c61d66912a538f2b1741fa6e3e14
/3(mar)/src/mar21/xyz/Sample2.java
b5c078c39be99f2a3d3651acb5d92f12b37e3623
[]
no_license
amandeep-verma/java_learning
9765a15e93113f10eb6f11a09cc8ac47b1185079
160a29b8a462b0e26517a42f00e0da32578a0231
refs/heads/master
2023-02-20T14:52:50.720416
2021-01-21T00:30:10
2021-01-21T00:30:10
265,697,926
0
0
null
null
null
null
UTF-8
Java
false
false
451
java
package mar21.xyz; // class sample2 extends simple2, private variables and method from parent class can't be accessed. public class Sample2 extends Simple2{ void m1() // m1 is not over ridden here, as m1 in Simple2 is private. { System.out.println("anything can happen"); } void disp() { // System.out.println(a); //private // m1(); //private System.out.println(b); m2(); System.out.println(c); m3(); } }
[ "39786879+amandeep-verma@users.noreply.github.com" ]
39786879+amandeep-verma@users.noreply.github.com
93c86f751046ed554a87f0e0552cb6d247493e30
6361e8c2df285a7b725ff211505296007111e50d
/src/test/java/com/tinkerpop/gremlin/compiler/functions/g/string/ConcatFunctionTest.java
8f3e4d9add43f9431fbd195426f0ad6767fe6467
[ "BSD-3-Clause" ]
permissive
jakewins/gremlin
4be969734f1d379bdeb2bf4ff60b996c08c8a219
82a56d2f471e10e91d41a73f6d2e86f0f2fbc0fe
refs/heads/master
2021-01-17T22:07:13.250364
2010-07-09T12:41:49
2010-07-09T12:41:49
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,457
java
package com.tinkerpop.gremlin.compiler.functions.g.string; import com.tinkerpop.gremlin.BaseTest; import com.tinkerpop.gremlin.compiler.Atom; import com.tinkerpop.gremlin.compiler.functions.Function; /** * @author Marko A. Rodriguez (http://markorodriguez.com) */ public class ConcatFunctionTest extends BaseTest { public void testOneStringConcat() { Function<String> function = new ConcatFunction(); this.stopWatch(); Atom<String> atom = function.compute(createUnaryArgs("marko")); printPerformance(function.getFunctionName() + " function", 1, "argument concat", this.stopWatch()); assertEquals(atom.getValue(), "marko"); } public void testTwoStringConcat() { Function<String> function = new ConcatFunction(); this.stopWatch(); Atom<String> atom = function.compute(createUnaryArgs("marko", "rodriguez")); printPerformance(function.getFunctionName() + " function", 2, "argument concat", this.stopWatch()); assertEquals(atom.getValue(), "markorodriguez"); } public void testThreeObjectConcat() { Function<String> function = new ConcatFunction(); this.stopWatch(); Atom<String> atom = function.compute(createUnaryArgs("marko", 1, "rodriguez", 7.0d)); printPerformance(function.getFunctionName() + " function", 4, "argument concat", this.stopWatch()); assertEquals(atom.getValue(), "marko1rodriguez7.0"); } }
[ "okrammarko@gmail.com" ]
okrammarko@gmail.com
6509befef993d85a6a54d366789a8a730a092dc3
bc0a090ca738ea258048571afcd7a0678256eea5
/app/src/main/java/com/ns/yc/lifehelper/ui/other/bookReader/view/fragment/ReaderFindFragment.java
6b9b31c2db55c9a5c0f38fc28e72468ecad7367c
[]
no_license
beijing-penguin/LifeHelper
8e35302351cd1beb09281fea4e36c0c27ce4eda0
59e3e602b879d2767bfaa3927aa109d1e3f60430
refs/heads/master
2020-03-11T08:02:02.575948
2018-03-19T07:30:13
2018-03-19T07:30:13
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,959
java
package com.ns.yc.lifehelper.ui.other.bookReader.view.fragment; import android.content.Context; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.View; import android.widget.LinearLayout; import com.blankj.utilcode.util.SizeUtils; import com.ns.yc.lifehelper.R; import com.ns.yc.lifehelper.base.mvp1.BaseFragment; import com.ns.yc.lifehelper.listener.OnListItemClickListener; import com.ns.yc.lifehelper.ui.other.bookReader.view.BookReaderActivity; import com.ns.yc.lifehelper.ui.other.bookReader.view.adapter.ReaderFindAdapter; import com.ns.yc.lifehelper.ui.other.bookReader.bean.ReaderTopBookActivity; import com.ns.yc.lifehelper.ui.other.bookReader.bean.support.FindBean; import com.ns.yc.lifehelper.ui.other.bookReader.view.activity.ReaderCategoryActivity; import com.ns.yc.lifehelper.ui.other.bookReader.view.activity.ReaderSubjectActivity; import org.yczbj.ycrefreshviewlib.item.RecycleViewItemLine; import java.util.ArrayList; import java.util.List; import butterknife.Bind; import butterknife.ButterKnife; /** * ================================================ * 作 者:杨充 * 版 本:1.0 * 创建日期:2017/9/18 * 描 述:小说阅读器主页面 * 修订历史: * ================================================ */ public class ReaderFindFragment extends BaseFragment { @Bind(R.id.recyclerView) RecyclerView recyclerView; private BookReaderActivity activity; private List<FindBean> mList = new ArrayList<>(); private ReaderFindAdapter adapter; @Override public void onAttach(Context context) { super.onAttach(context); activity = (BookReaderActivity) context; } @Override public void onDetach() { super.onDetach(); activity = null; } @Override public void onDestroyView() { super.onDestroyView(); ButterKnife.unbind(this); } @Override public int getContentView() { return R.layout.fragment_reader_find; } @Override public void initView() { initViewData(); initRecycleView(); } @Override public void initListener() { } @Override public void initData() { } private void initViewData() { mList.clear(); mList.add(new FindBean("排行榜", R.drawable.home_find_rank)); mList.add(new FindBean("主题书单", R.drawable.home_find_topic)); mList.add(new FindBean("分类", R.drawable.home_find_category)); mList.add(new FindBean("有声小说", R.drawable.home_find_listen)); } private void initRecycleView() { recyclerView.setLayoutManager(new LinearLayoutManager(activity)); RecycleViewItemLine line = new RecycleViewItemLine(activity, LinearLayout.HORIZONTAL, SizeUtils.px2dp(2), activity.getResources().getColor(R.color.grayLine)); recyclerView.addItemDecoration(line); adapter = new ReaderFindAdapter(mList,activity); recyclerView.setAdapter(adapter); adapter.setOnItemClickListener(new OnListItemClickListener() { @Override public void onItemClick(View view, int position) { switch (position){ case 0: startActivity(ReaderTopBookActivity.class); break; case 1: startActivity(ReaderSubjectActivity.class); break; case 2: startActivity(ReaderCategoryActivity.class); break; case 3: break; } } }); adapter.setOnItemLongClickListener(new ReaderFindAdapter.OnItemLongClickListener() { @Override public void onLongClick(View v, int position) { } }); } }
[ "yangchong211@163.com" ]
yangchong211@163.com
21b8543679420091218a93394511bb77abbd62d6
39c4135c2ff11005ed26f7e680eaf441954bf9fb
/app/src/main/java/com/example/anandgaur/teachers/noteCreate.java
30b4f5b1a9ad5ff98c70a06b5f6803b9f5703c8d
[]
no_license
anandgaur22/Teachers_Assistance
418d68e6ba32b71fab817b36059b275ccbfafcae
5d628d8a38bfd87e05aaac756f5527ced5f9841f
refs/heads/master
2021-08-23T04:29:07.170808
2017-12-03T08:11:15
2017-12-03T08:11:15
108,845,088
6
1
null
null
null
null
UTF-8
Java
false
false
1,772
java
package com.example.anandgaur.teachers; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.EditText; import android.widget.Spinner; import android.widget.Toast; public class noteCreate extends AppCompatActivity { EditText title,body; Spinner spinner; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.note_create); Button btn = (Button)findViewById(R.id.noteSaveButton); assert btn != null; btn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { saveData(); } }); spinner = (Spinner)findViewById(R.id.pinSpinner); ArrayAdapter<String> adapterSpinner = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_dropdown_item, BaseActivity.divisions); assert spinner != null; spinner.setAdapter(adapterSpinner); } private void saveData() { title = (EditText)findViewById(R.id.noteTitle); body = (EditText)findViewById(R.id.noteBody); EditText sub = (EditText)findViewById(R.id.subjectNote); String qu = " INSERT INTO NOTES(title,body,cls,sub) VALUES('" + title.getText().toString() + "','" + body.getText().toString() +"'," + "'" + spinner.getSelectedItem().toString() + "','" + sub.getText().toString().toUpperCase() + "')"; if(BaseActivity.handler.execAction(qu)) { Toast.makeText(getBaseContext(),"Note Saved",Toast.LENGTH_LONG).show(); this.finish(); } } }
[ "anandgaur22@gmail.com" ]
anandgaur22@gmail.com
0b5c1765a5dafa0685c6198b53508d5e0e44a467
bb2c7d5a5de3e572bc47721baaf6e821b25c2a98
/spring-social-twitter-autoconfigure/src/test/java/org/springframework/social/twitter/autoconfigure/AbstractSocialAutoConfigurationTests.java
17ea04f48ecfae10d6c1b394b89663409ae5e3e8
[ "Apache-2.0" ]
permissive
mattkallo/spring-social-twitter
fb12fb5106b54cf57bedc8ccc201e4d102e282d8
ef12f5e0c698f7ec9f39211486f92b8b32344dc7
refs/heads/master
2023-02-23T08:05:39.954694
2021-02-01T00:35:06
2021-02-01T00:35:06
334,787,616
0
0
Apache-2.0
2021-02-01T00:35:07
2021-02-01T00:26:16
null
UTF-8
Java
false
false
2,474
java
/* * Copyright 2012-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.social.twitter.autoconfigure; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.Assert.fail; import org.junit.After; import org.springframework.beans.factory.NoSuchBeanDefinitionException; import org.springframework.social.UserIdSource; import org.springframework.social.connect.ConnectionFactoryLocator; import org.springframework.social.connect.ConnectionRepository; import org.springframework.social.connect.UsersConnectionRepository; import org.springframework.web.context.support.AnnotationConfigWebApplicationContext; /** * Abstract base class for testing Spring Social auto-configuration. * * @author Craig Walls */ public abstract class AbstractSocialAutoConfigurationTests { protected AnnotationConfigWebApplicationContext context; @After public void close() { if (this.context != null) { this.context.close(); } } public AbstractSocialAutoConfigurationTests() { super(); } protected void assertConnectionFrameworkBeans() { assertThat(this.context.getBean(UsersConnectionRepository.class)).isNotNull(); assertThat(this.context.getBean(ConnectionRepository.class)).isNotNull(); assertThat(this.context.getBean(ConnectionFactoryLocator.class)).isNotNull(); assertThat(this.context.getBean(UserIdSource.class)).isNotNull(); } protected void assertNoConnectionFrameworkBeans() { assertMissingBean(UsersConnectionRepository.class); assertMissingBean(ConnectionRepository.class); assertMissingBean(ConnectionFactoryLocator.class); assertMissingBean(UserIdSource.class); } protected void assertMissingBean(Class<?> beanClass) { try { assertThat(this.context.getBean(beanClass)).isNotNull(); fail("Unexpected bean in context of type " + beanClass.getName()); } catch (NoSuchBeanDefinitionException ex) { // Expected } } }
[ "craig@habuma.com" ]
craig@habuma.com
caab903b84447549a24e4d0c8e79f8ac34445dd2
fbb451429d7c4bace20f1d1c6ae4123526784491
/D2D/Server/WebService/src/com/ca/arcflash/ha/utils/WriteLogImpl.java
0bf4626dd520118f6f9ca9e0e519c9672b364811
[]
no_license
cliicy/autoupdate
93ffb71feb958ff08915327b2ea8eec356918286
8da1c549847b64a9ea00452bbc97c16621005b4f
refs/heads/master
2021-01-24T08:11:26.676542
2018-02-26T13:33:29
2018-02-26T13:33:29
122,970,736
0
0
null
null
null
null
UTF-8
Java
false
false
2,294
java
package com.ca.arcflash.ha.utils; import com.ca.arcflash.ha.vmwaremanager.WriteLogInterface; import com.ca.arcflash.webservice.replication.ReplicationMessage; import com.ca.arcflash.webservice.scheduler.Constants; class ActivityLogObj{ private long jobID; private String afguid; public ActivityLogObj(){ this(-1,""); } public ActivityLogObj(long jobID, String afguid){ this.jobID = jobID; this.afguid = afguid; } public long getJobID() { return jobID; } public void setJobID(long jobID) { this.jobID = jobID; } public String getAfguid() { return afguid; } public void setAfguid(String afguid) { this.afguid = afguid; } } public class WriteLogImpl implements WriteLogInterface { private static WriteLogImpl writeLogImpl = new WriteLogImpl(); private ThreadLocal<ActivityLogObj> writeActiveLogLocal = new ThreadLocal<ActivityLogObj>(); private WriteLogImpl(){ } public static WriteLogImpl getInstance(){ return writeLogImpl; } public void setActiveLogObj(long jobID, String afguid){ ActivityLogObj activityLogObj = writeActiveLogLocal.get(); if(activityLogObj==null){ activityLogObj = new ActivityLogObj(); } activityLogObj.setJobID(jobID); activityLogObj.setAfguid(afguid); writeActiveLogLocal.set(activityLogObj); } public void RemoveActiveLogObj(){ writeActiveLogLocal.remove(); } @Override public void printErrorLog(String msg) { // TODO Auto-generated method stub ActivityLogObj activityLogObj = writeActiveLogLocal.get(); msg = ReplicationMessage.getResource(ReplicationMessage.REPLICATION_VMWARE_MSG, msg); if(activityLogObj!=null) HACommon.addActivityLogByAFGuid(Constants.AFRES_AFALOG_ERROR, activityLogObj.getJobID(), Constants.AFRES_AFJWBS_GENERAL, new String[] { msg,"", "", "", "" }, activityLogObj.getAfguid()); } @Override public void printInfoLog(String msg) { // TODO Auto-generated method stub ActivityLogObj activityLogObj = writeActiveLogLocal.get(); msg = ReplicationMessage.getResource(ReplicationMessage.REPLICATION_VMWARE_MSG, msg); if(activityLogObj!=null) HACommon.addActivityLogByAFGuid(Constants.AFRES_AFALOG_INFO, activityLogObj.getJobID(), Constants.AFRES_AFJWBS_GENERAL, new String[] { msg,"", "", "", "" }, activityLogObj.getAfguid()); } }
[ "cliicy@gmail.com" ]
cliicy@gmail.com
5742a0a5ca48d2188c7cf135ad243aec8be38f01
26e038c523053894aa6f8a3ad4b00526aad3a937
/Trips/RoomPoly/app/src/main/java/com/commonsware/android/room/Link.java
4443fb2184c6b9f1ecf962dd542ebf2d8f46c1ec
[ "Apache-2.0" ]
permissive
p2pjack/cw-androidarch
6d77072ae5cd4454b2c3444813659c2aa9c6ddc6
4520dbf47afddcc7387088d3b84b95e346ec9e03
refs/heads/master
2020-04-23T07:16:19.103450
2019-01-20T13:23:39
2019-01-20T13:23:39
171,001,567
0
1
null
2019-02-16T12:29:27
2019-02-16T12:29:27
null
UTF-8
Java
false
false
1,851
java
/*** Copyright (c) 2018 CommonsWare, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Covered in detail in the book _Android's Architecture Components_ https://commonsware.com/AndroidArch */ package com.commonsware.android.room; import android.arch.persistence.room.Entity; import android.arch.persistence.room.ForeignKey; import android.arch.persistence.room.Ignore; import android.arch.persistence.room.Index; import android.arch.persistence.room.PrimaryKey; import android.support.annotation.NonNull; import java.util.UUID; import static android.arch.persistence.room.ForeignKey.CASCADE; @Entity( tableName="links", foreignKeys=@ForeignKey( entity=Trip.class, parentColumns="id", childColumns="tripId", onDelete=CASCADE), indices=@Index("tripId")) public class Link implements Note { @PrimaryKey @NonNull public final String id; public final String title; @NonNull public final String url; @NonNull public final String tripId; public Link(@NonNull String id, String title, @NonNull String url, @NonNull String tripId) { this.id=id; this.title=title; this.url=url; this.tripId=tripId; } @Ignore public Link(String title, @NonNull String url, @NonNull Trip trip) { this(UUID.randomUUID().toString(), title, url, trip.id); } @Override public String tripId() { return tripId; } }
[ "mmurphy@commonsware.com" ]
mmurphy@commonsware.com
387454cbff039d1d592873fd1d2b02187430de19
8a5d1e97af40a7572e78a371e717cd1953c7187c
/src/test/java/ch/ralscha/extdirectspring_itest/MyModelController.java
2bc4d9e9d4667278276258a52ad6d697707af5f4
[]
no_license
galapagosfinch/extdirectspring
0f247c69213971589f35b4b39af5697f63cc023a
cc66178869f8914f04652076fc84b7945e7bc0b7
refs/heads/master
2021-01-16T01:07:30.807846
2012-11-30T15:53:15
2012-11-30T15:53:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,895
java
/** * Copyright 2010-2012 Ralph Schaer <ralphschaer@gmail.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 ch.ralscha.extdirectspring_itest; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.stereotype.Controller; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import ch.ralscha.extdirectspring.annotation.ExtDirectMethod; import ch.ralscha.extdirectspring.annotation.ExtDirectMethodType; import ch.ralscha.extdirectspring.bean.ExtDirectResponseBuilder; @Controller @RequestMapping("myModel") public class MyModelController extends BaseController<MyModel> { @Override @ExtDirectMethod(value = ExtDirectMethodType.FORM_POST, group = "itest_base") @RequestMapping(value = "/method1", method = RequestMethod.POST) public void method1(HttpServletRequest request, HttpServletResponse response, MyModel model, final BindingResult result) { ExtDirectResponseBuilder.create(request, response).addErrors(result).buildAndWrite(); } @Override public void method2(HttpServletRequest request, HttpServletResponse response, MyModel model, final BindingResult result) { ExtDirectResponseBuilder.create(request, response).addErrors(result).buildAndWrite(); } }
[ "ralphschaer@gmail.com" ]
ralphschaer@gmail.com
a06bbe5527c29e1cab44c141e413badbb28496ea
964601fff9212bec9117c59006745e124b49e1e3
/matos-midp-msa/src/main/java/javax/microedition/contactless/visual/VisualTagConnection.java
5beaea79476337fa94972c12da06c0453e147ba9
[ "Apache-2.0" ]
permissive
vadosnaprimer/matos-profiles
bf8300b04bef13596f655d001fc8b72315916693
fb27c246911437070052197aa3ef91f9aaac6fc3
refs/heads/master
2020-05-23T07:48:46.135878
2016-04-05T13:14:42
2016-04-05T13:14:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,343
java
package javax.microedition.contactless.visual; /* * #%L * Matos * $Id:$ * $HeadURL:$ * %% * Copyright (C) 2004 - 2014 Orange SA * %% * 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. * #L% */ import javax.microedition.io.Connection; import com.francetelecom.rd.stubs.annotation.ClassDone; import com.francetelecom.rd.stubs.annotation.Real; @ClassDone @Real("com.francetelecom.rd.fakemidp.jsr257.VisualTagConnectionImplem") public interface VisualTagConnection extends Connection { public java.lang.Object generateVisualTag(byte[] data, java.lang.Class imageClass, ImageProperties properties) throws VisualTagCodingException, java.io.IOException; public byte [] readVisualTag(java.lang.Object tagImage,java.lang.Class imageClass, java.lang.String symbologyName) throws VisualTagCodingException, java.io.IOException; }
[ "pierre.cregut@orange.com" ]
pierre.cregut@orange.com
3aa47b3e609537c405c5ea140bd9998dc05913c8
791265898121d8a17e8d2c2eeb1f9a61afa69385
/bancol_avaluos/src/main/java/com/helio4/bancol/avaluos/servicio/util/StringUtils.java
a660e5c813e90531fc88982b059db25849b2253d
[]
no_license
jarivera94/spring
2309f0520294927c5a5b31f16115a424d036b945
b180131f7396dbe0a72af10f6fff16dae417ca3f
refs/heads/master
2020-04-05T00:44:20.775243
2018-11-06T15:54:51
2018-11-06T15:54:51
116,262,012
0
0
null
null
null
null
UTF-8
Java
false
false
1,553
java
package com.helio4.bancol.avaluos.servicio.util; import com.helio4.bancol.avaluos.dto.AvaluoDTO; public class StringUtils { public static String deshacerCamelCase(String camelCase) { String resultado = ""; for (int x=0 ; x<camelCase.length() ; x++) { if (x > 0 && Character.isUpperCase(camelCase.charAt(x))) { resultado = resultado+" "+camelCase.substring(x, x+1); } else { resultado = resultado + camelCase.substring(x, x+1); } } return resultado; } public static String obtenerDireccion(AvaluoDTO avaluo) { return avaluo.getDireccionInmuebleInforme() != null && avaluo.getAdicionalDireccionInforme() != null ? avaluo.getDireccionInmuebleInforme().contains(avaluo.getAdicionalDireccionInforme()) ? avaluo.getDireccionInmuebleInforme() : avaluo.getDireccionInmuebleInforme() + " " + avaluo.getAdicionalDireccionInforme() : avaluo.getDireccionInmuebleInforme() != null ? avaluo.getDireccionInmuebleInforme() : avaluo.getAdicionalDireccionInforme(); } /** * <p>Elimina caracteres especiales de la cadena que se envia * como parametro obteniendo solo los numeros contenidos en la cadena </p> * */ public static String obtenerNumeros(Object value) { String valor = String.valueOf(value); String procesado = valor.replaceAll("[^0-9]", ""); return procesado; } }
[ "jrivera@koghi.com" ]
jrivera@koghi.com
ad6ecadbbb70668def4cb4df0b2f8ca304399825
bcaa1a733700b8be816982c239d9079fa8c334b7
/eu.openanalytics.phaedra.datacapture/src/eu/openanalytics/phaedra/datacapture/util/FeatureDefinition.java
d82f361bfececd8cf714910009b73ff4fa38db00
[]
no_license
openanalytics/phaedra
dfb16cc300d0d90ca9eab233068207452d458040
2b0b79000bfcac311072b91f31eb196b08d294fe
refs/heads/master
2020-12-31T07:01:38.108586
2020-12-16T12:30:35
2020-12-16T12:30:35
58,546,934
16
4
null
null
null
null
UTF-8
Java
false
false
1,154
java
package eu.openanalytics.phaedra.datacapture.util; public class FeatureDefinition { public boolean addFeatureToProtocolClass; public String name; public boolean isKey; public boolean isNumeric; public boolean isLogarithmic; public FeatureDefinition(String name) { this.addFeatureToProtocolClass = true; this.name = name; this.isKey = false; this.isNumeric = true; this.isLogarithmic = false; } /* * ******************* * Convenience methods * ******************* */ @Override public String toString() { String f = name+" (isKey="+isKey+"; isNumeric="+isNumeric+"; isLogarithmic="+isLogarithmic+")"; if(addFeatureToProtocolClass) return "ADD: "+f; else return "DO NOT ADD: "+f; } @Override public int hashCode() { return this.name.hashCode(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; FeatureDefinition other = (FeatureDefinition) obj; return this.name.equals(other.name); } }
[ "tobias.verbeke@openanalytics.eu" ]
tobias.verbeke@openanalytics.eu
7f694039d5113a307d3d564a4cfaf2b7dbefe957
805b2a791ec842e5afdd33bb47ac677b67741f78
/Mage.Sets/src/mage/sets/portal/MonstrousGrowth.java
2a4a89c39be285f024ebfa89cb5db75267bce386
[]
no_license
klayhamn/mage
0d2d3e33f909b4052b0dfa58ce857fbe2fad680a
5444b2a53beca160db2dfdda0fad50e03a7f5b12
refs/heads/master
2021-01-12T19:19:48.247505
2015-08-04T20:25:16
2015-08-04T20:25:16
39,703,242
2
0
null
2015-07-25T21:17:43
2015-07-25T21:17:42
null
UTF-8
Java
false
false
2,141
java
/* * Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are * permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this list of * conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, this list * of conditions and the following disclaimer in the documentation and/or other materials * provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``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 BetaSteward_at_googlemail.com 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. * * The views and conclusions contained in the software and documentation are those of the * authors and should not be interpreted as representing official policies, either expressed * or implied, of BetaSteward_at_googlemail.com. */ package mage.sets.portal; import java.util.UUID; /** * * @author Plopman */ public class MonstrousGrowth extends mage.sets.seventhedition.MonstrousGrowth { public MonstrousGrowth(UUID ownerId) { super(ownerId); this.cardNumber = 98; this.expansionSetCode = "POR"; } public MonstrousGrowth(final MonstrousGrowth card) { super(card); } @Override public MonstrousGrowth copy() { return new MonstrousGrowth(this); } }
[ "Plopman@hotmail.ch" ]
Plopman@hotmail.ch
059e419d66323000210b4aef51f7ac2998b76c93
082e26b011e30dc62a62fae95f375e4f87d9e99c
/docs/weixin_7.0.4_source/反编译源码/未反混淆/src/main/java/com/tencent/mm/plugin/fts/ui/b/c.java
56cb03274327e7da51d12a5b24aa87d079da856c
[]
no_license
xsren/AndroidReverseNotes
9631a5aabc031006e795a112b7ac756a8edd4385
9202c276fe9f04a978e4e08b08e42645d97ca94b
refs/heads/master
2021-04-07T22:50:51.072197
2019-07-16T02:24:43
2019-07-16T02:24:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
655
java
package com.tencent.mm.plugin.fts.ui.b; import android.content.Context; import com.tencent.matrix.trace.core.AppMethodBeat; import com.tencent.mm.plugin.fts.a.d.a; import com.tencent.mm.plugin.fts.a.d.e; import com.tencent.mm.plugin.fts.a.d.e.b; public final class c extends a { public final e a(Context context, b bVar, int i) { AppMethodBeat.i(62042); com.tencent.mm.plugin.fts.ui.d.c cVar = new com.tencent.mm.plugin.fts.ui.d.c(context, bVar, i); AppMethodBeat.o(62042); return cVar; } public final int getType() { return 48; } public final int getPriority() { return 48; } }
[ "alwangsisi@163.com" ]
alwangsisi@163.com
fc64fa98a12f13aaad3178dfeef293eb7b1b1acc
feecaffdf3c9a4998d44a3baa7181ae0091d9434
/src/main/java/com/starylwu/string/LongestHuiWenChuan/LongestHuiWenChuanAlgorithm.java
87cf3f509041d8e102040f9d0a792fda30d0562b
[]
no_license
star-lywu/string-algorithm
5d1577dd99610659376c5167f25f23f7da77cc7b
1a2b3e140f055286f0fbbb1749f9c519d1d31823
refs/heads/master
2020-03-28T07:15:01.993989
2018-10-10T11:18:39
2018-10-10T11:18:39
147,890,010
0
0
null
null
null
null
UTF-8
Java
false
false
542
java
package com.starylwu.string.LongestHuiWenChuan; /** * @Auther: Wuyulong * @Date: 2018/9/8 09:54 * @Description: 最长回文串 给定一个包含大写字母和小写字母的字符串, * 找到通过这些字母构造成的最长的回文串。在构造过程中, * 请注意区分大小写。比如 "Aa" 不能当做一个回文字符串。 * 例:给定一个字符串,查找重组后的字符串可以构成的最长回文串 */ public final class LongestHuiWenChuanAlgorithm { }
[ "l" ]
l
da91bb4f8fe61f481ba4b826580926863497e3b8
b2c3393f651e0080be86f71163393a0f2e2c157a
/src/gencfg/tool/ExportBroadcast.java
e9513cc00719eede64480d94c7ad95261985ef8d
[]
no_license
pirunxi/perfect-gen
edc2d69eda7792b61cb01244aaf9e16960a56a31
5b22545e8fab02e07af252ad09562f33c20b16b4
refs/heads/master
2021-03-16T05:08:50.265698
2018-05-15T03:52:47
2018-05-15T03:52:47
100,660,855
2
1
null
null
null
null
UTF-8
Java
false
false
926
java
package gencfg.tool; import gencfg.Utils; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; /** * Created by HuangQiang on 2017/1/3. */ public class ExportBroadcast { public static void main(String[] argv) throws Exception { final String excelFile = argv[0]; List<List<String>> lines = Utils.parseExcel(excelFile); List<String> out = new ArrayList<>(); out.add("{"); for(List<String> line : lines) { if(line.size() != 4) continue; if(line.get(0).startsWith("##")) continue; out.add(String.format("{ title = [===[%s]===], content =[===[%s]===], date = [===[%s]===], isnew=%s},", line.get(0), line.get(1), line.get(2), line.get(3).equalsIgnoreCase("true"))); } out.add("}"); Utils.save("./broadcast.lua", out.stream().collect(Collectors.joining("\n"))); } }
[ "taojingjian@gmail.com" ]
taojingjian@gmail.com
561ad0b8ed32cbd88508f7bc6f753bdadb217a90
db7c761cfa4190dd61046f7eb773ab1d78df7cc1
/Reflection/src/main/java/com/oop/orangeengine/reflection/OClass.java
ddd65a16b12f9d6ffb4ea562d9dd248278eec649
[]
no_license
OOP-778/orange-engine
f9cf6366cbea1cd6d0082a2c4ba652fac9d28e3d
c344114f7e929748f3754324ad0e03d8db8edb5b
refs/heads/master
2023-06-28T18:14:21.832082
2021-08-06T13:51:09
2021-08-06T13:51:09
305,755,996
1
0
null
null
null
null
UTF-8
Java
false
false
3,011
java
package com.oop.orangeengine.reflection; import com.oop.orangeengine.reflection.resolve.resolved.ResolvedField; import com.oop.orangeengine.reflection.resolve.resolved.ResolvedMethod; import com.oop.orangeengine.reflection.resolve.resolvers.field.FieldResolver; import com.oop.orangeengine.reflection.resolve.resolvers.field.FieldsResolver; import com.oop.orangeengine.reflection.resolve.resolvers.method.MethodResolver; import com.oop.orangeengine.reflection.resolve.resolvers.method.MethodsResolver; import lombok.Getter; import lombok.Setter; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.HashSet; import java.util.Optional; import java.util.Set; import java.util.function.Consumer; public class OClass { @Getter private Class<?> javaClass; @Setter @Getter private Consumer<Throwable> exceptionHandler; //Resolved Methods private Set<ResolvedMethod> methodSet = new HashSet<>(); //Resolved Fields private Set<ResolvedField> fieldSet = new HashSet<>(); protected OClass(Class<?> owner) { this.javaClass = owner; } public MethodResolver newMethodResolver() { MethodResolver methodResolver = new MethodResolver(this); methodResolver.setIfFailed(exceptionHandler); return methodResolver; } public MethodsResolver newMethodsResolver() { MethodsResolver methodsResolver = new MethodsResolver(this); methodsResolver.setIfFailed(exceptionHandler); return methodsResolver; } public FieldResolver newFieldResolver() { FieldResolver fieldResolver = new FieldResolver(this); fieldResolver.setIfFailed(exceptionHandler); return fieldResolver; } public FieldsResolver newFieldsResolver() { FieldsResolver fieldsResolver = new FieldsResolver(this); fieldsResolver.setIfFailed(exceptionHandler); return fieldsResolver; } public ResolvedMethod registerMethod(Method method) { ResolvedMethod resolvedMethod = new ResolvedMethod(method); methodSet.add(resolvedMethod); return resolvedMethod; } public ResolvedField registerField(Field field) { ResolvedField resolvedField = new ResolvedField(field); fieldSet.add(resolvedField); return resolvedField; } public Optional<ResolvedField> getField(Field field) { return getField(field.getName()); } public Optional<ResolvedField> getField(String fieldName) { return fieldSet.stream().filter(f2 -> f2.getJavaField().getName().equals(fieldName)).findFirst(); } public Optional<ResolvedMethod> getMethod(Method method) { return getMethod(method.getName(), method.getParameterTypes()); } public Optional<ResolvedMethod> getMethod(String methodName, Class... args) { return methodSet.stream().filter(m2 -> m2.getJavaMethod().getName() == methodName && m2.getJavaMethod().getParameterTypes() == args).findFirst(); } }
[ "oskardhavel@gmail.com" ]
oskardhavel@gmail.com
7516a0fe8f8d7a59cace4c0e9cc0d8f3cb1498ec
c44a59be90656e1d4bfbeb8765465ac4bf2aff82
/pousse-cafe-test/src/test/java/poussecafe/domain/chain1/Chain1Bundle.java
7f41b517afb5b6b4f4ff469a11bd9e62fe1a5c78
[ "Apache-2.0" ]
permissive
benoitdevos/pousse-cafe
fd5022833d0160fdf9f4a21e5b8d5bc4da320c9e
dbc84ca197fa0d851db3e1c2a60701d975141fc4
refs/heads/master
2020-09-29T00:12:48.705790
2019-12-07T15:09:00
2019-12-07T15:09:00
190,152,534
0
0
null
2019-06-04T07:34:14
2019-06-04T07:34:13
null
UTF-8
Java
false
false
303
java
package poussecafe.domain.chain1; import poussecafe.discovery.BundleConfigurer; public class Chain1Bundle { public static BundleConfigurer configure() { return new BundleConfigurer.Builder() .moduleBasePackage("poussecafe.domain.chain1") .build(); } }
[ "g.dethier@gmail.com" ]
g.dethier@gmail.com
52582aa8ab36980a31534241717d4558103165d0
361b42087136a0d3bb128d98375e90bab026f5fa
/roncoo-recharge-common/src/main/java/com/roncoo/recharge/common/dao/OrderTradeDao.java
a3ce3a1a76047de8fd7701bd693c1a18bfd60d26
[]
no_license
roncoo/roncoo-recharge
c6625ad0253cf3c494d7bc29db6a3f3579b3088f
8151f2177df4f79178edb9e8c2b4eadd3e88bd9a
refs/heads/master
2022-09-15T11:46:11.183306
2022-07-07T07:37:55
2022-07-07T07:37:55
126,031,429
111
79
null
2022-09-01T23:56:08
2018-03-20T14:34:34
Java
UTF-8
Java
false
false
636
java
/** * Copyright 2015-现在 广州市领课网络科技有限公司 */ package com.roncoo.recharge.common.dao; import com.roncoo.recharge.common.entity.OrderTrade; import com.roncoo.recharge.common.entity.OrderTradeExample; import com.roncoo.recharge.util.bjui.Page; public interface OrderTradeDao { Long save(OrderTrade record); int deleteById(Long id); int updateById(OrderTrade record); OrderTrade getById(Long id); Page<OrderTrade> listForPage(int pageCurrent, int pageSize, OrderTradeExample example); OrderTrade getByOrderNoAndUserInfoId(String orderNo, Long userInfoId); OrderTrade getByTradeNo(Long tradeNo); }
[ "297115770@qq.com" ]
297115770@qq.com
7ef9fe81a155bc81845b69152dfd4a4c101fc024
d95be7b37eadbe5d358dbb45d4c59101a86e0d76
/src/main/java/org/springframework/social/cloudplaylists/api/impl/SearchTemplate.java
54b45531c97af20d629e50a420bbda63c8fbd79d
[]
no_license
cloudplaylists/spring-social-cloudplaylists
d25685f883a297fdcbd239fdf389ff2d3742e093
214214221536198da425be600eb8aa8046855efa
refs/heads/master
2021-01-23T13:54:17.807904
2014-03-10T21:59:26
2014-03-10T21:59:26
2,348,610
2
0
null
null
null
null
UTF-8
Java
false
false
2,510
java
package org.springframework.social.cloudplaylists.api.impl; import java.util.List; import java.util.Map; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.social.cloudplaylists.api.SearchOperations; import org.springframework.social.cloudplaylists.api.impl.json.MediaMap; import org.springframework.social.cloudplaylists.api.impl.json.MediaPage; import org.springframework.social.cloudplaylists.api.impl.json.PlaylistDescriptorList; import org.springframework.web.client.RestTemplate; import com.cloudplaylists.domain.Media; import com.cloudplaylists.domain.MediaProvider; import com.cloudplaylists.domain.PlaylistDescriptor; public class SearchTemplate extends AbstractCloudPlaylistsResourceOperations implements SearchOperations { public SearchTemplate(String apiBaseUrl, RestTemplate restTemplate, boolean isAuthorizedForUser) { super(apiBaseUrl, restTemplate, isAuthorizedForUser); } @Override public Page<Media> searchSoundCloud(String q, Pageable pageable) { requireAuthorization(); return restTemplate.getForObject(getApiResourceUrl("/soundcloud?q=" + q, pageable), MediaPage.class); } @Override public Page<Media> searchSoundCloud(String q) { requireAuthorization(); return restTemplate.getForObject(getApiResourceUrl("/soundcloud?q=" + q), MediaPage.class); } @Override protected String getApiResourceBaseUrl() { return getApiBaseUrl() + "/search"; } @Override public Media resolveMedia(String url, MediaProvider mediaProvider, boolean validate) { return restTemplate.getForObject(getApiResourceUrl("/media/" + mediaProvider.providerId().toLowerCase() + "?url=" + url + (validate ? "&validate=true" : "")), Media.class); } @Override public Map<MediaProvider, Media> resolveMedia(String url) { return restTemplate.getForObject(getApiResourceUrl("/media?url=" + url), MediaMap.class); } @Override public List<PlaylistDescriptor> searchPlaylists(String q, MediaProvider[] providers) { String providersString = null; ; for (MediaProvider provider : providers) { if (providersString != null) { providersString = providersString + ","; } else { providersString = ""; } providersString = providersString + provider.name(); } String queryString = "?q=" + q + (providersString == null ? "" : ("&providers=" + providersString)); return restTemplate.getForObject(getApiResourceUrl("/searchPlaylists" + queryString), PlaylistDescriptorList.class); } }
[ "michael@lavelle.name" ]
michael@lavelle.name
540e8345340febda3187a09239bdff85b2dbfec8
3afea60a934862ed72ad6813d560a84fa35844d1
/EclipseWorkSpace/SM_VideoDownloader/src/com/smartmux/videodownloader/SplashScreen.java
c0408ca75708c2431c67dd6968c929566bf276f1
[]
no_license
Phenix-Collection/Android-1
033b86b962c6d50939336a4fd827d73922eeb78c
18f185b5cdb6a7edff766169468587aa2dbfd9b5
refs/heads/master
2021-12-15T01:06:22.296429
2017-07-07T08:55:39
2017-07-07T08:55:39
null
0
0
null
null
null
null
UTF-8
Java
false
false
956
java
package com.smartmux.videodownloader; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.view.Window; import android.view.WindowManager; public class SplashScreen extends Activity{ private static int SPLASH_TIME_OUT = 2000; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setSoftInputMode( WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN); setContentView(R.layout.spalsh); new Handler().postDelayed(new Runnable() { @Override public void run() { // Intent intent = new Intent(SplashScreen.this, MainActivity.class); startActivity(intent); finish(); overridePendingTransition(R.anim.push_left_in, R.anim.push_left_out); } }, SPLASH_TIME_OUT); } }
[ "Romana@Tanvir-Androids-Mac-mini.local" ]
Romana@Tanvir-Androids-Mac-mini.local
41765960c4e5629faae48609828498019cbce04c
91c926ef2a8cdd424feffe22e8b70052e2046a5f
/src/main/java/com/prueba/demo/dataaccess/api/Paginator.java
7dc9db013fd3d906a82370dc8846bb93d215bbfd
[]
no_license
jairof/ingenieria
6edbf9d68d9435596d1db804ff84f40c6e5c7f35
ebbea76c5ac27d68394a599493109c2e78d78a00
refs/heads/master
2021-08-20T10:48:39.917255
2017-11-28T23:52:16
2017-11-28T23:52:16
112,402,670
0
0
null
null
null
null
UTF-8
Java
false
false
1,404
java
package com.prueba.demo.dataaccess.api; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.Serializable; /** * * @author <a href="mailto:dgomez@vortexbird.com">Diego A Gomez</a> * @project zathuracode * @class Paginator * @date Nov 01, 2013 * */ public class Paginator implements Serializable { private static final long serialVersionUID = 1L; private static final Logger log = LoggerFactory.getLogger(Paginator.class); private int firstResult; private int maxResults; // a separated comma order properties: +=ASC, -=DESC, for example: +id,-processName private String sort; public Paginator(int firstResult, int maxResults, String sort) { super(); this.firstResult = firstResult; this.maxResults = maxResults; this.sort = sort; } public Paginator(int firstResult, int maxResults) { this.firstResult = firstResult; this.maxResults = maxResults; } public static Paginator createPaginator() { return new Paginator(-1, -1); } public int getFirstResult() { return firstResult; } public int getMaxResults() { return maxResults; } public String getSort() { return sort; } public static Paginator getDefault() { return new Paginator(0, 1000); } }
[ "Jairo@SONYVAIO-PC" ]
Jairo@SONYVAIO-PC
40ed6821c2eb85228733b5388d7be37e535bacfe
f3a610bd7d7eaf00247c174638b78230c7435c76
/dbupdaterapp/src/main/java/com/dbciupdater/executor/DbmsName.java
1e0b6e248d25e698baa7be9badae997a26a96b28
[ "Apache-2.0" ]
permissive
SevDan/dbciupdater
4f6cd25360d81242a6f516c2e3e3218a6da5f61b
3e53d8d70394771ee62391ac7b9ca7aca85c8cca
refs/heads/main
2023-01-07T06:23:31.467158
2020-11-15T13:07:08
2020-11-15T13:07:08
310,614,104
0
0
null
null
null
null
UTF-8
Java
false
false
989
java
/* * Copyright 2020 SevDan (Daniil Sevostyanov) * * 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.dbciupdater.executor; /** * Available databases (driver should be registered in build.gradle as dependency) */ public enum DbmsName { PostgreSQL("PostgreSQL"), MySQL("MySQL"), MariaDB("MariaDB"); private final String name; DbmsName(String name) { this.name = name; } public String getName() { return name; } }
[ "danielsevostyanov@gmail.com" ]
danielsevostyanov@gmail.com
144282bcfb1c9acb92f29dc7c6209cc4373a5958
684e018ce44456ad860b9bbd01ca0fcf40be296d
/src/main/java/com/leetcode/algorithm/No113/Solution.java
94e6ed1381ec034f264eefbccd4a200a39af6928
[]
no_license
Nagisa12321/LeetCode
ebcfc5d9508e9e5feb1a9d44932f28f19d1ac3e2
14d0bd9e95fe1eef57678e3dbf3fb6751ee196d1
refs/heads/master
2023-07-15T21:32:51.265786
2021-08-29T03:37:14
2021-08-29T03:37:14
316,138,604
1
0
null
null
null
null
UTF-8
Java
false
false
941
java
package com.leetcode.algorithm.No113; import com.leetcode.struct.TreeNode; import java.util.ArrayList; import java.util.List; import java.util.Stack; /** * @author jtchen * @version 1.0 * @date 2021/5/8 18:20 */ public class Solution { public List<List<Integer>> pathSum(TreeNode root, int targetSum) { List<List<Integer>> res = new ArrayList<>(); track(root, res, new Stack<>(), targetSum); return res; } public void track(TreeNode root, List<List<Integer>> res, Stack<Integer> stack, int targetSum) { if (root == null) return; else if (root.val == targetSum && root.left == null && root.right == null) { stack.push(targetSum); res.add(new ArrayList<>(stack)); stack.pop(); } int val = root.val; stack.push(val); track(root.left, res, stack, targetSum - val); stack.pop(); stack.push(val); track(root.right, res, stack, targetSum - val); stack.pop(); } }
[ "1216414009@qq.com" ]
1216414009@qq.com
7e3060ee0271cdf35a3c591bc01269458e93a23e
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
/aliyun-java-sdk-alidns/src/main/java/com/aliyuncs/alidns/model/v20150109/DescribeDnsGtmLogsRequest.java
3df617eebbaae16ea666c95e92c5e788dd1e02e7
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-java-sdk
a263fa08e261f12d45586d1b3ad8a6609bba0e91
e19239808ad2298d32dda77db29a6d809e4f7add
refs/heads/master
2023-09-03T12:28:09.765286
2023-09-01T09:03:00
2023-09-01T09:03:00
39,555,898
1,542
1,317
NOASSERTION
2023-09-14T07:27:05
2015-07-23T08:41:13
Java
UTF-8
Java
false
false
3,219
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.alidns.model.v20150109; import com.aliyuncs.RpcAcsRequest; import com.aliyuncs.http.MethodType; import com.aliyuncs.alidns.Endpoint; /** * @author auto create * @version */ public class DescribeDnsGtmLogsRequest extends RpcAcsRequest<DescribeDnsGtmLogsResponse> { private Long startTimestamp; private Integer pageNumber; private Long endTimestamp; private String instanceId; private Integer pageSize; private String lang; private String keyword; public DescribeDnsGtmLogsRequest() { super("Alidns", "2015-01-09", "DescribeDnsGtmLogs", "alidns"); setMethod(MethodType.POST); 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 Long getStartTimestamp() { return this.startTimestamp; } public void setStartTimestamp(Long startTimestamp) { this.startTimestamp = startTimestamp; if(startTimestamp != null){ putQueryParameter("StartTimestamp", startTimestamp.toString()); } } public Integer getPageNumber() { return this.pageNumber; } public void setPageNumber(Integer pageNumber) { this.pageNumber = pageNumber; if(pageNumber != null){ putQueryParameter("PageNumber", pageNumber.toString()); } } public Long getEndTimestamp() { return this.endTimestamp; } public void setEndTimestamp(Long endTimestamp) { this.endTimestamp = endTimestamp; if(endTimestamp != null){ putQueryParameter("EndTimestamp", endTimestamp.toString()); } } public String getInstanceId() { return this.instanceId; } public void setInstanceId(String instanceId) { this.instanceId = instanceId; if(instanceId != null){ putQueryParameter("InstanceId", instanceId); } } public Integer getPageSize() { return this.pageSize; } public void setPageSize(Integer pageSize) { this.pageSize = pageSize; if(pageSize != null){ putQueryParameter("PageSize", pageSize.toString()); } } public String getLang() { return this.lang; } public void setLang(String lang) { this.lang = lang; if(lang != null){ putQueryParameter("Lang", lang); } } public String getKeyword() { return this.keyword; } public void setKeyword(String keyword) { this.keyword = keyword; if(keyword != null){ putQueryParameter("Keyword", keyword); } } @Override public Class<DescribeDnsGtmLogsResponse> getResponseClass() { return DescribeDnsGtmLogsResponse.class; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
aa8cf8094708598f33aad187c8aad0282560ff41
0016304f67a6182455af9fc6e759e3f1ad7845b7
/components/org.wso2.carbon.identity.auth.attribute.handler/src/main/java/org/wso2/carbon/identity/auth/attribute/handler/model/AuthAttribute.java
2314d3f7c285df70f1ad0b476832a1f98a87e859
[ "Apache-2.0" ]
permissive
wso2-extensions/identity-governance
5686c900263c778c317a7b994e237063fc4e3bb9
dcf9c4f2c20095f60227d9ab0c13d38badc5ed3f
refs/heads/master
2023-08-21T22:41:32.541824
2023-08-18T13:32:49
2023-08-18T13:32:49
58,141,164
14
230
Apache-2.0
2023-09-12T10:42:55
2016-05-05T15:29:12
Java
UTF-8
Java
false
false
2,405
java
/* * Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com) All Rights Reserved. * * WSO2 LLC. 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.wso2.carbon.identity.auth.attribute.handler.model; import java.util.HashMap; import java.util.Map; /** * Model class that represent an auth attribute. */ public class AuthAttribute { private String attribute; private boolean isClaim; // Used to indicate if the attribute should be handled as a sensitive attribute. private boolean isConfidential; // Used to indicate the type of the application which can be in processing or UI representation. private AuthAttributeType type; private Map<String, String> properties = new HashMap<>(); public AuthAttribute() { } public AuthAttribute(String attribute, boolean isClaim, boolean isConfidential, AuthAttributeType type) { this.attribute = attribute; this.isClaim = isClaim; this.isConfidential = isConfidential; this.type = type; } public String getAttribute() { return attribute; } public void setAttribute(String attribute) { this.attribute = attribute; } public boolean isClaim() { return isClaim; } public void setIsClaim(boolean claim) { isClaim = claim; } public boolean isConfidential() { return isConfidential; } public void setIsConfidential(boolean credential) { isConfidential = credential; } public AuthAttributeType getType() { return type; } public void setType(AuthAttributeType type) { this.type = type; } public Map<String, String> getProperties() { return properties; } public void setProperties(Map<String, String> properties) { this.properties = properties; } }
[ "janakamarasena@gmail.com" ]
janakamarasena@gmail.com
71e7a1215cfa921d4243313556502ad76d9709f3
86db324c6a039369ef9d904defd9a15c944c429c
/thrift/compiler/test/fixtures/refs/gen-android/StructWithRefTypeUnique.java
04ea5304e9c0e8bf7e9e848051f46156294f30aa
[ "Apache-2.0" ]
permissive
curoky/fbthrift
1eb3cecfee5f72748a5787e792c63276f7734f76
199ca4b1807a705fc55e6fa099c39b7e90ef03e0
refs/heads/master
2023-04-29T21:19:41.027102
2023-04-25T16:23:11
2023-04-25T16:23:11
242,927,696
0
0
Apache-2.0
2020-02-25T06:31:35
2020-02-25T06:31:34
null
UTF-8
Java
false
false
6,562
java
/** * Autogenerated by Thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ import java.util.List; import java.util.ArrayList; import java.util.Map; import java.util.HashMap; import java.util.Set; import java.util.HashSet; import java.util.Collections; import java.util.BitSet; import java.util.Arrays; import com.facebook.thrift.*; import com.facebook.thrift.annotations.*; import com.facebook.thrift.async.*; import com.facebook.thrift.meta_data.*; import com.facebook.thrift.server.*; import com.facebook.thrift.transport.*; import com.facebook.thrift.protocol.*; @SuppressWarnings({ "unused", "serial" }) public class StructWithRefTypeUnique implements TBase, java.io.Serializable, Cloneable { private static final TStruct STRUCT_DESC = new TStruct("StructWithRefTypeUnique"); private static final TField DEF_FIELD_FIELD_DESC = new TField("def_field", TType.STRUCT, (short)1); private static final TField OPT_FIELD_FIELD_DESC = new TField("opt_field", TType.STRUCT, (short)2); private static final TField REQ_FIELD_FIELD_DESC = new TField("req_field", TType.STRUCT, (short)3); public final Empty def_field; public final Empty opt_field; public final Empty req_field; public static final int DEF_FIELD = 1; public static final int OPT_FIELD = 2; public static final int REQ_FIELD = 3; public StructWithRefTypeUnique( Empty def_field, Empty opt_field, Empty req_field) { this.def_field = def_field; this.opt_field = opt_field; this.req_field = req_field; } /** * Performs a deep copy on <i>other</i>. */ public StructWithRefTypeUnique(StructWithRefTypeUnique other) { if (other.isSetDef_field()) { this.def_field = TBaseHelper.deepCopy(other.def_field); } else { this.def_field = null; } if (other.isSetOpt_field()) { this.opt_field = TBaseHelper.deepCopy(other.opt_field); } else { this.opt_field = null; } if (other.isSetReq_field()) { this.req_field = TBaseHelper.deepCopy(other.req_field); } else { this.req_field = null; } } public StructWithRefTypeUnique deepCopy() { return new StructWithRefTypeUnique(this); } public Empty getDef_field() { return this.def_field; } // Returns true if field def_field is set (has been assigned a value) and false otherwise public boolean isSetDef_field() { return this.def_field != null; } public Empty getOpt_field() { return this.opt_field; } // Returns true if field opt_field is set (has been assigned a value) and false otherwise public boolean isSetOpt_field() { return this.opt_field != null; } public Empty getReq_field() { return this.req_field; } // Returns true if field req_field is set (has been assigned a value) and false otherwise public boolean isSetReq_field() { return this.req_field != null; } @Override public boolean equals(Object _that) { if (_that == null) return false; if (this == _that) return true; if (!(_that instanceof StructWithRefTypeUnique)) return false; StructWithRefTypeUnique that = (StructWithRefTypeUnique)_that; if (!TBaseHelper.equalsNobinary(this.isSetDef_field(), that.isSetDef_field(), this.def_field, that.def_field)) { return false; } if (!TBaseHelper.equalsNobinary(this.isSetOpt_field(), that.isSetOpt_field(), this.opt_field, that.opt_field)) { return false; } if (!TBaseHelper.equalsNobinary(this.isSetReq_field(), that.isSetReq_field(), this.req_field, that.req_field)) { return false; } return true; } @Override public int hashCode() { return Arrays.deepHashCode(new Object[] {def_field, opt_field, req_field}); } // This is required to satisfy the TBase interface, but can't be implemented on immutable struture. public void read(TProtocol iprot) throws TException { throw new TException("unimplemented in android immutable structure"); } public static StructWithRefTypeUnique deserialize(TProtocol iprot) throws TException { Empty tmp_def_field = null; Empty tmp_opt_field = null; Empty tmp_req_field = null; TField __field; iprot.readStructBegin(); while (true) { __field = iprot.readFieldBegin(); if (__field.type == TType.STOP) { break; } switch (__field.id) { case DEF_FIELD: if (__field.type == TType.STRUCT) { tmp_def_field = Empty.deserialize(iprot); } else { TProtocolUtil.skip(iprot, __field.type); } break; case OPT_FIELD: if (__field.type == TType.STRUCT) { tmp_opt_field = Empty.deserialize(iprot); } else { TProtocolUtil.skip(iprot, __field.type); } break; case REQ_FIELD: if (__field.type == TType.STRUCT) { tmp_req_field = Empty.deserialize(iprot); } else { TProtocolUtil.skip(iprot, __field.type); } break; default: TProtocolUtil.skip(iprot, __field.type); break; } iprot.readFieldEnd(); } iprot.readStructEnd(); StructWithRefTypeUnique _that; _that = new StructWithRefTypeUnique( tmp_def_field ,tmp_opt_field ,tmp_req_field ); _that.validate(); return _that; } public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.def_field != null) { oprot.writeFieldBegin(DEF_FIELD_FIELD_DESC); this.def_field.write(oprot); oprot.writeFieldEnd(); } if (this.opt_field != null) { if (isSetOpt_field()) { oprot.writeFieldBegin(OPT_FIELD_FIELD_DESC); this.opt_field.write(oprot); oprot.writeFieldEnd(); } } if (this.req_field != null) { oprot.writeFieldBegin(REQ_FIELD_FIELD_DESC); this.req_field.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { return toString(1, true); } @Override public String toString(int indent, boolean prettyPrint) { return TBaseHelper.toStringHelper(this, indent, prettyPrint); } public void validate() throws TException { // check for required fields if (req_field == null) { throw new TProtocolException(TProtocolException.MISSING_REQUIRED_FIELD, "Required field 'req_field' was not present! Struct: " + toString()); } } }
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
f6c03feee4845e24e728329338876004f4644794
4bef6446f72132652db213595f6d94d4504d8807
/src/test/java/hudson/scm/CvsChangeLogHelperTest.java
c478f838e9ba7116f6a71d4b8539c30ab9809c9e
[]
no_license
gcummings/cvs-plugin
d057604f86297327c6f6655749fbbe59ddba0cdc
2a8eaa1b82d2d25aacf8871bdd5ab1ee122492ee
refs/heads/master
2021-01-18T10:56:15.731950
2012-08-28T18:16:46
2012-08-28T18:16:46
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,765
java
package hudson.scm; import hudson.EnvVars; import org.junit.Test; import org.jvnet.hudson.test.HudsonTestCase; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.io.Reader; import java.io.StringReader; import java.net.URISyntaxException; import java.nio.charset.Charset; import java.util.ArrayList; import java.util.Arrays; public class CvsChangeLogHelperTest extends HudsonTestCase { public void testMapCvsLog() { String logContents = "cvs rlog: Logging doc\n" + "\n" + "RCS file: /Users/Shared/cvs/doc/rand,v\n" + "head: 1.1\n" + "branch:\n" + "locks: strict\n" + "access list:\n" + "symbolic names:\n" + "keyword substitution: kv\n" + "total revisions: 1; selected revisions: 1\n" + "description:\n" + "----------------------------\n" + "revision 1.1\n" + "date: 2011-12-28 20:22:31 +0000; author: Michael; state: Exp; commitid: 0nRgbNtAi8rCNZMv;\n" + "adding in a test file\n" + "=============================================================================\n"; CvsModule module = new CvsModule("doc", null); CvsRepositoryItem item = new CvsRepositoryItem(new CvsRepositoryLocation.HeadRepositoryLocation(), new CvsModule[]{module}); CvsRepository repository = new CvsRepository( ":local:/Users/Shared/cvs", false, null, Arrays.asList(new CvsRepositoryItem[] {item}), new ArrayList<ExcludedRegion>(), -1); assertEquals("adding in a test file", new StringCvsLog(logContents) .mapCvsLog(repository, item, module, new EnvVars()) .getChanges().get(0).getMsg()); } public void testMapNonFilteredCvsLog() throws IOException, URISyntaxException { File changeLogFile = new File(CvsChangeLogHelperTest.class.getResource("cvsRlogOutput_ISSUE-13227.txt").toURI()); int len = (int)changeLogFile.length(); InputStream in = new FileInputStream(changeLogFile); byte[] b = new byte[len]; int total = 0; while (total < len) { int result = in.read(b, total, len - total); if (result == -1) { break; } total += result; } String logContents = new String(b, Charset.forName("UTF-8")); CvsModule module = new CvsModule("portalInt", null); CvsRepositoryItem item = new CvsRepositoryItem(new CvsRepositoryLocation.BranchRepositoryLocation("d-chg00017366_op_brc_prod-op-2012-04-19", false), new CvsModule[]{module}); CvsRepository repository = new CvsRepository(":pserver:user:password@host:port:/usr/local/cvs/repcvs/", false, null, Arrays.asList(new CvsRepositoryItem[]{item}), new ArrayList<ExcludedRegion>(), -1); CvsChangeSet cvsChangeSet = new StringCvsLog(logContents).mapCvsLog(repository, item, module, new EnvVars()); assertEquals(4, cvsChangeSet.getChanges().size()); } public void testMapNonFilteredCvsLog2() throws IOException, URISyntaxException { File changeLogFile = new File(CvsChangeLogHelperTest.class.getResource("cvsRlogOutput2.txt").toURI()); int len = (int)changeLogFile.length(); InputStream in = new FileInputStream(changeLogFile); byte[] b = new byte[len]; int total = 0; while (total < len) { int result = in.read(b, total, len - total); if (result == -1) { break; } total += result; } String logContents = new String(b, Charset.forName("UTF-8")); CvsModule module = new CvsModule("branch2", null); CvsRepositoryItem item = new CvsRepositoryItem(new CvsRepositoryLocation.BranchRepositoryLocation(/*"d-chg00017366_op_brc_prod-op-2012-04-19"*/ "branch2", false), new CvsModule[]{module}); CvsRepository repository = new CvsRepository(":pserver:user:password@host:port:/homepages/25/d83630321/htdocs/cvs", false, null, Arrays.asList(new CvsRepositoryItem[]{item}), new ArrayList<ExcludedRegion>(), -1); CvsChangeSet set = new StringCvsLog(logContents).mapCvsLog(repository, item, module, new EnvVars()); assertEquals(3, set.getChanges().size()); } public static class StringCvsLog extends CvsLog { private final String text; public StringCvsLog(String text) { this.text = text; } Reader read() throws IOException { return new StringReader(text); } void dispose() { } } }
[ "jglick@cloudbees.com" ]
jglick@cloudbees.com
fb9d95b64203d3c2412275da175607f52917138c
faddd3950f7bbfcb2774fc473ddfac3eca74fbaf
/rife_v1_remaining/src/framework/com/uwyn/rife/authentication/sessionvalidators/exceptions/SessionValidityCheckErrorException.java
4789603599277d5d57ec9333b4d01492373575f3
[]
no_license
wangbo15/rife
d4b392f6577e998f12a8b6e529886487ca9ed320
399468a4c6929f0f32ad2fc15906b89cfae0e1c1
refs/heads/master
2020-04-13T14:24:13.894322
2013-07-01T23:02:50
2013-07-01T23:02:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,050
java
/* * Copyright 2001-2008 Geert Bevin <gbevin[remove] at uwyn dot com> * Licensed under the Apache License, Version 2.0 (the "License") * $Id: SessionValidityCheckErrorException.java 3918 2008-04-14 17:35:35Z gbevin $ */ package com.uwyn.rife.authentication.sessionvalidators.exceptions; import com.uwyn.rife.authentication.exceptions.SessionValidatorException; public class SessionValidityCheckErrorException extends SessionValidatorException { private static final long serialVersionUID = 4277837804430634653L; private String mAuthId = null; private String mHostIp = null; public SessionValidityCheckErrorException(String authId, String hostIp) { this(authId, hostIp, null); } public SessionValidityCheckErrorException(String authId, String hostIp, Throwable cause) { super("Unable to check the validity of the session with authid '"+authId+"' for hostip '"+hostIp+"'.", cause); mAuthId = authId; mHostIp = hostIp; } public String getAuthId() { return mAuthId; } public String getHostIp() { return mHostIp; } }
[ "gbevin@uwyn.com" ]
gbevin@uwyn.com
bd97d50f143a4f14d2db1c1a717ca1b118c11d46
e45f290038946dc567da05ae6491e5a5eae4c2bf
/models/cinematic/plugins/org.obeonetwork.dsl.cinematic/src/org/obeonetwork/dsl/cinematic/view/util/ViewResourceFactoryImpl.java
b89f5681867e664e5cfdb974f2bd10da95b5e9e2
[]
no_license
carsonshan/InformationSystem
e54882507d646fe5c706b248a0ebf56498e4722c
192dd9a6ac71a95d96bf39107790c33450397132
refs/heads/master
2020-03-19T07:20:56.817458
2017-09-26T09:51:13
2017-09-26T12:35:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,666
java
/** * Copyright (c) 2012 Obeo. * 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: * Obeo - initial API and implementation */ package org.obeonetwork.dsl.cinematic.view.util; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.eclipse.emf.common.util.URI; import org.eclipse.emf.ecore.resource.Resource; import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; import org.eclipse.emf.ecore.xmi.XMIResource; import org.eclipse.emf.ecore.xmi.XMLParserPool; import org.eclipse.emf.ecore.xmi.XMLResource; import org.eclipse.emf.ecore.xmi.impl.URIHandlerImpl; import org.eclipse.emf.ecore.xmi.impl.XMLParserPoolImpl; /** * <!-- begin-user-doc --> * The <b>Resource Factory</b> associated with the package. * <!-- end-user-doc --> * @see org.obeonetwork.dsl.cinematic.view.util.ViewResourceImpl * @generated */ public class ViewResourceFactoryImpl extends ResourceFactoryImpl { private List<Object> lookupTable = new ArrayList<Object>(); private XMLParserPool parserPool = new XMLParserPoolImpl(); private Map<String, Object> nameToFeatureMap = new HashMap<String, Object>(); /** * Creates an instance of the resource factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ViewResourceFactoryImpl() { super(); } /** * Creates an instance of the resource. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ @Override public Resource createResource(URI uri) { XMIResource result = new ViewResourceImpl(uri); Map<Object, Object> saveOptions = result.getDefaultSaveOptions(); saveOptions.put(XMLResource.OPTION_URI_HANDLER, new URIHandlerImpl.PlatformSchemeAware()); saveOptions.put(XMLResource.OPTION_CONFIGURATION_CACHE, Boolean.TRUE); saveOptions.put(XMLResource.OPTION_USE_CACHED_LOOKUP_TABLE, lookupTable); Map<Object, Object> loadOptions = result.getDefaultLoadOptions(); loadOptions.put(XMLResource.OPTION_DEFER_ATTACHMENT, Boolean.TRUE); loadOptions.put(XMLResource.OPTION_DEFER_IDREF_RESOLUTION, Boolean.TRUE); loadOptions.put(XMLResource.OPTION_USE_DEPRECATED_METHODS, Boolean.FALSE); loadOptions.put(XMLResource.OPTION_USE_PARSER_POOL, parserPool); loadOptions.put(XMLResource.OPTION_USE_XML_NAME_TO_FEATURE_MAP, nameToFeatureMap); return result; } } //ViewResourceFactoryImpl
[ "mathieu.cartaud@obeo.fr" ]
mathieu.cartaud@obeo.fr
8e0d8973042b14b63139b798446846c5255d0551
f945e7be3b768c3c46ee4d5967c8e5dc9b62f321
/src/test/java/com/github/curriculeon/controllers/workopportunity/TestCreate.java
d904bac62e14b730dd1e3b6a63a79815409b186e
[]
no_license
Chung305/spring.obc-webserver
4927405d18c293ceb4a248bdaf0f9f2e557e462c
952f72d8f3f90bcd2c781c20661a71c7616358e5
refs/heads/master
2022-04-15T06:25:51.451681
2020-04-04T04:39:13
2020-04-04T04:39:13
null
0
0
null
null
null
null
UTF-8
Java
false
false
161
java
package com.github.curriculeon.controllers.workopportunity; /** * @author leonhunter * @created 04/04/2020 - 12:35 AM */ // TODO public class TestCreate { }
[ "xleonhunter@gmail.com" ]
xleonhunter@gmail.com
1ce12336811b734f7188cc00e2430709a9d08041
e82c1473b49df5114f0332c14781d677f88f363f
/MED-CLOUD/med-core/src/main/java/nta/med/core/domain/phr/PhrBabySleep.java
952d8c74ccdd3ae68232bd5d0845c9b38c9068b9
[]
no_license
zhiji6/mih
fa1d2279388976c901dc90762bc0b5c30a2325fc
2714d15853162a492db7ea8b953d5b863c3a8000
refs/heads/master
2023-08-16T18:35:19.836018
2017-12-28T09:33:19
2017-12-28T09:33:19
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,272
java
package nta.med.core.domain.phr; import java.math.BigDecimal; import java.sql.Timestamp; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.NamedQuery; import javax.persistence.Table; /** * The persistent class for the PHR_BABY_SLEEP database table. * */ @Entity @Table(name = "PHR_BABY_SLEEP") @NamedQuery(name = "PhrBabySleep.findAll", query = "SELECT p FROM PhrBabySleep p") public class PhrBabySleep extends PhrBaseEntity implements TimeLineDate { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "ID", unique = true, nullable = false) private Long id; private BigDecimal alert; private String note; @Column(name = "PROFILE_ID") private Long profileId; @Column(name = "SYS_ID") private String sysId; @Column(name = "TIME_START_SLEEP") private Timestamp timeStartSleep; @Column(name = "TIME_WAKE_UP") private Timestamp timeWakeUp; @Column(name = "TOTAL_HOUR_SLEEP") private Integer totalHourSleep; @Column(name = "UPD_ID") private String updId; @Column(name = "MORNING_TIME_SLEEP") private Integer morningTimeSleep; @Column(name = "AFTERNOON_TIME_SLEEP") private Integer afternoonTimeSleep; @Column(name = "NIGHT_TIME_SLEEP") private Integer nightTimeSleep; public PhrBabySleep() { } public Long getId() { return this.id; } public void setId(Long id) { this.id = id; } public BigDecimal getAlert() { return this.alert; } public void setAlert(BigDecimal alert) { this.alert = alert; } public String getNote() { return this.note; } public void setNote(String note) { this.note = note; } public Long getProfileId() { return this.profileId; } public void setProfileId(Long profileId) { this.profileId = profileId; } public String getSysId() { return this.sysId; } public void setSysId(String sysId) { this.sysId = sysId; } public Timestamp getTimeStartSleep() { return this.timeStartSleep; } public void setTimeStartSleep(Timestamp timeStartSleep) { this.timeStartSleep = timeStartSleep; } public Timestamp getTimeWakeUp() { return this.timeWakeUp; } public void setTimeWakeUp(Timestamp timeWakeUp) { this.timeWakeUp = timeWakeUp; } public Integer getTotalHourSleep() { return totalHourSleep; } public void setTotalHourSleep(Integer totalHourSleep) { this.totalHourSleep = totalHourSleep; } public Integer getMorningTimeSleep() { return morningTimeSleep; } public void setMorningTimeSleep(Integer morningTimeSleep) { this.morningTimeSleep = morningTimeSleep; } public Integer getAfternoonTimeSleep() { return afternoonTimeSleep; } public void setAfternoonTimeSleep(Integer afternoonTimeSleep) { this.afternoonTimeSleep = afternoonTimeSleep; } public Integer getNightTimeSleep() { return nightTimeSleep; } public void setNightTimeSleep(Integer nightTimeSleep) { this.nightTimeSleep = nightTimeSleep; } public String getUpdId() { return this.updId; } public void setUpdId(String updId) { this.updId = updId; } @Override public Timestamp getTimestamp() { return timeStartSleep; } }
[ "duc_nt@nittsusystem-vn.com" ]
duc_nt@nittsusystem-vn.com
031df6a9c8dad2797afaad23dc0d6ee2324d0b34
fdd8ebcb6d5b490afbe617c92778dbe1ee7bb40a
/quarkus-workshop-super-heroes/super-heroes/load-super-heroes/src/main/java/io/quarkus/workshop/superheroes/load/HeroScenario.java
0426e6097407bc0c9420a418430bb157e6879ee4
[ "Apache-2.0" ]
permissive
FroMage/quarkus-workshops
09c6069ebfa94d17803572ed7566eab7497aa53e
afd493103636d758121ccaa60ee132cdbc40d103
refs/heads/master
2020-08-07T23:12:16.848316
2019-10-08T09:36:29
2019-10-08T09:36:29
213,618,501
0
0
Apache-2.0
2019-10-08T10:56:27
2019-10-08T10:56:26
null
UTF-8
Java
false
false
3,328
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 io.quarkus.workshop.superheroes.load; import com.github.javafaker.Superhero; import javax.json.Json; import javax.json.JsonObject; import javax.ws.rs.client.Entity; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.ThreadLocalRandom; import java.util.stream.Stream; import static io.quarkus.workshop.superheroes.load.Endpoint.*; import static java.util.stream.Collectors.collectingAndThen; import static java.util.stream.Collectors.toList; import static javax.ws.rs.client.Entity.json; public class HeroScenario extends ScenarioInvoker { private static final int NB_HEROES = 951; private static final String targetUrl = "http://localhost:8083"; private static final String contextRoot = "/api/heroes"; @Override protected String getTargetUrl() { return targetUrl; } @Override protected List<Endpoint> getEndpoints() { return Stream.of( endpoint(contextRoot, "GET"), endpoint(contextRoot + "/hello", "GET"), endpoint(contextRoot + "/random", "GET"), endpointWithTemplates(contextRoot + "/{id}", "GET", this::idParam), endpointWithTemplates(contextRoot + "/{id}", "DELETE", this::idParam), endpointWithEntity(contextRoot, "POST", this::createHero) ) .collect(collectingAndThen(toList(), Collections::unmodifiableList)); } private Entity createHero() { final Superhero hero = faker.superhero(); JsonObject json; if (Math.random() * 100 < 95) { json = Json.createObjectBuilder() .add("name", hero.name()) .add("otherName", faker.funnyName().name()) .add("level", faker.number().numberBetween(1, 20)) .add("picture", faker.internet().url()) .add("powers", hero.power()) .build(); } else { json = Json.createObjectBuilder() .add("otherName", faker.funnyName().name()) .add("level", 0) .add("picture", faker.internet().url()) .add("powers", hero.power()) .build(); } return json(json.toString()); } private Map<String, Object> idParam() { final HashMap<String, Object> templates = new HashMap<>(); templates.put("id", ThreadLocalRandom.current().nextInt(0, NB_HEROES + 1)); return templates; } }
[ "antonio.goncalves@gmail.com" ]
antonio.goncalves@gmail.com
141ec8d05c067009839cf6665dce499f2b27ae4c
0728b3aadf0b1091951de8f9755d587060ab10a0
/generator2/src/main/java/org/apache/velocity/runtime/parser/node/ASTEscapedDirective.java
6ebda8bf0e366bc280ef95092f2f7cfe6a16c0ec
[]
no_license
tymydlxhdj/codegenerator
3bcd85216d815364b64c59f1fa970b08fa38fd5e
da3e262579e06a36bb4b255e8870f5da5f4d2151
refs/heads/master
2020-03-22T21:18:33.386895
2020-02-27T05:39:34
2020-02-27T05:39:34
140,675,904
2
0
null
null
null
null
UTF-8
Java
false
false
2,806
java
package org.apache.velocity.runtime.parser.node; /* * 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. */ import java.io.IOException; import java.io.Writer; import org.apache.velocity.context.InternalContextAdapter; import org.apache.velocity.runtime.parser.Parser; // TODO: Auto-generated Javadoc /** * This class is responsible for handling EscapedDirectives * in VTL. * * Please look at the Parser.jjt file which is * what controls the generation of this class. * * @author <a href="mailto:geirm@optonline.net">Geir Magnusson Jr.</a> * @version $Id: ASTEscapedDirective.java 731266 2009-01-04 15:11:20Z byron $ */ public class ASTEscapedDirective extends SimpleNode { /** * Instantiates a new AST escaped directive. * * @param id * the id */ public ASTEscapedDirective(int id) { super(id); } /** * Instantiates a new AST escaped directive. * * @param p * the p * @param id * the id */ public ASTEscapedDirective(Parser p, int id) { super(p, id); } /** * Jjt accept. * * @param visitor * the visitor * @param data * the data * @return the object * @see org.apache.velocity.runtime.parser.node.SimpleNode#jjtAccept(org.apache.velocity.runtime.parser.node.ParserVisitor, * java.lang.Object) */ public Object jjtAccept(ParserVisitor visitor, Object data) { return visitor.visit(this, data); } /** * Render. * * @param context * the context * @param writer * the writer * @return true, if successful * @throws IOException * Signals that an I/O exception has occurred. * @see org.apache.velocity.runtime.parser.node.SimpleNode#render(org.apache.velocity.context.InternalContextAdapter, * java.io.Writer) */ public boolean render(InternalContextAdapter context, Writer writer) throws IOException { writer.write(getFirstToken().image); return true; } }
[ "mqfdyx0717@126.com" ]
mqfdyx0717@126.com
1001e0974cd44f3a868fbde6944570e3e928bd99
3ef55e152decb43bdd90e3de821ffea1a2ec8f75
/large/module0687_generated/src/java/module0687_generated/a/Foo1.java
ace2e01ba585e32b8086fa3e4cb2de3251f1bad9
[ "BSD-3-Clause" ]
permissive
salesforce/bazel-ls-demo-project
5cc6ef749d65d6626080f3a94239b6a509ef145a
948ed278f87338edd7e40af68b8690ae4f73ebf0
refs/heads/master
2023-06-24T08:06:06.084651
2023-03-14T11:54:29
2023-03-14T11:54:29
241,489,944
0
5
BSD-3-Clause
2023-03-27T11:28:14
2020-02-18T23:30:47
Java
UTF-8
Java
false
false
1,563
java
package module0687_generated.a; import java.util.zip.*; import javax.annotation.processing.*; import javax.lang.model.*; /** * Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut * labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. * Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. * * @see java.awt.datatransfer.DataFlavor * @see java.beans.beancontext.BeanContext * @see java.io.File */ @SuppressWarnings("all") public abstract class Foo1<X> extends module0687_generated.a.Foo0<X> implements module0687_generated.a.IFoo1<X> { java.rmi.Remote f0 = null; java.nio.file.FileStore f1 = null; java.sql.Array f2 = null; public X element; public static Foo1 instance; public static Foo1 getInstance() { return instance; } public static <T> T create(java.util.List<T> input) { return module0687_generated.a.Foo0.create(input); } public String getName() { return module0687_generated.a.Foo0.getInstance().getName(); } public void setName(String string) { module0687_generated.a.Foo0.getInstance().setName(getName()); return; } public X get() { return (X)module0687_generated.a.Foo0.getInstance().get(); } public void set(Object element) { this.element = (X)element; module0687_generated.a.Foo0.getInstance().set(this.element); } public X call() throws Exception { return (X)module0687_generated.a.Foo0.getInstance().call(); } }
[ "gwagenknecht@salesforce.com" ]
gwagenknecht@salesforce.com
abf8ea02e8cc987c0c3a1a5dc76517e5053145ff
2c5ea6b49e1123ab2f3e344ee50b266d61d28bee
/empapp/src/main/java/dyn/Main.java
847c19ee9da9bd8d59b7cb173e76754a6d46a963
[]
no_license
Training360/javase-20191118
ad365b6cc895418917d2bad9a6524ba86a4f6f6a
2666844fa699ba6e5be1f6cb2ddd6d24c484d6b9
refs/heads/master
2020-09-12T11:36:16.974634
2019-11-22T12:21:36
2019-11-22T12:21:36
222,411,278
1
1
null
null
null
null
UTF-8
Java
false
false
752
java
package dyn; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.Proxy; public class Main { public static void main(String[] args) { Printable printable = (Printable) Proxy.newProxyInstance(Main.class.getClassLoader(), new Class[]{Printable.class}, new InvocationHandler() { @Override public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { return "return from proxy"; } }); System.out.println(printable.print()); Printable p = new LogPrintable(new Document()); System.out.println(p.print()); } }
[ "viczian.istvan@gmail.com" ]
viczian.istvan@gmail.com
ead448b3bfda48314a30ac184c20ef6d24302a2c
1498b458360e5202e8c468f161e427c1ae8155b5
/iwsn-server/src/main/java/de/uniluebeck/itm/tr/iwsn/overlay/connection/ServerConnectionOpenedEvent.java
0cf522dd4ca4d226fdaa17bd6708018278d83b9c
[ "BSD-3-Clause" ]
permissive
smartsantander/testbed-runtime
a7edd4d2c15d1d3a57e1bec4f26b22ccdd32bcd9
7acb9f94a23b6a9d75c54fdcbc86c741fab034c4
refs/heads/master
2021-01-21T00:44:08.395635
2012-07-26T16:27:08
2012-07-26T16:27:08
1,613,473
1
0
null
null
null
null
UTF-8
Java
false
false
358
java
package de.uniluebeck.itm.tr.iwsn.overlay.connection; public class ServerConnectionOpenedEvent { private final ServerConnection serverConnection; public ServerConnectionOpenedEvent(final ServerConnection serverConnection) { this.serverConnection = serverConnection; } public ServerConnection getServerConnection() { return serverConnection; } }
[ "daniel@bimschas.com" ]
daniel@bimschas.com
d7f6fc579af468cb7f56af01e6f4343d4d1d585e
525888afee7102068ba12bea468cf52a1623fdd5
/core/src/main/java/org/airwirej/protocols/channels/PaymentChannelCloseException.java
32dc8972ea25c70ee0e582428313044171607a9f
[ "MIT", "Apache-2.0" ]
permissive
OldArchive/airwirej
cb0578a277607f9d5bdcbf8d019a026e9aa66cea
8bbd4791b8fb59271c6fb6c873289e899dc1307f
refs/heads/master
2022-12-26T21:57:23.848041
2019-06-08T13:47:41
2019-06-08T13:47:41
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,440
java
/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.airwirej.protocols.channels; /** * Used to indicate that a channel was closed before it was expected to be closed. * This could mean the connection timed out, the other send sent an error or a CLOSE message, etc */ public class PaymentChannelCloseException extends Exception { public enum CloseReason { /** We could not find a version which was mutually acceptable with the client/server */ NO_ACCEPTABLE_VERSION, /** Generated by the client when time window the suggested by the server is unacceptable */ TIME_WINDOW_UNACCEPTABLE, /** Generated by the client when the server requested we lock up an unacceptably high value */ SERVER_REQUESTED_TOO_MUCH_VALUE, /** Generated by the server when the client has used up all the value in the channel. */ CHANNEL_EXHAUSTED, // Values after here indicate its probably possible to try reopening channel again /** * <p>The {@link org.airwirej.protocols.channels.PaymentChannelClient#settle()} method was called or the * client sent a CLOSE message.</p> * <p>As long as the server received the CLOSE message, this means that the channel is settling and the payment * transaction (if any) will be broadcast. If the client attempts to open a new connection, a new channel will * have to be opened.</p> */ CLIENT_REQUESTED_CLOSE, /** * <p>The {@link org.airwirej.protocols.channels.PaymentChannelServer#close()} method was called or server * sent a CLOSE message.</p> * * <p>This may occur if the server opts to close the connection for some reason, or automatically if the channel * times out (called by {@link StoredPaymentChannelServerStates}).</p> * * <p>For a client, this usually indicates that we should try again if we need to continue paying (either * opening a new channel or continuing with the same one depending on the server's preference)</p> */ SERVER_REQUESTED_CLOSE, /** Remote side sent an ERROR message */ REMOTE_SENT_ERROR, /** Remote side sent a message we did not understand */ REMOTE_SENT_INVALID_MESSAGE, /** The connection was closed without an ERROR/CLOSE message */ CONNECTION_CLOSED, /** The server failed processing an UpdatePayment message */ UPDATE_PAYMENT_FAILED, } private final CloseReason error; public PaymentChannelCloseException(String message, CloseReason error) { super(message); this.error = error; } public CloseReason getCloseReason() { return error; } @Override public String toString() { return "PaymentChannelCloseException for reason " + getCloseReason(); } }
[ "akshaycm@hotmail.com" ]
akshaycm@hotmail.com
b964725fd88dc2d0a5e9e5ba397225715918241b
9a064f03b5d437ffbacf74ac3018626fbd1b1b0b
/src/main/java/com/learn/java/leetcode/offer36/Main.java
3cc4d2be4ba3ec758b4ce365ec83f58bd15f78d0
[ "Apache-2.0" ]
permissive
philippzhang/leetcodeLearnJava
c2437785010b7bcf50d62eeab33853a744fa1e40
ce39776b8278ce614f23f61faf28ca22bfa525e7
refs/heads/master
2022-12-21T21:43:46.677833
2021-07-12T08:13:37
2021-07-12T08:13:37
183,338,794
2
0
Apache-2.0
2022-12-16T03:55:00
2019-04-25T02:12:20
Java
UTF-8
Java
false
false
248
java
package com.learn.java.leetcode.offer36; import com.learn.java.leetcode.base.CallBack; import com.learn.java.leetcode.base.Utilitys; public class Main extends CallBack { public static void main(String[] args) { Utilitys.test(Main.class); } }
[ "philipp_zhang@163.com" ]
philipp_zhang@163.com
ad50ec24ce1896f893278ab813912edffdb7d98d
72f2f7223b56f20490fcbf8da05a3599a4718787
/src/com/simplilearn/serialization/Items/Items.java
b975875d708074f793cec79f1d4dcf47d5aa764e
[]
no_license
wahidKhan74/phase1-workspace-12-07-2020
9b738b334b58c69c15baf70d4526e85ee423e45a
eada08039528a98357ee3a79087121a17312f052
refs/heads/master
2023-02-01T00:44:29.588032
2020-12-17T16:34:10
2020-12-17T16:34:10
319,385,445
1
0
null
null
null
null
UTF-8
Java
false
false
202
java
package com.simplilearn.serialization.Items; public class Items { // WAp for serialization and deserialization Of Items Object. // Items details : id , name, description , createdDate, expireDate }
[ "wahid.khan74@gmail.com" ]
wahid.khan74@gmail.com
38b6b2dc90dd2f48146eda9d41b66a2003e47768
9fd6c10cffbf5a860724d976acaac374e675d356
/ajaxwithspring/src/main/java/com/coderbd/autocomplete/LabelValueDTO.java
f8c48701fc1b396b59aa3f91549c5ed62486a61b
[]
no_license
springapidev/spring-boot
aa98c12b547409f7ab434a41999dc5e16910670c
af1ea7f5f9d7f967acefa904d6a11c459dc9ca0b
refs/heads/master
2023-02-05T19:34:19.200294
2022-08-30T07:22:32
2022-08-30T07:22:32
95,995,027
2
1
null
2023-01-25T07:59:53
2017-07-02T00:57:53
Java
UTF-8
Java
false
false
388
java
package com.coderbd.autocomplete; public class LabelValueDTO { private String label; private String value; public String getLabel() { return label; } public void setLabel(String label) { this.label = label; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } }
[ "springapidev@gmail.com" ]
springapidev@gmail.com
a8c48d6da36fe94c8973904cf3771bb108222367
73d3802bcf5f70b0220d9c76662af047ca124d15
/gulimall-member/src/main/java/com/atguigu/gulimall/member/entity/MemberStatisticsInfoEntity.java
54c2cd90635721a9ef188b753e025f9ce0fcbbfe
[]
no_license
zch2017lrf/small-mall
eaff87a4c4b79e338f8c92c7e17580eeeef958d9
93ead71da4d049e52a1dcbd1af610bd0e7051c72
refs/heads/master
2023-04-14T10:42:17.712155
2021-03-08T01:30:04
2021-03-08T01:30:04
305,930,919
0
0
null
null
null
null
UTF-8
Java
false
false
1,465
java
package com.atguigu.gulimall.member.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.math.BigDecimal; import java.io.Serializable; import java.util.Date; import lombok.Data; /** * 会员统计信息 * * @author cosmoswong * @email sunlightcs@gmail.com * @date 2020-10-14 17:35:11 */ @Data @TableName("ums_member_statistics_info") public class MemberStatisticsInfoEntity implements Serializable { private static final long serialVersionUID = 1L; /** * id */ @TableId private Long id; /** * 会员id */ private Long memberId; /** * 累计消费金额 */ private BigDecimal consumeAmount; /** * 累计优惠金额 */ private BigDecimal couponAmount; /** * 订单数量 */ private Integer orderCount; /** * 优惠券数量 */ private Integer couponCount; /** * 评价数 */ private Integer commentCount; /** * 退货数量 */ private Integer returnOrderCount; /** * 登录次数 */ private Integer loginCount; /** * 关注数量 */ private Integer attendCount; /** * 粉丝数量 */ private Integer fansCount; /** * 收藏的商品数量 */ private Integer collectProductCount; /** * 收藏的专题活动数量 */ private Integer collectSubjectCount; /** * 收藏的评论数量 */ private Integer collectCommentCount; /** * 邀请的朋友数量 */ private Integer inviteFriendCount; }
[ "zch1158809285@163.com" ]
zch1158809285@163.com
0dae94475435736725d2850f4cb19dd96bf98861
d4e4f828a79b4877ffa9b76455770fb5c94f6883
/fit/core-reference/src/test/java/org/apache/syncope/fit/core/OIDCClientITCase.java
2fb16c76993e1aad1be719748820db1e450792bd
[ "Apache-2.0" ]
permissive
aalzehla/syncope
d8b74a35df013585fa9598bc39fcce75b79ec19f
278216e8b102d6accb5343c08d882d6f175374fa
refs/heads/master
2022-11-24T22:41:14.474597
2020-07-16T08:47:58
2020-07-16T08:47:58
280,235,265
1
0
Apache-2.0
2020-07-16T19:01:46
2020-07-16T19:01:46
null
UTF-8
Java
false
false
5,232
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.syncope.fit.core; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assumptions.assumeTrue; import org.apache.syncope.client.lib.AnonymousAuthenticationHandler; import org.apache.syncope.client.lib.SyncopeClient; import org.apache.syncope.common.lib.to.ItemTO; import org.apache.syncope.common.lib.to.OIDCLoginRequestTO; import org.apache.syncope.common.lib.to.OIDCProviderTO; import org.apache.syncope.common.lib.to.UserTO; import org.apache.syncope.common.rest.api.service.OIDCClientService; import org.apache.syncope.fit.AbstractITCase; import org.apache.syncope.fit.OIDCClientDetector; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; public class OIDCClientITCase extends AbstractITCase { @BeforeAll public static void createOIDCProviderWithoutDiscovery() throws Exception { if (!OIDCClientDetector.isOIDCClientAvailable()) { return; } assertTrue(oidcProviderService.list().isEmpty()); OIDCProviderTO google = new OIDCProviderTO(); google.setAuthorizationEndpoint("AuthorizationEndpoint"); google.setClientID("ClientID"); google.setClientSecret("ClientSecret"); google.setIssuer("https://accounts.google.com"); google.setJwksUri("JwksUri"); google.setName("Google"); google.setTokenEndpoint("TokenEndpoint"); google.setUserinfoEndpoint("UserinfoEndpoint"); oidcProviderService.create(google); } @AfterAll public static void clearProviders() throws Exception { if (!OIDCClientDetector.isOIDCClientAvailable()) { return; } oidcProviderService.list().forEach(op -> oidcProviderService.delete(op.getKey())); } @Test public void createLoginRequest() { assumeTrue(OIDCClientDetector.isOIDCClientAvailable()); SyncopeClient anonymous = clientFactory.create( new AnonymousAuthenticationHandler(ANONYMOUS_UNAME, ANONYMOUS_KEY)); OIDCLoginRequestTO loginRequest = anonymous.getService(OIDCClientService.class). createLoginRequest("http://localhost:9080/syncope-console/oidcclient/code-consumer", "Google"); assertNotNull(loginRequest); assertEquals("http://localhost:9080/syncope-console/oidcclient/code-consumer", loginRequest.getRedirectURI()); assertNotNull(loginRequest.getProviderAddress()); assertNotNull(loginRequest.getClientId()); assertNotNull(loginRequest.getResponseType()); assertNotNull(loginRequest.getScope()); assertNotNull(loginRequest.getState()); } @Test public void setProviderMapping() { assumeTrue(OIDCClientDetector.isOIDCClientAvailable()); OIDCProviderTO google = oidcProviderService.list().stream(). filter(object -> "Google".equals(object.getName())).findFirst().orElse(null); assertNotNull(google); assertFalse(google.isCreateUnmatching()); assertNull(google.getUserTemplate()); assertFalse(google.getItems().isEmpty()); assertNotEquals("fullname", google.getConnObjectKeyItem().getIntAttrName()); assertNotEquals("given_name", google.getConnObjectKeyItem().getExtAttrName()); google.setCreateUnmatching(true); UserTO userTemplate = new UserTO(); userTemplate.setRealm("'/'"); google.setUserTemplate(userTemplate); google.getItems().clear(); ItemTO keyMapping = new ItemTO(); keyMapping.setIntAttrName("fullname"); keyMapping.setExtAttrName("given_name"); google.setConnObjectKeyItem(keyMapping); oidcProviderService.update(google); google = oidcProviderService.read(google.getKey()); assertTrue(google.isCreateUnmatching()); assertEquals(userTemplate, google.getUserTemplate()); assertEquals("fullname", google.getConnObjectKeyItem().getIntAttrName()); assertEquals("given_name", google.getConnObjectKeyItem().getExtAttrName()); } }
[ "ilgrosso@apache.org" ]
ilgrosso@apache.org
e6e9518dccb408a3ac074ec98a9e7db901d77874
a26575054e41cc73f9eb2603ba0008694a038126
/tools/harness/org/apache/harmony/harness/jtests/ConfigurationExceptionTest.java
5135ff69e49a861818d54fd429102c97af072988
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
FLORG1/drlvm-vts-bundle
e269ede0e2c41b402315100d7bb830f6c3d8a097
61f0d5a91d2e703d95e669298a84fc18ae9f050d
refs/heads/master
2021-01-17T20:34:24.999958
2015-04-23T18:54:38
2015-04-23T18:54:38
45,146,096
2
0
null
2015-10-28T22:39:44
2015-10-28T22:39:43
null
UTF-8
Java
false
false
1,470
java
/* Copyright 2005-2006 The Apache Software Foundation or its licensors, as applicable Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /** * @author V.Ivanov * @version $Revision: 1.6 $ */ package org.apache.harmony.harness.jtests; import org.apache.harmony.harness.ConfigurationException; import junit.framework.TestCase; public class ConfigurationExceptionTest extends TestCase { /* * Class under test for void ConfigurationException(String) */ public final void testConfigurationExceptionString() { ConfigurationException ce = new ConfigurationException("qwerty"); assertTrue("qwerty".equals(ce.getMessage())); } /* * Class under test for void ConfigurationException() */ public final void testConfigurationException() { ConfigurationException ce = new ConfigurationException(); assertTrue(ce.getMessage() == null); } }
[ "niklas@therning.org" ]
niklas@therning.org
ae61e3bac1d2047a4a8ef1fa6e55cba34a9b9558
ca2edc37be2f36c132ce6bdc0c0d289a09f4c827
/spring-mvc-form/src/main/java/com/datagen/source/impl/FDRandomDatetimeGenerator.java
e6a6cf461e5e408b8de6b8a786c418df3758a8c4
[]
no_license
passionblue/springhiber
b90fc45d15ad1b94af37e4334ee31f615e3ee4fd
e84b14bb9da4c42fb7b3136bd88b64e2f93838ac
refs/heads/master
2021-01-21T04:51:11.191739
2016-06-12T12:55:36
2016-06-12T12:55:36
54,757,310
0
0
null
null
null
null
UTF-8
Java
false
false
3,320
java
package com.datagen.source.impl; import java.util.Date; import org.apache.commons.lang3.RandomUtils; import org.apache.commons.lang3.StringUtils; import org.joda.time.DateTime; import org.joda.time.format.DateTimeFormat; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.datagen.FData; import com.datagen.data.FDataDate; import com.datagen.data.FDataString; public class FDRandomDatetimeGenerator extends AbstractDataSource { private static Logger m_logger = LoggerFactory.getLogger(FDRandomDatetimeGenerator.class); public static final String DEFAULT_DATETIME_PATTER = "yyyyMMdd-HH:mm:ss.SSS"; private String dateStart; private String dateEnd; private String dateTimePattern = DEFAULT_DATETIME_PATTER; private String outputClass = "java.lang.String"; @Override public FData nextFData() { Date start = new Date(0); Date end = new Date(); if ( StringUtils.isNotBlank(dateStart)) start = DateTimeFormat.forPattern(dateTimePattern).parseDateTime(dateStart).toDate(); if ( StringUtils.isNotBlank(dateEnd)) end = DateTimeFormat.forPattern(dateTimePattern).parseDateTime(dateEnd).toDate(); long randomTime = RandomUtils.nextLong(start.getTime(), end.getTime()); Class clazz = String.class; try { clazz = Class.forName(outputClass); } catch (ClassNotFoundException e) { m_logger.error("",e); } String data = null; if ( clazz == String.class ) { data = new DateTime(new Date(randomTime)).toString(dateTimePattern); return new FDataString(getFieldName(), excludeInOutput, data); } else if ( clazz == Long.class ) { data = String.valueOf(randomTime); return new FDataString(getFieldName(), excludeInOutput, data); } else if ( clazz == Date.class ) { return new FDataDate(getFieldName(), excludeInOutput, new Date(randomTime) , dateTimePattern); } else { data = new DateTime(new Date(randomTime)).toString(dateTimePattern); } return new FDataString(getFieldName(), excludeInOutput, data); } @Override public FData nextFData(Object arg) { return nextFData(); } public String getDateStart() { return dateStart; } public void setDateStart(String dateStart) { this.dateStart = dateStart; } public String getDateEnd() { return dateEnd; } public void setDateEnd(String dateEnd) { this.dateEnd = dateEnd; } public String getDateTimePattern() { return dateTimePattern; } public void setDateTimePattern(String dateTimePattern) { this.dateTimePattern = dateTimePattern; } public String getOutputClass() { return outputClass; } public void setOutputClass(String outputClass) { this.outputClass = outputClass; } public static void main(String[] args) throws Exception { } }
[ "joshua@joshua-dell" ]
joshua@joshua-dell
833650ad8c691b4861665cbf1a052b658112c7b4
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/2/2_23d3996047c09f8d689d968a664c8e49b0d05590/Any23PluginManager/2_23d3996047c09f8d689d968a664c8e49b0d05590_Any23PluginManager_t.java
034157e107a3564055bb17ba26de8b6a635de5b4
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
6,947
java
/* * Copyright 2008-2010 Digital Enterprise Research Institute (DERI) * * 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.deri.any23.plugin; import net.xeoh.plugins.base.PluginManager; import net.xeoh.plugins.base.impl.PluginManagerFactory; import org.deri.any23.Configuration; import org.deri.any23.extractor.ExtractorFactory; import org.deri.any23.extractor.ExtractorGroup; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.File; import java.util.ArrayList; import java.util.List; /** * The <i>Any23PluginManager</i> is responsible for loading {@link org.deri.any23.Any23} * {ExtractorPlugin}s at startup. * * @author Michele Mostarda (mostarda@fbk.eu) */ public class Any23PluginManager { /** * Property where look for plugins. */ public static final String PLUGIN_DIRS_PROPERTY = "any23.plugin.dirs"; /** * Plugins list separator. */ public static final String PLUGIN_DIRS_LIST_SEPARATOR = ":"; private static final Logger logger = LoggerFactory.getLogger(Any23PluginManager.class); private static Any23PluginManager instance; /** * @return a singleton instance of {@link Any23PluginManager}. */ public static synchronized Any23PluginManager getInstance() { if(instance == null) { instance = new Any23PluginManager(); } return instance; } private final PluginManager pluginManager; private Any23PluginManager() { pluginManager = PluginManagerFactory.createPluginManager(); } /** * Loafs all the plugins detected within the given list of JAR files. * * @param jarFiles list of JAR files containing plugins. * @return list of errors raised when loading plugins. */ public Throwable[] loadPlugins(File... jarFiles) { final List<Throwable> errors = new ArrayList<Throwable>(); for(final File jarFile : jarFiles) { try { if(!jarFile.exists()) { throw new IllegalArgumentException( String.format("File '%s' doesn't exist.", jarFile.getAbsolutePath()) ); } pluginManager.addPluginsFrom( jarFile.toURI() ); } catch (Throwable t) { errors.add(t); } } return errors.toArray( new Throwable[errors.size()] ); } /** * @return the list of {@link ExtractorPlugin}s detected in classpath. */ // TODO: understand how to retrieve more plugins implementing the same interface. public ExtractorPlugin[] getExtractorPlugins() { final ExtractorPlugin extractorPlugin = pluginManager.getPlugin(ExtractorPlugin.class); return extractorPlugin == null ? new ExtractorPlugin[]{} : new ExtractorPlugin[] {extractorPlugin}; } /** * Configures a new list of extractors containing the extractors declared in <code>inExtractorGroup</code> * and also the extractors detected in classpath. * * @param inExtractorGroup initial list of extractors. * @return full list of extractors. */ public ExtractorGroup configureExtractors(final ExtractorGroup inExtractorGroup) { final String pluginDirs = Configuration.instance().getProperty(PLUGIN_DIRS_PROPERTY, null); if(pluginDirs == null) { logger.info( String.format("Property '%s' is not set, no plugins will be loaded.", PLUGIN_DIRS_PROPERTY)); return inExtractorGroup; } final StringBuilder report = new StringBuilder(); try { final File[] pluginLocations = getPluginLocations(pluginDirs); report.append("\nLoading plugins from locations {\n"); for (File pluginLocation : pluginLocations) { report.append(pluginLocation.getAbsolutePath()).append('\n'); } report.append("}\n"); final Throwable[] errors = loadPlugins(pluginLocations); if (errors.length > 0) { report.append("The following errors occurred while loading plugins {\n"); for (Throwable error : errors) { report.append(error); report.append("\n\n\n"); } report.append("}\n"); } final ExtractorPlugin[] extractorPlugins = getExtractorPlugins(); if (extractorPlugins.length == 0) { report.append("\n=== No plugins have been found.===\n"); return inExtractorGroup; } else { report.append("\nThe following plugins have been found {\n"); final List<ExtractorFactory<?>> newFactoryList = new ArrayList<ExtractorFactory<?>>(); for (ExtractorPlugin extractorPlugin : extractorPlugins) { newFactoryList.add(extractorPlugin.getExtractorFactory()); report.append( extractorPlugin.getExtractorFactory().getExtractorName() ).append("\n"); } report.append("}\n"); for(ExtractorFactory extractorFactory : inExtractorGroup) { newFactoryList.add(extractorFactory); } return new ExtractorGroup(newFactoryList); } } finally { logger.info(report.toString()); } } /** * Shuts down all the active plugins and the plugin manager. */ public void shutDown() { pluginManager.shutdown(); } private File[] getPluginLocations(String pluginDirsList) { final String[] locationsStr = pluginDirsList.split(PLUGIN_DIRS_LIST_SEPARATOR); final List<File> locations = new ArrayList<File>(); for(String locationStr : locationsStr) { final File location = new File(locationStr); if( ! location.exists()) { throw new IllegalArgumentException( String.format("Plugin location '%s' cannot be found.", locationStr) ); } locations.add(location); } return locations.toArray( new File[locations.size()] ); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
ccfe82ac6a5f6c04934b89d06e29eb819cdfed71
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/29/29_b09df7597dc0b30556c8377edb5974adc6e36db7/DeleteCommand/29_b09df7597dc0b30556c8377edb5974adc6e36db7_DeleteCommand_s.java
12b998ec012b89ae0a98f64d5d987c3e721d84de
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
3,062
java
/* * ==================================================================== * Copyright (c) 2004 TMate Software Ltd. All rights reserved. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms * are also available at http://tmate.org/svn/license.html. * If newer versions of this license are posted there, you may use a * newer version instead, at your option. * ==================================================================== */ package org.tmatesoft.svn.cli.command; import org.tmatesoft.svn.cli.SVNArgument; import org.tmatesoft.svn.cli.SVNCommand; import org.tmatesoft.svn.core.SVNCommitInfo; import org.tmatesoft.svn.core.SVNException; import org.tmatesoft.svn.core.SVNURL; import org.tmatesoft.svn.core.wc.SVNCommitClient; import org.tmatesoft.svn.core.wc.SVNWCClient; import java.io.File; import java.io.PrintStream; import java.util.ArrayList; import java.util.Collection; /** * @author TMate Software Ltd. */ public class DeleteCommand extends SVNCommand { public void run(PrintStream out, PrintStream err) throws SVNException { if (getCommandLine().hasURLs()) { runRemote(out); } else { runLocally(out, err); } } private void runRemote(PrintStream out) throws SVNException { final String commitMessage = (String) getCommandLine().getArgumentValue(SVNArgument.MESSAGE); SVNCommitClient client = getClientManager().getCommitClient(); Collection urls = new ArrayList(getCommandLine().getURLCount()); for(int i = 0; i < getCommandLine().getURLCount(); i++) { urls.add(getCommandLine().getURL(i)); } String[] urlsArray = (String[]) urls.toArray(new String[urls.size()]); SVNURL[] svnUrls = new SVNURL[urlsArray.length]; for (int i = 0; i < svnUrls.length; i++) { svnUrls[i] = SVNURL.parseURIEncoded(urlsArray[i]); } SVNCommitInfo info = client.doDelete(svnUrls, commitMessage); if (info != SVNCommitInfo.NULL) { out.println(); out.println("Committed revision " + info.getNewRevision() + "."); } } private void runLocally(final PrintStream out, PrintStream err) { boolean force = getCommandLine().hasArgument(SVNArgument.FORCE); getClientManager().setEventHandler(new SVNCommandEventProcessor(out, err, false)); SVNWCClient client = getClientManager().getWCClient(); boolean error = false; for (int i = 0; i < getCommandLine().getPathCount(); i++) { final String absolutePath = getCommandLine().getPathAt(i); try { client.doDelete(new File(absolutePath), force, false); } catch (SVNException e) { err.println(e.getMessage()); error = true; } } if (error) { System.exit(1); } } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
cab6e500313e8002a4cdde2fc654ab04a4fb856b
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Time/2/org/joda/time/field/DelegatedDateTimeField_getRangeDurationField_209.java
04461e5a2b3a83349698c95cdebf505ec372eb19
[]
no_license
hvdthong/NetML
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
9bb103da21327912e5a29cbf9be9ff4d058731a5
refs/heads/master
2021-06-30T15:03:52.618255
2020-10-07T01:58:48
2020-10-07T01:58:48
150,383,588
1
1
null
2018-09-26T07:08:45
2018-09-26T07:08:44
null
UTF-8
Java
false
false
817
java
org joda time field code deleg date time field delegateddatetimefield code deleg method call date time field wrap deleg date time field delegateddatetimefield thread safe immut subclass author brian neill o'neil decor date time field decorateddatetimefield deleg date time field delegateddatetimefield date time field datetimefield serializ durat field durationfield rang durat field getrangedurationfield rang durat field irangedurationfield rang durat field irangedurationfield field ifield rang durat field getrangedurationfield
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
f41039b78e80b0ac17ce0dbbdf76f7e5adad60d5
c81b91ebfa9282b9dd34ca0a42ade62bea99718e
/src/main/java/v01/ch11/action/ActionTest.java
576356ee9a6588e6e260924baae49dbc8e8e13f4
[]
no_license
smith1984/corejava
720717f079e4115b8b0c2ecb4810fc2b3968232a
c88b88d5634c4d5fd56e081fbe3ef5e87084bbff
refs/heads/master
2020-03-20T21:08:39.848551
2018-06-28T13:03:29
2018-06-28T13:03:29
137,725,965
0
0
null
null
null
null
UTF-8
Java
false
false
433
java
package v01.ch11.action; import java.awt.*; import javax.swing.*; /** * @version 1.34 2015-06-12 * @author Cay Horstmann */ public class ActionTest { public static void main(String[] args) { EventQueue.invokeLater(() -> { JFrame frame = new ActionFrame(); frame.setTitle("ActionTest"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); }); } }
[ "smith150384@gmail.com" ]
smith150384@gmail.com
e3f03b02e640f8191caa5282ac196085b475fc50
9ed51c91154e25c5533a9e1ca09323aa0e286cd1
/src/main/java/com/teamium/domain/prod/resources/Media.java
6633ab98d75a39e1df8130af6dd25b646798c2c1
[]
no_license
Arpitvarshney29/Teamium
89274df6dce311557eaa8031914321bba0747f90
1f9e12d47e23f638f5d55a67c8f21093392bc630
refs/heads/master
2022-07-07T12:09:26.478632
2020-03-02T07:13:08
2020-03-02T07:13:08
244,298,607
0
0
null
null
null
null
UTF-8
Java
false
false
5,811
java
package com.teamium.domain.prod.resources; import javax.persistence.AttributeOverride; import javax.persistence.Column; import javax.persistence.Embedded; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence.OneToOne; import javax.persistence.Table; import javax.persistence.TableGenerator; import com.teamium.domain.AbstractEntity; import com.teamium.domain.Document; import com.teamium.domain.TeamiumConstants; import com.teamium.domain.XmlEntity; /** * Describe a media used in an asset * @author marjolaine * @author sraybaud @version TEAM-18 * */ @Entity @Table(name="t_media") @NamedQueries({ @NamedQuery(name=Media.QUERY_findAll, query ="SELECT m FROM Media m"), @NamedQuery(name=Media.QUERY_countAll, query ="SELECT count(m) FROM Media m"), @NamedQuery(name=Media.QUERY_findByIds, query ="SELECT m FROM Media m WHERE m.id IN (?1)"), @NamedQuery(name=Media.FIND_BY_KEYWORD, query="SELECT m FROM Media m WHERE LOWER(m.asset.title) LIKE ?1"), }) public class Media extends AbstractEntity { /** * Generated OID */ private static final long serialVersionUID = 5357881432201924196L; /** * The alias used in named query */ public static final String ALIAS = "m"; /** * Name of the query retrieving all medias * @return the total count */ public static final String QUERY_findAll = "find_all_media"; /** * Query string for retrieving all medias, that may be ordered by OrderByClause.getClause() * @return the list of all medias */ public static final String QUERY_findAllOrdered = "SELECT m FROM Media m"; /** * Name of the query counting all medias * @return the total count */ public static final String QUERY_countAll = "count_all_media"; /** * Name of the query finding medias by ids * @return the total count */ public static final String QUERY_findByIds = "find_by_ids_media"; /** * The named query used to find equipment matching the keyword given in parameter * @param 1 keyword */ public static final String FIND_BY_KEYWORD = "find_media_by_keyword"; /** * Query string to retrieve the medias matching the given list of ids, that may be ordered by OrderByClause.getClause() * @param 1 the ids to search * @return the list of matching medias */ public static final String QUERY_findOrderedByIds = "SELECT m.id FROM Media m WHERE m.id IN (?1)"; /** * The media Id */ @Id @Column(name="c_idmedia", insertable=false, updatable=false) @TableGenerator( name = "idMedia_seq", table = TeamiumConstants.TeamiumSequenceTable, pkColumnName = TeamiumConstants.TeamiumSequencePkColumnName, pkColumnValue = "media_idmedia_seq", valueColumnName = TeamiumConstants.TeamiumSequenceColumnValue, initialValue = 1, allocationSize = 1 ) @GeneratedValue(strategy=GenerationType.TABLE, generator="idMedia_seq") private Long id; /** * Information about the max lenght */ @Column(name="c_length") private String length; /** * the label */ @Column(name="c_libelle") private String label; /** * Information about the format * @see com.teamium.domain.prod.resources.MediaFormat */ @Embedded @AttributeOverride(name="key", column=@Column(name="c_format")) private XmlEntity format; /** * CSA * @see com.teamium.domain.prod.projects.CSA */ @Embedded @AttributeOverride(name="key", column=@Column(name="c_csa")) private XmlEntity csa; /** * The document file */ @OneToOne(targetEntity=Document.class) @JoinColumn(name="c_file") private Document file; /** * The asset */ @ManyToOne @JoinColumn(name="c_asset") private Asset asset; /** * Localization * @see com.teamium.domain.prod.resources */ @Embedded @AttributeOverride(name="key", column=@Column(name="c_localization")) private XmlEntity localization; /** * The umid number */ @Column(name="c_umid") private String umid; @Override public Long getId() { return id; } @Override public void setId(Long id) { this.id = id; } /** * @return the length */ public String getLength() { return length; } /** * @param length the length to set */ public void setLength(String length) { this.length = length; } /** * @return the label */ public String getLabel() { return label; } /** * @param label the label to set */ public void setLabel(String label) { this.label = label; } /** * @return the format */ public XmlEntity getFormat() { return format; } /** * @param format the format to set */ public void setFormat(XmlEntity format) { this.format = format; } /** * @return the document */ public Document getDocument() { return file; } /** * @param document the document to set */ public void setDocument(Document file) { this.file = file; } /** * @return the umid */ public String getUmid() { return umid; } /** * @param umid the umid to set */ public void setUmid(String umid) { this.umid = umid; } /** * @return the csa */ public XmlEntity getCsa() { return csa; } /** * @param csa the csa to set */ public void setCsa(XmlEntity csa) { this.csa = csa; } /** * @return the asset */ public Asset getAsset() { return asset; } /** * @param asset the asset to set */ public void setAsset(Asset asset) { this.asset = asset; } /** * @return the localization */ public XmlEntity getLocalization() { return localization; } /** * @param localization the localization to set */ public void setLocalization(XmlEntity localization) { this.localization = localization; } }
[ "nishant.kumar@wittybrains.com" ]
nishant.kumar@wittybrains.com
d6f6c1e884ef439ce304ba11151677724f5347ed
75f088469fbc88f46276d113458f9372474a50d9
/msyt-collector/msyt-collector-pojo/src/main/java/cc/msonion/carambola/collector/pojo/CollectorAttributeGroup.java
f7f89690ff163d342e8a62cbdbbf1812ad4f6691
[]
no_license
un-knower/MsOnion-yt
4d1055aeb314a95c856e5fd2749abb6f3a504c3d
0264e966ea124bfac2e58da91190f76aa998e2c1
refs/heads/master
2020-03-17T21:20:54.023071
2017-08-12T07:17:16
2017-08-12T07:17:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,292
java
package cc.msonion.carambola.collector.pojo; import cc.msonion.carambola.parent.interfaces.pojo.base.MsOnionBasePojoAdapter; import java.util.Date; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; public class CollectorAttributeGroup implements MsOnionBasePojoAdapter { /** * 属性组主键idx,分布式架构,全局唯一递增 */ private Long idx; /** idx code 全局唯一性,解决idx可以通过递增1猜测出来,潜在安全问题, MyBatis逆向工程,动态生成字符串类型 */ private String idxCodeS; /** * idx code 全局唯一性,解决idx可以通过递增1猜测出来,潜在安全问题 */ private Long idxCode; /** * 组名称,最多10个字符,不能重复,不可以为null */ @NotNull(message = "组名称不能为空") @Size(min = 2, max = 10, message = "组名称,最少2个字符,最多10个字符") private String name; /** * 创建成员idx,不可以为null */ private Long createByMemberIdx; /** * 修改成员idx,不可以为null */ private Long updateByMemberIdx; /** * 创建时间,第一次创建时间,后续不可以修改时间 */ private Date createTime; /** * 更新时间,每一次修改都要更新时间 */ private Date updateTime; /** * 状态,1:可用的、激活的,2:未激活,0:删除,取值范围为0-9,不可以为null */ private Short status; /** * 版本号,高并发,乐观锁的解决方案 */ private Long version; /** * 扩展,0-100字符,不可以为null,必须手动设置为空字符串 */ private String ext; private static final long serialVersionUID = 1L; /** * 这个id是字符串的,和数据库中的idx(Long)对应,是JQuery EasyUI组件使用了, * 其他地方不要随便使用,例如:不可以使用在DAO层进行业务处理或者插入数据到数据库, * 不是使用id,而是使用idx(Long) * 唯一标识,idx, JavaScript 对 18位数字idx支持不好,导致最后一位丢失,所以使用字符串id */ private String id; /** * 属性组主键idx,分布式架构,全局唯一递增 */ public Long getIdx() { return idx; } /** * 属性组主键idx,分布式架构,全局唯一递增 */ public void setIdx(Long idx) { this.idx = idx; } /** idx code 全局唯一性,解决idx可以通过递增1猜测出来,潜在安全问题, MyBatis逆向工程,动态生成字符串类型 */ public String getIdxCodeS() { return String.valueOf(this.idxCode); } /** * idx code 全局唯一性,解决idx可以通过递增1猜测出来,潜在安全问题 */ public Long getIdxCode() { return idxCode; } /** * idx code 全局唯一性,解决idx可以通过递增1猜测出来,潜在安全问题 */ public void setIdxCode(Long idxCode) { this.idxCode = idxCode; } /** * 组名称,最多10个字符,不能重复,不可以为null */ public String getName() { return name; } /** * 组名称,最多10个字符,不能重复,不可以为null */ public void setName(String name) { this.name = name == null ? null : name.trim(); } /** * 创建成员idx,不可以为null */ public Long getCreateByMemberIdx() { return createByMemberIdx; } /** * 创建成员idx,不可以为null */ public void setCreateByMemberIdx(Long createByMemberIdx) { this.createByMemberIdx = createByMemberIdx; } /** * 修改成员idx,不可以为null */ public Long getUpdateByMemberIdx() { return updateByMemberIdx; } /** * 修改成员idx,不可以为null */ public void setUpdateByMemberIdx(Long updateByMemberIdx) { this.updateByMemberIdx = updateByMemberIdx; } /** * 创建时间,第一次创建时间,后续不可以修改时间 */ public Date getCreateTime() { return createTime; } /** * 创建时间,第一次创建时间,后续不可以修改时间 */ public void setCreateTime(Date createTime) { this.createTime = createTime; } /** * 更新时间,每一次修改都要更新时间 */ public Date getUpdateTime() { return updateTime; } /** * 更新时间,每一次修改都要更新时间 */ public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } /** * 状态,1:可用的、激活的,2:未激活,0:删除,取值范围为0-9,不可以为null */ public Short getStatus() { return status; } /** * 状态,1:可用的、激活的,2:未激活,0:删除,取值范围为0-9,不可以为null */ public void setStatus(Short status) { this.status = status; } /** * 版本号,高并发,乐观锁的解决方案 */ public Long getVersion() { return version; } /** * 版本号,高并发,乐观锁的解决方案 */ public void setVersion(Long version) { this.version = version; } /** * 扩展,0-100字符,不可以为null,必须手动设置为空字符串 */ public String getExt() { return ext; } /** * 扩展,0-100字符,不可以为null,必须手动设置为空字符串 */ public void setExt(String ext) { this.ext = ext == null ? null : ext.trim(); } /** * 这个id是字符串的,和数据库中的idx(Long)对应,是JQuery EasyUI组件使用了, * 其他地方不要随便使用,例如:不可以使用在DAO层进行业务处理或者插入数据到数据库, * 不是使用id,而是使用idx(Long) * 唯一标识,idx, JavaScript 对 18位数字idx支持不好,导致最后一位丢失,所以使用字符串id */ @Override public String getId() { return this.idx + ""; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", idx=").append(idx); sb.append(", idxCodeS=").append(idxCodeS); sb.append(", idxCode=").append(idxCode); sb.append(", name=").append(name); sb.append(", createByMemberIdx=").append(createByMemberIdx); sb.append(", updateByMemberIdx=").append(updateByMemberIdx); sb.append(", createTime=").append(createTime); sb.append(", updateTime=").append(updateTime); sb.append(", status=").append(status); sb.append(", version=").append(version); sb.append(", ext=").append(ext); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append(", id=").append(id); sb.append("]"); return sb.toString(); } }
[ "625816079@qq.com" ]
625816079@qq.com
8977587afeb608826e7fc764d3f3f250e510767b
03bcf39c35b6f0ada8701b85298db27b5c40b1d0
/src/xt/java/com/blnz/xsl/expr/SplitFunction.java
5da87fb99694bd2779ef1ccfab9e374323058200
[ "MIT" ]
permissive
blnz/xt
72ec72b0fb980d5fc24649ffa58fd1ca8eaa507c
8db763a4c00ac180716098c878bd1717b408197c
refs/heads/master
2021-01-17T13:49:27.000858
2016-08-01T15:34:27
2016-08-01T15:34:27
998,935
0
1
null
null
null
null
UTF-8
Java
false
false
6,544
java
// package com.blnz.xsl.expr; import com.blnz.xsl.om.*; import java.util.regex.Pattern; import java.util.regex.PatternSyntaxException; import java.util.regex.Matcher; import java.net.URL; /** * Represents the EXSL str:split function * For more information consult exsl specification at: * <A HREF="http://www.exslt.org/regexp/functions/strings/">Specification</A>. */ class SplitFunction implements Function { /** * */ public ConvertibleExpr makeCallExpr(ConvertibleExpr[] args, Node exprNode) throws ParseException { if (args.length < 2 || args.length > 3) { throw new ParseException("expected 2 or 3 arguments"); } final StringExpr srcSe = args[0].makeStringExpr(); final StringExpr sepSe = args.length == 2 ? args[1].makeStringExpr() : new LiteralExpr(" "); return new ConvertibleNodeSetExpr() { public NodeIterator eval(Node node, ExprContext context) throws XSLException { return split(node, context, srcSe.eval(node, context), sepSe.eval(node, context)); } }; } /** * */ static final private NodeIterator split(Node node, ExprContext context, String src, String separator) throws XSLException { String[] tokens = src.split(separator); // System.out.println("tokens length from{" + src + "} with {" + separator + "} is: " + tokens.length); Node[] nodes = new Node[tokens.length]; for (int i = 0; i < tokens.length; ++i) { Node textNode = new RegexTextNode( tokens[i], i, node ); nodes[i] = textNode; } return new ArrayNodeIterator(nodes, 0, nodes.length); // try { // boolean globalReplace = false; // boolean ignoreCase = false; // if ( flags.length() > 0 ) { // globalReplace = flags.indexOf("g") < 0 ? false : true; // ignoreCase = flags.indexOf("i") < 0 ? false : true; // } // Node[] groups = new Node[24]; // Pattern pat = ignoreCase ? Pattern.compile(pattern, Pattern.CASE_INSENSITIVE) : Pattern.compile(pattern); // Matcher matcher = pat.matcher(src); // if (matcher.find()) { // int gc = matcher.groupCount(); // //System.out.println("matched {" + gc + "} + 1 groups"); // for (int i = 0; i < gc + 1; ++i) { // Node regexGroupTextNode // = new RegexTextNode( matcher.group(i), i, node ); // groups[i] = regexGroupTextNode; // } // return new ArrayNodeIterator(groups, 1, gc + 1); // } else { // return null; // } // } catch (PatternSyntaxException ex) { // return null; // } catch (Exception e) { // return null; // } } static private class RegexTextNode implements Node { Node _parent; Node _root; int _index; // an identifier based upon node count in document order? Node _nextSibling; private String _data; RegexTextNode ( String regexGroupText, int index, Node parent ) { _parent = parent; _index = index; _data = regexGroupText; _root = _parent.getRoot(); _nextSibling = null; // if (parent.getLastChild() == null) // parent.getFirstChild() = parent.getLastChild() = this; // else { // parent.getLastChild().getNextSibling() = this; // parent.getLastChild() = this; // } } public Node getParent() { return _parent; } public SafeNodeIterator getFollowingSiblings() { //FIXME: ?? implement this ? return new RegexNodeIterator(null); } /** * @return the base URI for this document (obtain from root?) */ public URL getURL() { return _parent.getURL(); } boolean canStrip() { return false; } public Node getAttribute(Name name) { return null; } public String getAttributeValue(Name name) { return null; } public SafeNodeIterator getAttributes() { return new RegexNodeIterator(null); } public SafeNodeIterator getNamespaces() { return new RegexNodeIterator(null); } public Name getName() { return null; } public NamespacePrefixMap getNamespacePrefixMap() { return getParent().getNamespacePrefixMap(); } public int compareTo(Node node) { //FIXME: implement this ? // NodeImpl ni = (NodeImpl)node; // if (root == ni.root) { // return index - ((Node)node).index; // } // return root.compareRootTo(ni.root); return -1; } public Node getElementWithId(String name) { return _root.getElementWithId(name); } public String getUnparsedEntityURI(String name) { return _root.getUnparsedEntityURI(name); } public boolean isId(String name) { return false; } public String getGeneratedId() { int d = _index;//getRoot().getDocumentIndex(); if (d == 0) { return "N" + String.valueOf(_index); } else { return "N" + String.valueOf(d) + "_" + String.valueOf(_index); } } public Node getRoot() { return _root; } // javax.xml.trax.SourceLocator methods public int getLineNumber() { return _parent.getLineNumber(); } public int getColumnNumber() { return -1; } public String getSystemId() { return getRoot().getSystemId(); } public String getPublicId() { return null; } public byte getType() { return Node.TEXT; } public Name getSchemaTypeName() { return null; } public String getData() { return _data; } public SafeNodeIterator getChildren() { return new RegexNodeIterator(null); } public NodeExtension getNodeExtension() { return null; } } static private class RegexNodeIterator implements SafeNodeIterator { private Node nextNode; RegexNodeIterator(Node nextNode) { this.nextNode = nextNode; } public Node next() { return null; } } }
[ "bill@blnz.com" ]
bill@blnz.com
281b9f529208769c15e7f9c8fa54e24311a57a61
5759a9935244669aa7c05a8847e5ab524e7b5c44
/src/com/brainflow/application/actions/NearestInterpolationToggleCommand.java
4d94e52f878c7403f903b78e3bcc0f685fa6589d
[]
no_license
devillvalle/brainflow
6da65c6262c5f459cddf6fc076417ca6ce4f97a4
8264888f5fb9a37db6edd43fb45b9323f2cfc7f7
refs/heads/master
2021-01-10T12:01:02.128634
2009-02-07T19:39:13
2009-02-07T19:39:13
53,578,163
0
0
null
null
null
null
UTF-8
Java
false
false
1,033
java
package com.brainflow.application.actions; import com.brainflow.core.ImageView; import com.brainflow.display.InterpolationType; import com.pietschy.command.toggle.ToggleVetoException; /** * BrainFlow Project * User: Bradley Buchsbaum * Date: Aug 12, 2007 * Time: 10:31:56 PM */ public class NearestInterpolationToggleCommand extends BrainFlowToggleCommand { public NearestInterpolationToggleCommand() { super("toggle-interp-nearest"); } protected void handleSelection(boolean b) throws ToggleVetoException { if (b) { ImageView view = getSelectedView(); if (view != null && view.getScreenInterpolation() != InterpolationType.NEAREST_NEIGHBOR) { view.setScreenInterpolation(InterpolationType.NEAREST_NEIGHBOR); } } } public void viewSelected(ImageView view) { if (view.getScreenInterpolation() == InterpolationType.NEAREST_NEIGHBOR) { setSelected(true); } } }
[ "brad.buchsbaum@922ecd08-ad19-0410-8a94-01093a00bd73" ]
brad.buchsbaum@922ecd08-ad19-0410-8a94-01093a00bd73
4b18f47a6ad5a4af96a3add438872bbd0f8de4ca
8ec78e6ae1b611fd6e7d795fb0234f8c282d593e
/cryptoservice/src/main/java/org/admnkz/crypto/requestspep/VerifyAttachmentWithReport.java
9f99c9af9218f0d781d7ed592fbaa3dd5cbef19d
[]
no_license
vo0doO/microcredit
96678f7afddd2899ea127281168202e36ee739c0
5d16e73674685d32196af33982d922ba0c9a8a59
refs/heads/master
2021-01-18T22:23:25.182233
2016-11-25T09:04:36
2016-11-25T09:04:36
87,050,783
0
2
null
2017-04-03T07:55:10
2017-04-03T07:55:10
null
UTF-8
Java
false
false
1,936
java
package org.admnkz.crypto.requestspep; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="message" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/> * &lt;element name="verifySignatureOnly" type="{http://www.w3.org/2001/XMLSchema}boolean"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "message", "verifySignatureOnly" }) @XmlRootElement(name = "VerifyAttachmentWithReport") public class VerifyAttachmentWithReport { protected byte[] message; protected boolean verifySignatureOnly; /** * Gets the value of the message property. * * @return * possible object is * byte[] */ public byte[] getMessage() { return message; } /** * Sets the value of the message property. * * @param value * allowed object is * byte[] */ public void setMessage(byte[] value) { this.message = ((byte[]) value); } /** * Gets the value of the verifySignatureOnly property. * */ public boolean isVerifySignatureOnly() { return verifySignatureOnly; } /** * Sets the value of the verifySignatureOnly property. * */ public void setVerifySignatureOnly(boolean value) { this.verifySignatureOnly = value; } }
[ "juhnowski@gmail.com" ]
juhnowski@gmail.com
862c53a685efccb34c71bb446d711c9d2bb05c0b
66d1d4642b2b7ae3213d2acc84c8cb13f6921877
/src/main/java/examples/pool/dbutils/JdbcUtil.java
44d4126702e32f84e2baaf9480f82c6ef251c16a
[ "Apache-2.0" ]
permissive
aliandpeach/thinking-java
a67ec0a3a3e53b67714124f3852d880376a433d6
8b855ae85ae7680fe063e74329d3d4126df8b21a
refs/heads/master
2020-12-18T21:13:55.227510
2019-07-17T16:37:59
2019-07-17T16:37:59
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,220
java
package examples.pool.dbutils; import com.mchange.v2.c3p0.ComboPooledDataSource; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.sql.DataSource; import java.sql.Connection; /** * Created with IntelliJ IDEA. * User: Administrator * Date: 12-7-11 * Time: 上午10:20 * JdbcUtil */ public class JdbcUtil { private static Logger log = LoggerFactory.getLogger(JdbcUtil.class); private static ComboPooledDataSource dataSource; public synchronized static ComboPooledDataSource initDataSourcePool() { if (dataSource == null) { log.info("The first time to init origin pool"); dataSource = new ComboPooledDataSource("dataSource"); } return dataSource; } public static DataSource getDataSource() { return dataSource; } /** * 获取数据库连接 * * @return 数据库连接 * @throws Exception */ public static Connection getConnection() throws Exception { return dataSource.getConnection(); } /** * 关闭数据库连接池 * * @throws Exception */ public static void closeDataSource() throws Exception { dataSource.close(); } }
[ "yidao620@gmail.com" ]
yidao620@gmail.com
581fc2c809b51d0831e97321557cec3ef8782ec0
0cd0a325f38c339e9300ab5529628318c6ea3537
/src/main/java/io/github/util/YamlUtil.java
34c477092d5d643efbc2297e6b872fcc665617e3
[ "MIT" ]
permissive
MaAnShanGuider/bootplus
2667c030b96bda3ca757572687f8dfe15478fdb6
247d5f6c209be1a5cf10cd0fa18e1d8cc63cf55d
refs/heads/master
2022-12-10T01:33:28.426129
2020-08-24T09:33:26
2020-08-24T09:33:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,291
java
package io.github.util; import io.github.util.spring.SpringReplaceCallBack; import lombok.extern.slf4j.Slf4j; import org.yaml.snakeyaml.Yaml; import java.io.IOException; import java.io.InputStream; import java.util.HashMap; import java.util.Map; import java.util.Optional; /** * Yaml读取工具类(支持`${SpEL}`表达式) * * @author Created by 思伟 on 2020/5/19 */ @Slf4j public class YamlUtil { /** * 默认yml文件名称 */ private static final String DEFAULT_YAML = "application.yml"; /** * 当前激活的yml文件名称 */ private static String activeYaml = null; /** * Yaml配置缓存集合 */ protected static Map<String, HashMap<?, ?>> yamlPropertiesCacheMap = new HashMap<>(); /** * 获取对应key的值 * * @param propertyKey 参数key * @return String */ public static String getProperty(final String propertyKey) { return Optional.ofNullable(getProperty(getActiveYaml(), propertyKey)) .orElseGet(() -> { if (DEFAULT_YAML.equals(activeYaml)) { return ""; } // log.debug("`activeYaml`[{}]不存在指定的参数key[{}],使用默认主Yaml文件...", activeYaml, propertyKey); return getProperty(DEFAULT_YAML, propertyKey); }); } /** * 从yaml获取对应key的值 * * @param yamlFile yaml文件名 * @param propertyKey 参数key * @return String */ private static String getProperty(final String yamlFile, final String propertyKey) { final HashMap map = loadYamlPropertiesByCache(yamlFile); String yamlValue = getYamlValue(map, propertyKey); if (StringUtils.isNotEmpty(yamlValue)) { yamlValue = RegexUtil.replaceAll(yamlValue, new SpringReplaceCallBack(false, map)); } return yamlValue; } /** * 获取当前启用的yaml文件名 */ private static String getActiveYaml() { if (StringUtils.isBlank(activeYaml)) { // 走系统参数,在启动的时候需要使用`-Dspring.profiles.active=xx`的方式来配置 String active = System.getProperty("spring.profiles.active"); active = null != active ? active : getYamlValue(loadYamlPropertiesByCache(DEFAULT_YAML), "spring.profiles.active"); activeYaml = (null == active || "".equals(active)) ? DEFAULT_YAML : ("application-" + active + ".yml"); } return activeYaml; } /** * 从缓存获取Yaml配置 * * @see #loadYamlProperties(String) */ private static HashMap loadYamlPropertiesByCache(String yamlFile) { HashMap<?, ?> yamlProperties = yamlPropertiesCacheMap.get(yamlFile); if (null == yamlProperties) { yamlProperties = loadYamlProperties(yamlFile); yamlPropertiesCacheMap.put(yamlFile, yamlProperties); } return yamlProperties; } /** * 将yaml文件加载为HashMap */ private static HashMap<?, ?> loadYamlProperties(String yamlFile) { try (InputStream is = YamlUtil.class.getClassLoader().getResourceAsStream(yamlFile)) { // 防止文件不存在读取错误 return Optional.ofNullable(is).map(inputStream -> new Yaml().loadAs(is, HashMap.class)) .orElse(null); } catch (IOException e) { log.error("读取[{}]文件失败,e={}", yamlFile, e.getMessage(), e); return null; // return new HashMap(1); } } /** * 从yaml的HashMap中读取出具体的属性值 * * @param properties HashMap * @param key 参数key * @return String */ private static String getYamlValue(HashMap<?, ?> properties, String key) { if (null == properties) { return null; } String[] keySplit = key.split("\\."); Object o = properties.get(keySplit[0]); if (o == null) { return null; } if (keySplit.length > 1) { return getYamlValue((HashMap) o, key.substring(keySplit[0].length() + 1)); } return properties.get(key).toString(); } }
[ "2434387555@qq.com" ]
2434387555@qq.com
614c77b42979bcc628d82ea34e3f635aa68ceb71
a1e5068c3f4ce76405e83ec37c19729be8921361
/ZTMIS/src/student/AbstractStudent.java
1bc23d0d4f5178e75f8a37a1a736cd13dd3f4940
[]
no_license
BGCX262/ztmis-svn-to-git
55998e1b7e7eadda7e4d4bbda44b9dd519c9ddda
03ef79c184a16cfb3b60b4d82ecc503d74863838
refs/heads/master
2016-08-03T17:51:14.609225
2015-08-23T06:53:49
2015-08-23T06:53:49
41,251,849
0
0
null
null
null
null
UTF-8
Java
false
false
2,150
java
package student; /** * AbstractStudent entity provides the base persistence definition of the * Student entity. @author MyEclipse Persistence Tools */ public abstract class AbstractStudent implements java.io.Serializable { // Fields private Long studentId; private String name; private String password; private String email; private String gender; private String phone; private String dormitory; private String major; // Constructors /** default constructor */ public AbstractStudent() { } /** minimal constructor */ public AbstractStudent(String name, String password, String phone) { this.name = name; this.password = password; this.phone = phone; } /** full constructor */ public AbstractStudent(String name, String password, String email, String gender, String phone, String dormitory, String major) { this.name = name; this.password = password; this.email = email; this.gender = gender; this.phone = phone; this.dormitory = dormitory; this.major = major; } // Property accessors public Long getStudentId() { return this.studentId; } public void setStudentId(Long studentId) { this.studentId = studentId; } public String getName() { return this.name; } public void setName(String name) { this.name = name; } public String getPassword() { return this.password; } public void setPassword(String password) { this.password = password; } public String getEmail() { return this.email; } public void setEmail(String email) { this.email = email; } public String getGender() { return this.gender; } public void setGender(String gender) { this.gender = gender; } public String getPhone() { return this.phone; } public void setPhone(String phone) { this.phone = phone; } public String getDormitory() { return this.dormitory; } public void setDormitory(String dormitory) { this.dormitory = dormitory; } public String getMajor() { return this.major; } public void setMajor(String major) { this.major = major; } }
[ "you@example.com" ]
you@example.com
105f67e68a4658d7606cdf6dd0c5a771a6fafeef
3ae8c0eee763fffa271a79471874a1727ecf709a
/src/main/java/org/encog/app/analyst/AnalystFileFormat.java
e881c3397722334fd91a1c081964d54bb0f7bbe0
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
rahulchaudhary2244/encog-java-core
c468dcd934facd41261b2d194c7913ce4e18308c
fc7b3602666399cc3a614c1f85ae2b3c52552bf4
refs/heads/master
2022-12-27T06:27:22.135793
2020-10-01T05:18:32
2020-10-01T05:18:32
300,153,359
0
0
NOASSERTION
2020-10-01T05:15:56
2020-10-01T05:15:55
null
UTF-8
Java
false
false
1,382
java
/* * Encog(tm) Core v3.4 - Java Version * http://www.heatonresearch.com/encog/ * https://github.com/encog/encog-java-core * Copyright 2008-2017 Heaton Research, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * For more information on Heaton Research copyrights, licenses * and trademarks visit: * http://www.heatonresearch.com/copyright */ package org.encog.app.analyst; /** * CSV file formats used by the Encog Analyst. * */ public enum AnalystFileFormat { /** * Normal English file, decimal point and comma. */ DECPNT_COMMA, /** * Normal English file, decimal point, but space delimiter. */ DECPNT_SPACE, /** * Decimal point and ; delimiter. */ DECPNT_SEMI, /** * Decimal comma and space. (non-English usually). */ DECCOMMA_SPACE, /** * Decimal comma and ; . (non-English usually). */ DECCOMMA_SEMI }
[ "jeff@jeffheaton.com" ]
jeff@jeffheaton.com
74b3f0d6733e3acb4085a7351014157269d7cdcb
ccaba349b596d652e121f71d976765bfb00d221a
/core/metamodel/src/test/java/org/apache/isis/core/progmodel/facets/object/objecttype/ObjectTypeDerivedFromClassNameFacetFactoryTest.java
b2d7a32bee60fbe5a856adc6ec42c0ee3969baaa
[ "Apache-2.0" ]
permissive
xxg2/isis
c8d88a6e2c61b5642b7adcf1379ec7f2b466b6b9
18731c3d16e5df2b87b79069ea55265f125266fb
refs/heads/master
2021-01-18T10:38:03.289163
2013-03-15T18:30:04
2013-03-15T18:30:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,025
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.core.progmodel.facets.object.objecttype; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.nullValue; import static org.junit.Assert.assertThat; import org.jmock.Expectations; import org.jmock.auto.Mock; import org.junit.Before; import org.junit.Test; import org.apache.isis.core.metamodel.facets.FacetFactory.ProcessClassContext; import org.apache.isis.core.metamodel.facets.object.objecttype.ObjectSpecIdFacet; import org.apache.isis.core.metamodel.spec.ObjectSpecId; import org.apache.isis.core.metamodel.specloader.classsubstitutor.ClassSubstitutor; import org.apache.isis.core.progmodel.facets.AbstractFacetFactoryJUnit4TestCase; public class ObjectTypeDerivedFromClassNameFacetFactoryTest extends AbstractFacetFactoryJUnit4TestCase { @Mock private ClassSubstitutor classSubstitutor; private ObjectTypeDerivedFromClassNameFacetFactory facetFactory; @Before public void setUp() throws Exception { facetFactory = new ObjectTypeDerivedFromClassNameFacetFactory(); facetFactory.setSpecificationLookup(reflector); facetFactory.setClassSubstitutor(classSubstitutor); } static class Customer { } static class CustomerAsManufacturedByCglibByteCodeEnhancer extends Customer { } @Test public void installsFacet_andDelegatesToClassSubstitutor() { expectNoMethodsRemoved(); context.checking(new Expectations() { { one(classSubstitutor).getClass(CustomerAsManufacturedByCglibByteCodeEnhancer.class); will(returnValue(Customer.class)); } }); facetFactory.process(new ProcessClassContext(CustomerAsManufacturedByCglibByteCodeEnhancer.class, methodRemover, facetHolderImpl)); final ObjectSpecIdFacet facet = facetHolderImpl.getFacet(ObjectSpecIdFacet.class); assertThat(facet, is(not(nullValue()))); assertThat(facet instanceof ObjectSpecIdFacetDerivedFromClassName, is(true)); assertThat(facet.value(), is(ObjectSpecId.of(Customer.class.getCanonicalName()))); } }
[ "danhaywood@apache.org" ]
danhaywood@apache.org
efc5d48136d5a5ef528950c824d9fa7f2e626592
f4ca8ac58134e13070039fbb4022b6de544ebb2a
/Algorithm/LeetCode/_202_HappyNumber.java
4c69ed59b854bd13197d7ff51ea0dc69f03136e1
[]
no_license
Jihannn/Algorithm
cc86afaeb316fc3e8cd4338065bbbbfcb008e45d
216fe0114858b0efab4aa9443ce7130e02e11aa2
refs/heads/master
2022-08-14T13:03:43.411037
2022-08-05T14:36:00
2022-08-05T14:36:00
193,438,998
2
0
null
null
null
null
UTF-8
Java
false
false
615
java
import java.util.HashSet; /* * @Author: Jihan * @Date: 2022-08-02 23:57:18 * @Description: https://leetcode.cn/problems/happy-number/ */ public class _202_HappyNumber { public boolean isHappy(int n) { HashSet<Integer> set = new HashSet<>(); int count = 0; while (n != 1) { while (n != 0) { count += Math.pow(n % 10, 2); n /= 10; } if (set.contains(count)) { return false; } set.add(count); n = count; count = 0; } return true; } }
[ "gjihan97@gmail.com" ]
gjihan97@gmail.com
80b15a262db2cdd8241fd7f1a4dc25bb44dab62a
d15803d5b16adab18b0aa43d7dca0531703bac4a
/com/whatsapp/w.java
ad9c76901654813b44c2b3d058c137c65c0e1eed
[]
no_license
kenuosec/Decompiled-Whatsapp
375c249abdf90241be3352aea38eb32a9ca513ba
652bec1376e6cd201d54262cc1d4e7637c6334ed
refs/heads/master
2021-12-08T15:09:13.929944
2016-03-23T06:04:08
2016-03-23T06:04:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
305
java
package com.whatsapp; import android.view.View; import android.view.View.OnClickListener; class w implements OnClickListener { final aqx a; w(aqx com_whatsapp_aqx) { this.a = com_whatsapp_aqx; } public void onClick(View view) { Conversation.e(this.a.a, false); } }
[ "gigalitelk@gmail.com" ]
gigalitelk@gmail.com
3635e5ddaf16de34b1817a29111bbf3f8e70af83
852ae668be85e1bbbfb213ac030cd2bd9b13eb6e
/PUB/PubTermAdmin/build/generated-sources/jax-ws/de/fhdo/terminologie/ws/searchPub/PagingType.java
be51da7321d2d069b87539e5421bfc934967fe08
[]
no_license
TechnikumWienAcademy/Terminologieserver
e2a568ef04b8c378dfbe10b9add23d6253a708f9
bdb719233891efcc3c6761557898799a6eafcedd
refs/heads/master
2023-06-29T07:54:00.597735
2021-06-05T10:03:57
2021-06-05T10:03:57
176,249,973
0
0
null
2021-08-02T06:39:39
2019-03-18T09:44:26
Java
ISO-8859-1
Java
false
false
3,286
java
package de.fhdo.terminologie.ws.searchPub; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * <p>Java-Klasse für pagingType complex type. * * <p>Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. * * <pre> * &lt;complexType name="pagingType"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="allEntries" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> * &lt;element name="pageIndex" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/> * &lt;element name="pageSize" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * &lt;element name="userPaging" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "pagingType", propOrder = { "allEntries", "pageIndex", "pageSize", "userPaging" }) public class PagingType { protected Boolean allEntries; protected Integer pageIndex; protected String pageSize; protected Boolean userPaging; /** * Ruft den Wert der allEntries-Eigenschaft ab. * * @return * possible object is * {@link Boolean } * */ public Boolean isAllEntries() { return allEntries; } /** * Legt den Wert der allEntries-Eigenschaft fest. * * @param value * allowed object is * {@link Boolean } * */ public void setAllEntries(Boolean value) { this.allEntries = value; } /** * Ruft den Wert der pageIndex-Eigenschaft ab. * * @return * possible object is * {@link Integer } * */ public Integer getPageIndex() { return pageIndex; } /** * Legt den Wert der pageIndex-Eigenschaft fest. * * @param value * allowed object is * {@link Integer } * */ public void setPageIndex(Integer value) { this.pageIndex = value; } /** * Ruft den Wert der pageSize-Eigenschaft ab. * * @return * possible object is * {@link String } * */ public String getPageSize() { return pageSize; } /** * Legt den Wert der pageSize-Eigenschaft fest. * * @param value * allowed object is * {@link String } * */ public void setPageSize(String value) { this.pageSize = value; } /** * Ruft den Wert der userPaging-Eigenschaft ab. * * @return * possible object is * {@link Boolean } * */ public Boolean isUserPaging() { return userPaging; } /** * Legt den Wert der userPaging-Eigenschaft fest. * * @param value * allowed object is * {@link Boolean } * */ public void setUserPaging(Boolean value) { this.userPaging = value; } }
[ "bachinge@technikum-wien.at" ]
bachinge@technikum-wien.at
faa9b407269ee1c00fb62a08556135e61e5b074e
24fae99a278e8022b3944908a4db05b3d3148551
/sources/com/google/ar/sceneform/rendering/-$$Lambda$LightProbe$IsI7PJJqonO6oEzXiCi7lY4HFBc.java
3c06a5c7696d25cfd4a5a9ced41869921c4ae425
[]
no_license
bigmanstan/FurniAR-college-Minor-project
53cad4bc90d65aadcb76613ba386306672cfd011
3ceba7e1fcaf5e847e3a72dd92712c308d484189
refs/heads/master
2020-05-26T03:04:18.538119
2019-05-26T12:33:47
2019-05-26T12:33:47
188,084,904
3
0
null
null
null
null
UTF-8
Java
false
false
434
java
package com.google.ar.sceneform.rendering; /* compiled from: lambda */ public final /* synthetic */ class -$$Lambda$LightProbe$IsI7PJJqonO6oEzXiCi7lY4HFBc implements Runnable { private final /* synthetic */ LightProbe f$0; public /* synthetic */ -$$Lambda$LightProbe$IsI7PJJqonO6oEzXiCi7lY4HFBc(LightProbe lightProbe) { this.f$0 = lightProbe; } public final void run() { this.f$0.dispose(); } }
[ "theonlyrealemailid@gmail.com" ]
theonlyrealemailid@gmail.com
b445e1347bce35e72a5904d20c9a0b7de45fca68
bbf68230f58d811b0dc1c5af410abbf480472603
/role_game/src/main/java/ru/job4j/xml/actions/XMLDegradeParser.java
fdd03bcb2295b12e4c59eea34265dacf1ed32aa1
[ "Apache-2.0" ]
permissive
zCRUSADERz/AlexanderYakovlev
2de343bd16e2749fee0a61ae5a19e8ed2374cc4d
9b098fb876b5a60d5e5fdc8274b3b47e994d88ba
refs/heads/master
2022-09-14T05:36:48.554661
2019-06-12T11:05:21
2019-06-12T11:05:21
115,723,226
2
0
Apache-2.0
2022-09-08T00:48:33
2017-12-29T13:07:29
Java
UTF-8
Java
false
false
2,665
java
package ru.job4j.xml.actions; import org.w3c.dom.Node; import ru.job4j.actions.HeroAction; import ru.job4j.actions.actiontarget.RandomTargetForHero; import ru.job4j.actions.GradeActionSimple; import ru.job4j.observers.DegradeObserver; import ru.job4j.observers.Observables; import ru.job4j.xml.actions.utils.FindNodeByXPath; import java.util.ArrayList; import java.util.List; /** * XMLDegradeParser. * Парсер действия снять улучшение из xml документа. * * @author Alexander Yakovlev (sanyakovlev@yandex.ru) * @since 02.11.2018 */ public class XMLDegradeParser implements XMLActionParser { private final static String XML_TAG_NAME = "degrade"; private final FindNodeByXPath findNodeByXPath; private final XMLDefaultActionParser defaultActionParser; private final RandomTargetForHero target; private final Observables<DegradeObserver> degradeObservables; public XMLDegradeParser(FindNodeByXPath findNodeByXPath, XMLDefaultActionParser defaultActionParser, RandomTargetForHero target, Observables<DegradeObserver> degradeObservables) { this.findNodeByXPath = findNodeByXPath; this.defaultActionParser = defaultActionParser; this.target = target; this.degradeObservables = degradeObservables; } /** * Распарсить все действия снять улучшение из * предложенного документа с описанием действий. * @param actions xml node указывающая на первый узел в списке действий. * @return коллекцию действий, либо пустую коллекцию, если не найдено. */ @Override public List<HeroAction> parseAllActions(Node actions) { final List<HeroAction> result = new ArrayList<>(); this.findNodeByXPath .findNode(XML_TAG_NAME, actions) .forEach((action) -> result.add( new GradeActionSimple<>( "Наложение проклятия (снятие улучшения с " + "персонажа противника для следующего хода)", this.defaultActionParser .parseDefaultAction(action), this.degradeObservables, this.target ) )); return result; } }
[ "sanyakovlev@yandex.ru" ]
sanyakovlev@yandex.ru
ecc9e31cf35a97a6dfef7f9f7142ce4bc869f34a
6cff23733e6dd7a546b570bad530ee44a518f732
/sample/src/main/java/fake/package_6/Foo84.java
712ab843d4e0d6b83f24a55e30e49368fd40447f
[ "Apache-2.0" ]
permissive
hacktons/dexing
940248a0501255cc2939eecef63b57735f811b06
e774aaa3a562514bb59634c932aa85a1578a5182
refs/heads/master
2020-09-05T05:12:52.749052
2020-04-07T07:08:42
2020-04-07T07:08:42
219,990,044
5
0
Apache-2.0
2020-04-07T07:08:43
2019-11-06T12:19:38
Java
UTF-8
Java
false
false
1,638
java
package fake.package_6; public class Foo84 { public void foo0(){ new Foo83().foo49(); } public void foo1(){ foo0(); } public void foo2(){ foo1(); } public void foo3(){ foo2(); } public void foo4(){ foo3(); } public void foo5(){ foo4(); } public void foo6(){ foo5(); } public void foo7(){ foo6(); } public void foo8(){ foo7(); } public void foo9(){ foo8(); } public void foo10(){ foo9(); } public void foo11(){ foo10(); } public void foo12(){ foo11(); } public void foo13(){ foo12(); } public void foo14(){ foo13(); } public void foo15(){ foo14(); } public void foo16(){ foo15(); } public void foo17(){ foo16(); } public void foo18(){ foo17(); } public void foo19(){ foo18(); } public void foo20(){ foo19(); } public void foo21(){ foo20(); } public void foo22(){ foo21(); } public void foo23(){ foo22(); } public void foo24(){ foo23(); } public void foo25(){ foo24(); } public void foo26(){ foo25(); } public void foo27(){ foo26(); } public void foo28(){ foo27(); } public void foo29(){ foo28(); } public void foo30(){ foo29(); } public void foo31(){ foo30(); } public void foo32(){ foo31(); } public void foo33(){ foo32(); } public void foo34(){ foo33(); } public void foo35(){ foo34(); } public void foo36(){ foo35(); } public void foo37(){ foo36(); } public void foo38(){ foo37(); } public void foo39(){ foo38(); } public void foo40(){ foo39(); } public void foo41(){ foo40(); } public void foo42(){ foo41(); } public void foo43(){ foo42(); } public void foo44(){ foo43(); } public void foo45(){ foo44(); } public void foo46(){ foo45(); } public void foo47(){ foo46(); } public void foo48(){ foo47(); } public void foo49(){ foo48(); } }
[ "chaobinwu89@gmail.com" ]
chaobinwu89@gmail.com
a49df9ec232387c0aba518113ebae8fdddeb9fda
a76173ed4bf17a215c84113edfdefd4005f49b90
/src/main/java/uk/gov/legislation/namespaces/metadata/BodyParagraphs.java
1a120f67c8b295aea04f00b06781be4606a3f35a
[ "MIT" ]
permissive
AleksiAleksiev/java-legislation-gov-uk-library
160f4de29174ab9417e6083eea20a8d1e4bdfb8b
9cb3eaad6a3847060ea781c74b6260f025309cc4
refs/heads/master
2021-05-30T04:50:40.081714
2016-01-13T12:36:52
2016-01-13T12:36:52
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,630
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 // 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: 2015.08.07 at 06:17:52 PM CEST // package uk.gov.legislation.namespaces.metadata; import javax.xml.bind.annotation.*; import java.math.BigInteger; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType&gt; * &lt;complexContent&gt; * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; * &lt;attribute name="Value" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" /&gt; * &lt;/restriction&gt; * &lt;/complexContent&gt; * &lt;/complexType&gt; * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") @XmlRootElement(name = "BodyParagraphs") public class BodyParagraphs { @XmlAttribute(name = "Value", required = true) protected BigInteger value; /** * Gets the value of the value property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getValue() { return value; } /** * Sets the value of the value property. * * @param value * allowed object is * {@link BigInteger } * */ public void setValue(BigInteger value) { this.value = value; } }
[ "m.f.a.trompper@uva.nl" ]
m.f.a.trompper@uva.nl
f9f9aeb5de6362de6df1a64d03e7cb8f51bd6363
dcb0e6cffe8911990cc679938b0b63046b9078ad
/core/tests/org.fusesource.ide.camel.model.service.core.tests/src/test/java/org/fusesource/ide/camel/model/service/core/util/CamelFileTemplateCreatorTest.java
fa64cf3af4994f59bdde80c194e3cf2bbaaab76e
[]
no_license
MelissaFlinn/jbosstools-fuse
6fe7ac5f83d05df05d8884a8576b9af4baac3cd6
d960f4ed562da96a82128e0a9c04e122b9e9e8b0
refs/heads/master
2021-06-25T09:30:28.876445
2019-07-15T09:10:12
2019-07-29T08:12:28
112,379,325
0
0
null
2017-11-28T19:27:42
2017-11-28T19:27:42
null
UTF-8
Java
false
false
2,087
java
/******************************************************************************* * Copyright (c) 2016 Red Hat, Inc. * Distributed under license by Red Hat, Inc. All rights reserved. * This program is 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: * Red Hat, Inc. - initial API and implementation ******************************************************************************/ package org.fusesource.ide.camel.model.service.core.util; import static org.assertj.core.api.Assertions.assertThat; import java.io.File; import java.io.IOException; import org.eclipse.core.runtime.CoreException; import org.junit.After; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; /** * @author lhein */ public class CamelFileTemplateCreatorTest { @Rule public TemporaryFolder testFolder = new TemporaryFolder(); private CamelFileTemplateCreator templateFactory; @Before public void setup() throws CoreException { this.templateFactory = new CamelFileTemplateCreator(); } @After public void tearDown() throws CoreException { this.templateFactory = null; } @Test public void testCreateSpringTemplateFile() throws IOException { File f = testFolder.newFile("springTemplate.xml"); this.templateFactory.createSpringTemplateFile(f); assertThat(this.templateFactory.getSpringStubText()).isXmlEqualToContentOf(f); } @Test public void testCreateBlueprintTemplateFile() throws IOException { File f = testFolder.newFile("blueprintTemplate.xml"); this.templateFactory.createBlueprintTemplateFile(f); assertThat(this.templateFactory.getBlueprintStubText()).isXmlEqualToContentOf(f); } @Test public void testCreateRoutesTemplateFile() throws IOException { File f = testFolder.newFile("routesTemplate.xml"); this.templateFactory.createRoutesTemplateFile(f); assertThat(this.templateFactory.getRoutesStubText()).isXmlEqualToContentOf(f); } }
[ "lhein@apache.org" ]
lhein@apache.org
1e379c4db403b001c53de710fcf221d5f206164f
03c6d08a9d276b27084d01b337b04719b578da62
/src/br/com/instamc/sponge/guard/region/EnumFlags.java
eef0973d7fc470001343e825fe71acab7762326d
[]
no_license
FeldmannJR/SpongeGuard
f7a679ac0031d227c62f411642f3095c5c31d64a
315b6958aac69f4480affe96ec58a9c163885b3f
refs/heads/master
2021-08-29T19:50:56.416988
2017-12-14T20:50:44
2017-12-14T20:50:44
110,629,229
0
0
null
null
null
null
UTF-8
Java
false
false
2,348
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 br.com.instamc.sponge.guard.region; /** * * @author Carlos */ public enum EnumFlags { BUILD(true, "Se pode construir"), PLACE(true, "Se pode colocar blocos(sobescreve build)"), BREAK(true, "Se pode quebrar blocos(sobescreve build)"), PVP(true, "Se pode acontencer pvp"), MOBDAMAGE(true, "Se mobs podem causar dano"), EXPDROP("Se pode dropar exp"), ITEMDROP("Se pode dropar item"), MOBS("Se mobs agressivos podem spawnar"), CREEPER_EXPLOSIONS(false, "Se creepers irão quebrar blocos"), ENDERMANGRIEF(false, "Se enderman vão roubar blocos"), ENDERPEARL("Se é possível jogar enderpearls"), ENDERDRAGON_BLOCK_DAMAGE(false, "Se o dragão quebra blocos"), SLEEP("Se pode dormir na região"), TNT(false, "Se tnt quebra blocos"), OTHER_EXPLOSIONS(false, "Other explosions"), CHESTS(true, "Pode acessar baus ou outros blocos"), WATERFLOW(true, "Se a agua corre na região"), LAVAFLOW(true, "Se a lava corre na região"), DOORS(true, "Se pode abrir portas, trapdoors"), VEHICLEPLACE(true, "Se pode colocar veiculos"), VEHICLEDESTROY(true, "Se pode destruir veiculos"), LEAFDECAY(true, "Se as folhas caeem"), SENDCHAT(true, "Se pode usar o chat"), POTIONSPLASH(true, "Se pode jogar possoes"), HUNGER("Se player perdem comida na região"), ENDERCHEST("Se pode acessar enderchest"), DAMAGE("Se pode tomar dano sufocando"), DROWN("Se pode se afogar"), ANIMALS("Se spawna animais"), POKEMONS("Se spawna entidades do pokemon(pokemons ou trainers)"), JET(true, "Se pode usar a jet!"), SENDPOKES(true, "Se jogadores podem arremecar pokemons"), TPSCROLL(false, "Se precisa de ter um tpscroll para ficar na área!"); public boolean def = true; public String help = ""; private EnumFlags(String help) { def = true; this.help = help; } public String getHelp() { return help; } public String getCommandName() { return name().toLowerCase().replace("_", ""); } private EnumFlags(boolean def, String help) { this.def = def; this.help = help; } }
[ "feldmannjunior@gmail.com" ]
feldmannjunior@gmail.com
e1957e0f60d834889a4fe3962a598b1eddf08e00
e3c38acaa9105863d6181afa68c15ef61122bc56
/src/activity/bw.java
bdf7b85c194663e24f29d58afa4cf787d9188b35
[]
no_license
Neio/iMessageChatDecompile
2d3349d848c25478e2bbbbaaf15006e9566b2f26
f0b32c44a6e7ba6bb6952adf73fa8529b70db59c
refs/heads/master
2021-01-18T06:52:36.066331
2013-09-24T17:29:28
2013-09-24T17:29:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
481
java
package activity; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; final class bw implements DialogInterface.OnClickListener { bw(ReadFromCellphoneActivity paramReadFromCellphoneActivity) { } public final void onClick(DialogInterface paramDialogInterface, int paramInt) { } } /* Location: /Users/mdp/Downloads/iMessage/classes-dex2jar.jar * Qualified Name: activity.bw * JD-Core Version: 0.6.2 */
[ "mdp@yahoo-inc.com" ]
mdp@yahoo-inc.com
202c424221c38d1d1e0ccffa0a9ae381018b0ad2
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/9/9_436127005a8ab51a242111d51802e837f640c468/Responses/9_436127005a8ab51a242111d51802e837f640c468_Responses_t.java
fb949120ec534b4194aa953fde2d97241d865820
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
3,672
java
package net.cheney.manhattan.application; import static net.cheney.snax.model.ProcessingInstruction.XML_DECLARATION; import java.nio.charset.Charset; import net.cheney.cocktail.application.Application; import net.cheney.cocktail.application.Environment; import net.cheney.cocktail.message.Response; import net.cheney.cocktail.message.Response.Status; import net.cheney.manhattan.resource.Elements.MULTISTATUS; import net.cheney.snax.model.Document; import net.cheney.snax.writer.XMLWriter; public class Responses { private Responses() {} private static final Charset UTF_8 = Charset.forName("utf-8"); public static Application serverErrorNotImplemented() { return new Application() { @Override public Response call(Environment env) { return Response.builder(Status.SERVER_ERROR_NOT_IMPLEMENTED).build(); } }; } public static Application clientErrorNotFound() { return new Application() { @Override public Response call(Environment env) { return Response.builder(Status.CLIENT_ERROR_NOT_FOUND).build(); } }; } public static Application successMultiStatus(final MULTISTATUS multistatus) { return new Application() { @Override public Response call(Environment env) { final Document doc = new Document(XML_DECLARATION, multistatus); return Response.builder(Status.SUCCESS_MULTI_STATUS).body(UTF_8.encode(XMLWriter.write(doc))).build(); } }; } public static Application clientErrorMethodNotAllowed() { return new Application() { @Override public Response call(Environment env) { return Response.builder(Status.CLIENT_ERROR_METHOD_NOT_ALLOWED).build(); } }; } public static Application successCreated() { return new Application() { @Override public Response call(Environment env) { return Response.builder(Status.SUCCESS_CREATED).build(); } }; } public static Application serverErrorInternal(final Throwable t) { return new Application() { @Override public Response call(Environment env) { return Response.builder(Status.SERVER_ERROR_INTERNAL).body(UTF_8.encode(t.toString())).build(); } }; } public static Application clientErrorConflict() { return new Application() { @Override public Response call(Environment env) { return Response.builder(Status.CLIENT_ERROR_CONFLICT).build(); } }; } public static Application clientErrorBadRequest() { return new Application() { @Override public Response call(Environment env) { return Response.builder(Status.CLIENT_ERROR_BAD_REQUEST).build(); } }; } public static Application clientErrorLocked() { return new Application() { @Override public Response call(Environment env) { return Response.builder(Status.CLIENT_ERROR_LOCKED).build(); } }; } public static Application successNoContent() { return new Application() { @Override public Response call(Environment env) { return Response.builder(Status.SUCCESS_NO_CONTENT).build(); } }; } public static Application clientErrorPreconditionFailed() { return new Application() { @Override public Response call(Environment env) { return Response.builder(Status.CLIENT_ERROR_PRECONDITION_FAILED).build(); } }; } public static Application clientErrorUnsupportedMediaType() { return new Application() { @Override public Response call(Environment env) { return Response.builder(Status.CLIENT_ERROR_UNSUPPORTED_MEDIA_TYPE).build(); } }; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
6e32dfa0707be258c0dc09da04cc0d8f2fb12a9e
df904a1c02c0c9adee2b0adeac78b85eab68f073
/biz.bi.vtcd/src/biz/bi/vtcd/dialogs/VTCDCombinationTabsComposite.java
bb35d14ed444b2accf37b807f5edfbf1599ad95a
[]
no_license
sergioemv/bin.rcp-plugin.casemakerVisual
2882e327442fe994fcf18aab6536f88cabdbc82c
19c4c23ff2be841e2c3f913bc01f39bd9273bf99
refs/heads/master
2023-04-01T12:29:41.859578
2021-04-07T23:59:58
2021-04-07T23:59:58
355,716,232
1
0
null
null
null
null
UTF-8
Java
false
false
7,704
java
/** * * This Software has been developed by Business Software Innovations . * Copyright (c)2003 D�az und Hilterscheid Unternehmensberatung. All rights reserved. */ package biz.bi.vtcd.dialogs; import java.util.Iterator; import java.util.Vector; import org.eclipse.swt.SWT; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Group; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.List; /** * @author hcanedo * @since 16-08-2005 * @hcanedo */ public class VTCDCombinationTabsComposite extends Composite { private Group availablesGroup = null; private List avalilablesList = null; private Label label = null; private Group assignGroup = null; private List assignList = null; private Button addButton = null; private Button deleteButton = null; private Label label1 = null; private Button addAllButton = null; private Button deleteAllButton = null; private Label label3 = null; private Label label4 = null; private Label label5 = null; private Label label2 = null; private java.util.List m_AviablesObject=null; private java.util.List m_AssignObject=null; /** * @param p_parent * @param p_style */ public VTCDCombinationTabsComposite(Composite p_parent, int p_style) { super(p_parent, p_style); initialize(); } private void initialize() { GridData gridData5 = new GridData(); gridData5.horizontalAlignment = GridData.FILL; gridData5.verticalAlignment = GridData.FILL; GridData gridData4 = new GridData(); gridData4.horizontalAlignment = GridData.FILL; gridData4.verticalAlignment = GridData.FILL; GridData gridData3 = new GridData(); gridData3.horizontalAlignment = GridData.FILL; gridData3.verticalAlignment = GridData.FILL; GridData gridData2 = new GridData(); gridData2.horizontalAlignment = GridData.FILL; gridData2.verticalAlignment = GridData.FILL; GridLayout gridLayout = new GridLayout(); gridLayout.numColumns = 7; gridLayout.verticalSpacing = 8; gridLayout.makeColumnsEqualWidth = true; this.setLayout(gridLayout); createavailablesGroup(); label = new Label(this, SWT.NONE); createassignGroup(); label1 = new Label(this, SWT.NONE); addButton = new Button(this, SWT.NONE); addButton.setText(">"); addButton.setLayoutData(gridData2); addButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent evt) { addButtonWidgetSelected(evt); } }); deleteButton = new Button(this, SWT.NONE); deleteButton.setText("<"); deleteButton.setLayoutData(gridData3); deleteButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent evt) { deleteButtonWidgetSelected(evt); } }); addAllButton = new Button(this, SWT.NONE); addAllButton.setText(">>"); addAllButton.setLayoutData(gridData4); addAllButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent evt) { addAllButtonWidgetSelected(evt); } }); deleteAllButton = new Button(this, SWT.NONE); deleteAllButton.setText("<<"); deleteAllButton.setLayoutData(gridData5); deleteAllButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent evt) { deleteAllButtonWidgetSelected(evt); } }); label2 = new Label(this, SWT.NONE); label3 = new Label(this, SWT.NONE); label3.setText(""); } /** * This method initializes availablesGroup * */ private void createavailablesGroup() { GridData gridData = new GridData(); gridData.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL; gridData.horizontalSpan = 3; gridData.verticalSpan = 8; gridData.verticalAlignment = org.eclipse.swt.layout.GridData.FILL; availablesGroup = new Group(this, SWT.NONE); availablesGroup.setText("Availables"); availablesGroup.setLayout(new FillLayout()); availablesGroup.setLayoutData(gridData); { avalilablesList = new List(availablesGroup, SWT.BORDER |SWT.V_SCROLL | SWT.H_SCROLL |SWT.MULTI); } } /** * This method initializes assignGroup * */ private void createassignGroup() { GridData gridData1 = new GridData(); gridData1.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL; gridData1.verticalSpan = 8; gridData1.horizontalSpan = 3; gridData1.verticalAlignment = org.eclipse.swt.layout.GridData.FILL; assignGroup = new Group(this, SWT.NONE); assignGroup.setLayout(new FillLayout()); assignGroup.setText("Assigned"); assignGroup.setLayoutData(gridData1); assignList = new List(assignGroup, SWT.BORDER |SWT.V_SCROLL | SWT.H_SCROLL |SWT.MULTI); } public void setLabelToRightGroup(String p_Label){ assignGroup.setText(p_Label); } public void setLabelToLeftGroup(String p_Label){ availablesGroup.setText(p_Label); } public void setShuttleContents(java.util.List p_AvailableContents,java.util.List p_AssignedContents ){ if(p_AssignedContents != null) m_AssignObject=makeListClone(p_AssignedContents); else m_AssignObject= new Vector(0); if(p_AvailableContents != null) m_AviablesObject=makeListClone(p_AvailableContents); else m_AviablesObject=new Vector(0); m_AviablesObject.removeAll(m_AssignObject); setListToAvailablesGroup(); setListToAssignedGroup(); } private void setListToAvailablesGroup(){ avalilablesList.removeAll(); for(Iterator i=m_AviablesObject.iterator();i.hasNext();){ avalilablesList.add(i.next().toString()); } } private void setListToAssignedGroup(){ assignList.removeAll(); for(Iterator i=m_AssignObject.iterator();i.hasNext();){ assignList.add(i.next().toString()); } } private void addButtonWidgetSelected(SelectionEvent evt) { int[] cantSelected=avalilablesList.getSelectionIndices(); for (int i = 0; i < cantSelected.length; i++) { int index = cantSelected[i]; Object selected=m_AviablesObject.get(index); m_AssignObject.add(selected); } m_AviablesObject.removeAll(m_AssignObject); setListToAssignedGroup(); setListToAvailablesGroup(); } private void deleteButtonWidgetSelected(SelectionEvent evt) { int[] cantSelected=assignList.getSelectionIndices(); for (int i = 0; i < cantSelected.length; i++) { int index = cantSelected[i]; Object selected=m_AssignObject.get(index); m_AviablesObject.add(selected); } m_AssignObject.removeAll(m_AviablesObject); setListToAssignedGroup(); setListToAvailablesGroup(); } private void addAllButtonWidgetSelected(SelectionEvent evt) { for (Iterator iter = m_AviablesObject.iterator(); iter.hasNext();) { Object element = (Object) iter.next(); m_AssignObject.add(element); } m_AviablesObject.clear(); setListToAssignedGroup(); setListToAvailablesGroup(); } private void deleteAllButtonWidgetSelected(SelectionEvent evt) { for (Iterator iter = m_AssignObject.iterator(); iter.hasNext();) { Object element = (Object) iter.next(); m_AviablesObject.add(element); } m_AssignObject.clear(); setListToAssignedGroup(); setListToAvailablesGroup(); } /** * @return Returns the assignObject. */ public java.util.List getAssignObject() { return this.m_AssignObject; } /** * @return Returns the aviablesObject. */ public java.util.List getAviablesObject() { return this.m_AviablesObject; } private java.util.List makeListClone(java.util.List p_toClone){ Vector vector=new Vector(p_toClone); return vector; } } // @jve:decl-index=0:visual-constraint="10,10"
[ "sergioemv@gmail.com" ]
sergioemv@gmail.com
327069308df98c81597b7093fd61073b71e20334
de53d45c192963cf7ec61606c544db183bc82b34
/provider/src/main/java/org/jetrs/provider/ext/delegate/NewCookieHeaderDelegate.java
eceb2fc51cb730808569b92146e4374076d901b6
[ "MIT" ]
permissive
alzuma/jetrs
0eab90dcd01e5343f413e808ed9e68b23e35eefb
65ff18a75319608ad263f99c9f4c006df86699a3
refs/heads/master
2023-04-28T16:28:24.389848
2021-05-25T11:42:00
2021-05-25T11:42:00
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,291
java
/* Copyright (c) 2019 JetRS * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * You should have received a copy of The MIT License (MIT) along with this * program. If not, see <http://opensource.org/licenses/MIT/>. */ package org.jetrs.provider.ext.delegate; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import java.util.Date; import javax.ws.rs.core.NewCookie; import javax.ws.rs.ext.RuntimeDelegate; import org.libj.lang.Strings; import org.libj.util.Temporals; public class NewCookieHeaderDelegate implements RuntimeDelegate.HeaderDelegate<NewCookie> { // FIXME: This should be re-implemented with a char-by-char algorithm @Override public NewCookie fromString(final String string) { final String[] parts = string.split(";"); final String part0 = parts[0]; int index = part0.indexOf('='); if (index == -1) return null; final String name = Strings.trim(part0.substring(0, index).trim(), '"'); final String value = Strings.trim(part0.substring(index + 1).trim(), '"'); String path = null; String domain = null; int version = -1; String comment = null; int maxAge = -1; Date expires = null; boolean secure = false; boolean httpOnly = false; for (int i = 1; i < parts.length; ++i) { final String part = parts[i].trim(); if (part.startsWith("Path")) { if ((index = part.indexOf('=')) != -1) path = Strings.trim(part.substring(index + 1).trim(), '"'); } else if (part.startsWith("Domain")) { if ((index = part.indexOf('=')) != -1) domain = part.substring(index + 1).trim(); } else if (part.startsWith("Version")) { if ((index = part.indexOf('=')) != -1) version = Integer.parseInt(Strings.trim(part.substring(index + 1).trim(), '"')); } else if (part.startsWith("Comment")) { if ((index = part.indexOf('=')) != -1) comment = part.substring(index + 1).trim(); } else if (part.startsWith("Max-Age")) { if ((index = part.indexOf('=')) != -1) maxAge = Integer.parseInt(part.substring(index + 1).trim()); } else if (part.startsWith("Expires")) { if ((index = part.indexOf('=')) != -1) expires = Temporals.toDate(LocalDateTime.parse(part.substring(index + 1).trim(), DateTimeFormatter.RFC_1123_DATE_TIME)); } else if (part.startsWith("Secure")) { secure = true; } else if (part.startsWith("HttpOnly")) { httpOnly = true; } } return new NewCookie(name, value, path, domain, version, comment, maxAge, expires, secure, httpOnly); } @Override public String toString(final NewCookie value) { final StringBuilder builder = new StringBuilder(); builder.append(value.getName()).append('=').append(value.getValue()); if (value.getPath() != null) builder.append(';').append("Path").append('=').append(value.getPath()); if (value.getDomain() != null) builder.append(';').append("Domain").append('=').append(value.getDomain()); if (value.getVersion() != -1) builder.append(';').append("Version").append('=').append(value.getVersion()); if (value.getComment() != null) builder.append(';').append("Comment").append('=').append(value.getComment()); if (value.getMaxAge() != -1) builder.append(';').append("Max-Age").append('=').append(value.getMaxAge()); if (value.getExpiry() != null) builder.append(';').append("Expiry").append('=').append(value.getExpiry()); if (value.isSecure()) builder.append(';').append("Secure"); if (value.isHttpOnly()) builder.append(';').append("HttpOnly"); return builder.toString(); } }
[ "seva@safris.org" ]
seva@safris.org
8e838b55131ac51a7d7423bb280bfa987c5e8828
2b9aae15899a81930a6cae8c6907a9e3ef6e4c0c
/mall-api-full/mall-category-api/src/main/java/com/hjh/mall/category/bizapi/bizserver/navigation/BizNavigationService.java
62ca3419460ce5a5c7e426dd493845c849755cef
[]
no_license
meiwulang/nosession
c0c8ba7f5b0f568a8d6c2330f53113c87dbbd990
cbb5624282bb554644f2f4b31dad6c214bb98a8e
refs/heads/master
2021-08-08T12:44:02.628872
2017-11-10T10:04:53
2017-11-10T10:04:53
93,580,211
0
1
null
null
null
null
UTF-8
Java
false
false
3,342
java
package com.hjh.mall.category.bizapi.bizserver.navigation; import java.io.Serializable; import java.util.Map; import com.hjh.mall.category.bizapi.bizserver.navigation.vo.CreateNavigation; import com.hjh.mall.category.bizapi.bizserver.navigation.vo.QueryFirstLevelNavigations; import com.hjh.mall.category.bizapi.bizserver.navigation.vo.QueryNavigationsByLike; import com.hjh.mall.category.bizapi.bizserver.navigation.vo.QueryNavigationsByparentId; import com.hjh.mall.category.bizapi.bizserver.navigation.vo.QueryNavigationsForApp; import com.hjh.mall.category.bizapi.bizserver.navigation.vo.QuerySecondLevelNavigations; import com.hjh.mall.category.bizapi.bizserver.navigation.vo.QueryThirdLevelNavigations; import com.hjh.mall.category.bizapi.bizserver.navigation.vo.UpdateNavigation; import com.hjh.mall.category.bizapi.bizserver.navigation.vo.UpdateNavigationStatus; import com.hjh.mall.category.bizapi.bizserver.navigation.vo.UpdatesingleNavigationStatus; import com.hjh.mall.common.core.annotation.BizService; import com.hjh.mall.common.core.vo.HJYVO; /** * @Project: hjh-basedata-api * @Description 基础导航服务 * @author 王斌 * @date 2016年10月11日 * @version V1.0 */ public interface BizNavigationService extends Serializable { @BizService(functionId = "900505", name = "创建导航", desc = "创建1-3级导航") public Map<String, Object> createNavigation(CreateNavigation vo); @BizService(functionId = "900506", name = "编辑导航", desc = "编辑1-3级导航") public Map<String, Object> updateNavigation(UpdateNavigation vo); @BizService(functionId = "900513", name = "批量编辑导航状态", desc = "批量编辑1-3级导航状态") public Map<String, Object> batchUpdateNavigationStatus(UpdateNavigationStatus vo); @BizService(functionId = "900507", name = "模糊查询1级导航", desc = "模糊查询1级导航") public Map<String, Object> queryFirstLevelNavigations(QueryFirstLevelNavigations vo); @BizService(functionId = "900508", name = "模糊查询2级导航", desc = "模糊查询2级导航") public Map<String, Object> querySecondLevelNavigations(QuerySecondLevelNavigations vo); @BizService(functionId = "900511", name = "模糊查询3级导航", desc = "模糊查询3级导航") public Map<String, Object> queryThirdLevelNavigations(QueryThirdLevelNavigations vo); @BizService(functionId = "900512", name = "查询app导航", desc = "查询app导航") public Map<String, Object> queryNavigationsForApp(QueryNavigationsForApp vo); @BizService(functionId = "900514", name = "按层级模糊查询类目", desc = "按层级模糊查询类目") public Map<String, Object> queryNavigationsByLike(QueryNavigationsByLike vo); @BizService(functionId = "900515", name = "按父级编号查询类目", desc = "按父级编号查询类目") public Map<String, Object> queryNavigationsByparentId(QueryNavigationsByparentId vo); @BizService(functionId = "900516", name = "查询二三级全部可用类目", desc = "查询二三级全部可用类目") public Map<String, Object> queryAllNavigationsForApp(HJYVO vo); @BizService(functionId = "900517", name = "修改单条导航状态", desc = "修改单条导航状态") public Map<String, Object> updateNavigationStatus(UpdatesingleNavigationStatus vo); }
[ "418180062@qq.com" ]
418180062@qq.com
240db01ca0aea173d4a71cff9b3290e7e6b04ce2
61e13884681f351814eb1646c18d502cdf1435b6
/hops-gateway/src/main/java/com/yuecheng/hops/gateway/webservice/IDispatchControl.java
f6d8c79c7bfb9646c293451682ab9920c941515b
[]
no_license
jy02718805/HOPS
d8b2b89db79b2c9d4e4560571c6ad29ffc25049c
e7e834221ea4aec1620ce9716dae2eac4e875430
refs/heads/master
2021-01-10T09:35:27.930434
2016-01-20T08:18:07
2016-01-20T08:18:07
49,999,762
0
0
null
null
null
null
UTF-8
Java
false
false
643
java
/** * IDispatchControl.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. */ package com.yuecheng.hops.gateway.webservice; public interface IDispatchControl extends javax.xml.rpc.Service { public java.lang.String getIDispatchControlHttpPortAddress(); public com.yuecheng.hops.gateway.webservice.IDispatchControlPortType getIDispatchControlHttpPort() throws javax.xml.rpc.ServiceException; public com.yuecheng.hops.gateway.webservice.IDispatchControlPortType getIDispatchControlHttpPort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException; }
[ "jy02718858@163.com" ]
jy02718858@163.com
8133b95e9e0fd3cadca926b3d1cfcb53654e44f4
c621994fef3188596990a68fbe218aaa92211b67
/src/main/java/io/github/cepr0/demo/impl/model/Child.java
f68f42f59fae25560cdd2c87a91b6d2ebf7e832b
[]
no_license
Cepr0/sb-hazelcast-hibernate-l2c-demo
e3ad6f4ccbf0257780c07eb399c2d6d1f37dc26a
b2233df2872d5b277ff617abf9bb2056bb23eae0
refs/heads/master
2020-04-16T00:25:04.435873
2019-01-10T21:56:48
2019-01-10T21:56:48
165,136,961
7
1
null
null
null
null
UTF-8
Java
false
false
1,207
java
package io.github.cepr0.demo.impl.model; import io.github.cepr0.demo.base.BaseEntity; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import org.hibernate.annotations.BatchSize; import org.hibernate.annotations.Cache; import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicUpdate; import javax.persistence.*; import java.util.Collection; import java.util.HashSet; import java.util.Set; import static org.hibernate.annotations.CacheConcurrencyStrategy.READ_WRITE; @Getter @Setter @NoArgsConstructor @EqualsAndHashCode(of = "name", callSuper = true) @Entity @Table(name = "children") @DynamicInsert @DynamicUpdate @Cache(usage = READ_WRITE) public class Child extends BaseEntity { @Column(columnDefinition = "text") private String name; @Cache(usage = READ_WRITE) @ManyToMany @JoinTable( name = "parents_children", joinColumns = @JoinColumn(name = "child_id"), inverseJoinColumns = @JoinColumn(name = "parent_id") ) @BatchSize(size = 20) private Set<Parent> parents; public Child(String name, Collection<Parent> parents) { this.name = name; this.parents = new HashSet<>(parents); } }
[ "cepr0@ukr.net" ]
cepr0@ukr.net
3e7f237506f18f102874fc1625182d4a9705005b
dd1120f0516b1ac0a44a94994db2445520c5d866
/src/dk/brics/tajs/analysis/dom/event/Event.java
2f00a58fada793e7de316814949b659883b5aa1a
[ "Apache-2.0" ]
permissive
xWIDL/TAJS
0cb05bc3db303970591ee8d35875d09550aa60cc
638d4bf7e4a604a3741e5502f771d5b71d6adec8
refs/heads/master
2021-01-15T11:23:33.815717
2016-10-24T14:15:36
2016-10-24T14:18:15
65,151,559
0
0
null
2016-08-07T19:58:58
2016-08-07T19:58:57
null
UTF-8
Java
false
false
6,001
java
/* * Copyright 2009-2016 Aarhus University * * 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 dk.brics.tajs.analysis.dom.event; import dk.brics.tajs.analysis.Conversion; import dk.brics.tajs.analysis.FunctionCalls; import dk.brics.tajs.analysis.InitialStateBuilder; import dk.brics.tajs.analysis.NativeFunctions; import dk.brics.tajs.analysis.PropVarOperations; import dk.brics.tajs.analysis.Solver; import dk.brics.tajs.analysis.dom.DOMObjects; import dk.brics.tajs.analysis.dom.DOMWindow; import dk.brics.tajs.lattice.ObjectLabel; import dk.brics.tajs.lattice.State; import dk.brics.tajs.lattice.Value; import dk.brics.tajs.util.AnalysisException; import static dk.brics.tajs.analysis.dom.DOMFunctions.createDOMFunction; import static dk.brics.tajs.analysis.dom.DOMFunctions.createDOMProperty; /** * The Event interface is used to provide contextual information about an event * to the handler processing the event. An object which implements the Event * interface is generally passed as the first parameter to an event handler. * More specific context information is passed to event handlers by deriving * additional interfaces from Event which contain information directly relating * to the type of event they accompany. These derived interfaces are also * implemented by the object passed to the event listener. */ public class Event { public static ObjectLabel CONSTRUCTOR; public static ObjectLabel PROTOTYPE; public static ObjectLabel INSTANCES; public static void build(Solver.SolverInterface c) { State s = c.getState(); PropVarOperations pv = c.getAnalysis().getPropVarOperations(); CONSTRUCTOR = new ObjectLabel(DOMObjects.EVENT_CONSTRUCTOR, ObjectLabel.Kind.FUNCTION); PROTOTYPE = new ObjectLabel(DOMObjects.EVENT_PROTOTYPE, ObjectLabel.Kind.OBJECT); INSTANCES = new ObjectLabel(DOMObjects.EVENT_INSTANCES, ObjectLabel.Kind.OBJECT); // Constructor Object s.newObject(CONSTRUCTOR); pv.writePropertyWithAttributes(CONSTRUCTOR, "length", Value.makeNum(0).setAttributes(true, true, true)); pv.writePropertyWithAttributes(CONSTRUCTOR, "prototype", Value.makeObject(PROTOTYPE).setAttributes(true, true, true)); s.writeInternalPrototype(CONSTRUCTOR, Value.makeObject(InitialStateBuilder.OBJECT_PROTOTYPE)); pv.writeProperty(DOMWindow.WINDOW, "Event", Value.makeObject(CONSTRUCTOR)); // Prototype object s.newObject(PROTOTYPE); s.writeInternalPrototype(PROTOTYPE, Value.makeObject(InitialStateBuilder.OBJECT_PROTOTYPE)); // Multiplied object s.newObject(INSTANCES); s.writeInternalPrototype(INSTANCES, Value.makeObject(PROTOTYPE)); /* * Properties. */ createDOMProperty(PROTOTYPE, "type", Value.makeAnyStr().setReadOnly(), c); createDOMProperty(PROTOTYPE, "eventPhase", Value.makeAnyNumUInt().setReadOnly(), c); createDOMProperty(PROTOTYPE, "bubbles", Value.makeAnyBool().setReadOnly(), c); createDOMProperty(PROTOTYPE, "cancelable", Value.makeAnyBool().setReadOnly(), c); createDOMProperty(PROTOTYPE, "timeStamp", Value.makeAnyNumUInt().setReadOnly(), c); // DOM LEVEL 0 createDOMProperty(PROTOTYPE, "pageX", Value.makeAnyNumUInt(), c); createDOMProperty(PROTOTYPE, "pageY", Value.makeAnyNumUInt(), c); s.multiplyObject(INSTANCES); INSTANCES = INSTANCES.makeSingleton().makeSummary(); /* * Constants (PhaseType). */ createDOMProperty(PROTOTYPE, "CAPTURING_PHASE", Value.makeNum(1), c); createDOMProperty(PROTOTYPE, "AT_TARGET", Value.makeNum(2), c); createDOMProperty(PROTOTYPE, "BUBBLING_PHASE", Value.makeNum(3), c); /* * Functions. */ createDOMFunction(PROTOTYPE, DOMObjects.EVENT_STOP_PROPAGATION, "stopPropagation", 0, c); createDOMFunction(PROTOTYPE, DOMObjects.EVENT_PREVENT_DEFAULT, "preventDefault", 0, c); createDOMFunction(PROTOTYPE, DOMObjects.EVENT_INIT_EVENT, "initEvent", 3, c); } /* * Transfer function. */ public static Value evaluate(DOMObjects nativeObject, FunctionCalls.CallInfo call, Solver.SolverInterface c) { State s = c.getState(); switch (nativeObject) { case EVENT_INIT_EVENT: { NativeFunctions.expectParameters(nativeObject, call, c, 3, 3); /* Value eventType =*/ Conversion.toString(NativeFunctions.readParameter(call, s, 0), c); /* Value canBubble =*/ Conversion.toBoolean(NativeFunctions.readParameter(call, s, 0)); /* Value cancelable =*/ Conversion.toBoolean(NativeFunctions.readParameter(call, s, 0)); return Value.makeUndef(); } case EVENT_PREVENT_DEFAULT: { NativeFunctions.expectParameters(nativeObject, call, c, 0, 0); return Value.makeUndef(); } case EVENT_STOP_PROPAGATION: { NativeFunctions.expectParameters(nativeObject, call, c, 0, 0); return Value.makeUndef(); } default: { throw new AnalysisException("Unsupported Native Object: " + nativeObject); } } } }
[ "amoeller@cs.au.dk" ]
amoeller@cs.au.dk
4941dd0ca82966e8f16b376d671ad1e32821ffeb
21202814c08034603e0c176bb0f99b3781526a77
/src/main/java/org/javaswift/joss/command/shared/factory/AuthenticationCommandFactory.java
292e781117853f36214970b422b6d276822f3b2f
[ "Apache-2.0" ]
permissive
philborlin/joss
f4bd8bebd628d99822815a98804da190cfb9626a
739872798f27360418f10637a0acfc2cb635e64e
refs/heads/master
2021-01-15T09:36:56.241861
2014-03-07T22:00:41
2014-03-07T22:00:41
null
0
0
null
null
null
null
UTF-8
Java
false
false
594
java
package org.javaswift.joss.command.shared.factory; import org.apache.http.client.HttpClient; import org.javaswift.joss.client.factory.AuthenticationMethod; import org.javaswift.joss.command.shared.identity.AuthenticationCommand; public interface AuthenticationCommandFactory { AuthenticationCommand createAuthenticationCommand(HttpClient httpClient, AuthenticationMethod authenticationMethod, String url, String tenantName, String tenantId, String username, String password); }
[ "bor.robert@gmail.com" ]
bor.robert@gmail.com
3db90b63530b50f8af705ac375ebd02d94d5a566
225011bbc304c541f0170ef5b7ba09b967885e95
/org/telegram/messenger/SendMessagesHelper$15.java
0f72c8abd54be645cdd2e1dd636b6429953aea64
[]
no_license
sebaudracco/bubble
66536da5367f945ca3318fecc4a5f2e68c1df7ee
e282cda009dfc9422594b05c63e15f443ef093dc
refs/heads/master
2023-08-25T09:32:04.599322
2018-08-14T15:27:23
2018-08-14T15:27:23
140,444,001
1
1
null
null
null
null
UTF-8
Java
false
false
2,326
java
package org.telegram.messenger; import java.io.File; import java.util.ArrayList; import java.util.HashMap; import org.telegram.tgnet.TLRPC$TL_document; class SendMessagesHelper$15 implements Runnable { final /* synthetic */ long val$dialog_id; final /* synthetic */ ArrayList val$messageObjects; final /* synthetic */ MessageObject val$reply_to_msg; SendMessagesHelper$15(ArrayList arrayList, long j, MessageObject messageObject) { this.val$messageObjects = arrayList; this.val$dialog_id = j; this.val$reply_to_msg = messageObject; } public void run() { int size = this.val$messageObjects.size(); for (int a = 0; a < size; a++) { final MessageObject messageObject = (MessageObject) this.val$messageObjects.get(a); String originalPath = messageObject.messageOwner.attachPath; File f = new File(originalPath); boolean isEncrypted = ((int) this.val$dialog_id) == 0; if (originalPath != null) { originalPath = originalPath + "audio" + f.length(); } TLRPC$TL_document tLRPC$TL_document = null; if (!isEncrypted) { tLRPC$TL_document = (TLRPC$TL_document) MessagesStorage.getInstance().getSentFile(originalPath, !isEncrypted ? 1 : 4); } if (tLRPC$TL_document == null) { tLRPC$TL_document = messageObject.messageOwner.media.document; } if (isEncrypted) { if (MessagesController.getInstance().getEncryptedChat(Integer.valueOf((int) (this.val$dialog_id >> 32))) == null) { return; } } final HashMap<String, String> params = new HashMap(); if (originalPath != null) { params.put("originalPath", originalPath); } final TLRPC$TL_document documentFinal = tLRPC$TL_document; AndroidUtilities.runOnUIThread(new Runnable() { public void run() { SendMessagesHelper.getInstance().sendMessage(documentFinal, null, messageObject.messageOwner.attachPath, SendMessagesHelper$15.this.val$dialog_id, SendMessagesHelper$15.this.val$reply_to_msg, null, params, 0); } }); } } }
[ "sebaudracco@gmail.com" ]
sebaudracco@gmail.com
1e2be69af804600fd2f0323cb505a9d0662c3323
53d677a55e4ece8883526738f1c9d00fa6560ff7
/com/tencent/mm/plugin/facedetect/ui/FaceDetectPrepareUI$16.java
18e0b53ccc2cb076d42a658d6fbba243b36ecbdb
[]
no_license
0jinxing/wechat-apk-source
544c2d79bfc10261eb36389c1edfdf553d8f312a
f75eefd87e9b9ecf2f76fc6d48dbba8e24afcf3d
refs/heads/master
2020-06-07T20:06:03.580028
2019-06-21T09:17:26
2019-06-21T09:17:26
193,069,132
9
4
null
null
null
null
UTF-8
Java
false
false
756
java
package com.tencent.mm.plugin.facedetect.ui; import com.tencent.matrix.trace.core.AppMethodBeat; import com.tencent.mm.plugin.facedetect.model.p; import com.tencent.mm.sdk.platformtools.al; final class FaceDetectPrepareUI$16 implements Runnable { FaceDetectPrepareUI$16(FaceDetectPrepareUI paramFaceDetectPrepareUI) { } public final void run() { AppMethodBeat.i(422); al.d(new FaceDetectPrepareUI.16.1(this, p.Lr(FaceDetectPrepareUI.c(this.lXp)))); AppMethodBeat.o(422); } } /* Location: C:\Users\Lin\Downloads\dex-tools-2.1-SNAPSHOT\dex-tools-2.1-SNAPSHOT\classes3-dex2jar.jar * Qualified Name: com.tencent.mm.plugin.facedetect.ui.FaceDetectPrepareUI.16 * JD-Core Version: 0.6.2 */
[ "172601673@qq.com" ]
172601673@qq.com
8ae37e992ffc6ba5cf31cb9ff6446c7b2156f91f
a72ceac277f25e9f61f6d84533f1d1ce55373c1b
/NemoJava-2.0/src/test/java/TestScript/B2B/NA18480Test.java
7317da1d676891a155f12ae2768e1189f0221cdb
[ "MIT" ]
permissive
chenleizhaoEdinboro/chenleizhaoedinboro.github.io
3f116527186c6edee74436870664506d041e0098
ce33a8ad58c31f4ba70ac566c1a8b8b7acb8e025
refs/heads/master
2020-03-29T02:17:48.206724
2018-09-20T07:50:06
2018-09-20T07:50:06
149,428,956
0
0
null
null
null
null
UTF-8
Java
false
false
5,318
java
package TestScript.B2B; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.interactions.Actions; import org.testng.Assert; import org.testng.ITestContext; import org.testng.annotations.Test; import CommonFunction.B2BCommon; import CommonFunction.Common; import CommonFunction.EMailCommon; import CommonFunction.HMCCommon; import CommonFunction.B2BCommon.B2BRole; import Logger.Dailylog; import Pages.B2BPage; import Pages.HMCPage; import Pages.MailPage; import TestScript.SuperTestClass; public class NA18480Test extends SuperTestClass{ private static HMCPage hmcPage; private static B2BPage b2bPage; private static MailPage mailPage; private String quoteID; String account="Builder"+Common.getDateTimeString()+"@SHARKLASERS.COM"; public NA18480Test(String store) { this.Store = store; this.testName = "NA-18480"; } @Test(priority = 0, enabled = true, alwaysRun = true, groups = {"accountgroup", "email", "p2", "b2b"}) public void NA18480(ITestContext ctx) { try{ this.prepareTest(); hmcPage = new HMCPage(driver); b2bPage = new B2BPage(driver); mailPage = new MailPage(driver); //EMailCommon.createEmail(driver, mailPage, testData.B2B.getBuilderId()); //Thread.sleep(3000); //Step 1: //driver.get(testData.HMC.getHomePageUrl()); Dailylog.logInfoDB(1, "Enter into HMC, open the toggle for country seal in Site Attribute in B2B Unit", Store, testName); setCountrySealToggle(hmcPage.siteAttribute_EnableCountrySealYes); //Step 2: Dailylog.logInfoDB(2, "Open the corresponding B2B website, choose one product, and add to cart", Store, testName); addProductToCart(); //Step 3: Dailylog.logInfoDB(3, "Request a quote, and then jump to quote confirmation page", Store, testName); requestQuoteAndCheckCountrySeal(true); Dailylog.logInfoDB(3, "Quote created. Quote ID is: " + quoteID, Store, testName); //Step 4: Dailylog.logInfoDB(4, "Check the quote confirmation email", Store, testName); checkCountrySealInEmail("Lenovo Quote ID: " + quoteID, true, 4); //Step 5: driver.manage().deleteAllCookies(); Dailylog.logInfoDB(5, "Go back the HMC, disable the country seal toggle", Store, testName); setCountrySealToggle(hmcPage.siteAttribute_EnableCountrySealNo); //Step 6: Dailylog.logInfoDB(6, "Repeat step 2-4", Store, testName); addProductToCart(); requestQuoteAndCheckCountrySeal(false); Dailylog.logInfoDB(6, "Quote created. Quote ID is: " + quoteID, Store, testName); checkCountrySealInEmail("Lenovo Quote ID: " + quoteID, false, 6); }catch (Throwable e){ handleThrowable(e, ctx); } } public void setCountrySealToggle(WebElement countrySealToggleLocator){ driver.get(testData.HMC.getHomePageUrl()); HMCCommon.Login(hmcPage, testData); hmcPage.Home_B2BCommerceLink.click(); hmcPage.Home_B2BUnitLink.click(); Common.sendFieldValue(hmcPage.B2BUnit_SearchIDTextBox,testData.B2B.getB2BUnit()); hmcPage.B2BUnit_SearchButton.click(); hmcPage.B2BUnit_ResultItem.click(); hmcPage.B2BUnit_siteAttribute.click(); countrySealToggleLocator.click(); hmcPage.B2BUnit_Save.click(); hmcPage.hmcHome_hmcSignOut.click(); } public void addProductToCart() throws InterruptedException{ B2BCommon.createAccount(driver ,testData.B2B.getLoginUrl() ,testData.B2B.getB2BUnit() ,b2bPage, B2BRole.Builder, account, Browser); HMCCommon.activeAccount(driver,testData, account); driver.manage().deleteAllCookies(); driver.get(testData.B2B.getLoginUrl()); B2BCommon.Login(b2bPage, account, testData.B2B.getDefaultPassword()); Thread.sleep(2000); B2BCommon.addProduct(driver, b2bPage, testData.B2B.getDefaultMTMPN1()); } public void requestQuoteAndCheckCountrySeal(boolean isCountrySealAvailable) throws InterruptedException{ b2bPage.cartPage_RequestQuoteBtn.click(); Thread.sleep(2000); b2bPage.cartPage_SubmitQuote.click(); quoteID = b2bPage.quoteConfirmation_quoteID.getText(); //Checking if country seal is present or not Assert.assertEquals(Common.isElementExist(driver, By.xpath(".//div[contains(@class,'checkout-confirm')]/img[contains(@src,'Seal')]")), isCountrySealAvailable); } public void checkCountrySealInEmail(String emailSubject, boolean isCountrySealAvailable, int stepNumber) throws InterruptedException{ EMailCommon.createEmail(driver, mailPage, account); String subject = null; for(int i=1;i<=5;i++){ if(i==5){ Dailylog.logInfoDB(stepNumber, "Need Manual Validate in email. Email not received!", Store, testName); } else if(Common.checkElementExists(driver, mailPage.Inbox_EmailSubject,5)==true){ subject=mailPage.Inbox_EmailSubject.getText(); if(subject.contains(emailSubject)){ i=6; Actions actions = new Actions(driver); actions.sendKeys(Keys.PAGE_UP).perform(); mailPage.Inbox_EmailSubject.click(); Thread.sleep(3000); Assert.assertEquals(Common.isElementExist(driver, By.xpath(".//*[@id='display_email']//img[contains(@alt,'Seal')]")), isCountrySealAvailable); } else { Dailylog.logInfoDB(stepNumber, "Email with this subject is not yet received. Refreshing the inbox in 10 seconds!", Store, testName); Common.sleep(10000); } } } } }
[ "chenleizhao224@gmail.com" ]
chenleizhao224@gmail.com
9f2e6e035d973bcc8e44975c504c192199c73274
b8ebab3b577719283100f7d85051666c9696da9c
/code/MyApplication/app/src/main/java/com/ckt/testauxiliarytool/contentfill/FillToolActivity.java
994ec66b4898b50b081cc3cdef5c5657c9630312
[]
no_license
KitChenZhou/NoteStudy
bc73c99f0e214bceb773f1174ab2c7bb0df4f650
8b0f106d4e5dfc2fb099a70a55f25a0e859ce947
refs/heads/master
2020-03-26T07:51:38.499300
2018-08-15T00:56:30
2018-08-15T00:56:30
144,674,799
0
1
null
null
null
null
UTF-8
Java
false
false
2,855
java
package com.ckt.testauxiliarytool.contentfill; import android.content.DialogInterface; import android.os.Handler; import android.os.Message; import android.support.v4.app.Fragment; import android.support.v7.app.AlertDialog; import android.util.Log; import android.widget.Toast; import com.ckt.testauxiliarytool.R; public class FillToolActivity extends FillSingleFragmentActivity implements RamFillFragment.BackHandlerInterface { private static final String TAG = "FillToolActivity"; private RamFillFragment selectedFragment; private boolean mIsAddRam = false; // 定义一个变量,来标识是否退出 private static boolean isExit = false; Handler mHandler = new Handler() { @Override public void handleMessage(Message msg) { super.handleMessage(msg); isExit = false; } }; @Override protected Fragment createFragment() { return new FillToolFragment(); } @Override public void setSelectedFragment(RamFillFragment backHandledFragment) { this.selectedFragment = backHandledFragment; } @Override public void setIsAddRam(Boolean isAddRam) { this.mIsAddRam = isAddRam; } @Override public void onBackPressed() { Log.d(TAG, "onBackPressed: " + mIsAddRam); if (selectedFragment == null || !selectedFragment.onBackPressed() || !mIsAddRam ) { // 监听fragment下的返回键 if (this.getSupportFragmentManager().getBackStackEntryCount() == 1) { exit(); } else { super.onBackPressed(); } } else { Log.d(TAG, "onBackPressed: "); AlertDialog.Builder builder = new AlertDialog.Builder(FillToolActivity.this); builder.setMessage("再点击返回键,内存释放!可点击home键进入后台") .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialogInterface, int which) { } }) // .setNegativeButton(android.R.string.cancel, null) .setCancelable(false) .create().show(); } } private void exit() { if (!isExit) { isExit = true; Toast.makeText(this, "再按一次退出程序", Toast.LENGTH_SHORT).show(); // 利用handler延迟发送更改状态信息 mHandler.sendEmptyMessageDelayed(0, 2000); } else { finish(); // System.exit(0); } } }
[ "lei.chen@ck-telecom.com" ]
lei.chen@ck-telecom.com
71544c620ddac98d0b5ecdef3f8d320400be4262
efaa59aacd6d6bbe25149d9e411944079fb1897b
/src/main/java/idv/heimlich/Interceptor/common/exception/TxBusinessException.java
b58cb855c0a0cac74cbb4789a02a196a7b76f7f9
[]
no_license
HeimlichLin/Interceptor
f522022490177c33412f8be890b38d4425c2c772
98091018d12fc7cddb19a2a0682b0efe91a93960
refs/heads/main
2023-08-15T13:07:04.920524
2021-10-04T08:06:51
2021-10-04T08:06:51
413,329,243
0
0
null
null
null
null
UTF-8
Java
false
false
360
java
package idv.heimlich.Interceptor.common.exception; public class TxBusinessException extends RuntimeException { /** * */ private static final long serialVersionUID = 1L; public TxBusinessException(final String message, final Throwable cause) { super(message, cause); } public TxBusinessException(final String message) { super(message); } }
[ "jerry.lin@tradevan.com.tw" ]
jerry.lin@tradevan.com.tw
4dff42f6c33a9cbdad6c1f49980c3f8d6f51fda1
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
/methods/Method_48002.java
4639eb828f607d144302d92a1024d3ac7ec0444b
[]
no_license
P79N6A/icse_20_user_study
5b9c42c6384502fdc9588430899f257761f1f506
8a3676bc96059ea2c4f6d209016f5088a5628f3c
refs/heads/master
2020-06-24T08:25:22.606717
2019-07-25T15:31:16
2019-07-25T15:31:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
275
java
public void onDeleteHabits(){ List<Habit> selected=adapter.getSelected(); screen.showDeleteConfirmationScreen(() -> { adapter.performRemove(selected); commandRunner.execute(new DeleteHabitsCommand(habitList,selected),null); adapter.clearSelection(); } ); }
[ "sonnguyen@utdallas.edu" ]
sonnguyen@utdallas.edu
1375a678150958aaafea5ee981d004f466ab2ebb
bf2a6af7fd7569ab3b77c021daff803bf1dfee50
/src/main/java/com/contest/pojo/ProblemPojo.java
f4d3ffc57dec6ad99dcd9e55543ea2ed8ef0f149
[]
no_license
juno1985/program-contest
cafde07648e2cb8e8af3f8cd6939f6300613c1e1
1b6ca9d8457789b28257be9535f076abca2daac5
refs/heads/master
2020-04-26T09:14:27.874386
2019-07-05T07:30:20
2019-07-05T07:30:20
173,448,910
0
0
null
null
null
null
UTF-8
Java
false
false
1,844
java
package com.contest.pojo; import javax.validation.constraints.NotEmpty; public class ProblemPojo { private Integer id; @NotEmpty(message="标题不能为空") private String title; private Integer status; private String description; private String input; private String output; private String explanation; private String code_prefix; private String code_suffix; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getInput() { return input; } public void setInput(String input) { this.input = input; } public String getOutput() { return output; } public void setOutput(String output) { this.output = output; } public String getExplanation() { return explanation; } public void setExplanation(String explanation) { this.explanation = explanation; } public String getCode_prefix() { return code_prefix; } public void setCode_prefix(String code_prefix) { this.code_prefix = code_prefix; } public String getCode_suffix() { return code_suffix; } public void setCode_suffix(String code_suffix) { this.code_suffix = code_suffix; } @Override public String toString() { return "ProblemPojo [id=" + id + ", title=" + title + ", status=" + status + ", description=" + description + ", input=" + input + ", output=" + output + ", explanation=" + explanation + ", code_prefix=" + code_prefix + ", code_suffix=" + code_suffix + "]"; } }
[ "wangzhen_tju@126.com" ]
wangzhen_tju@126.com
3f4c667e33a3f179aeb89cb3abb1c5df37c948e2
c75e6df08eb4065ab80fcc1dcc1cb38ac1256f72
/web/plugins/com.seekon.bicp.portal/src/main/java/org/jasig/portal/layout/dlm/providers/ProfileEvaluator_.java
86616fe101ed28b5916086bf295a7cdbfdbd2213
[]
no_license
jerome-nexedi/nextbi
7b219c1ec64b21bebf4ccf77c730e15a8ad1c6de
0179b30bf6a86ae6a070434a3161d7935f166b42
refs/heads/master
2021-01-10T09:06:15.838199
2012-11-14T11:59:53
2012-11-14T11:59:53
36,644,370
0
0
null
null
null
null
UTF-8
Java
false
false
499
java
package org.jasig.portal.layout.dlm.providers; import javax.annotation.Generated; import javax.persistence.metamodel.SingularAttribute; import javax.persistence.metamodel.StaticMetamodel; @Generated(value = "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor") @StaticMetamodel(ProfileEvaluator.class) public abstract class ProfileEvaluator_ extends org.jasig.portal.layout.dlm.Evaluator_ { public static volatile SingularAttribute<ProfileEvaluator, String> profileFname; }
[ "undyliu@126.com" ]
undyliu@126.com
73732c4e745cf6033e16e4fe246635346565f55e
69f0ee56824272a9a3e19d8afeb50f6656cc213a
/mPOS/src/main/java/com/synature/mpos/EPSONPrinter.java
e36374dbc3301bdd7b5d90027b55b021b98c3f66
[]
no_license
Synature-Jitthapong/mPOS-Gradle
7a63790b6b93da7339740eff372fb225b9fa2f47
c25aa41520aac39168a3918567d07dd333e42eb0
refs/heads/master
2021-01-18T14:58:17.314673
2014-07-08T11:45:08
2014-07-08T11:45:08
21,610,164
1
0
null
null
null
null
UTF-8
Java
false
false
2,068
java
package com.synature.mpos; import android.content.Context; import com.epson.eposprint.BatteryStatusChangeEventListener; import com.epson.eposprint.Builder; import com.epson.eposprint.EposException; import com.epson.eposprint.Print; import com.epson.eposprint.StatusChangeEventListener; public abstract class EPSONPrinter extends PrinterUtility implements BatteryStatusChangeEventListener, StatusChangeEventListener{ protected Context mContext; protected Print mPrinter; protected Builder mBuilder; public EPSONPrinter(Context context){ mContext = context; mPrinter = new Print(context.getApplicationContext()); mPrinter.setStatusChangeEventCallback(this); mPrinter.setBatteryStatusChangeEventCallback(this); open(); createBuilder(); } protected boolean open(){ try { mPrinter.openPrinter(Print.DEVTYPE_TCP, Utils.getPrinterIp(mContext), 0, 1000); return true; } catch (EposException e) { e.printStackTrace(); return false; } } protected boolean createBuilder(){ try { mBuilder = new Builder(Utils.getEPSONModelName(mContext), Builder.MODEL_ANK, mContext); mBuilder.addTextSize(1, 1); if(Utils.getEPSONPrinterFont(mContext).equals("a")){ mBuilder.addTextFont(Builder.FONT_A); }else if(Utils.getEPSONPrinterFont(mContext).equals("b")){ mBuilder.addTextFont(Builder.FONT_B); } return true; } catch (EposException e) { e.printStackTrace(); return false; } } public abstract void prepareDataToPrint(int transactionId); public abstract void prepareDataToPrint(); protected void print(){ // send mBuilder data int[] status = new int[1]; int[] battery = new int[1]; try { mBuilder.addFeedUnit(30); mBuilder.addCut(Builder.CUT_FEED); mPrinter.sendData(mBuilder, 10000, status, battery); } catch (EposException e) { e.printStackTrace(); } if (mBuilder != null) { mBuilder.clearCommandBuffer(); } // close printer try { mPrinter.closePrinter(); mPrinter = null; } catch (EposException e) { e.printStackTrace(); } } }
[ "jitthapong@synaturegroup.com" ]
jitthapong@synaturegroup.com
2ca42640f1796a72d763eefdd009d06abac81a52
f766baf255197dd4c1561ae6858a67ad23dcda68
/app/src/main/java/com/tencent/smtt/sdk/bp.java
244e6d9b6d63cd91a36ffbdc5c294710cb8ec91a
[]
no_license
jianghan200/wxsrc6.6.7
d83f3fbbb77235c7f2c8bc945fa3f09d9bac3849
eb6c56587cfca596f8c7095b0854cbbc78254178
refs/heads/master
2020-03-19T23:40:49.532494
2018-06-12T06:00:50
2018-06-12T06:00:50
137,015,278
4
2
null
null
null
null
UTF-8
Java
false
false
666
java
package com.tencent.smtt.sdk; import android.webkit.WebView.FindListener; import com.tencent.smtt.export.external.interfaces.IX5WebViewBase.FindListener; class bp implements WebView.FindListener { bp(WebView paramWebView, IX5WebViewBase.FindListener paramFindListener) {} public void onFindResultReceived(int paramInt1, int paramInt2, boolean paramBoolean) { this.a.onFindResultReceived(paramInt1, paramInt2, paramBoolean); } } /* Location: /Users/Han/Desktop/wxall/微信反编译/反编译 6.6.7/dex2jar-2.0/classes2-dex2jar.jar!/com/tencent/smtt/sdk/bp.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "526687570@qq.com" ]
526687570@qq.com
0bb6310c7c1706f4c116b9e5b48cd2f4d0bf6e1f
89b5354fd65dce7250d55491c6a70c525a733d40
/src/test/java/com/bart/bartserv/security/DomainUserDetailsServiceIntTest.java
206dc0ecee2ee763a83d85daab1608e02ad32942
[]
no_license
BulkSecurityGeneratorProject/bart
29dd7b77a0ef82d53db647c8232d6e1542ac8238
16795fd3884e6c7fb9c5b08fa472e6e49ed4dc8a
refs/heads/master
2022-12-16T23:49:47.976813
2018-12-23T10:37:29
2018-12-23T10:37:29
296,582,830
0
0
null
2020-09-18T09:58:51
2020-09-18T09:58:50
null
UTF-8
Java
false
false
4,594
java
package com.bart.bartserv.security; import com.bart.bartserv.BartservApp; import com.bart.bartserv.domain.User; import com.bart.bartserv.repository.UserRepository; import org.apache.commons.lang3.RandomStringUtils; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.security.core.userdetails.UsernameNotFoundException; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.transaction.annotation.Transactional; import java.util.Locale; import static org.assertj.core.api.Assertions.assertThat; /** * Test class for DomainUserDetailsService. * * @see DomainUserDetailsService */ @RunWith(SpringRunner.class) @SpringBootTest(classes = BartservApp.class) @Transactional public class DomainUserDetailsServiceIntTest { private static final String USER_ONE_LOGIN = "test-user-one"; private static final String USER_ONE_EMAIL = "test-user-one@localhost"; private static final String USER_TWO_LOGIN = "test-user-two"; private static final String USER_TWO_EMAIL = "test-user-two@localhost"; private static final String USER_THREE_LOGIN = "test-user-three"; private static final String USER_THREE_EMAIL = "test-user-three@localhost"; @Autowired private UserRepository userRepository; @Autowired private UserDetailsService domainUserDetailsService; private User userOne; private User userTwo; private User userThree; @Before public void init() { userOne = new User(); userOne.setLogin(USER_ONE_LOGIN); userOne.setPassword(RandomStringUtils.random(60)); userOne.setActivated(true); userOne.setEmail(USER_ONE_EMAIL); userOne.setFirstName("userOne"); userOne.setLastName("doe"); userOne.setLangKey("en"); userRepository.save(userOne); userTwo = new User(); userTwo.setLogin(USER_TWO_LOGIN); userTwo.setPassword(RandomStringUtils.random(60)); userTwo.setActivated(true); userTwo.setEmail(USER_TWO_EMAIL); userTwo.setFirstName("userTwo"); userTwo.setLastName("doe"); userTwo.setLangKey("en"); userRepository.save(userTwo); userThree = new User(); userThree.setLogin(USER_THREE_LOGIN); userThree.setPassword(RandomStringUtils.random(60)); userThree.setActivated(false); userThree.setEmail(USER_THREE_EMAIL); userThree.setFirstName("userThree"); userThree.setLastName("doe"); userThree.setLangKey("en"); userRepository.save(userThree); } @Test @Transactional public void assertThatUserCanBeFoundByLogin() { UserDetails userDetails = domainUserDetailsService.loadUserByUsername(USER_ONE_LOGIN); assertThat(userDetails).isNotNull(); assertThat(userDetails.getUsername()).isEqualTo(USER_ONE_LOGIN); } @Test @Transactional public void assertThatUserCanBeFoundByLoginIgnoreCase() { UserDetails userDetails = domainUserDetailsService.loadUserByUsername(USER_ONE_LOGIN.toUpperCase(Locale.ENGLISH)); assertThat(userDetails).isNotNull(); assertThat(userDetails.getUsername()).isEqualTo(USER_ONE_LOGIN); } @Test @Transactional public void assertThatUserCanBeFoundByEmail() { UserDetails userDetails = domainUserDetailsService.loadUserByUsername(USER_TWO_EMAIL); assertThat(userDetails).isNotNull(); assertThat(userDetails.getUsername()).isEqualTo(USER_TWO_LOGIN); } @Test(expected = UsernameNotFoundException.class) @Transactional public void assertThatUserCanNotBeFoundByEmailIgnoreCase() { domainUserDetailsService.loadUserByUsername(USER_TWO_EMAIL.toUpperCase(Locale.ENGLISH)); } @Test @Transactional public void assertThatEmailIsPrioritizedOverLogin() { UserDetails userDetails = domainUserDetailsService.loadUserByUsername(USER_ONE_EMAIL); assertThat(userDetails).isNotNull(); assertThat(userDetails.getUsername()).isEqualTo(USER_ONE_LOGIN); } @Test(expected = UserNotActivatedException.class) @Transactional public void assertThatUserNotActivatedExceptionIsThrownForNotActivatedUsers() { domainUserDetailsService.loadUserByUsername(USER_THREE_LOGIN); } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
45dc3c635a2c24130bf1d4e51a20699274a9d9e9
fba8af31d5d36d8a6cf0c341faed98b6cd5ec0cb
/src/main/java/com/alipay/api/domain/AlipayOpenMiniVersionGrayOnlineModel.java
4fb745613437315700602a985ad47827aebccb33
[ "Apache-2.0" ]
permissive
planesweep/alipay-sdk-java-all
b60ea1437e3377582bd08c61f942018891ce7762
637edbcc5ed137c2b55064521f24b675c3080e37
refs/heads/master
2020-12-12T09:23:19.133661
2020-01-09T11:04:31
2020-01-09T11:04:31
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,402
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 小程序灰度上架 * * @author auto create * @since 1.0, 2019-10-31 18:07:14 */ public class AlipayOpenMiniVersionGrayOnlineModel extends AlipayObject { private static final long serialVersionUID = 2554548523188293348L; /** * 小程序版本号 */ @ApiField("app_version") private String appVersion; /** * 小程序投放的端参数,例如投放到支付宝钱包是支付宝端。该参数可选,默认支付宝端,目前仅支持支付宝端,枚举列举:com.alipay.alipaywallet:支付宝端 */ @ApiField("bundle_id") private String bundleId; /** * 小程序灰度策略值,支持p10,p30,p50,其中p10代表10%的用户,p30代表30%的用户,p50代表50%的用户 */ @ApiField("gray_strategy") private String grayStrategy; public String getAppVersion() { return this.appVersion; } public void setAppVersion(String appVersion) { this.appVersion = appVersion; } public String getBundleId() { return this.bundleId; } public void setBundleId(String bundleId) { this.bundleId = bundleId; } public String getGrayStrategy() { return this.grayStrategy; } public void setGrayStrategy(String grayStrategy) { this.grayStrategy = grayStrategy; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
64702600b6d8a04d4f058402c12ce1e7a96aceb6
4e6745b1b7f5802da0f4157d1dbe647b8fd88d33
/framework/framework-persistence/src/main/java/org/daisy/pipeline/persistence/impl/messaging/PersistenceMessagePK.java
f2777a1b03624894e4fbc7b516d7df7248ddaf1b
[]
no_license
daisy/pipeline
d2bf3e76df47ab74241274bd83425d8c68949f11
3946dbede7088e3d3e2cb523d2cb902b20226839
refs/heads/master
2023-08-31T06:57:53.647550
2023-06-20T16:20:30
2023-07-19T15:59:47
18,717,712
18
21
null
2023-07-20T10:23:51
2014-04-13T00:04:25
HTML
UTF-8
Java
false
false
250
java
package org.daisy.pipeline.persistence.impl.messaging; public class PersistenceMessagePK { int sequence; String jobId; public PersistenceMessagePK(int sequence, String jobId) { super(); this.sequence = sequence; this.jobId = jobId; } }
[ "bertfrees@gmail.com" ]
bertfrees@gmail.com