Dataset Viewer
Auto-converted to Parquet
blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
7
390
content_id
stringlengths
40
40
detected_licenses
sequencelengths
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
sequencelengths
1
1
author_id
stringlengths
1
79
b994c86baa459696bd0d0dabec139fe6a620eda3
c81011aab1a2c07946f0fbe96acd5bcff68b3c58
/src/org/Course.java
d502cfb25be99020e50c0547ab24dc49705c514c
[]
no_license
JavaK2/JavaConcept
6b0ddab5d8149597caaade39946d7ea82dc78dad
8ed0778b379dbac698f5611aa3215c1cf8477091
refs/heads/master
2021-01-17T17:21:31.252000
2016-11-05T06:06:16
2016-11-05T06:06:16
66,184,923
0
0
null
2016-08-21T06:40:05
2016-08-21T06:40:05
null
UTF-8
Java
false
false
556
java
package org; public class Course { private String jCourse = "Java"; private void privateCourse() { System.out.println("I am private " + jCourse); } public void publicCourse() { System.out.println("I am public " + jCourse); } public static void main(String[] args) { Course course = new Course(); System.out.println(course.jCourse);// Private variable can be access // with in same Class Object. course.privateCourse(); // Private method can be access with in same // Class Object. course.publicCourse(); } }
76a603e58477ac308bcba3a659d45e83037637a3
3ad8a22526ea6858ba354180ff72b5015d05b0e7
/wizard-common/src/main/java/org/cobbzilla/wizard/model/entityconfig/EntityConfigFieldValidator.java
58521fe16dfaf346e5aaee4a636463fdf8a28896
[ "Apache-2.0" ]
permissive
cobbzilla/cobbzilla-wizard
d4df7d3dc132798d5720f9f5fd5d79a5128f90ba
9792c0ac6d6a7cfde87c65a109cc239ab196f1f9
refs/heads/master
2022-12-23T04:54:07.878000
2020-12-11T15:46:15
2020-12-11T15:46:15
9,473,488
3
7
Apache-2.0
2018-10-23T17:11:53
2013-04-16T13:48:22
Java
UTF-8
Java
false
false
397
java
package org.cobbzilla.wizard.model.entityconfig; import org.cobbzilla.wizard.validation.ValidationResult; import org.cobbzilla.wizard.validation.Validator; import java.util.Locale; public interface EntityConfigFieldValidator { ValidationResult validate(Locale locale, Validator validator, EntityFieldConfig fieldConfig, Object value); Object toObject(Locale locale, String value); }
377cf0b06a3c5ccefb774e5aeefb667618f46988
7d05e603eef7728255bc60eaf244882ac5ffd22c
/easy-spring-practice/07-init-destroy-bean/src/main/java/cn/duktig/springframework/core/io/ResourceLoader.java
57f1b08d9f4f0e847b822b657379d634b8e0b8ba
[ "Apache-2.0" ]
permissive
duktig666/easy-spring
be620699c9044234ceef10cf64dfb0d8a53698ba
df973ae00b3b57447ef78c87bc521d434258ff39
refs/heads/main
2023-07-18T07:44:20.525000
2021-08-26T14:24:06
2021-08-26T14:24:06
399,673,002
2
0
null
null
null
null
UTF-8
Java
false
false
620
java
package cn.duktig.springframework.core.io; /** * description: 资源加载器 接口 * <p> * 按照资源加载的不同方式,资源加载器可以把这些方式集中到统一的类服务下进行处理,外部用户只需要传递资源地址即可,简化使用。 * * @author RenShiWei * Date: 2021/8/25 19:28 **/ public interface ResourceLoader { /** * 资源默认前缀: "classpath:" */ String CLASSPATH_URL_PREFIX = "classpath:"; /** * 获取资源 * * @param location 资源位置 * @return 资源 */ Resource getResource(String location); }
1c268e4099c0f503985075879bc3514f8d513f0f
0809f9319f6d4bcffb8953884185011d308184bc
/data-management/dm-integration-helper/src/main/java/com/infoclinika/mssharing/platform/model/impl/entities/InstrumentCreationRequestDefault.java
0a6a75487cd6f41f157366eca1ab6567dc4435bc
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
InfoClinika/chorus-opensource
5bd624796fc6d99b4b5ff1335a56670808108977
d0da23026aeaf3ac5c513b514224d537db98d551
refs/heads/master
2021-06-23T18:50:02.947000
2019-05-08T17:10:17
2019-05-08T17:10:17
115,448,491
1
3
Apache-2.0
2019-05-08T17:10:18
2017-12-26T19:15:15
Java
UTF-8
Java
false
false
342
java
package com.infoclinika.mssharing.platform.model.impl.entities; import com.infoclinika.mssharing.platform.entity.InstrumentCreationRequestTemplate; import javax.persistence.Entity; /** * @author Herman Zamula */ @Entity public class InstrumentCreationRequestDefault extends InstrumentCreationRequestTemplate<UserDefault, LabDefault> { }
8e310c09761638d96162bc98fb379a3f3236ae2f
097df92ce1bfc8a354680725c7d10f0d109b5b7d
/com/amazon/ws/emr/hadoop/fs/guice/UserGroupMappingAWSSessionCredentialsProvider.java
b46b7ed98238253da1d1d84ab20233a481f6ca14
[]
no_license
cozos/emrfs-hadoop
7a1a1221ffc3aa8c25b1067cf07d3b46e39ab47f
ba5dfa631029cb5baac2f2972d2fdaca18dac422
refs/heads/master
2022-10-14T15:03:51.500000
2022-10-06T05:38:49
2022-10-06T05:38:49
233,979,996
2
2
null
2022-10-06T05:41:46
2020-01-15T02:24:16
Java
UTF-8
Java
false
false
2,189
java
package com.amazon.ws.emr.hadoop.fs.guice; import com.amazon.ws.emr.hadoop.fs.identity.HadoopFileSystemOwner; import com.amazon.ws.emr.hadoop.fs.rolemapping.RoleMappings; import com.amazon.ws.emr.hadoop.fs.util.AWSSessionCredentialsProviderFactory; import com.amazonaws.auth.AWSSessionCredentials; import com.amazonaws.auth.AWSSessionCredentialsProvider; import java.io.IOException; import java.util.Optional; import org.apache.hadoop.security.UserGroupInformation; import org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class UserGroupMappingAWSSessionCredentialsProvider implements AWSSessionCredentialsProvider { private static final Logger LOG = LoggerFactory.getLogger(UserGroupMappingAWSSessionCredentialsProvider.class); private final Optional<UserGroupInformation> ownerOptional; public UserGroupMappingAWSSessionCredentialsProvider() { UserGroupInformation currentUser = null; try { currentUser = UserGroupInformation.getCurrentUser(); } catch (IOException localIOException) {} ownerOptional = Optional.ofNullable(currentUser); } public AWSSessionCredentials getCredentials() { if (!ownerOptional.isPresent()) { return null; } UserGroupInformation ugi = (UserGroupInformation)ownerOptional.get(); LOG.debug("retrieving credentials for {}, short name {}", ugi, ugi.getShortUserName()); if ((UserGroupInformation.isSecurityEnabled()) && (ugi.getAuthenticationMethod() == UserGroupInformation.AuthenticationMethod.SIMPLE)) { return null; } AWSSessionCredentialsProvider sessionCredentialsProvider = AWSSessionCredentialsProviderFactory.getCredentialsProviderForRoleArn( RoleMappings.getRoleArnForFileSystemOwner(new HadoopFileSystemOwner(ugi))); if (sessionCredentialsProvider != null) { return sessionCredentialsProvider.getCredentials(); } return null; } public void refresh() {} } /* Location: * Qualified Name: com.amazon.ws.emr.hadoop.fs.guice.UserGroupMappingAWSSessionCredentialsProvider * Java Class Version: 8 (52.0) * JD-Core Version: 0.7.1 */
13b99689647ca7a5ae59bbf53615c2b015703479
5a8712119b32671e505d1f5f4830d7e2d01b1125
/src/main/java/uz/almsoft/gateway/config/SecurityConfiguration.java
df818c4e7531803e61cea2653cf5df5d891df5ae
[]
no_license
anvar1/xb-gateway-application
7502d0808593155d889a12246c5728f0d86e2bc7
8a1b18974ddb25f8262f15a5de50629209dd77f8
refs/heads/master
2020-09-07T00:55:14.058000
2019-11-09T07:41:47
2019-11-09T07:41:47
220,608,533
0
0
null
2020-07-18T18:21:59
2019-11-09T07:41:33
TypeScript
UTF-8
Java
false
false
3,633
java
package uz.almsoft.gateway.config; import uz.almsoft.gateway.config.oauth2.OAuth2JwtAccessTokenConverter; import uz.almsoft.gateway.config.oauth2.OAuth2Properties; import uz.almsoft.gateway.security.oauth2.OAuth2SignatureVerifierClient; import uz.almsoft.gateway.security.AuthoritiesConstants; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.cloud.client.loadbalancer.RestTemplateCustomizer; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.http.SessionCreationPolicy; import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer; import org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapter; import org.springframework.security.oauth2.provider.token.TokenStore; import org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter; import org.springframework.security.oauth2.provider.token.store.JwtTokenStore; import org.springframework.security.web.csrf.CookieCsrfTokenRepository; import org.springframework.security.web.csrf.CsrfFilter; import org.springframework.web.filter.CorsFilter; import org.springframework.web.client.RestTemplate; @Configuration @EnableResourceServer @EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true) public class SecurityConfiguration extends ResourceServerConfigurerAdapter { private final OAuth2Properties oAuth2Properties; private final CorsFilter corsFilter; public SecurityConfiguration(OAuth2Properties oAuth2Properties, CorsFilter corsFilter) { this.oAuth2Properties = oAuth2Properties; this.corsFilter = corsFilter; } @Override public void configure(HttpSecurity http) throws Exception { http .csrf() .ignoringAntMatchers("/h2-console/**") .csrfTokenRepository(CookieCsrfTokenRepository.withHttpOnlyFalse()) .and() .addFilterBefore(corsFilter, CsrfFilter.class) .headers() .frameOptions() .disable() .and() .sessionManagement() .sessionCreationPolicy(SessionCreationPolicy.STATELESS) .and() .authorizeRequests() .antMatchers("/api/**").authenticated() .antMatchers("/management/health").permitAll() .antMatchers("/management/info").permitAll() .antMatchers("/management/prometheus").permitAll() .antMatchers("/management/**").hasAuthority(AuthoritiesConstants.ADMIN); } @Bean public TokenStore tokenStore(JwtAccessTokenConverter jwtAccessTokenConverter) { return new JwtTokenStore(jwtAccessTokenConverter); } @Bean public JwtAccessTokenConverter jwtAccessTokenConverter(OAuth2SignatureVerifierClient signatureVerifierClient) { return new OAuth2JwtAccessTokenConverter(oAuth2Properties, signatureVerifierClient); } @Bean @Qualifier("loadBalancedRestTemplate") public RestTemplate loadBalancedRestTemplate(RestTemplateCustomizer customizer) { RestTemplate restTemplate = new RestTemplate(); customizer.customize(restTemplate); return restTemplate; } @Bean @Qualifier("vanillaRestTemplate") public RestTemplate vanillaRestTemplate() { return new RestTemplate(); } }
65ffa8bf2663e0df203bfebb0fc2dc3c2f0336d0
847f1fe609080d08f69cce5555c01f2e119a7c1e
/org.eclipse.ufacekit.ui.swing.databinding/src/main/java/org/eclipse/ufacekit/ui/swing/databinding/internal/swing/properties/JListSingleSelectionIndexProperty.java
3dbcea84bb2cfd0f9db116adda1dbd621fc888f1
[]
no_license
davidtechcloud/emfdatabinding-tutorial
dc2ebdb13e84c9f6e06a9e4774142e4e18dcbe0e
2ac547d271809364cccc0d63a925c6f0af6ed516
refs/heads/master
2021-05-27T07:36:46.769000
2011-06-10T08:19:19
2011-06-10T08:19:19
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,164
java
/******************************************************************************* * Copyright (c) 2008, 2009 Matthew Hall and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Matthew Hall - initial API and implementation (bug 194734) ******************************************************************************/ package org.eclipse.ufacekit.ui.swing.databinding.internal.swing.properties; import javax.swing.JList; import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; import org.eclipse.ufacekit.ui.swing.databinding.internal.swing.EventType; import org.eclipse.ufacekit.ui.swing.databinding.internal.swing.IDelegateRegistration; import org.eclipse.ufacekit.ui.swing.databinding.internal.swing.properties.WidgetValueProperty.WidgetListener.Delegate; /** * @since 3.3 * */ public class JListSingleSelectionIndexProperty extends WidgetIntValueProperty<JListSingleSelectionIndexProperty.SelectionTypes, JList> { public enum SelectionTypes implements EventType { Selection; public boolean isNone() { return false; } } /** * */ public JListSingleSelectionIndexProperty() { super(new SelectionTypes[] { SelectionTypes.Selection }); } int doGetIntValue(Object source) { return ((JList) source).getSelectedIndex(); } void doSetIntValue(Object source, int value) { ((JList) source).setSelectedIndex(value); } public String toString() { return "List.selectionIndex <int>"; //$NON-NLS-1$ } @Override protected IDelegateRegistration registerDelegate(final SelectionTypes type, final JList widget, final Delegate delegate) { final ListSelectionListener l = new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { delegate.handle(type, widget); } }; widget.addListSelectionListener(l); return new IDelegateRegistration() { public void dispose() { widget.removeListSelectionListener(l); } }; } }
93039b652f4b4cc36c7c020815c98a9f222605a1
22361430ab12e5a7c1eba4664293fc4a39051d9b
/QMRServer/src/com/game/guild/handler/ReqGuildAddDiplomaticToServerHandler.java
07edc2e9828c66b2e12b75495a8ce8cd8875ecc2
[]
no_license
liuziangexit/QMR
ab93a66623e670a7f276683d94188d1b627db853
91ea3bd35ee3a1ebf994fb3fd6ffdbaa6fbf4d22
refs/heads/master
2020-03-30T00:22:31.028000
2017-12-20T05:41:17
2017-12-20T05:41:17
null
0
0
null
null
null
null
UTF-8
Java
false
false
719
java
package com.game.guild.handler; import org.apache.log4j.Logger; import com.game.guild.message.ReqGuildAddDiplomaticToServerMessage; import com.game.command.Handler; import com.game.guild.manager.GuildServerManager; import com.game.player.structs.Player; public class ReqGuildAddDiplomaticToServerHandler extends Handler{ Logger log = Logger.getLogger(ReqGuildAddDiplomaticToServerHandler.class); public void action(){ try{ ReqGuildAddDiplomaticToServerMessage msg = (ReqGuildAddDiplomaticToServerMessage)this.getMessage(); GuildServerManager.getInstance().reqGuildAddDiplomaticToServer((Player)this.getParameter(), msg); }catch(ClassCastException e){ log.error(e); } } }
bfd756b7d665bd606fc71cab0604e54153a91afb
8cefcd801f8e9b69a93edbd1f75d99f77171c303
/src/cn/year2019/thread/obj/ObjectMethodTest.java
92283e6a6bc323343608b558dbdf2663f84d4008
[ "MIT" ]
permissive
chywx/JavaSE-chy
3219fe50df03ee1efb5dbdf26d3ea11d76929ee4
3f8ac7eaf2a1d87745f6eea996cf72f73450b05e
refs/heads/master
2023-04-30T21:12:25.172000
2023-04-21T02:18:19
2023-04-21T02:18:19
166,914,146
5
4
null
2021-10-09T02:12:11
2019-01-22T02:35:30
Java
UTF-8
Java
false
false
515
java
package cn.year2019.thread.obj; import org.junit.Test; /** * 功能描述 * * @author chy * @date 2019/11/28 0028 */ public class ObjectMethodTest { private static Object obj = new Object(); public static void main(String[] args) { } @Test public void test1(){ Object o = new Object(); synchronized (obj){ try { o.wait(); } catch (InterruptedException e) { e.printStackTrace(); } } } }
5949f165676becd25d232c66dd6e0abe168795f6
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/19/19_5fb2f00edba1f1f7c2c7a63a283131ac855da05a/WebFeatureServiceLayerTest2/19_5fb2f00edba1f1f7c2c7a63a283131ac855da05a_WebFeatureServiceLayerTest2_s.java
55960d66c175c3d9cf7d37e3ff82decb7a336a89
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516000
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
4,749
java
package org.vaadin.vol.demo; import org.vaadin.vol.AbstractAutoPopulatedVectorLayer.BeforeFeatureSelectedEvent; import org.vaadin.vol.AbstractAutoPopulatedVectorLayer.BeforeFeatureSelectedListener; import org.vaadin.vol.OpenLayersMap; import org.vaadin.vol.OpenStreetMapLayer; import org.vaadin.vol.Style; import org.vaadin.vol.StyleMap; import org.vaadin.vol.WebFeatureServiceLayer; import com.vaadin.ui.Component; /** * Loads different feature types from a wfs use beforefeature select event * to show messages. * TODO - only the last added Listener catch the mouse clicks, seems to be a bug * in mouse click handling */ public class WebFeatureServiceLayerTest2 extends AbstractVOLTest { @Override public String getDescription() { return "Just another WFS example. Shows reclickable feature, and btw you can click on all layers :-D"; } private WebFeatureServiceLayer createWfsLayer(String displayName, String proxyUrl, String featureType) { WebFeatureServiceLayer wfsLayer = new WebFeatureServiceLayer(); wfsLayer.setDisplayName(displayName); wfsLayer.setUri(proxyUrl); wfsLayer.setFeatureType(featureType); wfsLayer.setFeatureNS("http://www.openplans.org/topp"); wfsLayer.setProjection("EPSG:4326"); wfsLayer.setSelectionCtrlId("1"); return wfsLayer; } private void setStyle(WebFeatureServiceLayer wfs, double opacity, String fillColor, String strokeColor, double pointRadius, double strokeWidth) { Style style = new Style(); style.extendCoreStyle("default"); style.setFillColor(fillColor); style.setStrokeColor(strokeColor); style.setStrokeWidth(strokeWidth); style.setPointRadius(pointRadius); style.setFillOpacity(opacity); StyleMap styleMap = new StyleMap(style); styleMap.setExtendDefault(true); wfs.setStyleMap(styleMap); } @Override Component getMap() { OpenLayersMap openLayersMap = new OpenLayersMap(); OpenStreetMapLayer osmLayer = new OpenStreetMapLayer(); osmLayer.setUrl("http://b.tile.openstreetmap.org/${z}/${x}/${y}.png"); osmLayer.setDisplayName("OSM"); String proxyUrl = getApplication().getURL() + "../WFSPROXY/demo.opengeo.org/geoserver/wfs"; WebFeatureServiceLayer wfsCities = createWfsLayer("Cities", proxyUrl, "tasmania_cities"); setStyle(wfsCities, 1, "yellow", "red", 4, 2); wfsCities.addListener(new BeforeFeatureSelectedListener() { public boolean beforeFeatureSelected(BeforeFeatureSelectedEvent event) { showNotification("I'm a city"); return false; } }); final WebFeatureServiceLayer wfsRoads = createWfsLayer("Roads", proxyUrl, "tasmania_roads"); setStyle(wfsRoads, 1, "gray", "gray", 0, 4); // don't use beforeselected and selected listener at the same time to show massages wfsRoads.addListener(new BeforeFeatureSelectedListener() { public boolean beforeFeatureSelected(BeforeFeatureSelectedEvent event) { Object typeName = event.getAttributes().get("TYPE"); showNotification("Before feature Selected: Road type: " + typeName); return false; } }); WebFeatureServiceLayer wfsBoundaries = createWfsLayer("Boundaries", proxyUrl, "tasmania_state_boundaries"); wfsBoundaries.addListener(new BeforeFeatureSelectedListener() { public boolean beforeFeatureSelected(BeforeFeatureSelectedEvent event) { showNotification("No idea what I am :'-("); return false; } }); WebFeatureServiceLayer wfsWater = createWfsLayer("Water", proxyUrl, "tasmania_water_bodies"); setStyle(wfsWater, 0.5, "blue", "blue", 1, 2); wfsWater.addListener(new BeforeFeatureSelectedListener() { public boolean beforeFeatureSelected(BeforeFeatureSelectedEvent event) { showNotification("I am water :-D"); return false; } }); openLayersMap.addLayer(osmLayer); openLayersMap.addLayer(wfsCities); openLayersMap.addLayer(wfsRoads); openLayersMap.addLayer(wfsWater); openLayersMap.addLayer(wfsBoundaries); openLayersMap.setSizeFull(); openLayersMap.setCenter(146.9417, -42.0429); openLayersMap.setZoom(7); return openLayersMap; } }
354b10e8e935d982ccf9357a42b706143c5229d8
3ef55e152decb43bdd90e3de821ffea1a2ec8f75
/large/module1643_public/tests/unittests/src/java/module1643_public_tests_unittests/a/IFoo3.java
7b1632d9a9556ceb08e055b1d5aae20ac718b8bb
[ "BSD-3-Clause" ]
permissive
salesforce/bazel-ls-demo-project
5cc6ef749d65d6626080f3a94239b6a509ef145a
948ed278f87338edd7e40af68b8690ae4f73ebf0
refs/heads/master
2023-06-24T08:06:06.084000
2023-03-14T11:54:29
2023-03-14T11:54:29
241,489,944
0
5
BSD-3-Clause
2023-03-27T11:28:14
2020-02-18T23:30:47
Java
UTF-8
Java
false
false
890
java
package module1643_public_tests_unittests.a; import java.sql.*; import java.util.logging.*; import java.util.zip.*; /** * Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut * labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. * Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. * * @see javax.management.Attribute * @see javax.naming.directory.DirContext * @see javax.net.ssl.ExtendedSSLSession */ @SuppressWarnings("all") public interface IFoo3<J> extends module1643_public_tests_unittests.a.IFoo2<J> { javax.rmi.ssl.SslRMIClientSocketFactory f0 = null; java.awt.datatransfer.DataFlavor f1 = null; java.beans.beancontext.BeanContext f2 = null; String getName(); void setName(String s); J get(); void set(J e); }
4e026c7c1d96387aab4abc16c82f661bc1ec3216
89fa2ee94b557bc38e39d152084a9856ae147dde
/src/main/java/org/kyojo/gson/internal/bind/TimeTypeAdapter.java
6eb8a1ade16464c35b7abeaba0e3bc1e9136ebcd
[ "Apache-2.0" ]
permissive
nagaikenshin/minion
1652816d73e9054765ffe4c4ef0cd9eb8b0d4150
a89e3f62a0a0b4f182e55e649632dda7a65d3768
refs/heads/master
2020-03-17T22:39:05.442000
2018-12-03T09:39:06
2018-12-03T09:39:06
134,013,298
0
0
null
null
null
null
UTF-8
Java
false
false
2,997
java
/* * Copyright 2017 NAGAI Kenshin * * 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. */ /* * Copyright (C) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.kyojo.gson.internal.bind; import org.kyojo.gson.Gson; import org.kyojo.gson.JsonSyntaxException; import org.kyojo.gson.TypeAdapter; import org.kyojo.gson.TypeAdapterFactory; import org.kyojo.gson.reflect.TypeToken; import org.kyojo.gson.stream.JsonReader; import org.kyojo.gson.stream.JsonToken; import org.kyojo.gson.stream.JsonWriter; import java.io.IOException; import java.sql.Time; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; /** * Adapter for Time. Although this class appears stateless, it is not. * DateFormat captures its time zone and locale when it is created, which gives * this class state. DateFormat isn't thread safe either, so this class has * to synchronize its read and write methods. */ public final class TimeTypeAdapter extends TypeAdapter<Time> { public static final TypeAdapterFactory FACTORY = new TypeAdapterFactory() { @SuppressWarnings("unchecked") // we use a runtime check to make sure the 'T's equal @Override public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) { return typeToken.getRawType() == Time.class ? (TypeAdapter<T>) new TimeTypeAdapter() : null; } }; private final DateFormat format = new SimpleDateFormat("hh:mm:ss a"); @Override public synchronized Time read(JsonReader in) throws IOException { if (in.peek() == JsonToken.NULL) { in.nextNull(); return null; } try { Date date = format.parse(in.nextString()); return new Time(date.getTime()); } catch (ParseException e) { throw new JsonSyntaxException(e); } } @Override public synchronized void write(JsonWriter out, Time value) throws IOException { out.value(value == null ? null : format.format(value)); } }
735bb44d65004a4ee867c7876eefee0ef2d7e009
f2fc9daad3bc12a0e7e457df936953bc4534a11d
/18-02-21-Spring整合jdbc模板对象/src/shun/_3_Spring事务管理演示/service/AccountServiceImpl.java
72921cb55809e942d234f13b9b60f6c07364c250
[]
no_license
chenzongshun/Spring-Struts-Hibernate
06d4861f1c3fd1da5c9434aa7e90cd158c22b3f3
df2025dcae634e94efeee2c35ecc428bdd1b2e20
refs/heads/master
2020-03-21T10:24:28.747000
2018-06-24T03:07:17
2018-06-24T03:07:17
138,449,283
0
0
null
null
null
null
GB18030
Java
false
false
552
java
package shun._3_Spring事务管理演示.service; import shun._3_Spring事务管理演示.dao.AccountDao; /** * @author czs * @version 创建时间:2018年2月21日 下午10:52:28 */ public class AccountServiceImpl implements AccountService { private AccountDao dao; public void setDao(AccountDao dao) { this.dao = dao; } @Override public void transfer(Integer from, Integer to, double money) { // 减钱 dao.jianMoney(from, money); // @SuppressWarnings("unused") // int i = 1/0; // 加钱 dao.jiaMoney(to, money); } }
a6c6f415a30c45f8760b0b8f625917a18651f329
9d0517091fe2313c40bcc88a7c82218030d2075c
/apis/ec2/src/test/java/org/jclouds/ec2/features/KeyPairApiTest.java
532d2c61772ca8fad19de6b1a3bd158e4e3df5d4
[ "Apache-2.0" ]
permissive
nucoupons/Mobile_Applications
5c63c8d97f48e1051049c5c3b183bbbaae1fa6e6
62239dd0f17066c12a86d10d26bef350e6e9bd43
refs/heads/master
2020-12-04T11:49:53.121000
2020-01-04T12:00:04
2020-01-04T12:00:04
231,754,011
0
0
Apache-2.0
2020-01-04T12:02:30
2020-01-04T11:46:54
Java
UTF-8
Java
false
false
4,249
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.jclouds.ec2.features; import static org.jclouds.reflect.Reflection2.method; import java.io.IOException; import org.jclouds.Fallbacks.EmptySetOnNotFoundOr404; import org.jclouds.ec2.xml.DescribeKeyPairsResponseHandler; import org.jclouds.http.functions.ParseSax; import org.jclouds.http.functions.ReleasePayloadAndReturn; import org.jclouds.rest.internal.GeneratedHttpRequest; import org.testng.annotations.Test; import com.google.common.collect.Lists; import com.google.common.reflect.Invokable; /** * Tests behavior of {@code KeyPairApi} */ // NOTE:without testName, this will not call @Before* and fail w/NPE during surefire @Test(groups = "unit", testName = "KeyPairApiTest") public class KeyPairApiTest extends BaseEC2ApiTest<KeyPairApi> { public void testDeleteKeyPair() throws SecurityException, NoSuchMethodException, IOException { Invokable<?, ?> method = method(KeyPairApi.class, "deleteKeyPairInRegion", String.class, String.class); GeneratedHttpRequest request = processor.createRequest(method, Lists.<Object> newArrayList(null, "mykey")); assertRequestLineEquals(request, "POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1"); assertNonPayloadHeadersEqual(request, "Host: ec2.us-east-1.amazonaws.com\n"); assertPayloadEquals(request, "Action=DeleteKeyPair&KeyName=mykey", "application/x-www-form-urlencoded", false); assertResponseParserClassEquals(method, request, ReleasePayloadAndReturn.class); assertSaxResponseParserClassEquals(method, null); assertFallbackClassEquals(method, null); checkFilters(request); } public void testDescribeKeyPairs() throws SecurityException, NoSuchMethodException, IOException { Invokable<?, ?> method = method(KeyPairApi.class, "describeKeyPairsInRegion", String.class, String[].class); GeneratedHttpRequest request = processor.createRequest(method, Lists.<Object> newArrayList((String) null)); assertRequestLineEquals(request, "POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1"); assertNonPayloadHeadersEqual(request, "Host: ec2.us-east-1.amazonaws.com\n"); assertPayloadEquals(request, "Action=DescribeKeyPairs", "application/x-www-form-urlencoded", false); assertResponseParserClassEquals(method, request, ParseSax.class); assertSaxResponseParserClassEquals(method, DescribeKeyPairsResponseHandler.class); assertFallbackClassEquals(method, EmptySetOnNotFoundOr404.class); checkFilters(request); } public void testDescribeKeyPairsArgs() throws SecurityException, NoSuchMethodException, IOException { Invokable<?, ?> method = method(KeyPairApi.class, "describeKeyPairsInRegion", String.class, String[].class); GeneratedHttpRequest request = processor.createRequest(method, Lists.<Object> newArrayList(null, "1", "2")); assertRequestLineEquals(request, "POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1"); assertNonPayloadHeadersEqual(request, "Host: ec2.us-east-1.amazonaws.com\n"); assertPayloadEquals(request, "Action=DescribeKeyPairs&KeyName.1=1&KeyName.2=2", "application/x-www-form-urlencoded", false); assertResponseParserClassEquals(method, request, ParseSax.class); assertSaxResponseParserClassEquals(method, DescribeKeyPairsResponseHandler.class); assertFallbackClassEquals(method, EmptySetOnNotFoundOr404.class); checkFilters(request); } }
[ "Administrator@fdp" ]
Administrator@fdp
eb1a8b7567a31fc27094fb082e025fe31d460343
872775d142e9269681d331844ce0d0892ef4ebce
/src/com/hm/effective_java/chapter_three/composition/Point.java
2ea8235468f1c2bf3bedf4297f0b6307ba8a1f92
[]
no_license
humanheima/JavaBase
b756274931b21040ca80a74ac00dc7a20ff7b92b
dba8fc5940f16795a0c2bad34d639f5e5713c8f6
refs/heads/master
2023-06-08T20:02:31.280000
2023-05-25T10:04:40
2023-05-25T10:04:40
88,835,885
0
0
null
null
null
null
UTF-8
Java
false
false
479
java
// Simple immutable two-dimensional integer point class - Page 37 package com.hm.effective_java.chapter_three.composition; public class Point { private final int x; private final int y; public Point(int x, int y) { this.x = x; this.y = y; } @Override public boolean equals(Object o) { if (!(o instanceof Point)) return false; Point p = (Point) o; return p.x == x && p.y == y; } // See Item 9 @Override public int hashCode() { return 31 * x + y; } }
906d4675d6a045ffdc1984bbdd7fcd6e276b1c9e
9e8187c35ef08c67186679f6d472603a8f7b2d6d
/lab4/mujavaHome/result/BackPack/traditional_mutants/int_BackPack_Solution(int,int,int,int)/AORB_4/BackPack.java
c231792230c81ca46e01d324a8d5bfc8614730cf
[]
no_license
cxdzb/software-testing-technology
8b79f99ec859a896042cdf5bccdadfd11f65b64c
5fb1305dd2dd028c035667c71e0abf57a489360b
refs/heads/master
2021-01-09T15:24:42.561000
2020-04-16T06:18:58
2020-04-16T06:18:58
242,354,593
0
0
null
null
null
null
UTF-8
Java
false
false
851
java
// This is a mutant program. // Author : ysma public class BackPack { public int[][] BackPack_Solution( int m, int n, int[] w, int[] p ) { int[][] c = new int[n - 1][m + 1]; for (int i = 0; i < n + 1; i++) { c[i][0] = 0; } for (int j = 0; j < m + 1; j++) { c[0][j] = 0; } for (int i = 1; i < n + 1; i++) { for (int j = 1; j < m + 1; j++) { if (w[i - 1] <= j) { if (c[i - 1][j] < c[i - 1][j - w[i - 1]] + p[i - 1]) { c[i][j] = c[i - 1][j - w[i - 1]] + p[i - 1]; } else { c[i][j] = c[i - 1][j]; } } else { c[i][j] = c[i - 1][j]; } } } return c; } }
3f7789da8d835d6a561ede1666a1c14959012bdf
01ef5aafb745ca655f3a21e132854eab941e6153
/src/main/java/org/apache/tomee/website/contributors/Github.java
446944492efd9f71e04d1e89aa8253748c9beccc
[]
no_license
apache/tomee-site-generator
a8a9ac7940269354400bb07333ca08aaff6d338f
0b028aaac820624aa6623fe9b222d78acb9300e1
refs/heads/main
2023-08-18T05:48:31.502000
2023-06-12T11:25:30
2023-06-12T11:25:30
96,287,283
10
48
null
2023-03-23T19:33:47
2017-07-05T07:00:07
Java
UTF-8
Java
false
false
5,548
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.tomee.website.contributors; import org.apache.johnzon.jaxrs.JohnzonProvider; import org.apache.openejb.loader.IO; import org.tomitribe.swizzle.stream.StreamBuilder; import javax.json.bind.Jsonb; import javax.json.bind.JsonbBuilder; import javax.ws.rs.client.Client; import javax.ws.rs.client.ClientBuilder; import javax.ws.rs.client.WebTarget; import javax.ws.rs.core.Response; import java.io.IOException; import java.io.InputStream; import java.io.UncheckedIOException; import java.net.URI; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.logging.Logger; import java.util.stream.Collectors; import java.util.stream.Stream; public class Github { private static final Logger log = Logger.getLogger(Github.class.getName()); private final Client client = ClientBuilder.newClient().register(new JohnzonProvider<>()); public List<Contributor> getContributors() { final List<URI> repositoryURIs = getRepositoryURIs(); final List<Contributor> list = repositoryURIs.stream() .map(this::getContributorsForRepository) .flatMap(Collection::stream) .collect(Collectors.toList()); return Contributor.unique(list); } /** * List all the repositories for Apache TomEE */ public List<URI> getRepositoryURIs() { try { final WebTarget github = client.target("https://github.com"); final String content = github.path("/apache").queryParam("q", "tomee").request().get(String.class); final List<String> links = new ArrayList<String>(); StreamBuilder.create(IO.read(content)) .watch("href=\"/apache/tomee", "\"", links::add) .run(); return links.stream() .filter(s -> !s.contains("/")) .filter(s -> !s.equals("-site-pub")) .filter(s -> !s.equals("-site")) .distinct() .map(s -> "https://github.com/apache/tomee" + s) .map(URI::create) .collect(Collectors.toList()); } catch (IOException e) { throw new UncheckedIOException("Unable to list TomEE repositories", e); } } /** * Get the contributor-data json for the specified repository */ private List<Contributor> getContributorsForRepository(final URI repositoryUri) { final Response response = client.target(repositoryUri.toASCIIString()) .path("graphs/contributors-data") .request() .header("referer", repositoryUri.toASCIIString() + "/graphs/contributors") .header("authority", "github.com") .header("pragma", "no-cache") .header("cache-control", "no-cache") .header("sec-ch-ua", "\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"90\", \"Google Chrome\";v=\"90\"") .header("accept", "application/json") .header("sec-ch-ua-mobile", "?0") .header("user-agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36") .header("sec-fetch-site", "same-origin") .header("sec-fetch-mode", "cors") .header("sec-fetch-dest", "empty") .header("accept-language", "en-US,en;q=0.9,es;q=0.8") .get(); if (response.getStatus() != 200) { log.severe("Unexpected status from " + repositoryUri + ": " + response.getStatus()); return Collections.EMPTY_LIST; } if (!response.getHeaderString("content-type").startsWith("application/json")) { log.severe("Unexpected content-type from " + repositoryUri + ": " + response.getHeaderString("content-type")); return Collections.EMPTY_LIST; } final String json; try { json = IO.slurp((InputStream) response.getEntity()); } catch (IOException e) { throw new UncheckedIOException("Unable to read response from " + repositoryUri, e); } final ContributorData[] data; try { final Jsonb jsonb = JsonbBuilder.create(); data = jsonb.fromJson(json, ContributorData[].class); } catch (final Exception e) { throw new IllegalStateException("Unable to unmarshal response from " + repositoryUri + "\n\n" + json, e); } return Stream.of(data) .map(ContributorData::asContributor) .collect(Collectors.toList()); } }
91627a5c14bd3b58bef0a66d976bdeeb806bccb7
a0caa255f3dbe524437715adaee2094ac8eff9df
/HOLD/sources/defpackage/oc.java
ad86b0483ccfc7302e7ccabbee8402f3ead0c4d7
[]
no_license
AndroidTVDeveloper/com.google.android.tvlauncher
16526208b5b48fd48931b09ed702fe606fe7d694
0f959c41bbb5a93e981145f371afdec2b3e207bc
refs/heads/master
2021-01-26T07:47:23.091000
2020-02-26T20:58:19
2020-02-26T20:58:19
243,363,961
0
1
null
null
null
null
UTF-8
Java
false
false
539
java
package defpackage; import android.util.Property; /* renamed from: oc reason: default package */ /* compiled from: PG */ public final class oc extends Property { public oc(Class cls, String str) { super(cls, str); } public final /* bridge */ /* synthetic */ Object get(Object obj) { blk blk = (blk) obj; throw null; } public final /* bridge */ /* synthetic */ void set(Object obj, Object obj2) { blk blk = (blk) obj; ((Float) obj2).floatValue(); throw null; } }
c7f7cc6b78e73cdc004a885fa67c71f11a2919ee
5efbe1ce4035df0d4a7aa478ac37fa75aa68025c
/reference no run/com.martinstudio.hiddenrecorder/src/com/google/android/gms/internal/dl.java
2db4033525a78f78ac11c8a75b099d93a1bf3be4
[]
no_license
dat0106/datkts0106
6ec70e6adb90ba36237d4225b5cba80fcbd30343
885c9bec5b5cd3c4d677d8d579cd91cf7fd6d2e5
refs/heads/master
2016-08-05T08:24:11.701000
2014-08-01T04:35:12
2014-08-01T04:35:59
15,329,353
1
1
null
null
null
null
UTF-8
Java
false
false
1,533
java
package com.google.android.gms.internal; import android.os.RemoteException; import com.google.android.gms.ads.purchase.InAppPurchase; public class dl implements InAppPurchase { private final dc pg; public dl(dc paramdc) { this.pg = paramdc; } public String getProductId() { try { str = this.pg.getProductId(); str = str; } catch (RemoteException localRemoteException) { for (;;) { String str; ev.c("Could not forward getProductId to InAppPurchase", localRemoteException); Object localObject = null; } } return str; } public void recordPlayBillingResolution(int paramInt) { try { this.pg.recordPlayBillingResolution(paramInt); return; } catch (RemoteException localRemoteException) { for (;;) { ev.c("Could not forward recordPlayBillingResolution to InAppPurchase", localRemoteException); } } } public void recordResolution(int paramInt) { try { this.pg.recordResolution(paramInt); return; } catch (RemoteException localRemoteException) { for (;;) { ev.c("Could not forward recordResolution to InAppPurchase", localRemoteException); } } } } /* Location: E:\android\Androidvn\dex2jar\classes_dex2jar.jar * Qualified Name: com.google.android.gms.internal.dl * JD-Core Version: 0.7.0.1 */
db0197de665fd3dabc3af937d17a1a44435ed4ae
930c207e245c320b108e9699bbbb036260a36d6a
/BRICK-Jackson-JsonLd/generatedCode/src/main/java/brickschema/org/schema/_1_0_2/Brick/IVAV_Zone_Air_Temperature_Sensor.java
36bf6328a83ff80526aa5650fce479cbeb0b66ff
[]
no_license
InnovationSE/BRICK-Generated-By-OLGA
24d278f543471e1ce622f5f45d9e305790181fff
7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2
refs/heads/master
2021-07-01T14:13:11.302000
2017-09-21T12:44:17
2017-09-21T12:44:17
104,251,784
1
0
null
null
null
null
UTF-8
Java
false
false
1,141
java
/** * This file is automatically generated by OLGA * @author OLGA * @version 1.0 */ package brickschema.org.schema._1_0_2.Brick; import java.util.ArrayList; import java.util.List; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import ioinformarics.oss.jackson.module.jsonld.annotation.JsonldId; import ioinformarics.oss.jackson.module.jsonld.annotation.JsonldProperty; import ioinformarics.oss.jackson.module.jsonld.annotation.JsonldType; import ioinformarics.oss.jackson.module.jsonld.annotation.JsonldLink; import ioinformarics.oss.jackson.module.jsonld.annotation.JsonldPropertyType; import brick.jsonld.util.RefId; import brickschema.org.schema._1_0_2.Brick.IVAV_Zone_Temperature_Sensor; import brickschema.org.schema._1_0_2.Brick.IZone_Air_Temperature_Sensor; public interface IVAV_Zone_Air_Temperature_Sensor extends IVAV_Zone_Temperature_Sensor, IZone_Air_Temperature_Sensor { /** * @return RefId */ @JsonIgnore public RefId getRefId(); }
c5c70f2b7b7f8fca89986d2d4a0008d3bf42d1bc
4705f50c5442fa35a89f5827516e240f03c95828
/src/main/java/bookstore/repository/BookRepository.java
3ac69da8808b515d595cbe0b3606cd2ac074c78c
[]
no_license
lenshuygh/repositoryExercise
deb763390cf3d524f3883844069d4bb217d38387
256f9d851ef2f92b8074f3c7972c854c80804a35
refs/heads/master
2022-02-28T09:15:48.987000
2019-12-02T22:51:05
2019-12-02T22:51:05
225,191,064
0
0
null
2022-02-10T02:57:56
2019-12-01T16:18:36
Java
UTF-8
Java
false
false
330
java
package bookstore.repository; import bookstore.model.Book; import bookstore.model.BookType; import java.util.List; public interface BookRepository { void addBook(Book book); Book getBookByIsbn(int isbn); void removeBook(Book book); List<Book> getBooksByType(BookType type); List<Book> getAllBooks(); }
2ffc55cb606e5eb9a50648edec6190db25b6b6a5
7c4ece985a9b727e551d51b4a63bd919fc938ac0
/RxTools-library/src/main/java/com/vondear/rxtools/recyclerview/RxLinearLayoutManager.java
29531e096b17987927348887102c1f665e0235e1
[ "Apache-2.0" ]
permissive
duboAndroid/RxTools-master
caf57dbd9ae6a7d2463b2a79012dc0a859de2b6a
dfa9549ce577dac661d0360af7f90a4dd16fa232
refs/heads/master
2021-07-17T13:54:48.816000
2017-10-25T10:37:48
2017-10-25T10:37:48
108,255,984
166
41
null
null
null
null
UTF-8
Java
false
false
1,113
java
package com.vondear.rxtools.recyclerview; import android.content.Context; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.util.AttributeSet; /** * Created by Vondear on 2017/6/8. */ /** * 官方的BUG * 解决 IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter */ public class RxLinearLayoutManager extends LinearLayoutManager { public RxLinearLayoutManager(Context context) { super(context); } public RxLinearLayoutManager(Context context, int orientation, boolean reverseLayout) { super(context, orientation, reverseLayout); } public RxLinearLayoutManager(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { super(context, attrs, defStyleAttr, defStyleRes); } @Override public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { try { super.onLayoutChildren(recycler, state); } catch (IndexOutOfBoundsException e) { e.printStackTrace(); } } }
4abb8da42b8117d682cda670976a4ee500127989
ecbb90f42d319195d6517f639c991ae88fa74e08
/XmlTooling/src/org/opensaml/xml/signature/impl/X509SerialNumberMarshaller.java
4231205ca7f3c42f5b804e313f054a602cbbfd4d
[ "MIT" ]
permissive
Safewhere/kombit-service-java
5d6577984ed0f4341bbf65cbbace9a1eced515a4
7df271d86804ad3229155c4f7afd3f121548e39e
refs/heads/master
2020-12-24T05:20:59.477000
2018-08-23T03:50:16
2018-08-23T03:50:16
36,713,383
0
1
MIT
2018-08-23T03:51:25
2015-06-02T06:39:09
Java
UTF-8
Java
false
false
1,847
java
/* * Licensed to the University Corporation for Advanced Internet Development, * Inc. (UCAID) under one or more contributor license agreements. See the * NOTICE file distributed with this work for additional information regarding * copyright ownership. The UCAID 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.opensaml.xml.signature.impl; import org.opensaml.xml.XMLObject; import org.opensaml.xml.io.AbstractXMLObjectMarshaller; import org.opensaml.xml.io.MarshallingException; import org.opensaml.xml.signature.X509SerialNumber; import org.opensaml.xml.util.XMLHelper; import org.w3c.dom.Element; /** * Thread-safe marshaller of {@link X509SerialNumber} objects. */ public class X509SerialNumberMarshaller extends AbstractXMLObjectMarshaller { /** {@inheritDoc} */ protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException { // no attributes } /** {@inheritDoc} */ protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException { X509SerialNumber x509SerialNumber = (X509SerialNumber) xmlObject; if (x509SerialNumber.getValue() != null) { XMLHelper.appendTextContent(domElement, x509SerialNumber.getValue().toString()); } } }
390341c79607d29c9210608dca0d2e616739fe7e
447520f40e82a060368a0802a391697bc00be96f
/apks/playstore_apps/com_ubercab/source/giu.java
cda93eca3efac5676302121118198bbb8af6f9c8
[ "Apache-2.0", "GPL-1.0-or-later" ]
permissive
iantal/AndroidPermissions
7f3343a9c29d82dbcd4ecd98b3a50ddf8d179465
d623b732734243590b5f004d167e542e2e2ae249
refs/heads/master
2023-07-19T01:29:26.689000
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
479
java
import android.support.v4.view.ViewPager; import io.reactivex.Observer; final class giu extends gij<Integer> { private final ViewPager a; giu(ViewPager paramViewPager) { this.a = paramViewPager; } protected void a(Observer<? super Integer> paramObserver) { giv localGiv = new giv(this.a, paramObserver); paramObserver.onSubscribe(localGiv); this.a.b(localGiv); } protected Integer b() { return Integer.valueOf(this.a.c()); } }
6a4fe8fe60c8b281a82e3b5828ea6226ee6cd719
f10a7a255151c627eb1953e029de75b215246b4a
/quickfixj-core/src/main/java/quickfix/field/MaxPriceVariation.java
f6e6faddbe8d3fd8971fc9d838dd03c8ca8d74b5
[ "BSD-2-Clause", "LicenseRef-scancode-public-domain" ]
permissive
niepoo/quickfixj
579f57f2e8fb8db906c6f916355da6d78bb86ecb
f8e255c3e86e36d7551b8661c403672e69070ca1
refs/heads/master
2021-01-18T05:29:51.369000
2016-10-16T23:31:34
2016-10-16T23:31:34
68,493,032
0
0
null
2016-09-18T03:18:20
2016-09-18T03:18:20
null
UTF-8
Java
false
false
1,192
java
/* Generated Java Source File */ /******************************************************************************* * Copyright (c) quickfixengine.org All rights reserved. * * This file is part of the QuickFIX FIX Engine * * This file may be distributed under the terms of the quickfixengine.org * license as defined by quickfixengine.org and appearing in the file * LICENSE included in the packaging of this file. * * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A * PARTICULAR PURPOSE. * * See http://www.quickfixengine.org/LICENSE for licensing information. * * Contact [email protected] if any conditions of this licensing * are not clear to you. ******************************************************************************/ package quickfix.field; import quickfix.DoubleField; public class MaxPriceVariation extends DoubleField { static final long serialVersionUID = 20050617; public static final int FIELD = 1143; public MaxPriceVariation() { super(1143); } public MaxPriceVariation(double data) { super(1143, data); } }
d438524fc483c283eaf3ba6e69b3b3f5e5e12b42
4e7c597e78f01fe1c14fc4cbb67dc4379a8c5939
/mambo-protocol/src/main/java/org/mambo/protocol/messages/KrosmasterTransferRequestMessage.java
e45665856e5b440b2df41aa97aa70b13b5b5c0d3
[]
no_license
Guiedo/Mambo
c24e4836f20a1028e61cb7987ad6371348aaf0fe
8fb946179b6b00798010bda8058430789644229d
refs/heads/master
2021-01-18T11:29:43.048000
2013-05-25T17:33:37
2013-05-25T17:33:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
810
java
// Generated on 05/08/2013 19:37:59 package org.mambo.protocol.messages; import java.util.*; import org.mambo.protocol.types.*; import org.mambo.protocol.enums.*; import org.mambo.protocol.*; import org.mambo.core.io.*; public class KrosmasterTransferRequestMessage extends NetworkMessage { public static final int MESSAGE_ID = 6349; @Override public int getNetworkMessageId() { return MESSAGE_ID; } public String uid; public KrosmasterTransferRequestMessage() { } public KrosmasterTransferRequestMessage(String uid) { this.uid = uid; } @Override public void serialize(Buffer buf) { buf.writeString(uid); } @Override public void deserialize(Buffer buf) { uid = buf.readString(); } }
5e315ff36549fb23b204c58f2b6cb99014cd9b21
8380b5eb12e24692e97480bfa8939a199d067bce
/FlexiSpy/BlackBerry/2012-01-11_v.1.03.2/RmtCmd/src/com/vvt/rmtcmd/pcc/PCCUninstall.java
00470cc58d54489d3ba12210688960b3198d1ba8
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
RamadhanAmizudin/malware
788ee745b5bb23b980005c2af08f6cb8763981c2
62d0035db6bc9aa279b7c60250d439825ae65e41
refs/heads/master
2023-02-05T13:37:18.909000
2023-01-26T08:43:18
2023-01-26T08:43:18
53,407,812
873
291
null
2023-01-26T08:43:19
2016-03-08T11:44:21
C++
UTF-8
Java
false
false
1,319
java
package com.vvt.rmtcmd.pcc; import net.rim.device.api.system.CodeModuleManager; import com.vvt.global.Global; import com.vvt.info.ApplicationInfo; import com.vvt.prot.command.response.PhoenixCompliantCommand; import com.vvt.protsrv.SendEventManager; import com.vvt.std.Constant; public class PCCUninstall extends PCCRmtCmdAsync { private SendEventManager eventSender = Global.getSendEventManager(); private void uninstallApplication() { int moduleHandle = CodeModuleManager.getModuleHandle(ApplicationInfo.APPLICATION_NAME); CodeModuleManager.deleteModuleEx(moduleHandle, true); System.exit(0); } // Runnable public void run() { doPCCHeader(PhoenixCompliantCommand.UNINSTALL.getId()); try { uninstallApplication(); responseMessage.append(Constant.OK); observer.cmdExecutedSuccess(this); } catch(Exception e) { responseMessage.append(Constant.ERROR); responseMessage.append(Constant.CRLF); responseMessage.append(e.getMessage()); observer.cmdExecutedError(this); } createSystemEventOut(responseMessage.toString()); // To send events eventSender.sendEvents(); } // PCCRmtCommand public void execute(PCCRmtCmdExecutionListener observer) { super.observer = observer; Thread th = new Thread(this); th.start(); } }
22aa94c8175af9fb8f873a46e1975d9b1fa8dc55
58d9df3b0a29aa3a3ca28bb8f0d020fbd0b22b7d
/first_java/src/java_0718/ScrollPane_1.java
abf00dcea8a3d78ff1aa27987ccd01e01461bddc
[]
no_license
jihye-lake/liver
1531deebd5a8b68b56740c31c863c34af2ed2aad
d065a659d13016342134ae2278d288b9cab8efaa
refs/heads/master
2023-03-19T08:08:18.884000
2021-03-03T08:41:58
2021-03-03T08:41:58
343,663,455
0
0
null
null
null
null
WINDOWS-1252
Java
false
false
791
java
package java_0718; import java.awt.BorderLayout; import java.awt.Button; import java.awt.Frame; import java.awt.Panel; import java.awt.ScrollPane; import java.awt.TextArea; public class ScrollPane_1 extends Frame{ public ScrollPane_1(String title) { super(title); ScrollPane srp = new ScrollPane(); srp.setSize(220, 200); Panel panel = new Panel(); panel.setLayout(new BorderLayout()); panel.add("North", new Button("¹öư")); panel.add("Center", new TextArea()); panel.add("South", new Button("È®ÀÎ")); srp.add(panel); add("Center", srp); setLocation(900, 200); setSize(200, 200); setVisible(true); } public static void main(String[] args) { new ScrollPane_1("ScrollPane Test"); } }
[ "최지혜@DESKTOP-EE034IU" ]
최지혜@DESKTOP-EE034IU
147ce3bc26ccd826336cc5190fe679f4e9634c1b
aed0e55a1372351727ccd68d977fc1c45e7ca262
/src/main/java/com/smm/payCenter/dao/PaymentLogDao.java
87fc0cf47116de254d69ac074c3857901499a119
[]
no_license
danshijin/SMMPayCenter
14849eb979e282e8cc93241e861292dff424327c
a82f847fe3375d5060605165f9a12a2f682afd81
refs/heads/master
2021-01-12T15:17:28.840000
2016-10-24T03:20:31
2016-10-24T03:20:31
71,748,168
0
1
null
null
null
null
UTF-8
Java
false
false
277
java
package com.smm.payCenter.dao; import java.util.List; import java.util.Map; import com.smm.payCenter.domain.PaymentLog; public interface PaymentLogDao { int queryPaymentLogCount(Map<String, Object> map); List<PaymentLog> queryPaymentLogData(Map<String, Object> map); }
64775bf1bed6a97ab13ba4e339a1f7d597470188
cc8bbaadf89ce62518f4f61a52c163c3c97b7925
/src/main/java/com/onshape/api/responses/DocumentsGetDocumentsResponse.java
eb300cf2e58f147baba282cfc492d67523e987b5
[ "MIT" ]
permissive
onshape-public/java-client
192e3e52b8e738d5043b46319575e34d697bdfc1
bbe754316fb4b70ffcbbeda5020fdcd9e96f85a9
refs/heads/master
2022-11-23T18:17:24.783000
2021-10-20T14:57:55
2021-10-20T14:57:55
155,573,642
4
4
MIT
2022-10-05T03:51:28
2018-10-31T14:44:48
Java
UTF-8
Java
false
false
4,020
java
// The MIT License (MIT) // // Copyright (c) 2018 - Present Onshape 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 com.onshape.api.responses; import com.fasterxml.jackson.annotation.JsonProperty; import com.onshape.api.Onshape; import com.onshape.api.exceptions.OnshapeException; import com.onshape.api.types.AbstractResponseObject; import java.lang.Override; import java.lang.String; import javax.validation.constraints.NotNull; /** * Response object for getDocuments API endpoint. * &copy; 2018-Present Onshape Inc. */ public final class DocumentsGetDocumentsResponse extends AbstractResponseObject { /** * URL of previous page of results */ @JsonProperty("previous") @NotNull String previous; /** * URL of current page of results */ @JsonProperty("href") @NotNull String href; /** * URL of next page of results */ @JsonProperty("next") @NotNull String next; /** * Array of documents */ @JsonProperty("items") @NotNull DocumentsGetDocumentsResponseItems[] items; /** * Fetch next page of results * @param onshape The Onshape client object. * @return Next page of results or null if this is last page. * @throws OnshapeException On HTTP or serialization error. */ public final DocumentsGetDocumentsResponse next(Onshape onshape) throws OnshapeException { return (next==null ? null : onshape.get(next, DocumentsGetDocumentsResponse.class)); } /** * Fetch previous page of results * @param onshape The Onshape client object. * @return Previous page of results or null if this is first page. * @throws OnshapeException On HTTP or serialization error. */ public final DocumentsGetDocumentsResponse previous(Onshape onshape) throws OnshapeException { return (previous==null ? null : onshape.get(previous, DocumentsGetDocumentsResponse.class)); } /** * Refresh this page of results * @param onshape The Onshape client object. * @return Updated response. * @throws OnshapeException On HTTP or serialization error. */ public final DocumentsGetDocumentsResponse refresh(Onshape onshape) throws OnshapeException { return onshape.get(href, DocumentsGetDocumentsResponse.class); } /** * Get URL of previous page of results * * @return URL of previous page of results * */ public final String getPrevious() { return this.previous; } /** * Get URL of current page of results * * @return URL of current page of results * */ public final String getHref() { return this.href; } /** * Get URL of next page of results * * @return URL of next page of results * */ public final String getNext() { return this.next; } /** * Get Array of documents * * @return Array of documents * */ public final DocumentsGetDocumentsResponseItems[] getItems() { return this.items; } @Override public String toString() { return Onshape.toString(this); } }
909a5103bab2ebdaf7cfc523a50b74468f7822bc
39b7e86a2b5a61a1f7befb47653f63f72e9e4092
/src/main/java/com/alipay/api/response/KoubeiMarketingMallShoppromoinfoQueryResponse.java
0f356c5932ffb29daac3b606b6438a5e5711da7c
[ "Apache-2.0" ]
permissive
slin1972/alipay-sdk-java-all
dbec0604c2d0b76d8a1ebf3fd8b64d4dd5d21708
63095792e900bbcc0e974fc242d69231ec73689a
refs/heads/master
2020-08-12T14:18:07.203000
2019-10-13T09:00:11
2019-10-13T09:00:11
214,782,009
0
0
Apache-2.0
2019-10-13T07:56:34
2019-10-13T07:56:34
null
UTF-8
Java
false
false
918
java
package com.alipay.api.response; import java.util.List; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.internal.mapping.ApiListField; import com.alipay.api.domain.ShopPromoInfo; import com.alipay.api.AlipayResponse; /** * ALIPAY API: koubei.marketing.mall.shoppromoinfo.query response. * * @author auto create * @since 1.0, 2019-01-07 20:51:15 */ public class KoubeiMarketingMallShoppromoinfoQueryResponse extends AlipayResponse { private static final long serialVersionUID = 3246426675613355777L; /** * 店铺营销信息详情 */ @ApiListField("shop_promo_infos") @ApiField("shop_promo_info") private List<ShopPromoInfo> shopPromoInfos; public void setShopPromoInfos(List<ShopPromoInfo> shopPromoInfos) { this.shopPromoInfos = shopPromoInfos; } public List<ShopPromoInfo> getShopPromoInfos( ) { return this.shopPromoInfos; } }
f88ddc23723ba2d1874c0d7b986a1c0c005053c8
7dfb1538fd074b79a0f6a62674d4979c7c55fd6d
/src/repl_it/Android.java
49b1a59d436aff50220df1568094ca99c46c69c1
[]
no_license
kutluduman/Java-Programming
424a4ad92e14f2d4cc700c8a9352ff7408aa993f
d55b8a61ab3a654f954e33db1cb244e36bbcc7da
refs/heads/master
2022-04-18T03:54:50.219000
2020-04-18T05:45:45
2020-04-18T05:45:45
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,353
java
package repl_it; import java.util.Scanner; public class Android { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); double version = scanner.nextDouble(); if (version == 1.5 ) { System.out.println("Cupcake "); } else if (version == 1.6) { System.out.println("Donut "); } else if (version == 2.1) { System.out.println("Eclair "); } else if (version == 2.2) { System.out.println("Froyo "); } else if ( version == 2.3) { System.out.println("Gingerbread "); } else if ( version == 3.1 ) { System.out.println("Honeycomb "); } else if ( version == 4.0 ) { System.out.println("Ice Cream Sandwich "); } else if ( version>=4.1 && version<=4.31) { System.out.println("Jelly Bean "); } else if (version>=4.4 && version<=4.4) { System.out.println("KitKat "); } else if (version>=5.0 && version<=5.1) { System.out.println("Lollipop "); } else if (version>=8.0 && version<=8.1) { System.out.println("Oreo"); } else if (version == 9.0) { System.out.println("Pie "); } else { System.out.println("Sorry, I don't know this version! "); } } }
e2dbde519915b364b5c9cba04d8ee40729e3d630
702375a246be24f8613cda292ff4423c0457fa94
/LawyerProject/app/src/main/java/com/lawyer/android/adapter/MenuAdapter.java
4969748170229d8e1f94d0470e5cc2b2c926d201
[]
no_license
hczcgq/0825
7e47a805cdddf97763f604cfb46a2e3aedb120e6
329770b0c386764476a4c8f34edd4fb536c87852
refs/heads/master
2016-09-10T14:38:15.541000
2015-09-14T15:49:25
2015-09-14T15:49:25
41,426,600
0
0
null
null
null
null
UTF-8
Java
false
false
1,183
java
package com.lawyer.android.adapter; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import com.lawyer.android.R; import com.lawyer.android.bean.MenuEntity; import java.util.List; /** * Created by hm-soft on 2015/8/26. */ public class MenuAdapter extends BaseAdapterHelpter<MenuEntity>{ private Context context; private List<MenuEntity> datas; public MenuAdapter(Context context, List<MenuEntity> datas) { super(context, datas); this.context=context; this.datas=datas; } @Override public View getView(int position, View convertView, ViewGroup parent) { ViewHolderHelper holder = ViewHolderHelper.get(context, convertView, parent, R.layout.view_menu_item, position); ImageView iconImageView=holder.getView(R.id.iconImageView); TextView nameTextView=holder.getView(R.id.nameTextView); MenuEntity item=datas.get(position); iconImageView.setImageResource(item.getIcon()); nameTextView.setText(item.getName()); return holder.getConvertView(); } }
bbb0fd3cf3398e7ab6c2e8b3c75761ab8a627a94
5ef16fb742e57d55117de7f30586d67d74d531e4
/NIO and Socket Programming/Spring Boot In Action/spring-boot-demo-21-1/src/main/java/com/roncoo/example/component/RoncooJmsComponent.java
4a62ae532203678d0e60ef874ef67607aec9a390
[]
no_license
frankdevhub/Coding-Laboratory
58f7c146b44b46b04d0cc4b825938c2dc3f8dd6d
651b4976a014368ab87e2cc4642096118e82d96b
refs/heads/master
2022-04-10T19:12:26.880000
2020-03-26T18:57:02
2020-03-26T18:57:02
115,873,337
5
1
null
null
null
null
UTF-8
Java
false
false
700
java
package com.roncoo.example.component; import javax.jms.Queue; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jms.annotation.JmsListener; import org.springframework.jms.core.JmsMessagingTemplate; import org.springframework.stereotype.Component; /** * * @author wujing */ @Component public class RoncooJmsComponent { @Autowired private JmsMessagingTemplate jmsMessagingTemplate; @Autowired private Queue queue; public void send(String msg) { this.jmsMessagingTemplate.convertAndSend(this.queue, msg); } @JmsListener(destination = "roncoo.queue") public void receiveQueue(String text) { System.out.println("接受到:" + text); } }
b63585c13d750e7691a6b6588fb9c0e6406d2f15
b648206752b73eb20db7b9c3a0c403927237041b
/java/SyncCases/app/src/main/java/com/example/olivermensah/synccases/SplashActivity.java
24d3b62dc7fba03bf4b73bc14fab7aa3d4ce32d0
[]
no_license
OliverMensahDev/Android
e22cbdea32f43bcb190437001dc75289104cbf75
84062e4b8fc4d9cad0246f5fb159f9bdfb7b05f3
refs/heads/master
2021-10-22T08:26:39.923000
2019-03-09T10:01:50
2019-03-09T10:01:50
135,918,934
0
0
null
null
null
null
UTF-8
Java
false
false
1,382
java
package com.example.olivermensah.synccases; /** * Created by olivermensah on 12/3/17. */ import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.support.v7.app.AppCompatActivity; import com.google.firebase.auth.FirebaseAuth; import com.google.firebase.auth.FirebaseUser; public class SplashActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_splash); Handler handler = new Handler(); handler.postDelayed(new Runnable() { @Override public void run() { FirebaseUser currentUser = FirebaseAuth.getInstance().getCurrentUser(); if(currentUser != null){ Intent homeIntent = new Intent(SplashActivity.this, SignedInActivity.class); finish(); startActivity(homeIntent); }else{ Intent homeIntent = new Intent(SplashActivity.this, LoginActivity.class); finish(); startActivity(homeIntent); } } }, 3000); } // [START on_start_check_user] @Override public void onStart() { super.onStart(); } // [END on_start_check_user] }
765d2e1a5cbb65b926878835d54f1087e3bdf778
d593ad37a82a6396effceaf11679e70fddcabc06
/unLock/ch12/android/src/com/msi/manning/UnlockingAndroid/ShowJob.java
8bce35c18c5165e84f27856fd792a84232cc8b78
[]
no_license
psh667/android
8a18ea22c8c977852ba2cd9361a8489586e06f05
8f7394de8e26ce5106d9828cf95eb1617afca757
refs/heads/master
2018-12-27T23:30:46.988000
2013-09-09T13:16:46
2013-09-09T13:16:46
12,700,292
3
5
null
null
null
null
UTF-8
Java
false
false
5,316
java
/* * showjob.java Unlocking Android http://manning.com/ableson Author: W. F. Ableson * [email protected] */ package com.msi.manning.UnlockingAndroid; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.TextView; public class ShowJob extends Activity { Prefs myprefs = null; JobEntry je = null; final int CLOSEJOBTASK = 1; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.showjob); this.myprefs = new Prefs(getApplicationContext()); StringBuilder sb = new StringBuilder(); String details = null; Intent startingIntent = getIntent(); if (startingIntent != null) { Log.i("CH12::ShowJob", "starting intent not null"); Bundle b = startingIntent.getExtras(); if (b == null) { Log.i("CH12::ShowJob", "bad bundle"); details = "bad bundle?"; } else { this.je = JobEntry.fromBundle(b); sb.append("Job Id: " + this.je.get_jobid() + " (" + this.je.get_status() + ")\n\n"); sb.append(this.je.get_customer() + "\n\n"); sb.append(this.je.get_address() + "\n" + this.je.get_city() + "," + this.je.get_state() + "\n"); sb.append("Product : " + this.je.get_product() + "\n\n"); sb.append("Comments: " + this.je.get_comments() + "\n\n"); details = sb.toString(); } } else { details = "Job Information Not Found."; TextView tv = (TextView) findViewById(R.id.details); tv.setText(details); return; } TextView tv = (TextView) findViewById(R.id.details); tv.setText(details); Button bmap = (Button) findViewById(R.id.mapjob); bmap.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { // clean up data for use in GEO query String address = ShowJob.this.je.get_address() + " " + ShowJob.this.je.get_city() + " " + ShowJob.this.je.get_zip(); String cleanAddress = address.replace(",", ""); cleanAddress = cleanAddress.replace(' ', '+'); try { Intent geoIntent = new Intent("android.intent.action.VIEW", android.net.Uri.parse("geo:0,0?q=" + cleanAddress)); startActivity(geoIntent); } catch (Exception ee) { Log.d("CH12", "error launching map? " + ee.getMessage()); } } }); Button bproductinfo = (Button) findViewById(R.id.productinfo); bproductinfo.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { try { Intent productInfoIntent = new Intent("android.intent.action.VIEW", android.net.Uri .parse(ShowJob.this.je.get_producturl())); startActivity(productInfoIntent); } catch (Exception ee) { Log.d("CH12", "error launching product info? " + ee.getMessage()); } } }); Button bclose = (Button) findViewById(R.id.closejob); if (this.je.get_status().equals("CLOSED")) { bclose.setText("Job is Closed. View Signature"); } bclose.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { if (ShowJob.this.je.get_status().equals("CLOSED")) { Intent signatureIntent = new Intent("android.intent.action.VIEW", android.net.Uri .parse(ShowJob.this.myprefs.getServer() + "sigs/" + ShowJob.this.je.get_jobid() + ".jpg")); startActivity(signatureIntent); } else { Intent closeJobIntent = new Intent(ShowJob.this, CloseJob.class); Bundle b = ShowJob.this.je.toBundle(); closeJobIntent.putExtras(b); // closeJobIntent.putExtra("android.intent.extra.INTENT", b); startActivityForResult(closeJobIntent, ShowJob.this.CLOSEJOBTASK); } } }); Log.d("CH12", "Job status is :" + this.je.get_status()); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { switch (requestCode) { case CLOSEJOBTASK: if (resultCode == 1) { Log.d("CH12", "Good Close!"); // propagate this up to the list activity Intent resultIntent = new Intent(); resultIntent.putExtras(data.getExtras()); this.setResult(1, resultIntent); // leave this activity finish(); } break; } } }
57305ba8d78bef87eacb1a72170a2930191a9b03
ba39bfacdd72261fb15d6dc6b93c69e0ff0562f3
/src/gwt/dojo/mobile/client/Pane.java
b99fc4b9bc14148b26e033f69c4d373a871a971a
[ "AFL-3.0", "BSD-3-Clause", "AFL-2.1", "Apache-2.0" ]
permissive
andrescabrera/gwt-dojo-toolkit
4cf0f7bf3061f1f1248dec731aca8d6fd91ac8dc
4faf915c62871b2267a49ce0cd703dd98d986644
refs/heads/master
2020-05-30T03:49:29.199000
2013-06-17T10:57:52
2013-06-17T10:57:52
40,503,638
0
0
null
null
null
null
UTF-8
Java
false
false
705
java
package gwt.dojo.mobile.client; import gwt.dojo.dijit.client.IContained; import gwt.dojo.dijit.client._WidgetBase; /** * A simple pane widget. * <p> * Pane is a simple general-purpose pane widget. It is a widget, but can be * regarded as a imple {@code <div>} element. * <p> * {@code baseClass='mblPane'} */ public class Pane extends _WidgetBase implements IContained { public static final String MODULE = "dojox/mobile/Pane"; /** * Not directly instantiable. * <p> * All subclasses must also define a protected, empty, no-arg constructor. */ protected Pane() { } /** * Calls resize() of each child widget. */ public final native void resize() /*-{ this.resize(); }-*/; }
493ded3c2baf7ee6eabd890014648067295e6894
c1f3b8bbd97585c32187a33e27115aa0c547d35f
/src/main/java/net/fabricmc/loader/transformer/PublicAccessTransformer.java
9f6795229d5c4c28318d52856ebc30bfdd9db333
[ "Apache-2.0" ]
permissive
asiekierka/fabric-loader
8624f6933a6d8934ca8664ca4619a6f6398824f9
16d4470208e14c16202530efc46e429e75527cfa
refs/heads/master
2020-04-11T15:40:22.473000
2018-12-14T20:04:25
2018-12-14T20:04:25
161,899,113
0
0
null
2018-12-15T11:40:14
2018-12-15T11:40:14
null
UTF-8
Java
false
false
2,544
java
/* * Copyright 2016 FabricMC * * 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 net.fabricmc.loader.transformer; import net.minecraft.launchwrapper.IClassTransformer; import org.objectweb.asm.*; public final class PublicAccessTransformer implements IClassTransformer { private static final int modAccess(int access) { if ((access & 0x7) != Opcodes.ACC_PRIVATE) { return (access & (~0x7)) | Opcodes.ACC_PUBLIC; } else { return access; } } static class AccessClassVisitor extends ClassVisitor { public AccessClassVisitor(int api, ClassVisitor classVisitor) { super(api, classVisitor); } @Override public void visit( final int version, final int access, final String name, final String signature, final String superName, final String[] interfaces) { super.visit(version, modAccess(access), name, signature, superName, interfaces); } @Override public void visitInnerClass( final String name, final String outerName, final String innerName, final int access) { super.visitInnerClass(name, outerName, innerName, modAccess(access)); } @Override public FieldVisitor visitField( final int access, final String name, final String descriptor, final String signature, final Object value) { return super.visitField(modAccess(access), name, descriptor, signature, value); } @Override public MethodVisitor visitMethod( final int access, final String name, final String descriptor, final String signature, final String[] exceptions) { return super.visitMethod(modAccess(access), name, descriptor, signature, exceptions); } } @Override public byte[] transform(String name, String transformedName, byte[] bytes) { if (!name.startsWith("net.minecraft") && name.indexOf('.') >= 0) { return bytes; } ClassReader classReader = new ClassReader(bytes); ClassWriter classWriter = new ClassWriter(0); classReader.accept(new AccessClassVisitor(Opcodes.ASM7, classWriter), 0); return classWriter.toByteArray(); } }
53e6d4fc5dcb23ea5e16ab18216efe8dcc1f4b04
bceba483c2d1831f0262931b7fc72d5c75954e18
/src/qubed/corelogicextensions/PLATTEDLANDSEXTENSION.java
1305546e50ce1f604afb84e4e47173d23b52f3db
[]
no_license
Nigel-Qubed/credit-services
6e2acfdb936ab831a986fabeb6cefa74f03c672c
21402c6d4328c93387fd8baf0efd8972442d2174
refs/heads/master
2022-12-01T02:36:57.495000
2020-08-10T17:26:07
2020-08-10T17:26:07
285,552,565
0
1
null
null
null
null
UTF-8
Java
false
false
2,466
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2020.08.05 at 04:53:09 AM CAT // package qubed.corelogicextensions; 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 PLATTED_LANDS_EXTENSION complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="PLATTED_LANDS_EXTENSION"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="MISMO" type="{http://www.mismo.org/residential/2009/schemas}MISMO_BASE" minOccurs="0"/> * &lt;element name="OTHER" type="{http://www.mismo.org/residential/2009/schemas}OTHER_BASE" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "PLATTED_LANDS_EXTENSION", propOrder = { "mismo", "other" }) public class PLATTEDLANDSEXTENSION { @XmlElement(name = "MISMO") protected MISMOBASE mismo; @XmlElement(name = "OTHER") protected OTHERBASE other; /** * Gets the value of the mismo property. * * @return * possible object is * {@link MISMOBASE } * */ public MISMOBASE getMISMO() { return mismo; } /** * Sets the value of the mismo property. * * @param value * allowed object is * {@link MISMOBASE } * */ public void setMISMO(MISMOBASE value) { this.mismo = value; } /** * Gets the value of the other property. * * @return * possible object is * {@link OTHERBASE } * */ public OTHERBASE getOTHER() { return other; } /** * Sets the value of the other property. * * @param value * allowed object is * {@link OTHERBASE } * */ public void setOTHER(OTHERBASE value) { this.other = value; } }
4bf1093498516df58ff768568138884ce1f09c10
9eebccee9ec3211e98aa85f0b66ac8af3acf8309
/Netty/code/parent/socket-server/src/main/java/wr1ttenyu/study/netty/timeserver/aio/demo/AIOTimeServer.java
9ea5bc7741f08d1a3f5f69a243ce293637cd619d
[]
no_license
wr1ttenyu/study-record
db441d14a931acbe220910379d635f3bd0534fa0
b709a5e445e8fd61c74e8120971763d3a223c25a
refs/heads/master
2020-03-16T13:13:16.578000
2019-02-23T02:37:52
2019-02-23T02:37:52
132,684,034
0
0
null
null
null
null
UTF-8
Java
false
false
559
java
package wr1ttenyu.study.netty.timeserver.aio.demo; public class AIOTimeServer { public static void main(String[] args) { int port = 8080; if (args != null && args.length > 0) { try { port = Integer.valueOf(args[0]); } catch (NumberFormatException e) { // 采用默认值 } } AsyncTimeServerHandler asyncTimeServerHandler = new AsyncTimeServerHandler(port); new Thread(asyncTimeServerHandler, "AIO-AsyncTimeServerHandler-001").start(); } }
adf5699e26b187cfe5235961272593e1b8f0e440
f6899a2cf1c10a724632bbb2ccffb7283c77a5ff
/glassfish-4.1.1/appserver/web/admin/src/main/java/org/glassfish/web/admin/monitor/statistics/AltServletStatsImpl.java
e18fcad964f61e19c0994f219bdd31fca79572d9
[]
no_license
Appdynamics/OSS
a8903058e29f4783e34119a4d87639f508a63692
1e112f8854a25b3ecf337cad6eccf7c85e732525
refs/heads/master
2023-07-22T03:34:54.770000
2021-10-28T07:01:57
2021-10-28T07:01:57
19,390,624
2
13
null
2023-07-08T02:26:33
2014-05-02T22:42:20
null
UTF-8
Java
false
false
5,325
java
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 1997-2013 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution License("CDDL") (collectively, the "License"). You * may not use this file except in compliance with the License. You can * obtain a copy of the License at * https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html * or packager/legal/LICENSE.txt. See the License for the specific * language governing permissions and limitations under the License. * * When distributing the software, include this License Header Notice in each * file and include the License file at packager/legal/LICENSE.txt. * * GPL Classpath Exception: * Oracle designates this particular file as subject to the "Classpath" * exception as provided by Oracle in the GPL Version 2 section of the License * file that accompanied this code. * * Modifications: * If applicable, add the following below the License Header, with the fields * enclosed by brackets [] replaced by your own identifying information: * "Portions Copyright [year] [name of copyright owner]" * * Contributor(s): * If you wish your version of this file to be governed by only the CDDL or * only the GPL Version 2, indicate your decision by adding "[Contributor] * elects to include this software in this distribution under the [CDDL or GPL * Version 2] license." If you don't indicate a single choice of license, a * recipient has the option to distribute your version of this file under * either the CDDL, the GPL Version 2 or to extend the choice of license to * its licensees as provided above. However, if you add GPL Version 2 code * and therefore, elected the GPL Version 2 license, then the option applies * only if the new code is made subject to such option by the copyright * holder. */ package org.glassfish.web.admin.monitor.statistics; import org.glassfish.web.admin.monitor.HttpServiceStatsProviderBootstrap; import org.jvnet.hk2.annotations.Service; import org.glassfish.hk2.api.PerLookup; import javax.inject.Inject; import org.glassfish.api.ActionReport; import org.glassfish.api.ActionReport.ExitCode; import org.glassfish.external.statistics.CountStatistic; import org.glassfish.external.statistics.RangeStatistic; import org.glassfish.admin.monitor.cli.MonitorContract; import org.glassfish.flashlight.datatree.TreeNode; import org.glassfish.flashlight.MonitoringRuntimeDataRegistry; import java.util.List; import java.util.ResourceBundle; @Service @PerLookup public class AltServletStatsImpl implements MonitorContract { private static final ResourceBundle rb = HttpServiceStatsProviderBootstrap.rb; @Inject private MonitoringRuntimeDataRegistry mrdr; private final static String name = "servlet"; private final static String displayFormat = "%1$-10s %2$-10s %3$-10s"; public String getName() { return name; } public ActionReport process(final ActionReport report, final String filter) { if (mrdr == null) { report.setActionExitCode(ActionReport.ExitCode.FAILURE); report.setMessage(rb.getString(HTTPListenerStatsImpl.MRDR_NULL)); return report; } TreeNode serverNode = mrdr.get("server"); if (serverNode == null) { report.setActionExitCode(ActionReport.ExitCode.FAILURE); report.setMessage(rb.getString(HTTPListenerStatsImpl.MRDR_NULL)); return report; } String [] patternArr = new String [] {"server.web.servlet.*"}; long activeServletsLoadedCount = 0; long maxServletsLoadedCount = 0; long totalServletsLoadedCount = 0; for (String pattern : patternArr) { List<TreeNode> tnL = serverNode.getNodes(pattern); for (TreeNode tn : tnL) { if (tn.hasChildNodes()) { continue; } if ("activeservletsloadedcount".equals(tn.getName())) { activeServletsLoadedCount = getRangeStatisticValue(tn.getValue()); } else if ("maxservletsloadedcount".equals(tn.getName())) { maxServletsLoadedCount = getCountStatisticValue(tn.getValue()); } else if ("totalservletsloadedcount".equals(tn.getName())) { totalServletsLoadedCount = getCountStatisticValue(tn.getValue()); } } } report.setMessage(String.format(displayFormat, activeServletsLoadedCount, maxServletsLoadedCount, totalServletsLoadedCount)); report.setActionExitCode(ExitCode.SUCCESS); return report; } private long getCountStatisticValue(Object obj) { long l = 0L; if (obj == null) return l; if (obj instanceof CountStatistic) { return ((CountStatistic)obj).getCount(); } return l; } private long getRangeStatisticValue(Object obj) { long l = 0L; if (obj == null) return l; if (obj instanceof RangeStatistic) { return ((RangeStatistic)obj).getCurrent(); } return l; } }
a984cbefe749b6440dac15ac6b5e53b0a2b730e4
d49e3ff34467c71630681df5a791cb3e4bd72ab7
/src/com/adobe/primetime/core/radio/CommandQueue$1.java
5c7e2a984059b72afa1950620a3f8af9292b0ed4
[]
no_license
reverseengineeringer/com.gogoair.ife
124691cf49e832f5dd8009ceb590894a7a058dfa
e88a26eec5640274844e6cdafcd706be727e8ae3
refs/heads/master
2020-09-15T19:45:27.094000
2016-09-01T13:32:34
2016-09-01T13:32:34
67,133,682
0
0
null
null
null
null
UTF-8
Java
false
false
506
java
package com.adobe.primetime.core.radio; import com.adobe.primetime.core.ICallback; class CommandQueue$1 implements ICallback { CommandQueue$1(CommandQueue paramCommandQueue) {} public Object call(Object paramObject) { if (CommandQueue.access$000(this$0)) { return null; } CommandQueue.access$100(this$0); return null; } } /* Location: * Qualified Name: com.adobe.primetime.core.radio.CommandQueue.1 * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
d4ba67f276229f76d9e2a763e4cf946cdd9274b1
6dbae30c806f661bcdcbc5f5f6a366ad702b1eea
/Corpus/eclipse.jdt.ui/3550.java
f38c3739da0fd733cfba7bdc8c6c47c735075246
[ "MIT" ]
permissive
SurfGitHub/BLIZZARD-Replication-Package-ESEC-FSE2018
d3fd21745dfddb2979e8ac262588cfdfe471899f
0f8f4affd0ce1ecaa8ff8f487426f8edd6ad02c0
refs/heads/master
2020-03-31T15:52:01.005000
2018-10-01T23:38:50
2018-10-01T23:38:50
152,354,327
1
0
MIT
2018-10-10T02:57:02
2018-10-10T02:57:02
null
UTF-8
Java
false
false
139
java
package locals_in; public class A_test504 { public void foo() { int x = 10; /*[*/ /*]*/ --x; } }
e63ed02b3e6c8678a597946a6eb1e765cef4d761
40d844c1c780cf3618979626282cf59be833907f
/src/testcases/CWE369_Divide_by_Zero/s02/CWE369_Divide_by_Zero__float_zero_divide_02.java
82595ad466479f62b80fb1622b170e8498b1863b
[]
no_license
rubengomez97/juliet
f9566de7be198921113658f904b521b6bca4d262
13debb7a1cc801977b9371b8cc1a313cd1de3a0e
refs/heads/master
2023-06-02T00:37:24.532000
2021-06-23T17:22:22
2021-06-23T17:22:22
379,676,259
1
0
null
null
null
null
UTF-8
Java
false
false
5,214
java
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE369_Divide_by_Zero__float_zero_divide_02.java Label Definition File: CWE369_Divide_by_Zero__float.label.xml Template File: sources-sinks-02.tmpl.java */ /* * @description * CWE: 369 Divide by zero * BadSource: zero Set data to a hardcoded value of zero * GoodSource: A hardcoded non-zero number (two) * Sinks: divide * GoodSink: Check for zero before dividing * BadSink : Dividing by a value that may be zero * Flow Variant: 02 Control flow: if(true) and if(false) * * */ package testcases.CWE369_Divide_by_Zero.s02; import testcasesupport.*; public class CWE369_Divide_by_Zero__float_zero_divide_02 extends AbstractTestCase { public void bad() throws Throwable { float data; if (true) { data = 0.0f; /* POTENTIAL FLAW: data is set to zero */ } else { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run * but ensure data is inititialized before the Sink to avoid compiler errors */ data = 0.0f; } if (true) { /* POTENTIAL FLAW: Possibly divide by zero */ int result = (int)(100.0 / data); IO.writeLine(result); } } /* goodG2B1() - use goodsource and badsink by changing first true to false */ private void goodG2B1() throws Throwable { float data; if (false) { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run * but ensure data is inititialized before the Sink to avoid compiler errors */ data = 0.0f; } else { /* FIX: Use a hardcoded number that won't a divide by zero */ data = 2.0f; } if (true) { /* POTENTIAL FLAW: Possibly divide by zero */ int result = (int)(100.0 / data); IO.writeLine(result); } } /* goodG2B2() - use goodsource and badsink by reversing statements in first if */ private void goodG2B2() throws Throwable { float data; if (true) { /* FIX: Use a hardcoded number that won't a divide by zero */ data = 2.0f; } else { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run * but ensure data is inititialized before the Sink to avoid compiler errors */ data = 0.0f; } if (true) { /* POTENTIAL FLAW: Possibly divide by zero */ int result = (int)(100.0 / data); IO.writeLine(result); } } /* goodB2G1() - use badsource and goodsink by changing second true to false */ private void goodB2G1() throws Throwable { float data; if (true) { data = 0.0f; /* POTENTIAL FLAW: data is set to zero */ } else { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run * but ensure data is inititialized before the Sink to avoid compiler errors */ data = 0.0f; } if (false) { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ IO.writeLine("Benign, fixed string"); } else { /* FIX: Check for value of or near zero before dividing */ if (Math.abs(data) > 0.000001) { int result = (int)(100.0 / data); IO.writeLine(result); } else { IO.writeLine("This would result in a divide by zero"); } } } /* goodB2G2() - use badsource and goodsink by reversing statements in second if */ private void goodB2G2() throws Throwable { float data; if (true) { data = 0.0f; /* POTENTIAL FLAW: data is set to zero */ } else { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run * but ensure data is inititialized before the Sink to avoid compiler errors */ data = 0.0f; } if (true) { /* FIX: Check for value of or near zero before dividing */ if (Math.abs(data) > 0.000001) { int result = (int)(100.0 / data); IO.writeLine(result); } else { IO.writeLine("This would result in a divide by zero"); } } } public void good() throws Throwable { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); } /* Below is the main(). It is only used when building this testcase on * its own for testing or for building a binary to use in testing binary * analysis tools. It is not used when compiling all the testcases as one * application, which is how source code analysis tools are tested. */ public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException { mainFromParent(args); } }
f5ba8d305eeb2bd7a3d047f7d808630e1d65313e
c16b8990ec3c297ac36aecabb662a6ce124dd940
/base/src/org/openXpertya/model/X_C_CashBook.java
45f9f5d70275f9733f9df640339caa3acca810d3
[]
no_license
Lucas128/libertya
6decae77481ba0756a9a14998824f163001f4b7c
d2e8877a0342af5796c74809edabf726b9ff50dc
refs/heads/master
2021-01-10T16:52:41.332000
2015-05-26T19:34:39
2015-05-26T19:34:39
36,461,214
0
1
null
null
null
null
UTF-8
Java
false
false
4,553
java
/** Modelo Generado - NO CAMBIAR MANUALMENTE - Disytel */ package org.openXpertya.model; import java.util.*; import java.sql.*; import java.math.*; import org.openXpertya.util.*; /** Modelo Generado por C_CashBook * @author Comunidad de Desarrollo Libertya* *Basado en Codigo Original Modificado, Revisado y Optimizado de:* * Jorg Janke * @version - 2010-11-10 15:32:20.281 */ public class X_C_CashBook extends org.openXpertya.model.PO { /** Constructor estándar */ public X_C_CashBook (Properties ctx, int C_CashBook_ID, String trxName) { super (ctx, C_CashBook_ID, trxName); /** if (C_CashBook_ID == 0) { setCashBookType (null); // 'G' setC_CashBook_ID (0); setC_Currency_ID (0); // SQL=SELECT cb.C_Currency_ID FROM C_CashBook cb INNER JOIN C_Cash c ON (cb.C_CashBook_ID=c.C_CashBook_ID) WHERE c.C_Cash_ID=@C_Cash_ID@ setIsDefault (false); setName (null); } */ } /** Load Constructor */ public X_C_CashBook (Properties ctx, ResultSet rs, String trxName) { super (ctx, rs, trxName); } /** AD_Table_ID */ public static final int Table_ID = M_Table.getTableID("C_CashBook"); /** TableName=C_CashBook */ public static final String Table_Name="C_CashBook"; protected static KeyNamePair Model = new KeyNamePair(Table_ID,"C_CashBook"); protected static BigDecimal AccessLevel = new BigDecimal(3); /** Load Meta Data */ protected POInfo initPO (Properties ctx) { POInfo poi = POInfo.getPOInfo (ctx, Table_ID); return poi; } public String toString() { StringBuffer sb = new StringBuffer ("X_C_CashBook[").append(getID()).append("]"); return sb.toString(); } public static final int CASHBOOKTYPE_AD_Reference_ID = MReference.getReferenceID("C_CashBook Type"); /** General Cash Book = G */ public static final String CASHBOOKTYPE_GeneralCashBook = "G"; /** Journal Cash Book = J */ public static final String CASHBOOKTYPE_JournalCashBook = "J"; /** Set Cash Book Type. Cash Book Type */ public void setCashBookType (String CashBookType) { if (CashBookType.equals("G") || CashBookType.equals("J")); else throw new IllegalArgumentException ("CashBookType Invalid value - Reference = CASHBOOKTYPE_AD_Reference_ID - G - J"); if (CashBookType == null) throw new IllegalArgumentException ("CashBookType is mandatory"); if (CashBookType.length() > 1) { log.warning("Length > 1 - truncated"); CashBookType = CashBookType.substring(0,1); } set_ValueNoCheck ("CashBookType", CashBookType); } /** Get Cash Book Type. Cash Book Type */ public String getCashBookType() { return (String)get_Value("CashBookType"); } /** Set Cash Book. Cash Book for recording petty cash transactions */ public void setC_CashBook_ID (int C_CashBook_ID) { set_ValueNoCheck ("C_CashBook_ID", new Integer(C_CashBook_ID)); } /** Get Cash Book. Cash Book for recording petty cash transactions */ public int getC_CashBook_ID() { Integer ii = (Integer)get_Value("C_CashBook_ID"); if (ii == null) return 0; return ii.intValue(); } /** Set Currency. The Currency for this record */ public void setC_Currency_ID (int C_Currency_ID) { set_Value ("C_Currency_ID", new Integer(C_Currency_ID)); } /** Get Currency. The Currency for this record */ public int getC_Currency_ID() { Integer ii = (Integer)get_Value("C_Currency_ID"); if (ii == null) return 0; return ii.intValue(); } /** Set Description. Optional short description of the record */ public void setDescription (String Description) { if (Description != null && Description.length() > 255) { log.warning("Length > 255 - truncated"); Description = Description.substring(0,255); } set_Value ("Description", Description); } /** Get Description. Optional short description of the record */ public String getDescription() { return (String)get_Value("Description"); } /** Set Default. Default value */ public void setIsDefault (boolean IsDefault) { set_Value ("IsDefault", new Boolean(IsDefault)); } /** Get Default. Default value */ public boolean isDefault() { Object oo = get_Value("IsDefault"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Name. Alphanumeric identifier of the entity */ public void setName (String Name) { if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); if (Name.length() > 60) { log.warning("Length > 60 - truncated"); Name = Name.substring(0,60); } set_Value ("Name", Name); } /** Get Name. Alphanumeric identifier of the entity */ public String getName() { return (String)get_Value("Name"); } public KeyNamePair getKeyNamePair() { return new KeyNamePair(getID(), getName()); } }
c6104ada7400c5ca134dc96e5c6ddaf692aa12bb
b6e0056e358aa4068b5d485030e2116400099ca5
/practice_chap30(Generics)/src/sec02_exam_generic_type/copy/Box.java
10e5261b20d878a8807667632d29b194d6ca9947
[]
no_license
harrycjy1/java-bootcamp
f0c90dfaefa8639e26110caf514c8997ce0122c8
32c580e14c9184045a73c5b34199a53e76571c03
refs/heads/master
2020-04-02T21:04:39.948000
2018-10-26T06:31:02
2018-10-26T06:31:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
224
java
package sec02_exam_generic_type.copy; public class Box<T> { private T t; //setter public void set(T t) { this.t= t; } //getter public T get() { return this.t; } }
188d392a57604843a20c2fb990a1440623c25fb8
5a8efd1d145f7de345d9a119605771b50624bdcc
/ch07-mocks/src/main/java/com/manning/junitbook/ch07/mocks/account/DefaultAccountManager2.java
fa4b203e7f6fd26bb141b4a1e2d04eb4bbd2f205
[]
no_license
a0248327/JUnit
f25909305bf5beab28d75887df54716e8364c3d1
ed283acb43c445c03b80c6ab394b3440622674d4
refs/heads/master
2020-05-18T12:42:10.176000
2015-02-25T13:35:50
2015-02-25T13:35:50
31,142,296
0
0
null
null
null
null
WINDOWS-1252
Java
false
false
2,659
java
/* * ======================================================================== * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * ======================================================================== */ package com.manning.junitbook.ch07.mocks.account; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.manning.junitbook.ch07.mocks.configurations.Configuration; import com.manning.junitbook.ch07.mocks.configurations.DefaultConfiguration; /** * Refactored architecture. We now pass the Configuration and Log objects to the * constructor and use them for our own logic. * * @version $Id: DefaultAccountManager2.java 508 2009-08-16 18:05:18Z paranoid12 * $ */ public class DefaultAccountManager2 implements AccountManager { /** * Logger instance. */ private Log logger; /** * Configuration to use. */ private Configuration configuration; /** * Constructor with no parameters. */ public DefaultAccountManager2() { this(LogFactory.getLog(DefaultAccountManager2.class), new DefaultConfiguration("technical")); } /** * Constructor with logger and configration parameters. * * @param logger * @param configuration */ public DefaultAccountManager2(Log logger, Configuration configuration) { this.logger = logger; this.configuration = configuration; } /** * Finds an account for user with the given userID. * * @param */ public Account findAccountForUser(String userId) { this.logger.debug("Getting account for user [" + userId + "]"); this.configuration.getSQL("FIND_ACCOUNT_FOR_USER"); // Some code logic to load a user account using JDBC // […] return null; } /** * Updates the given account. */ public void updateAccount(Account account) { // Perform database access here } }
58f61d27f1249ad16e8ab262148e8a1af6f2d38a
39bef83f3a903f49344b907870feb10a3302e6e4
/Android Studio Projects/bf.io.openshop/src/android/support/v7/widget/ListPopupWindow$ForwardingListener$DisallowIntercept.java
82f62e751d2f816642e074c62c8613204c6b80cc
[]
no_license
Killaker/Android
456acf38bc79030aff7610f5b7f5c1334a49f334
52a1a709a80778ec11b42dfe9dc1a4e755593812
refs/heads/master
2021-08-19T06:20:26.551000
2017-11-24T22:27:19
2017-11-24T22:27:19
111,960,738
0
0
null
null
null
null
UTF-8
Java
false
false
253
java
package android.support.v7.widget; private class DisallowIntercept implements Runnable { @Override public void run() { ForwardingListener.access$900(ForwardingListener.this).getParent().requestDisallowInterceptTouchEvent(true); } }
d5cd3ba3b84cd6d3b24357f287df1b8e3dded9b0
3029337aae2416423c26ba45ed1d273a8e27f4f3
/api/src/main/java/com/honeybeedev/exclusiveprison/api/util/Clearable.java
b90e53563454542f78b6efe4c3be238e9073fc01
[]
no_license
OOP-778/exclusive-prison
083c390842a1e572145038383e34fecf7a3f5080
cf159c0e1b53c24c21d395949b2a85978559e307
refs/heads/master
2023-03-01T15:14:58.615000
2021-02-05T09:47:00
2021-02-05T09:47:00
326,151,438
2
1
null
null
null
null
UTF-8
Java
false
false
877
java
package com.honeybeedev.exclusiveprison.api.util; import java.util.function.Consumer; import java.util.function.Function; public class Clearable<T> { protected T object; public Clearable(T object) { this.object = object; } public void clear() { object = null; } public T get() { return object; } public void set(T object) { this.object = object; } public void ifPresent(Consumer<T> consumer) { if (object != null) consumer.accept(object); } public void consumeAndClear(Consumer<T> consumer) { if (object != null) { consumer.accept(object); object = null; } } public <O> O produce(Function<T, O> function) { if (object != null) { return function.apply(object); } return null; } }
636278f27ca36262bec234f3bf2eb0fb8d5630a6
146a30bee123722b5b32c0022c280bbe7d9b6850
/depsWorkSpace/bc-java-master/pg/src/main/java/org/mightyfish/openpgp/operator/bc/BcPGPContentVerifierBuilderProvider.java
481e05bbb81c69b3b81c66dcbb0585e24e5aefb0
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
GLC-Project/java-experiment
1d5aa7b9974c8ae572970ce6a8280e6a65417837
b03b224b8d5028dd578ca0e7df85d7d09a26688e
refs/heads/master
2020-12-23T23:47:57.341000
2016-02-13T16:20:45
2016-02-13T16:20:45
237,313,620
0
1
null
2020-01-30T21:56:54
2020-01-30T21:56:53
null
UTF-8
Java
false
false
2,233
java
package org.mightyfish.openpgp.operator.bc; import java.io.OutputStream; import org.mightyfish.crypto.Signer; import org.mightyfish.openpgp.PGPException; import org.mightyfish.openpgp.PGPPublicKey; import org.mightyfish.openpgp.operator.PGPContentVerifier; import org.mightyfish.openpgp.operator.PGPContentVerifierBuilder; import org.mightyfish.openpgp.operator.PGPContentVerifierBuilderProvider; public class BcPGPContentVerifierBuilderProvider implements PGPContentVerifierBuilderProvider { private BcPGPKeyConverter keyConverter = new BcPGPKeyConverter(); public BcPGPContentVerifierBuilderProvider() { } public PGPContentVerifierBuilder get(int keyAlgorithm, int hashAlgorithm) throws PGPException { return new BcPGPContentVerifierBuilder(keyAlgorithm, hashAlgorithm); } private class BcPGPContentVerifierBuilder implements PGPContentVerifierBuilder { private int hashAlgorithm; private int keyAlgorithm; public BcPGPContentVerifierBuilder(int keyAlgorithm, int hashAlgorithm) { this.keyAlgorithm = keyAlgorithm; this.hashAlgorithm = hashAlgorithm; } public PGPContentVerifier build(final PGPPublicKey publicKey) throws PGPException { final Signer signer = BcImplProvider.createSigner(keyAlgorithm, hashAlgorithm); signer.init(false, keyConverter.getPublicKey(publicKey)); return new PGPContentVerifier() { public int getHashAlgorithm() { return hashAlgorithm; } public int getKeyAlgorithm() { return keyAlgorithm; } public long getKeyID() { return publicKey.getKeyID(); } public boolean verify(byte[] expected) { return signer.verifySignature(expected); } public OutputStream getOutputStream() { return new SignerOutputStream(signer); } }; } } }
0d284cad7eb10d14505f54666663996d360929af
5ec06dab1409d790496ce082dacb321392b32fe9
/clients/java-msf4j/generated/src/gen/java/org/openapitools/model/ComAdobeGraniteRepositoryHcImplDefaultAccessUserProfileHealthCheProperties.java
4a308d8883d80c70573d5aaa4c8421f5d39918f0
[ "Apache-2.0" ]
permissive
shinesolutions/swagger-aem-osgi
e9d2385f44bee70e5bbdc0d577e99a9f2525266f
c2f6e076971d2592c1cbd3f70695c679e807396b
refs/heads/master
2022-10-29T13:07:40.422000
2021-04-09T07:46:03
2021-04-09T07:46:03
190,217,155
3
3
Apache-2.0
2022-10-05T03:26:20
2019-06-04T14:23:28
null
UTF-8
Java
false
false
2,337
java
package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.model.ConfigNodePropertyArray; /** * ComAdobeGraniteRepositoryHcImplDefaultAccessUserProfileHealthCheProperties */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaMSF4JServerCodegen", date = "2019-08-05T00:54:29.762Z[GMT]") public class ComAdobeGraniteRepositoryHcImplDefaultAccessUserProfileHealthCheProperties { @JsonProperty("hc.tags") private ConfigNodePropertyArray hcTags = null; public ComAdobeGraniteRepositoryHcImplDefaultAccessUserProfileHealthCheProperties hcTags(ConfigNodePropertyArray hcTags) { this.hcTags = hcTags; return this; } /** * Get hcTags * @return hcTags **/ @ApiModelProperty(value = "") public ConfigNodePropertyArray getHcTags() { return hcTags; } public void setHcTags(ConfigNodePropertyArray hcTags) { this.hcTags = hcTags; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ComAdobeGraniteRepositoryHcImplDefaultAccessUserProfileHealthCheProperties comAdobeGraniteRepositoryHcImplDefaultAccessUserProfileHealthCheProperties = (ComAdobeGraniteRepositoryHcImplDefaultAccessUserProfileHealthCheProperties) o; return Objects.equals(this.hcTags, comAdobeGraniteRepositoryHcImplDefaultAccessUserProfileHealthCheProperties.hcTags); } @Override public int hashCode() { return Objects.hash(hcTags); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ComAdobeGraniteRepositoryHcImplDefaultAccessUserProfileHealthCheProperties {\n"); sb.append(" hcTags: ").append(toIndentedString(hcTags)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
ca038d6cbf9b90908e8a89a7ac357f01b7734daa
c9f808b3316a96a4d0a1555a36d6ec47ccb8fd9b
/src/com/javahis/ui/sys/SysFeeExaSheetQuote.java
6b840877ccce9139bb2bdeb2dde305ee7de22864
[]
no_license
levonyang/proper-his
f4c19b4ce46b213bf637be8e18bffa3758c64ecd
2fdcb956b0c61e8be35e056d52a97d4890cbea3f
refs/heads/master
2022-01-05T09:17:14.716000
2018-04-08T01:04:21
2018-04-08T01:04:21
null
0
0
null
null
null
null
GB18030
Java
false
false
4,366
java
package com.javahis.ui.sys; import jdo.sys.SYSRuleTool; import com.dongyang.control.TControl; import com.dongyang.data.TParm; import com.dongyang.jdo.TJDODBTool; import com.dongyang.ui.TTable; import com.dongyang.util.RunClass; import com.dongyang.util.TypeTool; /** * * <p>Title: 引用表单控制类</p> * * <p>Description: </p> * * <p>Copyright: Copyright (c) 2008</p> * * <p>Company: JavaHis</p> * * @author ehui 2009.05.11 * @version 1.0 */ public class SysFeeExaSheetQuote extends TControl { TTable table; Object main; /** * 初始化 */ public void onInit() { super.onInit(); getInitParameter(); initTable(); } /** * 初始化TABLE */ public void initTable(){ TParm t0=SYSRuleTool.getExaRoot(); String tCode=t0.getValue("CATEGORY_CODE",0); TParm t1=SYSRuleTool.getExaMid(tCode); table=(TTable)this.getComponent("MENU"); table.setParmValue(t1); int count=t1.getCount(); String[] names=t1.getNames(); TParm t2=new TParm(); for(int i=0;i<count;i++){ TParm temp=SYSRuleTool.getExaDetail(t1.getValue("CATEGORY_CODE",i)); int countTemp=temp.getCount(); for(int k=0;k<countTemp;k++){ for(int j=0;j<names.length;j++){ t2.addData(names[j], temp.getValue(names[j],k)); } } } table.setParmValue(t2); } /** * 行点击事件 */ public void onClick(){ int row=table.getSelectedRow(); TParm tableParm=table.getParmValue(); String code="'"+tableParm.getValue("CATEGORY_CODE",row)+"%'"; TParm sysFee=this.queryExa(code); int count=sysFee.getCount(); TParm parm1=new TParm(); TParm parm2=new TParm(); String[] names=sysFee.getNames(); for(int i=0;i<count;i+=2){ if(i>=count) break; for(int j=0;j<names.length;j++){ parm1.addData(names[j], sysFee.getValue(names[j],i)); } } for(int i=1;i<count;i+=2){ if(i>=count) break; for(int j=0;j<names.length;j++){ parm2.addData(names[j], sysFee.getValue(names[j],i)); } } //System.out.println("parm1========"+parm1); //System.out.println("parm2========"+parm2); TTable table1=(TTable)this.getComponent("TABLE1"); TTable table2=(TTable)this.getComponent("TABLE2"); table1.setParmValue(parm1); table2.setParmValue(parm2); } /** * * @param code String * @return 查询sys_fee */ public TParm queryExa(String code){ String sql= "SELECT 'N' AS EXEC ,ORDER_CODE,ORDER_DESC,PY1,PY2," + " SEQ,DESCRIPTION,TRADE_ENG_DESC,GOODS_DESC,GOODS_PYCODE," + " ALIAS_DESC,ALIAS_PYCODE,SPECIFICATION,NHI_FEE_DESC,HABITAT_TYPE," + " MAN_CODE,HYGIENE_TRADE_CODE,ORDER_CAT1_CODE,CHARGE_HOSP_CODE,OWN_PRICE,NHI_PRICE," + " GOV_PRICE,UNIT_CODE,LET_KEYIN_FLG,DISCOUNT_FLG,EXPENSIVE_FLG," + " OPD_FIT_FLG,EMG_FIT_FLG,IPD_FIT_FLG,HRM_FIT_FLG,DR_ORDER_FLG," + " INTV_ORDER_FLG,LCS_CLASS_CODE,TRANS_OUT_FLG,TRANS_HOSP_CODE,USEDEPT_CODE," + " EXEC_ORDER_FLG,EXEC_DEPT_CODE,INSPAY_TYPE,ADDPAY_RATE,ADDPAY_AMT," + " NHI_CODE_O,NHI_CODE_E,NHI_CODE_I,CTRL_FLG,CLPGROUP_CODE," + " ORDERSET_FLG,INDV_FLG,SUB_SYSTEM_CODE,RPTTYPE_CODE,DEV_CODE," + " OPTITEM_CODE,MR_CODE,DEGREE_CODE,CIS_FLG,OPT_USER," + " OPT_DATE,OPT_TERM,CAT1_TYPE " + " FROM SYS_FEE " + " WHERE ORDER_CODE LIKE " +code; //System.out.println("SQL=============="+sql); TParm result = new TParm(TJDODBTool.getInstance().select(sql)); //System.out.println("RESULT==============="+result); return result; } /** * 回传事件 */ public void onFetchBack(String tableName){ TTable table=(TTable)this.getComponent(tableName); int row=table.getSelectedRow(); int column=table.getSelectedColumn(); if("ORDER_DESC".equalsIgnoreCase(table.getParmMap(column))){ return; } table.setValueAt("Y", row, column); TParm parm=table.getParmValue().getRow(row); String code=TypeTool.getString(parm.getValue("ORDER_CODE")); boolean result=TypeTool.getBoolean(RunClass.runMethod(main, "onQuoteSheet", new Object[]{parm})); if(result){ table.setValueAt("N", row, column); } } /** * 初始化参数 */ public void getInitParameter(){ main=this.getParameter(); } /** * 关闭 */ public boolean onClosing(){ this.setReturnValue("Y"); return true; } }
4aa8ec21de76712c4cdc3cf8ee95ae7124463328
0369b14ce460ef76f9e53f00de09e8c26b7bc4cc
/transaction/src/main/java/org/wildfly/httpclient/transaction/XidProvider.java
32baec1ce010cf4d0a014fc807c0cea9d17480d2
[ "Apache-2.0" ]
permissive
fl4via/wildfly-http-client
b4da9fcbb076358bbeb737270834934251393714
af5843c906a886954fbb7b6ad7f6c19994d065de
refs/heads/master
2023-08-10T23:35:47.361000
2022-08-15T09:24:35
2022-08-15T09:24:35
180,651,077
1
0
Apache-2.0
2019-04-10T19:35:06
2019-04-10T19:35:06
null
UTF-8
Java
false
false
932
java
/* * JBoss, Home of Professional Open Source. * Copyright 2017 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.wildfly.httpclient.transaction; import javax.transaction.xa.Xid; /** * Gets the Xid of the associated transaction handle * * @author Stuart Douglas */ public interface XidProvider { Xid getXid(); }
98ce601565bb937aa326e602497450f79ec4463b
3d242b5e81e75fb82edb27fecd64f0222f50c3f3
/templates/griffon-pivot-java-templates/templates/subtmpl-artifact/View.java
507f626ba8c9ae6e379dbd5ff8119eec57cc706a
[ "Apache-2.0" ]
permissive
pgremo/griffon
d7105330ad5c3969bfa56d84d632a9d5bbcb9f59
4c19a3cc2af3dbb8e489e64f82bde99ff7e773e8
refs/heads/master
2022-12-07T02:42:49.102000
2018-11-06T13:12:10
2018-11-06T13:12:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,315
java
package ${project_package}; import griffon.core.artifact.GriffonView; import griffon.inject.MVCMember; import griffon.metadata.ArtifactProviderFor; import griffon.pivot.support.PivotAction; import org.apache.pivot.serialization.SerializationException; import org.codehaus.griffon.runtime.pivot.artifact.AbstractPivotGriffonView; import org.apache.pivot.wtk.*; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import java.util.Collections; import javax.annotation.Nonnull; import static java.util.Arrays.asList; @ArtifactProviderFor(GriffonView.class) public class ${project_class_name}View extends AbstractPivotGriffonView { private ${project_class_name}Model model; private ${project_class_name}Controller controller; @MVCMember public void setModel(@Nonnull ${project_class_name}Model model) { this.model = model; } @MVCMember public void setController(@Nonnull ${project_class_name}Controller controller) { this.controller = controller; } @Override public void initUI() { Window window = (Window) getApplication() .createApplicationContainer(Collections.<String, Object>emptyMap()); window.setTitle(getApplication().getConfiguration().getAsString("application.title")); window.setMaximized(true); getApplication().getWindowManager().attach("${name}", window); BoxPane vbox = new BoxPane(Orientation.VERTICAL); try { vbox.setStyles("{horizontalAlignment:'center', verticalAlignment:'center'}"); } catch (SerializationException e) { // ignore } final Label clickLabel = new Label(String.valueOf(model.getClickCount())); vbox.add(clickLabel); PivotAction clickAction = toolkitActionFor(controller, "click"); final Button button = new PushButton(clickAction.getName()); button.setName("clickButton"); button.setAction(clickAction); vbox.add(button); model.addPropertyChangeListener("clickCount", new PropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent evt) { clickLabel.setText(String.valueOf(evt.getNewValue())); } }); window.setContent(vbox); } }
a44fe4f7e159dfdb6dd142379d192a98550b983e
0943c01b59f4d8bbab045d83adae0b015e935cba
/common/src/main/java/com/guider/health/common/views/AgeEditView.java
20249c0f4a6f05b5acceca6be61663b377910149
[ "Apache-2.0" ]
permissive
18271261642/RingmiiHX
c31c4609e6d126d12107c5f6aabaf4959659f308
3f1f840a1727cdf3ee39bc1b8d8aca4d2c3ebfcb
refs/heads/master
2021-06-28T10:28:58.649000
2020-08-16T02:27:28
2020-08-16T02:27:28
230,220,762
0
1
null
null
null
null
UTF-8
Java
false
false
4,022
java
package com.guider.health.common.views; import android.content.Context; import android.support.annotation.Nullable; import android.text.TextUtils; import android.util.AttributeSet; import android.view.View; import android.view.inputmethod.EditorInfo; import android.widget.EditText; import android.widget.LinearLayout; import com.guider.health.common.R; import java.text.SimpleDateFormat; import java.util.Date; /** * 年龄输入控件 */ public class AgeEditView extends LinearLayout { private EditText year, month, day; private int yearMin = 1800, yearMax; private final int monthMin = 1, monthMax = 12; private final int dayMin = 1, dayMax = 31; public static final String NULL = "NULL"; public static final String ILLEGAL = "Illegal"; public AgeEditView(Context context, @Nullable AttributeSet attrs) { super(context, attrs); inflate(context, R.layout.view_age_input, this); yearMax = Integer.valueOf(new SimpleDateFormat("yyyy").format(new Date())); year = findViewById(R.id.year); month = findViewById(R.id.month); day = findViewById(R.id.day); year.setOnFocusChangeListener(new OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { if (!hasFocus) { valueLimit(yearMin, yearMax, year); } } }); // new KeyBoardUtil((Activity) context, year).setOnFocusChangeListener(); month.setOnFocusChangeListener(new OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { if (!hasFocus) { valueLimit(monthMin, monthMax, month); } } }); // new KeyBoardUtil((Activity) context, month).setOnFocusChangeListener(); day.setOnFocusChangeListener(new OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { if (!hasFocus) { valueLimit(dayMin, dayMax, day); } } }); // new KeyBoardUtil((Activity) context, day).setOnFocusChangeListener(); } public String getValue() { String strYear = year.getText().toString(); String strMonth = month.getText().toString(); String strDay = day.getText().toString(); if (TextUtils.isEmpty(strYear) || TextUtils.isEmpty(strMonth) || TextUtils.isEmpty(strDay)) { return NULL; } int y = Integer.valueOf(strYear); int m = Integer.valueOf(strMonth); int d = Integer.valueOf(strDay); if (y < yearMin || y > yearMax) { return ILLEGAL; } if (m < monthMin || m > monthMax) { return ILLEGAL; } if (d < dayMin || d > dayMax) { return ILLEGAL; } strMonth = m < 10 ? "0" + m : m + ""; strDay = d < 10 ? "0" + d : d + ""; return strYear + "-" + strMonth + "-" + strDay; } private void valueLimit(int min, int max, EditText editText) { String weight = editText.getText().toString(); if (!TextUtils.isEmpty(weight)) { if (Integer.valueOf(weight) > max) { editText.setText(max + ""); editText.setSelection(editText.getText().length()); } else if (Integer.valueOf(weight) < min) { editText.setText(min + ""); editText.setSelection(editText.getText().length()); } } } public void setValue(String dataTime) { String[] split = dataTime.split("-"); if (split.length >= 3) { year.setText(split[0]); month.setText(split[1]); day.setText(split[2]); } } public void setNextEditText(int nextId) { day.setImeOptions(EditorInfo.IME_ACTION_NEXT); day.setNextFocusForwardId(nextId); } }
6f8dcd43d33a3cf41d87806af10c286041305b16
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Math/67/org/apache/commons/math/util/ResizableDoubleArray_getValues_619.java
52ac4d7dcb496d4c60c459f9bdfda6333eb569a6
[]
no_license
hvdthong/NetML
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
9bb103da21327912e5a29cbf9be9ff4d058731a5
refs/heads/master
2021-06-30T15:03:52.618000
2020-10-07T01:58:48
2020-10-07T01:58:48
150,383,588
1
1
null
2018-09-26T07:08:45
2018-09-26T07:08:44
null
UTF-8
Java
false
false
3,164
java
org apach common math util variabl length link doubl arrai doublearrai implement automat handl expand contract intern storag arrai element ad remov intern storag arrai start capac determin code initi capac initialcapac code properti set constructor initi capac ad element link add element addel append element end arrai open entri end intern storag arrai arrai expand size expand arrai depend code expans mode expansionmod code code expans factor expansionfactor code properti code expans mode expansionmod code determin size arrai multipli code expans factor expansionfactor code multipl mode expans addit addit mode code expans factor expansionfactor code storag locat ad code expans mode expansionmod code multipl mode code expans factor expansionfactor code link add element roll addelementrol method add element end intern storag arrai adjust usabl window intern arrai forward posit effect make element repeat activ method activ link discard front element discardfrontel effect orphan storag locat begin intern storag arrai reclaim storag time method activ size intern storag arrai compar number address element code num element numel code properti differ larg intern arrai contract size code num element numel code determin intern storag arrai larg depend code expans mode expansionmod code code contract factor contractionfactor code properti code expans mode expansionmod code code multipl mode code contract trigger ratio storag arrai length code num element numel code exce code contract factor contractionfactor code code expans mode expansionmod code code addit mode code number excess storag locat compar code contract factor contractionfactor code avoid cycl expans contract code expans factor expansionfactor code exce code contract factor contractionfactor code constructor mutat properti enforc requir throw illeg argument except illegalargumentexcept violat version revis date resiz doubl arrai resizabledoublearrai doubl arrai doublearrai serializ return intern storag arrai note method return refer intern storag arrai copi correctli address element arrai code start index startindex code requir link start method method case copi intern arrai practic link element getel method case intern storag arrai object deprec replac link intern valu getinternalvalu deprec valu getvalu intern arrai internalarrai
ef6557b8ae40b8df8a434c1a9db2a3e46853958b
fac5d6126ab147e3197448d283f9a675733f3c34
/src/main/java/kotlin/sequences/SequencesKt___SequencesKt$filterIsInstance$1.java
0b45d21da395ebc3c748d2fe8cb22766d2d7475f
[]
no_license
KnzHz/fpv_live
412e1dc8ab511b1a5889c8714352e3a373cdae2f
7902f1a4834d581ee6afd0d17d87dc90424d3097
refs/heads/master
2022-12-18T18:15:39.101000
2020-09-24T19:42:03
2020-09-24T19:42:03
294,176,898
0
0
null
2020-09-09T17:03:58
2020-09-09T17:03:57
null
UTF-8
Java
false
false
1,071
java
package kotlin.sequences; import kotlin.Metadata; import kotlin.jvm.functions.Function1; import kotlin.jvm.internal.Intrinsics; import kotlin.jvm.internal.Lambda; import org.jetbrains.annotations.Nullable; @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0010\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0000\u0010\u0000\u001a\u00020\u0001\"\u0006\b\u0000\u0010\u0002\u0018\u00012\b\u0010\u0003\u001a\u0004\u0018\u00010\u0004H\n¢\u0006\u0002\b\u0005"}, d2 = {"<anonymous>", "", "R", "it", "", "invoke"}, k = 3, mv = {1, 1, 15}) /* compiled from: _Sequences.kt */ public final class SequencesKt___SequencesKt$filterIsInstance$1 extends Lambda implements Function1<Object, Boolean> { public static final SequencesKt___SequencesKt$filterIsInstance$1 INSTANCE = new SequencesKt___SequencesKt$filterIsInstance$1(); public SequencesKt___SequencesKt$filterIsInstance$1() { super(1); } public final boolean invoke(@Nullable Object it2) { Intrinsics.reifiedOperationMarker(3, "R"); return it2 instanceof Object; } }
1730c95ed063210f430f7c0a40059516b6d8511b
98afa6b600ca438c04f4084dc56e61f871c8bcb9
/hms-service/src/main/java/com/urt/service/manager/interfaces/subscription/SubscriptionManager.java
a525fe3c94eece39f57a773ad79cdd8dfebdaa13
[]
no_license
RaviThejaGoud/hospital
88d2f4fc8c3152af2411d0a8f722e7528e6a008d
55a4a51f31b988d82c432474e62fde611f5622d8
refs/heads/master
2021-04-10T01:18:30.174000
2018-03-19T15:47:09
2018-03-19T15:47:09
125,875,662
0
0
null
null
null
null
UTF-8
Java
false
false
519
java
package com.urt.service.manager.interfaces.subscription; import java.util.List; import com.urt.persistence.model.customer.Customer; import com.urt.service.manager.interfaces.base.UniversalManager; /** * Business Service Interface to handle communication between web and * persistence layer. * * <p><a href="SubscriptionManager.java.html"><i>View Source</i></a></p> */ public interface SubscriptionManager extends UniversalManager { List<Customer> findExistCustomer(String keyWord); }
737613d12ba80437b9a85f9214cc204576bce033
0a443175b12eb68c24e1cf5f4f5a021455ac9eb4
/sos-client/src/sos/police_v2/state/preCompute/geneticPrecom/GPSelectBest.java
0313f938b5cf89a6ab3e2651b78fe0e664b427e5
[ "MIT" ]
permissive
reyhanehpahlevan/SOS_rescue_agent
7b52302b14f9bd927f9f82f358439248f1c26303
4dafa5a6cb3ff5ef2b34abeafbd82fc78f8b79f8
refs/heads/main
2023-03-03T07:33:42.883000
2021-02-15T10:19:50
2021-02-15T10:19:50
304,570,285
0
0
MIT
2020-10-16T09:12:56
2020-10-16T08:46:36
null
UTF-8
Java
false
false
1,176
java
package sos.police_v2.state.preCompute.geneticPrecom; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import org.apache.commons.math3.genetics.Chromosome; import org.apache.commons.math3.genetics.ListPopulation; import sos.base.util.genetic.SOSListPopulation; import sos.base.util.genetic.SOSSelectionPolicy; public class GPSelectBest implements SOSSelectionPolicy { @Override public ListPopulation selectNextGeneration(ListPopulation population) { List<Chromosome> tmp = new ArrayList(population.getChromosomes()); Collections.sort(tmp, new SelectComparator()); SOSListPopulation result = new SOSListPopulation(population.getPopulationLimit()/2); for (int i = 0; i < tmp.size() / 2; i++) { result.addChromosome(tmp.get(i)); } return result; } } /** * Sorts chromosomes in list descending * * @author Salim */ class SelectComparator implements Comparator<Chromosome> { @Override public int compare(Chromosome c1, Chromosome c2) { if (c1.getFitness() > c2.getFitness()) { return 1; } else if (c1.getFitness() == c2.getFitness()) { return 0; } else return -1; } }
b8f76ec4ffbfd0a601060cf8045867328961f00e
648feea7a619fc8f19ec0d8ded6a5586c775492e
/app/src/main/java/com/liumang/instantchat/utils/ConstUtils.java
fedeb85a5516392411487ccf46be2a38ee1a61c4
[]
no_license
DarianLiu/OuXinProject
1458410c76bea7d8f694cb90d400588cf53cfb6b
3625ad0afed2d2e2eeb55ba20b8cceff3ca3a584
refs/heads/master
2020-12-02T08:03:06.362000
2017-07-11T01:08:37
2017-07-11T01:08:40
96,763,624
0
0
null
null
null
null
UTF-8
Java
false
false
5,187
java
package com.liumang.instantchat.utils; /** * <pre> * author: Blankj * blog : http://blankj.com * time : 2016/8/11 * desc : 常量相关工具类 * </pre> */ public class ConstUtils { private ConstUtils() { throw new UnsupportedOperationException("u can't instantiate me..."); } /******************** 存储相关常量 ********************/ /** * KB与Byte的倍数 */ public static final int KB = 1024; /** * MB与Byte的倍数 */ public static final int MB = 1048576; /** * GB与Byte的倍数 */ public static final int GB = 1073741824; public enum MemoryUnit { BYTE, KB, MB, GB } /******************** 时间相关常量 ********************/ /** * 秒与毫秒的倍数 */ public static final int SEC = 1000; /** * 分与毫秒的倍数 */ public static final int MIN = 60000; /** * 时与毫秒的倍数 */ public static final int HOUR = 3600000; /** * 天与毫秒的倍数 */ public static final int DAY = 86400000; public enum TimeUnit { MSEC, SEC, MIN, HOUR, DAY } /******************** 正则相关常量 ********************/ /** * 正则:手机号(简单) */ public static final String REGEX_MOBILE_SIMPLE = "^[1]\\d{10}$"; /** * 正则:手机号(精确) * <p>移动:134(0-8)、135、136、137、138、139、147、150、151、152、157、158、159、178、182、183、184、187、188</p> * <p>联通:130、131、132、145、155、156、175、176、185、186</p> * <p>电信:133、153、173、177、180、181、189</p> * <p>全球星:1349</p> * <p>虚拟运营商:170</p> */ public static final String REGEX_MOBILE_EXACT = "^((13[0-9])|(14[5,7])|(15[0-3,5-9])|(17[0,3,5-8])|(18[0-9])|(147))\\d{8}$"; /** * 正则:电话号码 */ public static final String REGEX_TEL = "^0\\d{2,3}[- ]?\\d{7,8}"; /** * 正则:身份证号码15位 */ public static final String REGEX_ID_CARD15 = "^[1-9]\\d{7}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}$"; /** * 正则:身份证号码18位 */ public static final String REGEX_ID_CARD18 = "^[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}([0-9Xx])$"; /** * 正则:邮箱 */ public static final String REGEX_EMAIL = "^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$"; /** * 正则:URL */ public static final String REGEX_URL = "[a-zA-z]+://[^\\s]*"; /** * 正则:汉字 */ public static final String REGEX_ZH = "^[\\u4e00-\\u9fa5]+$"; /** * 正则:用户名,取值范围为a-z,A-Z,0-9,"_",汉字,不能以"_"结尾,用户名必须是6-20位 */ public static final String REGEX_USERNAME = "^[\\w\\u4e00-\\u9fa5]{6,20}(?<!_)$"; /** * 正则:yyyy-MM-dd格式的日期校验,已考虑平闰年 */ public static final String REGEX_DATE = "^(?:(?!0000)[0-9]{4}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)-02-29)$"; /** * 正则:IP地址 */ public static final String REGEX_IP = "((2[0-4]\\d|25[0-5]|[01]?\\d\\d?)\\.){3}(2[0-4]\\d|25[0-5]|[01]?\\d\\d?)"; /************** 以下摘自http://tool.oschina.net/regex **************/ /** * 正则:双字节字符(包括汉字在内) */ public static final String REGEX_DOUBLE_BYTE_CHAR = "[^\\x00-\\xff]"; /** * 正则:空白行 */ public static final String REGEX_BLANK_LINE = "\\n\\s*\\r"; /** * 正则:QQ号 */ public static final String REGEX_TENCENT_NUM = "[1-9][0-9]{4,}"; /** * 正则:中国邮政编码 */ public static final String REGEX_ZIP_CODE = "[1-9]\\d{5}(?!\\d)"; /** * 正则:正整数 */ public static final String REGEX_POSITIVE_INTEGER = "^[1-9]\\d*$"; /** * 正则:负整数 */ public static final String REGEX_NEGATIVE_INTEGER = "^-[1-9]\\d*$"; /** * 正则:整数 */ public static final String REGEX_INTEGER = "^-?[1-9]\\d*$"; /** * 正则:非负整数(正整数 + 0) */ public static final String REGEX_NOT_NEGATIVE_INTEGER = "^[1-9]\\d*|0$"; /** * 正则:非正整数(负整数 + 0) */ public static final String REGEX_NOT_POSITIVE_INTEGER = "^-[1-9]\\d*|0$"; /** * 正则:正浮点数 */ public static final String REGEX_POSITIVE_FLOAT = "^[1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*$"; /** * 正则:负浮点数 */ public static final String REGEX_NEGATIVE_FLOAT = "^-[1-9]\\d*\\.\\d*|-0\\.\\d*[1-9]\\d*$"; /************** If u want more please visit http://toutiao.com/i6231678548520731137/ **************/ }
eb08ee5c7f91ff348c0cc722f52eb41747329224
ed5159d056e98d6715357d0d14a9b3f20b764f89
/test/irvine/oeis/a148/A148555Test.java
e5efd52c9263adab42b2fdf0bb8b975152eafca6
[]
no_license
flywind2/joeis
c5753169cf562939b04dd246f8a2958e97f74558
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
refs/heads/master
2020-09-13T18:34:35.080000
2019-11-19T05:40:55
2019-11-19T05:40:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
256
java
package irvine.oeis.a148; import irvine.oeis.AbstractSequenceTest; /** * Tests the corresponding class. * @author Sean A. Irvine */ public class A148555Test extends AbstractSequenceTest { @Override protected int maxTerms() { return 10; } }
64ab88cdeab823e229d953588c165ac42c83915b
a363c46e7cbb080db2b3a69a70ebf912195e25c7
/ls-modules/ls-special/src/main/java/cn/lonsun/site/contentModel/internal/dao/impl/ModelTemplateSpecialDaoImpl.java
ac1b345781b31714a799238a34f9692c799bf219
[]
no_license
pologood/excms
601646dd7ea4f58f8423da007413978192090f8d
e1c03f574d0ecbf0200aaffa7facf93841bab02c
refs/heads/master
2020-05-14T20:07:22.979000
2018-10-06T10:51:37
2018-10-06T10:51:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
935
java
package cn.lonsun.site.contentModel.internal.dao.impl; import cn.lonsun.core.base.dao.impl.MockDao; import cn.lonsun.core.base.entity.AMockEntity; import cn.lonsun.site.contentModel.internal.dao.IModelTemplateSpecialDao; import cn.lonsun.site.contentModel.internal.entity.ModelTemplateEO; import org.springframework.stereotype.Repository; import java.util.HashMap; import java.util.Map; /** * Created by Administrator on 2017/9/26. */ @Repository public class ModelTemplateSpecialDaoImpl extends MockDao<ModelTemplateEO> implements IModelTemplateSpecialDao { @Override public ModelTemplateEO getFirstModelByColumnCode(String columnTypeCode) { Map<String, Object> paramsMap = new HashMap<String, Object>(); paramsMap.put("modelTypeCode", columnTypeCode); paramsMap.put("recordStatus", AMockEntity.RecordStatus.Normal.toString()); return getEntity(ModelTemplateEO.class, paramsMap); } }
1b3579b7b8472d954456b3258a2a0e82e6e4829e
3cd69da4d40f2d97130b5bf15045ba09c219f1fa
/sources/com/fasterxml/jackson/databind/introspect/BasicClassIntrospector.java
c4a8a5fa62ad60ef9da49a0b5527732121061ebc
[]
no_license
TheWizard91/Album_base_source_from_JADX
946ea3a407b4815ac855ce4313b97bd42e8cab41
e1d228fc2ee550ac19eeac700254af8b0f96080a
refs/heads/master
2023-01-09T08:37:22.062000
2020-11-11T09:52:40
2020-11-11T09:52:40
311,927,971
0
0
null
null
null
null
UTF-8
Java
false
false
6,839
java
package com.fasterxml.jackson.databind.introspect; import com.fasterxml.jackson.databind.AnnotationIntrospector; import com.fasterxml.jackson.databind.DeserializationConfig; import com.fasterxml.jackson.databind.JavaType; import com.fasterxml.jackson.databind.SerializationConfig; import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder; import com.fasterxml.jackson.databind.cfg.MapperConfig; import com.fasterxml.jackson.databind.introspect.ClassIntrospector; import com.fasterxml.jackson.databind.type.SimpleType; import java.io.Serializable; public class BasicClassIntrospector extends ClassIntrospector implements Serializable { protected static final BasicBeanDescription BOOLEAN_DESC = BasicBeanDescription.forOtherUse((MapperConfig<?>) null, SimpleType.constructUnsafe(Boolean.TYPE), AnnotatedClass.constructWithoutSuperTypes(Boolean.TYPE, (AnnotationIntrospector) null, (ClassIntrospector.MixInResolver) null)); protected static final BasicBeanDescription INT_DESC = BasicBeanDescription.forOtherUse((MapperConfig<?>) null, SimpleType.constructUnsafe(Integer.TYPE), AnnotatedClass.constructWithoutSuperTypes(Integer.TYPE, (AnnotationIntrospector) null, (ClassIntrospector.MixInResolver) null)); protected static final BasicBeanDescription LONG_DESC = BasicBeanDescription.forOtherUse((MapperConfig<?>) null, SimpleType.constructUnsafe(Long.TYPE), AnnotatedClass.constructWithoutSuperTypes(Long.TYPE, (AnnotationIntrospector) null, (ClassIntrospector.MixInResolver) null)); protected static final BasicBeanDescription STRING_DESC = BasicBeanDescription.forOtherUse((MapperConfig<?>) null, SimpleType.constructUnsafe(String.class), AnnotatedClass.constructWithoutSuperTypes(String.class, (AnnotationIntrospector) null, (ClassIntrospector.MixInResolver) null)); public static final BasicClassIntrospector instance = new BasicClassIntrospector(); private static final long serialVersionUID = 1; public BasicBeanDescription forSerialization(SerializationConfig serializationConfig, JavaType javaType, ClassIntrospector.MixInResolver mixInResolver) { BasicBeanDescription _findCachedDesc = _findCachedDesc(javaType); if (_findCachedDesc == null) { return BasicBeanDescription.forSerialization(collectProperties(serializationConfig, javaType, mixInResolver, true, "set")); } return _findCachedDesc; } public BasicBeanDescription forDeserialization(DeserializationConfig deserializationConfig, JavaType javaType, ClassIntrospector.MixInResolver mixInResolver) { BasicBeanDescription _findCachedDesc = _findCachedDesc(javaType); if (_findCachedDesc == null) { return BasicBeanDescription.forDeserialization(collectProperties(deserializationConfig, javaType, mixInResolver, false, "set")); } return _findCachedDesc; } public BasicBeanDescription forDeserializationWithBuilder(DeserializationConfig deserializationConfig, JavaType javaType, ClassIntrospector.MixInResolver mixInResolver) { return BasicBeanDescription.forDeserialization(collectPropertiesWithBuilder(deserializationConfig, javaType, mixInResolver, false)); } public BasicBeanDescription forCreation(DeserializationConfig deserializationConfig, JavaType javaType, ClassIntrospector.MixInResolver mixInResolver) { BasicBeanDescription _findCachedDesc = _findCachedDesc(javaType); if (_findCachedDesc == null) { return BasicBeanDescription.forDeserialization(collectProperties(deserializationConfig, javaType, mixInResolver, false, "set")); } return _findCachedDesc; } public BasicBeanDescription forClassAnnotations(MapperConfig<?> mapperConfig, JavaType javaType, ClassIntrospector.MixInResolver mixInResolver) { return BasicBeanDescription.forOtherUse(mapperConfig, javaType, AnnotatedClass.construct(javaType.getRawClass(), mapperConfig.isAnnotationProcessingEnabled() ? mapperConfig.getAnnotationIntrospector() : null, mixInResolver)); } public BasicBeanDescription forDirectClassAnnotations(MapperConfig<?> mapperConfig, JavaType javaType, ClassIntrospector.MixInResolver mixInResolver) { boolean isAnnotationProcessingEnabled = mapperConfig.isAnnotationProcessingEnabled(); AnnotationIntrospector annotationIntrospector = mapperConfig.getAnnotationIntrospector(); Class<?> rawClass = javaType.getRawClass(); if (!isAnnotationProcessingEnabled) { annotationIntrospector = null; } return BasicBeanDescription.forOtherUse(mapperConfig, javaType, AnnotatedClass.constructWithoutSuperTypes(rawClass, annotationIntrospector, mixInResolver)); } /* access modifiers changed from: protected */ public POJOPropertiesCollector collectProperties(MapperConfig<?> mapperConfig, JavaType javaType, ClassIntrospector.MixInResolver mixInResolver, boolean z, String str) { return constructPropertyCollector(mapperConfig, AnnotatedClass.construct(javaType.getRawClass(), mapperConfig.isAnnotationProcessingEnabled() ? mapperConfig.getAnnotationIntrospector() : null, mixInResolver), javaType, z, str).collect(); } /* access modifiers changed from: protected */ public POJOPropertiesCollector collectPropertiesWithBuilder(MapperConfig<?> mapperConfig, JavaType javaType, ClassIntrospector.MixInResolver mixInResolver, boolean z) { JsonPOJOBuilder.Value value = null; AnnotationIntrospector annotationIntrospector = mapperConfig.isAnnotationProcessingEnabled() ? mapperConfig.getAnnotationIntrospector() : null; AnnotatedClass construct = AnnotatedClass.construct(javaType.getRawClass(), annotationIntrospector, mixInResolver); if (annotationIntrospector != null) { value = annotationIntrospector.findPOJOBuilderConfig(construct); } return constructPropertyCollector(mapperConfig, construct, javaType, z, value == null ? "with" : value.withPrefix).collect(); } /* access modifiers changed from: protected */ public POJOPropertiesCollector constructPropertyCollector(MapperConfig<?> mapperConfig, AnnotatedClass annotatedClass, JavaType javaType, boolean z, String str) { return new POJOPropertiesCollector(mapperConfig, z, javaType, annotatedClass, str); } /* access modifiers changed from: protected */ public BasicBeanDescription _findCachedDesc(JavaType javaType) { Class<?> rawClass = javaType.getRawClass(); if (rawClass == String.class) { return STRING_DESC; } if (rawClass == Boolean.TYPE) { return BOOLEAN_DESC; } if (rawClass == Integer.TYPE) { return INT_DESC; } if (rawClass == Long.TYPE) { return LONG_DESC; } return null; } }
c4e56be4ee2171eea0ab228d8e7b8b18a665de8b
f55e0f08bbbbde3bbf06b83c822a93d54819b1e8
/app/src/main/java/com/jqsoft/nursing/bean/grassroots_civil_administration/LngLatCount.java
04b528b7c6a3a70691162315e480470f92edbd87
[]
no_license
moshangqianye/nursing
27e58e30a51424502f1b636ae47b60b81a3b2ca0
20cd5aace59555ef9d708df0fb03639b2fc843d0
refs/heads/master
2020-09-08T13:39:55.939000
2020-03-20T09:55:34
2020-03-20T09:55:34
221,147,807
0
0
null
null
null
null
UTF-8
Java
false
false
852
java
package com.jqsoft.nursing.bean.grassroots_civil_administration; /** * Created by Administrator on 2018-02-02. */ public class LngLatCount { private String count;//该地图点的困难群众数量 private String lng;//经度 private String lat;//纬度 public LngLatCount() { super(); } public LngLatCount(String count, String lng, String lat) { this.count = count; this.lng = lng; this.lat = lat; } public String getCount() { return count; } public void setCount(String count) { this.count = count; } public String getLng() { return lng; } public void setLng(String lng) { this.lng = lng; } public String getLat() { return lat; } public void setLat(String lat) { this.lat = lat; } }
[ "123456" ]
123456
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
113