blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
7
390
content_id
stringlengths
40
40
detected_licenses
listlengths
0
35
license_type
stringclasses
2 values
repo_name
stringlengths
6
132
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
539 values
visit_date
timestamp[us]date
2016-08-02 21:09:20
2023-09-06 10:10:07
revision_date
timestamp[us]date
1990-01-30 01:55:47
2023-09-05 21:45:37
committer_date
timestamp[us]date
2003-07-12 18:48:29
2023-09-05 21:45:37
github_id
int64
7.28k
684M
star_events_count
int64
0
77.7k
fork_events_count
int64
0
48k
gha_license_id
stringclasses
13 values
gha_event_created_at
timestamp[us]date
2012-06-11 04:05:37
2023-09-14 21:59:18
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-28 02:39:21
gha_language
stringclasses
62 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
128
12.8k
extension
stringclasses
11 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
79
4919507367815b1f1f516833a54bae7ae39bc5cf
92bea743c7c4317aa4d75e6f8c0f9dd1bed6e652
/src/test/java/com/alibaba/json/bvt/InetAddressFieldTest.java
7dc6852dd2c4836cc6bcc363996f979d0da579a4
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
ziqin/fastjson
89e4361d7923ec242e9817c7d8456a6363c7b05c
5bdc3592655c6850eb59f89b09a7dbd19ed1ca75
refs/heads/master
2022-09-06T12:09:07.941718
2020-06-01T05:51:57
2020-06-01T05:53:36
254,939,238
3
0
Apache-2.0
2020-04-13T13:10:24
2020-04-11T19:23:43
null
UTF-8
Java
false
false
1,503
java
package com.alibaba.json.bvt; import java.net.InetAddress; import org.junit.Assert; import junit.framework.TestCase; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.serializer.SerializeConfig; import com.alibaba.fastjson.serializer.SerializerFeature; public class InetAddressFieldTest extends TestCase { public void test_codec() throws Exception { User user = new User(); user.setValue(InetAddress.getLocalHost()); SerializeConfig mapping = new SerializeConfig(); mapping.setAsmEnable(false); String text = JSON.toJSONString(user, mapping, SerializerFeature.WriteMapNullValue); User user1 = JSON.parseObject(text, User.class); Assert.assertEquals(user1.getValue(), user.getValue()); } public void test_codec_null() throws Exception { User user = new User(); user.setValue(null); SerializeConfig mapping = new SerializeConfig(); mapping.setAsmEnable(false); String text = JSON.toJSONString(user, mapping, SerializerFeature.WriteMapNullValue); User user1 = JSON.parseObject(text, User.class); Assert.assertEquals(user1.getValue(), user.getValue()); } public static class User { private InetAddress value; public InetAddress getValue() { return value; } public void setValue(InetAddress value) { this.value = value; } } }
[ "szujobs@hotmail.com" ]
szujobs@hotmail.com
0bf63c14c68c8420e53f2312a644e3f0496cf965
3766ac90347e6526772709841b11deefd38343d1
/apollo-configservice/src/test/java/com/ctrip/framework/apollo/metaservice/service/DefaultDiscoveryServiceTest.java
c00304603256e097f6a1cc9796a40c8ff409b5b4
[ "Apache-2.0" ]
permissive
nobodyiam/apollo
b6b5d7a3758a453cb9b81b9fd69d0a83bfbbc38a
55870f1ab8732acddb0a6e7fcb8a74a4b47fca2c
refs/heads/master
2023-07-27T11:00:01.101363
2023-04-09T07:10:26
2023-04-09T07:10:26
53,838,070
14
6
Apache-2.0
2023-05-27T12:49:25
2016-03-14T08:10:48
Java
UTF-8
Java
false
false
3,906
java
/* * Copyright 2023 Apollo Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package com.ctrip.framework.apollo.metaservice.service; import static org.junit.Assert.*; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import com.ctrip.framework.apollo.core.dto.ServiceDTO; import com.google.common.collect.Lists; import com.netflix.appinfo.InstanceInfo; import com.netflix.discovery.EurekaClient; import com.netflix.discovery.shared.Application; import java.net.URISyntaxException; import java.util.ArrayList; import java.util.List; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.junit.MockitoJUnitRunner; @RunWith(MockitoJUnitRunner.class) public class DefaultDiscoveryServiceTest { @Mock private EurekaClient eurekaClient; @Mock private Application someApplication; private DefaultDiscoveryService defaultDiscoveryService; private String someServiceId; @Before public void setUp() throws Exception { defaultDiscoveryService = new DefaultDiscoveryService(eurekaClient); someServiceId = "someServiceId"; } @Test public void testGetServiceInstancesWithNullInstances() { when(eurekaClient.getApplication(someServiceId)).thenReturn(null); assertTrue(defaultDiscoveryService.getServiceInstances(someServiceId).isEmpty()); } @Test public void testGetServiceInstancesWithEmptyInstances() { when(eurekaClient.getApplication(someServiceId)).thenReturn(someApplication); when(someApplication.getInstances()).thenReturn(new ArrayList<>()); assertTrue(defaultDiscoveryService.getServiceInstances(someServiceId).isEmpty()); } @Test public void testGetServiceInstances() throws URISyntaxException { String someUri = "http://1.2.3.4:8080/some-path/"; String someInstanceId = "someInstanceId"; InstanceInfo someServiceInstance = mockServiceInstance(someServiceId, someInstanceId, someUri); String anotherUri = "http://2.3.4.5:9090/anotherPath"; String anotherInstanceId = "anotherInstanceId"; InstanceInfo anotherServiceInstance = mockServiceInstance(someServiceId, anotherInstanceId, anotherUri); when(eurekaClient.getApplication(someServiceId)).thenReturn(someApplication); when(someApplication.getInstances()) .thenReturn(Lists.newArrayList(someServiceInstance, anotherServiceInstance)); List<ServiceDTO> serviceDTOList = defaultDiscoveryService.getServiceInstances(someServiceId); assertEquals(2, serviceDTOList.size()); check(someServiceInstance, serviceDTOList.get(0)); check(anotherServiceInstance, serviceDTOList.get(1)); } private void check(InstanceInfo serviceInstance, ServiceDTO serviceDTO) { assertEquals(serviceInstance.getAppName(), serviceDTO.getAppName()); assertEquals(serviceInstance.getInstanceId(), serviceDTO.getInstanceId()); assertEquals(serviceInstance.getHomePageUrl(), serviceDTO.getHomepageUrl()); } private InstanceInfo mockServiceInstance(String serviceId, String instanceId, String homePageUrl) { InstanceInfo serviceInstance = mock(InstanceInfo.class); when(serviceInstance.getAppName()).thenReturn(serviceId); when(serviceInstance.getInstanceId()).thenReturn(instanceId); when(serviceInstance.getHomePageUrl()).thenReturn(homePageUrl); return serviceInstance; } }
[ "nobodyiam@gmail.com" ]
nobodyiam@gmail.com
37fe825f58c6a1cc23db64f3c1d42377564966f1
bf0a5acf1bba30568dacb655a2a5aa4fe2c78d85
/src/com/shroggle/entity/.svn/text-base/WorkText.java.svn-base
ec7eafc92a727212d8901bcd386d010cb2a43cd2
[]
no_license
shroggle/Shroggle
37fd3a8e264b275b948f05d1bfe100744bb85973
4e3c3c67c55772ca914f12f652cf6023512be615
refs/heads/master
2016-09-06T03:50:14.602344
2011-10-31T22:58:04
2011-10-31T22:58:04
2,683,810
0
0
null
null
null
null
UTF-8
Java
false
false
1,404
/********************************************************************* * * * Copyright (c) 2007-2011 by Web-Deva. * * All rights reserved. * * * * This computer program is protected by copyright law and * * international treaties. Unauthorized reproduction or distribution * * of this program, or any portion of it, may result in severe civil * * and criminal penalties, and will be prosecuted to the maximum * * extent possible under the law. * * * *********************************************************************/ package com.shroggle.entity; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Lob; @Entity(name = "workTexts") public class WorkText extends WorkItem implements Text { @Override public String getText() { return text; } public void setText(String text) { this.text = text; } @Override public ItemType getItemType() { return ItemType.TEXT; } @Lob @Column(length = 1048576) private String text; }
[ "don@shefer.us" ]
don@shefer.us
325598897a11dab8986b63c1681aef6d3a904dd4
7cef09b7385b3fd05e771cca9b5f37b55534988d
/bomc-zk-lib/src/main/java/de/bomc/poc/zk/services/InstanceMetaData.java
ea57b2035dbf66d14dc08adb3da5a28fb3d50b8d
[]
no_license
bomc/hack
b8967c67f09e00ca950dfb5c2047d80d39791cd2
3d0dc31ed62db2e8890dccca801a755fc56bd8de
refs/heads/master
2022-11-23T21:14:36.088035
2021-01-25T16:14:52
2021-01-25T16:14:52
189,887,104
1
2
null
2022-11-16T05:22:20
2019-06-02T19:35:29
Java
UTF-8
Java
false
false
5,393
java
package de.bomc.poc.zk.services; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonRootName; import java.io.Serializable; /** * A class that contains additional information for the registered <code>ServiceInstance</code>. * @author <a href="mailto:bomc@bomc.org">Michael Boerner</a> * @version $Revision: $ $Author: $ $Date: $ * @since 03.08.2016 */ @JsonRootName("instanceMetaData") public class InstanceMetaData implements Serializable { /** * The serial UID. */ private static final long serialVersionUID = -6752407026845515294L; @JsonProperty("hostAddress") private String hostAdress; @JsonProperty("port") private int port; @JsonProperty("serviceName") private String serviceName; @JsonProperty("contextRoot") private String contextRoot; @JsonProperty("applicationPath") private String applicationPath; @JsonProperty("description") private String description; /** * Creates a new instance of <code>InstanceMetaDataTest</code>. * */ private InstanceMetaData() { // // Is private, is used only from intern. } public static IPort hostAdress(final String hostAddress) { return new InstanceMetaData.Builder(hostAddress); } public interface IPort { IServiceName port(int port); } public interface IServiceName { IContextRoot serviceName(String serviceName); } public interface IContextRoot { IApplicationPath contextRoot(String contextRoot); } public interface IApplicationPath { IBuild applicationPath(String applicationPath); } public interface IBuild { IBuild description(String description); InstanceMetaData build(); } private static class Builder implements IPort, IServiceName, IContextRoot, IApplicationPath, IBuild { private final InstanceMetaData instance = new InstanceMetaData(); public Builder(final String hostAdress) { this.instance.hostAdress = hostAdress; } @Override public IServiceName port(final int port) { this.instance.port = port; return this; } @Override public IContextRoot serviceName(final String serviceName) { this.instance.serviceName = serviceName; return this; } @Override public IApplicationPath contextRoot(final String contextRoot) { this.instance.contextRoot = contextRoot; return this; } @Override public IBuild applicationPath(final String applicationPath) { this.instance.applicationPath = applicationPath; return this; } @Override public IBuild description(final String description) { this.instance.description = description; return this; } @Override public InstanceMetaData build() { return this.instance; } } public String getDescription() { return this.description; } public String getHostAdress() { return this.hostAdress; } public String getServiceName() { return this.serviceName; } public int getPort() { return this.port; } public String getContextRoot() { return this.contextRoot; } public String getApplicationPath() { return this.applicationPath; } @Override public boolean equals(final Object o) { if (this == o) { return true; } if (o == null || this.getClass() != o.getClass()) { return false; } final InstanceMetaData that = (InstanceMetaData)o; if (this.port != that.port) { return false; } if (this.hostAdress != null ? !this.hostAdress.equals(that.hostAdress) : that.hostAdress != null) { return false; } if (this.serviceName != null ? !this.serviceName.equals(that.serviceName) : that.serviceName != null) { return false; } if (this.contextRoot != null ? !this.contextRoot.equals(that.contextRoot) : that.contextRoot != null) { return false; } return !(this.applicationPath != null ? !this.applicationPath.equals(that.applicationPath) : that.applicationPath != null); } @Override public int hashCode() { int result = this.hostAdress != null ? this.hostAdress.hashCode() : 0; result = 31 * result + this.port; result = 31 * result + (this.serviceName != null ? this.serviceName.hashCode() : 0); result = 31 * result + (this.contextRoot != null ? this.contextRoot.hashCode() : 0); result = 31 * result + (this.applicationPath != null ? this.applicationPath.hashCode() : 0); return result; } @Override public String toString() { return "InstanceMetaData [description=" + this.description + ", hostAdress=" + this.hostAdress + ", port=" + this.port + ", serviceName=" + this.serviceName + ", contextRoot=" + this.contextRoot + ", applicationPath=" + this.applicationPath + "]"; } }
[ "michael_boerner@t-online.de" ]
michael_boerner@t-online.de
d47a659d418185706f1fe9468117a3f5c8f7be50
dbbda910b690e2147617802f49f7312c186f6bd6
/src/java/com/hzih/ssl/jdbc/PageBean.java
c74fb961b08d3cb9db47671085a116323f4e5193
[]
no_license
huanghengmin/bsps
2e03455d6efaa63835744c32c4508272a9e24149
a77b0a0cccb6771d389ff2bd782b0a508f28ded2
refs/heads/master
2021-01-01T03:50:07.832290
2019-02-13T09:29:37
2019-02-13T09:29:37
56,329,144
0
1
null
null
null
null
UTF-8
Java
false
false
2,096
java
package com.hzih.ssl.jdbc; public class PageBean { private static final int DEFAULT_PAGE_SIZE = 20; private int pageSize = DEFAULT_PAGE_SIZE; // 每页的记录数 private int start=0; // 当前页第一条数据在List中的位置,从0开始 private int page=1; //当前页数 private int totalPage=0; //总计有多少页 private int totalCount=0; // 总记录数 //////////////// // 构造函数 public PageBean() { } public PageBean(int page) { this.page=page; } ///////////////// public void setPage(int page) { if(page>0) { start=(page-1)*pageSize; this.page = page; } } public int getPage() { return page; } public int getPageSize() { return pageSize; } public PageBean setPageSize(int pageSize) { this.pageSize = pageSize; return this; } /** * @return the start */ public int getStart() { return start; } // 此位置根据计算得到 protected void setStart() { } /** * @return the totalCount */ public int getTotalCount() { return totalCount; } public void setTotalCount(int totalCount) { this.totalCount=totalCount; totalPage = (int) Math.ceil((totalCount + pageSize - 1) / pageSize); start=(page-1)*pageSize; } // 总页面数根据总数计算得到 protected void setTotalPage() { } public int getTotalPage() { return totalPage; } /////////////// //获取上一页页数 public int getLastPage() { if(hasLastPage()) { return page-1; } return page; } public int getNextPage() { if(hasNextPage()) { return page+1; } return page; } /** * 该页是否有下一页. */ public boolean hasNextPage() { return page < totalPage; } /** * 该页是否有上一页. */ public boolean hasLastPage() { return page > 1; } }
[ "465805947@QQ.com" ]
465805947@QQ.com
a4e081c00880c00ad448bdcc1c09d8e3b16bc53a
2eefd64da528cdb0e6148db4afc4af2d2e59c928
/src/test/java/org/test/web/demo/MyLoginServlet.java
0acef2b9301f0fb19d02d136fac8fabb212c4a35
[ "Apache-2.0" ]
permissive
newsky/sumk
c6f365a411a4cba1f643fba2cd0af4f748dd0dd0
ac0ad83e2f7c445aced49fb894016cac2ee735ac
refs/heads/master
2021-01-21T11:00:43.717217
2017-02-17T03:34:25
2017-02-17T03:34:25
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,202
java
package org.test.web.demo; import javax.servlet.http.HttpServletRequest; import org.yx.bean.Box; import org.yx.db.DB; import org.yx.demo.member.DemoUser; import org.yx.http.Login; import org.yx.http.filter.AbstractSessionFilter; import org.yx.http.filter.LoginObject; import org.yx.util.SeqUtil; @Login public class MyLoginServlet extends AbstractSessionFilter { @Box protected LoginObject login(String token, String user, HttpServletRequest req) { String password = req.getParameter("password"); String validCode = req.getParameter("code"); System.out.println("login的log:" + DB.select().tableClass(DemoUser.class).byPrimaryId(log()).queryOne()); if (!"9999".equals(validCode)) { return LoginObject.error("验证码错误"); } if ("admin".equals(user) && "123456".equals(password)) { this.userSession().setSession(token, "admin"); return LoginObject.success(null); } return LoginObject.error("用户名或密码错误"); } public long log() { long id = SeqUtil.next(); DemoUser user = new DemoUser(); user.setAge(2323443); user.setId(id); user.setName("登陆"); DB.insert(user).execute(); return id; } }
[ "Administrator@youxia" ]
Administrator@youxia
4d39fefd559a4ef966ff679ac9a498edb05dd78e
b66bdee811ed0eaea0b221fea851f59dd41e66ec
/src/android/support/v7/widget/ad.java
457a7249582bbb1ff8d39639d237a51fc911cb11
[]
no_license
reverseengineeringer/com.grubhub.android
3006a82613df5f0183e28c5e599ae5119f99d8da
5f035a4c036c9793483d0f2350aec2997989f0bb
refs/heads/master
2021-01-10T05:08:31.437366
2016-03-19T20:41:23
2016-03-19T20:41:23
54,286,207
0
0
null
null
null
null
UTF-8
Java
false
false
762
java
package android.support.v7.widget; import android.support.v7.a.g; import android.view.View; import android.widget.ImageView; import android.widget.TextView; final class ad { public final TextView a; public final TextView b; public final ImageView c; public final ImageView d; public final ImageView e; public ad(View paramView) { a = ((TextView)paramView.findViewById(16908308)); b = ((TextView)paramView.findViewById(16908309)); c = ((ImageView)paramView.findViewById(16908295)); d = ((ImageView)paramView.findViewById(16908296)); e = ((ImageView)paramView.findViewById(g.edit_query)); } } /* Location: * Qualified Name: android.support.v7.widget.ad * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "reverseengineeringer@hackeradmin.com" ]
reverseengineeringer@hackeradmin.com
bb3688b7f4d36d01a97ea9fa7ce562cc000e693c
553825eb0328a4e2bf5d62ef6d6b224b605433e9
/ignite-binary-object/src/main/java/poc/ignite/domain/Person.java
2cbf69d99cf44f396b011662f5a96673e31ba04c
[]
no_license
ashishb888/ignite-poc
aa8409154e9d813c475f35d5624f2be80172c0a3
77d7e98ed4c5b91ff29b58bf841748a442623037
refs/heads/master
2022-02-07T17:38:11.387157
2020-02-27T09:09:51
2020-02-27T09:09:51
211,049,146
1
0
null
2022-01-21T23:47:38
2019-09-26T09:16:40
Java
UTF-8
Java
false
false
1,472
java
package poc.ignite.domain; import org.apache.ignite.cache.affinity.AffinityKeyMapped; import org.apache.ignite.cache.query.annotations.QuerySqlField; public class Person { @AffinityKeyMapped @QuerySqlField private int id; @QuerySqlField private String t1; @QuerySqlField private String t2; public Person() { super(); } public Person(int id, String t1, String t2) { super(); this.id = id; this.t1 = t1; this.t2 = t2; } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getT1() { return t1; } public void setT1(String t1) { this.t1 = t1; } public String getT2() { return t2; } public void setT2(String t2) { this.t2 = t2; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + id; result = prime * result + ((t1 == null) ? 0 : t1.hashCode()); result = prime * result + ((t2 == null) ? 0 : t2.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Person other = (Person) obj; if (id != other.id) return false; if (t1 == null) { if (other.t1 != null) return false; } else if (!t1.equals(other.t1)) return false; if (t2 == null) { if (other.t2 != null) return false; } else if (!t2.equals(other.t2)) return false; return true; } }
[ "ashish.bhosle008@gmail.com" ]
ashish.bhosle008@gmail.com
385497b283e607dc8f77659dea82f58ac2c842ad
15b260ccada93e20bb696ae19b14ec62e78ed023
/v2/src/main/java/com/alipay/api/domain/ZhimaCreditEpDossierCompanyoverviewQueryModel.java
3d155468c02aa9f134b339e4c48fcd43cabfff6d
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-java-all
df461d00ead2be06d834c37ab1befa110736b5ab
8cd1750da98ce62dbc931ed437f6101684fbb66a
refs/heads/master
2023-08-27T03:59:06.566567
2023-08-22T14:54:57
2023-08-22T14:54:57
132,569,986
470
207
Apache-2.0
2022-12-25T07:37:40
2018-05-08T07:19:22
Java
UTF-8
Java
false
false
991
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 蚂蚁企业信用一分钟知企业 * * @author auto create * @since 1.0, 2023-04-19 15:16:09 */ public class ZhimaCreditEpDossierCompanyoverviewQueryModel extends AlipayObject { private static final long serialVersionUID = 1883193143864268263L; /** * 企业社会统一信用代码或营业执照注册号 */ @ApiField("ep_cert_no") private String epCertNo; /** * 业务场景。不同业务场景,输出结果不同,请联系接口对接人,分配业务场景码。若无特殊要求,默认值:ex1688 */ @ApiField("scene_code") private String sceneCode; public String getEpCertNo() { return this.epCertNo; } public void setEpCertNo(String epCertNo) { this.epCertNo = epCertNo; } public String getSceneCode() { return this.sceneCode; } public void setSceneCode(String sceneCode) { this.sceneCode = sceneCode; } }
[ "auto-publish" ]
auto-publish
15f6e08c7fb31ffc97ec460bed238a2d5bb2fef9
a239c05a76648d88a4b88a612baa3a54d280fbeb
/component/objectstore/nosql/src/test/java/org/apache/isis/objectstore/nosql/db/file/ClientConnectionTest.java
351ce02e4aba6397c844154d7553889bd669083b
[ "Apache-2.0" ]
permissive
luchito76/isis
fef21536aa68a70796878f86e8cba4d7d0fde1ea
a2b1d3da4665a282ee71277c6c384c19262ede4e
refs/heads/master
2020-12-13T19:33:48.392944
2013-08-27T20:21:27
2013-08-27T20:21:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,416
java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.isis.objectstore.nosql.db.file; import static org.hamcrest.Matchers.containsString; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertThat; import static org.junit.Assert.fail; import java.io.ByteArrayOutputStream; import java.io.InputStream; import org.junit.Before; import org.junit.Test; import org.apache.isis.core.commons.lang.IoUtils; import org.apache.isis.core.metamodel.adapter.version.ConcurrencyException; import org.apache.isis.core.runtime.persistence.ObjectNotFoundException; public class ClientConnectionTest { private InputStream input; private ByteArrayOutputStream output; private ClientConnection connection; @Before public void setup() throws Exception { org.apache.log4j.Logger.getRootLogger().setLevel(org.apache.log4j.Level.OFF); input = IoUtils.asUtf8ByteStream("org.domain.Class false true 1025\n{data...}\n\n102334"); output = new ByteArrayOutputStream(); connection = new ClientConnection(input, output); } @Test public void testRequest() throws Exception { connection.request('D', "xxx yyy"); connection.close(); assertEquals("Dxxx yyy\n", output.toString()); } @Test public void testRequestData() throws Exception { connection.requestData("{data...}"); connection.close(); // assertEquals("{data...}\n\n5de98274", output.toString()); } @Test public void testResponseHeaders() throws Exception { connection.getReponseHeader(); assertEquals("org.domain.Class", connection.getResponse()); assertEquals(false, connection.getResponseAsBoolean()); assertEquals(true, connection.getResponseAsBoolean()); assertEquals(1025L, connection.getResponseAsLong()); } @Test public void tooManyResponseHeadersExpected() throws Exception { connection.getReponseHeader(); connection.getResponse(); connection.getResponse(); connection.getResponse(); connection.getResponse(); try { connection.getResponse(); fail(); } catch (final RemotingException e) { assertThat(e.getMessage(), containsString("are only 4")); } } @Test public void testResponseData() throws Exception { connection.getReponseHeader(); final String data = connection.getResponseData(); assertEquals("{data...}\n", data); } @Test public void validateResponseOk() throws Exception { input = IoUtils.asUtf8ByteStream("ok xx xx\n{data...}"); connection = new ClientConnection(input, output); connection.validateRequest(); } @Test(expected = RemotingException.class) public void validateResponseError() throws Exception { input = IoUtils.asUtf8ByteStream("error message about it\n"); connection = new ClientConnection(input, output); connection.validateRequest(); } @Test(expected = ObjectNotFoundException.class) public void validateObjectNotFound() throws Exception { input = IoUtils.asUtf8ByteStream("not-found message about it\n"); connection = new ClientConnection(input, output); connection.validateRequest(); } @Test(expected = ConcurrencyException.class) public void validateConcurrencyException() throws Exception { input = IoUtils.asUtf8ByteStream("concurrency message about it\n"); connection = new ClientConnection(input, output); connection.validateRequest(); } }
[ "danhaywood@apache.org" ]
danhaywood@apache.org
a948df0821af94408885138d66804a7e0691d51d
846a7668ac964632bdb6db639ab381be11c13b77
/android/tools/loganalysis/tests/src/com/android/loganalysis/parser/JavaCrashParserTest.java
a7d06b36d4454bc8dd7366c309874f1f0aae713a
[]
no_license
BPI-SINOVOIP/BPI-A64-Android8
f2900965e96fd6f2a28ced68af668a858b15ebe1
744c72c133b9bf5d2e9efe0ab33e01e6e51d5743
refs/heads/master
2023-05-21T08:02:23.364495
2020-07-15T11:27:51
2020-07-15T11:27:51
143,945,191
2
0
null
null
null
null
UTF-8
Java
false
false
5,899
java
/* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.android.loganalysis.parser; import com.android.loganalysis.item.JavaCrashItem; import com.android.loganalysis.util.ArrayUtil; import junit.framework.TestCase; import java.util.Arrays; import java.util.List; /** * Unit tests for {@link JavaCrashParser}. */ public class JavaCrashParserTest extends TestCase { /** * Test that Java crashes are parsed with no message. */ public void testParse_no_message() { List<String> lines = Arrays.asList( "java.lang.Exception", "\tat class.method1(Class.java:1)", "\tat class.method2(Class.java:2)", "\tat class.method3(Class.java:3)"); JavaCrashItem jc = new JavaCrashParser().parse(lines); assertNotNull(jc); assertEquals("java.lang.Exception", jc.getException()); assertNull(jc.getMessage()); assertEquals(ArrayUtil.join("\n", lines), jc.getStack()); } /** * Test that Java crashes are parsed with a message. */ public void testParse_message() { List<String> lines = Arrays.asList( "java.lang.Exception: This is the message", "\tat class.method1(Class.java:1)", "\tat class.method2(Class.java:2)", "\tat class.method3(Class.java:3)"); JavaCrashItem jc = new JavaCrashParser().parse(lines); assertNotNull(jc); assertEquals("java.lang.Exception", jc.getException()); assertEquals("This is the message", jc.getMessage()); assertEquals(ArrayUtil.join("\n", lines), jc.getStack()); } /** * Test that Java crashes are parsed if the message spans multiple lines. */ public void testParse_multiline_message() { List<String> lines = Arrays.asList( "java.lang.Exception: This message", "is many lines", "long.", "\tat class.method1(Class.java:1)", "\tat class.method2(Class.java:2)", "\tat class.method3(Class.java:3)"); JavaCrashItem jc = new JavaCrashParser().parse(lines); assertNotNull(jc); assertEquals("java.lang.Exception", jc.getException()); assertEquals("This message\nis many lines\nlong.", jc.getMessage()); assertEquals(ArrayUtil.join("\n", lines), jc.getStack()); } /** * Test that caused by sections of Java crashes are parsed, with no message or single or * multiline messages. */ public void testParse_caused_by() { List<String> lines = Arrays.asList( "java.lang.Exception: This is the message", "\tat class.method1(Class.java:1)", "\tat class.method2(Class.java:2)", "\tat class.method3(Class.java:3)", "Caused by: java.lang.Exception", "\tat class.method4(Class.java:4)", "Caused by: java.lang.Exception: This is the caused by message", "\tat class.method5(Class.java:5)", "Caused by: java.lang.Exception: This is a multiline", "caused by message", "\tat class.method6(Class.java:6)"); JavaCrashItem jc = new JavaCrashParser().parse(lines); assertNotNull(jc); assertEquals("java.lang.Exception", jc.getException()); assertEquals("This is the message", jc.getMessage()); assertEquals(ArrayUtil.join("\n", lines), jc.getStack()); } /** * Test that the Java crash is cutoff if an unexpected line is handled. */ public void testParse_cutoff() { List<String> lines = Arrays.asList( "java.lang.Exception: This is the message", "\tat class.method1(Class.java:1)", "\tat class.method2(Class.java:2)", "\tat class.method3(Class.java:3)", "Invalid line", "java.lang.Exception: This is the message"); JavaCrashItem jc = new JavaCrashParser().parse(lines); assertNotNull(jc); assertEquals("java.lang.Exception", jc.getException()); assertEquals("This is the message", jc.getMessage()); assertEquals(ArrayUtil.join("\n", lines.subList(0, lines.size()-2)), jc.getStack()); } /** * Tests that only parts between the markers are parsed. */ public void testParse_begin_end_markers() { List<String> lines = Arrays.asList( "error: this message has begin and end", "----- begin exception -----", "java.lang.Exception: This message", "is many lines", "long.", "\tat class.method1(Class.java:1)", "\tat class.method2(Class.java:2)", "\tat class.method3(Class.java:3)", "----- end exception -----"); JavaCrashItem jc = new JavaCrashParser().parse(lines); assertNotNull(jc); assertEquals("java.lang.Exception", jc.getException()); assertEquals("This message\nis many lines\nlong.", jc.getMessage()); assertNotNull(jc.getStack()); assertFalse(jc.getStack().contains("begin exception")); assertFalse(jc.getStack().contains("end exception")); } }
[ "mingxin.android@gmail.com" ]
mingxin.android@gmail.com
9255ee26c8dda2d3cbcefac6743f919a90e4d091
fba8af31d5d36d8a6cf0c341faed98b6cd5ec0cb
/src/main/java/com/alipay/api/response/ZhimaCreditScoreGetResponse.java
65698d86ce76b248f63ad5faff8c2a2c0f3566c1
[ "Apache-2.0" ]
permissive
planesweep/alipay-sdk-java-all
b60ea1437e3377582bd08c61f942018891ce7762
637edbcc5ed137c2b55064521f24b675c3080e37
refs/heads/master
2020-12-12T09:23:19.133661
2020-01-09T11:04:31
2020-01-09T11:04:31
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,003
java
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: zhima.credit.score.get response. * * @author auto create * @since 1.0, 2019-01-07 20:51:15 */ public class ZhimaCreditScoreGetResponse extends AlipayResponse { private static final long serialVersionUID = 5724983137136482833L; /** * 芝麻信用对于每一次请求返回的业务号。后续可以通过此业务号进行对账 */ @ApiField("biz_no") private String bizNo; /** * 用户的芝麻分。分值范围[350,950]。如果用户数据不足,无法评分时,返回字符串"N/A"。 */ @ApiField("zm_score") private String zmScore; public void setBizNo(String bizNo) { this.bizNo = bizNo; } public String getBizNo( ) { return this.bizNo; } public void setZmScore(String zmScore) { this.zmScore = zmScore; } public String getZmScore( ) { return this.zmScore; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
57854ffdc3b5923ca9d251b03b3159bcc96fff95
d261299e7eb22c7cbb4a325204e55bdd9dc81c89
/core/src/main/java/one/contentbox/boxd/protocol/exceptions/ContractCallException.java
bd764a63aa6c5d852ffeb73cd4ef11ce9b2a721a
[]
no_license
wangjunbao2018/boxd-sdk-java-v2
243ebd6941c200c739a100b93b3b208ae2641dba
708f95e2e5d75f6aaf739863ea8b2946a0d5a003
refs/heads/master
2020-05-31T14:55:09.854762
2019-06-05T08:28:43
2019-06-05T08:28:43
190,342,062
0
0
null
null
null
null
UTF-8
Java
false
false
381
java
package one.contentbox.boxd.protocol.exceptions; /** * Exception resulting from issues calling methods on Smart Contracts. */ public class ContractCallException extends RuntimeException { public ContractCallException(String message) { super(message); } public ContractCallException(String message, Throwable cause) { super(message, cause); } }
[ "junbao.wang@castbox.fm" ]
junbao.wang@castbox.fm
526546475fc62c5aa4967cd4aa0c77dbc34f8bd4
32cd70512c7a661aeefee440586339211fbc9efd
/aws-java-sdk-api-gateway/src/main/java/com/amazonaws/services/apigateway/model/transform/GetModelsResultJsonUnmarshaller.java
d2cffcf2a4139d62fa834f987f24e466fac855f1
[ "Apache-2.0" ]
permissive
twigkit/aws-sdk-java
7409d949ce0b0fbd061e787a5b39a93db7247d3d
0b8dd8cf5e52ad7ae57acd2ce7a584fd83a998be
refs/heads/master
2020-04-03T16:40:16.625651
2018-05-04T12:05:14
2018-05-04T12:05:14
60,255,938
0
1
Apache-2.0
2018-05-04T12:48:26
2016-06-02T10:40:53
Java
UTF-8
Java
false
false
3,146
java
/* * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights * Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.apigateway.model.transform; import java.util.Map; import java.util.Map.Entry; import java.math.*; import java.nio.ByteBuffer; import com.amazonaws.services.apigateway.model.*; import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; import com.amazonaws.transform.*; import com.fasterxml.jackson.core.JsonToken; import static com.fasterxml.jackson.core.JsonToken.*; /** * GetModelsResult JSON Unmarshaller */ public class GetModelsResultJsonUnmarshaller implements Unmarshaller<GetModelsResult, JsonUnmarshallerContext> { public GetModelsResult unmarshall(JsonUnmarshallerContext context) throws Exception { GetModelsResult getModelsResult = new GetModelsResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) return null; while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("position", targetDepth)) { context.nextToken(); getModelsResult.setPosition(context.getUnmarshaller( String.class).unmarshall(context)); } if (context.testExpression("item", targetDepth)) { context.nextToken(); getModelsResult.setItems(new ListUnmarshaller<Model>( ModelJsonUnmarshaller.getInstance()) .unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals( currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return getModelsResult; } private static GetModelsResultJsonUnmarshaller instance; public static GetModelsResultJsonUnmarshaller getInstance() { if (instance == null) instance = new GetModelsResultJsonUnmarshaller(); return instance; } }
[ "aws@amazon.com" ]
aws@amazon.com
1ed9dd327fcd4fdfe7eb2a8305ddca5c321ac1b0
f0d0631e221382c8a7d48c8bed6acc4efe0bfd2d
/JavaSource/org/unitime/timetable/model/base/BaseStaff.java
c0a7c2603dbef3e676bb0b1b8355b01d62a0cbbf
[ "CC-BY-3.0", "EPL-1.0", "CC0-1.0", "CDDL-1.0", "MIT", "LGPL-2.1-or-later", "LGPL-3.0-only", "BSD-3-Clause", "LGPL-2.1-only", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-freemarker", "Apache-2.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-unknown-license-reference" ]
permissive
tomas-muller/unitime
8c7097003b955053f32fe5891f1d29b554c4dd45
de307a63552128b75ae9a83d7e1d44c71b3dc266
refs/heads/master
2021-12-29T04:57:46.000745
2021-12-09T19:02:43
2021-12-09T19:02:43
30,605,965
4
0
Apache-2.0
2021-02-17T15:14:49
2015-02-10T18:01:29
Java
UTF-8
Java
false
false
4,269
java
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * * The Apereo Foundation 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.unitime.timetable.model.base; import java.io.Serializable; import org.unitime.timetable.model.PositionType; import org.unitime.timetable.model.Staff; /** * Do not change this class. It has been automatically generated using ant create-model. * @see org.unitime.commons.ant.CreateBaseModelFromXml */ public abstract class BaseStaff implements Serializable { private static final long serialVersionUID = 1L; private Long iUniqueId; private String iExternalUniqueId; private String iFirstName; private String iMiddleName; private String iLastName; private String iDept; private String iEmail; private String iAcademicTitle; private String iCampus; private PositionType iPositionType; public static String PROP_UNIQUEID = "uniqueId"; public static String PROP_EXTERNAL_UID = "externalUniqueId"; public static String PROP_FNAME = "firstName"; public static String PROP_MNAME = "middleName"; public static String PROP_LNAME = "lastName"; public static String PROP_DEPT = "dept"; public static String PROP_EMAIL = "email"; public static String PROP_ACAD_TITLE = "academicTitle"; public static String PROP_CAMPUS = "campus"; public BaseStaff() { initialize(); } public BaseStaff(Long uniqueId) { setUniqueId(uniqueId); initialize(); } protected void initialize() {} public Long getUniqueId() { return iUniqueId; } public void setUniqueId(Long uniqueId) { iUniqueId = uniqueId; } public String getExternalUniqueId() { return iExternalUniqueId; } public void setExternalUniqueId(String externalUniqueId) { iExternalUniqueId = externalUniqueId; } public String getFirstName() { return iFirstName; } public void setFirstName(String firstName) { iFirstName = firstName; } public String getMiddleName() { return iMiddleName; } public void setMiddleName(String middleName) { iMiddleName = middleName; } public String getLastName() { return iLastName; } public void setLastName(String lastName) { iLastName = lastName; } public String getDept() { return iDept; } public void setDept(String dept) { iDept = dept; } public String getEmail() { return iEmail; } public void setEmail(String email) { iEmail = email; } public String getAcademicTitle() { return iAcademicTitle; } public void setAcademicTitle(String academicTitle) { iAcademicTitle = academicTitle; } public String getCampus() { return iCampus; } public void setCampus(String campus) { iCampus = campus; } public PositionType getPositionType() { return iPositionType; } public void setPositionType(PositionType positionType) { iPositionType = positionType; } public boolean equals(Object o) { if (o == null || !(o instanceof Staff)) return false; if (getUniqueId() == null || ((Staff)o).getUniqueId() == null) return false; return getUniqueId().equals(((Staff)o).getUniqueId()); } public int hashCode() { if (getUniqueId() == null) return super.hashCode(); return getUniqueId().hashCode(); } public String toString() { return "Staff["+getUniqueId()+"]"; } public String toDebugString() { return "Staff[" + "\n AcademicTitle: " + getAcademicTitle() + "\n Campus: " + getCampus() + "\n Dept: " + getDept() + "\n Email: " + getEmail() + "\n ExternalUniqueId: " + getExternalUniqueId() + "\n FirstName: " + getFirstName() + "\n LastName: " + getLastName() + "\n MiddleName: " + getMiddleName() + "\n PositionType: " + getPositionType() + "\n UniqueId: " + getUniqueId() + "]"; } }
[ "muller@unitime.org" ]
muller@unitime.org
6fa278f46a33688a6b0c4e4a82bbb04fa7701fca
d132a32f07cdc583c021e56e61a4befff6228900
/src/main/java/net/minecraft/client/AnvilConverterException.java
d546ae5c418a9f153257b98c27194b94adfdd7f5
[]
no_license
TechCatOther/um_clean_forge
27d80cb6e12c5ed38ab7da33a9dd9e54af96032d
b4ddabd1ed7830e75df9267e7255c9e79d1324de
refs/heads/master
2020-03-22T03:14:54.717880
2018-07-02T09:28:10
2018-07-02T09:28:10
139,421,233
0
0
null
null
null
null
UTF-8
Java
false
false
356
java
package net.minecraft.client; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; @SideOnly(Side.CLIENT) public class AnvilConverterException extends Exception { private static final String __OBFID = "CL_00000599"; public AnvilConverterException(String exceptionMessage) { super(exceptionMessage); } }
[ "alone.inbox@gmail.com" ]
alone.inbox@gmail.com
f8aa73ec15d1ff78b5a8c4966cd8c23e81f505ba
5a13f24c35c34082492ef851fb91d404827b7ddb
/src/main/java/com/alipay/api/domain/ArrangementInvolvedPartyQuerier.java
44dcc40c33029f3962e8b06a169b13fdc50162ae
[]
no_license
featherfly/alipay-sdk
69b2f2fc89a09996004b36373bd5512664521bfd
ba2355a05de358dc15855ffaab8e19acfa24a93b
refs/heads/master
2021-01-22T11:03:20.304528
2017-09-04T09:39:42
2017-09-04T09:39:42
102,344,436
1
0
null
null
null
null
UTF-8
Java
false
false
1,140
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 合约参与者选择器,根据参与者查询合约编号 * * @author auto create * @since 1.0, 2016-10-26 17:43:39 */ public class ArrangementInvolvedPartyQuerier extends AlipayObject { private static final long serialVersionUID = 7689142315687131386L; /** * 参与者id */ @ApiField("ip_id") private String ipId; /** * 用户uid/参与者角色id */ @ApiField("ip_role_id") private String ipRoleId; /** * 参与者角色类型,为空时表示所有类型都查询. 可选值:01 甲方 11 乙方 21丙方 */ @ApiField("ip_type") private String ipType; public String getIpId() { return this.ipId; } public void setIpId(String ipId) { this.ipId = ipId; } public String getIpRoleId() { return this.ipRoleId; } public void setIpRoleId(String ipRoleId) { this.ipRoleId = ipRoleId; } public String getIpType() { return this.ipType; } public void setIpType(String ipType) { this.ipType = ipType; } }
[ "zhongj@cdmhzx.com" ]
zhongj@cdmhzx.com
53e77b1e83a4a3434a76b09d5e601ed46cd4c702
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Chart/19/org/jfree/chart/plot/dial/DialBackground_getGradientPaintTransformer_139.java
05896ae68a917f9d9bc8b72ef289b816de876125
[]
no_license
hvdthong/NetML
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
9bb103da21327912e5a29cbf9be9ff4d058731a5
refs/heads/master
2021-06-30T15:03:52.618255
2020-10-07T01:58:48
2020-10-07T01:58:48
150,383,588
1
1
null
2018-09-26T07:08:45
2018-09-26T07:08:44
null
UTF-8
Java
false
false
775
java
org jfree chart plot dial regular dial layer draw background dial dial background dialbackground abstract dial layer abstractdiallay dial layer diallay return transform adjust coordin code gradient paint gradientpaint code instanc background paint transform code code set gradient paint transform setgradientpainttransform gradient paint transform gradientpainttransform gradient paint transform gradientpainttransform gradient paint transform getgradientpainttransform gradient paint transform gradientpainttransform
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
e6b9ee258f0a5f0979e93f85820f92280fed4a90
33752a18b977150f78cad1e62dc96eeefca56f74
/src/com/sysware/customize/hd/investment/investSupport/buyerInfo/BuyerRemote.java
49a7a92b0aabd555745ca62be65917bd202722b5
[]
no_license
algz/cggk
14bba0a9d5a5dca325254415a4deb294a65aaa40
06982b014ac25f024f494c0d120238e6afe8dc23
refs/heads/master
2021-01-11T00:03:55.383238
2015-03-31T06:12:50
2015-03-31T06:12:50
32,655,693
0
0
null
null
null
null
UTF-8
Java
false
false
4,211
java
package com.sysware.customize.hd.investment.investSupport.buyerInfo; import java.util.ArrayList; import java.util.Date; import java.util.Iterator; import java.util.List; import org.jboss.seam.annotations.In; import org.jboss.seam.annotations.Name; import org.jboss.seam.annotations.remoting.WebRemote; import com.luck.itumserv.common.GridData; import com.sysware.customize.hd.investment.deviceProject.util.UtilDAOImp; import com.sysware.customize.hd.investment.investSupport.vo.BuyerVo; import com.sysware.customize.hd.investment.investSupport.vo.PriceAndQualityVo; /** * @ClassName: BuyerRemote * @Description: 采购员信息模块 UI 类 * * @author LIT * @date Nov 24, 2011 9:56:03 AM * */ @Name("buyerRemote") public class BuyerRemote { @In(create = true, value = "buyerServiceImpl") private BuyerService _service; @WebRemote public GridData<BuyerVo> getInfo(BuyerVo oo) { GridData<BuyerVo> g = new GridData<BuyerVo>(); List<Object> list = _service.getInfo(oo); Iterator<Object> it = list.iterator(); List<BuyerVo> voList = new ArrayList<BuyerVo>(); while (it.hasNext()) { Object[] obj = (Object[]) it.next(); BuyerVo vo = new BuyerVo(); vo.setId(obj[0]==null?"":String.valueOf(obj[0])); vo.setPurchase_code(obj[1]==null?"":String.valueOf(obj[1])); vo.setPurchase_name(obj[2]==null?"":String.valueOf(obj[2])); vo.setPurchase_sex(obj[3]==null?"":String.valueOf(obj[3])); vo.setAge(Long.valueOf(obj[4]==null?"0":String.valueOf(obj[4]))); vo.setTitle(obj[5]==null?"":String.valueOf(obj[5])); vo.setPost(obj[6]==null?"":String.valueOf(obj[6])); vo.setDept(obj[7]==null?"":String.valueOf(obj[7])); vo.setTerm_life(Long.valueOf(obj[8]==null?"0":String.valueOf(obj[8]))); vo.setYn_life(obj[9]==null?'0':String.valueOf(obj[9]).charAt(0)); voList.add(vo); } g.setResults(voList); g.setTotalProperty(oo.getTotalcount());//(_service.getInfoCount(oo)); return g; } @WebRemote public GridData<BuyerVo> getPriceInfo(BuyerVo oo) { GridData<BuyerVo> g = new GridData<BuyerVo>(); List<Object> list = _service.getPriceInfo(oo); Iterator<Object> it = list.iterator(); List<BuyerVo> voList = new ArrayList<BuyerVo>(); while (it.hasNext()) { Object[] obj = (Object[]) it.next(); BuyerVo vo = new BuyerVo(); vo.setId(String.valueOf(obj[0])); vo.setPurchase_code(String.valueOf(obj[1])); vo.setPurchase_name(String.valueOf(obj[2])); vo.setPurchase_sex(String.valueOf(obj[3])); vo.setAge(Long.valueOf(String.valueOf(obj[4]))); vo.setTitle(String.valueOf(obj[5])); vo.setPost(String.valueOf(obj[6])); vo.setDept(String.valueOf(obj[7])); vo.setTerm_life(Long.valueOf(String.valueOf(obj[8]))); vo.setYn_life(String.valueOf(obj[9]).charAt(0)); voList.add(vo); } g.setResults(voList); g.setTotalProperty(_service.getInfoCount(oo)); return g; } @WebRemote public GridData<PriceAndQualityVo> getPriceAndQualityInfo(BuyerVo oo) { GridData<PriceAndQualityVo> g = new GridData<PriceAndQualityVo>(); List<Object> list = _service.getPriceAndQualityInfo(oo); Iterator<Object> it = list.iterator(); List<PriceAndQualityVo> voList = new ArrayList<PriceAndQualityVo>(); while (it.hasNext()) { Object[] obj = (Object[]) it.next(); PriceAndQualityVo vo = new PriceAndQualityVo(); vo.setContractCode(String.valueOf(obj[0])); vo.setContractName(String.valueOf(obj[1])); vo.setPartCode(String.valueOf(obj[2])); vo.setPartName(String.valueOf(obj[3])); vo.setType(String.valueOf(obj[4])); vo.setScale(String.valueOf(obj[5])); vo.setLoton(String.valueOf(obj[6])); vo.setNum(String.valueOf(obj[7])); vo.setPrice(String.valueOf(obj[8])); vo.setArrivalDate(UtilDAOImp.dateToStr((Date)obj[9], "yyyy-MM-dd")); voList.add(vo); } g.setResults(voList); g.setTotalProperty(oo.getTotalcount());//(_service.getPriceAndQualityInfoCount(oo)); return g; } @WebRemote public String saveBuyerInfo(BuyerVo vo){ String msg=this._service.saveBuyerInfo(vo); return "{success:"+(msg.equals("")?true:false)+",msg:'"+msg+"'}"; } }
[ "algz1982@gmail.com" ]
algz1982@gmail.com
a51cf29df96c0196a3e0d785c388fc9ee8b8a06f
951a2cebfb3b742a0b9da0dee787f4610505292c
/toq/Misc/JavaSrc/org/apache/log4j/lf5/viewer/categoryexplorer/CategoryAbstractCellEditor.java
55a741d30984ad626c1f17f36079d437d61a1f94
[]
no_license
marciallus/mytoqmanager
eca30683508878b712e9c1c6642f39f34c2e257b
65fe1d54e8593900262d5b263d75feb646c015e6
refs/heads/master
2020-05-17T01:03:44.121469
2014-12-10T07:22:14
2014-12-10T07:22:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,224
java
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) fieldsfirst noctor space package org.apache.log4j.lf5.viewer.categoryexplorer; import java.awt.Component; import java.awt.event.MouseEvent; import java.util.EventObject; import javax.swing.JTable; import javax.swing.JTree; import javax.swing.event.*; import javax.swing.table.TableCellEditor; import javax.swing.tree.TreeCellEditor; public class CategoryAbstractCellEditor implements TableCellEditor, TreeCellEditor { static Class class$javax$swing$event$CellEditorListener; protected ChangeEvent _changeEvent; protected int _clickCountToStart; protected EventListenerList _listenerList; protected Object _value; public CategoryAbstractCellEditor() { _listenerList = new EventListenerList(); _changeEvent = null; _clickCountToStart = 1; } static Class _mthclass$(String s) { Class class1; try { class1 = Class.forName(s); } catch (ClassNotFoundException classnotfoundexception) { throw (new NoClassDefFoundError()).initCause(classnotfoundexception); } return class1; } public void addCellEditorListener(CellEditorListener celleditorlistener) { EventListenerList eventlistenerlist = _listenerList; Class class1; if (class$javax$swing$event$CellEditorListener == null) { class1 = _mthclass$("javax.swing.event.CellEditorListener"); class$javax$swing$event$CellEditorListener = class1; } else { class1 = class$javax$swing$event$CellEditorListener; } eventlistenerlist.add(class1, celleditorlistener); } public void cancelCellEditing() { fireEditingCanceled(); } protected void fireEditingCanceled() { Object aobj[] = _listenerList.getListenerList(); for (int i = -2 + aobj.length; i >= 0; i -= 2) { Object obj = aobj[i]; Class class1; if (class$javax$swing$event$CellEditorListener == null) { class1 = _mthclass$("javax.swing.event.CellEditorListener"); class$javax$swing$event$CellEditorListener = class1; } else { class1 = class$javax$swing$event$CellEditorListener; } if (obj != class1) continue; if (_changeEvent == null) _changeEvent = new ChangeEvent(this); ((CellEditorListener)aobj[i + 1]).editingCanceled(_changeEvent); } } protected void fireEditingStopped() { Object aobj[] = _listenerList.getListenerList(); for (int i = -2 + aobj.length; i >= 0; i -= 2) { Object obj = aobj[i]; Class class1; if (class$javax$swing$event$CellEditorListener == null) { class1 = _mthclass$("javax.swing.event.CellEditorListener"); class$javax$swing$event$CellEditorListener = class1; } else { class1 = class$javax$swing$event$CellEditorListener; } if (obj != class1) continue; if (_changeEvent == null) _changeEvent = new ChangeEvent(this); ((CellEditorListener)aobj[i + 1]).editingStopped(_changeEvent); } } public Object getCellEditorValue() { return _value; } public int getClickCountToStart() { return _clickCountToStart; } public Component getTableCellEditorComponent(JTable jtable, Object obj, boolean flag, int i, int j) { return null; } public Component getTreeCellEditorComponent(JTree jtree, Object obj, boolean flag, boolean flag1, boolean flag2, int i) { return null; } public boolean isCellEditable(EventObject eventobject) { return !(eventobject instanceof MouseEvent) || ((MouseEvent)eventobject).getClickCount() >= _clickCountToStart; } public void removeCellEditorListener(CellEditorListener celleditorlistener) { EventListenerList eventlistenerlist = _listenerList; Class class1; if (class$javax$swing$event$CellEditorListener == null) { class1 = _mthclass$("javax.swing.event.CellEditorListener"); class$javax$swing$event$CellEditorListener = class1; } else { class1 = class$javax$swing$event$CellEditorListener; } eventlistenerlist.remove(class1, celleditorlistener); } public void setCellEditorValue(Object obj) { _value = obj; } public void setClickCountToStart(int i) { _clickCountToStart = i; } public boolean shouldSelectCell(EventObject eventobject) { return isCellEditable(eventobject) && (eventobject == null || ((MouseEvent)eventobject).getClickCount() >= _clickCountToStart); } public boolean stopCellEditing() { fireEditingStopped(); return true; } }
[ "marc.lanouiller@gmail.com" ]
marc.lanouiller@gmail.com
9e71d05eb799446af604e82267323504beeb2e83
4011644d90bfc330c7aa63d70b4bb249fbad17b1
/src/main/java/by/andervyd/example_tut/MyController.java
1cca691ff465131e0ecd0a404aafcc6ba4794fbe
[]
no_license
andervyd/Spring_MVC
c439db07305d76f054113ecddbee2e1081b7d976
d1a212ac8d0c8b3ae09fe44f723147b6973f4647
refs/heads/master
2023-02-15T17:41:08.298046
2021-01-12T11:58:59
2021-01-12T11:58:59
323,982,096
0
0
null
null
null
null
UTF-8
Java
false
false
301
java
package by.andervyd.example_tut; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; //@Controller public class MyController { /*@RequestMapping("/") public String showFirstView() { return "example/first-view"; }*/ }
[ "andervyd@gmail.com" ]
andervyd@gmail.com
c116054f40108b11fa6d9c2e1f638133a7e835b8
bdada8dd2fee5ed621fb4663adf2ae91edf7f390
/xc-gl/src/main/java/com/xzsoft/xc/gl/util/JedisUtil.java
74532ca8ebb9cb328141e705b533b12df37cc842
[]
no_license
yl23250/xc
abaf7dbbdf1ec3b32abe16a1aeca19ee29568387
47877dc79e8ea8947f526bb21a1242cae5d70dd8
refs/heads/master
2020-09-16T20:49:54.040706
2018-06-23T13:25:56
2018-06-23T13:25:56
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,528
java
package com.xzsoft.xc.gl.util; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisPool; import redis.clients.jedis.JedisPoolConfig; public final class JedisUtil { //Redis服务器IP private static String ADDR = "localhost"; //Redis的端口号 private static int PORT = 6379; //访问密码 private static String AUTH = "txl880913"; // 几号库 private static int DB = 0 ; //可用连接实例的最大数目,默认值为8; //如果赋值为-1,则表示不限制;如果pool已经分配了maxActive个jedis实例,则此时pool的状态为exhausted(耗尽)。 private static int MAX_ACTIVE = 1024; //控制一个pool最多有多少个状态为idle(空闲的)的jedis实例,默认值也是8。 private static int MAX_IDLE = 200; //等待可用连接的最大时间,单位毫秒,默认值为-1,表示永不超时。如果超过等待时间,则直接抛出JedisConnectionException; private static int MAX_WAIT = 10000; private static int TIMEOUT = 10000; //在borrow一个jedis实例时,是否提前进行validate操作;如果为true,则得到的jedis实例均是可用的; private static boolean TEST_ON_BORROW = true; private static JedisPool jedisPool = null; /** * 初始化Redis连接池 */ static { try { JedisPoolConfig config = new JedisPoolConfig(); config.setMaxTotal(MAX_ACTIVE); config.setMaxIdle(MAX_IDLE); config.setMaxWaitMillis(MAX_WAIT); config.setTestOnBorrow(TEST_ON_BORROW); jedisPool = new JedisPool(config, ADDR, PORT, TIMEOUT, AUTH, DB); } catch (Exception e) { e.printStackTrace(); } } /** * 获取Jedis实例 * @return */ public synchronized static Jedis getJedis() { try { if (jedisPool != null) { Jedis resource = jedisPool.getResource(); return resource; } else { return null; } } catch (Exception e) { e.printStackTrace(); return null; } } /** * 释放jedis资源 * @param jedis */ public static void returnResource(final Jedis jedis) { if (jedis != null) { jedisPool.returnResource(jedis); } } }
[ "381666890@qq.com" ]
381666890@qq.com
28dd319c19ca79ac1de682f2b604dbdd0ddddb70
feeb82a3ebf16fa99012316eec3df33ab2e738d9
/languages/TailRecursion/source_gen/jetbrains/mps/baseLanguage/tailRecursion/typesystem/TypesystemDescriptor.java
9e3a65ad9e0ac0374382028354ecc339acbee799
[]
no_license
vaclav/BaseLanguageExtensions
c3217fe2dd1096f5fa6bb53e4964675ec3a2bde2
30b58b44418b177655777a64efaf9d2ca58f529d
refs/heads/master
2023-04-07T17:12:49.270670
2023-04-05T12:28:04
2023-04-05T12:28:04
5,858,626
4
2
null
2018-08-31T10:39:21
2012-09-18T15:43:43
Java
UTF-8
Java
false
false
672
java
package jetbrains.mps.baseLanguage.tailRecursion.typesystem; /*Generated by MPS */ import jetbrains.mps.lang.typesystem.runtime.BaseHelginsDescriptor; import jetbrains.mps.lang.typesystem.runtime.NonTypesystemRule_Runtime; public class TypesystemDescriptor extends BaseHelginsDescriptor { public TypesystemDescriptor() { { NonTypesystemRule_Runtime nonTypesystemRule = new TailPositionInClosureLiteral_NonTypesystemRule(); this.myNonTypesystemRules.add(nonTypesystemRule); } { NonTypesystemRule_Runtime nonTypesystemRule = new TailPositionInMethod_NonTypesystemRule(); this.myNonTypesystemRules.add(nonTypesystemRule); } } }
[ "vaclav.pech@gmail.com" ]
vaclav.pech@gmail.com
b650895f799cbf8cd47b18c59f4097da1d7fd31f
6790d5e2fd4b4d9fdecb3a2b033026a676f5d5f0
/BopZZ/src/com/bop/zz/photo/edit/RevolveActivity.java
dde206756620a31a44e01ee13c639e7be2b7499b
[ "Apache-2.0" ]
permissive
xmutzlq/ZZ
bcfd28dcd83aed27773828e2c2d6d73eeac6d1ff
5ac74f815790884686cdc750748187a2288bd0eb
refs/heads/master
2021-09-10T05:51:53.621709
2018-03-21T09:18:28
2018-03-21T09:18:28
126,114,416
2
0
null
null
null
null
UTF-8
Java
false
false
2,856
java
package com.bop.zz.photo.edit; import com.bop.zz.R; import com.kdroid.photoedit.utils.FileUtils; import com.kdroid.photoedit.utils.PhotoUtils; import android.app.Activity; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.ImageButton; import android.widget.ImageView; /** * 翻转 */ public class RevolveActivity extends Activity implements View.OnClickListener { private ImageView pictureShow; private Button revoleTest, unTest, fanTestUpDown, fanTestLeftRight; private String camera_path; private Bitmap srcBitmap, bit; private ImageButton cancelBtn, okBtn; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.layout_revolve); initView(); Intent intent = getIntent(); camera_path = intent.getStringExtra("camera_path"); srcBitmap = BitmapFactory.decodeFile(camera_path); bit = srcBitmap; pictureShow.setImageBitmap(srcBitmap); } private void initView() { cancelBtn = (ImageButton) findViewById(R.id.btn_cancel); cancelBtn.setOnClickListener(this); okBtn = (ImageButton) findViewById(R.id.btn_ok); okBtn.setOnClickListener(this); pictureShow = (ImageView) findViewById(R.id.picture); revoleTest = (Button) findViewById(R.id.revoleTest); revoleTest.setOnClickListener(this); unTest = (Button) findViewById(R.id.unTest); unTest.setOnClickListener(this); fanTestUpDown = (Button) findViewById(R.id.fanTestUpDown); fanTestUpDown.setOnClickListener(this); fanTestLeftRight = (Button) findViewById(R.id.fanTestLeftRight); fanTestLeftRight.setOnClickListener(this); } @Override public void onClick(View view) { switch (view.getId()) { case R.id.btn_cancel: Intent cancelData = new Intent(); setResult(RESULT_CANCELED, cancelData); recycle(); this.finish(); break; case R.id.btn_ok: FileUtils.writeImage(bit, camera_path, 100); Intent intent = new Intent(); intent.putExtra("camera_path", camera_path); setResult(Activity.RESULT_OK, intent); recycle(); this.finish(); break; case R.id.revoleTest: bit = PhotoUtils.rotateImage(bit, 90); pictureShow.setImageBitmap(bit); break; case R.id.fanTestLeftRight: bit = PhotoUtils.reverseImage(bit, -1, 1); pictureShow.setImageBitmap(bit); break; case R.id.fanTestUpDown: bit = PhotoUtils.reverseImage(bit, 1, -1); pictureShow.setImageBitmap(bit); break; case R.id.unTest: bit = srcBitmap; pictureShow.setImageBitmap(bit); break; default: break; } } private void recycle() { if (srcBitmap != null) { srcBitmap.recycle(); srcBitmap = null; } if (bit != null) { bit.recycle(); bit = null; } } }
[ "380233376@qq.com" ]
380233376@qq.com
3c09c714ce04a6a1ff9b3cd5cee4b13d2254ce05
38c4451ab626dcdc101a11b18e248d33fd8a52e0
/identifiers/apache-cassandra-1.2.0/test/unit/org/apache/cassandra/db/RecoveryManagerTruncateTest.java
9a8183a7d76abf50143eaec79b7a699e4d34fcb6
[]
no_license
habeascorpus/habeascorpus-data
47da7c08d0f357938c502bae030d5fb8f44f5e01
536d55729f3110aee058ad009bcba3e063b39450
refs/heads/master
2020-06-04T10:17:20.102451
2013-02-19T15:19:21
2013-02-19T15:19:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,690
java
org PACKAGE_IDENTIFIER false apache PACKAGE_IDENTIFIER false cassandra PACKAGE_IDENTIFIER false db PACKAGE_IDENTIFIER false org PACKAGE_IDENTIFIER false apache PACKAGE_IDENTIFIER false cassandra PACKAGE_IDENTIFIER false Util TYPE_IDENTIFIER false column METHOD_IDENTIFIER false org PACKAGE_IDENTIFIER false junit UNKNOWN_IDENTIFIER false Assert UNKNOWN_IDENTIFIER false assertNotNull UNKNOWN_IDENTIFIER false org PACKAGE_IDENTIFIER false junit UNKNOWN_IDENTIFIER false Assert UNKNOWN_IDENTIFIER false assertNull UNKNOWN_IDENTIFIER false java PACKAGE_IDENTIFIER false io PACKAGE_IDENTIFIER false IOException TYPE_IDENTIFIER false java PACKAGE_IDENTIFIER false util PACKAGE_IDENTIFIER false concurrent PACKAGE_IDENTIFIER false ExecutionException TYPE_IDENTIFIER false org PACKAGE_IDENTIFIER false apache PACKAGE_IDENTIFIER false cassandra PACKAGE_IDENTIFIER false SchemaLoader TYPE_IDENTIFIER false org PACKAGE_IDENTIFIER false apache PACKAGE_IDENTIFIER false cassandra PACKAGE_IDENTIFIER false Util TYPE_IDENTIFIER false org PACKAGE_IDENTIFIER false apache PACKAGE_IDENTIFIER false cassandra PACKAGE_IDENTIFIER false db PACKAGE_IDENTIFIER false commitlog PACKAGE_IDENTIFIER false CommitLog TYPE_IDENTIFIER false org PACKAGE_IDENTIFIER false apache PACKAGE_IDENTIFIER false cassandra PACKAGE_IDENTIFIER false db PACKAGE_IDENTIFIER false filter PACKAGE_IDENTIFIER false QueryFilter TYPE_IDENTIFIER false org PACKAGE_IDENTIFIER false apache PACKAGE_IDENTIFIER false cassandra PACKAGE_IDENTIFIER false db PACKAGE_IDENTIFIER false filter PACKAGE_IDENTIFIER false QueryPath TYPE_IDENTIFIER false org PACKAGE_IDENTIFIER false junit UNKNOWN_IDENTIFIER false Test UNKNOWN_IDENTIFIER false org PACKAGE_IDENTIFIER false apache PACKAGE_IDENTIFIER false cassandra PACKAGE_IDENTIFIER false utils PACKAGE_IDENTIFIER false ByteBufferUtil TYPE_IDENTIFIER false RecoveryManagerTruncateTest TYPE_IDENTIFIER true SchemaLoader TYPE_IDENTIFIER false Test UNKNOWN_IDENTIFIER false testTruncate METHOD_IDENTIFIER true IOException TYPE_IDENTIFIER false ExecutionException TYPE_IDENTIFIER false InterruptedException TYPE_IDENTIFIER false Table TYPE_IDENTIFIER false table VARIABLE_IDENTIFIER true Table TYPE_IDENTIFIER false open METHOD_IDENTIFIER false ColumnFamilyStore TYPE_IDENTIFIER false cfs VARIABLE_IDENTIFIER true table VARIABLE_IDENTIFIER false getColumnFamilyStore METHOD_IDENTIFIER false RowMutation TYPE_IDENTIFIER false rm VARIABLE_IDENTIFIER true ColumnFamily TYPE_IDENTIFIER false cf VARIABLE_IDENTIFIER true rm VARIABLE_IDENTIFIER false RowMutation TYPE_IDENTIFIER false ByteBufferUtil TYPE_IDENTIFIER false bytes METHOD_IDENTIFIER false cf VARIABLE_IDENTIFIER false ColumnFamily TYPE_IDENTIFIER false create METHOD_IDENTIFIER false cf VARIABLE_IDENTIFIER false addColumn METHOD_IDENTIFIER false column METHOD_IDENTIFIER false rm VARIABLE_IDENTIFIER false add METHOD_IDENTIFIER false cf VARIABLE_IDENTIFIER false rm VARIABLE_IDENTIFIER false apply METHOD_IDENTIFIER false assertNotNull UNKNOWN_IDENTIFIER false getFromTable METHOD_IDENTIFIER false table VARIABLE_IDENTIFIER false cfs VARIABLE_IDENTIFIER false truncate METHOD_IDENTIFIER false get METHOD_IDENTIFIER false CommitLog TYPE_IDENTIFIER false instance VARIABLE_IDENTIFIER false resetUnsafe METHOD_IDENTIFIER false CommitLog TYPE_IDENTIFIER false instance VARIABLE_IDENTIFIER false recover METHOD_IDENTIFIER false assertNull UNKNOWN_IDENTIFIER false getFromTable METHOD_IDENTIFIER false table VARIABLE_IDENTIFIER false IColumn TYPE_IDENTIFIER false getFromTable METHOD_IDENTIFIER true Table TYPE_IDENTIFIER false table VARIABLE_IDENTIFIER true String TYPE_IDENTIFIER false cfName VARIABLE_IDENTIFIER true String TYPE_IDENTIFIER false keyName VARIABLE_IDENTIFIER true String TYPE_IDENTIFIER false columnName VARIABLE_IDENTIFIER true ColumnFamily TYPE_IDENTIFIER false cf VARIABLE_IDENTIFIER true ColumnFamilyStore TYPE_IDENTIFIER false cfStore VARIABLE_IDENTIFIER true table VARIABLE_IDENTIFIER false getColumnFamilyStore METHOD_IDENTIFIER false cfName VARIABLE_IDENTIFIER false cfStore VARIABLE_IDENTIFIER false cf VARIABLE_IDENTIFIER false cfStore VARIABLE_IDENTIFIER false getColumnFamily METHOD_IDENTIFIER false QueryFilter TYPE_IDENTIFIER false getNamesFilter METHOD_IDENTIFIER false Util TYPE_IDENTIFIER false dk METHOD_IDENTIFIER false keyName VARIABLE_IDENTIFIER false QueryPath TYPE_IDENTIFIER false cfName VARIABLE_IDENTIFIER false ByteBufferUtil TYPE_IDENTIFIER false bytes METHOD_IDENTIFIER false columnName VARIABLE_IDENTIFIER false cf VARIABLE_IDENTIFIER false cf VARIABLE_IDENTIFIER false getColumn METHOD_IDENTIFIER false ByteBufferUtil TYPE_IDENTIFIER false bytes METHOD_IDENTIFIER false columnName VARIABLE_IDENTIFIER false
[ "pschulam@gmail.com" ]
pschulam@gmail.com
66f7c744c546834ec058c6a290956f6f832f5547
4572bcab49eec6a44dfe97cfceb6c96232093fa2
/j360-trace-core/src/test/java/me.j360.trace.core/internal/CorrectForClockSkewTest.java
25237263fb55d31819f539deadcadbe0b3de18ab
[]
no_license
hhhcommon/j360-trace
24d014e81f06c34e2a7f322407d22ab3031c18ce
b2378a39af13edbfea3e13fe2b67413decb36379
refs/heads/master
2020-03-30T00:41:51.681189
2017-04-27T10:17:06
2017-04-27T10:17:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,457
java
/** * Copyright 2015-2016 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ package me.j360.trace.core.internal; import me.j360.trace.core.Endpoint; import org.junit.Test; import static me.j360.trace.core.internal.CorrectForClockSkew.ipsMatch; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; public class CorrectForClockSkewTest { Endpoint ipv6 = Endpoint.builder() .serviceName("web") // Cheat so we don't have to catch an exception here .ipv6(sun.net.util.IPAddressUtil.textToNumericFormatV6("2001:db8::c001")) .build(); Endpoint ipv4 = Endpoint.builder() .serviceName("web") .ipv4(124 << 24 | 13 << 16 | 90 << 8 | 2) .build(); Endpoint both = ipv4.toBuilder().ipv6(ipv6.ipv6).build(); @Test public void ipsMatch_falseWhenNoIp() { Endpoint noIp = Endpoint.builder().serviceName("foo").build(); assertFalse(ipsMatch(noIp, ipv4)); assertFalse(ipsMatch(noIp, ipv6)); assertFalse(ipsMatch(ipv4, noIp)); assertFalse(ipsMatch(ipv6, noIp)); } @Test public void ipsMatch_falseWhenIpv4Different() { Endpoint different = ipv4.toBuilder() .ipv4(124 << 24 | 13 << 16 | 90 << 8 | 3).build(); assertFalse(ipsMatch(different, ipv4)); assertFalse(ipsMatch(ipv4, different)); } @Test public void ipsMatch_falseWhenIpv6Different() { Endpoint different = ipv6.toBuilder() .ipv6(sun.net.util.IPAddressUtil.textToNumericFormatV6("2001:db8::c002")).build(); assertFalse(ipsMatch(different, ipv6)); assertFalse(ipsMatch(ipv6, different)); } @Test public void ipsMatch_whenIpv6Match() { assertTrue(ipsMatch(ipv6, ipv6)); assertTrue(ipsMatch(both, ipv6)); assertTrue(ipsMatch(ipv6, both)); } @Test public void ipsMatch_whenIpv4Match() { assertTrue(ipsMatch(ipv4, ipv4)); assertTrue(ipsMatch(both, ipv4)); assertTrue(ipsMatch(ipv4, both)); } }
[ "xumin_wlt@163.com" ]
xumin_wlt@163.com
9246e34f8f11d4eefb120d278178cb526e407a06
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
/methods/Method_7919.java
78e5e590ed012a93c1fbd9877f8fd1c8312a8fa5
[]
no_license
P79N6A/icse_20_user_study
5b9c42c6384502fdc9588430899f257761f1f506
8a3676bc96059ea2c4f6d209016f5088a5628f3c
refs/heads/master
2020-06-24T08:25:22.606717
2019-07-25T15:31:16
2019-07-25T15:31:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
667
java
public void setMessageObject(MessageObject messageObject){ currentMessageObject=messageObject; TLRPC.Document document=messageObject.getDocument(); TLRPC.PhotoSize thumb=document != null ? FileLoader.getClosestPhotoSizeWithSize(document.thumbs,90) : null; if (thumb instanceof TLRPC.TL_photoSize) { radialProgress.setImageOverlay(thumb,document,messageObject); } else { String artworkUrl=messageObject.getArtworkUrl(true); if (!TextUtils.isEmpty(artworkUrl)) { radialProgress.setImageOverlay(artworkUrl); } else { radialProgress.setImageOverlay(null,null,null); } } requestLayout(); updateButtonState(false,false); }
[ "sonnguyen@utdallas.edu" ]
sonnguyen@utdallas.edu
3059ca874e9044d5792d1f2450017c60934649d2
4e9c06ff59fe91f0f69cb3dd80a128f466885aea
/src/o/ܟ.java
65b8831b0635bdfbe3dbc7395ba30736462d6f4b
[]
no_license
reverseengineeringer/com.eclipsim.gpsstatus2
5ab9959cc3280d2dc96f2247c1263d14c893fc93
800552a53c11742c6889836a25b688d43ae68c2e
refs/heads/master
2021-01-17T07:26:14.357187
2016-07-21T03:33:07
2016-07-21T03:33:07
63,834,134
0
0
null
null
null
null
UTF-8
Java
false
false
1,013
java
package o; import android.os.Parcel; import android.os.Parcelable.Creator; import com.google.android.gms.ads.internal.purchase.GInAppPurchaseManagerInfoParcel; public final class ܟ implements Parcelable.Creator<GInAppPurchaseManagerInfoParcel> { public static void ˊ(GInAppPurchaseManagerInfoParcel paramGInAppPurchaseManagerInfoParcel, Parcel paramParcel) { paramParcel.writeInt(-45243); paramParcel.writeInt(0); int i = paramParcel.dataPosition(); int j = versionCode; if.ˊ(paramParcel, 1, 4); paramParcel.writeInt(j); if.ˊ(paramParcel, 3, hv.ᵕ(OI).asBinder()); if.ˊ(paramParcel, 4, hv.ᵕ(OJ).asBinder()); if.ˊ(paramParcel, 5, hv.ᵕ(OK).asBinder()); if.ˊ(paramParcel, 6, hv.ᵕ(OL).asBinder()); j = paramParcel.dataPosition(); paramParcel.setDataPosition(i - 4); paramParcel.writeInt(j - i); paramParcel.setDataPosition(j); } } /* Location: * Qualified Name: o.ܟ * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "reverseengineeringer@hackeradmin.com" ]
reverseengineeringer@hackeradmin.com
ecbc8e6f25f73d37fa7b0cfe431c1a2969d96247
c72893db3246d4a91aa8bcd42618b8d509566027
/CoreJava/src/main/java/com/edu/abhi/question/codility/FrogJmp.java
42fe837a47db692f4e3f4799bb1c9e275d704ab8
[]
no_license
abhishekkhare/CoreJava
78c439ea685dd65e4caa80c0331ef7b6fe6e1adc
65c34b33b238abfc8dd23d9e0a21bd5fb7985dc1
refs/heads/master
2020-12-25T21:34:54.479586
2020-03-25T20:07:27
2020-03-25T20:07:27
68,348,906
2
8
null
2020-10-12T21:36:17
2016-09-16T03:05:21
Java
UTF-8
Java
false
false
658
java
package com.edu.abhi.question.codility; /** * https://codility.com/programmers/lessons/3-time_complexity/frog_jmp/ * @author abhishekkhare * */ public class FrogJmp { public static void main(String[] args) { // System.out.println(solution(10,85,30)); // System.out.println(solution(10,85,5)); // System.out.println(solution(95,85,5)); // System.out.println(solution(85,85,5)); System.out.println(solution(10,12,5)); } public static int solution(int X, int Y, int D){ int count =(Y-X)/D; int rem = (Y-X)%D; System.out.println(D+ " "+count +" -- "+ rem); if(rem>0){ count++; } if(count<0){ count=0; } return count; } }
[ "abhishek_khare@apple.com" ]
abhishek_khare@apple.com
6377c35a4e9f436d3f2a73a454703f3adadd1fe9
8af1164bac943cef64e41bae312223c3c0e38114
/results-java/mcxiaoke--android-volley/b9b8dc3d98fb1a8c3f02c2c2fcc18cbd344c05cb/before/CacheTestUtils.java
d27252ade78dd9a5a709485363ca663d5f12e330
[]
no_license
fracz/refactor-extractor
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
dd5e82bfcc376e74a99e18c2bf54c95676914272
refs/heads/master
2021-01-19T06:50:08.211003
2018-11-30T13:00:57
2018-11-30T13:00:57
87,353,478
0
0
null
null
null
null
UTF-8
Java
false
false
1,315
java
// Copyright 2011 Google Inc. All Rights Reserved. package com.android.volley.utils; import com.android.volley.Cache; import java.util.Random; public class CacheTestUtils { /** * Makes a random cache entry. * @param data Data to use, or null to use random data * @param isExpired Whether the TTLs should be set such that this entry is expired * @param needsRefresh Whether the TTLs should be set such that this entry needs refresh */ public static Cache.Entry makeRandomCacheEntry( byte[] data, boolean isExpired, boolean needsRefresh) { Random random = new Random(); Cache.Entry entry = new Cache.Entry(); if (data != null) { entry.data = data; } else { entry.data = new byte[random.nextInt(1024)]; } entry.etag = String.valueOf(random.nextLong()); entry.serverDate = random.nextLong(); entry.ttl = isExpired ? 0 : Long.MAX_VALUE; entry.softTtl = needsRefresh ? 0 : Long.MAX_VALUE; return entry; } /** * Like {@link #makeRandomCacheEntry(byte[], boolean, boolean)} but * defaults to an unexpired entry. */ public static Cache.Entry makeRandomCacheEntry(byte[] data) { return makeRandomCacheEntry(data, false, false); } }
[ "fraczwojciech@gmail.com" ]
fraczwojciech@gmail.com
b97525103efd777bb9707c4457efb05b1b9846cd
58df55b0daff8c1892c00369f02bf4bf41804576
/src/cid.java
e1780b6cb8b582e505cfc92a296902c323047cbb
[]
no_license
gafesinremedio/com.google.android.gm
0b0689f869a2a1161535b19c77b4b520af295174
278118754ea2a262fd3b5960ef9780c658b1ce7b
refs/heads/master
2020-05-04T15:52:52.660697
2016-07-21T03:39:17
2016-07-21T03:39:17
null
0
0
null
null
null
null
UTF-8
Java
false
false
599
java
import android.content.Context; import android.content.Intent; import com.android.mail.providers.Account; import com.android.mail.ui.MailActivity; final class cid implements ctd { cid(cht paramcht) {} public final void a(Context paramContext) { paramContext = a; Object localObject = a.c; if ((localObject != null) && (!cxa.b(t))) { localObject = new Intent("android.intent.action.VIEW", t); g.startActivityForResult((Intent)localObject, 2); } } } /* Location: * Qualified Name: cid * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "reverseengineeringer@hackeradmin.com" ]
reverseengineeringer@hackeradmin.com
2fd7264806d9e13d62e93d097299d6424c89f8a4
2a99a287228e446eb30096abb0f920bb320262f5
/yikangYouthFountain/src/test/java/com/yikang/base/config/YiKangServiceConfige.java
6a872058a9e343b112bc10b7a18cb399a8965835
[]
no_license
yikangmc/youthFountain
fc76a8e2e696189758e4a20fcee0c9abd138f2ef
7f24f43beb42488d15bdd958e462403f9c564ee2
refs/heads/master
2021-01-19T02:35:22.358453
2016-11-08T08:22:23
2016-11-08T08:22:23
44,161,283
1
0
null
null
null
null
UTF-8
Java
false
false
705
java
package com.yikang.base.config; public class YiKangServiceConfige { /** * service名称 * ***/ private String serviceName; /** * 方法名称 * **/ private String methodName; /** * 是不过滤 * **/ private boolean isFileter; public String getServiceName() { return serviceName; } public void setServiceName(String serviceName) { this.serviceName = serviceName; } public String getMethodName() { return methodName; } public void setMethodName(String methodName) { this.methodName = methodName; } public boolean getIsFileter() { return isFileter; } public void setIsFileter(boolean isFileter) { this.isFileter = isFileter; } }
[ "lavedream@hotmail.com" ]
lavedream@hotmail.com
46b1cb1784fcc49b1339f5b6516fef8f0049d229
c36e1f2f1712f71cd11c829588ef8e82b09b7ef1
/java/monkey_foxwan_web/src/com/stang/game/ffd/service/ILogSendGiftDetailService.java
579c65d66122c35bcfd28cfdcde7378f3a37aa4f
[]
no_license
CJSDCQS/Monkey-Web-Game
8b5645c7d5278708679827b956e9ca17d60a93e0
c2e93001db22df775c9638651d84d9bb2dcdb52a
refs/heads/master
2021-12-04T08:15:23.863743
2014-10-24T09:10:44
2014-10-24T09:10:44
null
0
0
null
null
null
null
UTF-8
Java
false
false
569
java
package com.stang.game.ffd.service; import java.util.List; import java.util.Map; import com.stang.game.ffd.entity.detail.LogSendGiftDetail; import com.stang.game.ffd.service.IBaseService; public interface ILogSendGiftDetailService extends IBaseService<LogSendGiftDetail> { void insertLogSendGiftDetail(Map<String, Object> param); void updateLogSendGiftDetail(Map<String, Object> param); void deleteLogSendGiftDetail(Map<String, Object> param); List<LogSendGiftDetail> getLogSendGiftDetail(Map<String, Object> param); int getLogSendGiftDetailCount(); }
[ "lavenwl@gmail.com" ]
lavenwl@gmail.com
975516860bd1a18c012d57928e8537bcb9392a53
e31cec8923ca969a84886a356096b58a9bd1b30e
/javacode/organization/com/yinhai/ta3/organization/service/IPositionUserMgService.java
4cdb1f31f0da110bc90dbc1f122bf2aca97ab66f
[]
no_license
xeon-ye/ta3-v4.0
a5e6e631d2d1d3bbafb9107fce36f6e01555ab91
034bcf36eed91af6478d996d30e1dc1de369284c
refs/heads/master
2022-02-22T06:47:33.668198
2019-09-06T14:15:14
2019-09-06T14:16:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,665
java
package com.yinhai.ta3.organization.service; import java.util.List; import com.yinhai.sysframework.app.domain.Key; import com.yinhai.sysframework.codetable.domain.AppCode; import com.yinhai.sysframework.dto.ParamDTO; import com.yinhai.sysframework.persistence.PageBean; import com.yinhai.sysframework.service.Service; import com.yinhai.ta3.system.org.domain.MenuPositionVO; import com.yinhai.ta3.system.org.domain.Org; import com.yinhai.ta3.system.org.domain.PositionAuthrity; import com.yinhai.ta3.system.org.domain.PositionInfoVO; import com.yinhai.ta3.system.org.domain.User; import com.yinhai.ta3.system.org.domain.UserInfoVO; import com.yinhai.ta3.system.org.domain.Yab139Mg; import com.yinhai.ta3.system.sysapp.domain.Menu; public interface IPositionUserMgService extends Service { public static final String SERVICEKEY = "positionUserMgService"; public abstract PageBean queryUsersByParamDto(String paramString, ParamDTO paramParamDTO); public abstract PageBean queryPositionByParamDto(String paramString, ParamDTO paramParamDTO); public abstract PositionInfoVO queryPerMission(); public abstract List<PositionInfoVO> queryPositionByUserid(Long paramLong); public abstract User queryUserByUserid(Long paramLong); public abstract List<MenuPositionVO> queryPositionPermissionsByUserId(Long paramLong); public abstract List<MenuPositionVO> queryPositionPermissionsByPositionId(Long paramLong); public abstract List<UserInfoVO> queryUserInPosition(Long paramLong); public abstract List<Org> querySharePosition(Long paramLong); public abstract PageBean getPubPositionsNoCurUseridByOrgId(ParamDTO paramParamDTO, String paramString, int paramInt1, int paramInt2); public abstract PageBean queryUsers(ParamDTO paramParamDTO, String paramString, int paramInt1, int paramInt2); public abstract void recyclePermissions(List<Key> paramList1, List<Key> paramList2, ParamDTO paramParamDTO); public abstract List<Menu> queryReUsePermissions(Long paramLong); public abstract List<PositionAuthrity> queryUsePermissions(Long paramLong); public abstract void saveRoleScopeAclOperate(ParamDTO paramParamDTO); public abstract String queryDefaultYab139s(Long paramLong); public abstract List<Yab139Mg> queryDefaultYab139List(Long paramLong); public abstract List<String> queryAdminMgYab139List(Long paramLong); public abstract List<AppCode> queryYab139List(Long paramLong1, Long paramLong2); public abstract void delDataAccessDimension(Long paramLong1, Long paramLong2); public abstract List queryPositionsHaveMenuUsePermission(Long paramLong1, Long paramLong2); }
[ "wuxh930911@163.com" ]
wuxh930911@163.com
c94872e1ac59f93a71619709f7d6ce1f3b4bdcb2
79e7c7a55541af6c9c2ae78c9ed3955733cda457
/src/main/java/com/cxf/nettyserverdtails/Delimited.java
41da9c4755021779c68f6a263d20e4623fc8b934
[]
no_license
biejiaoyingyu/nettyServer
7c82497c99035bd78c94e62340d5fd2ee3b6f3ca
b068f22265fe87dbe1956004425a3c811c34ca18
refs/heads/master
2020-04-06T15:05:16.559779
2019-01-02T09:01:18
2019-01-02T09:01:18
157,565,289
0
0
null
null
null
null
UTF-8
Java
false
false
4,754
java
package com.cxf.nettyserverdtails; import io.netty.buffer.ByteBuf; import io.netty.channel.*; import io.netty.handler.codec.LineBasedFrameDecoder; /** * 基于分隔符的协议 * * DelimiterBasedFrameDecoder 使用任何由用户提供的分隔符来提取帧的通用解码器 * LineBasedFrameDecoder 提取由行尾符(\n 或者\r\n)分隔的帧的解码器。这个解码 * 器比 DelimiterBasedFrameDecoder 更快 */ public class Delimited { final static byte SPACE = (byte)' '; // ------------- 由行尾符分隔的帧 ------------------ // 字节流: ABC\r\nDEF\r\n ----> 第一个帧ABC\r\n -- 第二个帧 DEF\r\n public class LineBasedHandlerInitializer extends ChannelInitializer<Channel> { @Override protected void initChannel(Channel ch) throws Exception { ChannelPipeline pipeline = ch.pipeline(); //该LineBasedFrameDecoder将提取的帧转发给下一个ChannelInboundHandler pipeline.addLast(new LineBasedFrameDecoder(64 * 1024)); //添加 FrameHandler以接收帧 pipeline.addLast(new FrameHandler()); } } public static final class FrameHandler extends SimpleChannelInboundHandler<ByteBuf> { //传入了单个帧的内容 @Override public void channelRead0(ChannelHandlerContext ctx, ByteBuf msg) throws Exception { // Do something with the data extracted from the frame } } /** * 这些解码器是实现你自己的基于分隔符的协议的工具。作为示例,我们将使用下面的协议规范:  传入数据流是一系列的帧,每个帧都由换行符(\n)分隔;  每个帧都由一系列的元素组成,每个元素都由单个空格字符分隔;  一个帧的内容代表一个命令,定义为一个命令名称后跟着数目可变的参数。 我们用于这个协议的自定义解码器将定义以下类:  Cmd----->将帧(命令)的内容存储在 ByteBuf 中,一个 ByteBuf 用于名称,另一个用于参数;  CmdDecoder----->从被重写了的 decode()方法中获取一行字符串,并从它的内容构建一个 Cmd 的实例;  CmdHandler----->从 CmdDecoder 获取解码的 Cmd 对象,并对它进行一些处理;  CmdHandlerInitializer ------>为了简便起见,我们将会把前面的这些类定义为专门的ChannelInitializer 的嵌套类,其将会把这些ChannelInboundHandler 安装到 ChannelPipeline 中。 */ public class CmdHandlerInitializer extends ChannelInitializer<Channel> { @Override protected void initChannel(Channel ch) throws Exception { ChannelPipeline pipeline = ch.pipeline(); //添加 CmdDecoder 以提取Cmd 对象,并将它转发给下一个ChannelInboundHandler pipeline.addLast(new CmdDecoder(64 * 1024)); //添加 CmdHandler 以接收和处理 Cmd 对象 pipeline.addLast(new CmdHandler()); } } //Cmd POJO public static final class Cmd { private final ByteBuf name; private final ByteBuf args; public Cmd(ByteBuf name, ByteBuf args) { this.name = name; this.args = args; } public ByteBuf name() { return name; } public ByteBuf args() { return args; } } //从 ByteBuf 中提取由行尾符序列分隔的帧 public static final class CmdDecoder extends LineBasedFrameDecoder { public CmdDecoder(int maxLength) { super(maxLength); } @Override protected Object decode(ChannelHandlerContext ctx, ByteBuf buffer) throws Exception { //从 ByteBuf 中提取由行尾符序列分隔的帧 ByteBuf frame = (ByteBuf) super.decode(ctx, buffer); //如果输入中没有帧,则返回 null if (frame == null) { return null; } //查找第一个空格字符的索引。前面是命令名称,接着是参数 int index = frame.indexOf(frame.readerIndex(), frame.writerIndex(), SPACE); //使用包含有命令名称和参数的切片创 建新的Cmd 对象 return new Cmd(frame.slice(frame.readerIndex(), index), frame.slice(index + 1, frame.writerIndex())); } } public static final class CmdHandler extends SimpleChannelInboundHandler<Cmd> { //处理传经 ChannelPipeline的 Cmd 对象 @Override public void channelRead0(ChannelHandlerContext ctx, Cmd msg) throws Exception { // Do something with the command } } }
[ "chen@qq.com" ]
chen@qq.com
0cc21ea3737f820c23ac3f4a7c5e845fdd1e9e43
96f9bac9891c89fe51b0a79de7ae7080f88f306e
/src/main/java/abstractfactory/version1/MSIMainboard.java
d4508f3051d756e69ad39994bf8d667e707d5335
[]
no_license
xudesan33/grinding-design-pattern
dc510ef6686eea181a0c96ad9f32747e02481b6b
5689cce027a3fb1bd4f3469ba0ac5969b0e8beb2
refs/heads/master
2023-05-08T02:00:37.711044
2021-06-02T11:05:20
2021-06-02T11:05:20
373,138,212
0
0
null
null
null
null
UTF-8
Java
false
false
440
java
package abstractfactory.version1; /** * 微星的主板 */ public class MSIMainboard implements MainboardApi{ /** * CPU插槽的孔数 */ private int cpuHoles = 0; /** * 构造方法,传入CPU插槽的孔数 * @param cpuHoles CPU插槽的孔数 */ public MSIMainboard(int cpuHoles){ this.cpuHoles = cpuHoles; } @Override public void installCPU() { System.out.println("now in MSIMainboard,cpuHoles="+cpuHoles); } }
[ "sander-xu@zamplus.com" ]
sander-xu@zamplus.com
3cf30b4fbea1f52b441e99fb675aba55242e863d
608cf243607bfa7a2f4c91298463f2f199ae0ec1
/android/versioned-abis/expoview-abi39_0_0/src/main/java/abi39_0_0/expo/modules/notifications/notifications/interfaces/NotificationPresentationEffect.java
d9905f3cdb29325a983535a8b8e4180fc4971ea1
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
kodeco835/symmetrical-happiness
ca79bd6c7cdd3f7258dec06ac306aae89692f62a
4f91cb07abef56118c35f893d9f5cc637b9310ef
refs/heads/master
2023-04-30T04:02:09.478971
2021-03-23T03:19:05
2021-03-23T03:19:05
350,565,410
0
1
MIT
2023-04-12T19:49:48
2021-03-23T03:18:02
Objective-C
UTF-8
Java
false
false
390
java
package abi39_0_0.expo.modules.notifications.notifications.interfaces; import android.app.Notification; import androidx.annotation.Nullable; public interface NotificationPresentationEffect { boolean onNotificationPresented(@Nullable String tag, int id, Notification notification); boolean onNotificationPresentationFailed(@Nullable String tag, int id, Notification notification); }
[ "81201147+kodeco835@users.noreply.github.com" ]
81201147+kodeco835@users.noreply.github.com
e3c957c5dc5c092da10b5a1f7e9c662ac9e5a980
fda2fb364a806caa1d34716350160f646ba4a454
/src/gcom/gui/faturamento/conta/AtualizarMensagemContaActionForm.java
923fdcccfb9e13a6d3e574cbeda1394fc23a9ce2
[]
no_license
MarceloGiovani/gsan
853e36b00da953c4b5e0c6b16612023d626aa0e6
dae278cc66ce8d92975918d1db6f658c2ea4ac20
refs/heads/master
2020-12-25T15:29:55.391106
2014-07-11T15:25:49
2014-07-11T15:25:49
null
0
0
null
null
null
null
ISO-8859-1
Java
false
false
3,321
java
package gcom.gui.faturamento.conta; import javax.servlet.http.HttpServletRequest; import org.apache.struts.action.ActionMapping; import org.apache.struts.validator.ValidatorActionForm; /** * < <Descrição da Classe>> * * @author Administrador */ public class AtualizarMensagemContaActionForm extends ValidatorActionForm { private static final long serialVersionUID = 1L; private String referenciaFaturamento; private String grupoFaturamento; private String mensagemConta01; private String mensagemConta02; private String mensagemConta03; private String gerenciaRegional; private String localidade; private String localidadeDescricao; private String setorComercial; private String setorComercialDescricao; private String atualizar; private String quadra; public String getAtualizar() { return atualizar; } public void setAtualizar(String atualizar) { this.atualizar = atualizar; } public String getGerenciaRegional() { return gerenciaRegional; } public void setGerenciaRegional(String gerenciaRegional) { this.gerenciaRegional = gerenciaRegional; } public String getGrupoFaturamento() { return grupoFaturamento; } public void setGrupoFaturamento(String grupoFaturamento) { this.grupoFaturamento = grupoFaturamento; } public String getLocalidade() { return localidade; } public void setLocalidade(String localidade) { this.localidade = localidade; } public String getLocalidadeDescricao() { return localidadeDescricao; } public void setLocalidadeDescricao(String localidadeDescricao) { this.localidadeDescricao = localidadeDescricao; } public String getReferenciaFaturamento() { return referenciaFaturamento; } public void setReferenciaFaturamento(String referenciaFaturamento) { this.referenciaFaturamento = referenciaFaturamento; } public String getSetorComercial() { return setorComercial; } public void setSetorComercial(String setorComercial) { this.setorComercial = setorComercial; } public String getSetorComercialDescricao() { return setorComercialDescricao; } public void setSetorComercialDescricao(String setorComercialDescricao) { this.setorComercialDescricao = setorComercialDescricao; } public String getMensagemConta01() { return mensagemConta01; } public void setMensagemConta01(String mensagemConta01) { this.mensagemConta01 = mensagemConta01; } public String getMensagemConta02() { return mensagemConta02; } public void setMensagemConta02(String mensagemConta02) { this.mensagemConta02 = mensagemConta02; } public String getMensagemConta03() { return mensagemConta03; } public void setMensagemConta03(String mensagemConta03) { this.mensagemConta03 = mensagemConta03; } public String getQuadra() { return quadra; } public void setQuadra(String quadra) { this.quadra = quadra; } @Override public void reset(ActionMapping arg0, HttpServletRequest arg1) { // TODO Auto-generated method stub super.reset(arg0, arg1); referenciaFaturamento=""; grupoFaturamento=""; mensagemConta01=""; mensagemConta02=""; mensagemConta03=""; gerenciaRegional=""; localidade=""; localidadeDescricao=""; setorComercial=""; setorComercialDescricao=""; } }
[ "piagodinho@gmail.com" ]
piagodinho@gmail.com
695d40e57b953fc32dad1d0c75ee47aed724a547
f4b99903ade254fc560aa7d868d639307d325db7
/src/ANXCamera/sources/com/android/camera/protocol/ModeProtocol$StickerProtocol.java
01f9bf93864e462a715a172454eb70d4630b7002
[]
no_license
XEonAX/ANXMiuiCamera9
7a00528e1fb2e8b64a33a8067b5054a13c833777
1f8dd97db56085ac88186a802f7c03af4ff92cb6
refs/heads/master
2020-04-09T01:51:16.443913
2018-12-08T10:04:32
2018-12-08T10:04:32
159,919,585
1
1
null
null
null
null
UTF-8
Java
false
false
161
java
package com.android.camera.protocol; public interface ModeProtocol$StickerProtocol extends ModeProtocol$BaseProtocol { void onStickerChanged(String str); }
[ "sv.xeon@gmail.com" ]
sv.xeon@gmail.com
2e916a92c8b0f85d30d22e08a6d23f6f6456cea9
14b497b11196ca5bf170bbed99b54e172404c4ce
/src/LeetCode/No14.java
ffa9fd9c3f3a855cd0e927d359e29cb29eebd5ab
[]
no_license
lenfranky/java_learning_lz
54a326cf23f3248bd2a5386dd146ec36cbfeeed4
619bcf7b4ab60156940260debed3bd9dc8c702ba
refs/heads/master
2020-04-03T15:43:49.104485
2019-06-26T12:24:22
2019-06-26T12:24:22
155,374,640
0
0
null
null
null
null
UTF-8
Java
false
false
1,559
java
package LeetCode; /* Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Example 1: Input: ["flower","flow","flight"] Output: "fl" Example 2: Input: ["dog","racecar","car"] Output: "" Explanation: There is no common prefix among the input strings. Note: All given inputs are in lowercase letters a-z. */ public class No14 { public String longestCommonPrefix(String[] strs) { String result = ""; int count = 0; char currentLetter; int strLength = strs.length; if (strLength == 0) return ""; Boolean sameFlag = true; while(true) { if (strs[0].length() <= count) return result; currentLetter = strs[0].charAt(count); sameFlag = true; for (int iter = 1; iter < strs.length; iter++) { if (strs[iter].length() <= count) return result; if (strs[iter].charAt(count) != currentLetter) { sameFlag = false; break; } } if (sameFlag) { count ++; result = result + currentLetter; } else break; } return result; } public static void main(String[] args) { No14 solution = new No14(); String[] strList = {"abca","abc"}; System.out.println(solution.longestCommonPrefix(strList)); } }
[ "327792549@qq.com" ]
327792549@qq.com
a05eaecb75a73b2a9751b231c005eceeaaba63ab
b15fcbea84500825b454a8e0fca67e6c4a8c9cef
/ControlObligaciones/ControlObligacionesBack/src/main/java/mx/gob/sat/siat/cob/background/writer/impl/ActualizaUltimoEstadoMultaWriterImpl.java
fbeffda24fda26fc4a6db0951bb4b6de2b6c266c
[]
no_license
xtaticzero/COB
0416523d1bbc96d6024df5eca79172cb0927423f
96082d47e4ffb97dd6e61ce42feee65d5fe64e50
refs/heads/master
2021-09-09T22:02:10.153252
2018-03-20T00:18:00
2018-03-20T00:18:00
125,936,388
0
0
null
null
null
null
UTF-8
Java
false
false
1,831
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package mx.gob.sat.siat.cob.background.writer.impl; import javax.sql.DataSource; import mx.gob.sat.siat.cob.background.writer.ActualizaUltimoEstadoMultaWriter; import mx.gob.sat.siat.cob.seguimiento.dao.stdcob.sql.DocumentoSQL; import mx.gob.sat.siat.cob.seguimiento.util.constante.DataSourceNames; import org.apache.log4j.Logger; import org.springframework.batch.item.database.BeanPropertyItemSqlParameterSourceProvider; import org.springframework.batch.item.database.JdbcBatchItemWriter; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Service; /** * * @author Daniel */ @Service("actualizaUltimoEstadoMultaWriter") @Scope("step") public class ActualizaUltimoEstadoMultaWriterImpl extends JdbcBatchItemWriter implements ActualizaUltimoEstadoMultaWriter { private Logger log = Logger.getLogger(ActualizaUltimoEstadoMultaWriterImpl.class); public ActualizaUltimoEstadoMultaWriterImpl() { log.info("### ActualizaUltimoEstadoMultaWriterImpl "); super.setItemSqlParameterSourceProvider(new BeanPropertyItemSqlParameterSourceProvider()); } @Autowired @Qualifier(DataSourceNames.COB) @Override public void setDataSource(DataSource dataSource) { super.setDataSource(dataSource); } /** * * @param sql */ @Value(DocumentoSQL.ACTUALIZAR_ULTIMOESTADO_MULTA) @Override public void setSql(String sql) { log.info("### ActualizaUltimoEstadoMultaWriter SQL ..." + sql); super.setSql(sql); } }
[ "emmanuel.estrada@stksat.com" ]
emmanuel.estrada@stksat.com
a8d05d0e950f3444841f5faa9e2bd1f60c1604dd
83d56024094d15f64e07650dd2b606a38d7ec5f1
/Construccion/PROYECTO.SICC/CMN/NEGOCIO/src/es/indra/sicc/cmn/negocio/batch/consolabatch/MONConsolaBatchHome.java
ad174b71a3cce54d0dd7eea7b526f71f42018d61
[]
no_license
cdiglesias/SICC
bdeba6af8f49e8d038ef30b61fcc6371c1083840
72fedb14a03cb4a77f62885bec3226dbbed6a5bb
refs/heads/master
2021-01-19T19:45:14.788800
2016-04-07T16:20:51
2016-04-07T16:20:51
null
0
0
null
null
null
null
UTF-8
Java
false
false
273
java
package es.indra.sicc.cmn.negocio.batch.consolabatch; import javax.ejb.EJBHome; import java.rmi.RemoteException; import javax.ejb.CreateException; public interface MONConsolaBatchHome extends EJBHome { MONConsolaBatch create() throws RemoteException, CreateException; }
[ "hp.vega@hotmail.com" ]
hp.vega@hotmail.com
0a2da38165ff7df17467755aa1dd0392b1fe2ca9
8af1164bac943cef64e41bae312223c3c0e38114
/results-java/gradle--gradle/80d188eef2887d7258bf202fd495862f765748ff/before/ConsumerConnection.java
1c0f2429a38a4927e79aeb7e28d52c2414bd6387
[]
no_license
fracz/refactor-extractor
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
dd5e82bfcc376e74a99e18c2bf54c95676914272
refs/heads/master
2021-01-19T06:50:08.211003
2018-11-30T13:00:57
2018-11-30T13:00:57
87,353,478
0
0
null
null
null
null
UTF-8
Java
false
false
1,817
java
/* * Copyright 2011 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.tooling.internal.consumer.connection; import org.gradle.internal.concurrent.Stoppable; import org.gradle.tooling.BuildAction; import org.gradle.tooling.connection.ModelResult; import org.gradle.tooling.internal.consumer.TestExecutionRequest; import org.gradle.tooling.internal.consumer.parameters.ConsumerOperationParameters; /** * Implementations must be thread-safe. */ public interface ConsumerConnection extends Stoppable { /** * Cleans up resources used by this connection. Blocks until complete. */ void stop(); String getDisplayName(); <T> T run(Class<T> type, ConsumerOperationParameters operationParameters) throws UnsupportedOperationException, IllegalStateException; <T> T run(BuildAction<T> action, ConsumerOperationParameters operationParameters) throws UnsupportedOperationException, IllegalStateException; void runTests(TestExecutionRequest testExecutionRequest, ConsumerOperationParameters operationParameters); <T> Iterable<ModelResult<T>> buildModels(Class<T> elementType, ConsumerOperationParameters operationParameters) throws UnsupportedOperationException, IllegalStateException; }
[ "fraczwojciech@gmail.com" ]
fraczwojciech@gmail.com
762cfde67851160da57e7119da2a6cb7a30fe349
fdcf2af8597b33110799fed80bb7303fbc7c06e2
/flowable-idm/src/main/java/org/javaboy/flowableidm/ProcessDeployController.java
f24fed2b1dc7f3e3be5e432e74625379c9a27d36
[]
no_license
MrDongShan/javaboy-code-samples
82b5ecf245cf14e693ee8e4f14d002572c01f4f2
5e7af1d93a4acc6c50c2ca5ec1e80ee9da42d057
refs/heads/master
2023-07-06T02:48:08.621361
2023-05-14T14:01:53
2023-05-14T14:01:53
245,963,632
0
0
null
null
null
null
UTF-8
Java
false
false
1,604
java
package org.javaboy.flowableidm; import org.flowable.engine.RepositoryService; import org.flowable.engine.repository.Deployment; import org.flowable.engine.repository.DeploymentBuilder; import org.javaboy.flowableidm.model.RespBean; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.multipart.MultipartFile; import java.io.IOException; import java.util.Date; /** * @author 江南一点雨 * @微信公众号 江南一点雨 * @网站 http://www.itboyhub.com * @国际站 http://www.javaboy.org * @微信 a_java_boy * @GitHub https://github.com/lenve * @Gitee https://gitee.com/lenve */ @RestController public class ProcessDeployController { @Autowired RepositoryService repositoryService; @PostMapping("/deploy") public RespBean deploy(MultipartFile[] files) throws IOException { System.out.println(new Date()); DeploymentBuilder deploymentBuilder = repositoryService.createDeployment() .category("javaboy的工作流分类") .name("javaboy的工作流名称") .key("javaboy的工作流key666"); for (int i = 0; i < files.length; i++) { MultipartFile file = files[i]; deploymentBuilder.addInputStream(file.getOriginalFilename(), file.getInputStream()); } Deployment deployment = deploymentBuilder .deploy(); return RespBean.ok("部署成功", deployment.getId()); } }
[ "wangsong0210@gmail.com" ]
wangsong0210@gmail.com
5eb2490db08167862e4861ad6e94ac361f9f3b08
d62c759ebcb73121f42a221776d436e9368fdaa8
/providers/bluelock-vcloud-vcenterprise/src/test/java/org/jclouds/bluelock/vcloud/vcenterprise/BluelockVCloudEnterpriseProviderTest.java
81df7e63d4bdee28ea964403f2b6775ec5686b9a
[ "Apache-2.0" ]
permissive
gnodet/jclouds
0152a4e7d6d96ac4ec9fa9746729e3555626ecfe
87dd23551c4d9b727540d9bd333ffd9a1136e58a
refs/heads/master
2020-12-24T23:19:24.785844
2011-09-16T15:52:12
2011-09-16T15:52:12
2,399,075
1
0
null
null
null
null
UTF-8
Java
false
false
1,331
java
/** * Licensed to jclouds, Inc. (jclouds) under one or more * contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. jclouds 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.bluelock.vcloud.vcenterprise; import org.jclouds.providers.BaseProviderMetadataTest; import org.jclouds.providers.ProviderMetadata; import org.testng.annotations.Test; /** * * @author Adrian Cole */ @Test(groups = "unit", testName = "BluelockVCloudEnterpriseProviderTest") public class BluelockVCloudEnterpriseProviderTest extends BaseProviderMetadataTest { public BluelockVCloudEnterpriseProviderTest() { super(new BluelockVCloudEnterpriseProviderMetadata(), ProviderMetadata.COMPUTE_TYPE); } }
[ "adrian@jclouds.org" ]
adrian@jclouds.org
37373b4222118419241b5a262f740130f3809bca
670087d451b0abb26197cefeb02c25dc4a032975
/distributed-upms/distributed-upms-dao/src/main/java/com/distributed/upms/dao/model/UpmsLog.java
26ee50a2e0501bfe6de597ba7779abe48424e436
[]
no_license
FullDeveloper/distributed-common
5ede6144c09a539a275b7f114c8ee2aea19732f6
72c2ec9ad6475904e45ab6d542a3673900efdd3e
refs/heads/master
2021-05-14T06:23:12.583296
2018-01-08T08:39:23
2018-01-08T08:39:23
116,241,121
0
0
null
null
null
null
UTF-8
Java
false
false
7,735
java
package com.distributed.upms.dao.model; import java.io.Serializable; public class UpmsLog implements Serializable { /** * 编号 * * @mbg.generated */ private Integer logId; /** * 操作描述 * * @mbg.generated */ private String description; /** * 操作用户 * * @mbg.generated */ private String username; /** * 操作时间 * * @mbg.generated */ private Long startTime; /** * 消耗时间 * * @mbg.generated */ private Integer spendTime; /** * 根路径 * * @mbg.generated */ private String basePath; /** * URI * * @mbg.generated */ private String uri; /** * URL * * @mbg.generated */ private String url; /** * 请求类型 * * @mbg.generated */ private String method; /** * 用户标识 * * @mbg.generated */ private String userAgent; /** * IP地址 * * @mbg.generated */ private String ip; /** * 权限值 * * @mbg.generated */ private String permissions; private String parameter; private String result; private static final long serialVersionUID = 1L; public Integer getLogId() { return logId; } public void setLogId(Integer logId) { this.logId = logId; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public Long getStartTime() { return startTime; } public void setStartTime(Long startTime) { this.startTime = startTime; } public Integer getSpendTime() { return spendTime; } public void setSpendTime(Integer spendTime) { this.spendTime = spendTime; } public String getBasePath() { return basePath; } public void setBasePath(String basePath) { this.basePath = basePath; } public String getUri() { return uri; } public void setUri(String uri) { this.uri = uri; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public String getMethod() { return method; } public void setMethod(String method) { this.method = method; } public String getUserAgent() { return userAgent; } public void setUserAgent(String userAgent) { this.userAgent = userAgent; } public String getIp() { return ip; } public void setIp(String ip) { this.ip = ip; } public String getPermissions() { return permissions; } public void setPermissions(String permissions) { this.permissions = permissions; } public String getParameter() { return parameter; } public void setParameter(String parameter) { this.parameter = parameter; } public String getResult() { return result; } public void setResult(String result) { this.result = result; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", logId=").append(logId); sb.append(", description=").append(description); sb.append(", username=").append(username); sb.append(", startTime=").append(startTime); sb.append(", spendTime=").append(spendTime); sb.append(", basePath=").append(basePath); sb.append(", uri=").append(uri); sb.append(", url=").append(url); sb.append(", method=").append(method); sb.append(", userAgent=").append(userAgent); sb.append(", ip=").append(ip); sb.append(", permissions=").append(permissions); sb.append(", parameter=").append(parameter); sb.append(", result=").append(result); sb.append("]"); return sb.toString(); } @Override public boolean equals(Object that) { if (this == that) { return true; } if (that == null) { return false; } if (getClass() != that.getClass()) { return false; } UpmsLog other = (UpmsLog) that; return (this.getLogId() == null ? other.getLogId() == null : this.getLogId().equals(other.getLogId())) && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription())) && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername())) && (this.getStartTime() == null ? other.getStartTime() == null : this.getStartTime().equals(other.getStartTime())) && (this.getSpendTime() == null ? other.getSpendTime() == null : this.getSpendTime().equals(other.getSpendTime())) && (this.getBasePath() == null ? other.getBasePath() == null : this.getBasePath().equals(other.getBasePath())) && (this.getUri() == null ? other.getUri() == null : this.getUri().equals(other.getUri())) && (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl())) && (this.getMethod() == null ? other.getMethod() == null : this.getMethod().equals(other.getMethod())) && (this.getUserAgent() == null ? other.getUserAgent() == null : this.getUserAgent().equals(other.getUserAgent())) && (this.getIp() == null ? other.getIp() == null : this.getIp().equals(other.getIp())) && (this.getPermissions() == null ? other.getPermissions() == null : this.getPermissions().equals(other.getPermissions())) && (this.getParameter() == null ? other.getParameter() == null : this.getParameter().equals(other.getParameter())) && (this.getResult() == null ? other.getResult() == null : this.getResult().equals(other.getResult())); } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getLogId() == null) ? 0 : getLogId().hashCode()); result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode()); result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode()); result = prime * result + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); result = prime * result + ((getSpendTime() == null) ? 0 : getSpendTime().hashCode()); result = prime * result + ((getBasePath() == null) ? 0 : getBasePath().hashCode()); result = prime * result + ((getUri() == null) ? 0 : getUri().hashCode()); result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode()); result = prime * result + ((getMethod() == null) ? 0 : getMethod().hashCode()); result = prime * result + ((getUserAgent() == null) ? 0 : getUserAgent().hashCode()); result = prime * result + ((getIp() == null) ? 0 : getIp().hashCode()); result = prime * result + ((getPermissions() == null) ? 0 : getPermissions().hashCode()); result = prime * result + ((getParameter() == null) ? 0 : getParameter().hashCode()); result = prime * result + ((getResult() == null) ? 0 : getResult().hashCode()); return result; } }
[ "1875222156@qq.com" ]
1875222156@qq.com
a169b9e139967837ce155de6988f0b79e125186e
17d07d4207bcdcacd9f0f7792031f803a8f56106
/src/com/servlet/admin/AddViewServlet.java
9cb1ffb9f62764173ef96e2f49f40fbe1f76139f
[]
no_license
KTLeYing/guidemanagesystem
936e59e3f7431f88dc66d27d934bcafd5647392c
a58b3eb3140e696e114297846474a53041359573
refs/heads/master
2023-03-23T19:41:14.947236
2021-03-17T17:30:27
2021-03-17T17:30:27
266,751,636
8
0
null
null
null
null
UTF-8
Java
false
false
2,061
java
package com.servlet.admin; import com.dao.AdminDao; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; @WebServlet("/AddViewServlet") public class AddViewServlet extends HttpServlet { @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { req.setCharacterEncoding("utf-8"); resp.setCharacterEncoding("utf-8"); resp.setContentType("text/html;charset=utf-8"); //获取请求参数 String vid = req.getParameter("vid"); String vname = req.getParameter("vname"); String ranking = req.getParameter("ranking"); String type = req.getParameter("type"); String price = req.getParameter("price"); String grade = req.getParameter("grade"); String openTime = req.getParameter("openTime"); String location = req.getParameter("location"); Double grade1 = Double.valueOf(grade); String sql = "select count(*) as num from viewspot where vid = ?"; Object[] objects = {vid}; int num = AdminDao.findTotalCount(sql, objects); System.out.println(num); if (num == 0){//不存在记录 sql = "insert into viewspot values(?, ?, ?, ?, ?, ?, ?, ?)"; Object[] objects1 = {vid, vname, ranking, type, price, grade1, openTime, location}; int num1 = AdminDao.executeUpdate(sql, objects1); if (num1 > 0){ req.getRequestDispatcher("/ViewListByPageServlet?curPage=1&rows=8").forward(req, resp); } }else {//已存在记录 req.getRequestDispatcher("/view/others/addfailed.jsp").forward(req, resp); } } @Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { this.doGet(req, resp); } }
[ "2198902814@qq.com" ]
2198902814@qq.com
2d8c852b7ead19da0f2807a563c27795ad6a36fd
cdb9a85363ffa08aa34782e7fbfac83eee4ce23d
/src/org/lwjglx/debug/org/lwjgl/opengl/ARBBaseInstance.java
526fe82519e5d5b4177c90ae6da42f89d3e8bb55
[ "MIT" ]
permissive
LWJGLX/debug
5673a2842b4c5c53d546409cdf1628e45fb1ee5b
b4982e0b10cf57aa0a31cbec8aea7597eee4a06a
refs/heads/main
2023-01-19T17:43:53.342897
2023-01-13T09:53:48
2023-01-13T09:53:48
98,117,940
35
9
MIT
2022-04-24T16:13:47
2017-07-23T18:40:51
Java
UTF-8
Java
false
false
6,540
java
/* * (C) Copyright 2017 Kai Burjack 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 org.lwjglx.debug.org.lwjgl.opengl; import static org.lwjglx.debug.RT.*; import static org.lwjglx.debug.org.lwjgl.opengl.Context.*; import java.nio.ByteBuffer; import java.nio.IntBuffer; import java.nio.ShortBuffer; import org.lwjglx.debug.Properties; import org.lwjglx.debug.RT; public class ARBBaseInstance { public static void glDrawArraysInstancedBaseInstance(int mode, int first, int count, int primcount, int baseinstance) { if (Properties.VALIDATE.enabled) { checkBeforeDrawCall(); } org.lwjgl.opengl.ARBBaseInstance.glDrawArraysInstancedBaseInstance(mode, first, count, primcount, baseinstance); RT.draw(count * primcount); } public static void glDrawElementsInstancedBaseInstance(int mode, int count, int type, long indices, int primcount, int baseinstance) { if (Properties.VALIDATE.enabled) { int ibo = org.lwjgl.opengl.GL11.glGetInteger(org.lwjgl.opengl.GL15.GL_ELEMENT_ARRAY_BUFFER_BINDING); if (ibo == 0) { throwISEOrLogError("glDrawElementsInstancedBaseInstance called with index offset but no ELEMENT_ARRAY_BUFFER bound"); } checkBeforeDrawCall(); } org.lwjgl.opengl.ARBBaseInstance.glDrawElementsInstancedBaseInstance(mode, count, type, indices, primcount, baseinstance); RT.draw(count * primcount); } public static void glDrawElementsInstancedBaseInstance(int mode, int type, ByteBuffer indices, int primcount, int baseinstance) { if (Properties.VALIDATE.enabled) { checkBeforeDrawCall(); } org.lwjgl.opengl.ARBBaseInstance.glDrawElementsInstancedBaseInstance(mode, type, indices, primcount, baseinstance); RT.draw(indices.remaining() * primcount); } public static void glDrawElementsInstancedBaseInstance(int mode, ByteBuffer indices, int primcount, int baseinstance) { if (Properties.VALIDATE.enabled) { checkBeforeDrawCall(); } org.lwjgl.opengl.ARBBaseInstance.glDrawElementsInstancedBaseInstance(mode, indices, primcount, baseinstance); RT.draw(indices.remaining() * primcount); } public static void glDrawElementsInstancedBaseInstance(int mode, ShortBuffer indices, int primcount, int baseinstance) { if (Properties.VALIDATE.enabled) { checkBeforeDrawCall(); } org.lwjgl.opengl.ARBBaseInstance.glDrawElementsInstancedBaseInstance(mode, indices, primcount, baseinstance); RT.draw(indices.remaining() * primcount); } public static void glDrawElementsInstancedBaseInstance(int mode, IntBuffer indices, int primcount, int baseinstance) { if (Properties.VALIDATE.enabled) { checkBeforeDrawCall(); } org.lwjgl.opengl.ARBBaseInstance.glDrawElementsInstancedBaseInstance(mode, indices, primcount, baseinstance); RT.draw(indices.remaining() * primcount); } public static void glDrawElementsInstancedBaseVertexBaseInstance(int mode, int count, int type, long indices, int primcount, int basevertex, int baseinstance) { if (Properties.VALIDATE.enabled) { int ibo = org.lwjgl.opengl.GL11.glGetInteger(org.lwjgl.opengl.GL15.GL_ELEMENT_ARRAY_BUFFER_BINDING); if (ibo == 0) { throwISEOrLogError("glDrawElementsInstancedBaseVertexBaseInstance called with index offset but no ELEMENT_ARRAY_BUFFER bound"); } checkBeforeDrawCall(); } org.lwjgl.opengl.ARBBaseInstance.glDrawElementsInstancedBaseVertexBaseInstance(mode, count, type, indices, primcount, basevertex, baseinstance); RT.draw(count * primcount); } public static void glDrawElementsInstancedBaseVertexBaseInstance(int mode, int type, ByteBuffer indices, int primcount, int basevertex, int baseinstance) { if (Properties.VALIDATE.enabled) { checkBeforeDrawCall(); } org.lwjgl.opengl.ARBBaseInstance.glDrawElementsInstancedBaseVertexBaseInstance(mode, type, indices, primcount, basevertex, baseinstance); RT.draw(indices.remaining() * primcount); } public static void glDrawElementsInstancedBaseVertexBaseInstance(int mode, ByteBuffer indices, int primcount, int basevertex, int baseinstance) { if (Properties.VALIDATE.enabled) { checkBeforeDrawCall(); } org.lwjgl.opengl.ARBBaseInstance.glDrawElementsInstancedBaseVertexBaseInstance(mode, indices, primcount, basevertex, baseinstance); RT.draw(indices.remaining() * primcount); } public static void glDrawElementsInstancedBaseVertexBaseInstance(int mode, ShortBuffer indices, int primcount, int basevertex, int baseinstance) { if (Properties.VALIDATE.enabled) { checkBeforeDrawCall(); } org.lwjgl.opengl.ARBBaseInstance.glDrawElementsInstancedBaseVertexBaseInstance(mode, indices, primcount, basevertex, baseinstance); RT.draw(indices.remaining() * primcount); } public static void glDrawElementsInstancedBaseVertexBaseInstance(int mode, IntBuffer indices, int primcount, int basevertex, int baseinstance) { if (Properties.VALIDATE.enabled) { checkBeforeDrawCall(); } org.lwjgl.opengl.ARBBaseInstance.glDrawElementsInstancedBaseVertexBaseInstance(mode, indices, primcount, basevertex, baseinstance); RT.draw(indices.remaining() * primcount); } }
[ "kburjack@googlemail.com" ]
kburjack@googlemail.com
d33f578ac20be37af586f4ee5c42764fd03069d5
fea92e601d135fe11195e24b0501bb577fc7dcd7
/Desktop/AugustAdp1/orgman-master/src/test/java/ac/za/cput/adp3/xyzcongolmerate/factory/org/OrganisationFactoryTest.java
3de8ad94e64a645bb929ab96501cef704229fe00
[]
no_license
MugammadRihaad/assig11
ce0a0ea176de8ab3eef86b69cb702db482a777b3
b2aad5a05e37627eb4a907f461d46d16d8cc97d5
refs/heads/master
2021-07-11T08:08:17.898085
2019-09-02T21:03:16
2019-09-02T21:03:16
210,214,993
0
0
null
2020-10-13T16:13:07
2019-09-22T21:13:06
Java
UTF-8
Java
false
false
842
java
package ac.za.cput.adp3.xyzcongolmerate.factory.org; import ac.za.cput.adp3.xyzcongolmerate.domain.org.Organisation; import org.junit.Assert; import org.junit.Test; import static org.junit.Assert.*; public class OrganisationFactoryTest { @Test public void buildOrganisation() { String testName="test"; Organisation course = OrganisationFactory.buildOrganisation(testName); Assert.assertNotNull(course.getOrgCode()); Assert.assertNotNull(course); /** * Your implementation goes here * * INSTRUCTION * 1. Remove line [//TODO: implement method body ONLY!] * 2. Remove line [throw new UnsupportedOperationException("Not yet supported.");] * 3. Test the OrganisationFactory class * 4. Assert that the id is generated. */ } }
[ "mugammadrihaadvanblerck@gmail.com" ]
mugammadrihaadvanblerck@gmail.com
2995cf73eeb519e0a45ab660c7b3b335028f77c7
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XWIKI-13138-5-26-NSGA_II-LineCoverage:ExceptionType:StackTraceSimilarity/com/xpn/xwiki/store/XWikiCacheStore_ESTest.java
dd7e8c3c449ed9ffbd4a8dddf6a824abcf959461
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
556
java
/* * This file was automatically generated by EvoSuite * Tue Apr 07 07:44:59 UTC 2020 */ package com.xpn.xwiki.store; import org.junit.Test; import static org.junit.Assert.*; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true) public class XWikiCacheStore_ESTest extends XWikiCacheStore_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
02f568dd833f1954194a2d3d8ae243dc7cd23660
d5edb4125119d5ac7430653105cce91778ac9078
/src/main/java/raj/aayush/system/design/deckofcard/Hand.java
cfb5e3fed950ee8215a06fd734e3eebd8b164785
[]
no_license
rakeshpriyad/problem-solving-ds
229386f4413e0d73b6118722e6fc9275b8cb59d3
57278d1c7124769260c5afa7eb0eb8d0f1a73de6
refs/heads/master
2020-03-26T14:32:11.652736
2018-08-16T17:29:58
2018-08-16T17:29:58
144,992,610
0
0
null
null
null
null
UTF-8
Java
false
false
415
java
package raj.aayush.system.design.deckofcard; import java.util.ArrayList; public class Hand <T extends Card> { protected ArrayList<T> cards = new ArrayList<T>(); public int score() { int score = 0; for (T card : cards) { score += card.value(); } return score; } public void addCard(T card) { cards.add(card); } public void print() { for (Card card : cards) { card.print(); } } }
[ "rakeshpriyad@gmail.com" ]
rakeshpriyad@gmail.com
36d0926675c221d45d2fe42e307da33051fdfc0c
40a5951295646e5f15181ddeea8f602f35315c4b
/src/test/java/fr/expertsystem/data/TestRuleBuilder.java
dbde35c71f6fde3f4ead1bc4c6ae4e336ad144f0
[]
no_license
Ourten/Expert-System
904a78b676284a4055701fd8ec79e065cad6fad3
ea3f257d136c55b065d2b09a9c457ad75b508078
refs/heads/master
2020-03-24T17:58:06.821371
2018-08-08T15:58:18
2018-08-08T15:58:18
142,877,722
0
0
null
null
null
null
UTF-8
Java
false
false
599
java
package fr.expertsystem.data; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; public class TestRuleBuilder { @Test void simpleRule() { Rule rule = Rule.build().fact("A").cond(Conditions.AND).fact("B").imply().fact("C").create(); Fact A = new Fact("A"); Fact B = new Fact("B"); Fact C = new Fact("C"); assertThat(rule.getDependencies()).contains(A, B); assertThat(rule.getDependents()).containsOnly(C); assertThat(rule.toString()).isEqualToIgnoringWhitespace("A + B => C"); } }
[ "ourtencoop@gmail.com" ]
ourtencoop@gmail.com
2f666014b84a79dcafd8b700a7b071e8c4e2e117
acb7217f9eb7c4be1586cd3bff4c4f177b79321a
/xmzhProject/src/com/gotop/reportjbpm/model/ErrorStatistic.java
1d36c812a55d1d29753c0c8035150110edb32ec2
[]
no_license
2416879170/XMpro
4f4650eff3428c12edfd9ade5eb8b7af0b375904
676dbcbf05ba25e7b49e623c0ebd3998b3f11535
refs/heads/master
2020-06-25T22:03:53.991120
2017-07-12T10:11:40
2017-07-12T10:11:40
94,502,163
0
0
null
null
null
null
UTF-8
Java
false
false
4,118
java
package com.gotop.reportjbpm.model; import java.io.Serializable; public class ErrorStatistic implements Serializable{ // 报单起始时间 private String startTime; // 报单结束时间 private String endTime; // 机构名称 private String nextOrgName; // 一级分类 名称 private String oneCategory; // 贷种分类 名称 private String loanCategory; // 一级支行 机构号 private String orgCodeOne; // 一级支行 机构名 private String orgNameOne; // 二级支行 机构号 private String orgCodeTwo; // 二级支行 机构名 private String orgNameTwo; // 主调信贷员 private String creatorName; // 辅调信贷员 private String fdxdy; // 营业主管 private String yxzg; // 差错情况 private String mistakeContent; // 扣罚金额 private String punishBal; // 差错次数 private String mistakeNumber; // 差错环节 private String taskName; // 提出差错人 private String empName; // 提出差错时间 private String addTime; // 客户名称 private String custName; // 报单时间 private String reportTime; public String getStartTime() { return startTime; } public void setStartTime(String startTime) { this.startTime = startTime; } public String getEndTime() { return endTime; } public void setEndTime(String endTime) { this.endTime = endTime; } public String getNextOrgName() { return nextOrgName; } public void setNextOrgName(String nextOrgName) { this.nextOrgName = nextOrgName; } public String getFdxdy() { return fdxdy; } public void setFdxdy(String fdxdy) { this.fdxdy = fdxdy; } public String getYxzg() { return yxzg; } public void setYxzg(String yxzg) { this.yxzg = yxzg; } public String getMistakeContent() { return mistakeContent; } public void setMistakeContent(String mistakeContent) { this.mistakeContent = mistakeContent; } public String getPunishBal() { return punishBal; } public void setPunishBal(String punishBal) { this.punishBal = punishBal; } public String getMistakeNumber() { return mistakeNumber; } public void setMistakeNumber(String mistakeNumber) { this.mistakeNumber = mistakeNumber; } public String getTaskName() { return taskName; } public void setTaskName(String taskName) { this.taskName = taskName; } public String getEmpName() { return empName; } public void setEmpName(String empName) { this.empName = empName; } public String getAddTime() { return addTime; } public void setAddTime(String addTime) { this.addTime = addTime; } public String getCustName() { return custName; } public void setCustName(String custName) { this.custName = custName; } public String getReportTime() { return reportTime; } public void setReportTime(String reportTime) { this.reportTime = reportTime; } public String getOneCategory() { return oneCategory; } public void setOneCategory(String oneCategory) { this.oneCategory = oneCategory; } public String getLoanCategory() { return loanCategory; } public void setLoanCategory(String loanCategory) { this.loanCategory = loanCategory; } public String getOrgCodeOne() { return orgCodeOne; } public void setOrgCodeOne(String orgCodeOne) { this.orgCodeOne = orgCodeOne; } public String getOrgNameOne() { return orgNameOne; } public void setOrgNameOne(String orgNameOne) { this.orgNameOne = orgNameOne; } public String getOrgCodeTwo() { return orgCodeTwo; } public void setOrgCodeTwo(String orgCodeTwo) { this.orgCodeTwo = orgCodeTwo; } public String getOrgNameTwo() { return orgNameTwo; } public void setOrgNameTwo(String orgNameTwo) { this.orgNameTwo = orgNameTwo; } public String getCreatorName() { return creatorName; } public void setCreatorName(String creatorName) { this.creatorName = creatorName; } private Integer count; public Integer getCount() { return count; } public void setCount(Integer count) { this.count = count; } }
[ "2416879170@qq.com" ]
2416879170@qq.com
5449d33a664babbee327b839c4fe4ae79a848132
e58a8e0fb0cfc7b9a05f43e38f1d01a4d8d8cf1f
/RiskyRescue/src/com/puttysoftware/riskyrescue/Support.java
76eea6f3112335b0ee8283e01fb5b6f8360a2de8
[ "Unlicense" ]
permissive
retropipes/older-java-games
777574e222f30a1dffe7936ed08c8bfeb23a21ba
786b0c165d800c49ab9977a34ec17286797c4589
refs/heads/master
2023-04-12T14:28:25.525259
2021-05-15T13:03:54
2021-05-15T13:03:54
235,693,016
0
0
null
null
null
null
UTF-8
Java
false
false
4,467
java
/* Risky Rescue: A Roguelike RPG Copyright (C) 2013-2014 Eric Ahnell Any questions should be directed to the author via email at: support@puttysoftware.com */ package com.puttysoftware.riskyrescue; import java.io.File; import com.puttysoftware.commondialogs.CommonDialogs; import com.puttysoftware.errorlogger.ErrorLogger; import com.puttysoftware.fileutils.DirectoryUtilities; import com.puttysoftware.riskyrescue.creatures.Creature; import com.puttysoftware.riskyrescue.scenario.Scenario; public class Support { // Constants private static final String PROGRAM_NAME = "RiskyRescue"; private static final String ERROR_MESSAGE = "Perhaps a bug is to blame for this error message.\n" + "Include the debug log with your bug report.\n" + "Report bugs at the project's GitHub issue tracker:\n" + "https://github.com/PuttySoftware/risky-rescue/issues/new"; private static final String SCRIPT_ERROR_MESSAGE = "A problem has occurred while running a script.\n" + "This problem has been logged."; private static final String ERROR_TITLE = "RiskyRescue Error"; private static final String NF_ERROR_TITLE = "RiskyRescue Script Error"; private static final ErrorLogger elog = new ErrorLogger( Support.PROGRAM_NAME); private static final int VERSION_MAJOR = 1; private static final int VERSION_MINOR = 1; private static final int VERSION_BUGFIX = 0; private static Scenario scen = null; private static final int BATTLE_MAP_SIZE = 9; private static final int BATTLE_MAP_SIZE_DEBUG = 9; private static final int BATTLE_MAP_FLOOR_SIZE = 1; private static final int BATTLE_MAP_FLOOR_SIZE_DEBUG = 1; private static final int GAME_MAP_SIZE = 64; private static final int GAME_MAP_SIZE_DEBUG = 16; private static final int GAME_MAP_FLOOR_SIZE = 1; private static final int GAME_MAP_FLOOR_SIZE_DEBUG = 1; private static final boolean debugMode = false; // Methods public static ErrorLogger getErrorLogger() { String suffix; if (Support.inDebugMode()) { suffix = " (DEBUG)"; } else { suffix = ""; } // Display error message CommonDialogs.showErrorDialog(Support.ERROR_MESSAGE, Support.ERROR_TITLE + suffix); return Support.elog; } public static ErrorLogger getNonFatalLogger() { String suffix; if (Support.inDebugMode()) { suffix = " (DEBUG)"; } else { suffix = ""; } // Display error message CommonDialogs.showErrorDialog(Support.SCRIPT_ERROR_MESSAGE, Support.NF_ERROR_TITLE + suffix); return Support.elog; } public static boolean inDebugMode() { return Support.debugMode; } public static Scenario getScenario() { return Support.scen; } public static void deleteScenario() { final File scenFile = new File(Support.scen.getBasePath()); if (scenFile.isDirectory() && scenFile.exists()) { try { DirectoryUtilities.removeDirectory(scenFile); } catch (final Throwable t) { // Ignore } } } public static void createScenario() { Support.scen = new Scenario(); } public static int getBattleMapSize() { if (Support.inDebugMode()) { return Support.BATTLE_MAP_SIZE_DEBUG; } return Support.BATTLE_MAP_SIZE; } public static int getBattleMapFloorSize() { if (Support.inDebugMode()) { return Support.BATTLE_MAP_FLOOR_SIZE_DEBUG; } return Support.BATTLE_MAP_FLOOR_SIZE; } public static int getGameMapSize() { if (Support.inDebugMode()) { return Support.GAME_MAP_SIZE_DEBUG; } return Support.GAME_MAP_SIZE; } public static int getGameMapFloorSize() { if (Support.inDebugMode()) { return Support.GAME_MAP_FLOOR_SIZE_DEBUG; } return Support.GAME_MAP_FLOOR_SIZE; } public static void preInit() { // Compute action cap Creature.computeActionCap(Support.BATTLE_MAP_SIZE, Support.BATTLE_MAP_SIZE); } public static String getVersionString() { return "" + Support.VERSION_MAJOR + "." + Support.VERSION_MINOR + "." + Support.VERSION_BUGFIX; } }
[ "eric.ahnell@puttysoftware.com" ]
eric.ahnell@puttysoftware.com
41d0501beab980b6b7414277b482302193a1c53d
db2d7241afcb02a7de80503bf492fa02251f9018
/services/eps/src/main/java/com/huaweicloud/sdk/eps/v1/model/ShowEPQuotaRequest.java
c11ea02a554ceb394a3e6423200182699d1aa964
[ "Apache-2.0" ]
permissive
yasuor/huaweicloud-sdk-java-v3
64359e3ab599144d1dc2df08fb15f8e404295be5
3407632f294cdd40a62d4f9167f9708d95464cb8
refs/heads/master
2022-11-23T23:38:12.977127
2020-07-30T08:46:12
2020-07-30T08:46:12
286,420,644
1
0
NOASSERTION
2020-08-10T08:35:22
2020-08-10T08:35:21
null
UTF-8
Java
false
false
702
java
package com.huaweicloud.sdk.eps.v1.model; import java.util.function.Consumer; import java.util.Objects; /** * Request Object */ public class ShowEPQuotaRequest { @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } return true; } @Override public int hashCode() { return Objects.hash(); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ShowEPQuotaRequest {\n"); sb.append("}"); return sb.toString(); } }
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
10e8d8c66796267648bafe47e140628402b346a4
0cfa4343f83eea4288bafeef64ad2f7cb7a499ba
/app/src/main/java/com/example/huichuanyi/adapter/HomeLyDetailsAdapter.java
807baceb852c2e0c9079e7c0b97c6ff026bbd4a4
[]
no_license
wodejiusannian/HuiChuanYi
4a049b2a901d6b2dc868ccff5a7227c2462315f0
14aa2cc99ec1b0a1c1c085662d6fb324f3a714fc
refs/heads/master
2020-12-02T18:16:53.406731
2018-07-10T01:14:28
2018-07-10T01:14:28
81,194,590
0
0
null
null
null
null
UTF-8
Java
false
false
1,300
java
package com.example.huichuanyi.adapter; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import com.bumptech.glide.Glide; import com.example.huichuanyi.common_view.model.LyBanner; import com.jude.rollviewpager.RollPagerView; import com.jude.rollviewpager.adapter.LoopPagerAdapter; import java.util.List; public class HomeLyDetailsAdapter extends LoopPagerAdapter { private List<LyBanner.item_1> mBanner; private Context mContext; public HomeLyDetailsAdapter(RollPagerView viewPager, List<LyBanner.item_1> banner, Context context) { super(viewPager); mBanner = banner; mContext = context; } @Override public View getView(ViewGroup container, int position) { final ImageView view = new ImageView(mContext); final LyBanner.item_1 item_1 = mBanner.get(position); Glide.with(mContext).load(item_1.getPic_url()).into(view); view.setScaleType(ImageView.ScaleType.CENTER_CROP); view.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)); return view; } @Override public int getRealCount() { return mBanner == null ? 0 : mBanner.size(); } }
[ "752443668@qq.com" ]
752443668@qq.com
ac59d0f8ae861f2b051dd79ebb6d0559089a6e7d
82eba08b9a7ee1bd1a5f83c3176bf3c0826a3a32
/ZmailSoap/src/wsdl-test/generated/zcsclient/admin/testSearchNode.java
d8d188921a4cf9a79b30d4e605171184d7fb5a98
[ "MIT" ]
permissive
keramist/zmailserver
d01187fb6086bf3784fe180bea2e1c0854c83f3f
762642b77c8f559a57e93c9f89b1473d6858c159
refs/heads/master
2021-01-21T05:56:25.642425
2013-10-21T11:27:05
2013-10-22T12:48:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,285
java
/* * ***** BEGIN LICENSE BLOCK ***** * * Zimbra Collaboration Suite Server * Copyright (C) 2011, 2012 VMware, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * http://www.zimbra.com/license. * * Software distributed under the License is distributed on an "AS IS" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. * * ***** END LICENSE BLOCK ***** */ package generated.zcsclient.admin; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for searchNode complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="searchNode"> * &lt;complexContent> * &lt;extension base="{urn:zmailAdmin}adminAttrsImpl"> * &lt;sequence> * &lt;/sequence> * &lt;/extension> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "searchNode") public class testSearchNode extends testAdminAttrsImpl { }
[ "bourgerie.quentin@gmail.com" ]
bourgerie.quentin@gmail.com
0c12a8c71fb6132c507a2deeb2288dcd8c805844
32afba92ea9df5addfff6bbdd6d2aed61513fc39
/ImSdk/src/main/java/com/dachen/imsdk/utils/audio/RecordStateListener.java
456305fcc4d4584c21869c3910f1932efe5b5daa
[]
no_license
butaotao/ImSdkProject
8f6f3e372ff86afd4481a787796ad5f31cd11280
59acc7c503810772b7ba058aa57857a977706581
refs/heads/master
2020-04-13T16:43:49.858622
2016-09-13T03:46:15
2016-09-13T03:46:15
68,102,408
0
0
null
null
null
null
UTF-8
Java
false
false
406
java
package com.dachen.imsdk.utils.audio; public interface RecordStateListener { public void onRecordStarting();// public void onRecordStart();// public void onRecordFinish(String file); public void onRecordCancel(); public void onRecordVolumeChange(int v);// public void onRecordTimeChange(int seconds);// public void onRecordError();// public void onRecordTooShoot();// 录音时间太短 }
[ "1802928215@qq.com" ]
1802928215@qq.com
cf7c1ea8cac982933a84612dac08bfb12f84b1f9
ddf23fa20f00227a4b4daf97c5e5f67870fe0158
/src/main/java/wasliecore/misc/infopackets/TargetInformation.java
e96c2fb2ac4b189a1a581b94e8ef1921c6539d8f
[]
no_license
wmrojer/WaslieCore
137fe28c67f6657882dc7325270af9f8d205a3ff
fe678f9322f033db2161bdc7d90b379b2ad79f4a
refs/heads/master
2021-01-21T03:02:22.838255
2015-05-28T23:58:40
2015-05-28T23:58:40
36,303,688
3
1
null
2015-05-26T15:03:46
2015-05-26T15:03:46
null
UTF-8
Java
false
false
349
java
package wasliecore.misc.infopackets; import net.minecraft.block.Block; public class TargetInformation { public TargetInformation(Block block, int meta, int x, int y, int z){ this.block = block; this.meta = meta; this.x = x; this.y = y; this.z = z; } public Block block; public int meta; public int x; public int y; public int z; }
[ "wasliebob@live.nl" ]
wasliebob@live.nl
edaa1e2c330b4807b22caaf1ed190fc111439db6
72b32da4e06500cc705ecea0c949d81fc03dcabb
/Code/chapter_07/examples/unit_7.5/unit_7.5.3/Book.java
37fb90b3ae88e96e319f3ae272f32d67a2015680
[]
no_license
desioc/JFACode
358c941f52a0a6a75e0c8be6ce4708296aa11e64
e0f40b14dde2fe43b3193fa02a865bc875e937e7
refs/heads/master
2023-05-15T03:01:00.575551
2021-06-09T07:48:52
2021-06-09T07:48:52
347,454,318
1
0
null
null
null
null
UTF-8
Java
false
false
1,087
java
public class Book { private String title; private String author; private String publisher; private int numberOfPages; private int price; public Book (String title, String author){ this(title); setAuthor(author); } public Book (String title) { this.title = title; } public void setPrice(int price) { this.price = price; } public int getPrice() { return price; } public void setNumberOfPages(int numberOfPages) { this.numberOfPages = numberOfPages; } public int getNumberOfPages() { return numberOfPages; } public void setPublisher(String publisher) { this.publisher = publisher; } public String getPublisher() { return publisher; } public void setAuthor(String author) { this.author = author; } public String getAuthor() { return author; } public void setTitle(String title) { this.title = title; } public String getTitle() { return title; } }
[ "61605795+desioc@users.noreply.github.com" ]
61605795+desioc@users.noreply.github.com
9b886646b04700e978463d6c7f1133e0d0510599
d7524fa49fda33cbf70a6179fc546392bca478dc
/app/src/main/java/chart/chart/library/renderer/scatter/ChevronUpShapeRenderer.java
f597e0cb1233f03b691c1cd6c63ae5c76a4d47bb
[]
no_license
avik1990/Portal
11d554cbec0eb9f877ad48601b9205c507f0a6c7
c2fc776eaed7fd47d8c7d81b110da2d62955e838
refs/heads/master
2023-04-05T14:29:41.533061
2021-04-07T12:26:48
2021-04-07T12:26:48
347,930,827
0
0
null
null
null
null
UTF-8
Java
false
false
1,127
java
package chart.chart.library.renderer.scatter; import android.graphics.Canvas; import android.graphics.Paint; import chart.chart.library.interfaces.datasets.IScatterDataSet; import chart.chart.library.utils.Utils; import chart.chart.library.utils.ViewPortHandler; /** * Created by wajdic on 15/06/2016. * Created at Time 09:08 */ public class ChevronUpShapeRenderer implements IShapeRenderer { @Override public void renderShape(Canvas c, IScatterDataSet dataSet, ViewPortHandler viewPortHandler, float posX, float posY, Paint renderPaint) { final float shapeHalf = dataSet.getScatterShapeSize() / 2f; renderPaint.setStyle(Paint.Style.STROKE); renderPaint.setStrokeWidth(Utils.convertDpToPixel(1f)); c.drawLine( posX, posY - (2 * shapeHalf), posX + (2 * shapeHalf), posY, renderPaint); c.drawLine( posX, posY - (2 * shapeHalf), posX - (2 * shapeHalf), posY, renderPaint); } }
[ "avik1990@gmail.com" ]
avik1990@gmail.com
5958fd3d94bdb5ad96ea909ab5ca8d6fc339eb28
aafff9731c4fdc6d8256cb8b346da2225a7366e4
/codeplus/src/팰린드롬_Bottom_up_Q10942.java
bc0ae975bd55a1238cc128550fdf70ae324a2f7f
[]
no_license
omakasekim/algorithm_log
11b4ed50036de6979d349aaad1e44b6d0cb3d739
d8cbdf4ac8d31b6609a441ba6263071a69a530fc
refs/heads/master
2023-07-15T19:08:21.432587
2021-08-28T11:18:25
2021-08-28T11:18:25
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,119
java
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; for (int i=0; i<n; i++) { a[i] = sc.nextInt(); } boolean[][] d = new boolean[n][n]; for (int i=0; i<n; i++) { d[i][i] = true; } for (int i=0; i<n-1; i++) { if (a[i] == a[i+1]) { d[i][i+1] = true; } } for (int k=2; k<n; k++) { for (int i=0; i<n-k; i++) { int j = i+k; if (a[i] == a[j] && d[i+1][j-1]) { d[i][j] = true; } } } int m = sc.nextInt(); StringBuilder sb = new StringBuilder(); while (m-- > 0) { int s = sc.nextInt(); int e = sc.nextInt(); if (d[s-1][e-1]) { sb.append(1); } else { sb.append(0); } sb.append('\n'); } System.out.println(sb); } }
[ "hophfg@yahoo.co.kr" ]
hophfg@yahoo.co.kr
3eb99f86b83411d1af40d15b36a474ac7c404f04
4254a70f1a561a118917d1adf1a4584fa6e7dcb4
/ejemplo01/src/test/java/com/cairone/ejemplo01/AppTest.java
e527678d726d9cbf8933455f835f7bfb11f3efb8
[]
no_license
diegocairone/eiva-ejemplos
fbee382ef44ff0677be7401da5566727c4226073
f006fcbeb40e8d4d01cf2626f06a51c9c2cc73dc
refs/heads/master
2020-09-23T17:58:35.095072
2016-10-04T13:50:28
2016-10-04T13:50:28
67,808,552
0
0
null
null
null
null
UTF-8
Java
false
false
649
java
package com.cairone.ejemplo01; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App. */ public class AppTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ public AppTest( String testName ) { super( testName ); } /** * @return the suite of tests being tested */ public static Test suite() { return new TestSuite( AppTest.class ); } /** * Rigourous Test :-) */ public void testApp() { assertTrue( true ); } }
[ "diegocairone@gmail.com" ]
diegocairone@gmail.com
55392e8ad6402c820a6b1f42ea406e8f1156c97d
56afb8c79e15a1a5109377a1ba0c872fda2e5005
/java/blog/src/main/java/com/snow/ly/blog/common/repository/HideRepository.java
7e9526204acc5e1c5fe1f4ff776f52d7a4b7864a
[]
no_license
cqwu729/201803-ltxm
36f30877416698c49f787a686a2766b45d46db60
a3e465fab60aed924b188d4e208a74b072f89525
refs/heads/master
2020-04-11T11:45:22.167403
2018-12-14T09:02:57
2018-12-14T09:02:57
null
0
0
null
null
null
null
UTF-8
Java
false
false
325
java
package com.snow.ly.blog.common.repository; import com.snow.ly.blog.common.pojo.Hide; import org.springframework.data.mongodb.repository.MongoRepository; import java.util.stream.Stream; public interface HideRepository extends MongoRepository<Hide,String> { Stream<Hide> findByUserId(String userId); }
[ "997342977@qq.com" ]
997342977@qq.com
0538731da5e4e84615b97cf4904f3a5bad9c725a
4da9097315831c8639a8491e881ec97fdf74c603
/src/StockIT-v1-release_source_from_JADX/sources/com/google/android/gms/internal/measurement/zzdz.java
b63204958b41f253136ae6bd337594f6e2cffea8
[ "Apache-2.0" ]
permissive
atul-vyshnav/2021_IBM_Code_Challenge_StockIT
5c3c11af285cf6f032b7c207e457f4c9a5b0c7e1
25c26a4cc59a3f3e575f617b59acc202ee6ee48a
refs/heads/main
2023-08-11T06:17:05.659651
2021-10-01T08:48:06
2021-10-01T08:48:06
410,595,708
1
1
null
null
null
null
UTF-8
Java
false
false
373
java
package com.google.android.gms.internal.measurement; /* compiled from: com.google.android.gms:play-services-measurement-base@@17.2.0 */ abstract class zzdz implements zzed { zzdz() { } public final void remove() { throw new UnsupportedOperationException(); } public /* synthetic */ Object next() { return Byte.valueOf(zza()); } }
[ "57108396+atul-vyshnav@users.noreply.github.com" ]
57108396+atul-vyshnav@users.noreply.github.com
a2dd73c099d28dacaa5558aa0273bb4376ad6386
d883f3b07e5a19ff8c6eb9c3a4b03d9f910f27b2
/Model/DataModel/src/main/java/com/sandata/lab/data/model/jpub/model/PrInputTaxDetT.java
6abd505fc379561b245ff0957e7c57625eceb872
[]
no_license
dev0psunleashed/Sandata_SampleDemo
ec2c1f79988e129a21c6ddf376ac572485843b04
a1818601c59b04e505e45e33a36e98a27a69bc39
refs/heads/master
2021-01-25T12:31:30.026326
2017-02-20T11:49:37
2017-02-20T11:49:37
82,551,409
0
0
null
null
null
null
UTF-8
Java
false
false
4,104
java
package com.sandata.lab.data.model.jpub.model; import java.sql.SQLException; import java.sql.Connection; import oracle.jdbc.OracleTypes; import oracle.sql.ORAData; import oracle.sql.ORADataFactory; import oracle.sql.Datum; import oracle.sql.STRUCT; import oracle.jpub.runtime.MutableStruct; public class PrInputTaxDetT implements ORAData, ORADataFactory { public static final String _SQL_NAME = "COREDATA.PR_INPUT_TAX_DET_T"; public static final int _SQL_TYPECODE = OracleTypes.STRUCT; protected MutableStruct _struct; protected static int[] _sqlType = { 2,91,91,2,2,12,12,2 }; protected static ORADataFactory[] _factory = new ORADataFactory[8]; protected static final PrInputTaxDetT _PrInputTaxDetTFactory = new PrInputTaxDetT(); public static ORADataFactory getORADataFactory() { return _PrInputTaxDetTFactory; } /* constructors */ protected void _init_struct(boolean init) { if (init) _struct = new MutableStruct(new Object[8], _sqlType, _factory); } public PrInputTaxDetT() { _init_struct(true); } public PrInputTaxDetT(java.math.BigDecimal prInputTaxDetSk, java.sql.Timestamp recCreateTmstp, java.sql.Timestamp recUpdateTmstp, java.math.BigDecimal changeVersionId, java.math.BigDecimal prInputSk, String beId, String taxCode, java.math.BigDecimal taxAmt) throws SQLException { _init_struct(true); setPrInputTaxDetSk(prInputTaxDetSk); setRecCreateTmstp(recCreateTmstp); setRecUpdateTmstp(recUpdateTmstp); setChangeVersionId(changeVersionId); setPrInputSk(prInputSk); setBeId(beId); setTaxCode(taxCode); setTaxAmt(taxAmt); } /* ORAData interface */ public Datum toDatum(Connection c) throws SQLException { return _struct.toDatum(c, _SQL_NAME); } /* ORADataFactory interface */ public ORAData create(Datum d, int sqlType) throws SQLException { return create(null, d, sqlType); } protected ORAData create(PrInputTaxDetT o, Datum d, int sqlType) throws SQLException { if (d == null) return null; if (o == null) o = new PrInputTaxDetT(); o._struct = new MutableStruct((STRUCT) d, _sqlType, _factory); return o; } /* accessor methods */ public java.math.BigDecimal getPrInputTaxDetSk() throws SQLException { return (java.math.BigDecimal) _struct.getAttribute(0); } public void setPrInputTaxDetSk(java.math.BigDecimal prInputTaxDetSk) throws SQLException { _struct.setAttribute(0, prInputTaxDetSk); } public java.sql.Timestamp getRecCreateTmstp() throws SQLException { return (java.sql.Timestamp) _struct.getAttribute(1); } public void setRecCreateTmstp(java.sql.Timestamp recCreateTmstp) throws SQLException { _struct.setAttribute(1, recCreateTmstp); } public java.sql.Timestamp getRecUpdateTmstp() throws SQLException { return (java.sql.Timestamp) _struct.getAttribute(2); } public void setRecUpdateTmstp(java.sql.Timestamp recUpdateTmstp) throws SQLException { _struct.setAttribute(2, recUpdateTmstp); } public java.math.BigDecimal getChangeVersionId() throws SQLException { return (java.math.BigDecimal) _struct.getAttribute(3); } public void setChangeVersionId(java.math.BigDecimal changeVersionId) throws SQLException { _struct.setAttribute(3, changeVersionId); } public java.math.BigDecimal getPrInputSk() throws SQLException { return (java.math.BigDecimal) _struct.getAttribute(4); } public void setPrInputSk(java.math.BigDecimal prInputSk) throws SQLException { _struct.setAttribute(4, prInputSk); } public String getBeId() throws SQLException { return (String) _struct.getAttribute(5); } public void setBeId(String beId) throws SQLException { _struct.setAttribute(5, beId); } public String getTaxCode() throws SQLException { return (String) _struct.getAttribute(6); } public void setTaxCode(String taxCode) throws SQLException { _struct.setAttribute(6, taxCode); } public java.math.BigDecimal getTaxAmt() throws SQLException { return (java.math.BigDecimal) _struct.getAttribute(7); } public void setTaxAmt(java.math.BigDecimal taxAmt) throws SQLException { _struct.setAttribute(7, taxAmt); } }
[ "pradeep.ganesh@softcrylic.co.in" ]
pradeep.ganesh@softcrylic.co.in
fdcd641ac191abb894f50037d3d60f59b798b00f
59269e6549dd6c9d5a752e69591f3d5d11702e07
/ezyfox-hazelcast/src/test/java/com/tvd12/ezyfox/hazelcast/testing/service/impl/ExampleUserServiceImpl.java
758bba9235a2b1d6d7ed6af41be1272eecd1c025
[ "Apache-2.0" ]
permissive
trungthao1989/ezyfox
7d51e2eb7fa1de30d1b4185496e618a919ee88d4
88885d4ba61c79c6da791aff0b9229dc59ddb271
refs/heads/master
2020-05-26T12:25:59.843302
2019-05-21T17:14:54
2019-05-21T17:14:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,104
java
package com.tvd12.ezyfox.hazelcast.testing.service.impl; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import com.tvd12.ezyfox.hazelcast.service.EzySimpleHazelcastMapService; import com.tvd12.ezyfox.hazelcast.testing.entity.ExampleUser; import com.tvd12.ezyfox.hazelcast.testing.service.ExampleUserService; public class ExampleUserServiceImpl extends EzySimpleHazelcastMapService<String, ExampleUser> implements ExampleUserService { @Override public void saveUser(ExampleUser user) { map.set(user.getUsername(), user); } @Override public void saveUser(List<ExampleUser> users) { set(users); set(new HashMap<>()); } @Override public ExampleUser getUser(String username) { return map.get(username); } @Override protected String getMapName() { return "example_users"; } @Override public Map<String, ExampleUser> getUsers(Set<String> usernames) { return getMapByIds(usernames); } @Override public void deleteUser(String username) { remove(username); } @Override public void deleteAllUser() { clear(); } }
[ "itprono3@gmail.com" ]
itprono3@gmail.com
121c796a4c64d8ddb5106fd7b533dbafff8f7ce9
a94503718e5b517e0d85227c75232b7a238ef24f
/src/main/java/net/dryuf/comp/forum/jpadao/ForumHeaderDaoJpa.java
fb4518f7ba185cb1bfe1fc856026f13ec4750ded
[]
no_license
kvr000/dryuf-old-comp
795c457e6131bb0b08f538290ff96f8043933c9f
ebb4a10b107159032dd49b956d439e1994fc320a
refs/heads/master
2023-03-02T20:44:19.336992
2022-04-04T21:51:59
2022-04-04T21:51:59
229,681,213
0
0
null
2023-02-22T02:52:16
2019-12-23T05:14:49
Java
UTF-8
Java
false
false
1,454
java
package net.dryuf.comp.forum.jpadao; import net.dryuf.comp.forum.ForumHeader; import javax.ejb.TransactionAttribute; import javax.ejb.TransactionAttributeType; import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactional; import java.util.List; @Repository @Transactional("dryuf") @TransactionAttribute(TransactionAttributeType.SUPPORTS) public class ForumHeaderDaoJpa extends net.dryuf.dao.DryufDaoContext<ForumHeader, Long> implements net.dryuf.comp.forum.dao.ForumHeaderDao { public ForumHeaderDaoJpa() { super(ForumHeader.class); } @Override @TransactionAttribute(TransactionAttributeType.SUPPORTS) @Transactional("dryuf") public Long getMaxCounter(Long forumId) { @SuppressWarnings("rawtypes") List result = entityManager.createQuery("SELECT MAX(pk.counter) FROM ForumRecord WHERE pk.forumId = ?1").setParameter(1, forumId).getResultList(); return result.isEmpty() ? null : (Long)result.get(0); } @Override @TransactionAttribute(TransactionAttributeType.REQUIRED) @Transactional("dryuf") public void updateRecordStats(Long forumId) { entityManager.createQuery("UPDATE\tForumHeader h\nSET\n\th.lastAdded = IFNULL((SELECT MAX(created) FROM ForumRecord WHERE forumId = h.forumId), unix_timestamp()),\n\th.recordCount = (SELECT COUNT(*) FROM ForumRecord r WHERE r.pk.forumId = h.forumId)\nWHERE\n\th.forumId = ?1").setParameter(1, forumId).executeUpdate(); } }
[ "kvr@centrum.cz" ]
kvr@centrum.cz
1612c0f9700eac39ef2009d5fc4571607eb0ab76
0af8b92686a58eb0b64e319b22411432aca7a8f3
/large-multiproject/project8/src/test/java/org/gradle/test/performance8_4/Test8_392.java
25a87346a414036cf1d6983287e5334919ed7b95
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
288
java
package org.gradle.test.performance8_4; import static org.junit.Assert.*; public class Test8_392 { private final Production8_392 production = new Production8_392("value"); @org.junit.Test public void test() { assertEquals(production.getProperty(), "value"); } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
35cd62a06148c9432a5fb1065a5078f61d6aaa36
d71e879b3517cf4fccde29f7bf82cff69856cfcd
/ExtractedJars/Shopkick_com.shopkick.app/javafiles/com/google/android/gms/internal/clearcut/zzcd.java
4a20f87feb731d0f8547dc7e9c65b802fdb45a4d
[ "MIT" ]
permissive
Andreas237/AndroidPolicyAutomation
b8e949e072d08cf6c6166c3f15c9c63379b8f6ce
c1ed10a2c6d4cf3dfda8b8e6291dee2c2a15ee8a
refs/heads/master
2020-04-10T02:14:08.789751
2019-05-16T19:29:11
2019-05-16T19:29:11
160,739,088
5
1
null
null
null
null
UTF-8
Java
false
false
3,431
java
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package com.google.android.gms.internal.clearcut; final class zzcd extends Enum { private zzcd(String s, int i, boolean flag) { super(s, i); // 0 0:aload_0 // 1 1:aload_1 // 2 2:iload_2 // 3 3:invokespecial #42 <Method void Enum(String, int)> zzjk = flag; // 4 6:aload_0 // 5 7:iload_3 // 6 8:putfield #44 <Field boolean zzjk> // 7 11:return } public static zzcd[] values() { return (zzcd[])((zzcd []) (zzjl)).clone(); // 0 0:getstatic #38 <Field zzcd[] zzjl> // 1 3:invokevirtual #53 <Method Object _5B_Lcom.google.android.gms.internal.clearcut.zzcd_3B_.clone()> // 2 6:checkcast #49 <Class zzcd[]> // 3 9:areturn } public static final zzcd zzjg; public static final zzcd zzjh; public static final zzcd zzji; public static final zzcd zzjj; private static final zzcd zzjl[]; private final boolean zzjk; static { zzjg = new zzcd("SCALAR", 0, false); // 0 0:new #2 <Class zzcd> // 1 3:dup // 2 4:ldc1 #18 <String "SCALAR"> // 3 6:iconst_0 // 4 7:iconst_0 // 5 8:invokespecial #22 <Method void zzcd(String, int, boolean)> // 6 11:putstatic #24 <Field zzcd zzjg> zzjh = new zzcd("VECTOR", 1, true); // 7 14:new #2 <Class zzcd> // 8 17:dup // 9 18:ldc1 #26 <String "VECTOR"> // 10 20:iconst_1 // 11 21:iconst_1 // 12 22:invokespecial #22 <Method void zzcd(String, int, boolean)> // 13 25:putstatic #28 <Field zzcd zzjh> zzji = new zzcd("PACKED_VECTOR", 2, true); // 14 28:new #2 <Class zzcd> // 15 31:dup // 16 32:ldc1 #30 <String "PACKED_VECTOR"> // 17 34:iconst_2 // 18 35:iconst_1 // 19 36:invokespecial #22 <Method void zzcd(String, int, boolean)> // 20 39:putstatic #32 <Field zzcd zzji> zzjj = new zzcd("MAP", 3, false); // 21 42:new #2 <Class zzcd> // 22 45:dup // 23 46:ldc1 #34 <String "MAP"> // 24 48:iconst_3 // 25 49:iconst_0 // 26 50:invokespecial #22 <Method void zzcd(String, int, boolean)> // 27 53:putstatic #36 <Field zzcd zzjj> zzjl = (new zzcd[] { zzjg, zzjh, zzji, zzjj }); // 28 56:iconst_4 // 29 57:anewarray zzcd[] // 30 60:dup // 31 61:iconst_0 // 32 62:getstatic #24 <Field zzcd zzjg> // 33 65:aastore // 34 66:dup // 35 67:iconst_1 // 36 68:getstatic #28 <Field zzcd zzjh> // 37 71:aastore // 38 72:dup // 39 73:iconst_2 // 40 74:getstatic #32 <Field zzcd zzji> // 41 77:aastore // 42 78:dup // 43 79:iconst_3 // 44 80:getstatic #36 <Field zzcd zzjj> // 45 83:aastore // 46 84:putstatic #38 <Field zzcd[] zzjl> //* 47 87:return } }
[ "silenta237@gmail.com" ]
silenta237@gmail.com
93b6746c4b22b657b52c6cf78ba0e7bea5e0333c
c103ff5a77bbc8cba3aed87c9f19eb040bacc8da
/sgm-core/src/main/java/com/origami/sgm/entities/GeTareaUsuario.java
a0c757732170230361ea15a2f84a4a8a99f107a9
[]
no_license
origamigt/modulo_catastro
9a134d9e87b15a2cae45961a92ff21dbf03639aa
3468f579199b914d875d049623f0b9260144b7c0
refs/heads/master
2023-03-10T12:39:34.332951
2021-02-23T16:53:10
2021-02-23T16:53:10
338,333,465
0
0
null
null
null
null
UTF-8
Java
false
false
4,034
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.origami.sgm.entities; import com.origami.sgm.database.SchemasConfig; import java.io.Serializable; import java.util.Date; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence.SequenceGenerator; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; /** * * @author supergold */ @Entity @Table(name = "ge_tarea_usuario", schema = SchemasConfig.APP1) @NamedQueries({ @NamedQuery(name = "GeTareaUsuario.findAll", query = "SELECT g FROM GeTareaUsuario g")}) public class GeTareaUsuario implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = SchemasConfig.APPUNISEQ_ORM) @SequenceGenerator(name = SchemasConfig.APPUNISEQ_ORM, sequenceName = SchemasConfig.APP1 + "." + SchemasConfig.APPUNISEQ_DB, allocationSize = 1) @Basic(optional = false) @Column(name = "id") private Long id; @Basic(optional = false) @NotNull @Size(min = 1, max = 200) @Column(name = "tarea") private String tarea; @Column(name = "fec_cre") @Temporal(TemporalType.TIMESTAMP) private Date fecCre; @Column(name = "estado") private Boolean estado; @Size(max = 100) @Column(name = "var_ref") private String varRef; @JoinColumn(name = "tramite", referencedColumnName = "id") @ManyToOne private GeTipoTramite tramite; @JoinColumn(name = "usuario", referencedColumnName = "id") @ManyToOne private AclUser usuario; public GeTareaUsuario() { } public GeTareaUsuario(Long id) { this.id = id; } public GeTareaUsuario(Long id, String tarea) { this.id = id; this.tarea = tarea; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getTarea() { return tarea; } public void setTarea(String tarea) { this.tarea = tarea; } public Date getFecCre() { return fecCre; } public void setFecCre(Date fecCre) { this.fecCre = fecCre; } public Boolean getEstado() { return estado; } public void setEstado(Boolean estado) { this.estado = estado; } public String getVarRef() { return varRef; } public void setVarRef(String varRef) { this.varRef = varRef; } public GeTipoTramite getTramite() { return tramite; } public void setTramite(GeTipoTramite tramite) { this.tramite = tramite; } public AclUser getUsuario() { return usuario; } public void setUsuario(AclUser usuario) { this.usuario = usuario; } @Override public int hashCode() { int hash = 0; hash += (id != null ? id.hashCode() : 0); return hash; } @Override public boolean equals(Object object) { // : Warning - this method won't work in the case the id fields are not set if (!(object instanceof GeTareaUsuario)) { return false; } GeTareaUsuario other = (GeTareaUsuario) object; if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { return false; } return true; } @Override public String toString() { return "GeTareaUsuario[ id=" + id + " ]"; } }
[ "navarroangelr@gmail.com" ]
navarroangelr@gmail.com
e13041fcf7cfc25bb26a7833429824bc01cd1c60
6c7b87dc0ef3eae2daa7eb024c005701744b80fd
/src/main/java/com/anjz/base/jcaptcha/JCaptchaFilter.java
311b6e5d5e4d6386145e8cf0bf74b5e1144006e5
[]
no_license
eliaidi/frame_DS
e902ada2e8d3a9da065541361164207d3be3ea08
dc8bcaa3b60ec307086038fb607d7718e6ccd1df
refs/heads/master
2020-06-14T20:13:51.344117
2016-11-25T05:56:59
2016-11-25T05:56:59
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,358
java
package com.anjz.base.jcaptcha; import org.springframework.web.filter.OncePerRequestFilter; import javax.imageio.ImageIO; import javax.servlet.FilterChain; import javax.servlet.ServletException; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.awt.image.BufferedImage; import java.io.IOException; /** * 生成验证码 * @author ding.shuai * @date 2016年8月23日上午9:49:02 */ public class JCaptchaFilter extends OncePerRequestFilter { @Override protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException { response.setDateHeader("Expires", 0L); response.setHeader("Cache-Control", "no-store, no-cache, must-revalidate"); response.addHeader("Cache-Control", "post-check=0, pre-check=0"); response.setHeader("Pragma", "no-cache"); response.setContentType("image/jpeg"); String id = request.getSession().getId(); BufferedImage bi = JCaptcha.captchaService.getImageChallengeForID(id); ServletOutputStream out = response.getOutputStream(); ImageIO.write(bi, "jpg", out); try { out.flush(); } finally { out.close(); } } }
[ "1114332905@qq.com" ]
1114332905@qq.com
aa658444113f127a2f16c975641965ad4494dd2c
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
/aliyun-java-sdk-emas-appmonitor/src/main/java/com/aliyuncs/emas_appmonitor/transform/v20190611/QuerySingleDomainApiAvgDurationGroupTrendResponseUnmarshaller.java
dc6b0f1f2795d77dee2ad6e8478b26c53398f881
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-java-sdk
a263fa08e261f12d45586d1b3ad8a6609bba0e91
e19239808ad2298d32dda77db29a6d809e4f7add
refs/heads/master
2023-09-03T12:28:09.765286
2023-09-01T09:03:00
2023-09-01T09:03:00
39,555,898
1,542
1,317
NOASSERTION
2023-09-14T07:27:05
2015-07-23T08:41:13
Java
UTF-8
Java
false
false
2,702
java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.aliyuncs.emas_appmonitor.transform.v20190611; import java.util.ArrayList; import java.util.List; import com.aliyuncs.emas_appmonitor.model.v20190611.QuerySingleDomainApiAvgDurationGroupTrendResponse; import com.aliyuncs.emas_appmonitor.model.v20190611.QuerySingleDomainApiAvgDurationGroupTrendResponse.MetricResultItem; import com.aliyuncs.emas_appmonitor.model.v20190611.QuerySingleDomainApiAvgDurationGroupTrendResponse.MetricResultItem.Point; import java.util.Map; import com.aliyuncs.transform.UnmarshallerContext; public class QuerySingleDomainApiAvgDurationGroupTrendResponseUnmarshaller { public static QuerySingleDomainApiAvgDurationGroupTrendResponse unmarshall(QuerySingleDomainApiAvgDurationGroupTrendResponse querySingleDomainApiAvgDurationGroupTrendResponse, UnmarshallerContext _ctx) { querySingleDomainApiAvgDurationGroupTrendResponse.setRequestId(_ctx.stringValue("QuerySingleDomainApiAvgDurationGroupTrendResponse.RequestId")); List<MetricResultItem> metricResultList = new ArrayList<MetricResultItem>(); for (int i = 0; i < _ctx.lengthValue("QuerySingleDomainApiAvgDurationGroupTrendResponse.MetricResultList.Length"); i++) { MetricResultItem metricResultItem = new MetricResultItem(); metricResultItem.setTags(_ctx.mapValue("QuerySingleDomainApiAvgDurationGroupTrendResponse.MetricResultList["+ i +"].Tags")); List<Point> data = new ArrayList<Point>(); for (int j = 0; j < _ctx.lengthValue("QuerySingleDomainApiAvgDurationGroupTrendResponse.MetricResultList["+ i +"].Data.Length"); j++) { Point point = new Point(); point.setData(_ctx.floatValue("QuerySingleDomainApiAvgDurationGroupTrendResponse.MetricResultList["+ i +"].Data["+ j +"].Data")); point.setTime(_ctx.longValue("QuerySingleDomainApiAvgDurationGroupTrendResponse.MetricResultList["+ i +"].Data["+ j +"].Time")); data.add(point); } metricResultItem.setData(data); metricResultList.add(metricResultItem); } querySingleDomainApiAvgDurationGroupTrendResponse.setMetricResultList(metricResultList); return querySingleDomainApiAvgDurationGroupTrendResponse; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
60290e8a10126bd4f90aa85ecf961d7ddb43c70e
02cfd1d138590ee34c40e106e6e1ea277f720082
/ex1/src/main/java/MemberProduct.java
08457aee2599c62bd4a1ad30063e126072676d86
[]
no_license
nokchax/jpa-basic-study
6c501ca115df8c97809b883598a92b5c16d476fc
18961841a2582e27d82ca453abcb3e9ef83d9c42
refs/heads/master
2022-03-23T14:48:44.160579
2019-08-20T10:48:25
2019-08-20T10:48:25
201,858,649
0
0
null
2022-01-21T23:28:39
2019-08-12T04:37:36
Java
UTF-8
Java
false
false
274
java
import javax.persistence.*; @Entity public class MemberProduct { @Id @GeneratedValue private Long id; @ManyToOne @JoinColumn(name = "MEMBER_ID") private Member member; @ManyToOne @JoinColumn(name = "PRODUCT_ID") private Product product; }
[ "nokchax@gmail.com" ]
nokchax@gmail.com
c79c52a054fb46972a52b03e4196198241e0d2bd
31c9f0e6ebeb3f6e1b823eec95c79ea1601aa05d
/JPA/Exercicio11-Produto-Lance-Rel-Pai-Filho/src/exercicio11/util/ObjetoNaoEncontradoException.java
bfc906edb8eaa7e867655620c88cd1aa522d983e
[]
no_license
lcolodete/jpa-ejb3_course
152026999014456fafd603367da9ca872a7056ae
5808fed7a57b5abd5e3bbbcd1e2bcc2300155f14
refs/heads/master
2021-05-09T02:06:26.199783
2018-01-27T19:53:56
2018-01-27T19:53:56
119,197,460
0
0
null
null
null
null
UTF-8
Java
false
false
188
java
package exercicio11.util; public class ObjetoNaoEncontradoException extends Exception { private final static long serialVersionUID = 1; public ObjetoNaoEncontradoException() { } }
[ "lcolodete@gmail.com" ]
lcolodete@gmail.com
e4a0de12a85290bf6835030776e3a04ea9641f94
3b91ed788572b6d5ac4db1bee814a74560603578
/com/tencent/mm/plugin/offline/ui/OfflineAlertView.java
74f50dc367aa4fe619ab5c72fd75a4eb78cc5b70
[]
no_license
linsir6/WeChat_java
a1deee3035b555fb35a423f367eb5e3e58a17cb0
32e52b88c012051100315af6751111bfb6697a29
refs/heads/master
2020-05-31T05:40:17.161282
2018-08-28T02:07:02
2018-08-28T02:07:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,752
java
package com.tencent.mm.plugin.offline.ui; import android.content.Context; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.FrameLayout.LayoutParams; import android.widget.LinearLayout; import android.widget.RelativeLayout; import android.widget.TextView; import com.tencent.mm.plugin.wxpay.a.f; import com.tencent.mm.plugin.wxpay.a.g; import com.tencent.mm.plugin.wxpay.a.i; import com.tencent.mm.sdk.platformtools.x; public class OfflineAlertView extends LinearLayout { private View contentView = null; public int lKQ = 0; RelativeLayout lKR = null; boolean lKS = true; private a lKT = null; static /* synthetic */ void a(OfflineAlertView offlineAlertView, View view, Runnable runnable, Runnable runnable2, int i) { offlineAlertView.lKQ = i; offlineAlertView.setVisibility(0); ((TextView) offlineAlertView.contentView.findViewById(f.i_know_btn)).setOnClickListener(new 5(offlineAlertView, runnable)); offlineAlertView.contentView.findViewById(f.take_for_more).setOnClickListener(new 6(offlineAlertView, runnable2)); x.i("MicroMsg.OfflineAlertView", "qrCodeView.getHeight%s %s", Integer.valueOf(view.getHeight()), Integer.valueOf(view.getMeasuredHeight())); LayoutParams layoutParams = (LayoutParams) offlineAlertView.contentView.getLayoutParams(); if (view.getHeight() > 0) { layoutParams.height = view.getHeight(); offlineAlertView.contentView.setLayoutParams(layoutParams); offlineAlertView.contentView.invalidate(); } offlineAlertView.lKS = false; if (offlineAlertView.lKT != null) { offlineAlertView.lKT.onShow(); } } public OfflineAlertView(Context context, AttributeSet attributeSet) { super(context, attributeSet); init(); } public OfflineAlertView(Context context, AttributeSet attributeSet, int i) { super(context, attributeSet, i); init(); } private void init() { this.contentView = LayoutInflater.from(getContext()).inflate(g.wallet_offline_alert, this); this.lKR = (RelativeLayout) this.contentView.findViewById(f.offline_alert_root); } public void setDialogState(a aVar) { this.lKT = aVar; } final void a(View view, OnClickListener onClickListener, int i) { this.lKQ = i; setVisibility(0); this.lKR.removeAllViews(); View inflate = LayoutInflater.from(getContext()).inflate(g.wallet_offline_unopened_layout, null); if (i == 6) { ((TextView) inflate.findViewById(f.alert_title)).setText(i.offline_need_open_again_text); } this.lKR.addView(inflate); ((Button) this.contentView.findViewById(f.i_know_btn)).setOnClickListener(onClickListener); this.lKS = false; view.post(new 7(this, view)); } public final boolean isShowing() { if (getVisibility() == 0) { return true; } return false; } public final boolean ul(int i) { if (!isShowing() || i == this.lKQ) { return true; } if (i == 2 && (this.lKQ == 3 || this.lKQ == 4 || this.lKQ == 2 || this.lKQ == 5)) { return true; } if ((i == 5 && this.lKQ == 4) || i == 6) { return true; } return false; } public final void dismiss() { if (this.lKR != null) { this.lKR.removeAllViews(); } setVisibility(8); if (this.lKT != null) { this.lKT.onClose(); } this.lKS = true; } }
[ "707194831@qq.com" ]
707194831@qq.com
8750739dd69925956bb23135561e0e24a770b6be
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Math/91/org/apache/commons/math/linear/BigMatrixImpl_getPermutation_1408.java
d39f476735fe8c3e4b36b388bd02ed08eb2f7a21
[]
no_license
hvdthong/NetML
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
9bb103da21327912e5a29cbf9be9ff4d058731a5
refs/heads/master
2021-06-30T15:03:52.618255
2020-10-07T01:58:48
2020-10-07T01:58:48
150,383,588
1
1
null
2018-09-26T07:08:45
2018-09-26T07:08:44
null
UTF-8
Java
false
false
2,477
java
org apach common math linear implement link big matrix bigmatrix big decim bigdecim arrai store entri href http www math gatech bourbaki math2601 web note 2num pdf decompost support linear system solut invers decompost perform need support oper solv singular issingular determin getdetermin invers strong usag note strong decomposit store reus subsequ call matrix data modifi set xxx setxxx method save decomposit discard data modifi refer underli arrai obtain code data ref getdataref code store decomposit discard explicitli invok code decompos ludecompos code recomput decomposit method link big matrix bigmatrix matrix element index base code entri getentri code return element row column matrix version revis date big matrix impl bigmatriximpl big matrix bigmatrix serializ return permut decomposit entri arrai repres permut number row nrow permut mean current 2nd row current row current row return fresh copi arrai permut permut getpermut permut length system arraycopi permut permut length
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
15ac95fe27bd36e41a94b2d9374d1fd48ec8ca97
f311c7e182bc3463bdb24be6c461c26f7425a778
/Auxiliary/RecipeManagers/CastingRecipes/Tools/DuplicationWandRecipe.java
8aa216e1f796a8f912c281471eb1deaa973053af
[]
no_license
theron61/ChromatiCraft
264bd69850b9779256d80c87f53a44db4b38b05d
d43813796a1a430ba1fade6501d065142bbece9c
refs/heads/master
2021-01-20T16:18:02.325624
2015-12-30T00:04:59
2015-12-30T00:04:59
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,909
java
/******************************************************************************* * @author Reika Kalseki * * Copyright 2015 * * All rights reserved. * Distribution of the software in any form is only allowed with * explicit, prior permission from the owner. ******************************************************************************/ package Reika.ChromatiCraft.Auxiliary.RecipeManagers.CastingRecipes.Tools; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; import Reika.ChromatiCraft.Auxiliary.ChromaStacks; import Reika.ChromatiCraft.Auxiliary.RecipeManagers.CastingRecipe.PylonRecipe; public class DuplicationWandRecipe extends PylonRecipe { public DuplicationWandRecipe(ItemStack out, ItemStack main) { super(out, main); //for now this.addAuxItem(Items.stick, -2, -2); this.addAuxItem(Items.stick, 2, 2); this.addAuxItem(Items.stick, -2, 2); this.addAuxItem(Items.stick, 2, -2); this.addAuxItem(ChromaStacks.auraIngot, -2, 0); this.addAuxItem(ChromaStacks.auraIngot, 2, 0); this.addAuxItem(ChromaStacks.auraIngot, 0, 2); this.addAuxItem(ChromaStacks.auraIngot, 0, -2); this.addAuxItem(Items.emerald, -4, 0); this.addAuxItem(Items.emerald, 4, 0); this.addAuxItem(ChromaStacks.spaceDust, 0, -4); this.addAuxItem(ChromaStacks.spaceDust, 0, 4); this.addAuxItem(ChromaStacks.lightBlueShard, -4, 2); this.addAuxItem(ChromaStacks.grayShard, -4, -2); this.addAuxItem(ChromaStacks.grayShard, 4, 2); this.addAuxItem(ChromaStacks.lightBlueShard, 4, -2); this.addAuxItem(ChromaStacks.grayShard, -2, 4); this.addAuxItem(ChromaStacks.lightBlueShard, -2, -4); this.addAuxItem(ChromaStacks.lightBlueShard, 2, 4); this.addAuxItem(ChromaStacks.grayShard, 2, -4); this.addAuxItem(Items.diamond, -4, 4); this.addAuxItem(Items.diamond, -4, -4); this.addAuxItem(Items.diamond, 4, 4); this.addAuxItem(Items.diamond, 4, -4); } }
[ "reikasminecraft@gmail.com" ]
reikasminecraft@gmail.com
f6fa8324eeda692b3a8d9934042aa1f70d998d9a
cfd19cdabb61608bdb5e9b872e840305084aec07
/SmartUniversity/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/common/build/ReactBuildConfig.java
d7ba96ccbe45607acacde6b02f292f748b2257fe
[ "MIT" ]
permissive
Roshmar/React-Native
bab2661e6a419083bdfb2a44af26d40e0b67786c
177d8e47731f3a0b82ba7802752976df1ceb78aa
refs/heads/main
2023-06-24T17:33:00.264894
2021-07-19T23:01:12
2021-07-19T23:01:12
387,580,266
0
0
null
null
null
null
UTF-8
Java
false
false
128
java
version https://git-lfs.github.com/spec/v1 oid sha256:f285c94743bfb67b850987030c5fb779638484d1281f2d365294e3c5e5cc0f22 size 850
[ "martin.roshko@student.tuke.sk" ]
martin.roshko@student.tuke.sk
fb5b2e68f9ddd7f313d897f4ba5a71fabb026382
1aef4669e891333de303db570c7a690c122eb7dd
/src/main/java/com/alipay/api/domain/AlipayOpenPublicMenuDeleteModel.java
e7b00c497050a713fba88e8095edcaec01b779de
[ "Apache-2.0" ]
permissive
fossabot/alipay-sdk-java-all
b5d9698b846fa23665929d23a8c98baf9eb3a3c2
3972bc64e041eeef98e95d6fcd62cd7e6bf56964
refs/heads/master
2020-09-20T22:08:01.292795
2019-11-28T08:12:26
2019-11-28T08:12:26
224,602,331
0
0
Apache-2.0
2019-11-28T08:12:26
2019-11-28T08:12:25
null
UTF-8
Java
false
false
655
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 默认菜单删除 * * @author auto create * @since 1.0, 2018-04-27 10:59:29 */ public class AlipayOpenPublicMenuDeleteModel extends AlipayObject { private static final long serialVersionUID = 4387488465857653282L; /** * 默认菜单菜单key,文本菜单为“default”,icon菜单为“iconDefault” */ @ApiField("menu_key") private String menuKey; public String getMenuKey() { return this.menuKey; } public void setMenuKey(String menuKey) { this.menuKey = menuKey; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
f02d7f328268a646c71f7ee947f75fb7f1d9063c
3963949fc1358e175851b9a75b47e0bb510d37e5
/jme/src/jmetest/renderer/TestRTTSideBySide.java
203dabf6e05bf7e62d477868720c5ee96ba22325
[ "MIT" ]
permissive
j0rg3n/wrathofthetaboos
246ef9c510ccfde79221ad8e31fce7e89207f495
d5c8d64c3c44e28ed6a658943a3a9d56a754c8af
refs/heads/master
2021-01-10T10:28:42.157519
2008-02-08T23:11:09
2008-02-08T23:11:09
45,484,382
0
0
null
null
null
null
UTF-8
Java
false
false
4,619
java
/* * Copyright (c) 2003-2007 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * * Neither the name of 'jMonkeyEngine' nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package jmetest.renderer; import java.util.logging.Logger; import com.jme.app.SimpleGame; import com.jme.bounding.BoundingBox; import com.jme.image.Texture; import com.jme.math.Quaternion; import com.jme.math.Vector3f; import com.jme.renderer.ColorRGBA; import com.jme.renderer.TextureRenderer; import com.jme.scene.shape.Quad; import com.jme.scene.shape.Sphere; import com.jme.scene.state.LightState; import com.jme.scene.state.TextureState; import com.jme.util.TextureManager; /** * <code>TestRTTSideBySide</code> * @author Mark Powell * @version $Id: TestRTTSideBySide.java,v 1.10 2007/08/02 23:54:48 nca Exp $ */ public class TestRTTSideBySide extends SimpleGame { private static final Logger logger = Logger .getLogger(TestRTTSideBySide.class.getName()); private Quaternion rotQuat = new Quaternion(); private float angle = 0; private Vector3f axis = new Vector3f(1, 1, 0); private Sphere s; private Quad q; private TextureRenderer tRenderer; private Texture fakeTex; /** * Entry point for the test, * @param args */ public static void main(String[] args) { TestRTTSideBySide app = new TestRTTSideBySide(); app.setDialogBehaviour(ALWAYS_SHOW_PROPS_DIALOG); app.start(); } protected void cleanup() { super.cleanup(); tRenderer.cleanup(); } protected void simpleUpdate() { if (tpf < 1) { angle = angle + (tpf * 1); if (angle > 360) { angle = 0; } } rotQuat.fromAngleAxis(angle, axis); s.setLocalRotation(rotQuat); } protected void simpleRender() { tRenderer.render(s, fakeTex); } /** * builds the trimesh. * @see com.jme.app.SimpleGame#initGame() */ protected void simpleInitGame() { display.setTitle("jME - RTT Side By Side"); tRenderer = display.createTextureRenderer(512, 512, TextureRenderer.RENDER_TEXTURE_2D); s = new Sphere("Sphere", 25, 25, 5); s.setLocalTranslation(new Vector3f(-10,0,0)); s.setModelBound(new BoundingBox()); s.updateModelBound(); rootNode.attachChild(s); q = new Quad("Quad", 15, 13f); q.setLocalTranslation(new Vector3f(10,0,0)); q.setModelBound(new BoundingBox()); q.updateModelBound(); q.setLightCombineMode(LightState.OFF); rootNode.attachChild(q); tRenderer.setBackgroundColor(new ColorRGBA(0f, 0f, 0f, 1f)); fakeTex = new Texture(); tRenderer.setupTexture(fakeTex); TextureState screen = display.getRenderer().createTextureState(); screen.setTexture(fakeTex); screen.setEnabled(true); tRenderer.getCamera().setLocation(new Vector3f(-10, 0, 15f)); q.setRenderState(screen); TextureState ts = display.getRenderer().createTextureState(); ts.setEnabled(true); ts.setTexture( TextureManager.loadTexture( TestBoxColor.class.getClassLoader().getResource( "jmetest/data/images/Monkey.jpg"), Texture.MM_LINEAR_LINEAR, Texture.FM_LINEAR)); rootNode.setRenderState(ts); } }
[ "greisen@b760afd0-1f45-0410-b975-7103d5bbc06f" ]
greisen@b760afd0-1f45-0410-b975-7103d5bbc06f
be807f37bae2146177cbf4f7715e002ff9d217a2
ffcd960e734f2edc42decf2ae8c698551c9db908
/RyDemo2/app/src/main/java/com/example/rydemo2/ui/ConversationActivity.java
124ebd2daaf2fb1e3502ca2bbb038862d4630024
[]
no_license
Demons96/TestPrograms
44f82e0a59b25edb1c39004714e75ae67eeff10d
831dcec4e0c7bf4a60c9e35a7cd9b40eff9a755c
refs/heads/master
2020-04-17T14:06:17.843905
2019-04-24T10:17:16
2019-04-24T10:17:16
166,643,505
0
0
null
null
null
null
UTF-8
Java
false
false
923
java
package com.example.rydemo2.ui; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import com.example.rydemo2.R; import io.rong.imkit.RongIM; import io.rong.imlib.RongIMClient; import io.rong.imlib.model.Message; /** * 会话界面 */ public class ConversationActivity extends AppCompatActivity { private static final String TAG = "ConversationActivity"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_conversation); // 接收消息监听 RongIM.setOnReceiveMessageListener(new RongIMClient.OnReceiveMessageListener() { @Override public boolean onReceived(Message message, int i) { Log.e(TAG, "onReceived: " + message.getContent()); return false; } }); } }
[ "gyp52020@qq.com" ]
gyp52020@qq.com
d5847fa89c16763556f61c4e75685a9e1c8fe538
54c9e0e0a1668de62b8a2f174c4fae0d92ae0654
/qpid/java/common/src/main/java/org/apache/qpid/framing/ConnectionOpenOkBody.java
eb2122fd74476245b581f3763bd65c80453f4b4e
[ "Python-2.0", "Apache-2.0", "MIT" ]
permissive
tas95757/Qpid
cca3156fca8f209ec3fa67c625b02abebb933992
f66f177e39f5e7d42cae23952f53e83ecd9d209a
refs/heads/master
2021-01-22T16:10:14.927617
2014-10-02T13:55:36
2014-10-02T13:55:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,118
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. * */ /* * This file is auto-generated by Qpid Gentools v.0.1 - do not modify. * Supported AMQP version: * 0-9 * 0-91 * 8-0 */ package org.apache.qpid.framing; public interface ConnectionOpenOkBody extends EncodableAMQDataBlock, AMQMethodBody { public AMQShortString getKnownHosts(); }
[ "robbie@apache.org" ]
robbie@apache.org
63247bf37dc36d5d5ab8bb0ba5002924169c59ac
96f8d42c474f8dd42ecc6811b6e555363f168d3e
/baike/sources/qsbk/app/pay/adapter/c.java
5e891df1491103d64ceb7e7c69b413b5b827b13d
[]
no_license
aheadlcx/analyzeApk
050b261595cecc85790558a02d79739a789ae3a3
25cecc394dde4ed7d4971baf0e9504dcb7fabaca
refs/heads/master
2020-03-10T10:24:49.773318
2018-04-13T09:44:45
2018-04-13T09:44:45
129,332,351
6
2
null
null
null
null
UTF-8
Java
false
false
523
java
package qsbk.app.pay.adapter; import android.view.View; import android.view.View.OnClickListener; import qsbk.app.pay.adapter.DiamondAdapter.ViewHolderBalance; class c implements OnClickListener { final /* synthetic */ ViewHolderBalance a; final /* synthetic */ DiamondAdapter b; c(DiamondAdapter diamondAdapter, ViewHolderBalance viewHolderBalance) { this.b = diamondAdapter; this.a = viewHolderBalance; } public void onClick(View view) { this.b.a(this.a, 1, true); } }
[ "aheadlcxzhang@gmail.com" ]
aheadlcxzhang@gmail.com
689799acc1dc0843b20eab47138c4c59c59f2614
d2eee6e9a3ad0b3fd2899c3d1cf94778615b10cb
/PROMISE/archives/camel/1.4/org/apache/camel/osgi/CamelContextFactoryBean.java
e5b0bcf593ac4e2e3f922f679bd0abf693d86409
[]
no_license
hvdthong/DEFECT_PREDICTION
78b8e98c0be3db86ffaed432722b0b8c61523ab2
76a61c69be0e2082faa3f19efd76a99f56a32858
refs/heads/master
2021-01-20T05:19:00.927723
2018-07-10T03:38:14
2018-07-10T03:38:14
89,766,606
5
1
null
null
null
null
UTF-8
Java
false
false
1,066
java
package org.apache.camel.osgi; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlTransient; import org.apache.camel.spring.SpringCamelContext; import org.osgi.framework.BundleContext; import org.springframework.osgi.context.BundleContextAware; @XmlRootElement(name = "camelContext") @XmlAccessorType(XmlAccessType.FIELD) public class CamelContextFactoryBean extends org.apache.camel.spring.CamelContextFactoryBean implements BundleContextAware { @XmlTransient private BundleContext bundleContext; public BundleContext getBundleContext() { return bundleContext; } public void setBundleContext(BundleContext bundleContext) { this.bundleContext = bundleContext; } protected SpringCamelContext createContext() { SpringCamelContext context = super.createContext(); context.setComponentResolver(new OsgiComponentResolver(bundleContext)); return context; } }
[ "hvdthong@github.com" ]
hvdthong@github.com
79cd5b76f590c4d38bb4e23f05de559a96d19bd4
c953976393ea2229aab485c2b210ab2325465295
/jOOQ/src/main/java/org/jooq/UDT.java
4e95e3e85f268a492b5309f83e55e803836f85e9
[ "Apache-2.0" ]
permissive
anuraaga/jOOQ
8de2098eb1134d81c39bc6edda7f6efd39475d52
dd094ed7e0754a4322083d6aae04844ce404088e
refs/heads/master
2021-01-01T17:50:30.670456
2017-07-24T09:19:17
2017-07-24T09:19:17
98,172,611
0
0
null
2017-07-24T09:19:33
2017-07-24T09:19:33
null
UTF-8
Java
false
false
3,653
java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Other licenses: * ----------------------------------------------------------------------------- * Commercial licenses for this work are available. These replace the above * ASL 2.0 and offer limited warranties, support, maintenance, and commercial * database integrations. * * For more information, please visit: http://www.jooq.org/licenses * * * * * * * * * * * * * */ package org.jooq; import java.util.stream.Stream; /** * UDT definition * * @param <R> The record type * @author Lukas Eder */ public interface UDT<R extends UDTRecord<R>> extends QueryPart { /** * Get this UDT's fields as a {@link Row}. */ Row fieldsRow(); /** * Get this table's fields as a {@link Stream}. */ Stream<Field<?>> fieldStream(); /** * Get a specific field from this UDT. * <p> * Usually, this will return the field itself. However, if this is a row * from an aliased UDT, the field will be aliased accordingly. * * @see Row#field(Field) */ <T> Field<T> field(Field<T> field); /** * Get a specific field from this UDT. * * @see Row#field(String) */ Field<?> field(String name); /** * Get a specific field from this UDT. * * @see Row#field(Name) */ Field<?> field(Name name); /** * Get a specific field from this UDT. * * @see Row#field(int) */ Field<?> field(int index); /** * Get all fields from this UDT. * * @see Row#fields() */ Field<?>[] fields(); /** * Get all fields from this UDT, providing some fields. * * @return All available fields * @see Row#fields(Field...) */ Field<?>[] fields(Field<?>... fields); /** * Get all fields from this UDT, providing some field names. * * @return All available fields * @see Row#fields(String...) */ Field<?>[] fields(String... fieldNames); /** * Get all fields from this UDT, providing some field names. * * @return All available fields * @see Row#fields(Name...) */ Field<?>[] fields(Name... fieldNames); /** * Get all fields from this UDT, providing some field indexes. * * @return All available fields * @see Row#fields(int...) */ Field<?>[] fields(int... fieldIndexes); /** * Get the UDT catalog. */ Catalog getCatalog(); /** * Get the UDT schema. */ Schema getSchema(); /** * Get the UDT package. */ Package getPackage(); /** * The name of this UDT. */ String getName(); /** * @return The record type produced by this table. */ Class<R> getRecordType(); /** * Create a new {@link Record} of this UDT's type. * * @see DSLContext#newRecord(UDT) */ R newRecord(); /** * The UDT's data type as known to the database. */ DataType<R> getDataType(); /** * Whether this data type can be used from SQL statements. */ boolean isSQLUsable(); }
[ "lukas.eder@gmail.com" ]
lukas.eder@gmail.com
52fdd1c5e81f6e1b86b0c2c27607a34192d57a34
d12a235a6929dcd0228d38273f67140625213f01
/src/main/java/com/wbg/logistics/dao/FirmMapper.java
822ba14afddbd102ea21f42d6ccb812ed05a0ac0
[]
no_license
Lzc1003133370/banglis
8e860be7463a7c7cf6ccd4993d9600bb2e5bfad8
fd6ecfe324c7bec24ef64a76fa1b42331c911890
refs/heads/master
2023-08-05T12:04:09.277809
2020-01-17T06:30:23
2020-01-17T06:30:23
231,334,563
0
0
null
2023-07-23T01:43:28
2020-01-02T07:58:02
JavaScript
UTF-8
Java
false
false
1,106
java
package com.wbg.logistics.dao; import com.wbg.logistics.entity.Firm; import java.util.List; public interface FirmMapper { /** * This method was generated by MyBatis Generator. * This method corresponds to the database table firm * * @mbg.generated */ int deleteByPrimaryKey(Integer firmNo); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table firm * * @mbg.generated */ int insert(Firm record); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table firm * * @mbg.generated */ Firm selectByPrimaryKey(Integer firmNo); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table firm * * @mbg.generated */ List<Firm> selectAll(); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table firm * * @mbg.generated */ int updateByPrimaryKey(Firm record); }
[ "Administrator@80DR054LIU0TTAN" ]
Administrator@80DR054LIU0TTAN
8631a56ed1d4f3b2692ee13be0226015aa30c600
a1bf94532b1a4fcd556fe20a19db98277b51a3d5
/optaplanner-examples/src/main/java/org/optaplanner/examples/tsp/domain/City.java
7ed0f2173479e7ad2ee045d593e18b8a38be7ad2
[ "Apache-2.0" ]
permissive
cvanball/optaplanner
76d66c3e562f8b02d63e5fd68384cd4e859f145e
8829da7cae0da0a9e9a83d06a2cd9e3fd73d0f22
refs/heads/master
2020-04-06T04:38:24.891424
2014-04-13T13:26:32
2014-04-13T13:26:32
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,681
java
/* * Copyright 2011 JBoss 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.optaplanner.examples.tsp.domain; import com.thoughtworks.xstream.annotations.XStreamAlias; import org.optaplanner.examples.common.domain.AbstractPersistable; @XStreamAlias("City") public class City extends AbstractPersistable { private String name = null; private double latitude; private double longitude; public String getName() { return name; } public void setName(String name) { this.name = name; } public double getLatitude() { return latitude; } public void setLatitude(double latitude) { this.latitude = latitude; } public double getLongitude() { return longitude; } public void setLongitude(double longitude) { this.longitude = longitude; } // ************************************************************************ // Complex methods // ************************************************************************ /** * The distance is not in miles or km, but in the TSPLIB's unit of measurement. * @param city never null * @return a positive number, the distance multiplied by 1000 to avoid floating point arithmetic rounding errors */ public int getDistance(City city) { // Implementation specified by TSPLIB http://www2.iwr.uni-heidelberg.de/groups/comopt/software/TSPLIB95/ // Euclidean distance (Pythagorean theorem) - not correct when the surface is a sphere double latitudeDifference = city.latitude - latitude; double longitudeDifference = city.longitude - longitude; double distance = Math.sqrt( (latitudeDifference * latitudeDifference) + (longitudeDifference * longitudeDifference)); return (int) (distance * 1000.0 + 0.5); } @Override public String toString() { if (name == null) { return id.toString(); } return id.toString() + "-" + name; } public String getSafeName() { if (name == null) { return id.toString(); } return name; } }
[ "gds.geoffrey.de.smet@gmail.com" ]
gds.geoffrey.de.smet@gmail.com
9eb0e10e9e37279e03b579b2e25daa7f12e7dc3e
2570a4b17fd94a3b6e3f797c6b93875b699051b3
/miaosha-demo/miaosha-demo-common/src/main/java/com/miaosha/common/domain/MiaoshaOrder.java
890fe36b26dcd08cb36616c03ab0ce2678529fcc
[]
no_license
918273244/miaosha
ba9ea623f8304d872645ed3bea0cf64458afab57
3965ed4ec5b390dbe4debcaa43c6bbac23fb791a
refs/heads/master
2021-01-25T11:27:21.725636
2018-03-17T06:31:19
2018-03-17T06:31:19
122,931,001
0
0
null
null
null
null
UTF-8
Java
false
false
705
java
package com.miaosha.common.domain; public class MiaoshaOrder { private Long id; private Long userId; private Long orderId; private Long goodsId; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getUserId() { return userId; } public void setUserId(Long userId) { this.userId = userId; } public Long getOrderId() { return orderId; } public void setOrderId(Long orderId) { this.orderId = orderId; } public Long getGoodsId() { return goodsId; } public void setGoodsId(Long goodsId) { this.goodsId = goodsId; } }
[ "918273244@qq.com" ]
918273244@qq.com
077bd664003eedef6a2a680b536d3aa599b20f0f
424df50cc846521c366d05fbba4303589853fc03
/simplebanner/src/main/java/com/vbt/simplebanner/Banner.java
98ac67e94dad5db4a53ff6429d928d20c5194e94
[]
no_license
niplus/biyoes
cc2198b9303c5981716ddeeefc71124e36bfc722
f4d6e4cc6ac5bed94a8d58f837c7b5309b2ecb74
refs/heads/main
2023-04-10T21:14:56.826444
2021-03-16T09:34:20
2021-03-16T09:34:20
346,194,349
1
0
null
null
null
null
UTF-8
Java
false
false
6,921
java
package com.biyoex.simplebanner; import android.content.Context; import android.content.res.TypedArray; import android.os.Handler; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.viewpager.widget.PagerAdapter; import androidx.viewpager.widget.ViewPager; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.view.animation.AccelerateInterpolator; import android.widget.FrameLayout; import android.widget.ImageView; import com.biyoex.simplebanner.loader.ImageLoaderInterface; import java.lang.reflect.Field; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; public class Banner extends FrameLayout implements ViewPager.OnPageChangeListener { /** * 是否自动播放 */ private boolean isAutoPlay; /** * 切换时间间隔 */ private int timeInterval = 4000; private ViewPager mViewPager; private List<String> paths; private BannerPagerAdapter mAdapter; private ImageLoaderInterface imageLoader; private Context context; private int currentPosition; private Handler mHandler; public Banner(@NonNull Context context) { this(context, null); } public Banner(@NonNull Context context, @Nullable AttributeSet attrs) { this(context, attrs, 0); } public Banner(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); this.context = context; initAtters(attrs); initView(); mHandler = new Handler(); } private void initAtters(@Nullable AttributeSet attrs){ if (attrs != null) { TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.Banner); typedArray.recycle(); } } private void initView(){ paths = new ArrayList<>(); View rootView = LayoutInflater.from(context).inflate(R.layout.layout_banner, this, true); mViewPager = rootView.findViewById(R.id.viewpager); } private void initViewPager(){ if (mAdapter != null){ return; } mAdapter = new BannerPagerAdapter(); mViewPager.setAdapter(mAdapter); mViewPager.setOffscreenPageLimit(3); mViewPager.setPageTransformer(true, pageTransformer); mViewPager.addOnPageChangeListener(this); // initViewpagerScroll(); } /** * 开始播放 */ public void play(){ //正在播放则直接返回 if (isAutoPlay){ return; } isAutoPlay = true; mHandler.postDelayed(playRunnable, timeInterval); } /** * 暂停播放 */ public void stop(){ isAutoPlay = false; mHandler.removeCallbacks(playRunnable); } private final Runnable playRunnable = new Runnable() { @Override public void run() { if (isAutoPlay){ mViewPager.setCurrentItem(currentPosition+1, true); mHandler.postDelayed(this, timeInterval); } } }; private final ViewPager.PageTransformer pageTransformer = new ViewPager.PageTransformer() { @Override public void transformPage(@NonNull View page, float position) { position = Math.abs(position); if (position < 2){ page.setScaleY(1f - 0.05f * position); page.setScaleX(1f - 0.05f * position); } } }; public ViewPager getmViewPager() { return mViewPager; } /** * 控制viewpager滑动速度 */ private void initViewpagerScroll(){ if (mViewPager == null){ return; } try { Field field = ViewPager.class.getDeclaredField("mScroller"); //使属性可以访问 field.setAccessible(true); FixedSpeedScroller scroller = new FixedSpeedScroller(mViewPager.getContext(), new AccelerateInterpolator()); //设置属性 field.set(mViewPager, scroller); scroller.setmDuration(1000); } catch (Exception e) { } } public void setImageLoader(ImageLoaderInterface imageLoader) { this.imageLoader = imageLoader; } public void setImages(List<String> imageUrls){ initViewPager(); boolean needTurnPage; if (paths.size() != 0) { needTurnPage = false; paths.clear(); }else { needTurnPage = true; } paths.addAll(imageUrls); mAdapter.notifyDataSetChanged(); if (needTurnPage && paths.size() != 0) { mViewPager.setCurrentItem(Integer.MAX_VALUE / 2 - (Integer.MAX_VALUE / 2 % paths.size()), false); } } @Override public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { } @Override public void onPageSelected(int position) { currentPosition = position; } @Override public void onPageScrollStateChanged(int state) { } @Override public boolean dispatchTouchEvent(MotionEvent ev) { switch (ev.getAction()){ case MotionEvent.ACTION_DOWN: stop(); break; case MotionEvent.ACTION_UP: play(); break; } return super.dispatchTouchEvent(ev); } class BannerPagerAdapter extends PagerAdapter { private final LinkedList<View> viewCache = new LinkedList<>(); @Override public int getCount() { if (paths.size() == 0){ return 0; } return Integer.MAX_VALUE; } @Override public boolean isViewFromObject(View view, Object object) { return view == object; } @Override public Object instantiateItem(ViewGroup container, final int position) { int index = position % paths.size(); View convertView = null; if (viewCache.size() == 0){ convertView = LayoutInflater.from(context).inflate(R.layout.layout_page, null); }else { convertView = viewCache.removeFirst(); } ImageView ivDisplay = convertView.findViewById(R.id.iv_display); if (paths.size() != 0) imageLoader.displayImage(context, paths.get(index), ivDisplay); container.addView(convertView); return convertView; } @Override public void destroyItem(ViewGroup container, int position, Object object) { container.removeView((View) object); viewCache.add((View) object); } } }
[ "841270527@qq.com" ]
841270527@qq.com
95568f4597235703bb0020956a38474e47f06b97
2de686da3d5aba9ee6cefabc12519ddeb366e064
/thinking-in-java2/src/main/java/com/hawk/c01/custom/collections/FunWithEmptyImmutableCollections.java
3e831622427effcb8cd72105b0bfbd7937c4997b
[]
no_license
larrychen1990/thinking-in-java
f5f7992d331e1431498ae605272e19a180fc61b2
d9e8c83264c6b24936c03eaf669cb945571ba798
refs/heads/master
2021-01-19T14:30:46.072444
2015-10-07T10:15:18
2015-10-07T10:15:18
37,909,755
0
0
null
null
null
null
UTF-8
Java
false
false
3,084
java
package com.hawk.c01.custom.collections; import java.util.Collections; import java.util.HashSet; import java.util.Set; public class FunWithEmptyImmutableCollections { private Set<String> states; /** * Prepare the states data member with some sample names of states. */ private void prepareStates() { states = new HashSet<String>(); states.add("Alabama"); states.add("Alaska"); states.add("Arizona"); states.add("Arkansas"); states.add("California"); states.add("Colorado"); states.add("Connecticut"); states.add("Delaware"); states.add("Florida"); } /** * Provide names of all states that begin with provided alphabet letter. * * @param firstLetter * Letter for which matching state names are desired. * @return Set of names of states that begin with provided firstLetter. */ private Set<String> getStatesStartingWithDesignatedLetter(final String firstLetter) { if ((firstLetter == null) || (firstLetter.isEmpty()) || (firstLetter.length() > 1)) { // return null; return Collections.emptySet(); } final Set<String> matchingStates = new HashSet<String>(); for (final String stateName : states) { if (stateName.startsWith(firstLetter.toUpperCase())) { matchingStates.add(stateName); } } return Collections.unmodifiableSet(matchingStates); // return matchingStates; } /** * Print out contents of provided Set. * * @param printTitle * Title to print with set contents. * @param setToPrint * Set whose contents should be printed. */ public static void printSetContents(final String printTitle, final Set<String> setToPrint) { System.out.println("----- " + printTitle + "-----"); for (final String setItem : setToPrint) { System.out.println(setItem); } System.out.println("--------------------"); } /** * Add provided stateName to provided Set of states. * * @param states * Set of states to which state name should be added. * @param stateName * Name of state to be added. */ public static void addArbitraryState(final Set<String> states, final String stateName) { states.add(stateName); } /** * Main executable method for running example. * * @param arguments * Command-line arguments; none expected. */ public static void main(final String[] arguments) { final FunWithEmptyImmutableCollections me = new FunWithEmptyImmutableCollections(); me.prepareStates(); Set<String> states = me.getStatesStartingWithDesignatedLetter("C"); printSetContents("Happy Path: Designated Letter Matches", states); addArbitraryState(states, "Georgia"); states = me.getStatesStartingWithDesignatedLetter("B"); printSetContents("Not-So-Happy Path: Designated Letter Not Found", states); addArbitraryState(states, "Georgia"); states = me.getStatesStartingWithDesignatedLetter(""); printSetContents("Unhappy Path: null Returned", states); addArbitraryState(states, "Georgia"); } }
[ "larrychen1990@163.com" ]
larrychen1990@163.com
de0f2cc61eed6483bea1f16aa4ab8fd93d4ea172
17e8438486cb3e3073966ca2c14956d3ba9209ea
/dso/tags/4.3.0.0.24/dso-l1/src/main/java/com/tc/object/ServerEventListenerManagerImpl.java
e855db3bb2ded73d635cdb01c84bed71da30fb29
[]
no_license
sirinath/Terracotta
fedfc2c4f0f06c990f94b8b6c3b9c93293334345
00a7662b9cf530dfdb43f2dd821fa559e998c892
refs/heads/master
2021-01-23T05:41:52.414211
2015-07-02T15:21:54
2015-07-02T15:21:54
38,613,711
1
0
null
null
null
null
UTF-8
Java
false
false
7,458
java
package com.tc.object; import static com.google.common.base.Preconditions.checkArgument; import static com.google.common.base.Preconditions.checkNotNull; import com.google.common.collect.Maps; import com.tc.exception.TCNotRunningException; import com.tc.exception.TCRuntimeException; import com.tc.logging.TCLogger; import com.tc.logging.TCLogging; import com.tc.net.NodeID; import com.tc.object.msg.ClientHandshakeMessage; import com.tc.properties.TCProperties; import com.tc.properties.TCPropertiesConsts; import com.tc.properties.TCPropertiesImpl; import com.tc.server.ServerEvent; import com.tc.server.ServerEventType; import com.tc.util.concurrent.TaskRunner; import java.util.Map; import java.util.Set; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import java.util.concurrent.locks.ReadWriteLock; import java.util.concurrent.locks.ReentrantReadWriteLock; /** * @author Eugene Shelestovich */ public class ServerEventListenerManagerImpl implements ServerEventListenerManager { private static final TCLogger LOG = TCLogging.getLogger(ServerEventListenerManagerImpl.class); private final Map<String, Map<ServerEventDestination, Set<ServerEventType>>> registry = Maps.newHashMap(); private final ReadWriteLock lock = new ReentrantReadWriteLock(); private final long timeoutInterval; private final TaskRunner runner; public ServerEventListenerManagerImpl(TaskRunner runner) { this.runner = runner; TCProperties props = TCPropertiesImpl.getProperties(); timeoutInterval = props.getLong(TCPropertiesConsts.L1_SERVER_EVENT_DELIVERY_TIMEOUT_INTERVAL, (3 * 60)); } @Override public void dispatch(final ServerEvent event, final NodeID remoteNode) { checkNotNull(event); checkNotNull(remoteNode); final String name = event.getCacheName(); final ServerEventType type = event.getType(); if (LOG.isDebugEnabled()) { LOG.debug("Server notification message has been received. Type: " + type + ", key: " + event.getKey() + ", cache: " + name); } lock.readLock().lock(); try { final Map<ServerEventDestination, Set<ServerEventType>> destinations = registry.get(name); if (destinations == null) { LOG.warn("Could not find server event destinations for cache: " + name + ". Incoming event: " + event); return; } boolean handlerFound = false; for (Map.Entry<ServerEventDestination, Set<ServerEventType>> destination : destinations.entrySet()) { final ServerEventDestination target = destination.getKey(); final Set<ServerEventType> eventTypes = destination.getValue(); if (eventTypes.contains(type)) { handlerFound = true; //now to submit and get a future ScheduledFuture future = runner.newTimer().schedule(new Runnable() { @Override public void run() { target.handleServerEvent(event); } }, 0, TimeUnit.MILLISECONDS); try { future.get(timeoutInterval, TimeUnit.SECONDS); } catch (InterruptedException e) { throw new TCRuntimeException("Interrupted exception thrown while dispatching server event", e); } catch (ExecutionException e) { throw new TCRuntimeException("Execution exception thrown while dispatching server event", e); } catch (TimeoutException e) { throw new TCRuntimeException("Dispatching events timed out", e); } } } if (!handlerFound) { LOG.warn("Could not find handler for server event: " + event); } } finally { lock.readLock().unlock(); } } @Override public void registerListener(final ServerEventDestination destination, final Set<ServerEventType> listenTo) { checkNotNull(destination); checkArgument(listenTo != null && !listenTo.isEmpty()); lock.writeLock().lock(); try { doRegister(destination, listenTo); } finally { lock.writeLock().unlock(); } } @Override public void unregisterListener(final ServerEventDestination destination, final Set<ServerEventType> listenTo) { checkNotNull(destination); checkArgument(listenTo != null && !listenTo.isEmpty()); lock.writeLock().lock(); try { doUnregister(destination, listenTo); } finally { lock.writeLock().unlock(); } } private void doRegister(final ServerEventDestination destination, final Set<ServerEventType> listenTo) { final String name = destination.getDestinationName(); Map<ServerEventDestination, Set<ServerEventType>> destinations = registry.get(name); if (destinations == null) { destinations = Maps.newHashMap(); destinations.put(destination, listenTo); registry.put(name, destinations); } else { final Set<ServerEventType> eventTypes = destinations.get(destination); if (eventTypes == null) { destinations.put(destination, listenTo); } else { eventTypes.addAll(listenTo); } } } private void doUnregister(final ServerEventDestination destination, final Set<ServerEventType> listenTo) { final String name = destination.getDestinationName(); final Map<ServerEventDestination, Set<ServerEventType>> destinations = registry.get(name); if (destinations != null) { final Set<ServerEventType> eventTypes = destinations.get(destination); if (eventTypes != null) { eventTypes.removeAll(listenTo); // handle potential cascading removals of parent entities if (eventTypes.isEmpty()) { destinations.remove(destination); if (destinations.isEmpty()) { registry.remove(name); } } } } } @Override public void cleanup() { lock.writeLock().lock(); try { registry.clear(); } finally { lock.writeLock().unlock(); } } @Override public void pause(final NodeID remoteNode, final int disconnected) { // Do Nothing } @Override public void unpause(final NodeID remoteNode, final int disconnected) { // on reconnect - resend all server event registrations to server if (LOG.isDebugEnabled()) { LOG.debug("Client '" + remoteNode + "' is reconnected. Re-sending server event listener registrations"); } for (Map<ServerEventDestination, Set<ServerEventType>> destinationMapping : registry.values()) { for (ServerEventDestination serverEventDestination : destinationMapping.keySet()) { try { serverEventDestination.resendEventRegistrations(); } catch (TCNotRunningException e) { // We can potentially get TCNotRunningExceptions if a connection was just established as the client shuts down // since the client is going down anyways, just ignore it. if (LOG.isDebugEnabled()) { LOG.debug("Got a TCNotRunningException processing event listener re-registrations."); } } } } } @Override public void initializeHandshake(final NodeID thisNode, final NodeID remoteNode, final ClientHandshakeMessage handshakeMessage) { // Do Nothing } @Override public void shutdown(boolean fromShutdownHook) { // Do Nothing } }
[ "cruise@7fc7bbf3-cf45-46d4-be06-341739edd864" ]
cruise@7fc7bbf3-cf45-46d4-be06-341739edd864
8ccebecebb799c7f406b93d0a606c7e4af7c4e22
90f54fb3b37e6fa3ae63fc17680434adc03f7679
/play/proto/__/com/mardomsara/social/pb/old/PBResMsgAddManyOrBuilder.java
c8d21f6249030a27a9bf76451f9136bf0a8029f9
[]
no_license
jozn/sun
c3607b59151f1a505f54c14a034ff55faa313eb3
b8657234c1746d22ae2b8cea03fcc93b09d46f0a
refs/heads/master
2021-10-02T20:09:48.401406
2018-01-14T02:36:06
2018-01-14T02:36:06
159,809,137
1
0
null
null
null
null
UTF-8
Java
false
true
439
java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: all.proto package com.mardomsara.social.pb; public interface PBResMsgAddManyOrBuilder extends // @@protoc_insertion_point(interface_extends:PBResMsgAddMany) com.google.protobuf.MessageLiteOrBuilder { /** * <code>.PBRes Res = 1;</code> */ boolean hasRes(); /** * <code>.PBRes Res = 1;</code> */ com.mardomsara.social.pb.PBRes getRes(); }
[ "7atashfeshan@gmail.com" ]
7atashfeshan@gmail.com
6dbe736fc7d695814a73a022512ac218b4cdb027
42908347571d9f406eabdc08f02e036b24d2729f
/eagleboard-services/eagleboard-service-node/src/main/java/com/mass3d/node/Deserializer.java
60afb3de90eca814805e4cba0c1f117b55deb16a
[]
no_license
Hamza-ye/eagleboard-playground
39a00fada6c3b5fd14e4ed11e9047c4da6cba017
deba1ee883a78b8c31d9dc3332659195a8686182
refs/heads/master
2022-12-26T21:02:00.655389
2020-10-13T15:16:25
2020-10-13T15:16:25
290,864,701
0
0
null
null
null
null
UTF-8
Java
false
false
207
java
package com.mass3d.node; import java.io.InputStream; import java.util.List; public interface Deserializer<T> { List<String> contentTypes(); T deserialize(InputStream inputStream) throws Exception; }
[ "7amza.it@gmail.com" ]
7amza.it@gmail.com
4e86dc5826d450293205705383bbf5d514bb1f5b
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/12/12_a6990a1f885630aedba1a344948bdbae67f5c1c1/JQueryJavaScriptStack/12_a6990a1f885630aedba1a344948bdbae67f5c1c1_JQueryJavaScriptStack_s.java
e5ff043e27a89bcd250d3e3da04bf383f97deccc
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
6,275
java
// // Copyright 2010 GOT5 (GO Tapestry 5) // // 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.got5.tapestry5.jquery.services.javascript; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.tapestry5.Asset; import org.apache.tapestry5.func.F; import org.apache.tapestry5.func.Mapper; import org.apache.tapestry5.func.Predicate; import org.apache.tapestry5.internal.services.javascript.CoreJavaScriptStack; import org.apache.tapestry5.ioc.annotations.Symbol; import org.apache.tapestry5.ioc.services.SymbolSource; import org.apache.tapestry5.services.AssetSource; import org.apache.tapestry5.services.javascript.JavaScriptStack; import org.apache.tapestry5.services.javascript.JavaScriptStackSource; import org.apache.tapestry5.services.javascript.StylesheetLink; import org.got5.tapestry5.jquery.JQuerySymbolConstants; import org.got5.tapestry5.jquery.services.EffectsParam; import org.got5.tapestry5.jquery.services.JavaScriptFilesConfiguration; import org.got5.tapestry5.jquery.utils.JQueryUtils; /** * Replacement for {@link CoreJavaScriptStack}. * * @author criedel, GOT5 */ public class JQueryJavaScriptStack implements JavaScriptStack { private final boolean minified; private String jQueryAlias; private final boolean suppressPrototype; private final List<Asset> jQueryJsStack; private final AssetSource assetSource; private final JavaScriptStackSource jsStackSource; private EffectsParam effectsParam; private JavaScriptFilesConfiguration jsConf; public JQueryJavaScriptStack( @Symbol(JQuerySymbolConstants.USE_MINIFIED_JS) final boolean minified, @Symbol(JQuerySymbolConstants.JQUERY_ALIAS) final String jQueryAlias, @Symbol(JQuerySymbolConstants.SUPPRESS_PROTOTYPE) final boolean suppressPrototype, final AssetSource assetSource, final JavaScriptStackSource jsStackSrc, final SymbolSource symbolSource, final EffectsParam effectsParam, final JavaScriptFilesConfiguration jsConf) { this.minified = minified; this.suppressPrototype = suppressPrototype; this.assetSource = assetSource; this.jQueryAlias = jQueryAlias; this.jsStackSource = jsStackSrc; this.effectsParam = effectsParam; this.jsConf = jsConf; final Mapper<String, Asset> pathToAsset = new Mapper<String, Asset>() { public Asset map(String path) { if (minified) { String pathMin = symbolSource.expandSymbols(path); if (path.equalsIgnoreCase("${jquery.core.path}")) { path = new StringBuffer(pathMin).insert( pathMin.lastIndexOf(".js"), ".min").toString(); } else if (path.contains("${jquery.ui.path}")) { path = new StringBuffer(pathMin) .insert(pathMin.lastIndexOf(".js"), ".min") .insert(pathMin.lastIndexOf('/'), "/minified") .toString(); } } return assetSource.getExpandedAsset(path); } }; final Mapper<String, StylesheetLink> pathToStylesheetLink = F.combine( pathToAsset, JQueryUtils.assetToStylesheetLink); jQueryJsStack = F .flow("${jquery.core.path}", "${jquery.ui.path}/jquery.ui.core.js", "${jquery.ui.path}/jquery.ui.position.js", "${jquery.ui.path}/jquery.ui.widget.js", "${jquery.ui.path}/jquery.effects.core.js", "${tapestry.jquery.path}/jquery.json-2.2.js") .concat(F.flow(this.effectsParam.getEffectsToLoad())) .map(pathToAsset).toList(); } public String getInitialization() { if (!suppressPrototype && jQueryAlias.equals("$")) throw new RuntimeException( "You are using an application based on Prototype" + " and jQuery. You should set in your AppModule the alias for the jQuery object to a different" + " value than '$'"); return minified ? "var " + jQueryAlias + " = jQuery; Tapestry.JQUERY=" + suppressPrototype + ";" : "var " + jQueryAlias + " = jQuery; Tapestry.DEBUG_ENABLED = true; var selector = new Array(); Tapestry.JQUERY=" + suppressPrototype + ";"; } /** * Asset in Prototype, have to be changed by a jQuery version */ public Object chooseJavascript(Asset asset) { return suppressPrototype ? jsConf.getAsset(asset) : asset; } public List<Asset> getJavaScriptLibraries() { List<Asset> ret = new ArrayList<Asset>(); if (suppressPrototype) { ret.add(this.assetSource.getExpandedAsset("${tapestry.js.path}")); } ret.addAll(jQueryJsStack); if (!suppressPrototype) { ret.add(this.assetSource .getExpandedAsset("${tapestry.jquery.path}/noconflict.js")); } for (Asset asset : jsStackSource.getStack( JQuerySymbolConstants.PROTOTYPE_STACK).getJavaScriptLibraries()) { asset = (Asset) chooseJavascript(asset); if (asset != null) ret.add(asset); } if (!suppressPrototype) { ret.add(this.assetSource .getExpandedAsset("${tapestry.jquery.path}/jquery-noconflict.js")); } return ret; } public List<StylesheetLink> getStylesheets() { List<StylesheetLink> ret = new ArrayList<StylesheetLink>(); if (!suppressPrototype) { ret.addAll(jsStackSource.getStack( JQuerySymbolConstants.PROTOTYPE_STACK).getStylesheets()); } else { for (StylesheetLink css : jsStackSource.getStack( JQuerySymbolConstants.PROTOTYPE_STACK).getStylesheets()) { if (css.getURL().endsWith("t5-alerts.css") || css.getURL().endsWith("tapestry-console.css") || css.getURL().endsWith("tree.css")) ret.add(css); } } return ret; } public List<String> getStacks() { return Collections.emptyList(); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
731e81ec739cd4308aa164ebf54fd737cf95f6cd
b4bdffa180050efe41bef7800bb5df6d5d28cd71
/src/main/java/com/coffeepoweredcrew/nullobject/ComplexService.java
4d0e00f8d15ea0b69c9367707a08b0e705d2470a
[]
no_license
portnovtest/design-patterns-handson
9d7c75ea4cc6558f6d6141e7f1ac13dd88198300
fd628881d694f8aa2d680d2de20e447a3894801e
refs/heads/master
2022-12-23T08:10:41.080411
2020-09-27T19:30:45
2020-09-27T19:30:45
288,041,795
0
0
null
null
null
null
UTF-8
Java
false
false
772
java
package com.coffeepoweredcrew.nullobject; public class ComplexService { private final StorageService storage; private final String reportName; public ComplexService(StorageService storage) { this.storage = storage; reportName = "A Complex Report"; } public ComplexService(String reportName, StorageService storage) { this.storage = storage; this.reportName = reportName; } public void generateReport() { System.out.println("Starting a complex report build!"); try { Thread.sleep(3000); } catch (InterruptedException e) { e.printStackTrace(); } System.out.println("Done with report.."); storage.save(new Report(reportName)); } }
[ "phildolganov@yahoo.com" ]
phildolganov@yahoo.com
38a08cfedfecec6d472ae34876ea217f116d41cf
a33aac97878b2cb15677be26e308cbc46e2862d2
/data/libgdx/CameraInputController_update.java
d5a5a91d6d5b9d1ba597f89e69782592aa0f8ffa
[]
no_license
GabeOchieng/ggnn.tensorflow
f5d7d0bca52258336fc12c9de6ae38223f28f786
7c62c0e8427bea6c8bec2cebf157b6f1ea70a213
refs/heads/master
2022-05-30T11:17:42.278048
2020-05-02T11:33:31
2020-05-02T11:33:31
null
0
0
null
null
null
null
UTF-8
Java
false
false
799
java
public void update() { if (rotateRightPressed || rotateLeftPressed || forwardPressed || backwardPressed) { final float delta = Gdx.graphics.getDeltaTime(); if (rotateRightPressed) camera.rotate(camera.up, -delta * rotateAngle); if (rotateLeftPressed) camera.rotate(camera.up, delta * rotateAngle); if (forwardPressed) { camera.translate(tmpV1.set(camera.direction).scl(delta * translateUnits)); if (forwardTarget) target.add(tmpV1); } if (backwardPressed) { camera.translate(tmpV1.set(camera.direction).scl(-delta * translateUnits)); if (forwardTarget) target.add(tmpV1); } if (autoUpdate) camera.update(); } }
[ "bdqnghi@gmail.com" ]
bdqnghi@gmail.com
e738b3bffec66a50dc7280fba5c363a39821d716
08a95d58927c426e515d7f6d23631abe734105b4
/Project/bean/com/dimata/harisma/form/leave/FrmLLUpload.java
72a1ba1b95fd86b8751813715bc403fd8a45d451
[]
no_license
Bagusnanda90/javaproject
878ce3d82f14d28b69b7ef20af675997c73b6fb6
1c8f105d4b76c2deba2e6b8269f9035c67c20d23
refs/heads/master
2020-03-23T15:15:38.449142
2018-07-21T00:31:47
2018-07-21T00:31:47
141,734,002
0
1
null
null
null
null
UTF-8
Java
false
false
3,782
java
/* * FrmDpApplication.java * * Created on October 21, 2004, 12:06 PM */ package com.dimata.harisma.form.leave; import javax.servlet.http.*; /* qdep package */ import com.dimata.qdep.form.*; /* project package */ import com.dimata.harisma.entity.leave.*; /** * * @author gedhy */ public class FrmLLUpload extends FRMHandler implements I_FRMInterface, I_FRMType { private LLUpload lLUpload; public static final String FRM_LL_UPLOAD = "FRM_LL_UPLOAD"; /** LL_UPLOAD_ID bigint NOT NULL, OPNAME_DATE DATETIME NOT NULL, EMPLOYEE_ID bigint NOT NULL, DATA_STATUS LL_TAKEN_YEAR1 integer, LL_TAKEN_YEAR2 integer, LL_TAKEN_YEAR3 integer, LL_TAKEN_YEAR4 integer, LL_TAKEN_YEAR5 integer, */ public static final int FRM_FLD_LL_UPLOAD_ID = 0; public static final int FRM_FLD_OPNAME_DATE = 1; public static final int FRM_FLD_EMPLOYEE_ID = 2; public static final int FRM_FLD_LL_TAKEN_YEAR1 = 3; public static final int FRM_FLD_DATA_STATUS = 4; public static final int FRM_FLD_STOCK = 5; public static final int FRM_FLD_NEW_LL = 6; public static final int FRM_FLD_LAST_PER_TO_CLEAR_LL = 7; public static final int FRM_FLD_LL_STOCK_ID = 8; public static final int FRM_FLD_LL_QTY = 9; //public static final int FRM_FLD_LL_TAKEN_YEAR2 = 5; //public static final int FRM_FLD_LL_TAKEN_YEAR3 = 6; //public static final int FRM_FLD_LL_TAKEN_YEAR4 = 7; //public static final int FRM_FLD_LL_TAKEN_YEAR5 = 8; public static String[] fieldNames = { "FRM_FLD_AL_UPLOAD_ID", "FRM_FLD_OPNAME_DATE", "FRM_FLD_EMPLOYEE_ID", "FRM_FLD_LL_TAKEN_YEAR1", "FRM_FLD_DATA_STATUS", "FRM_FLD_FLD_STOCK", "FRM_FLD_NEW_LL", "FRM_FLD_LAST_PER_TO_CLEAR_LL", "FRM_FLD_LL_STOCK_ID", "FRM_FLD_LL_QTY" }; public static int[] fieldTypes = { TYPE_LONG, TYPE_DATE, TYPE_LONG, TYPE_INT, TYPE_INT, TYPE_INT, TYPE_INT, TYPE_INT, TYPE_INT, TYPE_INT }; public FrmLLUpload() { } public FrmLLUpload(LLUpload lLUpload) { this.lLUpload = lLUpload; } public FrmLLUpload(HttpServletRequest request, LLUpload lLUpload) { super(new FrmLLUpload(lLUpload), request); this.lLUpload = lLUpload; } public String getFormName() { return FRM_LL_UPLOAD; } public int[] getFieldTypes() { return fieldTypes; } public String[] getFieldNames() { return fieldNames; } public int getFieldSize() { return fieldNames.length; } public LLUpload getEntityObject() { return lLUpload; } public void requestEntityObject(LLUpload lLUpload) { try { this.requestParam(); lLUpload.setDataStatus(getInt(FRM_FLD_DATA_STATUS)); lLUpload.setEmployeeId(getLong(FRM_FLD_EMPLOYEE_ID)); lLUpload.setOpnameDate(getDate(FRM_FLD_OPNAME_DATE)); lLUpload.setLlTakenYear1(getInt(FRM_FLD_LL_TAKEN_YEAR1)); lLUpload.setDataStatus(getInt(FRM_FLD_DATA_STATUS)); lLUpload.setStock(getInt(FRM_FLD_STOCK)); lLUpload.setNewLL(getInt(FRM_FLD_NEW_LL)); lLUpload.setLastPerToClearLL(getInt(FRM_FLD_LAST_PER_TO_CLEAR_LL)); lLUpload.setLLStockID(getInt(FRM_FLD_LL_STOCK_ID)); lLUpload.setLLQty(getInt(FRM_FLD_LL_QTY)); } catch (Exception e) { System.out.println("Error on requestEntityObject : " + e.toString()); } } }
[ "agungbagusnanda90@gmai.com" ]
agungbagusnanda90@gmai.com
ea4ce50aaf91783e5b20084a66971a10a06f3c1c
d5b1beab4cd257001ba8d9812d8d3aee8e4f1a1d
/polymonitor/com.siteview.kernel.core/src/main/java/com/dragonflow/Page/exchangeToolPage.java
6d96380a6dd81919818bdb72a691178b8ff0bfdb
[]
no_license
liuyaoao/polymer-project
65e6ace94b150c16a93ac9cfe559b35529192232
0b10de5658b059ad544f48a856fca8c452b65ef4
refs/heads/master
2021-01-24T18:25:50.899371
2017-12-18T02:13:02
2017-12-18T02:13:02
84,430,279
1
0
null
null
null
null
UTF-8
Java
false
false
2,422
java
/* * * Created on 2014-4-20 22:12:36 * * .java * * History: * */ package com.dragonflow.Page; import java.io.File; import java.text.SimpleDateFormat; import com.dragonflow.HTTP.HTTPRequestException; // Referenced classes of package com.dragonflow.Page: // CGI public class exchangeToolPage extends com.dragonflow.Page.CGI { private static java.text.DateFormat mFileDateFormat; public exchangeToolPage() { } public void printBody() throws java.lang.Exception { if (!request.actionAllowed("_tools")) { throw new HTTPRequestException(557); } String s = request.getValue("internalId"); String s1 = request.getValue("targetDir"); String s2 = request.getValue("name"); printButtonBar(null, ""); printBodyHeader("Exchange"); outputStream .println("<center><h2>Exchange Report Tool</h2></center><P>"); outputStream .println("The Exchange Report Tool allows you to view the results of previous runs of certain Exchange monitors.<P>"); outputStream.println("<b>Previous Runs for \"" + s2 + "\"</b><P>"); java.io.File file = new File(s1); if (file.isDirectory()) { String as[] = file.list(); for (int i = as.length - 1; i >= 0; i--) { if (!as[i].startsWith(s + ".")) { continue; } int j = as[i].indexOf("."); String s3 = as[i].substring(j + 1); synchronized (mFileDateFormat) { java.util.Date date = mFileDateFormat.parse(s3); String s4 = s1 + java.io.File.separator + as[i]; outputStream .println("<a href=\""+CGI.getTenant(request.getURL())+"/SiteView/cgi/go.exe/SiteView?page=exchangeReport&file=" + java.net.URLEncoder.encode(s4, "UTF-8") + "\">" + java.text.DateFormat .getDateTimeInstance().format(date) + "</a><P>"); } } } printFooter(outputStream); } static { mFileDateFormat = new SimpleDateFormat( com.dragonflow.SiteView.ExchangeToolBase.REPORT_FILE_DATE_FORMAT); } }
[ "623578381@qq.com" ]
623578381@qq.com
12bab3b085db952e8c6c566e5cc7e6785621718b
90f3a8153d4b55d854c570d3ef90f69e965e7bfd
/Coding Ninjas/BFS.java
80ed5f220a95a90df13821e632a77cbaa52db933
[]
no_license
uditiarora/Competitive
d75c3b60d4818736f428517a0f944f3854b2c47a
f57b0202d02ab15b147bf50e9357a2a6e256fa93
refs/heads/master
2023-07-07T09:12:15.098829
2020-10-26T12:45:34
2020-10-26T12:45:34
203,732,572
0
0
null
null
null
null
UTF-8
Java
false
false
868
java
import java.util.*; public class Solution { public static void main(String[] args) { Scanner s = new Scanner(System.in); int v = s.nextInt(); int e = s.nextInt(); /* Write Your Code Here * Complete the Rest of the Program * You have to take input and print the output yourself */ int[][] arr = new int[v+1][v+1]; int[] visited = new int[v]; for(int i=0;i<e;i++){ int a = s.nextInt(); int b = s.nextInt(); arr[a][b] = arr[b][a] = 1; } Queue<Integer> q = new LinkedList<Integer>(); q.add(0); visited[0]=1; while(!q.isEmpty()){ int p = q.remove(); for(int i=0;i<v;i++){ if(arr[p][i] == 1 && visited[i] == 0){ q.add(i); visited[i]=1; } } System.out.print(p+" "); } } }
[ "uditiarora@gmail.com" ]
uditiarora@gmail.com