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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0d480a26ca36fb02c672e939464e737279d8c4f5
|
62aaa67a468107022635b566cbcf1109d3e4e648
|
/huiyuan/src/private/nc/bs/pub/action/N_HK28_SAVEBASE.java
|
b015ddeff136eb06fa9a597bc3803c8e8f7bc5c5
|
[] |
no_license
|
boblee821226/hongkun
|
f17a90221683f816f382443f5c223347b41afefc
|
46c02ab124924f2c976044c5f31e632f706e61cf
|
refs/heads/master
| 2021-06-25T03:57:28.516510
| 2021-02-22T05:42:07
| 2021-02-22T05:42:07
| 204,677,636
| 1
| 1
| null | null | null | null |
GB18030
|
Java
| false
| false
| 1,921
|
java
|
package nc.bs.pub.action;
import nc.bs.framework.common.NCLocator;
import nc.bs.pubapp.pf.action.AbstractPfAction;
import nc.impl.pubapp.pattern.rule.IRule;
import nc.impl.pubapp.pattern.rule.processer.CompareAroundProcesser;
import nc.vo.jcom.lang.StringUtil;
import nc.vo.pub.BusinessException;
import nc.vo.pubapp.pattern.exception.ExceptionUtils;
import nc.bs.hkjt.huiyuan.kazuofei.plugin.bpplugin.Hy_kazuofeiPluginPoint;
import nc.vo.hkjt.huiyuan.kazuofei.KazuofeiBillVO;
import nc.itf.hkjt.IHy_kazuofeiMaintain;
public class N_HK28_SAVEBASE extends AbstractPfAction<KazuofeiBillVO> {
@Override
protected CompareAroundProcesser<KazuofeiBillVO> getCompareAroundProcesserWithRules(
Object userObj) {
CompareAroundProcesser<KazuofeiBillVO> processor = null;
KazuofeiBillVO[] clientFullVOs = (KazuofeiBillVO[]) this.getVos();
if (!StringUtil.isEmptyWithTrim(clientFullVOs[0].getParentVO()
.getPrimaryKey())) {
processor = new CompareAroundProcesser<KazuofeiBillVO>(
Hy_kazuofeiPluginPoint.SCRIPT_UPDATE);
} else {
processor = new CompareAroundProcesser<KazuofeiBillVO>(
Hy_kazuofeiPluginPoint.SCRIPT_INSERT);
}
// TODO 在此处添加前后规则
IRule<KazuofeiBillVO> rule = null;
return processor;
}
@Override
protected KazuofeiBillVO[] processBP(Object userObj,
KazuofeiBillVO[] clientFullVOs, KazuofeiBillVO[] originBills) {
KazuofeiBillVO[] bills = null;
try {
IHy_kazuofeiMaintain operator = NCLocator.getInstance()
.lookup(IHy_kazuofeiMaintain.class);
if (!StringUtil.isEmptyWithTrim(clientFullVOs[0].getParentVO()
.getPrimaryKey())) {
bills = operator.update(clientFullVOs, originBills);
} else {
bills = operator.insert(clientFullVOs, originBills);
}
} catch (BusinessException e) {
ExceptionUtils.wrappBusinessException(e.getMessage());
}
return bills;
}
}
|
[
"441814246@qq.com"
] |
441814246@qq.com
|
fd49496a7e2663a048d0bd320cbbb76f2627bb5a
|
79a9e525809ac5efe331958d1737d678cbe1a74e
|
/src/main/java/com/jmatio/types/MLUInt32.java
|
5fe4ed8af4d845bfb5d9cc9f23b425eb5b92d37d
|
[
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] |
permissive
|
diffplug/matfilerw
|
170b4e8d2194771e39c00df44a9914c9ff766fb7
|
5edb6b223c77fe1dfdc5210f2078f94878d3f721
|
refs/heads/master
| 2021-01-17T15:18:30.390668
| 2018-12-28T19:45:27
| 2018-12-28T19:45:27
| 43,794,907
| 61
| 22
|
NOASSERTION
| 2018-12-28T19:30:20
| 2015-10-07T04:23:06
|
Java
|
UTF-8
|
Java
| false
| false
| 678
|
java
|
/*
* Code licensed under new-style BSD (see LICENSE).
* All code up to tags/original: Copyright (c) 2006, Wojciech Gradkowski
* All code after tags/original: Copyright (c) 2015, DiffPlug
*/
package com.jmatio.types;
public class MLUInt32 extends MLInt32 {
public MLUInt32(String name, int[] dims, int type, int attributes) {
super(name, dims, type, attributes);
}
public MLUInt32(String name, int[] vals, int m) {
super(name, vals, m);
}
public MLUInt32(String name, int[] dims) {
super(name, dims);
}
public MLUInt32(String name, int[][] vals) {
super(name, vals);
}
public MLUInt32(String name, Integer[] vals, int m) {
super(name, vals, m);
}
}
|
[
"ned.twigg@diffplug.com"
] |
ned.twigg@diffplug.com
|
5b90d928f05160e80c02f4a995eee1a490a6e031
|
cd9a2f19fe97dfebdc646becdf7ae7e5ce476123
|
/spring-web/src/main/java/org/springframework/web/context/AbstractContextLoaderInitializer.java
|
d38e739876e3ac66fa48c564804bf3653708c51d
|
[] |
no_license
|
nicky-chen/spring-framework-3.2.x
|
d5f0fae80847da4f303f94443ce46cd92352979a
|
e33e9639d82aa9395509227567aa714d41ac2a2b
|
refs/heads/master
| 2021-08-29T00:54:28.870499
| 2021-08-17T11:28:08
| 2021-08-17T11:28:08
| 125,344,623
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,073
|
java
|
/*
* Copyright 2002-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.web.context;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.WebApplicationInitializer;
/**
* Convenient base class for {@link WebApplicationInitializer} implementations
* that register a {@link ContextLoaderListener} in the servlet context.
*
* <p>The only method required to be implemented by subclasses is
* {@link #createRootApplicationContext()}, which gets invoked from
* {@link #registerContextLoaderListener(ServletContext)}.
*
* @author Arjen Poutsma
* @author Chris Beams
* @since 3.2
*/
public abstract class AbstractContextLoaderInitializer implements WebApplicationInitializer {
/** Logger available to subclasses */
protected final Log logger = LogFactory.getLog(getClass());
public void onStartup(ServletContext servletContext) throws ServletException {
registerContextLoaderListener(servletContext);
}
/**
* Register a {@link ContextLoaderListener} against the given servlet context. The
* {@code ContextLoaderListener} is initialized with the application context returned
* from the {@link #createRootApplicationContext()} template method.
* @param servletContext the servlet context to register the listener against
*/
protected void registerContextLoaderListener(ServletContext servletContext) {
WebApplicationContext rootAppContext = createRootApplicationContext();
if (rootAppContext != null) {
servletContext.addListener(new ContextLoaderListener(rootAppContext));
}
else {
logger.debug("No ContextLoaderListener registered, as " +
"createRootApplicationContext() did not return an application context");
}
}
/**
* Create the "<strong>root</strong>" application context to be provided to the
* {@code ContextLoaderListener}.
* <p>The returned context is delegated to
* {@link ContextLoaderListener#ContextLoaderListener(WebApplicationContext)} and will
* be established as the parent context for any {@code DispatcherServlet} application
* contexts. As such, it typically contains middle-tier services, data sources, etc.
* @return the root application context, or {@code null} if a root context is not
* desired
* @see org.springframework.web.servlet.support.AbstractDispatcherServletInitializer
*/
protected abstract WebApplicationContext createRootApplicationContext();
}
|
[
"cx52018761@hotmail.com"
] |
cx52018761@hotmail.com
|
14a62bf014321c228b7f9abef6adb05ddb1c532d
|
2088303ad9939663f5f8180f316b0319a54bc1a6
|
/src/main/java/com/lottery/common/schedule/IScheduler.java
|
932dfeafd9c5b04782fd7c643db3f996866e5859
|
[] |
no_license
|
lichaoliu/lottery
|
f8afc33ccc70dd5da19c620250d14814df766095
|
7796650e5b851c90fce7fd0a56f994f613078e10
|
refs/heads/master
| 2022-12-23T05:30:22.666503
| 2019-06-10T13:46:38
| 2019-06-10T13:46:38
| 141,867,129
| 7
| 1
| null | 2022-12-16T10:52:50
| 2018-07-22T04:59:44
|
Java
|
UTF-8
|
Java
| false
| false
| 169
|
java
|
package com.lottery.common.schedule;
/**
* 调度接口,所有调度器都必须实现
* @author fengqinyun
*
*/
public interface IScheduler {
public void run();
}
|
[
"1147149597@qq.com"
] |
1147149597@qq.com
|
a5387df0b89bc32c784b7a56d2d097509b4161fc
|
b1bc6be0d323f93d6eb0507ac8b545401c1fedcc
|
/basicKnowledge/src/com/xdc/basic/api/apache/commons/chain/comparison/implwithchain/command/GetCustomerInfo.java
|
fd4c2718af1f4b89c5f690707a1194d9bc3e95c1
|
[] |
no_license
|
xdc0209/java-code
|
5a331ebcae979fe6b672b527e3b533f2bb42866c
|
9dc5c89d9a1f8d880afff34903d315c3ca8ddbb2
|
refs/heads/master
| 2021-01-17T01:28:31.707484
| 2019-04-16T18:51:47
| 2019-04-16T18:51:47
| 9,099,623
| 7
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 457
|
java
|
package com.xdc.basic.api.apache.commons.chain.comparison.implwithchain.command;
import org.apache.commons.chain.Command;
import org.apache.commons.chain.Context;
public class GetCustomerInfo implements Command
{
@SuppressWarnings("unchecked")
@Override
public boolean execute(Context ctx) throws Exception
{
System.out.println("Get customer info");
ctx.put("customerName", "George Burdell");
return false;
}
}
|
[
"xdc0209@qq.com"
] |
xdc0209@qq.com
|
243880cc15adc7d6f20c6b5861fd9ebaa12fba31
|
7ced6c0ed03f2f9345bbc06a09dbbcf5c8687619
|
/catering-front/front-wx-api/src/main/java/com/meiyuan/catering/wx/api/index/WxIndexController.java
|
887e42d530d13bef6faef33e86d7d1894d8240a8
|
[] |
no_license
|
haorq/food-word
|
c14d5752c6492aed4a6a1410f9e0352479460da0
|
18a71259d77b4d96261dab8ed51ca1f109ab5c2f
|
refs/heads/master
| 2023-01-01T12:19:48.967366
| 2020-10-26T07:32:25
| 2020-10-26T07:32:25
| 307,292,398
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,649
|
java
|
package com.meiyuan.catering.wx.api.index;
import com.meiyuan.catering.core.dto.goods.RecommendDTO;
import com.meiyuan.catering.core.dto.user.Notice;
import com.meiyuan.catering.core.page.PageData;
import com.meiyuan.catering.core.util.Result;
import com.meiyuan.catering.es.dto.merchant.EsMerchantListParamDTO;
import com.meiyuan.catering.es.dto.wx.EsWxMerchantDTO;
import com.meiyuan.catering.marketing.dto.ticket.TicketWxIndexDTO;
import com.meiyuan.catering.wx.annotation.LoginUser;
import com.meiyuan.catering.wx.dto.UserTokenDTO;
import com.meiyuan.catering.wx.dto.goods.WxIndexMarketingGoodsDTO;
import com.meiyuan.catering.wx.dto.index.WxCategoryVO;
import com.meiyuan.catering.wx.dto.index.WxIndexDTO;
import com.meiyuan.catering.wx.dto.index.WxRecommendVO;
import com.meiyuan.catering.wx.service.index.WxIndexService;
import com.meiyuan.catering.wx.vo.WxAdvertisingExtVO;
import com.meiyuan.catering.wx.vo.WxAdvertisingVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @author yaoozu
* @description 首页
* @date 2020/3/2111:35
* @since v1.0.0
*/
@RestController
@RequestMapping("/api/index")
@Api(tags = "yaozou-首页")
@Slf4j
public class WxIndexController {
@Autowired
private WxIndexService indexService;
@GetMapping("/intraCityShop/{location}")
@ApiOperation("是否有同城店铺")
public Result<WxIndexDTO> intraCityShop(@LoginUser(required = false) UserTokenDTO token, @PathVariable String location) {
return indexService.intraCityShop(token, location);
}
@GetMapping("/noticeList/{categoryLimit}")
@ApiOperation("公告信息")
public Result<List<Notice>> noticeList(@PathVariable Integer categoryLimit) {
return indexService.noticeList(categoryLimit);
}
@ApiOperation("获取缓存广告 v1.4.0")
@GetMapping("/advertisingList")
public Result<WxAdvertisingVO> advertisingList() {
return indexService.advertisingList();
}
@ApiOperation("获取广告二级页面 v1.4.0")
@GetMapping("/queryAdvertisingExtList/{id}")
public Result<List<WxAdvertisingExtVO>> queryAdvertisingExtList(@PathVariable Long id) {
return indexService.advertisingExtList(id);
}
@GetMapping("/categoryList")
@ApiOperation("小程序类目,好物推荐")
public Result<WxCategoryVO> categoryList() {
return indexService.categoryList();
}
@PostMapping("/recommendList")
@ApiOperation("爆品橱窗")
public Result<PageData<WxRecommendVO>> recommendList(@LoginUser(required = false) UserTokenDTO token, @RequestBody RecommendDTO dto) {
return indexService.recommendList(token, dto);
}
@PostMapping("/merchantList")
@ApiOperation("附近商家")
public Result<PageData<EsWxMerchantDTO>> merchantList(@LoginUser(required = false) UserTokenDTO token, @RequestBody EsMerchantListParamDTO dto) {
return indexService.merchantList(token, dto);
}
@GetMapping("/couponList")
@ApiOperation("优惠卷")
public Result<List<TicketWxIndexDTO>> couponList(@LoginUser(required = false) UserTokenDTO token) {
return indexService.couponList(token);
}
@GetMapping("/killGoodsList/{cityCode}")
@ApiOperation("限时特惠")
public Result<List<WxIndexMarketingGoodsDTO>> killGoodsList(@LoginUser(required = false) UserTokenDTO token, @PathVariable String cityCode) {
return indexService.killGoodsList(token, cityCode);
}
}
|
[
"386234736"
] |
386234736
|
40cb1f04e8afc8e8e49f74815521ba6ea56af111
|
0a6ec9042d8e25fbe93b38cb9612bed1c87aa38c
|
/Algorithm_Practice/Level Test/src/Re_BJ1011.java
|
2c42b372dee27b0dc78ce9006a99c3b813b9d7f0
|
[] |
no_license
|
park-seung-hyun/Data_Structure_And_Algorithm
|
053c1c5352abc88f83326c180ff5850abf4337dc
|
ed33a122bea99bc8cd72c7ff52e0a135e59ca378
|
refs/heads/master
| 2020-04-15T04:32:46.121017
| 2019-05-11T07:22:11
| 2019-05-11T07:22:11
| 164,387,726
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 569
|
java
|
// 1011번 (복습)
// Fly me to the Alpha Centauri
// 규칙 찾기
import java.util.Scanner;
public class Re_BJ1011 {
static int[] visited;
public static void main(String[] args) {
Scanner stdIn = new Scanner (System.in);
int t = stdIn.nextInt();
for(int i=0;i<t;i++) {
int a = stdIn.nextInt();
int b = stdIn.nextInt();
System.out.println(solve(a,b));
}
}
static int solve(int a, int b) {
int n = b-a;
int k = (int) Math.sqrt(n);
if(!(k*k == n)) {
k+=1;
}
if(k*k-n < k) {
return 2*k-1;
}else {
return 2*(k-1);
}
}
}
|
[
"shp9408@gmail.com"
] |
shp9408@gmail.com
|
a367e3a53b506246ce739dcfafa6d13300710610
|
4b97c615878008844deb7aa687d689a751e6a190
|
/megamind-server-app/app/src/main/java/com/megamind/abdul/server/DisclaimerActivity.java
|
5b5abae790e9940b7113fdeb8cde396c14e4110b
|
[] |
no_license
|
ShrutikaSingh/Tex_TE_Project
|
cfbec88e3e0920ccefbc2690050f3113f14b2d98
|
f3d268072cb0a3c03b941f580a6a135deb13a7ee
|
refs/heads/master
| 2020-05-16T03:42:39.459323
| 2019-04-22T15:30:46
| 2019-04-22T15:30:46
| 182,740,931
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 350
|
java
|
package com.megamind.abdul.server;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class DisclaimerActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_disclaimer);
}
}
|
[
"you@example.com"
] |
you@example.com
|
8d2f7cf565c0587537b7b249b61714089a7cae87
|
368c663f8d031f576e3add37dde8e9052dc628d8
|
/java/bbop/tags/bbop-1.000/src/org/bbop/expression/parser/ASTEQNode.java
|
6ab28d40850d392105fdd87f167c1c92dcc0e3c0
|
[] |
no_license
|
mahmoudimus/obo-edit
|
494a588830758ddbd7cf43d2e70550ddd542cb1b
|
61c146958fd7d0ba7f78cda77f56d45849897b3e
|
refs/heads/master
| 2022-01-31T22:59:21.316185
| 2014-03-20T17:05:47
| 2014-03-20T17:05:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,921
|
java
|
/*
* Copyright 2002-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.bbop.expression.parser;
import org.bbop.expression.JexlContext;
import org.bbop.expression.util.Coercion;
/**
* Represents equality between values.
*
* If the values are of the same class, .equals() is used.
*
* If either value is a {@link Float} or {@link Double} (but both are not the same class),
* the values are coerced to {@link Double}s before comparing.
*
* If either value is a {@link Number} or {@link Character} (but both are not the same class),
* the values are coerced to {@link Long}s before comparing.
*
* If either value is a {@link Boolean} (but both are not the same class),
* the values are coerced to {@link Boolean}s before comparing.
*
* If either value is a {@link String} (but both are not the same class),
* toString() is called on both before comparing.
*
* Otherwise left.equals(right) is returned.
*
* @author <a href="mailto:geirm@apache.org">Geir Magnusson Jr.</a>
* @version $Id: ASTEQNode.java,v 1.2 2007/09/27 01:02:09 jmr39 Exp $
*/
public class ASTEQNode extends SimpleNode {
/**
* Create the node given an id.
*
* @param id node id.
*/
public ASTEQNode(int id) {
super(id);
}
/**
* Create a node with the given parser and id.
*
* @param p a parser.
* @param id node id.
*/
public ASTEQNode(Parser p, int id) {
super(p, id);
}
/** {@inheritDoc} */
public Object jjtAccept(ParserVisitor visitor, Object data) {
return visitor.visit(this, data);
}
/** {@inheritDoc} */
public Object value(JexlContext pc) throws Exception {
Object left = ((SimpleNode) jjtGetChild(0)).value(pc);
Object right = ((SimpleNode) jjtGetChild(1)).value(pc);
if (left == null && right == null) {
/*
* if both are null L == R
*/
return Boolean.TRUE;
} else if (left == null || right == null) {
/*
* we know both aren't null, therefore L != R
*/
return Boolean.FALSE;
} else if (left.getClass().equals(right.getClass())) {
return left.equals(right) ? Boolean.TRUE : Boolean.FALSE;
} else if (left instanceof Float || left instanceof Double
|| right instanceof Float || right instanceof Double) {
Double l = Coercion.coerceDouble(left);
Double r = Coercion.coerceDouble(right);
return l.equals(r) ? Boolean.TRUE : Boolean.FALSE;
} else if (left instanceof Number || right instanceof Number
|| left instanceof Character || right instanceof Character) {
return Coercion.coerceLong(left).equals(Coercion.coerceLong(right)) ? Boolean.TRUE
: Boolean.FALSE;
} else if (left instanceof Boolean || right instanceof Boolean) {
return Coercion.coerceBoolean(left).equals(
Coercion.coerceBoolean(right)) ? Boolean.TRUE
: Boolean.FALSE;
} else if (left instanceof java.lang.String || right instanceof String) {
return left.toString().equals(right.toString()) ? Boolean.TRUE
: Boolean.FALSE;
}
return left.equals(right) ? Boolean.TRUE : Boolean.FALSE;
}
}
|
[
"jmr39@6f0e8829-b336-0410-acfb-cb9b228023ad"
] |
jmr39@6f0e8829-b336-0410-acfb-cb9b228023ad
|
46db5c3f4306e8f50475560cf6772f8267c8f0ea
|
6635387159b685ab34f9c927b878734bd6040e7e
|
/src/org/apache/commons/codec/language/bm/Languages$SomeLanguages.java
|
02e3bb78489f549ee1a2361df9da62ef3f94cfb3
|
[] |
no_license
|
RepoForks/com.snapchat.android
|
987dd3d4a72c2f43bc52f5dea9d55bfb190966e2
|
6e28a32ad495cf14f87e512dd0be700f5186b4c6
|
refs/heads/master
| 2021-05-05T10:36:16.396377
| 2015-07-16T16:46:26
| 2015-07-16T16:46:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,710
|
java
|
package org.apache.commons.codec.language.bm;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
public final class Languages$SomeLanguages
extends Languages.LanguageSet
{
private final Set<String> languages;
private Languages$SomeLanguages(Set<String> paramSet)
{
languages = Collections.unmodifiableSet(paramSet);
}
public final boolean contains(String paramString)
{
return languages.contains(paramString);
}
public final String getAny()
{
return (String)languages.iterator().next();
}
public final Set<String> getLanguages()
{
return languages;
}
public final boolean isEmpty()
{
return languages.isEmpty();
}
public final boolean isSingleton()
{
return languages.size() == 1;
}
public final Languages.LanguageSet restrictTo(Languages.LanguageSet paramLanguageSet)
{
if (paramLanguageSet == Languages.NO_LANGUAGES) {
localObject = paramLanguageSet;
}
do
{
do
{
return (Languages.LanguageSet)localObject;
localObject = this;
} while (paramLanguageSet == Languages.ANY_LANGUAGE);
paramLanguageSet = (SomeLanguages)paramLanguageSet;
localObject = this;
} while (languages.containsAll(languages));
Object localObject = new HashSet(languages);
((Set)localObject).retainAll(languages);
return from((Set)localObject);
}
public final String toString()
{
return "Languages(" + languages.toString() + ")";
}
}
/* Location:
* Qualified Name: org.apache.commons.codec.language.bm.Languages.SomeLanguages
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
a5f31956608bff445f352f945b039e162385b13f
|
90eb7a131e5b3dc79e2d1e1baeed171684ef6a22
|
/sources/p005b/p096l/p097a/p113c/p131e/p136e/C2507tk.java
|
fef301f8722c4d01761ed053434c49c54eb6a8ab
|
[] |
no_license
|
shalviraj/greenlens
|
1c6608dca75ec204e85fba3171995628d2ee8961
|
fe9f9b5a3ef4a18f91e12d3925e09745c51bf081
|
refs/heads/main
| 2023-04-20T13:50:14.619773
| 2021-04-26T15:45:11
| 2021-04-26T15:45:11
| 361,799,768
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,643
|
java
|
package p005b.p096l.p097a.p113c.p131e.p136e;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import p005b.p006a.p007a.p024o.C0823f;
import p005b.p096l.p097a.p113c.p119b.p122m.p123v.C1948a;
/* renamed from: b.l.a.c.e.e.tk */
public final class C2507tk extends C1948a {
public static final Parcelable.Creator<C2507tk> CREATOR = new C2531uk();
/* renamed from: g */
public String f4322g;
/* renamed from: h */
public String f4323h;
/* renamed from: i */
public String f4324i;
/* renamed from: j */
public String f4325j;
/* renamed from: k */
public String f4326k;
/* renamed from: l */
public String f4327l;
/* renamed from: m */
public String f4328m;
public C2507tk() {
}
public C2507tk(String str, String str2, String str3, String str4, String str5, String str6, String str7) {
this.f4322g = str;
this.f4323h = str2;
this.f4324i = str3;
this.f4325j = str4;
this.f4326k = str5;
this.f4327l = str6;
this.f4328m = str7;
}
public final void writeToParcel(@NonNull Parcel parcel, int i) {
int w0 = C0823f.m403w0(parcel, 20293);
C0823f.m395s0(parcel, 2, this.f4322g, false);
C0823f.m395s0(parcel, 3, this.f4323h, false);
C0823f.m395s0(parcel, 4, this.f4324i, false);
C0823f.m395s0(parcel, 5, this.f4325j, false);
C0823f.m395s0(parcel, 6, this.f4326k, false);
C0823f.m395s0(parcel, 7, this.f4327l, false);
C0823f.m395s0(parcel, 8, this.f4328m, false);
C0823f.m331A0(parcel, w0);
}
}
|
[
"73280944+shalviraj@users.noreply.github.com"
] |
73280944+shalviraj@users.noreply.github.com
|
fc30b092c46d3a54be320cd17bccdb712795c5a1
|
4f1577bfef6ec648d91ccb93298867395704eda7
|
/usertype.core/src/main/java/org/jadira/usertype/dateandtime/joda/PersistentLocalDate.java
|
dc58ab69c1f7b4d85b44a1b0039b6dd9c53dc566
|
[
"Apache-2.0"
] |
permissive
|
TorqueITS/jadira-6.0.1.GA
|
e9b91e6c8ddb4b1f00fcd5b05c28f0e70c28be68
|
dc644a2260822cecdc472b3649ce447701907111
|
refs/heads/develop
| 2021-08-29T21:08:44.503113
| 2017-12-15T00:58:05
| 2017-12-15T00:58:05
| 112,560,991
| 0
| 0
|
Apache-2.0
| 2017-12-15T01:15:10
| 2017-11-30T03:41:17
|
Java
|
UTF-8
|
Java
| false
| false
| 1,807
|
java
|
/*
* Copyright 2010, 2011 Christopher Pheby
*
* 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.jadira.usertype.dateandtime.joda;
import java.sql.Date;
import org.hibernate.usertype.ParameterizedType;
import org.jadira.usertype.dateandtime.joda.columnmapper.DateColumnLocalDateMapper;
import org.jadira.usertype.spi.shared.AbstractParameterizedUserType;
import org.jadira.usertype.spi.shared.IntegratorConfiguredType;
import org.joda.time.LocalDate;
/**
* Persist {@link LocalDate} via Hibernate. This type shares database
* representation with org.joda.time.contrib.hibernate.PersistentLocalDate
*
* The type is stored using the JVM timezone by default.
*
* Alternatively provide the 'databaseZone' parameter in the {@link org.joda.time.DateTimeZone#forID(String)} format
* to indicate the zone of the database. Be careful to set this carefully. See https://jadira.atlassian.net/browse/JDF-26
* N.B. To use the zone of the JVM for the database zone you can also supply 'jvm'
*/
public class PersistentLocalDate extends AbstractParameterizedUserType<LocalDate, Date, DateColumnLocalDateMapper> implements ParameterizedType, IntegratorConfiguredType {
private static final long serialVersionUID = 2918856421618299370L;
}
|
[
"chris@jadira.co.uk"
] |
chris@jadira.co.uk
|
d6027147831bcb66b5db872c668543967ce8db89
|
38c34ff168b64a67e969bd81a60556ad0b17e62c
|
/cbn-20170912/src/main/java/com/aliyun/cbn20170912/models/CreateCenResponseBody.java
|
1e281a3d541a8b519796d2c6b16fbe8fd439798d
|
[
"Apache-2.0"
] |
permissive
|
bestchendong/alibabacloud-java-sdk
|
1474344c006641fbab882af4c277b5cbb343ea80
|
737c2b966c5e46903d5875e269c971cb80dd678f
|
refs/heads/master
| 2023-04-15T05:34:29.011451
| 2021-04-22T09:14:46
| 2021-04-22T09:14:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 875
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.cbn20170912.models;
import com.aliyun.tea.*;
public class CreateCenResponseBody extends TeaModel {
@NameInMap("RequestId")
public String requestId;
@NameInMap("CenId")
public String cenId;
public static CreateCenResponseBody build(java.util.Map<String, ?> map) throws Exception {
CreateCenResponseBody self = new CreateCenResponseBody();
return TeaModel.build(map, self);
}
public CreateCenResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public CreateCenResponseBody setCenId(String cenId) {
this.cenId = cenId;
return this;
}
public String getCenId() {
return this.cenId;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
924b7baf61592fedb576944e8b58e790beb1adb8
|
6253283b67c01a0d7395e38aeeea65e06f62504b
|
/decompile/app/Mms/src/main/java/com/android/mms/ui/HwCustAttachmentTypeSelectorAdapter.java
|
762c6ec4da14f9506f3caad24e2e41bb17f91941
|
[] |
no_license
|
sufadi/decompile-hw
|
2e0457a0a7ade103908a6a41757923a791248215
|
4c3efd95f3e997b44dd4ceec506de6164192eca3
|
refs/heads/master
| 2023-03-15T15:56:03.968086
| 2017-11-08T03:29:10
| 2017-11-08T03:29:10
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 585
|
java
|
package com.android.mms.ui;
import android.content.Context;
import com.android.mms.ui.IconListAdapter.IconListItem;
import java.util.List;
public class HwCustAttachmentTypeSelectorAdapter {
public void addExtItem(List<IconListItem> list, Context context) {
}
public boolean isCustLocationEnable() {
return false;
}
public boolean isImModeNow() {
return false;
}
public void addSubjectForSimpleUi(Context context, List<IconListItem> list) {
}
public void removeAdapterOptions(Context context, List<IconListItem> list) {
}
}
|
[
"liming@droi.com"
] |
liming@droi.com
|
c2e1a1a0d3a9bab0f06259b8b0df879fa6b1187f
|
fba8af31d5d36d8a6cf0c341faed98b6cd5ec0cb
|
/src/main/java/com/alipay/api/response/AlipayMarketingToolFengdieSitesBatchqueryResponse.java
|
9f9a5e68f4a1b5539b0a82a90326636fa6ed220f
|
[
"Apache-2.0"
] |
permissive
|
planesweep/alipay-sdk-java-all
|
b60ea1437e3377582bd08c61f942018891ce7762
|
637edbcc5ed137c2b55064521f24b675c3080e37
|
refs/heads/master
| 2020-12-12T09:23:19.133661
| 2020-01-09T11:04:31
| 2020-01-09T11:04:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 780
|
java
|
package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.domain.FengdieSitesListRespModel;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.marketing.tool.fengdie.sites.batchquery response.
*
* @author auto create
* @since 1.0, 2019-05-22 14:32:03
*/
public class AlipayMarketingToolFengdieSitesBatchqueryResponse extends AlipayResponse {
private static final long serialVersionUID = 3391769776888761643L;
/**
* 获取云凤蝶站点列表返回值模型
*/
@ApiField("data")
private FengdieSitesListRespModel data;
public void setData(FengdieSitesListRespModel data) {
this.data = data;
}
public FengdieSitesListRespModel getData( ) {
return this.data;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
1cdb9cf1e29241be32e08ba636dd918b485433a4
|
b3c6241c31f563c06ff1b0881652d1f800e2b332
|
/cdm/src/test/java/thredds/catalog2/xml/parser/stax/GeospatialRangeTypeParserTest.java
|
6fad8e323e61a0c1194b9fed96d3eb4fc58f1a89
|
[
"NetCDF"
] |
permissive
|
feihugis/thredds-target-4.3.23
|
f56346a42ab398467761a9f5d5a27a2a1a5854bd
|
5d853cac7529dc742208cc23addf78522dbace58
|
refs/heads/master
| 2021-03-16T10:06:15.407497
| 2017-11-07T06:27:38
| 2017-11-07T06:27:38
| 50,969,901
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,257
|
java
|
package thredds.catalog2.xml.parser.stax;
import org.junit.Test;
import org.junit.Before;
import static org.junit.Assert.*;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLEventReader;
import javax.xml.namespace.QName;
import thredds.catalog2.xml.parser.ThreddsXmlParserException;
import thredds.catalog2.xml.names.ThreddsMetadataElementNames;
import thredds.catalog2.xml.names.CatalogNamespaceUtils;
import thredds.catalog2.builder.ThreddsBuilderFactory;
import thredds.catalog2.builder.ThreddsMetadataBuilder;
import thredds.catalog2.simpleImpl.ThreddsBuilderFactoryImpl;
/**
* Test the thredds.catalog2.xml.parser.stax.GeospatialRangeTypeParser in isolation.
*
* @author edavis
* @since 4.0
*/
public class GeospatialRangeTypeParserTest
{
private ThreddsBuilderFactory fac;
private ThreddsMetadataBuilder.GeospatialCoverageBuilder gspCovBldr;
private String rootDocBaseUri;
private String startElementName;
private String sizeElementName;
private String resolutionElementName;
private String unitsElementName;
@Before
public void createMockObjects()
{
this.fac = new ThreddsBuilderFactoryImpl();
this.gspCovBldr = this.fac.newThreddsMetadataBuilder().getGeospatialCoverageBuilder();
this.rootDocBaseUri = "http://test/thredds/catalog2/xml/parser/stax/GeospatialRangeTypeParserTest/";
this.startElementName = ThreddsMetadataElementNames.SpatialRangeType_Start.getLocalPart();
this.sizeElementName = ThreddsMetadataElementNames.SpatialRangeType_Size.getLocalPart();
this.resolutionElementName = ThreddsMetadataElementNames.SpatialRangeType_Resolution.getLocalPart();
this.unitsElementName = ThreddsMetadataElementNames.SpatialRangeType_Units.getLocalPart();
}
// ToDo Need to implement GeospatialRangeTypeParser before this test will work.
//@Test
public void checkFullySpecifiedGeospatialRangeType() throws XMLStreamException, ThreddsXmlParserException
{
String docBaseUri = this.rootDocBaseUri + "checkFullySpecifiedGeospatialRangeType.test";
String elementName = "someElemOfTypeGeospatialRange";
String start = "-55.5";
String size = "23.0";
String resolution = "0.5";
String units = "degrees_east";
String xml = buildGeospatialRangeTypeElementAsDocRoot( elementName, start, size, resolution, units );
assertGeospatialRangeTypeXmlAsExpected( xml, docBaseUri, elementName, start, size, resolution, units );
}
private String buildGeospatialRangeTypeElementAsDocRoot( String elementName, String start, String size,
String resolution, String units )
{
StringBuilder sb = new StringBuilder();
if ( start != null )
sb.append( buildGeospatialRangeTypeStartElement( start ));
if ( size != null )
sb.append( " <size>" ).append( size ).append( "</size>\n" );
if ( resolution != null )
sb.append( " <resolution>" ).append( resolution ).append( "</resolution>\n" );
if ( units != null )
sb.append( " <units>" ).append( units ).append( "</units>\n" );
return StaxParserTestUtils.wrapContentXmlInXmlDocRootElement( elementName, null, sb.toString() );
}
private String buildGeospatialRangeTypeStartElement( String start )
{
StringBuilder sb = new StringBuilder().append( "<" ).append( this.startElementName).append( ">" )
.append( start ).append( "</").append( this.startElementName).append(">\n" );
return sb.toString();
}
private String buildGeospatialRangeTypeSizeElement( String size )
{
StringBuilder sb = new StringBuilder().append( "<" ).append( this.sizeElementName).append( ">" )
.append( size ).append( "</").append( this.sizeElementName).append(">\n" );
return sb.toString();
}
private String buildGeospatialRangeTypeResolutionElement( String resolution )
{
StringBuilder sb = new StringBuilder().append( "<" ).append( this.resolutionElementName).append( ">" )
.append( resolution ).append( "</").append( this.resolutionElementName).append(">\n" );
return sb.toString();
}
private String buildGeospatialRangeTypeUnitsElement( String units )
{
StringBuilder sb = new StringBuilder().append( "<" ).append( this.unitsElementName).append( ">" )
.append( units ).append( "</").append( this.unitsElementName).append(">\n" );
return sb.toString();
}
private void assertGeospatialRangeTypeXmlAsExpected( String docXml, String docBaseUri,
String expectedRootElementName,
String expectedStart, String expectedSize,
String expectedResolution, String expectedUnits )
throws XMLStreamException, ThreddsXmlParserException
{
XMLEventReader reader = StaxParserTestUtils.createXmlEventReaderOnXmlString( docXml, docBaseUri );
StaxParserTestUtils.advanceReaderToFirstStartElement( reader );
QName rootElemQName = CatalogNamespaceUtils.getThreddsCatalogElementQualifiedName( expectedRootElementName );
GeospatialRangeTypeParser.Factory factory = new GeospatialRangeTypeParser.Factory( rootElemQName );
assertNotNull( factory);
assertTrue( factory.isEventMyStartElement( reader.peek() ));
GeospatialRangeTypeParser parser = factory.getNewParser( reader, this.fac, this.gspCovBldr );
assertNotNull( parser);
ThreddsMetadataBuilder.GeospatialRangeBuilder bldr = (ThreddsMetadataBuilder.GeospatialRangeBuilder) parser.parse();
assertNotNull( bldr );
//
// assertTrue( bldr instanceof ThreddsMetadataBuilder.DateRangeBuilder );
// ThreddsMetadataBuilder.DateRangeBuilder tmBldr = (ThreddsMetadataBuilder.DateRangeBuilder) bldr;
//
// assertEquals( startDate, tmBldr.getStartDate());
// assertNull( tmBldr.getStartDateFormat());
// assertEquals( endDate, tmBldr.getEndDate());
// assertNull( tmBldr.getEndDateFormat() );
// assertEquals( duration, tmBldr.getDuration() );
// assertEquals( resolution, tmBldr.getResolution() );
}
}
|
[
"hufei68@gmail.com"
] |
hufei68@gmail.com
|
9ac55d7e21aceaf9575b514bee48862be1d5a197
|
f25287f4e5dc9e8e965e90bb6105ea64f55dfb87
|
/app/src/main/java/com/hanks/mvc/base/BaseConstant.java
|
827c50ec0b0b2c553113ec51f837251c5638387d
|
[] |
no_license
|
hanks7/Mvc
|
c149a76ede81a4b76b1ffb08424619457a281a6e
|
24ff2860af1f015d47006d97ffdc2bb5bf4b2fe5
|
refs/heads/master
| 2020-05-07T16:50:55.862444
| 2019-04-11T07:56:09
| 2019-04-11T07:56:09
| 180,702,208
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 255
|
java
|
package com.hanks.mvc.base;
/**
* @author 侯建军 47466436@qq.com
* @class com.hanks.mvc.base.BaseConstant
* @time 2019/4/11 14:19
* @description 请填写描述
*/
public class BaseConstant {
public final static boolean IS_RELEASE = false;
}
|
[
"474664736@qq.com"
] |
474664736@qq.com
|
f6277e74260878f825f4b6a9be6371fb8d526347
|
2eac4f51a2e4363349e852ce3af8ca234c1a13f7
|
/fx/trunk/fx-datamanager/src/main/java/com/jeff/fx/datamanager/TimeRange.java
|
476bb3bd9df5a590fb994a170d20d0bd4760dbfd
|
[] |
no_license
|
johnffracassi/jcfx
|
4e19ac0fdba174db0fe3eb2fc8848652a5c99c11
|
b0a2349fdd1de0bf60c7ccf9a17af4e43e0a1727
|
refs/heads/master
| 2016-09-05T15:13:49.981403
| 2011-07-21T05:54:28
| 2011-07-21T05:54:28
| 41,260,482
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 665
|
java
|
package com.jeff.fx.datamanager;
import java.awt.FlowLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;
import org.joda.time.LocalTime;
public class TimeRange extends JPanel {
private static final long serialVersionUID = 999290000L;
private TimePicker start;
private TimePicker end;
public TimeRange() {
start = new TimePicker();
end = new TimePicker();
init();
}
public LocalTime getStart() {
return start.getTime();
}
public LocalTime getEnd() {
return end.getTime();
}
private void init() {
setLayout(new FlowLayout(3));
add(new JLabel("Start Time"));
add(start);
add(new JLabel("End Time"));
add(end);
}
}
|
[
"jeffcann@360c4b46-674e-11de-9b35-9190732fe600"
] |
jeffcann@360c4b46-674e-11de-9b35-9190732fe600
|
41ecb51f6ed47a0200b01c645bf2d7d960826134
|
f4e15ee34808877459d81fd601d6be03bdfb4a9d
|
/org/fourthline/cling/registry/RegistrationException.java
|
e1b953845245b8b6f43a3bde891e61c9a3ad38ce
|
[] |
no_license
|
Lianite/wurm-server-reference
|
369081debfa72f44eafc6a080002c4a3970f8385
|
e4dd8701e4af13901268cf9a9fa206fcb5196ff0
|
refs/heads/master
| 2023-07-22T16:06:23.426163
| 2020-04-07T23:15:35
| 2020-04-07T23:15:35
| 253,933,452
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 692
|
java
|
//
// Decompiled by Procyon v0.5.30
//
package org.fourthline.cling.registry;
import org.fourthline.cling.model.ValidationError;
import java.util.List;
public class RegistrationException extends RuntimeException
{
public List<ValidationError> errors;
public RegistrationException(final String s) {
super(s);
}
public RegistrationException(final String s, final Throwable throwable) {
super(s, throwable);
}
public RegistrationException(final String s, final List<ValidationError> errors) {
super(s);
this.errors = errors;
}
public List<ValidationError> getErrors() {
return this.errors;
}
}
|
[
"jdraco6@gmail.com"
] |
jdraco6@gmail.com
|
49055873ab95ce70e76b318217f7324825f2910b
|
f7fbc015359f7e2a7bae421918636b608ea4cef6
|
/base-one/tags/hsqldb_1_8_0_RC8/src/org/hsqldb/util/SqlServerTransferHelper.java
|
9e583d8ac7d5007a57eb69bac4bb85099a4fa287
|
[] |
no_license
|
svn2github/hsqldb
|
cdb363112cbdb9924c816811577586f0bf8aba90
|
52c703b4d54483899d834b1c23c1de7173558458
|
refs/heads/master
| 2023-09-03T10:33:34.963710
| 2019-01-18T23:07:40
| 2019-01-18T23:07:40
| 155,365,089
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,200
|
java
|
/* Copyright (c) 2001-2005, The HSQL Development Group
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of the HSQL Development Group nor the names of its
* contributors may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL HSQL DEVELOPMENT GROUP, HSQLDB.ORG,
* OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.hsqldb.util;
import java.sql.Types;
// sqlbob@users 20020325 - patch 1.7.0 - reengineering
/**
* Conversions from SQLServer7 databases
*
* @version 1.7.0
*/
class SqlServerTransferHelper extends TransferHelper {
private boolean firstTinyintRow;
private boolean firstSmallintRow;
SqlServerTransferHelper() {
super();
}
SqlServerTransferHelper(TransferDb database, Traceable t, String q) {
super(database, t, q);
}
String formatTableName(String t) {
if (t == null) {
return t;
}
if (t.equals("")) {
return t;
}
if (t.indexOf(' ') != -1) {
return ("[" + t + "]");
} else {
return (formatIdentifier(t));
}
}
int convertFromType(int type) {
// MS SQL 7 specific problems (Northwind database)
if (type == 11) {
tracer.trace("Converted DATETIME (type 11) to TIMESTAMP");
type = Types.TIMESTAMP;
} else if (type == -9) {
tracer.trace("Converted NVARCHAR (type -9) to VARCHAR");
type = Types.VARCHAR;
} else if (type == -8) {
tracer.trace("Converted NCHAR (type -8) to VARCHAR");
type = Types.VARCHAR;
} else if (type == -10) {
tracer.trace("Converted NTEXT (type -10) to VARCHAR");
type = Types.VARCHAR;
} else if (type == -1) {
tracer.trace("Converted LONGTEXT (type -1) to LONGVARCHAR");
type = Types.LONGVARCHAR;
}
return (type);
}
void beginTransfer() {
firstSmallintRow = true;
firstTinyintRow = true;
}
Object convertColumnValue(Object value, int column, int type) {
// solves a problem for MS SQL 7
if ((type == Types.SMALLINT) && (value instanceof Integer)) {
if (firstSmallintRow) {
firstSmallintRow = false;
tracer.trace("SMALLINT: Converted column " + column
+ " Integer to Short");
}
value = new Short((short) ((Integer) value).intValue());
} else if ((type == Types.TINYINT) && (value instanceof Integer)) {
if (firstTinyintRow) {
firstTinyintRow = false;
tracer.trace("TINYINT: Converted column " + column
+ " Integer to Byte");
}
value = new Byte((byte) ((Integer) value).intValue());
}
return (value);
}
}
|
[
"(no author)@7c7dc5f5-a22d-0410-a3af-b41755a11667"
] |
(no author)@7c7dc5f5-a22d-0410-a3af-b41755a11667
|
917c5cd7d86e5e191c405f759dca8b6f249e407a
|
9fce01d889bf907b87b618c97c4b83cd3a69155d
|
/gy/javaprog/_OOTPJava1/Feladatmegoldasok/13Szelekciok/Udvariassag/Udvariassag1.java
|
d968ed34240ea85f3bed5b81c431d9a2cd07b5d7
|
[] |
no_license
|
8emi95/elte-ik-pt1
|
c235dea0f11f90f96487f232ff9122497c86d4a6
|
45c24fe8436c29054b7a8ffecb2f55dbd3cb3f42
|
refs/heads/master
| 2020-04-29T09:16:14.310592
| 2019-03-16T19:48:50
| 2019-03-16T19:48:50
| 176,018,106
| 0
| 0
| null | null | null | null |
ISO-8859-2
|
Java
| false
| false
| 1,099
|
java
|
/*
* Feladatmegoldások/13. fejezet
* Udvariassag1.java
*
* Angster Erzsébet: OO tervezés és programozás, Java I. kötet
* 2001.02.01.
*/
import extra.*;
public class Udvariassag1 {
public static void main(String[] args) {
final int AKTEV = 2001;
int korZsofi = AKTEV-Console.readInt("Zsófi születési éve: ");
int korKati = AKTEV-Console.readInt("Kati születési éve: ");
int korJuli = AKTEV-Console.readInt("Juli születési éve: ");
if (korZsofi >= korKati && korKati >= korJuli)
System.out.println("Zsófi, Kati, Juli");
else if (korZsofi >= korJuli && korJuli >= korKati)
System.out.println("Zsófi, Juli, Kati");
else if (korKati >= korZsofi && korZsofi >= korJuli)
System.out.println("Kati, Zsófi, Juli");
else if (korKati >= korJuli && korJuli >= korZsofi)
System.out.println("Kati, Juli, Zsófi");
else if (korJuli >= korZsofi && korZsofi >= korKati)
System.out.println("Juli, Zsófi, Kati");
else //(korJuli >= korKati && korKati >= korZsofi)
System.out.println("Juli, Kati, Zsófi");
}
}
|
[
"8emi95@inf.elte.hu"
] |
8emi95@inf.elte.hu
|
49c139e98e3f49225e57b27d81da29b9292c8ab2
|
a048507c1807397329a558e84a5b0f69e66437d3
|
/boot/boot/src/main/java/com/cimr/boot/utils/IdGener.java
|
b174f5b16da308ecbad9d2da9cf85d6ef84d1f4a
|
[] |
no_license
|
jlf1997/learngit
|
0ffd6fec5c6e9ad10ff14ff838396e1ef53a06f3
|
d6d7eba1c0bf6c76f49608dd2537594af2cd4ee9
|
refs/heads/master
| 2021-01-17T07:10:30.004555
| 2018-11-08T09:15:13
| 2018-11-08T09:15:13
| 59,822,610
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,112
|
java
|
package com.cimr.boot.utils;
public class IdGener {
private SnowflakeIdWorker idForRejectOrder;
private SnowflakeIdWorker idForOrder;
private SnowflakeIdWorker id;
private IdGener(){
idForOrder = new SnowflakeIdWorker(0, 0);
idForRejectOrder = new SnowflakeIdWorker(1, 0);
id = new SnowflakeIdWorker(2, 0);
}
public static IdGener getInstance(){
return Singleton.INSTANCE.getInstance();
}
private static enum Singleton{
INSTANCE;
private IdGener singleton;
//JVM会保证此方法绝对只调用一次
private Singleton(){
singleton = new IdGener();
}
public IdGener getInstance(){
return singleton;
}
}
/**
* 获取订单编号
* @return
*/
public long getOrderId() {
return idForOrder.nextId();
}
/**
* 获取退货单号
* @return
*/
public long getRejectOrderId() {
return idForRejectOrder.nextId();
}
public long getNormalId() {
return id.nextId();
}
}
|
[
"675866753@qq.com"
] |
675866753@qq.com
|
56d514349bd610e23c6b825f47481327d5d7740c
|
a491e10b5d37084a704678a7dc3cf72c66e221fc
|
/jpa basic/practice6/src/main/java/hello/jpa/domain/item/Book.java
|
01920a347c76e30c8a249a60179865cb47fa1452
|
[] |
no_license
|
YeomJaeSeon/jpa
|
4a784210cdb78e0b71e4b591eb0ab29dceed0317
|
cc5747d539c3ee19293cfd43340157764fcf241c
|
refs/heads/master
| 2023-06-17T06:14:28.618269
| 2021-07-19T07:40:42
| 2021-07-19T07:40:42
| 371,958,152
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 434
|
java
|
package hello.jpa.domain.item;
import javax.persistence.Entity;
@Entity
public class Book extends Item{
private String author;
private String isbn;
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public String getIsbn() {
return isbn;
}
public void setIsbn(String isbn) {
this.isbn = isbn;
}
}
|
[
"a89541457@gmail.com"
] |
a89541457@gmail.com
|
170f33b50662aa0883eec71a3bad48e94fdbe3ec
|
de2d2b955407d06269115dfb1558793967392f02
|
/bai10_session_cookie_trong_spring/bai_tap/create_product_cart/src/main/java/vn/codegym/controller/ProductController.java
|
fef78f3ad03b25d4777d083791081145c86e4d15
|
[] |
no_license
|
khoa110298/NguyenKhoa_C0920G1_Module4
|
89ff3f29c10e395bee58da68ddde48b26c39fc48
|
cb26b558ed4b89043c1739b3a08669b82b1a0218
|
refs/heads/master
| 2023-02-21T01:02:45.837677
| 2021-01-28T08:06:54
| 2021-01-28T08:06:54
| 325,424,265
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 782
|
java
|
package vn.codegym.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import vn.codegym.service.ProductService;
@Controller
@RequestMapping("/product")
public class ProductController {
@Autowired
ProductService productService;
@GetMapping({"", "/list"})
public String listProduct(Model model) {
model.addAttribute("productList", productService.findAll());
return "/list";
}
@GetMapping("{id}/view")
public String formView(@PathVariable("id") Integer id, Model model) {
model.addAttribute("product", productService.findById(id));
return "view";
}
}
|
[
"nguyenkhoa15011998@gmail.com"
] |
nguyenkhoa15011998@gmail.com
|
cb7bb5cd8670369f7e79d39d916bc5d1db3867d7
|
221da31486cdaeab91b1ed4962ac4f693954e18d
|
/MyApplication/app/src/main/java/com/example/myapplication/MainActivity.java
|
5ddbc03e698c11f22a330c76181efcdcfde25f03
|
[] |
no_license
|
Ralpinn/AudioRecord
|
abe57a2621130a39456a613f97f74db9262ef953
|
a10ce04c94e9070a30910f2ce8cd042d2634e0bf
|
refs/heads/master
| 2023-01-14T17:52:49.299257
| 2020-11-17T12:00:07
| 2020-11-17T12:00:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,528
|
java
|
package com.example.myapplication;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.LinearLayout;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentTransaction;
import com.google.android.material.bottomnavigation.BottomNavigationView;
public class MainActivity extends AppCompatActivity {
BottomNavigationView bottomNavigationView;
MenuItem menuItem;
LinearLayout linearSearch;
Toolbar toolbar;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
linearSearch = findViewById(R.id.linearSreach);
toolbar = findViewById(R.id.toolbar);
bottomNavigationView = findViewById(R.id.bottom_nav);
displayFragment(R.id.mnuInfo);
bottomNavigationView.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {
@Override
public boolean onNavigationItemSelected(@NonNull MenuItem item) {
displayFragment(item.getItemId());
return true;
}
});
// setSupportActionBar(toolbar);
}
private void displayFragment(int itemId) {
Fragment fragment = null;
switch (itemId){
case R.id.mnuHome:
toolbar.setVisibility(View.GONE);
linearSearch.setVisibility(View.VISIBLE);
fragment = new HomeFragment();
if(menuItem != null) {
menuItem.setVisible(false);
}
break;
case R.id.mnuAccount:
toolbar.setVisibility(View.GONE);
linearSearch.setVisibility(View.VISIBLE);
fragment = new AccountFragment();
break;
case R.id.mnuInfo:
toolbar.setVisibility(View.VISIBLE);
linearSearch.setVisibility(View.GONE);
setSupportActionBar(toolbar);
fragment = InfoFragment.newInstance("name", "name");
break;
}
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
ft.replace(R.id.content,fragment);
ft.commit();
}
}
|
[
"you@example.com"
] |
you@example.com
|
303c2b97d1013d842bbd225559415b11095886cc
|
75c4712ae3f946db0c9196ee8307748231487e4b
|
/src/main/java/com/alipay/api/domain/KoubeiMarketingToolIsvMerchantQueryModel.java
|
0f773e5bf9216a7d9e588200b03071dc4e620e31
|
[
"Apache-2.0"
] |
permissive
|
yuanbaoMarvin/alipay-sdk-java-all
|
70a72a969f464d79c79d09af8b6b01fa177ac1be
|
25f3003d820dbd0b73739d8e32a6093468d9ed92
|
refs/heads/master
| 2023-06-03T16:54:25.138471
| 2021-06-25T14:48:21
| 2021-06-25T14:48:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 819
|
java
|
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* ISV查询商户列表接口
*
* @author auto create
* @since 1.0, 2017-08-04 15:15:46
*/
public class KoubeiMarketingToolIsvMerchantQueryModel extends AlipayObject {
private static final long serialVersionUID = 5542822888334852492L;
/**
* 页码
*/
@ApiField("page_num")
private String pageNum;
/**
* 每页大小
*/
@ApiField("page_size")
private String pageSize;
public String getPageNum() {
return this.pageNum;
}
public void setPageNum(String pageNum) {
this.pageNum = pageNum;
}
public String getPageSize() {
return this.pageSize;
}
public void setPageSize(String pageSize) {
this.pageSize = pageSize;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
a5515901793bce040e912fa219b6cc3cdb160947
|
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
|
/domain-20180129/src/main/java/com/aliyun/domain20180129/models/QueryFailingReasonListForQualificationRequest.java
|
75067eb1303101c6acbd1c845b288db382f3fcff
|
[
"Apache-2.0"
] |
permissive
|
aliyun/alibabacloud-java-sdk
|
83a6036a33c7278bca6f1bafccb0180940d58b0b
|
008923f156adf2e4f4785a0419f60640273854ec
|
refs/heads/master
| 2023-09-01T04:10:33.640756
| 2023-09-01T02:40:45
| 2023-09-01T02:40:45
| 288,968,318
| 40
| 45
| null | 2023-06-13T02:47:13
| 2020-08-20T09:51:08
|
Java
|
UTF-8
|
Java
| false
| false
| 1,933
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.domain20180129.models;
import com.aliyun.tea.*;
public class QueryFailingReasonListForQualificationRequest extends TeaModel {
@NameInMap("InstanceId")
public String instanceId;
@NameInMap("Lang")
public String lang;
@NameInMap("Limit")
public Integer limit;
@NameInMap("QualificationType")
public String qualificationType;
@NameInMap("UserClientIp")
public String userClientIp;
public static QueryFailingReasonListForQualificationRequest build(java.util.Map<String, ?> map) throws Exception {
QueryFailingReasonListForQualificationRequest self = new QueryFailingReasonListForQualificationRequest();
return TeaModel.build(map, self);
}
public QueryFailingReasonListForQualificationRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public QueryFailingReasonListForQualificationRequest setLang(String lang) {
this.lang = lang;
return this;
}
public String getLang() {
return this.lang;
}
public QueryFailingReasonListForQualificationRequest setLimit(Integer limit) {
this.limit = limit;
return this;
}
public Integer getLimit() {
return this.limit;
}
public QueryFailingReasonListForQualificationRequest setQualificationType(String qualificationType) {
this.qualificationType = qualificationType;
return this;
}
public String getQualificationType() {
return this.qualificationType;
}
public QueryFailingReasonListForQualificationRequest setUserClientIp(String userClientIp) {
this.userClientIp = userClientIp;
return this;
}
public String getUserClientIp() {
return this.userClientIp;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
caefcfea1555585258d71f8bc88977b0d2008fae
|
5bc9d8f92f38967cc9ecc03000c0606dbbb38f74
|
/sca4j/modules/tags/sca4j-modules-parent-pom-0.9.6/runtime/generic/sca4j-generic-runtime-impl/src/main/java/org/sca4/runtime/generic/impl/contribution/ClasspathContributionProcessor.java
|
2f6a38e10c577444900e1699abf8fece2a60069f
|
[] |
no_license
|
codehaus/service-conduit
|
795332fad474e12463db22c5e57ddd7cd6e2956e
|
4687d4cfc16f7a863ced69ce9ca81c6db3adb6d2
|
refs/heads/master
| 2023-07-20T00:35:11.240347
| 2011-08-24T22:13:28
| 2011-08-24T22:13:28
| 36,342,601
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,680
|
java
|
/**
* SCA4J
* Copyright (c) 2009 - 2099 Service Symphony Ltd
*
* Licensed to you under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. A copy of the license
* is included in this distrubtion or you may obtain a copy at
*
* http://www.opensource.org/licenses/apache2.0.php
*
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*
* This project contains code licensed from the Apache Software Foundation under
* the Apache License, Version 2.0 and original code from project contributors.
*
*
* Original Codehaus Header
*
* Copyright (c) 2007 - 2008 fabric3 project contributors
*
* Licensed to you under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. A copy of the license
* is included in this distrubtion or you may obtain a copy at
*
* http://www.opensource.org/licenses/apache2.0.php
*
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*
* This project contains code licensed from the Apache Software Foundation under
* the Apache License, Version 2.0 and original code from project contributors.
*
* Original Apache Header
*
* Copyright (c) 2005 - 2006 The Apache Software Foundation
*
* Apache Tuscany is an effort undergoing incubation at The Apache Software
* Foundation (ASF), sponsored by the Apache Web Services PMC. Incubation is
* required of all newly accepted projects until a further review indicates that
* the infrastructure, communications, and decision making process have stabilized
* in a manner consistent with other successful ASF projects. While incubation
* status is not necessarily a reflection of the completeness or stability of the
* code, it does indicate that the project has yet to be fully endorsed by the ASF.
*
* This product includes software developed by
* The Apache Software Foundation (http://www.apache.org/).
*/
package org.sca4.runtime.generic.impl.contribution;
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import org.oasisopen.sca.annotation.EagerInit;
import org.oasisopen.sca.annotation.Reference;
import org.sca4j.fabric.services.contribution.processor.AbstractContributionProcessor;
import org.sca4j.fabric.util.FileHelper;
import org.sca4j.host.contribution.ContributionException;
import org.sca4j.spi.services.contenttype.ContentTypeResolutionException;
import org.sca4j.spi.services.contenttype.ContentTypeResolver;
import org.sca4j.spi.services.contribution.Action;
import org.sca4j.spi.services.contribution.Contribution;
/**
* Contribution processor for tests.
*
*/
@EagerInit
public class ClasspathContributionProcessor extends AbstractContributionProcessor {
@Reference protected ContentTypeResolver contentTypeResolver;
protected URL getManifestUrl(Contribution contribution) throws MalformedURLException {
return new URL(contribution.getLocation().toExternalForm() + "/META-INF/sca-contribution.xml");
}
protected void iterateArtifacts(Contribution contribution, Action action) throws ContributionException {
File root = FileHelper.toFile(contribution.getLocation());
assert root.isDirectory();
iterateArtifactsResursive(contribution, action, root);
}
private void iterateArtifactsResursive(Contribution contribution, Action action, File dir) throws ContributionException {
File[] files = dir.listFiles();
for (File file : files) {
if (file.isDirectory()) {
iterateArtifactsResursive(contribution, action, file);
} else {
try {
URL entryUrl = file.toURI().toURL();
String contentType = contentTypeResolver.getContentType(entryUrl);
action.process(contribution, contentType, entryUrl);
} catch (MalformedURLException e) {
throw new ContributionException(e);
} catch (ContentTypeResolutionException e) {
throw new ContributionException(e);
}
}
}
}
}
|
[
"meerajk@15bcc2b3-4398-4609-aa7c-97eea3cd106e"
] |
meerajk@15bcc2b3-4398-4609-aa7c-97eea3cd106e
|
ace880d1ce340964ff5e3fa89848f1a348ec43a8
|
91e342347bce88e212d3d5d5ce92c26f5dd481cf
|
/creoson-json-const/src/com/simplifiedlogic/nitro/jshell/json/response/JLInterfaceResponseParams.java
|
627264aaabfcf1a6c15797714912c83028757f99
|
[
"MIT"
] |
permissive
|
nexiles/creoson
|
732d23bda6f59ee47d486b9ae91dee6f485c5a37
|
4e897be91841a5baa4b600097dd91d6140c18c44
|
refs/heads/master
| 2020-03-29T15:50:54.663265
| 2018-09-05T19:59:47
| 2018-09-05T19:59:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,557
|
java
|
/*
* MIT LICENSE
* Copyright 2000-2018 Simplified Logic, Inc
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions: The above copyright
* notice and this permission notice shall be included in all copies or
* substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS",
* WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
* TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package com.simplifiedlogic.nitro.jshell.json.response;
/**
* Constants defining the JSON response parameters for the interface command
*
* @author Adam Andrews
*/
public interface JLInterfaceResponseParams {
// response fields
public static final String OUTPUT_FILENAME = "filename";
public static final String OUTPUT_DIRNAME = "dirname";
public static final String OUTPUT_MODEL = "file";
}
|
[
"adama@simplifiedlogic.com"
] |
adama@simplifiedlogic.com
|
25146a17c893d6fb990171e5d3b3570eebef2634
|
4b027a96e457f90fdd146c73a92a99a63b5f6cab
|
/level06/lesson08/task02/Cat.java
|
7918c464c49d46ca5b2dd71b360193cdb509a772
|
[] |
no_license
|
Byshevsky/JavaRush
|
c44a3b25afca677bbe5b6c015aec7c2561ca4830
|
d8965bc8b5f060af558cc86924ae6488727cdbd4
|
refs/heads/master
| 2021-05-02T12:17:48.896494
| 2016-12-26T21:56:12
| 2016-12-26T21:56:12
| 52,143,706
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 805
|
java
|
package com.javarush.test.level06.lesson08.task02;
/* Статические методы: int getCatCount() и setCatCount(int)
Добавить к классу Cat два статических метода: int getCatCount() и setCatCount(int), с помощью которых можно получить/изменить количество котов (переменную catCount)
*/
public class Cat
{
private static int catCount = 0;
public Cat()
{
catCount++;
}
public static int getCatCount()
{
//Напишите тут ваш код
return Cat.catCount;
}
public static void setCatCount(int catCount)
{
//Напишите тут ваш код
Cat.catCount = catCount;
}
}
|
[
"igberda2011@gmail.com"
] |
igberda2011@gmail.com
|
9784166683e45cc3b9a6dddcb17e89f0423c9087
|
747a9fbd3ea6a3d3e469d63ade02b7620d970ca6
|
/gmsm/src/main/java/com/getui/gmsm/bouncycastle/asn1/bc/BCObjectIdentifiers.java
|
336481cfad17abcf40300a1f224dbdc3ef76c911
|
[] |
no_license
|
xievxin/GitWorkspace
|
3b88601ebb4718dc34a2948c673367ba79c202f0
|
81f4e7176daa85bf8bf5858ca4462e9475227aba
|
refs/heads/master
| 2021-01-21T06:18:33.222406
| 2019-01-31T01:28:50
| 2019-01-31T01:28:50
| 95,727,159
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,607
|
java
|
package com.getui.gmsm.bouncycastle.asn1.bc;
import com.getui.gmsm.bouncycastle.asn1.DERObjectIdentifier;
public interface BCObjectIdentifiers
{
/**
* iso.org.dod.internet.private.enterprise.legion-of-the-bouncy-castle
*
* 1.3.6.1.4.1.22554
*/
public static final DERObjectIdentifier bc = new DERObjectIdentifier("1.3.6.1.4.1.22554");
/**
* pbe(1) algorithms
*/
public static final DERObjectIdentifier bc_pbe = new DERObjectIdentifier(bc.getId() + ".1");
/**
* SHA-1(1)
*/
public static final DERObjectIdentifier bc_pbe_sha1 = new DERObjectIdentifier(bc_pbe.getId() + ".1");
/**
* SHA-2(2) . (SHA-256(1)|SHA-384(2)|SHA-512(3)|SHA-224(4))
*/
public static final DERObjectIdentifier bc_pbe_sha256 = new DERObjectIdentifier(bc_pbe.getId() + ".2.1");
public static final DERObjectIdentifier bc_pbe_sha384 = new DERObjectIdentifier(bc_pbe.getId() + ".2.2");
public static final DERObjectIdentifier bc_pbe_sha512 = new DERObjectIdentifier(bc_pbe.getId() + ".2.3");
public static final DERObjectIdentifier bc_pbe_sha224 = new DERObjectIdentifier(bc_pbe.getId() + ".2.4");
/**
* PKCS-5(1)|PKCS-12(2)
*/
public static final DERObjectIdentifier bc_pbe_sha1_pkcs5 = new DERObjectIdentifier(bc_pbe_sha1.getId() + ".1");
public static final DERObjectIdentifier bc_pbe_sha1_pkcs12 = new DERObjectIdentifier(bc_pbe_sha1.getId() + ".2");
public static final DERObjectIdentifier bc_pbe_sha256_pkcs5 = new DERObjectIdentifier(bc_pbe_sha256.getId() + ".1");
public static final DERObjectIdentifier bc_pbe_sha256_pkcs12 = new DERObjectIdentifier(bc_pbe_sha256.getId() + ".2");
/**
* AES(1) . (CBC-128(2)|CBC-192(22)|CBC-256(42))
*/
public static final DERObjectIdentifier bc_pbe_sha1_pkcs12_aes128_cbc = new DERObjectIdentifier(bc_pbe_sha1_pkcs12.getId() + ".1.2");
public static final DERObjectIdentifier bc_pbe_sha1_pkcs12_aes192_cbc = new DERObjectIdentifier(bc_pbe_sha1_pkcs12.getId() + ".1.22");
public static final DERObjectIdentifier bc_pbe_sha1_pkcs12_aes256_cbc = new DERObjectIdentifier(bc_pbe_sha1_pkcs12.getId() + ".1.42");
public static final DERObjectIdentifier bc_pbe_sha256_pkcs12_aes128_cbc = new DERObjectIdentifier(bc_pbe_sha256_pkcs12.getId() + ".1.2");
public static final DERObjectIdentifier bc_pbe_sha256_pkcs12_aes192_cbc = new DERObjectIdentifier(bc_pbe_sha256_pkcs12.getId() + ".1.22");
public static final DERObjectIdentifier bc_pbe_sha256_pkcs12_aes256_cbc = new DERObjectIdentifier(bc_pbe_sha256_pkcs12.getId() + ".1.42");
}
|
[
"xiex@getui.com"
] |
xiex@getui.com
|
8904b782a81e7afb4eae93767c945201455c2100
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/12/12_1be45a78cb810cc82998e0eae4072bc635a40331/SellCommand/12_1be45a78cb810cc82998e0eae4072bc635a40331_SellCommand_t.java
|
653895fe041f38b64d7e13330dca3e32cf209264
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 6,580
|
java
|
/*-------------------------------------------------------------------------
svninfo: $Id$
Maarten's Mud, WWW-based MUD using MYSQL
Copyright (C) 1998 Maarten van Leunen
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Maarten van Leunen
Appelhof 27
5345 KA Oss
Nederland
Europe
maarten_l@yahoo.com
-------------------------------------------------------------------------*/
package mmud.commands;
import java.util.Vector;
import java.util.logging.Logger;
import mmud.Constants;
import mmud.MudException;
import mmud.ParseException;
import mmud.characters.Person;
import mmud.characters.Persons;
import mmud.characters.User;
import mmud.database.Database;
import mmud.database.ItemsDb;
import mmud.items.Item;
import mmud.items.ItemException;
/**
* Selling an item to a bot. Syntax : sell <item> to <character>
* @see BuyCommand
*/
public class SellCommand extends NormalCommand
{
public SellCommand(String aRegExpr)
{
super(aRegExpr);
}
/**
* Tries out the sell command. There are a couple of requirements that
* need to be met, before a successful sale takes place.
* <ol><li>command struct. should be "<I>sell
* <item> to <character></I>", for example: "<I>sell gold ring
* to Karcas</I>".
* <li>shopkeeper buying the item should
* <ol><li> exist, <li>be in the same room and<li>
* have a occupation-attribute set to "shopkeeper"
* and<li>has enough money</ol>
* <li>the customer should have the item
* <li>the item itself should <I>NOT</I> have a attribute called "notsellable".
* </ol>
* A best effort is tried, this means the following sequence of events:
* <ol><li>the item is transferred into the inventory of the shopkeeper
* <li>money is transferred into the inventory of the customer
* <li>continue with next item
*</ol>
* @param aUser the character doing the selling.
* @throws ItemException in case the appropriate items could not be
* properly processed.
* @throws ParseException if the item description or the number of
* items requested is illegal.
*/
public boolean run(User aUser)
throws ItemException, ParseException, MudException
{
Logger.getLogger("mmud").finer("");
if (!super.run(aUser))
{
return false;
}
String[] myParsed = getParsedCommand();
// parse command string
if (myParsed.length >= 4 && myParsed[myParsed.length-2].equalsIgnoreCase("to"))
{
// determine if appropriate shopkeeper is found.
Person toChar = Persons.retrievePerson(myParsed[myParsed.length-1]);
if ((toChar == null) || (!toChar.getRoom().equals(aUser.getRoom())))
{
aUser.writeMessage("Cannot find that person.<BR>\r\n");
return true;
}
if ( (!toChar.isAttribute("occupation")) ||
(!"shopkeeper".equals(
toChar.getAttribute("occupation").getValue())) )
{
aUser.writeMessage("That person is not a shopkeeper.<BR>\r\n");
return true;
}
// check for item in posession of customer
Vector stuff = Constants.parseItemDescription(myParsed, 1, myParsed.length - 3);
int amount = ((Integer) stuff.elementAt(0)).intValue();
String adject1 = (String) stuff.elementAt(1);
String adject2 = (String) stuff.elementAt(2);
String adject3 = (String) stuff.elementAt(3);
String name = (String) stuff.elementAt(4);
Vector myItems = aUser.getItems(adject1, adject2, adject3, name);
if (myItems.size() < amount)
{
if (amount == 1)
{
aUser.writeMessage("You do not have that item.<BR>\r\n");
return true;
}
else
{
aUser.writeMessage("You do not have that many items.<BR>\r\n");
return true;
}
}
int sumvalue = 0;
for (int i=0; i<amount; i++)
{
Item myItem = (Item) myItems.elementAt(i);
sumvalue += myItem.getMoney();
}
Logger.getLogger("mmud").finer(aUser.getName() + " has items worth " + sumvalue + " copper");
Logger.getLogger("mmud").finer(toChar.getName() + " has " +
toChar.getMoney() + " copper coins");
if (toChar.getMoney() < sumvalue )
{
aUser.writeMessage(toChar.getName() + " mutters something about not having enough money.<BR>\r\n");
return true;
}
int j = 0;
for (int i = 0; ((i < myItems.size()) && (j != amount)); i++)
{
// here needs to be a check for validity of the item
boolean success = true;
Item myItem = (Item) myItems.elementAt(i);
if (myItem.isAttribute("notsellable"))
{
aUser.writeMessage("You cannot sell that item.<BR>\r\n");
success = false;
}
if (myItem.getMoney() == 0)
{
String message = "That item is not worth anything.";
Persons.sendMessageExcl(toChar, aUser, "%SNAME say%VERB2 [to %TNAME] : " + message + "<BR>\r\n");
aUser.writeMessage(toChar, aUser, "<B>%SNAME say%VERB2 [to %TNAME]</B> : " + message + "<BR>\r\n");
success = false;
}
if (myItem.isWearing())
{
String message = "You cannot sell that, you are wearing or wielding that item.";
aUser.writeMessage(toChar, aUser, message + "<BR>\r\n");
success = false;
}
if (success)
{
// transfer money to user
int totalitemvalue = myItem.getMoney();
// transfer item to shopkeeper
if (success)
{
ItemsDb.transferItem(myItem, toChar);
Database.writeLog(aUser.getName(), "sold " + myItem + " to " + toChar + " in room " + toChar.getRoom().getId());
toChar.transferMoneyTo(totalitemvalue, aUser);
Database.writeLog(aUser.getName(), "received " + totalitemvalue + " copper from " + toChar);
Persons.sendMessage(aUser, toChar, "%SNAME sell%VERB2 " + myItem.getDescription() + " to %TNAME.<BR>\r\n");
j++;
}
}
}
return true;
}
return false;
}
public Command createCommand()
{
return new SellCommand(getRegExpr());
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
4c4801e0ae7391d0c6790162f7610c41be286bd6
|
524df4196241684fc6d0fa0bff09c6cf5b72fd17
|
/RecyclerViewExample2/app/src/main/java/com/nex3z/examples/recyclerview2/rest/RestClient.java
|
73713f5d8e3a56ad8b81e5b01721a8c8a8edf060
|
[] |
no_license
|
WZFlik/android-examples
|
459330f04fe4d374ba00141917487532cd89d142
|
7da7a685d31dac1388406dbaa8ccf5b3109e924a
|
refs/heads/master
| 2020-03-28T21:08:34.649938
| 2018-06-04T14:57:18
| 2018-06-04T14:57:18
| 149,132,237
| 1
| 0
| null | 2018-09-17T13:48:20
| 2018-09-17T13:48:20
| null |
UTF-8
|
Java
| false
| false
| 2,081
|
java
|
package com.nex3z.examples.recyclerview2.rest;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.nex3z.examples.recyclerview2.BuildConfig;
import com.nex3z.examples.recyclerview2.rest.service.MovieService;
import com.squareup.okhttp.HttpUrl;
import com.squareup.okhttp.Interceptor;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.Request;
import com.squareup.okhttp.Response;
import com.squareup.okhttp.logging.HttpLoggingInterceptor;
import java.io.IOException;
import retrofit.GsonConverterFactory;
import retrofit.Retrofit;
public class RestClient {
private static final String BASE_URL = "http://api.themoviedb.org";
private MovieService mMovieService;
public RestClient() {
Gson gson = new GsonBuilder().create();
OkHttpClient httpClient = new OkHttpClient();
httpClient.interceptors().add(
new HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BODY));
httpClient.interceptors().add(new Interceptor() {
@Override
public Response intercept(Interceptor.Chain chain) throws IOException {
Request original = chain.request();
HttpUrl originalHttpUrl = original.httpUrl();
HttpUrl.Builder builder = originalHttpUrl.newBuilder()
.addQueryParameter("api_key", BuildConfig.API_KEY);
Request.Builder requestBuilder = original.newBuilder()
.url(builder.build())
.method(original.method(), original.body());
Request request = requestBuilder.build();
return chain.proceed(request);
}
});
Retrofit retrofit = new Retrofit.Builder()
.baseUrl(BASE_URL)
.client(httpClient)
.addConverterFactory(GsonConverterFactory.create(gson))
.build();
mMovieService = retrofit.create(MovieService.class);
}
public MovieService getMovieService() { return mMovieService; }
}
|
[
"litianxing9@gmail.com"
] |
litianxing9@gmail.com
|
ec551bba867468c429c828e465c39363eb799e88
|
26a5d590d00707c9215732a9ff04794f2f9ea501
|
/src/main/java/de/leeksanddragons/tools/dialog/javafx/FXMLWindow.java
|
3763bc29c5db0ca0e1a9f45dea4b1fc2d8cb1c71
|
[
"Apache-2.0"
] |
permissive
|
leeks-and-dragons/dialog-tool
|
3c8929c38e686ed9ad360d0872a5bac23013b2fc
|
90d70e9c38d0bb647b51923661a20f75798e55ec
|
refs/heads/master
| 2021-01-20T21:07:11.842241
| 2017-08-31T16:24:31
| 2017-08-31T16:24:31
| 101,749,852
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,010
|
java
|
package de.leeksanddragons.tools.dialog.javafx;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
import java.io.File;
import java.io.IOException;
/**
* Created by Justin on 30.05.2017.
*/
public class FXMLWindow {
//JavaFX stage means an window
protected Stage stage = null;
//JavaFX scene
protected Scene scene = null;
//root AnchorPane
protected Pane rootPane = null;
public FXMLWindow (String title, int width, int height, String fxmlPath, FXMLController controller) {
//create new stage
this.stage = new Stage();
//set title
stage.setTitle(title);
//set width & height
stage.setWidth(width);
stage.setHeight(height);
// load fxml
try {
FXMLLoader loader = new FXMLLoader(new File(fxmlPath).toURI().toURL());
//set controller
if (controller != null) {
loader.setController(controller);
}
rootPane = loader.load();//FXMLLoader.load(new File(fxmlPath).toURI().toURL());
} catch (IOException e) {
e.printStackTrace();
System.exit(1);
}
//add scene
this.scene = new Scene(this.rootPane);
//set scene
stage.setScene(scene);
//initialize controller
if (controller != null) {
controller.init(stage, scene, rootPane);
//run controller logic in new thread
new Thread(controller::run).start();
}
//show window
//stage.show();
}
public FXMLWindow (String title, int width, int height, String fxmlPath) {
this(title, width, height, fxmlPath, null);
}
public Stage getStage () {
return this.stage;
}
public void setVisible (boolean visible) {
if (!visible) {
this.stage.hide();
} else {
this.stage.show();
}
}
}
|
[
"kuenzel.justin@t-online.de"
] |
kuenzel.justin@t-online.de
|
ef537f8342a6e67fb57a3edc8b69d5973b763473
|
7ee27191217553a815458a622a1b7878274f7088
|
/src/main/java/jdkguide/nio/buffer/ByteBuffers.java
|
401defad5fe1b3cd87abb237ee6ceb8cc8a9529e
|
[] |
no_license
|
BigPayno/JavaGuide
|
bd3a14cab15188894ade972201f437cc8ceadbb7
|
512f084343e03de87e4949dd66fba77eb69972ed
|
refs/heads/master
| 2022-12-12T23:29:53.618292
| 2020-05-29T08:30:36
| 2020-05-29T08:30:36
| 221,147,356
| 1
| 0
| null | 2022-12-10T05:44:10
| 2019-11-12T06:34:42
|
Java
|
UTF-8
|
Java
| false
| false
| 479
|
java
|
package jdkguide.nio.buffer;
import java.nio.ByteBuffer;
/**
* @author payno
* @date 2019/11/4 14:59
* @description
*/
public final class ByteBuffers {
public static void print(ByteBuffer byteBuffer){
//反转ByteBuffer,转换读写模式
byteBuffer.flip();
//移动指针
while (byteBuffer.hasRemaining()){
System.out.print((char)byteBuffer.get());
}
//清除ByteBuffer
byteBuffer.clear();
}
}
|
[
"1361098889@qq.com"
] |
1361098889@qq.com
|
6cb394ba038e2ce616a517a5bf0f869637b65836
|
97c2cfd517cdf2a348a3fcb73e9687003f472201
|
/Java/systematic/src/com/malbec/tsdb/loader/TimeSeriesDataPoint.java
|
a3293f462fc6f612f0a2a1881569374580ff24d4
|
[] |
no_license
|
rsheftel/ratel
|
b1179fcc1ca55255d7b511a870a2b0b05b04b1a0
|
e1876f976c3e26012a5f39707275d52d77f329b8
|
refs/heads/master
| 2016-09-05T21:34:45.510667
| 2015-05-12T03:51:05
| 2015-05-12T03:51:05
| 32,461,975
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 420
|
java
|
package com.malbec.tsdb.loader;
import static tsdb.TimeSeries.*;
public class TimeSeriesDataPoint {
private final int id;
private final Double value;
public TimeSeriesDataPoint(int id, Double value) {
this.id = id;
this.value = value;
}
public Double value() {
return value;
}
public int id() {
return id;
}
@Override public String toString() {
return series(id).name() + " " + value;
}
}
|
[
"rsheftel@gmail.com"
] |
rsheftel@gmail.com
|
d01c6c034574169b2a19ebb5d13ae64ff8c7aa49
|
e45f290038946dc567da05ae6491e5a5eae4c2bf
|
/models/cinematic/plugins/org.obeonetwork.dsl.cinematic.edit/src-gen/org/obeonetwork/dsl/cinematic/flow/components/FlowPropertiesEditionComponent.java
|
59ac75b0485a317c046d42f356ea6c0df1a0d64d
|
[] |
no_license
|
carsonshan/InformationSystem
|
e54882507d646fe5c706b248a0ebf56498e4722c
|
192dd9a6ac71a95d96bf39107790c33450397132
|
refs/heads/master
| 2020-03-19T07:20:56.817458
| 2017-09-26T09:51:13
| 2017-09-26T12:35:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,355
|
java
|
/**
* Generated with Acceleo
*/
package org.obeonetwork.dsl.cinematic.flow.components;
// Start of user code for imports
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.resource.ResourceSet;
import org.eclipse.emf.eef.runtime.api.parts.IPropertiesEditionPart;
import org.eclipse.emf.eef.runtime.context.PropertiesEditingContext;
import org.eclipse.emf.eef.runtime.impl.components.ComposedPropertiesEditionComponent;
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider;
import org.obeonetwork.dsl.cinematic.flow.Flow;
import org.obeonetwork.dsl.cinematic.flow.parts.FlowPropertiesEditionPart;
import org.obeonetwork.dsl.cinematic.flow.parts.FlowViewsRepository;
import org.obeonetwork.dsl.environment.components.MetadataCptPropertiesEditionComponent;
import org.obeonetwork.dsl.environment.parts.EnvironmentViewsRepository;
// End of user code
/**
*
*
*/
public class FlowPropertiesEditionComponent extends ComposedPropertiesEditionComponent {
/**
* The Flow part
*
*/
private FlowPropertiesEditionPart flowPart;
/**
* The FlowFlowPropertiesEditionComponent sub component
*
*/
protected FlowFlowPropertiesEditionComponent flowFlowPropertiesEditionComponent;
/**
* The MetadataCptPropertiesEditionComponent sub component
*
*/
protected MetadataCptPropertiesEditionComponent metadataCptPropertiesEditionComponent;
/**
* Parameterized constructor
*
* @param flow the EObject to edit
*
*/
public FlowPropertiesEditionComponent(PropertiesEditingContext editingContext, EObject flow, String editing_mode) {
super(editingContext, editing_mode);
if (flow instanceof Flow) {
PropertiesEditingProvider provider = null;
provider = (PropertiesEditingProvider)editingContext.getAdapterFactory().adapt(flow, PropertiesEditingProvider.class);
flowFlowPropertiesEditionComponent = (FlowFlowPropertiesEditionComponent)provider.getPropertiesEditingComponent(editingContext, editing_mode, FlowFlowPropertiesEditionComponent.FLOW_PART, FlowFlowPropertiesEditionComponent.class);
addSubComponent(flowFlowPropertiesEditionComponent);
provider = (PropertiesEditingProvider)editingContext.getAdapterFactory().adapt(flow, PropertiesEditingProvider.class);
metadataCptPropertiesEditionComponent = (MetadataCptPropertiesEditionComponent)provider.getPropertiesEditingComponent(editingContext, editing_mode, MetadataCptPropertiesEditionComponent.METADATAS_PART, MetadataCptPropertiesEditionComponent.class);
addSubComponent(metadataCptPropertiesEditionComponent);
}
}
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.impl.components.ComposedPropertiesEditionComponent#
* getPropertiesEditionPart(int, java.lang.String)
*
*/
public IPropertiesEditionPart getPropertiesEditionPart(int kind, String key) {
if (FlowFlowPropertiesEditionComponent.FLOW_PART.equals(key)) {
flowPart = (FlowPropertiesEditionPart)flowFlowPropertiesEditionComponent.getPropertiesEditionPart(kind, key);
return (IPropertiesEditionPart)flowPart;
}
return super.getPropertiesEditionPart(kind, key);
}
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.impl.components.ComposedPropertiesEditionComponent#
* setPropertiesEditionPart(java.lang.Object, int,
* org.eclipse.emf.eef.runtime.api.parts.IPropertiesEditionPart)
*
*/
public void setPropertiesEditionPart(java.lang.Object key, int kind, IPropertiesEditionPart propertiesEditionPart) {
if (FlowViewsRepository.Flow_.class == key) {
super.setPropertiesEditionPart(key, kind, propertiesEditionPart);
flowPart = (FlowPropertiesEditionPart)propertiesEditionPart;
}
}
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.impl.components.ComposedPropertiesEditionComponent#
* initPart(java.lang.Object, int, org.eclipse.emf.ecore.EObject,
* org.eclipse.emf.ecore.resource.ResourceSet)
*
*/
public void initPart(java.lang.Object key, int kind, EObject element, ResourceSet allResource) {
if (key == FlowViewsRepository.Flow_.class) {
super.initPart(key, kind, element, allResource);
}
if (key == EnvironmentViewsRepository.Metadatas.class) {
super.initPart(key, kind, element, allResource);
}
}
}
|
[
"mathieu.cartaud@obeo.fr"
] |
mathieu.cartaud@obeo.fr
|
93ec8db7418b5169a71d1b0ee8164041466f615f
|
43ea91f3ca050380e4c163129e92b771d7bf144a
|
/services/mpc/src/main/java/com/huaweicloud/sdk/mpc/v1/model/CreateMergeChannelsTaskRequest.java
|
eecb4ac77c08d4b1bf5b415feff277570fc956ef
|
[
"Apache-2.0"
] |
permissive
|
wxgsdwl/huaweicloud-sdk-java-v3
|
660602ca08f32dc897d3770995b496a82a1cc72d
|
ee001d706568fdc7b852792d2e9aefeb9d13fb1e
|
refs/heads/master
| 2023-02-27T14:20:54.774327
| 2021-02-07T11:48:35
| 2021-02-07T11:48:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,312
|
java
|
package com.huaweicloud.sdk.mpc.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.huaweicloud.sdk.mpc.v1.model.CreateMergeChannelsReq;
import java.util.function.Consumer;
import java.util.Objects;
/**
* Request Object
*/
public class CreateMergeChannelsTaskRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="body")
private CreateMergeChannelsReq body = null;
public CreateMergeChannelsTaskRequest withBody(CreateMergeChannelsReq body) {
this.body = body;
return this;
}
public CreateMergeChannelsTaskRequest withBody(Consumer<CreateMergeChannelsReq> bodySetter) {
if(this.body == null ){
this.body = new CreateMergeChannelsReq();
bodySetter.accept(this.body);
}
return this;
}
/**
* Get body
* @return body
*/
public CreateMergeChannelsReq getBody() {
return body;
}
public void setBody(CreateMergeChannelsReq body) {
this.body = body;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateMergeChannelsTaskRequest createMergeChannelsTaskRequest = (CreateMergeChannelsTaskRequest) o;
return Objects.equals(this.body, createMergeChannelsTaskRequest.body);
}
@Override
public int hashCode() {
return Objects.hash(body);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateMergeChannelsTaskRequest {\n");
sb.append(" body: ").append(toIndentedString(body)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
|
[
"hwcloudsdk@huawei.com"
] |
hwcloudsdk@huawei.com
|
2a45b0dd317f9cc8949c84bb6a992ea05bd7693c
|
038ee6b20cae51169a2ed4ed64a7b8e99b5cbaad
|
/schemaOrgDomaConv/src/org/kyojo/schemaOrg/m3n3/doma/core/container/EqualConverter.java
|
a394c2303dda0f5eb200405d1cf7a9155362d534
|
[
"Apache-2.0"
] |
permissive
|
nagaikenshin/schemaOrg
|
3dec1626781913930da5585884e3484e0b525aea
|
4c9d6d098a2741c2dc2a814f1c708ee55c36e9a8
|
refs/heads/master
| 2021-06-25T04:52:49.995840
| 2019-05-12T06:22:37
| 2019-05-12T06:22:37
| 134,319,974
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 530
|
java
|
package org.kyojo.schemaorg.m3n3.doma.core.container;
import org.seasar.doma.ExternalDomain;
import org.seasar.doma.jdbc.domain.DomainConverter;
import org.kyojo.schemaorg.m3n3.core.impl.EQUAL;
import org.kyojo.schemaorg.m3n3.core.Container.Equal;
@ExternalDomain
public class EqualConverter implements DomainConverter<Equal, String> {
@Override
public String fromDomainToValue(Equal domain) {
return domain.getNativeValue();
}
@Override
public Equal fromValueToDomain(String value) {
return new EQUAL(value);
}
}
|
[
"nagai@nagaikenshin.com"
] |
nagai@nagaikenshin.com
|
f61ac8df2d145ddcb015c64400f09f89ef21d95a
|
c634236c7fb442dde4913c665f89a46a5703583b
|
/Eem/libs/src/main/java/com/souja/lib/utils/pageTransformer/ZoomInTransform.java
|
e9f1e4d01b8fccbe687df29e62b010160198e2cb
|
[] |
no_license
|
souja/EEM
|
117850a4089e1bf95ee7a6d7e813bc0775503bf4
|
5f875eb0045260cd7bc0366c2ff0cb72e6a89fe7
|
refs/heads/master
| 2020-05-03T02:02:01.711413
| 2019-09-24T02:27:17
| 2019-09-24T02:27:17
| 178,355,871
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,072
|
java
|
package com.souja.lib.utils.pageTransformer;
import android.support.v4.view.ViewPager;
import android.view.View;
import org.xutils.common.util.LogUtil;
public class ZoomInTransform implements ViewPager.PageTransformer {
@Override
public void transformPage(View page, float position) {
int width = page.getWidth();
int height = page.getHeight();
//這裏只對右邊的view做了操作
if (position > 0 && position <= 1) {//right scorlling
//position是1.0->0,但是沒有等於0
LogUtil.e("right----position====" + position);
//設置該view的X軸不動
page.setTranslationX(-width * position);
//設置縮放中心點在該view的正中心
page.setPivotX(width / 2);
page.setPivotY(height / 2);
//設置縮放比例(0.0,1.0]
page.setScaleX(1 - position);
page.setScaleY(1 - position);
} else if (position >= -1 && position < 0) {//left scrolling
} else {//center
}
}
}
|
[
"782579195@qq.com"
] |
782579195@qq.com
|
f6814626ebd1067842e4922bfd34618db1fd3c8e
|
da43836d728650803c8ae5ce776fbcc8c1513f07
|
/ace-gate/ace-gateway-v2/src/main/java/com/bitcola/exchange/security/gate/v2/feign/IUserService.java
|
9484fe8e418d20f54b31a50b0eaee493039b32a7
|
[
"Apache-2.0"
] |
permissive
|
wxpkerpk/exchange-base-examlple
|
36253f96a1e478365feabad183636675ee1e4f4c
|
acb61eb9d8316c5cf290481362560203eaf682a7
|
refs/heads/master
| 2022-06-28T12:19:17.730542
| 2019-07-11T16:38:51
| 2019-07-11T16:38:51
| 196,430,856
| 1
| 4
|
Apache-2.0
| 2022-06-21T01:26:27
| 2019-07-11T16:34:47
|
Java
|
UTF-8
|
Java
| false
| false
| 1,206
|
java
|
package com.bitcola.exchange.security.gate.v2.feign;
import com.alicp.jetcache.anno.CacheType;
import com.alicp.jetcache.anno.Cached;
import com.bitcola.exchange.security.gate.v2.fallback.UserServiceFallback;
import com.bitcola.exchange.security.api.vo.authority.PermissionInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import java.util.List;
/**
* ${DESCRIPTION}
*
* @author wx
* @create 2017-06-21 8:11
*/
@FeignClient(value = "ace-admin",fallback = UserServiceFallback.class)
public interface IUserService {
@RequestMapping(value="/api/user/un/{username}/permissions",method = RequestMethod.GET)
@Cached(name="getPermissionByUsername-", key="#username", expire = 120,cacheType = CacheType.LOCAL)
List<PermissionInfo> getPermissionByUsername(@PathVariable("username") String username);
@Cached(name="getAllPermissionInfo", expire = 60,cacheType = CacheType.LOCAL)
@RequestMapping(value="/api/permissions",method = RequestMethod.GET)
List<PermissionInfo> getAllPermissionInfo();
}
|
[
"120443910@qq.com"
] |
120443910@qq.com
|
9971cf58e830f858dfb20095be2777f6838a86ad
|
2d666e65b8fce172523b4814d34bb88fdccf4a92
|
/Basics/SortingDemo.java
|
b74d9890cb48579e825cb1574dadde5016849ab4
|
[] |
no_license
|
agnelrayan/java
|
b95c89a31f075edfa8c4b4b3ff3c1734da89119a
|
3f6ba7b48320957e0f930e37f910cd041e4121ae
|
refs/heads/master
| 2021-01-01T16:46:57.881527
| 2018-06-08T11:46:20
| 2018-06-08T11:46:20
| 97,918,738
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,120
|
java
|
package com.expertzlab.Basics;
import java.util.Scanner;
/**
* Created by agnel on 3/5/18.
*/
public class SortingDemo {
public static void main(String[] args)
{
Scanner obj = new Scanner(System.in);
System.out.println("Enter the number to sort");
int input = obj.nextInt();
int a[] = new int[input];
System.out.println("Enter all the elements");
for(int i = 0;i<a.length;i++)
{
a[i] = obj.nextInt();
}
System.out.println("Print the given elements");
for(int i = 0;i<a.length;i++){
System.out.println(" " + a[i]);
}
sort(a);
System.out.println("After Sortting..");
for(int i=0;i<a.length;i++){
System.out.println(" "+a[i]);
}
}
public static void sort(int a[]){
for(int i=0;i<a.length-1;i++){
for(int j=0;j<a.length-1;j++){
if(a[j]>a[j+1]){
int temp = a[j];
a[j]=a[j+1];
a[j+1]=temp;
}
}
}
}
}
|
[
"agnelrayan@gmail.com"
] |
agnelrayan@gmail.com
|
18a1ab3339e0bfd1bf081608e056067dc912c7f5
|
a862bde3982a11e8a08739634470cdce15ee3f78
|
/src/main/java/com/neuedu/vo/QinfoVo.java
|
f3ce4675d1f37324e6170ed397395b8670d81664
|
[] |
no_license
|
guoyang123/qinfo-20180927
|
d3289476b40fca376b2ee0e0580b3fde4a9b5370
|
43e3ba4236deae2c90200e4223aa9d898630e46d
|
refs/heads/master
| 2020-03-30T00:39:44.746565
| 2018-10-18T01:04:19
| 2018-10-18T01:04:19
| 150,535,880
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,454
|
java
|
package com.neuedu.vo;
import java.io.Serializable;
/**
* 创建问卷后返回前端的vo类
*
* */
public class QinfoVo implements Serializable {
private String qno;//编号
private String qtitle;//问卷标题
private String result;// 1:succ 0:fail
private String message;//失败信息
public QinfoVo() {
}
public QinfoVo(String qno, String qtitle, String result, String message) {
this.qno = qno;
this.qtitle = qtitle;
this.result = result;
this.message = message;
}
public String getQno() {
return qno;
}
public void setQno(String qno) {
this.qno = qno;
}
public String getQtitle() {
return qtitle;
}
public void setQtitle(String qtitle) {
this.qtitle = qtitle;
}
public String getResult() {
return result;
}
public void setResult(String result) {
this.result = result;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
@Override
public String toString() {
return "QinfoVo{" +
"qno='" + qno + '\'' +
", qtitle='" + qtitle + '\'' +
", result='" + result + '\'' +
", message='" + message + '\'' +
'}';
}
}
|
[
"3137772593@qq.com"
] |
3137772593@qq.com
|
43630e57008c6d3e6b82e4c2e5d23082390366b2
|
677aaa5f4626b8c23e0bee07fb3ae80972386ad6
|
/src/main/java/com/reign/framework/msgpack/ResponseList.java
|
d746b41b9a71117a69ead85b6288a1fe8fc9d794
|
[] |
no_license
|
WenXiangWu/reign_framework
|
faa9029c5adcde9bcfd4135545bae6ffa61b9dd7
|
7e28931d511002594e3b74250091c4d93f3bc2f5
|
refs/heads/master
| 2023-04-16T05:16:37.971872
| 2021-04-29T12:37:59
| 2021-04-29T12:37:59
| 355,860,515
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 181
|
java
|
package com.reign.framework.msgpack;
/**
* @ClassName: ResponseList
* @Description: TODO
* @Author: wuwx
* @Date: 2021-04-08 18:18
**/
public class ResponseList {
}
|
[
"280971337@qq.com"
] |
280971337@qq.com
|
36756fabc95e7c923a8c15836f1844bad7b696e2
|
01dfb27f1288a9ed62f83be0e0aeedf121b4623a
|
/Cadastros/src/java/com/t2tierp/cadastros/servidor/PaisGridAction.java
|
cc0e57f125b31bdff074d8b953d788f1a7a2701e
|
[
"MIT"
] |
permissive
|
FabinhuSilva/T2Ti-ERP-2.0-Java-OpenSwing
|
deb486a13c264268d82e5ea50d84d2270b75772a
|
9531c3b6eaeaf44fa1e31b11baa630dcae67c18e
|
refs/heads/master
| 2022-11-16T00:03:53.426837
| 2020-07-08T00:36:48
| 2020-07-08T00:36:48
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,133
|
java
|
/*
* The MIT License
*
* Copyright: Copyright (C) 2014 T2Ti.COM
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
* The author may be contacted at: t2ti.com@gmail.com
*
* @author Claudio de Barros (T2Ti.com)
* @version 2.0
*/
package com.t2tierp.cadastros.servidor;
import com.t2tierp.padrao.servidor.HibernateUtil;
import com.t2tierp.padrao.java.Constantes;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.hibernate.Session;
import org.hibernate.type.Type;
import org.openswing.swing.message.receive.java.ErrorResponse;
import org.openswing.swing.message.receive.java.Response;
import org.openswing.swing.message.send.java.GridParams;
import org.openswing.swing.server.Action;
import org.openswing.swing.server.UserSessionParameters;
import org.openswing.swing.util.server.HibernateUtils;
public class PaisGridAction implements Action {
public PaisGridAction() {
}
public String getRequestName() {
return "paisGridAction";
}
public Response executeCommand(Object inputPar, UserSessionParameters userSessionPars, HttpServletRequest request, HttpServletResponse response, HttpSession userSession, ServletContext context) {
GridParams pars = (GridParams) inputPar;
Integer acao = (Integer) pars.getOtherGridParams().get("acao");
switch (acao) {
case Constantes.LOAD: {
return load(inputPar, userSessionPars, request, response, userSession, context);
}
case Constantes.INSERT: {
return insert(inputPar, userSessionPars, request, response, userSession, context);
}
case Constantes.UPDATE: {
return update(inputPar, userSessionPars, request, response, userSession, context);
}
case Constantes.DELETE: {
return delete(inputPar, userSessionPars, request, response, userSession, context);
}
}
return null;
}
private Response load(Object inputPar, UserSessionParameters userSessionPars, HttpServletRequest request, HttpServletResponse response, HttpSession userSession, ServletContext context) {
Session session = null;
GridParams pars = (GridParams) inputPar;
String baseSQL = "select PAIS from com.t2tierp.cadastros.java.PaisVO as PAIS";
try {
session = HibernateUtil.getSessionFactory().openSession();
Response res = HibernateUtils.getBlockFromQuery(
pars.getAction(),
pars.getStartPos(),
Constantes.TAMANHO_BLOCO, // block size...
pars.getFilteredColumns(),
pars.getCurrentSortedColumns(),
pars.getCurrentSortedVersusColumns(),
com.t2tierp.cadastros.java.PaisVO.class,
baseSQL,
new Object[0],
new Type[0],
"PAIS",
HibernateUtil.getSessionFactory(),
session);
return res;
} catch (Exception ex) {
ex.printStackTrace();
return new ErrorResponse(ex.getMessage());
} finally {
try {
session.close();
} catch (Exception ex1) {
}
}
}
public Response insert(Object inputPar, UserSessionParameters userSessionPars, HttpServletRequest request, HttpServletResponse response, HttpSession userSession, ServletContext context) {
return null;
}
public Response update(Object inputPar, UserSessionParameters userSessionPars, HttpServletRequest request, HttpServletResponse response, HttpSession userSession, ServletContext context) {
return null;
}
public Response delete(Object inputPar, UserSessionParameters userSessionPars, HttpServletRequest request, HttpServletResponse response, HttpSession userSession, ServletContext context) {
return null;
}
}
|
[
"claudiobsi@gmail.com"
] |
claudiobsi@gmail.com
|
65861d8b723c6e094268eebcd7c9db72afb1df68
|
7fcf829950af5f7ff28f5085a122cb2f1c130e05
|
/src/main/java/com/mindedu/api/util/DateUtils.java
|
f7597e79c0507b1eafee26c85ec8c077eea20311
|
[] |
no_license
|
deepstudyDev/mindedu-api
|
71b1c636a3fa489e97deb302874c436866bc7ee5
|
b6900516bed3ca86e2afd7666f7d0f78690f0e65
|
refs/heads/master
| 2020-04-07T19:37:17.990314
| 2018-11-22T07:05:59
| 2018-11-22T07:05:59
| 158,627,608
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,231
|
java
|
package com.mindedu.api.util;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import java.util.Date;
public class DateUtils {
public final static DateTimeZone UTC_TIME_ZONE = DateTimeZone.UTC;
public final static String DF_TIME_PATTERN = "yyyy-MM-dd HH:mm:ss";
/**
* 데이트 객체를 패턴에 따라 문자로 변환한다.
*
* @param date 데이트 객체.
* @param pattern 문자열 패턴
* @return 패턴화 문자.
*/
public static String dateToStr(Date date, String pattern, DateTimeZone timeZone){
if(date == null){
return null;
}
DateTime dt = new DateTime(date, timeZone);
return dt.toString(pattern);
}
/**
* 현재 시각의 데이트 객체를 반환한다.
* @return
*/
public static Date now() {
DateTime dateTime = new DateTime();
return dateTime.toDate();
}
public static String nowToStrUTC() {
DateTime dt = new DateTime(now(), UTC_TIME_ZONE);
return dt.toString(DF_TIME_PATTERN);
}
public static void main(String[] args) {
System.out.println(nowToStrUTC());
//System.out.println(dateToStr(d));
}
}
|
[
"admin@ideepstudy.com"
] |
admin@ideepstudy.com
|
0306f64c1be1e317773ed5241d06417498476c86
|
e682fa3667adce9277ecdedb40d4d01a785b3912
|
/internal/fischer/mangf/A121022.java
|
0ed2c787e708751b9d93678d1e1d95f6195736b2
|
[
"Apache-2.0"
] |
permissive
|
gfis/joeis-lite
|
859158cb8fc3608febf39ba71ab5e72360b32cb4
|
7185a0b62d54735dc3d43d8fb5be677734f99101
|
refs/heads/master
| 2023-08-31T00:23:51.216295
| 2023-08-29T21:11:31
| 2023-08-29T21:11:31
| 179,938,034
| 4
| 1
|
Apache-2.0
| 2022-06-25T22:47:19
| 2019-04-07T08:35:01
|
Roff
|
UTF-8
|
Java
| false
| false
| 719
|
java
|
package irvine.oeis.a121;
import irvine.math.z.Z;
import irvine.oeis.Sequence;
/**
* A121022 Even numbers containing a 2 in their decimal representation.
* @author Georg Fischer
*/
public class A121022 implements Sequence {
private Z mN;
private String mMultS;
private int mMult;
/** Construct the sequence. */
public A121022() {
this(2);
}
/**
* Generic constructor with parameters
* @param mult
*/
public A121022(final int mult) {
mN = Z.valueOf(-mult);
mMult = mult;
mMultS = String.valueOf(mult);
}
@Override
public Z next() {
while (true) {
mN = mN.add(mMult);
if (mN.toString().indexOf(mMultS) >= 0) {
return mN;
}
}
}
}
|
[
"dr.Georg.Fischer@gmail.com"
] |
dr.Georg.Fischer@gmail.com
|
4ddb68d90e0994367bcd4b4e29c9dceacb587caf
|
16bacd6ef5d524c9c0fe99f32f2d2403d43b3aec
|
/instrument-simulator/system-modules/instrument-simulator-debug-model/src/main/java/com/shulie/instrument/simulator/module/model/trace2/StackEvent.java
|
7f8623a9cdede3f02424770d71220739ebcb4573
|
[
"Apache-2.0"
] |
permissive
|
shulieTech/LinkAgent
|
cbcc9717d07ea636e791ebafe84aced9b03730e8
|
73fb7cd6d86fdce5ad08f0623c367b407e405d76
|
refs/heads/main
| 2023-09-02T11:21:57.784204
| 2023-08-31T07:02:01
| 2023-08-31T07:02:01
| 362,708,051
| 156
| 112
|
Apache-2.0
| 2023-09-13T02:24:11
| 2021-04-29T06:05:47
|
Java
|
UTF-8
|
Java
| false
| false
| 756
|
java
|
/**
* Copyright 2021 Shulie Technology, Co.Ltd
* Email: shulie@shulie.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,
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.shulie.instrument.simulator.module.model.trace2;
/**
* @author jirenhe | jirenhe@shulie.io
* @since 2021/08/11 2:33 下午
*/
public enum StackEvent {
METHOD_CALL,
LINE_CALL
}
|
[
"jirenhe@shulie.io"
] |
jirenhe@shulie.io
|
9fbdea51b54ff0017771e7bbfed44b4e6079b6be
|
4cc6fb1fde80a1730b660ba5ec13ad5f3228ea5c
|
/java-lihongjie/apache-kafka/spring-boot-with-spring-kafka-example/spring-boot-kafka-producer/src/main/java/com/example/lihongjie/kafka/SpringKafkaProducer.java
|
14865dc56dd3eaec89acee7a545f79216e1b52f1
|
[
"MIT"
] |
permissive
|
lihongjie/tutorials
|
c598425b085549f5f7a29b1c7bf0c86ae9823c94
|
c729ae0eac90564e6366bc4907dcb8a536519956
|
refs/heads/master
| 2023-08-19T05:03:23.754199
| 2023-08-11T08:25:29
| 2023-08-11T08:25:29
| 124,048,964
| 0
| 0
|
MIT
| 2018-04-01T06:26:19
| 2018-03-06T08:51:04
|
Java
|
UTF-8
|
Java
| false
| false
| 1,007
|
java
|
package com.example.lihongjie.kafka;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.util.concurrent.ListenableFuture;
import java.util.UUID;
/**
* 生产者
* 使用@EnableScheduling注解开启定时任务,每秒发送一次。
*/
@Component
@EnableScheduling
public class SpringKafkaProducer {
@Autowired
private KafkaTemplate kafkaTemplate;
@Scheduled(cron = "00/1 * * * * ?")
public void send() {
String message = UUID.randomUUID().toString();
ListenableFuture future = kafkaTemplate.send("app_log", "test", message);
future.addCallback(o -> System.out.println("send-消息发送成功: " + message), throwable -> System.out.println("消息发送失败: " + message));
}
}
|
[
"you@example.com"
] |
you@example.com
|
c69b33bb2597ed29eeb490f27ff00f5e2232e906
|
ed5159d056e98d6715357d0d14a9b3f20b764f89
|
/test/irvine/oeis/a002/A002082Test.java
|
e63173bddbeea187a078a3581ae34d11c8aa814a
|
[] |
no_license
|
flywind2/joeis
|
c5753169cf562939b04dd246f8a2958e97f74558
|
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
|
refs/heads/master
| 2020-09-13T18:34:35.080552
| 2019-11-19T05:40:55
| 2019-11-19T05:40:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 195
|
java
|
package irvine.oeis.a002;
import irvine.oeis.AbstractSequenceTest;
/**
* Tests the corresponding class.
* @author Sean A. Irvine
*/
public class A002082Test extends AbstractSequenceTest {
}
|
[
"sairvin@gmail.com"
] |
sairvin@gmail.com
|
43ffa45e53be88b99f44c6b380dd1aeaa294a284
|
8a59fc6208231e2d7843e523cfdc9a3a362813b4
|
/org.caleydo.view.stratomex/src/org/caleydo/view/stratomex/brick/IContextMenuBrickFactory.java
|
770c6ce43b4ec0f3270b5c8d4fd5f4518e06074b
|
[] |
no_license
|
Caleydo/caleydo
|
17c51b10a465512a0c077e680da648d9a6061136
|
c2f1433baf5bd2c0c5bea8c0990d67e946ed5412
|
refs/heads/develop
| 2020-04-07T06:26:03.464510
| 2016-12-15T17:07:08
| 2016-12-15T17:07:08
| 9,451,506
| 37
| 11
| null | 2016-12-15T17:07:08
| 2013-04-15T15:13:38
|
Java
|
UTF-8
|
Java
| false
| false
| 1,075
|
java
|
/*******************************************************************************
* Caleydo - Visualization for Molecular Biology - http://caleydo.org
* Copyright (c) The Caleydo Team. All rights reserved.
* Licensed under the new BSD license, available at http://caleydo.org/license
******************************************************************************/
package org.caleydo.view.stratomex.brick;
import org.caleydo.core.data.perspective.table.TablePerspective;
import org.caleydo.core.view.contextmenu.AContextMenuItem;
import org.caleydo.view.stratomex.column.BrickColumn;
/**
* extension point interface for creating context menu entries for the gl brick used for triggering scoring
*
* @author Samuel Gratzl
*
*/
public interface IContextMenuBrickFactory {
public static final String EXTENSION_ID = "org.caleydo.view.stratomex.brick.contextmenu";
public Iterable<AContextMenuItem> createGroupEntries(BrickColumn referenceColumn, TablePerspective groupTable);
public Iterable<AContextMenuItem> createStratification(BrickColumn referenceColumn);
}
|
[
"marc.streit@jku.at"
] |
marc.streit@jku.at
|
f8bd21c1c0f172640f2502a08c7f556502a60317
|
3e176296759f1f211f7a8bcfbba165abb1a4d3f1
|
/gosu-core/src/main/java/gw/internal/gosu/parser/LengthProperty.java
|
5eef03ac7b5f6cbf9cf6b04eec49f2f380f313c9
|
[
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
gosu-lang/old-gosu-repo
|
6335ac90cd0c635fdec6360e3e208ba12ac0a39e
|
48c598458abd412aa9f2d21b8088120e8aa9de00
|
refs/heads/master
| 2020-05-18T03:39:34.631550
| 2014-04-21T17:36:38
| 2014-04-21T17:36:38
| 1,303,622
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,432
|
java
|
/*
* Copyright 2013 Guidewire Software, Inc.
*/
package gw.internal.gosu.parser;
import gw.lang.parser.Keyword;
import gw.lang.reflect.IAnnotationInfo;
import gw.lang.reflect.IPresentationInfo;
import gw.lang.reflect.IPropertyAccessor;
import gw.lang.reflect.ITypeInfo;
import gw.lang.reflect.TypeSystem;
import java.beans.IntrospectionException;
import java.beans.PropertyDescriptor;
import java.util.Collections;
import java.util.List;
public class LengthProperty extends JavaPropertyInfo
{
private IPropertyAccessor _accessor;
LengthProperty(ITypeInfo typeInfo) throws IntrospectionException
{
super( typeInfo,
new PropertyDescriptorJavaPropertyDescriptor(new PropertyDescriptor( Keyword.KW_length.toString(), null, null )
{
@Override
public Class getPropertyType()
{
return Integer.TYPE;
}
} , TypeSystem.getCurrentModule()));
_accessor = LengthAccessor.INSTANCE;
}
@Override
public IPropertyAccessor getAccessor()
{
return _accessor;
}
@Override
public IPresentationInfo getPresentationInfo()
{
return IPresentationInfo.Default.GET;
}
@Override
public boolean isPublic()
{
return true;
}
@Override
public boolean isReadable()
{
return true;
}
@Override
public List<IAnnotationInfo> getAnnotations()
{
return Collections.emptyList();
}
}
|
[
"smckinney@guidewire.com"
] |
smckinney@guidewire.com
|
4bdbfcd3d790e5cc43bc106c6713dabe0b4498c5
|
75dceb70fffb1819a935fc015fa1dc3f6073359f
|
/lang_interface/java/com/intel/daal/algorithms/engines/mt2203/Method.java
|
4707ccbb085d1d0c8e0f0c8b622d93e27216162d
|
[
"Apache-2.0",
"Intel"
] |
permissive
|
KalyanovD/daal
|
ae40c16cf0ef6e915c7418227ff8a77390e0ee8e
|
b354b68f83a213102bca6e03d7a11f55ab751f92
|
refs/heads/master
| 2022-06-06T00:47:05.309445
| 2019-11-29T10:46:38
| 2019-11-29T10:46:38
| 210,588,356
| 0
| 0
|
Apache-2.0
| 2019-09-24T12:16:15
| 2019-09-24T11:41:08
| null |
UTF-8
|
Java
| false
| false
| 1,843
|
java
|
/* file: Method.java */
/*******************************************************************************
* Copyright 2014-2019 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
/**
* @defgroup engines_mt2203 Mt2203 engine
* @brief Contains classes for mt2203 engine
* @ingroup engines
* @{
*/
package com.intel.daal.algorithms.engines.mt2203;
import java.lang.annotation.Native;
import com.intel.daal.utils.*;
/**
* <a name="DAAL-CLASS-ALGORITHMS__ENGINES__MCG59__METHOD"></a>
* @brief Available methods for the mt2203 engine
*/
public final class Method {
/** @private */
static {
LibUtils.loadLibrary();
}
private int _value;
/**
* Constructs the method object using the provided value
* @param value Value corresponding to the method object
*/
public Method(int value) {
_value = value;
}
/**
* Returns the value corresponding to the method object
* @return Value corresponding to the method object
*/
public int getValue() {
return _value;
}
@Native private static final int defaultDenseId = 0;
public static final Method defaultDense = new Method(defaultDenseId); /*!< Default: performance-oriented method */
}
/** @} */
|
[
"nikolay.a.petrov@intel.com"
] |
nikolay.a.petrov@intel.com
|
baf1130388430a8c7b9f8419f25d27b63f3bac5d
|
0c286cc11dd867f5ff135b27531fad7b120877b5
|
/datacenter/src/main/java/cn/dataup/datacenter/base/webmvc/initbinder/CustomNumNativeEditor.java
|
e897487ff4170e454ff140ee984894816fa29942
|
[] |
no_license
|
xuyaming0800/collect-datacenter
|
6d17a8d30f7e4fb99a6cf4d5a2d32a1f73ebd3b8
|
a6ef8f7718e345f2413ff29612aafa2739a23f1e
|
refs/heads/master
| 2021-01-09T21:52:04.974364
| 2016-02-29T11:01:09
| 2016-02-29T11:01:09
| 52,782,305
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 607
|
java
|
package cn.dataup.datacenter.base.webmvc.initbinder;
import org.springframework.beans.propertyeditors.CustomNumberEditor;
import org.springframework.util.StringUtils;
@SuppressWarnings("unchecked")
public class CustomNumNativeEditor extends CustomNumberEditor {
public CustomNumNativeEditor(@SuppressWarnings("rawtypes") Class numberClass, boolean allowEmpty)
throws IllegalArgumentException {
super(numberClass, allowEmpty);
}
@Override
public void setAsText(String text) throws IllegalArgumentException {
if (!StringUtils.hasText(text))
return;
else
super.setAsText(text);
}
}
|
[
"xuyaming0800@126.com"
] |
xuyaming0800@126.com
|
36e54172ef9d10b4a7c84ec948bb6f6c0978dc23
|
c11000853905bc9ef61ca27ae916ffac8d82b8ec
|
/pub/assignment_testcases/a3/J1_ambiguousInvoke/Main.java
|
669955948bf9fa80ee32f01ad1a0da7e380341fb
|
[] |
no_license
|
keriwarr/orangejoos
|
0244d381d691fd667bb58e49f6a9d6643b597176
|
de278321e8b72a92ea6b2ddb55e885caec71aaa5
|
refs/heads/master
| 2022-12-10T03:37:07.940721
| 2022-11-17T00:36:10
| 2022-11-17T00:36:10
| 116,432,363
| 0
| 1
| null | 2019-11-23T04:46:41
| 2018-01-05T22:18:39
|
Java
|
UTF-8
|
Java
| false
| false
| 163
|
java
|
// DISAMBIGUATION
import foo.*;
public class Main {
public Main() {}
public static int test() {
Foo foo = new Foo();
foo.test();
return 123;
}
}
|
[
"joey@pereira.io"
] |
joey@pereira.io
|
afb46e8d450ee76fc666e7f59da562cdc0d24c17
|
20eb62855cb3962c2d36fda4377dfd47d82eb777
|
/IntroClassJava/dataset/median/af81ffd4bc47e4f84cbf87051d82d15af14833eaba6c57ae82fc503a67eb939f3e6552182124605c38a77a6774f41fac2cc95082320ba5e29d303277c098c4ae/007/mutations/386/median_af81ffd4_007.java
|
c71a4813f54f815f15b742f9363053e747690653
|
[] |
no_license
|
ozzydong/CapGen
|
356746618848065cce4e253e5d3c381baa85044a
|
0ba0321b6b1191443276021f1997833342f02515
|
refs/heads/master
| 2023-03-18T20:12:02.923428
| 2020-08-21T03:08:28
| 2020-08-21T03:08:28
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,597
|
java
|
package introclassJava;
class IntObj {
public int value;
public IntObj () {
} public IntObj (int i) {
value = i;
}
}
class FloatObj {
public float value;
public FloatObj () {
} public FloatObj (float i) {
value = i;
}
}
class LongObj {
public long value;
public LongObj () {
} public LongObj (long i) {
value = i;
}
}
class DoubleObj {
public double value;
public DoubleObj () {
} public DoubleObj (double i) {
value = i;
}
}
class CharObj {
public char value;
public CharObj () {
} public CharObj (char i) {
value = i;
}
}
public class median_af81ffd4_007 {
public java.util.Scanner scanner;
public String output = "";
public static void main (String[]args) throws Exception {
median_af81ffd4_007 mainClass = new median_af81ffd4_007 ();
String output;
if (args.length > 0) {
mainClass.scanner = new java.util.Scanner (args[0]);
} else {
mainClass.scanner = new java.util.Scanner (System.in);
}
mainClass.exec ();
System.out.println (mainClass.output);
}
public void exec () throws Exception {
DoubleObj first = new DoubleObj (), second = new DoubleObj (), third =
new DoubleObj ();
DoubleObj median = new DoubleObj ();
DoubleObj comp_fir = new DoubleObj (), comp_sec =
new DoubleObj (), comp_thi = new DoubleObj ();
output +=
(String.format ("Please enter 3 numbers separated by spaces > "));
first.value = scanner.nextDouble ();
second.value = scanner.nextDouble ();
third.value = scanner.nextDouble ();
median.value = (first.value + second.value + (second.value) - (median.value)) / 3;
comp_fir.value = Math.abs (first.value - median.value);
comp_sec.value = Math.abs (second.value - median.value);
comp_thi.value = Math.abs (third.value - median.value);
if (comp_fir.value < comp_sec.value && comp_fir.value < comp_thi.value) {
output += (String.format ("%.0f is the median\n", first.value));
} else if (comp_sec.value < comp_fir.value
&& comp_sec.value < comp_thi.value) {
output += (String.format ("%.0f is the median\n", second.value));
} else if (comp_thi.value < comp_fir.value
&& comp_thi.value < comp_sec.value) {
output += (String.format ("%.0f is the median\n", third.value));
}
if (true)
return;;
}
}
|
[
"justinwm@163.com"
] |
justinwm@163.com
|
adf9322d8d613abad97c9d62327e62f7d5842425
|
1a50414163ef0cf9f20df7bcbeca074a7de80b2e
|
/src/main/java/com/googlecode/jdeltasync/InMemoryStore.java
|
d22082336a4dab97c6db25bb2b965dfc186bf7bf
|
[] |
no_license
|
ScottDennison/jdeltasync
|
15c65b099815b1859c3de1de1f9e5af739972fdb
|
ba269c4b1b992d7df6c22b288445a7e10d8ac80c
|
refs/heads/master
| 2021-01-18T11:21:31.849764
| 2015-12-03T14:14:54
| 2015-12-03T14:14:54
| 12,891,435
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,163
|
java
|
/*
* Copyright (c) 2012, the JDeltaSync project. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.googlecode.jdeltasync;
import java.util.HashMap;
import java.util.Map;
/**
* Simple {@link Store} implementation which saves the data in memory only.
*/
public class InMemoryStore extends AbstractStore {
private Map<String, State> states = new HashMap<String, State>();
protected State getState(String username) {
State state = states.get(username);
if (state == null) {
state = new State();
states.put(username, state);
}
return state;
}
}
|
[
"niklas@therning.org"
] |
niklas@therning.org
|
7114bc4e84c5f51f34a636f7111e6f6606032725
|
441b16d5861b8239644007c3b64d56bdfd67bb92
|
/plugins/org.eclipse.osee.orcs.db/src/org/eclipse/osee/orcs/db/internal/sql/WithClause.java
|
7401bb95470be264a886681f96eac7dc62d29052
|
[] |
no_license
|
sec00/osee-4
|
baf9713306c7bfd6f5a12a153acb083bbdb2ce77
|
4644522f12d0e2a887434d09dffa55d32ed45f15
|
refs/heads/master
| 2021-05-19T04:04:07.608109
| 2018-11-15T23:29:55
| 2018-11-15T23:31:32
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 750
|
java
|
/*******************************************************************************
* Copyright (c) 2013 Boeing.
* 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:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.orcs.db.internal.sql;
/**
* @author John R. Misinco
*/
public interface WithClause {
String getName();
String getBody();
String getParameters();
boolean isRecursive();
boolean hasParameters();
}
|
[
"roberto.e.escobar@boeing.com"
] |
roberto.e.escobar@boeing.com
|
acba62980d291577a1c53fcc38c76bfb8ce87a00
|
71007018bfae36117fd2f779dbe6e6d7bb9bde9c
|
/src/main/java/com/magento/test/dao/SearchQueryDao.java
|
8b154014206f3f06ce577fb585a428ff4c6af893
|
[] |
no_license
|
gmai2006/magentotest
|
819201760b720a90d55ef853be964651ace125ac
|
ca67d16d6280ddaefbf57fa1129b6ae7bd80408f
|
refs/heads/main
| 2023-09-03T05:14:27.788984
| 2021-10-17T06:25:09
| 2021-10-17T06:25:09
| 418,040,494
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,798
|
java
|
/**
* %% Copyright (C) 2021 DataScience 9 LLC %% 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
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
*
* <p>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. #L%
*
* <p>This code is 100% AUTO generated. Please do not modify it DIRECTLY If you need new features or
* function or changes please update the templates then submit the template through our web
* interface.
*/
package com.magento.test.dao;
import java.util.List;
import com.magento.test.entity.SearchQuery;
import com.magento.test.entity.SearchQueryId;
public interface SearchQueryDao {
/**
* Retrieve all records SearchQuery.
*
* @param maxResult a maximum number of returned records.
* @return A list of SearchQuery
*/
public List<SearchQuery> select(int maxResult);
/**
* Retrieve all records SearchQuery.
*
* @return A list of SearchQuery
*/
public List<SearchQuery> selectAll();
/**
* Find an entity.
*
* @param id An SearchQuery id.
* @return The same SearchQuery.
*/
public SearchQuery find(SearchQueryId id);
/**
* Create an SearchQuery.
*
* @param e the SearchQuery.
* @return The same SearchQuery.
*/
public SearchQuery create(SearchQuery e);
/**
* Update the SearchQuery.
*
* @param e the SearchQuery.
* @return The same SearchQuery.
*/
public SearchQuery update(SearchQuery e);
}
|
[
"gmai2006@gmail.com"
] |
gmai2006@gmail.com
|
cf93b45b6b05bc1e01506bf860fcdc7a55eaa01b
|
21d8b8665162b23b590222b0d1d19d1a824a790e
|
/core/camel-support/src/main/java/org/apache/camel/support/startup/LoggingStartupStepRecorder.java
|
3c73db0dfc18813e1ee336c3a5cfb0374a2cf052
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown"
] |
permissive
|
jmcabandara/camel
|
62a023ea7f0411f349a8cf991038eca5685e0d13
|
17c7bb2949b0c32ba095672bb99d64f19c924235
|
refs/heads/main
| 2023-06-21T00:42:13.793646
| 2021-07-30T14:03:24
| 2021-07-30T14:03:30
| 391,157,772
| 2
| 0
|
Apache-2.0
| 2021-07-30T18:25:07
| 2021-07-30T18:25:06
| null |
UTF-8
|
Java
| false
| false
| 2,166
|
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.camel.support.startup;
import java.util.Arrays;
import org.apache.camel.StartupStep;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Logging {@link org.apache.camel.spi.StartupStepRecorder} that outputs to log.
*/
public class LoggingStartupStepRecorder extends DefaultStartupStepRecorder {
private static final Logger LOG = LoggerFactory.getLogger(LoggingStartupStepRecorder.class);
public LoggingStartupStepRecorder() {
setEnabled(true);
}
protected void onEndStep(StartupStep step) {
if (LOG.isInfoEnabled()) {
long delta = System.currentTimeMillis() - step.getBeginTime();
String pad = padString(step.getLevel());
String out = String.format("%s", pad + step.getType());
String out2 = String.format("%6s ms", delta);
String out3 = String.format("%s(%s)", step.getDescription(), step.getName());
LOG.info("{} : {} - {}", out2, out, out3);
}
}
public static String padString(int level) {
if (level == 0) {
return "";
} else {
byte[] arr = new byte[level * 2];
byte space = ' ';
Arrays.fill(arr, space);
return new String(arr);
}
}
@Override
public String toString() {
return "logging";
}
}
|
[
"claus.ibsen@gmail.com"
] |
claus.ibsen@gmail.com
|
f8611d6e2de921b16188262fa91f8fb33b186fae
|
b5072176b1ed92fb5c3db80b41c5d060142c3af0
|
/BookstoreJSP/src/com/vietjack/controller/BookStoreControllerServlet.java
|
4045e2685afee6c90a1d0964282e0f2f2bb110d2
|
[] |
no_license
|
Nguyet21/Bookstore
|
f563f9ef3c853021133e34e1cb57b3a6c351107a
|
f5018c6816edb27c874708f5a83bd54380cd5a01
|
refs/heads/master
| 2020-04-21T23:28:03.485829
| 2019-02-10T06:14:36
| 2019-02-10T06:14:36
| 169,947,652
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,479
|
java
|
package com.vietjack.controller;
import java.io.IOException;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.vietjack.core.Author;
import com.vietjack.core.Category;
import com.vietjack.dao.AuthorDao;
import com.vietjack.dao.BookDao;
import com.vietjack.dao.CategoryDao;
/**
* Servlet implementation class BookControllerServlet
*/
@WebServlet("/BookStoreControllerServlet")
public class BookStoreControllerServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
public static CategoryDao categoryDAO = new CategoryDao();
public static AuthorDao authorDAO = new AuthorDao();
public static BookDao bookDAO = new BookDao();
SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy");
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
try {
// read the "command" parameter
String theCommand = request.getParameter("command");
// if the command is missing, then default to listing Books
if (theCommand == null) {
theCommand = "LIST";
}
// route to the appropriate method
switch (theCommand) {
case "TOP_AUTHOR_REVENUE":
topAuthorByRevenue(request, response);
break;
case "TOP_CATEGORY_REVENUE":
topCategoryByRevenue(request, response);
break;
default:
showAll(request, response);
}
} catch (Exception exc) {
throw new ServletException(exc);
}
}
public static void topCategoryByRevenue(HttpServletRequest request, HttpServletResponse response) throws Exception {
try {
ArrayList<Category> categoryList = categoryDAO.findAllCatergory();
Collections.sort(categoryList, Category.compare);
System.out.println("Top Category by revenue");
request.setAttribute("category_List", categoryList);
RequestDispatcher dispatcher =
request.getRequestDispatcher("/report/category_revenue.jsp");
try {
dispatcher.forward(request, response);
} catch (ServletException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
public static void topAuthorByRevenue(HttpServletRequest request, HttpServletResponse response) throws Exception {
try {
ArrayList<Author> authorList = authorDAO.findAllAuthor();
Collections.sort(authorList, Author.compare);
System.out.println("Top Category by revenue");
request.setAttribute("author_List", authorList);
RequestDispatcher dispatcher =
request.getRequestDispatcher("/report/author_revenue.jsp");
try {
dispatcher.forward(request, response);
} catch (ServletException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
public static void showAll(HttpServletRequest request, HttpServletResponse response) throws Exception {
try {
ArrayList<Category> categoryList = categoryDAO.findAllCatergory();
Collections.sort(categoryList, Category.compare);
System.out.println("Top Category by revenue");
request.setAttribute("category_List", categoryList);
ArrayList<Author> authorList = authorDAO.findAllAuthor();
Collections.sort(authorList, Author.compare);
System.out.println("Top Author by revenue");
request.setAttribute("author_List", authorList);
RequestDispatcher dispatcher =
request.getRequestDispatcher("/report/index.jsp");
try {
dispatcher.forward(request, response);
} catch (ServletException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
|
[
"="
] |
=
|
5cf9da9ef8e6ba6ee1cc5b28c85432859ad7e9bc
|
86554657d10facc2779d9fd7313515b2f7b4b74e
|
/Alpha_classwork/src/com/alpha/db/UserRepository.java
|
8e5811e9d244a91ac6cba80c8bfd75467f4a3569
|
[] |
no_license
|
MadhuHS/ClassWork_BEC_M50_E42
|
abcc62d7c8c8371b28148933b54780fe1a5aa917
|
458eda2c956d43dd1d4fd14d4cc9730495370411
|
refs/heads/master
| 2023-09-06T09:50:54.909394
| 2021-11-02T06:06:47
| 2021-11-02T06:06:47
| 413,649,038
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 201
|
java
|
package com.alpha.db;
import com.alpha.entities.User;
public interface UserRepository extends Repository
{
public void insertUser(User usr);
public User selectUser(String email,String password);
}
|
[
"madhuhs943@gmail.com"
] |
madhuhs943@gmail.com
|
f58e1a6254507625bd9c054f351467d7a25cacef
|
e8d3fc2eeffc0f41d5491dd861c32de165226692
|
/app/src/main/java/com/youngcreate/gitdroid/github/hotuser/HotUserPresenter.java
|
d13550f6bc0870cbf1a3b48bd2805449b4b69d9c
|
[] |
no_license
|
youngcreate/GitDroid
|
529c830870cc8d9b9781eb395f4a62eb1671f643
|
632abde1af9f58abbaea9e4c0189dad6fd5a6d13
|
refs/heads/master
| 2020-12-25T15:18:19.209471
| 2016-08-09T14:37:15
| 2016-08-09T14:37:15
| 64,309,559
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,952
|
java
|
package com.youngcreate.gitdroid.github.hotuser;
import com.youngcreate.gitdroid.github.login.model.User;
import com.youngcreate.gitdroid.github.network.GitHubClient;
import java.util.List;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
/**
* Created by Administrator on 16-8-3.
*/
public class HotUserPresenter {
//热门用户视图接口
public interface HotUserView {
void showRefreshView();
void hideRefreshView();
void refreshData(List<User> datas);
void showLoadMoreView();
void hideLoadMoreView();
void addMoreData(List<User> datas);
}
public HotUserPresenter(HotUserView hotUserView) {
this.hotUserView = hotUserView;
}
private HotUserView hotUserView;
private Call<UsersResult> usersResultCall;
private int nextPage = 0;
/**
* 下拉刷新
*/
public void refresh() {
hotUserView.hideLoadMoreView();
hotUserView.showRefreshView();
nextPage = 1;
if (usersResultCall != null) {
usersResultCall.cancel();
}
usersResultCall = GitHubClient.getInstance().searchUsers("followers:" + ">1000", nextPage);
usersResultCall.enqueue(ptrCallBack);
}
/**
* 上拉加载更多
*/
public void loadMore() {
hotUserView.showLoadMoreView();
if (usersResultCall != null) {
usersResultCall.cancel();
}
usersResultCall = GitHubClient.getInstance().searchUsers("followers:" + ">1000", nextPage);
usersResultCall.enqueue(loadMoreCallBack);
}
private Callback<UsersResult> ptrCallBack = new Callback<UsersResult>() {
@Override
public void onResponse(Call<UsersResult> call, Response<UsersResult> response) {
hotUserView.hideRefreshView();
//得到响应结果
UsersResult usersResult = response.body();
if (usersResult == null) {
return;
}
//将列表数据交付给“视图”去处理
hotUserView.refreshData(usersResult.getUserList());
nextPage = 2;
}
@Override
public void onFailure(Call<UsersResult> call, Throwable t) {
}
};
private Callback<UsersResult> loadMoreCallBack = new Callback<UsersResult>() {
@Override
public void onResponse(Call<UsersResult> call, Response<UsersResult> response) {
hotUserView.hideLoadMoreView();
//得到响应结果
UsersResult usersResult = response.body();
if (usersResult == null) {
return;
}
//将列表数据交付给“视图”去处理
hotUserView.addMoreData(usersResult.getUserList());
nextPage++;
}
@Override
public void onFailure(Call<UsersResult> call, Throwable t) {
}
};
}
|
[
"l"
] |
l
|
b653b425e3feb4bfad42c0bede3ba7993584a088
|
d74c2ca437a58670dc8bfbf20a3babaecb7d0bea
|
/SAP_858310_lines/Source - 963k/js.webservices.service/dev/src/_tc~je~webservices/java/com/sap/engine/services/webservices/runtime/statelesstable.java
|
99856b6ef67f57f30887dca223572c0b339b3415
|
[] |
no_license
|
javafullstackstudens/JAVA_SAP
|
e848e9e1a101baa4596ff27ce1aedb90e8dfaae8
|
f1b826bd8a13d1432e3ddd4845ac752208df4f05
|
refs/heads/master
| 2023-06-05T20:00:48.946268
| 2021-06-30T10:07:39
| 2021-06-30T10:07:39
| 381,657,064
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,974
|
java
|
package com.sap.engine.services.webservices.runtime;
import java.util.Enumeration;
import javax.ejb.EJBObject;
import com.sap.engine.lib.util.HashMapObjectObject;
import com.sap.engine.services.timeout.TimeoutListener;
import com.sap.engine.services.webservices.exceptions.WSLogging;
import com.sap.engine.services.webservices.tools.InstancesPool;
import com.sap.tc.logging.Location;
import com.sap.tc.logging.Severity;
/**
* Copyright (c) 2002 by SAP Labs Sofia.,
* All rights reserved.
*
* Description:
* @author Dimiter Angelov
* @version 6.30
*/
public class StatelessTable implements TimeoutListener {
private HashMapObjectObject hashTable = new HashMapObjectObject();
public synchronized InstancesPool getPool(String key) {
InstancesPool pool = (InstancesPool) hashTable.get(key);
if (pool != null) {
return pool;
} else {
pool = new InstancesPool();
hashTable.put(key, pool);
return pool;
}
}
public void rollBackInstance(InstanceWrapper instance) {
//in case exception has occured before obtaining instance
if (instance == null) {
return;
}
InstancesPool pool = instance.getOwnerPool();
pool.rollBackInstance(instance);
}
public synchronized Enumeration keys() {
return this.hashTable.keys();
}
public synchronized InstancesPool get(String key) {
return (InstancesPool) this.hashTable.get(key);
}
public boolean check() {
return true;
}
public void timeout() {
InstanceWrapper instWrapper;
InstancesPool pool;
Object[] keys;
long endTime = System.currentTimeMillis();
synchronized (this) {
keys = hashTable.getAllKeys(); //the currect key content
}
//!!!!It is not synchnized to hashtable. The new added entries while onTime() goes won't be process
for (int i = 0; i < keys.length; i++) {
pool = this.get((String) keys[i]);
synchronized (pool) { //locking the pool while is checking not to be used
for (int j = 0; j < pool.size(); j++) {
instWrapper = (InstanceWrapper) pool.get(j);
if ( (endTime - instWrapper.getLastActiveTime()) > instWrapper.getSessionTimeout()) {
//removing it from the pool
Location loc = (instWrapper.logLocation != null) ? instWrapper.logLocation : Location.getLocation(WSLogging.RUNTIME_LOCATION);
try {
pool.remove(j--);
//removing object
Object obj = instWrapper.getInstance();
if (obj instanceof EJBObject) {
((EJBObject) obj).remove();
}
loc.logT(Severity.PATH, "Removing stateless instance: " + instWrapper.getInstance() + " from pool " + instWrapper.getCacheKey());
} catch (Exception e) {
loc.catching("Exception in removing stateless object: [" + instWrapper.getInstance() + "]", e);
}
}
}
}
} //end for
}
}
|
[
"Yalin.Arie@checkmarx.com"
] |
Yalin.Arie@checkmarx.com
|
b23b73e45b7155bb3078c13b22adff04123bfbd6
|
2a317cd5006075eeb8e9b282de69734aa6e2daf8
|
/com.bodaboda_source_code/sources/com/google/android/gms/games/internal/game/ExtendedGameBuffer.java
|
d5cca9b5b302bd2de9e504dc08ca033d728f684b
|
[] |
no_license
|
Akuku25/bodaapp
|
ee1ed22b0ad05c11aa8c8d4595f5b50da338fbe0
|
c4f54b5325d035b54d0288a402558aa1592a165f
|
refs/heads/master
| 2020-04-28T03:52:04.729338
| 2019-03-11T08:24:30
| 2019-03-11T08:24:30
| 174,954,616
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 584
|
java
|
package com.google.android.gms.games.internal.game;
import com.google.android.gms.common.data.DataHolder;
import com.google.android.gms.common.data.zzg;
public final class ExtendedGameBuffer extends zzg<ExtendedGame> {
public ExtendedGameBuffer(DataHolder dataHolder) {
super(dataHolder);
}
protected String zziB() {
return "external_game_id";
}
protected /* synthetic */ Object zzj(int i, int i2) {
return zzn(i, i2);
}
protected ExtendedGame zzn(int i, int i2) {
return new ExtendedGameRef(this.zzMd, i, i2);
}
}
|
[
"wanyama19@gmail.com"
] |
wanyama19@gmail.com
|
4f6232f0bc3c88da827169db873e8a8ea12f3485
|
ed865190ed878874174df0493b4268fccb636a29
|
/PuridiomVendors/src/com/tsa/puridiom/vendorcommrel/tasks/VendorCommRelDeleteByVendor.java
|
08ce58e17d81f946a3e8d5d77a06b0d9086b31f5
|
[] |
no_license
|
zach-hu/srr_java8
|
6841936eda9fdcc2e8185b85b4a524b509ea4b1b
|
9b6096ba76e54da3fe7eba70989978edb5a33d8e
|
refs/heads/master
| 2021-01-10T00:57:42.107554
| 2015-11-06T14:12:56
| 2015-11-06T14:12:56
| 45,641,885
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 848
|
java
|
/*
* Created on July 21, 2004
*/
package com.tsa.puridiom.vendorcommrel.tasks;
import com.tsagate.foundation.database.DBSession;
import com.tsagate.foundation.processengine.Task;
import org.hibernate.Hibernate;
import java.util.Map;
/**
* @author Kelli
*/
public class VendorCommRelDeleteByVendor extends Task {
/* (non-Javadoc)
* @see com.tsagate.puridiom.process.ITask#executeTask(java.lang.Object)
*/
public Object executeTask(Object object) throws Exception {
Map incomingRequest = (Map) object;
DBSession dbs = (DBSession) incomingRequest.get("dbsession") ;
String vendorId = (String)incomingRequest.get("VendorCommRel_vendorId");
String queryString = "from VendorCommRel as v where v.id.vendorId = ?" ;
dbs.delete(queryString, vendorId, Hibernate.STRING) ;
this.setStatus(dbs.getStatus());
return null ;
}
}
|
[
"brickerz@9227675a-84a3-4efe-bc6c-d7b3a3cf6466"
] |
brickerz@9227675a-84a3-4efe-bc6c-d7b3a3cf6466
|
299947b4429ab6a97c5600136acbbbae9677d3bc
|
a419de3efb13d2911e90f6239cc080b6fa9866e6
|
/TwitterDataCollector/src/main/java/pl/edu/agh/ed/twitter/dao/AbstractDAO.java
|
e25afd9ff973d5d19a05487f11834b16692177af
|
[] |
no_license
|
marcinlos/twitter
|
c0138a17b829277989bc485d7cc8b73e0571a7c3
|
6951c6a7666a90fc56ddcb7ec009806db6396dbd
|
refs/heads/master
| 2020-05-31T07:47:19.002229
| 2014-11-02T09:44:52
| 2014-11-02T09:44:52
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,390
|
java
|
package pl.edu.agh.ed.twitter.dao;
import java.io.Serializable;
import java.util.List;
import org.hibernate.ScrollMode;
import org.hibernate.ScrollableResults;
import org.hibernate.Session;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Projections;
import org.hibernate.criterion.Restrictions;
public abstract class AbstractDAO<Id extends Serializable, Entity> implements
DAO<Id, Entity> {
public abstract Session session();
protected abstract Class<Entity> getEntityClass();
@Override
public long count(Criterion... predicates) {
Number n = (Number) session()
.createCriteria(getEntityClass())
.add(Restrictions.and(predicates))
.setProjection(Projections.rowCount())
.uniqueResult();
return n.longValue();
}
@SuppressWarnings("unchecked")
@Override
public List<Entity> getList(Criterion... predicates) {
return (List<Entity>) session()
.createCriteria(getEntityClass())
.add(Restrictions.and(predicates))
.list();
}
@SuppressWarnings("unchecked")
@Override
public List<Entity> getList(int first, int max, Criterion... predicates) {
return (List<Entity>) session()
.createCriteria(getEntityClass())
.add(Restrictions.and(predicates))
.setFirstResult(first)
.setMaxResults(max)
.list();
}
@Override
public ScrollableResults getCursor(ScrollMode mode, Criterion... predicates) {
return session()
.createCriteria(getEntityClass())
.add(Restrictions.and(predicates))
.scroll(mode);
}
@SuppressWarnings("unchecked")
@Override
public Entity get(Id id) {
return (Entity) session().get(getEntityClass(), id);
}
@Override
public void save(Entity entity) {
session().save(entity);
}
@Override
public void merge(Entity entity) {
session().merge(entity);
}
@Override
public void delete(Entity entity) {
session().delete(entity);
}
@Override
public void deleteById(Id id) {
delete(get(id));
}
@Override
public void update(Entity entity) {
session().saveOrUpdate(entity);
}
}
|
[
"losiu99@gazeta.pl"
] |
losiu99@gazeta.pl
|
5781617ae4cfdbf42906dbb2857a2c3922eec799
|
24acbcc7b5ad20d2cea61b2b2b8190befe7f5bce
|
/Blogs/src/algs/blog/multithread/array/MultiThreadDriver.java
|
294cfbd5b2d2e0dcf1b37485e8e1216fd7ae04a8
|
[
"MIT"
] |
permissive
|
heineman/algorithms-nutshell-2ed
|
a08e2136fb3f9199e119a8aebca1be09a02b86f4
|
6bdaf7ee2878f69a2df00ae7a3274f5d43d24605
|
refs/heads/master
| 2022-09-04T20:53:52.422824
| 2021-12-29T02:34:44
| 2021-12-29T02:34:44
| 43,086,309
| 577
| 226
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,419
|
java
|
package algs.blog.multithread.array;
import algs.model.IPoint;
import algs.model.array.IPivotIndex;
import algs.model.array.LastSelector;
import algs.model.array.RandomSelector;
import algs.model.data.points.UniformGenerator;
import algs.model.tests.common.TrialSuite;
import algs.model.tests.common.TrialSuiteHelper;
/**
* Run multiple times through with different number of helper threads.
*
* @author George Heineman
* @version 1.0, 6/1/09
*/
public class MultiThreadDriver {
/** Numbers in range 1 .. 16777216 */
static int BASE = 16777216;
/**
* Run a traditional quick sort implementation.
* <p>
* All incoming points are assumed to be drawn from the unit square.
*
* @param size size of array to construct
* @param set record times using this suite set
* @param pts generated points whose (x,y) vals are used in input set
* @param selector which pivot index method to use.
*/
public static void runTrialNormal (int size, TrialSuite set,
IPoint[]pts, IPivotIndex selector) {
Integer[] ar = new Integer[size];
for (int i = 0, idx = 0; i < pts.length; i++) {
ar[idx++] = (int) (pts[i].getX() * BASE);
ar[idx++] = (int) (pts[i].getY() * BASE);
}
// default
algs.model.array.QuickSort<Integer> qs = new algs.model.array.QuickSort<Integer>(ar);
qs.setPivotMethod(selector);
System.gc();
long start = System.currentTimeMillis();
qs.qsort(0,size-1);
long end = System.currentTimeMillis();
set.addTrial(size, start, end);
for (int i = 0; i < ar.length-1; i++) {
assert (ar[i] <= ar[i+1]);
}
}
/**
* Run a quick sort implementation using a fixed single thread helper.
* <p>
* All incoming points are assumed to be drawn from the unit square.
*
* @param size size of array to construct
* @param set record times using this suite set
* @param pts generated points whose (x,y) vals are used in input set
* @param selector which pivot index method to use.
* @param ratio ratio for setting threshold
*/
public static void runTrialOneHelper (int size, TrialSuite set,
IPoint[]pts, IPivotIndex selector, int ratio) {
Integer[] ar = new Integer[size];
for (int i = 0, idx = 0; i < pts.length; i++) {
ar[idx++] = (int) (pts[i].getX() * BASE);
ar[idx++] = (int) (pts[i].getY() * BASE);
}
// use fixed one-thread helper
QuickSortOneHelper<Integer> qs = new QuickSortOneHelper<Integer>(ar);
qs.setThresholdRatio(ratio);
qs.setPivotMethod(selector);
System.gc();
long start = System.currentTimeMillis();
qs.qsort(0,size-1);
long end = System.currentTimeMillis();
set.addTrial(size, start, end);
for (int i = 0; i < ar.length-1; i++) {
assert (ar[i] <= ar[i+1]);
}
}
/**
* Change the number of helper threads inside to try different configurations.
* <p>
* Set to NUM_THREADS by default.
*
* @param size size of array to construct
* @param set record times using this suite set
* @param pts generated points whose (x,y) vals are used in input set
* @param selector which pivot index method to use.
* @param ratio ratio to use for threshold
* @param numThread number of threads to use
*/
public static void runTrialParallel (int size, TrialSuite set,
IPoint[]pts, IPivotIndex selector, int ratio, int numThread) {
Integer[] ar = new Integer[size];
for (int i = 0, idx = 0; i < pts.length; i++) {
ar[idx++] = (int) (pts[i].getX() * BASE);
ar[idx++] = (int) (pts[i].getY() * BASE);
}
// default
QuickSort<Integer> qs = new QuickSort<Integer>(ar);
qs.setPivotMethod(selector);
qs.setNumberHelperThreads(numThread);
qs.setThresholdRatio(ratio);
System.gc();
long start = System.currentTimeMillis();
qs.qsort(0,size-1);
long end = System.currentTimeMillis();
set.addTrial(size, start, end);
for (int i = 0; i < ar.length-1; i++) {
assert (ar[i] <= ar[i+1]);
}
}
/**
* Actual driver which generates a bunch of tables. Interesting to
* compare selectors of ('first' and 'random') especially with multiple
* threads. It turns out that the cost of using a random-number computation
* is noticeable.
*/
public static void main (String[] args) {
int MAX_R = 21;
int NUM_TRIALS = 20;
UniformGenerator ug = new UniformGenerator();
TrialSuite last = new TrialSuite();
TrialSuite random = new TrialSuite();
TrialSuite[] lastMT = new TrialSuite[MAX_R];
TrialSuite[] randomMT = new TrialSuite[MAX_R];
for (int r = 0; r < MAX_R; r++) {
lastMT[r] = new TrialSuite();
randomMT[r] = new TrialSuite();
}
// Number of trials over sizes from 65536 to 1048576
for (int nt = 1; nt < 10; nt++) {
System.out.println("num thread=" + nt);
for (int size = 65536; size <= 1048576; size *= 2) {
System.out.println (size + "...");
for (int t = 0; t < NUM_TRIALS; t++) {
// create random arrays of given SIZE with range [0 .. 32768]
IPoint[]pts = ug.generate(size/2); // 500 points = 1000 random [0,1] values
// only run first time
if (nt == 1) {
runTrialNormal (size, last, pts, new LastSelector());
runTrialNormal (size, random, pts, new RandomSelector());
}
for (int r = 0; r < MAX_R; r++) {
int ratio = r+1;
if (r == MAX_R-1) {
ratio = Integer.MAX_VALUE;
}
runTrialParallel (size, lastMT[r], pts, new LastSelector(), ratio, nt);
runTrialParallel (size, randomMT[r], pts, new RandomSelector(), ratio, nt);
}
}
}
if (nt == 1) {
// last one always
System.out.println ("LAST");
System.out.println (last.computeTable());
// random one always
System.out.println ("RANDOM");
System.out.println (random.computeTable());
}
// concatenate all together.
String lastT = TrialSuiteHelper.combine(lastMT);
String randomT = TrialSuiteHelper.combine(randomMT);
System.out.println("LAST-ONE-HELPER(r)");
System.out.println(lastT);
System.out.println("RANDOM-ONE-HELPER(r)");
System.out.println(randomT);
}
}
}
|
[
"heineman@cs.wpi.edu"
] |
heineman@cs.wpi.edu
|
0c4e16553c8c5333b706989f518ef4701223be81
|
97e315ae1a4456490f6a30ca58391e9159c356fa
|
/app/src/main/java/appmoviles/com/myapplication/MapsActivity.java
|
9851c64ec7dc032d523eb4cdd0653c7725bba2fd
|
[] |
no_license
|
Domiciano/AyudaLewis
|
e501d39f9e04093d2ab8a3997ecd06944e86b0a6
|
c1bfa887a8260afe0ee5612e0962e68037d225fd
|
refs/heads/master
| 2020-08-06T23:52:11.814475
| 2019-10-06T16:48:50
| 2019-10-06T16:48:50
| 213,206,201
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,020
|
java
|
package appmoviles.com.myapplication;
import androidx.fragment.app.FragmentActivity;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;
import android.os.Bundle;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.OnMapReadyCallback;
import com.google.android.gms.maps.SupportMapFragment;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.MarkerOptions;
public class MapsActivity extends FragmentActivity {
BlankFragment fragment;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_maps);
fragment = new BlankFragment();
FragmentManager manager = getSupportFragmentManager();
FragmentTransaction ft = manager.beginTransaction();
ft.replace(R.id.actvitiyroot,fragment);
ft.commit();
}
}
|
[
"domiciano.rincon@correounivalle.edu.co"
] |
domiciano.rincon@correounivalle.edu.co
|
e4b04f5d2a7d9d59d2af2e6bcf65a582aa8a0b93
|
e96172bcad99d9fddaa00c25d00a319716c9ca3a
|
/plugin/src/test/resources/codeInsight/daemonCodeAnalyzer/quickFix/genericCreateFromUsage/after2.java
|
cdfc6cc67e2eece775df6bcc44dbaf72db1a507f
|
[
"Apache-2.0"
] |
permissive
|
consulo/consulo-java
|
8c1633d485833651e2a9ecda43e27c3cbfa70a8a
|
a96757bc015eff692571285c0a10a140c8c721f8
|
refs/heads/master
| 2023-09-03T12:33:23.746878
| 2023-08-29T07:26:25
| 2023-08-29T07:26:25
| 13,799,330
| 5
| 4
|
Apache-2.0
| 2023-01-03T08:32:23
| 2013-10-23T09:56:39
|
Java
|
UTF-8
|
Java
| false
| false
| 208
|
java
|
// "Create Method 'get'" "true"
class Generic<T> {
public T get() {
<caret><selection>return null;</selection>
}
}
class WWW {
<E> void foo (Generic<E> p) {
E e = p.get();
}
}
|
[
"vistall.valeriy@gmail.com"
] |
vistall.valeriy@gmail.com
|
6e436d20c14aa26bfb7b1f3b5a836261c48991e4
|
20bfd34a7f09565bda4c6490799d71c26a22d974
|
/common-lib/src/main/java/com/codekutter/common/GlobalConstants.java
|
89b0ac1828d2ce5cbbcd730f94e683daada640de
|
[
"Apache-2.0"
] |
permissive
|
subhagho/codekutter
|
e0dba77d8ddb9e41bff79ab01ea0e018614cbf31
|
0715300a7c953d4c02bb386d58a2fcc9789d6508
|
refs/heads/master
| 2023-08-07T20:19:22.910659
| 2021-07-06T06:01:16
| 2021-07-06T06:01:16
| 224,968,407
| 3
| 3
|
Apache-2.0
| 2023-08-24T20:27:42
| 2019-11-30T06:12:54
|
Java
|
UTF-8
|
Java
| false
| false
| 4,831
|
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.
*
* Copyright (c) $year
* Date: 1/1/19 9:06 PM
* Subho Ghosh (subho dot ghosh at outlook.com)
*
*/
package com.codekutter.common;
import com.codekutter.common.utils.LogUtils;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.datatype.joda.JodaModule;
import org.elasticsearch.common.Strings;
import javax.annotation.Nonnull;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
/**
* Class defines static global constants.
*/
public class GlobalConstants {
/**
* Default Joda date format to parse/print dates.
*/
public static final String DEFAULT_JODA_DATE_FORMAT = "M.d.y";
/**
* Default Joda data/time format to parse/print date/time.
*/
public static final String DEFAULT_JODA_DATETIME_FORMAT =
String.format("%s H:m:s", DEFAULT_JODA_DATE_FORMAT);
/**
* Default Joda date format to parse/print dates.
*/
public static final String DEFAULT_DATE_FORMAT = "MM.dd.yyyy";
/**
* Default Joda data/time format to parse/print date/time.
*/
public static final String DEFAULT_DATETIME_FORMAT =
String.format("%s HH:mm:ss", DEFAULT_DATE_FORMAT);
/**
* ConfigParam name for passing a configuration node.
*/
public static final String DEFAULT_CONFIG_PARAM_NAME = "config";
/**
* URI Scheme constant for file.
*/
public static final String URI_SCHEME_FILE = "file";
/**
* URI Scheme constant for HTTP.
*/
public static final String URI_SCHEME_HTTP = "http";
/**
* URI Scheme constant for HTTPS.
*/
public static final String URI_SCHEME_HTTPS = "https";
/**
* URI Scheme constant for FTP.
*/
public static final String URI_SCHEME_FTP = "ftp";
/**
* URI Scheme constant for SFTP.
*/
public static final String URI_SCHEME_SFTP = "sftp";
private static String OS = System.getProperty("os.name").toLowerCase();
private static Charset charset = StandardCharsets.UTF_8;
/**
* Is this a windows OS?
*
* @return - Windows OS?
*/
public static boolean isWindows() {
return (OS.contains("win"));
}
/**
* Is this a Mac OS?
*
* @return - Mac OS?
*/
public static boolean isMac() {
return (OS.contains("mac"));
}
/**
* Is this a *NIX OS?
*
* @return - (U)NIX OS?
*/
public static boolean isUnix() {
return (OS.contains("nix") || OS.contains("nux") || OS.indexOf("aix") > 0);
}
/**
* Is this a Solaris OS?
*
* @return - Solaris OS?
*/
public static boolean isSolaris() {
return (OS.contains("sunos"));
}
/**
* Get a new instance of the JSON Object mapper.
*
* @return - JSON Object mapper.
*/
public static ObjectMapper getJsonMapper() {
ObjectMapper mapper = new ObjectMapper();
mapper.registerModule(new JodaModule());
mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
mapper.enable(SerializationFeature.INDENT_OUTPUT);
return mapper;
}
public static String quote(@Nonnull String value) {
return String.format("\"%s\"", value);
}
public static Charset defaultCharset() {
return charset;
}
public static void defaultCharset(@Nonnull String value) {
if (!Strings.isNullOrEmpty(value)) {
charset = Charset.forName(value);
}
}
public static void defaultCharset(@Nonnull Charset value) {
if (value != null) {
charset = value;
}
}
static {
charset = Charset.defaultCharset();
String cs = System.getProperty("file.encoding");
if (!Strings.isNullOrEmpty(cs)) {
charset = Charset.forName(cs);
}
System.out.println(String.format("Using default charset. [charset=%s]", charset.displayName()));
}
}
|
[
"subho.ghosh@outlook.com"
] |
subho.ghosh@outlook.com
|
ff5a09c801670191360fa070ecdb9b3581969371
|
e20b9a1f40a130cbebbbfb018072eb2d07862478
|
/net/minecraft/server/ChatComponentUtils.java
|
941a6044641522bd37862ae54b2b13c2e00b9f07
|
[] |
no_license
|
IServerPowered/mc-dev
|
d3aec5d09375e34264037a190285dbfbc95fc46a
|
14d88a9a6d9e4c9084d3037a0682a5c415832042
|
refs/heads/1.8.3
| 2021-01-17T17:49:54.651138
| 2015-03-09T22:35:39
| 2015-03-09T22:35:39
| 33,264,491
| 2
| 0
| null | 2015-04-01T18:19:08
| 2015-04-01T18:19:07
| null |
UTF-8
|
Java
| false
| false
| 2,765
|
java
|
package net.minecraft.server;
import java.util.Iterator;
import java.util.List;
public class ChatComponentUtils {
public static IChatBaseComponent filterForDisplay(ICommandListener icommandlistener, IChatBaseComponent ichatbasecomponent, Entity entity) throws CommandException {
Object object = null;
if (ichatbasecomponent instanceof ChatComponentScore) {
ChatComponentScore chatcomponentscore = (ChatComponentScore) ichatbasecomponent;
String s = chatcomponentscore.g();
if (PlayerSelector.isPattern(s)) {
List list = PlayerSelector.getPlayers(icommandlistener, s, Entity.class);
if (list.size() != 1) {
throw new ExceptionEntityNotFound();
}
s = ((Entity) list.get(0)).getName();
}
object = entity != null && s.equals("*") ? new ChatComponentScore(entity.getName(), chatcomponentscore.h()) : new ChatComponentScore(s, chatcomponentscore.h());
((ChatComponentScore) object).b(chatcomponentscore.getText());
} else if (ichatbasecomponent instanceof ChatComponentSelector) {
String s1 = ((ChatComponentSelector) ichatbasecomponent).g();
object = PlayerSelector.getPlayerNames(icommandlistener, s1);
if (object == null) {
object = new ChatComponentText("");
}
} else if (ichatbasecomponent instanceof ChatComponentText) {
object = new ChatComponentText(((ChatComponentText) ichatbasecomponent).g());
} else {
if (!(ichatbasecomponent instanceof ChatMessage)) {
return ichatbasecomponent;
}
Object[] aobject = ((ChatMessage) ichatbasecomponent).j();
for (int i = 0; i < aobject.length; ++i) {
Object object1 = aobject[i];
if (object1 instanceof IChatBaseComponent) {
aobject[i] = filterForDisplay(icommandlistener, (IChatBaseComponent) object1, entity);
}
}
object = new ChatMessage(((ChatMessage) ichatbasecomponent).i(), aobject);
}
ChatModifier chatmodifier = ichatbasecomponent.getChatModifier();
if (chatmodifier != null) {
((IChatBaseComponent) object).setChatModifier(chatmodifier.clone());
}
Iterator iterator = ichatbasecomponent.a().iterator();
while (iterator.hasNext()) {
IChatBaseComponent ichatbasecomponent1 = (IChatBaseComponent) iterator.next();
((IChatBaseComponent) object).addSibling(filterForDisplay(icommandlistener, ichatbasecomponent1, entity));
}
return (IChatBaseComponent) object;
}
}
|
[
"Techcable@outlook.com"
] |
Techcable@outlook.com
|
2503b8d3ba243d516a4c92f25e728d17bccc4c8c
|
873ba033d4c470f88512544bbaeab2a5dbfbf7a6
|
/Java/Project 3/Floatp.java
|
82ce6a2e67546f0fce9cc2eac8ec9f6fd88376cc
|
[] |
no_license
|
derickh93/School-Code
|
a888c88d8cf1270865b84867c4ed4dcaee619613
|
fea2081956ceb9941f3ceb58e04fbe8f5b7b4f23
|
refs/heads/main
| 2023-05-27T04:41:42.522130
| 2021-06-10T05:22:04
| 2021-06-10T05:22:04
| 301,509,770
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 387
|
java
|
class Floatp extends Primary
{
float val;
Floatp(float f)
{
val = f;
}
public String toString()
{
return this.getClass().getName() + " : " + val;
}
void printParseTree(String indent)
{
String indent1 = indent+" ";
super.printParseTree(indent);
IO.displayln(indent1 + indent1.length() + " " + val);
}
Val Eval()
{
return new FloatVal(val);
}
}
|
[
"derickhansraj@ymail.com"
] |
derickhansraj@ymail.com
|
b6c41e13c11c2b6c45969f6db2cbb9add470ede9
|
4beb274e3d197a22d248a94ab8f36d38304716ea
|
/design/src/main/java/com/tomclaw/design/PseudoSpinnerView.java
|
61f967d7190a50caeea5739028f1ade43d793bef
|
[
"MIT"
] |
permissive
|
solkin/mandarin-android
|
ecd59c1807991391fa41da90628a72e68822b157
|
b49ba9c5d6757aeaa6fb9c1a138bb401f09d6102
|
refs/heads/master
| 2023-04-05T05:34:26.021628
| 2021-03-02T19:23:49
| 2021-03-02T19:23:49
| 8,887,274
| 22
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 856
|
java
|
package com.tomclaw.design;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.PorterDuff;
import androidx.appcompat.widget.AppCompatTextView;
import android.util.AttributeSet;
import android.util.TypedValue;
/**
* Created by solkin on 29.05.15.
*/
public class PseudoSpinnerView extends AppCompatTextView {
public PseudoSpinnerView(Context context, AttributeSet attrs) {
super(context, attrs);
TypedValue typedValue = new TypedValue();
TypedArray a = context.obtainStyledAttributes(typedValue.data, new int[]{R.attr.spinner_triangle_color});
try {
int accentColor = a.getColor(0, 0);
getBackground().setColorFilter(accentColor, PorterDuff.Mode.SRC_ATOP);
} finally {
a.recycle();
}
}
}
|
[
"inbox@tomclaw.com"
] |
inbox@tomclaw.com
|
9f83c7f58dc97b248bea862a9c7d6a92c7f3b2d7
|
37a7c112c8c50f1920229ad8ed6a90583e8ce4c8
|
/src/zrsy/dao/helper/GpHelper.java
|
a3c4baaeb8f5d87c30742d8df73e987941e26d70
|
[] |
no_license
|
yeqingyun/pdm
|
a25ebe6a4aed80c8a706a4cafbedd97ea114f9d6
|
80cdaf5d84711b0fbd72ba04e1a966971af12ceb
|
refs/heads/master
| 2021-04-12T11:27:28.603837
| 2018-08-16T13:56:19
| 2018-08-16T13:56:19
| 126,423,239
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,438
|
java
|
package zrsy.dao.helper;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
import org.apache.log4j.Logger;
import zrsy.vo.Gp;
public class GpHelper extends BasicGpHelper {
public String getSqlString() {
return " from Gp " +
" left join SyDef on (SyDef.SyId = Gp.SyId) " +
" where 1=1 ";
//" where 1=1 and GpName <> '超级用户' ";
}
public List<Gp> getQueryList(ResultSet rs,String fields) throws java.sql.SQLException {
ArrayList<Gp> list = new ArrayList<Gp>();
String[] _fields = fields.split(",");
try {
while(rs.next()) {
Gp gp = new Gp();
for(int i=0;i<_fields.length;i++) {
if(_fields[i].equals("GpId") || _fields[i].equals("Gp.GpId"))
gp.setGpId(rs.getInt("GpId"));
if(_fields[i].equals("SyId") || _fields[i].equals("Gp.SyId"))
gp.setSyId(rs.getInt("SyId"));
if(_fields[i].equals("GpName") || _fields[i].equals("Gp.GpName"))
gp.setGpName(rs.getString("GpName"));
if(_fields[i].equals("Remark") || _fields[i].equals("Gp.Remark"))
gp.setRemark(rs.getString("Remark"));
if(_fields[i].equals("SyName") || _fields[i].equals("SyDef.SyName as SyName"))
gp.setSyName(rs.getString("SyName"));
}
list.add(gp);
}
}
catch(java.sql.SQLException e) {
Logger.getLogger(this.getClass()).error("GpHelper.getQueryList SQLException", e);
throw e;
}
return list;
}
}
|
[
"yeqy@gionee.com"
] |
yeqy@gionee.com
|
001bf61d18021c04e408d661efb6567eaea97610
|
49a5ca02311785f0ef2b1e4bed37fd29e5fac8da
|
/src/test/java/sn/delivery/neldam/repository/timezone/DateTimeWrapper.java
|
342103528f22753a82e2ab02774b21b4b0a7cd2e
|
[] |
no_license
|
anscamou/neldam
|
400138896827d70e11d31f2c0c7e14fc13c921f9
|
d5f646f28587cf87b337797e99b57bba80146055
|
refs/heads/main
| 2023-03-24T06:11:33.663237
| 2021-03-17T19:03:48
| 2021-03-17T19:03:48
| 345,460,574
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,098
|
java
|
package sn.delivery.neldam.repository.timezone;
import java.io.Serializable;
import java.time.*;
import java.util.Objects;
import javax.persistence.*;
@Entity
@Table(name = "jhi_date_time_wrapper")
public class DateTimeWrapper implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "instant")
private Instant instant;
@Column(name = "local_date_time")
private LocalDateTime localDateTime;
@Column(name = "offset_date_time")
private OffsetDateTime offsetDateTime;
@Column(name = "zoned_date_time")
private ZonedDateTime zonedDateTime;
@Column(name = "local_time")
private LocalTime localTime;
@Column(name = "offset_time")
private OffsetTime offsetTime;
@Column(name = "local_date")
private LocalDate localDate;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Instant getInstant() {
return instant;
}
public void setInstant(Instant instant) {
this.instant = instant;
}
public LocalDateTime getLocalDateTime() {
return localDateTime;
}
public void setLocalDateTime(LocalDateTime localDateTime) {
this.localDateTime = localDateTime;
}
public OffsetDateTime getOffsetDateTime() {
return offsetDateTime;
}
public void setOffsetDateTime(OffsetDateTime offsetDateTime) {
this.offsetDateTime = offsetDateTime;
}
public ZonedDateTime getZonedDateTime() {
return zonedDateTime;
}
public void setZonedDateTime(ZonedDateTime zonedDateTime) {
this.zonedDateTime = zonedDateTime;
}
public LocalTime getLocalTime() {
return localTime;
}
public void setLocalTime(LocalTime localTime) {
this.localTime = localTime;
}
public OffsetTime getOffsetTime() {
return offsetTime;
}
public void setOffsetTime(OffsetTime offsetTime) {
this.offsetTime = offsetTime;
}
public LocalDate getLocalDate() {
return localDate;
}
public void setLocalDate(LocalDate localDate) {
this.localDate = localDate;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DateTimeWrapper dateTimeWrapper = (DateTimeWrapper) o;
return !(dateTimeWrapper.getId() == null || getId() == null) && Objects.equals(getId(), dateTimeWrapper.getId());
}
@Override
public int hashCode() {
return Objects.hashCode(getId());
}
// prettier-ignore
@Override
public String toString() {
return "TimeZoneTest{" +
"id=" + id +
", instant=" + instant +
", localDateTime=" + localDateTime +
", offsetDateTime=" + offsetDateTime +
", zonedDateTime=" + zonedDateTime +
'}';
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
3efea899c5388639ecebbea92ceba012740900b2
|
55b6fb53025fdcf78f266c94556329421c1b7305
|
/src/main/java/com/nieyue/dao/CollectDao.java
|
ca413ecc27083a20108179efeec28762f651d623
|
[] |
no_license
|
lijin148/SevenSeconds
|
d318c38b1731bbb326afc2de87dc06372752b885
|
8d22ca6048f98426348bcce04ce1bde5a084fe8b
|
refs/heads/master
| 2020-03-07T05:30:40.378493
| 2017-08-25T09:48:42
| 2017-08-25T09:48:42
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,443
|
java
|
package com.nieyue.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.nieyue.bean.Collect;
import com.nieyue.bean.CollectArticleDTO;
/**
* 收藏数据库接口
* @author yy
*
*/
@Mapper
public interface CollectDao {
/** 新增收藏*/
public boolean addCollect(Collect collect) ;
/** 删除收藏 */
public boolean delCollect(Integer collectId) ;
/** 更新收藏*/
public boolean updateCollect(Collect collect);
/** 装载收藏 */
public Collect loadCollect(
@Param("articleId")Integer articleId,
@Param("acountId")Integer acountId,
@Param("collectId")Integer collectId);
/** 收藏总共数目 */
public int countAll(
@Param("articleId")Integer articleId,
@Param("acountId")Integer acountId
);
/** 分页收藏信息 */
public List<Collect> browsePagingCollect(
@Param("articleId")Integer articleId,
@Param("acountId")Integer acountId,
@Param("pageNum")int pageNum,
@Param("pageSize")int pageSize,
@Param("orderName")String orderName,
@Param("orderWay")String orderWay) ;
/** 分页DTO收藏信息 */
public List<CollectArticleDTO> browsePagingCollectArticleDTO(
@Param("articleId")Integer articleId,
@Param("acountId")Integer acountId,
@Param("pageNum")int pageNum,
@Param("pageSize")int pageSize,
@Param("orderName")String orderName,
@Param("orderWay")String orderWay) ;
}
|
[
"278076304@qq.com"
] |
278076304@qq.com
|
90d71d2bef3c4116866ff193448ba9b26f12af18
|
27c4841c76805bbb3ef9a9d5ae273c41a6d0cfc2
|
/lib-base/src/main/java/com/android/base/loadsir/ErrorCallback.java
|
a6a5951c37368a8a95e5e77f8f0e7bc265e34260
|
[] |
no_license
|
Demo-H/openEye
|
757b23b7af76bd750994dcf78090716911ebf942
|
992c446a4107d5c68c9369f6893c40ef14798c4f
|
refs/heads/master
| 2022-10-06T21:21:11.022930
| 2020-06-07T02:33:04
| 2020-06-07T02:33:04
| 270,168,541
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 347
|
java
|
package com.android.base.loadsir;
import com.android.base.R;
import com.android.base.loadsir.callback.Callback;
/**
* <p>
* 类描述: 错误页面
* <p>
* Created by Dhunter on 2020/6/2.
*/
public class ErrorCallback extends Callback {
@Override
protected int onCreateView()
{
return R.layout.base_layout_error;
}
}
|
[
"wbin18@126.com"
] |
wbin18@126.com
|
c9116a57cb1412f0774752c6b71d0329c000a3a8
|
446f34f1400a35149758107c284046839d4ae233
|
/market-product/src/main/java/com/lyc/market/product/web/IndexController.java
|
471147840ac93bcca31839f0b3159218c28f4a6b
|
[] |
no_license
|
lycGlish/Market
|
6f1b20cfa418be4cdd79ad53281720a9fb188575
|
eddc6509c9d0da0fd0c472a5a992ecf9bf28e7dd
|
refs/heads/master
| 2022-12-03T09:39:00.849108
| 2020-08-20T08:05:39
| 2020-08-20T08:05:39
| 287,201,964
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,191
|
java
|
package com.lyc.market.product.web;
import com.lyc.market.product.entity.CategoryEntity;
import com.lyc.market.product.service.CategoryService;
import com.lyc.market.product.vo.Catalog2Vo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.List;
import java.util.Map;
/**
* @author lyc
* @date 2020/8/19 17:19
*/
@Controller
public class IndexController {
@Autowired
CategoryService categoryService;
@GetMapping("/index/catalog.json")
@ResponseBody
public Map<String, List<Catalog2Vo>> getCatalogJson() {
Map<String, List<Catalog2Vo>> catalogJson = categoryService.getCatalogJson();
return catalogJson;
}
@GetMapping({"/", "/index.html"})
public String indexPage(Model model) {
// 查出所有的一级分类
List<CategoryEntity> categoryEntities = categoryService.getLevel1Categories();
model.addAttribute("categories", categoryEntities);
return "index";
}
}
|
[
"708901735@qq.com"
] |
708901735@qq.com
|
23f7b799e923e68c080b16f23c0e1fbf579ed5e1
|
c4b5e9c9de96168b23c3709ecc79ff3dcbd5f56e
|
/src/main/java/com/subhamsql/mysqljpa/dao/UserRepository.java
|
ee6ac8c7c16e565851c0574ee499ffe031f50d4e
|
[] |
no_license
|
subhambhardwaj/jpa-mysql-database
|
3a535c8dc995b09cb73b698b8f469b42036d1681
|
b09ef001bdad8e063f0977593c60238ce63a36a2
|
refs/heads/master
| 2022-12-05T13:39:40.511225
| 2020-08-31T15:37:18
| 2020-08-31T15:37:18
| 291,044,021
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 363
|
java
|
package com.subhamsql.mysqljpa.dao;
import com.subhamsql.mysqljpa.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
import java.util.Set;
public interface UserRepository extends JpaRepository<User, String> {
Set<User> findByEmailContaining (String email);
List<User> findByNameContaining(String name);
}
|
[
"you@example.com"
] |
you@example.com
|
1e8130be79a36b560e2fdb4fa3650ae31353ba89
|
baf03272774e32a60a3b21817400d57d1347068d
|
/src/_26Inheritance/B.java
|
0858fc3d75cf02ca787f1f34c7650485782ac67f
|
[] |
no_license
|
Arasefe/OCAPREP
|
8e22c1df09efcdad1d8ab6a09c63d4a5058cf81e
|
f0a411d508b8ad93a9b8ac2b414f99c79ce8005d
|
refs/heads/master
| 2022-10-21T14:51:16.594373
| 2020-06-08T21:56:24
| 2020-06-08T21:56:24
| 270,837,935
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 472
|
java
|
package _26Inheritance;
public class B extends A {
public void print() {
A obj = new A();
System.out.println(obj.i1); //Line 8
System.out.println(i2); //Line 9 System.out.println(obj.i2); causes compilation error
System.out.println(this.i2); //Line 10
System.out.println(super.i2); //Line 11
}
public static void main(String [] args) {
new B().print();
}
}
|
[
"arasefe@users.noreply.github.com"
] |
arasefe@users.noreply.github.com
|
e79624d0cb75ff2b3e4b0e2c8c717eb33990c88b
|
9254e7279570ac8ef687c416a79bb472146e9b35
|
/gpdb-20160503/src/main/java/com/aliyun/gpdb20160503/models/ModifyDBInstanceNetworkTypeResponse.java
|
8c2fb4d0ca29f4f8911fb2df57917b06c300f1d3
|
[
"Apache-2.0"
] |
permissive
|
lquterqtd/alibabacloud-java-sdk
|
3eaa17276dd28004dae6f87e763e13eb90c30032
|
3e5dca8c36398469e10cdaaa34c314ae0bb640b4
|
refs/heads/master
| 2023-08-12T13:56:26.379027
| 2021-10-19T07:22:15
| 2021-10-19T07:22:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,170
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.gpdb20160503.models;
import com.aliyun.tea.*;
public class ModifyDBInstanceNetworkTypeResponse extends TeaModel {
@NameInMap("headers")
@Validation(required = true)
public java.util.Map<String, String> headers;
@NameInMap("body")
@Validation(required = true)
public ModifyDBInstanceNetworkTypeResponseBody body;
public static ModifyDBInstanceNetworkTypeResponse build(java.util.Map<String, ?> map) throws Exception {
ModifyDBInstanceNetworkTypeResponse self = new ModifyDBInstanceNetworkTypeResponse();
return TeaModel.build(map, self);
}
public ModifyDBInstanceNetworkTypeResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public ModifyDBInstanceNetworkTypeResponse setBody(ModifyDBInstanceNetworkTypeResponseBody body) {
this.body = body;
return this;
}
public ModifyDBInstanceNetworkTypeResponseBody getBody() {
return this.body;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
1fdc4b4268f37b5035849f02af09ed8f16395223
|
59e4596f07b00a69feabb1fb119619aa58964dd4
|
/StsTool.v.1.3.3/eu.aniketos.wp1.ststool.commitments/src/eu/aniketos/wp1/ststool/commitments/model/DelegationCommitment/TrustworthinessCommitment.java
|
2c9b96134ec59c3320eef027381e79af2fc6ac94
|
[] |
no_license
|
AniketosEU/Socio-technical-Security-Requirements
|
895bac6785af1a40cb55afa9cb3dd73f83f8011f
|
7ce04c023af6c3e77fa4741734da7edac103c875
|
refs/heads/master
| 2018-12-31T17:08:39.594985
| 2014-02-21T14:36:14
| 2014-02-21T14:36:14
| 15,801,803
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,358
|
java
|
/*
* TrustworthinessCommitment.java
*
* This file is part of the STS-Tool project.
* Copyright (c) 2011-2012 "University of Trento - DISI" All rights reserved.
*
* Is strictly forbidden to remove this copyright notice from this source code.
*
* Disclaimer of Warranty:
* STS-Tool (this software) is provided "as-is" and without warranty of any kind,
* express, implied or otherwise, including without limitation, any warranty of
* merchantability or fitness for a particular purpose.
* In no event shall the copyright holder or contributors be liable for any direct,
* indirect, incidental, special, exemplary, or consequential damages
* including, but not limited to, procurement of substitute goods or services;
* loss of use, data, or profits; or business interruption) however caused and on
* any theory of liability, whether in contract, strict liability, or tort (including
* negligence or otherwise) arising in any way out of the use of this software, even
* if advised of the possibility of such damage.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License version 3
* as published by the Free Software Foundation with the addition of the
* following permission added to Section 15 as permitted in Section 7(a):
* FOR ANY PART OF THE COVERED WORK IN WHICH THE COPYRIGHT IS OWNED BY
* "University of Trento - DISI","University of Trento - DISI" DISCLAIMS THE
* WARRANTY OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* See the GNU Affero General Public License for more details.
* You should have received a copy of the GNU Affero General Public License
* along with this program; if not, see http://www.gnu.org/licenses or write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA, 02110-1301 USA, or download the license from the following URL:
* http://www.sts-tool.eu/License.php
*
* For more information, please contact STS-Tool group at this
* address: ststool@disi.unitn.it
*
*/
package eu.aniketos.wp1.ststool.commitments.model.DelegationCommitment;
import eu.aniketos.wp1.ststool.Delegation;
public class TrustworthinessCommitment extends AbstractDelegationCommitment {
public TrustworthinessCommitment(Delegation delegation, int index) {
super(delegation, index);
}
@Override
public String getRequester(){
if (delegation.getSource() == null || delegation.getSource().getName() == null)
return "Unknwon";
else
return delegation.getSource().getName();
}
@Override
public String getResponsible(){
if (delegation.getSource() == null || delegation.getSource().getName() == null)
return "Unknwon";
else
return delegation.getSource().getName();
}
@Override
public String getReqisite(){
return "delegatedTo(" + getDelegation().getTarget().getName() + ",trustworthiness level " + getDelegation().getTrustworthinessValue() + ")";
}
@Override
public String getDescritption(){
return getResponsible() + " will delegate goal "+getDelegation().getSourceGoal().getName()+", only to " + getDelegation().getTarget().getName() + " that have trustwhorthiness level grater than " + getDelegation().getTrustworthinessValue();
}
@Override
public String securityNeedName(){
return "trustworthiness";
}
}
|
[
"mattia@MacBookPro.local"
] |
mattia@MacBookPro.local
|
5fb7cd1151f106ba09e9a3f204d5cef0e3fffd60
|
c885ef92397be9d54b87741f01557f61d3f794f3
|
/tests-without-trycatch/Math-10/org.apache.commons.math3.analysis.differentiation.DSCompiler/BBC-F0-opt-70/25/org/apache/commons/math3/analysis/differentiation/DSCompiler_ESTest_scaffolding.java
|
998e47e53d1804f0fd589061f59ca910434409d8
|
[
"CC-BY-4.0",
"MIT"
] |
permissive
|
pderakhshanfar/EMSE-BBC-experiment
|
f60ac5f7664dd9a85f755a00a57ec12c7551e8c6
|
fea1a92c2e7ba7080b8529e2052259c9b697bbda
|
refs/heads/main
| 2022-11-25T00:39:58.983828
| 2022-04-12T16:04:26
| 2022-04-12T16:04:26
| 309,335,889
| 0
| 1
| null | 2021-11-05T11:18:43
| 2020-11-02T10:30:38
| null |
UTF-8
|
Java
| false
| false
| 5,809
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Sat Oct 23 19:06:14 GMT 2021
*/
package org.apache.commons.math3.analysis.differentiation;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.evosuite.runtime.sandbox.Sandbox;
import org.evosuite.runtime.sandbox.Sandbox.SandboxMode;
@EvoSuiteClassExclude
public class DSCompiler_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "org.apache.commons.math3.analysis.differentiation.DSCompiler";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100;
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED;
org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT();
org.evosuite.runtime.classhandling.JDKClassResetter.init();
setSystemProperties();
initializeClasses();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler();
org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks();
org.evosuite.runtime.classhandling.JDKClassResetter.reset();
resetClasses();
org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
public static void setSystemProperties() {
/*No java.lang.System property to set*/
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(DSCompiler_ESTest_scaffolding.class.getClassLoader() ,
"org.apache.commons.math3.exception.util.ExceptionContextProvider",
"org.apache.commons.math3.util.MathArrays",
"org.apache.commons.math3.exception.util.ArgUtils",
"org.apache.commons.math3.exception.MathArithmeticException",
"org.apache.commons.math3.exception.NumberIsTooSmallException",
"org.apache.commons.math3.util.FastMath$ExpIntTable",
"org.apache.commons.math3.util.FastMath$lnMant",
"org.apache.commons.math3.exception.NotPositiveException",
"org.apache.commons.math3.exception.MathInternalError",
"org.apache.commons.math3.exception.MathIllegalStateException",
"org.apache.commons.math3.analysis.differentiation.DSCompiler",
"org.apache.commons.math3.util.FastMath$ExpFracTable",
"org.apache.commons.math3.exception.NonMonotonicSequenceException",
"org.apache.commons.math3.exception.MathIllegalArgumentException",
"org.apache.commons.math3.exception.MathIllegalNumberException",
"org.apache.commons.math3.exception.util.LocalizedFormats",
"org.apache.commons.math3.util.FastMath",
"org.apache.commons.math3.exception.DimensionMismatchException",
"org.apache.commons.math3.exception.util.Localizable",
"org.apache.commons.math3.exception.NumberIsTooLargeException",
"org.apache.commons.math3.exception.NotStrictlyPositiveException",
"org.apache.commons.math3.exception.util.ExceptionContext",
"org.apache.commons.math3.util.ArithmeticUtils",
"org.apache.commons.math3.exception.NullArgumentException",
"org.apache.commons.math3.util.FastMathLiteralArrays"
);
}
private static void resetClasses() {
org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(DSCompiler_ESTest_scaffolding.class.getClassLoader());
org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses(
"org.apache.commons.math3.analysis.differentiation.DSCompiler",
"org.apache.commons.math3.util.FastMath",
"org.apache.commons.math3.util.FastMathLiteralArrays",
"org.apache.commons.math3.util.FastMath$lnMant",
"org.apache.commons.math3.util.FastMath$ExpIntTable",
"org.apache.commons.math3.util.FastMath$ExpFracTable",
"org.apache.commons.math3.util.Precision",
"org.apache.commons.math3.exception.util.LocalizedFormats",
"org.apache.commons.math3.util.ArithmeticUtils",
"org.apache.commons.math3.util.FastMath$CodyWaite",
"org.apache.commons.math3.exception.MathIllegalArgumentException",
"org.apache.commons.math3.exception.MathIllegalNumberException",
"org.apache.commons.math3.exception.DimensionMismatchException",
"org.apache.commons.math3.exception.util.ExceptionContext",
"org.apache.commons.math3.exception.util.ArgUtils",
"org.apache.commons.math3.util.MathArrays",
"org.apache.commons.math3.exception.NumberIsTooLargeException"
);
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
1f17c3c6bc656439af1c23625c15e2b56218fd7a
|
bde682a9933140140f1712e066c23160b23ada5b
|
/hibernate-examples/src/test/java/org/hibernate/examples/mapping/inheritance/joinedsubclass/Person.java
|
c3d22e94be5d258d19c2853f9423ed4267b51a45
|
[
"Apache-2.0"
] |
permissive
|
egorpe/hibernate-redis
|
8f378df180b61176b137b48b9e1d06ec057e0ac3
|
40c4b23f7b1911508420e29682277ebecd8387bf
|
refs/heads/master
| 2020-04-06T03:52:57.794524
| 2014-01-01T06:21:30
| 2014-01-01T06:21:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,657
|
java
|
package org.hibernate.examples.mapping.inheritance.joinedsubclass;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.examples.model.AbstractHibernateEntity;
import org.hibernate.examples.utils.HashTool;
import org.hibernate.examples.utils.ToStringHelper;
import javax.persistence.*;
/**
* org.hibernate.examples.mapping.inheritance.joinedsubclass.Person
*
* @author 배성혁 sunghyouk.bae@gmail.com
* @since 2013. 11. 30. 오후 12:54
*/
@Entity
@Table(name = "JoinedSubclass_Person")
@org.hibernate.annotations.Cache(region = "examples", usage = CacheConcurrencyStrategy.READ_WRITE)
@Inheritance(strategy = InheritanceType.JOINED)
@DynamicInsert
@DynamicUpdate
@Getter
@Setter
public abstract class Person extends AbstractHibernateEntity<Long> {
@Id
@GeneratedValue
@Column(name = "personId")
@Setter(AccessLevel.PROTECTED)
private Long id;
@Column(name = "personName", nullable = false, length = 128)
private String name;
@Column(name = "regidentNo", nullable = false, length = 128)
private String regidentNo;
private Integer age;
@Override
public int hashCode() {
return HashTool.compute(name, regidentNo);
}
@Override
public ToStringHelper buildStringHelper() {
return super.buildStringHelper()
.add("name", name)
.add("regidentNo", regidentNo);
}
private static final long serialVersionUID = 823321933233116966L;
}
|
[
"sunghyouk.bae@gmail.com"
] |
sunghyouk.bae@gmail.com
|
e5fea9ca59ab9a3ae8ea67a376ef0fd3c8d7d7c0
|
60231321ae07d564d4245ba7182b5ffd455da7a5
|
/JavaIoProgramming/src/ch18/exam09/CopyExample.java
|
196ca3c8d67e0a8e42a17e35b79f0fcdf89537b0
|
[] |
no_license
|
JeongSemi/TestRepository
|
1fc7b1b86e75adcf72f5584389bde2311b5c647f
|
3e16625c5802302f505a507f89bf187265269061
|
refs/heads/master
| 2021-01-20T00:45:51.856815
| 2017-08-29T05:26:45
| 2017-08-29T05:26:45
| 89,182,167
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 755
|
java
|
package ch18.exam09;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Reader;
import java.io.Writer;
public class CopyExample {
public static void main(String[] args) throws FileNotFoundException, IOException {
Reader reader = new FileReader("src/ch18/exam09/test.txt");
Writer writer = new FileWriter("src/ch18/exam09/test2.txt");
char[] data = new char[3];
int readChars = -1;
while (true) {
readChars = reader.read(data);
if (readChars == -1) {
break;
}
writer.write(data, 0, readChars);
}
writer.flush();
writer.close();
}
}
|
[
"wjdtpa2@gmail.com"
] |
wjdtpa2@gmail.com
|
745a295624dc4f3fa6c3d77a3a9549f1b7688ef3
|
4d97a8ec832633b154a03049d17f8b58233cbc5d
|
/Math/96/Math/evosuite-branch/0/org/apache/commons/math/complex/ComplexEvoSuite_branch_Test_scaffolding.java
|
a0a71dc83fed7af8dfcd6f061d82865f5eaf89dd
|
[] |
no_license
|
4open-science/evosuite-defects4j
|
be2d172a5ce11e0de5f1272a8d00d2e1a2e5f756
|
ca7d316883a38177c9066e0290e6dcaa8b5ebd77
|
refs/heads/master
| 2021-06-16T18:43:29.227993
| 2017-06-07T10:37:26
| 2017-06-07T10:37:26
| 93,623,570
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,869
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Thu Dec 11 19:10:17 GMT 2014
*/
package org.apache.commons.math.complex;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.junit.AfterClass;
public class ComplexEvoSuite_branch_Test_scaffolding {
@org.junit.Rule
public org.junit.rules.Timeout globalTimeout = new org.junit.rules.Timeout(6000);
private static final java.util.Properties defaultProperties = (java.util.Properties) java.lang.System.getProperties().clone();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 5000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
initializeClasses();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@AfterClass
public static void clearEvoSuiteFramework(){
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler();
setSystemProperties();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks();
resetClasses();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
public void setSystemProperties() {
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
java.lang.System.setProperty("java.vm.vendor", "Oracle Corporation");
java.lang.System.setProperty("java.specification.version", "1.7");
java.lang.System.setProperty("java.home", "/usr/local/packages6/java/jdk1.7.0_55/jre");
java.lang.System.setProperty("user.dir", "/scratch/ac1gf/Math/96/0/run_evosuite.pl_7163_1418324400");
java.lang.System.setProperty("java.io.tmpdir", "/tmp");
java.lang.System.setProperty("awt.toolkit", "sun.awt.X11.XToolkit");
java.lang.System.setProperty("file.encoding", "UTF-8");
java.lang.System.setProperty("file.separator", "/");
java.lang.System.setProperty("java.awt.graphicsenv", "sun.awt.X11GraphicsEnvironment");
java.lang.System.setProperty("java.awt.headless", "true");
java.lang.System.setProperty("java.awt.printerjob", "sun.print.PSPrinterJob");
java.lang.System.setProperty("java.class.path", "/data/ac1gf/defects4j/framework/projects/lib/evosuite.jar:/scratch/ac1gf/Math/96/0/run_evosuite.pl_7163_1418324400/target/classes");
java.lang.System.setProperty("java.class.version", "51.0");
java.lang.System.setProperty("java.endorsed.dirs", "/usr/local/packages6/java/jdk1.7.0_55/jre/lib/endorsed");
java.lang.System.setProperty("java.ext.dirs", "/usr/local/packages6/java/jdk1.7.0_55/jre/lib/ext:/usr/java/packages/lib/ext");
java.lang.System.setProperty("java.library.path", "lib");
java.lang.System.setProperty("java.runtime.name", "Java(TM) SE Runtime Environment");
java.lang.System.setProperty("java.runtime.version", "1.7.0_55-b13");
java.lang.System.setProperty("java.specification.name", "Java Platform API Specification");
java.lang.System.setProperty("java.specification.vendor", "Oracle Corporation");
java.lang.System.setProperty("java.vendor", "Oracle Corporation");
java.lang.System.setProperty("java.vendor.url", "http://java.oracle.com/");
java.lang.System.setProperty("java.version", "1.7.0_55");
java.lang.System.setProperty("java.vm.info", "mixed mode");
java.lang.System.setProperty("java.vm.name", "Java HotSpot(TM) 64-Bit Server VM");
java.lang.System.setProperty("java.vm.specification.name", "Java Virtual Machine Specification");
java.lang.System.setProperty("java.vm.specification.vendor", "Oracle Corporation");
java.lang.System.setProperty("java.vm.specification.version", "1.7");
java.lang.System.setProperty("java.vm.version", "24.55-b03");
java.lang.System.setProperty("line.separator", "\n");
java.lang.System.setProperty("os.arch", "amd64");
java.lang.System.setProperty("os.name", "Linux");
java.lang.System.setProperty("os.version", "2.6.32-431.23.3.el6.x86_64");
java.lang.System.setProperty("path.separator", ":");
java.lang.System.setProperty("user.country", "GB");
java.lang.System.setProperty("user.home", "/home/ac1gf");
java.lang.System.setProperty("user.language", "en");
java.lang.System.setProperty("user.name", "ac1gf");
java.lang.System.setProperty("user.timezone", "Europe/Belfast");
}
private static void initializeClasses() {
org.evosuite.runtime.ClassStateSupport.initializeClasses(ComplexEvoSuite_branch_Test_scaffolding.class.getClassLoader() ,
"org.apache.commons.math.complex.Complex",
"org.apache.commons.math.util.MathUtils"
);
}
private static void resetClasses() {
org.evosuite.runtime.reset.ClassResetter.getInstance().setClassLoader(ComplexEvoSuite_branch_Test_scaffolding.class.getClassLoader());
org.evosuite.runtime.ClassStateSupport.resetClasses(
"org.apache.commons.math.complex.Complex",
"org.apache.commons.math.util.MathUtils"
);
}
}
|
[
"martin.monperrus@gnieh.org"
] |
martin.monperrus@gnieh.org
|
e0c3648c25df6f2deff43e7e530ddc9beb89bfbe
|
32f38cd53372ba374c6dab6cc27af78f0a1b0190
|
/app/src/main/java/android/support/v4/app/FragmentManager.java
|
aaab41cb29b801ef5ef1ad65289af4f5f7b296fd
|
[] |
no_license
|
shuixi2013/AmapCode
|
9ea7aefb42e0413f348f238f0721c93245f4eac6
|
1a3a8d4dddfcc5439df8df570000cca12b15186a
|
refs/heads/master
| 2023-06-06T23:08:57.391040
| 2019-08-29T04:36:02
| 2019-08-29T04:36:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,412
|
java
|
package android.support.v4.app;
import android.os.Bundle;
import android.support.annotation.IdRes;
import android.support.annotation.StringRes;
import android.support.v4.app.Fragment.SavedState;
import java.io.FileDescriptor;
import java.io.PrintWriter;
import java.util.List;
public abstract class FragmentManager {
public static final int POP_BACK_STACK_INCLUSIVE = 1;
public interface BackStackEntry {
CharSequence getBreadCrumbShortTitle();
@StringRes
int getBreadCrumbShortTitleRes();
CharSequence getBreadCrumbTitle();
@StringRes
int getBreadCrumbTitleRes();
int getId();
String getName();
}
public interface OnBackStackChangedListener {
void onBackStackChanged();
}
public abstract void addOnBackStackChangedListener(OnBackStackChangedListener onBackStackChangedListener);
public abstract FragmentTransaction beginTransaction();
public abstract void dump(String str, FileDescriptor fileDescriptor, PrintWriter printWriter, String[] strArr);
public abstract boolean executePendingTransactions();
public abstract Fragment findFragmentById(@IdRes int i);
public abstract Fragment findFragmentByTag(String str);
public abstract BackStackEntry getBackStackEntryAt(int i);
public abstract int getBackStackEntryCount();
public abstract Fragment getFragment(Bundle bundle, String str);
public abstract List<Fragment> getFragments();
public abstract boolean isDestroyed();
public abstract boolean isExecutingActions();
public abstract void popBackStack();
public abstract void popBackStack(int i, int i2);
public abstract void popBackStack(String str, int i);
public abstract boolean popBackStackImmediate();
public abstract boolean popBackStackImmediate(int i, int i2);
public abstract boolean popBackStackImmediate(String str, int i);
public abstract void putFragment(Bundle bundle, String str, Fragment fragment);
public abstract void removeOnBackStackChangedListener(OnBackStackChangedListener onBackStackChangedListener);
public abstract SavedState saveFragmentInstanceState(Fragment fragment);
@Deprecated
public FragmentTransaction openTransaction() {
return beginTransaction();
}
public static void enableDebugLogging(boolean z) {
FragmentManagerImpl.a = z;
}
}
|
[
"hubert.yang@nf-3.com"
] |
hubert.yang@nf-3.com
|
988365e997f81775a378d4e73e15098ed47b8a1a
|
9dc11d068f883b15a0fd45935a834c896b722ec0
|
/app/src/main/java/com/hotellook/dependencies/DatabaseModule_ProvideLocationFavoritesCacheFactory.java
|
7c9505b601f07613ea52d174efe85282ab1ddf9a
|
[
"Apache-2.0"
] |
permissive
|
justyce2/HotellookDagger
|
7a44d9b263cbde0da05759119d9c01e9d2090dc6
|
7229312d711c6cb1f8fc5cfafb413a3c5aff6dbe
|
refs/heads/master
| 2020-03-31T21:04:23.472668
| 2016-07-27T09:03:11
| 2016-07-27T09:03:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,699
|
java
|
package com.hotellook.dependencies;
import com.hotellook.db.FavoritesRepository;
import com.hotellook.db.SearchDestinationFavoritesCache;
import dagger.internal.Factory;
import dagger.internal.Preconditions;
import javax.inject.Provider;
public final class DatabaseModule_ProvideLocationFavoritesCacheFactory implements Factory<SearchDestinationFavoritesCache> {
static final /* synthetic */ boolean $assertionsDisabled;
private final DatabaseModule module;
private final Provider<FavoritesRepository> repositoryProvider;
static {
$assertionsDisabled = !DatabaseModule_ProvideLocationFavoritesCacheFactory.class.desiredAssertionStatus();
}
public DatabaseModule_ProvideLocationFavoritesCacheFactory(DatabaseModule module, Provider<FavoritesRepository> repositoryProvider) {
if ($assertionsDisabled || module != null) {
this.module = module;
if ($assertionsDisabled || repositoryProvider != null) {
this.repositoryProvider = repositoryProvider;
return;
}
throw new AssertionError();
}
throw new AssertionError();
}
public SearchDestinationFavoritesCache get() {
return (SearchDestinationFavoritesCache) Preconditions.checkNotNull(this.module.provideLocationFavoritesCache((FavoritesRepository) this.repositoryProvider.get()), "Cannot return null from a non-@Nullable @Provides method");
}
public static Factory<SearchDestinationFavoritesCache> create(DatabaseModule module, Provider<FavoritesRepository> repositoryProvider) {
return new DatabaseModule_ProvideLocationFavoritesCacheFactory(module, repositoryProvider);
}
}
|
[
"mdzht@mail.ru"
] |
mdzht@mail.ru
|
dd0481dcbe4a71fcca3ae6a75402b806e00bd2b7
|
59ca721ca1b2904fbdee2350cd002e1e5f17bd54
|
/aliyun-java-sdk-cms/src/main/java/com/aliyuncs/cms/model/v20180308/NodeUninstallResponse.java
|
7bf78a795fa155fb52986ce9af4452579594b44f
|
[
"Apache-2.0"
] |
permissive
|
longtx/aliyun-openapi-java-sdk
|
8fadfd08fbcf00c4c5c1d9067cfad20a14e42c9c
|
7a9ab9eb99566b9e335465a3358553869563e161
|
refs/heads/master
| 2020-04-26T02:00:35.360905
| 2019-02-28T13:47:08
| 2019-02-28T13:47:08
| 173,221,745
| 2
| 0
|
NOASSERTION
| 2019-03-01T02:33:35
| 2019-03-01T02:33:35
| null |
UTF-8
|
Java
| false
| false
| 1,762
|
java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.cms.model.v20180308;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cms.transform.v20180308.NodeUninstallResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class NodeUninstallResponse extends AcsResponse {
private Integer errorCode;
private String errorMessage;
private Boolean success;
private String requestId;
public Integer getErrorCode() {
return this.errorCode;
}
public void setErrorCode(Integer errorCode) {
this.errorCode = errorCode;
}
public String getErrorMessage() {
return this.errorMessage;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public NodeUninstallResponse getInstance(UnmarshallerContext context) {
return NodeUninstallResponseUnmarshaller.unmarshall(this, context);
}
}
|
[
"haowei.yao@alibaba-inc.com"
] |
haowei.yao@alibaba-inc.com
|
44ea605c3c887f84cd7c39605b75d3a143ec85b4
|
8f660dc660a9cd6d3b3830bc011ae29bcc943c2c
|
/PoS Payment/AndroidApp/app/src/main/java/org/wso2/iot/sample/mqtt/MessageReceivedCallback.java
|
6bc561a2dc20291e8b985a445a166f87b24c43de
|
[
"Apache-2.0"
] |
permissive
|
Nirothipan/samples-iots
|
b9545e83221923a770c7f3a33edc64b8ad6807f6
|
3144addcac3f05f4874e17087d31e3f689cdff11
|
refs/heads/master
| 2021-01-25T00:29:27.780196
| 2018-02-06T05:19:47
| 2018-02-06T05:19:47
| 123,297,780
| 0
| 0
|
Apache-2.0
| 2018-02-28T14:40:18
| 2018-02-28T14:40:17
| null |
UTF-8
|
Java
| false
| false
| 902
|
java
|
/*
* Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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.wso2.iot.sample.mqtt;
import org.json.JSONException;
import org.wso2.iot.sample.util.dto.Operation;
public interface MessageReceivedCallback {
void onMessageReceived(Operation operation) throws JSONException;
}
|
[
"charitha.ws@gmail.com"
] |
charitha.ws@gmail.com
|
8a74c4fa9259e597366d2c18b4dc8873eb7f5aec
|
2ccd067101b4932c396c93deac55c022a1ca6399
|
/src/main/java/com/zea7ot/leetcode/lvl3/lc0332/SolutionApproach0HierholzersAlgorithm.java
|
3647a175c28c63c3b6061973d18753f959304862
|
[] |
no_license
|
dulekang1025/leetcode-solutions-java-zea7ot
|
26d9019628a3b98a8932ffdc3531229cdb6fb690
|
a5f2fb570733379afb0b5fc676670fe4b54f583c
|
refs/heads/master
| 2023-01-03T03:18:10.936018
| 2020-10-26T01:18:53
| 2020-10-26T01:18:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,995
|
java
|
/**
* https://leetcode.com/problems/reconstruct-itinerary/
*
* Time Complexity: O(N * lg(N)) + O(N) ~ O(N * lg(N))
* O(N * lg(N)), consumed by PQ
* O(N), consumed by `postorder()`
*
* Space Complexity: O(N) + O(H)
*
* to sort the children and post order traverse the graph
*
*
* References:
* https://www.youtube.com/watch?v=4udFSOWQpdg
* http://zxi.mytechroad.com/blog/graph/leetcode-332-reconstruct-itinerary/
* Hierholzer's algorithm: https://en.wikipedia.org/wiki/Eulerian_path
*/
package com.zea7ot.leetcode.lvl3.lc0332;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.PriorityQueue;
public class SolutionApproach0HierholzersAlgorithm {
public List<String> findItinerary(List<List<String>> tickets) {
List<String> ans = new ArrayList<String>();
// sanity check
if (tickets == null || tickets.isEmpty())
return ans;
// a tree-like graph, with children sorted lexicographically and greedily
Map<String, PriorityQueue<String>> graph = new HashMap<String, PriorityQueue<String>>();
for (List<String> ticket : tickets) {
// this PriorityQueue is a minHeap
graph.putIfAbsent(ticket.get(0), new PriorityQueue<String>((a, b) -> a.compareTo(b)));
graph.get(ticket.get(0)).add(ticket.get(1));
}
final String START = "JFK";
postorder(START, graph, ans);
Collections.reverse(ans);
return ans;
}
private void postorder(String source, Map<String, PriorityQueue<String>> graph, List<String> routes) {
PriorityQueue<String> destinations = graph.get(source);
if (destinations != null) {
while (!destinations.isEmpty()) {
String destination = destinations.poll();
postorder(destination, graph, routes);
}
}
routes.add(source);
}
}
|
[
"yanglyu.leon.7@gmail.com"
] |
yanglyu.leon.7@gmail.com
|
a55e8875b4065618ec54e590b828931d6ba82445
|
2f4a058ab684068be5af77fea0bf07665b675ac0
|
/utils/com/google/common/collect/Synchronized$SynchronizedAsMap.java
|
4c7811520d55019d333941f2cb1c4153c54d6b26
|
[] |
no_license
|
cengizgoren/facebook_apk_crack
|
ee812a57c746df3c28fb1f9263ae77190f08d8d2
|
a112d30542b9f0bfcf17de0b3a09c6e6cfe1273b
|
refs/heads/master
| 2021-05-26T14:44:04.092474
| 2013-01-16T08:39:00
| 2013-01-16T08:39:00
| 8,321,708
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,710
|
java
|
package com.google.common.collect;
import java.util.Collection;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
class Synchronized$SynchronizedAsMap<K, V> extends Synchronized.SynchronizedMap<K, Collection<V>>
{
private static final long serialVersionUID;
transient Set<Map.Entry<K, Collection<V>>> a;
transient Collection<Collection<V>> b;
Synchronized$SynchronizedAsMap(Map<K, Collection<V>> paramMap, Object paramObject)
{
super(paramMap, paramObject);
}
public Collection<V> a(Object paramObject)
{
synchronized (this.mutex)
{
Collection localCollection = (Collection)super.get(paramObject);
if (localCollection == null)
{
localObject3 = null;
return localObject3;
}
Object localObject3 = Synchronized.a(localCollection, this.mutex);
}
}
public boolean containsValue(Object paramObject)
{
return values().contains(paramObject);
}
public Set<Map.Entry<K, Collection<V>>> entrySet()
{
synchronized (this.mutex)
{
if (this.a == null)
this.a = new Synchronized.SynchronizedAsMapEntries(a().entrySet(), this.mutex);
Set localSet = this.a;
return localSet;
}
}
public Collection<Collection<V>> values()
{
synchronized (this.mutex)
{
if (this.b == null)
this.b = new Synchronized.SynchronizedAsMapValues(a().values(), this.mutex);
Collection localCollection = this.b;
return localCollection;
}
}
}
/* Location: /data1/software/apk2java/dex2jar-0.0.9.12/secondary-1.dex_dex2jar.jar
* Qualified Name: com.google.common.collect.Synchronized.SynchronizedAsMap
* JD-Core Version: 0.6.2
*/
|
[
"macluz@msn.com"
] |
macluz@msn.com
|
f21d36677fb42f6965e1e475bccddf7822616b4c
|
ed5159d056e98d6715357d0d14a9b3f20b764f89
|
/src/irvine/oeis/a180/A180595.java
|
cf2095b1232f5184901d161a049ebf245573f665
|
[] |
no_license
|
flywind2/joeis
|
c5753169cf562939b04dd246f8a2958e97f74558
|
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
|
refs/heads/master
| 2020-09-13T18:34:35.080552
| 2019-11-19T05:40:55
| 2019-11-19T05:40:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 438
|
java
|
package irvine.oeis.a180;
// Generated by gen_pattern.pl - DO NOT EDIT here!
import irvine.oeis.GeneratingFunctionSequence;
/**
* A180595 Digital root of <code>5n</code>.
* @author Georg Fischer
*/
public class A180595 extends GeneratingFunctionSequence {
/** Construct the sequence. */
public A180595() {
super(0, new long[] {0, -5, -1, -6, -2, -7, -3, -8, -4, -9},
new long[] {-1, 0, 0, 0, 0, 0, 0, 0, 0, 1});
}
}
|
[
"sean.irvine@realtimegenomics.com"
] |
sean.irvine@realtimegenomics.com
|
33fdacb6d2a5a9941557469a69ed6f8c98b85dd7
|
75c4712ae3f946db0c9196ee8307748231487e4b
|
/src/main/java/com/alipay/api/domain/AlipayEcoSignFlowCreateModel.java
|
3efbeabcfff3c7af2a47464f3d20cf0fbc0527de
|
[
"Apache-2.0"
] |
permissive
|
yuanbaoMarvin/alipay-sdk-java-all
|
70a72a969f464d79c79d09af8b6b01fa177ac1be
|
25f3003d820dbd0b73739d8e32a6093468d9ed92
|
refs/heads/master
| 2023-06-03T16:54:25.138471
| 2021-06-25T14:48:21
| 2021-06-25T14:48:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,615
|
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;
/**
* 创建流程(E签宝)
*
* @author auto create
* @since 1.0, 2020-08-26 10:59:27
*/
public class AlipayEcoSignFlowCreateModel extends AlipayObject {
private static final long serialVersionUID = 5899853926819142123L;
/**
* 附件信息
*/
@ApiListField("attachments")
@ApiField("attachment")
private List<Attachment> attachments;
/**
* 流程主题
*/
@ApiField("business_scene")
private String businessScene;
/**
* 流程配置信息
*/
@ApiField("config_info")
private ConfigInfo configInfo;
/**
* 模板信息
*/
@ApiListField("template_infos")
@ApiField("template_info")
private List<TemplateInfo> templateInfos;
public List<Attachment> getAttachments() {
return this.attachments;
}
public void setAttachments(List<Attachment> attachments) {
this.attachments = attachments;
}
public String getBusinessScene() {
return this.businessScene;
}
public void setBusinessScene(String businessScene) {
this.businessScene = businessScene;
}
public ConfigInfo getConfigInfo() {
return this.configInfo;
}
public void setConfigInfo(ConfigInfo configInfo) {
this.configInfo = configInfo;
}
public List<TemplateInfo> getTemplateInfos() {
return this.templateInfos;
}
public void setTemplateInfos(List<TemplateInfo> templateInfos) {
this.templateInfos = templateInfos;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
8f956c460a2c7abd42e7334dab8d44464bb286e1
|
ef9a0fa62abac6f5a0aa8095c01af5d5a597df5c
|
/app/src/main/java/com/chatsdk/org/jivesoftware/smackx/bookmark/BookmarkedURL.java
|
0a90a640112ffe927e7c0d4b15d3db4ff6e08faa
|
[] |
no_license
|
Citrus-Platform/AndroidStudio-SC
|
d76cae092f6ce435378dbc3c6a97d72d5bbcd3ad
|
91e4452b54f98f5fa6d9393402d59ee747a86b75
|
refs/heads/master
| 2020-05-21T20:36:26.709174
| 2017-03-21T05:21:38
| 2017-03-21T05:21:38
| 64,597,260
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,573
|
java
|
/**
* $Revision$
* $Date$
*
* Copyright 2003-2007 Jive Software.
*
* All rights reserved. Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.chatsdk.org.jivesoftware.smackx.bookmark;
/**
* Respresents one instance of a URL defined using JEP-0048 Bookmark Storage JEP.
*
* @author Derek DeMoro
*/
public class BookmarkedURL implements SharedBookmark {
private String name;
private final String URL;
private boolean isRss;
private boolean isShared;
protected BookmarkedURL(String URL) {
this.URL = URL;
}
protected BookmarkedURL(String URL, String name, boolean isRss) {
this.URL = URL;
this.name = name;
this.isRss = isRss;
}
/**
* Returns the name representing the URL (eg. Jive Software). This can be used in as a label, or
* identifer in applications.
*
* @return the name reprenting the URL.
*/
public String getName() {
return name;
}
/**
* Sets the name representing the URL.
*
* @param name the name.
*/
protected void setName(String name) {
this.name = name;
}
/**
* Returns the URL.
*
* @return the url.
*/
public String getURL() {
return URL;
}
/**
* Set to true if this URL is an RSS or news feed.
*
* @param isRss True if the URL is a news feed and false if it is not.
*/
protected void setRss(boolean isRss) {
this.isRss = isRss;
}
/**
* Returns true if this URL is a news feed.
*
* @return Returns true if this URL is a news feed.
*/
public boolean isRss() {
return isRss;
}
public boolean equals(Object obj) {
if(!(obj instanceof BookmarkedURL)) {
return false;
}
BookmarkedURL url = (BookmarkedURL)obj;
return url.getURL().equalsIgnoreCase(URL);
}
protected void setShared(boolean shared) {
this.isShared = shared;
}
public boolean isShared() {
return isShared;
}
}
|
[
"munishthakur.2008@gmail.com"
] |
munishthakur.2008@gmail.com
|
5fd8e4556a136d80825d62ec4b5cd97ed18d9e99
|
d53145df70f135dd23a164239dc93cd187ef8fbe
|
/My Spring Class_2019/src/Assignments/replit145.java
|
e9165f4cee17463af243e4f2f1f35930032aa7b7
|
[] |
no_license
|
Batyrjany/JavaClass
|
cc28990a1f8f4aa5b1689a04081b128b8bb7bb52
|
02491d8576ff9165af4dbda98b2bcffa861ba225
|
refs/heads/master
| 2020-07-31T00:28:59.989337
| 2019-09-23T18:58:47
| 2019-09-23T18:58:47
| 210,416,545
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 838
|
java
|
package Assignments;
import java.util.*;
public class replit145 {
public static void main(String[] args) {
Scanner inp = new Scanner(System.in);
String s = inp.next();
person(s) ;
// System.out.println(Arrays.toString(arr));
}
public static void person(String info)
{
//your code here
String[] arr = info.split(",");
String name = "";
String lastname = "";
String age = "";
for (int i = 0; i < arr.length; i++) {
name = arr[0];
lastname = arr[1];
age = arr[2];
}
System.out.println("person name: "+name+ " last name: "+lastname+ " age: "+age);
}
}//end person
|
[
"b.janyew@gmail.com"
] |
b.janyew@gmail.com
|
832212b20ed4a1c741ec3bb80ddf7cd45e913059
|
9c2b23a2d6da1e762400ae963c1f787c3121eb89
|
/cres/com.hundsun.ares.studio.logic.compiler/src/com/hundsun/ares/studio/logic/compiler/util/LogicCompilerUtil.java
|
3ac49728ad0c0b86347817f6c5bfea66c1d161c7
|
[
"MIT"
] |
permissive
|
zhuyf03516/ares-studio
|
5d67757283a52e51100666c9ce35227a63656f0e
|
5648b0f606cb061d06c39ac25b7b206f3307882f
|
refs/heads/master
| 2021-01-11T11:31:51.436304
| 2016-08-11T10:56:31
| 2016-08-11T10:56:31
| 65,444,199
| 0
| 0
| null | 2016-08-11T06:24:33
| 2016-08-11T06:24:32
| null |
GB18030
|
Java
| false
| false
| 2,766
|
java
|
/**
* <p>Copyright: Copyright (c) 2013</p>
* <p>Company: 恒生电子股份有限公司</p>
*/
package com.hundsun.ares.studio.logic.compiler.util;
import java.util.ArrayList;
import java.util.List;
import com.hundsun.ares.studio.atom.AtomFunction;
import com.hundsun.ares.studio.biz.Parameter;
import com.hundsun.ares.studio.biz.util.BizInterfaceParameterUtil;
import com.hundsun.ares.studio.core.IARESProject;
/**
* 业务逻辑编译帮助类
* @author liaogc
*
*/
public class LogicCompilerUtil {
/**
* 判断给定的参数名是否在业务逻辑的输入变量中
* @param logicResource 业务逻辑
* @param parameterName 参数名
* @return
*/
public static boolean isParameterINInputParameterByName(AtomFunction logicResource, String parameterName,IARESProject project) {
return BizInterfaceParameterUtil.isInputParameter(logicResource, parameterName,project);
}
/**
* 判断给定的参数名是否在业务逻辑的输出变量中
* @param logicResource 业务逻辑
* @param parameterName 参数名
* @return
*/
public static boolean isParameterINOutputParameterByName(AtomFunction logicResource, String parameterName,IARESProject project) {
return BizInterfaceParameterUtil.isOutputParameter(logicResource, parameterName,project);
}
/**
* 判断给定的参数名是否在业务逻辑的输入输出变量中
* @param procedure 业务逻辑
* @param parameterName 参数名
* @return
*/
public static boolean isParameterINInputAndOutputParameterByName(AtomFunction logicResource, String parameterName,IARESProject project) {
return isParameterINInputParameterByName(logicResource, parameterName,project) ||
isParameterINOutputParameterByName(logicResource, parameterName,project);
}
/**
* 判断给定的参数名是否在业务逻辑的内部变量中
* @param procedure 业务逻辑
* @param parameterName 参数名
* @return
*/
public static boolean isParameterINInternalVariablesByName(AtomFunction logicResource, String parameterName) {
List<String> names = new ArrayList<String>();
for (Parameter para : logicResource.getInternalVariables()) {
names.add(para.getId());
}
return names.contains(parameterName);
}
/**
* 判断给定的参数名是否在业务逻辑的输入输出以及内部变量中
* @param procedure 业务逻辑
* @param parameterName 参数名
* @return
*/
public static boolean isParameterINLogicParameterByName(AtomFunction logicResource, String parameterName,IARESProject project) {
return isParameterINInputParameterByName(logicResource, parameterName,project) ||
isParameterINOutputParameterByName(logicResource, parameterName,project) ||
isParameterINInternalVariablesByName(logicResource, parameterName);
}
}
|
[
"zhuyf@hundsun.com"
] |
zhuyf@hundsun.com
|
d04177f479d440fb703612714f19c413a11f4e20
|
08345dde7830b0080ae84c0dee096053febea69d
|
/designPatternn_chan/src/main/java/c4/adapter/section1/IUserInfo.java
|
add273c6ac8b28595314f18aef5b5e72f5ccb387
|
[] |
no_license
|
sumnear/codeLife
|
fbf2a929fd4b829c1cdd69464b30e169a5bc7fcf
|
227a2a2480d27fd1961e62f89173216d045736b1
|
refs/heads/master
| 2022-12-23T07:36:10.508350
| 2021-06-27T13:06:34
| 2021-06-27T13:06:34
| 198,769,670
| 0
| 0
| null | 2022-12-16T05:24:26
| 2019-07-25T06:18:32
|
Java
|
UTF-8
|
Java
| false
| false
| 636
|
java
|
package c4.adapter.section1;
/**
* @author cbf4Life cbf4life@126.com
* I'm glad to share my knowledge with you all.
* 用户信息对象
*/
public interface IUserInfo {
//获得用户姓名
public String getUserName();
//获得家庭地址
public String getHomeAddress();
//手机号码,这个太重要,手机泛滥呀
public String getMobileNumber();
//办公电话,一般式座机
public String getOfficeTelNumber();
//这个人的职位是啥
public String getJobPosition();
//获得家庭电话,这个有点缺德,我是不喜欢打家庭电话讨论工作
public String getHomeTelNumber();
}
|
[
"402347012@qq.com"
] |
402347012@qq.com
|
c2113792c88c66b7e56b7b7fb893c000aa848083
|
c6352f6a45bc3ddfc82ffbba063b0c8939613ac7
|
/src/client/net/sf/saxon/ce/trans/KeyDefinitionSet.java
|
0aeaf86eef72104e488ff38a4ca065befc9c90fb
|
[] |
no_license
|
bitfabrikken/Saxon-CE
|
33a4e2d05965d87a2bb9c0bca13b4a1ac3efcfce
|
b7a0ecf542f177c0669ac225741b4773d9066312
|
refs/heads/master
| 2023-04-13T05:08:22.237748
| 2021-04-09T18:04:32
| 2021-04-09T18:04:32
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,810
|
java
|
package client.net.sf.saxon.ce.trans;
import client.net.sf.saxon.ce.om.StructuredQName;
import java.util.ArrayList;
import java.util.List;
/**
* A set of xsl:key definitions in a stylesheet that share the same name
*/
public class KeyDefinitionSet {
StructuredQName keyName;
int keySetNumber; // unique among the KeyDefinitionSets within a KeyManager
List<KeyDefinition> keyDefinitions;
String collationName;
boolean backwardsCompatible; // true if any of the keys is backwards compatible
/**
* Create a key definition set for keys sharing a given name
* @param keyName the name of the key definitions in this set
* @param keySetNumber a unique number identifying this key definition set
*/
public KeyDefinitionSet(StructuredQName keyName, int keySetNumber) {
this.keyName = keyName;
this.keySetNumber = keySetNumber;
keyDefinitions = new ArrayList(3);
}
/**
* Add a key definition to this set of key definitions. The caller is responsible for ensuring that
* all key definitions in a key definition set have the same name
* @param keyDef the key definition to be added
* @throws XPathException if the key definition uses a different collation from others in the set
*/
public void addKeyDefinition(KeyDefinition keyDef) throws XPathException {
if (keyDefinitions.isEmpty()) {
collationName = keyDef.getCollationName();
} else {
if ((collationName == null && keyDef.getCollationName() != null) ||
(collationName != null && !collationName.equals(keyDef.getCollationName()))) {
XPathException err = new XPathException("All keys with the same name must use the same collation");
err.setErrorCode("XTSE1220");
throw err;
}
// ignore this key definition if it is a duplicate of another already present
List v = getKeyDefinitions();
for (int i=0; i<v.size(); i++) {
KeyDefinition other = (KeyDefinition)v.get(i);
if (keyDef.getMatch().equals(other.getMatch()) &&
keyDef.getBody().equals(other.getBody())) {
return;
}
}
}
if (keyDef.isBackwardsCompatible()) {
backwardsCompatible = true;
}
keyDefinitions.add(keyDef);
}
/**
* Get the name of the key definitions in this set (they all share the same name)
* @return the name of these key definitions
*/
public StructuredQName getKeyName() {
return keyName;
}
/**
* Get the KeySet number. This uniquely identifies the KeyDefinitionSet within a KeyManager
* @return the unique number
*/
public int getKeySetNumber() {
return keySetNumber;
}
/**
* Get the key definitions in this set
* @return the key definitions in this set
*/
public List<KeyDefinition> getKeyDefinitions() {
return keyDefinitions;
}
/**
* Determine if the keys are to be evaluated in backwards compatible mode
* @return true if backwards compatibility is in force for at least one of the keys in the set
*/
public boolean isBackwardsCompatible() {
return backwardsCompatible;
}
}
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
// If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
// This Source Code Form is “Incompatible With Secondary Licenses”, as defined by the Mozilla Public License, v. 2.0.
|
[
"oneil@saxonica.com"
] |
oneil@saxonica.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.