text:
package com.baosight.sts.st.xt.domain;

import java.math.BigDecimal;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;

/**
 * TSsCustomerRegister Domain
 *
 *
 * @author generated by tangram
 */

public class TSsCustomerRegister extends DaoEPBase {

	private BigDecimal invoiceQuota;

	// VARCHAR2 : areaCode
	// 地区代码(区域)
	private java.lang.String areaCode;

	// VARCHAR2 : artPerson
	// 法人
	private java.lang.String artPerson;

	// VARCHAR2 : artPersonPre
	// 法人代表
	private java.lang.String artPersonPre;

	// VARCHAR2 : assSaleFlag
	// 辅助销售标记
	private java.lang.String assSaleFlag;

	// VARCHAR2 : bankAcctNum
	// 银行开户行帐号
	private java.lang.String bankAcctNum;

	// VARCHAR2 : bankName
	// 开户行名称
	private java.lang.String bankName;

	// VARCHAR2 : boss
	// 公司负责人
	private java.lang.String boss;

	// VARCHAR2 : contactAddr
	// 公司联系地址
	private java.lang.String contactAddr;

	// VARCHAR2 : contactMobile
	// 联系人手机
	private java.lang.String contactMobile;

	// VARCHAR2 : contactPerson
	// 公司联系人
	private java.lang.String contactPerson;

	// VARCHAR2 : contactPersonCid
	// 公司联系人身份证
	private java.lang.String contactPersonCid;

	// VARCHAR2 : contactTele
	// 公司联系电话
	private java.lang.String contactTele;

	// DATE : createDate
	// 创建日期
	private java.lang.String createDate;

	// VARCHAR2 : createPerson
	// 创建人
	private java.lang.String createPerson;

	// VARCHAR2 : creditClass
	// 信用等级
	private java.lang.String creditClass;

	// VARCHAR2 : custAssetType
	// 客户资产类别:表示用户的资产属性 10--国有 20--集体 30--外商独资 40--中外合资 50--个体私营 99--其他
	private java.lang.String custAssetType;

	// VARCHAR2 : custClass
	// 客户级别
	private java.lang.String custClass;

	// VARCHAR2 : custEngName
	// 客户名称(英文)
	private java.lang.String custEngName;

	// VARCHAR2 : custInvesterType
	// 客户投资类别:表明用户属于何种投资方式 10--有限 20--股份 30--合伙 40--有限合伙 99--其它的性质
	private java.lang.String custInvesterType;

	// VARCHAR2 : custName
	// 客户名称
	private java.lang.String custName;

	// VARCHAR2 : customerId
	// 客户代码
	private java.lang.String customerId;

	// VARCHAR2 : custShortName
	//
	private java.lang.String custShortName;

	// VARCHAR2 : custStyle
	// 直供 代理 生产用户 流通商
	private java.lang.String custStyle;

	// VARCHAR2 : custType
	// 客户分类:主要用于集团统计之用10--集团20--股份30--贸易分公司99--社会
	private java.lang.String custType;

	// VARCHAR2 : custTypeBs
	// 客户平台类型
	private java.lang.String custTypeBs;

	// VARCHAR2 : email
	// 公司电子邮箱
	private java.lang.String email;

	// VARCHAR2 : epickFlag
	// 电子提单标记
	private java.lang.String epickFlag;

	// VARCHAR2 : faxNum
	// 公司联系传真
	private java.lang.String faxNum;

	// VARCHAR2 : groupCustId
	// 对应集团客户代码
	private java.lang.String groupCustId;

	// VARCHAR2 : groupFlag
	// 集团供应商标识:0否1是,若是集团供应商,则允许税号重复
	private java.lang.String groupFlag;

	// VARCHAR2 : invoiceAcctNum
	// 发票结算户帐号
	private java.lang.String invoiceAcctNum;

	// VARCHAR2 : invoiceBank
	// 发票结算户开户行
	private java.lang.String invoiceBank;

	// VARCHAR2 : invoiceBuildType
	// 发票要求
	private java.lang.String invoiceBuildType;

	// VARCHAR2 : invoicePostType
	// 发票领取方式
	private java.lang.String invoicePostType;

	// VARCHAR2 : invoiceTele
	// 发票电话
	private java.lang.String invoiceTele;

	// VARCHAR2 : invoiceZip
	// 发票邮编
	private java.lang.String invoiceZip;

	// VARCHAR2 : ivoiceAddr
	// 发票地址
	private java.lang.String ivoiceAddr;

	// DATE : modiDate
	// 修改日期
	private java.util.Date modiDate;

	// VARCHAR2 : modiPerson
	// 修改人
	private java.lang.String modiPerson;

	// VARCHAR2 : organizationCode
	// 组织机构证件号
	private java.lang.String organizationCode;

	// VARCHAR2 : paymentTerm
	// 默认付款类型
	private java.lang.String paymentTerm;

	// VARCHAR2 : postCode
	// 公司联系邮编
	private java.lang.String postCode;

	// VARCHAR2 : privinceId
	// 省份代码
	private java.lang.String privinceId;

	// VARCHAR2 : regAddr
	// 注册地址
	private java.lang.String regAddr;

	// VARCHAR2 : regCurrencyId
	// 注册资金币种
	private java.lang.String regCurrencyId;

	// NUMBER : regFund
	// 注册资金
	private java.lang.Double regFund;

	// NUMBER : registerId
	// 注册编号
	private java.lang.Long registerId;

	// VARCHAR2 : registerStatus
	// 注册状态:00--无效,05,未完成,10--新增,20--发送审批,30-通过审批 缺省为10
	private java.lang.String registerStatus;

	// VARCHAR2 : relationPerson
	// 沟通人
	private java.lang.String relationPerson;

	// VARCHAR2 : relationWay
	// 沟通途径
	private java.lang.String relationWay;

	// VARCHAR2 : remark
	// 备注
	private java.lang.String remark;

	// VARCHAR2 : segNo
	// 业务单元代码
	private java.lang.String segNo;

	// VARCHAR2 : settleAcctNum
	// 结算户帐号
	private java.lang.String settleAcctNum;

	// VARCHAR2 : settleBank
	// 结算户开户行
	private java.lang.String settleBank;

	// VARCHAR2 : taxNum
	// 税号
	private java.lang.String taxNum;

	// VARCHAR2 : townId
	// 地级市代码
	private java.lang.String townId;

	// VARCHAR2 : tradeRemark
	// 公司业务说明
	private java.lang.String tradeRemark;

	// VARCHAR2 : transferTerm
	// 默认运输类型
	private java.lang.String transferTerm;

	// DATE : validEndDate
	// 有效终止日期
	private java.util.Date validEndDate;

	// DATE : validStartDate
	// 有效起始日期
	private java.util.Date validStartDate;

	// VARCHAR2 : vocationCode
	// 行业编码
	private java.lang.String vocationCode;

	// VARCHAR2 : web
	// 公司网站地址
	private java.lang.String web;

    // VARCHAR2 : custPersNum
	// 公司员工数
	private java.lang.String custPersNum;

	private java.lang.String subCompNum;

	private java.lang.String custStsType;
	private java.lang.String marketId;
	private java.lang.String customerCode;

