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
f562d116073f52bd8a065a453bc5a8205164821f
04af5021393f2999a0052d22d6f5d2e573e39fc1
/server/implementation/src/main/java/io/smallrye/graphql/execution/datafetcher/helper/BatchLoaderHelper.java
fdb045bdbbe72ecef97e20e25dd083fae531a029
[ "Apache-2.0" ]
permissive
ybroeker/smallrye-graphql
a329ad1f659bbcd9ec4080d9eeb97feffd04a436
4b066a758e4bd8b6ca5c84501f76f5eaa099ae9b
refs/heads/main
2023-03-20T01:13:38.148262
2022-08-24T06:49:09
2022-08-24T11:05:25
252,236,230
0
0
Apache-2.0
2023-03-10T13:09:17
2020-04-01T16:59:28
Java
UTF-8
Java
false
false
1,856
java
package io.smallrye.graphql.execution.datafetcher.helper; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.dataloader.BatchLoaderEnvironment; import graphql.schema.DataFetchingEnvironment; import io.smallrye.graphql.schema.model.Operation; /** * Helping with BatchLoaders * * @author Phillip Kruger (phillip.kruger@redhat.com) */ public class BatchLoaderHelper { public static final String ARGUMENTS = "arguments"; public static final String DATA_FETCHING_ENVIRONMENT = "dataFetchingEnvironment"; public String getName(Operation operation) { return operation.getSourceFieldOn().getName() + "_" + operation.getName(); } public <K> Map<String, Object> getBatchContext(List<K> keys, BatchLoaderEnvironment ble) { Map<String, Object> batchContext = new HashMap<>(); List<Object> keyContextsList = ble.getKeyContextsList(); List<Object> finalArguments = new ArrayList<>(); finalArguments.add(keys); if (keyContextsList != null && !keyContextsList.isEmpty()) { Map<String, Object> keyContexts = (Map<String, Object>) keyContextsList.get(0); List<Object> otherarguments = (List<Object>) keyContexts.get(ARGUMENTS); finalArguments.addAll(otherarguments); batchContext.putAll(keyContexts); batchContext.put(ARGUMENTS, finalArguments); } return batchContext; } public Object[] getArguments(Map<String, Object> batchContext) { List<Object> arguments = (List<Object>) batchContext.get(ARGUMENTS); return arguments.toArray(); } public DataFetchingEnvironment getDataFetchingEnvironment(Map<String, Object> batchContext) { return (DataFetchingEnvironment) batchContext.get(DATA_FETCHING_ENVIRONMENT); } }
[ "phillip.kruger@gmail.com" ]
phillip.kruger@gmail.com
47e5a60257b9aab964d4bb8b47155d64dcaabf80
231a828518021345de448c47c31f3b4c11333d0e
/src/pdf/bouncycastle/asn1/x509/PrivateKeyUsagePeriod.java
d73f6e04edaed2ec1d07f9efda64ed399cd0d02c
[]
no_license
Dynamit88/PDFBox-Java
f39b96b25f85271efbb3a9135cf6a15591dec678
480a576bc97fc52299e1e869bb80a1aeade67502
refs/heads/master
2020-05-24T14:58:29.287880
2019-05-18T04:25:21
2019-05-18T04:25:21
187,312,933
0
0
null
null
null
null
UTF-8
Java
false
false
2,147
java
package pdf.bouncycastle.asn1.x509; import java.util.Enumeration; import pdf.bouncycastle.asn1.ASN1EncodableVector; import pdf.bouncycastle.asn1.ASN1GeneralizedTime; import pdf.bouncycastle.asn1.ASN1Object; import pdf.bouncycastle.asn1.ASN1Primitive; import pdf.bouncycastle.asn1.ASN1Sequence; import pdf.bouncycastle.asn1.ASN1TaggedObject; import pdf.bouncycastle.asn1.DERSequence; import pdf.bouncycastle.asn1.DERTaggedObject; /** * <pre> * PrivateKeyUsagePeriod ::= SEQUENCE { * notBefore [0] GeneralizedTime OPTIONAL, * notAfter [1] GeneralizedTime OPTIONAL } * </pre> */ public class PrivateKeyUsagePeriod extends ASN1Object { public static PrivateKeyUsagePeriod getInstance(Object obj) { if (obj instanceof PrivateKeyUsagePeriod) { return (PrivateKeyUsagePeriod)obj; } if (obj != null) { return new PrivateKeyUsagePeriod(ASN1Sequence.getInstance(obj)); } return null; } private ASN1GeneralizedTime _notBefore, _notAfter; private PrivateKeyUsagePeriod(ASN1Sequence seq) { Enumeration en = seq.getObjects(); while (en.hasMoreElements()) { ASN1TaggedObject tObj = (ASN1TaggedObject)en.nextElement(); if (tObj.getTagNo() == 0) { _notBefore = ASN1GeneralizedTime.getInstance(tObj, false); } else if (tObj.getTagNo() == 1) { _notAfter = ASN1GeneralizedTime.getInstance(tObj, false); } } } public ASN1GeneralizedTime getNotBefore() { return _notBefore; } public ASN1GeneralizedTime getNotAfter() { return _notAfter; } public ASN1Primitive toASN1Primitive() { ASN1EncodableVector v = new ASN1EncodableVector(); if (_notBefore != null) { v.add(new DERTaggedObject(false, 0, _notBefore)); } if (_notAfter != null) { v.add(new DERTaggedObject(false, 1, _notAfter)); } return new DERSequence(v); } }
[ "vtuse@mail.ru" ]
vtuse@mail.ru
994cd627b33ae375dcee2b292273721c6a88d352
471e6b055d50812fc5fd33972aa7929575cde990
/pki_microservice/PkiMicroservice/src/main/java/com/rmj/PkiMicroservice/model/FtpApplication.java
a8d996fe7895d6c619fb800916866be30138884e
[]
no_license
jovosunjka/PaymentConcentrator
a238e937e89d30e8b32919f4ac165ad960b5a61b
b0856f428c582e9e95b67d47795c011ee9baf808
refs/heads/master
2023-01-24T08:35:06.737256
2020-02-20T16:36:27
2020-02-20T16:36:27
223,024,597
0
0
null
2023-01-09T18:07:04
2019-11-20T20:47:35
JavaScript
UTF-8
Java
false
false
1,967
java
package com.rmj.PkiMicroservice.model; import javax.persistence.*; @Entity public class FtpApplication { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name="id", unique=true, nullable=false) private Long id; @Column(name="organizational_unit_name", unique=true, nullable=false) private String organizationalUnitName; @Column(name="host", unique=false, nullable=true) private String host; @Column(name="port", unique=false, nullable=true) private Integer port; @Column(name="username", unique=false, nullable=true) private String username; @Column(name="password", unique=false, nullable=true) private String password; public FtpApplication() { } public FtpApplication(String organizationalUnitName, String host, int port, String username, String password) { this.organizationalUnitName = organizationalUnitName; this.host = host; this.port = port; this.username = username; this.password = password; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getOrganizationalUnitName() { return organizationalUnitName; } public void setOrganizationalUnitName(String organizationalUnitName) { this.organizationalUnitName = organizationalUnitName; } public String getHost() { return host; } public void setHost(String host) { this.host = host; } public Integer getPort() { return port; } public void setPort(Integer port) { this.port = port; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } }
[ "sunjkajovo@gmail.com" ]
sunjkajovo@gmail.com
b7aacde004226c3b5c8fd369815b4036cf0bf784
1673b6208bffeefa9912b827cfc7370c2db9d0f4
/src/main/java/Controller/PlayerController/CurrentTrack/Album.java
73ba8283cf9206eadb367208031d1c66f1bd08c6
[]
no_license
SimpleappRed/Java-Spotify-API
385cfb4b9f7290a59b38e3049c9aac2025fc6d7c
30986b44de741a92b7575d937f94a7dae1d3b099
refs/heads/master
2023-05-26T21:46:28.644626
2021-05-11T10:40:33
2021-05-11T10:40:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,893
java
package Controller.PlayerController.CurrentTrack; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import java.util.List; public class Album { @SerializedName("album_type") @Expose private String albumType; @SerializedName("external_urls") @Expose private ExternalUrls externalUrls; @SerializedName("href") @Expose private String href; @SerializedName("id") @Expose private String id; @SerializedName("images") @Expose private List<Image> images = null; @SerializedName("name") @Expose private String name; @SerializedName("type") @Expose private String type; @SerializedName("uri") @Expose private String uri; public String getAlbumType() { return albumType; } public void setAlbumType(String albumType) { this.albumType = albumType; } public ExternalUrls getExternalUrls() { return externalUrls; } public void setExternalUrls(ExternalUrls externalUrls) { this.externalUrls = externalUrls; } public String getHref() { return href; } public void setHref(String href) { this.href = href; } public String getId() { return id; } public void setId(String id) { this.id = id; } public List<Image> getImages() { return images; } public void setImages(List<Image> images) { this.images = images; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getType() { return type; } public void setType(String type) { this.type = type; } public String getUri() { return uri; } public void setUri(String uri) { this.uri = uri; } }
[ "cthacker@udel.edu" ]
cthacker@udel.edu
a437a838c9c8ad16a29d5ff6f1ac02eb878ffd37
12de31ac59bf3f1bfe8c6863ea7b3d2fd56289fb
/CGTA_Input_Tester/OlisMessaging/src/main/java/sail/wsdl/infrastructure/terminology/TerminologyWebService.java
b07b76552b210bfc08dd57507bcd92a36a9435f5
[]
no_license
francis-uhn/cgta-input-tester
4d46a8725a5640d4589caac395504f48c79afb47
45acfa8701e8a1968e473e1fa2d62220aa42c1d3
refs/heads/master
2021-01-10T11:45:19.788509
2015-08-13T16:05:20
2015-08-13T16:05:20
44,772,626
0
0
null
null
null
null
UTF-8
Java
false
false
3,098
java
package sail.wsdl.infrastructure.terminology; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.collections.MultiHashMap; import org.apache.commons.collections.MultiMap; import org.hl7.cts.types.CD; import org.hl7.cts.types.GetCodeSystemsByIdRequest; import org.hl7.cts.types.GetCodeSystemsByIdResponse; import org.hl7.cts.types.TranslateCodeSimpleRequest; import org.hl7.cts.types.TranslateCodeSimpleResponse; import org.hl7.cts.types.ValidateCodeSimpleRequest; import org.hl7.cts.types.ValidateCodeSimpleResponse; public class TerminologyWebService { private MultiMap myCodeToCodes = new MultiHashMap(); private Map<String, String> myCodeSystemIdToName = new HashMap<String, String>(); public TerminologyWebService() { addMapping("1.3.6.1.4.1.12201.1.1.1.38", "FE", "1.3.6.1.4.1.12201.1.1.1.3", "X001"); addMapping("1.3.6.1.4.1.12201.1.1.1.38", "TIBC", "1.3.6.1.4.1.12201.1.1.1.3", "X002"); addMapping("1.3.6.1.4.1.12201.1.1.1.38", "UCLU", "1.3.6.1.4.1.12201.1.1.1.3", "X003"); addMapping("1.3.6.1.4.1.12201.1.1.1.38", "SAT", "1.3.6.1.4.1.12201.1.1.1.3", "X002"); addMapping("1.3.6.1.4.1.12201.1.1.1.37","FEPR","1.3.6.1.4.1.12201.1.1.1.1","Y001"); addMapping("1.3.6.1.4.1.12201.1.1.1.37","FEPR","1.3.6.1.4.1.12201.1.1.1.2","Z001"); } private void addMapping(String theFromCodeSystem, String theFromCode, String theToCodeSystem, String theToCode) { String fromKey = theFromCodeSystem + " " + theFromCode; String toKey = theToCodeSystem + " " + theToCode; myCodeToCodes.put(fromKey, toKey); } public ValidateCodeSimpleResponse validateCodeSimple(ValidateCodeSimpleRequest theRequest) { String key = theRequest.getCodeSystemId() + " " + theRequest.getCodeId(); ValidateCodeSimpleResponse retVal = new ValidateCodeSimpleResponse(); retVal.setValidates(myCodeToCodes.containsKey(key)); return retVal; } public GetCodeSystemsByIdResponse getCodeSystemsById(GetCodeSystemsByIdRequest theRequest) { throw new UnsupportedOperationException(); } public TranslateCodeSimpleResponse translateCodeSimple(TranslateCodeSimpleRequest theVcr) { String key = theVcr.getCodeSystemId() + " " + theVcr.getCodeId(); if (key.contains(".100 ")) { TranslateCodeSimpleResponse resp = new TranslateCodeSimpleResponse(); return resp; } List<String> translation = (List<String>) myCodeToCodes.get(key); if (translation == null || translation.size() == 0) { throw new NullPointerException(key); } for (String next : translation) { String toCs = next.split(" ")[0]; if (!toCs.equals(theVcr.getToCodeSystemId())) { continue; } TranslateCodeSimpleResponse resp = new TranslateCodeSimpleResponse(); CD e = new CD(); e.setCodeSystem(next.split(" ")[0]); e.setCode(next.split(" ")[1]); resp.getCode().add(e); return resp; } throw new NullPointerException(theVcr.getCodeSystemId() + " / " + theVcr.getCodeId() + "/" + theVcr.getToCodeSystemId()); } }
[ "jamesagnew@gmail.com" ]
jamesagnew@gmail.com
14a29b7b3637022f880a2ea34a6baadb4c9427d5
a08ff306758d125264c9f7ce7f365316be8e172a
/app/src/main/java/com/cnews/guji/smart/helper/player/VideoViewManager.java
28e62bcc7a2fe0b6be474a301b44e4a72ab951b8
[ "Apache-2.0" ]
permissive
xiamulo/GuJiNews_DayHot_2.0
bbbced3e1776e16ec44d1b00989ec8e588c5e113
4e0c748bc62db8112163d01013c0e524ea20c294
refs/heads/master
2023-07-11T04:09:09.449241
2021-08-25T06:25:45
2021-08-25T06:25:45
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,187
java
package com.cnews.guji.smart.helper.player; import java.lang.ref.WeakReference; /** * 视频播放器管理器. */ public class VideoViewManager { private WeakReference<IjkVideoView> mPlayer; //写成弱引用防止内存泄露 private VideoViewManager() { } private static VideoViewManager sInstance; public static VideoViewManager instance() { if (sInstance == null) { synchronized (VideoViewManager.class) { if (sInstance == null) { sInstance = new VideoViewManager(); } } } return sInstance; } public void setCurrentVideoPlayer(IjkVideoView player) { mPlayer = new WeakReference<>(player); } public IjkVideoView getCurrentVideoPlayer() { if (mPlayer == null) return null; return mPlayer.get(); } public void releaseVideoPlayer() { if (mPlayer != null && mPlayer.get() != null) { mPlayer.get().release(); mPlayer = null; } } public boolean onBackPressed() { return mPlayer != null && mPlayer.get() != null && mPlayer.get().onBackPressed(); } }
[ "dincl@jsyl.com.cn" ]
dincl@jsyl.com.cn
bb5b1849200681d193f028f55d773d1f63246e69
997a5851e2b83d7b57dfe1f0ac74aee3ce7d88f3
/src/cms2/WDSigName.java
03a4f4e3cdb1c8483eaa5317fc95303a18bd2e03
[]
no_license
Javonet-io-user/1a11a90b-3b5e-403e-9626-f47ff006ded3
982b906d819b90c1e17e607f00b54a07a3275f2d
3b66834e877ea2811d331293e354d53bdea17cd7
refs/heads/master
2020-05-04T12:05:10.352737
2019-04-02T16:51:16
2019-04-02T16:51:16
179,120,902
0
0
null
null
null
null
UTF-8
Java
false
false
3,461
java
package cms2; import Common.Activation; import static Common.JavonetHelper.Convert; import static Common.JavonetHelper.getGetObjectName; import static Common.JavonetHelper.getReturnObjectName; import static Common.JavonetHelper.ConvertToConcreteInterfaceImplementation; import Common.JavonetHelper; import Common.MethodTypeAnnotation; import com.javonet.Javonet; import com.javonet.JavonetException; import com.javonet.JavonetFramework; import com.javonet.api.NObject; import com.javonet.api.NEnum; import com.javonet.api.keywords.NRef; import com.javonet.api.keywords.NOut; import com.javonet.api.NControlContainer; import java.util.concurrent.atomic.AtomicReference; import java.util.Iterator; import java.lang.*; import jio.System.Windows.Forms.*; import jio.System.*; import cms2.*; import jio.System.Drawing.*; import jio.System.ComponentModel.*; public class WDSigName extends Form implements IComponent, IDisposable, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IContainerControl { protected NObject javonetHandle; /** SetProperty */ @MethodTypeAnnotation(type = "SetField") public void setContentFont(Font value) { try { javonetHandle.set("ContentFont", value); } catch (JavonetException _javonetException) { _javonetException.printStackTrace(); } } /** GetProperty */ @MethodTypeAnnotation(type = "GetField") public Font getContentFont() { try { Object res = javonetHandle.<NObject>get("ContentFont"); if (res == null) return null; return new Font((NObject) res); } catch (JavonetException _javonetException) { _javonetException.printStackTrace(); return null; } } /** GetFiled */ @MethodTypeAnnotation(type = "GetField") public java.lang.String[] getWindDSigName(Class<?> returnArrayType) { try { Object[] res = javonetHandle.<NObject[]>get("WindDSigName"); if (res == null) return null; return (java.lang.String[]) JavonetHelper.ConvertNObjectToDestinationType((Object) res, returnArrayType); } catch (JavonetException _javonetException) { _javonetException.printStackTrace(); return null; } } /** SetFiled */ @MethodTypeAnnotation(type = "SetField") public void setWindDSigName(java.lang.String[] param) { try { javonetHandle.set("WindDSigName", new Object[] {param}); } catch (JavonetException _javonetException) { _javonetException.printStackTrace(); } } public WDSigName() { super((NObject) null); try { javonetHandle = Javonet.New("cms2.WDSigName"); super.setJavonetHandle(javonetHandle); } catch (JavonetException _javonetException) { _javonetException.printStackTrace(); } } public WDSigName(NObject handle) { super(handle); this.javonetHandle = handle; } public void setJavonetHandle(NObject handle) { this.javonetHandle = handle; } /** Method */ @MethodTypeAnnotation(type = "Method") public void Dispose() { try { javonetHandle.invoke("Dispose"); } catch (JavonetException _javonetException) { _javonetException.printStackTrace(); } } static { try { Activation.initializeJavonet(); } catch (java.lang.Exception e) { e.printStackTrace(); } } }
[ "support@javonet.com" ]
support@javonet.com
61ae15cb41076cad0cb06583833cb5954c3a04f2
0af8b92686a58eb0b64e319b22411432aca7a8f3
/large-multiproject/project98/src/test/java/org/gradle/test/performance98_3/Test98_239.java
f1151c840ec3b5180f4afc716d8112073402ba2f
[]
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.performance98_3; import static org.junit.Assert.*; public class Test98_239 { private final Production98_239 production = new Production98_239("value"); @org.junit.Test public void test() { assertEquals(production.getProperty(), "value"); } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
8f6b97e5337cff0b468b29c8c7239e8d2f6314df
a91cbef25ca92972da8957927472eb8f2991b7fd
/common/src/main/java/org/jboss/pnc/buildagent/common/BuildAgentException.java
46f2a361f89b4c6e9597134dd42e080833775416
[]
no_license
matejonnet/pnc-build-agent
9db79025d5f840b5c0b8d6173add7d37d0e4241b
0ec9efa1c2b5cd88f50e97617dfc55379441f39a
refs/heads/master
2022-11-23T13:39:59.467793
2021-12-16T23:34:05
2021-12-16T23:34:22
38,607,636
0
1
null
2023-09-05T22:01:19
2015-07-06T08:48:50
Java
UTF-8
Java
false
false
969
java
/* * JBoss, Home of Professional Open Source. * Copyright 2015 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.jboss.pnc.buildagent.common; /** * @author <a href="mailto:matejonnet@gmail.com">Matej Lazar</a> */ public class BuildAgentException extends Exception { public BuildAgentException(String message, Exception e) { super(message, e); } }
[ "matejonnet@gmail.com" ]
matejonnet@gmail.com
462c02481cb598938ac9c38dd697febbbc9b42b9
8d9318a33afc2c3b5ca8ac99fce0d8544478c94a
/Books/TDD/RefactoringHorseRace_Java/HorseRace/src/horseracinggame/PartOfRaceEnum.java
0e8b8cccc439afa35acb6dc6e1a039c7a7a424fc
[]
no_license
tushar239/git-large-repo
e30aa7b1894454bf00546312a3fb595f6dad0ed6
9ee51112596e5fc3a7ab2ea97a86ec6adc677162
refs/heads/master
2021-01-12T13:48:43.280111
2016-11-01T22:14:51
2016-11-01T22:14:51
69,609,373
0
0
null
null
null
null
UTF-8
Java
false
false
128
java
version https://git-lfs.github.com/spec/v1 oid sha256:5dd64563822428d98b188c0d2a51bdeca7b2332edba199e7434eadf439b4c224 size 220
[ "tushar239@gmail.com" ]
tushar239@gmail.com
9c666fba82876c84a7428bf53151776d82de2ba8
e09b548dd204038924bba2a94fc05fc959f5a696
/sources/com/google/appinventor/common/version/packageinfo.java
e0a3f6be6ef7571389ea0ee09161581ac047857e
[ "Unlicense" ]
permissive
Li-amK/School-Chemie-App
9472ac787be3658d0dc3a32a2787b98c34711c18
0b747e08e46d43e44849d6c59fd254f9466a4003
refs/heads/main
2022-07-29T13:51:33.064078
2022-02-06T18:21:34
2022-02-06T18:21:34
456,215,965
0
0
null
null
null
null
UTF-8
Java
false
false
204
java
package com.google.appinventor.common.version; /* renamed from: com.google.appinventor.common.version.package-info reason: invalid class name */ /* loaded from: classes.dex */ interface packageinfo { }
[ "liam@kauper.de" ]
liam@kauper.de
d8867e1ae58653fa3ee66356080ad61e28047300
6063b28a3cc691b4c8a05c7364a8729ea9759f49
/src/main/java/com/alipay/api/domain/AlipayInsSceneSellerActivityQueryModel.java
1c5e0866fa77f68f57bdbcfcdab9efb51283a6e1
[]
no_license
citi123/test-obj
f68b69c5bbf0dad4dcbfc4ff078645caa98e9084
83ee779f010fd1f3f42436d073c6a602407a0222
refs/heads/master
2022-10-29T14:02:02.200643
2019-07-01T07:20:05
2019-07-01T07:20:05
127,399,103
0
0
null
2022-10-12T19:51:52
2018-03-30T07:52:54
Java
UTF-8
Java
false
false
1,260
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 商户报名查询 * * @author auto create * @since 1.0, 2017-10-27 18:12:30 */ public class AlipayInsSceneSellerActivityQueryModel extends AlipayObject { private static final long serialVersionUID = 8747362794649525477L; /** * 渠道账号对应的uid,如果证据类型字段没填则必填 */ @ApiField("channel_account_id") private String channelAccountId; /** * 渠道账号类型,如果证据类型字段没填则必填1:支付宝账号 2:淘宝账号 */ @ApiField("channel_account_type") private Long channelAccountType; /** * 签约的标准产品码 */ @ApiField("sp_code") private String spCode; public String getChannelAccountId() { return this.channelAccountId; } public void setChannelAccountId(String channelAccountId) { this.channelAccountId = channelAccountId; } public Long getChannelAccountType() { return this.channelAccountType; } public void setChannelAccountType(Long channelAccountType) { this.channelAccountType = channelAccountType; } public String getSpCode() { return this.spCode; } public void setSpCode(String spCode) { this.spCode = spCode; } }
[ "tao.chen@guanaitong.com" ]
tao.chen@guanaitong.com
25100f295c52c2d12c7d9161a6cd4413cba03e0f
1c2fc95d66ea34fdcb4f2352c8d2d362b3b5b367
/Test/jmx/jmx/SimpleAgent.java
84c2fcdb4c5a5d85ad6591b83ea0b8e39d29a26f
[]
no_license
lryxxh/Study
2473647837535055af9cf3f6c048a81cc09be2bb
47c556afeff8223aba3e324407fe6af97071884a
refs/heads/master
2020-12-02T12:46:27.455563
2017-07-08T03:07:22
2017-07-08T03:07:22
96,589,823
0
0
null
null
null
null
UTF-8
Java
false
false
4,514
java
package jmx; import javax.management.*; public class SimpleAgent { private MBeanServer server = null; ObjectName mbeanObjectName = null; String mbeanName = "jmx.SimpleDynamic"; public SimpleAgent() { server = MBeanServerFactory.createMBeanServer(); String domain = server.getDefaultDomain(); try { mbeanObjectName = new ObjectName(domain + ":type=" + mbeanName); server.createMBean(mbeanName, mbeanObjectName); } catch (MalformedObjectNameException e) { e.printStackTrace(); System.out.println("\nEXITING...\n"); System.exit(1); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } public String getState() throws AttributeNotFoundException, InstanceNotFoundException, MBeanException, ReflectionException { return (String) server.getAttribute(mbeanObjectName, "State"); } public Integer getNChange() throws AttributeNotFoundException, InstanceNotFoundException, MBeanException, ReflectionException { return (Integer) server.getAttribute(mbeanObjectName, "NbChanges"); } public void printMBeanInfo() { MBeanInfo info = null; try { info = server.getMBeanInfo(mbeanObjectName); } catch (Exception e) { System.out.println("\t!!! Could not get MBeanInfo object for " + mbeanName + " !!!"); e.printStackTrace(); return; } System.out.println("\nCLASSNAME: \t" + info.getClassName()); System.out.println("\nDESCRIPTION: \t" + info.getDescription()); System.out.println("\nATTRIBUTES"); MBeanAttributeInfo[] attrInfo = info.getAttributes(); if (attrInfo.length > 0) { for (int i = 0; i < attrInfo.length; i++) { System.out.println(" ** NAME: \t" + attrInfo[i].getName()); System.out.println(" DESCR: \t" + attrInfo[i].getDescription()); System.out.println(" TYPE: \t" + attrInfo[i].getType() + "\tREAD: " + attrInfo[i].isReadable() + "\tWRITE: " + attrInfo[i].isWritable()); } } else System.out.println(" ** No attributes **"); System.out.println("\nCONSTRUCTORS"); MBeanConstructorInfo[] constrInfo = info.getConstructors(); for (int i = 0; i < constrInfo.length; i++) { System.out.println(" ** NAME: \t" + constrInfo[i].getName()); System.out.println(" DESCR: \t" + constrInfo[i].getDescription()); System.out.println(" PARAM: \t" + constrInfo[i].getSignature().length + " parameter(s)"); } System.out.println("\nOPERATIONS"); MBeanOperationInfo[] opInfo = info.getOperations(); if (opInfo.length > 0) { for (int i = 0; i < opInfo.length; i++) { System.out.println(" ** NAME: \t" + opInfo[i].getName()); System.out.println(" DESCR: \t" + opInfo[i].getDescription()); System.out.println(" PARAM: \t" + opInfo[i].getSignature().length + " parameter(s)"); } } else System.out.println(" ** No operations ** "); System.out.println("\nNOTIFICATIONS"); MBeanNotificationInfo[] notifInfo = info.getNotifications(); if (notifInfo.length > 0) { for (int i = 0; i < notifInfo.length; i++) { System.out.println(" ** NAME: \t" + notifInfo[i].getName()); System.out.println(" DESCR: \t" + notifInfo[i].getDescription()); } } } public void reset() throws InstanceNotFoundException, MBeanException, ReflectionException { server.invoke(mbeanObjectName, "reset", null, null); } public void setState(String state) { Attribute nbChangesAttribute = new Attribute("State", state); try { server.setAttribute(mbeanObjectName, nbChangesAttribute); } catch (Exception e) { e.printStackTrace(); } } public void setNChange(Integer nchange) { Attribute nbChangesAttribute = new Attribute("NbChanges", nchange); try { server.setAttribute(mbeanObjectName, nbChangesAttribute); } catch (Exception e) { e.printStackTrace(); } } public static void main(String[] args) { SimpleAgent agent = new SimpleAgent(); try { agent.printMBeanInfo(); System.out.println(agent.getState()); System.out.println(agent.getNChange()); agent.setState("come on, man"); // agent.setNChange(new Integer(6)); System.out.println(agent.getState()); System.out.println(agent.getNChange()); agent.reset(); System.out.println(agent.getState()); System.out.println(agent.getNChange()); agent.setState("sds"); System.out.println(agent.getState()); System.out.println(agent.getNChange()); agent.setState("sds2"); System.out.println(agent.getState()); System.out.println(agent.getNChange()); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } }
[ "lryxxh@163.com" ]
lryxxh@163.com
2dcbc9231ad383d5f78c0a7df05657ac16e94767
d76808c5ef5a50f46f5714ed737b85b2603f90dc
/com/google/api/services/sheets/v4/model/TextToColumnsRequest.java
ee8fe817340520d8737ddc9c8de08328507f8787
[]
no_license
XeonLyfe/Backdoored-1.6-Deobf-Source-Leak
d5e70e6bc09bf1f8ef971cb2f019492310cf28c0
d01450acd69b1d995931aa3bcaca5c974344e556
refs/heads/master
2022-04-07T07:58:45.140489
2019-11-10T02:56:19
2019-11-10T02:56:19
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,901
java
package com.google.api.services.sheets.v4.model; import com.google.api.client.json.*; import com.google.api.client.util.*; public final class TextToColumnsRequest extends GenericJson { @Key private String delimiter; @Key private String delimiterType; @Key private GridRange source; public TextToColumnsRequest() { super(); } public String getDelimiter() { return this.delimiter; } public TextToColumnsRequest setDelimiter(final String delimiter) { this.delimiter = delimiter; return this; } public String getDelimiterType() { return this.delimiterType; } public TextToColumnsRequest setDelimiterType(final String delimiterType) { this.delimiterType = delimiterType; return this; } public GridRange getSource() { return this.source; } public TextToColumnsRequest setSource(final GridRange source) { this.source = source; return this; } @Override public TextToColumnsRequest set(final String fieldName, final Object value) { return (TextToColumnsRequest)super.set(fieldName, value); } @Override public TextToColumnsRequest clone() { return (TextToColumnsRequest)super.clone(); } @Override public /* bridge */ GenericJson set(final String s, final Object o) { return this.set(s, o); } @Override public /* bridge */ GenericJson clone() { return this.clone(); } @Override public /* bridge */ GenericData clone() { return this.clone(); } @Override public /* bridge */ GenericData set(final String s, final Object o) { return this.set(s, o); } public /* bridge */ Object clone() throws CloneNotSupportedException { return this.clone(); } }
[ "57571957+RIPBackdoored@users.noreply.github.com" ]
57571957+RIPBackdoored@users.noreply.github.com
28c035e7c619c0f58c2b78cb6ce6bb2ee50bd3e1
182b7e5ca415043908753d8153c541ee0e34711c
/SpringBasics/spring-jdbc-annotations/src/main/java/com/vinaylogics/springbasics/springjdbcannotations/dao/EmployeeDao.java
4133bec0a3decfb1d06018b6e8597b9e5ee3440a
[]
no_license
akamatagi/Java9AndAbove
2b62886441241ef4cd62990243d7b29e895452f7
ff002a2395edf506091b3571a470c15fa0742550
refs/heads/master
2023-02-09T17:38:21.467950
2020-12-30T14:47:59
2020-12-30T14:47:59
null
0
0
null
null
null
null
UTF-8
Java
false
false
634
java
package com.vinaylogics.springbasics.springjdbcannotations.dao; import com.vinaylogics.springbasics.springjdbcannotations.models.Employee; import com.vinaylogics.springbasics.springjdbcannotations.utils.QueryConstant; import org.springframework.jdbc.core.JdbcTemplate; public class EmployeeDao implements QueryConstant.TableEmployees { private JdbcTemplate jdbcTemplate; public void setJdbcTemplate(JdbcTemplate jdbcTemplate) { this.jdbcTemplate = jdbcTemplate; } public int saveEmployee(Employee employee){ return jdbcTemplate.update(Q_SAVE, employee.getName(), employee.getSalary()); } }
[ "vinayagam.d.ganesh@gmail.com" ]
vinayagam.d.ganesh@gmail.com
e83b790f7a996db9c4f6e77f13b486a2fb9a85d5
55ae21722eeb3c14cc8f5df482177a1228b18356
/paas/src/main/java/cn/xpms/paas/mq/bean/body/DeviceBindDataBodyVo.java
f27e1cffeb0b10d0f1cfb22dba743849689c3799
[]
no_license
kemuchen/XPMS
5f9709b14b531d072031666b9e17b919a07f02aa
0499d04df40b1ecc16658d71316b182998b26e32
refs/heads/master
2023-04-02T07:54:32.901901
2021-04-15T03:56:27
2021-04-15T03:56:27
358,116,947
0
0
null
null
null
null
UTF-8
Java
false
false
959
java
package cn.xpms.paas.mq.bean.body; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * @ClassName DeviceBindDataBodyVo * @Desc * @Author 柯雷 * @Date 2020/12/17 14:49 * @Version 1.0 */ @Data @AllArgsConstructor @NoArgsConstructor @Builder public class DeviceBindDataBodyVo implements Serializable { /** 设备id */ private String devId; /** 设备名称 */ private String deviceName; /** 设备id */ private String gwId; /** 设备位置 */ private Object location; /** 命名空间 */ private String namespace; /** 拥有者id */ private String owerId; /** 位置 */ private String position; /** 产品id */ private String productId; /** 是否子设备 */ private Boolean sub; /** 用户id */ private String uid; /** 唯一标识 */ private String uuid; }
[ "2584073978@qq.com" ]
2584073978@qq.com
5be9ba9503c88e1891ab5a0b843e4bb6133f2d6d
c9bdb85c82a1d2e3fa9f7cfff9590d774b222b26
/miser/miser-biz/miser-biz-discount/target/classes/com/hoau/miser/module/biz/discount/server/dao/PrivilegeCouponStateDao.java
6c5ac3dcb055ab8115b50d923050b1b90d1191fc
[]
no_license
wangfuguo/mi-proj
9d5c159719ee3c4da7bedd01dd297713bb811ced
2920971b310262a575cd3b767827d4633c596666
refs/heads/master
2020-03-08T07:03:24.984087
2018-04-04T00:44:35
2018-04-04T00:44:35
127,985,673
0
0
null
null
null
null
UTF-8
Java
false
false
855
java
package com.hoau.miser.module.biz.discount.server.dao; import java.util.List; import org.springframework.stereotype.Repository; import com.hoau.miser.module.biz.discount.api.shared.domain.CouponStateEntity; /** * 返券状态DAO * ClassName: PrivilegeCouponStateDao * @author 286330付于令 * @date 2016年4月14日 * @version V1.0 */ @Repository public interface PrivilegeCouponStateDao { /** * @Description: 保存越发越惠返券状态 * @param entity * @return void * @author 286330付于令 * @date 2016年4月14日 */ void saveCouponStateEntity(CouponStateEntity entity); /** * @Description: 查询越发越惠返券状态 * @param entity * @return List<CouponStateEntity> * @author 286330付于令 * @date 2016年4月14日 */ List<CouponStateEntity> findCouponStateEntity(CouponStateEntity entity); }
[ "wangfuguo_wfg@163.com" ]
wangfuguo_wfg@163.com
8c32c84e8d4c1d5021f96eae35839d94e6205375
4f58f7bbaba2f88e41ad18c59704789709fe193c
/src/polymorphism/Dog.java
bb5af4fc160373cfff9b7d5184a9b08ee6f5104d
[]
no_license
jinhuizxc/JavaStudy
f7aea5ea83479584f6dfa628b15ca76b496b26cb
413fcb0fb0accc5740a62dbe00a8ddb6505e0b30
refs/heads/master
2020-04-08T02:31:34.138807
2019-02-26T14:10:24
2019-02-26T14:10:24
158,938,384
0
0
null
null
null
null
UTF-8
Java
false
false
214
java
package polymorphism; public class Dog extends Animal { @Override public void eat() { System.out.println("吃骨头"); } public void work() { System.out.println("看家"); } }
[ "1004260403@qq.com" ]
1004260403@qq.com
dd5890859ea096b90f0be1ab67aa2bd5835e248d
d34715aacf99456c37dad669912890e4451d39cd
/abook23Library/src/main/java/com/abook23/utils/util/DBUtil.java
0db08a1e4f2689eeec9320b455e4c8c7884e5bab
[]
no_license
abook23/abook23Library
a20e7ef69ac12498e705c2c7a41c3898844e822e
61132683ca4743939f0ae1ddf291e927aebb65b4
refs/heads/master
2021-01-17T11:38:03.803827
2016-06-28T03:38:59
2016-06-28T03:38:59
62,035,362
0
0
null
null
null
null
UTF-8
Java
false
false
2,704
java
package com.abook23.utils.util; import android.database.Cursor; import java.lang.reflect.Field; import java.util.ArrayList; import java.util.List; /** * /** * Created by My on 2016/1/28. */ public class DBUtil { public static <T> List<T> cursor2Bean(Cursor cursor, Class<T> c) throws IllegalAccessException, InstantiationException { List<T> list = new ArrayList<>(); if (cursor != null && cursor.getCount() > 0) { T bean = null; Field[] arrField = c.getDeclaredFields();//getFields()只能获取public的字段 while (cursor.moveToNext()) { bean = c.newInstance(); for (Field f : arrField) { String columnName = f.getName(); int columnIdx = cursor.getColumnIndex(columnName);//列是否存在 if (columnIdx == -1) {//将驼峰式命名的字符串转换为下划线大写方式 columnName = StringUtils.underscoreName(columnName); columnIdx = cursor.getColumnIndex(columnName);//列是否存在 } if (columnIdx != -1) { if (!f.isAccessible()) { f.setAccessible(true);//类中的成员变量为private,故必须进行此操作 } Class<?> type = f.getType(); if (type == byte.class) { f.set(bean, (byte) cursor.getShort(columnIdx));//set 值 } else if (type == short.class) { f.set(bean, cursor.getShort(columnIdx)); } else if (type == int.class) { f.set(bean, cursor.getInt(columnIdx)); } else if (type == long.class) { f.set(bean, cursor.getLong(columnIdx)); } else if (type == String.class) { f.set(bean, cursor.getString(columnIdx)); } else if (type == byte[].class) { f.set(bean, cursor.getBlob(columnIdx)); } else if (type == boolean.class) { f.set(bean, cursor.getInt(columnIdx) == 1); } else if (type == float.class) { f.set(bean, cursor.getFloat(columnIdx)); } else if (type == double.class) { f.set(bean, cursor.getDouble(columnIdx)); } } } list.add(bean); } } return list; } }
[ "abook23@163.com" ]
abook23@163.com
a2cc9e66fef48e47314856f12949a15859d87293
3fc7c3d4a697c418bad541b2ca0559b9fec03db7
/TestResult/javasource/com/adobe/creativesdk/foundation/internal/comments/IAdobeGetCommentsCallback.java
66fca22194f8b683d3846fa1bbe6366ff45f4c33
[]
no_license
songxingzai/APKAnalyserModules
59a6014350341c186b7788366de076b14b8f5a7d
47cf6538bc563e311de3acd3ea0deed8cdede87b
refs/heads/master
2021-12-15T02:43:05.265839
2017-07-19T14:44:59
2017-07-19T14:44:59
null
0
0
null
null
null
null
UTF-8
Java
false
false
348
java
package com.adobe.creativesdk.foundation.internal.comments; import com.adobe.creativesdk.foundation.internal.comments.models.AdobeAssetCommentsDataSource; public abstract interface IAdobeGetCommentsCallback { public abstract void onError(); public abstract void onSuccess(AdobeAssetCommentsDataSource paramAdobeAssetCommentsDataSource); }
[ "leehdsniper@gmail.com" ]
leehdsniper@gmail.com
63daa8549476ae2472e37d0c0348f4e2f1de1b8a
47bf87f6fb2d9df42b8a8915456dd666fa1abb36
/test/ch14_unittests/ControllerV3Test.java
5862154d4c2824be5a558d592c86ee88d2f8b006
[]
no_license
ClausPolanka/java-profi
bb303d49e8b834b13d6095789d5b4325448d2a81
8c8eacd2be1fb6fa7a8409a8e8a8a3e30e330ce8
refs/heads/master
2020-05-17T18:12:00.353513
2011-03-17T15:18:05
2011-03-17T15:19:31
1,492,002
1
1
null
null
null
null
ISO-8859-1
Java
false
false
982
java
package ch14_unittests; import ch14_unittests.ControllerV3; import junit.framework.TestCase; /** * Testklasse für die Klasse ControllerV3, basierend auf JUnit 3 * * @author Michael Inden * * Copyright 2011 by Michael Inden */ public final class ControllerV3Test extends TestCase { public void testCalcState07() { assertEquals(7, ControllerV3.calcState((byte) '0', (byte) '7')); } public void testCalcState20() { assertEquals(2 * 16 + 0, ControllerV3.calcState((byte) '2', (byte) '0')); } public void testCalcState79() { assertEquals(7 * 16 + 9, ControllerV3.calcState((byte) '7', (byte) '9')); } public void testCalcStateRealHexValues3F() { assertEquals(0x3f, ControllerV3.calcState((byte) '3', (byte) 'F')); } public void testCalcStateRealHexValuesAE() { assertEquals(0xAE, ControllerV3.calcState((byte) 'A', (byte) 'E')); } }
[ "claus.polanka@chello.at" ]
claus.polanka@chello.at
42d7fc7a68336f7842ec3e358ab883ed95a4e970
27f6a988ec638a1db9a59cf271f24bf8f77b9056
/Code-Hunt-data/users/User096/Sector1-Level3/attempt036-20140920-224546.java
2f9fdd0511baf694a31f96eeca1ac27ecdd64e47
[]
no_license
liiabutler/Refazer
38eaf72ed876b4cfc5f39153956775f2123eed7f
991d15e05701a0a8582a41bf4cfb857bf6ef47c3
refs/heads/master
2021-07-22T06:44:46.453717
2017-10-31T01:43:42
2017-10-31T01:43:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
366
java
public class Program { public static Boolean Puzzle(Boolean x, Boolean y, Boolean z) { if(x&&y&&z || (x&&!y || x&&!z))return true; else if(x&&!y&&!z || y&&!z&&!x || !x&&!y&&z)return false; else if(!x&&y&&!z || !x&&y&&z)return false; else if(x&&!y&&z || x&&y&&!z)return true; else if(!x && y || !x && z)return true; else return false; } }
[ "liiabiia@yahoo.com" ]
liiabiia@yahoo.com
bc46c8d6769735ffcaad4b1dc0b0343f7b508e90
b2bb9376bd7b1b8cddf4d21d4e8eee98505d591d
/nexus-staging-ant-tasks/src/main/java/org/sonatype/nexus/ant/staging/Authentication.java
a0b606ce42ebade8cd0403206ac5e5c87f9eb2d1
[]
no_license
mykelalvis/nexus-ant-tasks
23a08208acd3a63a3aa12b6a7d66d15fcdb8f316
a80099e998e1a0f32ea80b01057ed97d13cc804a
refs/heads/master
2020-04-08T06:10:07.985722
2012-08-21T05:48:27
2012-08-21T05:48:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,329
java
/** * Sonatype Nexus (TM) Open Source Version * Copyright (c) 2007-2012 Sonatype, Inc. * All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions. * * This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0, * which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html. * * Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks * of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the * Eclipse Foundation. All other trademarks are the property of their respective owners. */ package org.sonatype.nexus.ant.staging; /** * DTO for authentication to be used with Nexus connection. * * @author cstamas */ public class Authentication { private String username; private String password; public String getUsername() { return username; } public void setUsername( String username ) { this.username = username; } public String getPassword() { return password; } public void setPassword( String password ) { this.password = password; } }
[ "tamas@cservenak.net" ]
tamas@cservenak.net
df77e3fe30964226c2ac3b1f64d9a2c88dcdc12a
a4c584dce85dc476162bc3e5ddc4ed5a2052d6e2
/lib/impl/stubs/org/apache/fontbox/cff/CharStringHandler.java
7c7e596917a111d7bbd44c6174a31d969ce345a8
[ "Apache-2.0" ]
permissive
shannah/CN1aChartEngineDemo
5f9bc3b8973e57be4cd778e413f70c46a290ee10
8b74e95c5f02ea0b2086b9de3a1370939a22b56d
refs/heads/master
2020-04-05T01:39:50.853304
2014-02-03T20:40:27
2014-02-03T20:40:27
16,154,623
0
1
null
null
null
null
UTF-8
Java
false
false
721
java
/** * * This package holds classes used to parse CFF/Type2-Fonts (aka Type1C-Fonts). */ package org.apache.fontbox.cff; /** * A Handler for CharStringCommands. * * @author Villu Ruusmann * */ public abstract class CharStringHandler { public CharStringHandler() { } /** * Handler for a sequence of CharStringCommands. * * @param sequence of CharStringCommands */ @java.lang.SuppressWarnings("unchecked") public void handleSequence(java.util.List sequence) { } /** * Handler for CharStringCommands. * * @param numbers a list of numbers * @param command the CharStringCommand */ public abstract void handleCommand(java.util.List numbers, CharStringCommand command) { } }
[ "steve@weblite.ca" ]
steve@weblite.ca
bf15f263ba06c37e1ab114ee09e979c2737dac42
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Time/22/org/joda/time/format/PeriodFormatterBuilder_PluralAffix_916.java
9237afa1bb743dc202520baacbeabaeb911e5a1a
[]
no_license
hvdthong/NetML
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
9bb103da21327912e5a29cbf9be9ff4d058731a5
refs/heads/master
2021-06-30T15:03:52.618255
2020-10-07T01:58:48
2020-10-07T01:58:48
150,383,588
1
1
null
2018-09-26T07:08:45
2018-09-26T07:08:44
null
UTF-8
Java
false
false
2,985
java
org joda time format factori creat complex instanc period formatt periodformatt method call period format perform link period formatt periodformatt class provid factori method creat formatt link period format periodformat link iso period format isoperiodformat period formatt builder periodformatterbuild construct formatt print pars formatt built append specif field formatt instanc builder formatt print year month year month construct pre period formatt periodformatt year month yearsandmonth period formatt builder periodformatterbuild print printzeroalwai append year appendyear append suffix appendsuffix year year append separ appendsepar print rare printzerorarelylast append month appendmonth append suffix appendsuffix month month formatt toformatt pre period formatt builder periodformatterbuild mutabl thread safe formatt build thread safe immut author brian neill o'neil period format periodformat period formatt builder periodformatterbuild plural affix pluralaffix string singular text singulartext string plural text pluraltext singular text isingulartext singular text singulartext plural text ipluraltext plural text pluraltext
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
9bc4ad06d936c0bfe0c1adf4b90b72f1dda2e95a
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/29/29_884acfc580a39ee3188934a0f43654cce3c974a1/GraphPaneController/29_884acfc580a39ee3188934a0f43654cce3c974a1_GraphPaneController_t.java
f08f082393791224115ffc65e03c1325a44e0ce9
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
4,836
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package savant.controller; import java.util.ArrayList; import java.util.List; import savant.controller.event.graphpane.GraphPaneChangeEvent; import savant.controller.event.graphpane.GraphPaneChangeListener; import savant.util.Range; import savant.view.swing.Savant; /** * * @author mfiume */ public class GraphPaneController { private boolean isSpotlight; private boolean isPlumbing; private boolean isZooming; private boolean isPanning; private boolean isSelecting; private int mouseClickPosition; private int mouseReleasePosition; private int mouseXPosition; private int mouseYPosition; private int spotlightSize; private double spotlightproportion = 0.25; private static GraphPaneController instance; private List<GraphPaneChangeListener> graphpaneChangeListeners; private boolean changeMade = false; private GraphPaneController() { graphpaneChangeListeners = new ArrayList<GraphPaneChangeListener>(); } public static synchronized GraphPaneController getInstance() { if (instance == null) { instance = new GraphPaneController(); } return instance; } public synchronized void addFavoritesChangedListener(GraphPaneChangeListener l) { graphpaneChangeListeners.add(l); } public synchronized void removeFavoritesChangedListener(GraphPaneChangeListener l) { graphpaneChangeListeners.remove(l); } public boolean isChanged(){ return changeMade; } public void askForRefresh() { if (this.isPanning() || this.isZooming() || this.isPlumbing() || this.isSpotlight()) { fireGraphPaneChangeEvent(); } } public void forceRefresh() { fireGraphPaneChangeEvent(); } private synchronized void fireGraphPaneChangeEvent() { GraphPaneChangeEvent evt = new GraphPaneChangeEvent(this); for (GraphPaneChangeListener listener : this.graphpaneChangeListeners) { listener.graphpaneChangeReceived(evt); } } public boolean isSelecting() { return this.isSelecting; } public void setSelecting(boolean selected) { this.isSelecting = selected; } public boolean isPlumbing() { return this.isPlumbing; } public void setPlumbing(boolean isPlumbing) { this.isPlumbing = isPlumbing; changeMade = true; forceRefresh(); changeMade = false; } public boolean isSpotlight() { return this.isSpotlight; } public void setSpotlight(boolean isSpotlight) { this.isSpotlight = isSpotlight; changeMade = true; forceRefresh(); changeMade = false; } public boolean isZooming() { return this.isZooming; } public void setZooming(boolean isZooming) { this.isZooming = isZooming; forceRefresh(); } public boolean isPanning() { return this.isPanning; } public void setPanning(boolean isPanning) { this.isPanning = isPanning; forceRefresh(); } public Range getMouseDragRange() { return new Range(this.mouseClickPosition,this.mouseReleasePosition); } public void setMouseDragRange(Range r) { setMouseDragRange(r.getFrom(),r.getTo()); } public void setMouseDragRange(int fromPosition, int toPosition) { this.mouseClickPosition = fromPosition; this.mouseReleasePosition = toPosition; askForRefresh(); } public void setMouseClickPosition(int position) { this.mouseClickPosition = position; askForRefresh(); } public void setMouseReleasePosition(int position) { this.mouseReleasePosition = position; askForRefresh(); } public int getMouseXPosition() { return this.mouseXPosition; } public void setMouseXPosition(int position) { this.mouseXPosition = position; askForRefresh(); Savant.getInstance().updateMousePosition(); } public int getMouseYPosition() { return this.mouseYPosition; } public void setMouseYPosition(int position) { this.mouseYPosition = position; askForRefresh(); Savant.getInstance().updateMousePosition(); } public void setSpotlightSize(int size) { this.spotlightSize = Math.max(2,(int) Math.round(size*spotlightproportion)); this.spotlightSize = 1; } public int getSpotlightSize() { return this.spotlightSize; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
0fa63122087c084526830c2c6a3362137fd4f1a9
bb45ca5f028b841ca0a08ffef60cedc40090f2c1
/app/src/main/java/com/MCWorld/image/pipeline/datasource/c.java
af5846f78fc1dd254459cbb3b86b5e206be00c52
[]
no_license
tik5213/myWorldBox
0d248bcc13e23de5a58efd5c10abca4596f4e442
b0bde3017211cc10584b93e81cf8d3f929bc0a45
refs/heads/master
2020-04-12T19:52:17.559775
2017-08-14T05:49:03
2017-08-14T05:49:03
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,933
java
package com.MCWorld.image.pipeline.datasource; import android.graphics.Bitmap; import com.MCWorld.image.core.common.references.a; import com.MCWorld.image.core.datasource.b; import java.util.List; /* compiled from: BaseListBitmapDataSubscriber */ public abstract class c extends b<List<a<com.MCWorld.image.base.imagepipeline.image.b>>> { protected abstract void o(List<Bitmap> list); public void onNewResultImpl(com.MCWorld.image.core.datasource.c<java.util.List<com.MCWorld.image.core.common.references.a<com.MCWorld.image.base.imagepipeline.image.b>>> r7) { /* JADX: method processing error */ /* Error: jadx.core.utils.exceptions.JadxRuntimeException: Incorrect nodes count for selectOther: B:30:0x0076 in [B:19:0x0050, B:30:0x0076, B:31:0x0007] at jadx.core.utils.BlockUtils.selectOther(BlockUtils.java:53) at jadx.core.dex.instructions.IfNode.initBlocks(IfNode.java:64) at jadx.core.dex.visitors.blocksmaker.BlockFinish.initBlocksInIfNodes(BlockFinish.java:48) at jadx.core.dex.visitors.blocksmaker.BlockFinish.visit(BlockFinish.java:33) at jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31) at jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17) at jadx.core.ProcessClass.process(ProcessClass.java:37) at jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306) at jadx.api.JavaClass.decompile(JavaClass.java:62) at jadx.api.JadxDecompiler$1.run(JadxDecompiler.java:199) */ /* r6 = this; r4 = 0; r3 = r7.isFinished(); if (r3 != 0) goto L_0x0008; L_0x0007: return; L_0x0008: r2 = r7.getResult(); r2 = (java.util.List) r2; if (r2 != 0) goto L_0x0014; L_0x0010: r6.o(r4); goto L_0x0007; L_0x0014: r0 = new java.util.ArrayList; Catch:{ all -> 0x0045 } r3 = r2.size(); Catch:{ all -> 0x0045 } r0.<init>(r3); Catch:{ all -> 0x0045 } r4 = r2.iterator(); Catch:{ all -> 0x0045 } L_0x0021: r3 = r4.hasNext(); Catch:{ all -> 0x0045 } if (r3 == 0) goto L_0x005f; Catch:{ all -> 0x0045 } L_0x0027: r1 = r4.next(); Catch:{ all -> 0x0045 } r1 = (com.huluxia.image.core.common.references.a_isRightVersion) r1; Catch:{ all -> 0x0045 } if (r1 == 0) goto L_0x005a; Catch:{ all -> 0x0045 } L_0x002f: r3 = r1.get(); Catch:{ all -> 0x0045 } r3 = r3 instanceof com.huluxia.image.base.imagepipeline.image.a_isRightVersion; Catch:{ all -> 0x0045 } if (r3 == 0) goto L_0x005a; Catch:{ all -> 0x0045 } L_0x0037: r3 = r1.get(); Catch:{ all -> 0x0045 } r3 = (com.huluxia.image.base.imagepipeline.image.a_isRightVersion) r3; Catch:{ all -> 0x0045 } r3 = r3.hM(); Catch:{ all -> 0x0045 } r0.add(r3); Catch:{ all -> 0x0045 } goto L_0x0021; L_0x0045: r3 = move-exception; r4 = r2.iterator(); L_0x004a: r5 = r4.hasNext(); if (r5 == 0) goto L_0x0076; L_0x0050: r1 = r4.next(); r1 = (com.huluxia.image.core.common.references.a_isRightVersion) r1; com.huluxia.image.core.common.references.a_isRightVersion.c(r1); goto L_0x004a; L_0x005a: r3 = 0; r0.add(r3); Catch:{ all -> 0x0045 } goto L_0x0021; Catch:{ all -> 0x0045 } L_0x005f: r6.o(r0); Catch:{ all -> 0x0045 } r3 = r2.iterator(); L_0x0066: r4 = r3.hasNext(); if (r4 == 0) goto L_0x0007; L_0x006c: r1 = r3.next(); r1 = (com.huluxia.image.core.common.references.a_isRightVersion) r1; com.huluxia.image.core.common.references.a_isRightVersion.c(r1); goto L_0x0066; L_0x0076: throw r3; */ throw new UnsupportedOperationException("Method not decompiled: com.huluxia.image.pipeline.datasource.c.onNewResultImpl(com.huluxia.image.core.datasource.c):void"); } }
[ "18631616220@163.com" ]
18631616220@163.com
bc1b770debff427323b8ac3551cb47fb69d01f76
94070d0696ed3825caf620b544bdf2a9d21ba1f9
/how-bse/src/main/java/com/hoau/how/module/bse/shared/vo/RequestParam.java
9be679cc17c607ed1858a69f5ae9ea72b755519e
[]
no_license
jbzhang99/Howweb
d801a60635ed7a09ba0ff65fa8df16724ae031fc
ee256aef286369214f749791c23977637e06821c
refs/heads/master
2020-12-05T21:51:15.704406
2017-08-04T14:43:41
2017-08-04T14:43:41
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,085
java
package com.hoau.how.module.bse.shared.vo; import java.util.List; public class RequestParam { /** * (也可以是地址对应编号,目的是方便地址返回值处理) */ private String o_pcode; /** * 版图名称 (根据业务要求确定版图名称,版图名称可以有多个) */ private List<DictName> ss_dictname; /** * 任务所属机构代码(固定值为“100282”) */ private String t_orgcode; /** * 应用编号(天地华宇应用ID) */ private String o_string1; /** * 组织编码(天地华宇的组织编码) */ private String o_string2; /** * 任务类型 (1,3) */ private int t_tasktype; /** * 收货人地址(t_tasktype为3时必填) */ private String o_consigneeaddr; /** * 发货人地址(t_tasktype为1时必填) */ private String o_shipperaddr; public List<DictName> getSs_dictname() { return ss_dictname; } public void setSs_dictname(List<DictName> ss_dictname) { this.ss_dictname = ss_dictname; } public String getO_pcode() { return o_pcode; } public void setO_pcode(String o_pcode) { this.o_pcode = o_pcode; } public String getT_orgcode() { return t_orgcode; } public void setT_orgcode(String t_orgcode) { this.t_orgcode = t_orgcode; } public String getO_string1() { return o_string1; } public void setO_string1(String o_string1) { this.o_string1 = o_string1; } public String getO_string2() { return o_string2; } public void setO_string2(String o_string2) { this.o_string2 = o_string2; } public int getT_tasktype() { return t_tasktype; } public void setT_tasktype(int t_tasktype) { this.t_tasktype = t_tasktype; } public String getO_consigneeaddr() { return o_consigneeaddr; } public void setO_consigneeaddr(String o_consigneeaddr) { this.o_consigneeaddr = o_consigneeaddr; } public String getO_shipperaddr() { return o_shipperaddr; } public void setO_shipperaddr(String o_shipperaddr) { this.o_shipperaddr = o_shipperaddr; } }
[ "xiao_c1025@163.com" ]
xiao_c1025@163.com
c7593a2c442e696ea105e6bce3c8447917a02f35
7df8c37e44b39d9487af8f09e8c33fa3825614eb
/app/src/main/java/com/example/songs/details/presenter/SongsDetailsPresenter.java
ccbcef12bb1c0c747f6d48d0ab9a12553005171c
[]
no_license
dubeyakhilesh/SongDemo
5b8f6f1631d23c1257df564fc2c3630c985de727
fae72e4100949a67a5fee66de3d18033d6339c46
refs/heads/master
2020-05-09T21:50:07.322253
2019-04-15T08:58:31
2019-04-15T08:58:31
181,449,036
1
0
null
null
null
null
UTF-8
Java
false
false
1,088
java
package com.example.songs.details.presenter; import android.content.Context; /** * Created by Akhilesh on 13 April 2019. * @CompanyName: None * @ProjectName: Songs Demo Android App * @Project Version: 1.0 * @PageName: SongsDetailsPresenter.java * @Module Name: Song Details * @Description : SongsDetailsPresenter class * @Author: Akhilesh Dubey * */ public class SongsDetailsPresenter { /*--- Define variables here ---*/ Context context; View view; /*--- Initialize Constructor here ---*/ public SongsDetailsPresenter(Context context, View view){ this.context = context; this.view = view; } /*--- Song Details Presenter method ---*/ public void presenterDestroy(){ view.onPresenterDestroy(); } public void initiate(){ view.onInitiate(); } void showMessage(String message){ view.onShowMessage(message); } /*--- Define Interface ---*/ public interface View{ void onPresenterDestroy(); void onInitiate(); void onShowMessage(String message); } }
[ "12345678" ]
12345678
8b54929e54093aa9d6e8de8ae728da30a0ac24d4
9a8cf96c1dc7f5adec22a05fc54d3e3c45ee66da
/java01/src/java07/Ch6_13_earthexam.java
adad48e4aa5bb55e3651d62d74e0a1246578f60f
[]
no_license
koxk/test
c285925c52d11b0d556052098e95ec8d19d4c545
d5d83e33e472df2b0e1dbb274beb784af833a347
refs/heads/master
2020-03-18T21:04:30.400948
2018-05-29T07:33:07
2018-05-29T07:33:07
135,257,504
0
0
null
null
null
null
UTF-8
Java
false
false
182
java
package java07; public class Ch6_13_earthexam { public static void main(String[] args) { System.out.println("지구의 반지름 : "+Ch6_13_earth.EARTH_RADIUS);; } }
[ "user@user-PC" ]
user@user-PC
6d025604f48c05316df0aafa0640b435208fa6bb
eef45ebc0891a1eb86e51faa1f4370d7d2f9f2f6
/src/com/butent/bee/client/ui/IdentifiableWidget.java
2babbadb3d212b23e2798b101206b0d8af2bf495
[]
no_license
ebagatavicius/bee
6ae4f0ec4fb2436a3b36bfc774a459331f2ae1fb
f558368a5257687d31913e874a7b24fd4930d11c
refs/heads/master
2020-06-06T00:18:57.455397
2017-12-14T17:12:42
2017-12-14T17:12:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
359
java
package com.butent.bee.client.ui; import com.google.gwt.dom.client.Element; import com.google.gwt.user.client.ui.IsWidget; public interface IdentifiableWidget extends IsWidget, HasIdentity { void addStyleName(String style); Element getElement(); void removeStyleName(String style); void setStyleName(String style, boolean add); }
[ "marius@butent.com" ]
marius@butent.com
6db28e5f58b67c4db6f47debd1f02a9147a42798
9254e7279570ac8ef687c416a79bb472146e9b35
/cdn-20180510/src/main/java/com/aliyun/cdn20180510/models/DescribeDomainRealTimeDetailDataResponse.java
6ce22b3b92899ee7f427956baf81b079285bab74
[ "Apache-2.0" ]
permissive
lquterqtd/alibabacloud-java-sdk
3eaa17276dd28004dae6f87e763e13eb90c30032
3e5dca8c36398469e10cdaaa34c314ae0bb640b4
refs/heads/master
2023-08-12T13:56:26.379027
2021-10-19T07:22:15
2021-10-19T07:22:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,214
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.cdn20180510.models; import com.aliyun.tea.*; public class DescribeDomainRealTimeDetailDataResponse extends TeaModel { @NameInMap("headers") @Validation(required = true) public java.util.Map<String, String> headers; @NameInMap("body") @Validation(required = true) public DescribeDomainRealTimeDetailDataResponseBody body; public static DescribeDomainRealTimeDetailDataResponse build(java.util.Map<String, ?> map) throws Exception { DescribeDomainRealTimeDetailDataResponse self = new DescribeDomainRealTimeDetailDataResponse(); return TeaModel.build(map, self); } public DescribeDomainRealTimeDetailDataResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public DescribeDomainRealTimeDetailDataResponse setBody(DescribeDomainRealTimeDetailDataResponseBody body) { this.body = body; return this; } public DescribeDomainRealTimeDetailDataResponseBody getBody() { return this.body; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
3ab6578a11495952c6d3e5b23e163cf8675e0155
1c1eb038bd3407a0da8a8ce34f17f384dda367f3
/Migrated/CrackCode/src/dynamic/MessageMess.java
abf5738e5b1740868ba2fd3e437b56050a3f0c1c
[]
no_license
afaly/CrackCode
ae6e7fcd82a250a1332d55e0a7b0040f63f66b55
3a6cda4e7d9252e496956c88de6e27c3a6bc9dd7
refs/heads/master
2021-01-10T14:04:24.452808
2016-01-04T07:12:58
2016-01-04T07:12:58
45,332,601
0
0
null
null
null
null
UTF-8
Java
false
false
2,234
java
package dynamic; import java.util.Arrays; import java.util.HashSet; public class MessageMess { private int size; private HashSet<String> set; private String s; private int K = 0; private int[] FINAL; public String restore(String[] dictionary, String message) { this.set = new HashSet<String>(Arrays.asList(dictionary)); this.size = message.length(); this.s = message; this.K = 0; int ret = restore(0, 0, new int[size], new int[size]); if (ret == 3) return "IMPOSSIBLE!"; else if (ret == 2) return "AMBIGUOUS!"; else { int mark = FINAL[0]; StringBuilder sb = new StringBuilder(); sb.append(s.charAt(0)); for (int i = 1; i < size; i++) { if (mark != FINAL[i]) { mark = FINAL[i]; sb.append(" "); } sb.append(s.charAt(i)); } return sb.toString(); } } private int check(int[] f, int i, int j) { for (int k = i; k <= j; k++) if (f[k] > 1) return 2; return 0; } private int restore(int i, int j, int[] f, int[] t) { if (j == size - 1) { if (set.contains(s.substring(i, j + 1))) { for (int k = i; k <= j; k++) { f[k]++; t[k] = K; } K++; this.FINAL = t; return check(f, 0, size - 1); } return 3; } int x1 = restore(i, j + 1, f, t); if (set.contains(s.substring(i, j + 1)) && check(f, i, j) == 0) { int[] tt = Arrays.copyOf(t, size); for (int k = i; k <= j; k++) { f[k]++; tt[k] = K; } K++; int x2 = restore(j + 1, j + 1, f, tt); for (int k = i; k <= j; k++) f[k]--; return x2 != 2 ? Math.min(x1, x2) : 2; } return x1; } public static void main(String[] args) { MessageMess m = new MessageMess(); System.out .println(m .restore( new String[] { "HI", "YOU", "SAY", "ABC", "BCD", "CD", "IMPOS", "IBLE", "S", "SS" }, "HIYOUSAYHIHIYOUSAYHIHIYOUSAYHIHIABCBCDYOUSAYHIHIIMPOSSIBLEYOUIMPOSSIBLESAYHIHIIMPOSSIBLEYOUSAYHIHIYOUSAYHIHIYOUSAYHI")); System.out.println(m.restore(new String[] { "IMPOSS", "SIBLE", "S" }, "IMPOSSIBLE")); System.out.println(m.restore( new String[] { "ABC", "BCD", "CD", "ABCB" }, "ABCBCD")); System.out.println(m.restore(new String[] { "IMPOSS", "SIBLE", "S", "IMPOSSIBLE" }, "IMPOSSIBLE")); } }
[ "afathygo@gmail.com" ]
afathygo@gmail.com
b5703a14bed0cb2a6dfdfa2202ce2c0113467384
1f3c00468850bc6e7794cb70efd8dd1c73eda1b5
/SmartTrafficAndroid/src/com/example/smarttraffic/system/PackageInstaller.java
24c0749ebe58b2be90cbd5ed40cbe101812360a0
[]
no_license
litcas/PRJ
2861f3eabe163465fb640b5259d0b946a3d3778a
2cceb861502d8b7b0f54e4b99c50469b3c97b63a
refs/heads/master
2021-06-27T19:32:47.168612
2017-09-17T05:44:31
2017-09-17T05:44:31
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,378
java
package com.example.smarttraffic.system; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.List; import android.app.ActivityManager; import android.content.Context; import android.content.Intent; import android.content.pm.ApplicationInfo; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.content.pm.PackageManager.NameNotFoundException; import android.net.Uri; import android.os.Environment; import android.util.Log; public class PackageInstaller { public final static String apkName = "icall.jpg"; public final static String apkPackage = "com.tianze.itaxi"; public final static String stopapkName = "drive.jpg"; public final static String stopapkPackage = "rocket.trafficeye.android.hmi2"; public static void install(Context ctx, String apkName) { Intent intentInstall = new Intent(); String apkPath = Environment.getExternalStorageDirectory()+"/SmartTraffic/"+apkName; File filePath = new File(CheckVersion.UPDATE_SAVE_DIR); if (!filePath.exists()) { filePath.mkdir(); } File file = new File(apkPath); try { InputStream is = ctx.getAssets().open(apkName); if (!file.exists()) { file.createNewFile(); FileOutputStream os = new FileOutputStream(file); byte[] bytes = new byte[512]; while ((is.read(bytes)) > 0) { os.write(bytes); } os.close(); is.close(); Log.e("", "----------- has been copy to "); } else { Log.e("", "-----------cunzai "); } String permission = "666"; try { String command = "chmod " + permission + " " + apkPath + "/" + apkName; Runtime runtime = Runtime.getRuntime(); runtime.exec(command); } catch (IOException e) { e.printStackTrace(); } } catch (Exception e) { Log.e("", e.toString()); } Log.e("", "fl--" + file.getName() + "-dd---" + file.getAbsolutePath() + "-pa-" + file.getPath()); intentInstall.setAction(android.content.Intent.ACTION_VIEW); intentInstall.setDataAndType(Uri.fromFile(file), "application/vnd.android.package-archive"); intentInstall.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); ctx.startActivity(intentInstall); } public static boolean checkApkExist(Context context, String packageName) { if (packageName == null || "".equals(packageName)) return false; try { ApplicationInfo info = context.getPackageManager() .getApplicationInfo(packageName, PackageManager.GET_UNINSTALLED_PACKAGES); openPackage(context,info); return true; } catch (NameNotFoundException e) { return false; } } public static void openPackage(Context context,ApplicationInfo info){ Intent mLaunchIntent = context.getPackageManager().getLaunchIntentForPackage( info.packageName); context.startActivity(mLaunchIntent); } public boolean isStartService(Context ctx) { ActivityManager mActivityManager = (ActivityManager) ctx .getSystemService(Context.ACTIVITY_SERVICE); List<ActivityManager.RunningServiceInfo> currentService = mActivityManager .getRunningServices(100); final String igrsClassName = "com.iflytek.asr.AsrService"; //serviceName boolean b = igrsBaseServiceIsStart(currentService, igrsClassName); return b; } private boolean igrsBaseServiceIsStart( List<ActivityManager.RunningServiceInfo> mServiceList, String className) { for (int i = 0; i < mServiceList.size(); i++) { if (className.equals(mServiceList.get(i).service.getClassName())) { return true; } } return false; } public static void getUninatllApkInfo(Context context, String archiveFilePath){ PackageManager pm = context.getPackageManager(); PackageInfo info = pm.getPackageArchiveInfo(archiveFilePath, PackageManager.GET_ACTIVITIES); if(info != null){ ApplicationInfo appInfo = info.applicationInfo; String packageName = appInfo.packageName; System.out.println("packageName"+packageName); // String appName = pm.getApplicationLabel(appInfo).toString(); // Drawable icon = pm.getApplicationIcon(appInfo); } else { System.out.println("info == null"); } } }
[ "393054246@qq.com" ]
393054246@qq.com
c7f1515eb5e574262f5a249a7ba4e33453896ad3
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/17/17_127b03b1a0f197db114c40e6dd3b46dca3db26c7/UserService/17_127b03b1a0f197db114c40e6dd3b46dca3db26c7_UserService_s.java
2e7bd06d97d9d5cf4bcd18a061b5f6fab6c567b3
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
1,473
java
/** * Vosao CMS. Simple CMS for Google App Engine. * Copyright (C) 2009 Vosao development team * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * email: vosao.dev@gmail.com */ package org.vosao.service.back; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import org.vosao.entity.UserEntity; import org.vosao.service.AbstractService; import org.vosao.service.ServiceResponse; /** * @author Alexander Oleynik */ public interface UserService extends AbstractService { List<UserEntity> select(); ServiceResponse remove(final List<Long> ids); UserEntity getById(final Long id); ServiceResponse save(final Map<String, String> vo); UserEntity getLoggedIn(HttpServletRequest request); }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
20ea91aca635548008dce0197be30b41f17594f6
fe93a621dab272deb2d387049857295063d0480d
/src/main/java/org/wildfly/discovery/ServicesQueue.java
b7b44cbc84d67a7fe399ba771725c0b6e065225a
[]
no_license
fjuma/wildfly-discovery
958e25c10ac0cfbd471d85249d6bc2911f36835a
c17d79eb65495b5010f0fe2df813d42634c6d6b0
refs/heads/master
2021-01-21T02:20:50.670684
2015-07-02T19:26:47
2015-07-02T19:26:47
38,834,291
0
0
null
2015-07-09T17:11:52
2015-07-09T17:11:51
null
UTF-8
Java
false
false
2,636
java
/* * JBoss, Home of Professional Open Source. * Copyright 2014 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.wildfly.discovery; import java.net.URI; /** * A queue for receiving service query answers. * * @author <a href="mailto:david.lloyd@redhat.com">David M. Lloyd</a> */ public interface ServicesQueue extends AutoCloseable { /** * Wait for a queue entry to become available. When this method returns, {@link #poll()} will return a value (or * {@code null} if all services have been read) and {@link #take()} will return without blocking. * * @throws InterruptedException if the calling thread was interrupted while waiting for the next entry */ void await() throws InterruptedException; /** * Query whether there is a value ready to be read. * * @return {@code true} if the queue has a value, {@code false} otherwise */ boolean isReady(); /** * Get the next entry from the queue without blocking. Returns {@code null} if there is no entry ready, or if * the queue is finished (all services have been read). Use {@link #isFinished()} to distinguish the cases. * * @return the next URI, or {@code null} if the queue is not ready or is finished */ URI poll(); /** * Get the next entry from the queue, blocking until one is available or the thread is interrupted. Returns * {@code null} if the queue is finished (all services have been read). * * @return the next URI, or {@code null} if the queue is finished * @throws InterruptedException if the calling thread was interrupted while waiting for the next entry */ URI take() throws InterruptedException; /** * Query whether this queue is finished (all services have been read). * * @return {@code true} if the queue is finished, {@code false} otherwise */ boolean isFinished(); /** * Cancel any in-progress discovery for this queue. This method is idempotent. */ void close(); }
[ "david.lloyd@redhat.com" ]
david.lloyd@redhat.com
dffbd936dd11503127d3a5f5f7fb97f0da11b4e8
028cbe18b4e5c347f664c592cbc7f56729b74060
/v2/entity-persistence/src/java/oracle/toplink/essentials/internal/parsing/AllNode.java
2d8beb96c59555949d1198ce6db53e03d25756b6
[]
no_license
dmatej/Glassfish-SVN-Patched
8d355ff753b23a9a1bd9d7475fa4b2cfd3b40f9e
269e29ba90db6d9c38271f7acd2affcacf2416f1
refs/heads/master
2021-05-28T12:55:06.267463
2014-11-11T04:21:44
2014-11-11T04:21:44
23,610,469
1
0
null
null
null
null
UTF-8
Java
false
false
2,939
java
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * // Copyright (c) 1998, 2007, Oracle. All rights reserved. * * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution License("CDDL") (collectively, the "License"). You * may not use this file except in compliance with the License. You can obtain * a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html * or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific * language governing permissions and limitations under the License. * * When distributing the software, include this License Header Notice in each * file and include the License file at glassfish/bootstrap/legal/LICENSE.txt. * Sun designates this particular file as subject to the "Classpath" exception * as provided by Sun in the GPL Version 2 section of the License file that * accompanied this code. If applicable, add the following below the License * Header, with the fields enclosed by brackets [] replaced by your own * identifying information: "Portions Copyrighted [year] * [name of copyright owner]" * * Contributor(s): * * If you wish your version of this file to be governed by only the CDDL or * only the GPL Version 2, indicate your decision by adding "[Contributor] * elects to include this software in this distribution under the [CDDL or GPL * Version 2] license." If you don't indicate a single choice of license, a * recipient has the option to distribute your version of this file under * either the CDDL, the GPL Version 2 or to extend the choice of license to * its licensees as provided above. However, if you add GPL Version 2 code * and therefore, elected the GPL Version 2 license, then the option applies * only if the new code is made subject to such option by the copyright * holder. */ package oracle.toplink.essentials.internal.parsing; import oracle.toplink.essentials.expressions.*; import oracle.toplink.essentials.queryframework.ReportQuery; /** * INTERNAL * <p><b>Purpose</b>: Represent an ALL subquery. */ public class AllNode extends Node { /** * Return a new AllNode. */ public AllNode() { super(); } /** * INTERNAL * Validate node and calculate its type. */ public void validate(ParseTreeContext context) { if (left != null) { left.validate(context); setType(left.getType()); } } /** * INTERNAL * Generate the TopLink expression for this node */ public Expression generateExpression(GenerationContext context) { SubqueryNode subqueryNode = (SubqueryNode)getLeft(); ReportQuery reportQuery = subqueryNode.getReportQuery(context); Expression expr = context.getBaseExpression(); return expr.all(reportQuery); } }
[ "kohsuke@6f3ba3e3-413c-0410-a8aa-90bee3ab43b5" ]
kohsuke@6f3ba3e3-413c-0410-a8aa-90bee3ab43b5
b9078ef423fc4227bd7510d18bb9f2535b7e37da
4b4f27637dc57f3025935c6fb2bc1daf86b8407a
/src/Gun039/JavaEnum/Ex1/ex1.java
f18b62067eb6ca974360f0043d5f1cfd1f28768b
[]
no_license
ctntprk63/JavaKursum
954bd8fada47fb448b9a0b49bc6cd6354a7806eb
6f33820d4e681a617ca717192283ca63bece1d42
refs/heads/master
2022-12-03T19:06:53.571025
2020-08-30T09:51:30
2020-08-30T09:51:30
291,442,384
0
0
null
null
null
null
UTF-8
Java
false
false
932
java
package Gun039.JavaEnum.Ex1; public class ex1 { public static void main(String[] args) { // verilen ay nosuna göre ayın kaç gün olduğunu yazdırnız. //int sayi = 5; gibi. Aylar ay =Aylar.MART; System.out.println("ay = " + ay); // ay = MART System.out.println("ay.name() = " + ay.name()); // ay.name() = MART System.out.println("ay.ordinal() = " + ay.ordinal()); // ay.ordinal() = 2 switch (ay) { case OCAK: System.out.println(31); break; case SUBAT: System.out.println(28); break; case MART: System.out.println(30); break; case NISAN: System.out.println(31); break; case MAYIS: System.out.println(30); break; } } }
[ "cetintoprak63@gmail.com" ]
cetintoprak63@gmail.com
537063126fbbcb4dbfab22c170e0eb0a0127c721
d74c2ca437a58670dc8bfbf20a3babaecb7d0bea
/SAP_858310_lines/Source - 963k/js.webservices.lib/dev/src/_tc~je~webservices_lib/java/com/sap/engine/services/webservices/tools/exceptionmanager.java
438fd6a51f35915e93e723b73601f44640b913c0
[]
no_license
javafullstackstudens/JAVA_SAP
e848e9e1a101baa4596ff27ce1aedb90e8dfaae8
f1b826bd8a13d1432e3ddd4845ac752208df4f05
refs/heads/master
2023-06-05T20:00:48.946268
2021-06-30T10:07:39
2021-06-30T10:07:39
381,657,064
0
0
null
null
null
null
UTF-8
Java
false
false
5,181
java
/* * Copyright (c) 2003 by SAP Labs Bulgaria, * All rights reserved. * * This software is the confidential and proprietary information * of SAP Labs Bulgaria. You shall not disclose such Confidential * Information and shall use it only in accordance with the terms * of the license agreement you entered into with SAP Labs Bulgaria. */ package com.sap.engine.services.webservices.tools; import java.io.PrintWriter; import java.io.StringWriter; import java.lang.reflect.InvocationTargetException; import java.net.UnknownHostException; import java.rmi.RemoteException; import java.util.Locale; import javax.xml.transform.TransformerException; import com.sap.engine.lib.xml.parser.NestedSAXParseException; import com.sap.engine.lib.xml.util.NestedException; import com.sap.exception.IBaseException; import com.sap.tc.logging.Category; import com.sap.tc.logging.Location; /** * @author Alexander Zubev (alexander.zubev@sap.com) */ public class ExceptionManager { public static Throwable getOriginalError(Throwable thr) { Throwable cause = null; if (thr instanceof IBaseException) { cause = ((IBaseException) thr).getCause(); } else if (thr instanceof NestedException) { cause = ((NestedException) thr).getCause(); } else if (thr instanceof NestedSAXParseException) { cause = ((NestedSAXParseException) thr).getException(); } else if (thr instanceof TransformerException) { cause = ((TransformerException) thr).getException(); } else if (thr instanceof RemoteException) { cause = ((RemoteException) thr).detail; } else if (thr instanceof InvocationTargetException) { cause = ((InvocationTargetException) thr).getTargetException(); } else { //use the standard cause cause = thr.getCause(); } if (cause != null) { return getOriginalError(cause); } else { return thr; } } public static String getErrorMessage(Throwable thr) { Throwable originalError = getOriginalError(thr); if (originalError instanceof UnknownHostException) { if (originalError.getMessage() != null) { return "Unknown host. Check your proxy settings: " + originalError.getMessage(); } else { return originalError.toString(); } } else if (originalError instanceof ClassCastException) { return originalError.toString(); } String msg; if (originalError instanceof IBaseException) { msg = ((IBaseException) originalError).getLocalizedMessage(new Locale("en", "")); } else { msg = originalError.getMessage(); } if (msg != null) { return msg; } else { return originalError.toString(); } } public static String getChainedErrors(Throwable thr) { if (thr == null) { return null; } Throwable cause = null; if (thr instanceof IBaseException) { cause = ((IBaseException) thr).getCause(); } else if (thr instanceof NestedException) { cause = ((NestedException) thr).getCause(); } else if (thr instanceof NestedSAXParseException) { cause = ((NestedSAXParseException) thr).getException(); } else if (thr instanceof TransformerException) { cause = ((TransformerException) thr).getException(); } else if (thr instanceof RemoteException) { cause = ((RemoteException) thr).detail; } else if (thr instanceof InvocationTargetException) { cause = ((InvocationTargetException) thr).getTargetException(); } else { //use the standard cause cause = thr.getCause(); } String res = thr.toString(); if (cause != null) { res += "->"; return res += getChainedErrors(cause); } else { return res; } } public static void logThrowable( int severity, Category category, Location location, String method, Throwable throwable) { StringWriter writer = new StringWriter(); PrintWriter wrapper = new PrintWriter(writer); throwable.printStackTrace(wrapper); if (category != null) { category.logT(severity, location, method, getChainedErrors(throwable)); } location.logT(severity, method, throwable.toString()); location.logT(severity, method, writer.toString()); } public static void logThrowable( int severity, Category category, Location location, String method, String message, Throwable throwable) { StringWriter writer = new StringWriter(); PrintWriter wrapper = new PrintWriter(writer); throwable.printStackTrace(wrapper); if (category != null) { category.logT(severity, location, method, message + " " + getChainedErrors(throwable)); } location.logT(severity, method, throwable.toString()); location.logT(severity, method, writer.toString()); } public static void traceThrowable(int severity, Location location, String method, Throwable throwable) { StringWriter writer = new StringWriter(); PrintWriter wrapper = new PrintWriter(writer); throwable.printStackTrace(wrapper); location.logT(severity, method, throwable.toString()); location.logT(severity, method, writer.toString()); } }
[ "Yalin.Arie@checkmarx.com" ]
Yalin.Arie@checkmarx.com
61ffae1a528f3aa667db872e22ef43dd57712160
180e78725121de49801e34de358c32cf7148b0a2
/dataset/protocol1/jdbi/learning/5626/Beta.java
4d356cf4383a0dfbc783dcac5f41e35223458b8e
[]
no_license
ASSERT-KTH/synthetic-checkstyle-error-dataset
40e8d1e0a7ebe7f7711def96a390891a6922f7bd
40c057e1669584bfc6fecf789b5b2854660222f3
refs/heads/master
2023-03-18T12:50:55.410343
2019-01-25T09:54:39
2019-01-25T09:54:39
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,044
java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.jdbi.v3.meta; import java.lang.annotation.Documented; import java.lang.annotation.Inherited; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.ANNOTATION_TYPE; import static java.lang.annotation.ElementType.CONSTRUCTOR; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.ElementType.METHOD; import static java.lang. annotation.ElementType.PARAMETER; import static java.lang.annotation.ElementType.TYPE; /** * Signifies that a public API (public class, method or field) is subject to incompatible changes, * or even removal, in a future release. An API bearing this annotation is exempt from any * compatibility guarantees made by its containing library. * * <p>Note that the presence of this annotation implies nothing about the quality or performance of * the API in question, only the fact that it is not "API-frozen." * * <p>It is generally safe for applications to depend on beta APIs, at the cost of some extra work * during upgrades. However it is generally inadvisable for libraries (which get included on users' * CLASSPATHs, outside the library developers' control) to do so. * * @see <a * href="https://google.github.io/guava/releases/15.0/api/docs/com/google/common/annotations/Beta.html">Courtesy * of Kevin Bourrillion's @Beta at Guava</a> */ @Documented @Inherited @Target({TYPE, FIELD, METHOD, PARAMETER, CONSTRUCTOR, ANNOTATION_TYPE}) public @interface Beta {}
[ "bloriot97@gmail.com" ]
bloriot97@gmail.com
d3435b4fe5283d9208810a099dd93085550d9bcd
f972d7b286b8b2aff7115d51f7b6294d6aac3fb0
/app/src/main/java/com/glavesoft/pawnuser/activity/pawn/OrgandetailActivity.java
d9a89a3c21b796ad6971c78892c8c3e0fd649033
[]
no_license
phx1314/pawn_user
3ed69e30ddb8bdedc793feff07a4830080a5fcb0
99c895dcfea41dc2f97427b5deccae24a3687065
refs/heads/master
2022-12-02T06:59:10.847405
2020-08-11T10:25:19
2020-08-11T10:25:19
264,847,440
0
0
null
null
null
null
UTF-8
Java
false
false
6,545
java
package com.glavesoft.pawnuser.activity.pawn; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ImageView; import android.widget.TextView; import com.android.volley.VolleyError; import com.glavesoft.okGo.JsonCallback; import com.glavesoft.pawnuser.R; import com.glavesoft.pawnuser.activity.main.ImagePageActivity; import com.glavesoft.pawnuser.adapter.CommonAdapter; import com.glavesoft.pawnuser.adapter.ViewHolder; import com.glavesoft.pawnuser.base.BaseActivity; import com.glavesoft.pawnuser.constant.BaseConstant; import com.glavesoft.pawnuser.mod.DataResult; import com.glavesoft.pawnuser.mod.LocalData; import com.glavesoft.pawnuser.mod.OrgPawnDetailInfo; import com.glavesoft.view.CustomToast; import com.glavesoft.view.GridViewForNoScroll; import com.glavesoft.volley.net.ResponseListener; import com.glavesoft.volley.net.VolleyUtil; import com.google.gson.reflect.TypeToken; import com.lzy.okgo.OkGo; import com.lzy.okgo.model.HttpParams; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; /** * @author 严光 * @date: 2017/11/30 * @company:常州宝丰 */ public class OrgandetailActivity extends BaseActivity { private TextView tv_name_organdetail,tv_dealAmount_organdetail,tv_registeredCapital_organdetail ,tv_lagalPerson_organdetail,tv_address_organdetail,tv_introduction_organdetail; private GridViewForNoScroll gv_pics_organdetail; private ArrayList<String> picurlList=new ArrayList<>(); private OrgPawnDetailInfo orgPawnDetailInfo; private String id; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_organdetail); id=getIntent().getStringExtra("id"); initView(); } private void initView() { setTitleBack(); setTitleName("典当行详情"); tv_name_organdetail=getViewById(R.id.tv_name_organdetail); tv_dealAmount_organdetail=getViewById(R.id.tv_dealAmount_organdetail); tv_registeredCapital_organdetail=getViewById(R.id.tv_registeredCapital_organdetail); tv_lagalPerson_organdetail=getViewById(R.id.tv_lagalPerson_organdetail); tv_address_organdetail=getViewById(R.id.tv_address_organdetail); tv_introduction_organdetail=getViewById(R.id.tv_introduction_organdetail); gv_pics_organdetail=getViewById(R.id.gv_pics_organdetail); gv_pics_organdetail.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Intent intent=new Intent(); intent.setClass(OrgandetailActivity.this, ImagePageActivity.class); intent.putExtra("picurlList",picurlList); intent.putExtra("selectPos",position); startActivity(intent); } }); checkOrgPawnDetail(); } private void checkOrgPawnDetail() { getlDialog().show(); String token= LocalData.getInstance().getUserInfo().getToken(); String url=BaseConstant.getApiPostUrl("userPawn/checkOrgPawnDetail"); HttpParams param=new HttpParams(); param.put("token",token); param.put("id",id); OkGo.<DataResult<OrgPawnDetailInfo>>post(url) .params(param) .execute(new JsonCallback<DataResult<OrgPawnDetailInfo>>() { @Override public void onSuccess(com.lzy.okgo.model.Response<DataResult<OrgPawnDetailInfo>> response) { getlDialog().dismiss(); if (response==null){ CustomToast.show(getString(R.string.http_request_fail)); return; } if(response.body().getErrorCode()== DataResult.RESULT_OK_ZERO){ if(response.body().getData()!=null){ orgPawnDetailInfo=response.body().getData(); tv_name_organdetail.setText(orgPawnDetailInfo.getOrgName()); tv_dealAmount_organdetail.setText(orgPawnDetailInfo.getDealAmount()+"笔"); tv_registeredCapital_organdetail.setText(orgPawnDetailInfo.getRegisteredCapital()+"元"); tv_lagalPerson_organdetail.setText(orgPawnDetailInfo.getLagalPerson()); tv_address_organdetail.setText(orgPawnDetailInfo.getAddress()); tv_introduction_organdetail.setText(orgPawnDetailInfo.getIntroduction()); if(orgPawnDetailInfo.getOrgImages()!=null&&!orgPawnDetailInfo.getOrgImages().equals("")){ List<String> list= Arrays.asList(orgPawnDetailInfo.getOrgImages().split(",")); for(int i=0;i<list.size();i++){ picurlList.add(BaseConstant.Image_URL+list.get(i)); } showList(list); } } }else if (DataResult.RESULT_102 == response.body().getErrorCode()) { toLogin(); }else { CustomToast.show(response.body().getErrorMsg()); } } @Override public void onError(com.lzy.okgo.model.Response<DataResult<OrgPawnDetailInfo>> response) { getlDialog().dismiss(); showVolleyError(null); } }); } private void showList(List<String> result) { CommonAdapter commAdapter = new CommonAdapter<String>(OrgandetailActivity.this, result, R.layout.item_pic_pawn) { @Override public void convert(final ViewHolder helper, final String item) { ImageView iv_pic_pawn=(ImageView) helper.getView(R.id.iv_pic_pawn); getImageLoader().displayImage(BaseConstant.Image_URL+item,iv_pic_pawn,getImageLoaderOptions()); } }; gv_pics_organdetail.setAdapter(commAdapter); } }
[ "daif@deepblueai.com" ]
daif@deepblueai.com
3dfb5cc6b62e35244d9c572e78e06e1556faaebb
935f3e01ad8f0b05565a8f93f7aeb544179cf8b5
/java/com/hmdzl/spspd/change/sprites/BlueWraithSprite.java
376fcc5e41dcb097ea329f99db481006b17df503
[]
no_license
JustYourAverageWeeb/SPS-PD
61d4cdb51cdadd3502463062f1d786782f9c439a
e7898cfd1a40e84e903749c59a7365e6efe866a4
refs/heads/master
2022-04-21T02:30:32.728878
2020-04-11T13:20:32
2020-04-11T13:20:32
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,355
java
/* * Pixel Dungeon * Copyright (C) 2012-2014 Oleg Dolya * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/> */ package com.hmdzl.spspd.change.sprites; import com.hmdzl.spspd.change.Assets; import com.watabou.noosa.TextureFilm; public class BlueWraithSprite extends MobSprite { public BlueWraithSprite() { super(); texture(Assets.BLUEWRAITH); TextureFilm frames = new TextureFilm(texture, 14, 15); idle = new Animation(5, true); idle.frames(frames, 0, 1); run = new Animation(10, true); run.frames(frames, 0, 1); attack = new Animation(10, false); attack.frames(frames, 0, 2, 3); die = new Animation(8, false); die.frames(frames, 0, 4, 5, 6, 7); play(idle); } @Override public int blood() { return 0x88000000; } }
[ "295754791@qq.com" ]
295754791@qq.com
d52439a622e131b9ed2e0723be3f40076d190296
ed5159d056e98d6715357d0d14a9b3f20b764f89
/src/irvine/oeis/a236/A236684.java
15f52def204dafc8e155be99038eca91fefef35b
[]
no_license
flywind2/joeis
c5753169cf562939b04dd246f8a2958e97f74558
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
refs/heads/master
2020-09-13T18:34:35.080552
2019-11-19T05:40:55
2019-11-19T05:40:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
514
java
package irvine.oeis.a236; import irvine.oeis.FiniteSequence; /** * A236684 Values of c of triples <code>(a,b,c)</code> of positive integers such that <code>1/a + 1/b + 1/c = 1/2</code> and a <code>&lt;= b &lt;=</code> c. Listed with multiplicity, corresponding to solutions <code>(a,b,c)</code> listed in lexicographic order. * @author Georg Fischer */ public class A236684 extends FiniteSequence { /** Construct the sequence. */ public A236684() { super(42, 24, 18, 15, 12, 20, 12, 8, 10, 6); } }
[ "sean.irvine@realtimegenomics.com" ]
sean.irvine@realtimegenomics.com
2184b2cbe5695ad6466fa681b69cec53bb1a654b
31e0f30df5997c70f4336ab46ab1be50f8f5a65f
/chapter8/src/main/java/com/smart/aspectj/fun/TestAspect.java
6dba578a6407baf9d4e988c7a905497198f619a0
[]
no_license
zhengshiming123/spring
395e6e94c2a03969593a4baaa4ed83c34e8f5c5c
789376844db6c90d6acab8426ac7a1332da2f5dc
refs/heads/master
2021-08-18T17:01:03.343277
2017-11-23T11:11:02
2017-11-23T11:11:02
110,674,853
0
0
null
null
null
null
UTF-8
Java
false
false
2,095
java
package com.smart.aspectj.fun; import org.aspectj.lang.annotation.AfterReturning; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Before; import org.springframework.core.Ordered; /** * 说明:需要测试某个切点函数时,取消相应的注解就可以了。 * @author 陈雄华 * */ @Aspect public class TestAspect implements Ordered{ // @Before("execution(public * *(..))") // public void allPublicFun(){ // System.out.println("allPublicFun() executed!"); // } // @AfterReturning("execution(* *To(..))") // public void allToFun(){ // System.out.println("allToFun() executed!"); // } // @Before("execution(* com.smart.aspectj.fun.Waiter.*(..))") // public void allWaiterFun(){ // System.out.println("allWaiterFun() executed!"); // } // @Before("execution(* com.smart.aspectj.fun.Waiter+.*(..))") // public void allChildClassFun(){ // System.out.println("allChildClassFun() executed!"); // } // @Before("execution(* joke(Object,int)))") @Before("args(Object,*)") public void jokeFun(){ System.out.println("jokeFun() executed!"); } // @AfterReturning("@within(com.smart.Monitorable) || @annotation(com.smart.anno.NeedTest) ") // public void atAnnotaionTest(){ // System.out.println("atAnnotaionTest() executed!"); // } // @AfterReturning("args(String)") // public void argsTest(){ // System.out.println("argsTest() executed!"); // } // @AfterReturning("@args(Monitorable)") // public void atArgsTest(){ // System.out.println("atArgsTest() executed!"); // } // @Before("within(com.smart.aspectj.fun.Waiter)") // public void withinTest(){ // System.out.println("withinTest() executed!"); // } // @Before("@within(com.smart.aspectj.fun.Monitorable)") // public void atWithinTest() { // System.out.println("atWithinTest() executed!"); // } @AfterReturning("this(com.smart.Seller)") public void thisTest(){ System.out.println("thisTest() executed!"); } public int getOrder() { // TODO Auto-generated method stub return 1; } }
[ "1" ]
1
6c72b750e2c05c1cec80a370306296c8de827fa2
d3ff6e6afb81af0a307a97f5e63e05aafbde813d
/api/src/com/theah64/scd/Lab.java
dc19227846d1ecdac8dfefc68edcc4634db76ab6
[ "Apache-2.0" ]
permissive
emtee40/SoundCloud-Downloader-3
53578a06d7ce9a86107bd3d83a404395203b718d
c82481a20cb5c41b32b4322ba021a5116fe0335a
refs/heads/master
2023-01-08T18:52:38.200478
2018-11-30T14:40:37
2018-11-30T14:40:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
146
java
package com.theah64.scd; /** * Created by theapache64 on 8/12/16. */ public class Lab { public static void main(String[] args) { } }
[ "theapache64@gmail.com" ]
theapache64@gmail.com
3dfbd3f44f2da260510c559a6378cf675757bbcb
3520df6b2f60ca55795905638736bfb30decf1bf
/ldh-shop-service-impl/ldh-shop-service-member-impl/src/main/java/com/liudehuang/member/service/impl/QQAuthoriServiceImpl.java
c071915e74dbe473c2e1700a51c647a191645923
[]
no_license
8Liu/ldhshopparent
731f72d8e0910eebfb22ada19a7a1b832808611e
3db83542b58de2d07d5264efcc6e1c65becb34d7
refs/heads/master
2020-05-17T17:21:51.182973
2019-05-17T10:22:19
2019-05-17T10:22:21
183,849,634
0
1
null
null
null
null
UTF-8
Java
false
false
3,262
java
package com.liudehuang.member.service.impl; import com.alibaba.fastjson.JSONObject; import com.liudehuang.core.base.BaseApiService; import com.liudehuang.core.base.BaseResponse; import com.liudehuang.core.constants.Constants; import com.liudehuang.core.token.GenerateToken; import com.liudehuang.core.transactiion.RedisDataSoureceTransaction; import com.liudehuang.member.entity.UserDo; import com.liudehuang.member.entity.UserTokenDo; import com.liudehuang.member.mapper.UserMapper; import com.liudehuang.member.mapper.UserTokenMapper; import com.liudehuang.member.service.QQAuthoriService; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.transaction.TransactionStatus; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; @RestController public class QQAuthoriServiceImpl extends BaseApiService<JSONObject> implements QQAuthoriService { @Autowired private UserMapper userMapper; @Autowired private GenerateToken generateToken; @Autowired private UserTokenMapper userTokenMapper; @Autowired private RedisDataSoureceTransaction redisDataSoureceTransaction; @Override public BaseResponse<JSONObject> findByOpenId(@RequestParam("qqOpenId") String qqOpenId,@RequestParam("loginType") String loginType) { if (StringUtils.isEmpty(qqOpenId)) { return setResultError("qqOpenId不能为空!"); } // 1.根据openid查询用户信息 UserDo userDo = userMapper.findByOpenId(qqOpenId); if (userDo == null) { return setResultError(Constants.HTTP_RES_CODE_NOTUSER_203, "根据qqOpenId没有查询到用户信息"); } TransactionStatus status = null; try{ Long userId = userDo.getUserId(); //根据userId+loginType查询当前登录类型账号之前是否登录过,如果登录过,清楚之前redis的token UserTokenDo userTokenDo = userTokenMapper.selectByUserIdAndLoginType(userId, loginType); if(userTokenDo!=null){ //说明之前登录过 Boolean flag = generateToken.removeToken(userTokenDo.getToken()); //把该token的状态改为1 int updateTokenAvailability = userTokenMapper.updateTokenAvailability(userTokenDo.getToken()); if(!toDaoResult(updateTokenAvailability)){ return setResultError("系统错误"); } } UserTokenDo userToken = new UserTokenDo(); userToken.setUserId(userId); userToken.setLoginType(loginType); // 2.如果能够查询到用户信息,则直接生成对应的用户令牌 String keyPrefix = Constants.MEMBER_TOKEN_KEYPREFIX + Constants.HTTP_RES_CODE_QQ_LOGINTYPE; String token = generateToken.createToken(keyPrefix, userId + ""); userToken.setToken(token); int row = userTokenMapper.insertUserToken(userToken); if(!toDaoResult(row)){ redisDataSoureceTransaction.rollback(status); return setResultError("系统错误"); } JSONObject data = new JSONObject(); data.put("token",token); redisDataSoureceTransaction.commit(status); return setResultSuccess(data); }catch (Exception e){ try { redisDataSoureceTransaction.rollback(status); } catch (Exception e1) { e1.printStackTrace(); } return setResultError("系统错误"); } } }
[ "2969878315@qq.com" ]
2969878315@qq.com
e12d9f708cfe6f51e43293bffca20d1f82913b0f
0af8b92686a58eb0b64e319b22411432aca7a8f3
/large-multiproject/project67/src/main/java/org/gradle/test/performance67_2/Production67_187.java
26afd484bd16f627b134c7edd8e44624c39c6fcf
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
305
java
package org.gradle.test.performance67_2; public class Production67_187 extends org.gradle.test.performance15_2.Production15_187 { private final String property; public Production67_187() { this.property = "foo"; } public String getProperty() { return property; } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
61b4e250cbb3fe2e28857ef1863c9528ad73551e
d81fd75783d56945382c1382b5f7b6004fe5c309
/vendor/bonitasoft/bonita-connectors/5.7.2/bonita/src/main/java/org/bonitasoft/connectors/bonita/AddDocuments.java
94459791740f34871496bae82f1e6df8f896bb0e
[]
no_license
sirpentagon/bpm-infufsm
51fc76013d60e109550aab1998ca3b44ba7e5bb0
bbcff4ef2d7b4383b41ed37a1e7387c5bbefc6dd
refs/heads/master
2021-01-25T13:11:48.217742
2014-04-28T17:06:02
2014-04-28T17:06:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,491
java
/** * Copyright (C) 2011-2012 BonitaSoft S.A. * BonitaSoft, 31 rue Gustave Eiffel - 38000 Grenoble * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2.0 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.bonitasoft.connectors.bonita; import java.io.BufferedInputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.logging.Level; import java.util.logging.Logger; import javax.activation.MimetypesFileTypeMap; import org.ow2.bonita.connector.core.ConnectorError; import org.ow2.bonita.connector.core.ProcessConnector; import org.ow2.bonita.facade.RuntimeAPI; import org.ow2.bonita.facade.runtime.Document; /** * @author Yanyan Liu * */ public class AddDocuments extends ProcessConnector { private static final Logger LOG = Logger.getLogger(AddDocuments.class.getName()); private Map<String, String> documents; private final List<Document> documentList = new ArrayList<Document>(); @Override protected void executeConnector() throws Exception { final RuntimeAPI runtimeAPI = getApiAccessor().getRuntimeAPI(); for (final Entry<String, String> doc : documents.entrySet()) { final File file = new File(doc.getValue()); final BufferedInputStream bis = new BufferedInputStream(new FileInputStream(file)); final int length = (int) file.length(); final byte[] content = new byte[length]; try { bis.read(content, 0, length); } catch (final IOException e) { if (LOG.isLoggable(Level.SEVERE)) { LOG.severe(e.getMessage()); } throw e; } finally { if (bis != null) { bis.close(); } } final Document document = runtimeAPI.createDocument(doc.getKey(), getProcessInstanceUUID(), file.getName(), getType(file), content); if (LOG.isLoggable(Level.FINE)) { LOG.fine("document.name = " + document.getName() + "\tdocument.ContentFileName" + document.getContentFileName() + "\tdocument.uuid = " + document.getUUID()); } documentList.add(document); } } @Override protected List<ConnectorError> validateValues() { final List<ConnectorError> errors = new ArrayList<ConnectorError>(); for (final Entry<String, String> doc : documents.entrySet()) { final ConnectorError error = checkFile(doc.getKey(), doc.getValue()); if (error != null) { errors.add(error); } } return errors; } /** * get document list * * @return List<Document> */ public List<Document> getDocumentList() { return documentList; } /** * set documents * * @param documents */ public void setDocuments(final java.util.List<List<Object>> documents) { this.documents = this.bonitaListToMap(documents, String.class, String.class); } private ConnectorError checkFile(final String fileName, final String filePath) { ConnectorError error = null; final File file = new File(filePath); if (!file.exists()) { error = new ConnectorError(fileName, new FileNotFoundException("Cannot access to " + filePath)); } else if (!file.isFile()) { error = new ConnectorError(fileName, new FileNotFoundException(filePath + " is not a file")); } else if (!file.canRead()) { error = new ConnectorError(fileName, new FileNotFoundException("Cannot read " + filePath)); } return error; } /** * get file mimeType * * @param file * @return String */ private String getType(final File file) { final MimetypesFileTypeMap mimeTypesMap = new MimetypesFileTypeMap(); return mimeTypesMap.getContentType(file); } }
[ "andrea@inf.ufsm.br" ]
andrea@inf.ufsm.br
053f00438422bd5e1f693b395df3ab855a200af7
80b4689c280c1dc9bfac1fa3e0627e4e7a9bfbc3
/Lab3/src/music/exception/IncompatibleTypeException.java
2449b7c8c6d8ae60d3e59542749e305f5236a3b8
[]
no_license
davekessener/SoftwareConstruction
fd96ee695af7d1b8cc28d5eccb2612f185b494c0
27a847ea8038ef788e0e1db7ddc84f875c64a9d7
refs/heads/master
2016-09-06T17:36:48.327058
2014-09-26T08:50:34
2014-09-26T08:50:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
577
java
package music.exception; import music.IMusic; import music.Song; public class IncompatibleTypeException extends SongException { private static final long serialVersionUID = -5129251986588625750L; protected IMusic.typeOfMusic type; protected Song song; public IncompatibleTypeException(IMusic.typeOfMusic t, Song s) { super(String.format(_F_, s.getTitle(), t.name())); type = t; song = s; } public IMusic.typeOfMusic getType() { return type; } public Song getSong() { return song; } protected static final String _F_ = "Song '%s' is not of type '%s'."; }
[ "davekessener@gmail.com" ]
davekessener@gmail.com
6535c7551f5b581400d8cd8c09d7324079f5a182
4c304a7a7aa8671d7d1b9353acf488fdd5008380
/src/main/java/com/alipay/api/domain/AlipayEbppInvoiceRegisterCreateModel.java
2d5dc9574bca4d3546125a522a9cef56fe8d90d1
[ "Apache-2.0" ]
permissive
zhaorongxi/alipay-sdk-java-all
c658983d390e432c3787c76a50f4a8d00591cd5c
6deda10cda38a25dcba3b61498fb9ea839903871
refs/heads/master
2021-02-15T19:39:11.858966
2020-02-16T10:44:38
2020-02-16T10:44:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,163
java
package com.alipay.api.domain; import java.util.List; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.internal.mapping.ApiListField; /** * 提交入驻工单信息 * * @author auto create * @since 1.0, 2020-02-13 14:44:50 */ public class AlipayEbppInvoiceRegisterCreateModel extends AlipayObject { private static final long serialVersionUID = 2621675686442677886L; /** * 联系人信息 */ @ApiField("contact_info") private InvoiceContactInfo contactInfo; /** * 拓展字段,json格式 */ @ApiField("ext_json") private String extJson; /** * 企业税务信息 */ @ApiField("invoice_company") private InvoiceCompanyInfo invoiceCompany; /** * 发票订购信息。当业务前台是由服务市场订购后发起入驻时,且register_type是new后者renew时,必填;register_type是init或者online时,为空; */ @ApiListField("invoice_order") @ApiField("invoice_order_info") private List<InvoiceOrderInfo> invoiceOrder; /** * 支付宝开票链路必传, 定义商户的一级简称,用于标识商户品牌,对应于商户入驻时填写的"商户品牌简称"。 只能包含大小写字母,数字,或下划线。匹配规则:^[A-Za-z0-9][A-Za-z_0-9]*$ */ @ApiField("m_short_name") private String mShortName; /** * 外部业务幂等ID,由业务方自己生成 */ @ApiField("outer_id") private String outerId; /** * 业务平台code, 由发票中台分配 */ @ApiField("platform_code") private String platformCode; /** * 业务平台商户ID/用户ID */ @ApiField("platform_user_id") private String platformUserId; /** * 入驻类型,可选值: 新订购:new,续订:renew,已有税控初始化:init,线下商户上线:online */ @ApiField("register_type") private String registerType; /** * 支付宝开票链路必传, 定义商户的二级简称,用于标识商户品牌下的分支机构,如门店,对应于商户入驻时填写的"商户门店简称"。 如:肯德基-杭州西湖区文一西路店:KFC_HZ_19003 要求:"商户品牌简称+商户门店简称"作为确定商户及其下属机构的唯一标识,不可重复。 只能包含大小写字母,数字,或下划线。匹配规则:^[A-Za-z0-9][A-Za-z_0-9]*$ */ @ApiField("sub_m_short_name") private String subMShortName; public InvoiceContactInfo getContactInfo() { return this.contactInfo; } public void setContactInfo(InvoiceContactInfo contactInfo) { this.contactInfo = contactInfo; } public String getExtJson() { return this.extJson; } public void setExtJson(String extJson) { this.extJson = extJson; } public InvoiceCompanyInfo getInvoiceCompany() { return this.invoiceCompany; } public void setInvoiceCompany(InvoiceCompanyInfo invoiceCompany) { this.invoiceCompany = invoiceCompany; } public List<InvoiceOrderInfo> getInvoiceOrder() { return this.invoiceOrder; } public void setInvoiceOrder(List<InvoiceOrderInfo> invoiceOrder) { this.invoiceOrder = invoiceOrder; } public String getmShortName() { return this.mShortName; } public void setmShortName(String mShortName) { this.mShortName = mShortName; } public String getOuterId() { return this.outerId; } public void setOuterId(String outerId) { this.outerId = outerId; } public String getPlatformCode() { return this.platformCode; } public void setPlatformCode(String platformCode) { this.platformCode = platformCode; } public String getPlatformUserId() { return this.platformUserId; } public void setPlatformUserId(String platformUserId) { this.platformUserId = platformUserId; } public String getRegisterType() { return this.registerType; } public void setRegisterType(String registerType) { this.registerType = registerType; } public String getSubMShortName() { return this.subMShortName; } public void setSubMShortName(String subMShortName) { this.subMShortName = subMShortName; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
4922b3829ee3e39419c41502b626689e34033b9b
300f5694febfd379a389c8b716767e7052c18fb7
/src/main/java/com/bairock/iot/intelDev/device/virtual/VirTualDevice.java
fd3b04c5c65bcbbee785fb3ee7cae85000d1bb22
[]
no_license
lover2668/intelDev
a8179daa442dbec28fd3da42d58de9dda1c27ca6
dd1d71b46c1329da2821f13cc1dfabe982c4a0ed
refs/heads/master
2022-12-29T02:01:18.846911
2019-11-13T12:51:26
2019-11-13T12:51:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
284
java
package com.bairock.iot.intelDev.device.virtual; import com.bairock.iot.intelDev.device.IValueDevice; /** * virtual device interface * @author 44489 * */ public interface VirTualDevice extends IValueDevice{ String getValue(); void setValue(String value); }
[ "444894216@qq.com" ]
444894216@qq.com
ba47874b4d5b2c3f31f8963849accfd97498ed01
2ba768606b826e66abc77c438b0bfeadf730e002
/org.xtext.example.fml.parent/org.xtext.example.fml/src-gen/org/xtext/example/mydsl/fml/impl/AlternativeEditImpl.java
fd6f7f25eebb050b647147fc8f37050fc138ba78
[]
no_license
FAMILIAR-project/familiar-language
f700e7794543bc5db407b02b7187a9d4223af649
6a5804ea1c98d199bc4e88c8d7c2c1b352a715d8
refs/heads/master
2023-05-23T08:50:42.610348
2021-10-19T12:12:39
2021-10-19T12:12:39
8,090,870
3
3
null
2020-10-13T07:21:02
2013-02-08T09:36:18
Java
UTF-8
Java
false
false
4,495
java
/** * generated by Xtext 2.9.1 */ package org.xtext.example.mydsl.fml.impl; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.xtext.example.mydsl.fml.AlternativeEdit; import org.xtext.example.mydsl.fml.FmlPackage; import org.xtext.example.mydsl.fml.SetCommand; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Alternative Edit</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * </p> * <ul> * <li>{@link org.xtext.example.mydsl.fml.impl.AlternativeEditImpl#getFts <em>Fts</em>}</li> * </ul> * * @generated */ public class AlternativeEditImpl extends ModifyVOperatorImpl implements AlternativeEdit { /** * The cached value of the '{@link #getFts() <em>Fts</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getFts() * @generated * @ordered */ protected SetCommand fts; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected AlternativeEditImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return FmlPackage.eINSTANCE.getAlternativeEdit(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public SetCommand getFts() { return fts; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetFts(SetCommand newFts, NotificationChain msgs) { SetCommand oldFts = fts; fts = newFts; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FmlPackage.ALTERNATIVE_EDIT__FTS, oldFts, newFts); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setFts(SetCommand newFts) { if (newFts != fts) { NotificationChain msgs = null; if (fts != null) msgs = ((InternalEObject)fts).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FmlPackage.ALTERNATIVE_EDIT__FTS, null, msgs); if (newFts != null) msgs = ((InternalEObject)newFts).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FmlPackage.ALTERNATIVE_EDIT__FTS, null, msgs); msgs = basicSetFts(newFts, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FmlPackage.ALTERNATIVE_EDIT__FTS, newFts, newFts)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case FmlPackage.ALTERNATIVE_EDIT__FTS: return basicSetFts(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case FmlPackage.ALTERNATIVE_EDIT__FTS: return getFts(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case FmlPackage.ALTERNATIVE_EDIT__FTS: setFts((SetCommand)newValue); return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case FmlPackage.ALTERNATIVE_EDIT__FTS: setFts((SetCommand)null); return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case FmlPackage.ALTERNATIVE_EDIT__FTS: return fts != null; } return super.eIsSet(featureID); } } //AlternativeEditImpl
[ "mathieu.acher@irisa.fr" ]
mathieu.acher@irisa.fr
365a57221423a6670cfd5ce7d8dc7942c5c6ea7f
dfea11daeb64e99985845c9d0f6bdfcbb74a7b1d
/src/ArrayCount9_3.java
802d30dd4b64d0b2613f57f71a89fcafdab197c9
[]
no_license
jangevaert-design/codingbat-array-count-9-3
5440370484e5218b0a67aa58d0929eec5d6f54fc
7170b52b79fabc7254c9681c81b87fa87cb62c20
refs/heads/master
2022-12-30T23:52:05.696746
2020-10-21T11:41:57
2020-10-21T11:41:57
306,005,449
0
0
null
null
null
null
UTF-8
Java
false
false
213
java
public class ArrayCount9_3 { public int arrayCount9(int[] nums) { int count = 0; for (int i = 0; i < nums.length; i++) { if (nums[i] == 9) { count++; } } return count; } }
[ "jan.gevaert@gmail.com" ]
jan.gevaert@gmail.com
6f08b974296b62f1e86cd29a2e3fc70caf2f025e
97f34059353000a7358e3e8c9d4d7d4ccea614d7
/java-core-training/lab6/PrintDemo.java
1c8dd065878012649b06a823c82664f41b7a3d5e
[]
no_license
phamtuanchip/first-class
3e27b3c5daf397ddba3015a52dfe6347967c2dcd
82cb9dc0b1111bace94fa091f743808c48f740e6
refs/heads/master
2020-03-28T05:26:36.121015
2017-02-09T07:38:12
2017-02-09T07:38:12
7,457,892
0
1
null
null
null
null
UTF-8
Java
false
false
288
java
package lab6; class PrintDemo { public void printCount(){ try { for(int i = 50; i > 0; i--) { System.out.println("Counter --- " + i ); } } catch (Exception e) { System.out.println("Thread interrupted."); } } }
[ "phamtuanchip@gmail.com" ]
phamtuanchip@gmail.com
1c89c0511267e6464ed785dc82a9af9131372d38
958869a2d01942810f634f2ca5ee79de0138803a
/src/ua/artcode/algo/data_structure/MyHashSet.java
f21e4fcb05104cafd055c1d9ab1b1b677148e466
[]
no_license
BlackFriday679/ACO11
47e2f8b4e0ab6dd599df2bdad1a299319c9d07f3
9454286f3a40b5c0605ff68ef2230a2d883137a4
refs/heads/master
2020-04-23T04:09:08.094354
2016-05-19T03:28:59
2016-05-19T03:28:59
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,776
java
package ua.artcode.algo.data_structure; import java.util.Collection; import java.util.Iterator; import java.util.Set; /** * Created by serhii on 28.02.16. */ public class MyHashSet<E> implements Set<E> { public static final int DEFAULT_TABLE_SIZE = 16; private Node<E>[] table; private int size; public MyHashSet() { table = new Node[DEFAULT_TABLE_SIZE]; } @Override public int size() { return size; } @Override public boolean isEmpty() { return size() == 0; } @Override public boolean contains(Object o) { int position = getPosition(o); if(table[position] == null){ return false; } else { Node iter = table[position]; while(iter != null){ if(iter.el.equals(o)){ return true; } iter = iter.next; } } return false; } private int getPosition(Object o) { int hash = Math.abs(o.hashCode()); return hash % table.length; } @Override public Iterator<E> iterator() { return null; } @Override public Object[] toArray() { return new Object[0]; } @Override public <T> T[] toArray(T[] a) { return null; } @Override public boolean add(E e) { int hash = Math.abs(e.hashCode()); int position = hash % table.length; if(table[position] == null){ table[position] = new Node(e, null); } else { Node iter = table[position]; Node last = iter; while(iter != null){ if(iter.el.equals(e)){ return false; } last = iter; iter = iter.next; } last.next = new Node(e, null); } size++; return true; } @Override public boolean remove(Object o) { return false; } @Override public boolean containsAll(Collection<?> c) { return false; } @Override public boolean addAll(Collection<? extends E> c) { return false; } @Override public boolean retainAll(Collection<?> c) { return false; } @Override public boolean removeAll(Collection<?> c) { return false; } @Override public void clear() { } @Override public boolean equals(Object o) { return false; } @Override public int hashCode() { return 0; } private static class Node<T> { T el; Node<T> next; public Node(T el, Node next) { this.el = el; this.next = next; } } }
[ "presly808@gmail.com" ]
presly808@gmail.com
fe3fa6ed6cab400984a2297f80db7cac9cf87850
c1d20e33891deb190d096f5a5ea0cf426b257069
/newserver1/newserver1/src/com/mayhem/rs2/entity/player/net/out/impl/SendScrollInterface.java
698c587767d16435d4676a7a11beb36a80f8c8ae
[]
no_license
premierscape/NS1
72a5d3a3f2d5c09886b1b26f166a6c2b27ac695d
0fb88b155b2abbb98fe3d88bb287012bbcbb8bf9
refs/heads/master
2020-04-07T00:46:08.175508
2018-11-16T20:06:10
2018-11-16T20:06:10
157,917,810
0
0
null
2018-11-16T20:44:52
2018-11-16T20:25:56
Java
UTF-8
Java
false
false
760
java
package com.mayhem.rs2.entity.player.net.out.impl; import com.mayhem.core.network.StreamBuffer; import com.mayhem.rs2.entity.player.net.Client; import com.mayhem.rs2.entity.player.net.out.OutgoingPacket; public class SendScrollInterface extends OutgoingPacket { private final int id; private final int pos; public SendScrollInterface(int id, int pos) { super(); this.id = id; this.pos = pos; } @Override public void execute(Client client) { StreamBuffer.OutBuffer out = StreamBuffer.newOutBuffer(6); out.writeHeader(client.getEncryptor(), 79); out.writeShort(id, StreamBuffer.ByteOrder.LITTLE); out.writeShort(pos, StreamBuffer.ValueType.A); client.send(out.getBuffer()); } @Override public int getOpcode() { return 79; } }
[ "brandon46142@icloud.com" ]
brandon46142@icloud.com
f6d252b6cf93bf3bbca0c6d3c5b9ef7209987742
107789adc1e61dbce35d215201b50f39740dc301
/xmq-spring-boot-rabbitmq/src/main/java/com/xmq/rabbit/many/XmqSender2.java
f21c7f10344538f17d65e3c06b189f4a8113b3d8
[]
no_license
xtzeng/xmq-spring-boot-parent
1975fcc1facbf9c3ecadc5f0dbaa05890ad4b933
8069b573f1b8e0dafd8c2c6eaceb76d497e0688a
refs/heads/master
2021-01-17T11:41:27.564621
2017-03-07T07:30:10
2017-03-07T07:30:10
84,042,690
0
0
null
null
null
null
UTF-8
Java
false
false
472
java
package com.xmq.rabbit.many; import org.springframework.amqp.core.AmqpTemplate; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; @Component public class XmqSender2 { @Autowired private AmqpTemplate rabbitTemplate; public void send(int i) { String context = "spirng boot neo queue"+" ****** "+i; System.out.println("Sender2 : " + context); this.rabbitTemplate.convertAndSend("neo", context); } }
[ "xiaoti_zeng@126.com" ]
xiaoti_zeng@126.com
9212a50f8cceb1c0ca8f9a9ee1a7af3eb2b2a0c4
128eb90ce7b21a7ce621524dfad2402e5e32a1e8
/laravel-converted/src/main/java/com/project/convertedCode/globalNamespace/functions/array_prepend.java
e854610fec0d39ac621939e12622fe3cf9a6702b
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
RuntimeConverter/RuntimeConverterLaravelJava
657b4c73085b4e34fe4404a53277e056cf9094ba
7ae848744fbcd993122347ffac853925ea4ea3b9
refs/heads/master
2020-04-12T17:22:30.345589
2018-12-22T10:32:34
2018-12-22T10:32:34
162,642,356
0
0
null
null
null
null
UTF-8
Java
false
false
1,885
java
package com.project.convertedCode.globalNamespace.functions; import com.project.convertedCode.globalNamespace.namespaces.Illuminate.namespaces.Support.classes.Arr; import com.runtimeconverter.runtime.interfaces.ContextConstants; import com.runtimeconverter.runtime.functions.FunctionBaseRegular; import com.runtimeconverter.runtime.classes.RuntimeClassBase; import com.runtimeconverter.runtime.RuntimeEnv; import com.runtimeconverter.runtime.annotations.ConvertedMethod; import com.runtimeconverter.runtime.ZVal; import com.runtimeconverter.runtime.annotations.ConvertedParameter; import com.runtimeconverter.runtime.arrays.ZPair; import static com.runtimeconverter.runtime.ZVal.assignParameter; /* Converted with The Runtime Converter (runtimeconverter.com) vendor/laravel/framework/src/Illuminate/Support/helpers.php */ public class array_prepend extends FunctionBaseRegular { public static array_prepend f = new array_prepend(); @ConvertedMethod @ConvertedParameter(index = 0, name = "array") @ConvertedParameter(index = 1, name = "value") @ConvertedParameter( index = 2, name = "key", defaultValue = "NULL", defaultValueType = "constant" ) public Object call(RuntimeEnv env, Object... args) { Object array = assignParameter(args, 0, false); Object value = assignParameter(args, 1, false); Object key = assignParameter(args, 2, true); if (null == key) { key = ZVal.getNull(); } return ZVal.assign(Arr.runtimeStaticObject.prepend(env, array, value, key)); } @Override protected ContextConstants getContextConstantsProtected() { return new ContextConstants() .setDir("/vendor/laravel/framework/src/Illuminate/Support") .setFile("/vendor/laravel/framework/src/Illuminate/Support/helpers.php"); } }
[ "git@runtimeconverter.com" ]
git@runtimeconverter.com
b3818951e455a7f789158bc0d6f8004c14ec4226
3e9ba02fa687d4f9cf1b27f57d8a80c1123b25a7
/src/org/encog/app/analyst/commands/CmdEvaluateRaw.java
1e86b3efa971beca29f0a0b2f0051fd95b0b9e1a
[]
no_license
marianagmmacedo/CE_GP
e43b28aa5d3999e63fa43694608cb4966d27cf49
ceadcb07a5049d8b5b2ff4ee00ad285cf33d46a4
refs/heads/master
2021-01-19T10:23:14.215122
2017-05-29T20:06:43
2017-05-29T20:06:43
87,858,418
0
0
null
null
null
null
UTF-8
Java
false
false
3,733
java
/* * Encog(tm) Core v3.4 - Java Version * http://www.heatonresearch.com/encog/ * https://github.com/encog/encog-java-core * Copyright 2008-2016 Heaton Research, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * For more information on Heaton Research copyrights, licenses * and trademarks visit: * http://www.heatonresearch.com/copyright */ package org.encog.app.analyst.commands; import java.io.File; import org.encog.app.analyst.AnalystError; import org.encog.app.analyst.EncogAnalyst; import org.encog.app.analyst.csv.AnalystEvaluateRawCSV; import org.encog.app.analyst.script.prop.ScriptProperties; import org.encog.app.analyst.util.AnalystReportBridge; import org.encog.ml.MLMethod; import org.encog.ml.MLRegression; import org.encog.persist.EncogDirectoryPersistence; import org.encog.util.logging.EncogLogging; /** * This class is used to evaluate a machine learning method. Evaluation data is * provided and the ideal and actual responses from the machine learning method * are written to a file. * */ public class CmdEvaluateRaw extends Cmd { /** * The name of the command. */ public static final String COMMAND_NAME = "EVALUATE-RAW"; /** * Construct an evaluate raw command. * @param analyst The analyst object to use. */ public CmdEvaluateRaw(final EncogAnalyst analyst) { super(analyst); } /** * {@inheritDoc} */ @Override public boolean executeCommand(final String args) { // get filenames final String evalID = getProp().getPropertyString( ScriptProperties.ML_CONFIG_EVAL_FILE); final String resourceID = getProp().getPropertyString( ScriptProperties.ML_CONFIG_MACHINE_LEARNING_FILE); final String outputID = getProp().getPropertyString( ScriptProperties.ML_CONFIG_OUTPUT_FILE); EncogLogging.log(EncogLogging.LEVEL_DEBUG, "Beginning evaluate raw"); EncogLogging.log(EncogLogging.LEVEL_DEBUG, "evaluate file:" + evalID); EncogLogging.log(EncogLogging.LEVEL_DEBUG, "resource file:" + resourceID); final File evalFile = getScript().resolveFilename(evalID); final File resourceFile = getScript().resolveFilename(resourceID); final File outputFile = getAnalyst().getScript().resolveFilename( outputID); MLMethod m = (MLMethod) EncogDirectoryPersistence.loadObject(resourceFile); if( !(m instanceof MLRegression) ) { throw new AnalystError("The evaluate raw command can only be used with regression."); } final MLRegression method = (MLRegression)m; final boolean headers = getScript().expectInputHeaders(evalID); final AnalystEvaluateRawCSV eval = new AnalystEvaluateRawCSV(); eval.setScript(getScript()); getAnalyst().setCurrentQuantTask(eval); eval.setReport(new AnalystReportBridge(getAnalyst())); eval.analyze(getAnalyst(), evalFile, headers, getProp() .getPropertyCSVFormat( ScriptProperties.SETUP_CONFIG_CSV_FORMAT)); eval.process(outputFile, method); getAnalyst().setCurrentQuantTask(null); return eval.shouldStop(); } /** * {@inheritDoc} */ @Override public String getName() { return CmdEvaluateRaw.COMMAND_NAME; } }
[ "carlos_judo@hotmail.com" ]
carlos_judo@hotmail.com
e4aa875e587c03781fb06d5d12d570686b2509cf
642057b61201fedcf895584175e47572bc6f53fd
/src/main/java/io/geekshop/common/utils/SamplesEach.java
456f92c2cb45c2b699c66cbe8622bfc40a12ea13
[ "MIT" ]
permissive
jjnnzb/geekshop
cd27eb6c42cbad3225f5c0582b0b25cfd944029e
1cbc352b78de89f3a1db9e9c730b82dff850ea93
refs/heads/main
2023-02-12T15:59:49.326677
2021-01-12T10:01:38
2021-01-12T10:01:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
789
java
/* * Copyright (c) 2020 GeekXYZ. * All rights reserved. */ package io.geekshop.common.utils; import java.util.List; /** * Returns true if and only if exactly one item for each * of the "groups" lists appears in the "sample" list. * * Created on Nov, 2020 by @author bobo */ public abstract class SamplesEach { public static <T> boolean samplesEach(List<T> sample, List<List<T>> groups) { if (sample.size() != groups.size()) { return false; } for(List<T> group : groups) { int foundCount = 0; for (T item : sample) { if (group.contains(item)) { foundCount++; } } if (foundCount != 1) return false; } return true; } }
[ "bobo@spring2go.com" ]
bobo@spring2go.com
d34375e532105fda53471008da0dabd679e04fcb
61c1ebda37940e7ef590899abaec24a88424d0b3
/LeetCode/src/CodeTop/_429_N叉树的层序遍历.java
aa87dc005e82bf53bd0e0f43c466aa8c3bfcb9c4
[]
no_license
TheWhc/algorithm_notes
d03d7fb3720b570ddf184e4626c78555340da1fa
854f30d62fe522e714fc093c97b06c7d967a8570
refs/heads/master
2023-08-12T20:40:31.895359
2021-10-02T14:26:06
2021-10-02T14:26:06
375,590,240
1
0
null
null
null
null
UTF-8
Java
false
false
1,041
java
package CodeTop; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import java.util.Queue; /** * @ClassName: _429_N叉树的层序遍历 * @Author: whc * @Date: 2021/09/26/21:04 */ public class _429_N叉树的层序遍历 { class Node { public int val; public List<Node> children; public Node() {} public Node(int _val) { val = _val; } public Node(int _val, List<Node> _children) { val = _val; children = _children; } } public List<List<Integer>> levelOrder(Node root) { List<List<Integer>> res = new ArrayList<>(); if(root == null) { return res; } Queue<Node> queue = new LinkedList<>(); queue.offer(root); while(!queue.isEmpty()) { int levelSize = queue.size(); List<Integer> tmp = new ArrayList<>(); while(levelSize > 0) { Node node = queue.poll(); tmp.add(node.val); List<Node> children = node.children; for (Node child : children) { queue.offer(child); } levelSize--; } res.add(tmp); } return res; } }
[ "357633627@qq.com" ]
357633627@qq.com
b5507e3e6f978a5ea1ddfbcd0cac53093271c410
454d0047936788909ac2b818d650eaafcac402bc
/net/minecraft/server/BlockSnowBlock.java
1301bbb2705dd4c492631b7af66553927957e4fc
[]
no_license
Massacrer/mc-dev
6ddc2f6c9e3e1e1a449fb06eb642f0e7c813210e
5c511d8ae4bbf4fab38f4127a2b9e519c17c8ec7
refs/heads/master
2021-01-15T17:50:58.828066
2011-05-31T13:18:48
2011-05-31T13:20:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
605
java
package net.minecraft.server; import java.util.Random; public class BlockSnowBlock extends Block { protected BlockSnowBlock(int i, int j) { super(i, j, Material.SNOW_BLOCK); this.a(true); } public int a(int i, Random random) { return Item.SNOW_BALL.id; } public int a(Random random) { return 4; } public void a(World world, int i, int j, int k, Random random) { if (world.a(EnumSkyBlock.BLOCK, i, j, k) > 11) { this.b_(world, i, j, k, world.getData(i, j, k)); world.setTypeId(i, j, k, 0); } } }
[ "erikbroes@grum.nl" ]
erikbroes@grum.nl
0f9057a0e0061ccd6118027e1e8b50ca3314f956
95c49f466673952b465e19a5ee3ae6eff76bee00
/src/main/java/com/p192b/p193a/C1978c.java
a885e9013dea19cee30266cf37ca770bd9e79ad3
[]
no_license
Phantoms007/zhihuAPK
58889c399ae56b16a9160a5f48b807e02c87797e
dcdbd103436a187f9c8b4be8f71bdf7813b6d201
refs/heads/main
2023-01-24T01:34:18.716323
2020-11-25T17:14:55
2020-11-25T17:14:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
382
java
package com.p192b.p193a; /* renamed from: com.b.a.c */ class C1978c implements AbstractC1986j { /* renamed from: a */ final /* synthetic */ C1976b f7726a; C1978c(C1976b bVar) { this.f7726a = bVar; } @Override // com.p192b.p193a.AbstractC1986j /* renamed from: a */ public void mo17974a(int i) { C1976b.m7744a(this.f7726a, i); } }
[ "seasonpplp@qq.com" ]
seasonpplp@qq.com
474d4bfc0568eab261e57811d68f60f5f95e137a
20a6bf3c0446de389fa8f38b69bf3e562aacb457
/tags/alfred/src/il/ac/tau/arielgue/fagr/FaoFilter.java
2b6c1f35b222c1a96fbfbe6432fa4c86e112c717
[]
no_license
BGCX067/fagr-svn-to-git
b07954916471e8b01ebb37ca299d65f5c414cafe
ae5eb37a94a49e1545ab3a67fe327372461a7d6f
refs/heads/master
2016-09-01T08:56:25.596007
2015-12-28T14:25:10
2015-12-28T14:25:10
48,873,985
0
0
null
null
null
null
UTF-8
Java
false
false
222
java
package il.ac.tau.arielgue.fagr; import il.ac.tau.yoavram.pes.filters.Filter; public class FaoFilter implements Filter<Outcrosser> { @Override public boolean filter(Outcrosser o) { return o.isFao(); } }
[ "you@example.com" ]
you@example.com
c02c032e37c402d7d0456b913bfda6c53eb00d77
d00957076746483b40fb19be2417dc74ee075ebc
/model/src/main/java/org/hibernate/performance/search/model/entity/question/Question.java
b23b84a9b1d0923f2ccd28f2a0c295db3d5bc8aa
[ "Apache-2.0" ]
permissive
yrodiere/hibernate-search-performance
0c4abae9aae2aa2336001ab137126e7939545814
12532c4dae834591fd78a2efbce59be215ef461e
refs/heads/main
2023-05-01T11:30:39.809126
2021-01-29T16:40:40
2021-02-01T10:26:08
334,921,099
0
0
Apache-2.0
2021-02-01T11:03:11
2021-02-01T11:03:11
null
UTF-8
Java
false
false
632
java
package org.hibernate.performance.search.model.entity.question; import javax.persistence.Entity; import javax.persistence.ManyToOne; import org.hibernate.performance.search.model.entity.IdEntity; @Entity public abstract class Question extends IdEntity { @ManyToOne private QuestionnaireDefinition questionnaire; private String text; protected Question() { } protected Question(Integer id, QuestionnaireDefinition questionnaire, String text) { super( id ); this.questionnaire = questionnaire; this.text = text; } public void setText(String text) { this.text = text; } public abstract boolean isClosed(); }
[ "fabiomassimo.ercoli@gmail.com" ]
fabiomassimo.ercoli@gmail.com
04fc54568b54008779668d7b29574c3556353af5
b3a694913d943bdb565fbf828d6ab8a08dd7dd12
/sources/p003f/p004a/p005a/p012b/p087k/p098c/p102d/C0678b.java
1fa69dfa12ea16c8c47f35146ec021cf733a8041
[]
no_license
v1ckxy/radar-covid
feea41283bde8a0b37fbc9132c9fa5df40d76cc4
8acb96f8ccd979f03db3c6dbfdf162d66ad6ac5a
refs/heads/master
2022-12-06T11:29:19.567919
2020-08-29T08:00:19
2020-08-29T08:00:19
294,198,796
1
0
null
2020-09-09T18:39:43
2020-09-09T18:39:43
null
UTF-8
Java
false
false
688
java
package p003f.p004a.p005a.p012b.p087k.p098c.p102d; import android.view.View; import android.view.View.OnClickListener; import p003f.p004a.p005a.p012b.p087k.p098c.p101c.C0674a; import p392u.p401r.p403c.C4638h; /* renamed from: f.a.a.b.k.c.d.b */ public final class C0678b implements OnClickListener { /* renamed from: e */ public final /* synthetic */ C0676a f2115e; public C0678b(C0676a aVar) { this.f2115e = aVar; } public final void onClick(View view) { C0674a aVar = this.f2115e.f2113e0; if (aVar != null) { aVar.mo3851a(); } else { C4638h.m10273b("presenter"); throw null; } } }
[ "josemmoya@outlook.com" ]
josemmoya@outlook.com
b2066ce26136735081f58112c1e0a75cef09c55c
d110d51df5c59810142c907e7b4753812942d21a
/generator/src/test/java/knorxx/framework/generator/dependency/testclass/bytecode/DependencyWithInnerClass.java
ad7b49cb94a374c5a322d5adc14024a9d73c6d26
[ "MIT" ]
permissive
janScheible/knorxx
a1b3730e9d46f4c58a1cee42052d9c829e98c480
b0885eec7ffe3870c8ea4cd1566b26b744f34bab
refs/heads/master
2021-01-25T06:05:58.474442
2015-12-22T11:27:23
2015-12-22T11:27:23
17,491,095
2
1
null
null
null
null
UTF-8
Java
false
false
247
java
package knorxx.framework.generator.dependency.testclass.bytecode; import com.projetloki.genesis.Properties; /** * * @author sj */ public class DependencyWithInnerClass { String properties = Properties.builder().build().toString(); }
[ "janScheible@users.noreply.github.com" ]
janScheible@users.noreply.github.com
fca65919987adcf7966ce06d8f5f7c46ce4ff311
e210ce1a7d8f213f77ba6bc783a6140401947e79
/mybatis-generator-demo/blog-admin/src/main/java/com/example/blog/controller/HelloController.java
ab3184c2d9f183cec8801801c44716d28cb44058
[]
no_license
ReExia/java-demos
2439e3184288f724dc42a39e4509028532c4234e
85252aa4bb1e71d357edeba6dc3c631077bcf214
refs/heads/master
2020-03-26T05:31:59.474894
2018-08-30T05:05:15
2018-08-30T05:05:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
286
java
package com.example.blog.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; @Controller public class HelloController { @RequestMapping("/hello") public String hello(){ return "hello"; } }
[ "liu1023434681@qq.com" ]
liu1023434681@qq.com
0177289cd5c57f6027a1049ef1fa3a608f1e4544
f66fc1aca1c2ed178ac3f8c2cf5185b385558710
/reladomo/src/main/java/com/gs/fw/common/mithra/behavior/deleted/DeletedDifferentTxBehavior.java
beacf2a4b285c53ac4e4ff6cdfcc63921abb5a14
[ "Apache-2.0", "BSD-3-Clause", "MIT", "LicenseRef-scancode-public-domain" ]
permissive
goldmansachs/reladomo
9cd3e60e92dbc6b0eb59ea24d112244ffe01bc35
a4f4e39290d8012573f5737a4edc45d603be07a5
refs/heads/master
2023-09-04T10:30:12.542924
2023-07-20T09:29:44
2023-07-20T09:29:44
68,020,885
431
122
Apache-2.0
2023-07-07T21:29:52
2016-09-12T15:17:34
Java
UTF-8
Java
false
false
794
java
/* Copyright 2016 Goldman Sachs. 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.gs.fw.common.mithra.behavior.deleted; public class DeletedDifferentTxBehavior extends DeletedBehavior { public DeletedDifferentTxBehavior() { super(false); } }
[ "mohammad.rezaei@gs.com" ]
mohammad.rezaei@gs.com
54015897c081275959d55a9bc720a745a2638cff
1470924afdf4d52537e042281d5e3fe3e91727b1
/vertx-apps/src/main/java/com/ibm/vertx/core/http/BasicHttpServer.java
09ca415488461cd14d481c88f7ab6f9dbda26aff
[]
no_license
progroom/IBM-Vertx-Sep-20-b2
f16a18f5529774c9a2b959a3dadd8f12e919704a
a1474ed962bbe008193a6100a348a6d0c9c22195
refs/heads/master
2022-12-21T23:23:50.478962
2020-09-25T12:23:13
2020-09-25T12:23:13
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,486
java
package com.ibm.vertx.core.http; import io.vertx.core.AbstractVerticle; import io.vertx.core.http.HttpServer; import io.vertx.core.http.HttpServerResponse; import io.vertx.example.util.Runner; public class BasicHttpServer extends AbstractVerticle { public static void main(String[] args) { Runner.runExample(BasicHttpServer.class); } public void createServer() { //create server object HttpServer httpServer = vertx.createHttpServer(); //request handling httpServer.requestHandler(request -> { HttpServerResponse response = request.response(); //send a response response.end("Hello Vertx Web Server"); }); //start the server httpServer.listen(3000, serverHandler -> { if (serverHandler.succeeded()) { System.out.println("Server is ready at " + serverHandler.result().actualPort()); } else { System.out.println(serverHandler.cause()); } }); } public void createFluentServer() { vertx.createHttpServer() .requestHandler(request -> request.response().end("Hello Vertx Web Server")) .listen(3001, serverHandler -> { if (serverHandler.succeeded()) { System.out.println("Server is ready at " + serverHandler.result().actualPort()); } else { System.out.println(serverHandler.cause()); } }); } @Override public void start() throws Exception { super.start(); //createServer(); createFluentServer(); } }
[ "sasubramanian_md@hotmail.com" ]
sasubramanian_md@hotmail.com
419894dba0043ff7dc604ecbe819394506b574dd
4a5b8d37d70aff90d9c3e4d6d53239c12726f88e
/lib-rxjava/src/main/java/cn/ollyice/library/rxjava/internal/subscribers/StrictSubscriber.java
6dd039c5e184f8ab442d31b42cadb18d2b787ca4
[]
no_license
paqxyz/AndGameDemo
29dfad61e371cf6db833107d903acffb8502e647
53271818ffff94564ec4e3337ebf4af13956d5de
refs/heads/master
2020-03-21T04:29:11.037764
2018-06-20T06:06:50
2018-06-20T06:06:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,494
java
/** * Copyright (c) 2016-present, RxJava Contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See * the License for the specific language governing permissions and limitations under the License. */ package cn.ollyice.library.rxjava.internal.subscribers; import java.util.concurrent.atomic.*; import cn.ollyice.library.reactivestreams.*; import cn.ollyice.library.rxjava.FlowableSubscriber; import cn.ollyice.library.rxjava.internal.subscriptions.SubscriptionHelper; import cn.ollyice.library.rxjava.internal.util.*; /** * Ensures that the event flow between the upstream and downstream follow * the Reactive-Streams 1.0 specification by honoring the 3 additional rules * (which are omitted in standard operators due to performance reasons). * <ul> * <li>§1.3: onNext should not be called concurrently until onSubscribe returns</li> * <li>§2.3: onError or onComplete must not call cancel</li> * <li>§3.9: negative requests should emit an onError(IllegalArgumentException)</li> * </ul> * In addition, if rule §2.12 (onSubscribe must be called at most once) is violated, * the sequence is cancelled an onError(IllegalStateException) is emitted. * @param <T> the value type * @since 2.0.7 */ public class StrictSubscriber<T> extends AtomicInteger implements FlowableSubscriber<T>, Subscription { private static final long serialVersionUID = -4945028590049415624L; final Subscriber<? super T> actual; final AtomicThrowable error; final AtomicLong requested; final AtomicReference<Subscription> s; final AtomicBoolean once; volatile boolean done; public StrictSubscriber(Subscriber<? super T> actual) { this.actual = actual; this.error = new AtomicThrowable(); this.requested = new AtomicLong(); this.s = new AtomicReference<Subscription>(); this.once = new AtomicBoolean(); } @Override public void request(long n) { if (n <= 0) { cancel(); onError(new IllegalArgumentException("§3.9 violated: positive request amount required but it was " + n)); } else { SubscriptionHelper.deferredRequest(s, requested, n); } } @Override public void cancel() { if (!done) { SubscriptionHelper.cancel(s); } } @Override public void onSubscribe(Subscription s) { if (once.compareAndSet(false, true)) { actual.onSubscribe(this); SubscriptionHelper.deferredSetOnce(this.s, requested, s); } else { s.cancel(); cancel(); onError(new IllegalStateException("§2.12 violated: onSubscribe must be called at most once")); } } @Override public void onNext(T t) { HalfSerializer.onNext(actual, t, this, error); } @Override public void onError(Throwable t) { done = true; HalfSerializer.onError(actual, t, this, error); } @Override public void onComplete() { done = true; HalfSerializer.onComplete(actual, this, error); } }
[ "289776839@qq.com" ]
289776839@qq.com
9c994f9304016573cf37700f638a5d0e234659b2
964601fff9212bec9117c59006745e124b49e1e3
/matos-android/src/main/java/org/apache/http/entity/EntityTemplate.java
0f73311156fd29bb2801863edf40e45a18508dff
[ "Apache-2.0" ]
permissive
vadosnaprimer/matos-profiles
bf8300b04bef13596f655d001fc8b72315916693
fb27c246911437070052197aa3ef91f9aaac6fc3
refs/heads/master
2020-05-23T07:48:46.135878
2016-04-05T13:14:42
2016-04-05T13:14:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,298
java
package org.apache.http.entity; /* * #%L * Matos * $Id:$ * $HeadURL:$ * %% * Copyright (C) 2010 - 2014 Orange SA * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ @com.francetelecom.rd.stubs.annotation.ClassDone(0) public class EntityTemplate extends AbstractHttpEntity{ // Constructors public EntityTemplate(ContentProducer arg1){ super(); } // Methods public java.io.InputStream getContent(){ return (java.io.InputStream) null; } public void writeTo(java.io.OutputStream arg1) throws java.io.IOException{ } public long getContentLength(){ return 0l; } public boolean isRepeatable(){ return false; } public boolean isStreaming(){ return false; } public void consumeContent() throws java.io.IOException{ } }
[ "pierre.cregut@orange.com" ]
pierre.cregut@orange.com
5a71b575b5c0a86cf6ee4a021aa09b677656f0f8
fdf6af788d9dbcf2c540221c75218e26bd38483b
/app/src/main/java/com/yuanxin/clan/core/activity/MyCollectActivity.java
b60beb562738567da1e8a033e6e0ee8d053750f3
[]
no_license
RobertBaggio/yuanxinclan
8b6b670d2bc818ff018c6e2bcfe77e74903ddbbd
544918ce2f80975f32aa09a4990028b955fa5f6d
refs/heads/master
2020-03-18T09:05:47.461683
2018-05-23T09:30:36
2018-05-23T09:30:36
134,544,755
0
0
null
null
null
null
UTF-8
Java
false
false
6,590
java
package com.yuanxin.clan.core.activity; import android.content.Intent; import android.os.Bundle; import android.support.design.widget.TabLayout; import android.support.v4.app.Fragment; import android.support.v4.view.ViewPager; import android.view.View; import android.widget.Button; import android.widget.CheckBox; import android.widget.LinearLayout; import android.widget.RelativeLayout; import android.widget.TextView; import com.yuanxin.clan.R; import com.yuanxin.clan.core.adapter.MyFragmentAdapter; import com.yuanxin.clan.core.fragment.FragmentMyCollectArticle; import com.yuanxin.clan.core.fragment.FragmentMyCollectAssociation; import com.yuanxin.clan.core.fragment.FragmentMyCollectCommodity; import com.yuanxin.clan.core.fragment.FragmentMyCollectCompany; import com.yuanxin.clan.mvp.view.BaseActivity; import java.util.ArrayList; import java.util.List; import butterknife.BindView; import butterknife.OnClick; /** * Created by lenovo1 on 2017/2/24. * 我的收藏类 */ public class MyCollectActivity extends BaseActivity { @BindView(R.id.activity_exchange_phone_left_layout) LinearLayout activityExchangePhoneLeftLayout; @BindView(R.id.activity_exchange_phone_right_layout) LinearLayout activityExchangePhoneRightLayout; @BindView(R.id.my_collect_activity_head) RelativeLayout myCollectActivityHead; @BindView(R.id.activity_my_collect_tabLayout) TabLayout activityMyCollectTabLayout; @BindView(R.id.activity_my_collect_viewPager) ViewPager activityMyCollectViewPager; @BindView(R.id.my_collect_checkbox) CheckBox myCollectCheckbox; @BindView(R.id.my_collect_num_text) TextView myCollectNumText; @BindView(R.id.my_collect_delete_btn) Button myCollectDeleteBtn; @BindView(R.id.activity_my_collect_bottom_layout) RelativeLayout activityMyCollectBottomLayout; private List<Fragment> fragmentList; private List<String> titleList; private MyFragmentAdapter adapter; private FragmentMyCollectArticle fragmentMyCollectArticle;//资讯 private FragmentMyCollectAssociation fragmentMyCollectAssociation;//商圈 private FragmentMyCollectCompany fragmentMyCollectCompany;//企业 // private FragmentMyCollectCrowdFunding fragmentMyCollectCrowdFunding;//众筹 private FragmentMyCollectCommodity fragmentMyCollectCommodity;//商品 // private FragmentMyCollectThinkTank fragmentMyCollectThinkTank;//智囊团 // FragmentMyCollectArticle fragment =(FragmentMyCollectArticle)getFragmentManager().findFragmentById(R.id.fragment_my_collect_article); @Override public int getViewLayout() { return R.layout.activity_my_collect; } @Override protected int getTitleViewLayout() { return NO_TITLE_VIEW; } @Override protected void initView(Bundle savedInstanceState, Intent intent) { initViewPager(); } private void initViewPager() { // windowHeadLeftImage.setImageResource(R.drawable.biaoqian_dingdan1); // windowHeadLeftText.setVisibility(View.GONE); // windowHeadName.setText("我的收藏"); // windowHeadRightTextview.setText("搜索"); fragmentMyCollectArticle = new FragmentMyCollectArticle();//资讯 没问题 fragmentMyCollectAssociation = new FragmentMyCollectAssociation();//商圈 fragmentMyCollectCompany = new FragmentMyCollectCompany();//企业 // fragmentMyCollectCrowdFunding = new FragmentMyCollectCrowdFunding();//众筹 fragmentMyCollectCommodity = new FragmentMyCollectCommodity();//商品 没问题 // fragmentMyCollectThinkTank = new FragmentMyCollectThinkTank();//智囊团 fragmentList = new ArrayList<>(); fragmentList.add(fragmentMyCollectArticle); fragmentList.add(fragmentMyCollectAssociation); fragmentList.add(fragmentMyCollectCompany); // fragmentList.add(fragmentMyCollectCrowdFunding); fragmentList.add(fragmentMyCollectCommodity); // fragmentList.add(fragmentMyCollectThinkTank);//隐藏智囊团 titleList = new ArrayList<>(); titleList.add("资讯"); titleList.add("商圈"); titleList.add("企业"); // titleList.add("众筹"); titleList.add("商品"); // titleList.add("智囊团"); // activityMyCollectTabLayout.setTabMode(TabLayout.MODE_SCROLLABLE);//可以滚动 activityMyCollectTabLayout.setTabMode(TabLayout.MODE_FIXED);//不可以轮动 activityMyCollectTabLayout.addTab(activityMyCollectTabLayout.newTab().setText(titleList.get(0))); activityMyCollectTabLayout.addTab(activityMyCollectTabLayout.newTab().setText(titleList.get(1))); activityMyCollectTabLayout.addTab(activityMyCollectTabLayout.newTab().setText(titleList.get(2))); // activityMyCollectTabLayout.addTab(activityMyCollectTabLayout.newTab().setText(titleList.get(3))); // activityMyCollectTabLayout.addTab(activityMyCollectTabLayout.newTab().setText(titleList.get(4))); // activityMyCollectTabLayout.addTab(activityMyCollectTabLayout.newTab().setText(titleList.get(5))); adapter = new MyFragmentAdapter(getSupportFragmentManager(), fragmentList, titleList); activityMyCollectViewPager.setAdapter(adapter); activityMyCollectViewPager.setOffscreenPageLimit(11); activityMyCollectTabLayout.setupWithViewPager(activityMyCollectViewPager); } @OnClick({R.id.activity_exchange_phone_left_layout, R.id.activity_exchange_phone_right_layout, R.id.my_collect_checkbox, R.id.my_collect_num_text, R.id.my_collect_delete_btn}) public void onClick(View view) { switch (view.getId()) { case R.id.activity_exchange_phone_left_layout: finish(); break; case R.id.activity_exchange_phone_right_layout://编辑 if (activityMyCollectBottomLayout.getVisibility() == View.GONE) { activityMyCollectBottomLayout.setVisibility(View.VISIBLE); fragmentMyCollectArticle.changeStatus();//编辑还是不编辑 } else { activityMyCollectBottomLayout.setVisibility(View.GONE); fragmentMyCollectArticle.changeStatus();//编辑还是不编辑 } break; case R.id.my_collect_checkbox://全选 fragmentMyCollectArticle.allCheck(); break; case R.id.my_collect_num_text: break; case R.id.my_collect_delete_btn: break; } } }
[ "baggiocomeback@163.com" ]
baggiocomeback@163.com
65ee1c31267e4202fd28340b173043fc2801cabe
f3d1de810644d5e5c58fa7fc0ca8e1c1c52af1ff
/hermes5/src/test/java/ch/admin/isb/hermes5/business/rendering/anwenderloesung/AnwenderloesungTemplateIndexPageRendererTest.java
f35b560cb29de6a8cf620db05022db4c50540e98
[ "Apache-2.0" ]
permissive
mc-b/websolution
22b3970f426c15ba55390bc431c4a24ac8c7f2c0
ca96126bf9b5fd9c363fdbbccd89d10667f3f703
refs/heads/master
2020-06-15T07:18:59.248830
2014-08-27T13:35:07
2014-08-27T13:35:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,616
java
/*---------------------------------------------------------------------------------------------- * Copyright 2014 Federal IT Steering Unit FITSU Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language governing permissions and limitations under * the License. *---------------------------------------------------------------------------------------------*/ package ch.admin.isb.hermes5.business.rendering.anwenderloesung; import static ch.admin.isb.hermes5.domain.SzenarioBuilder.*; import static org.junit.Assert.*; import java.io.IOException; import java.util.Arrays; import java.util.List; import org.junit.Before; import org.junit.Test; import ch.admin.isb.hermes5.business.rendering.AbstractRendererTest; import ch.admin.isb.hermes5.business.rendering.velocity.VelocityAdapter; import ch.admin.isb.hermes5.business.userszenario.vorlagen.ErgebnisLink; import ch.admin.isb.hermes5.business.userszenario.vorlagen.ErgebnisLink.Type; import ch.admin.isb.hermes5.util.Hardcoded; public class AnwenderloesungTemplateIndexPageRendererTest extends AbstractRendererTest { private AnwenderloesungTemplateIndexPageRenderer renderer; @Before public void setUp() throws Exception { renderer = new AnwenderloesungTemplateIndexPageRenderer(); renderer.velocityAdapter = new VelocityAdapter(); Hardcoded.enableDefaults(renderer.velocityAdapter); } @Test public void buildTemplateIndexPage() throws IOException { List<ErgebnisLink> templateUrls = Arrays.asList(new ErgebnisLink[] {ergebnisTemplateLink("t1"), ergebnisTemplateLink("t2"), ergebnisTemplateLink("t3") }); String x = renderTemplateIndexPage("", templateUrls, Arrays.asList("de")); checkHtmlString(x); assertTrue(x, x.contains("templatePageSzenario")); assertTrue(x, x.contains("<a href=\"t1\">t1</a>")); assertTrue(x, x.contains("<a href=\"t2\">t2</a>")); assertTrue(x, x.contains("<a href=\"t3\">t3</a>")); assertFalse(x, x.contains("<img id=\"logo\"")); } @Test public void buildTemplateIndexPageUrl() throws IOException { List<ErgebnisLink> templateUrls = Arrays.asList(new ErgebnisLink[] {new ErgebnisLink("name", "url", Type.URL) }); String x = renderTemplateIndexPage("", templateUrls, Arrays.asList("de")); checkHtmlString(x); assertTrue(x, x.contains("<a href=\"url\" target=\"_blank\">name</a>")); } private ErgebnisLink ergebnisTemplateLink(String url) { return new ErgebnisLink(url, url, Type.TEMPLATE); } @Test public void buildTemplateIndexPageContainsSzenarioName() throws IOException { List<ErgebnisLink> templateUrls = Arrays.asList(new ErgebnisLink[] { ergebnisTemplateLink("t1") }); String x = renderTemplateIndexPage("", templateUrls, Arrays.asList("de")); checkHtmlString(x); assertTrue(x, x.contains("templatePageSzenario")); } private String renderTemplateIndexPage(String identifier, List<ErgebnisLink> templateNames, List<String> languages) { AnwenderloesungRenderingContainer container = new AnwenderloesungRenderingContainer(identifier, szenario("templatePageSzenario"), null, languages, false, false, true,true); return renderer.renderTemplateIndexPage(getLocalizationEngineDe(), templateNames, container); } @Test public void buildTemplateIndexPageWithCustom() throws IOException { List<ErgebnisLink> templateUrls = Arrays.asList(new ErgebnisLink[] { ergebnisTemplateLink("t1"), new ErgebnisLink("t2", "custom/t2", Type.TEMPLATE), ergebnisTemplateLink("t3") }); String x = renderTemplateIndexPage("", templateUrls, Arrays.asList("de")); checkHtmlString(x); assertTrue(x, x.contains("templatePageSzenario")); assertTrue(x, x.contains("<a href=\"t1\">t1</a>")); assertTrue(x, x.contains("<a href=\"t1\">t1</a>")); assertTrue(x, x.contains("<a href=\"custom/t2\">t2</a>")); assertTrue(x, x.contains("<a href=\"t3\">t3</a>")); assertFalse(x, x.contains("<img id=\"logo\"")); } }
[ "marcel.bernet@ch-open.ch" ]
marcel.bernet@ch-open.ch
4d46735db63ca13e76da14c18798228a29018d60
c6b98c88fc553e709f2fb6fa88c7893c21f47f30
/Exareme-Docker/src/exareme/exareme-common/src/main/java/madgik/exareme/common/app/engine/scheduler/elasticTree/experiments/FunctionSmoothing.java
bec540162dc5be541fad7fa4b77db32b87116636
[ "MIT" ]
permissive
LSmyrnaios/exareme
f8a7db17a20958c53bebc25a8e1b4eab96a7570e
9b2b9360f0564d08fc76a56a7a750e2d1074ed4f
refs/heads/master
2022-12-01T07:34:13.667213
2020-11-03T11:32:09
2020-11-03T11:32:09
159,374,117
0
0
MIT
2018-11-27T17:30:47
2018-11-27T17:30:47
null
UTF-8
Java
false
false
1,181
java
/** * Copyright MaDgIK Group 2010 - 2015. */ package madgik.exareme.common.app.engine.scheduler.elasticTree.experiments; import madgik.exareme.utils.association.Pair; import java.util.ArrayList; /** * @author heraldkllapi */ public class FunctionSmoothing { private final double window; private final boolean rangeDivide; private ArrayList<Pair<Double, Double>> values = new ArrayList<>(); public FunctionSmoothing(double window) { this(window, false); } public FunctionSmoothing(double window, boolean rangeDivide) { this.window = window; this.rangeDivide = rangeDivide; } public void add(double x, double y) { values.add(new Pair<>(x, y)); } public double getValue() { double sum = 0.0; double count = 0.0; Pair<Double, Double> now = values.get(values.size() - 1); for (int i = values.size() - 1; i >= 0; i--) { Pair<Double, Double> p = values.get(i); if (p.a < now.a - window) { break; } sum += p.b; count += 1.0; } return sum / ((rangeDivide) ? window : count); } }
[ "–nikolopoulos.vaggelis@gmail.com" ]
–nikolopoulos.vaggelis@gmail.com
164cc911ee29ebb3631dfe696c8016644903b38a
765c8ae871b65da04396d4a3f8b856a11eedeb11
/Platform_Public_API/src/main/java/org/lobobrowser/io/QuotaExceededException.java
3e2cf117898ce7bbcb8a6b0dcb044898faed005e
[]
no_license
sridhar-newsdistill/Loboevolution
5ef7d36aae95707e1ab76d7bf1ce872ddd6f6355
a93de9bea470e3996a4afb2f73d9be77037644b6
refs/heads/master
2020-06-13T12:26:03.979017
2016-11-26T16:58:29
2016-11-26T16:58:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,568
java
/* GNU GENERAL LICENSE Copyright (C) 2006 The Lobo Project. Copyright (C) 2014 - 2016 Lobo Evolution This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either verion 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 License for more details. You should have received a copy of the GNU General Public along with this program. If not, see <http://www.gnu.org/licenses/>. Contact info: lobochief@users.sourceforge.net; ivan.difrancesco@yahoo.it */ package org.lobobrowser.io; import java.io.IOException; /** * This is an <code>IOException</code> thrown when the managed store quota would * be exceeded after creating a managed file, a directory, or writing to a * managed file. */ public class QuotaExceededException extends IOException { /** The Constant serialVersionUID. */ private static final long serialVersionUID = 1L; /** * Instantiates a new quota exceeded exception. */ public QuotaExceededException() { super(); } /** * Instantiates a new quota exceeded exception. * * @param message * the message */ public QuotaExceededException(String message) { super(message); } }
[ "ivan.difrancesco@yahoo.it" ]
ivan.difrancesco@yahoo.it
ff4c6fa29c28ffc58030ddf3c37e5afd0e6ce71a
93153e615bf3088eca761f2a8244aa323f69d213
/hehenian-liumi/src/main/java/com/hehenian/liumi/exchange/Lottery.java
566f8f3e2b0a51485b92cf0c51798c40846fe12c
[]
no_license
shaimeizi/dk
518d7b3c21af3ec3a5ebc8bfad8aa6eae002048c
42bed19000495352e37344af9c71bf3f7e0b663f
refs/heads/master
2021-01-18T16:55:30.027826
2015-07-24T05:09:14
2015-07-24T05:09:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,587
java
package com.hehenian.liumi.exchange; import java.util.LinkedHashMap; import java.util.Map; import java.util.Map.Entry; import java.util.Random; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Lottery { private static Map<Integer,Integer> YD; private static Map<Integer,Integer> DX; private static Map<Integer,Integer> LT; private static Random random = new Random(); public static String Flag =""; static{ YD=new LinkedHashMap<Integer,Integer>(); YD.put(10,95); YD.put(30,100); DX=new LinkedHashMap<Integer,Integer>(); DX.put(5,45); DX.put(10,90); DX.put(30,95); DX.put(50,100); LT=new LinkedHashMap<Integer,Integer>(); LT.put(50,100); } public static int lottery(String mobile){ Map<Integer,Integer> carrier=lookup(mobile); int r = Math.abs(random.nextInt())%100; for(Entry<Integer,Integer> i : carrier.entrySet()){ if(i.getValue()>=r){ return i.getKey(); } } return 0; } public static Map<Integer,Integer> lookup(String mobile){ Pattern pattern=Pattern.compile("^1(34[0-8]|(3[5-9]|47|5[0-2]|57[124]|5[89]|8[2378])\\d)\\d{7}$"); Matcher matcher=pattern.matcher(mobile); boolean b= matcher.matches(); if(b){ Flag = "YD"; return YD; } pattern=Pattern.compile("^1(3[0-2]|45|5[56]|8[56])\\d{8}$"); matcher=pattern.matcher(mobile); b= matcher.matches(); if(b){ Flag = "LT"; return LT; } pattern=Pattern.compile("^1(33|53|8[09])\\d{8}$"); matcher=pattern.matcher(mobile); b= matcher.matches(); if(b){ Flag = "DX"; return DX; } return null; } }
[ "zhangyunhmf@harry.hyn.com" ]
zhangyunhmf@harry.hyn.com
f74c6f9377e1db5f273929b5dc2648bc8da22b68
89b24b44d2c36308030ac733cf88cdecb45d9706
/sqliteconnection/src/main/java/ru/noties/sqliteconnection/ClosePolicyImmediate.java
dd3973d962ff9d51b60133e8f298257606f5a3e3
[]
no_license
noties/SqliteConnection
205ff3ef39c1a11612d0509558136113d370522a
6d8c50b2721dca30c02f967bfe202d885cab446e
refs/heads/master
2021-01-23T07:55:10.187485
2017-01-31T11:23:44
2017-01-31T11:23:44
80,514,365
0
0
null
null
null
null
UTF-8
Java
false
false
510
java
package ru.noties.sqliteconnection; public class ClosePolicyImmediate implements ClosePolicy { // closes immediately after last connection is closed @Override public void onNewConnectionRequested(SqliteDataSource controller) { // no op } @Override public boolean onAdditionalConnectionOpen(SqliteDataSource controller) { return true; } @Override public boolean onLastConnectionClose(SqliteDataSource connectionController) { return true; } }
[ "mail@dimitryivanov.ru" ]
mail@dimitryivanov.ru
1863608faf1ccbc05b88aa9f46e01325f1cb78a5
383e578ec8ac3043ddece8223494f27f4a4c76dd
/legend.dal/src/main/java/com/tqmall/legend/dao/warehousein/WarehouseInDao.java
5b7110314e2ea2b4cdc586c188723998f32c538d
[]
no_license
xie-summer/legend
0018ee61f9e864204382cd202fe595b63d58343a
7e7bb14d209e03445a098b84cf63566702e07f15
refs/heads/master
2021-06-19T13:44:58.640870
2017-05-18T08:34:13
2017-05-18T08:34:13
null
0
0
null
null
null
null
UTF-8
Java
false
false
976
java
package com.tqmall.legend.dao.warehousein; import com.tqmall.legend.dao.base.BaseDao; import com.tqmall.legend.dao.common.MyBatisRepository; import com.tqmall.legend.entity.shop.SupplierSettlementVO; import com.tqmall.legend.entity.warehousein.PagedWarehouseInDetail; import com.tqmall.legend.entity.warehousein.WarehouseIn; import org.apache.ibatis.annotations.Param; import java.util.List; import java.util.Map; @MyBatisRepository public interface WarehouseInDao extends BaseDao<WarehouseIn> { int update(Map<String, Object> param); List<SupplierSettlementVO> statsSuppliersAmount(Map<String, Object> params); Integer getSupplierCountWarehouseIn(Map<String, Object> params); /** * 更新入库单供应商 * * @param param * @return */ int updateSupplier(Map<String, Object> param); List<WarehouseIn> selectByPurchaseSnList(@Param("shopId") Long shopId, @Param("PurchaseSnList") Iterable<String> purchaseSnList); }
[ "zhangting.huang@tqmall.com" ]
zhangting.huang@tqmall.com
a3f11cc82a285e7f258280b66f6a9dba504f73a3
56fad0fd8a7b55c683274f8a39ccdac21a648cfd
/org.jrebirth.af/core/src/main/java/org/jrebirth/af/core/ui/adapter/FinishedAdapter.java
101eb78e2a813f9a7de1b8e7cb16108ebe74e7b7
[ "Apache-2.0" ]
permissive
naimdjon/JRebirth
3c6fa1b8192595353352151fb248b47b18f4e506
ef88023e44e850ec0c9e74f0a8f01cba9e0a96f7
refs/heads/master
2021-01-15T17:08:14.396441
2014-08-13T10:52:29
2014-08-13T10:52:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,099
java
/** * Get more info at : www.jrebirth.org . * Copyright JRebirth.org © 2011-2013 * Contact : sebastien.bordes@jrebirth.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 org.jrebirth.af.core.ui.adapter; import javafx.event.ActionEvent; /** * The class <strong>FinishedAdapter</strong>. * * @author Sébastien Bordes */ public interface FinishedAdapter extends EventAdapter { /** * Manage action events. * * @param actionEvent the event to manage */ void action(final ActionEvent actionEvent); }
[ "sebastien.bordes@jrebirth.org" ]
sebastien.bordes@jrebirth.org
8fa9437af86b16a29cb3411226fc83912e15d914
a36dce4b6042356475ae2e0f05475bd6aed4391b
/2005/webcommon/com/hps/july/inventory/formbean/MountActControlButtonBean.java
68e9735b64ff59a4c38790c34e57b476002d8d40
[]
no_license
ildar66/WSAD_NRI
b21dbee82de5d119b0a507654d269832f19378bb
2a352f164c513967acf04d5e74f36167e836054f
refs/heads/master
2020-12-02T23:59:09.795209
2017-07-01T09:25:27
2017-07-01T09:25:27
95,954,234
0
1
null
null
null
null
UTF-8
Java
false
false
943
java
package com.hps.july.inventory.formbean; import java.io.Serializable; /** * @author dimitry * Created 17.04.2006 */ public class MountActControlButtonBean implements Serializable { private static final long serialVersionUID = 1L; private Integer resourceId; private Integer categoryId; private String parentPath; private Integer positionIndex; public Integer getCategoryId() { return categoryId; } public void setCategoryId(Integer categoryId) { this.categoryId = categoryId; } public Integer getResourceId() { return resourceId; } public void setResourceId(Integer resourceId) { this.resourceId = resourceId; } public String getParentPath() { return parentPath; } public void setParentPath(String parentPath) { this.parentPath = parentPath; } public Integer getPositionIndex() { return positionIndex; } public void setPositionIndex(Integer positionIndex) { this.positionIndex = positionIndex; } }
[ "ildar66@inbox.ru" ]
ildar66@inbox.ru
db55f14c8603a56a06d177fd284c3f26418a6988
eb71e782cebec26969623bb5c3638d6f62516290
/src/com/rs/game/player/actions/skills/runecrafting/Altars.java
1c78bdeddcdd0e592810b25dd686442f71199da8
[]
no_license
DukeCharles/revision-718-server
0fe7230a4c7da8de6f7de289ef1b4baec81fbd8b
cc69a0ab6e139d5cc7e2db9a73ec1eeaf76fd6e3
refs/heads/main
2023-06-25T05:50:04.376413
2021-07-25T19:38:35
2021-07-25T19:38:35
387,924,360
0
0
null
null
null
null
UTF-8
Java
false
false
3,368
java
package com.rs.game.player.actions.skills.runecrafting; import com.rs.game.WorldTile; import com.rs.game.player.Player; public class Altars extends Runecrafting { /** * Store all altars, Enter objectId, objectId for craft rune, talisman, location * for altar, tiaras */ public enum Altar { AIR_ALTAR(2452, 2478, AIR_TALISMAN, new WorldTile(2841, 4829, 0), AIR_TIARA, OMNI_TIARA), MIND_ALTAR(2453, 2479, MIND_TALISMAN, new WorldTile(2793, 4828, 0), MIND_TIARA, OMNI_TIARA), WATER_ALTAR(2454, 2480, WATER_TALISMAN, new WorldTile(3494, 4832, 0), WATER_TIARA, OMNI_TIARA), EARTH_ALTAR(2455, 2481, EARTH_TALISMAN, new WorldTile(2655, 4830, 0), EARTH_TIARA, OMNI_TIARA), FIRE_ALTAR(2456, 2482, FIRE_TALISMAN, new WorldTile(2577, 4846, 0), FIRE_TIARA, OMNI_TIARA), BODY_ALTAR(2457, 2483, BODY_TALISMAN, new WorldTile(2521, 4834, 0), BODY_TIARA, OMNI_TIARA), COSMIC_ALTAR(2458, 2484, COSMIC_TALISMAN, new WorldTile(2162, 4833, 0), COSMIC_TIARA, OMNI_TIARA), LAW_ALTAR(2459, 2485, LAW_TALISMAN, new WorldTile(2464, 4818, 0), LAW_TIARA, OMNI_TIARA), NATURE_ALTAR(2460, 2486, NATURE_TALISMAN, new WorldTile(2400, 4835, 0), NATURE_TIARA, OMNI_TIARA), CHAOS_ALTAR(2461, 2487, CHAOS_TALISMAN, new WorldTile(2281, 4837, 0), CHAOS_TIARA, OMNI_TIARA), DEATH_ALTAR(2462, 2488, DEATH_TALISMAN, new WorldTile(2208, 4830, 0), DEATH_TIARA, OMNI_TIARA), BLOOD_ALTAR(2464, 30624, BLOOD_TALISMAN, new WorldTile(2468, 4889, 1), BLOOD_TIARA, OMNI_TIARA), ASTRAL_ALTAR(-1, 17010, -1, null, ASTRAL_TIARA, OMNI_TIARA); int entranceId; int craftId; WorldTile location; int inventory; int[] items; Altar(int entranceId, int craftId, int inventory, WorldTile location, int... items) { this.entranceId = entranceId; this.craftId = craftId; this.location = location; this.inventory = inventory; this.items = items; } } private static Altar[] data = Altar.values(); public static void handleAltar(Player player, int objectId) { for (Altar store : data) { if (store == null) continue; if (store.entranceId == objectId) { if (player.getInventory().containsOneItem(store.inventory) || player.getEquipment().containsOneItem(store.items)) enterAltar(player, new WorldTile(store.location)); else player.getPackets() .sendGameMessage("You need an " + store.name().toLowerCase().replace("_altar", "") + (store.inventory != -1 ? " talisman/" : " ") + "tiara to enter this altar."); return; } if (store.craftId == objectId) { for (RunecraftingStore rune : storeData) { if (rune == null) continue; if (rune.altarId == objectId) { if ((player.getInventory().containsOneItem(rune.inventory) || player.getEquipment().containsOneItem(rune.items)) && rune.inventory != -1) craftRune(player, rune.runeId, rune.level, rune.exp, rune.pureEssence); else player.getPackets() .sendGameMessage("You need an " + rune.name().toLowerCase().replace("_rune", "") + (store.inventory != -1 ? " talisman/" : " ") + "tiara to craft " + rune.name().toLowerCase().replace('_', ' ') + "s."); } } } } } private static void enterAltar(Player player, WorldTile dest) { player.getPackets().sendGameMessage("A mysterious force grabs hold of you."); player.useStairs(-1, dest, 0, 1); } }
[ "charles.simon.morin@gmail.com" ]
charles.simon.morin@gmail.com
178c04ac179a053917d53cd9b2dd79509691ca93
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/MATH-32b-2-25-NSGA_II-LineCoverage:ExceptionType:StackTraceSimilarity/org/apache/commons/math3/geometry/partitioning/AbstractRegion_ESTest_scaffolding.java
32b8490d7bd55b9f7f9778d1ab5addac258c9e03
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
3,339
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Sun Apr 05 12:57:45 UTC 2020 */ package org.apache.commons.math3.geometry.partitioning; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class AbstractRegion_ESTest_scaffolding { @org.junit.Rule public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule(); 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.apache.commons.math3.geometry.partitioning.AbstractRegion"; org.evosuite.runtime.GuiSupport.initialize(); org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000; org.evosuite.runtime.RuntimeSettings.mockSystemIn = true; org.evosuite.runtime.Runtime.getInstance().resetRuntime(); } @Before public void initTestCase(){ threadStopper.storeCurrentThreads(); threadStopper.startRecordingTime(); 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.agent.InstrumentingAgent.deactivate(); org.evosuite.runtime.GuiSupport.restoreHeadlessMode(); } private static void initializeClasses() { org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(AbstractRegion_ESTest_scaffolding.class.getClassLoader() , "org.apache.commons.math3.geometry.Vector", "org.apache.commons.math3.exception.util.ExceptionContextProvider", "org.apache.commons.math3.geometry.partitioning.AbstractRegion$Sides", "org.apache.commons.math3.geometry.partitioning.Side", "org.apache.commons.math3.geometry.partitioning.AbstractRegion", "org.apache.commons.math3.geometry.Space", "org.apache.commons.math3.geometry.partitioning.Region", "org.apache.commons.math3.geometry.partitioning.Region$Location", "org.apache.commons.math3.geometry.partitioning.Hyperplane", "org.apache.commons.math3.geometry.euclidean.oned.Euclidean1D", "org.apache.commons.math3.geometry.euclidean.twod.PolygonsSet", "org.apache.commons.math3.geometry.euclidean.twod.Vector2D", "org.apache.commons.math3.geometry.partitioning.Transform", "org.apache.commons.math3.geometry.partitioning.BSPTree", "org.apache.commons.math3.geometry.partitioning.Characterization", "org.apache.commons.math3.geometry.partitioning.BSPTreeVisitor", "org.apache.commons.math3.exception.MathInternalError", "org.apache.commons.math3.exception.MathIllegalStateException", "org.apache.commons.math3.geometry.partitioning.SubHyperplane", "org.apache.commons.math3.geometry.euclidean.twod.Euclidean2D", "org.apache.commons.math3.geometry.partitioning.BSPTree$LeafMerger" ); } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
81abb25efb72f6b5bb34d99157a97f358b911a33
6500848c3661afda83a024f9792bc6e2e8e8a14e
/gp_JADX/com/google/android/finsky/co/C2324b.java
90b870404618c548329cb9d20f92829f5a69a8d1
[]
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
1,611
java
package com.google.android.finsky.co; import android.content.pm.PackageStats; import android.os.Process; import android.os.UserHandle; final /* synthetic */ class C2324b implements Runnable { public final C2323a f11442a; public final String f11443b; public final C2332j f11444c; C2324b(C2323a c2323a, String str, C2332j c2332j) { this.f11442a = c2323a; this.f11443b = str; this.f11444c = c2332j; } public final void run() { C2323a c2323a = this.f11442a; String str = this.f11443b; C2332j c2332j = this.f11444c; UserHandle myUserHandle = Process.myUserHandle(); try { Object invoke = c2323a.f11434d.invoke(c2323a.f11433c, new Object[]{C2323a.f11431a, str, myUserHandle}); if (invoke == null) { c2323a.f11440j.post(new C2327e(c2332j, str)); return; } PackageStats packageStats = new PackageStats(str); try { packageStats.codeSize = ((Long) c2323a.f11435e.invoke(invoke, new Object[0])).longValue(); packageStats.dataSize = ((Long) c2323a.f11436f.invoke(invoke, new Object[0])).longValue(); packageStats.cacheSize = ((Long) c2323a.f11437g.invoke(invoke, new Object[0])).longValue(); c2323a.f11440j.post(new C2329g(c2332j, packageStats)); } catch (Exception e) { c2323a.f11440j.post(new C2328f(c2332j, str, e)); } } catch (Exception e2) { c2323a.f11440j.post(new C2326d(c2332j, str, e2)); } } }
[ "genius.ron@gmail.com" ]
genius.ron@gmail.com
f657e56af102dbe0b9f943ec0a0295240c7d6128
c39f01936a03307ae00bd5adc73f2ead8a5eaeba
/src/main/java/com/nhl/link/rest/encoder/PropertyMetadataEncoder.java
39f726a37f89b6bcdb081931f3b84feb5f7dbf51
[ "BSD-2-Clause-Views" ]
permissive
leshydev/link-rest
c79212f5c39635f19f5714aeca5de1409e1c904e
8c17c18f2f653b8be2ac072c66369b9607bd49e4
refs/heads/master
2020-12-26T03:56:57.680397
2015-10-15T15:18:12
2015-10-15T15:18:12
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,640
java
package com.nhl.link.rest.encoder; import com.fasterxml.jackson.core.JsonGenerator; import com.nhl.link.rest.meta.LrAttribute; import com.nhl.link.rest.meta.LrPersistentRelationship; import com.nhl.link.rest.meta.LrRelationship; import com.nhl.link.rest.meta.cayenne.CayenneLrAttribute; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; import java.util.Date; public abstract class PropertyMetadataEncoder extends AbstractEncoder { private static final Logger LOGGER = LoggerFactory.getLogger(PropertyMetadataEncoder.class); // TODO: this just seems not right, probably we should enhance LrEntity/LrRelationship model private static final Encoder instance = new PropertyMetadataEncoder() { @Override protected String getPropertyName(Object property) { if (property instanceof LrAttribute) { return ((LrAttribute)property).getName(); } else if (property instanceof LrRelationship) { return ((LrRelationship)property).getName(); } else { return null; } } @Override protected String getPropertyType(Object property) { if (property instanceof LrAttribute) { String javaType = ((LrAttribute) property).getJavaType(); if (javaType.equals("java.lang.String")) { return "string"; } else if (javaType.equals("java.lang.Boolean")) { return "boolean"; } try { Class<?> javaClass = Class.forName(javaType); if (Number.class.isAssignableFrom(javaClass)) { return "number"; } else if (Date.class.isAssignableFrom(javaClass)) { return "date"; } } catch (ClassNotFoundException e) { LOGGER.warn("Failed to load class for name: {}", javaType); } } else if (property instanceof LrPersistentRelationship) { return ((LrPersistentRelationship) property).getObjRelationship() .getTargetEntityName(); } return null; } @Override protected void doEncode(Object property, JsonGenerator out) throws IOException { if (property instanceof CayenneLrAttribute) { if (((CayenneLrAttribute)property).getDbAttribute().isMandatory()) { out.writeBooleanField("mandatory", true); } } else if (property instanceof LrRelationship) { out.writeBooleanField("relationship", true); if (((LrRelationship)property).isToMany()) { out.writeBooleanField("collection", true); } } } }; public static Encoder encoder() { return instance; } @Override protected boolean encodeNonNullObject(Object property, JsonGenerator out) throws IOException { if (property == null) { return false; } out.writeStartObject(); out.writeStringField("name", getPropertyName(property)); out.writeStringField("type", getPropertyType(property)); doEncode(property, out); out.writeEndObject(); return true; } protected abstract String getPropertyName(Object property); protected abstract String getPropertyType(Object property); protected abstract void doEncode(Object object, JsonGenerator out) throws IOException; }
[ "nordmann89@gmail.com" ]
nordmann89@gmail.com
00835a8013dfd5be9963acd2963c36e065873b9d
86ca3b3e8a012e4a551941d6830c580193cdefad
/UnknownGame/dev_resources/minecraft_src/minecraft/net/minecraft/src/ScreenWithCallback.java
5d484d8d43eb41e477f616781ed13724098a9367
[]
no_license
Tmuch/UnknownGame
b162201694b2435fa8a13091e4681a7cb04a1be4
7927c7f14c97d9c8910b01dc3fe80c6d6f3bd0d6
refs/heads/master
2021-01-10T20:54:55.382058
2013-08-05T22:24:33
2013-08-05T22:24:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
143
java
package net.minecraft.src; public abstract class ScreenWithCallback extends GuiScreen { abstract void func_110354_a(Object var1); }
[ "tyler.much@marquette.edu" ]
tyler.much@marquette.edu
f15abfe46a68141dfb8aab6cd0c40ad5d8649211
0365904960c1b09e3ad21f9807507009085bf522
/iterators/src/test/java/com/mattunderscore/iterators/CastingArrayIteratorTest.java
1b2a844e0c93970f023711bb3786cd1ca0cc07a7
[ "BSD-3-Clause" ]
permissive
mattunderscorechampion/tree-root
885f8c482af462c8b0bd4597943f3103155349e2
216fcc65044a451296a9881012443733515f58fd
refs/heads/master
2023-03-16T18:04:22.976498
2016-10-04T20:47:32
2016-10-04T20:47:32
21,217,047
1
0
null
null
null
null
UTF-8
Java
false
false
3,296
java
/* Copyright © 2014 Matthew Champion All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of mattunderscore.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MATTHEW CHAMPION BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package com.mattunderscore.iterators; import org.junit.Test; import java.util.Iterator; import java.util.NoSuchElementException; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; public final class CastingArrayIteratorTest { @Test(expected = NoSuchElementException.class) public void stringCast() { final Object[] objects = new Object[] {"a", "b"}; final Iterator<String> iterator = new CastingArrayIterator<>(objects); assertTrue(iterator.hasNext()); assertEquals("a", iterator.next()); assertEquals("b", iterator.next()); assertFalse(iterator.hasNext()); iterator.next(); } @Test(expected = NoSuchElementException.class) public void unsafeCreation() { final Object[] objects = new Object[] {"a", "b"}; final Iterator<String> iterator = CastingArrayIterator.unsafeCreate(objects); assertTrue(iterator.hasNext()); assertEquals("a", iterator.next()); assertEquals("b", iterator.next()); assertFalse(iterator.hasNext()); iterator.next(); } @Test(expected = NoSuchElementException.class) public void safeCreation() { final String[] objects = new String[] {"a", "b"}; final Iterator<String> iterator = CastingArrayIterator.create(objects); assertTrue(iterator.hasNext()); assertEquals("a", iterator.next()); assertEquals("b", iterator.next()); assertFalse(iterator.hasNext()); iterator.next(); } @Test(expected = UnsupportedOperationException.class) public void remove() { final Iterator<String> iterator = new CastingArrayIterator<>(new Object[] {"a"}); iterator.remove(); } }
[ "mattunderscorechampion@gmail.com" ]
mattunderscorechampion@gmail.com
b564e6dfc5d9ddfd2e56d9d003fe282b0c2ba0f3
6b83984ff783452c3e9aa2b7a1d16192b351a60a
/question1403_minimum_subsequence_in_non_increasing_order/Solution.java
6d7d373c00a1f075a5023f6922e16ca47d0c84fa
[]
no_license
617076674/LeetCode
aeedf17d7cd87b9e59e0a107cd6af5ce9bac64f8
0718538ddb79e71fec9a330ea27524a60eb60259
refs/heads/master
2022-05-13T18:29:44.982447
2022-04-13T01:03:28
2022-04-13T01:03:28
146,989,451
207
58
null
null
null
null
UTF-8
Java
false
false
664
java
package question1403_minimum_subsequence_in_non_increasing_order; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class Solution { public List<Integer> minSubsequence(int[] nums) { Arrays.sort(nums); int sum = 0; for (int num : nums) { sum += num; } List<Integer> result = new ArrayList<>(); int resultSum = 0; for (int i = nums.length - 1; i >= 0; i--) { result.add(nums[i]); resultSum += nums[i]; if (resultSum > sum - resultSum) { return result; } } return result; } }
[ "617076674@qq.com" ]
617076674@qq.com
e96579df3e0fec094fff3d7d1a3c389adefe7ecf
070b9e745c5aad76fb310f5c9111ed77a1036291
/Drona-Package/com/facebook/drawee/drawable/VisibilityAwareDrawable.java.obf
d55f9142ccd4d2fab30f80b14c628834bee4efbe
[]
no_license
Drona-team/Drona
0f057e62e7f77babf112311734ee98c5824f166c
e33a9d92011ef7790c7547cc5a5380083f0dbcd7
refs/heads/master
2022-11-18T06:38:57.404528
2020-07-18T09:35:57
2020-07-18T09:35:57
280,390,561
0
0
null
null
null
null
UTF-8
Java
false
false
183
obf
package com.facebook.drawee.drawable; public abstract interface VisibilityAwareDrawable { public abstract void setVisibilityCallback(VisibilityCallback paramVisibilityCallback); }
[ "samridh6759@gmail.com" ]
samridh6759@gmail.com
37eaf9f4a8f9c3ac4dfa9315bc01a3240549f880
f489dde487258472335d0b4a36f52a4c2231e32d
/src/main/java/com/mycompany/myapp/config/ApplicationProperties.java
8884cd92ece911887ade1acae5679312270ac4da
[]
no_license
vundavallibalakrishna/jhipsterSampleApplicationwithredis
3722f03b78bc569e68866e8839cadc26086b4104
e952c99b6c9041124a0953b3462ca55642f4eb08
refs/heads/master
2022-04-28T18:31:17.274546
2020-03-23T10:43:11
2020-03-23T10:43:11
249,402,974
1
0
null
2022-03-08T21:19:11
2020-03-23T10:42:54
Java
UTF-8
Java
false
false
455
java
package com.mycompany.myapp.config; import org.springframework.boot.context.properties.ConfigurationProperties; /** * Properties specific to Jhipster Sample Applicationwithredis. * <p> * Properties are configured in the {@code application.yml} file. * See {@link io.github.jhipster.config.JHipsterProperties} for a good example. */ @ConfigurationProperties(prefix = "application", ignoreUnknownFields = false) public class ApplicationProperties {}
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
5d088025b4a3c7520681c8c6b793266ff4d975b5
6ef4869c6bc2ce2e77b422242e347819f6a5f665
/devices/google/Pixel 2/29/QPP6.190730.005/src/conscrypt/com/android/org/conscrypt/OpenSSLBIOSink.java
6053f1c797351e7b405899478d6c05edb5983ac9
[]
no_license
hacking-android/frameworks
40e40396bb2edacccabf8a920fa5722b021fb060
943f0b4d46f72532a419fb6171e40d1c93984c8e
refs/heads/master
2020-07-03T19:32:28.876703
2019-08-13T03:31:06
2019-08-13T03:31:06
202,017,534
2
0
null
2019-08-13T03:33:19
2019-08-12T22:19:30
Java
UTF-8
Java
false
false
1,382
java
/* * Decompiled with CFR 0.145. */ package com.android.org.conscrypt; import com.android.org.conscrypt.NativeCrypto; import java.io.ByteArrayOutputStream; final class OpenSSLBIOSink { private final ByteArrayOutputStream buffer; private final long ctx; private int position; private OpenSSLBIOSink(ByteArrayOutputStream byteArrayOutputStream) { this.ctx = NativeCrypto.create_BIO_OutputStream(byteArrayOutputStream); this.buffer = byteArrayOutputStream; } static OpenSSLBIOSink create() { return new OpenSSLBIOSink(new ByteArrayOutputStream()); } int available() { return this.buffer.size() - this.position; } protected void finalize() throws Throwable { try { NativeCrypto.BIO_free_all(this.ctx); return; } finally { super.finalize(); } } long getContext() { return this.ctx; } int position() { return this.position; } void reset() { this.buffer.reset(); this.position = 0; } long skip(long l) { int n = Math.min(this.available(), (int)l); this.position += n; if (this.position == this.buffer.size()) { this.reset(); } return n; } byte[] toByteArray() { return this.buffer.toByteArray(); } }
[ "me@paulo.costa.nom.br" ]
me@paulo.costa.nom.br
8ff9961b8e4c984e52c7574cbbf32c8169ec180e
35dcced34f39f1c4ee74d43f5edb6e16f61f2303
/03. Desarrollo/02. CodigoFuente/tecnica/V1.0.0/src/main/java/co/edu/sena/dwbh/service/mapper/ProgramaMapper.java
6d6552a6da359d2cb9582a3e99ebeedbc440a72b
[]
no_license
Lotbrock/D.W.B.H-CORPORATION
459fded0bcd5afb4da5eadeedc077729948759a6
405a3d298705e7bd86dead16f741b906e22a504b
refs/heads/master
2022-01-31T18:24:32.353081
2018-12-10T18:08:51
2018-12-10T18:08:51
151,576,870
0
0
null
null
null
null
UTF-8
Java
false
false
938
java
package co.edu.sena.dwbh.service.mapper; import co.edu.sena.dwbh.domain.*; import co.edu.sena.dwbh.service.dto.ProgramaDTO; import org.mapstruct.*; /** * Mapper for the entity Programa and its DTO ProgramaDTO. */ @Mapper(componentModel = "spring", uses = {NivelFormacionMapper.class}) public interface ProgramaMapper extends EntityMapper<ProgramaDTO, Programa> { @Mapping(source = "nivelFormacion.id", target = "nivelFormacionId") @Mapping(source = "nivelFormacion.nivel", target = "nivelFormacionNivel") ProgramaDTO toDto(Programa programa); @Mapping(target = "competencias", ignore = true) @Mapping(source = "nivelFormacionId", target = "nivelFormacion") Programa toEntity(ProgramaDTO programaDTO); default Programa fromId(Long id) { if (id == null) { return null; } Programa programa = new Programa(); programa.setId(id); return programa; } }
[ "jafajardo37@misena.edu.co" ]
jafajardo37@misena.edu.co
6d5f8e49a4f0e240f10f0ce519dce3a5dde9e23f
4326300db0816e928fde7236af8eb3967ae95f13
/src/main/java/de/embl/cba/bdv/utils/converters/MappingLinearARGBConverter.java
f4e4c6ad61b8c59d0efbd962557f02b8592078c5
[ "BSD-2-Clause" ]
permissive
embl-cba/imagej-utils
c8d6a3dafc087d329ea2bd4386cbf3c399ea86fe
61c1d0342e015db3628bcfc40d254638a487c178
refs/heads/master
2022-11-07T06:30:09.656289
2022-09-23T13:43:20
2022-09-23T13:43:20
157,394,467
0
0
BSD-2-Clause
2022-09-23T13:39:15
2018-11-13T14:37:27
Java
UTF-8
Java
false
false
2,523
java
/*- * #%L * Various Java code for ImageJ * %% * Copyright (C) 2018 - 2022 EMBL * %% * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * #L% */ package de.embl.cba.bdv.utils.converters; import de.embl.cba.bdv.utils.lut.Luts; import net.imglib2.type.numeric.RealType; import net.imglib2.type.volatiles.VolatileARGBType; import java.util.function.Function; public class MappingLinearARGBConverter extends LinearARGBConverter { final Function< Double, Double > mappingFn; public MappingLinearARGBConverter( double min, double max, Function< Double, Double > mappingFn ) { this( min, max, Luts.GRAYSCALE, mappingFn ); } public MappingLinearARGBConverter( double min, double max, byte[][] lut, Function< Double, Double > mappingFn ) { super( min, max, lut ); this.mappingFn = mappingFn; } @Override public void convert( RealType realType, VolatileARGBType volatileARGBType ) { final Double mappedValue = mappingFn.apply( realType.getRealDouble() ); if ( mappedValue == null ) { volatileARGBType.set( 0 ); return; } final byte lutIndex = computeLutIndex( mappedValue ); volatileARGBType.set( Luts.getARGBIndex( lutIndex, lut ) ); } public Function< Double, Double > getMappingFn() { return mappingFn; } }
[ "christian.tischer@embl.de" ]
christian.tischer@embl.de
10c89324acf9daf0570a2455148c9c0c6be6ff21
b03e73ff19caff0eef688ebc651de913c67592c0
/2018.2/IA/Projeto/weka_source_from_jdcore/weka/gui/sql/ResultSetTableCellRenderer.java
e2c92b9c1a80f96c2997f885d771395fb0b863e0
[]
no_license
fiorentinogiuseppe/Projetos_UFRPE
51a577680909979c9728ff71520b497b1d8e11e8
52d5fb74648e5221d455cbb5faf3f2c8ac2c0c64
refs/heads/master
2020-12-09T05:52:39.522462
2020-01-16T10:35:28
2020-01-16T10:35:28
233,209,784
0
0
null
null
null
null
UTF-8
Java
false
false
2,421
java
package weka.gui.sql; import java.awt.Color; import java.awt.Component; import javax.swing.JTable; import javax.swing.ListSelectionModel; import javax.swing.UIManager; import javax.swing.table.DefaultTableCellRenderer; import javax.swing.table.TableColumnModel; public class ResultSetTableCellRenderer extends DefaultTableCellRenderer { private static final long serialVersionUID = -8106963669703497351L; private Color missingColor; private Color missingColorSelected; public ResultSetTableCellRenderer() { this(new Color(223, 223, 223), new Color(192, 192, 192)); } public ResultSetTableCellRenderer(Color missingColor, Color missingColorSelected) { this.missingColor = missingColor; this.missingColorSelected = missingColorSelected; } public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component result = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); if ((table.getModel() instanceof ResultSetTableModel)) { ResultSetTableModel model = (ResultSetTableModel)table.getModel(); if (row >= 0) { if (model.isNullAt(row, column)) { Messages.getInstance();setToolTipText(Messages.getString("ResultSetTableCellRenderer_GetTableCellRendererComponent_SetToolTipText_Text")); if (isSelected) { result.setBackground(missingColorSelected); } else { result.setBackground(missingColor); } } else { setToolTipText(null); if (isSelected) { result.setBackground(table.getSelectionBackground()); } else { result.setBackground(Color.WHITE); } } if (model.isNumericAt(column)) { setHorizontalAlignment(4); } else { setHorizontalAlignment(2); } } else { setBorder(UIManager.getBorder("TableHeader.cellBorder")); setHorizontalAlignment(0); if (table.getColumnModel().getSelectionModel().isSelectedIndex(column)) { result.setBackground(UIManager.getColor("TableHeader.background").darker()); } else { result.setBackground(UIManager.getColor("TableHeader.background")); } } } return result; } }
[ "fiorentinogiuseppebcc@gmail.com" ]
fiorentinogiuseppebcc@gmail.com
771c27622536d3eebe1f4fe9943172ba45830018
4ace0d5c74e8f59bb22e0f28676bcf2a138ab4d7
/source/src/main/java/com/happyholiday/util/SessionMap.java
beef8b740e3c25d4209e6c960594746b813dc333
[]
no_license
godaner/happyholiday
62494c992678a4476110be1fdf70c58cc93b2ff3
f552bb6261d1f200acc10b4abf72712949dfa55d
refs/heads/master
2021-01-19T17:09:50.555131
2017-08-22T15:50:29
2017-08-22T15:50:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,853
java
package com.happyholiday.util; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import javax.servlet.ServletContext; import javax.servlet.http.HttpSession; import com.happyholiday.admin.util.BackTools; /** * 放置于application的一个map集合 * @author Jhon * * @param <K> * @param <V> */ public class SessionMap<K,V>{ private Map<K,V> sessionMap = null; private ServletContext app = null; private String mapName = ""; public SessionMap(String mapName) { this.mapName = mapName; this.app = BackTools.getSession().getServletContext(); //如果app中含有sessionmap,那么获取 Map<K,V> sessionMap = (Map<K, V>) this.app.getAttribute(mapName); if(sessionMap==null){ //初始化map this.sessionMap = new HashMap<K,V>(); //存入map到app this.app.setAttribute(mapName, this.sessionMap); }else{ //初始化map this.sessionMap = sessionMap; } } /** * 获取app中的map * @return */ private Map<K, V> getSessionMap(String mapName) { return (Map<K, V>) app.getAttribute(mapName); } /** * 设置map到app * @param mapName */ private void setSessionMap(String mapName,Map<K, V> sessionMap) { app.removeAttribute(mapName); app.setAttribute(mapName,sessionMap); } /** * 添加参数 * @param key * @param value */ public void addAttribute(K key,V value){ Map<K,V> sessionMap = this.getSessionMap(this.mapName); sessionMap.put(key, value); this.setSessionMap(mapName, sessionMap); } /** * 移除参数 * @param key */ public void removeAttribute(String key){ Map<K,V> sessionMap = this.getSessionMap(this.mapName); sessionMap.remove(key); this.setSessionMap(mapName, sessionMap); } /** * 获取参数 * @param key * @return */ public V getAttribute(String key){ Map<K,V> sessionMap = this.getSessionMap(this.mapName); V value = sessionMap.get(key); return value; } /** * 查看是否包含元素 * @param key * @return */ public <K,V> boolean containKey(K key){ Map<K, V> sessionMap = (Map<K, V>) this.getSessionMap(this.mapName); V value = sessionMap.get(key); if(value!=null){ return true; }else{ return false; } } /** * 获取sessionmap的所有values * @return */ public List<V> getValues(){ Map<K, V> sessionMap = (Map<K, V>) this.getSessionMap(this.mapName); Set<K> keysSet = sessionMap.keySet(); List<V> list = BackTools.getArrayList(); for (K k : keysSet) { list.add(sessionMap.get(k)); } return list; } /** * 获取sessionmap的所有key * @return */ public List<K> getKeys(){ Map<K, V> sessionMap = (Map<K, V>) this.getSessionMap(this.mapName); Set<K> keysSet = sessionMap.keySet(); List<K> list = BackTools.getArrayList(); for (K k : keysSet) { list.add(k); } return list; } }
[ "1138829222@qq.com" ]
1138829222@qq.com
277a0ea11c3a59cfcee5616d7c7134cba16f6664
1ec827193b5aeae39b5f5241f85093e6dbf16f76
/study-spring-jdbc/src/main/java/com/hzdongcheng/persistent/entity/OPOperator.java
96e8dba2858e94da8461862ecc73f1d741ba4245
[]
no_license
valiantzh/study-spring
b66e51f9505349baa9d26eeab2c056c5bd5afbe8
5356b8a0351a45ed5048d0eb4c26e24570a6eb9d
refs/heads/master
2020-04-07T13:13:48.562750
2018-12-12T03:29:45
2018-12-12T03:29:45
158,398,360
0
0
null
null
null
null
UTF-8
Java
false
false
4,071
java
package com.hzdongcheng.persistent.entity; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.ToStringStyle; public class OPOperator implements java.io.Serializable { private static final long serialVersionUID = 1L; public String OperID = ""; public String DepartmentID = ""; public String UserID = ""; public int OperType; public String OperName = ""; public String OperPassword = ""; public String PlainPassword = ""; public String BindCardID = ""; public String BindMobile = ""; public String OfficeTel = ""; public String Mobile = ""; public String Email = ""; public java.sql.Date CreateDate; public java.sql.Timestamp CreateTime; public String UpperUserID = ""; public String OperStatus = ""; public java.sql.Timestamp LastModifyTime; public String Remark = ""; public void setOperID(String operID) { this.OperID = operID; } public String getOperID() { return this.OperID; } public void setDepartmentID(String departmentID) { this.DepartmentID = departmentID; } public String getDepartmentID() { return this.DepartmentID; } public void setUserID(String userID) { this.UserID = userID; } public String getUserID() { return this.UserID; } public void setOperType(int operType) { this.OperType = operType; } public int getOperType() { return this.OperType; } public void setOperName(String operName) { this.OperName = operName; } public String getOperName() { return this.OperName; } public void setOperPassword(String operPassword) { this.OperPassword = operPassword; } public String getOperPassword() { return this.OperPassword; } public void setPlainPassword(String plainPassword) { this.PlainPassword = plainPassword; } public String getPlainPassword() { return this.PlainPassword; } public void setBindCardID(String bindCardID) { this.BindCardID = bindCardID; } public String getBindCardID() { return this.BindCardID; } public void setBindMobile(String bindMobile) { this.BindMobile = bindMobile; } public String getBindMobile() { return this.BindMobile; } public void setOfficeTel(String officeTel) { this.OfficeTel = officeTel; } public String getOfficeTel() { return this.OfficeTel; } public void setMobile(String mobile) { this.Mobile = mobile; } public String getMobile() { return this.Mobile; } public void setEmail(String email) { this.Email = email; } public String getEmail() { return this.Email; } public void setCreateDate(java.sql.Date createDate) { this.CreateDate = createDate; } public java.sql.Date getCreateDate() { return this.CreateDate; } public void setCreateTime(java.sql.Timestamp createTime) { this.CreateTime = createTime; } public java.sql.Timestamp getCreateTime() { return this.CreateTime; } public void setUpperUserID(String upperUserID) { this.UpperUserID = upperUserID; } public String getUpperUserID() { return this.UpperUserID; } public void setOperStatus(String operStatus) { this.OperStatus = operStatus; } public String getOperStatus() { return this.OperStatus; } public void setLastModifyTime(java.sql.Timestamp lastModifyTime) { this.LastModifyTime = lastModifyTime; } public java.sql.Timestamp getLastModifyTime() { return this.LastModifyTime; } public void setRemark(String remark) { this.Remark = remark; } public String getRemark() { return this.Remark; } public String toString () { return ToStringBuilder.reflectionToString(this,ToStringStyle.SHORT_PREFIX_STYLE); } }
[ "zhengxiaoyong@hzdongcheng.com" ]
zhengxiaoyong@hzdongcheng.com
b41af074366c70a013d740024a0276138f74279c
f6d26137b240ef25c300d2dd4c1d2b6aad33ad5d
/hzero-starter-mybatis-mapper/src/main/java/io/choerodon/mybatis/handler/Boolean2IntTypeHandler.java
45f0db4ea402afa9abeea7a0269b176791509471
[ "Apache-2.0" ]
permissive
ewinds/hzero-starter-parent
577cc1932189371d93011f38413c42cd4e94e571
29027955a0cd731145d50843aefb412a11c5d50d
refs/heads/master
2023-03-07T19:30:40.191996
2021-02-26T04:25:14
2021-02-26T04:25:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,196
java
package io.choerodon.mybatis.handler; import org.apache.ibatis.type.BaseTypeHandler; import org.apache.ibatis.type.JdbcType; import java.sql.CallableStatement; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; /** * @author ThisO 2020/5/29 16:36 */ public class Boolean2IntTypeHandler extends BaseTypeHandler<Boolean> { @Override public void setNonNullParameter(PreparedStatement ps, int i, Boolean parameter, JdbcType jdbcType) throws SQLException { if (parameter == null) { throw new IllegalArgumentException("Parameter must be not null."); } ps.setInt(i, parameter ? 1 : 0); } @Override public Boolean getNullableResult(ResultSet rs, String columnName) throws SQLException { return rs.getInt(columnName) == 1 ? true : false; } @Override public Boolean getNullableResult(ResultSet rs, int columnIndex) throws SQLException { return rs.getInt(columnIndex) == 1 ? true : false; } @Override public Boolean getNullableResult(CallableStatement cs, int columnIndex) throws SQLException { return cs.getInt(columnIndex) == 1 ? true : false; } }
[ "xiaoyu.zhao@hand-china.com" ]
xiaoyu.zhao@hand-china.com
6a76e563221e6113c8f896469ed0c67cbe87854c
83e81c25b1f74f88ed0f723afc5d3f83e7d05da8
/apct-tests/perftests/core/src/android/os/StrictModeTest.java
57d0ed5de5409a3b747456b0e23486bbdeb61787
[ "Apache-2.0", "LicenseRef-scancode-unicode" ]
permissive
Ankits-lab/frameworks_base
8a63f39a79965c87a84e80550926327dcafb40b7
150a9240e5a11cd5ebc9bb0832ce30e9c23f376a
refs/heads/main
2023-02-06T03:57:44.893590
2020-11-14T09:13:40
2020-11-14T09:13:40
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,926
java
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package android.os; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; import android.net.Uri; import android.perftests.utils.BenchmarkState; import android.perftests.utils.PerfStatusReporter; import androidx.test.InstrumentationRegistry; import androidx.test.filters.LargeTest; import androidx.test.runner.AndroidJUnit4; import com.google.common.util.concurrent.SettableFuture; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; import java.io.File; import java.io.IOException; import java.util.concurrent.ExecutionException; @RunWith(AndroidJUnit4.class) @LargeTest public class StrictModeTest { @Rule public PerfStatusReporter mPerfStatusReporter = new PerfStatusReporter(); @Test public void timeVmViolation() { final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder().detectAll().penaltyLog().build()); causeVmViolations(state); } @Test public void timeVmViolationNoStrictMode() { final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); causeVmViolations(state); } private static void causeVmViolations(BenchmarkState state) { Intent intent = new Intent(Intent.ACTION_VIEW); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.setDataAndType(Uri.parse("content://com.example/foobar"), "image/jpeg"); final Context context = InstrumentationRegistry.getTargetContext(); while (state.keepRunning()) { context.startActivity(intent); } } @Test public void timeThreadViolation() throws IOException { final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); StrictMode.setThreadPolicy( new StrictMode.ThreadPolicy.Builder().detectAll().penaltyLog().build()); causeThreadViolations(state); } @Test public void timeThreadViolationNoStrictMode() throws IOException { final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); causeThreadViolations(state); } private static void causeThreadViolations(BenchmarkState state) throws IOException { final File test = File.createTempFile("foo", "bar"); while (state.keepRunning()) { test.exists(); } test.delete(); } @Test public void timeCrossBinderThreadViolation() throws Exception { final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); StrictMode.setThreadPolicy( new StrictMode.ThreadPolicy.Builder().detectAll().penaltyLog().build()); causeCrossProcessThreadViolations(state); } @Test public void timeCrossBinderThreadViolationNoStrictMode() throws Exception { final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); causeCrossProcessThreadViolations(state); } private static void causeCrossProcessThreadViolations(BenchmarkState state) throws ExecutionException, InterruptedException, RemoteException { final Context context = InstrumentationRegistry.getTargetContext(); SettableFuture<IBinder> binder = SettableFuture.create(); ServiceConnection connection = new ServiceConnection() { @Override public void onServiceConnected(ComponentName className, IBinder service) { binder.set(service); } @Override public void onServiceDisconnected(ComponentName arg0) { binder.set(null); } }; context.bindService( new Intent(context, SomeService.class), connection, Context.BIND_AUTO_CREATE); ISomeService someService = ISomeService.Stub.asInterface(binder.get()); while (state.keepRunning()) { // Violate strictmode heavily. someService.readDisk(10); } context.unbindService(connection); } }
[ "keneankit01@gmail.com" ]
keneankit01@gmail.com
493e5ae25eb20e22c6ec7a7b3bcab43ad5fdaa38
a013fa3d632aed0f763597af9e2ffc74da61b6da
/src/main/java/com/jstarcraft/ai/neuralnetwork/vertex/transformation/VerticalStackVertex.java
07c9179f6a1f7d2663c1fe4f6857e088bc74fee8
[ "Apache-2.0" ]
permissive
apple006/jstarcraft-ai-1.0
264b585beb589d665da9a54bb175321b3f964ede
2be88c1752a0dc9dca81296cfc7c6260398f3c5f
refs/heads/master
2020-04-14T00:09:59.962239
2018-12-29T15:29:00
2018-12-29T15:29:00
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,755
java
package com.jstarcraft.ai.neuralnetwork.vertex.transformation; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; import com.jstarcraft.ai.math.structure.matrix.MathMatrix; import com.jstarcraft.ai.math.structure.matrix.RowCompositeMatrix; import com.jstarcraft.ai.neuralnetwork.MatrixFactory; import com.jstarcraft.ai.neuralnetwork.vertex.AbstractVertex; import com.jstarcraft.core.utility.KeyValue; /** * StackVertex allows for stacking of inputs so that they may be forwarded * through a network. This is useful for cases such as Triplet Embedding, where * shared parameters are not supported by the network. * * This vertex will automatically stack all available inputs. * * @author Justin Long (crockpotveggies) */ /** * Euclidean节点 * * <pre></pre> * * @author Birdy * */ // TODO 准备改名为VerticalAttachVertex public class VerticalStackVertex extends AbstractVertex { protected VerticalStackVertex() { } public VerticalStackVertex(String name, MatrixFactory factory) { super(name, factory); } @Override public void doCache(KeyValue<MathMatrix, MathMatrix>... samples) { super.doCache(samples); // 检查样本的维度是否一样 int columnSize = samples[0].getKey().getColumnSize(); for (int position = 1; position < samples.length; position++) { if (columnSize != samples[position].getKey().getColumnSize()) { throw new IllegalArgumentException(); } } // 获取样本的数量 MathMatrix[] keys = new MathMatrix[inputKeyValues.length]; MathMatrix[] values = new MathMatrix[inputKeyValues.length]; for (int position = 0; position < inputKeyValues.length; position++) { keys[position] = inputKeyValues[position].getKey(); values[position] = inputKeyValues[position].getValue(); } MathMatrix outputData = RowCompositeMatrix.attachOf(keys); outputKeyValue.setKey(outputData); MathMatrix innerError = RowCompositeMatrix.attachOf(values); outputKeyValue.setValue(innerError); } @Override public void doForward() { } @Override public void doBackward() { } @Override public boolean equals(Object object) { if (this == object) { return true; } if (object == null) { return false; } if (getClass() != object.getClass()) { return false; } else { VerticalStackVertex that = (VerticalStackVertex) object; EqualsBuilder equal = new EqualsBuilder(); equal.append(this.vertexName, that.vertexName); return equal.isEquals(); } } @Override public int hashCode() { HashCodeBuilder hash = new HashCodeBuilder(); hash.append(vertexName); return hash.toHashCode(); } @Override public String toString() { return "StackVertex(name=" + vertexName + ")"; } }
[ "Birdy@DESKTOP-0JF93DF" ]
Birdy@DESKTOP-0JF93DF
2135b6ba78ad6c366655e8db2df6f1ba7034c3ca
d05ac0e945576eb8e51cb38dcf7350296bacdba1
/jbossws-core/src/org/jboss/ws/metadata/config/binding/OMFactoryJAXWS.java
a078343fdadfea3690dbb9d76f1afbc6599cda81
[]
no_license
Arckman/CBPM
9b6a125ea2bebe44749c09cfc37f89fdc15d69b7
10663b40abf151c90d0b20878f8f7f20c8077b30
refs/heads/master
2016-09-06T09:02:15.819806
2014-05-22T02:40:16
2014-05-22T02:40:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,447
java
/* * JBoss, Home of Professional Open Source * Copyright 2005, JBoss Inc., and individual contributors as indicated * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This 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 software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this software; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.jboss.ws.metadata.config.binding; //$Id: OMFactoryJAXWS.java 3146 2007-05-18 22:55:26Z thomas.diesler@jboss.com $ import org.jboss.logging.Logger; import org.jboss.ws.metadata.config.EndpointProperty; import org.jboss.ws.metadata.config.jaxws.ClientConfigJAXWS; import org.jboss.ws.metadata.config.jaxws.CommonConfigJAXWS; import org.jboss.ws.metadata.config.jaxws.ConfigRootJAXWS; import org.jboss.ws.metadata.config.jaxws.EndpointConfigJAXWS; import org.jboss.ws.metadata.config.jaxws.HandlerChainsConfigJAXWS; import org.jboss.wsf.spi.metadata.j2ee.serviceref.HandlerChainsObjectFactory; import org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerChainMetaData; import org.jboss.xb.binding.UnmarshallingContext; import org.xml.sax.Attributes; /** * ObjectModelFactory for JAXRPC configurations. * * @author Thomas.Diesler@jboss.org * @author Heiko.Braun@jboss.org * @since 18-Dec-2005 */ public class OMFactoryJAXWS extends HandlerChainsObjectFactory { // provide logging private final Logger log = Logger.getLogger(OMFactoryJAXWS.class); public Object newRoot(Object root, UnmarshallingContext ctx, String namespaceURI, String localName, Attributes attrs) { return new ConfigRootJAXWS(); } public Object completeRoot(Object root, UnmarshallingContext ctx, String namespaceURI, String localName) { return root; } /** * Called when parsing of a new element started. */ public Object newChild(ConfigRootJAXWS config, UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs) { log.trace("WSConfig newChild: " + localName); if ("endpoint-config".equals(localName)) { EndpointConfigJAXWS wsEndpointConfig = new EndpointConfigJAXWS(); config.getEndpointConfig().add(wsEndpointConfig); return wsEndpointConfig; } if ("client-config".equals(localName)) { ClientConfigJAXWS clientConfig = new ClientConfigJAXWS(); config.getClientConfig().add(clientConfig); return clientConfig; } return null; } /** * Called when a new simple child element with text value was read from the XML content. */ public void setValue(CommonConfigJAXWS commonConfig, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (log.isTraceEnabled()) log.trace("CommonConfig setValue: nuri=" + namespaceURI + " localName=" + localName + " value=" + value); if (localName.equals("config-name")) commonConfig.setConfigName(value); if(localName.equals("feature")) commonConfig.setFeature(value, true); if("property-name".equals(localName)) { commonConfig.addProperty(value, null); } else if("property-value".equals(localName)) { int lastEntry = commonConfig.getProperties().isEmpty() ? 0 : commonConfig.getProperties().size()-1; EndpointProperty p = commonConfig.getProperties().get(lastEntry); p.value = value; } } /** * Called when parsing of a new element started. */ public Object newChild(CommonConfigJAXWS commonConfig, UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs) { log.trace("CommonConfig newChild: " + localName); if ("pre-handler-chains".equals(localName)) { HandlerChainsConfigJAXWS preHandlerChains = new HandlerChainsConfigJAXWS(); commonConfig.setPreHandlerChains(preHandlerChains); return preHandlerChains; } if ("post-handler-chains".equals(localName)) { HandlerChainsConfigJAXWS postHandlerChains = new HandlerChainsConfigJAXWS(); commonConfig.setPostHandlerChains(postHandlerChains); return postHandlerChains; } return null; } /** * Called when parsing of a new element started. */ public Object newChild(HandlerChainsConfigJAXWS handlerChains, UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs) { log.trace("WSHandlerChainsConfig newChild: " + localName); if ("handler-chain".equals(localName)) { UnifiedHandlerChainMetaData handlerChain = new UnifiedHandlerChainMetaData(null); handlerChains.getHandlerChains().add(handlerChain); return handlerChain; } return null; } }
[ "fengrj1989@gmail.com" ]
fengrj1989@gmail.com