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
078d38285c54baa3a3ff7fb73a6650f429b35714
24d8cf871b092b2d60fc85d5320e1bc761a7cbe2
/Freecol/rev5884-6616/left-branch-6616/net/sf/freecol/common/model/GameOptions.java
f127d05abf3f411e4ed19ece97f8294c8cdc4f44
[]
no_license
joliebig/featurehouse_fstmerge_examples
af1b963537839d13e834f829cf51f8ad5e6ffe76
1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad
refs/heads/master
2016-09-05T10:24:50.974902
2013-03-28T16:28:47
2013-03-28T16:28:47
9,080,611
3
2
null
null
null
null
UTF-8
Java
false
false
2,287
java
package net.sf.freecol.common.model; import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamReader; import net.sf.freecol.common.Specification; import net.sf.freecol.common.option.OptionMap; import org.w3c.dom.Element; public class GameOptions extends OptionMap { public static final String STARTING_MONEY = "model.option.startingMoney"; public static final String CUSTOM_IGNORE_BOYCOTT = "model.option.customIgnoreBoycott"; public static final String EXPERTS_HAVE_CONNECTIONS = "model.option.expertsHaveConnections"; public static final String SAVE_PRODUCTION_OVERFLOW = "model.option.saveProductionOverflow"; public static final String EXPLORATION_POINTS = "model.option.explorationPoints"; public static final String FOG_OF_WAR = "model.option.fogOfWar"; public static final String VICTORY_DEFEAT_REF = "model.option.victoryDefeatREF"; public static final String VICTORY_DEFEAT_EUROPEANS = "model.option.victoryDefeatEuropeans"; public static final String VICTORY_DEFEAT_HUMANS = "model.option.victoryDefeatHumans"; public static final String EDUCATE_LEAST_SKILLED_UNIT_FIRST = "model.option.educateLeastSkilledUnitFirst"; public static final String DIFFICULTY = "model.option.difficulty"; public GameOptions() { super(getXMLElementTagName()); } public GameOptions(XMLStreamReader in) throws XMLStreamException { super(in, getXMLElementTagName()); } public GameOptions(Element e) { super(e, getXMLElementTagName()); } protected void addDefaultOptions() { Specification spec = Specification.getSpecification(); add(spec.getOptionGroup("gameOptions.map")); add(spec.getOptionGroup("gameOptions.colony")); add(spec.getOptionGroup("gameOptions.victoryConditions")); add(spec.getOptionGroup("gameOptions.difficultySettings")); } protected boolean isCorrectTagName(String tagName) { return getXMLElementTagName().equals(tagName); } public static String getXMLElementTagName() { return "gameOptions"; } }
[ "joliebig@fim.uni-passau.de" ]
joliebig@fim.uni-passau.de
a2dba5fa23f5ab6e667dc03ad1d9cb238ee78304
073693ef5c3f701eb941316274e137bc615d1fac
/Section2/javaee8-samples/concurrency/schedule/src/main/java/org/glassfish/schedule/TestScheduleServlet.java
250c2b7c0c22878548095f9486e9e982b9ae0f5e
[ "MIT" ]
permissive
PacktPublishing/Java-EE-8-High-Performance-video-
0904fec1a1b0cd0a86b75a09e8a64eaf088479ca
191eb62fbe74fb636570fd6df77e1f3abafd4816
refs/heads/master
2023-01-20T07:04:48.074333
2023-01-10T16:38:08
2023-01-10T16:38:08
125,844,771
10
13
MIT
2023-01-10T16:38:10
2018-03-19T11:04:39
HTML
UTF-8
Java
false
false
6,338
java
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 2013 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution License("CDDL") (collectively, the "License"). You * may not use this file except in compliance with the License. You can * obtain a copy of the License at * https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html * or packager/legal/LICENSE.txt. See the License for the specific * language governing permissions and limitations under the License. * * When distributing the software, include this License Header Notice in each * file and include the License file at packager/legal/LICENSE.txt. * * GPL Classpath Exception: * Oracle designates this particular file as subject to the "Classpath" * exception as provided by Oracle in the GPL Version 2 section of the License * file that accompanied this code. * * Modifications: * If applicable, add the following below the License Header, with the fields * enclosed by brackets [] replaced by your own identifying information: * "Portions Copyright [year] [name of copyright owner]" * * Contributor(s): * If you wish your version of this file to be governed by only the CDDL or * only the GPL Version 2, indicate your decision by adding "[Contributor] * elects to include this software in this distribution under the [CDDL or GPL * Version 2] license." If you don't indicate a single choice of license, a * recipient has the option to distribute your version of this file under * either the CDDL, the GPL Version 2 or to extend the choice of license to * its licensees as provided above. However, if you add GPL Version 2 code * and therefore, elected the GPL Version 2 license, then the option applies * only if the new code is made subject to such option by the copyright * holder. */ package org.glassfish.schedule; import java.io.IOException; import java.io.PrintWriter; import java.util.concurrent.ExecutionException; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; import javax.annotation.Resource; import javax.enterprise.concurrent.ManagedScheduledExecutorService; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * * @author arungup */ @WebServlet(name = "TestScheduleServlet", urlPatterns = {"/TestScheduleServlet"}) public class TestScheduleServlet extends HttpServlet { // @Resource(name = "concurrent/myScheduledExecutor2") @Resource(name = "DefaultManagedScheduledExecutorService") ManagedScheduledExecutorService executor; /** * Processes requests for both HTTP * <code>GET</code> and * <code>POST</code> methods. * * @param request servlet request * @param response servlet response * @throws ServletException if a servlet-specific error occurs * @throws IOException if an I/O error occurs */ protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); try (PrintWriter out = response.getWriter()) { out.println("<!DOCTYPE html>"); out.println("<html>"); out.println("<head>"); out.println("<title>Servlet TestScheduleServlet</title>"); out.println("</head>"); out.println("<body>"); out.println("<h1>Servlet TestScheduleServlet at " + request.getContextPath() + "</h1>"); ScheduledFuture<Product> future = executor.schedule(new MyCallableTask(5), 5, TimeUnit.SECONDS); while (true) { if (future.isDone()) { break; } else { System.out.println("Checking Callable Future, waiting for 1 sec"); Thread.sleep(1000); } } out.println("Callable Task completed: " + future.get().getId()); ScheduledFuture<?> f = executor.schedule(new MyRunnableTask(10), 5, TimeUnit.SECONDS); while (true) { if (f.isDone()) { break; } else { System.out.println("Checking Runnable Future, waiting for 1 sec"); Thread.sleep(1000); } } out.println("Callable Task completed: " + future.get().getId()); out.println("</body>"); out.println("</html>"); } catch (InterruptedException | ExecutionException ex) { Logger.getLogger(TestScheduleServlet.class.getName()).log(Level.SEVERE, null, ex); } } // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code."> /** * Handles the HTTP * <code>GET</code> method. * * @param request servlet request * @param response servlet response * @throws ServletException if a servlet-specific error occurs * @throws IOException if an I/O error occurs */ @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); } /** * Handles the HTTP * <code>POST</code> method. * * @param request servlet request * @param response servlet response * @throws ServletException if a servlet-specific error occurs * @throws IOException if an I/O error occurs */ @Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); } /** * Returns a short description of the servlet. * * @return a String containing servlet description */ @Override public String getServletInfo() { return "Short description"; }// </editor-fold> }
[ "werner.keil@gmx.net" ]
werner.keil@gmx.net
a2bb286d3a1a82d5f2ae9cb2717822b6782d88da
83d61467775d156bdf398422b30ed4f88aa5e073
/src/main/java/hello/PropertiConfig.java
f54b92d4da1b02b59b381b6fb10cec8a34f6ec74
[]
no_license
romanm/sah-cms1
2d5bf9685c3eec4c8506fdd7eedad3621bf5c9da
7245a5e5b753f055c373c06f7657ab72f8b91790
refs/heads/master
2021-01-10T04:23:04.994089
2015-12-25T14:27:49
2015-12-25T14:27:49
47,895,930
0
0
null
null
null
null
UTF-8
Java
false
false
1,777
java
package hello; import java.text.SimpleDateFormat; import java.util.Map; import java.util.Set; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; import hello.service.FileService; @Component public class PropertiConfig { private static final Logger logger = LoggerFactory.getLogger(PropertiConfig.class); @Autowired private FileService fileService; Map contentFileTypes = null; public void setNullContentFileTypes(){ contentFileTypes = null; } public Map<String, Object> getContentFileTypes(){ if(contentFileTypes == null){ contentFileTypes = fileService.readJsonFromFileName(fileCommonContent); contentFileTypes.remove("title"); Map map = (Map)contentFileTypes.get("pages"); for (String pageName : (Set<String>) map.keySet()) { Map pageContent = (Map) map.get(pageName); pageContent.remove("title"); pageContent.remove("html"); } } return contentFileTypes; } @Value("${server.port:0000}") public String port; @Value("${application.home:/tmp}") private String applicationHome; public String getApplicationHome() { return applicationHome; } public String applicationViewPath() { return getApplicationHome() + innerWebapp + folderPublicFiles; } @Value("${folder.db:/tmp}") public String folderDb; @Value("${folder.public.files:/view}") public String folderPublicFiles; @Value("${file.common_content:fcc.json}") public String fileCommonContent; public final static SimpleDateFormat yyyyMMddHHmmssDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"); public final static String innerWebapp = "src/main/webapp/"; }
[ "roman.mishchenko@gmail.com" ]
roman.mishchenko@gmail.com
c79ba4aaf48ef7abf67c041e3d24f30779b79714
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
/aliyun-java-sdk-unimkt/src/main/java/com/aliyuncs/unimkt/model/v20181212/ListSlotResponse.java
f577cd0f954588234d20ab4065053f7c464b54e8
[ "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
5,432
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.unimkt.model.v20181212; import java.util.List; import com.aliyuncs.AcsResponse; import com.aliyuncs.unimkt.transform.v20181212.ListSlotResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class ListSlotResponse extends AcsResponse { private String requestId; private Boolean success; private String code; private String message; private Integer pageNumber; private Integer pageSize; private Long total; private List<AdSlot> model; public String getRequestId() { return this.requestId; } public void setRequestId(String requestId) { this.requestId = requestId; } public Boolean getSuccess() { return this.success; } public void setSuccess(Boolean success) { this.success = success; } public String getCode() { return this.code; } public void setCode(String code) { this.code = code; } public String getMessage() { return this.message; } public void setMessage(String message) { this.message = message; } public Integer getPageNumber() { return this.pageNumber; } public void setPageNumber(Integer pageNumber) { this.pageNumber = pageNumber; } public Integer getPageSize() { return this.pageSize; } public void setPageSize(Integer pageSize) { this.pageSize = pageSize; } public Long getTotal() { return this.total; } public void setTotal(Long total) { this.total = total; } public List<AdSlot> getModel() { return this.model; } public void setModel(List<AdSlot> model) { this.model = model; } public static class AdSlot { private Long createTime; private String mediaName; private String adSlotType; private String adSlotStatus; private String mediaId; private String extInfo; private String adSlotName; private String inspireScene; private String blockingRule; private Long version; private String adSlotId; private String adSlotCorporateStatus; private String adSlotTemplateId; private Long modifyTime; private String tenantId; public Long getCreateTime() { return this.createTime; } public void setCreateTime(Long createTime) { this.createTime = createTime; } public String getMediaName() { return this.mediaName; } public void setMediaName(String mediaName) { this.mediaName = mediaName; } public String getAdSlotType() { return this.adSlotType; } public void setAdSlotType(String adSlotType) { this.adSlotType = adSlotType; } public String getAdSlotStatus() { return this.adSlotStatus; } public void setAdSlotStatus(String adSlotStatus) { this.adSlotStatus = adSlotStatus; } public String getMediaId() { return this.mediaId; } public void setMediaId(String mediaId) { this.mediaId = mediaId; } public String getExtInfo() { return this.extInfo; } public void setExtInfo(String extInfo) { this.extInfo = extInfo; } public String getAdSlotName() { return this.adSlotName; } public void setAdSlotName(String adSlotName) { this.adSlotName = adSlotName; } public String getInspireScene() { return this.inspireScene; } public void setInspireScene(String inspireScene) { this.inspireScene = inspireScene; } public String getBlockingRule() { return this.blockingRule; } public void setBlockingRule(String blockingRule) { this.blockingRule = blockingRule; } public Long getVersion() { return this.version; } public void setVersion(Long version) { this.version = version; } public String getAdSlotId() { return this.adSlotId; } public void setAdSlotId(String adSlotId) { this.adSlotId = adSlotId; } public String getAdSlotCorporateStatus() { return this.adSlotCorporateStatus; } public void setAdSlotCorporateStatus(String adSlotCorporateStatus) { this.adSlotCorporateStatus = adSlotCorporateStatus; } public String getAdSlotTemplateId() { return this.adSlotTemplateId; } public void setAdSlotTemplateId(String adSlotTemplateId) { this.adSlotTemplateId = adSlotTemplateId; } public Long getModifyTime() { return this.modifyTime; } public void setModifyTime(Long modifyTime) { this.modifyTime = modifyTime; } public String getTenantId() { return this.tenantId; } public void setTenantId(String tenantId) { this.tenantId = tenantId; } } @Override public ListSlotResponse getInstance(UnmarshallerContext context) { return ListSlotResponseUnmarshaller.unmarshall(this, context); } @Override public boolean checkShowJsonItemName() { return false; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
bd545dfbc8d8a41e12fe3285b9f62405ac17b093
bbcd1ca59601057feaca183ef534028853d9300e
/lwh-gl/gl-product/src/main/java/com/lwhtarena/glmall/product/config/GulimallProductSentinelConfig.java
f724f7171a962b2e20a8c4fac69eb606a949002b
[]
no_license
hkkkkq/cloud
214f95e1c0a07af99339219119b7200ff6b8056f
ee21c997ed02ec69ff5b97c78851894c5c25301b
refs/heads/master
2023-01-01T05:03:44.237792
2020-10-22T16:32:56
2020-10-22T16:32:56
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,077
java
package com.lwhtarena.glmall.product.config; //import com.alibaba.csp.sentinel.adapter.servlet.callback.UrlBlockHandler; //import com.alibaba.csp.sentinel.adapter.servlet.callback.WebCallbackManager; import com.alibaba.csp.sentinel.adapter.spring.webflux.callback.BlockRequestHandler; import com.alibaba.csp.sentinel.adapter.spring.webmvc.callback.BlockExceptionHandler; import com.alibaba.csp.sentinel.adapter.spring.webflux.callback.WebFluxCallbackManager; import com.alibaba.csp.sentinel.adapter.spring.webmvc.callback.DefaultBlockExceptionHandler; import com.alibaba.csp.sentinel.slots.block.BlockException; import com.alibaba.fastjson.JSON; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.lwhtarena.common.exception.BizCodeEnume; import com.lwhtarena.common.utils.R; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.server.ServerWebExchange; import org.springframework.web.servlet.function.ServerResponse; import reactor.core.publisher.Mono; import java.io.IOException; /** * @author liwh * @Title: GulimallProductSentinelConfig * @Package com.lwhtarena.glmall.product.config * @Description: 自定义阻塞返回方法 * * 2.2.0之前的版本基于==sentinel-web-servlet ==实现 * * 而2.2.0是依赖 sentinel-spring-webmvc-dapter,基于Spring的Interceptor拦截资源,而不再是CommonFilter。 * * @Version 1.0.0 * @date 2020/9/9 12:07 */ @Configuration public class GulimallProductSentinelConfig { @Bean public BlockExceptionHandler sentinelBlockExceptionHandler() { return (request, response, e) -> { // 429 Too Many Requests response.setStatus(429); R error = R.error(BizCodeEnume.TO_MANY_REQUEST.getCode(), BizCodeEnume.TO_MANY_REQUEST.getMsg()); response.setCharacterEncoding("UTF-8"); response.setContentType("application/json"); response.getWriter().write(JSON.toJSONString(error)); }; } }
[ "lwhtarena@163.com" ]
lwhtarena@163.com
515417439d746ce97862e3a9a9815643364584cd
fbf95d693ad5beddfb6ded0be170a9e810a10677
/business-services/egf-master/src/main/java/org/egov/egf/master/persistence/entity/FinancialYearEntity.java
490540340fcb7a4cefb6b1bd6d52c17b06b6d492
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
egovernments/DIGIT-OSS
330cc364af1b9b66db8914104f64a0aba666426f
bf02a2c7eb783bf9fdf4b173faa37f402e05e96e
refs/heads/master
2023-08-15T21:26:39.992558
2023-08-08T10:14:31
2023-08-08T10:14:31
353,807,330
25
91
MIT
2023-09-10T13:23:31
2021-04-01T19:35:55
Java
UTF-8
Java
false
false
1,916
java
package org.egov.egf.master.persistence.entity; import java.util.Date; import org.egov.common.persistence.entity.AuditableEntity; import org.egov.egf.master.domain.model.FinancialYear; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; @Getter @Setter @AllArgsConstructor @NoArgsConstructor @Builder public class FinancialYearEntity extends AuditableEntity { public static final String TABLE_NAME = "egf_financialyear"; public static final String SEQUENCE_NAME = "seq_egf_financialyear"; private String id; private String finYearRange; private Date startingDate; private Date endingDate; private Boolean active; private Boolean isActiveForPosting; private Boolean isClosed; private Boolean transferClosingBalance; public FinancialYear toDomain() { FinancialYear financialYear = new FinancialYear(); super.toDomain(financialYear); financialYear.setId(this.id); financialYear.setFinYearRange(this.finYearRange); financialYear.setStartingDate(this.startingDate); financialYear.setEndingDate(this.endingDate); financialYear.setActive(this.active); financialYear.setIsActiveForPosting(this.isActiveForPosting); financialYear.setIsClosed(this.isClosed); financialYear.setTransferClosingBalance(this.transferClosingBalance); return financialYear; } public FinancialYearEntity toEntity(FinancialYear financialYear) { super.toEntity(financialYear); this.id = financialYear.getId(); this.finYearRange = financialYear.getFinYearRange(); this.startingDate = financialYear.getStartingDate(); this.endingDate = financialYear.getEndingDate(); this.active = financialYear.getActive(); this.isActiveForPosting = financialYear.getIsActiveForPosting(); this.isClosed = financialYear.getIsClosed(); this.transferClosingBalance = financialYear.getTransferClosingBalance(); return this; } }
[ "36623418+nithindv@users.noreply.github.com" ]
36623418+nithindv@users.noreply.github.com
94f88b2332091f82378f3a79a2f9d770cfdf6b08
bb64b4a80a76d23445cdaed583e21913fc0a4d95
/core/src/main/java/org/microshed/testing/SharedContainerConfiguration.java
857c89d1c2db77f972da3ff74bdd9a1c719cb9ff
[ "Apache-2.0" ]
permissive
realModusOperandi/microshed-testing
a8439c4cba781812456b176a31bc8010a00c0818
c33b9eaf853a9772feedb92e71c30eb830c84c71
refs/heads/master
2020-07-23T13:59:36.469893
2019-09-09T23:36:11
2019-09-09T23:36:11
207,583,145
0
0
Apache-2.0
2019-09-10T14:34:37
2019-09-10T14:34:37
null
UTF-8
Java
false
false
1,331
java
/* * Copyright (c) 2019 IBM Corporation and others * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. * * 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.microshed.testing; /** * To be used in conjunction with {@link SharedContainerConfig} */ public interface SharedContainerConfiguration { /** * A method that may optionally be implemented to impose a specific * container start ordering. * Any containers that do not depend on other containers should make use * of Java 8 parallel streams:<br> * <code>containersToStart.parallelStream().forEach(GenericContainer::start);</code> */ public default void startContainers() { throw new UnsupportedOperationException("Not implemented"); } }
[ "andy.guibert@gmail.com" ]
andy.guibert@gmail.com
99d19cd8f37f73af9ec1d7a25baae6dd5bf0b323
67249ea888f86ba5e133018a17d1c35993eeb1d2
/src/main/java/com/ziyu/jvm/ch05/instructions/stores/DStore3.java
4267647460fee403348cd8475f7693bfdb053744
[]
no_license
ZheBigFish/myjvm
7515a3db5653a3771707df9949707ff1a583c118
13105d7da590118d133b97c806d83a518793444c
refs/heads/master
2022-12-22T04:56:54.224858
2020-05-16T08:10:29
2020-05-16T08:10:29
231,883,089
1
0
null
2022-12-16T05:06:36
2020-01-05T07:28:34
Java
UTF-8
Java
false
false
371
java
package com.ziyu.jvm.ch05.instructions.stores; import com.ziyu.jvm.ch05.instructions.base.NoOperandsInstruction; import com.ziyu.jvm.ch05.rtda.Frame; /** * @ClassName IStore * @Date * @Author * @Description TODO **/ public class DStore3 extends NoOperandsInstruction { @Override public void execute(Frame frame) { DStore.dStore(frame, 3); } }
[ "762349436@qq.com" ]
762349436@qq.com
644678bd66dc9f2ac66cc1f88468c0f9e1dd3431
35a3a42196317d47e0b853b036be5c3700669f15
/backend-card/src/main/java/com/resto/msgc/backend/card/util/ExcelUtilImport.java
8b07a8d3af1e748e9e28440059c972cfa0cf416a
[]
no_license
disvenk/card
2526a440c3509f0152eca946e8b5171115aeec33
f8a621ff591b1904e837cec427e0aab402f0b0d7
refs/heads/master
2022-07-11T06:14:53.470303
2019-10-22T06:45:59
2019-10-22T06:45:59
216,741,733
0
0
null
2022-06-29T17:43:36
2019-10-22T06:43:00
JavaScript
UTF-8
Java
false
false
2,952
java
package com.resto.msgc.backend.card.util; import com.resto.msgc.backend.card.dto.ExcelCardDto; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.xssf.usermodel.XSSFWorkbook; import java.io.FileInputStream; import java.io.IOException; import java.util.ArrayList; import java.util.List; /** * Created by xielc on 2018/5/8. */ public class ExcelUtilImport { /** * 读取出filePath中的所有数据信息 * @param filePath excel文件的绝对路径 * */ public static List<ExcelCardDto> getDataFromExcel(String filePath) { //String filePath = "E:\\123.xlsx"; //判断是否为excel类型文件 if(!filePath.endsWith(".xls")&&!filePath.endsWith(".xlsx")) { System.out.println("文件不是excel类型"); } FileInputStream fis =null; Workbook wookbook = null; try { //获取一个绝对地址的流 fis = new FileInputStream(filePath); } catch(Exception e) { e.printStackTrace(); } try { //2007版本的excel,用.xlsx结尾 wookbook = new XSSFWorkbook(fis);//得到工作簿 } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } //得到一个工作表 Sheet sheet = wookbook.getSheetAt(0); List<ExcelCardDto> list=new ArrayList<>(); for(Row row:sheet){ if(row.getRowNum()==0){ continue; } //System.out.println("--------------->"+row.getCell((short)0).getStringCellValue()+row.getCell((short)1).getStringCellValue()+row.getCell((short)2).getStringCellValue()+row.getCell((short)2).getStringCellValue()); ExcelCardDto excelCardDto=new ExcelCardDto(); excelCardDto.setCardId(row.getCell((short)0)==null?null:row.getCell((short)0).getStringCellValue()); excelCardDto.setCustomerName(row.getCell((short)1)==null?null:row.getCell((short)1).getStringCellValue()); excelCardDto.setTelephone(row.getCell((short)2)==null?null:row.getCell((short)2).getStringCellValue()); excelCardDto.setCardType(row.getCell((short)3)==null?null:row.getCell((short)3).getStringCellValue()); excelCardDto.setDiscount(row.getCell((short)4)==null?null:row.getCell((short)4).getStringCellValue()); excelCardDto.setCompanyId(row.getCell((short)5)==null?null:row.getCell((short)5).getStringCellValue()); excelCardDto.setChargeMoney(row.getCell((short)6)==null?null:row.getCell((short)6).getStringCellValue()); excelCardDto.setRewardMoney(row.getCell((short)7)==null?null:row.getCell((short)7).getStringCellValue()); list.add(excelCardDto); } return list; } }
[ "disvenk@163.com" ]
disvenk@163.com
ae01d106e597a520135f689678b57373d08baf6e
12b14b30fcaf3da3f6e9dc3cb3e717346a35870a
/examples/commons-cli/mutations/mutants-Util/22/org/apache/commons/cli/Util.java
eb687980c1c191885a3b43264307942772d88b73
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
SmartTests/smartTest
b1de326998857e715dcd5075ee322482e4b34fb6
b30e8ec7d571e83e9f38cd003476a6842c06ef39
refs/heads/main
2023-01-03T01:27:05.262904
2020-10-27T20:24:48
2020-10-27T20:24:48
305,502,060
0
0
null
null
null
null
UTF-8
Java
false
false
2,172
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.commons.cli; /** * Contains useful helper methods for classes within this package. */ final class Util { /** * Remove the hyphens from the beginning of <code>str</code> and * return the new String. * * @param str The string from which the hyphens should be removed. * * @return the new String. */ static String stripLeadingHyphens(final String str) { if (str == null) { return null; } if (str.startsWith("--")) { return str.substring(2, str.length()); } else if (str.startsWith("-")) { return str.substring(1, str.length()); } return str; } /** * Remove the leading and trailing quotes from <code>str</code>. * E.g. if str is '"one two"', then 'one two' is returned. * * @param str The string from which the leading and trailing quotes * should be removed. * * @return The string without the leading and trailing quotes. */ static String stripLeadingAndTrailingQuotes(String str) { final int length = str.length(); if (length > 1 && str.endsWith("\"") && str.substring(1, length - 1).indexOf('"') == -1) { str = str.substring(1, length - 1); } return str; } }
[ "kesina@Kesinas-MBP.lan" ]
kesina@Kesinas-MBP.lan
212a2b5b633c7387b9a40c253b61809326d2f46d
86152af493decf40f53d7951d4c7f8a60f363d64
/seoulMarketDayAndroid/seoulMarketDayAndroid/app/src/main/java/com/stm/user/detail/merchant/fragment/follower/interactor/impl/MerchantDetailFollowerInteractorImpl.java
afbc24bd444ef3ca5003149a5927ac5b0c26ca53
[ "MIT" ]
permissive
MobileSeoul/2017seoul-15
b54fb7d95c6bf685203d9948e4087385b02f6170
620eb72e4cdba9f355327b66a299da257c5b0b40
refs/heads/master
2021-09-05T14:39:35.702491
2018-01-29T00:15:01
2018-01-29T00:15:01
119,310,262
5
1
null
null
null
null
UTF-8
Java
false
false
4,069
java
package com.stm.user.detail.merchant.fragment.follower.interactor.impl; import com.stm.common.dao.User; import com.stm.common.flag.LogFlag; import com.stm.common.util.ErrorUtil; import com.stm.repository.remote.UserRepository; import com.stm.repository.remote.interceptor.NetworkInterceptor; import com.stm.user.detail.merchant.fragment.follower.interactor.MerchantDetailFollowerInteractor; import com.stm.user.detail.merchant.fragment.follower.presenter.MerchantDetailFollowerPresenter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.ArrayList; import java.util.List; import retrofit2.Call; import retrofit2.Callback; import retrofit2.Response; /** * Created by Dev-0 on 2017-08-04. */ public class MerchantDetailFollowerInteractorImpl implements MerchantDetailFollowerInteractor { private MerchantDetailFollowerPresenter merchantDetailFollowerPresenter; private List<User> followers; private User storyUser; private User user; private UserRepository userRepository; private static final Logger logger = LoggerFactory.getLogger(MerchantDetailFollowerInteractorImpl.class); public MerchantDetailFollowerInteractorImpl(MerchantDetailFollowerPresenter merchantDetailFollowerPresenter) { this.merchantDetailFollowerPresenter = merchantDetailFollowerPresenter; this.followers = new ArrayList<>(); } @Override public User getUser() { return user; } @Override public void setUser(User user) { this.user = user; } @Override public User getStoryUser() { return storyUser; } @Override public void setStoryUser(User storyUser) { this.storyUser = storyUser; } @Override public void setUserRepository(String accessToken) { userRepository = new NetworkInterceptor(accessToken).getRetrofitForUserRepository().create(UserRepository.class); } @Override public void setUserRepository() { userRepository = new NetworkInterceptor().getRetrofitForUserRepository().create(UserRepository.class); } @Override public void getFollowerListByStoryUserIdAndOffset(long storyUserId, long offset) { Call<List<User>> CallFollowerListByStoryUserIdAndOffsetApi = userRepository.findFollowerListByStoryUserIdAndOffset(storyUserId, offset); CallFollowerListByStoryUserIdAndOffsetApi.enqueue(new Callback<List<User>>() { @Override public void onResponse(Call<List<User>> call, Response<List<User>> response) { if (response.isSuccessful()) { List<User> followers = response.body(); merchantDetailFollowerPresenter.onSuccessGetFollowerListByStoryUserIdAndOffset(followers); } else { merchantDetailFollowerPresenter.onNetworkError(new ErrorUtil(getClass()).parseError(response)); } } @Override public void onFailure(Call<List<User>> call, Throwable t) { log(t); merchantDetailFollowerPresenter.onNetworkError(null); } }); } @Override public List<User> getFollowers() { return followers; } @Override public void setFollowers(List<User> followers) { this.followers = followers; } @Override public void setFollowersAddAll(List<User> followers) { this.followers.addAll(followers); } private static void log(Throwable throwable) { StackTraceElement[] ste = throwable.getStackTrace(); String className = ste[0].getClassName(); String methodName = ste[0].getMethodName(); int lineNumber = ste[0].getLineNumber(); String fileName = ste[0].getFileName(); if (LogFlag.printFlag) { if (logger.isInfoEnabled()) { logger.error("Exception: " + throwable.getMessage()); logger.error(className + "." + methodName + " " + fileName + " " + lineNumber + " " + "line"); } } } }
[ "mobile@seoul.go.kr" ]
mobile@seoul.go.kr
0f313d89f607c3cddd7f1e9685fb4da574a27293
2b94fb946ee8f48183d9b8064f3cc9cd361dcebc
/src/main/java/hprose/io/serialize/TimestampSerializer.java
b2b73391b82b7bafd55c1e18fecbd6b37be817a1
[ "MIT" ]
permissive
smilechenchen/hprose-java
13e982c27c79c9bae2afa2c22c1789dc440ee5e3
3556360b2363197164db8c1279a3ed6436feeaae
refs/heads/master
2021-04-15T18:29:42.478786
2016-07-07T08:54:46
2016-07-07T08:54:46
62,849,040
1
0
null
2016-07-08T01:22:25
2016-07-08T01:22:24
null
UTF-8
Java
false
false
2,185
java
/**********************************************************\ | | | hprose | | | | Official WebSite: http://www.hprose.com/ | | http://www.hprose.org/ | | | \**********************************************************/ /**********************************************************\ * * * TimestampSerializer.java * * * * Timestamp serializer class for Java. * * * * LastModified: Apr 17, 2016 * * Author: Ma Bingyao <andot@hprose.com> * * * \**********************************************************/ package hprose.io.serialize; import static hprose.io.HproseTags.TagSemicolon; import hprose.util.DateTime; import java.io.IOException; import java.io.OutputStream; import java.sql.Timestamp; import java.util.Calendar; final class TimestampSerializer implements Serializer<Timestamp> { public final static TimestampSerializer instance = new TimestampSerializer(); public final static void write(OutputStream stream, WriterRefer refer, Timestamp time) throws IOException { if (refer != null) refer.set(time); Calendar calendar = DateTime.toCalendar(time); ValueWriter.writeDateOfCalendar(stream, calendar); ValueWriter.writeTimeOfCalendar(stream, calendar, false, true); ValueWriter.writeNano(stream, time.getNanos()); stream.write(TagSemicolon); } public final void write(Writer writer, Timestamp obj) throws IOException { OutputStream stream = writer.stream; WriterRefer refer = writer.refer; if (refer == null || !refer.write(stream, obj)) { write(stream, refer, obj); } } }
[ "mabingyao@gmail.com" ]
mabingyao@gmail.com
485025093cbeea4f533d1ac378d0930981f7365e
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/11/11_e2a2dd7768b38f7e45f0f4c5ce1251f73923cdad/p027/11_e2a2dd7768b38f7e45f0f4c5ce1251f73923cdad_p027_s.java
d9bacecd279918778324d91aec930f18fcfaa20f
[]
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
796
java
/* * Solution to Project Euler problem 27 * By Nayuki Minase * * http://nayuki.eigenstate.org/page/project-euler-solutions * https://github.com/nayuki/Project-Euler-solutions */ public final class p027 { public static void main(String[] args) { int bestNum = -1; int bestA = -1; int bestB = -1; for (int a = -1000; a <= 1000; a++) { for (int b = -1000; b <= 1000; b++) { int num = numberOfConsecutivePrimesGenerated(a, b); if (bestNum == -1 || num > bestNum) { bestNum = num; bestA = a; bestB = b; } } } System.out.println(bestA * bestB); } private static int numberOfConsecutivePrimesGenerated(int a, int b) { int i = 0; while (Library.isPrime(i * i + i * a + b)) i++; return i; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
9cb2d094796ca74a13c63a8b7e24a7e6b73a14c4
58f4d3de8e264d1e00d70a19caefd452f824a328
/aqmobile/src/com/weimeng/impl/CommonToolsImpl.java
990e868b7d02cebe5b93b1c4f63632dfe8717f8d
[]
no_license
ndboy2012/wechat
cad20f54aedba081d36cc5ec10664f126e0a4486
82367e3bf088c36a5d6373fd056eba5c798b8de5
refs/heads/master
2021-04-12T04:37:32.857904
2015-07-30T04:27:46
2015-07-30T11:40:44
37,120,698
1
1
null
null
null
null
UTF-8
Java
false
false
1,559
java
package com.weimeng.impl; import java.util.List; import org.hibernate.Query; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.weimeng.dao.CommonDao; import com.weimeng.dao.CommonToolsDao; @Transactional @Service("commonToolsImpl") public class CommonToolsImpl extends CommonDao implements CommonToolsDao { @Override public void saveObj(Object object) throws Exception { getCurrentSession().save(object); } @Override public List executeQuery(String sql, Object[] parameters) throws Exception { List list = null; Query query = getCurrentSession().createQuery(sql); if (parameters != null) { for (int i = 0; i < parameters.length; i++) { query.setParameter(i, parameters[i]); } } list = query.list(); return list; } @Override public Object queryUnique(String sql, Object[] parameters) throws Exception { Query query = getCurrentSession().createQuery(sql); if (parameters != null) { for (int i = 0; i < parameters.length; i++) { query.setParameter(i, parameters[i]); } } return query.uniqueResult(); } @Override public int executeUpdate(String sql, Object[] parameters) throws Exception { Query query = getCurrentSession().createSQLQuery(sql); if(parameters != null) { for (int i = 0; i < parameters.length; i++) { query.setParameter(i, parameters[i]); } } return query.executeUpdate(); } @Override public void updateObject(Object obj) throws Exception { getCurrentSession().update(obj); } }
[ "yelp1022@163.com" ]
yelp1022@163.com
e7670accca5d837c43bfdb5765802aa586677bc5
a5e2a78f83c16c449086beee5d6ea48ce11ff3be
/MyJavaSELessons/GuessTheNumberResearchings/GTN chain 20170908/src/exceptions/NotInitializationException.java
2a4487a0334cfcda8f9bc26652aba5f723034d62
[]
no_license
VictorLeonidovich/MyJavaSELessons
d0473b1c3b1c054bfb3bb4a70f534139052bb9f8
4cd9452851675d0b1d5acf73ef7940c04d54629f
refs/heads/master
2020-04-01T14:25:19.630518
2018-10-17T16:40:54
2018-10-17T16:40:54
153,293,575
0
0
null
null
null
null
UTF-8
Java
false
false
263
java
package exceptions; public class NotInitializationException extends Exception { /** * */ private static final long serialVersionUID = 1L; public NotInitializationException(String arg0) { super(arg0); // TODO Auto-generated constructor stub } }
[ "k-v-l@tut.by" ]
k-v-l@tut.by
be2bfac2b09a57880b314e628b092345430b4924
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XRENDERING-418-31-15-PESA_II-WeightedSum:TestLen:CallDiversity/org/xwiki/rendering/wikimodel/xhtml/filter/DefaultXMLFilter_ESTest.java
9964557d9314e2068719459ee2c8d34d9f258e27
[]
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
581
java
/* * This file was automatically generated by EvoSuite * Fri Apr 03 02:05:27 UTC 2020 */ package org.xwiki.rendering.wikimodel.xhtml.filter; 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 DefaultXMLFilter_ESTest extends DefaultXMLFilter_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
99adca4ecdbe2b797cf3ec3b61748edff83bfad3
163843c4813d9255958640da47dafb41d4cf58e9
/src/main/java/com/github/gregwhitaker/ratpackerrorhandler/example/api/user/model/GetUserResponse.java
809e6da0336f54214073a827f6e33ed7ff429145
[ "MIT" ]
permissive
migsarmiento-hs/ratpack-errorhandler-example
69c34d6012e16c880b87f9279512d9e2946f5215
e94695b34d72cfe6cb4b64b4fabbb81deb4fa73c
refs/heads/master
2022-01-01T16:21:34.766330
2017-12-29T10:55:03
2017-12-29T10:55:03
null
0
0
null
null
null
null
UTF-8
Java
false
false
590
java
package com.github.gregwhitaker.ratpackerrorhandler.example.api.user.model; /** * Response object returned from {@link com.github.gregwhitaker.ratpackerrorhandler.example.api.user.GetUserHandler}. */ public class GetUserResponse { private String username; private boolean active; public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public boolean isActive() { return active; } public void setActive(boolean active) { this.active = active; } }
[ "gwhitake@gmail.com" ]
gwhitake@gmail.com
b05cf3c9329b87a241b5d3ac9c866a5ff73a2b44
65a09e9f4450c6133e6de337dbba373a5510160f
/naifg24/src/main/java/co/simasoft/models/Models.java
a19c15f977ce98babbeb10e2cc4428295de88309
[]
no_license
nelsonjava/simasoft
c0136cdf0c208a5e8d01ab72080330e4a15b1261
be83eb8ef67758be82bbd811b672572eff1910ee
refs/heads/master
2021-01-23T15:21:01.981277
2017-04-27T12:46:16
2017-04-27T12:46:16
27,980,384
0
0
null
null
null
null
UTF-8
Java
false
false
4,789
java
package co.simasoft.models; import java.io.Serializable; import java.util.Set; import java.util.HashSet; import java.util.Date; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Version; import javax.persistence.GenerationType; import javax.persistence.GeneratedValue; import javax.persistence.FetchType; import javax.persistence.Column; import javax.persistence.Lob; import javax.xml.bind.annotation.XmlRootElement; import co.simasoft.models.*; import org.hibernate.search.annotations.Analyze; import org.hibernate.search.annotations.DocumentId; import org.hibernate.search.annotations.Field; import org.hibernate.search.annotations.Index; import org.hibernate.search.annotations.Indexed; import org.hibernate.search.annotations.Store; import javax.persistence.OneToMany; import javax.persistence.ManyToOne; import javax.persistence.ManyToMany; import javax.persistence.Temporal; import javax.persistence.TemporalType; import org.hibernate.search.annotations.DateBridge; import org.hibernate.search.annotations.Resolution; // @Indexed @Entity @XmlRootElement public class Models implements Serializable { private static final long serialVersionUID = 1L; @Id @DocumentId @GeneratedValue(strategy = GenerationType.TABLE) private Long id; @Version private Integer optlock; private double orden; @Lob @Column(nullable = true, unique = false) // @Field(index = Index.YES, analyze = Analyze.YES, store = Store.NO) private String observations; @Column(nullable = false, unique = true) // @Field(index = Index.YES, analyze = Analyze.YES, store = Store.NO) private String artifactId; @Column(nullable = false, unique = true) // @Field(index = Index.YES, analyze = Analyze.YES, store = Store.NO) private String groupId; @Column(nullable = true, unique = false) // @Field(index = Index.YES, analyze = Analyze.YES, store = Store.NO) private String version; @Column(nullable = true, unique = false) // @Field(index = Index.YES, analyze = Analyze.YES, store = Store.NO) private String code; @Column(nullable = true, unique = false) @Temporal(TemporalType.DATE) @DateBridge(resolution = Resolution.YEAR) private Date date; @OneToMany(mappedBy = "models") private Set<ModelsGroupIds> modelsGroupIds = new HashSet<ModelsGroupIds>(); @ManyToOne private Sites sites; @ManyToMany(mappedBy = "models") private Set<Developments> developments = new HashSet<Developments>(); public Models() { } public Models(String artifactId, String groupId, String version, String code, Date date) { this.artifactId = artifactId; this.groupId = groupId; this.version = version; this.code = code; this.date = date; } public Long getId() { return this.id; } public void setId(Long id) { this.id = id; } public Integer getOptlock() { return this.optlock; } public void setOptlock(Integer optlock) { this.optlock = optlock; } public double getOrden() { return this.orden; } public void setOrden(double orden) { this.orden = orden; } public String getObservations() { return observations; } public void setObservations(String observations) { this.observations = observations; } public String getArtifactId() { return artifactId; } public void setArtifactId(String artifactId) { this.artifactId = artifactId; } public String getGroupId() { return groupId; } public void setGroupId(String groupId) { this.groupId = groupId; } public String getVersion() { return version; } public void setVersion(String version) { this.version = version; } public String getCode() { return code; } public void setCode(String code) { this.code = code; } public Date getDate() { return date; } public void setDate(Date date) { this.date = date; } public Set<ModelsGroupIds> getModelsGroupIds() { return modelsGroupIds; } public void setModelsGroupIds(Set<ModelsGroupIds> modelsGroupIds) { this.modelsGroupIds = modelsGroupIds; } public Sites getSites() { return sites; } public void setSites(Sites sites) { this.sites = sites; } public Set<Developments> getDevelopments() { return developments; } public void setDevelopments(Set<Developments> developments) { this.developments = developments; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); return result; } @Override public boolean equals(Object ojt) { if (this == ojt) return true; if (ojt == null) return false; if (getClass() != ojt.getClass()) return false; Models other = (Models) ojt; if (id == null) { if (other.id != null) { return false; } } else { if (!id.equals(other.id)) { return false; } } return true; } } // entity
[ "nelsonjava@gmail.com" ]
nelsonjava@gmail.com
3744d16b06b0563eff14af8a84173f5992b51157
828ef1bd1196307e5c7b8adf48945dd2d668ed7e
/mall-admin/src/main/java/com/zscat/mallplus/pms/controller/PmsProductAttributeCategoryController.java
fff06aac150fc7fa72d0d0122327e77193b14398
[ "Apache-2.0" ]
permissive
zscat/mallpslus
373b8d6a9b6d6a209729d0be631076ab9c85f5c2
fc8b9546e6412ef88a0ae65a5a661e9da35be147
refs/heads/master
2022-07-16T22:43:22.759748
2019-08-15T04:20:11
2019-08-15T04:20:11
203,105,496
0
0
Apache-2.0
2022-06-21T01:41:50
2019-08-19T05:40:39
PLpgSQL
UTF-8
Java
false
false
6,517
java
package com.zscat.mallplus.pms.controller; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.zscat.mallplus.annotation.SysLog; import com.zscat.mallplus.pms.entity.PmsProductAttributeCategory; import com.zscat.mallplus.pms.service.IPmsProductAttributeCategoryService; import com.zscat.mallplus.pms.vo.PmsProductAttributeCategoryItem; import com.zscat.mallplus.utils.CommonResult; import com.zscat.mallplus.utils.ValidatorUtils; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; import lombok.extern.slf4j.Slf4j; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; import java.util.List; /** * <p> * 产品属性分类表 * </p> * * @author zscat * @since 2019-04-19 */ @Slf4j @RestController @Api(tags = "PmsProductAttributeCategoryController", description = "产品属性分类表管理") @RequestMapping("/pms/PmsProductAttributeCategory") public class PmsProductAttributeCategoryController { @Resource private IPmsProductAttributeCategoryService IPmsProductAttributeCategoryService; @SysLog(MODULE = "pms", REMARK = "根据条件查询所有产品属性分类表列表") @ApiOperation("根据条件查询所有产品属性分类表列表") @GetMapping(value = "/list") @PreAuthorize("hasAuthority('pms:PmsProductAttributeCategory:read')") public Object getPmsProductAttributeCategoryByPage(PmsProductAttributeCategory entity, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize ) { try { return new CommonResult().success(IPmsProductAttributeCategoryService.page(new Page<PmsProductAttributeCategory>(pageNum, pageSize), new QueryWrapper<>(entity))); } catch (Exception e) { log.error("根据条件查询所有产品属性分类表列表:%s", e.getMessage(), e); } return new CommonResult().failed(); } @SysLog(MODULE = "pms", REMARK = "保存产品属性分类表") @ApiOperation("保存产品属性分类表") @PostMapping(value = "/create") @PreAuthorize("hasAuthority('pms:PmsProductAttributeCategory:create')") public Object savePmsProductAttributeCategory(@RequestBody PmsProductAttributeCategory entity) { try { if (IPmsProductAttributeCategoryService.save(entity)) { return new CommonResult().success(); } } catch (Exception e) { log.error("保存产品属性分类表:%s", e.getMessage(), e); return new CommonResult().failed(); } return new CommonResult().failed(); } @SysLog(MODULE = "pms", REMARK = "更新产品属性分类表") @ApiOperation("更新产品属性分类表") @PostMapping(value = "/update/{id}") @PreAuthorize("hasAuthority('pms:PmsProductAttributeCategory:update')") public Object updatePmsProductAttributeCategory(@RequestBody PmsProductAttributeCategory entity) { try { if (IPmsProductAttributeCategoryService.updateById(entity)) { return new CommonResult().success(); } } catch (Exception e) { log.error("更新产品属性分类表:%s", e.getMessage(), e); return new CommonResult().failed(); } return new CommonResult().failed(); } @SysLog(MODULE = "pms", REMARK = "删除产品属性分类表") @ApiOperation("删除产品属性分类表") @DeleteMapping(value = "/delete/{id}") @PreAuthorize("hasAuthority('pms:PmsProductAttributeCategory:delete')") public Object deletePmsProductAttributeCategory(@ApiParam("产品属性分类表id") @PathVariable Long id) { try { if (ValidatorUtils.empty(id)) { return new CommonResult().paramFailed("产品属性分类表id"); } if (IPmsProductAttributeCategoryService.removeById(id)) { return new CommonResult().success(); } } catch (Exception e) { log.error("删除产品属性分类表:%s", e.getMessage(), e); return new CommonResult().failed(); } return new CommonResult().failed(); } @SysLog(MODULE = "pms", REMARK = "给产品属性分类表分配产品属性分类表") @ApiOperation("查询产品属性分类表明细") @GetMapping(value = "/{id}") @PreAuthorize("hasAuthority('pms:PmsProductAttributeCategory:read')") public Object getPmsProductAttributeCategoryById(@ApiParam("产品属性分类表id") @PathVariable Long id) { try { if (ValidatorUtils.empty(id)) { return new CommonResult().paramFailed("产品属性分类表id"); } PmsProductAttributeCategory coupon = IPmsProductAttributeCategoryService.getById(id); return new CommonResult().success(coupon); } catch (Exception e) { log.error("查询产品属性分类表明细:%s", e.getMessage(), e); return new CommonResult().failed(); } } @ApiOperation(value = "批量删除产品属性分类表") @RequestMapping(value = "/delete/batch", method = RequestMethod.POST) @ResponseBody @SysLog(MODULE = "pms", REMARK = "批量删除产品属性分类表") @PreAuthorize("hasAuthority('pms:PmsProductAttributeCategory:delete')") public Object deleteBatch(@RequestParam("ids") List<Long> ids) { boolean count = IPmsProductAttributeCategoryService.removeByIds(ids); if (count) { return new CommonResult().success(count); } else { return new CommonResult().failed(); } } @SysLog(MODULE = "pms", REMARK = "获取所有商品属性分类及其下属性") @ApiOperation("获取所有商品属性分类及其下属性") @RequestMapping(value = "/list/withAttr", method = RequestMethod.GET) @ResponseBody public Object getListWithAttr() { List<PmsProductAttributeCategoryItem> productAttributeCategoryResultList = IPmsProductAttributeCategoryService.getListWithAttr(); return new CommonResult().success(productAttributeCategoryResultList); } }
[ "zhuan.shen@rjfittime.com" ]
zhuan.shen@rjfittime.com
84783490996f7e9688db78ae3bba40e0d1ede61b
cb6f8dab58effe3d541fc99da1e3d1e26397ed6a
/src/test/java/com/tc/resgateway/repository/timezone/DateTimeWrapper.java
6c8ef87e54f80660893a107d941afe80df66db73
[]
no_license
searace/residence-gateway
13133fa83c6ee4492f2b04095965ea9a13aa1642
9a2a5c46f28d58c5f761cbabc4582f6669659417
refs/heads/master
2020-05-04T17:06:59.835048
2019-04-03T13:44:39
2019-04-03T13:44:39
179,298,985
0
0
null
null
null
null
UTF-8
Java
false
false
3,075
java
package com.tc.resgateway.repository.timezone; import javax.persistence.*; import java.io.Serializable; import java.time.*; import java.util.Objects; @Entity @Table(name = "jhi_date_time_wrapper") public class DateTimeWrapper implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column(name = "instant") private Instant instant; @Column(name = "local_date_time") private LocalDateTime localDateTime; @Column(name = "offset_date_time") private OffsetDateTime offsetDateTime; @Column(name = "zoned_date_time") private ZonedDateTime zonedDateTime; @Column(name = "local_time") private LocalTime localTime; @Column(name = "offset_time") private OffsetTime offsetTime; @Column(name = "local_date") private LocalDate localDate; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Instant getInstant() { return instant; } public void setInstant(Instant instant) { this.instant = instant; } public LocalDateTime getLocalDateTime() { return localDateTime; } public void setLocalDateTime(LocalDateTime localDateTime) { this.localDateTime = localDateTime; } public OffsetDateTime getOffsetDateTime() { return offsetDateTime; } public void setOffsetDateTime(OffsetDateTime offsetDateTime) { this.offsetDateTime = offsetDateTime; } public ZonedDateTime getZonedDateTime() { return zonedDateTime; } public void setZonedDateTime(ZonedDateTime zonedDateTime) { this.zonedDateTime = zonedDateTime; } public LocalTime getLocalTime() { return localTime; } public void setLocalTime(LocalTime localTime) { this.localTime = localTime; } public OffsetTime getOffsetTime() { return offsetTime; } public void setOffsetTime(OffsetTime offsetTime) { this.offsetTime = offsetTime; } public LocalDate getLocalDate() { return localDate; } public void setLocalDate(LocalDate localDate) { this.localDate = localDate; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } DateTimeWrapper dateTimeWrapper = (DateTimeWrapper) o; return !(dateTimeWrapper.getId() == null || getId() == null) && Objects.equals(getId(), dateTimeWrapper.getId()); } @Override public int hashCode() { return Objects.hashCode(getId()); } @Override public String toString() { return "TimeZoneTest{" + "id=" + id + ", instant=" + instant + ", localDateTime=" + localDateTime + ", offsetDateTime=" + offsetDateTime + ", zonedDateTime=" + zonedDateTime + '}'; } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
160f9f0d5223cc60e29e7ea9eff287e2b4cb78f9
3632c9297cd8a75ebfcad71e7543296bab3efcbf
/bc2/src/test/gwXML/com/xml/cnaps2/saps/v60600101/Adapter2.java
ceb28b24a37e7fd1391a388c6127f86f19b3bce1
[]
no_license
luboid/leontestbed
9850500166bd42378ae35f92768a198b1c2dd7c2
eb1c704b1ea77a62097375239ecb2c025c7a19dc
refs/heads/master
2021-01-10T21:48:41.905677
2015-09-24T10:28:18
2015-09-24T10:28:18
41,542,498
1
0
null
null
null
null
WINDOWS-1252
Java
false
false
808
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2011.05.11 at 04:34:53 ÏÂÎç CST // package com.xml.cnaps2.saps.v60600101; import java.util.Date; import javax.xml.bind.annotation.adapters.XmlAdapter; public class Adapter2 extends XmlAdapter<String, Date> { public Date unmarshal(String value) { return (com.xml.bind.Cnaps2DataTypeConverter.parseDate(value)); } public String marshal(Date value) { return (com.xml.bind.Cnaps2DataTypeConverter.printDate(value)); } }
[ "youranklean@gmail.com" ]
youranklean@gmail.com
28b7ef9985d6a8afc1d00244702288741fdf7436
6c271fbbe1860985c8ceb6fb4f122b5368d87a12
/src/main/java/com/perforce/svn/process/SvnProcessChange.java
819247021c2c985cc66ccf94687adf6acc41455e
[ "BSD-2-Clause" ]
permissive
p4paul/p4convert
5ad676f257188a769fa632cf55d2ee1b3b168279
40808e37ff6364e2a1aac5c49f51e71e49b1b9b7
refs/heads/master
2023-01-21T06:16:50.491312
2018-02-07T17:08:33
2018-02-07T17:08:33
315,887,862
0
0
null
null
null
null
UTF-8
Java
false
false
5,833
java
package com.perforce.svn.process; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.perforce.common.ConverterException; import com.perforce.common.ExitCode; import com.perforce.common.depot.DepotInterface; import com.perforce.common.process.ChangeInfo; import com.perforce.common.process.ProcessChange; import com.perforce.common.process.ProcessFactory; import com.perforce.common.process.ProcessLabel; import com.perforce.config.CFG; import com.perforce.config.CaseSensitivity; import com.perforce.config.Config; import com.perforce.svn.change.ChangeInterface; import com.perforce.svn.parser.Node; import com.perforce.svn.parser.Record; import com.perforce.svn.parser.RecordReader; import com.perforce.svn.prescan.ExcludeParser; import com.perforce.svn.prescan.LastRevision; import com.perforce.svn.query.QueryInterface; import com.perforce.svn.tag.TagParser; public class SvnProcessChange extends ProcessChange { private Logger logger = LoggerFactory.getLogger(SvnProcessChange.class); private ChangeInfo changeInfo; private final String dumpFile; public SvnProcessChange() throws Exception { if (logger.isDebugEnabled()) { logger.debug(Config.summary()); } // Read configuration settings dumpFile = (String) Config.get(CFG.SVN_DUMPFILE); revStart = (Long) Config.get(CFG.P4_START); revEnd = (Long) Config.get(CFG.P4_END); // Set imported change range long revLast = getLastChange(); setChangeRange(revLast); } private long getLastChange() throws Exception { // Find last revision LastRevision rev = new LastRevision(dumpFile); String revLastString = rev.find(); rev.close(); if (revLastString == null) { String err = "Cannot find last revision in dumpfile"; logger.error(err); throw new ConverterException(err); } long revLast = Long.parseLong(revLastString); return revLast; } protected void processChange() throws Exception { // Initialise labels isLabels = (Boolean) Config.get(CFG.SVN_LABELS); String depotPath = (String) Config.get(CFG.P4_DEPOT_PATH); CaseSensitivity caseMode; caseMode = (CaseSensitivity) Config.get(CFG.P4_CASE); // Create revision tree and depot DepotInterface depot = ProcessFactory.getDepot(depotPath, caseMode); // Check for pending changes, abort if any are found QueryInterface query = ProcessFactory.getQuery(depot); int pending = query.getPendingChangeCount(); if (pending > 0) { String err = "Pending change detected, conversion aborted"; logger.error(err); throw new ConverterException(err); } // Check offset long offset = (Long) Config.get(CFG.P4_OFFSET); if (offset != 0) { if (logger.isInfoEnabled()) { logger.info("change offset: \t\t" + offset); } if (Config.isImportMode()) { logger.warn("offset ignored in Import mode!"); Config.set(CFG.P4_OFFSET, 0); } } // Initialise node path excluder, if required boolean isFilter = ExcludeParser.load(); if (isFilter && !isLabels) { if (!ExcludeParser.parse(dumpFile)) { System.exit(ExitCode.USAGE.value()); } } // Scan Subversion tags for label candidates processLabel = new ProcessLabel(depot); if (isLabels) { TagParser.parse(dumpFile); logger.info(TagParser.toLog()); } // Initialise counters super.setCurrentChange(null); long nextChange = 1L; // Open dump file reader and iterate over entries RecordReader recordReader = new RecordReader(dumpFile); super.setClean(false); // now we want to wait for the end of a change Record lastRecord = null; for (Record record : recordReader) { switch (record.getType()) { case REVISION: // special case: skip revision 0 if (record.getSvnRevision() == 0) { break; } // skip revision outside of starting position if (record.getSvnRevision() < revStart) { logger.info("skipping change " + nextChange + "..."); nextChange++; break; } // Submit change submit(); // reset label for next change processLabel = new ProcessLabel(depot); if (super.isStop() || nextChange > revEnd) { if (super.isStop()) { // Premature stop -- update end rev Config.set(CFG.P4_END, nextChange - 1); } // Close changelist close(); return; } /* * Create new changelist and increment count */ long change = nextChange; change += (Long) Config.get(CFG.P4_OFFSET); changeInfo = new ChangeInfo(record); ChangeInterface ci = ProcessFactory.getChange(change, changeInfo, depot); super.setCurrentChange(ci); nextChange++; break; case NODE: // Process node - add actions to tree and current changelist if (record.getSvnRevision() >= revStart) { ((Node) record).setSubBlock(isSubNode(lastRecord, record)); ci = super.getCurrentChange(); SvnProcessNode node = new SvnProcessNode(ci, depot, (Node) record); node.setProcessLabel(processLabel); node.process(); } break; case SCHEMA: int schemaVersion = (int) record .findHeaderLong("SVN-fs-dump-format-version"); if (schemaVersion > 3) { throw new RuntimeException("Incompatable Schema version: " + schemaVersion); } break; } lastRecord = record; } // Submit last change and close submit(); close(); } /** * Sub block are not documented in the schema, but seem to occur only * following 'delete' Node-actions. * * @param last * @param node * @return */ private boolean isSubNode(Record last, Record node) { if (last == null) return false; if (!last.getType().equals(Record.Type.NODE)) return false; if (!last.findHeaderString("Node-action").contains("delete")) return false; if (node.findHeaderString("Node-copyfrom-path") == null) return false; return node.isSubBlock(); } }
[ "pallen@perforce.com" ]
pallen@perforce.com
891c86d541ad4bec71e56f29a72f59ec70549e08
80ff0da2bab2da42a7d2f03077b2858c44dd46ef
/src/main/java/com/fayayo/inte/service/SellerService.java
59151cbafdc8f2b9d49cda128f56d0ab2347e04d
[]
no_license
lizu18xz/intelligence
a0a5f30ee0b6b789f74b5ae0dd5bae103a7155f1
8c4f97a83b523683a10230e0360ce1bc92668b95
refs/heads/master
2022-10-15T04:08:29.115485
2020-01-17T16:45:24
2020-01-17T16:45:24
232,116,539
0
0
null
null
null
null
UTF-8
Java
false
false
397
java
package com.fayayo.inte.service; import com.fayayo.inte.common.BusinessException; import com.fayayo.inte.model.SellerModel; import java.util.List; public interface SellerService { SellerModel create(SellerModel sellerModel); SellerModel get(Integer id); List<SellerModel> selectAll(); SellerModel changeStatus(Integer id, Integer disabledFlag) throws BusinessException; }
[ "535733495@qq.com" ]
535733495@qq.com
de2dd911bcce84992775862632bc344c18a3d38f
50dda22b0ed85f2bc48dfc3a65cb8c31b3c56e45
/microservicecloud-config-client-3355/src/main/java/com/howard/springcloud/MicroservicecloudConfigClient3355Application.java
2afa5b9a7271ad3f5acb506aab19ea1178f3631b
[]
no_license
Yhongwu/spring-cloud
666646f3ab7e35d9548be6ab44ceb34cd683adc3
51c0f2a4a3c4c7c1f8e5bb92118786676c0f1181
refs/heads/master
2020-03-20T21:22:28.927151
2018-06-18T10:22:10
2018-06-18T10:22:10
137,736,916
0
0
null
null
null
null
UTF-8
Java
false
false
1,076
java
package com.howard.springcloud; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; /** * spring config 客户端 */ @SpringBootApplication public class MicroservicecloudConfigClient3355Application { public static void main(String[] args) { SpringApplication.run(MicroservicecloudConfigClient3355Application.class, args); } } // 测试20 :springconfig 客户端 // 在github的microservicecloud-config本地路径上新建文件microservicecloud-config-client.yml,内容如tmp.yml,提交到github // 新建模块config-client-3355,并导入config相关包 // 新建文件bootstrap.yml,bootstrap具有最高优先级,不会被其他文件覆盖 // 新建ConfigClientRest类,设置变量用于获取从3344提供的github地址获取的配置信息 // 启动3344 后启动3355 ,注意bootstrap.yml中当前配置的是dev还是test环境,不同环境访问的端口不一样。 // 如果为dev:http://client-config.com:8201/config,切换另一个test环境,重启3355,测试
[ "hongwu39028@163.com" ]
hongwu39028@163.com
181dc2f77496134012d4ac1100c668625678afab
7b4f8397c2ae7cc527de946cfd5ca22ebec48186
/org/omg/IOP/Encoding.java
3e1823b7bf920ffa11e53b0fa698b4db40d2e158
[]
no_license
hjsw1/jdk8-source
cd025ebd0f1231c021de894c5df88a05e1f9c060
75c2330e65a472e1a672d4ec8e86a5b07c711f42
refs/heads/main
2023-06-19T23:29:42.308929
2021-07-21T16:46:38
2021-07-21T16:46:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
912
java
package org.omg.IOP; /** * org/omg/IOP/Encoding.java . * Generated by the IDL-to-Java compiler (portable), version "3.2" * from /HUDSON3/workspace/8-2-build-linux-amd64/jdk8u112/7884/corba/src/share/classes/org/omg/PortableInterceptor/IOP.idl * Thursday, September 22, 2016 9:11:51 PM PDT */ public final class Encoding implements org.omg.CORBA.portable.IDLEntity { /** * The encoding format. */ public short format = (short)0; /** * The major version of this Encoding format. */ public byte major_version = (byte)0; /** * The minor version of this Encoding format. */ public byte minor_version = (byte)0; public Encoding () { } // ctor public Encoding (short _format, byte _major_version, byte _minor_version) { format = _format; major_version = _major_version; minor_version = _minor_version; } // ctor } // class Encoding
[ "2506597416@qq.com" ]
2506597416@qq.com
475f9b864811b9a26f222ace5d83e674676c03e4
194d88ba6355f4829f34a3f1e720d6d63315ef4e
/app/src/main/java/com/tananaev/giphy/model/Images.java
5f40d56075d50d6856ae848272bda9527cf4e07f
[]
no_license
tananaev/giphy-browser
47c9f1f899bba2ce545768bfa82d5723a8548195
befba2e0c71c4706ff5477be8207c7b53bc068d3
refs/heads/master
2022-11-08T01:18:16.988496
2020-06-14T18:13:37
2020-06-14T18:13:37
272,111,013
3
1
null
null
null
null
UTF-8
Java
false
false
229
java
package com.tananaev.giphy.model; import java.io.Serializable; public class Images implements Serializable { public Image fixed_height; public Image preview_gif; public Image downsized; public Image original; }
[ "anton.tananaev@gmail.com" ]
anton.tananaev@gmail.com
b27319d2eeba74886f760e0d9c5713d6b5e43235
241bc9dfca7a141322ea1c346d68b13da7052844
/Demo/test/src/main/java/per/eicho/demo/leetcode/q1201_1300/Q1227.java
85f29236d2538e486807a80aac8782158526cdc3
[]
no_license
EICHOSAMA/Demonstration
2c9368576b96aaae7321023a2ba051c5e8703311
945bc68e326403cdf4836d97e5576f1011b56e74
refs/heads/master
2023-08-08T13:56:06.549053
2023-08-02T15:55:44
2023-08-02T15:55:44
239,741,584
0
0
null
2023-08-02T15:55:45
2020-02-11T11:05:21
null
UTF-8
Java
false
false
413
java
package per.eicho.demo.leetcode.q1201_1300; /** * <p>1227. Airplane Seat Assignment Probability 的题解代码 </p> * * @see <a href="https://leetcode.com/problems/airplane-seat-assignment-probability/"> * 1227. Airplane Seat Assignment Probability</a> */ public final class Q1227 { public double nthPersonGetsNthSeat(int n) { // 1. 1 <= n <= 10^5 return n == 1 ? 1d : 0.5d; } }
[ "793951781@qq.com" ]
793951781@qq.com
f476edf2b177fcd6ce8d7beadf799af3e86f941b
7e24a8d22ed0bce7e3a290130a7def76f53a5378
/urtruck/com.urt.sdk/src/main/java/com/urt/interfaces/webDesign/WebDesignService.java
7c2d7401e6ce4e2c177905be0ca17f7787262601
[ "Apache-2.0" ]
permissive
tenchoo/URTrack
4b036e1e23af8c28afd1a381a950c4bc455dc00e
3ac0b03b3a0359b51d6bd794629cf9b27191976c
refs/heads/master
2021-07-02T13:13:52.814514
2017-09-23T14:09:50
2017-09-23T14:09:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,051
java
package com.urt.interfaces.webDesign; import java.util.List; import java.util.Map; import com.urt.dto.LaoWebDesignDto; public interface WebDesignService { //插入数据 public String insert(long custId, String color, String image, String statusCode, String webUrl, String webContent, String value1, String value2); //通过Key更新数据 public int updateByDesignId(LaoWebDesignDto webDesignDto); //通过CustId查询所有的定制信息 public List<Map<String,Object>> selectAllByCustId(String custId); //查询所有的custId public List<Map<String, Object>> queryAllCustId(); //分页查询所有记录 public List<Map<String, Object>> queryPage(Map<String, Object> param); //通过designId查询记录 public LaoWebDesignDto getWebDesignDtoByDesignId(Long designId); //获取所有的记录数 public Long getAllCount(); //生成sign签名 public String getSign(String custId); //通过custId查询CustName public String getCustNameByCustId(Long custId) ; }
[ "519344289@qq.com" ]
519344289@qq.com
c6666eb42d199e28ddec888b9534a68c36ee25f8
c017d7f8bfa77d19c455925476fbf91e8c41b7a0
/src/main/java/com/amazon/opendistro/elasticsearch/performanceanalyzer/rca/persistence/actions/PersistedAction.java
06386f49d47d1f73fa4f2747cd3007eec954724f
[ "Apache-2.0" ]
permissive
YANG-DB/prefmon-open-distro
6843dcb973f748e5bfbcee343791cbb59d9f8bea
b36aa558b7d11d52b376f5ae639606e317d06c77
refs/heads/main
2023-01-22T09:19:21.648982
2020-11-15T14:39:24
2020-11-15T14:39:24
313,011,810
1
0
Apache-2.0
2020-11-15T11:02:22
2020-11-15T11:02:10
null
UTF-8
Java
false
false
3,948
java
package com.amazon.opendistro.elasticsearch.performanceanalyzer.rca.persistence.actions; import com.amazon.opendistro.elasticsearch.performanceanalyzer.rca.persistence.ValueColumn; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonParser; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; /** * Action summary that can be persisted in SQL * * <p>Table name : PersistedAction * * <p>schema : * | id(primary key) | actionName | timestamp | nodeIds | * | 1 | ModifyQueueCapacity | 1599257910923 | node1, node2 | * | nodeIps | actionable | coolOffPeriod | muted | summary | * | 127.0.0.1, 127.0.0.2 | 1 | 300 | 0 | actionSummary | */ public class PersistedAction { private static final Logger LOG = LogManager.getLogger(PersistedAction.class); @ValueColumn public String actionName; @ValueColumn public String nodeIds; @ValueColumn public String nodeIps; @ValueColumn public boolean actionable; @ValueColumn public long coolOffPeriod; @ValueColumn public boolean muted; @ValueColumn public String summary; @ValueColumn public long timestamp; public String getActionName() { return actionName; } public void setActionName(String actionName) { this.actionName = actionName; } public void setNodeIds(String nodeIds) { this.nodeIds = nodeIds; } public String getNodeIds() { return this.nodeIds; } public void setNodeIps(String nodeIps) { this.nodeIps = nodeIps; } public String getNodeIps() { return this.nodeIps; } public boolean isActionable() { return actionable; } public void setActionable(boolean actionable) { this.actionable = actionable; } public long getCoolOffPeriod() { return coolOffPeriod; } public void setCoolOffPeriod(long coolOffPeriod) { this.coolOffPeriod = coolOffPeriod; } public boolean isMuted() { return muted; } public void setMuted(boolean muted) { this.muted = muted; } public String getSummary() { return summary; } public void setSummary(String summary) { this.summary = summary; } public long getTimestamp() { return timestamp; } public void setTimestamp(long timestamp) { this.timestamp = timestamp; } public static class SQL_SCHEMA_CONSTANTS { public static final String TIMESTAMP_COL_NAME = "timestamp"; public static final String ACTION_COL_NAME = "actionName"; public static final String NODE_IDS_NAME = "nodeIds"; public static final String NODE_IPS_NAME = "nodeIps"; public static final String MUTED_NAME = "muted"; public static final String SUMMARY_NAME = "summary"; public static final String ACTIONABLE_NAME = "actionable"; public static final String COOLOFFPERIOD_NAME = "coolOffPeriod"; } public JsonElement toJson() { JsonObject summaryObj = new JsonObject(); summaryObj.addProperty(SQL_SCHEMA_CONSTANTS.NODE_IPS_NAME, this.nodeIps); summaryObj.addProperty(SQL_SCHEMA_CONSTANTS.MUTED_NAME, this.muted); summaryObj.addProperty(SQL_SCHEMA_CONSTANTS.ACTION_COL_NAME, this.actionName); summaryObj.addProperty(SQL_SCHEMA_CONSTANTS.TIMESTAMP_COL_NAME, this.timestamp); summaryObj.addProperty(SQL_SCHEMA_CONSTANTS.NODE_IDS_NAME, this.nodeIds); summaryObj.add(SQL_SCHEMA_CONSTANTS.SUMMARY_NAME, new JsonParser().parse(this.summary)); summaryObj.addProperty(SQL_SCHEMA_CONSTANTS.ACTIONABLE_NAME, this.actionable); summaryObj.addProperty(SQL_SCHEMA_CONSTANTS.COOLOFFPERIOD_NAME, this.coolOffPeriod); return summaryObj; } }
[ "yang.db.dev@gmail.com" ]
yang.db.dev@gmail.com
8dfb3e5fc7fd81ff2d755b2ac2f17731f8edfe9b
03be3f540f93a1507e82e4e84a651e205ba2971e
/.svn/pristine/8d/8dfb3e5fc7fd81ff2d755b2ac2f17731f8edfe9b.svn-base
fafb35acb8c992908a618435c5650f2e52fdd728
[]
no_license
Tarunjain19/DXC_SVN
448103f0c56e79616a2801acbf5d369d6e256b36
99a90150d30374929382c3181ee8b1f914c905ae
refs/heads/master
2022-06-04T10:36:52.755986
2020-05-06T08:44:47
2020-05-06T08:44:47
261,372,252
0
0
null
null
null
null
UTF-8
Java
false
false
567
package flow.subflow.Collect_Reg_Contact_Num; /** * This servlet is the exit point of a subflow. The base class handles * the logic for forwarding to the next servlet. * Last generated by Orchestration Designer at: 2016-SEP-29 11:20:39 AM */ public class Success extends com.avaya.sce.runtime.SubflowReturn { //{{START:CLASS:FIELDS //}}END:CLASS:FIELDS /** * Default constructor * Last generated by Orchestration Designer at: 2016-SEP-29 11:20:39 AM */ public Success() { //{{START:CLASS:CONSTRUCTOR super(); //}}END:CLASS:CONSTRUCTOR } }
[ "tarun.jain3@dxc.com" ]
tarun.jain3@dxc.com
a7aa6f987e98012e4a1bdd9b3178c652b2e745ab
c2254135157383ea026af9cff0767c7cb88e74d7
/app/src/main/java/com/nanosoft/planInternational/tracking/database/model/SurveyQuestion.java
c4028bcd2cd0eea597c3e6877d6b077a4b283428
[]
no_license
azadbasis/PlanInternational
55f876c71b2d42d93d69a291d96d338de8c1623b
7111810189d44772a289cb1fcc47a02764b3176c
refs/heads/master
2020-05-03T14:14:58.696832
2019-03-31T10:20:51
2019-03-31T10:20:51
178,672,214
0
0
null
null
null
null
UTF-8
Java
false
false
3,621
java
package com.nanosoft.planInternational.tracking.database.model; /** * Created by NanoSoft on 4/16/2017. */ public class SurveyQuestion { private int surveyQuestionTableId; private String crated_by; private String modified_by; private int surveyEntryId; private String questionType; private String questionName; private int serialNo; private int otherAnswerOption; private int answerRequired; private String reqtext; private int validateAnswerFormat; private int characters; private int scale; private int ageRange; private String is_primary_question; public SurveyQuestion(int surveyQuestionTableId, String crated_by, String modified_by, int surveyEntryId, String questionType, String questionName, int serialNo, int otherAnswerOption, int answerRequired, String reqtext, int validateAnswerFormat, int characters, int scale, int ageRange, String is_primary_question) { this.surveyQuestionTableId = surveyQuestionTableId; this.crated_by = crated_by; this.modified_by = modified_by; this.surveyEntryId = surveyEntryId; this.questionType = questionType; this.questionName = questionName; this.serialNo = serialNo; this.otherAnswerOption = otherAnswerOption; this.answerRequired = answerRequired; this.reqtext = reqtext; this.validateAnswerFormat = validateAnswerFormat; this.characters = characters; this.scale = scale; this.ageRange = ageRange; this.is_primary_question = is_primary_question; } public SurveyQuestion(String crated_by, String modified_by, int surveyEntryId, String questionType, String questionName, int serialNo, int otherAnswerOption, int answerRequired, String reqtext, int validateAnswerFormat, int characters, int scale, int ageRange, String is_primary_question) { this.crated_by = crated_by; this.modified_by = modified_by; this.surveyEntryId = surveyEntryId; this.questionType = questionType; this.questionName = questionName; this.serialNo = serialNo; this.otherAnswerOption = otherAnswerOption; this.answerRequired = answerRequired; this.reqtext = reqtext; this.validateAnswerFormat = validateAnswerFormat; this.characters = characters; this.scale = scale; this.ageRange = ageRange; this.is_primary_question = is_primary_question; } public String getIs_primary_question() { return is_primary_question; } public int getScale() { return scale; } public String getCrated_by() { return crated_by; } public String getModified_by() { return modified_by; } public int getSurveyQuestionTableId() { return surveyQuestionTableId; } public int getSurveyEntryId() { return surveyEntryId; } public String getQuestionType() { return questionType; } public String getQuestionName() { return questionName; } public int getSerialNo() { return serialNo; } public int getOtherAnswerOption() { return otherAnswerOption; } public int getAnswerRequired() { return answerRequired; } public String getReqtext() { return reqtext; } public int getValidateAnswerFormat() { return validateAnswerFormat; } public int getCharacters() { return characters; } public int getAgeRange() { return ageRange; } }
[ "azadbasis@gmail.com" ]
azadbasis@gmail.com
980fbd03dcbed7dfb1cce4171e5394b91d95a113
7d8c64f1f09e13043f14a5a235c4e61272a77506
/sources/org/jaxen/expr/DefaultLocationPath.java
73718a7906ee6571cde083812961c3b1e0414bde
[]
no_license
AlexKohanim/QuickReturn
168530c2ef4035faff817a901f1384ed8a554f73
1ce10de7020951d49f80b66615fe3537887cea80
refs/heads/master
2022-06-25T19:00:59.818761
2020-05-08T20:11:14
2020-05-08T20:11:14
262,418,565
0
1
null
null
null
null
UTF-8
Java
false
false
2,402
java
package org.jaxen.expr; import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import org.appcelerator.titanium.util.TiUrl; import org.jaxen.Context; import org.jaxen.ContextSupport; import org.jaxen.JaxenException; abstract class DefaultLocationPath extends DefaultExpr implements LocationPath { private List steps = new LinkedList(); DefaultLocationPath() { } public void addStep(Step step) { getSteps().add(step); } public List getSteps() { return this.steps; } public Expr simplify() { for (Step eachStep : getSteps()) { eachStep.simplify(); } return this; } public String getText() { StringBuffer buf = new StringBuffer(); Iterator stepIter = getSteps().iterator(); while (stepIter.hasNext()) { buf.append(((Step) stepIter.next()).getText()); if (stepIter.hasNext()) { buf.append(TiUrl.PATH_SEPARATOR); } } return buf.toString(); } public String toString() { StringBuffer buf = new StringBuffer(); Iterator stepIter = getSteps().iterator(); while (stepIter.hasNext()) { buf.append(stepIter.next().toString()); if (stepIter.hasNext()) { buf.append(TiUrl.PATH_SEPARATOR); } } return buf.toString(); } public boolean isAbsolute() { return false; } public Object evaluate(Context context) throws JaxenException { List contextNodeSet = new ArrayList(context.getNodeSet()); ContextSupport support = context.getContextSupport(); Context stepContext = new Context(support); for (Step eachStep : getSteps()) { stepContext.setNodeSet(contextNodeSet); contextNodeSet = eachStep.evaluate(stepContext); if (isReverseAxis(eachStep)) { Collections.reverse(contextNodeSet); } } if (getSteps().size() > 1) { Collections.sort(contextNodeSet, new NodeComparator(support.getNavigator())); } return contextNodeSet; } private boolean isReverseAxis(Step step) { int axis = step.getAxis(); return axis == 8 || axis == 6 || axis == 4 || axis == 13; } }
[ "akohanim@sfsu.edu" ]
akohanim@sfsu.edu
c557ee84a4b545e9d902a15fe3b588982ca1c2a5
db9e7654723af21e2062dc4fea4bfd9751bbf702
/kybabyDoctor/src/main/java/com/kybaby/newbussiness/ordermanager/domain/DoctorSignRecord.java
83ad8e4417d916fcacb9188cbc9d57f03eb6b138
[]
no_license
c19t043/comTest
25ab7fadbd667c3fc520ac82b0ab734c49925d83
ae59bde6fa671c009bded3b1aa05d32bec88ddd8
refs/heads/master
2020-12-24T06:40:17.174421
2016-11-18T08:44:57
2016-11-18T08:44:57
73,466,674
0
0
null
null
null
null
UTF-8
Java
false
false
1,532
java
package com.kybaby.newbussiness.ordermanager.domain; import com.kybaby.domain.DoctorInfo; import com.kybaby.domain.OrderInfo; import com.kybaby.domain.UserInfo; /** * 医生签到信息 * @author lihao * */ public class DoctorSignRecord implements java.io.Serializable { // Fields private static final long serialVersionUID = 1L; private Long id; private OrderInfo orderInfo; private DoctorInfo doctorInfo; private UserInfo userInfo; /** * 签到地址 */ private String signAddress; /** * 签到时间 */ private String signTime; /** * 签到次数 */ private Long signNumber; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public OrderInfo getOrderInfo() { return orderInfo; } public void setOrderInfo(OrderInfo orderInfo) { this.orderInfo = orderInfo; } public DoctorInfo getDoctorInfo() { return doctorInfo; } public void setDoctorInfo(DoctorInfo doctorInfo) { this.doctorInfo = doctorInfo; } public UserInfo getUserInfo() { return userInfo; } public void setUserInfo(UserInfo userInfo) { this.userInfo = userInfo; } public String getSignAddress() { return signAddress; } public void setSignAddress(String signAddress) { this.signAddress = signAddress; } public String getSignTime() { return signTime; } public void setSignTime(String signTime) { this.signTime = signTime; } public Long getSignNumber() { return signNumber; } public void setSignNumber(Long signNumber) { this.signNumber = signNumber; } }
[ "176158750@qq.com" ]
176158750@qq.com
bdfbb95bfcd507e70525b8ab29fb20537aed341f
a71e201e6cc22116dd22e3f4f5729ffb907d9d28
/weixin4j-mp/src/main/java/com/foxinmy/weixin4j/mp/WeixinComponentProxy.java
1a7a5f51ee67194b181840174462eb6c862e254a
[ "Apache-2.0" ]
permissive
feinoah/weixin4j
a214f98ee7b093f7de3c68421881510f2588fa50
688467887e7f0c7b2799c128ae99088d1f7c2b82
refs/heads/master
2021-01-10T22:36:11.924432
2016-09-25T02:43:12
2016-09-25T02:43:12
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,420
java
package com.foxinmy.weixin4j.mp; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.HashMap; import java.util.Map; import com.alibaba.fastjson.JSON; import com.foxinmy.weixin4j.cache.CacheStorager; import com.foxinmy.weixin4j.cache.FileCacheStorager; import com.foxinmy.weixin4j.exception.WeixinException; import com.foxinmy.weixin4j.model.Token; import com.foxinmy.weixin4j.model.WeixinAccount; import com.foxinmy.weixin4j.mp.api.ComponentApi; import com.foxinmy.weixin4j.mp.model.WeixinMpAccount; import com.foxinmy.weixin4j.mp.type.URLConsts; import com.foxinmy.weixin4j.token.TicketManager; import com.foxinmy.weixin4j.util.Consts; import com.foxinmy.weixin4j.util.StringUtil; import com.foxinmy.weixin4j.util.Weixin4jConfigUtil; /** * 微信第三方应用接口实现 * * @className WeixinComponentProxy * @author jinyu(foxinmy@gmail.com) * @date 2016年7月5日 * @since JDK 1.6 * @see com.foxinmy.weixin4j.mp.api.ComponentApi * @see <a href= * "https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1419318292&token=&lang=zh_CN"> * 公众号第三方应用</a> */ public class WeixinComponentProxy { /** * 每个组件授权不一样 componentId - componentApi */ private Map<String, ComponentApi> componentMap; /** * 微信账号信息 */ private final WeixinMpAccount weixinMpAccount; /** * 微信第三方组件接口实现(使用weixin4j.properties配置的account#components账号信息, * 使用FileCacheStorager文件方式缓存TOKEN) */ public WeixinComponentProxy() { this(new FileCacheStorager<Token>()); } /** * 微信第三方组件接口实现(使用weixin4j.properties配置的account#components账号信息) * * @param cacheStorager * token管理 */ public WeixinComponentProxy(CacheStorager<Token> cacheStorager) { this(JSON.parseObject(Weixin4jConfigUtil.getValue("account"), WeixinMpAccount.class), cacheStorager); } /** * 微信第三方组件接口实现 * * @param weixinMpAccount * 账号信息 * @param cacheStorager * token管理 */ public WeixinComponentProxy(WeixinMpAccount weixinMpAccount, CacheStorager<Token> cacheStorager) { if (weixinMpAccount == null) { throw new IllegalArgumentException( "weixinMpAccount must not be empty"); } if (cacheStorager == null) { throw new IllegalArgumentException( "cacheStorager must not be empty"); } this.weixinMpAccount = weixinMpAccount; this.componentMap = new HashMap<String, ComponentApi>(weixinMpAccount .getComponents().size()); for (WeixinAccount component : weixinMpAccount.getComponents()) { this.componentMap.put(component.getId(), new ComponentApi( new TicketManager(component.getId(), component.getSecret(), cacheStorager))); } this.componentMap.put(null, componentMap.get(weixinMpAccount .getComponents().get(0).getId())); } /** * 获取微信账号信息 * * @return */ public WeixinMpAccount getWeixinMpAccount() { return this.weixinMpAccount; } /** * 获取组接口对象(只关注第一个组件 * * @see com.foxinmy.weixin4j.mp.api.ComponentApi * @return API实例 */ public ComponentApi component() { return this.componentMap.get(null); } /** * 获取套件接口对象(多个组件 * * @see com.foxinmy.weixin4j.mp.api.ComponentApi * @param componentId * 组件ID * @return API实例 */ public ComponentApi component(String componentId) { return this.componentMap.get(componentId); } /** * 获取组件的预授权码 <font color="red">需先缓存ticket</font> * * @param componentId * 组件ID * @return 预授权码 * @see #cacheComponentTicket(String, String) * @see com.foxinmy.weixin4j.mp.api.ComponentApi * @see com.foxinmy.weixin4j.mp.api.ComponentApi#getTicketManager() * @see com.foxinmy.weixin4j.mp.api.ComponentApi#getPreCodeManager() * @throws WeixinException */ public String getPreComponentTicket(String componentId) throws WeixinException { ComponentApi component = component(componentId); Token token = component.getTicketManager().getTicket(); if (token == null || StringUtil.isBlank(token.getAccessToken())) { throw new WeixinException("maybe oauth first?"); } return component.getPreCodeManager().getAccessToken(); } /** * 缓存组件ticket * * @param componentId * 组件ID * @param componentTicket * 组件ticket内容 * @throws WeixinException */ public void cacheComponentTicket(String componentId, String componentTicket) throws WeixinException { component(componentId).getTicketManager() .cachingTicket(componentTicket); } /** * 应用组件授权 <font color="red">需先缓存ticket</font> <li> * redirectUri默认填写weixin4j.properties#component.oauth.redirect.uri <li> * state默认填写state * * @param componentId * 组件ID * @see {@link #getComponentAuthorizationURL(String, String,String)} * @return 请求授权的URL * @throws WeixinException */ public String getComponentAuthorizationURL(String componentId) throws WeixinException { String redirectUri = Weixin4jConfigUtil .getValue("component.oauth.redirect.uri"); return getComponentAuthorizationURL(componentId, redirectUri, "state"); } /** * 应用组件授权 <font * color="red">需先缓存ticket,在授权完成之后需要调用ComponentApi#exchangeAuthInfo方法 * ,否则无法缓存token相关导致后续的组件接口调用失败</font> * * @param componentId * 组件ID * @param redirectUri * 授权后重定向url * @param state * 回调后原样返回 * @see #cacheComponentTicket(String, String) * @see com.foxinmy.weixin4j.mp.api.ComponentApi * @see com.foxinmy.weixin4j.mp.api.ComponentApi#getTicketManager() * @see com.foxinmy.weixin4j.mp.api.ComponentApi#getPreCodeManager() * @see com.foxinmy.weixin4j.mp.api.ComponentApi#exchangeAuthInfo(String) * @see <a * href="https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1453779503&token=&lang=zh_CN">应用组件授权</a> * @return 请求授权的URL * @throws WeixinException */ public String getComponentAuthorizationURL(String componentId, String redirectUri, String state) throws WeixinException { try { return String.format(URLConsts.COMPONENT_OAUTH_URL, componentId, getPreComponentTicket(componentId), URLEncoder.encode(redirectUri, Consts.UTF_8.name()), state); } catch (UnsupportedEncodingException e) { ; } return ""; } /** * 创建WeixinProxy对象 * * @param componentId * 组件ID * @param authAppId * 已授权的appid * @see com.foxinmy.weixin4j.mp.WeixinProxy * @return */ public WeixinProxy getWeixinProxy(String componentId, String authAppId) { return new WeixinProxy(component(componentId).getRefreshTokenManager( authAppId), component(componentId).getTokenManager()); } public final static String VERSION = "1.7.1"; }
[ "foxinmy@gmail.com" ]
foxinmy@gmail.com
5032bd563fb0b72cb3ca6556c79f437742a32d67
f08256664e46e5ac1466f5c67dadce9e19b4e173
/sources/com/bamtech/sdk4/internal/media/offline/DownloadTaskFactory.java
5e83e9df5c2440ccf0c672a08424619828dcb94a
[]
no_license
IOIIIO/DisneyPlusSource
5f981420df36bfbc3313756ffc7872d84246488d
658947960bd71c0582324f045a400ae6c3147cc3
refs/heads/master
2020-09-30T22:33:43.011489
2019-12-11T22:27:58
2019-12-11T22:27:58
227,382,471
6
3
null
null
null
null
UTF-8
Java
false
false
727
java
package com.bamtech.sdk4.internal.media.offline; import kotlin.Metadata; @Metadata(mo31005bv = {1, 0, 3}, mo31006d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\bf\u0018\u00002\u00020\u0001J\u0010\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0005H&¨\u0006\u0006"}, mo31007d2 = {"Lcom/bamtech/sdk4/internal/media/offline/DownloadTaskFactory;", "", "createTask", "Lcom/bamtech/sdk4/media/offline/DownloadTask;", "cachedMedia", "Lcom/bamtech/sdk4/media/offline/CachedMedia;", "plugin-offline-media_release"}, mo31008k = 1, mo31009mv = {1, 1, 15}) /* compiled from: DownloadTaskFactory.kt */ public interface DownloadTaskFactory { }
[ "101110@vivaldi.net" ]
101110@vivaldi.net
827d8bd07061d11c9e3e6835cd1ff353449dbba5
ed5159d056e98d6715357d0d14a9b3f20b764f89
/src/irvine/oeis/a149/A149537.java
533f072f8f86f8f04d129fd304befb3ee4e762c3
[]
no_license
flywind2/joeis
c5753169cf562939b04dd246f8a2958e97f74558
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
refs/heads/master
2020-09-13T18:34:35.080552
2019-11-19T05:40:55
2019-11-19T05:40:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
588
java
package irvine.oeis.a149; // Generated by gen_seq4.pl walk23 3 5 1 220212012102111 at 2019-07-08 22:06 // DO NOT EDIT here! import irvine.oeis.WalkCubeSequence; /** * A149537 Number of walks within <code>N^3</code> (the first octant of <code>Z^3)</code> starting at <code>(0,0,0)</code> and consisting of n steps taken from <code>{(-1, -1, 0), (-1, 1, -1), (0, 1, -1), (1, 0, -1), (1, 1, 1)}</code>. * @author Georg Fischer */ public class A149537 extends WalkCubeSequence { /** Construct the sequence. */ public A149537() { super(0, 3, 5, "", 1, "220212012102111"); } }
[ "sairvin@gmail.com" ]
sairvin@gmail.com
987ed694f017ec0fb156361351e5c1bdde0de1a9
473b76b1043df2f09214f8c335d4359d3a8151e0
/benchmark/bigclonebenchdata_partial/14768963.java
086f59430090078c41ddfbbaf74cd5f0d23c923d
[]
no_license
whatafree/JCoffee
08dc47f79f8369af32e755de01c52d9a8479d44c
fa7194635a5bd48259d325e5b0a190780a53c55f
refs/heads/master
2022-11-16T01:58:04.254688
2020-07-13T20:11:17
2020-07-13T20:11:17
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,209
java
class c14768963 { public static boolean exec_applet(String fname, VarContainer vc, ActionContainer ac, ThingTypeContainer ttc, Output OUT, InputStream IN, boolean AT, Statement state, String[] arggies) { if (!urlpath.endsWith("/")) { urlpath = urlpath + '/'; } if (!urlpath.startsWith("http://")) { urlpath = "http://" + urlpath; } String url = urlpath; if (fname.startsWith("dusty_")) { url = url + "libraries/" + fname; } else { url = url + "users/" + fname; } StringBuffer src = new StringBuffer(2400); try { String s; BufferedReader br = new BufferedReader(new InputStreamReader(new URL(url).openStream())); while ((s = br.readLine()) != null) { src.append(s).append('\n'); } br.close(); } catch (Exception e) { OUT.println(new DSOut(DSOut.ERR_OUT, -1, "Dustyscript failed at reading the file'" + fname + "'\n\t...for 'use' statement"), vc, AT); return false; } fork(src, vc, ac, ttc, OUT, IN, AT, state, arggies); return true; } }
[ "piyush16066@iiitd.ac.in" ]
piyush16066@iiitd.ac.in
e8723f18b2cc0eade5aff88dd7f0e081d656d104
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
/methods/Method_20822.java
3acbb3872b70be93331f08f020019b34146ac1b6
[]
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
324
java
/** * Returns a formatted number for the user's locale. {@link NumberOptions} can control whether the number isused as a currency, if it is bucketed, and the precision. */ public static @NonNull String format(final float value,final @NonNull NumberOptions options){ return format(value,options,Locale.getDefault()); }
[ "sonnguyen@utdallas.edu" ]
sonnguyen@utdallas.edu
3854f1ae48a51711bb6ec16bd828dd6fbb66ff66
79ce1613f361cecdf20f37caf16bde39f62cf559
/src/test/java/cn/yangcx/typeinfo14/pets/Cymric.java
59c8cf0d2dbb67933a440318cb263f2d9176bb9b
[]
no_license
yangcxx/ThinkingInJava
24939f40f0998588a47cdf5cd212b1a14af93143
b4ef593b85ce840d40a170963bbeeab47d2ee805
refs/heads/master
2023-08-16T05:35:00.903600
2021-10-04T09:30:57
2021-10-04T09:30:57
388,625,646
0
0
null
null
null
null
UTF-8
Java
false
false
213
java
package cn.yangcx.typeinfo14.pets; /** * @author YANGCX * @date 2021/7/20 7:25 */ public class Cymric extends Manx { public Cymric(String name) { super(name); } public Cymric() { } }
[ "charlesyoung0811@gmail.com" ]
charlesyoung0811@gmail.com
61d5b62f9b5190fa8977ef821edc367bc94721f7
79f497a1cfcb13fcdff4eb20f9bd65511edca176
/src/main/java/com/distributionnetwork/app/config/WebsocketConfiguration.java
fd2c3da9f1a1672957151376282abb58930eae33
[]
no_license
BulkSecurityGeneratorProject/DistributionNetwork2017
57bd7bb09cd9837fc531699968aaa67674962c5a
c5483f5b2d11d6fb49951b1b288e770d1136f0f1
refs/heads/master
2022-12-24T21:07:47.487011
2017-02-06T11:45:34
2017-02-06T11:45:34
296,682,597
0
0
null
2020-09-18T17:05:10
2020-09-18T17:05:09
null
UTF-8
Java
false
false
3,563
java
package com.distributionnetwork.app.config; import com.distributionnetwork.app.security.AuthoritiesConstants; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.server.ServerHttpRequest; import org.springframework.http.server.ServerHttpResponse; import org.springframework.http.server.ServletServerHttpRequest; import org.springframework.messaging.simp.config.MessageBrokerRegistry; import org.springframework.security.authentication.AnonymousAuthenticationToken; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.authority.SimpleGrantedAuthority; import org.springframework.web.socket.WebSocketHandler; import org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer; import org.springframework.web.socket.config.annotation.EnableWebSocketMessageBroker; import org.springframework.web.socket.config.annotation.StompEndpointRegistry; import org.springframework.web.socket.server.HandshakeInterceptor; import org.springframework.web.socket.server.support.DefaultHandshakeHandler; import java.security.Principal; import java.util.ArrayList; import java.util.Collection; import java.util.Map; @Configuration @EnableWebSocketMessageBroker public class WebsocketConfiguration extends AbstractWebSocketMessageBrokerConfigurer { private final Logger log = LoggerFactory.getLogger(WebsocketConfiguration.class); public static final String IP_ADDRESS = "IP_ADDRESS"; @Override public void configureMessageBroker(MessageBrokerRegistry config) { config.enableSimpleBroker("/topic"); } @Override public void registerStompEndpoints(StompEndpointRegistry registry) { registry.addEndpoint("/websocket/tracker") .setHandshakeHandler(new DefaultHandshakeHandler() { @Override protected Principal determineUser(ServerHttpRequest request, WebSocketHandler wsHandler, Map<String, Object> attributes) { Principal principal = request.getPrincipal(); if (principal == null) { Collection<SimpleGrantedAuthority> authorities = new ArrayList<>(); authorities.add(new SimpleGrantedAuthority(AuthoritiesConstants.ANONYMOUS)); principal = new AnonymousAuthenticationToken("WebsocketConfiguration", "anonymous", authorities); } return principal; } }) .withSockJS() .setInterceptors(httpSessionHandshakeInterceptor()); } @Bean public HandshakeInterceptor httpSessionHandshakeInterceptor() { return new HandshakeInterceptor() { @Override public boolean beforeHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, Map<String, Object> attributes) throws Exception { if (request instanceof ServletServerHttpRequest) { ServletServerHttpRequest servletRequest = (ServletServerHttpRequest) request; attributes.put(IP_ADDRESS, servletRequest.getRemoteAddress()); } return true; } @Override public void afterHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, Exception exception) { } }; } }
[ "i.topolev.vladimir@gmail.com" ]
i.topolev.vladimir@gmail.com
46d947146a75601bf9c3ba74db27e295c4b0020d
1cbf46c147b09a878235da8010f427eb2447bab5
/src/main/java/ljtao/book_JavaProgramOptimization/d_1_concurrence_mode/f_producer_consumer/Main.java
1cd06a58d87fd40e7e1a7d3c29343aa43064746c
[]
no_license
mathLjtao/MyJavaStudy
54b90fbb0f285a611b73d72477a605d875563716
d9a934e95b2f24bf854a4c359dd04d3fb8acd0d9
refs/heads/master
2022-12-22T02:01:24.856371
2021-09-16T13:15:20
2021-09-16T13:15:20
188,509,645
0
0
null
null
null
null
UTF-8
Java
false
false
1,014
java
package ljtao.book_JavaProgramOptimization.d_1_concurrence_mode.f_producer_consumer; import java.util.concurrent.BlockingQueue; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.LinkedBlockingDeque; public class Main { public static void main(String[] args) throws Exception { BlockingQueue<PCData> queue =new LinkedBlockingDeque<PCData>(); Producer p1=new Producer(queue); Producer p2=new Producer(queue); Producer p3=new Producer(queue); Consumer c1=new Consumer(queue); Consumer c2=new Consumer(queue); Consumer c3=new Consumer(queue); //建立线程池 ExecutorService service=Executors.newCachedThreadPool(); //运行生存者 service.execute(p1); service.execute(p2); service.execute(p3); service.execute(c1); service.execute(c2); service.execute(c3); Thread.sleep(3*1000); p1.stop(); p2.stop(); p3.stop(); Thread.sleep(3*1000); c1.stop(); c2.stop(); c3.stop(); service.shutdown(); } }
[ "43426976+mathLjtao@users.noreply.github.com" ]
43426976+mathLjtao@users.noreply.github.com
c5481dc4812aa268d524bcbbc116557f4222ef6a
a211691e7419df736fd4fc0893545d6ef88855c0
/src/main/java/org/fakereplace/com/google/common/collect/UnmodifiableIterator.java
cdc189651692b6decc5035c8d66a38437b660c54
[]
no_license
star090807/fakereplace-google-collections
45784fb8674733ba96456f063fdfdc13b6b8337e
77e2203a6099e667699473d59f9f4cd15d3a5306
refs/heads/master
2021-01-23T22:52:40.928985
2012-05-12T03:10:21
2012-05-12T03:10:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,167
java
/* * Copyright (C) 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.fakereplace.com.google.common.collect; import java.util.Iterator; import org.fakereplace.com.google.common.annotations.GwtCompatible; /** * An iterator that does not support {@link #remove}. * * @author Jared Levy */ @GwtCompatible public abstract class UnmodifiableIterator<E> implements Iterator<E> { /** * Guaranteed to throw an exception and leave the underlying data unmodified. * * @throws UnsupportedOperationException always */ public final void remove() { throw new UnsupportedOperationException(); } }
[ "stuart.w.douglas@gmail.com" ]
stuart.w.douglas@gmail.com
22e88bc722bdc528233c543d2ef3796e153ac5eb
b3c5ce59df3f6a0a2d639d6f57f91bad71814c1c
/mytracks/MyTracks/src/com/google/android/apps/mytracks/util/FileUtils.java
b0fbf31f611869c2395ed5e0fa0ca5c67aa285ac
[]
no_license
umranium/LiveMonitor-Mirror
8d22c6f6b513ff37002c2fcd751718b767c1220f
eda9a1e966431fd19fce60a703694a9599eaf192
refs/heads/master
2021-01-20T06:59:44.804410
2012-07-03T03:25:15
2012-07-03T03:25:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,841
java
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.google.android.apps.mytracks.util; import com.google.android.apps.mytracks.Constants; import android.os.Environment; import java.io.File; import java.text.SimpleDateFormat; import java.util.Date; import java.util.TimeZone; import java.util.regex.Pattern; /** * Utilities for dealing with files. * * @author Rodrigo Damazio */ public class FileUtils { /** * The maximum length of a filename, as per the FAT32 specification. */ private static final int MAX_FILENAME_LENGTH = 260; /** * A set of characters that are prohibited from being in file names. */ private static final Pattern PROHIBITED_CHAR_PATTERN = Pattern.compile("[^ A-Za-z0-9_.()-]+"); /** * Timestamp format in UTC time zone. */ private static final SimpleDateFormat FILE_TIMESTAMP_FORMAT = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.S'Z'"); static { FILE_TIMESTAMP_FORMAT.setTimeZone(TimeZone.getTimeZone("UTC")); } public static String formatFileTimestamp(long timestamp) { // get the time in tenth of a second double timestampTenthOfSeconds = timestamp / 100.0; // round it to get rid of excess decimal places timestampTenthOfSeconds = Math.round(timestampTenthOfSeconds); // get the digit of 10th of a second for use later int tenthOfASec = (int)((long)timestampTenthOfSeconds % 10); // time after rounding, in seconds (truncating 10th of a second) long finalTimestamp = (long)timestampTenthOfSeconds / 10; // convert seconds to milliseconds finalTimestamp *= 1000; // add the 10th of a second digit as a unit digit finalTimestamp += tenthOfASec; return FILE_TIMESTAMP_FORMAT.format(new Date(finalTimestamp)); } /** * Builds a path inside the My Tracks directory in the SD card. * * @param components the path components inside the mytracks directory * @return the full path to the destination */ public String buildExternalDirectoryPath(String... components) { StringBuilder dirNameBuilder = new StringBuilder(); dirNameBuilder.append(Environment.getExternalStorageDirectory()); dirNameBuilder.append(File.separatorChar); dirNameBuilder.append(Constants.SDCARD_TOP_DIR); for (String component : components) { dirNameBuilder.append(File.separatorChar); dirNameBuilder.append(component); } return dirNameBuilder.toString(); } /** * Returns whether the SD card is available. */ public boolean isSdCardAvailable() { return Environment.MEDIA_MOUNTED.equals( Environment.getExternalStorageState()); } /** * Normalizes the input string and make sure it is a valid fat32 file name. * * @param name the name to normalize * @return the sanitized name */ String sanitizeName(String name) { String cleaned = PROHIBITED_CHAR_PATTERN.matcher(name).replaceAll(""); return (cleaned.length() > MAX_FILENAME_LENGTH) ? cleaned.substring(0, MAX_FILENAME_LENGTH) : cleaned.toString(); } /** * Ensures the given directory exists by creating it and its parents if * necessary. * * @return whether the directory exists (either already existed or was * successfully created) */ public boolean ensureDirectoryExists(File dir) { if (dir.exists() && dir.isDirectory()) { return true; } if (dir.mkdirs()) { return true; } return false; } /** * Builds a filename with the given base name (prefix) and the given * extension, possibly adding a suffix to ensure the file doesn't exist. * * @param directory the directory the file will live in * @param fileBaseName the prefix for the file name * @param extension the file's extension * @return the complete file name, without the directory */ public synchronized String buildUniqueFileName(File directory, String fileBaseName, String extension) { return buildUniqueFileName(directory, fileBaseName, extension, 0); } /** * Builds a filename with the given base name (prefix) and the given * extension, possibly adding a suffix to ensure the file doesn't exist. * * @param directory the directory the file will live in * @param fileBaseName the prefix for the file name * @param extension the file's extension * @param suffix the first numeric suffix to try to use, or 0 for none * @return the complete file name, without the directory */ private String buildUniqueFileName(File directory, String fileBaseName, String extension, int suffix) { String suffixedBaseName = fileBaseName; if (suffix > 0) { suffixedBaseName += " (" + Integer.toString(suffix) + ")"; } String fullName = suffixedBaseName + "." + extension; String sanitizedName = sanitizeName(fullName); if (!fileExists(directory, sanitizedName)) { return sanitizedName; } return buildUniqueFileName(directory, fileBaseName, extension, suffix + 1); } /** * Checks whether a file with the given name exists in the given directory. * This is isolated so it can be overridden in tests. */ protected boolean fileExists(File directory, String fullName) { File file = new File(directory, fullName); return file.exists(); } }
[ "abd01c@.nexus.csiro.au" ]
abd01c@.nexus.csiro.au
ea3f7cf09df74bd39d0a05bb7f8c1c8208018db6
e215d0f3b5a99a39a493bd0860997ba00d859f7d
/video-cms/src/main/java/com/zhiyou100/service/BaseService.java
7b2788abd41dc783061da61346ef36c2a0d868fd
[]
no_license
wemecan/video-cms
7aefc3b061026b68115f7bd6a3a4eb553a5b65da
cc4385a3d1fc81e9c7904a83cb9460c2a4176c0f
refs/heads/master
2021-09-02T14:00:40.806766
2018-01-03T03:21:36
2018-01-03T03:21:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
571
java
package com.zhiyou100.service; import java.util.List; import com.zhiyou100.dto.BaseDTO; import com.zhiyou100.vo.QueryVO; public interface BaseService<T> { /** * 返回全部内容 * @return */ List<T> listObject(); /** * 返回指定内容 * @param queryVO * @return */ BaseDTO<T> listObject(QueryVO queryVO); /** * 插入内容 * @param object */ void insertObject(T object); /** * 删除内容 * @param object */ void removeObject(String[] ids); /** * 更新内容 * @param object */ void updateObject(T object); }
[ "yooless@163.com" ]
yooless@163.com
65cbce70a7e92bf88f47d6f5161716fe6c5b04e2
0db469f7f1cea3297b55cc937745a264bd89a7de
/app/src/main/java/org/jboss/hal/client/bootstrap/tasks/SetTitle.java
ec48dbe4a28ad2486c1526cb459d575999a4c0b9
[ "MIT", "Apache-2.0" ]
permissive
bmaxwell/console-1
df793c694a814df91821ce316547c30eeee75952
ee5f8f0fcf78645ff2df1bcf944c1fa5e1099018
refs/heads/master
2020-11-26T16:55:39.733526
2019-11-28T16:15:14
2019-11-28T16:15:14
229,145,923
1
0
Apache-2.0
2019-12-19T22:04:05
2019-12-19T22:04:04
null
UTF-8
Java
false
false
2,756
java
/* * Copyright 2015-2016 Red Hat, Inc, and individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.jboss.hal.client.bootstrap.tasks; import java.util.HashMap; import java.util.Map; import java.util.function.Supplier; import javax.inject.Inject; import org.jboss.hal.config.Environment; import org.jboss.hal.config.Settings; import org.jboss.hal.flow.FlowContext; import org.jboss.hal.resources.Names; import org.jetbrains.annotations.NonNls; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import rx.Completable; import static com.google.common.base.Strings.emptyToNull; import static elemental2.dom.DomGlobal.document; public class SetTitle implements BootstrapTask { @NonNls private static final Logger logger = LoggerFactory.getLogger(SetTitle.class); private static final String NAME_PLACEHOLDER = "%n"; private static final String ORGANIZATION_PLACEHOLDER = "%o"; private final Settings settings; private final Map<String, Supplier<String>> data; @Inject public SetTitle(Environment environment, Settings settings) { this.settings = settings; this.data = new HashMap<>(); data.put(NAME_PLACEHOLDER, environment::getName); data.put(ORGANIZATION_PLACEHOLDER, environment::getOrganization); } @Override public Completable call(FlowContext context) { String title = settings.get(Settings.Key.TITLE).value(); if (emptyToNull(title) != null) { for (Map.Entry<String, Supplier<String>> entry : data.entrySet()) { if (title.contains(entry.getKey())) { String value = entry.getValue().get(); if (emptyToNull(value) != null) { title = title.replace(entry.getKey(), value); } else { logger.error("Value for placeholder '{}' in custom title is undefined. " + "Fall back to built in title.", entry.getKey()); title = Names.BROWSER_FALLBACK_TITLE; break; } } } document.title = title; } return Completable.complete(); } }
[ "harald.pehl@gmail.com" ]
harald.pehl@gmail.com
dd35223129aa9d358ca0df032fc66d11f2349dda
5da7b4a375df03902f21c21939451f653f12554d
/MaiBo/src/com/mb/android/maiboapp/adapter/AccountAdapter.java
41c539d8a1905be1795c8e705c57d19492cb0e99
[]
no_license
cgy529387306/Maibo
d7d404d1b8279a05afe9f215a4a903298b8173b3
16d9b2e3f0b02788797723b70921c53b8d326c1e
refs/heads/master
2020-04-26T03:30:28.567125
2019-03-01T09:01:32
2019-03-01T09:01:32
173,269,015
0
0
null
null
null
null
UTF-8
Java
false
false
2,199
java
package com.mb.android.maiboapp.adapter; import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; import com.mb.android.maiboapp.R; import com.mb.android.maiboapp.db.UserHistoryEntity; import com.mb.android.maiboapp.entity.UserEntity; import com.nostra13.universalimageloader.core.ImageLoader; import com.tandy.android.fw2.utils.Helper; public class AccountAdapter extends BaseAdapter{ private Activity activity; private List<UserHistoryEntity> dataList = new ArrayList<UserHistoryEntity>(); public AccountAdapter(Activity act, List<UserHistoryEntity> list) { this.activity = act; this.dataList = list; } @Override public int getCount() { return dataList.size(); } @Override public Object getItem(int position) { return dataList.get(position); } @Override public long getItemId(int position) { return position; } @Override public View getView(int position, View convertView, ViewGroup parent) { final ViewHolder holder; if (Helper.isNull(convertView)) { holder = new ViewHolder(); convertView = LayoutInflater.from(activity).inflate(R.layout.item_account, null); holder.imv_user_avatar = (ImageView) convertView.findViewById(R.id.imv_user_avatar); holder.is_check = (ImageView) convertView.findViewById(R.id.is_check); holder.txv_user_name = (TextView) convertView.findViewById(R.id.txv_user_name); convertView.setTag(holder); }else { holder = (ViewHolder) convertView.getTag(); } UserHistoryEntity entity = (UserHistoryEntity) getItem(position); holder.txv_user_name.setText(entity.getUser_name()); ImageLoader.getInstance().displayImage(entity.getAvatar_large(), holder.imv_user_avatar); if (UserEntity.getInstance().getMember_id().equals(entity.getMember_id())) { holder.is_check.setVisibility(View.VISIBLE); }else { holder.is_check.setVisibility(View.INVISIBLE); } return convertView; } static class ViewHolder{ ImageView imv_user_avatar; ImageView is_check; TextView txv_user_name; } }
[ "661005@nd.com" ]
661005@nd.com
1cb774f44541a4d4bc72a20119d598d2153bf57d
f822c650a30bc09e77c9d9ebc060a0b15eef4f41
/ERP_APP/src/main/java/com/bap/validadores/ValidaHoraMinuto.java
ad4934af87318e520f837ef35b5da2b8eb6abff3
[]
no_license
gpalabral/ErpContabilidad
6648206420fb17b57ed501656cf7b70b58aa5cef
1b81531f9d6a7efc35140b29795ea1b4a813f3a0
refs/heads/master
2021-03-24T13:14:42.833417
2016-03-12T20:23:07
2016-03-12T20:23:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,660
java
package com.bap.validadores; import javax.faces.application.FacesMessage; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.validator.FacesValidator; import javax.faces.validator.Validator; import javax.faces.validator.ValidatorException; @FacesValidator(value = "validaHoraMinuto") public class ValidaHoraMinuto implements Validator { @Override public void validate(FacesContext context, UIComponent c, Object value) throws ValidatorException { if (value != null) { String valor = (String) value; if (valor.length() != 0) { String[] a = valor.split(":"); int H = Integer.parseInt(a[0]); int M = Integer.parseInt(a[1]); if (H >= 0 && H < 24) { if (M < 0 || M > 60) { throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Valor Minuto incorrecto, no existe el valor " + M + " en Minutos.", null)); } } else { throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Valor Hora incorrecta, no existe el valor " + H + " en Horas.", null)); } } else { throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "El Campo " + c.getId() + " es obligatorio, para el registro.", null)); } } else { throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "El Campo " + c.getId() + " es obligatorio, para el registro.", null)); } } }
[ "gustavo.palabral@gmail.com" ]
gustavo.palabral@gmail.com
e9a34270741c5f34ea11fa942c07d39d9022914e
163cb357430bb51eceab9e186d1a9da6f492b45c
/jOOQ-master/jOOQ-test/src/test/java/org/jooq/test/mysql/generatedclasses/tables/daos/T_725LobTestDao.java
bf6839352010488834035c96b75c4f509a0b3dad
[ "Apache-2.0" ]
permissive
saminray/mostafa
33b6b19f133d1eeca6b98a861fc130380d876e37
eccbad998d9e047c9c6e324dada5a6a90469d8a1
refs/heads/master
2020-03-29T12:28:50.741551
2018-09-22T18:12:53
2018-09-22T18:12:53
149,901,430
1
0
null
null
null
null
UTF-8
Java
false
false
1,995
java
/** * This class is generated by jOOQ */ package org.jooq.test.mysql.generatedclasses.tables.daos; /** * This class is generated by jOOQ. */ @java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class T_725LobTestDao extends org.jooq.impl.DAOImpl<org.jooq.test.mysql.generatedclasses.tables.records.T_725LobTestRecord, org.jooq.test.mysql.generatedclasses.tables.pojos.T_725LobTest, java.lang.Integer> { /** * Create a new T_725LobTestDao without any configuration */ public T_725LobTestDao() { super(org.jooq.test.mysql.generatedclasses.tables.T_725LobTest.T_725_LOB_TEST, org.jooq.test.mysql.generatedclasses.tables.pojos.T_725LobTest.class); } /** * Create a new T_725LobTestDao with an attached configuration */ public T_725LobTestDao(org.jooq.Configuration configuration) { super(org.jooq.test.mysql.generatedclasses.tables.T_725LobTest.T_725_LOB_TEST, org.jooq.test.mysql.generatedclasses.tables.pojos.T_725LobTest.class, configuration); } /** * {@inheritDoc} */ @Override protected java.lang.Integer getId(org.jooq.test.mysql.generatedclasses.tables.pojos.T_725LobTest object) { return object.getId(); } /** * Fetch records that have <code>ID IN (values)</code> */ public java.util.List<org.jooq.test.mysql.generatedclasses.tables.pojos.T_725LobTest> fetchById(java.lang.Integer... values) { return fetch(org.jooq.test.mysql.generatedclasses.tables.T_725LobTest.ID, values); } /** * Fetch a unique record that has <code>ID = value</code> */ public org.jooq.test.mysql.generatedclasses.tables.pojos.T_725LobTest fetchOneById(java.lang.Integer value) { return fetchOne(org.jooq.test.mysql.generatedclasses.tables.T_725LobTest.ID, value); } /** * Fetch records that have <code>LOB IN (values)</code> */ public java.util.List<org.jooq.test.mysql.generatedclasses.tables.pojos.T_725LobTest> fetchByLob(byte[]... values) { return fetch(org.jooq.test.mysql.generatedclasses.tables.T_725LobTest.LOB, values); } }
[ "ms.shafeian@gmail.com" ]
ms.shafeian@gmail.com
b5a57cc37deb8d1abefd03c5e541a440d35335cc
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/TIME-18b-7-14-SPEA2-WeightedSum:TestLen:CallDiversity/org/joda/time/DateMidnight_ESTest_scaffolding.java
63088c69f52b5d479832695eaf12881cfdacc9da
[]
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
430
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Sun Jan 19 05:08:13 UTC 2020 */ package org.joda.time; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class DateMidnight_ESTest_scaffolding { // Empty scaffolding for empty test suite }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
67d6fd126aad7036a2ac50ff3d3c6d956591439b
80403ec5838e300c53fcb96aeb84d409bdce1c0c
/server/modules/study/src/org/labkey/study/model/AdditiveType.java
6ac6c7af2f958bedb0b87852e7ceace8b7500f4a
[]
no_license
scchess/LabKey
7e073656ea494026b0020ad7f9d9179f03d87b41
ce5f7a903c78c0d480002f738bccdbef97d6aeb9
refs/heads/master
2021-09-17T10:49:48.147439
2018-03-22T13:01:41
2018-03-22T13:01:41
126,447,224
0
1
null
null
null
null
UTF-8
Java
false
false
2,950
java
/* * Copyright (c) 2009-2015 LabKey Corporation * * 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.labkey.study.model; import org.labkey.api.data.Container;/* * User: brittp * Date: Dec 18, 2008 * Time: 12:48:03 PM */ import java.util.Map; public class AdditiveType extends AbstractStudyCachable<AdditiveType> { private long _rowId; // serial NOT NULL, private Container _container; // entityid NOT NULL, private String _ldmsAdditiveCode; // character varying(5), private String _labwareAdditiveCode; // character varying(5), private String _additive; // character varying(100), private int _externalId; // integer NOT NULL default 0 public AdditiveType(Container container, Map<String, Object> map) { super(); _rowId = (int) map.get(AdditiveTypeDomainKind.ROWID); _container = container; _ldmsAdditiveCode = (String) map.get(AdditiveTypeDomainKind.LDMSADDITIVECODE); _labwareAdditiveCode = (String) map.get(AdditiveTypeDomainKind.LABWAREADDITIVECODE); _additive = (String) map.get(AdditiveTypeDomainKind.ADDITIVE); _externalId = (int) map.get(AdditiveTypeDomainKind.EXTERNALID); } public Object getPrimaryKey() { return _rowId; } public long getRowId() { return _rowId; } public void setRowId(long rowId) { _rowId = rowId; } public int getExternalId() { return _externalId; } public void setExternalId(int externalId) { _externalId = externalId; } public Container getContainer() { return _container; } public void setContainer(Container container) { _container = container; } public String getLdmsAdditiveCode() { return _ldmsAdditiveCode; } public void setLdmsAdditiveCode(String ldmsAdditiveCode) { _ldmsAdditiveCode = ldmsAdditiveCode; } public String getLabwareAdditiveCode() { return _labwareAdditiveCode; } public void setLabwareAdditiveCode(String labwareAdditiveCode) { _labwareAdditiveCode = labwareAdditiveCode; } public String getAdditive() { return _additive; } public void setAdditive(String additive) { _additive = additive; } }
[ "klum@labkey.com" ]
klum@labkey.com
546e212ebf12ba1a205ffe7dbc2d26b5a77c9d4e
f222dbc0c70f2372179c01ca9e6f7310ab624d63
/store/src/java/com/zimbra/cs/service/admin/AutoProvAccount.java
cfd7f78f063d3477a60ff17ee708c64e6cafe91d
[]
no_license
Prashantsurana/zm-mailbox
916480997851f55d4b2de1bc8034c2187ed34dda
2fb9a0de108df9c2cd530fe3cb2da678328b819d
refs/heads/develop
2021-01-23T01:07:59.215154
2017-05-26T09:18:30
2017-05-26T10:36:04
85,877,552
1
0
null
2017-03-22T21:23:04
2017-03-22T21:23:04
null
UTF-8
Java
false
false
3,187
java
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Server * Copyright (C) 2011, 2012, 2013, 2014, 2015, 2016 Synacor, Inc. * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software Foundation, * version 2 of the License. * * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU General Public License for more details. * You should have received a copy of the GNU General Public License along with this program. * If not, see <https://www.gnu.org/licenses/>. * ***** END LICENSE BLOCK ***** */ package com.zimbra.cs.service.admin; import java.util.List; import java.util.Map; import com.zimbra.common.account.Key.DomainBy; import com.zimbra.common.service.ServiceException; import com.zimbra.common.soap.AdminConstants; import com.zimbra.common.soap.Element; import com.zimbra.cs.account.Account; import com.zimbra.cs.account.AccountServiceException; import com.zimbra.cs.account.Domain; import com.zimbra.cs.account.Provisioning; import com.zimbra.cs.account.accesscontrol.AdminRight; import com.zimbra.cs.account.accesscontrol.Rights.Admin; import com.zimbra.soap.JaxbUtil; import com.zimbra.soap.ZimbraSoapContext; import com.zimbra.soap.admin.message.AutoProvAccountRequest; import com.zimbra.soap.type.AutoProvPrincipalBy; public class AutoProvAccount extends AdminDocumentHandler { /** * @return true - which means accept responsibility for measures to prevent account harvesting by delegate admins */ @Override public boolean defendsAgainstDelegateAdminAccountHarvesting() { return true; } @Override public Element handle(Element request, Map<String, Object> context) throws ServiceException { ZimbraSoapContext zsc = getZimbraSoapContext(context); Provisioning prov = Provisioning.getInstance(); AutoProvAccountRequest req = JaxbUtil.elementToJaxb(request); DomainBy domainBy = req.getDomain().getBy().toKeyDomainBy(); String domainKey = req.getDomain().getKey(); Domain domain = prov.get(domainBy, domainKey); if (domain == null) { throw AccountServiceException.NO_SUCH_DOMAIN(domainKey); } checkRight(zsc, context, domain, Admin.R_autoProvisionAccount); AutoProvPrincipalBy by = req.getPrincipal().getBy(); String principal = req.getPrincipal().getKey(); String password = req.getPassword(); Account acct = prov.autoProvAccountManual(domain, by, principal, password); if (acct == null) { throw ServiceException.FAILURE("unable to auto provision account: " + principal, null); } Element response = zsc.createElement(AdminConstants.AUTO_PROV_ACCOUNT_RESPONSE); ToXML.encodeAccount(response, acct); return response; } @Override public void docRights(List<AdminRight> relatedRights, List<String> notes) { relatedRights.add(Admin.R_autoProvisionAccount); } }
[ "shriram.vishwanathan@synacor.com" ]
shriram.vishwanathan@synacor.com
9c2d95751e6005efe9c17f5269c5a6ea3f31aa1a
96f7f6322c3e3a5f009dad9bce1e231b5a57a5e8
/LearnJavaMaster/src/PackOCA01JavaBasics/StudyClass46Interface/labs/Quadrado.java
738cc45210b9155442bf28d9c7d01fbb31ea6017
[]
no_license
weder96/javaaula21
09cb63a2e6f3fe7ac34f166315ae3024113a4dd3
8f4245a922eea74747644ad2f4a0f2b3396c319e
refs/heads/main
2023-08-23T10:47:43.216438
2021-10-27T21:46:45
2021-10-27T21:46:45
421,982,565
3
0
null
null
null
null
UTF-8
Java
false
false
472
java
package PackOCA01JavaBasics.StudyClass46Interface.labs; public class Quadrado extends Figura2D { private int lado; /** * @return the lado */ public int getLado() { return lado; } /** * @param lado the lado to set */ public void setLado(int lado) { this.lado = lado; } @Override public double calcularArea() { return lado * lado; //return Math.pow(lado, 2); } }
[ "weder96@gmail.com" ]
weder96@gmail.com
e3fcb55cd7c8e484d227088e30718a7acb163d09
c54712e32be782df2447773ae130be4275a31cb1
/subprojects/gradle-core/src/test/groovy/org/gradle/api/internal/file/archive/TarFileTreeTest.java
db5d8e4f885c6a56b910e750eaa085660680894f
[]
no_license
jmurph/gradle
f4b0a8441ec4127f803eb41444eaf63e1198a9cf
c6fe22a2fe250dc887520296f2295f7d85a3978a
refs/heads/master
2021-01-16T20:38:32.804411
2009-11-24T19:20:39
2009-12-07T20:10:48
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,170
java
/* * Copyright 2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.api.internal.file.archive; import org.gradle.api.GradleException; import org.gradle.api.InvalidUserDataException; import static org.gradle.api.file.FileVisitorUtil.*; import static org.gradle.api.tasks.AntBuilderAwareUtil.*; import org.gradle.integtests.TestFile; import org.gradle.util.TemporaryFolder; import static org.gradle.util.WrapUtil.*; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; import org.junit.Rule; import org.junit.Test; import static java.util.Collections.*; public class TarFileTreeTest { @Rule public final TemporaryFolder tmpDir = new TemporaryFolder(); private final TestFile tarFile = tmpDir.getDir().file("test.tar"); private final TestFile rootDir = tmpDir.getDir().file("root"); private final TestFile expandDir = tmpDir.getDir().file("tmp"); private final TarFileTree tree = new TarFileTree(tarFile, expandDir); @Test public void displayName() { assertThat(tree.getDisplayName(), equalTo("TAR '" + tarFile + "'")); } @Test public void visitsContentsOfTarFile() { rootDir.file("subdir/file1.txt").write("content"); rootDir.file("subdir2/file2.txt").write("content"); rootDir.tarTo(tarFile); assertVisits(tree, toList("subdir/file1.txt", "subdir2/file2.txt"), toList("subdir", "subdir2")); assertSetContainsForAllTypes(tree, toList("subdir/file1.txt", "subdir2/file2.txt")); } @Test public void canStopVisitingFiles() { rootDir.file("subdir/file1.txt").write("content"); rootDir.file("subdir/other/file2.txt").write("content"); rootDir.tarTo(tarFile); assertCanStopVisiting(tree); } @Test public void isEmptyWhenTarFileDoesNotExist() { assertVisits(tree, EMPTY_LIST, EMPTY_LIST); assertSetContainsForAllTypes(tree, EMPTY_LIST); } @Test public void failsWhenTarFileIsADirectory() { tarFile.createDir(); try { tree.getFiles(); fail(); } catch (InvalidUserDataException e) { assertThat(e.getMessage(), equalTo("Cannot expand TAR '" + tarFile + "' as it is not a file.")); } } @Test public void wrapsFailureToUntarFile() { expandDir.write("not a directory"); tarFile.write("not a tar file"); try { tree.getFiles(); fail(); } catch (GradleException e) { assertThat(e.getMessage(), equalTo("Could not expand TAR '" + tarFile + "'.")); } } }
[ "a@rubygrapefruit.net" ]
a@rubygrapefruit.net
bc68e5327a0f127da3007b69dd4c6df86176bd4c
cc933343ec47af7965e6e45475d5d72ce35692de
/foss/opendap2-1.0.0/src/opendap/dap/Server/BTFunctionClause.java
a9fc0771b12565d9bcbe0dd36ed954eaead28bf2
[]
no_license
Unidata/awips2-rpm
82be7e19ef2d684a0ba1f89542636a085729087f
5a72074eb64f9538f93c08e19d75b4aaa1ff2d5e
refs/heads/unidata_18.2.1
2023-07-25T23:23:39.519634
2022-07-08T16:25:29
2022-07-08T16:25:29
34,552,864
0
0
null
2023-07-05T15:59:19
2015-04-25T03:04:28
HTML
UTF-8
Java
false
false
4,769
java
///////////////////////////////////////////////////////////////////////////// // This file is part of the "Java-DAP" project, a Java implementation // of the OPeNDAP Data Access Protocol. // // Copyright (c) 2010, OPeNDAP, Inc. // Copyright (c) 2002,2003 OPeNDAP, Inc. // // Author: James Gallagher <jgallagher@opendap.org> // // All rights reserved. // // Redistribution and use in source and binary forms, // with or without modification, are permitted provided // that the following conditions are met: // // - Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // // - Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // // - Neither the name of the OPeNDAP 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 // HOLDER 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 opendap.dap.Server; import opendap.dap.BaseType; import java.util.Iterator; import java.util.List; /** * Represents a clause which invokes a function that returns a BaseType. * * @author joew * @see ClauseFactory */ public class BTFunctionClause extends AbstractClause implements SubClause { /** * Creates a new BTFunctionClause. * * @param function The function invoked by the clause * @param children A list of SubClauses, to be given as arguments * to the function. If all the arguments are constant, the function * clause will be flagged as constant, and evaluated immediately. * @throws DAP2ServerSideException Thrown if either 1) the function does not * accept the arguments given, or 2) the * clause is constant, and the attempt to evaluate it fails. */ protected BTFunctionClause(BTFunction function, List children) throws DAP2ServerSideException { function.checkArgs(children); this.function = function; this.children = children; this.constant = true; Iterator it = children.iterator(); while (it.hasNext()) { SubClause current = (SubClause) it.next(); current.setParent(this); if (!current.isConstant()) { constant = false; } } value = function.getReturnType(children); if (constant) { evaluate(); } } public Clause getParent() { return parent; } public BaseType getValue() { return value; } public BaseType evaluate() throws DAP2ServerSideException { if (!constant || !defined) { value = function.evaluate(children); defined = true; } return value; } public void setParent(Clause parent) { this.parent = parent; } /** * Returns the server-side function invoked by this clause */ public BTFunction getFunction() { return function; } /** * Prints the original string representation of this clause. * For use in debugging. */ public String toString() { StringBuffer buf = new StringBuffer(); buf.append(function.getName()); buf.append("("); Iterator it = children.iterator(); if (it.hasNext()) { buf.append(it.next().toString()); } while (it.hasNext()) { buf.append(","); buf.append(it.next().toString()); } buf.append(")"); return buf.toString(); } protected Clause parent; protected BTFunction function; protected BaseType value; }
[ "mjames@unidata.ucar.edu" ]
mjames@unidata.ucar.edu
2ff7319024110369bd4c56b775640546a31bd71b
17079fa276050a5a7b5994d7fae541d7d0cfa3b3
/yxw-platform/src/main/java/com/yxw/platform/sdk/alipay/utils/RequestUtil.java
8a304bdd7b2944a2a00252f124f935fb7d4e3357
[]
no_license
zhiji6/yxw
664f6729b6642affb8ff1ee258b915f8d1ccf666
7f75370fcd425cda11faf3d2c54e6119ecc7d9fd
refs/heads/master
2023-08-17T00:12:03.150081
2019-12-04T07:33:45
2019-12-04T07:33:45
null
0
0
null
null
null
null
UTF-8
Java
false
false
948
java
/** * Alipay.com Inc. * Copyright (c) 2004-2014 All Rights Reserved. */ package com.yxw.platform.sdk.alipay.utils; import java.util.HashMap; import java.util.Map; import java.util.Set; import javax.servlet.http.HttpServletRequest; /** * 解析HttpServletRequest参数 * * @author taixu.zqq * @version $Id: RequestUtil.java, v 0.1 2014年7月23日 上午10:48:10 taixu.zqq Exp $ */ public class RequestUtil { /** * 获取所有request请求参数key-value * * @param request * @return */ public static Map<String, String> getRequestParams(HttpServletRequest request){ Map<String, String> params = new HashMap<String, String>(); if(null != request){ Set<String> paramsKey = request.getParameterMap().keySet(); for(String key : paramsKey){ params.put(key, request.getParameter(key)); } } return params; } }
[ "279430985@qq.com" ]
279430985@qq.com
549c2a44a390306407d416218d82b9a851548df0
c4352bde96e74d997be29e31517aa5f1f54e9795
/Java_Basic/Functional Programming - Exercises/src/_3CustomMinFunction.java
f94422cf6799f1d1f907da2842e50bc0389b5ac9
[]
no_license
chmitkov/SoftUni
b0f4ec10bb89a7dc350c063a02a3535ef9e901b4
52fd6f85718e07ff492c67d8166ed5cfaf5a58ff
refs/heads/master
2022-11-29T01:06:51.947775
2019-10-12T12:29:03
2019-10-12T12:29:03
138,323,012
1
0
null
2022-11-24T09:42:25
2018-06-22T16:09:50
Java
UTF-8
Java
false
false
795
java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.Collections; import java.util.function.Function; public class _3CustomMinFunction { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int[] nums = Arrays.stream(br.readLine().split(" ")) .mapToInt(Integer::parseInt) .toArray(); Function<int[], Integer> findSmallerNum = x -> { int min = Integer.MAX_VALUE; for (Integer num : x) { min = num < min ? num : min; } return min; }; System.out.println(findSmallerNum.apply(nums)); } }
[ "ch.mitkov@gmail.com" ]
ch.mitkov@gmail.com
384441e421ee9d144eed5f23551ceed2b6ae46e5
2afdc434064510869b75fe157b82b3440ddbb748
/presto-spi/src/test/java/io/prestosql/spi/statistics/TableStatisticsMetadataTest.java
508145e06c4c5251ace954fabbf825c867a4a7ff
[]
no_license
openlookeng/hetu-core
6dd74c62303f91d70e5eb6043b320054d1b4b550
73989707b733c11c74147d9228a0600e16fe5193
refs/heads/master
2023-09-03T20:27:49.706678
2023-06-26T09:51:37
2023-06-26T09:51:37
276,025,804
553
398
null
2023-09-14T17:07:01
2020-06-30T07:14:20
Java
UTF-8
Java
false
false
2,143
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 io.prestosql.spi.statistics; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; import java.util.Arrays; import java.util.HashSet; import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertTrue; public class TableStatisticsMetadataTest { private TableStatisticsMetadata tableStatisticsMetadataUnderTest; @BeforeMethod public void setUp() throws Exception { tableStatisticsMetadataUnderTest = new TableStatisticsMetadata(new HashSet<>( Arrays.asList(new ColumnStatisticMetadata("columnName", ColumnStatisticType.MIN_VALUE))), new HashSet<>( Arrays.asList(TableStatisticType.ROW_COUNT)), Arrays.asList("value")); } @Test public void testIsEmpty() throws Exception { // Setup // Run the test final boolean result = tableStatisticsMetadataUnderTest.isEmpty(); // Verify the results assertTrue(result); } @Test public void testEmpty() throws Exception { // Run the test final TableStatisticsMetadata result = TableStatisticsMetadata.empty(); assertEquals(new HashSet<>( Arrays.asList(new ColumnStatisticMetadata("columnName", ColumnStatisticType.MIN_VALUE))), result.getColumnStatistics()); assertEquals(new HashSet<>(Arrays.asList(TableStatisticType.ROW_COUNT)), result.getTableStatistics()); assertEquals(Arrays.asList("value"), result.getGroupingColumns()); assertTrue(result.isEmpty()); } }
[ "zhengqijv@workingman.cn" ]
zhengqijv@workingman.cn
b50b3a1dd272e3dd05ec445f20fcd5c5de44e496
4e3c5dc1cfd033b0e7c1bea625f9ee64ae12871a
/com/google/android/gms/location/places/Places.java
0d71034f1ea665c2b61ef5759e5751987cbe57f5
[]
no_license
haphan2014/idle_heroes
ced0f6301b7a618e470ebfa722bef3d4becdb6ba
5bcc66f8e26bf9273a2a8da2913c27a133b7d60a
refs/heads/master
2021-01-20T05:01:54.157508
2017-08-25T14:06:51
2017-08-25T14:06:51
101,409,563
1
4
null
null
null
null
UTF-8
Java
false
false
1,100
java
package com.google.android.gms.location.places; import com.google.android.gms.common.api.Api; import com.google.android.gms.common.api.Api.ClientKey; import com.google.android.gms.common.api.Scope; import com.google.android.gms.location.places.internal.zzc; import com.google.android.gms.location.places.internal.zzd; import com.google.android.gms.location.places.internal.zzd.zza; import com.google.android.gms.location.places.internal.zzi; import com.google.android.gms.location.places.internal.zzj; public class Places { public static final Api<PlacesOptions> GEO_DATA_API = new Api("Places.GEO_DATA_API", new zza(null, null), zzazQ, new Scope[0]); public static final GeoDataApi GeoDataApi = new zzc(); public static final Api<PlacesOptions> PLACE_DETECTION_API = new Api("Places.PLACE_DETECTION_API", new zzj.zza(null, null), zzazR, new Scope[0]); public static final PlaceDetectionApi PlaceDetectionApi = new zzi(); public static final ClientKey<zzd> zzazQ = new ClientKey(); public static final ClientKey<zzj> zzazR = new ClientKey(); private Places() { } }
[ "hien.bui@vietis.com.vn" ]
hien.bui@vietis.com.vn
82383af22d0fc221daa28d074babddea6ab2890c
83d56024094d15f64e07650dd2b606a38d7ec5f1
/sicc_druida/fuentes/java/MaeSubtiClienViewLPStartUpCreate.java
f108daf40e741f52b2f8d6c263c85b5064712ebc
[]
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
1,048
java
/* INDRA/CAR/mmg $Id: MaeSubtiClienViewLPStartUpCreate.java,v 1.1 2009/12/03 18:32:57 pecbazalar Exp $ DESC */ import es.indra.druida.belcorp.MMGDruidaBase; // Definicion de la clase public class MaeSubtiClienViewLPStartUpCreate extends MMGDruidaBase{ public void inicio() throws Exception { //No tiene asociado xml ya que simpelmente redirecciona } public void ejecucion() throws Exception { conectorAction("MaeSubtiClienViewLPStartUp"); conectorActionParametro(PARAMETRO_GENERICO_ACCION, "create"); conectorActionParametro(PARAMETRO_GENERICO_ORIGEN, "menu"); conectorActionParametro("idFuncion", conectorParametro("idFuncion") == null?"": conectorParametro("idFuncion")); conectorActionParametro(PARAMETRO_MENU_FROM_MENU, conectorParametro(PARAMETRO_MENU_FROM_MENU) == null?"": conectorParametro(PARAMETRO_MENU_FROM_MENU)); conectorActionParametro(PARAMETRO_MENU_CDOS_IDIOMA, conectorParametro(PARAMETRO_MENU_CDOS_IDIOMA) == null? "": conectorParametro(PARAMETRO_MENU_CDOS_IDIOMA)); rastreo(); } }
[ "hp.vega@hotmail.com" ]
hp.vega@hotmail.com
c2e61a622851868b34cc0f65e6a3c142e5dc5750
d5f09c7b0e954cd20dd613af600afd91b039c48a
/sources/androidx/core/graphics/drawable/WrappedDrawableState.java
79da2f268f0ba872005bdcdb6d83c02cab7d24db
[]
no_license
t0HiiBwn/CoolapkRelease
af5e00c701bf82c4e90b1033f5c5f9dc8526f4b3
a6a2b03e32cde0e5163016e0078391271a8d33ab
refs/heads/main
2022-07-29T23:28:35.867734
2021-03-26T11:41:18
2021-03-26T11:41:18
345,290,891
5
2
null
null
null
null
UTF-8
Java
false
false
1,734
java
package androidx.core.graphics.drawable; import android.content.res.ColorStateList; import android.content.res.Resources; import android.graphics.PorterDuff; import android.graphics.drawable.Drawable; import android.os.Build; final class WrappedDrawableState extends Drawable.ConstantState { int mChangingConfigurations; Drawable.ConstantState mDrawableState; ColorStateList mTint = null; PorterDuff.Mode mTintMode = WrappedDrawableApi14.DEFAULT_TINT_MODE; WrappedDrawableState(WrappedDrawableState wrappedDrawableState) { if (wrappedDrawableState != null) { this.mChangingConfigurations = wrappedDrawableState.mChangingConfigurations; this.mDrawableState = wrappedDrawableState.mDrawableState; this.mTint = wrappedDrawableState.mTint; this.mTintMode = wrappedDrawableState.mTintMode; } } @Override // android.graphics.drawable.Drawable.ConstantState public Drawable newDrawable() { return newDrawable(null); } @Override // android.graphics.drawable.Drawable.ConstantState public Drawable newDrawable(Resources resources) { if (Build.VERSION.SDK_INT >= 21) { return new WrappedDrawableApi21(this, resources); } return new WrappedDrawableApi14(this, resources); } @Override // android.graphics.drawable.Drawable.ConstantState public int getChangingConfigurations() { int i = this.mChangingConfigurations; Drawable.ConstantState constantState = this.mDrawableState; return i | (constantState != null ? constantState.getChangingConfigurations() : 0); } boolean canConstantState() { return this.mDrawableState != null; } }
[ "test@gmail.com" ]
test@gmail.com
536eb4ae92ecef61e8a772fd79ef252f7145b935
c229ecb847015ccba005afe082352591f86142dc
/workspace/Tomcat-Business/src/smartshift/business/hibernate/dao/ScheduleTemplateVersionDAO.java
8183daf5756e970ee019a0cea00a68252c610543
[]
no_license
fisherevans/SmartShift
8314184a0dfeba3fad8b7f7c8649fe91a08f7024
346f6c099e512985aeb0e1e01a7bca1489ece5b6
refs/heads/master
2020-12-30T10:36:45.787621
2015-08-06T01:07:54
2015-08-06T01:07:54
35,367,462
1
0
null
null
null
null
UTF-8
Java
false
false
1,778
java
package smartshift.business.hibernate.dao; import org.hibernate.Query; import smartshift.business.hibernate.BusinessDAOContext; import smartshift.business.hibernate.model.ScheduleTemplateVersionModel; import smartshift.common.hibernate.DBAction; import smartshift.common.util.log4j.SmartLogger; /** * The data access object for the ShiftModel Object * @author D. Fisher Evans <contact@fisherevans.com> * */ public class ScheduleTemplateVersionDAO extends BaseBusinessDAO<ScheduleTemplateVersionModel> { /** * Logger for this DAO */ private static SmartLogger logger = new SmartLogger(ScheduleTemplateVersionDAO.class); private static Integer maxTemplateID = -1; /** * @param context Base context for this business DAO */ public ScheduleTemplateVersionDAO(BusinessDAOContext context) { super(context, ScheduleTemplateVersionModel.class); } /** gets the next available id. Accounts for those who may have not yet saved a id yet obtained by this method * @return the id to use next */ public Integer getNextTemplateID() { Integer id = null; synchronized(maxTemplateID) { DBAction action = new DBAction(getSession()); try { Query query = prepareNamedQuery(action.session(), ScheduleTemplateVersionModel.GET_MAX_TEMPLATE_ID); Integer dbMaxId = (Integer) query.uniqueResult(); id = Math.max(maxTemplateID, dbMaxId); } catch(Exception e) { action.rolback(); throw e; } action.commit(); maxTemplateID = id + 1; } return id; } @Override protected SmartLogger getLogger() { return logger; } }
[ "contact@fisherevans.com" ]
contact@fisherevans.com
5bad0ad654fd2632a13cff0ba858884e8b41d2a1
6d99a8ebdc99e28504b83889d71df185292767fc
/fin-mapper/src/main/java/com/zw/rule/mapper/pcd/DistrictMapper.java
a70e1e2573c814b2ce93a8b9abf240a196aefc7a
[]
no_license
ttggaa/yxCredit_fin-app
39a1dd2100edec78847cc361e752653c6648e85a
8e6bc25ed09431a6ba5b72738a366a53572a2257
refs/heads/master
2020-04-07T09:30:12.130823
2018-08-26T02:34:24
2018-08-26T02:34:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
400
java
package com.zw.rule.mapper.pcd; import com.zw.rule.mapper.common.BaseMapper; import com.zw.rule.pcd.po.District; import java.util.List; import java.util.Map; /** * Created by shengkf on 2017/6/14. */ public interface DistrictMapper extends BaseMapper<District> { public List<District> getDistrict(Map map) throws Exception; public District getDistrictById(String id) throws Exception; }
[ "hanwannan@126.com" ]
hanwannan@126.com
6b92b6c48442ec4c1af1549a9441fa9ba650dcec
05e5bee54209901d233f4bfa425eb6702970d6ab
/net/minecraft/util/io/netty/handler/codec/http/CookieDecoder.java
56d8084e233a15b522ef36202aa94c41ec5ca4bd
[]
no_license
TheShermanTanker/PaperSpigot-1.7.10
23f51ff301e7eb05ef6a3d6999dd2c62175c270f
ea9d33bcd075e00db27b7f26450f9dc8e6d18262
refs/heads/master
2022-12-24T10:32:09.048106
2020-09-25T15:43:22
2020-09-25T15:43:22
298,614,646
0
1
null
null
null
null
UTF-8
Java
false
false
6,693
java
/* */ package net.minecraft.util.io.netty.handler.codec.http; /* */ /* */ import java.text.ParseException; /* */ import java.util.ArrayList; /* */ import java.util.Collections; /* */ import java.util.List; /* */ import java.util.Set; /* */ import java.util.TreeSet; /* */ import net.minecraft.util.io.netty.util.internal.StringUtil; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public final class CookieDecoder /* */ { /* */ private static final char COMMA = ','; /* */ /* */ public static Set<Cookie> decode(String header) { /* */ int i; /* 50 */ List<String> names = new ArrayList<String>(8); /* 51 */ List<String> values = new ArrayList<String>(8); /* 52 */ extractKeyValuePairs(header, names, values); /* */ /* 54 */ if (names.isEmpty()) { /* 55 */ return Collections.emptySet(); /* */ } /* */ /* */ /* 59 */ int version = 0; /* */ /* */ /* */ /* 63 */ if (((String)names.get(0)).equalsIgnoreCase("Version")) { /* */ try { /* 65 */ version = Integer.parseInt(values.get(0)); /* 66 */ } catch (NumberFormatException e) {} /* */ /* */ /* 69 */ i = 1; /* */ } else { /* 71 */ i = 0; /* */ } /* */ /* 74 */ if (names.size() <= i) /* */ { /* 76 */ return Collections.emptySet(); /* */ } /* */ /* 79 */ Set<Cookie> cookies = new TreeSet<Cookie>(); /* 80 */ for (; i < names.size(); i++) { /* 81 */ String name = names.get(i); /* 82 */ String value = values.get(i); /* 83 */ if (value == null) { /* 84 */ value = ""; /* */ } /* */ /* 87 */ Cookie c = new DefaultCookie(name, value); /* */ /* 89 */ boolean discard = false; /* 90 */ boolean secure = false; /* 91 */ boolean httpOnly = false; /* 92 */ String comment = null; /* 93 */ String commentURL = null; /* 94 */ String domain = null; /* 95 */ String path = null; /* 96 */ long maxAge = Long.MIN_VALUE; /* 97 */ List<Integer> ports = new ArrayList<Integer>(2); /* */ /* 99 */ for (int j = i + 1; j < names.size(); j++, i++) { /* 100 */ name = names.get(j); /* 101 */ value = values.get(j); /* */ /* 103 */ if ("Discard".equalsIgnoreCase(name)) { /* 104 */ discard = true; /* 105 */ } else if ("Secure".equalsIgnoreCase(name)) { /* 106 */ secure = true; /* 107 */ } else if ("HTTPOnly".equalsIgnoreCase(name)) { /* 108 */ httpOnly = true; /* 109 */ } else if ("Comment".equalsIgnoreCase(name)) { /* 110 */ comment = value; /* 111 */ } else if ("CommentURL".equalsIgnoreCase(name)) { /* 112 */ commentURL = value; /* 113 */ } else if ("Domain".equalsIgnoreCase(name)) { /* 114 */ domain = value; /* 115 */ } else if ("Path".equalsIgnoreCase(name)) { /* 116 */ path = value; /* 117 */ } else if ("Expires".equalsIgnoreCase(name)) { /* */ try { /* 119 */ long maxAgeMillis = HttpHeaderDateFormat.get().parse(value).getTime() - System.currentTimeMillis(); /* */ /* */ /* */ /* 123 */ maxAge = maxAgeMillis / 1000L + ((maxAgeMillis % 1000L != 0L) ? 1L : 0L); /* 124 */ } catch (ParseException e) {} /* */ /* */ } /* 127 */ else if ("Max-Age".equalsIgnoreCase(name)) { /* 128 */ maxAge = Integer.parseInt(value); /* 129 */ } else if ("Version".equalsIgnoreCase(name)) { /* 130 */ version = Integer.parseInt(value); /* 131 */ } else if ("Port".equalsIgnoreCase(name)) { /* 132 */ String[] portList = StringUtil.split(value, ','); /* 133 */ for (String s1 : portList) { /* */ try { /* 135 */ ports.add(Integer.valueOf(s1)); /* 136 */ } catch (NumberFormatException e) {} /* */ } /* */ } else { /* */ break; /* */ } /* */ } /* */ /* */ /* */ /* 145 */ c.setVersion(version); /* 146 */ c.setMaxAge(maxAge); /* 147 */ c.setPath(path); /* 148 */ c.setDomain(domain); /* 149 */ c.setSecure(secure); /* 150 */ c.setHttpOnly(httpOnly); /* 151 */ if (version > 0) { /* 152 */ c.setComment(comment); /* */ } /* 154 */ if (version > 1) { /* 155 */ c.setCommentUrl(commentURL); /* 156 */ c.setPorts(ports); /* 157 */ c.setDiscard(discard); /* */ } /* */ /* 160 */ cookies.add(c); /* */ } /* */ /* 163 */ return cookies; /* */ } /* */ /* */ /* */ /* */ private static void extractKeyValuePairs(String header, List<String> names, List<String> values) { /* 169 */ int headerLen = header.length(); /* 170 */ int i = 0; /* */ /* */ /* */ /* 174 */ label63: while (i != headerLen) { /* */ /* */ /* 177 */ switch (header.charAt(i)) { case '\t': case '\n': case '\013': case '\f': case '\r': case ' ': /* */ case ',': /* */ case ';': /* 180 */ i++; /* */ continue; } /* */ /* */ /* */ /* */ /* */ /* */ /* 188 */ label58: while (i != headerLen) { /* */ /* */ /* 191 */ if (header.charAt(i) == '$') { /* 192 */ i++; /* */ /* */ /* */ /* */ continue; /* */ } /* */ /* */ /* */ /* 201 */ if (i == headerLen) { /* 202 */ String name = null; /* 203 */ String value = null; continue label63; /* */ } /* 205 */ int newNameStart = i; /* */ break label58; /* */ } /* */ break; /* */ } /* */ } /* */ } /* Location: D:\Paper-1.7.10\PaperSpigot-1.7.10-R0.1-SNAPSHOT-latest.jar!\net\minecraf\\util\io\netty\handler\codec\http\CookieDecoder.class * Java compiler version: 6 (50.0) * JD-Core Version: 1.1.3 */
[ "tanksherman27@gmail.com" ]
tanksherman27@gmail.com
6c71f678fc55b774a89a4457541e04b7f8727d6d
5788b8a192951e6ea513621d41200e87964521d7
/src/main/java/com/nayanzin/springbootjooq/db/pg_catalog/tables/pojos/PgCollation.java
32344438e96bbc1885ccd6f63293c37796096dd7
[]
no_license
nayanzinA2BDRIVER/spring-boot-jooq
a8b8b4338f697966d2bf04b5487963cc56271a22
554c897b39ed45100f941f07d20d56017044186c
refs/heads/master
2020-04-08T04:52:36.282333
2018-11-25T14:57:30
2018-11-25T14:57:30
159,028,190
0
0
null
null
null
null
UTF-8
Java
false
false
3,724
java
/** * This class is generated by jOOQ */ package com.nayanzin.springbootjooq.db.pg_catalog.tables.pojos; import java.io.Serializable; import javax.annotation.Generated; /** * This class is generated by jOOQ. */ @Generated( value = { "http://www.jooq.org", "jOOQ version:3.8.6" }, comments = "This class is generated by jOOQ" ) @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class PgCollation implements Serializable { private static final long serialVersionUID = 750335000; private String collname; private Long collnamespace; private Long collowner; private String collprovider; private Integer collencoding; private String collcollate; private String collctype; private String collversion; public PgCollation() {} public PgCollation(PgCollation value) { this.collname = value.collname; this.collnamespace = value.collnamespace; this.collowner = value.collowner; this.collprovider = value.collprovider; this.collencoding = value.collencoding; this.collcollate = value.collcollate; this.collctype = value.collctype; this.collversion = value.collversion; } public PgCollation( String collname, Long collnamespace, Long collowner, String collprovider, Integer collencoding, String collcollate, String collctype, String collversion ) { this.collname = collname; this.collnamespace = collnamespace; this.collowner = collowner; this.collprovider = collprovider; this.collencoding = collencoding; this.collcollate = collcollate; this.collctype = collctype; this.collversion = collversion; } public String getCollname() { return this.collname; } public void setCollname(String collname) { this.collname = collname; } public Long getCollnamespace() { return this.collnamespace; } public void setCollnamespace(Long collnamespace) { this.collnamespace = collnamespace; } public Long getCollowner() { return this.collowner; } public void setCollowner(Long collowner) { this.collowner = collowner; } public String getCollprovider() { return this.collprovider; } public void setCollprovider(String collprovider) { this.collprovider = collprovider; } public Integer getCollencoding() { return this.collencoding; } public void setCollencoding(Integer collencoding) { this.collencoding = collencoding; } public String getCollcollate() { return this.collcollate; } public void setCollcollate(String collcollate) { this.collcollate = collcollate; } public String getCollctype() { return this.collctype; } public void setCollctype(String collctype) { this.collctype = collctype; } public String getCollversion() { return this.collversion; } public void setCollversion(String collversion) { this.collversion = collversion; } @Override public String toString() { StringBuilder sb = new StringBuilder("PgCollation ("); sb.append(collname); sb.append(", ").append(collnamespace); sb.append(", ").append(collowner); sb.append(", ").append(collprovider); sb.append(", ").append(collencoding); sb.append(", ").append(collcollate); sb.append(", ").append(collctype); sb.append(", ").append(collversion); sb.append(")"); return sb.toString(); } }
[ "nayanzin.alexander@gmail.com" ]
nayanzin.alexander@gmail.com
9f9d7da52de1b7290a68a640b962f9af3a59c443
5af2c500ae1c52bd8d01aa6d1f361b46afaa51e9
/adminweb/console/branches/20150205/src/main/java/com/tuanche/bean/admin/GmsAddress.java
55e62e7c179f2faa432bb8a3676825f03d7a4d70
[]
no_license
1183618052/tuanche-old
a0464769b52cbd8bd0bc70be12978d917116bfc7
d19773659fdd3796be14cf7849a7a99bf69bed9d
refs/heads/master
2021-03-08T13:40:48.789834
2016-07-16T05:36:25
2016-07-16T05:36:25
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,539
java
package com.tuanche.bean.admin; import java.io.Serializable; import java.util.Date; import com.tuanche.commons.util.StringUtils; public class GmsAddress implements Serializable{ private static final long serialVersionUID = -7969441482460534084L; private Integer id; private Integer gcmId; private String addressNumber; private String addressDesc; //自驾路线 private String addrDesc_t1; //乘车路线 private String addrDesc_t2; //停车区 private String addrDesc_t3; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public Integer getGcmId() { return gcmId; } public void setGcmId(Integer gcmId) { this.gcmId = gcmId; } public String getAddressNumber() { return addressNumber; } public void setAddressNumber(String addressNumber) { this.addressNumber = addressNumber == null ? null : addressNumber.trim(); } public String getAddressDesc() { if(StringUtils.isEmpty(addressDesc)){ addressDesc = addrDesc_t1 +"&"+addrDesc_t2+"&"+addrDesc_t3; } return addressDesc; } public void setAddressDesc(String addressDesc) { this.addressDesc = addressDesc == null ? null : addressDesc.trim(); } public String getAddrDesc_t1() { if(StringUtils.isEmpty(addrDesc_t1) && !StringUtils.isEmpty(addressDesc)){ int indexOf = addressDesc.indexOf("&"); if(indexOf!=-1){ return addressDesc.substring(0, indexOf); } } return addrDesc_t1; } public void setAddrDesc_t1(String addrDesc_t1) { this.addrDesc_t1 = addrDesc_t1; } public String getAddrDesc_t2() { if(StringUtils.isEmpty(addrDesc_t2) && !StringUtils.isEmpty(addressDesc)){ int indexOf = addressDesc.indexOf("&"); int lastIndexOf = addressDesc.lastIndexOf("&"); if(indexOf!=-1 && indexOf != lastIndexOf){ return addressDesc.substring( indexOf+1,lastIndexOf); } } return addrDesc_t2; } public void setAddrDesc_t2(String addrDesc_t2) { this.addrDesc_t2 = addrDesc_t2; } public String getAddrDesc_t3() { if(StringUtils.isEmpty(addrDesc_t3) && !StringUtils.isEmpty(addressDesc)){ int indexOf = addressDesc.indexOf("&"); int lastIndexOf = addressDesc.lastIndexOf("&"); if(indexOf!=-1 && indexOf != lastIndexOf){ return addressDesc.substring(lastIndexOf+1); } } return addrDesc_t3; } public void setAddrDesc_t3(String addrDesc_t3) { this.addrDesc_t3 = addrDesc_t3; } }
[ "404644381@qq.com" ]
404644381@qq.com
3a1b4c5090cf8e92e7190efec28b184a8df62112
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XWIKI-14263-89-8-NSGA_II-LineCoverage:ExceptionType:StackTraceSimilarity/com/xpn/xwiki/web/Utils_ESTest.java
a375fc2c36559ae0d7a6f0f1daf1b80d74655252
[]
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
534
java
/* * This file was automatically generated by EvoSuite * Tue Apr 07 00:28:30 UTC 2020 */ package com.xpn.xwiki.web; 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 Utils_ESTest extends Utils_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
0692261e155abc179882c409307b38641ed3bb37
6831a854ade3b85888b29298270b2371ba2221f1
/api/b2b-controllCenter/src/main/java/com/jdy/b2b/api/vo/hotel/HotelOrScenicDTO.java
715fe0cec1aa7b14650d27d6b2dcc0b917fbd996
[]
no_license
meiwulang/spring-boot-distributed
709787c98c47059dfea36130f09b864970101246
428a3152e260299e09bfe7657290af3384a2f8b7
refs/heads/master
2020-03-18T05:40:31.678087
2018-05-28T08:57:30
2018-05-28T08:57:30
null
0
0
null
null
null
null
UTF-8
Java
false
false
685
java
package com.jdy.b2b.api.vo.hotel; import java.util.ArrayList; import java.util.List; /** * Created by yangcheng on 2017/9/5. */ public class HotelOrScenicDTO { private String parent; private String name; private List children = new ArrayList(); public String getParent() { return parent; } public void setParent(String parent) { this.parent = parent; } public List getChildren() { return children; } public void setChildren(List children) { this.children = children; } public String getName() { return name; } public void setName(String name) { this.name = name; } }
[ "418180062@qq.com" ]
418180062@qq.com
1a03306ba8e1832babf9ecff3a9c19a7ce7230be
e4f25de38052f504f39cf12f27af3693d9fc1fb4
/app/src/main/java/com/zf/weisport/manager/other/GameTimeCount.java
7a57b911c3bf2dc9124750581033215d1f1ee0fc
[]
no_license
githubBanana/iWeiDong
fc1d91f0436f7c5981bcd163112a6b3b840e10d3
bd7c1591be60587569f04ba84e8009dd69504b29
refs/heads/master
2020-07-31T00:15:06.348592
2016-09-28T10:04:34
2016-09-28T10:04:34
67,212,627
0
0
null
null
null
null
UTF-8
Java
false
false
1,820
java
package com.zf.weisport.manager.other; import com.zf.weisport.manager.util.TimeUtil; import com.zf.weisport.manager.util.UnixTimeStamp; import java.util.Timer; import java.util.TimerTask; /** * @version V1.0 <描述当前版本功能> * @author: Xs * @date: 2016-04-20 11:43 * @email Xs.lin@foxmail.com */ public class GameTimeCount { private Timer timer ; private TimerTask task; private TimeCountCallBack mTimeCount; private boolean isCountting = false; private int count = 0; public GameTimeCount( ) {} public void start() { if (!isCountting) { mTimeCount.OnGameStart(TimeUtil.getCurrTime_Hour_Minute_Second_String(),String.valueOf(TimeUtil.getCurrTime())); count = 0; timer = new Timer(); task = new TimerTask() { @Override public void run() { // TODO Auto-generated method stub count++; mTimeCount.OnGameRun(UnixTimeStamp.stampToNormal(count),count); } }; timer.schedule(task, 0, 1000); isCountting = true; } } public void stop(boolean IsNormal) { if (isCountting) { timer.cancel(); task.cancel(); isCountting = false; mTimeCount.OnGameOver(IsNormal,TimeUtil.getCurrTime_Hour_Minute_Second_String(),String.valueOf(count)); } } public void setTimeCountListen(TimeCountCallBack timeCountCallBack) { mTimeCount = timeCountCallBack; } public interface TimeCountCallBack{ void OnGameRun(String run, int second); void OnGameOver(boolean IsNormal, String end_string, String end_second); void OnGameStart(String startTime, String startTimeStamp); } }
[ "784843867@qq.com" ]
784843867@qq.com
1e10e580015ead6eb718b611fdc163974b8e4d5f
c249d574542c49bb3bebcccb9f09492925600e34
/src/main/java/com/github/t1/kubee/boundary/rest/html/SlotListHtmlMessageBodyWriter.java
2f1cfde1878552c9049f29d204848dcb0b85f5eb
[ "Apache-2.0" ]
permissive
t1/kub-ee
da7ce32632bc8bc5a7ba1f954ad74dda6f7ab0f9
bc9eeeb6d9667644fb05ddf4c835c0dccb81f4ef
refs/heads/master
2022-10-14T18:08:04.572709
2022-10-06T05:14:47
2022-10-06T05:14:47
98,654,820
1
0
Apache-2.0
2022-09-02T05:55:15
2017-07-28T13:58:54
Java
UTF-8
Java
false
false
2,640
java
package com.github.t1.kubee.boundary.rest.html; import com.github.t1.kubee.entity.Slot; import com.github.t1.kubee.tools.html.Html; import com.github.t1.kubee.tools.html.Table; import com.github.t1.kubee.tools.html.Table.TableRow; import javax.ws.rs.Produces; import javax.ws.rs.WebApplicationException; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.MultivaluedMap; import javax.ws.rs.ext.MessageBodyWriter; import javax.ws.rs.ext.Provider; import java.io.IOException; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.lang.annotation.Annotation; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.util.List; import static javax.ws.rs.core.MediaType.TEXT_HTML; @Provider @Produces(TEXT_HTML) public class SlotListHtmlMessageBodyWriter implements MessageBodyWriter<List<Slot>> { @Override public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) { return genericType instanceof ParameterizedType && ((ParameterizedType) genericType).getRawType().equals(List.class) && ((ParameterizedType) genericType).getActualTypeArguments()[0].equals(Slot.class); } @Override public long getSize(List<Slot> slots, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) { return -1; } @Override public void writeTo(List<Slot> slots, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, WebApplicationException { @SuppressWarnings("resource") OutputStreamWriter out = new OutputStreamWriter(entityStream); out.write(new SlotsHtml(slots).toString()); out.flush(); } private class SlotsHtml extends Html { private final List<Slot> slots; private Table table; private SlotsHtml(List<Slot> slots) { this.slots = slots; header("Slots"); container().fluid().with(table = new Table()); tableHeader(); this.slots.forEach(this::slotRow); } private void tableHeader() { TableRow row = table.tr(); row.th("Slot"); row.th("http"); row.th("https"); } private void slotRow(Slot slot) { TableRow row = table.tr(); row.th(slot.getName()); row.td(slot.getHttp()); row.td(slot.getHttps()); } } }
[ "snackbox@sinntr.eu" ]
snackbox@sinntr.eu
dc09b3a6094012e3112f1e8aafb5597e5f52e989
db2d24a6bb520c2c6fc4dced10909a65e2b569c1
/3.JavaMultithreading/src/com/javarush/task/task25/task2503/Column.java
f2e8ed73761d5fda58cfa909b38b0bafae5663f2
[]
no_license
DanilBogdanov/JavaRushTasks
274d9112b81a54c2a6d012db5895ea63ba6e7cc1
de3ddbdb4132af9e29568fa5130d9fc89ef3324a
refs/heads/master
2022-10-02T17:30:26.541617
2020-06-09T15:47:23
2020-06-09T15:47:23
177,746,482
0
0
null
null
null
null
UTF-8
Java
false
false
2,907
java
package com.javarush.task.task25.task2503; import java.util.LinkedList; import java.util.List; public enum Column implements Columnable { Customer("Customer"), BankName("Bank Name"), AccountNumber("Account Number"), Amount("Available Amount"); private String columnName; private static int[] realOrder; private Column(String columnName) { this.columnName = columnName; } @Override public String getColumnName() { return columnName; } @Override public boolean isShown() { return realOrder[this.ordinal()] != -1; } @Override public void hide() { int position = realOrder[this.ordinal()]; realOrder[this.ordinal()] = -1; for (int i = 0; i < realOrder.length; i++) { if (realOrder[i] > position) { realOrder[i]--; } } } /** * Задает новый порядок отображения колонок, который хранится в массиве realOrder. * realOrder[индекс в энуме] = порядок отображения; -1, если колонка не отображается. * * @param newOrder новая последовательность колонок, в которой они будут отображаться в таблице * @throws IllegalArgumentException при дубликате колонки */ public static void configureColumns(Column... newOrder) { realOrder = new int[values().length]; for (Column column : values()) { realOrder[column.ordinal()] = -1; boolean isFound = false; for (int i = 0; i < newOrder.length; i++) { if (column == newOrder[i]) { if (isFound) { throw new IllegalArgumentException("Column '" + column.columnName + "' is already configured."); } realOrder[column.ordinal()] = i; isFound = true; } } } } /** * Вычисляет и возвращает список отображаемых колонок в сконфигурированом порядке (см. метод configureColumns) * Используется поле realOrder. * * @return список колонок */ public static List<Column> getVisibleColumns() { List<Column> result = new LinkedList<>(); Column[] array = new Column[realOrder.length]; for (int i = 0; i < realOrder.length; i++) { if (realOrder[i] != -1) { array[realOrder[i]] = Column.values()[i]; } } for (Column column : array) { if (column != null) { result.add(column); } } return result; } }
[ "dangerdanil@gmail.com" ]
dangerdanil@gmail.com
1edb8d7787f4778fdc5f8715323438b2447a397b
6f79e2f4555228fcdeb20e5d68c6f5e6c7b93db1
/nexus/nexus-bootstrap/src/main/java/org/sonatype/nexus/bootstrap/jsw/WrapperListenerSupport.java
c259cdd00f04fb4f54431d007150433b6cc4f2f7
[]
no_license
mcculls/nexus
5321b47cfc0bbcffa13f9b49f65ce031f6dbbaf6
a45c5340718b6c7493f0a4b68399712a5558d2a6
refs/heads/master
2021-01-18T10:26:52.854076
2012-08-27T13:59:01
2012-08-27T13:59:01
1,614,895
0
1
null
null
null
null
UTF-8
Java
false
false
2,306
java
/** * Sonatype Nexus (TM) Open Source Version * Copyright (c) 2007-2012 Sonatype, Inc. * All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions. * * This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0, * which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html. * * Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks * of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the * Eclipse Foundation. All other trademarks are the property of their respective owners. */ package org.sonatype.nexus.bootstrap.jsw; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.tanukisoftware.wrapper.WrapperListener; import java.util.Arrays; /** * Support for {@link WrapperListener} implementations. * * @since 2.1 */ public abstract class WrapperListenerSupport implements WrapperListener { protected final Logger log = LoggerFactory.getLogger(getClass()); @Override public Integer start(final String[] args) { log.info("Starting with arguments: {}", Arrays.asList(args)); try { return doStart(args); } catch (Exception e) { log.error("Failed to start", e); return 1; // exit } } protected abstract Integer doStart(final String[] args) throws Exception; @Override public int stop(final int code) { log.info("Stopping with code: {}", code); try { return doStop(code); } catch (Exception e) { log.error("Failed to stop cleanly", e); return 1; // exit } } protected abstract int doStop(final int code) throws Exception; @Override public void controlEvent(final int code) { log.info("Received control event: {}", code); try { doControlEvent(code); } catch (Exception e) { log.error("Failed to handle control event[{}]", code, e); } } protected abstract void doControlEvent(final int code) throws Exception; }
[ "jason@planet57.com" ]
jason@planet57.com
7d245282787e32d66d7e3d47d55aee5d89d91618
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/2/2_29ca522d803116e9d2af0f81226e03e0dad75bee/SolidConfigure/2_29ca522d803116e9d2af0f81226e03e0dad75bee_SolidConfigure_s.java
49dd27347e1245d8d40e08afb2053165486bc4dd
[]
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
849
java
package org.CMCSToolsSet.Configure; public class SolidConfigure { public final static String PaxosOrderSplitor = "\r\r\n\n"; public final static String BakUpFiller = "BUF"; public final static String NONE = "none"; public final static String OrderHead = "PAXOS_BABY"; public final static String OdrPkgPrefix = "org.CMCSToolsSet.OrdersConstructors."; /** * TODO watcher对PaxosNodes的心跳包handler还没有 * */ public final static String[] HandlerKeys = { "Confirm", "Delete", "DesignateLeader", "DesignateLeaderReceipt", "DesignateWatcher", "DesignateWatcherReceipt", "GetValue", "LeaderAS", "LeaderASK", "OriginOrderExecute", "Refuse", "SetKeyValue", "VersioREQ", "VersionRESP", "VotLeader", "VotLeaderReceipt", "VotWatcher", "VotWatcherReceipt", "WatcherAS", "WatcherASK" }; }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
3df4022610bc0d8df10feb3602dee5fa0f80707a
fea0ec4ec3001c717540d335d1314dfda55ce72e
/assignment_05/src/assignment_05/App.java
4065bf7dbfa56c067c4d3f023d3c52defa88d1c2
[]
no_license
nageshphaniraj81/Seleniumite
40ef903c9c363b9b1406d8f2c42b2186099bad5f
ede6fd30a7b4d28290364770967637b587e95261
refs/heads/master
2021-01-13T05:20:20.359146
2017-03-22T08:09:45
2017-03-22T08:09:45
81,337,938
0
0
null
null
null
null
UTF-8
Java
false
false
879
java
package assignment_05; import ignore.TestingUtils; public class App { /** Given three ints, first, second, third, return true if second is greater than first, and third is greater than second. However, with the exception that if the parameter "itsOk" is true, second does not need to be greater than first but still better be less than third. <br> <br> * <b>EXPECTATIONS:</b><br> isOrdered(1, 2, 4, false) <b>---></b> true <br> isOrdered(1, 2, 1, false) <b>---></b> false <br> isOrdered(1, 1, 2, true) <b>---></b> true <br> */ public static boolean isOrdered(int first, int second, int third, boolean itsOk) { return (!itsOk)? (second > first && third > second): (third > second) ; } //----------------------STARTING POINT OF PROGRAM. IGNORE BELOW --------------------// public static void main(String args[]){ TestingUtils.runTests(); } }
[ "nageshphaniraj81@gmail.com" ]
nageshphaniraj81@gmail.com
bcf92d449587b4958235a2f260a5b0aed7edfb69
efe2c44b9dba9ca54f2857eecd307036996ac259
/gongo-server-rest/src/main/java/com/epam/vpase/gongo/message/Exceptions.java
606a36a5bbc9f7d87b1f6e36dd2b128d1658f180
[]
no_license
verhas/gongoshoppomatic
f187d3773d0fb2d4b876048f6b2fbc02924bf77e
653825bc0ba8428dfa7022f51883fe703fda83a2
refs/heads/main
2022-12-25T17:54:08.430388
2020-06-12T08:45:04
2020-06-12T08:45:04
271,207,206
2
0
null
2022-12-14T20:45:36
2020-06-10T07:20:23
Java
UTF-8
Java
false
false
1,169
java
package com.epam.vpase.gongo.message; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; public class Exceptions { @ResponseStatus(code = HttpStatus.FORBIDDEN, reason = "Only USD is allowed as currency") public static class Currency extends RuntimeException { } @ResponseStatus(code = HttpStatus.FORBIDDEN, reason = "Auction time is not appropriate") public static class BadTime extends RuntimeException { public BadTime(String message) { super(message); } } @ResponseStatus(code = HttpStatus.FORBIDDEN, reason = "Bid amount is not high enough") public static class AmountIsLow extends RuntimeException { } @ResponseStatus(code = HttpStatus.FORBIDDEN, reason = "Product id is invalid") public static class Product extends RuntimeException { public Product(String id) { super(id); } } @ResponseStatus(code = HttpStatus.FORBIDDEN, reason = "Auction id is invalid") public static class Auction extends RuntimeException { public Auction(String id) { super(id); } } }
[ "peter@verhas.com" ]
peter@verhas.com
4215dab9cb8d3f758f25556689d064c743978ff5
69ed18f94b2c1caf9742d983f5daf28f40614ca2
/SpringboardLtsBackend/src/com/bomwebportal/lts/service/order/CallPlanLtsServiceImpl.java
01656527a646d7884134a6572c4078a24f6cb78a
[]
no_license
RodexterMalinao/springBoard
d1b4f9d2f7e76f63e2690f414863096e3e271369
aa4bf03395b12d923d28767e1561049c45ee3261
refs/heads/master
2020-09-03T07:21:15.415737
2019-12-16T07:12:22
2019-12-16T07:12:22
219,409,720
0
1
null
2019-12-16T07:12:23
2019-11-04T03:28:03
Java
UTF-8
Java
false
false
1,924
java
package com.bomwebportal.lts.service.order; import org.apache.commons.lang.exception.ExceptionUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.bomwebportal.exception.AppRuntimeException; import com.bomwebportal.exception.DAOException; import com.bomwebportal.lts.dao.order.CallPlanLtsDAO; import com.bomwebportal.lts.dto.profile.IddCallPlanProfileLtsDTO; public class CallPlanLtsServiceImpl implements CallPlanLtsService { protected final Log logger = LogFactory.getLog(getClass()); private CallPlanLtsDAO callPlanLtsDao; public String[] getCallPlanCd (String itemId) { try { return this.callPlanLtsDao.getCallPlanCd(itemId); } catch (DAOException e) { logger.error(ExceptionUtils.getFullStackTrace(e)); throw new AppRuntimeException("Fail to getCallPlanCd.", e); } } public IddCallPlanProfileLtsDTO[] mapIddCallPlan(String[] pIddCallPlanCds) { try { return this.callPlanLtsDao.getIddCallPlan(pIddCallPlanCds); } catch (DAOException e) { logger.error(ExceptionUtils.getFullStackTrace(e)); throw new AppRuntimeException("Fail to map IDD call plan.", e); } } public String getCallPlanType (String callPlanCd) { try { return this.callPlanLtsDao.getCallPlanType(callPlanCd); } catch (DAOException e) { logger.error(ExceptionUtils.getFullStackTrace(e)); throw new AppRuntimeException("Fail to getCallPlanType.", e); } } public String getCallPlanContractPeriod(String callPlanCd) { try { return this.callPlanLtsDao.getCallPlanContractPeriod(callPlanCd); } catch (DAOException e) { logger.error(ExceptionUtils.getFullStackTrace(e)); throw new AppRuntimeException("Fail to getCallPlanContractPeriod.", e); } } public CallPlanLtsDAO getCallPlanLtsDao() { return callPlanLtsDao; } public void setCallPlanLtsDao(CallPlanLtsDAO callPlanLtsDao) { this.callPlanLtsDao = callPlanLtsDao; } }
[ "acer_08_06@yahoo.com" ]
acer_08_06@yahoo.com
ae5a4ff7938bf1d5ebf0c1feee01ea4e65d661fa
3eac80233b8a6c5937df89bc35d052275f3aafa3
/iam-login-service/src/main/java/it/infn/mw/iam/audit/events/account/x509/X509CertificateAddedEvent.java
2e50295b67053e732a56957b28cfe8dacfb88114
[ "Apache-2.0" ]
permissive
willfurnell/iam
a5357714d7d40b886747f5a69f8264cbb93f96bf
7e6a37e154d12d4135ecec23538157a76ed6c1d7
refs/heads/master
2022-12-05T07:15:21.507352
2020-06-22T08:41:07
2020-06-22T08:41:07
270,977,835
0
0
NOASSERTION
2020-08-26T15:43:49
2020-06-09T10:57:31
Java
UTF-8
Java
false
false
1,262
java
/** * Copyright (c) Istituto Nazionale di Fisica Nucleare (INFN). 2016-2019 * * 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 it.infn.mw.iam.audit.events.account.x509; import static it.infn.mw.iam.api.scim.updater.UpdaterType.ACCOUNT_ADD_X509_CERTIFICATE; import java.util.Collection; import it.infn.mw.iam.persistence.model.IamAccount; import it.infn.mw.iam.persistence.model.IamX509Certificate; public class X509CertificateAddedEvent extends X509CertificateUpdatedEvent { private static final long serialVersionUID = 1L; public X509CertificateAddedEvent(Object source, IamAccount account, Collection<IamX509Certificate> x509certificates) { super(source, account, ACCOUNT_ADD_X509_CERTIFICATE, x509certificates); } }
[ "andrea.ceccanti@gmail.com" ]
andrea.ceccanti@gmail.com
a0138ea848fca2d81310b8a9ce3653ad512c3b1c
718a8498e6da032fcdd976691ad07fb646bd9703
/Server/src/laboratory/UDPServer.java
2782e245d25a27b214d9b3ddcac9ddc812102b33
[]
no_license
Nineodes19/happy-end
716cb8026e5e9d1175ac068fdd866852a97f9494
07ec40c587f5247cd8e59e259c1c9dc14d1c488e
refs/heads/master
2022-07-13T05:53:10.808060
2020-10-24T15:18:36
2020-10-24T15:18:36
217,953,407
0
0
null
2022-06-21T04:03:12
2019-10-28T02:47:47
Java
UTF-8
Java
false
false
2,533
java
package laboratory; import javax.sql.DataSource; import java.io.IOException; import java.lang.management.OperatingSystemMXBean; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.util.Arrays; /** * @program:Agent * @author:Nine_odes * @description: * @create:2020-07-30 21:11 **/ public class UDPServer { //1.如何通过UDP Socket实现接收数据 private static class ReportData{ } //2.暂时存到Map<hostname,Queue<汇报上来的数据>> public static void main(String[] args) { try(DatagramSocket socket = new DatagramSocket(8888)){ //1.准备好一个接收数据的空桶(犹豫数据是字节形式,准备byte[] byte[] buffer = new byte[1024];//太大浪费桶(空间),太小放不下 Arrays.fill(buffer,0,buffer.length,(byte)0x0); //把buffer关掉一个创建处的DatagramPacket(数据报文) DatagramPacket packet = new DatagramPacket(buffer,0,buffer.length); //调用receive进行数据接受,该方法会一直阻塞,直到成功接收到数据 socket.receive(packet); //数据已经被装入我们准备好的同中(buffer) //1.如果我关心数据来自哪个IP,哪个端口,怎么获取 //2.我真正收到了多少数据 //1.对方host信息 String removehostname = packet.getAddress().getHostName(); //对方的port信息 int removeport = packet.getPort(); //3.接受到的数据长度 int length = packet.getLength(); System.out.printf("接收道来自%s:%d的数据,长度是%d%n",removehostname,removeport,length); String message = new String(buffer,0,length,"UTF-8"); //按照事先约定好的协议格式,拆开各个字段 //备注:split方法传入的参数含义其实是正则表达式 //在正则表达式中$有特殊含义,所以需要进行转义操作 //所以,分割字符是\$ //又犹豫,”\“本身就是转义,所以通过“\\" String[] group = message.split("\\$"); //TODO:没有考虑如果收到不符合标准格式的消息怎么办 String hostname = group[0]; long timestamp = Long.parseLong(group[1]); double percent = Double.parseDouble(group[2]); }catch (IOException e){ e.printStackTrace(); } } }
[ "3100863513@qq.com" ]
3100863513@qq.com
7b305fe91f271f882a741a522ee15b059a651edd
51efc4e6807c67caec3204b24e78fa41351e77ef
/SystemApp/chuscamera/app/src/main/src/com/cs/camera/magicfilter/filter/GPUImageContrastFilter.java
762a5dc463db0429748b41ae13b00fa22ea6e01b
[]
no_license
skypep/WorkSpace
88942bf0ff381095dd8b684b20ff40929ddd64d8
8bf9987094a86cfa9321758ed12f75307ff7e093
refs/heads/master
2020-03-29T19:07:13.013950
2018-11-30T10:04:46
2018-11-30T10:04:46
150,248,577
0
0
null
null
null
null
UTF-8
Java
false
false
2,141
java
/* * Copyright (C) 2012 CyberAgent * * 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.cs.camera.magicfilter.filter; import android.opengl.GLES20; /** * Changes the contrast of the image.<br> * <br> * contrast value ranges from 0.0 to 4.0, with 1.0 as the normal level */ public class GPUImageContrastFilter extends GPUImageFilter { public static final String CONTRAST_FRAGMENT_SHADER = "" + "varying highp vec2 textureCoordinate;\n" + " \n" + " uniform sampler2D inputImageTexture;\n" + " uniform lowp float contrast;\n" + " \n" + " void main()\n" + " {\n" + " lowp vec4 textureColor = texture2D(inputImageTexture, textureCoordinate);\n" + " \n" + " gl_FragColor = vec4(((textureColor.rgb - vec3(0.5)) * contrast + vec3(0.5)), textureColor.w);\n" + " }"; private int mContrastLocation; private float mContrast; public GPUImageContrastFilter() { this(1.0f); } public GPUImageContrastFilter(float contrast) { super(NO_FILTER_VERTEX_SHADER, CONTRAST_FRAGMENT_SHADER); mContrast = contrast; } @Override public void onInit() { super.onInit(); mContrastLocation = GLES20.glGetUniformLocation(getProgram(), "contrast"); } @Override public void onInitialized() { super.onInitialized(); setContrast(mContrast); } public void setContrast(final float contrast) { mContrast = contrast; setFloat(mContrastLocation, mContrast); } }
[ "lj@toro-tech.com" ]
lj@toro-tech.com
ba0d320e2dc2362e26f610eb141a829db739218b
e6d716fde932045d076ab18553203e2210c7bc44
/bluesky-pentaho-kettle/engine/src/main/java/org/pentaho/di/trans/steps/ivwloader/IngresVectorwiseLoaderData.java
dc7d00cd577d04d20f0447055fd27bc20bdb2a8d
[]
no_license
BlueCodeBoy/bluesky
d04032e6c0ce87a18bcbc037191ca20d03aa133e
6fc672455b6047979527da9ba8e3fc220d5cee37
refs/heads/master
2020-04-18T10:47:20.434313
2019-01-25T03:30:47
2019-01-25T03:30:47
167,478,568
6
0
null
null
null
null
UTF-8
Java
false
false
2,599
java
/*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2002-2013 by Pentaho : http://www.pentaho.com * ******************************************************************************* * * 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.pentaho.di.trans.steps.ivwloader; import java.io.OutputStream; import java.io.UnsupportedEncodingException; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import org.pentaho.di.core.row.RowMetaInterface; import org.pentaho.di.core.util.StreamLogger; import org.pentaho.di.trans.step.BaseStepData; import org.pentaho.di.trans.step.StepDataInterface; import org.pentaho.di.trans.steps.ivwloader.IngresVectorwiseLoader.FifoOpener; /** * Stores data for the MySQL bulk load step. * * @author Matt * @since 14-apr-2009 */ public class IngresVectorwiseLoaderData extends BaseStepData implements StepDataInterface { public int[] keynrs; // nr of keylookup -value in row... public StreamLogger errorLogger; public StreamLogger outputLogger; public byte[] separator; public byte[] newline; public String schemaTable; public String fifoFilename; public FileChannel fileChannel; public IngresVectorwiseLoader.SqlRunner sqlRunner; public byte[] quote; public Process sqlProcess; public OutputStream sqlOutputStream; public FifoOpener fifoOpener; public boolean isEncoding; public String encoding; public ByteBuffer byteBuffer; public int bufferSize; public byte[] semicolon; public byte[] doubleQuote; public RowMetaInterface bulkRowMeta; /** * Default constructor. */ public IngresVectorwiseLoaderData() { super(); } public byte[] getBytes( String str ) { if ( isEncoding ) { try { return str.getBytes( encoding ); } catch ( UnsupportedEncodingException e ) { throw new RuntimeException( e ); } } else { return str.getBytes(); } } }
[ "pp@gmail.com" ]
pp@gmail.com
75e57aa01e69f745b402abaa10264466cf85b90f
ea4da81a69a300624a46fce9e64904391c37267c
/src/main/java/com/alipay/api/response/AlipayUserTwostageIndirectUseResponse.java
feea1a38612713c673d34cd29b72a152f2c1a974
[ "Apache-2.0" ]
permissive
shiwei1024/alipay-sdk-java-all
741cc3cb8cf757292b657ce05958ff9ad8ecf582
d6a051fd47836c719a756607e6f84fee2b26ecb4
refs/heads/master
2022-12-29T18:46:53.195585
2020-10-09T06:34:30
2020-10-09T06:34:30
null
0
0
null
null
null
null
UTF-8
Java
false
false
636
java
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.user.twostage.indirect.use response. * * @author auto create * @since 1.0, 2020-08-20 11:40:11 */ public class AlipayUserTwostageIndirectUseResponse extends AlipayResponse { private static final long serialVersionUID = 3529393974881739389L; /** * 蚂蚁统一会员ID */ @ApiField("user_id") private String userId; public void setUserId(String userId) { this.userId = userId; } public String getUserId( ) { return this.userId; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
a1d062aca3a46754935f63b9e0882b6f2e6ff4a6
59a5fbb6279729b7189f22de97be137c824c0f2d
/springboot-hello/src/test/java/com/sanver/trials/springboot_hello/SpringbootHelloApplicationTests.java
6e089bcd00d6bdb651e507c11579563daf2b96d8
[]
no_license
adacayi/springboot_hello
fff3b01e1ca04e4a45fe3b2437e02337f0d010b5
84bbcee208106e630d52122b9c02a0198ec1ee14
refs/heads/master
2020-03-22T16:24:52.767147
2018-07-09T12:14:07
2018-07-09T12:14:07
140,325,201
0
0
null
null
null
null
UTF-8
Java
false
false
360
java
package com.sanver.trials.springboot_hello; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @SpringBootTest public class SpringbootHelloApplicationTests { @Test public void contextLoads() { } }
[ "a_sanver@hotmail.com" ]
a_sanver@hotmail.com
448f05661148c511ce09d4e7c81323e98bbc34fc
4835840ba607e8e408b6f115a0d5f623d923e0cb
/src/com/henghao/Garden/test/Test.java
8a963c7bf5a2ac0c673837de493880805da9a328
[]
no_license
un-knower/Garden
91cff646cf0b08c2848bdfd404672f62a29f8344
843ae06c17d1f6f4c2c0c541903bd8c56c9d9956
refs/heads/master
2020-03-17T21:21:10.998686
2017-07-31T10:47:22
2017-07-31T10:47:22
null
0
0
null
null
null
null
UTF-8
Java
false
false
551
java
package com.henghao.Garden.test; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; /** * function 系统测试类 * * date 2017.02.28 * * @author 严彬荣 */ @Controller public class Test { @ResponseBody @RequestMapping(value = "/test", produces = "application/json;charset=utf-8") public String testController(String name) { String welcome = "欢迎使用"; System.out.println(name); return welcome; } }
[ "453420698@qq.com" ]
453420698@qq.com
3f45da49471450deb1f3b72a61a01145e4b295f1
ae5eb1a38b4d22c82dfd67c86db73592094edc4b
/project244/src/test/java/org/gradle/test/performance/largejavamultiproject/project244/p1221/Test24424.java
3c2573e1cacc1acd45a4e7ca2fd142f410106bb8
[]
no_license
big-guy/largeJavaMultiProject
405cc7f55301e1fd87cee5878a165ec5d4a071aa
1cd6a3f9c59e9b13dffa35ad27d911114f253c33
refs/heads/main
2023-03-17T10:59:53.226128
2021-03-04T01:01:39
2021-03-04T01:01:39
344,307,977
0
0
null
null
null
null
UTF-8
Java
false
false
2,182
java
package org.gradle.test.performance.largejavamultiproject.project244.p1221; import org.junit.Test; import static org.junit.Assert.*; public class Test24424 { Production24424 objectUnderTest = new Production24424(); @Test public void testProperty0() { Production24421 value = new Production24421(); objectUnderTest.setProperty0(value); assertEquals(value, objectUnderTest.getProperty0()); } @Test public void testProperty1() { Production24422 value = new Production24422(); objectUnderTest.setProperty1(value); assertEquals(value, objectUnderTest.getProperty1()); } @Test public void testProperty2() { Production24423 value = new Production24423(); objectUnderTest.setProperty2(value); assertEquals(value, objectUnderTest.getProperty2()); } @Test public void testProperty3() { String value = "value"; objectUnderTest.setProperty3(value); assertEquals(value, objectUnderTest.getProperty3()); } @Test public void testProperty4() { String value = "value"; objectUnderTest.setProperty4(value); assertEquals(value, objectUnderTest.getProperty4()); } @Test public void testProperty5() { String value = "value"; objectUnderTest.setProperty5(value); assertEquals(value, objectUnderTest.getProperty5()); } @Test public void testProperty6() { String value = "value"; objectUnderTest.setProperty6(value); assertEquals(value, objectUnderTest.getProperty6()); } @Test public void testProperty7() { String value = "value"; objectUnderTest.setProperty7(value); assertEquals(value, objectUnderTest.getProperty7()); } @Test public void testProperty8() { String value = "value"; objectUnderTest.setProperty8(value); assertEquals(value, objectUnderTest.getProperty8()); } @Test public void testProperty9() { String value = "value"; objectUnderTest.setProperty9(value); assertEquals(value, objectUnderTest.getProperty9()); } }
[ "sterling.greene@gmail.com" ]
sterling.greene@gmail.com
87901a3281dda50a03d8417d35faa5a5e40574b3
a5e8415f696f723a369a50f0f2d3b429c45cca42
/pentaho-notification-bundle/src/main/java/org/pentaho/osgi/notification/api/HasNotificationHistory.java
3c9f1ce7f4aeeda15022c2e5fb1557acb1151ea9
[ "Apache-2.0" ]
permissive
candentira/pentaho-osgi-bundles
3b83f9f8ae0905badef0a40b3d46118a3f2ee668
7a813acaee493ca80d6bbc2e0cc5b06ad0b50322
refs/heads/master
2020-05-25T14:17:14.936556
2016-06-08T09:48:51
2016-06-13T08:54:14
59,995,428
1
0
null
2016-05-30T08:55:06
2016-05-30T08:55:04
null
UTF-8
Java
false
false
1,126
java
/*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2002-2014 by Pentaho : http://www.pentaho.com * ******************************************************************************* * * 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.pentaho.osgi.notification.api; import java.util.List; /** * Created by bryan on 9/22/14. */ public interface HasNotificationHistory { public List<NotificationObject> getPreviousNotificationObjects(); }
[ "brosander@pentaho.com" ]
brosander@pentaho.com
31baad4749eefc91c7f60229131d257c6bac2024
0aadd6dc67960f6f33cd92b569898383c634cd72
/src/test/resources/apache-ofbiz-17.12.04/framework/webapp/src/main/java/org/apache/ofbiz/webapp/website/WebSiteWorker.java
ec6fee1645c86eb9f22dca7b426f9a36a9947706
[ "Apache-2.0", "OFL-1.0", "LicenseRef-scancode-unknown-license-reference", "MIT", "EPL-1.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown" ]
permissive
yuri0x7c1/ofbiz-explorer
94e4ef2518648becf3e218b7079e7b8f3a07ac25
e21819bd95c77b7160a051fa34582a6db6b8b75a
refs/heads/master
2021-10-21T14:30:54.756147
2020-12-08T19:11:36
2020-12-08T19:11:36
91,610,572
1
1
Apache-2.0
2021-04-19T14:53:44
2017-05-17T18:59:32
Java
UTF-8
Java
false
false
2,685
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.ofbiz.webapp.website; import javax.servlet.ServletContext; import javax.servlet.ServletRequest; import org.apache.ofbiz.base.util.Debug; import org.apache.ofbiz.entity.Delegator; import org.apache.ofbiz.entity.GenericEntityException; import org.apache.ofbiz.entity.GenericValue; import org.apache.ofbiz.entity.util.EntityQuery; /** * WebSiteWorker - Worker class for web site related functionality */ public final class WebSiteWorker { public static final String module = WebSiteWorker.class.getName(); private WebSiteWorker() {} public static String getWebSiteId(ServletRequest request) { ServletContext application = ((ServletContext) request.getAttribute("servletContext")); if (application == null) return null; return application.getInitParameter("webSiteId"); } public static GenericValue getWebSite(ServletRequest request) { String webSiteId = getWebSiteId(request); if (webSiteId == null) { return null; } return findWebSite((Delegator) request.getAttribute("delegator"), webSiteId, true); } /** * returns a WebSite-GenericValue * * @param delegator * @param webSiteId * @param useCache * @return */ public static GenericValue findWebSite(Delegator delegator, String webSiteId, boolean useCache) { GenericValue result = null; try { result = EntityQuery.use(delegator).from("WebSite").where("webSiteId", webSiteId).cache(useCache).queryOne(); } catch (GenericEntityException e) { Debug.logError("Error looking up website with id " + webSiteId, module); } return result; } }
[ "yuri0x7c1@gmail.com" ]
yuri0x7c1@gmail.com
736a62c7722c9ef65de56f0885f06d1b3d428925
93047c7f1dbb2f67214c33e93766fe8e88b69e37
/src/com/topo/dao/TopoManagerDao.java
9f2261b042e4762a454faf989195bdbc740799c0
[]
no_license
sunny-guo/MyProject
70cc7ec2695120578b87ddb22e8607a6fabb8e37
85c28fbe97655e6236eaa3d1ffda8943bc8a7434
refs/heads/master
2021-03-12T22:46:16.665607
2015-05-24T14:20:03
2015-05-24T14:20:03
34,899,212
0
0
null
null
null
null
UTF-8
Java
false
false
4,014
java
package com.topo.dao; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.lang.StringUtils; import org.dom4j.Document; import org.dom4j.DocumentException; import org.dom4j.Element; import org.dom4j.io.OutputFormat; import org.dom4j.io.SAXReader; import org.dom4j.io.XMLWriter; /* ** Copyright (c) 2008, 2009, 2010 ** The Regents of the Tsinghua University, PRC. All rights reserved. ** ** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ** 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. ** 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. ** 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: ** This product includes software (iNetBoss) developed by Tsinghua University, PRC and its contributors. ** THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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. * */ /** * 这个类为拓扑综合管理类 * @author 李宪亮 * */ public class TopoManagerDao { /** * 保存xml * @param file xml文件的存储路径 * @param document xml文件体 */ public void saveXml(String file, Document document) { XMLWriter writer = null; try { OutputFormat format = OutputFormat.createPrettyPrint(); format.setEncoding("utf-8"); writer = new XMLWriter(new FileWriter(new File(file)), format); writer.write(document); } catch (IOException e) { e.printStackTrace(); } finally { try { writer.close(); } catch (IOException e) { e.printStackTrace(); } } } /** * 读取xml文件 * @param file xml文件位置 * @return xml */ public Document readXml(String file){ SAXReader reader = new SAXReader(); Document document = null; try { document = reader.read(file); } catch (DocumentException e) { e.printStackTrace(); } return document; } /** * 得到xml文件的数据 * @see * @param file 需要阅读的xml * @param condition 需要的查询条件 * @return */ public List<Map<String, String>> getFileData(String file, String condition){ List<Map<String, String>> list = new ArrayList<Map<String,String>>(); Document document = readXml(file); Element root = document.getRootElement(); List<Element> elements = root.elements(); for (Element e : elements) { if ("devices".equals(e.getName())) { if (StringUtils.isNotEmpty(condition)) { //TODO 以后在后台需要查询时添加查询条件 } else { List<Element> devices = e.elements(); for (Element device : devices) { Map<String, String> attributes = new HashMap<String, String>(); List<Element> as = device.elements(); for (Element attribute : as) { if (attribute.isTextOnly()){ attributes.put(attribute.getName(), attribute.getText()); } } list.add(attributes); } } } } return list; } }
[ "sunny.guo@yunzhihui.com" ]
sunny.guo@yunzhihui.com
63fb49ad1596a27ded75a51c41b2062a98ff2c74
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/java/hazelcast/2016/4/EvictionConfiguration.java
2922a48847a1f00f7e984d8ea68fc8d23b7cf711
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Java
false
false
1,544
java
/* * Copyright (c) 2008-2016, Hazelcast, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.hazelcast.internal.eviction; /** * Interface for configuration information about eviction. */ public interface EvictionConfiguration { /** * Gets the type of eviction strategy. * * @return the type of eviction strategy */ EvictionStrategyType getEvictionStrategyType(); /** * Gets the type of eviction policy. * * @return the type of eviction policy */ EvictionPolicyType getEvictionPolicyType(); // TODO Maybe eviction policy evaluator factory (a string property for full name of implementation class) // can be added for user defined custom implementations. // For example "String getEvictionPolicyImpl()". // TODO Maybe eviction strategy factory (a string property for full name of implementation class) // can be added for user defined custom implementations. // For example "String getEvictionStrategyImpl()". }
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
065d3dea479970bf32dff18a95033614561806cc
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/8/8_1feeae4fa070e51277c34dcb5fe05a2e7a301118/SaveObjects/8_1feeae4fa070e51277c34dcb5fe05a2e7a301118_SaveObjects_s.java
7776cdd847624c80de7bc02bd770525a19036c5b
[]
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
2,259
java
package hci; import java.io.File; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerException; import javax.xml.transform.TransformerFactory; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; import org.w3c.dom.Attr; import org.w3c.dom.Document; import org.w3c.dom.Element; import java.util.ArrayList; import hci.utils.Point; public class SaveObjects { public void buildXML(ArrayList<ArrayList<hci.utils.Point>> objs, ArrayList<String> labels){ int nodeLabel = 0; try { DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = docFactory.newDocumentBuilder(); Document doc = docBuilder.newDocument(); Element rootElement = doc.createElement("imageLabels"); doc.appendChild(rootElement); Attr attr = doc.createAttribute("label"); for (int i = 0; i < objs.size(); i++){ attr.setValue(labels.get(i)); Element objectNodes = doc.createElement("objectNodes"); objectNodes.setAttributeNode(attr); rootElement.appendChild(objectNodes); for (hci.utils.Point point:objs.get(i)){ Element nodePoint = doc.createElement("nodePoint"); Element xPoint = doc.createElement("x"); xPoint.appendChild(doc.createTextNode(Integer.toString(point.getX()))); Element yPoint = doc.createElement("y"); yPoint.appendChild(doc.createTextNode(Integer.toString(point.getY()))); nodePoint.appendChild(xPoint); nodePoint.appendChild(yPoint); objectNodes.appendChild(nodePoint); } } TransformerFactory transformerFactory = TransformerFactory.newInstance(); Transformer transformer = transformerFactory.newTransformer(); DOMSource source = new DOMSource(doc); StreamResult result = new StreamResult(new File("test.xml")); transformer.transform(source, result); System.out.println("file saved"); } catch (ParserConfigurationException pce) { pce.printStackTrace(); } catch (TransformerException tfe) { tfe.printStackTrace(); } } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
04d470500c0a4af9f63822cdca4b5590ce57e6df
721ba6454ad65397a7d16e88072f6d2e7944381b
/src/com/iscreate/plat/system/datasourcectl/.svn/text-base/DataSourceConst.java.svn-base
5b475dfa8a140fdee934881a991c2ed6e6febd41
[]
no_license
tianxiao666/rno-4g
dc8314d13d6835efb5ad554c9be8561a5b0d87c0
4cb02b6ef30d0bd42beed5ff80bde3b2475b7c4d
refs/heads/master
2021-04-03T02:59:56.154677
2018-03-12T09:30:49
2018-03-12T09:30:49
124,864,568
1
0
null
null
null
null
UTF-8
Java
false
false
325
package com.iscreate.plat.system.datasourcectl; public class DataSourceConst { //网优数据库 public static final String rnoDS="rnoDataSource"; //权限验证数据库 public static final String authDs = "authDataSource"; //物理资源数据库 public static final String netResDs = "netResDataSource"; }
[ "chao.xj@hgicreate.com" ]
chao.xj@hgicreate.com
86817ae26fb5ce99f4618d1cdfe6d651e3322700
5d5530e2d361fbf230d434e29e6140c7aa8e219e
/impl/core/src/main/java/be/atbash/ee/security/octopus/authz/permission/role/RolePermissionResolver.java
19129e5311b902737bad67c087e18c692037146b
[ "Apache-2.0" ]
permissive
atbashEE/atbash-octopus
1b2efa004d4b009ede5230be76a414192a1d440a
122cd96f414fbb10a3dc850083b7f48907e6addc
refs/heads/master
2023-01-30T00:41:42.840435
2020-10-08T19:11:55
2020-10-08T19:11:55
113,004,137
4
0
Apache-2.0
2023-01-13T01:54:34
2017-12-04T06:30:28
Java
UTF-8
Java
false
false
1,967
java
/* * Copyright 2014-2018 Rudy De Busscher (https://www.atbash.be) * * 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 be.atbash.ee.security.octopus.authz.permission.role; import be.atbash.ee.security.octopus.ShiroEquivalent; import be.atbash.ee.security.octopus.authz.permission.Permission; import be.atbash.util.PublicAPI; import be.atbash.util.Reviewed; import java.util.Collection; /** * A RolePermissionResolver resolves a String value and converts it into a Collection of * {@link Permission} instances. * <p/> * In some cases a {@link be.atbash.ee.security.octopus.authz.AuthorizationInfoProvider} may only be given a list of roles. * This component allows to resolve the roles into permissions. * <p> * ??An implementation as CDI bean is not required. The the roles supplied to AuthorizationInfoProvider as role and there * is no conversion to permissions.?? */ @ShiroEquivalent(shiroClassNames = {"org.apache.shiro.authz.permission.RolePermissionResolver"}) @PublicAPI @Reviewed public interface RolePermissionResolver { /** * Resolves a Collection of Permissions based on the given String representation. * * @param roleString the String representation of a role name to resolve. * @return a Collection of Permissions based on the given String representation or empty Collection if no mapping to permission is needed. */ Collection<Permission> resolvePermissionsInRole(String roleString); }
[ "rdebusscher@gmail.com" ]
rdebusscher@gmail.com
eeceaa1689d7d0421fac4b3cbdefe7b5e1a78aab
37515a0a63e3e6e62ba5104567201d2f14360f13
/com.fudanmed.platform.core/src/main/java/com/fudanmed/platform/core/device/pm/events/RCDevicePMSpecificationEventsManager.java
7717356acaf9750ca06684535b8dedd59ccb2b81
[]
no_license
rockguo2015/newmed
9d95e161ba7cb9c59b24c4fb0bec2eb328214831
b4818912e5bbc6e0147d47e8ba475c0ac5c80c2e
refs/heads/master
2021-01-10T05:16:25.491087
2015-05-29T10:03:23
2015-05-29T10:03:23
36,384,873
0
0
null
null
null
null
UTF-8
Java
false
false
867
java
package com.fudanmed.platform.core.device.pm.events; import com.fudanmed.platform.core.device.pm.RCDevicePMSpecification; import com.fudanmed.platform.core.device.pm.events.RCDevicePMSpecificationEventsListener; import edu.fudan.mylang.pf.event.EntityEventsManager; import java.util.Collection; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service("com.fudanmed.platform.core.device.pm.events.RCDevicePMSpecificationEventsManager") public class RCDevicePMSpecificationEventsManager extends EntityEventsManager<RCDevicePMSpecification> { @Autowired(required = false) private Collection<RCDevicePMSpecificationEventsListener> listeners = com.google.common.collect.Lists.newArrayList();; protected Collection<RCDevicePMSpecificationEventsListener> getListeners() { return listeners; } }
[ "rock.guo@me.com" ]
rock.guo@me.com
778e8a2f814c221500380de5f4ae8a95015f3b39
c8e934b6f99222a10e067a3fab34f39f10f8ea7e
/androidx/core/text/SpannableStringKt.java
73a36d6c59192e0bea0c7aba1bd9720026fdde63
[]
no_license
ZPERO/Secret-Dungeon-Finder-Tool
19efef8ebe044d48215cdaeaac6384cf44ee35b9
c3c97e320a81b9073dbb5b99f200e99d8f4b26cc
refs/heads/master
2020-12-19T08:54:26.313637
2020-01-22T23:00:08
2020-01-22T23:00:08
235,683,952
0
0
null
null
null
null
UTF-8
Java
false
false
2,597
java
package androidx.core.text; import android.text.Spannable; import android.text.SpannableString; import android.text.Spanned; import kotlin.Metadata; import kotlin.jvm.internal.Intrinsics; import kotlin.ranges.IntRange; @Metadata(bv={1, 0, 3}, d1={"\000(\n\000\n\002\020\002\n\002\030\002\n\002\b\002\n\002\020\b\n\002\b\002\n\002\020\000\n\000\n\002\030\002\n\000\n\002\020\r\n\000\032\r\020\000\032\0020\001*\0020\002H?\b\032%\020\003\032\0020\001*\0020\0022\006\020\004\032\0020\0052\006\020\006\032\0020\0052\006\020\007\032\0020\bH?\n\032\035\020\003\032\0020\001*\0020\0022\006\020\t\032\0020\n2\006\020\007\032\0020\bH?\n\032\r\020\013\032\0020\002*\0020\fH?\b?\006\r"}, d2={"clearSpans", "", "Landroid/text/Spannable;", "set", "start", "", "end", "span", "", "range", "Lkotlin/ranges/IntRange;", "toSpannable", "", "core-ktx_release"}, k=2, mv={1, 1, 15}) public final class SpannableStringKt { public static final void clearSpans(Spannable paramSpannable) { Intrinsics.checkParameterIsNotNull(paramSpannable, "$this$clearSpans"); Object localObject = (Spanned)paramSpannable; int j = ((CharSequence)localObject).length(); int i = 0; localObject = ((Spanned)localObject).getSpans(0, j, Object.class); Intrinsics.checkExpressionValueIsNotNull(localObject, "getSpans(start, end, T::class.java)"); j = localObject.length; while (i < j) { paramSpannable.removeSpan(localObject[i]); i += 1; } } public static final void onActivityResult(Spannable paramSpannable, int paramInt1, int paramInt2, Object paramObject) { Intrinsics.checkParameterIsNotNull(paramSpannable, "$this$set"); Intrinsics.checkParameterIsNotNull(paramObject, "span"); paramSpannable.setSpan(paramObject, paramInt1, paramInt2, 17); } public static final void replace(Spannable paramSpannable, IntRange paramIntRange, Object paramObject) { Intrinsics.checkParameterIsNotNull(paramSpannable, "$this$set"); Intrinsics.checkParameterIsNotNull(paramIntRange, "range"); Intrinsics.checkParameterIsNotNull(paramObject, "span"); paramSpannable.setSpan(paramObject, paramIntRange.getStart().intValue(), paramIntRange.getEndInclusive().intValue(), 17); } public static final Spannable toSpannable(CharSequence paramCharSequence) { Intrinsics.checkParameterIsNotNull(paramCharSequence, "$this$toSpannable"); paramCharSequence = SpannableString.valueOf(paramCharSequence); Intrinsics.checkExpressionValueIsNotNull(paramCharSequence, "SpannableString.valueOf(this)"); return (Spannable)paramCharSequence; } }
[ "el.luisito217@gmail.com" ]
el.luisito217@gmail.com
0d5a083ea6c6e134a0d9d2b41a463836292f8551
eaec9405507007892ff4de42057090d2b724a6a9
/src/java/org/bhavaya/ui/MemoryComponent.java
395dd759911953c2e975b91b2807ea55c92dd368
[ "MIT" ]
permissive
cmzfusion/OpenAdaptorBhavaya
028d9dea5f8ebe6626f911c4792e2dee38cbe584
c1c4b815c0982b3ea9b6a3f075f3edd39eeb2e16
refs/heads/master
2021-01-13T04:44:45.321538
2017-01-13T16:02:25
2017-01-13T16:02:25
78,861,560
0
0
null
null
null
null
UTF-8
Java
false
false
4,755
java
package org.bhavaya.ui; import org.bhavaya.util.MemoryWatchdog; import org.bhavaya.util.NamedExecutors; import javax.swing.*; import java.awt.*; import java.awt.event.MouseEvent; import java.util.concurrent.ScheduledExecutorService; /** * Component to display memory usage as a shaded bar, with text to show used and maximum memory. * The text colour will change to red when a certain threshold is reached (80% of available memory) * then flash when a second threshold is reached (90% of available memory) * User: Jonathan Moore * Date: 17/06/11 * Time: 12:00 */ public class MemoryComponent extends JComponent { private static final int BORDER = 3; private static final int FLASHING_DELAY = 500; private static final int NON_FLASHING_DELAY = 5000; private static final Color TEXT_COLOR_NORMAL = Color.BLACK; private static final Color TEXT_COLOR_WARN = new Color(200, 0, 40); private static final Color SHADED_REGION_COLOR = new Color(150, 170, 200); private long usedMemory = 0; private long usedMemoryMB = 0; private long max = MemoryWatchdog.getInstance().getMaxMemory(); private int maxMB = convertToMB(max); private long flashThreshold = (long) (max * 0.9); private long warnThreshold = (long) (max * 0.8); private Color textColor = TEXT_COLOR_NORMAL; private static ScheduledExecutorService repaintExecutor = NamedExecutors.newSingleThreadScheduledExecutor("MemoryComponentRepaint"); public MemoryComponent() { super(); setPreferredSize(new Dimension(110, 22)); setOpaque(false); new TimedTask(NON_FLASHING_DELAY, repaintExecutor).start(); } @Override public Point getToolTipLocation(MouseEvent event) { //Position it above component as will usually be on the status bar return new Point(event.getX(), -15); } public void setUsedMemory(long usedMemory) { long oldValue = this.usedMemory; this.usedMemory = usedMemory; this.usedMemoryMB = convertToMB(usedMemory); firePropertyChange("usedMemory", oldValue, usedMemory); setToolTipText("Total available memory: "+maxMB+"M, Used: "+usedMemoryMB+"M"); repaint(); } public long getUsedMemory() { return usedMemory; } public void setTextColor(Color textColor) { this.textColor = textColor; } /** * Task that checks and updates the current memory usage */ private class TimedTask extends VariableDelaySwingTask { private boolean flashOn = false; private MemoryWatchdog memoryWatchdog; protected TimedTask(int delay, ScheduledExecutorService executorService) { super(delay, executorService); memoryWatchdog = MemoryWatchdog.getInstance(); } @Override protected void doRunOnEventThread() { long newUsedMemory = memoryWatchdog.getUsedMemory(); if(newUsedMemory >= flashThreshold) { if(usedMemory < flashThreshold) { //going from non-flashing to flashing so change the delay to be quicker setDelay(FLASHING_DELAY); } flashOn = !flashOn; setTextColor(flashOn ? TEXT_COLOR_WARN : TEXT_COLOR_NORMAL); } else { if(usedMemory >= flashThreshold) { //going from flashing to non-flashing so change the delay to be slower setDelay(NON_FLASHING_DELAY); } flashOn = false; setTextColor(newUsedMemory > warnThreshold ? TEXT_COLOR_WARN : TEXT_COLOR_NORMAL); } setUsedMemory(newUsedMemory); } } @Override protected void paintComponent(Graphics g) { super.paintComponent(g); //Draw border g.setColor(Color.GRAY); g.drawRect(BORDER, BORDER, getWidth() - (2 * BORDER), getHeight() - (2 * BORDER)); //Draw shaded region double pct = (double)usedMemory / (double)max; int width = (int)(pct * (getWidth()-(2*BORDER)-2)); g.setColor(SHADED_REGION_COLOR); g.fillRect(BORDER+1, BORDER+1, width, getHeight() - (2*BORDER) - 1); //Draw text String text = usedMemoryMB+"M of "+maxMB+"M"; g.setColor(textColor); FontMetrics fontMetrics = g.getFontMetrics(); int x = ((getWidth() - 2*BORDER - 2 - fontMetrics.stringWidth(text))/2) + BORDER + 1; int y = ((getHeight() - 2*BORDER - 2 - fontMetrics.getHeight())/2) + BORDER + fontMetrics.getHeight() - 1; g.drawString(text, x, y); } private int convertToMB(long bytes) { return Math.round(((float) bytes / (1024 * 1024))); } }
[ "cmzfusion@objectdefinitions.com" ]
cmzfusion@objectdefinitions.com
7cc18e864541d5be803de7a97ef1748a9c2180e0
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
/crash-reproduction-new-fitness/results/MATH-61b-3-1-Single_Objective_GGA-IntegrationSingleObjective-BasicBlockCoverage/org/apache/commons/math/distribution/PoissonDistributionImpl_ESTest_scaffolding.java
365fb6f06f2647576cb15d851fc7b9025b713bd5
[ "MIT", "CC-BY-4.0" ]
permissive
STAMP-project/Botsing-basic-block-coverage-application
6c1095c6be945adc0be2b63bbec44f0014972793
80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da
refs/heads/master
2022-07-28T23:05:55.253779
2022-04-20T13:54:11
2022-04-20T13:54:11
285,771,370
0
0
null
null
null
null
UTF-8
Java
false
false
7,133
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Sat May 16 22:50:47 UTC 2020 */ package org.apache.commons.math.distribution; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class PoissonDistributionImpl_ESTest_scaffolding { @org.junit.Rule public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule(); private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000); @BeforeClass public static void initEvoSuiteFramework() { org.evosuite.runtime.RuntimeSettings.className = "org.apache.commons.math.distribution.PoissonDistributionImpl"; org.evosuite.runtime.GuiSupport.initialize(); org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000; org.evosuite.runtime.RuntimeSettings.mockSystemIn = true; org.evosuite.runtime.Runtime.getInstance().resetRuntime(); } @Before public void initTestCase(){ threadStopper.storeCurrentThreads(); threadStopper.startRecordingTime(); org.evosuite.runtime.GuiSupport.setHeadless(); org.evosuite.runtime.Runtime.getInstance().resetRuntime(); org.evosuite.runtime.agent.InstrumentingAgent.activate(); } @After public void doneWithTestCase(){ threadStopper.killAndJoinClientThreads(); org.evosuite.runtime.agent.InstrumentingAgent.deactivate(); org.evosuite.runtime.GuiSupport.restoreHeadlessMode(); } private static void initializeClasses() { org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(PoissonDistributionImpl_ESTest_scaffolding.class.getClassLoader() , "org.apache.commons.math.random.JDKRandomGenerator", "org.apache.commons.math.exception.NumberIsTooSmallException", "org.apache.commons.math.distribution.ChiSquaredDistribution", "org.apache.commons.math.MathException", "org.apache.commons.math.exception.NonMonotonousSequenceException", "org.apache.commons.math.distribution.ContinuousDistribution", "org.apache.commons.math.distribution.WeibullDistribution", "org.apache.commons.math.util.FastMath", "org.apache.commons.math.random.RandomAdaptorTest$ConstantGenerator", "org.apache.commons.math.util.MathUtils", "org.apache.commons.math.distribution.IntegerDistribution", "org.apache.commons.math.ConvergenceException", "org.apache.commons.math.exception.NotStrictlyPositiveException", "org.apache.commons.math.random.Well19937c", "org.apache.commons.math.distribution.PoissonDistribution", "org.apache.commons.math.random.Well19937a", "org.apache.commons.math.distribution.WeibullDistributionImpl", "org.apache.commons.math.analysis.UnivariateRealFunction", "org.apache.commons.math.distribution.PascalDistribution", "org.apache.commons.math.special.Gamma$1", "org.apache.commons.math.distribution.GammaDistribution", "org.apache.commons.math.util.ContinuedFraction", "org.apache.commons.math.distribution.Distribution", "org.apache.commons.math.random.RandomGenerator", "org.apache.commons.math.exception.MathIllegalArgumentException", "org.apache.commons.math.distribution.FDistributionImpl", "org.apache.commons.math.distribution.NormalDistribution", "org.apache.commons.math.distribution.SaddlePointExpansion", "org.apache.commons.math.distribution.HypergeometricDistributionImpl", "org.apache.commons.math.MathRuntimeException", "org.apache.commons.math.exception.MathIllegalNumberException", "org.apache.commons.math.distribution.BinomialDistribution", "org.apache.commons.math.distribution.ZipfDistributionImpl", "org.apache.commons.math.MathRuntimeException$1", "org.apache.commons.math.MathRuntimeException$2", "org.apache.commons.math.MathRuntimeException$3", "org.apache.commons.math.MathRuntimeException$4", "org.apache.commons.math.MathRuntimeException$5", "org.apache.commons.math.random.AbstractRandomGenerator", "org.apache.commons.math.random.Well44497b", "org.apache.commons.math.MathRuntimeException$6", "org.apache.commons.math.random.Well44497a", "org.apache.commons.math.MathRuntimeException$7", "org.apache.commons.math.distribution.NormalDistributionImpl", "org.apache.commons.math.MathRuntimeException$8", "org.apache.commons.math.MathRuntimeException$10", "org.apache.commons.math.MathRuntimeException$9", "org.apache.commons.math.MathRuntimeException$11", "org.apache.commons.math.distribution.ExponentialDistribution", "org.apache.commons.math.distribution.GammaDistributionImpl", "org.apache.commons.math.distribution.AbstractIntegerDistribution", "org.apache.commons.math.random.RandomData", "org.apache.commons.math.distribution.HasDensity", "org.apache.commons.math.random.MersenneTwister", "org.apache.commons.math.random.AbstractWell", "org.apache.commons.math.distribution.HypergeometricDistribution", "org.apache.commons.math.random.RandomDataImpl", "org.apache.commons.math.distribution.BetaDistributionImpl", "org.apache.commons.math.distribution.PascalDistributionImpl", "org.apache.commons.math.exception.NumberIsTooLargeException", "org.apache.commons.math.distribution.BetaDistribution", "org.apache.commons.math.distribution.CauchyDistributionImpl", "org.apache.commons.math.MaxIterationsExceededException", "org.apache.commons.math.distribution.CauchyDistribution", "org.apache.commons.math.special.Gamma", "org.apache.commons.math.distribution.FDistribution", "org.apache.commons.math.exception.util.Localizable", "org.apache.commons.math.random.Well1024a", "org.apache.commons.math.random.Well512a", "org.apache.commons.math.FunctionEvaluationException", "org.apache.commons.math.distribution.TDistribution", "org.apache.commons.math.distribution.ExponentialDistributionImpl", "org.apache.commons.math.distribution.DiscreteDistribution", "org.apache.commons.math.distribution.BinomialDistributionImpl", "org.apache.commons.math.random.TestRandomGenerator", "org.apache.commons.math.random.BitsStreamGenerator", "org.apache.commons.math.distribution.TDistributionImpl", "org.apache.commons.math.distribution.AbstractContinuousDistribution", "org.apache.commons.math.exception.util.LocalizedFormats", "org.apache.commons.math.distribution.PoissonDistributionImpl", "org.apache.commons.math.distribution.ChiSquaredDistributionImpl", "org.apache.commons.math.random.RandomAdaptor", "org.apache.commons.math.distribution.ZipfDistribution", "org.apache.commons.math.distribution.AbstractDistribution" ); } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
6be907ba8bbf83852ddbc8d9b37a32150274ff09
3f66a56fe98d79d6f1d107e1b3aa085b9d27dcfd
/app/src/main/java/com/mike4christ/sti_mobile/Model/Vehicle/FormSuccessDetail/Transaction.java
ab75a2bc521f50d2082be9c4ed26aecdca72605a
[]
no_license
alumichael/STI_Mobile
c27df58fc73fa83bc5d56681c47685d82f6a895a
fb8e57d99b7ddc53d417199dff26015be5c9dc4c
refs/heads/master
2020-07-21T13:17:29.896234
2020-01-07T14:35:19
2020-01-07T14:35:19
206,876,783
0
1
null
null
null
null
UTF-8
Java
false
false
2,552
java
package com.mike4christ.sti_mobile.Model.Vehicle.FormSuccessDetail; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import java.io.Serializable; public class Transaction implements Serializable { @SerializedName("user_id") @Expose private Integer userId; @SerializedName("amount") @Expose private String amount; @SerializedName("status") @Expose private String status; @SerializedName("reference") @Expose private String reference; @SerializedName("description") @Expose private String description; @SerializedName("mode") @Expose private String mode; @SerializedName("policy_number") @Expose private String policyNumber; @SerializedName("updated_at") @Expose private String updatedAt; @SerializedName("created_at") @Expose private String createdAt; @SerializedName("id") @Expose private Integer id; private final static long serialVersionUID = 3215480271153511228L; public Integer getUserId() { return userId; } public void setUserId(Integer userId) { this.userId = userId; } public String getAmount() { return amount; } public void setAmount(String amount) { this.amount = amount; } public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public String getReference() { return reference; } public void setReference(String reference) { this.reference = reference; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getMode() { return mode; } public void setMode(String mode) { this.mode = mode; } public String getPolicyNumber() { return policyNumber; } public void setPolicyNumber(String policyNumber) { this.policyNumber = policyNumber; } public String getUpdatedAt() { return updatedAt; } public void setUpdatedAt(String updatedAt) { this.updatedAt = updatedAt; } public String getCreatedAt() { return createdAt; } public void setCreatedAt(String createdAt) { this.createdAt = createdAt; } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } }
[ "alumichael9@gmail.com" ]
alumichael9@gmail.com
92f19f6aaf7bcc6988f7c69582973c8b4e799b12
000e9ddd9b77e93ccb8f1e38c1822951bba84fa9
/java/classes3/com/ziroom/ziroomcustomer/minsu/f/aa.java
8f225e1fdbb6ab7dd31a3e50a6a372b2d3fa24d2
[ "Apache-2.0" ]
permissive
Paladin1412/house
2bb7d591990c58bd7e8a9bf933481eb46901b3ed
b9e63db1a4975b614c422fed3b5b33ee57ea23fd
refs/heads/master
2021-09-17T03:37:48.576781
2018-06-27T12:39:38
2018-06-27T12:41:35
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,122
java
package com.ziroom.ziroomcustomer.minsu.f; import android.content.Context; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.preference.PreferenceManager; public class aa { public static void clearPreference(Context paramContext, SharedPreferences paramSharedPreferences) { paramContext = paramSharedPreferences.edit(); paramContext.clear(); paramContext.commit(); } public static boolean getBoolean(Context paramContext, String paramString, boolean paramBoolean) { return PreferenceManager.getDefaultSharedPreferences(paramContext).getBoolean(paramString, paramBoolean); } public static float getFloat(Context paramContext, String paramString, float paramFloat) { return PreferenceManager.getDefaultSharedPreferences(paramContext).getFloat(paramString, paramFloat); } public static int getInt(Context paramContext, String paramString, int paramInt) { return PreferenceManager.getDefaultSharedPreferences(paramContext).getInt(paramString, paramInt); } public static long getLong(Context paramContext, String paramString, long paramLong) { return PreferenceManager.getDefaultSharedPreferences(paramContext).getLong(paramString, paramLong); } public static String getString(Context paramContext, String paramString1, String paramString2) { return PreferenceManager.getDefaultSharedPreferences(paramContext).getString(paramString1, paramString2); } public static boolean hasKey(Context paramContext, String paramString) { return PreferenceManager.getDefaultSharedPreferences(paramContext).contains(paramString); } public static void putBoolean(Context paramContext, String paramString, boolean paramBoolean) { PreferenceManager.getDefaultSharedPreferences(paramContext).edit().putBoolean(paramString, paramBoolean).commit(); } public static void putFloat(Context paramContext, String paramString, float paramFloat) { PreferenceManager.getDefaultSharedPreferences(paramContext).edit().putFloat(paramString, paramFloat).commit(); } public static void putInt(Context paramContext, String paramString, int paramInt) { PreferenceManager.getDefaultSharedPreferences(paramContext).edit().putInt(paramString, paramInt).commit(); } public static void putString(Context paramContext, String paramString1, String paramString2) { PreferenceManager.getDefaultSharedPreferences(paramContext).edit().putString(paramString1, paramString2).commit(); } public static void putputtingLong(Context paramContext, String paramString, long paramLong) { PreferenceManager.getDefaultSharedPreferences(paramContext).edit().putLong(paramString, paramLong).commit(); } public static void removePreference(Context paramContext, String paramString) { PreferenceManager.getDefaultSharedPreferences(paramContext).edit().commit(); } } /* Location: /Users/gaoht/Downloads/zirom/classes3-dex2jar.jar!/com/ziroom/ziroomcustomer/minsu/f/aa.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "ght163988@autonavi.com" ]
ght163988@autonavi.com
1a21aa02177973be785afd35bd3b2e0053414444
575c19e81594666f51cceb55cb1ab094b218f66b
/octopusconsortium/src/main/java/OctopusConsortium/Models/PDS/XRoleClassCredentialedEntityX.java
068e168e4b890060a24a99bec67e116ab2764e85
[ "Apache-2.0" ]
permissive
uk-gov-mirror/111online.ITK-MessagingEngine
62b702653ea716786e2684e3d368898533e77534
011e8cbe0bcb982eedc2204318d94e2bb5d4adb2
refs/heads/master
2023-01-22T17:47:54.631879
2020-12-01T14:18:05
2020-12-01T14:18:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,099
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-257 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2012.09.07 at 10:56:02 AM BST // package OctopusConsortium.Models.PDS; import javax.xml.bind.annotation.XmlEnum; /** * <p>Java class for x_RoleClassCredentialedEntity_X. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * &lt;simpleType name="x_RoleClassCredentialedEntity_X"> * &lt;restriction base="{urn:hl7-org:v3}cs"> * &lt;enumeration value="ASSIGNED"/> * &lt;enumeration value="QUAL"/> * &lt;/restriction> * &lt;/simpleType> * </pre> * */ @XmlEnum public enum XRoleClassCredentialedEntityX { ASSIGNED, QUAL; public String value() { return name(); } public static XRoleClassCredentialedEntityX fromValue(String v) { return valueOf(v); } }
[ "tom.axworthy@nhs.net" ]
tom.axworthy@nhs.net
b7d314c77d32beaa6948a6eb7714658a15590398
18c70f2a4f73a9db9975280a545066c9e4d9898e
/mirror-alert/esdatawrap/src/main/java/com/aspire/cdn/esdatawrap/biz/metricalert/MetricAlert.java
11cb0457f0f00a194a73e616337f23af15a5b3ba
[]
no_license
iu28igvc9o0/cmdb_aspire
1fe5d8607fdacc436b8a733f0ea44446f431dfa8
793eb6344c4468fe4c61c230df51fc44f7d8357b
refs/heads/master
2023-08-11T03:54:45.820508
2021-09-18T01:47:25
2021-09-18T01:47:25
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,177
java
package com.aspire.cdn.esdatawrap.biz.metricalert; import java.time.format.DateTimeFormatter; import java.util.Collections; import java.util.HashMap; import java.util.Map; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.tuple.Pair; import org.springframework.beans.BeanUtils; import com.aspire.cdn.esdatawrap.biz.domain.IEsDocMarshall; import com.aspire.cdn.esdatawrap.util.Md5Util; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; /** * * 项目名称: esdatawrap * <p/> * * 类名: MetricAlert * <p/> * * 类功能描述: 指标告警记录, 对应到ES的 metric_alert索引 <p/> * 注意:<br/> * 1. province_name(资源池) + moni_target_code + item_id 确定同一个监控对象的同一个监控告警 <p> * 2. province_name(资源池) + moni_target_code + item_id + alert_level 唯一确定一条告警 * * <p/> * * @author pengguihua * * @date 2020年6月23日 * * @version V1.0 * <br/> * * <b>Copyright(c)</b> 2020 卓望公司-版权所有 * */ @Data public final class MetricAlert implements IEsDocMarshall { public static final Integer MONI_RESULT_ACTIVE = 1; // 告警 public static final Integer MONI_RESULT_REVOKE = 2; // 消警 public static final Integer HISTORY_FLAG_CURRENT = 0; // 当前告警 public static final Integer HISTORY_FLAG_HISTORY = 1; // 历史告警 public static final DateTimeFormatter TIME_FORMAT = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); public static final Integer ALERT_LEVEL_LOW = 2; public static final Integer ALERT_LEVEL_MIDDLE = 3; public static final Integer ALERT_LEVEL_HIGH = 4; public static final Integer ALERT_LEVEL_SERIOUS = 5; public static final Long NO_SCAN_MARK_TIME = -1L; private String province_name; // 省份, 当成资源池 private String source_identity; // 来源标识: B2BELK, OTTELK, 中兴 , 杭研 , 普天 private String business_source; // 业务源 B2B|OTT private String moni_target_key; // 监控目标对象key, 由业务键生成唯一key, 根据业务决定 private Map<String, Object> moni_target_refer_obj; // 监控目标对象信息, 例如 主机IP 或者 域名,制造商等信息 private String item_key; // 监控项key private Integer alert_level = 2; // 告警级别: 2-低,3-中,4-高,5-重大 private Integer moni_result; // 1: 告警 2: 消警 private Integer history_flag = HISTORY_FLAG_CURRENT; // 历史标记(注意不是区分活动告警、历史告警) 0: 当前活动 1:当前历史 private Long alert_time; // 告警/消警时间 private Long last_alert_time; // 最新告警时间 private String theme; // 告警主题 private String content; // 告警内容 private ItemValueType value_type; private Float value_float; private Float value_integer; private String value_text; private Integer step_count = 1; // 未消除之前的连续告警次数 private Map<String, Object> refer_info; // 其它属性 private Long record_time = System.currentTimeMillis(); // 告警记录入库时间 private Long scan_mark_time = NO_SCAN_MARK_TIME; // 告警的可扫描时间(第三方扫描告警时,通过指定此值,定时获取最新的告警) private Boolean reverse_sync = false; // 是否为从可见的告警反向同步 private Boolean skip_step = false; // 是否跳过告警收敛处理 /** * 功能描述: 告警id生成规则: province_name|item_id|alert_level * <p> * @return */ @JsonProperty("alert_key") public String getAlertKey() { return Md5Util.getMD5String(String.join("|", province_name, moni_target_key, item_key)); } /** * 功能描述: 计算ES存储文档id * <p> * @return */ @JsonIgnore public String generateDocId() { return Md5Util.getMD5String(String.join("|", province_name, moni_target_key, item_key, String.valueOf(alert_level), String.valueOf(record_time))); } @JsonIgnore public Pair<Boolean, String> selfDataCheck() { if (StringUtils.isBlank(province_name) || StringUtils.isBlank(moni_target_key) || StringUtils.isBlank(item_key) || alert_level == null || moni_result == null || alert_time == null || record_time == null || scan_mark_time == null) { return Pair.of(false, "The required fields must be non empty, please check:" + this.toString()); } return Pair.of(true, null); } @JsonIgnore public Map<String, Object> resolveActiveAlertUpdateParams() { Map<String, Object> params = new HashMap<>(); params.put("content", content); params.put("last_alert_time", last_alert_time); params.put("step_count", step_count); params.put("scan_mark_time", scan_mark_time); params.put("value_float", value_float); params.put("value_integer", value_integer); params.put("value_text", value_text); return params; } @JsonIgnore public Map<String, Object> resolveActiveAlertRevokeUpdateParams() { Map<String, Object> params = new HashMap<>(); params.put("history_flag", MetricAlert.HISTORY_FLAG_HISTORY); return Collections.singletonMap("doc", params); } @JsonIgnore public void set2NoScanMarkTime() { scan_mark_time = NO_SCAN_MARK_TIME; } @JsonIgnore public void refreshScanMarkTime() { scan_mark_time = System.currentTimeMillis(); } @JsonIgnore public String getAlertValueString() { if (ItemValueType.VAL_FLOAT == this.value_type) { return String.valueOf(this.value_float); } if (ItemValueType.VAL_INTEGER == this.value_type) { return String.valueOf(this.value_integer); } return this.value_text; } public MetricAlert copy() { MetricAlert copy = new MetricAlert(); BeanUtils.copyProperties(this, copy); return copy; } @Override public String toString() { return String.join("|", province_name, moni_target_key, item_key, String.valueOf(alert_level), String.valueOf(alert_time)); } // 值类型枚举 public static enum ItemValueType { VAL_TEXT, VAL_INTEGER, VAL_FLOAT; } }
[ "jiangxuwen7515@163.com" ]
jiangxuwen7515@163.com
7cf0372368effb7415e4ddca0d9cf2d34d3bdcd3
0af8b92686a58eb0b64e319b22411432aca7a8f3
/single-large-project/src/test/java/org/gradle/test/performancenull_349/Testnull_34875.java
c863e770dcfeaa2b368d2ac050fa1ad898244e3a
[]
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
308
java
package org.gradle.test.performancenull_349; import static org.junit.Assert.*; public class Testnull_34875 { private final Productionnull_34875 production = new Productionnull_34875("value"); @org.junit.Test public void test() { assertEquals(production.getProperty(), "value"); } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
646e56fd97eb250150b266e3cdb4bb91fbf023e8
105a07d53ae58dc8e53a88b402925a16be8b400a
/src/main/java/comparator/CompPlayerPassInts.java
40163764a244f8b0bf0a3d4066312eb7dd23cdaf
[]
no_license
antdroidx/CFC-CareerEdition-v1.4
d1aecbee21c4c038f809cfce49895c48a35db0bc
9562cd89fdf3c3549340c91e2eb0a31b6db443ca
refs/heads/master
2021-12-14T01:08:25.755739
2021-12-02T04:19:33
2021-12-02T04:19:33
234,677,597
2
0
null
null
null
null
UTF-8
Java
false
false
356
java
package comparator; import java.util.Comparator; import positions.PlayerQB; /** * Created by ahngu on 11/13/2017. */ public class CompPlayerPassInts implements Comparator<PlayerQB> { @Override public int compare(PlayerQB a, PlayerQB b) { return a.getPassInt() > b.getPassInt() ? -1 : a.getPassInt() == b.getPassInt() ? 0 : 1; } }
[ "ahnguyen@gmail.com" ]
ahnguyen@gmail.com