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
f88e0f9ca18b469df79209f56f02fbeb679a5e07
6500848c3661afda83a024f9792bc6e2e8e8a14e
/output/com.google.android.finsky.billing.q.java
8832e88b37b1d4897dabfc2c86d6d05a0cbea73e
[]
no_license
enaawy/gproject
fd71d3adb3784d12c52daf4eecd4b2cb5c81a032
91cb88559c60ac741d4418658d0416f26722e789
refs/heads/master
2021-09-03T03:49:37.813805
2018-01-05T09:35:06
2018-01-05T09:35:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
808
java
package com.google.android.finsky.billing; import android.content.DialogInterface; import android.widget.CheckBox; public final class com.google.android.finsky.billing.q implements DialogInterface$OnClickListener { public final boolean a; public final CheckBox b; public final boolean c; public final com.google.android.finsky.billing.p d; q(com.google.android.finsky.billing.p p0, boolean p1, CheckBox p2, boolean p3) { this.d = p0; this.a = p1; this.b = p2; this.c = p3; } public final void onClick(DialogInterface p0, int p1) { if (this.a != 0) v0 = this.b.isChecked(); else v0 = this.c; if (v0 != 0) v0 = 3; else v0 = 1; this.d.W().a(v0, 0); } }
[ "genius.ron@gmail.com" ]
genius.ron@gmail.com
8ef67055f4d684a16b16a25197d5eff030f6f1d1
911d1424056a8121bb4127c41debaab5740fbaa6
/src/main/java/io/astraeus/game/world/entity/mob/combat/task/HitTask.java
56de7394234b5712f028d1d41b485e0593cd1f5d
[ "MIT" ]
permissive
seriousstudios/astraeus-server-v2
2122de6a5f49324f3746f5acf2417fab522785e2
b80665a586ddb117a1d1b58809dcc539e5e693b5
refs/heads/master
2020-03-17T06:22:29.130180
2018-05-14T12:06:26
2018-05-14T12:06:26
133,352,558
0
0
null
2018-05-14T11:47:09
2018-05-14T11:47:09
null
UTF-8
Java
false
false
1,662
java
package io.astraeus.game.world.entity.mob.combat.task; import io.astraeus.game.task.Task; import io.astraeus.game.world.entity.mob.Mob; import io.astraeus.game.world.entity.mob.combat.Combat; import io.astraeus.game.world.entity.mob.combat.CombatType; import io.astraeus.game.world.entity.mob.combat.dmg.Hit; import io.astraeus.util.RandomUtils; public final class HitTask extends Task { private final Combat combat; private final Mob defender; private int tickTimer = 0; public HitTask(Combat combat, Mob defender) { super(0, true); this.combat = combat; this.defender = defender; } @Override public void execute() { if (!combat.isInCombat() || defender.isDead() || combat.getMob().isDead()) { stop(); return; } // TODO range of weapons if (!defender.getPosition().isWithinDistance(combat.getMob().getPosition(), 1)) { stop(); return; } if (!combat.getCombatCooldown().contains(CombatType.MELEE)) { combat.getCombatCooldown().add(CombatType.MELEE, combat.getAttackBuilder().getAttackSpeed(), combat.getMob()); combat.getAttackBuilder().buildAttack(); combat.getMob().setInteractingEntity(defender); defender.dealDamage(combat.getMob(), new Hit(RandomUtils.random(0, combat.getMeleeFormula().calculateMaxHit()))); if (tickTimer >= 1) { defender.getCombat().attack(combat.getMob()); } defender.setInteractingEntity(combat.getMob()); } tickTimer++; if (tickTimer > 10_000) { tickTimer = 0; } } }
[ "nshusa99@gmail.com" ]
nshusa99@gmail.com
90b715a7fe6d142ca755e7afcc96acb229a3e0d5
f7295dfe3c303e1d656e7dd97c67e49f52685564
/smali/com/google/zxing/oned/UPCAWriter.java
0db480f789ee6beffb69759f3ad434ebaba8ac7f
[]
no_license
Eason-Chen0452/XiaoMiGame
36a5df0cab79afc83120dab307c3014e31f36b93
ba05d72a0a0c7096d35d57d3b396f8b5d15729ef
refs/heads/master
2022-04-14T11:08:31.280151
2020-04-14T08:57:25
2020-04-14T08:57:25
255,541,211
0
1
null
null
null
null
UTF-8
Java
false
false
1,885
java
package com.google.zxing.oned; import com.google.zxing.BarcodeFormat; import com.google.zxing.EncodeHintType; import com.google.zxing.Writer; import com.google.zxing.WriterException; import com.google.zxing.common.BitMatrix; import java.util.Map; public final class UPCAWriter implements Writer { private final EAN13Writer subWriter = new EAN13Writer(); private static String preencode(String paramString) { int i = paramString.length(); String str; if (i == 11) { int j = 0; i = 0; if (i < 11) { int m = paramString.charAt(i); if (i % 2 == 0) {} for (int k = 3;; k = 1) { j += k * (m - 48); i += 1; break; } } str = paramString + (1000 - j) % 10; } do { return '0' + str; str = paramString; } while (i == 12); throw new IllegalArgumentException("Requested contents should be 11 or 12 digits long, but got " + paramString.length()); } public BitMatrix encode(String paramString, BarcodeFormat paramBarcodeFormat, int paramInt1, int paramInt2) throws WriterException { return encode(paramString, paramBarcodeFormat, paramInt1, paramInt2, null); } public BitMatrix encode(String paramString, BarcodeFormat paramBarcodeFormat, int paramInt1, int paramInt2, Map<EncodeHintType, ?> paramMap) throws WriterException { if (paramBarcodeFormat != BarcodeFormat.UPC_A) { throw new IllegalArgumentException("Can only encode UPC-A, but got " + paramBarcodeFormat); } return this.subWriter.encode(preencode(paramString), BarcodeFormat.EAN_13, paramInt1, paramInt2, paramMap); } } /* Location: C:\Users\Administrator\Desktop\apk\dex2jar\classes-dex2jar.jar!\com\google\zxing\oned\UPCAWriter.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "chen_guiq@163.com" ]
chen_guiq@163.com
b1e84a6c1e4cae36cb5163d00c6a77596c574b8b
7d800d383f35b2edfa6cf66b536665116e179038
/doma/src/test/java/org/seasar/doma/internal/apt/dao/DelegateDaoDelegate.java
7ede3f8f9c476b1dc421f1d90347429c809c5a25
[ "Apache-2.0" ]
permissive
seasarorg/doma
0e8522ebdbed8d6c945c835bc1bbd2bd031534ea
385b00bf0d098bf3e37855565c14933e325b2f83
refs/heads/master
2022-07-07T09:50:27.260091
2020-11-21T00:37:36
2020-11-21T00:37:36
13,232,491
12
7
null
2022-01-21T23:19:46
2013-10-01T01:58:26
Java
UTF-8
Java
false
false
1,223
java
/* * Copyright 2004-2010 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 org.seasar.doma.internal.apt.dao; import java.math.BigDecimal; import org.seasar.doma.jdbc.Config; /** * @author taedium * */ public class DelegateDaoDelegate { protected Config config; public DelegateDaoDelegate(Config config) { this.config = config; } public BigDecimal execute(String aaa, Integer bbb) { return null; } public BigDecimal execute2(String aaa, Integer bbb, String... ccc) { return null; } public void execute3(String aaa, Integer bbb, String... ccc) { } }
[ "toshihiro.nakamura@gmail.com" ]
toshihiro.nakamura@gmail.com
b7d81defd630ae9c844792176350b4397a326bb4
87a0450b030dc55b19e2da08e1dc27b4dcc32140
/shopping/src/main/java/org/ql/shopping/pojo/lottery/LotteryType.java
ff2f9932862faeb2e3d3f5a1bc3f8426656ad24d
[]
no_license
qlandroid/lottery
07a93d6f7ecfb0e595bfb371bdb61896647c9493
c0c1d32d139c94b1a4642a8b5934d7d79a6418cc
refs/heads/master
2021-06-24T09:04:06.326101
2017-09-11T10:01:19
2017-09-11T10:01:19
100,509,251
0
0
null
null
null
null
UTF-8
Java
false
false
940
java
package org.ql.shopping.pojo.lottery; import org.ql.shopping.pojo.Model; public class LotteryType extends Model { private Integer lotteryTypeId; private String lotteryType; private String lotteryName; private Integer lotteryClazzId; public Integer getLotteryTypeId() { return lotteryTypeId; } public void setLotteryTypeId(Integer lotteryTypeId) { this.lotteryTypeId = lotteryTypeId; } public String getLotteryType() { return lotteryType; } public void setLotteryType(String lotteryType) { this.lotteryType = lotteryType == null ? null : lotteryType.trim(); } public String getLotteryName() { return lotteryName; } public void setLotteryName(String lotteryName) { this.lotteryName = lotteryName == null ? null : lotteryName.trim(); } public Integer getLotteryClazzId() { return lotteryClazzId; } public void setLotteryClazzId(Integer lotteryClazzId) { this.lotteryClazzId = lotteryClazzId; } }
[ "strive_bug@yeah.net" ]
strive_bug@yeah.net
e109107ca05d002e32e20e9aa771c1dcb34af35b
9a8a10ff1a8ed5096eb10b3e9d78d25848a2bd0b
/src/gen/java/fakekube/io/model/IoK8sApiAutoscalingV2beta1PodsMetricStatus.java
bc13ad0d9fa198fbfee2e457d1c04a99d9bc8ee1
[ "Apache-2.0" ]
permissive
ahadas/fakekube
35264c83fea2a506e14420b046e471180423d9f4
0848aca921b0baa4678ea283ee1f744a72c2599c
refs/heads/master
2023-08-07T14:47:07.602617
2021-06-10T15:03:22
2021-06-10T15:03:22
233,591,593
4
2
Apache-2.0
2023-07-23T02:40:03
2020-01-13T12:34:57
Java
UTF-8
Java
false
false
4,803
java
package fakekube.io.model; import fakekube.io.model.IoK8sApimachineryPkgApisMetaV1LabelSelector; import io.swagger.annotations.ApiModel; import javax.validation.constraints.*; import javax.validation.Valid; import io.swagger.annotations.ApiModelProperty; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlEnumValue; import com.fasterxml.jackson.annotation.JsonProperty; /** * PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second). **/ @ApiModel(description="PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).") public class IoK8sApiAutoscalingV2beta1PodsMetricStatus { @ApiModelProperty(required = true, value = "currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)") /** * currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) **/ private String currentAverageValue = null; @ApiModelProperty(required = true, value = "metricName is the name of the metric in question") /** * metricName is the name of the metric in question **/ private String metricName = null; @ApiModelProperty(value = "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics.") @Valid /** * selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. **/ private IoK8sApimachineryPkgApisMetaV1LabelSelector selector = null; /** * currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) * @return currentAverageValue **/ @JsonProperty("currentAverageValue") @NotNull public String getCurrentAverageValue() { return currentAverageValue; } public void setCurrentAverageValue(String currentAverageValue) { this.currentAverageValue = currentAverageValue; } public IoK8sApiAutoscalingV2beta1PodsMetricStatus currentAverageValue(String currentAverageValue) { this.currentAverageValue = currentAverageValue; return this; } /** * metricName is the name of the metric in question * @return metricName **/ @JsonProperty("metricName") @NotNull public String getMetricName() { return metricName; } public void setMetricName(String metricName) { this.metricName = metricName; } public IoK8sApiAutoscalingV2beta1PodsMetricStatus metricName(String metricName) { this.metricName = metricName; return this; } /** * selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. * @return selector **/ @JsonProperty("selector") public IoK8sApimachineryPkgApisMetaV1LabelSelector getSelector() { return selector; } public void setSelector(IoK8sApimachineryPkgApisMetaV1LabelSelector selector) { this.selector = selector; } public IoK8sApiAutoscalingV2beta1PodsMetricStatus selector(IoK8sApimachineryPkgApisMetaV1LabelSelector selector) { this.selector = selector; return this; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IoK8sApiAutoscalingV2beta1PodsMetricStatus {\n"); sb.append(" currentAverageValue: ").append(toIndentedString(currentAverageValue)).append("\n"); sb.append(" metricName: ").append(toIndentedString(metricName)).append("\n"); sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private static String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
[ "ahadas@redhat.com" ]
ahadas@redhat.com
9363725978d69aca74513d574b742024cc427b3a
867bb3414c183bc19cf985bb6d3c55f53bfc4bfd
/ai-server/src/test/java/com/cjcx/aiserver/AiServerApplicationTests.java
53ba0f7168c54cba647905ac15bef391d23b0831
[]
no_license
easonstudy/cloud-dev
49d02fa513df3c92c5ed03cec61844d10890b80b
fe898cbfb746232fe199e83969b89cb83e85dfaf
refs/heads/master
2020-03-29T05:39:36.279494
2018-10-22T10:55:14
2018-10-22T10:55:32
136,574,935
0
0
null
null
null
null
UTF-8
Java
false
false
336
java
package com.cjcx.aiserver; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @SpringBootTest public class AiServerApplicationTests { @Test public void contextLoads() { } }
[ "11" ]
11
1aaf946193055bb7363c9050496a255a3d735ae6
8af1164bac943cef64e41bae312223c3c0e38114
/results-java/apereo--cas/4cc68d8256ab60a293d8d5434807ed759c34e61b/after/FileAuthenticationHandlerTests.java
3d29c0787b9b1f3b0d69252c9208653531096db4
[]
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
6,053
java
/* * Licensed to Jasig under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Jasig 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 the following location: * * 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.jasig.cas.adaptors.generic; import static org.junit.Assert.*; import java.net.MalformedURLException; import java.net.URL; import javax.security.auth.login.AccountNotFoundException; import javax.security.auth.login.FailedLoginException; import org.jasig.cas.authentication.PreventedException; import org.jasig.cas.authentication.UsernamePasswordCredential; import org.jasig.cas.authentication.HttpBasedServiceCredential; import org.junit.Before; import org.junit.Test; import org.springframework.core.io.ClassPathResource; /** * @author Scott Battaglia */ public class FileAuthenticationHandlerTests { private FileAuthenticationHandler authenticationHandler; /** * @see junit.framework.TestCase#setUp() */ @Before public void setUp() throws Exception { this.authenticationHandler = new FileAuthenticationHandler(); this.authenticationHandler.setFileName( new ClassPathResource("org/jasig/cas/adaptors/generic/authentication.txt")); } @Test public void testSupportsProperUserCredentials() throws Exception { UsernamePasswordCredential c = new UsernamePasswordCredential(); c.setUsername("scott"); c.setPassword("rutgers"); assertNotNull(this.authenticationHandler.authenticate(c)); } @Test public void testDoesntSupportBadUserCredentials() { try { final HttpBasedServiceCredential c = new HttpBasedServiceCredential( new URL("http://www.rutgers.edu")); assertFalse(this.authenticationHandler.supports(c)); } catch (MalformedURLException e) { fail("MalformedURLException caught."); } } @Test public void testAuthenticatesUserInFileWithDefaultSeparator() throws Exception { final UsernamePasswordCredential c = new UsernamePasswordCredential(); c.setUsername("scott"); c.setPassword("rutgers"); assertNotNull(this.authenticationHandler.authenticate(c)); } @Test(expected = AccountNotFoundException.class) public void testFailsUserNotInFileWithDefaultSeparator() throws Exception { final UsernamePasswordCredential c = new UsernamePasswordCredential(); c.setUsername("fds"); c.setPassword("rutgers"); this.authenticationHandler.authenticate(c); } @Test(expected = AccountNotFoundException.class) public void testFailsNullUserName() throws Exception { final UsernamePasswordCredential c = new UsernamePasswordCredential(); c.setUsername(null); c.setPassword("user"); this.authenticationHandler.authenticate(c); } @Test(expected = AccountNotFoundException.class) public void testFailsNullUserNameAndPassword() throws Exception { final UsernamePasswordCredential c = new UsernamePasswordCredential(); c.setUsername(null); c.setPassword(null); this.authenticationHandler.authenticate(c); } @Test(expected = FailedLoginException.class) public void testFailsNullPassword() throws Exception { final UsernamePasswordCredential c = new UsernamePasswordCredential(); c.setUsername("scott"); c.setPassword(null); this.authenticationHandler.authenticate(c); } @Test public void testAuthenticatesUserInFileWithCommaSeparator() throws Exception { final UsernamePasswordCredential c = new UsernamePasswordCredential(); this.authenticationHandler.setFileName( new ClassPathResource("org/jasig/cas/adaptors/generic/authentication2.txt")); this.authenticationHandler.setSeparator(","); c.setUsername("scott"); c.setPassword("rutgers"); assertNotNull(this.authenticationHandler.authenticate(c)); } @Test(expected = AccountNotFoundException.class) public void testFailsUserNotInFileWithCommaSeparator() throws Exception { final UsernamePasswordCredential c = new UsernamePasswordCredential(); this.authenticationHandler.setFileName( new ClassPathResource("org/jasig/cas/adaptors/generic/authentication2.txt")); this.authenticationHandler.setSeparator(","); c.setUsername("fds"); c.setPassword("rutgers"); this.authenticationHandler.authenticate(c); } @Test(expected = FailedLoginException.class) public void testFailsGoodUsernameBadPassword() throws Exception { final UsernamePasswordCredential c = new UsernamePasswordCredential(); this.authenticationHandler.setFileName( new ClassPathResource("org/jasig/cas/adaptors/generic/authentication2.txt")); this.authenticationHandler.setSeparator(","); c.setUsername("scott"); c.setPassword("rutgers1"); this.authenticationHandler.authenticate(c); } @Test(expected = PreventedException.class) public void testAuthenticateNoFileName() throws Exception { final UsernamePasswordCredential c = new UsernamePasswordCredential(); this.authenticationHandler.setFileName(new ClassPathResource("fff")); c.setUsername("scott"); c.setPassword("rutgers"); this.authenticationHandler.authenticate(c); } }
[ "fraczwojciech@gmail.com" ]
fraczwojciech@gmail.com
a109802a18e635a2df15e694dd7f99b20cdb1959
5b8337c39cea735e3817ee6f6e6e4a0115c7487c
/sources/com/mobiroller/fragments/aveWebViewFragment_ViewBinding.java
c8a040c02eb9879ecab1f9be05f9bd0044268822
[]
no_license
karthik990/G_Farm_Application
0a096d334b33800e7d8b4b4c850c45b8b005ccb1
53d1cc82199f23517af599f5329aa4289067f4aa
refs/heads/master
2022-12-05T06:48:10.513509
2020-08-10T14:46:48
2020-08-10T14:46:48
286,496,946
1
0
null
null
null
null
UTF-8
Java
false
false
1,196
java
package com.mobiroller.fragments; import android.view.View; import android.widget.RelativeLayout; import butterknife.Unbinder; import butterknife.internal.C0812Utils; import com.mobiroller.mobi942763453128.R; import com.mobiroller.views.VideoEnabledWebView; public class aveWebViewFragment_ViewBinding implements Unbinder { private aveWebViewFragment target; public aveWebViewFragment_ViewBinding(aveWebViewFragment avewebviewfragment, View view) { this.target = avewebviewfragment; avewebviewfragment.mWebView = (VideoEnabledWebView) C0812Utils.findRequiredViewAsType(view, R.id.web_view, "field 'mWebView'", VideoEnabledWebView.class); avewebviewfragment.relLayout = (RelativeLayout) C0812Utils.findRequiredViewAsType(view, R.id.web_layout, "field 'relLayout'", RelativeLayout.class); } public void unbind() { aveWebViewFragment avewebviewfragment = this.target; if (avewebviewfragment != null) { this.target = null; avewebviewfragment.mWebView = null; avewebviewfragment.relLayout = null; return; } throw new IllegalStateException("Bindings already cleared."); } }
[ "knag88@gmail.com" ]
knag88@gmail.com
2733e455c6734fbccfe936148a0228c0c6c86a24
a2f37622367478b5671d815562727da25874421b
/core-customize/hybris/bin/custom/braintree/braintreeb2bfacades/src/com/braintree/facade/order/converters/populator/B2BBrainTreeCartPopulator.java
37421efcf00495b7f2e5b565f808097508a30f92
[]
no_license
abhishek-kumar-singh1896/CommercePortal
3d3c7906547d8387411e0473362ffc6b90762aa8
d4f505bf52f99452dc8d28c29532b7a9944c2030
refs/heads/master
2023-02-10T12:57:43.077800
2020-01-10T14:26:24
2020-01-10T14:26:24
299,261,066
1
0
null
null
null
null
UTF-8
Java
false
false
2,022
java
/** * */ package com.braintree.facade.order.converters.populator; import de.hybris.platform.b2bacceleratorfacades.order.populators.B2BCartPopulator; import de.hybris.platform.commercefacades.order.data.AbstractOrderData; import de.hybris.platform.commercefacades.order.data.CCPaymentInfoData; import de.hybris.platform.core.model.order.AbstractOrderModel; import de.hybris.platform.core.model.order.payment.CreditCardPaymentInfoModel; import de.hybris.platform.core.model.order.payment.PaymentInfoModel; import de.hybris.platform.servicelayer.dto.converter.Converter; import com.braintree.model.BrainTreePaymentInfoModel; public class B2BBrainTreeCartPopulator extends B2BCartPopulator { private Converter<BrainTreePaymentInfoModel, CCPaymentInfoData> brainTreePaymentInfoConverter; @Override protected void addPaymentInformation(final AbstractOrderModel source, final AbstractOrderData prototype) { final PaymentInfoModel paymentInfo = source.getPaymentInfo(); if (paymentInfo instanceof CreditCardPaymentInfoModel) { final CCPaymentInfoData paymentInfoData = (CCPaymentInfoData) getCreditCardPaymentInfoConverter() .convert((CreditCardPaymentInfoModel) paymentInfo); prototype.setPaymentInfo(paymentInfoData); } if (paymentInfo instanceof BrainTreePaymentInfoModel) { final CCPaymentInfoData paymentInfoData = getBrainTreePaymentInfoConverter() .convert((BrainTreePaymentInfoModel) paymentInfo); prototype.setPaymentInfo(paymentInfoData); } } /** * @return the brainTreePaymentInfoConverter */ public Converter<BrainTreePaymentInfoModel, CCPaymentInfoData> getBrainTreePaymentInfoConverter() { return brainTreePaymentInfoConverter; } /** * @param brainTreePaymentInfoConverter * the brainTreePaymentInfoConverter to set */ public void setBrainTreePaymentInfoConverter( final Converter<BrainTreePaymentInfoModel, CCPaymentInfoData> brainTreePaymentInfoConverter) { this.brainTreePaymentInfoConverter = brainTreePaymentInfoConverter; } }
[ "leireituarte@enterprisewide.com" ]
leireituarte@enterprisewide.com
4cf532c2247a0cf6fccd560266645845831d4958
0af8b92686a58eb0b64e319b22411432aca7a8f3
/single-large-project/src/test/java/org/gradle/test/performancenull_189/Testnull_18831.java
c05937def1ce70f19f9105b8f8885119071c49ec
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
308
java
package org.gradle.test.performancenull_189; import static org.junit.Assert.*; public class Testnull_18831 { private final Productionnull_18831 production = new Productionnull_18831("value"); @org.junit.Test public void test() { assertEquals(production.getProperty(), "value"); } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
5d75b46ec870529c0db2d454535fa8eaf5be440e
5f4afbc92a72bd847b8aa9ae95f9be9d706ad7d8
/esuizhen-service/esuizhen-ehr-system_invalid/src/main/java/com/esuizhen/cloudservice/ehr/bean/TTreatmentInfo.java
63feb649a1bc383da5bd75b4f0178f8b7d968c60
[]
no_license
331491512/esz
dfc13ba9e142ab1cbacc92cd0bf1b55fec2a05a1
8edd10a74b75d36d3963d2ae64602d02ba548b43
refs/heads/master
2021-04-06T20:31:45.968785
2018-03-16T02:56:36
2018-03-16T02:56:36
125,451,748
1
0
null
null
null
null
UTF-8
Java
false
false
4,540
java
/** * <b>项目名:</b>易随诊<br/> * <b>包名:</b>package com.esuizhen.cloudservice.ehr.bean;<br/> * <b>文件名:</b>TTreatmentInfo.java<br/> * <b>版本信息:</b><br/> * <b>日期:</b>2016年5月24日下午3:17:32<br/> * <b>Copyright (c)</b> 2015西部天使公司-版权所有<br/> * */ package com.esuizhen.cloudservice.ehr.bean; import java.util.Date; /** * @ClassName: TTreatmentInfo * @Description: * @author lichenghao * @date 2016年5月24日 下午3:17:32 */ public class TTreatmentInfo { //治疗编号 private String treatmentId; /** * 患者编号 */ private Long patientId; /** * 病案号 */ private String patientNo; /** * 病案首页id */ private String inhospitalId; //治疗时间 private Date treatmentBeginTime; /** * 结束日期 */ private Date treatmentEndTime; /** * 治疗方法 */ private String treatmentWay; //治疗类型 private Integer treatmentTypeId; //治疗类型名称 private String treatmentTypeName; //治疗方案 private String treatmentName; /** * 总剂量 */ private Float treatmentDosage; /** * 总剂量单位 */ private String dosageUnit; /** * 治疗完成情况 */ private Integer treatmentProcessFlag; /** * 治疗用药 */ private String medicine; //治疗医生Id private Long operationDoctor; //信息来源 2.医生上传 3.医院同步 private Integer sourceFlag; //创建人 private Long creatorId; //创建人姓名 private String creatorName; /** * 编目状态 */ private Integer catalogState; public String getTreatmentId() { return treatmentId; } public void setTreatmentId(String treatmentId) { this.treatmentId = treatmentId; } public Date getTreatmentBeginTime() { return treatmentBeginTime; } public void setTreatmentBeginTime(Date treatmentBeginTime) { this.treatmentBeginTime = treatmentBeginTime; } public Date getTreatmentEndTime() { return treatmentEndTime; } public void setTreatmentEndTime(Date treatmentEndTime) { this.treatmentEndTime = treatmentEndTime; } public Integer getTreatmentTypeId() { return treatmentTypeId; } public void setTreatmentTypeId(Integer treatmentTypeId) { this.treatmentTypeId = treatmentTypeId; } public String getTreatmentTypeName() { return treatmentTypeName; } public void setTreatmentTypeName(String treatmentTypeName) { this.treatmentTypeName = treatmentTypeName; } public String getTreatmentName() { return treatmentName; } public void setTreatmentName(String treatmentName) { this.treatmentName = treatmentName; } public Float getTreatmentDosage() { return treatmentDosage; } public void setTreatmentDosage(Float treatmentDosage) { this.treatmentDosage = treatmentDosage; } public String getDosageUnit() { return dosageUnit; } public void setDosageUnit(String dosageUnit) { this.dosageUnit = dosageUnit; } public Integer getTreatmentProcessFlag() { return treatmentProcessFlag; } public void setTreatmentProcessFlag(Integer treatmentProcessFlag) { this.treatmentProcessFlag = treatmentProcessFlag; } public String getMedicine() { return medicine; } public void setMedicine(String medicine) { this.medicine = medicine; } public Integer getSourceFlag() { return sourceFlag; } public void setSourceFlag(Integer sourceFlag) { this.sourceFlag = sourceFlag; } public Long getCreatorId() { return creatorId; } public void setCreatorId(Long creatorId) { this.creatorId = creatorId; } public String getCreatorName() { return creatorName; } public void setCreatorName(String creatorName) { this.creatorName = creatorName; } public Long getOperationDoctor() { return operationDoctor; } public void setOperationDoctor(Long operationDoctor) { this.operationDoctor = operationDoctor; } public Integer getCatalogState() { return catalogState; } public void setCatalogState(Integer catalogState) { this.catalogState = catalogState; } public String getTreatmentWay() { return treatmentWay; } public void setTreatmentWay(String treatmentWay) { this.treatmentWay = treatmentWay; } public Long getPatientId() { return patientId; } public void setPatientId(Long patientId) { this.patientId = patientId; } public String getPatientNo() { return patientNo; } public void setPatientNo(String patientNo) { this.patientNo = patientNo; } public String getInhospitalId() { return inhospitalId; } public void setInhospitalId(String inhospitalId) { this.inhospitalId = inhospitalId; } }
[ "zhuguo@qgs-china.com" ]
zhuguo@qgs-china.com
30cbfdfe6f3596d1a5e5bfbcd04be13020254cf1
8b5ccc72483cc915158802640c91d20a435a551a
/core/store/src/main/java/com/buschmais/jqassistant/core/store/api/descriptor/NamedDescriptor.java
3f6b832a583c2fa93ae9963eba30c188c7c96fcb
[]
no_license
viesis/jqassistant
bd16e658dbeb692347f6c21d171fdfe282f6242b
ba4c9ac915a2c3544b4ae97e684391c52e930343
refs/heads/master
2020-12-28T23:04:20.918608
2013-12-12T14:04:32
2013-12-12T14:04:32
null
0
0
null
null
null
null
UTF-8
Java
false
false
274
java
package com.buschmais.jqassistant.core.store.api.descriptor; import com.buschmais.cdo.neo4j.api.annotation.Property; /** * Defines a descriptor having a name. */ public interface NamedDescriptor { @Property("NAME") String getName(); void setName(String name); }
[ "dirk.mahler@buschmais.com" ]
dirk.mahler@buschmais.com
1c54b71ec4d596c48c4d8b82db6d82695f3c64a0
655dca3d5b9535e1f70ca0788310fe68c867f46e
/open-metadata-implementation/access-services/subject-area/subject-area-api/src/main/java/org/odpi/openmetadata/accessservices/subjectarea/responses/StatusNotsupportedExceptionResponse.java
eeb19f54acf6377c84f2517ca41e6376742c9935
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
DimitriosMaimaris/egeria
d610e9859366a4d94ef343d56f9bc83627834c9c
f26ced6dcdafd06d19404a66f85c306621612b7a
refs/heads/master
2020-07-21T08:42:14.028077
2020-05-13T11:26:37
2020-05-13T11:26:37
205,804,691
0
0
Apache-2.0
2019-09-02T07:52:28
2019-09-02T07:52:27
null
UTF-8
Java
false
false
4,636
java
/* SPDX-License-Identifier: Apache-2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.accessservices.subjectarea.responses; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import org.odpi.openmetadata.accessservices.subjectarea.ffdc.exceptions.EntityNotDeletedException; import org.odpi.openmetadata.accessservices.subjectarea.ffdc.exceptions.SubjectAreaCheckedExceptionBase; import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE; import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY; /** *StatusNotsupportedExceptionResponseResponse is the response that wraps a StatusNotsupportedExceptionResponse */ @JsonAutoDetect(getterVisibility=PUBLIC_ONLY, setterVisibility=PUBLIC_ONLY, fieldVisibility=NONE) @JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(ignoreUnknown=true) public class StatusNotsupportedExceptionResponse extends SubjectAreaOMASAPIResponse { protected String exceptionClassName = null; protected String exceptionErrorMessage = null; protected String exceptionSystemAction = null; protected String exceptionUserAction = null; /** * Default constructor */ public StatusNotsupportedExceptionResponse() { this.setResponseCategory(ResponseCategory.StatusNotSupportedException); } public StatusNotsupportedExceptionResponse(SubjectAreaCheckedExceptionBase e) { this(); this.exceptionClassName = e.getReportingClassName(); this.exceptionErrorMessage = e.getErrorMessage(); this.exceptionSystemAction = e.getReportedSystemAction(); this.exceptionUserAction = e.getReportedUserAction(); } @Override public String toString() { return "RelationshipNotDeletedExceptionResponse{" + super.toString() + "relatedHTTPCode=" + relatedHTTPCode + ", exceptionClassName='" + exceptionClassName + '\'' + ", exceptionErrorMessage='" + exceptionErrorMessage + '\'' + ", exceptionSystemAction='" + exceptionSystemAction + '\'' + ", exceptionUserAction='" + exceptionUserAction + '\'' + "category=" + this.responseCategory + '}'; } /** * Return the name of the Java class name to use to recreate the exception. * * @return String name of the fully-qualified java class name */ public String getExceptionClassName() { return exceptionClassName; } /** * Set up the name of the Java class name to use to recreate the exception. * * @param exceptionClassName - String name of the fully-qualified java class name */ public void setExceptionClassName(String exceptionClassName) { this.exceptionClassName = exceptionClassName; } /** * Return the error message associated with the exception. * * @return string error message */ public String getExceptionErrorMessage() { return exceptionErrorMessage; } /** * Set up the error message associated with the exception. * * @param exceptionErrorMessage - string error message */ public void setExceptionErrorMessage(String exceptionErrorMessage) { this.exceptionErrorMessage = exceptionErrorMessage; } /** * Return the description of the action taken by the system as a result of the exception. * * @return - string description of the action taken */ public String getExceptionSystemAction() { return exceptionSystemAction; } /** * Set up the description of the action taken by the system as a result of the exception. * * @param exceptionSystemAction - string description of the action taken */ public void setExceptionSystemAction(String exceptionSystemAction) { this.exceptionSystemAction = exceptionSystemAction; } /** * Return the action that a user should take to resolve the problem. * * @return string instructions */ public String getExceptionUserAction() { return exceptionUserAction; } /** * Set up the action that a user should take to resolve the problem. * * @param exceptionUserAction - string instructions */ public void setExceptionUserAction(String exceptionUserAction) { this.exceptionUserAction = exceptionUserAction; } }
[ "david_radley@uk.ibm.com" ]
david_radley@uk.ibm.com
5d4c927d5eef53a43c4ce74255ffc116db665966
9810488568a8b75c2d16edf50b4b57e8e5c7bebb
/EncogAdvanced/src/drosa/finances/QuoteValue.java
8478deb59c1a7b9e272928af31567d3c838e4dfc
[]
no_license
davidautentico/FxPredictor
392693e32724e9196d6ab33135b916515b4bc64d
36c1d413d472d4c1478668614df5d476fcb6c82e
refs/heads/master
2021-06-24T08:40:47.395190
2021-03-21T11:05:55
2021-03-21T11:05:55
195,585,127
0
0
null
2020-10-13T14:24:38
2019-07-06T21:37:34
Java
UTF-8
Java
false
false
539
java
package drosa.finances; import java.util.Date; import drosa.utils.QuoteType; public class QuoteValue { QuoteType quoteType; float value; Date date; public QuoteType getQuoteType() { return quoteType; } public void setQuoteType(QuoteType quoteType) { this.quoteType = quoteType; } public float getValue() { return value; } public void setValue(float value) { this.value = value; } public Date getDate() { return date; } public void setDate(Date date) { this.date = date; } }
[ "davidautentico@gmail.com" ]
davidautentico@gmail.com
089dd26f2d97c8e9d31b33e28db208aedd61cd68
1646441d091844cd8e58659ab13f113bffe9f6ce
/Thinking Java 2/src/generics/E24_FactoryCapture.java
561524b01ed54c3c8208d2eed0d14d17fd588b1b
[]
no_license
PhilDolganov/kantora
b51fca7c0be4227328c662a787ecb9dcb4f9e332
b4b09538ce89f72715f167d6c9c0a70e0e87977c
refs/heads/master
2021-10-02T21:46:07.658179
2018-12-01T04:49:49
2018-12-01T04:49:49
104,503,272
0
0
null
null
null
null
UTF-8
Java
false
false
1,009
java
package generics; import java.util.HashMap; import java.util.Map; import static net.mindview.util.Print.print; class FactoryCapture { Map<String,FactoryI<?>> factories = new HashMap<String, FactoryI<?>>(); public Object createNew(String factoryname, int arg){ FactoryI<?> f = factories.get(factoryname); try { return f.create(arg); }catch (NullPointerException e){ print("Not a registered factoryname: " + factoryname); return null; } } public void addFactory(String factoryname, FactoryI<?> factory){ factories.put(factoryname, factory); } } public class E24_FactoryCapture { public static void main(String[] args){ FactoryCapture fc = new FactoryCapture(); fc.addFactory("Integer", new IntegerFactory()); fc.addFactory("Widget", new Widget.Factory()); print(fc.createNew("Integer",1)); print(fc.createNew("Widget", 2)); fc.createNew("Product", 3); } }
[ "phildolganov@yahoo.com" ]
phildolganov@yahoo.com
6ed7b93c3e7777b8839fb86c112aecafb7114fa3
0d28cda28bbc2e5caaaa673137ce0d90ea077259
/uia.message/src/test/java/uia/message/codec/FloatCodecTest.java
86db110db3f3b9361104fdc9e4c273a7aa1e96ae
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
uia4j/uia-message
898dd6b62178baa984efb9d963d8b61c14ebaa6e
32019a3991ea88e362c1ebd406d5ef92ea60d627
refs/heads/master
2023-04-27T22:27:15.345071
2022-09-07T02:32:36
2022-09-07T02:32:36
28,174,336
3
1
Apache-2.0
2021-07-21T05:34:49
2014-12-18T08:09:20
Java
UTF-8
Java
false
false
1,988
java
/******************************************************************************* * Copyright 2017 UIA * * 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 uia.message.codec; import org.junit.Assert; import org.junit.Test; /** * * @author Kyle */ public class FloatCodecTest { @Test public void testZero() { FloatCodec codec = new FloatCodec(); Assert.assertEquals(0.0f, codec.zeroValue(), 0); } @Test public void testDecode() throws Exception { byte[] data = new byte[] { (byte) 0x41, (byte) 0x44, (byte) 0xc4, (byte) 0x9c }; FloatCodec codec = new FloatCodec(); Assert.assertEquals(12.298, codec.decode(data, 8), 3); } @Test public void testEncode() throws Exception { FloatCodec codec = new FloatCodec(); Assert.assertArrayEquals( new byte[] { (byte) 0x41, (byte) 0x44, (byte) 0xc4, (byte) 0x9c }, codec.encode(new Float(12.298f), 8)); } }
[ "gazer.kanlin@gmail.com" ]
gazer.kanlin@gmail.com
a212994d4019a7a2e6b4cee55356224dcaa53ed6
be7a8e693a7eefcd5a66d24244e7204b8fa164ae
/practice/com.advantest.threadLearn/src/com/advantest/chapter2/setNewPropertiesLockOne/src/extthread/ThreadB.java
7a0d9d1dc0e3c66715349766d0de947dd787a2a5
[]
no_license
zhanglin2018/thread
b7e6619446c6e04fb9eb14e4e433d5552ec9d714
83512e06b481ca784cb108d1629ddeaf7662c568
refs/heads/master
2020-06-18T00:41:06.299062
2019-07-17T10:56:34
2019-07-17T10:56:34
196,112,877
0
0
null
null
null
null
UTF-8
Java
false
false
517
java
package com.advantest.chapter2.setNewPropertiesLockOne.src.extthread; import com.advantest.chapter2.setNewPropertiesLockOne.src.entity.Userinfo; import com.advantest.chapter2.setNewPropertiesLockOne.src.service.Service; public class ThreadB extends Thread { private Service service; private Userinfo userinfo; public ThreadB(Service service, Userinfo userinfo) { super(); this.service = service; this.userinfo = userinfo; } @Override public void run() { service.serviceMethodA(userinfo); } }
[ "lin.zhang@advantest.com" ]
lin.zhang@advantest.com
53e7f0508c705d2c12cb2ddbde14c7fc654599ce
7b73756ba240202ea92f8f0c5c51c8343c0efa5f
/classes2/QQService/ReqFaceInfo.java
57e0be4950dc5eff6e34edac300ec0e965cc67eb
[]
no_license
meeidol-luo/qooq
588a4ca6d8ad579b28dec66ec8084399fb0991ef
e723920ac555e99d5325b1d4024552383713c28d
refs/heads/master
2020-03-27T03:16:06.616300
2016-10-08T07:33:58
2016-10-08T07:33:58
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,564
java
package QQService; import com.qq.taf.jce.JceInputStream; import com.qq.taf.jce.JceOutputStream; import com.qq.taf.jce.JceStruct; import com.tencent.mobileqq.hotpatch.NotVerifyClass; public final class ReqFaceInfo extends JceStruct { static ReqHead cache_stHeader; public byte bReqType; public long lUIN; public ReqHead stHeader; public int uFaceTimeStamp; public ReqFaceInfo() { boolean bool = NotVerifyClass.DO_VERIFY_CLASS; } public ReqFaceInfo(ReqHead paramReqHead, long paramLong, int paramInt, byte paramByte) { this.stHeader = paramReqHead; this.lUIN = paramLong; this.uFaceTimeStamp = paramInt; this.bReqType = paramByte; } public void readFrom(JceInputStream paramJceInputStream) { if (cache_stHeader == null) { cache_stHeader = new ReqHead(); } this.stHeader = ((ReqHead)paramJceInputStream.read(cache_stHeader, 0, true)); this.lUIN = paramJceInputStream.read(this.lUIN, 1, true); this.uFaceTimeStamp = paramJceInputStream.read(this.uFaceTimeStamp, 2, true); this.bReqType = paramJceInputStream.read(this.bReqType, 3, false); } public void writeTo(JceOutputStream paramJceOutputStream) { paramJceOutputStream.write(this.stHeader, 0); paramJceOutputStream.write(this.lUIN, 1); paramJceOutputStream.write(this.uFaceTimeStamp, 2); paramJceOutputStream.write(this.bReqType, 3); } } /* Location: E:\apk\QQ_91\classes2-dex2jar.jar!\QQService\ReqFaceInfo.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "1776098770@qq.com" ]
1776098770@qq.com
d512d408077abbd12ea2c7906721ba32bb5ebd33
359b0f270437098757047f6ec57273e7b9d77414
/src/集合/Collection/Queue/TestQueue.java
11e3a9846bfcbcf4389e75e48a867dc3a1fb5aef
[]
no_license
Yuwenbiao/JavaProgram
21bc97cb567dab8b9c27c966a52b37f591874a0c
087c5b5a6085e51280ce2a04b1bcf9cbb25cbaf8
refs/heads/master
2021-05-12T14:31:01.610775
2018-04-01T13:25:01
2018-04-01T13:25:01
116,957,477
0
0
null
null
null
null
UTF-8
Java
false
false
414
java
package 集合.Collection.Queue; import java.util.LinkedList; import java.util.Queue; public class TestQueue { public static void main(String[] args) { Queue<String> queue = new LinkedList<>(); queue.offer("a"); queue.offer("b"); queue.offer("c"); queue.offer("d"); while (queue.size() > 0) { System.out.println(queue.remove()); } } }
[ "2383299053@qq.com" ]
2383299053@qq.com
2f1b3db10ed2227c48f5f84e01ab3cef98623237
8c8667eeef6487bce01d612d5e948355256b39ac
/personas/src/main/java/mx/babel/bansefi/banksystem/personas/webservices/relacioncliente/bajapersona/SoapPort.java
812c0ea9dea5e4835dca462d46ff08899c7e89bc
[]
no_license
JesusGui/ProyectoBansefi
7c0c228943be245bf69d1d2a9fe7f40a0a04db9f
4b6caa502c279c51231d0f5f8cb0399813c233e2
refs/heads/master
2020-03-28T14:38:44.536238
2018-09-12T16:08:16
2018-09-12T16:08:16
148,507,197
0
0
null
null
null
null
UTF-8
Java
false
false
2,515
java
package mx.babel.bansefi.banksystem.personas.webservices.relacioncliente.bajapersona; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebResult; import javax.jws.WebService; import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.ws.RequestWrapper; import javax.xml.ws.ResponseWrapper; /** * This class was generated by Apache CXF 2.7.7.redhat-1 * 2015-06-16T12:47:32.426-05:00 * Generated source version: 2.7.7.redhat-1 * */ @WebService(targetNamespace = mx.babel.arq.comun.constants.ServicioWebConstants.SOAP_PORT_URL_TRN + "TR_PE_BAJA_RL_PE_DS_TRN", name = "SoapPort") @XmlSeeAlso({ObjectFactory.class}) public interface SoapPort { @WebResult(name = "EjecutarResult", targetNamespace = mx.babel.arq.comun.constants.ServicioWebConstants.SOAP_PORT_URL_TRN + "TR_PE_BAJA_RL_PE_DS_TRN") @RequestWrapper(localName = "Ejecutar", targetNamespace = mx.babel.arq.comun.constants.ServicioWebConstants.SOAP_PORT_URL_TRN + "TR_PE_BAJA_RL_PE_DS_TRN", className = "mx.babel.bansefi.banksystem.personas.webservices.relacioncliente.bajapersona.Ejecutar") @WebMethod(operationName = "Ejecutar", action = mx.babel.arq.comun.constants.ServicioWebConstants.SOAP_PORT_URL_TRN + "TR_PE_BAJA_RL_PE_DS_TRN/Ejecutar") @ResponseWrapper(localName = "EjecutarResponse", targetNamespace = mx.babel.arq.comun.constants.ServicioWebConstants.SOAP_PORT_URL_TRN + "TR_PE_BAJA_RL_PE_DS_TRN", className = "mx.babel.bansefi.banksystem.personas.webservices.relacioncliente.bajapersona.EjecutarResponse") public mx.babel.bansefi.banksystem.personas.webservices.relacioncliente.bajapersona.EjecutarResult ejecutar( @WebParam(name = "USERHEADER", targetNamespace = mx.babel.arq.comun.constants.ServicioWebConstants.SOAP_PORT_URL_TRN + "TR_PE_BAJA_RL_PE_DS_TRN") java.lang.String userheader, @WebParam(name = "PASSHEADER", targetNamespace = mx.babel.arq.comun.constants.ServicioWebConstants.SOAP_PORT_URL_TRN + "TR_PE_BAJA_RL_PE_DS_TRN") java.lang.String passheader, @WebParam(name = "IPHEADER", targetNamespace = mx.babel.arq.comun.constants.ServicioWebConstants.SOAP_PORT_URL_TRN + "TR_PE_BAJA_RL_PE_DS_TRN") java.lang.String ipheader, @WebParam(name = "ITR_PE_BAJA_RL_PE_DS_TRN", targetNamespace = mx.babel.arq.comun.constants.ServicioWebConstants.SOAP_PORT_URL_TRN + "TR_PE_BAJA_RL_PE_DS_TRN") mx.babel.bansefi.banksystem.personas.webservices.relacioncliente.bajapersona.Ejecutar.ITRPEBAJARLPEDSTRN itrPEBAJARLPEDSTRN ); }
[ "jesusguillermomendez@gmail.com" ]
jesusguillermomendez@gmail.com
33cd365fc6c7542d8b4c87d09904ac638e105798
13c2d3db2d49c40c74c2e6420a9cd89377f1c934
/program_data/JavaProgramData/28/1374.java
b8a3535accedc279f2d7ddd33fa928c4ecb40891
[ "MIT" ]
permissive
qiuchili/ggnn_graph_classification
c2090fefe11f8bf650e734442eb96996a54dc112
291ff02404555511b94a4f477c6974ebd62dcf44
refs/heads/master
2021-10-18T14:54:26.154367
2018-10-21T23:34:14
2018-10-21T23:34:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
608
java
package <missing>; public class GlobalMembers { public static int Main() { String str = new String(new char[10000]); int i = -1; int j = 0; int[] len = new int[300]; int k = 0; int n; str = new Scanner(System.in).nextLine(); for (j = 0;str.charAt(j) != '\0';j++) { if (str.charAt(j) == ' ' && str.charAt(j - 1) != ' ') { len[k] = j - i - 1; k++; } if (str.charAt(j) == ' ' && str.charAt(j + 1) != ' ') { i = j; } } for (n = 0;n < k;n++) { System.out.printf("%d,",len[n]); } System.out.printf("%d",j - i - 1); return 0; } }
[ "y.yu@open.ac.uk" ]
y.yu@open.ac.uk
94191509387846df58435e67ce5a9f0207e1f9d5
c1e0bbcddf2efee61d8d4bbdfaf200a6026524ce
/grouper-misc/grouper-box/src/main/java/edu/internet2/middleware/grouperBox/BoxEsbPublisher.java
e7b843f02a7df2878bf56cf361811ba993612fd5
[ "Apache-2.0" ]
permissive
Internet2/grouper
094bb61f3f58d98e531684c205b884354db8d451
7a27d1460b45a79bf276fa05a726e83706f6ff65
refs/heads/GROUPER_4_BRANCH
2023-09-03T08:22:10.136126
2023-09-02T04:56:10
2023-09-02T04:56:10
21,910,720
74
82
NOASSERTION
2023-08-12T18:48:54
2014-07-16T17:42:37
Java
UTF-8
Java
false
false
2,753
java
/** * @author mchyzer * $Id$ */ package edu.internet2.middleware.grouperBox; import java.util.LinkedHashMap; import java.util.Map; import edu.internet2.middleware.grouper.esb.listener.EsbListenerBase; import edu.internet2.middleware.grouperClient.util.GrouperClientUtils; import edu.internet2.middleware.grouperClientExt.xmpp.EsbEvent; import edu.internet2.middleware.grouperClientExt.xmpp.EsbEvents; import edu.internet2.middleware.grouperClientExt.xmpp.GcDecodeEsbEvents; /** * you can run this in the loader instead of through messaging */ public class BoxEsbPublisher extends EsbListenerBase { /** * */ public BoxEsbPublisher() { } /** * @see edu.internet2.middleware.grouper.esb.listener.EsbListenerBase#dispatchEvent(java.lang.String, java.lang.String) */ @Override public boolean dispatchEvent(String jsonString, String consumerName) { GrouperBoxMessageConsumer.incrementalRefreshInProgress = true; Map<String, Object> debugMap = new LinkedHashMap<String, Object>(); long startTimeNanos = System.nanoTime(); debugMap.put("method", "BoxEsbPublisher.dispatchEvent"); try { GrouperBoxFullRefresh.waitForFullRefreshToEnd(); EsbEvents esbEvents = GcDecodeEsbEvents.decodeEsbEvents(jsonString); esbEvents = GcDecodeEsbEvents.unencryptEsbEvents(esbEvents); // { // "encrypted":false, // "esbEvent":[ // { // "changeOccurred":false, // "createdOnMicros":1476889916578000, // "eventType":"MEMBERSHIP_DELETE", // "fieldName":"members", // "groupId":"89dd656be8c743e79b2ef24fde6dab36", // "groupName":"box:groups:someGroup", // "id":"c2641b287f964bb28b2f0ddcd05f9fd3", // "membershipType":"flattened", // "sequenceNumber":"618", // "sourceId":"g:isa", // "subjectId":"GrouperSystem" // } // ] //} Map<String, GrouperBoxUser> grouperBoxUserMap = GrouperBoxUser.retrieveUsers(); //not sure why there would be no events in there for (EsbEvent esbEvent : GrouperClientUtils.nonNull(esbEvents.getEsbEvent(), EsbEvent.class)) { GrouperBoxMessageConsumer.processMessage(esbEvent, grouperBoxUserMap); } return true; } finally { GrouperBoxMessageConsumer.incrementalRefreshInProgress = false; GrouperBoxLog.boxLog(debugMap, startTimeNanos); } } /** * @see edu.internet2.middleware.grouper.esb.listener.EsbListenerBase#disconnect() */ @Override public void disconnect() { } }
[ "mchyzer@isc.upenn.edu" ]
mchyzer@isc.upenn.edu
c2c97fd47a4670fd91ba7802945cb0ad0904b1e0
1ef677527e267743681845be7996a50adde71ebe
/src/zrx/gui/setParticle/SetParticleButton.java
aa080b6c09bc5e45da44ad36983a9144ad3f205e
[]
no_license
madokast/Particle-Simulation
048d264c20004285525f2596a19aed4cf167b043
af178653479d3e789f3cb5f42becc09675ca5e14
refs/heads/master
2020-04-14T07:23:14.731842
2019-03-09T00:55:14
2019-03-09T00:55:14
163,710,582
0
0
null
null
null
null
UTF-8
Java
false
false
648
java
package zrx.gui.setParticle; import zrx.gui.previewPhasePlot.PreviewPlotPhaseSpace; import java.awt.*; public class SetParticleButton extends Button { private static SetParticleButton setParticleButton; public static SetParticleButton getInstance() { if(setParticleButton==null) setParticleButton = new SetParticleButton(); return setParticleButton; } private SetParticleButton() { super("SetParticle"); this.addActionListener(e->{ PreviewPlotPhaseSpace.getInstance().clear(); ParticleBeamSetDialog.getInstance().setVisible(true); }); } }
[ "578562554@qq.com" ]
578562554@qq.com
d187048a8b7ea0c5314543bfb4f34f9b9206eece
392cc577a70fd58f34a410079e50f444899b7049
/src/test/java/io/github/jhipster/application/web/rest/errors/ExceptionTranslatorIntTest.java
90bbec45426c65bba366a9d634fe765a50729ecd
[]
no_license
bsp10/EjemploJhipster
500a002f5d883511ebe828619bf1f0921f15764f
3f76826d665adb363d7228c75b7038b048099214
refs/heads/master
2021-05-09T08:45:36.853863
2018-01-29T15:40:10
2018-01-29T15:40:10
119,402,636
0
0
null
null
null
null
UTF-8
Java
false
false
6,535
java
package io.github.jhipster.application.web.rest.errors; import io.github.jhipster.application.EjemploJhipsterApp; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.http.MediaType; import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.setup.MockMvcBuilders; import org.zalando.problem.spring.web.advice.MediaTypes; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; /** * Test class for the ExceptionTranslator controller advice. * * @see ExceptionTranslator */ @RunWith(SpringRunner.class) @SpringBootTest(classes = EjemploJhipsterApp.class) public class ExceptionTranslatorIntTest { @Autowired private ExceptionTranslatorTestController controller; @Autowired private ExceptionTranslator exceptionTranslator; @Autowired private MappingJackson2HttpMessageConverter jacksonMessageConverter; private MockMvc mockMvc; @Before public void setup() { mockMvc = MockMvcBuilders.standaloneSetup(controller) .setControllerAdvice(exceptionTranslator) .setMessageConverters(jacksonMessageConverter) .build(); } @Test public void testConcurrencyFailure() throws Exception { mockMvc.perform(get("/test/concurrency-failure")) .andExpect(status().isConflict()) .andExpect(content().contentType(MediaTypes.PROBLEM)) .andExpect(jsonPath("$.message").value(ErrorConstants.ERR_CONCURRENCY_FAILURE)); } @Test public void testMethodArgumentNotValid() throws Exception { mockMvc.perform(post("/test/method-argument").content("{}").contentType(MediaType.APPLICATION_JSON)) .andExpect(status().isBadRequest()) .andExpect(content().contentType(MediaTypes.PROBLEM)) .andExpect(jsonPath("$.message").value(ErrorConstants.ERR_VALIDATION)) .andExpect(jsonPath("$.fieldErrors.[0].objectName").value("testDTO")) .andExpect(jsonPath("$.fieldErrors.[0].field").value("test")) .andExpect(jsonPath("$.fieldErrors.[0].message").value("NotNull")); } @Test public void testParameterizedError() throws Exception { mockMvc.perform(get("/test/parameterized-error")) .andExpect(status().isBadRequest()) .andExpect(content().contentType(MediaTypes.PROBLEM)) .andExpect(jsonPath("$.message").value("test parameterized error")) .andExpect(jsonPath("$.params.param0").value("param0_value")) .andExpect(jsonPath("$.params.param1").value("param1_value")); } @Test public void testParameterizedError2() throws Exception { mockMvc.perform(get("/test/parameterized-error2")) .andExpect(status().isBadRequest()) .andExpect(content().contentType(MediaTypes.PROBLEM)) .andExpect(jsonPath("$.message").value("test parameterized error")) .andExpect(jsonPath("$.params.foo").value("foo_value")) .andExpect(jsonPath("$.params.bar").value("bar_value")); } @Test public void testMissingServletRequestPartException() throws Exception { mockMvc.perform(get("/test/missing-servlet-request-part")) .andExpect(status().isBadRequest()) .andExpect(content().contentType(MediaTypes.PROBLEM)) .andExpect(jsonPath("$.message").value("error.http.400")); } @Test public void testMissingServletRequestParameterException() throws Exception { mockMvc.perform(get("/test/missing-servlet-request-parameter")) .andExpect(status().isBadRequest()) .andExpect(content().contentType(MediaTypes.PROBLEM)) .andExpect(jsonPath("$.message").value("error.http.400")); } @Test public void testAccessDenied() throws Exception { mockMvc.perform(get("/test/access-denied")) .andExpect(status().isForbidden()) .andExpect(content().contentType(MediaTypes.PROBLEM)) .andExpect(jsonPath("$.message").value("error.http.403")) .andExpect(jsonPath("$.detail").value("test access denied!")); } @Test public void testUnauthorized() throws Exception { mockMvc.perform(get("/test/unauthorized")) .andExpect(status().isUnauthorized()) .andExpect(content().contentType(MediaTypes.PROBLEM)) .andExpect(jsonPath("$.message").value("error.http.401")) .andExpect(jsonPath("$.path").value("/test/unauthorized")) .andExpect(jsonPath("$.detail").value("test authentication failed!")); } @Test public void testMethodNotSupported() throws Exception { mockMvc.perform(post("/test/access-denied")) .andExpect(status().isMethodNotAllowed()) .andExpect(content().contentType(MediaTypes.PROBLEM)) .andExpect(jsonPath("$.message").value("error.http.405")) .andExpect(jsonPath("$.detail").value("Request method 'POST' not supported")); } @Test public void testExceptionWithResponseStatus() throws Exception { mockMvc.perform(get("/test/response-status")) .andExpect(status().isBadRequest()) .andExpect(content().contentType(MediaTypes.PROBLEM)) .andExpect(jsonPath("$.message").value("error.http.400")) .andExpect(jsonPath("$.title").value("test response status")); } @Test public void testInternalServerError() throws Exception { mockMvc.perform(get("/test/internal-server-error")) .andExpect(status().isInternalServerError()) .andExpect(content().contentType(MediaTypes.PROBLEM)) .andExpect(jsonPath("$.message").value("error.http.500")) .andExpect(jsonPath("$.title").value("Internal Server Error")); } }
[ "jhipster-bot@users.noreply.github.com" ]
jhipster-bot@users.noreply.github.com
94e0c26a975d41688b4dcf9a76afd35ded7b7311
82eaf3e2e43ffee8f1667a19d75dd977ca96b8f4
/comweb/src/main/java/com/cyb/web/utils/AopUtils.java
4870fe5cd7bf1324a210b98a999de5cfd4c73fdf
[]
no_license
iechenyb/framework
36df3dd8a18543a16208b11313e8c4fe8cb26a3e
f54b616ba6b378dbf02e01cc8b9570d38de923a6
refs/heads/master
2020-04-04T22:55:26.535303
2018-11-06T07:19:19
2018-11-06T07:19:19
156,341,223
0
0
null
null
null
null
UTF-8
Java
false
false
1,255
java
package com.cyb.web.utils; import java.lang.reflect.Method; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.Signature; import org.aspectj.lang.reflect.MethodSignature; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** *作者 : iechenyb<br> *类描述: 说点啥<br> *创建时间: 2018年1月25日 */ public class AopUtils { public Logger getLog(final JoinPoint joinPoint) { final Object target = joinPoint.getTarget(); if (target != null) { return LoggerFactory.getLogger(target.getClass()); } return LoggerFactory.getLogger(getClass()); } public Method getMethod(final JoinPoint joinPoint) { Method currentMethod; try { Signature sig = joinPoint.getSignature(); MethodSignature msig = null; if (!(sig instanceof MethodSignature)) { throw new IllegalArgumentException("该注解只能用于方法"); } msig = (MethodSignature) sig; Object target = joinPoint.getTarget(); currentMethod = target.getClass().getMethod(msig.getName(), msig.getParameterTypes()); } catch (Exception e) { e.printStackTrace(); return null; } return currentMethod; } }
[ "zzuchenyb@sina.com" ]
zzuchenyb@sina.com
74e0c84be8da1d48731535f9ea05c375545e2f9a
f8158ef2ac4eb09c3b2762929e656ba8a7604414
/google-ads/src/test/java/com/google/ads/googleads/v1/services/MockAdGroupAdService.java
c657ad4a113a7ea58da2d3323ade47f78d16a678
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
alejagapatrick/google-ads-java
12e89c371c730a66a7735f87737bd6f3d7d00e07
75591caeabcb6ea716a6067f65501d3af78804df
refs/heads/master
2020-05-24T15:50:40.010030
2019-05-13T12:10:17
2019-05-13T12:10:17
187,341,544
1
0
null
2019-05-18T09:56:19
2019-05-18T09:56:19
null
UTF-8
Java
false
false
1,607
java
/* * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.ads.googleads.v1.services; import com.google.api.core.BetaApi; import com.google.api.gax.grpc.testing.MockGrpcService; import com.google.protobuf.GeneratedMessageV3; import io.grpc.ServerServiceDefinition; import java.util.List; @javax.annotation.Generated("by GAPIC") @BetaApi public class MockAdGroupAdService implements MockGrpcService { private final MockAdGroupAdServiceImpl serviceImpl; public MockAdGroupAdService() { serviceImpl = new MockAdGroupAdServiceImpl(); } @Override public List<GeneratedMessageV3> getRequests() { return serviceImpl.getRequests(); } @Override public void addResponse(GeneratedMessageV3 response) { serviceImpl.addResponse(response); } @Override public void addException(Exception exception) { serviceImpl.addException(exception); } @Override public ServerServiceDefinition getServiceDefinition() { return serviceImpl.bindService(); } @Override public void reset() { serviceImpl.reset(); } }
[ "nwbirnie@gmail.com" ]
nwbirnie@gmail.com
fbceb2bb3090669622a5cd3e334372c9d2dd0f74
b2c2690ef6d544129337fbc50d6276710e918694
/app/src/main/java/ontime/app/model/RestaurantMenu/ResponceMenuRestaurant.java
98e807a989848fa4d95e5f64dc187bbeec24c6f8
[]
no_license
sumitkumarc/MyHotel
d889a2ff59e4e84ba4a9ee999571a93cf96a1184
08285735ac189917940d5ca2d896656b830a5eb5
refs/heads/main
2023-03-21T03:23:32.516120
2021-03-12T15:45:10
2021-03-12T15:45:10
347,116,182
0
0
null
null
null
null
UTF-8
Java
false
false
4,070
java
package ontime.app.model.RestaurantMenu; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import java.util.List; public class ResponceMenuRestaurant { @SerializedName("id") @Expose private Integer id; @SerializedName("name") @Expose private String name; @SerializedName("contact_number") @Expose private String contactNumber; @SerializedName("image") @Expose private String image; @SerializedName("email") @Expose private String email; @SerializedName("Licence") @Expose private Object licence; @SerializedName("branch_name") @Expose private String branchName; @SerializedName("location_link") @Expose private Object locationLink; @SerializedName("bank_name") @Expose private Object bankName; @SerializedName("account_number") @Expose private Object accountNumber; @SerializedName("authorised_person_name") @Expose private Object authorisedPersonName; @SerializedName("phone_number") @Expose private Object phoneNumber; @SerializedName("token") @Expose private Object token; @SerializedName("email_verified_at") @Expose private Integer emailVerifiedAt; @SerializedName("created_at") @Expose private String createdAt; // @SerializedName("categories") // @Expose // private List<Category> categories = null; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getContactNumber() { return contactNumber; } public void setContactNumber(String contactNumber) { this.contactNumber = contactNumber; } public String getImage() { return image; } public void setImage(String image) { this.image = image; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public Object getLicence() { return licence; } public void setLicence(Object licence) { this.licence = licence; } public String getBranchName() { return branchName; } public void setBranchName(String branchName) { this.branchName = branchName; } public Object getLocationLink() { return locationLink; } public void setLocationLink(Object locationLink) { this.locationLink = locationLink; } public Object getBankName() { return bankName; } public void setBankName(Object bankName) { this.bankName = bankName; } public Object getAccountNumber() { return accountNumber; } public void setAccountNumber(Object accountNumber) { this.accountNumber = accountNumber; } public Object getAuthorisedPersonName() { return authorisedPersonName; } public void setAuthorisedPersonName(Object authorisedPersonName) { this.authorisedPersonName = authorisedPersonName; } public Object getPhoneNumber() { return phoneNumber; } public void setPhoneNumber(Object phoneNumber) { this.phoneNumber = phoneNumber; } public Object getToken() { return token; } public void setToken(Object token) { this.token = token; } public Integer getEmailVerifiedAt() { return emailVerifiedAt; } public void setEmailVerifiedAt(Integer emailVerifiedAt) { this.emailVerifiedAt = emailVerifiedAt; } public String getCreatedAt() { return createdAt; } public void setCreatedAt(String createdAt) { this.createdAt = createdAt; } // public List<Category> getCategories() { // return categories; // } // // public void setCategories(List<Category> categories) { // this.categories = categories; // } }
[ "psumit88666@gmail.com" ]
psumit88666@gmail.com
6c615341bb7d2d68308ac8f5ab90ca4a6a4e4e0a
5b8a046511d4950d384c459367e7e64afb7d1b56
/app/src/main/java/com/tdr/registration/view/RadioGroupEx.java
163bf14b05725d740bd8cebba32aea47c249cd8f
[]
no_license
KingJA/Registration
4bd040ccddcbf3bd4242b85830ef8ed4b42e697a
d4d6a30597201f34d0efd8d9e946f339da464e2f
refs/heads/master
2020-03-11T23:45:39.821158
2018-07-13T05:58:50
2018-07-13T05:58:50
130,331,066
0
0
null
null
null
null
UTF-8
Java
false
false
5,311
java
package com.tdr.registration.view; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.View; import android.widget.RadioGroup; /** * 重新对RadioGroup进行布局,可以折行 * 默认水平开始排布 */ public class RadioGroupEx extends RadioGroup { private static final String TAG = "RadioGroupEx"; public RadioGroupEx(Context context) { super(context); } public RadioGroupEx(Context context, AttributeSet attrs) { super(context, attrs); } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int widthSize = MeasureSpec.getSize(widthMeasureSpec); int widthMode = MeasureSpec.getMode(widthMeasureSpec); int heightSize = MeasureSpec.getSize(heightMeasureSpec); int heightMode = MeasureSpec.getMode(heightMeasureSpec); //调用ViewGroup的方法,测量子view measureChildren(widthMeasureSpec, heightMeasureSpec); //最大的宽 int maxWidth = 0; //累计的高 int totalHeight = 0; //当前这一行的累计行宽 int lineWidth = 0; //当前这行的最大行高 int maxLineHeight = 0; //用于记录换行前的行宽和行高 int oldHeight; int oldWidth; int count = getChildCount(); //假设 widthMode和heightMode都是AT_MOST for (int i = 0; i < count; i++) { View child = getChildAt(i); MarginLayoutParams params = (MarginLayoutParams) child.getLayoutParams(); //得到这一行的最高 oldHeight = maxLineHeight; //当前最大宽度 oldWidth = maxWidth; int deltaX = child.getMeasuredWidth() + params.leftMargin + params.rightMargin; if (lineWidth + deltaX + getPaddingLeft() + getPaddingRight() > widthSize) {//如果折行,height增加 //和目前最大的宽度比较,得到最宽。不能加上当前的child的宽,所以用的是oldWidth maxWidth = Math.max(lineWidth, oldWidth); //重置宽度 lineWidth = deltaX; //累加高度 totalHeight += oldHeight; //重置行高,当前这个View,属于下一行,因此当前最大行高为这个child的高度加上margin maxLineHeight = child.getMeasuredHeight() + params.topMargin + params.bottomMargin; Log.v(TAG, "maxHeight:" + totalHeight + "---" + "maxWidth:" + maxWidth); } else { //不换行,累加宽度 lineWidth += deltaX; //不换行,计算行最高 int deltaY = child.getMeasuredHeight() + params.topMargin + params.bottomMargin; maxLineHeight = Math.max(maxLineHeight, deltaY); } if (i == count - 1) { //前面没有加上下一行的搞,如果是最后一行,还要再叠加上最后一行的最高的值 totalHeight += maxLineHeight; //计算最后一行和前面的最宽的一行比较 maxWidth = Math.max(lineWidth, oldWidth); } } //加上当前容器的padding值 maxWidth += getPaddingLeft() + getPaddingRight(); totalHeight += getPaddingTop() + getPaddingBottom(); setMeasuredDimension(widthMode == MeasureSpec.EXACTLY ? widthSize : maxWidth, heightMode == MeasureSpec.EXACTLY ? heightSize : totalHeight); } @Override protected void onLayout(boolean changed, int l, int t, int r, int b) { int count = getChildCount(); //pre为前面所有的child的相加后的位置 int preLeft = getPaddingLeft(); int preTop = getPaddingTop(); //记录每一行的最高值 int maxHeight = 0; for (int i = 0; i < count; i++) { View child = getChildAt(i); MarginLayoutParams params = (MarginLayoutParams) child.getLayoutParams(); //r-l为当前容器的宽度。如果子view的累积宽度大于容器宽度,就换行。 if (preLeft + params.leftMargin + child.getMeasuredWidth() + params.rightMargin + getPaddingRight() > (r - l)) { //重置 preLeft = getPaddingLeft(); //要选择child的height最大的作为设置 preTop = preTop + maxHeight; maxHeight = getChildAt(i).getMeasuredHeight() + params.topMargin + params.bottomMargin; } else { //不换行,计算最大高度 maxHeight = Math.max(maxHeight, child.getMeasuredHeight() + params.topMargin + params.bottomMargin); } //left坐标 int left = preLeft + params.leftMargin; //top坐标 int top = preTop + params.topMargin; int right = left + child.getMeasuredWidth(); int bottom = top + child.getMeasuredHeight(); //为子view布局 child.layout(left, top, right, bottom); //计算布局结束后,preLeft的值 preLeft += params.leftMargin + child.getMeasuredWidth() + params.rightMargin; } } }
[ "kingjavip@gmail.com" ]
kingjavip@gmail.com
e5ad89992ab9417c66f6a2b5a8b579a75912afff
8823c96d433605e7c13679b027a697e6a647cf9c
/src/main/java/com/lzhlyle/contest/weekly/weekly208/Contest2.java
4f3dd63ba686820e18c61fd6d682a1ae86287671
[ "MIT" ]
permissive
lzhlyle/leetcode
62278bf6e949f802da335e8de2d420440f578c2f
8f053128ed7917c231fd24cfe82552d9c599dc16
refs/heads/master
2022-07-14T02:28:11.082595
2020-11-16T14:28:20
2020-11-16T14:28:20
215,598,819
2
0
MIT
2022-06-17T02:55:41
2019-10-16T16:52:05
Java
UTF-8
Java
false
false
1,010
java
package com.lzhlyle.contest.weekly.weekly208; public class Contest2 { public int minOperationsMaxProfit(int[] arr, int b, int r) { int max = 0, total = 0; // 利润 int i = 0, res = 0; // 次数 int curr = 0; // 等待人数 for (int cnt : arr) { curr += cnt; int board = Math.min(4, curr); curr -= board; total += board * b - r; i++; if (total > max) { max = total; res = i; } } while (curr > 0) { int board = Math.min(4, curr); curr -= board; total += board * b - r; i++; if (total > max) { max = total; res = i; } } return max == 0 ? -1 : res; } public static void main(String[] args) { Contest2 contest = new Contest2(); { } } }
[ "lzhlyle@msn.cn" ]
lzhlyle@msn.cn
783eacc5153b99608e2490011c313b4ffdbdd6e8
9c95bf55193b098eb729e35587e2cee935536b47
/ueransim/src/main/java/tr/havelsan/ueransim/app/api/gnb/utils/SupportedTA.java
3e315aed7bc1b02092ff7b781d6a6a6d21c1526b
[ "MIT" ]
permissive
sabouaram/UERANSIM
6205af5db33be3578f548c315162bbe9de36a434
f3d28be0706e28e209fc087695c339d172c5a329
refs/heads/master
2022-12-26T01:25:18.554061
2020-09-16T13:39:21
2020-09-16T13:39:21
297,064,651
1
0
MIT
2020-09-20T11:49:12
2020-09-20T11:49:12
null
UTF-8
Java
false
false
1,908
java
/* * MIT License * * Copyright (c) 2020 ALİ GÜNGÖR * * 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 tr.havelsan.ueransim.app.api.gnb.utils; import tr.havelsan.ueransim.nas.impl.ies.IESNssai; import tr.havelsan.ueransim.nas.impl.values.VPlmn; import tr.havelsan.ueransim.utils.octets.Octet3; public class SupportedTA { public final Octet3 tac; public final BroadcastPlmn[] broadcastPlmns; public SupportedTA(Octet3 tac, BroadcastPlmn[] broadcastPlmns) { this.tac = tac; this.broadcastPlmns = broadcastPlmns; } public static class BroadcastPlmn { public final VPlmn plmn; public final IESNssai[] taiSliceSupportNssais; public BroadcastPlmn(VPlmn plmn, IESNssai[] taiSliceSupportNssais) { this.plmn = plmn; this.taiSliceSupportNssais = taiSliceSupportNssais; } } }
[ "aligng1620@gmail.com" ]
aligng1620@gmail.com
abe9e28f2bd22915a940fdb87559310c482e85a4
0ad51dde288a43c8c2216de5aedcd228e93590ac
/com/vmware/converter/CustomizationStartedEvent.java
333fd870e19b9ceb4ede2d0c3ea96f3c40c0d280
[]
no_license
YujiEda/converter-sdk-java
61c37b2642f3a9305f2d3d5851c788b1f3c2a65f
bcd6e09d019d38b168a9daa1471c8e966222753d
refs/heads/master
2020-04-03T09:33:38.339152
2019-02-11T15:19:04
2019-02-11T15:19:04
155,151,917
0
0
null
null
null
null
UTF-8
Java
false
false
3,636
java
/** * CustomizationStartedEvent.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. */ package com.vmware.converter; public class CustomizationStartedEvent extends com.vmware.converter.CustomizationEvent implements java.io.Serializable { public CustomizationStartedEvent() { } public CustomizationStartedEvent( int key, int chainId, java.util.Calendar createdTime, java.lang.String userName, com.vmware.converter.DatacenterEventArgument datacenter, com.vmware.converter.ComputeResourceEventArgument computeResource, com.vmware.converter.HostEventArgument host, com.vmware.converter.VmEventArgument vm, com.vmware.converter.DatastoreEventArgument ds, com.vmware.converter.NetworkEventArgument net, com.vmware.converter.DvsEventArgument dvs, java.lang.String fullFormattedMessage, java.lang.String changeTag, boolean template, java.lang.String logLocation) { super( key, chainId, createdTime, userName, datacenter, computeResource, host, vm, ds, net, dvs, fullFormattedMessage, changeTag, template, logLocation); } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof CustomizationStartedEvent)) return false; CustomizationStartedEvent other = (CustomizationStartedEvent) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = super.equals(obj); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = super.hashCode(); __hashCodeCalc = false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(CustomizationStartedEvent.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("urn:vim25", "CustomizationStartedEvent")); } /** * Return type metadata object */ public static org.apache.axis.description.TypeDesc getTypeDesc() { return typeDesc; } /** * Get Custom Serializer */ public static org.apache.axis.encoding.Serializer getSerializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanSerializer( _javaType, _xmlType, typeDesc); } /** * Get Custom Deserializer */ public static org.apache.axis.encoding.Deserializer getDeserializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanDeserializer( _javaType, _xmlType, typeDesc); } }
[ "yuji_eda@dwango.co.jp" ]
yuji_eda@dwango.co.jp
86f4d34808e4a555a8485745402f9dcd11b05eb2
c93840ec51cb986273ca339d097a6bc7c12ca50e
/app/src/main/java/com/saiyi/smartkeycabinetclient/user/ui/dialog/GenderMenuDialog.java
5f953ae0ed5bcd8b2f6a7c476eaccf16f57f3dbf
[]
no_license
WangZhouA/SmartKeyCabinetClient
d65ea277ddd72bde8e8927f1d6f6fce1679c1ba1
53229c00a2f32563258ed11beb598ee29830174a
refs/heads/master
2020-04-29T02:39:23.484308
2019-03-15T08:31:02
2019-03-15T08:31:02
175,778,837
0
0
null
null
null
null
UTF-8
Java
false
false
1,954
java
package com.saiyi.smartkeycabinetclient.user.ui.dialog; import android.content.Context; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.view.View; import android.widget.TextView; import com.lib.fast.common.dialog.MenuDialog; import com.saiyi.smartkeycabinetclient.R; /** * 性别菜单弹窗 */ public class GenderMenuDialog extends MenuDialog implements View.OnClickListener { /** * 点击取消 */ public static final int WHICH_CANCLE = 1; /** * 男 */ public static final int WHICH_MAN = 2; /** * 女 */ public static final int WHICH_FEMAN = 3; TextView manTv; TextView femanTv; TextView cancleTv; public GenderMenuDialog(@NonNull Context context) { super(context); } public GenderMenuDialog(@NonNull Context context, int themeResId) { super(context, themeResId); } protected GenderMenuDialog(@NonNull Context context, boolean cancelable, @Nullable OnCancelListener cancelListener) { super(context, cancelable, cancelListener); } @Override protected void initDialog() { super.initDialog(); setContentView(R.layout.layout_dialog_gender_menu); } @Override protected void initView(View view) { manTv = view.findViewById(R.id.man_tv); femanTv = view.findViewById(R.id.feman_tv); cancleTv = view.findViewById(R.id.cancle_tv); manTv.setOnClickListener(this); femanTv.setOnClickListener(this); cancleTv.setOnClickListener(this); } @Override public void onClick(View v) { dismiss(); int i = v.getId(); if (i == R.id.cancle_tv) { onWhichOneClick(WHICH_CANCLE); } else if (i == R.id.man_tv) { onWhichOneClick(WHICH_MAN); } else if (i == R.id.feman_tv) { onWhichOneClick(WHICH_FEMAN); } } }
[ "514077686@qq.com" ]
514077686@qq.com
d340de443fee8a6c869c0a091cb7c0f960404044
8e0026111d2b8fa50f89d9d0750ecbba4baa0f49
/ieee.odm.test/src/org/ieee/odm/util/PerformanceTimer.java
c1cd155bc7c4dfcb5b2aeabd2e30abe7589f8191
[]
no_license
InterPSS-Project/ipss-odm
27204514189976bd1b4d0e920537cb5a5abf2f0e
147f209e7e106aca908ed916ff9b9f393c525fe1
refs/heads/master
2022-11-03T23:54:16.005750
2022-10-28T23:48:50
2022-10-28T23:48:50
11,950,747
3
7
null
2018-06-09T02:41:44
2013-08-07T13:36:24
Java
UTF-8
Java
false
false
1,781
java
/* * @(#)PerformanceTimer.java * * Copyright (C) 2007 www.interpss.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE * as published by the Free Software Foundation; either version 2.1 * 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. * * @Author Mike Zhou * @Version 1.0 * @Date 06/04/2008 * * Revision History * ================ * */ package org.ieee.odm.util; import java.util.logging.Logger; public class PerformanceTimer { private long starttime = 0; private long endtime = 0; private Logger logger = null; public PerformanceTimer(Logger log) { this.logger = log; this.start(); } public void start() { this.starttime = System.currentTimeMillis() ; } public long end() { this.endtime = System.currentTimeMillis() ; return endtime - starttime; } public long getDuration() { return endtime - starttime; } /** * Log the duration to log file and print on the Console * * @param str log message */ public String log(String str) { end(); String s = str + " (sec) = " + getDuration()/1000.0; this.logger.info(s); return s; } public void logStd(String str) { end(); System.out.println(str + " (sec) = " + getDuration()/1000.0 ); } }
[ "mike@interpss.org" ]
mike@interpss.org
308e91aa062b6feeb507e632b848afd84b948b5c
9d9409d12cf56f1aea1e7a13b933878095459e30
/src/ua/edu/ukma/ykrukovska/unit12/wordNet/Outcast.java
913cca95476864ce949ce55cc65a5058ffefff6e
[]
no_license
YanaKrukovska/algorithms
1376e5a2ac43bb77a36f59721b8d65314941bb10
776d7098b87a389955690fc25e20aa5e58f61d11
refs/heads/master
2020-07-19T23:09:12.545105
2020-07-02T09:54:49
2020-07-02T09:54:49
206,529,153
0
0
null
null
null
null
UTF-8
Java
false
false
1,253
java
package ua.edu.ukma.ykrukovska.unit12.wordNet; import edu.princeton.cs.algs4.In; import edu.princeton.cs.algs4.StdOut; public class Outcast { private final WordNet wordnet; private static final String FILE_PATH = "D:/Studying/Algorithms/Practice12/"; private Outcast(WordNet wordnet) { this.wordnet = wordnet; } private String outcast(String[] nouns) { int max = -1; String finalNoun = ""; for (String noun : nouns) { int current = 0; for (String noun1 : nouns) { current += wordnet.distance(noun, noun1); } if (current > max) { max = current; finalNoun = noun; } } return finalNoun; } public static void main(String[] args) { WordNet wordnet = new WordNet(FILE_PATH + "synsets.txt", FILE_PATH + "hypernyms.txt"); Outcast outcast = new Outcast(wordnet); StdOut.println(outcast.outcast(new In(FILE_PATH + "outcast5.txt").readAllStrings())); StdOut.println(outcast.outcast(new In(FILE_PATH + "outcast8.txt").readAllStrings())); StdOut.println(outcast.outcast(new In(FILE_PATH + "outcast11.txt").readAllStrings())); } }
[ "jana.krua@gmail.com" ]
jana.krua@gmail.com
40055e86c7101243adc7f4c5245281e49dd2ecdc
c5b42be4908b741add31c6fb500e83bfae56ce4e
/注解/src/com/test/Gender.java
c3a63f8a368e1ce6ef542e66555c7802b9d4c50e
[]
no_license
alexlzl/JavaDemo2
804674d3fd52412e9c7f92867c330fc39c06abd0
cc23c1adf604f227d3fb954ba3970df7f421830b
refs/heads/master
2021-01-20T11:00:09.685749
2018-06-05T09:58:37
2018-06-05T09:58:37
101,659,065
0
0
null
null
null
null
UTF-8
Java
false
false
280
java
package com.test; /** * 枚举,模拟注解中添加枚举属性 * * */ public enum Gender { MAN { public String getName() { return "男"; } }, WOMEN { public String getName() { return "女"; } }; // 记得有“;” public abstract String getName(); }
[ "alexlzl@users.noreply.github.com" ]
alexlzl@users.noreply.github.com
1cf651b34f502387cde97ba730f771e9921d7f7a
fd533c9d0fd4beb88630036075b1a7b85110a7e3
/rest/src/main/java/com/github/ankurpathak/api/security/core/IRememberMeRequestedResolver.java
0c51343afa6bdf1b91e7c69b107b5eb5f06cf998
[]
no_license
yassinemoumenn/spring-session-test
82a58a0810d743eb789855bb11001a4723520583
fddb263a840916bbb9a92338c12d231fbd747e43
refs/heads/master
2023-04-14T19:02:38.934009
2019-10-31T19:31:48
2019-10-31T19:31:48
null
0
0
null
null
null
null
UTF-8
Java
false
false
291
java
package com.github.ankurpathak.api.security.core; import javax.servlet.http.HttpServletRequest; public interface IRememberMeRequestedResolver { boolean rememberMeRequested(RememberMeTokenResolverDelegateBackServices rememberMeServices, HttpServletRequest request, String parameter); }
[ "ankurpathak@live.in" ]
ankurpathak@live.in
a06fda308665e6977a50a8394023988daf4bd915
1762ac9d7e0dd2b7148fe994bcba1982b3ed84e0
/src/beans/MessageDao.java
1320d37ba08bd1b71d64378076abf28c4d643614
[]
no_license
saanSu/exer02
6f9446cb74dd7cc24dae5d6b98fead607fb4be81
ff3094bdb0579133802f90b7a6fde5af96fd0839
refs/heads/master
2020-03-27T17:20:56.814510
2018-09-11T00:37:42
2018-09-11T00:37:42
146,845,836
0
0
null
null
null
null
UTF-8
Java
false
false
2,093
java
package beans; import java.sql.Connection; import java.sql.Date; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; public class MessageDao extends JdbcDao { public int addMessage(String code, String sender, String receiver, String content, Date senddate) { try { Connection conn = DriverManager.getConnection(dburl, dbuser, dbpassword); // String sql = "insert into message(code, sender, receiver, content, senddate) values(?, ?, ?, ?,?)"; String sql= "insert into message values(?, ?, ?, ?, ?, null)"; PreparedStatement ps = conn.prepareStatement(sql); ps.setString(1, code); ps.setString(2, sender); ps.setString(3, receiver); ps.setString(4, content); ps.setDate(5, senddate); int n = ps.executeUpdate(); // send �� receive �۾��� ��. conn.close(); return n; } catch (Exception e) { e.printStackTrace(); return -1; } } public List<Map> getMessagesByReceiver(String receiver) { try { Connection conn = DriverManager.getConnection(dburl, dbuser, dbpassword); String sql = "select * from message where receiver=? order by senddate desc"; PreparedStatement ps = conn.prepareStatement(sql); ps.setString(1, receiver); ResultSet rs = ps.executeQuery(); List<Map> ret; if (rs.next()) { ret = new ArrayList<>(); do { Map one = new LinkedHashMap<>(); one.put("code", rs.getString("code")); one.put("sender", rs.getString("sender")); one.put("receiver", rs.getString("receiver")); one.put("content", rs.getString("content")); one.put("senddate", rs.getDate("senddate")); one.put("receivedate", rs.getDate("receivedate")); ret.add(one); } while (rs.next()); } else { ret = null; } conn.close(); return ret; } catch (Exception e) { e.printStackTrace(); return null; } } // receivedate update ... }
[ "kgitbank@DESKTOP-U6AB831" ]
kgitbank@DESKTOP-U6AB831
18f4abf388e008e7919b57534ef2bef64531eadb
a770e95028afb71f3b161d43648c347642819740
/sources/org/telegram/tgnet/TLRPC$TL_game.java
eb30f2dd81e4703e2a779a181fbe8ca8a578f9fd
[]
no_license
Edicksonjga/TGDecompiledBeta
d7aa48a2b39bbaefd4752299620ff7b72b515c83
d1db6a445d5bed43c1dc8213fb8dbefd96f6c51b
refs/heads/master
2023-08-25T04:12:15.592281
2021-10-28T20:24:07
2021-10-28T20:24:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,268
java
package org.telegram.tgnet; public class TLRPC$TL_game extends TLObject { public static int constructor = -NUM; public long access_hash; public String description; public TLRPC$Document document; public int flags; public long id; public TLRPC$Photo photo; public String short_name; public String title; public static TLRPC$TL_game TLdeserialize(AbstractSerializedData abstractSerializedData, int i, boolean z) { if (constructor == i) { TLRPC$TL_game tLRPC$TL_game = new TLRPC$TL_game(); tLRPC$TL_game.readParams(abstractSerializedData, z); return tLRPC$TL_game; } else if (!z) { return null; } else { throw new RuntimeException(String.format("can't parse magic %x in TL_game", new Object[]{Integer.valueOf(i)})); } } public void readParams(AbstractSerializedData abstractSerializedData, boolean z) { this.flags = abstractSerializedData.readInt32(z); this.id = abstractSerializedData.readInt64(z); this.access_hash = abstractSerializedData.readInt64(z); this.short_name = abstractSerializedData.readString(z); this.title = abstractSerializedData.readString(z); this.description = abstractSerializedData.readString(z); this.photo = TLRPC$Photo.TLdeserialize(abstractSerializedData, abstractSerializedData.readInt32(z), z); if ((this.flags & 1) != 0) { this.document = TLRPC$Document.TLdeserialize(abstractSerializedData, abstractSerializedData.readInt32(z), z); } } public void serializeToStream(AbstractSerializedData abstractSerializedData) { abstractSerializedData.writeInt32(constructor); abstractSerializedData.writeInt32(this.flags); abstractSerializedData.writeInt64(this.id); abstractSerializedData.writeInt64(this.access_hash); abstractSerializedData.writeString(this.short_name); abstractSerializedData.writeString(this.title); abstractSerializedData.writeString(this.description); this.photo.serializeToStream(abstractSerializedData); if ((this.flags & 1) != 0) { this.document.serializeToStream(abstractSerializedData); } } }
[ "fabian_pastor@msn.com" ]
fabian_pastor@msn.com
ce48dc970a117250b0028606f9488530c3ffa78e
76be554ab92e8960372a40a9acf670a36d1d0784
/auth/src/main/java/com/dell/fortune/auth/login/LoginActivity.java
24a367766c74c1e53936901ceca63e2e532b8b01
[]
no_license
zxcy1y1sdpp/PocketExpression
47e0ead273c61956251a70a3cc08dbfd71795af6
0e172da178225a54e3c2dd1687adcf4d19495b37
refs/heads/master
2021-09-17T23:00:31.471975
2018-07-06T12:13:41
2018-07-06T12:13:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,453
java
/* * Copyright (c) 2018. * 版块归Github.FortuneDream 所有 */ package com.dell.fortune.auth.login; import android.content.Intent; import android.support.design.widget.AppBarLayout; import android.support.v7.widget.Toolbar; import android.view.View; import android.widget.ImageView; import android.widget.TextView; import com.alibaba.android.arouter.facade.annotation.Route; import com.dell.fortune.core.common.BaseActivity; import com.dell.fortune.core.config.FlagConstant; import com.dell.fortune.core.model.bean.MyUser; import com.dell.fortune.core.util.UserUtil; import com.dell.fortune.pocketexpression.auth.R; import com.dell.fortune.tools.toast.ToastUtil; import com.dell.fortune.tools.view.TextEdit; /** * Created by 鹏君 on 2016/11/14. */ @Route(path = "/auth/login") public class LoginActivity extends BaseActivity<LoginPresenter.IView, LoginPresenter> implements LoginPresenter.IView, View.OnClickListener { private Toolbar mToolbar; private AppBarLayout mAppBar; private TextEdit mAccountTet; private TextEdit mPasswordTet; private ImageView mForgetPasswordIv; private TextView mOkTxt; private TextView mRegisterTxt; @Override public int setContentResource() { return R.layout.auth_activity_login; } @Override public void initView() { initToolbar(mToolbar, "用户登录"); } //通过基类AuthActivity跳转来,登录成功后返回user,没有则返回null @Override public void loginToResult(Integer result, MyUser myUser) { Intent intent = new Intent(); intent.putExtra(UserUtil.RESULT_USER, myUser); setResult(result, intent); } @Override public void onClick(View view) { int i = view.getId(); if (i == R.id.ok_txt) { String account = mAccountTet.getInputString(); String password = mPasswordTet.getInputString(); presenter.login(account, password); } else if (i == R.id.register_txt) { presenter.enterRegisterActivity();//请求码REQUEST_REGISTER } else if (i == R.id.forget_password_iv) { ToastUtil.showToast("忘记密码-->请在粉丝群内@鹏君"); } } //跳转到RegistererActivity,如果注册成功就不finish到此页 @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (resultCode == RESULT_OK) { switch (requestCode) { case FlagConstant.REQUEST_REGISTER: finish(); break; } } } @Override protected LoginPresenter createPresenter() { return new LoginPresenter(this); } @Override protected void findViewSetListener() { mToolbar = (Toolbar) findViewById(R.id.toolbar); mAppBar = (AppBarLayout) findViewById(R.id.app_bar); mAccountTet = (TextEdit) findViewById(R.id.account_tet); mPasswordTet = (TextEdit) findViewById(R.id.password_tet); mForgetPasswordIv = (ImageView) findViewById(R.id.forget_password_iv); mOkTxt = (TextView) findViewById(R.id.ok_txt); mRegisterTxt = (TextView) findViewById(R.id.register_txt); mForgetPasswordIv.setOnClickListener(this); mOkTxt.setOnClickListener(this); mRegisterTxt.setOnClickListener(this); } }
[ "812568684@qq.com" ]
812568684@qq.com
b24497a26a5ffe5d487feacae937c3386b1143cf
c108eda6f968e34028cd6d45ee720d5d03d4ece9
/app/src/main/java/org/nearbyshops/enduserappnew/API/LoginUsingOTPService.java
832e91661594dcd53e81b232a07f10cac4ef77c8
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
JohnRosey/Nearby-Shops-Android-app
df472468f81de16562f2a3044affbb1c50224911
e96d3e501b3ff05010db33405714bba159e4abdf
refs/heads/master
2023-04-12T06:08:06.913014
2020-05-12T13:13:56
2020-05-12T13:13:56
263,447,386
0
0
MIT
2023-04-03T23:32:48
2020-05-12T20:40:56
null
UTF-8
Java
false
false
2,087
java
package org.nearbyshops.enduserappnew.API; import org.nearbyshops.enduserappnew.Model.ModelRoles.User; import okhttp3.ResponseBody; import retrofit2.Call; import retrofit2.http.*; /** * Created by sumeet on 3/4/17. */ public interface LoginUsingOTPService { @GET ("/api/v1/User/LoginUsingOTP/LoginUsingPhoneOTP") Call<User> getProfileWithLogin(@Header("Authorization") String headers); @GET ("/api/v1/User/LoginUsingOTP/VerifyCredentialsUsingOTP") Call<User> verifyCredentialsUsingOTP( @Header("Authorization")String headerParam, @Query("RegistrationMode")int registrationMode // 1 for email and 2 for phone ); @GET ("/api/v1/User/LoginUsingOTP/LoginUsingGlobalCredentials") Call<User> loginWithGlobalCredentials( @Header("Authorization") String headerParam, @Query("ServiceURLSDS") String serviceURLForSDS, @Query("MarketID") int marketID ); @GET ("/api/v1/User/LoginUsingOTP/LoginUsingGlobalCredentials") Call<User> loginWithGlobalCredentials( @Header("Authorization") String headerParam, @Query("ServiceURLSDS") String serviceURLForSDS, @Query("MarketID") int marketID, @Query("IsPasswordAnOTP")boolean isPasswordAnOTP, @Query("VerifyUsingPassword")boolean verifyUsingPassword, // used when user is signing in using password @Query("RegistrationMode")int registrationMode, // 1 for email and 2 for phone @Query("GetServiceConfiguration") boolean getServiceConfig, @Query("GetUserProfileGlobal") boolean getUserProfileGlobal ); @GET ("/api/v1/User/LoginUsingOTP/LoginUsingGlobalCredentials") Call<User> loginWithGlobalCredentials( @Header("Authorization") String headerParam, @Query("ServiceURLSDS") String serviceURLForSDS, @Query("MarketID") int marketID, @Query("GetServiceConfiguration") boolean getServiceConfig, @Query("GetUserProfileGlobal") boolean getUserProfileGlobal ); }
[ "sumeet.0587@gmail.com" ]
sumeet.0587@gmail.com
4a29f7e664ddad98152805ab1ac987fa94c14103
ab2a601f3703b5555c364ed4157040036568936b
/core/src/com/perl5/lang/pod/idea/inspections/PodLegacySectionLinkInspection.java
3bff34938c19053c6a9662f28391b4f42638ee0f
[ "Apache-2.0" ]
permissive
ikenox/Perl5-IDEA
72aa2d8b622004654d6f0e9a078e5a08b617181c
f37df01dde8558a44beadcbc2066e8debe33ce64
refs/heads/master
2022-01-17T12:57:19.096014
2019-04-21T18:58:42
2019-04-21T18:58:42
148,667,285
0
0
NOASSERTION
2018-12-11T14:11:27
2018-09-13T16:35:53
Java
UTF-8
Java
false
false
2,766
java
/* * Copyright 2015-2017 Alexandr Evstigneev * * 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.perl5.lang.pod.idea.inspections; import com.intellij.codeInspection.LocalInspectionTool; import com.intellij.codeInspection.ProblemHighlightType; import com.intellij.codeInspection.ProblemsHolder; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.tree.IElementType; import com.intellij.psi.util.PsiUtilCore; import com.perl5.lang.pod.parser.psi.PodFormatterL; import com.perl5.lang.pod.parser.psi.PodVisitor; import com.perl5.lang.pod.parser.psi.util.PodRenderUtil; import com.perl5.lang.pod.psi.PsiLinkSection; import org.jetbrains.annotations.Contract; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import static com.perl5.lang.pod.lexer.PodElementTypesGenerated.POD_DIV; import static com.perl5.lang.pod.lexer.PodElementTypesGenerated.POD_QUOTE_DOUBLE; /** * Created by hurricup on 10.04.2016. */ public class PodLegacySectionLinkInspection extends LocalInspectionTool { @NotNull @Override public PsiElementVisitor buildVisitor(@NotNull final ProblemsHolder holder, boolean isOnTheFly) { return new PodVisitor() { @Override public void visitPodFormatterL(@NotNull PodFormatterL o) { PsiLinkSection sectionelement = o.getLinkSectionElement(); if (o.getLinkNameElement() == null && isSectionLegacy(sectionelement)) { holder.registerProblem(sectionelement, "Section \"" + PodRenderUtil.renderPsiElementAsText(sectionelement) + "\" should have a slash before it", ProblemHighlightType.LIKE_DEPRECATED); } super.visitPodFormatterL(o); } @Contract("null -> false") private boolean isSectionLegacy(@Nullable PsiLinkSection linkSection) { if (linkSection == null) { return false; } PsiElement run = linkSection.getPrevSibling(); IElementType elementType = PsiUtilCore.getElementType(run); return elementType != POD_DIV && !(elementType == POD_QUOTE_DOUBLE && PsiUtilCore.getElementType(run.getPrevSibling()) == POD_DIV); } }; } }
[ "hurricup@gmail.com" ]
hurricup@gmail.com
14b6f8905c3b9ae104479795c8fc9e59055cb596
1a4078bb3890169a7975449e7801b7f530278ac0
/src/main/java/com/builtbroken/addictedtored/content/detector/entity/GuiEntityDetector.java
eb44725d5095688cfe4fe32e2bf76a98229bbdc4
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
BuiltBrokenModding/AddictedToRed
ba6937fdeb39eb85cf611edacbccc51f13c4eac1
98eb5ab2c801883c6802c4f4639a174309e86967
refs/heads/master
2022-06-26T12:12:52.683906
2022-06-03T13:41:36
2022-06-03T13:41:36
31,130,567
1
1
null
null
null
null
UTF-8
Java
false
false
4,453
java
package com.builtbroken.addictedtored.content.detector.entity; import com.builtbroken.addictedtored.content.Tier; import com.builtbroken.jlib.data.Colors; import com.builtbroken.mc.client.SharedAssets; import com.builtbroken.mc.imp.transform.vector.Pos; import com.builtbroken.mc.prefab.entity.selector.EntitySelectors; import com.builtbroken.mc.prefab.gui.GuiContainerBase; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.gui.GuiTextField; import net.minecraft.entity.player.EntityPlayer; import org.lwjgl.input.Keyboard; /** * Created by robert on 2/20/2015. */ public class GuiEntityDetector extends GuiContainerBase { protected TileEntityDetector machine; protected GuiTextField x_field; protected GuiTextField y_field; protected GuiTextField z_field; protected GuiTextField rx_field; protected GuiTextField ry_field; protected GuiTextField rz_field; protected String errorString = ""; public GuiEntityDetector(TileEntityDetector launcher, EntityPlayer player) { this.machine = launcher; this.baseTexture = SharedAssets.GUI__MC_EMPTY_FILE; } @Override public void initGui() { super.initGui(); Keyboard.enableRepeatEvents(true); int x = guiLeft + 10; int y = guiTop + 40; if(machine.tier != Tier.BASIC) { if(machine.tier == Tier.ADVANCED) { this.x_field = newField(x, y, 30, "" + machine.target.xi()); this.y_field = newField(x + 35, y, 30, "" + machine.target.yi()); this.z_field = newField(x + 70, y, 30, "" + machine.target.zi()); this.buttonList.add(new GuiButton(0, x + 115, y, 40, 20, "Update")); y += 35; } this.rx_field = newField(x, y, 30, "" + machine.range.xi()); this.ry_field = newField(x + 35, y, 30, "" + machine.range.yi()); this.rz_field = newField(x + 70, y, 30, "" + machine.range.zi()); this.buttonList.add(new GuiButton(1, x + 115, y, 40, 20, "Update")); y += 40; } this.buttonList.add(new GuiButton(2, x, y, 40, 20, "<")); this.buttonList.add(new GuiButton(3, x + 115, y, 40, 20, ">")); } @Override protected void actionPerformed(GuiButton button) { super.actionPerformed(button); //Update button if (button.id == 0 || button.id == 1) { try { if (button.id == 0) { Pos target = new Pos(Integer.parseInt(x_field.getText()), Integer.parseInt(y_field.getText()), Integer.parseInt(z_field.getText())); machine.setTarget(target); } else { Pos range = new Pos(Integer.parseInt(rx_field.getText()), Integer.parseInt(ry_field.getText()), Integer.parseInt(rz_field.getText())); machine.setRange(range); } } catch (NumberFormatException e) { //Ignore as this is expected errorString = "Invalid data"; } } else if(button.id == 2) { int next = machine.selector.ordinal() - 1; if(next < 0) next = EntitySelectors.values().length - 1; machine.setSelector(EntitySelectors.get(next)); } else if(button.id == 3) { int next = machine.selector.ordinal() + 1; if(next >= EntitySelectors.values().length) next = 0; machine.setSelector(EntitySelectors.get(next)); } } @Override protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY) { super.drawGuiContainerForegroundLayer(mouseX, mouseY); //TODO localize drawStringCentered("Entity Detector", 85, 10); int y = 30; if(machine.tier != Tier.BASIC) { drawStringCentered("Target", 30, y); y += 35; if(machine.tier == Tier.ADVANCED) { drawStringCentered("Range", 30, y); y += 35; } } drawStringCentered("Selector", 30, y); drawStringCentered("" + machine.selector.displayName(), 85, y + 20); drawStringCentered(errorString, 85, 80, Colors.RED.color); } }
[ "rseifert.phone@gmail.com" ]
rseifert.phone@gmail.com
4b5411491a943d95f717c5eccc1fa92dc3afbf70
062ab1db4c39e994610e937d66acc45acd74982a
/com/sygic/aura/SygicProject.java
98cead9e9c7c40007822350dc8f4df1ae67df808
[]
no_license
Ravinther/Navigation
838804535c86e664258b83d958f39b1994e8311b
7dd6a07aea47aafe616b2f7e58a8012bef9899a1
refs/heads/master
2021-01-20T18:15:10.681957
2016-08-16T01:12:57
2016-08-16T01:12:57
65,776,099
2
1
null
null
null
null
UTF-8
Java
false
false
536
java
package com.sygic.aura; public class SygicProject { public static final boolean IS_PROTOTYPE; public static final boolean IS_TEST; static { ProjectsConsts.setBoolean(7, false); IS_PROTOTYPE = SygicConsts.IS_PROTOTYPE; IS_TEST = SygicConsts.IS_TEST; } public static void setConsts() { ProjectsConsts.setBoolean(4, true); ProjectsConsts.setBoolean(6, true); ProjectsConsts.setString(10, "Sygic"); ProjectsConsts.setString(15, "4WRQC7FHNFXZFM8KGSS8"); } }
[ "m.ravinther@yahoo.com" ]
m.ravinther@yahoo.com
24840dc3f6f355f51dcd06f44ff8325d7b8b83cc
e8fc320e35fd8442b8a68b77db9ca55fb411a567
/tmp/java/ReverterDependenteSuplementarParaRegularFlow.java
4bfc8c95c4579d286696ab6cf33da27fe3ebaa0a
[]
no_license
pedroalmir/regressionTestingPriorization
0500b477ba9005e61204b62d09488824c5fbf0db
62372a83fa8b7c062cb861225bda750d655401fa
refs/heads/master
2020-04-06T04:22:35.207449
2013-11-04T21:31:39
2013-11-04T21:31:39
null
0
0
null
null
null
null
ISO-8859-1
Java
false
false
3,662
java
package br.com.infowaypi.ecare.services.suporte; import java.util.Date; import java.util.Set; import org.hibernate.SQLQuery; import br.com.infowaypi.ecare.financeiro.Cobranca; import br.com.infowaypi.ecare.segurados.DependenteSuplementar; import br.com.infowaypi.ecarebc.enums.SituacaoEnum; import br.com.infowaypi.ecarebc.segurados.SeguradoInterface; import br.com.infowaypi.molecular.HibernateUtil; import br.com.infowaypi.molecular.SearchAgent; import br.com.infowaypi.molecular.parameter.Equals; import br.com.infowaypi.msr.user.UsuarioInterface; /** * Funcionalidade para reverter a migração de dependente suplementar para dependente regular. * @author Luciano Rocha * */ public class ReverterDependenteSuplementarParaRegularFlow { //1º passo public DependenteSuplementar buscaSegurado(String cartao) throws Exception { validaBuscaSegurado(cartao); //faz a busca do segurado dependente suplementar DependenteSuplementar seguradoASerRevertidoParaRegular = buscaDependenteSuplementar(cartao); return seguradoASerRevertidoParaRegular; } //2º passo public SeguradoInterface reverterDependente(UsuarioInterface usuario, DependenteSuplementar seguradoASerRevertidoParaRegular) throws Exception{ Long idSegurado = seguradoASerRevertidoParaRegular.getIdSegurado(); //cancela as cobrancas do dependente suplementar Set<Cobranca> cobrancas = seguradoASerRevertidoParaRegular.getCobrancas(); cancelarCobrancas(usuario, cobrancas); //reverte o suplementar para regular reverterDependenteSuplementarParaRegular(seguradoASerRevertidoParaRegular); seguradoASerRevertidoParaRegular.mudarSituacao(usuario, SituacaoEnum.ATIVO.descricao(), "Migração para dependente suplementar desfeita.", new Date()); //faz uma nova busca pra retornar o dependente convertido SeguradoInterface dr = buscaDependente(idSegurado); return dr; } public void validaBuscaSegurado(String cartao) throws Exception{ if (cartao == null){ throw new Exception("O número do cartão é obrigatório."); } } public DependenteSuplementar buscaDependenteSuplementar(String cartao) throws Exception{ SearchAgent sa = new SearchAgent(); sa.addParameter(new Equals("numeroDoCartao", cartao)); DependenteSuplementar seguradoASerRevertidoParaRegular = sa.uniqueResult(DependenteSuplementar.class); if (seguradoASerRevertidoParaRegular == null){ throw new Exception("Não foi encontrado um dependente suplementar para este número de cartão."); } return seguradoASerRevertidoParaRegular; } public void cancelarCobrancas(UsuarioInterface usuario, Set<Cobranca> cobrancas){ if (cobrancas != null) { for (Cobranca cobranca : cobrancas) { try { cobranca.cancelar(usuario, "Migração para dependente suplementar desfeita."); } catch (Exception e) { e.printStackTrace(); } } } } public void reverterDependenteSuplementarParaRegular(DependenteSuplementar seguradoASerRevertidoParaRegular) { SQLQuery query = HibernateUtil.currentSession() .createSQLQuery("update segurados_segurado " + "set tiposegurado = 'D', idTitularSuplementar = null, idTitular = ?, diaBase = 1 " + "where numeroDoCartao = ?"); query.setLong(0, seguradoASerRevertidoParaRegular.getTitular().getIdSegurado()); query.setString(1, seguradoASerRevertidoParaRegular.getNumeroDoCartao()); query.executeUpdate(); } public SeguradoInterface buscaDependente(Long idSegurado){ SearchAgent sa = new SearchAgent(); sa.addParameter(new Equals("idSegurado", idSegurado)); SeguradoInterface depReg = sa.uniqueResult(SeguradoInterface.class); return depReg; } }
[ "petrus.cc@gmail.com" ]
petrus.cc@gmail.com
f1cc20c02da4e3484904ddf3b3f4bcf5280572d9
de01cb554c2292b0fbb79b4d5413a2f6414ea472
/algorithms/Medium/1481.least-number-of-unique-integers-after-k-removals.java
f096adc26f26cd5fedbc83a80ded7747f4b4c8f6
[]
no_license
h4hany/yeet-the-leet
98292017eadd3dde98a079aafcd7648aa98701b4
563d779467ef5a7cc85cbe954eeaf3c1f5463313
refs/heads/master
2022-12-10T08:35:39.830260
2020-09-02T23:12:15
2020-09-02T23:12:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
986
java
/* * @lc app=leetcode id=1481 lang=java * * [1481] Least Number of Unique Integers after K Removals * * https://leetcode.com/problems/least-number-of-unique-integers-after-k-removals/description/ * * algorithms * Medium (53.59%) * Total Accepted: 16.6K * Total Submissions: 31K * Testcase Example: '[5,5,4]\n1' * * Given an array of integers arr and an integer k. Find the least number of * unique integers after removing exactly k elements. * * * * * * Example 1: * * * Input: arr = [5,5,4], k = 1 * Output: 1 * Explanation: Remove the single 4, only 5 is left. * * Example 2: * * * Input: arr = [4,3,1,1,3,3,2], k = 3 * Output: 2 * Explanation: Remove 4, 2 and either one of the two 1s or three 3s. 1 and 3 * will be left. * * * Constraints: * * * 1 <= arr.length <= 10^5 * 1 <= arr[i] <= 10^9 * 0 <= k <= arr.length * */ class Solution { public int findLeastNumOfUniqueInts(int[] arr, int k) { } }
[ "kevin.wkmiao@gmail.com" ]
kevin.wkmiao@gmail.com
81350f381c65a8d827764ecb75d2d3a9cd1ad31b
2bc8d2ed53bd383ccefff6c1b8cdb17ffe5c6f01
/rds/lambda-dbinit/src/main/java/org/debugroom/cloud/aws/lambda/dbinit/model/CfnResponse.java
6acf21f16de7e7ae27c2aa809d687055c9bf834d
[]
no_license
debugroom/mattermost-for-aws
2f2a21e02e15512025866d93026667e6d586be05
427b8c5045c572b79c170e9751d8ab76b262ce55
refs/heads/master
2021-05-19T11:27:17.414426
2020-04-10T04:50:06
2020-04-10T04:50:06
251,674,128
0
0
null
null
null
null
UTF-8
Java
false
false
490
java
package org.debugroom.cloud.aws.lambda.dbinit.model; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; @AllArgsConstructor @NoArgsConstructor @Builder @Data public class CfnResponse<T> { private Status Status; private String Reason; private String PhysicalResourceId; private String StackId; private String RequestId; private String LogicalResourceId; private boolean NoEcho; private T Data; }
[ "kohei.kawabata@mac.com" ]
kohei.kawabata@mac.com
06477e5dd0c6fa3eb0ed53a03c4a0e93575e031c
c474b03758be154e43758220e47b3403eb7fc1fc
/apk/decompiled/com.tinder_2018-07-26_source_from_JADX/sources/com/google/android/gms/internal/auh.java
08d0d8b6ab59b1401d7e5f79cfbdb521d00317ef
[]
no_license
EstebanDalelR/tinderAnalysis
f80fe1f43b3b9dba283b5db1781189a0dd592c24
941e2c634c40e5dbf5585c6876ef33f2a578b65c
refs/heads/master
2020-04-04T09:03:32.659099
2018-11-23T20:41:28
2018-11-23T20:41:28
155,805,042
0
0
null
2018-11-18T16:02:45
2018-11-02T02:44:34
null
UTF-8
Java
false
false
3,890
java
package com.google.android.gms.internal; import android.content.Context; import com.google.android.gms.ads.internal.ar; import com.google.android.gms.common.internal.ad; import java.util.List; import java.util.concurrent.atomic.AtomicBoolean; import org.json.JSONObject; @zzzv public abstract class auh implements zzaif<Void>, zzanm { /* renamed from: a */ protected final Context f23163a; /* renamed from: b */ protected final zzanh f23164b; /* renamed from: c */ protected zzaax f23165c; /* renamed from: d */ private zzyb f23166d; /* renamed from: e */ private dm f23167e; /* renamed from: f */ private Runnable f23168f; /* renamed from: g */ private Object f23169g = new Object(); /* renamed from: h */ private AtomicBoolean f23170h = new AtomicBoolean(true); protected auh(Context context, dm dmVar, zzanh zzanh, zzyb zzyb) { this.f23163a = context; this.f23167e = dmVar; this.f23165c = this.f23167e.f15996b; this.f23164b = zzanh; this.f23166d = zzyb; } /* renamed from: a */ protected abstract void mo6852a(); /* renamed from: a */ protected void mo7430a(int i) { auh auh = this; int i2 = i; if (i2 != -2) { auh.f23165c = new zzaax(i2, auh.f23165c.zzcdq); } auh.f23164b.zzst(); zzyb zzyb = auh.f23166d; zzaat zzaat = auh.f23167e.f15995a; zzjj zzjj = zzaat.zzcnd; zzanh zzanh = auh.f23164b; List list = auh.f23165c.zzcdk; List list2 = auh.f23165c.zzcdl; List list3 = auh.f23165c.zzcoy; int i3 = auh.f23165c.orientation; long j = auh.f23165c.zzcdq; String str = zzaat.zzcng; boolean z = auh.f23165c.zzcow; long j2 = auh.f23165c.zzcox; zzjn zzjn = auh.f23167e.f15998d; long j3 = j2; zzyb zzyb2 = zzyb; long j4 = auh.f23165c.zzcov; long j5 = auh.f23167e.f16000f; long j6 = auh.f23165c.zzcpa; String str2 = auh.f23165c.zzcpb; JSONObject jSONObject = auh.f23167e.f16002h; zzaeq zzaeq = auh.f23165c.zzcpl; List list4 = auh.f23165c.zzcpm; List list5 = auh.f23165c.zzcpn; boolean z2 = auh.f23165c.zzcpo; zzaaz zzaaz = auh.f23165c.zzcpp; List list6 = auh.f23165c.zzcdn; String str3 = auh.f23165c.zzcps; ahw ahw = auh.f23167e.f16003i; String str4 = str2; zzva zzva = null; dl dlVar = r41; zzyb zzyb3 = zzyb2; String str5 = null; arj arj = null; ark ark = null; long j7 = j3; long j8 = j4; long j9 = j5; long j10 = j6; dl dlVar2 = new dl(zzjj, zzanh, list, i2, list2, list3, i3, j, str, z, null, zzva, str5, arj, ark, j7, zzjn, j8, j9, j10, str4, jSONObject, null, zzaeq, list4, list5, z2, zzaaz, null, list6, str3, ahw, auh.f23167e.f15996b.zzaqv, auh.f23167e.f16004j); zzyb3.zzb(dlVar); } public void cancel() { if (this.f23170h.getAndSet(false)) { this.f23164b.stopLoading(); ar.g(); fq.m19761a(this.f23164b); mo7430a(-1); fk.f16060a.removeCallbacks(this.f23168f); } } public final void zza(zzanh zzanh, boolean z) { hx.m19911b("WebView finished loading."); int i = 0; if (this.f23170h.getAndSet(false)) { if (z) { i = -2; } mo7430a(i); fk.f16060a.removeCallbacks(this.f23168f); } } public final /* synthetic */ Object zznd() { ad.b("Webview render task needs to be called on UI thread."); this.f23168f = new aui(this); fk.f16060a.postDelayed(this.f23168f, ((Long) aja.m19221f().m19334a(alo.bn)).longValue()); mo6852a(); return null; } }
[ "jdguzmans@hotmail.com" ]
jdguzmans@hotmail.com
091a7f02c72d1997ae856889cefb44c17999373a
519e16535043ebd311ec10a86eaf646960616862
/graphql-binding/src/main/java/se/l4/graphql/binding/internal/factory/MemberKey.java
7ded33dbb58843b90650b956b38dd2476d785fa7
[ "Apache-2.0" ]
permissive
LevelFourAB/graphql-binding
eafb3e84eda260b88a671b3ed0994f15671f831f
94e98c843d43c44dff8c0d595dffea868459c784
refs/heads/master
2021-06-26T04:20:06.570113
2021-01-27T10:52:00
2021-01-27T10:52:00
204,269,037
1
0
Apache-2.0
2020-11-30T05:47:59
2019-08-25T08:47:21
Java
UTF-8
Java
false
false
1,050
java
package se.l4.graphql.binding.internal.factory; import java.util.Arrays; import se.l4.ylem.types.reflect.ExecutableRef; import se.l4.ylem.types.reflect.MemberRef; /** * A key representing a {@link MemberRef}. Use during type resolving to keep * track of members that have been processed. */ public class MemberKey { private final String name; private final Class<?>[] parameters; private MemberKey(String name, Class<?>[] parameters) { this.name = name; this.parameters = parameters; } @Override public int hashCode() { return name.hashCode() ^ Arrays.hashCode(parameters); } @Override public boolean equals(Object o) { if(! (o instanceof MemberKey)) { return false; } MemberKey other = (MemberKey) o; return other.name.equals(name) && Arrays.equals(other.parameters, parameters); } public static MemberKey create(MemberRef member) { return new MemberKey( member.getName(), member instanceof ExecutableRef ? ((ExecutableRef) member).getExecutable().getParameterTypes() : null ); } }
[ "a@holstenson.se" ]
a@holstenson.se
37d35a63519ec5c1de8c1028973b01fdbfe66347
d6b5b32f6a50154c4b75af69d51015c0cc000361
/cloud-gcp/src/main/java/com/sequenceiq/cloudbreak/cloud/gcp/GcpResourceChecker.java
5cd4f501aa7f489ee88f3dda4838eb61689ef55b
[ "LicenseRef-scancode-warranty-disclaimer", "ANTLR-PD", "CDDL-1.0", "bzip2-1.0.6", "Zlib", "BSD-3-Clause", "MIT", "EPL-1.0", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-jdbm-1.00", "Apache-2.0" ]
permissive
subhashjha35/cloudbreak
19f0ba660e7343d36e1bd840c5f32f3f2310b978
28265d0e4681ec9d8bef425e0ad6e339584127ed
refs/heads/master
2021-04-24T00:22:04.561673
2020-03-18T18:30:04
2020-03-25T12:02:51
250,041,790
1
0
Apache-2.0
2020-03-25T17:10:58
2020-03-25T17:10:58
null
UTF-8
Java
false
false
2,966
java
package com.sequenceiq.cloudbreak.cloud.gcp; import java.io.IOException; import org.apache.http.HttpStatus; import org.springframework.retry.annotation.Backoff; import org.springframework.retry.annotation.Retryable; import org.springframework.stereotype.Component; import com.google.api.client.googleapis.json.GoogleJsonResponseException; import com.google.api.services.compute.model.Operation; import com.sequenceiq.cloudbreak.cloud.exception.CloudConnectorException; import com.sequenceiq.cloudbreak.cloud.gcp.context.GcpContext; import com.sequenceiq.cloudbreak.cloud.gcp.util.GcpStackUtil; import com.sequenceiq.cloudbreak.cloud.model.Location; @Component public class GcpResourceChecker { @Retryable(value = CloudConnectorException.class, maxAttempts = 5, backoff = @Backoff(delay = 1000)) public Operation check(GcpContext context, String operationId) throws IOException { if (operationId == null) { return null; } try { Operation execute = GcpStackUtil.globalOperations(context.getCompute(), context.getProjectId(), operationId).execute(); checkError(execute); return execute; } catch (GoogleJsonResponseException e) { if (e.getDetails().get("code").equals(HttpStatus.SC_NOT_FOUND) || e.getDetails().get("code").equals(HttpStatus.SC_FORBIDDEN)) { Location location = context.getLocation(); try { Operation execute = GcpStackUtil.regionOperations(context.getCompute(), context.getProjectId(), operationId, location.getRegion()).execute(); checkError(execute); return execute; } catch (GoogleJsonResponseException e1) { if (e1.getDetails().get("code").equals(HttpStatus.SC_NOT_FOUND) || e1.getDetails().get("code").equals(HttpStatus.SC_FORBIDDEN)) { Operation execute = GcpStackUtil.zoneOperations(context.getCompute(), context.getProjectId(), operationId, location.getAvailabilityZone()).execute(); checkError(execute); return execute; } else { throw e1; } } } else { throw e; } } } private void checkError(Operation execute) { if (execute.getError() != null) { String msg = null; StringBuilder error = new StringBuilder(); if (execute.getError().getErrors() != null) { for (Operation.Error.Errors errors : execute.getError().getErrors()) { error.append(String.format("code: %s -> message: %s %s", errors.getCode(), errors.getMessage(), System.lineSeparator())); } msg = error.toString(); } throw new CloudConnectorException(msg); } } }
[ "keyki.kk@gmail.com" ]
keyki.kk@gmail.com
7fbfa60abeeab2d6ae1b3c9639f613873f0db819
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
/com.tencent.mm/classes.jar/com/tencent/mm/plugin/sns/ad/adxml/d$d.java
c9ce28f6f655cf2da2769130810121fa7d969a9b
[]
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
917
java
package com.tencent.mm.plugin.sns.ad.adxml; import com.tencent.matrix.trace.core.AppMethodBeat; import com.tencent.mm.sdk.platformtools.Util; import java.util.Map; public final class d$d { public boolean isClockwise; public static d D(Map<String, String> paramMap, String paramString) { AppMethodBeat.i(309866); if (paramMap.containsKey(paramString)) { d locald = new d(); if (Util.safeParseInt((String)paramMap.get(paramString + ".clockwise")) == 1) {} for (boolean bool = true;; bool = false) { locald.isClockwise = bool; AppMethodBeat.o(309866); return locald; } } AppMethodBeat.o(309866); return null; } } /* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes2.jar * Qualified Name: com.tencent.mm.plugin.sns.ad.adxml.d.d * JD-Core Version: 0.7.0.1 */
[ "98632993+tsuzcx@users.noreply.github.com" ]
98632993+tsuzcx@users.noreply.github.com
d1a1bc871ed75de7ccebe93d0d8bd9120ac1b227
29f78bfb928fb6f191b08624ac81b54878b80ded
/generated_SPs_SCs/conf/sp/case_study_IAD_SP/src/main/java/SP/output/SessionResponse.java
f3152783c8dadc1f5f9c567b520abe9f9dcd0b19
[]
no_license
MSPL4SOA/MSPL4SOA-tool
8a78e73b4ac7123cf1815796a70f26784866f272
9f3419e416c600cba13968390ee89110446d80fb
refs/heads/master
2020-04-17T17:30:27.410359
2018-07-27T14:18:55
2018-07-27T14:18:55
66,304,158
0
1
null
null
null
null
UTF-8
Java
false
false
682
java
package SP.output; import java.io.Serializable; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; @XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement(name = "SessionResponse") @XmlType(name = "sessionResponse", propOrder = { "ok" }) public class SessionResponse implements Serializable { private static final long serialVersionUID = 1L; @XmlElement(name = "ok") protected Boolean ok; public Boolean getOk() { return ok; } public void setOk(Boolean value) { this.ok = value; } }
[ "akram.kamoun@gmail.com" ]
akram.kamoun@gmail.com
58981040ed7fa581d26ba9ec2c8a328534a991d4
90601cfdec064b48a7e881e4f6281355e6d8b4a1
/game_server/src/com/gameserver/guide/msg/CGItemInvoke.java
2488fff90878197ecdaf628ab1e13343fa3e0916
[]
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
829
java
package com.gameserver.guide.msg; import com.gameserver.common.msg.MessageType; import com.gameserver.common.msg.CGMessage; import com.gameserver.guide.handler.GuideHandlerFactory; /** * 点击道具商城,调用此接口 * * @author CodeGenerator, don't modify this file please. */ public class CGItemInvoke extends CGMessage{ public CGItemInvoke (){ } @Override protected boolean readImpl() { return true; } @Override protected boolean writeImpl() { return true; } @Override public short getType() { return MessageType.CG_ITEM_INVOKE; } @Override public String getTypeName() { return "CG_ITEM_INVOKE"; } @Override public void execute() { GuideHandlerFactory.getHandler().handleItemInvoke(this.getSession().getPlayer(), this); } }
[ "npf888@126.com" ]
npf888@126.com
2aea80643db8cf0fbd7e795044465a2367a112fe
8c8c990785969c5ba7cbc79ab87cbebc5090ab98
/self_study/src/Car_goodee/Wheel.java
c0afb7726ecf2ca26b581bca9240280810b24331
[]
no_license
qkralswl689/Java
f47c34fe6aa9e9348124cac5bc5e7a11201c0889
86478a57b92e6efb09713e58356ecf7a1558e260
refs/heads/main
2023-07-16T17:08:15.324772
2021-09-05T12:41:26
2021-09-05T12:41:26
335,169,422
0
0
null
null
null
null
UHC
Java
false
false
242
java
package Car_goodee; public class Wheel { String wheelName; Wheel(String wheelName){ this.wheelName = wheelName; } public void combine() { System.out.println(wheelName + "바퀴를 결합합니다"); } }
[ "65608960+qkralswl689@users.noreply.github.com" ]
65608960+qkralswl689@users.noreply.github.com
ac2b1d17b3a01d1424b75137f0de20fdde95623b
a7b61632de3d80ca7c29a25d5eb0cbfa17fa01d9
/src/test/java/com/watson/mandlovutakeaways/factories/beverages/HotBeverageFactoryTest.java
e624b15ab42ae83bf7adc66d22e69ac891d7c29d
[]
no_license
Watson9023/Mandlovu_Takeaways_App
1e491699b96586efd7750b4e678c203bb9e22d90
5fab71f4cb107162abd00d1292967a71ea644813
refs/heads/master
2021-06-23T20:02:08.109146
2017-08-14T18:03:56
2017-08-14T18:03:56
100,290,257
0
0
null
null
null
null
UTF-8
Java
false
false
457
java
package com.watson.mandlovutakeaways.factories.beverages; import com.watson.mandlovutakeaways.domain.beverages.HotBeverages; import org.junit.Test; import static org.junit.Assert.*; /** * Created by Long on 8/14/2017. */ public class HotBeverageFactoryTest { @Test public void getHotBeverage() throws Exception { HotBeverages hotBeverages = HotBeverageFactory.getHotBeverage("Coffee","10"); assertNotNull(hotBeverages); } }
[ "matunhirewendy@gmail.com" ]
matunhirewendy@gmail.com
a63f0628af3d5329951918720b227a8e1bca7c7f
b1af7c61dcea66cb9e94806359818a464879dbe7
/bssv/util/JP560000/valueobject/F4311DataReply.java
66f1df54f10d947f86d34c024b7fcbc8195a9de3
[]
no_license
PPatel0212/Java-Web-Services-JDE
aa8c17bac68a73db153de903129246bf2d1f06ae
c296873106455f69aa541e45ae73a15756e9a413
refs/heads/master
2022-12-29T18:17:41.801803
2020-10-07T21:09:57
2020-10-07T21:09:57
264,015,732
0
0
null
2020-06-22T01:14:32
2020-05-14T20:15:26
Java
UTF-8
Java
false
false
6,785
java
package be.e1.bssv.util.JP560000.valueobject; import be.e1.bssv.util.J560000.valueobject.SupDataF4211_D5600007C; import be.e1.bssv.util.J560000.valueobject.SupDataF4311_D5600007B; import java.io.Serializable; import java.math.BigDecimal; import oracle.e1.bssvfoundation.base.MessageValueObject; import oracle.e1.bssvfoundation.base.ValueObject; /** * TODO: Java Doc comments for Value Object here */ public class F4311DataReply extends MessageValueObject implements Serializable { private String actionCode = null; private String orderCompanyPO = null; private Integer orderNumberPO = null; private String orderTypePO = null; private String orderSuffixPO = null; private BigDecimal orderLinePO = null; private String itemRevisionLevel = null; private String bspStatus = null; private String errorFlag = null; private String errorDescription = null; private String productionNumber = null; private String revControlLineSplitFlag = null; private String baseRevItem = null; private Integer buyerNumberPO = null; private String relatedOrderCompany = null; private String relatedOrderNumber = null; private String relatedOrderType = null; private BigDecimal relatedOrderLine = null; private String buyerName = null; /** * TODO: Default public constructor for instantiating: F4311DataReply */ public F4311DataReply() { } public F4311DataReply(SupDataF4311_D5600007B inData) { this.actionCode = inData.getCActionCode(); this.errorFlag = inData.getCErrorFlag(); this.errorDescription = inData.getSzErrorDescription(); this.itemRevisionLevel = inData.getSzRevisionLevel(); this.orderCompanyPO = inData.getSzOrderCompanyPO(); this.orderTypePO = inData.getSzOrderTypePO(); this.orderSuffixPO = inData.getSzOrderSuffixPO(); this.productionNumber = inData.getSzProductionNumber(); this.revControlLineSplitFlag = inData.getCRevControlLineSplitFlag(); this.baseRevItem = inData.getSzSecondItemNumber(); this.buyerNumberPO = inData.getMnBuyerNumber().intValue(); this.relatedOrderCompany = inData.getSzRelatedOrderCompany(); this.relatedOrderType = inData.getSzRelatedOrderType(); this.buyerName = inData.getSzBuyerName(); this.relatedOrderNumber = inData.getSzRelatedOrderNumber(); this.orderNumberPO = 0; if (inData.getMnOrderNumberPO() != null) { this.orderNumberPO = inData.getMnOrderNumberPO().intValue(); } this.orderLinePO = BigDecimal.ZERO; if (inData.getMnOrderLineNumberPO() != null) { this.orderLinePO = inData.getMnOrderLineNumberPO().asBigDecimal(); } this.relatedOrderLine = BigDecimal.ZERO; if(inData.getMnRelatedOrderLine() != null) { this.relatedOrderLine = inData.getMnRelatedOrderLine().asBigDecimal(); } } public void setBuyerNumberPO(Integer buyerNumberPO) { this.buyerNumberPO = buyerNumberPO; } public Integer getBuyerNumberPO() { return buyerNumberPO; } public void setActionCode(String actionCode) { this.actionCode = actionCode; } public String getActionCode() { return actionCode; } public void setOrderCompanyPO(String orderCompanyPO) { this.orderCompanyPO = orderCompanyPO; } public String getOrderCompanyPO() { return orderCompanyPO; } public void setOrderNumberPO(Integer orderNumberPO) { this.orderNumberPO = orderNumberPO; } public Integer getOrderNumberPO() { return orderNumberPO; } public void setOrderTypePO(String orderTypePO) { this.orderTypePO = orderTypePO; } public String getOrderTypePO() { return orderTypePO; } public void setOrderSuffixPO(String orderSuffixPO) { this.orderSuffixPO = orderSuffixPO; } public String getOrderSuffixPO() { return orderSuffixPO; } public void setOrderLinePO(BigDecimal orderLinePO) { this.orderLinePO = orderLinePO; } public BigDecimal getOrderLinePO() { return orderLinePO; } public void setItemRevisionLevel(String itemRevisionLevel) { this.itemRevisionLevel = itemRevisionLevel; } public String getItemRevisionLevel() { return itemRevisionLevel; } public void setBspStatus(String bspStatus) { this.bspStatus = bspStatus; } public String getBspStatus() { return bspStatus; } public void setErrorFlag(String errorFlag) { this.errorFlag = errorFlag; } public String getErrorFlag() { return errorFlag; } public void setErrorDescription(String errorDescription) { this.errorDescription = errorDescription; } public String getErrorDescription() { return errorDescription; } public void setProductionNumber(String productionNumber) { this.productionNumber = productionNumber; } public String getProductionNumber() { return productionNumber; } public void setRevControlLineSplitFlag(String revControlLineSplitFlag) { this.revControlLineSplitFlag = revControlLineSplitFlag; } public String getRevControlLineSplitFlag() { return revControlLineSplitFlag; } public void setBaseRevItem(String baseRevItem) { this.baseRevItem = baseRevItem; } public String getBaseRevItem() { return baseRevItem; } public void setRelatedOrderCompany(String relatedOrderCompany) { this.relatedOrderCompany = relatedOrderCompany; } public String getRelatedOrderCompany() { return relatedOrderCompany; } public void setRelatedOrderNumber(String relatedOrderNumber) { this.relatedOrderNumber = relatedOrderNumber; } public String getRelatedOrderNumber() { return relatedOrderNumber; } public void setRelatedOrderType(String relatedOrderType) { this.relatedOrderType = relatedOrderType; } public String getRelatedOrderType() { return relatedOrderType; } public void setRelatedOrderLine(BigDecimal relatedOrderLine) { this.relatedOrderLine = relatedOrderLine; } public BigDecimal getRelatedOrderLine() { return relatedOrderLine; } public void setBuyerName(String buyerName) { this.buyerName = buyerName; } public String getBuyerName() { return buyerName; } }
[ "parineeta.ailani@gmail.com" ]
parineeta.ailani@gmail.com
12adcb9171fedf5c87f4aee0fbc594936f063460
c8688db388a2c5ac494447bac90d44b34fa4132c
/sources/com/google/android/gms/internal/ads/zzyf.java
b2f38203e103ae1c891c9582d0ccd560321ba4a7
[]
no_license
mred312/apk-source
98dacfda41848e508a0c9db2c395fec1ae33afa1
d3ca7c46cb8bf701703468ddc88f25ba4fb9d975
refs/heads/master
2023-03-06T05:53:50.863721
2021-02-23T13:34:20
2021-02-23T13:34:20
341,481,669
0
0
null
null
null
null
UTF-8
Java
false
false
710
java
package com.google.android.gms.internal.ads; import android.os.IBinder; import android.os.Parcel; /* compiled from: com.google.android.gms:play-services-ads-lite@@19.5.0 */ public final class zzyf extends zzgu implements zzyd { zzyf(IBinder iBinder) { super(iBinder, "com.google.android.gms.ads.internal.client.IMuteThisAdReason"); } public final String getDescription() { Parcel zza = zza(1, zzdo()); String readString = zza.readString(); zza.recycle(); return readString; } public final String zzqo() { Parcel zza = zza(2, zzdo()); String readString = zza.readString(); zza.recycle(); return readString; } }
[ "mred312@gmail.com" ]
mred312@gmail.com
ebe1bacc30bffb204f07aaed15a0623fda6390bb
4d869b254365b6ed82c0a4fb451220b14fff5051
/src/main/java/com/dahua/cash/CashContext.java
312658b4aabcf0d96bf456ae5c2d2a01db314648
[]
no_license
zlkjzxj/walle
8210fa4d62cbf81cb645f966110d055b64f4a90f
549edd504a6f1ba36c190735957ab7f477521412
refs/heads/master
2020-03-21T02:41:50.176462
2018-11-08T07:39:31
2018-11-08T07:39:31
103,237,712
0
0
null
null
null
null
UTF-8
Java
false
false
665
java
package com.dahua.cash; /** * Created by walle * 2017/10/12.11:23 * good good study! */ public class CashContext { CashSuper cashSuper = null; public CashContext(String type){ switch (type) { case "normal": cashSuper = new CashNormal(); break; case "打8折": cashSuper = new CashRebate("0.8"); break; case "满300反一百": cashSuper = new CashReturn("300", "100"); break; } } public double getResult(double money){ return cashSuper.acceptCash(money); } }
[ "zlkjzxj@163.com" ]
zlkjzxj@163.com
9c2ad457a7df720c81268678e38048ed62d10bab
c343d06c280e03f148c4f8715b7b0397bfcbd159
/main/ip/src/boofcv/alg/interpolate/impl/NearestNeighborPixel_IL_U8.java
59f67d3ea95908565e1ea31d13e6dc80c99b0274
[ "LicenseRef-scancode-takuya-ooura", "Apache-2.0" ]
permissive
Nomanghous/BoofCV
ec80ff7633c6a46fdbdd53188ed5136f75f57e94
b7b34725465cbcf85c014d6a36d63f4d8d18f9a6
refs/heads/master
2021-01-01T18:38:58.655293
2017-07-21T15:16:14
2017-07-21T15:16:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,092
java
/* * Copyright (c) 2011-2016, Peter Abeles. All Rights Reserved. * * This file is part of BoofCV (http://boofcv.org). * * 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 boofcv.alg.interpolate.impl; import boofcv.alg.interpolate.NearestNeighborPixelMB; import boofcv.core.image.border.ImageBorder_IL_S32; import boofcv.struct.image.InterleavedU8; /** * <p> * Performs nearest neighbor interpolation to extract values between pixels in an image. * </p> * * <p> * NOTE: This code was automatically generated using {@link GenerateNearestNeighborPixel_IL}. * </p> * * @author Peter Abeles */ public class NearestNeighborPixel_IL_U8 extends NearestNeighborPixelMB<InterleavedU8> { private int pixel[] = new int[3]; public NearestNeighborPixel_IL_U8() { } public NearestNeighborPixel_IL_U8(InterleavedU8 orig) { setImage(orig); } @Override public void setImage(InterleavedU8 image) { super.setImage(image); int N = image.getImageType().getNumBands(); if( pixel.length != N ) pixel = new int[ N ]; } @Override public void get(float x, float y, float[] values) { if (x < 0 || y < 0 || x > width-1 || y > height-1 ) { ((ImageBorder_IL_S32)border).get((int) Math.floor(x), (int) Math.floor(y), pixel); for (int i = 0; i < pixel.length; i++) { values[i] = pixel[i]; } } else { get_fast(x,y,values); } } @Override public void get_fast(float x, float y, float[] values) { int xx = (int)x; int yy = (int)y; orig.unsafe_get(xx,yy,pixel); for (int i = 0; i < pixel.length; i++) { values[i] = pixel[i]; } } }
[ "peter.abeles@gmail.com" ]
peter.abeles@gmail.com
787c032cdad6b2832524578cff01a17bc240fd1c
2fc7e341bf68d7da91505cb9e08701ca18fd9217
/java7sdk/src/java/util/concurrent/locks/package-info.java
638508d9bebf0b7c7c680fa17fd77af0fa12095c
[]
no_license
Zir0-93/java7-sdk
70c190c059f22bac1721139382d018590be1b1cb
227e04ea027bd2400ab3e9d2fa3ce5576c6f7239
refs/heads/master
2021-01-10T14:43:08.338197
2016-03-07T21:21:11
2016-03-07T21:21:11
53,359,588
0
0
null
null
null
null
UTF-8
Java
false
false
3,394
java
/*=========================================================================== * Licensed Materials - Property of IBM * "Restricted Materials of IBM" * * IBM SDK, Java(tm) Technology Edition, v7 * (C) Copyright IBM Corp. 2014, 2014. All Rights Reserved * * US Government Users Restricted Rights - Use, duplication or disclosure * restricted by GSA ADP Schedule Contract with IBM Corp. *=========================================================================== */ /* * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ /* * This file is available under and governed by the GNU General Public * License version 2 only, as published by the Free Software Foundation. * However, the following notice accompanied the original version of this * file: * * Written by Doug Lea with assistance from members of JCP JSR-166 * Expert Group and released to the public domain, as explained at * http://creativecommons.org/publicdomain/zero/1.0/ */ /** * Interfaces and classes providing a framework for locking and waiting * for conditions that is distinct from built-in synchronization and * monitors. The framework permits much greater flexibility in the use of * locks and conditions, at the expense of more awkward syntax. * * <p>The {@link java.util.concurrent.locks.Lock} interface supports * locking disciplines that differ in semantics (reentrant, fair, etc), * and that can be used in non-block-structured contexts including * hand-over-hand and lock reordering algorithms. The main implementation * is {@link java.util.concurrent.locks.ReentrantLock}. * * <p>The {@link java.util.concurrent.locks.ReadWriteLock} interface * similarly defines locks that may be shared among readers but are * exclusive to writers. Only a single implementation, {@link * java.util.concurrent.locks.ReentrantReadWriteLock}, is provided, since * it covers most standard usage contexts. But programmers may create * their own implementations to cover nonstandard requirements. * * <p>The {@link java.util.concurrent.locks.Condition} interface * describes condition variables that may be associated with Locks. * These are similar in usage to the implicit monitors accessed using * {@code Object.wait}, but offer extended capabilities. * In particular, multiple {@code Condition} objects may be associated * with a single {@code Lock}. To avoid compatibility issues, the * names of {@code Condition} methods are different from the * corresponding {@code Object} versions. * * <p>The {@link java.util.concurrent.locks.AbstractQueuedSynchronizer} * class serves as a useful superclass for defining locks and other * synchronizers that rely on queuing blocked threads. The {@link * java.util.concurrent.locks.AbstractQueuedLongSynchronizer} class * provides the same functionality but extends support to 64 bits of * synchronization state. Both extend class {@link * java.util.concurrent.locks.AbstractOwnableSynchronizer}, a simple * class that helps record the thread currently holding exclusive * synchronization. The {@link java.util.concurrent.locks.LockSupport} * class provides lower-level blocking and unblocking support that is * useful for those developers implementing their own customized lock * classes. * * @since 1.5 */ package java.util.concurrent.locks;
[ "muntazir@live.ca" ]
muntazir@live.ca
5623134a733dd436da4e8df6eabdb7f5c7aada97
5d00b27e4022698c2dc56ebbc63263f3c44eea83
/gen/com/ah/xml/be/config/ForwardingEngineTunnel.java
60866cc65cb1f8a9f14a8fb520a4a10e29b735f8
[]
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
7,102
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2014.07.01 at 11:29:17 AM CST // package com.ah.xml.be.config; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for forwarding-engine-tunnel complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="forwarding-engine-tunnel"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="tcp-mss-threshold" minOccurs="0"> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="AH-DELTA-ASSISTANT" type="{http://www.aerohive.com/configuration/general}ah-only-act" minOccurs="0"/> * &lt;element name="enable" type="{http://www.aerohive.com/configuration/general}ah-only-act" minOccurs="0"/> * &lt;element name="threshold-size" type="{http://www.aerohive.com/configuration/others}tcp-mss-threshold-size" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;element name="selective-multicast-forward" type="{http://www.aerohive.com/configuration/others}fe-tunnel-selective-multicast-forward" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "forwarding-engine-tunnel", propOrder = { "tcpMssThreshold", "selectiveMulticastForward" }) public class ForwardingEngineTunnel { @XmlElement(name = "tcp-mss-threshold") protected ForwardingEngineTunnel.TcpMssThreshold tcpMssThreshold; @XmlElement(name = "selective-multicast-forward") protected FeTunnelSelectiveMulticastForward selectiveMulticastForward; /** * Gets the value of the tcpMssThreshold property. * * @return * possible object is * {@link ForwardingEngineTunnel.TcpMssThreshold } * */ public ForwardingEngineTunnel.TcpMssThreshold getTcpMssThreshold() { return tcpMssThreshold; } /** * Sets the value of the tcpMssThreshold property. * * @param value * allowed object is * {@link ForwardingEngineTunnel.TcpMssThreshold } * */ public void setTcpMssThreshold(ForwardingEngineTunnel.TcpMssThreshold value) { this.tcpMssThreshold = value; } /** * Gets the value of the selectiveMulticastForward property. * * @return * possible object is * {@link FeTunnelSelectiveMulticastForward } * */ public FeTunnelSelectiveMulticastForward getSelectiveMulticastForward() { return selectiveMulticastForward; } /** * Sets the value of the selectiveMulticastForward property. * * @param value * allowed object is * {@link FeTunnelSelectiveMulticastForward } * */ public void setSelectiveMulticastForward(FeTunnelSelectiveMulticastForward value) { this.selectiveMulticastForward = value; } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="AH-DELTA-ASSISTANT" type="{http://www.aerohive.com/configuration/general}ah-only-act" minOccurs="0"/> * &lt;element name="enable" type="{http://www.aerohive.com/configuration/general}ah-only-act" minOccurs="0"/> * &lt;element name="threshold-size" type="{http://www.aerohive.com/configuration/others}tcp-mss-threshold-size" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "ahdeltaassistant", "enable", "thresholdSize" }) public static class TcpMssThreshold { @XmlElement(name = "AH-DELTA-ASSISTANT") protected AhOnlyAct ahdeltaassistant; protected AhOnlyAct enable; @XmlElement(name = "threshold-size") protected TcpMssThresholdSize thresholdSize; /** * Gets the value of the ahdeltaassistant property. * * @return * possible object is * {@link AhOnlyAct } * */ public AhOnlyAct getAHDELTAASSISTANT() { return ahdeltaassistant; } /** * Sets the value of the ahdeltaassistant property. * * @param value * allowed object is * {@link AhOnlyAct } * */ public void setAHDELTAASSISTANT(AhOnlyAct value) { this.ahdeltaassistant = value; } /** * Gets the value of the enable property. * * @return * possible object is * {@link AhOnlyAct } * */ public AhOnlyAct getEnable() { return enable; } /** * Sets the value of the enable property. * * @param value * allowed object is * {@link AhOnlyAct } * */ public void setEnable(AhOnlyAct value) { this.enable = value; } /** * Gets the value of the thresholdSize property. * * @return * possible object is * {@link TcpMssThresholdSize } * */ public TcpMssThresholdSize getThresholdSize() { return thresholdSize; } /** * Sets the value of the thresholdSize property. * * @param value * allowed object is * {@link TcpMssThresholdSize } * */ public void setThresholdSize(TcpMssThresholdSize value) { this.thresholdSize = value; } } }
[ "zjie@aerohive.com" ]
zjie@aerohive.com
c7bb2ef0fea8d18b50175748a4d56fad0cff59f6
f8d93a24b046e7624d32b5afb7b7d3eb60a9675b
/data-work/src/main/java/com/bineng/dataWork/modules/cms/web/CategoryController.java
7c56c69131c3888771f2a37ec5a7fe1bd8903a24
[ "Apache-2.0" ]
permissive
hongzhifei/data-work
bdcebc64195ce9e7a229ec2ee4c83e269cfe7c01
fd76035b712962f3d9974289ce033f86fdd9dbfa
refs/heads/master
2021-01-19T17:41:39.234109
2017-08-22T16:50:25
2017-08-22T17:06:55
101,084,501
0
0
null
null
null
null
UTF-8
Java
false
false
6,240
java
/** * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved. */ package com.bineng.dataWork.modules.cms.web; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletResponse; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresUser; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.servlet.mvc.support.RedirectAttributes; import com.bineng.dataWork.common.config.Global; import com.bineng.dataWork.common.utils.StringUtils; import com.bineng.dataWork.common.web.BaseController; import com.bineng.dataWork.modules.cms.entity.Article; import com.bineng.dataWork.modules.cms.entity.Category; import com.bineng.dataWork.modules.cms.entity.Site; import com.bineng.dataWork.modules.cms.service.CategoryService; import com.bineng.dataWork.modules.cms.service.FileTplService; import com.bineng.dataWork.modules.cms.service.SiteService; import com.bineng.dataWork.modules.cms.utils.TplUtils; import com.google.common.collect.Lists; import com.google.common.collect.Maps; /** * 栏目Controller * @author ThinkGem * @version 2013-4-21 */ @Controller @RequestMapping(value = "${adminPath}/cms/category") public class CategoryController extends BaseController { @Autowired private CategoryService categoryService; @Autowired private FileTplService fileTplService; @Autowired private SiteService siteService; @ModelAttribute("category") public Category get(@RequestParam(required=false) String id) { if (StringUtils.isNotBlank(id)){ return categoryService.get(id); }else{ return new Category(); } } @RequiresPermissions("cms:category:view") @RequestMapping(value = {"list", ""}) public String list(Model model) { List<Category> list = Lists.newArrayList(); List<Category> sourcelist = categoryService.findByUser(true, null); Category.sortList(list, sourcelist, "1"); model.addAttribute("list", list); return "modules/cms/categoryList"; } @RequiresPermissions("cms:category:view") @RequestMapping(value = "form") public String form(Category category, Model model) { if (category.getParent()==null||category.getParent().getId()==null){ category.setParent(new Category("1")); } Category parent = categoryService.get(category.getParent().getId()); category.setParent(parent); if (category.getOffice()==null||category.getOffice().getId()==null){ category.setOffice(parent.getOffice()); } model.addAttribute("listViewList",getTplContent(Category.DEFAULT_TEMPLATE)); model.addAttribute("category_DEFAULT_TEMPLATE",Category.DEFAULT_TEMPLATE); model.addAttribute("contentViewList",getTplContent(Article.DEFAULT_TEMPLATE)); model.addAttribute("article_DEFAULT_TEMPLATE",Article.DEFAULT_TEMPLATE); model.addAttribute("office", category.getOffice()); model.addAttribute("category", category); return "modules/cms/categoryForm"; } @RequiresPermissions("cms:category:edit") @RequestMapping(value = "save") public String save(Category category, Model model, RedirectAttributes redirectAttributes) { if(Global.isDemoMode()){ addMessage(redirectAttributes, "演示模式,不允许操作!"); return "redirect:" + adminPath + "/cms/category/"; } if (!beanValidator(model, category)){ return form(category, model); } categoryService.save(category); addMessage(redirectAttributes, "保存栏目'" + category.getName() + "'成功"); return "redirect:" + adminPath + "/cms/category/"; } @RequiresPermissions("cms:category:edit") @RequestMapping(value = "delete") public String delete(Category category, RedirectAttributes redirectAttributes) { if(Global.isDemoMode()){ addMessage(redirectAttributes, "演示模式,不允许操作!"); return "redirect:" + adminPath + "/cms/category/"; } if (Category.isRoot(category.getId())){ addMessage(redirectAttributes, "删除栏目失败, 不允许删除顶级栏目或编号为空"); }else{ categoryService.delete(category); addMessage(redirectAttributes, "删除栏目成功"); } return "redirect:" + adminPath + "/cms/category/"; } /** * 批量修改栏目排序 */ @RequiresPermissions("cms:category:edit") @RequestMapping(value = "updateSort") public String updateSort(String[] ids, Integer[] sorts, RedirectAttributes redirectAttributes) { int len = ids.length; Category[] entitys = new Category[len]; for (int i = 0; i < len; i++) { entitys[i] = categoryService.get(ids[i]); entitys[i].setSort(sorts[i]); categoryService.save(entitys[i]); } addMessage(redirectAttributes, "保存栏目排序成功!"); return "redirect:" + adminPath + "/cms/category/"; } @RequiresUser @ResponseBody @RequestMapping(value = "treeData") public List<Map<String, Object>> treeData(String module, @RequestParam(required=false) String extId, HttpServletResponse response) { response.setContentType("application/json; charset=UTF-8"); List<Map<String, Object>> mapList = Lists.newArrayList(); List<Category> list = categoryService.findByUser(true, module); for (int i=0; i<list.size(); i++){ Category e = list.get(i); if (extId == null || (extId!=null && !extId.equals(e.getId()) && e.getParentIds().indexOf(","+extId+",")==-1)){ Map<String, Object> map = Maps.newHashMap(); map.put("id", e.getId()); map.put("pId", e.getParent()!=null?e.getParent().getId():0); map.put("name", e.getName()); map.put("module", e.getModule()); mapList.add(map); } } return mapList; } private List<String> getTplContent(String prefix) { List<String> tplList = fileTplService.getNameListByPrefix(siteService.get(Site.getCurrentSiteId()).getSolutionPath()); tplList = TplUtils.tplTrim(tplList, prefix, ""); return tplList; } }
[ "you@example.com" ]
you@example.com
c5a07c0a3de43f84ecf6d416bac2fd807a8e1e33
0af8b92686a58eb0b64e319b22411432aca7a8f3
/large-multiproject/project51/src/test/java/org/gradle/test/performance51_3/Test51_230.java
0199cf0a2e110786de9ef7b3b78e8f791a4dda09
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
292
java
package org.gradle.test.performance51_3; import static org.junit.Assert.*; public class Test51_230 { private final Production51_230 production = new Production51_230("value"); @org.junit.Test public void test() { assertEquals(production.getProperty(), "value"); } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
ca9959158ee2984c0d4a455cd764c5776528c1b6
f9217add588cf1c67e5832d438124368f00b5c3b
/src/main/java/w/fujiko/service/repo/companyaccounts/CompanyAccountServiceRepo.java
238879d2bda816f59b8899121c6e24dd0ee05477
[]
no_license
wekenche/winsgatePractice2
6150a7ce929863d0592f364bf4a249d399d52941
cd7a9f6ef0555c97da12f08b6909d1d65507ae6b
refs/heads/master
2020-04-21T16:14:24.218477
2019-02-08T06:36:26
2019-02-08T06:36:26
169,694,302
0
0
null
null
null
null
UTF-8
Java
false
false
6,306
java
package w.fujiko.service.repo.companyaccounts; import java.io.ByteArrayInputStream; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import javax.transaction.Transactional; import org.springframework.stereotype.Service; import fte.api.universal.UniversalServiceRepo; import w.fujiko.dao.companyaccounts.CompanyAccountDao; import w.fujiko.model.masters.banks.Bank; import w.fujiko.model.masters.banks.BankBranch; import w.fujiko.model.masters.companyaccounts.CompanyAccount; import w.fujiko.model.masters.companyaccounts.CompanyAccountCSVExtractionModel; import w.fujiko.model.masters.companyaccounts.CompanyAccountPDFExtractionModel; import w.fujiko.service.companyaccounts.CompanyAccountService; import w.fujiko.util.common.constants.CompanyAccountConstants; import w.fujiko.util.common.generator.CSVGenerator; import w.fujiko.util.common.generator.PDFListGenerator; import w.fujiko.util.common.generator.PDFListTable; import w.fujiko.util.common.generator.Table; @Service @Transactional public class CompanyAccountServiceRepo extends UniversalServiceRepo<CompanyAccount, CompanyAccountDao, Integer> implements CompanyAccountService { @Override public ByteArrayInputStream exportToPDF(Integer from, Integer to) throws Exception { List<CompanyAccount> entities = dao.getCompanyAccountsRange(from, to); String rangeContent = CompanyAccountConstants.SHORT_PAGE_NAME + "[" + from + "] - [" + to +"]"; List<CompanyAccountPDFExtractionModel> models = tranformPDFData(entities); PDFListTable<CompanyAccountPDFExtractionModel> table = new PDFListTable<>(); table.setTitle(CompanyAccountConstants.LONG_PAGE_NAME); table.setRangeContent(rangeContent); table.setHeaders(CompanyAccountConstants.PDF_HEADER_LIST); table.setFields(CompanyAccountConstants.PDF_FIELD_LIST); table.setDataSource(models); table.setKlazz(CompanyAccountPDFExtractionModel.class); return (new PDFListGenerator().generate(table)); } @Override public String exportToCSV(Integer from, Integer to) throws Exception { List<CompanyAccount> entities = dao.getCompanyAccountsRange(from, to); List<CompanyAccountCSVExtractionModel> models = tranformCSVData(entities); Table<CompanyAccountCSVExtractionModel> table = new Table<>(); table.setHeaders(CompanyAccountConstants.CSV_HEADER_LIST); table.setFields(CompanyAccountConstants.CSV_FIELD_LIST); table.setDataSource(models); table.setKlazz(CompanyAccountCSVExtractionModel.class); return (new CSVGenerator().generate(table)); } private List<CompanyAccountPDFExtractionModel> tranformPDFData(List<CompanyAccount> companyAccounts) { List<CompanyAccountPDFExtractionModel> result = new ArrayList<>(); for(CompanyAccount companyAccount : companyAccounts) { Integer companyAccountNo = companyAccount.getId(); BankBranch bankBranch = companyAccount.getBankBranch(); Bank bank = bankBranch.getBank(); Integer bankCode = bank.getBankCode(); String bankCodeTxt = String.format("%04d", bankCode); String bankName = bank.getBankName(); String bankTxt = bankCodeTxt + " " + bankName; Integer branchCode = bankBranch.getBankBranchCode(); String branchCodeTxt = String.format("%03d", branchCode); String branchName = bankBranch.getBankBranchName(); String branchTxt = branchCodeTxt + " " + branchName; String depositType = getDepositType(companyAccount.getDepositType()); Integer accountNo = companyAccount.getAccountNumber(); String accountNoTxt = String.format("%08d", accountNo); Long companyNo = companyAccount.getCompanyNumber(); String companyNoTxt = String.format("%010d", companyNo); String companyNameKana = companyAccount.getCompanyNameKana(); String dateCreatedTxt = ""; Date dateCreatedVal = companyAccount.getDateCreated(); if(dateCreatedVal != null) { dateCreatedTxt = new SimpleDateFormat(CompanyAccountConstants.DATE_FORMAT).format(dateCreatedVal); } String lastUpdatedTxt = ""; Date lastUpdatedVal = companyAccount.getDateUpdated(); if(lastUpdatedVal != null) { lastUpdatedTxt = new SimpleDateFormat(CompanyAccountConstants.DATE_FORMAT).format(lastUpdatedVal); } result.add(new CompanyAccountPDFExtractionModel(companyAccountNo, bankTxt, branchTxt, depositType, accountNoTxt, companyNoTxt, companyNameKana, dateCreatedTxt, lastUpdatedTxt)); } return result; } private List<CompanyAccountCSVExtractionModel> tranformCSVData(List<CompanyAccount> companyAccounts) { List<CompanyAccountCSVExtractionModel> result = new ArrayList<>(); for(CompanyAccount companyAccount : companyAccounts) { Integer companyAccountNo = companyAccount.getId(); BankBranch bankBranch = companyAccount.getBankBranch(); Bank bank = bankBranch.getBank(); Integer bankCode = bank.getBankCode(); String bankName = bank.getBankName(); Integer branchCode = bankBranch.getBankBranchCode(); String branchName = bankBranch.getBankBranchName(); String depositType = getDepositType(companyAccount.getDepositType()); Integer accountNo = companyAccount.getAccountNumber(); Long companyNo = companyAccount.getCompanyNumber(); String companyNameKana = companyAccount.getCompanyNameKana(); String dateCreatedTxt = ""; Date dateCreatedVal = companyAccount.getDateCreated(); if(dateCreatedVal != null) { dateCreatedTxt = new SimpleDateFormat(CompanyAccountConstants.DATE_FORMAT).format(dateCreatedVal); } String lastUpdatedTxt = ""; Date lastUpdatedVal = companyAccount.getDateUpdated(); if(lastUpdatedVal != null) { lastUpdatedTxt = new SimpleDateFormat(CompanyAccountConstants.DATE_FORMAT).format(lastUpdatedVal); } result.add(new CompanyAccountCSVExtractionModel(companyAccountNo, bankCode, bankName, branchCode, branchName, depositType, accountNo, companyNo, companyNameKana, dateCreatedTxt, lastUpdatedTxt)); } return result; } public String getDepositType(Short depositType) { String result = ""; switch(depositType.shortValue()) { case 1: result = CompanyAccountConstants.USUAL; break; case 2: result = CompanyAccountConstants.CURRENT; break; case 9: result = CompanyAccountConstants.OTHER; break; } return result; } }
[ "louiem@windsgate.com" ]
louiem@windsgate.com
e5c31f70eb893f050c221b09907e6e8c83db481a
c4623aa95fb8cdd0ee1bc68962711c33af44604e
/src/rx/exceptions/a.java
581feeea8dc9ce7adeaf59f21d86528b66ac3f64
[]
no_license
reverseengineeringer/com.yelp.android
48f7f2c830a3a1714112649a6a0a3110f7bdc2b1
b0ac8d4f6cd5fc5543f0d8de399b6d7b3a2184c8
refs/heads/master
2021-01-19T02:07:25.997811
2016-07-19T16:37:24
2016-07-19T16:37:24
38,555,675
1
0
null
null
null
null
UTF-8
Java
false
false
3,086
java
package rx.exceptions; import java.util.HashSet; import java.util.List; import java.util.Set; import rx.b; public final class a { public static void a(Throwable paramThrowable) { if ((paramThrowable instanceof OnErrorNotImplementedException)) { throw ((OnErrorNotImplementedException)paramThrowable); } if ((paramThrowable instanceof OnErrorFailedException)) { throw ((OnErrorFailedException)paramThrowable); } if ((paramThrowable instanceof StackOverflowError)) { throw ((StackOverflowError)paramThrowable); } if ((paramThrowable instanceof VirtualMachineError)) { throw ((VirtualMachineError)paramThrowable); } if ((paramThrowable instanceof ThreadDeath)) { throw ((ThreadDeath)paramThrowable); } if ((paramThrowable instanceof LinkageError)) { throw ((LinkageError)paramThrowable); } } public static void a(Throwable paramThrowable1, Throwable paramThrowable2) { HashSet localHashSet = new HashSet(); int i = 0; for (;;) { Throwable localThrowable = paramThrowable1; if (paramThrowable1.getCause() != null) { if (i >= 25) { return; } paramThrowable1 = paramThrowable1.getCause(); if (localHashSet.contains(paramThrowable1.getCause())) { localThrowable = paramThrowable1; } } else { try { localThrowable.initCause(paramThrowable2); return; } catch (Throwable paramThrowable1) { return; } } localHashSet.add(paramThrowable1.getCause()); i += 1; } } public static void a(Throwable paramThrowable, b<?> paramb) { a(paramThrowable); paramb.a(paramThrowable); } public static void a(Throwable paramThrowable, b<?> paramb, Object paramObject) { a(paramThrowable); paramb.a(OnErrorThrowable.addValueAsLastCause(paramThrowable, paramObject)); } public static void a(List<? extends Throwable> paramList) { if ((paramList != null) && (!paramList.isEmpty())) { if (paramList.size() == 1) { paramList = (Throwable)paramList.get(0); if ((paramList instanceof RuntimeException)) { throw ((RuntimeException)paramList); } if ((paramList instanceof Error)) { throw ((Error)paramList); } throw new RuntimeException(paramList); } throw new CompositeException(paramList); } } public static Throwable b(Throwable paramThrowable) { int i = 0; for (;;) { Object localObject = paramThrowable; if (paramThrowable.getCause() != null) { if (i >= 25) { localObject = new RuntimeException("Stack too deep to get final cause"); } } else { return (Throwable)localObject; } paramThrowable = paramThrowable.getCause(); i += 1; } } } /* Location: * Qualified Name: rx.exceptions.a * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "reverseengineeringer@hackeradmin.com" ]
reverseengineeringer@hackeradmin.com
22e0ad9399334610f96fa29556d5d48abd133cb4
5355c413e4a7acbf35d8e751b22528f4d04d0b6a
/src/main/java/Everest/Core/Exception/UnauthorizedException.java
ee40abc86db8b22044eed5cbac9b180d60bcabf0
[]
no_license
chendjouCaleb/Everest
402e77c22924628a86fd91e480ce7973556de537
fcf595c58836bae353f75651b615766953cc5410
refs/heads/master
2021-10-24T04:52:43.571782
2019-03-21T05:57:54
2019-03-21T05:57:54
104,355,982
0
0
null
null
null
null
UTF-8
Java
false
false
608
java
package Everest.Core.Exception; public class UnauthorizedException extends RuntimeException{ public UnauthorizedException() { } public UnauthorizedException(String message) { super(message); } public UnauthorizedException(String message, Throwable cause) { super(message, cause); } public UnauthorizedException(Throwable cause) { super(cause); } public UnauthorizedException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { super(message, cause, enableSuppression, writableStackTrace); } }
[ "chendjou2016@outlook.fr" ]
chendjou2016@outlook.fr
a136af3c4a9925836c78d5fa1399b89cc757ab40
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/24/24_d587a0349b6362fa2002d29e965310321653c0ea/DashboardDesignerContentGenerator/24_d587a0349b6362fa2002d29e965310321653c0ea_DashboardDesignerContentGenerator_s.java
e3feb864fe19004c6edfb1ad4f09f9cac3664b53
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
3,930
java
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ package pt.webdetails.cdf.dd; import org.apache.commons.io.IOUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.pentaho.platform.api.engine.IParameterProvider; import pt.webdetails.cdf.dd.api.RenderApi; import pt.webdetails.cdf.dd.util.CdeEnvironment; import pt.webdetails.cpf.SimpleContentGenerator; public class DashboardDesignerContentGenerator extends SimpleContentGenerator { public static final String PLUGIN_PATH = CdeEnvironment.getSystemDir() + "/" + CdeEnvironment.getPluginId() + "/"; private static final Log logger = LogFactory.getLog( DashboardDesignerContentGenerator.class ); private boolean edit = false; private boolean create = false; public DashboardDesignerContentGenerator() { super(); } @Override public Log getLogger() { return logger; } @Override public void createContent() throws Exception { IParameterProvider requestParams = parameterProviders.get( MethodParams.REQUEST ); IParameterProvider pathParams = parameterProviders.get( MethodParams.PATH ); String solution = requestParams.getStringParameter( MethodParams.SOLUTION, "" ), path = requestParams.getStringParameter( MethodParams.PATH, "" ), file = requestParams.getStringParameter( MethodParams.FILE, "" ); String root = requestParams.getStringParameter( MethodParams.ROOT, "" ); String viewId = requestParams.getStringParameter( MethodParams.VIEWID, "" ); String filePath = pathParams.getStringParameter( MethodParams.PATH, ""); boolean inferScheme = requestParams.hasParameter( MethodParams.INFER_SCHEME ) && requestParams.getParameter( MethodParams.INFER_SCHEME ).equals( "false" ); boolean absolute = requestParams.hasParameter( MethodParams.ABSOLUTE ) && requestParams.getParameter( MethodParams.ABSOLUTE ).equals( "true" ); boolean bypassCacheRead = requestParams.hasParameter( MethodParams.BYPASS_CACHE ) && requestParams.getParameter( MethodParams.BYPASS_CACHE ).equals( "true" ); boolean debug = requestParams.hasParameter( MethodParams.DEBUG ) && requestParams.getParameter( MethodParams.DEBUG ).equals( "true" ); RenderApi renderer = new RenderApi(); if( create ) { renderer.newDashboard( "", "", filePath, debug, getRequest(), getResponse() ); } else if( edit ) { renderer.edit( "", "", filePath, debug, getRequest(), getResponse() ); } else { String result = renderer.render( "", "", filePath, inferScheme, root, absolute, bypassCacheRead, debug, viewId, getRequest()); IOUtils.write(result, getResponse().getOutputStream()); getResponse().getOutputStream().flush(); } } @Override public String getPluginName() { return CdeEnvironment.getPluginId(); } private class MethodParams { public static final String DEBUG = "debug"; public static final String BYPASS_CACHE = "bypassCache"; public static final String ROOT = "root"; public static final String INFER_SCHEME = "inferScheme"; public static final String ABSOLUTE = "absolute"; public static final String SOLUTION = "solution"; public static final String PATH = "path"; public static final String FILE = "file"; public static final String REQUEST = "request"; public static final String VIEWID = "viewId"; public static final String DATA = "data"; } public boolean isEdit() { return edit; } public void setEdit(boolean edit) { this.edit = edit; } public boolean isCreate() { return create; } public void setCreate(boolean create) { this.create = create; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
75b2de0ab2220dcbbdc091072d60a1df09ce28e6
44632160420da0a7117d9b3b0ce0978308709e58
/wicked-forms-showcase/wicked-forms-examples/src/main/java/de/adesso/wickedforms/validators/CustomValidatorExample.java
1d8588d9de34538988f3db1ca513df8aa6a40756
[ "Apache-2.0" ]
permissive
adessoSE/wicked-forms
afbbfd6202b2f16c326aadfe890686a6f72b8c19
c7e53472f30b7d03b4778011eb4ce645a8c021f2
refs/heads/master
2022-03-03T20:07:43.486534
2017-12-13T19:57:01
2017-12-13T19:57:01
14,043,412
0
1
null
null
null
null
UTF-8
Java
false
false
1,542
java
package de.adesso.wickedforms.validators; import de.adesso.wickedforms.model.Section; import de.adesso.wickedforms.model.elements.fields.AbstractInputField; import de.adesso.wickedforms.model.validation.FieldValidator; import de.adesso.wickedforms.model.validation.ValidationFeedback; import de.adesso.wickedforms.model.Form; import de.adesso.wickedforms.model.elements.Text; import de.adesso.wickedforms.model.elements.fields.StringTextField; public class CustomValidatorExample extends Form { public CustomValidatorExample() { super("Custom Validators"); add(new Text("Wicked Forms comes with a small set of ready-made validators. " + "In most projects, you need your own custom-made validators. To create a custom " + " validator, all you have to do is to implement the interface FieldValidator.")); add(new Section("Fixed Value Validator") .add( new Text( "This custom-implemented validator checks if the input " + "value exactly matches the string 'mercury'.")) .add(new StringTextField("Nearest planet to the sun") .add(createMercuryValidator()))); } private FieldValidator<String> createMercuryValidator() { return new FieldValidator<String>() { @Override public void validate(final AbstractInputField<String> inputField, final String value, final ValidationFeedback feedback) { if (!"mercury".equals(value)) { feedback.error(String.format("Your answer to '%s' is wrong.", inputField.getLabel())); } } }; } }
[ "tom.hombergs@gmail.com" ]
tom.hombergs@gmail.com
4216e94ce3f706f1bdacc1cafdbccef9cf7940c4
0ced71bb9e26d885ab280fc123d973c70c0547dd
/allbinary_src/BlisketTagHelperFactoriesJavaLibraryM/src/main/java/admin/taghelpers/PaymentGatewayHelperFactory.java
64a36fabef0e414fcb789784d7e7d28d927f8d9e
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
cucungukrieut/AllBinary-Platform
ace0ae5873d59485a27faf8eb80c67a4e7905ab8
6ca2dcfa171a2b19d8d62335f48e59f11ce55a93
refs/heads/master
2021-06-03T03:04:51.709811
2016-08-21T14:56:44
2016-08-21T14:56:44
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,499
java
/* * AllBinary Open License Version 1 * Copyright (c) 2011 AllBinary * * By agreeing to this license you and any business entity you represent are * legally bound to the AllBinary Open License Version 1 legal agreement. * * You may obtain the AllBinary Open License Version 1 legal agreement from * AllBinary or the root directory of AllBinary's AllBinary Platform repository. * * Created By: Travis Berthelot * */ package admin.taghelpers; import org.allbinary.logic.communication.log.LogFactory; import org.allbinary.logic.communication.log.LogUtil; import java.util.HashMap; import javax.servlet.jsp.PageContext; import org.allbinary.logic.system.security.licensing.LicensingException; public class PaymentGatewayHelperFactory implements TagHelperFactoryInterface { public PaymentGatewayHelperFactory() { } public Object getInstance( HashMap hashMap, PageContext pageContext) throws LicensingException { try { return new PaymentGatewayHelper(hashMap, pageContext); } catch (Exception e) { if (abcs.logic.communication.log.config.type.LogConfigTypes.LOGGING.contains( abcs.logic.communication.log.config.type.LogConfigType.TAGHELPERFACTORYERROR)) { String error = "Failed To Get Instance"; LogUtil.put(LogFactory.getInstance(error, this, "getInstance(HashMap, PageContext)", e)); } return null; } } }
[ "travisberthelot@hotmail.com" ]
travisberthelot@hotmail.com
b82ea8c6eb6f71bce8901baeb844e586c9995ddb
d5ec27de68c07975d3d543ade2225783828084a5
/src/test/java/com/huotu/huotao/DoWx.java
3dfcb82e5be4c83145fce32b5b8b56beea13843a
[]
no_license
huotuinc/huotao-client
e6eba24a245166bd0fcb429a9190f3dcea66cfdf
39fc6f480322ae87dff6b490d370e878ad03180d
refs/heads/master
2021-01-19T11:52:54.932572
2017-02-27T07:58:57
2017-02-27T07:58:57
82,282,607
0
1
null
null
null
null
UTF-8
Java
false
false
1,630
java
package com.huotu.huotao; import com.huotu.huotao.util.DriverSetup; import org.junit.Test; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeDriverService; import org.openqa.selenium.remote.DesiredCapabilities; import org.openqa.selenium.remote.RemoteWebDriver; import org.springframework.core.io.ClassPathResource; import org.springframework.util.StreamUtils; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; /** * 1.7 * <p> * 2 17 15天 * * @author CJ */ public class DoWx { @Test public void testGoogleSearch() throws InterruptedException, IOException { DriverSetup.setup(); WebDriver driver = new ChromeDriver(); driver.get("http://www.baidu.com"); Thread.sleep(5000); // Let the user actually see something! // WebElement searchBox = driver.findElement(By.name("q")); // searchBox.sendKeys("ChromeDriver"); // searchBox.submit(); Thread.sleep(5000); // Let the user actually see something! driver.quit(); } @Test public void go() throws IOException { DriverSetup.setup(); ChromeDriverService service = new ChromeDriverService.Builder() .withSilent(true) .usingAnyFreePort() .build(); service.start(); WebDriver driver = new RemoteWebDriver(service.getUrl(), DesiredCapabilities.chrome()); driver.get("https://wx.qq.com"); driver.quit(); service.stop(); } }
[ "luffy.ja@gmail.com" ]
luffy.ja@gmail.com
92a50f8993f4b3264cbcf472b4ec536b0894f58f
f202dd96ff6d0488929c4a7e8c51897a0d1a2a24
/spring-data-book/querydsl/src/test/java/com/oreilly/springdata/querydsl/core/ProductUnitTest.java
217196fbc72723362f40a6622761abfa87c8e653
[]
no_license
olinchy/eureka_test
23c9aa7f39fd813c37b0224d642eead38dc488bd
aef8cd80b30c572d4a1cb3cede612473b5e1d69f
refs/heads/master
2020-04-07T11:08:43.630991
2018-11-20T01:52:07
2018-11-20T01:52:07
158,314,067
0
0
null
null
null
null
UTF-8
Java
false
false
2,307
java
/* * Copyright 2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.oreilly.springdata.querydsl.core; import static com.mysema.query.collections.MiniApi.*; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; import java.util.Arrays; import java.util.List; import org.junit.Before; import org.junit.Test; /** * Unit tests to show the usage of Querydsl predicates to filter collections. * * @author Oliver Gierke */ public class ProductUnitTest { private static final QProduct $ = QProduct.product; Product macBook, iPad, iPod, turntable; List<Product> products; @Before public void setUp() { macBook = new Product("MacBook Pro", "Apple laptop"); iPad = new Product("iPad", "Apple tablet"); iPod = new Product("iPod", "Apple MP3 player"); turntable = new Product("Turntable", "Vinyl player"); products = Arrays.asList(macBook, iPad, iPod, turntable); } @Test public void findsAllAppleProducts() { List<Product> result = from($, products).where($.description.contains("Apple")).list($); assertThat(result, hasSize(3)); assertThat(result, hasItems(macBook, iPad, iPod)); } @Test public void findsAllAppleProductNames() { List<String> result = from($, products).where($.description.contains("Apple")).list($.name); assertThat(result, hasSize(3)); assertThat(result, hasItems(macBook.getName(), iPad.getName(), iPod.getName())); } @Test public void findsPlayers() { List<Product> result = from($, products).where($.description.contains("player")).list($); assertThat(result, hasSize(2)); assertThat(result, hasItems(iPod, turntable)); } }
[ "liu.wei91@zte.com.cn" ]
liu.wei91@zte.com.cn
ff23b9a86c894d77c52fe2f6e3e74e40b8d65193
67fadb5277f2c22067c64f277ccfe611c0e2625b
/drr/patches/D_correct/Chart24/patch1-Chart-24-ssFix/patch1Chart24_ssfix/target/0/28/evosuite-tests/org/jfree/chart/renderer/GrayPaintScale_ESTest_scaffolding.java
08526521776c32ac398e34778822df7009b75ac2
[]
no_license
SophieHYe/DiffTGen
6e08cfba78b19f3e0aee559a54fbca8ad387bbe6
c34b08ab3793183e03fb7dea23e44b2c22b40f50
refs/heads/master
2021-10-23T22:23:44.223906
2019-03-20T11:20:02
2019-03-20T11:20:02
139,418,074
0
0
null
2018-07-02T09:03:48
2018-07-02T09:03:48
null
UTF-8
Java
false
false
6,725
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Sat Mar 09 18:39:01 GMT 2019 */ package org.jfree.chart.renderer; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; import org.junit.AfterClass; import org.evosuite.runtime.sandbox.Sandbox; import org.evosuite.runtime.sandbox.Sandbox.SandboxMode; @EvoSuiteClassExclude public class GrayPaintScale_ESTest_scaffolding { @org.junit.Rule public org.junit.rules.Timeout globalTimeout = new org.junit.rules.Timeout(4000); private static final java.util.Properties defaultProperties = (java.util.Properties) java.lang.System.getProperties().clone(); private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000); @BeforeClass public static void initEvoSuiteFramework() { org.evosuite.runtime.RuntimeSettings.className = "org.jfree.chart.renderer.GrayPaintScale"; org.evosuite.runtime.GuiSupport.initialize(); org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100; org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000; org.evosuite.runtime.RuntimeSettings.mockSystemIn = true; org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED; org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT(); org.evosuite.runtime.classhandling.JDKClassResetter.init(); initializeClasses(); org.evosuite.runtime.Runtime.getInstance().resetRuntime(); } @AfterClass public static void clearEvoSuiteFramework(){ Sandbox.resetDefaultSecurityManager(); java.lang.System.setProperties((java.util.Properties) defaultProperties.clone()); } @Before public void initTestCase(){ threadStopper.storeCurrentThreads(); threadStopper.startRecordingTime(); org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler(); org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode(); setSystemProperties(); org.evosuite.runtime.GuiSupport.setHeadless(); org.evosuite.runtime.Runtime.getInstance().resetRuntime(); org.evosuite.runtime.agent.InstrumentingAgent.activate(); } @After public void doneWithTestCase(){ threadStopper.killAndJoinClientThreads(); org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks(); org.evosuite.runtime.classhandling.JDKClassResetter.reset(); resetClasses(); org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode(); org.evosuite.runtime.agent.InstrumentingAgent.deactivate(); org.evosuite.runtime.GuiSupport.restoreHeadlessMode(); } public void setSystemProperties() { java.lang.System.setProperties((java.util.Properties) defaultProperties.clone()); java.lang.System.setProperty("java.vm.vendor", "Oracle Corporation"); java.lang.System.setProperty("java.specification.version", "1.8"); java.lang.System.setProperty("java.home", "/usr/lib/jvm/java-8-openjdk-amd64/jre"); java.lang.System.setProperty("user.dir", "/home/wasp/Desktop/ICSE18/DiffTGen/drr/patches/D_correct/Chart24/patch1-Chart-24-ssFix/patch1Chart24_ssfix/target/0/28"); java.lang.System.setProperty("java.io.tmpdir", "/tmp"); java.lang.System.setProperty("awt.toolkit", "sun.awt.X11.XToolkit"); java.lang.System.setProperty("file.encoding", "UTF-8"); java.lang.System.setProperty("file.separator", "/"); java.lang.System.setProperty("java.awt.graphicsenv", "sun.awt.X11GraphicsEnvironment"); java.lang.System.setProperty("java.awt.headless", "true"); java.lang.System.setProperty("java.awt.printerjob", "sun.print.PSPrinterJob"); java.lang.System.setProperty("java.class.path", "/tmp/EvoSuite_pathingJar3350797147843941393.jar"); java.lang.System.setProperty("java.class.version", "52.0"); java.lang.System.setProperty("java.endorsed.dirs", "/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/endorsed"); java.lang.System.setProperty("java.ext.dirs", "/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext:/usr/java/packages/lib/ext"); java.lang.System.setProperty("java.library.path", "lib"); java.lang.System.setProperty("java.runtime.name", "OpenJDK Runtime Environment"); java.lang.System.setProperty("java.runtime.version", "1.8.0_191-8u191-b12-2ubuntu0.16.04.1-b12"); java.lang.System.setProperty("java.specification.name", "Java Platform API Specification"); java.lang.System.setProperty("java.specification.vendor", "Oracle Corporation"); java.lang.System.setProperty("java.vendor", "Oracle Corporation"); java.lang.System.setProperty("java.vendor.url", "http://java.oracle.com/"); java.lang.System.setProperty("java.version", "1.8.0_191"); java.lang.System.setProperty("java.vm.info", "mixed mode"); java.lang.System.setProperty("java.vm.name", "OpenJDK 64-Bit Server VM"); java.lang.System.setProperty("java.vm.specification.name", "Java Virtual Machine Specification"); java.lang.System.setProperty("java.vm.specification.vendor", "Oracle Corporation"); java.lang.System.setProperty("java.vm.specification.version", "1.8"); java.lang.System.setProperty("java.vm.version", "25.191-b12"); java.lang.System.setProperty("line.separator", "\n"); java.lang.System.setProperty("os.arch", "amd64"); java.lang.System.setProperty("os.name", "Linux"); java.lang.System.setProperty("os.version", "4.15.0-43-generic"); java.lang.System.setProperty("path.separator", ":"); java.lang.System.setProperty("user.country", "US"); java.lang.System.setProperty("user.home", "/home/wasp"); java.lang.System.setProperty("user.language", "en"); java.lang.System.setProperty("user.name", "wasp"); java.lang.System.setProperty("user.timezone", "Europe/Stockholm"); } private static void initializeClasses() { org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(GrayPaintScale_ESTest_scaffolding.class.getClassLoader() , "org.jfree.chart.renderer.PaintScale", "org.jfree.chart.renderer.GrayPaintScale", "org.jfree.chart.util.PublicCloneable" ); } private static void resetClasses() { org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(GrayPaintScale_ESTest_scaffolding.class.getClassLoader()); org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses( "org.jfree.chart.renderer.GrayPaintScale" ); } }
[ "he_ye_90s@hotmail.com" ]
he_ye_90s@hotmail.com
947266c82f4d5b114d85e70ce5eac2adbc196e11
2698a9c7e2f168e5a40cbb15992248a8d7863793
/src/com/common/library/llj/gesture/MySimpleOnGestureListener.java
fe213f32232d56d2cea25a8fa65fca61db79f3d2
[]
no_license
liulinjie1990823/Library_llj
58a0540196058b8c7d08ad56672d141cc8fcf0db
ff0c4c900ddd390f8a72d8ac727c203197e5081d
refs/heads/master
2021-01-01T17:12:14.294000
2017-08-09T12:35:38
2017-08-09T12:35:38
98,022,503
0
1
null
null
null
null
UTF-8
Java
false
false
2,183
java
package com.common.library.llj.gesture; import android.view.GestureDetector; import android.view.MotionEvent; import com.common.library.llj.utils.LogUtil; /** * Created by liulj on 16/5/23. */ public class MySimpleOnGestureListener extends GestureDetector.SimpleOnGestureListener { @Override public boolean onSingleTapUp(MotionEvent e) { LogUtil.LLJe("onSingleTapUp:" + e.getActionIndex() + e.getAction()); return super.onSingleTapUp(e); } @Override public void onLongPress(MotionEvent e) { LogUtil.LLJe("onLongPress:" + e.getActionIndex() + e.getAction()); super.onLongPress(e); } @Override public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) { LogUtil.LLJe("onScroll", "onSingleTapUp"); return super.onScroll(e1, e2, distanceX, distanceY); } @Override public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { LogUtil.LLJe("onFling", "onFling"); return super.onFling(e1, e2, velocityX, velocityY); } @Override public void onShowPress(MotionEvent e) { LogUtil.LLJe("onShowPress:" + e.getActionIndex() + e.getAction()); super.onShowPress(e); } @Override public boolean onDown(MotionEvent e) { LogUtil.LLJe("onDown:" + e.getActionIndex() + e.getAction()); return super.onDown(e); } @Override public boolean onDoubleTap(MotionEvent e) { LogUtil.LLJe("onDoubleTap:" + e.getActionIndex() + e.getAction()); return super.onDoubleTap(e); } @Override public boolean onDoubleTapEvent(MotionEvent e) { LogUtil.LLJe("onDoubleTapEvent:" + e.getActionIndex() + e.getAction()); return super.onDoubleTapEvent(e); } @Override public boolean onSingleTapConfirmed(MotionEvent e) { LogUtil.LLJe("onSingleTapConfirmed:" + e.getActionIndex() + e.getAction()); return super.onSingleTapConfirmed(e); } @Override public boolean onContextClick(MotionEvent e) { LogUtil.LLJe("onContextClick", e.toString()); return super.onContextClick(e); } }
[ "liulinjie1990823@gmail.com" ]
liulinjie1990823@gmail.com
6de3463ecf8fee48da113d8e86c178852c7fa9b5
39bb67d27c696a47e82ced53bb77a8cce9b87d7f
/src/design_mode/iterator/able_interface/Weaponable.java
7bd30d2223c2c0dbf31014696b3758e78be3b578
[]
no_license
Automannn/designMode
1976a3b64c105c089cb847de9774f98180e7357a
a5d2516f1c583afabacac6b617eb14091ddfa6f4
refs/heads/master
2020-03-30T12:27:54.029735
2018-10-02T09:11:41
2018-10-02T09:12:20
151,225,471
0
0
null
null
null
null
UTF-8
Java
false
false
245
java
package design_mode.iterator.able_interface; import com.automannn.design_mode.iterator.OOP_class.WeaponIterator; /** * @author automannn@163.com * @time 2018/9/13 10:13 */ public interface Weaponable { WeaponIterator weaponItertor(); }
[ "Automannn@163.com" ]
Automannn@163.com
6dc385a877b86a66e0c045daabb48cb1a368aafe
154fb8420f10e4115ebe13bf3d53354e534854fa
/src/cn/digitalpublishing/util/web/JSONUtil.java
3a981a5ed5d40fab18885fce765cdab732c6cf89
[]
no_license
yxxcrtd/EPublishing
a2fe5f01e04dacafcfcdda6cdf9990abda97bbd3
eddf7019c75d5a11a8d869c8091fa8118a8c6119
refs/heads/master
2020-05-31T21:44:48.300368
2019-06-06T02:57:26
2019-06-06T02:57:26
190,503,792
0
0
null
null
null
null
UTF-8
Java
false
false
964
java
package cn.digitalpublishing.util.web; public class JSONUtil { public JSONUtil() { // TODO Auto-generated constructor stub } public static String string2Json(String s) { if(s!=null){ StringBuilder sb = new StringBuilder(s.length() + 20); sb.append('\"'); for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); switch (c) { case '\"': sb.append("\\\""); break; case '\\': sb.append("\\\\"); break; case '/': sb.append("\\\\/"); break; case '\b': sb.append("\\b"); break; case '\f': sb.append("\\f"); break; case '\n': sb.append("\\n"); break; case '\r': sb.append("\\r"); break; case '\t': sb.append("\\t"); break; default: sb.append(c); } } sb.append('\"'); return sb.toString(); }else{ return "\"\""; } } }
[ "yxxcrtd@gmail.com" ]
yxxcrtd@gmail.com
31b065d4272fad28826d2bf85225ecffb470f9fb
e617f4ae796f16eeb4705200935a90dfd31955b2
/android/support/v7/view/menu/MenuWrapperFactory.java
096c0b0567913518a41dfb0909df7a03d7b9d8b2
[]
no_license
mascot6699/Go-Jek.Android
98dfb73b1c52a7c2100c7cf8baebc0a95d5d511d
051649d0622bcdc7872cb962a0e1c4f6c0f2a113
refs/heads/master
2021-01-20T00:24:46.431341
2016-01-11T05:59:34
2016-01-11T05:59:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,526
java
package android.support.v7.view.menu; import android.content.Context; import android.os.Build.VERSION; import android.support.v4.internal.view.SupportMenu; import android.support.v4.internal.view.SupportMenuItem; import android.support.v4.internal.view.SupportSubMenu; import android.view.Menu; import android.view.MenuItem; import android.view.SubMenu; public final class MenuWrapperFactory { public static Menu wrapSupportMenu(Context paramContext, SupportMenu paramSupportMenu) { if (Build.VERSION.SDK_INT >= 14) { return new MenuWrapperICS(paramContext, paramSupportMenu); } throw new UnsupportedOperationException(); } public static MenuItem wrapSupportMenuItem(Context paramContext, SupportMenuItem paramSupportMenuItem) { if (Build.VERSION.SDK_INT >= 16) { return new MenuItemWrapperJB(paramContext, paramSupportMenuItem); } if (Build.VERSION.SDK_INT >= 14) { return new MenuItemWrapperICS(paramContext, paramSupportMenuItem); } throw new UnsupportedOperationException(); } public static SubMenu wrapSupportSubMenu(Context paramContext, SupportSubMenu paramSupportSubMenu) { if (Build.VERSION.SDK_INT >= 14) { return new SubMenuWrapperICS(paramContext, paramSupportSubMenu); } throw new UnsupportedOperationException(); } } /* Location: /Users/michael/Downloads/dex2jar-2.0/GO_JEK.jar!/android/support/v7/view/menu/MenuWrapperFactory.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "michael@MJSTONE-MACBOOK.local" ]
michael@MJSTONE-MACBOOK.local
07369f656167cf70489fade168ad518f7d1b041a
15f806745ef5cca72251254c24618a345fb3eb4c
/fintech-admin/src/main/java/com/qunar/fintech/plat/admin/newmarketing/monitor/MonitorMertricsGroup.java
624a181993a9648ba2c7d6e3e4e3ceddbd03b045
[]
no_license
GSIL-Monitor/QunarProjectsStave
005f863b178645d8e90a44bdd14c5c0593574734
c455cda3a3aa86c68203e5d9be2545b2e88b47b0
refs/heads/master
2020-04-23T20:52:59.058801
2019-02-19T09:55:38
2019-02-19T09:55:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
527
java
package com.qunar.fintech.plat.admin.newmarketing.monitor; /** * @author qun.shi * @since 2019-01-11 8:44 PM */ public final class MonitorMertricsGroup { /** * 账务报警 */ public static final String ALARM_FAIL_COUNT = "alarm:fail:count"; /** * 活动相关 */ public static final String ACTIVITY_FAIL_COUNT="activity:fail:count"; /** * 券相关 */ public static final String COUPON_FAIL_COUNT="coupon:fail:count"; private MonitorMertricsGroup() { } }
[ "guijun.qu@quanr.com" ]
guijun.qu@quanr.com
022981e7123ca2340ece3f80de1177711647423b
3542399420d6a168c40dfb71e46a59be7313a1f8
/paimai/src/com/shuangyulin/service/ItemClassService.java
518a03114200781e256a4680a56e44402a9e02ae
[]
no_license
xinglu/ssm_paimai
823783bc90c89402e911261b083c82d70969acd2
ddd879008e8e24c0350daf3a7ff06e06151443a9
refs/heads/master
2020-05-29T20:53:10.714277
2018-09-01T05:28:11
2018-09-01T05:28:11
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,089
java
package com.shuangyulin.service; import java.util.ArrayList; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.shuangyulin.po.ItemClass; import com.shuangyulin.mapper.ItemClassMapper; @Service public class ItemClassService { @Resource ItemClassMapper itemClassMapper; /*每页显示记录数目*/ private int rows = 10;; public int getRows() { return rows; } public void setRows(int rows) { this.rows = rows; } /*保存查询后总的页数*/ private int totalPage; public void setTotalPage(int totalPage) { this.totalPage = totalPage; } public int getTotalPage() { return totalPage; } /*保存查询到的总记录数*/ private int recordNumber; public void setRecordNumber(int recordNumber) { this.recordNumber = recordNumber; } public int getRecordNumber() { return recordNumber; } /*添加商品类别记录*/ public void addItemClass(ItemClass itemClass) throws Exception { itemClassMapper.addItemClass(itemClass); } /*按照查询条件分页查询商品类别记录*/ public ArrayList<ItemClass> queryItemClass(int currentPage) throws Exception { String where = "where 1=1"; int startIndex = (currentPage-1) * this.rows; return itemClassMapper.queryItemClass(where, startIndex, this.rows); } /*按照查询条件查询所有记录*/ public ArrayList<ItemClass> queryItemClass() throws Exception { String where = "where 1=1"; return itemClassMapper.queryItemClassList(where); } /*查询所有商品类别记录*/ public ArrayList<ItemClass> queryAllItemClass() throws Exception { return itemClassMapper.queryItemClassList("where 1=1"); } /*当前查询条件下计算总的页数和记录数*/ public void queryTotalPageAndRecordNumber() throws Exception { String where = "where 1=1"; recordNumber = itemClassMapper.queryItemClassCount(where); int mod = recordNumber % this.rows; totalPage = recordNumber / this.rows; if(mod != 0) totalPage++; } /*根据主键获取商品类别记录*/ public ItemClass getItemClass(int classId) throws Exception { ItemClass itemClass = itemClassMapper.getItemClass(classId); return itemClass; } /*更新商品类别记录*/ public void updateItemClass(ItemClass itemClass) throws Exception { itemClassMapper.updateItemClass(itemClass); } /*删除一条商品类别记录*/ public void deleteItemClass (int classId) throws Exception { itemClassMapper.deleteItemClass(classId); } /*删除多条商品类别信息*/ public int deleteItemClasss (String classIds) throws Exception { String _classIds[] = classIds.split(","); for(String _classId: _classIds) { itemClassMapper.deleteItemClass(Integer.parseInt(_classId)); } return _classIds.length; } }
[ "254540457@qq.com" ]
254540457@qq.com
9ede49bf038b4a6838508de4e99d77f8cf3b9658
25a91c33745c6b4476ea6cc67b8c12d1cf10c472
/TIJ4/src/za/co/coach/learning/tij/concurrency/AtomicIntegerTest.java
0fdfcf654350495b8ea79a4068ae6756a0509e3c
[]
no_license
kumbirai/Learning
f3148b90c8d532316397d87b3027d5efff801d5e
73573e416acf26c069a5f5240532e940b4a8fafa
refs/heads/master
2021-01-15T17:07:12.084262
2013-01-03T09:31:14
2013-01-03T09:31:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,038
java
package za.co.coach.learning.tij.concurrency; //: za.co.coach.learning.tij.concurrency/AtomicIntegerTest.java import java.util.Timer; import java.util.TimerTask; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.atomic.AtomicInteger; public class AtomicIntegerTest implements Runnable { private AtomicInteger i = new AtomicInteger(0); public int getValue() { return i.get(); } private void evenIncrement() { i.addAndGet(2); } public void run() { while (true) evenIncrement(); } public static void main(String[] args) { new Timer().schedule(new TimerTask() { public void run() { System.err.println("Aborting"); System.exit(0); } }, 5000); // Terminate after 5 seconds ExecutorService exec = Executors.newCachedThreadPool(); AtomicIntegerTest ait = new AtomicIntegerTest(); exec.execute(ait); while (true) { int val = ait.getValue(); if (val % 2 != 0) { System.out.println(val); System.exit(0); } } } } ///:~
[ "kumbirai@gmail.com" ]
kumbirai@gmail.com
6ea787be995ab1d0d96c22848a0fc59d7a5b6989
5ace1a46ddc2ea26454b0d16a76873751f72e15f
/src/main/java/br/order/org/controller/org/OrgLevelController.java
a5c7b4584935bd8e2aa0bef9c9132187d264319d
[]
no_license
wangwenteng/br-order-org-controller
373f9b5e12a52438f9953dc281612b4e95ffdf3c
14a5d01868c65f2db06de89c4cf24a672aa5e0f8
refs/heads/master
2022-03-05T12:44:43.606410
2017-05-05T08:47:33
2017-05-05T08:47:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,458
java
package br.order.org.controller.org; import java.util.HashMap; import java.util.List; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import com.alibaba.fastjson.JSONObject; import com.wordnik.swagger.annotations.ApiOperation; import br.crm.common.utils.InterfaceResultUtil; import br.crm.pojo.org.OrganizationLevel; import br.crm.service.org.OrgLevelService; @Controller @RequestMapping("/organizationLevel") public class OrgLevelController { @Autowired private OrgLevelService orgLevelService; @ApiOperation(value = "获取等级", httpMethod = "GET", response = JSONObject.class, notes = "获取等级") @RequestMapping("/getOrganizationLevelAll") @ResponseBody public JSONObject getOrganizationLevelAll() { JSONObject jsonObject = new JSONObject(); try { List<OrganizationLevel> list = orgLevelService.getAllOrgLevel(); jsonObject.put("data", list); return InterfaceResultUtil.getReturnMapSuccess(jsonObject); } catch (Exception e) { e.printStackTrace(); } return InterfaceResultUtil.getReturnMapError(jsonObject); } @ApiOperation(value = "机构类型", httpMethod = "GET", response = JSONObject.class, notes = "机构类型") @RequestMapping("/getOrgType") @ResponseBody public JSONObject getType() { JSONObject jsonObject = new JSONObject(); try { Map<String, String> map = new HashMap<String, String>(); map.put("1", "体检机构"); map.put("2", "医院"); jsonObject.put("data", map); return InterfaceResultUtil.getReturnMapSuccess(jsonObject); } catch (Exception e) { e.printStackTrace(); } return InterfaceResultUtil.getReturnMapError(jsonObject); } @ApiOperation(value = "获取机构名称", httpMethod = "GET", response = JSONObject.class, notes = "获取机构名称") @RequestMapping("/getOrgNameAll") @ResponseBody public JSONObject getOrgAll() { JSONObject jsonObject = new JSONObject(); try { List<Map<String,String>> list = orgLevelService.getOrgAll(); jsonObject.put("data", list); return InterfaceResultUtil.getReturnMapSuccess(jsonObject); } catch (Exception e) { e.printStackTrace(); } return InterfaceResultUtil.getReturnMapError(jsonObject); } }
[ "120591516@qq.com" ]
120591516@qq.com
5767fa3a89b918fa86f2b030737b91811e2f6856
18c70f2a4f73a9db9975280a545066c9e4d9898e
/mirror-composite/composite-api/src/main/java/com/migu/tsg/microservice/atomicservice/composite/service/resmgr/payload/CompServiceStartResponse.java
61ac545d497e45d06c4e382758bbcc220d8b5e7b
[]
no_license
iu28igvc9o0/cmdb_aspire
1fe5d8607fdacc436b8a733f0ea44446f431dfa8
793eb6344c4468fe4c61c230df51fc44f7d8357b
refs/heads/master
2023-08-11T03:54:45.820508
2021-09-18T01:47:25
2021-09-18T01:47:25
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,052
java
package com.migu.tsg.microservice.atomicservice.composite.service.resmgr.payload; import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; /** * 启动服务请求model * Project Name:composite-api * File Name:CompServiceStartResponse.java * Package Name:com.migu.tsg.microservice.atomicservice.composite.service.resMgr.payload * ClassName: CompServiceStartResponse <br/> * date: 2017年9月15日 下午3:35:08 <br/> * 启动服务请求model * @author pengguihua * @version * @since JDK 1.6 */ @Data @JsonInclude(Include.NON_NULL) public class CompServiceStartResponse { private String region_id; private List<Object> mount_points; private String updated_at; private Map<String, Object> update_strategy; private String target_state; private Map<String, Object> instance_envvars; private String service_namespace; private String uuid; private Map<String, Object> linked_to_apps; @JsonProperty("custom_instance_size") private InstanceSize customInstSize; private String subnet_id; @JsonProperty("envfiles") private List<CompositeServiceEnvFile> envfiles; private String entrypoint; private AutoScaleConfig autoscaling_config; private String run_command; private String space_id; private String custom_domain_name; private List<Object> linked_to_services; private List<Object> raw_container_ports; private String healthy_num_instances; private String scaling_mode; private String image_name; private String network_mode; private List<Object> health_checks; private Object linked_from_apps; private List<Object> load_balancers; private String target_num_instances; private String current_num_instances; private List<Map<String, Object>> instances; private String created_at; private String last_autoscale_datetime; private String container_manager; private String current_status; private List<Integer> ports; private List<Object> volumes; private Boolean is_stateful; private String image_tag; private String instance_size; private Boolean mipn_enabled; private String node_tag; private String pod_controller; private String pod_labels; @Data private static class InstanceSize { private float cpu; private int mem; } @Data private static class AutoScaleConfig { private String metric_name; private String metric_stat; private float upper_threshold; private int decrease_delta; private int increase_delta; private int minimum_num_instances; private int maximum_num_instances; private int wait_period; } @Data private static class MountPoint { private String type; private String path; private String value; } }
[ "jiangxuwen7515@163.com" ]
jiangxuwen7515@163.com
bdfd0ee9b6432133c1ae4910e2257e21cf66871d
6204c5e941469541e9cbbd0622693e3c28a6ef2f
/src/test/java/org/training360/finalexam/players/PlayerControllerRestIT.java
48eefdb9106bbaa735d79147a9da3f4d8892069e
[]
no_license
BirkasTivadar/sv2021-jvjbf-zarovizsga
d8e45d40519d4119d654a52ba70ebeb210f64d01
c9abde55c9213bd0f9455a48e12121bfe632dac7
refs/heads/master
2023-07-18T00:53:47.003879
2021-08-15T08:45:41
2021-08-15T08:45:41
394,319,583
0
0
null
null
null
null
UTF-8
Java
false
false
3,248
java
package org.training360.finalexam.players; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.web.client.TestRestTemplate; import org.springframework.core.ParameterizedTypeReference; import org.springframework.http.HttpMethod; import org.springframework.test.context.jdbc.Sql; import org.training360.finalexam.player.CreatePlayerCommand; import org.training360.finalexam.player.PlayerDTO; import org.training360.finalexam.player.PositionType; import org.zalando.problem.Problem; import org.zalando.problem.Status; import java.time.LocalDate; import java.util.List; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.Assertions.assertEquals; @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) @Sql(statements = {"delete from players"}) public class PlayerControllerRestIT { @Autowired TestRestTemplate template; @Test void testAddNewPlayers() { PlayerDTO result = template.postForObject("/api/players", new CreatePlayerCommand("John Doe", LocalDate.of(1991, 11, 10), PositionType.CENTER_BACK), PlayerDTO.class); assertEquals("John Doe", result.getName()); assertEquals(1991, result.getBirthDate().getYear()); assertEquals(PositionType.CENTER_BACK, result.getPosition()); } @Test void testGetPlayers() { template.postForObject("/api/players", new CreatePlayerCommand("John Doe", LocalDate.of(1991, 11, 10), PositionType.CENTER_BACK), PlayerDTO.class); template.postForObject("/api/players", new CreatePlayerCommand("Jack Doe", LocalDate.of(1992, 11, 10), PositionType.RIGHT_WINGER), PlayerDTO.class); List<PlayerDTO> result = template.exchange( "/api/players", HttpMethod.GET, null, new ParameterizedTypeReference<List<PlayerDTO>>() { } ).getBody(); assertThat(result).extracting(PlayerDTO::getName) .containsExactly("John Doe", "Jack Doe"); } @Test void deletePlayerById() { PlayerDTO result = template.postForObject("/api/players", new CreatePlayerCommand("John Doe", LocalDate.of(1991, 11, 10), PositionType.CENTER_BACK), PlayerDTO.class); template.delete("/api/players/{id}", result.getId()); List<PlayerDTO> players = template.exchange( "/api/players", HttpMethod.GET, null, new ParameterizedTypeReference<List<PlayerDTO>>() { } ).getBody(); assertThat(players).isEmpty(); } @Test void testCreatePlayerWithInvalidName() { Problem result = template.postForObject("/api/players", new CreatePlayerCommand("", LocalDate.now(), PositionType.CENTER_BACK), Problem.class); assertEquals(Status.BAD_REQUEST, result.getStatus()); } }
[ "birkastivadar@gmail.com" ]
birkastivadar@gmail.com
740726aeedb1f57e41f74108713a7652b3face7d
57717c95aa1951a3844beb4f0814ce2e99ff8d71
/src/main/Test1.java
3f42d5a395a61811d4288ea6cded5bfbbb4d9770
[]
no_license
happymff/ExampleSwing
536eb81d5e96d7b04288a3163f5325373aac894f
4116db61fa4823aaa479fcd437be056e843d3f39
refs/heads/master
2021-08-07T16:15:35.071975
2017-11-08T14:24:20
2017-11-08T14:24:20
109,925,677
0
0
null
null
null
null
UTF-8
Java
false
false
831
java
package main; import java.awt.*; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; /** * Created by mengfeifei on 2017/11/3. */ public class Test1 { public static void main(String[] args) { Frame f = new Frame("我的窗体"); f.setSize(400, 300); f.setLocation(300, 200); // MyWindowListener1 mw = new MyWindowListener1(); // f.addWindowListener(mw); Button btn = new Button("Exit");//创建按钮组件对象 btn.setLocation(200,100); f.add(btn);//把按钮对象添加到窗口上 //用内部类的方式为按钮组件注册监听器 f.setVisible(true); btn.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent e) { System.exit(0); } }); } }
[ "happymff@126.com" ]
happymff@126.com
a6e142ac5a1c72c9389b873785c00bcb05e86c6b
5c6137c33283e479cb61ad1cf3d5381c528bfbf3
/akka-remote-actors/src/main/java/sample/remote/calculator/LookupApplication.java
f0c8fb5de73632d9e5ff3f4d3db968a09a66f937
[ "CC0-1.0", "LicenseRef-scancode-public-domain", "Apache-2.0" ]
permissive
iproduct/course-social-robotics
4d2ff7e8df701f3d2a009af48c84d160c3dc8bb8
dcdc6f5a947413510a030b9b89639fc804777c0d
refs/heads/master
2023-07-20T13:03:19.623265
2023-06-09T14:50:01
2023-06-09T14:50:01
32,006,612
15
4
NOASSERTION
2023-07-13T07:19:01
2015-03-11T08:31:43
JavaScript
UTF-8
Java
false
false
1,782
java
package sample.remote.calculator; import static java.util.concurrent.TimeUnit.SECONDS; import java.util.Random; import scala.concurrent.duration.Duration; import akka.actor.ActorRef; import akka.actor.ActorSystem; import akka.actor.Props; import com.typesafe.config.ConfigFactory; public class LookupApplication { public static void main(String[] args) { if (args.length == 0 || args[0].equals("Calculator")) startRemoteCalculatorSystem(); if (args.length == 0 || args[0].equals("Lookup")) startRemoteLookupSystem(); } public static void startRemoteCalculatorSystem() { final ActorSystem system = ActorSystem.create("CalculatorSystem", ConfigFactory.load(("calculator"))); system.actorOf(Props.create(CalculatorActor.class), "calculator"); System.out.println("Started CalculatorSystem"); } public static void startRemoteLookupSystem() { final ActorSystem system = ActorSystem.create("LookupSystem", ConfigFactory.load("remotelookup")); final String path = "akka.tcp://CalculatorSystem@127.0.0.1:2552/user/calculator"; final ActorRef actor = system.actorOf( Props.create(LookupActor.class, path), "lookupActor"); System.out.println("Started LookupSystem"); final Random r = new Random(); system.scheduler().schedule(Duration.create(1, SECONDS), Duration.create(1, SECONDS), new Runnable() { @Override public void run() { if (r.nextInt(100) % 2 == 0) { actor.tell(new Op.Add(r.nextInt(100), r.nextInt(100)), null); } else { actor.tell(new Op.Subtract(r.nextInt(100), r.nextInt(100)), null); } } }, system.dispatcher()); } }
[ "office@iproduct.org" ]
office@iproduct.org
e85eac04501ec5df8d3e43ef2697df6c769fee68
d9fc33efba5753357554d22f254c4809cf22f096
/boundless/cn/smssdk/contact/a/k.java
8c79695918e076c4bcf4361993ef385df7fec45a
[]
no_license
cdfx2016/AndroidDecompilePractice
05bab3f564387df6cfe2c726cdb3f877500414f0
1657bc397606b9caadc75bd6d8a5b6db533a1cb5
refs/heads/master
2021-01-22T20:03:00.256531
2017-03-17T06:37:36
2017-03-17T06:37:36
85,275,937
1
0
null
null
null
null
UTF-8
Java
false
false
208
java
package cn.smssdk.contact.a; /* compiled from: Organization */ public class k extends b { public String b() { return b("data1"); } public String c() { return b("data4"); } }
[ "残刀飞雪" ]
残刀飞雪
0da1eb5fb5f5b116939bacf89eb5b8c1b65c291c
e257607436ba2ca4e88654edc9134f7f4baad117
/src/main/java/com/gitchat/netty/chat/client/command/AbstractCommand.java
28e9580f39fb348b3342ee5beaac9e0f42a15727
[]
no_license
geekymv/netty-sample01
6e61b45d167af8ddf7f78b0636bc444717da9045
e4fa53dcb323c85a6638bdcfd5cf4b2e13c40a0e
refs/heads/master
2020-04-04T11:56:31.088232
2018-11-02T19:30:24
2018-11-02T19:30:24
155,908,896
1
0
null
null
null
null
UTF-8
Java
false
false
627
java
package com.gitchat.netty.chat.client.command; import com.gitchat.netty.chat.ChatInfo; import io.netty.channel.Channel; public abstract class AbstractCommand implements Command { private Channel channel; public Channel getChannel() { return channel; } public AbstractCommand(Channel channel) { this.channel = channel; } public abstract ChatInfo.Chat parseInput(String input); @Override public void execute(String input) { ChatInfo.Chat chat = parseInput(input); if(chat == null) { return; } channel.writeAndFlush(chat); } }
[ "ym2011678@foxmail.com" ]
ym2011678@foxmail.com
85efe32969f5e41cb4fdb97337664a4241333a11
ba971ae1ed012b4d6ea80fff19859266bd112962
/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/JdbcIntegrationTest.java
01c0acf0f71052fbf623d33dcfffe6e54fdad96f
[ "Apache-2.0", "EPL-1.0", "MIT", "OFL-1.1", "BSD-3-Clause", "BSD-2-Clause" ]
permissive
HISHOOK/zeppelin
b073b5394990f6cde87ad7db72b5f9eb2ad34778
608aac7a45b5c6dd8f238de797820e8191f4dce9
refs/heads/master
2020-12-28T16:29:48.439016
2020-01-21T07:08:48
2020-01-31T06:14:08
238,405,797
1
0
Apache-2.0
2020-02-05T08:50:43
2020-02-05T08:50:42
null
UTF-8
Java
false
false
4,840
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.zeppelin.integration; import com.google.common.collect.Lists; import org.apache.zeppelin.dep.Dependency; import org.apache.zeppelin.interpreter.Interpreter; import org.apache.zeppelin.interpreter.InterpreterContext; import org.apache.zeppelin.interpreter.InterpreterException; import org.apache.zeppelin.interpreter.InterpreterFactory; import org.apache.zeppelin.interpreter.InterpreterResult; import org.apache.zeppelin.interpreter.InterpreterSetting; import org.apache.zeppelin.interpreter.InterpreterSettingManager; import org.apache.zeppelin.user.AuthenticationInfo; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; import java.io.IOException; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; public class JdbcIntegrationTest { private static MiniZeppelin zeppelin; private static InterpreterFactory interpreterFactory; private static InterpreterSettingManager interpreterSettingManager; @BeforeClass public static void setUp() throws IOException { zeppelin = new MiniZeppelin(); zeppelin.start(); interpreterFactory = zeppelin.getInterpreterFactory(); interpreterSettingManager = zeppelin.getInterpreterSettingManager(); } @AfterClass public static void tearDown() throws IOException { if (zeppelin != null) { zeppelin.stop(); } } @Test public void testMySql() throws InterpreterException, InterruptedException { InterpreterSetting interpreterSetting = interpreterSettingManager.getInterpreterSettingByName("jdbc"); interpreterSetting.setProperty("default.driver", "com.mysql.jdbc.Driver"); interpreterSetting.setProperty("default.url", "jdbc:mysql://localhost:3306/"); interpreterSetting.setProperty("default.user", "root"); Dependency dependency = new Dependency("mysql:mysql-connector-java:5.1.46"); interpreterSetting.setDependencies(Lists.newArrayList(dependency)); interpreterSettingManager.restart(interpreterSetting.getId()); interpreterSetting.waitForReady(60 * 1000); Interpreter jdbcInterpreter = interpreterFactory.getInterpreter("user1", "note1", "jdbc", "test"); assertNotNull("JdbcInterpreter is null", jdbcInterpreter); InterpreterContext context = new InterpreterContext.Builder() .setNoteId("note1") .setParagraphId("paragraph_1") .setAuthenticationInfo(AuthenticationInfo.ANONYMOUS) .build(); InterpreterResult interpreterResult = jdbcInterpreter.interpret("show databases;", context); assertEquals(interpreterResult.toString(), InterpreterResult.Code.SUCCESS, interpreterResult.code()); context.getLocalProperties().put("saveAs", "table_1"); interpreterResult = jdbcInterpreter.interpret("SELECT 1 as c1, 2 as c2;", context); assertEquals(interpreterResult.toString(), InterpreterResult.Code.SUCCESS, interpreterResult.code()); assertEquals(1, interpreterResult.message().size()); assertEquals(InterpreterResult.Type.TABLE, interpreterResult.message().get(0).getType()); assertEquals("c1\tc2\n1\t2\n", interpreterResult.message().get(0).getData()); // read table_1 from python interpreter Interpreter pythonInterpreter = interpreterFactory.getInterpreter("user1", "note1", "python", "test"); assertNotNull("PythonInterpreter is null", pythonInterpreter); context = new InterpreterContext.Builder() .setNoteId("note1") .setParagraphId("paragraph_1") .setAuthenticationInfo(AuthenticationInfo.ANONYMOUS) .build(); interpreterResult = pythonInterpreter.interpret("df=z.getAsDataFrame('table_1')\nz.show(df)", context); assertEquals(interpreterResult.toString(), InterpreterResult.Code.SUCCESS, interpreterResult.code()); assertEquals(1, interpreterResult.message().size()); assertEquals(InterpreterResult.Type.TABLE, interpreterResult.message().get(0).getType()); assertEquals("c1\tc2\n1\t2\n", interpreterResult.message().get(0).getData()); } }
[ "zjffdu@apache.org" ]
zjffdu@apache.org
052a053e19dfca96bc478321cb027d3efcffe9f9
9cbcb0aaf2bd513d3482bf6c7efcee72f907d0ef
/store/src/java/com/zimbra/qa/unittest/TestItemCache.java
8b89cc153ee3c483dd65339acf43af605e3ec72e
[]
no_license
PriteshGajjar008/zm-mailbox
8e0654c5f60bcdc508726d2ce1482fb4545d148f
76031e52ef9b68eb38ecc9465201aff01a1967ae
refs/heads/master
2021-01-20T04:25:32.937370
2017-04-14T08:11:40
2017-04-14T08:11:40
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,341
java
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Server * Copyright (C) 2005, 2006, 2007, 2009, 2010, 2013, 2014, 2016 Synacor, Inc. * * 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, * version 2 of the License. * * 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 <https://www.gnu.org/licenses/>. * ***** END LICENSE BLOCK ***** */ package com.zimbra.qa.unittest; import java.util.List; import junit.framework.TestCase; import com.zimbra.cs.account.Account; import com.zimbra.cs.mailbox.MailItem; import com.zimbra.cs.mailbox.Mailbox; import com.zimbra.cs.mailbox.MailboxManager; import com.zimbra.cs.mailbox.Message; import com.zimbra.cs.stats.ZimbraPerf; import com.zimbra.common.util.ZimbraLog; /** * @author bburtin */ public class TestItemCache extends TestCase { private Mailbox mMbox; private Account mAccount; @Override protected void setUp() throws Exception { ZimbraLog.test.debug("TestTags.setUp()"); super.setUp(); mAccount = TestUtil.getAccount("user1"); mMbox = MailboxManager.getInstance().getMailboxByAccount(mAccount); } /** * Re-gets the same message 10 times and makes sure we don't hit the database. */ public void testCacheHit() throws Exception { ZimbraLog.test.debug("testCacheHit"); List<MailItem> messages = mMbox.getItemList(null, MailItem.Type.MESSAGE); assertTrue("No messages found", messages.size() > 0); Message msg = (Message) messages.get(0); mMbox.getItemById(null, msg.getId(), msg.getType()); int prepareCount = ZimbraPerf.getPrepareCount(); for (int i = 1; i <= 10; i++) { mMbox.getItemById(null, msg.getId(), msg.getType()); } prepareCount = ZimbraPerf.getPrepareCount() - prepareCount; assertEquals("Detected unexpected SQL statements.", 0, prepareCount); } }
[ "shriram.vishwanathan@synacor.com" ]
shriram.vishwanathan@synacor.com
96237e351203e02f0fc8ef1714546c909de9b152
fa51687f6aa32d57a9f5f4efc6dcfda2806f244d
/jdk8-src/src/main/java/com/sun/org/apache/bcel/internal/classfile/ConstantInteger.java
2e7bdaf955552c6b1e8cc4247224d8eca3d632da
[]
no_license
yida-lxw/jdk8
44bad6ccd2d81099bea11433c8f2a0fc2e589eaa
9f69e5f33eb5ab32e385301b210db1e49e919aac
refs/heads/master
2022-12-29T23:56:32.001512
2020-04-27T04:14:10
2020-04-27T04:14:10
258,988,898
0
1
null
2020-10-13T21:32:05
2020-04-26T09:21:22
Java
UTF-8
Java
false
false
5,092
java
/* * Copyright (c) 2007, 2019, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package com.sun.org.apache.bcel.internal.classfile; /* ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2001 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Apache" and "Apache Software Foundation" and * "Apache BCEL" must not be used to endorse or promote products * derived from this software without prior written permission. For * written permission, please contact apache@apache.org. * * 5. Products derived from this software may not be called "Apache", * "Apache BCEL", nor may "Apache" appear in their name, without * prior written permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 APACHE SOFTWARE FOUNDATION OR * ITS 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. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ import com.sun.org.apache.bcel.internal.Constants; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; /** * This class is derived from the abstract * <A HREF="com.sun.org.apache.bcel.internal.classfile.Constant.html">Constant</A> class * and represents a reference to an int object. * * @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A> * @see Constant */ public final class ConstantInteger extends Constant implements ConstantObject { private int bytes; /** * @param bytes Data */ public ConstantInteger(int bytes) { super(Constants.CONSTANT_Integer); this.bytes = bytes; } /** * Initialize from another object. */ public ConstantInteger(ConstantInteger c) { this(c.getBytes()); } /** * Initialize instance from file data. * * @param file Input stream * @throws IOException */ ConstantInteger(DataInputStream file) throws IOException { this(file.readInt()); } /** * Called by objects that are traversing the nodes of the tree implicitely * defined by the contents of a Java class. I.e., the hierarchy of methods, * fields, attributes, etc. spawns a tree of objects. * * @param v Visitor object */ public void accept(Visitor v) { v.visitConstantInteger(this); } /** * Dump constant integer to file stream in binary format. * * @param file Output file stream * @throws IOException */ public final void dump(DataOutputStream file) throws IOException { file.writeByte(tag); file.writeInt(bytes); } /** * @return data, i.e., 4 bytes. */ public final int getBytes() { return bytes; } /** * @param bytes. */ public final void setBytes(int bytes) { this.bytes = bytes; } /** * @return String representation. */ public final String toString() { return super.toString() + "(bytes = " + bytes + ")"; } /** * @return Integer object */ public Object getConstantValue(ConstantPool cp) { return new Integer(bytes); } }
[ "yida@caibeike.com" ]
yida@caibeike.com
b7669564a4fed13a12c2e6923fa40460fc69d0e5
d3a5e1c405425e8b05e516efc0beeb48ec52c05d
/src/main/java/cz/vut/sf/ctp/Simulator.java
95ba16651ab956dbf2fcdf47e7acc5f2dcf552ca
[]
no_license
SebastianFilip/ctp
6b0e4ceaf53adbdd301b0b220fa2b8eaa7186f70
8e8a0729be36cee8aee42d29e621113037c07870
refs/heads/master
2020-05-29T14:24:40.961600
2017-10-31T20:41:11
2017-10-31T20:41:11
82,598,207
0
0
null
null
null
null
UTF-8
Java
false
false
1,956
java
package cz.vut.sf.ctp; import java.util.List; import cz.vut.sf.graph.StochasticWeightedGraph; import cz.vut.sf.graph.Vertex; import cz.vut.sf.gui.LoggerClass; //holds copies of agent and moves them towards to specified vtx public class Simulator extends LoggerClass{ public Agent agent; public final Vertex startingVtx; public double totalCost = 0; public int totalIterations = 0; public Simulator(Vertex currentVtx, Vertex startingVtx, StochasticWeightedGraph graph){ this.agent = new Agent(currentVtx); this.startingVtx = startingVtx; this.agent.traverseToAdjancetVtx(graph, this.startingVtx); } public Simulator(Vertex startingVtx){ this.agent = new Agent(startingVtx); this.startingVtx = startingVtx; } @Override public String toString(){ return "average cost for Vtx [" + startingVtx +"] is : "+ totalCost/totalIterations; } public static Vertex getBestAction(List<Simulator> simulators) { Vertex result = null; double expectedMinCost = Double.MAX_VALUE; for(int i = 0; i < simulators.size(); i++){ LOG.debug("average cost for Vtx [" + simulators.get(i).startingVtx +"] is : "+ simulators.get(i).totalCost/simulators.get(i).totalIterations); double averageCost = simulators.get(i).totalCost/simulators.get(i).totalIterations; if(averageCost < expectedMinCost){ expectedMinCost = averageCost; result = simulators.get(i).startingVtx; } } return result; } public static int getBestActionIndex(List<Simulator> simulators) { int result = 0; double expectedMinCost = Double.MAX_VALUE; for(int i = 0; i < simulators.size(); i++){ LOG.debug("average cost for Vtx [" + simulators.get(i).startingVtx +"] is : "+ simulators.get(i).totalCost/simulators.get(i).totalIterations); double averageCost = simulators.get(i).totalCost/simulators.get(i).totalIterations; if(averageCost < expectedMinCost){ expectedMinCost = averageCost; result = i; } } return result; } }
[ "you@example.com" ]
you@example.com
acbab8474701106f4031e8ecff89bc7f5d56599a
1a01f79f50066c6faf3718b541bd7c7c5fa63f1f
/minecraft_server/pixelmon/battles/attacks/statusEffects/WaitAfter.java
9c5c5535c1a0caabdd058d718a5a1b37b7dd5d48
[]
no_license
Tashafi/Pixelmon
01a799d470ab4e105538e5df3f91ca582e8ed91c
9b3c8858fc2d3b9db4a621ebffc1b6fc0565776e
refs/heads/master
2020-04-07T19:08:40.778999
2012-07-29T04:37:06
2012-07-29T04:37:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,280
java
package pixelmon.battles.attacks.statusEffects; import java.util.ArrayList; import pixelmon.battles.attacks.Attack; import pixelmon.battles.attacks.specialAttacks.SpecialAttackType; import pixelmon.comm.ChatHandler; import pixelmon.entities.pixelmon.helpers.PixelmonEntityHelper; import net.minecraft.src.ModLoader; public class WaitAfter extends StatusEffectBase { private int numTurns; private int turnCount; public WaitAfter(int value) { super(StatusEffectType.WaitAfter, false, true, false); numTurns = value; } @Override public void ApplyEffect(PixelmonEntityHelper user, PixelmonEntityHelper target, ArrayList<String> attackList) { turnCount = 0; user.status.add(this); } @Override public boolean canAttackThisTurn(PixelmonEntityHelper user, PixelmonEntityHelper target) { ChatHandler.sendChat(user.getOwner(), target.getOwner(), user.getName()+ " is recharging!"); return false; } @Override public double adjustDamage(Attack a, double damage, PixelmonEntityHelper user, PixelmonEntityHelper target, double crit) { return 0; } @Override public void turnTick(PixelmonEntityHelper user, PixelmonEntityHelper target) { turnCount++; if (turnCount == numTurns) user.status.remove(this); } }
[ "malc.geddes@gmail.com" ]
malc.geddes@gmail.com
1a309b42df9eb1cea072e59c15832213c1e7a9d7
ef71494fef6618b48cfbcce2904dfd74b12a8948
/icloud-common/framework-dict/src/main/java/com/icloud/framework/core/dict/PayDetailPayState.java
84050e89854fdfa1e63e082da46423609717e070
[]
no_license
djgrasss/icloud-2
128d8ba977afc1787f280c9b524d1704035476d7
796c0b53af2c05e82ef68f8c140a726e19a0e1ce
refs/heads/master
2021-01-21T23:58:10.983738
2014-09-03T01:41:55
2014-09-03T01:41:55
23,603,476
1
1
null
null
null
null
UTF-8
Java
false
false
250
java
/** * * Description: * Copyright (c) 2013 * Company:真旅网 * @author renshui * @version 1.0 * @date 2013-5-27 */ package com.icloud.framework.core.dict; public enum PayDetailPayState { success, fail, pending, init, cancel, paying }
[ "jiangning.cui2@travelzen.com" ]
jiangning.cui2@travelzen.com
3062ca1031479cc84c771ccd7e9899e90afdba5b
447520f40e82a060368a0802a391697bc00be96f
/apks/malware/app52/source/com/a/a/b/u.java
74389b1ad2b4b36306349b2857d8b514a4834fc8
[ "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
660
java
package com.a.a.b; import android.graphics.Bitmap; import android.os.Handler; import com.a.a.b.a.g; import com.a.a.b.g.a; import com.a.a.c.e; final class u implements Runnable { private final m a; private final Bitmap b; private final o c; private final Handler d; public u(m paramM, Bitmap paramBitmap, o paramO, Handler paramHandler) { this.a = paramM; this.b = paramBitmap; this.c = paramO; this.d = paramHandler; } public void run() { e.a("PostProcess image before displaying [%s]", new Object[] { this.c.b }); p.a(new c(this.c.e.p().a(this.b), this.c, this.a, g.c), this.c.e.s(), this.d, this.a); } }
[ "antal.micky@yahoo.com" ]
antal.micky@yahoo.com
49fce3a4752c982e79f6a9d16aa19e8ce3c0a4bf
0f3ed9284555658859aa7e4f8ea07134f780b701
/app/src/main/java/com/tongming/manga/mvp/view/adapter/PageAdapter.java
46520d370bc51b8d9e662ff087d6927c57f064e4
[ "MIT" ]
permissive
1559727195/Manga-master
529372cb86a0825a3bd39a83ee2dd513f19707b8
467d516be5749c6b20b4ae2317b8b5e016fb0278
refs/heads/master
2020-04-06T14:02:04.682277
2018-11-14T09:37:08
2018-11-14T09:37:08
157,525,126
0
0
null
null
null
null
UTF-8
Java
false
false
4,157
java
package com.tongming.manga.mvp.view.adapter; import android.app.Activity; import android.content.Context; import android.graphics.Bitmap; import android.support.v7.widget.RecyclerView; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.RelativeLayout; import com.bumptech.glide.Glide; import com.bumptech.glide.load.engine.DiskCacheStrategy; import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool; import com.bumptech.glide.load.model.GlideUrl; import com.bumptech.glide.load.model.LazyHeaders; import com.bumptech.glide.load.resource.bitmap.BitmapTransformation; import com.tongming.manga.R; import com.tongming.manga.mvp.api.ApiManager; import com.tongming.manga.util.CommonUtil; import com.tongming.manga.util.HeaderGlide; import java.io.File; import java.util.List; import butterknife.BindView; import butterknife.ButterKnife; /** * Created by Tongming on 2016/8/11. */ public class PageAdapter extends RecyclerView.Adapter<PageAdapter.PageHolder> { private List<String> picList; private File[] fileList; private Context mContext; private int height; private int width; private String SOURCE_URL; public static final int NET_IMAGE_FLAG = 0xff; public static final int LOCAL_IMAGE_FLAG = 0xee; public PageAdapter(List<String> picList, Context mContext, String source) { this.picList = picList; this.mContext = mContext; if (source.equals(ApiManager.SOURCE_DMZJ)) { SOURCE_URL = HeaderGlide.URL_DMZJ; } else if (source.equals(ApiManager.SOURCE_IKAN)) { SOURCE_URL = HeaderGlide.URL_IKAN; } getWH(); } private void getWH() { height = CommonUtil.getDeviceHeight((Activity) mContext); width = CommonUtil.getDeviceWidth((Activity) mContext); } @Override public PageAdapter.PageHolder onCreateViewHolder(ViewGroup parent, int viewType) { View view = View.inflate(mContext, R.layout.item_page, null); return new PageHolder(view); } @Override public void onBindViewHolder(final PageAdapter.PageHolder holder, final int position) { // scaleImageView(1.78f, holder); Object temp = null; String url = picList.get(position); if (url.contains("http")) { temp = new GlideUrl(url, new LazyHeaders.Builder() .addHeader(HeaderGlide.REFERER, SOURCE_URL) .build()); } else { temp = new File(url); } Glide.with(mContext) .load(temp) .dontAnimate() .placeholder(R.color.gray) .diskCacheStrategy(DiskCacheStrategy.ALL) .fitCenter() // .bitmapTransform(new BitmapTransformation(mContext) { // @Override // protected Bitmap transform(BitmapPool pool, Bitmap toTransform, int outWidth, int outHeight) { // float scale = (float) toTransform.getHeight() / (float) toTransform.getWidth(); // scaleImageView(scale, holder); // return toTransform; // } // @Override // public String getId() { // return PageAdapter.class.getSimpleName(); // } // }) .into(holder.ivPage); } @Override public int getItemCount() { return picList.size(); } /** * 卷轴模式进行缩放,左右模式不缩放,并使用fitCenter */ private void scaleImageView(float scale, PageAdapter.PageHolder holder) { RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) holder.ivPage.getLayoutParams(); params.height = (int) (width * scale); params.width = width; } class PageHolder extends RecyclerView.ViewHolder { @BindView(R.id.iv_page) ImageView ivPage; PageHolder(View itemView) { super(itemView); ButterKnife.bind(this, itemView); } } }
[ "zhu@gmail.com" ]
zhu@gmail.com
4075ef705a56aba03ea008f39246a0d92c4f2fae
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/java/neo4j/2018/4/TransactionCursor.java
6a99c5556e18bb9dd8cd640e5e2740f90cac1a03
[]
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
1,389
java
/* * Copyright (c) 2002-2018 "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.impl.transaction.log; import org.neo4j.cursor.IOCursor; import org.neo4j.kernel.impl.transaction.CommittedTransactionRepresentation; /** * {@link IOCursor} over {@link CommittedTransactionRepresentation} i.e. already committed transactions. */ public interface TransactionCursor extends IOCursor<CommittedTransactionRepresentation> { /** * @return {@link LogPosition} representing position after most recent transaction, i.e. after * transaction read from most recent {@link #next()} (which returned true) call. */ LogPosition position(); }
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
2dabac10214b499484befaa37f02e5814854ab9b
e5f296107e6a346c8653e8de489af8f261d74907
/saga/src/test/java/com/iluwatar/saga/myorchestration/MySagaApplicationTest.java
47f03c54081050128f61778772d7529d7a94baab
[ "MIT" ]
permissive
guilherme-alves-silve/java-design-patterns
e4de90a5b2a1cf37bf7a318835324e13c6c89524
b183a7fee69d55eccb945553ea341f2e06aa5656
refs/heads/master
2021-06-14T10:52:14.481771
2021-05-01T19:15:16
2021-05-01T19:15:16
277,318,982
1
0
NOASSERTION
2020-07-05T14:31:53
2020-07-05T14:31:52
null
UTF-8
Java
false
false
1,357
java
/* * The MIT License * Copyright © 2014-2019 Ilkka Seppälä * * 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.iluwatar.saga.myorchestration; import org.junit.Test; /** * empty test */ public class MySagaApplicationTest { @Test public void mainTest() { MySagaApplication.main(new String[]{}); } }
[ "guilherme_alves_silve@hotmail.com" ]
guilherme_alves_silve@hotmail.com
da756adaa952d31acdc364714cbe6174d538c952
273ff5450f73f064ad00928d18321d9b6b0be894
/src/main/java/com/baimawanglang/juc/ConditionTester.java
393be2b9a8bd2c59279f9ba2b4c4609ee22edcea
[]
no_license
warmingstream/datastructure
63eb3e63d8293dc74cd7f034c6c90d98475533de
ae8243a59de33b8876a637ee537ce53100e5d72f
refs/heads/master
2022-05-01T20:57:37.235672
2022-04-17T14:01:40
2022-04-17T14:01:40
127,387,894
0
0
null
null
null
null
UTF-8
Java
false
false
516
java
package com.baimawanglang.juc; import java.util.HashMap; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; public class ConditionTester { public static void main(String[] args) { Map<String, String> params = new ConcurrentHashMap<String, String>(); params.put("1", ""); params.put("2", ""); params.put("3", ""); params.put("4", ""); params.put("5", ""); params.put("5", ""); params.put("5", ""); params.put("5", ""); } }
[ "admin" ]
admin
c97f4f4e331bf7ac515a737e3ead1bd70055b810
5aa586fb3c6d1c5350af10e857f31a3daed9b970
/AC-Game/src/com/aionemu/gameserver/model/summons/SummonMode.java
e13897368f201a02eff0db8e4d12998ed85e3df4
[]
no_license
JohannesPfau/aion48
c1b77a46b6f98759e3704507fd48a47c5da48021
ebed1fc243fa85ee56a2af49d84a6d6dcca6c027
refs/heads/master
2020-03-18T01:15:05.566820
2018-05-16T20:40:16
2018-05-16T20:40:16
134,134,369
0
1
null
null
null
null
UTF-8
Java
false
false
1,697
java
/** * This file is part of Aion-Lightning <aion-lightning.org>. * * Aion-Lightning is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Aion-Lightning is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * * You should have received a copy of the GNU General Public License * along with Aion-Lightning. * If not, see <http://www.gnu.org/licenses/>. * * * Credits goes to all Open Source Core Developer Groups listed below * Please do not change here something, ragarding the developer credits, except the "developed by XXXX". * Even if you edit a lot of files in this source, you still have no rights to call it as "your Core". * Everybody knows that this Emulator Core was developed by Aion Lightning * @-Aion-Lightning * @Goong_ADM */ package com.aionemu.gameserver.model.summons; /** * @author xTz */ public enum SummonMode { ATTACK(0), GUARD(1), REST(2), RELEASE(3), UNK(5); private int id; private SummonMode(int id) { this.id = id; } /** * @return the id */ public int getId() { return id; } public static SummonMode getSummonModeById(int id) { for (SummonMode mode : values()) { if (mode.getId() == id) { return mode; } } return null; } }
[ "aion@gmx-topmail.de" ]
aion@gmx-topmail.de
e4e844457d2aa18f2d6eca0790f704b8acb58e53
aedd4a32c28a1ee1fcaa644bde2f01b66de5560f
/spring-web/src/test/java/org/springframework/web/method/annotation/RequestParamMapMethodArgumentResolverTests.java
d77bc9cf376176726cfb7559261b940f241693dd
[ "Apache-2.0" ]
permissive
jmgx001/spring-framework-4.3.x
262bc09fe914f2df7d75bd376aa46cb326d0abe0
5051c9f0d1de5c5ce962e55e3259cc5e1116e9d6
refs/heads/master
2023-07-13T11:18:35.673302
2021-08-12T15:59:07
2021-08-12T15:59:07
395,353,329
0
0
null
null
null
null
UTF-8
Java
false
false
3,982
java
/* * Copyright 2002-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.web.method.annotation; import java.lang.reflect.Method; import java.util.Collections; import java.util.Map; import org.junit.Before; import org.junit.Test; import org.springframework.core.MethodParameter; import org.springframework.core.annotation.SynthesizingMethodParameter; import org.springframework.mock.web.test.MockHttpServletRequest; import org.springframework.mock.web.test.MockHttpServletResponse; import org.springframework.util.LinkedMultiValueMap; import org.springframework.util.MultiValueMap; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.context.request.ServletWebRequest; import static org.junit.Assert.*; /** * Test fixture with {@link RequestParamMapMethodArgumentResolver}. * * @author Arjen Poutsma * @author Rossen Stoyanchev */ public class RequestParamMapMethodArgumentResolverTests { private RequestParamMapMethodArgumentResolver resolver; private MethodParameter paramMap; private MethodParameter paramMultiValueMap; private MethodParameter paramNamedMap; private MethodParameter paramMapWithoutAnnot; private NativeWebRequest webRequest; private MockHttpServletRequest request; @Before public void setup() throws Exception { resolver = new RequestParamMapMethodArgumentResolver(); Method method = getClass().getMethod("handle", Map.class, MultiValueMap.class, Map.class, Map.class); paramMap = new SynthesizingMethodParameter(method, 0); paramMultiValueMap = new SynthesizingMethodParameter(method, 1); paramNamedMap = new SynthesizingMethodParameter(method, 2); paramMapWithoutAnnot = new SynthesizingMethodParameter(method, 3); request = new MockHttpServletRequest(); webRequest = new ServletWebRequest(request, new MockHttpServletResponse()); } @Test public void supportsParameter() { assertTrue("Map parameter not supported", resolver.supportsParameter(paramMap)); assertTrue("MultiValueMap parameter not supported", resolver.supportsParameter(paramMultiValueMap)); assertFalse("Map with name supported", resolver.supportsParameter(paramNamedMap)); assertFalse("non-@RequestParam map supported", resolver.supportsParameter(paramMapWithoutAnnot)); } @Test public void resolveMapArgument() throws Exception { String name = "foo"; String value = "bar"; request.addParameter(name, value); Map<String, String> expected = Collections.singletonMap(name, value); Object result = resolver.resolveArgument(paramMap, null, webRequest, null); assertTrue(result instanceof Map); assertEquals("Invalid result", expected, result); } @Test public void resolveMultiValueMapArgument() throws Exception { String name = "foo"; String value1 = "bar"; String value2 = "baz"; request.addParameter(name, value1, value2); MultiValueMap<String, String> expected = new LinkedMultiValueMap<>(1); expected.add(name, value1); expected.add(name, value2); Object result = resolver.resolveArgument(paramMultiValueMap, null, webRequest, null); assertTrue(result instanceof MultiValueMap); assertEquals("Invalid result", expected, result); } public void handle( @RequestParam Map<?, ?> param1, @RequestParam MultiValueMap<?, ?> param2, @RequestParam("name") Map<?, ?> param3, Map<?, ?> param4) { } }
[ "1119459519@qq.com" ]
1119459519@qq.com
b26ebca68096e802683ebf580f95f674c206c4e4
77fb90c41fd2844cc4350400d786df99e14fa4ca
/org/spongycastle/jcajce/PKIXCertStoreSelector.java
315d0024d8101d5a80f0f05e66c1ae7eee33167c
[]
no_license
highnes7/umaang_decompiled
341193b25351188d69b4413ebe7f0cde6525c8fb
bcfd90dffe81db012599278928cdcc6207632c56
refs/heads/master
2020-06-19T07:47:18.630455
2019-07-12T17:16:13
2019-07-12T17:16:13
196,615,053
0
0
null
null
null
null
UTF-8
Java
false
false
3,919
java
package org.spongycastle.jcajce; import f.sufficientlysecure.rootcommands.util.StringBuilder; import java.io.IOException; import java.security.cert.CertSelector; import java.security.cert.CertStore; import java.security.cert.CertStoreException; import java.security.cert.Certificate; import java.security.cert.X509CertSelector; import java.util.Collection; import org.spongycastle.util.Selector; public class PKIXCertStoreSelector<T extends Certificate> implements Selector<T> { public final CertSelector baseSelector; public PKIXCertStoreSelector(CertSelector paramCertSelector) { baseSelector = paramCertSelector; } public static Collection getCertificates(PKIXCertStoreSelector paramPKIXCertStoreSelector, CertStore paramCertStore) throws CertStoreException { return paramCertStore.getCertificates(new SelectorClone(paramPKIXCertStoreSelector)); } public Object clone() { return new PKIXCertStoreSelector(baseSelector); } public boolean match(Certificate paramCertificate) { return baseSelector.match(paramCertificate); } public static class Builder { public final CertSelector baseSelector; public Builder(CertSelector paramCertSelector) { baseSelector = ((CertSelector)paramCertSelector.clone()); } public PKIXCertStoreSelector build() { return new PKIXCertStoreSelector(baseSelector, null); } } private static class SelectorClone extends X509CertSelector { public final PKIXCertStoreSelector selector; public SelectorClone(PKIXCertStoreSelector paramPKIXCertStoreSelector) { selector = paramPKIXCertStoreSelector; if ((PKIXCertStoreSelector.access$100(paramPKIXCertStoreSelector) instanceof X509CertSelector)) { paramPKIXCertStoreSelector = (X509CertSelector)PKIXCertStoreSelector.access$100(paramPKIXCertStoreSelector); setAuthorityKeyIdentifier(paramPKIXCertStoreSelector.getAuthorityKeyIdentifier()); setBasicConstraints(paramPKIXCertStoreSelector.getBasicConstraints()); setCertificate(paramPKIXCertStoreSelector.getCertificate()); setCertificateValid(paramPKIXCertStoreSelector.getCertificateValid()); setKeyUsage(paramPKIXCertStoreSelector.getKeyUsage()); setMatchAllSubjectAltNames(paramPKIXCertStoreSelector.getMatchAllSubjectAltNames()); setPrivateKeyValid(paramPKIXCertStoreSelector.getPrivateKeyValid()); setSerialNumber(paramPKIXCertStoreSelector.getSerialNumber()); setSubjectKeyIdentifier(paramPKIXCertStoreSelector.getSubjectKeyIdentifier()); setSubjectPublicKey(paramPKIXCertStoreSelector.getSubjectPublicKey()); try { setExtendedKeyUsage(paramPKIXCertStoreSelector.getExtendedKeyUsage()); setIssuer(paramPKIXCertStoreSelector.getIssuerAsBytes()); setNameConstraints(paramPKIXCertStoreSelector.getNameConstraints()); setPathToNames(paramPKIXCertStoreSelector.getPathToNames()); setPolicy(paramPKIXCertStoreSelector.getPolicy()); setSubject(paramPKIXCertStoreSelector.getSubjectAsBytes()); setSubjectAlternativeNames(paramPKIXCertStoreSelector.getSubjectAlternativeNames()); setSubjectPublicKeyAlgID(paramPKIXCertStoreSelector.getSubjectPublicKeyAlgID()); return; } catch (IOException paramPKIXCertStoreSelector) { throw new IllegalStateException(StringBuilder.get(paramPKIXCertStoreSelector, StringBuilder.append("base selector invalid: ")), paramPKIXCertStoreSelector); } } } public boolean match(Certificate paramCertificate) { PKIXCertStoreSelector localPKIXCertStoreSelector = selector; if (localPKIXCertStoreSelector == null) { return paramCertificate != null; } return localPKIXCertStoreSelector.match(paramCertificate); } } }
[ "highnes.7@gmail.com" ]
highnes.7@gmail.com