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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d38a055eca1559cf43ab117612ec7707cf745d4e
|
520336045e5e3e57e15d04dc5b515ebd36ef3e84
|
/app/src/main/java/com/example/jingbin/cloudreader/adapter/CategoryArticleAdapter.java
|
8354469ebc88a05be7b66a394225b5606d6850d6
|
[
"Apache-2.0"
] |
permissive
|
gx-byte/CloudReader
|
bca30eceb7510796882c8981bb29138f6aa5648a
|
da4ac3cb3c5529c51792510c24dfe2a79ccedbf4
|
refs/heads/master
| 2022-11-09T03:17:41.924809
| 2020-06-21T06:25:22
| 2020-06-21T06:25:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,550
|
java
|
package com.example.jingbin.cloudreader.adapter;
import android.app.Activity;
import android.view.View;
import com.example.jingbin.cloudreader.R;
import com.example.jingbin.cloudreader.bean.wanandroid.ArticlesBean;
import com.example.jingbin.cloudreader.data.UserUtil;
import com.example.jingbin.cloudreader.data.model.CollectModel;
import com.example.jingbin.cloudreader.databinding.ItemCategoryArticleBinding;
import com.example.jingbin.cloudreader.utils.PerfectClickListener;
import com.example.jingbin.cloudreader.utils.ToastUtil;
import com.example.jingbin.cloudreader.view.webview.WebViewActivity;
import com.example.jingbin.cloudreader.viewmodel.wan.WanNavigator;
import me.jingbin.bymvvm.adapter.BaseBindingAdapter;
import me.jingbin.bymvvm.adapter.BaseBindingHolder;
/**
* Created by jingbin on 2019/01/19.
*/
public class CategoryArticleAdapter extends BaseBindingAdapter<ArticlesBean, ItemCategoryArticleBinding> {
private CollectModel model;
private Activity activity;
public CategoryArticleAdapter(Activity activity) {
super(R.layout.item_category_article);
model = new CollectModel();
this.activity = activity;
}
@Override
protected void bindView(BaseBindingHolder holder, ArticlesBean bean, ItemCategoryArticleBinding binding, int position) {
if (bean != null) {
binding.setAdapter(this);
binding.setBean(bean);
binding.executePendingBindings();
binding.vbCollect.setOnClickListener(new PerfectClickListener() {
@Override
protected void onNoDoubleClick(View v) {
if (UserUtil.isLogin(activity) && model != null) {
if (!binding.vbCollect.isChecked()) {
model.unCollect(false, bean.getId(), bean.getOriginId(), new WanNavigator.OnCollectNavigator() {
@Override
public void onSuccess() {
bean.setCollect(binding.vbCollect.isChecked());
ToastUtil.showToastLong("已取消收藏");
}
@Override
public void onFailure() {
bean.setCollect(true);
refreshNotifyItemChanged(position);
ToastUtil.showToastLong("取消收藏失败");
}
});
} else {
model.collect(bean.getId(), new WanNavigator.OnCollectNavigator() {
@Override
public void onSuccess() {
bean.setCollect(true);
}
@Override
public void onFailure() {
bean.setCollect(false);
refreshNotifyItemChanged(position);
}
});
}
} else {
bean.setCollect(false);
refreshNotifyItemChanged(position);
}
}
});
}
}
public void openDetail(ArticlesBean bean) {
WebViewActivity.loadUrl(activity, bean.getLink(), bean.getTitle());
}
}
|
[
"770413277@qq.com"
] |
770413277@qq.com
|
e00fe282b3b7ea963f741fe6f3879d8376a9701a
|
a4a51084cfb715c7076c810520542af38a854868
|
/src/main/java/com/tencent/ijk/media/player/misc/IAndroidIO.java
|
07147fbb350cc2e4fb5c3724cd9c66413cd84b5c
|
[] |
no_license
|
BharathPalanivelu/repotest
|
ddaf56a94eb52867408e0e769f35bef2d815da72
|
f78ae38738d2ba6c9b9b4049f3092188fabb5b59
|
refs/heads/master
| 2020-09-30T18:55:04.802341
| 2019-12-02T10:52:08
| 2019-12-02T10:52:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 291
|
java
|
package com.tencent.ijk.media.player.misc;
import java.io.IOException;
public interface IAndroidIO {
int close() throws IOException;
int open(String str) throws IOException;
int read(byte[] bArr, int i) throws IOException;
long seek(long j, int i) throws IOException;
}
|
[
"noiz354@gmail.com"
] |
noiz354@gmail.com
|
0628112d6a798f766416f410ebcbd40e0787c01d
|
b61a8ce87a27a325dba024f3d0fc67fb596fd291
|
/deptTest/src/com/bit/controller/DeptController.java
|
6dc520ab9b447c187dc160c7c1ad109c30cdb1b4
|
[] |
no_license
|
sagek23/Java-Training
|
df8b7003b2d791f99c195433f61685a3ded3988a
|
015e3dfffb10e3665960a71203cfcf37783048df
|
refs/heads/master
| 2022-07-12T06:42:13.632644
| 2019-10-31T00:36:09
| 2019-10-31T00:36:09
| 218,571,922
| 0
| 0
| null | 2022-06-22T20:06:54
| 2019-10-30T16:24:33
|
Java
|
UTF-8
|
Java
| false
| false
| 1,182
|
java
|
package com.bit.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
import com.bit.dao.DeptDao;
import com.bit.vo.DeptVo;
@Controller
public class DeptController {
DeptDao dao = new DeptDao();
public void setDao(DeptDao dao) {
this.dao = dao;
}
@RequestMapping(value = "/idept.do", method = RequestMethod.GET)//요청이름을 같게하려면 수행양식 입력
public void insertForm() //상태유지할 값이 없으므로 void
{
}
@RequestMapping(value = "/idept.do", method = RequestMethod.POST)
public ModelAndView insertSubmit(DeptVo d)
{
ModelAndView mav = new ModelAndView();
int re = dao.insert(d);
if(re>0)
{
mav.setViewName("redirect:/ldept.do");
}
else
{
mav.addObject("msg", "부서등록실패");
mav.setViewName("error.jsp");
}
return mav;
}
@RequestMapping("/ldept.do")
public ModelAndView dept()
{
ModelAndView mav = new ModelAndView();
mav.addObject("list", dao.listAll());
mav.setViewName("dept");
return mav;
}
}
|
[
"ksjsjk123@gmail.com"
] |
ksjsjk123@gmail.com
|
d698811b36ceec0f8f986bdfa8b7954ace54e9c6
|
ad2317023bcaa9238ee7d3386a2ee156701b5109
|
/Lexer/src/main/java/biepjv/lexer/IdentToken.java
|
412aa72966110b6b7c3aa4a191e2e77c035eedc2
|
[] |
no_license
|
danecek/bie-pjv-2017-summer
|
956792ceebb4e6cd79fa3ec717721f55af98882e
|
49a0be4ea767b256331a26eecb7dbe714f65d8c3
|
refs/heads/master
| 2020-05-27T14:47:39.611280
| 2017-05-11T14:13:16
| 2017-05-11T14:13:16
| 82,560,955
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 618
|
java
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package biepjv.lexer;
/**
*
* @author danecek
*/
public class IdentToken extends Token {
private String ident;
public IdentToken(String ident) {
super(TokenKind.IDENT);
this.ident = ident;
}
@Override
public String toString() {
return TokenKind.IDENT + "(" + ident + ')';
}
/**
* @return the ident
*/
public String getIdent() {
return ident;
}
}
|
[
"danecek@fit.cvut.cz"
] |
danecek@fit.cvut.cz
|
0b3e5167ebc5d0d9923e67e3c719384c46d0100a
|
354ade2c776c767b51c0282ea3e8e3f6b1ed0157
|
/Bee/src/com/linkstec/bee/UI/spective/basic/logic/node/BFlowEnd.java
|
07e19327929a74a9fff45e37074a4dd3116838a3
|
[] |
no_license
|
pan1394/SqlParser
|
b4286083b9a2b58fa922ab785cc83eab54c51c61
|
ec0d81ab35e2ce18ed9ad4238640e39a2c4d165c
|
refs/heads/master
| 2022-07-14T13:59:15.612534
| 2019-08-23T07:34:14
| 2019-08-23T07:34:14
| 178,761,865
| 0
| 0
| null | 2022-06-21T01:43:32
| 2019-04-01T01:12:23
|
Java
|
UTF-8
|
Java
| false
| false
| 1,654
|
java
|
package com.linkstec.bee.UI.spective.basic.logic.node;
import java.awt.Color;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Rectangle;
import com.linkstec.bee.UI.BeeUIUtils;
import com.linkstec.bee.UI.spective.basic.logic.model.BClassEnd;
import com.linkstec.bee.core.fw.basic.BLogic;
import com.linkstec.bee.core.fw.basic.IEndCell;
import com.linkstec.bee.core.fw.basic.IExceptionCell;
import com.mxgraph.util.mxRectangle;
import com.mxgraph.view.mxCellState;
public class BFlowEnd extends BNode implements IEndCell {
/**
*
*/
private static final long serialVersionUID = -1467695367864124769L;
private String name;
private BClassEnd logic;
public BFlowEnd(String name, BClassEnd logic) {
this.name = name;
this.setStyle("rounded=1;strokeWidth=0.5;strokeColor=gray");
this.setVertex(true);
this.getGeometry().setWidth(100);
this.getGeometry().setHeight(50);
this.logic = logic;
}
@Override
public void paint(Graphics g, mxCellState state, double scale) {
if (name != null) {
mxRectangle box = state.getBoundingBox();
Rectangle rect = box.getRectangle();
g.setFont(BeeUIUtils.getDefaultFont());
FontMetrics m = g.getFontMetrics();
int width = m.stringWidth(name);
int y = rect.y + 25 + m.getAscent();
int x = rect.x + (rect.width - width) / 2;
g.setColor(Color.BLACK);
g.drawString(name, x, y);
int y2 = y + m.getDescent();
g.drawLine(x, y2, x + width, y2);
}
}
@Override
public IExceptionCell getExcetion() {
return null;
}
@Override
public BLogic getLogic() {
return logic;
}
}
|
[
"pan1394@126.com"
] |
pan1394@126.com
|
3af6d6ebfda5b51cd50a0f0cfbf6229c76f684b7
|
c278b2e06e98b0b99ca7350cfc12d2e535db1841
|
/posp/trans-core/src/main/java/com/yl/pay/pos/entity/SecretKey.java
|
6e252f7c66554edee81616ddd18f782759c10aab
|
[] |
no_license
|
SplendorAnLin/paymentSystem
|
ea778c03179a36755c52498fd3f5f1a5bbeb5d34
|
db308a354a23bd3a48ff88c16b29a43c4e483e7d
|
refs/heads/master
| 2023-02-26T14:16:27.283799
| 2022-10-20T07:50:35
| 2022-10-20T07:50:35
| 191,535,643
| 5
| 6
| null | 2023-02-22T06:42:24
| 2019-06-12T09:01:15
|
Java
|
UTF-8
|
Java
| false
| false
| 893
|
java
|
package com.yl.pay.pos.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* Title: 银行
* Copyright: Copyright (c)2011
* Company: lepay
* @author haitao.liu
*/
@Entity
@Table(name = "SECRET_KEY")
public class SecretKey extends BaseEntity{
private String keyName; //
private String key; //
private String checkValue; //
@Column(name = "KEY_VAL", length = 50)
public String getKey() {
return key;
}
@Column(name = "KEY_NAME", length = 50)
public String getKeyName() {
return keyName;
}
public void setKeyName(String keyName) {
this.keyName = keyName;
}
public void setKey(String key) {
this.key = key;
}
@Column(name = "CHECK_VALUE", length = 50)
public String getCheckValue() {
return checkValue;
}
public void setCheckValue(String checkValue) {
this.checkValue = checkValue;
}
}
|
[
"zl88888@live.com"
] |
zl88888@live.com
|
845e4fc2d79bac022a86d27b444cdf19e38e12ff
|
f97ba375da68423d12255fa8231365104867d9b0
|
/study-notes/geekbang.org/视频课/小马哥讲Spring核心编程思想/199 | Spring事件监听器实现原理:面向接口和注解的事件监听器实现有区别吗?/ioc-container-overview/src/main/java/org/geekbang/thinking/in/spring/ioc/overview/domain/User.java
|
9bf99bd7af8a73de3fdc9e36606c15a932cb2b8a
|
[
"MIT"
] |
permissive
|
lei720/coderZsq.practice.server
|
7a728612e69c44e0877c0153c828b50d8ea7fa7c
|
4ddf9842cd088d4a0c2780ac22d41d7e6229164b
|
refs/heads/master
| 2023-07-16T11:21:26.942849
| 2021-09-08T04:38:07
| 2021-09-08T04:38:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,293
|
java
|
package org.geekbang.thinking.in.spring.ioc.overview.domain;
import org.geekbang.thinking.in.spring.ioc.overview.enums.City;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.core.io.Resource;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import java.util.Arrays;
import java.util.List;
import java.util.Properties;
/**
* 用户类
*/
public class User implements BeanNameAware {
private Long id;
private String name;
private City city;
private City[] workCities;
private List<City> lifeCites;
private Resource configFileLocation;
private Company company;
private Properties context;
private String contextAsText;
/**
* 当前 Bean 的名称
*/
private transient String beanName;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public City getCity() {
return city;
}
public void setCity(City city) {
this.city = city;
}
public Resource getConfigFileLocation() {
return configFileLocation;
}
public void setConfigFileLocation(Resource configFileLocation) {
this.configFileLocation = configFileLocation;
}
public City[] getWorkCities() {
return workCities;
}
public void setWorkCities(City[] workCities) {
this.workCities = workCities;
}
public List<City> getLifeCites() {
return lifeCites;
}
public void setLifeCites(List<City> lifeCites) {
this.lifeCites = lifeCites;
}
public Company getCompany() {
return company;
}
public void setCompany(Company company) {
this.company = company;
}
public static User createUser() {
User user = new User();
user.setId(1L);
user.setName("小马哥");
return user;
}
@PostConstruct
public void init() {
System.out.println("User Bean [" + beanName + "] 初始化...");
}
@PreDestroy
public void destroy() {
System.out.println("User Bean [" + beanName + "] 销毁...");
}
@Override
public void setBeanName(String name) {
this.beanName = name;
}
public Properties getContext() {
return context;
}
public void setContext(Properties context) {
this.context = context;
}
public String getContextAsText() {
return contextAsText;
}
public void setContextAsText(String contextAsText) {
this.contextAsText = contextAsText;
}
@Override
public String toString() {
return "User{" +
"id=" + id +
", name='" + name + '\'' +
", city=" + city +
", workCities=" + Arrays.toString(workCities) +
", lifeCites=" + lifeCites +
", configFileLocation=" + configFileLocation +
", company=" + company +
", context=" + context +
", contextAsText='" + contextAsText + '\'' +
", beanName='" + beanName + '\'' +
'}';
}
}
|
[
"a13701777868@yahoo.com"
] |
a13701777868@yahoo.com
|
a6550bf2b4fd74dd81a741bc62f237264f7794a6
|
38e7e5e5e8d9d2196911f60847e3b3ac035c8cad
|
/seller/tTPseller/src/main/java/com/tianpingpai/seller/tools/TLog.java
|
73543726e2958309744b46a1b578ba602cf348f8
|
[] |
no_license
|
RogerLwr/TPP
|
7173fa82ee551311b10c5c74906cb101730d6222
|
8c568bc71f33bca6fb32cc465db5e621a93d9e6d
|
refs/heads/master
| 2021-06-30T02:22:56.796460
| 2017-09-16T06:28:40
| 2017-09-16T06:28:40
| 103,729,317
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 904
|
java
|
package com.tianpingpai.seller.tools;
import android.util.Log;
/**
* 公共日志工具类
* @author Administrator
*
*/
public class TLog {
//公关日志的开关
private static boolean isDebug = URLApi.IS_DEBUG;
// private static final boolean isDebug = false;
/**
* 打印错误日志
* @param tag
* @param log
*/
public static void e(String tag , String log){
if(isDebug){
Log.e(tag, log);
}
}
/**
* 打印警告日志
* @param tag
* @param log
*/
public static void w(String tag , String log){
if(isDebug){
Log.w(tag, log);
}
}
/**
* 打印信息级别日志
* @param tag
* @param log
*/
public static void i(String tag , String log){
if(isDebug){
Log.i(tag, log);
}
}
/**
* 打印低级别的日志
* @param tag
* @param log
*/
public static void d(String tag , String log){
if(isDebug){
Log.d(tag, log);
}
}
}
|
[
"liuwenrong@coolpad.com"
] |
liuwenrong@coolpad.com
|
1936976c81499b581a8c144488ea9fa92ca02e9e
|
209b4f34c2f89a762f78193675bd8addf76620bb
|
/PlayerVideo/app/src/main/java/com/tv91/model/Url.java
|
a90e45c3b4d8fbd2bac58cf5c372613317af29d8
|
[] |
no_license
|
xingchongzhu/apktool
|
1b0ed3ced42cb28fa072439785e744370963aee6
|
3c2d79368f32e323168d0a2a59c6b73fc83d4d56
|
refs/heads/main
| 2023-08-13T11:31:12.616682
| 2021-09-14T12:00:39
| 2021-09-14T12:00:39
| 404,994,078
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,381
|
java
|
package com.tv91.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown = true)
public final class Url {
public final String apiUrl;
public final String apiUrl2;
public final String novelUrl;
public final String reportUrl;
public final String webUrl;
@JsonCreator
public Url(@JsonProperty("A") String str, @JsonProperty("U") String str2, @JsonProperty("N") String str3, @JsonProperty("S") String str4, @JsonProperty("R") String str5) {
this.apiUrl = str;
this.webUrl = str2;
this.novelUrl = str3;
this.apiUrl2 = str4;
this.reportUrl = str5;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("Url{apiUrl='");
sb.append(this.apiUrl);
sb.append('\'');
sb.append(", webUrl='");
sb.append(this.webUrl);
sb.append('\'');
sb.append(", novelUrl='");
sb.append(this.novelUrl);
sb.append('\'');
sb.append(", apiUrl2='");
sb.append(this.apiUrl2);
sb.append('\'');
sb.append(", reportUrl='");
sb.append(this.reportUrl);
sb.append('\'');
sb.append('}');
return sb.toString();
}
}
|
[
"hczh02@royole.com"
] |
hczh02@royole.com
|
0b9188b077e6c9a32610b3824d4d297da8b4c607
|
ed166738e5dec46078b90f7cca13a3c19a1fd04b
|
/minor/guice-OOM-error-reproduction/src/main/java/gen/H_Gen30.java
|
95ada91f72e0e906900b135eb9427f09b958f0c5
|
[] |
no_license
|
michalradziwon/script
|
39efc1db45237b95288fe580357e81d6f9f84107
|
1fd5f191621d9da3daccb147d247d1323fb92429
|
refs/heads/master
| 2021-01-21T21:47:16.432732
| 2016-03-23T02:41:50
| 2016-03-23T02:41:50
| 22,663,317
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 326
|
java
|
package gen;
public class H_Gen30 {
@com.google.inject.Inject
public H_Gen30(H_Gen31 h_gen31){
System.out.println(this.getClass().getCanonicalName() + " created. " + h_gen31 );
}
@com.google.inject.Inject public void injectInterfaceWithoutImpl(gen.InterfaceWithoutImpl i){} // should expolode :)
}
|
[
"michal.radzi.won@gmail.com"
] |
michal.radzi.won@gmail.com
|
e6992452b1c7c6c2c5ad376f8bafe150b353520a
|
832a25d71428fcc97554ead3184c34c7668c13f6
|
/src/main/java/com/jeeplus/modules/ironfoemergencyroom/entity/Ironfoemergencyroom.java
|
922cdfec23e16614b01fd194ae26fd607439c987
|
[] |
no_license
|
wxbing2015/jeeplusS
|
bb3b2bc7e475a7042c9a147952008ca93de59feb
|
faf39d547fad5fad9ff0e046fd9a657f2202a886
|
refs/heads/master
| 2020-07-19T11:44:35.847707
| 2018-05-02T11:59:39
| 2018-05-02T11:59:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,134
|
java
|
/**
* Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
*/
package com.jeeplus.modules.ironfoemergencyroom.entity;
import java.util.Date;
import com.jeeplus.common.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import com.jeeplus.modules.ironfofinance.entity.Ironfofinance;
import com.jeeplus.modules.sys.entity.User;
/**
* 急诊室Entity
* @author mikesun
* @version 2018-03-22
*/
public class Ironfoemergencyroom extends DataEntity<Ironfoemergencyroom> {
private static final long serialVersionUID = 1L;
/**
*
*/
// private static final long serialVersionUID = -8005893759441351419L;
private String sbmc; // 设备名称
private String pp; // 品牌
private String xh; // 型号
private String sl; // 数量(台/个)
private String sbjg; // 设备价格(元)
private String trsynf; // 投入使用年份
private String doc_id; // 主表id
public Ironfoemergencyroom() {
super();
}
@ExcelField(title="设备名称", align=2, sort=7)
public String getSbmc() {
return sbmc;
}
public void setSbmc(String sbmc) {
this.sbmc = sbmc;
}
@ExcelField(title="品牌", align=2, sort=8)
public String getPp() {
return pp;
}
public void setPp(String pp) {
this.pp = pp;
}
@ExcelField(title="型号", align=2, sort=9)
public String getXh() {
return xh;
}
public void setXh(String xh) {
this.xh = xh;
}
@ExcelField(title="数量(台/个)", align=2, sort=10)
public String getSl() {
return sl;
}
public void setSl(String sl) {
this.sl = sl;
}
@ExcelField(title="设备价格(元)", align=2, sort=11)
public String getSbjg() {
return sbjg;
}
public void setSbjg(String sbjg) {
this.sbjg = sbjg;
}
@ExcelField(title="投入使用年份", align=2, sort=12)
public String getTrsynf() {
return trsynf;
}
public void setTrsynf(String trsynf) {
this.trsynf = trsynf;
}
@ExcelField(title="主表id", align=2, sort=13)
public String getDoc_id() {
return doc_id;
}
public void setDoc_id(String doc_id) {
this.doc_id = doc_id;
}
}
|
[
"anti_magina@yeah.net"
] |
anti_magina@yeah.net
|
cb51e3e40e18c7a0b2bc44699b0612ab166e5be2
|
678a3d58c110afd1e9ce195d2f20b2531d45a2e0
|
/sources/com/airbnb/android/core/models/generated/GenPreBookingQuestion.java
|
6bbd38363f51bc33ec39f9175459aa6166c88d25
|
[] |
no_license
|
jasonnth/AirCode
|
d1c37fb9ba3d8087efcdd9fa2103fb85d13735d5
|
d37db1baa493fca56f390c4205faf5c9bbe36604
|
refs/heads/master
| 2020-07-03T08:35:24.902940
| 2019-08-12T03:34:56
| 2019-08-12T03:34:56
| 201,842,970
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,663
|
java
|
package com.airbnb.android.core.models.generated;
import android.os.Parcel;
import android.os.Parcelable;
import com.fasterxml.jackson.annotation.JsonProperty;
public abstract class GenPreBookingQuestion implements Parcelable {
@JsonProperty("checked")
protected boolean mChecked;
@JsonProperty("question")
protected String mQuestion;
@JsonProperty("type")
protected String mType;
protected GenPreBookingQuestion(String question, String type, boolean checked) {
this();
this.mQuestion = question;
this.mType = type;
this.mChecked = checked;
}
protected GenPreBookingQuestion() {
}
public String getQuestion() {
return this.mQuestion;
}
@JsonProperty("question")
public void setQuestion(String value) {
this.mQuestion = value;
}
public String getType() {
return this.mType;
}
@JsonProperty("type")
public void setType(String value) {
this.mType = value;
}
public boolean isChecked() {
return this.mChecked;
}
@JsonProperty("checked")
public void setChecked(boolean value) {
this.mChecked = value;
}
public int describeContents() {
return 0;
}
public void writeToParcel(Parcel parcel, int flags) {
parcel.writeString(this.mQuestion);
parcel.writeString(this.mType);
parcel.writeBooleanArray(new boolean[]{this.mChecked});
}
public void readFromParcel(Parcel source) {
this.mQuestion = source.readString();
this.mType = source.readString();
this.mChecked = source.createBooleanArray()[0];
}
}
|
[
"thanhhuu2apc@gmail.com"
] |
thanhhuu2apc@gmail.com
|
92db34926073cb4c53e5364d28a74ba1c3947916
|
dfb8b54fa16a4c0532b7863723c661258f21f2bb
|
/src/main/java/com/tong/thinking/chapter15/s17/p421/Shape.java
|
4efc35b24dc912fc96822cd5cec90737004935ac
|
[] |
no_license
|
Tong-c/javaBasic
|
86c52e2bb5b9e0eabe7f77ed675cda999cc32255
|
6cfb9e0e8f43d74fd5c2677cd251fec3cce799c4
|
refs/heads/master
| 2021-06-01T11:53:53.672254
| 2021-01-05T03:58:10
| 2021-01-05T03:58:10
| 130,291,741
| 2
| 0
| null | 2020-10-13T02:37:08
| 2018-04-20T01:28:16
|
Java
|
UTF-8
|
Java
| false
| false
| 252
|
java
|
package com.tong.thinking.chapter15.s17.p421;
public class Shape {
public void rotate() {
System.out.println(this + " rotate");
}
public void resize(int newSize) {
System.out.println(this + " resize " + newSize);
}
}
|
[
"1972376180@qq.com"
] |
1972376180@qq.com
|
189e0fdcb1110e1d762653be4768cb92c9428ee3
|
ce740da0d94325cefb941978f0061633492be446
|
/TestMongo/src/test/MongoDB.java
|
7d745e4e730ef31f3c80943d7f34f1a325c035ee
|
[] |
no_license
|
huazhai28/test
|
cc15435f332304742eac3e570a259ce333528803
|
628f9c7a631a004cad319f3d53d793d42b48f482
|
refs/heads/master
| 2020-12-28T16:23:34.607278
| 2020-02-05T09:02:25
| 2020-02-05T09:02:25
| 238,404,756
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 464
|
java
|
package test;
import com.mongodb.client.MongoDatabase;
public class MongoDB{
private String db;
private MongoObject client;
public void setClient(MongoObject client) {
this.client = client;
}
public void setDb(String db) {
this.db = db;
}
public MongoDB(MongoObject client,String db){
this.client=client;
this.db=db;
}
public MongoDatabase excute(){
return client.run().getDatabase(db);
}
}
|
[
"Administrator@windows10.microdone.cn"
] |
Administrator@windows10.microdone.cn
|
f47ac61cde9e4aaecd060fabdec3012ca9d92a8e
|
22a542b68ccafc2b7a92e149a36be7e08ca08743
|
/app/src/main/java/com/ronda/logdemo/LogHelper.java
|
5c5b3293ebf33ae99b11c4764f572b06cdcd7326
|
[] |
no_license
|
githubRonda/LogDemo
|
ae01293925b672fd2e386f1f3ee734db37e4e272
|
c6a0b4aad0016b4f4c1db9da821148c5c8f30955
|
refs/heads/master
| 2021-01-24T11:45:48.623782
| 2018-02-27T08:59:31
| 2018-02-27T08:59:31
| 123,101,593
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 978
|
java
|
package com.ronda.logdemo;
import android.util.Log;
/**
* Created by Ronda on 2017/12/11.
*/
public class LogHelper {
public static boolean isShowLog = false;
private static final int RETURN_NOLOG = -1;
public static int i(String tag, String msg) {
if (msg == null)
msg = "";
return isShowLog ? Log.i(tag, msg) : RETURN_NOLOG;
}
public static int d(String tag, String msg) {
if (msg == null)
msg = "";
return isShowLog ? Log.d(tag, msg) : RETURN_NOLOG;
}
public static int e(String tag, String msg) {
if (msg == null)
msg = "";
return isShowLog ? Log.e(tag, msg) : RETURN_NOLOG;
}
public static int w(String tag, String msg) {
if (msg == null)
msg = "";
return isShowLog ? Log.w(tag, msg) : RETURN_NOLOG;
}
public static void setDebugMode(boolean isDebug){
LogHelper.isShowLog = isDebug;
}
}
|
[
"1575558177@qq.com"
] |
1575558177@qq.com
|
cdebf476636eda768be066500d6243b48cfa68c0
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/7/7_61fe5ad21364cdf24774562a5c1f81c8d159aaeb/PackedIntegerTestCase/7_61fe5ad21364cdf24774562a5c1f81c8d159aaeb_PackedIntegerTestCase_t.java
|
3cdbef63996dec7a9b7db158f8b8431f75e56fda
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 3,610
|
java
|
/*
* JBoss, Home of Professional Open Source.
* Copyright (c) 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.ejb.client.protocol;
import org.junit.Test;
import java.io.DataInputStream;
import java.io.DataOutput;
import java.io.DataOutputStream;
import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import static junit.framework.Assert.assertEquals;
import static junit.framework.Assert.fail;
/**
* @author <a href="mailto:cdewolf@redhat.com">Carlo de Wolf</a>
*/
public class PackedIntegerTestCase {
private static void test(final int value, final int bufsize) throws IOException {
final byte array[] = new byte[bufsize];
final DataOutput out = new DataOutputStream(new OutputStream() {
private int count = 0;
@Override
public void write(int b) throws IOException {
if (count >= array.length)
throw new EOFException("bufsize " + bufsize + " exceeded");
assert b >= 0;
array[count++] = (byte) b;
}
});
PackedInteger.writePackedInteger(out, value);
final int result = PackedInteger.readPackedInteger(new DataInputStream(new InputStream() {
private int count = 0;
@Override
public int read() throws IOException {
return array[count++] & 0xFF;
}
}));
assertEquals(value, result);
}
@Test
public void test1() throws IOException {
test(1, 1);
}
@Test
public void test128() throws IOException {
try {
test(128, 1);
fail("Did not receive a EOFException for value = 128 and number of bytes = 1");
} catch (EOFException e) {
// good
}
test(128, 2);
}
@Test
public void test255() throws IOException {
try {
test(255, 1);
fail("Did not receive a EOFException for value = 255 and number of bytes = 1");
} catch (EOFException e) {
// good
}
test(255, 2);
}
@Test
public void test32768() throws IOException {
try {
test(32768, 2);
fail("Did not receive a EOFException for value = 32768 and number of bytes = 2");
} catch (EOFException e) {
// good
}
test(32768, 3);
}
@Test
public void testZ() throws IOException {
for (int i = 0; i < 40000; i++) {
test(i, 3);
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
aa63de86246d33a8bb1225a430dcc9a4f28901b8
|
42c9e3a650bb9ac7148547ce42906c7935bbe197
|
/java/source/com/kodemore/jasper/KmJasperType.java
|
cd5b8ba547e947e8475b2bdd7026532f2a6e1db4
|
[
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
LucasMcFeature/paragon-server
|
adfe0db9487128e897435f0fd32da8f4d7adccc3
|
00d542757089e2296a623a83ad1480be819893d3
|
refs/heads/master
| 2020-12-26T04:37:10.776462
| 2014-01-21T18:00:16
| 2014-01-21T18:00:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,496
|
java
|
/*
Copyright (c) 2010-2010 www.kodemore.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.
*/
package com.kodemore.jasper;
public enum KmJasperType
{
//##################################################
//# values
//##################################################
String("string", "java.lang.String"),
Integer("integer", "java.lang.Integer"),
Boolean("boolean", "java.lang.Boolean"),
Byte("byte", "java.lang.Byte"),
Date("date", "java.util.Date"),
Timestamp("timestamp", "java.sql.Timestamp"),
Time("time", "java.sql.Time"),
Double("double", "java.lang.Double"),
Float("float", "java.lang.Float"),
InputStream("inputStream", "java.io.InputStream"),
Long("long", "java.lang.Long"),
Short("short", "java.lang.Short"),
BigDecimal("bigDecimal", "java.math.BigDecimal"),
Object("object", "java.lang.Object");
//##################################################
//# variables
//##################################################
private String _code;
private String _name;
//##################################################
//# constructor
//##################################################
private KmJasperType(String code, String name)
{
_code = code;
_name = name;
}
//##################################################
//# accessing
//##################################################
public String getCode()
{
return _code;
}
public String getName()
{
return _name;
}
//##################################################
//# testing
//##################################################
public boolean isString()
{
return this == String;
}
public boolean isInteger()
{
return this == Integer;
}
public boolean isBoolean()
{
return this == Integer;
}
//##################################################
//# display
//##################################################
@Override
public String toString()
{
return "Type[" + getCode() + "]";
}
//##################################################
//# static
//##################################################
public static KmJasperType findName(String value)
{
for ( KmJasperType e : values() )
if ( e.getName().equals(value) )
return e;
return null;
}
}
|
[
"wlove@accucode.com"
] |
wlove@accucode.com
|
65ee699880aaad035b9005ee552672f50f50c5d1
|
e256dea3b5a49d7e183f16dca35347365a4c2a5d
|
/programme/2_09_Swing/src/com/tutego/insel/ui/swing/ImageIconDemo.java
|
c8d97e7b84c1c4e805e0975c648e99082f18956a
|
[] |
no_license
|
wbs-students/javainsel10
|
c8769993f7f8c07afe50f9624cb7579e5110ef84
|
f360e6f3d1b9fb8ed78481e03f641c492aac04cd
|
refs/heads/master
| 2021-03-12T23:15:46.845992
| 2013-07-05T22:03:48
| 2013-07-05T22:03:48
| 11,209,217
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 875
|
java
|
package com.tutego.insel.ui.swing;
import java.awt.FlowLayout;
import java.net.URL;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
public class ImageIconDemo
{
public static void main( String[] args )
{
JFrame frame = new JFrame();
frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
frame.setLayout( new FlowLayout() );
URL resource1 = ImageIconDemo.class.getResource( "/images/user-trash-full.png" );
URL resource2 = ImageIconDemo.class.getResource( "/images/user-trash.png" );
Icon icon1 = new ImageIcon( resource1 );
Icon icon2 = new ImageIcon( resource2 );
JButton button = new JButton();
button.setIcon( icon1 );
frame.add( button );
frame.add( new JLabel( icon2 ) );
frame.pack();
frame.setVisible( true );
}
}
|
[
"grunwald.markus@arcor.de"
] |
grunwald.markus@arcor.de
|
9286b0cc76e84ce5bd7201c8b85e8f0e3da1e8e0
|
4e3c976773526fd610d64ffb83589bccfaee5e68
|
/sponge-api/src/main/java/org/openksavi/sponge/action/ActionAdapter.java
|
b26071f762cb3e95e8e29b6cf22db5adad022b73
|
[
"Apache-2.0"
] |
permissive
|
softelnet/sponge
|
2313d2328953fcff49a002e727bb803757870627
|
7190f23ae888bbef49d0fbb85157444d6ea48bcd
|
refs/heads/master
| 2022-10-28T16:19:55.619882
| 2021-09-16T19:50:08
| 2021-09-16T19:50:08
| 95,256,030
| 10
| 2
|
Apache-2.0
| 2022-10-04T23:55:09
| 2017-06-23T20:58:49
|
Java
|
UTF-8
|
Java
| false
| false
| 1,696
|
java
|
/*
* Copyright 2016-2017 The Sponge 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.openksavi.sponge.action;
import java.util.Map;
import java.util.Set;
import org.openksavi.sponge.ProcessorAdapter;
import org.openksavi.sponge.type.provided.ProvidedValue;
/**
* Action adapter.
*/
public interface ActionAdapter extends ProcessorAdapter<Action>, ActionOperations {
/**
* Informs if the action in a given context is active. This method always returns {@code true} if the action is not activatable.
*
* @param context the context.
* @return {@code true} if the action is active.
*/
boolean isActive(IsActionActiveContext context);
/**
* Provides action arguments. Submits arguments and/or returns provided values along with value sets.
*
* @param parameters the parameters.
* @return the map of argument names and values (value sets).
*/
Map<String, ProvidedValue<?>> provideArgs(ProvideArgsParameters parameters);
/**
* Returns the registered type names used in this action.
*
* @return the registered type names.
*/
Set<String> getRegisteredTypeNames();
}
|
[
"marcin.pas@softelnet.com"
] |
marcin.pas@softelnet.com
|
c31b059ea3485879b9e33f483f70a7df422fd0a2
|
d528fe4f3aa3a7eca7c5ba4e0aee43421e60857f
|
/main/com/zfsoft/xgxt/dekt/dsgl/dsglsh/DsglshService.java
|
f2ef8211fa93ba8ca0491e1b4a40ae5ff342a006
|
[] |
no_license
|
gxlioper/xajd
|
81bd19a7c4b9f2d1a41a23295497b6de0dae4169
|
b7d4237acf7d6ffeca1c4a5a6717594ca55f1673
|
refs/heads/master
| 2022-03-06T15:49:34.004924
| 2019-11-19T07:43:25
| 2019-11-19T07:43:25
| null | 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 4,060
|
java
|
/**
* <p>Coyright (R) 2014 正方软件股份有限公司。<p>
*/
package com.zfsoft.xgxt.dekt.dsgl.dsglsh;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import net.sf.json.JSONArray;
import org.apache.commons.beanutils.BeanUtils;
import xgxt.form.User;
import xgxt.utils.String.StringUtils;
import com.zfsoft.xgxt.base.message.MessageKey;
import com.zfsoft.xgxt.base.message.MessageUtil;
import com.zfsoft.xgxt.base.service.impl.SuperServiceImpl;
import com.zfsoft.xgxt.base.util.Constants;
import com.zfsoft.xgxt.comm.shlc.model.ShxxModel;
import com.zfsoft.xgxt.comm.shlc.service.ShlcInterface;
import com.zfsoft.xgxt.comm.shlc.service.impl.CommShlcImpl;
import com.zfsoft.xgxt.dekt.dsgl.dsgljg.DsgljgDao;
import com.zfsoft.xgxt.dekt.dsgl.dsgljg.DsgljgForm;
public class DsglshService extends SuperServiceImpl<DsglshForm, DsglshDao>{
private ShlcInterface shlc = new CommShlcImpl();
public DsglshService() {
super.setDao(dao);
}
public HashMap<String, String> getDsxxInfo(DsglshForm model) {
// TODO Auto-generated method stub
return dao.getDsxxInfo(model);
}
public boolean saveSh(DsglshForm form, User user) throws Exception {
ShxxModel model = new ShxxModel();
// 审核流程ID
model.setShlc(form.getSplc());
// 审核人
model.setShr(user.getUserName());
// 审核意见
model.setShyj(form.getShyj());
// 审核状态
model.setShzt(form.getShjg());
model.setThgw(form.getThgw());
// 审核岗位ID
model.setGwid(form.getGwid());
// 业务ID(多为申请ID)
model.setYwid(form.getSqid());
model.setSqrid(form.getXh());
model.setTzlj("xg_dekt_dsglsh.do");
model.setTzljsq("xg_dekt_dsglsq.do");
boolean reuslt = false;
String zhzt = shlc.runAuditing(model);
DsglshForm upForm = new DsglshForm();
upForm.setSqid(form.getSqid());
upForm.setShzt(zhzt);
reuslt = dao.runUpdate(upForm, form.getSqid());
//审核状态为通过的往日常行为结果表中保存该条数据
if(zhzt.equalsIgnoreCase(Constants.YW_TG)){
DsgljgForm dsgljgForm = new DsgljgForm();
form = getModel(form);
BeanUtils.copyProperties(dsgljgForm, StringUtils.formatData(form));
dsgljgForm.setJgid(form.getSqid());
dsgljgForm.setSjly("1");
dsgljgForm.setSqid(form.getSqid());
DsgljgDao jgDao = new DsgljgDao();
jgDao.deleteExist(dsgljgForm); //需要删除结果表里重复的数据
jgDao.runInsert(dsgljgForm);
}
return reuslt;
}
public boolean CancelSh(DsglshForm model) {
boolean resultsq = false;
boolean resultjg = false;
try {
resultsq = dao.updateDsxx(model.getSqid(), Constants.YW_SHZ);
if(resultsq){
String shzt = model.getShzt();
if(shzt != null && shzt.equals("2")){
resultjg = true;
}else{
resultjg = dao.deleteDsxxjg(model.getSqid());
}
}
} catch (Exception e) {
e.printStackTrace();
}
return resultjg;
}
public String savePlsh(DsglshForm t, User user) throws Exception {
String[] ids = t.getId();
String[] gwid = t.getGwids();
String[] xhs = t.getXhs();
String[] splcs = t.getSplcs();
List<String> failXhs = new ArrayList<String>();
for (int i = 0, n = ids.length; i < n; i++) {
DsglshForm model = new DsglshForm();
model.setSplc(splcs[i]);
model.setYwid(ids[i]);
model.setGwid(gwid[i]);
model.setSqid(ids[i]);
model.setShyj(t.getShyj());
model.setShjg(t.getShzt());
model.setXh(xhs[i]);
boolean isSuccess = saveSh(model, user);
if (!isSuccess) {
failXhs.add(xhs[i]);
}
}
JSONArray json = JSONArray.fromObject(failXhs);
if (failXhs.isEmpty()) {
return MessageUtil.getText(MessageKey.SYS_AUD_SUCCESS);
} else if (Constants.SH_TH.equals(t.getShzt())) {
return MessageUtil.getText(MessageKey.SYS_BACK_FAIL, json.toString());
} else {
return MessageUtil.getText(MessageKey.SYS_PLSH_FAIL, json.toString());
}
}
}
|
[
"1398796456@qq.com"
] |
1398796456@qq.com
|
ffdc9fbea904619635eccd9833f0b4eb78df4748
|
2f5e9584534da2c73bc0fe948870085230d3128f
|
/dtm-calcite-core/src/main/java/io/arenadata/dtm/query/calcite/core/factory/impl/CalciteSchemaFactory.java
|
cfe5008b260d275b88e48010063bb1fb1c0142e1
|
[
"Apache-2.0"
] |
permissive
|
AlexRogalskiy/prostore
|
b3b8a7765c1f607c630cf955a66dab1e3c16ca3a
|
5a101cd70e9246941a5cb905601e6577e2589818
|
refs/heads/master
| 2023-08-29T07:57:45.041365
| 2021-11-11T10:25:21
| 2021-11-11T10:25:21
| 428,456,972
| 0
| 0
|
NOASSERTION
| 2021-11-15T23:48:32
| 2021-11-15T23:48:22
| null |
UTF-8
|
Java
| false
| false
| 1,924
|
java
|
/*
* Copyright © 2021 ProStore
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.arenadata.dtm.query.calcite.core.factory.impl;
import io.arenadata.dtm.common.exception.DtmException;
import io.arenadata.dtm.common.model.ddl.Entity;
import io.arenadata.dtm.query.calcite.core.factory.SchemaFactory;
import io.arenadata.dtm.query.calcite.core.schema.DtmTable;
import io.arenadata.dtm.query.calcite.core.schema.QueryableSchema;
import io.arenadata.dtm.query.execution.model.metadata.Datamart;
import org.apache.calcite.schema.SchemaPlus;
public abstract class CalciteSchemaFactory {
private final SchemaFactory schemaFactory;
public CalciteSchemaFactory(SchemaFactory schemaFactory) {
this.schemaFactory = schemaFactory;
}
public SchemaPlus addSchema(SchemaPlus parent, Datamart root) {
QueryableSchema dtmSchema = schemaFactory.create(parent, root);
SchemaPlus schemaPlus = parent.add(root.getMnemonic(), dtmSchema);
root.getEntities().forEach(it -> {
try {
DtmTable table = createTable(dtmSchema, it);
schemaPlus.add(it.getName(), table);
} catch (Exception e) {
throw new DtmException("Table initialization error $metaTable", e);
}
});
return schemaPlus;
}
protected abstract DtmTable createTable(QueryableSchema schema, Entity entity);
}
|
[
"lin@arenadata.io"
] |
lin@arenadata.io
|
2163a1eb18531a9234b1983b85e8f927189776de
|
492d762a760da0e81b738efb2ab900ecb53b20ae
|
/src/main/java/me/kosinkadink/performantplants/scripting/storage/hooks/ScriptHookPlayerDead.java
|
c3c8209f83229c533ff3b7dfc696731c649a63b7
|
[] |
no_license
|
Kosinkadink/PerformantPlants
|
1923fad5b10dcb33b1b4a782c6678046c285a1f0
|
ef7851f757ee698a6f0db7d97971b1040e4c0fff
|
refs/heads/master
| 2021-07-14T22:36:37.540626
| 2021-04-07T08:13:25
| 2021-04-07T08:13:25
| 245,294,134
| 1
| 2
| null | 2021-04-07T08:13:25
| 2020-03-06T00:11:35
|
Java
|
UTF-8
|
Java
| false
| false
| 682
|
java
|
package me.kosinkadink.performantplants.scripting.storage.hooks;
import me.kosinkadink.performantplants.hooks.HookAction;
import me.kosinkadink.performantplants.hooks.PlantHook;
import me.kosinkadink.performantplants.hooks.PlantHookPlayerDead;
import me.kosinkadink.performantplants.scripting.ExecutionContext;
import java.util.UUID;
public class ScriptHookPlayerDead extends ScriptHookPlayer {
public ScriptHookPlayerDead(HookAction action) {
super(action);
}
@Override
public PlantHook createPlantHook(UUID taskId, ExecutionContext context) {
return new PlantHookPlayerDead(taskId, action, hookConfigId, createOfflinePlayer(context));
}
}
|
[
"unconfigured@null.spigotmc.org"
] |
unconfigured@null.spigotmc.org
|
fa55ddf6138e560c66c8ea253a2894d4368aa7aa
|
b19674396d9a96c7fd7abdcfa423fe9fea4bb5be
|
/ratis-proto-shaded/src/main/java/org/apache/ratis/shaded/io/netty/resolver/AbstractAddressResolver.java
|
d907cc3af5ad381b86f003a8ee59e9463cd40554
|
[] |
no_license
|
snemuri/ratis.github.io
|
0529ceed6f86ad916fbc559576b39ae123c465a0
|
85e1dd1890477d4069052358ed0b163c3e23db76
|
refs/heads/master
| 2020-03-24T07:18:03.130700
| 2018-07-27T13:29:06
| 2018-07-27T13:29:06
| 142,558,496
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,308
|
java
|
/*
* Copyright 2015 The Netty Project
*
* The Netty Project 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.ratis.shaded.io.netty.resolver;
import org.apache.ratis.shaded.io.netty.util.concurrent.EventExecutor;
import org.apache.ratis.shaded.io.netty.util.concurrent.Future;
import org.apache.ratis.shaded.io.netty.util.concurrent.Promise;
import org.apache.ratis.shaded.io.netty.util.internal.TypeParameterMatcher;
import org.apache.ratis.shaded.io.netty.util.internal.UnstableApi;
import java.net.SocketAddress;
import java.nio.channels.UnsupportedAddressTypeException;
import java.util.Collections;
import java.util.List;
import static org.apache.ratis.shaded.io.netty.util.internal.ObjectUtil.checkNotNull;
/**
* A skeletal {@link AddressResolver} implementation.
*/
@UnstableApi
public abstract class AbstractAddressResolver<T extends SocketAddress> implements AddressResolver<T> {
private final EventExecutor executor;
private final TypeParameterMatcher matcher;
/**
* @param executor the {@link EventExecutor} which is used to notify the listeners of the {@link Future} returned
* by {@link #resolve(SocketAddress)}
*/
protected AbstractAddressResolver(EventExecutor executor) {
this.executor = checkNotNull(executor, "executor");
matcher = TypeParameterMatcher.find(this, AbstractAddressResolver.class, "T");
}
/**
* @param executor the {@link EventExecutor} which is used to notify the listeners of the {@link Future} returned
* by {@link #resolve(SocketAddress)}
* @param addressType the type of the {@link SocketAddress} supported by this resolver
*/
protected AbstractAddressResolver(EventExecutor executor, Class<? extends T> addressType) {
this.executor = checkNotNull(executor, "executor");
matcher = TypeParameterMatcher.get(addressType);
}
/**
* Returns the {@link EventExecutor} which is used to notify the listeners of the {@link Future} returned
* by {@link #resolve(SocketAddress)}.
*/
protected EventExecutor executor() {
return executor;
}
@Override
public boolean isSupported(SocketAddress address) {
return matcher.match(address);
}
@Override
public final boolean isResolved(SocketAddress address) {
if (!isSupported(address)) {
throw new UnsupportedAddressTypeException();
}
@SuppressWarnings("unchecked")
final T castAddress = (T) address;
return doIsResolved(castAddress);
}
/**
* Invoked by {@link #isResolved(SocketAddress)} to check if the specified {@code address} has been resolved
* already.
*/
protected abstract boolean doIsResolved(T address);
@Override
public final Future<T> resolve(SocketAddress address) {
if (!isSupported(checkNotNull(address, "address"))) {
// Address type not supported by the resolver
return executor().newFailedFuture(new UnsupportedAddressTypeException());
}
if (isResolved(address)) {
// Resolved already; no need to perform a lookup
@SuppressWarnings("unchecked")
final T cast = (T) address;
return executor.newSucceededFuture(cast);
}
try {
@SuppressWarnings("unchecked")
final T cast = (T) address;
final Promise<T> promise = executor().newPromise();
doResolve(cast, promise);
return promise;
} catch (Exception e) {
return executor().newFailedFuture(e);
}
}
@Override
public final Future<T> resolve(SocketAddress address, Promise<T> promise) {
checkNotNull(address, "address");
checkNotNull(promise, "promise");
if (!isSupported(address)) {
// Address type not supported by the resolver
return promise.setFailure(new UnsupportedAddressTypeException());
}
if (isResolved(address)) {
// Resolved already; no need to perform a lookup
@SuppressWarnings("unchecked")
final T cast = (T) address;
return promise.setSuccess(cast);
}
try {
@SuppressWarnings("unchecked")
final T cast = (T) address;
doResolve(cast, promise);
return promise;
} catch (Exception e) {
return promise.setFailure(e);
}
}
@Override
public final Future<List<T>> resolveAll(SocketAddress address) {
if (!isSupported(checkNotNull(address, "address"))) {
// Address type not supported by the resolver
return executor().newFailedFuture(new UnsupportedAddressTypeException());
}
if (isResolved(address)) {
// Resolved already; no need to perform a lookup
@SuppressWarnings("unchecked")
final T cast = (T) address;
return executor.newSucceededFuture(Collections.singletonList(cast));
}
try {
@SuppressWarnings("unchecked")
final T cast = (T) address;
final Promise<List<T>> promise = executor().newPromise();
doResolveAll(cast, promise);
return promise;
} catch (Exception e) {
return executor().newFailedFuture(e);
}
}
@Override
public final Future<List<T>> resolveAll(SocketAddress address, Promise<List<T>> promise) {
checkNotNull(address, "address");
checkNotNull(promise, "promise");
if (!isSupported(address)) {
// Address type not supported by the resolver
return promise.setFailure(new UnsupportedAddressTypeException());
}
if (isResolved(address)) {
// Resolved already; no need to perform a lookup
@SuppressWarnings("unchecked")
final T cast = (T) address;
return promise.setSuccess(Collections.singletonList(cast));
}
try {
@SuppressWarnings("unchecked")
final T cast = (T) address;
doResolveAll(cast, promise);
return promise;
} catch (Exception e) {
return promise.setFailure(e);
}
}
/**
* Invoked by {@link #resolve(SocketAddress)} to perform the actual name
* resolution.
*/
protected abstract void doResolve(T unresolvedAddress, Promise<T> promise) throws Exception;
/**
* Invoked by {@link #resolveAll(SocketAddress)} to perform the actual name
* resolution.
*/
protected abstract void doResolveAll(T unresolvedAddress, Promise<List<T>> promise) throws Exception;
@Override
public void close() { }
}
|
[
"snemuri@hortonworks.com"
] |
snemuri@hortonworks.com
|
20de84ba6d388b773be55b4c73b043069bb2c4b7
|
f8e300aa04370f8836393455b8a10da6ca1837e5
|
/CounselorAPP/app/src/main/java/com/cesaas/android/counselor/order/utils/EditTextChangeListener.java
|
365efaa1cddd8b94d97739cd015269fb4843c82a
|
[] |
no_license
|
FlyBiao/CounselorAPP
|
d36f56ee1d5989c279167064442d9ea3e0c3a3ae
|
b724c1457d7544844ea8b4f6f5a9205021c33ae3
|
refs/heads/master
| 2020-03-22T21:30:14.904322
| 2018-07-12T12:21:37
| 2018-07-12T12:21:37
| 140,691,614
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,316
|
java
|
package com.cesaas.android.counselor.order.utils;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.Log;
import com.cesaas.android.counselor.order.activity.user.bean.EditTextChangeValueBean;
import io.rong.eventbus.EventBus;
/**
* Author FGB
* Description 实时监听EditText内容
* Created at 2018/5/29 11:26
* Version 1.0
*/
public class EditTextChangeListener implements TextWatcher {
/**
* 编辑框的内容发生改变之前的回调方法
*/
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
}
/**
* 编辑框的内容正在发生改变时的回调方法 >>用户正在输入
* 我们可以在这里实时地 通过搜索匹配用户的输入
*/
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
}
/**
* 编辑框的内容改变以后,用户没有继续输入时 的回调方法
*/
@Override
public void afterTextChanged(Editable s) {
if(s.toString().length()==8){
EditTextChangeValueBean bean=new EditTextChangeValueBean();
bean.setLength(s.toString().length());
bean.setValue(s.toString());
EventBus.getDefault().post(bean);
}
}
}
|
[
"fengguangbiao@163.com"
] |
fengguangbiao@163.com
|
d7b881fda06ce3e27e3df2300b3f88bcac2522a1
|
3432c425a179f7310926ebda50e22b7e4435d472
|
/src/gameObjects/AmmoPack.java
|
52f25bb68c8cf477a5e603b6a0797e67da04d255
|
[] |
no_license
|
DinasJ/surviv19
|
79ae843c454e6838088048917f20ba57fcab8199
|
bb6b0601b51e9a9cf8486521105e81770f3de2b5
|
refs/heads/master
| 2020-08-24T18:54:59.589947
| 2019-10-22T21:22:24
| 2019-10-22T21:22:24
| 216,885,517
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 714
|
java
|
package gameObjects;
import java.awt.Color;
import java.awt.Rectangle;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import javax.imageio.ImageIO;
import gameViews.Game_Main;
public class AmmoPack extends Item{
public int amount;
public AmmoPack(int x, int y, int amount){
super(x, y);
this.amount = amount;
this.color = Color.GRAY;
// URL file = Game_Main.class.getClassLoader().getResource("com/jack/images/ammo_pack.bmp");
// try {
// this.image = ImageIO.read(new File(file.toString().substring(6)));
// } catch (IOException e) {
// e.printStackTrace();
// }
}
@Override
public Rectangle bounds(){
return new Rectangle(cPos.x, cPos.y, 7, 7);
}
}
|
[
"unconfigured@null.spigotmc.org"
] |
unconfigured@null.spigotmc.org
|
3d608855d52b41539a8a3ada4c3611125f6516cd
|
9a12fd0ddaf1d131a5280ec8bb49f2e3484ac39d
|
/Product_Recyclerview/src/main/java/com/example/recyclerview/MainActivity.java
|
571e3acb2a8c338b4476b853bc3a61f554ace04d
|
[] |
no_license
|
1657895829/ReViewApp
|
7d33b529b28da68aac22f5207e627bb595dbcf4d
|
30b424f5b38ca09b58c515243f3edc7cc23aa1ad
|
refs/heads/master
| 2020-03-14T06:23:14.165736
| 2018-05-03T12:58:14
| 2018-05-03T12:58:14
| 131,482,886
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,409
|
java
|
package com.example.recyclerview;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.Toast;
import com.example.recyclerview.adapter.MyAdapter;
import com.example.recyclerview.bean.ProductBean;
import com.example.recyclerview.presenter.MyPresenter;
import com.example.recyclerview.view.MyView;
import com.liaoinstan.springview.container.DefaultFooter;
import com.liaoinstan.springview.container.DefaultHeader;
import com.liaoinstan.springview.widget.SpringView;
import java.util.ArrayList;
import java.util.List;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
public class MainActivity extends AppCompatActivity implements MyView {
int page = 1;
@BindView(R.id.recyclerView)
RecyclerView recyclerView;
@BindView(R.id.springView)
SpringView springView;
private MyPresenter presenter;
private List<ProductBean.DataBean> productList;
private MyAdapter adapter;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ButterKnife.bind(this);
//new出P层对象
presenter = new MyPresenter(this);
//调用P层的方法
presenter.getDataFromModel(page);
//设置布局管理器
LinearLayoutManager manager = new LinearLayoutManager(MainActivity.this, LinearLayoutManager.VERTICAL, false);
recyclerView.setLayoutManager(manager);
//springview的设置,实现下拉刷新展示第一页数据、上拉加载更多实现分页功能
springView.setHeader(new DefaultHeader(this));
springView.setFooter(new DefaultFooter(this));
springView.setListener(new SpringView.OnFreshListener() {
@Override
public void onRefresh() {
presenter.getDataFromModel(page);
springView.onFinishFreshAndLoad();
Toast.makeText(MainActivity.this,"下拉刷新数据成功",Toast.LENGTH_SHORT).show();
}
@Override
public void onLoadmore() {
page ++ ;
presenter.getDataFromModel(page);
springView.onFinishFreshAndLoad();
Toast.makeText(MainActivity.this,"上拉加载数据成功",Toast.LENGTH_SHORT).show();
}
});
}
@OnClick({R.id.recyclerView, R.id.springView})
public void onClick(View v) {
switch (v.getId()) {
default:
break;
case R.id.recyclerView:
break;
case R.id.springView:
break;
}
}
@Override
public void success(ProductBean productBean) {
if (productList == null){
productList = new ArrayList<>();
}
productList.addAll(productBean.getData());
//设置适配器,实现RecyclerView局部刷新机制,实时刷新订单列表部分数据
if (adapter == null){
adapter = new MyAdapter(MainActivity.this, productList, new MyView() {
@Override
public void success(final ProductBean productBean) {
runOnUiThread(new Runnable() {
@Override
public void run() {
Toast.makeText(MainActivity.this, productBean.toString(),Toast.LENGTH_SHORT).show();
}
});
}
@Override
public void fail(Exception e) {
runOnUiThread(new Runnable() {
@Override
public void run() {
Toast.makeText(MainActivity.this,"网络慢",Toast.LENGTH_SHORT).show();
}
});
}
});
recyclerView.setAdapter(adapter);
}else {
adapter.notifyDataSetChanged();
}
}
@Override
public void fail(Exception e) {
System.out.println("异常 : "+e);
}
//避免MVP内存泄漏
@Override
protected void onDestroy() {
super.onDestroy();
presenter.detach();
}
}
|
[
"1657895829@qq.com"
] |
1657895829@qq.com
|
3550036811c4f47e286d53c73b1ed58ded6c755f
|
8475756a354793afc09eae25bbe92bb91f979e81
|
/src/test/java/com/remondis/cdc/consumer/pactbuilder/testcase/types/PricingResultPriceDetailsResource.java
|
2cf524707e2c834a8231fd8db90450e9ab01876b
|
[
"Apache-2.0"
] |
permissive
|
remondis-it/pact-consumer-builder
|
4fdcdc80dc0c57b3ba86890b7616322735221df7
|
4350f58d646d7aade31dc1caed7fb380b9cd143e
|
refs/heads/develop
| 2021-10-27T07:16:40.848053
| 2020-06-19T11:17:52
| 2020-06-19T11:17:52
| 187,044,052
| 11
| 7
|
Apache-2.0
| 2020-08-10T07:23:35
| 2019-05-16T14:28:23
|
Java
|
UTF-8
|
Java
| false
| false
| 2,072
|
java
|
package com.remondis.cdc.consumer.pactbuilder.testcase.types;
public class PricingResultPriceDetailsResource {
private PriceResultOrigin origin;
private String priceType;
private String agreementNumber;
public PricingResultPriceDetailsResource() {
super();
// TODO Auto-generated constructor stub
}
public PricingResultPriceDetailsResource(PriceResultOrigin origin, String priceType, String agreementNumber) {
super();
this.origin = origin;
this.priceType = priceType;
this.agreementNumber = agreementNumber;
}
public PriceResultOrigin getOrigin() {
return origin;
}
public void setOrigin(PriceResultOrigin origin) {
this.origin = origin;
}
public String getPriceType() {
return priceType;
}
public void setPriceType(String priceType) {
this.priceType = priceType;
}
public String getAgreementNumber() {
return agreementNumber;
}
public void setAgreementNumber(String agreementNumber) {
this.agreementNumber = agreementNumber;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((agreementNumber == null) ? 0 : agreementNumber.hashCode());
result = prime * result + ((origin == null) ? 0 : origin.hashCode());
result = prime * result + ((priceType == null) ? 0 : priceType.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
PricingResultPriceDetailsResource other = (PricingResultPriceDetailsResource) obj;
if (agreementNumber == null) {
if (other.agreementNumber != null)
return false;
} else if (!agreementNumber.equals(other.agreementNumber))
return false;
if (origin != other.origin)
return false;
if (priceType == null) {
if (other.priceType != null)
return false;
} else if (!priceType.equals(other.priceType))
return false;
return true;
}
}
|
[
"christopher.schuette@remondis.de"
] |
christopher.schuette@remondis.de
|
e9b218a93c5c0e01c418e3c053347e3624b63605
|
de6c1959ab5b35a4294626508176ae185a026b99
|
/SchoolPlus/src/com/duc/SpecialDepartment/TimeTableSection/TeacherTotalPeriods.java
|
2cb76df2bec3e1741fb5dc453f3ba15fe89c85c9
|
[] |
no_license
|
ravicode/School
|
8ed673d25dcdfb741699d09f82c9d54dc75c4935
|
dd753dd5a391bc0c9fd705e28a3d0dd668cc2637
|
refs/heads/master
| 2021-01-10T05:38:39.979367
| 2015-08-15T11:48:46
| 2015-08-15T11:48:46
| 36,618,180
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 268
|
java
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.duc.SpecialDepartment.TimeTableSection;
/**
*
* @author sourabh
*/
public class TeacherTotalPeriods {
String teachercode;
int totalperiods;
}
|
[
"ravi.ters@gmail.com"
] |
ravi.ters@gmail.com
|
16b4cc8ed9ce6ad0c0f15711631be79c813c2532
|
a2835d20ee14b8326b2d0d00989d0dee0eaa2b01
|
/common/src/main/java/org/apache/commons/math3/analysis/differentiation/JacobianFunction.java
|
32ae117ccaa2eff3c546e7a965d527c835fd4551
|
[] |
no_license
|
kovzol/geogebra
|
935278a6e1d9e9a912bac9a53aac84061b7c2ff4
|
819c28d50d2082117f05170c9e988952bf12ece8
|
refs/heads/master
| 2023-08-04T12:10:17.639860
| 2023-07-27T08:45:08
| 2023-07-27T08:45:08
| 188,601,919
| 2
| 4
| null | 2021-05-05T16:34:02
| 2019-05-25T18:52:14
|
Java
|
UTF-8
|
Java
| false
| false
| 2,603
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math3.analysis.differentiation;
import org.apache.commons.math3.analysis.MultivariateMatrixFunction;
/** Class representing the Jacobian of a multivariate vector function.
* <p>
* The rows iterate on the model functions while the columns iterate on the parameters; thus,
* the numbers of rows is equal to the dimension of the underlying function vector
* value and the number of columns is equal to the number of free parameters of
* the underlying function.
* </p>
* @since 3.1
*/
public class JacobianFunction implements MultivariateMatrixFunction {
/** Underlying vector-valued function. */
private final MultivariateDifferentiableVectorFunction f;
/** Simple constructor.
* @param f underlying vector-valued function
*/
public JacobianFunction(final MultivariateDifferentiableVectorFunction f) {
this.f = f;
}
/** {@inheritDoc} */
public double[][] value(double[] point) {
// set up parameters
final DerivativeStructure[] dsX = new DerivativeStructure[point.length];
for (int i = 0; i < point.length; ++i) {
dsX[i] = new DerivativeStructure(point.length, 1, i, point[i]);
}
// compute the derivatives
final DerivativeStructure[] dsY = f.value(dsX);
// extract the Jacobian
final double[][] y = new double[dsY.length][point.length];
final int[] orders = new int[point.length];
for (int i = 0; i < dsY.length; ++i) {
for (int j = 0; j < point.length; ++j) {
orders[j] = 1;
y[i][j] = dsY[i].getPartialDerivative(orders);
orders[j] = 0;
}
}
return y;
}
}
|
[
"zbynek@geogebra.org"
] |
zbynek@geogebra.org
|
aff90e578e4b972fb359d4025011a9f40cf09f67
|
29e6f769e937401e20fbc1f8a7b71dd9f2584339
|
/spring-annotation/src/main/java/com/hfm/condition/MyCondition.java
|
19a323ad731c0dd5e80b45043d99a9843c304c4f
|
[] |
no_license
|
hfming/java_ee
|
0dc57d080a43386d4fcaea3de5f770b4b7791cc6
|
e18957c9a69705f2a1f81bd004577dfaafdacd7e
|
refs/heads/master
| 2023-08-31T05:38:21.817110
| 2021-10-24T13:56:15
| 2021-10-24T13:56:15
| 312,496,780
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,595
|
java
|
package com.hfm.condition;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.env.Environment;
import org.springframework.core.type.AnnotatedTypeMetadata;
/**
* @author hfming2016@163.com
* @version 1.01 2020-10-14 11:18
* @Description 自定义条件
* @date 2020/10/14
*/
public class MyCondition implements Condition {
/**
* ConditionContext 判断条件能使用的上下文(运行环境)
* AnnotatedTypeMetadata 注解的信息
* @param conditionContext
* @param annotatedTypeMetadata
* @return
*/
@Override
public boolean matches(ConditionContext conditionContext, AnnotatedTypeMetadata annotatedTypeMetadata) {
// 获取当前 IOC 容器的 bean 工厂
ConfigurableListableBeanFactory beanFactory = conditionContext.getBeanFactory();
// 获取类加载器
ClassLoader classLoader = conditionContext.getClassLoader();
// 获取 bean 定义的注册类
BeanDefinitionRegistry registry = conditionContext.getRegistry();
// 获取运行环境
Environment environment = conditionContext.getEnvironment();
String os = environment.getProperty("os.name");
// 如果操作相同为 windows 则条件通过
if (os.contains("Windows")){
return true;
}
return false;
}
}
|
[
"hfming2016@163.com"
] |
hfming2016@163.com
|
92084de418c294e9cea64056fac194abd74be909
|
2088303ad9939663f5f8180f316b0319a54bc1a6
|
/src/main/java/com/lottery/core/service/SystemService.java
|
fa4f93c3bf62dd1c0068481aa415a3691d21a8b3
|
[] |
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
| 3,553
|
java
|
package com.lottery.core.service;
import java.util.Map;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import javax.annotation.PreDestroy;
import javax.annotation.Resource;
import javax.servlet.ServletContext;
import org.apache.camel.CamelContext;
import org.apache.camel.Route;
import org.apache.camel.ServiceStatus;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Service;
import org.springframework.web.context.ServletContextAware;
import org.springframework.web.context.support.WebApplicationContextUtils;
import com.lottery.core.camelconfig.ApplicationContextUtil;
@Service
public class SystemService implements ServletContextAware{
private static Logger logger=LoggerFactory.getLogger(SystemService.class);
@Autowired
private ApplicationContextUtil applicationContextUtil;
private ServletContext servletContext;
private static ApplicationContext ctx = null;
@Resource(name="camelContextMap")
protected Map<String,CamelContext> camelContextMap;
@Override
public void setServletContext(ServletContext servletContext) {
this.servletContext=servletContext;
}
private static Lock lock = new ReentrantLock();
public ApplicationContext getCtx() {
if(ctx!=null){
return ctx;
}
try{
lock.lock();
if (ctx != null) {
return ctx;
}
ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this.getServletContext());//获取失败时抛出异常
}catch(Exception e){
}finally{
lock.unlock();
}
return ctx;
}
public ServletContext getServletContext() {
return servletContext;
}
public <T> Map<String,T> getMap(Class<T> t){
return getCtx().getBeansOfType(t);
}
public Object get(String name){
return getCtx().getBean(name);
}
@PreDestroy
public void stopCamelContexts(){
Map<String, CamelContext> contextMap =applicationContextUtil.getMap();
if(contextMap!=null){
for (Map.Entry<String, CamelContext> entry : contextMap.entrySet()) {
String context=entry.getKey();
CamelContext value=entry.getValue();
logger.error("开始停止context name={}",context);
try {
ServiceStatus status=value.getStatus();
if(status.isStoppable()||status.isStopped()||status.isStopping()){
logger.error("context已停止,name={}",context);
continue;
}
for(Route route:value.getRoutes()){
value.stopRoute(route.getId());
}
} catch (Exception e) {
logger.error("停止context name={}失败",context,e);
continue;
}
logger.error("停止成功context name={}",context);
}
}
//新的监控
for (Map.Entry<String, CamelContext> entry : camelContextMap.entrySet()) {
String context=entry.getKey();
CamelContext value=entry.getValue();
logger.error("开始停止context name={}",context);
try {
ServiceStatus status=value.getStatus();
if(status.isStoppable()||status.isStopped()||status.isStopping()){
logger.error("context已停止,name={}",context);
continue;
}
for(Route route:value.getRoutes()){
value.stopRoute(route.getId());
}
} catch (Exception e) {
logger.error("停止context name={}失败",context,e);
continue;
}
logger.error("停止成功context name={}",context);
}
}
}
|
[
"1147149597@qq.com"
] |
1147149597@qq.com
|
bb9a63e58b9b9a07edd9b6b34b7f3a50c8407d30
|
a10543f3d7106dc324c4f4d8ed032a8a416ab895
|
/lib/java/android/support/v4/app/SuperNotCalledException.java
|
96468303c94e9854e2968ef2e14925dba371b5d4
|
[] |
no_license
|
whywuzeng/jingmgouproject
|
32bfa45339700419842df772b91a2c178dcf0e23
|
0a6d1b9d33f7dca653f199181446b2a2ba8a07a4
|
refs/heads/master
| 2022-07-15T21:32:28.100332
| 2022-06-24T10:12:28
| 2022-06-24T10:12:28
| 81,888,796
| 1
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 449
|
java
|
package android.support.v4.app;
import android.util.AndroidRuntimeException;
final class SuperNotCalledException extends AndroidRuntimeException
{
public SuperNotCalledException(String paramString)
{
super(paramString);
}
}
/* Location: F:\一周备份\面试apk\希望代码没混淆\jingmgou\jingmgou2\classes-dex2jar.jar
* Qualified Name: android.support.v4.app.SuperNotCalledException
* JD-Core Version: 0.6.2
*/
|
[
"jiushiqiangone@sina.com"
] |
jiushiqiangone@sina.com
|
45c1391feeb2378993c1a24641f1ef557e1e5d5f
|
1bff47a5e5f2c5800a64b9e3c809cdf4e51815e5
|
/smt-cloudformation-objects/src/main/java/shiver/me/timbers/aws/ec2/VPCEndpointService.java
|
239a4dad1e3cb0074820aa531327c17c7875e532
|
[
"Apache-2.0"
] |
permissive
|
shiver-me-timbers/smt-cloudformation-parent
|
d773863ce52c5de154d909498a7546e0da545556
|
e2600814428a92ff8ea5977408ccc6a8f511a561
|
refs/heads/master
| 2021-06-09T09:13:17.335583
| 2020-06-19T08:24:16
| 2020-06-19T08:24:16
| 149,845,802
| 4
| 0
|
Apache-2.0
| 2021-04-26T16:53:04
| 2018-09-22T04:39:40
|
Java
|
UTF-8
|
Java
| false
| false
| 4,271
|
java
|
package shiver.me.timbers.aws.ec2;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
/**
* VPCEndpointService
* <p>
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservice.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"NetworkLoadBalancerArns",
"AcceptanceRequired"
})
public class VPCEndpointService {
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservice.html#cfn-ec2-vpcendpointservice-networkloadbalancerarns
*
*/
@JsonProperty("NetworkLoadBalancerArns")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservice.html#cfn-ec2-vpcendpointservice-networkloadbalancerarns")
private List<CharSequence> networkLoadBalancerArns = new ArrayList<CharSequence>();
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservice.html#cfn-ec2-vpcendpointservice-acceptancerequired
*
*/
@JsonProperty("AcceptanceRequired")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservice.html#cfn-ec2-vpcendpointservice-acceptancerequired")
private CharSequence acceptanceRequired;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservice.html#cfn-ec2-vpcendpointservice-networkloadbalancerarns
*
*/
@JsonIgnore
public List<CharSequence> getNetworkLoadBalancerArns() {
return networkLoadBalancerArns;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservice.html#cfn-ec2-vpcendpointservice-networkloadbalancerarns
*
*/
@JsonIgnore
public void setNetworkLoadBalancerArns(List<CharSequence> networkLoadBalancerArns) {
this.networkLoadBalancerArns = networkLoadBalancerArns;
}
public VPCEndpointService withNetworkLoadBalancerArns(List<CharSequence> networkLoadBalancerArns) {
this.networkLoadBalancerArns = networkLoadBalancerArns;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservice.html#cfn-ec2-vpcendpointservice-acceptancerequired
*
*/
@JsonIgnore
public CharSequence getAcceptanceRequired() {
return acceptanceRequired;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservice.html#cfn-ec2-vpcendpointservice-acceptancerequired
*
*/
@JsonIgnore
public void setAcceptanceRequired(CharSequence acceptanceRequired) {
this.acceptanceRequired = acceptanceRequired;
}
public VPCEndpointService withAcceptanceRequired(CharSequence acceptanceRequired) {
this.acceptanceRequired = acceptanceRequired;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("networkLoadBalancerArns", networkLoadBalancerArns).append("acceptanceRequired", acceptanceRequired).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(acceptanceRequired).append(networkLoadBalancerArns).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof VPCEndpointService) == false) {
return false;
}
VPCEndpointService rhs = ((VPCEndpointService) other);
return new EqualsBuilder().append(acceptanceRequired, rhs.acceptanceRequired).append(networkLoadBalancerArns, rhs.networkLoadBalancerArns).isEquals();
}
}
|
[
"karl.bennett.smt@gmail.com"
] |
karl.bennett.smt@gmail.com
|
57512da7901ce822c1307c05bb173e8fa3f43bb5
|
1dfa87318ec70f2167894470b703506a85af3117
|
/x-micro-service/x-spring-cloud-gateway-service/src/main/java/com/company/spring/cloud/gateway/service/XSpringCloudGatewayServiceApplication.java
|
1523d6453737d44250bc25d4e71237f1d6b2b9b3
|
[] |
no_license
|
huangjian888/jeeweb-mybatis-springboot
|
2d6e9d2f420a89bf6f7f2aca2b1ab31dce6e0095
|
22926faf93f960e02da4a1cad36ed7d8f980b399
|
refs/heads/v3.0-master
| 2023-07-20T11:42:30.526563
| 2019-08-20T07:34:56
| 2019-08-20T07:34:56
| 145,819,401
| 356
| 138
| null | 2023-07-17T20:03:38
| 2018-08-23T07:45:54
|
Java
|
UTF-8
|
Java
| false
| false
| 481
|
java
|
package com.company.spring.cloud.gateway.service;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@SpringBootApplication
@EnableDiscoveryClient
public class XSpringCloudGatewayServiceApplication {
public static void main(String[] args) {
SpringApplication.run(XSpringCloudGatewayServiceApplication.class, args);
}
}
|
[
"465265897@qq.com"
] |
465265897@qq.com
|
97e4e14223eebcc6286bd6e4f4daf7083f914282
|
ee461488c62d86f729eda976b421ac75a964114c
|
/tags/HtmlUnit-2.11/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLDelElement.java
|
9d7d85b56ec2a648797d8ac69f42f561db94aac6
|
[
"Apache-2.0"
] |
permissive
|
svn2github/htmlunit
|
2c56f7abbd412e6d9e0efd0934fcd1277090af74
|
6fc1a7d70c08fb50fef1800673671fd9cada4899
|
refs/heads/master
| 2023-09-03T10:35:41.987099
| 2015-07-26T13:12:45
| 2015-07-26T13:12:45
| 37,107,064
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,223
|
java
|
/*
* Copyright (c) 2002-2012 Gargoyle Software Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.gargoylesoftware.htmlunit.javascript.host.html;
import com.gargoylesoftware.htmlunit.html.HtmlDeletedText;
import com.gargoylesoftware.htmlunit.javascript.configuration.JsxClass;
import com.gargoylesoftware.htmlunit.javascript.configuration.JsxGetter;
import com.gargoylesoftware.htmlunit.javascript.configuration.JsxSetter;
/**
* The JavaScript object "HTMLDelElement".
*
* @version $Revision$
* @author Ahmed Ashour
*/
@JsxClass(domClasses = HtmlDeletedText.class)
public class HTMLDelElement extends HTMLElement {
/**
* Creates an instance.
*/
public HTMLDelElement() {
// Empty.
}
/**
* Returns the value of the "cite" property.
* @return the value of the "cite" property
*/
@JsxGetter
public String getCite() {
final String cite = getDomNodeOrDie().getAttribute("cite");
return cite;
}
/**
* Returns the value of the "cite" property.
* @param cite the value
*/
@JsxSetter
public void setCite(final String cite) {
getDomNodeOrDie().setAttribute("cite", cite);
}
/**
* Returns the value of the "dateTime" property.
* @return the value of the "dateTime" property
*/
@JsxGetter
public String getDateTime() {
final String cite = getDomNodeOrDie().getAttribute("datetime");
return cite;
}
/**
* Returns the value of the "dateTime" property.
* @param dateTime the value
*/
@JsxSetter
public void setDateTime(final String dateTime) {
getDomNodeOrDie().setAttribute("datetime", dateTime);
}
}
|
[
"asashour@5f5364db-9458-4db8-a492-e30667be6df6"
] |
asashour@5f5364db-9458-4db8-a492-e30667be6df6
|
dc3484fe95a4775972f16334159aef44c018d7a4
|
c754a8e090b24bc21d25ceff10b5555661933abc
|
/src/com/ufgov/gmap/org/foreign/service/ForeignService.java
|
5dbdae033fb09a4a731445cb9c1b0d4178c5051b
|
[] |
no_license
|
jielen/admin52
|
00128b9d26846d015fddb42364b4d02cce46c537
|
72e0e54d6c3ce3ccdb2832c45b469a609209a996
|
refs/heads/master
| 2021-01-19T05:03:38.255964
| 2015-09-17T16:21:53
| 2015-09-17T16:21:53
| 42,662,705
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 219
|
java
|
package com.ufgov.gmap.org.foreign.service;
import java.util.List;
import java.util.Map;
public abstract interface ForeignService
{
public abstract List getForeignData(String paramString, Map paramMap);
}
|
[
"jielenzghsy1@163.com"
] |
jielenzghsy1@163.com
|
c13d7e530d5a10011906e734e723a7ae9f781438
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.mm/classes.jar/com/tencent/mm/boot/svg/code/drawable/ic_sex_female.java
|
6e660f30a83dff4ffd64eea158ae829f4fbe635d
|
[] |
no_license
|
tsuzcx/qq_apk
|
0d5e792c3c7351ab781957bac465c55c505caf61
|
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
|
refs/heads/main
| 2022-07-02T10:32:11.651957
| 2022-02-01T12:41:38
| 2022-02-01T12:41:38
| 453,860,108
| 36
| 9
| null | 2022-01-31T09:46:26
| 2022-01-31T02:43:22
|
Java
|
UTF-8
|
Java
| false
| false
| 5,744
|
java
|
package com.tencent.mm.boot.svg.code.drawable;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Paint.Cap;
import android.graphics.Paint.Join;
import android.graphics.Paint.Style;
import android.graphics.Path;
import android.os.Looper;
import com.tencent.mm.svg.WeChatSVGRenderC2Java;
import com.tencent.mm.svg.c;
public class ic_sex_female
extends c
{
private final int height = 60;
private final int width = 60;
public int doCommand(int paramInt, Object... paramVarArgs)
{
switch (paramInt)
{
}
for (;;)
{
return 0;
return 60;
return 60;
Canvas localCanvas = (Canvas)paramVarArgs[0];
paramVarArgs = (Looper)paramVarArgs[1];
Object localObject = c.instanceMatrix(paramVarArgs);
float[] arrayOfFloat = c.instanceMatrixArray(paramVarArgs);
Paint localPaint1 = c.instancePaint(paramVarArgs);
localPaint1.setFlags(385);
localPaint1.setStyle(Paint.Style.FILL);
Paint localPaint2 = c.instancePaint(paramVarArgs);
localPaint2.setFlags(385);
localPaint2.setStyle(Paint.Style.STROKE);
localPaint1.setColor(-16777216);
localPaint2.setStrokeWidth(1.0F);
localPaint2.setStrokeCap(Paint.Cap.BUTT);
localPaint2.setStrokeJoin(Paint.Join.MITER);
localPaint2.setStrokeMiter(4.0F);
localPaint2.setPathEffect(null);
c.instancePaint(localPaint2, paramVarArgs).setStrokeWidth(1.0F);
localCanvas.save();
localPaint2 = c.instancePaint(localPaint1, paramVarArgs);
localPaint2.setColor(-1150121);
Path localPath = c.instancePath(paramVarArgs);
localPath.moveTo(23.357143F, 31.267857F);
localPath.cubicTo(25.82522F, 35.67271F, 21.368435F, 37.603485F, 19.517857F, 38.94643F);
localPath.cubicTo(11.49915F, 43.231812F, 8.0F, 44.938072F, 8.0F, 46.625F);
localPath.lineTo(8.0F, 50.464287F);
localPath.cubicTo(8.0F, 51.156628F, 8.728162F, 52.0F, 9.535714F, 52.0F);
localPath.lineTo(49.464287F, 52.0F);
localPath.cubicTo(50.271839F, 52.0F, 51.0F, 51.156628F, 51.0F, 50.464287F);
localPath.lineTo(51.0F, 46.625F);
localPath.cubicTo(51.0F, 44.938072F, 47.500851F, 43.231812F, 39.482143F, 38.94643F);
localPath.cubicTo(37.631565F, 37.603485F, 33.174782F, 35.67271F, 35.642857F, 31.267857F);
localPath.cubicTo(38.243069F, 27.868282F, 40.103214F, 26.426222F, 40.25F, 20.517857F);
localPath.cubicTo(40.103214F, 14.887795F, 35.947693F, 9.0F, 29.5F, 9.0F);
localPath.cubicTo(23.052307F, 9.0F, 18.896786F, 14.887795F, 18.75F, 20.517857F);
localPath.cubicTo(18.896786F, 26.426222F, 20.756931F, 27.868282F, 23.357143F, 31.267857F);
localPath.close();
WeChatSVGRenderC2Java.setFillType(localPath, 2);
localCanvas.drawPath(localPath, localPaint2);
localCanvas.restore();
localCanvas.save();
localPaint2 = c.instancePaint(localPaint1, paramVarArgs);
localPaint2.setColor(-1150121);
localPath = c.instancePath(paramVarArgs);
localPath.moveTo(43.0F, 35.0F);
localPath.lineTo(43.0F, 24.87092F);
localPath.lineTo(43.0F, 20.50185F);
localPath.cubicTo(43.0F, 13.046129F, 36.955845F, 7.0F, 29.5F, 7.0F);
localPath.cubicTo(24.75873F, 7.0F, 29.5F, 7.0F, 29.5F, 7.0F);
localPath.cubicTo(22.040064F, 7.0F, 16.0F, 13.045625F, 16.0F, 20.503281F);
localPath.cubicTo(16.0F, 20.503281F, 16.0F, 26.211F, 16.0F, 24.426191F);
localPath.lineTo(16.0F, 35.0F);
localPath.lineTo(43.0F, 35.0F);
localPath.close();
WeChatSVGRenderC2Java.setFillType(localPath, 2);
localCanvas.drawPath(localPath, localPaint2);
localCanvas.restore();
localCanvas.save();
localPaint2 = c.instancePaint(localPaint1, paramVarArgs);
localPaint2.setColor(-1);
localPath = c.instancePath(paramVarArgs);
localPath.moveTo(22.200684F, 38.115723F);
localPath.cubicTo(22.200684F, 38.115723F, 21.690918F, 42.961914F, 23.961914F, 45.899902F);
localPath.cubicTo(26.230072F, 48.834221F, 29.463587F, 44.642944F, 29.583549F, 43.118626F);
localPath.cubicTo(26.589844F, 42.558025F, 22.200684F, 38.115723F, 22.200684F, 38.115723F);
localPath.close();
WeChatSVGRenderC2Java.setFillType(localPath, 2);
localCanvas.drawPath(localPath, localPaint2);
localCanvas.restore();
localCanvas.save();
localPaint1 = c.instancePaint(localPaint1, paramVarArgs);
localPaint1.setColor(-1);
arrayOfFloat = c.setMatrixFloatArray(arrayOfFloat, -1.0F, 0.0F, 66.791992F, 0.0F, 1.0F, 0.0F, 0.0F, 0.0F, 1.0F);
((Matrix)localObject).reset();
((Matrix)localObject).setValues(arrayOfFloat);
localCanvas.concat((Matrix)localObject);
localObject = c.instancePath(paramVarArgs);
((Path)localObject).moveTo(29.706408F, 38.115723F);
((Path)localObject).cubicTo(29.706408F, 38.115723F, 29.196642F, 42.961914F, 31.467638F, 45.899902F);
((Path)localObject).cubicTo(33.738636F, 48.837891F, 37.022217F, 44.632446F, 37.134521F, 43.112915F);
((Path)localObject).cubicTo(34.140381F, 42.558025F, 29.706408F, 38.115723F, 29.706408F, 38.115723F);
((Path)localObject).close();
WeChatSVGRenderC2Java.setFillType((Path)localObject, 2);
localCanvas.drawPath((Path)localObject, localPaint1);
localCanvas.restore();
c.done(paramVarArgs);
}
}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes12.jar
* Qualified Name: com.tencent.mm.boot.svg.code.drawable.ic_sex_female
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
34ad3f2544eb76cee28aa19cbb84609d8336c1fd
|
19f7e40c448029530d191a262e5215571382bf9f
|
/decompiled/instagram/sources/com/facebook/proxygen/utils/CircularEventLog.java
|
a7a3046b6c9948abdc153bbca0dd31f15c11f020
|
[] |
no_license
|
stanvanrooy/decompiled-instagram
|
c1fb553c52e98fd82784a3a8a17abab43b0f52eb
|
3091a40af7accf6c0a80b9dda608471d503c4d78
|
refs/heads/master
| 2022-12-07T22:31:43.155086
| 2020-08-26T03:42:04
| 2020-08-26T03:42:04
| 283,347,288
| 18
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,594
|
java
|
package com.facebook.proxygen.utils;
import com.facebook.proxygen.EventBase;
public class CircularEventLog {
public EventBase mEventBase;
public boolean mInitialized;
public final int mRingSize;
private native InflightRequestResponseInfo[] getInflightRequestResponseInfos(EventBase eventBase);
private native String[] getLogLines(EventBase eventBase);
private native void init(EventBase eventBase, boolean z, int i);
private native void markAdhocEvent(EventBase eventBase, String str);
public boolean isInitialized() {
return this.mInitialized;
}
public void nonBlockingInit() {
init(this.mEventBase, false, this.mRingSize);
this.mInitialized = true;
}
public CircularEventLog(EventBase eventBase, int i) {
this.mEventBase = eventBase;
this.mRingSize = i;
}
public InflightRequestResponseInfo[] getInflightRequestResponseInfos() {
Preconditions.checkState(this.mInitialized, "CircularEventLog was not initialized");
return getInflightRequestResponseInfos(this.mEventBase);
}
public String[] getLogLines() {
Preconditions.checkState(this.mInitialized, "CircularEventLog was not initialized");
return getLogLines(this.mEventBase);
}
public void init() {
init(this.mEventBase, true, this.mRingSize);
this.mInitialized = true;
}
public void markAdhocEvent(String str) {
Preconditions.checkState(this.mInitialized, "CircularEventLog was not initialized");
markAdhocEvent(this.mEventBase, str);
}
}
|
[
"stan@rooy.works"
] |
stan@rooy.works
|
92339b038a9181b48ebd90f5a2ab947285657ecc
|
2b2e4fbdabc1d8661aca5d1203185248aa9160ec
|
/integration-tests/src/test/java/fr/pilato/elasticsearch/crawler/fs/test/integration/FsCrawlerTestStoreSourceIT.java
|
184551e135c0ed90348f215d3d0424c176a5f0ee
|
[
"CC-BY-4.0",
"Apache-2.0"
] |
permissive
|
anais-it/fscrawler
|
0330845be23e0a4d29ec90a7571b36b69ef21e54
|
b0c78ac97d0ae6b01c0fe612712530f88b309b1a
|
refs/heads/master
| 2020-03-21T20:27:52.719539
| 2019-07-04T12:09:41
| 2019-07-04T12:09:41
| 139,008,597
| 0
| 0
|
Apache-2.0
| 2018-06-28T11:22:57
| 2018-06-28T11:22:57
| null |
UTF-8
|
Java
| false
| false
| 3,178
|
java
|
/*
* Licensed to David Pilato (the "Author") under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Author 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 fr.pilato.elasticsearch.crawler.fs.test.integration;
import fr.pilato.elasticsearch.crawler.fs.beans.Doc;
import fr.pilato.elasticsearch.crawler.fs.settings.Fs;
import org.elasticsearch.action.search.SearchRequest;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.search.SearchHit;
import org.junit.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.notNullValue;
import static org.hamcrest.Matchers.nullValue;
/**
* Test store_source crawler setting
*/
public class FsCrawlerTestStoreSourceIT extends AbstractFsCrawlerITCase {
@Test
public void test_store_source() throws Exception {
Fs fs = startCrawlerDefinition()
.setStoreSource(true)
.build();
startCrawler(getCrawlerName(), fs, endCrawlerDefinition(getCrawlerName()), null);
SearchResponse searchResponse = countTestHelper(new SearchRequest(getCrawlerName()), 1L, null);
for (SearchHit hit : searchResponse.getHits().getHits()) {
// We check that the field is in _source
assertThat(hit.getSourceAsMap().get(Doc.FIELD_NAMES.ATTACHMENT), notNullValue());
}
}
@Test
public void test_do_not_store_source() throws Exception {
startCrawler();
countTestHelper(new SearchRequest(getCrawlerName()), 1L, null);
SearchResponse searchResponse = elasticsearchClient.search(new SearchRequest(getCrawlerName()));
for (SearchHit hit : searchResponse.getHits().getHits()) {
// We check that the field is not part of _source
assertThat(hit.getSourceAsMap().get(Doc.FIELD_NAMES.ATTACHMENT), nullValue());
}
}
@Test
public void test_store_source_no_index_content() throws Exception {
Fs fs = startCrawlerDefinition()
.setStoreSource(true)
.setIndexContent(false)
.build();
startCrawler(getCrawlerName(), fs, endCrawlerDefinition(getCrawlerName()), null);
SearchResponse searchResponse = countTestHelper(new SearchRequest(getCrawlerName()), 1L, null);
for (SearchHit hit : searchResponse.getHits().getHits()) {
// We check that the field is in _source
assertThat(hit.getSourceAsMap().get(Doc.FIELD_NAMES.ATTACHMENT), notNullValue());
}
}
}
|
[
"david@pilato.fr"
] |
david@pilato.fr
|
65e15a142a229e6360e06540bd2a6e997ea44142
|
d647c7623e6cd5b46049709354403889e90a2c28
|
/Numberbasedprob/src/Abundant.java
|
a5ade865f87853c840d86b41a633a9271d9a68fc
|
[] |
no_license
|
sahithi111/Practice
|
a9986b7fb8835ee4835c4ff3016ed640fae7d090
|
d20a0e2f71665579e3c26590ada9f4bc88f98955
|
refs/heads/master
| 2022-11-26T22:45:43.204210
| 2020-08-01T05:22:44
| 2020-08-01T05:22:44
| 271,502,069
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 201
|
java
|
public class Abundant {
public static void main(String[] args) {
int i,s=0,n=12;
for(i=1;i<=n;i++)
{
if(n%i==0)
s=s+i;
}
if(s>n)
System.out.println("Abundant");
}
}
|
[
"mylaptop@DESKTOP-2QOB21C"
] |
mylaptop@DESKTOP-2QOB21C
|
6c26e6c0353021155309a114d2fbe19ab3baf9b6
|
e6957397d656481a63cbf1bd5a0565085b1bfec3
|
/ESS/src/com/eec/ess/sell/filter/CharsetFilter.java
|
28edea0af655b5c73eab00e4bc5c7d1869180aea
|
[] |
no_license
|
fendou666/frameBySSM
|
bc4574c921dabf1e76dd8e9f0f7ba912209e9f18
|
22b2f9a91a1eafe2b7bb8560de6e8cacd5468260
|
refs/heads/master
| 2021-01-01T04:31:48.913878
| 2017-09-04T08:01:33
| 2017-09-04T08:01:33
| 97,188,757
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,064
|
java
|
/**
*
* 程序名称:字符编码过滤器
* 功能说明:对get/post 所有字符编码进行过滤设置
* 做成者: eec.sell.lius 2017/07/20 (组织名称.所属.自己的姓名简拼)
* 更新者: eec.sell.lius 2017/07/20 修复错误XXX
* 更新者: eec.sell.lius 2017/07/20 修复错误XXX
* 更新者: eec.sell.lius 2017/07/20 修复错误XXX
* @author 刘帅
* @since JDK1.8(支持的版本)
* @since Tomcat8.0(支持的版本)
*/
package com.eec.ess.sell.filter;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
public class CharsetFilter implements Filter {
@Override
public void destroy() {
}
@Override
public void doFilter(ServletRequest arg0, ServletResponse arg1,
FilterChain arg2) throws IOException, ServletException {
}
@Override
public void init(FilterConfig arg0) throws ServletException {
}
}
|
[
"ls_code@126.com"
] |
ls_code@126.com
|
08c910dc557bb311bc648c6df3de322f53454dc8
|
53d677a55e4ece8883526738f1c9d00fa6560ff7
|
/com/tencent/mm/g/a/dh.java
|
dc399a6e6beb016d8d7f143beb87e1b6de532765
|
[] |
no_license
|
0jinxing/wechat-apk-source
|
544c2d79bfc10261eb36389c1edfdf553d8f312a
|
f75eefd87e9b9ecf2f76fc6d48dbba8e24afcf3d
|
refs/heads/master
| 2020-06-07T20:06:03.580028
| 2019-06-21T09:17:26
| 2019-06-21T09:17:26
| 193,069,132
| 9
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 645
|
java
|
package com.tencent.mm.g.a;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.b.b;
public final class dh extends b
{
public dh.a cwx;
public dh.b cwy;
public dh()
{
this((byte)0);
}
private dh(byte paramByte)
{
AppMethodBeat.i(70144);
this.cwx = new dh.a();
this.cwy = new dh.b();
this.xxG = false;
this.callback = null;
AppMethodBeat.o(70144);
}
}
/* Location: C:\Users\Lin\Downloads\dex-tools-2.1-SNAPSHOT\dex-tools-2.1-SNAPSHOT\classes3-dex2jar.jar
* Qualified Name: com.tencent.mm.g.a.dh
* JD-Core Version: 0.6.2
*/
|
[
"172601673@qq.com"
] |
172601673@qq.com
|
b6ec07d851210a1fbeb63b341ba7d56198eab192
|
6e9a5bddddfb841999a00bec00b9466d266cd1f0
|
/jun_ureport2/ureport2-core/src/main/java/com/bstek/ureport/definition/searchform/CheckboxInputComponent.java
|
a4873fcf51398b50c7b316cf8127fb8b846d42c4
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
cuilong1009/jun_bigdata
|
9c36dde7a5fe8fe85abfe43398f797decc7cb1d4
|
1ad4194eaab24735e3864831c9fede787361599a
|
refs/heads/master
| 2023-06-05T05:21:58.095287
| 2020-11-25T16:01:26
| 2020-11-25T16:01:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,998
|
java
|
/*******************************************************************************
* Copyright 2017 Bstek
*
* 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.bstek.ureport.definition.searchform;
import java.util.Arrays;
import java.util.List;
/**
* @author Wujun
* @since 2017年10月23日
*/
public class CheckboxInputComponent extends InputComponent {
private boolean optionsInline;
private List<Option> options;
@Override
String inputHtml(RenderContext context) {
StringBuilder sb=new StringBuilder();
String name=getBindParameter();
Object pvalue=context.getParameter(name)==null ? "" : context.getParameter(name);
String[] data=pvalue.toString().split(",");
List<String> list=Arrays.asList(data);
for(Option option:options){
String value=option.getValue();
String label=option.getLabel();
String checked=list.contains(value) ? "checked" : "";
if(this.optionsInline){
sb.append("<span class='checkbox-inline' style='padding-top:0px'><input value='"+value+"' type='checkbox' "+checked+" name='"+name+"'>"+label+"</span>");
}else{
sb.append("<span class='checkbox'><input type='checkbox' value='"+value+"' name='"+name+"' "+checked+" style='margin-left: auto'><span style=\"margin-left:15px\">"+label+"</span></span>");
}
}
return sb.toString();
}
@Override
public String initJs(RenderContext context) {
String name=getBindParameter();
StringBuilder sb=new StringBuilder();
sb.append("formElements.push(");
sb.append("function(){");
sb.append("if(''==='"+name+"'){");
sb.append("alert('复选框未绑定查询参数名,不能进行查询操作!');");
sb.append("throw '复选框未绑定查询参数名,不能进行查询操作!'");
sb.append("}");
sb.append("var names='';");
sb.append("$(\"input[name='"+getBindParameter()+"']:checked\").each(function(index,item){");
sb.append("if(names===''){names+=$(item).val();}else{names+=','+$(item).val();}");
sb.append("});");
sb.append("return {");
sb.append("\""+name+"\":names");
sb.append("}");
sb.append("}");
sb.append(");");
return sb.toString();
}
public void setOptionsInline(boolean optionsInline) {
this.optionsInline = optionsInline;
}
public boolean isOptionsInline() {
return optionsInline;
}
public void setOptions(List<Option> options) {
this.options = options;
}
public List<Option> getOptions() {
return options;
}
}
|
[
"wujun728@hotmail.com"
] |
wujun728@hotmail.com
|
d29878ef2b55fb2b71e8f9a72d2b200d75236d2f
|
0ab35958ef1c69584e779035454829c1e45f2dd5
|
/mavcom/src/main/java/com/comino/mavcom/control/impl/MAVSimController.java
|
645b652ed69f6728125cd7254327aba14078c7fc
|
[] |
no_license
|
ecmnet/mavcom
|
2449873dd2fc199310d4e36a09e072700881cd8c
|
2da45e86ff7dd58073009944d3817fcd097dae90
|
refs/heads/master
| 2023-08-09T13:49:36.745328
| 2023-07-26T12:27:43
| 2023-07-26T12:27:43
| 214,370,805
| 1
| 1
| null | 2023-07-28T20:57:37
| 2019-10-11T07:23:02
|
Java
|
UTF-8
|
Java
| false
| false
| 6,798
|
java
|
/****************************************************************************
*
* Copyright (c) 2017,2018 Eike Mansfeld ecm@gmx.de. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
* 3. Neither the name of the copyright holder nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
****************************************************************************/
package com.comino.mavcom.control.impl;
import java.util.ArrayList;
import java.util.List;
import org.mavlink.messages.MAVLinkMessage;
import com.comino.mavcom.control.IMAVController;
import com.comino.mavcom.log.IMAVMessageListener;
import com.comino.mavcom.log.MSPLogger;
import com.comino.mavcom.model.DataModel;
import com.comino.mavcom.model.segment.LogMessage;
import com.comino.mavcom.model.segment.Status;
import com.comino.mavcom.status.listener.IMSPStatusChangedListener;
import com.comino.mavutils.MSPMathUtils;
import com.comino.mavutils.workqueue.WorkQueue;
public class MAVSimController extends MAVController implements IMAVController {
DataModel model = null;
ArrayList<LogMessage> msgList;
private List<IMAVMessageListener> msgListener = null;
private ArrayList<IMSPStatusChangedListener> modeListener;
private final WorkQueue wq = WorkQueue.getInstance();
public MAVSimController() {
model = new DataModel();
msgList = new ArrayList<LogMessage>();
msgListener = new ArrayList<IMAVMessageListener>();
modeListener = new ArrayList<IMSPStatusChangedListener>();
wq.addCyclicTask("NP", 50, new Simulation());
}
@Override
public boolean connect() {
MSPLogger.getInstance().writeLocalMsg("Simulation Controller loaded");
return true;
}
@Override
public DataModel getCurrentModel() {
return model;
}
// @Override
// public List<DataModel> getModelList() {
// return collector.getModelList();
// }
@Override
public boolean close() {
return true;
}
@Override
public void addMAVMessageListener(IMAVMessageListener listener) {
msgListener.add(listener);
}
@Override
public boolean sendMAVLinkMessage(MAVLinkMessage msg) {
if (!controller.getCurrentModel().sys.isStatus(Status.MSP_CONNECTED)) {
System.out.println("Command rejected. No connection.");
return false;
}
return true;
}
@Override
public void addStatusChangeListener(IMSPStatusChangedListener listener) {
this.modeListener.add(listener);
}
@Override
public boolean sendMAVLinkCmd(int command, float... params) {
return true;
}
public boolean sendMSPLinkCmd(int command, float... params) {
if (!controller.getCurrentModel().sys.isStatus(Status.MSP_CONNECTED)) {
System.out.println("Command rejected. No connection.");
return false;
}
return true;
}
private class Simulation implements Runnable {
Status old = new Status();
long count = 0;
int msg_count = 0;
@Override
public void run() {
model.battery.b0 = 12.75f - count / 500f;
model.base.latitude = 48;
model.base.longitude = 11;
model.base.altitude = 520;
model.base.numsat = 9;
model.home_state.g_lat = 42.406314f;
model.home_state.g_lon = 8.730709;
model.state.g_lat = 42.406314f;
model.state.g_lon = 8.730709;
count++;
// if(model.state.l_z > -5.0f)
// model.state.l_z = model.state.l_z - 0.001f - (float)Math.random()*0.001f;
model.state.l_z = -(float) (Math.sin(count / 400f)) * 2f;
model.state.l_x = (float) (Math.sin(count / 200f)) * 1f;
model.state.l_y = (float) (Math.cos(count / 200f)) * 1f;
model.vision.x = model.state.l_x + (float) Math.random() * 0.2f - 0.1f;
model.vision.y = model.state.l_y + (float) Math.random() * 0.2f - 0.1f;
model.vision.z = model.state.l_z + (float) Math.random() * 0.2f - 0.1f;
model.flow.fd = (float) Math.random() * 0.5f + 1;
model.attitude.r = 0;
model.attitude.p = (float) (Math.PI / 4);
model.attitude.y = (float) (count / 1000f % (2 * Math.PI));
model.imu.accx = (float) Math.random() * 0.5f - 0.25f;
model.imu.accy = (float) Math.random() * 0.5f - 0.25f;
model.imu.accz = (float) Math.random() * 0.5f - 9.81f;
model.imu.gyrox = (float) Math.random() * 0.5f - 0.25f;
model.imu.gyroy = (float) Math.random() * 0.5f - 0.25f;
model.imu.gyroz = (float) Math.random() * 0.5f - 0.25f;
model.sys.setStatus(Status.MSP_LANDED, false);
model.gps.latitude = 47.37174f;
model.gps.longitude = 8.54226f;
model.gps.numsat = 8;
// for(int i=0;i<5;i++)
// model.grid.setBlock((float)Math.random()*20f-10,(float)Math.random()*20f-10, -(float)Math.random()*3, Math.random()>0.8);
model.hud.ag = (float) Math.random() * 10f + 500f;
model.imu.abs_pressure = 1013 + (float) Math.random() * 10f;
model.sys.setStatus(Status.MSP_CONNECTED, true);
model.sys.setStatus(Status.MSP_ARMED, true);
model.sys.setSensor(Status.MSP_IMU_AVAILABILITY, true);
model.sys.setSensor(Status.MSP_LIDAR_AVAILABILITY, true);
model.sys.setSensor(Status.MSP_PIX4FLOW_AVAILABILITY, true);
model.sys.setSensor(Status.MSP_GPS_AVAILABILITY, true);
if (!old.isEqual(model.sys)) {
for (IMSPStatusChangedListener listener : modeListener) {
listener.update(model.sys);
}
}
old.set(model.sys);
if (msgList.size() > msg_count) {
msg_count = msgList.size();
if (msgListener != null) {
for (IMAVMessageListener msglistener : msgListener)
msglistener.messageReceived(msgList.get(msg_count - 1));
}
}
}
}
}
|
[
"ecm@gmx.de"
] |
ecm@gmx.de
|
052faab3d9dc47a5f713e6b6c1d830870beb5f73
|
45a832f00cecb2a30b68016118ab675fbb03f7e2
|
/jpashop_api/src/main/java/livenowjpaweb/jpashop/exception/NotEnoughStockException.java
|
2b692d0f7836c1bb5967e97a241c0cb3b8531743
|
[] |
no_license
|
Livenow14/springboot-jpa-web-onlinelecture2
|
84197702ed24cc5326423efb77dc085f768991ca
|
17b27aa3e720a15d25aea21ceff895d184d45aca
|
refs/heads/master
| 2022-09-03T15:43:32.001751
| 2020-05-26T14:14:15
| 2020-05-26T14:14:15
| 260,454,869
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 650
|
java
|
package livenowjpaweb.jpashop.exception;
public class NotEnoughStockException extends RuntimeException {
public NotEnoughStockException() {
super();
}
public NotEnoughStockException(String message) {
super(message);
}
public NotEnoughStockException(String message, Throwable cause) {
super(message, cause);
}
public NotEnoughStockException(Throwable cause) {
super(cause);
}
protected NotEnoughStockException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
}
|
[
"xowjd41@naver.com"
] |
xowjd41@naver.com
|
0d6e7e1153d3a18c0854e54443701fcbf87ead0d
|
15aff3446c957fc934c98dc84a0668a2025f28c1
|
/open-metadata-implementation/repository-services/repository-services-implementation/src/main/java/org/odpi/openmetadata/repositoryservices/enterprise/repositoryconnector/accumulators/EntityDetailAccumulator.java
|
e003355def3a96be3d4810168f10e178e1419dc2
|
[
"CC-BY-4.0",
"Apache-2.0"
] |
permissive
|
ilovechai/egeria
|
0865773e6deaf35991ab23a649e91f4715dc749c
|
c7cd3dd4bb6c960f6b81ecd71394af48cc16a23b
|
refs/heads/main
| 2023-03-15T18:15:16.154074
| 2023-03-03T13:10:41
| 2023-03-03T13:10:41
| 610,375,922
| 1
| 0
|
Apache-2.0
| 2023-03-06T20:57:45
| 2023-03-06T16:42:28
| null |
UTF-8
|
Java
| false
| false
| 4,079
|
java
|
/* SPDX-License-Identifier: Apache 2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.accumulators;
import org.odpi.openmetadata.frameworks.auditlog.AuditLog;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail;
import java.util.ArrayList;
import java.util.List;
/**
* ClassificationAccumulator accumulates and validates an entity received from a collection of open metadata
* repositories. It removes duplicates from the list by choosing the latest entity details object.
*
* This class may be called simultaneously from different threads, so it must be thread-safe.
*/
public class EntityDetailAccumulator extends ClassificationAccumulator
{
private volatile EntityDetail currentSavedEntity = null;
/**
* Construct an entity accumulator. Its base class manages the common variables needed to
* control the execution of requests across all members of the cohort(s).
*
* @param auditLog audit log provides destination for log messages
*/
public EntityDetailAccumulator(AuditLog auditLog)
{
super(auditLog);
}
/**
* Provide an entity received from an open metadata repository.
*
* @param incomingEntity entity returned from an open metadata repository
* @param metadataCollectionId unique identifier for the collection of metadata stored in this repository
* This is used for error reporting.
*/
public synchronized void addEntity(EntityDetail incomingEntity,
String metadataCollectionId)
{
if ((incomingEntity != null) && (incomingEntity.getGUID() != null))
{
if (metadataCollectionId.equals(incomingEntity.getMetadataCollectionId()))
{
/*
* The home repository is found - assume it is the latest version - moving to phase two
*/
currentSavedEntity = incomingEntity;
super.setInPhaseOne(false);
}
else if (currentSavedEntity == null)
{
currentSavedEntity = incomingEntity;
}
else
{
/*
* This incoming instance is ignored if we already have a later version.
*/
if (! super.currentInstanceIsBest(currentSavedEntity, incomingEntity))
{
currentSavedEntity = incomingEntity;
}
}
/*
* Now consider the classifications. Each received entity may have a different set of classifications attached and
* the enterprise connector should create an accumulated list of the best ones.
*/
super.saveClassifications(incomingEntity.getClassifications());
}
}
/**
* Return the list of GUIDs for the entities returned from the query.
*
* @return null or list of GUIDs
*/
public List<String> getResultsForAugmentation()
{
if (currentSavedEntity != null)
{
List<String> resultsArray = new ArrayList<>();
resultsArray.add(currentSavedEntity.getGUID());
return resultsArray;
}
return null;
}
/**
* Extract the resulting entity and accumulated classifications. It should be called once all the executors have completed processing
* their request(s).
*
* @param returnDeletedClassifications should classifications in deleted status be returned?
* @return consolidated entity
*/
public EntityDetail getResult(boolean returnDeletedClassifications)
{
if (currentSavedEntity != null)
{
currentSavedEntity.setClassifications(super.getClassifications(returnDeletedClassifications));
return currentSavedEntity;
}
return null;
}
}
|
[
"mandy.e.chessell@gmail.com"
] |
mandy.e.chessell@gmail.com
|
4639106ad0f4b83f3bb0d60b3ab97354273f813b
|
80403ec5838e300c53fcb96aeb84d409bdce1c0c
|
/server/api/src/org/labkey/api/admin/BaseFolderWriter.java
|
aa4a5aa9cfbf8131b4d853df37ee6bc8fe69822e
|
[] |
no_license
|
scchess/LabKey
|
7e073656ea494026b0020ad7f9d9179f03d87b41
|
ce5f7a903c78c0d480002f738bccdbef97d6aeb9
|
refs/heads/master
| 2021-09-17T10:49:48.147439
| 2018-03-22T13:01:41
| 2018-03-22T13:01:41
| 126,447,224
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,810
|
java
|
/*
* Copyright (c) 2012-2016 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.labkey.api.admin;
import org.labkey.api.data.Container;
import org.labkey.api.writer.VirtualFile;
import org.labkey.api.writer.Writer;
import org.labkey.folder.xml.FolderDocument;
import java.util.Collection;
/**
* User: cnathe
* Date: Apr 13, 2012
*/
public class BaseFolderWriter implements FolderWriter
{
@Override
public boolean show(Container c)
{
return true;
}
@Override
public boolean selectedByDefault(AbstractFolderContext.ExportType type)
{
return AbstractFolderContext.ExportType.ALL == type;
}
@Override
public Collection<Writer> getChildren(boolean sort, boolean forTemplate)
{
return null;
}
@Override
public String getDataType()
{
return null;
}
@Override
public void write(Container object, ImportContext<FolderDocument.Folder> ctx, VirtualFile vf) throws Exception
{}
@Override
public boolean includeWithTemplate()
{
return true;
}
@Override
public void initialize(ImportContext<FolderDocument.Folder> context)
{
// Do nothing
}
}
|
[
"klum@labkey.com"
] |
klum@labkey.com
|
1b50f9e291b84871b8337878631d66e5c7166352
|
4148c71fc73d5b8e553c07deede613f46cde3c46
|
/src/org/processmining/plugins/realtimedcc/streamer/AbstractStreamListener.java
|
9c0d28c7dd4b01c96dfb61dcdf8c74db7f912a55
|
[] |
no_license
|
Macuyiko/processmining-decomposedconformance
|
3aee21d918d6de3554654e3fcb9e707cf284bc34
|
fc00844788e68e15580eab2071f02dc11c0b78e6
|
refs/heads/master
| 2020-05-07T15:27:08.707573
| 2019-04-10T17:58:10
| 2019-04-10T17:58:10
| 180,635,740
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 343
|
java
|
package org.processmining.plugins.realtimedcc.streamer;
public abstract class AbstractStreamListener implements StreamListener {
private final StreamController controller;
public AbstractStreamListener(StreamController controller) {
this.controller = controller;
}
public StreamController getController() {
return controller;
}
}
|
[
"macuyiko@gmail.com"
] |
macuyiko@gmail.com
|
1e9e84c8d3e6bcd1304e4b2a189c078f05a376e0
|
ed5159d056e98d6715357d0d14a9b3f20b764f89
|
/test/irvine/oeis/a251/A251260Test.java
|
78d9f80a217887a4c4216798ba06cd0e9d913ce1
|
[] |
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.a251;
import irvine.oeis.AbstractSequenceTest;
/**
* Tests the corresponding class.
* @author Sean A. Irvine
*/
public class A251260Test extends AbstractSequenceTest {
}
|
[
"sairvin@gmail.com"
] |
sairvin@gmail.com
|
83d51e0284ed8dcb56cc492a6699b52df34615c1
|
9bf6dee1407f112cebf42443e0f492e89d0d3fbc
|
/gameserver/src/org/openaion/gameserver/model/gameobjects/stats/StatEnum.java
|
3a7324d0afc9420a02cd87c604a5b6381bbf44a5
|
[] |
no_license
|
vavavr00m/aion-source
|
6caef6738fee6d4898fcb66079ea63da46f5c9c0
|
8ce4c356d860cf54e5f3fe4a799197725acffc3b
|
refs/heads/master
| 2021-01-10T02:08:43.965463
| 2011-08-22T10:47:12
| 2011-08-22T10:47:12
| 50,949,918
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,392
|
java
|
package org.openaion.gameserver.model.gameobjects.stats;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
import org.openaion.gameserver.model.items.ItemSlot;
/**
* @author blakawk
* @author ATracer
*
*/
@XmlType(name = "StatEnum")
@XmlEnum
public enum StatEnum
{
// None = 0,
// FireResistance = 15,
// HP = 18,
// MP = 20,
// FlightTime = 23,
// Attack = 25,
// PhysicalDefense = 26,
// MagicalAttack = 27,
// MagicalRes = 28,
// AttackSpeed = 29, //%
// Accuracy = 30,
// Evasion = 31,
// Parry = 32,
// Block = 33,
// PhysicalCrit = 34,
// Speed = 36, // %
// FlightSpeed = 37, // %
// MagicalCrit = 40,
// Concentration = 41,
// MagicPower = 104,
// MagicalAccuracy = 105,
// Knowledge = 106,
// Agility = 107,
// Hate = 109
MAXDP(0, "maxdp"),
MAXHP(18, "maxhp"),
MAXMP(20, "maxmp"),
AGILITY(107, "agility",true),
BLOCK(33, "block"),
EVASION(31, "dodge"),
CONCENTRATION(41, "concentration"),
WILL(0, "will",true),
HEALTH(0, "health",true),
ACCURACY(0, "accuracy",true),
KNOWLEDGE(106, "knowledge",true),
PARRY(32, "parry"),
POWER(0, "strength",true),
SPEED(36, "speed",true),
HIT_COUNT(0, "hitcount",true),
ATTACK_RANGE(0, "attackrange",true),
ATTACK_SPEED(29, "attackdelay",-1,true),
PHYSICAL_ATTACK(25, "phyattack"),
PHYSICAL_ACCURACY(30, "hitaccuracy"),
PHYSICAL_CRITICAL(34, "critical"),
PHYSICAL_DEFENSE(26, "physicaldefend"),
MAIN_HAND_HITS(0, "mainhandhits"),
MAIN_HAND_ACCURACY(0, "mainhandaccuracy"),
MAIN_HAND_CRITICAL(0, "mainhandcritical"),
MAIN_HAND_PHYSICAL_ATTACK(0, "mainhandpattack"),
OFF_HAND_HITS(0, "offhandhits"),
OFF_HAND_ACCURACY(0, "offhandaccuracy"),
OFF_HAND_CRITICAL(0, "offhandcritical"),
OFF_HAND_PHYSICAL_ATTACK(0, "offhandpattack"),
CRITICAL_RESIST(0, "physicalcriticalreducerate"),
MAGICAL_ATTACK(27, "magicalattack"),
MAGICAL_ACCURACY(105, "magicalhitaccuracy"),
MAGICAL_CRITICAL(40, "magicalcritical"),
MAGICAL_RESIST(28, "magicalresist"),
MAX_DAMAGES(0, "maxdamages"),
MIN_DAMAGES(0, "mindamages"),
IS_MAGICAL_ATTACK(0, "ismagicalattack",true),
EARTH_RESISTANCE(0, "elementaldefendearth"),
FIRE_RESISTANCE(15, "elementaldefendfire"),
WIND_RESISTANCE(0, "elementaldefendair"),
WATER_RESISTANCE(0, "elementaldefendwater"),
BOOST_MAGICAL_SKILL(104, "magicalskillboost"),
BOOST_CASTING_TIME(0, "boostcastingtime"),
BOOST_HATE(109, "boosthate"),
BOOST_HEAL(0, "boostheal"),
FLY_TIME(23, "maxfp"),
FLY_SPEED(37, "flyspeed"),
PVP_ATTACK_RATIO(0, "pvpattackratio"),
PVP_DEFEND_RATIO(0, "pvpdefendratio"),
DAMAGE_REDUCE(0, "damagereduce"),
BLEED_RESISTANCE(0, "arbleed"),
BLIND_RESISTANCE(0, "arblind"),
CHARM_RESISTANCE(0, "archarm"),
CONFUSE_RESISTANCE(0, "arconfuse"),
CURSE_RESISTANCE(0, "arcurse"),
DISEASE_RESISTANCE(0, "ardisease"),
FEAR_RESISTANCE(0, "arfear"),
OPENAREIAL_RESISTANCE(0, "aropenareial"),
PARALYZE_RESISTANCE(0, "arparalyze"),
PERIFICATION_RESISTANCE(0, "arperification"),
POISON_RESISTANCE(0, "arpoison"),
ROOT_RESISTANCE(0, "arroot"),
SILENCE_RESISTANCE(0, "arsilence"),
SLEEP_RESISTANCE(0, "arsleep"),
SLOW_RESISTANCE(0, "arslow"),
SNARE_RESISTANCE(0, "arsnare"),
SPIN_RESISTANCE(0, "arspin"),
STAGGER_RESISTANCE(0, "arstagger"),
STUMBLE_RESISTANCE(0, "arstumble"),
STUN_RESISTANCE(0, "arstun"),
REGEN_MP(0, "mpregen"),
REGEN_HP(0, "hpregen"),
/**
* New/Strange
*/
REGEN_FP(0, "fpregen"),
STAGGER_BOOST(0, "stagger_arp"),
STUMBLE_BOOST(0, "stumble_arp"),
STUN_BOOST(0, "stun_arp"),
HEAL_BOOST(0, "healskillboost"),
ALLRESIST(0, "allresist"),
STUNLIKE_RESISTANCE(0, "arstunlike"),
ELEMENTAL_RESISTANCE_DARK(0, "elemental_resistance_dark"),
ELEMENTAL_RESISTANCE_LIGHT(0, "elemental_resistance_light"),
MAGICAL_CRITICAL_RESIST(0, "magicalcriticalresist"),
MAGICAL_CRITICAL_DAMAGE_REDUCE(0, "magicalcriticaldamagereduce"),
PHYSICAL_CRITICAL_RESIST(0, "physicalcriticalresist"),
PHYSICAL_CRITICAL_DAMAGE_REDUCE(0, "physicalcriticalreducerate"),
ERFIRE(0, "erfire"),
ERAIR(0, "erair"),
EREARTH(0, "erearth"),
ERWATER(0, "erwater"),
ABNORMAL_RESISTANCE_ALL(0, "abnormal_resistance_all"),
MAGICAL_DEFEND(0, "magical_defend"),
ALLPARA(0, "allpara"),
KNOWIL(0, "knowil"),
AGIDEX(0, "agidex"),
STRVIT(0, "strvit"),
/*
* custom
*/
MAIN_MAX_DAMAGES(0, "mainmaxdamages"),
MAIN_MIN_DAMAGES(0, "mainmindamages"),
OFF_MAX_DAMAGES(0, "offmaxdamages"),
OFF_MIN_DAMAGES(0, "offmindamages");
private String name;
private boolean replace;
private int sign;
private int itemStoneMask;
private StatEnum (int stoneMask, String name)
{
this(stoneMask, name,1,false);
}
private StatEnum (int stoneMask, String name, boolean replace)
{
this(stoneMask,name,1,replace);
}
private StatEnum (int stoneMask, String name, int sign)
{
this(stoneMask, name,sign,false);
}
private StatEnum (int stoneMask, String name, int sign, boolean replace)
{
this.itemStoneMask = stoneMask;
this.name = name;
this.replace = replace;
this.sign = sign;
}
public String getName ()
{
return name;
}
public int getSign ()
{
return sign;
}
/**
* @return the itemStoneMask
*/
public int getItemStoneMask()
{
return itemStoneMask;
}
public static StatEnum find(String name)
{
for(StatEnum sEnum : values())
{
if(sEnum.getName().toLowerCase().equals(name.toLowerCase()))
{
return sEnum;
}
}
throw new IllegalArgumentException("Cannot find StatEnum for: " + name);
}
/**
* Used to find specific StatEnum by its item stone mask
*
* @param mask
* @return StatEnum
*/
public static StatEnum findByItemStoneMask(int mask)
{
for(StatEnum sEnum : values())
{
if(sEnum.getItemStoneMask() == mask)
{
return sEnum;
}
}
throw new IllegalArgumentException("Cannot find StatEnum for stone mask: " + mask);
}
public StatEnum getMainOrSubHandStat (ItemSlot slot, boolean magicalAttack)
{
if(slot == null)
return this;
switch(this)
{
case PHYSICAL_ATTACK:
if (magicalAttack)
return MAGICAL_ATTACK;
else
{
switch(slot)
{
case SUB_HAND:
return OFF_HAND_PHYSICAL_ATTACK;
case MAIN_HAND:
return MAIN_HAND_PHYSICAL_ATTACK;
}
}
case PHYSICAL_ACCURACY:
switch(slot)
{
case SUB_HAND:
return OFF_HAND_ACCURACY;
case MAIN_HAND:
return MAIN_HAND_ACCURACY;
}
case PHYSICAL_CRITICAL:
switch(slot)
{
case SUB_HAND:
return OFF_HAND_CRITICAL;
case MAIN_HAND:
return MAIN_HAND_CRITICAL;
}
case HIT_COUNT:
switch(slot)
{
case SUB_HAND:
return OFF_HAND_HITS;
case MAIN_HAND:
return MAIN_HAND_HITS;
}
case MIN_DAMAGES:
switch(slot)
{
case SUB_HAND:
return OFF_MIN_DAMAGES;
case MAIN_HAND:
return MAIN_MIN_DAMAGES;
}
case MAX_DAMAGES:
switch(slot)
{
case SUB_HAND:
return OFF_MAX_DAMAGES;
case MAIN_HAND:
return MAIN_MAX_DAMAGES;
}
default:
return this;
}
}
public boolean isMainOrSubHandStat( boolean magicalAttack)
{
switch(this)
{
case PHYSICAL_ATTACK:
if (magicalAttack)
return false;
case PHYSICAL_ACCURACY:
case PHYSICAL_CRITICAL:
return true;
default:
return false;
}
}
public boolean isReplace () {
return replace;
}
}
|
[
"tomulescu@gmail.com"
] |
tomulescu@gmail.com
|
461d3d549036bfbc0db9da6138aca14bd5f7a611
|
3ef55e152decb43bdd90e3de821ffea1a2ec8f75
|
/large/module0224_public/tests/more/src/java/module0224_public_tests_more/a/Foo1.java
|
96ade80aae983b967ebd1bdb1484548e68984476
|
[
"BSD-3-Clause"
] |
permissive
|
salesforce/bazel-ls-demo-project
|
5cc6ef749d65d6626080f3a94239b6a509ef145a
|
948ed278f87338edd7e40af68b8690ae4f73ebf0
|
refs/heads/master
| 2023-06-24T08:06:06.084651
| 2023-03-14T11:54:29
| 2023-03-14T11:54:29
| 241,489,944
| 0
| 5
|
BSD-3-Clause
| 2023-03-27T11:28:14
| 2020-02-18T23:30:47
|
Java
|
UTF-8
|
Java
| false
| false
| 1,596
|
java
|
package module0224_public_tests_more.a;
import java.beans.beancontext.*;
import java.io.*;
import java.rmi.*;
/**
* Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
* labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
* Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
*
* @see java.io.File
* @see java.rmi.Remote
* @see java.nio.file.FileStore
*/
@SuppressWarnings("all")
public abstract class Foo1<B> extends module0224_public_tests_more.a.Foo0<B> implements module0224_public_tests_more.a.IFoo1<B> {
java.sql.Array f0 = null;
java.util.logging.Filter f1 = null;
java.util.zip.Deflater f2 = null;
public B element;
public static Foo1 instance;
public static Foo1 getInstance() {
return instance;
}
public static <T> T create(java.util.List<T> input) {
return module0224_public_tests_more.a.Foo0.create(input);
}
public String getName() {
return module0224_public_tests_more.a.Foo0.getInstance().getName();
}
public void setName(String string) {
module0224_public_tests_more.a.Foo0.getInstance().setName(getName());
return;
}
public B get() {
return (B)module0224_public_tests_more.a.Foo0.getInstance().get();
}
public void set(Object element) {
this.element = (B)element;
module0224_public_tests_more.a.Foo0.getInstance().set(this.element);
}
public B call() throws Exception {
return (B)module0224_public_tests_more.a.Foo0.getInstance().call();
}
}
|
[
"gwagenknecht@salesforce.com"
] |
gwagenknecht@salesforce.com
|
cde26fa570ab4d7efdc5a26ba0b92a452ef228cb
|
cfe621e8c36e6ac5053a2c4f7129a13ea9f9f66b
|
/apps_final/names.of.allah/apk/com/google/b/a/a/d.java
|
584783deb46be519a7b547b4ac95c86bc8e48801
|
[] |
no_license
|
linux86/AndoirdSecurity
|
3165de73b37f53070cd6b435e180a2cb58d6f672
|
1e72a3c1f7a72ea9cd12048d9874a8651e0aede7
|
refs/heads/master
| 2021-01-11T01:20:58.986651
| 2016-04-05T17:14:26
| 2016-04-05T17:14:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 679
|
java
|
package com.google.b.a.a;
import java.util.ArrayList;
import java.util.List;
public abstract class d
extends h
{
protected List<j> unknownFieldData;
public <T> T getExtension(e<T> parame)
{
return (T)k.a(parame, unknownFieldData);
}
public int getSerializedSize()
{
int i = k.a(unknownFieldData);
cachedSize = i;
return i;
}
public <T> void setExtension(e<T> parame, T paramT)
{
if (unknownFieldData == null) {
unknownFieldData = new ArrayList();
}
k.a(parame, paramT, unknownFieldData);
}
}
/* Location:
* Qualified Name: com.google.b.a.a.d
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"i@xuzhao.net"
] |
i@xuzhao.net
|
38d7309f751c415d3e53aff79d9fc36ffa3b8c73
|
f96493e1309016c80758f5a00ab8f5902d288263
|
/算法练习/矩阵乘法/MatMulti.java
|
f69b0766a8f84fe6b3bef514d24392ff7a273828
|
[] |
no_license
|
ZengPengW/Study
|
54e5e4e38913ebf8c32a7b0c94b08d63ad5caef7
|
1ec8fb03b535f56a16e76fe57f8e4d3acd08a4b4
|
refs/heads/master
| 2022-12-26T04:28:44.190611
| 2019-09-18T09:41:37
| 2019-09-18T09:41:37
| 153,634,692
| 1
| 0
| null | 2022-12-16T07:14:36
| 2018-10-18T14:10:32
|
CSS
|
UTF-8
|
Java
| false
| false
| 889
|
java
|
import java.util.Scanner;
public class MatMulti{
public static void main(String[] args) {
Scanner scan=new Scanner(System.in);
int m=scan.nextInt();
int s=scan.nextInt();
int n=scan.nextInt();
int [][]num1=new int[m][s];
int [][]num2=new int[s][n];
for (int k = 0; k <2; k++) {
if(k==0) {
for (int i = 0; i <m; i++)
for (int j = 0; j <s; j++)
num1[i][j]=scan.nextInt();
}else {
for (int i = 0; i <s; i++)
for (int j = 0; j <n; j++)
num2[i][j]=scan.nextInt();
}
}
MatMulti(num1, num2);
}
public static void MatMulti(int[][]num1,int[][] num2) {
int sum=0;
for (int i = 0; i < num1.length; i++) {
for (int j = 0; j < num2[0].length; j++) {
sum=0;
for (int k = 0; k < num1[i].length; k++) {
sum+=num1[i][k]*num2[k][j];
}
System.out.print(sum+" ");
}
System.out.println();
}
}
}
|
[
"44264584+ZengPengW@users.noreply.github.com"
] |
44264584+ZengPengW@users.noreply.github.com
|
ca147608a7570b6aaa8489a04b64f62db369e047
|
f68e7dddd8ef362cc967c32be7e7a244cf66b96d
|
/test/src/main/java/businessFramework/module/hospital/modals/diagnosis/DiagnosisFeatureModal.java
|
2e642de7d61f96453ea279e551da580789fc5e49
|
[] |
no_license
|
skygbr/N2O_IntellijIDEA_Tests_Regres_Smoke
|
6e3fbed09464c4cf0929bd7e630f9e6c1892161a
|
985e74067cc220eacf90c5c4876390d1494a1421
|
refs/heads/master
| 2020-06-28T16:46:42.012449
| 2016-11-23T12:57:43
| 2016-11-23T12:57:43
| 74,489,672
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,001
|
java
|
package businessFramework.module.hospital.modals.diagnosis;
import businessFramework.module.Values;
import net.framework.autotesting.meta.Container;
import net.framework.autotesting.meta.Page;
public class DiagnosisFeatureModal implements Values
{
private Page page = Page.getInstance();
private DiagnosisHelper diagnosisHelper;
public DiagnosisFeatureModal()
{
diagnosisHelper = new DiagnosisHelper();
}
private Container getValueContainer(){
return page.getModal().getContainer("value");
}
//Выбор Характеристики
public String selectFeature()
{
page.getModal().assertModalHeader_contains("Характеристика");
getValueContainer().getTable().chooseRowInTable(0);
String chosenValue = getValueContainer().getTable().getRowColumnIntersectionValue(0, "Наименование", true);
page.getModal().getButton(CONFIRM_BUTTON).click();
return chosenValue.trim();
}
}
|
[
"bulat.garipov@rtlabs.ru"
] |
bulat.garipov@rtlabs.ru
|
b19fb12173e2417d66a4f2bf8a11591151d4fbe7
|
9fc6f1d415c8cb341e848863af535dae5b22a48b
|
/Eclipse_Workspace_Hibernate/hibernate_one_to_one_mapping/src/org/hib/oneToOne/uniDir/WithoutAnno/Student.java
|
5a41c82faa85ce6972865892faf9559ab487d79c
|
[] |
no_license
|
MahanteshAmbali/eclipse_workspaces
|
f7a063f7dd8c247d610f78f0105f9f632348b187
|
1f6d3a7eb0264b500877a718011bf6b842161fa1
|
refs/heads/master
| 2020-04-17T04:50:33.167337
| 2019-01-17T15:53:13
| 2019-01-17T15:53:13
| 166,226,211
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 726
|
java
|
package org.hib.oneToOne.uniDir.WithoutAnno;
public class Student {
private int id;
private String firstName;
private String lastName;
public int getId() {
System.out.println("Get ID()");
return id;
}
public void setId(int id) {
System.out.println("Set ID()");
this.id = id;
}
public String getFirstName() {
System.out.println("Get FirstName()");
return firstName;
}
public void setFirstName(String firstName) {
System.out.println("Set FirstName()");
this.firstName = firstName;
}
public String getLastName() {
System.out.println("Get LastName()");
return lastName;
}
public void setLastName(String lastName) {
System.out.println("Set LastName()");
this.lastName = lastName;
}
}
|
[
"mahantesh378@gmail.com"
] |
mahantesh378@gmail.com
|
86746acff20f61743e21cb667bcf5ceed56bc075
|
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
|
/methods/Method_38097.java
|
da3f80db952f94c9d9701dee3acb0b0e4c41b570
|
[] |
no_license
|
P79N6A/icse_20_user_study
|
5b9c42c6384502fdc9588430899f257761f1f506
|
8a3676bc96059ea2c4f6d209016f5088a5628f3c
|
refs/heads/master
| 2020-06-24T08:25:22.606717
| 2019-07-25T15:31:16
| 2019-07-25T15:31:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 221
|
java
|
public Q setString(final int index,final String value){
initPrepared();
try {
preparedStatement.setString(index,value);
}
catch ( SQLException sex) {
throwSetParamError(index,sex);
}
return _this();
}
|
[
"sonnguyen@utdallas.edu"
] |
sonnguyen@utdallas.edu
|
9efa430f2f78e798a9cee01645c3f1b949d8a961
|
9157b00d937ae28305ce0b8362aa172b887da731
|
/src/main/java/jenkins/scm/api/SCMHeadMigration.java
|
1c436e98608ace8e436a13d04d029a91165db7be
|
[] |
no_license
|
jenkinsci/scm-api-plugin
|
d1df50de19d674d0f4e33081a98d3d7027d66f70
|
0b6dbec51b49a7cb95c78ff7728be5ce3d5ff4cf
|
refs/heads/master
| 2023-09-04T02:38:10.749430
| 2023-06-27T19:31:03
| 2023-06-27T19:31:03
| 12,713,417
| 29
| 90
| null | 2023-09-04T01:57:42
| 2013-09-09T21:29:01
|
Java
|
UTF-8
|
Java
| false
| false
| 5,957
|
java
|
/*
* The MIT License
*
* Copyright (c) 2017, CloudBees, 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 jenkins.scm.api;
import edu.umd.cs.findbugs.annotations.CheckForNull;
import edu.umd.cs.findbugs.annotations.NonNull;
import hudson.ExtensionList;
import hudson.ExtensionPoint;
/**
* If a {@link SCMSource} plugin needs to migrate the implementation classes for {@link SCMHead} this extension
* point allows the plugin to register type migrations. For speed of migration implementations should just jump directly
* to the final end-point and not expect recursive chain walking.
*
* @since 2.0.2
*/
public abstract class SCMHeadMigration<S extends SCMSource, H extends SCMHead, R extends SCMRevision> implements ExtensionPoint {
/**
* The {@link SCMSource} that the migration applies to.
*/
private final Class<S> sourceClass;
/**
* The {@link SCMHead} that the migration applies to.
*/
private final Class<H> headClass;
/**
* The {@link SCMRevision} that the migration applies to.
*/
private final Class<R> revisionClass;
/**
* Constructor.
* @param sourceClass the {@link SCMSource} that the migration applies to.
* @param headClass the {@link SCMHead} that the migration applies to.
* @param revisionClass the {@link SCMRevision} that the migration applies to.
*/
protected SCMHeadMigration(Class<S> sourceClass, Class<H> headClass, Class<R> revisionClass) {
this.sourceClass = sourceClass;
this.headClass = headClass;
this.revisionClass = revisionClass;
}
/**
* Gets the {@link SCMSource} that the migration applies to.
*
* @return the {@link SCMSource} that the migration applies to.
*/
public final Class<S> getSCMSourceClass() {
return sourceClass;
}
/**
* Gets the {@link SCMHead} that the migration applies to.
*
* @return the {@link SCMHead} that the migration applies to.
*/
public final Class<H> getSCMHeadClass() {
return headClass;
}
/**
* Gets the {@link SCMRevision} that the migration applies to.
*
* @return the {@link SCMRevision} that the migration applies to.
*/
public final Class<R> getSCMRevisionClass() {
return revisionClass;
}
/**
* Perform a migration.
* <p>
* <strong>Note:</strong> if you migrate a {@link SCMHead} then most likely you will also want to migrate the
* {@link SCMRevision} instances associated with that {@link SCMHead} - at the very least to update
* {@link SCMRevision#getHead()}.
*
* @param source the source instance.
* @param head the candidate head.
* @return the migrated head or {@code null} if the migration was not appropriate.
*/
@CheckForNull
public abstract SCMHead migrate(@NonNull S source, @NonNull H head);
/**
* Perform a migration.
* @param source the source instance.
* @param revision the candidate revision.
* @return the migrated revision or {@code null} if the migration was not appropriate.
*/
@CheckForNull
public SCMRevision migrate(@NonNull S source, @NonNull R revision) {
return null;
}
/**
* Perform a migration.
*
* @param source the source instance.
* @param head the candidate head.
* @return the migrated head or the original head.
*/
@SuppressWarnings("unchecked")
@NonNull
public static SCMHead readResolveSCMHead(@NonNull SCMSource source, @NonNull SCMHead head) {
for (SCMHeadMigration m : ExtensionList.lookup(SCMHeadMigration.class)) {
if (m.sourceClass == source.getClass()
&& m.headClass == head.getClass()) {
SCMHead migrated = m.migrate(source, head);
if (migrated != null) {
return migrated;
}
}
}
return head;
}
/**
* Perform a migration.
*
* @param source the source instance.
* @param revision the candidate revision.
* @return the migrated revision or the original revision.
*/
@SuppressWarnings("unchecked")
@CheckForNull
public static SCMRevision readResolveSCMRevision(@NonNull SCMSource source, @CheckForNull SCMRevision revision) {
if (revision == null) {
return null;
}
SCMHead head = revision.getHead();
for (SCMHeadMigration m : ExtensionList.lookup(SCMHeadMigration.class)) {
if (m.sourceClass == source.getClass()
&& m.headClass == head.getClass()
&& m.revisionClass == revision.getClass()) {
SCMRevision migrated = m.migrate(source, revision);
if (migrated != null) {
return migrated;
}
}
}
return revision;
}
}
|
[
"stephen.alan.connolly@gmail.com"
] |
stephen.alan.connolly@gmail.com
|
f951fa1cb4262467f39744830e8d9d97a2d4e385
|
f0568343ecd32379a6a2d598bda93fa419847584
|
/modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201308/VideoPositionType.java
|
78db6b4da0b2f9497b5ea058710702fb654f4b6c
|
[
"Apache-2.0"
] |
permissive
|
frankzwang/googleads-java-lib
|
bd098b7b61622bd50352ccca815c4de15c45a545
|
0cf942d2558754589a12b4d9daa5902d7499e43f
|
refs/heads/master
| 2021-01-20T23:20:53.380875
| 2014-07-02T19:14:30
| 2014-07-02T19:14:30
| 21,526,492
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,301
|
java
|
package com.google.api.ads.dfp.jaxws.v201308;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for VideoPosition.Type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="VideoPosition.Type">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="PREROLL"/>
* <enumeration value="MIDROLL"/>
* <enumeration value="POSTROLL"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "VideoPosition.Type")
@XmlEnum
public enum VideoPositionType {
/**
*
* The position defined as showing before the video starts playing.
*
*
*/
PREROLL,
/**
*
* The position defined as showing within the middle of the playing video.
*
*
*/
MIDROLL,
/**
*
* The position defined as showing after the video is completed.
*
*
*/
POSTROLL;
public String value() {
return name();
}
public static VideoPositionType fromValue(String v) {
return valueOf(v);
}
}
|
[
"jradcliff@google.com"
] |
jradcliff@google.com
|
a0e8029a2adb5da0e6178ee9fc270aa293bfdabd
|
c1824c06548415318edadcca2e0fac3c4bb5c953
|
/Xing/Labs/Lab4-Associations-2/src/main/java/BookPublisher/Publisher.java
|
6220792df0035f58717e0ac63dd628e73b639225
|
[] |
no_license
|
sarojthapa2019/EA
|
7b76e290d6f2de11cdeeae8bb32ae4d7783c1e02
|
40653f94aa0edea5a8093a1dc2ecf1b367190857
|
refs/heads/master
| 2022-12-20T13:23:14.299112
| 2019-12-19T22:42:28
| 2019-12-19T22:42:28
| 218,177,481
| 0
| 0
| null | 2022-12-16T00:35:35
| 2019-10-29T01:21:25
|
TSQL
|
UTF-8
|
Java
| false
| false
| 534
|
java
|
package BookPublisher;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import java.util.List;
//@Entity
public class Publisher {
@Id
@GeneratedValue
private int id;
private String name;
Publisher(){}
Publisher(String name){
this.name = name;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
|
[
"sarose301@gmail.com"
] |
sarose301@gmail.com
|
6346fbd91c1e67b7e483f6f506ab523ae4ce346c
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/21/21_05b64a547385d69621b2901778740ec771a2e9cd/UnifiedSherlockPreferenceActivity/21_05b64a547385d69621b2901778740ec771a2e9cd_UnifiedSherlockPreferenceActivity_s.java
|
91f29fa08a4e1389e3fd5899bef650b1ec2acc74
|
[] |
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,720
|
java
|
/*
** Copyright 2012, Joel Pedraza
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
package net.saik0.android.unifiedpreference;
import java.util.List;
import android.content.Context;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.preference.PreferenceActivity.Header;
import android.preference.PreferenceFragment;
import com.actionbarsherlock.app.SherlockPreferenceActivity;
/**
* A {@link PreferenceActivity} that presents a set of application settings. On
* handset devices, settings are presented as a single list. On tablets,
* settings are split by category, with category headers shown to the left of
* the list of settings.
* <p>
* See <a href="http://developer.android.com/design/patterns/settings.html">
* Android Design: Settings</a> for design guidelines and the <a
* href="http://developer.android.com/guide/topics/ui/settings.html">Settings
* API Guide</a> for more information on developing a Settings UI.
*/
public abstract class UnifiedSherlockPreferenceActivity extends SherlockPreferenceActivity
implements UnifiedPreferenceContainer {
private UnifiedPreferenceHelper mHelper = new UnifiedPreferenceHelper(this);
/**
* Determines whether the simplified settings UI should be shown. This is
* true if device doesn't have newer APIs like {@link PreferenceFragment},
* or if forced via {@link onIsHidingHeaders}, or the device doesn't have an
* extra-large screen. In these cases, a single-pane "simplified" settings
* UI should be shown.
*/
public boolean isSinglePane() {
return mHelper.isSinglePane();
}
/**
* Returns the header resource to be used when building headers.
*
* @return The id of the header resource
*/
@Override
public int getHeaderRes() {
return mHelper.getHeaderRes();
}
/**
* Sets the header resource to be used when building headers.
* This must be called before super.onCreate unless overriding both
* {@link #onBuildHeaders(List)} and {@link #onBuildLegacyHeaders(List)}
*
* @param headerRes The id of the header resource
*/
@Override
public void setHeaderRes(int headerRes) {
mHelper.setHeaderRes(headerRes);
}
/**
* Returns the current name of the SharedPreferences file that preferences
* managed by this will use.
*
* @return The name that can be passed to {@link Context#getSharedPreferences(String, int)}
* @see UnifiedPreferenceHelper#getSharedPreferencesName()
*/
@Override
public String getSharedPreferencesName() {
return mHelper.getSharedPreferencesName();
}
/**
* Sets the name of the SharedPreferences file that preferences managed by
* this will use.
*
* @param sharedPreferencesName The name of the SharedPreferences file.
* @see UnifiedPreferenceHelper#setSharedPreferencesName()
*/
@Override
public void setSharedPreferencesName(String sharedPreferencesName) {
mHelper.setSharedPreferencesName(sharedPreferencesName);
}
/**
* Returns the current mode of the SharedPreferences file that preferences
* managed by this will use.
*
* @return The mode that can be passed to {@link Context#getSharedPreferences(String, int)}
* @see UnifiedPreferenceHelper#getSharedPreferencesMode()
*/
@Override
public int getSharedPreferencesMode() {
return mHelper.getSharedPreferencesMode();
}
/**
* Sets the mode of the SharedPreferences file that preferences managed by
* this will use.
*
* @param sharedPreferencesMode The mode of the SharedPreferences file.
* @see UnifiedPreferenceHelper#setSharedPreferencesMode()
*/
@Override
public void setSharedPreferencesMode(int sharedPreferencesMode) {
mHelper.setSharedPreferencesMode(sharedPreferencesMode);
}
/** {@inheritDoc} */
@Override
protected void onPostCreate(Bundle savedInstanceState) {
super.onPostCreate(savedInstanceState);
mHelper.onPostCreate(savedInstanceState);
}
/**
* Called when the activity needs its list of headers built. By implementing
* this and adding at least one item to the list, you will cause the
* activity to run in its modern fragment mode. Note that this function may
* not always be called; for example, if the activity has been asked to
* display a particular fragment without the header list, there is no need
* to build the headers.
*
* <p>
* Typical implementations will use {@link #loadHeadersFromResource} to fill
* in the list from a resource. For convenience this is done if a header
* resource has been set with {@link #setHeaderRes(int)}.
*
* @param target The list in which to place the headers.
*/
public void onBuildHeaders(List<Header> target) {
mHelper.onBuildHeaders(target);
}
/**
* Called when the activity needs its list of legacy headers built.
*
* <p>
* Typical implementations will use {@link #loadLegacyHeadersFromResource}
* to fill in the list from a resource. For convenience this is done if a
* header resource has been set with {@link #setHeaderRes(int)}.
*
* @param target The list in which to place the legacy headers.
*/
public void onBuildLegacyHeaders(List<LegacyHeader> target) {
mHelper.onBuildLegacyHeaders(target);
}
/**
* Bind the summaries of EditText/List/Dialog/Ringtone preferences
* to their values. When their values change, their summaries are
* updated to reflect the new value, per the Android Design
* guidelines.
*/
public void onBindPreferenceSummariesToValues() {
mHelper.onBindPreferenceSummariesToValues();
}
/** {@inheritDoc} */
@Override
public void loadHeadersFromResource(int resid, List<Header> target) {
mHelper.loadHeadersFromResource(resid, target);
}
/**
* Parse the given XML file as a header description, adding each parsed
* LegacyHeader into the target list.
*
* @param resid The XML resource to load and parse.
* @param target The list in which the parsed headers should be placed.
*/
public void loadLegacyHeadersFromResource(int resid, List<LegacyHeader> target) {
mHelper.loadLegacyHeadersFromResource(resid, target);
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
a52ad782f5d921f8d1ac4fec632f58b998029e32
|
8ec864ab948e7c6cecfe5e8a3da0752d44d5f48f
|
/hal-tooling-link-bindings/src/main/java/com/github/codeframes/hal/tooling/link/bindings/LinkRels.java
|
a90cc275db62044b71a99c238b0126924f47c13c
|
[
"Apache-2.0"
] |
permissive
|
codeframes/hal-tooling
|
340626c4e2d9fd696610f0f721617f4c4653c3f5
|
8db5ff5ed43424007df389ff4c88e7d520c8047c
|
refs/heads/master
| 2021-01-12T12:07:00.321938
| 2017-01-25T20:11:13
| 2017-01-25T20:11:13
| 72,304,743
| 0
| 0
| null | 2017-01-25T19:56:58
| 2016-10-29T19:20:46
|
Java
|
UTF-8
|
Java
| false
| false
| 1,278
|
java
|
/*
* Copyright © 2016 Richard Burrow (https://github.com/codeframes)
*
* 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.github.codeframes.hal.tooling.link.bindings;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Specifies a field to be injected with {@link com.github.codeframes.hal.tooling.core.Link Link}'s. Can only be used on
* fields of type {@literal List<Link>}.
*/
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface LinkRels {
/**
* List of {@link LinkRel}'s specifying {@link com.github.codeframes.hal.tooling.core.Link Link}'s to be injected.
*/
LinkRel[] value();
}
|
[
"none"
] |
none
|
3b720780f6f59f877da85a549386020a87b23e72
|
97aac7aa73a5fcf5b10cf084dc8622616663e5c6
|
/src/main/java/io/github/nucleuspowered/nucleus/modules/jail/commands/CheckJailedCommand.java
|
5973848691e2d9191dfcb08c21174a6a425277b2
|
[
"MIT"
] |
permissive
|
Dirt-Craft/Nucleus
|
5f5ebbcd523ac0712c8e580b63bf472fcfd961ef
|
7d140ebf6b100162834df80e947735ad6bc09383
|
refs/heads/master
| 2021-08-18T09:48:08.191641
| 2021-06-13T10:33:16
| 2021-06-13T10:33:16
| 191,478,397
| 0
| 0
|
MIT
| 2021-06-13T10:33:31
| 2019-06-12T01:55:13
|
Java
|
UTF-8
|
Java
| false
| false
| 3,365
|
java
|
/*
* This file is part of Nucleus, licensed under the MIT License (MIT). See the LICENSE.txt file
* at the root of this project for more details.
*/
package io.github.nucleuspowered.nucleus.modules.jail.commands;
import io.github.nucleuspowered.nucleus.Nucleus;
import io.github.nucleuspowered.nucleus.Util;
import io.github.nucleuspowered.nucleus.api.nucleusdata.NamedLocation;
import io.github.nucleuspowered.nucleus.internal.annotations.RunAsync;
import io.github.nucleuspowered.nucleus.internal.annotations.command.NoModifiers;
import io.github.nucleuspowered.nucleus.internal.annotations.command.Permissions;
import io.github.nucleuspowered.nucleus.internal.annotations.command.RegisterCommand;
import io.github.nucleuspowered.nucleus.internal.command.AbstractCommand;
import io.github.nucleuspowered.nucleus.internal.messages.MessageProvider;
import io.github.nucleuspowered.nucleus.modules.jail.JailParameters;
import org.spongepowered.api.command.CommandResult;
import org.spongepowered.api.command.CommandSource;
import org.spongepowered.api.command.args.CommandContext;
import org.spongepowered.api.command.args.CommandElement;
import org.spongepowered.api.event.cause.Cause;
import org.spongepowered.api.text.Text;
import org.spongepowered.api.text.action.TextActions;
import org.spongepowered.api.util.annotation.NonnullByDefault;
import java.util.List;
import java.util.Optional;
import java.util.UUID;
import java.util.stream.Collectors;
@Permissions
@RunAsync
@NoModifiers
@RegisterCommand("checkjailed")
@NonnullByDefault
public class CheckJailedCommand extends AbstractCommand<CommandSource> {
@Override public CommandElement[] getArguments() {
return new CommandElement[] {
JailParameters.OPTIONAL_JAIL
};
}
@Override protected CommandResult executeCommand(CommandSource src, CommandContext args, Cause cause) {
// Using the cache, tell us who is jailed.
MessageProvider provider = Nucleus.getNucleus().getMessageProvider();
Optional<NamedLocation> jail = args.getOne(JailParameters.JAIL_KEY);
List<UUID> usersInJail = jail.map(x -> Nucleus.getNucleus().getUserCacheService().getJailedIn(x.getName()))
.orElseGet(() -> Nucleus.getNucleus().getUserCacheService().getJailed());
String jailName = jail.map(NamedLocation::getName).orElseGet(() -> provider.getMessageWithFormat("standard.alljails"));
if (usersInJail.isEmpty()) {
src.sendMessage(provider.getTextMessageWithFormat("command.checkjailed.none", jailName));
return CommandResult.success();
}
// Get the users in this jail, or all jails
Util.getPaginationBuilder(src)
.title(provider.getTextMessageWithFormat("command.checkjailed.header", jailName))
.contents(usersInJail.stream().map(x -> {
Text name = Nucleus.getNucleus().getNameUtil().getName(x).orElseGet(() -> Text.of("unknown: ", x.toString()));
return name.toBuilder()
.onHover(TextActions.showText(provider.getTextMessageWithFormat("command.checkjailed.hover")))
.onClick(TextActions.runCommand("/nucleus:checkjail " + x.toString()))
.build();
}).collect(Collectors.toList())).sendTo(src);
return CommandResult.success();
}
}
|
[
"git@drnaylor.co.uk"
] |
git@drnaylor.co.uk
|
34260ce088cff4e84bff57b7dbc1bdd37f0522a1
|
0214aadd5265a9a280c73e7e5a0950104e9c5ecb
|
/mynew/news/app/news-web-home/src/main/java/com/foodoon/news/action/admin/assist/CmsFriendlinkAct.java
|
9aa55fc30dc556006e582e305e01cf2f117cc4c2
|
[] |
no_license
|
foodoon-guda/guda
|
d78d7375895cc7e0edfa2496d3f2df986cceaf30
|
df7fd7eaa50b0d610b050d588455aeb120b85aed
|
refs/heads/master
| 2016-09-05T12:25:23.620070
| 2014-07-28T05:14:00
| 2014-07-28T05:14:00
| 21,302,564
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,990
|
java
|
package com.foodoon.news.action.admin.assist;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import com.foodoon.news.entity.assist.CmsFriendlink;
import com.foodoon.news.entity.assist.CmsFriendlinkCtg;
import com.foodoon.news.entity.main.CmsSite;
import com.foodoon.news.manager.assist.CmsFileMng;
import com.foodoon.news.manager.assist.CmsFriendlinkCtgMng;
import com.foodoon.news.manager.assist.CmsFriendlinkMng;
import com.foodoon.news.manager.main.CmsLogMng;
import com.foodoon.news.web.CmsUtils;
import com.foodoon.news.web.WebErrors;
@Controller
public class CmsFriendlinkAct {
private static final Logger log = LoggerFactory
.getLogger(CmsFriendlinkAct.class);
@RequestMapping("/friendlink/v_list.do")
public String list(Integer queryCtgId, HttpServletRequest request,
ModelMap model) {
CmsSite site = CmsUtils.getSite(request);
List<CmsFriendlink> list = manager.getList(site.getId(), queryCtgId,
null);
List<CmsFriendlinkCtg> ctgList = cmsFriendlinkCtgMng.getList(site
.getId());
model.addAttribute("list", list);
model.addAttribute("ctgList", ctgList);
if (queryCtgId != null) {
model.addAttribute("queryCtgId", queryCtgId);
}
return "friendlink/list";
}
@RequestMapping("/friendlink/v_add.do")
public String add(ModelMap model, HttpServletRequest request) {
CmsSite site = CmsUtils.getSite(request);
WebErrors errors = validateAdd(request);
if (errors.hasErrors()) {
return errors.showErrorPage(model);
}
List<CmsFriendlinkCtg> ctgList = cmsFriendlinkCtgMng.getList(site
.getId());
model.addAttribute("ctgList", ctgList);
return "friendlink/add";
}
@RequestMapping("/friendlink/v_edit.do")
public String edit(Integer id, Integer queryCtgId,
HttpServletRequest request, ModelMap model) {
CmsSite site = CmsUtils.getSite(request);
WebErrors errors = validateEdit(id, request);
if (errors.hasErrors()) {
return errors.showErrorPage(model);
}
model.addAttribute("cmsFriendlink", manager.findById(id));
List<CmsFriendlinkCtg> ctgList = cmsFriendlinkCtgMng.getList(site
.getId());
model.addAttribute("ctgList", ctgList);
if (queryCtgId != null) {
model.addAttribute("queryCtgId", queryCtgId);
}
return "friendlink/edit";
}
@RequestMapping("/friendlink/o_save.do")
public String save(CmsFriendlink bean, Integer ctgId,
HttpServletRequest request, ModelMap model) {
WebErrors errors = validateSave(bean, request);
if (errors.hasErrors()) {
return errors.showErrorPage(model);
}
bean = manager.save(bean, ctgId);
fileMng.updateFileByPath(bean.getLogo(), true, null);
log.info("save CmsFriendlink id={}", bean.getId());
cmsLogMng.operating(request, "cmsFriendlink.log.save", "id="
+ bean.getId() + ";name=" + bean.getName());
return "redirect:v_list.do";
}
@RequestMapping("/friendlink/o_update.do")
public String update(CmsFriendlink bean, Integer ctgId, Integer queryCtgId,
String oldLog,
HttpServletRequest request, ModelMap model) {
WebErrors errors = validateUpdate(bean.getId(), request);
if (errors.hasErrors()) {
return errors.showErrorPage(model);
}
bean = manager.update(bean, ctgId);
fileMng.updateFileByPath(oldLog, false, null);
fileMng.updateFileByPath(bean.getLogo(), true, null);
log.info("update CmsFriendlink id={}.", bean.getId());
cmsLogMng.operating(request, "cmsFriendlink.log.update", "id="
+ bean.getId() + ";name=" + bean.getName());
return list(queryCtgId, request, model);
}
@RequestMapping("/friendlink/o_priority.do")
public String priority(Integer[] wids, Integer[] priority,
Integer queryCtgId, HttpServletRequest request, ModelMap model) {
WebErrors errors = validatePriority(wids, priority, request);
if (errors.hasErrors()) {
return errors.showErrorPage(model);
}
manager.updatePriority(wids, priority);
log.info("update CmsFriendlink priority.");
return list(queryCtgId, request, model);
}
@RequestMapping("/friendlink/o_delete.do")
public String delete(Integer[] ids, Integer queryCtgId,
HttpServletRequest request, ModelMap model) {
WebErrors errors = validateDelete(ids, request);
if (errors.hasErrors()) {
return errors.showErrorPage(model);
}
CmsFriendlink[] beans = manager.deleteByIds(ids);
for (CmsFriendlink bean : beans) {
fileMng.updateFileByPath(bean.getLogo(), false, null);
log.info("delete CmsFriendlink id={}", bean.getId());
cmsLogMng.operating(request, "cmsFriendlink.log.delete", "id="
+ bean.getId() + ";name=" + bean.getName());
}
return list(queryCtgId, request, model);
}
private WebErrors validateAdd(HttpServletRequest request) {
WebErrors errors = WebErrors.create(request);
CmsSite site = CmsUtils.getSite(request);
if (cmsFriendlinkCtgMng.countBySiteId(site.getId()) <= 0) {
errors.addErrorCode("cmsFriendlink.error.addFriendlinkCtgFirst");
return errors;
}
return errors;
}
private WebErrors validateSave(CmsFriendlink bean,
HttpServletRequest request) {
WebErrors errors = WebErrors.create(request);
CmsSite site = CmsUtils.getSite(request);
bean.setSite(site);
return errors;
}
private WebErrors validateEdit(Integer id, HttpServletRequest request) {
WebErrors errors = WebErrors.create(request);
CmsSite site = CmsUtils.getSite(request);
if (vldExist(id, site.getId(), errors)) {
return errors;
}
return errors;
}
private WebErrors validateUpdate(Integer id, HttpServletRequest request) {
WebErrors errors = WebErrors.create(request);
CmsSite site = CmsUtils.getSite(request);
if (vldExist(id, site.getId(), errors)) {
return errors;
}
return errors;
}
private WebErrors validatePriority(Integer[] ids, Integer[] priorities,
HttpServletRequest request) {
WebErrors errors = WebErrors.create(request);
return errors;
}
private WebErrors validateDelete(Integer[] ids, HttpServletRequest request) {
WebErrors errors = WebErrors.create(request);
CmsSite site = CmsUtils.getSite(request);
if (errors.ifEmpty(ids, "ids")) {
return errors;
}
for (Integer id : ids) {
vldExist(id, site.getId(), errors);
}
return errors;
}
private boolean vldExist(Integer id, Integer siteId, WebErrors errors) {
if (errors.ifNull(id, "id")) {
return true;
}
CmsFriendlink entity = manager.findById(id);
if (errors.ifNotExist(entity, CmsFriendlink.class, id)) {
return true;
}
if (!entity.getSite().getId().equals(siteId)) {
errors.notInSite(CmsFriendlink.class, id);
return true;
}
return false;
}
@Autowired
private CmsFriendlinkCtgMng cmsFriendlinkCtgMng;
@Autowired
private CmsLogMng cmsLogMng;
@Autowired
private CmsFriendlinkMng manager;
@Autowired
private CmsFileMng fileMng;
}
|
[
"foodoon@qq.com"
] |
foodoon@qq.com
|
c371fa9fe5f91e2f689ed115bbaaf487812aa789
|
fec2a3f603f6914e67b9ffb47648cd60dac5e692
|
/Modeler Specification/src/org/netbeans/modeler/config/document/ModelerDocumentConfig.java
|
14d1163030eec80c80c6b08f9f53a9b2299ed6c5
|
[
"Apache-2.0"
] |
permissive
|
nureyev/NBModeler
|
71b2a1d9b9254ce3e50b544ad08794116bf16920
|
6c555c9f2864e751252db1c7738b8d306a244fbd
|
refs/heads/master
| 2021-01-20T07:28:40.501586
| 2017-07-16T20:18:10
| 2017-07-16T20:18:10
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,657
|
java
|
/**
* Copyright [2014] Gaurav Gupta
*
* 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.netbeans.modeler.config.document;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
/**
*
*
*/
@XmlRootElement(name = "document-config")
@XmlAccessorType(XmlAccessType.FIELD)
public class ModelerDocumentConfig {
@XmlElementWrapper(name = "documents")
@XmlElement(name = "document")
private List<ModelerDocument> documents = new ArrayList<ModelerDocument>();
/**
* @return the elements
*/
public List<? extends IModelerDocument> getModelerDocuments() {
return documents;
}
/**
* @param documents the elements to set
*/
public void setModelerDocuments(List<ModelerDocument> documents) {
this.documents = documents;
}
public void addModelerDocument(ModelerDocument document) {
this.documents.add(document);
}
}
|
[
"gaurav.gupta.jc@gmail.com"
] |
gaurav.gupta.jc@gmail.com
|
97b04602d46d613521410ecc63fe768f3aa3ced8
|
c5b2d31cdd897d05447c65c4d1fcbf76af189f2a
|
/core/src/main/java/com/zero/selenium/core/component/Component.java
|
627aca520b6ba96f5fdc13dcf922c3eb31d1805a
|
[] |
no_license
|
zero88/uit-framework
|
58bf2f176479e654cb004abcbfb3d3dcca8b01c4
|
0dc648874d45b646f9f28e13e60660c2683fc3d8
|
refs/heads/master
| 2021-09-18T10:43:23.863763
| 2017-10-24T09:37:40
| 2017-10-24T09:42:49
| 108,106,516
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 278
|
java
|
package com.zero.selenium.core.component;
import org.apache.logging.log4j.Logger;
import com.zero.selenium.config.LoggerFactory;
public abstract class Component implements IComponent {
protected Logger log() {
return LoggerFactory.instance().getComponentLog();
}
}
|
[
"sontt246@gmail.com"
] |
sontt246@gmail.com
|
ab9857aff277f6b466765ff0874edca6380395b8
|
746572ba552f7d52e8b5a0e752a1d6eb899842b9
|
/JDK8Source/src/main/java/javax/print/attribute/standard/PrinterResolution.java
|
555735f3ad2a09908fba973193697c1bb42b9a67
|
[] |
no_license
|
lobinary/Lobinary
|
fde035d3ce6780a20a5a808b5d4357604ed70054
|
8de466228bf893b72c7771e153607674b6024709
|
refs/heads/master
| 2022-02-27T05:02:04.208763
| 2022-01-20T07:01:28
| 2022-01-20T07:01:28
| 26,812,634
| 7
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,368
|
java
|
/***** Lobxxx Translate Finished ******/
/*
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package javax.print.attribute.standard;
import javax.print.attribute.Attribute;
import javax.print.attribute.ResolutionSyntax;
import javax.print.attribute.DocAttribute;
import javax.print.attribute.PrintRequestAttribute;
import javax.print.attribute.PrintJobAttribute;
/**
* Class PrinterResolution is a printing attribute class that specifies an
* exact resolution supported by a printer or to be used for a print job.
* This attribute assumes that printers have a small set of device resolutions
* at which they can operate rather than a continuum.
* <p>
* PrinterResolution is used in multiple ways:
* <OL TYPE=1>
* <LI>
* When a client searches looking for a printer that supports the client's
* desired resolution exactly (no more, no less), the client specifies
* an instance of class PrinterResolution indicating the exact resolution the
* client wants. Only printers supporting that exact resolution will match the
* search.
* <P>
* <LI>
* When a client needs to print a job using the client's desired resolution
* exactly (no more, no less), the client specifies an instance of class
* PrinterResolution as an attribute of the Print Job. This will fail if the
* Print Job doesn't support that exact resolution, and Fidelity is set to
* true.
* </OL>
* If a client wants to locate a printer supporting a resolution
* greater than some required minimum, then it may be necessary to exclude
* this attribute from a lookup request and to directly query the set of
* supported resolutions, and specify the one that most closely meets
* the client's requirements.
* In some cases this may be more simply achieved by specifying a
* PrintQuality attribute which often controls resolution.
* <P>
* <P>
* <B>IPP Compatibility:</B> The information needed to construct an IPP
* <CODE>"printer-resolution"</CODE> attribute can be obtained by calling
* methods on the PrinterResolution object. The category name returned by
* <CODE>getName()</CODE> gives the IPP attribute name.
* <P>
*
* <p>
* 类PrinterResolution是一个打印属性类,指定打印机支持的或用于打印作业的精确分辨率。此属性假定打印机具有一组小的设备分辨率,以便它们可以操作,而不是连续。
* <p>
* PrinterResolution有多种使用方式:
* <OL TYPE=1>
* <LI>
* 当客户端搜索寻找支持客户端期望的分辨率(不再更多,不少于)的打印机时,客户端指定类PrinterResolution的实例,指示客户端想要的确切分辨率。只有支持该精确分辨率的打印机将匹配搜索。
* <P>
* <LI>
* 当客户端需要使用客户端期望的分辨率(不再更多,不少于)打印作业时,客户端将打印分辨率类的实例指定为打印作业的属性。如果打印作业不支持该精确分辨率,并且Fidelity设置为true,这将失败。
* </OL>
* 如果客户端想要定位支持大于某一所需最小值的分辨率的打印机,则可能有必要从查找请求中排除该属性,并直接查询支持的分辨率集合,并指定最接近客户端的分辨率要求。
* 在某些情况下,这可以通过指定通常控制分辨率的PrintQuality属性来更简单地实现。
* <P>
* <P>
* <B> IPP兼容性:</B>构造IPP <CODE>"打印机分辨率"</CODE>属性所需的信息可以通过调用PrinterResolution对象上的方法获得。
* 由<CODE> getName()</CODE>返回的类别名称给出了IPP属性名称。
* <P>
*
*
* @author David Mendenhall
* @author Alan Kaminsky
*/
public final class PrinterResolution extends ResolutionSyntax
implements DocAttribute, PrintRequestAttribute, PrintJobAttribute {
private static final long serialVersionUID = 13090306561090558L;
/**
* Construct a new printer resolution attribute from the given items.
*
* <p>
* 从给定项目构造新的打印机分辨率属性。
*
*
* @param crossFeedResolution
* Cross feed direction resolution.
* @param feedResolution
* Feed direction resolution.
* @param units
* Unit conversion factor, e.g. <code>ResolutionSyntax.DPI</CODE>
* or <code>ResolutionSyntax.DPCM</CODE>.
*
* @exception IllegalArgumentException
* (unchecked exception) Thrown if {@code crossFeedResolution < 1} or
* {@code feedResolution < 1} or {@code units < 1}.
*/
public PrinterResolution(int crossFeedResolution, int feedResolution,
int units) {
super (crossFeedResolution, feedResolution, units);
}
/**
* Returns whether this printer resolution attribute is equivalent to the
* passed in object. To be equivalent, all of the following conditions
* must be true:
* <OL TYPE=1>
* <LI>
* <CODE>object</CODE> is not null.
* <LI>
* <CODE>object</CODE> is an instance of class PrinterResolution.
* <LI>
* This attribute's cross feed direction resolution is equal to
* <CODE>object</CODE>'s cross feed direction resolution.
* <LI>
* This attribute's feed direction resolution is equal to
* <CODE>object</CODE>'s feed direction resolution.
* </OL>
*
* <p>
* 返回此打印机分辨率属性是否等同于传入的对象。为了等效,所有以下条件必须为真:
* <OL TYPE=1>
* <LI>
* <CODE>对象</CODE>不为空。
* <LI>
* <CODE>对象</CODE>是PrinterResolution类的实例。
* <LI>
* 此属性的横向进纸方向分辨率等于<CODE>对象</CODE>的横向进纸方向分辨率。
* <LI>
* 此属性的进给方向分辨率等于<CODE>对象</CODE>的进给方向分辨率。
* </OL>
*
* @param object Object to compare to.
*
* @return True if <CODE>object</CODE> is equivalent to this printer
* resolution attribute, false otherwise.
*/
public boolean equals(Object object) {
return (super.equals (object) &&
object instanceof PrinterResolution);
}
/**
* Get the printing attribute class which is to be used as the "category"
* for this printing attribute value.
* <P>
* For class PrinterResolution, the category is class PrinterResolution itself.
*
* <p>
*
*
* @return Printing attribute class (category), an instance of class
* {@link java.lang.Class java.lang.Class}.
*/
public final Class<? extends Attribute> getCategory() {
return PrinterResolution.class;
}
/**
* Get the name of the category of which this attribute value is an
* instance.
* <P>
* For class PrinterResolution, the
* category name is <CODE>"printer-resolution"</CODE>.
*
* <p>
* 获取要用作此打印属性值的"类别"的打印属性类。
* <P>
* 对于PrinterResolution类,类别是PrinterResolution类本身。
*
*
* @return Attribute category name.
*/
public final String getName() {
return "printer-resolution";
}
}
|
[
"919515134@qq.com"
] |
919515134@qq.com
|
0edbc92673551e1bf2f1863a14fb546ef5f3926b
|
efa7935f77f5368e655c072b236d598059badcff
|
/src/com/sammyun/dao/campusviewImg/CampusviewImgDao.java
|
7de31494d8c10a933c2ac6b0db6827827b161aa2
|
[] |
no_license
|
ma-xu/Library
|
c1404f4f5e909be3e5b56f9884355e431c40f51b
|
766744898745f8fad31766cafae9fd4db0318534
|
refs/heads/master
| 2022-02-23T13:34:47.439654
| 2016-06-03T11:27:21
| 2016-06-03T11:27:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 514
|
java
|
package com.sammyun.dao.campusviewImg;
import com.sammyun.Page;
import com.sammyun.Pageable;
import com.sammyun.dao.BaseDao;
import com.sammyun.entity.campusviewImg.CampusviewImg;
import com.sammyun.entity.dict.DictSchool;
/**
* CampusviewImg * Dao - 校园风光表
*
*/
public interface CampusviewImgDao extends BaseDao<CampusviewImg, Long> {
/**
* 根据学校查询校园相册
*/
public Page<CampusviewImg> findBySchool(DictSchool dictSchool,Long status,Pageable pageable);
}
|
[
"melody@maxudeMacBook-Pro.local"
] |
melody@maxudeMacBook-Pro.local
|
575056808fbcb8cbce41ac47d64ff1f2b1341b94
|
895ea02e9fbbbddccd2f550769600608a5ce26bf
|
/CoreGraph/src/au/gov/asd/tac/constellation/graph/construction/PathGraphBuilder.java
|
489e2070e81adf612dbba007eada4fd2cc6b759f
|
[
"Apache-2.0"
] |
permissive
|
sol695510/constellation
|
8e26a739a8ae09755f1ff2061206d13566d8b432
|
9ab9e0cc3a0bb673204d74d5b017453a882845a0
|
refs/heads/master
| 2020-12-19T13:40:11.523350
| 2020-03-16T22:31:41
| 2020-03-16T22:31:41
| 226,787,694
| 1
| 0
|
Apache-2.0
| 2019-12-20T00:16:47
| 2019-12-09T04:54:54
| null |
UTF-8
|
Java
| false
| false
| 2,332
|
java
|
/*
* Copyright 2010-2019 Australian Signals Directorate
*
* 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 au.gov.asd.tac.constellation.graph.construction;
import au.gov.asd.tac.constellation.graph.GraphWriteMethods;
import au.gov.asd.tac.constellation.graph.StoreGraph;
/**
*
* @author twilight_sparkle
*/
public class PathGraphBuilder extends GraphBuilder {
private static final int LENGTH_DEFAULT = 5;
private static final boolean DIRECTED_DEFAULT = false;
public static PathGraphBuilder addPath(final GraphWriteMethods graph) {
return addPath(graph, LENGTH_DEFAULT, DIRECTED_DEFAULT);
}
public static PathGraphBuilder addPath(final int length, final boolean directed) {
return addPath(new StoreGraph(), length, directed);
}
public static PathGraphBuilder addPath(final GraphWriteMethods graph, final int length, final boolean directed) {
final int[] nodes = new int[length];
final int[] transactions = new int[length - 1];
final int start = constructVertex(graph);
nodes[0] = start;
for (int i = 1; i < length; i++) {
nodes[i] = constructVertex(graph);
transactions[i - 1] = constructTransaction(graph, nodes[i - 1], nodes[i], directed);
}
final int end = nodes[length - 1];
return new PathGraphBuilder(graph, start, end, nodes, transactions);
}
public final int start;
public final int end;
public final int[] nodes;
public final int[] transactions;
private PathGraphBuilder(final GraphWriteMethods graph, final int start, final int end, final int[] nodes, final int[] transactions) {
super(graph);
this.start = start;
this.end = end;
this.nodes = nodes;
this.transactions = transactions;
}
}
|
[
"39325530+arcturus2@users.noreply.github.com"
] |
39325530+arcturus2@users.noreply.github.com
|
9bde76821bd09781bb48c31c8f4de95eaa6a6d0d
|
f38335dbbaedfee9ad2c1ca9c9f140fd3747da77
|
/book-examples/fpinjava-parent/fpinjava-applications/src/main/java/com/fpinjava/application/xml/version_5/ElementName.java
|
0bcb6a1103eb387ccd85f8dd3a85df583f7d862d
|
[] |
no_license
|
kszatkow/java-func
|
641c1bf74318d8fe51a29e5485534dec6e33a024
|
aed97a64a7d898c03416cf5af44664f972163b37
|
refs/heads/master
| 2021-06-03T04:24:59.709727
| 2020-04-26T16:58:17
| 2020-04-26T16:58:17
| 115,801,249
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 471
|
java
|
package com.fpinjava.application.xml.version_5;
import com.fpinjava.common.Result;
public class ElementName {
public final Result<String> value;
private ElementName(Result<String> value) {
this.value = value;
}
public static ElementName apply(String value) {
return new ElementName(Result.of(ElementName::isValidName, value, "Niewłaściwa nazwa elementu: " + value));
}
private static boolean isValidName(String path) {
return true;
}
}
|
[
"k.d.szatkowski@gmail.com"
] |
k.d.szatkowski@gmail.com
|
35155770bea71a9088eaa9a57aee7a43fd0c8519
|
e3162d976b3a665717b9a75c503281e501ec1b1a
|
/src/main/java/com/alipay/api/domain/ActivityOrderDTO.java
|
19af88228bc8cced69a3b395e9eecf7d665a7476
|
[
"Apache-2.0"
] |
permissive
|
sunandy3/alipay-sdk-java-all
|
16b14f3729864d74846585796a28d858c40decf8
|
30e6af80cffc0d2392133457925dc5e9ee44cbac
|
refs/heads/master
| 2020-07-30T14:07:34.040692
| 2019-09-20T09:35:20
| 2019-09-20T09:35:20
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,154
|
java
|
package com.alipay.api.domain;
import java.util.List;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
/**
* 活动各阶段订单模型
*
* @author auto create
* @since 1.0, 2019-06-25 19:48:28
*/
public class ActivityOrderDTO extends AlipayObject {
private static final long serialVersionUID = 3282436229322446581L;
/**
* 工单中的审核信息
*/
@ApiListField("activity_audit_list")
@ApiField("activity_audit_d_t_o")
private List<ActivityAuditDTO> activityAuditList;
/**
* INIT:初始化;AUDITING:审核中;REJECT:审核驳回;PASS:审核通过;CANCEL:审核撤销;FAIL:审核失败
*/
@ApiField("audit_status")
private String auditStatus;
/**
* 订单号
*/
@ApiField("order_id")
private String orderId;
/**
* INIT:初始化;DOING:处理中;SUCCESS:成功;FAIL:失败
*/
@ApiField("order_status")
private String orderStatus;
/**
* CAMPAIGN_CREATE_ORDER:创建工单;CAMPAIGN_ENABLE_ORDER:生效工单;CAMPAIGN_START_ORDER:启动工单;CAMPAIGN_CLOSE_ORDER:关闭工单;CAMPAIGN_FINISH_ORDER:结束工单;CAMPAIGN_DELETE_ORDER:删除工单;CAMPAIGN_MODIFY_ORDER:修改工单
*/
@ApiField("order_type")
private String orderType;
public List<ActivityAuditDTO> getActivityAuditList() {
return this.activityAuditList;
}
public void setActivityAuditList(List<ActivityAuditDTO> activityAuditList) {
this.activityAuditList = activityAuditList;
}
public String getAuditStatus() {
return this.auditStatus;
}
public void setAuditStatus(String auditStatus) {
this.auditStatus = auditStatus;
}
public String getOrderId() {
return this.orderId;
}
public void setOrderId(String orderId) {
this.orderId = orderId;
}
public String getOrderStatus() {
return this.orderStatus;
}
public void setOrderStatus(String orderStatus) {
this.orderStatus = orderStatus;
}
public String getOrderType() {
return this.orderType;
}
public void setOrderType(String orderType) {
this.orderType = orderType;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
1e0d5fa0b6a00b5b981d655670e4e8d1f16869bd
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/30/30_c265e4a4a39b8af52bc87ab7c99d414fdc6c14c1/CSharpLocalVariableConvertController/30_c265e4a4a39b8af52bc87ab7c99d414fdc6c14c1_CSharpLocalVariableConvertController_t.java
|
6377737fa2a7bdb0583a585456200562831403e7
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 2,752
|
java
|
package husacct.analyse.task.analyser.csharp.convertControllers;
import java.util.ArrayList;
import java.util.List;
import org.antlr.runtime.tree.CommonTree;
import husacct.analyse.task.analyser.csharp.CSharpTreeConvertController;
import husacct.analyse.task.analyser.csharp.generators.CSharpGenerator;
import husacct.analyse.task.analyser.csharp.generators.CSharpLocalVariableGenerator;
public class CSharpLocalVariableConvertController extends CSharpGenerator {
private final CSharpTreeConvertController treeConvertController;
private List<CommonTree> localVariableTrees;
public CSharpLocalVariableConvertController(CSharpTreeConvertController treeConvertController) {
this.treeConvertController = treeConvertController;
localVariableTrees = new ArrayList<CommonTree>();
}
public boolean localVariableCheck(CommonTree tree, boolean isPartOfLocalVariable) {
int type = tree.getType();
if(!isPartOfLocalVariable){
isPartOfLocalVariable = checkBeginning(isPartOfLocalVariable, type);
}
if(type == SEMICOLON){
isPartOfLocalVariable = endLocalVariable(tree);
}
if(isPartOfLocalVariable){
localVariableTrees.add(tree);
}
return isPartOfLocalVariable;
}
private boolean checkBeginning(boolean isPartOfLocalVariable, int type) {
for(int thisType : typeCollection){
if(type == thisType){
return true;
}
}
if(type == NEW){
return true;
}
return isPartOfLocalVariable;
}
private boolean endLocalVariable(CommonTree node) {
int lineNumber = node.getLine();
if(localVariableTrees.size() > 0){
cleanVariableList();
}
if(localVariableTrees.size() > 2){
createLocalVariableGenerator(lineNumber);
}
localVariableTrees.clear();
return false;
}
private void createLocalVariableGenerator(int lineNr){
String uniqueClassName = treeConvertController.getUniqueClassName();
CSharpLocalVariableGenerator localVariableGenerator = new CSharpLocalVariableGenerator(treeConvertController);
localVariableGenerator.generateLocalVariable(localVariableTrees, treeConvertController.getCurrentMethodName(), uniqueClassName, lineNr);
}
private void cleanVariableList() {
boolean isLocalVariable = true;
for(CommonTree node : localVariableTrees){
int type = node.getType();
if(type == FORWARDCURLYBRACKET){
isLocalVariable = false;
}
}
if(isLocalVariable){
if (localVariableTrees.size() > 2) {
CommonTree node = localVariableTrees.get(1);
int type = node.getType();
if(type == FORWARDBRACKET){
isLocalVariable = false;
}
} else {
isLocalVariable = false;
}
}
if(!(isLocalVariable)){
localVariableTrees.clear();
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
56de5f1961c0f7b72c1f07a6f613dcf41e3ba335
|
73340dd6cbcd855ddd0294d1bf40f1c173b956ed
|
/aw-lib-crypto-jce/src/main/java/af/gov/anar/lib/cryptojce/exception/NullDataException.java
|
74e176f64dc2b3a88779bb7e15e4dfdf763c128a
|
[] |
no_license
|
mohbadar/mmo-backoffice
|
00f5cc72048f777a121e2b26923024f741b8c7a5
|
eb55863762d3cce4a04502ed458813027da6cec9
|
refs/heads/master
| 2022-11-19T13:58:30.545140
| 2021-02-20T04:36:59
| 2021-02-20T04:36:59
| 222,090,501
| 4
| 2
| null | 2022-11-16T01:21:20
| 2019-11-16T11:38:59
|
Java
|
UTF-8
|
Java
| false
| false
| 654
|
java
|
package af.gov.anar.lib.cryptojce.exception;
import af.gov.anar.lang.infrastructure.exception.common.BaseUncheckedException;
/**
* {@link Exception} to be thrown when data is null
*/
public class NullDataException extends BaseUncheckedException {
/**
* Unique id for serialization
*/
private static final long serialVersionUID = 5282175344975485527L;
/**
* Constructor with errorCode and errorMessage
*
* @param errorCode The error code for this exception
* @param errorMessage The error message for this exception
*/
public NullDataException(String errorCode, String errorMessage) {
super(errorCode, errorMessage);
}
}
|
[
"mohammadbadarhashimi@gmail.com"
] |
mohammadbadarhashimi@gmail.com
|
9c9217700a7d570ac9259cece527e03933ceb7c2
|
0e49eee4f85024e0857b77bce1e78030beb47b1f
|
/src/main/java/com/tencentcloudapi/tcb/v20180608/models/StaticStorageInfo.java
|
f1a9859253629f978693c5d3cd684aca1538ae07
|
[
"Apache-2.0"
] |
permissive
|
arbing/tencentcloud-sdk-java
|
7b880af16540fac10a785a1bef0d529eec89c525
|
c1bdd3f711c92f950ffe15e6506426a8e340a638
|
refs/heads/master
| 2021-03-31T15:58:36.276205
| 2020-03-18T00:28:16
| 2020-03-18T00:28:16
| 248,117,938
| 1
| 0
|
Apache-2.0
| 2020-03-18T02:15:34
| 2020-03-18T02:15:33
| null |
UTF-8
|
Java
| false
| false
| 5,575
|
java
|
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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.tencentcloudapi.tcb.v20180608.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class StaticStorageInfo extends AbstractModel{
/**
* 静态CDN域名
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("StaticDomain")
@Expose
private String StaticDomain;
/**
* 静态CDN默认文件夹,当前为根目录
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("DefaultDirName")
@Expose
private String DefaultDirName;
/**
* 资源状态(process/online/offline/init)
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Status")
@Expose
private String Status;
/**
* cos所属区域
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Region")
@Expose
private String Region;
/**
* bucket信息
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Bucket")
@Expose
private String Bucket;
/**
* Get 静态CDN域名
注意:此字段可能返回 null,表示取不到有效值。
* @return StaticDomain 静态CDN域名
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getStaticDomain() {
return this.StaticDomain;
}
/**
* Set 静态CDN域名
注意:此字段可能返回 null,表示取不到有效值。
* @param StaticDomain 静态CDN域名
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setStaticDomain(String StaticDomain) {
this.StaticDomain = StaticDomain;
}
/**
* Get 静态CDN默认文件夹,当前为根目录
注意:此字段可能返回 null,表示取不到有效值。
* @return DefaultDirName 静态CDN默认文件夹,当前为根目录
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getDefaultDirName() {
return this.DefaultDirName;
}
/**
* Set 静态CDN默认文件夹,当前为根目录
注意:此字段可能返回 null,表示取不到有效值。
* @param DefaultDirName 静态CDN默认文件夹,当前为根目录
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setDefaultDirName(String DefaultDirName) {
this.DefaultDirName = DefaultDirName;
}
/**
* Get 资源状态(process/online/offline/init)
注意:此字段可能返回 null,表示取不到有效值。
* @return Status 资源状态(process/online/offline/init)
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getStatus() {
return this.Status;
}
/**
* Set 资源状态(process/online/offline/init)
注意:此字段可能返回 null,表示取不到有效值。
* @param Status 资源状态(process/online/offline/init)
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setStatus(String Status) {
this.Status = Status;
}
/**
* Get cos所属区域
注意:此字段可能返回 null,表示取不到有效值。
* @return Region cos所属区域
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getRegion() {
return this.Region;
}
/**
* Set cos所属区域
注意:此字段可能返回 null,表示取不到有效值。
* @param Region cos所属区域
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setRegion(String Region) {
this.Region = Region;
}
/**
* Get bucket信息
注意:此字段可能返回 null,表示取不到有效值。
* @return Bucket bucket信息
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getBucket() {
return this.Bucket;
}
/**
* Set bucket信息
注意:此字段可能返回 null,表示取不到有效值。
* @param Bucket bucket信息
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setBucket(String Bucket) {
this.Bucket = Bucket;
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap<String, String> map, String prefix) {
this.setParamSimple(map, prefix + "StaticDomain", this.StaticDomain);
this.setParamSimple(map, prefix + "DefaultDirName", this.DefaultDirName);
this.setParamSimple(map, prefix + "Status", this.Status);
this.setParamSimple(map, prefix + "Region", this.Region);
this.setParamSimple(map, prefix + "Bucket", this.Bucket);
}
}
|
[
"zhiqiangfan@tencent.com"
] |
zhiqiangfan@tencent.com
|
08f16f6e3ff245431da9bbc6013674e71c771bb9
|
380d1187ac2cebd2a33827790913ff3d8d6be17b
|
/src/main/java/net/mindview/util/DaemonThreadFactory.java
|
de4b4e5f87fe4dc70f93d8a974222f29f27d7c9e
|
[] |
no_license
|
XingxianDeng/ThinkingInJavaSample
|
eb9340fed48af79c60fdddcc6272c5d2d4d17538
|
f3414c706c19020cf348461242956bfdac743c9b
|
refs/heads/master
| 2021-06-22T01:41:04.337907
| 2017-08-30T14:06:43
| 2017-08-30T14:06:43
| 84,512,283
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 333
|
java
|
package net.mindview.util;
import java.util.concurrent.ThreadFactory;
/**
* @author Dylan
* @version 1.00 6/25/2016 12:27
*/
public class DaemonThreadFactory implements ThreadFactory {
@Override
public Thread newThread(Runnable r) {
Thread t = new Thread(r);
t.setDaemon(true);
return t;
}
}
|
[
"dxx1104@gmail.com"
] |
dxx1104@gmail.com
|
0039d0a8146126f20b2497ff596de2413b86ea4d
|
b54cb11a1284d8a34b3929229d273f995515752c
|
/week1/SearchingEarthquakeDataStarterProgram/LargestQuakes.java
|
c72f2d39b2e70845790accfe49034a54801ec023
|
[] |
no_license
|
amandeep-verma/Duke-Java-Programming-Principles-of-Software-Design
|
721c14a9a87d4225b153d3f04ee65c7e1d498588
|
73e94399dd384587a722f1e67093a332b0bb66da
|
refs/heads/master
| 2023-03-10T18:52:05.232333
| 2021-03-01T08:10:16
| 2021-03-01T08:10:16
| 318,790,375
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,767
|
java
|
import java.util.*;
import edu.duke.*;
/**
* Write a description of LargestQuakes here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class LargestQuakes {
public void findLargestQuakes()
{
EarthQuakeParser parser = new EarthQuakeParser();
String source = "data/nov20quakedata.atom";
//String source = "http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_week.atom";
ArrayList<QuakeEntry> list = parser.read(source);
System.out.println("# quakes read: " + list.size());
/*for (QuakeEntry qe : list) {
System.out.println(qe);
}
System.out.println("Largest Index " + indexOfLargest(list) +" and magnitude " + list.get(indexOfLargest(list)).getMagnitude());
*/
ArrayList<QuakeEntry> ans = getLargest(list, 50);
for(QuakeEntry qe: ans)
{
System.out.println(qe);
}
}
public int indexOfLargest(ArrayList<QuakeEntry> data)
{
int largestIndex =0;
for(int k=0; k< data.size(); k++) {
if(data.get(largestIndex).getMagnitude() < data.get(k).getMagnitude() )
{
largestIndex = k;
}
}
return largestIndex;
}
public ArrayList<QuakeEntry> getLargest(ArrayList<QuakeEntry> quakeData, int howMany)
{
ArrayList<QuakeEntry> copy = new ArrayList<QuakeEntry>(quakeData);
ArrayList<QuakeEntry> ret = new ArrayList<QuakeEntry>();
for (int i = 0; i < howMany; i++)
{
int maxIndex = indexOfLargest(copy);
ret.add(copy.get(maxIndex));
copy.remove(maxIndex);
}
return ret;
}
}
|
[
"39786879+amandeep-verma@users.noreply.github.com"
] |
39786879+amandeep-verma@users.noreply.github.com
|
275a9aefa8af551d9ed451d5259991afe171fa40
|
7a3ab322cc9d0b61c14b7cba750fe6ae401d4cd1
|
/src/main/org/acre/visualizer/graph/popup/PDMResultToRoleResultEdgePopup.java
|
b576e4d984d3e3821769fe32cbf3b49416f5d267
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
JamesLinus/acre
|
8fb28fee2050a90664dbb78cae90911d3762c2dc
|
052e5fa211e8b8201acf8c08a295e03cd1fdc836
|
refs/heads/master
| 2020-05-29T12:19:07.861856
| 2011-01-13T04:26:36
| 2011-01-13T04:26:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,876
|
java
|
/**
* Copyright 2004-2005 Sun Microsystems, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.acre.visualizer.graph.popup;
import org.acre.visualizer.graph.AcreGraph;
import org.acre.visualizer.graph.edges.AcreEdge;
import org.acre.visualizer.graph.pdmresult.edges.PDMResultToRoleResultEdge;
import org.acre.visualizer.graph.vertex.AcreVertex;
import java.awt.event.ActionEvent;
/**
* @author Deepak.Alur@Sun.com
* @version Dec 22, 2004 10:56:18 PM
*/
public class PDMResultToRoleResultEdgePopup extends GraphPopup {
public PDMResultToRoleResultEdgePopup(AcreGraph graph, PDMResultToRoleResultEdge pdmResultToRoleResultEdge) {
super(graph, pdmResultToRoleResultEdge, "PDM-Role Results Relationship");
initializeMenus();
}
// subclasses to override this method if needed
protected void handleEdgeAction(ActionEvent e, GraphPopup popup, AcreGraph graph, AcreEdge edge) {
// todo - implemented method body
showFeatureNotImplemented();
}
// subclasses to override this method if needed
protected void handleVertexAction(ActionEvent e, GraphPopup popup, AcreGraph graph, AcreVertex vertex) {
// do nothing
}
protected void initializeMenus() {
// todo - implemented method body
}
}
|
[
"deepak.alur@jackbe.com"
] |
deepak.alur@jackbe.com
|
e42eaf5eaf1f90c767b230c917ef67f3b33ff2d2
|
e34955c68880c2b6202c27eb20fe84505f125d65
|
/IF/API/eu.supersede.if.api/src/main/java/eu/supersede/integration/api/dm/types/RequestClassification.java
|
dee53c0cbe38d8494aeb14d829969c772c99626b
|
[
"Apache-2.0"
] |
permissive
|
danglotb/integration
|
d528b503511383c9f7754f6386598bc66fbd35c0
|
dd05660c5255255f0bcface191eb46fd2c441737
|
refs/heads/master
| 2021-08-07T16:58:18.783164
| 2017-06-12T16:26:14
| 2017-06-12T16:26:14
| 109,979,317
| 0
| 0
| null | 2017-11-08T13:27:38
| 2017-11-08T13:27:37
| null |
UTF-8
|
Java
| false
| false
| 142
|
java
|
package eu.supersede.integration.api.dm.types;
public enum RequestClassification {
FeatureRequest, EnhancementRequest, BugFixRequest;
}
|
[
"jesus.gorronogoitia@atos.net"
] |
jesus.gorronogoitia@atos.net
|
a9c322ff1a25cbb2b4ce12f49e4e7c44d90f0ee4
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.minihd.qq/assets/exlibs.2.jar/classes.jar/com/tencent/component/network/downloader/DownloadReport.java
|
477cc41c060b577e92e830a90c098634578ba72c
|
[] |
no_license
|
tsuzcx/qq_apk
|
0d5e792c3c7351ab781957bac465c55c505caf61
|
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
|
refs/heads/main
| 2022-07-02T10:32:11.651957
| 2022-02-01T12:41:38
| 2022-02-01T12:41:38
| 453,860,108
| 36
| 9
| null | 2022-01-31T09:46:26
| 2022-01-31T02:43:22
|
Java
|
UTF-8
|
Java
| false
| false
| 860
|
java
|
package com.tencent.component.network.downloader;
import org.apache.http.HttpResponse;
public final class DownloadReport
{
public int a;
public long a;
public String a;
public Throwable a;
public HttpResponse a;
public int b;
public long b;
public String b;
public int c;
public long c;
public String c;
public int d;
public long d;
public String d;
public long e;
public String e;
public long f;
public String f;
public long g;
public String g;
public long h;
public String h;
public long i;
public String i;
public long j;
public long k;
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.minihd.qq\assets\exlibs.2.jar\classes.jar
* Qualified Name: com.tencent.component.network.downloader.DownloadReport
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
c2766988c40b4a53fbe5d5dbc40335e61a8e6784
|
bf390e6589e240c6ccc325355cfd0c21fbe9d884
|
/2.JavaCore/src/com/javarush/task/task12/task1205/Solution.java
|
c88c48e97d856bba4fddfdef729bff222e13c7b8
|
[] |
no_license
|
vladmeh/jrt
|
84878788fbb1f10aa55d320d205f886d1df9e417
|
0272ded03ac8eced7bf901bdfcc503a4eb6da12a
|
refs/heads/master
| 2020-04-05T11:20:15.441176
| 2019-05-22T22:24:56
| 2019-05-22T22:24:56
| 81,300,849
| 4
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 889
|
java
|
package com.javarush.task.task12.task1205;
/*
Или «Корова», или «Кит», или «Собака», или «Неизвестное животное»
*/
public class Solution {
public static void main(String[] args) {
System.out.println(getObjectType(new Cow()));
System.out.println(getObjectType(new Dog()));
System.out.println(getObjectType(new Whale()));
System.out.println(getObjectType(new Pig()));
}
public static String getObjectType(Object o) {
if (o instanceof Cow) return "Корова";
if (o instanceof Whale) return "Кит";
if (o instanceof Dog) return "Собака";
return "Неизвестное животное";
}
public static class Cow {
}
public static class Dog {
}
public static class Whale {
}
public static class Pig {
}
}
|
[
"vladmeh@gmail.com"
] |
vladmeh@gmail.com
|
8240ac6c12278fce6145038ac7329a51c77b56b3
|
3841f7991232e02c850b7e2ff6e02712e9128b17
|
/小浪底泥沙三维/EV_Xld/jni/src/JAVA/EV_GraphicWrapper/src/com/earthview/world/graphic/ParticleEmitterFactory.java
|
c72e0c6f7995b6bb3c2df8df6ebad79b8a2249d0
|
[] |
no_license
|
15831944/BeijingEVProjects
|
62bf734f1cb0a8be6fed42cf6b207f9dbdf99e71
|
3b5fa4c4889557008529958fc7cb51927259f66e
|
refs/heads/master
| 2021-07-22T14:12:15.106616
| 2017-10-15T11:33:06
| 2017-10-15T11:33:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,086
|
java
|
package com.earthview.world.graphic;
import global.*;
import com.earthview.world.base.*;
import com.earthview.world.util.*;
import com.earthview.world.core.*;
/**
* 抽象类定义了EarthView::World::Graphic::CParticleEmitter子类执行的接口
*/
public class ParticleEmitterFactory extends com.earthview.world.core.AllocatedObject {
static {
GlobalClassFactoryMap.put("EarthView::World::Graphic::CParticleEmitterFactory", new ParticleEmitterFactoryClassFactory());
GlobalClassFactoryMap.put("EarthView::World::Graphic::JCParticleEmitterFactoryProxy", new ParticleEmitterFactoryClassFactory());
}
/**
* 默认构造函数
* @param
*/
public ParticleEmitterFactory() {
super(CreatedWhenConstruct.CWC_NotToCreate);
Create("JCParticleEmitterFactoryProxy", null, true);
this.registerCallback();
if (!"com.earthview.world.graphic.ParticleEmitterFactory".equals(this.getClass().getName()))
{
this.setCustomExtend(true);
}
}
protected String getName_void_callback()
{
String returnValue = getName();
String __returnValue = returnValue;
return __returnValue;
}
native private String getName_void(long pNativeObject);
/**
* 返回工厂的名字,其标识了该工厂创建粒子发射器的类型
* @param
*/
public String getName()
{
String returnValue = getName_void(this.nativeObject.pointer);
return returnValue;
}
native private String getName_void_NoVirtual(long pNativeObject);
protected String getName_NoVirtual()
{
String returnValue = getName_void_NoVirtual(this.nativeObject.pointer);
return returnValue;
}
protected long createEmitter_CParticleSystem_callback(long psys)
{
com.earthview.world.graphic.ParticleSystem psysParamValue = (psys == 0L ? null : new com.earthview.world.graphic.ParticleSystem(CreatedWhenConstruct.CWC_NotToCreate));
if(psysParamValue != null)
{
psysParamValue.setDelegate(true);
psysParamValue.setInstancePointer(new InstancePointer(psys));
IClassFactory psysParamValueClassFactory = GlobalClassFactoryMap.get(psysParamValue.getCppInstanceTypeName());
if (psysParamValueClassFactory != null)
{
psysParamValue.setDelegate(true);
psysParamValue = (com.earthview.world.graphic.ParticleSystem)psysParamValueClassFactory.create();
psysParamValue.setDelegate(true);
psysParamValue.setInstancePointer(new InstancePointer(psys));
}
}
com.earthview.world.graphic.ParticleEmitter returnValue = createEmitter(psysParamValue);
if(returnValue == null) {
return 0L;
}
returnValue.setDelegate(true);
long __returnValue = returnValue.nativeObject.pointer;
return __returnValue;
}
native private long createEmitter_CParticleSystem(long pNativeObject, long psys);
/**
* 创建一个新的粒子发射器的实例
* @param psys 指向粒子系统的指针
*/
public com.earthview.world.graphic.ParticleEmitter createEmitter(com.earthview.world.graphic.ParticleSystem psys)
{
long psysParamValue = (psys == null ? 0L : psys.nativeObject.pointer);
long returnValue = createEmitter_CParticleSystem(this.nativeObject.pointer, psysParamValue);
if(returnValue == 0L) {
return null;
}
com.earthview.world.graphic.ParticleEmitter __returnValue = new com.earthview.world.graphic.ParticleEmitter(CreatedWhenConstruct.CWC_NotToCreate, "CParticleEmitter");
__returnValue.setDelegate(true);
InstancePointer __instancePointer = new InstancePointer(returnValue);
__returnValue.setInstancePointer(__instancePointer);
IClassFactory __returnValueClassFactory = GlobalClassFactoryMap.get(__returnValue.getCppInstanceTypeName());
if (__returnValueClassFactory != null)
{
__returnValue.setDelegate(true);
__returnValue = (com.earthview.world.graphic.ParticleEmitter)__returnValueClassFactory.create();
__returnValue.setDelegate(true);
__returnValue.bindNativeObject(__instancePointer, "CParticleEmitter");
}
return __returnValue;
}
native private long createEmitter_CParticleSystem_NoVirtual(long pNativeObject, long psys);
protected com.earthview.world.graphic.ParticleEmitter createEmitter_NoVirtual(com.earthview.world.graphic.ParticleSystem psys)
{
long psysParamValue = (psys == null ? 0L : psys.nativeObject.pointer);
long returnValue = createEmitter_CParticleSystem_NoVirtual(this.nativeObject.pointer, psysParamValue);
if(returnValue == 0L) {
return null;
}
com.earthview.world.graphic.ParticleEmitter __returnValue = new com.earthview.world.graphic.ParticleEmitter(CreatedWhenConstruct.CWC_NotToCreate, "CParticleEmitter");
__returnValue.setDelegate(true);
InstancePointer __instancePointer = new InstancePointer(returnValue);
__returnValue.setInstancePointer(__instancePointer);
IClassFactory __returnValueClassFactory = GlobalClassFactoryMap.get(__returnValue.getCppInstanceTypeName());
if (__returnValueClassFactory != null)
{
__returnValue.setDelegate(true);
__returnValue = (com.earthview.world.graphic.ParticleEmitter)__returnValueClassFactory.create();
__returnValue.setDelegate(true);
__returnValue.bindNativeObject(__instancePointer, "CParticleEmitter");
}
return __returnValue;
}
protected void destroyEmitter_CParticleEmitter_callback(long e)
{
com.earthview.world.graphic.ParticleEmitter eParamValue = (e == 0L ? null : new com.earthview.world.graphic.ParticleEmitter(CreatedWhenConstruct.CWC_NotToCreate));
if(eParamValue != null)
{
eParamValue.setDelegate(true);
eParamValue.setInstancePointer(new InstancePointer(e));
IClassFactory eParamValueClassFactory = GlobalClassFactoryMap.get(eParamValue.getCppInstanceTypeName());
if (eParamValueClassFactory != null)
{
eParamValue.setDelegate(true);
eParamValue = (com.earthview.world.graphic.ParticleEmitter)eParamValueClassFactory.create();
eParamValue.setDelegate(true);
eParamValue.setInstancePointer(new InstancePointer(e));
}
}
destroyEmitter(eParamValue);
}
native private void destroyEmitter_CParticleEmitter(long pNativeObject, long e);
/**
* 销毁参数指定的发射器
* @param e 指向发射器的指针
*/
public void destroyEmitter(com.earthview.world.graphic.ParticleEmitter e)
{
long eParamValue = (e == null ? 0L : e.nativeObject.pointer);
destroyEmitter_CParticleEmitter(this.nativeObject.pointer, eParamValue);
}
native private void destroyEmitter_CParticleEmitter_NoVirtual(long pNativeObject, long e);
protected void destroyEmitter_NoVirtual(com.earthview.world.graphic.ParticleEmitter e)
{
long eParamValue = (e == null ? 0L : e.nativeObject.pointer);
destroyEmitter_CParticleEmitter_NoVirtual(this.nativeObject.pointer, eParamValue);
}
public ParticleEmitterFactory(CreatedWhenConstruct cwc) {
super(CreatedWhenConstruct.CWC_NotToCreate);
}
public ParticleEmitterFactory(CreatedWhenConstruct cwc, String classNameStr) {
super(CreatedWhenConstruct.CWC_NotToCreate, classNameStr);
}
native protected void register_getName_void(long pNativeObject, String method);
native protected void register_createEmitter_CParticleSystem(long pNativeObject, String method);
native protected void register_destroyEmitter_CParticleEmitter(long pNativeObject, String method);
public void registerCallback(){
if (!this.nativeObject.equals(InstancePointer.ZERO)){
this.register_getName_void(this.nativeObject.pointer, "getName_void_callback");
this.register_createEmitter_CParticleSystem(this.nativeObject.pointer, "createEmitter_CParticleSystem_callback");
this.register_destroyEmitter_CParticleEmitter(this.nativeObject.pointer, "destroyEmitter_CParticleEmitter_callback");
}
}
public static ParticleEmitterFactory fromBaseObject(BaseObject baseObj)
{
if (baseObj == null || InstancePointer.ZERO.equals(baseObj.nativeObject))
{
return null;
}
ParticleEmitterFactory obj = null;
if(baseObj instanceof ParticleEmitterFactory)
{
obj = (ParticleEmitterFactory)baseObj;
} else {
obj = new ParticleEmitterFactory(CreatedWhenConstruct.CWC_NotToCreate);
obj.bindNativeObject(baseObj.nativeObject, "CParticleEmitterFactory");
obj.increaseCast();
}
return obj;
}
}
|
[
"yanguanqi@aliyun.com"
] |
yanguanqi@aliyun.com
|
8df87b82be8295bf14844abf83fa5e98a2f13743
|
35e46a270d1de548763c161c0dac554282a33d9d
|
/CFEC-DevR3/cfec.dto/src/main/java/bo/gob/sin/sre/fac/cfec/dto/fpre/interfaces/ISolicitudRecepcion.java
|
bdb5224ec8c27e91b470b61d1cc6c15e5c7606b0
|
[] |
no_license
|
cruz-victor/ServiciosSOAPyRESTJavaSpringBoot
|
e817e16c8518b3135a26d7ad7f6b0deb8066fe42
|
f04a2b40b118d2d34269c4f954537025b67b3784
|
refs/heads/master
| 2023-01-07T11:09:30.758600
| 2020-11-15T14:01:08
| 2020-11-15T14:01:08
| 312,744,182
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,777
|
java
|
package bo.gob.sin.sre.fac.cfec.dto.fpre.interfaces;
import java.util.Date;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
@XmlJavaTypeAdapter(SolicitudRecepcionAdapter.class)
public interface ISolicitudRecepcion {
String getCodigoSistema();
Integer getCodigoAmbiente();
Integer getCodigoEmision();
Integer getCodigoModalidad();
Long getNit();
String getCuis();
String getCufd();
String getCuape();
Integer getCodigoDocumentoFiscal();
Integer getCodigoDocumentoSector();
Integer getCodigoSucursal();
Integer getCodigoPuntoVenta();
Date getFechaEnvio();
String getArchivo();
String getHashArchivo();
@XmlElement(required=true)
void setCodigoSistema(String codigoSistema);
@XmlElement(required=true)
void setCodigoAmbiente(Integer codigoAmbiente);
@XmlElement(required=true)
void setCodigoEmision(Integer codigoEmision);
@XmlElement(required=true)
void setCodigoModalidad(Integer codigoModalidad);
@XmlElement(required=true)
void setNit(Long nit);
@XmlElement(required=true)
void setCuis(String cuis);
@XmlElement(required=true)
void setCufd(String cufd);
@XmlElement(required=true)
void setCuape(String cuape);
@XmlElement(required=true)
void setCodigoDocumentoFiscal(Integer codigoDocumentoFiscal);
@XmlElement(required=true)
void setCodigoDocumentoSector(Integer codigoDocumentoSector);
@XmlElement(required=true)
void setCodigoSucursal(Integer codigoSucursal);
@XmlElement(nillable = true)
void setCodigoPuntoVenta(Integer codigoPuntoVenta);
@XmlElement(required=true)
void setFechaEnvio(Date fechaEnvio);
@XmlElement(required=true)
void setArchivo(String archivo);
@XmlElement(required=true)
void setHashArchivo(String hashArchivo);
}
|
[
"cruz.gomez.victor@gmail.com"
] |
cruz.gomez.victor@gmail.com
|
4120520eca8312e010c2b5df8372cf1b7728a951
|
3b91ed788572b6d5ac4db1bee814a74560603578
|
/com/google/android/gms/common/server/response/FieldMappingDictionary$FieldMapPair.java
|
ab28f3174214d226a4ef6708216ee7ffe3ba9323
|
[] |
no_license
|
linsir6/WeChat_java
|
a1deee3035b555fb35a423f367eb5e3e58a17cb0
|
32e52b88c012051100315af6751111bfb6697a29
|
refs/heads/master
| 2020-05-31T05:40:17.161282
| 2018-08-28T02:07:02
| 2018-08-28T02:07:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 912
|
java
|
package com.google.android.gms.common.server.response;
import android.os.Parcel;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import com.google.android.gms.common.server.response.FastJsonResponse.Field;
public class FieldMappingDictionary$FieldMapPair implements SafeParcelable {
public static final b CREATOR = new b();
final String aAL;
final Field<?, ?> aPj;
final int versionCode;
FieldMappingDictionary$FieldMapPair(int i, String str, Field<?, ?> field) {
this.versionCode = i;
this.aAL = str;
this.aPj = field;
}
FieldMappingDictionary$FieldMapPair(String str, Field<?, ?> field) {
this.versionCode = 1;
this.aAL = str;
this.aPj = field;
}
public int describeContents() {
return 0;
}
public void writeToParcel(Parcel parcel, int i) {
b.a(this, parcel, i);
}
}
|
[
"707194831@qq.com"
] |
707194831@qq.com
|
d7d5925f0ab20c56a4468ff1a09008b3d2f64f69
|
1aff6118783ea477f359803fd64f25fabfa49929
|
/Play-with-Algorithms/src/main/java/com/study/min_tree/LazyPrim/PrimMST.java
|
eb6e77d6ad3b8d6dadc8357ba43dddeb854f6999
|
[] |
no_license
|
wyj180/design_pattern
|
504b0bcb5e6b764b90c9dcc04c5d0887e8a1b985
|
5151b9e8966831564d498060e4ff4e1dea2cb1bf
|
refs/heads/master
| 2022-12-24T12:24:29.303463
| 2020-05-10T03:12:59
| 2020-05-10T03:12:59
| 204,421,461
| 0
| 0
| null | 2022-12-16T03:06:58
| 2019-08-26T07:33:57
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 3,620
|
java
|
package com.study.min_tree.LazyPrim;
import java.util.Vector;
// 使用优化的Prim算法求图的最小生成树
public class PrimMST<Weight extends Number & Comparable> {
private WeightedGraph G; // 图的引用
private IndexMinHeap<Weight> ipq; // 最小索引堆, 算法辅助数据结构
private Edge<Weight>[] edgeTo; // 访问的点所对应的边, 算法辅助数据结构
private boolean[] marked; // 标记数组, 在算法运行过程中标记节点i是否被访问
private Vector<Edge<Weight>> mst; // 最小生成树所包含的所有边
private Number mstWeight; // 最小生成树的权值
// 构造函数, 使用Prim算法求图的最小生成树
public PrimMST(WeightedGraph graph) {
G = graph;
assert (graph.E() >= 1);
ipq = new IndexMinHeap<Weight>(graph.V());
// 算法初始化
marked = new boolean[G.V()];
edgeTo = new Edge[G.V()];
for (int i = 0; i < G.V(); i++) {
marked[i] = false;
edgeTo[i] = null;
}
mst = new Vector<Edge<Weight>>();
// Prim
visit(0);
while (!ipq.isEmpty()) {
// 使用最小索引堆找出已经访问的边中权值最小的边
// 最小索引堆中存储的是点的索引, 通过点的索引找到相对应的边
int v = ipq.extractMinIndex();
assert (edgeTo[v] != null);
mst.add(edgeTo[v]);
visit(v);
}
// 计算最小生成树的权值
mstWeight = mst.elementAt(0).wt();
for (int i = 1; i < mst.size(); i++)
mstWeight = mstWeight.doubleValue() + mst.elementAt(i).wt().doubleValue();
}
// 访问节点v
void visit(int v) {
assert !marked[v];
marked[v] = true;
// 将和节点v相连接的未访问的另一端点, 和与之相连接的边, 放入最小堆中
for (Object item : G.adj(v)) {
Edge<Weight> e = (Edge<Weight>) item;
int w = e.other(v);
// 如果边的另一端点未被访问
if (!marked[w]) {
// 如果从没有考虑过这个端点, 直接将这个端点和与之相连接的边加入索引堆
if (edgeTo[w] == null) {
edgeTo[w] = e;
ipq.insert(w, e.wt());
}
// 如果曾经考虑这个端点, 但现在的边比之前考虑的边更短, 则进行替换
else if (e.wt().compareTo(edgeTo[w].wt()) < 0) {
edgeTo[w] = e;
ipq.change(w, e.wt());
}
}
}
}
// 返回最小生成树的所有边
Vector<Edge<Weight>> mstEdges() {
return mst;
}
// 返回最小生成树的权值
Number result() {
return mstWeight;
}
// 测试 Prim
public static void main(String[] args) {
String filename = "testG1.txt";
int V = 8;
SparseWeightedGraph<Double> g = new SparseWeightedGraph<Double>(V, false);
ReadWeightedGraph readGraph = new ReadWeightedGraph(g, filename);
// Test Prim MST
System.out.println("Test Prim MST:");
PrimMST<Double> primMST = new PrimMST<Double>(g);
Vector<Edge<Double>> mst = primMST.mstEdges();
for (int i = 0; i < mst.size(); i++) {
System.out.println(mst.elementAt(i));
}
System.out.println("The MST weight is: " + primMST.result());
System.out.println();
}
}
|
[
"l"
] |
l
|
6edd78eafbe8e67eedc7582d33364fc78ead58e8
|
aa13dbc3a010219eebf70ed0a4863db0ed0e747b
|
/modules/apex-domains/apex-domains.aadm/src/main/java/com/ericsson/apex/domains/aadm/concepts/IMSIStatus.java
|
8a1589562286cb2820bcff53405d899e801f63d2
|
[] |
no_license
|
zhniu/apex
|
48c61243b2e91932fd6af93e3b9f00c47e1d9eba
|
ab91898c51f6e45be8a4abaefef9747472e22a8e
|
refs/heads/master
| 2020-03-07T14:05:02.605568
| 2018-03-26T18:03:03
| 2018-03-26T18:03:03
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,432
|
java
|
/*******************************************************************************
* COPYRIGHT (C) Ericsson 2016-2018
*
* The copyright to the computer program(s) herein is the property of
* Ericsson Inc. The programs may be used and/or copied only with written
* permission from Ericsson Inc. or in accordance with the terms and
* conditions stipulated in the agreement/contract under which the
* program(s) have been supplied.
******************************************************************************/
package com.ericsson.apex.domains.aadm.concepts;
import java.io.Serializable;
/**
* The Class IMSIStatus holds the status of an IMSI in the AADM domain.
*/
public class IMSIStatus implements Serializable {
private static final long serialVersionUID = 2852523814242234172L;
private static final long TIME_NOT_SET = 0;
private final String imsi;
private boolean anomalous = false;
private long anomalousTime = TIME_NOT_SET;
private String eNodeBID;
private long blackListedTime = TIME_NOT_SET;
private long blockingCount = 0;
/**
* Initiate an IMSI status instance with an IMSI value.
*
* @param imsi the IMSI value
*/
public IMSIStatus(final String imsi) {
this.imsi = imsi;
}
/**
* Gets the IMSI value.
*
* @return the IMSI value
*/
public String getIMSI() {
return imsi;
}
/**
* Gets the anomalous flag.
*
* @return the anomalous flag
*/
public boolean getAnomalous() {
return anomalous;
}
/**
* Sets the anomalous flag.
*
* @param anomalous the anomalous flag
*/
public void setAnomalous(final boolean anomalous) {
this.anomalous = anomalous;
}
/**
* Gets the time of the most recent anomolous event.
*
* @return the time of the most recent anomolous event
*/
public long getAnomolousTime() {
return anomalousTime;
}
/**
* Sets the time of the most recent anomolous event.
*
* @param incomingAnomalousTime the time of the most recent anomolous event
*/
public void setAnomolousTime(final long incomingAnomalousTime) {
this.anomalousTime = incomingAnomalousTime;
}
/**
* Gets the eNodeB ID to which the IMSI is attached.
*
* @return theeNodeB ID to which the IMSI is attached
*/
public String getENodeBID() {
return eNodeBID;
}
/**
* Sets the eNodeB ID to which the IMSI is attached.
*
* @param incomingENodeBID the eNodeB ID to which the IMSI is attached
*/
public void setENodeBID(final String incomingENodeBID) {
this.eNodeBID = incomingENodeBID;
}
/**
* Checks if the eNodeB ID to which the IMSI is attached is set.
*
* @return true, if eNodeB ID to which the IMSI is attached is set
*/
public boolean checkSetENodeBID() {
return (eNodeBID != null);
}
/**
* Gets the time at which the IMSI was blacklisted.
*
* @return the time at which the IMSI was blacklisted
*/
public long getBlacklistedTime() {
return blackListedTime;
}
/**
* Sets the time at which the IMSI was blacklisted.
*
* @param incomingBlackListedTime the time at which the IMSI was blacklisted
*/
public void setBlacklistedTime(final long incomingBlackListedTime) {
this.blackListedTime = incomingBlackListedTime;
}
/**
* Gets the number of times this IMSI was blocked.
*
* @return the number of times this IMSI was blocked
*/
public long getBlockingCount() {
return blockingCount;
}
/**
* Sets the number of times this IMSI was blocked.
*
* @param blockingCount the number of times this IMSI was blocked
*/
public void setBlockingCount(final long blockingCount) {
this.blockingCount = blockingCount;
}
/**
* Increment the number of times this IMSI was blocked.
*
* @return the incremented number of times this IMSI was blocked
*/
public long incrementBlockingCount() {
return ++blockingCount;
}
/**
* Decrement the number of times this IMSI was blocked.
*
* @return the decremented number of times this IMSI was blocked
*/
public long decrementBlockingCount() {
return --blockingCount;
}
}
|
[
"liam.fallon@ericsson.com"
] |
liam.fallon@ericsson.com
|
967575b20f2c5ed3509416241f197f08a48893b5
|
dbfe40b6b87124fcb1a89906a2fe6518eda8665e
|
/eMayorRepresentationLayer/src/org/apache/commons/validator/ValidatorUtil.java
|
ea603f42be230dd9fe55fea3b4730657a5bda568
|
[] |
no_license
|
BackupTheBerlios/emayor
|
1fc04a0411908b6c189b5dfaa1e11f9d25c37884
|
daa5627cbf1461323fef5771c23bb16c66ad02aa
|
refs/heads/master
| 2016-09-06T19:26:16.110107
| 2006-05-04T07:27:38
| 2006-05-04T07:27:38
| 40,069,904
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,223
|
java
|
/*
* $Header: /home/xubuntu/berlios_backup/github/tmp-cvs/emayor/Repository/eMayorRepresentationLayer/src/org/apache/commons/validator/ValidatorUtil.java,v 1.1 2006/02/01 15:32:58 emayor Exp $
* $Revision: 1.1 $
* $Date: 2006/02/01 15:32:58 $
*
* ====================================================================
* Copyright 2001-2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.validator;
import org.apache.commons.collections.FastHashMap; // DEPRECATED
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* Basic utility methods.
*
* @deprecated This class has moved to the org.apache.commons.validator.util
* package.
*/
public class ValidatorUtil {
/**
* Delimiter to put around a regular expression following Perl 5 syntax.
* @deprecated Use "/" directly.
*/
public final static String REGEXP_DELIMITER = "/";
/**
* Logger.
* @deprecated Subclasses should use their own logging instance.
*/
protected static Log log = LogFactory.getLog(ValidatorUtil.class);
/**
* <p>Replace part of a <code>String</code> with another value.</p>
*
* @param value <code>String</code> to perform the replacement on.
* @param key The name of the constant.
* @param replaceValue The value of the constant.
*/
public static String replace(
String value,
String key,
String replaceValue) {
return org.apache.commons.validator.util.ValidatorUtils.replace(value, key, replaceValue);
}
/**
* Convenience method for getting a value from a bean property as a
* <code>String</code>.
*/
public static String getValueAsString(Object bean, String property) {
return org.apache.commons.validator.util.ValidatorUtils.getValueAsString(bean, property);
}
/**
* Makes a deep copy of a <code>FastHashMap</code> if the values
* are <code>String</code>, <code>Msg</code>, <code>Arg</code>,
* or <code>Var</code>. Otherwise it is a shallow copy.
*
* @param map <code>FastHashMap</code> to copy.
* @return FastHashMap A copy of the <code>FastHashMap</code> that was
* passed in.
*/
public static FastHashMap copyFastHashMap(FastHashMap map) {
return org.apache.commons.validator.util.ValidatorUtils.copyFastHashMap(map);
}
/**
* Adds a '/' on either side of the regular expression.
* @deprecated Use "/" directly.
*/
public static String getDelimitedRegExp(String regexp) {
return (REGEXP_DELIMITER + regexp + REGEXP_DELIMITER);
}
}
|
[
"emayor"
] |
emayor
|
9e9daf720e41e4b809261b52152ad7468c0e0f25
|
784f18fad4a05aa8135f8470792cb4c5f9e4d758
|
/src/main/java/com/xinbo/fundstransfer/report/streamalarm/classify/ActionStreamAlarmDisposed.java
|
48e59c31fe02e2d3976437b1d054fdd3a6da7dc8
|
[] |
no_license
|
daMaoCoding/project1
|
b73fdd1d1b43653923645df025c611617886a8a9
|
0592de7014a581cc2f64ccad8825f26b21dbcb6f
|
refs/heads/master
| 2020-08-03T15:13:51.622527
| 2019-09-30T07:33:03
| 2019-09-30T07:33:03
| 211,796,528
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,009
|
java
|
package com.xinbo.fundstransfer.report.streamalarm.classify;
import com.xinbo.fundstransfer.domain.pojo.AccountBaseInfo;
import com.xinbo.fundstransfer.report.streamalarm.ActionStreamAlarm;
import com.xinbo.fundstransfer.report.streamalarm.StreamAlarmAnnotation;
import com.xinbo.fundstransfer.report.streamalarm.StreamAlarmHandler;
import com.xinbo.fundstransfer.report.up.ReportCheck;
import com.xinbo.fundstransfer.report.up.ReportParamStreamAlarm;
import org.apache.commons.lang3.StringUtils;
import org.springframework.data.redis.core.StringRedisTemplate;
import java.util.Objects;
/**
* 流水告警处理:其他
*/
@StreamAlarmAnnotation(ActionStreamAlarm.PREFIX_ACTION_STREAM_ALARM
+ ActionStreamAlarm.ACTION_STREAM_ALARM_TYPE_Disposed)
public class ActionStreamAlarmDisposed extends ActionStreamAlarm {
protected boolean deal(StringRedisTemplate template, AccountBaseInfo base, StreamAlarmHandler handler,
ReportParamStreamAlarm param, ReportCheck check) {
if (Objects.isNull(template) || Objects.isNull(base) || Objects.isNull(handler) || Objects.isNull(param)
|| Objects.isNull(check))
return false;
return backCashPledge(template, base, handler, param, check)
|| duplicateStatement(template, base, handler, param, check);
}
/**
* 兼职退押金处理
*/
private boolean backCashPledge(StringRedisTemplate template, AccountBaseInfo base, StreamAlarmHandler handler,
ReportParamStreamAlarm param, ReportCheck check) {
String remark = StringUtils.trimToEmpty(param.getRemark());
if (StringUtils.isBlank(remark) || !remark.contains("退押金"))
return false;
return false;
}
/**
* 重复流水处理
*/
private boolean duplicateStatement(StringRedisTemplate template, AccountBaseInfo base, StreamAlarmHandler handler,
ReportParamStreamAlarm param, ReportCheck check) {
String remark = StringUtils.trimToEmpty(param.getRemark());
if (StringUtils.isBlank(remark) || !remark.contains("重复流水"))
return false;
return false;
}
}
|
[
"chowleo0606@gmail.com"
] |
chowleo0606@gmail.com
|
b264777fd30d74a3d1d3d7bcff5588ca1038d08c
|
23f4d78623458d375cf23b7017c142dd45c32481
|
/Core/orient-collab/src/com/orient/collab/business/projectCore/cmd/concrete/GetAllSubPlansCmd.java
|
55a3b257a41edab81be97a9487bb446c02e7ccdb
|
[] |
no_license
|
lcr863254361/weibao_qd
|
4e2165efec704b81e1c0f57b319e24be0a1e4a54
|
6d12c52235b409708ff920111db3e6e157a712a6
|
refs/heads/master
| 2023-04-03T00:37:18.947986
| 2021-04-11T15:12:45
| 2021-04-11T15:12:45
| 356,436,350
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,153
|
java
|
package com.orient.collab.business.projectCore.cmd.concrete;
import com.orient.businessmodel.Util.EnumInter;
import com.orient.businessmodel.service.impl.CustomerFilter;
import com.orient.collab.business.projectCore.cmd.Command;
import com.orient.collab.model.Plan;
import com.orient.collab.model.Project;
import com.orient.sqlengine.api.ISqlEngine;
import com.orient.sqlengine.api.ITypeMappingBmService;
import com.orient.utils.UtilFactory;
import java.util.ArrayList;
import java.util.List;
/**
* get all subplans of a project
*
* @author Seraph
* 2016-07-25 上午8:56
*/
public class GetAllSubPlansCmd implements Command<List<Plan>> {
public GetAllSubPlansCmd(Project project, ISqlEngine sqlEngine){
this.project = project;
this.sqlEngine = sqlEngine;
}
public GetAllSubPlansCmd(Plan rootPlan, ISqlEngine sqlEngine){
this.rootPlan = rootPlan;
this.sqlEngine = sqlEngine;
}
@Override
public List<Plan> execute() throws Exception {
ITypeMappingBmService bmService = sqlEngine.getTypeMappingBmService();
List<Plan> plans = UtilFactory.newArrayList();
if(project != null){
plans.addAll(bmService.get(Plan.class, new CustomerFilter("parProjectId", EnumInter.SqlOperation.Equal, project.getId())));
List<Plan> rootPlans = new ArrayList<>(plans);
for(Plan plan : rootPlans){
getSubPlans(plan, plans, bmService);
}
}else if(rootPlan != null){
getSubPlans(rootPlan, plans, bmService);
}
return plans;
}
private void getSubPlans(Plan parPlan, List<Plan> allPlans, ITypeMappingBmService bmService){
List<Plan> childPlans = bmService.get(Plan.class, new CustomerFilter("parPlanId", EnumInter.SqlOperation.Equal, parPlan.getId()));
if(childPlans.size() == 0){
return;
}
allPlans.addAll(childPlans);
for(Plan childPlan : childPlans){
getSubPlans(childPlan, allPlans, bmService);
}
}
private ISqlEngine sqlEngine;
private Project project;
private Plan rootPlan;
}
|
[
"lcr18015367626"
] |
lcr18015367626
|
0a1850a10c86bfeab78668ce5e0992fecec1abe7
|
8e3e49695a7f3a8222eb516a9b3dab3de0d59385
|
/app/src/main/java/customer/tcrj/com/djproject/adpater/xxkcAdapter.java
|
05e46b68afb0ad50ebfd16ebf045b035165d013f
|
[] |
no_license
|
atMen/DJproject
|
4b8dad17962256e0ccd2a734cb9b8021467f3031
|
015dade760342fc9e267559230569eed2dc95c27
|
refs/heads/master
| 2020-03-21T14:36:44.655529
| 2018-12-28T06:39:22
| 2018-12-28T06:39:22
| 138,665,515
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,401
|
java
|
package customer.tcrj.com.djproject.adpater;
import android.content.Context;
import android.graphics.Color;
import android.support.annotation.Nullable;
import android.util.Log;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import java.util.List;
import customer.tcrj.com.djproject.R;
import customer.tcrj.com.djproject.bean.kcList;
import customer.tcrj.com.djproject.bean.qyListInfo;
import customer.tcrj.com.djproject.net.ApiConstants;
/**
* desc: .
* author: Will .
* date: 2017/9/27 .
*/
public class xxkcAdapter extends BaseQuickAdapter<kcList.DataBean.ContentBean, BaseViewHolder>{
private Context mContext;
public xxkcAdapter(@Nullable List<kcList.DataBean.ContentBean> response, Context context) {
super(R.layout.item_xxkc, response);
this.mContext = context;
}
@Override
protected void convert(final BaseViewHolder helper, kcList.DataBean.ContentBean item) {
helper.setText(R.id.text,item.getTitle());
String optime = item.getOptime();
String substring = optime.substring(0, 10);
helper.setText(R.id.time,substring);
ImageView icon = helper.getView(R.id.content);
TextView progress = helper.getView(R.id.progress);
Glide.with(mContext).load(ApiConstants.ImageURLROOT+item.getImgPath()).into(icon);
Log.e("TAG","progress:"+item.getProgress());
String progress1 = item.getProgress();
// if(progress1.equals("0")){
// progress.setText("未学");
// progress.setBackgroundColor(Color.parseColor("#ff0000"));
// }else
if (progress1.equals("1")){
progress.setText("已学完");
progress.setBackgroundColor(Color.parseColor("#86B659"));
}else{
progress.setText("待学完");
progress.setBackgroundColor(Color.parseColor("#FFCE44"));
}
}
private OnItemClickListener onItemClickListener;
public interface OnItemClickListener { //定义接口,实现Recyclerview点击事件
void OnItemClick(int position);
}
public void setOnItemRlClickListener(OnItemClickListener onItemClickListener) { //实现点击
this.onItemClickListener = onItemClickListener;
}
}
|
[
"377044412@qq.com"
] |
377044412@qq.com
|
31c06de74f853c09ec5759b6eae6eed32401d6b2
|
6b60f469e7477fd2e9a21c9e393ccd4da37b685f
|
/jOOQ-examples/jOOQ-testcontainers-flyway-example/src/main/java/org/jooq/example/testcontainersflyway/db/tables/records/PaymentP2007_04Record.java
|
43576fd90bece9c3ec7ab1901a0af05251424d17
|
[
"Apache-2.0"
] |
permissive
|
JohnMaybe/jOOQ
|
01df08530cf6cba990ef5d0572bfe453a2160c9f
|
2178a3cb8fd16840534172315d3e14140e9fb919
|
refs/heads/master
| 2023-08-01T14:39:09.592734
| 2023-07-10T10:00:59
| 2023-07-10T10:00:59
| 48,222,525
| 0
| 0
| null | 2015-12-18T08:05:10
| 2015-12-18T08:05:09
| null |
UTF-8
|
Java
| false
| true
| 6,650
|
java
|
/*
* This file is generated by jOOQ.
*/
package org.jooq.example.testcontainersflyway.db.tables.records;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import org.jooq.Field;
import org.jooq.Record6;
import org.jooq.Row6;
import org.jooq.example.testcontainersflyway.db.tables.PaymentP2007_04;
import org.jooq.impl.TableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class PaymentP2007_04Record extends TableRecordImpl<PaymentP2007_04Record> implements Record6<Long, Long, Long, Long, BigDecimal, LocalDateTime> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>public.payment_p2007_04.payment_id</code>.
*/
public void setPaymentId(Long value) {
set(0, value);
}
/**
* Getter for <code>public.payment_p2007_04.payment_id</code>.
*/
public Long getPaymentId() {
return (Long) get(0);
}
/**
* Setter for <code>public.payment_p2007_04.customer_id</code>.
*/
public void setCustomerId(Long value) {
set(1, value);
}
/**
* Getter for <code>public.payment_p2007_04.customer_id</code>.
*/
public Long getCustomerId() {
return (Long) get(1);
}
/**
* Setter for <code>public.payment_p2007_04.staff_id</code>.
*/
public void setStaffId(Long value) {
set(2, value);
}
/**
* Getter for <code>public.payment_p2007_04.staff_id</code>.
*/
public Long getStaffId() {
return (Long) get(2);
}
/**
* Setter for <code>public.payment_p2007_04.rental_id</code>.
*/
public void setRentalId(Long value) {
set(3, value);
}
/**
* Getter for <code>public.payment_p2007_04.rental_id</code>.
*/
public Long getRentalId() {
return (Long) get(3);
}
/**
* Setter for <code>public.payment_p2007_04.amount</code>.
*/
public void setAmount(BigDecimal value) {
set(4, value);
}
/**
* Getter for <code>public.payment_p2007_04.amount</code>.
*/
public BigDecimal getAmount() {
return (BigDecimal) get(4);
}
/**
* Setter for <code>public.payment_p2007_04.payment_date</code>.
*/
public void setPaymentDate(LocalDateTime value) {
set(5, value);
}
/**
* Getter for <code>public.payment_p2007_04.payment_date</code>.
*/
public LocalDateTime getPaymentDate() {
return (LocalDateTime) get(5);
}
// -------------------------------------------------------------------------
// Record6 type implementation
// -------------------------------------------------------------------------
@Override
public Row6<Long, Long, Long, Long, BigDecimal, LocalDateTime> fieldsRow() {
return (Row6) super.fieldsRow();
}
@Override
public Row6<Long, Long, Long, Long, BigDecimal, LocalDateTime> valuesRow() {
return (Row6) super.valuesRow();
}
@Override
public Field<Long> field1() {
return PaymentP2007_04.PAYMENT_P2007_04.PAYMENT_ID;
}
@Override
public Field<Long> field2() {
return PaymentP2007_04.PAYMENT_P2007_04.CUSTOMER_ID;
}
@Override
public Field<Long> field3() {
return PaymentP2007_04.PAYMENT_P2007_04.STAFF_ID;
}
@Override
public Field<Long> field4() {
return PaymentP2007_04.PAYMENT_P2007_04.RENTAL_ID;
}
@Override
public Field<BigDecimal> field5() {
return PaymentP2007_04.PAYMENT_P2007_04.AMOUNT;
}
@Override
public Field<LocalDateTime> field6() {
return PaymentP2007_04.PAYMENT_P2007_04.PAYMENT_DATE;
}
@Override
public Long component1() {
return getPaymentId();
}
@Override
public Long component2() {
return getCustomerId();
}
@Override
public Long component3() {
return getStaffId();
}
@Override
public Long component4() {
return getRentalId();
}
@Override
public BigDecimal component5() {
return getAmount();
}
@Override
public LocalDateTime component6() {
return getPaymentDate();
}
@Override
public Long value1() {
return getPaymentId();
}
@Override
public Long value2() {
return getCustomerId();
}
@Override
public Long value3() {
return getStaffId();
}
@Override
public Long value4() {
return getRentalId();
}
@Override
public BigDecimal value5() {
return getAmount();
}
@Override
public LocalDateTime value6() {
return getPaymentDate();
}
@Override
public PaymentP2007_04Record value1(Long value) {
setPaymentId(value);
return this;
}
@Override
public PaymentP2007_04Record value2(Long value) {
setCustomerId(value);
return this;
}
@Override
public PaymentP2007_04Record value3(Long value) {
setStaffId(value);
return this;
}
@Override
public PaymentP2007_04Record value4(Long value) {
setRentalId(value);
return this;
}
@Override
public PaymentP2007_04Record value5(BigDecimal value) {
setAmount(value);
return this;
}
@Override
public PaymentP2007_04Record value6(LocalDateTime value) {
setPaymentDate(value);
return this;
}
@Override
public PaymentP2007_04Record values(Long value1, Long value2, Long value3, Long value4, BigDecimal value5, LocalDateTime value6) {
value1(value1);
value2(value2);
value3(value3);
value4(value4);
value5(value5);
value6(value6);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached PaymentP2007_04Record
*/
public PaymentP2007_04Record() {
super(PaymentP2007_04.PAYMENT_P2007_04);
}
/**
* Create a detached, initialised PaymentP2007_04Record
*/
public PaymentP2007_04Record(Long paymentId, Long customerId, Long staffId, Long rentalId, BigDecimal amount, LocalDateTime paymentDate) {
super(PaymentP2007_04.PAYMENT_P2007_04);
setPaymentId(paymentId);
setCustomerId(customerId);
setStaffId(staffId);
setRentalId(rentalId);
setAmount(amount);
setPaymentDate(paymentDate);
resetChangedOnNotNull();
}
}
|
[
"lukas.eder@gmail.com"
] |
lukas.eder@gmail.com
|
82296b7bd488d9c3b64904fc0bd49e989c9d0bee
|
4694d36492acad39b6464d153e4d3d3ad47c5c57
|
/adcom/adbnsptnr.server/src/main/java/org/adorsys/adbnsptnr/jpa/BpPtnrAccntBlnce.java
|
9e14abf3e34ae119ac3917aa675e34f7428efaf0
|
[
"Apache-2.0"
] |
permissive
|
francis-pouatcha/adcom
|
36ac7ff33eabb351be78b5555c61498b7bc3de6f
|
0e3ea1ce6c2045d31c7003fc87dbda533c09c767
|
refs/heads/master
| 2021-03-27T20:31:45.315016
| 2015-06-29T09:32:06
| 2015-06-29T09:32:06
| 28,821,594
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,653
|
java
|
package org.adorsys.adbnsptnr.jpa;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;
import org.adorsys.adcore.jpa.AbstractMvmtData;
import org.adorsys.javaext.description.Description;
@Entity
@Description("BpPtnrAccntBlnce_description")
public class BpPtnrAccntBlnce extends AbstractMvmtData {
private static final long serialVersionUID = 8463167904715344200L;
@Column
@Description("BpPtnrAccntBlnce_ptnrNbr_description")
@NotNull
private String ptnrNbr;
@Column
@Description("BpPtnrAccntBlnce_side_description")
@Enumerated(EnumType.ORDINAL)
private BpAccBalanceSide side;
@Column
@Description("BpPtnrAccntBlnce_accBalance_description")
private BigDecimal accBalance;
@Temporal(TemporalType.TIMESTAMP)
@Description("BpPtnrAccntBlnce_balanceDt_description")
@NotNull
private Date balanceDt;
public String getPtnrNbr() {
return this.ptnrNbr;
}
public void setPtnrNbr(final String ptnrNbr) {
this.ptnrNbr = ptnrNbr;
}
public BpAccBalanceSide getSide() {
return this.side;
}
public void setSide(final BpAccBalanceSide side) {
this.side = side;
}
public BigDecimal getAccBalance() {
return this.accBalance;
}
public void setAccBalance(final BigDecimal accBalance) {
this.accBalance = accBalance;
}
public Date getBalanceDt() {
return this.balanceDt;
}
public void setBalanceDt(final Date balanceDt) {
this.balanceDt = balanceDt;
}
}
|
[
"francis.pouatcha@adorsys.com"
] |
francis.pouatcha@adorsys.com
|
c43c48963a30b1206ac39b9e9d4765389e1b5155
|
5a57d6b485659ed310a86ca68284114f62fcedcc
|
/oraclework/src/oracle/Course.java
|
d37a6b7cee49611794689f586055bb69bca9e3cf
|
[] |
no_license
|
xiaoli130/sshproject
|
fbd00eeb058b169d02f5ce1e501a0f90eb9e8d5d
|
9a26f458a1f1034eab3ae69c0289e61339d662ef
|
refs/heads/master
| 2020-07-02T17:57:48.509280
| 2019-08-12T09:03:55
| 2019-08-12T09:03:55
| 201,613,604
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 299
|
java
|
package oracle;
public class Course {
private String cno;
private String cname;
public String getCno() {
return cno;
}
public void setCno(String cno) {
this.cno = cno;
}
public String getCname() {
return cname;
}
public void setCname(String cname) {
this.cname = cname;
}
}
|
[
"goodMorning_glb@atguigu.com"
] |
goodMorning_glb@atguigu.com
|
c6300c327591999a5fc6a5bce4117653211b259b
|
22e6bf275fdf02a7ff2046e7c37282dde85bb43e
|
/core/src/main/java/juzu/impl/router/MalformedRouteException.java
|
36149cc2c7c0d12592336c125cde75549613601a
|
[] |
no_license
|
ybz216/juzu
|
05206904eb7099abaa5a477224e4dcb4de9ed4c2
|
37612ff8b031ec55523fa4654546ab4c2536fc2c
|
refs/heads/master
| 2022-05-11T10:50:40.699471
| 2020-01-14T14:18:50
| 2020-01-29T18:27:40
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,111
|
java
|
/*
* Copyright 2013 eXo Platform SAS
*
* 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 juzu.impl.router;
/**
* A malformed route.
*
* @author <a href="mailto:julien.viet@exoplatform.com">Julien Viet</a>
* @version $Revision$
*/
public class MalformedRouteException extends RouterConfigException {
public MalformedRouteException() {
}
public MalformedRouteException(String s) {
super(s);
}
public MalformedRouteException(String s, Throwable throwable) {
super(s, throwable);
}
public MalformedRouteException(Throwable throwable) {
super(throwable);
}
}
|
[
"julien@julienviet.com"
] |
julien@julienviet.com
|
d496508d3793ea30c3b05b5f9bd30ebe8a4190a0
|
a08f0c2e3e492c364f035d3b3b5fc4c29611e7c9
|
/testing-application-from-scatch/spring-testing/src/test/java/com/controller/WebMockTest.java
|
ad565386bdde387c9f5a279c9af9875cfd4fa165
|
[] |
no_license
|
chamanbharti/java-works
|
9832eb8ba6a81c88250fa81a71fa9db728993cd3
|
aec6b503bde515dc174b23404c936635a7f59add
|
refs/heads/master
| 2023-04-26T16:49:48.915313
| 2021-05-31T12:44:50
| 2021-05-31T12:44:50
| 328,213,982
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,428
|
java
|
package com.controller;
// https://spring.io/guides/gs/testing-web/
// https://docs.spring.io/spring-framework/docs/current/reference/html/testing.html#testing-introduction
// https://www.baeldung.com/spring-boot-testing
import static org.hamcrest.CoreMatchers.containsString;
import static org.mockito.Mockito.when;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.test.web.servlet.MockMvc;
import com.service.GreetingService;
@WebMvcTest(GreetingController.class)
public class WebMockTest {
@Autowired
private MockMvc mockMvc;
@MockBean
private GreetingService service;
@Test
public void greetingShouldReturnMessageFromService() throws Exception {
when(service.greet()).thenReturn("Hello, Mock");
this.mockMvc.perform(get("/greeting")).andDo(print()).andExpect(status().isOk())
.andExpect(content().string(containsString("Hello, Mock")));
}
}
|
[
"chaman.bharti84@gmail.com"
] |
chaman.bharti84@gmail.com
|
a00cde523f33972b5313c61c5520ace8a14c146a
|
233994b4ad1aff4fc1c1734bffd2bf628b420a56
|
/src/net/sourceforge/plantuml/posimo/Clusterable.java
|
cba8d05e97ef766722d54b74a1ec9b4acd0967a7
|
[] |
no_license
|
dashersw/plantuml
|
76e3ac9a060ed63176636e75fb90b52ba77b3ee7
|
131cb71d6cd37de288463c6231228717f8f9bf15
|
refs/heads/master
| 2020-03-26T17:14:01.069156
| 2012-07-11T13:30:04
| 2012-07-11T13:30:04
| 2,986,490
| 6
| 3
| null | 2012-07-11T13:30:05
| 2011-12-15T09:18:48
|
Java
|
UTF-8
|
Java
| false
| false
| 1,415
|
java
|
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009, Arnaud Roques
*
* Project Info: http://plantuml.sourceforge.net
*
* This file is part of PlantUML.
*
* PlantUML is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PlantUML distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
* License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
* USA.
*
* [Java is a trademark or registered trademark of Sun Microsystems, Inc.
* in the United States and other countries.]
*
* Original Author: Arnaud Roques
*
* Revision $Revision: 4236 $
*
*/
package net.sourceforge.plantuml.posimo;
public interface Clusterable extends Positionable {
public Cluster getParent();
}
|
[
"arnaud_roques@28b6c6c1-be0e-40f3-8fed-77912e9d39c1"
] |
arnaud_roques@28b6c6c1-be0e-40f3-8fed-77912e9d39c1
|
bcd50c45196987c4fb6e1bab93ceafeaa6ea11d8
|
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
|
/java/hazelcast/2015/8/CacheRemoveInvalidationListenerMessageTask.java
|
fd7f48679d154d80a4f07552d9780031b81d656b
|
[] |
no_license
|
rosoareslv/SED99
|
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
|
a062c118f12b93172e31e8ca115ce3f871b64461
|
refs/heads/main
| 2023-02-22T21:59:02.703005
| 2021-01-28T19:40:51
| 2021-01-28T19:40:51
| 306,497,459
| 1
| 1
| null | 2020-11-24T20:56:18
| 2020-10-23T01:18:07
| null |
UTF-8
|
Java
| false
| false
| 2,619
|
java
|
/*
* Copyright (c) 2008-2015, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.hazelcast.client.impl.protocol.task.cache;
import com.hazelcast.cache.impl.CacheService;
import com.hazelcast.client.impl.protocol.ClientMessage;
import com.hazelcast.client.impl.protocol.codec.CacheRemoveInvalidationListenerCodec;
import com.hazelcast.client.impl.protocol.task.AbstractCallableMessageTask;
import com.hazelcast.instance.Node;
import com.hazelcast.nio.Connection;
import java.security.Permission;
/**
* Client request which unregisters the invalidation listener on behalf of the client.
*
* @see com.hazelcast.cache.impl.CacheService#deregisterListener(String, String)
*/
public class CacheRemoveInvalidationListenerMessageTask
extends AbstractCallableMessageTask<CacheRemoveInvalidationListenerCodec.RequestParameters> {
public CacheRemoveInvalidationListenerMessageTask(ClientMessage clientMessage, Node node, Connection connection) {
super(clientMessage, node, connection);
}
@Override
protected Object call() {
CacheService service = getService(CacheService.SERVICE_NAME);
return service.deregisterListener(parameters.name, parameters.registrationId);
}
@Override
protected CacheRemoveInvalidationListenerCodec.RequestParameters decodeClientMessage(ClientMessage clientMessage) {
return CacheRemoveInvalidationListenerCodec.decodeRequest(clientMessage);
}
@Override
protected ClientMessage encodeResponse(Object response) {
return CacheRemoveInvalidationListenerCodec.encodeResponse((Boolean) response);
}
@Override
public String getServiceName() {
return CacheService.SERVICE_NAME;
}
@Override
public String getDistributedObjectName() {
return parameters.name;
}
@Override
public Permission getRequiredPermission() {
return null;
}
@Override
public String getMethodName() {
return null;
}
@Override
public Object[] getParameters() {
return null;
}
}
|
[
"rodrigosoaresilva@gmail.com"
] |
rodrigosoaresilva@gmail.com
|
bf52c7d686adbab52671838ea8c7149045f446f3
|
06d0ad5a2b66442fc5caba9d2212c4c9be83470b
|
/lib/src/main/java/com/sd/lib/eos/rpc/utils/Utils.java
|
d5ab1709c2305a0a603d62755f929c22ba6d739a
|
[] |
no_license
|
zj565061763/eosrpc
|
22bae0bbcdb54d1325dd52d22fd82bdc5cec07ad
|
0685d507d1c71597c238cf0cd629033ab3437826
|
refs/heads/master
| 2021-07-19T18:55:12.609802
| 2019-01-31T06:55:41
| 2019-01-31T06:55:41
| 153,609,138
| 0
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 553
|
java
|
package com.sd.lib.eos.rpc.utils;
public class Utils
{
public static boolean isEmpty(String content)
{
return content == null || content.length() == 0;
}
public static String checkEmpty(String content, String exception)
{
if (isEmpty(content))
throw new NullPointerException(exception);
return content;
}
public static <T> T checkNotNull(T object, String exception)
{
if (object == null)
throw new NullPointerException(exception);
return object;
}
}
|
[
"565061763@qq.com"
] |
565061763@qq.com
|
22c74d9153cb0c494618c8775fa907b4434d4584
|
1b48aab9eaa4d402130e0f79dde61d539d786358
|
/project/src/main/java/io/swagger/model/ChannelRef.java
|
8989ba6a4e82ef9469b7ec0b10a7e90676da11ba
|
[] |
no_license
|
galuropek/pvt_jd2
|
23281fbf7b28707004401033bc7c6df147436a45
|
93e86896f9ddc5afb12153efd49403556115097d
|
refs/heads/master
| 2020-04-07T23:55:23.171537
| 2019-02-11T20:09:42
| 2019-02-11T20:09:42
| 158,830,003
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,053
|
java
|
package io.swagger.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import javax.validation.constraints.*;
/**
* Channel(ChannelRef)The channel where the recommendation is used. May be online web, mobile app, social ,etc.
*/
@ApiModel(description = "Channel(ChannelRef)The channel where the recommendation is used. May be online web, mobile app, social ,etc.")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2018-12-22T18:33:01.088+03:00")
public class ChannelRef {
@JsonProperty("href")
private String href = null;
@JsonProperty("id")
private String id = null;
@JsonProperty("name")
private String name = null;
public ChannelRef href(String href) {
this.href = href;
return this;
}
/**
* Hypertext Reference of the channel.
* @return href
**/
@ApiModelProperty(value = "Hypertext Reference of the channel.")
public String getHref() {
return href;
}
public void setHref(String href) {
this.href = href;
}
public ChannelRef id(String id) {
this.id = id;
return this;
}
/**
* Unique identifier of channel
* @return id
**/
@ApiModelProperty(value = "Unique identifier of channel")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public ChannelRef name(String name) {
this.name = name;
return this;
}
/**
* Name of the channel.
* @return name
**/
@ApiModelProperty(value = "Name of the channel.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ChannelRef channelRef = (ChannelRef) o;
return Objects.equals(this.href, channelRef.href) &&
Objects.equals(this.id, channelRef.id) &&
Objects.equals(this.name, channelRef.name);
}
@Override
public int hashCode() {
return Objects.hash(href, id, name);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ChannelRef {\n");
sb.append(" href: ").append(toIndentedString(href)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).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 ");
}
}
|
[
"galuropek@gmail.com"
] |
galuropek@gmail.com
|
35ae8202e66fdae228e499ef883f62c9d4e50e7d
|
8bdda30bbcea1990fb56c2a083ca2a5693ca9b13
|
/sources/com/google/android/gms/drive/metadata/zzd.java
|
6feb222c424fb51c4e67d3369480d868c35ed544
|
[] |
no_license
|
yusato0378/aa
|
b14e247470efaf28efcc847433eff4aeb7790be6
|
ffc764c33c6f423d8dd6b1837446583d96a67e05
|
refs/heads/master
| 2021-01-10T01:10:49.084058
| 2016-01-09T12:02:01
| 2016-01-09T12:02:01
| 49,321,731
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 402
|
java
|
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
package com.google.android.gms.drive.metadata;
// Referenced classes of package com.google.android.gms.drive.metadata:
// zza
public abstract class zzd extends zza
{
protected zzd(String s, int i)
{
super(s, i);
}
}
|
[
"yu0378@gmail.com"
] |
yu0378@gmail.com
|
d0ba59558cb13e900eff24af4df2d8a514a6b98c
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/large-multiproject/project86/src/test/java/org/gradle/test/performance86_4/Test86_357.java
|
caeec43f325869e59bee1244e78e6e33e37dcc11
|
[] |
no_license
|
gradle/performance-comparisons
|
b0d38db37c326e0ce271abebdb3c91769b860799
|
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
|
refs/heads/master
| 2023-08-14T19:24:39.164276
| 2022-11-24T05:18:33
| 2022-11-24T05:18:33
| 80,121,268
| 17
| 15
| null | 2022-09-30T08:04:35
| 2017-01-26T14:25:33
| null |
UTF-8
|
Java
| false
| false
| 292
|
java
|
package org.gradle.test.performance86_4;
import static org.junit.Assert.*;
public class Test86_357 {
private final Production86_357 production = new Production86_357("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
7209af5e9b89d5873238d9ffebf4fa97ac2ddfc7
|
67f314a632932b5fc1b0ffe89ff4c5fbef655363
|
/src/com/hangout/api/DateDeserializer.java
|
c5c226d6686b3b69df35109ed3bf9c3975feef27
|
[] |
no_license
|
snooplsm/hangout
|
dd1fa225f58677bfc1f7b030234573b72bacdad2
|
5d5f330aa9f2dc901c11e838fd34d756ba5d192a
|
refs/heads/master
| 2021-01-06T20:37:53.708587
| 2011-04-06T13:51:41
| 2011-04-06T13:51:41
| 1,525,695
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 559
|
java
|
package com.hangout.api;
import java.io.IOException;
import java.util.Date;
import org.codehaus.jackson.JsonParser;
import org.codehaus.jackson.JsonProcessingException;
import org.codehaus.jackson.map.DeserializationContext;
import org.codehaus.jackson.map.JsonDeserializer;
public class DateDeserializer extends JsonDeserializer<Date> {
@Override
public Date deserialize(JsonParser jp, DeserializationContext ctxt)
throws IOException, JsonProcessingException {
// TODO Auto-generated method stub
String date = jp.getText();
return null;
}
}
|
[
"="
] |
=
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.