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
cbfa5c9f2e68589f9df39b61ea5faa381236f8e8
5d00b27e4022698c2dc56ebbc63263f3c44eea83
/src/com/ah/be/rest/ahmdm/server/service/MdmStatusUpdateServiceImpl.java
a98f25d4d857bf1f101ad8d73c34a6e6db85804f
[]
no_license
Aliing/WindManager
ac5b8927124f992e5736e34b1b5ebb4df566770a
f66959dcaecd74696ae8bc764371c9a2aa421f42
refs/heads/master
2020-12-27T23:57:43.988113
2014-07-28T17:58:46
2014-07-28T17:58:46
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,022
java
package com.ah.be.rest.ahmdm.server.service; import java.util.List; import sun.misc.BASE64Decoder; import com.ah.be.app.HmBeCommunicationUtil; import com.ah.be.common.cache.CacheMgmt; import com.ah.be.common.cache.SimpleHiveAp; import com.ah.be.communication.BeCommunicationConstant; import com.ah.be.communication.event.BeCliEvent; import com.ah.be.rest.ahmdm.server.models.MdmStatusUpdateRequest; import com.ah.be.rest.ahmdm.server.models.MdmStatusUpdateResponse; import com.ah.bo.mgmt.QueryUtil; import com.ah.util.Tracer; public class MdmStatusUpdateServiceImpl implements MdmStatusUpdateService { private static final int TIMEOUT_CLI = 35; // second private static final String STATUS_UPDATE_CLI = "exec mobile-device-manager aerohive status-change "; private static final String CLI_SUFFIX = "\n"; public MdmStatusUpdateResponse updateStatus(MdmStatusUpdateRequest req) { MdmStatusUpdateResponse response = new MdmStatusUpdateResponse(); response.setApMacAddress(req.getApMacAddress()); SimpleHiveAp ap = getSimpleHiveAp(req.getCustomerId(), req.getApMacAddress()); if (ap == null) { response.setResultCode(MdmStatusUpdateResponse.RESULT_AP_NOT_FOUND); return response; } try { byte[] data = new BASE64Decoder().decodeBuffer(req.getData()); StringBuilder sb = new StringBuilder(STATUS_UPDATE_CLI).append(new String(data)).append(CLI_SUFFIX); String[] clis = new String[1]; clis[0] = sb.toString(); BeCliEvent updateEvent = new BeCliEvent(); updateEvent.setSimpleHiveAp(ap); updateEvent.setClis(clis); updateEvent.setSequenceNum(HmBeCommunicationUtil.getSequenceNumber()); updateEvent.buildPacket(); int serialNum = HmBeCommunicationUtil.sendRequest(updateEvent, TIMEOUT_CLI); response.setResultCode(serialNum == BeCommunicationConstant.SERIALNUM_SENDREQUESTFAILED ? MdmStatusUpdateResponse.RESULT_AP_DISCONNECTED : MdmStatusUpdateResponse.RESULT_SUCCESS); } catch (Exception e) { new Tracer(MdmStatusUpdateService.class.getSimpleName()).error("MdmStatusUpdateService.updateStatus fail", e); response.setResultCode(MdmStatusUpdateResponse.RESULT_OTHER_FAILURE); } return response; } private SimpleHiveAp getSimpleHiveAp(String domain, String macAddress) { if (domain == null || macAddress == null) return null; macAddress = macAddress.toUpperCase(); SimpleHiveAp simpleAp = CacheMgmt.getInstance().getSimpleHiveAp(macAddress); if (simpleAp != null) return simpleAp; String sql = "select id, softver from hive_ap where macaddress = '" + macAddress + "'"; List list = QueryUtil.executeNativeQuery(sql); if (list == null || list.size() == 0) return null; Object[] values = (Object[]) list.get(0); simpleAp = new SimpleHiveAp(); simpleAp.setMacAddress(macAddress); simpleAp.setId(Long.valueOf(values[0].toString())); simpleAp.setSoftVer(values[1].toString()); return simpleAp; } }
[ "zjie@aerohive.com" ]
zjie@aerohive.com
968b157deb4df5fa157b3d2833c0deec543baaec
9e05e92e8b66f2f098709ca98f0a8a97d37f1ea9
/src/queue/boj_11003.java
028070b757069afde16eecc74a610c1f6ba00c2b
[]
no_license
mankicho/baekjoon
0f85fdca8510eb90f8637790801c6bda6c1e9c52
4ac76c912bf6b9eb633d64349c35cec7a9ebbb8e
refs/heads/master
2023-08-14T05:17:38.234843
2021-10-05T13:40:06
2021-10-05T13:40:06
363,829,868
0
0
null
null
null
null
UTF-8
Java
false
false
1,111
java
package queue; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; import java.util.LinkedList; public class boj_11003 { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int[] arr = Arrays.stream(br.readLine().split(" ")).mapToInt(Integer::parseInt).toArray(); int n = arr[0]; int l = arr[1]; arr = Arrays.stream(br.readLine().split(" ")).mapToInt(Integer::parseInt).toArray(); LinkedList<Integer> queue = new LinkedList<>(); StringBuilder result = new StringBuilder(); for (int i = 0; i < arr.length; i++) { while (!queue.isEmpty() && queue.peekFirst() <= i - l) { queue.pollFirst(); } while (!queue.isEmpty() && arr[queue.peekLast()] > arr[i]) { queue.pollLast(); } queue.offerLast(i); result.append(arr[queue.peekFirst()]).append(" "); } System.out.println(result.toString()); } }
[ "skxz123@gmail.com" ]
skxz123@gmail.com
a167550a811ab13bc8080306089cd6d86cfd3d58
2bc2eadc9b0f70d6d1286ef474902466988a880f
/tags/mule-1.3-rc5/mule/tests/integration/src/test/java/org/mule/test/transformers/FailingTransformer.java
9a42823ca81ce23730e75893101a82e74928175b
[]
no_license
OrgSmells/codehaus-mule-git
085434a4b7781a5def2b9b4e37396081eaeba394
f8584627c7acb13efdf3276396015439ea6a0721
refs/heads/master
2022-12-24T07:33:30.190368
2020-02-27T19:10:29
2020-02-27T19:10:29
243,593,543
0
0
null
2022-12-15T23:30:00
2020-02-27T18:56:48
null
UTF-8
Java
false
false
835
java
/* * $Id$ * -------------------------------------------------------------------------------------- * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com * * The software in this package is published under the terms of the MuleSource MPL * license, a copy of which has been included with this distribution in the * LICENSE.txt file. */ package org.mule.test.transformers; import org.mule.transformers.AbstractTransformer; import org.mule.umo.transformer.TransformerException; public class FailingTransformer extends AbstractTransformer { private static final long serialVersionUID = -4399792657994495343L; protected Object doTransform(Object src, String encoding) throws TransformerException { throw new TransformerException(this, new Exception("Wrapped test exception")); } }
[ "tcarlson@bf997673-6b11-0410-b953-e057580c5b09" ]
tcarlson@bf997673-6b11-0410-b953-e057580c5b09
1a1480d8dd72b7f26aad6fdeceb1e3fd25ec370b
90601cfdec064b48a7e881e4f6281355e6d8b4a1
/game_server/src/com/gameserver/slot/redismsg/ChangeInfo2.java
f885f485ff8d79555cfb1f04903c6be70d896981
[]
no_license
npf888/game
86a6e63e2e055d997af43e7fbb655c892a399dbb
f73eec261e17ec5a09950cf6b5b172e02dc8dde0
refs/heads/master
2020-03-21T22:33:56.413814
2018-06-29T10:57:54
2018-06-29T10:57:54
139,134,346
2
0
null
null
null
null
UTF-8
Java
false
false
1,541
java
package com.gameserver.slot.redismsg; import com.gameserver.common.Globals; import com.gameserver.player.Player; import com.gameserver.redis.IRedisMessage; public class ChangeInfo2 implements IRedisMessage { private long passportId; private Long playerId; private String img; private int level; private String countries; private String name; public long getPassportId() { return passportId; } public void setPassportId(long passportId) { this.passportId = passportId; } public Long getPlayerId() { return playerId; } public void setPlayerId(Long playerId) { this.playerId = playerId; } public String getImg() { return img; } public void setImg(String img) { this.img = img; } public int getLevel() { return level; } public void setLevel(int level) { this.level = level; } public String getCountries() { return countries; } public void setCountries(String countries) { this.countries = countries; } public String getName() { return name; } public void setName(String name) { this.name = name; } @Override public void execute() { Player player = Globals.getOnlinePlayerService().getPlayerByPassportId(passportId); if(player != null){ Globals.getSlotRoomService().sendRoomMessage2(player, playerId, img, countries, level,name); } } }
[ "npf888@126.com" ]
npf888@126.com
015445585d0bdc851f07fe39d5cfc62c6c7681b4
26da0aea2ab0a2266bbee962d94a96d98a770e5f
/aries/tx-manager/tx-manager-base/src/main/java/org/aries/tx/util/TransportTimer.java
72fbd3c3c8a539e51e7ae1dcc0c4820e4f0ee8eb
[ "Apache-2.0" ]
permissive
tfisher1226/ARIES
1de2bc076cf83488703cf18f7e3f6e3c5ef1b40b
814e3a4b4b48396bcd6d082e78f6519679ccaa01
refs/heads/master
2021-01-10T02:28:07.807313
2015-12-10T20:30:00
2015-12-10T20:30:00
44,076,313
2
0
null
null
null
null
UTF-8
Java
false
false
1,253
java
package org.aries.tx.util; import java.util.Timer; public class TransportTimer { private static Timer TIMER = new Timer(true); private static long TIMEOUT = 1200000;//20 min. //private static long TIMEOUT = 30000; private static long PERIOD = 5000; private static long MAX_PERIOD = 300000; // static { // setTransportPeriod(wscEnvironmentBean.getInitialTransportPeriod()); // setMaximumTransportPeriod(wscEnvironmentBean.getMaximumTransportPeriod()); // setTransportTimeout(wscEnvironmentBean.getTransportTimeout()); // } public static Timer getTimer() { return TIMER; } public static void setTransportTimeout(long timeout) { TIMEOUT = timeout; } public static long getTransportTimeout() { return TIMEOUT; } public static void setTransportPeriod(long period) { PERIOD = period; } public static long getTransportPeriod() { return PERIOD; } public static void setMaximumTransportPeriod(long period) { MAX_PERIOD = period; } public static long getMaximumTransportPeriod() { if (MAX_PERIOD < PERIOD) return PERIOD; return MAX_PERIOD; } }
[ "tfisher@kattare.com" ]
tfisher@kattare.com
8bccdd6575a5cfc688cd894798943605fe2fc7bb
2f5cd5ba8a78edcddf99c7e3c9c19829f9dbd214
/java/playgrounds/.svn/pristine/8b/8bccdd6575a5cfc688cd894798943605fe2fc7bb.svn-base
f43b56558eeee96597013072276cd9c5fe5481b5
[]
no_license
HTplex/Storage
5ff1f23dfe8c05a0a8fe5354bb6bbc57cfcd5789
e94faac57b42d6f39c311f84bd4ccb32c52c2d30
refs/heads/master
2021-01-10T17:43:20.686441
2016-04-05T08:56:57
2016-04-05T08:56:57
55,478,274
1
1
null
2020-10-28T20:35:29
2016-04-05T07:43:17
Java
UTF-8
Java
false
false
2,783
/* *********************************************************************** * * project: org.matsim.* * * * *********************************************************************** * * * * copyright : (C) 2015 by the members listed in the COPYING, * * LICENSE and WARRANTY file. * * email : info at matsim dot org * * * * *********************************************************************** * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * See also COPYING, LICENSE and WARRANTY file * * * * *********************************************************************** */ /** * */ package playground.ikaddoura.noise2.routing; import org.matsim.api.core.v01.network.Link; import org.matsim.api.core.v01.population.Person; import org.matsim.core.config.groups.PlanCalcScoreConfigGroup; import org.matsim.core.router.costcalculators.TravelDisutilityFactory; import org.matsim.core.router.util.TravelDisutility; import org.matsim.core.router.util.TravelTime; import org.matsim.vehicles.Vehicle; import playground.ikaddoura.noise2.data.NoiseContext; /** * @author ikaddoura * */ public class TollDisutilityCalculatorFactory implements TravelDisutilityFactory { private NoiseContext noiseContext; public TollDisutilityCalculatorFactory(NoiseContext noiseContext) { this.noiseContext = noiseContext; } @Override public TravelDisutility createTravelDisutility(TravelTime timeCalculator, PlanCalcScoreConfigGroup cnScoringGroup) { final TollTravelDisutilityCalculator ttdc = new TollTravelDisutilityCalculator(timeCalculator, cnScoringGroup, noiseContext); return new TravelDisutility(){ @Override public double getLinkTravelDisutility(final Link link, final double time, final Person person, final Vehicle vehicle) { double linkTravelDisutility = ttdc.getLinkTravelDisutility(link, time, person, vehicle); return linkTravelDisutility; } @Override public double getLinkMinimumTravelDisutility(Link link) { return ttdc.getLinkMinimumTravelDisutility(link); } }; } }
[ "htplex@gmail.com" ]
htplex@gmail.com
c47870ba2ad1c88c288fd455974f0fbdbafbe28b
dba87418d2286ce141d81deb947305a0eaf9824f
/sources/com/iaai/android/bdt/feature/login/BDTLoginActivity$subscribeToViewModel$6.java
8e16fdb11b38b14a2073bd47bceb36ecbfb28e60
[]
no_license
Sluckson/copyOavct
1f73f47ce94bb08df44f2ba9f698f2e8589b5cf6
d20597e14411e8607d1d6e93b632d0cd2e8af8cb
refs/heads/main
2023-03-09T12:14:38.824373
2021-02-26T01:38:16
2021-02-26T01:38:16
341,292,450
0
1
null
null
null
null
UTF-8
Java
false
false
2,649
java
package com.iaai.android.bdt.feature.login; import android.content.Intent; import android.util.Log; import androidx.lifecycle.Observer; import com.iaai.android.bdt.feature.login.emailValidation.EmailConfirmationActivity; import com.iaai.android.bdt.utils.ActivityRequestCode; import com.iaai.android.bdt.utils.Constants_MVVM; import com.iaai.android.old.utils.IAASharedPreference; import kotlin.Metadata; import kotlin.jvm.internal.Intrinsics; @Metadata(mo66931bv = {1, 0, 3}, mo66932d1 = {"\u0000\u0010\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0003\u0010\u0000\u001a\u00020\u00012\u000e\u0010\u0002\u001a\n \u0004*\u0004\u0018\u00010\u00030\u0003H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, mo66933d2 = {"<anonymous>", "", "it", "", "kotlin.jvm.PlatformType", "onChanged", "(Ljava/lang/Boolean;)V"}, mo66934k = 3, mo66935mv = {1, 1, 13}) /* compiled from: BDTLoginActivity.kt */ final class BDTLoginActivity$subscribeToViewModel$6<T> implements Observer<Boolean> { final /* synthetic */ BDTLoginActivity this$0; BDTLoginActivity$subscribeToViewModel$6(BDTLoginActivity bDTLoginActivity) { this.this$0 = bDTLoginActivity; } public final void onChanged(Boolean bool) { String tag = this.this$0.getTAG(); Log.e(tag, "valid email success: " + bool); Intrinsics.checkExpressionValueIsNotNull(bool, "it"); if (bool.booleanValue()) { SessionManager sessionManager = this.this$0.getSessionManager(); BDTLoginActivity bDTLoginActivity = this.this$0; sessionManager.setLoginResponseOnSuccess(bDTLoginActivity, BDTLoginActivity.access$getLoginResponse$p(bDTLoginActivity), this.this$0.getUsername(), this.this$0.getPassword()); if (!IAASharedPreference.getTncFlagFromPrefs(this.this$0)) { Intent intent = new Intent(this.this$0, BDTTermsOfUseActivity.class); intent.putExtra("come_from", TermsOfUseOrigin.FROM_LOGIN.getValue()); this.this$0.startActivityForResult(intent, ActivityRequestCode.FROM_LOGIN_TO_TERMS_AND_CONDITIONS.getValue()); return; } this.this$0.getViewModel().getTermsOfUseAuctionRule(this.this$0.getUsername(), this.this$0.getPassword()); return; } Intent intent2 = new Intent(this.this$0, EmailConfirmationActivity.class); intent2.putExtra("userID", this.this$0.getUserId()); intent2.putExtra(Constants_MVVM.EXTRA_EMAIL_ID, this.this$0.getUsername()); this.this$0.startActivityForResult(intent2, ActivityRequestCode.FROM_LOGIN_TO_EMAIL_CONFIRMATION.getValue()); } }
[ "lucksonsurprice94@gmail.com" ]
lucksonsurprice94@gmail.com
5346d313ebb3078aa09a336284e9131e3add76bb
b7eaee59de6561fca1a70ba7e2c55f9237d7195d
/EclipsePlugins/dr/info.remenska.myFirstPlugin/src/info/remenska/myfirstplugin/PerspectiveFactory3.java
50d0a2cab04e970cfb9dd39ac802f16c2d45a3dc
[]
no_license
remenska/PropertySpecification
9a6ca4a354999358b32f4368760be06ea8808324
4114c2517b2350967051df1eef1aa76056899bb5
refs/heads/master
2021-01-25T08:37:08.748737
2013-11-01T11:35:12
2013-11-01T11:35:12
null
0
0
null
null
null
null
UTF-8
Java
false
false
652
java
package info.remenska.myfirstplugin; import org.eclipse.ui.IFolderLayout; import org.eclipse.ui.IPageLayout; import org.eclipse.ui.IPerspectiveFactory; public class PerspectiveFactory3 implements IPerspectiveFactory { private static final String VIEW_ID = "info.remenska.myFirstPlugin.ResourceManagerView"; private static final String BOTTOM = "bottom"; @Override public void createInitialLayout(IPageLayout layout) { layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.LEFT, 0.30f, layout.getEditorArea()); IFolderLayout bot = layout.createFolder(BOTTOM, IPageLayout.BOTTOM, 0.76f, layout.getEditorArea()); bot.addView(VIEW_ID); } }
[ "remenska@gmail.com" ]
remenska@gmail.com
516c67924369b227279206f8dcf3a4fa7ccb75e1
f6899a2cf1c10a724632bbb2ccffb7283c77a5ff
/glassfish/common/amx-config/src/main/java/org/glassfish/admin/amx/intf/config/ClusterRef.java
0cc45a01c5337ef4ca55f4c856ad4d1a9f8993ea
[]
no_license
Appdynamics/OSS
a8903058e29f4783e34119a4d87639f508a63692
1e112f8854a25b3ecf337cad6eccf7c85e732525
refs/heads/master
2023-07-22T03:34:54.770481
2021-10-28T07:01:57
2021-10-28T07:01:57
19,390,624
2
13
null
2023-07-08T02:26:33
2014-05-02T22:42:20
null
UTF-8
Java
false
false
2,452
java
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 2011 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution License("CDDL") (collectively, the "License"). You * may not use this file except in compliance with the License. You can * obtain a copy of the License at * https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html * or packager/legal/LICENSE.txt. See the License for the specific * language governing permissions and limitations under the License. * * When distributing the software, include this License Header Notice in each * file and include the License file at packager/legal/LICENSE.txt. * * GPL Classpath Exception: * Oracle designates this particular file as subject to the "Classpath" * exception as provided by Oracle in the GPL Version 2 section of the License * file that accompanied this code. * * Modifications: * If applicable, add the following below the License Header, with the fields * enclosed by brackets [] replaced by your own identifying information: * "Portions Copyright [year] [name of copyright owner]" * * Contributor(s): * If you wish your version of this file to be governed by only the CDDL or * only the GPL Version 2, indicate your decision by adding "[Contributor] * elects to include this software in this distribution under the [CDDL or GPL * Version 2] license." If you don't indicate a single choice of license, a * recipient has the option to distribute your version of this file under * either the CDDL, the GPL Version 2 or to extend the choice of license to * its licensees as provided above. However, if you add GPL Version 2 code * and therefore, elected the GPL Version 2 license, then the option applies * only if the new code is made subject to such option by the copyright * holder. */ package org.glassfish.admin.amx.intf.config; @Deprecated public interface ClusterRef extends HealthCheckerCR, Ref { public String getRef(); public void setRef(String param1); public HealthChecker getHealthChecker(); public void setHealthChecker(HealthChecker param1); public String getLbPolicy(); public void setLbPolicy(String param1); public String getLbPolicyModule(); public void setLbPolicyModule(String param1); }
[ "srini@appdynamics.com" ]
srini@appdynamics.com
b1c8c02e7d042094ba6991728854f24231ae30b3
f567c98cb401fc7f6ad2439cd80c9bcb45e84ce9
/src/main/java/com/alipay/api/domain/AlipayGongyiUserInfoTest.java
9e27e8f4e2eee0918f61f10d827eea09bee7f0b0
[ "Apache-2.0" ]
permissive
XuYingJie-cmd/alipay-sdk-java-all
0887fa02f857dac538e6ea7a72d4d9279edbe0f3
dd18a679f7543a65f8eba2467afa0b88e8ae5446
refs/heads/master
2023-07-15T23:01:02.139231
2021-09-06T07:57:09
2021-09-06T07:57:09
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,088
java
package com.alipay.api.domain; import java.util.Date; import java.util.List; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.internal.mapping.ApiListField; /** * 公奕测试 * * @author auto create * @since 1.0, 2020-06-10 10:14:01 */ public class AlipayGongyiUserInfoTest extends AlipayObject { private static final long serialVersionUID = 1644913696291729864L; /** * 地址信息 */ @ApiField("address") private AlipayGongyiAddressTest address; /** * 10 */ @ApiField("age") private Long age; /** * 1912-12-12 */ @ApiField("birthday") private Date birthday; /** * 上海,杭州 */ @ApiListField("citys") @ApiField("string") private List<String> citys; /** * 1001 */ @ApiField("code") private String code; /** * zhangsan */ @ApiField("name") private String name; /** * 学校地址列表 */ @ApiListField("school_list") @ApiField("alipay_gongyi_address_test") private List<AlipayGongyiAddressTest> schoolList; public AlipayGongyiAddressTest getAddress() { return this.address; } public void setAddress(AlipayGongyiAddressTest address) { this.address = address; } public Long getAge() { return this.age; } public void setAge(Long age) { this.age = age; } public Date getBirthday() { return this.birthday; } public void setBirthday(Date birthday) { this.birthday = birthday; } public List<String> getCitys() { return this.citys; } public void setCitys(List<String> citys) { this.citys = citys; } public String getCode() { return this.code; } public void setCode(String code) { this.code = code; } public String getName() { return this.name; } public void setName(String name) { this.name = name; } public List<AlipayGongyiAddressTest> getSchoolList() { return this.schoolList; } public void setSchoolList(List<AlipayGongyiAddressTest> schoolList) { this.schoolList = schoolList; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
5d6c4c7360d2b12fc93fee81667b24adf90facbf
022980735384919a0e9084f57ea2f495b10c0d12
/src/ext-cttdt-lltnxp/ext-service/src/com/sgs/portlet/document/receipt/NoSuchPmlEdmDocumentReceiptException.java
03cfed9b8dbe4604d6cbb6cb05a479208da81173
[]
no_license
thaond/nsscttdt
474d8e359f899d4ea6f48dd46ccd19bbcf34b73a
ae7dacc924efe578ce655ddfc455d10c953abbac
refs/heads/master
2021-01-10T03:00:24.086974
2011-02-19T09:18:34
2011-02-19T09:18:34
50,081,202
0
0
null
null
null
null
UTF-8
Java
false
false
1,823
java
/** * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ package com.sgs.portlet.document.receipt; import com.liferay.portal.PortalException; /** * <a href="NoSuchPmlEdmDocumentReceiptException.java.html"><b><i>View Source</i></b></a> * * @author Brian Wing Shun Chan * */ public class NoSuchPmlEdmDocumentReceiptException extends PortalException { public NoSuchPmlEdmDocumentReceiptException() { super(); } public NoSuchPmlEdmDocumentReceiptException(String msg) { super(msg); } public NoSuchPmlEdmDocumentReceiptException(String msg, Throwable cause) { super(msg, cause); } public NoSuchPmlEdmDocumentReceiptException(Throwable cause) { super(cause); } }
[ "nguyentanmo@843501e3-6f96-e689-5e61-164601347e4e" ]
nguyentanmo@843501e3-6f96-e689-5e61-164601347e4e
1ea3da4ad1276fb539db7035739f7dfdf0361312
028cbe18b4e5c347f664c592cbc7f56729b74060
/v2/appserv-tests/devtests/transaction/txnegative/client/Client.java
47fbd33635f59fa6375de69139636f4f13fbf430
[]
no_license
dmatej/Glassfish-SVN-Patched
8d355ff753b23a9a1bd9d7475fa4b2cfd3b40f9e
269e29ba90db6d9c38271f7acd2affcacf2416f1
refs/heads/master
2021-05-28T12:55:06.267463
2014-11-11T04:21:44
2014-11-11T04:21:44
23,610,469
1
0
null
null
null
null
UTF-8
Java
false
false
5,792
java
package com.sun.s1peqe.transaction.txnegative.client; /* * Client.java * */ import javax.naming.*; import javax.rmi.PortableRemoteObject; import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; import javax.transaction.*; public class Client { public SimpleReporterAdapter status; private UserTransaction userTransaction; public Client() { status = new SimpleReporterAdapter("appserv-tests"); try{ userTransaction = (UserTransaction) new InitialContext().lookup("java:comp/UserTransaction"); }catch(Exception ex) { ex.printStackTrace(); } } public static void main(String[] args) { System.out.println("\nStarting Txglobal Test Suite"); Client client = new Client(); // run the tests client.runTestClient(); } public void runTestClient() { status.addDescription("This is to test the valid transaction exception!"); try { System.out.println("START"); /*Context initial = new InitialContext(); Object objref = initial.lookup("java:comp/env/ejb/TestHung"); com.sun.s1peqe.transaction.txnegative.ejb.test.TestHome thome = (com.sun.s1peqe.transaction.txhung.ejb.test.TestHome)PortableRemoteObject.narrow(objref, TestHome.class); com.sun.s1peqe.transaction.txnegative.ejb.test.TestRemote t = thome.create(); boolean result=false; boolean xa = true; boolean nonxa = false; try { result = t.testA1(xa); System.out.println("TEST FAILED"); } catch (javax.ejb.CreateException e) { System.out.println("CreateException"); System.out.println("TEST FAILED"); } catch (Exception e) { System.out.println("TEST PASSED"); } if (!result) { status.addStatus("txnegative testA1 ", status.PASS); } else { status.addStatus("txnegative testA1 ", status.FAIL); } result = false; try { result = t.testA1(nonxa); System.out.println("TEST FAILED"); } catch (javax.ejb.CreateException e) { System.out.println("CreateException"); System.out.println("TEST FAILED"); } catch (Exception e) { System.out.println("TEST PASSED"); } if (!result) { status.addStatus("txnegative testA2 ", status.PASS); } else { status.addStatus("txnegative testA2 ", status.FAIL); }*/ boolean result=false; try { userTransaction.begin(); userTransaction.begin(); System.out.println("TEST FAILED"); } catch (NotSupportedException ne) { System.out.println("NotSupportedException"); System.out.println("TEST PASSED"); result = true; } catch (SystemException ne) { System.out.println("SystemException"); System.out.println("TEST PASSED"); result = true; } catch (Exception e) { e.printStackTrace(); System.out.println("TEST FAILED"); } if (result) { status.addStatus("txnegative t1 ", status.PASS); } else { status.addStatus("txnegative t1 ", status.FAIL); } result = false; try { userTransaction.commit(); System.out.println("TEST FAILED"); } catch (IllegalStateException ne) { System.out.println("IllegalStateException"); System.out.println("TEST PASSED"); result = true; } catch (SystemException ne) { System.out.println("SystemException"); System.out.println("TEST PASSED"); result = true; } catch (Exception e) { e.printStackTrace(); System.out.println("TEST FAILED"); } if (result) { status.addStatus("txnegative t2 ", status.PASS); } else { status.addStatus("txnegative t2 ", status.FAIL); } result = false; try { userTransaction.rollback(); System.out.println("TEST FAILED"); } catch (IllegalStateException ne) { System.out.println("IllegalStateException"); System.out.println("TEST PASSED"); result = true; } catch (SystemException ne) { System.out.println("SystemException"); System.out.println("TEST PASSED"); result = true; } catch (Exception e) { e.printStackTrace(); System.out.println("TEST FAILED"); } if (result) { status.addStatus("txnegative t3 ", status.PASS); } else { status.addStatus("txnegative t3 ", status.FAIL); } result = false; try { userTransaction.setRollbackOnly(); System.out.println("TEST FAILED"); } catch (IllegalStateException ne) { System.out.println("IllegalStateException"); System.out.println("TEST PASSED"); result = true; } catch (SystemException ne) { System.out.println("SystemException"); System.out.println("TEST PASSED"); result = true; } catch (Exception e) { e.printStackTrace(); System.out.println("TEST FAILED"); } if (result) { status.addStatus("txnegative t4 ", status.PASS); } else { status.addStatus("txnegative t4 ", status.FAIL); } System.out.println("FINISH"); status.printSummary("txglobalID"); } catch (Exception ex) { System.err.println("Caught an exception:"); ex.printStackTrace(); status.addStatus("txnegative testA1 ", status.FAIL); } } }
[ "kohsuke@6f3ba3e3-413c-0410-a8aa-90bee3ab43b5" ]
kohsuke@6f3ba3e3-413c-0410-a8aa-90bee3ab43b5
0d6b2f882601c0ce36d510ecef8cd866014ee93c
11f60262a3cb72653d20e07e18d2b03d65fc4670
/apollo_mq/apollo-core/src/main/java/com/fangcang/supplier/request/SupplyListQueryRequestDTO.java
796c6baa7d34314082c54c77afad36d60a45bd10
[ "Apache-2.0" ]
permissive
GSIL-Monitor/hotel-1
59812e7c3983a9b6db31f7818f93d7b3a6ac683c
4d170c01a86a23ebf3378d906cac4641ba1aefa9
refs/heads/master
2020-04-12T18:29:14.914311
2018-12-21T07:03:37
2018-12-21T07:03:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,109
java
package com.fangcang.supplier.request; import com.fangcang.common.BaseQueryConditionDTO; import lombok.Data; import java.io.Serializable; /** * @Auther: yanming.li@fangcang.com * @Date: 2018/5/23 16:23 * @Description: */ @Data public class SupplyListQueryRequestDTO extends BaseQueryConditionDTO implements Serializable { private static final long serialVersionUID = -4618116426319321438L; /** supplyCode为空时,使用名称模糊匹配 */ private String supplyName; /** supplyCode不为空时,不使用supplyName查询 */ private String supplyCode; /** * 0-停用;1-启用;空表示全部 */ private Integer isActive; /** * 商家ID */ private Long merchantId; /** * 业务经理ID */ private Long merchantBM; /** * 城市名 */ private String cityName; /** * 城市编码 */ private String cityCode; /** * 业务经理名 */ private String merchantBMName; /** * 合作预警 */ private Integer cooperationStatus; }
[ "961346704@qq.com" ]
961346704@qq.com
3662125c036f0a6c31120e9fb6df051febfb6a6c
0a91b205817956abfd4d59f8db54626980de551b
/TravelGoodREST/TravelGoodRESTClient/src/ws/dtu/utils/Constants.java
fe5c56f3843bc6a043131110389d5dc370500bd3
[]
no_license
sp3r6ain/REST-vs-BPEL
92c0703d9b8cf2b14e9bbe967300a1dcefe847e9
c4c2ea0b3e7037d34eacd233c424d988b721f256
refs/heads/master
2021-01-01T06:51:55.925453
2015-10-17T20:37:27
2015-10-17T20:37:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,629
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ws.dtu.utils; /** * * @author miguel */ public interface Constants { public static final String DATE_FORMAT = "dd/MM/yyyy"; public static final String MSG_ITINERARY_NOT_FOUND = "Itinerary not found"; public static final String MSG_NULL_USER = "Not a valid username"; public static final String MSG_FLIGHT_NOT_FOUND = "Flight not found"; public static final String MSG_NO_FLIGHT_FOUND = "No flight was found"; public static final String MSG_NO_HOTEL_FOUND = "No hotel was found"; public static final String STATUS_UNCONFIRMED = "unconfirmed"; public static final String STATUS_CONFIRMED = "confirmed"; public static final String STATUS_CANCELLED = "cancelled"; public static final String MEDIATYPE_XML = "application/travelgoodrest+xml"; /** * URIs to access the resources */ public static final String BASE_URI = "http://localhost:8070/TravelGoodREST/webresources/"; public static final String BASE_ITINERARIES_URI = Constants.BASE_URI+"itineraries"; public static final String BASE_FLIGHT_URI = "http://localhost:8070/TravelGoodREST/webresources/flights"; public static final String BASE_HOTEL_URI = "http://localhost:8070/TravelGoodREST/webresources/hotels"; public static final String BASE_LOGIN_URI = Constants.BASE_URI+"login"; /** * Relations to access the itinerary resource */ public static final String RELATION_ITINERARIES_BASE = "http://itineraries.ws/relations/"; public static final String ITINERARY_RELATION = Constants.RELATION_ITINERARIES_BASE + "itinerary"; public static final String CANCEL_RELATION = Constants.RELATION_ITINERARIES_BASE + "cancel"; public static final String FLIGHTADD_RELATION = Constants.RELATION_ITINERARIES_BASE + "flightadd"; public static final String HOTELADD_RELATION = Constants.RELATION_ITINERARIES_BASE + "hoteladd"; public static final String BOOKITINERARY_RELATION = Constants.RELATION_ITINERARIES_BASE + "book"; /** * Relations to access the flights resource */ public static final String RELATION_FLIGHTS_BASE = "http://flights.ws/relations/"; public static final String GETFLIGHT_RELATION = Constants.RELATION_FLIGHTS_BASE + "getflight"; /** * Relations to access the hotels resources */ public static final String RELATION_HOTELS_BASE = "http://hotels.ws/relations/"; public static final String GETHOTEL_RELATION = Constants.RELATION_HOTELS_BASE + "gethotel"; }
[ "masterkai_1977@hotmail.com" ]
masterkai_1977@hotmail.com
cb4584140487fb434d3639f7f005aff7032b5f40
9b64a0b050ef3b3b56902bac71ce5a8f810c6f4d
/torque-generator/src/main/java/org/apache/torque/engine/platform/PlatformMssqlImpl.java
12abc89fb0715fbe41b8ea43ed83a69aaa31a1f6
[ "Apache-2.0" ]
permissive
yin-bp/torque
6e9f32125a59d13a06b5589acc4b43543e7998c1
dd270c17d23d529e008dacfb5532309a9ab86283
refs/heads/master
2023-08-23T07:05:26.052960
2023-08-08T07:53:49
2023-08-08T07:53:49
8,844,690
0
0
null
2021-04-18T10:17:04
2013-03-18T01:23:38
Java
UTF-8
Java
false
false
3,143
java
package org.apache.torque.engine.platform; /* * 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 org.apache.torque.engine.database.model.Domain; import org.apache.torque.engine.database.model.SchemaType; /** * MS SQL Platform implementation. * * @author <a href="mailto:mpoeschl@marmot.at">Martin Poeschl</a> * @author <a href="mailto:greg.monroe@dukece.com">Greg Monroe</a> * @version $Id: PlatformMssqlImpl.java 473814 2006-11-11 22:30:30Z tv $ */ public class PlatformMssqlImpl extends PlatformDefaultImpl { /** * Default constructor. */ public PlatformMssqlImpl() { super(); initialize(); } /** * Initializes db specific domain mapping. */ private void initialize() { setSchemaDomainMapping(new Domain(SchemaType.INTEGER, "INT")); setSchemaDomainMapping(new Domain(SchemaType.BOOLEANINT, "INT")); setSchemaDomainMapping(new Domain(SchemaType.DOUBLE, "FLOAT")); setSchemaDomainMapping(new Domain(SchemaType.LONGVARCHAR, "TEXT")); setSchemaDomainMapping(new Domain(SchemaType.DATE, "DATETIME")); setSchemaDomainMapping(new Domain(SchemaType.TIME, "DATETIME")); setSchemaDomainMapping(new Domain(SchemaType.TIMESTAMP, "DATETIME")); setSchemaDomainMapping(new Domain(SchemaType.BINARY, "BINARY(7132)")); setSchemaDomainMapping(new Domain(SchemaType.VARBINARY, "IMAGE")); setSchemaDomainMapping(new Domain(SchemaType.LONGVARBINARY, "IMAGE")); setSchemaDomainMapping(new Domain(SchemaType.BLOB, "IMAGE")); setSchemaDomainMapping(new Domain(SchemaType.CLOB, "TEXT")); } /** * @see Platform#getMaxColumnNameLength() */ public int getMaxColumnNameLength() { return 30; } /** * @return Explicitly returns <code>NULL</code> if null values are * allowed (as recomended by Microsoft). * @see Platform#getNullString(boolean) */ public String getNullString(Domain domain,boolean notNull) { return (notNull ? "NOT NULL" : "NULL"); } public String handleColumnName(String columnName) { if(inkeys(columnName,keys)) { return "[" + columnName + "]"; } else return columnName; } }
[ "yin-bp@163.com" ]
yin-bp@163.com
b23a68966c69a4a225868917cd75db74dcb00bf0
66caf76d7a0ac2a151905db115a173e0ce13b4b5
/base/src/com/google/idea/blaze/base/ide/NewBlazePackageDialog.java
7317f31c9f08309dde893adf228481780b9e8a3d
[ "Apache-2.0" ]
permissive
hakanerp/bazel-intellij
ffcadc00a4eb90370d36bc11fc5e42f22f64d9f7
e6b919a16092b5463872d26f3d532ead5ddb64e5
refs/heads/master
2021-01-20T03:06:43.859950
2017-05-19T16:37:00
2017-05-19T16:37:00
89,496,890
0
0
null
null
null
null
UTF-8
Java
false
false
5,259
java
/* * Copyright 2016 The Bazel Authors. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.idea.blaze.base.ide; import com.google.common.collect.Lists; import com.google.idea.blaze.base.model.primitives.Kind; import com.google.idea.blaze.base.model.primitives.Label; import com.google.idea.blaze.base.model.primitives.TargetName; import com.google.idea.blaze.base.model.primitives.WorkspacePath; import com.google.idea.blaze.base.model.primitives.WorkspaceRoot; import com.google.idea.blaze.base.ui.BlazeValidationError; import com.google.idea.blaze.base.ui.UiUtil; import com.intellij.CommonBundle; import com.intellij.ide.IdeBundle; import com.intellij.ide.actions.CreateElementActionBase; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.project.Project; import com.intellij.openapi.ui.DialogWrapper; import com.intellij.openapi.ui.Messages; import com.intellij.openapi.ui.ValidationInfo; import com.intellij.psi.PsiDirectory; import com.intellij.ui.components.JBLabel; import com.intellij.ui.components.JBTextField; import com.intellij.util.IncorrectOperationException; import java.awt.GridBagLayout; import java.io.File; import java.util.List; import javax.annotation.Nullable; import javax.swing.Icon; import javax.swing.JComponent; import javax.swing.JPanel; import org.jetbrains.annotations.NotNull; class NewBlazePackageDialog extends DialogWrapper { private static final Logger logger = Logger.getInstance(NewBlazePackageDialog.class); @NotNull private final Project project; @NotNull private final PsiDirectory parentDirectory; @Nullable private Label newRule; @Nullable private Kind newRuleKind; private static final int UI_INDENT_LEVEL = 0; private static final int TEXT_FIELD_LENGTH = 40; @NotNull private final JPanel component = new JPanel(new GridBagLayout()); @NotNull private final JBLabel packageLabel = new JBLabel("Package name:"); @NotNull private final JBTextField packageNameField = new JBTextField(TEXT_FIELD_LENGTH); @NotNull private final NewRuleUI newRuleUI = new NewRuleUI(TEXT_FIELD_LENGTH); public NewBlazePackageDialog(@NotNull Project project, @NotNull PsiDirectory currentDirectory) { super(project); this.project = project; this.parentDirectory = currentDirectory; initializeUI(); } private void initializeUI() { component.add(packageLabel); component.add(packageNameField, UiUtil.getFillLineConstraints(UI_INDENT_LEVEL)); newRuleUI.fillUI(component, UI_INDENT_LEVEL); UiUtil.fillBottom(component); init(); } @Nullable @Override protected JComponent createCenterPanel() { return component; } @Nullable @Override protected ValidationInfo doValidate() { String packageName = packageNameField.getText(); if (packageName == null) { return new ValidationInfo("Internal error, package was null"); } if (packageName.length() == 0) { return new ValidationInfo( IdeBundle.message("error.name.should.be.specified"), packageNameField); } List<BlazeValidationError> errors = Lists.newArrayList(); if (!Label.validatePackagePath(packageName, errors)) { BlazeValidationError validationResult = errors.get(0); return new ValidationInfo(validationResult.getError(), packageNameField); } return newRuleUI.validate(); } @Override protected void doOKAction() { WorkspaceRoot workspaceRoot = WorkspaceRoot.fromProject(project); logger.assertTrue(parentDirectory.getVirtualFile().isInLocalFileSystem()); File parentDirectoryFile = new File(parentDirectory.getVirtualFile().getPath()); String newPackageName = packageNameField.getText(); File newPackageDirectory = new File(parentDirectoryFile, newPackageName); WorkspacePath newPackagePath = workspaceRoot.workspacePathFor(newPackageDirectory); TargetName newTargetName = newRuleUI.getRuleName(); Label newRule = Label.create(newPackagePath, newTargetName); Kind ruleKind = newRuleUI.getSelectedRuleKind(); try { parentDirectory.checkCreateSubdirectory(newPackageName); } catch (IncorrectOperationException ex) { showErrorDialog(CreateElementActionBase.filterMessage(ex.getMessage())); // do not close the dialog return; } this.newRule = newRule; this.newRuleKind = ruleKind; super.doOKAction(); } private void showErrorDialog(@NotNull String message) { String title = CommonBundle.getErrorTitle(); Icon icon = Messages.getErrorIcon(); Messages.showMessageDialog(component, message, title, icon); } @Nullable public Label getNewRule() { return newRule; } @Nullable public Kind getNewRuleKind() { return newRuleKind; } }
[ "brendandouglas@google.com" ]
brendandouglas@google.com
5cf67a25cff8799866b0a421a52e67ca1c77512c
5d76b555a3614ab0f156bcad357e45c94d121e2d
/src/com/fasterxml/jackson/databind/ser/impl/SimpleBeanPropertyFilter.java
7440fb534e53d6ead0b8a5c0d63d838dbfe98391
[]
no_license
BinSlashBash/xcrumby
8e09282387e2e82d12957d22fa1bb0322f6e6227
5b8b1cc8537ae1cfb59448d37b6efca01dded347
refs/heads/master
2016-09-01T05:58:46.144411
2016-02-15T13:23:25
2016-02-15T13:23:25
51,755,603
5
1
null
null
null
null
UTF-8
Java
false
false
7,914
java
package com.fasterxml.jackson.databind.ser.impl; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonObjectFormatVisitor; import com.fasterxml.jackson.databind.node.ObjectNode; import com.fasterxml.jackson.databind.ser.BeanPropertyFilter; import com.fasterxml.jackson.databind.ser.BeanPropertyWriter; import com.fasterxml.jackson.databind.ser.PropertyFilter; import com.fasterxml.jackson.databind.ser.PropertyWriter; import java.io.Serializable; import java.util.Collections; import java.util.HashSet; import java.util.Set; public abstract class SimpleBeanPropertyFilter implements BeanPropertyFilter, PropertyFilter { public static SimpleBeanPropertyFilter filterOutAllExcept(Set<String> paramSet) { return new FilterExceptFilter(paramSet); } public static SimpleBeanPropertyFilter filterOutAllExcept(String... paramVarArgs) { HashSet localHashSet = new HashSet(paramVarArgs.length); Collections.addAll(localHashSet, paramVarArgs); return new FilterExceptFilter(localHashSet); } public static PropertyFilter from(BeanPropertyFilter paramBeanPropertyFilter) { new PropertyFilter() { public void depositSchemaProperty(PropertyWriter paramAnonymousPropertyWriter, JsonObjectFormatVisitor paramAnonymousJsonObjectFormatVisitor, SerializerProvider paramAnonymousSerializerProvider) throws JsonMappingException { this.val$src.depositSchemaProperty((BeanPropertyWriter)paramAnonymousPropertyWriter, paramAnonymousJsonObjectFormatVisitor, paramAnonymousSerializerProvider); } public void depositSchemaProperty(PropertyWriter paramAnonymousPropertyWriter, ObjectNode paramAnonymousObjectNode, SerializerProvider paramAnonymousSerializerProvider) throws JsonMappingException { this.val$src.depositSchemaProperty((BeanPropertyWriter)paramAnonymousPropertyWriter, paramAnonymousObjectNode, paramAnonymousSerializerProvider); } public void serializeAsElement(Object paramAnonymousObject, JsonGenerator paramAnonymousJsonGenerator, SerializerProvider paramAnonymousSerializerProvider, PropertyWriter paramAnonymousPropertyWriter) throws Exception { throw new UnsupportedOperationException(); } public void serializeAsField(Object paramAnonymousObject, JsonGenerator paramAnonymousJsonGenerator, SerializerProvider paramAnonymousSerializerProvider, PropertyWriter paramAnonymousPropertyWriter) throws Exception { this.val$src.serializeAsField(paramAnonymousObject, paramAnonymousJsonGenerator, paramAnonymousSerializerProvider, (BeanPropertyWriter)paramAnonymousPropertyWriter); } }; } public static SimpleBeanPropertyFilter serializeAllExcept(Set<String> paramSet) { return new SerializeExceptFilter(paramSet); } public static SimpleBeanPropertyFilter serializeAllExcept(String... paramVarArgs) { HashSet localHashSet = new HashSet(paramVarArgs.length); Collections.addAll(localHashSet, paramVarArgs); return new SerializeExceptFilter(localHashSet); } @Deprecated public void depositSchemaProperty(BeanPropertyWriter paramBeanPropertyWriter, JsonObjectFormatVisitor paramJsonObjectFormatVisitor, SerializerProvider paramSerializerProvider) throws JsonMappingException { if (include(paramBeanPropertyWriter)) { paramBeanPropertyWriter.depositSchemaProperty(paramJsonObjectFormatVisitor); } } @Deprecated public void depositSchemaProperty(BeanPropertyWriter paramBeanPropertyWriter, ObjectNode paramObjectNode, SerializerProvider paramSerializerProvider) throws JsonMappingException { if (include(paramBeanPropertyWriter)) { paramBeanPropertyWriter.depositSchemaProperty(paramObjectNode, paramSerializerProvider); } } public void depositSchemaProperty(PropertyWriter paramPropertyWriter, JsonObjectFormatVisitor paramJsonObjectFormatVisitor, SerializerProvider paramSerializerProvider) throws JsonMappingException { if (include(paramPropertyWriter)) { paramPropertyWriter.depositSchemaProperty(paramJsonObjectFormatVisitor); } } @Deprecated public void depositSchemaProperty(PropertyWriter paramPropertyWriter, ObjectNode paramObjectNode, SerializerProvider paramSerializerProvider) throws JsonMappingException { if (include(paramPropertyWriter)) { paramPropertyWriter.depositSchemaProperty(paramObjectNode, paramSerializerProvider); } } protected abstract boolean include(BeanPropertyWriter paramBeanPropertyWriter); protected abstract boolean include(PropertyWriter paramPropertyWriter); protected boolean includeElement(Object paramObject) { return true; } public void serializeAsElement(Object paramObject, JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider, PropertyWriter paramPropertyWriter) throws Exception { if (includeElement(paramObject)) { paramPropertyWriter.serializeAsElement(paramObject, paramJsonGenerator, paramSerializerProvider); } } @Deprecated public void serializeAsField(Object paramObject, JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider, BeanPropertyWriter paramBeanPropertyWriter) throws Exception { if (include(paramBeanPropertyWriter)) { paramBeanPropertyWriter.serializeAsField(paramObject, paramJsonGenerator, paramSerializerProvider); } while (paramJsonGenerator.canOmitFields()) { return; } paramBeanPropertyWriter.serializeAsOmittedField(paramObject, paramJsonGenerator, paramSerializerProvider); } public void serializeAsField(Object paramObject, JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider, PropertyWriter paramPropertyWriter) throws Exception { if (include(paramPropertyWriter)) { paramPropertyWriter.serializeAsField(paramObject, paramJsonGenerator, paramSerializerProvider); } while (paramJsonGenerator.canOmitFields()) { return; } paramPropertyWriter.serializeAsOmittedField(paramObject, paramJsonGenerator, paramSerializerProvider); } public static class FilterExceptFilter extends SimpleBeanPropertyFilter implements Serializable { private static final long serialVersionUID = 1L; protected final Set<String> _propertiesToInclude; public FilterExceptFilter(Set<String> paramSet) { this._propertiesToInclude = paramSet; } protected boolean include(BeanPropertyWriter paramBeanPropertyWriter) { return this._propertiesToInclude.contains(paramBeanPropertyWriter.getName()); } protected boolean include(PropertyWriter paramPropertyWriter) { return this._propertiesToInclude.contains(paramPropertyWriter.getName()); } } public static class SerializeExceptFilter extends SimpleBeanPropertyFilter implements Serializable { private static final long serialVersionUID = 1L; protected final Set<String> _propertiesToExclude; public SerializeExceptFilter(Set<String> paramSet) { this._propertiesToExclude = paramSet; } protected boolean include(BeanPropertyWriter paramBeanPropertyWriter) { return !this._propertiesToExclude.contains(paramBeanPropertyWriter.getName()); } protected boolean include(PropertyWriter paramPropertyWriter) { return !this._propertiesToExclude.contains(paramPropertyWriter.getName()); } } } /* Location: /home/dev/Downloads/apk/dex2jar-2.0/crumby-dex2jar.jar!/com/fasterxml/jackson/databind/ser/impl/SimpleBeanPropertyFilter.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "binslashbash@otaking.top" ]
binslashbash@otaking.top
2afd9b34c13976661f2812a89a9b5b8fa6d0574b
5e518e80a8be4bc6ce2d9b7067500ff71707864f
/java/spring/aggregator/boot-reactive/src/test/java/com/github/signed/sandboxes/spring/boot/echo/EchoTransferObjectTest.java
59a93d5d034e40aa207575da516fc3a23002be55
[]
no_license
signed/sandboxes
7a510b4ee421f0eb9478dac2e0f952ab6dd4ce41
a662ff7e5483b75ac52a1c356effe9bedf83b4f7
refs/heads/master
2023-08-17T04:06:51.490936
2023-08-15T19:42:55
2023-08-15T19:42:55
4,309,543
1
0
null
2014-06-01T10:01:47
2012-05-12T20:34:47
Java
UTF-8
Java
false
false
547
java
package com.github.signed.sandboxes.spring.boot.echo; import org.junit.Test; import com.fasterxml.jackson.databind.ObjectMapper; import com.github.signed.sandboxes.spring.boot.echo.api.EchoTransferObject; public class EchoTransferObjectTest { @Test public void testName() throws Exception { EchoTransferObject to = new EchoTransferObject(); to.responseDelayInMilliseconds = 2000; to.message = "the first"; String json = new ObjectMapper().writeValueAsString(to); System.out.println(json); } }
[ "thomas.heilbronner@gmail.com" ]
thomas.heilbronner@gmail.com
fa12c2da419429499ff2037051e00b1267e05ff9
a3ceb4b4dc0cfb57c742c460d5dcb6c30e238fe6
/src/main/java/br/com/anteros/persistence/metadata/annotation/SQLInsertId.java
d8ca3e89c6ff0cec6da3bb7e3d209126225422fc
[]
no_license
anterostecnologia/anterospersistencecore
40ea6d334c3161b39a5a53421c29a8272315cc5b
39fec71be92379dd9b4a1aea7abef3f400f89f52
refs/heads/master
2023-04-05T00:17:28.040989
2023-03-30T23:27:23
2023-03-30T23:27:23
56,242,755
1
1
null
2023-08-24T20:26:32
2016-04-14T14:10:07
Java
UTF-8
Java
false
false
1,194
java
/******************************************************************************* * Copyright 2012 Anteros Tecnologia * * 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 br.com.anteros.persistence.metadata.annotation; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.ElementType.TYPE; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target( {TYPE, FIELD} ) @Retention(value = RetentionPolicy.RUNTIME) public @interface SQLInsertId { String parameterId(); String columnName(); }
[ "edsonmartins2005@gmail.com" ]
edsonmartins2005@gmail.com
60beea781093000bee3760cf4e243746a4b76985
aaa9649c3e52b2bd8e472a526785f09e55a33840
/EquationBankFusionServer/src/com/misys/equation/bf/ActivityStepToolbox.java
e17215a493145f873f13a59cd595c8fb7ff6ca78
[]
no_license
jcmartin2889/Repo
dbfd02f000e65c96056d4e6bcc540e536516d775
259c51703a2a50061ad3c99b8849477130cde2f4
refs/heads/master
2021-01-10T19:34:17.555112
2014-04-29T06:01:01
2014-04-29T06:01:01
19,265,367
1
0
null
null
null
null
UTF-8
Java
false
false
7,723
java
package com.misys.equation.bf; import com.misys.equation.common.access.EquationCommonContext; import com.misys.equation.common.access.EquationSystem; import com.misys.equation.common.access.EquationUnit; import com.misys.equation.common.internal.eapi.core.EQException; import com.misys.equation.common.utilities.EqTimingTest; import com.misys.equation.common.utilities.EquationLogger; import com.misys.equation.function.context.BFEQCredentials; import com.misys.equation.function.context.EquationFunctionContext; import com.misys.equation.function.language.LanguageResources; import com.trapedza.bankfusion.servercommon.commands.BankFusionEnvironment; /** * This class is for common Activity Step code */ public class ActivityStepToolbox { // This attribute is used to store cvs version information. public static final String _revision = "$Id: ActivityStepToolbox.java 17472 2013-10-22 11:15:18Z lima12 $"; /** Logger instance */ private static final EquationLogger LOG = new EquationLogger(ActivityStepToolbox.class); /** * Get a new EQSession for a BankFusion session * * @param env * BankFusionEnvironnment * @param systemId * iSeries system * @param unitId * Equation unit id * @param bankFusionUser * BankFusion user name * @param userLocator * BankFusion user locator (session id) * @param equationIseriesProfile * - the iSeries/Equation user profile * * @return String containing the session id * * @throws EQException * @equation.external */ public static String getNewSession(BankFusionEnvironment env, String systemId, String unitId, String bankFusionUser, String userLocator, String equationIseriesProfile) throws EQException { String sessionId = null; EquationSystem equationSystem = EquationCommonContext.getContext().getEquationSystem(systemId); if (equationSystem == null) { throw new EQException("System [" + systemId + "] has not been initialised"); } // Ensure that the unit has been initialized EquationUnit unit = equationSystem.getUnit(unitId); // Note: The iSeries Profile Token obtained by BankFusion when the BankFusion session is established // may have expired. // To avoid problems with expired tokens, no password is passed to getEqSession, which will // create a completely new Profile Token BFEQCredentials credentials = new BFEQCredentials(bankFusionUser, userLocator, null); // This method is a public interface so if we have NOT arrived here via a Microflow we still need the session's real user to // be setup here as later use of the session will have errors if the real user changes if (equationIseriesProfile == null || equationIseriesProfile.equals("")) { String userId = env.getUserSession().getUserId(); LOG.info(LanguageResources.getFormattedString("ActivityStepToolbox.Updated.UserId", userId)); if (EquationCommonContext.isCASAuthentication()) { equationIseriesProfile = EquationFunctionContext.getContext().getiSeriesUserForBFUser(unit, userId); LOG.info(LanguageResources.getFormattedString("ActivityStepToolbox.Updated1.UserId", equationIseriesProfile)); } else { equationIseriesProfile = userId.toUpperCase(); LOG.info(LanguageResources.getFormattedString("ActivityStepToolbox.Updated2.UserId", equationIseriesProfile)); } } if (env != null) { LOG.info(LanguageResources.getFormattedString("ActivityStepToolbox.CreateNewSession", new String[] { systemId, unitId, bankFusionUser, userLocator, equationIseriesProfile })); sessionId = EquationFunctionContext.getContext().getEqSession(systemId, unitId, credentials, getIPAddress(env), EquationCommonContext.SESSION_BANKFUSION, equationIseriesProfile); } else { LOG.info(LanguageResources.getFormattedString("ActivityStepToolbox.CreateNewSession", new String[] { systemId, unitId, bankFusionUser, userLocator, equationIseriesProfile })); // TODO confirm what session type should be used here. sessionId = EquationFunctionContext.getContext().getEqSessionNoBankFusion(systemId, unitId, credentials, null, EquationCommonContext.SESSION_API_MODE, equationIseriesProfile); } return sessionId; } /** * Encapsulate the obtaining of a new or existing session for an ActivityStep * * @param systemId * iSeries system * @param unitId * Equation unit id * @param env * BankFusionEnvironnment * @param equationIseriesProfile * - the iSeries/Equation user profile * @param sesssionType * - session type ( ' ' - dedicated, '1' - pooled) * @param dataSourceName * - the data source to be used for pooled connections if the default pool is not to be used * * @return String containing the session id * * @throws EQException */ public static String getSession(String systemId, String unitId, BankFusionEnvironment env, String equationIseriesProfile, String sessionType, String dataSourceName) throws EQException { EqTimingTest.printStartTime("ActivityStepToolbox.getSession()", ""); String sessionId = null; if (sessionType.equals("")) { String userLocator = env.getUserLocn().getStringRepresentation(); String bankFusionUser = env.getUserSession().getUserId(); sessionId = EquationFunctionContext.getContext().getSessionId(null, userLocator); if (sessionId == null) { LOG.info(LanguageResources.getFormattedString("ActivityStepToolbox.CreateNewSession", new String[] { systemId, unitId, bankFusionUser, userLocator, equationIseriesProfile })); sessionId = getNewSession(env, systemId, unitId, bankFusionUser, userLocator, equationIseriesProfile); } else { LOG.info(LanguageResources.getFormattedString("ActivityStepToolbox.ExistingSession", new String[] { systemId, unitId, bankFusionUser, userLocator, equationIseriesProfile })); // There is an existing session, check it's valid and matches: BFEQCredentials credentials = new BFEQCredentials(bankFusionUser, userLocator, sessionId); if (!EquationFunctionContext.getContext().existingSessionMatches(systemId, unitId, credentials, equationIseriesProfile)) { // fatal error: throw new EQException("Matching session not found"); } } } else { // Missing parameters boolean xaMode = false; int internalSessionType = EquationCommonContext.SESSION_API_MODE; sessionId = EquationFunctionContext.getContext().getEqSession(dataSourceName, internalSessionType, sessionId, xaMode, equationIseriesProfile); } EqTimingTest.printTime("ActivityStepToolbox.getSession()", ""); return sessionId; } /** * Extracts an IP address from the BankFusion environment (if available) * * When called from the BFTC, the IP address is in the clientURL property in the following format: * service:jmx:jmxmp://10.113.32.126:8077 For UXP and BF WebServices, the IP address is not available. * * @param env * A BankFusionEnvinronment * @return A String containing the IP4 Address (or blank if the address could not be determined) */ private static String getIPAddress(BankFusionEnvironment env) { String result = "localhost"; String clientURL = env.getUserSession().getClientURL(); if (clientURL != null) // Will be null for UXP/WebServices { int forwardSlashesPos = clientURL.indexOf("//"); if (forwardSlashesPos > -1) { clientURL = clientURL.substring(forwardSlashesPos + 2); int portPos = clientURL.indexOf(':'); if (portPos > -1) { clientURL = clientURL.substring(0, portPos); } } result = clientURL; } return result; } }
[ "jomartin@MAN-D7R8ZYY1.misys.global.ad" ]
jomartin@MAN-D7R8ZYY1.misys.global.ad
a8a642178c2bc7f942481e07cfb5c5a4dc13fc75
6e9bba069622d0c86984d8aade7fc8fd9c2cd186
/com/mysql/cj/jdbc/JdbcStatement.java
d2d90d2c4e93eaf73c94b9fd1328dd13e5add40e
[]
no_license
savitaanuj4/EMS
117b9ee8eb703c9b2f1c85e0ca16c7248570c4db
a1519c2ef5106e53ba39c46c0e2a2fed37b9880d
refs/heads/main
2023-07-28T01:08:35.878800
2021-09-11T17:55:31
2021-09-11T17:55:31
402,878,492
0
0
null
null
null
null
UTF-8
Java
false
false
931
java
package com.mysql.cj.jdbc; import com.mysql.cj.jdbc.result.ResultSetInternalMethods; import com.mysql.cj.exceptions.ExceptionInterceptor; import com.mysql.cj.PingTarget; import java.io.InputStream; import java.sql.SQLException; import com.mysql.cj.Query; import java.sql.Statement; public interface JdbcStatement extends Statement, Query { public static final int MAX_ROWS = 50000000; void enableStreamingResults() throws SQLException; void disableStreamingResults() throws SQLException; void setLocalInfileInputStream(final InputStream p0); InputStream getLocalInfileInputStream(); void setPingTarget(final PingTarget p0); ExceptionInterceptor getExceptionInterceptor(); void removeOpenResultSet(final ResultSetInternalMethods p0); int getOpenResultSetCount(); void setHoldResultsOpenOverClose(final boolean p0); Query getQuery(); }
[ "=" ]
=
fb706292a6d855b6c26a24bb892288eddfc48e1a
3841f7991232e02c850b7e2ff6e02712e9128b17
/小浪底泥沙三维/EV_Xld/jni/src/JAVA/EV_RadarLibraryWrapper/src/com/earthview/industryengine/militaryengine/radarlibrary/ScaleVectorListClassFactory.java
5c3b13616793449b85d406ecb192c77d3cc40e69
[]
no_license
15831944/BeijingEVProjects
62bf734f1cb0a8be6fed42cf6b207f9dbdf99e71
3b5fa4c4889557008529958fc7cb51927259f66e
refs/heads/master
2021-07-22T14:12:15.106616
2017-10-15T11:33:06
2017-10-15T11:33:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
411
java
package com.earthview.industryengine.militaryengine.radarlibrary; import global.*; import com.earthview.world.base.*; import com.earthview.world.util.*; import com.earthview.world.core.*; public class ScaleVectorListClassFactory implements IClassFactory { public BaseObject create() { ScaleVectorList emptyInstance = new ScaleVectorList(CreatedWhenConstruct.CWC_NotToCreate); return emptyInstance; } }
[ "yanguanqi@aliyun.com" ]
yanguanqi@aliyun.com
8575eff34876fd03d650f741ed8b4a032ab426b2
94f1926e49d8609a932ba09e2cd9263be0f1c11f
/UWS-MTPP/src/guisanboot/data/IsCreatedVg.java
0f96788e8074148ab4fb38c267ed25de4fea3790
[]
no_license
zhbaics/UWS-MTPP
a47dfe5e844b656c62c4b6255091d6c32446cef7
21f0d19cabb92a9763d3258fb494c11464c8caf7
refs/heads/master
2021-01-18T14:05:07.662220
2015-09-07T01:11:21
2015-09-07T01:11:21
42,024,137
5
1
null
null
null
null
UTF-8
Java
false
false
799
java
/* * GetSystemTime.java * * Created on April 22, 2005, 1:12 PM */ package guisanboot.data; import guisanboot.ui.SanBootView; /** * * @author Administrator */ public class IsCreatedVg extends NetworkRunning{ private boolean crted = false; /** Creates a new instance of GetSystemTime */ public IsCreatedVg( String cmd ){ super( cmd ); } public void parser( String line ){ if( line == null || line.equals("") ) return; String val = line.trim(); SanBootView.log.debug(getClass().getName(),"========> "+ val ); if( val.equals("1") ){ crted = true; }else{ crted = false; } } public boolean isCreatedVG(){ return crted; } }
[ "1026074303@qq.com" ]
1026074303@qq.com
34325c2cfb396245255ae4e07546b01d72b27a99
83e4572b33d167508347295061d7bd3de1ea4499
/roboguice/src/main/java/roboguice/fragment/FragmentUtil.java
04347081d596e7a0cff40695eafa11a81a372ae7
[ "Apache-2.0" ]
permissive
sarvex/roboguice
a3704c47cda26b9b030739fb727538c5e8cb883b
f22a1b87b931b74d9e76ee7c776229594ae5a99d
refs/heads/master
2023-06-22T16:10:04.259331
2023-06-16T04:27:41
2023-06-16T04:27:41
32,572,190
0
0
NOASSERTION
2023-06-16T04:27:42
2015-03-20T08:31:33
Java
UTF-8
Java
false
false
2,820
java
package roboguice.fragment; import com.google.inject.Provider; import android.app.Activity; import android.view.View; /** * Fragment utility class, it's actual implementation will use native or support library v4 fragment's based * on whether or not the underlying app uses support library or not. * @author Charles Munger */ @SuppressWarnings({ "unchecked", "rawtypes","PMD" }) //Need an unchecked conversion public final class FragmentUtil { public static final String SUPPORT_PACKAGE = "android.support.v4.app."; public static final String NATIVE_PACKAGE = "android.app."; @edu.umd.cs.findbugs.annotations.SuppressWarnings("MS_SHOULD_BE_REFACTORED_TO_BE_FINAL") @SuppressWarnings({"checkstyle:visibilitymodifier","checkstyle:staticvariablename"}) public static f nativeFrag = null; @edu.umd.cs.findbugs.annotations.SuppressWarnings("MS_SHOULD_BE_REFACTORED_TO_BE_FINAL") @SuppressWarnings({"checkstyle:visibilitymodifier","checkstyle:staticvariablename"}) public static f supportFrag = null; @edu.umd.cs.findbugs.annotations.SuppressWarnings("MS_SHOULD_BE_REFACTORED_TO_BE_FINAL") @SuppressWarnings({"checkstyle:visibilitymodifier","checkstyle:staticvariablename"}) public static Class<? extends Activity> supportActivity = null; @edu.umd.cs.findbugs.annotations.SuppressWarnings("MS_SHOULD_BE_REFACTORED_TO_BE_FINAL") @SuppressWarnings({"checkstyle:visibilitymodifier","checkstyle:staticvariablename"}) public static boolean hasNative = false; @edu.umd.cs.findbugs.annotations.SuppressWarnings("MS_SHOULD_BE_REFACTORED_TO_BE_FINAL") @SuppressWarnings({"checkstyle:visibilitymodifier","checkstyle:staticvariablename"}) public static boolean hasSupport = false; @SuppressWarnings("checkstyle:typename") public interface f<fragType,fragManagerType> { View getView(fragType frag); fragType findFragmentById(fragManagerType fm, int id); fragType findFragmentByTag(fragManagerType fm, String tag); Class<fragType> fragmentType(); Class<fragManagerType> fragmentManagerType(); Class<Provider<fragManagerType>> fragmentManagerProviderType(); } static { try { nativeFrag = (f) Class.forName("roboguice.fragment.provided.NativeFragmentUtil").newInstance(); hasNative = nativeFrag != null; } catch (Throwable e) {} try { supportFrag = (f) Class.forName("roboguice.fragment.support.SupportFragmentUtil").newInstance(); supportActivity = (Class<? extends Activity>) Class.forName(SUPPORT_PACKAGE+"FragmentActivity"); hasSupport = supportFrag != null && supportActivity != null; } catch (Throwable e) {} } private FragmentUtil() { //private utility class constructor } }
[ "steff.nicolas@gmail.com" ]
steff.nicolas@gmail.com
2f9f98b7a0c064a73444040a24e06c287109179e
d71e879b3517cf4fccde29f7bf82cff69856cfcd
/ExtractedJars/Ibotta_com.ibotta.android/javafiles/android/support/v4/content/pm/PermissionInfoCompat$ProtectionFlags.java
2039041e390f9404827fc9568642efafbd24b84d
[ "MIT" ]
permissive
Andreas237/AndroidPolicyAutomation
b8e949e072d08cf6c6166c3f15c9c63379b8f6ce
c1ed10a2c6d4cf3dfda8b8e6291dee2c2a15ee8a
refs/heads/master
2020-04-10T02:14:08.789751
2019-05-16T19:29:11
2019-05-16T19:29:11
160,739,088
5
1
null
null
null
null
UTF-8
Java
false
false
422
java
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package android.support.v4.content.pm; import java.lang.annotation.Annotation; // Referenced classes of package android.support.v4.content.pm: // PermissionInfoCompat public static interface PermissionInfoCompat$ProtectionFlags extends Annotation { }
[ "silenta237@gmail.com" ]
silenta237@gmail.com
7cc9b450786cbc1844804af3ac65f738c59c7117
bdab9cb80801c1ceea8109fc01ba808d028daa45
/cloud-demo01/ly-sms/src/main/java/com/itheima/sms/utils/NotifyController.java
d46da59cf3bea61dcb773ec43bdcb8622d91488b
[]
no_license
zjpnotsleep/repo004
91dd5cc70e2c2e5334f32cc8da4cee1577f217b5
b17e759009c52c8acb2efbbd13575651bf4978c9
refs/heads/master
2022-07-08T07:32:46.057894
2020-02-08T09:30:32
2020-02-08T09:30:32
239,101,136
0
0
null
2022-06-21T02:45:48
2020-02-08T09:34:07
Java
UTF-8
Java
false
false
788
java
package com.itheima.sms.utils; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.HashMap; import java.util.Map; @Slf4j @RestController @RequestMapping("/wxpay") public class NotifyController { @Autowired private OrderService orderService; @PostMapping(value = "/notify",produces = "application/xml") public Map<String, String> hello(@RequestBody Map<String,String> result){ orderService.handleNotify(result); log.info("[支付回调] 接收微信支付回调,结果:{}",result); Map<String,String> map = new HashMap<>(); map.put("return_code","SUCCESS"); map.put("return_msg","OK"); return map; } }
[ "zhangsan@itcast.cn" ]
zhangsan@itcast.cn
725fd76e0ff545c02ddf4f53b10a507f44090e9e
fdb300f6009033b35903b778b4e8163e2c06d7fe
/dto/src/main/java/com/hertfordshire/dto/paymentConfig/PaymentConfigDto.java
fc6ca2b338a11e807c7c7ec5ee5447c52f21c9e8
[]
no_license
obinnamaduabum/lims_backend
97e682b248aac2bd1db4125cdd9c8dba86176729
9fd12893219a5bf3b65f1afca7f6c46f0c82712d
refs/heads/master
2023-05-01T14:57:23.468791
2020-08-22T19:53:05
2020-08-22T19:53:05
369,449,452
0
0
null
null
null
null
UTF-8
Java
false
false
1,104
java
package com.hertfordshire.dto.paymentConfig; public class PaymentConfigDto { private String paymentMethodName; private PaymentConfigDetailsDto testing; private PaymentConfigDetailsDto live; private boolean isLive; private boolean enabled; public String getPaymentMethodName() { return paymentMethodName; } public void setPaymentMethodName(String paymentMethodName) { this.paymentMethodName = paymentMethodName; } public PaymentConfigDetailsDto getTesting() { return testing; } public void setTesting(PaymentConfigDetailsDto testing) { this.testing = testing; } public PaymentConfigDetailsDto getLive() { return live; } public void setLive(PaymentConfigDetailsDto live) { this.live = live; } public boolean isLive() { return isLive; } public void setLive(boolean live) { isLive = live; } public boolean isEnabled() { return enabled; } public void setEnabled(boolean enabled) { this.enabled = enabled; } }
[ "you@example.com" ]
you@example.com
4677b0894f78e80743352165f32171236e47bd83
eb97ee5d4f19d7bf028ae9a400642a8c644f8fe3
/tags/2008-12-04/seasar2-2.4.33/s2jdbc-gen/s2jdbc-gen-it/src/main/java/example/entity/Address.java
f8fec23d135c66fb4b9df32c42ac9ef3953e969a
[]
no_license
svn2github/s2container
54ca27cf0c1200a93e1cb88884eb8226a9be677d
625adc6c4e1396654a7297d00ec206c077a78696
refs/heads/master
2020-06-04T17:15:02.140847
2013-08-09T09:38:15
2013-08-09T09:38:15
10,850,644
0
1
null
null
null
null
UTF-8
Java
false
false
1,294
java
/* * Copyright 2004-2008 the Seasar Foundation and the Others. * * 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 example.entity; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.OneToOne; import javax.persistence.TableGenerator; /** * 住所 * * @author taedium */ @Entity public class Address { /** 識別子 */ @Id @TableGenerator(name = "generator") @GeneratedValue(strategy = GenerationType.TABLE, generator = "generator") public Integer id; /** 都市 */ public String city; /** 従業員 */ @OneToOne(mappedBy = "address") public Employee employee; }
[ "koichik@319488c0-e101-0410-93bc-b5e51f62721a" ]
koichik@319488c0-e101-0410-93bc-b5e51f62721a
c641bfadf57ad51ade499c421ba93ba173631658
ca6f3528cc664359820857209614edd91c006302
/app/src/main/java/com/fuicuiedu/xc/easyshop_20170413/user/login/LoginPresenter.java
e1cb82a5f9c66a1ae55f854091f8683e801b8d1b
[]
no_license
wxcican/EasyShop_20170413
b4bfc6f986a350fc3dc6e29d3f35ed47adb5b7a1
ddd000d30736fab0ec250c88bd86ef126e9525a9
refs/heads/master
2021-01-19T14:20:48.324058
2017-05-02T01:10:03
2017-05-02T01:10:03
88,149,014
0
0
null
null
null
null
UTF-8
Java
false
false
3,599
java
package com.fuicuiedu.xc.easyshop_20170413.user.login; import android.util.Log; import com.feicuiedu.apphx.model.HxUserManager; import com.feicuiedu.apphx.model.event.HxErrorEvent; import com.feicuiedu.apphx.model.event.HxEventType; import com.feicuiedu.apphx.model.event.HxSimpleEvent; import com.fuicuiedu.xc.easyshop_20170413.commons.CurrentUser; import com.fuicuiedu.xc.easyshop_20170413.model.CachePreferences; import com.fuicuiedu.xc.easyshop_20170413.model.User; import com.fuicuiedu.xc.easyshop_20170413.model.UserResult; import com.fuicuiedu.xc.easyshop_20170413.network.EasyShopClient; import com.fuicuiedu.xc.easyshop_20170413.network.UICallBack; import com.google.gson.Gson; import com.hannesdorfmann.mosby.mvp.MvpNullObjectBasePresenter; import com.hyphenate.easeui.domain.EaseUser; import org.greenrobot.eventbus.EventBus; import org.greenrobot.eventbus.Subscribe; import org.greenrobot.eventbus.ThreadMode; import java.io.IOException; import okhttp3.Call; /** * Created by Administrator on 2017/4/19 0019. */ public class LoginPresenter extends MvpNullObjectBasePresenter<LoginView>{ //环信相关 private String hxPassword; private Call call; @Override public void attachView(LoginView view) { super.attachView(view); EventBus.getDefault().register(this); } @Override public void detachView(boolean retainInstance) { super.detachView(retainInstance); if (call !=null) call.cancel(); EventBus.getDefault().unregister(this); } public void login(String username, String password){ hxPassword = password; getView().showPrb(); call = EasyShopClient.getInstance().login(username, password); call.enqueue(new UICallBack() { @Override public void onFailureUI(Call call, IOException e) { getView().hidePrb(); getView().showMsg(e.getMessage()); } @Override public void onResponseUI(Call call, String body) { UserResult userResult = new Gson().fromJson(body,UserResult.class); if (userResult.getCode() == 1){ //保存用户登录信息到本地配置 User user = userResult.getData(); CachePreferences.setUser(user); //执行环信的登录相关 EaseUser easeUser = CurrentUser.convert(user); HxUserManager.getInstance().asyncLogin(easeUser,hxPassword); }else if (userResult.getCode() == 2){ getView().hidePrb(); getView().showMsg(userResult.getMessage()); getView().loginFailed(); }else{ getView().hidePrb(); getView().showMsg("未知错误"); } } }); } @Subscribe(threadMode = ThreadMode.MAIN) public void onEvent(HxSimpleEvent event){ //判断是否是登录成功事件 if (event.type != HxEventType.LOGIN) return; hxPassword = null; //调用登录成功的方法 getView().loginSuccess(); getView().showMsg("登录成功"); EventBus.getDefault().post(new UserResult()); } @Subscribe(threadMode = ThreadMode.MAIN) public void onEvent(HxErrorEvent event){ //判断是否是登录成功事件 if (event.type != HxEventType.LOGIN) return; hxPassword = null; getView().hidePrb(); getView().showMsg(event.toString()); } }
[ "wxcican@qq.com" ]
wxcican@qq.com
b14573c7456e3e0bfde789c1fcdfb443504c514b
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XWIKI-13141-7-27-FEMO-WeightedSum:TestLen:CallDiversity/com/xpn/xwiki/web/XWikiAction_ESTest_scaffolding.java
28e414050d9cdd63a6c820580e622f1a2fba9ccc
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
433
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Mon Jan 20 21:13:58 UTC 2020 */ package com.xpn.xwiki.web; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class XWikiAction_ESTest_scaffolding { // Empty scaffolding for empty test suite }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
a2a834058001f73682831350cc72a525183b15d3
6478b39e1295e795675507d65b1c34b93632490e
/checklistbank-nub/src/test/java/org/gbif/nub/lookup/straight/IdLookupImplTest.java
e57304298e43f17a51e1f51f69be4f199e22e450
[ "Apache-2.0" ]
permissive
tengbing88/checklistbank
3b1b2560364a07b5ce9ad8674c7d47475c9cca36
9eaad8fdf96e45fda2359f7b05427c811ed98b2d
refs/heads/master
2020-06-27T14:15:49.322015
2019-05-21T12:38:15
2019-05-21T12:38:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,032
java
package org.gbif.nub.lookup.straight; import org.gbif.api.vocabulary.Kingdom; import org.gbif.api.vocabulary.Rank; import java.io.IOException; import java.sql.SQLException; import java.util.Collection; import com.google.common.collect.Lists; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; public class IdLookupImplTest { IdLookup l; @Before public void init() { l = newTestLookup(); } public static IdLookup newTestLookup() { Collection<LookupUsage> usages = Lists.newArrayList( new LookupUsage(1, "Animalia", null, null, Rank.KINGDOM, Kingdom.ANIMALIA, false), new LookupUsage(2, "Oenanthe", "Vieillot", "1816", Rank.GENUS, Kingdom.ANIMALIA, false), new LookupUsage(3, "Oenanthe", "Linnaeus", "1753", Rank.GENUS, Kingdom.PLANTAE, false), new LookupUsage(4, "Oenanthe aquatica", "Poir.", null, Rank.SPECIES, Kingdom.PLANTAE, false), new LookupUsage(5, "Oenanthe aquatica", "Senser", "1957", Rank.SPECIES, Kingdom.PLANTAE, false), new LookupUsage(6, "Oenanthe aquatica", null, null, Rank.SPECIES, Kingdom.PLANTAE, true), new LookupUsage(7, "Rodentia", "Bowdich", "1821", Rank.ORDER, Kingdom.ANIMALIA, false), new LookupUsage(8, "Rodentia", null, null, Rank.GENUS, Kingdom.ANIMALIA, true), new LookupUsage(9, "Abies alba", null, null, Rank.SPECIES, Kingdom.PLANTAE, false), new LookupUsage(10, "Abies alba", "Mumpf.", null, Rank.SPECIES, Kingdom.PLANTAE, true), new LookupUsage(11, "Abies alba", null, "1778", Rank.SPECIES, Kingdom.PLANTAE, true), new LookupUsage(12, "Picea alba", null, "1778", Rank.SPECIES, Kingdom.PLANTAE, true), new LookupUsage(13, "Picea", null, null, Rank.GENUS, Kingdom.PLANTAE, true), new LookupUsage(14, "Carex cayouettei", null, null, Rank.SPECIES, Kingdom.PLANTAE, true), new LookupUsage(15, "Carex comosa × Carex lupulina", null, null, Rank.SPECIES, Kingdom.PLANTAE, true), new LookupUsage(16, "Aeropyrum coil-shaped virus", null, null, Rank.UNRANKED, Kingdom.VIRUSES, true) ); return IdLookupImpl.temp().load(usages); } @Test public void testNorm() throws Exception { assertEquals("malvastrum yelow vein virus satelite dna s", IdLookupImpl.norm("Malvastrum yellow vein virus satellite DNA ß")); assertNull(IdLookupImpl.norm(null)); assertNull(IdLookupImpl.norm("")); assertNull(IdLookupImpl.norm(" ")); assertEquals("abies", IdLookupImpl.norm("Abies")); assertEquals("abies", IdLookupImpl.norm("ABiES")); assertEquals("abies alba", IdLookupImpl.norm("Abiés alba")); assertEquals("albino", IdLookupImpl.norm("Albiño")); assertEquals("donatia novaezelandiae", IdLookupImpl.norm("Donatia novae-zelandiæ")); assertEquals("abies olsen", IdLookupImpl.norm("Abies ölsen")); assertEquals("abies oeftaen", IdLookupImpl.norm("Abies œftæn")); assertEquals("carex caioueti", IdLookupImpl.norm("Carex ×cayouettei")); assertEquals("carex comosa carex lupulina", IdLookupImpl.norm("Carex comosa × Carex lupulina")); assertEquals("aeropyrum coilshaped vira", IdLookupImpl.norm("Aeropyrum coil-shaped virus")); assertEquals("†lachnus boneti", IdLookupImpl.norm("†Lachnus bonneti")); assertEquals("malvastrum yelow vein virus satelite dna s", IdLookupImpl.norm("Malvastrum yellow vein virus satellite DNA ß")); } @Test public void testLookup() throws IOException, SQLException { assertEquals(16, l.size()); assertEquals(1, l.match("Animalia", Rank.KINGDOM, Kingdom.ANIMALIA).getKey()); assertEquals(7, l.match("Rodentia", Rank.ORDER, Kingdom.ANIMALIA).getKey()); assertNull(l.match("Rodentia", Rank.FAMILY, Kingdom.ANIMALIA)); assertNull(l.match("Rodentia", Rank.ORDER, Kingdom.PLANTAE)); assertNull(l.match("Rodenti", Rank.ORDER, Kingdom.ANIMALIA)); assertEquals(7, l.match("Rodentia", "Bowdich", "1821", Rank.ORDER, Kingdom.ANIMALIA).getKey()); assertEquals(7, l.match("Rodentia", "Bowdich", "1221", Rank.ORDER, Kingdom.ANIMALIA).getKey()); assertEquals(7, l.match("Rodentia", "Bowdich", null, Rank.ORDER, Kingdom.ANIMALIA).getKey()); assertEquals(7, l.match("Rodentia", null, "1821", Rank.ORDER, Kingdom.ANIMALIA).getKey()); assertEquals(7, l.match("Rodentia", "Bow.", null, Rank.ORDER, Kingdom.ANIMALIA).getKey()); assertEquals(7, l.match("Rodentia", "Bow", "1821", Rank.ORDER, Kingdom.ANIMALIA).getKey()); assertEquals(7, l.match("Rodentia", "B", "1821", Rank.ORDER, Kingdom.ANIMALIA).getKey()); assertNull(l.match("Rodentia", "Mill.", "1823", Rank.ORDER, Kingdom.ANIMALIA)); assertEquals(2, l.match("Oenanthe", null, null, Rank.GENUS, Kingdom.ANIMALIA).getKey()); assertEquals(2, l.match("Oenanthe", "Vieillot", null, Rank.GENUS, Kingdom.ANIMALIA).getKey()); assertEquals(2, l.match("Oenanthe", "V", null, Rank.GENUS, Kingdom.ANIMALIA).getKey()); assertEquals(2, l.match("Oenanthe", "Vieillot", null, Rank.GENUS, Kingdom.INCERTAE_SEDIS).getKey()); assertEquals(3, l.match("Oenanthe", null, null, Rank.GENUS, Kingdom.PLANTAE).getKey()); assertEquals(3, l.match("Œnanthe", null, null, Rank.GENUS, Kingdom.PLANTAE).getKey()); assertNull(l.match("Oenanthe", null, null, Rank.GENUS, Kingdom.INCERTAE_SEDIS)); assertNull(l.match("Oenanthe", "Camelot", null, Rank.GENUS, Kingdom.ANIMALIA)); assertEquals(4, l.match("Oenanthe aquatica", "Poir", null, Rank.SPECIES, Kingdom.PLANTAE).getKey()); assertEquals(6, l.match("Oenanthe aquatica", null, null, Rank.SPECIES, Kingdom.PLANTAE).getKey()); assertNull(l.match("Oenanthe aquatica", null, null, Rank.SPECIES, Kingdom.FUNGI)); // it is allowed to add an author to the single current canonical name if it doesnt have an author yet! assertEquals(9, l.match("Abies alba", null, null, Rank.SPECIES, Kingdom.PLANTAE).getKey()); assertEquals(9, l.match("Abies alba", null, "1789", Rank.SPECIES, Kingdom.PLANTAE).getKey()); assertEquals(9, l.match("Abies alba", "Mill.", null, Rank.SPECIES, Kingdom.PLANTAE).getKey()); assertEquals(9, l.match("Abies alba", "Miller", null, Rank.SPECIES, Kingdom.PLANTAE).getKey()); assertEquals(9, l.match("Abies alba", "Döring", "1778", Rank.SPECIES, Kingdom.PLANTAE).getKey()); assertEquals(10, l.match("Abies alba", "Mumpf.", null, Rank.SPECIES, Kingdom.PLANTAE).getKey()); // try unparsable names assertEquals(14, l.match("Carex cayouettei", null, null, Rank.SPECIES, Kingdom.PLANTAE).getKey()); assertEquals(15, l.match("Carex comosa × Carex lupulina", null, null, Rank.SPECIES, Kingdom.PLANTAE).getKey()); assertEquals(16, l.match("Aeropyrum coil-shaped virus", null, null, Rank.UNRANKED, Kingdom.VIRUSES).getKey()); assertEquals(16, l.match("Aeropyrum coil-shaped virus", null, null, Rank.SPECIES, Kingdom.VIRUSES).getKey()); assertNull(l.match("Aeropyrum coil-shaped virus", null, null, Rank.UNRANKED, Kingdom.FUNGI)); } }
[ "m.doering@mac.com" ]
m.doering@mac.com
22aa3db88d8c140e9d705354ed8f33db357bf4f1
09d0ddd512472a10bab82c912b66cbb13113fcbf
/TestApplications/TF-BETA-THERMATK-v5.7.1/DecompiledCode/Procyon/src/main/java/org/telegram/ui/Components/StatusDrawable.java
dabab6f8a3eaac287ad22489b19e1df43e9239b7
[]
no_license
sgros/activity_flow_plugin
bde2de3745d95e8097c053795c9e990c829a88f4
9e59f8b3adacf078946990db9c58f4965a5ccb48
refs/heads/master
2020-06-19T02:39:13.865609
2019-07-08T20:17:28
2019-07-08T20:17:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
312
java
// // Decompiled by Procyon v0.5.34 // package org.telegram.ui.Components; import android.graphics.drawable.Drawable; public abstract class StatusDrawable extends Drawable { public abstract void setIsChat(final boolean p0); public abstract void start(); public abstract void stop(); }
[ "crash@home.home.hr" ]
crash@home.home.hr
2169bca01aa9db940c62d09270956d76e32544fa
4ef431684e518b07288e8b8bdebbcfbe35f364e4
/elastic-tracestore/test-core/src/main/java/com/ca/apm/es/EsTraceComponentData.java
1f56cd6309dfb7d67b16c61a624a2de02f1aa877
[]
no_license
Sarojkswain/APMAutomation
a37c59aade283b079284cb0a8d3cbbf79f3480e3
15659ce9a0030c2e9e5b992040e05311fff713be
refs/heads/master
2020-03-30T00:43:23.925740
2018-09-27T23:42:04
2018-09-27T23:42:04
150,540,177
0
0
null
null
null
null
UTF-8
Java
false
false
2,006
java
package com.ca.apm.es; import java.util.Map; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; @JsonInclude(Include.NON_EMPTY) @JsonIgnoreProperties(ignoreUnknown = true) public class EsTraceComponentData { private int posId; private String traceId; private String resource; private long startTime; private int flags; private String description; private long duration; private int subNodeCount; private Map<String, String> parameters; public String getTraceId() { return traceId; } public int getPosId() { return posId; } public int getFlags() { return flags; } public String getResource() { return resource; } public String getDescription() { return description; } public long getStartTime() { return startTime; } public long getDuration() { return duration; } public int getSubNodeCount() { return subNodeCount; } public Map<String, String> getParameters() { return parameters; } public void setPosId(int posId) { this.posId = posId; } public void setTraceId(String traceId) { this.traceId = traceId; } public void setResource(String resource) { this.resource = resource; } public void setStartTime(long startTime) { this.startTime = startTime; } public void setFlags(int flags) { this.flags = flags; } public void setDescription(String description) { this.description = description; } public void setDuration(long duration) { this.duration = duration; } public void setSubNodeCount(int subNodeCount) { this.subNodeCount = subNodeCount; } public void setParameters(Map<String, String> parameters) { this.parameters = parameters; } }
[ "sarojkswain@gmail.com" ]
sarojkswain@gmail.com
6e82f5b9db4d26432a75b4bd22a00112090863ec
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/21/21_c66ce834b38688ae3c61899729e3098d3291f87c/Main/21_c66ce834b38688ae3c61899729e3098d3291f87c_Main_t.java
5f89060871c4502202874937e474789469794113
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
4,439
java
package alpv_ws1112.ub1.webradio.webradio; import java.io.IOException; import alpv_ws1112.ub1.webradio.communication.Client; import alpv_ws1112.ub1.webradio.communication.Server; import alpv_ws1112.ub1.webradio.communication.mc.ClientMC; import alpv_ws1112.ub1.webradio.communication.mc.ServerMC; import alpv_ws1112.ub1.webradio.communication.tcp.ClientTCP; import alpv_ws1112.ub1.webradio.communication.tcp.ServerTCP; import alpv_ws1112.ub1.webradio.communication.udp.ClientUDP; import alpv_ws1112.ub1.webradio.communication.udp.ServerUDP; import alpv_ws1112.ub1.webradio.ui.ClientUI; import alpv_ws1112.ub1.webradio.ui.ServerUI; import alpv_ws1112.ub1.webradio.ui.cmd.ClientCMD; import alpv_ws1112.ub1.webradio.ui.cmd.ServerCMD; import alpv_ws1112.ub1.webradio.ui.swing.ClientSwing; import alpv_ws1112.ub1.webradio.ui.swing.ServerSwing; public class Main { private static final String USAGE = String .format("usage: java -jar UB%%X_%%NAMEN [-options] server tcp|udp|mc PORT%n" + " (to start a server)%n" + "or: java -jar UB%%X_%%NAMEN [-options] client tcp|udp|mc SERVERIPADDRESS SERVERPORT USERNAME%n" + " (to start a client)"); public static ClientUI clientUI; /** * Starts a server/client according to the given arguments, using a GUI or * just the command-line according to the given arguments. * * @param args */ public static void main(String[] args) { try { boolean useGUI = false; int argumentIndex = -1; // Parse options. Add additional options here if you have to. Do not // forget to mention their usage in the help-string! if(args.length == 0) { help(); } while (args[++argumentIndex].startsWith("-")) { if (args[argumentIndex].equals("-help")) { help(); } else if (args[argumentIndex].equals("-gui")) { useGUI = true; } } if (args[argumentIndex].equals("server")) { Server server = null; String protocol = args[argumentIndex + 1]; int port = Integer.parseInt(args[argumentIndex + 2]); if (protocol.equals("tcp")) { server = new ServerTCP(port); } else if (protocol.equals("udp")) { server = new ServerUDP(port); } else if (protocol.equals("mc")) { server = new ServerMC(port); } else { System.err.println("protcol " + protocol + " is not supported."); return; } Thread serverThread = new Thread(server); serverThread.start(); // Run UI ServerUI serverUI = null; if (useGUI) { serverUI = new ServerSwing(server); } else { serverUI = new ServerCMD(server); } Thread serverUIThread = new Thread(serverUI); serverUIThread.start(); } else if (args[argumentIndex].equals("client")) { String protocol = args[argumentIndex + 1]; String host = args[argumentIndex + 2]; int port = Integer.parseInt(args[argumentIndex + 3]); String username = args[argumentIndex + 4]; Client client = null; if (protocol.equals("tcp")) { client = new ClientTCP(host, port); } else if (protocol.equals("udp")) { client = new ClientUDP(host, port); } else if (protocol.equals("mc")) { client = new ClientMC(host, port); } else { System.err.println("protcol " + protocol + " is not supported."); return; } Thread clientThread = new Thread(client); clientThread.start(); // Run UI clientUI = null; if (useGUI) { clientUI = new ClientSwing(client, username); } else { clientUI = new ClientCMD(client, username); } Thread clientUIThread = new Thread(clientUI); clientUIThread.start(); } else { throw new IllegalArgumentException(); } } catch (ArrayIndexOutOfBoundsException e) { System.err.println(USAGE); e.printStackTrace(); } catch (NumberFormatException e) { System.err.println(USAGE); e.printStackTrace(); } catch (IllegalArgumentException e) { System.err.println(USAGE); e.printStackTrace(); } catch (IOException e) { System.err.println(e.getMessage()); } } private static void help() { System.out.println(USAGE + String.format("%n%nwhere options include:")); System.out.println(" -help Show this text."); System.out .println(" -gui Show a graphical user interface."); System.exit(0); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
ddc9768188dc7040fd0283bc13d5f0ba47ba910d
ab93497aad6018484cf8e31ad08c0910435761f5
/src/workbench/gui/actions/CreateDummySqlAction.java
0d283f1503ed6d381d566bf3c110a6a0b6a0df1e
[]
no_license
anieruddha/sqlworkbench
33ca0289d4bb5e613853f74e9a96e5dc3900c717
058a44b0de0194732f68c52cc0815a9b27ec57e3
refs/heads/master
2020-08-05T21:05:16.706354
2019-10-06T01:32:18
2019-10-06T01:32:18
212,709,628
2
1
null
null
null
null
UTF-8
Java
false
false
5,977
java
/* * CreateDummySqlAction.java * * This file is part of SQL Workbench/J, https://www.sql-workbench.eu * * Copyright 2002-2019, Thomas Kellerer * * Licensed under a modified Apache License, Version 2.0 * that restricts the use for certain governments. * You may not use this file except in compliance with the License. * You may obtain a copy of the License at. * * https://www.sql-workbench.eu/manual/license.html * * 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. * * To contact the author please send an email to: support@sql-workbench.eu * */ package workbench.gui.actions; import java.awt.event.ActionEvent; import java.util.ArrayList; import java.util.List; import javax.swing.ListSelectionModel; import javax.swing.SwingUtilities; import workbench.interfaces.WbSelectionListener; import workbench.interfaces.WbSelectionModel; import workbench.resource.Settings; import workbench.db.ColumnIdentifier; import workbench.db.DbObject; import workbench.db.DummyInsert; import workbench.db.DummySelect; import workbench.db.DummyUpdate; import workbench.db.ObjectScripter; import workbench.db.TableIdentifier; import workbench.gui.dbobjects.DbObjectList; import workbench.gui.dbobjects.ObjectScripterUI; import static workbench.db.DummyDML.*; /** * @author Thomas Kellerer */ public class CreateDummySqlAction extends WbAction implements WbSelectionListener { private DbObjectList source; private String scriptType; private WbSelectionModel selection; public static CreateDummySqlAction createDummyUpdateAction(DbObjectList client, ListSelectionModel list) { return new CreateDummySqlAction("MnuTxtCreateDummyUpdate", client, list, ObjectScripter.TYPE_UPDATE); } public static CreateDummySqlAction createDummyInsertAction(DbObjectList client, ListSelectionModel list) { return new CreateDummySqlAction("MnuTxtCreateDummyInsert", client, list, ObjectScripter.TYPE_INSERT); } public static CreateDummySqlAction createDummySelectAction(DbObjectList client, ListSelectionModel list) { return new CreateDummySqlAction("MnuTxtCreateDefaultSelect", client, list, ObjectScripter.TYPE_SELECT); } public static CreateDummySqlAction createDummyUpdateAction(DbObjectList client, WbSelectionModel list) { return new CreateDummySqlAction("MnuTxtCreateDummyUpdate", client, list, ObjectScripter.TYPE_UPDATE); } public static CreateDummySqlAction createDummyInsertAction(DbObjectList client, WbSelectionModel list) { return new CreateDummySqlAction("MnuTxtCreateDummyInsert", client, list, ObjectScripter.TYPE_INSERT); } public static CreateDummySqlAction createDummySelectAction(DbObjectList client, WbSelectionModel list) { return new CreateDummySqlAction("MnuTxtCreateDefaultSelect", client, list, ObjectScripter.TYPE_SELECT); } private CreateDummySqlAction(String key, DbObjectList client, ListSelectionModel list, String type) { this(key, client, WbSelectionModel.Factory.createFacade(list), type); } private CreateDummySqlAction(String key, DbObjectList client, WbSelectionModel list, String type) { super(); isConfigurable = false; initMenuDefinition(key); source = client; scriptType = type; selection = list; checkEnabled(); selection.addSelectionListener(this); } @Override public void dispose() { super.dispose(); if (selection != null) { selection.removeSelectionListener(this); } } @Override public void executeAction(ActionEvent e) { List<? extends DbObject> objects = source.getSelectedObjects(); List<DbObject> scriptObjects = new ArrayList<>(objects.size()); List<ColumnIdentifier> cols = new ArrayList<>(); boolean generatePrepared = Settings.getInstance().getBoolProperty(PROP_CONFIG_MAKE_PREPARED, false); if (isCtrlPressed(e)) { generatePrepared = true; } for (DbObject dbo : objects) { if (dbo instanceof TableIdentifier) { TableIdentifier tbl = (TableIdentifier)dbo; if (scriptType.equalsIgnoreCase(ObjectScripter.TYPE_SELECT)) { scriptObjects.add(new DummySelect(tbl)); } else if (scriptType.equalsIgnoreCase(ObjectScripter.TYPE_UPDATE)) { DummyUpdate dml = new DummyUpdate(tbl); dml.setGeneratePreparedStatement(generatePrepared); scriptObjects.add(dml); } else if (scriptType.equalsIgnoreCase(ObjectScripter.TYPE_INSERT)) { DummyInsert dml = new DummyInsert(tbl); dml.setGeneratePreparedStatement(generatePrepared); scriptObjects.add(dml); } } else if (dbo instanceof ColumnIdentifier) { cols.add((ColumnIdentifier)dbo); } } if (cols.size() > 0) { TableIdentifier tbl = source.getObjectTable(); if (tbl != null) { if (scriptType.equalsIgnoreCase(ObjectScripter.TYPE_SELECT)) { scriptObjects.add(new DummySelect(tbl, cols)); } else { DummyInsert dml = new DummyInsert(tbl); dml.setGeneratePreparedStatement(generatePrepared); scriptObjects.add(dml); } } } ObjectScripter s = new ObjectScripter(scriptObjects, source.getConnection()); ObjectScripterUI scripterUI = new ObjectScripterUI(s); scripterUI.show(SwingUtilities.getWindowAncestor(source.getComponent())); } @Override public void selectionChanged(WbSelectionModel source) { checkEnabled(); } private void checkEnabled() { setEnabled(source.getSelectionCount() > 0); } @Override public boolean useInToolbar() { return false; } }
[ "aniruddha.gaikwad@skipthedishes.ca" ]
aniruddha.gaikwad@skipthedishes.ca
2c7b8683c4f77970e8ebaea40af0d6b54c4d8c55
065c1f648e8dd061a20147ff9c0dbb6b5bc8b9be
/eclipsejdt_cluster/19294/src_0.java
c9f9ffdab7e9ba40924295369e3e96c498d758c6
[]
no_license
martinezmatias/GenPat-data-C3
63cfe27efee2946831139747e6c20cf952f1d6f6
b360265a6aa3bb21bd1d64f1fc43c3b37d0da2a4
refs/heads/master
2022-04-25T17:59:03.905613
2020-04-15T14:41:34
2020-04-15T14:41:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,913
java
/******************************************************************************* * Copyright (c) 2000, 2001, 2002 International Business Machines Corp. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v0.5 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v05.html * * Contributors: * IBM Corporation - initial API and implementation ******************************************************************************/ package org.eclipse.jdt.internal.compiler.lookup; import org.eclipse.jdt.core.compiler.CharOperation; /* * Not all fields defined by this type (& its subclasses) are initialized when it is created. * Some are initialized only when needed. * * Accessors have been provided for some public fields so all TypeBindings have the same API... * but access public fields directly whenever possible. * Non-public fields have accessors which should be used everywhere you expect the field to be initialized. * * null is NOT a valid value for a non-public field... it just means the field is not initialized. */ abstract public class TypeBinding extends Binding implements BaseTypes, TagBits, TypeConstants, TypeIds { public int id = NoId; public int tagBits = 0; // See values in the interface TagBits below /* API * Answer the receiver's binding type from Binding.BindingID. */ public final int bindingType() { return TYPE; } /* Answer true if the receiver can be instantiated */ public boolean canBeInstantiated() { return !isBaseType(); } /* Answer the receiver's constant pool name. * * NOTE: This method should only be used during/after code gen. */ public abstract char[] constantPoolName(); /* java/lang/Object */ String debugName() { return new String(readableName()); } /* * Answer the receiver's dimensions - 0 for non-array types */ public int dimensions(){ return 0; } public abstract PackageBinding getPackage(); /* Answer true if the receiver is an array */ public final boolean isArrayType() { return (tagBits & IsArrayType) != 0; } /* Answer true if the receiver is a base type */ public final boolean isBaseType() { return (tagBits & IsBaseType) != 0; } public boolean isClass() { return false; } /* Answer true if the receiver type can be assigned to the argument type (right) */ public abstract boolean isCompatibleWith(TypeBinding right); /* Answer true if the receiver's hierarchy has problems (always false for arrays & base types) */ public final boolean isHierarchyInconsistent() { return (tagBits & HierarchyHasProblems) != 0; } public boolean isInterface() { return false; } public final boolean isNumericType() { switch (id) { case T_int : case T_float : case T_double : case T_short : case T_byte : case T_long : case T_char : return true; default : return false; } } public TypeBinding leafComponentType(){ return this; } /** * Answer the qualified name of the receiver's package separated by periods * or an empty string if its the default package. * * For example, {java.util.Hashtable}. */ public char[] qualifiedPackageName() { PackageBinding packageBinding = getPackage(); return packageBinding == null || packageBinding.compoundName == CharOperation.NO_CHAR_CHAR ? CharOperation.NO_CHAR : getPackage().readableName(); } /** * Answer the source name for the type. * In the case of member types, as the qualified name from its top level type. * For example, for a member type N defined inside M & A: "A.M.N". */ public abstract char[] qualifiedSourceName(); /* Answer the receiver's signature. * * Arrays & base types do not distinguish between signature() & constantPoolName(). * * NOTE: This method should only be used during/after code gen. */ public char[] signature() { return constantPoolName(); } public abstract char[] sourceName(); }
[ "375833274@qq.com" ]
375833274@qq.com
ef34ba034d7169086db2dc30ddb9c078c15191f2
1d1df7ff556cc021531dd3167d167b9c1071be92
/src/leetcode/editor/en/Leetcode0154FindMinimumInRotatedSortedArrayIi.java
47ec7d1a3d93101fb44cd2ec3df9367981e32784
[]
no_license
t1lu/leetcode_practice
c19eb4229c2d28f45fa4730ec8d703c9134c30c6
7acddda8262413af2eafff70b55f9b5851db4cc8
refs/heads/master
2023-08-01T01:44:37.861571
2021-09-20T08:07:28
2021-09-20T08:07:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,900
java
//Suppose an array sorted in ascending order is rotated at some pivot unknown to // you beforehand. // // (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]). // // Find the minimum element. // // The array may contain duplicates. // // Example 1: // // //Input: [1,3,5] //Output: 1 // // Example 2: // // //Input: [2,2,2,0,1] //Output: 0 // // Note: // // // This is a follow up problem to Find Minimum in Rotated Sorted Array. // Would allow duplicates affect the run-time complexity? How and why? // // Related Topics Array Binary Search // 👍 1095 👎 234 package leetcode.editor.en; // 2020-08-04 11:40:03 // Zeshi Yang public class Leetcode0154FindMinimumInRotatedSortedArrayIi{ // Java: find-minimum-in-rotated-sorted-array-ii public static void main(String[] args) { Solution sol = new Leetcode0154FindMinimumInRotatedSortedArrayIi().new Solution(); // TO TEST int[] nums = {10,1,10,10,10}; int res = sol.findMin(nums); System.out.println(res); } //leetcode submit region begin(Prohibit modification and deletion) // T(n) = O(log(n)), S(n) = O(1) // 0 ms,击败了100.00% 的Java用户,38.8 MB,击败了68.98% 的Java用户 class Solution { public int findMin(int[] nums) { // corner case if (nums == null || nums.length == 0) { return -1; } int left = 0; int right = nums.length - 1; while (left + 1 < right) { int mid = left + (right - left) / 2; if (nums[left] == nums[mid] && nums[mid] == nums[right]) { left++; } else if (nums[left] <= nums[mid]) { if (nums[mid] <= nums[right]) { return nums[left]; } else { left = mid; } } else { right = mid; } } return Math.min(nums[left], nums[right]); } } //leetcode submit region end(Prohibit modification and deletion) /**面试的时候用Solution 1 **/ // Solution 1:T(n) = O(log(n)), S(n) = O(1) // 0 ms,击败了100.00% 的Java用户,38.8 MB,击败了68.98% 的Java用户 class Solution1 { public int findMin(int[] nums) { //corner case if (nums == null || nums.length == 0) { return -1; } if (nums.length == 1) { return nums[0]; } //edge case int left = 0; int right = nums.length - 1; if (nums[left] < nums[right]) { return nums[left]; } //general case while (left + 1 < right) { int mid = left + (right - left) / 2; if (nums[mid] < nums[right]) { right = mid; } else if (nums[mid] > nums[right]) { left = mid; } else {/*(nums[mid] == nums[right])*/ right--; } } return Math.min(nums[right], nums[left]); } } // Solution 2:T(n) = O(log(n)), S(n) = O(1) // 0 ms,击败了100.00% 的Java用户, 38.9 MB,击败了53.56% 的Java用户 class Solution2 { public int findMin(int[] nums) { // corner case if (nums == null || nums.length == 0) { return -1; } int left = 0; int right = nums.length - 1; while (left + 1 < right) { int mid = left + (right - left) / 2; if (nums[left] == nums[mid] && nums[mid] == nums[right]) { left++; } else if (nums[left] <= nums[mid]) { if (nums[mid] <= nums[right]) { return nums[left]; } else { left = mid; } } else { right = mid; } } return Math.min(nums[left], nums[right]); } } }
[ "iyangzeshi@outlook.com" ]
iyangzeshi@outlook.com
3bafd490d045cbc2a26c8ae9060e3f10528803cc
c09b2a634dabfc458f1d0aae9bf792b4d3bf6a3a
/Udemy/spring_hibernate_for_beginners/hibernate-validator-6.0.16.Final/project/performance/target/generated-sources/annotations/org/hibernate/validator/performance/cascaded/generated/CascadedWithLotsOfItemsAndMoreConstraintsValidation_jmhType.java
9e4c8bec9a916c8b1d724c8a85b19a5b8545abe0
[ "LicenseRef-scancode-dco-1.1", "Apache-2.0" ]
permissive
kadensungbincho/Online_Lectures
539bed24e344a6815e090cd0bda194db9fa801cd
21afbfe9c4c41a9041ffedaf51c6c980c6e743bb
refs/heads/master
2023-01-12T18:59:05.128000
2022-02-20T13:04:45
2022-02-20T13:04:45
124,209,787
2
1
null
2023-01-07T20:04:16
2018-03-07T09:11:09
Jupyter Notebook
UTF-8
Java
false
false
213
java
package org.hibernate.validator.performance.cascaded.generated; public class CascadedWithLotsOfItemsAndMoreConstraintsValidation_jmhType extends CascadedWithLotsOfItemsAndMoreConstraintsValidation_jmhType_B3 { }
[ "kadensungbincho@gmail.com" ]
kadensungbincho@gmail.com
d6a06fbbc9bb9c64aa8c25bffa6239e4344e3a2d
2fb0aee836a9fd755d70e4384901fc16d0a9d455
/src/com/terryx/interview/facebook/NaturalStringCompare.java
88ca62d915fd3d10203515679b715c9e7521423b
[]
no_license
lele94218/leetcode_java
29af513b5bc7e2e94dfee119dd6d5dea2fb52a12
addbf0fca18664b154e7685027736c943f18c22f
refs/heads/master
2022-07-02T04:21:56.205352
2018-03-04T05:27:21
2018-03-04T05:27:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,547
java
package com.terryx.interview.facebook; import java.util.*; /** * @author taoranxue on 10/22/17 9:21 PM. */ public class NaturalStringCompare { /** * 让实现一个比较两道字符串的方法;前提是让字符串分block比较,相连的字母组成一个block,相连的数字组成一个block, * 比如“abcd12ef3”由4个block组成,两个字符串变成两组block之后对应的block挨个比较,如果对应的block一个是字母一个是数字, * 那么字母小于数字;如果对应的block都是字母,用的是String的标准的比较方法;如果对应的两个block都是数字, * 那么比较数字的绝对值大小。比如“abc12”大于"abc9"(第一个block相等,第二个block 12>9), "a"小于“1”(字母小于数字), * “12abd”小于"12ab"(数字block一样,后面的字母block后者大)。 */ static class NaturalComparator implements Comparator<String> { /** * return negative num if l < r * 0 if l == r * positive if l > r */ @Override public int compare(String a, String b) { int i = 0, j = 0, len = Math.min(a.length(), b.length()); while (i < len || j < len) { char c1 = a.charAt(i), c2 = b.charAt(j); if (c1 == c2) { ++i; ++j; } else if (Character.isAlphabetic(c1) && Character.isAlphabetic(c2)) { return c1 - c2; } else if (Character.isDigit(c1) && Character.isDigit(c2)) { long num1 = 0, num2 = 0; while (i < a.length() && Character.isDigit(a.charAt(i))) { num1 = num1 * 10 + a.charAt(i) - '0'; i++; } while (j < b.length() && Character.isDigit(b.charAt(j))) { num2 = num2 * 10 + b.charAt(j) - '0'; j++; } if (num1 == num2) { continue; } return num1 < num2 ? -1 : 1; } else if (Character.isDigit(c1)) { return 1; } else if (Character.isDigit(c2)) { return -1; } } return i == a.length() && j == b.length() ? 0 : a.length() - b.length(); } } public static void main(String[] args) { NaturalComparator comparator = new NaturalComparator(); System.out.println(comparator.compare("a", "b") < 0); System.out.println(comparator.compare("abc9", "abc12") < 0); System.out.println(comparator.compare("azz00000111", "azz999") < 0); System.out.println(comparator.compare("a", "1") < 0); System.out.println(comparator.compare("1", "a") > 0); System.out.println(comparator.compare("", "aaaa") < 0); System.out.println(comparator.compare("1123444", "9999999999") < 0); System.out.println(comparator.compare("0000000000000001", "0") > 0); System.out.println(comparator.compare("a2b4z999", "a22b44z999") < 0); System.out.println(comparator.compare("a002b000444z", "a2b00444a") > 0); System.out.println(comparator.compare("a002b000444a001a", "a2b00444a00000000001a") == 0); System.out.println(comparator.compare("00001", "1") == 0); System.out.println(comparator.compare("abc", "abc99999999") < 0); } }
[ "terry.trxue@gmail.com" ]
terry.trxue@gmail.com
06ae3f96b25ec6fe94ec8af71259ff6e51cc8596
4ddb8360475e316da340b398ab72876160144d28
/JpegToy/src/ca/jvsh/jpegtoy/ui/DisplayItem.java
8286c3ac77a324e49aa3091cac7557fbf5abba66
[ "Apache-2.0" ]
permissive
evgenyvinnik/jvsc-android-apps
57e6c9154c8037010458c2de434b977e8cefcb46
9f2c91ee6468507d08079e255772d9aea95b9afc
refs/heads/master
2020-03-30T04:53:52.421221
2018-09-28T17:04:48
2018-09-28T17:04:48
150,767,701
1
0
null
null
null
null
UTF-8
Java
false
false
1,493
java
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package ca.jvsh.jpegtoy.ui; public abstract class DisplayItem { protected int mBoxWidth; protected int mBoxHeight; // setBox() specifies the box that the DisplayItem should render into. It // should be called before first render(). It may be called again between // render() calls to change the size of the box. public void setBox(int width, int height) { mBoxWidth = width; mBoxHeight = height; } // Return values of render(): // RENDER_MORE_PASS: more pass is needed for this item // RENDER_MORE_FRAME: need to render next frame (used for animation) public static final int RENDER_MORE_PASS = 1; public static final int RENDER_MORE_FRAME = 2; public abstract int render(GLCanvas canvas, int pass); public abstract long getIdentity(); public int getRotation() { return 0; } }
[ "evvinnik@microsoft.com" ]
evvinnik@microsoft.com
ccd5e3107d5a039abd5c2fa5deec76047081a57a
5d8f970930c0b3e8bf8919b5726c9db4a5e07194
/SHP.ADM.MessageLibrary/src/main/java/co/bdigital/admin/messaging/reports/ObjectFactory.java
98410af34040c78b1c56e80fe095b9b493d2b336
[]
no_license
camilo1822/trabajoCasa
866a88b3913e59654e48fff1cc8be447a417fa6a
6767a515b823b0231ebcce727c62ad2b3ea32c94
refs/heads/master
2020-03-25T12:49:21.906164
2018-08-07T00:03:59
2018-08-07T00:03:59
143,795,514
0
0
null
null
null
null
UTF-8
Java
false
false
1,681
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: 2017.09.05 at 05:58:41 PM COT // package co.bdigital.admin.messaging.reports; import javax.xml.bind.annotation.XmlRegistry; /** * This object contains factory methods for each * Java content interface and Java element interface * generated in the co.bdigital.admin.messaging.reports package. * <p>An ObjectFactory allows you to programatically * construct new instances of the Java representation * for XML content. The Java representation of XML * content can consist of schema derived interfaces * and classes representing the binding of schema * type definitions, element declarations and model * groups. Factory methods for each of these are * provided in this class. * */ @XmlRegistry public class ObjectFactory { /** * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: co.bdigital.admin.messaging.reports * */ public ObjectFactory() { } /** * Create an instance of {@link CustomerDetailsReport } * */ public CustomerDetailsReport createCustomerDetailsReport() { return new CustomerDetailsReport(); } /** * Create an instance of {@link CustomerDetailsReportType } * */ public CustomerDetailsReportType createCustomerDetailsReportType() { return new CustomerDetailsReportType(); } }
[ "juan.arboleda@juanarboleda.pragma.com.co" ]
juan.arboleda@juanarboleda.pragma.com.co
b93a718e4af17361313acd419388c41d799dd79e
0d00be999ce25afdbb9519f44f3c192a26ccff4f
/src/main/java/zwl/learning/springboot/service/UserService.java
58fe436db090efccb93058ef78684d4ac70b4158
[ "Apache-2.0" ]
permissive
liwanzhang/learning-spring-boot
3ccb86b1aa21e6d17d65b161bc149949f0e3a07d
31fa96281c08549ae963bb2d3b551be6417cf15b
refs/heads/master
2021-01-01T15:43:16.147308
2017-08-23T09:06:25
2017-08-23T09:06:25
97,683,512
0
0
null
null
null
null
UTF-8
Java
false
false
150
java
package zwl.learning.springboot.service; /** * Created by dmall on 2017/7/21. */ public interface UserService { public String getUserName(); }
[ "wanli.zhang@dmall.com" ]
wanli.zhang@dmall.com
831ab246b87392eb19cc25357be518b41ad8efa3
f490119b5f7eea314c3049fc212ff77dd29a1e67
/core/src/main/java/com/alibaba/alink/operator/batch/similarity/TextApproxNearestNeighborTrainBatchOp.java
67cf89e0bb3be26b68556acee57094f28467dc62
[ "Apache-2.0" ]
permissive
lethetann/Alink
b4cb3ddab211baa77e3a93a9b099ddcde662b903
a483a8a25ecd136ad4e18709c17c5a242c7e76fa
refs/heads/master
2021-10-27T17:11:40.158889
2021-10-08T10:05:41
2021-10-08T10:05:41
229,357,943
0
0
Apache-2.0
2020-08-06T01:30:39
2019-12-21T00:55:32
Java
UTF-8
Java
false
false
988
java
package com.alibaba.alink.operator.batch.similarity; import org.apache.flink.ml.api.misc.param.Params; import com.alibaba.alink.operator.common.similarity.TrainType; import com.alibaba.alink.operator.common.similarity.dataConverter.StringModelDataConverter; import com.alibaba.alink.params.similarity.StringTextApproxNearestNeighborTrainParams; /** * Find the approximate nearest neighbor of query texts. */ public class TextApproxNearestNeighborTrainBatchOp extends BaseNearestNeighborTrainBatchOp<TextApproxNearestNeighborTrainBatchOp> implements StringTextApproxNearestNeighborTrainParams <TextApproxNearestNeighborTrainBatchOp> { private static final long serialVersionUID = 7849910987059476012L; public TextApproxNearestNeighborTrainBatchOp() { this(new Params()); } public TextApproxNearestNeighborTrainBatchOp(Params params) { super(params.set(StringModelDataConverter.TEXT, true) .set(BaseNearestNeighborTrainBatchOp.TRAIN_TYPE, TrainType.APPROX_TEXT)); } }
[ "xuyang1706@gmail.com" ]
xuyang1706@gmail.com
bdafd7d1a6458dec8560d862c523b3e6d3bdbfde
3f2fe92f11fe6a012ea87936bedbeb08fd392a1a
/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/administrative/collection/CreateCollectionForm.java
4706c05f35d6f24026d15aa18646cb54886b119e
[]
no_license
pulipulichen/dspace-dlll
bbb61aa528876e2ce4908fac87bc9b2323baac3c
e9379176291c171c19573f7f6c685b6dc995efe1
refs/heads/master
2022-08-22T21:15:12.751565
2022-07-12T14:50:10
2022-07-12T14:50:10
9,954,185
1
1
null
null
null
null
UTF-8
Java
false
false
7,206
java
/* * EditCollectionMetadataForm.java * * Version: $Revision: 1.0 $ * * Date: $Date: 2006/07/13 23:20:54 $ * * Copyright (c) 2002, Hewlett-Packard Company and Massachusetts * Institute of Technology. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * - Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * - Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * - Neither the name of the Hewlett-Packard Company nor the name of the * Massachusetts Institute of Technology nor the names of their * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH * DAMAGE. */ package org.dspace.app.xmlui.aspect.administrative.collection; import java.sql.SQLException; import org.dspace.app.xmlui.cocoon.AbstractDSpaceTransformer; import org.dspace.app.xmlui.wing.Message; import org.dspace.app.xmlui.wing.WingException; import org.dspace.app.xmlui.wing.element.Body; import org.dspace.app.xmlui.wing.element.Division; import org.dspace.app.xmlui.wing.element.List; import org.dspace.app.xmlui.wing.element.PageMeta; import org.dspace.app.xmlui.wing.element.Para; import org.dspace.app.xmlui.wing.element.Text; import org.dspace.app.xmlui.wing.element.TextArea; import org.dspace.authorize.AuthorizeException; import org.dspace.content.Community; /** * Presents the user with a form to enter the initial metadata for creation of a new collection * @author Alexey Maslov */ public class CreateCollectionForm extends AbstractDSpaceTransformer { /** Language Strings */ private static final Message T_dspace_home = message("xmlui.general.dspace_home"); private static final Message T_title = message("xmlui.administrative.collection.CreateCollectionForm.title"); private static final Message T_trail = message("xmlui.administrative.collection.CreateCollectionForm.trail"); private static final Message T_main_head = message("xmlui.administrative.collection.CreateCollectionForm.main_head"); private static final Message T_label_name = message("xmlui.administrative.collection.EditCollectionMetadataForm.label_name"); private static final Message T_label_short_description = message("xmlui.administrative.collection.EditCollectionMetadataForm.label_short_description"); private static final Message T_label_introductory_text = message("xmlui.administrative.collection.EditCollectionMetadataForm.label_introductory_text"); private static final Message T_label_copyright_text = message("xmlui.administrative.collection.EditCollectionMetadataForm.label_copyright_text"); private static final Message T_label_side_bar_text = message("xmlui.administrative.collection.EditCollectionMetadataForm.label_side_bar_text"); private static final Message T_label_license = message("xmlui.administrative.collection.EditCollectionMetadataForm.label_license"); private static final Message T_label_provenance_description = message("xmlui.administrative.collection.EditCollectionMetadataForm.label_provenance_description"); private static final Message T_label_logo = message("xmlui.administrative.collection.EditCollectionMetadataForm.label_logo"); private static final Message T_submit_save = message("xmlui.administrative.collection.CreateCollectionForm.submit_save"); private static final Message T_submit_cancel = message("xmlui.general.cancel"); public void addPageMeta(PageMeta pageMeta) throws WingException { pageMeta.addMetadata("title").addContent(T_title); pageMeta.addTrailLink(contextPath + "/", T_dspace_home); pageMeta.addTrail().addContent(T_trail); } public void addBody(Body body) throws WingException, SQLException, AuthorizeException { int communityID = parameters.getParameterAsInteger("communityID", -1); Community parentCommunity = Community.find(context, communityID); // DIVISION: main Division main = body.addInteractiveDivision("create-collection",contextPath+"/admin/collection",Division.METHOD_MULTIPART,"primary administrative collection"); main.setHead(T_main_head.parameterize(parentCommunity.getMetadata("name"))); // The grand list of metadata options List metadataList = main.addList("metadataList", "form"); // collection name metadataList.addLabel(T_label_name); Text name = metadataList.addItem().addText("name"); name.setSize(40); // short description metadataList.addLabel(T_label_short_description); Text short_description = metadataList.addItem().addText("short_description"); short_description.setSize(40); // introductory text metadataList.addLabel(T_label_introductory_text); TextArea introductory_text = metadataList.addItem().addTextArea("introductory_text"); introductory_text.setSize(6, 40); // copyright text metadataList.addLabel(T_label_copyright_text); TextArea copyright_text = metadataList.addItem().addTextArea("copyright_text"); copyright_text.setSize(6, 40); // legacy sidebar text; may or may not be used for news metadataList.addLabel(T_label_side_bar_text); TextArea side_bar_text = metadataList.addItem().addTextArea("side_bar_text"); side_bar_text.setSize(6, 40); // license text metadataList.addLabel(T_label_license); TextArea license = metadataList.addItem().addTextArea("license"); license.setSize(6, 40); // provenance description metadataList.addLabel(T_label_provenance_description); TextArea provenance_description = metadataList.addItem().addTextArea("provenance_description"); provenance_description.setSize(6, 40); // the row to upload a new logo metadataList.addLabel(T_label_logo); metadataList.addItem().addFile("logo"); Para buttonList = main.addPara(); buttonList.addButton("submit_save").setValue(T_submit_save); buttonList.addButton("submit_cancel").setValue(T_submit_cancel); main.addHidden("administrative-continue").setValue(knot.getId()); } }
[ "pulipuli.chen@gmail.com" ]
pulipuli.chen@gmail.com
b5f372f4d8732abce3ae169bfd88d5dbd26d6c5f
ddf0d861a600e9271198ed43be705debae15bafd
/src/Stack/applications/NextGreaterElement.java
4502eac953e07f35e70973c67173c0166e5c916a
[]
no_license
bibhuty-did-this/MyCodes
79feea385b055edc776d4a9d5aedbb79a9eb55f4
2b8c1d4bd3088fc28820145e3953af79417c387f
refs/heads/master
2023-02-28T09:20:36.500579
2021-02-07T17:17:54
2021-02-07T17:17:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,729
java
package Stack.applications; import java.util.Stack; /** * Algorithm: * 1. Take the first element and put it into the Stack * 2. Traverse from the next element * 2.1 Put the current element into nextElement * 2.2 If the Stack is not empty then pop the top elements * until a top element is greater than the nextElement * and the nextElement is their next greater element * 2.3 Push the next greater top element, if present into the Stack * 3. Push the nextElement into the Stack * 4. Pop the rest element from the Stack and their next greater element is -1 */ public class NextGreaterElement{ public static void nextGreaterElement(int[] array){ //Initialize the Stack Stack<Integer> stack=new Stack<>(); int length=array.length;//store the length in some local variable for efficiency //Push the first element into the Stack stack.push(array[0]); //Start traversing from the next element to the end for(int i=1;i<length;++i){ //take the next element int nextElement=array[i]; //check whether the Stack is empty or not if(!stack.isEmpty()){ //take the top element of the Stack int topElement=stack.pop(); //pop the Stack until you find the top element of the Stack greater than //the next element(or the current item of the array) while(topElement<nextElement){ System.out.println(topElement+" --> "+nextElement);//print the next greater element if(stack.isEmpty()) break;//check for if the Stack is empty topElement=stack.pop();//get the other top element of the Stack } //If you find the top element greater than the nextElement put it into the Stack again if(topElement>nextElement) stack.push(topElement); } //Push the nextElement(or the current item of the array) into the Stack stack.push(nextElement); } //Rest element of the Stack must have the next greater element as -1 while(!stack.isEmpty()){ System.out.println(stack.pop()+" --> "+-1); } } public static void main(String[] args){ int array[]={ 4, 5, 2, 25 }; System.out.println("The array is"); for(int element: array) System.out.print(element+" "); System.out.println("\n\nThe next greater elements of the elements are"); nextGreaterElement(array); } }
[ "bibhuty.nit@gmail.com" ]
bibhuty.nit@gmail.com
74c7178096c868b3735cf5ab3d063f66e339562b
a4e0f5d38301cbc506191020afdfbef4bf5d4915
/workspace/glaf-jbpm/src/main/java/com/glaf/jbpm/action/DynamicTaskInstances.java
b8e2ca9bcc116122d9236acebe96e12e1c5c8d2f
[ "Apache-2.0" ]
permissive
magoo-lau/glaf
14f95ddcee026f28616027a601f97e8d7df44102
9c325128afc4325bc37655d54bc65f34ecc41089
refs/heads/master
2020-12-02T12:47:14.959928
2017-07-09T08:08:51
2017-07-09T08:08:51
96,594,013
0
0
null
2017-07-08T03:41:28
2017-07-08T03:41:28
null
UTF-8
Java
false
false
5,462
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 com.glaf.jbpm.action; import java.util.Collection; import java.util.Date; import java.util.HashSet; import java.util.StringTokenizer; import org.apache.commons.lang3.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.jbpm.context.exe.ContextInstance; import org.jbpm.graph.def.ActionHandler; import org.jbpm.graph.def.Node; import org.jbpm.graph.exe.ExecutionContext; import org.jbpm.graph.exe.Token; import org.jbpm.graph.node.TaskNode; import org.jbpm.taskmgmt.def.Task; import org.jbpm.taskmgmt.exe.TaskInstance; import org.jbpm.taskmgmt.exe.TaskMgmtInstance; import com.glaf.jbpm.util.Constant; public class DynamicTaskInstances implements ActionHandler { private static final Log logger = LogFactory .getLog(DynamicTaskInstances.class); private static final long serialVersionUID = 1L; /** * 动态设置的参与者的参数名,环境变量可以通过contextInstance.getVariable()取得 * 例如:contextInstance.getVariable("SendDocAuditor"); */ protected String dynamicActors; /** * 任务名称 */ protected String taskName; /** * 转移路径的名称 */ protected String transitionName; /** * 如果不能获取任务参与者是否离开本节点(任务节点) */ protected boolean leaveNodeIfActorNotAvailable; /** * 是否发送邮件 */ protected String sendMail; /** * 邮件标题 */ protected String subject; /** * 邮件内容 */ protected String content; /** * 任务内容 */ protected String taskContent; /** * 邮件模板编号 */ protected String templateId; public DynamicTaskInstances() { } public void execute(ExecutionContext ctx) { logger.debug("-------------------------------------------------------"); logger.debug("---------------DynamicTaskInstances--------------------"); logger.debug("-------------------------------------------------------"); Task task = null; if (StringUtils.isNotEmpty(taskName)) { Node node = ctx.getNode(); if (node instanceof TaskNode) { TaskNode taskNode = (TaskNode) node; task = taskNode.getTask(taskName); } } if (task == null) { task = ctx.getTask(); } boolean hasActors = false; ContextInstance contextInstance = ctx.getContextInstance(); if (StringUtils.isNotEmpty(dynamicActors)) { Token token = ctx.getToken(); TaskMgmtInstance tmi = ctx.getTaskMgmtInstance(); String actorIdxy = (String) contextInstance .getVariable(dynamicActors); if (StringUtils.isNotEmpty(actorIdxy)) { Collection<String> actorIds = new HashSet<String>(); StringTokenizer st2 = new StringTokenizer(actorIdxy, ","); while (st2.hasMoreTokens()) { String actorId = st2.nextToken(); if (StringUtils.isNotEmpty(actorId) && !actorIds.contains(actorId)) { TaskInstance taskInstance = tmi.createTaskInstance( task, token); actorIds.add(actorId); taskInstance.setActorId(actorId); taskInstance.setCreate(new Date()); taskInstance.setSignalling(task.isSignalling()); hasActors = true; } } if (StringUtils.isNotEmpty(sendMail) && StringUtils.equals(sendMail, "true")) { MailBean mailBean = new MailBean(); mailBean.setContent(content); mailBean.setSubject(subject); mailBean.setTaskContent(taskContent); mailBean.setTaskName(taskName); mailBean.setTemplateId(templateId); mailBean.execute(ctx, actorIds); } } } // 如果没有任务参与者,判断是否可以离开本节点。 if (!hasActors) { if (leaveNodeIfActorNotAvailable) { contextInstance.setVariable(Constant.IS_AGREE, "true"); if (StringUtils.isNotEmpty(transitionName)) { ctx.leaveNode(transitionName); } else { ctx.leaveNode(); } } } } public void setContent(String content) { this.content = content; } public void setDynamicActors(String dynamicActors) { this.dynamicActors = dynamicActors; } public void setLeaveNodeIfActorNotAvailable( boolean leaveNodeIfActorNotAvailable) { this.leaveNodeIfActorNotAvailable = leaveNodeIfActorNotAvailable; } public void setSendMail(String sendMail) { this.sendMail = sendMail; } public void setSubject(String subject) { this.subject = subject; } public void setTaskContent(String taskContent) { this.taskContent = taskContent; } public void setTaskName(String taskName) { this.taskName = taskName; } public void setTemplateId(String templateId) { this.templateId = templateId; } public void setTransitionName(String transitionName) { this.transitionName = transitionName; } }
[ "jior2008@gmail.com" ]
jior2008@gmail.com
c0c923712f2d05b5f5566f31ed0fcdde0b9c52ed
2a6cd7a74153e7898134903cc62868dffdb6c62d
/guns/guns-api/src/main/java/com/stylefeng/guns/api/user/vo/UserInfoModel.java
2a7b22191b7990144e567a887a3e97c087ab1c4d
[]
no_license
zchengi/dubbo-study
08e0a53c69fbee6a607774dbeeca2fb1c06babdd
f74e5ed1e931bb5e226d6de97c17a4168b0712e5
refs/heads/master
2020-04-14T06:16:31.740377
2019-01-18T19:15:24
2019-01-18T19:15:24
163,681,834
0
1
null
null
null
null
UTF-8
Java
false
false
675
java
package com.stylefeng.guns.api.user.vo; import lombok.Getter; import lombok.Setter; import java.io.Serializable; /** * @author cheng * 2019/1/3 23:37 */ @Getter @Setter public class UserInfoModel implements Serializable { private static final long serialVersionUID = 5951623536668025518L; private Integer uuid; private String username; private String nickname; private String email; private String phone; private int sex; private String birthday; private String lifeState; private String biography; private String address; private String headAddress; private Long beginTime; private Long updateTime; }
[ "792702352@qq.com" ]
792702352@qq.com
c5c625648418afbeb96d79f32c29f0c9fdae5671
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
/genny_JavaWithLambdasApi21/applicationModule/src/main/java/applicationModulepackageJava9/Foo529.java
3ebcdb0295a074adc00c74c1837ee93ca8d9bf25
[]
no_license
NikitaKozlov/generated-project-for-desugaring
0bc1443ab3ddc84cd289331c726761585766aea7
81506b3711004185070ca4bb9a93482b70011d36
refs/heads/master
2020-03-20T00:35:06.996525
2018-06-12T09:30:37
2018-06-12T09:30:37
137,049,317
0
0
null
null
null
null
UTF-8
Java
false
false
575
java
package applicationModulepackageJava9; public class Foo529 { public void foo0() { final Runnable anything0 = () -> System.out.println("anything"); new applicationModulepackageJava9.Foo528().foo9(); } 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(); } }
[ "nikita.e.kozlov@gmail.com" ]
nikita.e.kozlov@gmail.com
eeabdb06c70a8fad20ec85b9baabd3263d0d8f80
a1f9c390703c613f0ba91f2a065cb6c99de22de5
/src/_03_array_java/exercise/ConcatArray.java
721f159eec6fb5a77467ad25c66473c711c6adf4
[]
no_license
thanhtai18021994/C1220G2_BuiThanhTai_Module2
b85010f3ffa274cb583773a48406c6c60cc033c3
9cd6d69d0e341e2fb26300da31cfb98993305192
refs/heads/main
2023-03-24T09:41:35.398648
2021-03-16T10:14:22
2021-03-16T10:14:22
334,828,733
0
0
null
null
null
null
UTF-8
Java
false
false
1,056
java
import java.util.Scanner; public class ConcatArray { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] arr1; int[] arr2; System.out.println("Nhap chieu dai mang 1"); int n1 = sc.nextInt(); arr1 = new int[n1]; System.out.println("Nhap chieu dai mang 2"); int n2 = sc.nextInt(); arr2 = new int[n2]; for (int i = 0; i < arr1.length ; i++) { System.out.println("Nhap phan tu thu " + (i + 1) + ":"); arr1[i] = sc.nextInt(); } for (int i = 0; i < arr2.length ; i++) { System.out.println("Nhap phan tu thu " + (i + 1) + ":"); arr2[i] = sc.nextInt(); } int[] myArr=new int[n1+n2]; for(int i=0;i<arr1.length;i++){ myArr[i]=arr1[i]; } for(int i=arr1.length;i<myArr.length;i++){ myArr[i]=arr2[i-arr1.length]; } for(int i=0;i<myArr.length;i++){ System.out.println(myArr[i]); } } }
[ "taibui18021994@gmail.com" ]
taibui18021994@gmail.com
ed9deab68a7bbd0b65f1050d4f46f06daf6cd5ed
410df2b595462cec0dc095dcb2262c49ef6ddc3e
/app/src/main/java/org/chromium/components/language/AndroidLanguageMetricsBridgeJni.java
204e0e5885f37337692ad34c292c2e18a310a8a8
[]
no_license
ipxbro/JokerChromium
e32d6e15b61aeb986687befe5d2ea6a50391391f
89931e2e5e356f58c33a3e160c53d347e3779fc4
refs/heads/master
2023-04-24T12:58:28.647237
2021-04-30T05:47:31
2021-04-30T05:47:31
567,083,021
0
0
null
2022-11-17T02:58:50
2022-11-17T02:58:47
null
UTF-8
Java
false
false
1,953
java
package org.chromium.components.language; import java.lang.Override; import java.lang.String; import javax.annotation.Generated; import org.chromium.base.JniStaticTestMocker; import org.chromium.base.NativeLibraryLoadedStatus; import org.chromium.base.annotations.CheckDiscard; import org.chromium.base.natives.GEN_JNI; @Generated("org.chromium.jni_generator.JniProcessor") @CheckDiscard("crbug.com/993421") final class AndroidLanguageMetricsBridgeJni implements AndroidLanguageMetricsBridge.Natives { private static AndroidLanguageMetricsBridge.Natives testInstance; public static final JniStaticTestMocker<AndroidLanguageMetricsBridge.Natives> TEST_HOOKS = new org.chromium.base.JniStaticTestMocker<org.chromium.components.language.AndroidLanguageMetricsBridge.Natives>() { @java.lang.Override public void setInstanceForTesting( org.chromium.components.language.AndroidLanguageMetricsBridge.Natives instance) { if (!org.chromium.base.natives.GEN_JNI.TESTING_ENABLED) { throw new RuntimeException("Tried to set a JNI mock when mocks aren't enabled!"); } testInstance = instance; } }; @Override public void reportExplicitLanguageAskStateChanged(String language, boolean added) { GEN_JNI.org_chromium_components_language_AndroidLanguageMetricsBridge_reportExplicitLanguageAskStateChanged(language, added); } public static AndroidLanguageMetricsBridge.Natives get() { if (GEN_JNI.TESTING_ENABLED) { if (testInstance != null) { return testInstance; } if (GEN_JNI.REQUIRE_MOCK) { throw new UnsupportedOperationException("No mock found for the native implementation for org.chromium.components.language.AndroidLanguageMetricsBridge.Natives. The current configuration requires all native implementations to have a mock instance."); } } NativeLibraryLoadedStatus.checkLoaded(false); return new AndroidLanguageMetricsBridgeJni(); } }
[ "joker@cerbook.com" ]
joker@cerbook.com
d0c81baf2f43a13643556f53b01b889fc42ec2d9
1e914120ee2d6577cff712b1d32b1f5ad7489183
/server/src/main/java/com/abiquo/abiserver/commands/stub/impl/LoginResourceStubImpl.java
dcd480a26de002af4829f2edcdf41764bf420499
[]
no_license
david-lopez/abiquo
2d6b802c7de74ca4a6803ac90967678d4a4bd736
ae35b1e6589a36b52141053f9c64af9fef911915
refs/heads/master
2021-01-24T02:38:39.290136
2011-11-28T08:36:53
2011-11-28T08:36:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,910
java
/** * Abiquo community edition * cloud management application for hybrid clouds * Copyright (C) 2008-2010 - Abiquo Holdings S.L. * * This application is free software; you can redistribute it and/or * modify it under the terms of the GNU LESSER GENERAL PUBLIC * LICENSE as published by the Free Software Foundation under * version 3 of the License * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * LESSER GENERAL PUBLIC LICENSE v.3 for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ package com.abiquo.abiserver.commands.stub.impl; import org.apache.wink.client.ClientResponse; import org.apache.wink.client.handlers.BasicAuthSecurityHandler; import com.abiquo.abiserver.commands.stub.AbstractAPIStub; import com.abiquo.abiserver.commands.stub.LoginResourceStub; import com.abiquo.abiserver.pojo.result.DataResult; import com.abiquo.server.core.enterprise.UserDto; public class LoginResourceStubImpl extends AbstractAPIStub implements LoginResourceStub { /** * @see com.abiquo.abiserver.commands.stub.EnterprisesResourceStub#getUserByName(java.lang.String, * java.lang.String) */ @Override public DataResult<UserDto> getUserByName(String user, String password, BasicAuthSecurityHandler basicAuthSecurityHandler) { ClientResponse response = get(createLoginLink(), user, password, basicAuthSecurityHandler); UserDto userDto = response.getEntity(UserDto.class); DataResult<UserDto> data = new DataResult<UserDto>(); data.setData(userDto); return data; } }
[ "serafin.sedano@abiquo.com" ]
serafin.sedano@abiquo.com
96375b4e499bc5d14ef87b8ae4ae11ee0a88e66e
df1a3f7047e24bc03c6735d42214bde6330ade80
/ibas.accounting.service/src/main/java/org/colorcoding/ibas/accounting/service/soap/DataService.java
4ff7f652507e4710e5cd35aac3fdc25e15ae7410
[ "Apache-2.0" ]
permissive
GSGSS/ibas.accounting
4de634ce6b051335189a65485e9cc23539e14061
3e19b3355d69e4e8fe6351dfaed0281565b77cef
refs/heads/master
2020-04-28T08:15:44.960619
2019-03-08T06:46:10
2019-03-08T06:46:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,090
java
package org.colorcoding.ibas.accounting.service.soap; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebService; import org.colorcoding.ibas.bobas.common.Criteria; import org.colorcoding.ibas.bobas.common.OperationResult; import org.colorcoding.ibas.bobas.cxf.WebServicePath; import org.colorcoding.ibas.accounting.bo.dimension.Dimension; import org.colorcoding.ibas.accounting.bo.postingperiod.PostingPeriod; import org.colorcoding.ibas.accounting.bo.project.Project; import org.colorcoding.ibas.accounting.repository.BORepositoryAccounting; /** * Accounting 数据服务JSON */ @WebService @WebServicePath("data") public class DataService extends BORepositoryAccounting { // --------------------------------------------------------------------------------------------// /** * 查询-过账期间 * * @param criteria 查询 * @param token 口令 * @return 操作结果 */ @WebMethod public OperationResult<PostingPeriod> fetchPostingPeriod(@WebParam(name = "criteria") Criteria criteria, @WebParam(name = "token") String token) { return super.fetchPostingPeriod(criteria, token); } /** * 保存-过账期间 * * @param bo 对象实例 * @param token 口令 * @return 操作结果 */ @WebMethod public OperationResult<PostingPeriod> savePostingPeriod(@WebParam(name = "bo") PostingPeriod bo, @WebParam(name = "token") String token) { return super.savePostingPeriod(bo, token); } // --------------------------------------------------------------------------------------------// /** * 查询-项目 * * @param criteria 查询 * @param token 口令 * @return 操作结果 */ @WebMethod public OperationResult<Project> fetchProject(@WebParam(name = "criteria") Criteria criteria, @WebParam(name = "token") String token) { return super.fetchProject(criteria, token); } /** * 保存-项目 * * @param bo 对象实例 * @param token 口令 * @return 操作结果 */ @WebMethod public OperationResult<Project> saveProject(@WebParam(name = "bo") Project bo, @WebParam(name = "token") String token) { return super.saveProject(bo, token); } // --------------------------------------------------------------------------------------------// /** * 查询-维度 * * @param criteria 查询 * @param token 口令 * @return 操作结果 */ @WebMethod public OperationResult<Dimension> fetchDimension(@WebParam(name = "criteria") Criteria criteria, @WebParam(name = "token") String token) { return super.fetchDimension(criteria, token); } /** * 保存-维度 * * @param bo 对象实例 * @param token 口令 * @return 操作结果 */ @WebMethod public OperationResult<Dimension> saveDimension(@WebParam(name = "bo") Dimension bo, @WebParam(name = "token") String token) { return super.saveDimension(bo, token); } // --------------------------------------------------------------------------------------------// }
[ "niuren.zhu@icloud.com" ]
niuren.zhu@icloud.com
420f5a7bc4e00a5f29eb62c728403637c5c5eceb
c78e8338af6575af291754da1f51e0bccd00521d
/dev-timeline-app-api/src/main/java/com/sky7th/devtimeline/api/user/controller/AuthController.java
55a9daac4685d81576370ac722707b923b0f04d7
[]
no_license
sky7th/dev-timeline
0099153c440ae15dbebb1fa089c91b06e960d239
f46fc6cd37a9ef85fa61d42cdad3499466793e56
refs/heads/master
2023-04-08T23:55:49.860902
2021-04-19T16:33:28
2021-04-19T16:33:28
250,259,244
7
1
null
2020-11-25T06:47:49
2020-03-26T12:59:05
Java
UTF-8
Java
false
false
812
java
package com.sky7th.devtimeline.api.user.controller; import com.sky7th.devtimeline.api.user.service.AuthService; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; @RequiredArgsConstructor @Controller @RequestMapping("/auth") public class AuthController { private final AuthService authService; @GetMapping("/signup/confirm") public String registerConfirm(@RequestParam(value = "key", required = false) String key, Model model) { model.addAttribute("message", authService.emailVerify(key)); return "email-confirm"; } }
[ "xoghk0321@gmail.com" ]
xoghk0321@gmail.com
79c932ad165ea1727ab3f992184170d2033f70ff
2bc2eadc9b0f70d6d1286ef474902466988a880f
/tags/mule-3.0.0-M2-20091124/transports/file/src/test/java/org/mule/transport/file/FileConnectorTestCase.java
fd8063ef57d676bcfc56f30aaa00446b2334a1b5
[]
no_license
OrgSmells/codehaus-mule-git
085434a4b7781a5def2b9b4e37396081eaeba394
f8584627c7acb13efdf3276396015439ea6a0721
refs/heads/master
2022-12-24T07:33:30.190368
2020-02-27T19:10:29
2020-02-27T19:10:29
243,593,543
0
0
null
2022-12-15T23:30:00
2020-02-27T18:56:48
null
UTF-8
Java
false
false
5,258
java
/* * $Id$ * -------------------------------------------------------------------------------------- * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com * * The software in this package is published under the terms of the CPAL v1.0 * license, a copy of which has been included with this distribution in the * LICENSE.txt file. */ package org.mule.transport.file; import org.mule.api.endpoint.EndpointBuilder; import org.mule.api.endpoint.InboundEndpoint; import org.mule.api.endpoint.OutboundEndpoint; import org.mule.api.lifecycle.InitialisationException; import org.mule.api.service.Service; import org.mule.api.transport.Connector; import org.mule.api.transport.MessageReceiver; import org.mule.endpoint.EndpointURIEndpointBuilder; import org.mule.endpoint.URIBuilder; import org.mule.transport.AbstractConnectorTestCase; import org.mule.util.FileUtils; import java.io.File; public class FileConnectorTestCase extends AbstractConnectorTestCase { static final long POLLING_FREQUENCY = 1234; static final long POLLING_FREQUENCY_OVERRIDE = 4321; private File validMessage; @Override protected void doSetUp() throws Exception { super.doSetUp(); // The working directory is deleted on tearDown File tempDir = FileUtils.newFile(muleContext.getConfiguration().getWorkingDirectory(), "tmp"); if (!tempDir.exists()) { tempDir.mkdirs(); } validMessage = File.createTempFile("simple", ".mule", tempDir); assertNotNull(validMessage); FileUtils.writeStringToFile(validMessage, "validMessage"); } @Override protected void doTearDown() throws Exception { // TestConnector dispatches events via the test: protocol to test://test // endpoints, which seems to end up in a directory called "test" :( FileUtils.deleteTree(FileUtils.newFile(getTestConnector().getProtocol())); super.doTearDown(); } /* * (non-Javadoc) * * @see org.mule.tck.providers.AbstractConnectorTestCase#createConnector() */ public Connector createConnector() throws Exception { FileConnector connector = new FileConnector(); connector.setName("testFile"); connector.setOutputAppend(true); return connector; } public String getTestEndpointURI() { return "file://" + muleContext.getConfiguration().getWorkingDirectory(); } public Object getValidMessage() throws Exception { return validMessage; } /** * Test polling frequency set on a connector. */ public void testConnectorPollingFrequency() throws Exception { FileConnector connector = (FileConnector) getConnector(); connector.setPollingFrequency(POLLING_FREQUENCY); InboundEndpoint endpoint = getTestInboundEndpoint("simple"); Service service = getTestService(); MessageReceiver receiver = connector.createReceiver(service, endpoint); assertEquals("Connector's polling frequency must not be ignored.", POLLING_FREQUENCY, ((FileMessageReceiver) receiver).getFrequency()); } /** * Test polling frequency overridden at an endpoint level. */ public void testPollingFrequencyEndpointOverride() throws Exception { FileConnector connector = (FileConnector) getConnector(); // set some connector-level value which we are about to override connector.setPollingFrequency(-1); InboundEndpoint endpoint = getTestInboundEndpoint("simple"); // Endpoint wants String-typed properties endpoint.getProperties().put(FileConnector.PROPERTY_POLLING_FREQUENCY, String.valueOf(POLLING_FREQUENCY_OVERRIDE)); Service service = getTestService(); MessageReceiver receiver = connector.createReceiver(service, endpoint); assertEquals("Polling frequency endpoint override must not be ignored.", POLLING_FREQUENCY_OVERRIDE, ((FileMessageReceiver) receiver).getFrequency()); } public void testOutputAppendEndpointOverride() throws Exception { FileConnector connector = (FileConnector) getConnector(); EndpointBuilder endpointBuilder = new EndpointURIEndpointBuilder(new URIBuilder("file://foo", muleContext), muleContext); OutboundEndpoint endpoint = endpointBuilder.buildOutboundEndpoint(); // Endpoint wants String-typed properties endpoint.getProperties().put("outputAppend", "true"); try { connector.getDispatcherFactory().create(endpoint); fail("outputAppend cannot be configured on File endpoints"); } catch (IllegalArgumentException e) { //expected } } public void testOnlySingleDispatcherPerEndpoint() throws InitialisationException { // MULE-1773 implies that we must only have one dispatcher per endpoint FileConnector connector = (FileConnector) getConnector(); assertEquals(1, connector.getMaxDispatchersActive()); connector.setMaxDispatchersActive(2); // value must be unchanged assertEquals(1, connector.getMaxDispatchersActive()); } }
[ "rossmason@bf997673-6b11-0410-b953-e057580c5b09" ]
rossmason@bf997673-6b11-0410-b953-e057580c5b09
d127f0b601319b6ce1d1dfb13788274ae09f4c28
96196a9b6c8d03fed9c5b4470cdcf9171624319f
/decompiled/cz/msebera/android/httpclient/impl/client/cache/CacheEntryUpdater.java
f44343e35d92b964270b55fe5728be604b3b31dd
[]
no_license
manciuszz/KTU-Asmens-Sveikatos-Ugdymas
8ef146712919b0fb9ad211f6cb7cbe550bca10f9
41e333937e8e62e1523b783cdb5aeedfa1c7fcc2
refs/heads/master
2020-04-27T03:40:24.436539
2019-03-05T22:39:08
2019-03-05T22:39:08
174,031,152
0
0
null
null
null
null
UTF-8
Java
false
false
4,174
java
package cz.msebera.android.httpclient.impl.client.cache; import cz.msebera.android.httpclient.Header; import cz.msebera.android.httpclient.HttpResponse; import cz.msebera.android.httpclient.HttpStatus; import cz.msebera.android.httpclient.annotation.Immutable; import cz.msebera.android.httpclient.client.cache.HttpCacheEntry; import cz.msebera.android.httpclient.client.cache.Resource; import cz.msebera.android.httpclient.client.cache.ResourceFactory; import cz.msebera.android.httpclient.client.utils.DateUtils; import cz.msebera.android.httpclient.util.Args; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.Date; import java.util.List; import java.util.ListIterator; @Immutable class CacheEntryUpdater { private final ResourceFactory resourceFactory; CacheEntryUpdater() { this(new HeapResourceFactory()); } CacheEntryUpdater(ResourceFactory resourceFactory) { this.resourceFactory = resourceFactory; } public HttpCacheEntry updateCacheEntry(String requestId, HttpCacheEntry entry, Date requestDate, Date responseDate, HttpResponse response) throws IOException { Args.check(response.getStatusLine().getStatusCode() == HttpStatus.SC_NOT_MODIFIED, "Response must have 304 status code"); Header[] mergedHeaders = mergeHeaders(entry, response); Resource resource = null; if (entry.getResource() != null) { resource = this.resourceFactory.copy(requestId, entry.getResource()); } return new HttpCacheEntry(requestDate, responseDate, entry.getStatusLine(), mergedHeaders, resource); } protected Header[] mergeHeaders(HttpCacheEntry entry, HttpResponse response) { if (entryAndResponseHaveDateHeader(entry, response) && entryDateHeaderNewerThenResponse(entry, response)) { return entry.getAllHeaders(); } List<Header> cacheEntryHeaderList = new ArrayList(Arrays.asList(entry.getAllHeaders())); removeCacheHeadersThatMatchResponse(cacheEntryHeaderList, response); removeCacheEntry1xxWarnings(cacheEntryHeaderList, entry); cacheEntryHeaderList.addAll(Arrays.asList(response.getAllHeaders())); return (Header[]) cacheEntryHeaderList.toArray(new Header[cacheEntryHeaderList.size()]); } private void removeCacheHeadersThatMatchResponse(List<Header> cacheEntryHeaderList, HttpResponse response) { for (Header responseHeader : response.getAllHeaders()) { ListIterator<Header> cacheEntryHeaderListIter = cacheEntryHeaderList.listIterator(); while (cacheEntryHeaderListIter.hasNext()) { if (((Header) cacheEntryHeaderListIter.next()).getName().equals(responseHeader.getName())) { cacheEntryHeaderListIter.remove(); } } } } private void removeCacheEntry1xxWarnings(List<Header> cacheEntryHeaderList, HttpCacheEntry entry) { ListIterator<Header> cacheEntryHeaderListIter = cacheEntryHeaderList.listIterator(); while (cacheEntryHeaderListIter.hasNext()) { if ("Warning".equals(((Header) cacheEntryHeaderListIter.next()).getName())) { for (Header cacheEntryWarning : entry.getHeaders("Warning")) { if (cacheEntryWarning.getValue().startsWith("1")) { cacheEntryHeaderListIter.remove(); } } } } } private boolean entryDateHeaderNewerThenResponse(HttpCacheEntry entry, HttpResponse response) { Date entryDate = DateUtils.parseDate(entry.getFirstHeader("Date").getValue()); Date responseDate = DateUtils.parseDate(response.getFirstHeader("Date").getValue()); if (entryDate == null || responseDate == null || !entryDate.after(responseDate)) { return false; } return true; } private boolean entryAndResponseHaveDateHeader(HttpCacheEntry entry, HttpResponse response) { if (entry.getFirstHeader("Date") == null || response.getFirstHeader("Date") == null) { return false; } return true; } }
[ "evilquaint@gmail.com" ]
evilquaint@gmail.com
aa3ba2cc7e97ac6d1dc615b1c83b60998bd1c74f
7c29eb22c9d4a55b87c1cb4c9e31b04c2a9b2b31
/idata/src/main/java/com/nmpiesat/idata/interfacedata/service/InterfaceDataService.java
8130ff4945d39ab9d8f9e78de082d7228db1602f
[]
no_license
523499159/kettle-web
afa9f60958c86a3119bba406edf434d63a3d3c4a
d55c8a38c572cf58d34d3fee243a9026bb4b5b69
refs/heads/master
2023-03-17T22:50:28.851262
2020-08-31T07:02:53
2020-08-31T07:02:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,774
java
package com.nmpiesat.idata.interfacedata.service; import com.nmpiesat.idata.interfacedata.dao.InterfaceDataDAO; import com.nmpiesat.idata.interfacedata.entity.InterfaceData; import com.nmpiesat.idata.user.entity.MusicInfo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; import java.util.Map; @Service public class InterfaceDataService { @Autowired private InterfaceDataDAO interfaceDataDao; public List<InterfaceData> getAllInter(String userid) { return interfaceDataDao.getAllInter(userid); } public List<Map<String,Object>> getInterface(String id,String userid) { return interfaceDataDao.getInterface(id,userid); } public Map<String,Object> getFactor(String id) { return interfaceDataDao.getFactor(id); } public List<Map<String,Object>> newInterface() { return interfaceDataDao.newInterface(); } public Map<String, Object> getInterForId(String api) { return interfaceDataDao.getInterForId(api); } public List<Map<String, Object>> getEleForInter(String id) { return interfaceDataDao.getEleForInter(id); } public Map<String, Object> getEleMent(String eleCode) { return interfaceDataDao.getEleMent(eleCode); } public Map<String, Object> getAdminCode(String api) { return interfaceDataDao.getAdminCode(api); } public List<Map<String, Object>> getAdminCodes() { return interfaceDataDao.getAdminCodes(); } public MusicInfo getMusic(String userid) { return interfaceDataDao.getMusic(userid); } public List<Map<String, Object>> getAllElements() { return interfaceDataDao.getAllElements(); } }
[ "18309292271@163.com" ]
18309292271@163.com
3f76cabade3d8825107ac7b6e40d45021b96c103
cdc02827dd91439293e0ebb7a11ba934f9ff5bd6
/tsl_Nacha/src/tsl_nacha/dominio/Categorias.java
6e3ccb0158f03b5e420392feca099de1706a0bff
[]
no_license
BGCX067/facturacion2011-svn-to-git
34b268f3710ebb138add49dec47d69865357f577
9aaba8e5c3f9fc3ed1173faead69ecf855f6fc2a
refs/heads/master
2016-09-01T08:55:49.285664
2015-12-28T14:10:24
2015-12-28T14:10:24
48,704,937
0
0
null
null
null
null
UTF-8
Java
false
false
1,611
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package tsl_nacha.dominio; import java.util.ArrayList; import tsl_nacha.persistencia.Broker; import tsl_nacha.persistencia.FachadaBaseDeDatos; /** * * @author Enrico */ public class Categorias implements IPersistente { private int cNumero; private String cNombre; Broker objBroker; public String getcNombre() { return cNombre; } public void setcNombre(String cNombre) { this.cNombre = cNombre; } public int getcNumero() { return cNumero; } public void setcNumero(int cNumero) { this.cNumero = cNumero; } public Categorias(int cNumero, String cNombre) { this.cNumero = cNumero; this.cNombre = cNombre; objBroker = FachadaBaseDeDatos.getInstance().obtenerBroker(this); } public Categorias() { objBroker = FachadaBaseDeDatos.getInstance().obtenerBroker(this); } @Override public String toString() { return cNombre; } @Override public void guardar() { objBroker.guardar(); } @Override public void modificar() { objBroker.modificar(); } @Override public void eliminar() { throw new UnsupportedOperationException("Not supported yet."); } @Override public ArrayList obtenerTodos() { return objBroker.obtenerTodos(); } @Override public ArrayList obtenerTodos(int numero) { throw new UnsupportedOperationException("Not supported yet."); } }
[ "you@example.com" ]
you@example.com
87796ec4afbd347938d5ef3770a4df7a3efe290a
9d32980f5989cd4c55cea498af5d6a413e08b7a2
/A92s_10_0_0/src/main/java/com/mediatek/server/anr/EventLogTags.java
4401f58895dc3f5340ab2b29aeb688225f8067cf
[]
no_license
liuhaosource/OppoFramework
e7cc3bcd16958f809eec624b9921043cde30c831
ebe39acabf5eae49f5f991c5ce677d62b683f1b6
refs/heads/master
2023-06-03T23:06:17.572407
2020-11-30T08:40:07
2020-11-30T08:40:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
416
java
package com.mediatek.server.anr; import android.util.EventLog; public class EventLogTags { public static final int AM_ANR = 30008; private EventLogTags() { } public static void writeAmAnr(int user, int pid, String packageName, int flags, String reason) { EventLog.writeEvent((int) AM_ANR, Integer.valueOf(user), Integer.valueOf(pid), packageName, Integer.valueOf(flags), reason); } }
[ "dstmath@163.com" ]
dstmath@163.com
94712c423c29a583b1c6c918e8dd73f2986ac0bb
c7b799625c95d4213f86490ea16806857662cc2a
/app/src/main/java/co/id/wargamandiri/models/UploadKonfirmasiResponse.java
a519e3c548aff304f55cfb70e6ad28848d0e52de
[]
no_license
kyky04/warga-mandiri
455ea814ee8ba35292bbde154e53bf6b172fa2e9
a2c9c95509b324cac70fc3180cfc6c78cb826571
refs/heads/master
2020-03-26T13:44:03.235391
2018-12-30T01:02:46
2018-12-30T01:02:46
144,954,050
0
0
null
null
null
null
UTF-8
Java
false
false
721
java
package co.id.wargamandiri.models; import com.google.gson.annotations.SerializedName; import co.id.wargamandiri.models.transaksi.konfirmasi.DataItemKonfirmasi; public class UploadKonfirmasiResponse { @SerializedName("data") private DataItemKonfirmasi data; @SerializedName("status") private boolean status; public void setData(DataItemKonfirmasi data){ this.data = data; } public DataItemKonfirmasi getData(){ return data; } public void setStatus(boolean status){ this.status = status; } public boolean isStatus(){ return status; } @Override public String toString(){ return "UploadBannerResponse{" + "data = '" + data + '\'' + ",status = '" + status + '\'' + "}"; } }
[ "rizki@pragmainf.co.id" ]
rizki@pragmainf.co.id
53a57c61197c6945a976f9a4c5135073185c7209
1a132432388f4d8eee6fb9c74da8a88b99707c74
/src/main/java/com/belk/car/webapp/taglib/ExtendedCheckboxesTag.java
49e27ebeb157fcf926fc04f266794de06053792f
[]
no_license
Subbareddyg/CARS_new
7ed525e6f5470427e6343becd62e645e43558a6c
3024c932b54a7e0d808d887210b819bba2ccd1c1
refs/heads/master
2020-03-14T14:27:02.793772
2018-04-30T23:25:40
2018-04-30T23:25:40
131,653,774
0
0
null
null
null
null
UTF-8
Java
false
false
4,666
java
package com.belk.car.webapp.taglib; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.Iterator; import javax.servlet.jsp.JspException; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang.StringUtils; import org.springframework.beans.BeanWrapper; import org.springframework.beans.BeanWrapperImpl; import org.springframework.util.Assert; import org.springframework.util.ObjectUtils; import org.springframework.web.bind.WebDataBinder; import org.springframework.web.servlet.tags.form.CheckboxesTag; import org.springframework.web.servlet.tags.form.TagWriter; import com.belk.car.util.GenericComparator; /** * Generate the Extended Checkboxes tag * * @author antoniog */ public class ExtendedCheckboxesTag extends CheckboxesTag { private Object useritems; private String sortBy ; /** * @return the userItems */ public Object getUseritems() { return useritems; } /** * @param userItems the userItems to set */ public void setUseritems(Object useritems) { Assert.notNull(useritems, "'useritems' must not be null"); this.useritems = useritems; } public String getSortBy() { return sortBy; } public void setSortBy(String sortBy) { this.sortBy = sortBy; } protected int writeTagContent(TagWriter tagWriter) throws JspException { Object items = getItems(); Object itemsObject = (items instanceof String ? evaluate("items", (String) items) : items); Object userItems = getUseritems(); Object userItemsObject = (items instanceof String ? evaluate("useritems", (String) useritems) : useritems); String itemValue = getItemValue(); String itemLabel = getItemLabel(); String valueProperty = (itemValue != null ? ObjectUtils.getDisplayString(evaluate("itemValue", itemValue)) : null); String labelProperty = (itemLabel != null ? ObjectUtils.getDisplayString(evaluate("itemLabel", itemLabel)) : null); if (itemsObject == null) { throw new IllegalArgumentException("Attribute 'items' is required and must be a Collection"); } if (userItemsObject == null) { throw new IllegalArgumentException("Attribute 'useritems' is required and must be a Collection"); } if (!(itemsObject instanceof Collection)) { throw new IllegalArgumentException("Attribute 'items' must be a Collection"); } if (!(itemsObject instanceof Collection)) { throw new IllegalArgumentException("Attribute 'useritems' must be a Collection"); } final Collection optionCollection = (Collection) itemsObject; final Collection userOptionCollection = (Collection) userItemsObject; Collection filteredCollection = CollectionUtils.disjunction(optionCollection, userOptionCollection); if (StringUtils.isNotBlank(sortBy)) { ArrayList l = new ArrayList(filteredCollection); Comparator gc = new GenericComparator(sortBy); Collections.sort(l, gc); filteredCollection = l; } int itemIndex = 0; for (Iterator it = filteredCollection.iterator(); it.hasNext(); itemIndex++) { Object item = it.next(); writeObjectEntry(tagWriter, valueProperty, labelProperty, item, itemIndex); } if (!isDisabled()) { // Write out the 'field was present' marker. tagWriter.startTag("input"); tagWriter.writeAttribute("type", "hidden"); tagWriter.writeAttribute("name", WebDataBinder.DEFAULT_FIELD_MARKER_PREFIX + getName()); tagWriter.writeAttribute("value", "on"); tagWriter.endTag(); } return EVAL_PAGE; } private void writeObjectEntry(TagWriter tagWriter, String valueProperty, String labelProperty, Object item, int itemIndex) throws JspException { BeanWrapper wrapper = new BeanWrapperImpl(item); Object renderValue = (valueProperty != null ? wrapper.getPropertyValue(valueProperty) : item); Object renderLabel = (labelProperty != null ? wrapper.getPropertyValue(labelProperty) : item); writeCheckboxTag(tagWriter, renderValue, renderLabel, itemIndex); } private void writeCheckboxTag(TagWriter tagWriter, Object value, Object label, int itemIndex) throws JspException { tagWriter.startTag(getElement()); if (itemIndex > 0 && this.getDelimiter() != null) { tagWriter.appendValue(ObjectUtils.getDisplayString(evaluate("delimiter", this.getDelimiter()))); } tagWriter.startTag("input"); writeDefaultAttributes(tagWriter); tagWriter.writeAttribute("type", "checkbox"); renderSingleValue(value, tagWriter); tagWriter.appendValue(label.toString()); tagWriter.endTag(); tagWriter.endTag(); } @Override public void release() { super.release() ; this.useritems = null ; this.sortBy = null ; } }
[ "subba_gunjikunta@belk.com" ]
subba_gunjikunta@belk.com
4e0274c9410195764bc1b7fdca1168bad09d89fe
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Time/23/org/joda/time/chrono/GJChronology_ImpreciseCutoverField_940.java
09641e15b30c8930ba79286675a17c0c49c458b1
[]
no_license
hvdthong/NetML
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
9bb103da21327912e5a29cbf9be9ff4d058731a5
refs/heads/master
2021-06-30T15:03:52.618255
2020-10-07T01:58:48
2020-10-07T01:58:48
150,383,588
1
1
null
2018-09-26T07:08:45
2018-09-26T07:08:44
null
UTF-8
Java
false
false
2,828
java
org joda time chrono implement gregorian julian calendar system calendar system world recommend link iso chronolog isochronolog gregorian calendar replac julian calendar point time chronolog switch control paramet instanc getinst method cutov set date gregorian calendar institut octob date chronolog prolept julian calendar prolept mean extend indefinit julian calendar leap year year gregorian special rule year meaning result obtain input valu julian leap year irregular bce julian calendar chronolog differ link java util gregorian calendar gregoriancalendar gregorian calendar gregoriancalendar year bce return correctli year bce return year era yearofera field produc result compat gregorian calendar gregoriancalendar julian calendar year year year gregorian cutov date year julian year defin word prolept gregorian chronolog year creat pure prolept julian chronolog link julian chronolog julianchronolog creat pure prolept gregorian chronolog link gregorian chronolog gregorianchronolog chronolog gjchronolog thread safe immut author brian neill o'neil author stephen colebourn chronolog gjchronolog assembl chronolog assembledchronolog share durat field creat param durat field durationfield share durat field imprecis cutov field imprecisecutoverfield date time field datetimefield julian field julianfield date time field datetimefield gregorian field gregorianfield durat field durationfield durat field durationfield cutov milli cutovermilli convert weekyear convertbyweekyear julian field julianfield gregorian field gregorianfield cutov milli cutovermilli convert weekyear convertbyweekyear durat field durationfield durat field durationfield link durat field linkeddurationfield durat field idurationfield durat field idurationfield durat field durationfield
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
15db6b8179c3e424a8bb480a1ef6aeb1d73d58a0
8af1164bac943cef64e41bae312223c3c0e38114
/results-java/shardingjdbc--sharding-jdbc/2f023dd28d672e5c7073194b6838fb014e8dc00c/after/ParserUnsupportedException.java
1cb92fa5c803158aef1c3cf3d6d602955e1cf410
[]
no_license
fracz/refactor-extractor
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
dd5e82bfcc376e74a99e18c2bf54c95676914272
refs/heads/master
2021-01-19T06:50:08.211003
2018-11-30T13:00:57
2018-11-30T13:00:57
87,353,478
0
0
null
null
null
null
UTF-8
Java
false
false
1,102
java
/* * Copyright 1999-2015 dangdang.com. * <p> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * 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. * </p> */ package com.dangdang.ddframe.rdb.sharding.parser.sql.parser; import com.dangdang.ddframe.rdb.sharding.parser.sql.lexer.token.TokenType; public class ParserUnsupportedException extends RuntimeException { private static final long serialVersionUID = -4968036951399076811L; private static final String MESSAGE = "Not supported token '%s'."; public ParserUnsupportedException(final TokenType tokenType) { super(String.format(MESSAGE, tokenType.toString())); } }
[ "fraczwojciech@gmail.com" ]
fraczwojciech@gmail.com
5c73f05c77e46c0c1d2202fd70be0c740535d78a
e90c33084a91d5fe259037542e4fca2f15eb0395
/src/main/java/br/ufpa/testealunos/web/rest/errors/FieldErrorVM.java
b731421d2b243d59523c4517cdc37add4f482c54
[]
no_license
AlvesGil/testealunos
eb9bf47ad6194bdd0d4b953f73d909f6b7c9d2b1
d8bb1709eb28ff547876694d656c233f79a67bbe
refs/heads/master
2020-04-01T19:04:52.639610
2018-10-17T22:47:22
2018-10-17T22:47:22
153,532,911
0
0
null
2018-10-20T03:40:25
2018-10-17T22:45:05
Java
UTF-8
Java
false
false
651
java
package br.ufpa.testealunos.web.rest.errors; import java.io.Serializable; public class FieldErrorVM implements Serializable { private static final long serialVersionUID = 1L; private final String objectName; private final String field; private final String message; public FieldErrorVM(String dto, String field, String message) { this.objectName = dto; this.field = field; this.message = message; } public String getObjectName() { return objectName; } public String getField() { return field; } public String getMessage() { return message; } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
0dadae291e971d99f22c6fa5f607acc4cb52490f
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
/com.tencent.mm/res/raw/android_wear_micro_apk_apk/classes.jar/com/google/android/gms/common/e.java
9eba3d3d117989d983a4f78988d04413d80d3690
[]
no_license
tsuzcx/qq_apk
0d5e792c3c7351ab781957bac465c55c505caf61
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
refs/heads/main
2022-07-02T10:32:11.651957
2022-02-01T12:41:38
2022-02-01T12:41:38
453,860,108
36
9
null
2022-01-31T09:46:26
2022-01-31T02:43:22
Java
UTF-8
Java
false
false
1,445
java
package com.google.android.gms.common; import android.app.Dialog; import android.content.DialogInterface; import android.content.DialogInterface.OnCancelListener; import android.support.v4.app.k; import android.support.v4.app.t; import com.google.android.gms.common.internal.d; public final class e extends k { private DialogInterface.OnCancelListener IV = null; private Dialog cm = null; public static e b(Dialog paramDialog, DialogInterface.OnCancelListener paramOnCancelListener) { e locale = new e(); paramDialog = (Dialog)d.g(paramDialog, "Cannot display null dialog"); paramDialog.setOnCancelListener(null); paramDialog.setOnDismissListener(null); locale.cm = paramDialog; if (paramOnCancelListener != null) { locale.IV = paramOnCancelListener; } return locale; } public final Dialog G() { if (this.cm == null) { F(); } return this.cm; } public final void a(t paramt, String paramString) { super.a(paramt, paramString); } public final void onCancel(DialogInterface paramDialogInterface) { if (this.IV != null) { this.IV.onCancel(paramDialogInterface); } } } /* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\res\raw\android_wear_micro_apk_apk\classes.jar * Qualified Name: com.google.android.gms.common.e * JD-Core Version: 0.7.0.1 */
[ "98632993+tsuzcx@users.noreply.github.com" ]
98632993+tsuzcx@users.noreply.github.com
57d15a5a233c27e1a9196032147daa40880bdca1
25832a12206d3ed56a67aa5851d64543b1eff8c1
/src/main/java/com/questionaire/myapp/web/rest/errors/EmailAlreadyUsedException.java
360f02c5e31e25f1b2cbca5bb56347b3b1b50edd
[]
no_license
tanguc007/QuestionaireDemo
02eca5fdc7dcbdf9286df3d8d8f384580d8a3323
9e073761c9c3c986db9044403b3c96051abe8e28
refs/heads/master
2022-12-22T01:32:10.530724
2019-10-27T17:30:14
2019-10-27T17:30:14
217,885,800
0
0
null
2022-12-16T04:40:46
2019-10-27T16:47:47
Java
UTF-8
Java
false
false
343
java
package com.questionaire.myapp.web.rest.errors; public class EmailAlreadyUsedException extends BadRequestAlertException { private static final long serialVersionUID = 1L; public EmailAlreadyUsedException() { super(ErrorConstants.EMAIL_ALREADY_USED_TYPE, "Email is already in use!", "userManagement", "emailexists"); } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
9a423e5883bdd7d86af8b3244f77f77c1f674b2f
84c8b918106cb1680b38b8d171bcc656f1c864a9
/jOOQ-test/src/org/jooq/test/h2/generatedclasses/tables/XTestCase_64_69.java
20fb4ebe7405259675f560bf86a9f2fe66b4d663
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
ecruciani/jOOQ
dc7ea7445305d92be2141d1248d28bba95e766ad
649954e76c06aef5e1db7e39ea4943e8c1d28567
refs/heads/master
2021-01-17T21:50:32.952999
2013-02-04T19:45:49
2013-02-04T19:45:49
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,642
java
/** * This class is generated by jOOQ */ package org.jooq.test.h2.generatedclasses.tables; /** * This class is generated by jOOQ. */ @java.lang.SuppressWarnings("all") public class XTestCase_64_69 extends org.jooq.impl.UpdatableTableImpl<org.jooq.test.h2.generatedclasses.tables.records.XTestCase_64_69Record> { private static final long serialVersionUID = -1833027507; /** * The singleton instance of <code>PUBLIC.X_TEST_CASE_64_69</code> */ public static final org.jooq.test.h2.generatedclasses.tables.XTestCase_64_69 X_TEST_CASE_64_69 = new org.jooq.test.h2.generatedclasses.tables.XTestCase_64_69(); /** * The class holding records for this type */ @Override public java.lang.Class<org.jooq.test.h2.generatedclasses.tables.records.XTestCase_64_69Record> getRecordType() { return org.jooq.test.h2.generatedclasses.tables.records.XTestCase_64_69Record.class; } /** * The column <code>PUBLIC.X_TEST_CASE_64_69.ID</code>. */ public static final org.jooq.TableField<org.jooq.test.h2.generatedclasses.tables.records.XTestCase_64_69Record, java.lang.Integer> ID = createField("ID", org.jooq.impl.SQLDataType.INTEGER, X_TEST_CASE_64_69); /** * The column <code>PUBLIC.X_TEST_CASE_64_69.UNUSED_ID</code>. */ public static final org.jooq.TableField<org.jooq.test.h2.generatedclasses.tables.records.XTestCase_64_69Record, java.lang.Integer> UNUSED_ID = createField("UNUSED_ID", org.jooq.impl.SQLDataType.INTEGER, X_TEST_CASE_64_69); /** * No further instances allowed */ private XTestCase_64_69() { super("X_TEST_CASE_64_69", org.jooq.test.h2.generatedclasses.Public.PUBLIC); } /** * {@inheritDoc} */ @Override public org.jooq.UniqueKey<org.jooq.test.h2.generatedclasses.tables.records.XTestCase_64_69Record> getMainKey() { return org.jooq.test.h2.generatedclasses.Keys.PK_X_TEST_CASE_64_69; } /** * {@inheritDoc} */ @Override public java.util.List<org.jooq.UniqueKey<org.jooq.test.h2.generatedclasses.tables.records.XTestCase_64_69Record>> getKeys() { return java.util.Arrays.<org.jooq.UniqueKey<org.jooq.test.h2.generatedclasses.tables.records.XTestCase_64_69Record>>asList(org.jooq.test.h2.generatedclasses.Keys.PK_X_TEST_CASE_64_69); } /** * {@inheritDoc} */ @Override public java.util.List<org.jooq.ForeignKey<org.jooq.test.h2.generatedclasses.tables.records.XTestCase_64_69Record, ?>> getReferences() { return java.util.Arrays.<org.jooq.ForeignKey<org.jooq.test.h2.generatedclasses.tables.records.XTestCase_64_69Record, ?>>asList(org.jooq.test.h2.generatedclasses.Keys.FK_X_TEST_CASE_64_69A, org.jooq.test.h2.generatedclasses.Keys.FK_X_TEST_CASE_64_69B); } }
[ "lukas.eder@gmail.com" ]
lukas.eder@gmail.com
ec83005e81a883416312de9716649b2ed79363a5
c059c73dcc7b43ea638fb2e65eb074836ab74439
/gta-database/src/main/java/com/ortec/gta/database/dao/ActivityDAO.java
c498531911176dd21451ef4f999c0915c814b572
[]
no_license
Romain-P/Webservice-SpringREST-Oauth2
1a8357b45bb827f297f13556de98ca6a8a890daa
e22fb9cdb6e2404ec7a5a47ac8149611c66e540d
refs/heads/master
2021-01-01T17:02:22.277385
2017-10-16T15:05:14
2017-10-16T15:05:14
97,980,159
0
0
null
null
null
null
UTF-8
Java
false
false
1,379
java
package com.ortec.gta.database.dao; import com.ortec.gta.database.entity.Activity; import com.ortec.gta.database.repository.ActivityRepository; import com.ortec.gta.domain.ActivityDTO; import com.ortec.gta.shared.AbstractDAO; import org.springframework.stereotype.Component; import java.util.Set; /** * @Author: romain.pillot * @Date: 10/08/2017 */ @Component("ActivityDAO") public class ActivityDAO extends AbstractDAO<ActivityRepository, Activity, ActivityDTO> { public ActivityDAO() { super(Activity.class, ActivityDTO.class); } public Set<ActivityDTO> findActiveActivities() { return getConverter().fromEntity(getRepository().findByActiveTrue()); } public Set<ActivityDTO> findParentActivities() { return getConverter().fromEntity(getRepository().findByParentActivityIsNullAndActiveTrue()); } public Set<ActivityDTO> findChildrenActivities(ActivityDTO dto) { Activity parent = getConverter().fromDto(dto); return getConverter().fromEntity(getRepository().findByParentActivityAndActiveTrue(parent)); } @Override protected void defineConverter(ConverterBuilder<Activity, ActivityDTO> builder, Converters converters) { builder.convertDto((dto, entity) -> { if (entity.getDeletionDate().getTime() <= 0) entity.setDeletionDate(null); }); } }
[ "romain.pillot@epitech.eu" ]
romain.pillot@epitech.eu
41cd1cd6056d780b9cedc0ca491d8c154a41e2ac
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/java/neo4j/2017/12/EmbeddedGraphDatabase.java
abcb26489c52ca5943a4b37933619bc06de1bfe7
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Java
false
false
4,105
java
/* * Copyright (c) 2002-2017 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package org.neo4j.kernel.internal; import java.io.File; import java.util.Map; import org.neo4j.graphdb.GraphDatabaseService; import org.neo4j.graphdb.factory.GraphDatabaseSettings; import org.neo4j.kernel.GraphDatabaseDependencies; import org.neo4j.kernel.configuration.Config; import org.neo4j.kernel.impl.factory.CommunityEditionModule; import org.neo4j.kernel.impl.factory.DatabaseInfo; import org.neo4j.kernel.impl.factory.GraphDatabaseFacade; import org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory; import static org.neo4j.helpers.collection.Iterables.append; import static org.neo4j.helpers.collection.Iterables.asList; import static org.neo4j.kernel.GraphDatabaseDependencies.newDependencies; /** * An implementation of {@link GraphDatabaseService} that is used to embed Neo4j * in an application. You typically instantiate it by using * {@link org.neo4j.graphdb.factory.GraphDatabaseFactory} like so: * <p> * * <pre> * <code> * GraphDatabaseService graphDb = new GraphDatabaseFactory().newEmbeddedDatabase( &quot;var/graphdb&quot; ); * // ... use Neo4j * graphDb.shutdown(); * </code> * </pre> * <p> * For more information, see {@link GraphDatabaseService}. */ public class EmbeddedGraphDatabase extends GraphDatabaseFacade { /** * Internal constructor used by {@link org.neo4j.graphdb.factory.GraphDatabaseFactory} */ public EmbeddedGraphDatabase( String storeDir, Map<String, String> params, GraphDatabaseFacadeFactory.Dependencies dependencies ) { this( new File( storeDir ), params, dependencies ); } /** * Internal constructor used by {@link org.neo4j.graphdb.factory.GraphDatabaseFactory} */ public EmbeddedGraphDatabase( File storeDir, Map<String, String> params, GraphDatabaseFacadeFactory.Dependencies dependencies ) { create( storeDir, params, dependencies ); } /** * Internal constructor used by ImpermanentGraphDatabase */ protected EmbeddedGraphDatabase( File storeDir, Config config, GraphDatabaseFacadeFactory.Dependencies dependencies ) { create( storeDir, config, dependencies ); } protected void create( File storeDir, Map<String,String> params, GraphDatabaseFacadeFactory.Dependencies dependencies ) { GraphDatabaseDependencies newDependencies = newDependencies( dependencies ) .settingsClasses( asList( append( GraphDatabaseSettings.class, dependencies.settingsClasses() ) ) ); new GraphDatabaseFacadeFactory( DatabaseInfo.COMMUNITY, CommunityEditionModule::new ) .initFacade( storeDir, params, newDependencies, this ); } protected void create( File storeDir, Config config, GraphDatabaseFacadeFactory.Dependencies dependencies ) { GraphDatabaseDependencies newDependencies = newDependencies( dependencies ) .settingsClasses( asList( append( GraphDatabaseSettings.class, dependencies.settingsClasses() ) ) ); new GraphDatabaseFacadeFactory( DatabaseInfo.COMMUNITY, CommunityEditionModule::new ) .initFacade( storeDir, config, newDependencies, this ); } }
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
317368622310876bea19bca9e95bb10543c79661
b4cc861bf70792e1e587efe827dfdb0157442e95
/mcp62/temp/src/minecraft/net/minecraft/src/RenderEndPortal.java
a0399447af6d466230d0ca83a037f40d3b13c4b0
[]
no_license
popnob/ooptest
8c61729343bf0ed113c3038b5a0f681387805ef7
856b396adfe5bb3a2dbdca0e22ea724776d2ce8a
refs/heads/master
2021-01-23T08:04:35.318303
2012-05-30T18:05:25
2012-05-30T18:05:25
4,483,121
4
0
null
null
null
null
UTF-8
Java
false
false
5,031
java
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) braces deadcode fieldsfirst package net.minecraft.src; import java.nio.FloatBuffer; import java.util.Random; import org.lwjgl.opengl.GL11; // Referenced classes of package net.minecraft.src: // TileEntitySpecialRenderer, GLAllocation, TileEntityRenderer, ActiveRenderInfo, // Tessellator, TileEntityEndPortal, TileEntity public class RenderEndPortal extends TileEntitySpecialRenderer { FloatBuffer field_40448_a; public RenderEndPortal() { field_40448_a = GLAllocation.func_1123_d(16); } public void func_40446_a(TileEntityEndPortal p_40446_1_, double p_40446_2_, double p_40446_4_, double p_40446_6_, float p_40446_8_) { float f = (float)field_6509_a.field_1545_j; float f1 = (float)field_6509_a.field_1544_k; float f2 = (float)field_6509_a.field_1543_l; GL11.glDisable(2896); Random random = new Random(31100L); float f3 = 0.75F; for(int i = 0; i < 16; i++) { GL11.glPushMatrix(); float f4 = 16 - i; float f5 = 0.0625F; float f6 = 1.0F / (f4 + 1.0F); if(i == 0) { func_6507_a("/misc/tunnel.png"); f6 = 0.1F; f4 = 65F; f5 = 0.125F; GL11.glEnable(3042); GL11.glBlendFunc(770, 771); } if(i == 1) { func_6507_a("/misc/particlefield.png"); GL11.glEnable(3042); GL11.glBlendFunc(1, 1); f5 = 0.5F; } float f7 = (float)(-(p_40446_4_ + (double)f3)); float f8 = f7 + ActiveRenderInfo.field_41072_b; float f9 = f7 + f4 + ActiveRenderInfo.field_41072_b; float f10 = f8 / f9; f10 = (float)(p_40446_4_ + (double)f3) + f10; GL11.glTranslatef(f, f10, f2); GL11.glTexGeni(8192, 9472, 9217); GL11.glTexGeni(8193, 9472, 9217); GL11.glTexGeni(8194, 9472, 9217); GL11.glTexGeni(8195, 9472, 9216); GL11.glTexGen(8192, 9473, func_40447_a(1.0F, 0.0F, 0.0F, 0.0F)); GL11.glTexGen(8193, 9473, func_40447_a(0.0F, 0.0F, 1.0F, 0.0F)); GL11.glTexGen(8194, 9473, func_40447_a(0.0F, 0.0F, 0.0F, 1.0F)); GL11.glTexGen(8195, 9474, func_40447_a(0.0F, 1.0F, 0.0F, 0.0F)); GL11.glEnable(3168); GL11.glEnable(3169); GL11.glEnable(3170); GL11.glEnable(3171); GL11.glPopMatrix(); GL11.glMatrixMode(5890); GL11.glPushMatrix(); GL11.glLoadIdentity(); GL11.glTranslatef(0.0F, (float)(System.currentTimeMillis() % 0xaae60L) / 700000F, 0.0F); GL11.glScalef(f5, f5, f5); GL11.glTranslatef(0.5F, 0.5F, 0.0F); GL11.glRotatef((float)(i * i * 4321 + i * 9) * 2.0F, 0.0F, 0.0F, 1.0F); GL11.glTranslatef(-0.5F, -0.5F, 0.0F); GL11.glTranslatef(-f, -f2, -f1); f8 = f7 + ActiveRenderInfo.field_41072_b; GL11.glTranslatef((ActiveRenderInfo.field_41074_a * f4) / f8, (ActiveRenderInfo.field_41073_c * f4) / f8, -f1); Tessellator tessellator = Tessellator.field_1512_a; tessellator.func_977_b(); f10 = random.nextFloat() * 0.5F + 0.1F; float f11 = random.nextFloat() * 0.5F + 0.4F; float f12 = random.nextFloat() * 0.5F + 0.5F; if(i == 0) { f10 = f11 = f12 = 1.0F; } tessellator.func_986_a(f10 * f6, f11 * f6, f12 * f6, 1.0F); tessellator.func_991_a(p_40446_2_, p_40446_4_ + (double)f3, p_40446_6_); tessellator.func_991_a(p_40446_2_, p_40446_4_ + (double)f3, p_40446_6_ + 1.0D); tessellator.func_991_a(p_40446_2_ + 1.0D, p_40446_4_ + (double)f3, p_40446_6_ + 1.0D); tessellator.func_991_a(p_40446_2_ + 1.0D, p_40446_4_ + (double)f3, p_40446_6_); tessellator.func_982_a(); GL11.glPopMatrix(); GL11.glMatrixMode(5888); } GL11.glDisable(3042); GL11.glDisable(3168); GL11.glDisable(3169); GL11.glDisable(3170); GL11.glDisable(3171); GL11.glEnable(2896); } private FloatBuffer func_40447_a(float p_40447_1_, float p_40447_2_, float p_40447_3_, float p_40447_4_) { field_40448_a.clear(); field_40448_a.put(p_40447_1_).put(p_40447_2_).put(p_40447_3_).put(p_40447_4_); field_40448_a.flip(); return field_40448_a; } public void func_930_a(TileEntity p_930_1_, double p_930_2_, double p_930_4_, double p_930_6_, float p_930_8_) { func_40446_a((TileEntityEndPortal)p_930_1_, p_930_2_, p_930_4_, p_930_6_, p_930_8_); } }
[ "dicks@negro.com" ]
dicks@negro.com
174ec70bf41c18a0126e0f750a4a6aed5e0c375d
8d24c7c789acc971a9af3280816d5de1b1daecc7
/services/sampleDB33/src/com/sharedtestproject/sampledb33/service/SampleDB33QueryExecutorService.java
dcd8ea8b436a447abad22f395f3c4ac992023b83
[]
no_license
Sushma-M/sharedtestproject
55e175114406ee62c6721930c57bfd00b521980c
6426f65ca690c9eaa997987e9a3cedf4dc016430
refs/heads/master
2021-01-01T05:14:20.893582
2016-04-27T07:19:15
2016-04-27T07:19:15
57,191,437
0
0
null
null
null
null
UTF-8
Java
false
false
907
java
/*Copyright (c) 2016-2017 testing.com All Rights Reserved. This software is the confidential and proprietary information of testing.com You shall not disclose such Confidential Information and shall use it only in accordance with the terms of the source code license agreement you entered into with testing.com*/ package com.sharedtestproject.sampledb33.service; /*This is a Studio Managed File. DO NOT EDIT THIS FILE. Your changes may be reverted by Studio.*/ import java.util.Map; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import com.wavemaker.runtime.data.model.CustomQuery; import com.wavemaker.runtime.data.exception.QueryParameterMismatchException; public interface SampleDB33QueryExecutorService { Page<Object> executeWMCustomQuerySelect(CustomQuery query, Pageable pageable) ; int executeWMCustomQueryUpdate(CustomQuery query) ; }
[ "tejaswi.maryala+62@wavemaker.com" ]
tejaswi.maryala+62@wavemaker.com
7aad060c654b70b904f4c7f84d861c2c7968476d
b18508b82fedc024b32474b91ee44f3c900f9eab
/JacpFX-ui-composition/src/main/java/quickstart/ui/PerspectiveOptionButton.java
d0513b725313e23124a913c647411c6fbdcef35c
[ "Apache-2.0" ]
permissive
orsanakbaba/JacpFX-misc
6dcaac7dbae1be518a9d2bbac34521afad1f59d1
47bd752e252439ec91d149e6ef0cbef3fe3c52cd
refs/heads/master
2022-12-22T05:29:17.720943
2020-01-16T22:32:24
2020-01-16T22:32:24
234,390,538
0
0
Apache-2.0
2022-12-16T05:12:45
2020-01-16T19:01:22
Java
UTF-8
Java
false
false
1,215
java
package quickstart.ui; import javafx.scene.control.Button; import org.jacpfx.rcp.componentLayout.FXComponentLayout; import org.jacpfx.rcp.components.toolBar.JACPOptionButton; import org.jacpfx.rcp.context.Context; /** * Created with IntelliJ IDEA. * User: PETE * Date: 12/02/14 * Time: 21:47 * To change this template use File | Settings | File Templates. */ public class PerspectiveOptionButton extends JACPOptionButton { public PerspectiveOptionButton(final FXComponentLayout layout, final Context context, final String label, final Perspectives excludedPerspective) { super(label, layout); this.initButtons(context, excludedPerspective); } private void initButtons(final Context context, final Perspectives excludedPerspective) { for (Perspectives perspectives : Perspectives.values()) { if (excludedPerspective != perspectives) { Button button = new Button(perspectives.getPerspectiveName()); button.setOnAction((event) -> { context.send(perspectives.getPerspectiveId(), MessageConstants.SWITCH_MESSAGE); }); this.addOption(button); } } } }
[ "amo.ahcp@gmail.com" ]
amo.ahcp@gmail.com
04bb631a9e4978ad3bcaf80420401188aafaa333
2bc2eadc9b0f70d6d1286ef474902466988a880f
/tags/mule-2.0.0-M1/transports/ssl/src/main/java/org/mule/providers/ssl/SslConnector.java
c7a5ce2f9f35e03e4872eb5ce2c65796d4ca741d
[]
no_license
OrgSmells/codehaus-mule-git
085434a4b7781a5def2b9b4e37396081eaeba394
f8584627c7acb13efdf3276396015439ea6a0721
refs/heads/master
2022-12-24T07:33:30.190368
2020-02-27T19:10:29
2020-02-27T19:10:29
243,593,543
0
0
null
2022-12-15T23:30:00
2020-02-27T18:56:48
null
UTF-8
Java
false
false
7,231
java
/* * $Id$ * -------------------------------------------------------------------------------------- * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com * * The software in this package is published under the terms of the MuleSource MPL * license, a copy of which has been included with this distribution in the * LICENSE.txt file. */ package org.mule.providers.ssl; import org.mule.providers.tcp.TcpConnector; import org.mule.umo.lifecycle.CreateException; import org.mule.umo.lifecycle.InitialisationException; import org.mule.umo.security.TlsDirectKeyStore; import org.mule.umo.security.TlsDirectTrustStore; import org.mule.umo.security.TlsIndirectKeyStore; import org.mule.umo.security.TlsProtocolHandler; import org.mule.umo.security.provider.SecurityProviderFactory; import org.mule.umo.security.tls.TlsConfiguration; import java.io.IOException; import java.net.ServerSocket; import java.net.URI; import java.security.Provider; import javax.net.ssl.KeyManagerFactory; import javax.net.ssl.SSLServerSocket; import javax.net.ssl.TrustManagerFactory; /** * <code>SslConnector</code> provides a connector for SSL connections. * Note that the *only* function of the code in this package is to configure and * provide SSL enabled sockets. All other logic is identical to TCP. */ public class SslConnector extends TcpConnector implements TlsDirectKeyStore, TlsIndirectKeyStore, TlsDirectTrustStore, TlsProtocolHandler { // null initial keystore - see below private TlsConfiguration tls = new TlsConfiguration(null); public SslConnector() { setSocketFactory(new SslSocketFactory(tls)); setServerSocketFactory(new SslServerSocketFactory(tls)); // setting this true causes problems as socket closes before handshake finishes setValidateConnections(false); } // @Override protected void doInitialise() throws InitialisationException { super.doInitialise(); // the original logic here was slightly different to other uses of the TlsSupport code - // it appeared to be equivalent to switching anon by whether or not a keyStore was defined // (which seems to make sense), so that is used here. try { tls.initialise(null == getKeyStore(), TlsConfiguration.JSSE_NAMESPACE); } catch (CreateException e) { throw new InitialisationException(e, this); } } // @Override protected ServerSocket getServerSocket(URI uri) throws IOException { SSLServerSocket serverSocket = (SSLServerSocket) super.getServerSocket(uri); serverSocket.setNeedClientAuth(isRequireClientAuthentication()); return serverSocket; } // @Override public String getProtocol() { return "SSL"; } public String getClientKeyStore() { return tls.getClientKeyStore(); } public String getClientKeyStorePassword() { return tls.getClientKeyStorePassword(); } public String getClientKeyStoreType() { return this.tls.getClientKeyStoreType(); } public String getKeyManagerAlgorithm() { return tls.getKeyManagerAlgorithm(); } public KeyManagerFactory getKeyManagerFactory() { return tls.getKeyManagerFactory(); } public String getKeyPassword() { return tls.getKeyPassword(); } public String getKeyStore() { return tls.getKeyStore(); } public String getKeyStoreType() { return tls.getKeyStoreType(); } public String getProtocolHandler() { return tls.getProtocolHandler(); } public Provider getProvider() { return tls.getProvider(); } public SecurityProviderFactory getSecurityProviderFactory() { return tls.getSecurityProviderFactory(); } public String getSslType() { return tls.getSslType(); } public String getKeyStorePassword() { return tls.getKeyStorePassword(); } public String getTrustManagerAlgorithm() { return tls.getTrustManagerAlgorithm(); } public TrustManagerFactory getTrustManagerFactory() { return tls.getTrustManagerFactory(); } public String getTrustStore() { return tls.getTrustStore(); } public String getTrustStorePassword() { return tls.getTrustStorePassword(); } public String getTrustStoreType() { return tls.getTrustStoreType(); } public boolean isExplicitTrustStoreOnly() { return tls.isExplicitTrustStoreOnly(); } public boolean isRequireClientAuthentication() { return tls.isRequireClientAuthentication(); } public void setClientKeyStore(String clientKeyStore) throws IOException { tls.setClientKeyStore(clientKeyStore); } public void setClientKeyStorePassword(String clientKeyStorePassword) { tls.setClientKeyStorePassword(clientKeyStorePassword); } public void setClientKeyStoreType(String clientKeyStoreType) { this.tls.setClientKeyStoreType(clientKeyStoreType); } public void setExplicitTrustStoreOnly(boolean explicitTrustStoreOnly) { tls.setExplicitTrustStoreOnly(explicitTrustStoreOnly); } public void setKeyManagerAlgorithm(String keyManagerAlgorithm) { tls.setKeyManagerAlgorithm(keyManagerAlgorithm); } public void setKeyPassword(String keyPassword) { tls.setKeyPassword(keyPassword); } public void setKeyStore(String keyStore) throws IOException { tls.setKeyStore(keyStore); } public void setKeyStoreType(String keystoreType) { tls.setKeyStoreType(keystoreType); } public void setProtocolHandler(String protocolHandler) { tls.setProtocolHandler(protocolHandler); } public void setProvider(Provider provider) { tls.setProvider(provider); } public void setRequireClientAuthentication(boolean requireClientAuthentication) { tls.setRequireClientAuthentication(requireClientAuthentication); } public void setSecurityProviderFactory(SecurityProviderFactory spFactory) { tls.setSecurityProviderFactory(spFactory); } public void setSslType(String sslType) { tls.setSslType(sslType); } public void setKeyStorePassword(String storePassword) { tls.setKeyStorePassword(storePassword); } public void setTrustManagerAlgorithm(String trustManagerAlgorithm) { tls.setTrustManagerAlgorithm(trustManagerAlgorithm); } public void setTrustManagerFactory(TrustManagerFactory trustManagerFactory) { tls.setTrustManagerFactory(trustManagerFactory); } public void setTrustStore(String trustStore) throws IOException { tls.setTrustStore(trustStore); } public void setTrustStorePassword(String trustStorePassword) { tls.setTrustStorePassword(trustStorePassword); } public void setTrustStoreType(String trustStoreType) { tls.setTrustStoreType(trustStoreType); } }
[ "tcarlson@bf997673-6b11-0410-b953-e057580c5b09" ]
tcarlson@bf997673-6b11-0410-b953-e057580c5b09
08ddb12d8f8d60f1d8b021d910ddd33440162e10
ab56ba13923a0a1b73c0a8a4cc5d39ecfcce258d
/zuihou-backend/zuihou-msgs/zuihou-sms-controller/src/main/java/com/github/zuihou/sms/controller/SmsProviderController.java
5a1a52797eae16f75f9ee308774a3afe66f2cf1b
[ "Apache-2.0" ]
permissive
Liangxujian/zuihou-admin-cloud
04dbef8f1b23c0b023132ea1447307d0ceb70a83
e86999f053cc78c310fea53cdc87403ff3d528cd
refs/heads/master
2020-09-07T00:41:41.959892
2019-11-07T09:56:22
2019-11-07T09:56:22
220,605,261
1
0
null
2019-11-09T07:08:43
2019-11-09T07:08:42
null
UTF-8
Java
false
false
4,633
java
package com.github.zuihou.sms.controller; import com.baomidou.mybatisplus.core.metadata.IPage; import com.github.zuihou.base.BaseController; import com.github.zuihou.base.R; import com.github.zuihou.base.entity.SuperEntity; import com.github.zuihou.database.mybatis.conditions.Wraps; import com.github.zuihou.database.mybatis.conditions.query.LbqWrapper; import com.github.zuihou.dozer.DozerUtils; import com.github.zuihou.log.annotation.SysLog; import com.github.zuihou.sms.dto.SmsProviderSaveDTO; import com.github.zuihou.sms.dto.SmsProviderUpdateDTO; import com.github.zuihou.sms.entity.SmsProvider; import com.github.zuihou.sms.service.SmsProviderService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PutMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * <p> * 前端控制器 * 短信供应商 * </p> * * @author zuihou * @date 2019-08-01 */ @Slf4j @Validated @RestController @RequestMapping("/smsProvider") @Api(value = "SmsProvider", tags = "短信供应商") public class SmsProviderController extends BaseController { @Autowired private SmsProviderService smsProviderService; @Autowired private DozerUtils dozer; /** * 分页查询短信供应商 * * @param data 分页查询对象 * @return 查询结果 */ @ApiOperation(value = "分页查询短信供应商", notes = "分页查询短信供应商") @ApiImplicitParams({ @ApiImplicitParam(name = "current", value = "当前页", dataType = "long", paramType = "query", defaultValue = "1"), @ApiImplicitParam(name = "size", value = "每页显示几条", dataType = "long", paramType = "query", defaultValue = "10"), }) @GetMapping("/page") @SysLog("分页查询短信供应商") public R<IPage<SmsProvider>> page(SmsProvider data) { IPage<SmsProvider> page = getPage(); // 构建值不为null的查询条件 LbqWrapper<SmsProvider> query = Wraps.lbQ(data).orderByDesc(SmsProvider::getCreateTime); smsProviderService.page(page, query); return success(page); } /** * 查询短信供应商 * * @param id 主键id * @return 查询结果 */ @ApiOperation(value = "查询短信供应商", notes = "查询短信供应商") @GetMapping("/{id}") @SysLog("查询短信供应商") public R<SmsProvider> get(@PathVariable Long id) { return success(smsProviderService.getById(id)); } /** * 新增短信供应商 * * @param data 新增对象 * @return 新增结果 */ @ApiOperation(value = "新增短信供应商", notes = "新增短信供应商不为空的字段") @PostMapping @SysLog("新增短信供应商") public R<SmsProvider> save(@RequestBody @Validated SmsProviderSaveDTO data) { SmsProvider smsProvider = dozer.map(data, SmsProvider.class); smsProviderService.save(smsProvider); return success(smsProvider); } /** * 修改短信供应商 * * @param data 修改对象 * @return 修改结果 */ @ApiOperation(value = "修改短信供应商", notes = "修改短信供应商不为空的字段") @PutMapping @SysLog("修改短信供应商") public R<SmsProvider> update(@RequestBody @Validated(SuperEntity.Update.class) SmsProviderUpdateDTO data) { SmsProvider smsProvider = dozer.map(data, SmsProvider.class); smsProviderService.updateById(smsProvider); return success(smsProvider); } /** * 删除短信供应商 * * @param id 主键id * @return 删除结果 */ @ApiOperation(value = "删除短信供应商", notes = "根据id物理删除短信供应商") @DeleteMapping(value = "/{id}") @SysLog("删除短信供应商") public R<Boolean> delete(@PathVariable Long id) { smsProviderService.removeById(id); return success(true); } }
[ "244387066@qq.com" ]
244387066@qq.com
21ae74914f2600feb3e669482a5b20115c3fadd1
d5b03ff253640868c681e550ac17924f6a2a809e
/app/src/main/java/com/bw/forwardfinalsample/model/RegisterAndLoginModel.java
c0b72e4f97c0990810aabd5f331978927b49c7e9
[]
no_license
tongchexinfeitao/ForwardFinalSample
ed441f4a3fb6e7f9c5630c7fb02abf6dc5da6123
ff2c6f8fc64c450b4a88abfbb179eae6c070cb42
refs/heads/master
2021-01-03T19:49:25.518660
2020-02-15T04:00:35
2020-02-15T04:00:35
240,214,108
0
0
null
null
null
null
UTF-8
Java
false
false
3,037
java
package com.bw.forwardfinalsample.model; import com.bw.forwardfinalsample.contract.IRegisterAndLoginContract; import com.bw.forwardfinalsample.model.bean.LoginBean; import com.bw.forwardfinalsample.model.bean.RegisterBean; import com.bw.forwardfinalsample.util.NetUtil; import io.reactivex.Observer; import io.reactivex.android.schedulers.AndroidSchedulers; import io.reactivex.disposables.Disposable; import io.reactivex.schedulers.Schedulers; /** * model层 */ public class RegisterAndLoginModel implements IRegisterAndLoginContract.IModel { @Override public void register(String phone, String pwd, IModelCallBack iModelCallBack) { NetUtil.getInstance().getApi() .register(phone, pwd) //这里对应的是联网请求所在的线程 .subscribeOn(Schedulers.io()) //主线程 .observeOn(AndroidSchedulers.mainThread()) .subscribe(new Observer<RegisterBean>() { @Override public void onSubscribe(Disposable d) { } @Override public void onNext(RegisterBean registerBean) { //只有status 是"0000"才是真正的成功 if ("0000".equals(registerBean.getStatus())) { iModelCallBack.onRegisterSuccess(registerBean); } else { iModelCallBack.onRegisterFailure(new Exception(registerBean.getMessage())); } } @Override public void onError(Throwable e) { iModelCallBack.onRegisterFailure(e); } @Override public void onComplete() { } }); } @Override public void login(String phone, String pwd, IModelCallBack iModelCallBack) { NetUtil.getInstance().getApi() .login(phone, pwd) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe(new Observer<LoginBean>() { @Override public void onSubscribe(Disposable d) { } @Override public void onNext(LoginBean loginBean) { if ("0000".equals(loginBean.getStatus())) { iModelCallBack.onLoginSuccess(loginBean); } else { iModelCallBack.onLoginFailure(new Exception(loginBean.getMessage())); } } @Override public void onError(Throwable e) { iModelCallBack.onLoginFailure(e); } @Override public void onComplete() { } }); } }
[ "tongchexinfeitao@sina.cn" ]
tongchexinfeitao@sina.cn
cf43c91c878fe2eb31ccb8f0113a5bc7b42b62da
4e89d371a5f8cca3c5c7e426af1bcb7f1fc4dda3
/java/data_structure/Graph/GraphNode.java
13fcc12720afb24fd42c5b4bfc0f0068bbfe1452
[]
no_license
bodii/test-code
f2a99450dd3230db2633a554fddc5b8ee04afd0b
4103c80d6efde949a4d707283d692db9ffac4546
refs/heads/master
2023-04-27T16:37:36.685521
2023-03-02T08:38:43
2023-03-02T08:38:43
63,114,995
4
1
null
2023-04-17T08:28:35
2016-07-12T01:29:24
Go
UTF-8
Java
false
false
244
java
/** * 图的节点类 */ public class GraphNode { public Object Node; public GraphNode(Object value) { this.Node = value; } public String toString() { if (Node == null) { return ""; } else { return Node.toString(); } } }
[ "1401097251@qq.com" ]
1401097251@qq.com
12294e0499331ea409a99e915f07b027c06a4f63
52f1fe428a0a4142694c956ae9fe6ee5bab13a9b
/src/main/java/com/ruesga/gerrit/plugins/fcm/handlers/ChangeRevertedEventHandler.java
1db50e2807176ee65c9c00eb8f9511fb435ca910
[ "Apache-2.0" ]
permissive
jruesga/gerrit-cloud-notifications-plugin
4dce4b76c4505aca8833916d3a30d91b2e6b7303
8ec8bccfbc39f8acccacb41ef8801cad957212e3
refs/heads/master
2020-06-20T20:57:14.902944
2016-12-08T12:25:15
2016-12-08T12:25:15
74,822,082
0
1
null
null
null
null
UTF-8
Java
false
false
2,521
java
/* * Copyright (C) 2016 Jorge Ruesga * * 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.ruesga.gerrit.plugins.fcm.handlers; import com.google.gerrit.extensions.annotations.PluginName; import com.google.gerrit.extensions.events.ChangeRevertedListener; import com.google.gerrit.reviewdb.client.AccountProjectWatch.NotifyType; import com.google.gerrit.reviewdb.server.ReviewDb; import com.google.gerrit.server.IdentifiedUser.GenericFactory; import com.google.gerrit.server.config.AllProjectsName; import com.google.gerrit.server.query.change.ChangeQueryBuilder; import com.google.gerrit.server.query.change.ChangeQueryProcessor; import com.google.inject.Inject; import com.google.inject.Provider; import com.ruesga.gerrit.plugins.fcm.messaging.Notification; import com.ruesga.gerrit.plugins.fcm.rest.CloudNotificationEvents; import com.ruesga.gerrit.plugins.fcm.workers.FcmUploaderWorker; public class ChangeRevertedEventHandler extends EventHandler implements ChangeRevertedListener { @Inject public ChangeRevertedEventHandler( @PluginName String pluginName, FcmUploaderWorker uploader, AllProjectsName allProjectsName, ChangeQueryBuilder cqb, ChangeQueryProcessor cqp, Provider<ReviewDb> reviewdb, GenericFactory identifiedUserFactory) { super(pluginName, uploader, allProjectsName, cqb, cqp, reviewdb, identifiedUserFactory); } protected int getEventType() { return CloudNotificationEvents.CHANGE_REVERTED_EVENT; } protected NotifyType getNotifyType() { return NotifyType.SUBMITTED_CHANGES; } @Override public void onChangeReverted(Event event) { Notification notification = createNotification(event); notification.body = formatAccount(event.getWho()) + " reverted this change"; notify(notification, event); } }
[ "jorge@ruesga.com" ]
jorge@ruesga.com
6f76438b80dfe620c0b3b3c2a96e7dd559d67989
70d3c806bbeca375630acf4415cfc9631ca7f066
/fms-notification/src/com/eposi/fms/model/Trip.java
f4b5edfb1ef83801f778160d8155fee501f0dec0
[]
no_license
TieuTruc14/fms-v4
6913cbac14d90eac291aea1a7cae0e225cae5aec
1a19a6a7d4e80165504a166a2418e50bc77e76d2
refs/heads/master
2020-03-31T13:20:51.516752
2018-10-09T13:26:28
2018-10-09T13:26:28
152,251,836
0
0
null
null
null
null
UTF-8
Java
false
false
3,165
java
package com.eposi.fms.model; import java.io.Serializable; import java.util.Date; public class Trip extends AbstractMessage implements IMessage,Serializable{ private static final long serialVersionUID = -7395169875836304578L; private String vehicle; private Date beginTime; private double beginX; private double beginY; private String beginAddress; private Date endTime; private double endX; private double endY; private String endAddress; private float distanceGPS; private int maxSpeedGPS; private String driver; private String licenceKey; private String driverName; private String company; public int getMaxSpeedGPS() { return maxSpeedGPS; } public void setMaxSpeedGPS(int maxSpeedGPS) { this.maxSpeedGPS = maxSpeedGPS; } public Date getBeginTime() { return beginTime; } public void setBeginTime(Date beginTime) { this.beginTime = beginTime; } public double getBeginX() { return beginX; } public void setBeginX(double beginX) { this.beginX = beginX; } public double getBeginY() { return beginY; } public void setBeginY(double beginY) { this.beginY = beginY; } public String getBeginAddress() { return beginAddress; } public void setBeginAddress(String beginAddress) { this.beginAddress = beginAddress; } public Date getEndTime() { return endTime; } public void setEndTime(Date endTime) { this.endTime = endTime; } public double getEndX() { return endX; } public void setEndX(double endX) { this.endX = endX; } public double getEndY() { return endY; } public void setEndY(double endY) { this.endY = endY; } public String getEndAddress() { return endAddress; } public void setEndAddress(String endAddress) { this.endAddress = endAddress; } public float getDistanceGPS() { return distanceGPS; } public void setDistanceGPS(float distanceGPS) { this.distanceGPS = distanceGPS; } public float getTripKm(){ return distanceGPS/1000.0f; } public String getDriver() { return driver; } public void setDriver(String driver) { this.driver = driver; } public String getLicenceKey() { return licenceKey; } public void setLicenceKey(String licenceKey) { this.licenceKey = licenceKey; } public String getDriverName() { return driverName; } public void setDriverName(String driverName) { this.driverName = driverName; } public String getVehicle() { return vehicle; } public void setVehicle(String vehicle) { this.vehicle = vehicle; } public String getCompany() { return company; } public void setCompany(String company) { this.company = company; } // ///////// public long getDuration() { long d = 0; try { d = (endTime.getTime() - beginTime.getTime()); d = d / 1000; } catch (Exception e) { e.printStackTrace(); if(beginTime==null){ System.out.println("Trip.getDuration.ex:beginTime is null"); } if(endTime==null){ System.out.println("Trip.getDuration.ex:endTime is null"); } } return d; } public int getMessageType() { return MESSAGE_TYPE_TRIP; } }
[ "manh.phamtien142@gmail.com" ]
manh.phamtien142@gmail.com
fa73c4d4181773bedee981c49267ff73fdc2baba
065c1f648e8dd061a20147ff9c0dbb6b5bc8b9be
/eclipsejdt_cluster/65956/src_0.java
b5ec1695d5593d7d46fd39a2113d2279f5e6d851
[]
no_license
martinezmatias/GenPat-data-C3
63cfe27efee2946831139747e6c20cf952f1d6f6
b360265a6aa3bb21bd1d64f1fc43c3b37d0da2a4
refs/heads/master
2022-04-25T17:59:03.905613
2020-04-15T14:41:34
2020-04-15T14:41:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,405
java
/******************************************************************************* * Copyright (c) 2000, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.jdt.core.search; /** * A search document encapsulates a content to be either indexed or searched in. * A search particpant creates a search document. * * @since 3.0 */ public class SearchDocument { protected String documentPath; protected SearchParticipant participant; /** * Internal field: do not use */ public org.eclipse.jdt.internal.core.index.Index index; /** * Creates a new search document. * * @param documentPath the path to the document on disk or <code>null</code> if not provided * @param participant the participant that creates the search document */ public SearchDocument(String documentPath, SearchParticipant participant) { this.documentPath = documentPath; this.participant = participant; } /** * Returns the contents of this document. * Contents may be different from actual resource at corresponding document path, * in case of preprocessing. * * @return the contents of this document. */ public byte[] getByteContents() { return null; } /** * Returns the contents of this document. * Contents may be different from actual resource at corresponding document path, * in case of preprocessing. * * @return the contents of this document. */ public char[] getCharContents() { return null; } /** * Returns the encoding for this document * * @return the encoding for this document */ public String getEncoding() { return null; } /** * Returns the participant that created this document * * @return the participant that created this document */ public SearchParticipant getParticipant() { return this.participant; } /** * Returns the path to the original document to publicly mention in index or search results. * * @return the path to the document */ public String getPath() { return this.documentPath; } }
[ "375833274@qq.com" ]
375833274@qq.com
025e6c5d631bda707e8f2a111598e0150247f6a4
ac3a7a8d120d4e281431329c8c9d388fcfb94342
/src/main/java/com/leetcode/algorithm/medium/populatingnextrightpointersineachnode/Solution.java
acc04e6e0e5d1b8da8a93030ec81bcf4faadc2a2
[ "MIT" ]
permissive
paulxi/LeetCodeJava
c69014c24cda48f80a25227b7ac09c6c5d6cfadc
10b4430629314c7cfedaae02c7dc4c2318ea6256
refs/heads/master
2021-04-03T08:03:16.305484
2021-03-02T06:20:24
2021-03-02T06:20:24
125,126,097
3
3
null
null
null
null
UTF-8
Java
false
false
1,281
java
package com.leetcode.algorithm.medium.populatingnextrightpointersineachnode; import com.leetcode.algorithm.common.TreeLinkNode; import java.util.ArrayList; import java.util.List; public class Solution { // public void connect(TreeLinkNode root) { // if (root == null) { // return; // } // // List<TreeLinkNode> list = new ArrayList<>(); // list.add(root); // while (!list.isEmpty()) { // List<TreeLinkNode> temp = new ArrayList<>(); // // for (int i = 0; i < list.size(); i++) { // if (i + 1 < list.size()) { // list.get(i).next = list.get(i + 1); // } // // if (list.get(i).left != null) { // temp.add(list.get(i).left); // } // if (list.get(i).right != null) { // temp.add(list.get(i).right); // } // } // // list = temp; // } // } public void connect(TreeLinkNode root) { TreeLinkNode start = root; while (start != null) { TreeLinkNode curr = start; while (curr != null) { if (curr.left != null) { curr.left.next = curr.right; } if (curr.right != null && curr.next != null) { curr.right.next = curr.next.left; } curr = curr.next; } start = start.left; } } }
[ "paulxi@gmail.com" ]
paulxi@gmail.com
10bfab13f3df16a5e13b2bc31f8a45f546f837e2
5ecd15baa833422572480fad3946e0e16a389000
/framework/MCS-Open/subsystems/runtime/main/api/java/com/volantis/mcs/protocols/html/HTMLPalmWCAConfiguration.java
715b6bbb157496cce8b1472b3b7c1d3359d8dd32
[]
no_license
jabley/volmobserverce
4c5db36ef72c3bb7ef20fb81855e18e9b53823b9
6d760f27ac5917533eca6708f389ed9347c7016d
refs/heads/master
2021-01-01T05:31:21.902535
2009-02-04T02:29:06
2009-02-04T02:29:06
38,675,289
0
1
null
null
null
null
UTF-8
Java
false
false
2,573
java
/* This file is part of Volantis Mobility Server. Volantis Mobility Server is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Volantis Mobility Server is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Volantis Mobility Server.  If not, see <http://www.gnu.org/licenses/>. */ /* ---------------------------------------------------------------------------- * (c) Volantis Systems Ltd 2005. * ---------------------------------------------------------------------------- */ package com.volantis.mcs.protocols.html; /** * The configuration for the {@link HTMLPalmWCA} protocol. */ public class HTMLPalmWCAConfiguration extends HTMLVersion3_2Configuration { /** * Initializes the new instance with the supplied parameters. * */ public HTMLPalmWCAConfiguration() { super(); this.canSupportEvents = false; } } /* =========================================================================== Change History =========================================================================== $Log$ 29-Nov-05 10505/3 pduffin VBM:2005111405 Committing transactions from MCS 3.5.0 (7) 29-Nov-05 10347/3 pduffin VBM:2005111405 Massive changes for performance 23-Nov-05 10402/1 rgreenall VBM:2005110710 Parameterize HTML 3.2 protocol to output border styling if supported by the requesting device. 23-Nov-05 10381/1 rgreenall VBM:2005110710 Parameterize HTML 3.2 protocol to output border styling if supported by the requesting device. 23-Nov-05 10381/1 rgreenall VBM:2005110710 Parameterize HTML 3.2 protocol to output border styling if supported by the requesting device. 22-Sep-05 9540/1 geoff VBM:2005091906 Protocol Parameterisation: Basic Rendundant CSS Property Filtering 15-Sep-05 9512/1 pduffin VBM:2005091408 Committing changes to JIBX to use new schema 01-Sep-05 9375/1 geoff VBM:2005082301 XDIMECP: clean up protocol creation 23-Jun-05 8833/1 pduffin VBM:2005042901 Addressing review comments 19-May-05 8305/1 philws VBM:2005051705 Provide style emulation rendering for HTML Palm WCA version 1.1 =========================================================================== */
[ "iwilloug@b642a0b7-b348-0410-9912-e4a34d632523" ]
iwilloug@b642a0b7-b348-0410-9912-e4a34d632523
53aa690c51e98eac163f72a8729151ee557d5f6b
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/MOCKITO-1b-8-1-SPEA2-WeightedSum:TestLen:CallDiversity/org/mockito/internal/util/reflection/FieldInitializer$ParameterizedConstructorInstantiator_ESTest.java
20101d4d2b24f714b89b2356c829dbb2f107eadd
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
649
java
/* * This file was automatically generated by EvoSuite * Mon Apr 06 17:11:34 UTC 2020 */ package org.mockito.internal.util.reflection; import org.junit.Test; import static org.junit.Assert.*; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true) public class FieldInitializer$ParameterizedConstructorInstantiator_ESTest extends FieldInitializer$ParameterizedConstructorInstantiator_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
9e682bac603041c10054870e18e2248fdd0b6d7d
7c7a762b66dbab84cfb8da71c2d050a884dd7822
/app/src/main/java/com/skynet/psitech/application/AppController.java
b094d738e4c72a2b9799ecf44c4fda2307665026
[]
no_license
duongnv1996/psi-tech
5adfcde36932eec3fd1e92e1718434ce0ce406be
38080f28d0a6f624c8eed15b798a5090f2f91095
refs/heads/master
2020-05-31T07:43:05.922010
2019-06-04T09:36:48
2019-06-04T09:37:02
190,171,054
0
0
null
null
null
null
UTF-8
Java
false
false
6,299
java
package com.skynet.psitech.application; import android.content.Context; import com.blankj.utilcode.util.SPUtils; import com.blankj.utilcode.util.Utils; import com.crashlytics.android.Crashlytics; import com.google.gson.Gson; import com.skynet.psitech.models.Booking; import com.skynet.psitech.models.Cart; import com.skynet.psitech.models.Filter; import com.skynet.psitech.models.Profile; import com.skynet.psitech.utils.AppConstant; import java.util.ArrayList; import java.util.Timer; import java.util.TimerTask; import androidx.multidex.MultiDex; import androidx.multidex.MultiDexApplication; import io.fabric.sdk.android.Fabric; /** * Created by DuongKK on 11/30/2017. */ public class AppController extends MultiDexApplication { private static AppController instance; private Profile mProfileUser; private SPUtils mSetting; private int typeSort = -1; private boolean flagInTrip = true; private boolean toogleInternet; private boolean isReview; private boolean isStartOverQuiz; public static Context context; private Filter filter; Booking booking ; // --- private long timeStart = 0; private long timeStartEachEx = 0; private Timer mActivityTransitionTimer; private TimerTask mActivityTransitionTimerTask; public boolean wasInBackground; private final long MAX_ACTIVITY_TRANSITION_TIME_MS = 2000; private Cart cart; @Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); MultiDex.install(this); } public Cart getCart() { return cart; } public void setCart(Cart cart) { this.cart = cart; } public synchronized static AppController getInstance() { return instance; } public long getTimeStartEachEx() { return timeStartEachEx; } public void setTimeStartEachEx(long timeStartEachEx) { this.timeStartEachEx = timeStartEachEx; } public long getTimeStart() { return timeStart; } public void setTimeStart(long timeStart) { this.timeStart = timeStart; } public Booking getBooking() { return booking; } public void setBooking(Booking booking) { this.booking = booking; } @Override public void onCreate() { super.onCreate(); // Fabric.with(this, new Crashlytics()); // Fabric.with(this, new Crashlytics()); final Fabric fabric = new Fabric.Builder(this) .kits(new Crashlytics()) .debuggable(true) .build(); Fabric.with(fabric); instance = this; Utils.init(this); mSetting = new SPUtils(AppConstant.KEY_SETTING); setmProfileUser(new Gson().fromJson(mSetting.getString(AppConstant.KEY_PROFILE), Profile.class)); cart = new Cart(); cart.setListProduct(new ArrayList<>()); // CalligraphyConfig.initDefault(new CalligraphyConfig.Builder() // .setDefaultFontPath("fonts/SF-UI-Text-Regular.otf") // .setFontAttrId(R.attr.fontPath) // .build() // ); context = getApplicationContext(); // Permission[] permissions = new Permission[] { // Permission.EMAIL, // Permission.PUBLISH_ACTION // }; // SimpleFacebookConfiguration configuration = new SimpleFacebookConfiguration.Builder() // .setAppId(getString(R.string.facebook_app_id)) // .setNamespace("nailsmap") // .setPermissions(permissions) // .build(); // SimpleFacebook.setConfiguration(configuration); } public boolean isFlagInTrip() { return flagInTrip; } public void setFlagInTrip(boolean flagInTrip) { this.flagInTrip = flagInTrip; } public SPUtils getmSetting() { return mSetting; } public static void setInstance(AppController instance) { AppController.instance = instance; } public Filter getFilter() { return filter; } public void setFilter(Filter filter) { this.filter = filter; } public boolean isToogleInternet() { return toogleInternet; } public boolean isReview() { return isReview; } public void setReview(boolean review) { isReview = review; } public boolean isStartOverQuiz() { return isStartOverQuiz; } public void setStartOverQuiz(boolean startOverQuiz) { isStartOverQuiz = startOverQuiz; } public void setToogleInternet(boolean toogleInternet) { this.toogleInternet = toogleInternet; } public void setmSetting(SPUtils mSetting) { this.mSetting = mSetting; } public int getTypeSort() { return typeSort; } public void setTypeSort(int typeSort) { this.typeSort = typeSort; } public Profile getmProfileUser() { return mProfileUser; } public void setmProfileUser(Profile mProfileUser) { this.mProfileUser = mProfileUser; if (mProfileUser != null) { mSetting.put(AppConstant.KEY_PROFILE, new Gson().toJson(mProfileUser)); mSetting.put(AppConstant.KEY_TOKEN, mProfileUser.getToken()); mSetting.put(AppConstant.KEY_ID, mProfileUser.getId()); } else { mSetting.put(AppConstant.KEY_PROFILE, ""); mSetting.put(AppConstant.KEY_TOKEN, ""); mSetting.put(AppConstant.KEY_ID, ""); } } public void startActivityTransitionTimer() { this.mActivityTransitionTimer = new Timer(); this.mActivityTransitionTimerTask = new TimerTask() { public void run() { AppController.this.wasInBackground = true; } }; this.mActivityTransitionTimer.schedule(mActivityTransitionTimerTask, MAX_ACTIVITY_TRANSITION_TIME_MS); } public void stopActivityTransitionTimer() { if (this.mActivityTransitionTimerTask != null) { this.mActivityTransitionTimerTask.cancel(); } if (this.mActivityTransitionTimer != null) { this.mActivityTransitionTimer.cancel(); } this.wasInBackground = false; } }
[ "duongnv1996@gmail.com" ]
duongnv1996@gmail.com
10f9946b2c28c7de84211e2901bb7dc26fa29c62
0721305fd9b1c643a7687b6382dccc56a82a2dad
/src/app.zenly.locator_4.8.0_base_source_from_JADX/sources/p213co/znly/core/C6714w0.java
849fd364df78f8ee5583c3abba18696d21a39705
[]
no_license
a2en/Zenly_re
09c635ad886c8285f70a8292ae4f74167a4ad620
f87af0c2dd0bc14fd772c69d5bc70cd8aa727516
refs/heads/master
2020-12-13T17:07:11.442473
2020-01-17T04:32:44
2020-01-17T04:32:44
234,470,083
1
0
null
null
null
null
UTF-8
Java
false
false
487
java
package p213co.znly.core; import p213co.znly.models.services.ZenlyProto$UserVisitPointResponse; /* renamed from: co.znly.core.w0 */ /* compiled from: lambda */ public final /* synthetic */ class C6714w0 implements BuilderCreator { /* renamed from: a */ public static final /* synthetic */ C6714w0 f16257a = new C6714w0(); private /* synthetic */ C6714w0() { } public final Object create() { return ZenlyProto$UserVisitPointResponse.newBuilder(); } }
[ "developer@appzoc.com" ]
developer@appzoc.com
9871b33b32f2c8581e837bc161f2546a0e79ac6a
be4dcae13ec8ea3e3ec61869febef96d91ddb200
/collections/src/main/java/SimpleCollection.java
03dc6aabfb82cb07335e483d63abed8f87c148d4
[]
no_license
zcdJason/java8-maven
32379e852c48870f114c2fa8d749a26ac2b50694
db7dea9d4a04384a269d0c5cefa23682f7c89beb
refs/heads/master
2023-07-11T04:06:37.303186
2021-08-16T01:50:39
2021-08-16T01:50:39
395,219,459
0
0
null
null
null
null
UTF-8
Java
false
false
579
java
// collections/SimpleCollection.java // (c)2017 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. import java.util.ArrayList; import java.util.Collection; public class SimpleCollection { public static void main(String[] args) { Collection<Integer> c = new ArrayList<>(); for (int i = 0; i < 10; i++) c.add(i); // Autoboxing for (Integer i : c) System.out.print(i + ", "); } } /* Output: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, */
[ "736777445@qq.com" ]
736777445@qq.com
b58dc2a5918d025838609d19e6b70fdc480add86
4c19b724f95682ed21a82ab09b05556b5beea63c
/XMSYGame/java2/server/web-manager/src/main/java/com/xmsy/server/zxyy/manager/utils/ReadCardValuesForMj.java
9621a4aa388f78b3ead472cf884ae4f1fa800f66
[]
no_license
angel-like/angel
a66f8fda992fba01b81c128dd52b97c67f1ef027
3f7d79a61dc44a9c4547a60ab8648bc390c0f01e
refs/heads/master
2023-03-11T03:14:49.059036
2022-11-17T11:35:37
2022-11-17T11:35:37
222,582,930
3
5
null
2023-02-22T05:29:45
2019-11-19T01:41:25
JavaScript
UTF-8
Java
false
false
615
java
package com.xmsy.server.zxyy.manager.utils; import com.xmsy.common.define.constant.kaiyuan.MjCardEnum; public class ReadCardValuesForMj { public static String readCard(String cardValues){ StringBuffer sb= new StringBuffer(); char[] ar = cardValues.toCharArray(); int cardNum = ar.length / 2; for (int i = 0; i < cardNum; i++) { int j =i; String card = String.valueOf(ar[j*2]) + String.valueOf(ar[j*2 +1]); String cardValue = MjCardEnum.getCardValue(card); sb.append(cardValue); } return sb.toString(); } }
[ "163@qq.com" ]
163@qq.com
97dff9f9008dcf9d8c8b84c633a79b1643f56fb9
6f9cd3f9fd4b39a114002bf0b2e1b355b79bb44b
/src/coffee/learn/recursion/complexity/PowXN.java
5dc18ae6a235add3001e4f111d99ca6b33a99f96
[]
no_license
wylu/leetcode
347b9e10fd345bb4d72c1dcfc406d49c36ef675b
8a15a5b92a184cec561db4f046594db9ecf85eaa
refs/heads/master
2021-01-26T12:51:30.208799
2020-06-30T14:40:15
2020-06-30T14:40:15
243,438,329
0
0
null
null
null
null
UTF-8
Java
false
false
521
java
package coffee.learn.recursion.complexity; /** * @File : PowXN.java * @Time : 2020/05/08 22:42:06 * @Author : wylu * @Version : 1.0 * @Contact : 15wylu@gmail.com * @License : Copyright © 2020, wylu-CHINA-SHENZHEN. All rights reserved. * @Desc : */ public class PowXN { public double myPow(double x, int n) { if (n == 0) return 1; double res = myPow(x, n / 2); if (n % 2 == 0) return res * res; return n < 0 ? res * res * (1 / x) : res * res * x; } }
[ "158677478@qq.com" ]
158677478@qq.com
433dab0430d771b4abbeda08e66c2a81f9055ecc
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/MOCKITO-16b-1-7-SPEA2-WeightedSum:TestLen:CallDiversity/org/mockito/exceptions/Reporter_ESTest.java
09850f0a4e32f20887c30a8a6f9de2edb85ed3bd
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
733
java
/* * This file was automatically generated by EvoSuite * Mon Apr 06 17:03:39 UTC 2020 */ package org.mockito.exceptions; import org.junit.Test; import static org.junit.Assert.*; import static org.evosuite.runtime.EvoAssertions.*; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; import org.mockito.exceptions.Reporter; @RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true) public class Reporter_ESTest extends Reporter_ESTest_scaffolding { @Test(timeout = 4000) public void test0() throws Throwable { Reporter reporter0 = new Reporter(); // Undeclared exception! reporter0.missingMethodInvocation(); } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
90fb08ad519d81af1d8b320799d9b8646d7a181c
56d1c5242e970ca0d257801d4e627e2ea14c8aeb
/src/com/csms/leetcode/number/n1200/n1260/Leetcode1277.java
a65bca269321058d5d5a9a658fe2647ee9a4286e
[]
no_license
dai-zi/leetcode
e002b41f51f1dbd5c960e79624e8ce14ac765802
37747c2272f0fb7184b0e83f052c3943c066abb7
refs/heads/master
2022-12-14T11:20:07.816922
2020-07-24T03:37:51
2020-07-24T03:37:51
282,111,073
0
0
null
null
null
null
UTF-8
Java
false
false
1,010
java
package com.csms.leetcode.number.n1200.n1260; //统计全为1的正方形子矩阵 //中等 public class Leetcode1277 { public int countSquares(int[][] matrix) { int m = matrix.length; int n = matrix[0].length; int len = Math.min(m, n); boolean[][][] dp = new boolean[m][n][len]; int count = 0; for (int i = 0; i < m; i++) { for (int j = 0; j < n; j++) { dp[i][j][0] = (matrix[i][j] == 1); count += dp[i][j][0] ? 1 : 0; } } for (int i = 1; i < m; i++) { for (int j = 1; j < n; j++) { for (int k = 1; k < len; k++) { dp[i][j][k] = (matrix[i][j] == 1 && dp[i - 1][j][k - 1] && dp[i][j - 1][k - 1] && dp[i - 1][j - 1] [k - 1]); if (dp[i][j][k]) { count++; } } } } return count; } public static void main(String[] args) { } }
[ "liuxiaotongdaizi@sina.com" ]
liuxiaotongdaizi@sina.com
15564b4bff5e46badbddae139ab622954301de0e
a94bfc1fbf7cb150028300f7479358dc70804089
/Etomo/src/etomo/comscript/ArchiveorigParam.java
f3230f050121e21fa561fa46f9b01fa8f51bb250
[]
no_license
imod-mirror/IMOD
29f2a0d3f2c2156dc8624c917b9b36b3f23a38ec
499d656bc7784a23c9614380234511e5c758be4f
refs/heads/master
2021-01-02T08:47:39.133329
2015-08-25T06:42:46
2015-08-25T06:42:46
41,421,626
0
0
null
null
null
null
UTF-8
Java
false
false
5,186
java
package etomo.comscript; import java.io.File; import etomo.BaseManager; import etomo.logic.DatasetTool; import etomo.type.AxisID; import etomo.type.FileType; import etomo.type.ProcessName; import etomo.util.Utilities; /** * <p>Description: </p> * * <p>Copyright: Copyright (c) 2005 - 2006</p> * *<p>Organization: * Boulder Laboratory for 3-Dimensional Electron Microscopy of Cells (BL3DEM), * University of Colorado</p> * * @author $Author$ * * @version $Revision$ */ public class ArchiveorigParam implements Command { public static final String rcsid = "$Id$"; private static final ProcessName PROCESS_NAME = ProcessName.ARCHIVEORIG; public static final String COMMAND_NAME = PROCESS_NAME.toString(); private String[] commandArray; private Mode mode = Mode.AXIS_ONLY; private File outputFile; private final BaseManager manager; public ArchiveorigParam(BaseManager manager, AxisID axisID) { this.manager = manager; if (axisID == AxisID.FIRST) { mode = Mode.AXIS_A; } else if (axisID == AxisID.SECOND) { mode = Mode.AXIS_B; } File stack = Utilities.getFile(manager, false, axisID, DatasetTool.STANDARD_DATASET_EXT, ""); commandArray = new String[] { "python", "-u", BaseManager.getIMODBinPath() + COMMAND_NAME, "-PID", stack.getName() }; outputFile = Utilities.getFile(manager, false, axisID, "_xray.st.gz", ""); } public String[] getCommandArray() { return commandArray; } public String getCommandName() { return COMMAND_NAME; } public String getCommand() { return COMMAND_NAME; } public ProcessName getProcessName() { return PROCESS_NAME; } public String getCommandLine() { if (commandArray == null) { return ""; } StringBuffer buffer = new StringBuffer(); for (int i = 0; i < commandArray.length; i++) { buffer.append(commandArray[i] + " "); } return buffer.toString(); } public CommandMode getCommandMode() { return mode; } public CommandDetails getSubcommandDetails() { return null; } public String getSubcommandProcessName() { return null; } public boolean isMessageReporter() { return false; } public File getCommandOutputFile() { return outputFile; } public FileType getOutputImageFileType() { return null; } public FileType getOutputImageFileType2() { return null; } public File getCommandInputFile() { return null; } public AxisID getAxisID() { return AxisID.ONLY; } public final static class Mode implements CommandMode { public static final Mode AXIS_A = new Mode("AxisA"); public static final Mode AXIS_B = new Mode("AxisB"); public static final Mode AXIS_ONLY = new Mode("AxisOnly"); private final String string; private Mode(String string) { this.string = string; } public String toString() { return string; } } } /** * <p> $Log$ * <p> Revision 1.16 2011/05/10 16:48:36 sueh * <p> bug# 1482 Changed getSubcommandProcessName to return a string so that the root name chould be set to * <p> subcommandProcessName. * <p> * <p> Revision 1.15 2010/04/28 15:43:12 sueh * <p> bug# 1344 Added getOutputImageFileType functions. * <p> * <p> Revision 1.14 2010/01/11 23:49:01 sueh * <p> bug# 1299 Added isMessageReporter. * <p> * <p> Revision 1.13 2009/12/11 17:25:18 sueh * <p> bug# 1291 Added getCommandInputFile to implement Command. * <p> * <p> Revision 1.12 2009/09/01 03:17:46 sueh * <p> bug# 1222 * <p> * <p> Revision 1.11 2007/11/06 19:05:10 sueh * <p> bug# 1047 Added getSubcommandDetails. * <p> * <p> Revision 1.10 2007/02/05 21:31:03 sueh * <p> bug# 962 Put mode info into an inner class. * <p> * <p> Revision 1.9 2006/06/07 17:45:09 sueh * <p> bug# 766 Running archiveorig with tcsh for windows * <p> * <p> Revision 1.8 2006/05/22 22:34:45 sueh * <p> bug# 577 Added getCommand(). * <p> * <p> Revision 1.7 2006/05/11 19:33:59 sueh * <p> bug# 838 Implement Command instead of CommandDetails * <p> * <p> Revision 1.6 2006/04/06 18:48:12 sueh * <p> bug# 808 Implementing ProcessDetails. * <p> * <p> Revision 1.5 2006/01/20 20:45:00 sueh * <p> updated copyright year * <p> * <p> Revision 1.4 2005/11/19 01:45:53 sueh * <p> bug# 744 Moved functions only used by process manager post * <p> processing and error processing from Commands to ProcessDetails. * <p> This allows ProcesschunksParam to be passed to DetackedProcess * <p> without having to add unnecessary functions to it. * <p> * <p> Revision 1.3 2005/07/29 00:42:44 sueh * <p> bug# 709 Adding a EtomoDirector test harness so that unit test functions * <p> can use package level EtomoDirector functions getCurrentManager and * <p> setCurrentPropertyUserDir. As long as the unit test doesn't open multiple * <p> windows and switch to another tab, it is OK for it to get the current * <p> manager from EtomoDirector. * <p> * <p> Revision 1.2 2005/07/26 17:08:27 sueh * <p> bug# 701 Get the PID from archiveorig * <p> * <p> Revision 1.1 2005/05/18 22:31:38 sueh * <p> bug# 662 A param object for archiveorig. * <p> </p> */
[ "mast@localhost" ]
mast@localhost
6191e8ea0a071484a87e85a0fa6aabf1415f508c
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/34/34_b071e177bd8cb424c06eb70e7b748416f0fca1dd/AnnotationDeclaration/34_b071e177bd8cb424c06eb70e7b748416f0fca1dd_AnnotationDeclaration_t.java
ff6fdad5bffc6469977187f0b93a2c70b99dc2e8
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
5,628
java
/******************************************************************************* * Copyright (c) 2009-2011 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.jboss.tools.common.java.impl; import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.CoreException; import org.eclipse.jdt.core.Flags; import org.eclipse.jdt.core.IAnnotation; import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.IField; import org.eclipse.jdt.core.IImportDeclaration; import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.IMember; import org.eclipse.jdt.core.IMemberValuePair; import org.eclipse.jdt.core.IType; import org.jboss.tools.common.CommonPlugin; import org.jboss.tools.common.java.IAnnotationDeclaration; import org.jboss.tools.common.java.IAnnotationType; import org.jboss.tools.common.java.IJavaAnnotation; import org.jboss.tools.common.java.impl.JavaAnnotation; import org.jboss.tools.common.util.EclipseJavaUtil; /** * * @author Viacheslav Kabanovich * */ public class AnnotationDeclaration implements IAnnotationDeclaration { protected IJavaAnnotation annotation; public AnnotationDeclaration() {} public void setDeclaration(IJavaAnnotation annotation) { this.annotation = annotation; } public IJavaAnnotation getDeclaration() { return annotation; } public IResource getResource() { return annotation.getResource(); } public IMemberValuePair[] getMemberValuePairs() { return annotation.getMemberValuePairs(); } public Object getMemberValue(String name) { if(name == null) name = "value"; //$NON-NLS-1$ IMemberValuePair[] pairs = getMemberValuePairs(); for (IMemberValuePair pair: pairs) { if(name.equals(pair.getMemberName())) { return resolveMemberValue(pair); } } return null; } public IMember getParentMember() { return annotation.getParentMember(); } public String getTypeName() { return annotation.getTypeName(); } public IType getType() { return annotation.getType(); } public int getLength() { return annotation.getLength(); } public int getStartPosition() { return annotation.getStartPosition(); } public IAnnotationType getAnnotation() { return null; } public IAnnotation getJavaAnnotation() { if(annotation instanceof JavaAnnotation) { return ((JavaAnnotation) annotation).getAnnotation(); } return null; } public Object resolveMemberValue(IMemberValuePair pair) { Object value = pair.getValue(); int k = pair.getValueKind(); if(k == IMemberValuePair.K_QUALIFIED_NAME || k == IMemberValuePair.K_SIMPLE_NAME || (value instanceof Object[] && k == IMemberValuePair.K_UNKNOWN)) { IAnnotation a = getJavaAnnotation(); if(a != null && a.getAncestor(IJavaElement.COMPILATION_UNIT) instanceof ICompilationUnit) { value = validateNamedValue(value, a); } } return value; } private Object validateNamedValue(Object value, IAnnotation a) { if(value instanceof Object[]) { Object[] vs = (Object[])value; for (int i = 0; i < vs.length; i++) { vs[i] = validateNamedValue(vs[i], a); } } else { ICompilationUnit u = (ICompilationUnit)a.getAncestor(IJavaElement.COMPILATION_UNIT); IType type = (IType)a.getAncestor(IJavaElement.TYPE); try { IImportDeclaration[] is = u.getImports(); String stringValue = value.toString(); int lastDot = stringValue.lastIndexOf('.'); String lastToken = stringValue.substring(lastDot + 1); if(lastDot < 0) { IField f = (a.getParent() == type) ? type.getField(lastToken) : EclipseJavaUtil.findField(type, lastToken); if(f != null && f.exists()) { value = f.getDeclaringType().getFullyQualifiedName() + "." + lastToken; } else { String v = getFullName(type, is, lastToken); if(v != null) { value = v; } } return value; } String prefix = stringValue.substring(0, lastDot); String t = EclipseJavaUtil.resolveType(type, prefix); if(t != null) { IType q = EclipseJavaUtil.findType(type.getJavaProject(), t); if(q != null && q.getField(lastToken).exists()) { value = t + "." + lastToken; } } } catch (CoreException e) { CommonPlugin.getDefault().logError(e); } } return value; } private String getFullName(IType type, IImportDeclaration[] is, String name) throws CoreException { for (IImportDeclaration d: is) { String n = d.getElementName(); if(n.equals(name) || n.endsWith("." + name)) { return n; } if(Flags.isStatic(d.getFlags()) && n.endsWith(".*")) { String typename = n.substring(0, n.length() - 2); IType t = EclipseJavaUtil.findType(type.getJavaProject(), typename); if(t != null && t.exists()) { IField f = EclipseJavaUtil.findField(t, name); if(f != null) { return f.getDeclaringType().getFullyQualifiedName() + "." + name; } } } } return null; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
485aa1073bd431c575249d633148238f077caa36
082e26b011e30dc62a62fae95f375e4f87d9e99c
/docs/weixin_7.0.4_source/反编译源码/反混淆后/src/main/java/com/tencent/p177mm/plugin/appbrand/jsapi/C33326g.java
49edc8af7db544133a1af57d97f0fb3d33e61798
[]
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
3,038
java
package com.tencent.p177mm.plugin.appbrand.jsapi; import com.tencent.matrix.trace.core.AppMethodBeat; import com.tencent.p177mm.plugin.appbrand.jsapi.C45596f.C10378a; import com.tencent.p177mm.plugin.appbrand.jsapi.C45596f.C10379b; import com.tencent.p177mm.plugin.appbrand.jsapi.C45596f.C10380c; import com.tencent.p177mm.plugin.appbrand.jsapi.C45596f.C10381d; import com.tencent.p177mm.plugin.appbrand.jsapi.C45596f.C38290f; import com.tencent.p177mm.plugin.appbrand.jsapi.C45596f.C45595e; import java.util.Collections; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.g */ public final class C33326g implements C45596f { public final Set<C45595e> hvU = Collections.newSetFromMap(new ConcurrentHashMap()); public final Set<C10379b> hvV = Collections.newSetFromMap(new ConcurrentHashMap()); public final Set<C10381d> hvW = Collections.newSetFromMap(new ConcurrentHashMap()); public final Set<C10380c> hvX = Collections.newSetFromMap(new ConcurrentHashMap()); public final Set<C10378a> hvY = Collections.newSetFromMap(new ConcurrentHashMap()); public final Set<C38290f> hvZ = Collections.newSetFromMap(new ConcurrentHashMap()); public C33326g() { AppMethodBeat.m2504i(91017); AppMethodBeat.m2505o(91017); } /* renamed from: a */ public final void mo53831a(C38290f c38290f) { AppMethodBeat.m2504i(91018); this.hvZ.add(c38290f); AppMethodBeat.m2505o(91018); } /* renamed from: a */ public final void mo53830a(C45595e c45595e) { AppMethodBeat.m2504i(91019); this.hvU.add(c45595e); AppMethodBeat.m2505o(91019); } /* renamed from: b */ public final void mo53835b(C45595e c45595e) { AppMethodBeat.m2504i(91020); this.hvU.remove(c45595e); AppMethodBeat.m2505o(91020); } /* renamed from: a */ public final void mo53827a(C10379b c10379b) { AppMethodBeat.m2504i(91021); this.hvV.add(c10379b); AppMethodBeat.m2505o(91021); } /* renamed from: b */ public final void mo53832b(C10379b c10379b) { AppMethodBeat.m2504i(91022); this.hvV.remove(c10379b); AppMethodBeat.m2505o(91022); } /* renamed from: a */ public final void mo53829a(C10381d c10381d) { AppMethodBeat.m2504i(91023); this.hvW.add(c10381d); AppMethodBeat.m2505o(91023); } /* renamed from: b */ public final void mo53834b(C10381d c10381d) { AppMethodBeat.m2504i(91024); this.hvW.remove(c10381d); AppMethodBeat.m2505o(91024); } /* renamed from: a */ public final void mo53828a(C10380c c10380c) { AppMethodBeat.m2504i(91025); this.hvX.add(c10380c); AppMethodBeat.m2505o(91025); } /* renamed from: b */ public final void mo53833b(C10380c c10380c) { AppMethodBeat.m2504i(91026); this.hvX.remove(c10380c); AppMethodBeat.m2505o(91026); } }
[ "alwangsisi@163.com" ]
alwangsisi@163.com
c4759a2d50499640f0d6becc11ad257161a4cc05
639b55cf81462c7a1214e5dba37a5070cda0f260
/sourceanalysis/java/apache-tomcat-7.0.54/java/org/apache/coyote/http11/upgrade/AprServletOutputStream.java
b7335866efd5634f8793fdd181461bbe757c9ec8
[]
no_license
tangjiquan/sourceanalysis
93950c208de1f77c239d8e00ced0163648238193
b9aed83c6e48a8e74c250e88335bd16be5ef9722
refs/heads/master
2020-06-04T15:59:04.146212
2015-11-15T14:28:01
2015-11-15T14:28:01
34,946,151
1
0
null
null
null
null
UTF-8
Java
false
false
6,241
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.coyote.http11.upgrade; import java.io.EOFException; import java.io.IOException; import java.nio.ByteBuffer; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock; import org.apache.tomcat.jni.OS; import org.apache.tomcat.jni.Socket; import org.apache.tomcat.jni.Status; import org.apache.tomcat.util.net.AprEndpoint; import org.apache.tomcat.util.net.SocketWrapper; public class AprServletOutputStream extends AbstractServletOutputStream { private static final int SSL_OUTPUT_BUFFER_SIZE = 8192; private final AprEndpoint endpoint; private final SocketWrapper<Long> wrapper; private final long socket; private volatile boolean closed = false; private final ByteBuffer sslOutputBuffer; public AprServletOutputStream(SocketWrapper<Long> wrapper, AprEndpoint endpoint) { this.endpoint = endpoint; this.wrapper = wrapper; this.socket = wrapper.getSocket().longValue(); if (endpoint.isSSLEnabled()) { sslOutputBuffer = ByteBuffer.allocateDirect(SSL_OUTPUT_BUFFER_SIZE); sslOutputBuffer.position(SSL_OUTPUT_BUFFER_SIZE); } else { sslOutputBuffer = null; } } @Override protected int doWrite(boolean block, byte[] b, int off, int len) throws IOException { if (closed) { throw new IOException(sm.getString("apr.closed", Long.valueOf(socket))); } Lock readLock = wrapper.getBlockingStatusReadLock(); WriteLock writeLock = wrapper.getBlockingStatusWriteLock(); try { readLock.lock(); if (wrapper.getBlockingStatus() == block) { return doWriteInternal(b, off, len); } } finally { readLock.unlock(); } try { writeLock.lock(); // Set the current settings for this socket wrapper.setBlockingStatus(block); if (block) { Socket.timeoutSet(socket, endpoint.getSoTimeout() * 1000); } else { Socket.timeoutSet(socket, 0); } // Downgrade the lock try { readLock.lock(); writeLock.unlock(); return doWriteInternal(b, off, len); } finally { readLock.unlock(); } } finally { // Should have been released above but may not have been on some // exception paths if (writeLock.isHeldByCurrentThread()) { writeLock.unlock(); } } } private int doWriteInternal(byte[] b, int off, int len) throws IOException { int start = off; int left = len; int written; do { if (endpoint.isSSLEnabled()) { if (sslOutputBuffer.remaining() == 0) { // Buffer was fully written last time around sslOutputBuffer.clear(); if (left < SSL_OUTPUT_BUFFER_SIZE) { sslOutputBuffer.put(b, start, left); } else { sslOutputBuffer.put(b, start, SSL_OUTPUT_BUFFER_SIZE); } sslOutputBuffer.flip(); } else { // Buffer still has data from previous attempt to write // APR + SSL requires that exactly the same parameters are // passed when re-attempting the write } written = Socket.sendb(socket, sslOutputBuffer, sslOutputBuffer.position(), sslOutputBuffer.limit()); if (written > 0) { sslOutputBuffer.position( sslOutputBuffer.position() + written); } } else { written = Socket.send(socket, b, start, left); } if (Status.APR_STATUS_IS_EAGAIN(-written)) { written = 0; } else if (-written == Status.APR_EOF) { throw new EOFException(sm.getString("apr.clientAbort")); } else if ((OS.IS_WIN32 || OS.IS_WIN64) && (-written == Status.APR_OS_START_SYSERR + 10053)) { // 10053 on Windows is connection aborted throw new EOFException(sm.getString("apr.clientAbort")); } else if (written < 0) { throw new IOException(sm.getString("apr.write.error", Integer.valueOf(-written), Long.valueOf(socket), wrapper)); } start += written; left -= written; } while (written > 0 && left > 0); if (left > 0) { endpoint.getPoller().add(socket, -1, false, true); } return len - left; } @Override protected void doFlush() throws IOException { // TODO Auto-generated method stub } @Override protected void doClose() throws IOException { closed = true; // AbstractProcessor needs to trigger the close as multiple closes for // APR/native sockets will cause problems. } }
[ "2495527426@qq.com" ]
2495527426@qq.com
ce876db48a3081fa3af0c7e791073814d899612f
3d4349c88a96505992277c56311e73243130c290
/Preparation/processed-dataset/long-method_4_722/header.java
79b0f96a08fb75c32c79fdf35b8d72b3e9d035eb
[]
no_license
D-a-r-e-k/Code-Smells-Detection
5270233badf3fb8c2d6034ac4d780e9ce7a8276e
079a02e5037d909114613aedceba1d5dea81c65d
refs/heads/master
2020-05-20T00:03:08.191102
2019-05-15T11:51:51
2019-05-15T11:51:51
185,272,690
7
4
null
null
null
null
UTF-8
Java
false
false
663
java
void method0() { protected ViewerCanvas view; protected BufferedImage theImage; protected Graphics2D imageGraphics; protected int pixel[], zbuffer[]; protected boolean hideBackfaces; protected int templatePixel[]; protected Rectangle bounds; private static Vec2 reuseVec2[]; private static WeakHashMap<Image, SoftReference<ImageRecord>> imageMap = new WeakHashMap<Image, SoftReference<ImageRecord>>(); private static WeakHashMap<Image, SoftReference<RenderingMesh>> imageMeshMap = new WeakHashMap<Image, SoftReference<RenderingMesh>>(); private static final int MODE_COPY = 0; private static final int MODE_ADD = 1; private static final int MODE_SUBTRACT = 2; }
[ "dariusb@unifysquare.com" ]
dariusb@unifysquare.com
cf5c2264202e318ade4aba7fbcb6ff8aea7770af
7b3295de4e2300aa30aef26f3191f8f1d8bfac7e
/app/src/main/java/com/coahr/fanoftruck/Utils/SideBar.java
75b1108674486cd59a7999bba16744cc4f52f718
[]
no_license
LEEHOR/fanoftruck
dc1d1f4fe03f8ac64e840ed3d77261d87278d4b1
5b2bc5735b6cf87b6352c483fd65ff1de84a96fb
refs/heads/master
2020-04-07T07:29:05.390297
2019-04-16T09:24:02
2019-04-16T09:24:02
158,178,152
0
1
null
null
null
null
UTF-8
Java
false
false
5,401
java
package com.coahr.fanoftruck.Utils; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import androidx.annotation.Nullable; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.View; /** * Created by Leehor * on 2018/10/30 * on 15:12 */ public class SideBar extends View { public interface OnTouchingLetterChangedListener { void onHit(String letter); void onCancel(); } private OnTouchingLetterChangedListener touchingLetterChangedListener; private Paint paint; private boolean hit; private int type = 1; private final String[] letters = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "#"}; private static final String[] DEFAULT_INDEX_ITEMS = {"当前", "热门", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "#"}; private final int DEFAULT_WIDTH; public void setType(int type) { this.type = type; } public SideBar(Context context) { this(context, null); } public SideBar(Context context, @Nullable AttributeSet attrs) { this(context, attrs, 0); } public SideBar(Context context, @Nullable AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); paint = new Paint(); paint.setAntiAlias(true); paint.setTextAlign(Paint.Align.CENTER); paint.setColor(Color.parseColor("#565656")); DEFAULT_WIDTH = dpToPx(context, 24); } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { setMeasuredDimension(getWidthSize(widthMeasureSpec), getDefaultSize(getSuggestedMinimumHeight(), heightMeasureSpec)); } private int getWidthSize(int widthMeasureSpec) { int widthMode = MeasureSpec.getMode(widthMeasureSpec); int widthSize = MeasureSpec.getSize(widthMeasureSpec); switch (widthMode) { case MeasureSpec.AT_MOST: { if (widthSize >= DEFAULT_WIDTH) { return DEFAULT_WIDTH; } else { return widthSize; } } case MeasureSpec.EXACTLY: { return widthSize; } case MeasureSpec.UNSPECIFIED: default: return DEFAULT_WIDTH; } } @Override public boolean dispatchTouchEvent(MotionEvent event) { switch (event.getAction()) { case MotionEvent.ACTION_DOWN: hit = true; onHit(event.getY()); break; case MotionEvent.ACTION_MOVE: onHit(event.getY()); break; case MotionEvent.ACTION_UP: case MotionEvent.ACTION_CANCEL: hit = false; if (touchingLetterChangedListener != null) { touchingLetterChangedListener.onCancel(); } break; } invalidate(); return true; } @Override protected void onDraw(Canvas canvas) { if (hit) { //字母索引条背景色 canvas.drawColor(Color.parseColor("#bababa")); } if (type == 1) { float letterHeight = ((float) getHeight()) / letters.length; float width = getWidth(); float textSize = letterHeight * 5 / 7; paint.setTextSize(textSize); for (int i = 0; i < letters.length; i++) { canvas.drawText(letters[i], width / 2, letterHeight * i + textSize, paint); } } else if (type == 2) { float letterHeight = ((float) getHeight()) / DEFAULT_INDEX_ITEMS.length; float width = getWidth(); float textSize = letterHeight * 5 / 7; paint.setTextSize(textSize); for (int i = 0; i < DEFAULT_INDEX_ITEMS.length; i++) { canvas.drawText(DEFAULT_INDEX_ITEMS[i], width / 2, letterHeight * i + textSize, paint); } } } private void onHit(float offset) { if (hit && touchingLetterChangedListener != null) { if (type == 1) { int index = (int) (offset / getHeight() * letters.length); index = Math.max(index, 0); index = Math.min(index, letters.length - 1); touchingLetterChangedListener.onHit(letters[index]); } else if (type == 2) { int index = (int) (offset / getHeight() * DEFAULT_INDEX_ITEMS.length); index = Math.max(index, 0); index = Math.min(index, letters.length - 1); touchingLetterChangedListener.onHit(DEFAULT_INDEX_ITEMS[index]); } } } public void setOnTouchingLetterChangedListener(OnTouchingLetterChangedListener onTouchingLetterChangedListener) { this.touchingLetterChangedListener = onTouchingLetterChangedListener; } private int dpToPx(Context context, float dpValue) { float scale = context.getResources().getDisplayMetrics().density; return (int) (dpValue * scale + 0.5f); } }
[ "1622293788@qq.com" ]
1622293788@qq.com
bbf4cc4dda15199b6f3219c1e91794aba2965b97
447520f40e82a060368a0802a391697bc00be96f
/apks/playstore_apps/com_advantage_RaiffeisenBank/source/com/thinkdesquared/banking/models/response/CustomerIdentifierResponse.java
a2a99aaad659bd7ab8bdb6abbb161018e90403e4
[ "Apache-2.0" ]
permissive
iantal/AndroidPermissions
7f3343a9c29d82dbcd4ecd98b3a50ddf8d179465
d623b732734243590b5f004d167e542e2e2ae249
refs/heads/master
2023-07-19T01:29:26.689186
2019-09-30T19:01:42
2019-09-30T19:01:42
107,239,248
0
0
Apache-2.0
2023-07-16T07:41:38
2017-10-17T08:22:57
null
UTF-8
Java
false
false
775
java
package com.thinkdesquared.banking.models.response; import java.io.Serializable; public class CustomerIdentifierResponse extends GenericResponse implements Serializable { private boolean isValid; public CustomerIdentifierResponse() {} public CustomerIdentifierResponse(boolean paramBoolean) { this.isValid = paramBoolean; } public boolean isValid() { return this.isValid; } public void setIsValid(boolean paramBoolean) { this.isValid = paramBoolean; } public String toString() { StringBuilder localStringBuilder = new StringBuilder("CustomerIdentifierResponse{"); localStringBuilder.append("isValid=").append(this.isValid); localStringBuilder.append('}'); return localStringBuilder.toString(); } }
[ "antal.micky@yahoo.com" ]
antal.micky@yahoo.com
052861bcc2b9509fce53fd4e34a4ebc925386be3
27b052c54bcf922e1a85cad89c4a43adfca831ba
/src/com/parse/OfflineStore$14$1.java
c401b609e8c96ffb646d06c4e1a2d9b50133e58d
[]
no_license
dreadiscool/YikYak-Decompiled
7169fd91f589f917b994487045916c56a261a3e8
ebd9e9dd8dba0e657613c2c3b7036f7ecc3fc95d
refs/heads/master
2020-04-01T10:30:36.903680
2015-04-14T15:40:09
2015-04-14T15:40:09
33,902,809
3
0
null
null
null
null
UTF-8
Java
false
false
464
java
package com.parse; import l; import m; class OfflineStore$14$1 implements l<T, m<T>> { OfflineStore$14$1(OfflineStore.14 param14, ParseSQLiteDatabase paramParseSQLiteDatabase) {} public m<T> then(m<T> paramm) { this.val$db.close(); return paramm; } } /* Location: C:\Users\dreadiscool\Desktop\tools\classes-dex2jar.jar * Qualified Name: com.parse.OfflineStore.14.1 * JD-Core Version: 0.7.0.1 */
[ "paras@protrafsolutions.com" ]
paras@protrafsolutions.com
e75c0130a4215188df49fc269cf95a55d860e19e
e70abc02efbb8a7637eb3655f287b0a409cfa23b
/hyjf-admin/src/main/java/com/hyjf/admin/finance/pushmoneyhjh/PushMoneyManageHjhBean.java
bc2b75d828aa197ba2028fc883d75c560060cf1d
[]
no_license
WangYouzheng1994/hyjf
ecb221560460e30439f6915574251266c1a49042
6cbc76c109675bb1f120737f29a786fea69852fc
refs/heads/master
2023-05-12T03:29:02.563411
2020-05-19T13:49:56
2020-05-19T13:49:56
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,959
java
package com.hyjf.admin.finance.pushmoneyhjh; import java.io.Serializable; import java.util.List; import org.openxmlformats.schemas.drawingml.x2006.diagram.STConnectorRouting; import com.hyjf.common.paginator.Paginator; import com.hyjf.mybatis.model.customize.PushMoneyCustomize; public class PushMoneyManageHjhBean extends PushMoneyCustomize implements Serializable { /** * serialVersionUID: */ private static final long serialVersionUID = 2561663838042185965L; private Integer ids; private String planOrderId; private String depIds; private String planNid; private List<PushMoneyCustomize> recordList; /** * 翻页机能用的隐藏变量 */ private int paginatorPage = 1; /** * 列表画面自定义标签上的用翻页对象:paginator */ private Paginator paginator; public int getPaginatorPage() { if (paginatorPage == 0) { paginatorPage = 1; } return paginatorPage; } public void setPaginatorPage(int paginatorPage) { this.paginatorPage = paginatorPage; } public Paginator getPaginator() { return paginator; } public void setPaginator(Paginator paginator) { this.paginator = paginator; } public List<PushMoneyCustomize> getRecordList() { return recordList; } public void setRecordList(List<PushMoneyCustomize> recordList) { this.recordList = recordList; } public static long getSerialversionuid() { return serialVersionUID; } public Integer getIds() { return ids; } public void setIds(Integer ids) { this.ids = ids; } public String getDepIds() { return depIds; } public void setDepIds(String depIds) { this.depIds = depIds; } public String getPlanOrderId() { return planOrderId; } public void setPlanOrderId(String planOrderId) { this.planOrderId = planOrderId; } public String getPlanNid() { return planNid; } public void setPlanNid(String planNid) { this.planNid = planNid; } }
[ "heshuying@hyjf.com" ]
heshuying@hyjf.com
4cb1779205ff85cb2aafef79246c44dafb88e173
83d781a9c2ba33fde6df0c6adc3a434afa1a7f82
/OrderFulfillment/OrderFulfillment.ServiceOrder/src/main/java/com/servicelive/orderfulfillment/command/GetWalletPostInfoCmd.java
5a24846b84545d5d5127d428b569855aee312750
[]
no_license
ssriha0/sl-b2b-platform
71ab8ef1f0ccb0a7ad58b18f28a2bf6d5737fcb6
5b4fcafa9edfe4d35c2dcf1659ac30ef58d607a2
refs/heads/master
2023-01-06T18:32:24.623256
2020-11-05T12:23:26
2020-11-05T12:23:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,012
java
package com.servicelive.orderfulfillment.command; import java.text.DecimalFormat; import java.text.NumberFormat; import java.util.Map; import com.servicelive.orderfulfillment.command.util.SOCommandArgHelper; import com.servicelive.orderfulfillment.common.ProcessVariableUtil; import com.servicelive.orderfulfillment.domain.ServiceOrder; import com.servicelive.wallet.serviceinterface.vo.ReceiptVO; import org.apache.commons.lang.StringUtils; public class GetWalletPostInfoCmd extends SOCommand { @Override public void execute(Map<String, Object> processVariables) { ServiceOrder so = getServiceOrder(processVariables); NumberFormat formatter = new DecimalFormat("#0.00"); ReceiptVO postReceipt = walletGateway.getBuyerPostingFeeReceipt(so.getBuyerId(), so.getSoId()); if (postReceipt!=null) { processVariables.put(ProcessVariableUtil.PVKEY_LEDGER_POST_FEE, formatter.format(postReceipt.getTransactionAmount())); processVariables.put(ProcessVariableUtil.PVKEY_LEDGER_POST_TX_ID, postReceipt.getTransactionID().toString()); }else{ processVariables.put(ProcessVariableUtil.PVKEY_LEDGER_POST_FEE, "NA"); processVariables.put(ProcessVariableUtil.PVKEY_LEDGER_POST_TX_ID, "No Transaction Id"); } ReceiptVO spndLmtRsrvReceipt = walletGateway.getBuyerSpendLimitRsrvReceipt(so.getBuyerId(), so.getSoId()); if (spndLmtRsrvReceipt!=null) { Object fundsConfirmedTransactionIdObject = processVariables.get(ProcessVariableUtil.PVKEY_FUNDS_CONFIRMED_TX_ID); String fundsConfirmedTransactionId = null; if (fundsConfirmedTransactionIdObject != null) { fundsConfirmedTransactionId = (String) fundsConfirmedTransactionIdObject; } Double spendLimitAmount = walletGateway.getCurrentSpendingLimit(so.getSoId()); processVariables.put(ProcessVariableUtil.PVKEY_LEDGER_SPEND_LMT_RSRV_AMT, formatter.format(spendLimitAmount)); if (fundsConfirmedTransactionId != null && useFundsConfirmedTransactionId(processVariables)) { processVariables.put(ProcessVariableUtil.PVKEY_LEDGER_SPEND_LMT_RSRV_TX_ID, fundsConfirmedTransactionId); } else { processVariables.put(ProcessVariableUtil.PVKEY_LEDGER_SPEND_LMT_RSRV_TX_ID, spndLmtRsrvReceipt.getTransactionID().toString()); } }else{ processVariables.put(ProcessVariableUtil.PVKEY_LEDGER_SPEND_LMT_RSRV_AMT, "NA"); processVariables.put(ProcessVariableUtil.PVKEY_LEDGER_SPEND_LMT_RSRV_TX_ID, "No Transaction Id"); } } private boolean useFundsConfirmedTransactionId(Map<String, Object> processVariables) { String useFundsConfirmedTransactionId = SOCommandArgHelper.extractStringArg(processVariables, 1); return StringUtils.isNotBlank(useFundsConfirmedTransactionId); } }
[ "Kunal.Pise@transformco.com" ]
Kunal.Pise@transformco.com
7ca4746c97cd29d724a4d0c99f544db035f5a125
92b8819f3e6739dca7394f515ddd927b3188e5e9
/oauth2/src/main/java/org/wapache/security/oauth2/common/validators/OAuthValidator.java
0d07c825a246907f4fc088e62bdbae1cf8e699af
[ "Apache-2.0" ]
permissive
wapache-org/wapasafe
5a48710ff23181a68026a1f09e4f463b5cac67a9
d71c52550bd4d0b3f121da2be0005e0f7e29aaf2
refs/heads/main
2023-02-08T13:14:01.474785
2021-01-03T09:16:12
2021-01-03T09:16:12
326,366,545
0
0
null
null
null
null
UTF-8
Java
false
false
1,676
java
/** * Copyright 2010 Newcastle University * * http://research.ncl.ac.uk/smart/ * * 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.wapache.security.oauth2.common.validators; import org.wapache.security.oauth2.common.exception.OAuthProblemException; /** * * * */ public interface OAuthValidator<T> { public void validateMethod(T request) throws OAuthProblemException; public void validateContentType(T request) throws OAuthProblemException; public void validateRequiredParameters(T request) throws OAuthProblemException; public void validateOptionalParameters(T request) throws OAuthProblemException; public void validateNotAllowedParameters(T request) throws OAuthProblemException; public void validateClientAuthenticationCredentials(T request) throws OAuthProblemException; public void performAllValidations(T request) throws OAuthProblemException; }
[ "ykuang@wapache.org" ]
ykuang@wapache.org
6831c8164a648e65d321664912b60946120cb807
a36dce4b6042356475ae2e0f05475bd6aed4391b
/2005/julypersistenceEJB/ejbModule/com/hps/july/persistence/EJSRemoteCMPLeaseContractBLOBHome_54b76cb3.java
cd807b34798d14ebe195d1213ca8ede86f407906
[]
no_license
ildar66/WSAD_NRI
b21dbee82de5d119b0a507654d269832f19378bb
2a352f164c513967acf04d5e74f36167e836054f
refs/heads/master
2020-12-02T23:59:09.795209
2017-07-01T09:25:27
2017-07-01T09:25:27
95,954,234
0
1
null
null
null
null
UTF-8
Java
false
false
6,143
java
package com.hps.july.persistence; import com.ibm.ejs.container.*; /** * EJSRemoteCMPLeaseContractBLOBHome_54b76cb3 */ public class EJSRemoteCMPLeaseContractBLOBHome_54b76cb3 extends EJSWrapper implements com.hps.july.persistence.LeaseContractBLOBHome { /** * EJSRemoteCMPLeaseContractBLOBHome_54b76cb3 */ public EJSRemoteCMPLeaseContractBLOBHome_54b76cb3() throws java.rmi.RemoteException { super(); } /** * getDeployedSupport */ public com.ibm.ejs.container.EJSDeployedSupport getDeployedSupport() { return container.getEJSDeployedSupport(this); } /** * putDeployedSupport */ public void putDeployedSupport(com.ibm.ejs.container.EJSDeployedSupport support) { container.putEJSDeployedSupport(support); return; } /** * create */ public com.hps.july.persistence.LeaseContractBLOB create(int argLeaseDocument) throws javax.ejb.CreateException, java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); com.hps.july.persistence.LeaseContractBLOB _EJS_result = null; try { com.hps.july.persistence.EJSCMPLeaseContractBLOBHomeBean_54b76cb3 beanRef = (com.hps.july.persistence.EJSCMPLeaseContractBLOBHomeBean_54b76cb3)container.preInvoke(this, 0, _EJS_s); _EJS_result = beanRef.create(argLeaseDocument); } catch (javax.ejb.CreateException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 0, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * findByPrimaryKey */ public com.hps.july.persistence.LeaseContractBLOB findByPrimaryKey(com.hps.july.persistence.LeaseContractBLOBKey key) throws java.rmi.RemoteException, javax.ejb.FinderException { EJSDeployedSupport _EJS_s = getDeployedSupport(); com.hps.july.persistence.LeaseContractBLOB _EJS_result = null; try { com.hps.july.persistence.EJSCMPLeaseContractBLOBHomeBean_54b76cb3 beanRef = (com.hps.july.persistence.EJSCMPLeaseContractBLOBHomeBean_54b76cb3)container.preInvoke(this, 1, _EJS_s); _EJS_result = beanRef.findByPrimaryKey(key); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (javax.ejb.FinderException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 1, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getEJBMetaData */ public javax.ejb.EJBMetaData getEJBMetaData() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); javax.ejb.EJBMetaData _EJS_result = null; try { com.hps.july.persistence.EJSCMPLeaseContractBLOBHomeBean_54b76cb3 beanRef = (com.hps.july.persistence.EJSCMPLeaseContractBLOBHomeBean_54b76cb3)container.preInvoke(this, 2, _EJS_s); _EJS_result = beanRef.getEJBMetaData(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 2, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getHomeHandle */ public javax.ejb.HomeHandle getHomeHandle() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); javax.ejb.HomeHandle _EJS_result = null; try { com.hps.july.persistence.EJSCMPLeaseContractBLOBHomeBean_54b76cb3 beanRef = (com.hps.july.persistence.EJSCMPLeaseContractBLOBHomeBean_54b76cb3)container.preInvoke(this, 3, _EJS_s); _EJS_result = beanRef.getHomeHandle(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 3, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * remove */ public void remove(java.lang.Object arg0) throws java.rmi.RemoteException, javax.ejb.RemoveException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.EJSCMPLeaseContractBLOBHomeBean_54b76cb3 beanRef = (com.hps.july.persistence.EJSCMPLeaseContractBLOBHomeBean_54b76cb3)container.preInvoke(this, 4, _EJS_s); beanRef.remove(arg0); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (javax.ejb.RemoveException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 4, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * remove */ public void remove(javax.ejb.Handle arg0) throws java.rmi.RemoteException, javax.ejb.RemoveException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.EJSCMPLeaseContractBLOBHomeBean_54b76cb3 beanRef = (com.hps.july.persistence.EJSCMPLeaseContractBLOBHomeBean_54b76cb3)container.preInvoke(this, 5, _EJS_s); beanRef.remove(arg0); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (javax.ejb.RemoveException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 5, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } }
[ "ildar66@inbox.ru" ]
ildar66@inbox.ru