	public TSsCustomerRegister() {
		initMetaData();
	}

	public java.lang.String getAreaCode() {
		return areaCode;
	}

	public java.lang.String getArtPerson() {
		return artPerson;
	}

	public java.lang.String getArtPersonPre() {
		return artPersonPre;
	}

	public java.lang.String getAssSaleFlag() {
		return assSaleFlag;
	}

	public java.lang.String getBankAcctNum() {
		return bankAcctNum;
	}

	public java.lang.String getBankName() {
		return bankName;
	}

	public java.lang.String getBoss() {
		return boss;
	}

	public java.lang.String getContactAddr() {
		return contactAddr;
	}

	public java.lang.String getContactMobile() {
		return contactMobile;
	}

	public java.lang.String getContactPerson() {
		return contactPerson;
	}

	public java.lang.String getContactPersonCid() {
		return contactPersonCid;
	}

	public java.lang.String getContactTele() {
		return contactTele;
	}

	public java.lang.String getCreateDate() {
		return createDate;
	}

	public java.lang.String getCreatePerson() {
		return createPerson;
	}

	public java.lang.String getCreditClass() {
		return creditClass;
	}

	public java.lang.String getCustAssetType() {
		return custAssetType;
	}

	public java.lang.String getCustClass() {
		return custClass;
	}

	public java.lang.String getCustEngName() {
		return custEngName;
	}

	public java.lang.String getCustInvesterType() {
		return custInvesterType;
	}

	public java.lang.String getCustName() {
		return custName;
	}

	public java.lang.String getCustomerId() {
		return customerId;
	}

	public java.lang.String getCustShortName() {
		return custShortName;
	}

	public java.lang.String getCustStyle() {
		return custStyle;
	}

	public java.lang.String getCustType() {
		return custType;
	}

	public java.lang.String getCustTypeBs() {
		return custTypeBs;
	}

	public java.lang.String getEmail() {
		return email;
	}

	public java.lang.String getEpickFlag() {
		return epickFlag;
	}

	public java.lang.String getFaxNum() {
		return faxNum;
	}

	public java.lang.String getGroupCustId() {
		return groupCustId;
	}

	public java.lang.String getGroupFlag() {
		return groupFlag;
	}

	public java.lang.String getInvoiceAcctNum() {
		return invoiceAcctNum;
	}

	public java.lang.String getInvoiceBank() {
		return invoiceBank;
	}

	public java.lang.String getInvoiceBuildType() {
		return invoiceBuildType;
	}

	public java.lang.String getInvoicePostType() {
		return invoicePostType;
	}

	public java.lang.String getInvoiceTele() {
		return invoiceTele;
	}

	public java.lang.String getInvoiceZip() {
		return invoiceZip;
	}

	public java.lang.String getIvoiceAddr() {
		return ivoiceAddr;
	}

	public java.util.Date getModiDate() {
		return modiDate;
	}

	public java.lang.String getModiPerson() {
		return modiPerson;
	}

	public java.lang.String getOrganizationCode() {
		return organizationCode;
	}

	public java.lang.String getPaymentTerm() {
		return paymentTerm;
	}

	public java.lang.String getPostCode() {
		return postCode;
	}

	public java.lang.String getPrivinceId() {
		return privinceId;
	}

	public java.lang.String getRegAddr() {
		return regAddr;
	}

	public java.lang.String getRegCurrencyId() {
		return regCurrencyId;
	}

	public java.lang.Double getRegFund() {
		return regFund;
	}

	public java.lang.Long getRegisterId() {
		return registerId;
	}

	public java.lang.String getRegisterStatus() {
		return registerStatus;
	}

	public java.lang.String getRelationPerson() {
		return relationPerson;
	}

	public java.lang.String getRelationWay() {
		return relationWay;
	}

	public java.lang.String getRemark() {
		return remark;
	}

	public java.lang.String getSegNo() {
		return segNo;
	}

	public java.lang.String getSettleAcctNum() {
		return settleAcctNum;
	}

	public java.lang.String getSettleBank() {
		return settleBank;
	}

	public java.lang.String getTaxNum() {
		return taxNum;
	}

	public java.lang.String getTownId() {
		return townId;
	}

	public java.lang.String getTradeRemark() {
		return tradeRemark;
	}

	public java.lang.String getTransferTerm() {
		return transferTerm;
	}

	public java.util.Date getValidEndDate() {
		return validEndDate;
	}

	public java.util.Date getValidStartDate() {
		return validStartDate;
	}

	public java.lang.String getVocationCode() {
		return vocationCode;
	}

	public java.lang.String getWeb() {
		return web;
	}

	public java.lang.String getcustPersNum() {
		return custPersNum;
	}

	public java.lang.String getCustStsType() {
		return custStsType;
	}

	public java.lang.String getSubCompNum() {
		return subCompNum;
	}

