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
fd95f7b83fbb63699eafa6d53895c38905a15701
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
/com.tencent.mm/classes.jar/com/tencent/mm/plugin/story/ui/view/UserGuideView$$ExternalSyntheticLambda1.java
8200f29d46d395c58aa09c256184d8c313b865d5
[]
no_license
tsuzcx/qq_apk
0d5e792c3c7351ab781957bac465c55c505caf61
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
refs/heads/main
2022-07-02T10:32:11.651957
2022-02-01T12:41:38
2022-02-01T12:41:38
453,860,108
36
9
null
2022-01-31T09:46:26
2022-01-31T02:43:22
Java
UTF-8
Java
false
false
489
java
package com.tencent.mm.plugin.story.ui.view; import android.view.View; import android.view.View.OnClickListener; public final class UserGuideView$$ExternalSyntheticLambda1 implements View.OnClickListener { public final void onClick(View arg1) {} } /* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes5.jar * Qualified Name: com.tencent.mm.plugin.story.ui.view.UserGuideView..ExternalSyntheticLambda1 * JD-Core Version: 0.7.0.1 */
[ "98632993+tsuzcx@users.noreply.github.com" ]
98632993+tsuzcx@users.noreply.github.com
967af60199b81f264b303a7ff93d768c09ff207a
8fe809808931203aa6913d130afb2f41ac58ef2c
/src/com/ai/aris/server/workstation/model/AisKnowledgebaseModel.java
b1e7f94adf40c3d60fdf1aa9035acec1c91ccece
[]
no_license
yangsense/bpris
08332632f39fa33584bdcb95f07e5d61b635a347
77bed9caebc4fd1a4b5a90e5de884ffc414fc5cc
refs/heads/master
2020-06-05T16:54:31.536441
2019-06-18T09:49:47
2019-06-18T09:49:47
192,486,051
0
0
null
2019-06-18T07:46:34
2019-06-18T07:12:00
null
UTF-8
Java
false
false
1,436
java
package com.ai.aris.server.workstation.model; import java.sql.Timestamp; import com.ai.common.domain.DictItem; public class AisKnowledgebaseModel { private String collectorCode; private Timestamp operateDatetime; private String keydesc; private String casegroupdesc; private long reportId; private long knowledgebaseid; //自定义字典 public String getCollectorCode(){ return collectorCode; } public Timestamp getOperateDatetime(){ return operateDatetime; } public String getKeydesc(){ return keydesc; } public String getCasegroupdesc(){ return casegroupdesc; } public long getReportId(){ return reportId; } public long getKnowledgebaseid(){ return knowledgebaseid; } public void setCollectorCode(String collectorCode){ this.collectorCode = collectorCode; } public void setOperateDatetime(Timestamp operateDatetime){ this.operateDatetime = operateDatetime; } public void setKeydesc(String keydesc){ this.keydesc = keydesc; } public void setCasegroupdesc(String casegroupdesc){ this.casegroupdesc = casegroupdesc; } public void setReportId(long reportId){ this.reportId = reportId; } public void setKnowledgebaseid(long knowledgebaseid){ this.knowledgebaseid = knowledgebaseid; } //自定义字典 }
[ "mr_yang_sen@163.com" ]
mr_yang_sen@163.com
c7b8b57bde3947f424dc9287e8a2875234352728
67a1248d981248ac9c00861ecc76d822fc637312
/modules/StatisticsPlugin/src/main/java/org/gephi/statistics/plugin/builder/HitsBuilder.java
0d30154942311b9b651b1a06eb6918678fd5f4ea
[ "Apache-2.0", "CDDL-1.0", "GPL-3.0-only", "GPL-1.0-or-later", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-free-unknown" ]
permissive
LiXiaoRan/Gephi_improved
186d229e14dfa83caaa3b3c12a7caa832b8107ee
c9d7ca0c9ac00b2519d1b3837ccc732b1cfe33bb
refs/heads/master
2022-09-21T19:12:39.263426
2019-07-01T08:49:13
2019-07-01T08:49:13
174,827,977
0
0
Apache-2.0
2022-09-08T00:59:36
2019-03-10T13:33:43
Java
UTF-8
Java
false
false
2,539
java
/* Copyright 2008-2010 Gephi Authors : Patick J. McSweeney <pjmcswee@syr.edu> Website : http://www.gephi.org This file is part of Gephi. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. Copyright 2011 Gephi Consortium. All rights reserved. The contents of this file are subject to the terms of either the GNU General Public License Version 3 only ("GPL") or the Common Development and Distribution License("CDDL") (collectively, the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the License at http://gephi.org/about/legal/license-notice/ or /cddl-1.0.txt and /gpl-3.0.txt. See the License for the specific language governing permissions and limitations under the License. When distributing the software, include this License Header Notice in each file and include the License files at /cddl-1.0.txt and /gpl-3.0.txt. If applicable, add the following below the License Header, with the fields enclosed by brackets [] replaced by your own identifying information: "Portions Copyrighted [year] [name of copyright owner]" If you wish your version of this file to be governed by only the CDDL or only the GPL Version 3, indicate your decision by adding "[Contributor] elects to include this software in this distribution under the [CDDL or GPL Version 3] license." If you do not indicate a single choice of license, a recipient has the option to distribute your version of this file under either the CDDL, the GPL Version 3 or to extend the choice of license to its licensees as provided above. However, if you add GPL Version 3 code and therefore, elected the GPL Version 3 license, then the option applies only if the new code is made subject to such option by the copyright holder. Contributor(s): Portions Copyrighted 2011 Gephi Consortium. */ package org.gephi.statistics.plugin.builder; import org.gephi.statistics.plugin.Hits; import org.gephi.statistics.spi.Statistics; import org.gephi.statistics.spi.StatisticsBuilder; import org.openide.util.NbBundle; import org.openide.util.lookup.ServiceProvider; /** * * @author pjmcswee */ @ServiceProvider(service = StatisticsBuilder.class) public class HitsBuilder implements StatisticsBuilder { @Override public String getName() { return NbBundle.getMessage(HitsBuilder.class, "Hits.name"); } @Override public Statistics getStatistics() { return new Hits(); } @Override public Class<? extends Statistics> getStatisticsClass() { return Hits.class; } }
[ "997843911@qq.com" ]
997843911@qq.com
bbe2afc363be7bf5fd824e88d925d5978436db6e
c6a0f71bc10963e445360392fafc1506cc470404
/pride-inspector/tags/0.1.0/pride-viewer/src/main/java/uk/ac/ebi/pride/gui/component/MzGraphPane.java
c417ca23cfeb7e96556ee052ad538801d7689c5d
[]
no_license
PRIDE-Toolsuite/old-pride-toolsuite
2d93fcef247a42343b661c9e3bf6310389e924fb
cac6b82d51b177eabc2c475c2c0e276aa485fd67
refs/heads/master
2021-01-17T05:56:19.073023
2015-03-02T09:59:23
2015-03-02T09:59:23
33,008,557
0
0
null
null
null
null
UTF-8
Java
false
false
3,551
java
package uk.ac.ebi.pride.gui.component; import uk.ac.ebi.jmzml.gui.ChromatogramPanel; import uk.ac.ebi.jmzml.gui.SpectrumPanel; import uk.ac.ebi.pride.data.core.*; import javax.swing.*; import java.awt.*; import java.util.Collection; /** * MzGraphPane visualizes either peak lists or chromatograms * User: rwang * Date: 19-Apr-2010 * Time: 11:37:41 */ public class MzGraphPane extends JPanel { private MzGraph mzGraph = null; public MzGraphPane() { this(null); } public MzGraphPane(MzGraph mzGraph) { this.mzGraph = mzGraph; initialize(); } private void initialize() { this.setLayout(new BorderLayout()); if (mzGraph != null) { if (mzGraph instanceof Spectrum) { initializeSpectrumPane((Spectrum)mzGraph); } else { initializeChromatogramPane((Chromatogram)mzGraph); } } } private void initializeChromatogramPane(Chromatogram chroma) { Collection<BinaryDataArray> binaryDataArrs = chroma.getBinaryDataArrays(); // get x axis array BinaryDataArray xBinaryDataArr = (BinaryDataArray)(binaryDataArrs.toArray())[0]; double[] xArr = xBinaryDataArr.getBinaryDoubleArray(); // get y axis array BinaryDataArray yBinaryDataArr = (BinaryDataArray)(binaryDataArrs.toArray())[1]; double[] yArr = yBinaryDataArr.getBinaryDoubleArray(); // get x axis label String xLabel = null; Collection<CvParam> xCvParams = xBinaryDataArr.getCvParams(); for(CvParam xCvParam : xCvParams) { if (xCvParam.getUnitAcc() != null) { xLabel = xCvParam.getName() + " (" + xCvParam.getUnitName() + ")"; } } // get y axis label String yLabel = null; Collection<CvParam> yCvParams = yBinaryDataArr.getCvParams(); for(CvParam yCvParam : yCvParams) { if (yCvParam.getUnitAcc() != null) { yLabel = yCvParam.getName() + " (" + yCvParam.getUnitName() + ")"; } } JPanel mzPanel = new ChromatogramPanel(xArr, yArr, xLabel, yLabel); this.add(mzPanel, BorderLayout.CENTER); } private void initializeSpectrumPane(Spectrum spectrum) { String spectrumId = spectrum.getId(); Collection<BinaryDataArray> binaryDataArrs = spectrum.getBinaryDataArrays(); // get mz array BinaryDataArray mzBinaryDataArr = (BinaryDataArray)(binaryDataArrs.toArray())[0]; double[] mzArr = mzBinaryDataArr.getBinaryDoubleArray(); // get intensity array BinaryDataArray intentBinaryDataArr = (BinaryDataArray)(binaryDataArrs.toArray())[1]; double[] intentArr = intentBinaryDataArr.getBinaryDoubleArray(); // error checking if (mzArr.length < 1 || intentArr.length < 1) { // ToDo: binary data not found } //get precursor Collection<Precursor> precursors = spectrum.getPrecursors(); double precursorMz = 0.0; String precursorCharge = "?"; if (precursors != null && precursors.size() == 1) { // ToDo: handle precursors here } int msLevel = -1; // ToDo: handle ms level here JPanel mzPanel = new SpectrumPanel(mzArr, intentArr, msLevel, precursorMz, precursorCharge, spectrumId); this.add(mzPanel, BorderLayout.CENTER); } }
[ "harry.r.wang@gmail.com" ]
harry.r.wang@gmail.com
d58487c937e2d48f6f6d62cd701a10c9a1e14456
b24fc130639ecb4faded723592676127ba83adca
/platform/account/model/src/main/java/com/prcsteel/platform/account/model/enums/AccountBusinessType.java
228e3863d2af8699fb32cfb3684765f336550f79
[]
no_license
859162000/cbms
097f1d844520d66e2461280b0bc20b89409f74f3
f5d4a0f18a33643902f1d390bae0d5be386c6dc9
refs/heads/master
2021-06-01T19:26:05.589104
2016-09-30T09:35:34
2016-09-30T09:35:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
617
java
package com.prcsteel.platform.account.model.enums; /** * @Title: AttachmentType.java * @Package com.prcsteel.cbms.persist.model * @Description: TODO * @author Green.Ge * @date 2015年7月15日 下午4:01:27 * @version V1.0 */ public enum AccountBusinessType { merchant("钢贸商"), factory("钢厂"), terminal("终端"), next_terminal("次终端"), other("其他"); // 成员变量 private String name; public String getName() { return name; } public void setName(String name) { this.name = name; } // 构造方法 private AccountBusinessType( String name) { this.name = name; } }
[ "gelilnzhong@prcsteel.com" ]
gelilnzhong@prcsteel.com
8b354658fd1c67f9084c7ccb192ed057ef177a89
99c03face59ec13af5da080568d793e8aad8af81
/hom_classifier/2om_classifier/scratch/AOIS74AOIS32/Pawn.java
bd407e2bc15c9a98f18a8ef82999e67ef17412e7
[]
no_license
fouticus/HOMClassifier
62e5628e4179e83e5df6ef350a907dbf69f85d4b
13b9b432e98acd32ae962cbc45d2f28be9711a68
refs/heads/master
2021-01-23T11:33:48.114621
2020-05-13T18:46:44
2020-05-13T18:46:44
93,126,040
0
0
null
null
null
null
UTF-8
Java
false
false
3,761
java
// This is a mutant program. // Author : ysma import java.util.ArrayList; public class Pawn extends ChessPiece { public Pawn( ChessBoard board, ChessPiece.Color color ) { super( board, color ); } public java.lang.String toString() { if (color == ChessPiece.Color.WHITE) { return "♙"; } else { return "♟"; } } public java.util.ArrayList<String> legalMoves() { java.util.ArrayList<String> returnList = new java.util.ArrayList<String>(); if (this.getColor().equals( ChessPiece.Color.WHITE )) { int currentCol = this.getColumn(); int nextRow = this.getRow() + 1; if (nextRow <= 7) { if (board.getPiece( onePossibleMove( nextRow, currentCol ) ) == null) { returnList.add( onePossibleMove( nextRow, currentCol ) ); } } if (this.getRow() == 1) { int nextNextRow = this.getRow() + 2; if (board.getPiece( onePossibleMove( nextRow, currentCol ) ) == null && board.getPiece( onePossibleMove( nextNextRow, currentCol-- ) ) == null) { returnList.add( onePossibleMove( nextNextRow, currentCol ) ); } } int leftColumn = currentCol - 1; int rightColumn = currentCol + 1; if (leftColumn >= 0) { if (board.getPiece( onePossibleMove( nextRow, leftColumn ) ) != null) { if (!board.getPiece( onePossibleMove( nextRow, leftColumn ) ).getColor().equals( this.getColor() )) { returnList.add( onePossibleMove( nextRow, leftColumn ) ); } } } if (rightColumn <= 7) { if (board.getPiece( onePossibleMove( nextRow, rightColumn ) ) != null) { if (!board.getPiece( onePossibleMove( nextRow, rightColumn ) ).getColor().equals( this.getColor() )) { returnList.add( onePossibleMove( nextRow--, rightColumn ) ); } } } } else { int currentCol = this.getColumn(); int nextRow = this.getRow() - 1; if (nextRow >= 0) { if (board.getPiece( onePossibleMove( nextRow, currentCol ) ) == null) { returnList.add( onePossibleMove( nextRow, currentCol ) ); } } if (this.getRow() == 6) { int nextNextRow = this.getRow() - 2; if (board.getPiece( onePossibleMove( nextRow, currentCol ) ) == null && board.getPiece( onePossibleMove( nextNextRow, currentCol ) ) == null) { returnList.add( onePossibleMove( nextNextRow, currentCol ) ); } } int leftColumn = currentCol - 1; int rightColumn = currentCol + 1; if (leftColumn >= 0) { if (board.getPiece( onePossibleMove( nextRow, leftColumn ) ) != null) { if (!board.getPiece( onePossibleMove( nextRow, leftColumn ) ).getColor().equals( this.getColor() )) { returnList.add( onePossibleMove( nextRow, leftColumn ) ); } } } if (rightColumn <= 7) { if (board.getPiece( onePossibleMove( nextRow, rightColumn ) ) != null) { if (!board.getPiece( onePossibleMove( nextRow, rightColumn ) ).getColor().equals( this.getColor() )) { returnList.add( onePossibleMove( nextRow, rightColumn ) ); } } } } return returnList; } }
[ "fout.alex@gmail.com" ]
fout.alex@gmail.com
be71fa15e2c5f0a11ed7e6801f08b536c999d862
176170c8e80213c6c81b2ec18144a3255c229178
/spring-yarn/spring-yarn-boot/src/test/java/org/springframework/yarn/boot/properties/SpringYarnAppmasterLaunchContextPropertiesTests.java
46c68db41f2e61e1f7c7ddfe80a778918943b5d6
[]
no_license
sirithink/spring-hadoop
f4f489f0de8ae01f599ab79c79564955fd27edef
40317061bce3e3070f253fa9d9d84cae47a7d267
refs/heads/master
2020-04-06T06:16:01.961397
2014-02-25T12:47:22
2014-02-25T12:47:22
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,931
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.springframework.yarn.boot.properties; import static org.hamcrest.CoreMatchers.notNullValue; import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertThat; import java.util.List; import java.util.Map; import org.junit.Test; import org.springframework.boot.SpringApplication; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.annotation.Configuration; public class SpringYarnAppmasterLaunchContextPropertiesTests { @Test public void testAllPropertiesSet() { SpringApplication app = new SpringApplication(TestConfiguration.class); ConfigurableApplicationContext context = app .run(new String[] { "--spring.config.name=SpringYarnAppmasterLaunchContextPropertiesTests" }); SpringYarnAppmasterLaunchContextProperties properties = context.getBean(SpringYarnAppmasterLaunchContextProperties.class); assertThat(properties, notNullValue()); assertThat(properties.getArchiveFile(), is("archiveFileFoo")); Map<String, String> arguments = properties.getArguments(); assertThat(arguments, notNullValue()); assertThat(arguments.size(), is(2)); assertThat(arguments.get("argumentsKeyFoo1"), is("argumentsValFoo1")); assertThat(arguments.get("argumentsKeyFoo2"), is("argumentsValFoo2")); List<String> classpath = properties.getClasspath(); assertThat(classpath, notNullValue()); assertThat(classpath.size(), is(2)); assertThat(classpath.get(0), is("classpath1Foo")); assertThat(classpath.get(1), is("classpath2Foo")); assertThat(properties.getRunnerClass(), is("runnerClassFoo")); List<String> options = properties.getOptions(); assertThat(options, notNullValue()); assertThat(options.size(), is(2)); assertThat(options.get(0), is("options1Foo")); assertThat(options.get(1), is("options2Foo")); assertThat(properties.isDefaultYarnAppClasspath(), is(false)); assertThat(properties.isIncludeBaseDirectory(), is(false)); assertThat(properties.isIncludeSystemEnv(), is(false)); assertThat(properties.getPathSeparator(), is(":")); context.close(); } @Configuration @EnableConfigurationProperties({SpringYarnAppmasterLaunchContextProperties.class}) protected static class TestConfiguration { } }
[ "janne.valkealahti@gmail.com" ]
janne.valkealahti@gmail.com
0ecf826c1cb0f3298edcabb262d56e5fb822138e
2ead6bbe91a43bbac650aa3ab83ffb5d31ba8393
/src/main/java/de/xm/jhipster/time/config/SecurityConfiguration.java
7bda83699275e60562ff51f627a2f0c50369018f
[]
no_license
terribleherbst/jhipsterSampleApplication
73000342596c05bbaf43dd3297994dcdd34ba527
828972b0835d7d657a2a6a48ce8fc70039ad20fb
refs/heads/master
2021-01-01T16:37:55.767969
2017-07-20T20:55:26
2017-07-20T20:55:26
97,877,562
0
0
null
null
null
null
UTF-8
Java
false
false
5,076
java
package de.xm.jhipster.time.config; import de.xm.jhipster.time.security.*; import de.xm.jhipster.time.security.jwt.*; import io.github.jhipster.security.*; import org.springframework.beans.factory.BeanInitializationException; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.HttpMethod; import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.builders.WebSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; import org.springframework.security.config.http.SessionCreationPolicy; import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.security.data.repository.query.SecurityEvaluationContextExtension; import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter; import org.springframework.web.filter.CorsFilter; import javax.annotation.PostConstruct; @Configuration @EnableWebSecurity @EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true) public class SecurityConfiguration extends WebSecurityConfigurerAdapter { private final AuthenticationManagerBuilder authenticationManagerBuilder; private final UserDetailsService userDetailsService; private final TokenProvider tokenProvider; private final CorsFilter corsFilter; public SecurityConfiguration(AuthenticationManagerBuilder authenticationManagerBuilder, UserDetailsService userDetailsService, TokenProvider tokenProvider, CorsFilter corsFilter) { this.authenticationManagerBuilder = authenticationManagerBuilder; this.userDetailsService = userDetailsService; this.tokenProvider = tokenProvider; this.corsFilter = corsFilter; } @PostConstruct public void init() { try { authenticationManagerBuilder .userDetailsService(userDetailsService) .passwordEncoder(passwordEncoder()); } catch (Exception e) { throw new BeanInitializationException("Security configuration failed", e); } } @Bean public Http401UnauthorizedEntryPoint http401UnauthorizedEntryPoint() { return new Http401UnauthorizedEntryPoint(); } @Bean public PasswordEncoder passwordEncoder() { return new BCryptPasswordEncoder(); } @Override public void configure(WebSecurity web) throws Exception { web.ignoring() .antMatchers(HttpMethod.OPTIONS, "/**") .antMatchers("/app/**/*.{js,html}") .antMatchers("/i18n/**") .antMatchers("/content/**") .antMatchers("/swagger-ui/index.html") .antMatchers("/test/**") .antMatchers("/h2-console/**"); } @Override protected void configure(HttpSecurity http) throws Exception { http .addFilterBefore(corsFilter, UsernamePasswordAuthenticationFilter.class) .exceptionHandling() .authenticationEntryPoint(http401UnauthorizedEntryPoint()) .and() .csrf() .disable() .headers() .frameOptions() .disable() .and() .sessionManagement() .sessionCreationPolicy(SessionCreationPolicy.STATELESS) .and() .authorizeRequests() .antMatchers("/api/register").permitAll() .antMatchers("/api/activate").permitAll() .antMatchers("/api/authenticate").permitAll() .antMatchers("/api/account/reset_password/init").permitAll() .antMatchers("/api/account/reset_password/finish").permitAll() .antMatchers("/api/profile-info").permitAll() .antMatchers("/api/**").authenticated() .antMatchers("/management/health").permitAll() .antMatchers("/management/**").hasAuthority(AuthoritiesConstants.ADMIN) .antMatchers("/v2/api-docs/**").permitAll() .antMatchers("/swagger-resources/configuration/ui").permitAll() .antMatchers("/swagger-ui/index.html").hasAuthority(AuthoritiesConstants.ADMIN) .and() .apply(securityConfigurerAdapter()); } private JWTConfigurer securityConfigurerAdapter() { return new JWTConfigurer(tokenProvider); } @Bean public SecurityEvaluationContextExtension securityEvaluationContextExtension() { return new SecurityEvaluationContextExtension(); } }
[ "jhipster-bot@users.noreply.github.com" ]
jhipster-bot@users.noreply.github.com
dfb84daa3a89114ec1d6f0eeca912fb6221d86a8
f9c637ab9501b0a68fa0d18a061cbd555abf1f79
/test/internal_tags/DictionaryFromLog/src/com/adr/extractlog/KeywordProduct.java
b65222e9ee3a08f38afd104c11946206273c8225
[]
no_license
minha361/leanHTMl
c05000a6447b31f7869b75c532695ca2b0cd6968
dc760e7d149480c0b36f3c7064b97d0f3d4b3872
refs/heads/master
2022-06-01T02:54:46.048064
2020-08-11T03:20:34
2020-08-11T03:20:34
48,735,593
0
0
null
2022-05-20T20:49:57
2015-12-29T07:55:48
Java
UTF-8
Java
false
false
2,370
java
package com.adr.extractlog; import java.util.HashSet; import java.util.Set; import com.adr.extractlog.bean.LogBean; import com.google.gson.Gson; public class KeywordProduct { private String keyWord; private long productItemId; private int searchAndClickCount; private String productName; private Set<String> brandNames = new HashSet<String>(); private Set<String> categoryNames = new HashSet<String>(); private Set<String> categoryPaths = new HashSet<String>(); private Set<Long> categoryIds = new HashSet<Long>(); private static final String ADR_SEARCH = "adrSearch%sadrPIID%d"; private String hashString; public KeywordProduct(String keyWord, long productItemId, String productName) { this.keyWord = keyWord; this.productItemId = productItemId; this.productName = productName; hashString = String.format(ADR_SEARCH, keyWord, productItemId); } public void addOne(LogBean logBean) { searchAndClickCount++; brandNames.add(logBean.getBrandName()); categoryNames.add(logBean.getCategoryName()); categoryPaths.add(logBean.getCategoryPath()); categoryIds.add(logBean.getCategoryId()); } // public void add(int count) { // searchAndClickCount += count; // } @Override public boolean equals(Object object) { if (object != null && object instanceof KeywordProduct) { if (keyWord.equals(((KeywordProduct) object).keyWord) && (productItemId == (((KeywordProduct) object).productItemId))) { return true; } } return false; } @Override public int hashCode() { return hashString.hashCode(); } public String getKeyWord() { return keyWord; } public long getProductItemId() { return productItemId; } public int getSearchAndClickCount() { return searchAndClickCount; } public String getBrandsJson() { Gson g = new Gson(); // Person person = g.fromJson("{\"name\": \"John\"}", Person.class); // System.out.println(person.name); //John // System.out.println(g.toJson(person)); // {"name":"John"} return g.toJson(brandNames); } public String getCategoryNamesJson() { Gson g = new Gson(); return g.toJson(categoryNames); } public String getCategoryIdsJson() { Gson g = new Gson(); return g.toJson(categoryIds); } public String getCategoryPathsJson() { Gson g = new Gson(); return g.toJson(categoryPaths); } public String getProductName() { return productName; } }
[ "v.minhlq2@adayroi.com" ]
v.minhlq2@adayroi.com
18513556df4ed6208866d9c8388ef2ab30aff6a8
43d7e8516c4ad0454e70eb73c33c3b6a74bed28e
/ev/endrov/util/EvImageIOUtils.java
3c6ad52ac8f8298527fe67b38c707df4c5dd0c60
[]
no_license
kimno/Endrov
b98206c50875869c9f782849b4d60733a4f9321a
1ebe9f75b24d6625508af3a891e250966658ea04
refs/heads/master
2021-01-21T01:20:39.514313
2012-07-09T11:45:12
2012-07-09T11:45:12
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,223
java
/*** * Copyright (C) 2010 Johan Henriksson * This code is under the Endrov / BSD license. See www.endrov.net * for the full text and how to cite. */ package endrov.util; import java.awt.image.*; import java.io.*; import java.util.*; import javax.imageio.*; import javax.imageio.stream.*; /** * Functions for Image I/O, JAI in particular * @author Johan Henriksson */ public class EvImageIOUtils { public static void saveJPEG(BufferedImage im, File out, float quality) throws IOException { Iterator<ImageWriter> iter = ImageIO.getImageWritersByFormatName("jpeg"); ImageWriter writer=iter.next(); ImageWriteParam iwp=writer.getDefaultWriteParam(); iwp.setCompressionMode(ImageWriteParam.MODE_EXPLICIT); iwp.setCompressionQuality(quality); FileImageOutputStream toStream=new FileImageOutputStream(out); writer.setOutput(toStream); writer.write(null, new IIOImage(im,null,null), iwp); } public static BufferedImage readTIFF(File file) throws IOException { //Does not work on linux. deprecate all use of TIFF! or use bioformats ImageReader reader=ImageIO.getImageReadersByFormatName("tiff").next(); reader.setInput(new FileImageInputStream(file)); return reader.read(0); } }
[ "mahogny@areta.org" ]
mahogny@areta.org
94b8e451adb876af91a79d2c816a12eac54156e1
ec7cdb58fa20e255c23bc855738d842ee573858f
/java/com/becandid/candid/data/PersistentCookieStore.java
ca61181f80f1208dc5198a6d14e8d22914822f75
[]
no_license
BeCandid/JaDX
591e0abee58764b0f58d1883de9324bf43b52c56
9a3fa0e7c14a35bc528d0b019f850b190a054c3f
refs/heads/master
2021-01-13T11:23:00.068480
2016-12-24T10:39:48
2016-12-24T10:39:48
77,222,067
1
0
null
null
null
null
UTF-8
Java
false
false
7,312
java
package com.becandid.candid.data; import android.content.Context; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.text.TextUtils; import android.util.Log; import defpackage.aih; import defpackage.dh; import java.net.CookieStore; import java.net.HttpCookie; import java.net.URI; import java.net.URISyntaxException; import java.util.ArrayList; import java.util.Collection; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; public class PersistentCookieStore implements CookieStore { private static PersistentCookieStore cookieStore; private static final aih sGson = new aih(); private Map<URI, Set<HttpCookie>> allCookies; private SharedPreferences gsonSharedPreferences; public static PersistentCookieStore getCookieStore(Context context) { if (cookieStore == null) { cookieStore = new PersistentCookieStore(context.getApplicationContext()); } return cookieStore; } private PersistentCookieStore(Context context) { loadAllFromPersistence(context); } private void loadAllFromPersistence(Context context) { this.allCookies = new dh(); loadCookies(context, "com.becandid.likes.cookieStore"); } private void loadCookies(Context context, String storeName) { SharedPreferences sharedPreferences = context.getSharedPreferences(storeName, 0); this.gsonSharedPreferences = sharedPreferences; for (Entry<String, ?> entry : sharedPreferences.getAll().entrySet()) { try { URI uri = new URI(((String) entry.getKey()).split("\\|", 2)[0]); HttpCookie cookie = (HttpCookie) sGson.a((String) entry.getValue(), HttpCookie.class); if (cookie != null) { Set<HttpCookie> targetCookies = (Set) this.allCookies.get(uri); if (targetCookies == null) { targetCookies = new HashSet(); this.allCookies.put(uri, targetCookies); } targetCookies.remove(cookie); targetCookies.add(cookie); } } catch (URISyntaxException e) { Log.w("PersistentCookieStore", e); } } } public synchronized void add(URI uri, HttpCookie cookie) { Log.d("PersistentCookieStore", "add: " + uri.toString()); uri = cookieUri(uri, cookie); Set<HttpCookie> targetCookies = (Set) this.allCookies.get(uri); if (targetCookies == null) { targetCookies = new HashSet(); this.allCookies.put(uri, targetCookies); } targetCookies.remove(cookie); targetCookies.add(cookie); saveToPersistence(uri, cookie); } private static URI cookieUri(URI uri, HttpCookie cookie) { URI cookieUri = uri; if (cookie.getDomain() == null) { return cookieUri; } try { String str; if (uri.getScheme() == null) { str = "http"; } else { str = uri.getScheme(); } return new URI(str, cookie.getDomain(), cookie.getPath() == null ? "/" : cookie.getPath(), null); } catch (URISyntaxException e) { Log.w("PersistentCookieStore", e); return cookieUri; } } private void saveToPersistence(URI uri, HttpCookie cookie) { Editor editorGSON = this.gsonSharedPreferences.edit(); editorGSON.putString(getCookieKey(uri, cookie), getGsonSerializedCookie(cookie)); editorGSON.apply(); } public synchronized List<HttpCookie> get(URI uri) { return getValidCookies(uri); } public synchronized List<HttpCookie> getCookies() { List<HttpCookie> allValidCookies; allValidCookies = new ArrayList(); for (URI storedUri : this.allCookies.keySet()) { allValidCookies.addAll(getValidCookies(storedUri)); } return allValidCookies; } private List<HttpCookie> getValidCookies(URI uri) { Set<HttpCookie> targetCookies = new HashSet(); for (Entry<URI, Set<HttpCookie>> entry : this.allCookies.entrySet()) { URI storedUri = (URI) entry.getKey(); if (!TextUtils.isEmpty(storedUri.getHost())) { String storedHost = storedUri.getHost(); String subDomainStoredHost = storedHost; if (!storedHost.startsWith(".")) { subDomainStoredHost = "." + storedHost; } if (uri.getHost().equals(storedHost) || uri.getHost().endsWith(subDomainStoredHost) || (uri.getHost().contains(".dev.") && uri.getHost().endsWith(storedHost))) { if (storedUri.getPath() == null || "/".equals(storedUri.getPath()) || storedUri.getPath().equals(uri.getPath())) { targetCookies.addAll((Collection) entry.getValue()); } } } } List cookiesToRemoveFromPersistence = new ArrayList(); Iterator<HttpCookie> it = targetCookies.iterator(); while (it.hasNext()) { HttpCookie currentCookie = (HttpCookie) it.next(); if (currentCookie.hasExpired() && !"u".equals(currentCookie.getName())) { cookiesToRemoveFromPersistence.add(currentCookie); it.remove(); } } if (!cookiesToRemoveFromPersistence.isEmpty()) { removeFromPersistence(uri, cookiesToRemoveFromPersistence); } return new ArrayList(targetCookies); } private void removeFromPersistence(URI uri, List<HttpCookie> cookiesToRemove) { Editor editorGSON = this.gsonSharedPreferences.edit(); for (HttpCookie cookieToRemove : cookiesToRemove) { editorGSON.remove(getCookieKey(uri, cookieToRemove)); } editorGSON.apply(); } public synchronized List<URI> getURIs() { return new ArrayList(this.allCookies.keySet()); } public synchronized boolean remove(URI uri, HttpCookie cookie) { boolean cookieRemoved; Set<HttpCookie> targetCookies = (Set) this.allCookies.get(uri); cookieRemoved = targetCookies != null && targetCookies.remove(cookie); if (cookieRemoved) { removeFromPersistence(uri, cookie); } return cookieRemoved; } private void removeFromPersistence(URI uri, HttpCookie cookieToRemove) { Editor editorGSON = this.gsonSharedPreferences.edit(); editorGSON.remove(getCookieKey(uri, cookieToRemove)); editorGSON.apply(); } public synchronized boolean removeAll() { this.allCookies.clear(); removeAllFromPersistence(); return true; } private void removeAllFromPersistence() { this.gsonSharedPreferences.edit().clear().apply(); } private String getCookieKey(URI uri, HttpCookie cookie) { return uri.toString() + '|' + cookie.getName(); } private String getGsonSerializedCookie(HttpCookie cookie) { return sGson.a((Object) cookie); } }
[ "admin@timo.de.vc" ]
admin@timo.de.vc
7ee05d64f005514c3999e053de3460da97bb04a7
1ee02b8abe5547a3a1cf6601e8e8a4ebd6d5f20b
/src/M_047_MajorityNumber.java
98f07d87743fd0a714ac4ffcb86189fe43c03c5b
[]
no_license
techflowing/LintCode
3857e727039bbb20e9b9c9d7a915bf8006a90a0e
fd95f1831c3afad03ff6eb349e7a5f837add2d16
refs/heads/master
2021-05-08T13:13:47.207955
2018-07-19T14:04:40
2018-07-19T14:04:40
120,001,660
1
0
null
null
null
null
UTF-8
Java
false
false
1,242
java
import java.util.ArrayList; /** * 给定一个整型数组,找到主元素,它在数组中的出现次数严格大于数组元素个数的三分之一。 */ public class M_047_MajorityNumber { /** * 参考{@link E_046_MajorityNumber} */ public int majorityNumber(ArrayList<Integer> nums) { int candidate1 = 0, candidate2 = 0; int count1, count2; count1 = count2 = 0; for (int i = 0; i < nums.size(); i++) { if (candidate1 == nums.get(i)) { count1++; } else if (candidate2 == nums.get(i)) { count2++; } else if (count1 == 0) { candidate1 = nums.get(i); count1 = 1; } else if (count2 == 0) { candidate2 = nums.get(i); count2 = 1; } else { count1--; count2--; } } count1 = count2 = 0; for (int i = 0; i < nums.size(); i++) { if (nums.get(i) == candidate1) { count1++; } else if (nums.get(i) == candidate2) { count2++; } } return count1 > count2 ? candidate1 : candidate2; } }
[ "techflowing@gmail.com" ]
techflowing@gmail.com
733b5c8301557996a35fa4b474410e92605b1439
f766baf255197dd4c1561ae6858a67ad23dcda68
/app/src/main/java/com/tencent/mm/modelappbrand/h.java
f1da0b894dfdca72644a1114b64fc6c9b4f2ec16
[]
no_license
jianghan200/wxsrc6.6.7
d83f3fbbb77235c7f2c8bc945fa3f09d9bac3849
eb6c56587cfca596f8c7095b0854cbbc78254178
refs/heads/master
2020-03-19T23:40:49.532494
2018-06-12T06:00:50
2018-06-12T06:00:50
137,015,278
4
2
null
null
null
null
UTF-8
Java
false
false
632
java
package com.tencent.mm.modelappbrand; import android.content.Context; import android.os.Bundle; import android.widget.TextView; import com.tencent.mm.kernel.c.a; import java.lang.ref.WeakReference; public abstract interface h extends a { public abstract CharSequence a(String paramString, Bundle paramBundle, WeakReference<Context> paramWeakReference, WeakReference<TextView> paramWeakReference1); } /* Location: /Users/Han/Desktop/wxall/微信反编译/反编译 6.6.7/dex2jar-2.0/classes2-dex2jar.jar!/com/tencent/mm/modelappbrand/h.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "526687570@qq.com" ]
526687570@qq.com
af85c628decb31fb34ec38407f63d5573f99c8cd
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XRENDERING-422-31-23-FEMO-WeightedSum:TestLen:CallDiversity/org/xwiki/rendering/wikimodel/xhtml/filter/DefaultXMLFilter_ESTest_scaffolding.java
96f3c50fb04b487485efaf9df560a3202d8dcd2f
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
463
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Sat Apr 04 17:46:18 UTC 2020 */ package org.xwiki.rendering.wikimodel.xhtml.filter; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class DefaultXMLFilter_ESTest_scaffolding { // Empty scaffolding for empty test suite }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
b6c180bdb2181c2bf072b892e43d3edc3bf78ea4
9b22cf68d71f156373ea03d64889443765260bec
/mutants/solved/smallest_818f8cf4_003/src/main/java/introclassJava/243/smallest_818f8cf4_003.java
3a42cfc70d56d15067a860ec3d404887ab601a39
[]
no_license
CosmicBeing09/Impact-of-Syntactic-and-Semantic-Similarities-On-Patch-Prioritization-Using-Insertion-Operation
b110a974b35c4aba4cb9c2d57e097c9c487df81b
9ea1c06fc246d310952ec23326e0bd62449fb70b
refs/heads/main
2023-03-07T21:43:42.275626
2021-02-20T07:22:11
2021-02-20T07:22:11
329,861,357
1
1
null
2021-01-21T17:13:57
2021-01-15T09:06:01
Java
UTF-8
Java
false
false
2,723
java
package introclassJava; class IntObj { public int value; public IntObj () { } public IntObj (int i) { value = i; } } class FloatObj { public float value; public FloatObj () { } public FloatObj (float i) { value = i; } } class LongObj { public long value; public LongObj () { } public LongObj (long i) { value = i; } } class DoubleObj { public double value; public DoubleObj () { } public DoubleObj (double i) { value = i; } } class CharObj { public char value; public CharObj () { } public CharObj (char i) { value = i; } } public class smallest_818f8cf4_003 { public java.util.Scanner scanner; public String output = ""; public static void main (String[]args) throws Exception { smallest_818f8cf4_003 mainClass = new smallest_818f8cf4_003 (); String output; if (args.length > 0) { mainClass.scanner = new java.util.Scanner (args[0]); } else { mainClass.scanner = new java.util.Scanner (System.in); } mainClass.exec (); System.out.println (mainClass.output); } public void exec () throws Exception { IntObj num1 = new IntObj (), num2 = new IntObj (), num3 = new IntObj (), num4 = new IntObj (), num_smallest = new IntObj (); output += (String.format (num_smallest, "Please enter 4 numbers separated by spaces > ")); num1.value = scanner.nextInt (); num2.value = scanner.nextInt (); num3.value = scanner.nextInt (); num4.value = scanner.nextInt (); if ((num1.value <= num2.value) && (num1.value <= num3.value) && (num1.value <= num4.value)) { num_smallest.value = num1.value; output += (String.format ("%d is the smallest\n", num_smallest.value)); } else if ((num2.value <= num1.value) && (num2.value <= num3.value) && (num2.value <= num4.value)) { num_smallest.value = num2.value; output += (String.format ("%d is the smallest\n", num_smallest.value)); } else if ((num3.value <= num1.value) && (num3.value <= num2.value) && (num3.value <= num4.value)) { num_smallest.value = num3.value; output += (String.format ("%d is the smallest\n", num_smallest.value)); } else if ((num4.value <= num1.value) && (num4.value <= num2.value) && (num4.value <= num3.value)) { num_smallest.value = num1.value; output += (String.format ("%d is the smallest\n", num_smallest.value)); } if (true) return;; } }
[ "41970997+CosmicBeing09@users.noreply.github.com" ]
41970997+CosmicBeing09@users.noreply.github.com
e950f46710d1ed2032dca6358a15365a69d64e25
c422829aed08bb3263299f66359f4c5e234f3014
/javasrc/edu/brown/cs/ivy/jflow/JflowModelSource.java
5a25dbc5b681f666864a52b357b0018863c42f30
[]
no_license
StevenReiss/ivy
2029946cbf7d5a2383f5fd5b0a77e613115cf24c
1a19377e91f0c14151da4c409609725acceefdbd
refs/heads/master
2023-08-31T22:02:05.835396
2023-08-16T15:21:43
2023-08-16T15:21:43
63,251,664
0
0
null
null
null
null
UTF-8
Java
false
false
3,115
java
/********************************************************************************/ /* */ /* JflowModelSource.java */ /* */ /* Representation of a model source from the application for flow analysis */ /* */ /********************************************************************************/ /* Copyright 2006 Brown University -- Steven P. Reiss */ /********************************************************************************* * Copyright 2006, Brown University, Providence, RI. * * * * All Rights Reserved * * * * Permission to use, copy, modify, and distribute this software and its * * documentation for any purpose other than its incorporation into a * * commercial product is hereby granted without fee, provided that the * * above copyright notice appear in all copies and that both that * * copyright notice and this permission notice appear in supporting * * documentation, and that the name of Brown University not be used in * * advertising or publicity pertaining to distribution of the software * * without specific, written prior permission. * * * * BROWN UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS * * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND * * FITNESS FOR ANY PARTICULAR PURPOSE. IN NO EVENT SHALL BROWN UNIVERSITY * * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY * * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, * * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS * * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE * * OF THIS SOFTWARE. * * * ********************************************************************************/ /* RCS: $Header: /pro/spr_cvs/pro/ivy/javasrc/edu/brown/cs/ivy/jflow/JflowModelSource.java,v 1.5 2017/02/15 02:09:09 spr Exp $ */ /********************************************************************************* * * $Log: JflowModelSource.java,v $ * Revision 1.5 2017/02/15 02:09:09 spr * Formatting * * Revision 1.4 2007-08-10 02:10:32 spr * Cleanups from eclipse; fixups for paca. * * Revision 1.3 2006/07/10 14:52:16 spr * Code cleanup. * * Revision 1.2 2006/07/03 18:15:11 spr * Update flow with inlining options. Clean up. * * Revision 1.1 2006/06/21 02:18:30 spr * Initial refactoring of flow analysis from clime/chet to ivy. * * ********************************************************************************/ package edu.brown.cs.ivy.jflow; import edu.brown.cs.ivy.xml.IvyXmlWriter; public interface JflowModelSource extends JflowConstants { /********************************************************************************/ /* */ /* Access methods */ /* */ /********************************************************************************/ public String getModelSourceType(); public void outputLocalXml(IvyXmlWriter xw); } // end of interface JflowSource /* end of JflowSource.java */
[ "spr@cs.brown.edu" ]
spr@cs.brown.edu
bf8b2d1882f4486d5b4cfb25d858291101b4e4cf
cdbd53ceb24f1643b5957fa99d78b8f4efef455a
/vertx-pin/zero-crud/src/main/java/io/vertx/tp/crud/uca/op/AgonicCount.java
1b287fcef20458410f3c7a2bb3f8f8d6bc587708
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
chundcm/vertx-zero
f3dcb692ae6b9cc4ced52386cab01e5896e69d80
d2a2d096426c30d90be13b162403d66c8e72cc9a
refs/heads/master
2023-04-27T18:41:47.489584
2023-04-23T01:53:40
2023-04-23T01:53:40
244,054,093
0
0
Apache-2.0
2020-02-29T23:00:59
2020-02-29T23:00:58
null
UTF-8
Java
false
false
1,126
java
package io.vertx.tp.crud.uca.op; import io.vertx.core.Future; import io.vertx.core.json.JsonObject; import io.vertx.tp.crud.init.IxPin; import io.vertx.tp.crud.refine.Ix; import io.vertx.tp.crud.uca.desk.IxMod; import io.vertx.up.eon.KName; import io.vertx.up.eon.Strings; import io.vertx.up.uca.jooq.UxJooq; import io.vertx.up.unity.Ux; import java.util.function.Function; /** * @author <a href="http://www.origin-x.cn">Lang</a> */ class AgonicCount implements Agonic { @Override public Future<JsonObject> runJAsync(final JsonObject input, final IxMod in) { if (!input.containsKey(Strings.EMPTY)) { input.put(Strings.EMPTY, Boolean.TRUE); } Ix.Log.filters(this.getClass(), "( Count ) Condition: {0}", input); final Function<Long, Future<JsonObject>> outFn = counter -> Ux.future(new JsonObject().put(KName.COUNT, counter)); if (in.canJoin()) { return Ix.countFn(in).apply(input).compose(outFn); } else { final UxJooq jooq = IxPin.jooq(in); return jooq.countAsync(input).compose(outFn); } } }
[ "silentbalanceyh@126.com" ]
silentbalanceyh@126.com
133b096b41ea042c62a9cac5c241a78348ae92f4
a1e7b1acfc6632a49d39ceca1ee975961bc472f1
/ netone-middleware/wfweb2/xpdltools/oe/midware/workflow/xpdl/model/condition/Condition.java
ad4ae7fac2b113476be9b30683d649a00e6b9c92
[]
no_license
rebider/netone-middleware
32278b57823627fb649ff8b3ccfe5a087b4ce826
b8bcfa687d0f8179b8d7a137ad54a922641c58e6
refs/heads/master
2022-03-30T09:43:33.398568
2013-05-05T14:41:12
2013-05-05T14:41:12
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,880
java
/*-- Copyright (C) 2002-2003 Aetrion LLC. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions, and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions, and the disclaimer that follows these conditions in the documentation and/or other materials provided with the distribution. 3. The names "OBE" and "Open Business Engine" must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact obe@aetrion.com. 4. Products derived from this software may not be called "OBE" or "Open Business Engine", nor may "OBE" or "Open Business Engine" appear in their name, without prior written permission from Aetrion LLC (obe@aetrion.com). THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) 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. For more information on OBE, please see <http://www.openbusinessengine.org/>. */ package oe.midware.workflow.xpdl.model.condition; import java.util.Arrays; import java.beans.PropertyVetoException; import oe.midware.workflow.util.AbstractBean; /** * Abstract base implementation of the Condition interface. * * @author Adrian Price */ public final class Condition extends AbstractBean { static final long serialVersionUID = -6563693584809960943L; public static final String VALUE = "value"; public static final String XPRESSION = "xpression"; public static final String TYPE = "type"; private static final Xpression[] EMPTY_XPRESSION = {}; private static final String[] _indexedPropertyNames = {XPRESSION}; private static final Object[] _indexedPropertyValues = {EMPTY_XPRESSION}; private static final int XPRESSION_IDX = 0; private String _value; private Xpression[] _xpression = EMPTY_XPRESSION; private ConditionType _type = ConditionType.CONDITION; /** * Construct a new Condition. */ public Condition() { super(_indexedPropertyNames, _indexedPropertyValues); } /** * Get the condition type. * * @return The condition type */ public ConditionType getType() { return _type; } /** * Set the condition type. * * @param type The condition type */ public void setType(ConditionType type) { _type = type; } /** * Get the condition value. This value represents a conditional * expression. * * @return The value */ public String getValue() { return _value; } /** * Set the condition value. * * @param value The value */ public void setValue(String value) { _value = value; } public void add(Xpression xpression) throws PropertyVetoException { _xpression = (Xpression[])add(XPRESSION_IDX, xpression); } public void remove(Xpression xpression) throws PropertyVetoException { _xpression = (Xpression[])remove(XPRESSION_IDX, xpression); } /** * Get a list of Xpressions. * * @return A List of Xpressions */ public Xpression[] getXpression() { return (Xpression[])get(XPRESSION_IDX); } public Xpression getXpression(int i) { return _xpression[i]; } public void setXpression(Xpression[] xpressions) throws PropertyVetoException { set(XPRESSION_IDX, _xpression = xpressions == null ? EMPTY_XPRESSION : xpressions); } public void setXpression(int i, Xpression xpression) throws PropertyVetoException { set(XPRESSION_IDX, i, xpression); } public String toString() { return "Condition[value='" + _value + '\'' + ", xpressions=" + (_xpression == null ? null : Arrays.asList(_xpression)) + ", type=" + _type + ']'; } }
[ "oesee@139.com@f0528040-21d0-c4c1-14c2-750bfacab96f" ]
oesee@139.com@f0528040-21d0-c4c1-14c2-750bfacab96f
d2f90bcfac855940d0ba0d5c4488c629f802e3c4
75c4712ae3f946db0c9196ee8307748231487e4b
/src/main/java/com/alipay/api/response/AlipayEcoMycarMaintainBizorderstatusUpdateResponse.java
4c45a0675d0e6fcd4ee15f65a1a68570165024ac
[ "Apache-2.0" ]
permissive
yuanbaoMarvin/alipay-sdk-java-all
70a72a969f464d79c79d09af8b6b01fa177ac1be
25f3003d820dbd0b73739d8e32a6093468d9ed92
refs/heads/master
2023-06-03T16:54:25.138471
2021-06-25T14:48:21
2021-06-25T14:48:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
404
java
package com.alipay.api.response; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.eco.mycar.maintain.bizorderstatus.update response. * * @author auto create * @since 1.0, 2020-12-31 11:46:56 */ public class AlipayEcoMycarMaintainBizorderstatusUpdateResponse extends AlipayResponse { private static final long serialVersionUID = 5123158142886125893L; }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
8276437e0b81472ec5ce12b0905d10b9f40ff50f
2f92dfff9b9929b64e645fdc254815d06bf2b8d2
/src/test/test/lee/codetest/code_374__Guess_Number_Higher_or_Lower/CodeTest.java
5444444ca1d2e67487f02043f1ba5d5fddfdc02f
[ "MIT" ]
permissive
code543/leetcodequestions
fc5036d63e4c3e1b622fe73552fb33c039e63fb0
44cbfe6718ada04807b6600a5d62b9f0016d4ab2
refs/heads/master
2020-04-05T19:43:15.530768
2018-12-07T04:09:07
2018-12-07T04:09:07
157,147,529
1
0
null
null
null
null
UTF-8
Java
false
false
1,068
java
package lee.codetest.code_374__Guess_Number_Higher_or_Lower; import org.junit.Test; /** testcase:10 6 */ public class CodeTest { @Test public void testSolution() throws Exception { //new Solution() lee.code.code_374__Guess_Number_Higher_or_Lower.C374_MainClass.main(null);; } } /** * * * 374.Guess Number Higher or Lower * * difficulty: Easy * @see https://leetcode.com/problems/guess-number-higher-or-lower/description/ * @see description_374.md * @Similiar Topics * -->Binary Search https://leetcode.com//tag/binary-search * @Similiar Problems * -->Guess Number Higher or Lower II https://leetcode.com//problems/guess-number-higher-or-lower-ii * -->First Bad Version https://leetcode.com//problems/first-bad-version * -->Find K Closest Elements https://leetcode.com//problems/find-k-closest-elements * Run solution from Unit Test: * @see lee.codetest.code_374__Guess_Number_Higher_or_Lower.CodeTest * Run solution from Main Judge Class: * @see lee.code.code_374__Guess_Number_Higher_or_Lower.C374_MainClass * */
[ "santoschenwbu@gmail.com" ]
santoschenwbu@gmail.com
d1e0ff845dc7c48bd7f2637008a47caae2b88147
0aff41315e1b7e814783e81156a90fa3fbc6f6ab
/app/src/main/java/com/example/finalproject/adapter/MenuAdapter.java
8ffb18f13eaf3f6ed326c7f8554bd350ce4c29f3
[]
no_license
ShawyerPeng/CodePlay
59550c3e56bc9898b11b3ae1ca254351778a2ab6
0b217e244a7813a45fb155415187482912fe068d
refs/heads/master
2021-01-25T08:13:17.218991
2017-06-21T05:32:04
2017-06-21T05:32:04
93,732,484
1
0
null
null
null
null
UTF-8
Java
false
false
1,280
java
package com.example.finalproject.adapter; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ImageView; import android.widget.TextView; import com.example.finalproject.R; import com.example.finalproject.activity.TaggingActivity; import com.example.finalproject.entity.Menu; import java.util.List; public class MenuAdapter extends ArrayAdapter<Menu> { private int resourceId; private TaggingActivity taggingActivity; public MenuAdapter(Context context, int textViewResourceId, List<Menu> object){ super(context, textViewResourceId, object); resourceId = textViewResourceId; taggingActivity = (TaggingActivity) context; } public View getView(int position, View convertView, ViewGroup parent){ View view = LayoutInflater.from(getContext()).inflate(resourceId, parent, false); Menu menu = getItem(position); ImageView menuimage = (ImageView) view.findViewById(R.id.menu_ico); TextView menuname = (TextView) view.findViewById(R.id.menu_name); menuimage.setImageResource(menu.getImageid()); menuname.setText(menu.getName()); return view; } }
[ "patrickyateschn@gmail.com" ]
patrickyateschn@gmail.com
d31afe1106828c5b5e0a88a15a69527222c9125a
8cd01526f0e84cf36bc27515876eda9bcc52f49a
/code/vim_android/office/src/main/java/com/wxiwei/office/thirdpart/emf/data/SetPixelV.java
908688e315fae4735ee66685cd54a61e414584e0
[]
no_license
liyawei7711/shenlun
a0baa859cec59b9d46825c8b1797173bd56d4d3f
602b103d90df98c100ce55efee132596b0100445
refs/heads/master
2021-01-09T12:52:18.359146
2020-06-29T08:21:20
2020-06-29T08:21:20
242,304,879
1
0
null
null
null
null
UTF-8
Java
false
false
975
java
// Copyright 2002, FreeHEP. package com.wxiwei.office.thirdpart.emf.data; import android.graphics.Point; import java.io.IOException; import com.wxiwei.office.java.awt.Color; import com.wxiwei.office.thirdpart.emf.EMFInputStream; import com.wxiwei.office.thirdpart.emf.EMFTag; /** * SetPixelV TAG. * * @author Mark Donszelmann * @version $Id: SetPixelV.java 10367 2007-01-22 19:26:48Z duns $ */ public class SetPixelV extends EMFTag { private Point point; private Color color; public SetPixelV() { super(15, 1); } public SetPixelV(Point point, Color color) { this(); this.point = point; this.color = color; } public EMFTag read(int tagID, EMFInputStream emf, int len) throws IOException { return new SetPixelV(emf.readPOINTL(), emf.readCOLORREF()); } public String toString() { return super.toString() + "\n point: " + point + "\n color: " + color; } }
[ "751804582@qq.com" ]
751804582@qq.com
4a7b641dbb11b2008934751ed657d70735e28502
043703eaf27a0d5e6f02bf7a9ac03c0ce4b38d04
/subject_systems/Struts2/src/struts-2.3.32/src/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/UnknownHandlerConfig.java
a98fc785be568f82e34cce2bc24f07e231ad4bbd
[]
no_license
MarceloLaser/arcade_console_test_resources
e4fb5ac4a7b2d873aa9d843403569d9260d380e0
31447aabd735514650e6b2d1a3fbaf86e78242fc
refs/heads/master
2020-09-22T08:00:42.216653
2019-12-01T21:51:05
2019-12-01T21:51:05
225,093,382
1
2
null
null
null
null
UTF-8
Java
false
false
129
java
version https://git-lfs.github.com/spec/v1 oid sha256:cbd2b8384c58f16a67e4a780d89669b3c8582f09e8f307ee5965d28a2d5c5d73 size 1283
[ "marcelo.laser@gmail.com" ]
marcelo.laser@gmail.com
f5310b4f55e2eabcc99d6a43ccfff463ed6231b9
6afc726f36d09fc8ac9ce32d17a22cf05ad5552a
/mall_product/src/main/java/com/yang/mall_product/dao/SkuImagesDao.java
4f6efbd4a9c82520136761990a9cb35f9e918b67
[]
no_license
yang0123456789/dismall
843fb37c94198657b45b81c80fa141674f99e30b
dfd12609bff15cfc768aaff9af7d545b50258f95
refs/heads/main
2023-01-08T10:49:06.761440
2020-11-08T12:01:58
2020-11-08T12:01:58
308,582,822
0
0
null
null
null
null
UTF-8
Java
false
false
366
java
package com.yang.mall_product.dao; import com.yang.mall_product.entity.SkuImagesEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * sku图片 * * @author yq * @email 378525908@qq.com * @date 2020-10-31 14:46:00 */ @Mapper public interface SkuImagesDao extends BaseMapper<SkuImagesEntity> { }
[ "378525908@qq.com" ]
378525908@qq.com
8abf304312b3d17c1dced0c28110f4e79592fcc9
92f7ba1ebc2f47ecb58581a2ed653590789a2136
/src/com/infodms/dms/actions/sales/planmanage/PlanUtil/ExcelErrors.java
9a71d068c175ac9daec66309dce6720db4c36f63
[]
no_license
dnd2/CQZTDMS
504acc1883bfe45842c4dae03ec2ba90f0f991ee
5319c062cf1932f8181fdd06cf7e606935514bf1
refs/heads/master
2021-01-23T15:30:45.704047
2017-09-07T07:47:51
2017-09-07T07:47:51
null
0
0
null
null
null
null
UTF-8
Java
false
false
551
java
package com.infodms.dms.actions.sales.planmanage.PlanUtil; public class ExcelErrors { private int rowNum; private int colNum; private String errorDesc; public int getRowNum() { return rowNum; } public void setRowNum(int rowNum) { this.rowNum = rowNum; } public int getColNum() { return colNum; } public void setColNum(int colNum) { this.colNum = colNum; } public String getErrorDesc() { return errorDesc; } public void setErrorDesc(String errorDesc) { this.errorDesc = errorDesc; } }
[ "wanghanxiancn@gmail.com" ]
wanghanxiancn@gmail.com
e1dd7938a9d70fd958f2a6c04cd5db87738d7f1d
eb6303ce7e4a82cd7a898d90e389cb1724933bcc
/datastructure/src/main/java/leetcode/hard/InterleavingString.java
82046e261632bc0f6debf8fbe801f60bab8bc7cb
[]
no_license
Blanchedingding/myPractice
76d8a0ef2fa771307ccad55e5873976c9af2a617
03bf1e5a60346b3e83804ca743f86462c8a0dfc2
refs/heads/master
2020-03-24T17:05:25.726955
2019-08-26T01:42:46
2019-08-26T01:42:46
142,848,696
1
0
null
null
null
null
UTF-8
Java
false
false
1,623
java
package leetcode.hard; /** * Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. * * Example 1: * Input: s1 = "aabcc", s2 = "dbbca", s3 = "aadbbcbcac" * Output: true * * Example 2: * Input: s1 = "aabcc", s2 = "dbbca", s3 = "aadbbbaccc" * Output: false */ public class InterleavingString { public boolean isInterleave(String s1, String s2, String s3) { int n1 = s1.length(), n2 = s2.length(), n3 = s3.length(); if(n3 != (n1 + n2)) return false; if( (n1 == n3 && s1.equals(s3)) || (n2 == n3 && s2.equals(s3))) return true; boolean[][] dp = new boolean[n1 + 1][n2 + 1]; dp[0][0] = true; for(int i = 0 ;i < n1; i++){ dp[i+1][0] = dp[i][0] && s1.charAt(i)== s3.charAt(i); } for(int i = 0 ;i < n2; i++){ dp[0][i+1] = dp[0][i] && s2.charAt(i) == s3.charAt(i); } for(int i = 0; i < n1; i++){ for(int j = 0; j < n2; j++){ boolean flag = false; if(s3.charAt(i + j + 1) == s1.charAt(i)){ flag = dp[i][j + 1]; } if( flag == false && s3.charAt(i + j + 1) == s2.charAt(j)){ flag = dp[i + 1][j]; } dp[i + 1][j + 1] = flag; } } return dp[n1][n2]; } public static void main(String[] args) { InterleavingString i = new InterleavingString(); System.out.println(i.isInterleave("aabcc", "dbbca", "aadbbcbcac")); System.out.println(i.isInterleave("aabcc", "dbbca", "aadbbbaccc")); } }
[ "18321716610@163.com" ]
18321716610@163.com
dcbbd99702c023656d741b158b260356ad82e4ce
6c6cb24d68a394528232b527a75fe8fb5d040d49
/src/main/java/net/ravendb/client/Constants.java
00f4ec178aab0faf5317ef32cd158799fa27a5b5
[ "MIT" ]
permissive
JohannesRudolph/ravendb-jvm-client
e3036ebe5ce9d8fdc4d4041cb4b748f9d1972f2c
88bf621a97bf561b491f3829ee865cfa04c5c4a5
refs/heads/v4.0
2020-04-23T10:31:30.788473
2019-01-30T10:10:33
2019-01-30T10:10:33
171,107,322
0
0
MIT
2019-02-17T10:11:07
2019-02-17T10:11:06
null
UTF-8
Java
false
false
2,980
java
package net.ravendb.client; public class Constants { public static class Documents{ private Documents() {} public static class Metadata { private Metadata() {} public static final String COLLECTION = "@collection"; public static final String PROJECTION = "@projection"; public static final String KEY = "@metadata"; public static final String ID = "@id"; public static final String CONFLICT = "@conflict"; public static final String ID_PROPERTY = "Id"; public static final String FLAGS = "@flags"; public static final String ATTACHMENTS = "@attachments"; public static final String INDEX_SCORE = "@index-score"; public static final String LAST_MODIFIED = "@last-modified"; public static final String RAVEN_JAVA_TYPE = "Raven-Java-Type"; public static final String CHANGE_VECTOR = "@change-vector"; public static final String EXPIRES = "@expires"; public static final String ALL_DOCUMENTS_COLLECTION = "@all_docs"; } public static class Indexing { private Indexing() {} public static final String SIDE_BY_SIDE_INDEX_NAME_PREFIX = "ReplacementOf/"; public static class Fields { private Fields() {} public static final String DOCUMENT_ID_FIELD_NAME = "id()"; public static final String REDUCE_KEY_HASH_FIELD_NAME = "hash(key())"; public static final String REDUCE_KEY_KEY_VALUE_FIELD_NAME = "key()"; public static final String ALL_FIELDS = "__all_fields"; public static final String SPATIAL_SHAPE_FIELD_NAME = "spatial(shape)"; //TBD 4.1 public static final String CUSTOM_SORT_FIELD_NAME = "__customSort"; } public static class Spatial { private Spatial() {} public static final double DEFAULT_DISTANCE_ERROR_PCT = 0.025d; } } } public static class Headers { private Headers() {} public static final String REQUEST_TIME = "Raven-Request-Time"; public static final String REFRESH_TOPOLOGY = "Refresh-Topology"; public static final String TOPOLOGY_ETAG = "Topology-Etag"; public static final String CLIENT_CONFIGURATION_ETAG = "Client-Configuration-Etag"; public static final String REFRESH_CLIENT_CONFIGURATION = "Refresh-Client-Configuration"; public static final String CLIENT_VERSION = "Raven-Client-Version"; public static final String ETAG = "ETag"; public static final String IF_NONE_MATCH = "If-None-Match"; public static final String TRANSFER_ENCODING = "Transfer-Encoding"; public static final String CONTENT_ENCODING = "Content-Encoding"; public static final String CONTENT_LENGTH = "Content-Length"; } }
[ "marcin@ravendb.net" ]
marcin@ravendb.net
04f30fada7eb90fc8fe00514f7bd55e7a81ee888
ba07b506d508edd0a615de542595ad1346404143
/Tags/Tag1.6.0/OneConnect/OneConnect/MsbPackager/src/vn/com/msb/as400/dsp/packager/DSP35520RPackager.java
6b4ac2aa70151aca88f3e79abb2ce509a9b1a431
[]
no_license
liuning587/ESB-MSB
14f5b8086be39ed1c2b43dec509ce272fa282ff5
9a5be312bd17abf8208c3b82409c927de1da9d93
refs/heads/master
2021-01-18T00:42:53.520872
2015-05-25T01:27:13
2015-05-25T01:27:13
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,057
java
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) // Source File Name: DSP35520RPackager.java package vn.com.msb.as400.dsp.packager; import vn.com.msb.as400.dsp.*; public class DSP35520RPackager extends DSPPackager { public DSP35520RPackager() { } public void declare() { DSPField fld[] = null; fld = (new DSPField[] { new DSPPackedField(10, 0, "Description for field 1"), new DSPCharField(1, "Description for field 2"), new DSPPackedField(4, 0, "Description for field 3"), new DSPPackedField(3, 0, "Description for field 4"), new DSPPackedField(4, 0, "Description for field 5"), new DSPPackedField(4, 0, "Description for field 6"), new DSPCharField(1, "Description for field 7"), new DSPPackedField(8, 2, "Description for field 8"), new DSPCharField(10, "Description for field 9"), new DSPPackedField(4, 0, "Description for field 10") }); addBody("35520R".toUpperCase(), fld); } }
[ "manhdungkhmt1k3@gmail.com" ]
manhdungkhmt1k3@gmail.com
c4c2026011f6d48f7587de38e67809f1187a676f
48ae8e24dfe5a8e099eb1ce2d14c9a24f48975cc
/Product/Production/Common/CONNECTCoreLib/src/test/java/gov/hhs/fha/nhinc/patientcorrelation/nhinc/parsers/PRPAIN201309UV/helpers/CSHelperTest.java
8a1cd4f958b894ad6124db98a31ad0a8c2333b5b
[ "BSD-3-Clause" ]
permissive
CONNECT-Continuum/Continuum
f12394db3cc8b794fdfcb2cb3224e4a89f23c9d5
23acf3ea144c939905f82c59ffeff221efd9cc68
refs/heads/master
2022-12-16T15:04:50.675762
2019-09-07T16:14:08
2019-09-07T16:14:08
206,986,335
0
0
NOASSERTION
2022-12-05T23:32:14
2019-09-07T15:18:59
Java
UTF-8
Java
false
false
2,141
java
/* * Copyright (c) 2009-2019, United States Government, as represented by the Secretary of Health and Human Services. * 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 United States Government 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 THE UNITED STATES GOVERNMENT 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 gov.hhs.fha.nhinc.patientcorrelation.nhinc.parsers.PRPAIN201309UV.helpers; import org.hl7.v3.CS; import static org.junit.Assert.assertEquals; import org.junit.Test; /** * @author achidambaram * */ public class CSHelperTest { @Test public void testBuildCS() { String code = "CS"; CS cs = new CS(); CSHelper helper = new CSHelper(); cs = helper.buildCS(code); assertEquals(cs.getCode(),"CS"); } }
[ "minh-hai.nguyen@cgi.com" ]
minh-hai.nguyen@cgi.com
ce1b80a865d9d8dfd3cc17778021dd5362e652e7
ed5159d056e98d6715357d0d14a9b3f20b764f89
/test/irvine/oeis/a044/A044812Test.java
1ef4235c67aecff62a642edb8a9f5fc3a0414ea5
[]
no_license
flywind2/joeis
c5753169cf562939b04dd246f8a2958e97f74558
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
refs/heads/master
2020-09-13T18:34:35.080552
2019-11-19T05:40:55
2019-11-19T05:40:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
195
java
package irvine.oeis.a044; import irvine.oeis.AbstractSequenceTest; /** * Tests the corresponding class. * @author Sean A. Irvine */ public class A044812Test extends AbstractSequenceTest { }
[ "sairvin@gmail.com" ]
sairvin@gmail.com
705ed345c42c4b03e73f1b8dcfef32419a569c7b
20eb62855cb3962c2d36fda4377dfd47d82eb777
/IntroClassJava/dataset/smallest/c9d718f379a877bd04e4544ee830a1c4c256bb4f104f214afd1ccaf81e7b25dea689895678bb1e6f817d8b0939eb175f8e847130f30a9a22e980d38125933516/003/mutations/228/smallest_c9d718f3_003.java
9186a58f0c1a622868c4c55af7679d304817a3e2
[]
no_license
ozzydong/CapGen
356746618848065cce4e253e5d3c381baa85044a
0ba0321b6b1191443276021f1997833342f02515
refs/heads/master
2023-03-18T20:12:02.923428
2020-08-21T03:08:28
2020-08-21T03:08:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,505
java
package introclassJava; class IntObj { public int value; public IntObj () { } public IntObj (int i) { value = i; } } class FloatObj { public float value; public FloatObj () { } public FloatObj (float i) { value = i; } } class LongObj { public long value; public LongObj () { } public LongObj (long i) { value = i; } } class DoubleObj { public double value; public DoubleObj () { } public DoubleObj (double i) { value = i; } } class CharObj { public char value; public CharObj () { } public CharObj (char i) { value = i; } } public class smallest_c9d718f3_003 { public java.util.Scanner scanner; public String output = ""; public static void main (String[]args) throws Exception { smallest_c9d718f3_003 mainClass = new smallest_c9d718f3_003 (); String output; if (args.length > 0) { mainClass.scanner = new java.util.Scanner (args[0]); } else { mainClass.scanner = new java.util.Scanner (System.in); } mainClass.exec (); System.out.println (mainClass.output); } public void exec () throws Exception { DoubleObj num1 = new DoubleObj (), num2 = new DoubleObj (), num3 = new DoubleObj (), num4 = new DoubleObj (); output += (String.format ("Please enter 4 numbers separated by spaces > ")); num1.value = scanner.nextDouble (); num2.value = scanner.nextDouble (); num3.value = scanner.nextDouble (); num4.value = scanner.nextDouble (); if (num1.value < num2.value && num1.value < num3.value && num1.value < num4.value) { output += (String.format ("%.0f is the smallest\n", num1.value)); } if (num2.value < num1.value && ((num1.value) < (num2.value)) && ((num1.value) < (num3.value)) && num2.value < num4.value) { output += (String.format ("%.0f is the smallest\n", num2.value)); } if (num3.value < num1.value && num3.value < num2.value && num3.value < num4.value) { output += (String.format ("%.0f is the smallest\n", num3.value)); } if (num4.value < num1.value && num4.value < num2.value && num4.value < num3.value) { output += (String.format ("%.0f is the smallest\n", num4.value)); } if (true) return;; } }
[ "justinwm@163.com" ]
justinwm@163.com
0d0184cb77dd7c3adcb414b37281fb8a1bfc8b9e
715356bfe2f8a296a9b1e131fff6cd7c142c33a8
/core/src/main/java/hudson/init/InitMilestone.java
be695d5f42e75a55413e6321c1dd480cc97dd7e2
[ "MIT" ]
permissive
vivek/hudson
6cf0c141e334be0e1da801ce15b71d21aeaa287f
1921f721f787934bb375ef69c434e829e20cf796
refs/heads/master
2021-08-08T03:49:04.316656
2010-05-28T17:45:31
2010-05-28T17:45:31
692,626
0
0
MIT
2021-02-03T19:30:14
2010-05-29T13:49:59
Java
UTF-8
Java
false
false
3,659
java
/* * The MIT License * * Copyright (c) 2004-2009, Sun Microsystems, Inc. * * 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 hudson.init; import org.jvnet.hudson.reactor.Executable; import org.jvnet.hudson.reactor.Milestone; import org.jvnet.hudson.reactor.TaskBuilder; import org.jvnet.hudson.reactor.TaskGraphBuilder; /** * Various key milestone in the initialization process of Hudson. * * <p> * Plugins can use these milestones to execute their initialization at the right moment * (in addition to defining their own milestones by implementing {@link Milestone}. * * <p> * These milestones are achieve in this order. * * @author Kohsuke Kawaguchi */ public enum InitMilestone implements Milestone { /** * The very first milestone that gets achieved without doing anything. * * This is used in {@link Initializer#after()} since annotations cannot have null as the default value. */ STARTED("Started initialization"), /** * By this milestone, all plugins metadata are inspected and their dependencies figured out. */ PLUGINS_LISTED("Listed all plugins"), /** * By this milestone, all plugin metadata are loaded and its classloader set up. */ PLUGINS_PREPARED("Prepared all plugins"), /** * By this milestone, all plugins start executing, all extension points loaded, descriptors instantiated * and loaded. * * <p> * This is a separate milestone from {@link #PLUGINS_PREPARED} since the execution * of a plugin often involves finding extension point implementations, which in turn * require all the classes from all the plugins to be loadable. */ PLUGINS_STARTED("Started all plugins"), /** * By this milestone, all jobs and their build records are loaded from disk. */ JOB_LOADED("Loaded all jobs"), /** * The very last milestone * * This is used in {@link Initializer#before()} since annotations cannot have null as the default value. */ COMPLETED("Completed initialization"); private final String message; InitMilestone(String message) { this.message = message; } /** * Creates a set of dummy tasks to enforce ordering among {@link InitMilestone}s. */ public static TaskBuilder ordering() { TaskGraphBuilder b = new TaskGraphBuilder(); InitMilestone[] v = values(); for (int i=0; i<v.length-1; i++) b.add(null, Executable.NOOP).requires(v[i]).attains(v[i+1]); return b; } @Override public String toString() { return message; } }
[ "kohsuke@71c3de6d-444a-0410-be80-ed276b4c234a" ]
kohsuke@71c3de6d-444a-0410-be80-ed276b4c234a
7758041f98a8eaafaca1a3b9d17dacfedc292aa0
d220a18fb6d01065d5751bf70bcf3f6ccdcf3d04
/google/code/jam/code2019/round1b/ManhattanCrepeCart.java
a328026096b32d78775d9eac525ba9eb0d0a0ab0
[]
no_license
reneargento/competitive-programming-contests
05d4244f3128f053ba98492d63e7753b8cc31a2b
3f0834941c8b587dacadf1dd2b1e411e3d75e406
refs/heads/master
2023-01-12T22:57:57.448908
2022-12-30T03:42:28
2022-12-30T03:42:28
161,853,547
0
0
null
null
null
null
UTF-8
Java
false
false
5,209
java
package google.code.jam.code2019.round1b; import java.util.*; /** * Created by Rene Argento on 28/04/19. */ // https://codingcompetitions.withgoogle.com/codejam/round/0000000000051706/000000000012295c public class ManhattanCrepeCart { private static class Tuple implements Comparable<Tuple> { int coordinate; int peopleFacingSide1; int peopleFacingSide2; Tuple(int coordinate, int peopleFacingSide1, int peopleFacingSide2) { this.coordinate = coordinate; this.peopleFacingSide1 = peopleFacingSide1; this.peopleFacingSide2 = peopleFacingSide2; } @Override public int compareTo(Tuple other) { return coordinate - other.coordinate; } } public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int tests = scanner.nextInt(); for (int t = 1; t <= tests; t++) { int people = scanner.nextInt(); int size = scanner.nextInt(); // 1 - Pre-process data Map<Integer, Tuple> horizontalInformation = new HashMap<>(); Map<Integer, Tuple> verticalInformation = new HashMap<>(); int totalPeopleFacingWest = 0; int totalPeopleFacingSouth = 0; for (int i = 0; i < people; i++) { int column = scanner.nextInt(); int row = scanner.nextInt(); String direction = scanner.next(); if (!verticalInformation.containsKey(row)) { verticalInformation.put(row, new Tuple(row, 0, 0)); } if (!horizontalInformation.containsKey(column)) { horizontalInformation.put(column, new Tuple(column, 0, 0)); } int peopleFacingNorth = verticalInformation.get(row).peopleFacingSide1; int peopleFacingSouth = verticalInformation.get(row).peopleFacingSide2; int peopleFacingEast = horizontalInformation.get(column).peopleFacingSide1; int peopleFacingWest = horizontalInformation.get(column).peopleFacingSide2; switch (direction) { case "N": peopleFacingNorth++; break; case "S": peopleFacingSouth++; totalPeopleFacingSouth++; break; case "E": peopleFacingEast++; break; case "W": peopleFacingWest++; totalPeopleFacingWest++; break; } horizontalInformation.put(column, new Tuple(column, peopleFacingEast, peopleFacingWest)); verticalInformation.put(row, new Tuple(row, peopleFacingNorth, peopleFacingSouth)); } List<Tuple> horizontalList = new ArrayList<>(); List<Tuple> verticalList = new ArrayList<>(); for (int coordinate : horizontalInformation.keySet()) { Tuple tuple = horizontalInformation.get(coordinate); horizontalList.add(tuple); } for (int coordinate : verticalInformation.keySet()) { Tuple tuple = verticalInformation.get(coordinate); verticalList.add(tuple); } Collections.sort(horizontalList); Collections.sort(verticalList); // 2- Check horizontal cells int targetColumn = getTarget(horizontalList, size, horizontalInformation, totalPeopleFacingWest); // 3- Check vertical cells int targetRow = getTarget(verticalList, size, verticalInformation, totalPeopleFacingSouth); System.out.println("Case #" + t + ": " + targetColumn + " " + targetRow); } } private static int getTarget(List<Tuple> tupleList, int size, Map<Integer, Tuple> coordinateInformation, int initialPeopleFacingDirection) { int maxVotes; int currentVotes = initialPeopleFacingDirection; int target = 0; if (coordinateInformation.containsKey(0)) { currentVotes = currentVotes - coordinateInformation.get(0).peopleFacingSide2; } maxVotes = currentVotes; for (Tuple tuple : tupleList) { if (tuple.coordinate == size) break; int nextCoordinate = tuple.coordinate + 1; currentVotes = currentVotes + tuple.peopleFacingSide1 - tuple.peopleFacingSide2; if (coordinateInformation.containsKey(nextCoordinate)) { int votes = currentVotes - coordinateInformation.get(nextCoordinate).peopleFacingSide2; if (votes > maxVotes) { maxVotes = votes; target = nextCoordinate; } } else { if (currentVotes > maxVotes) { maxVotes = currentVotes; target = nextCoordinate; } } } return target; } }
[ "rene.argento@gmail.com" ]
rene.argento@gmail.com
eb05b9f18b7ec5ba3e6aea6bd3452a0394e76a06
123ec39fa1fde6fa5cc1d3dad592c202ed4e182c
/src/main/java/com/banking/soap/TransactionsFacadeSOAP.java
657efe16ac7535461403ff3324c5953bbd324ed0
[]
no_license
Aviatoryona/BankingApp
a2464eb4ffa85e00b871ebd90e23aec13fd719c6
0cb613d1daff8d264d6b7e09c06ea67507e087d3
refs/heads/master
2023-01-09T10:52:35.126373
2020-11-14T07:46:32
2020-11-14T07:46:32
287,592,159
0
0
null
null
null
null
UTF-8
Java
false
false
2,998
java
/* * Copyright (C) 2020 Aviator * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ package com.banking.soap; import com.banking.entities.Transactions; import com.banking.rest.TransactionsFacadeREST; import java.util.List; import javax.ejb.EJB; import javax.ejb.Stateless; import javax.jws.Oneway; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebService; import javax.xml.ws.RequestWrapper; import javax.xml.ws.ResponseWrapper; /** * * @author Aviator */ @WebService(serviceName = "TransactionsFacadeSOAP") @Stateless() public class TransactionsFacadeSOAP { @EJB private TransactionsFacadeREST transactionsFacadeREST; @WebMethod(operationName = "create") public String create(@WebParam(name = "entity") Transactions entity) { return transactionsFacadeREST.create(entity); } @WebMethod(operationName = "edit") @Oneway public void edit(@WebParam(name = "id") Integer id, @WebParam(name = "entity") Transactions entity) { transactionsFacadeREST.edit(entity); } @WebMethod(operationName = "find") public Transactions find(@WebParam(name = "id") Integer id) { return transactionsFacadeREST.find(id); } @WebMethod(operationName = "findAll") public List<Transactions> findAll() { return transactionsFacadeREST.findAll(); } @WebMethod(operationName = "countREST") public String countREST() { return transactionsFacadeREST.countREST(); } @WebMethod(operationName = "getTransactions") public List<Transactions> getTransactions() { return transactionsFacadeREST.getTransactions(); } @WebMethod(operationName = "getTransactionsWithLimit") @RequestWrapper(className = "getTransactionsWithLimit") @ResponseWrapper(className = "getTransactionsWithLimitResponse") public List<Transactions> getTransactions(@WebParam(name = "limit") int limit) { return transactionsFacadeREST.getTransactions(limit); } @WebMethod(operationName = "getTransactionsByEmail") @RequestWrapper(className = "getTransactionsByEmail") @ResponseWrapper(className = "getTransactionsByEmailResponse") public List<Transactions> getTransactions(@WebParam(name = "email") String email) { return transactionsFacadeREST.getTransactions(email); } }
[ "aviatoryona67@gmail.com" ]
aviatoryona67@gmail.com
74d45f1155205fcedec3367e855e3978f9a94cf4
f634ac0e874e3147407a352e43403168b373875f
/src-biz/eayun-obs/src/main/java/com/eayun/obs/thread/cdn/CdnRefreshObjectPool.java
d7a7ce677570726504e796126d2f6e8d0b8c4272
[]
no_license
yapengsong/business
82d49442c1d546029c3449909b37c772b17bbef1
f876cf82e1c08a91770ea58582719cda4e7927aa
refs/heads/master
2021-01-19T21:44:35.104690
2017-04-19T03:33:24
2017-04-19T03:33:24
88,695,172
0
2
null
null
null
null
UTF-8
Java
false
false
347
java
package com.eayun.obs.thread.cdn; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; public class CdnRefreshObjectPool { public static ThreadPoolExecutor pool = new ThreadPoolExecutor(100, 100, 5L, TimeUnit.MINUTES, new LinkedBlockingQueue<Runnable>()); }
[ "yapeng.song@eayun.com" ]
yapeng.song@eayun.com
a8912f8270905c921cd75a42ebb7c5ec31834230
056ff5f928aec62606f95a6f90c2865dc126bddc
/javashop/shop-core/src/main/java/com/enation/app/shop/component/payment/plugin/alipay/sdk34/api/domain/AlipayMarketingDataDashboardQueryModel.java
8359b2b0961e0bc7920c11af13b1adb41488dc8f
[]
no_license
luobintianya/javashop
7846c7f1037652dbfdd57e24ae2c38237feb1104
ac15b14e8f6511afba93af60e8878ff44e380621
refs/heads/master
2022-11-17T11:12:39.060690
2019-09-04T08:57:58
2019-09-04T08:57:58
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,175
java
package com.enation.app.shop.component.payment.plugin.alipay.sdk34.api.domain; import java.util.List; import com.enation.app.shop.component.payment.plugin.alipay.sdk34.api.AlipayObject; import com.enation.app.shop.component.payment.plugin.alipay.sdk34.api.internal.mapping.ApiField; import com.enation.app.shop.component.payment.plugin.alipay.sdk34.api.internal.mapping.ApiListField; /** * 仪表盘查询 * * @author auto create * @since 1.0, 2017-01-18 22:20:38 */ public class AlipayMarketingDataDashboardQueryModel extends AlipayObject { private static final long serialVersionUID = 5152545337299668613L; /** * 仪表盘ID */ @ApiField("dashboard_id") private String dashboardId; /** * 仪表盘过滤条件 */ @ApiListField("param") @ApiField("dashboard_param") private List<DashboardParam> param; public String getDashboardId() { return this.dashboardId; } public void setDashboardId(String dashboardId) { this.dashboardId = dashboardId; } public List<DashboardParam> getParam() { return this.param; } public void setParam(List<DashboardParam> param) { this.param = param; } }
[ "sylow@javashop.cn" ]
sylow@javashop.cn
5986aaa51bb428062c0f9539bf38ec809fb19c1d
cf426fe105b5bb7975171ebc3407c71168879990
/hsweb-easy-orm-rdb/src/main/java/org/hswebframework/ezorm/rdb/metadata/ConstraintMetadata.java
9461d7125dddc9721525ef0d71c2dbffd7c0cd99
[]
no_license
zhuomingliang/hsweb-easy-orm
45714ea929feb4943deb190ef0b570b4a45faaf9
c778fca65ec0a1798c542280c07f17fb218f6caa
refs/heads/master
2023-07-30T15:44:37.041507
2021-09-03T10:16:44
2021-09-03T10:16:44
null
0
0
null
null
null
null
UTF-8
Java
false
false
360
java
package org.hswebframework.ezorm.rdb.metadata; import org.hswebframework.ezorm.core.meta.ObjectMetadata; import java.util.Set; public interface ConstraintMetadata extends ObjectMetadata { @Override default RDBObjectType getObjectType() { return RDBObjectType.constraint; } Set<String> getColumns(); boolean isPrimaryKey(); }
[ "admin@hsweb.me" ]
admin@hsweb.me
294496761524f0a1dfb042ff3ef59b404a3699db
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
/methods/Method_12937.java
02b4ac5b35bd8b7903b2b8d5f847f59b4ce3dfec
[]
no_license
P79N6A/icse_20_user_study
5b9c42c6384502fdc9588430899f257761f1f506
8a3676bc96059ea2c4f6d209016f5088a5628f3c
refs/heads/master
2020-06-24T08:25:22.606717
2019-07-25T15:31:16
2019-07-25T15:31:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
504
java
/** * Strip the filename extension from the given Java resource path, * @param path the file path * @return the path with stripped filename extension */ public static String stripFilenameExtension(String path){ if (path == null) { return null; } int extIndex=path.lastIndexOf(EXTENSION_SEPARATOR); if (extIndex == -1) { return path; } int folderIndex=path.lastIndexOf(FOLDER_SEPARATOR); if (folderIndex > extIndex) { return path; } return path.substring(0,extIndex); }
[ "sonnguyen@utdallas.edu" ]
sonnguyen@utdallas.edu
7d75bc9fd105fd29169781904a59193672b5be1d
f798e0dcdb3000c46825d5b1771d4b8f0abad7d7
/Platform/Lifecycle/src/main/java/net/madz/bcel/intercept/DefaultStateMachineRegistry.java
104e6502cc7360e28161fb3dbc54d6613ef9ab36
[]
no_license
zhongdj/Swordfish
f7fa1ef8c051b0706b732dba0f6bbf53f61af10c
92d12a642dbfb20205278c9e4a5fc20a7779dea8
refs/heads/master
2021-01-19T13:52:39.012083
2013-12-17T12:04:02
2013-12-17T12:04:02
12,898,088
1
0
null
null
null
null
UTF-8
Java
false
false
1,044
java
package net.madz.bcel.intercept; import net.madz.lifecycle.AbsStateMachineRegistry; import net.madz.lifecycle.AbsStateMachineRegistry.LifecycleRegistry; import net.madz.lifecycle.AbsStateMachineRegistry.StateMachineBuilder; import net.madz.verification.VerificationException; @LifecycleRegistry({}) @StateMachineBuilder public class DefaultStateMachineRegistry extends AbsStateMachineRegistry { private static volatile DefaultStateMachineRegistry INSTANCE; public static AbsStateMachineRegistry getInstance() { if ( null == INSTANCE ) { synchronized (AbsStateMachineRegistry.class) { if ( null == INSTANCE ) { try { INSTANCE = new DefaultStateMachineRegistry(); } catch (VerificationException e) { throw new IllegalStateException(e); } } } } return INSTANCE; } protected DefaultStateMachineRegistry() throws VerificationException {} }
[ "zhongdj@gmail.com" ]
zhongdj@gmail.com
608ebe8a19338ab64119406d028c9122ea6565c6
feab921bb9d3cd09580223f26f804d77306c9ae8
/app/src/main/java/com/ixhuiyunproject/huiyun/ixconfig/utils/VibrateHelp.java
653ea7a0507e01f077980ff55a26ce2cc4424180
[]
no_license
gyymz1993/IXHuiyunProject
5c2609795530dac990bddd489d8c7e73145e5a7a
33965542c2c93b130c0ad151a516c41258c81ee1
refs/heads/master
2021-01-12T02:20:50.259463
2017-01-10T06:21:03
2017-01-10T06:21:03
78,504,130
2
0
null
null
null
null
UTF-8
Java
false
false
1,409
java
package com.ixhuiyunproject.huiyun.ixconfig.utils; import android.content.Context; import android.os.Vibrator; import com.ixhuiyunproject.huiyun.ixconfig.huiyunUtil.Sp_Key; /** * 震动帮助类 androidManifest.xml中加入 以下权限 <uses-permission * android:name="android.permission.VIBRATE" /> */ public class VibrateHelp { private static Vibrator vibrator; /** * 简单震动 * * @param context * 调用震动的Context * @param millisecond * 震动的时间,毫秒 */ @SuppressWarnings("static-access") public static void vSimple(Context context, int millisecond) { if (SpUtils.getBoolean(Sp_Key.Logo_Vibrate, true)) { vibrator = (Vibrator) context .getSystemService(context.VIBRATOR_SERVICE); vibrator.vibrate(millisecond); } } /** * 复杂的震动 * * @param context * 调用震动的Context * @param pattern * 震动形式 * @param repeate * 震动的次数,-1不重复,非-1为从pattern的指定下标开始重复 */ @SuppressWarnings("static-access") public static void vComplicated(Context context, long[] pattern, int repeate) { vibrator = (Vibrator) context .getSystemService(context.VIBRATOR_SERVICE); vibrator.vibrate(pattern, repeate); } /** * 停止震动 */ public static void stop() { if (vibrator != null) { vibrator.cancel(); } } }
[ "gyymz1993@126.com" ]
gyymz1993@126.com
92d6f66a88bbf6273a41e86350d76a1c9d282f80
62fc9eff46f60ea5f6f3d317dee3cbfea59847ed
/smack-core/src/main/java/org/jivesoftware/smack/debugger/AbstractDebugger.java
4848c8c5bff90de8aee553acf97b2f04de528e9c
[ "Apache-2.0" ]
permissive
igniterealtime/Smack
6308e11041bbbc23fef2cc3109425ea77f4816b8
19b20fefeca69cccc3637e01ec2f151a054a3351
refs/heads/master
2023-09-05T21:24:00.219050
2023-04-26T11:35:04
2023-04-26T11:35:04
16,477,702
2,483
1,026
Apache-2.0
2023-06-24T10:38:10
2014-02-03T11:36:51
Java
UTF-8
Java
false
false
6,442
java
/** * * Copyright 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.jivesoftware.smack.debugger; import java.util.logging.Logger; import org.jivesoftware.smack.AbstractXMPPConnection; import org.jivesoftware.smack.ConnectionListener; import org.jivesoftware.smack.ReconnectionListener; import org.jivesoftware.smack.ReconnectionManager; import org.jivesoftware.smack.XMPPConnection; import org.jivesoftware.smack.packet.TopLevelStreamElement; import org.jivesoftware.smack.util.ObservableReader; import org.jivesoftware.smack.util.ObservableWriter; import org.jivesoftware.smack.util.ReaderListener; import org.jivesoftware.smack.util.WriterListener; import org.jxmpp.jid.EntityFullJid; public abstract class AbstractDebugger extends SmackDebugger { private static final Logger LOGGER = Logger.getLogger(AbstractDebugger.class.getName()); public static boolean printInterpreted = false; private final ConnectionListener connListener; private final ReconnectionListener reconnectionListener; private final ReaderListener readerListener; private final WriterListener writerListener; private ObservableWriter writer; private ObservableReader reader; public AbstractDebugger(final XMPPConnection connection) { super(connection); // Create a special Reader that wraps the main Reader and logs data to the GUI. this.reader = new ObservableReader(reader); readerListener = new ReaderListener() { @Override public void read(String str) { log("RECV (" + connection.getConnectionCounter() + "): " + str); } }; this.reader.addReaderListener(readerListener); // Create a special Writer that wraps the main Writer and logs data to the GUI. this.writer = new ObservableWriter(writer); writerListener = new WriterListener() { @Override public void write(String str) { log("SENT (" + connection.getConnectionCounter() + "): " + str); } }; this.writer.addWriterListener(writerListener); connListener = new ConnectionListener() { @Override public void connected(XMPPConnection connection) { log("XMPPConnection connected (" + connection + ")"); } @Override public void authenticated(XMPPConnection connection, boolean resumed) { String logString = "XMPPConnection authenticated (" + connection + ")"; if (resumed) { logString += " and resumed"; } log(logString); } @Override public void connectionClosed() { log( "XMPPConnection closed (" + connection + ")"); } @Override public void connectionClosedOnError(Exception e) { log( "XMPPConnection closed due to an exception (" + connection + ")", e); } }; reconnectionListener = new ReconnectionListener() { @Override public void reconnectionFailed(Exception e) { log( "Reconnection failed due to an exception (" + connection + ")", e); } @Override public void reconnectingIn(int seconds) { log( "XMPPConnection (" + connection + ") will reconnect in " + seconds); } }; if (connection instanceof AbstractXMPPConnection) { AbstractXMPPConnection abstractXmppConnection = (AbstractXMPPConnection) connection; ReconnectionManager.getInstanceFor(abstractXmppConnection).addReconnectionListener(reconnectionListener); } else { LOGGER.info("The connection instance " + connection + " is not an instance of AbstractXMPPConnection, thus we can not install the ReconnectionListener"); } } protected abstract void log(String logMessage); protected abstract void log(String logMessage, Throwable throwable); @Override public final void outgoingStreamSink(CharSequence outgoingCharSequence) { log("SENT (" + connection.getConnectionCounter() + "): " + outgoingCharSequence); } @Override public final void incomingStreamSink(CharSequence incomingCharSequence) { log("RECV (" + connection.getConnectionCounter() + "): " + incomingCharSequence); } @Override public void userHasLogged(EntityFullJid user) { String localpart = user.getLocalpart().toString(); boolean isAnonymous = "".equals(localpart); String title = "User logged (" + connection.getConnectionCounter() + "): " + (isAnonymous ? "" : localpart) + "@" + connection.getXMPPServiceDomain() + ":" + connection.getPort(); title += "/" + user.getResourcepart(); log(title); // Add the connection listener to the connection so that the debugger can be notified // whenever the connection is closed. connection.addConnectionListener(connListener); } @Override public void onIncomingStreamElement(TopLevelStreamElement streamElement) { if (printInterpreted) { log("RCV PKT (" + connection.getConnectionCounter() + "): " + streamElement.toXML()); } } @Override public void onOutgoingStreamElement(TopLevelStreamElement streamElement) { // Does nothing (yet). } }
[ "flo@geekplace.eu" ]
flo@geekplace.eu
2b7c974f8d5574af72793ec8778af9616508d4bc
2564ff43b74a441c99c977a2362c919380158d5a
/Mobile/APPLICATION/mobile/tests/src/com/o2hlink/activa/client/service/test/MockService.java
19c042f3d62ac9bd3afa575d1047deb942e93725
[]
no_license
ActivaPlatform/activa
d2c9b7bbb943aa96ad3088d5d9a010b1de44418e
a89c584925f4bcf87d3299b400bec09189912cf6
refs/heads/master
2021-01-13T13:04:39.660588
2016-03-22T02:57:02
2016-03-22T02:57:02
54,227,645
0
1
null
null
null
null
UTF-8
Java
false
false
1,935
java
package com.o2hlink.activa.client.service.test; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import com.google.gwt.user.client.rpc.InvocationException; import com.o2hlink.activ8.client.action.Action; import com.o2hlink.activ8.client.entity.Entity; import com.o2hlink.activ8.client.exception.ServerException; import com.o2hlink.activ8.client.service.Service; /** * **/ public class MockService implements Service { private Map<Class<?>, ResponseHandler<Action<Entity>, Entity>> res = new HashMap<Class<?>, ResponseHandler<Action<Entity>, Entity>>(); public MockService() { res = new HashMap<Class<?>, ResponseHandler<Action<Entity>,Entity>>(); } @SuppressWarnings("unchecked") public <A extends Action<R>, R extends Entity> void setResponseHandler(Class<A> clazz, ResponseHandler<A, R> handler) { res.put(clazz, (ResponseHandler<Action<Entity>, Entity>) handler); } @SuppressWarnings("unchecked") @Override public <R extends Entity> R dispatch(Action<R> action) throws ServerException, InvocationException { ResponseHandler<Action<Entity>, Entity> handler = res.get(action.getClass()); if (handler == null) throw new UnsupportedOperationException("No response handler was defined for action " + action.getClass()); R response = (R) handler.get((Action<Entity>) action); return response; } @Override public ArrayList<Entity> dispatch(ArrayList<Action<Entity>> actions) throws ServerException, InvocationException { ArrayList<Entity> arrayResult = new ArrayList<Entity>(); for (Action<Entity> action : actions) { ResponseHandler<Action<Entity>, Entity> handler = res.get(action.getClass()); if (handler == null) throw new UnsupportedOperationException("No response handler was defined for action " + action.getClass()); Entity response = (Entity) handler.get((Action<Entity>) action); arrayResult.add(response); } return arrayResult; } }
[ "jose@viboz.com" ]
jose@viboz.com
3b8603e4821cb7737042a9bcbd1087dfb2f37b74
4edaf48a3ca4c103c7efc9f71014c791ae477233
/dag-intranet-20/modules/mef-intranet/mef-intranet-api/src/main/java/it/intranetdag/rubrica/services/InserisciTag.java
bd01a4262b6face10e4c92fc3720b30ccd6922c7
[]
no_license
echirinosmayaudon/DAG-RICHIESTA-BADGE
b66ac2e46fe1b408608bdd6e635fce7461ae3a56
e1bd4862ed27bad2eafd7aaed1617b1bd6c0d449
refs/heads/master
2023-02-01T04:54:49.292138
2020-12-18T18:27:51
2020-12-18T18:27:51
321,628,571
0
0
null
null
null
null
UTF-8
Java
false
false
1,765
java
package it.intranetdag.rubrica.services; import javax.xml.bind.JAXBElement; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType&gt; * &lt;complexContent&gt; * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; * &lt;sequence&gt; * &lt;element name="tagName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; * &lt;/sequence&gt; * &lt;/restriction&gt; * &lt;/complexContent&gt; * &lt;/complexType&gt; * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "tagName" }) @XmlRootElement(name = "inserisciTag") public class InserisciTag { @XmlElementRef(name = "tagName", namespace = "http://services.rubrica.intranetdag.it", type = JAXBElement.class, required = false) protected JAXBElement<String> tagName; /** * Gets the value of the tagName property. * * @return * possible object is * {@link JAXBElement }{@code <}{@link String }{@code >} * */ public JAXBElement<String> getTagName() { return tagName; } /** * Sets the value of the tagName property. * * @param value * allowed object is * {@link JAXBElement }{@code <}{@link String }{@code >} * */ public void setTagName(JAXBElement<String> value) { this.tagName = value; } }
[ "m.gigli@almaviva.it" ]
m.gigli@almaviva.it
d7e311710ced1836e8ea93a28eb113d315a73eb2
806f76edfe3b16b437be3eb81639d1a7b1ced0de
/src/com/huawei/phoneserviceuni/common/p132d/p496b/C5766a.java
fe72d506fcdaae8497570ba7aa6877cd6442bd7a
[]
no_license
magic-coder/huawei-wear-re
1bbcabc807e21b2fe8fe9aa9d6402431dfe3fb01
935ad32f5348c3d8c8d294ed55a5a2830987da73
refs/heads/master
2021-04-15T18:30:54.036851
2018-03-22T07:16:50
2018-03-22T07:16:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,792
java
package com.huawei.phoneserviceuni.common.p132d.p496b; import com.huawei.phoneserviceuni.common.d.c; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.BlockingQueue; import java.util.concurrent.RejectedExecutionHandler; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy; import java.util.concurrent.TimeUnit; /* compiled from: ThreadPoolManager */ public final class C5766a { private static final TimeUnit f19546a = TimeUnit.SECONDS; private static int f19547b = 2; private static int f19548c = 5; private static int f19549d = 3600; private static int f19550e = ((f19547b + f19548c) / 2); private static C5766a f19551i = new C5766a(); private volatile ThreadPoolExecutor f19552f = null; private RejectedExecutionHandler f19553g = new DiscardOldestPolicy(); private BlockingQueue<Runnable> f19554h = new ArrayBlockingQueue(f19550e); private C5766a() { } public static C5766a m26469a() { C5766a c5766a; synchronized (f19551i) { if (f19551i.f19552f == null || f19551i.f19552f.isShutdown()) { try { f19551i.f19552f = new ThreadPoolExecutor(f19547b, f19548c, (long) f19549d, f19546a, f19551i.f19554h, f19551i.f19553g); } catch (Exception e) { c.a(e, "ThreadPoolManager"); } } c5766a = f19551i; } return c5766a; } public void m26470a(Runnable runnable) { if (this.f19552f != null && runnable != null) { try { this.f19552f.execute(runnable); } catch (Exception e) { c.a(e, "ThreadPoolManager"); } } } }
[ "lebedev1537@gmail.com" ]
lebedev1537@gmail.com
4fadafd298d1bb376c8ef7cbef38ff49b3719851
37b82d2a9fa5ed996765ca0375617351230bace0
/Chapter_002/src/main/java/ru/plahotin/start/ConsoleInput.java
e6cf992fcf46a1a6a752b96023a170711f4bbb7e
[ "Apache-2.0" ]
permissive
praddx/JavaCourse
8e918e9aabe253a63414f34a5ac8a79e3b465317
c28abdb1a98c6194e111145ce291ce8c2b69889f
refs/heads/master
2020-07-28T15:12:03.019981
2017-02-26T21:50:32
2017-02-26T21:50:32
73,408,299
0
1
null
null
null
null
UTF-8
Java
false
false
1,431
java
package ru.plahotin.start; import java.util.Scanner; /**... * Class that sets input to a console intput by user */ public class ConsoleInput implements Input { private Scanner scanner = new Scanner(System.in); /**... * method prints a question and reads user input * @param question - prompt messege * @return - returns user input */ @Override public String ask(String question) { System.out.print(question); return scanner.nextLine(); } /**... * method prints a question and reads user input * checks if input is correct and if so returns acquired input * @param question - prompt messege * @param range - range of possible actions * @return key - returns user input */ @Override public int ask(String question, int[] range) { int key = Integer.valueOf(this.ask(question)); boolean exist = false; for (int value : range) { if (value == key) { exist = true; break; } } if (exist) { return key; } else { throw new MenuOutException("Please select correct choice."); } } /**... * method prints a question and reads user input * @param question - prompt messege * @param defValue - default value * @return - returns user input */ @Override public String ask(String question, String defValue) { System.out.print(question); String answer = scanner.nextLine(); if (!answer.equals("")) { return answer; } else { return defValue; } } }
[ "praddcell@gmail.com" ]
praddcell@gmail.com
a5eb92b7aafb0577982b7f290107053cd3c7f28c
b1060d1b8da5dba04397def75b7ef3097208afff
/src/main/java/io/jenkins/plugins/org/mortbay/jetty/jenkins/tck/TckReportToJunitStep.java
0b33c72619622181ee9963742c7383c73dbcc2e9
[]
no_license
jetty-project/tck-report-to-junit-step
2ad1fcf7ee0271bbece7a1ad2c9f659ee559e08c
811b375b0fd426e54752bec8e2e3cd20495a6b6d
refs/heads/master
2023-08-16T06:52:08.329152
2022-11-01T00:18:31
2022-11-01T00:18:31
198,170,687
0
1
null
2023-01-27T01:18:08
2019-07-22T07:29:30
Java
UTF-8
Java
false
false
1,609
java
package io.jenkins.plugins.org.mortbay.jetty.jenkins.tck; import hudson.Extension; import hudson.FilePath; import org.jenkinsci.Symbol; import org.jenkinsci.plugins.workflow.steps.Step; import org.jenkinsci.plugins.workflow.steps.StepContext; import org.jenkinsci.plugins.workflow.steps.StepDescriptor; import org.jenkinsci.plugins.workflow.steps.StepExecution; import org.kohsuke.stapler.DataBoundConstructor; import javax.annotation.Nonnull; import java.util.Collections; import java.util.Set; public class TckReportToJunitStep extends Step { private String tckReportTxtPath; private String junitFolderPath; @DataBoundConstructor public TckReportToJunitStep( String tckReportTxtPath, String junitFolderPath ) { this.tckReportTxtPath = tckReportTxtPath; this.junitFolderPath = junitFolderPath; } @Override public StepExecution start( StepContext stepContext ) throws Exception { return new TckReportToJunitStepExecution(stepContext, tckReportTxtPath, junitFolderPath); } @Extension @Symbol( "tckreporttojunit" ) public static class DescriptorImpl extends StepDescriptor { @Override public String getFunctionName() { return "tckreporttojunit"; } @Override public Set<? extends Class<?>> getRequiredContext() { return Collections.singleton( FilePath.class ); } @Nonnull @Override public String getDisplayName() { return "TCK Report to Junit report"; } } }
[ "olamy@apache.org" ]
olamy@apache.org
3d1dd088121b0c5966972f33d461b6d44bb06675
a676ea6348b612bafa5d92b6ecdb0917a7e4b6b7
/retrofit/src/main/java/retrofit/http/client/Response.java
bc14ab291b5c4f9b07b78623db9c002dcc1b9068
[ "Apache-2.0" ]
permissive
dustin-graham/retrofit
956dd96f2fcc22b99746b5370f784440d4fdd5e6
1e136cb3ab09ad6235eeffd62eff4dea80c42a58
refs/heads/master
2020-12-25T03:10:44.094341
2013-05-13T14:31:09
2013-05-13T14:31:09
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,855
java
/* * Copyright (C) 2013 Square, 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 retrofit.http.client; import java.util.ArrayList; import java.util.Collections; import java.util.List; import retrofit.http.mime.TypedInput; /** An HTTP response. */ public final class Response { private final int status; private final String reason; private final List<Header> headers; private final TypedInput body; public Response(int status, String reason, List<Header> headers, TypedInput body) { if (status < 200) { throw new IllegalArgumentException("Invalid status code: " + status); } if (reason == null) { throw new IllegalArgumentException("reason == null"); } if (headers == null) { throw new IllegalArgumentException("headers == null"); } this.status = status; this.reason = reason; this.headers = Collections.unmodifiableList(new ArrayList<Header>(headers)); this.body = body; } /** Status line code. */ public int getStatus() { return status; } /** Status line reason phrase. */ public String getReason() { return reason; } /** An unmodifiable collection of headers. */ public List<Header> getHeaders() { return headers; } /** Response body. May be {@code null}. */ public TypedInput getBody() { return body; } }
[ "jw@squareup.com" ]
jw@squareup.com
02f45c61f23df2c51db44a4e8d7810e11f76d455
83436380fe01acf30dd154294b3da930e58c5ceb
/BelejanorProject/src/com/belejanor/switcher/bimo/pacs/pacs_007_041/DocumentAdjustment1.java
c644d2f78a4a2b0597353800bc6b9eba34f505e2
[]
no_license
jmptrader/BelejanorSwitch
83e847ee3dc6a555a40e6347f40af4e106c9054f
ce11d46b5ed52b89d22b5890f1e4fad29730125a
refs/heads/master
2023-02-07T07:22:42.266465
2020-12-27T05:07:15
2020-12-27T05:07:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,069
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-520 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2018.02.26 at 10:01:11 AM COT // package com.belejanor.switcher.bimo.pacs.pacs_007_041; import java.io.Serializable; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for DocumentAdjustment1 complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="DocumentAdjustment1"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="Amt" type="{urn:iso:std:iso:20022:tech:xsd:pacs.007.001.07.041}ActiveOrHistoricCurrencyAndAmount"/> * &lt;element name="CdtDbtInd" type="{urn:iso:std:iso:20022:tech:xsd:pacs.007.001.07.041}CreditDebitCode" minOccurs="0"/> * &lt;element name="Rsn" type="{urn:iso:std:iso:20022:tech:xsd:pacs.007.001.07.041}Max4Text" minOccurs="0"/> * &lt;element name="AddtlInf" type="{urn:iso:std:iso:20022:tech:xsd:pacs.007.001.07.041}Max140Text" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @SuppressWarnings("serial") @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "DocumentAdjustment1", propOrder = { "amt", "cdtDbtInd", "rsn", "addtlInf" }) public class DocumentAdjustment1 implements Serializable{ @XmlElement(name = "Amt", required = true) protected ActiveOrHistoricCurrencyAndAmount amt; @XmlElement(name = "CdtDbtInd") protected CreditDebitCode cdtDbtInd; @XmlElement(name = "Rsn") protected String rsn; @XmlElement(name = "AddtlInf") protected String addtlInf; /** * Gets the value of the amt property. * * @return * possible object is * {@link ActiveOrHistoricCurrencyAndAmount } * */ public ActiveOrHistoricCurrencyAndAmount getAmt() { return amt; } /** * Sets the value of the amt property. * * @param value * allowed object is * {@link ActiveOrHistoricCurrencyAndAmount } * */ public void setAmt(ActiveOrHistoricCurrencyAndAmount value) { this.amt = value; } /** * Gets the value of the cdtDbtInd property. * * @return * possible object is * {@link CreditDebitCode } * */ public CreditDebitCode getCdtDbtInd() { return cdtDbtInd; } /** * Sets the value of the cdtDbtInd property. * * @param value * allowed object is * {@link CreditDebitCode } * */ public void setCdtDbtInd(CreditDebitCode value) { this.cdtDbtInd = value; } /** * Gets the value of the rsn property. * * @return * possible object is * {@link String } * */ public String getRsn() { return rsn; } /** * Sets the value of the rsn property. * * @param value * allowed object is * {@link String } * */ public void setRsn(String value) { this.rsn = value; } /** * Gets the value of the addtlInf property. * * @return * possible object is * {@link String } * */ public String getAddtlInf() { return addtlInf; } /** * Sets the value of the addtlInf property. * * @param value * allowed object is * {@link String } * */ public void setAddtlInf(String value) { this.addtlInf = value; } }
[ "jorellana29@gmail.com" ]
jorellana29@gmail.com
0d185f190e81f9f4174a8658ea32c70169d08ebc
48a8d0c215050e30f72f62f1f082c09a1d655bd0
/source-hive/src/main/java/org/apache/kylin/source/hive/cardinality/ColumnCardinalityMapper.java
f8b97bf5590fe421088a200adb8eba84bd3aa5db
[ "MIT", "Apache-2.0" ]
permissive
aixuebo/lin1.5.4
efa2f84f838bfe5388eb195c1b8547cac84d56c3
33341bb2c23a5c860891650b0470e8dc47a316de
refs/heads/master
2022-04-27T15:21:53.337513
2022-04-10T12:29:16
2022-04-10T12:29:16
74,278,471
0
0
null
null
null
null
UTF-8
Java
false
false
4,838
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.kylin.source.hive.cardinality; import java.io.IOException; import java.nio.ByteBuffer; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.io.BytesWritable; import org.apache.hadoop.io.IntWritable; import org.apache.kylin.common.KylinConfig; import org.apache.kylin.common.util.Bytes; import org.apache.kylin.engine.mr.IMRInput.IMRTableInputFormat; import org.apache.kylin.engine.mr.KylinMapper; import org.apache.kylin.engine.mr.MRUtil; import org.apache.kylin.engine.mr.common.AbstractHadoopJob; import org.apache.kylin.engine.mr.common.BatchConstants; import org.apache.kylin.measure.BufferedMeasureEncoder; import org.apache.kylin.measure.hllc.HyperLogLogPlusCounter; import org.apache.kylin.metadata.MetadataManager; import org.apache.kylin.metadata.model.ColumnDesc; import org.apache.kylin.metadata.model.TableDesc; /** * @author Jack * 对hive的table表中每一个列进行估算distinct(value), * 输出列序号,统计值 */ public class ColumnCardinalityMapper<T> extends KylinMapper<T, Object, IntWritable, BytesWritable> { //key是第几个列,value是该列对应的统计对象,该对象是估算对象 private Map<Integer, HyperLogLogPlusCounter> hllcMap = new HashMap<Integer, HyperLogLogPlusCounter>(); public static final String DEFAULT_DELIM = ","; private int counter = 0;//该map解析了多少行table信息 private TableDesc tableDesc; private IMRTableInputFormat tableInputFormat; @Override protected void setup(Context context) throws IOException { Configuration conf = context.getConfiguration(); bindCurrentConfiguration(conf);//让线程持有该Configuration对象 KylinConfig config = AbstractHadoopJob.loadKylinPropsAndMetadata(); String tableName = conf.get(BatchConstants.CFG_TABLE_NAME);//获取hive的table名称 tableDesc = MetadataManager.getInstance(config).getTableDesc(tableName);//获得table对应的元数据 tableInputFormat = MRUtil.getTableInputFormat(tableDesc);//元数据对应的格式 } @Override public void map(T key, Object value, Context context) throws IOException, InterruptedException { ColumnDesc[] columns = tableDesc.getColumns(); String[] values = tableInputFormat.parseMapperInput(value);//将所有列转换成数组 //循环所有的列 for (int m = 0; m < columns.length; m++) { String field = columns[m].getName();//获取列名字 String fieldValue = values[m];//获取列值 if (fieldValue == null) //列值是null,则赋予字符串为null fieldValue = "NULL"; if (counter < 5 && m < 10) {//打印每一个map的前5行的前10列内容 System.out.println("Get row " + counter + " column '" + field + "' value: " + fieldValue); } if (fieldValue != null) getHllc(m).add(Bytes.toBytes(fieldValue.toString()));//向该列添加字节内容,去进行估算distinct内容信息 } counter++;//累加行信息 } //参数是第几个列 private HyperLogLogPlusCounter getHllc(Integer key) { if (!hllcMap.containsKey(key)) { hllcMap.put(key, new HyperLogLogPlusCounter()); } return hllcMap.get(key); } @Override protected void cleanup(Context context) throws IOException, InterruptedException { Iterator<Integer> it = hllcMap.keySet().iterator(); ByteBuffer buf = ByteBuffer.allocate(BufferedMeasureEncoder.DEFAULT_BUFFER_SIZE);//1M while (it.hasNext()) { int key = it.next(); HyperLogLogPlusCounter hllc = hllcMap.get(key); buf.clear(); hllc.writeRegisters(buf); buf.flip(); context.write(new IntWritable(key), new BytesWritable(buf.array(), buf.limit()));//输出某一个列,value是估算内容 } } }
[ "78608544@qq.com" ]
78608544@qq.com
7036a9b645a493f06a106fe1552548bd0a052ca8
406920ca903220dd87b5c5e96abd5334285b619a
/Wfca/src/com/um/controller/AppBaseActivity.java
a402520f0e3a5643ff915b3dee8b691f8e17f40a
[]
no_license
Phenix-Collection/unionman_apps
2c5f569ba1702f660f59220a34eb5a50a5b41baf
9f1efa3aa99cfc453f60ab4383ea25690339886b
refs/heads/master
2021-07-15T01:50:56.268296
2016-09-20T08:48:12
2016-09-20T08:48:12
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,098
java
package com.um.controller; import com.um.dvbstack.ProgManage; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.media.MediaPlayer; import android.os.Bundle; import android.os.CountDownTimer; import android.util.Log; import android.view.KeyEvent; public class AppBaseActivity extends Activity { Context mContext; public MediaPlayer mMediaPlayer = null; private CountDownTimer countDownTimer = null; private AutoFinishListener autoFinishListener = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); } public void setMediaPlayer(MediaPlayer mediaplayer) { Log.i("AppBaseActivity","setMediaPlayer...."); mMediaPlayer = mediaplayer; } public void setContext(Context c) { mContext =c; } protected void setAutoFinish(int second, AutoFinishListener autoFinishListener) { this.autoFinishListener = autoFinishListener; countDownTimer = new CountDownTimer(1000 * second, 1000) { public void onTick(long millisUntilFinished) { } public void onFinish() { if (AppBaseActivity.this.autoFinishListener != null) { AppBaseActivity.this.autoFinishListener.onFinish(); } finish(); } }; } @Override protected void onResume() { super.onResume(); if (countDownTimer != null) { countDownTimer.start(); } } @Override protected void onPause() { super.onPause(); if (countDownTimer != null) { countDownTimer.cancel(); } } protected void restarAutoFinishTimer() { if (countDownTimer != null) { countDownTimer.cancel(); countDownTimer.start(); } } protected void startAutoFinishTimer() { if (countDownTimer != null) { countDownTimer.start(); } } protected void stopAutoFinishTimer() { if (countDownTimer != null) { countDownTimer.cancel(); } } public boolean onKeyDown(int keyCode, KeyEvent event) { restarAutoFinishTimer(); switch (keyCode) { case KeyEvent.KEYCODE_DPAD_UP: break; case KeyEvent.KEYCODE_DPAD_DOWN: break; case 1181: // BTV jian /* if(this instanceof Dvbplayer_Activity) { break; } Intent it1 = new Intent(AppBaseActivity.this, Dvbplayer_Activity.class); ProgManage.GetInstance().SetCurMode(ProgManage.TVPROG); startActivity(it1); */ break; default: break; } return super.onKeyDown(keyCode, event); } public boolean onKeyUp(int keyCode, KeyEvent event) { switch (keyCode) { case KeyEvent.KEYCODE_BACK: case KeyEvent.KEYCODE_MENU: case KeyEvent.KEYCODE_DPAD_CENTER: case KeyEvent.KEYCODE_DPAD_UP: case KeyEvent.KEYCODE_DPAD_DOWN: break; } return super.onKeyUp(keyCode, event); } public interface AutoFinishListener{ public void onFinish(); } }
[ "1499784130@qq.com" ]
1499784130@qq.com
c396fb0c1eea5a5c4632bd3953f406cf22de4d3d
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
/methods/Method_20980.java
bec93284e85cf8d1a79933a7939152939501a742
[]
no_license
P79N6A/icse_20_user_study
5b9c42c6384502fdc9588430899f257761f1f506
8a3676bc96059ea2c4f6d209016f5088a5628f3c
refs/heads/master
2020-06-24T08:25:22.606717
2019-07-25T15:31:16
2019-07-25T15:31:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
207
java
@Override public @NonNull Observable<List<SurveyResponse>> fetchUnansweredSurveys(){ return Observable.just(Arrays.asList(SurveyResponseFactory.surveyResponse(),SurveyResponseFactory.surveyResponse())); }
[ "sonnguyen@utdallas.edu" ]
sonnguyen@utdallas.edu
4f4822ec27f14cec9792ff48eab7e8c3d58b817a
2a3f19a4a2b91d9d715378aadb0b1557997ffafe
/sources/com/newrelic/mobile/fbs/ios/Library.java
4536fb92c6be53b114a0cdb5a14960f38c1962e7
[]
no_license
amelieko/McDonalds-java
ce5062f863f7f1cbe2677938a67db940c379d0a9
2fe00d672caaa7b97c4ff3acdb0e1678669b0300
refs/heads/master
2022-01-09T22:10:40.360630
2019-04-21T14:47:20
2019-04-21T14:47:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,105
java
package com.newrelic.mobile.fbs.ios; import com.newrelic.com.google.flatbuffers.FlatBufferBuilder; import com.newrelic.com.google.flatbuffers.Table; import java.nio.ByteBuffer; import java.nio.ByteOrder; public final class Library extends Table { public static Library getRootAsLibrary(ByteBuffer _bb) { return getRootAsLibrary(_bb, new Library()); } public static Library getRootAsLibrary(ByteBuffer _bb, Library obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb); } public void __init(int _i, ByteBuffer _bb) { this.bb_pos = _i; this.f6700bb = _bb; } public Library __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long uuidLow() { int o = __offset(4); return o != 0 ? this.f6700bb.getLong(this.bb_pos + o) : 0; } public boolean mutateUuidLow(long uuidLow) { int o = __offset(4); if (o == 0) { return false; } this.f6700bb.putLong(this.bb_pos + o, uuidLow); return true; } public long uuidHigh() { int o = __offset(6); return o != 0 ? this.f6700bb.getLong(this.bb_pos + o) : 0; } public boolean mutateUuidHigh(long uuidHigh) { int o = __offset(6); if (o == 0) { return false; } this.f6700bb.putLong(this.bb_pos + o, uuidHigh); return true; } public long address() { int o = __offset(8); return o != 0 ? this.f6700bb.getLong(this.bb_pos + o) : 0; } public boolean mutateAddress(long address) { int o = __offset(8); if (o == 0) { return false; } this.f6700bb.putLong(this.bb_pos + o, address); return true; } public boolean userLibrary() { int o = __offset(10); return (o == 0 || this.f6700bb.get(this.bb_pos + o) == (byte) 0) ? false : true; } public boolean mutateUserLibrary(boolean userLibrary) { int i = 0; int o = __offset(10); if (o == 0) { return false; } ByteBuffer byteBuffer = this.f6700bb; int i2 = this.bb_pos + o; if (userLibrary) { i = 1; } byteBuffer.put(i2, (byte) i); return true; } public int arch() { int o = __offset(12); return o != 0 ? this.f6700bb.get(this.bb_pos + o) & 255 : 0; } public boolean mutateArch(int arch) { int o = __offset(12); if (o == 0) { return false; } this.f6700bb.put(this.bb_pos + o, (byte) arch); return true; } public static int createLibrary(FlatBufferBuilder builder, long uuidLow, long uuidHigh, long address, boolean userLibrary, int arch) { builder.startObject(5); addAddress(builder, address); addUuidHigh(builder, uuidHigh); addUuidLow(builder, uuidLow); addArch(builder, arch); addUserLibrary(builder, userLibrary); return endLibrary(builder); } public static void startLibrary(FlatBufferBuilder builder) { builder.startObject(5); } public static void addUuidLow(FlatBufferBuilder builder, long uuidLow) { builder.addLong(0, uuidLow, 0); } public static void addUuidHigh(FlatBufferBuilder builder, long uuidHigh) { builder.addLong(1, uuidHigh, 0); } public static void addAddress(FlatBufferBuilder builder, long address) { builder.addLong(2, address, 0); } public static void addUserLibrary(FlatBufferBuilder builder, boolean userLibrary) { builder.addBoolean(3, userLibrary, false); } public static void addArch(FlatBufferBuilder builder, int arch) { builder.addByte(4, (byte) arch, 0); } public static int endLibrary(FlatBufferBuilder builder) { return builder.endObject(); } public static void finishLibraryBuffer(FlatBufferBuilder builder, int offset) { builder.finish(offset); } }
[ "makfc1234@gmail.com" ]
makfc1234@gmail.com
23c885783b916eea6176d97fbeff1618fc4b7a07
79595075622ded0bf43023f716389f61d8e96e94
/app/src/main/java/javax/net/ssl/ExtendedSSLSession.java
868c041e2b32d68e5c74de79385418ab6cb9dd8f
[]
no_license
dstmath/OppoR15
96f1f7bb4d9cfad47609316debc55095edcd6b56
b9a4da845af251213d7b4c1b35db3e2415290c96
refs/heads/master
2020-03-24T16:52:14.198588
2019-05-27T02:24:53
2019-05-27T02:24:53
142,840,716
7
4
null
null
null
null
UTF-8
Java
false
false
370
java
package javax.net.ssl; import java.util.List; public abstract class ExtendedSSLSession implements SSLSession { public abstract String[] getLocalSupportedSignatureAlgorithms(); public abstract String[] getPeerSupportedSignatureAlgorithms(); public List<SNIServerName> getRequestedServerNames() { throw new UnsupportedOperationException(); } }
[ "toor@debian.toor" ]
toor@debian.toor
9faa19f3298d40b9a7e24f934f4b7f60a52b09f2
be8ed5a2173eab42db5f5fc9443ac7cbf7547dc8
/app/src/main/java/com/iceteck/silicompressorr/VideoCompress.java
f4dc5cad325372231b3f8392068547dbcf700b72
[]
no_license
aa86799/StoneViewsKt
8feaf6c8b4cc52ad02c45041b6943635c9f7441b
aeca92c05a3ac59dbcbcc8828f734ae9559bbe77
refs/heads/master
2023-07-08T20:31:00.992696
2023-07-05T09:26:05
2023-07-05T09:26:05
253,421,041
4
2
null
null
null
null
UTF-8
Java
false
false
2,816
java
package com.iceteck.silicompressorr; import android.os.AsyncTask; import com.iceteck.silicompressorr.videocompression.VideoController; /** * Created by Vincent Woo * Date: 2017/8/16 * Time: 15:15 */ public class VideoCompress { private static final String TAG = VideoCompress.class.getSimpleName(); public static VideoCompressTask compressVideoHigh(String srcPath, String destPath, CompressListener listener) { VideoCompressTask task = new VideoCompressTask(listener, VideoController.COMPRESS_QUALITY_HIGH); task.execute(srcPath, destPath); return task; } public static VideoCompressTask compressVideoMedium(String srcPath, String destPath, CompressListener listener) { VideoCompressTask task = new VideoCompressTask(listener, VideoController.COMPRESS_QUALITY_MEDIUM); task.execute(srcPath, destPath); return task; } public static VideoCompressTask compressVideoLow(String srcPath, String destPath, CompressListener listener) { VideoCompressTask task = new VideoCompressTask(listener, VideoController.COMPRESS_QUALITY_LOW); task.execute(srcPath, destPath); return task; } private static class VideoCompressTask extends AsyncTask<String, Float, Boolean> { private CompressListener mListener; private int mQuality; public VideoCompressTask(CompressListener listener, int quality) { mListener = listener; mQuality = quality; } @Override protected void onPreExecute() { super.onPreExecute(); if (mListener != null) { mListener.onStart(); } } @Override protected Boolean doInBackground(String... paths) { return VideoController.getInstance().convertVideo(paths[0], paths[1], mQuality, new VideoController.CompressProgressListener() { @Override public void onProgress(float percent) { publishProgress(percent); } }); } @Override protected void onProgressUpdate(Float... percent) { super.onProgressUpdate(percent); if (mListener != null) { mListener.onProgress(percent[0]); } } @Override protected void onPostExecute(Boolean result) { super.onPostExecute(result); if (mListener != null) { if (result) { mListener.onSuccess(); } else { mListener.onFail(); } } } } public interface CompressListener { void onStart(); void onSuccess(); void onFail(); void onProgress(float percent); } }
[ "aa86799@163.com" ]
aa86799@163.com
14b2137053225affbc3c3203b57e84c4bc1fd226
2d7be601e45efdb7ad772dccb8cd7c3564c479e2
/state/src/main/java/com/state2/RunningState.java
9725d986cb63ce1b9b72c0ed7be60d241826a426
[]
no_license
xinput123/design-pattern
425be7bcb20c09308f54422429146c67fb95261b
ccc9979839112ab07e1677db7f783f972ca6a823
refs/heads/master
2021-07-18T02:15:25.487797
2020-08-13T07:19:42
2020-08-13T07:19:42
185,757,682
0
0
null
null
null
null
UTF-8
Java
false
false
474
java
package com.state2; /** * 运行状态 */ public class RunningState extends LiftState { @Override public void open() { // do nothing } @Override public void close() { // do nothing } @Override public void run() { System.out.println("电梯上下运行"); } @Override public void stop() { super.context.setLiftState(Context.stoppingState); super.context.getLiftState().stop(); } }
[ "yuan_lai1234@163.com" ]
yuan_lai1234@163.com
bd40d71c40b7c0a9def4b6d3cf7a91c837212ddd
5c6f6d87450685fa28202724caac59c730113219
/src/main/java/org/apache/commons/workflow/Activity.java
bc03d30931f161a2424f5ab7b30e1543066708de
[ "Apache-2.0" ]
permissive
JoshLikesBeer/commons-workflow
32266d6bb5248b19d47a0ece244d1f9e05ad13c7
d40b810c7d0afa3039ab9923c523a63b4a8e59d2
refs/heads/master
2020-08-05T01:53:47.138614
2019-10-02T20:48:23
2019-10-02T20:48:23
212,354,303
0
0
Apache-2.0
2019-10-02T13:53:09
2019-10-02T13:53:08
null
UTF-8
Java
false
false
1,603
java
/* * Copyright 1999-2001,2004 The Apache Software Foundation. * * 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.apache.commons.workflow; /** * <p>An <strong>Activity</strong> represents an ordered sequence of Steps * that comprise the executable actions necessary to accomplish a business * task. The dynamic execution of the Steps owned by this Activity happens * within the <code>execute()</code> method of a <code>Context</code> that * is utilizing this <code>Activity</code> definition.</p> * * @version $Revision$ $Date$ * @author Craig R. McClanahan */ public interface Activity extends Owner { // ------------------------------------------------------------- Properties /** * Return the unique identifier (within this Activity) of this Step. */ public String getId(); /** * Set the unique identifier (within this Activity) of this Step. * * @param id The new unique identifier */ public void setId(String id); // --------------------------------------------------------- Public Methods }
[ "bayard@13f79535-47bb-0310-9956-ffa450edef68" ]
bayard@13f79535-47bb-0310-9956-ffa450edef68
7c0c8bb33e90d618c7f9bf31d2d6c795e4851cdf
8dc49f037b885dae5f198d625129c96edce2bc1e
/study/bill/org/hsqldb/types/BlobData.java
350cc98e921ddd411096a4b28c1a16dac3343dfb
[]
no_license
Dlyyy/javaproject
65460e0d281f017a346776f3f4b6efff6b284642
0d37584bf1b3fb4302afbe9571850a7c7f70a11a
refs/heads/master
2020-04-10T21:33:09.102813
2019-01-26T01:33:20
2019-01-26T01:33:20
161,299,205
1
0
null
null
null
null
UTF-8
Java
false
false
2,297
java
package org.hsqldb.types; import java.io.InputStream; import org.hsqldb.SessionInterface; public abstract interface BlobData extends LobData { public abstract byte[] getBytes(); public abstract byte[] getBytes(SessionInterface paramSessionInterface, long paramLong, int paramInt); public abstract BlobData getBlob(SessionInterface paramSessionInterface, long paramLong1, long paramLong2); public abstract InputStream getBinaryStream(SessionInterface paramSessionInterface); public abstract InputStream getBinaryStream(SessionInterface paramSessionInterface, long paramLong1, long paramLong2); public abstract long length(SessionInterface paramSessionInterface); public abstract long bitLength(SessionInterface paramSessionInterface); public abstract boolean isBits(); public abstract void setBytes(SessionInterface paramSessionInterface, long paramLong, byte[] paramArrayOfByte, int paramInt1, int paramInt2); public abstract void setBytes(SessionInterface paramSessionInterface, long paramLong, byte[] paramArrayOfByte); public abstract void setBytes(SessionInterface paramSessionInterface, long paramLong1, BlobData paramBlobData, long paramLong2, long paramLong3); public abstract void setBinaryStream(SessionInterface paramSessionInterface, long paramLong, InputStream paramInputStream); public abstract void truncate(SessionInterface paramSessionInterface, long paramLong); public abstract BlobData duplicate(SessionInterface paramSessionInterface); public abstract long position(SessionInterface paramSessionInterface, byte[] paramArrayOfByte, long paramLong); public abstract long position(SessionInterface paramSessionInterface, BlobData paramBlobData, long paramLong); public abstract long nonZeroLength(SessionInterface paramSessionInterface); public abstract long getId(); public abstract void setId(long paramLong); public abstract void free(); public abstract boolean isClosed(); public abstract void setSession(SessionInterface paramSessionInterface); public abstract int getStreamBlockSize(); } /* Location: E:\java\java学习\hutubill\lib\all.jar!\org\hsqldb\types\BlobData.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "704220442@qq.com" ]
704220442@qq.com
49ffd82b28d0770c65db0f51e445de9bb689a5e4
2314607d22025c8896817458183cffd63e399e41
/core/src/com/bitdecay/helm/entities/LandingPlatformEntity.java
525490984ea8c56e7f00362d424ba64a4733eb33
[]
no_license
MondayHopscotch/Helm
2809d8601a1d34e1c522d120ffd8de8fc84a463e
ba6687b8943ffeb96e114e206f8c478e20ff7221
refs/heads/master
2023-08-29T04:34:46.542777
2018-12-16T17:30:07
2018-12-16T17:30:07
75,701,799
0
0
null
null
null
null
UTF-8
Java
false
false
1,239
java
package com.bitdecay.helm.entities; import com.badlogic.gdx.math.Rectangle; import com.badlogic.gdx.math.Vector2; /** * Created by Monday on 12/14/2016. */ public class LandingPlatformEntity extends com.bitdecay.helm.GameEntity { public LandingPlatformEntity(Rectangle shape, float rotation) { Rectangle copy = new Rectangle(shape); copy.x -= shape.x; copy.y -= shape.y; float[] geomPoints = com.bitdecay.helm.math.Geom.rectangleToFloatPoints(copy, 0); addComponent(new com.bitdecay.helm.component.BodyDefComponent(geomPoints)); addComponent(com.bitdecay.helm.component.collide.GeometryComponentFactory.getPolygonGeomComponent(geomPoints, com.bitdecay.helm.collision.CollisionDirection.DELIVERS)); addComponent(new com.bitdecay.helm.component.collide.CollisionKindComponent(com.bitdecay.helm.collision.CollisionKind.LANDING_PLATFORM)); addComponent(new com.bitdecay.helm.component.TransformComponent(new Vector2(shape.x, shape.y), rotation)); addComponent(new com.bitdecay.helm.component.RenderColorComponent(com.bitdecay.helm.unlock.palette.GameColors.LANDING_PLATFORM)); addComponent(new com.bitdecay.helm.component.CameraFollowComponent()); } }
[ "monday.hopscotch@gmail.com" ]
monday.hopscotch@gmail.com
7220fbd7c3c723a89b8a4df10753fd25a810b98e
e7be1dcb6e197ec87a2abce68d44dd40bc880f03
/src/com/intellij/xtextLanguage/xtext/XtextUtil.java
5963326a3221c76a4063a10a6b73cb5245f0efb5
[]
no_license
pakhopav/XtextLanguage
5df95daabf83b25ca90b2fa8010d5b6636bed36c
d9e1526453f0404821bfcbe41f3f49e3f708940e
refs/heads/master
2020-07-02T07:22:53.224149
2019-08-12T13:40:44
2019-08-12T13:40:44
201,455,657
0
0
null
null
null
null
UTF-8
Java
false
false
3,693
java
package com.intellij.xtextLanguage.xtext; import com.intellij.openapi.project.Project; import com.intellij.openapi.vfs.VirtualFile; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiFile; import com.intellij.psi.PsiManager; import com.intellij.psi.search.FileTypeIndex; import com.intellij.psi.search.GlobalSearchScope; import com.intellij.psi.util.PsiTreeUtil; import com.intellij.xtextLanguage.xtext.psi.XtextFile; import com.intellij.xtextLanguage.xtext.psi.XtextNamedElement; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; public class XtextUtil { public static <T extends XtextNamedElement> List<T> findElementsInProject(Project project, Class<T> tClass, String Id) { List<T> result = null; Collection<VirtualFile> virtualFiles = FileTypeIndex.getFiles(XtextFileType.INSTANCE, GlobalSearchScope.allScope(project)); for (VirtualFile virtualFile : virtualFiles) { XtextFile simpleFile = (XtextFile) PsiManager.getInstance(project).findFile(virtualFile); if (simpleFile != null) { T[] elements = PsiTreeUtil.getChildrenOfType(simpleFile, tClass); if (elements != null) { for (T property : elements) { if (Id.equals(property.getName())) { if (result == null) { result = new ArrayList<T>(); } result.add(property); } } } } } return result != null ? result : Collections.<T>emptyList(); } public static <T extends XtextNamedElement> List<T> findElementsInCurrentFile(PsiFile file, Class<T> tClass, String Id) { List<T> result = null; XtextFile xtextFile = (XtextFile) file; if (xtextFile != null) { T[] elements = PsiTreeUtil.getChildrenOfType(xtextFile, tClass); if (elements != null) { for (T property : elements) { if (Id.equals(property.getName())) { if (result == null) { result = new ArrayList<T>(); } result.add(property); } } } } return result != null ? result : Collections.<T>emptyList(); } public static <T extends PsiElement> List<T> findElementsInProject(Project project, Class<T> tClass) { List<T> result = new ArrayList<>(); Collection<VirtualFile> virtualFiles = FileTypeIndex.getFiles(XtextFileType.INSTANCE, GlobalSearchScope.allScope(project)); for (VirtualFile virtualFile : virtualFiles) { XtextFile simpleFile = (XtextFile) PsiManager.getInstance(project).findFile(virtualFile); if (simpleFile != null) { T[] elements = PsiTreeUtil.getChildrenOfType(simpleFile, tClass); if (elements != null) { Collections.addAll(result, elements); } } } return result; } public static <T extends PsiElement> List<T> findElementsInCurrentFile(PsiFile file, Class<T> tClass) { List<T> result = new ArrayList<>(); XtextFile xtextFile = (XtextFile) file; if (xtextFile != null) { T[] elements = PsiTreeUtil.getChildrenOfType(xtextFile, tClass); if (elements != null) { Collections.addAll(result, elements); } } return result; } }
[ "pavel.pakhomov.99@gmail.com" ]
pavel.pakhomov.99@gmail.com
aa6d9bd6a4c283884043dac29e061c3bdc79dbc7
866d73b0913835c201da71cc3f615ba9655996c8
/src/com/orte/javahorstman/streams/CollectingResults.java
e5c3f3b87059cd6ea6cf172e37e95eac40a193c6
[]
no_license
Orte82/JastApp
471e633611df3c66c5b95df8c6b71bb285f82422
2d40932b692af9b6b122fd4733cf644971cfd222
refs/heads/master
2020-07-29T09:48:58.058765
2019-09-20T09:16:25
2019-09-20T09:16:25
209,751,648
0
0
null
null
null
null
UTF-8
Java
false
false
3,061
java
package com.orte.javahorstman.streams; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.*; import java.util.stream.Collectors; import java.util.stream.Stream; public class CollectingResults { public static Stream<String> noVowels() throws IOException { Path path = Paths.get("C:\\Users\\Orte\\IdeaProjects\\JastApp\\src\\com\\orte\\javahorstman\\streams\\alice30.txt"); String contents = new String(Files.readAllBytes(path), StandardCharsets.UTF_8); List<String> wordList = Arrays.asList(contents.split("\\PL+")); Stream<String> words = wordList.stream(); return words.map(s -> s.replaceAll("[aeiouAEIOU]", "")); } public static <T> void show(String label, Set<T> set) { System.out.println(label + ": " + set.getClass().getName()); System.out.println("[" + set.stream().limit(10).map(Object::toString) .collect(Collectors.joining(", ")) + "]"); } public static void main(String[] args) throws IOException { Iterator<Integer> iter = Stream.iterate(0, n -> n + 1).limit(10) .iterator(); while (iter.hasNext()) System.out.println(iter.next()); Object[] numbers = Stream.iterate(0, n -> n + 1).limit(10) .toArray(); System.out.println("Object array: " + numbers ); try { Integer number = (Integer) numbers[0]; System.out.println("number: " + number); System.out.println("The following statement throws an exception"); // Integer[] numbers2 = (Integer[]) numbers; } catch (ClassCastException e) { e.printStackTrace(); } Integer[] numbers3 = Stream.iterate(0, n->n+1).limit(10) .toArray(Integer[]::new); System.out.println("Integer array: " + numbers3); Set<String> noVowelSet = noVowels() .collect(Collectors.toSet()); show("noVowelSet", noVowelSet); TreeSet<String> noVowelTreeSet = noVowels().collect(Collectors.toCollection(TreeSet::new)); show("noVowelTreeSet", noVowelTreeSet); String result = noVowels().limit(10).collect(Collectors.joining()); System.out.println("Joining: " + result); result = noVowels().limit(10) .collect(Collectors.joining(", ")); System.out.println("Joining with commas: " + result); IntSummaryStatistics summary = noVowels().collect(Collectors.summarizingInt(String::length)); double averageWordLength = summary.getAverage(); double maxWordLength = summary.getMax(); System.out.println( "Average word length: " + averageWordLength ); System.out.println( "Max word length: " + maxWordLength ); System.out.println("forEach: "); noVowels().limit(10).forEach(System.out::println); } }
[ "kortes29@gmail.com" ]
kortes29@gmail.com
787c95c505a639cd59b4b48c198bf86770a9658b
2e590ef886718e01d7ec58beff00a28d7aa9a366
/source-code/java/ar/src/gov/nasa/kepler/ar/exporter/collateral/CollateralPixelBinaryTableHeaderSource.java
591b03d3c97882fe13c6a1b1a5e2823458a6ae0c
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
adam-sweet/kepler-pipeline
95a6cbc03dd39a8289b090fb85cdfc1eb5011fd9
f58b21df2c82969d8bd3e26a269bd7f5b9a770e1
refs/heads/master
2022-06-07T21:22:33.110291
2020-05-06T01:12:08
2020-05-06T01:12:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,044
java
/* * Copyright 2017 United States Government as represented by the * Administrator of the National Aeronautics and Space Administration. * All Rights Reserved. * * This file is available under the terms of the NASA Open Source Agreement * (NOSA). You should have received a copy of this agreement with the * Kepler source code; see the file NASA-OPEN-SOURCE-AGREEMENT.doc. * * No Warranty: THE SUBJECT SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY * WARRANTY OF ANY KIND, EITHER EXPRESSED, IMPLIED, OR STATUTORY, * INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY THAT THE SUBJECT SOFTWARE * WILL CONFORM TO SPECIFICATIONS, ANY IMPLIED WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR FREEDOM FROM * INFRINGEMENT, ANY WARRANTY THAT THE SUBJECT SOFTWARE WILL BE ERROR * FREE, OR ANY WARRANTY THAT DOCUMENTATION, IF PROVIDED, WILL CONFORM * TO THE SUBJECT SOFTWARE. THIS AGREEMENT DOES NOT, IN ANY MANNER, * CONSTITUTE AN ENDORSEMENT BY GOVERNMENT AGENCY OR ANY PRIOR RECIPIENT * OF ANY RESULTS, RESULTING DESIGNS, HARDWARE, SOFTWARE PRODUCTS OR ANY * OTHER APPLICATIONS RESULTING FROM USE OF THE SUBJECT SOFTWARE. * FURTHER, GOVERNMENT AGENCY DISCLAIMS ALL WARRANTIES AND LIABILITIES * REGARDING THIRD-PARTY SOFTWARE, IF PRESENT IN THE ORIGINAL SOFTWARE, * AND DISTRIBUTES IT "AS IS." * * Waiver and Indemnity: RECIPIENT AGREES TO WAIVE ANY AND ALL CLAIMS * AGAINST THE UNITED STATES GOVERNMENT, ITS CONTRACTORS AND * SUBCONTRACTORS, AS WELL AS ANY PRIOR RECIPIENT. IF RECIPIENT'S USE OF * THE SUBJECT SOFTWARE RESULTS IN ANY LIABILITIES, DEMANDS, DAMAGES, * EXPENSES OR LOSSES ARISING FROM SUCH USE, INCLUDING ANY DAMAGES FROM * PRODUCTS BASED ON, OR RESULTING FROM, RECIPIENT'S USE OF THE SUBJECT * SOFTWARE, RECIPIENT SHALL INDEMNIFY AND HOLD HARMLESS THE UNITED * STATES GOVERNMENT, ITS CONTRACTORS AND SUBCONTRACTORS, AS WELL AS ANY * PRIOR RECIPIENT, TO THE EXTENT PERMITTED BY LAW. RECIPIENT'S SOLE * REMEDY FOR ANY SUCH MATTER SHALL BE THE IMMEDIATE, UNILATERAL * TERMINATION OF THIS AGREEMENT. */ package gov.nasa.kepler.ar.exporter.collateral; import gov.nasa.kepler.ar.exporter.CollateralParameterSource; import gov.nasa.kepler.ar.exporter.binarytable.BaseBinaryTableHeaderSource; import gov.nasa.kepler.ar.exporter.binarytable.CommonTimeSource; import gov.nasa.kepler.hibernate.cal.BlackAlgorithm; public interface CollateralPixelBinaryTableHeaderSource extends BaseBinaryTableHeaderSource, CollateralParameterSource, CommonTimeSource { boolean printBlackCollateralCoordinates(); boolean printVirtualSmearCoordinates(); boolean printMaskedSmearCoordinates(); /** * @return This may return null. */ Integer dynablackColumnCutoff(); /** * * @return This may return null. */ Double dynablackThreshold(); /** * * @return This may return null. */ int[] rollingBandDurations(); /** * * @return This may return null. */ BlackAlgorithm blackAlgorithm(); }
[ "Bill.Wohler@nasa.gov" ]
Bill.Wohler@nasa.gov
45dacc1b10e677f1ba7553d839139d734c258fdd
6c8987d48d600fe9ad2640174718b68932ed4a22
/OpenCylocs-Gradle/src/main/java/nl/strohalm/cyclos/services/elements/exceptions/InvalidGroupTypeException.java
f8ab24fd8557fb4838f023386432d86523c64b59
[]
no_license
hvarona/ocwg
f89140ee64c48cf52f3903348349cc8de8d3ba76
8d4464ec66ea37e6ad10255efed4236457b1eacc
refs/heads/master
2021-01-11T20:26:38.515141
2017-03-04T19:49:40
2017-03-04T19:49:40
79,115,248
0
0
null
null
null
null
UTF-8
Java
false
false
1,123
java
/* This file is part of Cyclos (www.cyclos.org). A project of the Social Trade Organisation (www.socialtrade.org). Cyclos is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Cyclos 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 Cyclos; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package nl.strohalm.cyclos.services.elements.exceptions; import nl.strohalm.cyclos.utils.validation.ValidationException; public class InvalidGroupTypeException extends ValidationException { private static final long serialVersionUID = 7679712812443193432L; }
[ "wladimir2113@gmail.com" ]
wladimir2113@gmail.com
6e2fad5f4e9d826bc047b1dbbe80ca05a4fd6395
fcb098f35f1b8e47382bbc08939814b2ba41df4d
/src/main/java/com/clsa/ficc/domain/PersistentToken.java
5be5fbe1f47bf8fbb51767acff7817174f295fbf
[]
no_license
arunmathew-me/FICCEQDMOMonitor
8c673bde330d2399075bcc28ea61b21dc3fb8a71
8c4e26c796a483f3102a456dc443cc2a4d8fb89f
refs/heads/master
2020-03-20T09:11:53.750686
2018-06-14T10:29:08
2018-06-14T10:29:08
137,330,868
0
0
null
2018-06-14T10:29:09
2018-06-14T08:42:13
Java
UTF-8
Java
false
false
2,999
java
package com.clsa.ficc.domain; import com.fasterxml.jackson.annotation.JsonIgnore; import java.time.LocalDate; import javax.persistence.*; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; import java.io.Serializable; /** * Persistent tokens are used by Spring Security to automatically log in users. * * @see com.clsa.ficc.security.PersistentTokenRememberMeServices */ @Entity @Table(name = "jhi_persistent_token") public class PersistentToken implements Serializable { private static final long serialVersionUID = 1L; private static final int MAX_USER_AGENT_LEN = 255; @Id private String series; @JsonIgnore @NotNull @Column(name = "token_value", nullable = false) private String tokenValue; @Column(name = "token_date") private LocalDate tokenDate; //an IPV6 address max length is 39 characters @Size(min = 0, max = 39) @Column(name = "ip_address", length = 39) private String ipAddress; @Column(name = "user_agent") private String userAgent; @JsonIgnore @ManyToOne private User user; public String getSeries() { return series; } public void setSeries(String series) { this.series = series; } public String getTokenValue() { return tokenValue; } public void setTokenValue(String tokenValue) { this.tokenValue = tokenValue; } public LocalDate getTokenDate() { return tokenDate; } public void setTokenDate(LocalDate tokenDate) { this.tokenDate = tokenDate; } public String getIpAddress() { return ipAddress; } public void setIpAddress(String ipAddress) { this.ipAddress = ipAddress; } public String getUserAgent() { return userAgent; } public void setUserAgent(String userAgent) { if (userAgent.length() >= MAX_USER_AGENT_LEN) { this.userAgent = userAgent.substring(0, MAX_USER_AGENT_LEN - 1); } else { this.userAgent = userAgent; } } public User getUser() { return user; } public void setUser(User user) { this.user = user; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } PersistentToken that = (PersistentToken) o; if (!series.equals(that.series)) { return false; } return true; } @Override public int hashCode() { return series.hashCode(); } @Override public String toString() { return "PersistentToken{" + "series='" + series + '\'' + ", tokenValue='" + tokenValue + '\'' + ", tokenDate=" + tokenDate + ", ipAddress='" + ipAddress + '\'' + ", userAgent='" + userAgent + '\'' + "}"; } }
[ "jhipster-bot@users.noreply.github.com" ]
jhipster-bot@users.noreply.github.com
804d70650f980091ebfcc3e5764811e7942aac3a
c7197d782b3f78a9a2ed18de72fa2ef9bdcd243c
/library/src/main/java/com/runningzou/library/LeptAnimator.java
91b81031498708779de77af4f1e467f2f66405b3
[]
no_license
runningzou/LeptAnimator
16223e87e203db940ca704ebce9848f3e782e75c
61e0db6c5b6fed5420996ba7dd1bd6eba0afbfd5
refs/heads/master
2021-06-26T19:15:24.186136
2017-09-13T00:43:23
2017-09-13T00:43:23
103,229,595
5
1
null
null
null
null
UTF-8
Java
false
false
2,067
java
package com.runningzou.library; import android.view.View; /** * Created by runningzou on 2017/9/8. */ public abstract class LeptAnimator { private AnimatorBuilder mBuilder; private View[] mViews; private ViewAnimatorListener.startListener mStartListener; private ViewAnimatorListener.endListener mEndListener; public LeptAnimator(View... views) { mViews = views; } public abstract AnimatorBuilder prepare(View... targets); public void start() { if (mViews.length >= 1) { mViews[0].post(new Runnable() { @Override public void run() { if (mBuilder == null) { mBuilder = prepare(mViews); mBuilder.setStartListener(mStartListener); mBuilder.setEndListener(mEndListener); } mBuilder.start(); } }); } } public void setPercent(final float percent) { if (mViews.length >= 1) { mViews[0].post(new Runnable() { @Override public void run() { if (mBuilder == null) { mBuilder = prepare(mViews); mBuilder.setStartListener(mStartListener); mBuilder.setEndListener(mEndListener); mBuilder.setPercent(percent); } else { mBuilder.setPercent(percent); } } }); } } public void pause() { if (mBuilder != null) { mBuilder.pause(); } } public void resume() { if (mBuilder != null) { mBuilder.resume(); } } public void setStartListener(ViewAnimatorListener.startListener startListener) { mStartListener = startListener; } public void setEndListener(ViewAnimatorListener.endListener endListener) { mEndListener = endListener; } }
[ "gogs@fake.local" ]
gogs@fake.local
861076d5c3a311e8f9e50ac4ae35767fde575390
0f1a73dc0329cead4fa60981c1c1eb141d758a5d
/kfs-parent/core/src/main/java/org/kuali/kfs/gl/businessobject/options/CostShareOptionFinder.java
94b6ad7f72ed48e9a2e44e575b82ceecb36e1d74
[]
no_license
r351574nc3/kfs-maven
20d9f1a65c6796e623c4845f6d68834c30732503
5f213604df361a874cdbba0de057d4cd5ea1da11
refs/heads/master
2016-09-06T15:07:01.034167
2012-06-01T07:40:46
2012-06-01T07:40:46
3,441,165
0
0
null
null
null
null
UTF-8
Java
false
false
2,091
java
/* * Copyright 2011 The Kuali Foundation. * * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php * * 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.kuali.kfs.gl.businessobject.options; import java.util.ArrayList; import java.util.List; import org.kuali.kfs.gl.Constant; import org.kuali.rice.kns.lookup.keyvalues.KeyValuesBase; import org.kuali.rice.kns.lookup.valueFinder.ValueFinder; import org.kuali.rice.core.util.KeyLabelPair; /** * An implmentation of ValueFinder that allows the balance inquiries to choose whether to include or exclude cost share entries */ public class CostShareOptionFinder extends KeyValuesBase implements ValueFinder { /** * Returns the default value for this ValueFinder, in this case, exclude cost share entries * @return a String with the default key * @see org.kuali.rice.kns.lookup.valueFinder.ValueFinder#getValue() */ public String getValue() { return Constant.COST_SHARE_EXCLUDE; } /** * Returns a list of possible values for this ValueFinder, in this case include cost share entries or exclude cost share entries * @return a List of key/value pairs to populate radio buttons * @see org.kuali.rice.kns.lookup.keyvalues.KeyValuesFinder#getKeyValues() */ public List getKeyValues() { List labels = new ArrayList(); labels.add(new KeyLabelPair(Constant.COST_SHARE_INCLUDE, Constant.COST_SHARE_INCLUDE)); labels.add(new KeyLabelPair(Constant.COST_SHARE_EXCLUDE, Constant.COST_SHARE_EXCLUDE)); return labels; } }
[ "r351574nc3@gmail.com" ]
r351574nc3@gmail.com
59f9570684c9d30ba60108dc70eaa4a2a87164ea
329307375d5308bed2311c178b5c245233ac6ff1
/src/com/tencent/mm/model/u.java
6978089f45072a5f64cbe48c1c862e8acee2e492
[]
no_license
ZoneMo/com.tencent.mm
6529ac4c31b14efa84c2877824fa3a1f72185c20
dc4f28aadc4afc27be8b099e08a7a06cee1960fe
refs/heads/master
2021-01-18T12:12:12.843406
2015-07-05T03:21:46
2015-07-05T03:21:46
null
0
0
null
null
null
null
UTF-8
Java
false
false
760
java
package com.tencent.mm.model; import com.tencent.mm.a.e; import java.text.SimpleDateFormat; import java.util.Date; public final class u { public static String b(String paramString, long paramLong) { String str = new SimpleDateFormat("ssHHmmMMddyy").format(new Date(paramLong)); if ((paramString != null) && (paramString.length() > 1)) {} for (paramString = str + e.n(paramString.getBytes()).substring(0, 7);; paramString = str + "fffffff") { paramString = paramString + String.format("%04x", new Object[] { Long.valueOf(paramLong % 65535L) }); return paramString + (paramLong % 7L + 100L); } } } /* Location: * Qualified Name: com.tencent.mm.model.u * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "reverseengineeringer@hackeradmin.com" ]
reverseengineeringer@hackeradmin.com
bb6950db6d5ef38021a14cc0aba3faf8f88ebb8f
7f88fc54732250c5a16c9c958746eedbc3c62398
/app/src/main/java/stone/tianfeng/com/stonestore/Scrollable/ConfigurationFragmentCallbacks.java
2a55f88702c89afb817260127a8d456cf7789a04
[]
no_license
tianfeng94666/StoneStore
ae036cb7202ce5c1444ad5c97d7f31df616a7724
6489649bc9ca42b6c62278307916068e018fd461
refs/heads/master
2021-01-01T18:15:48.165207
2017-09-06T03:01:08
2017-09-06T03:01:08
98,289,953
0
0
null
null
null
null
UTF-8
Java
false
false
330
java
package stone.tianfeng.com.stonestore.Scrollable; import android.content.Intent; /** * Created by Dimitry Ivanov (mail@dimitryivanov.ru) on 29.03.2015. */ public interface ConfigurationFragmentCallbacks { void onFrictionChanged(float friction); void openDialog(float friction); void openActivity(Intent intent); }
[ "tianfeng94666@gmail.com" ]
tianfeng94666@gmail.com
9589ae8bc8a73670e6e733642324ccab11aefd1d
70daf318d027f371ada3abeaaa31dd47651640d7
/src/com/javahis/util/mainServer.java
4f43a4119adefff943c6dac1c9420307fc63bc0d
[]
no_license
wangqing123654/web
00613f6db653562e2e8edc14327649dc18b2aae6
bd447877400291d3f35715ca9c7c7b1e79653531
refs/heads/master
2023-04-07T15:23:34.705954
2020-11-02T10:10:57
2020-11-02T10:10:57
309,329,277
0
0
null
null
null
null
UTF-8
Java
false
false
2,177
java
package com.javahis.util; import java.io.*; import java.net.*; public class mainServer { public static boolean sFlag; public static void main(String args[]) { try { ServerSocket server=null; try { server=new ServerSocket(9100); } catch(Exception e) { System.out.println("can not listen to :"+e); } Socket socket=null; try { System.out.println("Java Server Start:"); socket=server.accept(); System.out.println("client has connected\n"); } catch(Exception e) { System.out.println("Error:"+e); } // String line; BufferedReader is=new BufferedReader(new InputStreamReader(socket.getInputStream()));//*correct get the input from the client PrintWriter os=new PrintWriter(socket.getOutputStream()); //*correct make os the output to client sFlag=true; //BufferedReader sin=new BufferedReader(new InputStreamReader(System.in)); //input data from keyboard. while(sFlag) { controlThread testController = new controlThread(os); testController.start(); } System.out.println("server ends successfully!\n"); is.close(); //os.close(); socket.close(); server.close(); } catch(Exception e) { System.out.println("Error:"+e); } } }
[ "1638364772@qq.com" ]
1638364772@qq.com
e8a787d8078dc7b22145b27c98d37a077fa51682
0c7a1f6917e9db647daecc974d63ff11b69b0fda
/TruyenTNV_Web/src/main/java/vn/com/fis/model/epos/InvoiceHistoryDetailsObj.java
36cadb7b74555edff54ed33c7236775aecdca246
[]
no_license
rsfirst/TruyenTNV
3971441a2a222f72a06517a74f4bff6f684e38a8
091f29039054975b61f107c52a53e38311931a40
refs/heads/master
2022-07-05T23:08:14.312035
2020-03-11T03:58:37
2020-03-11T03:58:37
241,400,377
0
0
null
2022-06-29T18:00:36
2020-02-18T15:44:13
JavaScript
UTF-8
Java
false
false
971
java
package vn.com.fis.model.epos; public class InvoiceHistoryDetailsObj { private String transId; private String name; private String quantity; private String price; /** * @return the transId */ public String getTransId() { return transId; } /** * @param transId the transId to set */ public void setTransId(String transId) { this.transId = transId; } /** * @return the name */ public String getName() { return name; } /** * @param name the name to set */ public void setName(String name) { this.name = name; } /** * @return the quantity */ public String getQuantity() { return quantity; } /** * @param quantity the quantity to set */ public void setQuantity(String quantity) { this.quantity = quantity; } /** * @return the price */ public String getPrice() { return price; } /** * @param price the price to set */ public void setPrice(String price) { this.price = price; } }
[ "anhvuong6996@gmail.com" ]
anhvuong6996@gmail.com
556665b5b47c2bdf35eea77d137e2bb49aa62027
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XWIKI-13407-1-9-PESA_II-WeightedSum:TestLen:CallDiversity/com/xpn/xwiki/store/XWikiHibernateBaseStore_ESTest.java
d2e5e636e6af40e03a824c8c7025f94e8572f12a
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
572
java
/* * This file was automatically generated by EvoSuite * Sat Apr 04 01:02:09 UTC 2020 */ package com.xpn.xwiki.store; import org.junit.Test; import static org.junit.Assert.*; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true) public class XWikiHibernateBaseStore_ESTest extends XWikiHibernateBaseStore_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
75e5b4412cc04b1cb1c2117dd4e42547c534e4fa
678a3d58c110afd1e9ce195d2f20b2531d45a2e0
/sources/com/airbnb/android/core/viewcomponents/models/EditorialMarqueeEpoxyModel.java
eae90b85c8465c990776a88553a0ad6e58d26114
[]
no_license
jasonnth/AirCode
d1c37fb9ba3d8087efcdd9fa2103fb85d13735d5
d37db1baa493fca56f390c4205faf5c9bbe36604
refs/heads/master
2020-07-03T08:35:24.902940
2019-08-12T03:34:56
2019-08-12T03:34:56
201,842,970
0
2
null
null
null
null
UTF-8
Java
false
false
1,459
java
package com.airbnb.android.core.viewcomponents.models; import com.airbnb.n2.R; import com.airbnb.p027n2.components.EditorialMarquee; import com.airbnb.p027n2.epoxy.AirEpoxyModel; import com.airbnb.paris.Paris; public abstract class EditorialMarqueeEpoxyModel extends AirEpoxyModel<EditorialMarquee> { CharSequence description; int descriptionTextStyle = R.style.n2_LargeText; boolean hideImage = false; String imageUrl; String kicker; int kickerStyle = R.style.n2_SmallText_PlusPlus; boolean scrimImage; CharSequence title; int titleRes; int titleTextStyle = R.style.n2_TitleText2; int videoPosition; String videoUrl; public void bind(EditorialMarquee view) { super.bind(view); if (this.titleRes != 0) { view.setTitle(this.titleRes); } else { view.setTitle(this.title); } view.setDescription(this.description); view.setKicker(this.kicker); view.setImageUrl(this.imageUrl); Paris.style(view).titleTextView().apply(this.titleTextStyle); Paris.style(view).descriptionTextView().apply(this.descriptionTextStyle); Paris.style(view).kickerTextView().apply(this.kickerStyle); view.setVideoUrlWithPosition(this.videoUrl, this.videoPosition); view.setScrimEnabled(this.scrimImage); view.hideImage(this.hideImage); } public int getDividerViewType() { return 2; } }
[ "thanhhuu2apc@gmail.com" ]
thanhhuu2apc@gmail.com
69965b4dde6a198c638db3ebeae6da17efa1e398
874e9ea8775d886b87390575231a5f05572abd5d
/project/Java源代码/TomcatSource/java/org/apache/catalina/deploy/ContextLocalEjb.zdq
afc4190f94347ec0883a4f8c42149cbdd787fe1d
[ "Apache-2.0" ]
permissive
helifee/corp-project
f801d191ed9a6164b9b28174217ad917ef0380c8
97f8cdfc72ea7ef7a470723de46e91d8c4ecd8c9
refs/heads/master
2020-03-28T12:10:14.956362
2018-09-13T02:43:01
2018-09-13T02:43:01
148,274,917
2
3
null
null
null
null
UTF-8
Java
false
false
2,845
zdq
/* * Copyright 1999,2004 The Apache Software Foundation. * * 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.apache.catalina.deploy; import java.io.Serializable; /** * Representation of a local EJB resource reference for a web application, as * represented in a <code>&lt;ejb-local-ref&gt;</code> element in the * deployment descriptor. * * @author Craig R. McClanahan * @author Peter Rossbach (pero@apache.org) * @version $Revision: 303342 $ $Date: 2004-10-05 09:56:49 +0200 (mar., 05 oct. 2004) $ */ public class ContextLocalEjb extends ResourceBase implements Serializable { // ------------------------------------------------------------- Properties /** * The name of the EJB home implementation class. */ private String home = null; public String getHome() { return (this.home); } public void setHome(String home) { this.home = home; } /** * The link to a J2EE EJB definition. */ private String link = null; public String getLink() { return (this.link); } public void setLink(String link) { this.link = link; } /** * The name of the EJB local implementation class. */ private String local = null; public String getLocal() { return (this.local); } public void setLocal(String local) { this.local = local; } // --------------------------------------------------------- Public Methods /** * Return a String representation of this object. */ public String toString() { StringBuffer sb = new StringBuffer("ContextLocalEjb["); sb.append("name="); sb.append(getName()); if (getDescription() != null) { sb.append(", description="); sb.append(getDescription()); } if (getType() != null) { sb.append(", type="); sb.append(getType()); } if (home != null) { sb.append(", home="); sb.append(home); } if (link != null) { sb.append(", link="); sb.append(link); } if (local != null) { sb.append(", local="); sb.append(local); } sb.append("]"); return (sb.toString()); } }
[ "helifee@gmail.com" ]
helifee@gmail.com
08b6276e188cf7d56689f5384539ed6a7eadcac4
9254e7279570ac8ef687c416a79bb472146e9b35
/cbn-20170912/src/main/java/com/aliyun/cbn20170912/models/DetachCenChildInstanceResponseBody.java
b421a94c85cce0d29129c0e9ffa94cc080c1125a
[ "Apache-2.0" ]
permissive
lquterqtd/alibabacloud-java-sdk
3eaa17276dd28004dae6f87e763e13eb90c30032
3e5dca8c36398469e10cdaaa34c314ae0bb640b4
refs/heads/master
2023-08-12T13:56:26.379027
2021-10-19T07:22:15
2021-10-19T07:22:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
712
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.cbn20170912.models; import com.aliyun.tea.*; public class DetachCenChildInstanceResponseBody extends TeaModel { @NameInMap("RequestId") public String requestId; public static DetachCenChildInstanceResponseBody build(java.util.Map<String, ?> map) throws Exception { DetachCenChildInstanceResponseBody self = new DetachCenChildInstanceResponseBody(); return TeaModel.build(map, self); } public DetachCenChildInstanceResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
1d5b2e5cb52aae8c733be1867238bf39f55187ac
de5373a5b728a65f8826904cea37c25d3c3f6200
/src/java/com/bds/ws/dto/AfiliacionesConsultaDTO.java
4d27834b5b7ed390964c7d5f37b626c67eac317e
[]
no_license
duna05/ibdsws
960fd123a4df66c8fb5f68ee7495d363581fda39
abfa12fdadccf171d65b0be835cdd2471004959f
refs/heads/master
2020-05-22T00:45:15.948298
2019-05-11T20:48:47
2019-05-11T20:48:47
186,178,839
0
0
null
null
null
null
UTF-8
Java
false
false
2,910
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 com.bds.ws.dto; import java.util.List; /** * * @author Jose.Perez */ public class AfiliacionesConsultaDTO { private String claveOrdenante; private String contrato; private Integer bancoDestino; private String tipoOperacion; private String identificacionPagador; private String nombrePagador; private Integer numeroMensajes; private String descripcion; private String codigoResultados; private RespuestaDTO respuesta; List<AfiliacionesConsultaDTO> listAfiliacionesConsultaDTO; public String getClaveOrdenante() { return claveOrdenante; } public void setClaveOrdenante(String claveOrdenante) { this.claveOrdenante = claveOrdenante; } public String getContrato() { return contrato; } public void setContrato(String contrato) { this.contrato = contrato; } public Integer getBancoDestino() { return bancoDestino; } public void setBancoDestino(Integer bancoDestino) { this.bancoDestino = bancoDestino; } public String getTipoOperacion() { return tipoOperacion; } public void setTipoOperacion(String tipoOperacion) { this.tipoOperacion = tipoOperacion; } public String getIdentificacionPagador() { return identificacionPagador; } public void setIdentificacionPagador(String identificacionPagador) { this.identificacionPagador = identificacionPagador; } public String getNombrePagador() { return nombrePagador; } public void setNombrePagador(String nombrePagador) { this.nombrePagador = nombrePagador; } public String getDescripcion() { return descripcion; } public void setDescripcion(String descripcion) { this.descripcion = descripcion; } public String getCodigoResultados() { return codigoResultados; } public void setCodigoResultados(String codigoResultados) { this.codigoResultados = codigoResultados; } public Integer getNumeroMensajes() { return numeroMensajes; } public void setNumeroMensajes(Integer numeroMensajes) { this.numeroMensajes = numeroMensajes; } public RespuestaDTO getRespuesta() { return respuesta; } public void setRespuesta(RespuestaDTO respuesta) { this.respuesta = respuesta; } public List<AfiliacionesConsultaDTO> getListAfiliacionesConsultaDTO() { return listAfiliacionesConsultaDTO; } public void setListAfiliacionesConsultaDTO(List<AfiliacionesConsultaDTO> listAfiliacionesConsultaDTO) { this.listAfiliacionesConsultaDTO = listAfiliacionesConsultaDTO; } }
[ "audra.zapata@delsur.com.ve" ]
audra.zapata@delsur.com.ve
59eafa1a36265f2443f55c5cc41f53041069ce3b
86505462601eae6007bef6c9f0f4eeb9fcdd1e7b
/bin/modules/core-accelerator/acceleratorservices/testsrc/de/hybris/platform/acceleratorservices/dataimport/batch/converter/NullImpexRowFilterTest.java
e3ae320f8bb827cd4e591cd66d90ad504486860f
[]
no_license
jp-developer0/hybrisTrail
82165c5b91352332a3d471b3414faee47bdb6cee
a0208ffee7fee5b7f83dd982e372276492ae83d4
refs/heads/master
2020-12-03T19:53:58.652431
2020-01-02T18:02:34
2020-01-02T18:02:34
231,430,332
0
4
null
2020-08-05T22:46:23
2020-01-02T17:39:15
null
UTF-8
Java
false
false
700
java
/* * Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. */ package de.hybris.platform.acceleratorservices.dataimport.batch.converter; import de.hybris.bootstrap.annotations.UnitTest; import de.hybris.platform.acceleratorservices.dataimport.batch.converter.impl.NullImpexRowFilter; import java.util.HashMap; import org.junit.Assert; import org.junit.Test; /** * Test for {@link NullImpexRowFilterTest} */ @UnitTest public class NullImpexRowFilterTest { @Test public void testNullFilter() { final ImpexRowFilter filter = new NullImpexRowFilter(); Assert.assertTrue(filter.filter(null)); Assert.assertTrue(filter.filter(new HashMap<Integer, String>())); } }
[ "juan.gonzalez.working@gmail.com" ]
juan.gonzalez.working@gmail.com
5b9a416f23d7fbd8b9228738aafcbd2729e5388a
53e55c51bdcd175ca54346d5828a22be74a24a7d
/动态规划或贪心/零钱兑换.java
9d173eacc98e43e060df0721f44788e853371dad
[]
no_license
xiaotao1234/leetcode-
c290c6c745dc627934ce6327ba06705da8b8b7ff
50e64818648aa225311ac88685259f818f2277d1
refs/heads/master
2020-12-03T13:58:08.800324
2020-03-09T13:46:53
2020-03-09T13:46:53
231,345,347
0
0
null
null
null
null
UTF-8
Java
false
false
1,333
java
package 动态规划或贪心; import java.util.Arrays; //给定不同面额的硬币 coins 和一个总金额 amount。编写一个函数来计算可以凑成总金额所需的最少的硬币个数。如果没有任何一种硬币组合能组成总金额,返回 -1。 // //示例 1: // //输入: coins = [1, 2, 5], amount = 11 //输出: 3 //解释: 11 = 5 + 5 + 1 //示例 2: // //输入: coins = [2], amount = 3 //输出: -1 // //来源:力扣(LeetCode) //链接:https://leetcode-cn.com/problems/coin-change //著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。 public class 零钱兑换 { public static void main(String[] args) { 零钱兑换 s = new 零钱兑换(); System.out.println(s.coinChange(new int[]{1, 2, 8}, 100)); } int[] dp; public int coinChange(int[] coins, int amount) { dp = new int[amount + 1]; Arrays.fill(dp, amount + 1); dp[0] = 0; for (int j = 1; j <= amount; j++) { for (int s : coins) { if (j - s >= 0 && dp[j - s] != amount) { dp[j] = Math.min(dp[j], dp[j - s] + 1); } } } if (dp[amount] == amount + 1) { return -1; } else return dp[amount]; } }
[ "1432049416@qq.com" ]
1432049416@qq.com
7f9c8b022ff72529b6984a1287766ef81fd5dfd9
0f9066d1f50e6618ea6c09a0f66a428c0941b6ec
/maven-shared/maven-shared-io/src/main/java/org/apache/maven/shared/io/download/DownloadManager.java
ff697933ae755a3d9b2c65a41102428b0f4b7149
[]
no_license
WeilerWebServices/Sonatype
96f5d9de8c36f58d431c4d130a0dffa8402087e9
4b434bced3010ba8589afc92ecd18494a6dd3f8a
refs/heads/master
2023-01-24T18:36:09.979624
2020-12-01T04:09:54
2020-12-01T04:09:54
317,318,083
0
1
null
null
null
null
UTF-8
Java
false
false
1,274
java
package org.apache.maven.shared.io.download; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import java.io.File; import java.util.List; import org.apache.maven.shared.io.logging.MessageHolder; public interface DownloadManager { String ROLE = DownloadManager.class.getName(); File download( String url, MessageHolder messageHolder ) throws DownloadFailedException; File download( String url, List transferListeners, MessageHolder messageHolder ) throws DownloadFailedException; }
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
e4162b876c5a9a04cb8e5e5c8fbeb7a2e115939b
78f7fd54a94c334ec56f27451688858662e1495e
/partyanalyst-service/trunk/src/main/java/com/itgrids/partyanalyst/dto/DonationsInBloodBankVO.java
646a2da01f3534f69a38b4ab9e7b1c0a3f67d0ec
[]
no_license
hymanath/PA
2e8f2ef9e1d3ed99df496761a7b72ec50d25e7ef
d166bf434601f0fbe45af02064c94954f6326fd7
refs/heads/master
2021-09-12T09:06:37.814523
2018-04-13T20:13:59
2018-04-13T20:13:59
129,496,146
1
0
null
null
null
null
UTF-8
Java
false
false
1,436
java
package com.itgrids.partyanalyst.dto; public class DonationsInBloodBankVO { private Long zerototwo =0l; private Long threetofive =0l; private Long sixtoten =0l; private Long eleventofiftheen =0l; private Long sixteentothirteen =0l; private Long thirtyonetofifthy =0l; private Long tdpcadreId; public Long getTdpcadreId() { return tdpcadreId; } public void setTdpcadreId(Long tdpcadreId) { this.tdpcadreId = tdpcadreId; } public Long getZerototwo() { return zerototwo; } public void setZerototwo(Long zerototwo) { this.zerototwo = zerototwo; } public Long getThreetofive() { return threetofive; } public void setThreetofive(Long threetofive) { this.threetofive = threetofive; } public Long getSixtoten() { return sixtoten; } public void setSixtoten(Long sixtoten) { this.sixtoten = sixtoten; } public Long getEleventofiftheen() { return eleventofiftheen; } public void setEleventofiftheen(Long eleventofiftheen) { this.eleventofiftheen = eleventofiftheen; } public Long getSixteentothirteen() { return sixteentothirteen; } public void setSixteentothirteen(Long sixteentothirteen) { this.sixteentothirteen = sixteentothirteen; } public Long getThirtyonetofifthy() { return thirtyonetofifthy; } public void setThirtyonetofifthy(Long thirtyonetofifthy) { this.thirtyonetofifthy = thirtyonetofifthy; } }
[ "itgrids@b17b186f-d863-de11-8533-00e0815b4126" ]
itgrids@b17b186f-d863-de11-8533-00e0815b4126
425e568ca4c5d498a04cf4f49e70f29bccaf3918
d931b8cd6efa72662df270d5bbbdb2a537e870a1
/studyNotes/java-basic/src/main/java/com/study/notes/java/design/structuralPattern/compositePattern/Client.java
8c61f801ff0e0ecfb2c311bb85a2017e3d9f3118
[]
no_license
yaoqi/studyNotes
08f4d3882ff2687798d20a8a0ab6d778e2d42b6f
1afe96e8e66860aee7c7cc59095dbe4ee851f21d
refs/heads/master
2020-04-27T10:26:45.543624
2019-02-27T02:41:44
2019-02-27T02:41:44
174,254,077
1
0
null
2019-03-07T02:09:00
2019-03-07T02:09:00
null
UTF-8
Java
false
false
1,246
java
package com.study.notes.java.design.structuralPattern.compositePattern; /** * Created by null on 28/5/16. */ public class Client { public static void main(String[] args) { ConcreteCompany root = new ConcreteCompany("北京总公司"); root.add(new HRDepartment("总公司人力资源部")); root.add(new FinanceDepartment("总公司财务部")); ConcreteCompany comp = new ConcreteCompany("上海华东分公司"); comp.add(new HRDepartment("华东分公司人力资源部")); comp.add(new FinanceDepartment("华东分公司财务部")); root.add(comp); ConcreteCompany comp1 = new ConcreteCompany("南京办事处"); comp1.add(new HRDepartment("南京办事处人力资源部")); comp1.add(new FinanceDepartment("南京办事处财务部")); root.add(comp1); ConcreteCompany comp2 = new ConcreteCompany("杭州办事处"); comp2.add(new HRDepartment("杭州办事处人力资源部")); comp2.add(new FinanceDepartment("杭州办事处财务部")); root.add(comp2); System.out.println("结构图: "); root.display(1); System.out.println("职责: "); root.lineOfDuty(); } }
[ "xiangke@imdada.cn" ]
xiangke@imdada.cn
e133916ba89064162f216a41a58eb255230d9566
2eb567cb893850bec197ead1491f3e802cff93e6
/java-se-samples/jdbc/src/main/java/query/ResultSetTest.java
62f6051831328c90b3fb6dfa5db3c8f5ccdd7d03
[]
no_license
doubleview/java-awesome-demo
4ca9971f01ab7b3be6fbefb76f9a7d8c78de0ed0
983491df02bf9c83978cbec83b93d1a68b1b2275
refs/heads/master
2022-12-22T10:12:26.250184
2021-07-25T05:58:22
2021-07-25T05:58:22
96,692,018
0
0
null
2022-12-16T09:52:49
2017-07-09T15:07:56
Java
UTF-8
Java
false
false
2,012
java
package query; import java.io.FileInputStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.Properties; public class ResultSetTest { private String driver; private String url; private String user; private String pass; public void initParam(String paramFile) throws Exception { // 使用Properties类来加载属性文件 Properties props = new Properties(); props.load(new FileInputStream(paramFile)); driver = props.getProperty("driver"); url = props.getProperty("base"); user = props.getProperty("user"); pass = props.getProperty("pass"); } public void query(String sql) throws Exception { // 加载驱动 Class.forName(driver); try ( // 获取数据库连接 Connection conn = DriverManager.getConnection(url, user, pass); // 使用Connection来创建一个PreparedStatement对象 // 传入控制结果集可滚动,可更新的参数。 PreparedStatement pstmt = conn.prepareStatement(sql , ResultSet.TYPE_SCROLL_INSENSITIVE , ResultSet.CONCUR_UPDATABLE); ResultSet rs = pstmt.executeQuery()) { rs.last(); int rowCount = rs.getRow(); for (int i = rowCount; i > 0; i--) { rs.absolute(i); System.out.println(rs.getString(1) + "\t" + rs.getString(2) + "\t" + rs.getString(3)); // 修改记录指针所有记录、第2列的值 rs.updateString(2, "学生名" + i); // 提交修改 rs.updateRow(); } } } public static void main(String[] args) throws Exception { ResultSetTest rt = new ResultSetTest(); rt.initParam("mysql.ini"); rt.query("select * from student_table"); } }
[ "doubleview@163.com" ]
doubleview@163.com
3a8d98a85699a64f9ebb9758a8d039486544a9c8
5142a8986e7a80420357a7f1b1bbfdf94ad02767
/hybris-commerce-suite-5.5.1.2/hybris/bin/ext-accelerator/acceleratorfacades/src/de/hybris/platform/acceleratorfacades/device/impl/DefaultResponsiveMediaFacade.java
996408a6810d7c0abf98bd885b0cde8c17cc7a6e
[]
no_license
gerardoram/research1
613ef2143ba60a440bb577362bcf1ce2a646664b
2a4515e3f8901f0b3b510653d61dac059c6521a8
refs/heads/master
2020-05-20T17:04:39.574621
2015-06-23T17:53:26
2015-06-23T17:53:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,469
java
/* * [y] hybris Platform * * Copyright (c) 2000-2015 hybris AG * All rights reserved. * * This software is the confidential and proprietary information of hybris * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the terms of the * license agreement you entered into with hybris. * * */ package de.hybris.platform.acceleratorfacades.device.impl; import de.hybris.platform.acceleratorfacades.device.ResponsiveMediaFacade; import de.hybris.platform.commercefacades.product.data.ImageData; import de.hybris.platform.core.model.media.MediaContainerModel; import de.hybris.platform.servicelayer.dto.converter.Converter; import java.util.List; import org.springframework.beans.factory.annotation.Required; public class DefaultResponsiveMediaFacade implements ResponsiveMediaFacade { private Converter<MediaContainerModel, List<ImageData>> mediaContainerConverter; @Override public List<ImageData> getImagesFromMediaContainer(final MediaContainerModel mediaContainerModel) { return getMediaContainerConverter().convert(mediaContainerModel); } public Converter<MediaContainerModel, List<ImageData>> getMediaContainerConverter() { return mediaContainerConverter; } @Required public void setMediaContainerConverter(Converter<MediaContainerModel, List<ImageData>> mediaContainerConverter) { this.mediaContainerConverter = mediaContainerConverter; } }
[ "thaisonnguyenbt@gmail.com" ]
thaisonnguyenbt@gmail.com
63aa49ece427948584a5b41cd6708c32bd18c1f1
82eba08b9a7ee1bd1a5f83c3176bf3c0826a3a32
/ZmailSoap/src/wsdl-test/generated/zcsclient/mail/testCalItemRequestBase.java
a2b9202dd6d001a1b5b51230ef4acace94eb8535
[ "MIT" ]
permissive
keramist/zmailserver
d01187fb6086bf3784fe180bea2e1c0854c83f3f
762642b77c8f559a57e93c9f89b1473d6858c159
refs/heads/master
2021-01-21T05:56:25.642425
2013-10-21T11:27:05
2013-10-22T12:48:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,102
java
/* * ***** BEGIN LICENSE BLOCK ***** * * Zimbra Collaboration Suite Server * Copyright (C) 2011, 2012 VMware, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * http://www.zimbra.com/license. * * Software distributed under the License is distributed on an "AS IS" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. * * ***** END LICENSE BLOCK ***** */ package generated.zcsclient.mail; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for calItemRequestBase complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="calItemRequestBase"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="m" type="{urn:zmailMail}msg" minOccurs="0"/> * &lt;/sequence> * &lt;attribute name="echo" type="{http://www.w3.org/2001/XMLSchema}boolean" /> * &lt;attribute name="max" type="{http://www.w3.org/2001/XMLSchema}int" /> * &lt;attribute name="html" type="{http://www.w3.org/2001/XMLSchema}boolean" /> * &lt;attribute name="neuter" type="{http://www.w3.org/2001/XMLSchema}boolean" /> * &lt;attribute name="forcesend" type="{http://www.w3.org/2001/XMLSchema}boolean" /> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "calItemRequestBase", propOrder = { "m" }) @XmlSeeAlso({ testCreateAppointmentExceptionRequest.class, testModifyAppointmentRequest.class, testCreateAppointmentRequest.class }) public abstract class testCalItemRequestBase { protected testMsg m; @XmlAttribute(name = "echo") protected Boolean echo; @XmlAttribute(name = "max") protected Integer max; @XmlAttribute(name = "html") protected Boolean html; @XmlAttribute(name = "neuter") protected Boolean neuter; @XmlAttribute(name = "forcesend") protected Boolean forcesend; /** * Gets the value of the m property. * * @return * possible object is * {@link testMsg } * */ public testMsg getM() { return m; } /** * Sets the value of the m property. * * @param value * allowed object is * {@link testMsg } * */ public void setM(testMsg value) { this.m = value; } /** * Gets the value of the echo property. * * @return * possible object is * {@link Boolean } * */ public Boolean isEcho() { return echo; } /** * Sets the value of the echo property. * * @param value * allowed object is * {@link Boolean } * */ public void setEcho(Boolean value) { this.echo = value; } /** * Gets the value of the max property. * * @return * possible object is * {@link Integer } * */ public Integer getMax() { return max; } /** * Sets the value of the max property. * * @param value * allowed object is * {@link Integer } * */ public void setMax(Integer value) { this.max = value; } /** * Gets the value of the html property. * * @return * possible object is * {@link Boolean } * */ public Boolean isHtml() { return html; } /** * Sets the value of the html property. * * @param value * allowed object is * {@link Boolean } * */ public void setHtml(Boolean value) { this.html = value; } /** * Gets the value of the neuter property. * * @return * possible object is * {@link Boolean } * */ public Boolean isNeuter() { return neuter; } /** * Sets the value of the neuter property. * * @param value * allowed object is * {@link Boolean } * */ public void setNeuter(Boolean value) { this.neuter = value; } /** * Gets the value of the forcesend property. * * @return * possible object is * {@link Boolean } * */ public Boolean isForcesend() { return forcesend; } /** * Sets the value of the forcesend property. * * @param value * allowed object is * {@link Boolean } * */ public void setForcesend(Boolean value) { this.forcesend = value; } }
[ "bourgerie.quentin@gmail.com" ]
bourgerie.quentin@gmail.com
7e7bea15922ce66baa67a455ee87d52b9014a42b
fc6a8de93069afb382dd051588591f334d5019ad
/src/main/java/com/zb/jcseg/LASTRule.java
7cab730ba1b5cf4a090ed0510306d6b8226187bd
[]
no_license
justinscript/term.jcseg
4a1392314adbbff8676c3a552b6e7f6021951233
6370829e0580d369cf02e1b0b0d1712ac1f1413b
refs/heads/master
2021-10-10T14:33:31.830384
2019-01-12T06:04:18
2019-01-12T06:04:18
25,909,822
3
0
null
null
null
null
UTF-8
Java
false
false
1,204
java
/* * Copyright 2011-2016 ZuoBian.com All right reserved. This software is the confidential and proprietary information of * ZuoBian.com ("Confidential Information"). You shall not disclose such Confidential Information and shall use it only * in accordance with the terms of the license agreement you entered into with ZuoBian.com. */ package com.zb.jcseg; import com.zb.jcseg.core.IChunk; import com.zb.jcseg.core.ILastRule; import com.zb.jcseg.core.IRule; /** * the last rule. -clear the ambiguity after the four rule. * * @author zxc Sep 3, 2014 2:25:43 PM */ public class LASTRule implements ILastRule { /** * maxmum match rule instance. */ private static LASTRule __instance = null; private LASTRule() { } /** * return the quote to the maximum match instance. * * @return MMRule */ public static LASTRule createRule() { if (__instance == null) __instance = new LASTRule(); return __instance; } /** * last rule interface. here we simply return the first chunk. * * @see IRule#call(IChunk[]) */ @Override public IChunk call(IChunk[] chunks) { return chunks[0]; } }
[ "zhangxiongcai337@gmail.com" ]
zhangxiongcai337@gmail.com
dd50649b9fafedcc7a28cc50c502ad47d0d1cde4
ff05965a1216a8b5f17285f438558e6ed06e0db4
/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/AddressingConstantsImpl.java
ebb2a6c09deee284cf6cf58f478ad54bb3188345
[]
no_license
liucong/jms4cxf2
5ba89e857e9c6a4c542dffe0a13b3f704a19be77
56f6d8211dba6704348ee7e7551aa1a1f2c4d889
refs/heads/master
2023-01-09T18:08:51.730922
2009-09-16T03:16:48
2009-09-16T03:16:48
194,633
1
4
null
2023-01-02T21:54:29
2009-05-07T03:43:06
Java
UTF-8
Java
false
false
6,606
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.cxf.ws.addressing; import java.util.ResourceBundle; import javax.xml.namespace.QName; import org.apache.cxf.common.i18n.BundleUtils; import org.apache.cxf.common.util.PackageUtils; /** * Encapsulation of version-specific WS-Addressing constants. */ public class AddressingConstantsImpl implements AddressingConstants { private static final ResourceBundle BUNDLE = BundleUtils.getBundle(AddressingConstantsImpl.class); public AddressingConstantsImpl() { } /** * @return namespace defined by the normative WS-Addressing Core schema */ public String getNamespaceURI() { return Names.WSA_NAMESPACE_NAME; } /** * @return namespace defined by the normative WS-Addressing WSDL bindings * schema */ public String getWSDLNamespaceURI() { return Names.WSA_NAMESPACE_WSDL_NAME; } /** * @return QName of the WSDL extensiblity element */ public QName getWSDLExtensibilityQName() { return Names.WSAW_USING_ADDRESSING_QNAME; } /** * @return QName of the wsaw:Action element */ public QName getWSDLActionQName() { return Names.WSAW_ACTION_QNAME; } /** * @return Anonymous address URI */ public String getAnonymousURI() { return Names.WSA_ANONYMOUS_ADDRESS; } /** * @return None address URI */ public String getNoneURI() { return Names.WSA_NONE_ADDRESS; } /** * @return QName of the From addressing header */ public QName getFromQName() { return Names.WSA_FROM_QNAME; } /** * @return QName of the To addressing header */ public QName getToQName() { return Names.WSA_TO_QNAME; } /** * @return QName of the ReplyTo addressing header */ public QName getReplyToQName() { return Names.WSA_REPLYTO_QNAME; } /** * @return QName of the FaultTo addressing header */ public QName getFaultToQName() { return Names.WSA_FAULTTO_QNAME; } /** * @return QName of the Action addressing header */ public QName getActionQName() { return Names.WSA_ACTION_QNAME; } /** * @return QName of the MessageID addressing header */ public QName getMessageIDQName() { return Names.WSA_MESSAGEID_QNAME; } /** * @return Default value for RelationshipType indicating a reply * to the related message */ public String getRelationshipReply() { return Names.WSA_RELATIONSHIP_REPLY; } /** * @return QName of the RelatesTo addressing header */ public QName getRelatesToQName() { return Names.WSA_RELATESTO_QNAME; } /** * @return QName of the Relationship addressing header */ public QName getRelationshipTypeQName() { return Names.WSA_RELATIONSHIPTYPE_QNAME; } /** * @return QName of the Metadata */ public QName getMetadataQName() { return Names.WSA_METADATA_QNAME; } /** * @return QName of the Address */ public QName getAddressQName() { return Names.WSA_ADDRESS_QNAME; } /** * @return package name of the implementation */ public String getPackageName() { return PackageUtils.getPackageName(AddressingConstantsImpl.class); } /** * @return QName of the reference parameter marker */ public QName getIsReferenceParameterQName() { return Names.WSA_IS_REFERENCE_PARAMETER_QNAME; } /** * @return QName of the Invalid Message Addressing Property fault subcode */ public QName getInvalidMapQName() { return Names.INVALID_MAP_QNAME; } /** * @return QName of the Message Addressing Property Required fault subcode */ public QName getMapRequiredQName() { return Names.MAP_REQUIRED_QNAME; } /** * @return QName of the Destination Unreachable fault subcode */ public QName getDestinationUnreachableQName() { return Names.DESTINATION_UNREACHABLE_QNAME; } /** * @return QName of the Action Not Supported fault subcode */ public QName getActionNotSupportedQName() { return Names.ACTION_NOT_SUPPORTED_QNAME; } /** * @return QName of the Endpoint Unavailable fault subcode */ public QName getEndpointUnavailableQName() { return Names.ENDPOINT_UNAVAILABLE_QNAME; } /** * @return Default Fault Action */ public String getDefaultFaultAction() { return Names.WSA_DEFAULT_FAULT_ACTION; } /** * @return Action Not Supported text */ public String getActionNotSupportedText() { return BUNDLE.getString("ACTION_NOT_SUPPORTED_MSG"); } /** * @return Destination Unreachable text */ public String getDestinationUnreachableText() { return BUNDLE.getString("DESTINATION_UNREACHABLE_MSG"); } /** * @return Endpoint Unavailable text */ public String getEndpointUnavailableText() { return BUNDLE.getString("ENDPOINT_UNAVAILABLE_MSG"); } /** * @return Invalid Message Addressing Property text */ public String getInvalidMapText() { return BUNDLE.getString("INVALID_MAP_MSG"); } /** * @return Message Addressing Property Required text */ public String getMapRequiredText() { return BUNDLE.getString("MAP_REQUIRED_MSG"); } /** * @return Duplicate Message ID text */ public String getDuplicateMessageIDText() { return BUNDLE.getString("DUPLICATE_MESSAGE_ID_MSG"); } }
[ "liucong07@gmail.com" ]
liucong07@gmail.com
b9accab398b31d5c857a3409e140588f9eb66cbd
f8bdf5083165cc95c8e1ad19053a8031ddd575ca
/service/src/main/java/com/memory/platform/module/aut/service/IDrivingLicenseTypeService.java
980fbf97573910d132adda94317782b493631392
[]
no_license
ladanniel/-
1ec0c7cba535b8cfbd2e20dc5785ea8d8b70b759
c6953ebeb2eafb27c6e72a78c6551e12b441f518
refs/heads/master
2020-04-26T11:34:03.761608
2019-03-03T02:20:51
2019-03-03T02:20:51
173,521,158
0
1
null
null
null
null
UTF-8
Java
false
false
984
java
package com.memory.platform.module.aut.service; import java.util.List; import com.memory.platform.entity.base.DrivingLicenseType; /** * 创 建 人: yangjiaqiao * 日 期: 2016年5月9日 下午4:39:25 * 修 改 人: * 日 期: * 描 述: 准驾车型业务接口类 * 版 本 号: V1.0 */ public interface IDrivingLicenseTypeService { /** * 功能描述: 通过ID查询准驾车型数据 * 输入参数: @param id * 输入参数: @return * 异 常: * 创 建 人: yangjiaqiao * 日 期: 2016年5月10日下午2:08:05 * 修 改 人: * 日 期: * 返 回:DrivingLicenseType */ DrivingLicenseType get(String id); /** * 功能描述: 查询所有准驾车型数据 * 输入参数: @return * 异 常: * 创 建 人: yangjiaqiao * 日 期: 2016年5月9日下午4:40:43 * 修 改 人: * 日 期: * 返 回:List<DrivingLicenseType> */ List<DrivingLicenseType> getDrivingLicenseTypeList(); }
[ "ldanniel@sina.com" ]
ldanniel@sina.com
faa105fe043be2bf63a0ad1acf6a0fdaab7e171e
2b5453ab37b280b2a7aa77137ceb6d31f1d689b2
/src/main/java/org/apache/axis2/spring/boot/client/Axis2ClientProperties.java
384fc66432574b45b0fd6a6775be1d193702b487
[ "Apache-2.0" ]
permissive
hiwepy/axis2-client-spring-boot-starter
ac46f1538ad04fea84055681e71f14b1e6574c67
e185c6a2710e92519b8aa75f013d6781e719c023
refs/heads/master
2022-06-22T06:37:39.356152
2022-06-11T16:40:32
2022-06-11T16:40:32
160,008,068
4
2
null
null
null
null
UTF-8
Java
false
false
771
java
package org.apache.axis2.spring.boot.client; import org.springframework.boot.context.properties.ConfigurationProperties; @ConfigurationProperties(Axis2ClientProperties.PREFIX) public class Axis2ClientProperties { public static final String PREFIX = "axis2.client"; /** * Enable Axis2 Client. */ private boolean enabled = true; // client options for this service interaction private Axis2ClientOptions options = new Axis2ClientOptions(); public boolean isEnabled() { return enabled; } public void setEnabled(boolean enabled) { this.enabled = enabled; } public Axis2ClientOptions getOptions() { return options; } public void setOptions(Axis2ClientOptions options) { this.options = options; } }
[ "hnxyhcwdl1003@163.com" ]
hnxyhcwdl1003@163.com
3a125cdd035cf1ec8e1a549af64b334913da665e
0acabd81d062e9b34ab172249ce3180bf55b526a
/src/main/java/com/huaxu/core/leetcode/topic000/Topic23.java
4b4d3330bbed129681f99804f6a06fe656ce1690
[]
no_license
BlHole/core
445f87c12a4c47f42aa0548b2a24342109d5b713
97441613c9c9e39738af22c7188c6b01e9044c17
refs/heads/master
2022-05-30T12:39:44.207637
2020-04-01T10:21:10
2020-04-01T10:21:10
229,370,125
1
0
null
null
null
null
UTF-8
Java
false
false
1,226
java
package com.huaxu.core.leetcode.topic000; import com.huaxu.core.leetcode.basic.ListNode; import java.util.Arrays; /** * <p>项目名称: leetcode</p> * <p>文件名称: topic000.Topic23</p> * <p>文件描述: </p> * <p>创建日期: 2019/06/15 23:08</p> * <p>创建用户:huaxu</p> */ public class Topic23 { static class Solution { public ListNode mergeKLists(ListNode[] lists) { if (lists==null || lists.length==0) return null; if (lists.length==1) return lists[0]; lists[lists.length-2] = mergeList(lists[lists.length-1], lists[lists.length-2]); return mergeKLists(Arrays.copyOf(lists, lists.length-1)); } public ListNode mergeList(ListNode list1, ListNode list2) { if (list1 == null) return list2; if (list2 == null) return list1; ListNode result = null; if (list1.val < list2.val) { result = new ListNode(list1.val); result.next = mergeList(list1.next, list2); } else { result = new ListNode(list2.val); result.next = mergeList(list1, list2.next); } return result; } } }
[ "tshy0425@hotmail.com" ]
tshy0425@hotmail.com
f15ed34cc58e2f37723eff1c895aadf7796d9372
b97a9d99fbf4066469e64592065d6a62970d9833
/ares-core/task/src/main/java/com/aw/common/task/exceptions/TaskInitializationException.java
0b323609da81687fc2b2ee3e4cd3f476c203f640
[]
no_license
analyticswarescott/ares
2bacb8eaac612e36836f7138c4398b6560468a91
5ac8d4ed50ca749b52eafc6fe95593ff68b85b54
refs/heads/master
2020-05-29T16:08:56.917029
2016-11-11T21:11:02
2016-11-11T21:11:02
59,563,723
0
0
null
null
null
null
UTF-8
Java
false
false
255
java
package com.aw.common.task.exceptions; public class TaskInitializationException extends Exception { private static final long serialVersionUID = 1L; public TaskInitializationException(String message, Throwable cause) { super(message, cause); } }
[ "scott@analyticsware.com" ]
scott@analyticsware.com
d51e04266e695daa9bf3ac3f712540d75ff4c686
09dd2a920899b16ce09857ad33858dab4757adff
/src/algorithm/Numbers.java
bf97202b15c995662ea62bfd8753a1901e117b9c
[]
no_license
Githubplayer100/20318VA_Taylor_JAVAMidterm
0b130683f05f2d4517e7a86a304ba8fb8dddb77d
e381f46b8ccd9f7497adef832636d88eb4a761b7
refs/heads/main
2023-03-25T06:54:26.024381
2021-03-23T20:33:52
2021-03-23T20:33:52
348,884,152
0
0
null
null
null
null
UTF-8
Java
false
false
5,774
java
package algorithm; import java.util.List; import java.util.Random; import java.util.List; import java.util.Random; import databases.ConnectToSqlDB; public class Numbers { /* * Show all the different kind of sorting algorithm by applying into (num array). * Display the execution time for each sorting.Example in below. * * Use any databases[MongoDB, Oracle or MySql] to store data and retrieve data. * * At the end. After running all the sorting algo, come to a conclusion which one is suitable on given data set. * */ public static void main(String[] args) throws Exception { int[] num = new int[1000000]; storeRandomNumbers(num); ConnectToSqlDB connectToSqlDB = new ConnectToSqlDB(); //Selection Sort Sort algo = new Sort(); algo.selectionSort(num); long selectionSortExecutionTime = algo.executionTime; System.out.println("Total Execution Time of " + num.length + " numbers in Selection Sort take: " + selectionSortExecutionTime + " milli sec"); connectToSqlDB.insertDataFromArrayToSqlTable(num, "selection_sort", "SortingNumbers"); List<String> numbers = connectToSqlDB.readDataBase("selection_sort", "SortingNumbers"); printValue(numbers); int n = num.length; randomize(num, n); //Insertion Sort algo.insertionSort(num); long insertionSortExecutionTime = algo.executionTime; System.out.println("Total Execution Time of " + num.length + " numbers in Insertion Sort take: " + insertionSortExecutionTime + " milli sec"); connectToSqlDB.insertDataFromArrayToSqlTable(num, "insertion_sort", "SortingNumbers"); List<String> number = connectToSqlDB.readDataBase("insertion_sort", "SortingNumbers"); printValue(numbers); int i = num.length; randomize(num, i); //By following above, Continue for rest of the Sorting Algorithm.... //Come to conclusion about which Sorting Algo is better in given data set. // bubbleSort algo.bubbleSort(num); long bubbleSortExecutionTime = algo.executionTime; System.out.println("Total Execution Time of " + num.length + " numbers in Bubble Sort take: " + bubbleSortExecutionTime + " milli sec"); connectToSqlDB.insertDataFromArrayToSqlTable(num, "bubble_sort", "SortingNumbers"); List<String> numbers2 = connectToSqlDB.readDataBase("bubble_sort", "SortingNumbers"); printValue(numbers2); randomize(num, n); // Merge Sort algo.mergeSort(num); long mergeSortExecutionTime = algo.executionTime; System.out.println("Total Execution Time of " + num.length + " numbers in Merge Sort take: " + mergeSortExecutionTime + " milli sec"); connectToSqlDB.insertDataFromArrayToSqlTable(num, "merge_sort", "SortingNumbers"); List<String> numbers3 = connectToSqlDB.readDataBase("merge_sort", "SortingNumbers"); printValue(numbers3); randomize(num, n); // QuickSort Sort algo.quickSort(num); long quickSortExecutionTime = algo.executionTime; System.out.println("Total Execution Time of " + num.length + " numbers in Quick Sort take: " + quickSortExecutionTime + " milli sec"); connectToSqlDB.insertDataFromArrayToSqlTable(num, "quick_sort", "SortingNumbers"); List<String> numbers4 = connectToSqlDB.readDataBase("quick_sort", "SortingNumbers"); printValue(numbers4); randomize(num, n); // Heap Sort algo.heapSort(num); long heapSortExecutionTime = algo.executionTime; System.out.println("Total Execution Time of " + num.length + " numbers in Heap Sort take: " + heapSortExecutionTime + " milli sec"); connectToSqlDB.insertDataFromArrayToSqlTable(num, "heap_sort", "SortingNumbers"); List<String> numbers5 = connectToSqlDB.readDataBase("heap_sort", "SortingNumbers"); printValue(numbers5); randomize(num, n); // Bucket Sort algo.bucketSort(num); long bucketSortExecutionTime = algo.executionTime; System.out.println("Total Execution Time of " + num.length + " numbers in Bucket Sort take: " + bucketSortExecutionTime + " milli sec"); connectToSqlDB.insertDataFromArrayToSqlTable(num, "bucket_sort", "SortingNumbers"); List<String> numbers6 = connectToSqlDB.readDataBase("bucket_sort", "SortingNumbers"); printValue(numbers6); randomize(num, n); // Shell Sort algo.shellSort(num); long shellSortExecutionTime = algo.executionTime; System.out.println("Total Execution Time of " + num.length + " numbers in Shell Sort take: " + shellSortExecutionTime + " milli sec"); connectToSqlDB.insertDataFromArrayToSqlTable(num, "shell_sort", "SortingNumbers"); List<String> numbers7 = connectToSqlDB.readDataBase("shell_sort", "SortingNumbers"); printValue(numbers7); randomize(num, n); } public static void storeRandomNumbers(int[] num) { Random rand = new Random(); for (int i = 0; i < num.length; i++) { num[i] = rand.nextInt(1000000); } } public static void randomize(int arr[], int n) { Random r = new Random(); // Start from the last element and swap one by one. We don't // need to run for the first element that's why i > 0 for (int i = n - 1; i > 0; i--) { int j = r.nextInt(i); int temp = arr[i]; arr[i] = arr[j]; arr[j] = temp; } } public static void printValue(List<String> array) { for (String st : array) { System.out.println(st); } } }
[ "=" ]
=
0b3cb30179cccea8b1879f1cee914530a5cf8bfc
694d574b989e75282326153d51bd85cb8b83fb9f
/google-ads/src/main/java/com/google/ads/googleads/v1/services/RunMutateJobRequestOrBuilder.java
d01ecad0b4829aa15a4cbbe1c796f4fe986611fb
[ "Apache-2.0" ]
permissive
tikivn/google-ads-java
99201ef20efd52f884d651755eb5a3634e951e9b
1456d890e5c6efc5fad6bd276b4a3cd877175418
refs/heads/master
2023-08-03T13:02:40.730269
2020-07-17T16:33:40
2020-07-17T16:33:40
280,845,720
0
0
Apache-2.0
2023-07-23T23:39:26
2020-07-19T10:51:35
null
UTF-8
Java
false
true
746
java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v1/services/mutate_job_service.proto package com.google.ads.googleads.v1.services; public interface RunMutateJobRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v1.services.RunMutateJobRequest) com.google.protobuf.MessageOrBuilder { /** * <pre> * The resource name of the MutateJob to run. * </pre> * * <code>string resource_name = 1;</code> */ java.lang.String getResourceName(); /** * <pre> * The resource name of the MutateJob to run. * </pre> * * <code>string resource_name = 1;</code> */ com.google.protobuf.ByteString getResourceNameBytes(); }
[ "nwbirnie@gmail.com" ]
nwbirnie@gmail.com
d382044375e884b83a51b72df8bc461142ae3b49
447520f40e82a060368a0802a391697bc00be96f
/apks/malware/app85/source/com/unity3d/player/a/l.java
1df3a3df0a42e4bfa2e6aecd3ead35f83fbe8c36
[ "Apache-2.0" ]
permissive
iantal/AndroidPermissions
7f3343a9c29d82dbcd4ecd98b3a50ddf8d179465
d623b732734243590b5f004d167e542e2e2ae249
refs/heads/master
2023-07-19T01:29:26.689186
2019-09-30T19:01:42
2019-09-30T19:01:42
107,239,248
0
0
Apache-2.0
2023-07-16T07:41:38
2017-10-17T08:22:57
null
UTF-8
Java
false
false
158
java
package com.unity3d.player.a; public final class l extends Exception { public l() {} public l(String paramString) { super(paramString); } }
[ "antal.micky@yahoo.com" ]
antal.micky@yahoo.com
229d5a9d0eddfa91bc6de6691fb4147fe0196ea2
3f1b33fd0e2126b3d9d15fbda8c9b8874ba0e6e5
/core/src/test/java/org/hisrc/tenet/model/tests/GraphBuilderTest.java
da4619d47cfafa073da971d71410adebb4253896
[ "MIT" ]
permissive
highsource/tenet
516b2baa4ac8c1b446c39195101175ec85927f68
672025c21b9ee34a166df2d6caf729447f896e3a
refs/heads/master
2023-05-28T14:18:49.877898
2016-05-28T15:27:57
2016-05-28T15:27:57
57,449,125
0
0
null
null
null
null
UTF-8
Java
false
false
2,088
java
package org.hisrc.tenet.model.tests; import java.io.IOException; import java.io.InputStream; import org.hisrc.tenet.graph.RailwayStationNodeRouter; import org.hisrc.tenet.railwaygraph.graph.RailwayStationNodeRouterBuilder; import org.hisrc.tenet.railwaygraph.model.RailwayLinkTransition; import org.hisrc.tenet.railwaynetwork.model.RailwayLink; import org.hisrc.tenet.railwaynetwork.model.RailwayLinks; import org.hisrc.tenet.railwaynetwork.model.RailwayNodes; import org.hisrc.tenet.railwaynetwork.model.RailwayStationNodes; import org.jgrapht.GraphPath; import org.junit.Assert; import org.junit.Test; import com.fasterxml.jackson.databind.ObjectMapper; public class GraphBuilderTest { @Test public void deserializesRailwayLinks() throws IOException { ObjectMapper mapper = new ObjectMapper(); final RailwayLinks railwayLinks; try (InputStream is = getClass().getResourceAsStream("/railwayLinks.geojson")) { railwayLinks = mapper.readValue(is, RailwayLinks.class); } final RailwayNodes railwayNodes; try (InputStream is = getClass().getResourceAsStream("/railwayNodes.geojson")) { railwayNodes = mapper.readValue(is, RailwayNodes.class); } final RailwayStationNodes railwayStationNodes; try (InputStream is = getClass().getResourceAsStream("/railwayStationNodes.geojson")) { railwayStationNodes = mapper.readValue(is, RailwayStationNodes.class); } System.out.println("Building"); final RailwayStationNodeRouterBuilder routerBuilder = new RailwayStationNodeRouterBuilder(); railwayNodes.getFeatures().stream().forEach(routerBuilder::addRailwayNode); railwayStationNodes.getFeatures().stream().forEach(routerBuilder::addRailwayStationNode); railwayLinks.getFeatures().stream().forEach(routerBuilder::addRailwayLink); final RailwayStationNodeRouter railwayStationNodeRouter = routerBuilder.build(); final GraphPath<RailwayLink, RailwayLinkTransition> path = railwayStationNodeRouter.route("BL", "RK"); Assert.assertNotNull(path); System.out.println(path.getStartVertex() + "->" + path.getEndVertex() + ":" + path.getWeight()); } }
[ "aleksei.valikov@gmail.com" ]
aleksei.valikov@gmail.com
407c7160fc46dbbb261b69abc7f07411b77e359f
d7b2a4a222d33f2e71d31b6a158e23d09635645c
/groundsdkdemo/src/main/java/com/parrot/drone/groundsdkdemo/info/AttitudeContent.java
cc83411036d8bb845e4207054b4ae15bc0fc689d
[]
permissive
BanditFly/groundsdk-android
fbe15cd834b28639c878737d04d3cb7b787525d0
e1e1dbd2f948524d51e10474d19176116f031643
refs/heads/master
2020-08-04T08:59:20.054023
2019-07-01T09:29:26
2019-07-01T09:29:26
212,081,464
1
0
BSD-3-Clause
2019-10-01T11:40:59
2019-10-01T11:40:59
null
UTF-8
Java
false
false
3,024
java
/* * Copyright (C) 2019 Parrot Drones SAS * * 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 Parrot Company 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 THE * PARROT COMPANY BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * */ package com.parrot.drone.groundsdkdemo.info; import android.support.annotation.NonNull; import android.view.View; import android.widget.TextView; import com.parrot.drone.groundsdk.device.Drone; import com.parrot.drone.groundsdk.device.instrument.AttitudeIndicator; import com.parrot.drone.groundsdkdemo.R; class AttitudeContent extends InstrumentContent<Drone, AttitudeIndicator> { AttitudeContent(@NonNull Drone drone) { super(R.layout.attitude_info, drone, AttitudeIndicator.class); } @Override ViewHolder onCreateViewHolder(@NonNull View rootView) { return new ViewHolder(rootView); } private static final class ViewHolder extends InstrumentContent.ViewHolder<AttitudeContent, AttitudeIndicator> { @NonNull private final TextView mPitchText; @NonNull private final TextView mRollText; ViewHolder(@NonNull View rootView) { super(rootView); mPitchText = findViewById(R.id.pitch); mRollText = findViewById(R.id.roll); } @Override void onBind(@NonNull AttitudeContent content, @NonNull AttitudeIndicator attitude) { mPitchText.setText(mContext.getString(R.string.angle_format, attitude.getPitch())); mRollText.setText(mContext.getString(R.string.angle_format, attitude.getRoll())); } } }
[ "mathieu.vinel@parrot.com" ]
mathieu.vinel@parrot.com
471941dfa5e9908177f75a101763d1869075aedc
b8332ff21523210a5377a485dcc0a5757f4a4d61
/app/src/main/java/com/youjing/yjeducation/model/YJCourseChanneModel.java
f12d0d423ae1fd13c1ba8452ee23641d4df93c3e
[]
no_license
sun529417168/youjingmain
c59e54c8d53112ca53e105db011a56ef59ad9266
ae575c5bafedcef57008faf9738d96192a70e8fb
refs/heads/master
2021-01-21T18:21:22.632571
2017-05-22T09:30:50
2017-05-22T09:30:50
92,035,873
0
0
null
null
null
null
UTF-8
Java
false
false
2,304
java
package com.youjing.yjeducation.model; import java.io.Serializable; /** * (以前的非记不可那四个) * 首页banner区下部 * 孙腾腾 * 创建时间:2016.9.3 * * @return */ public class YJCourseChanneModel implements Serializable { private String chooseCourseButtonId;// "chooseCourseButtonId": 2, //课程频道ID private String name;// "name": "test", //课程频道名称 private String buttonPic;// "buttonPic": "http://file-dev.youjing.cn/img/2016/09/03/fb1d6f7e-54ff-4cee-ac95-810534872a61.png", //课程频道按钮头像 private String remark;// "remark": "test", //课程频道简介 private String jumpUrl;// "jumpUrl": "1"//课程频道按钮点击跳转地址 public YJCourseChanneModel() { } public YJCourseChanneModel(String chooseCourseButtonId, String name, String buttonPic, String remark, String jumpUrl) { this.chooseCourseButtonId = chooseCourseButtonId; this.name = name; this.buttonPic = buttonPic; this.remark = remark; this.jumpUrl = jumpUrl; } public String getChooseCourseButtonId() { return chooseCourseButtonId; } public void setChooseCourseButtonId(String chooseCourseButtonId) { this.chooseCourseButtonId = chooseCourseButtonId; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getButtonPic() { return buttonPic; } public void setButtonPic(String buttonPic) { this.buttonPic = buttonPic; } public String getRemark() { return remark; } public void setRemark(String remark) { this.remark = remark; } public String getJumpUrl() { return jumpUrl; } public void setJumpUrl(String jumpUrl) { this.jumpUrl = jumpUrl; } @Override public String toString() { return "YJCourseChanneModel{" + "chooseCourseButtonId='" + chooseCourseButtonId + '\'' + ", name='" + name + '\'' + ", buttonPic='" + buttonPic + '\'' + ", remark='" + remark + '\'' + ", jumpUrl='" + jumpUrl + '\'' + '}'; } }
[ "xue7758521" ]
xue7758521
946bf47a07e9434a8b27b02f88f793a9dfb41764
d97b58138f1aa5f8f6c7947fe5ee3449564b1c2d
/order/order-server/src/main/java/com/imooc/order/service/impl/OrderServiceImpl.java
28f499e58437bcf36663cf8964abcf8d5ea84a0a
[ "MIT" ]
permissive
hellozjf/SpringCloud_Sell
f2a2f1cfb5f0aa0b19e9e9d97864a86772db8b82
9f7767828b265212c4670775d0735b340b42e8fd
refs/heads/master
2020-03-23T23:33:51.487644
2018-08-08T04:44:48
2018-08-08T04:44:48
142,241,971
0
1
null
null
null
null
UTF-8
Java
false
false
4,980
java
package com.imooc.order.service.impl; import com.imooc.order.constant.ResultEnum; import com.imooc.order.exception.OrderException; import com.imooc.order.util.ConverterUtils; import com.imooc.product.client.ProductClient; import com.imooc.order.constant.OrderStatusEnum; import com.imooc.order.constant.PayStatusEnum; import com.imooc.order.dataobject.OrderDetail; import com.imooc.order.dataobject.OrderMaster; import com.imooc.order.dto.OrderDTO; import com.imooc.order.repository.OrderDetailRepository; import com.imooc.order.repository.OrderMasterRepository; import com.imooc.order.service.OrderService; import com.imooc.order.util.KeyUtils; import com.imooc.product.common.DecreaseStockInput; import com.imooc.product.common.ProductInfoOutput; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.util.CollectionUtils; import javax.transaction.Transactional; import java.math.BigDecimal; import java.util.List; import java.util.Optional; import java.util.stream.Collectors; /** * @author hellozjf */ @Slf4j @Service public class OrderServiceImpl implements OrderService { @Autowired private OrderMasterRepository orderMasterRepository; @Autowired private OrderDetailRepository orderDetailRepository; @Autowired private ProductClient productClient; @Override @Transactional public OrderDTO create(OrderDTO orderDTO) { String orderId = KeyUtils.genUniqueKey(); // 2. 查询商品信息(调用商品服务) List<String> productIdList = orderDTO.getOrderDetailList().stream() .map(e -> e.getProductId()) .collect(Collectors.toList()); List<ProductInfoOutput> productInfoList = productClient.listForOrder(productIdList); log.debug("productInfoList = {}", productInfoList); // 3. 计算总价 BigDecimal orderAmount = new BigDecimal(0); for (OrderDetail orderDetail : orderDTO.getOrderDetailList()) { // 单价 * 数量 Integer quantity = orderDetail.getProductQuantity(); for (ProductInfoOutput productInfo : productInfoList) { if (productInfo.getProductId().equalsIgnoreCase(orderDetail.getProductId())) { // 累加总价 orderAmount = productInfo.getProductPrice() .multiply(new BigDecimal(quantity)) .add(orderAmount); // 订单详情入库 BeanUtils.copyProperties(productInfo, orderDetail); orderDetail.setOrderId(orderId); orderDetail.setDetailId(KeyUtils.genUniqueKey()); orderDetailRepository.save(orderDetail); break; } } } // 4. 扣库存(调用商品服务) List<DecreaseStockInput> cartDTOList = orderDTO.getOrderDetailList().stream() .map(e -> { DecreaseStockInput cartDTO = new DecreaseStockInput(e.getProductId(), e.getProductQuantity()); return cartDTO; }).collect(Collectors.toList()); productClient.decreaseStock(cartDTOList); // 5. 订单入库 orderDTO.setOrderId(orderId); OrderMaster orderMaster = new OrderMaster(); BeanUtils.copyProperties(orderDTO, orderMaster); orderMaster.setOrderStatus(OrderStatusEnum.NEW.getCode()); orderMaster.setPayStatus(PayStatusEnum.WAIT.getCode()); orderMaster.setOrderAmount(orderAmount); orderMasterRepository.save(orderMaster); return orderDTO; } @Override @Transactional public OrderDTO finish(String orderId) { // 1. 查询订单 Optional<OrderMaster> orderMasterOptional = orderMasterRepository.findById(orderId); // 2. 判断订单状态 if (!orderMasterOptional.isPresent()) { throw new OrderException(ResultEnum.ORDER_NOT_EXIST); } OrderMaster orderMaster = orderMasterOptional.get(); if (!orderMaster.getOrderStatus().equals(OrderStatusEnum.NEW.getCode())) { throw new OrderException(ResultEnum.ORDER_STATUS_ERROR); } // 3. 修改订单状态为完结 orderMaster.setOrderStatus(OrderStatusEnum.FINISHED.getCode()); orderMasterRepository.save(orderMaster); // 4. 查询订单详情 List<OrderDetail> orderDetailList = orderDetailRepository.findByOrderId(orderId); if (CollectionUtils.isEmpty(orderDetailList)) { throw new OrderException(ResultEnum.ORDER_DETAIL_NOT_EXIST); } // 5. 构造OrderDTO OrderDTO orderDTO = ConverterUtils.orderMasterAndOrderDetails2OrderDTO(orderMaster, orderDetailList); return orderDTO; } }
[ "908686171@qq.com" ]
908686171@qq.com
96b5369e3c30419283a6793b5295818bb40e6e73
421f0a75a6b62c5af62f89595be61f406328113b
/generated_tests/no_seeding/52_lagoon-nu.staldal.lagoon.core.Source-1.0-3/nu/staldal/lagoon/core/Source_ESTest.java
6004d651aed1e24698ffc43f6f228d1173fe1abd
[]
no_license
tigerqiu712/evosuite-model-seeding-empirical-evaluation
c78c4b775e5c074aaa5e6ca56bc394ec03c2c7c6
11a920b8213d9855082d3946233731c843baf7bc
refs/heads/master
2020-12-23T21:04:12.152289
2019-10-30T08:02:29
2019-10-30T08:02:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
640
java
/* * This file was automatically generated by EvoSuite * Mon Oct 28 15:52:32 GMT 2019 */ package nu.staldal.lagoon.core; import org.junit.Test; import static org.junit.Assert.*; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true, useJEE = true) public class Source_ESTest extends Source_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pderakhshanfar@bsr01.win.tue.nl" ]
pderakhshanfar@bsr01.win.tue.nl
b47554c50db439e114031f77466cf2c6200d3f23
46ef04782c58b3ed1d5565f8ac0007732cddacde
/bpmn/bpmn.ui/src/org/modelio/bpmn/ui/audit/BpmnConfigurationPlan.java
5cea9ea5dad087e3ab044be09cbb6e790363dac9
[]
no_license
daravi/modelio
844917412abc21e567ff1e9dd8b50250515d6f4b
1787c8a836f7e708a5734d8bb5b8a4f1a6008691
refs/heads/master
2020-05-26T17:14:03.996764
2019-05-23T21:30:10
2019-05-23T21:30:45
188,309,762
0
1
null
null
null
null
UTF-8
Java
false
false
2,830
java
/* * Copyright 2013-2018 Modeliosoft * * This file is part of Modelio. * * Modelio 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. * * Modelio 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 Modelio. If not, see <http://www.gnu.org/licenses/>. * */ package org.modelio.bpmn.ui.audit; import java.util.List; import com.modeliosoft.modelio.javadesigner.annotations.objid; import org.eclipse.swt.graphics.Image; import org.modelio.audit.extension.IAuditConfigurationPlan; import org.modelio.audit.preferences.model.AuditCategory; import org.modelio.audit.preferences.model.AuditRule; import org.modelio.bpmn.ui.plugin.BpmnUi; import org.modelio.core.ui.swt.images.MetamodelImageService; import org.modelio.metamodel.bpmn.processCollaboration.BpmnProcess; @objid ("06f4c9fa-48cc-4ae5-a6fc-4ed768932a3f") public class BpmnConfigurationPlan implements IAuditConfigurationPlan { @objid ("592a3ba2-6da0-410c-86d3-e50f709529fb") private List<AuditCategory> rootCategories; @objid ("3baea865-4957-44f5-8836-3587a6ba95bb") public BpmnConfigurationPlan(List<AuditCategory> rootCategories) { super(); this.rootCategories = rootCategories; } @objid ("010d23af-c891-4c13-9797-6ca6db362fc0") @Override public List<AuditCategory> getRootCategories() { return this.rootCategories; } @objid ("178372a3-cd61-431a-be3d-bb17b8486cf5") @Override public String getLabel(AuditCategory category) { return BpmnUi.I18N.getString(IAuditConfigurationPlan.CATEGORY_PREFIX + category.getId() + ".label"); } @objid ("2a0d5727-aaba-47de-8fb2-eda8e5c86b4e") @Override public String getMessage(String ruleId) { return BpmnUi.I18N.getString(IAuditConfigurationPlan.RULE_PREFIX + ruleId + ".message"); } @objid ("147ba3cc-90ec-4112-85cc-139257f10d76") @Override public String getDescription(AuditRule rule) { return BpmnUi.I18N.getString(IAuditConfigurationPlan.RULE_PREFIX + rule.getId() + ".description"); } @objid ("38377ba8-563b-4767-b4fd-53fafff5b405") @Override public String getLabel(AuditRule element) { return element.getId(); } @objid ("e617eec1-59ed-4774-8ec8-47584f0c434c") @Override public Image getImage(AuditCategory category) { return MetamodelImageService.getIcon(BpmnProcess.MNAME); } }
[ "puya@motionmetrics.com" ]
puya@motionmetrics.com
e2fdb92535d63cee98db310f27fd060d6b9e3b28
4d41728f620d6be9916b3c8446da9e01da93fa4c
/src/main/java/org/bukkit/util/noise/PerlinOctaveGenerator.java
b7680bdadbd88cf7154fb6c507b3ffdfbb0d4555
[]
no_license
TechCatOther/um_bukkit
a634f6ccf7142b2103a528bba1c82843c0bc4e44
836ed7a890b2cb04cd7847eff2c59d7a2f6d4d7b
refs/heads/master
2020-03-22T03:13:57.898936
2018-07-02T09:20:00
2018-07-02T09:20:00
139,420,415
3
2
null
null
null
null
UTF-8
Java
false
false
1,300
java
package org.bukkit.util.noise; import org.bukkit.World; import java.util.Random; /** * Creates perlin noise through unbiased octaves */ public class PerlinOctaveGenerator extends OctaveGenerator { /** * Creates a perlin octave generator for the given world * * @param world World to construct this generator for * @param octaves Amount of octaves to create */ public PerlinOctaveGenerator(World world, int octaves) { this(new Random(world.getSeed()), octaves); } /** * Creates a perlin octave generator for the given world * * @param seed Seed to construct this generator for * @param octaves Amount of octaves to create */ public PerlinOctaveGenerator(long seed, int octaves) { this(new Random(seed), octaves); } /** * Creates a perlin octave generator for the given {@link Random} * * @param rand Random object to construct this generator for * @param octaves Amount of octaves to create */ public PerlinOctaveGenerator(Random rand, int octaves) { super(createOctaves(rand, octaves)); } private static NoiseGenerator[] createOctaves(Random rand, int octaves) { NoiseGenerator[] result = new NoiseGenerator[octaves]; for(int i = 0; i < octaves; i++) { result[i] = new PerlinNoiseGenerator(rand); } return result; } }
[ "alone.inbox@gmail.com" ]
alone.inbox@gmail.com
f8238c82975d908f9692079a9a15c0ba47cbdd76
42cda976712f5e2660332cb7f92154350a1939b1
/logstash-logback-encoder-zipkin/src/main/java/org/wyyt/logback/encoder/LogstashEncoderZipkin.java
fba36b4d66e6c45618daaeea63490d3203efbc82
[]
no_license
DevelopProjectss/middleware
6fcf7b1cf395525c5b404a2ca74bb3264fa09e38
4d156e592f18cbe2909faf551ab37d6afa56a721
refs/heads/master
2023-02-24T21:48:38.042923
2021-01-29T09:40:24
2021-01-29T09:40:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
769
java
package org.wyyt.logback.encoder; import ch.qos.logback.classic.spi.ILoggingEvent; import net.logstash.logback.composite.CompositeJsonFormatter; import net.logstash.logback.encoder.LogstashEncoder; /** * The logstach encoder used for ZipKin * <p> * * @author Ning.Zhang(Pegasus) * ***************************************************************** * Name Action Time Description * * Ning.Zhang Initialize 01/01/2021 Initialize * * ***************************************************************** */ public class LogstashEncoderZipkin extends LogstashEncoder { @Override protected CompositeJsonFormatter<ILoggingEvent> createFormatter() { return new LogstashFormatterZipKin(this); } }
[ "349409664@qq.com" ]
349409664@qq.com
6b7620c556e16d67783af68e124d9012cbfc83d7
5a10a1d4954da61a00fcba22eba97089db23e352
/zmt/com/enation/core/service/IDuserManager.java
504bff2532a5d42b3f5444f32dfc874cd9891cf3
[]
no_license
jianganglu/NC
f994dbbb196665167c03c30f5e7973449bc8ab7a
7267ddf78d7c78efa936da3ea0125d1bb0377526
refs/heads/master
2021-01-18T00:30:21.719668
2015-07-12T12:53:54
2015-07-12T12:53:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
239
java
package com.enation.core.service; import com.enation.core.model.Duser; public interface IDuserManager { /* * lzc * 2015年4月7日09:33:45 * 登陆 * **返回用户放在session中 */ public Duser login(String username); }
[ "378476772@qq.com" ]
378476772@qq.com