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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5ff5122235918049d9607ad32d1190254f904157 | 00ea8f3499cd990c134dfe67a460888d98cb279b | /src/pt/trycatch/jfungue/ChannelPressure.java | fb5ad325ad24026a76783dc6283a51f1ed0f50fc | [
"Apache-2.0"
] | permissive | nmldiegues/jamify | 38688277513ae14b0a6f1e44ae6a0c8ca7c6ed25 | d3039826bfb30664dbd4473be4f5dd197266e943 | refs/heads/master | 2021-01-22T02:43:10.096386 | 2015-09-08T16:00:18 | 2015-09-08T16:00:18 | 42,122,954 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,588 | java | /*
* JFugue - API for Music Programming
* Copyright (C) 2003-2008 David Koelle
*
* http://www.jfugue.org
*
* 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 any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
package pt.trycatch.jfungue;
/**
* Represents channel pressure changes.
*
*@author David Koelle
*@version 3.0
*/
public final class ChannelPressure implements JFugueElement
{
private byte pressure;
/**
* Creates a new channel pressure object, with the specified key and pressure values.
* @param key the key to apply pressure to
* @param pressure the pressure to apply
*/
public ChannelPressure(byte pressure)
{
setPressure(pressure);
}
/**
* Sets the pressure value of this object.
* @param pressure the pressure for this object
*/
public void setPressure(byte pressure)
{
this.pressure = pressure;
}
/**
* Returns the pressure for this object.
* @return the pressure for this object
*/
public byte getPressure()
{
return this.pressure;
}
/**
* Returns the Music String representing this element and all of its settings.
* For a channel pressure object, the Music String is <code>+</code><i>key,pressure</i>
* @return the Music String for this element
*/
public String getMusicString()
{
StringBuffer buffy = new StringBuffer();
buffy.append("+");
buffy.append(getPressure());
return buffy.toString();
}
/**
* Returns verification string in this format:
* ChannelPressure: pressure={#}
* @version 4.0
*/
public String getVerifyString()
{
StringBuffer buffy = new StringBuffer();
buffy.append("ChannelPressure: pressure=");
buffy.append(getPressure());
return buffy.toString();
}
} | [
"nmld@ist.utl.pt"
] | nmld@ist.utl.pt |
3ed6aa4d0a41e2174df128fe1d49a734dceacc23 | 85eb4edc9db417fcd67b4937888899eab8b2108a | /src/main/java/io/manasobi/domain/mng/cash/sh03001170/Sh03001170VO.java | 55b331e4dedf88291a909e7b7b307b290727de5f | [] | no_license | ddONGzaru/manasobi-boot | 6df05d31b82a729f117fd14897a45e62cc29d70f | 495ff8a60aac22b9a02a6ffbcf80872cd9df2dee | refs/heads/master | 2021-01-19T02:13:54.957907 | 2017-04-23T11:34:35 | 2017-04-23T11:34:35 | 87,265,524 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,281 | java | package io.manasobi.domain.mng.cash.sh03001170;
import io.manasobi.core.vo.BaseVO;
import io.manasobi.utils.ModelMapperUtils;
import lombok.Data;
import lombok.NoArgsConstructor;
import ma.glasnost.orika.BoundMapperFacade;
import org.springframework.data.domain.Page;
import java.util.List;
import static java.util.stream.Collectors.*;
@Data
@NoArgsConstructor
public class Sh03001170VO extends BaseVO {
private String txId;
private String jisaCode;
private String branchCode;
private String terminalNo;
private String cashSendingDate;
private String cashSendingAmt;
private String mngOffice;
private String cash50kSendingAmt;
public static Sh03001170VO of(Sh03001170 sh03001170) {
BoundMapperFacade<Sh03001170, Sh03001170VO> mapper =
ModelMapperUtils.getMapper("Sh03001170", Sh03001170VO.class.getPackage().getName());
return mapper.map(sh03001170);
}
public static List<Sh03001170VO> of(List<Sh03001170> sh03001170List) {
return sh03001170List.stream().map(sh03001170 -> of(sh03001170)).collect(toList());
}
public static List<Sh03001170VO> of(Page<Sh03001170> sh03001170Page) {
return sh03001170Page.getContent().stream().map(sh03001170 -> of(sh03001170)).collect(toList());
}
} | [
"tw.jang@dream-ant.com"
] | tw.jang@dream-ant.com |
a6ea86d6581ed927c54bf9b3f19868138d498505 | c98ded3f6de5a1bb91c7930cd090208fbee0081f | /skWeiChatBaidu/src/main/java/com/sk/weichat/view/SelectURLDialog.java | d9052a0a8b55819d0716a3c199c031a10a263a50 | [] | no_license | GJF19981210/IM_Android | e628190bb504b52ec04e8beaf5449bd847904c84 | 7743586eac5ca07d1a7e9a2d4b2cc24d68a082ac | refs/heads/master | 2023-01-01T11:15:42.085782 | 2020-10-19T07:10:43 | 2020-10-19T07:10:43 | 305,293,872 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,100 | java | package com.sk.weichat.view;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.TextView;
import com.sk.weichat.R;
import com.sk.weichat.util.CommonAdapter;
import com.sk.weichat.util.CommonViewHolder;
import com.sk.weichat.util.ScreenUtil;
import java.util.ArrayList;
import java.util.List;
/**
* 选择网址弹窗 Copy for URLDialog
*/
public class SelectURLDialog extends Dialog {
private OnURLListItemClickListener mOnURLListItemClickListener;
private Context mContext;
private List<String> mURLList = new ArrayList<>();
private ListView mURLListView;
private URLAdapter mURLAdapter;
public SelectURLDialog(Context context, List<String> data, OnURLListItemClickListener onURLListItemClickListener) {
super(context, R.style.BottomDialog);
this.mContext = context;
mURLList = data;
this.mOnURLListItemClickListener = onURLListItemClickListener;
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.report_dialog);
setCanceledOnTouchOutside(true);
initView();
}
private void initView() {
mURLListView = (ListView) findViewById(R.id.report_list);
mURLAdapter = new URLAdapter(mContext, mURLList);
mURLListView.setAdapter(mURLAdapter);
mURLListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
String URL = mURLList.get(position);
if (mOnURLListItemClickListener != null && URL != null) {
dismiss();
mOnURLListItemClickListener.onURLItemClick(URL);
}
}
});
Window o = getWindow();
WindowManager.LayoutParams lp = o.getAttributes();
lp.width = ScreenUtil.getScreenWidth(getContext());
o.setAttributes(lp);
this.getWindow().setGravity(Gravity.BOTTOM);
this.getWindow().setWindowAnimations(R.style.BottomDialog_Animation);
}
public interface OnURLListItemClickListener {
void onURLItemClick(String URL);
}
class URLAdapter extends CommonAdapter<String> {
public URLAdapter(Context context, List<String> data) {
super(context, data);
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
CommonViewHolder viewHolder = CommonViewHolder.get(mContext, convertView, parent,
R.layout.row_report, position);
TextView mURLTv = viewHolder.getView(R.id.report_tv);
mURLTv.setText(data.get(position));
return viewHolder.getConvertView();
}
}
}
| [
"2937717941@qq.com"
] | 2937717941@qq.com |
9cc2b4ee0000a3ff7cb70c770c31eef2c127adbc | dffc6d66fb10683f38d46055492b1e77f6d7912f | /ERP_WS/src/main/java/com/bap/erp/modelo/ban/CuentaBancaria.java | 04832ab4c98bd626442eb2b417666712e76b0fc6 | [] | no_license | gpalabral/ErpBackEnd | bd3a4f8d8f0d23275e7d8b0a5670b7faf8037411 | 4dd908ca24625c8271d3dd1bdd9e1df714f6e921 | refs/heads/master | 2021-03-27T20:02:43.606225 | 2016-05-17T22:42:37 | 2016-05-17T22:42:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,887 | java | package com.bap.erp.modelo.ban;
import com.bap.erp.commons.entities.AbstractEntity;
import com.bap.erp.modelo.ERP;
import com.bap.erp.modelo.cpp.CppProveedorCliente;
import com.bap.erp.modelo.par.ParBanco;
import com.bap.erp.modelo.par.ParTipoMoneda;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ForeignKey;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Entity
@Table(name = "CUENTA_BANCARIA")
public class CuentaBancaria extends AbstractEntity implements Serializable {
private static final long serialVersionUID = ERP.serialVersionIdErp;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id_cuenta_bancaria")
private Long idCuentaBancaria;
@ManyToOne()
@JoinColumn(name = "par_banco", referencedColumnName = "codigo", nullable = true, foreignKey = @ForeignKey(name = "none"))
private ParBanco parBanco;
@Column(name = "numero_cuenta", length = 50, nullable = false)
private String numeroCuenta;
@ManyToOne()
@JoinColumn(name = "par_tipo_moneda", referencedColumnName = "codigo", nullable = true, foreignKey = @ForeignKey(name = "none"))
private ParTipoMoneda parTipoMoneda;
@Column(name = "propietario_cuenta", length = 5, nullable = false)
private String propietarioCuenta;
@JoinColumn(name = "id_proveedor_cliente", referencedColumnName = "id_proveedor_cliente")
@ManyToOne(optional = true)
private CppProveedorCliente cppProveedorCliente;
public Long getIdCuentaBancaria() {
return idCuentaBancaria;
}
public void setIdCuentaBancaria(Long idCuentaBancaria) {
this.idCuentaBancaria = idCuentaBancaria;
}
public ParBanco getParBanco() {
return parBanco;
}
public void setParBanco(ParBanco parBanco) {
this.parBanco = parBanco;
}
public String getNumeroCuenta() {
return numeroCuenta;
}
public void setNumeroCuenta(String numeroCuenta) {
this.numeroCuenta = numeroCuenta;
}
public ParTipoMoneda getParTipoMoneda() {
return parTipoMoneda;
}
public void setParTipoMoneda(ParTipoMoneda parTipoMoneda) {
this.parTipoMoneda = parTipoMoneda;
}
public String getPropietarioCuenta() {
return propietarioCuenta;
}
public void setPropietarioCuenta(String propietarioCuenta) {
this.propietarioCuenta = propietarioCuenta;
}
public CppProveedorCliente getCppProveedorCliente() {
return cppProveedorCliente;
}
public void setCppProveedorCliente(CppProveedorCliente cppProveedorCliente) {
this.cppProveedorCliente = cppProveedorCliente;
}
}
| [
"gustavo.palabral@gmail.com"
] | gustavo.palabral@gmail.com |
1edb7ca3ca6284be907d30c7ec2ea794308d1134 | 7038e25ce514d6024146e002e9fc0c868214d9ae | /2015年以前的旧代码/AmericaUniversityCrawler/src/cn/edu/bjtu/auc/task/BostonTask.java | 7a579f6013fe971981250db8baaaaa24c4658c17 | [] | no_license | 3qwasd/jobs | d63f67ec08f9de36e32c4ab401ea0ab73b64636c | 8c21066062ecbb71d630c2f0cbebe0635547887d | refs/heads/master | 2023-01-02T11:24:43.780319 | 2019-07-22T16:49:13 | 2019-07-22T16:49:13 | 64,465,190 | 1 | 0 | null | 2022-12-16T02:53:31 | 2016-07-29T08:40:14 | Java | UTF-8 | Java | false | false | 2,418 | java | /**
* @QiaoJian
*/
package cn.edu.bjtu.auc.task;
import java.util.ArrayList;
import java.util.List;
import cn.edu.bjtu.auc.StudentInfo;
import cn.edu.bjtu.auc.StudentInfoCollectTask;
import cn.edu.bjtu.auc.UniversityTask;
import cn.edu.bjtu.auc.task.service.BostonService;
/**
* @author QiaoJian
*
*/
public class BostonTask extends StudentInfoCollectTask{
BostonService service;
/**
* @param taskName
*/
public BostonTask(String taskName) {
super(taskName);
// TODO Auto-generated constructor stub
}
public BostonTask() {
super();
// TODO Auto-generated constructor stub
}
/* (non-Javadoc)
* @see java.lang.Runnable#run()
*/
@Override
public void run() {
// TODO Auto-generated method stub
initConnectioner();
service = new BostonService();
baseService = service;
commoneHeader.put("Host", "www.bu.edu");
this.addMsg("start collect "+this.getTaskName()+" infos !");
for(int i=13;i<lastNames.size();i++){
String lastName = lastNames.get(i);
for(String let:letter){
this.addMsg("start collect "+lastName+", "+let+" infos !");
String url = service.getUrl(lastName,let);
httpManager.clearPool();
httpManager.createHttpConnection();
connectioner = httpManager.getFirstHttpConnection();
doGetVistor(url);
List<String> links = service.collecteLinks(lastName);
if(links!=null&&links.size()>0){
try {
baseService.writeLinksToText(links, baseService.getProjectPath()+this.getTaskName()+".txt");
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
infos = new ArrayList<StudentInfo>();
for(String link:links){
httpManager.clearPool();
httpManager.createHttpConnection();
connectioner = httpManager.getFirstHttpConnection();
String[] linkStr = link.split(",",2);
url = "http://www.bu.edu/phpbin/directory/?q={1}%2C+{2}";
url = url.replace("{1}", linkStr[1].trim()).replace("{2}", linkStr[0].trim());
doGetVistor(url);
StudentInfo info = service.collectInfo();
if(info!=null)
infos.add(info);
}
writeToExcel("sheet");
}
}
this.addMsg("finished collect "+lastName+" infos !");
}
this.addMsg("finished collect "+this.getTaskName()+" infos !");
httpManager.giveBackHttpClient(connectioner);
}
}
| [
"3qwasd@163.com"
] | 3qwasd@163.com |
cd95a4c5092d914d8bbd3848246842a599b1870f | 8c464d3d87a28d90bf024fd39af56abc795283f9 | /jiangling_eqis5.2.1_oracle/src/main/java/com/ambition/spc/processmonitor/service/ProcessMonitorManager.java | 970d41544bb678ce00ce36c790d096465eff8783 | [] | no_license | laonanhai481580/WeChat-Java | 1a074276bf1fd62afb1f150a94ea4bde585f5ce2 | 047eb09b8562cb1e1659eae928f5e49c5b623625 | refs/heads/master | 2020-04-13T07:56:19.288005 | 2018-12-27T06:56:00 | 2018-12-27T06:56:00 | 163,067,001 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,901 | java | package com.ambition.spc.processmonitor.service;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.ambition.spc.abnormal.dao.AbnormalInfoDao;
import com.ambition.spc.abnormal.service.AbnormalInfoManager;
import com.ambition.spc.entity.AbnormalInfo;
import com.ambition.spc.entity.ReasonMeasure;
import com.ambition.spc.entity.SpcSgSample;
import com.ambition.spc.entity.SpcSubGroup;
import com.ambition.spc.jlanalyse.entity.JLSampleData;
import com.ambition.spc.processmonitor.dao.ProcessMonitorDao;
import com.ambition.spc.util.Calculator;
import com.norteksoft.acs.base.web.struts2.Struts2Utils;
import com.norteksoft.product.util.ContextUtils;
import com.opensymphony.xwork2.ActionContext;
/**
* ProcessMonitorManager.java
* @authorBy YUKE
*
*/
@Service
@Transactional
public class ProcessMonitorManager {
@Autowired
private ProcessMonitorDao processMonitorDao;
@Autowired
private AbnormalInfoDao abnormalInfoDao;
@Autowired
private AbnormalInfoManager abnormalInfoManager;
public ReasonMeasure getReasonMeasure(Long id){
return processMonitorDao.get(id);
}
public void saveReasonMeasure(ReasonMeasure reasonMeasure){
String messageId = Struts2Utils.getParameter("messageId");
if(StringUtils.isNotEmpty(messageId)){
AbnormalInfo abnormalInfo = abnormalInfoManager.getAbnormalInfo(Long.valueOf(messageId));
reasonMeasure.setAbnormalInfo(abnormalInfo);
reasonMeasure.setName(abnormalInfo.getName());
reasonMeasure.setOccurDate(abnormalInfo.getOccurDate());
if(abnormalInfo.getNum()!=null){
reasonMeasure.setNum(abnormalInfo.getNum());
}
if(abnormalInfo.getQualityFeature()!=null){
reasonMeasure.setQualityFeature(abnormalInfo.getQualityFeature());
}
abnormalInfo.setModifiedTime(new Date());
abnormalInfo.setModifier(ContextUtils.getUserName());
abnormalInfo.setPriState("1");//修改状态1.已处理
abnormalInfoDao.save(abnormalInfo);
}
processMonitorDao.save(reasonMeasure);
}
public ReasonMeasure queryReasonMeasureByAbnormalInfo(AbnormalInfo abnormalInfo){
return processMonitorDao.queryReasonMeasureByAbnormalInfo(abnormalInfo);
}
@SuppressWarnings({ "rawtypes", "unchecked" })
public void getDetailDatas(SpcSubGroup subGroup){
//封装每组的样本数据
ArrayList data = new ArrayList();
List<SpcSgSample> sampleList = subGroup.getSpcSgSamples();
int effectiveCapacity = 0;
if(subGroup.getQualityFeature().getEffectiveCapacity() != 0){
effectiveCapacity = subGroup.getQualityFeature().getEffectiveCapacity();
}
double[] a = new double[effectiveCapacity];
if(sampleList.size() >= effectiveCapacity){
for(int j=0;j<effectiveCapacity;j++){
SpcSgSample sample = sampleList.get(j);
a[j] = sample.getSamValue();
}
data.add(a);
}
//封装每组样本数据的最大值、最小值、平均值等
ArrayList<JLSampleData> dataList = new ArrayList<JLSampleData>();
for(int i=0;i<data.size();i++){
JLSampleData jl = new JLSampleData();
double[] b = (double[])data.get(i);
jl.setData(b);
jl.setAverage(Calculator.average(b));
jl.setMax(Calculator.max(b));
jl.setMin(Calculator.min(b));
jl.setS(Calculator.calculateS(b));
jl.setR(Calculator.calculateR(b));
jl.setMedian(Calculator.calculateMedian(b));
dataList.add(jl);
}
ActionContext.getContext().put("effectiveCapacity", effectiveCapacity);
ActionContext.getContext().put("groupDatalist", dataList);
ActionContext.getContext().put("groudNum", subGroup.getSubGroupOrderNum());
//附属信息
if(subGroup.getSpcSgTags() != null){
ActionContext.getContext().put("sgTagDatas", subGroup.getSpcSgTags());
}
}
}
| [
"1198824455@qq.com"
] | 1198824455@qq.com |
b22e1d645864b3b2be68a6e5436c805ba7788d40 | be73270af6be0a811bca4f1710dc6a038e4a8fd2 | /crash-reproduction-moho/results/XWIKI-13942-5-25-PESA_II-WeightedSum:TestLen:CallDiversity/org/xwiki/model/script/ModelScriptService_ESTest_scaffolding.java | 2cebcfc157d6db49c3d60f5a15de03a7e43800bf | [] | no_license | STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application | cf118b23ecb87a8bf59643e42f7556b521d1f754 | 3bb39683f9c343b8ec94890a00b8f260d158dfe3 | refs/heads/master | 2022-07-29T14:44:00.774547 | 2020-08-10T15:14:49 | 2020-08-10T15:14:49 | 285,804,495 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 445 | java | /**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Thu Apr 02 13:46:50 UTC 2020
*/
package org.xwiki.model.script;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class ModelScriptService_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
| [
"pouria.derakhshanfar@gmail.com"
] | pouria.derakhshanfar@gmail.com |
5dffe99b2338f854485922fa7c78830677cfabaf | 740296eeb8dcd42b43a160714433a9cbf368ddfd | /src/main/java/com/mybus/dao/impl/LayoutMongoDAO.java | 0cec78da879e5ecb4f46c3c08e4ba325ad91f8d7 | [] | no_license | kalyani7/MybusWithJWT | 261a1a838ea4a393e847a04509dbc637e40d86f2 | b29dba3c829d8f95118cae73937d137a4e22e492 | refs/heads/master | 2022-11-30T08:06:59.560563 | 2020-04-14T05:09:42 | 2020-04-14T05:09:42 | 229,047,616 | 0 | 2 | null | 2022-11-16T09:24:10 | 2019-12-19T12:13:38 | Java | UTF-8 | Java | false | false | 2,072 | java | package com.mybus.dao.impl;
import com.mybus.dao.LayoutDAO;
import com.mybus.model.Layout;
import org.apache.commons.collections.IteratorUtils;
import org.json.simple.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* Created by schanda on 1/16/16.
*/
@Repository
public class LayoutMongoDAO {
@Autowired
private LayoutDAO layoutDAO;
@Autowired
private MongoQueryDAO mongoQueryDAO;
@Autowired
private MongoTemplate mongoTemplate;
public Layout save(Layout layout) {
return layoutDAO.save(layout);
}
public Layout update(Layout layout) throws Exception {
Layout dbCopy = layoutDAO.findById(layout.getId()).get();
dbCopy.merge(layout);
return layoutDAO.save(dbCopy);
}
/* public List<Layout> getAllLayouts() {
Query query = new Query();
query.fields().include("name");
query.fields().include("type");
query.fields().include("totalSeats");
query.fields().include("rows");
query.fields().include("seatsPerRow");
List<Layout> layouts = IteratorUtils.toList(mongoTemplate.find(query,Layout.class).iterator());
return layouts;
}*/
public long getLayoutsCount(JSONObject query) {
Query q = new Query();
return mongoTemplate.count(q,Layout.class);
}
public List<Layout> getLayoutsForService(){
Query query = new Query();
query.fields().include("name");
return mongoTemplate.find(query,Layout.class);
}
public List<Layout> getAllLayouts(JSONObject query, PageRequest pageRequest) {
Query q = new Query();
q.fields().include("name");
q.fields().include("type");
q.fields().include("totalSeats");
q.fields().include("rows");
q.fields().include("seatsPerRow");
if (pageRequest != null) {
q.with(pageRequest);
}
List<Layout> layouts = IteratorUtils.toList(mongoTemplate.find(q,Layout.class).iterator());
return layouts;
}
}
| [
"email@email.com"
] | email@email.com |
1e122ad5a7151c0a83c35c30e34dc71dbb224084 | 258de8e8d556901959831bbdc3878af2d8933997 | /wechat/wechat-core/src/main/java/com/voxlearning/wechat/controller/NotifyController.java | 88a1c0246b9965bc6dae07f5472ae15f23116561 | [] | no_license | Explorer1092/vox | d40168b44ccd523748647742ec376fdc2b22160f | 701160b0417e5a3f1b942269b0e7e2fd768f4b8e | refs/heads/master | 2020-05-14T20:13:02.531549 | 2019-04-17T06:54:06 | 2019-04-17T06:54:06 | 181,923,482 | 0 | 4 | null | 2019-04-17T15:53:25 | 2019-04-17T15:53:25 | null | UTF-8 | Java | false | false | 3,182 | java | /*
* SHANGHAI SUNNY EDUCATION, INC. CONFIDENTIAL
*
* Copyright 2006-2016 Shanghai Sunny Education, Inc. All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains the property of
* Shanghai Sunny Education, Inc. and its suppliers, if any. The intellectual
* and technical concepts contained herein are proprietary to Shanghai Sunny
* Education, Inc. and its suppliers and may be covered by patents, patents
* in process, and are protected by trade secret or copyright law. Dissemination
* of this information or reproduction of this material is strictly forbidden
* unless prior written permission is obtained from Shanghai Sunny Education, Inc.
*/
package com.voxlearning.wechat.controller;
import com.voxlearning.wechat.payment.NotifyHandlerFactory;
import com.voxlearning.wechat.payment.PaymentNotifyProcessor;
import com.voxlearning.wechat.payment.PaymentResultContext;
import org.apache.commons.io.IOUtils;
import org.dom4j.DocumentException;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
/**
* @author Xin Xin
* @since 11/2/15
* <p>
* 这个Controller是没有身份验证的,注意安全
*/
@Controller
@RequestMapping(value = "/")
public class NotifyController extends AbstractController {
@RequestMapping(value = "/notify-{type}.vpage", method = RequestMethod.POST)
@ResponseBody
public Object notifys(@PathVariable String type, HttpServletRequest request) throws IOException {
String responseStr = IOUtils.toString(request.getInputStream(), "UTF-8");
logger.debug("Order payment notify:{},type:{}", responseStr, type);
try {
return handleOrder(responseStr, type);
} catch (Exception ex) {
logger.error("Order notify process error,{}:{}", type, responseStr, ex);
}
return payCallbackResult(false, "支付通知失败");
}
private String handleOrder(String result, String type) throws DocumentException {
PaymentResultContext context = new PaymentResultContext(result);
PaymentNotifyProcessor processor = new PaymentNotifyProcessor(context, NotifyHandlerFactory.getHandler(type));
if (!processor.isValidResult()) { //较验签名
return processor.processResult(false);
}
if (processor.isPaymentSuccess()) { //是否支付成功
return processor.process();
} else {
logger.info("Payment not success,{}:{}", type, result);
}
return processor.processResult(false);
}
@Deprecated
public String payCallbackResult(boolean success, String msg) {
return "<xml>\n" +
" <return_code><![CDATA[" + (success ? "SUCCESS" : "FAIL") + "]]></return_code>\n" +
" <return_msg><![CDATA[" + (success ? "OK" : msg) + "]]></return_msg>\n" +
"</xml>";
}
}
| [
"wangahai@300.cn"
] | wangahai@300.cn |
fdf5e54595ec77b76007750a7efb4805c4608876 | a31e054a53b26118b3c42d91cc6de26e9445a327 | /pudding-system-web/src/main/java/com/mohism/pudding/system/manager/util/AliOssUtil.java | 890cac415619b827744acad667377b17d6521f13 | [] | no_license | ztNozdormu/pudding-system | 37d7529407a9af6f5fa8f2608f505e92f50b1bed | 875e935f59cf81ea1ab5925b4c08c3e2647b2b06 | refs/heads/master | 2020-05-25T01:38:56.776779 | 2019-07-14T03:40:01 | 2019-07-14T03:40:01 | 187,561,402 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,451 | java | package com.mohism.pudding.system.manager.util;
import cn.hutool.core.util.StrUtil;
import com.aliyun.oss.OSSClient;
import com.aliyun.oss.ServiceException;
import com.aliyun.oss.common.auth.DefaultCredentialProvider;
import com.google.gson.Gson;
import com.mohism.pudding.system.manager.core.constants.SettingConstant;
import com.mohism.pudding.system.manager.vo.OssSetting;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;
import java.io.File;
import java.io.InputStream;
/**
* <p>
* 阿里云OSS工具
* </p>
*
* @author real earth
* @since 2019-06-25
*/
@Component
@Slf4j
public class AliOssUtil {
@Autowired
private StringRedisTemplate redisTemplate;
public OssSetting getOssSetting(){
String v = redisTemplate.opsForValue().get(SettingConstant.ALI_OSS);
if(StrUtil.isBlank(v)){
throw new ServiceException("您还未配置阿里云OSS");
}
return new Gson().fromJson(v, OssSetting.class);
}
/**
* 文件路径上传
* @param filePath
* @param key
* @return
*/
public String aliUpload(String filePath, String key) {
OssSetting os = getOssSetting();
OSSClient ossClient = new OSSClient(os.getHttp() + os.getEndpoint(), new DefaultCredentialProvider(os.getAccessKey(), os.getSecretKey()), null);
ossClient.putObject(os.getBucket(), key, new File(filePath));
ossClient.shutdown();
return os.getHttp() + os.getBucket() + "." + os.getEndpoint() + "/" + key;
}
/**
* 文件流上传
* @param inputStream
* @param key
* @return
*/
public String aliInputStreamUpload(InputStream inputStream, String key) {
OssSetting os = getOssSetting();
OSSClient ossClient = new OSSClient(os.getHttp() + os.getEndpoint(), new DefaultCredentialProvider(os.getAccessKey(), os.getSecretKey()), null);
ossClient.putObject(os.getBucket(), key, inputStream);
ossClient.shutdown();
return os.getHttp() + os.getBucket() + "." + os.getEndpoint() + "/" + key;
}
/**
* 重命名
* @param fromKey
* @param toKey
*/
public String renameFile(String fromKey, String toKey){
OssSetting os = getOssSetting();
copyFile(fromKey, toKey);
deleteFile(fromKey);
return os.getHttp() + os.getBucket() + "." + os.getEndpoint() + "/" + toKey;
}
/**
* 复制文件
* @param fromKey
*/
public String copyFile(String fromKey, String toKey){
OssSetting os = getOssSetting();
OSSClient ossClient = new OSSClient(os.getHttp() + os.getEndpoint(), new DefaultCredentialProvider(os.getAccessKey(), os.getSecretKey()), null);
ossClient.copyObject(os.getBucket(), fromKey, os.getBucket(), toKey);
ossClient.shutdown();
return os.getHttp() + os.getBucket() + "." + os.getEndpoint() + "/" + toKey;
}
/**
* 删除文件
* @param key
*/
public void deleteFile(String key){
OssSetting os = getOssSetting();
OSSClient ossClient = new OSSClient(os.getHttp() + os.getEndpoint(), new DefaultCredentialProvider(os.getAccessKey(), os.getSecretKey()), null);
ossClient.deleteObject(os.getBucket(), key);
ossClient.shutdown();
}
}
| [
"w1999wtw3537@sina.com"
] | w1999wtw3537@sina.com |
03ca8a4ffd22c04f42c5066d04fed724370894fa | 3432ee3fcfa7a7a6b551630459baec17fe4a0342 | /xhh-db/src/main/java/org/xhh/db/dao/LitemallRegionMapper.java | f0765b9b42d87ae0b97eee6c2add15bf7b4b35e5 | [] | no_license | sfyproject/xhh | 65f6cdf3c2e0c6ed23b84acfaa62d9bbb4bf1345 | 7eacf887e210793b8fca141a72373c5ac44fb2fb | refs/heads/master | 2022-06-24T04:34:21.044523 | 2019-10-05T14:28:18 | 2019-10-05T14:28:18 | 187,440,519 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,994 | java | package org.xhh.db.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.xhh.db.domain.LitemallRegion;
import org.xhh.db.domain.LitemallRegionExample;
public interface LitemallRegionMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_region
*
* @mbg.generated
*/
long countByExample(LitemallRegionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_region
*
* @mbg.generated
*/
int deleteByExample(LitemallRegionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_region
*
* @mbg.generated
*/
int deleteByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_region
*
* @mbg.generated
*/
int insert(LitemallRegion record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_region
*
* @mbg.generated
*/
int insertSelective(LitemallRegion record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_region
*
* @mbg.generated
*/
LitemallRegion selectOneByExample(LitemallRegionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_region
*
* @mbg.generated
*/
LitemallRegion selectOneByExampleSelective(@Param("example") LitemallRegionExample example, @Param("selective") LitemallRegion.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_region
*
* @mbg.generated
*/
List<LitemallRegion> selectByExampleSelective(@Param("example") LitemallRegionExample example, @Param("selective") LitemallRegion.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_region
*
* @mbg.generated
*/
List<LitemallRegion> selectByExample(LitemallRegionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_region
*
* @mbg.generated
*/
LitemallRegion selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallRegion.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_region
*
* @mbg.generated
*/
LitemallRegion selectByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_region
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") LitemallRegion record, @Param("example") LitemallRegionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_region
*
* @mbg.generated
*/
int updateByExample(@Param("record") LitemallRegion record, @Param("example") LitemallRegionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_region
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(LitemallRegion record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_region
*
* @mbg.generated
*/
int updateByPrimaryKey(LitemallRegion record);
} | [
"sfy5941@163.com"
] | sfy5941@163.com |
fe4606eee497f53a6f0d4af3af904fb0be9198fe | f15304b7b3ff986df90b40ad088db167685e1d8e | /blogosphere-spring-mybatis/src/main/java/com/sivalabs/blogosphere/domain/Comment.java | 1f343b0c2614859df77325e189de8e304a8904ce | [] | no_license | achintayya/spring-samples | 7801d115797b2543bab7314c996ce3c0110ac3a4 | ccf8db253b35d79faf45ba499323120bae78732b | refs/heads/master | 2020-12-03T10:26:53.556740 | 2014-06-29T13:13:21 | 2014-06-29T13:13:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,231 | java | /**
*
*/
package com.sivalabs.blogosphere.domain;
import java.util.Date;
/**
* @author skatam
*
*/
public class Comment
{
private Integer commentId;
private String title;
private String content;
private User createdBy;
private Post post;
private Date createdOn;
private Date updatedOn;
public Integer getCommentId() {
return commentId;
}
public void setCommentId(Integer commentId) {
this.commentId = commentId;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public Date getCreatedOn() {
return createdOn;
}
public void setCreatedOn(Date createdOn) {
this.createdOn = createdOn;
}
public User getCreatedBy() {
return createdBy;
}
public void setCreatedBy(User createdBy) {
this.createdBy = createdBy;
}
public Post getPost() {
return post;
}
public void setPost(Post post) {
this.post = post;
}
public Date getUpdatedOn() {
return updatedOn;
}
public void setUpdatedOn(Date updatedOn) {
this.updatedOn = updatedOn;
}
}
| [
"sivaprasadreddy.k@gmail.com"
] | sivaprasadreddy.k@gmail.com |
d0214f9d603d3cde9ddb64eb141c8c1351008fee | 6a652eb58cdbc1288dbfbf02243fda0cc56a55f6 | /core/src/main/java/com/riiablo/map/pfa/Point2.java | 79d4fe7bd32449115cff9417bc06f7074b7b028f | [
"Apache-2.0"
] | permissive | collinsmith/riiablo | 1d98fe274d3893b813cf21f1339a5559f61ce20e | 9d03f869ce9c7d33866b53050fa9c1ca8f0e1fbb | refs/heads/master | 2023-09-03T05:23:40.625108 | 2023-08-18T06:10:30 | 2023-08-18T06:10:30 | 44,467,072 | 736 | 97 | Apache-2.0 | 2020-10-25T23:30:43 | 2015-10-18T05:41:54 | Java | UTF-8 | Java | false | false | 2,982 | java | package com.riiablo.map.pfa;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.utils.BinaryHeap;
import com.badlogic.gdx.utils.Pool;
import com.riiablo.map.Map;
public class Point2 extends BinaryHeap.Node implements Pool.Poolable {
public int x;
public int y;
//public int index;
byte clearance;
static final byte UNVISITED = 0;
static final byte OPEN = 1;
static final byte CLOSED = 2;
int searchId = -1;
Point2 parent;
byte category;
float g;
public Point2() {
super(0f);
}
public Point2(int x, int y) {
this();
set(x, y);
}
public Point2(Point2 src) {
this();
set(src);
}
@Override
public void reset() {
category = UNVISITED;
}
public float g() {
return g;
}
public float f() {
return super.getValue();
}
public Point2 set(int x, int y) {
this.x = x;
this.y = y;
return this;
}
public Point2 set(Vector2 src) {
x = Map.round(src.x);
y = Map.round(src.y);
return this;
}
public Point2 set(Point2 src) {
x = src.x;
y = src.y;
return this;
}
public Point2 add(Point2 p) {
x += p.x;
y += p.y;
return this;
}
private static final Point2[][] NEAR = {
{ // 1
new Point2( 0, 0)
},
{ // 2
new Point2(-1, -1),
new Point2( 0, -1),
new Point2( 1, -1),
new Point2(-1, 0),
//new Point2( 0, 0),
new Point2( 1, 0),
new Point2(-1, 1),
new Point2( 0, 1),
new Point2( 1, 1),
},
{ // 3
new Point2(-1, -2),
new Point2( 0, -2),
new Point2( 1, -2),
new Point2(-2, -1),
//new Point2(-1, -1),
//new Point2( 0, -1),
//new Point2( 1, -1),
new Point2( 2, -1),
new Point2(-2, 0),
//new Point2(-1, 0),
//new Point2( 0, 0),
//new Point2( 1, 0),
new Point2( 2, 0),
new Point2(-2, 1),
//new Point2(-1, 1),
//new Point2( 0, 1),
//new Point2( 1, 1),
new Point2( 2, 1),
new Point2(-1, 2),
new Point2( 0, 2),
new Point2( 1, 2),
}
};
public void updateClearance(Map map, int flags) {
byte i;
size:
for (i = 0; i < NEAR.length; i++) {
for (Point2 p : NEAR[i]) {
if (map.flags(x + p.x, y + p.y) != 0) {
break size;
}
}
}
clearance = i;
}
@Override
public int hashCode() {
return (x * 73856093) ^ (y * 83492791);
}
@Override
public boolean equals(Object obj) {
if (obj == this) return true;
if (obj == null) return false;
if (!(obj instanceof Point2)) return false;
return equals((Point2) obj);
}
public boolean equals(Point2 other) {
return x == other.x && y == other.y;
}
public boolean equals(int x, int y) {
return x == this.x && y == this.y;
}
@Override
public String toString() {
return "(" + x + ", " + y + ")";
}
}
| [
"collinsmith70@gmail.com"
] | collinsmith70@gmail.com |
d759cebc5291f22285a3aaabf735981c5c1a9692 | be29c33e03cf20cd1b7e11f7fcadcafa1aa29e1c | /src/main/java/org/jtwig/model/expression/test/NotTestExpression.java | cd6abb9ffab0d058c0da02463ad02c778e67a090 | [
"Apache-2.0"
] | permissive | MakerTim/jtwig-core | 65f30171325c5b17dca72870db2401845a8aaa3b | 0f9e980534830295c7dc47c0a5ee050e0b524891 | refs/heads/master | 2021-07-10T07:46:03.735353 | 2017-10-06T15:59:09 | 2017-10-06T15:59:09 | 106,023,443 | 0 | 0 | null | 2017-10-06T15:56:21 | 2017-10-06T15:56:21 | null | UTF-8 | Java | false | false | 541 | java | package org.jtwig.model.expression.test;
public class NotTestExpression extends TestExpression {
public static TestExpression create(Boolean isNot, TestExpression nested) {
if (isNot) {
return new NotTestExpression(nested);
}
return nested;
}
private final TestExpression testExpression;
public NotTestExpression(TestExpression testExpression) {
this.testExpression = testExpression;
}
public TestExpression getTestExpression() {
return testExpression;
}
}
| [
"jmelo@lyncode.com"
] | jmelo@lyncode.com |
ebeca9c149af8b7fc0936bec435abfbaac2f132b | fe89577a5a3c8c4ee1604aae2e9922bea6b7ad8f | /src/main/java/org/mycompany/application/utils/Database.java | 8fa5eecda54fe0bb699e210761b691dca3b45d90 | [
"Apache-2.0"
] | permissive | hendrikebbers/developer-workflows | b27732ed6c20b475f55b5899031f39e0565ff1a6 | a1842d58b641449bf51e6d9fe7210be6d34994fc | refs/heads/main | 2023-02-23T20:48:18.698866 | 2021-01-27T10:23:08 | 2021-01-27T10:23:08 | 333,077,187 | 1 | 0 | Apache-2.0 | 2023-05-15T08:51:21 | 2021-01-26T12:25:00 | Java | UTF-8 | Java | false | false | 1,243 | java | package org.mycompany.application.utils;
import org.mycompany.application.data.Person;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
import javax.persistence.Persistence;
import javax.persistence.Query;
import java.util.List;
import java.util.Map;
public class Database {
private final EntityManagerFactory emf;
private final EntityManager entityManager;
public Database(final String jdbcUrl) {
emf = Persistence.createEntityManagerFactory("database", Map.of("javax.persistence.jdbc.url", jdbcUrl));
entityManager = emf.createEntityManager();
}
@SuppressWarnings("unchecked")
public List<Person> loadAllPersons() {
final Query q = entityManager.createQuery("select p from Person p");
return q.getResultList();
}
public void insert(final Person person) {
final EntityTransaction transaction = entityManager.getTransaction();
try {
transaction.begin();
entityManager.persist(person);
transaction.commit();
} catch (final Exception e) {
System.out.println(e);
transaction.rollback();
}
}
}
| [
"hendrik.ebbers@web.de"
] | hendrik.ebbers@web.de |
17fced594634128739d7a8c88017522f7c392539 | f28dce60491e33aefb5c2187871c1df784ccdb3a | /src/main/java/com/kitnew/ble/DeviceData.java | d1a91fba13ca38e3a857b47c695c54622ba8cfd1 | [
"Apache-2.0"
] | permissive | JackChan1999/boohee_v5.6 | 861a5cad79f2bfbd96d528d6a2aff84a39127c83 | 221f7ea237f491e2153039a42941a515493ba52c | refs/heads/master | 2021-06-11T23:32:55.977231 | 2017-02-14T18:07:04 | 2017-02-14T18:07:04 | 81,962,585 | 8 | 6 | null | null | null | null | UTF-8 | Java | false | false | 138 | java | package com.kitnew.ble;
public class DeviceData {
String internalModel;
int method;
String model;
String scaleName;
}
| [
"jackychan2040@gmail.com"
] | jackychan2040@gmail.com |
db1948ce87df79561af44f9bccc0d01a377d01c0 | 58afe8815f26dd6d9703d1cd9131fc7a4bdba09a | /predavanja/primeri-java-knjiga-eckel-tij/src/p04/PrimitiveOverloading.java | fe4d160271483026b31ce1f6b6b99407e3573946 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | MatfOOP/OOP | 098213709417006ccb13519eea7208d9e6f32900 | 98eea2bb90c23973ad80c56dfcba42eaf1757b71 | refs/heads/master | 2023-07-07T01:34:49.955311 | 2023-06-30T17:13:48 | 2023-06-30T17:13:48 | 138,500,698 | 7 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,451 | java | package p04;
//: c04:PrimitiveOverloading.java
// Promotion of primitives and overloading.
// From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
import com.bruceeckel.simpletest.*;
public class PrimitiveOverloading {
static Test monitor = new Test();
void f1(char x) { System.out.println("f1(char)"); }
void f1(byte x) { System.out.println("f1(byte)"); }
void f1(short x) { System.out.println("f1(short)"); }
void f1(int x) { System.out.println("f1(int)"); }
void f1(long x) { System.out.println("f1(long)"); }
void f1(float x) { System.out.println("f1(float)"); }
void f1(double x) { System.out.println("f1(double)"); }
void f2(byte x) { System.out.println("f2(byte)"); }
void f2(short x) { System.out.println("f2(short)"); }
void f2(int x) { System.out.println("f2(int)"); }
void f2(long x) { System.out.println("f2(long)"); }
void f2(float x) { System.out.println("f2(float)"); }
void f2(double x) { System.out.println("f2(double)"); }
void f3(short x) { System.out.println("f3(short)"); }
void f3(int x) { System.out.println("f3(int)"); }
void f3(long x) { System.out.println("f3(long)"); }
void f3(float x) { System.out.println("f3(float)"); }
void f3(double x) { System.out.println("f3(double)"); }
void f4(int x) { System.out.println("f4(int)"); }
void f4(long x) { System.out.println("f4(long)"); }
void f4(float x) { System.out.println("f4(float)"); }
void f4(double x) { System.out.println("f4(double)"); }
void f5(long x) { System.out.println("f5(long)"); }
void f5(float x) { System.out.println("f5(float)"); }
void f5(double x) { System.out.println("f5(double)"); }
void f6(float x) { System.out.println("f6(float)"); }
void f6(double x) { System.out.println("f6(double)"); }
void f7(double x) { System.out.println("f7(double)"); }
void testConstVal() {
System.out.println("Testing with 5");
f1(5);f2(5);f3(5);f4(5);f5(5);f6(5);f7(5);
}
void testChar() {
char x = 'x';
System.out.println("char argument:");
f1(x);f2(x);f3(x);f4(x);f5(x);f6(x);f7(x);
}
void testByte() {
byte x = 0;
System.out.println("byte argument:");
f1(x);f2(x);f3(x);f4(x);f5(x);f6(x);f7(x);
}
void testShort() {
short x = 0;
System.out.println("short argument:");
f1(x);f2(x);f3(x);f4(x);f5(x);f6(x);f7(x);
}
void testInt() {
int x = 0;
System.out.println("int argument:");
f1(x);f2(x);f3(x);f4(x);f5(x);f6(x);f7(x);
}
void testLong() {
long x = 0;
System.out.println("long argument:");
f1(x);f2(x);f3(x);f4(x);f5(x);f6(x);f7(x);
}
void testFloat() {
float x = 0;
System.out.println("float argument:");
f1(x);f2(x);f3(x);f4(x);f5(x);f6(x);f7(x);
}
void testDouble() {
double x = 0;
System.out.println("double argument:");
f1(x);f2(x);f3(x);f4(x);f5(x);f6(x);f7(x);
}
public static void main(String[] args) {
PrimitiveOverloading p =
new PrimitiveOverloading();
p.testConstVal();
p.testChar();
p.testByte();
p.testShort();
p.testInt();
p.testLong();
p.testFloat();
p.testDouble();
monitor.expect(new String[] {
"Testing with 5",
"f1(int)",
"f2(int)",
"f3(int)",
"f4(int)",
"f5(long)",
"f6(float)",
"f7(double)",
"char argument:",
"f1(char)",
"f2(int)",
"f3(int)",
"f4(int)",
"f5(long)",
"f6(float)",
"f7(double)",
"byte argument:",
"f1(byte)",
"f2(byte)",
"f3(short)",
"f4(int)",
"f5(long)",
"f6(float)",
"f7(double)",
"short argument:",
"f1(short)",
"f2(short)",
"f3(short)",
"f4(int)",
"f5(long)",
"f6(float)",
"f7(double)",
"int argument:",
"f1(int)",
"f2(int)",
"f3(int)",
"f4(int)",
"f5(long)",
"f6(float)",
"f7(double)",
"long argument:",
"f1(long)",
"f2(long)",
"f3(long)",
"f4(long)",
"f5(long)",
"f6(float)",
"f7(double)",
"float argument:",
"f1(float)",
"f2(float)",
"f3(float)",
"f4(float)",
"f5(float)",
"f6(float)",
"f7(double)",
"double argument:",
"f1(double)",
"f2(double)",
"f3(double)",
"f4(double)",
"f5(double)",
"f6(double)",
"f7(double)"
});
}
} ///:~
| [
"vladofilipovic@hotmail.com"
] | vladofilipovic@hotmail.com |
bb05d592a94ec68c29ea58e742a29f44d1fbe0f4 | 06d76ab89e6cd8cc7d9281b65e0c92bfa3c32af5 | /searchsdk/src/main/java/com/sfmap/api/services/route/FromAndToCreator.java | 1213873de5f8879f20dc885f0234477b1276df89 | [] | no_license | onlie08/SFLocationDemo | f7042c598fdb1bd4fe5eeba791df6ae6f779d73e | 7c15f13b1d6335a6dbf20b6ee7cce62bd20c1ca9 | refs/heads/master | 2022-12-15T20:09:31.577510 | 2020-08-25T02:38:57 | 2020-08-25T02:38:57 | 217,438,626 | 1 | 0 | null | 2020-09-17T05:55:44 | 2019-10-25T02:54:37 | Java | UTF-8 | Java | false | false | 410 | java | package com.sfmap.api.services.route;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import com.sfmap.api.services.route.RouteSearch.FromAndTo;
class FromAndToCreator<T> implements Creator<FromAndTo> {
@Override
public FromAndTo createFromParcel(Parcel source) {
return new FromAndTo(source);
}
@Override
public FromAndTo[] newArray(int size) {
return new FromAndTo[size];
}
}
| [
"conggong@sfmail.sf-express.com"
] | conggong@sfmail.sf-express.com |
1b477f3486d483db5110d37243e585a164e1bf9c | 3241b2e53fd087e4619e5f8e4d1649b7ee92c68f | /youlai-auth/src/main/java/com/youlai/auth/security/service/UserDetailsServiceImpl.java | ebf1df52eaac7227a7559e5f300198dadb1aaaae | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Light-Alex/youlai-mall | 84da741de3ebc4d664fa420aedac1c48c2f3a0a1 | 08375747888616a03929d951299a221f08ca199f | refs/heads/master | 2023-08-15T07:55:19.842730 | 2021-09-22T17:32:59 | 2021-09-22T17:32:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,585 | java | package com.youlai.auth.security.service;
import com.youlai.admin.api.UserFeignClient;
import com.youlai.admin.pojo.entity.SysUser;
import com.youlai.auth.common.enums.OAuthClientEnum;
import com.youlai.auth.domain.OAuthUserDetails;
import com.youlai.common.result.Result;
import com.youlai.common.result.ResultCode;
import com.youlai.common.web.util.JwtUtils;
import com.youlai.mall.ums.api.MemberFeignClient;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.authentication.AccountExpiredException;
import org.springframework.security.authentication.DisabledException;
import org.springframework.security.authentication.LockedException;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;
/**
* 从数据库获取认证用户信息,用于和前端传过来的用户信息进行密码判读
*
* @author <a href="mailto:xianrui0365@163.com">xianrui</a>
*/
@Service
@AllArgsConstructor
@Slf4j
public class UserDetailsServiceImpl implements UserDetailsService {
private UserFeignClient userFeignClient;
private MemberFeignClient memberFeignClient;
@Override
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
String clientId = JwtUtils.getOAuthClientId();
OAuthClientEnum client = OAuthClientEnum.getByClientId(clientId);
Result result;
OAuthUserDetails oauthUserDetails = null;
switch (client) {
default:
result = userFeignClient.getUserByUsername(username);
if (Result.isSuccess(result)) {
SysUser sysUser = (SysUser) result.getData();
oauthUserDetails = new OAuthUserDetails(sysUser);
}
break;
}
if (oauthUserDetails == null || oauthUserDetails.getId() == null) {
throw new UsernameNotFoundException(ResultCode.USER_NOT_EXIST.getMsg());
} else if (!oauthUserDetails.isEnabled()) {
throw new DisabledException("该账户已被禁用!");
} else if (!oauthUserDetails.isAccountNonLocked()) {
throw new LockedException("该账号已被锁定!");
} else if (!oauthUserDetails.isAccountNonExpired()) {
throw new AccountExpiredException("该账号已过期!");
}
return oauthUserDetails;
}
}
| [
"1490493387@qq.com"
] | 1490493387@qq.com |
88f62c0f26804d5104f38be25c5bcd1e3c8c8605 | a5d01febfd8d45a61f815b6f5ed447e25fad4959 | /Source Code/5.27.0/sources/com/iqoption/fragment/-$$Lambda$ah$a$LtSrpiqzQGre97tJfuklkDdfaos.java | 66119362fb2a8c9bfee2939cc4a4344a11706e45 | [] | no_license | kkagill/Decompiler-IQ-Option | 7fe5911f90ed2490687f5d216cb2940f07b57194 | c2a9dbbe79a959aa1ab8bb7a89c735e8f9dbc5a6 | refs/heads/master | 2020-09-14T20:44:49.115289 | 2019-11-04T06:58:55 | 2019-11-04T06:58:55 | 223,236,327 | 1 | 0 | null | 2019-11-21T18:17:17 | 2019-11-21T18:17:16 | null | UTF-8 | Java | false | false | 491 | java | package com.iqoption.fragment;
import com.iqoption.gl.c;
import com.iqoption.l.a.g;
/* compiled from: lambda */
public final /* synthetic */ class -$$Lambda$ah$a$LtSrpiqzQGre97tJfuklkDdfaos implements Runnable {
private final /* synthetic */ g f$0;
public /* synthetic */ -$$Lambda$ah$a$LtSrpiqzQGre97tJfuklkDdfaos(g gVar) {
this.f$0 = gVar;
}
public final void run() {
c.aIy().setLiveDealsEnabled(((Boolean) this.f$0.getValue()).booleanValue());
}
}
| [
"yihsun1992@gmail.com"
] | yihsun1992@gmail.com |
bb0491f4d59a2f514bb8f3e2b6dba8f962f10555 | 71f8a89593ab939e31c4fd9383b28a52e745310f | /mylibrary/src/main/java/com/bolyartech/mylibrary/MyLibraryComponent.java | 89872fdae7e816e94779d1cd5e6420d807b04b9f | [
"Apache-2.0"
] | permissive | ogrebgr/dagger2_migration_missing_module_inject | 164f257599c89318432ba7974c08b56d70492685 | 2255491796bbf5c22235555eaf326f24b58bc977 | refs/heads/master | 2021-01-18T14:11:09.874828 | 2015-07-13T12:46:21 | 2015-07-13T12:46:21 | 39,008,372 | 5 | 2 | null | null | null | null | UTF-8 | Java | false | false | 256 | java | package com.bolyartech.mylibrary;
import dagger.Subcomponent;
/**
* Created by ogre on 2015-07-12
*/
@Subcomponent(modules = Mod1.class)
public interface MyLibraryComponent {
void injectActLogin(ActLogin act);
void inject(Mod1Interface1 in);
}
| [
"ogibankov@gmail.com"
] | ogibankov@gmail.com |
fff896cdbbffdae9410121f5f6780dc32e02d986 | 14f6c773e9b5921f22edc6a91f2421fb1067c0b2 | /xmLegesEditorImpl/tags/xmLegesEditor_2_0_rc_6/src/it/cnr/ittig/xmleges/editor/blocks/dom/rifincompleti/RifIncompletiImpl.java | 24e341218fa6d9646cdbf79fbf14a407fc592a67 | [] | no_license | CNR-ITTIG/xmLegesEditor | 20775462cca5bb601170e9e661d62539483a57d0 | 21e8340fc357f86ad7daaa4d5c4a2bf761ec6739 | refs/heads/master | 2021-01-15T19:05:00.311306 | 2013-09-18T12:32:44 | 2013-09-18T12:32:44 | 99,800,169 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,384 | java | package it.cnr.ittig.xmleges.editor.blocks.dom.rifincompleti;
import it.cnr.ittig.services.manager.Loggable;
import it.cnr.ittig.services.manager.Logger;
import it.cnr.ittig.services.manager.ServiceException;
import it.cnr.ittig.services.manager.ServiceManager;
import it.cnr.ittig.services.manager.Serviceable;
import it.cnr.ittig.xmleges.core.services.document.DocumentManager;
import it.cnr.ittig.xmleges.core.services.dtd.DtdRulesManager;
import it.cnr.ittig.xmleges.core.services.util.msg.UtilMsg;
import it.cnr.ittig.xmleges.core.services.util.rulesmanager.UtilRulesManager;
import it.cnr.ittig.xmleges.core.util.dom.UtilDom;
import it.cnr.ittig.xmleges.editor.services.dom.rifincompleti.RifIncompleti;
import it.cnr.ittig.xmleges.editor.services.dom.rinumerazione.Rinumerazione;
import it.cnr.ittig.xmleges.editor.services.util.dom.NirUtilDom;
import it.cnr.ittig.xmleges.editor.services.util.urn.NirUtilUrn;
import it.cnr.ittig.xmleges.editor.services.util.urn.Urn;
import java.util.Vector;
import org.w3c.dom.DOMException;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.ProcessingInstruction;
import org.w3c.dom.traversal.DocumentTraversal;
import org.w3c.dom.traversal.NodeFilter;
import org.w3c.dom.traversal.NodeIterator;
/**
* <h1>Implementazione del servizio
* <code>it.cnr.ittig.xmleges.editor.services.dom.rinvii.Rinvii</code>.</h1>
* <h1>Descrizione</h1>
* <h1>Configurazione</h1>
* <h1>Dipendenze</h1>
* <ul>
* <li>it.cnr.ittig.xmleges.editor.services.form.Form:1.0</li>
* </ul>
* <h1>I18n</h1>
* <ul>
* <li>xxx.yyy:</li>
* </ul>
* <p>
* <dl>
* <dt><b>Copyright ©: </b></dt>
* <dd>2003 - 2004</dd>
* <dd><a href="http://www.ittig.cnr.it" target="_blank">Istituto di Teoria e
* Tecniche dell'Informazione Giuridica (ITTIG) <br>
* Consiglio Nazionale delle Ricerche - Italy </a></dd>
* <dt><b>License: </b></dt>
* <dd><a href="http://www.gnu.org/licenses/gpl.html" target="_blank">GNU
* General Public License </a></dd>
* </dl>
*
* @version 1.0
* @author <a href="mailto:agnoloni@ittig.cnr.it">Tommaso Agnoloni </a>
*/
public class RifIncompletiImpl implements RifIncompleti, Loggable, Serviceable {
Logger logger;
NirUtilDom nirUtilDom;
NirUtilUrn nirutilurn;
DtdRulesManager dtdRulesManager;
DocumentManager documentManager;
UtilMsg utilMsg;
UtilRulesManager utilRulesManager;
Rinumerazione rinumerazione;
// //////////////////////////////////////////////////// LogEnabled Interface
public void enableLogging(Logger logger) {
this.logger = logger;
}
// /////////////////////////////////////////////////// Serviceable Interface
public void service(ServiceManager serviceManager) throws ServiceException {
dtdRulesManager = (DtdRulesManager) serviceManager.lookup(DtdRulesManager.class);
documentManager = (DocumentManager) serviceManager.lookup(DocumentManager.class);
nirUtilDom = (NirUtilDom) serviceManager.lookup(NirUtilDom.class);
utilMsg = (UtilMsg) serviceManager.lookup(UtilMsg.class);
utilRulesManager = (UtilRulesManager) serviceManager.lookup(UtilRulesManager.class);
nirutilurn = (NirUtilUrn) serviceManager.lookup(NirUtilUrn.class);
rinumerazione = (Rinumerazione) serviceManager.lookup(Rinumerazione.class);
}
public boolean canFix(Node node) {
if(node.getNodeType()==Node.PROCESSING_INSTRUCTION_NODE && ((ProcessingInstruction)node).getTarget().equals("rif"))
return true;
return false;
}
public Node setRif(Node node, String text, Urn urn) {
Node parent = node.getParentNode();
Document doc = documentManager.getDocumentAsDom();
Node tmp = doc.createElement("rif");
UtilDom.setAttributeValue(tmp, "xlink:href", urn.toString());
UtilDom.setTextNode(tmp, text);
try{
parent.replaceChild(tmp, node);
}
catch(DOMException e){return null;}
rinumerazione.aggiorna(doc);
return node;
}
public Node setRif(Node node, String text, String rif){
Node parent = node.getParentNode();
Document doc = documentManager.getDocumentAsDom();
Node tmp = doc.createElement("rif");
UtilDom.setAttributeValue(tmp, "xlink:href", rif);
UtilDom.setTextNode(tmp, text);
try{
parent.replaceChild(tmp, node);
}
catch(DOMException e){return null;}
rinumerazione.aggiorna(doc);
return node;
}
public boolean canSetPlainText(Node node) {
if (node == null) return false;
if (node.getParentNode() == null) return false;
return true;
}
public Node setPlainText(Node node, String plainText) {
if (!canSetPlainText(node))
return null;
Node container = node.getParentNode(); // contenitore del testo
Node ritorno = null;
if (null != node.getPreviousSibling() && UtilDom.isTextNode(node.getPreviousSibling()) && null != node.getNextSibling() && UtilDom.isTextNode(node.getNextSibling())) {
node.getPreviousSibling().setNodeValue(node.getPreviousSibling().getNodeValue() + " " + plainText + " " + node.getNextSibling().getNodeValue());
ritorno = node.getPreviousSibling();
container.removeChild(node.getNextSibling());
container.removeChild(node);
return ritorno;
} else { //Ho solo il fratello DX di tipo text
if (null != node.getNextSibling() && UtilDom.isTextNode(node.getNextSibling())) {
node.getNextSibling().setNodeValue(plainText + " " + node.getNextSibling().getNodeValue());
ritorno = node.getNextSibling();
container.removeChild(node);
return ritorno;
} else { //Ho solo il fratello SX di tipo text
if (null != node.getPreviousSibling() && UtilDom.isTextNode(node.getPreviousSibling())) {
node.getPreviousSibling().setNodeValue(node.getPreviousSibling().getNodeValue() + " " + plainText);
ritorno = node.getPreviousSibling();
container.removeChild(node);
return ritorno;
} else { //Non ho fratelli e/o ho fratelli non text
Document doc = documentManager.getDocumentAsDom();
ritorno = doc.createElement(container.getNodeName());
UtilDom.setTextNode(ritorno, plainText);
try{
UtilDom.replace(container, ritorno);
}
catch(DOMException e){
logger.error("errore dom" + e.toString());
return null;
}
return ritorno;
}
}
}
}
public String getText(Node node) {
String temp = ((ProcessingInstruction)node).getData().substring(((ProcessingInstruction)node).getData().indexOf(">"),((ProcessingInstruction)node).getData().length());
return (temp.substring(1,temp.indexOf("<")));
}
public String getUrn(Node node) {
String temp = ((ProcessingInstruction)node).getData().substring(((ProcessingInstruction)node).getData().indexOf("\"")+1,((ProcessingInstruction)node).getData().length());
return (temp.substring(0,temp.indexOf("\"")));
}
public Node[] getList(){
NodeIterator nI = ((DocumentTraversal)documentManager.getDocumentAsDom()).createNodeIterator(documentManager.getDocumentAsDom().getDocumentElement(),NodeFilter.SHOW_PROCESSING_INSTRUCTION,null,true);
Vector v = new Vector();
Node node;
while ((node = nI.nextNode()) != null ) {
if(node.getNodeType()==Node.PROCESSING_INSTRUCTION_NODE && ((ProcessingInstruction)node).getTarget().equals("rif"))
v.add(node);
}
Node[] ret = new Node[v.size()];
for(int i=0; i<v.size();i++)
ret[i]=(Node)v.get(i);
return ret;
}
}
| [
"tommaso.agnoloni@gmail.com"
] | tommaso.agnoloni@gmail.com |
3ff66ad205f182ca1b34bf152bb7ae750e4be12f | b863479f00471986561c57291edb483fc5f4532c | /src/main/java/nom/bdezonia/zorbage/procedure/impl/Rand.java | 8e053295dfaa311b3b6b22cb8f2685846a578880 | [] | permissive | bdezonia/zorbage | 6da6cbdc8f9fcb6cde89d39aca9687e2eee08c9b | 651625e60b7d6ca9273ffc1a282b6a8af5c2d925 | refs/heads/master | 2023-09-01T08:32:59.157936 | 2023-08-08T00:57:18 | 2023-08-08T00:57:18 | 74,696,586 | 11 | 0 | BSD-2-Clause | 2020-11-09T03:01:42 | 2016-11-24T18:24:55 | Java | UTF-8 | Java | false | false | 2,087 | java | /*
* Zorbage: an algebraic data hierarchy for use in numeric processing.
*
* Copyright (c) 2016-2022 Barry DeZonia 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 <copyright holder> nor the names of its contributors may
* be used to endorse or promote products derived from this software without specific
* prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*/
package nom.bdezonia.zorbage.procedure.impl;
import nom.bdezonia.zorbage.procedure.Procedure1;
import nom.bdezonia.zorbage.algebra.Algebra;
import nom.bdezonia.zorbage.algebra.Random;
/**
*
* @author Barry DeZonia
*
*/
public class Rand<T extends Algebra<T,U> & Random<U>,U>
implements Procedure1<U>
{
private final T algebra;
public Rand(T algebra) {
this.algebra = algebra;
}
@Override
public void call(U a) {
algebra.random().call(a);
}
}
| [
"bdezonia@gmail.com"
] | bdezonia@gmail.com |
c1f3c0d63e72498e40451cedbf64120f4c8d57b3 | 9071ecb5f7b6418a047bf524600e89f893fc23ea | /mixiusi-service/src/main/java/com/mixiusi/service/MaterialServiceImpl.java | 27b3fa91cd68c246a6bdd3811cf03aae78eda3ec | [] | no_license | liukun321/DubboDemo | 72b8757bcabf3c3a873a44dc09475f2b0135036a | ada6751601d57452a93956d8b25647c1e0903f4c | refs/heads/master | 2020-03-17T14:14:06.116243 | 2018-07-20T09:28:27 | 2018-07-20T09:28:27 | 133,664,374 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 748 | java | package com.mixiusi.service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import com.alibaba.dubbo.config.annotation.Service;
import com.mixiusi.bean.Material;
import com.mixiusi.biz.MaterialBiz;
@Service(interfaceClass = MaterialService.class)
public class MaterialServiceImpl implements MaterialService {
private final Logger log = LoggerFactory.getLogger(MaterialServiceImpl.class);
@Autowired
private MaterialBiz materialBiz;
@Override
public Material updateMaterial(Material material) {
return materialBiz.updateMaterial(material);
}
@Override
public Material queryMaterial(String venderName) {
return materialBiz.queryMaterial(venderName);
}
}
| [
"cmlk123@126.com"
] | cmlk123@126.com |
9e141abf1e40cc966f83d5fe96bf16d3de4ab482 | 5b18c2aa61fd21f819520f1b614425fd6bc73c71 | /src/main/java/com/sinosoft/claim/bl/action/domain/BLPrpDcarModelAction.java | 3102eed6272ba858a9a1e1b045ea0a84c1416d26 | [] | no_license | Akira-09/claim | 471cc215fa77212099ca385e7628f3d69f83d6d8 | 6dd8a4d4eedb47098c09c2bf3f82502aa62220ad | refs/heads/master | 2022-01-07T13:08:27.760474 | 2019-03-24T23:50:09 | 2019-03-24T23:50:09 | null | 0 | 0 | null | null | null | null | GB18030 | Java | false | false | 931 | java | package com.sinosoft.claim.bl.action.domain;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.sinosoft.claim.dto.domain.PrpDcarModelDto;
import com.sinosoft.sysframework.reference.DBManager;
/**
* 这是prpdcarmodel车型代码的业务对象扩展类<br>
* 创建于 2004-4-5 15:33:45<br>
* JToolpad(1.2.3) Vendor:zhouxianli@sinosoft.com.cn
*/
public class BLPrpDcarModelAction extends BLPrpDcarModelActionBase{
private static Log log = LogFactory.getLog(BLPrpDcarModelAction.class.getName());
/**
* 构造函数
*/
public BLPrpDcarModelAction(){
super();
}
/**
* 转换Dto
* @param dbManager dbManager
* @param prpDcarModelDto prpDcarModelDto
* @param mode 模式
* @throws Exception
*/
public void convertDto(DBManager dbManager,PrpDcarModelDto prpDcarModelDto,String mode) throws Exception{
}
}
| [
"26166405+vincentdk77@users.noreply.github.com"
] | 26166405+vincentdk77@users.noreply.github.com |
3ae3cf500b4808c7ee64188fbae2ff9562ac822d | b4733a6e323188215f084ce8badd8144405844b8 | /app/src/main/java/com/toda/broker/util/TabDb.java | d454a9c06597d59661a0d730988abbcd39faf57b | [] | no_license | guguangzhu/Broker | 2540c47df4c05f4279f78d79fb1a0885b347611a | b0e8805d023301d729b56d3a507bed9bb9670295 | refs/heads/master | 2021-01-12T12:32:39.072244 | 2017-02-23T14:02:07 | 2017-02-23T14:02:07 | 72,546,539 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 944 | java | package com.toda.broker.util;
import com.toda.broker.R;
import com.toda.broker.fragment.ClientListFragment;
import com.toda.broker.fragment.MessageFragment;
import com.toda.broker.fragment.MineFragment;
import com.toda.broker.fragment.SecondHouseListFragment;
public class TabDb {
public static String[] getTabsTxt(){
String[] tabs={"消息","二手房源","客户","我的"};
return tabs;
}
public static int[] getTabsImg(){
int[] ids={R.mipmap.ic_message_nor,R.mipmap.ic_house_nor,R.mipmap.ic_client_nor,R.mipmap.ic_mine_nor};
return ids;
}
public static int[] getTabsImgLight(){
int[] ids={R.mipmap.ic_message_selected,R.mipmap.ic_house_selected,R.mipmap.ic_client_selected, R.mipmap.ic_mine_selected};
return ids;
}
public static Class[] getFragments(){
Class[] clz={io.rong.imkit.fragment.ConversationListFragment.class,SecondHouseListFragment.class,ClientListFragment.class,MineFragment.class};
return clz;
}
}
| [
"574496377@qq.com"
] | 574496377@qq.com |
3ac41ccb9e150bd7153754b4f02f1a30356c0461 | fac5d6126ab147e3197448d283f9a675733f3c34 | /src/main/java/dji/midware/data/model/P3/DataRcGetGimbalControlMode.java | 48333af7074cbd5efa4ec09df90d03086fd6f4eb | [] | no_license | KnzHz/fpv_live | 412e1dc8ab511b1a5889c8714352e3a373cdae2f | 7902f1a4834d581ee6afd0d17d87dc90424d3097 | refs/heads/master | 2022-12-18T18:15:39.101486 | 2020-09-24T19:42:03 | 2020-09-24T19:42:03 | 294,176,898 | 0 | 0 | null | 2020-09-09T17:03:58 | 2020-09-09T17:03:57 | null | UTF-8 | Java | false | false | 2,171 | java | package dji.midware.data.model.P3;
import android.support.annotation.Keep;
import dji.fieldAnnotation.EXClassNullAway;
import dji.midware.data.config.P3.CmdIdRc;
import dji.midware.data.config.P3.CmdSet;
import dji.midware.data.config.P3.DataConfig;
import dji.midware.data.config.P3.DeviceType;
import dji.midware.data.manager.P3.DataBase;
import dji.midware.data.model.P3.DataRcSetGimbalControlMode;
import dji.midware.data.packages.P3.SendPack;
import dji.midware.interfaces.DJIDataCallBack;
import dji.midware.interfaces.DJIDataSyncListener;
@Keep
@EXClassNullAway
public class DataRcGetGimbalControlMode extends DataBase implements DJIDataSyncListener {
private static DataRcGetGimbalControlMode instance = null;
private DataRcSetGimbalControlMode.MODE mode;
public static synchronized DataRcGetGimbalControlMode getInstance() {
DataRcGetGimbalControlMode dataRcGetGimbalControlMode;
synchronized (DataRcGetGimbalControlMode.class) {
if (instance == null) {
instance = new DataRcGetGimbalControlMode();
}
dataRcGetGimbalControlMode = instance;
}
return dataRcGetGimbalControlMode;
}
public void setRecData(byte[] data) {
super.setRecData(data);
this.mode = DataRcSetGimbalControlMode.MODE.find(((Integer) get(0, 1, Integer.class)).intValue());
}
public void setMode(DataRcSetGimbalControlMode.MODE mode2) {
this.mode = mode2;
}
public DataRcSetGimbalControlMode.MODE getMode() {
return this.mode;
}
/* access modifiers changed from: protected */
public void doPack() {
}
public void start(DJIDataCallBack callBack) {
SendPack pack = new SendPack();
pack.senderType = DeviceType.APP.value();
pack.receiverType = DeviceType.OSD.value();
pack.cmdType = DataConfig.CMDTYPE.REQUEST.value();
pack.isNeedAck = DataConfig.NEEDACK.YES.value();
pack.encryptType = DataConfig.EncryptType.NO.value();
pack.cmdSet = CmdSet.RC.value();
pack.cmdId = CmdIdRc.CmdIdType.GetGimbalControlMode.value();
start(pack, callBack);
}
}
| [
"michael@districtrace.com"
] | michael@districtrace.com |
961e778afca573e8c71c6d2ae0c962798e61efd9 | a4f94f4701a59cafc7407aed2d525b2dff985c95 | /workbench/source/codeOrchestra/actionscript/liveCoding/listener/LiveCodingAdapter.java | e1dd99605e8488145c9afc6c9958ff940189c785 | [] | no_license | jamice/code-orchestra-core | ffda62860f5b117386aa6455f4fdf61661abbe9e | b2bbf8362be2e2173864c294c635badb2e27ecc6 | refs/heads/master | 2021-01-15T13:24:53.517854 | 2013-05-09T21:39:28 | 2013-05-09T21:39:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 536 | java | package codeOrchestra.actionscript.liveCoding.listener;
import codeOrchestra.actionscript.liveCoding.LiveCodingSession;
/**
* @author: Alexander Eliseyev
*/
public class LiveCodingAdapter implements LiveCodingListener {
@Override
public void onSessionStart(LiveCodingSession session) {
}
@Override
public void onSessionEnd(LiveCodingSession session) {
}
@Override
public void onSessionPause() {
}
@Override
public void onSessionResume() {
}
@Override
public void onAutoPausedSessionResume() {
}
}
| [
"a.a.eliseyev@gmail.com"
] | a.a.eliseyev@gmail.com |
50a0d5fa888ca2066f584834d168c2d0737a8fc0 | a9959dc178c136c077a4acd7b2807f0749f1729c | /addons/uimafit-s4-sdk/src/main/java/com/ontotext/s4/api/types/sbt/Regulation_or_Law.java | 137a09000b7833b3edc5e9a615d686a2588e8791 | [
"Apache-2.0"
] | permissive | AndreiD/S4 | 5985fca87b8e3de8427e2e8a6db7b2fd0c3a4d91 | cb33a1157666ff07cf27e8b0f60945bb412bce69 | refs/heads/master | 2020-12-24T11:53:34.060483 | 2015-03-20T12:52:32 | 2015-03-20T12:52:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,273 | java |
/* First created by JCasGen Tue Mar 10 17:57:38 EET 2015 */
package com.ontotext.s4.api.types.sbt;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.jcas.cas.TOP_Type;
import org.apache.uima.jcas.tcas.Annotation;
/** Automatically generated type for Regulation_or_Law
* Updated by JCasGen Tue Mar 10 17:57:38 EET 2015
* XML source: desc/sbt_typesystem.xml
* @generated */
public class Regulation_or_Law extends Annotation {
/** @generated
* @ordered
*/
@SuppressWarnings ("hiding")
public final static int typeIndexID = JCasRegistry.register(Regulation_or_Law.class);
/** @generated
* @ordered
*/
@SuppressWarnings ("hiding")
public final static int type = typeIndexID;
/** @generated
* @return index of the type
*/
@Override
public int getTypeIndexID() {return typeIndexID;}
/** Never called. Disable default constructor
* @generated */
protected Regulation_or_Law() {/* intentionally empty block */}
/** Internal - constructor used by generator
* @generated
* @param addr low level Feature Structure reference
* @param type the type of this Feature Structure
*/
public Regulation_or_Law(int addr, TOP_Type type) {
super(addr, type);
readObject();
}
/** @generated
* @param jcas JCas to which this Feature Structure belongs
*/
public Regulation_or_Law(JCas jcas) {
super(jcas);
readObject();
}
/** @generated
* @param jcas JCas to which this Feature Structure belongs
* @param begin offset to the begin spot in the SofA
* @param end offset to the end spot in the SofA
*/
public Regulation_or_Law(JCas jcas, int begin, int end) {
super(jcas);
setBegin(begin);
setEnd(end);
readObject();
}
/**
* <!-- begin-user-doc -->
* Write your own initialization here
* <!-- end-user-doc -->
*
* @generated modifiable
*/
private void readObject() {/*default - does nothing empty block */}
//*--------------*
//* Feature: string
/** getter for string - gets Feature <string> for type <Regulation_or_Law>
* @generated
* @return value of the feature
*/
public String getString() {
if (Regulation_or_Law_Type.featOkTst && ((Regulation_or_Law_Type)jcasType).casFeat_string == null)
jcasType.jcas.throwFeatMissing("string", "com.ontotext.s4.api.types.sbt.Regulation_or_Law");
return jcasType.ll_cas.ll_getStringValue(addr, ((Regulation_or_Law_Type)jcasType).casFeatCode_string);}
/** setter for string - sets Feature <string> for type <Regulation_or_Law>
* @generated
* @param v value to set into the feature
*/
public void setString(String v) {
if (Regulation_or_Law_Type.featOkTst && ((Regulation_or_Law_Type)jcasType).casFeat_string == null)
jcasType.jcas.throwFeatMissing("string", "com.ontotext.s4.api.types.sbt.Regulation_or_Law");
jcasType.ll_cas.ll_setStringValue(addr, ((Regulation_or_Law_Type)jcasType).casFeatCode_string, v);}
//*--------------*
//* Feature: class_feature
/** getter for class_feature - gets Feature <class_feature> for type <Regulation_or_Law>
* @generated
* @return value of the feature
*/
public String getClass_feature() {
if (Regulation_or_Law_Type.featOkTst && ((Regulation_or_Law_Type)jcasType).casFeat_class_feature == null)
jcasType.jcas.throwFeatMissing("class_feature", "com.ontotext.s4.api.types.sbt.Regulation_or_Law");
return jcasType.ll_cas.ll_getStringValue(addr, ((Regulation_or_Law_Type)jcasType).casFeatCode_class_feature);}
/** setter for class_feature - sets Feature <class_feature> for type <Regulation_or_Law>
* @generated
* @param v value to set into the feature
*/
public void setClass_feature(String v) {
if (Regulation_or_Law_Type.featOkTst && ((Regulation_or_Law_Type)jcasType).casFeat_class_feature == null)
jcasType.jcas.throwFeatMissing("class_feature", "com.ontotext.s4.api.types.sbt.Regulation_or_Law");
jcasType.ll_cas.ll_setStringValue(addr, ((Regulation_or_Law_Type)jcasType).casFeatCode_class_feature, v);}
//*--------------*
//* Feature: inst
/** getter for inst - gets Feature <inst> for type <Regulation_or_Law>
* @generated
* @return value of the feature
*/
public String getInst() {
if (Regulation_or_Law_Type.featOkTst && ((Regulation_or_Law_Type)jcasType).casFeat_inst == null)
jcasType.jcas.throwFeatMissing("inst", "com.ontotext.s4.api.types.sbt.Regulation_or_Law");
return jcasType.ll_cas.ll_getStringValue(addr, ((Regulation_or_Law_Type)jcasType).casFeatCode_inst);}
/** setter for inst - sets Feature <inst> for type <Regulation_or_Law>
* @generated
* @param v value to set into the feature
*/
public void setInst(String v) {
if (Regulation_or_Law_Type.featOkTst && ((Regulation_or_Law_Type)jcasType).casFeat_inst == null)
jcasType.jcas.throwFeatMissing("inst", "com.ontotext.s4.api.types.sbt.Regulation_or_Law");
jcasType.ll_cas.ll_setStringValue(addr, ((Regulation_or_Law_Type)jcasType).casFeatCode_inst, v);}
//*--------------*
//* Feature: type_feature
/** getter for type_feature - gets Feature <type_feature> for type <Regulation_or_Law>
* @generated
* @return value of the feature
*/
public String getType_feature() {
if (Regulation_or_Law_Type.featOkTst && ((Regulation_or_Law_Type)jcasType).casFeat_type_feature == null)
jcasType.jcas.throwFeatMissing("type_feature", "com.ontotext.s4.api.types.sbt.Regulation_or_Law");
return jcasType.ll_cas.ll_getStringValue(addr, ((Regulation_or_Law_Type)jcasType).casFeatCode_type_feature);}
/** setter for type_feature - sets Feature <type_feature> for type <Regulation_or_Law>
* @generated
* @param v value to set into the feature
*/
public void setType_feature(String v) {
if (Regulation_or_Law_Type.featOkTst && ((Regulation_or_Law_Type)jcasType).casFeat_type_feature == null)
jcasType.jcas.throwFeatMissing("type_feature", "com.ontotext.s4.api.types.sbt.Regulation_or_Law");
jcasType.ll_cas.ll_setStringValue(addr, ((Regulation_or_Law_Type)jcasType).casFeatCode_type_feature, v);}
}
| [
"tsvetan.dimitrov23@gmail.com"
] | tsvetan.dimitrov23@gmail.com |
d5706452acb1b256bdc255e8f83502a90444befd | 67081693797bdfc4f615d671af0fd5fb74f851a4 | /leetcode/src/main/java/L1167_Minimum_Cost_to_Connect_Sticks.java | e57bffb4cace89ffd48d55c02f53ea0d7e8b9634 | [] | no_license | zzsoszz/LeetCode | 1e32f4a3270bb892df02c3c8f93fca79b769bf71 | 982147ecfd988b97b48a280df74a5f6bb38de92f | refs/heads/master | 2023-03-23T13:58:09.190892 | 2021-02-24T02:50:17 | 2021-02-24T02:50:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 167 | java |
// https://leetcode-cn.com/problems/minimum-cost-to-connect-sticks/
class L1167_Minimum_Cost_to_Connect_Sticks {
public int connectSticks(int[] sticks) {
}
} | [
"15822882820@163.com"
] | 15822882820@163.com |
cd44f09b055ff31d458db2d332c8828c5d17a7ff | 9c430e5273c05856da6bfc989dc71f11776e522e | /Lesson08/methods/SumSample.java | 17abf51787fff629787c80276fb35e567c1e148c | [] | no_license | AnatoliyDeveloper/Java.Start | 731e9a2a5d0f5cb266a35e82bcf0bb25d6803ed5 | 4b7bd7b84f13510b7e749c3685b2ca69b75ceb5e | refs/heads/master | 2021-01-21T08:37:35.044047 | 2017-01-22T10:55:16 | 2017-01-22T10:55:16 | 68,472,966 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 555 | java | package JavaStart.Lesson08.methods;
/**
* Created on 19.05.2015
*
* @author Bohdan Vanchuhov
*/
public class SumSample {
public static void main(String[] args) {
System.out.println(sum(2, 3));
System.out.println(sum(2, 3, 4));
System.out.println(sum("Hello", " world"));
}
public static String sum(String a, String b) {
return a + b;
}
public static int sum(int a, int b, int c) {
return sum(sum(a, b), c);
}
public static int sum(int a, int b) {
return a + b;
}
}
| [
"sheroryaru@gmail.com"
] | sheroryaru@gmail.com |
8798c87e89e79857bc51a05716951525900a9273 | 25a547d7d889664ff3a490c9981aa6fe8d97016f | /src/main/java/nl/topicus/onderwijs/dashboard/datatypes/Event.java | 7acfa1166553161935ddf6c27fa7073e04c159e9 | [] | no_license | topicusbv/dashboard | 9c620c7c086b0ff4c15eadbab74cdc78891157ca | 6d9831a892869c3376bea307acee938b35c13439 | refs/heads/master | 2020-04-03T13:28:24.562481 | 2010-11-02T10:15:16 | 2010-11-02T15:37:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,807 | java | package nl.topicus.onderwijs.dashboard.datatypes;
import java.io.IOException;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Set;
import java.util.TreeSet;
import nl.topicus.onderwijs.dashboard.modules.Key;
import org.codehaus.jackson.JsonGenerationException;
import org.codehaus.jackson.map.JsonMappingException;
import org.codehaus.jackson.map.ObjectMapper;
public class Event implements Serializable {
private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat(
"dd-MM-yyyy");
private static final long serialVersionUID = 1L;
private Key key;
private String title;
private Date dateTime;
private boolean major;
private Set<String> tags = new TreeSet<String>();
public Key getKey() {
return key;
}
public void setKey(Key key) {
this.key = key;
}
public String getKeyName() {
return getKey().getName();
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getDateAsString() {
return DATE_FORMAT.format(getDateTime());
}
public Date getDateTime() {
return dateTime;
}
public void setDateTime(Date dateTime) {
this.dateTime = dateTime;
}
public boolean isMajor() {
return major;
}
public void setMajor(boolean major) {
this.major = major;
}
public Set<String> getTags() {
return tags;
}
public void setTags(Set<String> tags) {
this.tags = tags;
}
@Override
public String toString() {
ObjectMapper mapper = new ObjectMapper();
try {
return mapper.writeValueAsString(this);
} catch (JsonGenerationException e) {
throw new RuntimeException(e);
} catch (JsonMappingException e) {
throw new RuntimeException(e);
} catch (IOException e) {
throw new RuntimeException(e);
}
}
}
| [
"martijn.dashorst@gmail.com"
] | martijn.dashorst@gmail.com |
5a3baa68b9200eaae45ebbde35419e4d6dca63cf | 70d0ed72638cadbe19730a3f6b321221b425d872 | /server/talk-db-proxy/src/main/java/com/blt/talk/service/internal/SessionService.java | 0108313b025ab9c1b3e2f7b5aaa77931312855ab | [
"Apache-2.0"
] | permissive | ccfish86/sctalk | 0bb4edf5ad3407e8177827b4975a279248d72c88 | 0ec0cbbba3034c22ba65eca1bbcfa2181f93f296 | refs/heads/master | 2023-07-23T11:33:05.443159 | 2023-06-09T07:21:06 | 2023-06-09T07:21:06 | 90,029,031 | 177 | 102 | Apache-2.0 | 2023-07-05T20:53:30 | 2017-05-02T12:06:14 | Java | UTF-8 | Java | false | false | 1,172 | java | /*
* Copyright © 2013-2017 BLT, Co., Ltd. All Rights Reserved.
*/
package com.blt.talk.service.internal;
/**
* 会话(Session)相关处理
*
* @author 袁贵
* @version 1.0
* @since 1.0
*/
public interface SessionService {
/**
* Session追加
*
* @param userId 用户
* @param peerId 目标ID(用户或群组)
* @param type 类型(用户或群组)
* @return 会话ID
* @since 1.0
*/
long addSession(long userId, long peerId, int type);
/**
* 查询会话ID
*
* @param userId 用户
* @param peerId 目标ID(用户或群组)
* @param type 类型(用户或群组)
* @param isAll 是否包括已删除的数据(逻辑删除)
* @return 会话ID
* @since 1.0
*/
long getSessionId(long userId, long peerId, int type, boolean isAll);
/**
* 删除会话
*
* @param sessionId 会话ID
* @since 1.0
*/
void remove(long sessionId);
/**
* 更新会话
*
* @param sessionId 会话ID
* @param time 时间
* @since 1.0
*/
void update(long sessionId, int time);
}
| [
"ccfish@ccfish.net"
] | ccfish@ccfish.net |
4f11f2c7fee915b149826fa646800b5da5564872 | 899a427a903148d0d26e903faf8021b94b126911 | /06-two-pointers/3-Advance/0925-long-pressed-name/src/Solution2.java | ead9beb06346f52d57201d4e177082e386cf1ef5 | [
"Apache-2.0"
] | permissive | liweiwei1419/LeetCode-Solutions-in-Good-Style | 033ab69b93fa2d294ab6a08c8b9fbcff6d32a178 | acc8661338cc7c1ae067915fb16079a9e3e66847 | refs/heads/master | 2022-07-27T15:24:57.717791 | 2021-12-19T03:11:02 | 2021-12-19T03:11:02 | 161,101,415 | 2,016 | 351 | Apache-2.0 | 2022-01-07T10:38:35 | 2018-12-10T01:50:09 | Java | UTF-8 | Java | false | false | 704 | java | public class Solution2 {
public boolean isLongPressedName(String name, String typed) {
int len1 = name.length();
int len2 = typed.length();
char[] nameArray = name.toCharArray();
char[] typedArray = typed.toCharArray();
int index1 = 0;
int index2 = 0;
while (index2 < len2) {
if (index1 < len1 && nameArray[index1] == typedArray[index2]) {
index1++;
index2++;
} else if (index2 > 0 && typedArray[index2] == typedArray[index2 - 1]) {
index2++;
} else {
return false;
}
}
return index1 == nameArray.length;
}
} | [
"liweiwei1419@gmail.com"
] | liweiwei1419@gmail.com |
dafff9ffd2c7555053f1933f4772474ebeceaa03 | 37259905ecd5654275d05667df1169ead80595cd | /src/main/java/com/somnus/reflect/Reflect14.java | 585a73055db493f2aeb21edd47233083981fc722 | [] | no_license | Arisono/J2SE | e5fb0514175b76c8cd8a5524e6e912365259e73d | c06413c1c0442de0c1c82ee5c80bf660a2da524d | refs/heads/master | 2021-01-18T00:38:10.796349 | 2015-12-11T12:33:01 | 2015-12-11T12:33:21 | 46,551,925 | 0 | 0 | null | 2015-11-20T09:18:53 | 2015-11-20T09:18:53 | null | UTF-8 | Java | false | false | 1,101 | java | package com.somnus.reflect;
import java.lang.reflect.Array;
public class Reflect14
{
/**
* 通过反射修改数组大小
*
* @param args
*/
public static void main(String[] args)
{
int[] temp = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
int[] newTemp = (int[]) arrayInc(temp, 15);
print(newTemp);
String[] atr = { "a", "b", "c" };
String[] str1 = (String[]) arrayInc(atr, 8);
print(str1);
}
/**
* 修改数组大小
*
* @param obj
* @param len
* @return
*/
public static Object arrayInc(Object obj, int len)
{
Class<?> arr = obj.getClass().getComponentType();
Object newArr = Array.newInstance(arr, len);
int co = Array.getLength(obj);
System.arraycopy(obj, 0, newArr, 0, co);
return newArr;
}
/**
* 打印
* @param obj
*/
public static void print(Object obj)
{
Class<?> c = obj.getClass();
if (!c.isArray())
{
return;
}
System.out.println("数组长度为: " + Array.getLength(obj));
for (int i = 0; i < Array.getLength(obj); i++)
{
System.out.print(Array.get(obj, i) + " ");
}
}
}
| [
"928200207@qq.com"
] | 928200207@qq.com |
8ac128663167f48283280d60a59081a4509ea292 | 55821b09861478c6db214d808f12f493f54ff82a | /trunk/java.prj/ITSMCSharp2Java/Fusion.Api/Fusion/Api/ListRule.java | 4ea9c03b79f5791c5a73594a8b83e716a659aa17 | [] | no_license | SiteView/ECC8.13 | ede526a869cf0cb076cd9695dbc16075a1cf9716 | bced98372138b09140dc108b33bb63f33ef769fe | refs/heads/master | 2016-09-05T13:57:21.282048 | 2012-06-12T08:54:40 | 2012-06-12T08:54:40 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | Java | false | false | 1,104 | java | package Fusion.Api;
/**
* @author Administrator
* @version 1.0
* @created 15-ËÄÔÂ-2010 14:44:58
*/
public class ListRule extends RuleDef {
public ListRule(){
}
public void finalize() throws Throwable {
super.finalize();
}
/**
*
* @param fusionObject
*/
public ListRule(Object fusionObject){
}
/**
*
* @param val
*/
public void Add(ValueSource val){
}
public static String ClassName(){
return "";
}
public int Count(){
return 0;
}
public String DefToBriefString(){
return "";
}
/**
*
* @param val
*/
public int IndexOf(ValueSource val){
return 0;
}
/**
*
* @param val
*/
public void Remove(ValueSource val){
}
public void RemoveAll(){
}
/**
*
* @param iIndex
*/
public void RemoveAt(int iIndex){
}
public ValueSource SourceValue(){
return null;
}
/**
*
* @param iIndex
*/
public ValueSource this(int iIndex){
return null;
}
private Fusion.BusinessLogic.Rules.ListRule WhoAmI(){
return null;
}
} | [
"136122085@163.com"
] | 136122085@163.com |
8656fb6bdc62a3a5e82feb15461de37ce9673dc7 | c31b65267327c64f2ef79d015908c8224dd566df | /opencga-app/src/main/java/org/opencb/opencga/app/cli/admin/executors/migration/storage/NewStudyMetadata.java | dac203ab80fd994824389fd55fc0bd421c721a79 | [
"Apache-2.0"
] | permissive | sconeill/opencga | 5676a4a415ff6fd4383a2ad8800264d26598a662 | dad91554c874e14023d7038644d1257d8d5c04f4 | refs/heads/master | 2020-06-26T12:43:00.547022 | 2019-04-04T14:49:23 | 2019-04-04T14:49:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,033 | java | package org.opencb.opencga.app.cli.admin.executors.migration.storage;
import org.apache.solr.common.StringUtils;
import org.opencb.opencga.catalog.exceptions.CatalogException;
import org.opencb.opencga.catalog.managers.CatalogManager;
import org.opencb.opencga.storage.core.config.StorageConfiguration;
import org.opencb.opencga.storage.core.exceptions.StorageEngineException;
import org.opencb.opencga.storage.core.metadata.StudyConfiguration;
import org.opencb.opencga.storage.core.metadata.VariantStorageMetadataManager;
import org.opencb.opencga.storage.core.metadata.models.*;
import org.opencb.opencga.storage.core.variant.VariantStorageEngine;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.*;
/**
* Replace StudyConfiguration with StudyMetadata
*
* Created on 14/03/19.
*
* @author Jacobo Coll <jacobo167@gmail.com>
*/
public class NewStudyMetadata extends AbstractStorageMigrator {
private final Logger logger = LoggerFactory.getLogger(NewStudyMetadata.class);
private final AddFilePathToStudyConfigurationMigration filePathMigrator;
public NewStudyMetadata(StorageConfiguration storageConfiguration, CatalogManager catalogManager) {
super(storageConfiguration, catalogManager);
filePathMigrator = new AddFilePathToStudyConfigurationMigration(catalogManager);
}
private static String STUDY_CONFIGURATION_MIGRATED = "studyConfigurationMigrated";
@Override
@SuppressWarnings("deprecation")
protected void migrate(VariantStorageEngine variantStorageEngine, String sessionId) throws StorageEngineException, CatalogException {
VariantStorageMetadataManager metadataManager = variantStorageEngine.getMetadataManager();
for (Integer studyId : metadataManager.getStudyIds()) {
StudyConfiguration sc = metadataManager.getStudyConfiguration(studyId, null).first();
if (sc == null || sc.getFileIds().isEmpty()) {
logger.info("Skip study " + studyId + ". Migration not needed");
continue;
}
if (sc.getAttributes().getBoolean(STUDY_CONFIGURATION_MIGRATED, false)) {
logger.info("StudyConfiguration \"" + sc.getName() + "\" (" + sc.getId() + ") already migrated. Skip!");
continue;
}
StudyMetadata sm = new StudyMetadata(sc.getId(), sc.getName());
sm.setAggregation(sc.getAggregation());
sm.setTimeStamp(sc.getTimeStamp());
sm.setVariantHeader(sc.getVariantHeader());
sm.setAttributes(sc.getAttributes());
metadataManager.unsecureUpdateStudyMetadata(sm);
Map<Integer, List<Integer>> filesInSample = new HashMap<>();
for (Map.Entry<String, Integer> entry : sc.getFileIds().entrySet()) {
Integer fileId = entry.getValue();
String fileName = entry.getKey();
FileMetadata fileMetadata = new FileMetadata(studyId, fileId, fileName);
if (sc.getFilePaths() != null) {
fileMetadata.setPath(sc.getFilePaths().inverse().get(fileId));
}
if (StringUtils.isEmpty(fileMetadata.getPath())) {
fileMetadata.setPath(filePathMigrator.getFilePath(sc.getName(), fileName, sessionId));
}
fileMetadata.setIndexStatus(sc.getIndexedFiles().contains(fileId) ? TaskMetadata.Status.READY : TaskMetadata.Status.NONE);
fileMetadata.setSamples(sc.getSamplesInFiles().get(fileId));
metadataManager.unsecureUpdateFileMetadata(studyId, fileMetadata);
for (Integer sampleId : fileMetadata.getSamples()) {
filesInSample.computeIfAbsent(sampleId, id -> new ArrayList<>()).add(fileId);
}
}
for (Map.Entry<String, Integer> entry : sc.getCohortIds().entrySet()) {
Integer cohortId = entry.getValue();
String cohortName = entry.getKey();
CohortMetadata cohortMetadata = new CohortMetadata(studyId, cohortId, cohortName,
new ArrayList<>(sc.getCohorts().get(cohortId)));
TaskMetadata.Status status;
if (sc.getCalculatedStats().contains(cohortId)) {
status = TaskMetadata.Status.READY;
} else if (sc.getInvalidStats().contains(cohortId)) {
status = TaskMetadata.Status.ERROR;
} else {
status = TaskMetadata.Status.NONE;
}
cohortMetadata.setStatsStatus(status);
metadataManager.unsecureUpdateCohortMetadata(studyId, cohortMetadata);
}
for (Map.Entry<String, Integer> entry : sc.getSampleIds().entrySet()) {
Integer sampleId = entry.getValue();
String sampleName = entry.getKey();
SampleMetadata sampleMetadata = new SampleMetadata(studyId, sampleId, sampleName);
sampleMetadata.setFiles(new HashSet<>(filesInSample.get(sampleId)));
if (sampleMetadata.getFiles().stream().anyMatch(sc.getIndexedFiles()::contains)) {
sampleMetadata.setIndexStatus(TaskMetadata.Status.READY);
}
sampleMetadata.setCohorts(new HashSet<>());
sc.getCohorts().forEach((cohortId, samples) -> {
if (samples.contains(sampleId)) {
sampleMetadata.getCohorts().add(cohortId);
}
});
metadataManager.unsecureUpdateSampleMetadata(studyId, sampleMetadata);
}
for (TaskMetadata taskMetadata : sc.getBatches()) {
metadataManager.unsecureUpdateTask(studyId, taskMetadata);
}
sc.getAttributes().put(STUDY_CONFIGURATION_MIGRATED, true);
metadataManager.updateStudyConfiguration(sc, null);
}
}
}
| [
"jacobo167@gmail.com"
] | jacobo167@gmail.com |
0ee880da2d8c15af69dcae0f450377a6c8b54bbb | 419330d0e15767d174f1fa1eec40cc19d5159593 | /rfc3986-uri/src/main/java/org/dmfs/rfc3986/paths/StructuredPath.java | 31ea9ade488ff1ccb89e108d432801c7e92bc7d9 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | henneberger/uri-toolkit | 3426a1620723c38de84cdc067d0d56b1ee8eda06 | ddf41313fbf3729a4eb5a3aaafb75df0c3cd2c52 | refs/heads/master | 2022-10-27T22:31:02.576992 | 2019-03-15T09:47:03 | 2019-03-15T09:47:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,729 | java | /*
* Copyright 2017 dmfs GmbH
*
* 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.dmfs.rfc3986.paths;
import org.dmfs.iterators.ArrayIterator;
import org.dmfs.rfc3986.Path;
import org.dmfs.rfc3986.UriEncoded;
import org.dmfs.rfc3986.encoding.IdempotentEncoded;
import java.util.Iterator;
/**
* A path that's assembled from its individual (encoded) path segments
* <p>
* Note: If the first segment equals {@link IdempotentEncoded#EMPTY} the result is an absolute Path. A {@link IdempotentEncoded#EMPTY} element at the
* essentially appends a '/' to the end of the String representation.
*
* @author Marten Gajda
*/
public final class StructuredPath implements Path
{
private final UriEncoded[] mPathSegments;
public StructuredPath(UriEncoded... segments)
{
mPathSegments = segments.clone();
}
@Override
public boolean isEmpty()
{
return mPathSegments.length == 0;
}
@Override
public boolean isAbsolute()
{
return mPathSegments.length > 0 && IdempotentEncoded.EMPTY.equals(mPathSegments[0]);
}
@Override
public Iterator<UriEncoded> iterator()
{
return new ArrayIterator<>(mPathSegments);
}
}
| [
"marten@dmfs.org"
] | marten@dmfs.org |
257f04314bfde5a003ffb347c364d1611fe184db | 4aa90348abcb2119011728dc067afd501f275374 | /app/src/main/java/com/tencent/mm/plugin/appbrand/permission/b$3$3.java | eb9bab7cbf0118ef7dbd0968aea043d8d85ebc72 | [] | no_license | jambestwick/HackWechat | 0d4ceb2d79ccddb45004ca667e9a6a984a80f0f6 | 6a34899c8bfd50d19e5a5ec36a58218598172a6b | refs/heads/master | 2022-01-27T12:48:43.446804 | 2021-12-29T10:36:30 | 2021-12-29T10:36:30 | 249,366,791 | 0 | 0 | null | 2020-03-23T07:48:32 | 2020-03-23T07:48:32 | null | UTF-8 | Java | false | false | 673 | java | package com.tencent.mm.plugin.appbrand.permission;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
import com.tencent.mm.plugin.appbrand.permission.b.3;
import com.tencent.mm.sdk.platformtools.x;
class b$3$3 implements OnCancelListener {
final /* synthetic */ 3 jGv;
b$3$3(3 3) {
this.jGv = 3;
}
public final void onCancel(DialogInterface dialogInterface) {
b.ajv().E(b.a(this.jGv.jGs), b.b(this.jGv.jGs));
x.i("MicroMsg.AppBrandJsApiUserAuth", "requestUserAuth, user cancel, appId %s, api %s", b.a(this.jGv.jGs), b.b(this.jGv.jGs));
b.c(this.jGv.jGs).onCancel();
}
}
| [
"malin.myemail@163.com"
] | malin.myemail@163.com |
3a6d1d20109fba9f3b37bbb7b987d07372b3ceeb | f55cb205c155ca50e640bd1b6e078c696bd59d56 | /dragon3/src/main/java/dragon3/attack/target/SpreadTarget.java | ec68075aa1ef3078bcce4d034029d2d6ca608638 | [] | no_license | piropiro/dragon | bc982af0298f3564be326ea08c4113e2613385df | 29d05e9a660fb5b6a3d971c332e52c63ce3a2df3 | refs/heads/master | 2020-04-06T07:03:58.423129 | 2014-12-16T13:01:16 | 2014-12-16T13:01:16 | 16,068,916 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 636 | java | /*
* 作成日: 2004/03/21
*/
package dragon3.attack.target;
import mine.paint.UnitMap;
/**
* @author k-saito
*/
public class SpreadTarget extends Target {
private int range;
/**
*
*/
public SpreadTarget(int x, int y, int range) {
super(x, y);
this.range = range;
}
public void setSearchField(UnitMap map, int page, int x, int y){
map.fillDia(page, x, y, range, 1);
}
/* (非 Javadoc)
* @see dragon3.attack.target.Target#paint(mine.paint.UnitMap, int, int)
*/
protected void paintTarget(UnitMap map, int page, int x, int y) {
map.fillDia(page, x, y, range, 3);
}
}
| [
"mela825@gmail.com"
] | mela825@gmail.com |
1a79b6bb30f38f8ef7239338aadd9701107df647 | 535e5d97d44fd42fca2a6fc68b3b566046ffa6c2 | /com/google/android/gms/analytics/internal/zzac.java | 8e9bf49b2e34701b00d8ce2bc0935976c6262079 | [] | no_license | eric-lanita/BigRoadTruckingLogbookApp_v21.0.12_source_from_JADX | 47566c288bc89777184b73ef0eb199b61de39f82 | fb84301d90ec083ce06c68a3828cf99d8855c007 | refs/heads/master | 2021-09-01T07:02:52.500068 | 2017-12-25T15:06:05 | 2017-12-25T15:06:05 | 115,346,008 | 0 | 3 | null | null | null | null | UTF-8 | Java | false | false | 4,333 | java | package com.google.android.gms.analytics.internal;
import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import java.util.List;
import java.util.Map;
public interface zzac extends IInterface {
public static abstract class zza extends Binder implements zzac {
private static class zza implements zzac {
private IBinder f10233a;
zza(IBinder iBinder) {
this.f10233a = iBinder;
}
public IBinder asBinder() {
return this.f10233a;
}
public String getVersion() {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.analytics.internal.IAnalyticsService");
this.f10233a.transact(3, obtain, obtain2, 0);
obtain2.readException();
String readString = obtain2.readString();
return readString;
} finally {
obtain2.recycle();
obtain.recycle();
}
}
public void zza(Map map, long j, String str, List<Command> list) {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.analytics.internal.IAnalyticsService");
obtain.writeMap(map);
obtain.writeLong(j);
obtain.writeString(str);
obtain.writeTypedList(list);
this.f10233a.transact(1, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
public void zzyo() {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.analytics.internal.IAnalyticsService");
this.f10233a.transact(2, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
}
public static zzac zzbk(IBinder iBinder) {
if (iBinder == null) {
return null;
}
IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.analytics.internal.IAnalyticsService");
return (queryLocalInterface == null || !(queryLocalInterface instanceof zzac)) ? new zza(iBinder) : (zzac) queryLocalInterface;
}
public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) {
switch (i) {
case 1:
parcel.enforceInterface("com.google.android.gms.analytics.internal.IAnalyticsService");
zza(parcel.readHashMap(getClass().getClassLoader()), parcel.readLong(), parcel.readString(), parcel.createTypedArrayList(Command.CREATOR));
parcel2.writeNoException();
return true;
case 2:
parcel.enforceInterface("com.google.android.gms.analytics.internal.IAnalyticsService");
zzyo();
parcel2.writeNoException();
return true;
case 3:
parcel.enforceInterface("com.google.android.gms.analytics.internal.IAnalyticsService");
String version = getVersion();
parcel2.writeNoException();
parcel2.writeString(version);
return true;
case 1598968902:
parcel2.writeString("com.google.android.gms.analytics.internal.IAnalyticsService");
return true;
default:
return super.onTransact(i, parcel, parcel2, i2);
}
}
}
String getVersion();
void zza(Map map, long j, String str, List<Command> list);
void zzyo();
}
| [
"eric.lanita@gmail.com"
] | eric.lanita@gmail.com |
b0201c5f20f427f330e441ec621ea20a18ddd0b4 | cfe7a680b3fdc173a9538b109d9f5323c318eedc | /l15-threads/src/main/java/ru/sbrf/ru/thread/JoinDemo.java | 314f4ef8370d9a2b4ac0aa3b345116e1e9344e45 | [] | no_license | kataus/cu_reboot_examples_2020_09 | 93eb23c5af817716432f3656cab6281d7276ffbd | 3d2282f44d1ca4a2cf47efaccb377e013f3daef9 | refs/heads/master | 2023-02-13T05:17:51.780969 | 2020-12-28T17:29:01 | 2020-12-28T17:29:01 | 296,409,483 | 0 | 0 | null | 2020-09-24T15:29:41 | 2020-09-17T18:25:17 | Java | UTF-8 | Java | false | false | 2,626 | java | package ru.sbrf.ru.thread;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.concurrent.ThreadLocalRandom;
import java.util.concurrent.TimeUnit;
public class JoinDemo {
private static final Logger logger = LoggerFactory.getLogger( JoinDemo.class );
public static void main( String[] args ) throws InterruptedException {
// freeRun();
Thread.sleep( TimeUnit.SECONDS.toMillis( 15 ) );
orderedRun();
}
private static Thread createThread( String val ) {
return new Thread( () -> action( val ) );
}
private static void freeRun() throws InterruptedException {
logger.info( "starting" );
Thread t1 = createThread( "t1" );
Thread t2 = createThread( "t2" );
Thread t3 = createThread( "t3" );
Thread t4 = createThread( "t4" );
Thread t5 = createThread( "t5" );
Thread t6 = createThread( "t6" );
Thread t7 = createThread( "t7" );
Thread t8 = createThread( "t8" );
Thread t9 = createThread( "t9" );
Thread t10 = createThread( "t10" );
t1.start();
t2.start();
t3.start();
t4.start();
t5.start();
t6.start();
t7.start();
t8.start();
t9.start();
t10.start();
logger.info( "finished" );
}
private static void orderedRun() throws InterruptedException {
logger.info( "starting" );
Thread t1 = createThread( "t1" );
Thread t2 = createThread( "t2" );
Thread t3 = createThread( "t3" );
Thread t4 = createThread( "t4" );
Thread t5 = createThread( "t5" );
Thread t6 = createThread( "t6" );
Thread t7 = createThread( "t7" );
Thread t8 = createThread( "t8" );
Thread t9 = createThread( "t9" );
Thread t10 = createThread( "t10" );
t1.start();
t1.join();
t2.start();
t2.join();
t3.start();
t3.join();
t4.start();
t4.join();
t5.start();
t5.join();
t6.start();
t6.join();
t7.start();
t7.join();
t8.start();
t8.join();
t9.start();
t9.join();
t10.start();
t10.join();
logger.info( "finished" );
}
private static void action( String str ) {
try {
Thread.sleep( ThreadLocalRandom.current().nextInt( 2000, 5000 ) );
// Thread.sleep( 50 );
} catch ( InterruptedException e ) {
Thread.currentThread().interrupt();
}
logger.info( "Fire {}", str );
}
}
| [
"kataus@gmail.com"
] | kataus@gmail.com |
2bfc8ea7f837e159879829406cc39cf2ee94bf0d | 72003cab6711efe96e7080599376d758e065fc33 | /PCLApp/JavaSource/com/citibank/ods/modules/client/curacctprmntinstr/functionality/valueobject/CurAcctPrmntInstrMovementListFncVO.java | a71374c2c30f5ea276a4becaf382b7d6e3291a75 | [] | no_license | mv58799/PCLApp | 39390b8ff5ccaf95c654f394e32ed03b7713e8ad | 2f8772a60fee035104586bbbf2827567247459c4 | refs/heads/master | 2020-03-19T09:06:30.870074 | 2018-06-06T03:10:07 | 2018-06-06T03:10:07 | 136,260,531 | 0 | 0 | null | null | null | null | ISO-8859-1 | Java | false | false | 913 | java | package com.citibank.ods.modules.client.curacctprmntinstr.functionality.valueobject;
//
//©2002-2007 Accenture. All rights reserved.
//
/**
* [Class description]
*
* @see package com.citibank.ods.modules.client.curacctprmntinstr.functionality;
* @version 1.0
* @author angelica.almeida,18/06/2007
*
* <PRE>
*
* <U>Updated by: </U> <U>Description: </U>
*
* </PRE>
*/
public class CurAcctPrmntInstrMovementListFncVO extends
BaseCurAcctPrmntInstrListFncVO
{
/**
* Constante de descrição do campo do último usuario a atualizar
*/
public static final String C_LAST_UPD_USER_ID_DESCRIPTION = "Nome do Usuário";
private String m_lastUpdUserIdSrc;
public String getLastUpdUserIdSrc()
{
return m_lastUpdUserIdSrc;
}
public void setLastUpdUserIdSrc( String lastUpdUserIdSrc_ )
{
m_lastUpdUserIdSrc = lastUpdUserIdSrc_;
}
} | [
"mv58799@LACBRA900W1153.lac.nsroot.net"
] | mv58799@LACBRA900W1153.lac.nsroot.net |
c6b86c51face727ca042ec26a9d3ed73948ebdf4 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/CodeJamData/10/31/9.java | eccf9c009694f375e8bff45c06ae20472e8f2743 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Java | false | false | 2,119 | java | import java.io.*;
import java.util.*;
import java.math.*;
public class A implements Runnable {
private void solve() throws IOException {
int T = in.nextInt();
for (int tn = 1; tn <= T; ++tn) {
int n = in.nextInt();
int[] a = new int[n];
int[] b = new int[n];
for (int i = 0; i < n; ++i) {
a[i] = in.nextInt();
b[i] = in.nextInt();
}
int ans = 0;
for (int i = 0; i < n; ++i) {
for (int j = i + 1; j < n; ++j) {
if ((a[i] - a[j]) * (b[i] - b[j]) < 0) {
++ans;
}
}
}
out.println("Case #" + tn + ": " + ans );
}
}
final String FILE_NAME = "A-large";
SimpleScanner in;
PrintWriter out;
@Override
public void run() {
try {
in = new SimpleScanner(new FileReader(FILE_NAME + ".in"));
out = new PrintWriter(FILE_NAME + ".out");
solve();
out.close();
} catch (Throwable e) {
e.printStackTrace();
System.exit(-1);
}
}
public static void main(String[] args) {
new Thread(new A()).start();
}
void myAssert(boolean e) {
if (!e) {
throw new Error("assertion failed");
}
}
int assertBounds(int l, int m, int r) {
myAssert(l <= m && m <= r);
return m;
}
class SimpleScanner extends BufferedReader {
private StringTokenizer st;
private boolean eof;
public SimpleScanner(Reader a) {
super(a);
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(readLine());
} catch (Exception e) {
eof = true;
return "";
}
}
return st.nextToken();
}
boolean seekEof() {
String s = next();
if ("".equals(s) && eof)
return true;
st = new StringTokenizer(s + " " + st.toString());
return false;
}
private String cnv(String s) {
if (s.length() == 0)
return "0";
return s;
}
int nextInt() {
return Integer.parseInt(cnv(next()));
}
double nextDouble() {
return Double.parseDouble(cnv(next()));
}
long nextLong() {
return Long.parseLong(cnv(next()));
}
}
} | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
c420188c903b217891d15d24a1babd100021ba6b | 15a3ede3fa96c469b2e3aef135580b28bf1a37c5 | /auth-service/src/main/java/com/edu/authservice/AuthServiceApplication.java | a7da71c5db028271287306df1f5bee687dbb3744 | [] | no_license | KostNik/oauth2-boot | 15da7dd12c9be2db47154d93efc3b39b48dc5886 | e2938bf9d3934341be0c5fdf95dccf5bd6f5eddf | refs/heads/master | 2020-05-17T20:55:32.859801 | 2019-04-28T20:55:20 | 2019-04-28T20:55:20 | 183,957,766 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 695 | java | package com.edu.authservice;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;
@SpringBootApplication
@EnableResourceServer
@EnableDiscoveryClient
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class AuthServiceApplication {
public static void main(String[] args) {
SpringApplication.run(AuthServiceApplication.class, args);
}
}
| [
"kost.nik88@gmail.com"
] | kost.nik88@gmail.com |
106e59a30e4e325b7958db7f7f1f7ba9673f8479 | ffeaf567e9b1aadb4c00d95cd3df4e6484f36dcd | /Talagram/org/linphone/core/LinphoneChatMessage.java | b2aa7354d285a2bd1ab6cdc35e6cec0ccbdef4e9 | [] | no_license | danielperez9430/Third-party-Telegram-Apps-Spy | dfe541290c8512ca366e401aedf5cc5bfcaa6c3e | f6fc0f9c677bd5d5cd3585790b033094c2f0226d | refs/heads/master | 2020-04-11T23:26:06.025903 | 2018-12-18T10:07:20 | 2018-12-18T10:07:20 | 162,166,647 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,426 | java | package org.linphone.core;
import java.util.Vector;
public interface LinphoneChatMessage {
public interface LinphoneChatMessageListener {
void onLinphoneChatMessageFileTransferProgressChanged(LinphoneChatMessage arg1, LinphoneContent arg2, int arg3, int arg4);
void onLinphoneChatMessageFileTransferReceived(LinphoneChatMessage arg1, LinphoneContent arg2, LinphoneBuffer arg3);
void onLinphoneChatMessageFileTransferSent(LinphoneChatMessage arg1, LinphoneContent arg2, int arg3, int arg4, LinphoneBuffer arg5);
void onLinphoneChatMessageStateChanged(LinphoneChatMessage arg1, State arg2);
}
public class State {
public static final State Delivered;
public static final State FileTransferDone;
public static final State FileTransferError;
public static final State Idle;
public static final State InProgress;
public static final State NotDelivered;
private final String mStringValue;
private final int mValue;
private static Vector values;
static {
State.values = new Vector();
State.Idle = new State(0, "Idle");
State.InProgress = new State(1, "InProgress");
State.Delivered = new State(2, "Delivered");
State.NotDelivered = new State(3, "NotDelivered");
State.FileTransferError = new State(4, "FileTransferError");
State.FileTransferDone = new State(5, "FileTransferDone");
}
private State(int arg1, String arg2) {
super();
this.mValue = arg1;
State.values.addElement(this);
this.mStringValue = arg2;
}
public static State fromInt(int arg3) {
int v0;
for(v0 = 0; v0 < State.values.size(); ++v0) {
Object v1 = State.values.elementAt(v0);
if(((State)v1).mValue == arg3) {
return ((State)v1);
}
}
StringBuilder v1_1 = new StringBuilder();
v1_1.append("state not found [");
v1_1.append(arg3);
v1_1.append("]");
throw new RuntimeException(v1_1.toString());
}
public int toInt() {
return this.mValue;
}
public String toString() {
return this.mStringValue;
}
public final int value() {
return this.mValue;
}
}
@Deprecated public interface StateListener {
void onLinphoneChatMessageStateChanged(LinphoneChatMessage arg1, State arg2);
}
void addCustomHeader(String arg1, String arg2);
void cancelFileTransfer();
void destroy();
int downloadFile();
String getAppData();
String getCustomHeader(String arg1);
ErrorInfo getErrorInfo();
String getExternalBodyUrl();
LinphoneContent getFileTransferInformation();
LinphoneAddress getFrom();
LinphoneAddress getPeerAddress();
Reason getReason();
State getStatus();
int getStorageId();
String getText();
long getTime();
LinphoneAddress getTo();
boolean isOutgoing();
boolean isRead();
void putChar(long arg1);
void setAppData(String arg1);
void setExternalBodyUrl(String arg1);
void setFileTransferFilepath(String arg1);
void setListener(LinphoneChatMessageListener arg1);
void store();
}
| [
"dpefe@hotmail.es"
] | dpefe@hotmail.es |
685425df72e481f4b623f8f7457df8baaafd4eb2 | 0800c206efb883e15322f063b5c6668b1b1215ac | /ref/newrelic_rewriter/com/newrelic/com/google/common/util/concurrent/ListeningScheduledExecutorService.java | 578d2ba00b31da2acb38b8b0203a73af60d15a1a | [] | no_license | PioneerLab/OpenAPM-Android | b125af273b53c2996f2f0cc9261bff7cdc6c6013 | df42726ce7917ddd81135f27c0164a83e47b055c | refs/heads/master | 2021-04-24T22:44:42.934592 | 2017-04-15T09:38:14 | 2017-04-15T09:38:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 868 | java | //
// Decompiled by Procyon v0.5.30
//
package com.newrelic.com.google.common.util.concurrent;
import java.util.concurrent.Callable;
import java.util.concurrent.TimeUnit;
import com.newrelic.com.google.common.annotations.Beta;
import java.util.concurrent.ScheduledExecutorService;
@Beta
public interface ListeningScheduledExecutorService extends ScheduledExecutorService, ListeningExecutorService
{
ListenableScheduledFuture<?> schedule(final Runnable p0, final long p1, final TimeUnit p2);
<V> ListenableScheduledFuture<V> schedule(final Callable<V> p0, final long p1, final TimeUnit p2);
ListenableScheduledFuture<?> scheduleAtFixedRate(final Runnable p0, final long p1, final long p2, final TimeUnit p3);
ListenableScheduledFuture<?> scheduleWithFixedDelay(final Runnable p0, final long p1, final long p2, final TimeUnit p3);
}
| [
"maohongbin01@baidu.com"
] | maohongbin01@baidu.com |
cdefbed41c8750a53e666f40c85dac5aee3affaa | d9a251bbbcd04fb1875521654e10ad6988e9b481 | /model_bt_v1/trunk/org.be.textbe.bt.model.v1.textbt.resource.bt/src-gen/org/be/textbe/bt/v1/textbt/resource/bt/IBtTextDiagnostic.java | f6d678c505b399cbd7927c44554dc924968c7cd1 | [] | no_license | t-ho/textbe | 105ed2a9eff2383cdef0ca0945b25305609361dd | 15e756a2f58a1ed17e5ae782c02628cfac8ddad2 | refs/heads/master | 2021-01-19T15:29:51.557000 | 2013-01-08T09:23:29 | 2013-01-08T09:23:29 | 33,190,489 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,034 | java | /**
* <copyright>
* </copyright>
*
*
*/
package org.be.textbe.bt.v1.textbt.resource.bt;
/**
* An extended diagnostic that gives access to the exact position of the problem
* in a character stream.
*/
public interface IBtTextDiagnostic extends org.eclipse.emf.ecore.resource.Resource.Diagnostic {
/**
* Returns the position of the first character of the problem area.
*/
public int getCharStart();
/**
* Returns the position of the last character of the problem area.
*/
public int getCharEnd();
/**
* Returns the column of the problem area.
*/
public int getColumn();
/**
* Returns the line that contains the problem area.
*/
public int getLine();
/**
* Returns the problem that was found.
*/
public org.be.textbe.bt.v1.textbt.resource.bt.IBtProblem getProblem();
/**
* Checks whether the problem was caused by the given element.
*
* @return true if the problem was caused by <code>element</code>
*/
public boolean wasCausedBy(org.eclipse.emf.ecore.EObject element);
}
| [
"jgsuess@gmail.com@f0832461-7c65-4917-3b45-1a57d2e10441"
] | jgsuess@gmail.com@f0832461-7c65-4917-3b45-1a57d2e10441 |
0776a0082c4f3fab076ebb5b32aa27605e8d404a | e4b45ef336874596a98d225169fe15748724f22a | /动态规划/盒子取球.java | e7bb65adbea89d52dd37e26795a023362baf7459 | [] | no_license | Jamofl/myLeetCode | 1459be44655a54d246dca6a4875fc77a190b1f95 | 572216f676499b305415bf0acc6afed6bcfaf59d | refs/heads/main | 2023-06-29T20:24:53.054332 | 2021-07-13T07:44:29 | 2021-07-13T07:44:29 | 382,751,469 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,365 | java | package 动态规划;
import java.util.Scanner;
/*
题目描述今盒子里有n个小球,A、B两人轮流从盒中取球,每个人都可以看到另一个人取了多少个,
也可以看到盒中还剩下多少个,并且两人都很聪明,不会做出错误的判断。
我们约定:
每个人从盒子中取出的球的数目必须是:1,3,7或者8个。
轮到某一方取球时不能弃权!
A先取球,然后双方交替取球,直到取完。
被迫拿到最后一个球的一方为负方(输方)
请编程确定出在双方都不判断失误的情况下,对于特定的初始球数,A是否能赢?
*/
public class 盒子取球 {
public static boolean[] result = new boolean[10001];
public static int[] lst = new int[] {1,3,7,8};
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int input = sc.nextInt();
for (int n : lst)
result[n + 1] = true;
for (int i = 0; i < result.length ; i ++){
for (int j : lst){
if (i > j){
if (result[i - j] == false){ // 说明A拿了j个球之后,B输了,即A赢了
result[i] = true;
break;
}
}
}
}
System.out.println(result[input]);
}
}
| [
"568920979@qq.com"
] | 568920979@qq.com |
31d3e8a127f6f2da0b8a6d0c39b1ee0096626fab | ee07486efc3e6e648922434d9fac054ffd7ab884 | /qeweb-scms/scms/subprojects/vendormodule/src/main/java/com/qeweb/scm/vendormodule/repository/VendorMaterialSupplyRelDao.java | 51ba56054d1b1415f1bd804bbc3fb3c5e29aa09a | [] | no_license | SrmSystem/SRM-SYETEM | b9c1c8dde92199cefdde99248850172edb0d9607 | 0160dc28acae0e5f9782c02cc37c14bb6a7f4cae | refs/heads/master | 2021-08-31T04:39:57.497664 | 2017-12-20T11:14:51 | 2017-12-20T11:14:51 | 114,876,126 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 4,239 | java | package com.qeweb.scm.vendormodule.repository;
import java.io.Serializable;
import java.util.List;
import java.util.Set;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import com.qeweb.scm.vendormodule.entity.VendorMaterialSupplyRelEntity;
/**
* 供货关系Dao
* @author lw
* 创建时间:2015年6月15日09:27:35
* 最后更新时间:2015年6月15日09:27:40
* 最后更新人:lw
*/
public interface VendorMaterialSupplyRelDao extends PagingAndSortingRepository<VendorMaterialSupplyRelEntity, Serializable>,JpaSpecificationExecutor<VendorMaterialSupplyRelEntity>{
public List<VendorMaterialSupplyRelEntity> findByMaterialRelId(Long materialRelId);
public List<VendorMaterialSupplyRelEntity> findByMaterialRelIdAndVendorId(Long materialRelId,Long vendorId);
@Override
public List<VendorMaterialSupplyRelEntity> findAll(Specification<VendorMaterialSupplyRelEntity> spec);
@Query(value="SELECT COUNT(DISTINCT BRAND_NAME) FROM QEWEB_VENDOR_MAT_SUPPLY_REL WHERE VENDOR_ID =?1",nativeQuery=true)
public int getBrandCountByVendor(Long vendorId);
@Override
public List<VendorMaterialSupplyRelEntity> findAll(Specification<VendorMaterialSupplyRelEntity> spec, Sort sort);
@Query(value="SELECT DISTINCT BRAND_NAME,VENDOR_NAME,VENDOR_ID FROM QEWEB_VENDOR_MAT_SUPPLY_REL WHERE VENDOR_NAME LIKE ?1 AND BRAND_NAME LIKE ?2 ",nativeQuery=true)
public List findlist(String vendor,String material);
@Query(value="SELECT DISTINCT s.BRAND_NAME,s.VENDOR_NAME,s.VENDOR_ID,x.SO_ID,x.CODE FROM QEWEB_VENDOR_MAT_SUPPLY_REL s LEFT JOIN QEWEB_VENDOR_BASE_INFO x ON s.VENDOR_ID=x.ID WHERE s.VENDOR_NAME LIKE ?1 AND s.BRAND_NAME LIKE ?2 AND x.SO_ID in (?3)",nativeQuery=true)
public List findlist2(String vendor,String material,List<Long> sid);
@Query(value="SELECT SUM(SUPPLY_COEFFICIENT) FROM QEWEB_VENDOR_MAT_SUPPLY_REL WHERE MATERIAL_REL_ID = ?1",nativeQuery=true)
public Double getTotalSupplyCoeFFicientByRelId(Long id);
public List<VendorMaterialSupplyRelEntity> findByOrgId(Long orgId);
public List<VendorMaterialSupplyRelEntity> findByVendorIdAndBrandId(Long id, long id2);
public List<VendorMaterialSupplyRelEntity> findByVendorIdAndBrandIdAndFactoryId(long id, Long bid, long id2);
@Query(value="SELECT distinct BRAND_ID from QEWEB_VENDOR_MAT_SUPPLY_REL where ORG_ID=?1",nativeQuery=true)
public List getOrgIdAndBrandId(Long id);
public List<VendorMaterialSupplyRelEntity> findByOrgIdAndBrandId(Long vid,
Long bid, Long fid);
@Query(value="SELECT distinct FACTORY_ID from QEWEB_VENDOR_MAT_SUPPLY_REL where ORG_ID=?1 and BRAND_ID=?2",nativeQuery=true)
public List getOrgIdAndBrandIdAndFactoryId(Long vid, Long bid);
@Query(value="SELECT t.id from (SELECT * from QEWEB_MATERIAL WHERE id IN(SELECT distinct MATERIAL_ID from QEWEB_VENDOR_MAT_SUPPLY_REL where ORG_ID=?1 and BRAND_ID=?2 and FACTORY_ID=?3) and ABOLISHED=0)m LEFT JOIN (SELECT * from QEWEB_MATERIAL_TYPE where name not in(?4))t on m.MATERIAL_TYPE_ID=t.ID",nativeQuery=true)
public List getOrgIdAndBrandIdAndFactoryId(Long vid, Long bid,Long fid, String property);
@Query(value="SELECT t.id from (SELECT * from QEWEB_MATERIAL WHERE id IN(SELECT distinct MATERIAL_ID from QEWEB_VENDOR_MAT_SUPPLY_REL where ORG_ID=?1 and BRAND_ID=?2 and FACTORY_ID=?3) and ABOLISHED=0)m LEFT JOIN QEWEB_MATERIAL_TYPE t on m.MATERIAL_TYPE_ID=t.ID",nativeQuery=true)
public List getOrgIdAndBrandIdAndFactoryId(Long vid, Long bid,Long fid);
@Query(value="select distinct ORG_ID from QEWEB_VENDOR_MAT_SUPPLY_REL where BRAND_ID in (?1) and FACTORY_ID in(?2)",nativeQuery=true)
public List<?> findByBrandIdAndFactoryId(Set<Long> brandId, Set<Long> factoryId);
public List<VendorMaterialSupplyRelEntity> findByMaterialRelIdAndAbolished(
Long id, Integer undeleteFlag);
@Query(value="select distinct FACTORY_ID from QEWEB_VENDOR_MAT_SUPPLY_REL where BRAND_ID in (?1) and FACTORY_ID in(?2)",nativeQuery=true)
public List getOrgIdAndBrandIdInAndFactoryId(Long vid, Set<Long> bid);
}
| [
"60053060@aac.com"
] | 60053060@aac.com |
7e9d885e25fcd731d0a1a25d827e625582bef948 | 8d4a69e281915a8a68b0488db0e013b311942cf4 | /spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/jdbc/ExampleDataJdbcApplication.java | bb0534deb32ea0b7f4a9babe61941680180033ad | [
"Apache-2.0"
] | permissive | yuanmabiji/spring-boot-2.1.0.RELEASE | 798b4c29d25fdcb22fa3a0baf24a08ddd0dfa27e | 6fe0467c9bc95d3849eb2ad5bae04fd9bdee3a82 | refs/heads/master | 2023-03-10T05:20:52.846557 | 2022-03-25T15:53:13 | 2022-03-25T15:53:13 | 252,902,347 | 320 | 107 | Apache-2.0 | 2023-02-22T07:44:16 | 2020-04-04T03:49:51 | Java | UTF-8 | Java | false | false | 1,331 | java | /*
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.boot.test.autoconfigure.data.jdbc;
import javax.sql.DataSource;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType;
/**
* Example {@link SpringBootApplication} used with {@link DataJdbcTest} tests.
*
* @author Andy Wilkinson
*/
@SpringBootApplication
public class ExampleDataJdbcApplication {
@Bean
public DataSource dataSource() {
return new EmbeddedDatabaseBuilder().generateUniqueName(true)
.setType(EmbeddedDatabaseType.HSQL).build();
}
}
| [
"983656956@qq.com"
] | 983656956@qq.com |
64a16c380f3dacd42920ae98c27d299f82b9c17b | e6d2ff4094661cf0bbdcd6d781f3866bd98b7d5b | /app/src/main/java/com/mvp/mvpdemo/base/BaseActivity.java | a12d200904f49daaf061b5da6b3ea48b7820a48c | [
"Apache-2.0"
] | permissive | jaychou2012/MVPDemo-todo-mvp | 90f3fd7a84f804f796060224f8812f781fecbb8d | 58ba08753663522a24e5b1ca3e8eadad0550444e | refs/heads/master | 2021-05-26T05:54:43.030103 | 2020-08-25T13:21:20 | 2020-08-25T13:21:20 | 127,758,115 | 8 | 1 | null | null | null | null | UTF-8 | Java | false | false | 686 | java | package com.mvp.mvpdemo.base;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;
/**
* Created by Tandong on 2018/4/2.
*/
public class BaseActivity extends AppCompatActivity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
public void showToast(String text) {
Toast.makeText(this, text, Toast.LENGTH_SHORT).show();
}
public void gotoActivity(Class tClass) {
Intent intent = new Intent(this, tClass);
startActivity(intent);
}
}
| [
"852041173@qq.com"
] | 852041173@qq.com |
e379b51773ff215810dfc1a97a5d05e99184448b | 9a0bd6f86d6e20eceaf3e444795a71fb839f5a85 | /src/main/LeetCode/easy_to_250/question231/Power_of_Two.java | d08ab552469d585226d9271b113780f2f7e59d68 | [] | no_license | minsuoqingcheng/LintCode | 0472274dd882d17e8f96b5125a415fe19dfb299c | 780f658875d5ffba2b717c9bf3bd63436b017194 | refs/heads/master | 2021-06-04T13:15:58.381943 | 2021-04-06T15:03:30 | 2021-04-06T15:03:30 | 111,205,136 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 213 | java | package main.LeetCode.easy_to_250.question231;
public class Power_of_Two {
public boolean isPowerOfTwo(int n) {
if(n<=0) {
return false;
}
return (n&(n-1)) == 0;
}
}
| [
"1397004810@qq.com"
] | 1397004810@qq.com |
94cae1136c5946d83be579ffe6b20a1cd4e47d11 | 343c983e497e39e9f41dae6edf990b112a0d7320 | /wsdlextensions.jdbc/src/org/netbeans/modules/wsdlextensions/jdbc/builder/dbmodel/DBConnectionDefinition.java | 24db649cb773999a6bb6745fc65f36235365e9cd | [] | no_license | svenreimers/hg-netbeans-org-community-soa | 8857c31aa333cd3a3a393838e78df60268e7cedf | deac77f78021b64866d60965585dcb7efccb8f71 | refs/heads/master | 2023-03-09T11:51:16.023114 | 2011-09-28T10:01:59 | 2011-09-28T10:01:59 | 342,031,636 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,289 | java | /*
* 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 http://www.netbeans.org/cddl.html
* or http://www.netbeans.org/cddl.txt.
*
* When distributing Covered Code, include this CDDL Header Notice in each file
* and include the License file at http://www.netbeans.org/cddl.txt.
* If applicable, add the following below the CDDL Header, with the fields
* enclosed by brackets [] replaced by your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* The Original Software is NetBeans. The Initial Developer of the Original
* Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
* Microsystems, Inc. All Rights Reserved.
*/
/*
*
* Copyright 2005 Sun Microsystems, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.netbeans.modules.wsdlextensions.jdbc.builder.dbmodel;
/**
* Interface for defining specifications for a connection to a data source compatible with the
* DBQueryModel API.
*
* @author
*/
public interface DBConnectionDefinition extends Cloneable {
/**
* Get name defined for this DBConnectionDefinition.
*
* @return DBConnectionDefnition name
*/
public String getName();
/**
* Gets user-defined description, if any, for this DBConnectionDefinition.
*
* @return user-defined description, or null if none was defined
*/
public String getDescription();
/**
* Gets descriptive name, if any, of type of DB data source from which this metadata content was
* derived, e.g., "Oracle9" for an Oracle 9i database, etc. Returns null if content was derived
* from a non-DB source, such such as a flatfile.
*
* @return vendor name of source database; null if derived from non-DB source
*/
public String getDBType();
/**
* Gets URL used to reference and establish a connection to the data source referenced in this
* object.
*
* @return URL pointing to the data source
*/
public String getConnectionURL();
/**
* @return
*/
public String getDriverClass();
/**
* Gets username, if any, used in authenticating a connection to the data source referenced in
* this object.
*
* @return username, if any, used for authentication purposes
*/
public String getUserName();
/**
* Gets password, if any, used in authenticating a connection to the data source referenced in
* this object.
*
* @return password, if any, used for authentication purposes
*/
public String getPassword();
}
| [
"yaroslavskiy@netbeans.org"
] | yaroslavskiy@netbeans.org |
af1b25be34b53690d06fd4d28200f7c1abcd0da9 | 29b6cdefbda758c9c08a3e0edd84926f01429bfc | /src/test/java/com/toy/jeongoo/product/service/ProductCertificationServiceTest.java | 1eff42f3b7d261d595428320db53b25e4ccceca0 | [] | no_license | JeonGoo/JeonGoo_Server | 217248cf4d90b2f0338e2ce92faa03586dca88a4 | eb15082c636ba1e9533095af63a50f96e488b481 | refs/heads/develop | 2023-05-27T19:45:31.246765 | 2021-06-08T05:28:19 | 2021-06-08T05:28:19 | 346,256,268 | 1 | 0 | null | 2021-06-06T07:20:38 | 2021-03-10T06:32:06 | Java | UTF-8 | Java | false | false | 3,432 | java | package com.toy.jeongoo.product.service;
import com.toy.jeongoo.product.api.dto.request.ProductCertificationFailedRequest;
import com.toy.jeongoo.product.api.dto.request.ProductGradeUpdateRequest;
import com.toy.jeongoo.product.model.Product;
import com.toy.jeongoo.product.model.ProductGrade;
import com.toy.jeongoo.product.model.status.CertificationStatus;
import com.toy.jeongoo.product.model.status.UseStatus;
import com.toy.jeongoo.product.repository.ProductRepository;
import com.toy.jeongoo.user.model.Address;
import com.toy.jeongoo.user.model.Gender;
import com.toy.jeongoo.user.model.User;
import com.toy.jeongoo.user.repository.UserRepository;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import java.util.ArrayList;
import static org.assertj.core.api.Assertions.assertThat;
@SpringBootTest
class ProductCertificationServiceTest {
@Autowired
private UserRepository userRepository;
@Autowired
private ProductRepository productRepository;
@Autowired
private ProductCertificationService productCertificationService;
private User user;
private Product product;
@BeforeEach
public void setUp() {
init();
}
@Test
@DisplayName("제품 인증 상태를 COMPLETED로 바꾼다.")
public void certifyTest() throws Exception {
//given
ProductGrade productGrade = ProductGrade.INTERMEDIATE;
Long productId = product.getId();
//when
final Long certifyProductId = productCertificationService.certify(productId);
final Product product = productRepository.findById(certifyProductId).get();
//then
assertThat(product.getCertificationStatus()).isEqualTo(CertificationStatus.COMPLETED);
assertThat(product.getGrade()).isEqualTo(productGrade);
}
@Test
@DisplayName("제품 인증 상태를 FAILED로 바꾼다.")
public void failedTest() throws Exception {
//given
String failedReason = "올바른 상품이 아닙니다.";
ProductCertificationFailedRequest certificationFailedRequest = new ProductCertificationFailedRequest(failedReason);
Long productId = product.getId();
//when
final Long failedProductId = productCertificationService.failed(productId, certificationFailedRequest);
final Product product = productRepository.findById(failedProductId).get();
//then
assertThat(product.getCertificationStatus()).isEqualTo(CertificationStatus.FAILED);
assertThat(product.getCertificationFailedReason()).isEqualTo(failedReason);
}
private void init() {
saveUser();
saveProduct();
}
private void saveUser() {
user = User.builder()
.name("user")
.password("1234")
.address(new Address("중구", "102호"))
.email("test@test.com")
.gender(Gender.MALE)
.phoneNumber("010-1234-5678")
.build();
userRepository.save(user);
}
private void saveProduct() {
product = new Product("상품", 10000L, "12345",
"좋은 상품", UseStatus.USED, user, new ArrayList<>());
productRepository.save(product);
}
} | [
"rlrlvh@naver.com"
] | rlrlvh@naver.com |
0748c069272f4039f77c96984b1e9903f9d69cc6 | 44abee7981ec47704f59d0cb9345efc4b909ad4f | /src/chap09/textbook/s090301/A.java | f67f09e85e111c6bc4c3dd894942cb8cf79b53a9 | [] | no_license | hyojjjin/java20200929 | ad24e96c2c3837f695951be783c59418559eceee | 8a2d7b34bc814465c83ae0efa0bd59f29205c738 | refs/heads/master | 2023-03-11T22:56:51.890496 | 2021-03-02T01:08:15 | 2021-03-02T01:08:15 | 299,485,576 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 482 | java | package chap09.textbook.s090301;
public class A {
//인스턴스 필드
B field1 = new B();
C field2 = new C();
//인스턴스 메소드
void method1() {
B var1 = new B();
C var2 = new C();
}
//정적 필드 초기화
//static B field3 = new B();
static C field4 = new C();
//정적 메소드
static void method2() {
//B var1 = new b();
C var2 = new C();
}
//인스턴스 멤버 클래스
class B {}
//정적 멤버 클래스
static class C {}
}
| [
"hjjin2_@naver.com"
] | hjjin2_@naver.com |
4863260a23a2f8da9ef89fe34d75d11b9b679347 | 88d785ca23def4ca733f7d52a146bc8d34c77429 | /src/dev/zt/UpliftedVFFV/inventory/consumables/FruitJuiceRed.java | d106913844e7a498b1334b1d04c3cece964c91c4 | [] | no_license | Donpommelo/Uplifted.VFFV | 30fe1e41a9aeefee16c1e224388af6ce55ebfcce | 99b63eb2a00666eb4fdf84ac20cebebefad1a3dc | refs/heads/master | 2020-12-24T17:44:19.147662 | 2016-06-01T21:46:13 | 2016-06-01T21:46:13 | 33,390,964 | 0 | 0 | null | 2015-08-25T01:57:41 | 2015-04-04T01:58:48 | Java | UTF-8 | Java | false | false | 1,193 | java | package dev.zt.UpliftedVFFV.inventory.consumables;
import dev.zt.UpliftedVFFV.inventory.Item;
import dev.zt.UpliftedVFFV.party.Schmuck;
import dev.zt.UpliftedVFFV.states.BattleState;
import dev.zt.UpliftedVFFV.statusEffects.Stats.BonusStatBuff;
public class FruitJuiceRed extends Item{
static int id = 95;
static String name = "Red Fruit Juice";
static boolean menu = false;
static boolean battle = true;
static boolean consume = true;
static boolean target = true;
static int value = 35;
static int slot = 0;
static int lvlReq = 5;
static String descr="A bottle of juice from a red fruit. Technically, tomato is a fruit.";
static String descrShort="Boosts Red Resistance";
public FruitJuiceRed() {
super(id,name,menu,battle,consume,target,descr,descrShort,value,slot,lvlReq);
}
public void use(Schmuck perp, Schmuck vic, BattleState bs){
bs.bp.stm.addStatus(vic, new BonusStatBuff(3,19,0.5,perp,vic,25));
}
public String useName(Schmuck perp, Schmuck vic, BattleState bs){
if(perp.getName().equals(vic.getName())){
return vic.getName()+" drinks a Red Fruit Juice!";
}
else{
return perp.getName()+" gives "+vic.getName()+" a Red Fruit Juice!";
}
}
}
| [
"donpommelo@gmail"
] | donpommelo@gmail |
79561f9173580d42c57d381e25276208a6351c90 | fe02f3a48cd516469abce09fff7255e50279dbbb | /dcache-nfs/src/main/java/org/dcache/nfs/v3/xdr/set_uid3.java | 9bf43cc88dbc80476c2727d5d2c888e00e2bf9c6 | [
"MIT"
] | permissive | devsunny/app-galleries | 149cd74d04f2547093e20c34ddaf86be289e2cce | 98aed1b18031ded93056ad12bda5b2c62c40a85b | refs/heads/master | 2022-12-21T05:20:40.210246 | 2018-09-20T01:40:20 | 2018-09-20T01:40:20 | 21,674,470 | 0 | 1 | MIT | 2022-12-16T06:42:58 | 2014-07-10T01:20:03 | Java | UTF-8 | Java | false | false | 1,684 | java | /*
* Copyright (c) 2009 - 2012 Deutsches Elektronen-Synchroton,
* Member of the Helmholtz Association, (DESY), HAMBURG, GERMANY
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2 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 Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this program (see the file COPYING.LIB for more
* details); if not, write to the Free Software Foundation, Inc.,
* 675 Mass Ave, Cambridge, MA 02139, USA.
*/
package org.dcache.nfs.v3.xdr;
import org.dcache.xdr.*;
import java.io.IOException;
public class set_uid3 implements XdrAble {
public boolean set_it;
public uid3 uid;
public set_uid3() {
}
public set_uid3(XdrDecodingStream xdr)
throws OncRpcException, IOException {
xdrDecode(xdr);
}
public void xdrEncode(XdrEncodingStream xdr)
throws OncRpcException, IOException {
xdr.xdrEncodeBoolean(set_it);
if ( set_it ) {
uid.xdrEncode(xdr);
}
}
public void xdrDecode(XdrDecodingStream xdr)
throws OncRpcException, IOException {
set_it = xdr.xdrDecodeBoolean();
if ( set_it ) {
uid = new uid3(xdr);
}
}
}
// End of set_uid3.java
| [
"sunnyliu2@gmail.com"
] | sunnyliu2@gmail.com |
cb67f2565d2f0a9be7ff5ef61e5a1572166aecce | d47fccd04dfdcc65fbedafc33b8ef765c792f7e4 | /graphql-maven-plugin-logic/src/test/java/com/graphql_java_generator/plugin/compilation_tests/AllGraphQLCasesClientPojoTest.java | 03d67ccd7235db8de892a9bfb3e139a32e7e0390 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | crypitor/graphql-maven-plugin-project | b7450ab07c90931d95486686d5f321d9dc44273d | ef9035154997b617e9eebc9eff37a2b64ce4ad4f | refs/heads/master | 2023-07-16T23:19:44.006171 | 2021-08-30T20:27:52 | 2021-08-30T20:27:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 679 | java | package com.graphql_java_generator.plugin.compilation_tests;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.BeforeEach;
import graphql.mavenplugin_notscannedbyspring.AllGraphQLCases_ClientPojo_SpringConfiguration;
class AllGraphQLCasesClientPojoTest extends AbstractIntegrationTest {
public AllGraphQLCasesClientPojoTest() {
super(AllGraphQLCases_ClientPojo_SpringConfiguration.class);
}
@BeforeEach
public void setUp() {
graphqlTestHelper.checkSchemaStringProvider("allGraphQLCases*.graphqls");
}
@Override
protected void checkNbGeneratedClasses(int nbGeneratedClasses) {
assertEquals(37, nbGeneratedClasses);
}
}
| [
"etienne_sf@users.sf.net"
] | etienne_sf@users.sf.net |
b624c4b59182859b5e05d446565a8ce828437606 | bc2f576ade5ae76a7ab76981654c3207267410ae | /viritin/src/test/java/org/vaadin/viritin/it/issues/Issue309PojoForm.java | f0b007adf882602293454c7289b51317544b6610 | [
"Apache-2.0"
] | permissive | viritin/viritin | 8303d09d7e2e9bcd9b443e882015e62750c9d288 | d59548d2ef42e57d178ac9569dbf949434f40f86 | refs/heads/master | 2022-12-13T19:57:06.340037 | 2022-09-02T07:22:48 | 2022-09-02T07:22:48 | 16,433,054 | 168 | 115 | Apache-2.0 | 2022-11-28T15:02:11 | 2014-02-01T11:46:49 | Java | UTF-8 | Java | false | false | 1,378 | java | package org.vaadin.viritin.it.issues;
import com.vaadin.server.VaadinRequest;
import org.vaadin.viritin.fields.IntegerField;
import org.vaadin.viritin.form.AbstractForm;
import org.vaadin.viritin.form.AbstractForm.ResetHandler;
import com.vaadin.ui.Component;
import com.vaadin.ui.FormLayout;
import com.vaadin.ui.UI;
public class Issue309PojoForm extends UI {
public Issue309PojoForm() {
}
@Override
protected void init(VaadinRequest request) {
AbstractForm<Pojo> form = new AbstractForm<Pojo>(Pojo.class) {
private static final long serialVersionUID = 1251886098275380006L;
IntegerField myInteger = new IntegerField("My Integer");
@Override
protected Component createContent() {
FormLayout layout = new FormLayout(myInteger, getToolbar());
return layout;
}
};
form.setResetHandler((Pojo entity) -> {
form.setEntity(null);
});
form.setEntity(new Pojo());
setContent(form);
}
public class Pojo {
private Integer myInteger;
public Pojo() {
myInteger = null;
}
public Integer getMyInteger() {
return myInteger;
}
public void setMyInteger(Integer myInteger) {
this.myInteger = myInteger;
}
}
}
| [
"matti@vaadin.com"
] | matti@vaadin.com |
e5a914f1d04a90d08d37ff5dd435535529ddd001 | dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9 | /data_defect4j/preprossed_method_corpus/Chart/2/org/jfree/chart/JFreeChart_createBufferedImage_1432.java | 57ad04def89da03f88c19aeff36b328d8ad1d016 | [] | 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,412 | java |
org jfree chart
chart implement java api current version
support bar chart line chart pie chart plot includ time
seri data
free chart jfreechart coordin object achiev aim
draw chart java graphic devic list link titl object
includ chart' legend link plot
link org jfree data gener dataset plot turn manag
domain axi rang axi
link chart panel chartpanel displai chart gui
link chart factori chartfactori method creat
'readi made' chart
chart panel chartpanel
chart factori chartfactori
titl
plot
free chart jfreechart drawabl
creat return buffer imag chart drawn
param imag width imagewidth imag width
param imag height imageheight imag height
param draw width drawwidth width draw chart scale
fit imag
param draw height drawheight height draw chart scale
fit imag
param info option object collect chart dimens entiti
inform
buffer imag
buffer imag bufferedimag creat buffer imag createbufferedimag imag width imagewidth
imag height imageheight
draw width drawwidth
draw height drawheight
chart render info chartrenderinginfo info
buffer imag bufferedimag imag buffer imag bufferedimag imag width imagewidth imag height imageheight
buffer imag bufferedimag type int argb
graphics2 graphics2d imag creat graphic creategraph
scale scalex imag width imagewidth draw width drawwidth
scale scalei imag height imageheight draw height drawheight
affin transform affinetransform affin transform affinetransform scale instanc getscaleinst scale scalex scale scalei
transform
draw rectangle2 rectangle2d doubl draw width drawwidth draw height drawheight
info
dispos
imag
| [
"hvdthong@gmail.com"
] | hvdthong@gmail.com |
5f340a5adb36ec8c7268b2bdf2c64b8360c62652 | 4b12f95ff114ca7ac9f1d68ad375dadf6077874e | /src/futureAndCallable/test/Run2.java | d0b0942cc0b5c5cdd89b9e6f1953d2ed4b86e10c | [] | no_license | clgao/HelloWorld | 8dfab1d90a727697ef643e278bbbccbb37aa6138 | 02f4f4db6f20f7f2287860b83c43b579d9ac53e1 | refs/heads/master | 2020-05-27T16:09:31.399151 | 2019-05-26T14:47:26 | 2019-05-26T14:47:26 | 188,694,001 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 859 | java | package futureAndCallable.test;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
public class Run2 {
public static void main(String[] args) {
try {
Runnable runnable = new Runnable() {
@Override
public void run() {
System.out.println("打印的信息");
}
};
ExecutorService executorService = Executors.newCachedThreadPool();
Future future = executorService.submit(runnable);
System.out.println(future.get()+" "+future.isDone());
} catch (ExecutionException e) {
e.printStackTrace();
} catch (InterruptedException i) {
i.printStackTrace();
}
}
} | [
"you@example.com"
] | you@example.com |
b3bf5ce34517f8cd23d27f328531251c49f2c084 | 254f320e318400965d30d8117e74936a52d9b99e | /friendsystem-spigot/src/main/java/ch/dkrieger/friendsystem/spigot/player/bungeecord/SpigotBungeeCordPlayerManager.java | 9752f8765b5d6f4b686379bbb9aad7f54d89075b | [] | no_license | DKProjectV1/DKFriends | 64a3f7bdf5d5ea81d446f88995624abb1e96e331 | 4acf80b2c1640eb7a390ade19318711a263fa920 | refs/heads/master | 2022-08-22T01:18:00.773807 | 2018-11-29T19:04:57 | 2018-11-29T19:04:57 | 157,832,251 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,961 | java | package ch.dkrieger.friendsystem.spigot.player.bungeecord;
import ch.dkrieger.friendsystem.lib.FriendSystem;
import ch.dkrieger.friendsystem.lib.player.FriendPlayer;
import ch.dkrieger.friendsystem.lib.player.FriendPlayerManager;
import ch.dkrieger.friendsystem.lib.player.OnlineFriendPlayer;
import ch.dkrieger.friendsystem.lib.utils.Document;
import ch.dkrieger.friendsystem.spigot.SpigotFriendSystemBootstrap;
import java.util.*;
/*
*
* * Copyright (c) 2018 Davide Wietlisbach on 21.11.18 20:06
*
*/
public class SpigotBungeeCordPlayerManager extends FriendPlayerManager {
private Map<UUID,SpigotBungeeCordOnlinePlayer> onlinePlayers;
public SpigotBungeeCordPlayerManager() {
this.onlinePlayers = new LinkedHashMap<>();
}
@Override
public Collection<OnlineFriendPlayer> getLoadedOnlinePlayers() {
return new LinkedList<>(this.onlinePlayers.values());
}
@Override
public OnlineFriendPlayer getOnlinePlayer(UUID uuid) {
return onlinePlayers.get(uuid);
}
@Override
public OnlineFriendPlayer getOnlinePlayer(String name) {
Iterator<SpigotBungeeCordOnlinePlayer> iterator = new ArrayList<>(this.onlinePlayers.values()).iterator();
SpigotBungeeCordOnlinePlayer player = null;
while(iterator.hasNext() && (player= iterator.next()) != null) return player;
return null;
}
@Override
public void updatePlayerSync(FriendPlayer player) {
SpigotFriendSystemBootstrap.getInstance().getBungeeCordConnection()
.send("updatePlayer",new Document().append("uuid",player.getUUID()));
}
@Override
public void removeFromCache(UUID uuid) {
this.onlinePlayers.remove(uuid);
}
public void updateOnlinePlayers(SpigotBungeeCordOnlinePlayer player){
this.onlinePlayers.put(player.getUUID(),player);
}
public void unregisterOnlinePlayer(UUID uuid){
this.onlinePlayers.remove(uuid);
}
} | [
"davide.wietlisbach@icloud.com"
] | davide.wietlisbach@icloud.com |
b7921a9d045fcb0b01d45591b24b23d0f15f3bef | 9254e7279570ac8ef687c416a79bb472146e9b35 | /ehpc-20180412/src/main/java/com/aliyun/ehpc20180412/models/DescribeJobResponseBody.java | 40d3169f4dcde0915e4c0e168db49128cf9a7ff4 | [
"Apache-2.0"
] | permissive | lquterqtd/alibabacloud-java-sdk | 3eaa17276dd28004dae6f87e763e13eb90c30032 | 3e5dca8c36398469e10cdaaa34c314ae0bb640b4 | refs/heads/master | 2023-08-12T13:56:26.379027 | 2021-10-19T07:22:15 | 2021-10-19T07:22:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,599 | java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.ehpc20180412.models;
import com.aliyun.tea.*;
public class DescribeJobResponseBody extends TeaModel {
@NameInMap("RequestId")
public String requestId;
@NameInMap("Message")
public DescribeJobResponseBodyMessage message;
public static DescribeJobResponseBody build(java.util.Map<String, ?> map) throws Exception {
DescribeJobResponseBody self = new DescribeJobResponseBody();
return TeaModel.build(map, self);
}
public DescribeJobResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public DescribeJobResponseBody setMessage(DescribeJobResponseBodyMessage message) {
this.message = message;
return this;
}
public DescribeJobResponseBodyMessage getMessage() {
return this.message;
}
public static class DescribeJobResponseBodyMessage extends TeaModel {
@NameInMap("JobInfo")
public String jobInfo;
public static DescribeJobResponseBodyMessage build(java.util.Map<String, ?> map) throws Exception {
DescribeJobResponseBodyMessage self = new DescribeJobResponseBodyMessage();
return TeaModel.build(map, self);
}
public DescribeJobResponseBodyMessage setJobInfo(String jobInfo) {
this.jobInfo = jobInfo;
return this;
}
public String getJobInfo() {
return this.jobInfo;
}
}
}
| [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
75cef5ca91df6e00d3618ced22823372262ed6b1 | 5afc1e039d0c7e0e98216fa265829ce2168100fd | /his-finance/src/main/java/cn/honry/finance/medicinelist/vo/UndrugAndWare.java | 25964a035179b53c267ed44b4069f8911a4a011e | [] | no_license | konglinghai123/his | 66dc0c1ecbde6427e70b8c1087cddf60f670090d | 3dc3eb064819cb36ce4185f086b25828bb4bcc67 | refs/heads/master | 2022-01-02T17:05:27.239076 | 2018-03-02T04:16:41 | 2018-03-02T04:16:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,179 | java | package cn.honry.finance.medicinelist.vo;
//非药品与库存VO
public class UndrugAndWare {
//名字
private String undrugName;
//代码
private String undrugCode;
//最小费用代码
private String undrugMinCode;
//规格
private String spec;
//价格
private Double defaultprice;
//单位
private String unit;
//自定义吗
private String undrugInputcode;
//拼音码
private String pin;
//五笔码
private String wb;
//注意事项
private String undrugNotes;
//状态
private Double sum;
//是否确认
private Integer undrugIssubmit;
//执行科室
private String undrugDept;
//系统类别
private String undrugSystype;
//条数
private Integer totle;
//组套号
private String groupNo;
/**是否需要确认**/
private Integer issubmit;
public String getGroupNo() {
return groupNo;
}
public void setGroupNo(String groupNo) {
this.groupNo = groupNo;
}
public Integer getTotle() {
return totle;
}
public void setTotle(Integer totle) {
this.totle = totle;
}
public String getUndrugSystype() {
return undrugSystype;
}
public void setUndrugSystype(String undrugSystype) {
this.undrugSystype = undrugSystype;
}
public String getUndrugDept() {
return undrugDept;
}
public void setUndrugDept(String undrugDept) {
this.undrugDept = undrugDept;
}
public Integer getUndrugIssubmit() {
return undrugIssubmit;
}
public void setUndrugIssubmit(Integer undrugIssubmit) {
this.undrugIssubmit = undrugIssubmit;
}
public String getUndrugName() {
return undrugName;
}
public void setUndrugName(String undrugName) {
this.undrugName = undrugName;
}
public String getUndrugCode() {
return undrugCode;
}
public void setUndrugCode(String undrugCode) {
this.undrugCode = undrugCode;
}
public String getUndrugMinCode() {
return undrugMinCode;
}
public void setUndrugMinCode(String undrugMinCode) {
this.undrugMinCode = undrugMinCode;
}
public String getSpec() {
return spec;
}
public void setSpec(String spec) {
this.spec = spec;
}
public Double getDefaultprice() {
return defaultprice;
}
public void setDefaultprice(Double defaultprice) {
this.defaultprice = defaultprice;
}
public String getUnit() {
return unit;
}
public void setUnit(String unit) {
this.unit = unit;
}
public String getUndrugInputcode() {
return undrugInputcode;
}
public void setUndrugInputcode(String undrugInputcode) {
this.undrugInputcode = undrugInputcode;
}
public String getPin() {
return pin;
}
public void setPin(String pin) {
this.pin = pin;
}
public String getWb() {
return wb;
}
public void setWb(String wb) {
this.wb = wb;
}
public String getUndrugNotes() {
return undrugNotes;
}
public void setUndrugNotes(String undrugNotes) {
this.undrugNotes = undrugNotes;
}
public Double getSum() {
return sum;
}
public void setSum(Double sum) {
this.sum = sum;
}
public Integer getIssubmit() {
return issubmit;
}
public void setIssubmit(Integer issubmit) {
this.issubmit = issubmit;
}
}
| [
"user3@163.com"
] | user3@163.com |
15cb7e42c03db2feb8d1ffcb34e09736d34ae96a | 43bf460c82c006e5e916c07d8645aad5c675b84b | /ken-spring-3.0/src/main/java/org/springframework/web/servlet/tags/form/HiddenInputTag.java | b241ae31529289855a9fd2592796b2cbb4b7e881 | [] | no_license | cghr/cme-2.5 | 31086f77e76b0357cc9e4134b25d73c5220774f3 | c87d64495d77dad182e2bb99e024fa3295861b92 | refs/heads/master | 2016-09-09T19:47:25.182951 | 2014-04-30T05:53:00 | 2014-04-30T05:53:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,025 | java | /* 1: */ package org.springframework.web.servlet.tags.form;
/* 2: */
/* 3: */ import javax.servlet.jsp.JspException;
/* 4: */
/* 5: */ public class HiddenInputTag
/* 6: */ extends AbstractHtmlElementTag
/* 7: */ {
/* 8: */ protected int writeTagContent(TagWriter tagWriter)
/* 9: */ throws JspException
/* 10: */ {
/* 11:44 */ tagWriter.startTag("input");
/* 12:45 */ writeDefaultAttributes(tagWriter);
/* 13:46 */ tagWriter.writeAttribute("type", "hidden");
/* 14:47 */ String value = getDisplayString(getBoundValue(), getPropertyEditor());
/* 15:48 */ tagWriter.writeAttribute("value", processFieldValue(getName(), value, "hidden"));
/* 16:49 */ tagWriter.endTag();
/* 17:50 */ return 0;
/* 18: */ }
/* 19: */ }
/* Location: Z:\home\sagpatke\cme-workspace\cme\ken-spring-3.0\ken-spring-3.0.jar
* Qualified Name: org.springframework.web.servlet.tags.form.HiddenInputTag
* JD-Core Version: 0.7.0.1
*/ | [
"sagarpatke@gmail.com"
] | sagarpatke@gmail.com |
bb4be8009ed99cb268a85259fa52fb25a8b7c647 | 15c93b5f08e062a53789e81236acc6a5144468d8 | /src/main/java/com/newland/posmall/base/service/EmailServiceTarget.java | 7357e9678c7b5eab499ccee165e5eaf4ae1e6f13 | [] | no_license | itowne/posmall | 85e3d0ce96f7576483addfbad0e94bc870494ae8 | ea8cf8b503b1f8f7349672de5ffd0363a0448ccc | refs/heads/master | 2021-01-20T21:59:11.331002 | 2015-08-30T15:56:34 | 2015-08-30T15:56:34 | 41,634,193 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,675 | java | package com.newland.posmall.base.service;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.util.List;
import org.apache.commons.io.IOUtils;
import org.ohuyo.rapid.base.entity.MailContent;
import org.ohuyo.rapid.base.entity.MailServerInfo;
import org.ohuyo.rapid.base.entity.TsysParam;
import org.ohuyo.rapid.base.service.MailSender;
import org.ohuyo.rapid.base.service.TsysParamService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.mysql.jdbc.StringUtils;
import com.newland.posmall.base.exception.BizErrCode;
import com.newland.posmall.base.exception.BizException;
import com.newland.posmall.bean.backmanage.MessageQueue;
import com.newland.posmall.bean.backmanage.NotifyStat;
import com.newland.posmall.bean.backmanage.NotifyType;
import com.newland.posmall.bean.dict.SysParamType;
@Service("emailServiceTarget")
public class EmailServiceTarget implements InitializingBean {
private MailServerInfo mailServerInfo;
private static Logger logger = LoggerFactory.getLogger(EmailService.class);
@Autowired
private MessageQueueService queueService;
@Autowired
private TsysParamService sysParamService;
@Transactional
public void sendMail(MailContent content, String tgtAddr) throws BizException{
MessageQueue queue = new MessageQueue();
queue.setTarget(tgtAddr);
queue.setSubject(content.getSubject());
queue.setToUser(tgtAddr);
try {
queue.setContent(StringUtils.getBytes(content.getContent(), "UTF-8"));
} catch (UnsupportedEncodingException e1) {
logger.error("字符串转换错误", e1);
queue.setContent(StringUtils.getBytes(content.getContent()));
}
queue.setNotifyType(NotifyType.EMAIL);
queue.setStat(NotifyStat.PENDING);
queue.setAttachment(objectToByteArray(content.getAttachFiles()));
this.queueService.save(queue);
try{
MailSender.sendHtmlMail(mailServerInfo, content, tgtAddr);
queue.setStat(NotifyStat.SUCCESS);
}catch(Throwable e){
logger.error("发送邮件失败", e);
queue.setStat(NotifyStat.ERROR);
queue.setMessage(e.getMessage());
throw new BizException(BizErrCode.SEND_MAIL_ERR, "发送邮件失败", e);
}finally{
this.queueService.update(queue);
}
}
@Transactional
public void retry(MessageQueue queue){
if (queue.getGenTime().compareTo(new Date()) < 1){
queue.setStat(NotifyStat.CANCEL);
}
MailContent content = new MailContent();
try {
content.setContent(new String(queue.getContent(), "UTF-8"));
} catch (UnsupportedEncodingException e) {
content.setContent(new String(queue.getContent()));
}
content.setSubject(content.getSubject());
String tgtAddr = queue.getTarget();
content.setAttachFiles((List<File>)this.byteArrayToObject(queue.getAttachment()));
try{
MailSender.sendHtmlMail(mailServerInfo, content, tgtAddr);
queue.setStat(NotifyStat.SUCCESS);
}catch(Exception e){
queue.setStat(NotifyStat.ERROR);
queue.setMessage(e.getMessage());
}finally{
this.queueService.update(queue);
}
}
public static byte[] objectToByteArray(Object obj) {
byte[] bytes = null;
ByteArrayOutputStream bo = null;
ObjectOutputStream oo = null;
try {
bo = new ByteArrayOutputStream();
oo = new ObjectOutputStream(bo);
oo.writeObject(obj);
bytes = bo.toByteArray();
} catch (Exception e) {
logger.error("对象转数组失败", e);
}finally{
IOUtils.closeQuietly(bo);
IOUtils.closeQuietly(oo);
}
return bytes;
}
public static Object byteArrayToObject(byte[] data) {
Object obj = null;
ByteArrayInputStream bi = null;
ObjectInputStream oi = null;
try {
bi = new ByteArrayInputStream(data);
oi = new ObjectInputStream(bi);
obj = oi.readObject();
} catch (Exception e) {
logger.error("数组转对象失败", e);
}finally{
IOUtils.closeQuietly(bi);
IOUtils.closeQuietly(oi);
}
return obj;
}
/**
* 发送邮件
*
* @param content
* @param subject
* @param toAddr
* @throws BizException
*/
public void sendEmail(String content, String subject, String toAddr)
throws BizException {
MailContent mctx = new MailContent();
mctx.setContent(content);
mctx.setSubject(subject);
this.sendMail(mctx, toAddr);
}
@Override
public void afterPropertiesSet() throws Exception {
// TODO 需要改为从系统参数表中读取
TsysParam param = this.sysParamService.getTsysParam(SysParamType.EMAIL_CONF.name(), "FROM_ADDR");
if (param == null) throw new RuntimeException("邮件发送人未配置");
String fromAddr = param.getValue();
String userName = fromAddr.substring(0, fromAddr.indexOf("@"));
param = this.sysParamService.getTsysParam(SysParamType.EMAIL_CONF.name(), "MAIL_PWD");
if (param == null) throw new RuntimeException("邮件发送人未配置");
String passwd = param.getValue();
mailServerInfo = new MailServerInfo();
mailServerInfo.setFromAddress(fromAddr);
mailServerInfo.setMailServerHost("email.newlandcomputer.com");
mailServerInfo.setMailServerPort("25");
mailServerInfo.setUserName(userName);
mailServerInfo.setPassword(passwd);
mailServerInfo.setValidate(true);
}
}
| [
"17525543@qq.com"
] | 17525543@qq.com |
bc186803ed0877ea64bd5cfd71c1e570739f6d62 | cee2f0af1bda14a5fa59059d7805b6a225071b99 | /match/src/main/java/com/zbmf/StocksMatch/listener/IStockRemarkView.java | ce682bdeab9dc9a010fc5a450a77760aa8e4d662 | [] | no_license | pengqun1123/StockGroup | a30a6ea170d16300a3d2cae3e5a49933aeebbc19 | 64de8dbc188232f4b6277a56f61279d238b17776 | refs/heads/master | 2021-10-01T00:33:33.087802 | 2018-11-26T09:38:17 | 2018-11-26T09:38:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 446 | java | package com.zbmf.StocksMatch.listener;
import com.zbmf.StocksMatch.bean.StockRemarkListBean;
import com.zbmf.worklibrary.baseview.BaseView;
/**
* Created by pq
* on 2018/3/30.
*/
public interface IStockRemarkView extends BaseView {
void refreshStockRemarkList(StockRemarkListBean.Result o);
void refreshStockRemarkListStatus(String msg);
void addStockRemarkStatus(String msg);
void deleteStockRemarkStatus(String msg);
}
| [
"lulu.natan@gmail.com"
] | lulu.natan@gmail.com |
f2fa802d036365e6a5a5351a5668ca4dcc18f1b2 | 78f284cd59ae5795f0717173f50e0ebe96228e96 | /factura-negocio/src/cl/stotomas/factura/negocio/training_9/copy3/copy2/TestingError.java | a6d3c0179cef72b056aee9fa3534baf2bda38fac | [] | no_license | Pattricio/Factura | ebb394e525dfebc97ee2225ffc5fca10962ff477 | eae66593ac653f85d05071b6ccb97fb1e058502d | refs/heads/master | 2020-03-16T03:08:45.822070 | 2018-05-07T15:29:25 | 2018-05-07T15:29:25 | 132,481,305 | 0 | 0 | null | null | null | null | ISO-8859-1 | Java | false | false | 1,200 | java | package cl.stotomas.factura.negocio.training_9.copy3.copy2;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
//import cl.stomas.factura.negocio.testing.TestingFinal.Echo;
public class TestingError {
public static String decryptMessage(final byte[] message, byte[] secretKey)
{
try {
// CÓDIGO VULNERABLE
final SecretKeySpec KeySpec = new SecretKeySpec(secretKey, "DES");
final Cipher cipher = Cipher.getInstance("DES/ECB/PKCS5Padding");
cipher.init(Cipher.DECRYPT_MODE, KeySpec);
// RECOMENDACIÓN VERACODE
// final Cipher cipher = Cipher.getInstance("DES...");
// cipher.init(Cipher.DECRYPT_MODE, KeySpec);
return new String(cipher.doFinal(message));
}
catch(Exception e)
{
e.printStackTrace();
}
return null;
}
class Echo {
// Control de Proceso
// Posible reemplazo de librería por una maliciosa
// Donde además se nos muestra el nombre explícito de esta.
public native void runEcho();
{
System.loadLibrary("echo"); // Se carga librería
}
public void main(String[] args)
{
new Echo().runEcho();
}
}
} | [
"Adriana Molano@DESKTOP-GQ96FK8"
] | Adriana Molano@DESKTOP-GQ96FK8 |
45f4da247db09b8cc121f4a1fa66fccd1eff2fc1 | b9559e00a99cc08ee72efb30d3a04166054651e2 | /Java/AHEAD/syntax/DeclNameListElem.java | eda138cd021ce99cee6270f2883fb31a7b3bbdde | [] | no_license | joliebig/featurehouse_fstcomp_examples | d4dd7d90a77ae3b20b6118677a17001fdb53ee93 | 20dd7dc9a807ec0c20939eb5c6e00fcc1ce19d20 | refs/heads/master | 2021-01-19T08:08:37.797995 | 2013-01-29T13:48:20 | 2013-01-29T13:48:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 679 | java | // Automatically generated code. Edit at your own risk!
// Generated by bali2jak v2002.09.03.
public class DeclNameListElem extends AstListNode {
public AstToken getCOMMA () {
return (AstToken) tok [0] ;
}
public QName getQName () {
return (QName) arg [0] ;
}
public DeclNameListElem setParms (AstToken tok0, QName arg0) {
tok = new AstToken [1] ;
tok [0] = tok0 ; /* COMMA */
return setParms (arg0) ; /* QName */
}
public DeclNameListElem setParms (QName arg0) {
super.setParms (arg0) ; /* QName */
return (DeclNameListElem) this ;
}
}
| [
"apel"
] | apel |
49308cea29f6554f219b3e7b100d08ee47351ada | 7773ea6f465ffecfd4f9821aad56ee1eab90d97a | /java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/returnSeparatedFromComputation/beforeGenericTypeCompatible.java | f1e2fced219d910cd045f21d0f0dce0b6062af8c | [
"Apache-2.0"
] | permissive | aghasyedbilal/intellij-community | 5fa14a8bb62a037c0d2764fb172e8109a3db471f | fa602b2874ea4eb59442f9937b952dcb55910b6e | refs/heads/master | 2023-04-10T20:55:27.988445 | 2020-05-03T22:00:26 | 2020-05-03T22:26:23 | 261,074,802 | 2 | 0 | Apache-2.0 | 2020-05-04T03:48:36 | 2020-05-04T03:48:35 | null | UTF-8 | Java | false | false | 318 | java | // "Move 'return' closer to computation of the value of 'raw'" "true"
import java.util.*;
class T {
List<String> f(boolean b) {
List raw = null;
if (b) {
raw = g();
}
re<caret>turn raw;
}
List<String> g() {
return Collections.singletonList("");
}
} | [
"pavel.dolgov@jetbrains.com"
] | pavel.dolgov@jetbrains.com |
a49eb692b321494423a791fcc46290aa0dcba06d | 0dc06e5cc1b49a092245f5caf9ab6ee573b727ec | /TestXidio/src/com/comcast/xidio/testCases/loginScreen/XidioLoginSpecialCharecterInBoth.java | d757f505d4f571aa471322f697fed4adafcff133 | [] | no_license | sandeeptiku2012/ComcastRobotium | d64122d1aa89ba5d19cd2574e07053a933c9a1bb | f9f5d061ba4b09d54ff294aaad346044823c29b5 | refs/heads/master | 2016-09-06T05:43:03.717164 | 2014-01-06T12:56:49 | 2014-01-06T12:56:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,922 | java | package com.comcast.xidio.testCases.loginScreen;
import java.util.Locale;
import android.annotation.SuppressLint;
import android.os.Build;
import android.test.ActivityInstrumentationTestCase2;
import android.view.KeyEvent;
import android.widget.EditText;
import com.comcast.xidio.core.common.GetSolo;
import com.comcast.xidio.core.constant.TestConstants;
import com.jayway.android.robotium.solo.Solo;
import com.xfinity.xidio.FirstRun;
import com.xfinity.xidio.R;
public class XidioLoginSpecialCharecterInBoth extends ActivityInstrumentationTestCase2<FirstRun>
{
private Solo solo;
public XidioLoginSpecialCharecterInBoth() {
super(FirstRun.class);
}
@Override
protected void setUp() throws Exception {
GetSolo.getInstance().setUpSolo(getInstrumentation(), getActivity());
solo = GetSolo.getInstance().getSoloObject();
solo.sleep(TestConstants.SLEEP_TIME_SETUP);
super.setUp();
}
@SuppressLint("DefaultLocale")
public void testXidioLoginSpecialCharecterInBoth()
{
assertTrue(solo.waitForActivity(TestConstants.FIRST_RUN));
solo.sleep(1000);
solo.enterText((EditText) solo.getCurrentActivity().findViewById(com.xfinity.xidio.R.id.first_run_username),TestConstants.SPECIAL_CHARECTER_USERNAME);
solo.enterText((EditText) solo.getCurrentActivity().findViewById(com.xfinity.xidio.R.id.first_run_password),TestConstants.SPECIAL_CHARECTER_PASSWORD);
solo.sleep(TestConstants.SLEEP_TIME_500);
solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);
solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);
solo.sendKey(KeyEvent.KEYCODE_DPAD_CENTER);
solo.sleep(TestConstants.SLEEP_TIME_2000);
assertTrue(solo.searchText("Error, check username/password and try again"));
assertTrue(solo.getView(R.id.first_run_error_text).isShown());
solo.sleep(TestConstants.SLEEP_TIME_1000);
}
protected void tearDown() throws Exception {
solo.finishOpenedActivities();
super.tearDown();
}
}
| [
"manju1375@gmail.com"
] | manju1375@gmail.com |
b00e1e85eec3a4009b7a088f63ba289c6beeb2a5 | 29075ec43d87bb25731ee28def6094d52af2db6e | /NIX_Demo_source_from_JADX/sources/com/ngx/mp100sdk/C0395d.java | 90533b1bde6925dec9c07de67e6f4ee93bd92ff7 | [] | no_license | vinothkmr92/VGS | 9210d7f04682d456edecffe1e4812d375ef13640 | dba6f81e57c858c5a0a09a71ef9df650a19b8ba6 | refs/heads/master | 2023-05-24T20:45:50.867787 | 2023-05-13T08:14:08 | 2023-05-13T08:14:08 | 142,749,069 | 0 | 0 | null | 2022-09-01T22:38:50 | 2018-07-29T09:50:50 | Java | UTF-8 | Java | false | false | 866 | java | package com.ngx.mp100sdk;
import android.content.ComponentName;
import android.content.ServiceConnection;
import android.os.IBinder;
import android.util.Log;
import p000a.p001a.p002a.C0004e;
/* renamed from: com.ngx.mp100sdk.d */
final class C0395d implements ServiceConnection {
/* renamed from: a */
private /* synthetic */ C0392a f87a;
C0395d(C0392a aVar) {
this.f87a = aVar;
}
public final void onServiceConnected(ComponentName componentName, IBinder iBinder) {
this.f87a.f82a.f77i = C0004e.m28a(iBinder);
NGXPrinter.m91b(this.f87a.f82a);
Log.i("NGX", "Service Connected");
if (this.f87a.f82a.f77i == null) {
Log.i("NGX", "PrinterService is null");
}
}
public final void onServiceDisconnected(ComponentName componentName) {
this.f87a.f82a.f77i = null;
}
}
| [
"vinoth.kmr0492@yahoo.com"
] | vinoth.kmr0492@yahoo.com |
876dbdb64da19fb14704d77d5cf4bee42758b722 | ba67c4b992a1143a88b1a8952bad5f2375bc7805 | /TeamCode/src/main/java/org/firstinspires/ftc/teamcode/test/TestOpModeParent.java | 6c398de4ccdc279ff9be8e2fe4ee6ce2ac8e5c15 | [] | no_license | dmssargent/Xtensible-ftc_app | e07ae414b954cde42792b7d7a886d8e1b36c6e4a | b071355be7ce4a73d0f4cbb14e35bc6f93b5feff | refs/heads/master | 2020-05-21T03:13:29.023863 | 2016-10-23T21:19:30 | 2016-10-23T21:19:30 | 42,372,567 | 4 | 7 | null | 2016-02-21T02:16:17 | 2015-09-12T20:49:55 | Java | UTF-8 | Java | false | false | 683 | java | package org.firstinspires.ftc.teamcode.test;
import com.qualcomm.robotcore.hardware.Gamepad;
import com.qualcomm.robotcore.hardware.HardwareMap;
import org.firstinspires.ftc.robotcore.external.Telemetry;
import org.ftccommunity.ftcxtensible.dagger.annonations.Inject;
import org.ftccommunity.ftcxtensible.dagger.annonations.Named;
import org.ftccommunity.ftcxtensible.interfaces.RobotInitStopLoop;
public abstract class TestOpModeParent implements RobotInitStopLoop {
@Inject
protected Telemetry telemetry;
@Inject
protected Gamepad gamepad1;
@Inject
@Named("gamepad2")
protected Gamepad gamepad2;
@Inject
protected HardwareMap hardwareMap;
}
| [
"dmssargent@yahoo.com"
] | dmssargent@yahoo.com |
129025036c521f05a044ca88bb50b44746b535d9 | 428283728a9fc704387023f4b5f825e4b19ac691 | /src/main/java/com/mightyblock/posts/repository/PostRepository.java | 8ab53df27e254f749c9218e261ca87e73b7a272b | [] | no_license | PizzioDario/mightyblock-posts | cfb7c9bc7e2e0171b3bf539414d55ab5b63d3426 | af552337562b40cec28883dd10496f1dd3413317 | refs/heads/master | 2023-07-20T02:51:35.252362 | 2021-08-22T22:39:49 | 2021-08-22T22:39:49 | 398,124,967 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 365 | java | package com.mightyblock.posts.repository;
import com.mightyblock.posts.model.Post;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
public interface PostRepository extends MongoRepository<Post, String> {
Page<Post> findAll(Pageable pageable);
}
| [
"you@example.com"
] | you@example.com |
3af73f813be91b7b5f2ef33073af2082ace8b32b | 0a8e84b18a5d328a4926ca5a2d0325b9471c9a72 | /tmql4j-majortom/src/main/java/de/topicmapslab/tmql4j/majortom/grammar/functions/GetDistance.java | 50a05b495db84e19dc5811a8dd1a5117a39740b6 | [] | no_license | tmlab/tmql | 5b2204c416852661320ee449fb501dd194c128e0 | 45a537d433ba3ab45808f1aa6446ba5ac2bcfb8e | refs/heads/master | 2021-01-10T02:40:07.473546 | 2011-04-29T09:16:50 | 2011-04-29T09:16:50 | 36,683,495 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,869 | java | /*
* Copyright: Copyright 2010 Topic Maps Lab, University of Leipzig. http://www.topicmapslab.de/
* License: Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0.html
*
* @author Sven Krosse
* @email krosse@informatik.uni-leipzig.de
*
*/
package de.topicmapslab.tmql4j.majortom.grammar.functions;
import java.text.ParseException;
import java.util.Map;
import de.topicmapslab.geotype.wgs84.Wgs84Coordinate;
import de.topicmapslab.tmql4j.components.interpreter.IExpressionInterpreter;
import de.topicmapslab.tmql4j.components.processor.core.IContext;
import de.topicmapslab.tmql4j.components.processor.core.QueryMatches;
import de.topicmapslab.tmql4j.components.processor.runtime.ITMQLRuntime;
import de.topicmapslab.tmql4j.exception.TMQLRuntimeException;
import de.topicmapslab.tmql4j.majortom.utils.FunctionUtils;
import de.topicmapslab.tmql4j.path.grammar.functions.FunctionImpl;
import de.topicmapslab.tmql4j.util.HashUtil;
/**
* @author Sven Krosse
*
*/
public class GetDistance extends FunctionImpl {
public static final String GetDistanceIdentifier = "fn:distance";
/**
* {@inheritDoc}
*/
public de.topicmapslab.tmql4j.components.processor.core.QueryMatches interpret(ITMQLRuntime runtime, IContext context, IExpressionInterpreter<?> caller) {
/*
* extract arguments
*/
QueryMatches parameters = getParameters(runtime, context, caller);
/*
* check count of variables
*/
if (!isExpectedNumberOfParameters(parameters.getOrderedKeys().size())) {
throw new TMQLRuntimeException(getItemIdentifier() + "() requieres 2 or 4 parameters.");
}
QueryMatches results = new QueryMatches(runtime);
/*
* iterate over parameters
*/
for (Map<String, Object> tuple : parameters) {
if (!isExpectedNumberOfParameters(tuple.size())) {
continue;
}
try {
Wgs84Coordinate[] coordinates = FunctionUtils.getWgs84Coordinates(tuple, 2);
Map<String, Object> result = HashUtil.getHashMap();
result.put(QueryMatches.getNonScopedVariable(), coordinates[0].getDistance(coordinates[1]));
results.add(result);
} catch (NumberFormatException e) {
throw new TMQLRuntimeException("Given argument has to be a double value", e);
} catch (ParseException e) {
throw new TMQLRuntimeException("Given argument has to be a string coordinate value", e);
} catch (UnsupportedOperationException e) {
throw new TMQLRuntimeException("Function only supported by MaJorToM Topic Map Engines", e);
}
}
return results;
}
/**
* {@inheritDoc}
*/
public String getItemIdentifier() {
return GetDistanceIdentifier;
}
/**
* {@inheritDoc}
*/
public boolean isExpectedNumberOfParameters(long numberOfParameters) {
return numberOfParameters == 2 || numberOfParameters == 4;
}
}
| [
"hoyer@localhost"
] | hoyer@localhost |
8e043bf8b2848794ff402758c4c275c830a31cdd | ba6453e8aecc26b7fb29fc876764d184267e34a2 | /nfg-web/src/main/java/gov/goias/dtos/DTOMinhasNotas.java | 47bfd964b05b97aa00f3b2d1c9b4c5dd55729ee6 | [] | no_license | notafiscaltolegal/tolegal | e06210fd720e73f14dbb40d517116758c7cd3b3e | fa4052e91d79a29c93838bba719561d9d50bfac1 | refs/heads/master | 2020-07-03T14:23:44.709158 | 2017-02-09T17:54:32 | 2017-02-09T17:54:32 | 74,163,195 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,513 | java | package gov.goias.dtos;
import java.util.Date;
/**
* @author lucas-mp
* @since 26/01/2015.
*/
public class DTOMinhasNotas {
private String numero;
private String cnpj;
private String estabelecimento;
private String fantasia;
private Date emissao;
private Date registro;
private Double valor;
private Character empresaCadastrada;
private String infoSorteioParticipado;
private String detalhe;
private Integer qtdePontos;
private Integer statusPontuacao;
public DTOMinhasNotas() {
}
public DTOMinhasNotas(String cnpj, String estabelecimento,
String fantasia,String numero, Date emissao, Date registro,
Double valor, Character empresaCadastrada, String infoSorteioParticipado,
Integer qtdePontos,Integer statusPontuacao,String detalhe
) {
this.numero = numero;
this.cnpj = cnpj;
this.estabelecimento = estabelecimento;
this.fantasia = fantasia;
this.emissao = emissao;
this.registro = registro;
this.valor = valor;
this.empresaCadastrada = empresaCadastrada;
this.infoSorteioParticipado=infoSorteioParticipado;
this.qtdePontos=qtdePontos;
this.statusPontuacao=statusPontuacao;
this.detalhe=detalhe;
}
public String getNumero() {
return numero;
}
public void setNumero(String numero) {
this.numero = numero;
}
public String getEstabelecimento() {
return estabelecimento;
}
public void setEstabelecimento(String estabelecimento) {
this.estabelecimento = estabelecimento;
}
public String getCnpj() {
return cnpj;
}
public void setCnpj(String cnpj) {
this.cnpj = cnpj;
}
public Date getEmissao() {
return emissao;
}
public void setEmissao(Date emissao) {
this.emissao = emissao;
}
public Date getRegistro() {
return registro;
}
public void setRegistro(Date registro) {
this.registro = registro;
}
public Double getValor() {
return valor;
}
public void setValor(Double valor) {
this.valor = valor;
}
public String getFantasia() {
return fantasia;
}
public void setFantasia(String fantasia) {
this.fantasia = fantasia;
}
public Character getEmpresaCadastrada() {
return empresaCadastrada;
}
public void setEmpresaCadastrada(Character empresaCadastrada) {
this.empresaCadastrada = empresaCadastrada;
}
public String getInfoSorteioParticipado() {
return infoSorteioParticipado;
}
public void setInfoSorteioParticipado(String infoSorteioParticipado) {
this.infoSorteioParticipado = infoSorteioParticipado;
}
public Integer getQtdePontos() {
return qtdePontos;
}
public void setQtdePontos(Integer qtdePontos) {
this.qtdePontos = qtdePontos;
}
public Integer getStatusPontuacao() {
return statusPontuacao;
}
public void setStatusPontuacao(Integer statusPontuacao) {
this.statusPontuacao = statusPontuacao;
}
public String getDetalhe() {
return detalhe;
}
public void setDetalhe(String detalhe) {
this.detalhe = detalhe;
}
}
| [
"pedroaugusto.gti@gmail.com"
] | pedroaugusto.gti@gmail.com |
5b14acc2e239ceebeebc70dfa9d153099e5a2a77 | b280a34244a58fddd7e76bddb13bc25c83215010 | /scmv6/web-group/src/main/java/com/smate/web/group/dao/group/psn/PsnWorkHistoryInsInfoDao.java | 7f4159f8fab03209f79c6b452b4279da9b66728d | [] | no_license | hzr958/myProjects | 910d7b7473c33ef2754d79e67ced0245e987f522 | d2e8f61b7b99a92ffe19209fcda3c2db37315422 | refs/heads/master | 2022-12-24T16:43:21.527071 | 2019-08-16T01:46:18 | 2019-08-16T01:46:18 | 202,512,072 | 2 | 3 | null | 2022-12-16T05:31:05 | 2019-08-15T09:21:04 | Java | UTF-8 | Java | false | false | 741 | java | package com.smate.web.group.dao.group.psn;
import org.springframework.stereotype.Repository;
import com.smate.core.base.utils.data.SnsHibernateDao;
import com.smate.web.group.model.group.psn.PsnWorkHistoryInsInfo;
/**
* 个人工作经历单位信息 Dao
*
*
*/
@Repository
public class PsnWorkHistoryInsInfoDao extends SnsHibernateDao<PsnWorkHistoryInsInfo, Long> {
/**
* 通过psnId获取PsnWorkHistoryInsInfo
*
* @param psnId
* @param insId
* @throws DaoExcption
*/
public PsnWorkHistoryInsInfo getPsnWorkHistoryInsInfo(Long psnId) throws Exception {
String hql = "from PsnWorkHistoryInsInfo p where p.psnId=? ";
return (PsnWorkHistoryInsInfo) super.createQuery(hql, psnId).uniqueResult();
}
}
| [
"zhiranhe@irissz.com"
] | zhiranhe@irissz.com |
b8ab1f00d9164f43818ec73f287121e47d7fdde8 | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/30/30_689d1e6c42aee80723eb941f36ca7c3cf314d3bc/ImportActivity/30_689d1e6c42aee80723eb941f36ca7c3cf314d3bc_ImportActivity_s.java | 7f8baa1c4c335476697851a67e98267f451fe6c3 | [] | 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 | 7,404 | java |
package com.toycode.idpw;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.EditText;
import android.widget.TextView;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.util.List;
public class ImportActivity extends Activity implements OnClickListener {
public static final String OI_ACTION_PICK_FILE = "org.openintents.action.PICK_FILE";
public static final String OI_TITLE_EXTRA = "org.openintents.extra.TITLE";
public static final String OI_BUTTON_TEXT_EXTRA = "org.openintents.extra.BUTTON_TEXT";
public static final int REQUEST_FILENAME = 0;
private File mInputFile = null;
private boolean mUseFileManeger;
private EditText mPasswordEdittext;
private EditText mFileNameEdittext;
private TextView mReadMethodInfoTextview;
enum ReadMethod { MERGE, INSERT };
private ReadMethod mReadMethod = ReadMethod.MERGE;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// アンロック状態でなければ終了
if (PasswordManager.getInstance(this).isMainPasswordDecrypted() == false) {
setResult(RESULT_CANCELED, new Intent());
finish();
return;
}
if (checkOIActionPickFile()) {
setContentView(R.layout.import_layout);
mUseFileManeger = true;
} else {
setContentView(R.layout.import_input_filename);
mUseFileManeger = false;
mFileNameEdittext = (EditText) findViewById(R.id.filename_edittext);
mFileNameEdittext.setText(FileUtils.getDefaultInputFile(this).toString());
}
mPasswordEdittext = (EditText) findViewById(R.id.import_password_edittext);
findViewById(R.id.read_file_button).setOnClickListener(this);
mInputFile = FileUtils.getDefaultInputFile(this);
findViewById(R.id.merge_radio).setOnClickListener(this);
findViewById(R.id.insert_radio).setOnClickListener(this);
mReadMethodInfoTextview = (TextView)findViewById(R.id.read_method_info_textview);
}
private boolean checkOIActionPickFile() {
Intent intent = new Intent(OI_ACTION_PICK_FILE);
PackageManager pm = getPackageManager();
List<ResolveInfo> list = pm
.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY);
return list.size() > 0;
}
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.read_file_button:
if (Toy.isEmptyTextView(mPasswordEdittext)) {
Toy.toastMessage(this, R.string.please_set_import_password);
return;
}
if (mUseFileManeger) {
startSaveFileManager();
} else {
File file = new File(mFileNameEdittext.getText().toString());
if (file != null) {
new ReadFileTask().execute(file);
}
}
break;
case R.id.merge_radio:
mReadMethodInfoTextview.setText(R.string.merge_info);
mReadMethod = ReadMethod.MERGE;
break;
case R.id.insert_radio:
mReadMethodInfoTextview.setText(R.string.insert_info);
mReadMethod = ReadMethod.INSERT;
break;
default:
// did not come
break;
}
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == REQUEST_FILENAME && resultCode == RESULT_OK && data != null) {
Uri uri = data.getData();
if (uri != null) {
File file = new File(uri.getPath());
if (file != null) {
new ReadFileTask().execute(file);
}
}
}
}
private class ReadFileTask extends AsyncTask<File, Void, Void> {
ProgressDialog mProgressDialog;
@Override
protected void onPreExecute() {
super.onPreExecute();
mProgressDialog = ProgressDialog.show(ImportActivity.this, "", "Reading...");
}
@Override
protected Void doInBackground(File... files) {
SQLiteDatabase db = (new IdPwDbOpenHelper(ImportActivity.this)).getReadableDatabase();
if (db == null) {
throw new RuntimeException("db==null");
}
byte[] mainPasswod = PasswordManager.getInstance(ImportActivity.this).getDecryptedMainPassword();
if (mainPasswod == null) {
throw new RuntimeException("mainPasswod==null");
}
String json = "";
try {
byte[] password = mPasswordEdittext.getText().toString().getBytes();
FileInputStream fis = new FileInputStream(files[0]);
FileChannel ch = fis.getChannel();
int size = (int) ch.size();
byte[] cryptBytes = new byte[size];
ch.read(ByteBuffer.wrap(cryptBytes));
ch.close();
fis.close();
byte[] bytesData = OpenSSLAES128CBCCrypt.INSTANCE.decrypt(password, cryptBytes);
json = new String(bytesData);
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
mInputFile = files[0];
DbRw dbrw = new DbRw(db, mainPasswod);
switch (mReadMethod) {
case MERGE:
dbrw.insertRecords(json);
break;
case INSERT:
dbrw.mergeRecords(json);
break;
default:
break;
}
dbrw.cleanup();
return null;
}
@Override
protected void onPostExecute(Void result) {
mProgressDialog.dismiss();
super.onPostExecute(result);
}
}
private void startSaveFileManager() {
Intent intent = new Intent(OI_ACTION_PICK_FILE);
intent.setData(Uri.fromFile(mInputFile));
intent.putExtra(OI_TITLE_EXTRA, getString(R.string.select_folder));
intent.putExtra(OI_BUTTON_TEXT_EXTRA, getString(R.string.read));
try {
startActivityForResult(intent, REQUEST_FILENAME);
} catch (ActivityNotFoundException e) {
throw new RuntimeException(e.getMessage());
}
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
6557708247066cb59393376d73aea0275692aa62 | 16fdb98d7bb320213ad7877190ec6a6825d15a32 | /src/test/java/ch/ethz/idsc/gokart/gui/top/TrajectoryDesignTest.java | 7619c864e6287c603ac7789cd7e956aded2600be | [] | no_license | DodTech/retina | 1e7b3afaa832fe0ba2bf5de99d90a13998efd450 | cb84af4afce5da8687753686224f81e3fb45c771 | refs/heads/master | 2020-06-09T13:46:47.336267 | 2019-06-19T14:27:47 | 2019-06-19T14:27:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 566 | java | // code by jph
package ch.ethz.idsc.gokart.gui.top;
import ch.ethz.idsc.retina.util.pose.PoseHelper;
import ch.ethz.idsc.tensor.RealScalar;
import ch.ethz.idsc.tensor.Tensor;
import ch.ethz.idsc.tensor.Tensors;
import ch.ethz.idsc.tensor.sca.Chop;
import junit.framework.TestCase;
public class TrajectoryDesignTest extends TestCase {
public void testSimple() {
Tensor tensor = TrajectoryDesign.se2CtoSe2WithUnits(Tensors.vector(2, 3, 4));
PoseHelper.toUnitless(tensor);
Chop._10.requireClose(tensor.get(2), RealScalar.of(-2.2831853071795862));
}
}
| [
"jan.hakenberg@gmail.com"
] | jan.hakenberg@gmail.com |
3586da0cefc60f9f6acc29bfae6b36dfe8fd744d | 4aa90348abcb2119011728dc067afd501f275374 | /app/src/main/java/com/tencent/mm/ui/widget/MMPinProgressBtn$1.java | 0511500ca420e66745b7abfbf7cd56c1ccffb6f3 | [] | no_license | jambestwick/HackWechat | 0d4ceb2d79ccddb45004ca667e9a6a984a80f0f6 | 6a34899c8bfd50d19e5a5ec36a58218598172a6b | refs/heads/master | 2022-01-27T12:48:43.446804 | 2021-12-29T10:36:30 | 2021-12-29T10:36:30 | 249,366,791 | 0 | 0 | null | 2020-03-23T07:48:32 | 2020-03-23T07:48:32 | null | UTF-8 | Java | false | false | 922 | java | package com.tencent.mm.ui.widget;
import com.tencent.mm.sdk.platformtools.x;
class MMPinProgressBtn$1 implements Runnable {
final /* synthetic */ MMPinProgressBtn zug;
MMPinProgressBtn$1(MMPinProgressBtn mMPinProgressBtn) {
this.zug = mMPinProgressBtn;
}
public final void run() {
if (this.zug.getVisibility() != 0) {
x.i("MicroMsg.MMPinProgressBtn", "cur progress bar not visiable, stop auto pregress");
return;
}
MMPinProgressBtn.a(this.zug, MMPinProgressBtn.a(this.zug) + 1);
if (MMPinProgressBtn.a(this.zug) >= MMPinProgressBtn.b(this.zug)) {
MMPinProgressBtn.a(this.zug, MMPinProgressBtn.a(this.zug) - 1);
x.i("MicroMsg.MMPinProgressBtn", "match auto progress max, return");
return;
}
this.zug.invalidate();
this.zug.postDelayed(MMPinProgressBtn.c(this.zug), 200);
}
}
| [
"malin.myemail@163.com"
] | malin.myemail@163.com |
a5cfe475bedc83b95b432f6315fbaef3932c8312 | 645b411dc547ca5080d679aeb33e9f7ceadb6348 | /src/main/java/com/lambdaworks/redis/cluster/ClusterTopologyRefreshScheduler.java | 00bd1e259d2d6091e7cfa87138b95205b555b7b4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | shakuzen/lettuce-core | 5f4da0f7f03dee52db9a6af839fb911827de9ebc | ebb76f65152ad3203bd1f218a2a959c29a1aa28d | refs/heads/master | 2020-03-19T08:05:18.219557 | 2018-06-05T06:42:07 | 2018-06-05T06:43:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,933 | java | /*
* Copyright 2011-2018 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 com.lambdaworks.redis.cluster;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicReference;
import com.lambdaworks.redis.resource.ClientResources;
import io.netty.util.concurrent.EventExecutorGroup;
import io.netty.util.internal.logging.InternalLogger;
import io.netty.util.internal.logging.InternalLoggerFactory;
/**
* @author Mark Paluch
*/
class ClusterTopologyRefreshScheduler implements Runnable, ClusterEventListener {
private static final InternalLogger logger = InternalLoggerFactory.getInstance(ClusterTopologyRefreshScheduler.class);
private static final ClusterTopologyRefreshOptions FALLBACK_OPTIONS = ClusterTopologyRefreshOptions.create();
private final RedisClusterClient redisClusterClient;
private final ClientResources clientResources;
private final ClusterTopologyRefreshTask clusterTopologyRefreshTask;
private final AtomicReference<Timeout> timeoutRef = new AtomicReference<>();
ClusterTopologyRefreshScheduler(RedisClusterClient redisClusterClient, ClientResources clientResources) {
this.redisClusterClient = redisClusterClient;
this.clientResources = clientResources;
this.clusterTopologyRefreshTask = new ClusterTopologyRefreshTask(redisClusterClient);
}
@Override
public void run() {
logger.debug("ClusterTopologyRefreshScheduler.run()");
if (isEventLoopActive() && redisClusterClient.getClusterClientOptions() != null) {
if (!redisClusterClient.getClusterClientOptions().isRefreshClusterView()) {
logger.debug("Periodic ClusterTopologyRefresh is disabled");
return;
}
} else {
logger.debug("Periodic ClusterTopologyRefresh is disabled");
return;
}
clientResources.eventExecutorGroup().submit(clusterTopologyRefreshTask);
}
private void indicateTopologyRefreshSignal() {
logger.debug("ClusterTopologyRefreshScheduler.indicateTopologyRefreshSignal()");
if (!acquireTimeout()) {
return;
}
if (isEventLoopActive() && redisClusterClient.getClusterClientOptions() != null) {
clientResources.eventExecutorGroup().submit(clusterTopologyRefreshTask);
} else {
logger.debug("Adaptive ClusterTopologyRefresh is disabled");
}
}
/**
* Check if the {@link EventExecutorGroup} is active
*
* @return false if the worker pool is terminating, shutdown or terminated
*/
protected boolean isEventLoopActive() {
EventExecutorGroup eventExecutors = clientResources.eventExecutorGroup();
if (eventExecutors.isShuttingDown() || eventExecutors.isShutdown() || eventExecutors.isTerminated()) {
return false;
}
return true;
}
private boolean acquireTimeout() {
Timeout existingTimeout = timeoutRef.get();
if (existingTimeout != null) {
if (!existingTimeout.isExpired()) {
return false;
}
}
ClusterTopologyRefreshOptions refreshOptions = getClusterTopologyRefreshOptions();
Timeout timeout = new Timeout(refreshOptions.getAdaptiveRefreshTimeout(),
refreshOptions.getAdaptiveRefreshTimeoutUnit());
if (timeoutRef.compareAndSet(existingTimeout, timeout)) {
return true;
}
return false;
}
@Override
public void onAskRedirection() {
if (isEnabled(ClusterTopologyRefreshOptions.RefreshTrigger.ASK_REDIRECT)) {
indicateTopologyRefreshSignal();
}
}
@Override
public void onMovedRedirection() {
if (isEnabled(ClusterTopologyRefreshOptions.RefreshTrigger.MOVED_REDIRECT)) {
indicateTopologyRefreshSignal();
}
}
@Override
public void onReconnectAttempt(int attempt) {
if (isEnabled(ClusterTopologyRefreshOptions.RefreshTrigger.PERSISTENT_RECONNECTS)
&& attempt >= getClusterTopologyRefreshOptions().getRefreshTriggersReconnectAttempts()) {
indicateTopologyRefreshSignal();
}
}
@Override
public void onUnknownNode() {
if (isEnabled(ClusterTopologyRefreshOptions.RefreshTrigger.UNKNOWN_NODE)) {
indicateTopologyRefreshSignal();
}
}
private ClusterTopologyRefreshOptions getClusterTopologyRefreshOptions() {
ClusterClientOptions clusterClientOptions = redisClusterClient.getClusterClientOptions();
if (clusterClientOptions != null) {
return clusterClientOptions.getTopologyRefreshOptions();
}
return FALLBACK_OPTIONS;
}
private boolean isEnabled(ClusterTopologyRefreshOptions.RefreshTrigger refreshTrigger) {
return getClusterTopologyRefreshOptions().getAdaptiveRefreshTriggers().contains(refreshTrigger);
}
/**
* Value object to represent a timeout.
*
* @author Mark Paluch
* @since 4.2
*/
private class Timeout {
private final long expiresMs;
public Timeout(long timeout, TimeUnit timeUnit) {
this.expiresMs = System.currentTimeMillis() + timeUnit.toMillis(timeout);
}
public boolean isExpired() {
return expiresMs < System.currentTimeMillis();
}
public long remaining() {
long diff = expiresMs - System.currentTimeMillis();
if (diff > 0) {
return diff;
}
return 0;
}
}
private static class ClusterTopologyRefreshTask implements Runnable {
private final RedisClusterClient redisClusterClient;
public ClusterTopologyRefreshTask(RedisClusterClient redisClusterClient) {
this.redisClusterClient = redisClusterClient;
}
public void run() {
if (logger.isDebugEnabled()) {
logger.debug("ClusterTopologyRefreshTask requesting partitions from {}",
redisClusterClient.getTopologyRefreshSource());
}
try {
redisClusterClient.reloadPartitions();
} catch (Exception e) {
logger.warn("Cannot refresh Redis Cluster topology", e);
}
}
}
}
| [
"mpaluch@paluch.biz"
] | mpaluch@paluch.biz |
f2c46a11bd5d6916cef6411ad779bc587bd82d82 | e1262848cb2f5a1b0c8cfd3ca09cf4fbf30d5584 | /openapi-ice/src/main/java/ShangPin/SOP/Entity/Where/OpenApi/Purchase/ReturnOrderQueryDtoHolder.java | 78e6b94e2973e46cbe6015356d802d03b51656f1 | [] | no_license | tianxinghua/pachong | e619f8e34904ada839cd2d30f8781495de276230 | a3fc6ea97ce9053f1269d5c3536b6677d5588138 | refs/heads/master | 2020-04-14T16:53:51.579843 | 2019-01-04T02:42:26 | 2019-01-04T02:42:26 | 163,964,124 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,170 | java | // **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ReturnOrderQueryDto.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package ShangPin.SOP.Entity.Where.OpenApi.Purchase;
public final class ReturnOrderQueryDtoHolder extends Ice.ObjectHolderBase<ReturnOrderQueryDto>
{
public
ReturnOrderQueryDtoHolder()
{
}
public
ReturnOrderQueryDtoHolder(ReturnOrderQueryDto value)
{
this.value = value;
}
public void
patch(Ice.Object v)
{
if(v == null || v instanceof ReturnOrderQueryDto)
{
value = (ReturnOrderQueryDto)v;
}
else
{
IceInternal.Ex.throwUOE(type(), v);
}
}
public String
type()
{
return ReturnOrderQueryDto.ice_staticId();
}
}
| [
"1085024903@qq.com"
] | 1085024903@qq.com |
21e725502d7fe0af1b1bb067727463546a8f7f82 | 5638a4d62380f7bfc7bbe7fe60a4cbcd8eec0bac | /xml/src/test/java/org/openfuxml/content/ofx/TestXmlParagraph.java | 0596775a4371eded562ffbc51cf2b8b7a21fc76d | [] | no_license | aht-group/ofx | adab176f64c6acb0ca603feac5499a3b15ce956a | dab1fc3afe2a82c6be3950ad58fc87c32737a1ac | refs/heads/master | 2023-09-05T22:42:19.468397 | 2023-08-27T15:23:03 | 2023-08-27T15:23:03 | 39,813,039 | 0 | 1 | null | 2023-08-23T17:54:15 | 2015-07-28T04:28:04 | Java | UTF-8 | Java | false | false | 933 | java | package org.openfuxml.content.ofx;
import org.openfuxml.test.AbstractOfxXmlTest;
import org.openfuxml.test.OfxXmlTstBootstrap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class TestXmlParagraph extends AbstractXmlOfxTest<Paragraph>
{
final static Logger logger = LoggerFactory.getLogger(AbstractOfxXmlTest.class);
public TestXmlParagraph(){super(Paragraph.class);}
public static Paragraph create(boolean withChildren){return (new TestXmlParagraph()).build(withChildren);}
public Paragraph build(boolean withChilds)
{
Paragraph xml = new Paragraph();
xml.setLang("en");
logger.warn("Not fully implemented");
if(withChilds)
{
}
return xml;
}
public static void main(String[] args)
{
OfxXmlTstBootstrap.init();
TestXmlParagraph test = new TestXmlParagraph();
test.saveReferenceXml();
}
} | [
"t.kisner@web.de"
] | t.kisner@web.de |
5896406db9119cc56228e92e8383bec9ce7a47fe | 9366c60587ee93199a8503b6c3507731bae099e7 | /EZFM/src/main/java/com/shareworx/ezfm/quality/proinspect/inspect/stanedition/service/EditionStationBusinessService.java | 8dbca02c6de518ea8bbc78f36bc8a79141070b5f | [
"Apache-2.0"
] | permissive | xiaotian1210/frist-xiaotian | 9a02077a641b86470a3f53d507460d4f007170f4 | 58468408192c872e24341a73bc69b624439d6918 | refs/heads/master | 2020-03-20T07:55:43.081863 | 2018-06-14T05:54:01 | 2018-06-14T05:54:01 | 137,294,519 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,556 | java | package com.shareworx.ezfm.quality.proinspect.inspect.stanedition.service;
import com.shareworx.ezfm.quality.proinspect.inspect.stanedition.model.EditionStationModel;
import com.shareworx.platform.business.BusinessService;
import com.shareworx.platform.exception.ShareworxServiceException;
import com.shareworx.platform.persist.Query;
/**
* 版本与岗位中间表业务操作接口
* @author dms
* @version since Shareworx platform 3.0
*
*/
public interface EditionStationBusinessService extends BusinessService<EditionStationModel> {
String ID = "editionStationBusinessService";
/**
* 查询版本与岗位中间表
* @param query
* @return
* @throws ShareworxServiceException
*/
EditionStationModel[] query(Query query) throws ShareworxServiceException;
/**
* 加载版本与岗位中间表
*/
EditionStationModel[] load(EditionStationModel model) throws ShareworxServiceException;
/**
* 新增保存版本与岗位中间表
* @param models
* @return
* @throws ShareworxServiceException
*/
EditionStationModel[] save(EditionStationModel[] models) throws ShareworxServiceException;
/**
* 修改保存版本与岗位中间表
* @param models
* @return
* @throws ShareworxServiceException
*/
EditionStationModel[] update(EditionStationModel[] models) throws ShareworxServiceException;
/**
* 删除版本与岗位中间表
* @param models
* @return
* @throws ShareworxServiceException
*/
EditionStationModel[] delete(EditionStationModel[] models) throws ShareworxServiceException;
}
| [
"2248210338@qq.com"
] | 2248210338@qq.com |
37db47c5c43a1800fd1f0175f4d50d4da2feedc2 | c97a25dede22675827d58f40ced09e83281ee184 | /backend-projects/appcontact-back/src/test/java/com/brightcodinng/appcontactback/AppcontactBackApplicationTests.java | 36783814e666c7ba16a51f6b820c49e895d051a4 | [] | no_license | helidrissi/mistral | 09d34226f6642493ca901057e29408481a74e388 | a486ba4e3d9507f05f70907d2677bd2a9be1ae0b | refs/heads/main | 2023-07-20T13:52:48.802375 | 2021-08-30T15:51:40 | 2021-08-30T15:51:40 | 401,399,056 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 241 | java | package com.brightcodinng.appcontactback;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class AppcontactBackApplicationTests {
@Test
void contextLoads() {
}
}
| [
"hamza.elidrissi@mistral.fr"
] | hamza.elidrissi@mistral.fr |
aa6986da551872569c3f4a116e8ba93920c3c6db | c885ef92397be9d54b87741f01557f61d3f794f3 | /tests-without-trycatch/Math-6/org.apache.commons.math3.optim.nonlinear.vector.jacobian.LevenbergMarquardtOptimizer/BBC-F0-opt-80/20/org/apache/commons/math3/optim/nonlinear/vector/jacobian/LevenbergMarquardtOptimizer_ESTest.java | c1e61031b45623bc84bb5607016b01289d72e2dc | [
"CC-BY-4.0",
"MIT"
] | permissive | pderakhshanfar/EMSE-BBC-experiment | f60ac5f7664dd9a85f755a00a57ec12c7551e8c6 | fea1a92c2e7ba7080b8529e2052259c9b697bbda | refs/heads/main | 2022-11-25T00:39:58.983828 | 2022-04-12T16:04:26 | 2022-04-12T16:04:26 | 309,335,889 | 0 | 1 | null | 2021-11-05T11:18:43 | 2020-11-02T10:30:38 | null | UTF-8 | Java | false | false | 2,683 | java | /*
* This file was automatically generated by EvoSuite
* Thu Oct 21 11:58:55 GMT 2021
*/
package org.apache.commons.math3.optim.nonlinear.vector.jacobian;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import org.apache.commons.math3.optim.ConvergenceChecker;
import org.apache.commons.math3.optim.PointVectorValuePair;
import org.apache.commons.math3.optim.nonlinear.vector.jacobian.LevenbergMarquardtOptimizer;
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)
public class LevenbergMarquardtOptimizer_ESTest extends LevenbergMarquardtOptimizer_ESTest_scaffolding {
@Test(timeout = 4000)
public void test0() throws Throwable {
LevenbergMarquardtOptimizer levenbergMarquardtOptimizer0 = new LevenbergMarquardtOptimizer(0.0, (ConvergenceChecker<PointVectorValuePair>) null, 1.0, (-3586.58711), 0.0, (-3586.58711));
assertEquals(0.0, levenbergMarquardtOptimizer0.getChiSquare(), 0.01);
}
@Test(timeout = 4000)
public void test1() throws Throwable {
LevenbergMarquardtOptimizer levenbergMarquardtOptimizer0 = new LevenbergMarquardtOptimizer(0.0, 0.0, Double.POSITIVE_INFINITY, 0.0, (-974.153570237));
assertEquals(0.0, levenbergMarquardtOptimizer0.getChiSquare(), 0.01);
}
@Test(timeout = 4000)
public void test2() throws Throwable {
LevenbergMarquardtOptimizer levenbergMarquardtOptimizer0 = new LevenbergMarquardtOptimizer();
assertEquals(0.0, levenbergMarquardtOptimizer0.getChiSquare(), 0.01);
}
@Test(timeout = 4000)
public void test3() throws Throwable {
LevenbergMarquardtOptimizer levenbergMarquardtOptimizer0 = new LevenbergMarquardtOptimizer(695.609196, 695.609196, 1.0E-4);
// Undeclared exception!
// try {
levenbergMarquardtOptimizer0.doOptimize();
// fail("Expecting exception: NullPointerException");
// } catch(NullPointerException e) {
// //
// // no message in exception (getMessage() returned null)
// //
// verifyException("org.apache.commons.math3.optim.nonlinear.vector.MultivariateVectorOptimizer", e);
// }
}
@Test(timeout = 4000)
public void test4() throws Throwable {
LevenbergMarquardtOptimizer levenbergMarquardtOptimizer0 = new LevenbergMarquardtOptimizer((ConvergenceChecker<PointVectorValuePair>) null);
assertEquals(0.0, levenbergMarquardtOptimizer0.getChiSquare(), 0.01);
}
}
| [
"pouria.derakhshanfar@gmail.com"
] | pouria.derakhshanfar@gmail.com |
ba7e607f692dd70999d80aa1132b04d97e9886fe | 54049f14d790bdc6532bece8b59cce9a8410dfff | /srp/src/test/benchmark/BenchmarkHashsetVsBooleanArray.java | 70c757ca64fbacabbd3de3d39fc7d8f0a573359c | [] | no_license | RodrigoLab/snowgoose | 82674a6e4e38cb3e453dc24fc721f653c67e13b3 | c780adc2c219f65bd571f664eeff112b1be592b7 | refs/heads/develop | 2021-01-17T07:01:18.844096 | 2016-10-27T20:41:02 | 2016-10-27T20:41:02 | 16,417,069 | 0 | 0 | null | 2016-10-27T20:41:02 | 2014-01-31T18:51:21 | Java | UTF-8 | Java | false | false | 8,139 | java | package test.benchmark;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import srp.core.DataImporter;
import srp.evolution.shortreads.AlignmentMapping;
import com.google.common.primitives.Ints;
import dr.evolution.alignment.Alignment;
import dr.math.MathUtils;
/*
*
* count: number of random numbers, depth for each position
* Element: total size of array
For count: 100 Element:100 Use HashSet: 152 0.0152
For count: 1000 Element:1000 Use HashSet: 698 0.0698
For count: 1000 Element:10000 Use HashSet: 1255 0.1255
For count: 1000 Element:100000 Use HashSet: 947 0.0947
For count: 10000 Element:1000000 Use HashSet: 9213 0.9213
For count: 100000 Element:10000 Use HashSet: 54520 5.452
For count: 100 Element:100 Use boolean[]: 99 0.0099
For count: 1000 Element:1000 Use boolean[]: 275 0.0275
For count: 1000 Element:10000 Use boolean[]: 444 0.0444
For count: 1000 Element:100000 Use boolean[]: 624 0.0624
For count: 10000 Element:10000 Use boolean[]: 2965 0.2965
For count: 10000 Element:100000 Use boolean[]: 3163 0.3163
For count: 10000 Element:1000000 Use boolean[]: 6523 0.6523
For count: 10000 Element:10000000 Use boolean[]: 49110 4.911
For count: 100000 Element:1000 Use boolean[]: 27673 2.7673
For count: 100000 Element:10000 Use boolean[]: 27644 2.7644
For count: 100000 Element:100000 Use boolean[]: 28021 2.8021
For count: 100 Element:100 Reuse HashSet: 170 0.017
For count: 1000 Element:1000 Reuse HashSet: 697 0.0697
For count: 1000 Element:10000 Reuse HashSet: 679 0.0679
For count: 1000 Element:100000 Reuse HashSet: 669 0.0669
For count: 1000 Element:1000000 Reuse HashSet: 892 0.0892
For count: 1000 Element:10000000 Reuse HashSet: 858 0.0858
For count: 1000 Element:10000000 Reuse HashSet: 858 0.0858
For count: 10000 Element:10000 Reuse HashSet: 6210 0.621
For count: 10000 Element:100000 Reuse HashSet: 7051 0.7051
For count: 10000 Element:1000000 Reuse HashSet: 6757 0.6757
For count: 10000 Element:10000000 Reuse HashSet: 6550 0.655
For count: 100000 Element:1000 Reuse HashSet: 37950 3.795
For count: 100000 Element:10000 Reuse HashSet: 47168 4.7168
For count: 100000 Element:100000 Reuse HashSet: 97540 9.754
700 reads, ~130-150x in the middle
AlignmentMapping with boolean[]: 3274 0.003274
AlignmentMapping with HashMap: 30020 0.03002
5000 reads
AlignmentMapping with boolean[]: 3540 0.0354
AlignmentMapping with HashMap: 26402 0.26402
1M reads??
*/
public class BenchmarkHashsetVsBooleanArray {
public static void main(String[] args) throws Exception {
// int ite = (int) 1e5;
basicTest();
//
// AlignmentMapping aMap = setup();
// useBooleanMapping(ite, 12, aMap);
// useHashMapMapping(ite, 12, aMap);
}
private static void useBooleanMapping(int ite, int swapLength, AlignmentMapping aMap) {
// System.out.print("For count: "+totalCount +"\tElement:"+ totalElements +"\t");
long time1 = System.currentTimeMillis();
boolean[] srpSwitch = new boolean[aMap.getSrpCount()];
int[] twoPositions = new int[2];
int hapLength = aMap.getLength();
for (int t = 0; t < ite; t++) {
twoPositions[0] = MathUtils.nextInt(hapLength - swapLength);
twoPositions[1]= twoPositions[0] + swapLength;
Arrays.fill(srpSwitch, false);
for (int k = twoPositions[0]; k < twoPositions[1]; k++) {
ArrayList<Integer> mapToSrp = aMap.getMapToSrp(k);
// System.out.println("Site: "+k +"\t"+ mapToSrp.size());
for (int i : mapToSrp) {
srpSwitch[i] = true;
}
}
// for (int i = 0; i < totalCount; i++) {
// int next = MathUtils.nextInt(totalElements);
// indicator[next]=true;
// }
}
long time2 = System.currentTimeMillis();
System.out.println("AlignmentMapping with boolean[]:\t"+(time2 - time1) +"\t"+ (time2 - time1)/((double)(ite)) );
}
private static void useHashMapMapping(int ite, int swapLength, AlignmentMapping aMap) {
// System.out.print("For count: "+totalCount +"\tElement:"+ totalElements +"\t");
long time1 = System.currentTimeMillis();
int[] twoPositions = new int[2];
Set<Integer> allSrpPos = new HashSet<Integer>();
int hapLength = aMap.getLength();
for (int t = 0; t < ite; t++) {
twoPositions[0] = MathUtils.nextInt(hapLength - swapLength);
twoPositions[1]= twoPositions[0] + swapLength;
allSrpPos.clear();
for (int i = twoPositions[0]; i < twoPositions[1]; i++) {
ArrayList<Integer> mapToSrp = aMap.getMapToSrp(i);
allSrpPos.addAll(mapToSrp);
}
}
long time2 = System.currentTimeMillis();
System.out.println("AlignmentMapping with HashMap:\t"+(time2 - time1) +"\t"+ (time2 - time1)/((double)(ite)) );
}
private static AlignmentMapping setup() throws Exception{
String dataDir = "/home/sw167/workspaceSrp/ABI/unittest/";
String shortReadFile = "benchmark_5000Srp.fasta";
DataImporter dataImporter = new DataImporter(dataDir);
Alignment shortReads = dataImporter.importShortReads(shortReadFile);
AlignmentMapping aMap = new AlignmentMapping(shortReads);
return aMap;
}
private static void basicTest(){
int ite = 10000;
// useBoolean(ite, 100, 100);
// useBoolean(ite, 1000, 1000);
useBoolean(ite, 1000, 10000);
useBoolean(ite, 1000, 100000);
// useBoolean(ite, 10000, 10000);
// useBoolean(ite, 10000, 100000);
// useBoolean(ite, 10000, 1000000);
// useBoolean(ite, 10000, 10000000);
// useBoolean(ite, 100000, 1000);
// useBoolean(ite, 100000, 10000);
// useBoolean(ite, 100000, 100000);
//
//
// useHashSet(ite, 100, 100);
// useHashSet(ite, 1000, 1000);
// useHashSet(ite, 1000, 10000);
// useHashSet(ite, 1000, 100000);
// useHashSet(ite, 10000, 1000000);
// useHashSet(ite, 100000, 10000);
//
// reuseHashSet(ite, 100, 100);
// reuseHashSet(ite, 1000, 1000);
// reuseHashSet(ite, 10000, 10000);
// reuseHashSet(ite, 10000, 100000);
// reuseHashSet(ite, 10000, 1000000);
// reuseHashSet(ite, 10000, 10000000);
// reuseHashSet(ite, 10000, 1000000);
// useBoolean(ite, 100000, 1000);
// useBoolean(ite, 100000, 10000);
// useBoolean(ite, 100000, 100000);
// reuseHashSet(ite, 100000, 1000);
// reuseHashSet(ite, 100000, 10000);
// reuseHashSet(ite, 100000, 100000);
}
private static void useHashSet(int ite, int totalCount, int totalElements) {
System.out.print("For count: "+totalCount +"\tElement:"+ totalElements +"\t");
long time1 = System.currentTimeMillis();
for (int t = 0; t < ite; t++) {
HashSet<Integer> generated = new HashSet<Integer>();
for (int i = 0; i < totalCount; i++) {
Integer next = MathUtils.nextInt(totalElements);
generated.add(next);
}
int[] uniqueArray = Ints.toArray(generated);
}
long time2 = System.currentTimeMillis();
System.out.println("Use HashSet:\t"+(time2 - time1) +"\t"+ (time2 - time1)/((double)(ite)) );
}
private static void reuseHashSet(int ite, int totalCount, int totalElements) {
System.out.print("For count: "+totalCount +"\tElement:"+ totalElements +"\t");
long time1 = System.currentTimeMillis();
HashSet<Integer> generated = new HashSet<Integer>();
for (int t = 0; t < ite; t++) {
generated.clear();
for (int i = 0; i < totalCount; i++) {
Integer next = MathUtils.nextInt(totalElements);
generated.add(next);
}
int[] uniqueArray = Ints.toArray(generated);
}
long time2 = System.currentTimeMillis();
System.out.println("Reuse HashSet:\t"+(time2 - time1) +"\t"+ (time2 - time1)/((double)(ite)) );
}
private static void useBoolean(int ite, int totalCount, int totalElements) {
System.out.print("For count: "+totalCount +"\tElement:"+ totalElements +"\t");
long time1 = System.currentTimeMillis();
for (int t = 0; t < ite; t++) {
boolean[] indicator = new boolean[totalElements];
Arrays.fill(indicator, false);
for (int i = 0; i < totalCount; i++) {
int next = MathUtils.nextInt(totalElements);
indicator[next]=true;
}
}
long time2 = System.currentTimeMillis();
System.out.println("Use boolean[]:\t"+(time2 - time1) +"\t"+ (time2 - time1)/((double)(ite)) );
}
}
| [
"stevenhwu@gmail.com"
] | stevenhwu@gmail.com |
a8074e6344e0825aab9e919206c31f343eb5ba30 | 65437ff42acc1ed0ba4c89055b6dc08dbf07198b | /src/main/java/com/ghx/auto/cm/ui/sso/page/CorexUserManagementPage.java | 81bf4facd3d9fc4efcf282f65ce96835d0fd9f61 | [] | no_license | DreamNk/auto-cm | 352f77bbe883cd6dfab77f433870fbad0225060f | d5f944c5465cf863806434bfaca3f19fda69ba5b | refs/heads/master | 2020-09-29T20:56:44.226535 | 2019-12-10T13:00:54 | 2019-12-10T13:00:54 | 227,121,131 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 978 | java | package com.ghx.auto.cm.ui.sso.page;
import org.openqa.selenium.By;
import com.ghx.auto.cm.ui.page.CMAbstractPage;
public class CorexUserManagementPage extends CMAbstractPage<CorexUserManagementPage> {
private By productTitle = By.id("headerUsersTitle");
private By solutionSelector = By.xpath("//*[@id='headerSwitcher']/i");
private By vendormateCredentialingOption = By.linkText("Vendormate Credentialing");
//verify product header name
public CorexUserManagementPage verify_product_name (String name) {
wait_until(5);
verify_element_by_text(productTitle, name);
return this;
}
// click solution selector
public CorexUserManagementPage click_solution_selector() {
wait_until(3);
click(solutionSelector);
return this;
}
//to click product from solution selector
public CorexUserManagementPage select_option_from_solution_selector() {
wait_until(3);
click(vendormateCredentialingOption);
return this;
}
}
| [
"nban@netchexonline.com"
] | nban@netchexonline.com |
7ea9fc18393b680e68205f2fdadfb6be0f281283 | fb5bfb5b4cf7a118cb858490953e69517d8060a4 | /src/ch15/ex01/local/Auto.java | 5b4a7dcb09519efe9003df936cf5ca2a2cfccb73 | [] | no_license | v777779/jbook | 573dd1e4e3847ed51c9b6b66d2b098bf8eb58af5 | 09fc56a27e9aed797327f01ea955bdf1815d0d54 | refs/heads/master | 2021-09-19T08:14:16.299382 | 2018-07-25T14:03:12 | 2018-07-25T14:03:12 | 86,017,001 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 163 | java | package ch15.ex01.local;
/**
* Created by V1 on 14-Mar-17.
*/
public class Auto {
@Override
public String toString() {
return "Auto{}";
}
}
| [
"vadim.v.voronov@gmail.com"
] | vadim.v.voronov@gmail.com |
8cbeacf8259116c6644e50024e4317c510797e34 | eeca771cfa828884be1c56e732d63a451f179c52 | /java-web-project/src09/main/java/com/eomcs/lms/filter/CharacterEncodingFilter.java | 1b3c7d2a8f99f3d6059a68979f3787f4c26f8915 | [] | no_license | eikhyeonchoi/bitcamp-java-2018-12 | 54e03db59224d8378de0a5a392917f4ae87cd72f | 66d6bce206d8de7b09c482f4695af6f3cd1acf14 | refs/heads/master | 2021-08-06T17:17:30.648837 | 2020-04-30T13:12:48 | 2020-04-30T13:12:48 | 163,650,669 | 1 | 2 | null | 2020-04-30T17:33:35 | 2018-12-31T08:00:40 | Java | UTF-8 | Java | false | false | 1,194 | java | package com.eomcs.lms.filter;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
//@WebFilter("/*") // web.xml에 필터를 선언하였다.
public class CharacterEncodingFilter implements Filter {
FilterConfig filterConfig;
String encoding;
@Override
public void init(FilterConfig filterConfig) throws ServletException {
this.filterConfig = filterConfig;
encoding = filterConfig.getInitParameter("encoding");
if (encoding == null) {
encoding = "UTF-8";
}
}
@Override
public void doFilter(
ServletRequest request,
ServletResponse response,
FilterChain chain)
throws IOException, ServletException {
// POST 요청으로 들어오는 경우 데이터의 인코딩을 초기화 파라미터에 지정한 값으로 설정한다.
request.setCharacterEncoding(this.encoding);
// 그런 후에 다음 필터나 또는 최종 목적지인 서블릿을 실행한다.
chain.doFilter(request, response);
}
}
| [
"eikhyeon.choi@gmail.com"
] | eikhyeon.choi@gmail.com |
c75b21d98a5d20e68ace62517d21d2452104f116 | 3e355a798304584431e5e5a1f1bc141e16c330fc | /AL-Game/data/scripts/system/handlers/quest/eltnen/_1354PraticalAerobatics.java | 322cf408a34ac3397758ba929087fa638ceec50b | [] | no_license | webdes27/Aion-Lightning-4.6-SRC | db0b2b547addc368b7d5e3af6c95051be1df8d69 | 8899ce60aae266b849a19c3f93f47be9485c70ab | refs/heads/master | 2021-09-14T19:16:29.368197 | 2018-02-27T16:05:28 | 2018-02-27T16:05:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,452 | java | /**
* This file is part of Aion-Lightning <aion-lightning.org>.
*
* Aion-Lightning is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Aion-Lightning is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License
* along with Aion-Lightning.
* If not, see <http://www.gnu.org/licenses/>.
*/
package quest.eltnen;
import com.aionemu.gameserver.model.gameobjects.Npc;
import com.aionemu.gameserver.model.gameobjects.player.Player;
import com.aionemu.gameserver.questEngine.handlers.QuestHandler;
import com.aionemu.gameserver.model.DialogAction;
import com.aionemu.gameserver.questEngine.model.QuestEnv;
import com.aionemu.gameserver.questEngine.model.QuestState;
import com.aionemu.gameserver.questEngine.model.QuestStatus;
import com.aionemu.gameserver.services.QuestService;
/**
* @author Ritsu
*
*/
public class _1354PraticalAerobatics extends QuestHandler {
private final static int questId = 1354;
private String[] rings = {"ERACUS_TEMPLE_210020000_1", "ERACUS_TEMPLE_210020000_2",
"ERACUS_TEMPLE_210020000_3", "ERACUS_TEMPLE_210020000_4", "ERACUS_TEMPLE_210020000_5",
"ERACUS_TEMPLE_210020000_6", "ERACUS_TEMPLE_210020000_7"};
public _1354PraticalAerobatics() {
super(questId);
}
@Override
public void register() {
qe.registerQuestNpc(203983).addOnQuestStart(questId);
qe.registerQuestNpc(203983).addOnTalkEvent(questId);
qe.registerOnQuestTimerEnd(questId);
for (String ring : rings) {
qe.registerOnPassFlyingRings(ring, questId);
}
}
@Override
public boolean onPassFlyingRingEvent(QuestEnv env, String flyingRing) {
Player player = env.getPlayer();
QuestState qs = player.getQuestStateList().getQuestState(questId);
if (qs != null && qs.getStatus() == QuestStatus.START) {
if (rings[0].equals(flyingRing)) {
changeQuestStep(env, 1, 2, false);
return true;
} else if (rings[1].equals(flyingRing)) {
changeQuestStep(env, 2, 3, false);
return true;
} else if (rings[2].equals(flyingRing)) {
changeQuestStep(env, 3, 4, false);
return true;
} else if (rings[3].equals(flyingRing)) {
changeQuestStep(env, 4, 5, false);
return true;
} else if (rings[4].equals(flyingRing)) {
changeQuestStep(env, 5, 6, false);
return true;
} else if (rings[5].equals(flyingRing)) {
changeQuestStep(env, 6, 7, false);
return true;
} else if (rings[6].equals(flyingRing)) {
qs.setQuestVarById(0, 8);
changeQuestStep(env, 8, 8, true);
QuestService.questTimerEnd(env);
return true;
}
}
return false;
}
@Override
public boolean onQuestTimerEndEvent(QuestEnv env) {
Player player = env.getPlayer();
QuestState qs = player.getQuestStateList().getQuestState(questId);
if (qs == null) {
return false;
}
qs.setQuestVarById(0, 0);
updateQuestStatus(env);
return true;
}
@Override
public boolean onDialogEvent(QuestEnv env) {
final Player player = env.getPlayer();
int targetId = 0;
DialogAction dialog = env.getDialog();
if (env.getVisibleObject() instanceof Npc) {
targetId = ((Npc) env.getVisibleObject()).getNpcId();
}
QuestState qs = player.getQuestStateList().getQuestState(questId);
if (qs == null || qs.getStatus() == QuestStatus.NONE) {
if (targetId == 203983) {
if (dialog == DialogAction.QUEST_SELECT) {
return sendQuestDialog(env, 1011);
} else {
return sendQuestStartDialog(env);
}
}
} else if (qs.getStatus() == QuestStatus.START) {
if (targetId == 203983) {
switch (dialog) {
case QUEST_SELECT:
if (qs.getQuestVarById(0) == 0) {
return sendQuestDialog(env, 1003);
}
if (qs.getQuestVarById(0) == 8) {
return sendQuestDialog(env, 2375);
}
case SETPRO1:
if (qs.getQuestVarById(0) == 0) {
QuestService.questTimerStart(env, 120);
return defaultCloseDialog(env, 0, 1);
}
case SELECT_QUEST_REWARD:
return sendQuestEndDialog(env);
}
}
} else if (qs.getStatus() == QuestStatus.REWARD) {
if (targetId == 203983) {
return sendQuestEndDialog(env);
}
}
return false;
}
}
| [
"michelgorter@outlook.com"
] | michelgorter@outlook.com |
f692b1f213b08c722873ffc1ab6b3df2cffca381 | 34e0c4986f198d578ae3ca536c67e1f7b93f8ac8 | /ads-poo2/basico/src/aula26/ProdutoControl.java | 51d19c19d8feb8d35dc78e36d9c52a3f447a962d | [] | no_license | paulojrlm/fecaf-2019-2s | f9a95e03bcb18b929f4039fda7b17768ab3061ba | cd0feece9d0d15c5b4124f4be1234164c6bc6690 | refs/heads/master | 2020-09-13T16:33:41.949968 | 2019-11-20T01:31:43 | 2019-11-20T01:31:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 599 | java | package aula26;
import java.util.List;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
public class ProdutoControl {
private ProdutoDAO produtoDao = new ProdutoDAOImpl();
private ObservableList<Produto> lista =
FXCollections.observableArrayList();
public void adicionar(Produto p) {
produtoDao.adicionar(p);
}
public List<Produto> pesquisarPorNome(String nome) {
List<Produto> li = produtoDao.pesquisarPorNome(nome);
lista.clear();
lista.addAll(li);
return li;
}
public ObservableList<Produto> getLista() {
return lista;
}
}
| [
"antoniorcn@hotmail.com"
] | antoniorcn@hotmail.com |
462100c82eb6575a4f9ca23d0ec07f0ca97a5054 | 0105fb4be6f52cc17e7405293d888ef44cf7bd21 | /microservice-parent2/entity/src/main/java/com/miduchina/wrd/dto/analysis/ReportKeywordAnalysisTaskDto.java | 81e57a951f23865a239cd98b2847611bda38b42b | [] | no_license | Ityho/test | 10d70169ba8b58fd07bbbf6e2ea403c796398fbc | ed53ef344585453efc6851b250ae151468610204 | refs/heads/master | 2021-06-24T09:09:51.659625 | 2019-11-13T12:24:42 | 2019-11-13T12:24:42 | 218,066,071 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,319 | java | package com.miduchina.wrd.dto.analysis;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
/**
* Created by shitao on 2019-05-30 17:15.
*
* @author shitao
*/
public class ReportKeywordAnalysisTaskDto {
@ApiModelProperty(value = "任务id")
private int taskId;
@ApiModelProperty(value = "用户ID")
private int userId;
@ApiModelProperty(value = "任务唯一标识")
private String taskTicket;
@ApiModelProperty(value = "状态")
private int status = 1;
@ApiModelProperty(value = "创建时间")
private Date createTime;
@ApiModelProperty(value = "更新时间")
private Date updateTime;
@ApiModelProperty(value = "关键词")
private String keyword;
@ApiModelProperty(value = "排除关键词")
private String filterKeyword;
@ApiModelProperty(value = "进度")
private Double schedule = 0.00;
@ApiModelProperty(value = "进度说明")
private String scheduleTips;
@ApiModelProperty(value = "平台")
private String platform;
@ApiModelProperty(value = "任务状态")
private int analysisStatus = 1;
@ApiModelProperty(value = "标题")
private String incidentTitle;
//数据库无此字段
private int analysisTotalConsumeExpect;
private int analysisSolrFirstCountExpect;
}
| [
"yhoxiaohaio@163.com"
] | yhoxiaohaio@163.com |
a8ff0d6b008ec00201092a38d997de4caa77d8ac | 6b4125b3d69cbc8fc291f93a2025f9f588d160d3 | /components/friend/src/main/java/org/limewire/friend/impl/FriendConnectionFactoryRegistryImpl.java | 24c1cdde74af24ccce10ee31543f006e406566d9 | [] | no_license | mnutt/limewire5-ruby | d1b079785524d10da1b9bbae6fe065d461f7192e | 20fc92ea77921c83069e209bb045b43b481426b4 | refs/heads/master | 2022-02-10T12:20:02.332362 | 2009-09-11T15:47:07 | 2009-09-11T15:47:07 | 89,669 | 2 | 3 | null | 2022-01-27T16:18:46 | 2008-12-12T19:40:01 | Java | UTF-8 | Java | false | false | 1,702 | java | package org.limewire.friend.impl;
import java.util.HashMap;
import java.util.Map;
import org.limewire.concurrent.ListeningFuture;
import org.limewire.friend.api.FriendConnection;
import org.limewire.friend.api.FriendConnectionConfiguration;
import org.limewire.friend.api.FriendConnectionFactory;
import org.limewire.friend.api.FriendConnectionFactoryRegistry;
import org.limewire.friend.api.Network;
import com.google.inject.Singleton;
@Singleton
class FriendConnectionFactoryRegistryImpl implements FriendConnectionFactoryRegistry, FriendConnectionFactory {
private final Map<Network.Type, FriendConnectionFactory> factories =
new HashMap<Network.Type, FriendConnectionFactory>();
@Override
public void register(Network.Type type, FriendConnectionFactory factory) {
factories.put(type, factory);
}
private FriendConnectionFactory getFactory(FriendConnectionConfiguration configuration) {
FriendConnectionFactory factory = factories.get(configuration.getType());
if (factory != null) {
return factory;
}
throw new IllegalArgumentException("no factory for: " + configuration);
}
@Override
public ListeningFuture<FriendConnection> login(FriendConnectionConfiguration configuration) {
return getFactory(configuration).login(configuration);
}
@Override
public void register(FriendConnectionFactoryRegistry registry) {
throw new UnsupportedOperationException();
}
@Override
public ListeningFuture<String> requestLoginUrl(FriendConnectionConfiguration configuration) {
return getFactory(configuration).requestLoginUrl(configuration);
}
}
| [
"michael@nuttnet.net"
] | michael@nuttnet.net |
8c99738055a5fb7b6dafa98bfa37fb4ec3ce51e0 | 96f50632c678f7a6232e9fdb5ccd9b5de2288279 | /app/src/main/java/com/tshang/peipei/storage/database/table/PeiPeiSessionTable.java | 6bd193e98b427ed686adf05d8aa1aa45b5f9afe6 | [] | no_license | iuvei/peipei | 629c17c2f8ddee98d4747d2cbec37b2209e78af4 | 0497dc9389287664e96e9d14381cd6078e114979 | refs/heads/master | 2020-11-26T22:20:32.990823 | 2019-03-16T07:19:40 | 2019-03-16T07:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,763 | java | package com.tshang.peipei.storage.database.table;
/**
* @Title: PeiPeiSessionTable.java
*
* @Description: 私聊会话列表
*
* @author allen
*
* @date 2014-7-23 下午2:25:12
*
* @version V1.0
*/
public class PeiPeiSessionTable {
public static final String TABLE_NAME = "peipeisession"; //会话列表表名
public static final String TableVer = "TableVer"; //表的版本
public static final String UserID = "UserID"; //用户uid 群聊为群id
public static final String UnreadCount = "UnreadCount"; //未读条数
public static final String LatestUpdateTime = "LatestUpdateTime"; //最新更改时间
public static final String SessionData = "SessionData"; //回话内容
public static final String Sex = "SessionSex"; // 用户性别
public static final String Nick = "Nick"; // 用户名字 群聊为群名字
public static final String Type = "Type"; //数据类型 0为私聊会话,1为群聊绘画
public String getCreateSQL() {
return "CREATE TABLE IF NOT EXISTS " + TABLE_NAME + " ( " + UserID + " INTEGER PRIMARY KEY NOT NULL, " + TableVer + " INTEGER NOT NULL,"
+ UnreadCount + " INTEGER NOT NULL, " + LatestUpdateTime + " INTEGER NOT NULL, " + Sex + " INTEGER , " + Nick + " TEXT , "
+ SessionData + " TEXT , " + Type + " INTEGER DEFAULT 0);";
}
public String getDropSQL() {
return "DROP TABLE IF EXISTS " + TABLE_NAME;
}
public String getColumns() {
return TableVer + "," + UserID + "," + UnreadCount + "," + LatestUpdateTime + "," + SessionData + "," + Sex + "," + Nick;
}
public String getColumns4() {
return TableVer + "," + UserID + "," + UnreadCount + "," + LatestUpdateTime + "," + SessionData + "," + Sex + "," + Nick + "," + Type;
}
}
| [
"xumin2@evergrande.com"
] | xumin2@evergrande.com |
662b68fc553e7fd668a213e93e7e87977845e070 | 1e83f3c3c9196056846155e44fbfc5250b0fc26f | /src/main/java/com/kgisl/jpa/jpaonetoonedemo/JpaOneToOneDemoApplication.java | 72b26a1811f8e892adf46958b740d6bcd016c49b | [] | no_license | meenaanand/jpaonetoone | 0836e9d7e3435380707ffc61c1308611d33f9936 | a02706d4d2f344bbf862af04c02c54e2c65635c3 | refs/heads/master | 2020-03-20T09:54:42.259158 | 2018-06-14T12:00:07 | 2018-06-14T12:00:07 | 137,352,431 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,904 | java | package com.kgisl.jpa.jpaonetoonedemo;
import com.kgisl.jpa.jpaonetoonedemo.model.Gender;
import com.kgisl.jpa.jpaonetoonedemo.model.User;
import com.kgisl.jpa.jpaonetoonedemo.model.UserProfile;
import com.kgisl.jpa.jpaonetoonedemo.repository.UserRepository;
import com.kgisl.jpa.jpaonetoonedemo.repository.UserProfileRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import java.util.Calendar;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class JpaOneToOneDemoApplication implements CommandLineRunner {
@Autowired
private UserRepository userRepository;
@Autowired
private UserProfileRepository userProfileRepository;
public static void main(String[] args) {
SpringApplication.run(JpaOneToOneDemoApplication.class, args);
}
@Override
public void run(String... args) throws Exception {
userProfileRepository.deleteAllInBatch();
userRepository.deleteAllInBatch();
//=========================================
// Create a User instance
User user = new User("Rajeev", "Singh", "rajeev@callicoder.com",
"MY_SUPER_SECRET_PASSWORD");
Calendar dateOfBirth = Calendar.getInstance();
dateOfBirth.set(1992, 7, 21);
// Create a UserProfile instance
UserProfile userProfile = new UserProfile("+91-8197882053", Gender.MALE, dateOfBirth.getTime(),
"747", "2nd Cross", "Golf View Road, Kodihalli", "Bangalore",
"Karnataka", "India", "560008");
// Set child reference(userProfile) in parent entity(user)
user.setUserProfile(userProfile);
// Set parent reference(user) in child entity(userProfile)
userProfile.setUser(user);
// Save Parent Reference (which will save the child as well)
userRepository.save(user);
//=========================================
}
} | [
"Trainee@KGFSL.COM"
] | Trainee@KGFSL.COM |
848a942b3c1d5902312d7546ab7a16623acd2b8c | 8cd17c6e7169fc4a63eaa715209150cdd2cf71bc | /Assignments/Assignment4/src/ro/ase/cts/assignment4/external/BankingInterface.java | 4d2af289d3e5c340d9d01e3321fb6e124c4db215 | [
"MIT"
] | permissive | Software-Quality-and-Testing/cts-2020 | ce6e0f2856fdad84642315e13b77475444ffeedf | 87e2b2d403bd13adfb92805668a03f9cb078aac0 | refs/heads/master | 2022-12-24T22:04:49.177163 | 2020-05-27T11:19:32 | 2020-05-27T11:19:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 600 | java | package ro.ase.cts.assignment4.external;
public interface BankingInterface {
/*
*
* @return true if the iban is OK
* @return false if the iban is not OK
*
*/
public abstract boolean isValidIBAN(String iban);
/*
*
* @return 1 if the payment succeeded
* @return 0 if the payment was not processed by the service
* @return -1 if the payment was rejected by the bank
*
* throws PaymentsException if the destinationIBAN or the sourceIBAN are not ok
*
*/
public abstract int payOnline(String sourceIBAN, String destinationIBAN) throws PaymentsException;
}
| [
"catalin.boja@hotmail.com"
] | catalin.boja@hotmail.com |
c720a5443a1d2c5b25b2af0abffc8b038174f5a2 | d1a6d1e511df6db8d8dd0912526e3875c7e1797d | /genny_JavaWithoutLambdasApi21/applicationModule/src/main/java/applicationModulepackageJava16/Foo481.java | e9208ee9d7ff8ada07c5bd7ef62f0911158b1cfd | [] | no_license | NikitaKozlov/generated-project-for-desugaring | 0bc1443ab3ddc84cd289331c726761585766aea7 | 81506b3711004185070ca4bb9a93482b70011d36 | refs/heads/master | 2020-03-20T00:35:06.996525 | 2018-06-12T09:30:37 | 2018-06-12T09:30:37 | 137,049,317 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 348 | java | package applicationModulepackageJava16;
public class Foo481 {
public void foo0() {
new applicationModulepackageJava16.Foo480().foo5();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public void foo4() {
foo3();
}
public void foo5() {
foo4();
}
}
| [
"nikita.e.kozlov@gmail.com"
] | nikita.e.kozlov@gmail.com |
64441deb23e6d3479da64665b5819214123f8c79 | ba55269057e8dc503355a26cfab3c969ad7eb278 | /POSNirvanaORM/src/com/nirvanaxp/types/entities/CdoMgmt_.java | bbc8f3033471661d2af070fbad20b981db2274c6 | [
"Apache-2.0"
] | permissive | apoorva223054/SF3 | b9db0c86963e549498f38f7e27f65c45438b2a71 | 4dab425963cf35481d2a386782484b769df32986 | refs/heads/master | 2022-03-07T17:13:38.709002 | 2020-01-29T05:19:06 | 2020-01-29T05:19:06 | 236,907,773 | 0 | 0 | Apache-2.0 | 2022-02-09T22:46:01 | 2020-01-29T05:10:51 | Java | UTF-8 | Java | false | false | 990 | java | package com.nirvanaxp.types.entities;
import java.math.BigInteger;
import java.util.Date;
import javax.annotation.Generated;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@Generated(value="Dali", date="2019-01-08T12:02:23.565+0530")
@StaticMetamodel(CdoMgmt.class)
public class CdoMgmt_ {
public static volatile SingularAttribute<CdoMgmt, Integer> id;
public static volatile SingularAttribute<CdoMgmt, String> cdoDescription;
public static volatile SingularAttribute<CdoMgmt, String> cdoName;
public static volatile SingularAttribute<CdoMgmt, Date> created;
public static volatile SingularAttribute<CdoMgmt, String> createdBy;
public static volatile SingularAttribute<CdoMgmt, Date> updated;
public static volatile SingularAttribute<CdoMgmt, String> updatedBy;
public static volatile SingularAttribute<CdoMgmt, BigInteger> versionNumber;
public static volatile SingularAttribute<CdoMgmt, Integer> isLocationSpecific;
}
| [
"naman223054@gmail.com"
] | naman223054@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.