	public void initMetaData() {
		EiColumn eiColumn;
		eiColumn = new EiColumn("segNo");
		eiColumn.setDescName("业务单元代码");
		eiColumn.setMaxLength(10);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("registerId");
		eiColumn.setDescName("注册编号");
		eiColumn.setMaxLength(18);
		eiColumn.setNullable(true);
		eiColumn.setScaleLength(0);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("customerId");
		eiColumn.setDescName("客户代码");
		eiColumn.setMaxLength(10);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("custName");
		eiColumn.setDescName("客户名称");
		eiColumn.setMaxLength(100);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("custEngName");
		eiColumn.setDescName("客户名称(英文)");
		eiColumn.setMaxLength(100);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("custShortName");
		eiColumn.setDescName("");
		eiColumn.setMaxLength(60);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("registerStatus");
		eiColumn
				.setDescName("注册状态:00--无效,05,未完成,10--新增,20--发送审批,30-通过审批 缺省为10");
		eiColumn.setMaxLength(2);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("custType");
		eiColumn.setDescName("客户分类:主要用于集团统计之用10--集团20--股份30--贸易分公司99--社会");
		eiColumn.setMaxLength(20);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("custInvesterType");
		eiColumn
				.setDescName("客户投资类别:表明用户属于何种投资方式 10--有限 20--股份 30--合伙 40--有限合伙 99--其它的性质");
		eiColumn.setMaxLength(10);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("custAssetType");
		eiColumn
				.setDescName("客户资产类别:表示用户的资产属性 10--国有 20--集体 30--外商独资 40--中外合资 50--个体私营 99--其他");
		eiColumn.setMaxLength(10);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("custStyle");
		eiColumn.setDescName("直供   代理   生产用户   流通商");
		eiColumn.setMaxLength(10);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("vocationCode");
		eiColumn.setDescName("行业编码");
		eiColumn.setMaxLength(10);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("privinceId");
		eiColumn.setDescName("省份代码");
		eiColumn.setMaxLength(10);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("townId");
		eiColumn.setDescName("地级市代码");
		eiColumn.setMaxLength(10);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("areaCode");
		eiColumn.setDescName("地区代码(区域)");
		eiColumn.setMaxLength(10);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("groupFlag");
		eiColumn.setDescName("集团供应商标识:0否1是,若是集团供应商,则允许税号重复");
		eiColumn.setMaxLength(1);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("groupCustId");
		eiColumn.setDescName("对应集团客户代码");
		eiColumn.setMaxLength(10);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("creditClass");
		eiColumn.setDescName("信用等级");
		eiColumn.setMaxLength(10);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("taxNum");
		eiColumn.setDescName("税号");
		eiColumn.setMaxLength(15);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("regCurrencyId");
		eiColumn.setDescName("注册资金币种");
		eiColumn.setMaxLength(2);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("regFund");
		eiColumn.setDescName("注册资金");
		eiColumn.setMaxLength(14);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("regAddr");
		eiColumn.setDescName("注册地址");
		eiColumn.setMaxLength(100);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("validEndDate");
		eiColumn.setDescName("有效终止日期");
		eiColumn.setMaxLength(7);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("validStartDate");
		eiColumn.setDescName("有效起始日期");
		eiColumn.setMaxLength(7);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("bankAcctNum");
		eiColumn.setDescName("银行开户行帐号");
		eiColumn.setMaxLength(50);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("bankName");
		eiColumn.setDescName("开户行名称");
		eiColumn.setMaxLength(60);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("ivoiceAddr");
		eiColumn.setDescName("发票地址");
		eiColumn.setMaxLength(100);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("invoiceTele");
		eiColumn.setDescName("发票电话");
		eiColumn.setMaxLength(20);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("invoiceZip");
		eiColumn.setDescName("发票邮编");
		eiColumn.setMaxLength(20);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("invoiceAcctNum");
		eiColumn.setDescName("发票结算户帐号");
		eiColumn.setMaxLength(50);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("invoiceBank");
		eiColumn.setDescName("发票结算户开户行");
		eiColumn.setMaxLength(60);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("invoicePostType");
		eiColumn.setDescName("发票领取方式");
		eiColumn.setMaxLength(10);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("invoiceBuildType");
		eiColumn.setDescName("发票要求");
		eiColumn.setMaxLength(10);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("settleAcctNum");
		eiColumn.setDescName("结算户帐号");
		eiColumn.setMaxLength(50);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("settleBank");
		eiColumn.setDescName("结算户开户行");
		eiColumn.setMaxLength(60);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("artPerson");
		eiColumn.setDescName("法人");
		eiColumn.setMaxLength(50);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("artPersonPre");
		eiColumn.setDescName("法人代表");
		eiColumn.setMaxLength(50);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("boss");
		eiColumn.setDescName("公司负责人");
		eiColumn.setMaxLength(20);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("contactPerson");
		eiColumn.setDescName("公司联系人");
		eiColumn.setMaxLength(30);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("contactMobile");
		eiColumn.setDescName("联系人手机");
		eiColumn.setMaxLength(20);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("contactAddr");
		eiColumn.setDescName("公司联系地址");
		eiColumn.setMaxLength(100);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("contactTele");
		eiColumn.setDescName("公司联系电话");
		eiColumn.setMaxLength(20);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("faxNum");
		eiColumn.setDescName("公司联系传真");
		eiColumn.setMaxLength(30);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("postCode");
		eiColumn.setDescName("公司联系邮编");
		eiColumn.setMaxLength(20);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("email");
		eiColumn.setDescName("公司电子邮箱");
		eiColumn.setMaxLength(40);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("relationWay");
		eiColumn.setDescName("沟通途径");
		eiColumn.setMaxLength(2);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("relationPerson");
		eiColumn.setDescName("沟通人");
		eiColumn.setMaxLength(30);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("web");
		eiColumn.setDescName("公司网站地址");
		eiColumn.setMaxLength(60);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("tradeRemark");
		eiColumn.setDescName("公司业务说明");
		eiColumn.setMaxLength(300);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("paymentTerm");
		eiColumn.setDescName("默认付款类型");
		eiColumn.setMaxLength(10);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("custTypeBs");
		eiColumn.setDescName("客户平台类型");
		eiColumn.setMaxLength(2);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("transferTerm");
		eiColumn.setDescName("默认运输类型");
		eiColumn.setMaxLength(10);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("epickFlag");
		eiColumn.setDescName("电子提单标记");
		eiColumn.setMaxLength(1);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("assSaleFlag");
		eiColumn.setDescName("辅助销售标记");
		eiColumn.setMaxLength(1);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("custClass");
		eiColumn.setDescName("客户级别");
		eiColumn.setMaxLength(2);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("remark");
		eiColumn.setDescName("备注");
		eiColumn.setMaxLength(1000);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("createDate");
		eiColumn.setDescName("创建日期");
		eiColumn.setMaxLength(7);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("createPerson");
		eiColumn.setDescName("创建人");
		eiColumn.setMaxLength(30);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("modiDate");
		eiColumn.setDescName("修改日期");
		eiColumn.setMaxLength(7);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("modiPerson");
		eiColumn.setDescName("修改人");
		eiColumn.setMaxLength(30);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("contactPersonCid");
		eiColumn.setDescName("公司联系人身份证");
		eiColumn.setMaxLength(30);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("organizationCode");
		eiColumn.setDescName("组织机构证件号");
		eiColumn.setMaxLength(20);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("invoiceQuota");
		eiColumn.setDescName("开票限额");
		eiColumn.setFieldLength(20);
		eiColumn.setScaleLength(2);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("custPersNum");
		eiColumn.setDescName("公司员工数");
		eiColumn.setMaxLength(20);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("subCompNum");
		eiColumn.setDescName("子公司个数");
		eiColumn.setMaxLength(14);
		eiColumn.setScaleLength(0);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("custStsType");
		eiColumn.setDescName("版本类型");
		eiColumn.setMaxLength(30);
		eiColumn.setNullable(true);
		eiMetadata.addMeta(eiColumn);

	}

	public void setAreaCode(java.lang.String areaCode) {
		this.areaCode = areaCode;
	}

	public void setArtPerson(java.lang.String artPerson) {
		this.artPerson = artPerson;
	}

	public void setArtPersonPre(java.lang.String artPersonPre) {
		this.artPersonPre = artPersonPre;
	}

	public void setAssSaleFlag(java.lang.String assSaleFlag) {
		this.assSaleFlag = assSaleFlag;
	}

	public void setBankAcctNum(java.lang.String bankAcctNum) {
		this.bankAcctNum = bankAcctNum;
	}

	public void setBankName(java.lang.String bankName) {
		this.bankName = bankName;
	}

	public void setBoss(java.lang.String boss) {
		this.boss = boss;
	}

	public void setContactAddr(java.lang.String contactAddr) {
		this.contactAddr = contactAddr;
	}

	public void setContactMobile(java.lang.String contactMobile) {
		this.contactMobile = contactMobile;
	}

	public void setContactPerson(java.lang.String contactPerson) {
		this.contactPerson = contactPerson;
	}

	public void setContactPersonCid(java.lang.String contactPersonCid) {
		this.contactPersonCid = contactPersonCid;
	}

	public void setContactTele(java.lang.String contactTele) {
		this.contactTele = contactTele;
	}

	public void setCreateDate(java.lang.String createDate) {
		this.createDate = createDate;
	}

	public void setCreatePerson(java.lang.String createPerson) {
		this.createPerson = createPerson;
	}

	public void setCreditClass(java.lang.String creditClass) {
		this.creditClass = creditClass;
	}

