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
24c84363d87c54912e6230881ef633c369a642e8
db96b76094730056966dd1bb04b2fb4a88271549
/apps/PermissionController/src/com/android/packageinstaller/role/ui/RoleLiveData.java
4b932b6f14f6d8ee978eb9915f172c97367b569b
[]
no_license
dylanbroodryk/Android-system-apps
48335f66d3fad6532cda19e192f11af1f69dce00
50f6f11f70906260a710cbeb66a92fba72410504
refs/heads/master
2022-03-14T16:15:33.277628
2022-02-12T04:56:41
2022-02-12T04:56:41
228,542,760
0
0
null
2019-12-17T05:50:11
2019-12-17T05:50:10
null
UTF-8
Java
false
false
3,755
java
/* * Copyright (C) 2018 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 com.android.packageinstaller.role.ui; import android.app.role.OnRoleHoldersChangedListener; import android.app.role.RoleManager; import android.content.Context; import android.content.pm.ApplicationInfo; import android.os.UserHandle; import android.util.Log; import android.util.Pair; import androidx.annotation.NonNull; import androidx.annotation.WorkerThread; import androidx.lifecycle.LiveData; import com.android.packageinstaller.AsyncTaskLiveData; import com.android.packageinstaller.role.model.Role; import com.android.packageinstaller.role.utils.PackageUtils; import java.util.ArrayList; import java.util.List; /** * {@link LiveData} for a role. */ public class RoleLiveData extends AsyncTaskLiveData<List<Pair<ApplicationInfo, Boolean>>> implements OnRoleHoldersChangedListener { private static final String LOG_TAG = RoleLiveData.class.getSimpleName(); @NonNull private final Role mRole; @NonNull private final UserHandle mUser; @NonNull private final Context mContext; public RoleLiveData(@NonNull Role role, @NonNull UserHandle user, @NonNull Context context) { mRole = role; mUser = user; mContext = context; } @Override protected void onActive() { loadValue(); RoleManager roleManager = mContext.getSystemService(RoleManager.class); roleManager.addOnRoleHoldersChangedListenerAsUser(mContext.getMainExecutor(), this, mUser); } @Override protected void onInactive() { RoleManager roleManager = mContext.getSystemService(RoleManager.class); roleManager.removeOnRoleHoldersChangedListenerAsUser(this, mUser); } @Override public void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) { loadValue(); } @Override @WorkerThread protected List<Pair<ApplicationInfo, Boolean>> loadValueInBackground() { RoleManager roleManager = mContext.getSystemService(RoleManager.class); List<String> holderPackageNames = roleManager.getRoleHoldersAsUser(mRole.getName(), mUser); List<String> qualifyingPackageNames = mRole.getQualifyingPackagesAsUser(mUser, mContext); List<Pair<ApplicationInfo, Boolean>> qualifyingApplications = new ArrayList<>(); int qualifyingPackageNamesSize = qualifyingPackageNames.size(); for (int i = 0; i < qualifyingPackageNamesSize; i++) { String qualifyingPackageName = qualifyingPackageNames.get(i); ApplicationInfo qualifyingApplicationInfo = PackageUtils.getApplicationInfoAsUser( qualifyingPackageName, mUser, mContext); if (qualifyingApplicationInfo == null) { Log.w(LOG_TAG, "Cannot get ApplicationInfo for application, skipping: " + qualifyingPackageName); continue; } boolean isHolderApplication = holderPackageNames.contains(qualifyingPackageName); qualifyingApplications.add(new Pair<>(qualifyingApplicationInfo, isHolderApplication)); } return qualifyingApplications; } }
[ "yuchuangu85@gmail.com" ]
yuchuangu85@gmail.com
4ecf07def2c92ad9d2ff50b4d70185330055afe8
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
/crash-reproduction-new-fitness/results/LANG-47b-1-11-Single_Objective_GGA-IntegrationSingleObjective-/org/apache/commons/lang/text/StrBuilder_ESTest_scaffolding.java
e1f08465186a5f3945175a72d16d6adb0f0a7f09
[ "MIT", "CC-BY-4.0" ]
permissive
STAMP-project/Botsing-basic-block-coverage-application
6c1095c6be945adc0be2b63bbec44f0014972793
80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da
refs/heads/master
2022-07-28T23:05:55.253779
2022-04-20T13:54:11
2022-04-20T13:54:11
285,771,370
0
0
null
null
null
null
UTF-8
Java
false
false
2,626
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Sat May 16 21:08:27 UTC 2020 */ package org.apache.commons.lang.text; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class StrBuilder_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.lang.text.StrBuilder"; 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(StrBuilder_ESTest_scaffolding.class.getClassLoader() , "org.apache.commons.lang.text.StrBuilder", "org.apache.commons.lang.text.StrBuilder$StrBuilderTokenizer", "org.apache.commons.lang.text.StrTokenizer", "org.apache.commons.lang.text.StrBuilder$StrBuilderWriter", "org.apache.commons.lang.text.StrMatcher$CharMatcher", "org.apache.commons.lang.text.StrMatcher$TrimMatcher", "org.apache.commons.lang.text.StrMatcher$CharSetMatcher", "org.apache.commons.lang.text.StrBuilder$StrBuilderReader", "org.apache.commons.lang.text.StrMatcher$StringMatcher", "org.apache.commons.lang.text.StrMatcher$NoMatcher", "org.apache.commons.lang.text.StrMatcher", "org.apache.commons.lang.SystemUtils", "org.apache.commons.lang.ArrayUtils" ); } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
19c0d6e1fa4c60d6de2300e24761e3ef0db6a4c8
8361ce420f289b04daef8a3ab1cbe45a25b2454d
/HB-Proj050-Anno-NamedNativeSQL/src/com/nt/test/NativeSQLNonSelectQueriesTest.java
9e8fd38f05eb55b5630199f041edb41f95a02b92
[]
no_license
sapkalskd/HibernateFrameWorkWS
6115b3e344d4ca5e1a577b20abaace12535ab25c
e0748a58d6942b8cc2985d2e7d760a9ae5be16e7
refs/heads/master
2020-11-27T05:05:26.697908
2019-08-04T14:52:18
2019-08-04T14:52:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,237
java
package com.nt.test; import org.hibernate.SQLQuery; import org.hibernate.Session; import org.hibernate.Transaction; import org.hibernate.query.NativeQuery; import com.nt.utility.HibernateUtil; public class NativeSQLNonSelectQueriesTest { public static void main(String[] args) { Session ses=null; NativeQuery query=null; Transaction tx=null; int count=0; boolean flag=false; ses=HibernateUtil.getSession(); try{ /*query=ses.getNamedNativeQuery("UPDATE_QUERY"); query.setParameter("amt",2000f); query.setParameter("no",81); tx=ses.beginTransaction(); count=query.executeUpdate(); flag=true;*/ query=ses.getNamedNativeQuery("DELETE_QUERY"); query.setParameter("min",2100f); query.setParameter("max",3500f); tx=ses.beginTransaction(); count=query.executeUpdate(); flag=true; }catch (Exception e) { e.printStackTrace(); } finally { if(flag) { tx.commit(); System.out.println("No. ofEmployee Details Updated/Deleted::"+count); } else { tx.rollback(); System.out.println("No. of Employee Details Not Updated/Deleted::"+count); } HibernateUtil.closeSession(ses); HibernateUtil.closeSessionFactory(); } } }
[ "varunraj2297@gmail.com" ]
varunraj2297@gmail.com
a88db15c30e96426f979b68375b5195c4e6a17ed
6f73a0d38addee468dd21aba1d5d53963be84825
/application/src/main/java/org/mifos/framework/struts/tags/MifosInternationalizedHtmlTag.java
746188d09ce1125578370ce6cf695a87aaf4ff0a
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
mifos/1.4.x
0f157f74220e8e65cc13c4252bf597c80aade1fb
0540a4b398407b9415feca1f84b6533126d96511
refs/heads/master
2020-12-25T19:26:15.934566
2010-05-11T23:34:08
2010-05-11T23:34:08
2,946,607
0
0
null
null
null
null
UTF-8
Java
false
false
4,762
java
/* * Copyright (c) 2005-2009 Grameen Foundation USA * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or * implied. See the License for the specific language governing * permissions and limitations under the License. * * See also http://www.apache.org/licenses/LICENSE-2.0.html for an * explanation of the license and how it is applied. */ package org.mifos.framework.struts.tags; import java.util.Locale; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import javax.servlet.jsp.PageContext; import org.apache.struts.Globals; import org.apache.strutsel.taglib.html.ELHtmlTag; import org.mifos.config.ConfigLocale; /** * Renders an HTML <html> element with appropriate language attributes * from the Mifos applicationConfiguration.custom.properties. * * Based on the Struts version of this tag. * */ public class MifosInternationalizedHtmlTag extends ELHtmlTag { private static final String ARABIC_LANGUAGE = "ar"; private static final String RTL = "rtl"; private static final String LTR = "ltr"; /** * Renders an &lt;html&gt; element with appropriate language attributes. * @since Struts 1.2 */ protected String renderHtmlStartElement() { StringBuffer sb = new StringBuffer("<html"); String languageCode = null; String countryCode = ""; String direction = null; ConfigLocale configLocale = new ConfigLocale(); countryCode = configLocale.getCountryCode(); languageCode = configLocale.getLanguageCode(); direction = configLocale.getDirection(); setLocaleIntoHttpSession(languageCode, countryCode); boolean validLanguage = ((languageCode != null) && (languageCode.length() > 0)); boolean validCountry = countryCode.length() > 0; if (this.xhtml) { this.pageContext.setAttribute( Globals.XHTML_KEY, "true", PageContext.PAGE_SCOPE); sb.append(" xmlns=\"http://www.w3.org/1999/xhtml\""); } if ((this.lang || this.locale || this.xhtml) && validLanguage) { sb.append(" lang=\""); appendLangIfCountryIsValid(sb, languageCode, countryCode, validCountry); } if (this.xhtml && validLanguage) { sb.append(" xml:lang=\""); appendLangIfCountryIsValid(sb, languageCode, countryCode, validCountry); } appendLang(sb, languageCode); setDirection(sb, languageCode, direction); sb.append(">"); return sb.toString(); } private void appendLangIfCountryIsValid(StringBuffer sb, String languageCode, String countryCode, boolean validCountry) { sb.append(languageCode); if (validCountry) { sb.append("-"); sb.append(countryCode); } sb.append("\""); } private void setDirection(StringBuffer sb, String languageCode, String direction) { if (!ConfigLocale.DEFAULT_DIRECTION.equals(direction)) { appendDirection(sb, direction); } else { autoDetectAndSetDirection(sb, languageCode); } } private void autoDetectAndSetDirection(StringBuffer sb, String languageCode) { String calculatedDirection = getDirection(languageCode); if (RTL.equals(calculatedDirection)) { appendDirection(sb, RTL); } } private void appendDirection(StringBuffer sb, String directionToAppend) { sb.append(" dir=\""); sb.append(directionToAppend); sb.append("\""); } private void appendLang(StringBuffer sb, String languageCode) { sb.append(" lang=\""); sb.append(languageCode); sb.append("\""); } private String getDirection(String language) { String result = LTR; if (ARABIC_LANGUAGE.equalsIgnoreCase(language)) { result = RTL; } return result; } private void setLocaleIntoHttpSession(String languageCode, String countryCode) { Locale userLocale = new Locale(languageCode, countryCode); HttpSession session = ((HttpServletRequest) this.pageContext.getRequest()).getSession(); session.setAttribute(Globals.LOCALE_KEY, userLocale); } }
[ "meonkeys@a8845c50-7012-0410-95d3-8e1449b9b1e4" ]
meonkeys@a8845c50-7012-0410-95d3-8e1449b9b1e4
c4e51ed586f5deb07f0c1df917e08ac980f77fbd
45736204805554b2d13f1805e47eb369a8e16ec3
/com/mysql/cj/jdbc/MysqlDataSourceFactory.java
cba79c2833f3f3def456cad8f51d4077a7396a8c
[]
no_license
KrOySi/ArchWare-Source
9afc6bfcb1d642d2da97604ddfed8048667e81fd
46cdf10af07341b26bfa704886299d80296320c2
refs/heads/main
2022-07-30T02:54:33.192997
2021-08-08T23:36:39
2021-08-08T23:36:39
394,089,144
2
0
null
null
null
null
UTF-8
Java
false
false
3,278
java
/* * Decompiled with CFR 0.150. */ package com.mysql.cj.jdbc; import com.mysql.cj.Messages; import com.mysql.cj.conf.PropertyKey; import com.mysql.cj.jdbc.MysqlConnectionPoolDataSource; import com.mysql.cj.jdbc.MysqlDataSource; import com.mysql.cj.jdbc.MysqlXADataSource; import java.util.Hashtable; import javax.naming.Context; import javax.naming.Name; import javax.naming.RefAddr; import javax.naming.Reference; import javax.naming.spi.ObjectFactory; public class MysqlDataSourceFactory implements ObjectFactory { protected static final String DATA_SOURCE_CLASS_NAME = MysqlDataSource.class.getName(); protected static final String POOL_DATA_SOURCE_CLASS_NAME = MysqlConnectionPoolDataSource.class.getName(); protected static final String XA_DATA_SOURCE_CLASS_NAME = MysqlXADataSource.class.getName(); @Override public Object getObjectInstance(Object refObj, Name nm, Context ctx, Hashtable<?, ?> env) throws Exception { Reference ref = (Reference)refObj; String className = ref.getClassName(); if (className != null && (className.equals(DATA_SOURCE_CLASS_NAME) || className.equals(POOL_DATA_SOURCE_CLASS_NAME) || className.equals(XA_DATA_SOURCE_CLASS_NAME))) { String explicitUrlAsString; String databaseName; String serverName; String password; MysqlDataSource dataSource = null; try { dataSource = (MysqlDataSource)Class.forName(className).newInstance(); } catch (Exception ex) { throw new RuntimeException(Messages.getString("MysqlDataSourceFactory.0", new Object[]{className, ex.toString()})); } int portNumber = 3306; String portNumberAsString = this.nullSafeRefAddrStringGet("port", ref); if (portNumberAsString != null) { portNumber = Integer.parseInt(portNumberAsString); } dataSource.setPort(portNumber); String user = this.nullSafeRefAddrStringGet(PropertyKey.USER.getKeyName(), ref); if (user != null) { dataSource.setUser(user); } if ((password = this.nullSafeRefAddrStringGet(PropertyKey.PASSWORD.getKeyName(), ref)) != null) { dataSource.setPassword(password); } if ((serverName = this.nullSafeRefAddrStringGet("serverName", ref)) != null) { dataSource.setServerName(serverName); } if ((databaseName = this.nullSafeRefAddrStringGet("databaseName", ref)) != null) { dataSource.setDatabaseName(databaseName); } if ((explicitUrlAsString = this.nullSafeRefAddrStringGet("explicitUrl", ref)) != null && Boolean.valueOf(explicitUrlAsString).booleanValue()) { dataSource.setUrl(this.nullSafeRefAddrStringGet("url", ref)); } dataSource.setPropertiesViaRef(ref); return dataSource; } return null; } private String nullSafeRefAddrStringGet(String referenceName, Reference ref) { RefAddr refAddr = ref.get(referenceName); String asString = refAddr != null ? (String)refAddr.getContent() : null; return asString; } }
[ "67242784+KrOySi@users.noreply.github.com" ]
67242784+KrOySi@users.noreply.github.com
960946b29fe6932c9bcb385166d2a120ca52bee1
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/1/1_52d4969a8e5d8b88ffdbeb4f6013f365def559fe/RandomAccessGenotypeDataReaderFormats/1_52d4969a8e5d8b88ffdbeb4f6013f365def559fe_RandomAccessGenotypeDataReaderFormats_t.java
bddaf5c6e9ca72272977650d35d2292da44c136e
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
7,569
java
package org.molgenis.genotype; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import org.molgenis.genotype.oxford.HapsGenotypeData; import org.molgenis.genotype.multipart.IncompatibleMultiPartGenotypeDataException; import org.molgenis.genotype.multipart.MultiPartGenotypeData; import org.molgenis.genotype.oxford.GenGenotypeData; import org.molgenis.genotype.plink.BedBimFamGenotypeData; import org.molgenis.genotype.plink.PedMapGenotypeData; import org.molgenis.genotype.sampleFilter.SampleFilter; import org.molgenis.genotype.sampleFilter.SampleFilterableGenotypeDataDecorator; import org.molgenis.genotype.trityper.TriTyperGenotypeData; import org.molgenis.genotype.variantFilter.VariantFilter; import org.molgenis.genotype.variantFilter.VariantFilterableGenotypeDataDecorator; import org.molgenis.genotype.vcf.VcfGenotypeData; public enum RandomAccessGenotypeDataReaderFormats { PED_MAP("PED / MAP files", "plink PED / MAP files"), VCF("VCF file", "gziped vcf with tabix index file"), VCF_FOLDER("VCF folder", "Matches all gziped vcf files + tabix index in a folder. Each file must contain a sigle chromosome. Each chromsome should be unique to a single file."), SHAPEIT2("Shapeit2 output", ".haps, and .samples with phased haplotypes as outputted by Shapeit2"), PLINK_BED("Plink BED / BIM / FAM files", "Plink BED / BIM / FAM files"), TRITYPER("TriTyper folder", "Folder with files in trityper format: GenotypeMatrix.dat, Individuals.txt, PhenotypeInformation.txt, SNPMappings.txt, SNPs.txt and optionally: ImputedDosageMatrix.dat"), GEN("GEN / SAMPLE files", "Oxford .gen and .sample"); private final String name; private final String description; RandomAccessGenotypeDataReaderFormats(String name, String description) { this.name = name; this.description = description; } public String getName() { return name; } public String getDescription() { return description; } public static RandomAccessGenotypeDataReaderFormats matchFormatToPath(String path) { File pathFile = new File(path); if (path.endsWith(".vcf.zg") && pathFile.exists()) { return VCF; } if (new File(path + ".vcf.gz").exists()) { return VCF; } if (new File(path + ".ped").exists() && new File(path + ".map").exists()) { return PED_MAP; } if (new File(path + ".bed").exists() && new File(path + ".bim").exists() && new File(path + ".fam").exists()) { return PLINK_BED; } if (new File(path + ".haps").exists() && new File(path + ".sample").exists()) { return SHAPEIT2; } if (new File(path + ".gen").exists() && new File(path + ".sample").exists()) { return GEN; } if (pathFile.exists() && pathFile.isFile() && new File(path + ".sample").exists()) { return GEN; } if (pathFile.isDirectory()) { for (File file : pathFile.listFiles()) { if (file.getName().endsWith(".vcg.gz")) { return VCF_FOLDER; } } if (new File(pathFile, "GenotypeMatrix.dat").exists() && (new File(pathFile, "SNPs.txt").exists() || new File(pathFile, "SNPs.txt.gz").exists()) && (new File(pathFile, "SNPMappings.txt").exists() || new File(pathFile, "SNPMappings.txt.gz").exists()) && (new File(pathFile, "Individuals.txt").exists() || new File(pathFile, "Individuals.txt.gz").exists()) && (new File(pathFile, "PhenotypeInformation.txt").exists() || new File(pathFile, "PhenotypeInformation.txt.gz").exists())) { return TRITYPER; } } throw new GenotypeDataException("Cannot find any suitable genotype data format based on path"); } public RandomAccessGenotypeData createGenotypeData(String path) throws IOException, IncompatibleMultiPartGenotypeDataException { return createGenotypeData(path, 1000); } public RandomAccessGenotypeData createGenotypeData(String path, int cacheSize) throws IOException, IncompatibleMultiPartGenotypeDataException { return createGenotypeData(path, cacheSize, null); } public RandomAccessGenotypeData createGenotypeData(String path, int cacheSize, String forcedSequence) throws IOException, IncompatibleMultiPartGenotypeDataException { return createGenotypeData(path, cacheSize, forcedSequence, 0.34f); } public RandomAccessGenotypeData createGenotypeData(String path, int cacheSize, String forcedSequence, float minimumPosteriorProbabilityToCall) throws IOException, IncompatibleMultiPartGenotypeDataException { switch (this) { case PED_MAP: if (forcedSequence != null) { throw new GenotypeDataException("Cannot force sequence for " + this.getName()); } return new PedMapGenotypeData(new File(path + ".ped"), new File(path + ".map")); case VCF: if (forcedSequence != null) { throw new GenotypeDataException("Cannot force sequence for " + this.getName()); } File vcfFile; if (path.endsWith(".vcf.gz")) { vcfFile = new File(path); } else { vcfFile = new File(path + ".vcf.gz"); } return new VcfGenotypeData(vcfFile, cacheSize); case VCF_FOLDER: if (forcedSequence != null) { throw new GenotypeDataException("Cannot force sequence for " + this.getName()); } return MultiPartGenotypeData.createFromVcfFolder(new File(path), cacheSize); case SHAPEIT2: return new HapsGenotypeData(new File(path + ".haps"), new File( path + ".sample"), cacheSize, forcedSequence); case PLINK_BED: if (forcedSequence != null) { throw new GenotypeDataException("Cannot force sequence for " + this.getName()); } return new BedBimFamGenotypeData(new File(path + ".bed"), new File(path + ".bim"), new File(path + ".fam"), cacheSize); case TRITYPER: if (forcedSequence != null) { throw new GenotypeDataException("Cannot force sequence for " + this.getName()); } return new TriTyperGenotypeData(path, cacheSize); case GEN: if (new File(path + ".gen").exists()) { return new GenGenotypeData(new File(path + ".gen"), new File( path + ".sample"), cacheSize, forcedSequence, minimumPosteriorProbabilityToCall); } else if (new File(path).exists() && new File(path + ".sample").exists()) { return new GenGenotypeData(new File(path), new File( path + ".sample"), cacheSize, forcedSequence, minimumPosteriorProbabilityToCall); } else { throw new FileNotFoundException("Unable to load gen and sample file at: " + path); } default: throw new RuntimeException("This should not be reachable. Please contact the authors"); } } /** * Samples are filtered first then the variant filter is applied. * * @param path * @param cacheSize * @param variantFilter * @param sampleFilter * @return * @throws IOException */ public RandomAccessGenotypeData createFilteredGenotypeData(String path, int cacheSize, VariantFilter variantFilter, SampleFilter sampleFilter) throws IOException { switch (this) { case TRITYPER: return new TriTyperGenotypeData(new File(path), cacheSize, variantFilter, sampleFilter); default: RandomAccessGenotypeData genotypeData = createGenotypeData(path, cacheSize); if (sampleFilter != null) { genotypeData = new SampleFilterableGenotypeDataDecorator(genotypeData, sampleFilter); } if (variantFilter != null) { genotypeData = new VariantFilterableGenotypeDataDecorator(genotypeData, variantFilter); } return genotypeData; } } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
55cd2208564ce18c8ab5712d876991792d10a897
762e749ca2ac09be4a2181d8bcb1e11ef590f283
/Telerik Academy Alpha Java May All Modules - trainers solutions/2. OOP/12. Workshop 4/Solution/Furniture/src/com/telerikacademy/furniture/commands/CommandConstants.java
21b65c2af205d46a27ce55e8194ed5d14711cf41
[ "MIT" ]
permissive
yavoryankov83/Java_Web_Telerik_Academy_Alpha_May_2019
b07050acf23388a898e7a923540bc1af260900ee
f40138f2aea7e06ed51869b86a1ae7da18db35ce
refs/heads/master
2020-07-15T23:57:50.793976
2019-11-17T21:45:51
2019-11-17T21:45:51
204,431,967
0
0
null
null
null
null
UTF-8
Java
false
false
1,495
java
package com.telerikacademy.furniture.commands; public class CommandConstants { // Error messages public static final String INVALID_NUMBER_OF_ARGUMENTS = "Invalid number of arguments. Expected: %d, Received: %d"; static final String INVALID_COMMAND_ERROR_MESSAGE = "Invalid command name: %s"; static final String COMPANY_EXISTS_ERROR_MESSAGE = "Company %s already exists"; static final String COMPANY_NOT_FOUND_ERROR_MESSAGE = "Company %s not found"; static final String FURNITURE_NOT_FOUND_ERROR_MESSAGE = "Furniture %s not found"; static final String FURNITURE_EXISTS_ERROR_MESSAGE = "Furniture %s already exists"; static final String FURNITURE_IS_NOT_ADJUSTABLE_CHAIR_ERROR_MESSAGE = "%s is not adjustable chair"; static final String FURNITURE_IS_NOT_CONVERTIBLE_CHAIR_ERROR_MESSAGE = "%s is not convertible chair"; // Success messages static final String COMPANY_CREATED_SUCCESS_MESSAGE = "Company %s created"; static final String FURNITURE_ADDED_SUCCESS_MESSAGE = "Furniture %s added to company %s"; static final String FURNITURE_REMOVED_SUCCESS_MESSAGE = "Furniture %s removed from company %s"; static final String TABLE_CREATED_SUCCESS_MESSAGE = "Table %s created"; static final String CHAIR_CREATED_SUCCESS_MESSAGE = "Chair %s created"; static final String CHAIR_HEIGHT_ADJUSTED_SUCCESS_MESSAGE = "Chair %s adjusted to height %.2f"; static final String CHAIR_STATE_CONVERTED_SUCCESS_MESSAGE = "Chair %s converted"; }
[ "yavoryankov83@gmail.com" ]
yavoryankov83@gmail.com
61586f3fa5d6e9a395005bac6d3053bee3bba087
9e97f2c9948b7f14e3f402e174adee06faea0eec
/src/main/java/br/indie/fiscal4j/cte300/classes/nota/CTeNotaInfoCTeNormalVeiculosTransportados.java
1ce11cb029b9076cf9deb54ca912d33ab89209fe
[ "Apache-2.0" ]
permissive
andrauz/fiscal4j
1d16a4d56275c9fa50499fb9204fd60445ffd201
fe5558337a389f807040d92a6d140d4a2fa937d4
refs/heads/master
2020-04-25T01:13:47.253714
2019-02-15T19:29:18
2019-02-15T19:29:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,366
java
package br.indie.fiscal4j.cte300.classes.nota; import br.indie.fiscal4j.DFBase; import br.indie.fiscal4j.validadores.BigDecimalParser; import br.indie.fiscal4j.validadores.StringValidador; import org.simpleframework.xml.Element; import org.simpleframework.xml.Namespace; import org.simpleframework.xml.Root; import java.math.BigDecimal; /** * @author Caio * @info informações dos veículos transportados */ @Root(name = "veicNovos") @Namespace(reference = "http://www.portalfiscal.inf.br/cte") public class CTeNotaInfoCTeNormalVeiculosTransportados extends DFBase { private static final long serialVersionUID = 1369667859453686493L; @Element(name = "chassi", required = true) private String chassi; @Element(name = "cCor", required = true) private String codigoCor; @Element(name = "xCor", required = true) private String descricaoCor; @Element(name = "cMod", required = true) private String codigoMarcaModelo; @Element(name = "vUnit", required = true) private String valorUnitario; @Element(name = "vFrete", required = true) private String valorFrete; public CTeNotaInfoCTeNormalVeiculosTransportados() { this.chassi = null; this.codigoCor = null; this.descricaoCor = null; this.codigoMarcaModelo = null; this.valorUnitario = null; this.valorFrete = null; } public String getChassi() { return this.chassi; } /** * Chassi do veículo */ public void setChassi(final String chassi) { StringValidador.exatamente17(chassi, "Chassi do veículo"); this.chassi = chassi; } public String getCodigoCor() { return this.codigoCor; } /** * Cor do veículo<br> * Código de cada montadora */ public void setCodigoCor(final String codigoCor) { StringValidador.tamanho4(codigoCor, "Cor do veículo"); this.codigoCor = codigoCor; } public String getDescricaoCor() { return this.descricaoCor; } /** * Descrição da cor */ public void setDescricaoCor(final String descricaoCor) { StringValidador.tamanho40(descricaoCor, "Descrição da cor"); this.descricaoCor = descricaoCor; } public String getCodigoMarcaModelo() { return this.codigoMarcaModelo; } /** * Código Marca Modelo<br> * Utilizar tabela RENAVAM */ public void setCodigoMarcaModelo(final String codigoMarcaModelo) { StringValidador.tamanho6(codigoMarcaModelo, "Código Marca Modelo"); this.codigoMarcaModelo = codigoMarcaModelo; } public String getValorUnitario() { return this.valorUnitario; } /** * Valor Unitário do Veículo */ public void setValorUnitario(final BigDecimal valorUnitario) { this.valorUnitario = BigDecimalParser.tamanho15Com2CasasDecimais(valorUnitario, "Valor Unitário do Veículo"); } public String getValorFrete() { return this.valorFrete; } /** * Frete Unitário */ public void setValorFrete(final BigDecimal valorFrete) { this.valorFrete = BigDecimalParser.tamanho15Com2CasasDecimais(valorFrete, "Frete Unitário"); } }
[ "jeferson.hck@gmail.com" ]
jeferson.hck@gmail.com
d77a5a3604ae0d32feda97cace1018ca8b36ced6
2482271dfa4a036a018d94652716d340a426b190
/src/main/java/com/jms/rabbitmq/events/Publisher.java
1581f6c5bfb5a0b9f0b6846e7f5f050a600434fd
[ "BSD-3-Clause" ]
permissive
xiafeicn/jms-rabbitmq-demo
b9fd22e54f502ffcc5d1e4c4cce59d98f517d5ab
a6ceba8edf590e058320ec4fa433ce73f992eed4
refs/heads/master
2022-01-02T21:34:36.220298
2018-03-08T21:49:12
2018-03-08T21:49:12
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,386
java
package com.jms.rabbitmq.events; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectWriter; import org.springframework.beans.factory.annotation.Value; import org.springframework.jms.core.JmsTemplate; import org.springframework.jms.core.MessageCreator; import org.springframework.stereotype.Service; import javax.jms.Session; import java.io.Serializable; @Service public class Publisher { @Value("${projects.messaging.topic}") private String topic; private JmsTemplate publisher; public Publisher(JmsTemplate publisher) { this.publisher = publisher; } public void publish(Iterable<Event> events) { for (Event event : events) publishEvent(event); } private void publishEvent(Event event) { MessageCreator messageCreator = (Session session) -> { ObjectMapper mapper = new ObjectMapper(); ObjectWriter writer = mapper.writerWithDefaultPrettyPrinter(); Serializable message; try { message = writer.writeValueAsString(event); } catch (JsonProcessingException e) { throw new RuntimeException(e); } return session.createObjectMessage(message); }; publisher.send(topic, messageCreator); } }
[ "montealegreluis@gmail.com" ]
montealegreluis@gmail.com
8359bb46b0b9026e69bd18b3ba0bac340ecf0c2e
650947add980174e4d066a320abacdf1eb1df0b5
/src/main/java/HobbyScript/Ast/FuncStmt.java
8000e1f9dbecc9a7cf3eaac4040019210c8c2bb8
[ "Apache-2.0" ]
permissive
dmitrykolesnikovich/HobbyScript
927fce504ff12108606444be0679a1ce3262bf63
fd71630c8c1368e044b72a9d373fc6f5059329ff
refs/heads/master
2022-04-05T14:18:10.304663
2018-07-31T09:50:20
2018-07-31T09:50:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,615
java
package HobbyScript.Ast; import HobbyScript.Compile.CodeLine; import HobbyScript.Eval.Env.EnvironmentCallBack; import HobbyScript.Eval.FunctionEval; import HobbyScript.Token.HobbyToken; import java.util.List; /** * 函数定义 * * @author liufengkai * Created by liufengkai on 16/7/15. */ public class FuncStmt extends AstList { public FuncStmt(List<AstNode> children) { super(children, HobbyToken.FUNCTION); } public String name() { return ((AstLeaf) child(0)).token().getText(); } public ParameterList parameters() { // 这里在不同情况下的处理是有分歧的 // 如果无类型的话 记得 child(1) // 有类型语言记得 child(2) return (ParameterList) child(1); } public DefBlockStmnt body() { // no-type -> 2 // type -> 3 return (DefBlockStmnt) child(2); } public String toString() { return "(func " + name() + " " + parameters() + " " + body() + " )"; } @Override public String compile(CodeLine line, int th, int nx) { CodeLine.FunctionCode code = line.addFunction(name(), parameters().childCount()); line.startCompileFunction(code); int begin = line.newLine(); int end = line.newLine(); line.addSpecCode("",begin); body().compile(line, begin, end); line.addSpecCode("", end); line.stopCompileFunction(); return null; } @Override public Object eval(EnvironmentCallBack env) { return FunctionEval.functionEval(env, this); } }
[ "lfk_dsk@hotmail.com" ]
lfk_dsk@hotmail.com
9e05295a2137b0cfab6f88b713062e9851ad8677
4da9097315831c8639a8491e881ec97fdf74c603
/src/StockIT-v2-release_source_from_JADX/sources/com/google/android/gms/internal/ads/zzdjq.java
bfd349dc02971cc43c2a510e3be4b20890470d6b
[ "Apache-2.0" ]
permissive
atul-vyshnav/2021_IBM_Code_Challenge_StockIT
5c3c11af285cf6f032b7c207e457f4c9a5b0c7e1
25c26a4cc59a3f3e575f617b59acc202ee6ee48a
refs/heads/main
2023-08-11T06:17:05.659651
2021-10-01T08:48:06
2021-10-01T08:48:06
410,595,708
1
1
null
null
null
null
UTF-8
Java
false
false
330
java
package com.google.android.gms.internal.ads; /* compiled from: com.google.android.gms:play-services-ads@@19.4.0 */ final /* synthetic */ class zzdjq implements Runnable { private final zzdjo zzhac; zzdjq(zzdjo zzdjo) { this.zzhac = zzdjo; } public final void run() { this.zzhac.zzasq(); } }
[ "57108396+atul-vyshnav@users.noreply.github.com" ]
57108396+atul-vyshnav@users.noreply.github.com
6268884686913ca8f2e28f2fb63c90f4ba3ceb24
104cda8eafe0617e2a5fa1e2b9f242d78370521b
/aliyun-java-sdk-emr/src/main/java/com/aliyuncs/emr/model/v20160408/DeleteBatchResourceUsersResponse.java
7545690f0c3be2ae00d9241de06c5a904419ed46
[ "Apache-2.0" ]
permissive
SanthosheG/aliyun-openapi-java-sdk
89f9b245c1bcdff8dac0866c36ff9a261aa40684
38a910b1a7f4bdb1b0dd29601a1450efb1220f79
refs/heads/master
2020-07-24T00:00:59.491294
2019-09-09T23:00:27
2019-09-11T04:29:56
207,744,099
2
0
NOASSERTION
2019-09-11T06:55:58
2019-09-11T06:55:58
null
UTF-8
Java
false
false
1,564
java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.aliyuncs.emr.model.v20160408; import com.aliyuncs.AcsResponse; import com.aliyuncs.emr.transform.v20160408.DeleteBatchResourceUsersResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class DeleteBatchResourceUsersResponse extends AcsResponse { private Boolean paging; private String requestId; private Boolean data; public Boolean getPaging() { return this.paging; } public void setPaging(Boolean paging) { this.paging = paging; } public String getRequestId() { return this.requestId; } public void setRequestId(String requestId) { this.requestId = requestId; } public Boolean getData() { return this.data; } public void setData(Boolean data) { this.data = data; } @Override public DeleteBatchResourceUsersResponse getInstance(UnmarshallerContext context) { return DeleteBatchResourceUsersResponseUnmarshaller.unmarshall(this, context); } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
86517c051106ff4a7bbf7251d929d882ab8a3c8b
56d6fa60f900fb52362d4cce950fa81f949b7f9b
/aws-sdk-java/src/main/java/com/amazonaws/services/storagegateway/model/transform/DescribeUploadBufferResultJsonUnmarshaller.java
48da9ce5ee56175c499f83e1b6cfeb35058d96ae
[ "JSON", "Apache-2.0" ]
permissive
TarantulaTechnology/aws
5f9d3981646e193c89f1c3fa746ec3db30252913
8ce079f5628334f83786c152c76abd03f37281fe
refs/heads/master
2021-01-19T11:14:53.050332
2013-09-15T02:37:02
2013-09-15T02:37:02
12,839,311
1
0
null
null
null
null
UTF-8
Java
false
false
3,555
java
/* * Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.storagegateway.model.transform; import java.util.Map; import java.util.Map.Entry; import com.amazonaws.services.storagegateway.model.*; import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; import com.amazonaws.transform.*; import com.fasterxml.jackson.core.JsonToken; import static com.fasterxml.jackson.core.JsonToken.*; /** * Describe Upload Buffer Result JSON Unmarshaller */ public class DescribeUploadBufferResultJsonUnmarshaller implements Unmarshaller<DescribeUploadBufferResult, JsonUnmarshallerContext> { public DescribeUploadBufferResult unmarshall(JsonUnmarshallerContext context) throws Exception { DescribeUploadBufferResult describeUploadBufferResult = new DescribeUploadBufferResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.currentToken; if (token == null) token = context.nextToken(); while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("GatewayARN", targetDepth)) { context.nextToken(); describeUploadBufferResult.setGatewayARN(StringJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("DiskIds", targetDepth)) { describeUploadBufferResult.setDiskIds(new ListUnmarshaller<String>(StringJsonUnmarshaller.getInstance()).unmarshall(context)); } if (context.testExpression("UploadBufferUsedInBytes", targetDepth)) { context.nextToken(); describeUploadBufferResult.setUploadBufferUsedInBytes(LongJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("UploadBufferAllocatedInBytes", targetDepth)) { context.nextToken(); describeUploadBufferResult.setUploadBufferAllocatedInBytes(LongJsonUnmarshaller.getInstance().unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return describeUploadBufferResult; } private static DescribeUploadBufferResultJsonUnmarshaller instance; public static DescribeUploadBufferResultJsonUnmarshaller getInstance() { if (instance == null) instance = new DescribeUploadBufferResultJsonUnmarshaller(); return instance; } }
[ "TarantulaTechnology@users.noreply.github.com" ]
TarantulaTechnology@users.noreply.github.com
6fc1ae792acd0c010c46e57352e0860ce7902c07
f65b2cdc1970308ab26a7cf36da52f470cb5238a
/app/src/main/java/com/homepaas/sls/newmvp/contract/OrderContract.java
fe488994ea8772142377d083a6ab689408122bc3
[]
no_license
Miotlink/MAndroidClient
5cac8a0eeff2289eb676a4ddd51a90926a6ff7ad
83cbd50c38662a7a3662221b52d6b71f157d9740
refs/heads/master
2020-04-18T11:24:18.926374
2019-01-25T06:44:13
2019-01-25T06:44:13
167,498,578
0
0
null
null
null
null
UTF-8
Java
false
false
931
java
package com.homepaas.sls.newmvp.contract; import com.homepaas.sls.data.entity.OrderListPopEntity; import com.homepaas.sls.data.network.dataformat.OrderDetailBody; import com.homepaas.sls.httputils.RetrofitRequestCallBack; import com.homepaas.sls.newmvp.base.BaseModel; import com.homepaas.sls.newmvp.base.BasePresenter; import com.homepaas.sls.newmvp.base.BaseView; /** * on 2017/6/4. */ public interface OrderContract { interface Model extends BaseModel { void getOrderListPop (BaseView baseView, RetrofitRequestCallBack<OrderListPopEntity> retrofitRequestCallBack); void getOrderDetail (BaseView baseView,String orderId, RetrofitRequestCallBack<OrderDetailBody> retrofitRequestCallBack); } interface View extends BaseView { void initOrderStatus(OrderListPopEntity orderListPopEntity); } interface Presenter extends BasePresenter<View> { void getOrderListPop(); } }
[ "pm@miotlinl.com" ]
pm@miotlinl.com
a218b8f312cd0e93be11da5b643a2535e11572f4
ecd31d3d2416c9421286967a53df30ccc3b10616
/Algorithm_add/src/affinitymain/Main.java
730a0cf8ffddee29a9d847948cb4cb0d5b6b6a53
[]
no_license
squarlhan/ccstssh
439f26b63628365b05c743f064c329231a1dd4d3
94daf2fdf79ee5f9e4560ffbb0fbc3c745bbab2e
refs/heads/master
2020-05-18T03:27:11.499850
2017-05-10T07:14:34
2017-05-10T07:14:34
34,333,232
0
0
null
null
null
null
UTF-8
Java
false
false
6,258
java
package affinitymain; import algorithm.abs.AffinityPropagationAlgorithm.AffinityConnectingMethod; import java.util.Collection; import java.util.List; import java.util.Map; import experiments.ga.EucDistance; /** * * @author misiek */ public class Main { /** * @param args the command line arguments * @throws Exception */ public static void main(String[] args) throws Exception { // if (args.length < 2) { // showHelp(); // return; // } Map<String, String> map = CommandLineParser.parseTokens(args); // String filepath = getFilepath(map); // String outpath = getFoutput(map); // Double lambda = getLambda(map); // if (lambda == null) { // showHelp(); // return; // } // Integer iterations = getIterations(map); // if (iterations == null) { // showHelp(); // return; // } // Integer convits = getConvits(map); // Double preferences = getPreferences(map); Collection<InteractionData> inputs = EucDistance.getEucMatrix(EucDistance.getData("data/90.txt")); Double lambda = 0.9; Integer iterations = 500; Integer convits = getConvits(map); Double preferences = -0.1; String kind = getOutputKind(map); AffinityConnectingMethod connMode = getConnMode(map); boolean takeLog = getTakeLog(map); boolean refine = getRefine(map); Integer steps = getSteps(map); RunAlgorithm alg = new RunAlgorithm(inputs, lambda, iterations, convits, preferences, kind); alg.setTakeLog(takeLog); alg.setConnMode(connMode); alg.setSteps(steps); alg.setRefine(refine); alg.setParemeters(); List<Integer> results = alg.run(); for(int a : results){ System.out.println(a); } } private static AffinityConnectingMethod getConnMode(Map<String, String> map) { String modeStr = map.get("conn"); if (modeStr == null) { return AffinityConnectingMethod.ORIGINAL; } else { if (modeStr.equals("org")) { return AffinityConnectingMethod.ORIGINAL; } else { return AffinityConnectingMethod.PRIME_ALG; } } } private static String getOutputKind(Map<String, String> map) { String kind = map.get("kind"); if (kind == null) { return "clusters"; } else { if (kind.equals("centers")) { return kind; } else { return "clusters"; } } } private static Double getPreferences(Map<String, String> map) { String lamStr = map.get("p"); if (lamStr == null) { System.out.println("You have to set preferences (p)!"); return null; } else { try { System.out.println("pref: " + Double.valueOf(lamStr)); return Double.valueOf(lamStr); } catch (NumberFormatException e) { return null; } } } private static Double getLambda(Map<String, String> map) { String lamStr = map.get("lam"); if (lamStr == null) { System.out.println("You have to set lambda (lam)!"); return null; } else { try { return Double.valueOf(lamStr); } catch (NumberFormatException e) { return null; } } } private static Integer getIterations(Map<String, String> map) { try { return Integer.valueOf(map.get("it")); } catch (NumberFormatException e) { return null; } } private static Integer getConvits(Map<String, String> map) { try { return Integer.valueOf(map.get("con")); } catch (NumberFormatException e) { return null; } } private static String getFilepath(Map<String, String> map) { return map.get("in"); } private static String getFoutput(Map<String, String> map) { return map.get("out"); } private static boolean getRefine(Map<String, String> map) { String ref = map.get("ref"); if (ref == null) { return true; } else if (ref.equals("false")) { return false; } else { return true; } } private static Integer getSteps(Map<String, String> map) { String depthStr = map.get("dep"); if (depthStr == null) { return null; } else { try { return Integer.valueOf(depthStr); } catch (NumberFormatException e) { return null; } } } private static boolean getTakeLog(Map<String, String> map) { String getLog = map.get("log"); if (getLog == null) { return false; } else if (getLog.equals("true")) { return true; } else { return false; } } private static void showHelp() { System.out.println("--------------HELP---------------"); System.out.println("Parameters: [parameterName=parameterValue]*"); System.out.println(); System.out.println("in: input similarities filepath"); System.out.println("out: output filepath"); System.out.println("lam: double lambda"); System.out.println("p: double preferences"); System.out.println("it: integer max iterations"); System.out.println("con*: integer convits, default null"); System.out.println("kind*: kind of output: (@clusters / centers)"); System.out.println("conn*: connecting mode II faze (@org / prime)"); System.out.println("log*: get edges with log value (true / @false)"); System.out.println("ref*: clusters refine method after clustering (@true / false)"); System.out.println(); System.out.println("* parameters are optional"); System.out.println("@ default options"); System.out.println("--------------HELP END-------------"); } }
[ "squarlhan@52547bf6-66a5-11de-b8ef-473237edd27e" ]
squarlhan@52547bf6-66a5-11de-b8ef-473237edd27e
77edd07886ca11c1a10e844f4dd181ce01237ec2
d30ae8811d5d983ebb3f522ff6912c41a370f577
/app/src/main/java/com/appian/manchesterunitednews/service/firebase/AppFirebaseMessageService.java
fa3c76dd0827aa45cfe8b78a0febd05c405aa0ba
[]
no_license
phuongbkatp/newsapp
9cd958c139ff9e61452f724b940518e1c349d7de
e20f1535c5150187f6b654ba8f9d1866201481b8
refs/heads/master
2021-02-07T20:12:35.131717
2020-03-01T02:17:13
2020-03-01T02:17:13
244,072,435
0
0
null
null
null
null
UTF-8
Java
false
false
1,501
java
package com.appian.manchesterunitednews.service.firebase; import android.util.Log; import com.appian.manchesterunitednews.service.app.AppHelper; import com.appian.manchesterunitednews.service.notification.NotificationFactory; import com.appian.manchesterunitednews.service.notification.NotificationProvider; import com.google.firebase.messaging.FirebaseMessagingService; import com.google.firebase.messaging.RemoteMessage; import java.util.Map; public class AppFirebaseMessageService extends FirebaseMessagingService { @Override public void onCreate() { super.onCreate(); } @Override public void onNewToken(String s) { super.onNewToken(s); AppHelper.refreshDeviceToken(getApplicationContext()); } @Override public void onMessageReceived(RemoteMessage remoteMessage) { super.onMessageReceived(remoteMessage); if(remoteMessage.getData() == null) { return; } Map<String, String> message = remoteMessage.getData(); RemoteMessage.Notification notification = remoteMessage.getNotification(); if(notification != null) { message.put("title", notification.getTitle()); message.put("body", notification.getBody()); } NotificationProvider notificationProvider = NotificationFactory.create(getApplicationContext(), remoteMessage.getData()); if(notificationProvider != null) { notificationProvider.pushNotify(); } } }
[ "32545917+phuongbkatp@users.noreply.github.com" ]
32545917+phuongbkatp@users.noreply.github.com
3c29ee197a71daabf7701b0d97a539590fb19a17
f567c98cb401fc7f6ad2439cd80c9bcb45e84ce9
/src/main/java/com/alipay/api/domain/EvaluateInfo.java
cf89cd4b84b23a4b1c02e51a7ae86767364e80e9
[ "Apache-2.0" ]
permissive
XuYingJie-cmd/alipay-sdk-java-all
0887fa02f857dac538e6ea7a72d4d9279edbe0f3
dd18a679f7543a65f8eba2467afa0b88e8ae5446
refs/heads/master
2023-07-15T23:01:02.139231
2021-09-06T07:57:09
2021-09-06T07:57:09
null
0
0
null
null
null
null
UTF-8
Java
false
false
974
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 评价信息 * * @author auto create * @since 1.0, 2021-08-17 19:45:29 */ public class EvaluateInfo extends AlipayObject { private static final long serialVersionUID = 8833254853322129429L; /** * 评价内容 */ @ApiField("content") private String content; /** * 评价分 */ @ApiField("driver_score") private String driverScore; /** * 评价id */ @ApiField("id") private String id; public String getContent() { return this.content; } public void setContent(String content) { this.content = content; } public String getDriverScore() { return this.driverScore; } public void setDriverScore(String driverScore) { this.driverScore = driverScore; } public String getId() { return this.id; } public void setId(String id) { this.id = id; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
c663e91d449896777f4de6c08293e9ad036e71e9
96f50632c678f7a6232e9fdb5ccd9b5de2288279
/app/src/main/java/com/tshang/peipei/protocol/asn/gogirl/RspChangeDynamicsAuditStatus.java
23faa8435d58bcbb9badd1dbf6c079309fc25cff
[]
no_license
iuvei/peipei
629c17c2f8ddee98d4747d2cbec37b2209e78af4
0497dc9389287664e96e9d14381cd6078e114979
refs/heads/master
2020-11-26T22:20:32.990823
2019-03-16T07:19:40
2019-03-16T07:19:40
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,749
java
//----------------------------------------------------------------------------- // NOTE: this is a machine generated file - editing not recommended // // File: ./src/com/tshang/peipei/protocol/asn/gogirl/RspChangeDynamicsAuditStatus.java // // Java class for ASN.1 definition RspChangeDynamicsAuditStatus as defined in // module GOGIRL. // This file was generated by Snacc for Java at Tue Jan 26 18:38:19 2016 //----------------------------------------------------------------------------- package com.tshang.peipei.protocol.asn.gogirl; // Import PrintStream class for print methods import java.io.PrintStream; // Import ASN.1 basic type representations import com.ibm.util.*; // Import ASN.1 decoding/encoding classes import com.ibm.asn1.*; /** This class represents the ASN.1 SEQUENCE type <tt>RspChangeDynamicsAuditStatus</tt>. * For each sequence member, sequence classes contain a * public member variable of the corresponding Java type. * @author Snacc for Java * @version Tue Jan 26 18:38:16 2016 */ public class RspChangeDynamicsAuditStatus implements ASN1Type { /** member variable representing the sequence member retcode of type java.math.BigInteger */ public java.math.BigInteger retcode; /** member variable representing the sequence member retmsg of type byte[] */ public byte[] retmsg; /** default constructor */ public RspChangeDynamicsAuditStatus() {} /** copy constructor */ public RspChangeDynamicsAuditStatus (RspChangeDynamicsAuditStatus arg) { retcode = arg.retcode; retmsg = new byte[arg.retmsg.length]; System.arraycopy(arg.retmsg,0,retmsg,0,arg.retmsg.length); } /** encoding method. * @param enc * encoder object derived from com.ibm.asn1.ASN1Encoder * @exception com.ibm.asn1.ASN1Exception * encoding error */ public void encode (ASN1Encoder enc) throws ASN1Exception { int seq_nr = enc.encodeSequence(); enc.encodeInteger(retcode); enc.encodeOctetString(retmsg); enc.endOf(seq_nr); } /** decoding method. * @param dec * decoder object derived from com.ibm.asn1.ASN1Decoder * @exception com.ibm.asn1.ASN1Exception * decoding error */ public void decode (ASN1Decoder dec) throws ASN1Exception { int seq_nr = dec.decodeSequence(); retcode = dec.decodeInteger(); retmsg = dec.decodeOctetString(); dec.endOf(seq_nr); } /** print method (variable indentation) * @param os * PrintStream representing the print destination (file, etc) * @param indent * number of blanks that preceed each output line. */ public void print (PrintStream os, int indent) { os.println("{ -- SEQUENCE --"); for(int ii = 0; ii < indent+2; ii++) os.print(' '); os.print("retcode = "); os.print(retcode.toString()); os.println(','); for(int ii = 0; ii < indent+2; ii++) os.print(' '); os.print("retmsg = "); os.print(Hex.toString(retmsg)); os.println(); for(int ii = 0; ii < indent; ii++) os.print(' '); os.print('}'); } /** default print method (fixed indentation) * @param os * PrintStream representing the print destination (file, etc) */ public void print (PrintStream os) { print(os,0); } /** toString method * @return the output of {@link #print(PrintStream) print} method (fixed indentation) as a string */ public String toString () { java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream(); PrintStream ps = new PrintStream(baos); print(ps); ps.close(); return baos.toString(); } }
[ "xumin2@evergrande.com" ]
xumin2@evergrande.com
4db26aa55aa350fccb5222cd411ef84ca2a0116c
112fd26b9567197c19645d247534be4eec36cea1
/shop/.metadata/.me_tcat/work/Catalina/localhost/library/org/apache/jsp/WEB_002dINF/public_/footer_jsp.java
2b65c42a4c043095f39217269d9f188d68b31e26
[]
no_license
richaredFS/ssh-shop
1a58191d7077b0f32c98bca9ba8441599ed567e0
ccdf46b8f0f90c997a6ef5576f41fb4cc1d50d52
refs/heads/master
2020-05-07T11:59:25.260638
2018-01-12T06:41:59
2018-01-12T06:41:59
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,733
java
package org.apache.jsp.WEB_002dINF.public_; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; import java.util.*; public final class footer_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory(); private static java.util.List _jspx_dependants; private javax.el.ExpressionFactory _el_expressionfactory; private org.apache.AnnotationProcessor _jsp_annotationprocessor; public Object getDependants() { return _jspx_dependants; } public void _jspInit() { _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory(); _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName()); } public void _jspDestroy() { } public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { PageContext pageContext = null; HttpSession session = null; ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; JspWriter _jspx_out = null; PageContext _jspx_page_context = null; try { response.setContentType("text/html;charset=UTF-8"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("\r\n"); out.write("\r\n"); out.write("<link rel=\"stylesheet\" href=\"/library/css/foot.css\" type=\"text/css\" />\r\n"); out.write("<link rel=\"stylesheet\" href=\"/library/css/common.css\" type=\"text/css\" />\r\n"); out.write("<div class=\"foot\">\r\n"); out.write("\t<span style=\"float: left\">isunday © 2008 </span>\r\n"); out.write("\t<ul class=\"navi2\">\r\n"); out.write("\t\t<li><a href=\"#\" class=\"font1\">个人主页</a></li> |&nbsp;&nbsp;\r\n"); out.write("\t\t<li><a href=\"#\" class=\"font1\">关于</a></li> |&nbsp;&nbsp;\r\n"); out.write("\t\t<li><a href=\"#\" class=\"font1\">开放平台</a></li> |&nbsp;&nbsp;\r\n"); out.write("\t\t<li><a href=\"#\" class=\"font1\">招聘</a></li> |&nbsp;&nbsp;\r\n"); out.write("\t\t<li><a href=\"#\" class=\"font1\">客服</a></li> |&nbsp;&nbsp;\r\n"); out.write("\t\t<li><a href=\"#\" class=\"font1\">帮助</a></li> |&nbsp;&nbsp;\r\n"); out.write("\t\t<li><a href=\"#\" class=\"font1\">隐私声明</a></li>\r\n"); out.write("\t</ul>\r\n"); out.write("\t<div style=\"clear: right;\">\r\n"); out.write("\t\t<img src=\"/library/images/index/footer.jpg\"\r\n"); out.write("\t\t\tstyle=\"width: 50px; height: 50px; float: left\" />\r\n"); out.write("\t\t <img src=\"/library/images/index/footer2.jpg\"\r\n"); out.write("\t\t\tstyle=\"width: 50px; height: 50px; float: left\" />\r\n"); out.write("\t</div>\r\n"); out.write("</div>"); } catch (Throwable t) { if (!(t instanceof SkipPageException)){ out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) {} if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } } }
[ "1265598443@qq.com" ]
1265598443@qq.com
1172c37029b925bc2c2948790d747084af5f4181
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/5/5_c5102e9b9093d5ca76ceb264aaaf77a9fc085ac4/StationDAO/5_c5102e9b9093d5ca76ceb264aaaf77a9fc085ac4_StationDAO_t.java
51117949752bd3dafa82776a27f825e22503f41d
[]
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,779
java
package dao; import java.sql.ResultSet; import java.sql.SQLException; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Set; import org.hibernate.Query; import org.hibernate.SQLQuery; import org.hibernate.Session; import org.hibernate.Transaction; import com.mysql.jdbc.PreparedStatement; import beans.Ligne; import beans.Station; public class StationDAO { private Session se = null; private List<Station> listeStation; private Station station = new Station(); private Set<Ligne> listLigne=new HashSet<Ligne>(); public void createStation(String nomStation , String commentaireStation, double latitude, double longitude, Ligne ligne) { se = HibernateUtils.getSession(); Transaction t = se.beginTransaction(); station.setNomStation(nomStation); station.setCommentaireStation(commentaireStation); station.setLatitude(latitude); station.setLongitude(longitude); //listLigne.add(ligne); station.setLigne(ligne); se.save(station); t.commit(); se.close(); } public int createStationReturnId(String nomStation , String commentaireStation, double latitude, double longitude, Ligne ligne) { se = HibernateUtils.getSession(); Transaction t = se.beginTransaction(); station.setNomStation(nomStation); station.setCommentaireStation(commentaireStation); station.setLatitude(latitude); station.setLongitude(longitude); //listLigne.add(ligne); station.setLigne(ligne); int idStation = (Integer) se.save(station); t.commit(); se.close(); return idStation; } public void createStationToStation(Station station1, Station station2) { se = HibernateUtils.getSession(); Transaction tr=se.beginTransaction(); List<Station> listStation = station1.getStationAller(); listStation.add(station2); List<Station> listStation2 = station2.getStationAller(); listStation2.add(station1); station1.setStationAller(listStation); station2.setStationAller(listStation2); //station1.setStationRetour(listStation); // station2.setStationRetour(listStation2); se.update(station1); se.update(station2); tr.commit(); se.close(); } public void supprimerStation(int id) { se = HibernateUtils.getSession(); se.beginTransaction(); station = (Station) se.load(Station.class, id); se.delete(station); se.beginTransaction().commit(); se.close(); } public Station getStationByID(int id) { se = HibernateUtils.getSession(); se.beginTransaction(); //station = (Station) se.createQuery("from station where id=?").setParameter(0, id).uniqueResult(); //station = (Station) se.get(Station.class, id); //se.getTransaction().commit(); station = (Station) se.createQuery("from station where idStation="+id).uniqueResult(); se.close(); //return station; return station; } public void modifierStation(Station station) { se = HibernateUtils.getSession(); Transaction tr=se.beginTransaction(); se.update(station); tr.commit(); se.close(); } public List<Station> listerStation() { se = HibernateUtils.getSession(); se.beginTransaction(); listeStation = se.createQuery("from Station").list(); return listeStation; } public List<Station> listerStationHasStationByListStation(int[] stationList) throws SQLException { se = HibernateUtils.getSession(); Transaction t = se.beginTransaction(); String listeStationStr=""; for(int i=0 ; i<=stationList.length-1 ; i++) { listeStationStr = listeStationStr+stationList[i] +","; System.out.println("listerStationHasStationByListStation=" +stationList[i]); }//fin i listeStationStr = listeStationStr.substring(0, listeStationStr.length()-1); System.out.println("Rsultat ==>"+ listeStationStr); String sql ="select * from station_has_station where station_idstation1 in ("+listeStationStr+") or station_idstation2 in ("+listeStationStr+")"; System.out.println("SQL==>" +sql); listeStation=se.createSQLQuery(sql).list(); t.commit(); return listeStation; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
5a0ac682052c06317f75f9d22518c39e1f51b917
9f8304a649e04670403f5dc1cb049f81266ba685
/common/src/main/java/com/cmcc/vrp/province/service/impl/SdAccountChargeRecordServiceImpl.java
560efa4e24f93edf1567c33fec387d633d57dae5
[]
no_license
hasone/pdata
632d2d0df9ddd9e8c79aca61a87f52fc4aa35840
0a9cfd988e8a414f3bdbf82ae96b82b61d8cccc2
refs/heads/master
2020-03-25T04:28:17.354582
2018-04-09T00:13:55
2018-04-09T00:13:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,203
java
package com.cmcc.vrp.province.service.impl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.cmcc.vrp.province.dao.SdAccountChargeRecordMapper; import com.cmcc.vrp.province.model.SdAccountChargeRecord; import com.cmcc.vrp.province.service.SdAccountChargeRecordService; /** * * @ClassName: SdAccountChargeRecordServiceImpl * @Description: 山东BOSS账户充值记录服务类 * @author: Rowe * @date: 2017年9月1日 上午9:47:29 */ @Service public class SdAccountChargeRecordServiceImpl implements SdAccountChargeRecordService{ @Autowired private SdAccountChargeRecordMapper sdAccountChargeRecordMapper; @Override public boolean insertSelective(SdAccountChargeRecord record) { if(record == null){ return false; } return sdAccountChargeRecordMapper.insertSelective(record) == 1; } @Override public boolean updateByPrimaryKeySelective(SdAccountChargeRecord record) { if(record == null || record.getId() == null){ return false; } return sdAccountChargeRecordMapper.updateByPrimaryKeySelective(record) == 1; } }
[ "fromluozuwu@qq.com" ]
fromluozuwu@qq.com
cfdc44ee5e4b595e9753b2753caf0d47a9cfd932
50c60296cc0e25701b98ad1c85f4e32fa1fb6f3e
/MainModule/src/main/java/com/kirito666/niitnews/ui/posts/adapter/ForumPageAdapter.java
33e680c2bed0cce99ab97e1d5c139c17537dd0dc
[]
no_license
spianmo/NiitNews
33326281a5a621d860d8ad98052214a45e40d10d
2c177a183e4251f38b49b48c8461a88104ac6ff2
refs/heads/master
2023-06-11T11:25:59.674993
2021-06-30T03:00:20
2021-06-30T03:00:20
377,691,199
0
0
null
null
null
null
UTF-8
Java
false
false
1,890
java
package com.kirito666.niitnews.ui.posts.adapter; import android.util.SparseArray; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentManager; import androidx.fragment.app.FragmentStatePagerAdapter; import com.kirito666.niitnews.ui.posts.ForumChildFragment; import java.util.List; /** * Copyright (c) 2021 * @Project:NiitNews * @Author:Finger * @FileName:ForumPageAdapter.java * @LastModified:2021/06/29 23:27:29 */ public class ForumPageAdapter extends FragmentStatePagerAdapter { private SparseArray<ForumChildFragment> mFragments; private List<String> mTitles; public ForumPageAdapter(FragmentManager fm, List<String> titles, SparseArray<ForumChildFragment> mFragments) { super(fm); mTitles = titles; this.mFragments = mFragments; } @NonNull @Override public Fragment getItem(int position) { return mFragments.valueAt(position); } @Override public int getCount() { return mFragments.size(); } @NonNull @Override public Object instantiateItem(@NonNull ViewGroup container, int position) { return super.instantiateItem(container, position); } @Override public void destroyItem(@NonNull ViewGroup container, int position, @NonNull Object object) { super.destroyItem(container, position, object); } @Override public int getItemPosition(@NonNull Object object) { return POSITION_NONE; } @Override public void setPrimaryItem(@NonNull ViewGroup container, int position, @NonNull Object object) { super.setPrimaryItem(container, position, object); } @Nullable @Override public CharSequence getPageTitle(int position) { return mTitles.get(position); } }
[ "Finger@spianmo.com" ]
Finger@spianmo.com
057580d17be1f282a1edc27e87287b6a803c7bfb
b9db7dbe510941dbc94951aac17594bfb1ffb608
/thundergate-project/asakusa-thundergate/src/test/java/test/modelgen/table/model/TempImportTarget1Df.java
127b57303dfb691932eec4678ad6f782119ff89e
[ "Apache-2.0" ]
permissive
akirakw/asakusafw-legacy
697cb2ae06d32c7879c8a5a0ce7b9709378b32df
434fdc5bf9262e56b9669bfc88d25f11a40308d3
refs/heads/master
2021-01-12T13:55:02.026024
2016-08-24T02:02:46
2016-08-24T02:02:46
54,950,529
0
0
null
2016-03-29T06:11:17
2016-03-29T06:11:17
null
UTF-8
Java
false
false
3,965
java
/** * Copyright 2011-2016 Asakusa Framework Team. * * 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 test.modelgen.table.model; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; import javax.annotation.Generated; import org.apache.hadoop.io.Writable; import com.asakusafw.runtime.value.LongOption; import com.asakusafw.vocabulary.model.DataModel; import com.asakusafw.vocabulary.model.Property; import com.asakusafw.vocabulary.model.TableModel; /** * テーブル<code>temp_import_target1_df</code>を表すモデルクラス。 */ @Generated("TableModelEntityEmitter:0.0.1")@DataModel@TableModel(name = "temp_import_target1_df", columns = {"TEMP_SID"} , primary = {"TEMP_SID"})@SuppressWarnings("deprecation") public class TempImportTarget1Df implements Writable { /** * カラム<code>TEMP_SID</code>を表すフィールド。 */ @Property(name = "TEMP_SID") private LongOption tempSid = new LongOption(); /** * カラム<code>TEMP_SID</code>の値を返す。 * @return カラム<code>TEMP_SID</code>の値 * @throws NullPointerException 値に{@code null}が格納されていた場合 */ public long getTempSid() { return this.tempSid.get(); } /** * カラム<code>TEMP_SID</code>の値を変更する。 * @param tempSid 設定する値 */ public void setTempSid(long tempSid) { this.tempSid.modify(tempSid); } /** * {@link #getTempSid()}の情報を{@code null}も表現可能な形式で返す。 * @return オプション形式の{@link #getTempSid()} */ public LongOption getTempSidOption() { return this.tempSid; } /** * {@link #setTempSid(long)}を{@code null}が指定可能なオプションの形式で設定する。 * @param tempSid 設定する値、消去する場合は{@code null} */ public void setTempSidOption(LongOption tempSid) { this.tempSid.copyFrom(tempSid); } /** * 指定のオブジェクトが持つプロパティの内容を全てこのオブジェクトにコピーする。 * @param source コピー元になるオブジェクト */ public void copyFrom(TempImportTarget1Df source) { this.tempSid.copyFrom(source.tempSid); } @Override public void write(DataOutput out) throws IOException { tempSid.write(out); } @Override public void readFields(DataInput in) throws IOException { tempSid.readFields(in); } @Override public int hashCode() { int prime = 31; int result = 1; result = prime * result + tempSid.hashCode(); return result; } @Override public boolean equals(Object obj) { if(this == obj) { return true; } if(obj == null) { return false; } if(this.getClass()!= obj.getClass()) { return false; } TempImportTarget1Df other = (TempImportTarget1Df) obj; if(this.tempSid.equals(other.tempSid)== false) { return false; } return true; } @Override public String toString() { StringBuilder result = new StringBuilder(); result.append("{"); result.append("class=temp_import_target1_df"); result.append(", tempSid="); result.append(this.tempSid); result.append("}"); return result.toString(); } }
[ "kawaguchi@nautilus-technologies.com" ]
kawaguchi@nautilus-technologies.com
14ec79383ae3573ec404f8f30f16f6e309b470fc
df134b422960de6fb179f36ca97ab574b0f1d69f
/io/netty/handler/codec/Headers.java
e16d76902126e5787100d9f8b7cd6620aeb356e9
[]
no_license
TheShermanTanker/NMS-1.16.3
bbbdb9417009be4987872717e761fb064468bbb2
d3e64b4493d3e45970ec5ec66e1b9714a71856cc
refs/heads/master
2022-12-29T15:32:24.411347
2020-10-08T11:56:16
2020-10-08T11:56:16
302,324,687
0
1
null
null
null
null
UTF-8
Java
false
false
4,585
java
package io.netty.handler.codec; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; public interface Headers<K, V, T extends Headers<K, V, T>> extends Iterable<Map.Entry<K, V>> { V get(K paramK); V get(K paramK, V paramV); V getAndRemove(K paramK); V getAndRemove(K paramK, V paramV); List<V> getAll(K paramK); List<V> getAllAndRemove(K paramK); Boolean getBoolean(K paramK); boolean getBoolean(K paramK, boolean paramBoolean); Byte getByte(K paramK); byte getByte(K paramK, byte paramByte); Character getChar(K paramK); char getChar(K paramK, char paramChar); Short getShort(K paramK); short getShort(K paramK, short paramShort); Integer getInt(K paramK); int getInt(K paramK, int paramInt); Long getLong(K paramK); long getLong(K paramK, long paramLong); Float getFloat(K paramK); float getFloat(K paramK, float paramFloat); Double getDouble(K paramK); double getDouble(K paramK, double paramDouble); Long getTimeMillis(K paramK); long getTimeMillis(K paramK, long paramLong); Boolean getBooleanAndRemove(K paramK); boolean getBooleanAndRemove(K paramK, boolean paramBoolean); Byte getByteAndRemove(K paramK); byte getByteAndRemove(K paramK, byte paramByte); Character getCharAndRemove(K paramK); char getCharAndRemove(K paramK, char paramChar); Short getShortAndRemove(K paramK); short getShortAndRemove(K paramK, short paramShort); Integer getIntAndRemove(K paramK); int getIntAndRemove(K paramK, int paramInt); Long getLongAndRemove(K paramK); long getLongAndRemove(K paramK, long paramLong); Float getFloatAndRemove(K paramK); float getFloatAndRemove(K paramK, float paramFloat); Double getDoubleAndRemove(K paramK); double getDoubleAndRemove(K paramK, double paramDouble); Long getTimeMillisAndRemove(K paramK); long getTimeMillisAndRemove(K paramK, long paramLong); boolean contains(K paramK); boolean contains(K paramK, V paramV); boolean containsObject(K paramK, Object paramObject); boolean containsBoolean(K paramK, boolean paramBoolean); boolean containsByte(K paramK, byte paramByte); boolean containsChar(K paramK, char paramChar); boolean containsShort(K paramK, short paramShort); boolean containsInt(K paramK, int paramInt); boolean containsLong(K paramK, long paramLong); boolean containsFloat(K paramK, float paramFloat); boolean containsDouble(K paramK, double paramDouble); boolean containsTimeMillis(K paramK, long paramLong); int size(); boolean isEmpty(); Set<K> names(); T add(K paramK, V paramV); T add(K paramK, Iterable<? extends V> paramIterable); T add(K paramK, V... paramVarArgs); T addObject(K paramK, Object paramObject); T addObject(K paramK, Iterable<?> paramIterable); T addObject(K paramK, Object... paramVarArgs); T addBoolean(K paramK, boolean paramBoolean); T addByte(K paramK, byte paramByte); T addChar(K paramK, char paramChar); T addShort(K paramK, short paramShort); T addInt(K paramK, int paramInt); T addLong(K paramK, long paramLong); T addFloat(K paramK, float paramFloat); T addDouble(K paramK, double paramDouble); T addTimeMillis(K paramK, long paramLong); T add(Headers<? extends K, ? extends V, ?> paramHeaders); T set(K paramK, V paramV); T set(K paramK, Iterable<? extends V> paramIterable); T set(K paramK, V... paramVarArgs); T setObject(K paramK, Object paramObject); T setObject(K paramK, Iterable<?> paramIterable); T setObject(K paramK, Object... paramVarArgs); T setBoolean(K paramK, boolean paramBoolean); T setByte(K paramK, byte paramByte); T setChar(K paramK, char paramChar); T setShort(K paramK, short paramShort); T setInt(K paramK, int paramInt); T setLong(K paramK, long paramLong); T setFloat(K paramK, float paramFloat); T setDouble(K paramK, double paramDouble); T setTimeMillis(K paramK, long paramLong); T set(Headers<? extends K, ? extends V, ?> paramHeaders); T setAll(Headers<? extends K, ? extends V, ?> paramHeaders); boolean remove(K paramK); T clear(); Iterator<Map.Entry<K, V>> iterator(); } /* Location: C:\Users\Josep\Downloads\Decompile Minecraft\tuinity-1.16.3.jar!\io\netty\handler\codec\Headers.class * Java compiler version: 6 (50.0) * JD-Core Version: 1.1.3 */
[ "tanksherman27@gmail.com" ]
tanksherman27@gmail.com
2a4febcc9c3471ca4167d5a662fc6082e7ba3d72
2b4436358cb68381bc5afaf6d78c9d7014044a90
/src/main/java/org/yood/springboot/mybatis/util/RSAUtils.java
6c93f98476e544afa32ddd9132bb588a3b7ec8ee
[]
no_license
fungbo/spring-boot-mybatis
7c857065ab7c9254ebabde62a0d00c1c1c71e2f0
600a53ebea472ce04cf84aa7448834044c0ac348
refs/heads/master
2020-12-26T04:49:42.994582
2016-05-26T15:43:50
2016-05-26T15:43:50
58,176,917
0
0
null
2016-05-06T03:04:47
2016-05-06T03:04:47
null
UTF-8
Java
false
false
5,033
java
package org.yood.springboot.mybatis.util; import org.apache.commons.codec.binary.Base64; import javax.crypto.Cipher; import java.math.BigInteger; import java.security.*; import java.security.spec.PKCS8EncodedKeySpec; import java.security.spec.RSAPrivateKeySpec; import java.security.spec.RSAPublicKeySpec; import java.security.spec.X509EncodedKeySpec; public class RSAUtils { public static final String RSA_ECB_PKCS1_PADDING = "RSA/ECB/PKCS1Padding"; public static final int KEY_SIZE_2048 = 2048; public static final int KEY_SIZE_1024 = 1024; private RSAUtils() { } private static final String ALGORITHM = "RSA"; public static KeyPair generateKeyPair() { return generateKeyPair(KEY_SIZE_2048); } public static KeyPair generateKeyPair(int keySize) { try { KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(ALGORITHM); keyPairGenerator.initialize(keySize); return keyPairGenerator.generateKeyPair(); } catch (NoSuchAlgorithmException e) { throw new IllegalArgumentException("Failed to generate key pair!", e); } } public static PublicKey getPublicKey(String base64PublicKey) { try { X509EncodedKeySpec keySpec = new X509EncodedKeySpec(Base64.decodeBase64(base64PublicKey)); KeyFactory keyFactory = KeyFactory.getInstance(ALGORITHM); PublicKey publicKey = keyFactory.generatePublic(keySpec); return publicKey; } catch (Exception e) { throw new IllegalArgumentException("Failed to get public key!", e); } } public static PublicKey getPublicKey(BigInteger modulus, BigInteger exponent) { try { KeyFactory keyFactory = KeyFactory.getInstance(ALGORITHM); RSAPublicKeySpec keySpec = new RSAPublicKeySpec(modulus, exponent); return keyFactory.generatePublic(keySpec); } catch (Exception e) { throw new IllegalArgumentException("Failed to get public key!", e); } } public static String getBase64PublicKey(PublicKey publicKey) { return Base64.encodeBase64String(publicKey.getEncoded()); } public static PrivateKey getPrivateKey(String base64PrivateKey) { try { PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(Base64.decodeBase64(base64PrivateKey)); KeyFactory keyFactory = KeyFactory.getInstance(ALGORITHM); PrivateKey privateKey = keyFactory.generatePrivate(keySpec); return privateKey; } catch (Exception e) { throw new IllegalArgumentException("Failed to get private key!", e); } } public static PrivateKey getPrivateKey(BigInteger modulus, BigInteger exponent) { try { KeyFactory keyFactory = KeyFactory.getInstance(ALGORITHM); RSAPrivateKeySpec keySpec = new RSAPrivateKeySpec(modulus, exponent); return keyFactory.generatePrivate(keySpec); } catch (Exception e) { throw new IllegalArgumentException("Failed to get private key!", e); } } public static String getBase64PrivateKey(PrivateKey privateKey) { return Base64.encodeBase64String(privateKey.getEncoded()); } public static byte[] encryptAsByteArray(String data, PublicKey publicKey) { try { Cipher cipher = Cipher.getInstance(RSA_ECB_PKCS1_PADDING); cipher.init(Cipher.ENCRYPT_MODE, publicKey); return cipher.doFinal(data.getBytes()); } catch (Exception e) { throw new IllegalArgumentException("Encrypt failed!", e); } } public static byte[] encryptAsByteArray(String data, String base64PublicKey) { return encryptAsByteArray(data, getPublicKey(base64PublicKey)); } public static String encryptAsString(String data, PublicKey publicKey) { return Base64.encodeBase64String(encryptAsByteArray(data, publicKey)); } public static String encryptAsString(String data, String base64PublicKey) { return Base64.encodeBase64String(encryptAsByteArray(data, getPublicKey(base64PublicKey))); } public static String decrypt(byte[] data, PrivateKey privateKey) { try { Cipher cipher = Cipher.getInstance(RSA_ECB_PKCS1_PADDING); cipher.init(Cipher.DECRYPT_MODE, privateKey); return new String(cipher.doFinal(data)); } catch (Exception e) { throw new IllegalArgumentException("Decrypt failed!", e); } } public static String decrypt(byte[] data, String base64PrivateKey) { return decrypt(data, getPrivateKey(base64PrivateKey)); } public static String decrypt(String data, PrivateKey privateKey) { return decrypt(Base64.decodeBase64(data), privateKey); } public static String decrypt(String data, String base64PrivateKey) { return decrypt(Base64.decodeBase64(data), getPrivateKey(base64PrivateKey)); } }
[ "sjyuan@thoughtworks.com" ]
sjyuan@thoughtworks.com
9630ced84b5ce916cdac2f05703f7d9c2b7a5e92
24643916cd1515911b7837ce81ebd17b0890cc81
/packages/apps/EngineerMode/src/com/mediatek/engineermode/MobileDataPreferred.java
d208ea29a372a816f5ffa9f40d790b4bd8222182
[ "Apache-2.0" ]
permissive
touxiong88/92_mediatek
3a0d61109deb2fa77f79ecb790d0d3fdd693e5fd
5e96a7bb778fd9d9b335825584664e0c8b5ff2c7
refs/heads/master
2020-05-02T10:20:49.365871
2019-04-25T09:12:56
2019-04-25T09:12:56
177,894,636
1
1
null
null
null
null
UTF-8
Java
false
false
6,963
java
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein * is confidential and proprietary to MediaTek Inc. and/or its licensors. * Without the prior written permission of MediaTek inc. and/or its licensors, * any reproduction, modification, use or disclosure of MediaTek Software, * and information contained herein, in whole or in part, shall be strictly prohibited. */ /* MediaTek Inc. (C) 2010. All rights reserved. * * BY OPENING THIS FILE, RECEIVER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE") * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO RECEIVER ON * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT. * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND RECEIVER AGREES TO LOOK ONLY TO SUCH * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. RECEIVER EXPRESSLY ACKNOWLEDGES * THAT IT IS RECEIVER'S SOLE RESPONSIBILITY TO OBTAIN FROM ANY THIRD PARTY ALL PROPER LICENSES * CONTAINED IN MEDIATEK SOFTWARE. MEDIATEK SHALL ALSO NOT BE RESPONSIBLE FOR ANY MEDIATEK * SOFTWARE RELEASES MADE TO RECEIVER'S SPECIFICATION OR TO CONFORM TO A PARTICULAR * STANDARD OR OPEN FORUM. RECEIVER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND * CUMULATIVE LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE, * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE, * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY RECEIVER TO * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. * * The following software/firmware and/or related documentation ("MediaTek Software") * have been modified by MediaTek Inc. All revisions are subject to any receiver's * applicable license agreements with MediaTek Inc. */ package com.mediatek.engineermode; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.os.Bundle; import android.os.RemoteException; import android.os.ServiceManager; import android.preference.CheckBoxPreference; import android.preference.Preference; import android.preference.PreferenceActivity; import android.preference.PreferenceScreen; import android.provider.Settings; import com.android.internal.telephony.ITelephony; import com.android.internal.telephony.PhoneConstants; import com.mediatek.common.featureoption.FeatureOption; import com.mediatek.xlog.Xlog; public class MobileDataPreferred extends PreferenceActivity { private static final String TAG = "EM/CallDataPreferred"; private static final String DATA_PREFER_KEY = "data_prefer_key"; private static final int PCH_DATA_PREFER = 0; private static final int PCH_CALL_PREFER = 1; private static final int MOBILE_DATA_PREF_DIALOG = 10; private CheckBoxPreference mMobileDataPref; private ITelephony mTelephony = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.gsm_umts_options); PreferenceScreen prefSet = getPreferenceScreen(); mMobileDataPref = (CheckBoxPreference)prefSet.findPreference(DATA_PREFER_KEY); int pchFlag = Settings.System.getInt(getContentResolver(), Settings.System.GPRS_TRANSFER_SETTING, Settings.System.GPRS_TRANSFER_SETTING_DEFAULT); Xlog.v(TAG, "Orgin value Settings.System.GPRS_TRANSFER_SETTING = " + pchFlag); mMobileDataPref.setChecked(pchFlag == 0 ? true : false); if (mTelephony == null) { mTelephony = ITelephony.Stub.asInterface(ServiceManager.getService("phone")); } } @Override protected Dialog onCreateDialog(int id) { if (id == MOBILE_DATA_PREF_DIALOG) { return new AlertDialog.Builder(this) .setTitle(android.R.string.dialog_alert_title) .setCancelable(false) .setIcon(android.R.drawable.ic_dialog_alert) .setMessage(R.string.pch_data_prefer_message) .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { setGprsTransferType(PCH_DATA_PREFER); } }) .setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { mMobileDataPref.setChecked(false); } }) .create(); } return super.onCreateDialog(id); } /** * Invoked on each preference click in this hierarchy, overrides * PreferenceActivity's implementation. Used to make sure we track the * preference click events. */ @Override public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { if (mMobileDataPref.equals(preference)) { if (mMobileDataPref.isChecked()) { showDialog(MOBILE_DATA_PREF_DIALOG); } else { setGprsTransferType(PCH_CALL_PREFER); } return true; } return super.onPreferenceTreeClick(preferenceScreen, preference); } private void setGprsTransferType(int type) { try { Xlog.v(TAG, "Change Settings.System.GPRS_TRANSFER_SETTING to " + type); Settings.System.putInt(getContentResolver(), Settings.System.GPRS_TRANSFER_SETTING, type); if (mTelephony != null) { if (FeatureOption.MTK_GEMINI_SUPPORT) { mTelephony.setGprsTransferTypeGemini(type, PhoneConstants.GEMINI_SIM_1); mTelephony.setGprsTransferTypeGemini(type, PhoneConstants.GEMINI_SIM_2); if (FeatureOption.MTK_GEMINI_3SIM_SUPPORT) { mTelephony.setGprsTransferTypeGemini(type, PhoneConstants.GEMINI_SIM_3); } if (FeatureOption.MTK_GEMINI_4SIM_SUPPORT) { mTelephony.setGprsTransferTypeGemini(type, PhoneConstants.GEMINI_SIM_4); } } else { mTelephony.setGprsTransferType(type); } } } catch (RemoteException e) { Xlog.v(TAG, e.getMessage()); } } }
[ "sunhouzan@163.com" ]
sunhouzan@163.com
9ca3340f5ec19ae0a5f4e8a9d0473eb8d7e2c885
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/4/4_f3215940dc0fbbf0c75e744ede43605a42580d5a/TestHDFSCLI/4_f3215940dc0fbbf0c75e744ede43605a42580d5a_TestHDFSCLI_t.java
b029b7092e4e5323c4fdce9d3cc34a05664b4564
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
3,669
java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.cli; import org.apache.hadoop.cli.util.CLICommand; import org.apache.hadoop.cli.util.CommandExecutor.Result; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.hdfs.DFSConfigKeys; import org.apache.hadoop.hdfs.DistributedFileSystem; import org.apache.hadoop.hdfs.HDFSPolicyProvider; import org.apache.hadoop.hdfs.MiniDFSCluster; import org.apache.hadoop.security.authorize.PolicyProvider; import org.junit.After; import static org.junit.Assert.assertTrue; import org.junit.Before; import org.junit.Test; public class TestHDFSCLI extends CLITestHelperDFS { protected MiniDFSCluster dfsCluster = null; protected FileSystem fs = null; protected String namenode = null; @Before @Override public void setUp() throws Exception { super.setUp(); conf.setClass(PolicyProvider.POLICY_PROVIDER_CONFIG, HDFSPolicyProvider.class, PolicyProvider.class); // Many of the tests expect a replication value of 1 in the output conf.setInt(DFSConfigKeys.DFS_REPLICATION_KEY, 1); // Build racks and hosts configuration to test dfsAdmin -printTopology String [] racks = {"/rack1", "/rack1", "/rack2", "/rack2", "/rack2", "/rack3", "/rack4", "/rack4" }; String [] hosts = {"host1", "host2", "host3", "host4", "host5", "host6", "host7", "host8" }; dfsCluster = new MiniDFSCluster.Builder(conf).numDataNodes(8) .racks(racks) .hosts(hosts) .build(); dfsCluster.waitClusterUp(); namenode = conf.get(DFSConfigKeys.FS_DEFAULT_NAME_KEY, "file:///"); username = System.getProperty("user.name"); fs = dfsCluster.getFileSystem(); assertTrue("Not a HDFS: "+fs.getUri(), fs instanceof DistributedFileSystem); } @Override protected String getTestFile() { return "testHDFSConf.xml"; } @After @Override public void tearDown() throws Exception { if (null != fs) fs.close(); dfsCluster.shutdown(); Thread.sleep(2000); super.tearDown(); } @Override protected String expandCommand(final String cmd) { String expCmd = cmd; expCmd = expCmd.replaceAll("NAMENODE", namenode); expCmd = super.expandCommand(expCmd); return expCmd; } @Override protected Result execute(CLICommand cmd) throws Exception { return cmd.getExecutor(namenode).executeCommand(cmd.getCmd()); } //TODO: The test is failing due to the change in HADOOP-7360. // HDFS-2038 is going to fix it. Disable the test for the moment. //@Test @Override public void testAll () { super.testAll(); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
da819ba4b0d837b7abc83c33d8bc47feb6ab7281
3efa417c5668b2e7d1c377c41d976ed31fd26fdc
/src/br/com/mind5/stats/statsStoreOrder/storeOrderMonthAggr/model/checker/StoronagrCheckLangu.java
30c2ec38ec171e408b7a452185ea44bcf1a29b90
[]
no_license
grazianiborcai/Agenda_WS
4b2656716cc49a413636933665d6ad8b821394ef
e8815a951f76d498eb3379394a54d2aa1655f779
refs/heads/master
2023-05-24T19:39:22.215816
2023-05-15T15:15:15
2023-05-15T15:15:15
109,902,084
0
0
null
2022-06-29T19:44:56
2017-11-07T23:14:21
Java
UTF-8
Java
false
false
923
java
package br.com.mind5.stats.statsStoreOrder.storeOrderMonthAggr.model.checker; import br.com.mind5.masterData.language.info.LanguInfo; import br.com.mind5.masterData.language.model.checker.LanguCheckExist; import br.com.mind5.model.checker.ModelChecker; import br.com.mind5.model.checker.ModelCheckerOption; import br.com.mind5.model.checker.ModelCheckerTemplateForward; import br.com.mind5.stats.statsStoreOrder.storeOrderMonthAggr.info.StoronagrInfo; public final class StoronagrCheckLangu extends ModelCheckerTemplateForward<StoronagrInfo, LanguInfo> { public StoronagrCheckLangu(ModelCheckerOption option) { super(option); } @Override protected ModelChecker<LanguInfo> getCheckerHook(ModelCheckerOption option) { return new LanguCheckExist(option); } @Override protected LanguInfo toForwardClass(StoronagrInfo baseRecord) { return LanguInfo.copyFrom(baseRecord); } }
[ "mmaciel@mind5.com.br" ]
mmaciel@mind5.com.br
9a8f3a09a3d1b1fa9210a1bba9ec3cf9f68836d4
85d9d97dae195cb9b57ec7c837dbf61e4624b36d
/bootique-jetty/src/test/java/io/bootique/jetty/servlet/AnnotatedServletIT.java
78368f8dc0ab1df07255a3fa9e08cf07f6a4a1f5
[ "Apache-2.0" ]
permissive
elena-bondareva/bootique-jetty
0e55178993a0a6a13ab7eed4c18eaea66698c5ba
4cd1cd45f26a369b1a775770107c01bd975acb8d
refs/heads/master
2021-04-06T20:35:10.328253
2018-03-20T10:23:52
2018-03-20T10:23:52
125,405,302
0
0
Apache-2.0
2018-03-15T17:45:49
2018-03-15T17:45:49
null
UTF-8
Java
false
false
2,778
java
package io.bootique.jetty.servlet; import com.google.inject.Binder; import com.google.inject.Module; import com.google.inject.Provides; import io.bootique.jetty.JettyModule; import io.bootique.test.junit.BQTestFactory; import org.junit.After; import org.junit.Rule; import org.junit.Test; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.ws.rs.client.ClientBuilder; import javax.ws.rs.client.WebTarget; import java.io.IOException; import java.util.Objects; import static org.junit.Assert.assertNull; public class AnnotatedServletIT { @Rule public BQTestFactory testFactory = new BQTestFactory().autoLoadModules(); private Runnable assertion; @After public void after() { assertion = null; } @Test public void testServletContainerState() { testFactory.app("-s").module(new ServletModule()).run(); WebTarget base = ClientBuilder.newClient().target("http://localhost:8080"); assertNull(assertion); base.path("/b").request().get(); Objects.requireNonNull(assertion).run(); assertion = null; base.path("/b/1").request().get(); Objects.requireNonNull(assertion).run(); assertion = null; base.path("/b/2").request().get(); Objects.requireNonNull(assertion).run(); } @Test public void testConfig_Override() { testFactory.app("-s", "-c", "classpath:io/bootique/jetty/servlet/AnnotatedServletIT1.yml") .module(new ServletModule()) .run(); WebTarget base = ClientBuilder.newClient().target("http://localhost:8080"); assertNull(assertion); base.path("/b").request().get(); assertNull(assertion); base.path("/c").request().get(); Objects.requireNonNull(assertion).run(); assertion = null; } class ServletModule implements Module { @Override public void configure(Binder binder) { JettyModule.extend(binder).addServlet(AnnotatedServlet.class); } @Provides AnnotatedServlet createAnnotatedServlet() { return new AnnotatedServlet(); } @WebServlet(name = "s1", urlPatterns = "/b/*") class AnnotatedServlet extends HttpServlet { private static final long serialVersionUID = -8896839263652092254L; @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { assertion = () -> { }; } } } }
[ "andrus@objectstyle.com" ]
andrus@objectstyle.com
6b1efcf01fe0b79421f9c4020e1d2dfa6b9918bc
16c8d909e1cbfdd829cc891a68609940370cea12
/src/basics/TestBrowserHelper.java
985353a7314638bd503e20260769a156f574884e
[]
no_license
automationtrainingcenter/rasool_selenium
f57a8956077cfc8172e4665e9105f08904a3f1c8
4af54256a1ea77d10a5b7ab3b51648ea5e81f707
refs/heads/master
2020-05-18T16:05:07.337684
2019-06-29T05:31:35
2019-06-29T05:31:35
184,516,782
0
0
null
null
null
null
UTF-8
Java
false
false
267
java
package basics; import utilitiles.Browser; import utilitiles.BrowserHelper; public class TestBrowserHelper extends BrowserHelper{ public static void main(String[] args) { openBrowser(Browser.CHROME, "http://google.com"); sleep(5000); closeBrowser(); } }
[ "atcsurya@gmail.com" ]
atcsurya@gmail.com
09583dcb5f050ff1d05c785ec53fd73f6ddfb216
5a45b5954990ead60af737e19b4401693c5142dd
/src/main/java/ch/so/agi/oereb/web/utils/WMSService.java
ebd7092f98a23e7b0bbc773f6f33162e6508f165
[ "MIT" ]
permissive
edigonzales-dumpster/oereb-web-service
1344d2a13d8ee3a8ca15f62bb4814b5524085a18
37430c7ac525ecbb6f28d8e0e76720033d94b3fb
refs/heads/master
2021-09-07T06:09:10.988868
2018-02-18T14:38:45
2018-02-18T14:38:45
null
0
0
null
null
null
null
UTF-8
Java
false
false
200
java
package ch.so.agi.oereb.web.utils; import com.vividsolutions.jts.geom.Envelope; public interface WMSService { WMSImage getImage(String wmsUrl, Envelope parcelExtent) throws WMSServiceException; }
[ "edi.gonzales@gmail.com" ]
edi.gonzales@gmail.com
1e7afbe2c8f9f7c0c3a6aab2726523d46da0e478
a05d9347d233152affa726a2359be87e42b22e03
/Trabajos/ProyectoVenta/Proyecto/src/pe/egcc/proyecto/dto/LogonDto.java
bb77f1dc033da58e9ff2ef6f1e687e61c98d753b
[]
no_license
gcoronelc/SISTUNI_JAVA_JDBC_002
2aa5393d8e20cb5e9fe747255bca7dec17689f58
7ae0b7f53b2585d01f34fa337464e22b040712f6
refs/heads/master
2021-01-10T11:17:06.603759
2016-03-25T21:47:44
2016-03-25T21:47:44
51,031,997
0
1
null
null
null
null
UTF-8
Java
false
false
556
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package pe.egcc.proyecto.dto; public class LogonDto { private String usuario; private String clave; public LogonDto() { } public String getClave() { return clave; } public void setClave(String clave) { this.clave = clave; } public String getUsuario() { return usuario; } public void setUsuario(String usuario) { this.usuario = usuario; } }
[ "gcoronelc@gmail.com" ]
gcoronelc@gmail.com
fbaacac0e9c5a17af0592edb3e9fbd864016cf53
2f49e2f63dea85d62aa1a56b12d103d8bab0bee3
/EasyMPermission/src/core/lombok/Getter.java
906ae60f28dceafe9f5ce0fc2efbf082682f56ea
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mobmead/EasyMPermission
9837a0bbb1c6f6b33a6905fd7e60ffb921484b27
e373737c4c9d9494a25f3700654022c155d027fc
refs/heads/master
2021-01-18T20:30:06.222457
2015-11-12T17:45:18
2015-11-12T17:45:18
39,174,977
62
12
null
null
null
null
UTF-8
Java
false
false
2,871
java
/* * Copyright (C) 2009-2013 The Project Lombok Authors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package lombok; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Put on any field to make lombok build a standard getter. * <p> * Complete documentation is found at <a href="https://projectlombok.org/features/GetterSetter.html">the project lombok features page for &#64;Getter and &#64;Setter</a>. * <p> * Even though it is not listed, this annotation also has the {@code onMethod} parameter. See the full documentation for more details. * <p> * Example: * <pre> * private &#64;Getter int foo; * </pre> * * will generate: * * <pre> * public int getFoo() { * return this.foo; * } * </pre> * <p> * This annotation can also be applied to a class, in which case it'll be as if all non-static fields that don't already have * a {@code @Getter} annotation have the annotation. */ @Target({ElementType.FIELD, ElementType.TYPE}) @Retention(RetentionPolicy.SOURCE) public @interface Getter { /** * If you want your getter to be non-public, you can specify an alternate access level here. */ lombok.AccessLevel value() default lombok.AccessLevel.PUBLIC; /** * Any annotations listed here are put on the generated method. The syntax for this feature is: {@code @Getter(onMethod=@__({@AnnotationsGoHere}))} */ AnyAnnotation[] onMethod() default @AnyAnnotation; boolean lazy() default false; /** * Placeholder annotation to enable the placement of annotations on the generated code. * @deprecated Don't use this annotation, ever - Read the documentation. */ @Deprecated @Retention(RetentionPolicy.SOURCE) @Target({}) @interface AnyAnnotation {} }
[ "jian@mobmead.com" ]
jian@mobmead.com
0b31401fdf4a40d1bb6cc8360e2abd249a85cae5
09b51886063f97c1d25bde8408e6db7ddc0c3398
/project/mine/TXZL_WX/src/cn/cellcom/common/xml/XMLTool.java
da1ef01c10afb8ba2e1d82543a5664921516ada6
[]
no_license
amxsa/gfxiangGit
e3aaa6a36d829def497ee68a3b10ebcd808d1b78
28d42196c30347092f6c03daa758b2ccff4df737
refs/heads/master
2021-01-24T10:49:27.282124
2017-07-19T13:17:21
2017-07-19T13:17:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,886
java
package cn.cellcom.common.xml; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import org.apache.commons.lang.StringUtils; import org.dom4j.Document; import org.dom4j.DocumentException; import org.dom4j.Element; import org.dom4j.io.SAXReader; import cn.cellcom.common.file.Msg; import com.thoughtworks.xstream.XStream; import com.thoughtworks.xstream.io.xml.DomDriver; import com.thoughtworks.xstream.mapper.DefaultMapper; public class XMLTool { public static Map<String, String> parseXml(HttpServletRequest request) throws IOException, DocumentException { // 将解析结果存储在HashMap中 Map<String, String> map = new HashMap<String, String>(); // 从request中取得输入流 InputStream inputStream = request.getInputStream(); // 读取输入流 SAXReader reader = new SAXReader(); Document document = reader.read(inputStream); // 得到xml根元素 Element root = document.getRootElement(); // 得到根元素的所有子节点 List<Element> elementList = root.elements(); // 遍历所有子节点 for (Element e : elementList) map.put(e.getName(), e.getText()); // 释放资源 inputStream.close(); inputStream = null; return map; } private static final String title = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; /** * 集合转成XML格式 * * @param collection * @param alias * 别名 * @param isTitle * 是否需要xml头 * @return */ public static String list2Xml(Collection<?> collection, String alias, boolean isTitle) { // 创建XStream对象 XStream xs = new XStream(new DomDriver()); // 为所有的类创建别名,别名为不包含包名的类名 for (int i = 0; i < collection.size(); i++) { Class clzz = collection.iterator().next().getClass(); if (StringUtils.isBlank(alias)) { // 得到全限定类名 String fullName = clzz.getName(); // 以"."分割字符串 String[] temp = fullName.split("\\."); xs.alias(temp[temp.length - 1], clzz); } else { xs.alias(alias, clzz); } } if (isTitle) { return new StringBuilder(title).append(xs.toXML(collection)) .toString(); } return xs.toXML(collection); } /** * bean转成XML格式 * * @param object * @param alias * @param isTitle * @return */ public static String bean2Xml(Object bean, String alias, boolean isTitle) { XStream xs = new XStream(new DomDriver()); Class clazz = bean.getClass(); if (StringUtils.isBlank(alias)) { String[] temp = clazz.getName().split("\\."); alias = temp[temp.length - 1]; } xs.alias(alias, clazz); if (isTitle) { return new StringBuilder(title).append(xs.toXML(bean)).toString(); } return xs.toXML(bean); } /** * map转成XML格式 * * @param map * @param isTitle * @return */ public static String map2Xml(Map map, boolean isTitle) { StringBuilder xml = new StringBuilder(""); if (isTitle) { xml.append(title); } XStream xStream = new XStream(); xStream.registerConverter(new MapCustomConverter( new DefaultMapper(null))); return xml.append(xStream.toXML(map)).toString(); } public static void main(String[] args) { List inList = new ArrayList(); Msg msg1 = new Msg(); msg1.setFlag(true); msg1.setMsg("123"); Msg msg2 = new Msg(); msg2.setFlag(false); msg2.setMsg("456"); inList.add(msg1); inList.add(msg2); System.out.println(XMLTool.bean2Xml(msg1, "user", false)); // System.out.println(objectToXml(msg1,false)); // System.out.println(objectToXml(new String[]{"123","456"},true)); Map map = new HashMap<String, String>(); map.put("msg1", "123"); map.put("msg2", "456"); System.out.println(map2Xml(map, true)); } }
[ "846662924@qq.com" ]
846662924@qq.com
e7b78568050b8cafff181d7dbf86596ced0a1b9d
7f20b1bddf9f48108a43a9922433b141fac66a6d
/core3/viewmodel-api/branches/edit-views/src/main/java/org/cytoscape/view/model/EditProxy.java
54e13d50ae137d4f3e018d3b825066e71a9a069c
[]
no_license
ahdahddl/cytoscape
bf783d44cddda313a5b3563ea746b07f38173022
a3df8f63dba4ec49942027c91ecac6efa920c195
refs/heads/master
2020-06-26T16:48:19.791722
2013-08-28T04:08:31
2013-08-28T04:08:31
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,523
java
/* Copyright (c) 2008, The Cytoscape Consortium (www.cytoscape.org) The Cytoscape Consortium is: - Institute for Systems Biology - University of California San Diego - Memorial Sloan-Kettering Cancer Center - Institut Pasteur - Agilent Technologies This library 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 any later version. This library 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. The software and documentation provided hereunder is on an "as is" basis, and the Institute for Systems Biology and the Whitehead Institute have no obligations to provide maintenance, support, updates, enhancements or modifications. In no event shall the Institute for Systems Biology and the Whitehead Institute be liable to any party for direct, indirect, special, incidental or consequential damages, including lost profits, arising out of the use of this software and its documentation, even if the Institute for Systems Biology and the Whitehead Institute have been advised of the possibility of such damage. 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 library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ package org.cytoscape.view.model; /** * A proxy that collects the edits made to the underlying object, and * doesn't apply them until .mergeEdits() is called. * * Thus the changes collected by and EditProxy object can be * considered a 'transaction' or a 'revision'. * * Note that this interface shouldn't be implemented on its * own. Instead, implementors must also implement the interface of the * underlying object, as well, and provide an updated view of the * underlying object. (See edit-views branch of viewmodel for an * example.) * * This shouldn't actually be in the viewmodel-api bundle, since it * might be used in model-api, i.e. it is more basic. */ public interface EditProxy { /** * Merge (commit) the changes collected by this proxy into the * underlying object, doing this in as bulk way as * possible. (Triggering as few events as possible.) * * @return DOCUMENT ME! */ void mergeEdits(); }
[ "abeld@0ecc0d97-ab19-0410-9704-bfe1a75892f5" ]
abeld@0ecc0d97-ab19-0410-9704-bfe1a75892f5
46f8c3e1b9a3dd74faa22a2f7279f1becf645577
17e8438486cb3e3073966ca2c14956d3ba9209ea
/dso/tags/2.6-stable3/code/base/ui-eclipse/src/org/terracotta/dso/actions/ModuleHandler.java
ef1ffb7527330d4f8e305d407b77b6faac5d3324
[]
no_license
sirinath/Terracotta
fedfc2c4f0f06c990f94b8b6c3b9c93293334345
00a7662b9cf530dfdb43f2dd821fa559e998c892
refs/heads/master
2021-01-23T05:41:52.414211
2015-07-02T15:21:54
2015-07-02T15:21:54
38,613,711
1
0
null
null
null
null
UTF-8
Java
false
false
1,782
java
/* * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved. */ package org.terracotta.dso.actions; import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.IType; import org.eclipse.jface.viewers.ISelection; import org.eclipse.swt.widgets.Menu; /** * Popup action submenu that contains module-related actions. * * @see org.eclipse.jdt.core.ICompilationUnit * @see BaseMenuCreator * @see AdaptableAction * @see ExcludedTypeAction * @see BootJarTypeAction */ public class ModuleHandler extends BaseMenuCreator { private AdaptableAction m_adaptableAction; private ExcludedTypeAction m_excludedAction; private BootJarTypeAction m_bootJarAction; public ModuleHandler() { super(); m_adaptableAction = new AdaptableAction(); m_excludedAction = new ExcludedTypeAction(); m_bootJarAction = new BootJarTypeAction(); } protected IJavaElement getJavaElement(ISelection selection) { ICompilationUnit module = ActionUtil.findSelectedCompilationUnit(selection); String label = "Module"; if (module != null) { label = "Module " + module.getElementName(); } m_delegateAction.setText(label); return module; } protected void fillMenu(Menu menu) { if (m_element != null) { IType type = ((ICompilationUnit) m_element).findPrimaryType(); if (type != null) { m_adaptableAction.setJavaElement(type); addMenuAction(menu, m_adaptableAction); m_excludedAction.setJavaElement(type); addMenuAction(menu, m_excludedAction); m_bootJarAction.setType(type); addMenuAction(menu, m_bootJarAction); } } } }
[ "hhuynh@7fc7bbf3-cf45-46d4-be06-341739edd864" ]
hhuynh@7fc7bbf3-cf45-46d4-be06-341739edd864
950b951e06814b968077597551a5fbd0625f2e13
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/java/hazelcast/2016/8/EmptyObjectDataOutput.java
b8dff6c770281e11a7f450fe182c277a707836b3
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Java
false
false
3,198
java
/* * Copyright (c) 2008-2016, Hazelcast, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * 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.hazelcast.internal.serialization.impl; import com.hazelcast.nio.ObjectDataOutput; import com.hazelcast.nio.serialization.Data; import java.io.IOException; import java.nio.ByteOrder; final class EmptyObjectDataOutput implements ObjectDataOutput { @Override public void writeObject(Object object) throws IOException { } @Override public void writeData(Data data) throws IOException { } @Override public void write(int b) throws IOException { } @Override public void write(byte[] b) throws IOException { } @Override public void write(byte[] b, int off, int len) throws IOException { } @Override public void writeBoolean(boolean v) throws IOException { } @Override public void writeByte(int v) throws IOException { } @Override public void writeShort(int v) throws IOException { } @Override public void writeChar(int v) throws IOException { } @Override public void writeInt(int v) throws IOException { } @Override public void writeLong(long v) throws IOException { } @Override public void writeFloat(float v) throws IOException { } @Override public void writeDouble(double v) throws IOException { } @Override public void writeBytes(String s) throws IOException { } @Override public void writeChars(String s) throws IOException { } @Override public void writeUTF(String s) throws IOException { } @Override public void writeByteArray(byte[] value) throws IOException { } @Override public void writeBooleanArray(boolean[] booleans) throws IOException { } @Override public void writeCharArray(char[] chars) throws IOException { } @Override public void writeIntArray(int[] ints) throws IOException { } @Override public void writeLongArray(long[] longs) throws IOException { } @Override public void writeDoubleArray(double[] values) throws IOException { } @Override public void writeFloatArray(float[] values) throws IOException { } @Override public void writeShortArray(short[] values) throws IOException { } @Override public void writeUTFArray(String[] values) throws IOException { } @Override public byte[] toByteArray() { throw new UnsupportedOperationException(); } public void close() throws IOException { } @Override public ByteOrder getByteOrder() { return ByteOrder.BIG_ENDIAN; } }
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
c9e6003e585eb5baeeecebb68094a437eef1037c
b3d9e98f353eaba1cf92e3f1fc1ccd56e7cecbc5
/xy-games/game-proxy/trunk/src/main/java/com/cai/handler/c2s/ClubExclusiveGoldHandler.java
c6d32b45e716f25457a87ff1e56356d83b8b8114
[]
no_license
konser/repository
9e83dd89a8ec9de75d536992f97fb63c33a1a026
f5fef053d2f60c7e27d22fee888f46095fb19408
refs/heads/master
2020-09-29T09:17:22.286107
2018-10-12T03:52:12
2018-10-12T03:52:12
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,534
java
/** * Copyright@2015-2016 Hunan Qisheng Network Technology Co. Ltd.[SHEN-ZHEN] */ package com.cai.handler.c2s; import com.cai.common.constant.C2SCmd; import com.cai.common.constant.RMICmd; import com.cai.common.constant.S2CCmd; import com.cai.common.domain.Account; import com.cai.common.rmi.ICenterRMIServer; import com.cai.common.util.PBUtil; import com.cai.common.util.SpringService; import com.xianyi.framework.core.transport.ICmd; import com.xianyi.framework.core.transport.netty.session.C2SSession; import com.xianyi.framework.handler.IClientHandler; import protobuf.clazz.ClubMsgProto.ClubExclusiveGoldProto; import protobuf.clazz.Protocol.Request; import protobuf.clazz.c2s.C2SProto.EmptyReq; /** * * * * @author wu_hc date: 2017年12月19日 上午10:31:37 <br/> */ @ICmd(code = C2SCmd.CLUB_EXCLUSIVE_GOLD_INFO, desc = "俱乐部专属豆") public final class ClubExclusiveGoldHandler extends IClientHandler<EmptyReq> { @Override protected void execute(EmptyReq req, Request topRequest, C2SSession session) throws Exception { final Account account = session.getAccount(); if (null == account) { return; } ICenterRMIServer centerRMIServer = SpringService.getBean(ICenterRMIServer.class); ClubExclusiveGoldProto exclusiveProto = centerRMIServer.rmiInvoke(RMICmd.CLUB_EXCLUSIVE_GOLD_INFO, account.getAccount_id()); if (null == exclusiveProto) { return; } session.send(PBUtil.toS2CCommonRsp(S2CCmd.CLUB_EXCLUSIVE_GOLD_INFO, exclusiveProto)); } }
[ "905202059@qq.com" ]
905202059@qq.com
3eff10f785fb96299ab379bac50687eb359dd875
93ba8ba8774eead569eda9930205bc15c67dc453
/JavaProgramming/src/ch05/homework01/ForFloatCounterExample.java
d1c9abb4e725bf6e3be5ea082637ae7f2ecc10fa
[]
no_license
SmileJM/TestRepository
f51829c17916b5b303ecb04fa5675fab36425fd2
1d907100cd9b89b2ff1e4aa3932e11ed5a87c2ec
refs/heads/master
2021-01-20T00:46:08.192028
2017-08-25T09:06:18
2017-08-25T09:06:18
89,182,177
0
0
null
null
null
null
UTF-8
Java
false
false
182
java
package ch05.homework01; public class ForFloatCounterExample { public static void main(String[] args) { for(float x=0.1f; x<1.0f; x+=0.1) { System.out.println(x); } } }
[ "lovelyeu@hanmail.net" ]
lovelyeu@hanmail.net
a51602ea61f4166759af0aac577b1e1fac8d07e2
d81d1549bc9c8832fc332029233651112bf3317b
/core/viewer-wicket-model/src/main/java/org/apache/isis/viewer/wicket/model/util/ComponentKey.java
794b6f0a38919815f4a038a1aa26cbd0b1807354
[ "Apache-2.0" ]
permissive
nagabharat/isis
3ab1fd1b9522fc6c51d1bafbcb268023e7485316
ca94ac6edebb6c7c6a517b09e7c560b31df0579e
refs/heads/master
2021-01-22T17:13:50.486542
2016-03-17T07:52:34
2016-03-17T07:52:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,931
java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.isis.viewer.wicket.model.util; import java.io.Serializable; import org.apache.wicket.Component; import org.apache.wicket.request.mapper.parameter.PageParameters; import org.apache.isis.viewer.wicket.model.hints.UiHintContainer; /** * Scoped by the {@link Component component's path}. */ public class ComponentKey<T extends Serializable> implements Serializable { private static final long serialVersionUID = 1L; public static <T extends Serializable> ComponentKey<T> create( final Component path, final String key, final Store store) { return new ComponentKey<T>(path, key, null, store); } public static <T extends Serializable> ComponentKey<T> create( final String fullKey, final Store store) { return new ComponentKey<T>(null, null, fullKey, store); } private final Component component; private final String keyName; private final String fullKey; private final Store store; private ComponentKey( final Component component, final String keyName, final String fullKey, final Store store) { this.component = component; this.keyName = keyName; this.fullKey = fullKey; this.store = store; } public String getKey() { return fullKey != null ? fullKey : keyFor(component, keyName); } protected String keyFor(final Component component, final String keyName) { return UiHintContainer.Util.hintPathFor(component) + "-" + keyName; } public String getKeyName() { return keyName; } public boolean matches(final Component component, final String keyName) { final String key = getKey(); final String keyOfProvided = keyFor(component, keyName); return keyOfProvided.equals(key); } public void set(T t) { if(t != null) { getStore().set(getKey(), t); } else { remove(); } } public T get() { return (T) getStore().get(getKey()); } protected Store getStore() { return store; } public void remove() { final String key = getKey(); getStore().remove(key); } public void hintTo(final PageParameters pageParameters, final String prefix) { String value = (String) get(); final String prefixedKey = prefix + getKey(); if(value == null) { return; } pageParameters.add(prefixedKey, value); } public static <T extends Serializable> ComponentKey<T> noop() { return new ComponentKey<T>(null, null, null, null) { @Override public String getKey() { return null; } @Override public void set(final T serializable) { } @Override public T get() { return null; } @Override public void remove() { } }; } }
[ "dan@haywood-associates.co.uk" ]
dan@haywood-associates.co.uk
2f70f3e33b7795742989fbd07a79bc4756ffcd05
7e1511cdceeec0c0aad2b9b916431fc39bc71d9b
/flakiness-predicter/input_data/original_tests/apache-hbase/flakyMethods/org.apache.hadoop.hbase.TestInfoServers-testInfoServersAreUp.java
ffebb4728e8664b3f4cd4947da69b27539077250
[ "BSD-3-Clause" ]
permissive
Taher-Ghaleb/FlakeFlagger
6fd7c95d2710632fd093346ce787fd70923a1435
45f3d4bc5b790a80daeb4d28ec84f5e46433e060
refs/heads/main
2023-07-14T16:57:24.507743
2021-08-26T14:50:16
2021-08-26T14:50:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
451
java
/** * @throws Exception */ public void testInfoServersAreUp() throws Exception { new HTable(conf,".META."); int port=cluster.getMaster().getInfoServer().getPort(); assertHasExpectedContent(new URL("http://localhost:" + port + "/index.html"),"master"); port=cluster.getRegionServerThreads().get(0).getRegionServer().getInfoServer().getPort(); assertHasExpectedContent(new URL("http://localhost:" + port + "/index.html"),"regionserver"); }
[ "aalsha2@masonlive.gmu.edu" ]
aalsha2@masonlive.gmu.edu
e5af94b7b7dde0e08cb00ca5e89425ae607bdaa6
c1e4463301b9d4191f3d63a42c22c8b94a701fbe
/Tools/src/main/java/me/riguron/telegram/dump/state/FailureState.java
5c49f582ab01e00bd03b12138feb47e746f6898d
[ "MIT" ]
permissive
akbarazimifar/TelegramTools
ceb584a536865234c5e66908efe1542e9cf33448
3c5be3bc6387859c2932080af33df99ba14b7a4a
refs/heads/master
2020-09-02T16:11:50.573832
2019-10-30T07:32:03
2019-10-30T07:32:03
null
0
0
null
null
null
null
UTF-8
Java
false
false
696
java
package me.riguron.telegram.dump.state; import java.util.List; /** * Represents a state for channel dump task that has * failed for some reason. */ public class FailureState implements ChannelDumpState { private final ChannelDumpState failedState; public FailureState(ChannelDumpState failedState) { this.failedState = failedState; } @Override public String errorDescription() { return failedState.errorDescription(); } @Override public String publicDescription() { throw new UnsupportedOperationException(); } @Override public List<Object> getStateVariables() { return failedState.getStateVariables(); } }
[ "25826296+riguron@users.noreply.github.com" ]
25826296+riguron@users.noreply.github.com
83273c1f305bbe64af6e361bc7ac64110e2f4a78
ea4da81a69a300624a46fce9e64904391c37267c
/src/main/java/com/alipay/api/domain/AlipayUserAlipaypointSendModel.java
477ff2e52a96360f256986e6167741ec46f779e6
[ "Apache-2.0" ]
permissive
shiwei1024/alipay-sdk-java-all
741cc3cb8cf757292b657ce05958ff9ad8ecf582
d6a051fd47836c719a756607e6f84fee2b26ecb4
refs/heads/master
2022-12-29T18:46:53.195585
2020-10-09T06:34:30
2020-10-09T06:34:30
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,424
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 集分宝发放接口 * * @author auto create * @since 1.0, 2020-08-17 21:14:04 */ public class AlipayUserAlipaypointSendModel extends AlipayObject { private static final long serialVersionUID = 7436247231876666485L; /** * 签约商户的集分宝的预算库,扣除此预算库的集分宝发放给用户。会校验budgetcode和业务方appId的签约商户pid的关联关系,若无关则发放失败。 */ @ApiField("budget_code") private String budgetCode; /** * 商户关于该笔发放的描述或者信息补充,仅存储,无实际校验功能 */ @ApiField("memo") private String memo; /** * 商家发放集分宝所产生的业务号,集分宝服务将依据此字段,以及其他相关字段来进行幂等控制,需要慎重传递,否则可能会造成损失 */ @ApiField("partner_biz_no") private String partnerBizNo; /** * 发放给用户的集分宝个数 */ @ApiField("point_amount") private Long pointAmount; /** * 被发放集分宝用户的支付宝登录号,邮箱地址或者手机号均可,与user_id字段二选一,在有user_id时,优先使用user_id字段 */ @ApiField("user_account") private String userAccount; /** * 蚂蚁统一会员ID,与user_account字段二选一,本字段非空时,优先使用本字段 */ @ApiField("user_id") private String userId; public String getBudgetCode() { return this.budgetCode; } public void setBudgetCode(String budgetCode) { this.budgetCode = budgetCode; } public String getMemo() { return this.memo; } public void setMemo(String memo) { this.memo = memo; } public String getPartnerBizNo() { return this.partnerBizNo; } public void setPartnerBizNo(String partnerBizNo) { this.partnerBizNo = partnerBizNo; } public Long getPointAmount() { return this.pointAmount; } public void setPointAmount(Long pointAmount) { this.pointAmount = pointAmount; } public String getUserAccount() { return this.userAccount; } public void setUserAccount(String userAccount) { this.userAccount = userAccount; } public String getUserId() { return this.userId; } public void setUserId(String userId) { this.userId = userId; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
875d0ac82ffb193c5423ac28bd80ca401a72bf1c
570166dcba0b315fd7590b03c167acc120c04429
/app/src/main/java/com/sina/book/ui/adapter/RechargeDetailAdapter.java
bfa215e0dc3158ad3d0c8900146ca5ed4f7f7ea2
[]
no_license
freddiezhao/ReadBookS
8d509ce89223563c7788643fca04be95bfe1d21b
6e7d706794e83339b7843c5b42c65c443ef95ffa
refs/heads/master
2020-03-25T13:17:20.081728
2017-12-20T00:14:20
2017-12-20T00:14:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,378
java
package com.sina.book.ui.adapter; import java.util.ArrayList; import java.util.List; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.ViewGroup.MarginLayoutParams; import android.widget.TextView; import com.sina.book.R; import com.sina.book.data.RechargeDetail; import com.sina.book.util.PixelUtil; public class RechargeDetailAdapter extends ListAdapter<RechargeDetail> { private Context mContext; private ViewHolder mHolder; private RechargeDetail fixHead = new RechargeDetail("充值时间", "订单详情", "订单号");; public RechargeDetailAdapter(Context context) { mContext = context; } @Override public int getCount() { int count = super.getCount(); if (count == 0) { return count; } else { return count + 1; } } @Override public Object getItem(int position) { if (position == 0) { return fixHead; } else { return super.getItem(position - 1); } } @Override public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null || convertView.getTag() == null) { convertView = createView(); } mHolder = (ViewHolder) convertView.getTag(); RechargeDetail rdetail = (RechargeDetail) getItem(position); int color; if (position == 0) { color = mContext.getResources().getColor(R.color.consume_item_title); mHolder.no.setTextSize(12); } else { color = mContext.getResources().getColor(R.color.consume_item_normal); mHolder.no.setTextSize(10); } if (position == 0) { if (mHolder.divide1.getLayoutParams() != null && mHolder.divide2.getLayoutParams() != null) { MarginLayoutParams ll1 = (MarginLayoutParams) mHolder.divide1.getLayoutParams(); ll1.topMargin = PixelUtil.dp2px(12); MarginLayoutParams ll2 = (MarginLayoutParams) mHolder.divide2.getLayoutParams(); ll2.topMargin = PixelUtil.dp2px(12); } } else if (position == getCount() - 1) { if (mHolder.divide1.getLayoutParams() != null && mHolder.divide2.getLayoutParams() != null) { MarginLayoutParams ll1 = (MarginLayoutParams) mHolder.divide1.getLayoutParams(); ll1.bottomMargin = PixelUtil.dp2px(12); MarginLayoutParams ll2 = (MarginLayoutParams) mHolder.divide2.getLayoutParams(); ll2.bottomMargin = PixelUtil.dp2px(12); } } else { if (mHolder.divide1.getLayoutParams() != null && mHolder.divide2.getLayoutParams() != null) { MarginLayoutParams ll1 = (MarginLayoutParams) mHolder.divide1.getLayoutParams(); ll1.topMargin = 0; ll1.bottomMargin = 0; MarginLayoutParams ll2 = (MarginLayoutParams) mHolder.divide2.getLayoutParams(); ll2.topMargin = 0; ll2.bottomMargin = 0; } } mHolder.time.setTextColor(color); mHolder.detail.setTextColor(color); mHolder.no.setTextColor(color); mHolder.time.setText(rdetail.getTime()); mHolder.detail.setText(rdetail.getDetail()); mHolder.no.setText(rdetail.getNo()); return convertView; } @Override protected List<RechargeDetail> createList() { return new ArrayList<RechargeDetail>(); } protected View createView() { View itemView = LayoutInflater.from(mContext).inflate(R.layout.vw_recharge_detail_item, null); ViewHolder holder = new ViewHolder(); holder.time = (TextView) itemView.findViewById(R.id.time); holder.detail = (TextView) itemView.findViewById(R.id.detail); holder.no = (TextView) itemView.findViewById(R.id.no); holder.divide1 = itemView.findViewById(R.id.divide1); holder.divide2 = itemView.findViewById(R.id.divide2); itemView.setTag(holder); return itemView; } protected class ViewHolder { public TextView time; public TextView detail; public TextView no; public View divide1; public View divide2; } }
[ "wzp09tjlg@163.com" ]
wzp09tjlg@163.com
f99592854236f150303190bd16905ba0f8e089bd
520e2dd30726e0840f53a400900d08bd47e36c30
/src/main/java/ameba/container/grizzly/server/http/internal/LocalizationMessages.java
0d823d4cfb4fe45b7d91aed7bcd9ee280f8e35b4
[ "MIT" ]
permissive
icode/ameba-container-grizzly
1da7142c7b6047ca1d6958ae7747babdafee78c2
129f60b65db0d63e31fe1a37bdedaf514e3bd097
refs/heads/master
2020-12-24T05:41:27.091483
2018-04-17T07:34:13
2018-04-17T07:34:13
22,710,397
1
2
null
null
null
null
UTF-8
Java
false
false
1,674
java
package ameba.container.grizzly.server.http.internal; import org.glassfish.jersey.internal.l10n.Localizable; import org.glassfish.jersey.internal.l10n.LocalizableMessageFactory; import org.glassfish.jersey.internal.l10n.Localizer; /** * @author icode * @since 14-12-11 */ public final class LocalizationMessages { private final static LocalizableMessageFactory messageFactory = new LocalizableMessageFactory("org.glassfish.jersey.grizzly2.httpserver.internal.localization"); private final static Localizer localizer = new Localizer(); /** * @param key key * @param value value * @return Localizable */ public static Localizable localizableEXCEPTION_SENDING_ERROR_RESPONSE(Object key, Object value) { return messageFactory.getMessage("exception.sending.error.response", key, value); } /** * I/O exception occurred while sending "{0}/{1}" error response. * * @param key key * @param value value * @return value */ public static String EXCEPTION_SENDING_ERROR_RESPONSE(Object key, Object value) { return localizer.localize(localizableEXCEPTION_SENDING_ERROR_RESPONSE(key, value)); } /** * @param key key * @return Localizable */ public static Localizable localizableFAILED_TO_START_SERVER(Object key) { return messageFactory.getMessage("failed.to.start.server", key); } /** * Failed to start Grizzly HTTP server: {0} * * @param key key * @return value */ public static String FAILED_TO_START_SERVER(Object key) { return localizer.localize(localizableFAILED_TO_START_SERVER(key)); } }
[ "intelligentcodemail@gmail.com" ]
intelligentcodemail@gmail.com
6897995326f33ccf2a568a4cdd2faf574c352c39
558667608651dfd5778e3cc1131e9eaf5f1be8d7
/smali/com/twocloo/com/cn/common/JavaScript$3.java
72a6a84d80480d0035d3c4f7b8b558ffa708dc24
[]
no_license
gambol/chunqingaikan
0cd6b0d3ca855f2d1a5ad22f7be3c46f8b1e6984
25fa70619ab484e61124465a0b4bdec1cdb5bf62
refs/heads/master
2021-01-10T11:13:41.624112
2015-03-04T14:08:40
2015-03-04T14:08:40
36,016,628
1
0
null
null
null
null
UTF-8
Java
false
false
3,844
java
package com.twocloo.com.cn.common; class JavaScript$3 { void a() { int a; a=0;// .class Lcom/twocloo/com/cn/common/JavaScript$3; a=0;// .super Ljava/lang/Object; a=0;// .source "JavaScript.java" a=0;// a=0;// # interfaces a=0;// .implements Landroid/view/View$OnClickListener; a=0;// a=0;// a=0;// # annotations a=0;// .annotation system Ldalvik/annotation/EnclosingMethod; a=0;// value = Lcom/twocloo/com/cn/common/JavaScript;->goBuyMonth(Ljava/lang/String;Ljava/lang/String;)V a=0;// .end annotation a=0;// a=0;// .annotation system Ldalvik/annotation/InnerClass; a=0;// accessFlags = 0x0 a=0;// name = null a=0;// .end annotation a=0;// a=0;// a=0;// # instance fields a=0;// .field final synthetic this$0:Lcom/twocloo/com/cn/common/JavaScript; a=0;// a=0;// .field private final synthetic val$type:Ljava/lang/String; a=0;// a=0;// a=0;// # direct methods a=0;// .method constructor <init>(Lcom/twocloo/com/cn/common/JavaScript;Ljava/lang/String;)V a=0;// .locals 0 a=0;// a=0;// .prologue a=0;// .line 1 a=0;// iput-object p1, p0, Lcom/twocloo/com/cn/common/JavaScript$3;->this$0:Lcom/twocloo/com/cn/common/JavaScript; a=0;// a=0;// iput-object p2, p0, Lcom/twocloo/com/cn/common/JavaScript$3;->val$type:Ljava/lang/String; a=0;// a=0;// .line 623 a=0;// invoke-direct {p0}, Ljava/lang/Object;-><init>()V a=0;// a=0;// #p0=(Reference,Lcom/twocloo/com/cn/common/JavaScript$3;); a=0;// return-void a=0;// .end method a=0;// a=0;// a=0;// # virtual methods a=0;// .method public onClick(Landroid/view/View;)V a=0;// .locals 4 a=0;// .param p1, "arg0" # Landroid/view/View; a=0;// a=0;// .prologue a=0;// .line 627 a=0;// iget-object v0, p0, Lcom/twocloo/com/cn/common/JavaScript$3;->this$0:Lcom/twocloo/com/cn/common/JavaScript; a=0;// a=0;// #v0=(Reference,Lcom/twocloo/com/cn/common/JavaScript;); a=0;// invoke-static {v0}, Lcom/twocloo/com/cn/common/JavaScript;->access$2(Lcom/twocloo/com/cn/common/JavaScript;)Landroid/app/Dialog; a=0;// a=0;// move-result-object v0 a=0;// a=0;// invoke-virtual {v0}, Landroid/app/Dialog;->cancel()V a=0;// a=0;// .line 628 a=0;// new-instance v0, Lcom/twocloo/com/cn/task/BaoyueTask; a=0;// a=0;// #v0=(UninitRef,Lcom/twocloo/com/cn/task/BaoyueTask;); a=0;// iget-object v1, p0, Lcom/twocloo/com/cn/common/JavaScript$3;->this$0:Lcom/twocloo/com/cn/common/JavaScript; a=0;// a=0;// #v1=(Reference,Lcom/twocloo/com/cn/common/JavaScript;); a=0;// invoke-static {v1}, Lcom/twocloo/com/cn/common/JavaScript;->access$0(Lcom/twocloo/com/cn/common/JavaScript;)Landroid/app/Activity; a=0;// a=0;// move-result-object v1 a=0;// a=0;// iget-object v2, p0, Lcom/twocloo/com/cn/common/JavaScript$3;->val$type:Ljava/lang/String; a=0;// a=0;// #v2=(Reference,Ljava/lang/String;); a=0;// iget-object v3, p0, Lcom/twocloo/com/cn/common/JavaScript$3;->this$0:Lcom/twocloo/com/cn/common/JavaScript; a=0;// a=0;// #v3=(Reference,Lcom/twocloo/com/cn/common/JavaScript;); a=0;// invoke-static {v3}, Lcom/twocloo/com/cn/common/JavaScript;->access$3(Lcom/twocloo/com/cn/common/JavaScript;)Lcom/twocloo/com/cn/singlebook/DataCallBack; a=0;// a=0;// move-result-object v3 a=0;// a=0;// invoke-direct {v0, v1, v2, v3}, Lcom/twocloo/com/cn/task/BaoyueTask;-><init>(Landroid/app/Activity;Ljava/lang/String;Lcom/twocloo/com/cn/singlebook/DataCallBack;)V a=0;// a=0;// #v0=(Reference,Lcom/twocloo/com/cn/task/BaoyueTask;); a=0;// const/4 v1, 0x0 a=0;// a=0;// #v1=(Null); a=0;// new-array v1, v1, [Ljava/lang/Void; a=0;// a=0;// #v1=(Reference,[Ljava/lang/Void;); a=0;// invoke-virtual {v0, v1}, Lcom/twocloo/com/cn/task/BaoyueTask;->execute([Ljava/lang/Object;)V a=0;// a=0;// .line 630 a=0;// return-void a=0;// .end method }}
[ "zhenbao.zhou@qunar.com" ]
zhenbao.zhou@qunar.com
7ab031fdda702c33da98d12e806301120fdd42ff
9085cd89ca761e4d988ac78713968ff042cb504a
/springboot_demo_3/src/main/java/com/jt/SpringbootDemo3Application.java
fc322713b8ce4a17e1292e45a9f001a4818af7f3
[]
no_license
heyunfei-yunfei/cgb2102spring
5e68a2ae6c816bfe727d9fd9c684557f757b2c2a
1ae2a67ebfee5833594c239381e893eead5b11b4
refs/heads/master
2023-04-28T09:11:03.897278
2021-05-22T09:26:39
2021-05-22T09:26:39
367,351,438
0
0
null
null
null
null
UTF-8
Java
false
false
330
java
package com.jt; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class SpringbootDemo3Application { public static void main(String[] args) { SpringApplication.run(SpringbootDemo3Application.class, args); } }
[ "adohit@163.com" ]
adohit@163.com
df89eaf6824a8284aeb77ef8a8572cab5ca13151
4474fc8deca2f61bfdd0b72f7ece9af552066542
/core/src/main/java/sting/Named.java
4edf67ed73f08748d6aab4c9e08c912f8cd40ed2
[ "Apache-2.0" ]
permissive
sting-ioc/sting
04c56dd81029dc20e401be2954e1ec4a55f03024
93044620ba091d057381d9e84e34ed9bf3b8afab
refs/heads/master
2023-01-29T04:27:51.599556
2023-01-25T23:53:45
2023-01-25T23:53:45
229,869,608
6
0
Apache-2.0
2023-01-25T23:53:46
2019-12-24T04:25:21
Java
UTF-8
Java
false
false
720
java
package sting; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import javax.annotation.Nonnull; /** * Qualify a service with a name. */ @Documented @Retention( RetentionPolicy.RUNTIME ) @Target( { ElementType.PARAMETER, ElementType.METHOD, ElementType.TYPE } ) public @interface Named { /** * An opaque string that qualifies the service. * The string is user-supplied and used to distinguish two different services with the same type * but different semantics. * * @return an opaque qualifier string or name. */ @Nonnull String value(); }
[ "peter@realityforge.org" ]
peter@realityforge.org
0e4e62785a7959a757483d967574b8f331ed3ab7
6c28eca2c33a275fb0008a51b8e5776a82f5904d
/Code/Hierarchy_Translator_Sandbox/src/net/unconventionalthinking/hierarchy/grammar/node/ASwitchBlock.java
c06c5ecf847e86498dd3c3a53d69ac618a33d97d
[]
no_license
UnconventionalThinking/hierarchy
17dc9e224595f13702b9763829e12fbce2c48cfe
de8590a29c19202c01d1a6e62ca92e91aa9fc6ab
refs/heads/master
2021-01-19T21:28:29.793371
2014-12-19T03:16:24
2014-12-19T03:16:24
13,262,291
0
1
null
null
null
null
UTF-8
Java
false
false
6,381
java
/* Copyright 2012, 2013 Unconventional Thinking * * This file is part of Hierarchy. * * Hierarchy 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. * * Hierarchy 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 Hierarchy. * If not, see <http://www.gnu.org/licenses/>. */ /* This file was generated by SableCC (http://www.sablecc.org/). */ package net.unconventionalthinking.hierarchy.grammar.node; import java.util.*; import net.unconventionalthinking.hierarchy.grammar.analysis.*; @SuppressWarnings("nls") public final class ASwitchBlock extends PSwitchBlock { private TLBrc _lBrc_; private final LinkedList<PSwitchBlockStatementGroup> _switchBlockStatementGroups_ = new LinkedList<PSwitchBlockStatementGroup>(); private final LinkedList<PSwitchLabel> _switchLabels_ = new LinkedList<PSwitchLabel>(); private TRBrc _rBrc_; public ASwitchBlock() { // Constructor } public ASwitchBlock( @SuppressWarnings("hiding") TLBrc _lBrc_, @SuppressWarnings("hiding") List<PSwitchBlockStatementGroup> _switchBlockStatementGroups_, @SuppressWarnings("hiding") List<PSwitchLabel> _switchLabels_, @SuppressWarnings("hiding") TRBrc _rBrc_) { // Constructor setLBrc(_lBrc_); setSwitchBlockStatementGroups(_switchBlockStatementGroups_); setSwitchLabels(_switchLabels_); setRBrc(_rBrc_); } @Override public Object clone() { return new ASwitchBlock( cloneNode(this._lBrc_), cloneList(this._switchBlockStatementGroups_), cloneList(this._switchLabels_), cloneNode(this._rBrc_)); } public void apply(Switch sw) { ((Analysis) sw).caseASwitchBlock(this); } public TLBrc getLBrc() { return this._lBrc_; } public void setLBrc(TLBrc node) { if(this._lBrc_ != null) { this._lBrc_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._lBrc_ = node; } public LinkedList<PSwitchBlockStatementGroup> getSwitchBlockStatementGroups() { return this._switchBlockStatementGroups_; } public void setSwitchBlockStatementGroups(List<PSwitchBlockStatementGroup> list) { this._switchBlockStatementGroups_.clear(); this._switchBlockStatementGroups_.addAll(list); for(PSwitchBlockStatementGroup e : list) { if(e.parent() != null) { e.parent().removeChild(e); } e.parent(this); } } public LinkedList<PSwitchLabel> getSwitchLabels() { return this._switchLabels_; } public void setSwitchLabels(List<PSwitchLabel> list) { this._switchLabels_.clear(); this._switchLabels_.addAll(list); for(PSwitchLabel e : list) { if(e.parent() != null) { e.parent().removeChild(e); } e.parent(this); } } public TRBrc getRBrc() { return this._rBrc_; } public void setRBrc(TRBrc node) { if(this._rBrc_ != null) { this._rBrc_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._rBrc_ = node; } @Override public String toString() { return "" + toString(this._lBrc_) + toString(this._switchBlockStatementGroups_) + toString(this._switchLabels_) + toString(this._rBrc_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._lBrc_ == child) { this._lBrc_ = null; return; } if(this._switchBlockStatementGroups_.remove(child)) { return; } if(this._switchLabels_.remove(child)) { return; } if(this._rBrc_ == child) { this._rBrc_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._lBrc_ == oldChild) { setLBrc((TLBrc) newChild); return; } for(ListIterator<PSwitchBlockStatementGroup> i = this._switchBlockStatementGroups_.listIterator(); i.hasNext();) { if(i.next() == oldChild) { if(newChild != null) { i.set((PSwitchBlockStatementGroup) newChild); newChild.parent(this); oldChild.parent(null); return; } i.remove(); oldChild.parent(null); return; } } for(ListIterator<PSwitchLabel> i = this._switchLabels_.listIterator(); i.hasNext();) { if(i.next() == oldChild) { if(newChild != null) { i.set((PSwitchLabel) newChild); newChild.parent(this); oldChild.parent(null); return; } i.remove(); oldChild.parent(null); return; } } if(this._rBrc_ == oldChild) { setRBrc((TRBrc) newChild); return; } throw new RuntimeException("Not a child."); } }
[ "github@unconventionalthinking.com" ]
github@unconventionalthinking.com
ce90300bf643adf6c9bdde9bcac60b6f26289a18
0e2ec098ee4a1ff4516d1757884645013a09b85d
/scheduler/admin/src/main/java/store/tacomall/scheduleradmin/SchedulerAdminApplication.java
977c8ea7c44665c9f00f826edefe5ca4a8da8089
[ "Apache-2.0" ]
permissive
duan001/tacomall-springcloud
8b27f74d465772d12da86d142e61abe3eef13eb9
840b10a5e3f8597a641fa70601837d22de6812f2
refs/heads/master
2023-02-05T05:48:55.013993
2020-12-24T10:15:57
2020-12-24T10:16:11
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,121
java
/*** * @Author: 码上talk|RC * @Date: 2020-06-09 23:20:09 * @LastEditTime: 2020-11-11 14:20:14 * @LastEditors: 码上talk|RC * @Description: * @FilePath: /tacomall-springcloud/scheduler/admin/src/main/java/store/tacomall/scheduleradmin/SchedulerAdminApplication.java * @微信: 13680065830 * @邮箱: 3189482282@qq.com * @oops: Just do what I think it is right */ package store.tacomall.scheduleradmin; import org.springframework.boot.Banner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.transaction.annotation.EnableTransactionManagement; /** * Job Admin * * @author jobob * @since 2019-05-31 */ @EnableTransactionManagement @SpringBootApplication @EnableDiscoveryClient public class SchedulerAdminApplication { public static void main(String[] args) { SpringApplication application = new SpringApplication(SchedulerAdminApplication.class); application.setBannerMode(Banner.Mode.CONSOLE); application.run(args); } }
[ "3189482282@qq.com" ]
3189482282@qq.com
849fba787a4e119bfa2f9b10fe36785d710521f3
c539342980a3de9a3ef434c7dfdb75628de7d833
/app/src/main/java/com/jlgproject/fragment/PicT_The_Answer.java
96dea717a6302acf460519c085849f943caddc7a
[]
no_license
sunbeibei111466/zhaiyunduan5
857a66c0270d677636536fef323ea244e9aeadf8
a30ddfc35a9b3cb5fd977c52197a89c2e8cb9499
refs/heads/master
2021-06-27T05:09:43.383376
2017-09-18T01:59:14
2017-09-18T01:59:14
103,879,159
0
0
null
null
null
null
UTF-8
Java
false
false
5,253
java
package com.jlgproject.fragment; import android.content.Context; import android.os.Handler; import android.view.View; import com.handmark.pulltorefresh.library.PullToRefreshBase; import com.handmark.pulltorefresh.library.PullToRefreshListView; import com.jlgproject.R; import com.jlgproject.adapter.DebtManerAdapter; import com.jlgproject.adapter.DebtManerSearchAdapter; import com.jlgproject.adapter.Pic_Text_Adapter; import com.jlgproject.adapter.The_Answer_Adapter; import com.jlgproject.base.BaseFragment; import com.jlgproject.http.AddHeaders; import com.jlgproject.http.BaseUrl; import com.jlgproject.http.GetParmars; import com.jlgproject.http.HttpMessageInfo; import com.jlgproject.http.OkHttpUtils; import com.jlgproject.model.AnswerMode; import com.jlgproject.model.Debts_Manger; import com.jlgproject.model.Pic_Text_Bean; import com.jlgproject.util.L; import com.jlgproject.util.NetUtils; import com.jlgproject.util.ToastUtil; import com.jlgproject.util.UserInfoState; import java.io.IOException; import java.util.IllegalFormatCodePointException; import java.util.List; import okhttp3.Call; /** * 答疑解惑列表 */ public class PicT_The_Answer extends BaseFragment implements View.OnClickListener, HttpMessageInfo.IMessage, PullToRefreshBase.OnRefreshListener2 { private int pn = 1; private int ps = 8; // 1.设置几个状态码方便我们进行状态的判断 private static final int NORMAL = 1; //2.是刷新的状态 private static final int REFRESH = 2; //3.上啦刷新加载更多 private static final int LOADMORE = 3; private int status = 1; private PullToRefreshListView listView; private The_Answer_Adapter answer_adapter; private List<AnswerMode.DataBean.ItemsBean> items; @Override public int getLoadViewId() { return R.layout.pic_the_answer; } @Override public void initDatas() { super.initDatas(); } @Override public View initView(View view) { listView = (PullToRefreshListView) view.findViewById(R.id.listview); listView.setOnRefreshListener(this); listView.setMode(PullToRefreshBase.Mode.BOTH); return view; } @Override public void onResume() { super.onResume(); status = NORMAL; requestTheAnswer(); } private void requestTheAnswer() { if (ShowDrawDialog(getActivity())) { HttpMessageInfo<AnswerMode> info = new HttpMessageInfo<>(BaseUrl.DYJH_LIST, new AnswerMode()); info.setiMessage(this); AddHeaders headers = new AddHeaders(); headers.add("Authorization", UserInfoState.getToken()); GetParmars parmars = new GetParmars(); parmars.add("pn", pn); parmars.add("ps", ps); OkHttpUtils.getInstance().getServiceMassage(OkHttpUtils.TYPE_GET, info, parmars, headers, 1); } } @Override public void onClick(View v) { } //抽取显示数据的方法; private void displayData(AnswerMode data) { if (status == NORMAL) { items = data.getData().getItems(); answer_adapter = new The_Answer_Adapter(getActivity(),items); listView.setAdapter(answer_adapter); } else if (status == REFRESH) { items.clear(); items = data.getData().getItems(); if (items != null) { answer_adapter.setItems(items); answer_adapter.notifyDataSetChanged(); } else { ToastUtil.showShort(getActivity(), "暂无数据"); } } else if (status == LOADMORE) { int size = items.size(); if (size != 0) { List<AnswerMode.DataBean.ItemsBean> items1 = data.getData().getItems(); items.addAll(items1); answer_adapter.setItems(items); answer_adapter.notifyDataSetChanged(); L.e("-----备案--2--"); } else { ToastUtil.showShort(getActivity(), "暂无数据"); } } } @Override public void getServiceData(Object o) { if (o instanceof AnswerMode) { AnswerMode data = (AnswerMode) o; if (data != null) { DismissDialog(); listView.onRefreshComplete(); if (data.getState().equals("ok")) { displayData(data); } else { ToastUtil.showShort(getActivity(), data.getMessage()); } } } } @Override public void getErrorData(Call call, IOException e) { listView.onRefreshComplete(); DismissDialog(); ToastUtil.showShort(getActivity(), "服务器繁忙,请稍后再试"); } @Override public void onPullDownToRefresh(PullToRefreshBase refreshView) { status = REFRESH; pn = 1; requestTheAnswer(); } @Override public void onPullUpToRefresh(PullToRefreshBase refreshView) { status = LOADMORE; pn = pn + 1; requestTheAnswer(); } @Override public void onDestroy() { super.onDestroy(); pn = 1; ps = 8; } }
[ "930184501@qq.com" ]
930184501@qq.com
059e36a41cff4c3486b25dbc7440ce7f9328fa7f
882e77219bce59ae57cbad7e9606507b34eebfcf
/mi2s_securitycenter_miui12/src/main/java/com/miui/gamebooster/m/da.java
fb157882a9905d75d9c10c64e1b5b843cd55b517
[]
no_license
CrackerCat/XiaomiFramework
17a12c1752296fa1a52f61b83ecf165f328f4523
0b7952df317dac02ebd1feea7507afb789cef2e3
refs/heads/master
2022-06-12T03:30:33.285593
2020-05-06T11:30:54
2020-05-06T11:30:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,892
java
package com.miui.gamebooster.m; import java.util.ArrayList; public class da { /* renamed from: a reason: collision with root package name */ private static final String f4479a = "com.miui.gamebooster.m.da"; /* renamed from: b reason: collision with root package name */ private static ArrayList<Integer> f4480b = new ArrayList<>(3); /* renamed from: c reason: collision with root package name */ private static int f4481c = 0; /* renamed from: d reason: collision with root package name */ public static boolean f4482d = true; public static final String a() { f4481c++; float c2 = (float) c(); float b2 = (float) b(); try { Thread.sleep(1000); } catch (Exception unused) { } float b3 = (float) b(); float c3 = ((float) c()) - c2; float f = 0.0f; if ((c3 <= 0.0f || b3 - b2 <= 0.0f) && f4481c <= 3) { return a(); } float f2 = ((c3 - (b3 - b2)) * 100.0f) / c3; if (f2 >= 0.0f) { f = f2; } if (f >= 100.0f) { f = 99.0f; } f4481c = 0; return String.valueOf(Math.abs((int) f)); } /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r0v2, resolved type: java.lang.Object[]} */ /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r0v3, resolved type: java.lang.String} */ /* JADX WARNING: type inference failed for: r0v0 */ /* JADX WARNING: type inference failed for: r0v1, types: [java.io.Reader] */ /* JADX WARNING: type inference failed for: r0v6 */ /* JADX WARNING: type inference failed for: r0v8 */ /* JADX WARNING: Multi-variable type inference failed */ /* Code decompiled incorrectly, please refer to instructions dump. */ public static long b() { /* r0 = 0 java.io.BufferedReader r1 = new java.io.BufferedReader // Catch:{ IOException -> 0x0023, all -> 0x0021 } java.io.InputStreamReader r2 = new java.io.InputStreamReader // Catch:{ IOException -> 0x0023, all -> 0x0021 } java.io.FileInputStream r3 = new java.io.FileInputStream // Catch:{ IOException -> 0x0023, all -> 0x0021 } java.lang.String r4 = "/proc/stat" r3.<init>(r4) // Catch:{ IOException -> 0x0023, all -> 0x0021 } r2.<init>(r3) // Catch:{ IOException -> 0x0023, all -> 0x0021 } r3 = 1000(0x3e8, float:1.401E-42) r1.<init>(r2, r3) // Catch:{ IOException -> 0x0023, all -> 0x0021 } java.lang.String r2 = r1.readLine() // Catch:{ IOException -> 0x001f } java.lang.String r3 = " " java.lang.String[] r0 = r2.split(r3) // Catch:{ IOException -> 0x001f } goto L_0x002e L_0x001f: r2 = move-exception goto L_0x0025 L_0x0021: r1 = move-exception goto L_0x003d L_0x0023: r2 = move-exception r1 = r0 L_0x0025: java.lang.String r3 = f4479a // Catch:{ all -> 0x0039 } java.lang.String r2 = r2.toString() // Catch:{ all -> 0x0039 } android.util.Log.e(r3, r2) // Catch:{ all -> 0x0039 } L_0x002e: miui.util.IOUtils.closeQuietly(r1) r1 = 5 r0 = r0[r1] long r0 = java.lang.Long.parseLong(r0) return r0 L_0x0039: r0 = move-exception r5 = r1 r1 = r0 r0 = r5 L_0x003d: miui.util.IOUtils.closeQuietly(r0) throw r1 */ throw new UnsupportedOperationException("Method not decompiled: com.miui.gamebooster.m.da.b():long"); } /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r0v2, resolved type: java.lang.Object[]} */ /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r1v3, resolved type: java.lang.String} */ /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r3v1, resolved type: java.lang.String} */ /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r3v4, resolved type: java.lang.String} */ /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r3v7, resolved type: java.lang.String} */ /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r3v10, resolved type: java.lang.String} */ /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r3v13, resolved type: java.lang.String} */ /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r0v3, resolved type: java.lang.String} */ /* JADX WARNING: type inference failed for: r0v0 */ /* JADX WARNING: type inference failed for: r0v1, types: [java.io.Reader] */ /* JADX WARNING: type inference failed for: r0v5 */ /* JADX WARNING: type inference failed for: r0v7 */ /* JADX WARNING: Multi-variable type inference failed */ /* Code decompiled incorrectly, please refer to instructions dump. */ public static long c() { /* r0 = 0 java.io.BufferedReader r1 = new java.io.BufferedReader // Catch:{ IOException -> 0x0023, all -> 0x0021 } java.io.InputStreamReader r2 = new java.io.InputStreamReader // Catch:{ IOException -> 0x0023, all -> 0x0021 } java.io.FileInputStream r3 = new java.io.FileInputStream // Catch:{ IOException -> 0x0023, all -> 0x0021 } java.lang.String r4 = "/proc/stat" r3.<init>(r4) // Catch:{ IOException -> 0x0023, all -> 0x0021 } r2.<init>(r3) // Catch:{ IOException -> 0x0023, all -> 0x0021 } r3 = 1000(0x3e8, float:1.401E-42) r1.<init>(r2, r3) // Catch:{ IOException -> 0x0023, all -> 0x0021 } java.lang.String r2 = r1.readLine() // Catch:{ IOException -> 0x001f } java.lang.String r3 = " " java.lang.String[] r0 = r2.split(r3) // Catch:{ IOException -> 0x001f } goto L_0x002e L_0x001f: r2 = move-exception goto L_0x0025 L_0x0021: r1 = move-exception goto L_0x006e L_0x0023: r2 = move-exception r1 = r0 L_0x0025: java.lang.String r3 = f4479a // Catch:{ all -> 0x006a } java.lang.String r2 = r2.toString() // Catch:{ all -> 0x006a } android.util.Log.e(r3, r2) // Catch:{ all -> 0x006a } L_0x002e: miui.util.IOUtils.closeQuietly(r1) r1 = 2 r1 = r0[r1] long r1 = java.lang.Long.parseLong(r1) r3 = 3 r3 = r0[r3] long r3 = java.lang.Long.parseLong(r3) long r1 = r1 + r3 r3 = 4 r3 = r0[r3] long r3 = java.lang.Long.parseLong(r3) long r1 = r1 + r3 r3 = 6 r3 = r0[r3] long r3 = java.lang.Long.parseLong(r3) long r1 = r1 + r3 r3 = 5 r3 = r0[r3] long r3 = java.lang.Long.parseLong(r3) long r1 = r1 + r3 r3 = 7 r3 = r0[r3] long r3 = java.lang.Long.parseLong(r3) long r1 = r1 + r3 r3 = 8 r0 = r0[r3] long r3 = java.lang.Long.parseLong(r0) long r1 = r1 + r3 return r1 L_0x006a: r0 = move-exception r5 = r1 r1 = r0 r0 = r5 L_0x006e: miui.util.IOUtils.closeQuietly(r0) throw r1 */ throw new UnsupportedOperationException("Method not decompiled: com.miui.gamebooster.m.da.c():long"); } }
[ "sanbo.xyz@gmail.com" ]
sanbo.xyz@gmail.com
46625df15b603e21a15702566dccf43dd0d355b3
82d29a0874c1edf7e09766ef933202c83cc19212
/src/main/java/cn/edu/seu/itbook/designpatterns/iterator/dinermergercafe/MenuItem.java
b75b691a20709d317a40a3506cc87716b4c2301f
[ "MIT" ]
permissive
personajian/newer-coder
7153c15ebf99ca01cb682b7d3e463c8b93a1060c
28289f2075f576209cf968fb2b2c01a2f8ad94cd
refs/heads/main
2023-04-26T10:54:24.706062
2021-05-19T13:07:16
2021-05-19T13:07:16
335,164,427
0
0
null
null
null
null
UTF-8
Java
false
false
640
java
package cn.edu.seu.itbook.designpatterns.iterator.dinermergercafe; public class MenuItem { String name; String description; boolean vegetarian; double price; public MenuItem(String name, String description, boolean vegetarian, double price) { this.name = name; this.description = description; this.vegetarian = vegetarian; this.price = price; } public String getName() { return name; } public String getDescription() { return description; } public double getPrice() { return price; } public boolean isVegetarian() { return vegetarian; } }
[ "swordcheng@tencent.com" ]
swordcheng@tencent.com
a5ddabda6967d67b947ed4f5849b6f01f8343d66
7559bead0c8a6ad16f016094ea821a62df31348a
/src/com/vmware/vim25/LicenseFeatureInfo.java
25a897ec86c54d03eb0f6484890d36315746f6f2
[]
no_license
ZhaoxuepengS/VsphereTest
09ba2af6f0a02d673feb9579daf14e82b7317c36
59ddb972ce666534bf58d84322d8547ad3493b6e
refs/heads/master
2021-07-21T13:03:32.346381
2017-11-01T12:30:18
2017-11-01T12:30:18
109,128,993
1
1
null
null
null
null
UTF-8
Java
false
false
7,252
java
package com.vmware.vim25; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.datatype.XMLGregorianCalendar; /** * <p>Java class for LicenseFeatureInfo complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="LicenseFeatureInfo"> * &lt;complexContent> * &lt;extension base="{urn:vim25}DynamicData"> * &lt;sequence> * &lt;element name="key" type="{http://www.w3.org/2001/XMLSchema}string"/> * &lt;element name="featureName" type="{http://www.w3.org/2001/XMLSchema}string"/> * &lt;element name="featureDescription" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * &lt;element name="state" type="{urn:vim25}LicenseFeatureInfoState" minOccurs="0"/> * &lt;element name="costUnit" type="{http://www.w3.org/2001/XMLSchema}string"/> * &lt;element name="sourceRestriction" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * &lt;element name="dependentKey" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> * &lt;element name="edition" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> * &lt;element name="expiresOn" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/> * &lt;/sequence> * &lt;/extension> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "LicenseFeatureInfo", propOrder = { "key", "featureName", "featureDescription", "state", "costUnit", "sourceRestriction", "dependentKey", "edition", "expiresOn" }) public class LicenseFeatureInfo extends DynamicData { @XmlElement(required = true) protected String key; @XmlElement(required = true) protected String featureName; protected String featureDescription; protected LicenseFeatureInfoState state; @XmlElement(required = true) protected String costUnit; protected String sourceRestriction; protected List<String> dependentKey; protected Boolean edition; @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar expiresOn; /** * Gets the value of the key property. * * @return * possible object is * {@link String } * */ public String getKey() { return key; } /** * Sets the value of the key property. * * @param value * allowed object is * {@link String } * */ public void setKey(String value) { this.key = value; } /** * Gets the value of the featureName property. * * @return * possible object is * {@link String } * */ public String getFeatureName() { return featureName; } /** * Sets the value of the featureName property. * * @param value * allowed object is * {@link String } * */ public void setFeatureName(String value) { this.featureName = value; } /** * Gets the value of the featureDescription property. * * @return * possible object is * {@link String } * */ public String getFeatureDescription() { return featureDescription; } /** * Sets the value of the featureDescription property. * * @param value * allowed object is * {@link String } * */ public void setFeatureDescription(String value) { this.featureDescription = value; } /** * Gets the value of the state property. * * @return * possible object is * {@link LicenseFeatureInfoState } * */ public LicenseFeatureInfoState getState() { return state; } /** * Sets the value of the state property. * * @param value * allowed object is * {@link LicenseFeatureInfoState } * */ public void setState(LicenseFeatureInfoState value) { this.state = value; } /** * Gets the value of the costUnit property. * * @return * possible object is * {@link String } * */ public String getCostUnit() { return costUnit; } /** * Sets the value of the costUnit property. * * @param value * allowed object is * {@link String } * */ public void setCostUnit(String value) { this.costUnit = value; } /** * Gets the value of the sourceRestriction property. * * @return * possible object is * {@link String } * */ public String getSourceRestriction() { return sourceRestriction; } /** * Sets the value of the sourceRestriction property. * * @param value * allowed object is * {@link String } * */ public void setSourceRestriction(String value) { this.sourceRestriction = value; } /** * Gets the value of the dependentKey property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the dependentKey property. * * <p> * For example, to add a new item, do as follows: * <pre> * getDependentKey().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getDependentKey() { if (dependentKey == null) { dependentKey = new ArrayList<String>(); } return this.dependentKey; } /** * Gets the value of the edition property. * * @return * possible object is * {@link Boolean } * */ public Boolean isEdition() { return edition; } /** * Sets the value of the edition property. * * @param value * allowed object is * {@link Boolean } * */ public void setEdition(Boolean value) { this.edition = value; } /** * Gets the value of the expiresOn property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getExpiresOn() { return expiresOn; } /** * Sets the value of the expiresOn property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setExpiresOn(XMLGregorianCalendar value) { this.expiresOn = value; } }
[ "495149700@qq.com" ]
495149700@qq.com
447125f55c5be1e8d67d6d8c9b2695e8f5dffe57
bbe34278f3ed99948588984c431e38a27ad34608
/sources/org/apache/commons/lang3/text/translate/JavaUnicodeEscaper.java
3c5ebf2da70aa45cd40a6ed360eec6bddfef6201
[]
no_license
sapardo10/parcial-pruebas
7af500f80699697ab9b9291388541c794c281957
938a0ceddfc8e0e967a1c7264e08cd9d1fe192f0
refs/heads/master
2020-04-28T02:07:08.766181
2019-03-10T21:51:36
2019-03-10T21:51:36
174,885,553
0
0
null
null
null
null
UTF-8
Java
false
false
1,245
java
package org.apache.commons.lang3.text.translate; @Deprecated public class JavaUnicodeEscaper extends UnicodeEscaper { public static JavaUnicodeEscaper above(int codepoint) { return outsideOf(0, codepoint); } public static JavaUnicodeEscaper below(int codepoint) { return outsideOf(codepoint, Integer.MAX_VALUE); } public static JavaUnicodeEscaper between(int codepointLow, int codepointHigh) { return new JavaUnicodeEscaper(codepointLow, codepointHigh, true); } public static JavaUnicodeEscaper outsideOf(int codepointLow, int codepointHigh) { return new JavaUnicodeEscaper(codepointLow, codepointHigh, false); } public JavaUnicodeEscaper(int below, int above, boolean between) { super(below, above, between); } protected String toUtf16Escape(int codepoint) { char[] surrogatePair = Character.toChars(codepoint); StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("\\u"); stringBuilder.append(CharSequenceTranslator.hex(surrogatePair[0])); stringBuilder.append("\\u"); stringBuilder.append(CharSequenceTranslator.hex(surrogatePair[1])); return stringBuilder.toString(); } }
[ "sa.pardo10@uniandes.edu.co" ]
sa.pardo10@uniandes.edu.co
4da08a3789aaf1b80bb202076c90618d02d51121
d0536669bb37019e766766461032003ad045665b
/jdk1.4.2_src/org/omg/PortableServer/POAManagerPackage/AdapterInactive.java
8efe955d60206100f67ea10793d1a5024c12f816
[]
no_license
eagle518/jdk-source-code
c0d60f0762bce0221c7eeb1654aa1a53a3877313
91b771140de051fb843af246ab826dd6ff688fe3
refs/heads/master
2021-01-18T19:51:07.988541
2010-09-09T06:36:02
2010-09-09T06:36:02
38,047,470
11
23
null
null
null
null
UTF-8
Java
false
false
625
java
package org.omg.PortableServer.POAManagerPackage; /** * org/omg/PortableServer/POAManagerPackage/AdapterInactive.java . * Generated by the IDL-to-Java compiler (portable), version "3.1" * from ../../../../src/share/classes/org/omg/PortableServer/poa.idl * Friday, June 20, 2003 8:34:37 AM GMT */ public final class AdapterInactive extends org.omg.CORBA.UserException { public AdapterInactive () { super(AdapterInactiveHelper.id()); } // ctor public AdapterInactive (String $reason) { super(AdapterInactiveHelper.id() + " " + $reason); } // ctor } // class AdapterInactive
[ "kzhaicn@e8197d6f-d431-fb3f-3203-916d138821fd" ]
kzhaicn@e8197d6f-d431-fb3f-3203-916d138821fd
466d5e99aaa01fd8af727a24c2931d09ea1f1a53
8747fd4102f67ea9b49b0b409ebb46692bc80588
/Banner-master/lib_banner/src/main/java/com/demons/banner/transformers/FlipPageTransformer.java
433541dfbf4b698e01f6d2612216574ff92aa9b9
[]
no_license
demoned/Banner-
889e41680c3c5c3bcf3c21c1336abdf7dc71e47c
996f194a17cb5ed17b0a867e711c6a0944032770
refs/heads/main
2023-07-16T05:58:05.908176
2021-08-17T11:23:44
2021-08-17T11:23:44
386,551,593
0
0
null
null
null
null
UTF-8
Java
false
false
1,025
java
package com.demons.banner.transformers; import android.view.View; public class FlipPageTransformer extends BasePageTransformer { private static final float ROTATION = 180.0f; @Override public void handleInvisiblePage(View view, float position) { } @Override public void handleLeftPage(View view, float position) { view.setTranslationX(-view.getWidth() * position); float rotation = (ROTATION * position); view.setRotationY(rotation); if (position > -0.5) { view.setVisibility(View.VISIBLE); } else { view.setVisibility(View.INVISIBLE); } } @Override public void handleRightPage(View view, float position) { view.setTranslationX(-view.getWidth() * position); float rotation = (ROTATION * position); view.setRotationY(rotation); if (position < 0.5) { view.setVisibility(View.VISIBLE); } else { view.setVisibility(View.INVISIBLE); } } }
[ "atl1314@qq.com" ]
atl1314@qq.com
b168a78f4090e2dc9a1cc4917190f180c2e574e6
2bd96755d49df6c8add09a5765df123161aaaf04
/epragati-reg-vo/src/main/java/org/epragati/service/enclosure/vo/EnclosuresVOLog.java
34e31f7047883498ccb3ddee80e47951f3c6e25c
[]
no_license
otkp/28-reg-vo
7093b1f30e49bd8e51028fcc3b6347234ee7e66a
0fabc01db363e20ac40facfa9492d6ef804c36cd
refs/heads/master
2022-12-30T04:07:07.308541
2020-10-16T10:53:59
2020-10-16T10:53:59
304,599,461
0
0
null
null
null
null
UTF-8
Java
false
false
1,150
java
package org.epragati.service.enclosure.vo; import java.time.LocalDateTime; import java.util.List; import org.epragati.constants.EnclosureType; import org.epragati.util.document.KeyValue; public class EnclosuresVOLog { private LocalDateTime createDate; private List<KeyValue<EnclosureType, List<ImageVO>>> enclosures; private String reason; /** * @return the createDate */ public LocalDateTime getCreateDate() { return createDate; } /** * @param createDate * the createDate to set */ public void setCreateDate(LocalDateTime createDate) { this.createDate = createDate; } /** * @return the enclosures */ public List<KeyValue<EnclosureType, List<ImageVO>>> getEnclosures() { return enclosures; } /** * @param enclosures * the enclosures to set */ public void setEnclosures(List<KeyValue<EnclosureType, List<ImageVO>>> enclosures) { this.enclosures = enclosures; } /** * @return the reason */ public String getReason() { return reason; } /** * @param reason * the reason to set */ public void setReason(String reason) { this.reason = reason; } }
[ "8186067656kpsr@gmail.com" ]
8186067656kpsr@gmail.com
721a5e94e3eebc5958a9472f88d71b41d0d70dac
05b3e5ad846c91bbfde097c32d5024dced19aa1d
/SpringProgramming/src/main/java/com/mycompany/myapp/exam10/ServiceImpl2.java
b8129795f62886db7a23331b02836aa7f095efb5
[]
no_license
yjs0511/MyRepository
4c2b256cb8ac34869cce8dfe2b1d2ab163b0e5ec
63bbf1f607f9d91374649bb7cacdf532b52e613b
refs/heads/master
2020-04-12T03:05:29.993060
2016-11-17T04:34:51
2016-11-17T04:34:51
65,808,570
0
0
null
null
null
null
UTF-8
Java
false
false
547
java
package com.mycompany.myapp.exam10; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; @Component // 같은 인터페이스를 구현한 객체가 두개가 있다면 무엇을 주입할지 판단할 수 없다 public class ServiceImpl2 implements Service{ private static final Logger logger = LoggerFactory.getLogger(ServiceImpl2.class); public ServiceImpl2(){ logger.info("ServiceImpl2 객체 생성"); } @Override public void method() { logger.info("method 실행"); } }
[ "hypermega22@gmail.com" ]
hypermega22@gmail.com
607858b3800aeb8bf7822d8c31633c218b3b8f63
e23e13d0ec8056289931c412af7a34052f320729
/src/main/java/WayofTime/bloodmagic/network/PlayerVelocityPacketProcessor.java
d2a1c13f54c43ded3fb286bc0a1b8ce4d4854838
[ "CC-BY-4.0" ]
permissive
mezz/BloodMagic
0bc58809fab3019156f59c740918738cf5b18a05
02286c34c1a44d1f00fbd51e8e179a39eb818e94
refs/heads/1.9
2021-06-04T08:08:36.256630
2016-09-26T07:09:48
2016-09-26T07:09:48
69,223,023
1
0
null
2016-09-26T07:10:04
2016-09-26T07:10:03
null
UTF-8
Java
false
false
1,919
java
package WayofTime.bloodmagic.network; import io.netty.buffer.ByteBuf; import net.minecraft.client.Minecraft; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.network.PacketBuffer; import net.minecraftforge.fml.common.network.simpleimpl.IMessage; import net.minecraftforge.fml.common.network.simpleimpl.IMessageHandler; import net.minecraftforge.fml.common.network.simpleimpl.MessageContext; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class PlayerVelocityPacketProcessor implements IMessage, IMessageHandler<PlayerVelocityPacketProcessor, IMessage> { private double motionX; private double motionY; private double motionZ; public PlayerVelocityPacketProcessor() { } public PlayerVelocityPacketProcessor(double motionX, double motionY, double motionZ) { this.motionX = motionX; this.motionY = motionY; this.motionZ = motionZ; } @Override public void fromBytes(ByteBuf buffer) { PacketBuffer buff = new PacketBuffer(buffer); motionX = buff.readDouble(); motionY = buff.readDouble(); motionZ = buff.readDouble(); } @Override public void toBytes(ByteBuf buffer) { PacketBuffer buff = new PacketBuffer(buffer); buff.writeDouble(motionX); buff.writeDouble(motionY); buff.writeDouble(motionZ); } @Override public IMessage onMessage(PlayerVelocityPacketProcessor message, MessageContext ctx) { if (ctx.side == Side.CLIENT) { message.onMessageFromServer(); } return null; } @SideOnly(Side.CLIENT) public void onMessageFromServer() { EntityPlayer player = Minecraft.getMinecraft().thePlayer; player.motionX = motionX; player.motionY = motionY; player.motionZ = motionZ; } }
[ "wtime@live.ca" ]
wtime@live.ca
a4cd8f2076d010ec6d0813022f00277ddd02da2a
079232cc8952af38105cbae03a12f027d9314e10
/faichuis-canal/src/main/java/com/faichuis/faichuismall/util/ClassUtil.java
9eb6d1d6d782f14af58cd9f65b87f541657eb8b7
[]
no_license
Faichuis/faichuis_play
8b64f730c1f40e663b2866861de9dd132ff6d4e0
90684eba68388ca3ddd336d4b8b8ee7fc38405ad
refs/heads/master
2023-07-03T07:47:09.351916
2021-08-09T13:51:26
2021-08-09T13:51:26
381,465,503
0
0
null
null
null
null
UTF-8
Java
false
false
3,612
java
package com.faichuis.faichuismall.util; import com.google.common.base.CaseFormat; import com.google.common.collect.Sets; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang.StringUtils; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.math.BigDecimal; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.*; /** * @author :杨过 * @date :Created in 2020/3/9 * @version: V1.0 * @slogan: 天下风云出我辈,一入代码岁月催 * @description: 反射工具类,根据column调用相关方法 **/ @Slf4j public class ClassUtil { private static final String SET_METHOD_PREFIX = "set"; private static final Collection<Class<?>> GENERAL_CLASS_TYPE; static { GENERAL_CLASS_TYPE = Sets.<Class<?>>newHashSet(boolean.class, Boolean.class, int.class, Integer.class, long.class, Long.class,double.class,Double.class,BigDecimal.class, Date.class,String.class); } public static String getSetterMethodName(final String columnName) { if (columnName.contains("_")) { return CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, SET_METHOD_PREFIX + "_" + columnName); } return SET_METHOD_PREFIX + String.valueOf(columnName.charAt(0)).toUpperCase() + columnName.substring(1, columnName.length()); } public static void callSetterMethod(final Object object, final String methodName, final String setterValue) { for (Class<?> each : GENERAL_CLASS_TYPE) { try { Method method = object.getClass().getMethod(methodName, each); if (boolean.class == each || Boolean.class == each) { method.invoke(object, Boolean.valueOf(setterValue)); } else if (int.class == each || Integer.class == each) { method.invoke(object, Integer.parseInt(setterValue)); } else if (long.class == each || Long.class == each) { method.invoke(object, Long.parseLong(setterValue)); } else if (double.class == each || Double.class == each) { method.invoke(object, Double.parseDouble(setterValue)); } else if (BigDecimal.class == each) { method.invoke(object, new BigDecimal(setterValue)); } else if (Date.class == each && StringUtils.isNotBlank(setterValue)) { try { SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); method.invoke(object, simpleDateFormat.parse(setterValue)); } catch (ParseException e) { // log.error("日期转换错误...!:{}",e.getMessage(),e.getCause()); //throw new RuntimeException("日期转换错误...!"); } } else { method.invoke(object, setterValue); } return; } catch (final ReflectiveOperationException ignored) { } } } /** * 获取clazz类对象以及父类对象的所有成员属性Field * @param clazz * @return */ public static Field[] getAllFields(Class<?> clazz){ List<Field> fieldList = new ArrayList<>(); while (clazz != null){ fieldList.addAll(Arrays.asList(clazz.getDeclaredFields())); clazz = clazz.getSuperclass(); } Field[] fields = new Field[fieldList.size()]; fieldList.toArray(fields); return fields; } }
[ "465766401@qq.com" ]
465766401@qq.com
c1fecfacd3c3df3eed086338f0d35043651fe339
2474744df850fd4d170a65ef78e1202aea89d8b8
/jehc-web/src/main/java/jehc/lcmodules/mxgraph/mxUtils/MxCompensationThrowingEvent.java
e0868405c2e9aebaab86b7ecdea82b6ce211809d
[]
no_license
cgb-extjs-gwt/jehc
073c98ba8d25c8cf0ffa769bf09788e01bae375b
69112cc9b79c96bb258fc472f22c946f8c5a2008
refs/heads/master
2023-04-27T08:04:06.440924
2018-08-24T08:53:24
2018-08-24T08:53:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,537
java
package jehc.lcmodules.mxgraph.mxUtils; import java.util.List; import java.util.Map; import org.dom4j.Element; import jehc.lcmodules.mxgraph.mxUtils.communal.MxUtils; /** * 补偿抛出事件 * @author 邓纯杰 * */ public class MxCompensationThrowingEvent { /** * 补偿抛出事件操作 * @param root * @param mxCellList * @param mxCell * @return */ @SuppressWarnings("unchecked") public static String compensationThrowingEvent(Element root,List mxCellList,Element mxCell){ String task_node = ""; /////////////基本属性开始///////////// String name = mxCell.attributeValue("value"); String nodeID = mxCell.attributeValue("nodeID"); /////////////基本属性结束///////////// //节点中其他基本属性 String excluded = mxCell.attributeValue("excluded"); String ruleName = mxCell.attributeValue("ruleName"); String ruleVariablesInput = mxCell.attributeValue("ruleVariablesInput"); String resultVariables = mxCell.attributeValue("resultVariables"); //获取mxCell节点下的mxGeometry节点 Element mxGeometry = mxCell.element("mxGeometry"); String x = mxGeometry.attributeValue("x"); String y = mxGeometry.attributeValue("y"); if(null == y || "".equals(y)){ y = "0"; } if(null == x || "".equals(x)){ x = "0"; } if(null != excluded && !"".equals(excluded) && "1".equals(excluded)){ excluded = " activiti:exclude='true'"; }else{ excluded=" "; } if(null != ruleName && !"".equals(ruleName)){ ruleName = " activiti:rules='"+ruleName+"'"; }else{ ruleName=" "; } if(null != ruleVariablesInput && !"".equals(ruleVariablesInput)){ ruleVariablesInput = " activiti:ruleVariablesInput='"+ruleVariablesInput+"'"; }else{ ruleVariablesInput=" "; } if(null != resultVariables && !"".equals(resultVariables)){ resultVariables = " activiti:resultVariable='"+resultVariables+"'"; }else{ resultVariables=" "; } //开区间 task_node+="<intermediateThrowEvent id='"+nodeID+"' name='"+name+"' "+MxUtils.normal(mxCell)+excluded+ruleName+ruleVariablesInput+resultVariables+">"; //****开始区间与闭区间属性 开始****// //2备注配置开始 task_node+=MxUtils.documentation(mxCell); //2备注配置结束 task_node += "<extensionElements>"; //1监听的类开始 task_node+=MxUtils.eventListenerNode(mxCell); //1监听器配置结束 task_node += "</extensionElements>"; //****开始区间与闭区间属性 结束****// //闭区间 task_node += "</intermediateThrowEvent>"; //3连线配置开始 task_node+=MxUtils.sequenceFlow(root, mxCellList, mxCell); //3连线配置结束 return task_node; } /** * 补偿抛出事件bpmndi * @param root * @param mxCellList * @param mxCell * @return */ @SuppressWarnings("unchecked") public static String compensationThrowingEventBpmndi(Element root,List mxCellList,Element mxCell){ String nodeID = mxCell.attributeValue("nodeID"); String id = mxCell.attributeValue("id"); Map<String, Object> xyMap = MxUtils.resultBoundsXY(mxCellList, mxCell); String x = xyMap.get("x").toString(); String y = xyMap.get("y").toString(); String width = xyMap.get("width").toString(); String height = xyMap.get("height").toString(); String bpmndi=""; bpmndi += "<bpmndi:BPMNShape bpmnElement='"+nodeID+"' id='BPMNShape_"+nodeID+"'>"; bpmndi += "<omgdc:Bounds height='"+height+"' width='"+width+"' x='"+x+"' y='"+y+"'></omgdc:Bounds>"; bpmndi += "</bpmndi:BPMNShape>"; //再次进行循环 目的获取连接线 for(int j = 0; j < mxCellList.size(); j++ ){ //mxCell节点 Element mxCell_agin = (Element) mxCellList.get(j); //该mxCell节点为连线节点情况 if(null != mxCell_agin.attributeValue("edge") && !"".equals(mxCell_agin.attributeValue("edge"))){ //如果第一层循环中的ID等于第二层循环中的source则说明开始节点有指向其他节点连线 String source = mxCell_agin.attributeValue("source"); if(source.equals(id)){ //此时需要取出target即目标节点ID的属性value List target_target_list = root.selectNodes("/root/mxCell[@id='"+mxCell_agin.attributeValue("target")+"']"); if(!target_target_list.isEmpty()){ //任务节点可以连接多个节点即一个任务节点可以有多条连接线 for(int l = 0; l < target_target_list.size(); l++){ Element mxCell_target = (Element)target_target_list.get(l); if("startEvent".equals(mxCell_target.attributeValue("node_type"))){ //该地方需要终止 }else{ bpmndi += "<bpmndi:BPMNEdge bpmnElement='"+mxCell_agin.attributeValue("nodeID")+"' id='BPMNEdge_"+mxCell_agin.attributeValue("nodeID")+"'>"; bpmndi += MxUtils.resultChildEdgeXy(mxCellList,mxCell_agin); bpmndi += "</bpmndi:BPMNEdge>"; } } } } } } return bpmndi; } }
[ "244831954@qq.com" ]
244831954@qq.com
b2c0b9322f2659974648c920fef380e4456efad1
d66819f578465decbe90a30f52bbf860f6822633
/src/main/java/org/thradex/rrhh/controller/ScheduleJobController.java
94628bd0ba48cec92bd1028e3263eb197d6d7f01
[]
no_license
MIJAEL888/ThradexApp2
5ece1cd331c311a58490e890a0edb41d0a0edfae
4418b8646964725d06618fdbe3b4d98dd772270c
refs/heads/master
2021-01-10T17:01:32.024868
2019-02-26T01:32:18
2019-02-26T01:32:18
48,445,915
0
0
null
null
null
null
UTF-8
Java
false
false
4,054
java
package org.thradex.rrhh.controller; import java.util.Date; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.access.annotation.Secured; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.SessionAttributes; import org.thradex.model.RhShift; import org.thradex.model.SisUser; import org.thradex.rrhh.service.PersonService; import org.thradex.rrhh.service.ScheduleJobService; import org.thradex.rrhh.service.UtilRrhhService; import org.thradex.sis.service.CurrentUserService; import org.thradex.util.ConstantsSis; @Controller @RequestMapping("/scheduleJob") @SessionAttributes({"formScheduleJob"}) public class ScheduleJobController { protected static Logger log = Logger.getLogger(ConstantsSis.LOG_CONTROLLER); @Autowired private CurrentUserService currentUserService; @Autowired private ScheduleJobService scheduleJobService; @Autowired private PersonService personService; @Autowired private UtilRrhhService utilService; @RequestMapping(value = "/getPage", method = RequestMethod.GET) public String getPage(Model model, HttpSession session, HttpServletRequest request){ log.info("/shift/getPermission + " + request.getRemoteAddr()); SisUser user = currentUserService.validUser(session); Date nowDate = utilService.getNowDate(user.getRhPerson()); model.addAttribute("dateNow", nowDate); model.addAttribute("formScheduleJob", new RhShift()); model.addAttribute("listRhPersons", personService.list(user.getRhPerson())); model.addAttribute("shiftScheJob", scheduleJobService.validRegister(user.getRhPerson(), request.getRemoteAddr())); // model.addAttribute("listScheduleJob", scheduleJobService.list(1, user.getRhPerson())); return "html/rrhh/schedJob/schedJobMngt"; } @RequestMapping(value = "/registerStart/{id}", method = RequestMethod.GET) public String registerShiftScheJob(@PathVariable("id") int idRhShift, Model model, HttpSession session, HttpServletRequest request){ log.info("/shift/registerStartSchedJob + " + request.getRemoteAddr()); SisUser user = currentUserService.validUser(session); model.addAttribute("rhScheduleJob", scheduleJobService.registerStart(user.getRhPerson(), idRhShift, request.getRemoteAddr())); return "html/rrhh/schedJob/detail :: detailDl"; } @RequestMapping(value = "/registerFinish/{id}", method = RequestMethod.GET) public String registerFinish(@PathVariable("id") int idRhShift, Model model, HttpSession session, HttpServletRequest request){ log.info("/shift/registerStartSchedJob + " + request.getRemoteAddr()); model.addAttribute("rhScheduleJob", scheduleJobService.registerFinish(idRhShift, request.getRemoteAddr())); return "html/rrhh/schedJob/detail :: detailDl"; } @Secured({ "ROLE_SH_ADMIN", "ROLE_SH_MNGR"}) @RequestMapping(value = "/create", method = RequestMethod.POST) public String create(@ModelAttribute("formScheduleJob") RhShift rhShift, Model model, HttpSession session, HttpServletRequest request){ SisUser user = currentUserService.validUser(session); model.addAttribute("rhScheduleJob", scheduleJobService.save(user.getRhPerson(), rhShift)); return "html/rrhh/schedJob/detail :: detailDl"; } @RequestMapping(value = "/list/{type}", method = RequestMethod.GET) public String list(@PathVariable("type") int type, Model model, HttpSession session, HttpServletRequest request){ // SisUser user = currentUserService.validUser(session); // model.addAttribute("listScheduleJob", scheduleJobService.list(type, user.getRhPerson())); return "html/rrhh/extraHour/tables :: mainTable"; } }
[ "mijael888@gmail.com" ]
mijael888@gmail.com
d5b5280544dec85a12fa81455d42952a59e6b0d7
25f8d4356382803f8654e89ff5d6a4e3b03eb73f
/juneau-core/juneau-assertions/src/main/java/org/apache/juneau/assertions/VersionAssertion.java
55b1f38b8e4f1d65afc48c45687fa85315405bb5
[ "Apache-2.0" ]
permissive
apache/juneau
606e71d4844084f6cb171a6ca610a31b311e287c
7af94c52ed6becff8c5dcde3f5bf0f57da59c9f6
refs/heads/master
2023-08-31T07:59:07.405183
2023-08-30T22:20:07
2023-08-30T22:20:07
64,732,665
76
37
Apache-2.0
2023-09-09T12:15:28
2016-08-02T07:00:07
Java
UTF-8
Java
false
false
8,145
java
// *************************************************************************************************************************** // * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * // * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * // * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * // * with the License. You may obtain a copy of the License at * // * * // * http://www.apache.org/licenses/LICENSE-2.0 * // * * // * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * // * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * // * specific language governing permissions and limitations under the License. * // *************************************************************************************************************************** package org.apache.juneau.assertions; import java.io.*; import java.util.function.*; import org.apache.juneau.*; import org.apache.juneau.internal.*; import org.apache.juneau.serializer.*; /** * Used for assertion calls against {@link Version} objects. * * <h5 class='section'>Example:</h5> * <p class='bjava'> * <jc>// Validates the specified date is after the current date.</jc> * <jsm>assertVersion</jsm>(<jv>myVersion</jv>).asMajor().isGreaterThan(2); * </p> * * * <h5 class='section'>Test Methods:</h5> * <p> * <ul class='javatree'> * <li class='jc'>{@link FluentComparableAssertion} * <ul class='javatreec'> * <li class='jm'>{@link FluentComparableAssertion#isGt(Comparable) isGt(Comparable)} * <li class='jm'>{@link FluentComparableAssertion#isGte(Comparable) isGte(Comparable)} * <li class='jm'>{@link FluentComparableAssertion#isLt(Comparable) isLt(Comparable)} * <li class='jm'>{@link FluentComparableAssertion#isLte(Comparable) isLte(Comparable)} * <li class='jm'>{@link FluentComparableAssertion#isBetween(Comparable,Comparable) isBetween(Comparable,Comparable)} * </ul> * <li class='jc'>{@link FluentObjectAssertion} * <ul class='javatreec'> * <li class='jm'>{@link FluentObjectAssertion#isExists() isExists()} * <li class='jm'>{@link FluentObjectAssertion#is(Object) is(Object)} * <li class='jm'>{@link FluentObjectAssertion#is(Predicate) is(Predicate)} * <li class='jm'>{@link FluentObjectAssertion#isNot(Object) isNot(Object)} * <li class='jm'>{@link FluentObjectAssertion#isAny(Object...) isAny(Object...)} * <li class='jm'>{@link FluentObjectAssertion#isNotAny(Object...) isNotAny(Object...)} * <li class='jm'>{@link FluentObjectAssertion#isNull() isNull()} * <li class='jm'>{@link FluentObjectAssertion#isNotNull() isNotNull()} * <li class='jm'>{@link FluentObjectAssertion#isString(String) isString(String)} * <li class='jm'>{@link FluentObjectAssertion#isJson(String) isJson(String)} * <li class='jm'>{@link FluentObjectAssertion#isSame(Object) isSame(Object)} * <li class='jm'>{@link FluentObjectAssertion#isSameJsonAs(Object) isSameJsonAs(Object)} * <li class='jm'>{@link FluentObjectAssertion#isSameSortedJsonAs(Object) isSameSortedJsonAs(Object)} * <li class='jm'>{@link FluentObjectAssertion#isSameSerializedAs(Object, WriterSerializer) isSameSerializedAs(Object, WriterSerializer)} * <li class='jm'>{@link FluentObjectAssertion#isType(Class) isType(Class)} * <li class='jm'>{@link FluentObjectAssertion#isExactType(Class) isExactType(Class)} * </ul> * </ul> * * <h5 class='section'>Transform Methods:</h5> * <p> * <ul class='javatree'> * <li class='jc'>{@link FluentVersionAssertion} * <ul class='javatreec'> * <li class='jm'>{@link FluentVersionAssertion#asPart(int) asPart(int)} * <li class='jm'>{@link FluentVersionAssertion#asMajor() asMajor()} * <li class='jm'>{@link FluentVersionAssertion#asMinor() asMinor()} * <li class='jm'>{@link FluentVersionAssertion#asMaintenance() asMaintenance()} * </ul> * <li class='jc'>{@link FluentObjectAssertion} * <ul class='javatreec'> * <li class='jm'>{@link FluentObjectAssertion#asString() asString()} * <li class='jm'>{@link FluentObjectAssertion#asString(WriterSerializer) asString(WriterSerializer)} * <li class='jm'>{@link FluentObjectAssertion#asString(Function) asString(Function)} * <li class='jm'>{@link FluentObjectAssertion#asJson() asJson()} * <li class='jm'>{@link FluentObjectAssertion#asJsonSorted() asJsonSorted()} * <li class='jm'>{@link FluentObjectAssertion#asTransformed(Function) asApplied(Function)} * <li class='jm'>{@link FluentObjectAssertion#asAny() asAny()} * </ul> * </ul> * * <h5 class='section'>Configuration Methods:</h5> * <p> * <ul class='javatree'> * <li class='jc'>{@link Assertion} * <ul class='javatreec'> * <li class='jm'>{@link Assertion#setMsg(String, Object...) setMsg(String, Object...)} * <li class='jm'>{@link Assertion#setOut(PrintStream) setOut(PrintStream)} * <li class='jm'>{@link Assertion#setSilent() setSilent()} * <li class='jm'>{@link Assertion#setStdOut() setStdOut()} * <li class='jm'>{@link Assertion#setThrowable(Class) setThrowable(Class)} * </ul> * </ul> * * <h5 class='section'>See Also:</h5><ul> * <li class='link'><a class="doclink" href="../../../../index.html#ja.Overview">Overview &gt; juneau-assertions &gt; Overview</a> * </ul> */ @FluentSetters(returns="VersionAssertion") public class VersionAssertion extends FluentVersionAssertion<VersionAssertion> { //----------------------------------------------------------------------------------------------------------------- // Static //----------------------------------------------------------------------------------------------------------------- /** * Static creator. * * @param value * The object being tested. * <br>Can be <jk>null</jk>. * @return A new assertion object. */ public static VersionAssertion create(Version value) { return new VersionAssertion(value); } //----------------------------------------------------------------------------------------------------------------- // Instance //----------------------------------------------------------------------------------------------------------------- /** * Constructor. * * @param value * The object being tested. * <br>Can be <jk>null</jk>. */ public VersionAssertion(Version value) { super(value, null); } //----------------------------------------------------------------------------------------------------------------- // Fluent setters //----------------------------------------------------------------------------------------------------------------- // <FluentSetters> @Override /* GENERATED - org.apache.juneau.assertions.Assertion */ public VersionAssertion setMsg(String msg, Object...args) { super.setMsg(msg, args); return this; } @Override /* GENERATED - org.apache.juneau.assertions.Assertion */ public VersionAssertion setOut(PrintStream value) { super.setOut(value); return this; } @Override /* GENERATED - org.apache.juneau.assertions.Assertion */ public VersionAssertion setSilent() { super.setSilent(); return this; } @Override /* GENERATED - org.apache.juneau.assertions.Assertion */ public VersionAssertion setStdOut() { super.setStdOut(); return this; } @Override /* GENERATED - org.apache.juneau.assertions.Assertion */ public VersionAssertion setThrowable(Class<? extends java.lang.RuntimeException> value) { super.setThrowable(value); return this; } // </FluentSetters> }
[ "james.bognar@salesforce.com" ]
james.bognar@salesforce.com
744cd5e48aceae6b56a06d0e5f2851e1567b454c
706dae6cc6526064622d4f5557471427441e5c5e
/src/main/java/com/anbo/juja/patterns/command_08/classic/Command.java
7240e15213049211b07c124865636df2bd05ed60
[]
no_license
Anton-Bondar/Design-patterns-JUJA-examples-
414edabfd8c4148640de7de8d01f809b01c3c17c
9e3d628f7e45c0106514f8f459ea30fffed702d5
refs/heads/master
2021-10-09T04:45:42.372993
2018-12-21T12:09:00
2018-12-21T12:11:14
121,509,668
0
0
null
null
null
null
UTF-8
Java
false
false
281
java
package com.anbo.juja.patterns.command_08.classic; /** * Created by oleksandr.baglai on 08.10.2015. */ // Главная абстракция, за которой мы прячем любой Receiver от Invoker public interface Command { Object execute(Object input); }
[ "AntonBondar2013@gmail.com" ]
AntonBondar2013@gmail.com
421708263227046d7bd04091e219af74dca9f0fe
5e3235edf3de262f4d10b9e9e1fcc3bd13d6b8b1
/Code Snippet Repository/Junit/Junit280.java
4e3b5db8e971dbfb892073d21aa241a5ed91b608
[]
no_license
saber13812002/DeepCRM
3336a244d4852a364800af3181e03e868cf6f9f5
be3e5e50e34a042d5ba7259ff5ff75c08ab32bb9
refs/heads/master
2023-03-16T00:08:06.473699
2018-04-18T05:29:50
2018-04-18T05:29:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
576
java
@Test void assertIterableEqualsIterableVsNullAndMessage() { try { assertIterableEquals(null, listOf('a', "b", 10, 20D), "message"); expectAssertionFailedError(); } catch (AssertionFailedError ex) { assertMessageStartsWith(ex, "message"); assertMessageEndsWith(ex, "expected iterable was <null>"); } try { assertIterableEquals(listOf("hello", 42), null, "message"); expectAssertionFailedError(); } catch (AssertionFailedError ex) { assertMessageStartsWith(ex, "message"); assertMessageEndsWith(ex, "actual iterable was <null>"); } }
[ "Qing.Mi@my.cityu.edu.hk" ]
Qing.Mi@my.cityu.edu.hk
cabba06fdd37197d2445bb2329ecad050ba1e8ca
7cffae13ba0bd7a975e06dc4a68c0cd8ba760950
/src/main/java/kr/or/ddit/encrypt/SecurityUtil.java
c571296edacf11c61b1702ee68f9762349c34fe1
[]
no_license
ldyong911/201809jsp
10b9289cb22f9b25cdcc93f90e5170f2e2f4bde2
3b425f700182143627f0a51ec542b7c2a4331701
refs/heads/master
2020-04-19T09:38:13.433432
2019-02-27T04:35:50
2019-02-27T04:35:50
168,116,632
1
0
null
null
null
null
UTF-8
Java
false
false
2,917
java
package kr.or.ddit.encrypt; import java.security.*; import javax.crypto.Cipher; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.SecretKeySpec; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import sun.misc.BASE64Decoder; import sun.misc.BASE64Encoder; public class SecurityUtil { private Logger logger = LoggerFactory.getLogger(SecurityUtil.class); public static String encryptSHA256(String str) { String sha = ""; try { MessageDigest sh = MessageDigest.getInstance("SHA-256"); sh.update(str.getBytes()); byte byteData[] = sh.digest(); StringBuffer sb = new StringBuffer(); for (int i = 0; i < byteData.length; i++) { sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1)); } sha = sb.toString(); } catch (NoSuchAlgorithmException e) { sha = null; } return sha; } public static String encryptMD5(String str) { String md5 = ""; try { MessageDigest md = MessageDigest.getInstance("MD5"); md.update(str.getBytes()); byte byteData[] = md.digest(); StringBuffer sb = new StringBuffer(); for (int i = 0; i < byteData.length; i++) { sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1)); } md5 = sb.toString(); } catch (NoSuchAlgorithmException e) { md5 = null; } return md5; } public static String Decrypt(String text, String key){ String result = null; try{ Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding"); byte[] keyBytes = new byte[16]; byte[] b = key.getBytes("UTF-8"); int len = b.length; if (len > keyBytes.length) len = keyBytes.length; System.arraycopy(b, 0, keyBytes, 0, len); SecretKeySpec keySpec = new SecretKeySpec(keyBytes, "AES"); IvParameterSpec ivSpec = new IvParameterSpec(keyBytes); cipher.init(Cipher.DECRYPT_MODE, keySpec, ivSpec); BASE64Decoder decoder = new BASE64Decoder(); byte[] results = cipher.doFinal(decoder.decodeBuffer(text)); result = new String(results, "UTF-8"); }catch(Exception e){ } return result; } public static String Encrypt(String text, String key){ byte[] results = null; try{ Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding"); byte[] keyBytes = new byte[16]; byte[] b = key.getBytes("UTF-8"); int len = b.length; if (len > keyBytes.length) len = keyBytes.length; System.arraycopy(b, 0, keyBytes, 0, len); SecretKeySpec keySpec = new SecretKeySpec(keyBytes, "AES"); IvParameterSpec ivSpec = new IvParameterSpec(keyBytes); cipher.init(Cipher.ENCRYPT_MODE, keySpec, ivSpec); results = cipher.doFinal(text.getBytes("UTF-8")); }catch(Exception e){ } BASE64Encoder encoder = new BASE64Encoder(); return encoder.encode(results); } }
[ "ldyong911@gmail.com" ]
ldyong911@gmail.com
24a3a80437b1d36583d854646254ebd8dbb841ac
3f961c514a68e365594b1c6980580cacbef5a057
/app/src/main/java/com/example/coolweather/db/County.java
13d588fa13c0bf8c6fd9e46fa1c2f68b3d9990db
[ "Apache-2.0" ]
permissive
chendeqiang/coolweather
de4e85065101db32d12605bc15f3cdf03314d21d
6377be94c001c2bead201c3b66605e57335860ab
refs/heads/master
2021-01-15T12:49:48.109878
2017-10-11T03:55:18
2017-10-11T03:55:18
99,659,302
0
0
null
null
null
null
UTF-8
Java
false
false
902
java
package com.example.coolweather.db; import org.litepal.crud.DataSupport; /** * 作者:Created by chendeqiang on 2017/8/8 * 邮箱:keshuixiansheng@126.com * 描述: */ public class County extends DataSupport { private int id; private String countyName; private String weatherId; private int cityId; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getCountyName() { return countyName; } public void setCountyName(String countyName) { this.countyName = countyName; } public String getWeatherId() { return weatherId; } public void setWeatherId(String weatherId) { this.weatherId = weatherId; } public int getCityId() { return cityId; } public void setCityId(int cityId) { this.cityId = cityId; } }
[ "123456" ]
123456
f02ebb6b461c87d573c98cfbeb6900fe88cddb8d
58eac8afa926b5646ca0dce62a9392dd48d4cf32
/dataset_with_mutant/chess/src/main/java/MVC/MVC.java
4f31872af6031cc29568c7de144c87a5ee11fe41
[]
no_license
fischerJF/Community-wide-Dataset-of-Configurable-Systems
71f20635032bbfed959382e98e808e657c5f1ef4
eab5839ec7c6851934d255f3af3904b81a8dd13e
refs/heads/master
2023-07-04T23:04:56.061388
2021-08-17T18:32:53
2021-08-17T18:32:53
236,009,474
3
2
null
2021-08-17T18:33:29
2020-01-24T13:39:55
Java
UTF-8
Java
false
false
275
java
package MVC; import model.*; import gui.*; public class MVC { private Model m = Model.getInstance(); private View v; private Controller c; public MVC () { c = new Controller(); c.setMode(0); v = new View(c); m.setView(v); c.setModel(m); } }
[ "fischerbatera@hotmail.com" ]
fischerbatera@hotmail.com
e06d690bcb58f5a9a30c738f50c178d0364267a7
8af1164bac943cef64e41bae312223c3c0e38114
/results-java/gradle--gradle/641c0510e21eeb7d57bc38fe9b475ee9d2ef6748/before/FileWatchInputs.java
6844daa485f332c40adbdc4426cb1d12f3f3cae0
[]
no_license
fracz/refactor-extractor
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
dd5e82bfcc376e74a99e18c2bf54c95676914272
refs/heads/master
2021-01-19T06:50:08.211003
2018-11-30T13:00:57
2018-11-30T13:00:57
87,353,478
0
0
null
null
null
null
UTF-8
Java
false
false
1,936
java
/* * Copyright 2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.internal.filewatch; import com.google.common.collect.ImmutableList; import org.gradle.api.file.DirectoryTree; import java.io.File; import java.util.List; public class FileWatchInputs { private final ImmutableList<DirectoryTree> directories; private final ImmutableList<File> files; private FileWatchInputs(ImmutableList<DirectoryTree> directories, ImmutableList<File> files) { this.directories = directories; this.files = files; } public List<? extends DirectoryTree> getDirectoryTrees() { return directories; } public List<? extends File> getFiles() { return files; } public static Builder newBuilder() { return new Builder(); } public static class Builder { private final ImmutableList.Builder<DirectoryTree> directories = ImmutableList.builder(); private final ImmutableList.Builder<File> files = ImmutableList.builder(); public Builder add(DirectoryTree directoryTree) { directories.add(directoryTree); return this; } public Builder add(File file) { files.add(file); return this; } public FileWatchInputs build() { return new FileWatchInputs(directories.build(), files.build()); } } }
[ "fraczwojciech@gmail.com" ]
fraczwojciech@gmail.com
2930170ea505888fd45a8e705a0ec15011d14032
5a088135a99a386e473f94f971c571864373865c
/05.HWE/02.Engineering/03.Code/01.server/branches/hwe0.1.6/02.HWE-pay/src/main/java/com/lenovohit/hwe/pay/support/cmbpay/transfer/service/CmbTradeService.java
f2dc59193ce32ce49bae49a3614feac242b28d9d
[]
no_license
jacky-cyber/work
a7bebd2cc910da1e9e227181def880a78cc1de07
e58558221b2a8f410b087fa2ce88017cea12efa4
refs/heads/master
2022-02-25T09:48:53.940782
2018-05-01T10:04:53
2018-05-01T10:04:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
511
java
package com.lenovohit.hwe.pay.support.cmbpay.transfer.service; import com.lenovohit.hwe.pay.support.cmbpay.transfer.utils.XmlPacket; /** * Created by zyus */ public interface CmbTradeService { // 消费查询 public XmlPacket tradeQuery(XmlPacket request); // 消费退款 public XmlPacket tradeRefund(XmlPacket request); // 卡查询 public XmlPacket tradeCardQuery(XmlPacket request); // 同步对账文件 public XmlPacket tradeDownloadFile(XmlPacket request); }
[ "liuximing2016@qq.com" ]
liuximing2016@qq.com
61fef7d24e1f680c8de1b56b17c3453e746049e1
ad9d57a23e4029428b511c34ee505338fe9ebee4
/src/main/java/javassist/expr/Instanceof$ProceedForInstanceof.java
7a6db8f815ab4775d57455c438ea1c22e650facd
[]
no_license
yunusborazan/Notorious-0.6
550435b5f4dfd3c4b8e79b0c7dd7c0e7c4a35c0c
8cc051b75986cae29fe540c2b021a34102df8842
refs/heads/main
2023-07-29T05:01:50.544957
2021-09-08T21:11:21
2021-09-08T21:11:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,097
java
package javassist.expr; import javassist.CtClass; import javassist.bytecode.Bytecode; import javassist.compiler.CompileError; import javassist.compiler.JvstCodeGen; import javassist.compiler.JvstTypeChecker; import javassist.compiler.ProceedHandler; import javassist.compiler.ast.ASTList; class Instanceof$ProceedForInstanceof implements ProceedHandler { int index; Instanceof$ProceedForInstanceof(int i) { this.index = i; } public void doit(JvstCodeGen gen, Bytecode bytecode, ASTList args) throws CompileError { if (gen.getMethodArgsLength(args) != 1) { throw new CompileError("$proceed() cannot take more than one parameter for instanceof"); } gen.atMethodArgs(args, new int[1], new int[1], new String[1]); bytecode.addOpcode(193); bytecode.addIndex(this.index); gen.setType(CtClass.booleanType); } public void setReturnType(JvstTypeChecker c, ASTList args) throws CompileError { c.atMethodArgs(args, new int[1], new int[1], new String[1]); c.setType(CtClass.booleanType); } }
[ "jhonsberger12@gmail.com" ]
jhonsberger12@gmail.com
915572b30ec26d93d745f5f69b8bbb44d499184b
07841705bb52cbe09f2f4736eb7fd3ab21dbbe03
/Arrays/ArrayList/challenge/MobilePhone.java
504e8b1b86239d4cd4f9f3aafac179475cb968e7
[]
no_license
david2999999/Java-Master-Class
a861a772bd60654344e2acf6de461c0603e5b0ea
91bf32f0a02ee8971c972132b409f0900c7f1541
refs/heads/master
2021-07-16T03:32:09.526901
2018-12-09T13:14:26
2018-12-09T13:14:26
111,569,329
2
0
null
null
null
null
UTF-8
Java
false
false
2,749
java
package Arrays.ArrayList.challenge; import java.util.ArrayList; public class MobilePhone { private String myNumber; private ArrayList<Contact> myContacts; public MobilePhone(String myNumber) { this.myNumber = myNumber; this.myContacts = new ArrayList<>(); } public boolean addNewContact(Contact contact) { if (findContact(contact.getName()) >= 0) { System.out.println("Contact is already on file."); return false; } myContacts.add(contact); return true; } public boolean updateContact(Contact oldContact, Contact newContact) { int foundPosition = findContact(oldContact); if (foundPosition < 0) { System.out.println(oldContact.getName() + ", was not found."); return false; } else if (findContact(newContact.getName()) != -1) { System.out.println("Contact with name" + newContact.getName() + " already exist. Update not successful"); return false; } this.myContacts.set(foundPosition, newContact); System.out.println(oldContact.getName() + ", was replaced with " + newContact.getName()); return true; } public boolean removeContact(Contact contact) { int foundPosition = findContact(contact); if (foundPosition < 0) { System.out.println(contact.getName() + ", was not found."); return false; } this.myContacts.remove(foundPosition); System.out.println(contact.getName() + ", was deleted"); return true; } private int findContact(Contact contact) { return this.myContacts.indexOf(contact); } private int findContact(String contactName) { for (int i = 0; i < this.myContacts.size(); i++) { Contact contact = this.myContacts.get(i); if (contact.getName().equals(contactName)) { return i; } } return -1; } public String queryContact(Contact contact) { if (findContact(contact) >= 0) { return contact.getName(); } return null; } public Contact queryContact(String name) { int position = findContact(name); if (position >= 0) { return this.myContacts.get(position); } return null; } public void printContacts() { System.out.println("Contact List"); for (int i = 0; i < myContacts.size(); i++) { System.out.println((i + 1) + ". " + this.myContacts.get(i).getName() + " -> " + this.myContacts.get(i).getPhoneNumber()); } } }
[ "djiang86@binghamton.edu" ]
djiang86@binghamton.edu
75733785971642679514f819b9b1655781b8198a
d3034d8c27d96144651827a7b1b5e80daf10fd6a
/amap-data-cp-theater/src/main/java/roadNet/region/DivideRegion.java
57e18932c55f4e58af69f0b274bbbb73460ec6de
[]
no_license
javaxiaomangren/amap-data-cp
5274b724dca9d95f3c3c55c1fc765ebbfdb583c6
d3924a1765eb1e3d635338962c621fbd60e34223
refs/heads/master
2021-01-10T22:12:44.724500
2014-01-07T09:41:22
2014-01-07T09:41:22
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,944
java
/** * 2013-10-9 */ package roadNet.region; import zengkunceju.ProjectionUtil; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; public class DivideRegion { private int regionLength = 100;//unit:m private double maxLon; private double maxLat; private double minLon; private double minLat; //计算当前城市总共可以划分几个区域:横向多少和纵向多少,然后评分经纬度,看具体跨多少经度和多少纬度 private double LonLength; private double LatLength; private int longNum; private int wideNum; /** * 确定一个城市的最大最小经纬度 */ public DivideRegion(String result){ //maxLon + ";" + maxLat + ";" + minLon + ";" + minLat String[] fields = result.split(";"); maxLon = Double.parseDouble(fields[0]); maxLat = Double.parseDouble(fields[1]); minLon = Double.parseDouble(fields[2]); minLat = Double.parseDouble(fields[3]); //计算横向的距离 ProjectionUtil pUtil = new ProjectionUtil(); int distance = pUtil.ComputeFormCD(maxLon, maxLat, minLon, maxLat); longNum = distance / regionLength + 1; LonLength = (maxLon - minLon) / longNum; //计算纵向的距离 distance = pUtil.ComputeFormCD(maxLon, maxLat, maxLon, minLat); wideNum = distance / regionLength + 1; LatLength = (maxLat - minLat) / wideNum; } /** * 确定当前城市的最大方格个数:长_宽 */ public String getRegionNum(String result){ return longNum + "_" + wideNum; } /** * 将当前城市的所有数据划分到不同的方格中 */ @SuppressWarnings({ "rawtypes", "unchecked" }) public Map divideRegion(List<Map> roads){ Map result = new HashMap(); for(Map road : roads){ String maxminLonLat = MaxMinLatLon.getMaxMinLatLngRoad(road.get("coords").toString()); String[] fields = maxminLonLat.split(";"); double Lonmax = Double.parseDouble(fields[0]); double Latmax = Double.parseDouble(fields[1]); double Lonmin = Double.parseDouble(fields[2]); double Latmin = Double.parseDouble(fields[3]); int minLong = Math.abs((int)((Lonmin - minLon) / LonLength) - 1); int maxLong = Math.abs((int)((Lonmax - minLon) / LonLength) + 1); int minWide = Math.abs((int)((Latmin - minLat) / LatLength) - 1); int maxWide = Math.abs((int)((Latmax - minLat) / LatLength) + 1); for(int i = minLong; i <= maxLong; i++){ for (int j = minWide; j <= maxWide; j++){ //结果集合中已经有该方格的道路信息 if(result != null && result.containsKey(i + "_" + j)){ List<Map> temp = (List<Map>) result.get(i + "_" + j); temp.add(road); result.put(i + "_" + j, temp); } else { List<Map> temp = new ArrayList<Map>(); temp.add(road); result.put(i + "_" + j, temp); } } } } return result; } }
[ "yang.hua@YH-E5430.autonavi.com" ]
yang.hua@YH-E5430.autonavi.com
bfc13310c0c11605d2b511b4da73e70214004c00
1b9f89641dcdb4dad766c4eaefac83d2ff9c5d9d
/src/.gradle/wrapper/dists/gradle-3.3-all/2pjhuu3pz1dpi6vcvf3301a8j/gradle-3.3/src/testing-base/org/gradle/api/internal/tasks/testing/results/TestListenerInternal.java
ab336ada58ac0f28321855f5b59bda1f8b73f652
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "MIT", "LGPL-2.1-only", "CPL-1.0" ]
permissive
saurabhhere/sugarizer-apkbuilder
b2cbcf21ee3286d0333b8812b02721474e4bf79c
fea9a07f5aff668f3a1622145c90f0fa9b17d57c
refs/heads/master
2023-03-23T19:09:20.300251
2021-03-21T10:25:43
2021-03-21T10:25:43
349,963,558
0
0
Apache-2.0
2021-03-21T10:23:51
2021-03-21T10:23:50
null
UTF-8
Java
false
false
1,291
java
/* * Copyright 2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.api.internal.tasks.testing.results; import org.gradle.api.internal.tasks.testing.TestCompleteEvent; import org.gradle.api.internal.tasks.testing.TestDescriptorInternal; import org.gradle.api.internal.tasks.testing.TestStartEvent; import org.gradle.api.tasks.testing.TestOutputEvent; import org.gradle.api.tasks.testing.TestResult; public interface TestListenerInternal { void started(TestDescriptorInternal testDescriptor, TestStartEvent startEvent); void completed(TestDescriptorInternal testDescriptor, TestResult testResult, TestCompleteEvent completeEvent); void output(TestDescriptorInternal testDescriptor, TestOutputEvent event); }
[ "llaske@c2s.fr" ]
llaske@c2s.fr
26a0f964f7e610270f029fa8e9963fa6cb2de473
077053475452c1ec6a9092e9fe9f49e81e898454
/src/main/java/com/lisi/WordCountMapper.java
984456f47e5dd4eae418cad7c305f33de357a9e8
[]
no_license
siknight/mapreduce_Test
cf29fa56b85c6301fa029433542b167fa2add389
56b9c14a814731f39baa9c6f34cb42a427f50f30
refs/heads/master
2022-05-08T11:14:18.598544
2019-09-18T09:00:11
2019-09-18T09:00:11
209,263,364
0
0
null
null
null
null
UTF-8
Java
false
false
1,432
java
package com.lisi; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Mapper; import java.io.IOException; /** * (1)用户自定义的Mapper要继承自己的父类 * (2)Mapper的输入数据是KV对的形式(KV的类型可自定义) * (3)Mapper中的业务逻辑写在map()方法中 * (4)Mapper的输出数据是KV对的形式(KV的类型可自定义) * (5)map()方法(maptask进程)对每一个<K,V>调用一次 */ public class WordCountMapper extends Mapper<LongWritable, Text, Text, IntWritable> { Text t =new Text(); IntWritable w=new IntWritable(1); /** * map()方法(maptask进程)对每一个<K,V>调用一次 * * @param key:数据的offset,从0开始 * @param value:要处理的一行数据 * @param context:上下文 * @throws IOException * @throws InterruptedException * * */ @Override protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException { //value 表示要处理的一行数据 String s = value.toString(); String[] str = s.split(" "); for (String word:str){ t.set(word); //context代表上下文 context.write(t,w); } } }
[ "1786678583@qq.com" ]
1786678583@qq.com
403d4a46d4e66cebf9b83066bfd43f5a9c7b8262
345434d8704f1e63246bd36b91e0d838febc9f73
/app/src/main/java/com/company/NetSDK/EM_EVENT_SUB_CODE.java
a5a7e1ca4d898552b3719fb24c4a3895efb808a7
[]
no_license
solderzzc/xeyes
dfc2b6ed53fa092da4193d3ab1b1e807b0c59707
39e180b09169e962a2e1b260b6fe17bfcc48d63c
refs/heads/master
2020-03-07T07:09:50.691545
2016-12-07T15:49:56
2016-12-07T15:49:56
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,164
java
package com.company.NetSDK; import java.io.Serializable; /** * \if ENGLISH_LANG * * \else * JB<~WS@`PM * \endif */ public class EM_EVENT_SUB_CODE implements Serializable { /** * */ private static final long serialVersionUID = 1L; /** * \if ENGLISH_LANG * Unknown * \else * N4V* * \endif */ public static final int EM_EVENT_SUB_CODE_UNKNOWN = -1; /** * \if ENGLISH_LANG * Loss * \else * Loss * \endif */ public static final int EM_EVENT_SUB_CODE_LOSS = 0; /** * \if ENGLISH_LANG * Cover * \else * Cover * \endif */ public static final int EM_EVENT_SUB_CODE_COVER = 1; /** * \if ENGLISH_LANG * Frozen * \else * Frozen * \endif */ public static final int EM_EVENT_SUB_CODE_FROZEN = 2; /** * \if ENGLISH_LANG * Light * \else * Light * \endif */ public static final int EM_EVENT_SUB_CODE_LIGHT = 3; /** * \if ENGLISH_LANG * Dark * \else * Dark * \endif */ public static final int EM_EVENT_SUB_CODE_DARK = 4; /** * \if ENGLISH_LANG * SceneChange * \else * SceneChange * \endif */ public static final int EM_EVENT_SUB_CODE_SCENECHANGE = 5; }
[ "18liuyuan@163.com" ]
18liuyuan@163.com
18001379d9c53d37652aa17866e7d381aabd2dfa
34d9d1dbd41b2781f5d1839367942728ee199c2c
/LTSA-Will/src/ltsa/editor/ColoredDocument.java
3aadbd802433233966d6b772005911bbc546b1f5
[]
no_license
Intrinsarc/intrinsarc-evolve
4808c0698776252ac07bfb5ed2afddbc087d5e21
4492433668893500ebc78045b6be24f8b3725feb
refs/heads/master
2020-05-23T08:14:14.532184
2015-09-08T23:07:35
2015-09-08T23:07:35
70,294,516
1
1
null
null
null
null
UTF-8
Java
false
false
1,135
java
package ltsa.editor; import javax.swing.text.*; /** * Simple extension of plain document to permit colored text */ public class ColoredDocument extends PlainDocument { ColoredScanner scanner; // CONSTRUCTOR-DESTRUCTOR public ColoredDocument() { super(new GapContent(1024)); scanner = new ColoredScanner(this); // Set the maximum line width putProperty(PlainDocument.lineLimitAttribute, new Integer(256)); // Set TAB size putProperty(PlainDocument.tabSizeAttribute, new Integer(4)); } /** * return the lexical analyzer to produce colors for this document. */ public ColoredScanner getScanner() { return scanner; } // ................................................................... /** * Fetch a reasonable location to start scanning given the desired start * location. This allows for adjustments needed to accomodate multiline * comments. Currently scans the complete document. This is not efficient * but it's safe */ public int getScannerStart(int p) { return (0); } // .................................................................. }
[ "devnull@localhost" ]
devnull@localhost
90b865a0ded92d54a45796d88bf811c71cb473c0
1b79d486690fbe647ec73e72f7dfe471406b53b0
/wtk/src/org/apache/pivot/wtk/content/ButtonData.java
c62ac5971ca7235fe874c6664244f6411c98c6cd
[]
no_license
dmitrykolesnikovich/apache-pivot
3634001675bc283cfa70e08fa27b413a93234cc1
92910f7739d3c699b40425ce98925daacf827e2e
refs/heads/master
2021-01-01T16:51:37.832286
2015-02-10T14:49:17
2015-02-10T14:49:17
30,595,688
0
0
null
null
null
null
UTF-8
Java
false
false
2,972
java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.pivot.wtk.content; import java.net.URL; import org.apache.pivot.wtk.media.Image; /** * Default button data implementation. */ public class ButtonData { private Image icon; private String text; private Object userData = null; public ButtonData() { this(null, null); } public ButtonData(Image icon) { this(icon, null); } public ButtonData(String text) { this(null, text); } public ButtonData(Image icon, String text) { this.icon = icon; this.text = text; } public Image getIcon() { return icon; } public void setIcon(Image icon) { this.icon = icon; } /** * Sets the button data's icon by URL. <p> If the icon already exists in the * application context resource cache, the cached value will be used. * Otherwise, the icon will be loaded synchronously and added to the cache. * * @param iconURL The location of the icon to set. */ public void setIcon(URL iconURL) { if (iconURL == null) { throw new IllegalArgumentException("iconURL is null."); } setIcon(Image.loadFromCache(iconURL)); } /** * Sets the button data's icon by * {@linkplain ClassLoader#getResource(String) resource name}. * * @param iconName The resource name of the icon to set. * @see #setIcon(URL) */ public void setIcon(String iconName) { if (iconName == null) { throw new IllegalArgumentException("iconName is null."); } ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); URL url = classLoader.getResource(iconName.substring(1)); if (url == null) { throw new IllegalArgumentException("cannot find icon resource " + iconName); } setIcon(url); } public String getText() { return text; } public void setText(String text) { this.text = text; } public Object getUserData() { return userData; } public void setUserData(Object userData) { this.userData = userData; } }
[ "mind_1988" ]
mind_1988
d7a8f7dfceca394c5d275560472d4cf9dac3f754
6bd14132416cf75b4cb8b06485b2406aa581ed18
/cashloan-api/src/main/java/com/xindaibao/cashloan/api/controller/ProfitCashLogController.java
76ed5bb4ec466d9ac65d188b3fe77b090fce4ef3
[]
no_license
tanglongjia/cashloan
b21e6a5e4dc1c5629fc7167c5fb727a6033ba619
9b55e7f1b51b89016750b6d9a732d1e895209877
refs/heads/master
2020-06-18T06:51:12.348238
2018-12-14T03:12:07
2018-12-14T03:12:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,916
java
package com.xindaibao.cashloan.api.controller; import java.util.HashMap; import java.util.Map; import javax.annotation.Resource; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import com.github.pagehelper.Page; import com.xindaibao.cashloan.cl.domain.ProfitCashLog; import com.xindaibao.cashloan.cl.service.ProfitCashLogService; import com.xindaibao.cashloan.core.common.context.Constant; import com.xindaibao.cashloan.core.common.util.RdPage; import com.xindaibao.cashloan.core.common.util.ServletUtils; import com.xindaibao.cashloan.core.common.web.controller.BaseController; /** * 分润提现记录Controller */ @Scope("prototype") @Controller public class ProfitCashLogController extends BaseController { @Resource private ProfitCashLogService profitCashLogService; @RequestMapping(value = "/api/act/mine/profitCashLog/page.htm", method = RequestMethod.POST) public void page( @RequestParam(value="userId",required=false) long userId, @RequestParam(value = "current") int current, @RequestParam(value = "pageSize") int pageSize) throws Exception { Map<String,Object> searchMap = new HashMap<>(); searchMap.put("userId", userId); Page<ProfitCashLog> page = profitCashLogService.page(searchMap,current, pageSize); Map<String, Object> data = new HashMap<>(); data.put("list", page.getResult()); Map<String,Object> result = new HashMap<String,Object>(); result.put(Constant.RESPONSE_DATA, data); result.put(Constant.RESPONSE_DATA_PAGE, new RdPage(page)); result.put(Constant.RESPONSE_CODE, Constant.SUCCEED_CODE_VALUE); result.put(Constant.RESPONSE_CODE_MSG, "查询成功"); ServletUtils.writeToResponse(response,result); } }
[ "15237815570@126.com" ]
15237815570@126.com
2683600dd3d2386a67930f91d3c5796d63fb5609
260ffca605956d7cb9490a8c33e2fe856e5c97bf
/src/com/google/android/gms/wearable/internal/zzbl.java
bc0d1fde907159a0b0f3327a56127ea00a03fd2d
[]
no_license
yazid2016/com.incorporateapps.fakegps.fre
cf7f1802fcc6608ff9a1b82b73a17675d8068beb
44856c804cea36982fcc61d039a46761a8103787
refs/heads/master
2021-06-02T23:32:09.654199
2016-07-21T03:28:48
2016-07-21T03:28:48
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,843
java
package com.google.android.gms.wearable.internal; import android.os.Parcel; import android.os.Parcelable.Creator; import com.google.android.gms.common.internal.safeparcel.zza; import com.google.android.gms.common.internal.safeparcel.zza.zza; import com.google.android.gms.common.internal.safeparcel.zzb; import java.util.ArrayList; public class zzbl implements Parcelable.Creator { static void zza(StorageInfoResponse paramStorageInfoResponse, Parcel paramParcel, int paramInt) { paramInt = zzb.zzav(paramParcel); zzb.zzc(paramParcel, 1, versionCode); zzb.zzc(paramParcel, 2, statusCode); zzb.zza(paramParcel, 3, zzbta); zzb.zzc(paramParcel, 4, zzbtc, false); zzb.zzI(paramParcel, paramInt); } public StorageInfoResponse zziI(Parcel paramParcel) { int i = 0; int k = zza.zzau(paramParcel); long l = 0L; ArrayList localArrayList = null; int j = 0; while (paramParcel.dataPosition() < k) { int m = zza.zzat(paramParcel); switch (zza.zzca(m)) { default: zza.zzb(paramParcel, m); break; case 1: j = zza.zzg(paramParcel, m); break; case 2: i = zza.zzg(paramParcel, m); break; case 3: l = zza.zzi(paramParcel, m); break; case 4: localArrayList = zza.zzc(paramParcel, m, PackageStorageInfo.CREATOR); } } if (paramParcel.dataPosition() != k) { throw new zza.zza("Overread allowed size end=" + k, paramParcel); } return new StorageInfoResponse(j, i, l, localArrayList); } public StorageInfoResponse[] zzmm(int paramInt) { return new StorageInfoResponse[paramInt]; } } /* Location: * Qualified Name: com.google.android.gms.wearable.internal.zzbl * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "reverseengineeringer@hackeradmin.com" ]
reverseengineeringer@hackeradmin.com
de68a6c0fba350d7d6447b81fcad9a2e1e080472
675574d5cb3cb989323cc9078fafd1a9a81ac602
/icity_v6/src/cn/ffcs/wisdom/city/traffic/violations/TrafficViolationsInfoActivity.java
7d942da18c6e0e1a269a5feaf3037ff23c83f770
[ "Apache-2.0" ]
permissive
un097/wuxianchangchun
24f702ce1d8e7f763ae9762fb63606f78a33565b
cc7ffcdf171eb9463ef396e389127d69cbd18c93
refs/heads/master
2020-07-31T07:35:13.486938
2016-11-13T09:25:36
2016-11-13T09:25:36
73,606,051
1
0
null
null
null
null
UTF-8
Java
false
false
5,813
java
package cn.ffcs.wisdom.city.traffic.violations; import java.util.List; import com.umeng.analytics.MobclickAgent; import android.content.Intent; import android.view.View; import android.view.View.OnClickListener; import android.widget.ExpandableListView; import android.widget.ExpandableListView.OnGroupClickListener; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.Toast; import cn.ffcs.ui.tools.TopUtil; import cn.ffcs.widget.LoadingDialog; import cn.ffcs.wisdom.city.WisdomCityActivity; import cn.ffcs.wisdom.city.common.Key; import cn.ffcs.wisdom.city.sqlite.model.TrafficViolations; import cn.ffcs.wisdom.city.sqlite.service.TrafficViolationsService; import cn.ffcs.wisdom.city.traffic.violations.adapter.ViolationsInfoExpandListAdapter; import cn.ffcs.wisdom.city.traffic.violations.bo.TrafficViolationsBo; import cn.ffcs.wisdom.city.traffic.violations.common.CarType; import cn.ffcs.wisdom.city.traffic.violations.entity.TrafficViolationsEntity; import cn.ffcs.wisdom.city.traffic.violations.entity.TrafficViolationsEntity.TrafficViolationsInfo; import cn.ffcs.wisdom.city.v6.R; import cn.ffcs.wisdom.http.BaseResp; import cn.ffcs.wisdom.http.HttpCallBack; import cn.ffcs.wisdom.tools.CommonUtils; import cn.ffcs.wisdom.tools.StringUtil; /** * <p>Title: 违章详细列表 </p> * <p>Description: </p> * <p>@author: zhangwsh </p> * <p>Copyright: Copyright (c) 2013 </p> * <p>Company: ffcs Co., Ltd. </p> * <p>Create Time: 2013-9-2 </p> * <p>@author: </p> * <p>Update Time: </p> * <p>Updater: </p> * <p>Update Comments: </p> */ public class TrafficViolationsInfoActivity extends WisdomCityActivity { private String carNo; private String carLastCodes; private ExpandableListView exListView; private ViolationsInfoExpandListAdapter adapter; private List<TrafficViolationsInfo> list; private boolean first = true; private boolean isGetValue = false; private LinearLayout noData; // private TextView topRight; @Override protected void initComponents() { exListView = (ExpandableListView) findViewById(R.id.violations_list); noData = (LinearLayout) findViewById(R.id.no_data); // topRight = (TextView) findViewById(R.id.top_right_title); // TopUtil.updateTitle(topRight, getString(R.string.violation_all_handle)); // topRight.setVisibility(View.VISIBLE); // topRight.setOnClickListener(new TopRightClick()); } class TopRightClick implements OnClickListener { @Override public void onClick(View v) { Intent i = new Intent(mActivity, ViolationsHandleActivity.class); i.putExtra(Key.K_CAR_NO, carNo); i.putExtra(Key.K_CAR_LAST_CODES, carLastCodes); startActivity(i); } } @Override protected void initData() { Intent i = getIntent(); carNo = i.getStringExtra(Key.K_CAR_NO); carLastCodes = i.getStringExtra(Key.K_CAR_LAST_CODES); isGetValue = i.getBooleanExtra(Key.K_IS_GET_VALUE, false); list = (List<TrafficViolationsInfo>)i.getSerializableExtra("list"); TopUtil.updateTitle(mActivity, R.id.top_title, carNo); exListView.setOnGroupClickListener(new OnGroupClickListener() { @Override public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id) { boolean isExpanded = parent.isGroupExpanded(groupPosition); if (isExpanded) { ((ImageView) v.findViewById(R.id.cursor)) .setImageResource(R.drawable.down_arrow); } else { ((ImageView) v.findViewById(R.id.cursor)).setImageResource(R.drawable.up_arrow); } return false; } }); MobclickAgent.onEvent(mContext, "E_C_violationQuery_violationQueryClick"); initView(); } @Override public void onWindowFocusChanged(boolean hasFocus) { // if (first) { // first = false; // if (isGetValue) { // LoadingDialog.getDialog(mActivity).setMessage("查询中").show(); // TrafficViolationsBo.getInstance(mContext).queryTrafficViolations( // new QueryTrafficCallBack(carNo, carLastCodes), carNo, carLastCodes, // CarType.SMALL_CAR); // } else { // initView(); // } // } super.onWindowFocusChanged(hasFocus); } /** * 显示UI */ private void initView() { if (list != null && list.size() > 0) { noData.setVisibility(View.GONE); adapter = new ViolationsInfoExpandListAdapter(mContext, list); exListView.setAdapter(adapter); } else { noData.setVisibility(View.VISIBLE); } } class QueryTrafficCallBack implements HttpCallBack<BaseResp> { private String carNo; private String carLastCodes; QueryTrafficCallBack(String carNo, String carLastCodes) { this.carNo = carNo; this.carLastCodes = carLastCodes; } @Override public void call(BaseResp response) { if (response.isSuccess()) { TrafficViolationsEntity entity = (TrafficViolationsEntity) response.getObj(); List<TrafficViolationsInfo> requestList = entity.getCarWZInfo(); if (requestList != null && requestList.size() > 0) { TrafficViolationsService.getInstance(mContext).saveViolation(carNo, carLastCodes, requestList); } else if (requestList != null && requestList.size() == 0) { TrafficViolationsService.getInstance(mContext).saveEmptyList(carNo, carLastCodes); } initView(); LoadingDialog.getDialog(mActivity).dismiss(); } else { LoadingDialog.getDialog(mActivity).dismiss(); if (!StringUtil.isEmpty(response.getDesc())) { CommonUtils.showToast(mActivity, response.getDesc(), Toast.LENGTH_SHORT); } } } @Override public void progress(Object... obj) { } @Override public void onNetWorkError() { } } @Override protected int getMainContentViewId() { return R.layout.act_traffic_violations_info; } }
[ "un097@qq.com" ]
un097@qq.com
44fa97ebe273fbfd439fa2d6a33625cbc02d555c
1295ee4adf78d57e93966f09beb64349fdf46f51
/framework-security/src/test/java/com/github/fartherp/framework/security/dissymmetry/WeatherSecurityTest.java
e9ab0e3e07b87d6f5c82cf2a302a633a3864264a
[ "Apache-2.0" ]
permissive
liuy2004/framework
b7082b1730b13288f4717e711ab7193aff486253
f600c088a7ff1fd08e446439755cf03ce0ed15e8
refs/heads/master
2020-03-18T13:50:00.546085
2018-05-21T08:47:16
2018-05-21T08:47:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,161
java
/* * Copyright (c) 2017. CK. All rights reserved. */ package com.github.fartherp.framework.security.dissymmetry; import com.github.fartherp.framework.common.util.HttpClientUtils; import org.testng.annotations.Test; /** * Created by IntelliJ IDEA. * * @author: CK * @date: 2017/9/13 */ public class WeatherSecurityTest { @Test public void testExecuteGet() { try { String type = "forecast_f"; // forecast_f index_f String appid = "0efe9e3c08151b8d"; String date = "201503030741"; String areaid = "101010100"; //密钥 String key = "a0f6ac_SmartWeatherAPI_cd7e788"; //需要加密的数据 String data = "http://open.weather.com.cn/data/?areaid=" + areaid + "&type=" + type + "&date=" + date + "&appid="; String str = WeatherSecurity.standardURLEncoder(data + appid, key); String result = data + appid.substring(0, 6); String json = HttpClientUtils.executeGet(result + "&key=" + str); System.out.println(json); } catch (Exception e) { e.printStackTrace(); } } }
[ "1qazxsw23edc" ]
1qazxsw23edc
0cfedfb6edaf8bab7fe195be44614e5e2da4b50c
ee461488c62d86f729eda976b421ac75a964114c
/tags/HtmlUnit-2.5/src/test/java/com/gargoylesoftware/htmlunit/html/LoggingRefreshHandler.java
f40d57122703ce12dcd8aa173106128b1977c5c5
[ "Apache-2.0" ]
permissive
svn2github/htmlunit
2c56f7abbd412e6d9e0efd0934fcd1277090af74
6fc1a7d70c08fb50fef1800673671fd9cada4899
refs/heads/master
2023-09-03T10:35:41.987099
2015-07-26T13:12:45
2015-07-26T13:12:45
37,107,064
0
1
null
null
null
null
UTF-8
Java
false
false
1,777
java
/* * Copyright (c) 2002-2009 Gargoyle Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.gargoylesoftware.htmlunit.html; import java.net.URL; import java.util.List; import com.gargoylesoftware.htmlunit.Page; import com.gargoylesoftware.htmlunit.RefreshHandler; /** * A handler for page refreshes that logs the refreshes but doesn't actually * perform any refreshes. * * @version $Revision$ * @author <a href="mailto:mbowler@GargoyleSoftware.com">Mike Bowler</a> * @author Daniel Gredler */ public class LoggingRefreshHandler implements RefreshHandler { private final List<Object> list_; /** * @param list the list to add data to */ public LoggingRefreshHandler(final List<Object> list) { list_ = list; } /** * Logs the requested refresh, but does not actually refresh anything. * @param page the page that is going to be refreshed * @param url the URL where the new page will be loaded * @param seconds the number of seconds to wait before reloading the page */ public void handleRefresh(final Page page, final URL url, final int seconds) { list_.add(((HtmlPage) page).getTitleText()); list_.add(url); list_.add(new Integer(seconds)); } }
[ "mguillem@5f5364db-9458-4db8-a492-e30667be6df6" ]
mguillem@5f5364db-9458-4db8-a492-e30667be6df6
1ed5c9accf9b8cd1dba9ca9860d68c384dfe5f8f
7dbe6165180bd40267bff563fe1e5c9c84b291ed
/app/src/main/java/com/lantel/home/mvp/HomeModel.java
30c3f92adeac8cda22d0edfbe78c26c965381248
[]
no_license
13302864582/Lantel360CRM_Parent
ef02380e0886f885ea6496c93e2dd87c0ca92805
b29b1aab925f83927c6122d3c73767c9cc5b8953
refs/heads/master
2020-05-22T23:38:11.039162
2019-06-25T10:50:19
2019-06-25T10:50:23
null
0
0
null
null
null
null
UTF-8
Java
false
false
515
java
package com.lantel.home.mvp; import com.lantel.mine.list.model.ChangeAccountBean; import java.util.ArrayList; import androidx.lifecycle.ViewModel; public class HomeModel extends ViewModel { private ArrayList<ChangeAccountBean> changeAccountBeans; public ArrayList<ChangeAccountBean> getChangeAccountBeans() { return changeAccountBeans; } public void setChangeAccountBeans(ArrayList<ChangeAccountBean> changeAccountBeans) { this.changeAccountBeans = changeAccountBeans; } }
[ "759030201@qq.com" ]
759030201@qq.com
d1279509ac8c3dd059790b0dc1b786e48a8674e6
f0568343ecd32379a6a2d598bda93fa419847584
/modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201211/ImageCreative.java
758e506d27ec251923e451e41572108fe2c191ff
[ "Apache-2.0" ]
permissive
frankzwang/googleads-java-lib
bd098b7b61622bd50352ccca815c4de15c45a545
0cf942d2558754589a12b4d9daa5902d7499e43f
refs/heads/master
2021-01-20T23:20:53.380875
2014-07-02T19:14:30
2014-07-02T19:14:30
21,526,492
1
0
null
null
null
null
UTF-8
Java
false
false
873
java
package com.google.api.ads.dfp.jaxws.v201211; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * * A {@code Creative} that displays an image. * * * <p>Java class for ImageCreative complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="ImageCreative"> * &lt;complexContent> * &lt;extension base="{https://www.google.com/apis/ads/publisher/v201211}BaseImageCreative"> * &lt;sequence> * &lt;/sequence> * &lt;/extension> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ImageCreative") public class ImageCreative extends BaseImageCreative { }
[ "jradcliff@google.com" ]
jradcliff@google.com
71db197e0a03f65d5e37f1fee2c021ed4d0c4133
67204b235db0a42b45a21cee78c8cb6118201837
/src/com/fengling/cms/entity/main/base/BaseContentCheck.java
0b7ea1a284ad1866781949cb264326350eeeffa4
[]
no_license
nextflower/fengling
ed5d6f636587c2cd427fb10b12f29a807c7f7f7f
11b6536f6d3c1faf3e8e6629e8cef7f90cb6c7c2
refs/heads/master
2021-01-25T05:35:44.356765
2015-05-05T15:00:41
2015-05-05T15:00:41
33,312,953
0
0
null
null
null
null
UTF-8
Java
false
false
4,424
java
package com.fengling.cms.entity.main.base; import java.io.Serializable; /** * This is an object that contains data related to the jc_content_check table. * Do not modify this class because it will be overwritten if the configuration file * related to this class is modified. * * @hibernate.class * table="jc_content_check" */ public abstract class BaseContentCheck implements Serializable { public static String REF = "ContentCheck"; public static String PROP_REJECTED = "rejected"; public static String PROP_CHECK_STEP = "checkStep"; public static String PROP_CONTENT = "content"; public static String PROP_ID = "id"; public static String PROP_CHECK_OPINION = "checkOpinion"; // constructors public BaseContentCheck () { initialize(); } /** * Constructor for primary key */ public BaseContentCheck (java.lang.Integer id) { this.setId(id); initialize(); } /** * Constructor for required fields */ public BaseContentCheck ( java.lang.Integer id, java.lang.Byte checkStep, java.lang.Boolean rejected) { this.setId(id); this.setCheckStep(checkStep); this.setRejected(rejected); initialize(); } protected void initialize () {} private int hashCode = Integer.MIN_VALUE; // primary key private java.lang.Integer id; // fields private java.lang.Byte checkStep; private java.lang.String checkOpinion; private java.lang.Boolean rejected; private java.util.Date checkDate; private com.fengling.core.entity.CmsUser reviewer; // one to one private com.fengling.cms.entity.main.Content content; /** * Return the unique identifier of this class * @hibernate.id * generator-class="foreign" * column="content_id" */ public java.lang.Integer getId () { return id; } /** * Set the unique identifier of this class * @param id the new ID */ public void setId (java.lang.Integer id) { this.id = id; this.hashCode = Integer.MIN_VALUE; } /** * Return the value associated with the column: check_step */ public java.lang.Byte getCheckStep () { return checkStep; } /** * Set the value related to the column: check_step * @param checkStep the check_step value */ public void setCheckStep (java.lang.Byte checkStep) { this.checkStep = checkStep; } /** * Return the value associated with the column: check_opinion */ public java.lang.String getCheckOpinion () { return checkOpinion; } /** * Set the value related to the column: check_opinion * @param checkOpinion the check_opinion value */ public void setCheckOpinion (java.lang.String checkOpinion) { this.checkOpinion = checkOpinion; } /** * Return the value associated with the column: is_rejected */ public java.lang.Boolean getRejected () { return rejected; } /** * Set the value related to the column: is_rejected * @param rejected the is_rejected value */ public void setRejected (java.lang.Boolean rejected) { this.rejected = rejected; } public java.util.Date getCheckDate() { return checkDate; } public void setCheckDate(java.util.Date checkDate) { this.checkDate = checkDate; } public com.fengling.core.entity.CmsUser getReviewer() { return reviewer; } public void setReviewer(com.fengling.core.entity.CmsUser reviewer) { this.reviewer = reviewer; } /** * Return the value associated with the column: content */ public com.fengling.cms.entity.main.Content getContent () { return content; } /** * Set the value related to the column: content * @param content the content value */ public void setContent (com.fengling.cms.entity.main.Content content) { this.content = content; } public boolean equals (Object obj) { if (null == obj) return false; if (!(obj instanceof com.fengling.cms.entity.main.ContentCheck)) return false; else { com.fengling.cms.entity.main.ContentCheck contentCheck = (com.fengling.cms.entity.main.ContentCheck) obj; if (null == this.getId() || null == contentCheck.getId()) return false; else return (this.getId().equals(contentCheck.getId())); } } public int hashCode () { if (Integer.MIN_VALUE == this.hashCode) { if (null == this.getId()) return super.hashCode(); else { String hashStr = this.getClass().getName() + ":" + this.getId().hashCode(); this.hashCode = hashStr.hashCode(); } } return this.hashCode; } public String toString () { return super.toString(); } }
[ "dv3333@163.com" ]
dv3333@163.com
bf114e678cfcc01ac14d36c4c782306c0a30071c
52c36ce3a9d25073bdbe002757f08a267abb91c6
/src/main/java/com/alipay/api/domain/AlipayBusinessPaymenthubQueryModel.java
de20f525dd8fddebd71d198a324f16e8294d7c82
[ "Apache-2.0" ]
permissive
itc7/alipay-sdk-java-all
d2f2f2403f3c9c7122baa9e438ebd2932935afec
c220e02cbcdda5180b76d9da129147e5b38dcf17
refs/heads/master
2022-08-28T08:03:08.497774
2020-05-27T10:16:10
2020-05-27T10:16:10
267,271,062
0
0
Apache-2.0
2020-05-27T09:02:04
2020-05-27T09:02:04
null
UTF-8
Java
false
false
2,489
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 聚合支付产品操作指令查询接口 * * @author auto create * @since 1.0, 2020-03-23 21:59:40 */ public class AlipayBusinessPaymenthubQueryModel extends AlipayObject { private static final long serialVersionUID = 3242236251678334896L; /** * 支付、打款、退款时候支付宝返回的唯一凭证id,调用方查询时候建议优先传入该值,内部处理时优先以该值为准。instruction_id和out_request_no不能同时为空。 */ @ApiField("instruction_id") private String instructionId; /** * 指令类型,表明该笔查询是支付,打款还是退款,跟out_request_no一起使用。 支付:PAY 打款:DISBURSE 退款:REFUND */ @ApiField("instruction_type") private String instructionType; /** * 商户订单号,merchant_order_no和out_request_no是一起使用。 */ @ApiField("merchant_order_no") private String merchantOrderNo; /** * 支付、打款或退款请求号,out_request_no和instruction_id不能同时为空。 */ @ApiField("out_request_no") private String outRequestNo; /** * 支付请求号,out_request_no是一起使用。 */ @ApiField("pay_request_no") private String payRequestNo; /** * 付款方信息,跟out_request_no一起使用。 */ @ApiField("payer") private UserIdentity payer; public String getInstructionId() { return this.instructionId; } public void setInstructionId(String instructionId) { this.instructionId = instructionId; } public String getInstructionType() { return this.instructionType; } public void setInstructionType(String instructionType) { this.instructionType = instructionType; } public String getMerchantOrderNo() { return this.merchantOrderNo; } public void setMerchantOrderNo(String merchantOrderNo) { this.merchantOrderNo = merchantOrderNo; } public String getOutRequestNo() { return this.outRequestNo; } public void setOutRequestNo(String outRequestNo) { this.outRequestNo = outRequestNo; } public String getPayRequestNo() { return this.payRequestNo; } public void setPayRequestNo(String payRequestNo) { this.payRequestNo = payRequestNo; } public UserIdentity getPayer() { return this.payer; } public void setPayer(UserIdentity payer) { this.payer = payer; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
ad79c92aa395b7e34620d9cf11093c1b7657aa29
963599f6f1f376ba94cbb504e8b324bcce5de7a3
/sources/com/google/android/gms/common/api/internal/zae.java
3e4823ec5943d6a68f747c0a7fa46374ceb935bb
[]
no_license
NikiHard/cuddly-pancake
563718cb73fdc4b7b12c6233d9bf44f381dd6759
3a5aa80d25d12da08fd621dc3a15fbd536d0b3d4
refs/heads/main
2023-04-09T06:58:04.403056
2021-04-20T00:45:08
2021-04-20T00:45:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,509
java
package com.google.android.gms.common.api.internal; import android.os.RemoteException; import com.google.android.gms.common.Feature; import com.google.android.gms.common.api.Status; import com.google.android.gms.common.api.internal.GoogleApiManager; import com.google.android.gms.common.api.internal.ListenerHolder; import com.google.android.gms.tasks.TaskCompletionSource; /* compiled from: com.google.android.gms:play-services-base@@17.5.0 */ public final class zae extends zac<Void> { private final zabv zac; public zae(zabv zabv, TaskCompletionSource<Void> taskCompletionSource) { super(3, taskCompletionSource); this.zac = zabv; } public final /* bridge */ /* synthetic */ void zaa(zav zav, boolean z) { } public final void zab(GoogleApiManager.zaa<?> zaa) throws RemoteException { this.zac.zaa.registerListener(zaa.zab(), this.zab); ListenerHolder.ListenerKey<?> listenerKey = this.zac.zaa.getListenerKey(); if (listenerKey != null) { zaa.zac().put(listenerKey, this.zac); } } public final Feature[] zac(GoogleApiManager.zaa<?> zaa) { return this.zac.zaa.getRequiredFeatures(); } public final boolean zad(GoogleApiManager.zaa<?> zaa) { return this.zac.zaa.zaa(); } public final /* bridge */ /* synthetic */ void zaa(Exception exc) { super.zaa(exc); } public final /* bridge */ /* synthetic */ void zaa(Status status) { super.zaa(status); } }
[ "a.amirovv@mail.ru" ]
a.amirovv@mail.ru
8699460df9802651615c0317c60c36a9e0325ef1
97b46ff38b675d934948ff3731cf1607a1cc0fc9
/DataPack/dist/game/data/scripts/handlers/skillhandlers/BeastSkills.java
d3268683bbbaae5c2e2a5e8dc0054caa6b2ece0d
[]
no_license
l2brutal/pk-elfo_H5
a6703d734111e687ad2f1b2ebae769e071a911a4
766fa2a92cb3dcde5da6e68a7f3d41603b9c037e
refs/heads/master
2020-12-28T13:33:46.142303
2016-01-20T09:53:10
2016-01-20T09:53:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,135
java
package handlers.skillhandlers; import pk.elfo.gameserver.handler.ISkillHandler; import pk.elfo.gameserver.model.L2Object; import pk.elfo.gameserver.model.actor.L2Character; import pk.elfo.gameserver.model.actor.instance.L2PcInstance; import pk.elfo.gameserver.model.actor.instance.L2TamedBeastInstance; import pk.elfo.gameserver.model.skills.L2Skill; import pk.elfo.gameserver.model.skills.L2SkillType; /** * Projeto PkElfo */ public class BeastSkills implements ISkillHandler { // private static Logger _log = Logger.getLogger(BeastSkills.class.getName()); private static final L2SkillType[] SKILL_IDS = { L2SkillType.BEAST_FEED, L2SkillType.BEAST_RELEASE, L2SkillType.BEAST_RELEASE_ALL, L2SkillType.BEAST_SKILL, L2SkillType.BEAST_ACCOMPANY }; @Override public void useSkill(L2Character activeChar, L2Skill skill, L2Object[] targets) { if (!activeChar.isPlayer()) { return; } L2SkillType type = skill.getSkillType(); L2PcInstance player = activeChar.getActingPlayer(); L2Object target = player.getTarget(); switch (type) { case BEAST_FEED: L2Object[] targetList = skill.getTargetList(activeChar); if (targetList == null) { return; } // This is just a dummy skill handler for the golden food and crystal food skills, // since the AI responce onSkillUse handles the rest. break; case BEAST_RELEASE: if ((target != null) && (target instanceof L2TamedBeastInstance)) { ((L2TamedBeastInstance) target).deleteMe(); } break; case BEAST_RELEASE_ALL: if (player.getTrainedBeasts() != null) { for (L2TamedBeastInstance beast : player.getTrainedBeasts()) { beast.deleteMe(); } } break; case BEAST_ACCOMPANY: // Unknown effect now break; case BEAST_SKILL: if ((target != null) && (target instanceof L2TamedBeastInstance)) { ((L2TamedBeastInstance) target).castBeastSkills(); } break; } } @Override public L2SkillType[] getSkillIds() { return SKILL_IDS; } }
[ "PkElfo@13720c4f-9a1f-4619-977f-b36a0ac534ba" ]
PkElfo@13720c4f-9a1f-4619-977f-b36a0ac534ba
3eee8f9d986ca8c431650e80dcd949a947117568
53330fdbf3ef129d8b8bee73a7c27b2da55f7612
/src/腾讯编程/压缩算法.java
886576557bdd711db4b09ec5fee74312e5a88ae7
[]
no_license
HuYaXing/DataStructures
a96c2c95c54abda75c88579989fb7ad1c4ccf65b
08e24e4d60ee6d1b8e09c8c172703a169b8365bf
refs/heads/master
2021-07-21T17:46:20.357646
2020-10-10T09:27:53
2020-10-10T09:27:53
220,730,480
0
0
null
null
null
null
ISO-8859-7
Java
false
false
321
java
package ΜΪΡΆ±ΰ³Μ; import java.util.Scanner; import java.util.concurrent.CountDownLatch; /** * @Author HYStar * @Date 2020/3/3 10:09 */ public class ΡΉΛυΛγ·¨ { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.nextLine(); } }
[ "911090257@qq.com" ]
911090257@qq.com
fdd086f19ce7904a9d6a3fac1034b02b56ea5b15
bbc265db09b3f315825f22decd958a565fcd8d26
/src/com/mayhem/core/util/UpdateableMob.java
a671360eb8f23121f606566668ee01d43832d2b0
[]
no_license
jlabranche/SSL2019
b175421822d2dc11abaad9f497441ba4ed546cb3
6c04fe16fa36ecdcf665b7527f9e0694f55b8fc2
refs/heads/master
2020-09-09T20:34:51.222139
2020-02-20T00:41:23
2020-02-20T00:41:23
221,561,429
0
0
null
null
null
null
UTF-8
Java
false
false
733
java
package com.mayhem.core.util; import com.mayhem.rs2.entity.World; import com.mayhem.rs2.entity.mob.Mob; /** * A updateable mob * * @author Michael Sasse * */ public class UpdateableMob { /** * The amount of players viewing this mob */ protected int viewed = 1; /** * The mob */ protected final short mob; /** * Creates a new (@UpdateableMob) * * @param mob */ public UpdateableMob(Mob mob) { this.mob = (short) mob.getIndex(); } /** * WARNING: unchecked cast */ @Override public boolean equals(Object o) { return this.mob == ((UpdateableMob) o).mob; } /** * Gets the mob */ public Mob getMob() { return World.getNpcs()[mob]; } }
[ "jean.labranche@endurance.com" ]
jean.labranche@endurance.com
49f3c1237ed10c4dee5f45ca9ee43c26108cd005
b6b0c6d8d9d4cb0baed7ff153cb895430f754b48
/modules/ui/org.jowidgets.modeler.ui/src/main/java/org/jowidgets/modeler/ui/plugins/table/IconSetMenuContributionPlugin.java
850f454d11c4f3f256bf88c803ca9b9409732673
[]
no_license
jo-source/jo-modeler
86d2dbcdb0c1689f7ffb95c36fc144270a672c96
ff0b069613c86fd800ac167929db552cd97e4c04
refs/heads/master
2021-01-17T10:35:18.379745
2017-09-30T09:14:22
2017-09-30T09:14:22
39,778,975
1
0
null
null
null
null
UTF-8
Java
false
false
2,381
java
/* * Copyright (c) 2012, grossmann * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of the jo-widgets.org 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 jo-widgets.org BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH * DAMAGE. */ package org.jowidgets.modeler.ui.plugins.table; import org.jowidgets.api.model.item.IMenuModel; import org.jowidgets.cap.ui.api.widgets.IBeanTable; import org.jowidgets.cap.ui.tools.plugin.BeanTableMenuContributionPluginAdapter; import org.jowidgets.modeler.common.bean.IIconSet; import org.jowidgets.modeler.ui.action.CreateIconsAction; import org.jowidgets.plugin.api.IPluginProperties; import org.jowidgets.tools.model.item.MenuModel; public final class IconSetMenuContributionPlugin extends BeanTableMenuContributionPluginAdapter<IIconSet> { @Override public IMenuModel getCellMenu(final IPluginProperties properties, final IBeanTable<IIconSet> table) { final MenuModel result = new MenuModel(); result.addAction(new CreateIconsAction(table.getModel())); return result; } }
[ "herr.grossmann@gmx.de" ]
herr.grossmann@gmx.de
278b6993a9fe71296f57491cb018a23de3224091
9b294c3bf262770e9bac252b018f4b6e9412e3ee
/camerazadas/source/apk/com.sonyericsson.android.camera/src-cfr-nocode/com/google/android/gms/drive/Metadata.java
deead628a6e1865d361102b2e1b32ecb09509a56
[]
no_license
h265/camera
2c00f767002fd7dbb64ef4dc15ff667e493cd937
77b986a60f99c3909638a746c0ef62cca38e4235
refs/heads/master
2020-12-30T22:09:17.331958
2015-08-25T01:22:25
2015-08-25T01:22:25
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,596
java
/* * Decompiled with CFR 0_100. */ package com.google.android.gms.drive; import com.google.android.gms.common.data.Freezable; import com.google.android.gms.drive.DriveId; import com.google.android.gms.drive.metadata.MetadataField; import java.util.Date; /* * Exception performing whole class analysis ignored. */ public abstract class Metadata implements Freezable<Metadata> { public static final int CONTENT_AVAILABLE_LOCALLY = 1; public static final int CONTENT_NOT_AVAILABLE_LOCALLY = 0; public Metadata(); protected abstract <T> T a(MetadataField<T> var1); public String getAlternateLink(); public int getContentAvailability(); public Date getCreatedDate(); public String getDescription(); public DriveId getDriveId(); public String getEmbedLink(); public String getFileExtension(); public long getFileSize(); public Date getLastViewedByMeDate(); public String getMimeType(); public Date getModifiedByMeDate(); public Date getModifiedDate(); public String getOriginalFilename(); public long getQuotaBytesUsed(); public Date getSharedWithMeDate(); public String getTitle(); public String getWebContentLink(); public String getWebViewLink(); public boolean isEditable(); public boolean isFolder(); public boolean isInAppFolder(); public boolean isPinnable(); public boolean isPinned(); public boolean isRestricted(); public boolean isShared(); public boolean isStarred(); public boolean isTrashed(); public boolean isViewed(); }
[ "jmrm@ua.pt" ]
jmrm@ua.pt
29f19f1b8fdb22db3e3b66fe6e953ac0cd45220a
51aaaae5d64ab4378e753666d5cfc2281cca2fd9
/app/src/androidTest/java/com/mahmoudelshamy/gpstracking/vehicleapp/ApplicationTest.java
a034ce5c6ef2e1dc5ee9c42eb9e69070759d5c1e
[]
no_license
Shamyyoun/GPSTrackingVehicle
033a27963a186ca264db2b20cdac0bce2c84787d
247e84940519ff094fb1ab830e357d56827c7da7
refs/heads/master
2020-04-01T15:38:18.279562
2018-10-16T19:46:01
2018-10-16T19:46:01
153,344,642
0
0
null
null
null
null
UTF-8
Java
false
false
372
java
package com.mahmoudelshamy.gpstracking.vehicleapp; import android.app.Application; import android.test.ApplicationTestCase; /** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ public class ApplicationTest extends ApplicationTestCase<Application> { public ApplicationTest() { super(Application.class); } }
[ "shamyyoun@gmail.com" ]
shamyyoun@gmail.com
61b215068fa06fa681d21dacf79a61f8705eab8a
9db6efa2f14baa0f4172272e361e1ed0c9940065
/aliyun-java-sdk-qualitycheck/src/main/java/com/aliyuncs/qualitycheck/model/v20160801/UploadAudioData4PreResponse.java
016578bea4ae482f95f16e341b57d848c35f4798
[ "Apache-2.0" ]
permissive
ResetFull/aliyun-openapi-java-sdk
31fb2c2f7c2b939df4c9067f7a221c3f2c7cef2e
e299d1778d514cd555c870a3b1de117ae3b34474
refs/heads/master
2021-08-31T04:50:07.771585
2017-12-20T12:28:50
2017-12-20T12:28:50
114,978,860
1
0
null
2017-12-21T07:57:54
2017-12-21T07:57:54
null
UTF-8
Java
false
false
2,126
java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package com.aliyuncs.qualitycheck.model.v20160801; import com.aliyuncs.AcsResponse; import com.aliyuncs.qualitycheck.transform.v20160801.UploadAudioData4PreResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class UploadAudioData4PreResponse extends AcsResponse { private String requestId; private Boolean success; private String code; private String message; private String data; public String getRequestId() { return this.requestId; } public void setRequestId(String requestId) { this.requestId = requestId; } public Boolean getSuccess() { return this.success; } public void setSuccess(Boolean success) { this.success = success; } public String getCode() { return this.code; } public void setCode(String code) { this.code = code; } public String getMessage() { return this.message; } public void setMessage(String message) { this.message = message; } public String getData() { return this.data; } public void setData(String data) { this.data = data; } @Override public UploadAudioData4PreResponse getInstance(UnmarshallerContext context) { return UploadAudioData4PreResponseUnmarshaller.unmarshall(this, context); } }
[ "haowei.yao@alibaba-inc.com" ]
haowei.yao@alibaba-inc.com
5928fe890f41fb1537323adb2bb934b026abddc2
a05e1a01a49a59129cdd71c1fe843c910a35ed8c
/aws-java-sdk-route53/src/main/java/com/amazonaws/services/route53/model/transform/GetHealthCheckLastFailureReasonResultStaxUnmarshaller.java
a3ee274bc1919de3ee286b6a1e735e7dbcce9371
[ "Apache-2.0", "JSON" ]
permissive
lenadkn/java-sdk-test-2
cd36997e44cd3926831218b2da7c71deda8c2b26
28375541f8a4ae27417419772190a8de2b68fc32
refs/heads/master
2021-01-20T20:36:53.719764
2014-12-19T00:38:57
2014-12-19T00:38:57
65,262,893
1
0
null
null
null
null
UTF-8
Java
false
false
2,724
java
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.route53.model.transform; import java.util.Map; import java.util.Map.Entry; import javax.xml.stream.events.XMLEvent; import com.amazonaws.services.route53.model.*; import com.amazonaws.transform.Unmarshaller; import com.amazonaws.transform.MapEntry; import com.amazonaws.transform.StaxUnmarshallerContext; import com.amazonaws.transform.SimpleTypeStaxUnmarshallers.*; /** * Get Health Check Last Failure Reason Result StAX Unmarshaller */ public class GetHealthCheckLastFailureReasonResultStaxUnmarshaller implements Unmarshaller<GetHealthCheckLastFailureReasonResult, StaxUnmarshallerContext> { public GetHealthCheckLastFailureReasonResult unmarshall(StaxUnmarshallerContext context) throws Exception { GetHealthCheckLastFailureReasonResult getHealthCheckLastFailureReasonResult = new GetHealthCheckLastFailureReasonResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return getHealthCheckLastFailureReasonResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("HealthCheckObservations/HealthCheckObservation", targetDepth)) { getHealthCheckLastFailureReasonResult.getHealthCheckObservations().add(HealthCheckObservationStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return getHealthCheckLastFailureReasonResult; } } } } private static GetHealthCheckLastFailureReasonResultStaxUnmarshaller instance; public static GetHealthCheckLastFailureReasonResultStaxUnmarshaller getInstance() { if (instance == null) instance = new GetHealthCheckLastFailureReasonResultStaxUnmarshaller(); return instance; } }
[ "aws@amazon.com" ]
aws@amazon.com
ab882a281f0fdf9900fc4f715cd1e406a7458125
f551ac18a556af60d50d32a175c8037aa95ec3ac
/shop/com/enation/app/shop/core/model/LimitBuy.java
eb1ea6ed269288633c3617deec9438220c7feb28
[]
no_license
yexingf/cxcar
06dfc7b7970f09dae964827fcf65f19fa39d35d1
0ddcf144f9682fa2847b9a350be91cedec602c60
refs/heads/master
2021-05-15T05:40:04.396174
2018-01-09T09:46:18
2018-01-09T09:46:18
116,647,698
0
5
null
null
null
null
UTF-8
Java
false
false
2,134
java
package com.enation.app.shop.core.model; import java.util.Date; import java.util.List; import java.util.Map; import com.enation.eop.sdk.utils.UploadUtil; import com.enation.framework.database.NotDbField; import com.enation.framework.database.PrimaryKeyField; import com.enation.framework.util.DateUtil; /** * 限时抢购 * * @author kingapex * */ public class LimitBuy { private Integer id; private String name; private long start_time; private long end_time; private long add_time; private String img; private int is_index; //限时购买商品对照列表,非数据库字段 private List<LimitBuyGoods> limitBuyGoodsList; private List<Map> goodsList; @NotDbField public String getEndTime(){ return DateUtil.toString(new Date( end_time*1000), "yyyy/MM/dd,HH:00:00"); } @NotDbField public List<Map> getGoodsList() { return goodsList; } public void setGoodsList(List<Map> goodsList) { this.goodsList = goodsList; } @NotDbField public List<LimitBuyGoods> getLimitBuyGoodsList() { return limitBuyGoodsList; } public void setLimitBuyGoodsList(List<LimitBuyGoods> limitBuyGoodsList) { this.limitBuyGoodsList = limitBuyGoodsList; } @PrimaryKeyField public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public long getStart_time() { return start_time; } public void setStart_time(long startTime) { start_time = startTime; } public long getEnd_time() { return end_time; } public void setEnd_time(long endTime) { end_time = endTime; } public long getAdd_time() { return add_time; } public void setAdd_time(long addTime) { add_time = addTime; } public String getImg() { return img; } public void setImg(String img) { this.img = img; } //转换路径后的图片路径,非数据库字段 @NotDbField public String getImage() { return UploadUtil.replacePath(img); } public int getIs_index() { return is_index; } public void setIs_index(int isIndex) { is_index = isIndex; } }
[ "274674758_ye@sina.com" ]
274674758_ye@sina.com
3285c9cab28aed140e26231441b49e701d79cdad
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/33/33_adc1fcc9cc7340b73bd3091713634bcb941d04e5/CreationException/33_adc1fcc9cc7340b73bd3091713634bcb941d04e5_CreationException_s.java
a67d83c05daced32882769c53391efa62376389a
[]
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
844
java
/******************************************************************************* * Forwarding on Gates Simulator/Emulator * Copyright (C) 2012, Integrated Communication Systems Group, TU Ilmenau. * * This program and the accompanying materials are dual-licensed under either * the terms of the Eclipse Public License v1.0 as published by the Eclipse * Foundation * * or (per the licensee's choosing) * * under the terms of the GNU General Public License version 2 as published * by the Free Software Foundation. ******************************************************************************/ package de.tuilmenau.ics.fog.exceptions; public class CreationException extends InvalidParameterException { public CreationException(String errorMessage, Throwable cause) { super(errorMessage, cause); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
6481cdf1d2079ab695e7cc7ffa4cde828e668563
b57351f36dc49015f6ab9b92c447915c700bca2d
/quickstart-kubernetes/src/main/java/org/quickstart/kubernetes/fabric8io/kubernetes/examples/PersistentVolumeExample.java
ef1445fcd9cba785401a74b341a4c989e7f35239
[ "Apache-2.0" ]
permissive
youngzil/quickstart-container
b03b61f16d5d2900ff6e04591b4aefa256f5579e
b94273e240e24a3df57c2034b7195aff52809888
refs/heads/master
2022-08-28T21:40:00.005384
2022-08-25T15:13:57
2022-08-25T15:13:57
140,260,150
1
2
Apache-2.0
2022-03-31T18:47:19
2018-07-09T09:07:45
Java
UTF-8
Java
false
false
3,142
java
/** * Copyright (C) 2015 Red Hat, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.quickstart.kubernetes.fabric8io.kubernetes.examples; import io.fabric8.kubernetes.api.model.NodeSelectorRequirementBuilder; import io.fabric8.kubernetes.api.model.PersistentVolume; import io.fabric8.kubernetes.api.model.PersistentVolumeBuilder; import io.fabric8.kubernetes.api.model.Quantity; import io.fabric8.kubernetes.client.Config; import io.fabric8.kubernetes.client.ConfigBuilder; import io.fabric8.kubernetes.client.DefaultKubernetesClient; import io.fabric8.kubernetes.client.KubernetesClient; import io.fabric8.kubernetes.client.KubernetesClientException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.Arrays; import java.util.Collections; public class PersistentVolumeExample { private static final Logger logger = LoggerFactory.getLogger(PodDisruptionBudgetExample.class); public static void main(String args[]) throws InterruptedException { String master = "https://192.168.99.100:8443/"; if (args.length == 1) { master = args[0]; } log("Using master with url ", master); Config config = new ConfigBuilder().withMasterUrl(master).build(); try (final KubernetesClient client = new DefaultKubernetesClient(config)) { log("Creating persistent volume object"); PersistentVolume pv = new PersistentVolumeBuilder() .withNewMetadata().withName("example-local-pv").endMetadata() .withNewSpec() .addToCapacity(Collections.singletonMap("storage", new Quantity("500Gi"))) .withAccessModes("ReadWriteOnce") .withPersistentVolumeReclaimPolicy("Retain") .withStorageClassName("local-storage") .withNewLocal() .withPath("/mnt/disks/vol1") .endLocal() .withNewNodeAffinity() .withNewRequired() .addNewNodeSelectorTerm() .withMatchExpressions(Arrays.asList(new NodeSelectorRequirementBuilder() .withKey("kubernetes.io/hostname") .withOperator("In") .withValues("my-node") .build() )) .endNodeSelectorTerm() .endRequired() .endNodeAffinity() .endSpec() .build(); client.persistentVolumes().create(pv); log("Successfully created Persistent Volume object"); } catch (KubernetesClientException e) { log("Could not create resource", e.getMessage()); } } private static void log(String action, Object obj) { logger.info("{}: {}", action, obj); } private static void log(String action) { logger.info(action); } }
[ "youngzil@163.com" ]
youngzil@163.com