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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ecde7365b73f53b19746c7922f1077d4a6e07353 | 62e6a51374722b8d873e08387ceaa9a76aec8c86 | /zdal-test/src/test/java/com/alipay/zdal/test/ut/client/GroovyTest.java | efc92dba1a3f98d4f79a29b8d7870adf25fc7384 | [] | no_license | shuxc/zdal | 4a93d3ced06aee31d8841b709982fb2b222132d8 | 3bed2d4aa3efa5be3d19177a22b5825f98dbc4c4 | refs/heads/master | 2022-07-09T05:04:16.082510 | 2019-08-29T05:56:03 | 2019-08-29T05:56:03 | 205,068,306 | 0 | 0 | null | 2020-07-02T00:25:50 | 2019-08-29T02:58:05 | Java | UTF-8 | Java | false | false | 645 | java | package com.alipay.zdal.test.ut.client;
import groovy.lang.Binding;
import groovy.lang.GroovyShell;
import java.util.List;
import org.junit.Test;
public class GroovyTest {
@Test
public void test001(){
String groovy = "return com.alipay.zdal.test.ut.client.Groovy.cal();";
Binding binding = new Binding();
GroovyShell shell = new GroovyShell(binding);
Object result = shell.evaluate(groovy);
if (result instanceof List) {
List<String> rr = (List<String>) result;
for (String integer : rr) {
System.out.println(integer);
}
}
}
}
| [
"shuxc_dev@163.com"
] | shuxc_dev@163.com |
c35daafcb797eb347ebc68469ac323ed14b5c53f | e68a3d3147d46daad66f44c0b33b5c44d4c0d2a3 | /TestingCapabilityRestApi/src/main/java/se/claremont/taf/restsupport/RestGetRequest.java | d43dd43da42121628b3c4e347968885d4c7b9949 | [
"Apache-2.0"
] | permissive | claremontqualitymanagement/TestAutomationFramework | 742af2edea1b9199673a3efa099f02473dafb256 | 5ecacc5e6d9e9b7046150c1570bd6c53fdd9d3b4 | refs/heads/development | 2022-08-10T18:44:16.528076 | 2020-02-04T12:39:16 | 2020-02-04T12:39:16 | 68,586,699 | 16 | 8 | Apache-2.0 | 2022-05-20T20:51:37 | 2016-09-19T08:46:33 | Java | UTF-8 | Java | false | false | 318 | java | package se.claremont.taf.restsupport;
import se.claremont.taf.core.testcase.TestCase;
/**
* Usage of GET mechanism for REST
*
* Created by jordam on 2016-11-25.
*/
public class RestGetRequest extends RestRequest {
public RestGetRequest(String url, TestCase testCase){
super(url, testCase);
}
}
| [
"Fingal95"
] | Fingal95 |
fcfed7c364184e2b509612f7a3b74bad25c805df | acdfb0f85853021c7789865632098f055afdd62c | /java.packages.metro.projects/shentong/StdWf/src/main/java/com/wonders/index/controller/MetroIndexController.java | 7f1d97cf1f515ea4aa0bec4b0d0453fb8aa83f6c | [] | no_license | zh69183787/wd-StandardFlow | f3229e3b940f59a205f20a5a74e5d19ffe8371fa | bb4f097c28c9701a16f6942d5dd53a384b69a3d7 | refs/heads/master | 2020-05-20T06:22:25.733131 | 2015-06-24T13:20:01 | 2015-06-24T13:20:01 | 37,951,621 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,947 | java | package com.wonders.index.controller;
import java.io.UnsupportedEncodingException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.inject.Inject;
import javax.servlet.ServletRequest;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import com.wonders.flowWork.repository.FlowWorkThreadRepository;
import com.wonders.framework.auth.entity.Account;
import com.wonders.framework.auth.entity.Authority;
import com.wonders.framework.auth.entity.Group;
import com.wonders.framework.auth.entity.Role;
import com.wonders.framework.auth.repository.AccountRepository;
import com.wonders.framework.auth.repository.GroupRepository;
import com.wonders.framework.common.controller.LoginController;
import com.wonders.framework.utils.DateUtil;
@Controller
@RequestMapping("index")
public class MetroIndexController {
private static final Logger LOG = LoggerFactory.getLogger(MetroIndexController.class);
public static final String SEC_CUR_USER ="SEC_CUR_USER";
public static final String SEC_CUR_USER_NAME ="SEC_CUR_USER_NAME";
public static final String SEC_CUR_USER_LOGIN_NAME ="SEC_CUR_USER_LOGIN_NAME";
public static final String SEC_CUR_ACCOUNT_ID ="SEC_CUR_ACCOUNT_ID";
public static final String SEC_CUR_ACCOUNT ="SEC_CUR_ACCOUNT";
public static final String SEC_CUR_DEPT ="SEC_CUR_DEPT";
public static final String SEC_CUR_DEPT_ID ="SEC_CUR_DEPT_ID";
public static final String SEC_CUR_ROLES = "SEC_CUR_ROLES";
public static final String SEC_CUR_ROLES_MAP = "SEC_CUR_ROLES_MAP";
public static final String SEC_CUR_USER_TYPE = "SEC_CUR_USER_TYPE";
public static final String SEC_LIMITS ="SEC_LIMITS"; // 权限限制
public static final String SEC_ADMIN ="SEC_ADMIN"; // 权限限制
@Inject
private FlowWorkThreadRepository flowWorkThreadRepository;
@Inject
private GroupRepository groupRepository;
@Inject
private AccountRepository accountRepository;
@RequestMapping(method = RequestMethod.GET,value="homeIndex")
public @ResponseBody ModelAndView index(HttpSession session) throws Exception{
ModelAndView mv = null;
Long accountId = Long.valueOf(String.valueOf(session.getAttribute(LoginController.SEC_CUR_ACCOUNT_ID)));
try{
mv = new ModelAndView("home");//forward to s_index.jsp
// 统计该用户有多少个 待处理的流程
Long countOfFlow = flowWorkThreadRepository.countByUserIdAndState(accountId, 1);
mv.addObject("countOfFlow", countOfFlow);
mv.addObject("today", DateUtil.getToday());
} catch (Exception e) {
LOG.error("Error when we retrieve data for home page.", e);
throw e;
}finally{
}
return mv;
}
/**
* 单点登录
* @param session
* @return
* @throws Exception
*/
@RequestMapping(method = RequestMethod.GET,value="sso")
public @ResponseBody ModelAndView sso(HttpSession session, HttpServletRequest request) throws Exception{
ModelAndView mv = new ModelAndView("index");
/* if(session.getAttribute(SEC_LIMITS) != null){
return mv;
}
Long accountId = Long.valueOf(getCookieByName(request,"userId"));
//獲取當前帳戶
Account account = accountRepository.findByIdAll(accountId);
//account.
Set<Authority> authorities = account.getAuthorities();
Set<Role> roles = account.getRoles();
Map<String,Boolean> rolesMap = new HashMap<String,Boolean>();
Map<String,Boolean> mapLimits = new HashMap<String,Boolean>();
for(Authority authoritie : authorities){
if(authoritie.getEnabled())
mapLimits.put(authoritie.getCode(), true);
}
for(Role role:roles){
for(Authority authoritie : role.getAuthorities()){
if(authoritie.getEnabled())
mapLimits.put(authoritie.getCode(), true);
}
rolesMap.put(role.getCode(), true);
}
// List<Role> roles2 = roleRepository.findByAccountId(accountId);
//獲取當前帳號部門
Group group = account.getGroup();
session.setAttribute(SEC_CUR_ACCOUNT_ID, accountId);
session.setAttribute(SEC_CUR_ACCOUNT, account);
session.setAttribute(SEC_CUR_USER_LOGIN_NAME, "ST");
session.setAttribute(SEC_CUR_USER_NAME,account.getName());
session.setAttribute(SEC_CUR_DEPT,group);
session.setAttribute(SEC_CUR_DEPT_ID,group.getId());
session.setAttribute(SEC_CUR_ROLES,roles);
session.setAttribute(SEC_CUR_ROLES_MAP,rolesMap);
session.setAttribute(SEC_LIMITS,mapLimits);*/
return mv;
}
private boolean betweenAnd(String start,String end,String comparator){
if(comparator == null || "".equals(comparator))return false;
return comparator.compareTo(start) >= 0 && comparator.compareTo(end) <= 0;
}
private BigDecimal getDecimal(String str){
BigDecimal r = new BigDecimal(0);
if(str!=null && !"".equals(str)){
try {
r = new BigDecimal(str);
} catch (Exception e) {
// TODO Auto-generated catch block
LOG.error("Decimal parse error for string : " + str);
}
}
return r;
}
private BigDecimal getDecimal(BigDecimal decimal){
if(decimal == null){
return new BigDecimal(0);
}
return decimal;
}
@SuppressWarnings({ "unchecked", "rawtypes" })
@RequestMapping(value = "findSubAllOfGroupByCode/{groupCode}", method = RequestMethod.GET)
protected @ResponseBody
List findSubAllOfGroupByCode(@PathVariable String groupCode) {
List all = new ArrayList();
all.addAll(groupRepository.findByParentGroupCod(groupCode));
all.addAll(accountRepository.findHasRoleByGroupCode(groupCode,"BMLD"));
return all;
}
@SuppressWarnings({ "unchecked", "rawtypes" })
@RequestMapping(value = "findAllAccountByRole/{roleCode}", method = RequestMethod.GET)
protected @ResponseBody
List findAllAccountByRole(@PathVariable String roleCode) {
List all = new ArrayList();
all.addAll(accountRepository.findByRoleCode(roleCode));
return all;
}
private static String getCookieByName(HttpServletRequest request, String name) {
String cookieValue=null;
Cookie[] cookies = request.getCookies();
if (null != cookies) {
for (int i = 0; i < cookies.length; i++) {
Cookie cookie = cookies[i];
if(name.equals(cookie.getName())){
try{
cookieValue = java.net.URLDecoder.decode(cookie.getValue(),"utf-8");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
break;
}
}
}
return cookieValue;
}
}
| [
"657603429@qq.com"
] | 657603429@qq.com |
384434eed56644b6b81d2d0286286f6e8f6331b7 | 623edcf7ada83bbedc3fe577b1d3ddaf28209896 | /MainApp/src/main/java/com/demo/entity/ListMenu.java | adb1a610db689f090a043b50900bcc684a045b99 | [] | no_license | CapRobin/AsDemoProject | 742ba96bc00ac80db991b1703a106d33a3b78d30 | 40132956ad675b7de5472df246f884380a3c04df | refs/heads/master | 2020-03-21T04:35:06.406758 | 2018-10-27T08:58:26 | 2018-10-27T09:02:43 | 138,116,186 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 655 | java | package com.demo.entity;
/**
* Copyright © CapRobin
*
* Name:ListMenu
* Describe:
* Date:2018-03-24 16:48:08
* Author: CapRobin@yeah.net
*
*/
public class ListMenu {
private int icon;
private String title;
private String intro;
public int getIcon() {
return icon;
}
public void setIcon(int icon) {
this.icon = icon;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getIntro() {
return intro;
}
public void setIntro(String intro) {
this.intro = intro;
}
}
| [
"CapRobin@yeah.net"
] | CapRobin@yeah.net |
87d88842dbd5448e5a2501175b1129f98d46f02d | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/23/23_23858b61d19e26fd35f309c524ccdf52442db27f/SubSelFile/23_23858b61d19e26fd35f309c524ccdf52442db27f_SubSelFile_t.java | c8e4ac63696c467c2985e1b153c4764f8c8b2456 | [] | 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,417 | java | package net.pms.dlna;
import java.io.IOException;
import java.util.*;
import net.pms.PMS;
import net.pms.configuration.PmsConfiguration;
import net.pms.dlna.virtual.VirtualFolder;
import net.pms.formats.v2.SubtitleType;
import net.pms.util.OpenSubtitle;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class SubSelFile extends VirtualFolder {
private static final Logger LOGGER = LoggerFactory.getLogger(SubSelFile.class);
private DLNAResource orig;
public SubSelFile(DLNAResource r) {
super(r.getDisplayName(), r.getThumbnailURL());
orig = r;
}
@Override
public void discoverChildren() {
Map<String, Object> data;
RealFile rf = null;
try {
if (orig instanceof RealFile) {
rf = (RealFile) orig;
data = OpenSubtitle.findSubs(rf.getFile());
} else {
data = OpenSubtitle.querySubs(orig.getDisplayName());
}
} catch (IOException e) {
return;
}
if (data == null || data.isEmpty()) {
return;
}
List<String> sortedKeys = new ArrayList<>(data.keySet());
Collections.sort(sortedKeys, new SubSort(PMS.getConfiguration()));
for (String key : sortedKeys) {
LOGGER.debug("Add play subtitle child " + key + " rf " + orig);
DLNAMediaSubtitle sub = orig.getMediaSubtitle();
if (sub == null) {
sub = new DLNAMediaSubtitle();
}
String lang = OpenSubtitle.getLang(key);
String name = OpenSubtitle.getName(key);
sub.setType(SubtitleType.SUBRIP);
sub.setId(101);
sub.setLang(lang);
sub.setLiveSub((String) data.get(key), OpenSubtitle.subFile(name + "_" + lang));
DLNAResource nrf = orig.clone();
nrf.setMediaSubtitle(sub);
nrf.setSubsFile(true);
addChild(nrf);
if (rf != null) {
((RealFile) nrf).ignoreThumbHandling();
}
}
}
private static class SubSort implements Comparator<String> {
private List<String> langs;
SubSort(PmsConfiguration configuration) {
langs = Arrays.asList(configuration.getSubtitlesLanguages().split(","));
}
@Override
public int compare(String key1, String key2) {
if (langs == null) {
return 0;
}
Integer index1 = langs.indexOf(OpenSubtitle.getLang(key1));
Integer index2 = langs.indexOf(OpenSubtitle.getLang(key2));
if (index1 == -1) {
index1 = 999;
}
if (index2 == -1) {
index2 = 999;
}
return index1.compareTo(index2);
}
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
8be8e98e6a0ca4176d5d9c72eefce0d10615a660 | d07d023b188e46d5d43133ef22854c9c795c9c84 | /qmx/platform-module-member/.svn/pristine/70/70263c92fe5afd870074fffe7627c54ed06c3b48.svn-base | 8c6f48200d61192d735a4886a14438ce2291c3ed | [] | no_license | qq296326738/MVC | f2a5c6845b3d0b9843a0c8fc7313a28efee1e074 | 80fe892dc079124e6ae6daa5e7319b76df2c2098 | refs/heads/master | 2020-04-11T11:12:56.409708 | 2019-03-06T08:32:39 | 2019-03-06T08:32:39 | 161,741,445 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,105 | package com.qmx.member.mapper;
import com.qmx.base.core.base.IBaseMapper;
import com.qmx.member.model.GdsMember;
import com.qmx.member.query.GdsMemberVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface GdsMemberMapper extends IBaseMapper<GdsMember> {
/**
* 更新会员状态
*/
void updateState();
/**
* 根据openid查询用户
*
* @param openid
* @return
*/
GdsMember findByOpenId(@Param("openid") String openid);
/**
* 前台更新编辑
*
* @param vo
* @return
*/
void updateMemmber(@Param("cm") GdsMemberVO vo);
/**
* 根据手机号和身份证查询是否有会员
*
* @param id 供应商id
* @param vo
* @return
*/
Long selectMobileAndIdcard(@Param("id") Long id, @Param("cm") GdsMemberVO vo);
/**
* 前端登录该手机号查询会员
*
* @param userId
* @param mobile
* @return
*/
GdsMember selectMobile(@Param("supplierId") Long userId, @Param("mobile") String mobile);
/**
* 前端会员更新信息查询身份证号是否有相同
*
* @param vo
* @return
*/
GdsMember selectIdcard(@Param("cm") GdsMemberVO vo);
/**
* 每年定时消除会员积分
*/
void timingUpdate();
/**
* 生成随机会员虚拟卡号
*
* @param id 供应商id
* @param cardNumber 卡号
* @return
*/
Long selectCardNumberCount(@Param("id") Long id, @Param("cardNumber") String cardNumber);
/**
* 查询是否有未同步
*
* @param id
* @return
*/
List<GdsMember> queryMemberIsUpdated(@Param("id") Long id);
/**
* 更新同步状态
*
* @param id
* @param fzId
*/
void updateMemberSynState(@Param("id") Long id, String fzId);
/**
* 根据线下会员id查询会员
*
* @param fzId
* @return
*/
GdsMember findByFzId(@Param("fzId") String fzId);
}
| [
"296326738@qq.com"
] | 296326738@qq.com | |
994bc82e69cf13c286730b8010a1089d3367b7ad | 366b037bd85491ae0c14c38acba039c662561cf2 | /src/main/java/serverless/application/ApplicationWebXml.java | fedff59c90ae0244c0ef12caa6c4a8ba2cece831 | [] | no_license | ludoch/jhipster-serverless-application | 28da385c89c5ff19499e90fee097095b642e293b | 59667cfe0e61d290e0cb4de85a61a2b54ff4edf3 | refs/heads/master | 2020-03-28T16:14:28.782957 | 2018-09-13T17:30:34 | 2018-09-13T17:30:34 | 148,673,441 | 0 | 0 | null | 2018-09-20T16:10:56 | 2018-09-13T17:30:29 | Java | UTF-8 | Java | false | false | 857 | java | package serverless.application;
import serverless.application.config.DefaultProfileUtil;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
/**
* This is a helper Java class that provides an alternative to creating a web.xml.
* This will be invoked only when the application is deployed to a Servlet container like Tomcat, JBoss etc.
*/
public class ApplicationWebXml extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
/**
* set a default to use when no profile is configured.
*/
DefaultProfileUtil.addDefaultProfile(application.application());
return application.sources(JhipsterServerlessApplicationApp.class);
}
}
| [
"jhipster-bot@jhipster.tech"
] | jhipster-bot@jhipster.tech |
210c73724cfcbaaca7b19e0c914e99e4e10a620a | 43f74ea498cb0dae05bf2390b448d16f398a0a2b | /workspace/ncp_base/src/main/java/com/plgrim/ncp/base/repository/dsp/DspCtgryLangRepository.java | 16cd98d4ef14b60a97e46980022acaadfc6e3a34 | [] | no_license | young-hee/pc_mlb | 2bdf5813418c14be2d7e2de78f0f294ed8264dde | 708417eada78eed398e068460bda44adea16cbdf | refs/heads/master | 2022-11-22T00:11:05.335853 | 2020-07-22T08:27:03 | 2020-07-22T09:10:07 | 281,615,442 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,888 | java |
/* Copyright (c) 2015 plgrim, Inc.
* All right reserved.
* http://www.plgrim.com
* This software is the confidential and proprietary information of plgrim
* , Inc. You shall not disclose such Confidential Information and
* shall use it only in accordance with the terms of the license agreement
* you entered into with plgrim.
*
* Revision History
* Author Date Description
* ------------------ -------------- ------------------
* Generator(Generator) 2018-05-23
*/
package com.plgrim.ncp.base.repository.dsp;
import java.sql.SQLException;
import org.springframework.stereotype.Repository;
import com.plgrim.ncp.base.abstracts.AbstractRepository;
import com.plgrim.ncp.base.entities.datasource1.dsp.DspCtgryLang;
/**
* The Class DspCtgryLangRepository.
*/
@Repository
public class DspCtgryLangRepository extends AbstractRepository {
/*
* ---------------------------------------------------------------------
* Instance fields.
* ---------------------------------------------------------------------
*/
/*
* ---------------------------------------------------------------------
* Constructors.
* ---------------------------------------------------------------------
*/
/*
* ---------------------------------------------------------------------
* public & interface method.
* ---------------------------------------------------------------------
*/
/**
* 전시 카테고리 언어 상세 조회.
*
* @param dspCtgryLang the DspCtgryLang
* @return the DspCtgryLang
* @throws SQLException the SQL exception
*/
public DspCtgryLang selectDspCtgryLang(DspCtgryLang dspCtgryLang) {
return getSession1().selectOne("com.plgrim.ncp.base.selectDspCtgryLang", dspCtgryLang);
}
/**
* 전시 카테고리 언어 등록.
*
* @param dspCtgryLang the DspCtgryLang
* @throws SQLException the SQL exception
*/
public void insertDspCtgryLang(DspCtgryLang dspCtgryLang) {
getSession1().insert("com.plgrim.ncp.base.insertDspCtgryLang", dspCtgryLang);
}
/**
* 전시 카테고리 언어 수정.
*
* @param dspCtgryLang the DspCtgryLang
* @throws SQLException the SQL exception
*/
public int updateDspCtgryLang(DspCtgryLang dspCtgryLang) {
return getSession1().update("com.plgrim.ncp.base.updateDspCtgryLang", dspCtgryLang);
}
/**
* 전시 카테고리 언어 삭제.
*
* @param dspCtgryLang the DspCtgryLang
* @return the DspCtgryLang
* @throws SQLException the SQL exception
*/
public int deleteDspCtgryLang(DspCtgryLang dspCtgryLang) {
return getSession1().delete("com.plgrim.ncp.base.deleteDspCtgryLang", dspCtgryLang);
}
/*
* ---------------------------------------------------------------------
* private method.
* ---------------------------------------------------------------------
*/
}
| [
"aksla79@gmail.com"
] | aksla79@gmail.com |
90cb4f23f50b1643bcc2bac64970248fb015398d | b308232b5f9a1acd400fe15b45780e348048fccd | /LIS/src/main/java/com/param/lis/transaction/dto/ParameterResultDto.java | cff1a849cf61b833108b87b4b7436723f1a85f4d | [] | no_license | PravatKumarPradhan/his | 2aae12f730b7d652b9590ef976b12443fc2c2afb | afb2b3df65c0bc1b1864afc1f958ca36a2562e3f | refs/heads/master | 2022-12-22T20:43:44.895342 | 2018-07-31T17:04:26 | 2018-07-31T17:04:26 | 143,041,254 | 1 | 0 | null | 2022-12-16T03:59:53 | 2018-07-31T16:43:36 | HTML | UTF-8 | Java | false | false | 671 | java | package com.param.lis.transaction.dto;
import java.util.Date;
public class ParameterResultDto {
private String result;
private Date resultDateTime;
private Date createdDate;
public String getResult() {
return result;
}
public void setResult(String result) {
this.result = result;
}
public Date getResultDateTime() {
return resultDateTime;
}
public void setResultDateTime(Date resultDateTime) {
this.resultDateTime = resultDateTime;
}
public Date getCreatedDate() {
return createdDate;
}
public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
}
| [
"pkp751989@gmail.com"
] | pkp751989@gmail.com |
99d60d7c6619923f9d8e97e038547449de87e2c8 | ef76c178d6154316c7d8115fecdc1198af676052 | /sfm/src/main/java/org/sfm/utils/conv/time/JavaYearMonthTojuDateConverter.java | e78475efa0245202cee57e963d3c32d3b1881120 | [
"MIT"
] | permissive | raipc/SimpleFlatMapper | 691e86f8fb48490240719f0d6572995a66e097ef | f2b50294886dd520d6e681271b4720dc932dcf50 | refs/heads/master | 2020-12-25T12:17:54.161536 | 2016-09-14T20:36:42 | 2016-09-14T20:36:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 551 | java | package org.sfm.utils.conv.time;
import org.sfm.utils.conv.Converter;
import java.util.Date;
import java.time.YearMonth;
import java.time.ZoneId;
public class JavaYearMonthTojuDateConverter implements Converter<YearMonth, Date> {
private final ZoneId zoneId;
public JavaYearMonthTojuDateConverter(ZoneId zoneId) {
this.zoneId = zoneId;
}
@Override
public Date convert(YearMonth in) throws Exception {
if (in == null) return null;
return Date.from(in.atDay(1).atStartOfDay(zoneId).toInstant());
}
}
| [
"arnaud.roger@gmail.com"
] | arnaud.roger@gmail.com |
10ba3b8f216dfb6328e4a2d6bdbe94271fb15b71 | 17e8438486cb3e3073966ca2c14956d3ba9209ea | /dso/tags/3.6.5/dso-l2/src/main/java/com/tc/objectserver/persistence/db/DatabaseNotOpenException.java | 89369b0f15d236ca307165df511c430b6f71d5fb | [] | no_license | sirinath/Terracotta | fedfc2c4f0f06c990f94b8b6c3b9c93293334345 | 00a7662b9cf530dfdb43f2dd821fa559e998c892 | refs/heads/master | 2021-01-23T05:41:52.414211 | 2015-07-02T15:21:54 | 2015-07-02T15:21:54 | 38,613,711 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 345 | java | /*
* All content copyright (c) 2003-2008 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
*/
package com.tc.objectserver.persistence.db;
public class DatabaseNotOpenException extends TCDatabaseException {
public DatabaseNotOpenException(String message) {
super(message);
}
}
| [
"cruise@7fc7bbf3-cf45-46d4-be06-341739edd864"
] | cruise@7fc7bbf3-cf45-46d4-be06-341739edd864 |
f1059798237e27f497597112b83ef87fa6bcdfce | 789fc45d8d3fd3a61650eda55b1a359ec44612d4 | /o2o-intf/src/main/java/com/ihomefnt/o2o/intf/service/designDemand/DesignDemandToolService.java | 1c15a239e108082c05adaeca4d2a5baa42858e3f | [] | no_license | huayunlei/myboot-o2o | 99020673f5ce72d180088ef0d9171e7b267250da | 73fdca9e39929290f4fc28b9653460cb27f89c19 | refs/heads/master | 2023-01-01T08:57:05.021700 | 2020-10-21T14:58:44 | 2020-10-21T14:58:44 | 306,057,891 | 0 | 2 | null | null | null | null | UTF-8 | Java | false | false | 2,212 | java | package com.ihomefnt.o2o.intf.service.designDemand;
import com.ihomefnt.o2o.intf.domain.designdemand.request.DesignDemandToolQueryRequest;
import com.ihomefnt.o2o.intf.domain.designdemand.request.QueryDesignDemandInfoRequest;
import com.ihomefnt.o2o.intf.domain.designdemand.response.DesignDemandToolOrderListResponse;
import com.ihomefnt.o2o.intf.domain.designdemand.response.QueryDesignDemandInfoResponse;
import com.ihomefnt.o2o.intf.domain.designdemand.response.SimpleDataForBetaAppResponse;
import com.ihomefnt.o2o.intf.domain.personalneed.vo.request.CommitDesignRequest;
import com.ihomefnt.o2o.intf.domain.personalneed.vo.response.PersonalDesignResponse;
import java.util.List;
public interface DesignDemandToolService {
/**
* 订单房产列表
*
* @param userId
* @return
*/
DesignDemandToolOrderListResponse queryUserHouseListForDesignDemandTool(Integer userId);
/**
* 提交记录列表
*
* @param request
* @return
*/
List<PersonalDesignResponse> queryCommentRecord(DesignDemandToolQueryRequest request);
/**
* 根据ID查询设计任务详情
*
* @param request
* @return
*/
QueryDesignDemandInfoResponse queryDesignDemandInfo(QueryDesignDemandInfoRequest request);
/**
* 新增或更新设计任务草稿
*
* @param commitDesignRequest
* @return
*/
String addOrUpdateDesignDraft(CommitDesignRequest commitDesignRequest);
/**
* 发送给用户确认
*
* @param request
* @return
*/
DesignDemandToolQueryRequest sendToUserAffirm(CommitDesignRequest request);
/**
* 用户确认设计需求
*
* @param request
* @return
*/
DesignDemandToolQueryRequest affirmDesignDemand(DesignDemandToolQueryRequest request);
/**
* 小艾确认设计需求
*
* @param request
* @return
*/
DesignDemandToolQueryRequest affirmDesignDemandByXa(DesignDemandToolQueryRequest request);
/**
* 提供给betaApp使用
* @param request
* @return
*/
SimpleDataForBetaAppResponse queryProgramOpAndDesignDemandByOrderId(DesignDemandToolQueryRequest request);
}
| [
"836774171@qq.com"
] | 836774171@qq.com |
079cccf9f96919e7e3c3a5bef23c37e73a893621 | 73458087c9a504dedc5acd84ecd63db5dfcd5ca1 | /src/com/estrongs/android/pop/view/cf.java | 930a5efd49bb63a078fe11d8f0ec8c5629135e37 | [] | no_license | jtap60/com.estr | 99ff2a6dd07b02b41a9cc3c1d28bb6545e68fb27 | 8b70bf2da8b24c7cef5973744e6054ef972fc745 | refs/heads/master | 2020-04-14T02:12:20.424436 | 2018-12-30T10:56:45 | 2018-12-30T10:56:45 | 163,578,360 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 939 | java | package com.estrongs.android.pop.view;
import android.webkit.WebIconDatabase;
import com.estrongs.android.ui.d.i;
import com.estrongs.android.util.bk;
import com.estrongs.android.util.q;
import java.io.File;
import java.util.List;
class cf
implements Runnable
{
cf(FileExplorerActivity paramFileExplorerActivity) {}
public void run()
{
FileExplorerActivity.F(a);
int i = a.au().a();
if (bk.a(FileExplorerActivity.c(a), i))
{
q localq = (q)FileExplorerActivity.c(a).remove(i);
if (localq != null) {
FileExplorerActivity.a(a, localq, true);
}
}
try
{
WebIconDatabase.getInstance().open(a.getDir("icons", 0).getPath());
return;
}
catch (Exception localException)
{
localException.printStackTrace();
}
}
}
/* Location:
* Qualified Name: com.estrongs.android.pop.view.cf
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/ | [
"reverseengineeringer@hackeradmin.com"
] | reverseengineeringer@hackeradmin.com |
ac859931d42f888f3c14c9013130fdbd1f040557 | 09e89ed45bd06e615a1184d24a001975b98c30c2 | /src/test/java/org/red5/server/service/MetaDataInjectionTest.java | 1cd5e4a5bc272ae3ec26367d29a899917de7ae7a | [
"Apache-2.0"
] | permissive | marikyarik/red5-server | c50fdffd0136e55ee3a1ac684040f8f34a0356e1 | 00da63df24ec11f01b979ddf48daea18402b5df0 | refs/heads/master | 2021-10-23T06:28:30.005185 | 2015-01-08T20:47:10 | 2015-01-08T20:47:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,354 | java | /*
* RED5 Open Source Flash Server - http://code.google.com/p/red5/
*
* Copyright 2006-2014 by respective authors (see below). 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 org.red5.server.service;
import java.io.File;
import java.io.IOException;
import java.util.TreeSet;
import junit.framework.TestCase;
import org.apache.mina.core.buffer.IoBuffer;
import org.red5.cache.impl.NoCacheImpl;
import org.red5.io.ITag;
import org.red5.io.ITagReader;
import org.red5.io.ITagWriter;
import org.red5.io.IoConstants;
import org.red5.io.amf.Output;
import org.red5.io.flv.IFLV;
import org.red5.io.flv.impl.Tag;
import org.red5.io.flv.meta.ICueType;
import org.red5.io.flv.meta.IMetaCue;
import org.red5.io.flv.meta.MetaCue;
import org.red5.io.object.Serializer;
import org.red5.server.service.flv.IFLVService;
import org.red5.server.service.flv.impl.FLVService;
/**
* @author The Red5 Project
* @author Dominick Accattato (daccattato@gmail.com)
* @author Luke Hubbard, Codegent Ltd (luke@codegent.com)
*/
public class MetaDataInjectionTest extends TestCase {
private IFLVService service;
/**
* SetUp is called before each test
*/
@Override
public void setUp() {
service = new FLVService();
}
/**
* Test MetaData injection
* @throws IOException if io exception
*/
public void testMetaDataInjection() throws IOException {
String path = "target/test-classes/fixtures/test_cue1.flv";
File f = new File(path);
System.out.println("Path: " + f.getAbsolutePath());
if (f.exists()) {
f.delete();
} else {
// try test subdirectory
path = "target/test-classes/fixtures/test_cue1.flv";
f = new File(path);
System.out.println("Path: " + f.getAbsolutePath());
if (f.exists()) {
f.delete();
}
}
// Create new file
f.createNewFile();
// Use service to grab FLV file
IFLV flv = (IFLV) service.getStreamableFile(f);
// Grab a writer for writing a new FLV
ITagWriter writer = flv.getWriter();
// Create a reader for testing
File readfile = new File(path);
IFLV readflv = (IFLV) service.getStreamableFile(readfile);
readflv.setCache(NoCacheImpl.getInstance());
// Grab a reader for reading a FLV in
ITagReader reader = readflv.getReader();
// Inject MetaData
writeTagsWithInjection(reader, writer);
}
/**
* Write FLV tags and inject Cue Points
* @param reader
* @param writer
* @throws IOException
*/
private void writeTagsWithInjection(ITagReader reader, ITagWriter writer) throws IOException {
IMetaCue cp = new MetaCue<Object, Object>();
cp.setName("cue_1");
cp.setTime(0.01);
cp.setType(ICueType.EVENT);
IMetaCue cp1 = new MetaCue<Object, Object>();
cp1.setName("cue_1");
cp1.setTime(2.01);
cp1.setType(ICueType.EVENT);
// Place in TreeSet for sorting
TreeSet<IMetaCue> ts = new TreeSet<IMetaCue>();
ts.add(cp);
ts.add(cp1);
int cuePointTimeStamp = getTimeInMilliseconds(ts.first());
ITag tag = null;
ITag injectedTag = null;
while (reader.hasMoreTags()) {
tag = reader.readTag();
if (tag.getDataType() != IoConstants.TYPE_METADATA) {
//injectNewMetaData();
} else {
//in
}
// if there are cuePoints in the TreeSet
if (!ts.isEmpty()) {
// If the tag has a greater timestamp than the
// cuePointTimeStamp, then inject the tag
while (tag.getTimestamp() > cuePointTimeStamp) {
injectedTag = injectMetaData(ts.first(), tag);
writer.writeTag(injectedTag);
tag.setPreviousTagSize((injectedTag.getBodySize() + 11));
// Advance to the next CuePoint
ts.remove(ts.first());
if (ts.isEmpty()) {
break;
}
cuePointTimeStamp = getTimeInMilliseconds(ts.first());
}
}
writer.writeTag(tag);
}
}
/**
* Injects metadata (Cue Points) into a tag
* @param cue
* @param writer
* @param tag
* @return ITag tag
*/
private ITag injectMetaData(Object cue, ITag tag) {
IMetaCue cp = (MetaCue<?, ?>) cue;
Output out = new Output(IoBuffer.allocate(1000));
Serializer.serialize(out, "onCuePoint");
Serializer.serialize(out, cp);
IoBuffer tmpBody = out.buf().flip();
int tmpBodySize = out.buf().limit();
int tmpPreviousTagSize = tag.getPreviousTagSize();
byte tmpDataType = IoConstants.TYPE_METADATA;
int tmpTimestamp = getTimeInMilliseconds(cp);
return new Tag(tmpDataType, tmpTimestamp, tmpBodySize, tmpBody, tmpPreviousTagSize);
}
/**
* Returns a timestamp in milliseconds
* @param object
* @return int time
*/
private int getTimeInMilliseconds(Object object) {
IMetaCue cp = (MetaCue<?, ?>) object;
return (int) (cp.getTime() * 1000.00);
}
}
| [
"mondain@gmail.com"
] | mondain@gmail.com |
6e9af9e91687c3335db633d670d88ce940e44c13 | 380ee1b4d06edb2b87209ccbdc0c4e337601b441 | /jmx-core/src/test/java/test/org/helios/jmx/comp/TestManagedObjectMBean.java | 0c30cc4f215ec13db424fa329008400af197ec66 | [] | no_license | nickman/jmx-tools | e96a24e0498aa13b3592fc870b08f8a26c8999c2 | 79863ff58aec92a4e30ace29a634a892d57e3e18 | refs/heads/master | 2020-03-29T13:06:19.834319 | 2014-10-17T21:34:05 | 2014-10-17T21:34:05 | 7,033,980 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 4,562 | java | /**
* Helios, OpenSource Monitoring
* Brought to you by the Helios Development Group
*
* Copyright 2007, Helios Development Group and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*
*/
package test.org.helios.jmx.comp;
import java.util.Random;
import java.util.UUID;
import javax.management.MBeanServerConnection;
import javax.management.MBeanServerDelegate;
import javax.management.ObjectName;
import javax.management.remote.JMXConnector;
import org.helios.jmx.annotation.ManagedMetric;
import org.helios.jmx.annotation.ManagedOperation;
import org.helios.jmx.annotation.ManagedOperationParameter;
import org.helios.jmx.mbean.ManagedObjectBaseMBean;
import org.helios.jmx.mbean.PopOperationsMBean;
import org.helios.jmx.metrics.ewma.ConcurrentDirectEWMA;
import org.helios.jmx.metrics.ewma.ConcurrentDirectEWMAMBean;
import org.helios.jmx.util.helpers.JMXHelper;
import org.helios.jmx.util.helpers.SystemClock;
import org.helios.jmx.util.helpers.SystemClock.ElapsedTime;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import test.org.helios.jmx.BaseTest;
/**
* <p>Title: TestManagedObjectMBean</p>
* <p>Description: </p>
* <p>Company: Helios Development Group LLC</p>
* @author Whitehead (nwhitehead AT heliosdev DOT org)
* <p><code>test.org.helios.jmx.comp.TestManagedObjectMBean</code></p>
*/
public class TestManagedObjectMBean extends BaseTest {
protected static JMXConnector connector = null;
public static MBeanServerConnection getRemoteMBeanServer() {
if(connector==null) connector = getConnector();
try {
return connector.getMBeanServerConnection();
} catch (Exception x) {
throw new RuntimeException(x);
}
}
/** The delegate MBeanServer's ObjectName */
protected static final ObjectName DELEGATE = JMXHelper.objectName(MBeanServerDelegate.DELEGATE_NAME);
@BeforeClass
public static void startJMXServer() {
startJmxMpServer("0.0.0.0", 8006);
}
@AfterClass
public static void closeConnector() {
if(connector!=null) {
try { connector.close(); } catch (Exception x) {}
}
connector = null;
}
@Test
public void testAnnotatedMBean() throws Exception {
try {
String ons = "test.org.helios.jmx.comp:service=ManagedObjectMBean,type=" + name.getMethodName();
final ObjectName on = JMXHelper.objectName(ons);
ManagedObjectBaseMBean tb = new ManagedObjectBaseMBean(PopOperationsMBean.class, true) {
final ConcurrentDirectEWMA randoms = new ConcurrentDirectEWMA(100);
@ManagedMetric(displayName="RandomsElapsed", description="Random Generation Elapsed Times", unit="ns")
public ConcurrentDirectEWMAMBean getRandomsElapsed() {
return randoms;
}
@ManagedOperation(name="generateRandom", parameters=@ManagedOperationParameter(name="quant", description="The number of randoms to generate"))
public void generateRandoms(int quant) {
ElapsedTime et = SystemClock.startClock();
Random r = new Random(System.currentTimeMillis());
for(int i = 0; i < quant; i++) {
UUID uuid = new UUID(r.nextLong(), r.nextLong());
}
randoms.append(et.elapsed());
}
@ManagedOperation(name="generateRandomRandoms")
public void generateRandoms() {
ElapsedTime et = SystemClock.startClock();
Random r = new Random(System.currentTimeMillis());
int quant = Math.abs(r.nextInt(1000000));
for(int i = 0; i < quant; i++) {
UUID uuid = new UUID(r.nextLong(), r.nextLong());
}
randoms.append(et.elapsed());
}
};
JMXHelper.registerMBean(tb, on);
SystemClock.sleep(120000);
} catch (Exception ex) {
ex.printStackTrace(System.err);
throw ex;
}
}
}
| [
"nwhitehead@heliosdev.org"
] | nwhitehead@heliosdev.org |
e44b387ea6f2c296ac56e23f60ccba0ba8c03208 | a8c5b7b04eace88b19b5a41a45f1fb030df393e3 | /projects/financial/src/main/java/com/opengamma/financial/analytics/volatility/surface/ICAPFXOptionVolatilitySurfaceInstrumentProvider.java | 6b55f4ba77dc041341a70b5af99bdc59809c4c0a | [
"Apache-2.0"
] | permissive | McLeodMoores/starling | 3f6cfe89cacfd4332bad4861f6c5d4648046519c | 7ae0689e06704f78fd9497f8ddb57ee82974a9c8 | refs/heads/master | 2022-12-04T14:02:00.480211 | 2020-04-28T17:22:44 | 2020-04-28T17:22:44 | 46,577,620 | 4 | 4 | Apache-2.0 | 2022-11-24T07:26:39 | 2015-11-20T17:48:10 | Java | UTF-8 | Java | false | false | 5,190 | java | /**
* Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.financial.analytics.volatility.surface;
import org.apache.commons.lang.ObjectUtils;
import org.threeten.bp.LocalDate;
import org.threeten.bp.Period;
import com.opengamma.OpenGammaRuntimeException;
import com.opengamma.core.id.ExternalSchemes;
import com.opengamma.financial.analytics.volatility.surface.BloombergFXOptionVolatilitySurfaceInstrumentProvider.FXVolQuoteType;
import com.opengamma.id.ExternalId;
import com.opengamma.id.ExternalScheme;
import com.opengamma.util.ArgumentChecker;
import com.opengamma.util.time.Tenor;
import com.opengamma.util.tuple.Pair;
/**
* Autogenerates ICAP FX option volatility surface codes given a tenor, quote type (ATM, butterfly, risk reversal) and distance from
* ATM.
*/
public class ICAPFXOptionVolatilitySurfaceInstrumentProvider implements SurfaceInstrumentProvider<Tenor, Pair<Number, FXVolQuoteType>> {
/** Butterfly */
private static final String BF_STRING = "BF";
/** Risk reversal */
private static final String RR_STRING = "RR";
/** String representing years */
private static final String YR_STRING = "YR";
/** String representing months */
private static final String M_STRING = "M";
/** String representing weeks */
private static final String WK_STRING = "WK";
/** The ICAP scheme */
private static final ExternalScheme SCHEME = ExternalSchemes.ICAP;
/** The prefix */
private final String _fxPrefix;
/** The currency pair */
private final String _ccyPair;
/** The data field name */
private final String _dataFieldName;
/**
* @param fxPrefix The code prefix, not null
* @param ccyPair The currency pair, not null
* @param dataFieldName The data field name, not null
*/
public ICAPFXOptionVolatilitySurfaceInstrumentProvider(final String fxPrefix, final String ccyPair, final String dataFieldName) {
ArgumentChecker.notNull(fxPrefix, "fx prefix");
ArgumentChecker.notNull(ccyPair, "curreny pair");
ArgumentChecker.notNull(dataFieldName, "data field name");
_fxPrefix = fxPrefix;
_ccyPair = ccyPair;
_dataFieldName = dataFieldName;
}
/**
* Gets the code prefix.
* @return The code prefix
*/
public String getFXPrefix() {
return _fxPrefix;
}
/**
* Gets the currency pair.
* @return The currency pair
*/
public String getCurrencyPair() {
return _ccyPair;
}
@Override
public ExternalId getInstrument(final Tenor xAxis, final Pair<Number, FXVolQuoteType> yAxis) {
ArgumentChecker.notNull(xAxis, "x axis");
ArgumentChecker.notNull(yAxis, "y axis");
final StringBuffer ticker = new StringBuffer(_fxPrefix);
ticker.append(_ccyPair);
final int delta = yAxis.getFirst().intValue();
final FXVolQuoteType quoteType = yAxis.getSecond();
if (delta != 0) {
switch (quoteType) {
case ATM:
throw new OpenGammaRuntimeException("Asked for an ATM code with non-zero delta");
case RISK_REVERSAL:
ticker.append(RR_STRING);
ticker.append(delta);
break;
case BUTTERFLY:
ticker.append(BF_STRING);
ticker.append(delta);
break;
default:
throw new OpenGammaRuntimeException("Did not recognise quote type " + quoteType);
}
}
ticker.append("_");
final Period period = xAxis.getPeriod();
if (period.getYears() != 0) {
ticker.append(period.getYears());
ticker.append(YR_STRING);
} else if (period.getMonths() != 0) {
ticker.append(period.getMonths());
ticker.append(M_STRING);
} else if (period.getDays() != 0) {
if (period.getDays() % 7 != 0) {
throw new OpenGammaRuntimeException("Can only handle tenors with periods in weeks; have " + period.getDays());
}
ticker.append(period.getDays() / 7);
ticker.append(WK_STRING);
}
return ExternalId.of(SCHEME, ticker.toString());
}
@Override
public ExternalId getInstrument(final Tenor xAxis, final Pair<Number, FXVolQuoteType> yAxis, final LocalDate surfaceDate) {
return getInstrument(xAxis, yAxis);
}
@Override
public String getDataFieldName() {
return _dataFieldName;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + _ccyPair.hashCode();
result = prime * result + _dataFieldName.hashCode();
result = prime * result + _fxPrefix.hashCode();
return result;
}
@Override
public boolean equals(final Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
final ICAPFXOptionVolatilitySurfaceInstrumentProvider other = (ICAPFXOptionVolatilitySurfaceInstrumentProvider) obj;
if (!ObjectUtils.equals(_ccyPair, other._ccyPair)) {
return false;
}
if (!ObjectUtils.equals(_fxPrefix, other._fxPrefix)) {
return false;
}
if (!ObjectUtils.equals(_dataFieldName, other._dataFieldName)) {
return false;
}
return true;
}
}
| [
"jim.moores@gmail.com"
] | jim.moores@gmail.com |
8c311081a9223a0e5a835ba26f187153b21d51f6 | 1e4bbb8f9e408d3b2bf5cf21dffcfd244e238419 | /net.cloudkit.enterprises/src/main/java/net/cloudkit/enterprises/domain/model/calendar/package-info.java | 712f2c77c81557b5d415987b219471cb1af5e9b3 | [
"Apache-2.0"
] | permissive | icloudkit/net.cloudkit | 1606ed135c3c61c5ebefc24ffdb4004763d01f10 | 96b4ed687530b3049f79996df3418f112341b6cd | refs/heads/master | 2020-04-10T21:57:22.496937 | 2017-10-11T09:50:26 | 2017-10-11T09:50:26 | 62,359,385 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 801 | java | /*
* Copyright (C) 2015 The CloudKit Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* package-info.java
*
* @author hongquanli <hongquanli@qq.com>
* @version 1.0 2015年08月26日 上午11:38:34
*/
package net.cloudkit.enterprises.domain.model.calendar;
| [
"hongquanli@qq.com"
] | hongquanli@qq.com |
fb1bbcd0d66e8a0da4fea81d466c3872f0a911ee | 7033d33d0ce820499b58da1d1f86f47e311fd0e1 | /org/newdawn/slick/command/ControllerButtonControl.java | d377f3a319032855397e5d7e45de02099537a3e8 | [
"MIT"
] | permissive | gabrielvicenteYT/melon-client-src | 1d3f1f65c5a3bf1b6bc3e1cb32a05bf1dd56ee62 | e0bf34546ada3afa32443dab838b8ce12ce6aaf8 | refs/heads/master | 2023-04-04T05:47:35.053136 | 2021-04-19T18:34:36 | 2021-04-19T18:34:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 234 | java | package org.newdawn.slick.command;
public class ControllerButtonControl extends ControllerControl
{
public ControllerButtonControl(final int controllerIndex, final int button) {
super(controllerIndex, 0, button);
}
}
| [
"haroldthesenpai@gmail.com"
] | haroldthesenpai@gmail.com |
a9b46b33fb431737053cc0cf1216e329e25daffd | 27926c6c630dc97ef744ec33869a9f3fefcb3adc | /Courses/Learn-Microservices-with-Spring-Boot-and-Spring-Cloud/itemsharing/authorizationserver/src/main/java/itemsharing/authorizationserver/repository/UserRepository.java | a30eb7cf291476aa026a79f355da15bdadf45287 | [
"Apache-2.0"
] | permissive | SergiOn/java | 3e09cf1c82ba6b90a6a498bbda9791b7505ba2e8 | 723483bec0ec8d9d6a1604d0bb29dc64e4383429 | refs/heads/main | 2021-06-08T04:44:51.967211 | 2020-04-18T19:14:01 | 2020-04-18T19:14:01 | 129,922,956 | 3 | 1 | null | null | null | null | UTF-8 | Java | false | false | 333 | java | package itemsharing.authorizationserver.repository;
import itemsharing.authorizationserver.model.User;
import org.springframework.data.repository.CrudRepository;
public interface UserRepository extends CrudRepository<User, Long> {
User findByUsername(String username);
// Optional<User> findByUsername(String username);
}
| [
"onishhenko@gmail.com"
] | onishhenko@gmail.com |
225800079556f3d36efdd750cc9ae893d3e0c28c | ece060a3336546aaeb31d075d14b19e425f6a240 | /DDBackbone/src/com/iztek/dd/GUI/util/JIntegerTextField.java | 39ac3c3c8338066dcf984d177aea219e4aa557bd | [] | no_license | fatihalgan/Demirdokum | fdf106fb63e3ba093968d2d38aae1ce20e0b7378 | 277d0b479c9b3085f38ff29b0671ce7b6d841611 | refs/heads/master | 2021-01-01T05:24:43.219006 | 2016-05-06T20:51:17 | 2016-05-06T20:51:17 | 58,234,135 | 0 | 0 | null | null | null | null | ISO-8859-9 | Java | false | false | 3,393 | java | package com.iztek.dd.GUI.util;
import java.awt.event.KeyEvent;
import javax.swing.JTextField;
public class JIntegerTextField extends JTextField {
/**
* Comment for <code>serialVersionUID</code>
*/
private static final long serialVersionUID = 335964910120738604L;
private int minValue = Integer.MIN_VALUE;
private int maxValue = Integer.MAX_VALUE;
public JIntegerTextField() {
initialize();
}
public JIntegerTextField(int minValue, int maxValue) {
this.minValue = minValue;
this.maxValue = maxValue;
initialize();
}
private void initialize() {
this.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent e) {
keyTypedAction(e);
}
});
this.addFocusListener(new java.awt.event.FocusAdapter() {
public void focusLost(java.awt.event.FocusEvent e) {
focusLostAction();
}
});
this.addFocusListener(new java.awt.event.FocusAdapter() {
public void focusGained(java.awt.event.FocusEvent e) {
focusGainedAction();
}
});
}
private void keyTypedAction(KeyEvent e) {
char ch = e.getKeyChar();
if(ch == '-' && minValue < 0) {
String text = super.getText();
if(text.length() > 0) {
text = text.replaceFirst("-", "");
text = ch+text;
super.setText(text);
e.consume();
}
}else {
try {
Integer.parseInt(ch+"");
}catch(NumberFormatException nfe) {
e.consume();
}
}
}
private void focusLostAction() {
Integer number = getInteger();
if(number != null) {
if(number.intValue() < minValue) {
SwingUtils.warnMessage("Lütfen "+minValue+" veya üzerinde bir sayı giriniz.");
super.setText("");
grabFocus();
}else if(maxValue < number.intValue()) {
SwingUtils.warnMessage("Lütfen "+maxValue+" veya altında bir sayı giriniz.");
super.setText("");
grabFocus();
}
}
}
private void focusGainedAction() {
super.setSelectionStart(0);
}
public Integer getInteger() {
String str = super.getText();
if(str != null && str.trim().length() > 0) {
try {
return new Integer(str.trim());
}catch(NumberFormatException nfe) {
SwingUtils.warnMessage("Lütfen geçerli bir sayı giriniz.");
super.setText("");
}
}
return null;
}
public void setText(String text) {
if(text != null) {
try {
int number = Integer.parseInt(text.trim());
super.setText(number+"");
}catch(NumberFormatException nfe) {
super.setText("");
}
}
}
public void setText(Integer number) {
if(number != null) {
if(minValue <= number.intValue() && number.intValue() <= maxValue) {
super.setText(number.toString());
}
}
}
public void setText(int number) {
if(minValue <= number && number <= maxValue) {
super.setText(number+"");
}
}
public int getMaxValue() {
return maxValue;
}
public int getMinValue() {
return minValue;
}
public void setMaxValue(int maxValue) {
this.maxValue = maxValue;
}
public void setMinValue(int minValue) {
this.minValue = minValue;
}
}
| [
"fatih.algan@gmail.com"
] | fatih.algan@gmail.com |
35c66726c1525c3a4dfa007382e89c7ea7f704d1 | 4473046026ff215c6c9fbb6ecd1cad9b1f95a67e | /JavaWeb/JavaMVCFrameworksSpring/JSAndAJAX/ResidentEvilWithAJAX/src/main/java/app/service/CapitalService.java | 1835f19176a7bd7c973c6efbc58cc853eddbe210 | [] | no_license | miroslavangelov/Java-Development | e105248d82dd0772902eeeefbeb2389919fec262 | 61fcc2fb8a5ae9f38647f85eb63f809e7d8df350 | refs/heads/master | 2022-12-12T04:27:27.932969 | 2019-12-08T12:38:36 | 2019-12-08T12:38:36 | 138,468,780 | 0 | 0 | null | 2022-11-24T08:50:00 | 2018-06-24T09:18:55 | Java | UTF-8 | Java | false | false | 186 | java | package app.service;
import app.domain.models.service.CapitalServiceModel;
import java.util.List;
public interface CapitalService {
List<CapitalServiceModel> findAllCapitals();
}
| [
"miroslav@devision.com"
] | miroslav@devision.com |
cba3ff040efe3c262f83d8572b9e5bebd50a0e14 | 0721305fd9b1c643a7687b6382dccc56a82a2dad | /src/app.zenly.locator_4.8.0_base_source_from_JADX/sources/app/zenly/locator/map/p109i1/C4024k0.java | 0b1db35f2ecbb241dda3b43a7d2ca49996d2a624 | [] | no_license | a2en/Zenly_re | 09c635ad886c8285f70a8292ae4f74167a4ad620 | f87af0c2dd0bc14fd772c69d5bc70cd8aa727516 | refs/heads/master | 2020-12-13T17:07:11.442473 | 2020-01-17T04:32:44 | 2020-01-17T04:32:44 | 234,470,083 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 473 | java | package app.zenly.locator.map.p109i1;
import p389io.reactivex.functions.Consumer;
/* renamed from: app.zenly.locator.map.i1.k0 */
/* compiled from: lambda */
public final /* synthetic */ class C4024k0 implements Consumer {
/* renamed from: e */
private final /* synthetic */ C4034c f10582e;
public /* synthetic */ C4024k0(C4034c cVar) {
this.f10582e = cVar;
}
public final void accept(Object obj) {
this.f10582e.mo10690a();
}
}
| [
"developer@appzoc.com"
] | developer@appzoc.com |
554c43dedffbfe8e89500a157659a300c6276d00 | b738de3a8670991a37eebab2052e52a35daddcb1 | /inventorymanagement/src/main/java/com/hackfse/agiveawayapp/inventory_management/services/DomainService.java | c1e498981f2f945e29c51e4aa80ab6cebb1ab349 | [] | no_license | jasemabeed114/fsecodebase2 | eee333c76db24c6bab8f15be69aabfa4021c046b | 4123b347f0c1413113c2001b4f84dea9a7ffd18e | refs/heads/master | 2023-05-05T18:34:53.361797 | 2019-07-11T11:49:28 | 2019-07-11T11:49:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 795 | java | package com.hackfse.agiveawayapp.inventory_management.services;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hackfse.agiveawayapp.inventory_management.dao.DomainDao;
import com.hackfse.agiveawayapp.inventory_management.models.DomainBean;
import com.hackfse.agiveawayapp.inventory_management.util.DomainUtil;
@Service
public class DomainService {
@Autowired
DomainDao domainDao;
public List<DomainBean> getDomainByDomainTypeName(final String typeName) {
final DomainUtil domainUtilInstance = getDomainUtilInstance();
return domainUtilInstance.getDomainObjByDomainTypeName(typeName);
}
public DomainUtil getDomainUtilInstance() {
return DomainUtil.getInstance(domainDao);
}
}
| [
"vskreddy652@yahoo.com"
] | vskreddy652@yahoo.com |
b16a267a025b7309c69ea37abf29408fe37522c9 | 1081e090fc5107cbdb1bebdef8dacba2d249ec86 | /nettyTest/src/main/java/com/org/netty/heartbeat/GzipUtil.java | f7a8e9a1e32e2dd8a4005ceb2f0e41412ee63efa | [] | no_license | ysylmqq/segWorkspace | ec9c992ef74897a4078ebd456a605e94d93ac3a1 | 3f621fb57dd285e3a6549f34aa45f4ff1df7098a | refs/heads/master | 2021-05-10T08:27:59.458352 | 2018-01-26T00:39:31 | 2018-01-26T00:39:31 | 118,879,439 | 4 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,828 | java | package com.org.netty.heartbeat;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;
/**
* 虽然压缩能够减小码流,但是增大了CPU的开销(压缩是很消耗CPU资源的)
*
*/
public class GzipUtil {
/**
* byte数组进行压缩
**/
public static byte[] gzip(byte data[]) throws IOException{
ByteArrayOutputStream bos = new ByteArrayOutputStream();
GZIPOutputStream gzip = new GZIPOutputStream(bos);
gzip.write(data);
gzip.finish();
gzip.close();
byte res [] = bos.toByteArray();
return res;
}
/**
* 压缩之后的直接数组进行解压
* @param data
* @return
* @throws IOException
*/
public static byte[] unzip(byte data[]) throws IOException{
ByteArrayInputStream bis = new ByteArrayInputStream(data);
GZIPInputStream gzip = new GZIPInputStream(bis);
byte []buf = new byte[1024*1024];
int num = -1;
ByteArrayOutputStream bos = new ByteArrayOutputStream();
while( (num =gzip.read(buf, 0, buf.length)) != -1){
bos.write(buf,0,num);
}
gzip.close();
bis.close();
byte res[] = bos.toByteArray();
bos.flush();
bos.close();
return res;
}
public static void main(String[] args) throws IOException {
File file = new File("E:/soft/elk李进.mp4");
FileInputStream fis =new FileInputStream(file);
byte fileByte [] =new byte[fis.available()];
fis.read(fileByte);
fis.close();
System.err.println("压缩之前的大小 "+fileByte.length);
byte [] gzip = GzipUtil.gzip(fileByte);
System.err.println("压缩之后的大小 "+gzip.length);
byte unzip [] = GzipUtil.unzip(gzip);
System.err.println("还原后的大小 "+unzip.length);
}
}
| [
"2268617174@qq.com"
] | 2268617174@qq.com |
e009bd44e11055f750cf8deddee985b6dad6e70b | 8cd2226df1c51fd5b08fb5fec079ea08ed1dc5d9 | /apple-file-core/src/main/java/com/appleframework/file/provider/AbstractProvider.java | 249deda968c1c7d20140ef5abb8f4df9f3ae0270 | [
"Apache-2.0"
] | permissive | zhangzaixing/apple-file | e8e561b669693d11b63a02d7f4d0d108c84cdea0 | 95a307e28b0e677dc84ae0cf7d202eaa9fb4cede | refs/heads/master | 2020-03-26T08:11:03.215687 | 2018-06-26T05:54:51 | 2018-06-26T05:54:51 | 144,690,036 | 0 | 1 | Apache-2.0 | 2018-08-14T08:16:36 | 2018-08-14T08:16:36 | null | UTF-8 | Java | false | false | 872 | java | /**
*
*/
package com.appleframework.file.provider;
import com.appleframework.file.FSProvider;
import com.appleframework.file.utils.http.HttpUtils;
/**
* @description <br>
* @author <a href="mailto:vakinge@gmail.com">vakin</a>
* @date 2017年1月7日
*/
public abstract class AbstractProvider implements FSProvider {
private static final String HTTP_PREFIX = "http://";
private static final String HTTPS_PREFIX = "https://";
protected static final String DIR_SPLITER = "/";
protected String urlprefix;
protected String bucketName;
protected String getFullPath(String file) {
if(file.startsWith(HTTP_PREFIX) || file.startsWith(HTTPS_PREFIX)){
return file;
}
return urlprefix + file;
}
@Override
public String downloadAndSaveAs(String file, String localSaveDir) {
return HttpUtils.downloadFile(getDownloadUrl(file), localSaveDir);
}
}
| [
"xushaomin@foxmail.com"
] | xushaomin@foxmail.com |
e322ddc39c92e074b2170164b2340f417fd4d6b2 | fc249fdee1cf8faa8bda0c593f44e5a781485d33 | /app/src/main/java/com/clicktech/snsktv/module_mine/presenter/SettingPresenter.java | 99e862493c3fd70479d3a337ea7a576b31033aa0 | [] | no_license | WooYu/Karaok | 320fbcc7d97904d8b20c352b4ffb9cb31bf55482 | 42120b10d4f5039307348976b508ccc89ff0f40b | refs/heads/master | 2020-04-08T11:30:29.288269 | 2018-11-27T09:28:22 | 2018-11-27T09:28:22 | 159,308,447 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,647 | java | package com.clicktech.snsktv.module_mine.presenter;
import android.app.Application;
import com.clicktech.snsktv.arms.base.AppManager;
import com.clicktech.snsktv.arms.base.BaseResponse;
import com.clicktech.snsktv.arms.inject.scope.ActivityScope;
import com.clicktech.snsktv.arms.mvp.BasePresenter;
import com.clicktech.snsktv.arms.utils.DataHelper;
import com.clicktech.snsktv.arms.utils.RxUtils;
import com.clicktech.snsktv.arms.widget.imageloader.ImageLoader;
import com.clicktech.snsktv.common.KtvApplication;
import com.clicktech.snsktv.entity.VersionMessageResponse;
import com.clicktech.snsktv.module_mine.contract.SettingContract;
import com.clicktech.snsktv.rxerrorhandler.core.RxErrorHandler;
import com.clicktech.snsktv.rxerrorhandler.handler.ErrorHandleSubscriber;
import java.util.Map;
import javax.inject.Inject;
/**
* 通过Template生成对应页面的MVP和Dagger代码,请注意输入框中输入的名字必须相同
* 由于每个项目包结构都不一定相同,所以每生成一个文件需要自己导入import包名,可以在设置中设置自动导入包名
* 请在对应包下按以下顺序生成对应代码,Contract->Model->Presenter->Activity->Module->Component
* 因为生成Activity时,Module和Component还没生成,但是Activity中有它们的引用,所以会报错,但是不用理会
* 继续将Module和Component生成完后,编译一下项目再回到Activity,按提示修改一个方法名即可
* 如果想生成Fragment的相关文件,则将上面构建顺序中的Activity换为Fragment,并将Component中inject方法的参数改为此Fragment
*/
/**
* Created by Administrator on 2017/2/4.
*/
@ActivityScope
public class SettingPresenter extends BasePresenter<SettingContract.Model, SettingContract.View> {
private RxErrorHandler mErrorHandler;
private Application mApplication;
private ImageLoader mImageLoader;
private AppManager mAppManager;
@Inject
public SettingPresenter(SettingContract.Model model, SettingContract.View rootView
, RxErrorHandler handler, Application application
, ImageLoader imageLoader, AppManager appManager) {
super(model, rootView);
this.mErrorHandler = handler;
this.mApplication = application;
this.mImageLoader = imageLoader;
this.mAppManager = appManager;
}
@Override
public void onDestroy() {
super.onDestroy();
this.mErrorHandler = null;
this.mAppManager = null;
this.mImageLoader = null;
this.mApplication = null;
}
public void getVersionMessage(Map<String, String> info) {
mModel.getVsersionMessage(info)
.compose(RxUtils.<VersionMessageResponse>applySchedulers(mRootView))
.subscribe(new ErrorHandleSubscriber<VersionMessageResponse>(mErrorHandler) {
@Override
public void onNext(VersionMessageResponse message) {
mRootView.checkVersion(message);
}
});
}
public void signOut(Map<String, String> info) {
mModel.signOut(info)
.compose(RxUtils.<BaseResponse>applySchedulers(mRootView))
.subscribe(new ErrorHandleSubscriber<BaseResponse>(mErrorHandler) {
@Override
public void onNext(BaseResponse response) {
DataHelper.clearShareprefrence(mApplication);
((KtvApplication) mApplication).setUserInfoBean(null);
mRootView.exitCurrentAccount();
}
});
}
} | [
"wuyu@lcworld-inc.com"
] | wuyu@lcworld-inc.com |
edd5670495622b72f30cb73fbfb0b0bdb3505b8e | 1ebd71e2179be8a2baec90ff3f326a3f19b03a54 | /hybris/bin/modules/web-content-management-system/cmsfacades/testsrc/de/hybris/platform/cmsfacades/rendering/visibility/impl/CMSNavigationNodeRenderingVisibilityRuleTest.java | 6b9c9281ccf6179079855563005984311548e933 | [] | no_license | shaikshakeeb785/hybrisNew | c753ac45c6ae264373e8224842dfc2c40a397eb9 | 228100b58d788d6f3203333058fd4e358621aba1 | refs/heads/master | 2023-08-15T06:31:59.469432 | 2021-09-03T09:02:04 | 2021-09-03T09:02:04 | 402,680,399 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,334 | java | /*
* Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved.
*/
package de.hybris.platform.cmsfacades.rendering.visibility.impl;
import de.hybris.bootstrap.annotations.UnitTest;
import de.hybris.platform.cms2.model.navigation.CMSNavigationNodeModel;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.mockito.Matchers.booleanThat;
import static org.mockito.Mockito.when;
@UnitTest
@RunWith(MockitoJUnitRunner.class)
public class CMSNavigationNodeRenderingVisibilityRuleTest
{
@InjectMocks
private CMSNavigationNodeRenderingVisibilityRule renderingVisibilityRule;
@Mock
private CMSNavigationNodeModel nodeModel;
@Test
public void shouldReturnTrueIfNodeIsVisible()
{
// GIVEN
when(nodeModel.isVisible()).thenReturn(true);
// WHEN
final boolean result = renderingVisibilityRule.isVisible(nodeModel);
// THEN
assertTrue(result);
}
@Test
public void shouldReturnFalseIfNodeIsNotVisible()
{
// GIVEN
when(nodeModel.isVisible()).thenReturn(false);
// WHEN
final boolean result = renderingVisibilityRule.isVisible(nodeModel);
// THEN
assertFalse(result);
}
}
| [
"sauravkr82711@gmail.com"
] | sauravkr82711@gmail.com |
fbf5b3d1d573d4fb3a7a04c8bdb2f623b5467f02 | ee461488c62d86f729eda976b421ac75a964114c | /tags/HtmlUnit-2.14/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/svg/SVGMaskElement.java | 1b88537917af409bdeb74cc1c423e1f9c159e8d5 | [
"Apache-2.0"
] | permissive | svn2github/htmlunit | 2c56f7abbd412e6d9e0efd0934fcd1277090af74 | 6fc1a7d70c08fb50fef1800673671fd9cada4899 | refs/heads/master | 2023-09-03T10:35:41.987099 | 2015-07-26T13:12:45 | 2015-07-26T13:12:45 | 37,107,064 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,544 | java | /*
* Copyright (c) 2002-2014 Gargoyle Software Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.gargoylesoftware.htmlunit.javascript.host.svg;
import static com.gargoylesoftware.htmlunit.javascript.configuration.BrowserName.CHROME;
import static com.gargoylesoftware.htmlunit.javascript.configuration.BrowserName.FF;
import static com.gargoylesoftware.htmlunit.javascript.configuration.BrowserName.IE;
import com.gargoylesoftware.htmlunit.javascript.configuration.JsxClass;
import com.gargoylesoftware.htmlunit.javascript.configuration.WebBrowser;
import com.gargoylesoftware.htmlunit.svg.SvgMask;
/**
* A JavaScript object for SVGMaskElement.
*
* @version $Revision$
* @author Ahmed Ashour
*/
@JsxClass(domClass = SvgMask.class,
browsers = { @WebBrowser(value = IE, minVersion = 9), @WebBrowser(FF), @WebBrowser(CHROME) })
public class SVGMaskElement extends SVGElement {
/**
* Creates an instance. JavaScript objects must have a default constructor.
*/
public SVGMaskElement() {
}
}
| [
"asashour@5f5364db-9458-4db8-a492-e30667be6df6"
] | asashour@5f5364db-9458-4db8-a492-e30667be6df6 |
2c99356ac794b7c4f016acf9ff6e1e8c81c3099a | 4321eecc473a042d0a0cc180b495fc6d1b63e08c | /multibanking-server/src/main/java/de/adorsys/multibanking/web/model/BankLoginSettingsTO.java | 49c4bdf5e6c2ef965f48232c25bb4c29935cd0d8 | [] | no_license | mohbadar/multibanking | d43619d1cb235fde9d0fd92caa5950528bce5b18 | 093e24e19b0644602480f4cdfebce0beae2ed2f5 | refs/heads/master | 2020-09-16T22:28:19.088480 | 2019-11-20T09:31:17 | 2019-11-20T09:31:17 | 223,904,782 | 1 | 0 | null | 2019-11-25T09:01:56 | 2019-11-25T09:01:55 | null | UTF-8 | Java | false | false | 272 | java | package de.adorsys.multibanking.web.model;
import lombok.Data;
import java.util.List;
@Data
public class BankLoginSettingsTO {
private String icon;
private List<BankLoginCredentialInfoTO> credentials;
private String auth_type;
private String advice;
}
| [
"age@adorsys.de"
] | age@adorsys.de |
3c18f07dd990cb83f40f2810338a2b7e10b30a6f | fce1e3fe1e35dee4482b07198fb08033b9c32ef6 | /com/google/tagmanager/NoopResolvedRuleBuilder.java | 5687f5ca41d50e3c5ba617df5ff36ba606301a4c | [] | no_license | Ravinther/andriodprojecttodolist | cae041a692ab2ac0ffae6461921b151803313754 | 34a35ea0c72e69c070e9e565c2d8988b098b8019 | refs/heads/master | 2021-01-09T20:19:54.676431 | 2016-08-07T08:06:04 | 2016-08-07T08:06:04 | 65,122,650 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,380 | java | package com.google.tagmanager;
import com.google.analytics.midtier.proto.containertag.TypeSystem.Value;
import com.google.tagmanager.ResourceUtil.ExpandedFunctionCall;
import java.util.List;
class NoopResolvedRuleBuilder implements ResolvedRuleBuilder {
public class NoopResolvedFunctionCallTranslatorList implements ResolvedFunctionCallTranslatorList {
public void translateAndAddAll(List<ExpandedFunctionCall> list, List<String> list2) {
}
}
NoopResolvedRuleBuilder() {
}
public ResolvedFunctionCallBuilder createNegativePredicate() {
return new NoopResolvedFunctionCallBuilder();
}
public ResolvedFunctionCallBuilder createPositivePredicate() {
return new NoopResolvedFunctionCallBuilder();
}
public ResolvedFunctionCallTranslatorList getAddedMacroFunctions() {
return new NoopResolvedFunctionCallTranslatorList();
}
public ResolvedFunctionCallTranslatorList getRemovedMacroFunctions() {
return new NoopResolvedFunctionCallTranslatorList();
}
public ResolvedFunctionCallTranslatorList getAddedTagFunctions() {
return new NoopResolvedFunctionCallTranslatorList();
}
public ResolvedFunctionCallTranslatorList getRemovedTagFunctions() {
return new NoopResolvedFunctionCallTranslatorList();
}
public void setValue(Value result) {
}
}
| [
"m.ravinther@yahoo.com"
] | m.ravinther@yahoo.com |
4b9d704a633a088177b007b493bcaf9b1b9aca10 | a0b3e77790630ac4de591c9105e2b1d4e3bd9c8f | /jrap-core/src/main/java/com/jingrui/jrap/core/web/view/ui/Checkbox.java | e000122a1fbfa67058f2bf58f3a50e321fd70909 | [] | no_license | IvanStephenYuan/JRAP_Lease | 799c0b1a88fecb0b7d4b9ab73f8da9b47ce19fdb | 4b4b08d4c23e9181718374eb77676095d3a298dc | refs/heads/master | 2022-12-23T07:54:57.213203 | 2019-06-11T07:43:48 | 2019-06-11T07:43:48 | 174,286,707 | 3 | 5 | null | 2022-12-16T09:43:59 | 2019-03-07T06:39:02 | JavaScript | UTF-8 | Java | false | false | 2,865 | java | package com.jingrui.jrap.core.web.view.ui;
import com.jingrui.jrap.core.web.view.UITag;
import com.jingrui.jrap.core.web.view.ViewContext;
import com.jingrui.jrap.core.web.view.XMap;
/**
*
* 复选框.
*
* @author hailin.xu@jingrui.com
* @author njq.niu@jingrui.com
*
*/
@UITag
public class Checkbox extends InputField {
// private static final String PROPERTITY_NAME = "name";
private static final String PROPERTITY_CHECKED_VALUE = "checkedValue";
private static final String PROPERTITY_UNCHECKED_VALUE = "uncheckedValue";
// private static final String PROPERTITY_CHECKED = "checked";
private static final String PROPERTITY_READONLY = "readonly";
private static final String PROPERTITY_LABEL = "label";
public static Checkbox createInstance() {
XMap view = new XMap(DEFAULT_TAG_PREFIX, DEFAULT_NAME_SPACE, "checkbox");
Checkbox checkbox = new Checkbox();
checkbox.initPrototype(view);
return checkbox;
}
// public String getName() {
// return getPrototype().getString(PROPERTITY_NAME);
// }
//
// public void setName(String name) {
// setPropertity(PROPERTITY_NAME, name);
// }
public String getCheckedValue() {
return getPrototype().getString(PROPERTITY_CHECKED_VALUE);
}
public void setCheckedValue(String checkedValue) {
setPropertity(PROPERTITY_CHECKED_VALUE, checkedValue);
}
public String getUncheckedValue() {
return getPrototype().getString(PROPERTITY_UNCHECKED_VALUE);
}
public void setUncheckedValue(String UncheckedValue) {
setPropertity(PROPERTITY_UNCHECKED_VALUE, UncheckedValue);
}
// public String getChecked() {
// return getPrototype().getString(PROPERTITY_CHECKED);
// }
//
// public void setChecked(String checked) {
// setPropertity(PROPERTITY_CHECKED, checked);
// }
public Boolean getReadonly() {
return getPrototype().getBoolean(PROPERTITY_READONLY);
}
public void setReadonly(Boolean readonly) {
setPropertity(PROPERTITY_READONLY, readonly);
}
public String getLabel() {
return getPrototype().getString(PROPERTITY_LABEL);
}
public void setLabel(String label) {
setPropertity(PROPERTITY_LABEL, label);
}
public void init(XMap view, ViewContext context) throws Exception {
super.init(view, context);
// context.put(PROPERTITY_CHECKED, getChecked());
// context.addJsonConfig(PROPERTITY_NAME, getName());
context.addJsonConfig(PROPERTITY_CHECKED_VALUE, getCheckedValue());
context.addJsonConfig(PROPERTITY_UNCHECKED_VALUE, getUncheckedValue());
context.addJsonConfig(PROPERTITY_READONLY, getReadonly());
context.addJsonConfig(PROPERTITY_LABEL, getLabel());
}
}
| [
"Ivan.Stphen.Y@gmail.com"
] | Ivan.Stphen.Y@gmail.com |
2de8787a31adf5d1f75eca377dad51fbd9a8ae9e | 35826be5b60665e3774fe7409fe213b067137cfb | /Git/src/main/java/me/heldplayer/irc/git/internal/security/rules/IpRangeRule.java | 085447ac4c6fba48fb2377dc407f7acee301d86f | [] | no_license | heldplayer/GitIRC | 7c60902d008fbaa4f7c8130859d67aa1e9383201 | 94cd9d9957ea19975ff4ab36d5f297e76d444e21 | refs/heads/master | 2016-09-05T20:58:48.267135 | 2014-07-26T08:53:38 | 2014-07-26T08:53:38 | 3,891,916 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,611 | java | package me.heldplayer.irc.git.internal.security.rules;
import me.heldplayer.irc.git.RequestSource;
import me.heldplayer.util.json.JSONObject;
import java.net.InetAddress;
import java.net.UnknownHostException;
public abstract class IpRangeRule implements Rule {
private String value;
private byte[] bytes;
private boolean[] wildcards;
private InetAddress address;
public IpRangeRule(JSONObject object) {
this.value = object.getString("value");
try {
this.address = InetAddress.getByName(this.value);
this.bytes = new byte[0];
this.wildcards = new boolean[0];
} catch (UnknownHostException e) {
String[] split = this.value.split("\\.");
this.bytes = new byte[split.length];
this.wildcards = new boolean[split.length];
for (int i = 0; i < this.bytes.length; i++) {
if (split[i].equals("*")) {
this.wildcards[i] = true;
} else {
this.bytes[i] = (byte) Integer.parseInt(split[i]);
}
}
}
}
public boolean matches(RequestSource source) {
if (this.address != null) {
return this.address.equals(source.address);
}
byte[] bytes = source.address.getAddress();
for (int i = 0; i < bytes.length && i < this.bytes.length; i++) {
if (this.wildcards[i] || this.bytes[i] == bytes[i]) {
continue;
} else {
return false;
}
}
return true;
}
}
| [
"mitchel.pyl@gmail.com"
] | mitchel.pyl@gmail.com |
639050872d27d1b81f59bd0fc185a70f01439789 | 2f39a960a40c5e62afec99ebeefae241e7b984df | /CloudSettings/src/com/hiveview/cloudtv/settings/bluetooth/PanProfile.java | 07070bdb666501a213b41dc706650e7683959ae2 | [] | no_license | zhaweijin/mySetting | 5e773026a1777a01d05842991171b01a74bb9c0e | 5d18e3abfafa54d639276123e3ae96453def70ce | refs/heads/master | 2020-03-29T04:59:45.477027 | 2018-09-20T06:20:33 | 2018-09-20T06:20:33 | 149,559,981 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,816 | java | /*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.hiveview.cloudtv.settings.bluetooth;
import android.annotation.SuppressLint;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothClass;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothPan;
import android.bluetooth.BluetoothProfile;
import android.content.Context;
import android.util.Log;
import java.util.HashMap;
import java.util.List;
import com.hiveview.cloudtv.settings.R;
/**
* PanProfile handles Bluetooth PAN profile (NAP and PANU).
*/
final class PanProfile implements LocalBluetoothProfile {
private static final String TAG = "PanProfile";
private static boolean V = true;
private BluetoothPan mService;
private boolean mIsProfileReady;
// Tethering direction for each device
private final HashMap<BluetoothDevice, Integer> mDeviceRoleMap =
new HashMap<BluetoothDevice, Integer>();
static final String NAME = "PAN";
// Order of this profile in device profiles list
private static final int ORDINAL = 4;
// These callbacks run on the main thread.
@SuppressLint("NewApi")
private final class PanServiceListener
implements BluetoothProfile.ServiceListener {
public void onServiceConnected(int profile, BluetoothProfile proxy) {
if (V) Log.d(TAG,"Bluetooth service connected");
mService = (BluetoothPan) proxy;
mIsProfileReady=true;
}
public void onServiceDisconnected(int profile) {
if (V) Log.d(TAG,"Bluetooth service disconnected");
mIsProfileReady=false;
}
}
public boolean isProfileReady() {
return mIsProfileReady;
}
@SuppressLint("NewApi")
PanProfile(Context context) {
BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
adapter.getProfileProxy(context, new PanServiceListener(),
BluetoothProfile.PAN);
}
public boolean isConnectable() {
return true;
}
public boolean isAutoConnectable() {
return false;
}
public boolean connect(BluetoothDevice device) {
if (mService == null) return false;
List<BluetoothDevice> sinks = mService.getConnectedDevices();
if (sinks != null) {
for (BluetoothDevice sink : sinks) {
mService.disconnect(sink);
}
}
return mService.connect(device);
}
public boolean disconnect(BluetoothDevice device) {
if (mService == null) return false;
return mService.disconnect(device);
}
public int getConnectionStatus(BluetoothDevice device) {
if (mService == null) {
return BluetoothProfile.STATE_DISCONNECTED;
}
return mService.getConnectionState(device);
}
public boolean isPreferred(BluetoothDevice device) {
// return current connection status so profile checkbox is set correctly
return getConnectionStatus(device) == BluetoothProfile.STATE_CONNECTED;
}
public int getPreferred(BluetoothDevice device) {
return -1;
}
public void setPreferred(BluetoothDevice device, boolean preferred) {
// ignore: isPreferred is always true for PAN
}
public String toString() {
return NAME;
}
public int getOrdinal() {
return ORDINAL;
}
public int getNameResource(BluetoothDevice device) {
if (isLocalRoleNap(device)) {
return R.string.bluetooth_profile_pan_nap;
} else {
return R.string.bluetooth_profile_pan;
}
}
public int getSummaryResourceForDevice(BluetoothDevice device) {
int state = getConnectionStatus(device);
switch (state) {
case BluetoothProfile.STATE_DISCONNECTED:
return R.string.bluetooth_pan_profile_summary_use_for;
case BluetoothProfile.STATE_CONNECTED:
if (isLocalRoleNap(device)) {
return R.string.bluetooth_pan_nap_profile_summary_connected;
} else {
return R.string.bluetooth_pan_user_profile_summary_connected;
}
default:
return Utils.getConnectionStateSummary(state);
}
}
public int getDrawableResource(BluetoothClass btClass) {
return R.drawable.ic_bt_network_pan;
}
// Tethering direction determines UI strings.
void setLocalRole(BluetoothDevice device, int role) {
mDeviceRoleMap.put(device, role);
}
boolean isLocalRoleNap(BluetoothDevice device) {
if (mDeviceRoleMap.containsKey(device)) {
return mDeviceRoleMap.get(device) == BluetoothPan.LOCAL_NAP_ROLE;
} else {
return false;
}
}
@SuppressLint("NewApi")
protected void finalize() {
if (V) Log.d(TAG, "finalize()");
if (mService != null) {
try {
BluetoothAdapter.getDefaultAdapter().closeProfileProxy(BluetoothProfile.PAN, mService);
mService = null;
}catch (Throwable t) {
Log.w(TAG, "Error cleaning up PAN proxy", t);
}
}
}
}
| [
"dm-md@carterdeMacBook-Pro.local"
] | dm-md@carterdeMacBook-Pro.local |
c11e5ba4de557a76e5dcbc71d0ac12f45ff9a844 | bb7d521605d1d2c7229f36e301ec8311837b39f7 | /ms.weixin/src/main/java/com/ms/commons/weixin/message/WeixinVoiceMessage.java | 2fcd6d35296d6d19a187985e50bc5390424a0551 | [] | no_license | justinscript/summer | 635eb3c8739065a2ee4736b0b9f42adf188d76dc | d6b982c41dc6a3d637d5de1bc84363db1797ef1b | refs/heads/master | 2021-10-10T14:33:28.153011 | 2019-01-12T06:01:52 | 2019-01-12T06:01:52 | 18,910,111 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 818 | java | package com.ms.commons.weixin.message;
import java.util.HashMap;
import java.util.Map;
/**
* <pre>
* {
* "touser":"OPENID",
* "msgtype":"voice",
* "voice":
* {
* "media_id":"MEDIA_ID"
* }
* }
* </pre>
*/
public class WeixinVoiceMessage extends WeixinMessage {
private Map<String, String> voice;
public WeixinVoiceMessage(String touser) {
this(touser, null);
}
public WeixinVoiceMessage(String touser, String mediaId) {
super(touser, "voice");
voice = new HashMap<String, String>();
setVoiceMediaId(mediaId);
}
public void setVoiceMediaId(String mediaId) {
voice.put("media_id", mediaId);
}
/**
* @return the voice
*/
public Map<String, String> getVoice() {
return voice;
}
}
| [
"zhangxiongcai337@163.com"
] | zhangxiongcai337@163.com |
69d91bce28d74701127d0881f85079ebdab71b00 | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/33/33_623e988506bab77ff85bcc1cb922fdec6f47d416/AdvancedReferencesTest/33_623e988506bab77ff85bcc1cb922fdec6f47d416_AdvancedReferencesTest_t.java | 2ad29515326a1b5f17e35b74ab2fdffee2f9a4a7 | [] | 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 | 1,800 | java | /*******************************************************************************
* Copyright (c) 2005, 2009 committers of openArchitectureWare and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* committers of openArchitectureWare - initial API and implementation
*******************************************************************************/
package org.eclipse.emf.mwe.ui.internal.editor.tests.references;
import org.eclipse.emf.mwe.ui.internal.editor.base.ReferencesTestBase;
import org.eclipse.emf.mwe.ui.internal.editor.elements.AbstractWorkflowElement;
public class AdvancedReferencesTest extends ReferencesTestBase {
public static final String WORKFLOW1 = "<workflow>\n"
+ " <fragment file=\"/res/import1.mwe\" inheritAll=\"true\"/>\n" + "</workflow>\n";
public static final String RESOURCE_IMPORT1 = "<workflow>\n"
+ " <fragment file=\"/res/import2.mwe\" inheritAll=\"true\"/>\n" + "</workflow>\n";
public static final String RESOURCE_IMPORT2 = "<workflow>\n" + " <property name=\"a1\" value=\"\"/>\n"
+ " <property name=\"a2\" value=\"\"/>\n" + "</workflow>\n";
public void testNestedImport() {
final AbstractWorkflowElement root = parse(WORKFLOW1);
assertNotNull(root);
final AbstractWorkflowElement fragment = root.getChild(0).getChild(0);
assertNotNull(fragment);
assertFalse(fragment.isPropertyContainerEmpty());
assertEquals(2, fragment.getPropertyCount());
assertTrue(fragment.hasSimpleValueProperty("a1"));
assertTrue(fragment.hasSimpleValueProperty("a2"));
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
2dfbd9a32e42a203f0e69d1cd7fd03aa977091e7 | a5757c1b0c2cee7a7e8f6abe4f0e89f24457d55e | /src/pro08/sec04/ex02/SecondServlet.java | 10fbf9f34d570fe4b30373d4ffae0cee03208b8c | [] | no_license | bc0086/JavaWebJspServlet | 028e64efbb93b80384e681cfb482148b3fbb3114 | b2efffca586e62f42e41b6550f048a48ec640f4b | refs/heads/master | 2023-03-02T04:15:31.128432 | 2021-02-02T12:19:05 | 2021-02-02T12:19:05 | 315,921,082 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,003 | java | package pro08.sec04.ex02;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet("/sec04ex02second")
public class SecondServlet extends HttpServlet {
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
request.setCharacterEncoding("utf-8");
response.setContentType("text/html; charset=utf-8");
PrintWriter out = response.getWriter();
String address = (String)request.getAttribute("address");
// 전달된 request에서 getAttribute()를 이용해 address의 값을 가져옴
out.println("<html><body>");
out.println("주소:" + address);
out.println("<br>");
out.println("dispatch를 이용한 binding실습입니다.");
out.println("</body></html>");
}
}
| [
"bc0086@naver.com"
] | bc0086@naver.com |
ab022dca2d483cf62c9ebb626a8f7c15804d38af | 94a2c1a2b1becb0b84fa47772309d8d332488059 | /colourful-pay/colourful-pay-api/src/main/java/com/colourful/colourful/pay/wechat/utils/HttpUtils.java | 7ad268926a9e53fce4c4bff5d10ad20ffc8c715d | [] | no_license | edjian/bak | f5493709a4184322bd6947700e9065f985fe437a | bb8bca82b69381b2a1a8454a9c59129f6bfb4ed5 | refs/heads/master | 2023-01-20T22:37:31.992663 | 2020-12-01T09:49:13 | 2020-12-01T09:49:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 8,371 | java | package com.colourful.colourful.pay.wechat.utils;
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import org.apache.http.client.HttpClient;
import org.apache.http.conn.ClientConnectionManager;
import org.apache.http.conn.scheme.Scheme;
import org.apache.http.conn.scheme.SchemeRegistry;
import org.apache.http.conn.ssl.SSLSocketFactory;
import org.apache.http.conn.ssl.TrustStrategy;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.impl.conn.PoolingClientConnectionManager;
import org.springframework.util.StringUtils;
import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServletRequest;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.lang.reflect.Field;
import java.net.URL;
import java.net.URLConnection;
import java.security.cert.X509Certificate;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
@Slf4j
public class HttpUtils {
/**
* 向指定URL发送GET方法的请求
*
* @param url 发送请求的URL
* @param param 请求参数,请求参数应该是 name1=value1&name2=value2 的形式。
* @return URL 所代表远程资源的响应结果
*/
public static String sendGet(String url, String param) {
StringBuilder result = new StringBuilder();
BufferedReader in = null;
try {
String urlNameString = url + "?" + param;
URL realUrl = new URL(urlNameString);
// 打开和URL之间的连接
URLConnection connection = realUrl.openConnection();
// 设置通用的请求属性
connection.setRequestProperty("accept", "*/*");
connection.setRequestProperty("connection", "Keep-Alive");
connection.setRequestProperty("user-agent","Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)");
// 建立实际的连接
connection.connect();
// 定义 BufferedReader输入流来读取URL的响应
in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
String line;
while ((line = in.readLine()) != null) {
result.append(line);
}
} catch (Exception e) {
e.printStackTrace();
}
// 使用finally块来关闭输入流
finally {
try {
if (in != null) {
in.close();
}
} catch (Exception e2) {
e2.printStackTrace();
}
}
return result.toString();
}
/**
* 向指定 URL 发送POST方法的请求
*
* @param url 发送请求的 URL
* @param param 请求参数,请求参数应该是 name1=value1&name2=value2 的形式。
* @return 所代表远程资源的响应结果
*/
public static String sendPost(String url, String param) {
PrintWriter out = null;
BufferedReader in = null;
StringBuilder result = new StringBuilder();
try {
URL realUrl = new URL(url);
// 打开和URL之间的连接
URLConnection conn = realUrl.openConnection();
// 设置通用的请求属性
conn.setRequestProperty("accept", "*/*");
conn.setRequestProperty("connection", "Keep-Alive");
conn.setRequestProperty("user-agent","Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)");
// 发送POST请求必须设置如下两行
conn.setDoOutput(true);
conn.setDoInput(true);
// 获取URLConnection对象对应的输出流
out = new PrintWriter(conn.getOutputStream());
// 发送请求参数
out.print(param);
// flush输出流的缓冲
out.flush();
// 定义BufferedReader输入流来读取URL的响应
in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String line;
while ((line = in.readLine()) != null) {
result.append(line);
}
} catch (Exception e) {
e.printStackTrace();
}
//使用finally块来关闭输出流、输入流
finally{
try{
if(out!=null){
out.close();
}
if(in!=null){
in.close();
}
}
catch(IOException ex){
ex.printStackTrace();
}
}
return result.toString();
}
/*
* java对象转换为 name1=value1&name2=value2 的形式。
* */
public static String parseURLPair(Object o) throws Exception{
Class<? extends Object> c = o.getClass();
Field[] fields = c.getDeclaredFields();
Map<String, Object> map = new TreeMap<String, Object>();
for (Field field : fields) {
field.setAccessible(true);
String name = field.getName();
Object value = field.get(o);
if(value != null)
map.put(name, value);
}
Set<Map.Entry<String, Object>> set = map.entrySet();
Iterator<Map.Entry<String, Object>> it = set.iterator();
StringBuffer sb = new StringBuffer();
while (it.hasNext()) {
Map.Entry<String, Object> e = it.next();
sb.append(e.getKey()).append("=").append(e.getValue()).append("&");
}
return sb.deleteCharAt(sb.length()-1).toString();
}
public static HttpClient getHttpClient(boolean pool, int httpsPort) {
SSLSocketFactory sf = null;
try {
TrustStrategy acceptingTrustStrategy = new TrustStrategy() {
@Override
public boolean isTrusted(X509Certificate[] certificate, String authType) {
return true;
}
};
sf = new SSLSocketFactory(acceptingTrustStrategy, SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
} catch (Exception e) {
log.error(e.getMessage());
}
Scheme sch = new Scheme("https", httpsPort, sf);
ClientConnectionManager ccm = null;
if (pool) {
SchemeRegistry registry = new SchemeRegistry();
registry.register(sch);
ccm = new PoolingClientConnectionManager(registry);
return new DefaultHttpClient(ccm);
} else {
DefaultHttpClient client = new DefaultHttpClient();
client.getConnectionManager().getSchemeRegistry().register(sch);
return client;
}
}
/**
* 获取终端IP
* @param request
* @return
*/
public static String getRemoteIp(ServletRequest request) {
String ip = null;
if (request instanceof HttpServletRequest) {
val httpReq = (HttpServletRequest) request;
ip = httpReq.getHeader("g-remote-ip");
if (null == ip || ip.isEmpty() || "unknown".equalsIgnoreCase(ip)) {
ip = httpReq.getHeader("X-Forwarded-For");
}
if (null == ip || ip.isEmpty() || "unknown".equalsIgnoreCase(ip)) {
ip = httpReq.getHeader("Proxy-Client-IP");
}
if (null == ip || ip.isEmpty() || "unknown".equalsIgnoreCase(ip)) {
ip = httpReq.getHeader("WL-Proxy-Client-IP");
}
if (null == ip || ip.isEmpty() || "unknown".equalsIgnoreCase(ip)) {
ip = httpReq.getHeader("HTTP_CLIENT_IP");
}
if (null == ip || ip.isEmpty() || "unknown".equalsIgnoreCase(ip)) {
ip = httpReq.getHeader("HTTP_X_FORWARDED_FOR");
}
}
if (null == ip || ip.isEmpty() || "unknown".equalsIgnoreCase(ip)) {
ip = request.getRemoteAddr();
}
if(!StringUtils.isEmpty(ip)){
String[] split = ip.split(",");
if(split.length >= 2){
for(int i=0 ;i <split.length; i++){
if(!"127.0.0.1" .equals( split[i].trim())){
return split[i];
}
}
}else {
return ip;
}
}
return ip;
}
} | [
"ryan.wu@colourchina.com"
] | ryan.wu@colourchina.com |
4f86cb3719fa1aa8196601bf527fab0b6eeb8740 | accf6a38581424ef91833968a276d7a0aec5e631 | /src/com/hotent/core/bpmn20/entity/Expression.java | d9b6d239b4a553026c7ccc7b5d2953a5676817b4 | [] | no_license | abgronie/bpm | d79ddf1c00863be45f764d054ebb2cf1dfaa85a3 | 6323a3180597307d8ccdd51d265750064fcef477 | refs/heads/master | 2020-12-04T02:38:21.080704 | 2019-04-11T08:35:26 | 2019-04-11T08:35:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 617 | java | package com.hotent.core.bpmn20.entity;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name="tExpression")
@XmlSeeAlso({FormalExpression.class})
public class Expression extends BaseElementWithMixedContent
{
}
/* Location: C:\Users\zfsoft\Desktop\工作@bpmx\v2\bpmx\web\WEB-INF\lib\hotentcore-1.3.6.9.jar
* Qualified Name: com.hotent.core.bpmn20.entity.Expression
* JD-Core Version: 0.6.2
*/ | [
"2500391980@qq.com"
] | 2500391980@qq.com |
740649f7879093f8c3d984cd4c200ee0c07a55e2 | 828b5327357d0fb4cb8f3b4472f392f3b8b10328 | /flink-runtime/src/test/java/org/apache/flink/runtime/heartbeat/TestingHeartbeatListenerBuilder.java | 429a4941edd168f74e3988635ff5e8280e09f53a | [
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"ISC",
"MIT-0",
"GPL-2.0-only",
"BSD-2-Clause-Views",
"OFL-1.1",
"Apache-2.0",
"LicenseRef-scancode-jdom",
"GCC-exception-3.1",
"MPL-2.0",
"CC-PDDC",
"AGPL-3.0-only",
"MPL-2.0-no-copyleft-exception",
"LicenseRef... | permissive | Romance-Zhang/flink_tpc_ds_game | 7e82d801ebd268d2c41c8e207a994700ed7d28c7 | 8202f33bed962b35c81c641a05de548cfef6025f | refs/heads/master | 2022-11-06T13:24:44.451821 | 2019-09-27T09:22:29 | 2019-09-27T09:22:29 | 211,280,838 | 0 | 1 | Apache-2.0 | 2022-10-06T07:11:45 | 2019-09-27T09:11:11 | Java | UTF-8 | Java | false | false | 2,194 | 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.flink.runtime.heartbeat;
import org.apache.flink.runtime.clusterframework.types.ResourceID;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
class TestingHeartbeatListenerBuilder<I, O> {
private Consumer<ResourceID> notifyHeartbeatTimeoutConsumer = ignored -> {};
private BiConsumer<ResourceID, I> reportPayloadConsumer = (ignoredA, ignoredB) -> {};
private Function<ResourceID, O> retrievePayloadFunction = ignored -> null;
public TestingHeartbeatListenerBuilder<I, O> setNotifyHeartbeatTimeoutConsumer(Consumer<ResourceID> notifyHeartbeatTimeoutConsumer) {
this.notifyHeartbeatTimeoutConsumer = notifyHeartbeatTimeoutConsumer;
return this;
}
public TestingHeartbeatListenerBuilder<I, O> setReportPayloadConsumer(BiConsumer<ResourceID, I> reportPayloadConsumer) {
this.reportPayloadConsumer = reportPayloadConsumer;
return this;
}
public TestingHeartbeatListenerBuilder<I, O> setRetrievePayloadFunction(Function<ResourceID, O> retrievePayloadFunction) {
this.retrievePayloadFunction = retrievePayloadFunction;
return this;
}
public TestingHeartbeatListener<I, O> createNewTestingHeartbeatListener() {
return new TestingHeartbeatListener<>(notifyHeartbeatTimeoutConsumer, reportPayloadConsumer, retrievePayloadFunction);
}
}
| [
"1003761104@qq.com"
] | 1003761104@qq.com |
8f065ae8f4fcadaefb537777593ebf8dafd010ba | c1d20e33891deb190d096f5a5ea0cf426b257069 | /newserver1/newserver1/src/com/mayhem/rs2/content/achievements/AchievementList.java | bbb3a2d55e3c5397fa7fed3b25f2def49a464310 | [] | no_license | premierscape/NS1 | 72a5d3a3f2d5c09886b1b26f166a6c2b27ac695d | 0fb88b155b2abbb98fe3d88bb287012bbcbb8bf9 | refs/heads/master | 2020-04-07T00:46:08.175508 | 2018-11-16T20:06:10 | 2018-11-16T20:06:10 | 157,917,810 | 0 | 0 | null | 2018-11-16T20:44:52 | 2018-11-16T20:25:56 | Java | UTF-8 | Java | false | false | 7,596 | java | package com.mayhem.rs2.content.achievements;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import com.mayhem.rs2.content.achievements.AchievementHandler.AchievementDifficulty;
/**
* List of all achievements.
*
* @author Daniel
*
*/
public enum AchievementList {
/* Easy Achievements */
CHANGE_APPEARANCE("Change your appearance once", 1, AchievementDifficulty.EASY),
EAT_100_FOODS("Eat 100 of any food", 100, AchievementDifficulty.EASY),
DRINK_100_POTIONS("Drink 100 of any potion", 100, AchievementDifficulty.EASY),
KILL_75_COWS("Kill 75 cows", 75, AchievementDifficulty.EASY),
SPEND_5000000_ON_SHOPS("Spend 5m coins on shops", 5000000, AchievementDifficulty.EASY),
THIEVE_300_TIMES_FROM_STALLS("Thieve 300 stalls", 300, AchievementDifficulty.EASY),
FAIL_50_TIMES_THIEVING_STALLS("Fail 50 times thieving stalls", 50, AchievementDifficulty.EASY),
WIN_20_DUELS("Win 20 duels", 20, AchievementDifficulty.EASY),
STRING_100_AMULETS("String 100 amulets", 100, AchievementDifficulty.EASY),
VIEW_15_PLAYER_PROFILES("View 15 player profiles", 15, AchievementDifficulty.EASY),
CHOP_DOWN_150_TREES("Chop down 150 trees", 150, AchievementDifficulty.EASY),
COOK_250_FOODS("Cook 250 foods", 250, AchievementDifficulty.EASY),
KILL_1_PLAYER("Kill one player", 1, AchievementDifficulty.EASY),
DIE_1_TIME("Die 1 time", 1, AchievementDifficulty.EASY),
COMPLETE_100_GNOME_COURSES("Complete 100 gnome courses", 100, AchievementDifficulty.EASY),
HARVEST_100_WATERMERLONS("Harvest 100 watermelons", 100, AchievementDifficulty.EASY),
PARTICIPATE_IN_WEAPON_GAME("Participate in the Weapon Game", 1, AchievementDifficulty.EASY),
SHEAR_10_SHEEPS("Shear 10 Sheeps", 10, AchievementDifficulty.EASY),
SETUP_A_BANK_PIN("Setup a bank pin", 1, AchievementDifficulty.EASY),
SET_YOUR_ACCOUNT_DETAILS("Set your account security details", 4, AchievementDifficulty.EASY),
DO_A_SKILLCAPE_EMOTE("Do a skillcape emote", 1, AchievementDifficulty.EASY),
ENTER_THE_LOTTERY_5_TIMES("Enter the lottery 5 times", 5, AchievementDifficulty.EASY),
USE_THE_SUPER_HEATING_SPELL_25_TIMES("Use the super heating spell 25 times", 25, AchievementDifficulty.EASY),
/* Medium Achievements */
KILL_ROCK_CRABS("Kill 100 Rock crabs", 100, AchievementDifficulty.MEDIUM),
PRESTIGE_5_TIMES("Prestige 5 times", 5, AchievementDifficulty.MEDIUM),
EXCHANGE_1000_ITEMS_PILES("Exchange 1,000 items to Piles", 1000, AchievementDifficulty.MEDIUM),
COMPLETE_10_SLAYER_TASKS("Complete 10 slayer tasks", 10, AchievementDifficulty.MEDIUM),
OBTAIN_1_BOSS_PET("Obtain 1 boss pet", 1, AchievementDifficulty.MEDIUM),
HIGH_ALCH_250_ITEMS("High alch 250 items", 250, AchievementDifficulty.MEDIUM),
OBTAIN_10_FIRECAPES("Obtain 10 firecapes", 10, AchievementDifficulty.MEDIUM),
WIN_A_DUEL_WORTH_OVER_10M("Win a duel worth over 10m", 1, AchievementDifficulty.MEDIUM),
WIN_30_PEST_CONTROL_GAMES("Win 30 Pest Control games", 30, AchievementDifficulty.MEDIUM),
CHOP_DOWN_750_TREES("Chop down 750 trees", 750, AchievementDifficulty.MEDIUM),
BURN_500_LOGS("Burn 500 logs", 500, AchievementDifficulty.MEDIUM),
OPEN_50_ITEM_SETS("Open 50 item sets", 50, AchievementDifficulty.MEDIUM),
RESET_5_STATISTICS("Reset 5 statistics", 5, AchievementDifficulty.MEDIUM),
KILL_15_PLAYER("Kill 15 players", 15, AchievementDifficulty.MEDIUM),
DIE_10_TIME("Die 10 times", 10, AchievementDifficulty.MEDIUM),
COMPLETE_250_BARB_COURSES("Complete 250 barb courses", 250, AchievementDifficulty.MEDIUM),
CUT_250_GEMS("Cut 250 gems", 250, AchievementDifficulty.MEDIUM),
KILL_25_KRAKENS("Kill 25 Krakens", 25, AchievementDifficulty.MEDIUM),
EARN_100_MAGE_ARENA_POINTS("Earn 100 Mage Arena Points", 100, AchievementDifficulty.MEDIUM),
PARTICIPATE_IN_WEAPON_GAME_10_TIMES("Participate in the Weapon Game 10 times", 10, AchievementDifficulty.MEDIUM),
SHEAR_150_SHEEPS("Shear 150 Sheeps", 150, AchievementDifficulty.MEDIUM),
ENCHANT_1000_BOLTS("Enchant 1,000 bolts", 1000, AchievementDifficulty.MEDIUM),
BURY_150_BONES("Bury or use on altar 150 bones", 150, AchievementDifficulty.MEDIUM),
USE_THE_SUPER_HEATING_SPELL_135_TIMES("Use the super heating spell 135 times", 135, AchievementDifficulty.MEDIUM),
/* Hard Achievements */
KILL_KING_BLACK_DRAGON("Kill King Black dragon 50 times", 50, AchievementDifficulty.HARD),
KILL_250_SKELETAL_WYVERNS("Kill 250 Skeletal wyverns", 250, AchievementDifficulty.HARD),
CRAFT_1500_BLOOD_RUNES("Craft 1,500 blood runes", 1500, AchievementDifficulty.HARD),
COMPLETE_100_SLAYER_TASKS("Complete 100 slayer tasks", 100, AchievementDifficulty.HARD),
OBTAIN_10_BOSS_PET("Obtain 10 boss pets", 10, AchievementDifficulty.HARD),
SPEND_100000000_ON_SHOPS("Spend 100m coins on shops", 100000000, AchievementDifficulty.HARD),
OBTAIN_50_FIRECAPES("Obtain 50 firecapes", 50, AchievementDifficulty.HARD),
CAST_VENGEANCE_350_TIMES("Cast vengeance 350 times", 350, AchievementDifficulty.HARD),
BURN_1250_LOGS("Burn 1,250 logs", 1250, AchievementDifficulty.HARD),
COOK_1000_FOODS("Cook 1,000 foods", 1000, AchievementDifficulty.HARD),
OPEN_70_CRYSTAL_CHESTS("Open 70 Crystal chests", 70, AchievementDifficulty.HARD),
KILL_50_PLAYER("Kill 50 players", 50, AchievementDifficulty.HARD),
DIE_50_TIME("Die 50 times", 50, AchievementDifficulty.HARD),
COMPLETE_500_WILD_COURSES("Complete 500 barb courses", 500, AchievementDifficulty.HARD),
MINE_1000_ROCKS("Mine 1,000 rocks", 1000, AchievementDifficulty.HARD),
EARN_500_MAGE_ARENA_POINTS("Earn 500 Mage Arena points", 500, AchievementDifficulty.HARD),
KILL_100_ZULRAHS("Kill 100 Zulrahs", 100, AchievementDifficulty.HARD),
KILL_150_KRAKENS("Kill 150 Krakens", 150, AchievementDifficulty.HARD),
KILL_100_CALLISTO("Kill 100 Callisto", 100, AchievementDifficulty.HARD),
WIN_10_WEAPON_GAMES("Win 10 Weapon Games", 10, AchievementDifficulty.HARD),
OBTAIN_10_RARE_DROPS("Obtain 10 rare drops", 10, AchievementDifficulty.HARD),
BURY_1000_BONES("Bury or use on altar 1,000 bones", 1000, AchievementDifficulty.HARD),
WIN_THE_LOTTERY_3_TMES("Win the lottery 3 times", 3, AchievementDifficulty.HARD),
;
public static List<AchievementList> asList(AchievementDifficulty difficulty) {
return Arrays.stream(values()).filter(a -> a.getDifficulty() == difficulty).sorted((a, b) -> a.name().compareTo(b.name())).collect(Collectors.toList());
}
private final String name;
private final String description;
private final int completeAmount;
private final AchievementDifficulty difficulty;
private AchievementList(String name, String description, int completeAmount, AchievementDifficulty difficulty) {
this.name = name;
this.description = description;
this.completeAmount = completeAmount;
this.difficulty = difficulty;
}
private AchievementList(String name, int completeAmount, AchievementDifficulty difficulty) {
this.name = name;
this.description = name;
this.completeAmount = completeAmount;
this.difficulty = difficulty;
}
public int getCompleteAmount() {
return completeAmount;
}
public String getDescription() {
return description;
}
public AchievementDifficulty getDifficulty() {
return difficulty;
}
public String getName() {
return name;
}
public static AchievementList getAchievement(String name) {
for (AchievementList achievements : AchievementList.values())
if (achievements.getName().equalsIgnoreCase(name))
return achievements;
return null;
}
public int getReward() {
switch (difficulty) {
case MEDIUM:
return 2;
case HARD:
return 3;
case EASY:
default:
return 1;
}
}
public static int getTotal() {
return values().length;
}
}
| [
"brandon46142@icloud.com"
] | brandon46142@icloud.com |
1b8614894b0b8b921b36907da8d69728d8d37239 | bb9140f335d6dc44be5b7b848c4fe808b9189ba4 | /Extra-DS/Corpus/class/aspectj/1911.java | e68c90c04cceafebb22cef756563ab1a620f0515 | [] | no_license | masud-technope/EMSE-2019-Replication-Package | 4fc04b7cf1068093f1ccf064f9547634e6357893 | 202188873a350be51c4cdf3f43511caaeb778b1e | refs/heads/master | 2023-01-12T21:32:46.279915 | 2022-12-30T03:22:15 | 2022-12-30T03:22:15 | 186,221,579 | 5 | 3 | null | null | null | null | UTF-8 | Java | false | false | 1,078 | java | package org.aspectj.apache.bcel.generic;
/**
* MONITORENTER - Enter monitor for object
* <PRE>Stack: ..., objectref -> ...</PRE>
*
* @version $Id: MONITORENTER.java,v 1.2 2004/11/19 16:45:19 aclement Exp $
* @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A>
*/
public class MONITORENTER extends Instruction implements ExceptionThrower, StackConsumer {
public MONITORENTER() {
super(org.aspectj.apache.bcel.Constants.MONITORENTER, (short) 1);
}
public Class[] getExceptions() {
return new Class[] { org.aspectj.apache.bcel.ExceptionConstants.NULL_POINTER_EXCEPTION };
}
/**
* Call corresponding visitor method(s). The order is:
* Call visitor methods of implemented interfaces first, then
* call methods according to the class hierarchy in descending order,
* i.e., the most specific visitXXX() call comes last.
*
* @param v Visitor object
*/
public void accept(Visitor v) {
v.visitExceptionThrower(this);
v.visitStackConsumer(this);
v.visitMONITORENTER(this);
}
}
| [
"masudcseku@gmail.com"
] | masudcseku@gmail.com |
b514ffa6e83a2bb9d6e9e2248e7a2291c6a3d1d4 | d60e287543a95a20350c2caeabafbec517cabe75 | /LACCPlus/Hadoop/483_1.java | 0c21f60163f5dfb0f768616b770b7635eae08e64 | [
"MIT"
] | permissive | sgholamian/log-aware-clone-detection | 242067df2db6fd056f8d917cfbc143615c558b2c | 9993cb081c420413c231d1807bfff342c39aa69a | refs/heads/main | 2023-07-20T09:32:19.757643 | 2021-08-27T15:02:50 | 2021-08-27T15:02:50 | 337,837,827 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,295 | java | //,temp,TestResourceManager.java,86,179,temp,TestCapacityScheduler.java,250,368
//,3
public class xxx {
@Test
public void testResourceAllocation() throws IOException,
YarnException, InterruptedException {
LOG.info("--- START: testResourceAllocation ---");
final int memory = 4 * 1024;
final int vcores = 4;
// Register node1
String host1 = "host1";
org.apache.hadoop.yarn.server.resourcemanager.NodeManager nm1 =
registerNode(host1, 1234, 2345, NetworkTopology.DEFAULT_RACK,
Resources.createResource(memory, vcores));
// Register node2
String host2 = "host2";
org.apache.hadoop.yarn.server.resourcemanager.NodeManager nm2 =
registerNode(host2, 1234, 2345, NetworkTopology.DEFAULT_RACK,
Resources.createResource(memory/2, vcores/2));
// Submit an application
Application application = new Application("user1", resourceManager);
application.submit();
application.addNodeManager(host1, 1234, nm1);
application.addNodeManager(host2, 1234, nm2);
// Application resource requirements
final int memory1 = 1024;
Resource capability1 = Resources.createResource(memory1, 1);
Priority priority1 =
org.apache.hadoop.yarn.server.resourcemanager.resource.Priority.create(1);
application.addResourceRequestSpec(priority1, capability1);
Task t1 = new Task(application, priority1, new String[] {host1, host2});
application.addTask(t1);
final int memory2 = 2048;
Resource capability2 = Resources.createResource(memory2, 1);
Priority priority0 =
org.apache.hadoop.yarn.server.resourcemanager.resource.Priority.create(0); // higher
application.addResourceRequestSpec(priority0, capability2);
// Send resource requests to the scheduler
application.schedule();
// Send a heartbeat to kick the tires on the Scheduler
nodeUpdate(nm1);
// Get allocations from the scheduler
application.schedule();
checkResourceUsage(nm1, nm2);
LOG.info("Adding new tasks...");
Task t2 = new Task(application, priority1, new String[] {host1, host2});
application.addTask(t2);
Task t3 = new Task(application, priority0, new String[] {ResourceRequest.ANY});
application.addTask(t3);
// Send resource requests to the scheduler
application.schedule();
checkResourceUsage(nm1, nm2);
// Send heartbeats to kick the tires on the Scheduler
nodeUpdate(nm2);
nodeUpdate(nm2);
nodeUpdate(nm1);
nodeUpdate(nm1);
// Get allocations from the scheduler
LOG.info("Trying to allocate...");
application.schedule();
checkResourceUsage(nm1, nm2);
// Complete tasks
LOG.info("Finishing up tasks...");
application.finishTask(t1);
application.finishTask(t2);
application.finishTask(t3);
// Notify scheduler application is finished.
AppAttemptRemovedSchedulerEvent appRemovedEvent1 =
new AppAttemptRemovedSchedulerEvent(
application.getApplicationAttemptId(), RMAppAttemptState.FINISHED, false);
resourceManager.getResourceScheduler().handle(appRemovedEvent1);
checkResourceUsage(nm1, nm2);
LOG.info("--- END: testResourceAllocation ---");
}
}; | [
"sgholami@uwaterloo.ca"
] | sgholami@uwaterloo.ca |
1178d77be27d6d9ce4e46e1452a6565c169b6dc6 | e9df3a9d1051f0e2755aa89797cc8df97a4f399a | /UniversityGamePorted/src/main/java/hu/csega/superstition/states/menu/SuperstitionMainMenuModel.java | 072dcd24d86b59c24570ff07706f7996e496e7c2 | [] | no_license | petercsengodi/games | 880fb62e77e1fcc2cbf72f78f70f1b5ca53e19b1 | 7af98b0a89f4b858ba2cef4c63c4973e17689064 | refs/heads/master | 2023-05-07T03:11:22.268658 | 2022-10-07T09:28:07 | 2022-10-07T09:28:07 | 32,595,357 | 1 | 0 | null | 2023-04-14T17:08:38 | 2015-03-20T16:43:00 | Java | UTF-8 | Java | false | false | 827 | java | package hu.csega.superstition.states.menu;
import hu.csega.games.engine.GameEngineCallback;
import hu.csega.games.engine.GameEngineFacade;
import hu.csega.games.engine.g3d.GameObjectHandler;
import hu.csega.games.engine.g3d.GameObjectPlacement;
public class SuperstitionMainMenuModel implements GameEngineCallback {
private GameObjectHandler splash;
private GameObjectPlacement cameraPlacement;
public SuperstitionMainMenuModel() {
cameraPlacement = new GameObjectPlacement();
cameraPlacement.position.set(0f, 0f, -10f);
}
@Override
public Object call(GameEngineFacade facade) {
return facade;
}
public GameObjectHandler getSplash() {
return splash;
}
public void setSplash(GameObjectHandler splash) {
this.splash = splash;
}
public GameObjectPlacement camera() {
return cameraPlacement;
}
}
| [
"petercsengodi@users.noreply.github.com"
] | petercsengodi@users.noreply.github.com |
7ea16294b17a529bdacb0a491ba038dd8533eaf2 | 78f284cd59ae5795f0717173f50e0ebe96228e96 | /factura-negocio/src/cl/stotomas/factura/capacitacion_9/copy2/TestingFinalTry.java | fa77facc5c499eda75ea0f9805515e7eaf44f37a | [] | no_license | Pattricio/Factura | ebb394e525dfebc97ee2225ffc5fca10962ff477 | eae66593ac653f85d05071b6ccb97fb1e058502d | refs/heads/master | 2020-03-16T03:08:45.822070 | 2018-05-07T15:29:25 | 2018-05-07T15:29:25 | 132,481,305 | 0 | 0 | null | null | null | null | ISO-8859-1 | Java | false | false | 1,805 | java | package cl.stotomas.factura.capacitacion_9.copy2;
import java.applet.Applet;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
public class TestingFinalTry {
public static String decryptMessage(final byte[] message, byte[] secretKey)
{
try {
// CÓDIGO VULNERABLE
final SecretKeySpec KeySpec = new SecretKeySpec(secretKey, "DES");
final Cipher cipher = Cipher.getInstance("DES/ECB/PKCS5Padding");
cipher.init(Cipher.DECRYPT_MODE, KeySpec);
// RECOMENDACIÓN VERACODE
// final Cipher cipher = Cipher.getInstance("DES...");
// cipher.init(Cipher.DECRYPT_MODE, KeySpec);
return new String(cipher.doFinal(message));
}
catch(Exception e)
{
e.printStackTrace();
}
return null;
}
class Echo {
// Control de Proceso
// Posible reemplazo de librería por una maliciosa
// Donde además s enos muestra el nombre explícito de esta.
public native void runEcho();
{
System.loadLibrary("echo"); // Se carga librería
}
public void main(String[] args)
{
new Echo().runEcho();
}
public final class TestApplet extends Applet {
private static final long serialVersionUID = 1L;
}
public final class TestAppletDos extends Applet {
private static final long serialVersionUID = 1L;
}
//Comparación de referencias de objeto en lugar de contenido de objeto
// El if dentro de este código no se ejecutará.
// porque se prioriza el String a mostrar.
public final class compareStrings{
public String str1;
public String str2;
public void comparar()
{
if (str1 == str2)
{
System.out.println("str1 == str2");
}
}
}
}
}
| [
"Adriana Molano@DESKTOP-GQ96FK8"
] | Adriana Molano@DESKTOP-GQ96FK8 |
058fb728147735b7766775b7faa30216ebdf005e | 53d677a55e4ece8883526738f1c9d00fa6560ff7 | /com/tencent/mm/protocal/c$ir.java | 931a7fea758a06a5c356132376482dbcd17c189e | [] | no_license | 0jinxing/wechat-apk-source | 544c2d79bfc10261eb36389c1edfdf553d8f312a | f75eefd87e9b9ecf2f76fc6d48dbba8e24afcf3d | refs/heads/master | 2020-06-07T20:06:03.580028 | 2019-06-21T09:17:26 | 2019-06-21T09:17:26 | 193,069,132 | 9 | 4 | null | null | null | null | UTF-8 | Java | false | false | 364 | java | package com.tencent.mm.protocal;
public final class c$ir extends c.g
{
public c$ir()
{
super("setLocalData", "setLocalData", 180, false);
}
}
/* Location: C:\Users\Lin\Downloads\dex-tools-2.1-SNAPSHOT\dex-tools-2.1-SNAPSHOT\classes7-dex2jar.jar
* Qualified Name: com.tencent.mm.protocal.c.ir
* JD-Core Version: 0.6.2
*/ | [
"172601673@qq.com"
] | 172601673@qq.com |
e3902b3d283e3f6cdcf56510e4d8d29306d3f1aa | 8d751560244cf0da3e806adf94bac0eaa6bb5772 | /src/main/java/com/onyx/concurrency/example/aqs/ForkJoinTaskDemo2.java | 11487be9f1e57b41afdc11332c7ac82fbc8f0925 | [] | no_license | changhe626/concurrency | 30c37ddb53b4806eca1f8ac48d5d577f557097a7 | 8a9539323b339639f49a98becebfd8edff2453a2 | refs/heads/master | 2020-04-11T03:46:38.799258 | 2018-12-27T03:05:03 | 2018-12-27T03:05:03 | 161,489,222 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,018 | java | package com.onyx.concurrency.example.aqs;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.UUID;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.RecursiveAction;
import java.util.concurrent.TimeUnit;
/**
* <p>ForkJoin框架实例1-RecursiveAction-无返回值-数据交换</p>
* <p>数据交换:专网A内的数据库DB1上有100万数据,需要通过数据交换服务发送到专网B的数据库DB2上。
* 1.原来的做法:将这100万数据按照5000条一组进行分组,然后每组都通过一个线程进行发送。不知道什么原因,总之经常会出现重复发送的数据。
* 2.新的做法:根据ForkJoin框架编程思想,将这100万数据按照阈值THRESHOLD进行子任务划分,然后依次发送。</p>
*
**/
public class ForkJoinTaskDemo2 {
private static final Logger LOGGER = LoggerFactory.getLogger(ForkJoinTaskDemo2.class);
//模拟数据库DB2
static ConcurrentLinkedQueue DB2 = new ConcurrentLinkedQueue();
/**
* <p>定义一个数据交换任务,继承自RecursiveAction,用于发送数据交换的JSON数据</p>
*
* @author hanchao 2018/4/15 19:28
**/
static class DataExchangeTask extends RecursiveAction {
//阈值=5000
private static final int THRESHOLD = 5000;
//开始索引
private int start;
//结束索引
private int end;
//交换的数据
List<String> list;
public DataExchangeTask(int start, int end, List<String> list) {
this.start = start;
this.end = end;
this.list = list;
}
@Override
protected void compute() {
//如果当前任务数量在阈值范围内,则发送数据
if (end - start < THRESHOLD) {
//发送Json数据
try {
sendJsonDate(this.list);
} catch (InterruptedException e) {
e.printStackTrace();
}
} else {
//如果当前任务数量超出阈值,则进行任务拆分
int middle = (start + end) / 2;
//左边的子任务
DataExchangeTask left = new DataExchangeTask(start, middle, list);
//右边的子任务
DataExchangeTask right = new DataExchangeTask(middle, end, list);
//并行执行两个“小任务”
left.fork();
right.fork();
}
}
/**
* <p>发送数据</p>
*
* @author hanchao 2018/4/15 20:04
**/
private void sendJsonDate(List<String> list) throws InterruptedException {
//遍历
for (int i = start; i < end; i++) {
//每个元素都插入到DB2中 ==> 模拟数据发送到DB2
DB2.add(list.get(i));
}
//假定每次发送耗时1ms
Thread.sleep(1);
}
}
/**
* <p>模拟从数据库中查询数据并形成JSON个是的数据</p>
*
* @author hanchao 2018/4/15 20:21
**/
static void queryDataToJson(List list) {
//随机获取100万~110万个数据
Random random = new Random();
int count = random.nextInt(1100000);
for (int i = 0; i < count; i++) {
list.add("{\"id\":\"" + UUID.randomUUID() + "\"}");
}
}
/**
* <p>RecursiveAction-无返回值:可以看成只有fork没有join</p>
*
* @author hanchao 2018/4/15 19:26
**/
public static void main(String[] args) throws InterruptedException {
//从数据库中获取所有需要交换的数据
List dataList = new ArrayList<String>();
queryDataToJson(dataList);
int count = dataList.size();
LOGGER.info("1.从DB1中读取数据并存放到List中,共计读取了" + count + "条数据.");
//DB2的数据量
LOGGER.info("2.开始时,DB2中的数据量:" + DB2.size());
LOGGER.info("3.通过ForkJoin框架进行子任务划分,并发送数据");
//定义一个ForkJoin线程池
ForkJoinPool forkJoinPool = new ForkJoinPool();
//定义一个可分解的任务
DataExchangeTask dataExchangeTask = new DataExchangeTask(0, count, dataList);
//向ForkJoin线程池提交任务
forkJoinPool.submit(dataExchangeTask);
//线程阻塞,等待所有任务完成
forkJoinPool.awaitTermination(5, TimeUnit.SECONDS);
//任务完成之后关闭线程池
forkJoinPool.shutdown();
//查询最终传输的数据量
LOGGER.info("4.结束时,DB2中的数据量:" + DB2.size());
//查询其中一条数据
LOGGER.info("5.查询其中一条数据:" + DB2.peek());
}
} | [
"changhe626@163.com"
] | changhe626@163.com |
c1ace8965e6fb06bd5ce889edf19c06d1c837d9e | 47d4bddbee861ac39f13bb5a6e4bc7b10d952b47 | /plugins/other/gov.nasa.jpl.imce.fm/src-gen/gov/nasa/jpl/imce/fm/impl/PrimitiveTypeImpl.java | a273ea524aff5991c174047d0a928a9e301b302e | [] | no_license | carlosgj/gov.nasa.jpl.imce.oml | 8e674f62904f12280aa7eacf4b18372d48fbfc0d | 6cab85610daed6d2d80e199ca914cfebaa6e9a5b | refs/heads/master | 2021-08-30T03:50:32.958498 | 2017-12-14T20:37:06 | 2017-12-14T20:37:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 723 | java | /**
*/
package gov.nasa.jpl.imce.fm.impl;
import gov.nasa.jpl.imce.fm.FmPackage;
import gov.nasa.jpl.imce.fm.PrimitiveType;
import org.eclipse.emf.ecore.EClass;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Primitive Type</b></em>'.
* <!-- end-user-doc -->
*
* @generated
*/
public abstract class PrimitiveTypeImpl extends TypeImpl implements PrimitiveType {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected PrimitiveTypeImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FmPackage.Literals.PRIMITIVE_TYPE;
}
} //PrimitiveTypeImpl
| [
"nicolas.f.rouquette@jpl.nasa.gov"
] | nicolas.f.rouquette@jpl.nasa.gov |
1dac2dd6bf6c3845184cd5b065e116a7e26a738d | 4ec0d18654f11ecefb7b131f1467d3d0f97ea035 | /src/com/kola/kmp/logic/combat/impl/KCombatRoleResultImpl.java | ad9c294da3cc9b96ef29eb92623201381856819a | [] | no_license | cietwwl/CFLogic | b5394afd4c10fdf41a14389f171f088958089c97 | 40f1044ea44fd3b6fa50412ffcb7954e3a9d4d3f | refs/heads/master | 2021-01-23T16:04:51.113635 | 2015-05-16T06:24:00 | 2015-05-16T06:24:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,837 | java | package com.kola.kmp.logic.combat.impl;
import java.util.HashMap;
import java.util.Map;
import com.kola.kmp.logic.combat.KCombatType;
import com.kola.kmp.logic.combat.resulthandler.ICombatRoleResult;
/**
*
* @author PERRY CHAN
*/
public class KCombatRoleResultImpl implements ICombatRoleResult {
private long _roleId;
private boolean _alive;
private long _currentHp;
private long _petCurrentHp = -1;
private boolean _escape;
private long _totalDamage;
private int _maxComboCount;
private int _maxBeHitCount;
private Map<Integer, Short> _killMonsterMap = new HashMap<Integer, Short>();
private boolean _win;
private long _totalTime;
private KCombatType _type;
private Object _attachment;
/**
*
*/
KCombatRoleResultImpl(KCombatType combatType) {
this._type = combatType;
}
@Override
public long getRoleId() {
return _roleId;
}
void setRoleId(long pRoleId) {
this._roleId = pRoleId;
}
@Override
public boolean isAlive() {
return _alive;
}
void setAlive(boolean pAlive) {
this._alive = pAlive;
}
@Override
public long getRoleCurrentHp() {
return _currentHp;
}
void setCurrentHp(long pCurrentHp) {
this._currentHp = pCurrentHp;
}
@Override
public long getPetCurrentHp() {
return _petCurrentHp;
}
void setPetCurrentHp(long pCurrentHp) {
_petCurrentHp = pCurrentHp;
}
@Override
public boolean isEscape() {
return _escape;
}
void setEscape(boolean pEscape) {
this._escape = pEscape;
}
@Override
public long getTotalDamage() {
return _totalDamage;
}
void setTotalDamage(long pDamage) {
this._totalDamage = pDamage;
}
@Override
public int getMaxComboCount() {
return _maxComboCount;
}
void setMaxComboCount(int pMaxComboCount) {
this._maxComboCount = pMaxComboCount;
}
@Override
public int getMaxBeHitCount() {
return _maxBeHitCount;
}
void setMaxBeHitCount(int pMaxBeHitCount) {
this._maxBeHitCount = pMaxBeHitCount;
}
@Override
public Map<Integer, Short> getKillMonsterCount() {
return _killMonsterMap;
}
void addKillMonster(int templateId, int addCount) {
Short currentCount = this._killMonsterMap.get(templateId);
if (currentCount != null) {
addCount += currentCount;
}
this._killMonsterMap.put(templateId, (short) addCount);
}
void addKillMonsterAll(Map<Integer, Short> map){
this._killMonsterMap.putAll(map);
}
@Override
public long getCombatTime() {
return _totalTime;
}
void setCombatTime(long time) {
this._totalTime = time;
}
@Override
public boolean isWin() {
return _win;
}
void setIsWin(boolean win) {
_win = win;
}
@Override
public Object getAttachment() {
return _attachment;
}
@Override
public void setAttachment(Object pAttachment) {
_attachment = pAttachment;
}
@Override
public KCombatType getCombatType() {
return _type;
}
}
| [
"sleepagain123@163.com"
] | sleepagain123@163.com |
224015482f3f25d3d2499c1cb82137ebc1bba253 | 527e6c527236f7a1f49800667a9331dc52c7eefa | /src/main/java/it/csi/siac/siacbilapp/frontend/ui/util/wrappers/modificabilita/ElementoControlloClassificatoriEditabiliFactory.java | 6f0d3dec2142e1cc795e8197db251a57d01efb99 | [] | no_license | unica-open/siacbilapp | 4953a8519a839c997798c3d39e220f61c0bce2b6 | bf2bf7d5609fe32cee2409057b811e5a6fa47a76 | refs/heads/master | 2021-01-06T14:57:26.105285 | 2020-03-03T17:01:19 | 2020-03-03T17:01:19 | 241,366,496 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,087 | java | /*
*SPDX-FileCopyrightText: Copyright 2020 | CSI Piemonte
*SPDX-License-Identifier: EUPL-1.2
*/
package it.csi.siac.siacbilapp.frontend.ui.util.wrappers.modificabilita;
import it.csi.siac.siacbilser.frontend.webservice.msg.ControllaClassificatoriModificabiliCapitoloResponse;
/**
* Factory per i wrapper per il controllo dell'editabilità.
*
* @author Marchino Alessandro
* @version 1.0.0 08/10/2013
*
*/
public final class ElementoControlloClassificatoriEditabiliFactory {
/** Non permettere l'instanziazione della classe */
private ElementoControlloClassificatoriEditabiliFactory() {
}
/**
* Ottiene un'istanza del wrapper.
*
* @param response la response da wrappare
*
* @return il wrapper creato
*/
public static ElementoControlloClassificatoriEditabili getInstance(ControllaClassificatoriModificabiliCapitoloResponse response) {
ElementoControlloClassificatoriEditabili wrapper = new ElementoControlloClassificatoriEditabili();
wrapper.setClassificatoriNonModificabili(response.getClassificatoriNonModificabili());
return wrapper;
}
}
| [
"michele.perdono@csi.it"
] | michele.perdono@csi.it |
921ae9be0929184ed77536cf15a6ac28200049f4 | 1aeed02100d682fd5c8cd1fe78a109daa8f5eb72 | /barscaner/src/main/java/github/hotstu/lib/barscaner/InactivityTimer.java | 01b59a48ff0bae1abd566bee0d1cebfd20c67092 | [
"Apache-2.0"
] | permissive | hotstu/barscan | 78c66c718e4b7d2b5dcebf00d76b801b5868630f | 2080d3f5337fd0849af7b2ef323c3912149ae9c5 | refs/heads/master | 2020-04-13T07:44:04.424918 | 2020-04-10T10:35:10 | 2020-04-10T10:35:10 | 163,060,563 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,540 | java | /*
* Copyright (C) 2010 ZXing 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 github.hotstu.lib.barscaner;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.AsyncTask;
import android.os.BatteryManager;
import android.util.Log;
import java.util.concurrent.RejectedExecutionException;
/**
* Finishes an activity after a period of inactivity if the device is on battery power.
*/
final class InactivityTimer {
private static final String TAG = InactivityTimer.class.getSimpleName();
private static final long INACTIVITY_DELAY_MS = 5 * 60 * 1000L;
private final Activity activity;
private final BroadcastReceiver powerStatusReceiver;
private boolean registered;
private AsyncTask<Object,Object,Object> inactivityTask;
InactivityTimer(Activity activity) {
this.activity = activity;
powerStatusReceiver = new PowerStatusReceiver();
registered = false;
onActivity();
}
synchronized void onActivity() {
cancel();
inactivityTask = new InactivityAsyncTask();
try {
inactivityTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
} catch (RejectedExecutionException ree) {
Log.w(TAG, "Couldn't schedule inactivity task; ignoring");
}
}
synchronized void onPause() {
cancel();
if (registered) {
activity.unregisterReceiver(powerStatusReceiver);
registered = false;
} else {
Log.w(TAG, "PowerStatusReceiver was never registered?");
}
}
synchronized void onResume() {
if (registered) {
Log.w(TAG, "PowerStatusReceiver was already registered?");
} else {
activity.registerReceiver(powerStatusReceiver, new IntentFilter(Intent.ACTION_BATTERY_CHANGED));
registered = true;
}
onActivity();
}
private synchronized void cancel() {
AsyncTask<?,?,?> task = inactivityTask;
if (task != null) {
task.cancel(true);
inactivityTask = null;
}
}
void shutdown() {
cancel();
}
private final class PowerStatusReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
if (Intent.ACTION_BATTERY_CHANGED.equals(intent.getAction())) {
// 0 indicates that we're on battery
boolean onBatteryNow = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1) <= 0;
if (onBatteryNow) {
InactivityTimer.this.onActivity();
} else {
InactivityTimer.this.cancel();
}
}
}
}
private final class InactivityAsyncTask extends AsyncTask<Object,Object,Object> {
@Override
protected Object doInBackground(Object... objects) {
try {
Thread.sleep(INACTIVITY_DELAY_MS);
Log.i(TAG, "Finishing activity due to inactivity");
activity.finish();
} catch (InterruptedException e) {
// continue without killing
}
return null;
}
}
}
| [
"hgleifeng@foxmail.com"
] | hgleifeng@foxmail.com |
6c24a761d61f5dc5f38332acfe59aaed7d34cdf4 | 5666f373041aef1b5d8dbdcf387614bf7adc9a3d | /datatables-core/src/main/java/com/github/dandelion/datatables/core/package-info.java | 14b4c62b5cc8d2b074b54f1f1d8c20f4537d35d2 | [
"BSD-3-Clause"
] | permissive | ayongw/dandelion-datatables | d6f80411aadccc8462601bcca30d695c03d9057d | 8822aab2411c275f3194508bc91a22be9967e024 | refs/heads/master | 2021-01-11T09:46:57.675825 | 2015-07-03T16:45:36 | 2015-07-03T16:45:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,663 | java | /*
* [The "BSD licence"]
* Copyright (c) 2013-2015 Dandelion
* 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. Neither the name of Dandelion 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 AUTHOR ``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 AUTHOR 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.
*/
/**
* <p>
* Dandelion-Datatables main package.
* </p>
*
* @author Thibault Duchateau
*/
package com.github.dandelion.datatables.core; | [
"thibault.duchateau@gmail.com"
] | thibault.duchateau@gmail.com |
e84e74f039afc14a3e1779e66f57dba761d794d2 | b18c99627ce983cc3ec19533640e5978ee430f6b | /src/test/java/com/example/kafkatest/app/AppApplicationTests.java | 26564ad71b034e14e9b07a79c4b34e6aa181eca2 | [] | no_license | OparaComputools/ProducerApp | 9101aa864399e196bb97299f7e1264f2d41a358a | 0dc9ec718630297936a067ac78dd333ff107ab53 | refs/heads/master | 2023-01-05T16:44:22.244484 | 2020-10-19T09:55:25 | 2020-10-19T09:55:25 | 305,337,456 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 223 | java | package com.example.kafkatest.app;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class AppApplicationTests {
@Test
void contextLoads() {
}
}
| [
"you@example.com"
] | you@example.com |
d37f89dfbc55722c8869ec1b47c152f838eb975c | 9e50d3e4b3ac25340064d02cb9b13d864f38a97f | /src/main/java/ua/com/vetal/repositories/LinkRepository.java | 5bf5c39b60c6700ca57c54d8646d15faf8269fbc | [] | no_license | AnGo84/Vetal | 1e9a14058125cc38bc56e8d6757f03c3ffee066b | 058ab65bbf58ab48df59f7aaf2ed727d5a8a557f | refs/heads/master | 2022-10-04T13:09:49.893740 | 2021-10-13T21:27:57 | 2021-10-13T21:27:57 | 142,024,419 | 2 | 0 | null | 2022-09-01T23:24:41 | 2018-07-23T14:17:45 | Java | UTF-8 | Java | false | false | 374 | java | package ua.com.vetal.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import ua.com.vetal.entity.Link;
import java.util.List;
@Repository
public interface LinkRepository extends JpaRepository<Link, Long> {
Link findByFullName(String name);
List<Link> findByLinkType_Id(Long typeID);
}
| [
"ango1984@gmail.com"
] | ango1984@gmail.com |
6c9c5526184caeb5fecc78e71d41823066e9bc0c | 47a1618c7f1e8e197d35746639e4480c6e37492e | /src/oracle/retail/stores/pos/services/modifyitem/DeliveryLaunchShuttle.java | ad6b6ce10dbb5720c68553ef83f776f04ce3ec1f | [] | no_license | dharmendrams84/POSBaseCode | 41f39039df6a882110adb26f1225218d5dcd8730 | c588c0aa2a2144aa99fa2bbe1bca867e008f47ee | refs/heads/master | 2020-12-31T07:42:29.748967 | 2017-03-29T08:12:34 | 2017-03-29T08:12:34 | 86,555,051 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 4,500 | java | /* ===========================================================================
* Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
* ===========================================================================
* $Header: rgbustores/applications/pos/src/oracle/retail/stores/pos/services/modifyitem/DeliveryLaunchShuttle.java /rgbustores_13.4x_generic_branch/1 2011/05/05 14:06:26 mszekely Exp $
* ===========================================================================
* NOTES
* <other useful comments, qualifications, etc.>
*
* MODIFIED (MM/DD/YY)
* cgreene 05/27/10 - convert to oracle packaging
* cgreene 05/26/10 - convert to oracle packaging
* cgreene 04/27/10 - XbranchMerge cgreene_refactor-duplicate-pos-classes
* from st_rgbustores_techissueseatel_generic_branch
* abondala 01/03/10 - update header date
* aphulamb 11/22/08 - Checking files after code review by Naga
* aphulamb 11/13/08 - Check in all the files for Pickup Delivery Order
* functionality
* aphulamb 11/13/08 - Delivery launch shuttle
*
* ===========================================================================
*/
package oracle.retail.stores.pos.services.modifyitem;
import oracle.retail.stores.pos.services.common.FinancialCargoShuttle;
import oracle.retail.stores.foundation.tour.ifc.BusIfc;
import oracle.retail.stores.foundation.tour.ifc.ShuttleIfc;
import oracle.retail.stores.foundation.utility.Util;
import oracle.retail.stores.pos.services.pickup.PickupDeliveryOrderCargo;
public class DeliveryLaunchShuttle extends FinancialCargoShuttle implements ShuttleIfc
{
// This id is used to tell
// the compiler not to generate a
// new serialVersionUID.
//
static final long serialVersionUID = -82268067153917575L;
/**
* revision number
*/
public static final String revisionNumber = "$Revision: /rgbustores_13.4x_generic_branch/1 $";
// Calling service's cargo
protected ItemCargo itemCargo = null;
//----------------------------------------------------------------------
/**
Loads the item cargo.
<P>
@param bus Service Bus to copy cargo from.
**/
//----------------------------------------------------------------------
public void load(BusIfc bus)
{
// load the financial cargo
super.load(bus);
itemCargo = (ItemCargo)bus.getCargo();
}
//----------------------------------------------------------------------
/**
Transfers the item cargo to the pickup delivery order cargo for the delivery service.
<P>
@param bus Service Bus to copy cargo to.
**/
//----------------------------------------------------------------------
public void unload(BusIfc bus)
{
// unload the financial cargo
super.unload(bus);
PickupDeliveryOrderCargo pickupDeliveryOrderCargo = (PickupDeliveryOrderCargo)bus.getCargo();
pickupDeliveryOrderCargo.setRegister(itemCargo.getRegister());
pickupDeliveryOrderCargo.setTransactionType(itemCargo.getTransactionType());
pickupDeliveryOrderCargo.setTransaction(itemCargo.getTransaction());
pickupDeliveryOrderCargo.setCustomer(itemCargo.getCustomer());
pickupDeliveryOrderCargo.setLineItems(itemCargo.getItems());
pickupDeliveryOrderCargo.setItem(itemCargo.getItem());
pickupDeliveryOrderCargo.setStoreStatus(itemCargo.getStoreStatus());
pickupDeliveryOrderCargo.setOperator(itemCargo.getOperator());
pickupDeliveryOrderCargo.setTenderLimits(itemCargo.getTenderLimits());
}
//----------------------------------------------------------------------
/**
Returns a string representation of this object.
<P>
@return String representation of object
**/
//----------------------------------------------------------------------
public String toString()
{
return "Class: InquiryOptionsLaunchShuttle (Revision " + getRevisionNumber() + ")" + hashCode();
}
//----------------------------------------------------------------------
/**
Returns the revision number of the class.
<P>
@return String representation of revision number
**/
//----------------------------------------------------------------------
public String getRevisionNumber()
{
return (Util.parseRevisionNumber(revisionNumber));
}
}
| [
"Ignitiv021@Ignitiv021-PC"
] | Ignitiv021@Ignitiv021-PC |
ece70f0ff1865da00d2e02dfc3be456a218a1704 | 161bea50f281dce31fc4ae30b13b357fee99e53d | /toprank-pad-web/src/main/java/cc/toprank/byd/util/ResultHelper.java | 1c6fa9c90cd24e64e92ad5e02958ad97d96fea23 | [] | no_license | jeluck/toprank-pad | 735201c543f8137cf4e3b585c40e5059cc1b097f | c5b74a69b41fcbe18c2aef752a32e912bf564486 | refs/heads/master | 2020-03-21T13:10:12.060575 | 2018-06-25T13:56:37 | 2018-06-25T13:56:37 | 138,591,388 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 375 | java | package cc.toprank.byd.util;
/**
* ${DESCRIPTION}
*
* @author LeeJun
* @create 2017-05-23 9:45
*/
public class ResultHelper {
/**
* 判断数据库操作是否成功
*
* @author LeeJun
* @time 2017-5-23 9:45
* @version 2.0.0
*/
public static boolean retBool(Integer result) {
return null != result && result >= 0;
}
}
| [
"549815578@qq.com"
] | 549815578@qq.com |
b18eaa9b3b05f5d71f8f4380248150bf8561a0e2 | f107fe85d58dde4c859a4c92799e83a7d16dde31 | /panzer/src/main/java/panzer/models/parts/BasePart.java | 9149d4b3e852d8101ee6be952d66f149e10e25b1 | [] | no_license | rayailieva/JavaOOPAdvanced | b8ec65bf11340313d968fe970b61b4f547e56ee3 | facfbf7ad22b90a0b17ee8767bef75862cb413c0 | refs/heads/master | 2020-03-22T16:23:37.646967 | 2018-08-13T09:51:06 | 2018-08-13T09:51:06 | 140,323,673 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 633 | java | package panzer.models.parts;
import panzer.contracts.Part;
import java.math.BigDecimal;
public abstract class BasePart implements Part {
private String model;
private double weight;
private BigDecimal price;
protected BasePart(String model, double weight, BigDecimal price) {
this.model = model;
this.weight = weight;
this.price = price;
}
@Override
public double getWeight() {
return this.weight;
}
@Override
public BigDecimal getPrice() {
return this.price;
}
@Override
public String getModel() {
return this.model;
}
}
| [
"rajcheto@gmail.com"
] | rajcheto@gmail.com |
9c9190f3960acd7eab1120a65184be491b64529f | 7ad54455ccfdd0c2fa6c060b345488ec8ebb1cf4 | /signalprocesser/voronoi/shapegeneration/ShapeGenerationException.java | ab02b1c1d6e1a362e285bbe522a02a07f891ea00 | [] | no_license | chetanreddym/segmentation-correction-tool | afdbdaa4642fcb79a21969346420dd09eea72f8c | 7ca3b116c3ecf0de3a689724e12477a187962876 | refs/heads/master | 2021-05-13T20:09:00.245175 | 2018-01-10T04:42:03 | 2018-01-10T04:42:03 | 116,817,741 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 186 | java | package signalprocesser.voronoi.shapegeneration;
public class ShapeGenerationException extends Exception
{
public ShapeGenerationException(String message) {
super(message);
}
}
| [
"chetanb4u2009@outlook.com"
] | chetanb4u2009@outlook.com |
fd687bc1b11deffd1409423761dbeee93120dc9b | 79e4da87d5cd334d449d6819bbfe10e24fe9f14c | /kontroll-api/kontroll-content/src/test/java/com/tmt/kontroll/content/persistence/conversion/impl/ByteStringConverterTest.java | de279a2fcfdb993254d23acdf8352f1274ba45ae | [] | no_license | SergDerbst/Kontroll | 0a1a9563dfc83cba361a6999ff978b0996f9e484 | 6b07b8a511ba4b0b4bd7522efdce08cc9dd5c0dd | refs/heads/master | 2021-01-11T00:11:13.768181 | 2015-04-19T11:28:42 | 2015-04-19T11:28:42 | 15,509,212 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 574 | java | package com.tmt.kontroll.content.persistence.conversion.impl;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class ByteStringConverterTest extends ValueStringConverterTest<Byte, String> {
public ByteStringConverterTest() {
super(new ByteStringConverter(),
Byte.class,
new Byte((byte) 0),
"0",
String.class,
"boing",
"boing");
}
@Test
public void testThatResponsibilityWorksForPrimitive() {
assertEquals((byte) 0, new ByteStringConverter().convertToValue("0", Byte.TYPE));
}
}
| [
"sergio.weigel@gmail.com"
] | sergio.weigel@gmail.com |
5d5b86e686b60ef595fe0c7bbe3dd58187fdae4a | 3c68655e399307704790a8c1e17e668b235d27d3 | /07_JSON_Processing/exercises/ProductsShop/src/main/java/app/domain/dto/json/p00_seed_database/ImportProductJsonDto.java | 4bce74897be506dfe322e6fd7b3fcffabd32871a | [] | no_license | IvoIvanov77/Databases-Frameworks---Hibernate-Spring-Data---March-2018 | 17a3cecaab17f288e2306386b43a90df84a0f7b5 | ffb249fd1b98408be651360af28db91977657edd | refs/heads/master | 2021-03-30T21:28:22.868394 | 2018-05-14T19:13:18 | 2018-05-14T19:13:18 | 124,792,252 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,120 | java | package app.domain.dto.json.p00_seed_database;
import app.domain.models.Product;
import com.google.gson.annotations.Expose;
import java.math.BigDecimal;
public class ImportProductJsonDto {
@Expose
private String name;
@Expose
private BigDecimal price;
@Expose
private String sellerName;
public ImportProductJsonDto(Product product) {
this.name = product.getName();
this.price = product.getPrice();
String firstName = product.getSeller().getFirstName();
this.sellerName = String.format("%s %s",
firstName == null ? "" : firstName,
product.getSeller().getLastName()).trim();
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public BigDecimal getPrice() {
return price;
}
public void setPrice(BigDecimal price) {
this.price = price;
}
public String getSellerName() {
return sellerName;
}
public void setSellerName(String sellerName) {
this.sellerName = sellerName;
}
}
| [
"ivanov_ir@abv.bg"
] | ivanov_ir@abv.bg |
7aef71c39cedc5cbf30b96c68c378d8c60721de4 | 74b2e8708cfe013527704c257e680020aaf8eb3c | /src/org/jfree/demo/DrawStringPanel.java | 7e1683a27ad4fee1da0b449a86a15289b881c2de | [] | no_license | elfkingw/caipiao | 7d9768683d50fa92d62f14dc19905eba45a90eba | 65a0ee0722765ba359e1e88263384b20f3272bcf | refs/heads/master | 2021-06-04T05:40:46.490377 | 2019-02-02T09:10:07 | 2019-02-02T09:10:07 | 10,156,520 | 1 | 1 | null | 2013-05-20T14:41:26 | 2013-05-19T14:26:25 | Java | UTF-8 | Java | false | false | 5,546 | java | /* ========================================================================
* JCommon : a free general purpose class library for the Java(tm) platform
* ========================================================================
*
* (C) Copyright 2000-2005, by Object Refinery Limited and Contributors.
*
* Project Info: http://www.jfree.org/jcommon/index.html
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
* License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
* USA.
*
* [Java is a trademark or registered trademark of Sun Microsystems, Inc.
* in the United States and other countries.]
*
* --------------------
* DrawStringPanel.java
* --------------------
* (C) Copyright 2003, 2004, by Object Refinery Limited.
*
* Original Author: David Gilbert (for Object Refinery Limited);
* Contributor(s): -;
*
* $Id: DrawStringPanel.java,v 1.6 2007/11/02 17:50:35 taqua Exp $
*
* Changes
* -------
* 10-Jun-2003 : Version 1;
* 30-Sep-2004 : Moved drawRotatedString() from RefineryUtilities --> TextUtilities (DG);
*
*/
package org.jfree.demo;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Insets;
import java.awt.geom.Line2D;
import java.awt.geom.Rectangle2D;
import javax.swing.JPanel;
import org.jfree.text.TextUtilities;
import org.jfree.ui.TextAnchor;
/**
* A panel used by the {@link DrawStringDemo} class.
*
* @author David Gilbert
*/
public class DrawStringPanel extends JPanel {
/** The preferred size for the panel. */
private static final Dimension PREFERRED_SIZE = new Dimension(500, 300);
/** Is the text rotated. */
private boolean rotate;
/** The text to display. */
private String text = "Hello World";
/** The text anchor. */
private TextAnchor anchor = TextAnchor.TOP_LEFT;
/** The rotation anchor. */
private TextAnchor rotationAnchor = TextAnchor.TOP_LEFT;
/** The font. */
private Font font = new Font("Serif", Font.PLAIN, 12);
/** The rotation angle. */
private double angle;
/**
* Creates a new panel.
*
* @param text the text.
* @param rotate a flag that controls whether or not the text is rotated.
*/
public DrawStringPanel(final String text, final boolean rotate) {
this.text = text;
this.rotate = rotate;
}
/**
* Returns the preferred size for the panel.
*
* @return The preferred size.
*/
public Dimension getPreferredSize() {
return PREFERRED_SIZE;
}
/**
* Sets the text anchor.
*
* @param anchor the text anchor.
*/
public void setAnchor(final TextAnchor anchor) {
this.anchor = anchor;
}
/**
* Sets the rotation anchor.
*
* @param anchor the rotation anchor.
*/
public void setRotationAnchor(final TextAnchor anchor) {
this.rotationAnchor = anchor;
}
/**
* Sets the rotation angle.
*
* @param angle the rotation angle.
*/
public void setAngle(final double angle) {
this.angle = angle;
}
/**
* Returns the font.
*
* @return The font.
*/
public Font getFont() {
return this.font;
}
/**
* Sets the font.
*
* @param font the font.
*/
public void setFont(final Font font) {
this.font = font;
}
/**
* Paints the panel.
*
* @param g the graphics device.
*/
public void paintComponent(final Graphics g) {
super.paintComponent(g);
final Graphics2D g2 = (Graphics2D) g;
final Dimension size = getSize();
final Insets insets = getInsets();
final Rectangle2D available = new Rectangle2D.Double(
insets.left, insets.top,
size.getWidth() - insets.left - insets.right,
size.getHeight() - insets.top - insets.bottom
);
final double x = available.getCenterX();
final double y = available.getCenterY();
final Line2D line1 = new Line2D.Double(x - 2.0, y + 2.0, x + 2.0, y - 2.0);
final Line2D line2 = new Line2D.Double(x - 2.0, y - 2.0, x + 2.0, y + 2.0);
g2.setPaint(Color.red);
g2.draw(line1);
g2.draw(line2);
g2.setFont(this.font);
g2.setPaint(Color.black);
if (this.rotate) {
TextUtilities.drawRotatedString(
this.text, g2, (float) x, (float) y,
this.anchor, this.angle, this.rotationAnchor
);
}
else {
TextUtilities.drawAlignedString(this.text, g2, (float) x, (float) y, this.anchor);
}
}
}
| [
"elfkingw@gmail.com"
] | elfkingw@gmail.com |
cd5aa4ed96a79d98fdfb85f2aa498bffb95b63ce | 9ad0aa646102f77501efde94d115d4ff8d87422f | /LeetCode/java/src/word_break/Solution.java | 26b9fdd244a5f0a9bcc3367462bc1def134df594 | [] | no_license | xiaotdl/CodingInterview | cb8fc2b06bf587c83a9683d7b2cb80f5f4fd34ee | 514e25e83b0cc841f873b1cfef3fcc05f30ffeb3 | refs/heads/master | 2022-01-12T05:18:48.825311 | 2022-01-05T19:41:32 | 2022-01-05T19:41:32 | 56,419,795 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,742 | java | package word_break;
import java.util.*;
/**
* Created by Xiaotian on 12/30/16.
*/
class Solution {
// tag: dfs
// time: O(2^n)
// space: O(n)
public boolean wordBreak(String s, List<String> wordDict) {
Set<String> dict = new HashSet<>();
for (String word : wordDict) dict.add(word);
Map<Integer, Boolean> memo = new HashMap<>();
return dfs(dict, s, 0, memo);
}
private boolean dfs(Set<String> dict, String s, int pos, Map<Integer, Boolean> memo) {
if (pos == s.length()) return true;
if (memo.containsKey(pos)) return memo.get(pos);
for (int i = pos; i < s.length(); i++) {
String word = s.substring(pos, i + 1);
if (!dict.contains(word)) continue;
if (dfs(dict, s, i + 1, memo)) {
memo.put(i, true);
return true;
}
}
memo.put(pos, false);
return false;
}
}
class SolutionII {
// tag: dp
// time: O(n^2)
// space: O(n)
public boolean wordBreak(String s, List<String> wordDict) {
if (s == null || s.length() == 0) return false;
if (wordDict == null || wordDict.size() == 0) return false;
Set<String> dict = new HashSet<>();
for (String word : wordDict) dict.add(word);
// dp[i]: wordBreak(""||s[0..i-1], dict)
boolean[] dp = new boolean[s.length() + 1];
dp[0] = true;
for (int i = 1; i < s.length() + 1; i++) {
for (int j = 0; j <= i - 1; j++) {
if (dp[j] && dict.contains(s.substring(j, i))) {
dp[i] = true;
break;
}
}
}
return dp[s.length()];
}
}
| [
"xiaotdl@gmail.com"
] | xiaotdl@gmail.com |
0ca2282adf58c40fd098aed04d8a7129aa666dd9 | f31a04b5fd65fa4d2697e4cb5092ec039514854c | /backend/common/common-json-schema/src/main/java/org/moserp/common/json_schema/factories/DefaultJsonSchemaPropertyFactory.java | e3a586dfd333bf0b1cf1f33f6bd1921edb4ebe25 | [
"Apache-2.0"
] | permissive | akondasif/moserp | aad41ceac8c59e63e3815d9868c0aae3b01c6aca | 38f8ed8550e1c1586887889a0e83bb23de70b886 | refs/heads/master | 2022-11-13T08:47:28.141833 | 2020-07-08T03:22:52 | 2020-07-08T03:22:52 | 277,979,030 | 0 | 0 | Apache-2.0 | 2020-07-08T03:21:27 | 2020-07-08T03:21:26 | null | UTF-8 | Java | false | false | 1,557 | java | /*******************************************************************************
* Copyright 2013 Thomas Letsch (contact@thomas-letsch.de)
*
* 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.moserp.common.json_schema.factories;
import org.moserp.common.json_schema.domain.EntityProperty;
import org.moserp.common.json_schema.PropertyFactoryContext;
import org.moserp.common.json_schema.domain.EntityPropertyType;
import org.springframework.stereotype.Component;
@Component
public class DefaultJsonSchemaPropertyFactory extends BasicPropertyFactory {
@Override
public boolean appliesTo(PropertyFactoryContext context) {
return false; // prevent from being selected automatically as factory
}
@Override
public EntityProperty create(PropertyFactoryContext context) {
EntityProperty property = createPropertyWithBasicValues(context);
property.setType(EntityPropertyType.STRING);
return property;
}
}
| [
"contact@thomas-letsch.de"
] | contact@thomas-letsch.de |
5b4d9d30cc54e9a5310cfdb5d31ababdb1bd66d6 | 76852b1b29410436817bafa34c6dedaedd0786cd | /sources-2020-07-19-tempmail/sources/org/greenrobot/greendao/i/e.java | bd3d571ae38c8876369713b301a72b67b077679f | [] | no_license | zteeed/tempmail-apks | 040e64e07beadd8f5e48cd7bea8b47233e99611c | 19f8da1993c2f783b8847234afb52d94b9d1aa4c | refs/heads/master | 2023-01-09T06:43:40.830942 | 2020-11-04T18:55:05 | 2020-11-04T18:55:05 | 310,075,224 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,359 | java | package org.greenrobot.greendao.i;
import org.greenrobot.greendao.g.a;
import org.greenrobot.greendao.g.c;
/* compiled from: TableStatements */
public class e {
/* renamed from: a reason: collision with root package name */
private final a f14538a;
/* renamed from: b reason: collision with root package name */
private final String f14539b;
/* renamed from: c reason: collision with root package name */
private final String[] f14540c;
/* renamed from: d reason: collision with root package name */
private final String[] f14541d;
/* renamed from: e reason: collision with root package name */
private c f14542e;
/* renamed from: f reason: collision with root package name */
private c f14543f;
private c g;
private volatile String h;
public e(a aVar, String str, String[] strArr, String[] strArr2) {
this.f14538a = aVar;
this.f14539b = str;
this.f14540c = strArr;
this.f14541d = strArr2;
}
public c a() {
if (this.g == null) {
c c2 = this.f14538a.c(d.i(this.f14539b, this.f14541d));
synchronized (this) {
if (this.g == null) {
this.g = c2;
}
}
if (this.g != c2) {
c2.close();
}
}
return this.g;
}
public c b() {
if (this.f14542e == null) {
c c2 = this.f14538a.c(d.j("INSERT INTO ", this.f14539b, this.f14540c));
synchronized (this) {
if (this.f14542e == null) {
this.f14542e = c2;
}
}
if (this.f14542e != c2) {
c2.close();
}
}
return this.f14542e;
}
public String c() {
if (this.h == null) {
this.h = d.k(this.f14539b, "T", this.f14540c, false);
}
return this.h;
}
public c d() {
if (this.f14543f == null) {
c c2 = this.f14538a.c(d.m(this.f14539b, this.f14540c, this.f14541d));
synchronized (this) {
if (this.f14543f == null) {
this.f14543f = c2;
}
}
if (this.f14543f != c2) {
c2.close();
}
}
return this.f14543f;
}
}
| [
"zteeed@minet.net"
] | zteeed@minet.net |
8b77587ea76c6c95f944737dc8fb12bc93361bb8 | 0ac28b7e3cb0c11a028c529d1720547ec7b60a06 | /src/main/java/osm5/ns/yang/nfvo/nst/rev180820/network/slice/NetsliceSubnetKey.java | c6ebfa6c1746249afbb0c9576bde5f7560629c63 | [
"Apache-2.0"
] | permissive | openslice/io.openslice.sol005nbi.osm5 | 5d76e8dd9b4170bdbb9b2359459371abb2324d41 | f4f6cf80dbd61f5336052ebfcd572ae238d68d89 | refs/heads/master | 2021-11-18T00:35:31.753227 | 2020-06-15T15:50:33 | 2020-06-15T15:50:33 | 198,384,737 | 0 | 0 | Apache-2.0 | 2021-08-02T17:18:18 | 2019-07-23T08:16:53 | Java | UTF-8 | Java | false | false | 2,558 | java | /*-
* ========================LICENSE_START=================================
* io.openslice.sol005nbi.osm5
* %%
* Copyright (C) 2019 openslice.io
* %%
* 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.
* =========================LICENSE_END==================================
*/
package osm5.ns.yang.nfvo.nst.rev180820.network.slice;
import com.google.common.base.MoreObjects;
import java.lang.Override;
import java.lang.String;
import java.util.Objects;
import org.opendaylight.yangtools.yang.binding.CodeHelpers;
import org.opendaylight.yangtools.yang.binding.Identifier;
public class NetsliceSubnetKey
implements Identifier<NetsliceSubnet> {
private static final long serialVersionUID = -8529518876961866585L;
private final String _id;
public NetsliceSubnetKey(String _id) {
this._id = _id;
}
/**
* Creates a copy from Source Object.
*
* @param source Source object
*/
public NetsliceSubnetKey(NetsliceSubnetKey source) {
this._id = source._id;
}
public String getId() {
return _id;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + Objects.hashCode(_id);
return result;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
NetsliceSubnetKey other = (NetsliceSubnetKey) obj;
if (!Objects.equals(_id, other._id)) {
return false;
}
return true;
}
@Override
public String toString() {
final MoreObjects.ToStringHelper helper = MoreObjects.toStringHelper(NetsliceSubnetKey.class);
CodeHelpers.appendValue(helper, "_id", _id);
return helper.toString();
}
}
| [
"tranoris@gmail.com"
] | tranoris@gmail.com |
fe9078e4f14dbd12a79f2356ee83519af794c3e0 | f4e5dbad2da9b1e677788a956e1f73218e8eca8b | /src/main/java/com/dancekvartal/app/domain/PersistentAuditEvent.java | fb0702e044726c9b62c7d844fb9b350119a32ac3 | [] | no_license | nickbarban/dancekvartal | 3f22696f8a34f7341a7cfbf5a0f0b2597ebf82b6 | 6c5f82979f92df20e1d229085c8b126bd2961191 | refs/heads/master | 2023-05-10T19:06:28.614297 | 2019-01-31T20:38:30 | 2019-01-31T20:38:30 | 163,838,901 | 0 | 0 | null | 2023-04-30T04:15:02 | 2019-01-02T12:34:38 | Java | UTF-8 | Java | false | false | 2,786 | java | package com.dancekvartal.app.domain;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.Instant;
import java.util.HashMap;
import java.util.Objects;
import java.util.Map;
/**
* Persist AuditEvent managed by the Spring Boot actuator.
*
* @see org.springframework.boot.actuate.audit.AuditEvent
*/
@Entity
@Table(name = "jhi_persistent_audit_event")
public class PersistentAuditEvent implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequenceGenerator")
@SequenceGenerator(name = "sequenceGenerator")
@Column(name = "event_id")
private Long id;
@NotNull
@Column(nullable = false)
private String principal;
@Column(name = "event_date")
private Instant auditEventDate;
@Column(name = "event_type")
private String auditEventType;
@ElementCollection
@MapKeyColumn(name = "name")
@Column(name = "value")
@CollectionTable(name = "jhi_persistent_audit_evt_data", joinColumns=@JoinColumn(name="event_id"))
private Map<String, String> data = new HashMap<>();
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getPrincipal() {
return principal;
}
public void setPrincipal(String principal) {
this.principal = principal;
}
public Instant getAuditEventDate() {
return auditEventDate;
}
public void setAuditEventDate(Instant auditEventDate) {
this.auditEventDate = auditEventDate;
}
public String getAuditEventType() {
return auditEventType;
}
public void setAuditEventType(String auditEventType) {
this.auditEventType = auditEventType;
}
public Map<String, String> getData() {
return data;
}
public void setData(Map<String, String> data) {
this.data = data;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PersistentAuditEvent persistentAuditEvent = (PersistentAuditEvent) o;
return !(persistentAuditEvent.getId() == null || getId() == null) && Objects.equals(getId(), persistentAuditEvent.getId());
}
@Override
public int hashCode() {
return Objects.hashCode(getId());
}
@Override
public String toString() {
return "PersistentAuditEvent{" +
"principal='" + principal + '\'' +
", auditEventDate=" + auditEventDate +
", auditEventType='" + auditEventType + '\'' +
'}';
}
}
| [
"jhipster-bot@jhipster.tech"
] | jhipster-bot@jhipster.tech |
0cde07c1d9052200a843d7cf731b0ad891d25dae | 6504352f86c2e4f7ef16cea3f5b7cc00bba96a33 | /XFAWealth/WebService/XFAWealthWebService/src/com/fsll/dao/entity/MemberDevice.java | c1b99a5d2bd8e38f0631d57a4523e1fe4b61ba1f | [] | no_license | jedyang/XFAWealth | 1a20c7b4d16c72883b27c4d8aa72d67df4291b9a | 029d45620b3375a86fec8bb1161492325f9f2c6c | refs/heads/master | 2021-05-07T04:53:24.628018 | 2017-08-03T15:25:59 | 2017-08-03T15:25:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,519 | java | package com.fsll.dao.entity;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import com.fasterxml.jackson.annotation.JsonIgnore;
@Entity
@Table(name = "member_device")
public class MemberDevice implements java.io.Serializable {
@Id
@Column(name="id")
@GeneratedValue(generator = "paymentableGenerator")
@GenericGenerator(name = "paymentableGenerator", strategy = "uuid.hex")
private String id;
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "member_id")
@JsonIgnore
private MemberBase member;
@Column(name = "from_type")
private String fromType;
@Column(name = "ip")
private String ip;
@Column(name = "terminal")
private String terminal;
@Column(name = "ter_Model")
private String terModel;
@Column(name = "browser")
private String browser;
@Column(name = "create_time")
private Date createTime;
@Column(name = "expire_time")
private Date expireTime;
@Column(name = "is_valid")
private String isValid;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public MemberBase getMember() {
return member;
}
public void setMember(MemberBase member) {
this.member = member;
}
public String getFromType() {
return fromType;
}
public void setFromType(String fromType) {
this.fromType = fromType;
}
public String getIp() {
return ip;
}
public void setIp(String ip) {
this.ip = ip;
}
public String getTerminal() {
return terminal;
}
public void setTerminal(String terminal) {
this.terminal = terminal;
}
public String getTerModel() {
return terModel;
}
public void setTerModel(String terModel) {
this.terModel = terModel;
}
public String getBrowser() {
return browser;
}
public void setBrowser(String browser) {
this.browser = browser;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getExpireTime() {
return expireTime;
}
public void setExpireTime(Date expireTime) {
this.expireTime = expireTime;
}
public String getIsValid() {
return isValid;
}
public void setIsValid(String isValid) {
this.isValid = isValid;
}
} | [
"549592047@qq.com"
] | 549592047@qq.com |
0414473265ea09ec87fcf75c906f89825f5d3fda | 52c36ce3a9d25073bdbe002757f08a267abb91c6 | /src/main/java/com/alipay/api/domain/ZhimaCreditPeUserCreditFreezeModel.java | 9dfe45292379856682894bfdeb47f1f40423b28b | [
"Apache-2.0"
] | permissive | itc7/alipay-sdk-java-all | d2f2f2403f3c9c7122baa9e438ebd2932935afec | c220e02cbcdda5180b76d9da129147e5b38dcf17 | refs/heads/master | 2022-08-28T08:03:08.497774 | 2020-05-27T10:16:10 | 2020-05-27T10:16:10 | 267,271,062 | 0 | 0 | Apache-2.0 | 2020-05-27T09:02:04 | 2020-05-27T09:02:04 | null | UTF-8 | Java | false | false | 3,601 | java | package com.alipay.api.domain;
import java.util.List;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
/**
* 芝麻用户信用资产冻结
*
* @author auto create
* @since 1.0, 2019-07-26 13:56:38
*/
public class ZhimaCreditPeUserCreditFreezeModel extends AlipayObject {
private static final long serialVersionUID = 8271379225259633138L;
/**
* 买家的支付宝用户id
*/
@ApiField("buyer_id")
private String buyerId;
/**
* 商户侧类目码,需要商户在芝麻平台进行配置
*/
@ApiField("category_code")
private String categoryCode;
/**
* 芝麻信用场景,由芝麻信用侧分配,如:天猫信用购,淘宝租赁等
*/
@ApiField("credit_scene")
private String creditScene;
/**
* 订单基本信息,json格式字符串,可传入订单扩展信息
*/
@ApiField("ext_info")
private String extInfo;
/**
* 接入商家的订单号
*/
@ApiField("out_order_no")
private String outOrderNo;
/**
* 代表了一次请求,作为业务幂等性控制
*/
@ApiField("out_request_no")
private String outRequestNo;
/**
* 风险环境参数信息,json格式字符串,目前已知key如下:umid,设备指纹;imei,设备号;lbs,经纬度;ip,设备网络IP地址;wireless_mac,设备无线wifi mac;mac,设备网卡地址
*/
@ApiField("risk_info")
private String riskInfo;
/**
* 卖家的支付宝id
*/
@ApiField("seller_id")
private String sellerId;
/**
* 子订单模型,至少包含一个子订单信息
*/
@ApiListField("sub_order_info")
@ApiField("credit_freeze_sub_order")
private List<CreditFreezeSubOrder> subOrderInfo;
/**
* 信用额度待冻结额度,单位为元,取值范围[0.01,100000000],精确到小数点后2位
*/
@ApiField("total_credit_amount")
private String totalCreditAmount;
public String getBuyerId() {
return this.buyerId;
}
public void setBuyerId(String buyerId) {
this.buyerId = buyerId;
}
public String getCategoryCode() {
return this.categoryCode;
}
public void setCategoryCode(String categoryCode) {
this.categoryCode = categoryCode;
}
public String getCreditScene() {
return this.creditScene;
}
public void setCreditScene(String creditScene) {
this.creditScene = creditScene;
}
public String getExtInfo() {
return this.extInfo;
}
public void setExtInfo(String extInfo) {
this.extInfo = extInfo;
}
public String getOutOrderNo() {
return this.outOrderNo;
}
public void setOutOrderNo(String outOrderNo) {
this.outOrderNo = outOrderNo;
}
public String getOutRequestNo() {
return this.outRequestNo;
}
public void setOutRequestNo(String outRequestNo) {
this.outRequestNo = outRequestNo;
}
public String getRiskInfo() {
return this.riskInfo;
}
public void setRiskInfo(String riskInfo) {
this.riskInfo = riskInfo;
}
public String getSellerId() {
return this.sellerId;
}
public void setSellerId(String sellerId) {
this.sellerId = sellerId;
}
public List<CreditFreezeSubOrder> getSubOrderInfo() {
return this.subOrderInfo;
}
public void setSubOrderInfo(List<CreditFreezeSubOrder> subOrderInfo) {
this.subOrderInfo = subOrderInfo;
}
public String getTotalCreditAmount() {
return this.totalCreditAmount;
}
public void setTotalCreditAmount(String totalCreditAmount) {
this.totalCreditAmount = totalCreditAmount;
}
}
| [
"ben.zy@antfin.com"
] | ben.zy@antfin.com |
1776934150ed0b68b1a4f5ded61ffbc6c2318dbd | eb8f0fad66bcf761ad12b642029b9fa9012a4fbe | /mcp-dlt/src/main/java/com/mcp/dlt/validator/LotValidator.java | 82b693dd14c904936d8ab6a566b28025b7581a4f | [] | no_license | zhoudaqing/mcp | 29315afc5661cd355ade87c7779988c0660accd2 | 13197aadc65ebd330c47a1d2f2b2b251726134f0 | refs/heads/master | 2021-01-20T05:36:55.296631 | 2015-03-10T07:49:17 | 2015-03-10T07:49:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 266 | java | /**
*
*/
package com.mcp.dlt.validator;
import com.mcp.order.validator.Validator;
/**
* @author ming.li
*
*/
public abstract class LotValidator implements Validator {
//private static Logger log = Logger.getLogger(DanTuoValidator.class);
}
| [
"limiteemail@163.com"
] | limiteemail@163.com |
0affac682f25a45438c9b236e718faccaf195357 | 3e355a798304584431e5e5a1f1bc141e16c330fc | /AL-Game/data/scripts/system/handlers/quest/sarpan/_41155AllintheFamily.java | 535de95d884b93f23e65f9243e99df5185347c12 | [] | no_license | webdes27/Aion-Lightning-4.6-SRC | db0b2b547addc368b7d5e3af6c95051be1df8d69 | 8899ce60aae266b849a19c3f93f47be9485c70ab | refs/heads/master | 2021-09-14T19:16:29.368197 | 2018-02-27T16:05:28 | 2018-02-27T16:05:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,535 | java | /**
* This file is part of Aion-Lightning <aion-lightning.org>.
*
* Aion-Lightning is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Aion-Lightning 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 Aion-Lightning.
* If not, see <http://www.gnu.org/licenses/>.
*/
package quest.sarpan;
import com.aionemu.gameserver.model.gameobjects.player.Player;
import com.aionemu.gameserver.questEngine.handlers.QuestHandler;
import com.aionemu.gameserver.model.DialogAction;
import com.aionemu.gameserver.questEngine.model.QuestEnv;
import com.aionemu.gameserver.questEngine.model.QuestState;
import com.aionemu.gameserver.questEngine.model.QuestStatus;
/**
* @author zhkchi
*
*/
public class _41155AllintheFamily extends QuestHandler {
private final static int questId = 41155;
public _41155AllintheFamily() {
super(questId);
}
@Override
public void register() {
qe.registerQuestNpc(205592).addOnQuestStart(questId);
qe.registerQuestNpc(205592).addOnTalkEvent(questId);
qe.registerQuestNpc(800082).addOnTalkEvent(questId);
qe.registerQuestNpc(800083).addOnTalkEvent(questId);
qe.registerQuestNpc(205572).addOnTalkEvent(questId);
}
@Override
public boolean onDialogEvent(QuestEnv env) {
Player player = env.getPlayer();
QuestState qs = player.getQuestStateList().getQuestState(questId);
DialogAction dialog = env.getDialog();
int targetId = env.getTargetId();
if (qs == null || qs.getStatus() == QuestStatus.NONE || qs.canRepeat()) {
if (targetId == 205592) {
switch (dialog) {
case QUEST_SELECT:
return sendQuestDialog(env, 1011);
case QUEST_ACCEPT_SIMPLE:
return sendQuestStartDialog(env);
}
}
} else if (qs.getStatus() == QuestStatus.START) {
if (targetId == 800082) {
switch (dialog) {
case QUEST_SELECT:
return sendQuestDialog(env, 1352);
case SETPRO1:
return defaultCloseDialog(env, 0, 1);
}
} else if (targetId == 800083) {
switch (dialog) {
case QUEST_SELECT:
return sendQuestDialog(env, 1693);
case SETPRO2:
return defaultCloseDialog(env, 1, 2);
}
} else if (targetId == 205572) {
switch (dialog) {
case QUEST_SELECT:
return sendQuestDialog(env, 2375);
case SELECT_QUEST_REWARD:
changeQuestStep(env, 2, 2, true);
return sendQuestDialog(env, 5);
}
}
} else if (qs.getStatus() == QuestStatus.REWARD) {
if (targetId == 205572) {
return sendQuestEndDialog(env);
}
}
return false;
}
}
| [
"michelgorter@outlook.com"
] | michelgorter@outlook.com |
ce9a93843e9c760f506b964feaa891c34c5b46cc | d26f11c1611b299e169e6a027f551a3deeecb534 | /workbench/org/fdesigner/workbench/IWorkbenchPart2.java | 0e5515af04c00748586b0f25ede463e0e586986b | [] | no_license | WeControlTheFuture/fdesigner-ui | 1bc401fd71a57985544220b9f9e42cf18db6491d | 62efb51e57e5d7f25654e67ef8b2762311b766b6 | refs/heads/master | 2020-11-24T15:00:24.450846 | 2019-12-27T08:47:23 | 2019-12-27T08:47:23 | 228,199,674 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,915 | java | /*******************************************************************************
* Copyright (c) 2004, 2015 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.fdesigner.workbench;
/**
* Extends {@link IWorkbenchPart}, adding the name and status text properties.
* Prior to 3.0, a view's title was often modified to show both the part name
* and extra status text. With this interface, the distinction is made more
* explicit.
*
* @since 3.0
*/
public interface IWorkbenchPart2 extends IWorkbenchPart {
/**
* Returns the name of this part. If this value changes the part must fire a
* property listener event with {@link IWorkbenchPartConstants#PROP_PART_NAME}.
*
* @return the name of this view, or the empty string if the name is being
* managed by the workbench (not <code>null</code>)
*/
String getPartName();
/**
* Returns the content description of this part. The content description is an
* optional user-readable string that describes what is currently being
* displayed in the part. By default, the workbench will display the content
* description in a line near the top of the view or editor. An empty string
* indicates no content description text. If this value changes the part must
* fire a property listener event with
* {@link IWorkbenchPartConstants#PROP_CONTENT_DESCRIPTION}.
*
* @return the content description of this part (not <code>null</code>)
*/
String getContentDescription();
}
| [
"491676539@qq.com"
] | 491676539@qq.com |
cba6212766711c57382cd1f86026d48cb77ca42c | 66879fb5e25987ec0374f05445859c3069c47290 | /src/main/java/com/hs3/lotts/ssc/star3/front/none/SscStar3FrontNone2PlayerTest.java | 624eae48f3622f24b9c5de33b54fb2f71f494ce4 | [] | no_license | wangpiju/java-kernal | 0aceb90aa7705e18175a660fa64fa8f3b998779b | 17ef494cc4a1a3f86013f0330642d76965fc502c | refs/heads/master | 2020-04-01T09:18:18.310531 | 2018-10-15T07:20:51 | 2018-10-15T07:20:51 | 153,069,500 | 1 | 2 | null | null | null | null | UTF-8 | Java | false | false | 578 | java | package com.hs3.lotts.ssc.star3.front.none;
import com.hs3.lotts.PlayerBase;
import com.hs3.lotts.ssc.SscBaseTest;
import java.util.List;
import org.junit.Test;
public class SscStar3FrontNone2PlayerTest
extends SscBaseTest {
private PlayerBase p = new SscStar3FrontNone2Player();
@Test
public void testIfOpenWin() {
String content = "0,1";
doTest(this.p, content);
}
protected String getKey(List<Integer> openNum) {
return String.format("%d%d%d--", new Object[]{openNum.get(0), openNum.get(1), openNum.get(2)});
}
}
| [
"wangpiju0420@gmail.com"
] | wangpiju0420@gmail.com |
b573f0b9cc3f4b2cfdb1b483c937d3d32766739f | c164d8f1a6068b871372bae8262609fd279d774c | /src/main/java/edu/uiowa/slis/VIVOISF/BFO_0000031/BFO_0000031HasTelephoneIterator.java | d02ef264dc6f0d0d23cc9b4f6079e7477e201c0e | [
"Apache-2.0"
] | permissive | eichmann/VIVOISF | ad0a299df177d303ec851ff2453cbcbd7cae1ef8 | e80cd8b74915974fac7ebae8e5e7be8615355262 | refs/heads/master | 2020-03-19T03:44:27.662527 | 2018-06-03T22:44:58 | 2018-06-03T22:44:58 | 135,757,275 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 5,621 | java | package edu.uiowa.slis.VIVOISF.BFO_0000031;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspTagException;
import org.apache.jena.query.QuerySolution;
import org.apache.jena.query.ResultSet;
import java.util.Hashtable;
@SuppressWarnings("serial")
public class BFO_0000031HasTelephoneIterator extends edu.uiowa.slis.VIVOISF.TagLibSupport {
static BFO_0000031HasTelephoneIterator currentInstance = null;
private static final Log log = LogFactory.getLog(BFO_0000031HasTelephoneIterator.class);
static boolean firstInstance = false;
static boolean lastInstance = false;
String subjectURI = null;
String type = null;
String hasTelephone = null;
ResultSet rs = null;
String sortCriteria = null;
int limitCriteria = 0;
int offsetCriteria = 0;
Hashtable<String,String> classFilter = null;
public int doStartTag() throws JspException {
currentInstance = this;
try {
BFO_0000031 theBFO_0000031 = (BFO_0000031) findAncestorWithClass(this, BFO_0000031.class);
if (theBFO_0000031 != null) {
subjectURI = theBFO_0000031.getSubjectURI();
}
if (theBFO_0000031 == null && subjectURI == null) {
throw new JspException("subject URI generation currently not supported");
}
rs = getResultSet(prefix+"SELECT ?s ?t where {"
+" <" + subjectURI + "> <http://www.w3.org/2006/vcard/ns#hasTelephone> ?s . "
+" OPTIONAL { ?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?t } ."
+" FILTER NOT EXISTS {"
+" ?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?subtype ."
+" ?subtype <http://www.w3.org/2000/01/rdf-schema#subClassOf> ?t ."
+" filter ( ?subtype != ?t )"
+" } " +
" } " +
(limitCriteria == 0 ? "" : " LIMIT " + limitCriteria + " ") +
(offsetCriteria == 0 ? "" : " OFFSET " + offsetCriteria + " ")
);
while(rs.hasNext()) {
QuerySolution sol = rs.nextSolution();
hasTelephone = sol.get("?s").isLiteral() ? sol.get("?s").asLiteral().getString() : sol.get("?s").toString();
type = sol.get("?t") == null ? null : getLocalName(sol.get("?t").toString());
// if (type == null)
// continue;
if (classFilter == null || (classFilter != null && type != null && classFilter.containsKey(type))) {
log.info("instance: " + hasTelephone + " type: " + type);
firstInstance = true;
lastInstance = ! rs.hasNext();
return EVAL_BODY_INCLUDE;
}
}
} catch (Exception e) {
log.error("Exception raised in BFO_0000031HasTelephoneIterator doStartTag", e);
clearServiceState();
freeConnection();
throw new JspTagException("Exception raised in BFO_0000031HasTelephoneIterator doStartTag");
}
return SKIP_BODY;
}
public int doAfterBody() throws JspException {
try {
while(rs.hasNext()) {
QuerySolution sol = rs.nextSolution();
hasTelephone = sol.get("?s").toString();
type = sol.get("?t") == null ? null : getLocalName(sol.get("?t").toString());
// if (type == null)
// continue;
if (classFilter == null || (classFilter != null && type != null && classFilter.containsKey(type))) {
log.info("instance: " + hasTelephone + " type: " + type);
firstInstance = false;
lastInstance = ! rs.hasNext();
return EVAL_BODY_AGAIN;
}
}
} catch (Exception e) {
log.error("Exception raised in BFO_0000031HasTelephoneIterator doAfterBody", e);
clearServiceState();
freeConnection();
throw new JspTagException("Exception raised in BFO_0000031HasTelephoneIterator doAfterBody");
}
return SKIP_BODY;
}
public int doEndTag() throws JspException {
currentInstance = null;
try {
// do processing
} catch (Exception e) {
log.error("Exception raised in BFO_0000031HasTelephone doEndTag", e);
throw new JspTagException("Exception raised in BFO_0000031HasTelephone doEndTag");
} finally {
clearServiceState();
freeConnection();
}
return super.doEndTag();
}
private void clearServiceState() {
subjectURI = null;
type = null;
hasTelephone = null;
classFilter = null;
}
public void setSortCriteria(String theSortCriteria) {
sortCriteria = theSortCriteria;
}
public String getSortCriteria() {
return sortCriteria;
}
public void setLimitCriteria(Integer theLimitCriteria) {
limitCriteria = theLimitCriteria;
}
public Integer getLimitCriteria() {
return limitCriteria;
}
public void setOffsetCriteria(Integer theOffsetCriteria) {
offsetCriteria = theOffsetCriteria;
}
public Integer getOffsetCriteria() {
return offsetCriteria;
}
public void setType(String theType) {
type = theType;
}
public String getType() {
return type;
}
public void setHasTelephone(String theHasTelephone) {
hasTelephone = theHasTelephone;
}
public String getHasTelephone() {
return hasTelephone;
}
public static void setFirstInstance(Boolean theFirstInstance) {
firstInstance = theFirstInstance;
}
public static Boolean getFirstInstance() {
return firstInstance;
}
public static void setLastInstance(Boolean theLastInstance) {
lastInstance = theLastInstance;
}
public static Boolean getLastInstance() {
return lastInstance;
}
public void setClassFilter(String filterString) {
String[] classFilterArray = filterString.split(" ");
this.classFilter = new Hashtable<String, String>();
for (String filterClass : classFilterArray) {
log.info("adding filterClass " + filterClass + " to BFO_0000031HasTelephoneIterator");
classFilter.put(filterClass, "");
}
}
public String getClassFilter() {
return classFilter.toString();
}
}
| [
"david-eichmann@uiowa.edu"
] | david-eichmann@uiowa.edu |
7e2015db4c4a0064ce019c068a3819e2f09eb96b | 4981fc0e1e82dc9226116aa8f0a29413c947b0ec | /Build/src/tests/junit/org/apache/tools/ant/taskdefs/optional/XmlValidateTest.java | 27be8a415f632242d0518f05b8f04c355f9a29e7 | [
"MIT",
"W3C",
"GPL-1.0-or-later",
"SAX-PD",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-unknown"
] | permissive | Mayo-WE01051879/mayosapp | 7e33d4b73b20e6f58f0ae593ae7c9ac10afff20c | 4c678635cfd2823c2df6937165e102fdac72cb86 | refs/heads/master | 2022-12-10T01:22:54.629304 | 2021-02-24T20:16:36 | 2021-02-24T20:16:36 | 16,258,006 | 0 | 0 | MIT | 2022-12-05T23:23:59 | 2014-01-26T17:50:40 | Java | UTF-8 | Java | false | false | 5,412 | 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.tools.ant.taskdefs.optional;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.BuildFileTest;
/**
* Tests the XMLValidate optional task, by running targets in the test script
* <code>src/etc/testcases/taskdefs/optional/xmlvalidate.xml</code>
* <p>
*
* @see XmlValidateCatalogTest
* @since Ant 1.5
*/
public class XmlValidateTest extends BuildFileTest {
/**
* where tasks run
*/
private final static String TASKDEFS_DIR =
"src/etc/testcases/taskdefs/optional/";
/**
* Constructor
*
* @param name testname
*/
public XmlValidateTest(String name) {
super(name);
}
/**
* The JUnit setup method
*/
public void setUp() {
configureProject(TASKDEFS_DIR + "xmlvalidate.xml");
}
/**
* The teardown method for JUnit
*/
public void tearDown() {}
/**
* Basic inline 'dtd' element test.
*/
public void testValidate() throws Exception {
executeTarget("testValidate");
}
/**
* Test indirect validation.
*/
public void testDeepValidate() throws Exception {
executeTarget("testDeepValidate");
}
/**
*
*/
public void testXmlCatalog() {
executeTarget("xmlcatalog");
}
/**
*
*/
public void testXmlCatalogViaRefid() {
executeTarget("xmlcatalogViaRefid");
}
/**
* Test that the nested dtd element is used when resolver.jar is not
* present. This test should pass either way.
*/
public void testXmlCatalogFiles() {
executeTarget("xmlcatalogfiles-override");
}
/**
* Test nested catalogpath.
* Test that the nested dtd element is used when resolver.jar is not
* present. This test should pass either way.
*/
public void testXmlCatalogPath() {
executeTarget("xmlcatalogpath-override");
}
/**
* Test nested xmlcatalog definitions
*/
public void testXmlCatalogNested() {
executeTarget("xmlcatalognested");
}
/**
* Test xml schema validation
*/
public void testXmlSchemaGood() throws BuildException {
try {
executeTarget("testSchemaGood");
} catch (BuildException e) {
if (e
.getMessage()
.endsWith(" doesn't recognize feature http://apache.org/xml/features/validation/schema")
|| e.getMessage().endsWith(
" doesn't support feature http://apache.org/xml/features/validation/schema")) {
System.err.println(" skipped, parser doesn't support schema");
} else {
throw e;
}
}
}
/**
* Test xml schema validation
*/
public void testXmlSchemaBad() {
try {
executeTarget("testSchemaBad");
fail("Should throw BuildException because 'Bad Schema Validation'");
expectBuildExceptionContaining(
"testSchemaBad",
"Bad Schema Validation",
"not a valid XML document");
} catch (BuildException e) {
if (e
.getMessage()
.endsWith(" doesn't recognize feature http://apache.org/xml/features/validation/schema")
|| e.getMessage().endsWith(
" doesn't support feature http://apache.org/xml/features/validation/schema")) {
System.err.println(" skipped, parser doesn't support schema");
} else {
assertTrue(
e.getMessage().indexOf("not a valid XML document") > -1);
}
}
}
/**
* iso-2022-jp.xml is valid but wouldn't get recognized on systems
* with a different native encoding.
*
* Bug 11279
*/
public void testIso2022Jp() {
executeTarget("testIso2022Jp");
}
/**
* utf-8.xml is invalid as it contains non-UTF-8 characters, but
* would pass on systems with a native iso-8859-1 (or similar)
* encoding.
*
* Bug 11279
*/
public void testUtf8() {
expectBuildException("testUtf8", "invalid characters in file");
}
// Tests property element, using XML schema properties as an example.
public void testPropertySchemaForValidXML() {
executeTarget("testProperty.validXML");
}
public void testPropertySchemaForInvalidXML() {
expectBuildException(
"testProperty.invalidXML",
"XML file does not satisfy schema.");
}
}
| [
"delapaz.mayo@gmail.com"
] | delapaz.mayo@gmail.com |
a2562d45a8dcc22ff3300820e2a7ad1dc3a96a1d | 8fc353fcca109517b84f890df1f9e1f8a90adc78 | /src/main/java/com/surekam/common/utils/ImageUtil.java | 6cf4075c8a5c38f5bd8efd8124503bbb211cae16 | [] | no_license | yycGitHub/production-process | 6ecd5ac15087288763cd8d7abe83d706f8f8e6f5 | 58a8628ef2f53164571b42f2629d23fb4b881e12 | refs/heads/master | 2022-12-08T16:55:34.955036 | 2020-08-31T09:03:34 | 2020-08-31T09:03:36 | 291,583,078 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,654 | java | package com.surekam.common.utils;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.Transparency;
import java.awt.geom.AffineTransform;
import java.awt.image.AffineTransformOp;
import java.awt.image.BufferedImage;
import java.awt.image.CropImageFilter;
import java.awt.image.FilteredImageSource;
import java.awt.image.ImageFilter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.servlet.http.HttpServletRequest;
import com.sun.image.codec.jpeg.JPEGCodec;
import com.sun.image.codec.jpeg.JPEGImageEncoder;
public abstract class ImageUtil {
/**
* 按给定高宽缩放图片
* @param String srcImgFileName 源文件
* @param int destWidth 图片宽
* @param int destHeight 图片高
* @param boolean isCover 是否覆盖原先的图片
* @throws IOException
**/
public static String zoomImageBySize(HttpServletRequest request,String srcImgFileName,int destWidth,int destHeight,boolean isCover) throws IOException {
// 读入文件
String fullPath = FileUtils.getFileAbsolutePath(request, srcImgFileName,false);
File _file = new File(fullPath);
// 构造Image对象
BufferedImage src = javax.imageio.ImageIO.read(_file);
// 边长缩小为二分之一
BufferedImage tag = new BufferedImage(destWidth, destHeight, BufferedImage.TYPE_INT_RGB);
// 绘制缩小后的图
tag.getGraphics().drawImage(src, 0, 0, destWidth, destHeight, null);
String destPath = srcImgFileName;
String suffix = srcImgFileName.substring(srcImgFileName.lastIndexOf("."),srcImgFileName.length());
if(!isCover){
destPath = destPath.substring(0,destPath.lastIndexOf("/")+1)+System.currentTimeMillis()+suffix;
}
FileOutputStream out = new FileOutputStream(FileUtils.getFileAbsolutePath(request, destPath,false));
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
encoder.encode(tag);
out.close();
return destPath;
}
/**
* 按给定高宽缩放图片
* @param String srcImgFileName 源文件
* @param double 比例
* @param boolean isCover 是否覆盖原先的图片
* @throws IOException
**/
public static String zoomImageByRate(HttpServletRequest request,String srcImgFileName,double rate,boolean isCover) throws IOException {
// 读入文件
String fullPath = FileUtils.getFileAbsolutePath(request, srcImgFileName,false);
File _file = new File(fullPath);
// 构造Image对象
BufferedImage src = javax.imageio.ImageIO.read(_file);
int width = (int)(src.getWidth()*rate);
int height = (int)(src.getHeight()*rate);
return zoomImageBySize(request,srcImgFileName,width,height,isCover);
}
/**
* 切图
*
* @param srcImageFile
* @throws IOException
*/
public static String cut(HttpServletRequest request,String oldImageFile,String srcImageFile,String color,int oldWidth,int oldHeigh,
int startX,int startY,int width,int height,boolean isCover) throws IOException {
Image img;
ImageFilter cropFilter;
// 读取源图像
String fullPath = FileUtils.getFileAbsolutePath(request, srcImageFile,false);
File _file = new File(fullPath);
BufferedImage src = ImageIO.read(_file);
// 四个参数分别为图像起点坐标和宽高
cropFilter = new CropImageFilter(startX-(oldWidth-src.getWidth())/2, startY-(oldHeigh-src.getHeight())/2, width, height);
img = Toolkit.getDefaultToolkit().createImage(new FilteredImageSource(src.getSource(), cropFilter));
BufferedImage tag = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
Graphics g = tag.getGraphics();
g.drawImage(img, 0, 0,new Color(Integer.parseInt(color,16)),null); // 绘制小图
g.dispose();
// 输出为文件
String destPath = srcImageFile;
String suffix = srcImageFile.substring(srcImageFile.lastIndexOf("."),srcImageFile.length());
if(!isCover){
destPath = destPath.substring(0,destPath.lastIndexOf("/")+1)+System.currentTimeMillis()+suffix;
}
File f = new File(FileUtils.getFileAbsolutePath(request, destPath));
ImageIO.write(tag, "JPEG", f);
return destPath;
}
/**
* 旋转图片
* @param srcImageFile
* @param degree
* @param bgcolor
* @throws IOException
*/
public static String rotateImg(HttpServletRequest request,String srcImageFile, int degree, Color bgcolor,boolean isCover) throws IOException {
String fullPath = FileUtils.getFileAbsolutePath(request, srcImageFile,false);
File _file = new File(fullPath);
BufferedImage image = ImageIO.read(_file);
int iw = image.getWidth();//原始图象的宽度
int ih = image.getHeight();//原始图象的高度
int w = 0;
int h = 0;
int x = 0;
int y = 0;
degree = degree % 360;
if (degree < 0)
degree = 360 + degree;//将角度转换到0-360度之间
double ang = Math.toRadians(degree);//将角度转为弧度
/**
*确定旋转后的图象的高度和宽度
*/
if (degree == 180 || degree == 0 || degree == 360) {
w = iw;
h = ih;
} else if (degree == 90 || degree == 270) {
w = ih;
h = iw;
} else {
int d = iw + ih;
w = (int) (d * Math.abs(Math.cos(ang)));
h = (int) (d * Math.abs(Math.sin(ang)));
}
x = (w / 2) - (iw / 2);//确定原点坐标
y = (h / 2) - (ih / 2);
BufferedImage rotatedImage = new BufferedImage(w, h, image.getType());
Graphics2D gs = (Graphics2D)rotatedImage.getGraphics();
if(bgcolor==null){
rotatedImage = gs.getDeviceConfiguration().createCompatibleImage(w, h, Transparency.TRANSLUCENT);
}else{
gs.setColor(bgcolor);
gs.fillRect(0, 0, w, h);//以给定颜色绘制旋转后图片的背景
}
AffineTransform at = new AffineTransform();
at.rotate(ang, w / 2, h / 2);//旋转图象
at.translate(x, y);
AffineTransformOp op = new AffineTransformOp(at, AffineTransformOp.TYPE_BICUBIC);
op.filter(image, rotatedImage);
image = rotatedImage;
String destPath = srcImageFile;
String suffix = srcImageFile.substring(srcImageFile.lastIndexOf("."),srcImageFile.length());
if(!isCover){
destPath = destPath.substring(0,destPath.lastIndexOf("/")+1)+System.currentTimeMillis()+suffix;
}
File f = new File(FileUtils.getFileAbsolutePath(request, destPath,false));
ImageIO.write(image, "JPEG", f);
return destPath;
}
}
| [
"2504477167@qq.com"
] | 2504477167@qq.com |
e6d536c556053b3c97c2d056b9e008a58d8b531b | 7c9f40c50e5cabcb320195e3116384de139002c6 | /Plugin_Parser/src/tinyos/yeti/nesc12/parser/actions/Action88.java | 9af0b0381c4c01b6ae4c9fa3cda5a082b4beb2c7 | [] | no_license | phsommer/yeti | 8e89ad89f1a4053e46693244256d03e71fe830a8 | dec8c79e75b99c2a2a43aa5425f608128b883e39 | refs/heads/master | 2021-01-10T05:33:57.285499 | 2015-05-21T19:41:02 | 2015-05-21T19:41:02 | 36,033,399 | 3 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,489 | java | /*
* Yeti 2, NesC development in Eclipse.
* Copyright (C) 2009 ETH Zurich
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Web: http://tos-ide.ethz.ch
* Mail: tos-ide@tik.ee.ethz.ch
*/
package tinyos.yeti.nesc12.parser.actions;
import tinyos.yeti.nesc12.lexer.Token;
import tinyos.yeti.nesc12.lexer.Lexer;
import tinyos.yeti.nesc12.parser.ast.*;
import tinyos.yeti.nesc12.parser.ast.nodes.*;
import tinyos.yeti.nesc12.parser.ast.nodes.declaration.*;
import tinyos.yeti.nesc12.parser.ast.nodes.definition.*;
import tinyos.yeti.nesc12.parser.ast.nodes.error.*;
import tinyos.yeti.nesc12.parser.ast.nodes.expression.*;
import tinyos.yeti.nesc12.parser.ast.nodes.general.*;
import tinyos.yeti.nesc12.parser.ast.nodes.nesc.*;
import tinyos.yeti.nesc12.parser.ast.nodes.statement.*;
import tinyos.yeti.nesc12.parser.*;
public final class Action88 implements ParserAction{
public final java_cup.runtime.Symbol do_action(
int CUP$parser$act_num,
java_cup.runtime.lr_parser CUP$parser$parser,
java.util.Stack CUP$parser$stack,
int CUP$parser$top,
parser parser)
throws java.lang.Exception{
java_cup.runtime.Symbol CUP$parser$result;
// n_external_definitions ::= n_external_definitions error
{
NesCExternalDefinitionList RESULT =null;
NesCExternalDefinitionList s = (NesCExternalDefinitionList)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;
RESULT = s; s.addError( parser.errorNode( "external definition list", "external definition" ));
CUP$parser$result = parser.getSymbolFactory().newSymbol("n_external_definitions",178, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);
}
return CUP$parser$result;
}
}
| [
"besigg@2a69fd7c-12de-fc47-e5bb-db751a41839b"
] | besigg@2a69fd7c-12de-fc47-e5bb-db751a41839b |
ddd8ac2f10aca5c3968b762d5cc32b5f1c884fd7 | 3b8e60c5f79d794bab1fb91eb53e3002d6115bc6 | /ExampleFragments/src/com/example/examplefragments/MainActivity.java | fd712971c774c74ffbf6c08edf978a223c49d418 | [] | no_license | moderateepheezy/Workspace3 | 46e770b9fc05da83dcf171bb365084471793e518 | 69823d343bf2013a90bdfb0d00fe2d2144e23ea2 | refs/heads/master | 2020-06-02T10:30:01.197987 | 2014-11-08T17:07:10 | 2014-11-08T17:07:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,480 | java | package com.example.examplefragments;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.widget.Button;
public class MainActivity extends ActionBarActivity {
Button switchFragment;
int state = 0;
//ActionBar abar;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//abar = getSupportActionBar();
//switchFragment = (Button)this.findViewById(R.id.changeFragment);
if (savedInstanceState == null) {
getSupportFragmentManager().beginTransaction()
.add(R.id.container, new TestFragment()).commit();
//state = 1;
}
// switchFragment.setOnClickListener(new View.OnClickListener() {
//
// @Override
// public void onClick(View v) {
// // TODO Auto-generated method stub
// if(state == 1){
//
// FragmentTransaction fTrag = getSupportFragmentManager().beginTransaction();
//
// fTrag.replace(R.id.container, new NewFragment());
//
// fTrag.commit();
//
// abar = getSupportActionBar();
// abar.setTitle("ActionBar for New Fragment");
// state = 0;
// }else{
//
// FragmentTransaction fTrag = getSupportFragmentManager().beginTransaction();
//
// fTrag.replace(R.id.container, new PlaceholderFragment());
//
// fTrag.commit();
//
// abar = getSupportActionBar();
// abar.setTitle("ActionBar for PlaceHolderFragment");
// state = 1;
// }
// }
// });
}
}
| [
"moderateepheezy@gmail.com"
] | moderateepheezy@gmail.com |
b3e522a50ecadb980c98a35f100c873a6e24789d | 04d05451fdc5951d4dcb473256e4e1bd17701098 | /webpp/src/main/java/de/weltraumschaf/citer/resources/admin/SearchResource.java | 6fd906996126c96a3ba167f9eaa737af3c50ac53 | [] | no_license | Weltraumschaf/Citer | 6610f8f2bf5cd3bfa6ab5cb6ba1aa0c521342612 | aff64a723605de640f9ab403c88ca150c5179a69 | refs/heads/master | 2021-09-08T03:51:17.302431 | 2020-04-24T19:20:34 | 2020-04-24T19:20:34 | 3,381,521 | 1 | 0 | null | 2021-09-01T18:36:33 | 2012-02-07T21:19:10 | JavaScript | UTF-8 | Java | false | false | 1,344 | java | /*
* LICENSE
*
* "THE BEER-WARE LICENSE" (Revision 43):
* "Sven Strittmatter" <weltraumschaf@googlemail.com> wrote this file.
* As long as you retain this notice you can do whatever you want with
* this stuff. If we meet some day, and you think this stuff is worth it,
* you can buy me a non alcohol-free beer in return.
*
* Copyright (C) 2012 "Sven Strittmatter" <weltraumschaf@googlemail.com>
*/
package de.weltraumschaf.citer.resources.admin;
import de.weltraumschaf.citer.resources.BaseResource;
import de.weltraumschaf.citer.tpl.SiteContent;
import de.weltraumschaf.citer.tpl.SiteLayout;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
/**
*
* @author Sven Strittmatter <weltraumschaf@googlemail.com>
*/
@Path("search/")
public class SearchResource extends BaseResource {
@Produces(MediaType.TEXT_HTML)
@GET public Response indexAsHtml() {
try {
final SiteLayout layout = createLayout();
layout.setTitle("Citer Admin - Search");
final SiteContent content = layout.newSiteContent("admin/search.tpl");
return stringOkResponse(layout.render(content));
} catch (Exception ex) {
return createErrorResponse(formatError(ex));
}
}
}
| [
"ich@weltraumschaf.de"
] | ich@weltraumschaf.de |
8b9611b36d48cc1a3e8c89506d25bdd3a12b8424 | d1a6d1e511df6db8d8dd0912526e3875c7e1797d | /genny_JavaWithoutLambdasApi21_ReducedClassCount/applicationModule/src/test/java/applicationModulepackageJava6/Foo481Test.java | 7594943e1c87245648f9aa043fb4da889192c6bc | [] | no_license | NikitaKozlov/generated-project-for-desugaring | 0bc1443ab3ddc84cd289331c726761585766aea7 | 81506b3711004185070ca4bb9a93482b70011d36 | refs/heads/master | 2020-03-20T00:35:06.996525 | 2018-06-12T09:30:37 | 2018-06-12T09:30:37 | 137,049,317 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 741 | java | package applicationModulepackageJava6;
import org.junit.Test;
public class Foo481Test {
@Test
public void testFoo0() {
new Foo481().foo0();
}
@Test
public void testFoo1() {
new Foo481().foo1();
}
@Test
public void testFoo2() {
new Foo481().foo2();
}
@Test
public void testFoo3() {
new Foo481().foo3();
}
@Test
public void testFoo4() {
new Foo481().foo4();
}
@Test
public void testFoo5() {
new Foo481().foo5();
}
@Test
public void testFoo6() {
new Foo481().foo6();
}
@Test
public void testFoo7() {
new Foo481().foo7();
}
@Test
public void testFoo8() {
new Foo481().foo8();
}
@Test
public void testFoo9() {
new Foo481().foo9();
}
}
| [
"nikita.e.kozlov@gmail.com"
] | nikita.e.kozlov@gmail.com |
838eecfe3543057966c1c9882369f1f319a56638 | e9095eda1c03e431d9690639819fc1e87fb7d079 | /entity-view/impl/src/main/java/com/blazebit/persistence/view/impl/objectbuilder/mapper/MultisetTupleElementMapper.java | 88a66c741b17a06c134c5d1a80d74ba85299c02c | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zalavaari/blaze-persistence | d68c575587385606937bb59d4d44f8f3f5de86e2 | 568e6261c158eb150e98fe87b19d4ba01dc8bbbe | refs/heads/master | 2022-11-07T04:17:34.651871 | 2020-06-23T20:44:29 | 2020-06-23T20:44:29 | 271,548,726 | 0 | 0 | NOASSERTION | 2020-06-11T13:08:03 | 2020-06-11T13:08:03 | null | UTF-8 | Java | false | false | 3,370 | java | /*
* Copyright 2014 - 2020 Blazebit.
*
* 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.blazebit.persistence.view.impl.objectbuilder.mapper;
import com.blazebit.persistence.ParameterHolder;
import com.blazebit.persistence.SelectBuilder;
import com.blazebit.persistence.SubqueryBuilder;
import com.blazebit.persistence.view.impl.objectbuilder.Limiter;
import com.blazebit.persistence.view.impl.objectbuilder.ViewTypeObjectBuilderTemplate;
import com.blazebit.persistence.view.spi.EmbeddingViewJpqlMacro;
import com.blazebit.persistence.view.spi.ViewJpqlMacro;
import com.blazebit.persistence.view.spi.type.BasicUserTypeStringSupport;
import java.util.Map;
/**
*
* @author Christian Beikov
* @since 1.5.0
*/
public class MultisetTupleElementMapper implements TupleElementMapper {
private final ViewTypeObjectBuilderTemplate<Object[]> subviewTemplate;
private final String correlationExpression;
private final String attributePath;
private final String multisetResultAlias;
private final String embeddingViewPath;
private final Limiter limiter;
public MultisetTupleElementMapper(ViewTypeObjectBuilderTemplate<Object[]> subviewTemplate, String correlationExpression, String attributePath, String multisetResultAlias, String embeddingViewPath, Limiter limiter) {
this.subviewTemplate = subviewTemplate;
this.correlationExpression = correlationExpression.intern();
this.attributePath = attributePath;
this.multisetResultAlias = multisetResultAlias;
this.embeddingViewPath = embeddingViewPath;
this.limiter = limiter;
}
@Override
public void applyMapping(SelectBuilder<?> queryBuilder, ParameterHolder<?> parameterHolder, Map<String, Object> optionalParameters, ViewJpqlMacro viewJpqlMacro, EmbeddingViewJpqlMacro embeddingViewJpqlMacro, boolean asString) {
String oldEmbeddingViewPath = embeddingViewJpqlMacro.getEmbeddingViewPath();
embeddingViewJpqlMacro.setEmbeddingViewPath(embeddingViewPath);
SubqueryBuilder<?> subqueryBuilder = queryBuilder.selectSubquery("subquery", "TO_MULTISET(subquery)")
.from(correlationExpression, multisetResultAlias);
for (TupleElementMapper mapper : subviewTemplate.getMappers()) {
mapper.applyMapping(subqueryBuilder, parameterHolder, optionalParameters, viewJpqlMacro, embeddingViewJpqlMacro, true);
}
if (limiter != null) {
limiter.apply(parameterHolder, optionalParameters, subqueryBuilder);
}
subqueryBuilder.end();
embeddingViewJpqlMacro.setEmbeddingViewPath(oldEmbeddingViewPath);
}
@Override
public String getAttributePath() {
return attributePath;
}
@Override
public BasicUserTypeStringSupport<Object> getBasicTypeStringSupport() {
return null;
}
}
| [
"christian.beikov@gmail.com"
] | christian.beikov@gmail.com |
9e3ac8e637b0f8597f30fc4fa5abbd3c7e95e6ec | 165fd433c9c5d41153922741f31a979966868f56 | /eo-runtime/src/main/java/org/eolang/AtSimple.java | 229330479a9d845ed3ed9bed0ca8a85ef23fe7a6 | [
"MIT"
] | permissive | IamMaxim/eo | 97963d050dd813b98d512049d966e01ba52d971e | 56f3dd08db12a7bf937a9198d7af4e1280c93df8 | refs/heads/master | 2023-09-05T09:03:12.358373 | 2021-10-27T20:30:55 | 2021-10-27T20:30:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,780 | java | /*
* The MIT License (MIT)
*
* Copyright (c) 2016-2021 Yegor Bugayenko
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package org.eolang;
/**
* Default attribute.
*
* @since 0.1
*/
public final class AtSimple implements Attr {
private Phi phi;
public AtSimple() {
this(new PhEta());
}
public AtSimple(final Phi src) {
this.phi = src;
}
@Override
public String toString() {
return String.format("%sS", this.phi.toString());
}
@Override
public Attr copy(final Phi self) {
return new AtSimple(this.phi);
}
@Override
public Phi get() {
return this.phi;
}
@Override
public void put(final Phi src) {
this.phi = src;
}
}
| [
"yegor256@gmail.com"
] | yegor256@gmail.com |
513050f2a1ea73bebc7ba33da5c23742322265c5 | 377e5e05fb9c6c8ed90ad9980565c00605f2542b | /bin/platform/bootstrap/gensrc/de/hybris/platform/returns/model/ReplacementOrderModel.java | 421d9418127e5cac068d90b7e42b8c10258debe1 | [] | no_license | automaticinfotech/HybrisProject | c22b13db7863e1e80ccc29774f43e5c32e41e519 | fc12e2890c569e45b97974d2f20a8cbe92b6d97f | refs/heads/master | 2021-07-20T18:41:04.727081 | 2017-10-30T13:24:11 | 2017-10-30T13:24:11 | 108,957,448 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,166 | java | /*
* ----------------------------------------------------------------
* --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! ---
* --- Generated at 30 Oct, 2017 12:11:59 PM ---
* ----------------------------------------------------------------
*
* [y] hybris Platform
*
* Copyright (c) 2000-2016 SAP SE
* All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* Hybris ("Confidential Information"). You shall not disclose such
* Confidential Information and shall use it only in accordance with the
* terms of the license agreement you entered into with SAP Hybris.
*
*/
package de.hybris.platform.returns.model;
import de.hybris.platform.basecommerce.enums.ReturnFulfillmentStatus;
import de.hybris.platform.core.model.ItemModel;
import de.hybris.platform.core.model.c2l.CurrencyModel;
import de.hybris.platform.core.model.order.OrderModel;
import de.hybris.platform.core.model.user.UserModel;
import de.hybris.platform.returns.model.ReturnOrderModel;
import de.hybris.platform.servicelayer.model.ItemModelContext;
import java.util.Date;
/**
* Generated model class for type ReplacementOrder first defined at extension basecommerce.
*/
@SuppressWarnings("all")
public class ReplacementOrderModel extends ReturnOrderModel
{
/**<i>Generated model type code constant.</i>*/
public final static String _TYPECODE = "ReplacementOrder";
/**
* <i>Generated constructor</i> - Default constructor for generic creation.
*/
public ReplacementOrderModel()
{
super();
}
/**
* <i>Generated constructor</i> - Default constructor for creation with existing context
* @param ctx the model context to be injected, must not be null
*/
public ReplacementOrderModel(final ItemModelContext ctx)
{
super(ctx);
}
/**
* <i>Generated constructor</i> - Constructor with all mandatory attributes.
* @deprecated Since 4.1.1 Please use the default constructor without parameters
* @param _currency initial attribute declared by type <code>AbstractOrder</code> at extension <code>core</code>
* @param _date initial attribute declared by type <code>AbstractOrder</code> at extension <code>core</code>
* @param _fulfilmentStatus initial attribute declared by type <code>ReturnOrder</code> at extension <code>basecommerce</code>
* @param _user initial attribute declared by type <code>AbstractOrder</code> at extension <code>core</code>
*/
@Deprecated
public ReplacementOrderModel(final CurrencyModel _currency, final Date _date, final ReturnFulfillmentStatus _fulfilmentStatus, final UserModel _user)
{
super();
setCurrency(_currency);
setDate(_date);
setFulfilmentStatus(_fulfilmentStatus);
setUser(_user);
}
/**
* <i>Generated constructor</i> - for all mandatory and initial attributes.
* @deprecated Since 4.1.1 Please use the default constructor without parameters
* @param _currency initial attribute declared by type <code>AbstractOrder</code> at extension <code>core</code>
* @param _date initial attribute declared by type <code>AbstractOrder</code> at extension <code>core</code>
* @param _fulfilmentStatus initial attribute declared by type <code>ReturnOrder</code> at extension <code>basecommerce</code>
* @param _originalVersion initial attribute declared by type <code>Order</code> at extension <code>basecommerce</code>
* @param _owner initial attribute declared by type <code>Item</code> at extension <code>core</code>
* @param _user initial attribute declared by type <code>AbstractOrder</code> at extension <code>core</code>
* @param _versionID initial attribute declared by type <code>Order</code> at extension <code>basecommerce</code>
*/
@Deprecated
public ReplacementOrderModel(final CurrencyModel _currency, final Date _date, final ReturnFulfillmentStatus _fulfilmentStatus, final OrderModel _originalVersion, final ItemModel _owner, final UserModel _user, final String _versionID)
{
super();
setCurrency(_currency);
setDate(_date);
setFulfilmentStatus(_fulfilmentStatus);
setOriginalVersion(_originalVersion);
setOwner(_owner);
setUser(_user);
setVersionID(_versionID);
}
}
| [
"santosh.kshirsagar@automaticinfotech.com"
] | santosh.kshirsagar@automaticinfotech.com |
46ecac6e128394c25c2d9c0c919c7684799500fe | a5a7c6814a41bc3d74c59072eb739cad8a714b33 | /src/main/src/com/sun/org/apache/xerces/internal/impl/msg/XMLMessageFormatter.java | 093f7baa24d72dfd4df1843e240145d29685a287 | [
"Apache-2.0"
] | permissive | as543343879/myReadBook | 3dcbbf739c184a84b32232373708c73db482f352 | 5f3af76e58357a0b2b78cc7e760c1676fe19414b | refs/heads/master | 2023-09-01T16:09:21.287327 | 2023-08-23T06:44:46 | 2023-08-23T06:44:46 | 139,959,385 | 3 | 3 | Apache-2.0 | 2023-06-14T22:31:32 | 2018-07-06T08:54:15 | Java | UTF-8 | Java | false | false | 4,264 | java | /*
* Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/*
* Copyright 1999-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.sun.org.apache.xerces.internal.impl.msg;
import com.sun.org.apache.xerces.internal.util.MessageFormatter;
import com.sun.org.apache.xerces.internal.utils.SecuritySupport;
import java.util.Locale;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
/**
* XMLMessageFormatter provides error messages for the XML 1.0 Recommendation and for
* the Namespaces Recommendation
*
* @xerces.internal
*
* @author Eric Ye, IBM
* @version $Id: XMLMessageFormatter.java 3094 2012-03-21 05:50:01Z joehw $
*
*/
public class XMLMessageFormatter implements MessageFormatter {
/**
* The domain of messages concerning the XML 1.0 specification.
*/
public static final String XML_DOMAIN = "http://www.w3.org/TR/1998/REC-xml-19980210";
public static final String XMLNS_DOMAIN = "http://www.w3.org/TR/1999/REC-xml-names-19990114";
// private objects to cache the locale and resource bundle
private Locale fLocale = null;
private ResourceBundle fResourceBundle = null;
//
// MessageFormatter methods
//
/**
* Formats a message with the specified arguments using the given
* locale information.
*
* @param locale The locale of the message.
* @param key The message key.
* @param arguments The message replacement text arguments. The order
* of the arguments must match that of the placeholders
* in the actual message.
*
* @return Returns the formatted message.
*
* @throws MissingResourceException Thrown if the message with the
* specified key cannot be found.
*/
public String formatMessage(Locale locale, String key, Object[] arguments)
throws MissingResourceException {
if (fResourceBundle == null || locale != fLocale) {
if (locale != null) {
fResourceBundle = SecuritySupport.getResourceBundle("com.sun.org.apache.xerces.internal.impl.msg.XMLMessages", locale);
// memorize the most-recent locale
fLocale = locale;
}
if (fResourceBundle == null)
fResourceBundle = SecuritySupport.getResourceBundle("com.sun.org.apache.xerces.internal.impl.msg.XMLMessages");
}
// format message
String msg;
try {
msg = fResourceBundle.getString(key);
if (arguments != null) {
try {
msg = java.text.MessageFormat.format(msg, arguments);
}
catch (Exception e) {
msg = fResourceBundle.getString("FormatFailed");
msg += " " + fResourceBundle.getString(key);
}
}
}
// error
catch (MissingResourceException e) {
msg = fResourceBundle.getString("BadMessageKey");
throw new MissingResourceException(key, msg, key);
}
// no message
if (msg == null) {
msg = key;
if (arguments.length > 0) {
StringBuffer str = new StringBuffer(msg);
str.append('?');
for (int i = 0; i < arguments.length; i++) {
if (i > 0) {
str.append('&');
}
str.append(String.valueOf(arguments[i]));
}
}
}
return msg;
}
}
| [
"543343879@qq.com"
] | 543343879@qq.com |
d7a1162aeb04e959a2f90a4d42ea797759bf7e9f | 0f77c5ec508d6e8b558f726980067d1058e350d7 | /1_39_120042/com/ankamagames/wakfu/common/game/ai/antlrcriteria/IsCarryingOwnBomb.java | 22175daf94e5188f1462f94baa87fe8a0b75781b | [] | no_license | nightwolf93/Wakxy-Core-Decompiled | aa589ebb92197bf48e6576026648956f93b8bf7f | 2967f8f8fba89018f63b36e3978fc62908aa4d4d | refs/heads/master | 2016-09-05T11:07:45.145928 | 2014-12-30T16:21:30 | 2014-12-30T16:21:30 | 29,250,176 | 5 | 5 | null | 2015-01-14T15:17:02 | 2015-01-14T15:17:02 | null | UTF-8 | Java | false | false | 2,119 | java | package com.ankamagames.wakfu.common.game.ai.antlrcriteria;
import java.util.*;
import com.ankamagames.framework.ai.criteria.antlrcriteria.*;
import com.ankamagames.wakfu.common.game.effectArea.*;
import com.ankamagames.baseImpl.common.clientAndServer.game.effectArea.*;
import com.ankamagames.wakfu.common.datas.*;
import com.ankamagames.wakfu.common.datas.specific.*;
public final class IsCarryingOwnBomb extends FunctionCriterion
{
private boolean m_target;
private static final ArrayList<ParserType[]> SIGNATURES;
@Override
protected List<ParserType[]> getSignatures() {
return IsCarryingOwnBomb.SIGNATURES;
}
public IsCarryingOwnBomb(final ArrayList<ParserObject> args) {
super();
final byte type = this.checkType(args);
if (type == 0) {
this.m_target = false;
}
else if (type == 1) {
final String isTarget = args.get(0).getValue();
if (isTarget.equalsIgnoreCase("target")) {
this.m_target = true;
}
}
}
@Override
public int getValidity(final Object criterionUser, final Object criterionTarget, final Object criterionContent, final Object criterionContext) {
final BasicCharacterInfo targetCharacter = CriteriaUtils.getTargetCharacterInfoFromParameters(this.m_target, criterionUser, criterionTarget, criterionContext, criterionContent);
if (targetCharacter == null) {
return -1;
}
final CarryTarget carryTarget = targetCharacter.getCurrentCarryTarget();
if (!(carryTarget instanceof AbstractBombEffectArea)) {
return -1;
}
if (((AreaOwnerProvider)carryTarget).getOwner() == targetCharacter) {
return 0;
}
return -1;
}
@Override
public Enum getEnum() {
return WakfuCriterionIds.IS_CARRYING_OWN_BOMB;
}
static {
(SIGNATURES = new ArrayList<ParserType[]>()).add(CriterionConstants.EMPTY_SIGNATURE);
IsCarryingOwnBomb.SIGNATURES.add(CriterionConstants.ONE_STRING_SIGNATURE);
}
}
| [
"totomakers@hotmail.fr"
] | totomakers@hotmail.fr |
ca19e50305d1989288d0cfd6be5648d9b675a09d | ac392f1cadd4979813a810f87041efdae3ca4832 | /spring-batch-example/src/test/java/com/vther/spring/batch/ch07/JobLaunchXmlCallback.java | 8fc9cf1eac3e0f7928f54adff89e02675c422530 | [] | no_license | vther/spring-batch | 234356b7823e89e4d13df0d34a61175547dd69b7 | 8ace01e90c82851c45e975aabfd924874090b86e | refs/heads/master | 2021-01-19T19:22:23.505823 | 2017-04-18T15:49:58 | 2017-04-18T15:49:58 | 88,414,256 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 452 | java |
package com.vther.spring.batch.ch07;
import com.vther.spring.batch.JobLaunchBase;
import org.springframework.batch.core.JobParametersBuilder;
import java.util.Date;
/**
*
*
* 2013-2-28下午08:34:48
*/
public class JobLaunchXmlCallback {
public static void main(String[] args) {
JobLaunchBase.executeJob("ch07/job/job-xml-callback.xml", "xmlFileReadAndWriterJob",
new JobParametersBuilder().addDate("date", new Date()));
}
}
| [
"vther@qq.com"
] | vther@qq.com |
b49dd7e1b19fed9e58e4d23be449e3fe4fdc024c | a4f1a8877c721c4275cb4d945abeb5da508792e3 | /utterVoiceCommandsBETA_source_from_JADX/com/brandall/nutter/mg.java | ab3ef4550b3e3f8936d694a23340dba39693b41d | [] | no_license | coolchirag/androidRepez | 36e686d0b2349fa823d810323034a20e58c75e6a | 8d133ed7c523bf15670535dc8ba52556add130d9 | refs/heads/master | 2020-03-19T14:23:46.698124 | 2018-06-13T14:01:34 | 2018-06-13T14:01:34 | 136,620,480 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 614 | java | package com.brandall.nutter;
import android.media.MediaPlayer;
import android.media.MediaPlayer.OnCompletionListener;
final class mg implements OnCompletionListener {
mg() {
}
public final void onCompletion(MediaPlayer mediaPlayer) {
if (ServiceTTS.f844C > ServiceTTS.f845D) {
if (mediaPlayer != null) {
mediaPlayer.release();
}
if (ServiceTTS.f859k) {
ServiceTTS.m931j();
}
ServiceTTS.f860l = false;
ServiceTTS.m945x();
return;
}
ServiceTTS.m944w();
}
}
| [
"j.chirag5555@gmail.com"
] | j.chirag5555@gmail.com |
bdd4c946504a1329a3db75d4b3f3101044a415b6 | ec9bf57a07b7b06134ec7a21407a11f69cc644f7 | /src/ctl.java | cca35fe37017d141c641d32562f0975b0b329c8b | [] | no_license | jzarca01/com.ubercab | f95c12cab7a28f05e8f1d1a9d8a12a5ac7fbf4b1 | e6b454fb0ad547287ae4e71e59d6b9482369647a | refs/heads/master | 2020-06-21T04:37:43.723581 | 2016-07-19T16:30:34 | 2016-07-19T16:30:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 774 | java | import java.util.concurrent.ExecutorService;
public abstract interface ctl
{
public abstract kld<ctn> a();
public abstract cui b();
public abstract ctk c();
public abstract ctm d();
public abstract ckc e();
public abstract kld<clu> f();
public abstract ife g();
public abstract joq h();
public abstract joq i();
public abstract ExecutorService j();
public abstract iks k();
public abstract ctj l();
public abstract cus m();
public abstract cux n();
public abstract cuv o();
public abstract cti p();
public abstract ded q();
public abstract jwc r();
public abstract com s();
}
/* Location:
* Qualified Name: ctl
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/ | [
"reverseengineeringer@hackeradmin.com"
] | reverseengineeringer@hackeradmin.com |
b7452e6e5f24ba6635eaabd2aaac219ca7fc778d | f909ec612f17254be491c3ef9cdc1f0b186e8daf | /springboot_plugin/springboot_redis/icloud-cache/src/main/java/com/icloud/cache/service/impl/CacheManagerImpl.java | 1c4d6b6beca6e4d0a1ee2acfe75ef7b02ae0e5e1 | [
"Apache-2.0"
] | permissive | kingking888/jun_java_plugin | 8853f845f242ce51aaf01dc996ed88784395fd83 | f57e31fa496d488fc96b7e9bab3c245f90db5f21 | refs/heads/master | 2023-06-04T19:30:29.554726 | 2021-06-24T17:19:55 | 2021-06-24T17:19:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,880 | java | /**
*
*/
package com.icloud.cache.service.impl;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Service;
import com.icloud.cache.api.CacheAPI;
import com.icloud.cache.config.RedisConfig;
import com.icloud.cache.constants.CacheConstants;
import com.icloud.cache.entity.CacheBean;
import com.icloud.cache.service.ICacheManager;
import com.icloud.cache.vo.CacheTree;
/**
* 解决问题:
*
* @author Wujun
* @version 1.0
* @date 2018年5月3日
* @since 1.7
*/
@Service
public class CacheManagerImpl implements ICacheManager {
@Autowired
private Environment env;
@Autowired
private CacheAPI cacheAPI;
@Autowired
private RedisConfig redisConfig;
/**
*
*/
public CacheManagerImpl() {
}
@Override
public void removeAll() {
cacheAPI.removeByPre(redisConfig.getSysName());
}
@Override
public void remove(String key) {
cacheAPI.remove(key);
}
@Override
public void remove(List<CacheBean> caches) {
String[] keys = new String[caches.size()];
int i = 0;
for (CacheBean cache : caches) {
keys[i] = cache.getKey();
i++;
}
cacheAPI.remove(keys);
}
@Override
public void removeByPre(String pre) {
if (!pre.contains(redisConfig.getSysName())) {
pre = redisConfig.getSysName()+ ":" + pre+"*";
}
cacheAPI.removeByPre(pre);
}
@Override
public List<CacheTree> getAll() {
List<CacheBean> caches = cacheAPI.listAll();
List<CacheTree> cts = toTree(caches);
return cts;
}
/**
* @param caches
* @return
* @author Wujun
* @date 2018年5月11日
*/
private List<CacheTree> toTree(List<CacheBean> caches) {
List<CacheTree> result = new ArrayList<CacheTree>();
Set<CacheTree> cts = new HashSet<CacheTree>();
CacheTree ct = new CacheTree();
for (CacheBean cache : caches) {
String[] split = cache.getKey().split(":");
for (int i = split.length - 1; i > 0; i--) {
if (i == split.length - 1) {
ct = new CacheTree(cache);
} else {
ct = new CacheTree();
}
if (i - 1 >= 0) {
ct.setId(split[i]);
ct.setParentId(split[i - 1].endsWith(redisConfig.getSysName()) ? "-1" : split[i - 1]);
}
if (split.length == 2) {
cts.remove(ct);
}
cts.add(ct);
}
}
result.addAll(cts);
return result;
}
@Override
public List<CacheTree> getByPre(String pre) {
if (StringUtils.isBlank(pre))
return getAll();
if (!pre.contains(redisConfig.getSysName())) {
pre = redisConfig.getSysName() + "*" + pre;
}
return toTree(cacheAPI.getCacheBeanByPre(pre));
}
public CacheAPI getCacheAPI() {
return cacheAPI;
}
public void setCacheAPI(CacheAPI cacheAPI) {
this.cacheAPI = cacheAPI;
}
@Override
public void update(String key, int hour) {
String value = cacheAPI.get(key);
cacheAPI.set(key, value, hour * 60);
}
@Override
public void update(List<CacheBean> caches, int hour) {
for (CacheBean cache : caches) {
String value = cacheAPI.get(cache.getKey());
cacheAPI.set(cache.getKey(), value, hour);
}
}
@Override
public String get(String key) {
return cacheAPI.get(key);
}
}
| [
"wujun728@hotmail.com"
] | wujun728@hotmail.com |
2a2d04cb0f012b60da737a1cd95406ac666681c8 | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/13/13_9bdc290515511d9c0ab41c12b278b30f55d1167f/DeploymentIndexTest/13_9bdc290515511d9c0ab41c12b278b30f55d1167f_DeploymentIndexTest_t.java | 24d9efde09119af4564bdbdbcc075d8d47b8c0a8 | [] | no_license | zhongxingyu/Seer | 48e7e5197624d7afa94d23f849f8ea2075bcaec0 | c11a3109fdfca9be337e509ecb2c085b60076213 | refs/heads/master | 2023-07-06T12:48:55.516692 | 2023-06-22T07:55:56 | 2023-06-22T07:55:56 | 259,613,157 | 6 | 2 | null | 2023-06-22T07:55:57 | 2020-04-28T11:07:49 | null | UTF-8 | Java | false | false | 3,003 | 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.openejb.server.ejbd;
import java.lang.reflect.Method;
import java.rmi.RemoteException;
import java.util.Collections;
import org.apache.openejb.BeanContext;
import org.apache.openejb.ModuleContext;
import org.apache.openejb.SystemException;
import org.apache.openejb.loader.SystemInstance;
import org.apache.openejb.client.EJBMetaDataImpl;
import org.apache.openejb.client.EJBRequest;
import org.apache.openejb.client.InterfaceType;
import org.apache.openejb.AppContext;
import org.junit.Before;
import org.junit.Test;
public class DeploymentIndexTest {
private Method method;
private BeanContext beanContext;
private DeploymentIndex deploymentIndex;
@Before
public void setUp() throws SystemException {
method = Method.class.getMethods()[0];
beanContext = new BeanContext("aDeploymentId", null, new ModuleContext("", null, "", new AppContext("", SystemInstance.get(), null, null, null, false, Collections.EMPTY_LIST), null), DeploymentIndexTest.class, null, null, null, null, null, null, null, null, null, null, false);
deploymentIndex = new DeploymentIndex(new BeanContext[] {beanContext, beanContext});
}
@Test
public void testGetDeploymentEJBRequest() throws RemoteException {
EJBMetaDataImpl ejbMetadataWithId = new EJBMetaDataImpl(null, null, null, null, null, 1, InterfaceType.BUSINESS_REMOTE, null, null);
EJBRequest request = new EJBRequest(null, ejbMetadataWithId, method, null, null);
BeanContext info = deploymentIndex.getDeployment(request);
assert beanContext.equals(info);
assert request.getDeploymentId().equals(info.getDeploymentID());
}
@Test(expected = RemoteException.class)
public void testGetDeploymentEJBRequestRemoteException() throws RemoteException {
// 0 causes DeploymentIndex to move further
EJBMetaDataImpl ejbMetadata = new EJBMetaDataImpl(null, null, null, null, null, 0, InterfaceType.BUSINESS_REMOTE, null, null);
EJBRequest request = new EJBRequest(null, ejbMetadata, method, null, null);
deploymentIndex.getDeployment(request);
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
64ba1292433847620e44beda42c46946b6fff841 | f250150db9a516a40522a7a4330851981f0088c3 | /core/src/main/java/com/geecommerce/core/payment/annotation/PaymentMethod.java | 2faa9bd9099facd65cef317fad2037cc6d7b4f2a | [
"Apache-2.0"
] | permissive | geetools/geeCommerce-Java-Shop-Software-and-PIM | f623fd67f74d87a9e5ab4dc43a7023ed37651bf6 | fc115eb2caa989ac939cf436c2144ebeedcac5aa | refs/heads/master | 2023-03-30T16:49:08.912821 | 2022-12-06T09:13:09 | 2023-01-10T17:47:55 | 74,185,677 | 11 | 2 | Apache-2.0 | 2023-03-22T21:24:05 | 2016-11-19T03:56:51 | Java | UTF-8 | Java | false | false | 310 | java | package com.geecommerce.core.payment.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface PaymentMethod {
} | [
"md@commerceboard.com"
] | md@commerceboard.com |
cad2e78ed5d73ae787afda1e887bf7d8b76fcd7f | e7c4ca6f5b87695b80e22e481f92e2a1756d101a | /src/main/java/com/zlj/zl/user/development/controller/DevelopmentController.java | eaa3bf5a9a8cc33173fc67e0cc4efceffa3a84fe | [] | no_license | hliyufeng/zljpa | 5b33571c26527020ea35efa010ad9f2f4056c2d5 | ff1f2ef2d5e0304d84285bbd57289a409becede6 | refs/heads/master | 2020-03-27T08:36:48.222113 | 2018-06-06T02:43:04 | 2018-06-06T02:43:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,997 | java | package com.zlj.zl.user.development.controller;
import com.zlj.zl.user.development.model.DevelopmentModel;
import com.zlj.zl.user.development.service.DevelopmentService;
import com.zlj.zl.util.resultJson.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.domain.Page;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;
import javax.validation.Valid;
/**
* @author ld
* @name
* @table
* @remarks
*/
@RestController
@RequestMapping("/development")
public class DevelopmentController {
@Value("${page.pageSize}")
private int pageSize;
@Autowired
private DevelopmentService service;
@RequestMapping(value = "/init", method = RequestMethod.GET)
public ModelAndView page() {
return new ModelAndView("/development/index");
}
@RequestMapping(value = "/development/{pageNow}", method = RequestMethod.GET)
public ResponseResult<Page<DevelopmentModel>> page_data(@PathVariable("pageNow") int pageNow,
@RequestParam(value = "titles", required = false) String titles) {
return service.page(pageNow, pageSize, titles);
}
@RequestMapping(value = "/add", method = RequestMethod.GET)
public ModelAndView add() {
return new ModelAndView("/development/add");
}
@RequestMapping(value = "/development", method = RequestMethod.POST)
public ResponseResult<DevelopmentModel> save_data(@Valid @ModelAttribute("form") DevelopmentModel model,
BindingResult bindingResult) {
ResponseResult<DevelopmentModel> result = new ResponseResult<>();
// 数据验证
if (bindingResult.hasErrors()) {
result.setSuccess(false);
result.setMessage(bindingResult.getFieldError().getDefaultMessage());
return result;
}
// 重复名称验证
// ResponseResult<List<developmentTypeModel>> result1 = service.findByTypeName(model.getTypeName());
// if (result1.isSuccess()) {
// result.setSuccess(false);
// result.setMessage("名称重复");
// return result;
// }
return service.save(model);
}
@RequestMapping(value = "/update/{id}", method = RequestMethod.GET)
public ModelAndView update(@PathVariable("id") String id) {
return new ModelAndView("/development/update")
.addObject("uuid", id);
}
@RequestMapping(value = "/findOne/{id}", method = RequestMethod.GET)
public ResponseResult<DevelopmentModel> findOne(@PathVariable("id") String id) {
return service.findOne(id);
}
@RequestMapping(value = "/development", method = RequestMethod.PUT)
public ResponseResult<DevelopmentModel> update_data(@Valid @ModelAttribute("form") DevelopmentModel model,
BindingResult bindingResult) {
ResponseResult<DevelopmentModel> result = new ResponseResult<>();
// 数据验证
if (bindingResult.hasErrors()) {
result.setSuccess(false);
result.setMessage(bindingResult.getFieldError().getDefaultMessage());
return result;
}
// 重复名称验证
// ResponseResult<List<developmentTypeModel>> result1 = service.findByTypeName(model.getTypeName());
// if (result1.isSuccess()) {
// result.setSuccess(false);
// result.setMessage("名称重复");
// return result;
// }
return service.update(model);
}
@RequestMapping(value = "/development/{id}", method = RequestMethod.DELETE)
public ResponseResult<DevelopmentModel> delete_data(@PathVariable("id") String id) {
return service.delete(id);
}
}
| [
"xuesemofa@126.com"
] | xuesemofa@126.com |
6938084de2d2de3d53515650a7697113ccfa02b8 | bcaca2c455dd33674f74aab994917f8f0a7d5202 | /src/main/java/slimeknights/tconstruct/library/book/sectiontransformer/BowMaterialSectionTransformer.java | e33fc97e70ad82a9f1b3042006715c60822b0fb2 | [
"MIT"
] | permissive | Drullkus/TinkersConstruct | b01d22cca81394cfbcffabd6ef1a93fc56fa74c7 | 7c1003c25344556bab9dae2e23fbf866f1c415ad | refs/heads/master | 2021-01-01T15:42:07.340804 | 2017-07-16T14:55:14 | 2017-07-16T14:55:14 | 31,044,360 | 0 | 0 | null | 2015-02-20T00:24:29 | 2015-02-20T00:24:28 | null | UTF-8 | Java | false | false | 4,063 | java | package slimeknights.tconstruct.library.book.sectiontransformer;
import com.google.common.collect.Lists;
import net.minecraftforge.fml.common.Loader;
import net.minecraftforge.fml.common.LoaderState;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import java.util.List;
import java.util.ListIterator;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import slimeknights.mantle.client.book.data.BookData;
import slimeknights.mantle.client.book.data.PageData;
import slimeknights.mantle.client.book.data.SectionData;
import slimeknights.mantle.client.book.data.element.ImageData;
import slimeknights.mantle.client.gui.book.element.ElementImage;
import slimeknights.mantle.client.gui.book.element.ElementItem;
import slimeknights.mantle.client.gui.book.element.SizedBookElement;
import slimeknights.tconstruct.library.TinkerRegistry;
import slimeknights.tconstruct.library.book.content.ContentListing;
import slimeknights.tconstruct.library.book.content.ContentPageIconList;
import slimeknights.tconstruct.library.book.content.ContentSingleStatMultMaterial;
import slimeknights.tconstruct.library.materials.Material;
import slimeknights.tconstruct.library.materials.MaterialTypes;
/** Populates the materials section for tool materials with content */
@SideOnly(Side.CLIENT)
public class BowMaterialSectionTransformer extends SectionTransformer {
public BowMaterialSectionTransformer() {
super("bowmaterials");
}
@Override
public void transform(BookData book, SectionData data) {
ContentListing listing = new ContentListing();
listing.title = book.translate(sectionName);
addPage(data, sectionName, "", listing);
// don't do stuff during preinit etc, we only want to fill it once everything is added
if(!Loader.instance().hasReachedState(LoaderState.POSTINITIALIZATION)) {
return;
}
Stream.of(MaterialTypes.BOW, MaterialTypes.BOWSTRING, MaterialTypes.SHAFT, MaterialTypes.FLETCHING).forEach(type -> {
int pageIndex = data.pages.size();
generateContent(type, data);
listing.addEntry(getStatName(type), data.pages.get(pageIndex));
});
}
protected String getStatName(String type) {
return Material.UNKNOWN.getStats(type).getLocalizedName();
}
protected List<ContentPageIconList> generateContent(String materialType, SectionData data) {
List<Material> materialList = TinkerRegistry.getAllMaterials().stream()
.filter(m -> !m.isHidden())
.filter(Material::hasItems)
.filter(material -> material.hasStats(materialType))
.collect(Collectors.toList());
List<ContentPageIconList> contentPages = ContentPageIconList.getPagesNeededForItemCount(materialList.size(), data, getStatName(materialType));
ListIterator<ContentPageIconList> iter = contentPages.listIterator();
ContentPageIconList currentOverview = iter.next();
// we want all the same, because it looks really weird otherwise :I
contentPages.forEach(p -> p.maxScale = 1f);
for(List<Material> materials : Lists.partition(materialList, 3)) {
ContentSingleStatMultMaterial content = new ContentSingleStatMultMaterial(materials, materialType);
String id = materialType + "_" + materials.stream().map(Material::getIdentifier).collect(Collectors.joining("_"));
PageData page = addPage(data, id, ContentSingleStatMultMaterial.ID, content);
for(Material material : materials) {
SizedBookElement icon;
if(material.getRepresentativeItem() != null) {
icon = new ElementItem(0, 0, 1f, material.getRepresentativeItem());
}
else {
icon = new ElementImage(ImageData.MISSING);
}
if(!currentOverview.addLink(icon, material.getLocalizedNameColored(), page)) {
currentOverview = iter.next();
}
}
}
return contentPages;
}
}
| [
"bernhard.bonigl@gmail.com"
] | bernhard.bonigl@gmail.com |
35b8c04547af18b92c53510d7c9dbe30bbc28a65 | 963599f6f1f376ba94cbb504e8b324bcce5de7a3 | /sources/com/google/android/gms/internal/measurement/zzjy.java | 35751bccc8cbfcf6b27836ba2da07648f9ea5baa | [] | no_license | NikiHard/cuddly-pancake | 563718cb73fdc4b7b12c6233d9bf44f381dd6759 | 3a5aa80d25d12da08fd621dc3a15fbd536d0b3d4 | refs/heads/main | 2023-04-09T06:58:04.403056 | 2021-04-20T00:45:08 | 2021-04-20T00:45:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,220 | java | package com.google.android.gms.internal.measurement;
import java.io.IOException;
import java.util.List;
import java.util.Map;
/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */
interface zzjy {
int zza() throws IOException;
<T> T zza(zzkb<T> zzkb, zzhl zzhl) throws IOException;
void zza(List<Double> list) throws IOException;
<T> void zza(List<T> list, zzkb<T> zzkb, zzhl zzhl) throws IOException;
<K, V> void zza(Map<K, V> map, zzja<K, V> zzja, zzhl zzhl) throws IOException;
int zzb();
@Deprecated
<T> T zzb(zzkb<T> zzkb, zzhl zzhl) throws IOException;
void zzb(List<Float> list) throws IOException;
@Deprecated
<T> void zzb(List<T> list, zzkb<T> zzkb, zzhl zzhl) throws IOException;
void zzc(List<Long> list) throws IOException;
boolean zzc() throws IOException;
double zzd() throws IOException;
void zzd(List<Long> list) throws IOException;
float zze() throws IOException;
void zze(List<Integer> list) throws IOException;
long zzf() throws IOException;
void zzf(List<Long> list) throws IOException;
long zzg() throws IOException;
void zzg(List<Integer> list) throws IOException;
int zzh() throws IOException;
void zzh(List<Boolean> list) throws IOException;
long zzi() throws IOException;
void zzi(List<String> list) throws IOException;
int zzj() throws IOException;
void zzj(List<String> list) throws IOException;
void zzk(List<zzgp> list) throws IOException;
boolean zzk() throws IOException;
String zzl() throws IOException;
void zzl(List<Integer> list) throws IOException;
String zzm() throws IOException;
void zzm(List<Integer> list) throws IOException;
zzgp zzn() throws IOException;
void zzn(List<Integer> list) throws IOException;
int zzo() throws IOException;
void zzo(List<Long> list) throws IOException;
int zzp() throws IOException;
void zzp(List<Integer> list) throws IOException;
int zzq() throws IOException;
void zzq(List<Long> list) throws IOException;
long zzr() throws IOException;
int zzs() throws IOException;
long zzt() throws IOException;
}
| [
"a.amirovv@mail.ru"
] | a.amirovv@mail.ru |
c5b2336aa55edd872ecca8d1051ce12c638c2411 | c0456d9871e8cd204024bc0e9252d11fb0d7de60 | /picture_library/src/main/java/com/luck/picture/lib/SpacesItemDecoration.java | 20579804532b64e81dc64be741a7c64f8c9cf8bc | [] | no_license | githubwxq/DevelopTools | c3c85747604131280c40be9684a3179deb49f97c | 6b08b91897816845ed7f0f17eeeb3afa170586d1 | refs/heads/master | 2022-10-12T09:50:01.189037 | 2022-09-26T06:50:13 | 2022-09-26T06:50:13 | 138,365,510 | 10 | 6 | null | 2019-01-08T07:01:07 | 2018-06-23T02:37:50 | Java | UTF-8 | Java | false | false | 1,398 | java | package com.luck.picture.lib;
import android.graphics.Rect;
import androidx.recyclerview.widget.RecyclerView;
import android.view.View;
/**
* 右边有 最后一项没有 上面的间距 处理右面的间距
*/
public class SpacesItemDecoration extends RecyclerView.ItemDecoration {
private int space;
private int span; //列数
// 右边间距
public SpacesItemDecoration(int space, int span) {
this.space = space;
this.span = span;
}
@Override
public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
if (parent.getChildAdapterPosition(view) <= span - 1) { //第一行上边距不需要
outRect.top = 0;
} else {
outRect.top = (int) (parent.getResources().getDisplayMetrics().density * space + 0.5f);
}
if ((parent.getChildAdapterPosition(view) + 1) % span == 0) { //列的倍数右边距不需要
outRect.right = 0;
} else {
outRect.right = (int) (parent.getResources().getDisplayMetrics().density * space + 0.5f);
}
}
}
//
//最后在说下我理解的等间距的原理
// 比如我想给间距设置成20
//那我们考虑到上面说的叠加 设置间距我只设置一半 就是10
// 在代码里在给recyclerview设置一个10的内边距
//这样就间距就都是20了 | [
"805380422@qq.com"
] | 805380422@qq.com |
056fed5274b698ed7ca4a44ff115913168542c1f | 78f7fd54a94c334ec56f27451688858662e1495e | /partyanalyst-service/trunk/src/main/java/com/itgrids/partyanalyst/model/BiometricDeviceLog.java | 654e6f81a2e4ac1d5917ac4192d5ba6a84b0b998 | [] | no_license | hymanath/PA | 2e8f2ef9e1d3ed99df496761a7b72ec50d25e7ef | d166bf434601f0fbe45af02064c94954f6326fd7 | refs/heads/master | 2021-09-12T09:06:37.814523 | 2018-04-13T20:13:59 | 2018-04-13T20:13:59 | 129,496,146 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,129 | java | package com.itgrids.partyanalyst.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.LazyToOne;
import org.hibernate.annotations.LazyToOneOption;
import org.hibernate.annotations.NotFoundAction;
@Entity
@Table(name="biometric_device_log")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class BiometricDeviceLog extends BaseModel implements Serializable{
private static final long serialVersionUID = 4646275183106427484L;
private Long biometricDeviceLogId;
private BiometricDeviceLogTrack biometricDeviceLogTrack;
private Long deviceLogId;
private Long deviceId;
private String employeeCode;
private Date logTime;
private String logMode;
private Date insertedTime;
public BiometricDeviceLog(){}
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
@Column(name="biometric_device_log_id", unique=true, nullable=false)
public Long getBiometricDeviceLogId() {
return biometricDeviceLogId;
}
public void setBiometricDeviceLogId(Long biometricDeviceLogId) {
this.biometricDeviceLogId = biometricDeviceLogId;
}
@ManyToOne(cascade = CascadeType.ALL,fetch = FetchType.LAZY)
@JoinColumn(name="biometric_device_log_track_id")
@LazyToOne(LazyToOneOption.NO_PROXY)
@org.hibernate.annotations.NotFound(action=NotFoundAction.IGNORE)
public BiometricDeviceLogTrack getBiometricDeviceLogTrack() {
return biometricDeviceLogTrack;
}
public void setBiometricDeviceLogTrack(
BiometricDeviceLogTrack biometricDeviceLogTrack) {
this.biometricDeviceLogTrack = biometricDeviceLogTrack;
}
@Column(name="device_log_id")
public Long getDeviceLogId() {
return deviceLogId;
}
public void setDeviceLogId(Long deviceLogId) {
this.deviceLogId = deviceLogId;
}
@Column(name="device_id")
public Long getDeviceId() {
return deviceId;
}
public void setDeviceId(Long deviceId) {
this.deviceId = deviceId;
}
@Column(name="employee_code")
public String getEmployeeCode() {
return employeeCode;
}
public void setEmployeeCode(String employeeCode) {
this.employeeCode = employeeCode;
}
@Column(name="log_time")
public Date getLogTime() {
return logTime;
}
public void setLogTime(Date logTime) {
this.logTime = logTime;
}
@Column(name="log_mode")
public String getLogMode() {
return logMode;
}
public void setLogMode(String logMode) {
this.logMode = logMode;
}
@Column(name="inserted_time")
public Date getInsertedTime() {
return insertedTime;
}
public void setInsertedTime(Date insertedTime) {
this.insertedTime = insertedTime;
}
}
| [
"itgrids@b17b186f-d863-de11-8533-00e0815b4126"
] | itgrids@b17b186f-d863-de11-8533-00e0815b4126 |
3fb3415c00ef1d37918704fc9a58a4f592ce12e5 | 05815b2cef740c07db51e14116ea0525e0fbe07c | /mxupdate-eclipse/tags/V0.9.0/src/main/java/org/mxupdate/eclipse/adapter/ISearchItem.java | fcca61377db2cc12d5f622befaaf877049bff0d1 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"CC-BY-2.5"
] | permissive | moxter/mxupdate-archive | c978dcadaf739fc2a389b71b0310ada19315dbdb | 0640f790da246976af6d420011eb77b2395267a7 | refs/heads/master | 2021-01-01T03:50:10.454294 | 2014-02-07T20:48:35 | 2014-02-07T20:48:35 | 57,129,728 | 2 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,335 | java | /*
* Copyright 2008-2010 The MxUpdate Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Revision: $Rev$
* Last Changed: $Date$
* Last Changed By: $Author$
*/
package org.mxupdate.eclipse.adapter;
/**
* Defines the item of a result for a search.
*
* @author The MxUpdate Team
* @version $Id$
*/
public interface ISearchItem
{
/**
* Returns the type definition of this item.
*
* @return type definition
*/
String getTypeDef();
/**
* Returns the name of this item.
*
* @return name
*/
String getName();
/**
* Returns the file name of this item.
*
* @return file name
*/
String getFileName();
/**
* Returns the file path of this item.
*
* @return file path
*/
String getFilePath();
}
| [
"tim.moxter@d6820e0a-e98e-11dd-b00f-9fabb4b2ff13"
] | tim.moxter@d6820e0a-e98e-11dd-b00f-9fabb4b2ff13 |
d061cf515d55e86ceff7b85b88a70cb976782d2e | 5d193fd79c54c6363bf4e922a9521086a375694b | /__EixoX.Mathematica/Analysis/solvers/AbstractDifferentiableUnivariateSolver.java | deffaebca78696cabf584dd26c08e7118c9aa049 | [] | no_license | EixoX/Jetfuel-CSharp | 8c497e50188afca6df7e20246e2539e2c1cf82b2 | 573db431dada739d4216ddec9b23bc115a3524b5 | refs/heads/master | 2022-12-14T15:47:16.351091 | 2022-12-11T02:23:09 | 2022-12-11T02:23:09 | 8,447,110 | 2 | 5 | null | 2022-12-11T02:23:11 | 2013-02-27T02:29:00 | Java | UTF-8 | Java | false | false | 3,354 | 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.math3.analysis.solvers;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.exception.TooManyEvaluationsException;
/**
* Provide a default implementation for several functions useful to generic
* solvers.
*
* @since 3.0
* @version $Id: AbstractDifferentiableUnivariateSolver.java 1379560 2012-08-31 19:40:30Z erans $
* @deprecated as of 3.1, replaced by {@link AbstractUnivariateDifferentiableSolver}
*/
@Deprecated
public abstract class AbstractDifferentiableUnivariateSolver
extends BaseAbstractUnivariateSolver<DifferentiableUnivariateFunction>
implements DifferentiableUnivariateSolver {
/** Derivative of the function to solve. */
private UnivariateFunction functionDerivative;
/**
* Construct a solver with given absolute accuracy.
*
* @param absoluteAccuracy Maximum absolute error.
*/
protected AbstractDifferentiableUnivariateSolver(final double absoluteAccuracy) {
super(absoluteAccuracy);
}
/**
* Construct a solver with given accuracies.
*
* @param relativeAccuracy Maximum relative error.
* @param absoluteAccuracy Maximum absolute error.
* @param functionValueAccuracy Maximum function value error.
*/
protected AbstractDifferentiableUnivariateSolver(final double relativeAccuracy,
final double absoluteAccuracy,
final double functionValueAccuracy) {
super(relativeAccuracy, absoluteAccuracy, functionValueAccuracy);
}
/**
* Compute the objective function value.
*
* @param point Point at which the objective function must be evaluated.
* @return the objective function value at specified point.
* @throws org.apache.commons.math3.exception.TooManyEvaluationsException
* if the maximal number of evaluations is exceeded.
*/
protected double computeDerivativeObjectiveValue(double point)
throws TooManyEvaluationsException {
incrementEvaluationCount();
return functionDerivative.value(point);
}
/**
* {@inheritDoc}
*/
@Override
protected void setup(int maxEval, DifferentiableUnivariateFunction f,
double min, double max, double startValue) {
super.setup(maxEval, f, min, max, startValue);
functionDerivative = f.derivative();
}
}
| [
"rodrigo.portela@gmail.com"
] | rodrigo.portela@gmail.com |
0c3ad7334e982b4333c477ac5b5bb21b8498000d | 601582228575ca0d5f61b4c211fd37f9e4e2564c | /logisoft_revision1/src/com/gp/cong/logisoft/bc/referenceDataManagement/WareHouseTempBC.java | 382a87baa8d31244146277fa079cdd6df5a16519 | [] | no_license | omkarziletech/StrutsCode | 3ce7c36877f5934168b0b4830cf0bb25aac6bb3d | c9745c81f4ec0169bf7ca455b8854b162d6eea5b | refs/heads/master | 2021-01-11T08:48:58.174554 | 2016-12-17T10:45:19 | 2016-12-17T10:45:19 | 76,713,903 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,182 | java | package com.gp.cong.logisoft.bc.referenceDataManagement;
import java.util.Iterator;
import java.util.List;
import com.gp.cong.logisoft.domain.Warehouse;
import com.gp.cong.logisoft.domain.WarehouseTemp;
import com.gp.cong.logisoft.hibernate.dao.WarehouseDAO;
public class WareHouseTempBC {
public WarehouseTemp getWareHouseDetails(String warehouseCode,String warehouseName,String city,String airCargo) throws Exception {
WarehouseDAO warehouseDAO=new WarehouseDAO();
WarehouseTemp warehouseTemp=new WarehouseTemp();
List warehouseList=warehouseDAO.findForSearchWarehouse(warehouseCode,warehouseName,city,airCargo);
if(warehouseList!=null && warehouseList.size()>0){
warehouseTemp=(WarehouseTemp)warehouseList.get(0);
}
return warehouseTemp;
}
public Warehouse getWareHouseAddress(String warehouseName) throws Exception {
WarehouseDAO warehouseDAO=new WarehouseDAO();
String wareHouseAddress="";
Warehouse warehouse=new Warehouse();
List warehouseList=warehouseDAO.findForWarehousenameAndAddress(
warehouseName,wareHouseAddress);
if(warehouseList!=null && warehouseList.size()>0){
warehouse=(Warehouse)warehouseList.get(0);
}
return warehouse;
}
}
| [
"omkar@ziletech.com"
] | omkar@ziletech.com |
6a5d1390398ddf8977b7f3f217bddd611da14d38 | 6e0fe0c6b38e4647172259d6c65c2e2c829cdbc5 | /modules/base/indexing-impl/src/main/java/com/intellij/openapi/module/impl/scopes/ModulesScope.java | f76b579e04a78ba7ffdde6d66bb3410cab4d0fd0 | [
"Apache-2.0",
"LicenseRef-scancode-jgraph"
] | permissive | TCROC/consulo | 3f9a6df84e0fbf2b6211457b8a5f5857303b3fa6 | cda24a03912102f916dc06ffce052892a83dd5a7 | refs/heads/master | 2023-01-30T13:19:04.216407 | 2020-12-06T16:57:00 | 2020-12-06T16:57:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,069 | java | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* 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.intellij.openapi.module.impl.scopes;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.roots.ProjectFileIndex;
import com.intellij.openapi.roots.ProjectRootManager;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.psi.search.GlobalSearchScope;
import org.jetbrains.annotations.NonNls;
import javax.annotation.Nonnull;
import java.util.Arrays;
import java.util.Set;
public class ModulesScope extends GlobalSearchScope {
private final ProjectFileIndex myProjectFileIndex;
private final Set<Module> myModules;
public ModulesScope(@Nonnull Set<Module> modules, Project project) {
super(project);
myProjectFileIndex = ProjectRootManager.getInstance(project).getFileIndex();
myModules = modules;
}
@Override
public boolean contains(@Nonnull VirtualFile file) {
Module moduleOfFile = myProjectFileIndex.getModuleForFile(file);
return moduleOfFile != null && myModules.contains(moduleOfFile);
}
@Override
public int compare(@Nonnull VirtualFile file1, @Nonnull VirtualFile file2) {
return 0;
}
@Override
public boolean isSearchInModuleContent(@Nonnull Module aModule) {
return myModules.contains(aModule);
}
@Override
public boolean isSearchInLibraries() {
return false;
}
@NonNls
public String toString() {
return "Modules:" + Arrays.toString(myModules.toArray(new Module[myModules.size()]));
}
}
| [
"vistall.valeriy@gmail.com"
] | vistall.valeriy@gmail.com |
685dbc76d42b14548b160a1d7d107e5f4651f28f | 39e880dacc9a01d03399b3ff1fb5e96b98802039 | /tern-core/src/main/java/org/ternlang/core/function/index/ParameterTypeExtractor.java | aec6a2442c4c53acba4d56a642ae2261583b46d8 | [] | no_license | tern-lang/tern | 581aa79bebcfe079fe7648f764e921ecb7a12390 | 7cf10f325f25b379717985673af4c0bae308a712 | refs/heads/master | 2023-07-18T12:27:05.425643 | 2023-07-09T13:54:21 | 2023-07-09T13:54:21 | 169,908,813 | 24 | 2 | null | 2023-02-10T16:44:12 | 2019-02-09T20:11:12 | Java | UTF-8 | Java | false | false | 1,277 | java | package org.ternlang.core.function.index;
import java.util.List;
import org.ternlang.core.constraint.Constraint;
import org.ternlang.core.function.Function;
import org.ternlang.core.function.Parameter;
import org.ternlang.core.function.Signature;
import org.ternlang.core.scope.Scope;
import org.ternlang.core.type.Type;
public class ParameterTypeExtractor {
private final Type[] empty;
public ParameterTypeExtractor() {
this.empty = new Type[]{};
}
public Type[] extract(FunctionPointer pointer) {
Function function = pointer.getFunction();
Signature signature = function.getSignature();
List<Parameter> parameters = signature.getParameters();
Type source = function.getSource();
int size = parameters.size();
if(source != null) {
Type[] list = new Type[size];
for (int i = 0; i < size; i++) {
Scope scope = source.getScope();
Parameter parameter = parameters.get(i);
Constraint constraint = parameter.getConstraint();
Type type = constraint.getType(scope);
if (type != null) {
list[i] = type;
}
}
return list;
}
return empty;
}
}
| [
"theternlang@gmail.com"
] | theternlang@gmail.com |
1f6ecafbb3bc828aa12c6fa49e0d3308231d6ceb | 0207203c7c4790c35bcb7b5c21d3d66757f658d8 | /docroot/WEB-INF/src/vn/dtt/duongbien/dao/vrcb/service/HistoryInterfaceRequestServiceUtil.java | 070291a6edb4a005a1a8acf005b9a311d3063405 | [] | no_license | longdm10/DuongBoDoanhNghiepApp-portlet | 930a0628a34a76dbd9e7e96febcd13206366b954 | 512b03be6cd6d7e2aa9043ab0a9480de5518ce84 | refs/heads/master | 2021-01-21T13:44:15.439969 | 2016-04-28T17:39:15 | 2016-04-28T17:39:15 | 54,985,320 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,315 | java | /**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package vn.dtt.duongbien.dao.vrcb.service;
import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.util.ReferenceRegistry;
import com.liferay.portal.service.InvokableService;
/**
* Provides the remote service utility for HistoryInterfaceRequest. This utility wraps
* {@link vn.dtt.duongbien.dao.vrcb.service.impl.HistoryInterfaceRequestServiceImpl} and is the
* primary access point for service operations in application layer code running
* on a remote server. Methods of this service are expected to have security
* checks based on the propagated JAAS credentials because this service can be
* accessed remotely.
*
* @author longdm
* @see HistoryInterfaceRequestService
* @see vn.dtt.duongbien.dao.vrcb.service.base.HistoryInterfaceRequestServiceBaseImpl
* @see vn.dtt.duongbien.dao.vrcb.service.impl.HistoryInterfaceRequestServiceImpl
* @generated
*/
public class HistoryInterfaceRequestServiceUtil {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this class directly. Add custom service methods to {@link vn.dtt.duongbien.dao.vrcb.service.impl.HistoryInterfaceRequestServiceImpl} and rerun ServiceBuilder to regenerate this class.
*/
/**
* Returns the Spring bean ID for this bean.
*
* @return the Spring bean ID for this bean
*/
public static java.lang.String getBeanIdentifier() {
return getService().getBeanIdentifier();
}
/**
* Sets the Spring bean ID for this bean.
*
* @param beanIdentifier the Spring bean ID for this bean
*/
public static void setBeanIdentifier(java.lang.String beanIdentifier) {
getService().setBeanIdentifier(beanIdentifier);
}
public static java.lang.Object invokeMethod(java.lang.String name,
java.lang.String[] parameterTypes, java.lang.Object[] arguments)
throws java.lang.Throwable {
return getService().invokeMethod(name, parameterTypes, arguments);
}
public static void clearService() {
_service = null;
}
public static HistoryInterfaceRequestService getService() {
if (_service == null) {
InvokableService invokableService = (InvokableService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
HistoryInterfaceRequestService.class.getName());
if (invokableService instanceof HistoryInterfaceRequestService) {
_service = (HistoryInterfaceRequestService)invokableService;
}
else {
_service = new HistoryInterfaceRequestServiceClp(invokableService);
}
ReferenceRegistry.registerReference(HistoryInterfaceRequestServiceUtil.class,
"_service");
}
return _service;
}
/**
* @deprecated As of 6.2.0
*/
public void setService(HistoryInterfaceRequestService service) {
}
private static HistoryInterfaceRequestService _service;
} | [
"longdm10@gmail.com"
] | longdm10@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.