	public void setCustAssetType(java.lang.String custAssetType) {
		this.custAssetType = custAssetType;
	}

	public void setCustClass(java.lang.String custClass) {
		this.custClass = custClass;
	}

	public void setCustEngName(java.lang.String custEngName) {
		this.custEngName = custEngName;
	}

	public void setCustInvesterType(java.lang.String custInvesterType) {
		this.custInvesterType = custInvesterType;
	}

	public void setCustName(java.lang.String custName) {
		this.custName = custName;
	}

	public void setCustomerId(java.lang.String customerId) {
		this.customerId = customerId;
	}

	public void setCustShortName(java.lang.String custShortName) {
		this.custShortName = custShortName;
	}

	public void setCustStyle(java.lang.String custStyle) {
		this.custStyle = custStyle;
	}

	public void setCustType(java.lang.String custType) {
		this.custType = custType;
	}

	public void setCustTypeBs(java.lang.String custTypeBs) {
		this.custTypeBs = custTypeBs;
	}

	public void setEmail(java.lang.String email) {
		this.email = email;
	}

	public void setEpickFlag(java.lang.String epickFlag) {
		this.epickFlag = epickFlag;
	}

	public void setFaxNum(java.lang.String faxNum) {
		this.faxNum = faxNum;
	}

	public void setGroupCustId(java.lang.String groupCustId) {
		this.groupCustId = groupCustId;
	}

	public void setGroupFlag(java.lang.String groupFlag) {
		this.groupFlag = groupFlag;
	}

	public void setInvoiceAcctNum(java.lang.String invoiceAcctNum) {
		this.invoiceAcctNum = invoiceAcctNum;
	}

	public void setInvoiceBank(java.lang.String invoiceBank) {
		this.invoiceBank = invoiceBank;
	}

	public void setInvoiceBuildType(java.lang.String invoiceBuildType) {
		this.invoiceBuildType = invoiceBuildType;
	}

	public void setInvoicePostType(java.lang.String invoicePostType) {
		this.invoicePostType = invoicePostType;
	}

	public void setInvoiceTele(java.lang.String invoiceTele) {
		this.invoiceTele = invoiceTele;
	}

	public void setInvoiceZip(java.lang.String invoiceZip) {
		this.invoiceZip = invoiceZip;
	}

	public void setIvoiceAddr(java.lang.String ivoiceAddr) {
		this.ivoiceAddr = ivoiceAddr;
	}

	public void setModiDate(java.util.Date modiDate) {
		this.modiDate = modiDate;
	}

	public void setModiPerson(java.lang.String modiPerson) {
		this.modiPerson = modiPerson;
	}

	public void setOrganizationCode(java.lang.String organizationCode) {
		this.organizationCode = organizationCode;
	}

	public void setPaymentTerm(java.lang.String paymentTerm) {
		this.paymentTerm = paymentTerm;
	}

	public void setPostCode(java.lang.String postCode) {
		this.postCode = postCode;
	}

	public void setPrivinceId(java.lang.String privinceId) {
		this.privinceId = privinceId;
	}

	public void setRegAddr(java.lang.String regAddr) {
		this.regAddr = regAddr;
	}

	public void setRegCurrencyId(java.lang.String regCurrencyId) {
		this.regCurrencyId = regCurrencyId;
	}

	public void setRegFund(java.lang.Double regFund) {
		this.regFund = regFund;
	}

	public void setRegisterId(java.lang.Long registerId) {
		this.registerId = registerId;
	}

	public void setRegisterStatus(java.lang.String registerStatus) {
		this.registerStatus = registerStatus;
	}

	public void setRelationPerson(java.lang.String relationPerson) {
		this.relationPerson = relationPerson;
	}

	public void setRelationWay(java.lang.String relationWay) {
		this.relationWay = relationWay;
	}

	public void setRemark(java.lang.String remark) {
		this.remark = remark;
	}

	public void setSegNo(java.lang.String segNo) {
		this.segNo = segNo;
	}

	public void setSettleAcctNum(java.lang.String settleAcctNum) {
		this.settleAcctNum = settleAcctNum;
	}

	public void setSettleBank(java.lang.String settleBank) {
		this.settleBank = settleBank;
	}

	public void setTaxNum(java.lang.String taxNum) {
		this.taxNum = taxNum;
	}

	public void setTownId(java.lang.String townId) {
		this.townId = townId;
	}

	public void setTradeRemark(java.lang.String tradeRemark) {
		this.tradeRemark = tradeRemark;
	}

	public void setTransferTerm(java.lang.String transferTerm) {
		this.transferTerm = transferTerm;
	}

	public void setValidEndDate(java.util.Date validEndDate) {
		this.validEndDate = validEndDate;
	}

	public void setValidStartDate(java.util.Date validStartDate) {
		this.validStartDate = validStartDate;
	}

	public void setVocationCode(java.lang.String vocationCode) {
		this.vocationCode = vocationCode;
	}

	public void setWeb(java.lang.String web) {
		this.web = web;
	}

	public BigDecimal getInvoiceQuota() {
		return invoiceQuota;
	}

	public void setInvoiceQuota(BigDecimal invoiceQuota) {
		this.invoiceQuota = invoiceQuota;
	}

	public void setcustPersNum(java.lang.String custPersNum) {
		this.custPersNum = custPersNum;
	}

	public void setCustStsType(java.lang.String custStsType) {
		this.custStsType = custStsType;
	}

	public void setSubCompNum(java.lang.String subCompNum) {
		this.subCompNum = subCompNum;
	}

	/**
	 * @return the customerCode
	 */
	public java.lang.String getCustomerCode() {
		return customerCode;
	}

	/**
	 * @param customerCode the customerCode to set
	 */
	public void setCustomerCode(java.lang.String customerCode) {
		this.customerCode = customerCode;
	}

	/**
	 * @return the custPersNum
	 */
	public java.lang.String getCustPersNum() {
		return custPersNum;
	}

	/**
	 * @param custPersNum the custPersNum to set
	 */
	public void setCustPersNum(java.lang.String custPersNum) {
		this.custPersNum = custPersNum;
	}

	/**
	 * @return the marketId
	 */
	public java.lang.String getMarketId() {
		return marketId;
	}

	/**
	 * @param marketId the marketId to set
	 */
	public void setMarketId(java.lang.String marketId) {
		this.marketId = marketId;
	}

}


text:
#if !defined(FIT_SLAVE_DEVICE_MESG_HPP)
#define FIT_SLAVE_DEVICE_MESG_HPP

#include "fit_mesg.hpp"

namespace fit
{

class SlaveDeviceMesg : public Mesg
{
public:
    class FieldDefNum final
    {
    public:
       static const FIT_UINT8 Manufacturer = 0;
       static const FIT_UINT8 Product = 1;
       static const FIT_UINT8 Invalid = FIT_FIELD_NUM_INVALID;
    };

    SlaveDeviceMesg(void) : Mesg(Profile::MESG_SLAVE_DEVICE)
    {
    }

    SlaveDeviceMesg(const Mesg &mesg) : Mesg(mesg)
    {
    }

