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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
583c6894f5bc70b167e62d676c6647e1c6f4c3f8 | 66c766517e47b855af27641ed1334e1e3576922b | /car-server/web/CarEye/src/com/careye/sysset/domain/FeiDiType.java | ded754623f1fb73bf424d2d1c20836794fd610fb | [] | no_license | vincenlee/Car-eye-server | 21a6c2eda0fd3f096c842fdae6eea4c5af84d22e | 47f45a0596fddf65cda6fb7cf657aa716244e5b5 | refs/heads/master | 2022-05-04T22:09:50.411646 | 2018-09-28T08:03:03 | 2018-09-28T08:03:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,883 | java | package com.careye.sysset.domain;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
*
* @项目名称:IMS
* @类名称:NoticeType
* @类描述:公告类型表
* @创建人:huangqin
* @创建时间:2014-12-19 上午09:19:56
* @修改人:huangqin
* @修改时间:2014-12-19 上午09:19:56
* @修改备注:
* @version 1.0
*/
public class FeiDiType implements Serializable{
/** 主键 **/
private Integer id;
/** 公告类型名称 **/
private String typename;
/** 用户id **/
private Integer userid;
/** 创建时间**/
private String createtime;
/** 开始时间 **/
private String stime;
/** 结束时间**/
private String etime;
/** 用户名称 **/
private String username;
/** 备注 **/
private String remark;
public int getTypeid() {
return typeid;
}
public void setTypeid(int typeid) {
this.typeid = typeid;
}
private int typeid;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getTypename() {
return typename;
}
public void setTypename(String typename) {
this.typename = typename;
}
public Integer getUserid() {
return userid;
}
public void setUserid(Integer userid) {
this.userid = userid;
}
public String getCreatetime() {
return createtime;
}
public void setCreatetime(String createtime) {
this.createtime = createtime;
}
public String getStime() {
return stime;
}
public void setStime(String stime) {
this.stime = stime;
}
public String getEtime() {
return etime;
}
public void setEtime(String etime) {
this.etime = etime;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
} | [
"dengtieshan@shenghong-technology.com"
] | dengtieshan@shenghong-technology.com |
c666d2b50c0a69fbddce864c1d5ac33aea7ca1d5 | 70333d6b0dfe493b62b1769142f58a9d83bac591 | /src/com/cn/law/bean/.svn/text-base/LawDownBean.java.svn-base | 9e040d74fb1ee84d0ceab95b411f93cd361d7175 | [] | no_license | xnn1987/Law | c4268eb261ce416bcf8bfe7803802a14b3a805f4 | 044650f6a577f05346b2193706834843742dbd65 | refs/heads/master | 2021-01-19T04:47:03.572201 | 2017-04-06T06:37:16 | 2017-04-06T06:37:16 | 87,394,613 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,124 | package com.cn.law.bean;
import java.io.Serializable;
public class LawDownBean implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
private int lid;
private String ltype;
private String fname;
private String fsize;
private String time ;
public LawDownBean (){
}
public LawDownBean(int lid, String ltype, String fname, String fsize,
String time) {
super();
this.lid = lid;
this.ltype = ltype;
this.fname = fname;
this.fsize = fsize;
this.time = time;
}
public int getLid() {
return lid;
}
public void setLid(int lid) {
this.lid = lid;
}
public String getLtype() {
return ltype;
}
public void setLtype(String ltype) {
this.ltype = ltype;
}
public String getFname() {
return fname;
}
public void setFname(String fname) {
this.fname = fname;
}
public String getFsize() {
return fsize;
}
public void setFsize(String fsize) {
this.fsize = fsize;
}
public String getTime() {
return time;
}
public void setTime(String time) {
this.time = time;
}
public static long getSerialversionuid() {
return serialVersionUID;
}
}
| [
"xnn1987@163.com"
] | xnn1987@163.com | |
f82a7c9f0f473bf11ae075b5626c909c2d47e360 | 1d9b1b22024761d99d748283a596f596e03c10f9 | /SVG-Sample/app/src/main/java/com/github/megatron/svg/sample/extend/SVGButtonSizeSampleActivity.java | 4fd71e69e781a7e770ac67954ccdcdcd400b3798 | [
"Apache-2.0"
] | permissive | wwai1994/SVG-Android | 8a3c5d44ec872fb0cf815564bf20fea2b8568cde | 9a1fa3b0ad539ed480bb61ef41602aaffa47f1d1 | refs/heads/master | 2020-06-11T10:07:43.990072 | 2016-12-06T03:13:05 | 2016-12-06T03:13:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,868 | java | package com.github.megatron.svg.sample.extend;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import com.android.svg.support.extend.SVGButton;
import com.github.megatron.svg.sample.R;
import com.github.megatron.svg.sample.utils.DimenUtils;
public class SVGButtonSizeSampleActivity extends AppCompatActivity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_extend_button_size_sample);
setTitle(getIntent().getStringExtra("title"));
// set in code
SVGButton view1 = (SVGButton) findViewById(R.id.extend_button1);
view1.setLeftSvgSize(DimenUtils.dip2px(this, 24), DimenUtils.dip2px(this, 24));
view1.setRightSvgSize(DimenUtils.dip2px(this, 24), DimenUtils.dip2px(this, 24));
view1.setTopSvgSize(DimenUtils.dip2px(this, 48), DimenUtils.dip2px(this, 48));
view1.setBottomSvgSize(DimenUtils.dip2px(this, 48), DimenUtils.dip2px(this, 48));
SVGButton view2 = (SVGButton) findViewById(R.id.extend_button2);
view2.setLeftSvgSize(DimenUtils.dip2px(this, 24), DimenUtils.dip2px(this, 24));
view2.setRightSvgSize(DimenUtils.dip2px(this, 24), DimenUtils.dip2px(this, 24));
view2.setTopSvgSize(DimenUtils.dip2px(this, 48), DimenUtils.dip2px(this, 48));
view2.setBottomSvgSize(DimenUtils.dip2px(this, 48), DimenUtils.dip2px(this, 48));
view2.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_android_red,
R.drawable.ic_android_red, R.drawable.ic_android_red, R.drawable.ic_android_red);
// influence all compound drawables
// view.setSvgSize(DimenUtils.dip2px(this, 96), DimenUtils.dip2px(this, 96));
}
}
| [
"jgy08954@ly.com"
] | jgy08954@ly.com |
270caa62409d473cfe282fd38072fa5a77b73a90 | 3cd63aba77b753d85414b29279a77c0bc251cea9 | /main/plugins/org.talend.designer.components.libs/libs_src/talend-mscrm/src/main/java/com/microsoft/schemas/_2003/_10/serialization/arrays/impl/ArrayOfintImpl.java | f1c8645cfd135d2fcf311178b679d94c3cbedbb6 | [
"Apache-2.0"
] | permissive | 195858/tdi-studio-se | 249bcebb9700c6bbc8905ccef73032942827390d | 4fdb5cfb3aeee621eacfaef17882d92d65db42c3 | refs/heads/master | 2021-04-06T08:56:14.666143 | 2018-10-01T14:11:28 | 2018-10-01T14:11:28 | 124,540,962 | 1 | 0 | null | 2018-10-01T14:11:29 | 2018-03-09T12:59:25 | Java | UTF-8 | Java | false | false | 6,870 | java | /*
* XML Type: ArrayOfint
* Namespace: http://schemas.microsoft.com/2003/10/Serialization/Arrays
* Java type: com.microsoft.schemas._2003._10.serialization.arrays.ArrayOfint
*
* Automatically generated - do not modify.
*/
package com.microsoft.schemas._2003._10.serialization.arrays.impl;
/**
* An XML ArrayOfint(@http://schemas.microsoft.com/2003/10/Serialization/Arrays).
*
* This is a complex type.
*/
public class ArrayOfintImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas._2003._10.serialization.arrays.ArrayOfint
{
private static final long serialVersionUID = 1L;
public ArrayOfintImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName INT$0 =
new javax.xml.namespace.QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays", "int");
/**
* Gets array of all "int" elements
*/
public int[] getIntArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(INT$0, targetList);
int[] result = new int[targetList.size()];
for (int i = 0, len = targetList.size() ; i < len ; i++)
result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getIntValue();
return result;
}
}
/**
* Gets ith "int" element
*/
public int getIntArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INT$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target.getIntValue();
}
}
/**
* Gets (as xml) array of all "int" elements
*/
public org.apache.xmlbeans.XmlInt[] xgetIntArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(INT$0, targetList);
org.apache.xmlbeans.XmlInt[] result = new org.apache.xmlbeans.XmlInt[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets (as xml) ith "int" element
*/
public org.apache.xmlbeans.XmlInt xgetIntArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlInt target = null;
target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(INT$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "int" element
*/
public int sizeOfIntArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(INT$0);
}
}
/**
* Sets array of all "int" element
*/
public void setIntArray(int[] xintArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(xintArray, INT$0);
}
}
/**
* Sets ith "int" element
*/
public void setIntArray(int i, int xint)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INT$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.setIntValue(xint);
}
}
/**
* Sets (as xml) array of all "int" element
*/
public void xsetIntArray(org.apache.xmlbeans.XmlInt[]xintArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(xintArray, INT$0);
}
}
/**
* Sets (as xml) ith "int" element
*/
public void xsetIntArray(int i, org.apache.xmlbeans.XmlInt xint)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlInt target = null;
target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(INT$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(xint);
}
}
/**
* Inserts the value as the ith "int" element
*/
public void insertInt(int i, int xint)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target =
(org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(INT$0, i);
target.setIntValue(xint);
}
}
/**
* Appends the value as the last "int" element
*/
public void addInt(int xint)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(INT$0);
target.setIntValue(xint);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "int" element
*/
public org.apache.xmlbeans.XmlInt insertNewInt(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlInt target = null;
target = (org.apache.xmlbeans.XmlInt)get_store().insert_element_user(INT$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "int" element
*/
public org.apache.xmlbeans.XmlInt addNewInt()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlInt target = null;
target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(INT$0);
return target;
}
}
/**
* Removes the ith "int" element
*/
public void removeInt(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(INT$0, i);
}
}
}
| [
"dmytro.chmyga@synapse.com"
] | dmytro.chmyga@synapse.com |
d57f69db6b37c11fe825e927bf25da24670eb5a0 | 37515a0a63e3e6e62ba5104567201d2f14360f13 | /edu.fudan.langlab.uidl.domain/src/main/java/edu/fudan/langlab/uidl/domain/code/client/web/UICodeTypeContentProviderService.java | 72461d3a4e2970972d85d2e669e74883de0e5357 | [] | no_license | rockguo2015/newmed | 9d95e161ba7cb9c59b24c4fb0bec2eb328214831 | b4818912e5bbc6e0147d47e8ba475c0ac5c80c2e | refs/heads/master | 2021-01-10T05:16:25.491087 | 2015-05-29T10:03:23 | 2015-05-29T10:03:23 | 36,384,873 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 511 | java | package edu.fudan.langlab.uidl.domain.code.client.web;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import edu.fudan.langlab.uidl.domain.code.shared.web.UICodeType;
import java.util.Collection;
@RemoteServiceRelativePath("service/edu.fudan.langlab.uidl.domain.code.client.web.UICodeTypeContentProviderService")
public interface UICodeTypeContentProviderService extends RemoteService {
public abstract Collection<UICodeType> load();
}
| [
"rock.guo@me.com"
] | rock.guo@me.com |
1a00dc3d2d35868b41fb48314bec986e54055874 | 2ba35ab339d153806fdb70cecdbfcbd21a771ce8 | /tmlh-security-core/src/main/java/xyz/tmlh/security/core/validate/code/sms/SmsValidateCodeGenerator.java | a4387e1070547774a873f0056ae4c4ad5bdd9d7f | [] | no_license | liuluojie/spring-monkey | f0ecbdb2dfbca536f67c55d05fcc43c66ac8f773 | d867cc505d462e7d216a41c038ed875cce2cc9ed | refs/heads/master | 2023-03-15T17:47:04.027511 | 2019-11-25T12:18:23 | 2019-11-25T12:18:23 | 583,332,876 | 1 | 0 | null | 2022-12-29T13:14:31 | 2022-12-29T13:14:30 | null | UTF-8 | Java | false | false | 1,239 | java | package xyz.tmlh.security.core.validate.code.sms;
import org.apache.commons.lang.RandomStringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.context.request.ServletWebRequest;
import xyz.tmlh.security.core.properties.TmlhSecurityProperties;
import xyz.tmlh.security.core.validate.code.ValidateCodeGenerator;
import xyz.tmlh.security.core.validate.code.support.ValidateCode;
/**
* 短信验证码生成器
* @CreateInformation Created by TianXin on 2019年1月2日.
*/
public class SmsValidateCodeGenerator implements ValidateCodeGenerator{
@Autowired
private TmlhSecurityProperties tmlhSecurityProperties;
/* (非 Javadoc)
* <p>Title: generate</p>
* <p>Description: </p>
* @param request
* @return
* @see xyz.tmlh.security.validate.code.ValidateCodeGenerator#generate(org.springframework.web.context.request.ServletWebRequest)
*/
@Override
public ValidateCode generate(ServletWebRequest request) {
String code = RandomStringUtils.randomNumeric(tmlhSecurityProperties.getCode().getSms().getLength());
return new ValidateCode(code, tmlhSecurityProperties.getCode().getSms().getExpireIn());
}
}
| [
"tmlh98@aliyun.com"
] | tmlh98@aliyun.com |
53de6e79e5769e9547634a749d494868e33bcd3a | 647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4 | /com.tencent.mobileqqi/classes.jar/com/dataline/activities/LiteAdvanceActivity.java | 2681d0b446f5e0e72d6299b1c53b0e93619ae767 | [] | 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 | 6,345 | java | package com.dataline.activities;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.content.res.Resources;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;
import ca;
import cb;
import cc;
import com.dataline.util.DataLineReportUtil;
import com.tencent.mobileqq.activity.qfileJumpActivity;
import com.tencent.mobileqq.app.AppConstants;
import com.tencent.mobileqq.app.IphoneTitleBarActivity;
import com.tencent.mobileqq.app.QQAppInterface;
import com.tencent.mobileqq.filemanager.activity.LocalFileBrowserActivity;
import com.tencent.mobileqq.filemanager.util.FMToastUtil;
import com.tencent.mobileqq.statistics.StatisticAssist;
import com.tencent.mobileqq.utils.QQUtils;
import com.tencent.qphone.base.util.QLog;
import com.tencent.widget.ActionSheet;
import com.tencent.widget.ActionSheetHelper;
import com.tencent.widget.Switch;
import mqq.app.MobileQQ;
public class LiteAdvanceActivity
extends IphoneTitleBarActivity
implements View.OnClickListener
{
public static final String a = "clear_flag";
private Handler jdField_a_of_type_AndroidOsHandler = new Handler();
private View jdField_a_of_type_AndroidViewView;
private TextView jdField_a_of_type_AndroidWidgetTextView;
private Switch jdField_a_of_type_ComTencentWidgetSwitch;
private boolean jdField_a_of_type_Boolean;
private View jdField_b_of_type_AndroidViewView;
private Switch jdField_b_of_type_ComTencentWidgetSwitch;
private String jdField_b_of_type_JavaLangString = "LiteAdvanceActivity";
private boolean jdField_b_of_type_Boolean;
private View c;
private void a(boolean paramBoolean)
{
this.jdField_b_of_type_ComTencentMobileqqAppQQAppInterface.getPreferences().edit().putBoolean("auto_receive_files", paramBoolean).commit();
}
private void b(boolean paramBoolean)
{
this.jdField_b_of_type_ComTencentMobileqqAppQQAppInterface.getPreferences().edit().putBoolean("dl_pc_online_notify", paramBoolean).commit();
}
private boolean c()
{
return this.jdField_b_of_type_ComTencentMobileqqAppQQAppInterface.getPreferences().getBoolean("auto_receive_files", false);
}
private void d()
{
setContentView(2130903177);
setTitle(2131560533);
this.jdField_a_of_type_AndroidViewView = findViewById(2131231509);
this.jdField_a_of_type_AndroidViewView.setOnClickListener(this);
this.jdField_b_of_type_AndroidViewView = findViewById(2131231511);
this.jdField_b_of_type_AndroidViewView.setVisibility(8);
this.jdField_b_of_type_AndroidViewView.setOnClickListener(this);
this.c = findViewById(2131231512);
this.c.setOnClickListener(this);
this.jdField_a_of_type_AndroidWidgetTextView = ((TextView)findViewById(2131231510));
this.jdField_a_of_type_AndroidWidgetTextView.setText(AppConstants.as);
this.jdField_a_of_type_ComTencentWidgetSwitch = ((Switch)findViewById(2131231507));
this.jdField_a_of_type_ComTencentWidgetSwitch.setChecked(this.jdField_a_of_type_Boolean);
this.jdField_a_of_type_ComTencentWidgetSwitch.setOnCheckedChangeListener(new ca(this));
this.jdField_b_of_type_ComTencentWidgetSwitch = ((Switch)findViewById(2131231508));
this.jdField_b_of_type_ComTencentWidgetSwitch.setChecked(this.jdField_b_of_type_Boolean);
this.jdField_b_of_type_ComTencentWidgetSwitch.setOnCheckedChangeListener(new cb(this));
String str2 = this.k.getText().toString();
String str1 = str2;
if (!getString(2131560958).equals(str2)) {
str1 = getString(2131559620, new Object[] { str2 });
}
this.k.setContentDescription(str1);
}
private void e()
{
String str = getString(2131558553);
ActionSheet localActionSheet = (ActionSheet)ActionSheetHelper.a(this, null);
localActionSheet.a(str);
localActionSheet.a(getResources().getString(2131558501), 3);
localActionSheet.d(2131561746);
localActionSheet.a(new cc(this, localActionSheet));
localActionSheet.show();
}
private void f()
{
Intent localIntent = null;
if (Environment.getExternalStorageState().equals("mounted")) {
localIntent = new Intent(getApplicationContext(), LocalFileBrowserActivity.class);
}
while (localIntent == null)
{
return;
FMToastUtil.a(2131558741);
}
try
{
Bundle localBundle = new Bundle();
localBundle.putInt("category", 6);
localIntent.putExtra("bundle", localBundle);
startActivityForResult(localIntent, 100);
return;
}
catch (Exception localException)
{
localException.printStackTrace();
}
}
private boolean f()
{
return this.jdField_b_of_type_ComTencentMobileqqAppQQAppInterface.getPreferences().getBoolean("dl_pc_online_notify", true);
}
private void g()
{
e();
}
private void h()
{
QQUtils.a(this.jdField_b_of_type_ComTencentMobileqqAppQQAppInterface, 2130838590, qfileJumpActivity.class.getName(), getString(2131558496), d(), this.jdField_a_of_type_AndroidOsHandler, 500);
DataLineReportUtil.q(this.jdField_b_of_type_ComTencentMobileqqAppQQAppInterface);
}
protected boolean doOnCreate(Bundle paramBundle)
{
super.doOnCreate(paramBundle);
QLog.d(this.jdField_b_of_type_JavaLangString, 2, "onCreate");
this.jdField_a_of_type_Boolean = c();
this.jdField_b_of_type_Boolean = f();
d();
return true;
}
public void onClick(View paramView)
{
switch (paramView.getId())
{
case 2131231510:
default:
return;
case 2131231509:
StatisticAssist.a(this.jdField_b_of_type_ComTencentMobileqqAppQQAppInterface.getApplication().getApplicationContext(), this.jdField_b_of_type_ComTencentMobileqqAppQQAppInterface.a(), "dl_ckviewrecvfile");
f();
return;
case 2131231511:
h();
return;
}
g();
}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mobileqqi\classes3.jar
* Qualified Name: com.dataline.activities.LiteAdvanceActivity
* JD-Core Version: 0.7.0.1
*/ | [
"98632993+tsuzcx@users.noreply.github.com"
] | 98632993+tsuzcx@users.noreply.github.com |
d67c98f2624de3bdbe94ce1257ad068521239887 | ff026f7189dc7127c99bddf2067b67f2aeba9363 | /OpenForcast/test/net/sourceforge/openforecast/tests/OpenForecastTestSuite.java | 2aa8df1ebc38212fe27a2019c23a356c3a98fcb6 | [] | no_license | freerambo/rambo | 41e383c7b94d078de884f44af38387f317e5ba49 | 4e7d710c9a01e0ecb7e38480c4041cd902c022ae | refs/heads/master | 2022-12-20T20:13:37.196253 | 2020-09-12T10:42:13 | 2020-09-12T10:42:13 | 25,810,606 | 1 | 2 | null | 2022-12-16T03:23:01 | 2014-10-27T08:53:33 | JavaScript | UTF-8 | Java | false | false | 3,219 | java | //
// OpenForecast - open source, general-purpose forecasting package.
// Copyright (C) 2002-2004 Steven R. Gould
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
package net.sourceforge.openforecast.tests;
import junit.framework.Test;
import junit.framework.TestSuite;
public class OpenForecastTestSuite
{
private OpenForecastTestSuite()
{
}
public static Test suite()
{
TestSuite suite = new TestSuite();
try
{
// Test models and core classes
suite.addTestSuite( Class.forName( "net.sourceforge.openforecast.tests.BasicTest" ) );
suite.addTestSuite( Class.forName( "net.sourceforge.openforecast.tests.DataSetTest" ) );
suite.addTestSuite( Class.forName( "net.sourceforge.openforecast.tests.SimpleExponentialSmoothingTest" ) );
suite.addTestSuite( Class.forName( "net.sourceforge.openforecast.tests.DoubleExponentialSmoothingTest" ) );
suite.addTestSuite( Class.forName( "net.sourceforge.openforecast.tests.TripleExponentialSmoothingTest" ) );
suite.addTestSuite( Class.forName( "net.sourceforge.openforecast.tests.MovingAverageTest" ) );
suite.addTestSuite( Class.forName( "net.sourceforge.openforecast.tests.MultipleLinearRegressionTest" ) );
suite.addTestSuite( Class.forName( "net.sourceforge.openforecast.tests.PolynomialRegressionTest" ) );
suite.addTestSuite( Class.forName( "net.sourceforge.openforecast.tests.WeightedMovingAverageTest" ) );
// Test builder(s)
suite.addTestSuite( Class.forName( "net.sourceforge.openforecast.tests.CSVBuilderTest" ) );
suite.addTestSuite( Class.forName( "net.sourceforge.openforecast.tests.TimeSeriesBuilderTest" ) );
// Test outputter(s)
suite.addTestSuite( Class.forName( "net.sourceforge.openforecast.tests.DelimitedTextOutputterTest" ) );
suite.addTestSuite( Class.forName( "net.sourceforge.openforecast.tests.TimeSeriesOutputterTest" ) );
}
catch ( ClassNotFoundException exCNF )
{
System.err.println( "Check setting of CLASSPATH environment variable" );
System.err.println( "Unable to locate test class:" );
System.err.println( " "+exCNF.getMessage() );
}
return suite;
}
}
// Local Variables:
// tab-width: 4
// End:
| [
"zhuyb@ntu.edu.sg"
] | zhuyb@ntu.edu.sg |
b5031a5b02b78327d0ac60f7761fd68505a2324b | 27f6a988ec638a1db9a59cf271f24bf8f77b9056 | /Code-Hunt-data/users/User079/Sector2-Level2/attempt009-20140920-134418.java | dce5d8461bb5b7d3c1161454f4d12ea5a321fcd3 | [] | no_license | liiabutler/Refazer | 38eaf72ed876b4cfc5f39153956775f2123eed7f | 991d15e05701a0a8582a41bf4cfb857bf6ef47c3 | refs/heads/master | 2021-07-22T06:44:46.453717 | 2017-10-31T01:43:42 | 2017-10-31T01:43:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 238 | java |
public class Program {
public static int Puzzle(String s) {
byte l=0;byte r=0;
for(int i=0;i<s.length();i++){
if( s.charAt(i)== '(' ) l++;
else if(s.charAt(i) == ')' )
if(r<l)r++;
}
if(r==l)return r;
else return 0;
}
} | [
"liiabiia@yahoo.com"
] | liiabiia@yahoo.com |
8dcc80192fffaf06bcd505459a2481c1e7732d9f | a999337ddac33e03c4813ba8c863d50dc8726991 | /src/main/java/com/youyuan/proxy/cglibproxy/ProxyFactory.java | 840eaa8bd6814f6f452624ff89e04dbb141b4dce | [] | no_license | zhangyu2046196/desginpattern | 24465523267cf85f5520d9384ba1b4e9a5a10243 | 5304e7231246eed5786d47f06caecae2697eedf7 | refs/heads/master | 2021-07-08T09:41:48.721508 | 2021-01-26T09:41:11 | 2021-01-26T09:41:11 | 225,849,761 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,586 | java | package com.youyuan.proxy.cglibproxy;
import org.springframework.cglib.proxy.Enhancer;
import org.springframework.cglib.proxy.MethodInterceptor;
import org.springframework.cglib.proxy.MethodProxy;
import java.lang.reflect.Method;
/**
* @author zhangy
* @version 1.0
* @description 代理工厂
* @date 2019/12/3 11:37
*/
public class ProxyFactory implements MethodInterceptor {
/**
* 目标对象
*/
private Object target;
public ProxyFactory(Object target) {
this.target = target;
}
/**
* 构建代理对象
*
* @return
*/
public Object getProxyInstance() {
//1、创建工具类
Enhancer enhancer = new Enhancer();
//2、设置父类,因为cglib产生的代理类对象是目标类的子类,所以设置父类为目标类
enhancer.setSuperclass(target.getClass());
//3、设置回调函数
enhancer.setCallback(this);
//4、构建代理对象
return enhancer.create();
}
/**
* 重写intercept方法用于执行目标对象的方法
*
* @param o
* @param method
* @param objects
* @param methodProxy
* @return
* @throws Throwable
*/
@Override
public Object intercept(Object o, Method method, Object[] objects, MethodProxy methodProxy) throws Throwable {
System.out.println("cglib代理执行目标方法 之前");
Object returnVal = method.invoke(target, objects);
System.out.println("cglib代理执行目标方法 之后");
return returnVal;
}
}
| [
"zhangyu2046196@163.com"
] | zhangyu2046196@163.com |
706d2bc62c89df6190e30939be74b246d24f62e9 | 1742f6bb6159d23ba7b46ff3b383028e57f1a953 | /src-util/easydroid/util/android/async/BaseAsyncTask.java | beeb64ed3b7bb6a131a02eb8d87f5f3ba1a24445 | [] | no_license | edolganov/easy-android | d72d508c589a80f4fdbee03ff33d48a904f5d7e2 | aa832d1024a8c0827fea57ac32a0cbc6b9a0bd50 | refs/heads/master | 2021-01-21T23:20:49.726029 | 2013-05-04T19:10:57 | 2013-05-04T19:10:57 | 9,787,874 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,922 | java | package easydroid.util.android.async;
import java.util.HashMap;
import easydroid.util.Util;
import easydroid.util.log.LogFactory;
import easydroid.util.log.Logger;
import android.os.AsyncTask;
public abstract class BaseAsyncTask<T> extends AsyncTask<Object, Object, T>{
private static Logger log = LogFactory.getLog(BaseAsyncTask.class);
//don't use directly access
private static HashMap<String, String> ownerData = new HashMap<String, String>();
private static synchronized void putOwnerData(String ownerId, String reqId){
ownerData.put(ownerId, reqId);
}
private static synchronized boolean checkOwnerReqForOverdue(String ownerId, String oldReqId){
//check
Object curReqId = ownerData.get(ownerId);
boolean isOverdue = ! oldReqId.equals(curReqId);
//clear data if need
if(!isOverdue){
ownerData.remove(ownerId);
}
return isOverdue;
}
public static synchronized void resetRequest(Object requestOwner){
if(requestOwner == null){
return;
}
String ownerId = getOwnerId(requestOwner);
ownerData.remove(ownerId);
}
private static String getOwnerId(Object requestOwner){
return Util.toObjectString(requestOwner);
}
Throwable t;
boolean isOverdue;
boolean skipOverdue;
String ownerId;
String reqId;
BaseAsyncTaskContext taskContext;
public BaseAsyncTask() {
super();
}
public BaseAsyncTask(Object requestOwner) {
this(requestOwner, true);
}
public BaseAsyncTask(Object requestOwner, boolean skipOverdue) {
super();
Util.checkArgumentForEmpty(requestOwner, "requestOwner is null");
this.ownerId = getOwnerId(requestOwner);
this.reqId = ""+System.currentTimeMillis()+"-"+System.nanoTime();
putOwnerData(ownerId, reqId);
this.skipOverdue = skipOverdue;
}
public void setTaskContext(BaseAsyncTaskContext taskContext) {
this.taskContext = taskContext;
}
@Override
protected T doInBackground(Object... params) {
try {
return (T)doInBackground();
}catch (Throwable t) {
this.t = t;
return null;
}
}
protected abstract T doInBackground() throws Throwable;
@Override
protected void onPostExecute(T result) {
checkOverdueReq();
if( needSkipRequest()){
log.debug("skip invalid request for "+ownerId);
return;
}
beforeResult();
if(t == null){
onSuccess(result);
} else {
onFail(t);
}
}
private boolean needSkipRequest(){
return (isOverdue && skipOverdue)
|| (taskContext != null? ! taskContext.isValidTaskContext() : false);
}
private void checkOverdueReq() {
if(ownerId == null){
return;
}
isOverdue = checkOwnerReqForOverdue(ownerId, reqId);
}
protected void beforeResult(){
//override if need
}
protected void onSuccess(T result){
//override if need
}
protected void onFail(Throwable t){
//override if need
LogFactory.getLog(getClass()).error("error while invoke async operation", t);
}
}
| [
"evgenij.dolganov@gmail.com"
] | evgenij.dolganov@gmail.com |
e5dcdd40b116316da78396eaf7712ed3106c2e78 | 5a0bfac7ad00c079fe8e0bdf1482f4271c46eeab | /app/src/main/wechat6.5.3/com/tencent/mm/plugin/appbrand/c/b/e.java | 871b654552cbc901614a4b23e30b59adc7d5b623 | [] | no_license | newtonker/wechat6.5.3 | 8af53a870a752bb9e3c92ec92a63c1252cb81c10 | 637a69732afa3a936afc9f4679994b79a9222680 | refs/heads/master | 2020-04-16T03:32:32.230996 | 2017-06-15T09:54:10 | 2017-06-15T09:54:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 324 | java | package com.tencent.mm.plugin.appbrand.c.b;
import android.graphics.Path;
import org.json.JSONArray;
public final class e implements a {
public final String getMethod() {
return "closePath";
}
public final boolean a(Path path, JSONArray jSONArray) {
path.close();
return true;
}
}
| [
"zhangxhbeta@gmail.com"
] | zhangxhbeta@gmail.com |
bf8b5195608bfdcdcf3502ff9368e3195e70a162 | d83516af69daf73a56a081f595c704d214c3963e | /nan21.dnet.module.hr/nan21.dnet.module.hr.domain/src/main/java/net/nan21/dnet/module/hr/payroll/domain/entity/PayrollElementValue.java | 9596c17d992a2b383da215ee4cf2103e54a47ad8 | [] | no_license | nan21/nan21.dnet.modules_oss | fb86d20bf8a3560d30c17e885a80f6bf48a147fe | 0251680173bf2fa922850bef833cf85ba954bb60 | refs/heads/master | 2020-05-07T20:35:06.507957 | 2013-02-19T12:59:05 | 2013-02-19T12:59:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,717 | java | /*
* DNet eBusiness Suite
* Copyright: 2010-2013 Nan21 Electronics SRL. All rights reserved.
* Use is subject to license terms.
*/
package net.nan21.dnet.module.hr.payroll.domain.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import net.nan21.dnet.core.domain.eventhandler.DefaultEventHandler;
import net.nan21.dnet.core.domain.model.AbstractAuditable;
import net.nan21.dnet.module.bd.org.domain.entity.Organization;
import net.nan21.dnet.module.hr.employee.domain.entity.EmployeeAssignment;
import net.nan21.dnet.module.hr.payroll.domain.entity.PayrollElement;
import net.nan21.dnet.module.hr.payroll.domain.entity.PayrollPeriod;
import org.eclipse.persistence.annotations.Customizer;
import org.eclipse.persistence.descriptors.DescriptorEvent;
@NamedQueries({})
@Entity
@Table(name = PayrollElementValue.TABLE_NAME)
@Customizer(DefaultEventHandler.class)
public class PayrollElementValue extends AbstractAuditable {
public static final String TABLE_NAME = "HR_PAYROLL_ELEM_VAL";
public static final String SEQUENCE_NAME = "HR_PAYROLL_ELEM_VAL_SEQ";
private static final long serialVersionUID = -8865917134914502125L;
/**
* System generated unique identifier.
*/
@Column(name = "ID", nullable = false)
@NotNull
@Id
@GeneratedValue(generator = SEQUENCE_NAME)
private Long id;
@Column(name = "VALUE", length = 255)
private String value;
@ManyToOne(fetch = FetchType.LAZY, targetEntity = PayrollElement.class)
@JoinColumn(name = "ELEMENT_ID", referencedColumnName = "ID")
private PayrollElement element;
@ManyToOne(fetch = FetchType.LAZY, targetEntity = PayrollPeriod.class)
@JoinColumn(name = "PERIOD_ID", referencedColumnName = "ID")
private PayrollPeriod period;
@ManyToOne(fetch = FetchType.LAZY, targetEntity = EmployeeAssignment.class)
@JoinColumn(name = "ASSIGNMENT_ID", referencedColumnName = "ID")
private EmployeeAssignment assignment;
@ManyToOne(fetch = FetchType.LAZY, targetEntity = Organization.class)
@JoinColumn(name = "ORG_ID", referencedColumnName = "ID")
private Organization org;
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
public PayrollElement getElement() {
return this.element;
}
public void setElement(PayrollElement element) {
if (element != null) {
this.__validate_client_context__(element.getClientId());
}
this.element = element;
}
public PayrollPeriod getPeriod() {
return this.period;
}
public void setPeriod(PayrollPeriod period) {
if (period != null) {
this.__validate_client_context__(period.getClientId());
}
this.period = period;
}
public EmployeeAssignment getAssignment() {
return this.assignment;
}
public void setAssignment(EmployeeAssignment assignment) {
if (assignment != null) {
this.__validate_client_context__(assignment.getClientId());
}
this.assignment = assignment;
}
public Organization getOrg() {
return this.org;
}
public void setOrg(Organization org) {
if (org != null) {
this.__validate_client_context__(org.getClientId());
}
this.org = org;
}
public void aboutToInsert(DescriptorEvent event) {
super.aboutToInsert(event);
}
}
| [
"mathe_attila@yahoo.com"
] | mathe_attila@yahoo.com |
e225f0aa937746232e6f6f03b7dcbde4189186df | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/28/28_b4b867e425d6252f525e6a6b7bf2a726b5a9a1db/RoadAgentGoals/28_b4b867e425d6252f525e6a6b7bf2a726b5a9a1db_RoadAgentGoals_t.java | 1a2f9d3cff9b7dec5f34f34bb11d5fcbf7862fce | [] | 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 | 971 | java | package uk.ac.imperial.dws04.Presage2Experiments;
/**
* Class to contain goals for the RoadAgent
* @author dws04
*
*/
public class RoadAgentGoals {
/**
* Preferred speed
*/
private final Integer speed;
/**
* Goal destination - how many junctions to pass. Null if the agent should never leave
*/
private final Integer dest;
/**
* The preferred space left between this agent and the ones around it
* when not in a cluster
*/
private final Integer spacing;
RoadAgentGoals(Integer speed, Integer dest, Integer spacing) {
this.speed = speed;
this.dest = dest;
this.spacing = spacing;
}
/**
* @return the speed
*/
public Integer getSpeed() {
return speed;
}
/**
* @return the goal dest. Is null if the agent will stay on the road forever
*/
public Integer getDest() {
return dest;
}
/**
* @return the spacing
*/
public Integer getSpacing() {
return spacing;
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
9de0b62b13c2ce8fb6fdc2b15f9c53dbbba5db2c | 69caea7b1b2e2341fe0df6b13f13ab04353b689f | /workspace/day24/src/cn/itcast/demo/TestCopyFile.java | f2083ebe3bc4afb40bfa2d93d1dc0e0e168a2925 | [] | no_license | jerrytao1987/234 | 320cc67b9efe6d973a6002124cc0032d9f0a1a6b | 0d3a990690f2378d17c6789227173dfd527bfeef | refs/heads/master | 2020-04-24T08:55:56.117195 | 2019-03-26T04:54:28 | 2019-03-26T04:54:28 | 171,846,538 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 289 | java | package cn.itcast.demo;
import java.io.File;
import copyFiles.CopyFile;
public class TestCopyFile {
public static void main(String[] args) {
File fileSource = new File("D:\\php5630");
File fileDestination = new File("e:");
CopyFile.copyFiles(fileSource, fileDestination);
}
}
| [
"309505553@qq.com"
] | 309505553@qq.com |
8c13f355cc6d2ed719d91143328e3968a2144979 | 27a13543c5a21811e696278b5212755ecdebca53 | /hsco/src/main/java/hsco/mis/bdg/BDG020102/BDG020102Service.java | 040531105768242297e66c0c4f83a2910b67f7bb | [] | no_license | chaseDeveloper/hsco | 9dad73c971500c4bd98adfefa3e91a91d26ca318 | 7052d6da3ac772cd3b13ec391818139355935916 | refs/heads/master | 2023-06-15T23:55:10.592683 | 2021-07-06T07:46:07 | 2021-07-06T07:46:07 | 383,377,343 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 824 | java | package hsco.mis.bdg.BDG020102;
/**
* <pre>
* @Project Name : 화성도시공사 차세대정보시스템
* @Class Name : BDG020102Service.java
* @Description :
* @author : 정윤원
* @since : 2015. 07. 15.
* @version : 1.0
* @see :
* @COPYRIGHT (c) 2015 나눔아이씨티, Inc. All Right Reserved.
*
* <pre>
* ------------------------------------------------------------------
* Modification Information
* ------------------------------------------------------------------
* 작성일 작성자 내용
* ------------------------------------------------------------------
* 2015. 07. 15. 정윤원 최초생성
* </pre>
*/
public interface BDG020102Service {
}
| [
"kdk@ichase.co.kr"
] | kdk@ichase.co.kr |
71e2ed255d779cdf75ec22271fcf565c36b79eaa | 6dd0b69d3f97333d21e07c427e562fc722c6c20a | /Backend/src/main/java/com/troy/dramaserver/net/HttpsChannelInitializer.java | c1968434d6a78e79c0a245872fb472b1b2eb39ed | [] | no_license | TroyNeubauer/Drama-Thespian-Honor-Society | f3c4e677f003b3e1ea491e45b4d63c3015d2e5d3 | 39cd173bb250ba5fd5e048113018b0dbc5aa96e8 | refs/heads/master | 2020-05-12T15:19:00.816571 | 2019-08-23T11:20:21 | 2019-08-23T11:20:21 | 181,532,928 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 984 | java | package com.troy.dramaserver.net;
import java.io.File;
import javax.net.ssl.SSLException;
import io.netty.channel.*;
import io.netty.channel.socket.SocketChannel;
import io.netty.handler.codec.http.*;
import io.netty.handler.ssl.*;
public class HttpsChannelInitializer extends ChannelInitializer<SocketChannel> {
public HttpsChannelInitializer() {
}
protected void initChannel(SocketChannel socketChannel) throws Exception {
try {
SslContext context = SslContextBuilder.forServer(new File("/etc/letsencrypt/live/dramaserver.tk/cert.pem"), new File("/etc/letsencrypt/live/dramaserver.tk/privkey.pem")).build();
socketChannel.pipeline().addLast("ssl", context.newHandler(socketChannel.alloc()));
socketChannel.pipeline().addLast(new HttpServerCodec());
socketChannel.pipeline().addLast(new HttpObjectAggregator(1048576));
socketChannel.pipeline().addLast(new HttpRequestHandler());
} catch (SSLException e) {
throw new RuntimeException(e);
}
}
}
| [
"troyneubauer@gmail.com"
] | troyneubauer@gmail.com |
c4a452a459032d6356e206bcce8a70b118ec1c61 | dab3b77ec0ca17bb7c8f7262d739d14ac4ebdce3 | /src/java/com/gtafe/service/impl/AccrueSourceServiceImpl.java | 080a523946d478537afa923800df6d554daf6dfd | [] | no_license | li5220008/bank | 8a970265c447ececa219a323cd1119cfedf21547 | fd8280d4c659d0bbd7f5c2ac5fce0acd137a14ec | refs/heads/master | 2020-05-19T22:37:14.553555 | 2014-05-26T10:13:17 | 2014-05-26T10:13:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 971 | java | package com.gtafe.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gtafe.dao.AccrueSourceMapper;
import com.gtafe.model.AccrueSource;
import com.gtafe.service.IAccrueSourceService;
import com.gtafe.util.MathUtil;
@Service
public class AccrueSourceServiceImpl implements IAccrueSourceService {
@Autowired
private AccrueSourceMapper asm;
public void add(AccrueSource E) {
// TODO Auto-generated method stub
asm.add(E);
}
public void update(AccrueSource E) {
// TODO Auto-generated method stub
asm.update(E);
}
public AccrueSource selectById(Object id) {
// TODO Auto-generated method stub
return asm.findById(MathUtil.getBigDecimal(id));
}
public void deleteById(Object id) {
asm.delete(MathUtil.getBigDecimal(id));
}
public List<AccrueSource> fetchAll() {
// TODO Auto-generated method stub
return asm.fetchAll();
}
}
| [
"li5220008@163.com"
] | li5220008@163.com |
defdd6c625365e3ebe4314a3f8cb47d38918d41a | 2c9a383130da3e872596476537eada48195c7436 | /Java/src/main/java/org/zhouhy/hz41382/java/thread/sh/md01/Thread1.java | b3d8d5fb42b5a8759c5b84b396aa306b9e9322a6 | [] | no_license | fengandzhy/CoreJava | 322c655519f5e6da35e6b6f9d7d1146fa3de1d17 | 35d8d2b9dec6c07ad11d39547df9206067f60438 | refs/heads/master | 2021-06-19T14:10:33.110399 | 2019-09-23T18:57:18 | 2019-09-23T18:57:18 | 112,720,758 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 221 | java | package org.zhouhy.hz41382.java.thread.sh.md01;
public class Thread1 extends Thread{
@Override
public void run() {
for (int i = 0; i < 100; ++i){
System.out.println("Hello World: " + i);
}
}
}
| [
"fengandzhy@gmail.com"
] | fengandzhy@gmail.com |
ac0fdb22a5ebcc2f3296b435a6c6f209f748b054 | 4d3fcef8c170d57e4663201afd9db5edbc58f836 | /swg/crafting/resources/types/SWGKerolFireGemCrystallineGemstone.java | d2594b24b205948ec8a3d5a387d498ee746f9bab | [] | no_license | Sobuno/SWGAide | 1b28217fb2ed5978d451235c50aba641f651124f | 8c48b7220da39efb25db579fa7deb91b3e8e9c9a | refs/heads/master | 2021-07-08T12:13:43.802268 | 2020-10-02T19:57:06 | 2020-10-02T19:57:06 | 28,395,683 | 9 | 7 | null | 2020-10-02T19:57:07 | 2014-12-23T11:58:36 | Java | UTF-8 | Java | false | false | 1,777 | java | package swg.crafting.resources.types;
import swg.crafting.resources.SWGResourceClass;
import swg.crafting.resources.types.SWGCrystallineGemstone;
import swg.crafting.Stat;
/*
* Represents a resource class of type "Kerol Fire-Gem Crystalline Gemstone"
*
* <b>WARNING:</b>
* This class is generated by SWGResourceClassGenerator.
* Do not manually modify this class as your changes are
* erased when the classes are re-generated.
*
* @author Steven M. Doyle <shadow@triwizard.net>
* @author <a href="mailto:simongronlund@gmail.com">Simon Gronlund</a>
* aka Chimaera.Zimoon
*/
@SuppressWarnings("all")
public final class SWGKerolFireGemCrystallineGemstone extends SWGCrystallineGemstone {
private static final long serialVersionUID = 1201876L;
private static final int[] minStats = {0, 338, 338, 669, 0, 801, 136, 1, 0, 536, 536};
private static final int[] maxStats = {0, 538, 538, 769, 0, 861, 215, 1000, 0, 676, 676};
private static final SWGKerolFireGemCrystallineGemstone INSTANCE = new SWGKerolFireGemCrystallineGemstone();
SWGKerolFireGemCrystallineGemstone() { super(); }
public static SWGKerolFireGemCrystallineGemstone getInstance() { return INSTANCE; }
public int expectedStats() { return 8; }
public int sortIndex() { return 763; }
public int rcID() { return 151; }
public String rcName() { return "Kerol Fire-Gem Crystalline Gemstone";}
public String rcToken() { return "kecry";}
public boolean isSpawnable() { return true; }
public boolean has(Stat s) { return minStats[s.i] > 0; }
public int max(Stat s) { return maxStats[s.i]; }
public int min(Stat s) { return minStats[s.i]; }
private Object readResolve() {
return INSTANCE; // preserve singleton property
}
}
| [
"jesper@sobuno.dk"
] | jesper@sobuno.dk |
cb12297aea43d86839626a1967a7f60ee1692be1 | dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9 | /data_defect4j/preprossed_method_corpus/Math/2/org/apache/commons/math3/linear/BlockFieldMatrix_getRowVector_1005.java | db6d93507e3fe090ff128345f4de04d03746da30 | [] | no_license | hvdthong/NetML | dca6cf4d34c5799b400d718e0a6cd2e0b167297d | 9bb103da21327912e5a29cbf9be9ff4d058731a5 | refs/heads/master | 2021-06-30T15:03:52.618255 | 2020-10-07T01:58:48 | 2020-10-07T01:58:48 | 150,383,588 | 1 | 1 | null | 2018-09-26T07:08:45 | 2018-09-26T07:08:44 | null | UTF-8 | Java | false | false | 3,546 | java |
org apach common math3 linear
cach friendli implement field matrix fieldmatrix flat arrai store
squar block matrix
implement special design cach friendli squar block
store small arrai effici travers data row major direct
column major direct block time greatli increas perform
algorithm cross direct loop multipl transposit
size squar block paramet tune cach
size target comput processor rule thumb largest
block simultan cach
matrix multipl 36x36 block
regular block repres link block size link block size squar block
hand side bottom side smaller fit matrix dimens squar
block flatten row major order singl dimens arrai
link block size element regular block block
organ row major order
block size 36x36 100x60 matrix store block
block field arrai hold upper left 36x36 squar block
field arrai hold upper center 36x36 squar block field
arrai hold upper 36x28 rectangl block field arrai hold
lower left 24x36 rectangl block field arrai hold lower center
24x36 rectangl block field arrai hold lower 24x28
rectangl
layout complex overhead versu simpl map matric java
arrai neglig small matric gain cach effici lead
fold improv matric moder larg size
param type field element
version
block field matrix blockfieldmatrix field element fieldel abstract field matrix abstractfieldmatrix serializ
inherit doc inheritdoc
overrid
field vector fieldvector row vector getrowvector row
rang except outofrangeexcept
check row index checkrowindex row
data outdata math arrai matharrai build arrai buildarrai field getfield column
perform copi block wise ensur good cach behavior
block iblock row block size
row irow row block iblock block size
index outindex
block jblock block jblock block column blockcolumn block jblock
width jwidth block width blockwidth block jblock
block block block iblock block column blockcolumn block jblock
system arraycopi block row irow width jwidth data outdata index outindex width jwidth
index outindex width jwidth
arrai field vector arrayfieldvector field getfield data outdata
| [
"hvdthong@gmail.com"
] | hvdthong@gmail.com |
2185047b34924c38c6ccdcf50c2ff2aed33e2af2 | d0090f4422e7c0b427bd515ccdec4319dc4a6bc3 | /src/main/test/org/compass/core/test/analyzer/OsemNoUnmarshallAnalyzerTests.java | e6438f14ecbe868043ccf40acf5de2c13652d5b7 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gpc/compass | 4e71e87cbcfe477482bd32fbe03587152a629590 | 6d9be5db0dfdb7d220e1d124b0d6de7ca796952f | refs/heads/master | 2021-01-16T20:36:33.506173 | 2010-12-28T09:37:35 | 2011-05-25T05:37:52 | 1,797,357 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,146 | java | /*
* Copyright 2004-2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.compass.core.test.analyzer;
import org.compass.core.CompassHits;
import org.compass.core.CompassSession;
import org.compass.core.CompassTransaction;
import org.compass.core.config.CompassEnvironment;
import org.compass.core.config.CompassSettings;
import org.compass.core.engine.SearchEngineException;
/**
* @author kimchy
*/
public class OsemNoUnmarshallAnalyzerTests extends AbstractAnalyzerTests {
protected String[] getMappings() {
return new String[]{"analyzer/osem.cpm.xml"};
}
@Override
protected void addSettings(CompassSettings settings) {
super.addSettings(settings);
settings.setBooleanSetting(CompassEnvironment.Osem.SUPPORT_UNMARSHALL, false);
}
public void testClassNoAnalyzer() {
CompassSession session = openSession();
CompassTransaction tr = session.beginTransaction();
Long id = (long) 1;
A a = new A();
a.setId(id);
a.setValue(TEXT);
session.save("a1", a);
CompassHits hits = session.find("a1.value:the");
assertEquals(0, hits.getLength());
// test for the all property as well
hits = session.find("the");
assertEquals(0, hits.getLength());
tr.commit();
}
public void testClassAnalyzerSetForResource() {
CompassSession session = openSession();
CompassTransaction tr = session.beginTransaction();
Long id = (long) 1;
A a = new A();
a.setId(id);
a.setValue(TEXT);
session.save("a2", a);
CompassHits hits = session.find("a2.value:the");
assertEquals(1, hits.getLength());
// test for the all property as well
hits = session.find("the");
assertEquals(1, hits.getLength());
tr.commit();
}
public void testClassAnalyzerSetForProperty() {
CompassSession session = openSession();
CompassTransaction tr = session.beginTransaction();
Long id = (long) 1;
A a = new A();
a.setId(id);
a.setValue(TEXT);
a.setValue2(TEXT);
session.save("a3", a);
CompassHits hits = session.find("a3.value:the");
assertEquals(1, hits.getLength());
hits = session.find("a3.value2:the");
assertEquals(0, hits.getLength());
// test for the all property as well
hits = session.find("the");
assertEquals(1, hits.getLength());
tr.commit();
}
public void testClassAnalyzerSetForResourceAndProperty() {
CompassSession session = openSession();
CompassTransaction tr = session.beginTransaction();
Long id = (long) 1;
A a = new A();
a.setId(id);
a.setValue(TEXT);
a.setValue2(TEXT);
session.save("a4", a);
CompassHits hits = session.find("a4.value:the");
assertEquals(0, hits.getLength());
hits = session.find("a4.value2:the");
assertEquals(1, hits.getLength());
tr.commit();
}
public void testClassAnalyzerController() {
CompassSession session = openSession();
CompassTransaction tr = session.beginTransaction();
Long id = (long) 1;
A a = new A();
a.setId(id);
a.setValue(TEXT);
a.setValue2(TEXT);
a.setAnalyzer("simple");
session.save("a6", a);
CompassHits hits = session.find("value:the");
assertEquals(1, hits.getLength());
a = new A();
a.setId((long) 2);
a.setValue(TEXT);
a.setValue2(TEXT);
a.setAnalyzer(null);
try {
session.save("a6", a);
tr.commit();
fail();
} catch (SearchEngineException e) {
tr.rollback();
}
session.close();
}
public void testClassAnalyzerControllerWithNullAnalyzer() {
CompassSession session = openSession();
CompassTransaction tr = session.beginTransaction();
Long id = (long) 1;
A a = new A();
a.setId(id);
a.setValue(TEXT);
a.setValue2(TEXT);
a.setAnalyzer("simple");
session.save("a7", a);
CompassHits hits = session.find("value:the");
assertEquals(1, hits.getLength());
a = new A();
a.setId((long) 2);
a.setValue(TEXT);
a.setValue2(TEXT);
a.setAnalyzer(null);
session.save("a7", a);
hits = session.find("value:the");
assertEquals(2, hits.getLength());
tr.commit();
}
} | [
"kimchy@gmail.com"
] | kimchy@gmail.com |
90a59b13beda76fdf8cb6e8c150ac985d16f4a64 | a4de39dac5d43d60a7f95b9ac332fd413ba14b7c | /src/main/java/com/cheng/o2o/web/frontend/ShopDetailController.java | 20b6aba02b5e4d33f6ad0421620aef404540301e | [] | no_license | Yuki1999/CampusShopPlatform | 87d86da28593671cd7022269b424e233dda16602 | 5e6def8e58f5ea09a63c3ecc34422003f85735df | refs/heads/master | 2021-09-19T23:34:31.910580 | 2018-04-23T14:37:27 | 2018-04-23T14:37:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,883 | java | package com.cheng.o2o.web.frontend;
import com.cheng.o2o.dto.ProductExecution;
import com.cheng.o2o.entity.Product;
import com.cheng.o2o.entity.ProductCategory;
import com.cheng.o2o.entity.Shop;
import com.cheng.o2o.service.ProductCategoryService;
import com.cheng.o2o.service.ProductService;
import com.cheng.o2o.service.ShopService;
import com.cheng.o2o.util.HttpServletRequestUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @author cheng
* 2018/4/12 11:23
*/
@Controller
@RequestMapping("/frontend")
public class ShopDetailController {
@Autowired
private ShopService shopService;
@Autowired
private ProductService productService;
@Autowired
private ProductCategoryService productCategoryService;
/**
* 获取店铺信息以及该店铺下面的商品类别列表
*
* @param request
* @return
*/
@GetMapping("/listshopdetailpageinfo")
@ResponseBody
private Map<String, Object> listShopDetailPageInfo(HttpServletRequest request) {
Map<String, Object> modelMap = new HashMap<>(4);
// 获取前台传的 shopId
long shopId = HttpServletRequestUtil.getLong(request, "shopId");
Shop shop;
List<ProductCategory> productCategoryList;
if (shopId != -1) {
// 获取店铺 id 为 shopId 的店铺信息
shop = shopService.getByShopId(shopId);
// 获取店铺下面的商品类别列表
productCategoryList = productCategoryService.getProductCategoryList(shopId);
modelMap.put("shop", shop);
modelMap.put("productCategoryList", productCategoryList);
modelMap.put("success", true);
} else {
modelMap.put("success", false);
modelMap.put("errMsg", "Empty shopId");
}
return modelMap;
}
@GetMapping("/listproductsbyshop")
@ResponseBody
private Map<String, Object> listProductsByShop(HttpServletRequest request) {
Map<String, Object> modelMap = new HashMap<>(4);
// 获取页码
int pageIndex = HttpServletRequestUtil.getInt(request, "pageIndex");
// 获取一页需要显示的条数
int pageSize = HttpServletRequestUtil.getInt(request, "pageSize");
// 获取店铺id
long shopId = HttpServletRequestUtil.getLong(request, "shopId");
// 空值判断
if ((pageIndex > -1) && (pageSize > -1) && (shopId > -1)) {
// 尝试获取商品类别id
long productCategoryId = HttpServletRequestUtil.getLong(request, "productCategoryId");
// 尝试获取模糊查找的商品名
String productName = HttpServletRequestUtil.getString(request, "productName");
// 组合查找条件
Product productCondition = compactProductCondition3Search(shopId, productCategoryId, productName);
// 按照传入的查询条件以及分页信息返回相应的商品类别以及总数
ProductExecution pe = productService.getProductList(productCondition, pageIndex, pageSize);
modelMap.put("productList", pe.getProductList());
modelMap.put("count", pe.getCount());
modelMap.put("success", true);
} else {
modelMap.put("success", false);
modelMap.put("errMsg", "Empty pageSize or pageIndex or shopID");
}
return modelMap;
}
/**
* 组合查询条件,将条件封装到 productCondition 对象里返回
*
* @param shopId
* @param productCategoryId
* @param productName
* @return
*/
private Product compactProductCondition3Search(long shopId, long productCategoryId, String productName) {
Product productCondition = new Product();
Shop shop = new Shop();
shop.setShopId(shopId);
productCondition.setShop(shop);
if (productCategoryId != -1L) {
// 查询某个商品类别下面的商品列表
ProductCategory productCategory = new ProductCategory();
productCategory.setProductCategoryId(productCategoryId);
productCondition.setProductCategory(productCategory);
}
if (productName != null) {
// 查询名字里包含 productName 的店铺列表
productCondition.setProductName(productName);
}
// 只允许选出状态为上架的商品
productCondition.setEnableStatus(1);
return productCondition;
}
}
| [
"792702352@qq.com"
] | 792702352@qq.com |
da35bfe2f02208a60ab226b4bf2d4e114524ba50 | 32b72e1dc8b6ee1be2e80bb70a03a021c83db550 | /ast_results/justin66_MyTracks/MyTracksTest_E2E/src/com/google/android/apps/mytracks/endtoendtest/common/ExportSingleTrackTest.java | 454a082a9dbf847679467d4ca7cce4bdb43ca5d1 | [] | no_license | cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning | d90c41a17e88fcd99d543124eeb6e93f9133cb4a | 0564143d92f8024ff5fa6b659c2baebf827582b1 | refs/heads/master | 2020-07-13T13:53:40.297493 | 2019-01-11T11:51:18 | 2019-01-11T11:51:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,692 | java | // isComment
package com.google.android.apps.mytracks.endtoendtest.common;
import com.google.android.apps.mytracks.TrackListActivity;
import com.google.android.apps.mytracks.endtoendtest.EndToEndTestUtils;
import com.google.android.apps.mytracks.endtoendtest.GoogleUtils;
import com.google.android.maps.mytracks.R;
import com.google.api.services.drive.model.File;
import android.app.Instrumentation;
import android.test.ActivityInstrumentationTestCase2;
import java.util.List;
/**
* isComment
*/
public class isClassOrIsInterface extends ActivityInstrumentationTestCase2<TrackListActivity> {
private Instrumentation isVariable;
private TrackListActivity isVariable;
public isConstructor() {
super(TrackListActivity.class);
}
@Override
protected void isMethod() throws Exception {
super.isMethod();
isNameExpr = isMethod();
isNameExpr = isMethod();
isNameExpr.isMethod(isNameExpr.isMethod(), isNameExpr.isFieldAccessExpr);
isNameExpr.isMethod(isNameExpr.isMethod(), isNameExpr.isFieldAccessExpr);
isNameExpr.isMethod(isNameExpr, isNameExpr);
}
/**
* isComment
*/
public void isMethod() {
// isComment
isNameExpr.isMethod(isIntegerConstant, true);
isNameExpr.isMethod();
isMethod();
}
/**
* isComment
*/
public void isMethod() {
isNameExpr.isMethod();
isNameExpr.isMethod(isIntegerConstant);
isNameExpr.isMethod();
isMethod();
}
/**
* isComment
*/
public void isMethod() {
String isVariable = "isStringConstant";
isNameExpr.isFieldAccessExpr = isNameExpr;
isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isMethod(), isNameExpr.isFieldAccessExpr);
isNameExpr.isMethod(isIntegerConstant, true);
boolean isVariable = isMethod(isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr)) && isMethod(isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr)) && isMethod(isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr));
isNameExpr = isNameExpr && isMethod(isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr)) && isMethod(isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr)) && isMethod(isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr));
// isComment
if (isNameExpr) {
List<File> isVariable = isNameExpr.isMethod(isNameExpr.isMethod(), isNameExpr.isFieldAccessExpr);
isMethod(isIntegerConstant, isNameExpr.isMethod());
}
}
/**
* isComment
*/
private void isMethod() {
if (!isMethod(isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr)) || !isMethod(isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr)) || !isMethod(isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr))) {
return;
}
// isComment
// isComment
// isComment
// isComment
isMethod(isNameExpr.isMethod(isNameExpr.isMethod(), isNameExpr.isFieldAccessExpr, isNameExpr.isFieldAccessExpr));
isMethod(isNameExpr.isMethod(isNameExpr.isMethod(), isNameExpr.isFieldAccessExpr, isNameExpr.isFieldAccessExpr));
isMethod(isNameExpr.isMethod(isNameExpr.isMethod(), isNameExpr.isFieldAccessExpr, isNameExpr.isFieldAccessExpr));
}
/**
* isComment
*/
private boolean isMethod(String isParameter) {
isNameExpr.isMethod(isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr), true);
isNameExpr.isFieldAccessExpr.isMethod(isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr));
isNameExpr.isMethod();
isNameExpr.isFieldAccessExpr.isMethod(isNameExpr);
isNameExpr.isMethod();
isNameExpr.isMethod(isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr), true, true);
isNameExpr.isMethod();
if (!isNameExpr.isMethod()) {
return true;
}
// isComment
// isComment
isMethod(isNameExpr.isFieldAccessExpr.isMethod(isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr)) || isNameExpr.isFieldAccessExpr.isMethod(isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr)));
// isComment
while (isNameExpr.isFieldAccessExpr.isMethod(isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr), isIntegerConstant, isNameExpr.isFieldAccessExpr) || isNameExpr.isFieldAccessExpr.isMethod(isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr), isIntegerConstant, isNameExpr.isFieldAccessExpr)) {
}
if (isNameExpr.isMethod(isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr))) {
// isComment
isMethod(isNameExpr.isFieldAccessExpr.isMethod(isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr)));
} else {
isMethod(isNameExpr.isFieldAccessExpr.isMethod(isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr)));
}
isNameExpr.isMethod(isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr), true, true);
return true;
}
/**
* isComment
*/
public void isMethod() {
isNameExpr.isMethod();
isNameExpr.isMethod(isIntegerConstant, true);
isNameExpr.isMethod();
isMethod();
}
@Override
protected void isMethod() throws Exception {
isNameExpr.isFieldAccessExpr = isNameExpr.isFieldAccessExpr;
isNameExpr.isFieldAccessExpr.isMethod();
super.isMethod();
}
}
| [
"matheus@melsolucoes.net"
] | matheus@melsolucoes.net |
e41ce5ade42db776a2d895762b062db9b7cd5a24 | 8f17b8388933da8e2a6df0cc07b0598433a0dbae | /src/main/java/com/csgi/cms/modules/cms/entity/Site.java | 440409fd383a63975963b2ccf90f1dfa3e84ab3b | [] | no_license | foreverget/cms | ef736014ba019d69dab24f08e24eccb660fd04ae | f898f3df4d3074ab20a2d4c1d61202bc8251889c | refs/heads/master | 2021-01-18T13:15:41.918794 | 2017-08-25T06:54:37 | 2017-08-25T06:54:37 | 100,372,794 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,920 | java | package com.csgi.cms.modules.cms.entity;
import org.apache.commons.lang3.StringUtils;
import org.hibernate.validator.constraints.Length;
import com.csgi.cms.common.persistence.DataEntity;
import com.csgi.cms.modules.sys.utils.UserUtils;
/**
* 站点Entity
*/
public class Site extends DataEntity<Site> {
private static final long serialVersionUID = 1L;
private String name; // 站点名称
private String title; // 站点标题
private String logo; // 站点logo
private String description;// 描述,填写有助于搜索引擎优化
private String keywords;// 关键字,填写有助于搜索引擎优化
private String theme; // 主题
private String copyright;// 版权信息
private String customIndexView;// 自定义首页视图文件
private String domain;
public Site() {
super();
}
public Site(String id) {
this();
this.id = id;
}
@Length(min = 1, max = 100)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Length(min = 1, max = 100)
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getLogo() {
return logo;
}
public void setLogo(String logo) {
this.logo = logo;
}
@Length(min = 0, max = 255)
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Length(min = 0, max = 255)
public String getKeywords() {
return keywords;
}
public void setKeywords(String keywords) {
this.keywords = keywords;
}
@Length(min = 1, max = 255)
public String getTheme() {
return theme;
}
public void setTheme(String theme) {
this.theme = theme;
}
public String getCopyright() {
return copyright;
}
public void setCopyright(String copyright) {
this.copyright = copyright;
}
public String getCustomIndexView() {
return customIndexView;
}
public void setCustomIndexView(String customIndexView) {
this.customIndexView = customIndexView;
}
/**
* 获取默认站点ID
*/
public static String defaultSiteId() {
return "1";
}
/**
* 判断是否为默认(主站)站点
*/
public static boolean isDefault(String id) {
return id != null && id.equals(defaultSiteId());
}
/**
* 获取当前编辑的站点编号
*/
public static String getCurrentSiteId() {
String siteId = (String) UserUtils.getCache("siteId");
return StringUtils.isNotBlank(siteId) ? siteId : defaultSiteId();
}
/**
* 模板路径
*/
public static final String TPL_BASE = "/WEB-INF/views/modules/cms/front/themes";
/**
* 获得模板方案路径。如:/WEB-INF/views/modules/cms/front/themes/xxx
*
* @return
*/
public String getSolutionPath() {
return TPL_BASE + "/" + getTheme();
}
public String getDomain() {
return domain;
}
public void setDomain(String domain) {
this.domain = domain;
}
} | [
"zhangwei@zhang-wei"
] | zhangwei@zhang-wei |
5ec48b8b094e29973a81c847940195e394937d0d | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/15/15_b480e2c1ecee7995f4ed816ce55e458c88dcc32b/MasterState/15_b480e2c1ecee7995f4ed816ce55e458c88dcc32b_MasterState_t.java | e5541498d22b732d1d80f9f24e665b94e6158fa5 | [] | 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 | 5,463 | java | package com.shade.states;
import java.awt.Font;
import java.io.InputStream;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Music;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.TrueTypeFont;
import org.newdawn.slick.state.BasicGameState;
import org.newdawn.slick.state.StateBasedGame;
import org.newdawn.slick.state.transition.FadeInTransition;
import org.newdawn.slick.util.ResourceLoader;
import com.shade.controls.LevelLock;
import com.shade.controls.ScoreControl;
import com.shade.controls.DayPhaseTimer;
import com.shade.controls.GameSlice;
import com.shade.lighting.GlobalLight;
import com.shade.lighting.LightMask;
import com.shade.util.ResourceManager;
import com.shade.states.util.Dimmer;
public class MasterState extends BasicGameState {
public static final int ID = 1;
public static final int STATE_TRANSITION_DELAY = 400;
public static final int SECONDS_PER_DAY = 120000;
public static final int SECONDS_OF_DAYLIGHT = SECONDS_PER_DAY / 2;
public static final float SHADOW_THRESHOLD = .7f;
public ResourceManager resource;
public GameSlice control;
public LevelLock levelsLock;
public ScoreControl scorecard;
public Dimmer dimmer;
public DayPhaseTimer timer;
public TrueTypeFont jekyllXSmall, jekyllSmall, jekyllMedium, jekyllLarge;
public TrueTypeFont daisySmall, daisyMedium, daisyLarge, daisyXLarge;
public Music music;
@Override
public int getID() {
return ID;
}
public void init(GameContainer container, StateBasedGame game)
throws SlickException {
resource = new ResourceManager();
// register resources
resource.register("header", "states/common/header.png");
resource.register("background", "states/common/background.png");
resource.register("trim", "states/common/trim.png");
resource.register("play-up", "states/common/play-up.png");
resource.register("play-down", "states/common/play-down.png");
resource.register("highscore-up", "states/title/highscores-up.png");
resource.register("highscore-down", "states/title/highscores-down.png");
resource.register("credits-up", "states/title/credits-up.png");
resource.register("credits-down", "states/title/credits-down.png");
loadJekyllFont();
loadDaisyFont();
// create controller
timer = new DayPhaseTimer(SECONDS_PER_DAY);
levelsLock = new LevelLock();
levelsLock.unlock(1);
levelsLock.unlock(2);
levelsLock.unlock(3);
levelsLock.unlock(4);
levelsLock.unlock(5);
levelsLock.unlock(6);
// TODO: HOW DO WE MODIFY THE LENGTH OF THE DAY AHHH
control = new GameSlice(new LightMask(5, timer), createLight(), timer);
dimmer = new Dimmer(.6f);
dimmer.run();
// register states
game.addState(new TitleState(this));
// game.addState(new InGameState(this));
game.addState(new InGameState(this));
game.addState(new HighscoreState(this));
game.addState(new CreditState(this));
game.addState(new EnterScoreState(this));
game.addState(new InstructionState(this));
game.addState(new RecapState(this));
game.addState(new SelectState(this));
music = new Music("states/common/snake-music-2.mod");
music.loop();
}
private GlobalLight createLight() {
return new GlobalLight(12, (float) (4 * Math.PI / 3), SECONDS_PER_DAY,
timer);
}
// render splash and loading screens
public void render(GameContainer container, StateBasedGame game, Graphics g)
throws SlickException {
// TODO Auto-generated method stub
}
// render splash and loading screens
public void update(GameContainer container, StateBasedGame game, int delta)
throws SlickException {
game.enterState(TitleState.ID, null, new FadeInTransition());
}
private void loadJekyllFont() throws SlickException {
try {
InputStream oi = ResourceLoader
.getResourceAsStream("states/common/jekyll.ttf");
Font f = Font.createFont(Font.TRUETYPE_FONT, oi);
jekyllXSmall = new TrueTypeFont(f.deriveFont(12f), true);
jekyllSmall = new TrueTypeFont(f.deriveFont(16f), true);
jekyllMedium = new TrueTypeFont(f.deriveFont(24f), true);
jekyllLarge = new TrueTypeFont(f.deriveFont(36f), true);
} catch (Exception e) {
throw new SlickException("Failed to load font.", e);
}
}
private void loadDaisyFont() throws SlickException {
try {
InputStream oi = ResourceLoader
.getResourceAsStream("states/common/daisymf.ttf");
Font f = Font.createFont(Font.TRUETYPE_FONT, oi);
daisySmall = new TrueTypeFont(f.deriveFont(16f), true);
daisyMedium = new TrueTypeFont(f.deriveFont(18f), true);
daisyLarge = new TrueTypeFont(f.deriveFont(24f), true);
daisyXLarge = new TrueTypeFont(f.deriveFont(36f), true);
} catch (Exception e) {
throw new SlickException("Failed to load font.", e);
}
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
d0e06403b4c0b5067e4758cd74746949652712bb | 0a43b3c71342bcedcb768424ace5551757a4ca47 | /src/main/java/fr/humanbooster/ar/config/LocaleConfiguration.java | f62ca61102d2297f1319bdb311d81bf0b1fa7a2a | [] | no_license | Fqke/jhipster-sample-application | b8d936768e49ebaa473d66c6cfa2569dbfb0365e | 556156123a9d5380029a7800babeeef5abbd4acf | refs/heads/main | 2023-03-17T19:17:44.477657 | 2021-03-11T15:48:40 | 2021-03-11T15:48:40 | 346,753,633 | 0 | 0 | null | 2021-03-11T15:50:57 | 2021-03-11T15:47:01 | Java | UTF-8 | Java | false | false | 1,035 | java | package fr.humanbooster.ar.config;
import io.github.jhipster.config.locale.AngularCookieLocaleResolver;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.LocaleResolver;
import org.springframework.web.servlet.config.annotation.*;
import org.springframework.web.servlet.i18n.LocaleChangeInterceptor;
@Configuration
public class LocaleConfiguration implements WebMvcConfigurer {
@Bean
public LocaleResolver localeResolver() {
AngularCookieLocaleResolver cookieLocaleResolver = new AngularCookieLocaleResolver();
cookieLocaleResolver.setCookieName("NG_TRANSLATE_LANG_KEY");
return cookieLocaleResolver;
}
@Override
public void addInterceptors(InterceptorRegistry registry) {
LocaleChangeInterceptor localeChangeInterceptor = new LocaleChangeInterceptor();
localeChangeInterceptor.setParamName("language");
registry.addInterceptor(localeChangeInterceptor);
}
}
| [
"jhipster-bot@jhipster.tech"
] | jhipster-bot@jhipster.tech |
4e4cbc06afa67d28374ced1bbe0f4e7e5f3e0a47 | 83e81c25b1f74f88ed0f723afc5d3f83e7d05da8 | /packages/CarrierDefaultApp/tests/unit/src/com/android/carrierdefaultapp/CarrierDefaultReceiverTest.java | 7bd163579e5d08e4166ab81e8238d8831045892b | [
"Apache-2.0",
"LicenseRef-scancode-unicode"
] | permissive | Ankits-lab/frameworks_base | 8a63f39a79965c87a84e80550926327dcafb40b7 | 150a9240e5a11cd5ebc9bb0832ce30e9c23f376a | refs/heads/main | 2023-02-06T03:57:44.893590 | 2020-11-14T09:13:40 | 2020-11-14T09:13:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,129 | java | /*
* Copyright (C) 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.carrierdefaultapp;
import static org.mockito.ArgumentMatchers.anyInt;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Intent;
import android.os.PersistableBundle;
import android.telephony.CarrierConfigManager;
import android.telephony.SubscriptionManager;
import android.telephony.TelephonyManager;
import android.test.InstrumentationTestCase;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.mockito.ArgumentCaptor;
import org.mockito.Captor;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
public class CarrierDefaultReceiverTest extends InstrumentationTestCase {
@Mock
private NotificationManager mNotificationMgr;
@Mock
private TelephonyManager mTelephonyMgr;
@Mock
private CarrierConfigManager mCarrierConfigMgr;
@Captor
private ArgumentCaptor<Integer> mInt;
@Captor
private ArgumentCaptor<Notification> mNotification;
@Captor
private ArgumentCaptor<String> mString;
private TestContext mContext;
private CarrierDefaultBroadcastReceiver mReceiver;
private static String TAG;
private static final String PORTAL_NOTIFICATION_TAG = "CarrierDefault.Portal.Notification";
private static final int PORTAL_NOTIFICATION_ID = 0;
private static int subId = 0;
@Before
public void setUp() throws Exception {
super.setUp();
TAG = this.getClass().getSimpleName();
MockitoAnnotations.initMocks(this);
mContext = new TestContext(getInstrumentation().getTargetContext());
mContext.injectSystemService(NotificationManager.class, mNotificationMgr);
mContext.injectSystemService(TelephonyManager.class, mTelephonyMgr);
mContext.injectSystemService(CarrierConfigManager.class, mCarrierConfigMgr);
doReturn(mTelephonyMgr).when(mTelephonyMgr).createForSubscriptionId(anyInt());
mReceiver = new CarrierDefaultBroadcastReceiver();
}
@After
public void tearDown() throws Exception {
super.tearDown();
}
@Test
public void testOnReceiveRedirection() {
// carrier action idx list includes 4(portal notification) & 1(disable metered APNs)
// upon redirection signal
PersistableBundle b = new PersistableBundle();
b.putStringArray(CarrierConfigManager
.KEY_CARRIER_DEFAULT_ACTIONS_ON_REDIRECTION_STRING_ARRAY, new String[]{"4,1"});
doReturn(b).when(mCarrierConfigMgr).getConfig();
Intent intent = new Intent(TelephonyManager.ACTION_CARRIER_SIGNAL_REDIRECTED);
intent.putExtra(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, subId);
mReceiver.onReceive(mContext, intent);
mContext.waitForMs(100);
verify(mNotificationMgr, times(1)).notify(mString.capture(), mInt.capture(),
mNotification.capture());
assertEquals(PORTAL_NOTIFICATION_ID, (int) mInt.getValue());
assertEquals(PORTAL_NOTIFICATION_TAG, mString.getValue());
PendingIntent pendingIntent = mNotification.getValue().contentIntent;
assertNotNull(pendingIntent);
verify(mTelephonyMgr).setCarrierDataEnabled(eq(false));
}
}
| [
"keneankit01@gmail.com"
] | keneankit01@gmail.com |
88192d6e88716ec3aa4c5776f3e59ba0e5bb6b47 | 3a5985651d77a31437cfdac25e594087c27e93d6 | /ojc-core/component-common/wsdl4j/src/com/ibm/wsdl/AbstractWSDLElement.java | 3afdc54a5ed51bd135056ffde7837b5b420f5220 | [] | no_license | vitalif/openesb-components | a37d62133d81edb3fdc091abd5c1d72dbe2fc736 | 560910d2a1fdf31879e3d76825edf079f76812c7 | refs/heads/master | 2023-09-04T14:40:55.665415 | 2016-01-25T13:12:22 | 2016-01-25T13:12:33 | 48,222,841 | 0 | 5 | null | null | null | null | UTF-8 | Java | false | false | 5,835 | java | /*
* BEGIN_HEADER - DO NOT EDIT
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the "License"). You may not use this file except
* in compliance with the License.
*
* You can obtain a copy of the license at
* https://open-jbi-components.dev.java.net/public/CDDLv1.0.html.
* See the License for the specific language governing
* permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* HEADER in each file and include the License file at
* https://open-jbi-components.dev.java.net/public/CDDLv1.0.html.
* If applicable add the following below this CDDL HEADER,
* with the fields enclosed by brackets "[]" replaced with
* your own identifying information: Portions Copyright
* [year] [name of copyright owner]
*/
/*
* @(#)AbstractWSDLElement.java
*
* Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
*
* END_HEADER - DO NOT EDIT
*/
package com.ibm.wsdl;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Vector;
import javax.wsdl.WSDLElement;
import javax.wsdl.extensions.ExtensibilityElement;
import javax.xml.namespace.QName;
import org.w3c.dom.Element;
/**
* Abstract super class for all WSDL Elements, providing some basic
* common functionality.
*/
public abstract class AbstractWSDLElement implements WSDLElement
{
protected Element docEl;
protected List extElements = new Vector();
protected Map extensionAttributes = new HashMap();
/**
* Set the documentation element for this document. This dependency
* on org.w3c.dom.Element should eventually be removed when a more
* appropriate way of representing this information is employed.
*
* @param docEl the documentation element
*/
public void setDocumentationElement(Element docEl)
{
this.docEl = docEl;
}
/**
* Get the documentation element. This dependency on org.w3c.dom.Element
* should eventually be removed when a more appropriate way of
* representing this information is employed.
*
* @return the documentation element
*/
public Element getDocumentationElement()
{
return docEl;
}
/**
* Add an extensibility element.
*
* @param extElement the extensibility element to be added
*/
public void addExtensibilityElement(ExtensibilityElement extElement)
{
extElements.add(extElement);
}
/**
* Remove an extensibility element.
*
* @param extElement the extensibility element to be removed.
* @return the extensibility element which was removed.
*/
public ExtensibilityElement removeExtensibilityElement(ExtensibilityElement extElement)
{
if(extElements.remove(extElement))
{
return extElement;
}
else
{
return null;
}
}
/**
* Get all the extensibility elements defined here.
*/
public List getExtensibilityElements()
{
return extElements;
}
/**
* Set an extension attribute on this element. Pass in a null value to remove
* an extension attribute.
*
* @param name the extension attribute name
* @param value the extension attribute value. Can be a String, a QName, a
* List of Strings, or a List of QNames.
*
* @see #getExtensionAttribute
* @see #getExtensionAttributes
* @see ExtensionRegistry#registerExtensionAttributeType
* @see ExtensionRegistry#queryExtensionAttributeType
*/
public void setExtensionAttribute(QName name, Object value)
{
if (value != null)
{
extensionAttributes.put(name, value);
}
else
{
extensionAttributes.remove(name);
}
}
/**
* Retrieve an extension attribute from this element. If the extension
* attribute is not defined, null is returned.
*
* @param name the extension attribute name
*
* @return the value of the extension attribute, or null if
* it is not defined. Can be a String, a QName, a List of Strings, or a List
* of QNames.
*
* @see #setExtensionAttribute
* @see #getExtensionAttributes
* @see ExtensionRegistry#registerExtensionAttributeType
* @see ExtensionRegistry#queryExtensionAttributeType
*/
public Object getExtensionAttribute(QName name)
{
return extensionAttributes.get(name);
}
/**
* Get the map containing all the extension attributes defined
* on this element. The keys are the qnames of the attributes.
*
* @return a map containing all the extension attributes defined
* on this element
*
* @see #setExtensionAttribute
* @see #getExtensionAttribute
*/
public Map getExtensionAttributes()
{
return extensionAttributes;
}
public String toString()
{
StringBuffer strBuf = new StringBuffer();
if (extElements.size() > 0)
{
Iterator extIterator = extElements.iterator();
if(extIterator.hasNext())
{
strBuf.append(extIterator.next());
while (extIterator.hasNext())
{
strBuf.append("\n");
strBuf.append(extIterator.next());
}
}
}
if(extensionAttributes.size() > 0)
{
Iterator keys = extensionAttributes.keySet().iterator();
if(keys.hasNext())
{
QName name = (QName)keys.next();
strBuf.append("extension attribute: ");
strBuf.append(name);
strBuf.append("=");
strBuf.append(extensionAttributes.get(name));
while (keys.hasNext())
{
name = (QName)keys.next();
strBuf.append("\n");
strBuf.append("extension attribute: ");
strBuf.append(name);
strBuf.append("=");
strBuf.append(extensionAttributes.get(name));
}
}
}
return strBuf.toString();
}
}
| [
"bitbucket@bitbucket02.private.bitbucket.org"
] | bitbucket@bitbucket02.private.bitbucket.org |
6b2e1078551c0890188d98e693a8c2afe81a8903 | 59345f77f9ae408d02790bd9c82b658774d1816a | /center-server/src/main/java/cn/kunlong/center/biz/sys/queryParam/SysJobParam.java | 0e6591735de5d4ad566644f59d863fff20e4d1bb | [] | no_license | leijmdas/dongxw-center-manager | 273cc043b56cc5f371cad17406102944b86b5e6f | d1ad101675ae52cc8de53963741329f050d8e336 | refs/heads/master | 2021-06-24T10:44:56.469426 | 2020-02-08T13:12:24 | 2020-02-08T13:12:27 | 226,605,325 | 0 | 1 | null | 2021-04-22T19:03:24 | 2019-12-08T02:48:14 | Java | UTF-8 | Java | false | false | 209 | java | package cn.kunlong.center.biz.sys.queryParam;
import cn.kunlong.center.biz.sys.domain.SysJob;
import cn.kunlong.center.core.support.query.QueryParam;
public class SysJobParam extends QueryParam<SysJob> {
}
| [
"leijmdas@163.com"
] | leijmdas@163.com |
e08d6e861c64d8153b8c9556c008bb2b7f83a7a0 | 4d25750ea53ff3e963f48e14de4fead576e57c6c | /src/main/java/secure/coding/chapter05/obj/obj04/solution/MutableClass1.java | a3ce48ea2e0cc654fcf02d16e1042917b523dedb | [] | no_license | akatkar/java-secure-coding | b995f0b30298e1ddc1b6fc272ab2ab9b538f6413 | aa0b99149d3ca475d432ae4d8a73291254c40484 | refs/heads/master | 2021-07-09T01:00:08.541508 | 2020-11-06T18:55:43 | 2020-11-06T18:55:43 | 210,122,137 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,151 | java | package secure.coding.chapter05.obj.obj04.solution;
import java.util.Date;
/**
* @rule OBJ04-J. Provide mutable classes with copy functionality to safely
* allow passing instances to untrusted code
*
* @description Mutable classes allow code external to the class to alter their
* instance or class fields. Provide means for creating copies of
* mutable classes so that disposable instances of such classes can
* be passed to untrusted code. This functionality is useful when
* methods in other classes must create copies of the particular
* class instance; see rules OBJ05-J and OBJ06-J for additional
* details
*
* @category Compliant solution with Copy Constructor
*/
public final class MutableClass1 {
private final Date date;
// Copy Constructor
public MutableClass1(MutableClass1 mc) {
this.date = new Date(mc.date.getTime());
}
public MutableClass1(Date d) {
this.date = new Date(d.getTime()); // Make defensive copy
}
public Date getDate() {
return (Date) date.clone(); // Copy and return
}
}
| [
"alikatkar@gmail.com"
] | alikatkar@gmail.com |
2d234c114578d4c1d0ad96daec827fa34dffb1e1 | 60f7b508bed2dffa32cff6c3f50d6dd6b0f25507 | /user-center/src/main/java/com/boyu/erp/platform/usercenter/service/purchaseservice/PsxDtlService.java | bc6f88627f2016c4d9b3a8157a009bcec73f93c4 | [] | no_license | clfbai/heoll | 8cca5d62eb8bce47d0882b07fb328baf508612b5 | 69845c4e78437bb0aea79a32d6a24c2fc299f388 | refs/heads/master | 2022-09-29T09:03:58.700436 | 2019-12-21T05:06:43 | 2019-12-21T05:06:43 | 165,189,003 | 0 | 0 | null | 2022-09-01T23:17:47 | 2019-01-11T06:08:00 | Java | UTF-8 | Java | false | false | 574 | java | package com.boyu.erp.platform.usercenter.service.purchaseservice;
import com.boyu.erp.platform.usercenter.vo.purchase.PsxDtlVo;
import com.boyu.erp.platform.usercenter.vo.purchase.PsxVo;
import java.util.List;
/**
* @Classname PscDtlService
* @Description TODO
* @Date 2019/7/8 12:17
* @Created wz
*/
public interface PsxDtlService {
public List<PsxDtlVo> findByPsxNum(PsxDtlVo vo);
int insertPsxDtl(PsxDtlVo vo) throws Exception;
int updatePsxDtl(PsxDtlVo vo);
int deletePsxDtl(PsxDtlVo vo);
PsxVo insertByPua(PsxVo vo) throws Exception;
}
| [
"https://gitee.com/onecaolf/mytext.git"
] | https://gitee.com/onecaolf/mytext.git |
26670834a20e2174683b794a95f6527d7fb275eb | a53f50fa7415c2ecbe80eca5ae2f879c830ae0a4 | /lib/jexcel/src/jxl/biff/formula/Minus.java | fa2bf6a280c78c435d8d213e0ba24f9e29a9b636 | [] | no_license | poshjosh/doctrackerbasicweb | a25876e8b3ca04a758956eb5c9b6d367f45396b8 | 5c6b31060bb6eda87d4fdfb05f93f768cf345684 | refs/heads/master | 2020-05-24T18:40:34.867830 | 2017-03-13T20:10:35 | 2017-03-13T20:10:35 | 84,869,653 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,951 | java | /*********************************************************************
*
* Copyright (C) 2003 Andrew Khan
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
***************************************************************************/
package jxl.biff.formula;
import java.util.logging.Logger;
/**
* Ambiguously defined minus operator, used as a place holder when parsing
* string formulas. At this stage it could be either
* a unary or binary operator - the string parser will deduce which and
* create the appropriate type
*/
class Minus extends StringOperator
{
// The logger
private static Logger logger = Logger.getLogger(StringOperator.class.getName());
/**
* Constructor
*/
public Minus()
{
super();
}
/**
* Abstract method which gets the binary version of this operator
*/
Operator getBinaryOperator()
{
return new Subtract();
}
/**
* Abstract method which gets the unary version of this operator
*/
Operator getUnaryOperator()
{
return new UnaryMinus();
}
/**
* If this formula was on an imported sheet, check that
* cell references to another sheet are warned appropriately
* Does nothing, as operators don't have cell references
*/
void handleImportedCellReferences()
{
}
}
| [
"posh.bc@gmail.com"
] | posh.bc@gmail.com |
3153eb5d96cb68fccf136f7b7d32492e0d9ea1e2 | 0c299d0c0891d114e929cc928a377d8a2b4d7e3b | /server/src/main/java/com/monitor/server/Application.java | ace8db477d69b5c9c9ec76f181f060b554b65f6c | [] | no_license | hellokaton/oh-my-monitor | 4833841e632c669a59b1212ae7ebb8b66244781d | eabe3e8847607ff24a6dfac2b8ac1e2c8f230014 | refs/heads/master | 2021-11-25T22:36:20.525666 | 2017-01-06T10:44:49 | 2017-01-06T10:44:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 222 | java | package com.monitor.server;
import com.blade.Blade;
/**
* Created by biezhi on 2017/1/6.
*/
public class Application {
public static void main(String[] args) {
Blade.$().start(Application.class);
}
}
| [
"biezhi.me@gmail.com"
] | biezhi.me@gmail.com |
3bc2b141a15ca8ae576186639d603d3a1cc7bb69 | c37852e6a87c64193c347622984581296cbd2f93 | /src/erp/mod/hrs/db/SHrsFormerPayrollIncident.java | 3ea2553a7408b970d0ebd5568e8fbe4d9017af71 | [
"MIT"
] | permissive | sjuba/siie32 | 050ba6b622987e8a70e1f8511381e686408fb129 | b42fe004465f0efc188c74dea426d7bfe607da51 | refs/heads/master | 2020-03-23T12:57:37.016330 | 2018-04-27T17:22:34 | 2018-04-27T17:22:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,113 | java | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package erp.mod.hrs.db;
import java.util.Date;
/**
*
* @author Juan Barajas
*/
public class SHrsFormerPayrollIncident {
protected int mnPkTipo;
protected int mnPkSubtipo;
protected Date mtFecha;
protected Date mtFechaInicial;
protected Date mtFechaFinal;
public SHrsFormerPayrollIncident() {
mnPkTipo = 0;
mnPkSubtipo = 0;
mtFecha = null;
mtFechaInicial = null;
mtFechaFinal = null;
}
public void setPkTipo(int n) { mnPkTipo = n; }
public void setPkSubtipo(int n) { mnPkSubtipo = n; }
public void setFecha(Date t) { mtFecha = t; }
public void setFechaInicial(Date t) { mtFechaInicial = t; }
public void setFechaFinal(Date t) { mtFechaFinal = t; }
public int getPkTipo() { return mnPkTipo; }
public int getPkSubtipo() { return mnPkSubtipo; }
public Date getFecha() { return mtFecha; }
public Date getFechaInicial() { return mtFechaInicial; }
public Date getFechaFinal() { return mtFechaFinal; }
}
| [
"contacto@swaplicado.com.mx"
] | contacto@swaplicado.com.mx |
1ffd05b2a5ed38f7d80807bce547ae9da1ab31fb | 3d57a71de7208e44af7dacb956068ba1661f2a2b | /api/src/main/java/de/derfrzocker/custom/ore/generator/api/BiomeConfig.java | 3f7c445a75a2db412370cd3a5dcb96b23564e15b | [
"MIT"
] | permissive | Water-Flow/Custom-Ore-Generator | fa8e1cae94652f033592b970185e65f8f3555a76 | 25804372ab605b7f1bfc45f2933ac8f02bfb3184 | refs/heads/master | 2023-01-14T12:14:30.397348 | 2020-11-12T19:21:05 | 2020-11-12T19:21:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,628 | java | /*
* MIT License
*
* Copyright (c) 2019 - 2020 Marvin (DerFrZocker)
*
* 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 de.derfrzocker.custom.ore.generator.api;
import org.bukkit.Material;
import org.bukkit.block.Biome;
import java.util.Optional;
import java.util.Set;
/**
* Biome specific values are handel in the OreConfig itself
* Only for Backwards compatibility.
*/
@Deprecated
public interface BiomeConfig {
Biome getBiome();
Optional<OreConfig> getOreConfig(Material material);
Set<OreConfig> getOreConfigs();
void addOreConfig(OreConfig oreConfig);
}
| [
"derrieple@gmail.com"
] | derrieple@gmail.com |
c68d31ef1c056215dc9ef3dc21c98dcba5f4e868 | 03f38f29d7ee5e62fdfdb286b211d34206a9e95f | /usermngrStrutsHibernate/src/com/ibm/etp/vo/UserSearchResultVO.java | 435d85b0c0425d7926404a8e465f0fa51b988ab3 | [] | no_license | mythread/my_code | 71e58133044a70f45b7185cb86230f2ed37cdfcc | 3f4edadf1c4241b0e80ebfac15f7b91827a1a1b7 | refs/heads/master | 2021-01-20T15:36:14.700459 | 2015-04-17T09:32:00 | 2015-04-17T09:32:00 | 34,107,730 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,050 | java | package com.ibm.etp.vo;
/**
* <dl>
* <dt><b>类机能概要:</b></dt><dd>
*
* </dd>
* </dl>
* @copyright :Copyright 2011, IBM ETP. All right reserved.
*【Update History】
* Version Date Company Name Anken-No Anken-Name
* ------- ---------- ---------- -------------- ---------- ------------
* 1.00 2011-11-2 IBM Peng Peng create
*/
public class UserSearchResultVO {
private String username;
private String userid;
private String statusName;
private String email;
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getUserid() {
return userid;
}
public void setUserid(String userid) {
this.userid = userid;
}
public String getStatusName() {
return statusName;
}
public void setStatusName(String statusName) {
this.statusName = statusName;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
}
| [
"zhangxiongcai337@gmail.com"
] | zhangxiongcai337@gmail.com |
75c057dcc4cd85a10a33eef3ae22150e3108522b | 2bbb2ed0ccb0bc7690056812465c0ff86befbb75 | /gmall-manage-web/src/main/java/com/atguigu/gmall/manage/GmallManageWebApplication.java | 9885fc921d708cd707dbfb751fa7f7efa7bcbbf5 | [] | no_license | 1902788121/gmall0225 | ce70c1d51605fa92d7106c80cba322e79084e5ec | 67376c5491397a0f5d132e80d6e69d7555a0437f | refs/heads/master | 2022-09-17T08:47:06.184756 | 2019-08-13T15:01:43 | 2019-08-13T15:01:43 | 193,527,890 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 334 | java | package com.atguigu.gmall.manage;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class GmallManageWebApplication {
public static void main(String[] args) {
SpringApplication.run(GmallManageWebApplication.class, args);
}
}
| [
"123"
] | 123 |
887b285c737db51fa9ee19e1115eee7df9e5c419 | 0eeea8f93b4f154db22e98a1b1a72ae5adba8dba | /src/cn/osworks/aos/core/asset/AOSBeanLoader.java | f533744f3ccff671a957025c1ec690d12c2e2551 | [] | no_license | atguigu2020dfbb/aosyb | 497dc3b79b3f73441338e97b2f7072644c984efb | 16c031ac63cc30235ed114a8b0a4b8870ece2328 | refs/heads/master | 2023-01-10T08:16:20.744253 | 2020-11-16T08:16:35 | 2020-11-16T08:16:35 | 313,138,331 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,754 | java | package cn.osworks.aos.core.asset;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import cn.osworks.aos.core.exception.AOSException;
import cn.osworks.aos.web.asset.WebApplicationContextExporterListener;
/**
* <b>SpringBean加载器, 提供直接获取SpringBean的方法</b>
* <p>
* 优先使用Web.xml里的WebApplicationContext。如果WebApplicationContext为null,
* 则重新初始化ApplicationContext(在一些未启动Web的场景下使用,如后台测试等)。
* </p>
* <p>
* (1)、使用此加载器可以获得一个Spring容器的ApplicationContext实例,通过此实例你就可以方便的使用getBean()
* 方法获取SpringBean. <br>
* (2)、您也可以直接通过我们提供的getSpringBean()方法活得SpringBean。
* </p>
*
* @author OSWorks-XC
*/
public class AOSBeanLoader {
private static Log log = LogFactory.getLog(AOSBeanLoader.class);
private static ApplicationContext applicationContext;
static {
try {
initApplicationContext();
} catch (Exception e) {
e.printStackTrace();
}
}
/**
* 初始化ApplicationContext对象
*
* @throws Exception
*/
private static void initApplicationContext() throws Exception {
applicationContext = WebApplicationContextExporterListener.getWebApplicationContext();
// 优先使用ServletContext环境下导出的WebApplicationContext()
if (applicationContext == null) {
try {
if (log.isInfoEnabled())
log.info("系统正在初始化...");
applicationContext = new ClassPathXmlApplicationContext(new String[] { "aos.cxt.xml" });
if (log.isInfoEnabled())
log.info("初始化完成.");
} catch (Exception e) {
log.error("Spring初始化失败,请检查您的配置文件。");
e.printStackTrace();
System.exit(0);
}
}
}
/**
* 返回ApplicationContext对象
*
* @return ApplicationContext 返回的ApplicationContext实例
*/
public static ApplicationContext getApplicationContext() {
return applicationContext;
}
/**
* 获取一个SpringBean服务
*
* @param pBeanId
* Spring配置文件名中配置的SpringID号
* @return Object 返回的SpringBean实例
*/
public static Object getSpringBean(String pBeanId) {
Object springBean = null;
try {
springBean = applicationContext.getBean(pBeanId);
} catch (NoSuchBeanDefinitionException e) {
String msg = "Spring容器中没有找到ID为:[" + pBeanId + "]的SpringBean组件,请检查!";
throw new AOSException(msg, e);
}
return springBean;
}
}
| [
"eclipse_user@atguigu.com"
] | eclipse_user@atguigu.com |
c4b5ac792fcfdd6db6c885d4397b485971d54ca6 | 40a0f546bcf56cee5bce681fe173580c15f4066f | /samples/example.purchasing.data/src/main/java/example/purchasing/data/Quote.java | 34570992aae5f027500a3a46ddc95e6b22af4793 | [] | no_license | objectiser/sgl | 6f141f95878e63fd99f88e91ff69c4ae40be20b6 | 1f2c97bd31f84042dff72ca967a26d525582ce2c | refs/heads/master | 2016-09-10T22:41:05.756757 | 2011-03-25T22:21:24 | 2011-03-25T22:21:24 | 1,527,516 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 235 | java | package example.purchasing.data;
public class Quote implements java.io.Serializable {
private static final long serialVersionUID = 4993358744492060677L;
private int m_amount=0;
public int getAmount() {
return(m_amount);
}
}
| [
"gary@pi4tech.com"
] | gary@pi4tech.com |
942681969fd23906ad5b40fcb910ccfd44e2d6af | a6b9b92285862be5b8d2c380aecd14f6690fc7c7 | /assignments/assignment3/VideoUploadClient/src/vandy/mooc/presenter/VideoDetailOps.java | 350bb59130a9723f964248a4bd18cd8bc6389f9b | [
"Apache-2.0"
] | permissive | CourseraK2/mobilecloud-15 | 6752d44015f78581f9c42e95d5aaff681c9c8501 | 9d2949a65ff9a9fb62c86cbc143cf6669e00a30c | refs/heads/master | 2022-12-22T17:49:45.085435 | 2021-03-30T19:34:04 | 2021-03-30T19:34:04 | 38,765,728 | 0 | 0 | Apache-2.0 | 2022-12-10T06:08:55 | 2015-07-08T16:22:29 | Java | UTF-8 | Java | false | false | 7,836 | java | package vandy.mooc.presenter;
import java.lang.ref.WeakReference;
import java.util.List;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.media.ThumbnailUtils;
import android.net.Uri;
import android.provider.MediaStore;
import android.util.Log;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RatingBar;
import android.widget.RatingBar.OnRatingBarChangeListener;
import android.widget.TextView;
import android.widget.Toast;
import vandy.mooc.R;
import vandy.mooc.common.ConfigurableOps;
import vandy.mooc.common.GenericAsyncTask;
import vandy.mooc.common.GenericAsyncTaskOps;
import vandy.mooc.common.Utils;
import vandy.mooc.model.provider.Video;
import vandy.mooc.model.provider.VideoClient;
import vandy.mooc.model.provider.VideoController;
import vandy.mooc.model.services.DownloadVideoService;
import vandy.mooc.provider.VideoProviderHelper;
import vandy.mooc.utils.VideoStorageUtils;
import vandy.mooc.view.VideoDetailActivity;
/**
* This class implements all the Video-related operations. It
* implements ConfigurableOps so it can be created/managed by the
* GenericActivity framework. It implements Callback so it can serve
* as the target of an asynchronous Retrofit RPC call. It extends
* GenericAsyncTaskOps so its doInBackground() method runs in a
* background task.
*/
public class VideoDetailOps
implements ConfigurableOps, GenericAsyncTaskOps<Double, Void, Video> {
/**
* Debugging tag used by the Android logger.
*/
private static final String TAG =
VideoDetailOps.class.getSimpleName();
/**
* Used to enable garbage collection.
*/
private WeakReference<VideoDetailActivity> mActivity;
private WeakReference<ImageView> mThumbnailImageView;
private WeakReference<TextView> mTitleTextView;
private WeakReference<RatingBar> mRankRatingBar;
private WeakReference<Button> mDownloadButton;
private WeakReference<Button> mPlayButton;
/**
* It allows access to application-specific resources.
*/
private Context mApplicationContext;
/**
* VideoController mediates the communication between Server and
* Android Storage.
*/
VideoController mVideoController;
/**
* Meta-data video
*/
VideoClient mVideo;
VideoProviderHelper mVideoProvider;
private GenericAsyncTask<Double, Void, Video, VideoDetailOps> mAsyncTask;
/**
* Default constructor that's needed by the GenericActivity
* framework.
*/
public VideoDetailOps() {
}
/**
* Called after a runtime configuration change occurs to finish
* the initialisation steps.
*/
public void onConfiguration(Activity activity,
boolean firstTimeIn) {
final String time =
firstTimeIn
? "first time"
: "second+ time";
Log.d(TAG,
"onConfiguration() called the "
+ time
+ " with activity = "
+ activity);
// (Re)set the mActivity WeakReference.
mActivity =
new WeakReference<>((VideoDetailActivity) activity);
mThumbnailImageView = new WeakReference<>(
(ImageView) activity.findViewById(R.id.thumbnail));
mTitleTextView = new WeakReference<>(
(TextView) activity.findViewById(R.id.title));
mRankRatingBar = new WeakReference<>(
(RatingBar) activity.findViewById(R.id.rank));
mDownloadButton = new WeakReference<>(
(Button) activity.findViewById(R.id.btn_download));
mPlayButton = new WeakReference<>(
(Button) activity.findViewById(R.id.btn_play));
mRankRatingBar.get().setOnRatingBarChangeListener(new OnRatingBarChangeListener(){
@Override
public void onRatingChanged(RatingBar ratingBar, float rating, boolean fromUser) {
// TODO Auto-generated method stub
mAsyncTask = new GenericAsyncTask<>(VideoDetailOps.this);
mAsyncTask.execute(Double.valueOf(rating));
}
});
if (firstTimeIn) {
// Get the Application Context.
mApplicationContext =
activity.getApplicationContext();
mVideoProvider = new VideoProviderHelper(mApplicationContext);
Video video = activity.getIntent().getParcelableExtra(VideoDetailActivity.VIDEO_DATA);
mVideo = mVideoProvider.getVideo(video.getId());
if(mVideo==null){
mVideo = new VideoClient(video);
}else
{
mVideo.refresh(video);
mVideoProvider.addVideo(mVideo);
}
// Create VideoController that will mediate the
// communication between Server and Android Storage.
Log.d(TAG, "Creating VideoController");
mVideoController =
new VideoController(mApplicationContext);
}
displayVideo();
}
/**
* Display the Videos in ListView
*
* @param videos
*/
public void displayVideo() {
if (mVideo != null) {
if(mVideo.getFilepath()!=null&&
!mVideo.getFilepath().isEmpty()&&
VideoStorageUtils.fileExists(mVideo.getFilepath()))
{
mDownloadButton.get().setEnabled(false);
mPlayButton.get().setEnabled(true);
mThumbnailImageView.get().setImageBitmap(
ThumbnailUtils.createVideoThumbnail(
mVideo.getFilepath(),
MediaStore.Video.Thumbnails.MICRO_KIND));
}
else
{
mDownloadButton.get().setEnabled(true);
mPlayButton.get().setEnabled(false);
}
mTitleTextView.get().setText(mVideo.getTitle());
} else {
Utils.showToast(mActivity.get(),
"Please connect to the Video Service");
mActivity.get().finish();
}
}
public void displayRating() {
mRankRatingBar.get().setIsIndicator(true);
mRankRatingBar.get().setOnRatingBarChangeListener(null);
mRankRatingBar.get().setRating((float) mVideo.getRating());
Log.d(TAG, "Rating: "+mVideo.getRating()+" Count: "+mVideo.getCount());
displayVideo();
}
/**
* Start a service that Uploads the Video having given Id.
*
* @param videoId
*/
public void downloadVideo(Long videoId){
mApplicationContext.startService
(DownloadVideoService.makeIntent
(mApplicationContext,
videoId));
}
public void downloadVideo() {
downloadVideo(mVideo.getId());
}
public void playVideo() {
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(mVideo.getFilepath()));
intent.setDataAndType(Uri.parse(mVideo.getFilepath()), mVideo.getContentType());
mActivity.get().startActivity(intent);
}
public void refreshVideo(String path) {
if(path!=null){
mVideo.setFilepath(path);
mVideoProvider.addVideo(mVideo);
displayVideo();
}else{
Toast.makeText(mActivity.get(), "Download Failed", Toast.LENGTH_LONG)
.show();
}
}
@Override
public Video doInBackground(Double... params) {
return mVideoController.rateVideo(mVideo.getId(), params[0]);
}
@Override
public void onPostExecute(Video result) {
if(result!=null){
mVideo.refresh(result);
displayRating();
}else{
Toast.makeText(mApplicationContext, "Couldnt Connect to the server", Toast.LENGTH_LONG).show();
}
}
}
| [
"kinshuk.ram@gmail.com"
] | kinshuk.ram@gmail.com |
c4e29047ba19f2c1bc2f1f2d6702f24ebcc3b73a | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/java-undertow-server/generated/src/main/java/org/openapitools/model/ComAdobeGraniteQueriesImplHcQueriesStatusHealthCheckProperties.java | a7ebe6df08c7431ff417daca86f9a646ad21a636 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Java | false | false | 2,138 | java | package org.openapitools.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.openapitools.model.ConfigNodePropertyArray;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaUndertowServerCodegen", date = "2019-08-05T00:56:20.785Z[GMT]")
public class ComAdobeGraniteQueriesImplHcQueriesStatusHealthCheckProperties {
private ConfigNodePropertyArray hcTags = null;
/**
**/
public ComAdobeGraniteQueriesImplHcQueriesStatusHealthCheckProperties hcTags(ConfigNodePropertyArray hcTags) {
this.hcTags = hcTags;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("hc.tags")
public ConfigNodePropertyArray getHcTags() {
return hcTags;
}
public void setHcTags(ConfigNodePropertyArray hcTags) {
this.hcTags = hcTags;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ComAdobeGraniteQueriesImplHcQueriesStatusHealthCheckProperties comAdobeGraniteQueriesImplHcQueriesStatusHealthCheckProperties = (ComAdobeGraniteQueriesImplHcQueriesStatusHealthCheckProperties) o;
return Objects.equals(hcTags, comAdobeGraniteQueriesImplHcQueriesStatusHealthCheckProperties.hcTags);
}
@Override
public int hashCode() {
return Objects.hash(hcTags);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ComAdobeGraniteQueriesImplHcQueriesStatusHealthCheckProperties {\n");
sb.append(" hcTags: ").append(toIndentedString(hcTags)).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 ");
}
}
| [
"cliffano@gmail.com"
] | cliffano@gmail.com |
bcf3600bcce76940781f7063cb809f3fa6d9e4c4 | f04bfb23b022d6ee9cef86f0c0f0cc7c36caf49d | /src/main/java/reflect/td4/Container.java | f11e37f4e54d4f1cb0591187acad68a65ed007ce | [] | no_license | lgu-cours/java-reflection-api | 0702155725e4dcbe8a87d3f72b21abe1e0f2c158 | bc42b571bb929efbf83068dc163600396c3ee283 | refs/heads/master | 2021-01-11T03:05:05.354781 | 2017-10-18T08:51:38 | 2017-10-18T08:51:38 | 71,066,854 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 787 | java | package reflect.td4;
import java.util.Hashtable;
public class Container {
private Hashtable<String,Object> beans = new Hashtable<String,Object>();
public void addBean(String name, Object bean)
{
beans.put(name, bean);
}
public Object getValue(String name )
{
// TODO
// 1) isoler le nom du bean et le nom de l'attribut
// ex "chien.name" --> "chien" & "name"
String beanName = "" ;
// 2) rechercher le bean dans le container
Object bean = beans.get(beanName);
if ( bean == null )
{
throw new RuntimeException("Bean '" + beanName + "' not found in the container");
}
// 3) si bean OK : rechercher le "getter" correspondant au nom de l'attribut
// ex "name" --> getName()
// 4) call "getter" + return value
return null ;
}
}
| [
"laguerin@LFR002634.corp.capgemini.com"
] | laguerin@LFR002634.corp.capgemini.com |
a36e0ff283b126e9b9d2d7d20f758a371fe71d47 | 056ff5f928aec62606f95a6f90c2865dc126bddc | /javashop/shop-core/src/main/java/com/enation/app/shop/component/payment/plugin/alipay/sdk34/api/request/MybankFinanceYulibaoPriceQueryRequest.java | 3858c7dcc74c33d4844eded409fb60d6ddcedb38 | [] | no_license | luobintianya/javashop | 7846c7f1037652dbfdd57e24ae2c38237feb1104 | ac15b14e8f6511afba93af60e8878ff44e380621 | refs/heads/master | 2022-11-17T11:12:39.060690 | 2019-09-04T08:57:58 | 2019-09-04T08:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,482 | java | package com.enation.app.shop.component.payment.plugin.alipay.sdk34.api.request;
import java.util.Map;
import com.enation.app.shop.component.payment.plugin.alipay.sdk34.api.AlipayObject;
import com.enation.app.shop.component.payment.plugin.alipay.sdk34.api.AlipayRequest;
import com.enation.app.shop.component.payment.plugin.alipay.sdk34.api.domain.MybankFinanceYulibaoPriceQueryModel;
import com.enation.app.shop.component.payment.plugin.alipay.sdk34.api.internal.util.AlipayHashMap;
import com.enation.app.shop.component.payment.plugin.alipay.sdk34.api.response.MybankFinanceYulibaoPriceQueryResponse;
/**
* ALIPAY API: mybank.finance.yulibao.price.query request
*
* @author auto create
* @since 1.0, 2016-11-18 16:08:17
*/
public class MybankFinanceYulibaoPriceQueryRequest implements AlipayRequest<MybankFinanceYulibaoPriceQueryResponse> {
private AlipayHashMap udfParams; // add user-defined text parameters
private String apiVersion="1.0";
/**
* 查询余利宝行情信息(七日年化收益率、万份收益金额)
*/
private String bizContent;
public void setBizContent(String bizContent) {
this.bizContent = bizContent;
}
public String getBizContent() {
return this.bizContent;
}
private String terminalType;
private String terminalInfo;
private String prodCode;
private String notifyUrl;
private String returnUrl;
private boolean needEncrypt=false;
private AlipayObject bizModel=null;
public String getNotifyUrl() {
return this.notifyUrl;
}
public void setNotifyUrl(String notifyUrl) {
this.notifyUrl = notifyUrl;
}
public String getReturnUrl() {
return this.returnUrl;
}
public void setReturnUrl(String returnUrl) {
this.returnUrl = returnUrl;
}
public String getApiVersion() {
return this.apiVersion;
}
public void setApiVersion(String apiVersion) {
this.apiVersion = apiVersion;
}
public void setTerminalType(String terminalType){
this.terminalType=terminalType;
}
public String getTerminalType(){
return this.terminalType;
}
public void setTerminalInfo(String terminalInfo){
this.terminalInfo=terminalInfo;
}
public String getTerminalInfo(){
return this.terminalInfo;
}
public void setProdCode(String prodCode) {
this.prodCode=prodCode;
}
public String getProdCode() {
return this.prodCode;
}
public String getApiMethodName() {
return "mybank.finance.yulibao.price.query";
}
public Map<String, String> getTextParams() {
AlipayHashMap txtParams = new AlipayHashMap();
txtParams.put("biz_content", this.bizContent);
if(udfParams != null) {
txtParams.putAll(this.udfParams);
}
return txtParams;
}
public void putOtherTextParam(String key, String value) {
if(this.udfParams == null) {
this.udfParams = new AlipayHashMap();
}
this.udfParams.put(key, value);
}
public Class<MybankFinanceYulibaoPriceQueryResponse> getResponseClass() {
return MybankFinanceYulibaoPriceQueryResponse.class;
}
public boolean isNeedEncrypt() {
return this.needEncrypt;
}
public void setNeedEncrypt(boolean needEncrypt) {
this.needEncrypt=needEncrypt;
}
public AlipayObject getBizModel() {
return this.bizModel;
}
public void setBizModel(AlipayObject bizModel) {
this.bizModel=bizModel;
}
}
| [
"sylow@javashop.cn"
] | sylow@javashop.cn |
0851946612d6288631097ab89fcda2218180cb26 | 02d5be181497c8e64bb2b696b8a1937ab9a12685 | /app/src/main/java/example/com/douying/activitys/SwtichActorActivityS.java | be91bf2e7745190069904c8d76e5f50e5d6e2d1e | [] | no_license | xiao349305433/Douying | e0a16a89ceb09dcaca74a31f7fa2170ec5b76435 | 3f6e77adca0b5c98b74d5abd505b17d6fcf8cd7e | refs/heads/master | 2020-04-16T01:30:52.616206 | 2019-01-30T08:59:41 | 2019-01-30T08:59:41 | 165,176,577 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,470 | java | package example.com.douying.activitys;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import com.chad.library.adapter.base.BaseQuickAdapter;
import java.util.ArrayList;
import java.util.List;
import butterknife.BindView;
import butterknife.OnClick;
import cn.jzvd.MyJZVideoPlayerStandard;
import douying.example.com.mylibrary.view.utils.ImgLoadUtils;
import example.com.douying.BaseActivity;
import example.com.douying.R;
import example.com.douying.activity.CameraActivity;
import example.com.douying.activity.ModelActivity;
import example.com.douying.adapter.SwtichActorAdapter;
import example.com.douying.http.MainHttp;
import example.com.douying.model.PartBean;
import example.com.douying.view.CustomDialog;
import qiu.niorgai.StatusBarCompat;
public class SwtichActorActivityS extends BaseActivity {
@BindView(R.id.swtichactors_rv)
RecyclerView swtichactor_rv;
@BindView(R.id.actor_mjvpst)
MyJZVideoPlayerStandard actor_mjvpst;
SwtichActorAdapter swtichActorAdapter;
List<Object> list = new ArrayList();
CustomDialog dialog;
PartBean partBean;
@Override
public void afterCreate(Bundle savedInstanceState) {
StatusBarCompat.translucentStatusBar(this);
setdata();
}
@Override
public int provideContentViewId() {
return R.layout.activity_swtichactors;
}
@OnClick({R.id.swtichactors_tocamera})
public void test(View view) {
switch (view.getId()) {
case R.id.swtichactors_tocamera:
setdialog();
break;
}
}
private void setdata() {
partBean = getIntent().getParcelableExtra("PartBean");
ImgLoadUtils.loadImage(SwtichActorActivityS.this,MainHttp.RES_STRING+partBean.getPlayposter(),actor_mjvpst.thumbImageView);
actor_mjvpst.setUp(MainHttp.RES_STRING+partBean.getPlay(), actor_mjvpst.SCREEN_WINDOW_NORMAL,"");
swtichActorAdapter = new SwtichActorAdapter(partBean.getRole());
swtichactor_rv.setAdapter(swtichActorAdapter);
swtichactor_rv.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));
swtichActorAdapter.setOnItemChildClickListener(new BaseQuickAdapter.OnItemChildClickListener() {
@Override
public void onItemChildClick(BaseQuickAdapter adapter, View view, int position) {
switch (view.getId()) {
case R.id.item_swtichactor_img:
for (int i = 0; i < partBean.getRole().size() ; i++) {
if(i==position){
partBean.getRole().get(position).setIschoose(true);
}else {
partBean.getRole().get(i).setIschoose(false);
}
}
swtichActorAdapter.notifyDataSetChanged();
break;
}
}
});
}
private void takePhoto() {
if (ActivityCompat.checkSelfPermission(SwtichActorActivityS.this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
ActivityCompat.requestPermissions(SwtichActorActivityS.this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, 1);
}
if (ContextCompat.checkSelfPermission(this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED) {
ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.CAMERA}, 0x12);
return;
}
}
private void setdialog() {
CustomDialog.Builder builder = new CustomDialog.Builder(this);
dialog =
builder.cancelTouchout(false)
.view(R.layout.dialog_swtichface)
.heightDimenRes(R.dimen.dialog_loginerror_height)
.widthDimenRes(R.dimen.dialog_loginerror_width)
.style(R.style.Dialog)
.setButtonText(R.id.tocamera, "拍摄")
.setButtonText(R.id.todatabasse, "调取")
.addViewOnclick(R.id.close, new View.OnClickListener() {
@Override
public void onClick(View view) {
dialog.dismiss();
}
})
.addViewOnclick(R.id.tocamera, new View.OnClickListener() {
@Override
public void onClick(View view) {
startActivity(new Intent(SwtichActorActivityS.this, CameraActivity.class));
}
})
.addViewOnclick(R.id.todatabasse, new View.OnClickListener() {
@Override
public void onClick(View view) {
startActivity(new Intent(SwtichActorActivityS.this, ModelActivity.class));
}
})
.build();
dialog.show();
}
}
| [
"xiao349305433@qq.com"
] | xiao349305433@qq.com |
c24aea2d00dd23ed31086cf9df5f61ac35ad7b7d | 9702a51962cda6e1922d671dbec8acf21d9e84ec | /src/main/com/topcoder/web/tc/view/tag/PreferenceGroupIteratorTagInfo.java | 02f81274dae99a346fce2900bb7c08d20ae92920 | [] | no_license | topcoder-platform/tc-website | ccf111d95a4d7e033d3cf2f6dcf19364babb8a08 | 15ab92adf0e60afb1777b3d548b5ba3c3f6c12f7 | refs/heads/dev | 2023-08-23T13:41:21.308584 | 2023-04-04T01:28:38 | 2023-04-04T01:28:38 | 83,655,110 | 3 | 19 | null | 2023-04-04T01:32:16 | 2017-03-02T08:43:01 | Java | UTF-8 | Java | false | false | 650 | java | /*
* PreferenceGroupIteratorTagInfo.java
*
* Created on October 1, 2004, 2:48 PM
*/
package com.topcoder.web.tc.view.tag;
import javax.servlet.jsp.tagext.TagData;
import javax.servlet.jsp.tagext.TagExtraInfo;
import javax.servlet.jsp.tagext.VariableInfo;
/**
*
* @author rfairfax
*/
public class PreferenceGroupIteratorTagInfo extends TagExtraInfo {
public VariableInfo[] getVariableInfo(TagData data) {
return new VariableInfo[]{
new VariableInfo(data.getId(),
"com.topcoder.web.tc.model.PreferenceGroup",
true,
VariableInfo.NESTED)
};
}
}
| [
"amorehead@cb5b18d2-80dd-4a81-9b1c-945e1ee644f9"
] | amorehead@cb5b18d2-80dd-4a81-9b1c-945e1ee644f9 |
1b9525e0b9dd2416a8bb68ec0ddbd3e023560aed | 516fb367430d4c1393f4cd726242618eca862bda | /sources/com/facebook/ads/internal/s/a/g.java | 3b5b4a20e2d962d412974c95f7ec05ac9a7698b7 | [] | no_license | cmFodWx5YWRhdjEyMTA5/Gaana2 | 75d6d6788e2dac9302cff206a093870e1602921d | 8531673a5615bd9183c9a0466325d0270b8a8895 | refs/heads/master | 2020-07-22T15:46:54.149313 | 2019-06-19T16:11:11 | 2019-06-19T16:11:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,626 | java | package com.facebook.ads.internal.s.a;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.pm.Signature;
import android.os.Build;
import android.support.annotation.Nullable;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.security.MessageDigest;
import java.security.PublicKey;
import java.security.cert.CertificateFactory;
public class g {
private static final String a = "g";
public enum a {
UNKNOWN(0),
UNROOTED(1),
ROOTED(2);
public final int d;
private a(int i) {
this.d = i;
}
}
/* JADX WARNING: Removed duplicated region for block: B:13:0x001d A:{Catch:{ Throwable -> 0x0020 }} */
/* JADX WARNING: Removed duplicated region for block: B:11:0x001a A:{Catch:{ Throwable -> 0x0020 }} */
public static com.facebook.ads.internal.s.a.g.a a() {
/*
r0 = c(); Catch:{ Throwable -> 0x0020 }
if (r0 != 0) goto L_0x0017;
L_0x0006:
r0 = b(); Catch:{ Throwable -> 0x0020 }
if (r0 != 0) goto L_0x0017;
L_0x000c:
r0 = "su";
r0 = a(r0); Catch:{ Throwable -> 0x0020 }
if (r0 == 0) goto L_0x0015;
L_0x0014:
goto L_0x0017;
L_0x0015:
r0 = 0;
goto L_0x0018;
L_0x0017:
r0 = 1;
L_0x0018:
if (r0 == 0) goto L_0x001d;
L_0x001a:
r0 = com.facebook.ads.internal.s.a.g.a.ROOTED; Catch:{ Throwable -> 0x0020 }
return r0;
L_0x001d:
r0 = com.facebook.ads.internal.s.a.g.a.UNROOTED; Catch:{ Throwable -> 0x0020 }
return r0;
L_0x0020:
r0 = com.facebook.ads.internal.s.a.g.a.UNKNOWN;
return r0;
*/
throw new UnsupportedOperationException("Method not decompiled: com.facebook.ads.internal.s.a.g.a():com.facebook.ads.internal.s.a.g$a");
}
@Nullable
public static String a(Context context) {
try {
return b(context);
} catch (Exception unused) {
return null;
}
}
private static PublicKey a(Signature signature) {
return CertificateFactory.getInstance("X.509").generateCertificate(new ByteArrayInputStream(signature.toByteArray())).getPublicKey();
}
private static boolean a(String str) {
for (String file : System.getenv("PATH").split(":")) {
File file2 = new File(file);
if (file2.exists() && file2.isDirectory()) {
File[] listFiles = file2.listFiles();
if (listFiles == null) {
continue;
} else {
for (File name : listFiles) {
if (name.getName().equals(str)) {
return true;
}
}
continue;
}
}
}
return false;
}
@SuppressLint({"PackageManagerGetSignatures"})
private static String b(Context context) {
StringBuilder stringBuilder = new StringBuilder();
for (Signature a : context.getPackageManager().getPackageInfo(context.getPackageName(), 64).signatures) {
stringBuilder.append(i.a(MessageDigest.getInstance("SHA1").digest(a(a).getEncoded())));
stringBuilder.append(";");
}
return stringBuilder.toString();
}
private static boolean b() {
String str = Build.TAGS;
return str != null && str.contains("test-keys");
}
private static boolean c() {
return new File("/system/app/Superuser.apk").exists();
}
}
| [
"master@master.com"
] | master@master.com |
87aaf70e8e82056a4d3b5d3eb570ad9cc48f7a8b | 28bff920143b5d0052fbf6199c5645327673bea1 | /src/main/java/java/nio/channels/spi/SelectorProvider.java | a83c2354b8a879c2bdc4a1faa598e71c6080fff4 | [] | no_license | zhangpanqin/fly-jdk8 | 24fd419e1defbf51e96fe9752d3a5e4292e2672b | d3ea0773c63eaea61668f812d04cdea1024a3d42 | refs/heads/master | 2023-03-05T22:41:21.783129 | 2021-02-21T03:20:58 | 2021-02-21T03:20:58 | 272,603,433 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,984 | java | package java.nio.channels.spi;
import java.io.IOException;
import java.net.ProtocolFamily;
import java.nio.channels.*;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.Iterator;
import java.util.ServiceConfigurationError;
import java.util.ServiceLoader;
/**
* 根据不同的平台选择不同的实现
* SelectorProvider.provider 提供获得实现.优先级是通过设置的 jvm 属性 spi
* 主要使用的方法
* SelectorProvider.provider().openSelector()
* SelectorProvider.provider().openServerSocketChannel()
* SelectorProvider.provider().openSocketChannel()
*/
public abstract class SelectorProvider {
private static final Object lock = new Object();
private static SelectorProvider provider = null;
protected SelectorProvider() {
SecurityManager sm = System.getSecurityManager();
if (sm != null) {
sm.checkPermission(new RuntimePermission("selectorProvider"));
}
}
public abstract AbstractSelector openSelector() throws IOException;
public abstract ServerSocketChannel openServerSocketChannel() throws IOException;
public abstract SocketChannel openSocketChannel() throws IOException;
private static boolean loadProviderFromProperty() {
String cn = System.getProperty("java.nio.channels.spi.SelectorProvider");
if (cn == null) {
return false;
}
try {
Class<?> c = Class.forName(cn, true,
ClassLoader.getSystemClassLoader());
provider = (SelectorProvider) c.newInstance();
return true;
} catch (ClassNotFoundException x) {
throw new ServiceConfigurationError(null, x);
} catch (IllegalAccessException x) {
throw new ServiceConfigurationError(null, x);
} catch (InstantiationException x) {
throw new ServiceConfigurationError(null, x);
} catch (SecurityException x) {
throw new ServiceConfigurationError(null, x);
}
}
private static boolean loadProviderAsService() {
ServiceLoader<SelectorProvider> sl =
ServiceLoader.load(SelectorProvider.class,
ClassLoader.getSystemClassLoader());
Iterator<SelectorProvider> i = sl.iterator();
for (; ; ) {
try {
if (!i.hasNext()) {
return false;
}
provider = i.next();
return true;
} catch (ServiceConfigurationError sce) {
if (sce.getCause() instanceof SecurityException) {
// Ignore the security exception, try the next provider
continue;
}
throw sce;
}
}
}
public static SelectorProvider provider() {
synchronized (lock) {
if (provider != null) {
return provider;
}
return AccessController.doPrivileged(
new PrivilegedAction<SelectorProvider>() {
@Override
public SelectorProvider run() {
if (loadProviderFromProperty()) {
return provider;
}
if (loadProviderAsService()) {
return provider;
}
provider = sun.nio.ch.DefaultSelectorProvider.create();
return provider;
}
});
}
}
public abstract DatagramChannel openDatagramChannel() throws IOException;
public abstract DatagramChannel openDatagramChannel(ProtocolFamily family) throws IOException;
public abstract Pipe openPipe() throws IOException;
public Channel inheritedChannel() throws IOException {
return null;
}
}
| [
"zhangpanqin@outlook.com"
] | zhangpanqin@outlook.com |
14907256ee065a2865ed8dd486e5908d201cfe85 | d09942d3f616e5f79f124d0a5ac003f66c9b81a6 | /lib/netty-bgp4/src/main/java/org/bgp4j/netty/protocol/refresh/ORFEntryCodec.java | cc3521c78bbe8f43752a536d51f90aee258fca97 | [
"Apache-2.0",
"MIT"
] | permissive | rbieniek/BGP4J | c69fb429a0fd2d00b637f40ebd8a6032cafc388f | 2ee0e64ffe1018cca038d74ec8b6f69e55613a57 | refs/heads/master | 2020-05-18T19:35:22.884031 | 2015-02-09T17:19:23 | 2015-02-09T17:19:23 | 3,314,133 | 10 | 8 | null | null | null | null | UTF-8 | Java | false | false | 3,189 | java | /**
* Copyright 2012 Rainer Bieniek (Rainer.Bieniek@web.de)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* File: org.bgp4j.netty.protocol.refresh.ORFEntryCodec.java
*/
package org.bgp4j.netty.protocol.refresh;
import org.bgp4j.net.AddressPrefixBasedORFEntry;
import org.bgp4j.net.ORFAction;
import org.bgp4j.net.ORFEntry;
import org.bgp4j.netty.NLRICodec;
import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.buffer.ChannelBuffers;
/**
* @author Rainer Bieniek (Rainer.Bieniek@web.de)
*
*/
public class ORFEntryCodec {
/**
* get the length of the encoded ORF entry in octets
*
* @return
*/
public static final int calculateEncodingLength(ORFEntry entry) {
return 1 + calculateORFPayloadEncodingLength(entry);
}
private static int calculateORFPayloadEncodingLength(ORFEntry entry) {
if(entry instanceof AddressPrefixBasedORFEntry)
return calculateAddressPrefixBasedORFPayloadEncodingLength((AddressPrefixBasedORFEntry)entry);
else
throw new IllegalArgumentException("cannot handle ORFEntry of type " + entry.getClass().getName());
}
/**
* encode the ORF entry
*
* @return
*/
public static final ChannelBuffer encodeORFEntry(ORFEntry entry) {
ChannelBuffer buffer = ChannelBuffers.buffer(calculateEncodingLength(entry));
ChannelBuffer payload = encodeORFPayload(entry);
buffer.writeByte(entry.getAction().toCode() << 6 | entry.getMatch().toCode() << 5);
if(payload != null)
buffer.writeBytes(payload);
return buffer;
}
private static ChannelBuffer encodeORFPayload(ORFEntry entry) {
if(entry instanceof AddressPrefixBasedORFEntry)
return encodeAddressPrefixBasedORFPayload((AddressPrefixBasedORFEntry)entry);
else
throw new IllegalArgumentException("cannot handle ORFEntry of type " + entry.getClass().getName());
}
private static int calculateAddressPrefixBasedORFPayloadEncodingLength(AddressPrefixBasedORFEntry entry) {
int size = 0;
if(entry.getAction() != ORFAction.REMOVE_ALL)
size += 6 + NLRICodec.calculateEncodedNLRILength(entry.getPrefix()); // 4 octet sequence + 1 octet min length + 1 octet max length + prefix length
return size;
}
private static ChannelBuffer encodeAddressPrefixBasedORFPayload(AddressPrefixBasedORFEntry entry) {
ChannelBuffer buffer = null;
if(entry.getAction() != ORFAction.REMOVE_ALL) {
buffer = ChannelBuffers.buffer(calculateAddressPrefixBasedORFPayloadEncodingLength(entry));
buffer.writeInt(entry.getSequence());
buffer.writeByte(entry.getMinLength());
buffer.writeByte(entry.getMaxLength());
buffer.writeBytes(NLRICodec.encodeNLRI(entry.getPrefix()));
}
return buffer;
}
}
| [
"Rainer.Bieniek@web.de"
] | Rainer.Bieniek@web.de |
f6be210c73ece316076a793d4534b33eebfbd737 | a13ab684732add3bf5c8b1040b558d1340e065af | /java6-src/com/sun/org/apache/bcel/internal/generic/IMPDEP1.java | 92ba1af1d30f8fbdfdd4926657a1a4f83c4f9df6 | [] | no_license | Alivop/java-source-code | 554e199a79876343a9922e13ccccae234e9ac722 | f91d660c0d1a1b486d003bb446dc7c792aafd830 | refs/heads/master | 2020-03-30T07:21:13.937364 | 2018-10-25T01:49:39 | 2018-10-25T01:51:38 | 150,934,150 | 5 | 2 | null | null | null | null | UTF-8 | Java | false | false | 3,412 | java | package com.sun.org.apache.bcel.internal.generic;
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2001 The Apache Software Foundation. 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. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "Apache" and "Apache Software Foundation" and
* "Apache BCEL" must not be used to endorse or promote products
* derived from this software without prior written permission. For
* written permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* "Apache BCEL", nor may "Apache" appear in their name, without
* prior written permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
/**
* IMPDEP1 - Implementation dependent
*
* @version $Id: IMPDEP1.java,v 1.1.2.1 2005/07/31 23:44:55 jeffsuttor Exp $
* @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A>
*/
public class IMPDEP1 extends Instruction {
public IMPDEP1() {
super(com.sun.org.apache.bcel.internal.Constants.IMPDEP1, (short)1);
}
/**
* Call corresponding visitor method(s). The order is:
* Call visitor methods of implemented interfaces first, then
* call methods according to the class hierarchy in descending order,
* i.e., the most specific visitXXX() call comes last.
*
* @param v Visitor object
*/
public void accept(Visitor v) {
v.visitIMPDEP1(this);
}
}
| [
"liulp@zjhjb.com"
] | liulp@zjhjb.com |
8cdfb98a5662c7e6f360d76f4a5ba584faff7e4e | 3e6bca3ad86ac9bbb85929ef7fbb0c3de539aaea | /hnb/src/main/java/com/hnb/member/MemberDAOImpl.java | 7c96f6d715f0c15ce8246518c7226e66b8453889 | [] | no_license | YoungJuHwang/sts-hnb | 35ce13ffba5670821dc4fc82d7ce3a99c8902d5c | 86b6191b7ea38a51959bc961b5aaec67030e442a | refs/heads/master | 2021-01-10T14:39:54.358926 | 2015-12-07T03:36:19 | 2015-12-07T03:36:19 | 47,527,290 | 0 | 2 | null | null | null | null | UTF-8 | Java | false | false | 5,566 | java | package com.hnb.member;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import com.hnb.global.Constants;
import com.hnb.global.DatabaseFactory;
import com.hnb.global.Vendor;
public class MemberDAOImpl implements MemberDAO{
private Connection con;
private Statement stmt;
private PreparedStatement pstmt;
private ResultSet rs;
private List<MemberVO> list = new ArrayList<MemberVO>();
private MemberVO member = new MemberVO();
private static MemberDAO instance = new MemberDAOImpl();
public static MemberDAO getInstance(){
return instance;
}
private MemberDAOImpl() {
con = DatabaseFactory
.getDatabase(Vendor.ORACLE, Constants.ORACLE_ID, Constants.ORACLE_PASSWORD)
.getConnection();
}
public List<MemberVO> selectAll() {
List<MemberVO> list = new ArrayList<MemberVO>();
try {
String sql = "";
stmt = con.createStatement(); // 쿼리를 실행하는 객체
rs = stmt.executeQuery(sql);
while (rs.next()) {
MemberVO temp = new MemberVO();
temp.setUserid(rs.getString("userid"));
temp.setPassword(rs.getString("password"));
temp.setName(rs.getString("name"));
temp.setBirth(rs.getString("birth"));
temp.setGender(rs.getString("gender"));
temp.setPhone(rs.getString("phone"));
temp.setProfile(rs.getString("profile"));
temp.setRegdate(rs.getString("regdate"));
list.add(temp);
}
} catch (SQLException e) {
e.printStackTrace();
}
return list;
}
public int insert(MemberVO o) {
int result = 0;
try {
String sql = "insert into member("
+ "userid,password,name,birth,phone,email,gender,addr,profile,regdate"
+ ") values(?,?,?,?,?,?,?,?,?,sysdate)";
pstmt = con.prepareStatement(sql);
pstmt.setString(1, o.getUserid());
pstmt.setString(2, o.getPassword());
pstmt.setString(3, o.getName());
pstmt.setString(4, o.getBirth());
pstmt.setString(5, o.getPhone());
pstmt.setString(6, o.getEmail());
pstmt.setString(7, o.getGender());
pstmt.setString(8, o.getAddr());
pstmt.setString(9, o.getProfile());
result = pstmt.executeUpdate();
} catch (SQLException e) {
e.printStackTrace();
}
System.out.println("DAO : 회원가입 결과 "+result);
return result;
}
public int update(MemberVO member) {
int result = 0;
try {
String sql = "update member set password = ?, addr = ?, phone = ?, email = ?"
+ "where userid = ?";
pstmt = con.prepareStatement(sql);
pstmt.setString(1, member.getPassword());
pstmt.setString(2, member.getAddr());
pstmt.setString(3, member.getPhone());
pstmt.setString(4, member.getEmail());
pstmt.setString(5, member.getUserid());
result = pstmt.executeUpdate();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.out.println("DAO : 오라클 변경후 리턴값 : "+result);
return result;
}
public List<MemberVO> selectSomeBy(String s1,String s2) {
try {
String sql = "";
stmt = con.createStatement();
rs = stmt.executeQuery(sql);
while (rs.next()) {
MemberVO temp = new MemberVO();
temp.setUserid(rs.getString("userid"));
temp.setPassword(rs.getString("password"));
temp.setName(rs.getString("name"));
temp.setBirth(rs.getString("birth"));
temp.setGender(rs.getString("gender"));
temp.setPhone(rs.getString("phone"));
temp.setProfile(rs.getString("profile"));
temp.setRegdate(rs.getString("regdate"));
list.add(temp);
}
} catch (SQLException e) {
e.printStackTrace();
}
return list;
}
public MemberVO selectOneBy(String key) {
MemberVO temp = new MemberVO();
try {
stmt = con.createStatement();
rs = stmt.executeQuery("select * from member where userid = '"+key+"'");
while (rs.next()) {
temp.setUserid(rs.getString("userid"));
temp.setPassword(rs.getString("password"));
temp.setName(rs.getString("name"));
temp.setBirth(rs.getString("birth"));
temp.setGender(rs.getString("gender"));
temp.setPhone(rs.getString("phone"));
temp.setProfile(rs.getString("profile"));
temp.setRegdate(rs.getString("regdate"));
}
} catch (SQLException e) {
e.printStackTrace();
}
System.out.println("홍길동 명세DAO "+temp.getName());
return temp;
}
@Override
public int count() {
int temp = 0;
try {
String sql = "";
stmt = con.createStatement();
rs = stmt.executeQuery(sql);
while (rs.next()) {
temp = rs.getInt("count");
}
} catch (SQLException e) {
e.printStackTrace();
}
return temp;
}
public int delete(String key) {
int result = 0;
try {
String sql = "delete from member where userid = ?";
pstmt = con.prepareStatement(sql);
pstmt.setString(1, key);
result = pstmt.executeUpdate();
} catch (SQLException e) {
e.printStackTrace();
}
System.out.println("삭제 성공 !");
return result;
}
public MemberVO login(String id, String pass){
MemberVO loginMember = new MemberVO();
loginMember = this.selectOneBy(id);
System.out.println("로그인DAO 이름출력 : "+loginMember.getName());
if (loginMember.getUserid() == null) {
return null;
}
if (loginMember.getPassword().equals(pass)) {
return loginMember;
}else{
return null;
}
}
}
| [
"HB@HB-PC"
] | HB@HB-PC |
4addfa88311a461babb7e091561b235459631945 | 1aef4669e891333de303db570c7a690c122eb7dd | /src/main/java/com/alipay/api/domain/AlipayUserPrincipalInfo.java | be6b757159ce23f34b1e12f659df6df6e5fd6b2c | [
"Apache-2.0"
] | permissive | fossabot/alipay-sdk-java-all | b5d9698b846fa23665929d23a8c98baf9eb3a3c2 | 3972bc64e041eeef98e95d6fcd62cd7e6bf56964 | refs/heads/master | 2020-09-20T22:08:01.292795 | 2019-11-28T08:12:26 | 2019-11-28T08:12:26 | 224,602,331 | 0 | 0 | Apache-2.0 | 2019-11-28T08:12:26 | 2019-11-28T08:12:25 | null | UTF-8 | Java | false | false | 1,035 | java | package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 用户主体信息,包含用户支付宝userId、登录名等.
*
* @author auto create
* @since 1.0, 2017-06-22 16:42:37
*/
public class AlipayUserPrincipalInfo extends AlipayObject {
private static final long serialVersionUID = 6485796554928975214L;
/**
* 用户电子邮箱
*/
@ApiField("email")
private String email;
/**
* 用户的手机号
*/
@ApiField("mobile")
private String mobile;
/**
* 支付宝userId
*/
@ApiField("user_id")
private String userId;
public String getEmail() {
return this.email;
}
public void setEmail(String email) {
this.email = email;
}
public String getMobile() {
return this.mobile;
}
public void setMobile(String mobile) {
this.mobile = mobile;
}
public String getUserId() {
return this.userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
}
| [
"ben.zy@antfin.com"
] | ben.zy@antfin.com |
f04c951b426bb627807f59daa630f25f6b22884e | 542f352614185ea134355b61a8ee11d5e7d713af | /zfgj-contract-spring-boot/src/main/java/com/dlfc/zfgj/mapper/SysUserMapper.java | 2ffdc1893e233253cad16d29d5e81730f840103f | [] | no_license | iversonwuwei/zfgj-spring-boot-1.0.0 | 1798d3af99bd8a658e206f12627deef04d016ec9 | 2a28568290edd17ac557b878e095e824d8b5d1ed | refs/heads/master | 2021-01-25T09:31:51.563362 | 2017-06-09T10:08:33 | 2017-06-09T10:10:08 | 93,845,536 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,223 | java | package com.dlfc.zfgj.mapper;
import com.dlfc.admin.common.persistence.MyMapper;
import com.dlfc.admin.common.persistence.annotation.MyBatisDao;
import com.dlfc.zfgj.entity.SysUser;
import com.dlfc.zfgj.entity.SysUserExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@MyBatisDao
public interface SysUserMapper extends MyMapper<SysUser> {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_user
*
* @mbggenerated Thu Nov 12 16:48:22 CST 2015
*/
int countByExample(SysUserExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_user
*
* @mbggenerated Thu Nov 12 16:48:22 CST 2015
*/
int deleteByExample(SysUserExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_user
*
* @mbggenerated Thu Nov 12 16:48:22 CST 2015
*/
int deleteByPrimaryKey(String id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_user
*
* @mbggenerated Thu Nov 12 16:48:22 CST 2015
*/
int insert(SysUser record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_user
*
* @mbggenerated Thu Nov 12 16:48:22 CST 2015
*/
int insertSelective(SysUser record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_user
*
* @mbggenerated Thu Nov 12 16:48:22 CST 2015
*/
List<SysUser> selectByExample(SysUserExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_user
*
* @mbggenerated Thu Nov 12 16:48:22 CST 2015
*/
SysUser selectByPrimaryKey(String id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_user
*
* @mbggenerated Thu Nov 12 16:48:22 CST 2015
*/
int updateByExampleSelective(@Param("record") SysUser record, @Param("example") SysUserExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_user
*
* @mbggenerated Thu Nov 12 16:48:22 CST 2015
*/
int updateByExample(@Param("record") SysUser record, @Param("example") SysUserExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_user
*
* @mbggenerated Thu Nov 12 16:48:22 CST 2015
*/
int updateByPrimaryKeySelective(SysUser record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table sys_user
*
* @mbggenerated Thu Nov 12 16:48:22 CST 2015
*/
int updateByPrimaryKey(SysUser record);
// int isLoginName(String loginName);
//
// String getUserName(String id);
//
// SysUser findByLoginName(String loginName);
} | [
"wuwei@housecenter.cn"
] | wuwei@housecenter.cn |
c886f725638a84097375386d65ac35c0c0d12163 | 7e689be329d1aae9065b59c9549ee06fddecee3b | /platform/src/java/com/xcase/common/impl/simple/core/CompareResult.java | 5217538f298a9265679c65cdb2c1e0dac8179bad | [] | no_license | martinpg2001/xcase | 14564efa8160105ed2301a2c7ad79293a039414a | e530d16f951adbdde1694b0d837bfd6c6c9b7f6b | refs/heads/master | 2023-08-22T14:28:40.712362 | 2023-08-01T03:52:35 | 2023-08-01T03:52:35 | 34,886,456 | 0 | 2 | null | 2022-12-12T02:45:28 | 2015-05-01T02:20:51 | Java | UTF-8 | Java | false | false | 984 | java | /**
* Copyright 2017 Xcase All rights reserved.
*/
package com.xcase.common.impl.simple.core;
/**
*
* @author martin
*/
public class CompareResult {
private boolean result;
private String message;
public CompareResult(String message) {
this.result = true;
this.message = message;
}
public CompareResult(boolean result, String message) {
this.result = result;
this.message = message;
}
/**
* @return the result
*/
public boolean getResult() {
return this.result;
}
/**
*
* @param result
*/
public void setResult(boolean result) {
this.result = result;
}
/**
* @return the message
*/
public String getMessage() {
return this.message;
}
/**
*
* @param message
*/
public void setMessage(String message) {
this.message = message;
}
}
| [
"martin.gilchrist@intapp.com"
] | martin.gilchrist@intapp.com |
f3da9e2352bc32b0a4df1e40d73a5b17c9c7d746 | b801d688e01ca0ea993c1a84e1bc164967258aff | /springboot-sample/oauth-sample/src/main/java/com/github/jitwxs/sample/oauth/OauthService.java | f2edfd9a83cfdfa40d982892503a33b95f975d2d | [
"Apache-2.0"
] | permissive | jitwxs/blog-sample | 1a1e4152b48939baa5b09a2704dd089dfbe520ed | 5123346e01a1ec94cc56b5afbd45732487d7ecb8 | refs/heads/master | 2022-02-24T06:04:26.341746 | 2022-02-16T14:11:26 | 2022-02-16T14:11:26 | 131,931,262 | 339 | 243 | Apache-2.0 | 2021-09-20T15:25:44 | 2018-05-03T02:32:58 | Java | UTF-8 | Java | false | false | 1,501 | java | package com.github.jitwxs.sample.oauth;
import com.github.jitwxs.sample.oauth.utils.RandomUtils;
import com.github.jitwxs.sample.oauth.utils.jedis.JedisClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
/**
* @author jitwxs
* @since 2018/5/22 20:33
*/
@Service
public class OauthService {
@Autowired
private JedisClient jedisClient;
@Value("${redis.oauth.state}")
public String OAUTH_STATE_KEY;
/**
* 生成并保存state入缓存
* @author jitwxs
* @since 2018/5/22 20:57
*/
public String genState() {
String state = RandomUtils.time();
// 保证生成的state未存在于redis中
while(jedisClient.sismember(OAUTH_STATE_KEY, state)) {
state = RandomUtils.time();
}
// 保存state
jedisClient.sadd(OAUTH_STATE_KEY, state);
return state;
}
/**
* 校验state
* @author jitwxs
* @since 2018/5/22 20:58
*/
public Boolean checkState(String state) {
Boolean flag = jedisClient.sismember(OAUTH_STATE_KEY, state);
// 如果不存在,代表state非法;否则合法,并将其从缓存中删除
if(!flag) {
return false;
} else {
jedisClient.srem(OAUTH_STATE_KEY, state);
return true;
}
}
}
| [
"jitwxs@foxmail.com"
] | jitwxs@foxmail.com |
d540397137d9d0897a13b5530da1577e12bbb12a | 4a7cb14aa934df8f362cf96770e3e724657938d8 | /MFES/ATS/Project/analysis/projects/83/.evosuite/best-tests/LojaNotFoundException_ESTest.java | 0208c037f8f0dd7028addc7db8bbf848a8b98f84 | [] | no_license | pCosta99/Masters | 7091a5186f581a7d73fd91a3eb31880fa82bff19 | f835220de45a3330ac7a8b627e5e4bf0d01d9f1f | refs/heads/master | 2023-08-11T01:01:53.554782 | 2021-09-22T07:51:51 | 2021-09-22T07:51:51 | 334,012,667 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 699 | java | /*
* This file was automatically generated by EvoSuite
* Mon Jan 25 21:17:55 GMT 2021
*/
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true, useJEE = true)
public class LojaNotFoundException_ESTest extends LojaNotFoundException_ESTest_scaffolding {
@Test(timeout = 4000)
public void test0() throws Throwable {
LojaNotFoundException lojaNotFoundException0 = new LojaNotFoundException();
}
}
| [
"costapedro.a1999@gmail.com"
] | costapedro.a1999@gmail.com |
d18f8707b9034ac3d93da1679cbb4160c9481150 | 995f73d30450a6dce6bc7145d89344b4ad6e0622 | /Mate20-9.0/src/main/java/com/android/internal/telephony/HwReportConstants.java | 36fdece5676a5e8d7098ae27ba665217a26cfdfc | [] | no_license | morningblu/HWFramework | 0ceb02cbe42585d0169d9b6c4964a41b436039f5 | 672bb34094b8780806a10ba9b1d21036fd808b8e | refs/heads/master | 2023-07-29T05:26:14.603817 | 2021-09-03T05:23:34 | 2021-09-03T05:23:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,339 | java | package com.android.internal.telephony;
public class HwReportConstants {
public static final short E907047001_MCCMNC_OTHERSLOT_VARCHAR = 2;
public static final short E907047001_MCCMNC_VARCHAR = 0;
public static final short E907047001_SIMOPERATOR_VARCHAR = 1;
public static final short E907047001_SIMOPER_OTHERSLOT_VARCHAR = 3;
public static final short E907047002_AUTOTIMEZONE_INT = 2;
public static final short E907047002_NITZ_VARCHAR = 1;
public static final short E907047002_REGINFO_CLASS = 0;
public static final short E907047002_SUBID_INT = 3;
public static final short E907047002_TIMEZONESOURCE_VARCHAR = 4;
public static final short E907047003_AUTOTIMEZONE_INT = 2;
public static final short E907047003_MNITZUPDATEDTIME_BIT = 1;
public static final short E907047003_REGINFO_CLASS = 0;
public static final short E907047003_RPLMN_VARCHAR = 3;
public static final short E907047003_TIMEZONESOURCE_VARCHAR = 4;
public static final short E907047004_FORBIDDENREASON_VARCHAR = 4;
public static final short E907047004_ISVSIMOPEN_BIT = 2;
public static final short E907047004_NITZ_VARCHAR = 3;
public static final short E907047004_REGINFO_CLASS = 0;
public static final short E907047004_SUBID_INT = 1;
public static final short E907047005_ACESS_LOCATION_BIT = 1;
public static final short E907047005_AUTOTIMEZONE_INT = 3;
public static final short E907047005_LOCATION_MODE_INT = 2;
public static final short E907047005_PS_STATUS_BIT = 4;
public static final short E907047005_REGINFO_CLASS = 0;
public static final short E907047006_ACESS_LOCATION_BIT = 2;
public static final short E907047006_AUTOTIMEZONE_INT = 4;
public static final short E907047006_CURRENTZONE_VARCHAR = 1;
public static final short E907047006_LOCATION_MODE_INT = 3;
public static final short E907047006_PS_STATUS_BIT = 5;
public static final short E907047006_REGINFO_CLASS = 0;
public static final short E907047007_ACESS_LOCATION_BIT = 2;
public static final short E907047007_AUTOTIMEZONE_INT = 4;
public static final short E907047007_LOCATION_MODE_INT = 3;
public static final short E907047007_PS_STATUS_BIT = 5;
public static final short E907047007_REGINFO_CLASS = 0;
public static final short E907047007_ZONE_VARCHAR = 1;
}
| [
"dstmath@163.com"
] | dstmath@163.com |
e647e62afef1cea0f90dbcbb036fe32c0d1da730 | b214f96566446763ce5679dd2121ea3d277a9406 | /modules/desktop-awt/desktop-awt-eawt-wrapper/src/main/java/consulo/eawt/wrapper/event/FullScreenListenerWrapper.java | 706dd9c6fb6e296faec078cba904c65192175e2b | [
"Apache-2.0",
"LicenseRef-scancode-jgraph"
] | permissive | consulo/consulo | aa340d719d05ac6cbadd3f7d1226cdb678e6c84f | d784f1ef5824b944c1ee3a24a8714edfc5e2b400 | refs/heads/master | 2023-09-06T06:55:04.987216 | 2023-09-01T06:42:16 | 2023-09-01T06:42:16 | 10,116,915 | 680 | 54 | Apache-2.0 | 2023-06-05T18:28:51 | 2013-05-17T05:48:18 | Java | UTF-8 | Java | false | false | 2,132 | java | /*
* Copyright 2013-2022 consulo.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package consulo.eawt.wrapper.event;
import com.apple.eawt.AppEvent;
import com.apple.eawt.FullScreenListener;
/**
* @author VISTALL
* @since 14/01/2022
*/
public abstract class FullScreenListenerWrapper {
private FullScreenListener myFullScreenListener = new FullScreenListener() {
@Override
public void windowEnteringFullScreen(AppEvent.FullScreenEvent fullScreenEvent) {
FullScreenListenerWrapper.this.windowEnteringFullScreen(new AppFullScreenEventWrapper(fullScreenEvent));
}
@Override
public void windowEnteredFullScreen(AppEvent.FullScreenEvent fullScreenEvent) {
FullScreenListenerWrapper.this.windowEnteredFullScreen(new AppFullScreenEventWrapper(fullScreenEvent));
}
@Override
public void windowExitingFullScreen(AppEvent.FullScreenEvent fullScreenEvent) {
FullScreenListenerWrapper.this.windowExitingFullScreen(new AppFullScreenEventWrapper(fullScreenEvent));
}
@Override
public void windowExitedFullScreen(AppEvent.FullScreenEvent fullScreenEvent) {
FullScreenListenerWrapper.this.windowExitedFullScreen(new AppFullScreenEventWrapper(fullScreenEvent));
}
};
public void windowEnteringFullScreen(AppFullScreenEventWrapper event) {
}
public void windowEnteredFullScreen(AppFullScreenEventWrapper event) {
}
public void windowExitingFullScreen(AppFullScreenEventWrapper event) {
}
public void windowExitedFullScreen(AppFullScreenEventWrapper event) {
}
public Object getDelegate() {
return myFullScreenListener;
}
}
| [
"vistall.valeriy@gmail.com"
] | vistall.valeriy@gmail.com |
c610dacc022dca1991894e5f376e32c513b16cbf | 2f5cd5ba8a78edcddf99c7e3c9c19829f9dbd214 | /java/playgrounds/agarwalamit/src/main/java/playground/agarwalamit/utils/networkProcessing/shapeFileToNetworkDelhi.java | d8e21fa7917b203f32f3f8c287fb39208def1f9e | [] | no_license | HTplex/Storage | 5ff1f23dfe8c05a0a8fe5354bb6bbc57cfcd5789 | e94faac57b42d6f39c311f84bd4ccb32c52c2d30 | refs/heads/master | 2021-01-10T17:43:20.686441 | 2016-04-05T08:56:57 | 2016-04-05T08:56:57 | 55,478,274 | 1 | 1 | null | 2020-10-28T20:35:29 | 2016-04-05T07:43:17 | Java | UTF-8 | Java | false | false | 5,866 | java | /* *********************************************************************** *
* project: org.matsim.*
* *
* *********************************************************************** *
* *
* copyright : (C) 2014 by the members listed in the COPYING, *
* LICENSE and WARRANTY file. *
* email : info at matsim dot org *
* *
* *********************************************************************** *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* See also COPYING, LICENSE and WARRANTY file *
* *
* *********************************************************************** */
package playground.agarwalamit.utils.networkProcessing;
import org.geotools.feature.simple.SimpleFeatureTypeImpl;
import org.matsim.api.core.v01.Coord;
import org.matsim.api.core.v01.Id;
import org.matsim.api.core.v01.Scenario;
import org.matsim.api.core.v01.network.Link;
import org.matsim.api.core.v01.network.Network;
import org.matsim.api.core.v01.network.NetworkWriter;
import org.matsim.api.core.v01.network.Node;
import org.matsim.core.config.Config;
import org.matsim.core.config.ConfigUtils;
import org.matsim.core.network.NetworkImpl;
import org.matsim.core.network.algorithms.NetworkCleaner;
import org.matsim.core.scenario.ScenarioUtils;
import org.matsim.core.utils.geometry.CoordinateTransformation;
import org.matsim.core.utils.geometry.transformations.TransformationFactory;
import org.matsim.core.utils.gis.ShapeFileReader;
import org.opengis.feature.simple.SimpleFeature;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
/**
* @author amit
*/
public class shapeFileToNetworkDelhi {
private final static String networkShapeFile = "./input/sarojini/abc.shp";
private final static String matsimNetwork = "./input/sarojini/matsimNetwork.xml";
final static CoordinateTransformation ct =TransformationFactory.getCoordinateTransformation(TransformationFactory.WGS84,"EPSG:24378");
private static Map<Coord, String> coordId = new HashMap<Coord, String>();
public static void main(String[] args) {
Config config = ConfigUtils.createConfig();
Scenario scenario = ScenarioUtils.createScenario(config);
ShapeFileReader reader = new ShapeFileReader();
Collection<SimpleFeature> features = reader.readFileAndInitialize(networkShapeFile);
Network network = scenario.getNetwork();
for(SimpleFeature sf : features){
// reads every feature here (corresponding to every line in attribute table)
if(sf.getFeatureType() instanceof SimpleFeatureTypeImpl){
// create from Node
Double fromNodeX= (Double) sf.getAttribute("fromX");
Double fromNodeY = (Double) sf.getAttribute("fromY");
Coord fromCoord = scenario.createCoord(fromNodeX, fromNodeY);
String fNodeIdStr;
if(coordId.containsKey(fromCoord)) {
fNodeIdStr = coordId.get(fromCoord);
} else {
fNodeIdStr = String.valueOf(sf.getAttribute("fromId"));
coordId.put(fromCoord, fNodeIdStr);
}
Id<Node> fromNodeId = Id.create(fNodeIdStr,Node.class);
Node node1;
if(!network.getNodes().containsKey((fromNodeId))){
node1 = ((NetworkImpl) network).createAndAddNode(fromNodeId, ct.transform(fromCoord));
}else{
node1=network.getNodes().get((fromNodeId));
}
// create to Node
Double toNodeX = (Double) sf.getAttribute("toX");
Double toNodeY = (Double) sf.getAttribute("toY");
Coord toCoord = scenario.createCoord(toNodeX, toNodeY);
String tNodeIdStr;
if(coordId.containsKey(toCoord)) {
tNodeIdStr = coordId.get(toCoord);
} else {
tNodeIdStr = String.valueOf(sf.getAttribute("toId"));
coordId.put(toCoord, tNodeIdStr);
}
Id<Node> toNodeId = Id.create(tNodeIdStr,Node.class);
Node node2;
if(!network.getNodes().containsKey((toNodeId))){
node2 = ((NetworkImpl) network).createAndAddNode(toNodeId, ct.transform(toCoord));
}else{
node2 = network.getNodes().get((toNodeId));
}
// matsim have one way links thus create two links for both directions
Id<Link> linkId1 = Id.create(node1.getId().toString()+"_"+node2.getId().toString(),Link.class);
Id<Link> linkId2 =Id.create(node2.getId().toString()+"_"+node1.getId().toString(),Link.class);
if(node1.equals(node2)){
// throw new RuntimeException();
}
// following parameters are necessary for simulation, I just used some data to show how it works.
double linkLength = (Double) sf.getAttribute("LENGTH");
double capacity = 1800;//(1800*(Double) sf.getAttribute("WIDTH"))/3.5;;
double numberOfLanes = 2;
double freeSpeed = 60/3.6;
// add links to network
if (!network.getLinks().containsKey(linkId1)) {
((NetworkImpl) network).createAndAddLink(linkId1, node1, node2, linkLength, freeSpeed, capacity,numberOfLanes);
}
if (!network.getLinks().containsKey(linkId2)) {
((NetworkImpl) network).createAndAddLink(linkId2, node2, node1, linkLength, freeSpeed, capacity,numberOfLanes);
}
}
}
// write network to a file
new NetworkCleaner().run(network);
NetworkWriter writer = new NetworkWriter(network);
writer.write(matsimNetwork);
}
}
| [
"htplex@gmail.com"
] | htplex@gmail.com |
35fce648272472f9647b6184640f19bcfafc22c6 | 73364c57427e07e90d66692a3664281d5113177e | /dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/monitoring/DefaultMonitoringService.java | bc94bab358a7c4bd0cb8822ddb87db375eb3bed2 | [
"BSD-3-Clause"
] | permissive | abyot/sun-pmt | 4681f008804c8a7fc7a75fe5124f9b90df24d44d | 40add275f06134b04c363027de6af793c692c0a1 | refs/heads/master | 2022-12-28T09:54:11.381274 | 2019-06-10T15:47:21 | 2019-06-10T15:47:21 | 55,851,437 | 0 | 1 | BSD-3-Clause | 2022-12-16T12:05:12 | 2016-04-09T15:21:22 | Java | UTF-8 | Java | false | false | 5,675 | java | package org.hisp.dhis.dxf2.monitoring;
/*
* Copyright (c) 2004-2017, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* Neither the name of the HISP project 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.
*/
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hisp.dhis.setting.SettingKey;
import org.hisp.dhis.setting.SystemSettingManager;
import org.hisp.dhis.system.SystemInfo;
import org.hisp.dhis.system.SystemService;
import org.hisp.dhis.system.util.HttpHeadersBuilder;
import org.joda.time.DateTime;
import org.joda.time.DateTimeConstants;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.scheduling.TaskScheduler;
import org.springframework.web.client.HttpClientErrorException;
import org.springframework.web.client.HttpServerErrorException;
import org.springframework.web.client.ResourceAccessException;
import org.springframework.web.client.RestTemplate;
import java.util.Date;
import javax.annotation.PostConstruct;
/**
* @author Lars Helge Overland
*/
public class DefaultMonitoringService
implements MonitoringService
{
private static final Log log = LogFactory.getLog( DefaultMonitoringService.class );
private static final int PUSH_INTERVAL = DateTimeConstants.MILLIS_PER_MINUTE * 5;
private static final int PUSH_INITIAL_DELAY = DateTimeConstants.MILLIS_PER_SECOND * 30;
@Autowired
private SystemService systemService;
@Autowired
private SystemSettingManager systemSettingManager;
@Autowired
private RestTemplate restTemplate;
@Autowired
private TaskScheduler scheduler;
@PostConstruct
public void init()
{
Date date = new DateTime().plus( PUSH_INITIAL_DELAY ).toDate();
scheduler.scheduleWithFixedDelay( () -> pushMonitoringInfo(), date, PUSH_INTERVAL );
log.info( "Scheduled monitoring push service" );
}
@Override
public void pushMonitoringInfo()
{
String url = (String) systemSettingManager.getSystemSetting( SettingKey.SYSTEM_MONITORING_URL );
String username = (String) systemSettingManager.getSystemSetting( SettingKey.SYSTEM_MONITORING_USERNAME );
String password = (String) systemSettingManager.getSystemSetting( SettingKey.SYSTEM_MONITORING_PASSWORD );
if ( StringUtils.isBlank( url ) )
{
log.debug( "Monitoring service URL not configured, aborting monitoring request" );
return;
}
SystemInfo systemInfo = systemService.getSystemInfo();
if ( systemInfo == null )
{
log.warn( "System info not available, aborting monitoring request" );
return;
}
systemInfo.clearSensitiveInfo();
HttpHeadersBuilder headersBuilder = new HttpHeadersBuilder().withContentTypeJson();
if ( StringUtils.isNotBlank( username ) && StringUtils.isNotBlank( password ) )
{
headersBuilder.withBasicAuth( username, password );
}
HttpEntity<SystemInfo> requestEntity = new HttpEntity<>( systemInfo, headersBuilder.build() );
ResponseEntity<String> response = null;
HttpStatus sc = null;
try
{
response = restTemplate.postForEntity( url, requestEntity, String.class );
sc = response.getStatusCode();
}
catch ( HttpClientErrorException | HttpServerErrorException ex )
{
log.warn( "Monitoring request failed, status code: " + sc, ex );
return;
}
catch ( ResourceAccessException ex )
{
log.info( "Monitoring request failed, network is unreachable" );
return;
}
if ( response != null && sc != null && sc.is2xxSuccessful() )
{
log.debug( "Monitoring request successfully sent" );
}
else
{
log.warn( "Monitoring request was unsuccessful, status code: " + sc );
}
}
}
| [
"abyota@gmail.com"
] | abyota@gmail.com |
b6a1f1e17fce30c30df836cf64e857bf2ed9baad | f766baf255197dd4c1561ae6858a67ad23dcda68 | /app/src/main/java/com/tencent/mm/protocal/c/akt.java | 7d007b34abce0c5d87bb11c131e0f18df9343ed8 | [] | no_license | jianghan200/wxsrc6.6.7 | d83f3fbbb77235c7f2c8bc945fa3f09d9bac3849 | eb6c56587cfca596f8c7095b0854cbbc78254178 | refs/heads/master | 2020-03-19T23:40:49.532494 | 2018-06-12T06:00:50 | 2018-06-12T06:00:50 | 137,015,278 | 4 | 2 | null | null | null | null | UTF-8 | Java | false | false | 2,831 | java | package com.tencent.mm.protocal.c;
import java.util.LinkedList;
public final class akt
extends bhd
{
public int aAk;
public int condition;
public int rNG;
public int rNH;
protected final int a(int paramInt, Object... paramVarArgs)
{
if (paramInt == 0)
{
paramVarArgs = (f.a.a.c.a)paramVarArgs[0];
if (this.shX != null)
{
paramVarArgs.fV(1, this.shX.boi());
this.shX.a(paramVarArgs);
}
paramVarArgs.fT(2, this.aAk);
paramVarArgs.fT(3, this.condition);
paramVarArgs.fT(4, this.rNG);
paramVarArgs.fT(5, this.rNH);
return 0;
}
if (paramInt == 1) {
if (this.shX == null) {
break label421;
}
}
label421:
for (paramInt = f.a.a.a.fS(1, this.shX.boi()) + 0;; paramInt = 0)
{
return paramInt + f.a.a.a.fQ(2, this.aAk) + f.a.a.a.fQ(3, this.condition) + f.a.a.a.fQ(4, this.rNG) + f.a.a.a.fQ(5, this.rNH);
if (paramInt == 2)
{
paramVarArgs = new f.a.a.a.a((byte[])paramVarArgs[0], unknownTagHandler);
for (paramInt = bhd.a(paramVarArgs); paramInt > 0; paramInt = bhd.a(paramVarArgs)) {
if (!super.a(paramVarArgs, this, paramInt)) {
paramVarArgs.cJS();
}
}
break;
}
if (paramInt == 3)
{
Object localObject1 = (f.a.a.a.a)paramVarArgs[0];
akt localakt = (akt)paramVarArgs[1];
paramInt = ((Integer)paramVarArgs[2]).intValue();
switch (paramInt)
{
default:
return -1;
case 1:
paramVarArgs = ((f.a.a.a.a)localObject1).IC(paramInt);
int i = paramVarArgs.size();
paramInt = 0;
while (paramInt < i)
{
Object localObject2 = (byte[])paramVarArgs.get(paramInt);
localObject1 = new fk();
localObject2 = new f.a.a.a.a((byte[])localObject2, unknownTagHandler);
for (boolean bool = true; bool; bool = ((fk)localObject1).a((f.a.a.a.a)localObject2, (com.tencent.mm.bk.a)localObject1, bhd.a((f.a.a.a.a)localObject2))) {}
localakt.shX = ((fk)localObject1);
paramInt += 1;
}
case 2:
localakt.aAk = ((f.a.a.a.a)localObject1).vHC.rY();
return 0;
case 3:
localakt.condition = ((f.a.a.a.a)localObject1).vHC.rY();
return 0;
case 4:
localakt.rNG = ((f.a.a.a.a)localObject1).vHC.rY();
return 0;
}
localakt.rNH = ((f.a.a.a.a)localObject1).vHC.rY();
return 0;
}
return -1;
}
}
}
/* Location: /Users/Han/Desktop/wxall/微信反编译/反编译 6.6.7/dex2jar-2.0/classes6-dex2jar.jar!/com/tencent/mm/protocal/c/akt.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/ | [
"526687570@qq.com"
] | 526687570@qq.com |
ac12ce2c3e2663fd5236a9d657c9b17793fbbee9 | df48dc6e07cdf202518b41924444635f30d60893 | /jinx-com4j/src/main/java/com/exceljava/com4j/excel/XlPivotFormatType.java | 2322599340fdbf84ed9cb5b0f2e075921e3bc89f | [
"MIT"
] | permissive | ashwanikaggarwal/jinx-com4j | efc38cc2dc576eec214dc847cd97d52234ec96b3 | 41a3eaf71c073f1282c2ab57a1c91986ed92e140 | refs/heads/master | 2022-03-29T12:04:48.926303 | 2020-01-10T14:11:17 | 2020-01-10T14:11:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,006 | java | package com.exceljava.com4j.excel ;
import com4j.*;
/**
*/
public enum XlPivotFormatType {
/**
* <p>
* The value of this constant is 0
* </p>
*/
xlReport1, // 0
/**
* <p>
* The value of this constant is 1
* </p>
*/
xlReport2, // 1
/**
* <p>
* The value of this constant is 2
* </p>
*/
xlReport3, // 2
/**
* <p>
* The value of this constant is 3
* </p>
*/
xlReport4, // 3
/**
* <p>
* The value of this constant is 4
* </p>
*/
xlReport5, // 4
/**
* <p>
* The value of this constant is 5
* </p>
*/
xlReport6, // 5
/**
* <p>
* The value of this constant is 6
* </p>
*/
xlReport7, // 6
/**
* <p>
* The value of this constant is 7
* </p>
*/
xlReport8, // 7
/**
* <p>
* The value of this constant is 8
* </p>
*/
xlReport9, // 8
/**
* <p>
* The value of this constant is 9
* </p>
*/
xlReport10, // 9
/**
* <p>
* The value of this constant is 10
* </p>
*/
xlTable1, // 10
/**
* <p>
* The value of this constant is 11
* </p>
*/
xlTable2, // 11
/**
* <p>
* The value of this constant is 12
* </p>
*/
xlTable3, // 12
/**
* <p>
* The value of this constant is 13
* </p>
*/
xlTable4, // 13
/**
* <p>
* The value of this constant is 14
* </p>
*/
xlTable5, // 14
/**
* <p>
* The value of this constant is 15
* </p>
*/
xlTable6, // 15
/**
* <p>
* The value of this constant is 16
* </p>
*/
xlTable7, // 16
/**
* <p>
* The value of this constant is 17
* </p>
*/
xlTable8, // 17
/**
* <p>
* The value of this constant is 18
* </p>
*/
xlTable9, // 18
/**
* <p>
* The value of this constant is 19
* </p>
*/
xlTable10, // 19
/**
* <p>
* The value of this constant is 20
* </p>
*/
xlPTClassic, // 20
/**
* <p>
* The value of this constant is 21
* </p>
*/
xlPTNone, // 21
}
| [
"tony@pyxll.com"
] | tony@pyxll.com |
8d24e8ffa424c83d653fa5c8c4adaffb465092cd | 259c101b7bbeef9efcc25134e7e21f037a7a4092 | /DTSEmbed_LSC_new_solvepath_use_mark/tests/softtest/test/c/gcc/expression/UFM_EXP.java | 3f9a5140e96cd724a21ff211eb88cad45a0b00f0 | [] | no_license | 13001090108/dts-solve-path | a95c71c31d38afb2c55d85884b931f2938c1f75d | 649b92eddcc76705bbb4926b33da00009303c04a | refs/heads/master | 2020-04-16T23:17:21.340218 | 2019-01-24T09:34:50 | 2019-01-24T09:37:09 | 166,005,614 | 0 | 0 | null | null | null | null | GB18030 | Java | false | false | 4,355 | java | package softtest.test.c.gcc.expression;
import java.util.Arrays;
import java.util.Collection;
import java.util.Set;
import org.junit.BeforeClass;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
import softtest.fsm.c.FSMLoader;
import softtest.fsm.c.FSMMachine;
import softtest.fsmanalysis.c.FSMAnalysisVisitor;
import softtest.interpro.c.InterContext;
import softtest.symboltable.c.MethodNameDeclaration;
import softtest.test.c.rules.ModelTestBase;
@RunWith(Parameterized.class)
public class UFM_EXP extends ModelTestBase {
public UFM_EXP(String source,String compiletype, String result)
{
super(source, compiletype, result);
}
@BeforeClass
public static void setUpBaseChild()
{
fsmPath="softtest/rules/gcc/fault/UFM_EXP-0.1.xml";
FSMMachine fsm = FSMLoader.loadXML(fsmPath);
fsm.setType("fault");
//每次加入自动机前都清空一下原来的fsms
FSMAnalysisVisitor.clearFSMS();
FSMAnalysisVisitor.addFSMS(fsm);
//加载库函数摘要
LIB_SUMMARYS_PATH="gcc_lib/npd_summary.xml";
libManager.loadSingleLibFile(LIB_SUMMARYS_PATH);
Set<MethodNameDeclaration> libDecls = libManager.compileLib(pre.getLibIncludes());
interContext = InterContext.getInstance();
interContext.addLibMethodDecl(libDecls);
}
@Parameters
public static Collection<Object[]> testcaseAndResults()
{
return Arrays.asList(new Object[][] {
///////////////// 0 ///////////////////
{
"#include <stdio.h>" +"\n"+
"#include <stdlib.h>" +"\n"+
"typedef struct{" +"\n"+
" char* p;" +"\n"+
"}S;" +"\n"+
"S s;" +"\n"+
"" +"\n"+
"void f(){" +"\n"+
" s.p=(char*)malloc(11);" +"\n"+
" free(s.p);" +"\n"+
" *(s.p);" +"\n"+
"}"
,
"gcc"
,
"UFM"
,
},
///////////////// 1 ///////////////////
{
"#include <stdio.h>" +"\n"+
"#include <stdlib.h>" +"\n"+
"typedef struct{" +"\n"+
" char* p;" +"\n"+
"}S;" +"\n"+
"S s;" +"\n"+
"char* f(){" +"\n"+
" return (char*)malloc(11);" +"\n"+
"}" +"\n"+
"" +"\n"+
"void f(){" +"\n"+
" s.p=f();" +"\n"+
" free(s.p);" +"\n"+
" *(s.p);" +"\n"+
"}"
,
"gcc"
,
"UFM"
,
},
});
}
}
| [
"lishaochun@bupt.edu.cn"
] | lishaochun@bupt.edu.cn |
c02647975165a0a6dfc2dbec3ec5dff07c98e996 | 5daf4a3e980218255630d9a1ad6ad093ffa83519 | /SpringCloud-Eurekas/src/main/java/com/cxb/springcloud/Application.java | 0cb16fc206c74316cd4d6196f73588a32a505c7d | [] | no_license | chenxiban/MyEducationPlatform | b75aaf07154ad9223bfdebbf7ec8e2540f97699c | da9aea41b84d75fb9828890c5d894307d3421972 | refs/heads/master | 2022-08-01T22:35:56.744913 | 2019-07-17T08:00:45 | 2019-07-17T08:00:45 | 159,469,593 | 1 | 0 | null | 2022-06-17T02:03:27 | 2018-11-28T08:36:19 | JavaScript | UTF-8 | Java | false | false | 571 | java | package com.cxb.springcloud;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
/**
*
* @Description:
* @ClassName: Application.java
* @author ChenYongJia
* @Date 2018年12月01日 晚上22:54
* @Email chen87647213@163.com
*/
@SpringBootApplication
@EnableEurekaServer
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
| [
"chen867647213@163.com"
] | chen867647213@163.com |
deb4a6db6f79c0f1bdb955671ecd38e656ce8de0 | 8502e1e47522318bf3539d5ef057f124e2e75166 | /1.4/src/org/apache/axis/transport/jms/JMSSender.java | cfb076a3d4d696fa766269d70e8b678e19b75219 | [
"Apache-2.0"
] | permissive | YellowfinBI/apache-axis | 5833d3b86ab9fef3f3264c05592ef7ed66e6970a | e7640afc686fb3f48a211bc956e03820c345c4ba | refs/heads/master | 2023-05-24T17:22:30.715882 | 2023-05-18T00:56:42 | 2023-05-18T00:56:42 | 78,585,682 | 0 | 1 | null | 2023-05-18T00:56:43 | 2017-01-10T23:56:51 | Java | UTF-8 | Java | false | false | 5,845 | java | /*
* Copyright 2001, 2002,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.axis.transport.jms;
import org.apache.axis.AxisFault;
import org.apache.axis.Message;
import org.apache.axis.MessageContext;
import org.apache.axis.handlers.BasicHandler;
import org.apache.axis.attachments.Attachments;
import javax.jms.Destination;
import java.io.ByteArrayOutputStream;
import java.util.HashMap;
import java.util.Map;
/**
* This is meant to be used on a SOAP Client to call a SOAP server.
*
* @author Jaime Meritt (jmeritt@sonicsoftware.com)
* @author Richard Chung (rchung@sonicsoftware.com)
* @author Dave Chappell (chappell@sonicsoftware.com)
*/
public class JMSSender extends BasicHandler
{
public JMSSender()
{
}
/**
* invoke() creates an endpoint, sends the request SOAP message, and then
* either reads the response SOAP message or simply returns.
*
* @todo hash on something much better than the connection factory
* something like domain:url:username:password would be adequate
* @param msgContext
* @throws AxisFault
*/
public void invoke(MessageContext msgContext) throws AxisFault
{
JMSConnector connector = null;
try
{
Object destination = msgContext.getProperty(JMSConstants.DESTINATION);
if(destination == null)
throw new AxisFault("noDestination");
connector = (JMSConnector)msgContext.getProperty(JMSConstants.CONNECTOR);
JMSEndpoint endpoint = null;
if(destination instanceof String)
endpoint = connector.createEndpoint((String)destination);
else
endpoint = connector.createEndpoint((Destination)destination);
ByteArrayOutputStream out = new ByteArrayOutputStream();
msgContext.getRequestMessage().writeTo(out);
HashMap props = createSendProperties(msgContext);
// If the request message contains attachments, set
// a contentType property to go in the outgoing message header
String ret = null;
Message message = msgContext.getRequestMessage();
Attachments mAttachments = message.getAttachmentsImpl();
if (mAttachments != null && 0 != mAttachments.getAttachmentCount())
{
String contentType = mAttachments.getContentType();
if(contentType != null && !contentType.trim().equals(""))
{
props.put("contentType", contentType);
}
}
boolean waitForResponse = true;
if(msgContext.containsProperty(JMSConstants.WAIT_FOR_RESPONSE))
waitForResponse =
((Boolean)msgContext.getProperty(
JMSConstants.WAIT_FOR_RESPONSE)).booleanValue();
if(waitForResponse)
{
long timeout = (long) msgContext.getTimeout();
byte[] response = endpoint.call(out.toByteArray(), timeout, props);
Message msg = new Message(response);
msgContext.setResponseMessage(msg);
}
else
{
endpoint.send(out.toByteArray(), props);
}
}
catch(Exception e)
{
throw new AxisFault("failedSend", e);
}
finally
{
if (connector != null)
JMSConnectorManager.getInstance().release(connector);
}
}
private HashMap createSendProperties(MessageContext context)
{
//I'm not sure why this helper method is private, but
//we need to delegate to factory method that can build the
//application-specific map of properties so make a change to
//delegate here.
HashMap props = createApplicationProperties(context);
if(context.containsProperty(JMSConstants.PRIORITY))
props.put(JMSConstants.PRIORITY,
context.getProperty(JMSConstants.PRIORITY));
if(context.containsProperty(JMSConstants.DELIVERY_MODE))
props.put(JMSConstants.DELIVERY_MODE,
context.getProperty(JMSConstants.DELIVERY_MODE));
if(context.containsProperty(JMSConstants.TIME_TO_LIVE))
props.put(JMSConstants.TIME_TO_LIVE,
context.getProperty(JMSConstants.TIME_TO_LIVE));
if(context.containsProperty(JMSConstants.JMS_CORRELATION_ID))
props.put(JMSConstants.JMS_CORRELATION_ID,
context.getProperty(JMSConstants.JMS_CORRELATION_ID));
return props;
}
/** Return a map of properties that makeup the application-specific
for the JMS Messages.
*/
protected HashMap createApplicationProperties(MessageContext context) {
HashMap props = null;
if (context.containsProperty(
JMSConstants.JMS_APPLICATION_MSG_PROPS)) {
props = new HashMap();
props.putAll((Map)context.getProperty(
JMSConstants.JMS_APPLICATION_MSG_PROPS));
}
return props;
}
} | [
"deepak.narayan@yellowfin.bi"
] | deepak.narayan@yellowfin.bi |
efeabffecb70f35ae48c68926a81f9e43019ee00 | 47fc3b9698f6dadca0b68c2f26dc8d6bd3c0df9d | /lib_image_loader/src/main/java/com/tufusi/lib_image_loader/utils/Utils.java | 42526dd4622246d834986c44199f20ccb33b51be | [] | no_license | LeoCheung0221/TufusiMusicApp | 85a1aae1ae01d6420317e19808b8a82742f8cad5 | c3c0d365e9e888a927ffcdec27c369cc4ab24844 | refs/heads/main | 2023-01-12T08:46:45.314403 | 2020-11-14T02:04:32 | 2020-11-14T02:04:32 | 309,520,194 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,108 | java | package com.tufusi.lib_image_loader.utils;
import android.graphics.Bitmap;
/**
* Created by LeoCheung on 2020/11/3.
*
* @author 鼠夏目
* @description
*/
public class Utils {
/**
* 毛玻璃模糊算法
*/
public static Bitmap doBlur(Bitmap sentBitmap, int radius, boolean canReuseInBitmap) {
Bitmap bitmap;
if (canReuseInBitmap) {
bitmap = sentBitmap;
} else {
bitmap = sentBitmap.copy(sentBitmap.getConfig(), true);
}
if (radius < 1) {
return (null);
}
int w = bitmap.getWidth();
int h = bitmap.getHeight();
int[] pix = new int[w * h];
bitmap.getPixels(pix, 0, w, 0, 0, w, h);
int wm = w - 1;
int hm = h - 1;
int wh = w * h;
int div = radius + radius + 1;
int r[] = new int[wh];
int g[] = new int[wh];
int b[] = new int[wh];
int rsum, gsum, bsum, x, y, i, p, yp, yi, yw;
int vmin[] = new int[Math.max(w, h)];
int divsum = (div + 1) >> 1;
divsum *= divsum;
int dv[] = new int[256 * divsum];
for (i = 0; i < 256 * divsum; i++) {
dv[i] = (i / divsum);
}
yw = yi = 0;
int[][] stack = new int[div][3];
int stackpointer;
int stackstart;
int[] sir;
int rbs;
int r1 = radius + 1;
int routsum, goutsum, boutsum;
int rinsum, ginsum, binsum;
for (y = 0; y < h; y++) {
rinsum = ginsum = binsum = routsum = goutsum = boutsum = rsum = gsum = bsum = 0;
for (i = -radius; i <= radius; i++) {
p = pix[yi + Math.min(wm, Math.max(i, 0))];
sir = stack[i + radius];
sir[0] = (p & 0xff0000) >> 16;
sir[1] = (p & 0x00ff00) >> 8;
sir[2] = (p & 0x0000ff);
rbs = r1 - Math.abs(i);
rsum += sir[0] * rbs;
gsum += sir[1] * rbs;
bsum += sir[2] * rbs;
if (i > 0) {
rinsum += sir[0];
ginsum += sir[1];
binsum += sir[2];
} else {
routsum += sir[0];
goutsum += sir[1];
boutsum += sir[2];
}
}
stackpointer = radius;
for (x = 0; x < w; x++) {
r[yi] = dv[rsum];
g[yi] = dv[gsum];
b[yi] = dv[bsum];
rsum -= routsum;
gsum -= goutsum;
bsum -= boutsum;
stackstart = stackpointer - radius + div;
sir = stack[stackstart % div];
routsum -= sir[0];
goutsum -= sir[1];
boutsum -= sir[2];
if (y == 0) {
vmin[x] = Math.min(x + radius + 1, wm);
}
p = pix[yw + vmin[x]];
sir[0] = (p & 0xff0000) >> 16;
sir[1] = (p & 0x00ff00) >> 8;
sir[2] = (p & 0x0000ff);
rinsum += sir[0];
ginsum += sir[1];
binsum += sir[2];
rsum += rinsum;
gsum += ginsum;
bsum += binsum;
stackpointer = (stackpointer + 1) % div;
sir = stack[(stackpointer) % div];
routsum += sir[0];
goutsum += sir[1];
boutsum += sir[2];
rinsum -= sir[0];
ginsum -= sir[1];
binsum -= sir[2];
yi++;
}
yw += w;
}
for (x = 0; x < w; x++) {
rinsum = ginsum = binsum = routsum = goutsum = boutsum = rsum = gsum = bsum = 0;
yp = -radius * w;
for (i = -radius; i <= radius; i++) {
yi = Math.max(0, yp) + x;
sir = stack[i + radius];
sir[0] = r[yi];
sir[1] = g[yi];
sir[2] = b[yi];
rbs = r1 - Math.abs(i);
rsum += r[yi] * rbs;
gsum += g[yi] * rbs;
bsum += b[yi] * rbs;
if (i > 0) {
rinsum += sir[0];
ginsum += sir[1];
binsum += sir[2];
} else {
routsum += sir[0];
goutsum += sir[1];
boutsum += sir[2];
}
if (i < hm) {
yp += w;
}
}
yi = x;
stackpointer = radius;
for (y = 0; y < h; y++) {
// Preserve alpha channel: ( 0xff000000 & pix[yi] )
pix[yi] = (0xff000000 & pix[yi]) | (dv[rsum] << 16) | (dv[gsum] << 8) | dv[bsum];
rsum -= routsum;
gsum -= goutsum;
bsum -= boutsum;
stackstart = stackpointer - radius + div;
sir = stack[stackstart % div];
routsum -= sir[0];
goutsum -= sir[1];
boutsum -= sir[2];
if (x == 0) {
vmin[y] = Math.min(y + r1, hm) * w;
}
p = x + vmin[y];
sir[0] = r[p];
sir[1] = g[p];
sir[2] = b[p];
rinsum += sir[0];
ginsum += sir[1];
binsum += sir[2];
rsum += rinsum;
gsum += ginsum;
bsum += binsum;
stackpointer = (stackpointer + 1) % div;
sir = stack[stackpointer];
routsum += sir[0];
goutsum += sir[1];
boutsum += sir[2];
rinsum -= sir[0];
ginsum -= sir[1];
binsum -= sir[2];
yi += w;
}
}
bitmap.setPixels(pix, 0, w, 0, 0, w, h);
return (bitmap);
}
} | [
"leocheung4ever@gmail.com"
] | leocheung4ever@gmail.com |
fbe857c7ee5b15a01f330da90fe022e67a93f630 | 081fb9fb34ddd2c0e0fac0c6d9bf1caa5bf4a2f2 | /pysmis/src/com/onlineMIS/ORM/entity/headQ/supplier/finance/SupplierFinanceTrace.java | f680786b0a774b1643e80e74188bbe3249e50996 | [] | no_license | fredoxia/pysmis | 497c4c6d7306d511169cd15dfbc6bab95c17bce7 | 32703fd1634b78e8f76d51a84597c93a0eaa221b | refs/heads/master | 2021-08-22T12:59:32.712388 | 2021-06-08T23:48:26 | 2021-06-08T23:48:26 | 160,357,861 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,261 | java | package com.onlineMIS.ORM.entity.headQ.supplier.finance;
import java.io.Serializable;
import java.sql.Date;
public class SupplierFinanceTrace implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1104938379821939888L;
private int supplierId;
private int categoryId;
private String billId;
private double amount;
private Date date;
public SupplierFinanceTrace(){
}
public SupplierFinanceTrace(int supplierId, int categoryId, String billId, double amount, Date date){
this.supplierId = supplierId;
this.categoryId = categoryId;
this.billId = billId;
this.amount = amount;
this.date = date;
}
public int getSupplierId() {
return supplierId;
}
public void setSupplierId(int supplierId) {
this.supplierId = supplierId;
}
public int getCategoryId() {
return categoryId;
}
public void setCategoryId(int categoryId) {
this.categoryId = categoryId;
}
public String getBillId() {
return billId;
}
public void setBillId(String billId) {
this.billId = billId;
}
public double getAmount() {
return amount;
}
public void setAmount(double amount) {
this.amount = amount;
}
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
}
| [
"xiaf@global.anz.com"
] | xiaf@global.anz.com |
ae7b15d7f5b3a86e1d5fc02f6dcd403b5df68722 | 03f38f29d7ee5e62fdfdb286b211d34206a9e95f | /ShoppingBook/src/com/lovo/cq/shopping10_1/servlet/SelectOrder.java | c983d470a9ea53271016a1b97e85e82bbe9e6bdf | [] | no_license | mythread/my_code | 71e58133044a70f45b7185cb86230f2ed37cdfcc | 3f4edadf1c4241b0e80ebfac15f7b91827a1a1b7 | refs/heads/master | 2021-01-20T15:36:14.700459 | 2015-04-17T09:32:00 | 2015-04-17T09:32:00 | 34,107,730 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 980 | java | package com.lovo.cq.shopping10_1.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.lovo.cq.shopping10_1.model.ModelOrder;
public class SelectOrder extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String name = (String) request.getSession().getAttribute("name");
ModelOrder model = new ModelOrder();
List list = model.selectOr(name);
System.out.println(list.size());
request.getSession().setAttribute("list", list);
response.sendRedirect("selfOrder.jsp");
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
this.doGet(request, response);
}
}
| [
"zhangxiongcai337@gmail.com"
] | zhangxiongcai337@gmail.com |
646d3bc7e82caa173b3a366cf57e686db62210f5 | f29bc6ca3b6bdbf531c787e545003aff87b9bf41 | /src/main/java/dev/mvc/refund/RefundVO.java | c991f812c5b4fa21ba398796899426b7f8bf7c3e | [] | no_license | nullplusnull/bigdata | b1059ef06feb9641410afdf5565076fd11b1c4de | 9d522bbfe3a174ac7fea3137165e698f8063ced4 | refs/heads/master | 2022-12-28T02:30:47.329886 | 2019-08-05T06:04:40 | 2019-08-05T06:04:40 | 200,558,553 | 0 | 0 | null | 2021-04-26T19:24:13 | 2019-08-05T01:00:21 | JavaScript | UTF-8 | Java | false | false | 754 | java | package dev.mvc.refund;
public class RefundVO {
private int refundno;
private int paymentno;
private String refund_reason;
private String rdate;
public int getRefundno() {
return refundno;
}
public void setRefundno(int refundno) {
this.refundno = refundno;
}
public String getRefund_reason() {
return refund_reason;
}
public void setRefund_reason(String refund_reason) {
this.refund_reason = refund_reason;
}
public String getRdate() {
return rdate;
}
public void setRdate(String rdate) {
this.rdate = rdate;
}
public int getPaymentno() {
return paymentno;
}
public void setPaymentno(int paymentno) {
this.paymentno = paymentno;
}
}
| [
"soldesk@soldesk-PC"
] | soldesk@soldesk-PC |
61efb597597c24ee4a3ca02ab44be76459a3d2ee | df52571a1a0ead38e3e3b353be602a0ec7b7c133 | /app/src/main/java/com/tellh/androidlibraryarchitecturedemo/databinding/Book.java | 78bb2d7a4e4957879533476931ddad352debd601 | [] | no_license | TellH/AndroidLibraryArchitectureDemo | e1b51555873dae23827eb2cd0fa5e96dd6047fbc | a4be2142d7ee84327f4bd7d46ba4596683e2b170 | refs/heads/master | 2021-01-17T05:21:27.880745 | 2016-08-16T16:28:40 | 2016-08-16T16:28:40 | 63,488,211 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,190 | java | package com.tellh.androidlibraryarchitecturedemo.databinding;
/**
* Created by tlh on 2016/7/16.
*/
public class Book {
String title;
String author;
String publisher;
String thumbnail;
public Book(String title, String author, String publisher) {
this.title = title;
this.author = author;
this.publisher = publisher;
}
public Book(String title, String author, String publisher, String thumbnail) {
this.title = title;
this.author = author;
this.publisher = publisher;
this.thumbnail = thumbnail;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public String getPublisher() {
return publisher;
}
public void setPublisher(String publisher) {
this.publisher = publisher;
}
public String getThumbnail() {
return thumbnail;
}
public void setThumbnail(String thumbnail) {
this.thumbnail = thumbnail;
}
}
| [
"570495627@qq.com"
] | 570495627@qq.com |
3665d98b03e56698e881cb5c9a5e3a89e7260585 | 39481154f1a728c73367efa782346844b9272492 | /src/main/java/top/zywork/dao/UserGoodsCollectionDAO.java | c49bcdf97a8eb4e6e1f81e29180e045318dfb12c | [] | no_license | hyx-jetbrains/zywork-app | 1580d544df8dbe7e4547d70ff797a68cf8a9c104 | 81a26a374496aa1e15b2847f2a32f0fc8a982367 | refs/heads/master | 2020-07-06T08:28:42.718528 | 2019-08-16T09:10:09 | 2019-08-16T09:10:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 608 | java | package top.zywork.dao;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* UserGoodsCollectionDAO数据访问接口<br/>
*
* 创建于2019-07-24<br/>
*
* @author http://zywork.top 王振宇
* @version 1.0
*/
@Repository
public interface UserGoodsCollectionDAO extends BaseDAO {
@Override
List<Object> listAllByCondition(@Param("query") Object queryObj);
@Override
List<Object> listPageByCondition(@Param("query") Object queryObj);
@Override
Long countByCondition(@Param("query") Object queryObj);
}
| [
"847315251@qq.com"
] | 847315251@qq.com |
23c0f65f3eefb6384d21a18a4da1b41e6dedb69e | 0ac5d2489514416f7640ec75eb10f1dc575230ef | /src/cn/dao/purchase/PurchasePlanDao.java | 2ce47b759e056540260e735f16f3ee09df775c63 | [] | no_license | liuenci/ShopManageSystem | 2e38f82c5038785a31e2051d09463cab63c51c55 | 9e88eb463738c5e66eb2b7336e3a22294832f7c7 | refs/heads/master | 2021-09-07T08:34:57.731872 | 2018-02-20T10:53:31 | 2018-02-20T10:53:31 | 103,722,529 | 3 | 0 | null | null | null | null | GB18030 | Java | false | false | 6,761 | java | package cn.dao.purchase;
import java.sql.Date;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import cn.datebase.base.DBUtil;
import cn.datebase.base.ParamSet;
import cn.model.purchase.PurchaseOrderDetailGood;
import cn.model.purchase.PurchaseOrderEmpSup;
import cn.model.purchase.PurchasePlanDetGood;
public class PurchasePlanDao extends DBUtil{
/**
* 根据详单id,查询
*/
public List<PurchasePlanDetGood> queryId(int plan_id) {
// 创建PurchasePlanDetGood集合保存信息
List<PurchasePlanDetGood> lst = new ArrayList<PurchasePlanDetGood>();
// 查询sql语句
String sql = "select goods_id ,goods_name,goods_units,goods_size,goods_purPrice,planDet_number,goods_sellPrice,goods_stoId,goods_keepDays,goods_minNumber from tb_purPlanDetail LEFT JOIN tb_good on tb_good.goods_id = tb_purPlanDetail.planDet_goodId LEFT JOIN tb_purchasePlan on tb_purPlanDetail.planDet_purId = tb_purchasePlan.plan_id where plan_id like ?";
String str = "%" + plan_id + "%";
// 查询
List<Map<String, Object>> lmp = queryList(sql, new ParamSet(str));
// 遍历数据集合
for (Map<String, Object> m : lmp) {
// 创建对象保存数据
PurchasePlanDetGood good = new PurchasePlanDetGood();
for (Entry<String, Object> e : m.entrySet()) {
if (e.getKey().equals("goods_id")) {
good.setGoods_id((int) e.getValue());
} else if (e.getKey().equals("goods_name")) {
good.setGoods_name(e.getValue().toString());
} else if (e.getKey().equals("goods_units")) {
good.setGoods_units(e.getValue().toString());
} else if (e.getKey().equals("goods_size")) {
good.setGoods_size(e.getValue().toString());
} else if (e.getKey().equals("goods_purPrice")) {
good.setGoods_purPrise((double) e.getValue());
} else if (e.getKey().equals("planDet_number")) {
good.setPlanDet_number((int) e.getValue());
} else if (e.getKey().equals("goods_sellPrice")) {
good.setGoods_sellPrice((double) e.getValue());
} else if (e.getKey().equals("goods_stoId")) {
good.setGoods_stoId((int) e.getValue());
} else if (e.getKey().equals("goods_keepDays")) {
good.setGoods_keepDays((int) e.getValue());
} else if (e.getKey().equals("goods_minNumber")) {
good.setGoods_minNumber((int) e.getValue());
}
}
lst.add(good);
}
return lst;
}
/**
* 根据订单详情号查询订单信息
*/
public List<PurchasePlanDetGood> queryOrdId(int plan_id) {
// 创建PurchasePlanDetGood集合保存信息
List<PurchasePlanDetGood> lst = new ArrayList<PurchasePlanDetGood>();
// 查询sql语句
String sql = "select plan_id,plan_date,(select emp_name from tb_employee where emp_id = plan_empId) as emp_name,plan_mark from tb_purchasePlan where plan_id like ? ";
String str = "%" + plan_id + "%";
// 查询
List<Map<String, Object>> lmp = queryList(sql, new ParamSet(str));
// 遍历数据集合
for (Map<String, Object> m : lmp) {
// 创建对象保存数据
PurchasePlanDetGood good = new PurchasePlanDetGood();
for (Entry<String, Object> e : m.entrySet()) {
if (e.getKey().equals("plan_id")) {
good.setPlan_id((int) e.getValue());
} else if (e.getKey().equals("plan_date")) {
good.setPlan_date((Date) e.getValue());
} else if (e.getKey().equals("emp_name")) {
good.setEmp_name(e.getValue().toString());
} else if (e.getKey().equals("plan_mark")) {
good.setPlan_mark(e.getValue().toString());
}
}
lst.add(good);
}
return lst;
}
/**
* 根据时间查询单据
*/
public List<PurchasePlanDetGood> queryOrdTime(Date plan_date) {
// 创建PurchaseOrderDetailGood集合保存信息
List<PurchasePlanDetGood> lst = new ArrayList<PurchasePlanDetGood>();
// 查询sql语句
String sql = "select plan_id,plan_date,(select emp_name from tb_employee where emp_id = plan_empId) as emp_name,plan_mark from tb_purchasePlan where plan_date =? ";
//String str = "%" + pur_date + "%";
// 查询
List<Map<String, Object>> lmp = queryList(sql, new ParamSet(plan_date));
// 遍历数据集合
for (Map<String, Object> m : lmp) {
// 创建对象保存数据
PurchasePlanDetGood good = new PurchasePlanDetGood();
for (Entry<String, Object> e : m.entrySet()) {
if (e.getKey().equals("plan_id")) {
good.setPlan_id((int) e.getValue());
} else if (e.getKey().equals("plan_date")) {
good.setPlan_date((Date) e.getValue());
} else if (e.getKey().equals("emp_name")) {
good.setEmp_name(e.getValue().toString());
} else if (e.getKey().equals("plan_mark")) {
good.setPlan_mark(e.getValue().toString());
}
}
lst.add(good);
}
return lst;
}
/**
* 根据,查询
*/
public List<PurchasePlanDetGood> queryTime(Date plan_date) {
// 创建PurchaseOrderDetailGood集合保存信息
List<PurchasePlanDetGood> lst = new ArrayList<PurchasePlanDetGood>();
// 查询sql语句
String sql = "select goods_id ,goods_name,goods_units,goods_size,goods_purPrice,planDet_number,goods_sellPrice,goods_stoId,goods_keepDays,goods_minNumber from tb_purPlanDetail LEFT JOIN tb_good on tb_good.goods_id = tb_purPlanDetail.planDet_goodId LEFT JOIN tb_purchasePlan on tb_purPlanDetail.planDet_purId = tb_purchasePlan.plan_id where plan_date =?";
// String str = "%" + pur_date + "%";
// 查询
List<Map<String, Object>> lmp = queryList(sql, new ParamSet(plan_date));
// 遍历数据集合
for (Map<String, Object> m : lmp) {
// 创建对象保存数据
PurchasePlanDetGood good = new PurchasePlanDetGood();
for (Entry<String, Object> e : m.entrySet()) {
if (e.getKey().equals("goods_id")) {
good.setGoods_id((int) e.getValue());
} else if (e.getKey().equals("goods_name")) {
good.setGoods_name(e.getValue().toString());
} else if (e.getKey().equals("goods_units")) {
good.setGoods_units(e.getValue().toString());
} else if (e.getKey().equals("goods_size")) {
good.setGoods_size(e.getValue().toString());
} else if (e.getKey().equals("goods_purPrice")) {
good.setGoods_purPrise((double) e.getValue());
} else if (e.getKey().equals("planDet_number")) {
good.setPlanDet_number((int) e.getValue());
} else if (e.getKey().equals("goods_sellPrice")) {
good.setGoods_sellPrice((double) e.getValue());
} else if (e.getKey().equals("goods_stoId")) {
good.setGoods_stoId((int) e.getValue());
} else if (e.getKey().equals("goods_keepDays")) {
good.setGoods_keepDays((int) e.getValue());
} else if (e.getKey().equals("goods_minNumber")) {
good.setGoods_minNumber((int) e.getValue());
}
}
lst.add(good);
}
return lst;
}
}
| [
"154910381@qq.com"
] | 154910381@qq.com |
18c759afe17c09e1b5cea909eb812075a13b7126 | 28e60263224c399aa084f9222460d563275e3960 | /bus-health/src/main/java/org/aoju/bus/health/mac/Sysctl.java | f82791e05375bf782849ff204b86725ca7df0491 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | lonpo/bus | b2bda2ab641c637b8a24888194548710cb2e82fa | 4d4d4e762fa0654211ca97c62b286869b514b7d3 | refs/heads/master | 2022-07-15T09:40:43.298138 | 2020-05-15T04:12:59 | 2020-05-15T04:12:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,234 | java | /*********************************************************************************
* *
* The MIT License *
* *
* Copyright (c) 2015-2020 aoju.org OSHI and other contributors. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy *
* of this software and associated documentation files (the "Software"), to deal *
* in the Software without restriction, including without limitation the rights *
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
* copies of the Software, and to permit persons to whom the Software is *
* furnished to do so, subject to the following conditions: *
* *
* The above copyright notice and this permission notice shall be included in *
* all copies or substantial portions of the Software. *
* *
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
* THE SOFTWARE. *
********************************************************************************/
package org.aoju.bus.health.mac;
import com.sun.jna.Memory;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import com.sun.jna.platform.mac.SystemB;
import com.sun.jna.ptr.IntByReference;
import org.aoju.bus.core.annotation.ThreadSafe;
import org.aoju.bus.logger.Logger;
/**
* 提供对OS X上的sysctl调用的访问
*
* @author Kimi Liu
* @version 5.9.1
* @since JDK 1.8+
*/
@ThreadSafe
public final class Sysctl {
private static final String SYSCTL_FAIL = "Failed syctl call: {}, Error code: {}";
private Sysctl() {
}
/**
* 执行带有int结果的sysctl调用
*
* @param name 系统的名称
* @param def 默认int值
* @return 如果调用成功,则调用的int结果;否则默认
*/
public static int sysctl(String name, int def) {
IntByReference size = new IntByReference(SystemB.INT_SIZE);
Pointer p = new Memory(size.getValue());
if (0 != SystemB.INSTANCE.sysctlbyname(name, p, size, null, 0)) {
Logger.error("Failed sysctl call: {}, Error code: {}", name, Native.getLastError());
return def;
}
return p.getInt(0);
}
/**
* 执行带有长结果的sysctl调用
*
* @param name 系统的名称
* @param def 默认的长整型值
* @return 如果调用成功,则调用返回的长整型结果;否则默认
*/
public static long sysctl(String name, long def) {
IntByReference size = new IntByReference(SystemB.UINT64_SIZE);
Pointer p = new Memory(size.getValue());
if (0 != SystemB.INSTANCE.sysctlbyname(name, p, size, null, 0)) {
Logger.error(SYSCTL_FAIL, name, Native.getLastError());
return def;
}
return p.getLong(0);
}
/**
* 执行带有字符串结果的sysctl调用
*
* @param name 系统的名称
* @param def 默认字符串值
* @return 如果调用成功,则调用返回的字符串结果;否则默认
*/
public static String sysctl(String name, String def) {
// 第一次调用空指针来获取大小值
IntByReference size = new IntByReference();
if (0 != SystemB.INSTANCE.sysctlbyname(name, null, size, null, 0)) {
Logger.error(SYSCTL_FAIL, name, Native.getLastError());
return def;
}
// 为空终止字符串的大小添加1
Pointer p = new Memory(size.getValue() + 1L);
if (0 != SystemB.INSTANCE.sysctlbyname(name, p, size, null, 0)) {
Logger.error(SYSCTL_FAIL, name, Native.getLastError());
return def;
}
return p.getString(0);
}
/**
* 执行带有结构结果的sysctl调用
*
* @param name 系统的名称
* @param struct 构造结果
* @return 如果结构成功填充为真,则为假
*/
public static boolean sysctl(String name, Structure struct) {
if (0 != SystemB.INSTANCE.sysctlbyname(name, struct.getPointer(), new IntByReference(struct.size()), null, 0)) {
Logger.error(SYSCTL_FAIL, name, Native.getLastError());
return false;
}
struct.read();
return true;
}
}
| [
"839536@qq.com"
] | 839536@qq.com |
9cead5929a4c0be9c7e91c767bfd7cd7864bff19 | 694d574b989e75282326153d51bd85cb8b83fb9f | /google-ads/src/main/java/com/google/ads/googleads/v1/errors/KeywordPlanKeywordErrorEnumOrBuilder.java | 7a7252e331715d642781da91ebd87919d71a5e5f | [
"Apache-2.0"
] | permissive | tikivn/google-ads-java | 99201ef20efd52f884d651755eb5a3634e951e9b | 1456d890e5c6efc5fad6bd276b4a3cd877175418 | refs/heads/master | 2023-08-03T13:02:40.730269 | 2020-07-17T16:33:40 | 2020-07-17T16:33:40 | 280,845,720 | 0 | 0 | Apache-2.0 | 2023-07-23T23:39:26 | 2020-07-19T10:51:35 | null | UTF-8 | Java | false | true | 398 | java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v1/errors/keyword_plan_keyword_error.proto
package com.google.ads.googleads.v1.errors;
public interface KeywordPlanKeywordErrorEnumOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v1.errors.KeywordPlanKeywordErrorEnum)
com.google.protobuf.MessageOrBuilder {
}
| [
"nwbirnie@gmail.com"
] | nwbirnie@gmail.com |
a128bd45cade71d2b998845bb20d6b53246a8df8 | d30950a53023d5b5fb46ba6ed052169e2955cdde | /dag-kode/test/uk/dangrew/kode/javafx/spinner/DefensiveIntegerStringConverterTest.java | 9820e8897d6e2b6842d48960d28a2002d0ce8e05 | [
"Apache-2.0"
] | permissive | DanGrew/dag-kode | 3afa6326a3e1cf9aeaedb6aa951bb27be419156e | 0295964c8c417246fd041808a8bb34e9c976be4c | refs/heads/master | 2021-08-07T23:36:16.020091 | 2021-01-14T10:33:11 | 2021-01-14T10:33:11 | 97,644,834 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,801 | java | /*
* ----------------------------------------
* Jenkins Test Tracker
* ----------------------------------------
* Produced by Dan Grew
* 2016
* ----------------------------------------
*/
package uk.dangrew.kode.javafx.spinner;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Before;
import org.junit.Test;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
/**
* {@link DefensiveIntegerStringConverter} test.
*/
public class DefensiveIntegerStringConverterTest {
private ObjectProperty< Integer > propertyBeingUpdated;
private DefensiveIntegerStringConverter systemUnderTest;
@Before public void initialiseSystemUnderTest(){
propertyBeingUpdated = new SimpleObjectProperty<>();
systemUnderTest = new DefensiveIntegerStringConverter( propertyBeingUpdated );
}//End Method
@Test public void shouldConvertValidValue() {
assertThat( systemUnderTest.fromString( "100" ), is( 100 ) );
assertThat( systemUnderTest.fromString( "123234" ), is( 123234 ) );
assertThat( systemUnderTest.fromString( "0" ), is( 0 ) );
}//End Method
@Test public void shouldNotConvertInvalidValueAndUsePreviousValidValue() {
propertyBeingUpdated.set( 200 );
assertThat( systemUnderTest.fromString( "anything" ), is( 200 ) );
propertyBeingUpdated.set( 13 );
assertThat( systemUnderTest.fromString( "0.456" ), is( 13 ) );
}//End Method
@Test public void shouldNotConvertInvalidValueAndUseZeroForNoPreviousValidValue() {
assertThat( systemUnderTest.fromString( "anything" ), is( 0 ) );
assertThat( systemUnderTest.fromString( "100.23" ), is( 0 ) );
}//End Method
}//End Class
| [
"danielanthonygrew@gmail.com"
] | danielanthonygrew@gmail.com |
eedbb17d9ce226eaa3225bfaca2306330ab3100a | f77a9f006337e98d8d4991d4d54d6f0860c6d518 | /src/test/java/DataProviderComponent/DataProvider_Login.java | 6860e16370a6a53075c2607d3810e0655a884263 | [] | no_license | SaravananPushparaj/Framework_build | 0c383cebc8563c9a3de47466680f13d923f76a6b | 98d85bf8c36fdc2254e2ff432f6bf90843ef19da | refs/heads/master | 2021-01-10T15:33:47.209939 | 2015-11-08T08:06:54 | 2015-11-08T08:06:54 | 45,763,447 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,893 | java | package DataProviderComponent;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.testng.annotations.DataProvider;
import Generic_Component.ExcelReadWrite;
public class DataProvider_Login {
@DataProvider(name="dp_InvalidLogin")
public static Iterator<String[]> InvalidLogindata() throws IOException
{
List<String[]> Obj = flagRowCount("Invalid_Login_test");
return Obj.iterator();
}
@DataProvider(name="dp_ValidLogin")
public static Iterator<String[]> ValidLogindata() throws IOException
{
List<String[]> Obj = flagRowCount("Valid_Login_test");
return Obj.iterator();
}
//to get the flag row count
public static List<String[]> flagRowCount(String script_name) throws IOException
{
ExcelReadWrite x=new ExcelReadWrite("D:\\BSI\\TestData\\Test_Data.xls");
HSSFSheet Scenario_Login = x.Setsheet("Scenario_Login");
int xlRowcount = x.getrowcount(Scenario_Login);
//Declare List
List<String[]> List_login= new ArrayList<String[]>();
//traversing Excel
for(int xlRow=1;xlRow<=xlRowcount;xlRow++)
{
String Execute_Flag = x.Readvalue(Scenario_Login, xlRow, "Execute_Flag");
String Scriptname = x.Readvalue(Scenario_Login, xlRow, "Scriptname");
if((Execute_Flag.equals("Y")&&(Scriptname.equals(script_name))))
{
String[] arr_login= new String[5];
arr_login[0]=x.Readvalue(Scenario_Login, xlRow, "TC_ID");
arr_login[1]=x.Readvalue(Scenario_Login, xlRow, "Order");
arr_login[2]=x.Readvalue(Scenario_Login, xlRow, "Uname");
arr_login[3]=x.Readvalue(Scenario_Login, xlRow, "Pwd");
arr_login[4]=x.Readvalue(Scenario_Login, xlRow, "Exp_Res");
List_login.add(arr_login);
}//end of if
}//end of for
return List_login;
}
}
| [
"saravananpushparaj@gmail.com"
] | saravananpushparaj@gmail.com |
73cec9c0abaf32d9fa258874eb26821d625bbc46 | 49b57339d939ea3f498249d3aacca1dec543163b | /jadx-snap-new/sources/com/google/android/gms/common/api/internal/zzcq.java | 51a6315c560b07d9387a8260991d5dec62b3f6d7 | [] | no_license | 8secz-johndpope/snapchat-re | 1655036c41518c3a2aaa0c2543dc49f4acb93eaf | 04f5c5bb627d21f620088525fffcf5c99abd7ce5 | refs/heads/master | 2020-08-24T09:14:38.209745 | 2019-06-14T05:13:44 | 2019-06-14T05:13:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 396 | java | package com.google.android.gms.common.api.internal;
import com.google.android.gms.common.api.Api.zzb;
import com.google.android.gms.tasks.TaskCompletionSource;
public abstract class zzcq<A extends zzb, L> {
private final zzci<L> zzgbb;
public final void zzaky() {
this.zzgbb.clear();
}
public abstract void zzb(A a, TaskCompletionSource<Void> taskCompletionSource);
}
| [
"blevy@protonmail.com"
] | blevy@protonmail.com |
f0c4734d080c2faa7223d8522fd4cc7ab079efee | 77f7ed99b6e53af135f47d2a5adc8b7049665542 | /jtwig-functions/src/test/java/org/jtwig/functions/parameters/input/InputParametersTest.java | e039097a005404c0e710a37f6a0e837099377041 | [
"Apache-2.0"
] | permissive | fabienwarniez/jtwig | cf254adfed8147e5cd5dd73016ae549c03e6b675 | 648a1d7ca7ae3663a3bdbc74c8b16f81411f10ae | refs/heads/master | 2020-12-30T17:44:35.747316 | 2016-02-02T20:11:24 | 2016-02-02T20:11:24 | 50,948,455 | 0 | 0 | null | 2016-02-02T20:09:08 | 2016-02-02T20:09:08 | null | UTF-8 | Java | false | false | 685 | java | package org.jtwig.functions.parameters.input;
import org.junit.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.IsEqual.equalTo;
import static org.jtwig.functions.parameters.input.InputParameters.parameters;
import static org.junit.Assert.assertEquals;
public class InputParametersTest {
@Test
public void valueAtPositionReturnsElementAtGivenPosition() throws Exception {
InputParameters parameters = parameters(1, 2);
assertEquals(2, parameters.valueAt(1));
}
@Test
public void lengthReturnsTheNumberOfArguments() throws Exception {
assertThat(parameters("one").length(), equalTo(1));
}
}
| [
"jmelo@lyncode.com"
] | jmelo@lyncode.com |
f8a173ea303589f7f68109417478cf69f2dd5621 | b6590a62d2d05c930c623e2145307328c7506203 | /src/com/silentdarknessmc/hub/Main.java | 2189181c73b8f50f3cfc16504db53299fd623960 | [] | no_license | SilentDarknessMC/Hub | 940943396a007cc1885d6c8d6c066a7f74229861 | 8344b3c2f079399e75a338d15763f02367d28e3d | refs/heads/master | 2021-01-01T17:36:46.246065 | 2015-01-30T01:37:10 | 2015-01-30T01:37:10 | 30,050,554 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 901 | java | package com.silentdarknessmc.hub;
import org.bukkit.Bukkit;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import com.silentdarknessmc.hub.Firework.Commands;
import com.silentdarknessmc.hub.heal.HealFeedCommand;
import com.silentdarknessmc.hub.heal.Signs;
public class Main extends JavaPlugin {
public void onEnable() {
Player player = (Player) sender;
final FileConfiguration config = this.getConfig();
saveConfig();
//Heal Signs Import
Bukkit.getServer().getPluginManager().registerEvents(new Signs(), this);
//Get Firework Command
this.getCommand("shoot").setExecutor(new Commands());
//Get Heal Command
this.getCommand("heal").setExecutor(new HealFeedCommand());
//Get Feed Command
this.getCommand("feed").setExecutor(new HealFeedCommand());
}
public void onDisable() {
}
} | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
741e13fab5947d7c0eaedac7a51c4237a787e0e7 | 63152c4f60c3be964e9f4e315ae50cb35a75c555 | /sql/catalyst/target/java/org/apache/spark/sql/catalyst/optimizer/EliminateMapObjects$.java | ecf90e8274fc9557a8c678e16bb10ee0e3b56a44 | [
"EPL-1.0",
"Classpath-exception-2.0",
"LicenseRef-scancode-unicode",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-free-unknown",
"GCC-exception-3.1",
"LGPL-2.0-or-later",
"CDDL-1.0",
"MIT",
"CC-BY-SA-3.0",
"NAIST-2003",
"LGPL-2.1-only",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"CPL-1.0",
"CC-PDDC",
"EPL-2.0",
"CDDL-1.1",
"BSD-2-Clause",
"CC0-1.0",
"Python-2.0",
"LicenseRef-scancode-unknown"
] | permissive | PowersYang/spark-cn | 76c407d774e35d18feb52297c68c65889a75a002 | 06a0459999131ee14864a69a15746c900e815a14 | refs/heads/master | 2022-12-11T20:18:37.376098 | 2020-03-30T09:48:22 | 2020-03-30T09:48:22 | 219,248,341 | 0 | 0 | Apache-2.0 | 2022-12-05T23:46:17 | 2019-11-03T03:55:17 | HTML | UTF-8 | Java | false | false | 863 | java | package org.apache.spark.sql.catalyst.optimizer;
/**
* Removes MapObjects when the following conditions are satisfied
* 1. Mapobject(... lambdavariable(..., false) ...), which means types for input and output
* are primitive types with non-nullable
* 2. no custom collection class specified representation of data item.
*/
public class EliminateMapObjects$ extends org.apache.spark.sql.catalyst.rules.Rule<org.apache.spark.sql.catalyst.plans.logical.LogicalPlan> {
/**
* Static reference to the singleton instance of this Scala object.
*/
public static final EliminateMapObjects$ MODULE$ = null;
public EliminateMapObjects$ () { throw new RuntimeException(); }
public org.apache.spark.sql.catalyst.plans.logical.LogicalPlan apply (org.apache.spark.sql.catalyst.plans.logical.LogicalPlan plan) { throw new RuntimeException(); }
}
| [
"577790911@qq.com"
] | 577790911@qq.com |
42cb2484bd94cd16a6430dc6c01569ea4b4040ae | aaabffe8bf55973bfb1390cf7635fd00ca8ca945 | /src/main/java/com/microsoft/graph/requests/generated/IBaseReportRootGetSkypeForBusinessActivityUserDetailRequest.java | 57443e2d4c1db553bb5dc0a9f0d5ee4a6b489c5b | [
"MIT"
] | permissive | rgrebski/msgraph-sdk-java | e595e17db01c44b9c39d74d26cd925b0b0dfe863 | 759d5a81eb5eeda12d3ed1223deeafd108d7b818 | refs/heads/master | 2020-03-20T19:41:06.630857 | 2018-03-16T17:31:43 | 2018-03-16T17:31:43 | 137,648,798 | 0 | 0 | null | 2018-06-17T11:07:06 | 2018-06-17T11:07:05 | null | UTF-8 | Java | false | false | 3,195 | java | // ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.requests.generated;
import com.microsoft.graph.concurrency.*;
import com.microsoft.graph.core.*;
import com.microsoft.graph.models.extensions.*;
import com.microsoft.graph.models.generated.*;
import com.microsoft.graph.http.*;
import com.microsoft.graph.requests.extensions.*;
import com.microsoft.graph.requests.generated.*;
import com.microsoft.graph.options.*;
import com.microsoft.graph.serializer.*;
import java.util.Arrays;
import java.util.EnumSet;
import com.google.gson.JsonObject;
import com.google.gson.annotations.*;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The interface for the Base Report Root Get Skype For Business Activity User Detail Request.
*/
public interface IBaseReportRootGetSkypeForBusinessActivityUserDetailRequest {
/**
* Patches the ReportRootGetSkypeForBusinessActivityUserDetail
*
* @param srcReport the Report with which to PATCH
* @param callback the callback to be called after success or failure
*/
void patch(Report srcReport, final ICallback<Report> callback);
/**
* Patches the ReportRootGetSkypeForBusinessActivityUserDetail
*
* @param srcReport the Report with which to PATCH
* @return the Report
* @throws ClientException an exception occurs if there was an error while the request was sent
*/
Report patch(Report srcReport) throws ClientException;
/**
* Puts the ReportRootGetSkypeForBusinessActivityUserDetail
*
* @param srcReport the Report to PUT
* @param callback the callback to be called after success or failure
*/
void put(Report srcReport, final ICallback<Report> callback);
/**
* Puts the ReportRootGetSkypeForBusinessActivityUserDetail
*
* @param srcReport the Report to PUT
* @return the Report
* @throws ClientException an exception occurs if there was an error while the request was sent
*/
Report put(Report srcReport) throws ClientException;
/**
* Gets the Report
*
* @param callback the callback to be called after success or failure
*/
void get(final ICallback<Report> callback);
/**
* Gets the Report
*
* @return the Report
* @throws ClientException an exception occurs if there was an error while the request was sent
*/
Report get() throws ClientException;
/**
* Sets the select clause for the request
*
* @param value the select clause
* @return the updated request
*/
IReportRootGetSkypeForBusinessActivityUserDetailRequest select(final String value);
/**
* Sets the expand clause for the request
*
* @param value the expand clause
* @return the updated request
*/
IReportRootGetSkypeForBusinessActivityUserDetailRequest expand(final String value);
}
| [
"caitbal@microsoft.com"
] | caitbal@microsoft.com |
2dde410a2728d73651ded3d23663710955f7a8e6 | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/26/26_37d331609aa29f3cfaf4bba1d081d5f12be647c2/ElectrifySkill/26_37d331609aa29f3cfaf4bba1d081d5f12be647c2_ElectrifySkill_s.java | 8f0ef53a80035df73ea5ebb47672a6bdc81bc6c6 | [] | 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 | 566 | java | package aigilas.skills.impl;
import aigilas.creatures.BaseCreature;
import aigilas.skills.AnimationType;
import aigilas.skills.BaseSkill;
import aigilas.skills.SkillId;
import aigilas.statuses.Status;
import aigilas.statuses.StatusFactory;
public class ElectrifySkill extends BaseSkill {
public ElectrifySkill()
{
super(SkillId.Electrify, AnimationType.SELF);
}
@Override
public void activate(BaseCreature source) {
super.activate(source);
StatusFactory.apply(source, Status.Electrify);
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
c0d5ea874475f66390b0ad4379cb834a587090ba | a0c3b77b5a67b6ee57f5fb49fdd7179ac02f4b64 | /src/main/java/com/atguigu/concurrent/ReadWriteLockDemo.java | 5fcfdade7ea97a1ac1e3f6b43b186953134ddc6a | [] | no_license | 1090168015/high-grade | 56c6bf91366efd31c297be5602636819f5805399 | 580596773641cf6d05638b8db275e3ca09750b41 | refs/heads/master | 2022-07-23T06:24:14.614769 | 2019-10-26T00:55:40 | 2019-10-26T00:55:40 | 214,432,466 | 1 | 0 | null | 2022-06-29T19:44:23 | 2019-10-11T12:36:41 | Java | UTF-8 | Java | false | false | 2,196 | java | package com.atguigu.concurrent;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
class MyCache{
private volatile Map<String, String> map = new HashMap<>();
ReadWriteLock readWriteLock = new ReentrantReadWriteLock();
public void put(String key,String value) {//正常情况下一条写操作必须操作完成才能进行下一次写操作,不允许加塞情况发生
readWriteLock.writeLock().lock();
try {
System.out.println(Thread.currentThread().getName()+"\t写操作开始");
map.put(key, value);
System.out.println(Thread.currentThread().getName()+"\t写操作结束");
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}finally {
readWriteLock.writeLock().unlock();
}
}
public void get(String key) {
readWriteLock.readLock().lock();
try {
System.out.println(Thread.currentThread().getName()+"\t读操作开始");
map.get(key);
System.out.println(Thread.currentThread().getName()+"\t读操作结束");
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}finally {
readWriteLock.readLock().unlock();
}
}
}
/**
* @auther zzyy
* @create 2019-02-20 14:08
* 多个线程同时读一个资源类没有任何问题,所以为了满足并发量,读取共享资源应该可以同时进行。
* 但是
* 如果有一个线程想去写共享资源来,就不应该再有其它线程可以对该资源进行读或写
* 小总结:
* 读-读能共存
* 读-写不能共存
* 写-写不能共存
*/
public class ReadWriteLockDemo {
public static void main(String[] args) {
MyCache myCache= new MyCache();
for (int i = 1; i <=10; i++) {
int finalI = i;
new Thread(()->{
myCache.put(finalI+"",finalI+"");
}, String.valueOf(i)).start();
}
for (int i = 1; i <=10; i++) {
int finalI=i;
new Thread(() -> {
myCache.get(finalI+"");
}, String.valueOf(i)).start();
}
}
}
| [
"123456@qq.com"
] | 123456@qq.com |
e5c94dc3b905e1a0ee62f91f0b67a49063db4810 | 4ddaca5dae1ac44ecbb8030734b4cb77cd16becd | /Algorithms/DataCompression/HuffmanEncoding/src/Main.java | 4b4e30d8dd45ab21b59a4989169e06aa9b78d459 | [
"Apache-2.0"
] | permissive | dgr8akki/DS-Algo-Made-Easy-With-Aakash | 55aad8cb22226322773871df4be2b53d12ec366a | ccb6f6323af47858a6647b72fbde79fe81538eb9 | refs/heads/develop | 2021-06-28T06:09:06.239674 | 2020-10-27T14:26:08 | 2020-10-27T14:26:08 | 144,481,699 | 9 | 0 | Apache-2.0 | 2020-10-05T09:13:49 | 2018-08-12T16:14:25 | Java | UTF-8 | Java | false | false | 459 | java | package Algorithms.DataCompression.HuffmanEncoding.src;
public class Main {
public static void main(String[] args) {
String text = "My name is Akku!";
int[] charFrequencies = new int[256];
for (char c : text.toCharArray())
++charFrequencies[c];
HuffmanCode huffmanCode = new HuffmanCode();
HuffmanTree huffmanTree = HuffmanCode.buildTree(charFrequencies);
HuffmanCode.printCodes(huffmanTree, new StringBuilder());
}
}
| [
"pahujaaakash5@gmail.com"
] | pahujaaakash5@gmail.com |
fe4f95f630efd106f352f0fd03801e9bdf5f15f4 | b51badf590b2a44583349ec373c0d7374184e10a | /src/main/java/kenijey/harshencastle/base/BaseHarshenLeaves.java | f437db268b9a94040a28d904035e2a78732b3334 | [] | no_license | wlich/harshencastle | 8a898381ab1feb81a639504a3af009365e258f68 | 959a5522f08ab02d3d60a20168edaadf6472b266 | refs/heads/master | 2021-01-20T08:46:34.064353 | 2017-08-27T18:14:45 | 2017-08-27T18:14:45 | 101,573,523 | 0 | 0 | null | 2017-08-27T18:56:51 | 2017-08-27T18:56:51 | null | UTF-8 | Java | false | false | 1,507 | java | package kenijey.harshencastle.base;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.item.Item;
import net.minecraft.util.BlockRenderLayer;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
public abstract class BaseHarshenLeaves extends Block
{
public BaseHarshenLeaves() {
super(Material.LEAVES);
setRegistryName(getName());
setUnlocalizedName(getName());
this.setSoundType(SoundType.PLANT);
this.setHardness(0.2F);
this.setLightOpacity(1);
}
protected abstract String getName();
@Override
public Item getItemDropped(IBlockState state, Random rand, int fortune) {
return null;
}
@Override
public String getHarvestTool(IBlockState state) {
return "shears";
}
@Override
public boolean isOpaqueCube(IBlockState state) {
return false;
}
@Override
public boolean isFullBlock(IBlockState state) {
return false;
}
@SideOnly(Side.CLIENT)
public BlockRenderLayer getBlockLayer()
{
return BlockRenderLayer.CUTOUT_MIPPED;
}
@SideOnly(Side.CLIENT)
public boolean shouldSideBeRendered(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side)
{
return true;
}
}
| [
"wynprice999@gmail.com"
] | wynprice999@gmail.com |
70762c1b4e29ef4056bbf8cfc70e53f18a29204d | ec8eb6820b763a787ff33f76a4d0152e748f756c | /Excepciones/src/cl/java/fecha/noChequiada/DiaNoValidoException.java | 54c7403d3a7d9cbddf71257c301977445fb5e3e8 | [] | no_license | JonathanParra/workspace | c6f143a4cd9f6a713e0b245ca989fbc8cc41fc85 | edc32fa1a95946f837c452dad24b63b26db7b7ba | refs/heads/master | 2021-01-17T17:38:53.663757 | 2016-06-10T14:29:59 | 2016-06-10T14:29:59 | 60,852,672 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 153 | java | package cl.java.fecha.noChequiada;
public class DiaNoValidoException extends Exception {
public DiaNoValidoException(){
super("dia no valido");
}
}
| [
"usuario"
] | usuario |
0b14696f7565dc2dc5952444e5ce181616e92a51 | e1630ae5e5f708509ae59bcbb926f5ac400471af | /sdk/src/com/socialize/ui/auth/AnonymousCell.java | 9def07fb4a0ffb21d280ee60d3857c8788a49d8f | [] | no_license | KhalidElSayed/socialize-sdk-android | b8e25cb2ce710aa7b02bfc9ddacb4aa881bc40b7 | 6df27d732654a87fae85e755cd571d3507a54977 | refs/heads/master | 2021-01-20T21:49:02.187220 | 2012-08-27T17:29:15 | 2012-08-27T17:29:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,459 | java | package com.socialize.ui.auth;
import android.content.Context;
import android.util.TypedValue;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.socialize.ui.util.Colors;
import com.socialize.ui.view.ClickableSectionCell;
public class AnonymousCell extends ClickableSectionCell {
public AnonymousCell(Context context) {
super(context);
}
public void init() {
setCanClick(false);
setStrokeCornerOffset(1);
super.init();
}
@Override
protected ImageView makeImage() {
setImageOn(drawables.getDrawable("user_icon.png"));
return new ImageView(getContext());
}
@Override
protected View makeDisplayText() {
LinearLayout layout = new LinearLayout(getContext());
layout.setOrientation(VERTICAL);
LayoutParams params = new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);
TextView title = new TextView(getContext());
TextView sub = new TextView(getContext());
title.setText("You are currently anonymous");
sub.setText("Authenticate with a service above");
title.setTextColor(colors.getColor(Colors.ANON_CELL_TITLE));
sub.setTextColor(colors.getColor(Colors.ANON_CELL_TEXT));
title.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 14);
sub.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 12);
layout.setLayoutParams(params);
layout.addView(title);
layout.addView(sub);
return layout;
}
}
| [
"jason.polites@gmail.com"
] | jason.polites@gmail.com |
be894c2520047d0848a24fd30c519c7e0b26af68 | 25602b0ba33b7dc66943c5bc95cbf0b6348818d2 | /src/main/java/com/lamfire/jmongo/utils/FieldName.java | 1631dd4076a32956cb228fc7194b1656b396ad3a | [] | no_license | xuezhongyu01/jmongo | 3ac1825a296e2035aec0ebcbfc52082f15fd15dc | c7be85f1f6b0008d7a091de8dbcc9de692ca3be9 | refs/heads/master | 2021-12-30T08:01:26.928137 | 2016-11-09T06:34:44 | 2016-11-09T06:34:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,808 | java | package com.lamfire.jmongo.utils;
import java.lang.reflect.Field;
public class FieldName {
public static String of(final String name) {
return of(callingClass(), name);
}
public static String of(final Class<?> clazz, final String name) {
Assert.parameterNotNull(clazz, "clazz");
Assert.parameterNotNull(name, "name");
if (hasField(clazz, name))
return name;
throw new FieldNameNotFoundException("Field called '" + name + "' on class '" + clazz
+ "' was not found.");
}
private static boolean hasField(Class<?> clazz, String name) {
Field[] fa = ReflectionUtils.getDeclaredAndInheritedFields(clazz, true);
for (Field field : fa) {
if (name.equals(field.getName()))
return true;
}
return false;
}
private static Class<?> callingClass() throws java.lang.IllegalStateException {
return callingClass(FieldName.class);
}
private static Class<?> callingClass(final Class<?>... classesToExclude) {
final StackTraceElement[] stackTrace = new Exception().getStackTrace();
for (int i = 0; i < stackTrace.length; i++) {
final StackTraceElement e = stackTrace[i];
final String c = e.getClassName();
boolean exclude = false;
for (final Class<?> ec : classesToExclude) {
exclude |= c.equals(ec.getName());
}
if (!exclude) {
return forName(c);
}
}
throw new java.lang.IllegalStateException();
}
private static Class<?> forName(String c) {
try {
return Class.forName(c);
} catch (ClassNotFoundException e) {
throw new RuntimeException("Error when getting class for name '" + c + "'");
}
};
public static class FieldNameNotFoundException extends RuntimeException {
private static final long serialVersionUID = 5939944012549621818L;
public FieldNameNotFoundException(String msg) {
super(msg);
}
}
}
| [
"52089489@qq.com"
] | 52089489@qq.com |
3fa83d451398113674b985d8eb9d036b593d8dcd | 2bc2eadc9b0f70d6d1286ef474902466988a880f | /tags/mule-1.4.1/transports/axis/src/main/java/org/mule/providers/soap/axis/AxisMessageDispatcherFactory.java | d043e297c63429d597a243635aa4b169ed55f106 | [] | no_license | OrgSmells/codehaus-mule-git | 085434a4b7781a5def2b9b4e37396081eaeba394 | f8584627c7acb13efdf3276396015439ea6a0721 | refs/heads/master | 2022-12-24T07:33:30.190368 | 2020-02-27T19:10:29 | 2020-02-27T19:10:29 | 243,593,543 | 0 | 0 | null | 2022-12-15T23:30:00 | 2020-02-27T18:56:48 | null | UTF-8 | Java | false | false | 988 | java | /*
* $Id$
* --------------------------------------------------------------------------------------
* Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
*
* The software in this package is published under the terms of the MuleSource MPL
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
*/
package org.mule.providers.soap.axis;
import org.mule.providers.AbstractMessageDispatcherFactory;
import org.mule.umo.UMOException;
import org.mule.umo.endpoint.UMOImmutableEndpoint;
import org.mule.umo.provider.UMOMessageDispatcher;
/**
* <code>AxisMessageDispatcherFactory</code> creates an AxisMessageDispatcher, used
* for making SOAP calls using the Axis stack.
*/
public class AxisMessageDispatcherFactory extends AbstractMessageDispatcherFactory
{
public UMOMessageDispatcher create(UMOImmutableEndpoint endpoint) throws UMOException
{
return new AxisMessageDispatcher(endpoint);
}
}
| [
"dirk.olmes@bf997673-6b11-0410-b953-e057580c5b09"
] | dirk.olmes@bf997673-6b11-0410-b953-e057580c5b09 |
b44e330ca0bcd142cf1603c0b6984744d276693d | 863acb02a064a0fc66811688a67ce3511f1b81af | /sources/p005cm/aptoide/p006pt/account/C1431ba.java | 5755e19c5f86f0f826dd3b454ac2cee64d3c5ec3 | [
"MIT"
] | permissive | Game-Designing/Custom-Football-Game | 98d33eb0c04ca2c48620aa4a763b91bc9c1b7915 | 47283462b2066ad5c53b3c901182e7ae62a34fc8 | refs/heads/master | 2020-08-04T00:02:04.876780 | 2019-10-06T06:55:08 | 2019-10-06T06:55:08 | 211,914,568 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 591 | java | package p005cm.aptoide.p006pt.account;
import p005cm.aptoide.accountmanager.Account;
import p026rx.p027b.C0132p;
/* renamed from: cm.aptoide.pt.account.ba */
/* compiled from: lambda */
public final /* synthetic */ class C1431ba implements C0132p {
/* renamed from: a */
private final /* synthetic */ MatureContentPersistence f4348a;
public /* synthetic */ C1431ba(MatureContentPersistence matureContentPersistence) {
this.f4348a = matureContentPersistence;
}
public final Object call(Object obj) {
return this.f4348a.mo9630a((Account) obj);
}
}
| [
"tusharchoudhary0003@gmail.com"
] | tusharchoudhary0003@gmail.com |
6102686101d6b7385c4f3ddf3b6b82fadea8f987 | 58c23f6d66d08ef81c89d24f642f24f09704ec48 | /csas-framework/hoomsun-loan-impl/src/main/java/com/hoomsun/after/server/impl/SettleCustomerServerImpl.java | e5d7a65536e6d3332b883a8bc14941a023e1b75f | [] | no_license | ybak/casc-framework | 5ed651901eb4357e807d3c3d3440ed26c1848d56 | b76e68dd53cf26ce6302db545afd572a38aac3e3 | refs/heads/master | 2021-03-24T01:11:12.632781 | 2018-05-16T06:49:09 | 2018-05-16T06:49:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,385 | java | /**
* Copyright www.hoomsun.com 红上金融信息服务(上海)有限公司
*/
package com.hoomsun.after.server.impl;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hoomsun.after.api.model.param.SettleCustomerReq;
import com.hoomsun.after.api.model.vo.LoanBookCustomerResult;
import com.hoomsun.after.api.model.vo.SettleCustomerResult;
import com.hoomsun.after.api.server.SettleCustomerServer;
import com.hoomsun.after.api.util.StringUtil;
import com.hoomsun.after.api.util.autoCode;
import com.hoomsun.after.api.util.excel.secode.annotation.ExportExcel;
import com.hoomsun.after.api.util.excel.secode.excelUtil.ExcelUtils;
import com.hoomsun.after.dao.SettleCustomerMapper;
/**
* 作者:Administrator <br>
* 创建时间:2018年3月28日 <br>
* 描述:结清客户查询
*/
@Service("SettleCustomerServer")
public class SettleCustomerServerImpl implements SettleCustomerServer{
private static final Logger LogCvt = Logger.getLogger(SettleCustomerServerImpl.class);
@Autowired
private SettleCustomerMapper settleCustomerMapper;
/**
* 查询结清客户列表
*/
@Override
public List<SettleCustomerResult> querySettleCustomer(SettleCustomerReq req) {
// TODO Auto-generated method stub
List<SettleCustomerResult> list = null;
try {
list = settleCustomerMapper.querySettleCustomer(req);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
LogCvt.error("查询结清客户列表查询异常");
}
return list;
}
/**
* 查询结清客户总条数
*/
@Override
public Integer countSettleCustomer(SettleCustomerReq req) {
// TODO Auto-generated method stub
Integer count=0;
try {
count=settleCustomerMapper.countSettleCustomer(req);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
LogCvt.error("查询结清客户总条数查询异常");
}
return count;
}
/**
* 结清客户导出
*/
@Override
public void downloadSettleCustomer(SettleCustomerReq req) {
// TODO Auto-generated method stub
try {
req.setPageSize(10000);//导出一批10000条数据
String fileName = "结清客户列表.xlsx";
String title = "结清客户列表";
ExportExcel excel=new ExportExcel(title, SettleCustomerResult.class);
Integer count=StringUtil.initConfigMaxRow("Max_row");
for (int i = 1; i < count; i++) {
req.setPage(i);
List<SettleCustomerResult> list = settleCustomerMapper.querySettleCustomer(req);
excel=excel.setDataList(ExcelUtils.SettleCustomerExcel(list));
}
excel.write(req.getResponse(), fileName);
excel.dispose();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
LogCvt.error("结清客户列表导出异常");
}
}
/**
* 客户还款记录详细信息
*/
@Override
public List<LoanBookCustomerResult> queryLoanBookCustomerDetail(SettleCustomerReq req) {
// TODO Auto-generated method stub
List<LoanBookCustomerResult>list=null;
try {
list=settleCustomerMapper.queryLoanBookCustomerDetail(req);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
LogCvt.error("客户还款记录详细信息查询异常");
}
return list;
}
}
| [
"936707967@qq.com"
] | 936707967@qq.com |
bb1effa767badedd23aab7f65079292f1769ac8d | 841e03b80ce637e72d02707da0f367c2c9962cd2 | /src/main/java/org/onetwo/ext/apiclient/qqmap/api/DistrictClient.java | cbda2f6d1f261051ada549ad50b3791e08b5d766 | [] | no_license | wayshall/onetwo-wechat | 8290687de433b650c816f43835cf0708126032df | 767676214af0086d86d765a269c1fc6f482ff5c2 | refs/heads/master | 2023-07-05T20:25:30.550148 | 2021-03-18T15:18:42 | 2021-03-18T15:18:42 | 95,507,804 | 2 | 3 | null | 2021-08-13T15:28:54 | 2017-06-27T02:11:48 | Java | UTF-8 | Java | false | false | 869 | java | package org.onetwo.ext.apiclient.qqmap.api;
import org.onetwo.ext.apiclient.qqmap.QQMapUtils;
import org.onetwo.ext.apiclient.qqmap.response.DistrictResponse;
import org.onetwo.ext.apiclient.wechat.core.WechatApiClient;
import org.springframework.web.bind.annotation.GetMapping;
/**
* https://lbs.qq.com/webservice_v1/guide-region.html
*
* @author weishao zeng
* <br/>
*/
@WechatApiClient(url=QQMapUtils.BASE_URL)
public interface DistrictClient {
/****
* 获取全部行政区划数据。该请求为GET请求。
* @author weishao zeng
* @param request
* @return
*/
@GetMapping(path="/district/v1/list")
DistrictResponse getAll(String key);
@GetMapping(path="/district/v1/getchildren")
DistrictResponse getchildren(String key, String id);
@GetMapping(path="/district/v1/search")
DistrictResponse search(String key, String keyword);
}
| [
"weishao.zeng@gmail.com"
] | weishao.zeng@gmail.com |
9be8f2844eeb60d3df92a515221ea48dd7198696 | 29f78bfb928fb6f191b08624ac81b54878b80ded | /sp_files_generated/projects/sync8/src/main/java/sync8/input/InputDataClassName_2_6.java | d45c84d6c0e6cb9c0fa50ae47a799fcbe24eb41c | [] | no_license | MSPL4SOA/MSPL4SOA-tool | 8a78e73b4ac7123cf1815796a70f26784866f272 | 9f3419e416c600cba13968390ee89110446d80fb | refs/heads/master | 2020-04-17T17:30:27.410359 | 2018-07-27T14:18:55 | 2018-07-27T14:18:55 | 66,304,158 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 793 | java | package sync8.input;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "InputDataClassName_2_6")
@XmlType(name = "inputDataClassName_2_6", propOrder = { "InputName_2_6_1" })
public class InputDataClassName_2_6 implements Serializable {
private static final long serialVersionUID = 1L;
@XmlElement(name = "InputName_2_6_1")
protected String InputName_2_6_1;
public String getInputName_2_6_1() {
return InputName_2_6_1;
}
public void setInputName_2_6_1(String value) {
this.InputName_2_6_1 = value;
}
}
| [
"akram.kamoun@gmail.com"
] | akram.kamoun@gmail.com |
25747452b09ffbcc47e6cc7ab47c79b414e04d4f | ade43c95a131bc9f33b8f99e8b0053b5bc1393e8 | /src/OWON_VDS_v1.0.24/com/owon/uppersoft/dso/source/comm/AbsGetDataRunner.java | 03e9a60d9e902b3d6f855edb3fade113c70cee44 | [] | no_license | AbirFaisal/RealScope | 7ba7532986ea1ee11683b4bd96f746e800ea144a | f80ff68a8e9d61d7bec12b464b637decb036a3f0 | refs/heads/master | 2020-03-30T04:21:38.344659 | 2018-10-03T17:54:16 | 2018-10-03T17:54:16 | 150,738,973 | 7 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,566 | java | package com.owon.uppersoft.dso.source.comm;
import java.nio.ByteBuffer;
import java.util.Iterator;
import com.owon.uppersoft.dso.global.ControlManager;
import com.owon.uppersoft.dso.global.DataHouse;
import com.owon.uppersoft.dso.mode.control.SampleControl;
import com.owon.uppersoft.dso.model.WaveFormManager;
import com.owon.uppersoft.dso.wf.ChannelInfo;
import com.owon.uppersoft.vds.core.comm.ICommunicateManager;
import com.owon.uppersoft.vds.core.wf.WaveFormInfo;
import com.owon.uppersoft.vds.core.wf.rt.ChannelDataInfo;
import com.owon.uppersoft.vds.core.wf.rt.ChannelsTransportInfo;
import com.owon.uppersoft.vds.core.wf.rt.LoadMedia;
public abstract class AbsGetDataRunner {
public static final String UPDATE_FPS = "UPDATE_FPS";
protected ICommunicateManager ism;
protected DataHouse dh;
protected ControlManager cm;
public AbsGetDataRunner(DataHouse dh, ICommunicateManager ism) {
this.dh = dh;
this.ism = ism;
cm = dh.controlManager;
}
public ChannelsTransportInfo getDataT() {
long t0 = System.currentTimeMillis();
ChannelsTransportInfo cti = getData();
long t1 = System.currentTimeMillis();
dbgln("getDataT: " + (t1 - t0) + " ms");
return cti;
}
protected void updateFrame(int fc) {
/** 记录实际接收帧数 */
// System.err.println(receiveFrameCount);
// t2 = System.currentTimeMillis();
// del = t2 - t1;
// DBG.dbg(ct + " WaveForms on Rate: " + del / ct + " ms/f\n");
computeFramesPerSec(fc);
}
private void dbgln(String string) {
}
protected abstract ChannelsTransportInfo getData();
/**
* 采集后进行平均值和接地的处理,以及反相
*
* @param cti
*/
protected final void handleGroundNInverse(ChannelsTransportInfo cti) {
WaveFormManager wfm = dh.getWaveFormManager();
Iterator<? extends ChannelDataInfo> it = cti.iterator_ChannelDataInfo();
while (it.hasNext()) {
ChannelDataInfo cdi = it.next();
WaveFormInfo wfi = wfm.getWaveForm(cdi.chl).wfi;
ChannelInfo ci = wfi.ci;
/**
* 可控的软件接地实现,仅针对屏幕的adc点,
*
* 保存为文件时须存储耦合方式以在dm文件载入时设置正确的耦合方式
*
* 同时也处理了adc限界,所以条件转入后即可continue
*/
if (ci.isGround()) {
cdi.forceGround(ci.getPos0());
} else {
cdi.handleADCBoundNInverse(ci.getPos0(), ci.isInverse());
}
}
}
/**
* 采集后进行平均值和接地的处理,以及反相
*
* 只对屏幕点做平均值,这样速度快,而且在拉触发和插值后,此时深存储停下只有最后一帧
*
* fft开启时不处理
*
* 接地或限界后,仍可以进入平均值的处理
*
* @param cti
*/
protected void handleAverage(ChannelsTransportInfo cti) {
WaveFormManager wfm = dh.getWaveFormManager();
SampleControl sc = dh.controlManager.getSampleControl();
boolean avgon = sc.avgon;
int avgtimes = sc.getAvgTimes();
Iterator<? extends ChannelDataInfo> it = cti.iterator_ChannelDataInfo();
while (it.hasNext()) {
ChannelDataInfo cdi = it.next();
WaveFormInfo wfi = wfm.getWaveForm(cdi.chl).wfi;
ByteBuffer adcbuf = cdi.getUniqueAdcbuf();
wfi.ac.updateAverage(adcbuf, avgtimes, avgon);
}
}
private int framesCount;
private long tbeg;
public void resetCumulateFrames() {
framesCount = 0;
}
protected void computeFramesPerSec(int fs) {
if (framesCount == 0)
tbeg = System.currentTimeMillis();
framesCount += fs;
long timeCount = System.currentTimeMillis() - tbeg;
if (timeCount > 1000) {
float tmp = framesCount / (float) timeCount;// frame/ms
float fps = tmp * 1000;// ms转s
// BigDecimal tmp = BigDecimal.valueOf(framesCount).divide(
// BigDecimal.valueOf(timeCount));
// fps = tmp.multiply(BigDecimal.valueOf(1000000000)).intValue();
// DBG.outprintln(framesCount + "," + timeCount);
cm.pcs.firePropertyChange(UPDATE_FPS, -1, fps);
resetCumulateFrames();
}
}
protected void checkTrgEdgeMiddle() {
dh.getWaveFormManager().setTrgEdgeMiddle();
}
public void release() {
getChannelsTransportInfo().release();
}
public LoadMedia getLoadMedia() {
return getChannelsTransportInfo();
}
public abstract ChannelsTransportInfo getChannelsTransportInfo();
public void prepareToRun() {
ChannelsTransportInfo ci = getChannelsTransportInfo();
ci.frameAllNum = 0;
ci.resetStatusArr();
resetCumulateFrames();
}
} | [
"administrator@Computer.local"
] | administrator@Computer.local |
7212a3211c35e79669985bc89a08c316ee3feeed | 943635f3470a6c27b867f9284c402f53a83e55c3 | /gedi-geode-extensions-core/src/main/java/gedi/solutions/geode/util/GemFireNetworking.java | f65f68a8c36fbae383a4c8c7b4136a4704a53ea4 | [
"Apache-2.0"
] | permissive | nyla-solutions/gedi-geode | 1045d1d0907fed51256ff10562410a5eac4d4e41 | d5508a027bd00e125b0b2e2ef808a8a51c084ece | refs/heads/master | 2020-12-30T15:41:10.320607 | 2019-05-08T13:05:53 | 2019-05-08T13:05:53 | 91,156,311 | 2 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,787 | java | package gedi.solutions.geode.util;
import nyla.solutions.core.net.Networking;
/**
* Utility class for various common GF related functionality
*
* @author Gregory Green
*
*/
public final class GemFireNetworking
{
/**
* Parse the remote locators and locator and assert that they match
* @param remoteLocators the remote locator
* @param locators the local locator
* @return true if locators match
*/
public static boolean checkRemoteLocatorsAndLocatorsMatch(String remoteLocators, String locators)
{
if(remoteLocators == null || remoteLocators.length() == 0)
return false;
if(remoteLocators.equalsIgnoreCase(locators))
return true;
String[] remoteLocatorsArray = remoteLocators.split(",");
if(locators == null || locators.length() == 0)
return false;
String[] locatorsArray = locators.split(",");
String remoteLocatorHost, locatorHost;
int remoteLocatorPort, locatorPort;
for (String remoteLocator : remoteLocatorsArray)
{
if(remoteLocator == null || remoteLocator.length() == 0)
continue;
//parse host
for(String locator: locatorsArray)
{
if(locator == null || locator.length() == 0)
continue;
try
{
remoteLocatorHost = parseLocatorHost(remoteLocator);
locatorHost = parseLocatorHost(locator);
remoteLocatorPort = parseLocatorPort(remoteLocator);
locatorPort = parseLocatorPort(locator);
if(Networking.hostEquals(remoteLocatorHost,locatorHost)
&& remoteLocatorPort == locatorPort)
{
return true;
}
else
{
//check if ip address match
}
}
catch (NumberFormatException e)
{
//port parse exception
return false;
}
catch (IllegalArgumentException e)
{
throw new IllegalArgumentException("remoteLocator:"+remoteLocator+" locator:"+locator+" ERROR:"+e.getMessage(),e);
}
}
}
return false;
}// --------------------------------------------------------
private static String parseLocatorHost(String locator)
{
int i = locator.indexOf("[");
if(i > 0)
return locator.substring(0,i).trim();
else
return locator.trim();
}// --------------------------------------------------------
private static int parseLocatorPort(String locator)
{
int start = locator.indexOf("[");
String text = null;
if(start > 0)
{
String results = locator.substring(start+1);
int end = results.indexOf("]");
if(end > 0)
{
text = results.substring(0,end).trim();
return Integer.parseInt(text);
}
}
throw new IllegalArgumentException("Expected format host[port] but provided with:"+locator);
}// --------------------------------------------------------
}
| [
"ggreen@pivotal.io"
] | ggreen@pivotal.io |
73215136dad98339fc4b8d7aea1e8dd963658230 | 9f907527f44fdfc33b5add9f8d313bbeb96d1192 | /src/spoj/RecursiveSequence.java | 1778d1d7c6ff90ce6134922d3105ef82f9e7eaa6 | [] | no_license | kocko/algorithms | 7af7052b13a080992dcfbff57171a2cac7c50c67 | 382b6b50538220a26e1af1644e72a4e1796374b6 | refs/heads/master | 2023-08-03T21:15:27.070471 | 2023-08-03T14:39:45 | 2023-08-03T14:39:45 | 45,342,667 | 5 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,593 | java | package spoj;
import java.io.BufferedReader;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class RecursiveSequence implements Closeable {
private InputReader in = new InputReader(System.in);
private PrintWriter out = new PrintWriter(System.out);
public void solve() {
int t = in.ni();
while (t-- > 0) {
int k = in.ni();
long[] b = new long[k], c = new long[k];
for (int i = 0; i < k; i++) b[i] = in.nl();
for (int i = 0; i < k; i++) c[i] = in.nl();
int n = in.ni();
findNumber(b, c, n);
}
}
private void findNumber(long[] vector, long[] c, int n) {
int k = c.length;
if (n <= k) {
out.println(vector[n - 1]);
} else {
long[][] matrix = buildMatrix(c);
matrix = multiply(new long[][]{vector}, power(matrix, n - k));
out.println(matrix[0][k - 1]);
}
}
private long[][] buildMatrix(long[] c) {
long[][] matrix = new long[c.length][c.length];
for (int i = 0; i < c.length; i++) {
matrix[i][c.length - 1] = c[c.length - i - 1];
if (i > 0) matrix[i][i - 1] = 1;
}
return matrix;
}
private long[][] multiply(long[][] a, long[][] b) {
final long MOD = (long) 1e9;
long[][] result = new long[a.length][b[0].length];
for (int i = 0; i < a.length; i++) {
for (int j = 0; j < b[0].length; j++) {
for (int k = 0; k < a[0].length; k++) {
long value = (a[i][k] * b[k][j]) % MOD;
result[i][j] = (result[i][j] + value) % MOD;
}
}
}
return result;
}
private long[][] power(long[][] matrix, long p) {
int n = matrix.length;
long[][] result = new long[n][n];
for (int i = 0; i < n; i++) result[i][i] = 1L;
while (p > 0) {
if (p % 2 == 1) result = multiply(result, matrix);
matrix = multiply(matrix, matrix);
p >>= 1;
}
return result;
}
@Override
public void close() throws IOException {
in.close();
out.close();
}
static class InputReader {
public BufferedReader reader;
public StringTokenizer tokenizer;
public InputReader(InputStream stream) {
reader = new BufferedReader(new InputStreamReader(stream), 32768);
tokenizer = null;
}
public String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
public int ni() {
return Integer.parseInt(next());
}
public long nl() {
return Long.parseLong(next());
}
public void close() throws IOException {
reader.close();
}
}
public static void main(String[] args) throws IOException {
try (RecursiveSequence instance = new RecursiveSequence()) {
instance.solve();
}
}
}
| [
"konstantin.yovkov@tis.biz"
] | konstantin.yovkov@tis.biz |
ca803988246ce61be83ef7148df84ac4eb89f1e2 | ac3856631613305132583a72d018aff3b09fa050 | /CloudMusicTest2/app/src/main/java/com/dwb/appbardemo/adapter/VideoRecyclerAdapter.java | 5998debd788b4531de3ac48651314ed24496b495 | [] | no_license | codehome-guowh/cloudmusic | f554e57030e963d7ab1d1726be0079587bd4d5e4 | acef7ba738d597366797e7fa41508e764fbec77f | refs/heads/master | 2022-11-26T20:01:55.983918 | 2020-08-02T17:26:36 | 2020-08-02T17:26:36 | 284,207,938 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,976 | java | package com.dwb.appbardemo.adapter;
import android.content.Context;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.bumptech.glide.Glide;
import com.dwb.appbardemo.R;
import com.dwb.appbardemo.model.VideoModel;
import java.util.List;
import cn.jzvd.JzvdStd;
public class VideoRecyclerAdapter extends RecyclerView.Adapter<VideoRecyclerAdapter.ViewHolder> {
Context context;
List<VideoModel.ItemListBean> mDatas;
public VideoRecyclerAdapter(Context context, List<VideoModel.ItemListBean> mDatas) {
this.context = context;
this.mDatas = mDatas;
}
@NonNull
@Override
public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
return new ViewHolder(LayoutInflater.from(context).inflate(R.layout.item_video, parent, false));
}
@Override
public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
//获取指定位置的数据源
VideoModel.ItemListBean.DataBean dataBean = mDatas.get(position).getData();
//设置发布者信息
VideoModel.ItemListBean.DataBean.AuthorBean author = dataBean.getAuthor();
holder.nameTv.setText(author.getName());
holder.descTv.setText(author.getDescription());
String iconURL = author.getIcon();
if (!TextUtils.isEmpty(iconURL)){
Glide.with(context).load(iconURL).into(holder.iconIv);
}
//获取点赞数和评论数
VideoModel.ItemListBean.DataBean.ConsumptionBean consumption = dataBean.getConsumption();
holder.likeTv.setText(consumption.getRealCollectionCount()+"");
holder.likeTv.setText(consumption.getReplyCount()+"");
//设置视频播放器的信息
holder.jzvdStd.setUp(dataBean.getPlayUrl(),dataBean.getTitle(),JzvdStd.SCREEN_NORMAL);
String thumbURL = dataBean.getCover().getFeed();//缩略图地址
Glide.with(context).load(thumbURL).into(holder.jzvdStd.posterImageView);
holder.jzvdStd.positionInList = position;
}
@Override
public int getItemCount() {
return mDatas.size();
}
class ViewHolder extends RecyclerView.ViewHolder {
JzvdStd jzvdStd;
ImageView iconIv;
TextView nameTv,descTv,likeTv,replyTv;
public ViewHolder(@NonNull View itemView) {
super(itemView);
jzvdStd = itemView.findViewById(R.id.item_jzvd);
iconIv = itemView.findViewById(R.id.item_iv);
nameTv = itemView.findViewById(R.id.item_tv_name);
descTv = itemView.findViewById(R.id.item_tv_des);
likeTv = itemView.findViewById(R.id.item_tv_like);
replyTv = itemView.findViewById(R.id.item_tv_reply);
}
}
}
| [
"you@example.com"
] | you@example.com |
2948609d7cd56266618565c1caf2de31d027806a | 75d7d12e501ebfbcbe868023887176b17a7b1931 | /IDEAL/IDEAL-PARENT/IDEAL-COMMON/src/main/java/cn/ideal/common/mapper/CommoditySpevMapper.java | f97cae7493b7106ba2850011e35001bc8b60dffc | [] | no_license | RZZBlackMagic/first_repository | ba48fc0934181da525ce3eb4bd5e7d405a6d6978 | 35774058fbec5df07c62719bbddf514e730f5125 | refs/heads/master | 2022-12-27T04:26:45.351129 | 2020-11-04T09:40:01 | 2020-11-04T09:40:01 | 156,545,713 | 2 | 0 | null | 2022-12-16T07:12:41 | 2018-11-07T12:50:01 | JavaScript | UTF-8 | Java | false | false | 936 | java | package cn.ideal.common.mapper;
import cn.ideal.common.pojo.CommoditySpev;
import cn.ideal.common.pojo.CommoditySpevExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface CommoditySpevMapper {
int countByExample(CommoditySpevExample example);
int deleteByExample(CommoditySpevExample example);
int deleteByPrimaryKey(Long id);
int insert(CommoditySpev record);
int insertSelective(CommoditySpev record);
List<CommoditySpev> selectByExample(CommoditySpevExample example);
CommoditySpev selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") CommoditySpev record, @Param("example") CommoditySpevExample example);
int updateByExample(@Param("record") CommoditySpev record, @Param("example") CommoditySpevExample example);
int updateByPrimaryKeySelective(CommoditySpev record);
int updateByPrimaryKey(CommoditySpev record);
} | [
"1403741992@qq.com"
] | 1403741992@qq.com |
a5bd445ab59a347d2b1061110db9992563cc6b8c | ddce1fbc658e4bf9d124dc4acfc3914817a580a5 | /sources/com/github/mikephil/charting/data/BarLineScatterCandleBubbleData.java | 022bdd926e9588a1afa0c58ade22a759fd84cd1b | [] | no_license | ShahedSabab/eExpense | 1011f833a614c64cbb52a203821e38f18fce8a4f | b85c7ad6ee5ce6ae433a6220df182e14c0ea2d6d | refs/heads/master | 2020-12-21T07:39:45.956655 | 2020-07-13T21:52:04 | 2020-07-13T21:52:04 | 235,963,863 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 522 | java | package com.github.mikephil.charting.data;
import com.github.mikephil.charting.interfaces.datasets.IBarLineScatterCandleBubbleDataSet;
import java.util.List;
public abstract class BarLineScatterCandleBubbleData<T extends IBarLineScatterCandleBubbleDataSet<? extends Entry>> extends ChartData<T> {
public BarLineScatterCandleBubbleData() {
}
public BarLineScatterCandleBubbleData(T... sets) {
super(sets);
}
public BarLineScatterCandleBubbleData(List<T> sets) {
super(sets);
}
}
| [
"59721350+ShahedSabab@users.noreply.github.com"
] | 59721350+ShahedSabab@users.noreply.github.com |
01c31b854947d1e6cc461b75864a400fbd4e7a55 | 1ec73a5c02e356b83a7b867580a02b0803316f0a | /java/bj/bigData/Hadoop/Hadoop_241/ex01/hdfs/uploadFile.java | c60965aeb23b22df82681e3c98647e7f5d835d5a | [] | no_license | jxsd0084/JavaTrick | f2ee8ae77638b5b7654c3fcf9bceea0db4626a90 | 0bb835fdac3c2f6d1a29d1e6e479b553099ece35 | refs/heads/master | 2021-01-20T18:54:37.322832 | 2016-06-09T03:22:51 | 2016-06-09T03:22:51 | 60,308,161 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,523 | java | package bj.bigData.Hadoop.Hadoop_241.ex01.hdfs;
import org.apache.commons.io.IOUtils;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FSDataOutputStream;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.junit.Before;
import org.junit.Test;
import java.io.FileInputStream;
import java.io.IOException;
/**
* 上传文件
*
* @author root
*/
public class uploadFile {
private static String src = "/cloud/words.txt";
private static String dst = "hdfs://master:9000/words.txt";
// private static String src = "/cloud/jdk-7u79-linux-i586.tar.gz";
// private static String dst = "hdfs://master:9000/jdk";
Configuration conf = null;
FileSystem fs = null;
@Before
public void init() throws IOException {
conf = new Configuration();
fs = FileSystem.get( conf );
}
// 使用比较底层的写法上传文件
public static void main( String[] args ) throws IOException {
// 获取Filesystem对象
Configuration conf = new Configuration();
FileSystem fs = FileSystem.get( conf );
// 设置输出流
Path path = new Path( dst );
FSDataOutputStream out = fs.create( path );
// 设置输入流
FileInputStream in = new FileInputStream( src );
// 调用IOUtils的copy方法, 复制文件
IOUtils.copy( in, out );
}
// 使用系统提供的封装方法
@Test
public void uploadFiles() throws IllegalArgumentException, IOException {
fs.copyFromLocalFile( new Path( src ), new Path( dst ) );
}
}
| [
"chenlong88882001@163.com"
] | chenlong88882001@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.