    ///////////////////////////////////////////////////////////////////////
    // Checks the validity of manufacturer field
    // Returns FIT_TRUE if field is valid
    ///////////////////////////////////////////////////////////////////////
    FIT_BOOL IsManufacturerValid() const
    {
        const Field* field = GetField(0);
        if( FIT_NULL == field )
        {
            return FIT_FALSE;
        }

        return field->IsValueValid();
    }

    ///////////////////////////////////////////////////////////////////////
    // Returns manufacturer field
    ///////////////////////////////////////////////////////////////////////
    FIT_MANUFACTURER GetManufacturer(void) const
    {
        return GetFieldUINT16Value(0, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
    }

    ///////////////////////////////////////////////////////////////////////
    // Set manufacturer field
    ///////////////////////////////////////////////////////////////////////
    void SetManufacturer(FIT_MANUFACTURER manufacturer)
    {
        SetFieldUINT16Value(0, manufacturer, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
    }

    ///////////////////////////////////////////////////////////////////////
    // Checks the validity of product field
    // Returns FIT_TRUE if field is valid
    ///////////////////////////////////////////////////////////////////////
    FIT_BOOL IsProductValid() const
    {
        const Field* field = GetField(1);
        if( FIT_NULL == field )
        {
            return FIT_FALSE;
        }

        return field->IsValueValid();
    }

    ///////////////////////////////////////////////////////////////////////
    // Returns product field
    ///////////////////////////////////////////////////////////////////////
    FIT_UINT16 GetProduct(void) const
    {
        return GetFieldUINT16Value(1, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
    }

    ///////////////////////////////////////////////////////////////////////
    // Set product field
    ///////////////////////////////////////////////////////////////////////
    void SetProduct(FIT_UINT16 product)
    {
        SetFieldUINT16Value(1, product, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
    }

    ///////////////////////////////////////////////////////////////////////
    // Checks the validity of garmin_product field
    // Returns FIT_TRUE if field is valid
    ///////////////////////////////////////////////////////////////////////
    FIT_BOOL IsGarminProductValid() const
    {
        const Field* field = GetField(1);
        if( FIT_NULL == field )
        {
            return FIT_FALSE;
        }

        if( !CanSupportSubField( field, (FIT_UINT16) Profile::SLAVE_DEVICE_MESG_PRODUCT_FIELD_GARMIN_PRODUCT ) )
        {
            return FIT_FALSE;
        }

        return field->IsValueValid(0, (FIT_UINT16) Profile::SLAVE_DEVICE_MESG_PRODUCT_FIELD_GARMIN_PRODUCT);
    }

    ///////////////////////////////////////////////////////////////////////
    // Returns garmin_product field
    ///////////////////////////////////////////////////////////////////////
    FIT_GARMIN_PRODUCT GetGarminProduct(void) const
    {
        return GetFieldUINT16Value(1, 0, (FIT_UINT16) Profile::SLAVE_DEVICE_MESG_PRODUCT_FIELD_GARMIN_PRODUCT);
    }

    ///////////////////////////////////////////////////////////////////////
    // Set garmin_product field
    ///////////////////////////////////////////////////////////////////////
    void SetGarminProduct(FIT_GARMIN_PRODUCT garminProduct)
    {
        SetFieldUINT16Value(1, garminProduct, 0, (FIT_UINT16) Profile::SLAVE_DEVICE_MESG_PRODUCT_FIELD_GARMIN_PRODUCT);
    }

};

} // namespace fit

#endif // !defined(FIT_SLAVE_DEVICE_MESG_HPP)

redpajama_set_name: RedPajamaGithub


text:
const DrawCard = require('../../drawcard.js');

class PaidOff extends DrawCard {
    setupCardAbilities() {
        this.reaction({
            when: {
                afterChallenge: ({challenge}) => challenge.challengeType === 'intrigue' && !this.parent.kneeled && challenge.winner === this.controller
            },
            handler: () => {
                this.parent.controller.kneelCard(this.parent);
                this.game.addMessage('{0} uses {1} to kneel {2}', this.controller, this, this.parent);

                let player = this.parent.controller;
                if(player.gold < 1) {
                    this.cancel(player);
                    return false;
                }

                this.game.promptWithMenu(player, this, {
                    activePrompt: {
                        menuTitle: 'Pay 1 gold to stand ' + this.parent.name,
                        buttons: [
                            { text: 'Yes', method: 'stand' },
                            { text: 'No', method: 'cancel' }
                        ]
                    },
                    source: this
                });
            }
        });
    }

    stand(player) {
        if(player.gold < 1) {
            return false;
        }

        this.game.transferGold(this.controller, player, 1);
        player.standCard(this.parent);

        this.game.addMessage('{0} pays 1 gold for {1} to stand {2}', player, this, this.parent);

        return true;
    }

    cancel(player) {
        this.game.addMessage('{0} does not pay 1 gold for {1} so {2} remains kneeled',
            player, this, this.parent);

        return true;
    }

    canAttach(player, card) {
        if(card.getType() !== 'character' || card.controller === this.controller) {
            return false;
        }

        return super.canAttach(player, card);
    }
}

PaidOff.code = '02071';

module.exports = PaidOff;


text:
'use strict';

const {
    SerialDataSourceProvider,
} = require('./resol-vbus');

const jestExpect = global.expect;
const expect = require('./expect');
const _ = require('./lodash');

const serialPortPath = process.env.RESOL_VBUS_SERIALPORT;

const testUtils = {

    expectPromise(promise) {
        // expect(promise).to.be.instanceOf(Promise);
        expect(promise).to.have.a.property('then').that.is.a('function');
        return promise;
    },

    async expectPromiseToReject(promise, ...args) {
        testUtils.expectPromise(promise);

        await promise.then(() => {
            jestExpect(() => {
                // nop
            }).toThrow(...args);
        }, err => {
            jestExpect(() => {
                throw err;
            }).toThrow(...args);
        });
    },

    expectRanges(ranges) {
        expect(ranges).a('array');

        const comparableRanges = _.map(ranges, (range) => {
            return {
                minTimestamp: range.minTimestamp.toISOString(),
                maxTimestamp: range.maxTimestamp.toISOString(),
            };
        });

        return expect(comparableRanges);
    },

    adaptTimeout(timeout) {
        const factor = process.env.TRAVIS ? 1000 : 1;
        return timeout * factor;
    },

    serialPortPath,

    ifHasSerialPortIt(msg) {
        if (!SerialDataSourceProvider.hasSerialPortSupport) {
            xit(msg + ' (missing serial port support)', () => {});
        } else if (!serialPortPath) {
            xit(msg + ' (missing serial port path)', () => {});
        } else {
            it.apply(null, arguments);
        }
    },

    expectToBeABuffer(buffer) {
        expect(buffer).instanceOf(Buffer);
    },

    itShouldBeAClass(Class) {
        it('should be a class', () => {
            expect(Class).a('function')
                .property('prototype').an('object')
                .property('constructor');
        });
    },

    itShouldWorkCorrectlyAfterMigratingToClass(Class, ParentClass, instanceMembers, staticMembers) {
        it('should work correctly after migrating to Class', () => {
            jestExpect(typeof Class).toBe('function');
            if (ParentClass) {
                jestExpect(typeof ParentClass).toBe('function');
                jestExpect(Class.prototype).toBeInstanceOf(ParentClass);
            }

            function convertObject(obj, filter) {
                return Object.getOwnPropertyNames(obj || {}).filter(key => filter ? filter(key) : true).reduce((memo, key) => {
                    let value = obj [key];
                    if (value === Function) {
                        value = jestExpect.any(Function);
                    }
                    memo [key] = value;
                    return memo;
                }, {});
            }

            function filterOutStaticMembers(key) {
                switch (key) {
                case '__super__':
                case 'extend':
                case 'length':
                case 'name':
                case 'prototype':
                    return false;
                default:
                    return true;
                }
            }

            jestExpect(convertObject(Class.prototype)).toEqual(convertObject(instanceMembers));
            if (staticMembers) {
                jestExpect(convertObject(Class, filterOutStaticMembers)).toEqual(convertObject(staticMembers));
            }
        });
    },

    wrapAsPromise(fn) {
        return new Promise((resolve) => resolve(fn()));
    },

};

module.exports = testUtils;


text:
package edu.uci.isr.xarch.extcon;

/**
 * Useful contstants for the xArch extcon namespace.
 *
 * @author Automatically generated by xArch apigen
 */
public class ExtconConstants{

	/** Namespace URI for the Extcon namespace. */
	public static final String NS_URI = "http://www.ics.uci.edu/pub/arch/xArch/extcon.xsd";

}


text:
var Hapi = require('hapi'),
    path = require('path'),
    port = process.env.PORT || 3000,
    server = new Hapi.Server(port),
    routes = {
        css: {
            method: 'GET',
            path: '/styles/{path*}',
            handler: createDirectoryRoute('styles')
        },
        js: {
            method: 'GET',
            path: '/scripts/{path*}',
            handler: createDirectoryRoute('scripts')
        },
        assets: {
            method: 'GET',
            path: '/assets/{path*}',
            handler: createDirectoryRoute('assets')
        },
        templates: {
            method: 'GET',
            path: '/templates/{path*}',
            handler: createDirectoryRoute('templates')
        },
        spa: {
            method: 'GET',
            path: '/',
            handler: {
                file: path.join(__dirname, '/dist/index.html'),
            }
        },
        collection: {
            method: 'GET',
            path: '/collection.html',
            handler: {
                file: path.join(__dirname, '/dist/collection.html'),
            }
        },
        album: {
            method: 'GET',
            path: '/album.html',
            handler: {
                file: path.join(__dirname, '/dist/album.html'),
            }
        }
    };

server.route([ routes.css, routes.js, routes.assets, routes.templates, routes.spa, routes.collection,
      routes.album ]);
server.start( onServerStarted );

function onServerStarted() {
    console.log( 'Server running on port ', port );
}

function createDirectoryRoute( directory ) {
    return {
        directory: {
            path: path.join(__dirname, '/dist/', directory)
        }
    };
}

module.exports = server;


text:
var test    = require('tape').test
  , msgpack = require('../')
  , bl      = require('bl')

test('encode/decode strings with max 31 of length', function(t) {

  var encoder = msgpack()
    , all     = []
    , i

  // build base
  for (i = 'a'; i.length < 32; i += 'a') {
    all.push(i)
  }

  all.forEach(function(str) {
    t.test('encoding a string of length ' + str.length, function(t) {
      var buf = encoder.encode(str)
      t.equal(buf.length, 1 + Buffer.byteLength(str), 'must be the proper length')
      t.equal(buf.readUInt8(0) & 0xe0, 0xa0, 'must have the proper header');
      t.equal(buf.readUInt8(0) & 0x1f, Buffer.byteLength(str), 'must include the str length');
      t.equal(buf.toString('utf8', 1, Buffer.byteLength(str) + 2), str, 'must decode correctly');
      t.end()
    })

    t.test('decoding a string of length ' + str.length, function(t) {
      var buf = new Buffer(1 + Buffer.byteLength(str))
      buf[0] = 0xa0 | Buffer.byteLength(str)
      buf.write(str, 1)
      t.equal(encoder.decode(buf), str, 'must decode correctly');
      t.end()
    })

    t.test('mirror test a string of length ' + str.length, function(t) {
      t.equal(encoder.decode(encoder.encode(str)), str, 'must stay the same');
      t.end()
    })
  })

  t.end()
})

test('decoding a chopped string', function(t) {
  var encoder = msgpack()
  var str = 'aaa'
  var buf = new Buffer(1 + Buffer.byteLength(str))
  buf[0] = 0xa0 | Buffer.byteLength(str) + 2 // set bigger size
  buf.write(str, 1)
  buf = bl().append(buf)
  var origLength = buf.length
  t.throws(function() {encoder.decode(buf)}, encoder.IncompleteBufferError, "must throw IncompleteBufferError")
  t.equals(buf.length, origLength, "must not consume any byte")
  t.end()
})


text:
{% load templatetag_handlebars %}
    {% tplhandlebars "notices" %}

Notices

	    {{ total_notices }} notices total
	    {{ #if total_notices }}

    		      Expand all

	    {{ /if }}

    {{ #if total_notices }}

        {{ #if critical.count }}

{{ critical.count }} Critical

                    {{ #if critical.unread_count }}
                        {{ critical.unread_count }} new
                    {{ /if }}

                    {% if request.is_mobile %}

                    {% else %}

                    {% endif %}

                            {{ #each critical .notices }}

        								Critical Notice

        		                           {{ category }}{{ #unless is_read }} New{{ /unless }}

        		                           {{ #unless is_read }}New Notice:{{ /unless }}{{{ notice_content }}}

                            {{ /each }}

		{{ /if }}

		{{ #if today.notices }}

Today

    						{{ #if today.critical_count }}
    						{{ today.critical_count }} critical
    						{{ /if }}
                            {{ #if today.unread_count }}
    						 {{ today.unread_count }} new
                            {{ /if }}

                            {% if request.is_mobile %}

                            {% else %}

                            {% endif %}

            		                    {{# each today.notices }}

            		                            {{ #if is_critical }}

            									Critical Notice
            		                            {{ /if }}

            			                            {{ category }}{{ #unless is_read }}New{{ /unless }}

            			                            {{ #unless is_read }}New Notice:{{ /unless }}{{{ notice_content }}}

            		                    {{ /each }}

        {{ /if }}

		{{ #if week.notices }}

This week

                            {{ #if week.critical_count }}
                            {{ week.critical_count }} critical
                            {{ /if }}
                            {{ #if week.unread_count }}
    						 {{ week.unread_count }} new
                            {{ /if }}

                            {% if request.is_mobile %}

                            {% else %}

                            {% endif %}

            		                    {{# each week.notices }}

            		                            {{ #if is_critical }}

            									Critical Notice
            		                            {{ /if }}

            			                            {{ category }}{{ #unless is_read }} New{{ /unless }}

            			                            {{ #unless is_read }}New Notice:{{ /unless }}{{{ notice_content }}}

            		                    {{ /each }}

        {{ /if }}

		{{ #if next_week.notices }}

Next week

                            {{ #if next_week.critical_count }}
    						{{ next_week.critical_count }} critical
    						{{ /if }}
                            {{ #if next_week.unread_count }}
    						 {{ next_week.unread_count }} new
                            {{ /if }}

                            {% if request.is_mobile %}

                            {% else %}

                            {% endif %}

            		                    {{# each next_week.notices }}

            		                            {{ #if is_critical }}

            									Critical Notice
            		                            {{ /if }}

            			                            {{ category }}{{ #unless is_read }} New{{ /unless }}

            			                            {{ #unless is_read }}New Notice:{{ /unless }}{{{ notice_content }}}

            		                    {{ /each }}

        {{ /if }}

		{{ #if future.notices }}

Upcoming weeks

    						{{ #if future.critical_count }}
    						{{ future.critical_count }} critical
    						{{ /if }}
                            {{ #if future.unread_count }}
    						 {{ future.unread_count }} new
                            {{ /if }}

                            {% if request.is_mobile %}

                            {% else %}

                            {% endif %}

            		                    {{# each future.notices }}

            			                            {{ #if is_critical }}

            										Critical Notice
            			                            {{ /if }}

            				                            {{ category }}{{ #unless is_read }} New{{ /unless }}

            				                            {{ #unless is_read }}New Notice:{{ /unless }}{{{ notice_content }}}

            		                    {{ /each }}

        {{ /if }}

		{{ #if legal.notices }}

Legal

        	                {{ #if legal.critical_count }}
    						{{ legal.critical_count }} critical
    						{{ /if }}
                            {{ #if legal.unread_count }}
    						 {{ legal.unread_count }} new
                            {{ /if }}

                            {% if request.is_mobile %}

                            {% else %}

                            {% endif %}

            		                    {{# each legal.notices }}

            			                            {{ category }}{{ #unless is_read }} New{{ /unless }}

            			                            {{ #unless is_read }}New Notice:{{ /unless }}{{{ notice_content }}}

            		                    {{ /each }}

        {{ /if }}

    {{ else }}

No Notices Found

You don’t appear to have any notices to display at the moment.

    {{ /if }}

    {% endtplhandlebars %}


text:
namespace llvm {

class RemoteTarget {
  bool IsRunning;

  typedef SmallVector<sys::MemoryBlock, 16> AllocMapType;
  AllocMapType Allocations;

protected:
  std::string ErrorMsg;

public:
  StringRef getErrorMsg() const { return ErrorMsg; }

  /// Allocate space in the remote target address space.
  ///
  /// @param      Size      Amount of space, in bytes, to allocate.
  /// @param      Alignment Required minimum alignment for allocated space.
  /// @param[out] Address   Remote address of the allocated memory.
  ///
  /// @returns True on success. On failure, ErrorMsg is updated with
  ///          descriptive text of the encountered error.
  virtual bool allocateSpace(size_t Size,
                             unsigned Alignment,
                             uint64_t &Address);

  bool isAllocatedMemory(uint64_t Address, uint32_t Size) {
    uint64_t AddressEnd = Address + Size;
    for (AllocMapType::const_iterator I = Allocations.begin(),
                                      E = Allocations.end();
         I != E; ++I) {
      if (Address >= (uint64_t)I->base() &&
          AddressEnd <= (uint64_t)I->base() + I->size())
        return true;
    }
    return false;
  }

  /// Load data into the target address space.
  ///
  /// @param      Address   Destination address in the target process.
  /// @param      Data      Source address in the host process.
  /// @param      Size      Number of bytes to copy.
  ///
  /// @returns True on success. On failure, ErrorMsg is updated with
  ///          descriptive text of the encountered error.
  virtual bool loadData(uint64_t Address,
                        const void *Data,
                        size_t Size);

  /// Load code into the target address space and prepare it for execution.
  ///
  /// @param      Address   Destination address in the target process.
  /// @param      Data      Source address in the host process.
  /// @param      Size      Number of bytes to copy.
  ///
  /// @returns True on success. On failure, ErrorMsg is updated with
  ///          descriptive text of the encountered error.
  virtual bool loadCode(uint64_t Address,
                        const void *Data,
                        size_t Size);

  /// Execute code in the target process. The called function is required
  /// to be of signature int "(*)(void)".
  ///
  /// @param      Address   Address of the loaded function in the target
  ///                       process.
  /// @param[out] RetVal    The integer return value of the called function.
  ///
  /// @returns True on success. On failure, ErrorMsg is updated with
  ///          descriptive text of the encountered error.
  virtual bool executeCode(uint64_t Address,
                           int &RetVal);

  /// Minimum alignment for memory permissions. Used to separate code and
  /// data regions to make sure data doesn't get marked as code or vice
  /// versa.
  ///
  /// @returns Page alignment return value. Default of 4k.
  virtual unsigned getPageAlignment() { return 4096; }

  /// Start the remote process.
  virtual bool create();

  /// Terminate the remote process.
  virtual void stop();

  RemoteTarget() : IsRunning(false), ErrorMsg("") {}
  virtual ~RemoteTarget() { if (IsRunning) stop(); }
private:
  // Main processing function for the remote target process. Command messages
  // are received on file descriptor CmdFD and responses come back on OutFD.
  static void doRemoteTargeting(int CmdFD, int OutFD);
};

} // end namespace llvm

#endif


text:
import test from "ava";
import React from "react";
import { shallow, mount } from "enzyme";
import ReactDOM from "react-dom";
import configureStore from "redux-mock-store";
import { Provider } from "react-redux";

import ChartContainer from "../ChartContainer";
import { Chart } from "../../components/Chart";

test.beforeEach(t => {
  const mockStore = configureStore();

  const initialState = {
    points: {
      progressData: {data: []},
      courseMaxPoints: 20
    }
  };

  t.context.store = mockStore(initialState);
});

test("renders without crashing", t => {
  const wrapper = shallow(
    <Provider store={t.context.store}>
      <ChartContainer />
    </Provider>
  );
  t.deepEqual(wrapper.find(ChartContainer).length, 1);
});

test("chartcontainer renders chart", t => {
  window.HTMLCanvasElement.prototype.getContext = null;

  const wrapper = mount(
    <Provider store={t.context.store}>
      <ChartContainer />
    </Provider>
  );
  t.deepEqual(wrapper.find('Chart').length, 1);
});


text:
<?php
namespace Concrete\Core\Database\Driver\PDOMySqlConcrete5;

use Concrete\Core\Database\Connection\PDOConnection;

/**
 * PDO MySql driver.
 *
 * @since 2.0
 */
class Driver extends \Doctrine\DBAL\Driver\PDOMySql\Driver
{
    public function connect(array $params, $username = null, $password = null, array $driverOptions = array())
    {
        $conn = new PDOConnection(
            $this->_constructPdoDsn($params),
            $username,
            $password,
            $driverOptions
        );

        return $conn;
    }

    /**
     * Constructs the MySql PDO DSN.
     *
     * @param array $params
     *
     * @return string The DSN.
     */
    private function _constructPdoDsn(array $params)
    {
        $dsn = 'mysql:';
        if (isset($params['host']) && $params['host'] != '') {
            $dsn .= 'host=' . $params['host'] . ';';
        }
        if (isset($params['port'])) {
            $dsn .= 'port=' . $params['port'] . ';';
        }
        if (isset($params['database'])) {
            $dsn .= 'dbname=' . $params['database'] . ';';
        }
        if (isset($params['unix_socket'])) {
            $dsn .= 'unix_socket=' . $params['unix_socket'] . ';';
        }
        if (isset($params['charset'])) {
            $dsn .= 'charset=' . $params['charset'] . ';';
        }

        return $dsn;
    }
}


text:
package com.all.appControl.control;

import com.all.action.ActionObject;

public class SetModelAction<T> extends ActionObject {

}


text:
<?php

declare(strict_types=1);

namespace DiContainerBenchmarks\Fixture\C;

class FixtureC221
{
    public function __construct(FixtureC220 $dependency)
    {
    }
}


text:
package org.twak.viewTrace.facades;

import java.util.Collections;
import java.util.Set;
import java.util.function.BiConsumer;
import java.util.function.BinaryOperator;
import java.util.function.Function;
import java.util.function.Supplier;
import java.util.stream.Collector;

import javax.vecmath.Point2d;

import org.twak.utils.Pair;

public class Point2DMeanCollector implements Collector<Point2d, Pair<Point2d, Integer>, Point2d> {

	@Override
	public Supplier<Pair<Point2d, Integer>> supplier() {
		return () -> new Pair<> (new Point2d(), 0);
	}

	@Override
	public BiConsumer<Pair<Point2d, Integer>, Point2d> accumulator() {
		return (pair, pt) -> { pair.first().add(pt); pair.set2 ( pair.second() + 1 ); };
	}

	@Override
	public BinaryOperator<Pair<Point2d, Integer>> combiner() {
		return (a,b) -> new Pair<>(
				new Point2d(a.first().x + b.first().x, b.first().y + b.first().y),
				a.second() + b.second()
					);
	}

	@Override
	public Function<Pair<Point2d, Integer>, Point2d> finisher() {
		return pair -> new Point2d(pair.first().x / pair.second(), pair.first().y / pair.second() );
	}

	@Override
	public Set<java.util.stream.Collector.Characteristics> characteristics() {
		return Collections.emptySet();
	}
}


text:
ARG CONTAINER_IMAGE
FROM ${CONTAINER_IMAGE}

ARG proxy
ENV http_proxy=$proxy

# Create root, i.e. C:\solution
WORKDIR /solution

# Copy entire directory (rely on storeForLocal to limit to only to required, unlike containerBuild)
COPY automation automation

COPY bootstrapTest.ps1 .
RUN automation\provisioning\runner.bat bootstrapTest.ps1

# Place entry script
COPY executeTest.ps1 .

# Change workdir to an new (empty) folder for volume mount to work
WORKDIR /solution/workspace

# Unlike the web server, this container is transient, and does not build the wrapper into the image, instead this relies of the volume mount
CMD ["C:/solution/automation/provisioning/runner.bat", "../executeTest.ps1", "AUTO_TEST"]


text:
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Comments for page "Season Two Collection"</title>
		<link>http://bvs.wikidot.com/forum/t-220227/season-two-collection</link>
		<description>Posts in the discussion thread "Season Two Collection"</description>
				<copyright></copyright>
		<lastBuildDate>Sun, 10 Jul 2022 03:51:20 +0000</lastBuildDate>

					<item>
				<guid>http://bvs.wikidot.com/forum/t-220227#post-702504</guid>
				<title>(no title)</title>
				<link>http://bvs.wikidot.com/forum/t-220227/season-two-collection#post-702504</link>
				<description></description>
				<pubDate>Thu, 18 Feb 2010 00:58:37 +0000</pubDate>
				<wikidot:authorName>Prem-aka-Prince</wikidot:authorName>				<wikidot:authorUserId>304978</wikidot:authorUserId>				<content:encoded>
					<![CDATA[

A box set chronicling your deeds! +5 Perm Count, +11% Ryo!

				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>


text:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.sourcey.foodie.Fragments.BottomFragments.RestoInfoInfoblock">

    <TextView
        android:layout_width="204dp"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceLarge"
        android:text="The ultra restaurant"
        android:id="@+id/textView"
        android:layout_gravity="center_horizontal|top" />

    <TextView
        android:layout_width="match_parent"
        android:layout_height="135dp"
        android:textAppearance="?android:attr/textAppearanceMedium"
        android:text="Blablabla"
        android:id="@+id/textView2"
        android:layout_gravity="left|center_vertical" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="106dp"
        android:textAppearance="?android:attr/textAppearanceMedium"
        android:text="Map with localisation"
        android:id="@+id/textView3"
        android:layout_gravity="left|bottom" />

</FrameLayout>


text:
#ifndef QPID_FRAMING_VISITOR_H
#define QPID_FRAMING_VISITOR_H

#include <boost/mpl/vector.hpp>
#include <boost/type_traits/remove_reference.hpp>
#include <boost/preprocessor/seq/for_each.hpp>

namespace qpid {
namespace framing {

/** @file Generic visitor pattern. */

/** visit() interface for type T (optional return type R, default is void.)
 * To create  a visitor for a set of types T1, T2 ... do this:
 * struct MyVisitor : public Visit<T1>, public Visit<T2> ... {};
 *@param T Type to visit. This must be forward declared, and need not be defined.
 */
template <class T, class R=void> struct Visit {
    typedef R ReturnType;
    typedef T VisitType;

    virtual ~Visit() {}
    virtual R visit(T&) = 0;
};

#define QPID_VISITOR_DECL(_1,_2,T) class T;

#define QPID_VISITOR_BASE(_1,_2,T) , public ::qpid::framing::Visit<T>

/** Convenience macro to generate a visitor interface.
 * QPID_VISITOR(MyVisitor,(A)(B)(C)); is equivalent to:
 * @code
 * class A; class B; class C;
 * class MyVisitor : public Visit<A> , public Visit<B> , public Visit<C> {};
 * @endcode
 * @param visitor name of the generated visitor class.
 * @param bases a sequence of visitable types in the form (T1)(T2)...
 * Any parenthesized notations are due to quirks of the preprocesser.
 */
#define QPID_VISITOR(visitor,types) \
    BOOST_PP_SEQ_FOR_EACH(QPID_VISITOR_DECL, _, types) \
    class visitor : public ::qpid::framing::Visit<BOOST_PP_SEQ_HEAD(types)> \
    BOOST_PP_SEQ_FOR_EACH(QPID_VISITOR_BASE, _, BOOST_PP_SEQ_TAIL(types)) \
    {}

/** The root class for the hierarchy of objects visitable by Visitor V.
 * Defines virtual accept().
 */
template <class V, class R=void>
struct VisitableRoot {
    typedef V VisitorType;
    typedef R ReturnType;
    virtual ~VisitableRoot() {}
    virtual R accept(V& v) = 0;
};

/** The base class for concrete visitable classes.
 * Implements accept().
 * @param T type of visitable class (CRTP).
 * @param Base base class to inherit from.
 */
template <class T, class Base>
struct Visitable : public Base {
    void accept(typename Base::VisitorType& v) {
        static_cast<Visit<T>& >(v).visit(static_cast<T&>(*this));
    }
};

}} // namespace qpid::framing

#endif  /*!QPID_FRAMING_VISITOR_H*/