text:
package proto // import "./"

import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"

import (
	context "golang.org/x/net/context"
	grpc "google.golang.org/grpc"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package

// * 支付方式的位值
type EPayMethod int32

const (
	EPayMethod__4 EPayMethod = 0
	// * 余额抵扣
	EPayMethod_Balance EPayMethod = 1
	// * 钱包支付
	EPayMethod_Wallet EPayMethod = 2
	// * 积分兑换
	EPayMethod_Integral EPayMethod = 4
	// * 用户卡
	EPayMethod_UserCard EPayMethod = 8
	// * 用户券
	EPayMethod_UserCoupon EPayMethod = 16
	// * 现金支付
	EPayMethod_Cash EPayMethod = 32
	// * 银行卡支付
	EPayMethod_BankCard EPayMethod = 64
	// * 第三方支付,如支付宝等
	EPayMethod_PaySP EPayMethod = 128
	// * 卖家支付通道
	EPayMethod_SellerPay EPayMethod = 256
	// * 系统支付通道
	EPayMethod_SystemPay EPayMethod = 512
)

var EPayMethod_name = map[int32]string{
	0:   "_4",
	1:   "Balance",
	2:   "Wallet",
	4:   "Integral",
	8:   "UserCard",
	16:  "UserCoupon",
	32:  "Cash",
	64:  "BankCard",
	128: "PaySP",
	256: "SellerPay",
	512: "SystemPay",
}
var EPayMethod_value = map[string]int32{
	"_4":         0,
	"Balance":    1,
	"Wallet":     2,
	"Integral":   4,
	"UserCard":   8,
	"UserCoupon": 16,
	"Cash":       32,
	"BankCard":   64,
	"PaySP":      128,
	"SellerPay":  256,
	"SystemPay":  512,
}

func (x EPayMethod) String() string {
	return proto.EnumName(EPayMethod_name, int32(x))
}
func (EPayMethod) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_payment_service_abd82ebd323b6b89, []int{0}
}

type AdjustOrderRequest struct {
	PaymentNo            string   `protobuf:"bytes,1,opt,name=paymentNo,proto3" json:"paymentNo"`
	Amount               float64  `protobuf:"fixed64,2,opt,name=amount,proto3" json:"amount"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *AdjustOrderRequest) Reset()         { *m = AdjustOrderRequest{} }
func (m *AdjustOrderRequest) String() string { return proto.CompactTextString(m) }
func (*AdjustOrderRequest) ProtoMessage()    {}
func (*AdjustOrderRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_payment_service_abd82ebd323b6b89, []int{0}
}
func (m *AdjustOrderRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_AdjustOrderRequest.Unmarshal(m, b)
}
func (m *AdjustOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_AdjustOrderRequest.Marshal(b, m, deterministic)
}
func (dst *AdjustOrderRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_AdjustOrderRequest.Merge(dst, src)
}
func (m *AdjustOrderRequest) XXX_Size() int {
	return xxx_messageInfo_AdjustOrderRequest.Size(m)
}
func (m *AdjustOrderRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_AdjustOrderRequest.DiscardUnknown(m)
}

var xxx_messageInfo_AdjustOrderRequest proto.InternalMessageInfo

func (m *AdjustOrderRequest) GetPaymentNo() string {
	if m != nil {
		return m.PaymentNo
	}
	return ""
}

func (m *AdjustOrderRequest) GetAmount() float64 {
	if m != nil {
		return m.Amount
	}
	return 0
}

type DiscountBalanceRequest struct {
	OrderId              int32    `protobuf:"zigzag32,1,opt,name=orderId,proto3" json:"orderId"`
	Remark               string   `protobuf:"bytes,2,opt,name=remark,proto3" json:"remark"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *DiscountBalanceRequest) Reset()         { *m = DiscountBalanceRequest{} }
func (m *DiscountBalanceRequest) String() string { return proto.CompactTextString(m) }
func (*DiscountBalanceRequest) ProtoMessage()    {}
func (*DiscountBalanceRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_payment_service_abd82ebd323b6b89, []int{1}
}
func (m *DiscountBalanceRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_DiscountBalanceRequest.Unmarshal(m, b)
}
func (m *DiscountBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_DiscountBalanceRequest.Marshal(b, m, deterministic)
}
func (dst *DiscountBalanceRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_DiscountBalanceRequest.Merge(dst, src)
}
func (m *DiscountBalanceRequest) XXX_Size() int {
	return xxx_messageInfo_DiscountBalanceRequest.Size(m)
}
func (m *DiscountBalanceRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_DiscountBalanceRequest.DiscardUnknown(m)
}

var xxx_messageInfo_DiscountBalanceRequest proto.InternalMessageInfo

func (m *DiscountBalanceRequest) GetOrderId() int32 {
	if m != nil {
		return m.OrderId
	}
	return 0
}

func (m *DiscountBalanceRequest) GetRemark() string {
	if m != nil {
		return m.Remark
	}
	return ""
}

type DiscountIntegralRequest struct {
	OrderId              int32    `protobuf:"zigzag32,1,opt,name=orderId,proto3" json:"orderId"`
	Integral             int64    `protobuf:"zigzag64,2,opt,name=integral,proto3" json:"integral"`
	IgnoreOut            bool     `protobuf:"varint,3,opt,name=ignoreOut,proto3" json:"ignoreOut"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *DiscountIntegralRequest) Reset()         { *m = DiscountIntegralRequest{} }
func (m *DiscountIntegralRequest) String() string { return proto.CompactTextString(m) }
func (*DiscountIntegralRequest) ProtoMessage()    {}
func (*DiscountIntegralRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_payment_service_abd82ebd323b6b89, []int{2}
}
func (m *DiscountIntegralRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_DiscountIntegralRequest.Unmarshal(m, b)
}
func (m *DiscountIntegralRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_DiscountIntegralRequest.Marshal(b, m, deterministic)
}
func (dst *DiscountIntegralRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_DiscountIntegralRequest.Merge(dst, src)
}
func (m *DiscountIntegralRequest) XXX_Size() int {
	return xxx_messageInfo_DiscountIntegralRequest.Size(m)
}
func (m *DiscountIntegralRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_DiscountIntegralRequest.DiscardUnknown(m)
}

var xxx_messageInfo_DiscountIntegralRequest proto.InternalMessageInfo

func (m *DiscountIntegralRequest) GetOrderId() int32 {
	if m != nil {
		return m.OrderId
	}
	return 0
}

func (m *DiscountIntegralRequest) GetIntegral() int64 {
	if m != nil {
		return m.Integral
	}
	return 0
}

func (m *DiscountIntegralRequest) GetIgnoreOut() bool {
	if m != nil {
		return m.IgnoreOut
	}
	return false
}

type WalletPaymentRequest struct {
	TradeNo              string   `protobuf:"bytes,1,opt,name=tradeNo,proto3" json:"tradeNo"`
	MergePay             bool     `protobuf:"varint,2,opt,name=mergePay,proto3" json:"mergePay"`
	Remark               string   `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *WalletPaymentRequest) Reset()         { *m = WalletPaymentRequest{} }
func (m *WalletPaymentRequest) String() string { return proto.CompactTextString(m) }
func (*WalletPaymentRequest) ProtoMessage()    {}
func (*WalletPaymentRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_payment_service_abd82ebd323b6b89, []int{3}
}
func (m *WalletPaymentRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_WalletPaymentRequest.Unmarshal(m, b)
}
func (m *WalletPaymentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_WalletPaymentRequest.Marshal(b, m, deterministic)
}
func (dst *WalletPaymentRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_WalletPaymentRequest.Merge(dst, src)
}
func (m *WalletPaymentRequest) XXX_Size() int {
	return xxx_messageInfo_WalletPaymentRequest.Size(m)
}
func (m *WalletPaymentRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_WalletPaymentRequest.DiscardUnknown(m)
}

var xxx_messageInfo_WalletPaymentRequest proto.InternalMessageInfo

func (m *WalletPaymentRequest) GetTradeNo() string {
	if m != nil {
		return m.TradeNo
	}
	return ""
}

func (m *WalletPaymentRequest) GetMergePay() bool {
	if m != nil {
		return m.MergePay
	}
	return false
}

func (m *WalletPaymentRequest) GetRemark() string {
	if m != nil {
		return m.Remark
	}
	return ""
}

type HyperPaymentRequest struct {
	OrderId              int32    `protobuf:"zigzag32,1,opt,name=orderId,proto3" json:"orderId"`
	Remark               string   `protobuf:"bytes,2,opt,name=remark,proto3" json:"remark"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *HyperPaymentRequest) Reset()         { *m = HyperPaymentRequest{} }
func (m *HyperPaymentRequest) String() string { return proto.CompactTextString(m) }
func (*HyperPaymentRequest) ProtoMessage()    {}
func (*HyperPaymentRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_payment_service_abd82ebd323b6b89, []int{4}
}
func (m *HyperPaymentRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_HyperPaymentRequest.Unmarshal(m, b)
}
func (m *HyperPaymentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_HyperPaymentRequest.Marshal(b, m, deterministic)
}
func (dst *HyperPaymentRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_HyperPaymentRequest.Merge(dst, src)
}
func (m *HyperPaymentRequest) XXX_Size() int {
	return xxx_messageInfo_HyperPaymentRequest.Size(m)
}
func (m *HyperPaymentRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_HyperPaymentRequest.DiscardUnknown(m)
}

var xxx_messageInfo_HyperPaymentRequest proto.InternalMessageInfo

func (m *HyperPaymentRequest) GetOrderId() int32 {
	if m != nil {
		return m.OrderId
	}
	return 0
}

func (m *HyperPaymentRequest) GetRemark() string {
	if m != nil {
		return m.Remark
	}
	return ""
}

type FinishPaymentRequest struct {
	TradeNo              string   `protobuf:"bytes,1,opt,name=tradeNo,proto3" json:"tradeNo"`
	SpName               string   `protobuf:"bytes,2,opt,name=spName,proto3" json:"spName"`
	OuterNo              string   `protobuf:"bytes,3,opt,name=outerNo,proto3" json:"outerNo"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *FinishPaymentRequest) Reset()         { *m = FinishPaymentRequest{} }
func (m *FinishPaymentRequest) String() string { return proto.CompactTextString(m) }
func (*FinishPaymentRequest) ProtoMessage()    {}
func (*FinishPaymentRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_payment_service_abd82ebd323b6b89, []int{5}
}
func (m *FinishPaymentRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_FinishPaymentRequest.Unmarshal(m, b)
}
func (m *FinishPaymentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_FinishPaymentRequest.Marshal(b, m, deterministic)
}
func (dst *FinishPaymentRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_FinishPaymentRequest.Merge(dst, src)
}
func (m *FinishPaymentRequest) XXX_Size() int {
	return xxx_messageInfo_FinishPaymentRequest.Size(m)
}
func (m *FinishPaymentRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_FinishPaymentRequest.DiscardUnknown(m)
}

var xxx_messageInfo_FinishPaymentRequest proto.InternalMessageInfo

func (m *FinishPaymentRequest) GetTradeNo() string {
	if m != nil {
		return m.TradeNo
	}
	return ""
}

func (m *FinishPaymentRequest) GetSpName() string {
	if m != nil {
		return m.SpName
	}
	return ""
}

func (m *FinishPaymentRequest) GetOuterNo() string {
	if m != nil {
		return m.OuterNo
	}
	return ""
}

type OrderInfoRequest struct {
	TradeNo              string   `protobuf:"bytes,1,opt,name=tradeNo,proto3" json:"tradeNo"`
	MergePay             bool     `protobuf:"varint,2,opt,name=mergePay,proto3" json:"mergePay"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *OrderInfoRequest) Reset()         { *m = OrderInfoRequest{} }
func (m *OrderInfoRequest) String() string { return proto.CompactTextString(m) }
func (*OrderInfoRequest) ProtoMessage()    {}
func (*OrderInfoRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_payment_service_abd82ebd323b6b89, []int{6}
}
func (m *OrderInfoRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_OrderInfoRequest.Unmarshal(m, b)
}
func (m *OrderInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_OrderInfoRequest.Marshal(b, m, deterministic)
}
func (dst *OrderInfoRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_OrderInfoRequest.Merge(dst, src)
}
func (m *OrderInfoRequest) XXX_Size() int {
	return xxx_messageInfo_OrderInfoRequest.Size(m)
}
func (m *OrderInfoRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_OrderInfoRequest.DiscardUnknown(m)
}

var xxx_messageInfo_OrderInfoRequest proto.InternalMessageInfo

func (m *OrderInfoRequest) GetTradeNo() string {
	if m != nil {
		return m.TradeNo
	}
	return ""
}

func (m *OrderInfoRequest) GetMergePay() bool {
	if m != nil {
		return m.MergePay
	}
	return false
}

type MixedPaymentRequest struct {
	TradeNo              string             `protobuf:"bytes,1,opt,name=tradeNo,proto3" json:"tradeNo"`
	Data                 []*SRequestPayData `protobuf:"bytes,2,rep,name=data,proto3" json:"data"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (m *MixedPaymentRequest) Reset()         { *m = MixedPaymentRequest{} }
func (m *MixedPaymentRequest) String() string { return proto.CompactTextString(m) }
func (*MixedPaymentRequest) ProtoMessage()    {}
func (*MixedPaymentRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_payment_service_abd82ebd323b6b89, []int{7}
}
func (m *MixedPaymentRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_MixedPaymentRequest.Unmarshal(m, b)
}
func (m *MixedPaymentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_MixedPaymentRequest.Marshal(b, m, deterministic)
}
func (dst *MixedPaymentRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_MixedPaymentRequest.Merge(dst, src)
}
func (m *MixedPaymentRequest) XXX_Size() int {
	return xxx_messageInfo_MixedPaymentRequest.Size(m)
}
func (m *MixedPaymentRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_MixedPaymentRequest.DiscardUnknown(m)
}

var xxx_messageInfo_MixedPaymentRequest proto.InternalMessageInfo

func (m *MixedPaymentRequest) GetTradeNo() string {
	if m != nil {
		return m.TradeNo
	}
	return ""
}

func (m *MixedPaymentRequest) GetData() []*SRequestPayData {
	if m != nil {
		return m.Data
	}
	return nil
}

type PayGatewayRequest struct {
	Action               string            `protobuf:"bytes,1,opt,name=action,proto3" json:"action"`
	UserId               int64             `protobuf:"zigzag64,2,opt,name=userId,proto3" json:"userId"`
	Data                 map[string]string `protobuf:"bytes,3,rep,name=data,proto3" json:"data" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (m *PayGatewayRequest) Reset()         { *m = PayGatewayRequest{} }
func (m *PayGatewayRequest) String() string { return proto.CompactTextString(m) }
func (*PayGatewayRequest) ProtoMessage()    {}
func (*PayGatewayRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_payment_service_abd82ebd323b6b89, []int{8}
}
func (m *PayGatewayRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_PayGatewayRequest.Unmarshal(m, b)
}
func (m *PayGatewayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_PayGatewayRequest.Marshal(b, m, deterministic)
}
func (dst *PayGatewayRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_PayGatewayRequest.Merge(dst, src)
}
func (m *PayGatewayRequest) XXX_Size() int {
	return xxx_messageInfo_PayGatewayRequest.Size(m)
}
func (m *PayGatewayRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_PayGatewayRequest.DiscardUnknown(m)
}

var xxx_messageInfo_PayGatewayRequest proto.InternalMessageInfo

func (m *PayGatewayRequest) GetAction() string {
	if m != nil {
		return m.Action
	}
	return ""
}

func (m *PayGatewayRequest) GetUserId() int64 {
	if m != nil {
		return m.UserId
	}
	return 0
}

func (m *PayGatewayRequest) GetData() map[string]string {
	if m != nil {
		return m.Data
	}
	return nil
}

// * 支付单
type SPaymentOrder struct {
	// * 交易号
	TradeNo string `protobuf:"bytes,1,opt,name=tradeNo,proto3" json:"tradeNo"`
	// * 卖家编号
	SellerId int32 `protobuf:"zigzag32,2,opt,name=SellerId,proto3" json:"SellerId"`
	// * 交易类型
	TradeType string `protobuf:"bytes,3,opt,name=Trade_type,json=TradeType,proto3" json:"Trade_type"`
	// * 合并支付交单单号
	MergeTradeNo string `protobuf:"bytes,4,opt,name=MergeTradeNo,proto3" json:"MergeTradeNo"`
	// * 支付单详情
	Subject string `protobuf:"bytes,5,opt,name=Subject,proto3" json:"Subject"`
	// * 是否为子订单
	SubOrder bool `protobuf:"varint,6,opt,name=SubOrder,proto3" json:"SubOrder"`
	// * 支付单的类型,如购物或其他
	OrderType int32 `protobuf:"zigzag32,7,opt,name=Order_type,json=OrderType,proto3" json:"Order_type"`
	// * 外部订单号
	OutOrderNo string `protobuf:"bytes,8,opt,name=OutOrderNo,proto3" json:"OutOrderNo"`
	// * 买家编号
	BuyerId int32 `protobuf:"zigzag32,9,opt,name=BuyerId,proto3" json:"BuyerId"`
	// * 支付用户编号
	PayUid int32 `protobuf:"zigzag32,10,opt,name=PayUid,proto3" json:"PayUid"`
	// * 商品金额
	ItemAmount int32 `protobuf:"zigzag32,11,opt,name=ItemAmount,proto3" json:"ItemAmount"`
	// * 优惠金额
	DiscountAmount int32 `protobuf:"zigzag32,12,opt,name=DiscountAmount,proto3" json:"DiscountAmount"`
	// * 调整金额
	AdjustAmount int32 `protobuf:"zigzag32,13,opt,name=AdjustAmount,proto3" json:"AdjustAmount"`
	// * 抵扣金额
	DeductAmount int32 `protobuf:"zigzag32,14,opt,name=DeductAmount,proto3" json:"DeductAmount"`
	// * 共计金额
	TotalAmount int32 `protobuf:"zigzag32,15,opt,name=TotalAmount,proto3" json:"TotalAmount"`
	// * 手续费
	ProcedureFee int32 `protobuf:"zigzag32,16,opt,name=ProcedureFee,proto3" json:"ProcedureFee"`
	// * 实付金额
	PaidFee int32 `protobuf:"zigzag32,17,opt,name=PaidFee,proto3" json:"PaidFee"`
	// * 最终应付金额
	FinalFee int32 `protobuf:"zigzag32,18,opt,name=FinalFee,proto3" json:"FinalFee"`
	// * 可⽤支付方式
	PayFlag int32 `protobuf:"zigzag32,19,opt,name=PayFlag,proto3" json:"PayFlag"`
	// * 实际使用支付方式
	FinalFlag int32 `protobuf:"zigzag32,20,opt,name=FinalFlag,proto3" json:"FinalFlag"`
	// * 其他支付信息
	ExtraData string `protobuf:"bytes,21,opt,name=ExtraData,proto3" json:"ExtraData"`
	// * 订单状态
	State int32 `protobuf:"zigzag32,22,opt,name=State,proto3" json:"State"`
	// * 提交时间
	SubmitTime int64 `protobuf:"zigzag64,23,opt,name=submit_time,json=submitTime,proto3" json:"submit_time"`
	// * 过期时间
	ExpiresTime int64 `protobuf:"zigzag64,24,opt,name=ExpiresTime,proto3" json:"ExpiresTime"`
	// * 支付时间
	PaidTime int64 `protobuf:"zigzag64,25,opt,name=PaidTime,proto3" json:"PaidTime"`
	// * 交易数据
	TradeData []*STradeMethodData `protobuf:"bytes,26,rep,name=TradeData,proto3" json:"TradeData"`
	// * 编号
	Id                   int32    `protobuf:"zigzag32,27,opt,name=Id,proto3" json:"Id"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *SPaymentOrder) Reset()         { *m = SPaymentOrder{} }
func (m *SPaymentOrder) String() string { return proto.CompactTextString(m) }
func (*SPaymentOrder) ProtoMessage()    {}
func (*SPaymentOrder) Descriptor() ([]byte, []int) {
	return fileDescriptor_payment_service_abd82ebd323b6b89, []int{9}
}
func (m *SPaymentOrder) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_SPaymentOrder.Unmarshal(m, b)
}
func (m *SPaymentOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_SPaymentOrder.Marshal(b, m, deterministic)
}
func (dst *SPaymentOrder) XXX_Merge(src proto.Message) {
	xxx_messageInfo_SPaymentOrder.Merge(dst, src)
}
func (m *SPaymentOrder) XXX_Size() int {
	return xxx_messageInfo_SPaymentOrder.Size(m)
}
func (m *SPaymentOrder) XXX_DiscardUnknown() {
	xxx_messageInfo_SPaymentOrder.DiscardUnknown(m)
}

var xxx_messageInfo_SPaymentOrder proto.InternalMessageInfo

func (m *SPaymentOrder) GetTradeNo() string {
	if m != nil {
		return m.TradeNo
	}
	return ""
}

func (m *SPaymentOrder) GetSellerId() int32 {
	if m != nil {
		return m.SellerId
	}
	return 0
}

func (m *SPaymentOrder) GetTradeType() string {
	if m != nil {
		return m.TradeType
	}
	return ""
}

func (m *SPaymentOrder) GetMergeTradeNo() string {
	if m != nil {
		return m.MergeTradeNo
	}
	return ""
}

func (m *SPaymentOrder) GetSubject() string {
	if m != nil {
		return m.Subject
	}
	return ""
}

func (m *SPaymentOrder) GetSubOrder() bool {
	if m != nil {
		return m.SubOrder
	}
	return false
}

func (m *SPaymentOrder) GetOrderType() int32 {
	if m != nil {
		return m.OrderType
	}
	return 0
}

func (m *SPaymentOrder) GetOutOrderNo() string {
	if m != nil {
		return m.OutOrderNo
	}
	return ""
}

func (m *SPaymentOrder) GetBuyerId() int32 {
	if m != nil {
		return m.BuyerId
	}
	return 0
}

func (m *SPaymentOrder) GetPayUid() int32 {
	if m != nil {
		return m.PayUid
	}
	return 0
}

func (m *SPaymentOrder) GetItemAmount() int32 {
	if m != nil {
		return m.ItemAmount
	}
	return 0
}

func (m *SPaymentOrder) GetDiscountAmount() int32 {
	if m != nil {
		return m.DiscountAmount
	}
	return 0
}

func (m *SPaymentOrder) GetAdjustAmount() int32 {
	if m != nil {
		return m.AdjustAmount
	}
	return 0
}

func (m *SPaymentOrder) GetDeductAmount() int32 {
	if m != nil {
		return m.DeductAmount
	}
	return 0
}

func (m *SPaymentOrder) GetTotalAmount() int32 {
	if m != nil {
		return m.TotalAmount
	}
	return 0
}

func (m *SPaymentOrder) GetProcedureFee() int32 {
	if m != nil {
		return m.ProcedureFee
	}
	return 0
}

func (m *SPaymentOrder) GetPaidFee() int32 {
	if m != nil {
		return m.PaidFee
	}
	return 0
}

func (m *SPaymentOrder) GetFinalFee() int32 {
	if m != nil {
		return m.FinalFee
	}
	return 0
}

func (m *SPaymentOrder) GetPayFlag() int32 {
	if m != nil {
		return m.PayFlag
	}
	return 0
}

func (m *SPaymentOrder) GetFinalFlag() int32 {
	if m != nil {
		return m.FinalFlag
	}
	return 0
}

func (m *SPaymentOrder) GetExtraData() string {
	if m != nil {
		return m.ExtraData
	}
	return ""
}

func (m *SPaymentOrder) GetState() int32 {
	if m != nil {
		return m.State
	}
	return 0
}

func (m *SPaymentOrder) GetSubmitTime() int64 {
	if m != nil {
		return m.SubmitTime
	}
	return 0
}

func (m *SPaymentOrder) GetExpiresTime() int64 {
	if m != nil {
		return m.ExpiresTime
	}
	return 0
}

func (m *SPaymentOrder) GetPaidTime() int64 {
	if m != nil {
		return m.PaidTime
	}
	return 0
}

func (m *SPaymentOrder) GetTradeData() []*STradeMethodData {
	if m != nil {
		return m.TradeData
	}
	return nil
}

func (m *SPaymentOrder) GetId() int32 {
	if m != nil {
		return m.Id
	}
	return 0
}

// * 请求支付数据
type SRequestPayData struct {
	// * 支付方式
	Method int32 `protobuf:"zigzag32,1,opt,name=Method,proto3" json:"Method"`
	// * 支付方式代码
	Code string `protobuf:"bytes,2,opt,name=Code,proto3" json:"Code"`
	// * 支付金额
	Amount               int32    `protobuf:"zigzag32,3,opt,name=amount,proto3" json:"amount"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *SRequestPayData) Reset()         { *m = SRequestPayData{} }
func (m *SRequestPayData) String() string { return proto.CompactTextString(m) }
func (*SRequestPayData) ProtoMessage()    {}
func (*SRequestPayData) Descriptor() ([]byte, []int) {
	return fileDescriptor_payment_service_abd82ebd323b6b89, []int{10}
}
func (m *SRequestPayData) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_SRequestPayData.Unmarshal(m, b)
}
func (m *SRequestPayData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_SRequestPayData.Marshal(b, m, deterministic)
}
func (dst *SRequestPayData) XXX_Merge(src proto.Message) {
	xxx_messageInfo_SRequestPayData.Merge(dst, src)
}
func (m *SRequestPayData) XXX_Size() int {
	return xxx_messageInfo_SRequestPayData.Size(m)
}
func (m *SRequestPayData) XXX_DiscardUnknown() {
	xxx_messageInfo_SRequestPayData.DiscardUnknown(m)
}

var xxx_messageInfo_SRequestPayData proto.InternalMessageInfo

func (m *SRequestPayData) GetMethod() int32 {
	if m != nil {
		return m.Method
	}
	return 0
}

func (m *SRequestPayData) GetCode() string {
	if m != nil {
		return m.Code
	}
	return ""
}

func (m *SRequestPayData) GetAmount() int32 {
	if m != nil {
		return m.Amount
	}
	return 0
}

// * 交易方式数据
type STradeMethodData struct {
	// * 支付途径
	Method int32 `protobuf:"zigzag32,1,opt,name=Method,proto3" json:"Method"`
	// * 交易代码
	Code string `protobuf:"bytes,2,opt,name=Code,proto3" json:"Code"`
	// * 支付金额
	Amount int32 `protobuf:"zigzag32,3,opt,name=amount,proto3" json:"amount"`
	// * 是否为内置支付途径
	Internal int32 `protobuf:"zigzag32,4,opt,name=Internal,proto3" json:"Internal"`
	// * 外部交易单号
	OutTradeNo string `protobuf:"bytes,5,opt,name=OutTradeNo,proto3" json:"OutTradeNo"`
	// * 支付时间
	PayTime              int64    `protobuf:"zigzag64,6,opt,name=PayTime,proto3" json:"PayTime"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *STradeMethodData) Reset()         { *m = STradeMethodData{} }
func (m *STradeMethodData) String() string { return proto.CompactTextString(m) }
func (*STradeMethodData) ProtoMessage()    {}
func (*STradeMethodData) Descriptor() ([]byte, []int) {
	return fileDescriptor_payment_service_abd82ebd323b6b89, []int{11}
}
func (m *STradeMethodData) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_STradeMethodData.Unmarshal(m, b)
}
func (m *STradeMethodData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_STradeMethodData.Marshal(b, m, deterministic)
}
func (dst *STradeMethodData) XXX_Merge(src proto.Message) {
	xxx_messageInfo_STradeMethodData.Merge(dst, src)
}
func (m *STradeMethodData) XXX_Size() int {
	return xxx_messageInfo_STradeMethodData.Size(m)
}
func (m *STradeMethodData) XXX_DiscardUnknown() {
	xxx_messageInfo_STradeMethodData.DiscardUnknown(m)
}

var xxx_messageInfo_STradeMethodData proto.InternalMessageInfo

func (m *STradeMethodData) GetMethod() int32 {
	if m != nil {
		return m.Method
	}
	return 0
}

func (m *STradeMethodData) GetCode() string {
	if m != nil {
		return m.Code
	}
	return ""
}

func (m *STradeMethodData) GetAmount() int32 {
	if m != nil {
		return m.Amount
	}
	return 0
}

func (m *STradeMethodData) GetInternal() int32 {
	if m != nil {
		return m.Internal
	}
	return 0
}

func (m *STradeMethodData) GetOutTradeNo() string {
	if m != nil {
		return m.OutTradeNo
	}
	return ""
}

func (m *STradeMethodData) GetPayTime() int64 {
	if m != nil {
		return m.PayTime
	}
	return 0
}

// * 支付单预交易数据
type SPrepareTradeData struct {
	// * 错误码
	ErrCode int32 `protobuf:"zigzag32,1,opt,name=err_code,json=errCode,proto3" json:"err_code"`
	// * 错误消息
	ErrMsg string `protobuf:"bytes,2,opt,name=err_msg,json=errMsg,proto3" json:"err_msg"`
	// * 交易号
	TradeNo string `protobuf:"bytes,3,opt,name=tradeNo,proto3" json:"tradeNo"`
	// * 支付标志
	PayFlag int32 `protobuf:"zigzag32,4,opt,name=PayFlag,proto3" json:"PayFlag"`
	// * 交易状态
	TradeState int32 `protobuf:"zigzag32,5,opt,name=TradeState,proto3" json:"TradeState"`
	// * 交易订单
	TradeOrders []*SPaymentOrderData `protobuf:"bytes,6,rep,name=TradeOrders,proto3" json:"TradeOrders"`
	// * 累计金额
	TotalAmount int32 `protobuf:"zigzag32,7,opt,name=TotalAmount,proto3" json:"TotalAmount"`
	// * 手续费
	ProcedureFee int32 `protobuf:"zigzag32,8,opt,name=ProcedureFee,proto3" json:"ProcedureFee"`
	// * 最终支付金额
	FinalFee             int32    `protobuf:"zigzag32,9,opt,name=FinalFee,proto3" json:"FinalFee"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *SPrepareTradeData) Reset()         { *m = SPrepareTradeData{} }
func (m *SPrepareTradeData) String() string { return proto.CompactTextString(m) }
func (*SPrepareTradeData) ProtoMessage()    {}
func (*SPrepareTradeData) Descriptor() ([]byte, []int) {
	return fileDescriptor_payment_service_abd82ebd323b6b89, []int{12}
}
func (m *SPrepareTradeData) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_SPrepareTradeData.Unmarshal(m, b)
}
func (m *SPrepareTradeData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_SPrepareTradeData.Marshal(b, m, deterministic)
}
func (dst *SPrepareTradeData) XXX_Merge(src proto.Message) {
	xxx_messageInfo_SPrepareTradeData.Merge(dst, src)
}
func (m *SPrepareTradeData) XXX_Size() int {
	return xxx_messageInfo_SPrepareTradeData.Size(m)
}
func (m *SPrepareTradeData) XXX_DiscardUnknown() {
	xxx_messageInfo_SPrepareTradeData.DiscardUnknown(m)
}

var xxx_messageInfo_SPrepareTradeData proto.InternalMessageInfo

func (m *SPrepareTradeData) GetErrCode() int32 {
	if m != nil {
		return m.ErrCode
	}
	return 0
}

func (m *SPrepareTradeData) GetErrMsg() string {
	if m != nil {
		return m.ErrMsg
	}
	return ""
}

func (m *SPrepareTradeData) GetTradeNo() string {
	if m != nil {
		return m.TradeNo
	}
	return ""
}

func (m *SPrepareTradeData) GetPayFlag() int32 {
	if m != nil {
		return m.PayFlag
	}
	return 0
}

func (m *SPrepareTradeData) GetTradeState() int32 {
	if m != nil {
		return m.TradeState
	}
	return 0
}

func (m *SPrepareTradeData) GetTradeOrders() []*SPaymentOrderData {
	if m != nil {
		return m.TradeOrders
	}
	return nil
}

func (m *SPrepareTradeData) GetTotalAmount() int32 {
	if m != nil {
		return m.TotalAmount
	}
	return 0
}

func (m *SPrepareTradeData) GetProcedureFee() int32 {
	if m != nil {
		return m.ProcedureFee
	}
	return 0
}

func (m *SPrepareTradeData) GetFinalFee() int32 {
	if m != nil {
		return m.FinalFee
	}
	return 0
}

// * 支付单数据
type SPaymentOrderData struct {
	// * 交易订单号
	OrderNo string `protobuf:"bytes,1,opt,name=OrderNo,proto3" json:"OrderNo"`
	// * 标题
	Subject string `protobuf:"bytes,2,opt,name=Subject,proto3" json:"Subject"`
	// * 交易类型
	TradeType string `protobuf:"bytes,3,opt,name=Trade_type,json=TradeType,proto3" json:"Trade_type"`
	// * 状态
	State int32 `protobuf:"zigzag32,4,opt,name=State,proto3" json:"State"`
	// * 手续费
	ProcedureFee int32 `protobuf:"zigzag32,5,opt,name=ProcedureFee,proto3" json:"ProcedureFee"`
	// * 最终支付金额
	FinalFee             int32    `protobuf:"zigzag32,6,opt,name=FinalFee,proto3" json:"FinalFee"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *SPaymentOrderData) Reset()         { *m = SPaymentOrderData{} }
func (m *SPaymentOrderData) String() string { return proto.CompactTextString(m) }
func (*SPaymentOrderData) ProtoMessage()    {}
func (*SPaymentOrderData) Descriptor() ([]byte, []int) {
	return fileDescriptor_payment_service_abd82ebd323b6b89, []int{13}
}
func (m *SPaymentOrderData) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_SPaymentOrderData.Unmarshal(m, b)
}
func (m *SPaymentOrderData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_SPaymentOrderData.Marshal(b, m, deterministic)
}
func (dst *SPaymentOrderData) XXX_Merge(src proto.Message) {
	xxx_messageInfo_SPaymentOrderData.Merge(dst, src)
}
func (m *SPaymentOrderData) XXX_Size() int {
	return xxx_messageInfo_SPaymentOrderData.Size(m)
}
func (m *SPaymentOrderData) XXX_DiscardUnknown() {
	xxx_messageInfo_SPaymentOrderData.DiscardUnknown(m)
}

var xxx_messageInfo_SPaymentOrderData proto.InternalMessageInfo

func (m *SPaymentOrderData) GetOrderNo() string {
	if m != nil {
		return m.OrderNo
	}
	return ""
}

func (m *SPaymentOrderData) GetSubject() string {
	if m != nil {
		return m.Subject
	}
	return ""
}

func (m *SPaymentOrderData) GetTradeType() string {
	if m != nil {
		return m.TradeType
	}
	return ""
}

func (m *SPaymentOrderData) GetState() int32 {
	if m != nil {
		return m.State
	}
	return 0
}

func (m *SPaymentOrderData) GetProcedureFee() int32 {
	if m != nil {
		return m.ProcedureFee
	}
	return 0
}

func (m *SPaymentOrderData) GetFinalFee() int32 {
	if m != nil {
		return m.FinalFee
	}
	return 0
}

func init() {
	proto.RegisterType((*AdjustOrderRequest)(nil), "AdjustOrderRequest")
	proto.RegisterType((*DiscountBalanceRequest)(nil), "DiscountBalanceRequest")
	proto.RegisterType((*DiscountIntegralRequest)(nil), "DiscountIntegralRequest")
	proto.RegisterType((*WalletPaymentRequest)(nil), "WalletPaymentRequest")
	proto.RegisterType((*HyperPaymentRequest)(nil), "HyperPaymentRequest")
	proto.RegisterType((*FinishPaymentRequest)(nil), "FinishPaymentRequest")
	proto.RegisterType((*OrderInfoRequest)(nil), "OrderInfoRequest")
	proto.RegisterType((*MixedPaymentRequest)(nil), "MixedPaymentRequest")
	proto.RegisterType((*PayGatewayRequest)(nil), "PayGatewayRequest")
	proto.RegisterMapType((map[string]string)(nil), "PayGatewayRequest.DataEntry")
	proto.RegisterType((*SPaymentOrder)(nil), "SPaymentOrder")
	proto.RegisterType((*SRequestPayData)(nil), "SRequestPayData")
	proto.RegisterType((*STradeMethodData)(nil), "STradeMethodData")
	proto.RegisterType((*SPrepareTradeData)(nil), "SPrepareTradeData")
	proto.RegisterType((*SPaymentOrderData)(nil), "SPaymentOrderData")
	proto.RegisterEnum("EPayMethod", EPayMethod_name, EPayMethod_value)
}

// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn

// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4

// PaymentServiceClient is the client API for PaymentService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type PaymentServiceClient interface {
	// 创建支付单并提交
	SubmitPaymentOrder(ctx context.Context, in *SPaymentOrder, opts ...grpc.CallOption) (*Result, error)
	// 根据支付单号获取支付单,orderNo
	GetPaymentOrder(ctx context.Context, in *String, opts ...grpc.CallOption) (*SPaymentOrder, error)
	// 根据交易号获取支付单编号,tradeNo
	GetPaymentOrderId(ctx context.Context, in *String, opts ...grpc.CallOption) (*Int32, error)
	// 根据编号获取支付单
	GetPaymentOrderById(ctx context.Context, in *Int32, opts ...grpc.CallOption) (*SPaymentOrder, error)
	// 调整支付单金额
	AdjustOrder(ctx context.Context, in *AdjustOrderRequest, opts ...grpc.CallOption) (*Result, error)
	// 余额抵扣
	DiscountByBalance(ctx context.Context, in *DiscountBalanceRequest, opts ...grpc.CallOption) (*Result, error)
	// 积分抵扣支付单
	DiscountByIntegral(ctx context.Context, in *DiscountIntegralRequest, opts ...grpc.CallOption) (*Result, error)
	// 钱包账户支付
	PaymentByWallet(ctx context.Context, in *WalletPaymentRequest, opts ...grpc.CallOption) (*Result, error)
	// 余额钱包混合支付,优先扣除余额。
	HybridPayment(ctx context.Context, in *HyperPaymentRequest, opts ...grpc.CallOption) (*Result, error)
	// 完成支付单支付,并传入支付方式及外部订单号
	FinishPayment(ctx context.Context, in *FinishPaymentRequest, opts ...grpc.CallOption) (*Result, error)
	// 支付网关
	GatewayV1(ctx context.Context, in *PayGatewayRequest, opts ...grpc.CallOption) (*Result, error)
	// 获取支付预交易数据
	GetPaymentOrderInfo(ctx context.Context, in *OrderInfoRequest, opts ...grpc.CallOption) (*SPrepareTradeData, error)
	// *
	// 支付单混合支付
	//
	// @param storeCode 店铺编号
	// @param tradeNo   交易号
	// @param data  支付数据
	// @return 支付结果,返回:order_state
	MixedPayment(ctx context.Context, in *MixedPaymentRequest, opts ...grpc.CallOption) (*Result, error)
}

type paymentServiceClient struct {
	cc *grpc.ClientConn
}

func NewPaymentServiceClient(cc *grpc.ClientConn) PaymentServiceClient {
	return &paymentServiceClient{cc}
}

func (c *paymentServiceClient) SubmitPaymentOrder(ctx context.Context, in *SPaymentOrder, opts ...grpc.CallOption) (*Result, error) {
	out := new(Result)
	err := c.cc.Invoke(ctx, "/PaymentService/SubmitPaymentOrder", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *paymentServiceClient) GetPaymentOrder(ctx context.Context, in *String, opts ...grpc.CallOption) (*SPaymentOrder, error) {
	out := new(SPaymentOrder)
	err := c.cc.Invoke(ctx, "/PaymentService/GetPaymentOrder", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *paymentServiceClient) GetPaymentOrderId(ctx context.Context, in *String, opts ...grpc.CallOption) (*Int32, error) {
	out := new(Int32)
	err := c.cc.Invoke(ctx, "/PaymentService/GetPaymentOrderId", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *paymentServiceClient) GetPaymentOrderById(ctx context.Context, in *Int32, opts ...grpc.CallOption) (*SPaymentOrder, error) {
	out := new(SPaymentOrder)
	err := c.cc.Invoke(ctx, "/PaymentService/GetPaymentOrderById", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *paymentServiceClient) AdjustOrder(ctx context.Context, in *AdjustOrderRequest, opts ...grpc.CallOption) (*Result, error) {
	out := new(Result)
	err := c.cc.Invoke(ctx, "/PaymentService/AdjustOrder", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *paymentServiceClient) DiscountByBalance(ctx context.Context, in *DiscountBalanceRequest, opts ...grpc.CallOption) (*Result, error) {
	out := new(Result)
	err := c.cc.Invoke(ctx, "/PaymentService/DiscountByBalance", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *paymentServiceClient) DiscountByIntegral(ctx context.Context, in *DiscountIntegralRequest, opts ...grpc.CallOption) (*Result, error) {
	out := new(Result)
	err := c.cc.Invoke(ctx, "/PaymentService/DiscountByIntegral", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *paymentServiceClient) PaymentByWallet(ctx context.Context, in *WalletPaymentRequest, opts ...grpc.CallOption) (*Result, error) {
	out := new(Result)
	err := c.cc.Invoke(ctx, "/PaymentService/PaymentByWallet", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *paymentServiceClient) HybridPayment(ctx context.Context, in *HyperPaymentRequest, opts ...grpc.CallOption) (*Result, error) {
	out := new(Result)
	err := c.cc.Invoke(ctx, "/PaymentService/HybridPayment", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *paymentServiceClient) FinishPayment(ctx context.Context, in *FinishPaymentRequest, opts ...grpc.CallOption) (*Result, error) {
	out := new(Result)
	err := c.cc.Invoke(ctx, "/PaymentService/FinishPayment", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *paymentServiceClient) GatewayV1(ctx context.Context, in *PayGatewayRequest, opts ...grpc.CallOption) (*Result, error) {
	out := new(Result)
	err := c.cc.Invoke(ctx, "/PaymentService/GatewayV1", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *paymentServiceClient) GetPaymentOrderInfo(ctx context.Context, in *OrderInfoRequest, opts ...grpc.CallOption) (*SPrepareTradeData, error) {
	out := new(SPrepareTradeData)
	err := c.cc.Invoke(ctx, "/PaymentService/GetPaymentOrderInfo", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *paymentServiceClient) MixedPayment(ctx context.Context, in *MixedPaymentRequest, opts ...grpc.CallOption) (*Result, error) {
	out := new(Result)
	err := c.cc.Invoke(ctx, "/PaymentService/MixedPayment", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// PaymentServiceServer is the server API for PaymentService service.
type PaymentServiceServer interface {
	// 创建支付单并提交
	SubmitPaymentOrder(context.Context, *SPaymentOrder) (*Result, error)
	// 根据支付单号获取支付单,orderNo
	GetPaymentOrder(context.Context, *String) (*SPaymentOrder, error)
	// 根据交易号获取支付单编号,tradeNo
	GetPaymentOrderId(context.Context, *String) (*Int32, error)
	// 根据编号获取支付单
	GetPaymentOrderById(context.Context, *Int32) (*SPaymentOrder, error)
	// 调整支付单金额
	AdjustOrder(context.Context, *AdjustOrderRequest) (*Result, error)
	// 余额抵扣
	DiscountByBalance(context.Context, *DiscountBalanceRequest) (*Result, error)
	// 积分抵扣支付单
	DiscountByIntegral(context.Context, *DiscountIntegralRequest) (*Result, error)
	// 钱包账户支付
	PaymentByWallet(context.Context, *WalletPaymentRequest) (*Result, error)
	// 余额钱包混合支付,优先扣除余额。
	HybridPayment(context.Context, *HyperPaymentRequest) (*Result, error)
	// 完成支付单支付,并传入支付方式及外部订单号
	FinishPayment(context.Context, *FinishPaymentRequest) (*Result, error)
	// 支付网关
	GatewayV1(context.Context, *PayGatewayRequest) (*Result, error)
	// 获取支付预交易数据
	GetPaymentOrderInfo(context.Context, *OrderInfoRequest) (*SPrepareTradeData, error)
	// *
	// 支付单混合支付
	//
	// @param storeCode 店铺编号
	// @param tradeNo   交易号
	// @param data  支付数据
	// @return 支付结果,返回:order_state
	MixedPayment(context.Context, *MixedPaymentRequest) (*Result, error)
}

func RegisterPaymentServiceServer(s *grpc.Server, srv PaymentServiceServer) {
	s.RegisterService(&_PaymentService_serviceDesc, srv)
}

func _PaymentService_SubmitPaymentOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(SPaymentOrder)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PaymentServiceServer).SubmitPaymentOrder(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/PaymentService/SubmitPaymentOrder",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PaymentServiceServer).SubmitPaymentOrder(ctx, req.(*SPaymentOrder))
	}
	return interceptor(ctx, in, info, handler)
}

func _PaymentService_GetPaymentOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(String)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PaymentServiceServer).GetPaymentOrder(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/PaymentService/GetPaymentOrder",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PaymentServiceServer).GetPaymentOrder(ctx, req.(*String))
	}
	return interceptor(ctx, in, info, handler)
}

func _PaymentService_GetPaymentOrderId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(String)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PaymentServiceServer).GetPaymentOrderId(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/PaymentService/GetPaymentOrderId",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PaymentServiceServer).GetPaymentOrderId(ctx, req.(*String))
	}
	return interceptor(ctx, in, info, handler)
}

func _PaymentService_GetPaymentOrderById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(Int32)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PaymentServiceServer).GetPaymentOrderById(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/PaymentService/GetPaymentOrderById",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PaymentServiceServer).GetPaymentOrderById(ctx, req.(*Int32))
	}
	return interceptor(ctx, in, info, handler)
}

func _PaymentService_AdjustOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(AdjustOrderRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PaymentServiceServer).AdjustOrder(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/PaymentService/AdjustOrder",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PaymentServiceServer).AdjustOrder(ctx, req.(*AdjustOrderRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PaymentService_DiscountByBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DiscountBalanceRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PaymentServiceServer).DiscountByBalance(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/PaymentService/DiscountByBalance",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PaymentServiceServer).DiscountByBalance(ctx, req.(*DiscountBalanceRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PaymentService_DiscountByIntegral_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DiscountIntegralRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PaymentServiceServer).DiscountByIntegral(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/PaymentService/DiscountByIntegral",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PaymentServiceServer).DiscountByIntegral(ctx, req.(*DiscountIntegralRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PaymentService_PaymentByWallet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(WalletPaymentRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PaymentServiceServer).PaymentByWallet(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/PaymentService/PaymentByWallet",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PaymentServiceServer).PaymentByWallet(ctx, req.(*WalletPaymentRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PaymentService_HybridPayment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(HyperPaymentRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PaymentServiceServer).HybridPayment(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/PaymentService/HybridPayment",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PaymentServiceServer).HybridPayment(ctx, req.(*HyperPaymentRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PaymentService_FinishPayment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(FinishPaymentRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PaymentServiceServer).FinishPayment(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/PaymentService/FinishPayment",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PaymentServiceServer).FinishPayment(ctx, req.(*FinishPaymentRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PaymentService_GatewayV1_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(PayGatewayRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PaymentServiceServer).GatewayV1(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/PaymentService/GatewayV1",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PaymentServiceServer).GatewayV1(ctx, req.(*PayGatewayRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PaymentService_GetPaymentOrderInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(OrderInfoRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PaymentServiceServer).GetPaymentOrderInfo(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/PaymentService/GetPaymentOrderInfo",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PaymentServiceServer).GetPaymentOrderInfo(ctx, req.(*OrderInfoRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PaymentService_MixedPayment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(MixedPaymentRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PaymentServiceServer).MixedPayment(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/PaymentService/MixedPayment",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PaymentServiceServer).MixedPayment(ctx, req.(*MixedPaymentRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _PaymentService_serviceDesc = grpc.ServiceDesc{
	ServiceName: "PaymentService",
	HandlerType: (*PaymentServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SubmitPaymentOrder",
			Handler:    _PaymentService_SubmitPaymentOrder_Handler,
		},
		{
			MethodName: "GetPaymentOrder",
			Handler:    _PaymentService_GetPaymentOrder_Handler,
		},
		{
			MethodName: "GetPaymentOrderId",
			Handler:    _PaymentService_GetPaymentOrderId_Handler,
		},
		{
			MethodName: "GetPaymentOrderById",
			Handler:    _PaymentService_GetPaymentOrderById_Handler,
		},
		{
			MethodName: "AdjustOrder",
			Handler:    _PaymentService_AdjustOrder_Handler,
		},
		{
			MethodName: "DiscountByBalance",
			Handler:    _PaymentService_DiscountByBalance_Handler,
		},
		{
			MethodName: "DiscountByIntegral",
			Handler:    _PaymentService_DiscountByIntegral_Handler,
		},
		{
			MethodName: "PaymentByWallet",
			Handler:    _PaymentService_PaymentByWallet_Handler,
		},
		{
			MethodName: "HybridPayment",
			Handler:    _PaymentService_HybridPayment_Handler,
		},
		{
			MethodName: "FinishPayment",
			Handler:    _PaymentService_FinishPayment_Handler,
		},
		{
			MethodName: "GatewayV1",
			Handler:    _PaymentService_GatewayV1_Handler,
		},
		{
			MethodName: "GetPaymentOrderInfo",
			Handler:    _PaymentService_GetPaymentOrderInfo_Handler,
		},
		{
			MethodName: "MixedPayment",
			Handler:    _PaymentService_MixedPayment_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "payment_service.proto",
}

func init() {
	proto.RegisterFile("payment_service.proto", fileDescriptor_payment_service_abd82ebd323b6b89)
}

var fileDescriptor_payment_service_abd82ebd323b6b89 = []byte{
	// 1325 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xcb, 0x6f, 0x1b, 0x37,
	0x13, 0xb7, 0x9e, 0x96, 0x46, 0xb6, 0xbc, 0xa2, 0x5f, 0x1b, 0x7d, 0xf9, 0x12, 0x63, 0xf1, 0x21,
	0x30, 0x82, 0xaf, 0xeb, 0xc4, 0x09, 0x90, 0x3e, 0x80, 0xa2, 0x71, 0x62, 0x27, 0x0a, 0x60, 0x47,
	0x90, 0xec, 0x16, 0xe8, 0xc5, 0xa0, 0xb4, 0xac, 0xbc, 0xc9, 0x3e, 0x54, 0x2e, 0x37, 0xcd, 0xde,
	0xf2, 0x8f, 0xf4, 0xd2, 0x73, 0xd1, 0x4b, 0xaf, 0xbd, 0xf7, 0xdf, 0x2a, 0x38, 0xe4, 0x4a, 0x5c,
	0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64, 0xd7, 0x5d, 0x3e, 0x12, 0x9b, 0x1b, 0x3f, 0x03, 0x32, 0xdf, 0x98,
	0x5f, 0x16, 0xb1, 0xdd, 0x3f, 0x19, 0x80, 0xcd, 0xad, 0x8f, 0x60, 0x43, 0x3b, 0x7d, 0x94, 0xa9,
	0x2b, 0x27, 0xdb, 0xee, 0xb2, 0x49, 0xd6, 0xdc, 0xf4, 0x00, 0xd6, 0x5f, 0x66, 0x23, 0xee, 0xe7,
	0x03, 0x19, 0xd9, 0x72, 0x97, 0x8c, 0xa5, 0xe6, 0x8e, 0x87, 0xb0, 0x5e, 0x98, 0x37, 0xc9, 0xb6,
	0xbb, 0x6c, 0xfe, 0x34, 0xb7, 0xdc, 0x87, 0xa6, 0x9e, 0xa3, 0xbe, 0x7e, 0x48, 0xc8, 0xf5, 0xb1,
	0xca, 0xe4, 0x7e, 0x79, 0xed, 0x66, 0xe4, 0xd0, 0x49, 0x3a, 0xee, 0xe2, 0x00, 0xda, 0x95, 0xfd,
	0x63, 0xa1, 0xe1, 0xe1, 0xcd, 0xae, 0x99, 0x03, 0x26, 0xd9, 0x72, 0x97, 0xcc, 0x9b, 0x86, 0xc1,
	0xa3, 0xbb, 0xb0, 0x39, 0x8e, 0x43, 0x77, 0xe2, 0x8b, 0xab, 0x74, 0xe4, 0x4e, 0xe2, 0xc3, 0xd8,
	0xe5, 0xd3, 0xf1, 0xb7, 0x0d, 0xf7, 0xe0, 0x0b, 0xfc, 0x5b, 0x34, 0xaa, 0xe3, 0xcf, 0xa3, 0x3f,
	0x02, 0x00, 0x00, 0xff, 0xff, 0x5f, 0xb3, 0x2e, 0x29, 0x44, 0x0d, 0x00, 0x00,
}


text:
Lambda Okeiko
==========

Project Lambda Hands on Materials

redpajama_set_name: RedPajamaGithub


text:
                                Tipo de Dispositivo
                                Plataforma	Fecha Alta	Fecha Última Comprobación

                                    {{item.deviceType}}
                                    {{item.platform}}
                                     {{item.dischargeDate}}
                                    {{item.lastCheckDate}}


text:
package opennlp.tools.chunker;

import java.util.List;

import opennlp.tools.util.Sequence;

/**
 * The interface for chunkers which provide chunk tags for a sequence of tokens.
 */
public interface Chunker {

  /**
   * Generates chunk tags for the given sequence returning the result in a list.
   *
   * This method is now deprecated, please use the
   * {@link #chunk(String[], String[])} method.
   *
   * @param toks a list of the tokens or words of the sequence.
   * @param tags a list of the pos tags of the sequence.
   * @return a list of chunk tags for each token in the sequence.
   */
  @Deprecated
  public List<String> chunk(List<String> toks, List<String> tags);

  /**
   * Generates chunk tags for the given sequence returning the result in an array.
   *
   * @param toks an array of the tokens or words of the sequence.
   * @param tags an array of the pos tags of the sequence.
   * @return an array of chunk tags for each token in the sequence.
   */
  public String[] chunk(String[] toks, String tags[]);

  /**
   * Returns the top k chunk sequences for the specified sentence with the specified pos-tags
   * @param sentence The tokens of the sentence.
   * @param tags The pos-tags for the specified sentence.
   * @return the top k chunk sequences for the specified sentence.
   */
  public Sequence[] topKSequences(List<String> sentence, List<String> tags);

  /**
   * Returns the top k chunk sequences for the specified sentence with the specified pos-tags
   * @param sentence The tokens of the sentence.
   * @param tags The pos-tags for the specified sentence.
   * @return the top k chunk sequences for the specified sentence.
   */
  public Sequence[] topKSequences(String[] sentence, String[] tags, double minSequenceScore);
}


text:
{% extends "base2.html" %}
{% block title %}
add ques
{% endblock %}

{% load staticfiles %}
{% load bootstrap %}
{% load temp_tags %}

{% block css %}

body {
    font-family: "Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
    background: url({% static 'bla.jpg' %}) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;
}

{% endblock %}

{% block profile %}
{% endblock %}

{% block content %}

{{nomi.name}}

                Add new question

                    <form action="" method="post">
                            {% csrf_token %}

                            {{form|bootstrap}}

                            <input class="btn btn-success" type="submit" value="submit">

                    </form>

{% endblock content %}


text:
const express = require('express'),
  app = express(),
  bodyParser = require('body-parser'),
  pgp = require('pg-promise')(),
  helper = require('./helper');

const connection = {
    db: 'hello_world',
    username: 'benchmarkdbuser',
    password: 'benchmarkdbpass',
    host: 'tfb-database',
    dialect: 'postgres'
}

const db = pgp(`postgres://${connection.username}:${connection.password}@${connection.host}:5432/${connection.db}`);

app.set('view engine', 'pug');
app.set('views', __dirname + '/views');
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());

// Set headers for all routes
app.use((req, res, next) => {
    res.setHeader("Server", "Express");
    return next();
});

// Routes
app.get('/db', async (req, res) => {

    let world = await getRandomWorld();

    res.setHeader("Content-Type", "application/json");
    res.json(world);
});

app.get('/queries', async (req, res) => {

    const results = [],
        queries = Math.min(parseInt(req.query.queries) || 1, 500);

    for (let i = 0; i < queries; i++) {

        results.push(await getRandomWorld());
    }

    res.json(results)
});

app.get('/fortunes', async (req, res) => {

    let fortunes = await getAllFortunes()
    const newFortune = { id: 0, message: "Additional fortune added at request time." };
    fortunes.push(newFortune);
    fortunes.sort((a, b) => (a.message < b.message) ? -1 : 1);

    res.render('fortunes/index', { fortunes: fortunes });
});

app.get('/updates', async (req, res) => {
    const results = [],
        queries = Math.min(parseInt(req.query.queries) || 1, 500);

    for (let i = 1; i <= queries; i++) {

        results.push(await updateRandomWorld())
    }

    res.json(results);
});

const getRandomWorld = async () => {

    return await db.one(`select * from world where id = ${helper.randomizeNum()}`, [true])
};

const updateRandomWorld = async () => {

    return await db.oneOrNone(`update world set randomNumber = ${helper.randomizeNum()} where id = ${helper.randomizeNum()} returning id, randomNumber`, [true])
};

const getAllFortunes = async () => {

    return await db.many('select * from fortune', [true]);
};

app.listen(8080, () => {
    console.log('listening on port 8080');
});


text:
import { Action } from "redux"

export enum ShowMetricLabelNodeNameActions {
	SET_SHOW_METRIC_LABEL_NODE_NAME = "SET_SHOW_METRIC_LABEL_NODE_NAME"
}

export interface SetShowMetricLabelNodeNameAction extends Action {
	type: ShowMetricLabelNodeNameActions.SET_SHOW_METRIC_LABEL_NODE_NAME
	payload: boolean
}

export type ShowMetricLabelNodeNameAction = SetShowMetricLabelNodeNameAction

export function setShowMetricLabelNodeName(
	showMetricLabelNodeName: boolean = defaultShowMetricLabelNodeName
): SetShowMetricLabelNodeNameAction {
	return {
		type: ShowMetricLabelNodeNameActions.SET_SHOW_METRIC_LABEL_NODE_NAME,
		payload: showMetricLabelNodeName
	}
}

export const defaultShowMetricLabelNodeName = true


text:
<?php

namespace Psy\PluginRegistry;

/**
 * Presenter Provider interface for Plugins.
 */
interface PresenterProvider
{
    /**
     * Get an array of Presenters provided by this Plugin.
     *
     * @return Psy\Presenter\Presenter[]
     */
    static function getPresenters();
}


text:
<form dojoAttachPoint="containerNode" class="PanelForm App ${baseClass}" dojoAttachEvent="onreset:_onReset,onsubmit:_onSubmit,onchange:validate">

      Services

${applicationLabel}

${applicationDescription} For further explanation, please see ${applicationLabel} Service User Guide, Tutorial, and Instructional Video.

        <input data-dojo-type="dijit/form/NumberTextBox" value="0" required="false" data-dojo-attach-point="numgenomes" data-dojo-props="constraints:{min:1,max:10}," />
        <input data-dojo-type="dijit/form/NumberTextBox" value="0" required="false" data-dojo-attach-point="numref" data-dojo-props="constraints:{min:0}," />

                        Parameters

                        Advanced Parameters (optional)

                        Minimum %
                          coverage

                        Blast E-value

                        Minimum %
                            identity

                      Output Folder

                      Output Name

                        Reference Genome

Select 1 reference genome from the following options.

                      Select a genome

                      or a fasta file

                      or a feature group

                  Comparison Genomes

Add up to 9 genomes to compare (use plus buttons to add).

                Select genome

                And/or select protein fasta file

                And/or select feature group

                And/or select genome group

                 selected genome table

      Comparing Genomes

      Error Submitting Job. Please check the submission form and make sure that ONE reference genome is selected.

      Proteome Comparison should be finished shortly. Check workspace for results.

Reset

Submit

</form>


text:
package org.thoughtworkers.shivaganda.village.view.activity;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import io.ona.ziggy.view.activity.WebFormActivity;
import org.thoughtworkers.shivaganda.village.R;

public class HomeActivity extends WebFormActivity {
    public HomeActivity() {
        Log.d("Shivaganda", "HomeActivity constructor");
    }

    @Override
    protected void onInitialization() {
        Log.d("Shivaganda", "start initialization");
        webView.loadUrl("file:///android_asset/shivaganda/index.html");
        Log.d("Shivaganda", "done initialization");
    }
}


text:
"""
Django settings for {{ project_name }} project.

Generated by 'django-admin startproject' using Django {{ django_version }}.

For more information on this file, see
https://docs.djangoproject.com/en/{{ docs_version }}/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/
"""

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os

PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
BASE_DIR = os.path.dirname(PROJECT_DIR)

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/{{ docs_version }}/howto/deployment/checklist/

# Application definition

INSTALLED_APPS = [
    'home',
    'search',

    'wagtail.contrib.forms',
    'wagtail.contrib.redirects',
    'wagtail.embeds',
    'wagtail.sites',
    'wagtail.users',
    'wagtail.snippets',
    'wagtail.documents',
    'wagtail.images',
    'wagtail.search',
    'wagtail.admin',
    'wagtail.core',

    'modelcluster',
    'taggit',

    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
]

MIDDLEWARE = [
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'django.middleware.security.SecurityMiddleware',

    'wagtail.contrib.redirects.middleware.RedirectMiddleware',
]

ROOT_URLCONF = '{{ project_name }}.urls'

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [
            os.path.join(PROJECT_DIR, 'templates'),
        ],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]

WSGI_APPLICATION = '{{ project_name }}.wsgi.application'

# Database
# https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/#databases

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
    }
}

# Password validation
# https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
    {
        'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
    },
]

# Internationalization
# https://docs.djangoproject.com/en/{{ docs_version }}/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True

# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/{{ docs_version }}/howto/static-files/

STATICFILES_FINDERS = [
    'django.contrib.staticfiles.finders.FileSystemFinder',
    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
]

STATICFILES_DIRS = [
    os.path.join(PROJECT_DIR, 'static'),
]

# ManifestStaticFilesStorage is recommended in production, to prevent outdated
# JavaScript / CSS assets being served from cache (e.g. after a Wagtail upgrade).
# See https://docs.djangoproject.com/en/{{ docs_version }}/ref/contrib/staticfiles/#manifeststaticfilesstorage
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'

STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATIC_URL = '/static/'

MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'

# Wagtail settings

WAGTAIL_SITE_NAME = "{{ project_name }}"

# Search
# https://docs.wagtail.io/en/stable/topics/search/backends.html
WAGTAILSEARCH_BACKENDS = {
    'default': {
        'BACKEND': 'wagtail.search.backends.database',
    }
}

# Base URL to use when referring to full URLs within the Wagtail admin backend -
# e.g. in notification emails. Don't include '/admin' or a trailing slash
BASE_URL = 'http://example.com'


text:
@implementation UIViewController (HILayout)

-(void) setEdgesForExtendedLayoutNoneStyle
{
    if (IOS7_OR_LATER) {
        [self performSelector:@selector(setEdgesForExtendedLayout:) withObject:UIRectEdgeNone];
    }
}

@end


text:
/// <reference path="intellisense/jquery-1.2.6-vsdoc.js" />
try { document.execCommand("BackgroundImageCache", false, true); } catch (e) { }
var popUpWin;
function PopUpCenterWindow(URLStr, width, height, newWin, scrollbars) {
    var popUpWin = 0;
    if (typeof (newWin) == "undefined") {
        newWin = false;
    }
    if (typeof (scrollbars) == "undefined") {
        scrollbars = 0;
    }
    if (typeof (width) == "undefined") {
        width = 800;
    }
    if (typeof (height) == "undefined") {
        height = 600;
    }
    var left = 0;
    var top = 0;
    if (screen.width >= width) {
        left = Math.floor((screen.width - width) / 2);
    }
    if (screen.height >= height) {
        top = Math.floor((screen.height - height) / 2);
    }
    if (newWin) {
        open(URLStr, '', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=' + scrollbars + ',resizable=yes,copyhistory=yes,width=' + width + ',height=' + height + ',left=' + left + ', top=' + top + ',screenX=' + left + ',screenY=' + top + '');
        return;
    }

    if (popUpWin) {
        if (!popUpWin.closed) popUpWin.close();
    }
    popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=' + scrollbars + ',resizable=yes,copyhistory=yes,width=' + width + ',height=' + height + ',left=' + left + ', top=' + top + ',screenX=' + left + ',screenY=' + top + '');
    popUpWin.focus();
}

function OpenModelWindow(url, option) {
    var fun;
    try {
        if (parent != null && parent.$ != null && parent.$.ShowIfrmDailog != undefined) {
            fun = parent.$.ShowIfrmDailog
        }
        else {
            fun = $.ShowIfrmDailog;
        }
    }
    catch (e) {
        fun = $.ShowIfrmDailog;
    }
    fun(url, option);
}
function CloseModelWindow(callback, dooptioncallback) {
    parent.$.closeIfrm(callback, dooptioncallback);
}

function StrFormat(temp, dataarry) {
    return temp.replace(/\{([\d]+)\}/g, function(s1, s2) { var s = dataarry[s2]; if (typeof (s) != "undefined") { if (s instanceof (Date)) { return s.getTimezoneOffset() } else { return encodeURIComponent(s) } } else { return "" } });
}
function StrFormatNoEncode(temp, dataarry) {
    return temp.replace(/\{([\d]+)\}/g, function(s1, s2) { var s = dataarry[s2]; if (typeof (s) != "undefined") { if (s instanceof (Date)) { return s.getTimezoneOffset() } else { return (s); } } else { return ""; } });
}
function getiev() {
    var userAgent = window.navigator.userAgent.toLowerCase();
    $.browser.msie8 = $.browser.msie && /msie 8\.0/i.test(userAgent);
    $.browser.msie7 = $.browser.msie && /msie 7\.0/i.test(userAgent);
    $.browser.msie6 = !$.browser.msie8 && !$.browser.msie7 && $.browser.msie && /msie 6\.0/i.test(userAgent);
    var v;
    if ($.browser.msie8) {
        v = 8;
    }
    else if ($.browser.msie7) {
        v = 7;
    }
    else if ($.browser.msie6) {
        v = 6;
    }
    else { v = -1; }
    return v;
}
$(document).ready(function() {
    var v = getiev()
    if (v > 0) {
        $(document.body).addClass("ie ie" + v);
    }

});


text:
#include "VKPipelineState.h"
#include "VKPipelineLayout.h"
#include "../../CheckedCast.h"

namespace LLGL
{

VKPipelineState::VKPipelineState(const VKPtr<VkDevice>& device, VkPipelineBindPoint bindPoint) :
    pipeline_  { device, vkDestroyPipeline },
    bindPoint_ { bindPoint                 }
{
}

/*
 * ======= Protected: =======
 */

VkPipelineLayout VKPipelineState::GetVkPipelineLayoutOrDefault(
    const PipelineLayout*   pipelineLayout,
    VkPipelineLayout        defaultPipelineLayout)
{
    if (pipelineLayout)
    {
        auto pipelineLayoutVK = LLGL_CAST(const VKPipelineLayout*, pipelineLayout);
        return pipelineLayoutVK->GetVkPipelineLayout();
    }
    return defaultPipelineLayout;
}

VkPipeline* VKPipelineState::GetVkPipelineAddress()
{
    return pipeline_.ReleaseAndGetAddressOf();
}

} // /namespace LLGL

// ================================================================================


text:
layout: post
title: New Novel
date: 2010-08-14
---
"Dear Moptop and Montano,    Thank you very much for
      sending me a copy of your new Donkey Kong novel. As a future nocturne librarian, I very much
      appreciate the thought of you giving me a copy. But now you must be asking yourself: where
      does this leave me in my writing career?     Best of luck,
      Librarian"      Montano sprinted out of the mountain top nursing
      school donning an enormous fur hat. He ran across the snowy expanse as the figure of Moptop
      ran at him from a distance, slowly approaching with each passing minute. At long last they
      intersected, and Moptop handed off the Donkey Kong novel encased in a bible jacket, and
      Montano veered off sharply.    "THIS COULD BE A BOMB," he
      realized.


text:
package org.apache.mina.proxy.handlers;

import java.net.InetSocketAddress;

/**
 * ProxyRequest.java - Abstract wrapper class for proxy requests.
 *
 * @author Apache MINA Project
 * @since MINA 2.0.0-M3
 */
public abstract class ProxyRequest {

    /**
     * The address of the request endpoint.
     */
    private InetSocketAddress endpointAddress = null;

    /**
     * Implicit constructor.
     */
    public ProxyRequest() {
        // Do nothing
    }

    /**
     * Basic constructor of a {@link ProxyRequest} that only sets the
     * address of the request endpoint.
     *
     * @param endpointAddress the address of the request endpoint.
     */
    public ProxyRequest(final InetSocketAddress endpointAddress) {
        this.endpointAddress = endpointAddress;
    }

    /**
     * Returns the address of the request endpoint.
     *
     * @return the address of the request endpoint
     */
    public InetSocketAddress getEndpointAddress() {
        return endpointAddress;
    }
}


text:
package com.alorma.github.sdk.bean.dto.response;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Bernat on 20/07/2014.
 */
public class ListIssues extends ArrayList<Issue>{
	public ListIssues() {

	}
	public ListIssues(List<Issue> issues) {
		super(issues);
	}
}


text:
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.fatec.DAO;

import br.com.fatec.banco.BancoFactory;
import br.com.fatec.vo.EventoVO;
import br.com.fatec.vo.ObraVO;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;

/**
 *
 * @author Viotti
 */
public class ObraDAO implements DAO <ObraVO>{

    //Contem o comando em SQL
    private Statement st = null;
    //Contem o resultado de um SELECT
    private ResultSet rs = null;
    private String sql = null;
    //Contem a conexao com o Banco
    private BancoFactory bf = null;
    //Auxiliar para ClienteVO
    private ObraVO Obra = null;

    /**
     * Construtor que recebe o banco já conectado
     * @param bf
     */
    public ObraDAO(BancoFactory bf){
        this.bf = bf;
    }

    /**
     * Inclui um registro na tabela de Clientes
     * @param obj - Dados do cliente
     * @throws SQLException - Erro de SQL
     * @throws Exception - Erro interno no método
     */
    @Override
    public void adicionar(ObraVO obj) throws SQLException, Exception {
        sql = "insert into obra (Descricao , idTipo, Texto1, Texto2, Proprietario) values ('" +
                obj.getDescricao() + "', " + obj.getIdTipo()+", '" +  obj.getTexto1() + "', '" + obj.getTexto2() + "', '" +
                obj.getProprietario() + "')";

        //Criar o statement e abrir a conexao com o banco
        st = bf.getConexao().createStatement();
        if(st.executeUpdate(sql) == 0) { //nao afetou ninguem
            bf.getConexao().close();
            throw new Exception("Não Incluiu a Obra");
        } else
            bf.getConexao().close(); //fecha a conexao
    }

    @Override
    public void remover(ObraVO obj) throws SQLException, Exception {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void alterar(ObraVO obj) throws SQLException, Exception {

        if(buscar(obj) == null)
            adicionar(obj);
        else{
                   sql = "UPDATE obra SET Descricao = '" + obj.getDescricao()
                 +  "', Texto1 = '" + obj.getTexto1()
                 +  "' Texto2 = '" + obj.getTexto2()
                 +  "' idTipo = " + obj.getIdTipo()
                 +  "' Proprietrio '= " + obj.getProprietario();

          sql += " where idEvento = " + obj.getIdObra();

        //Criar o statement e abrir a conexao com o banco
        st = bf.getConexao().createStatement();
        if(st.executeUpdate(sql) == 0) { //nao afetou ninguem
            bf.getConexao().close();
            throw new Exception("Não Alterou expediente");
        } else
            bf.getConexao().close(); //fecha a conexao

        }

    }

    @Override
    public ObraVO buscar(ObraVO obj) throws SQLException, Exception {

          sql = "select * from obra where ";

         if(obj.getIdObra()> 0)
            sql += "idObra = " + obj.getIdObra();
         else
         {
        if(!obj.getDescricao().isEmpty())
            sql += "Descricao = '" + obj.getDescricao()+ "' | ";
         }

        if(sql.contains("|"))
            sql = sql.substring(0, sql.length()-2);

          sql = sql.replace("|", "AND");
        //Criar o statement e abrir a conexao com o banco
        st = bf.getConexao().createStatement();
        rs = st.executeQuery(sql);
        if(rs.next())
        {
            //existe
            bf.getConexao().close();

            return new ObraVO(rs.getInt(1), rs.getString(2), rs.getInt(3),rs.getString(4),rs.getString(5),rs.getString(6));
        }
        else
        {
            return null;
        }

    }

    @Override
    public List<ObraVO> lista(String criterio) throws SQLException, Exception {
               if(criterio.isEmpty())
            sql = "select * from obra";
        else
            sql = "select * from obra where " + criterio;

        st = bf.getConexao().createStatement();
        rs = st.executeQuery(sql);
        List<ObraVO> listaEvento = new ArrayList();
        if(rs.next())
        {
            //existe
            bf.getConexao().close();
            do
                    listaEvento.add(new ObraVO(rs.getInt(1), rs.getString(2), rs.getInt(3),rs.getString(4),rs.getString(5),rs.getString(6)));
            while(rs.next());
        }
        else
        {
            return null;
        }

        return listaEvento;
    }

}


text:
import * as models from './models';
export interface Membership {
    id?: number;
    membershipLevel?: string;
    points?: number;
    joinDate?: string;
    status?: string;
    restaurant?: models.RestaurantInfo;
    isMember?: boolean;
}


text:
//
//  FirmataSerialConnection.hpp
//  Firmata
//
//  Created by Christopher Stawarz on 4/13/17.
//  Copyright © 2017 The MWorks Project. All rights reserved.
//

#ifndef FirmataSerialConnection_hpp
#define FirmataSerialConnection_hpp

#include "FirmataConnection.hpp"

BEGIN_NAMESPACE_MW

class FirmataSerialConnection : public FirmataConnection {

public:
    FirmataSerialConnection(FirmataConnectionClient &client, const std::string &path);

private:
    bool connect() override;
    void disconnect() override;

    ssize_t read(std::uint8_t &data, std::size_t size) override;
    bool write(const std::vector<std::uint8_t> &data) override;

    const std::string path;
    SerialPort serialPort;

};

END_NAMESPACE_MW

#endif /* FirmataSerialConnection_hpp */


text:
package sun.awt;

import java.awt.AWTError;
import java.awt.GraphicsConfiguration;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Toolkit;
import java.awt.peer.ComponentPeer;
import java.io.File;
import java.io.IOException;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.ListIterator;
import java.util.NoSuchElementException;
import java.util.StringTokenizer;
import sun.awt.DisplayChangedListener;
import sun.awt.SunDisplayChanger;
import sun.awt.windows.WPrinterJob;
import sun.awt.windows.WToolkit;
import sun.java2d.SunGraphicsEnvironment;
import sun.java2d.SurfaceManagerFactory;
import sun.java2d.WindowsSurfaceManagerFactory;
import sun.java2d.d3d.D3DGraphicsDevice;
import sun.java2d.windows.WindowsFlags;

/**
 * This is an implementation of a GraphicsEnvironment object for the
 * default local GraphicsEnvironment used by the Java Runtime Environment
 * for Windows.
 *
 * @see GraphicsDevice
 * @see GraphicsConfiguration
 */

public class Win32GraphicsEnvironment
    extends SunGraphicsEnvironment
{
    static {
        // Ensure awt is loaded already.  Also, this forces static init
        // of WToolkit and Toolkit, which we depend upon
        WToolkit.loadLibraries();
        // setup flags before initializing native layer
        WindowsFlags.initFlags();
        initDisplayWrapper();

        // Install correct surface manager factory.
        SurfaceManagerFactory.setInstance(new WindowsSurfaceManagerFactory());
    }

    /**
     * Initializes native components of the graphics environment.  This
     * includes everything from the native GraphicsDevice elements to
     * the DirectX rendering layer.
     */
    private static native void initDisplay();

    private static boolean displayInitialized;      // = false;
    public static void initDisplayWrapper() {
        if (!displayInitialized) {
            displayInitialized = true;
            initDisplay();
        }
    }

    public Win32GraphicsEnvironment() {
    }

    protected native int getNumScreens();
    protected native int getDefaultScreen();

    public GraphicsDevice getDefaultScreenDevice() {
        GraphicsDevice[] screens = getScreenDevices();
        if (screens.length == 0) {
            throw new AWTError("no screen devices");
        }
        int index = getDefaultScreen();
        return screens[0 < index && index < screens.length ? index : 0];
    }

    /**
     * Returns the number of pixels per logical inch along the screen width.
     * In a system with multiple display monitors, this value is the same for
     * all monitors.
     * @returns number of pixels per logical inch in X direction
     */
    public native int getXResolution();
    /**
     * Returns the number of pixels per logical inch along the screen height.
     * In a system with multiple display monitors, this value is the same for
     * all monitors.
     * @returns number of pixels per logical inch in Y direction
     */
    public native int getYResolution();

/*
 * ----DISPLAY CHANGE SUPPORT----
 */

    // list of invalidated graphics devices (those which were removed)
    private ArrayList<WeakReference<Win32GraphicsDevice>> oldDevices;
    /*
     * From DisplayChangeListener interface.
     * Called from WToolkit and executed on the event thread when the
     * display settings are changed.
     */
    @Override
    public void displayChanged() {
        // getNumScreens() will return the correct current number of screens
        GraphicsDevice newDevices[] = new GraphicsDevice[getNumScreens()];
        GraphicsDevice oldScreens[] = screens;
        // go through the list of current devices and determine if they
        // could be reused, or will have to be replaced
        if (oldScreens != null) {
            for (int i = 0; i < oldScreens.length; i++) {
                if (!(screens[i] instanceof Win32GraphicsDevice)) {
                    // REMIND: can we ever have anything other than Win32GD?
                    assert (false) : oldScreens[i];
                    continue;
                }
                Win32GraphicsDevice gd = (Win32GraphicsDevice)oldScreens[i];
                // devices may be invalidated from the native code when the
                // display change happens (device add/removal also causes a
                // display change)
                if (!gd.isValid()) {
                    if (oldDevices == null) {
                        oldDevices =
                            new ArrayList<WeakReference<Win32GraphicsDevice>>();
                    }
                    oldDevices.add(new WeakReference<Win32GraphicsDevice>(gd));
                } else if (i < newDevices.length) {
                    // reuse the device
                    newDevices[i] = gd;
                }
            }
            oldScreens = null;
        }
        // create the new devices (those that weren't reused)
        for (int i = 0; i < newDevices.length; i++) {
            if (newDevices[i] == null) {
                newDevices[i] = makeScreenDevice(i);
            }
        }
        // install the new array of devices
        // Note: no synchronization here, it doesn't matter if a thread gets
        // a new or an old array this time around
        screens = newDevices;
        for (GraphicsDevice gd : screens) {
            if (gd instanceof DisplayChangedListener) {
                ((DisplayChangedListener)gd).displayChanged();
            }
        }
        // re-invalidate all old devices. It's needed because those in the list
        // may become "invalid" again - if the current default device is removed,
        // for example. Also, they need to be notified about display
        // changes as well.
        if (oldDevices != null) {
            int defScreen = getDefaultScreen();
            for (ListIterator<WeakReference<Win32GraphicsDevice>> it =
                    oldDevices.listIterator(); it.hasNext();)
            {
                Win32GraphicsDevice gd = it.next().get();
                if (gd != null) {
                    gd.invalidate(defScreen);
                    gd.displayChanged();
                } else {
                    // no more references to this device, remove it
                    it.remove();
                }
            }
        }
        // Reset the static GC for the (possibly new) default screen
        WToolkit.resetGC();

        // notify SunDisplayChanger list (e.g. VolatileSurfaceManagers and
        // CachingSurfaceManagers) about the display change event
        displayChanger.notifyListeners();
        // note: do not call super.displayChanged, we've already done everything
    }

/*
 * ----END DISPLAY CHANGE SUPPORT----
 */

    protected GraphicsDevice makeScreenDevice(int screennum) {
        GraphicsDevice device = null;
        if (WindowsFlags.isD3DEnabled()) {
            device = D3DGraphicsDevice.createDevice(screennum);
        }
        if (device == null) {
            device = new Win32GraphicsDevice(screennum);
        }
        return device;
    }

    public boolean isDisplayLocal() {
        return true;
    }

    @Override
    public boolean isFlipStrategyPreferred(ComponentPeer peer) {
        GraphicsConfiguration gc;
        if (peer != null && (gc = peer.getGraphicsConfiguration()) != null) {
            GraphicsDevice gd = gc.getDevice();
            if (gd instanceof D3DGraphicsDevice) {
                return ((D3DGraphicsDevice)gd).isD3DEnabledOnDevice();
            }
        }
        return false;
    }

    private static volatile boolean isDWMCompositionEnabled;
    /**
     * Returns true if dwm composition is currently enabled, false otherwise.
     *
     * @return true if dwm composition is enabled, false otherwise
     */
    public static boolean isDWMCompositionEnabled() {
        return isDWMCompositionEnabled;
    }

    /**
     * Called from the native code when DWM composition state changed.
     * May be called multiple times during the lifetime of the application.
     * REMIND: we may want to create a listener mechanism for this.
     *
     * Note: called on the Toolkit thread, no user code or locks are allowed.
     *
     * @param enabled indicates the state of dwm composition
     */
    private static void dwmCompositionChanged(boolean enabled) {
        isDWMCompositionEnabled = enabled;
    }

    /**
     * Used to find out if the OS is Windows Vista or later.
     *
     * @return {@code true} if the OS is Vista or later, {@code false} otherwise
     */
    public static native boolean isVistaOS();
}


text:
package edu.wustl.xipHost.caGrid;

import java.io.File;
import java.net.URI;
import java.util.List;
import org.nema.dicom.wg23.ObjectLocator;
import edu.wustl.xipHost.caGrid.GridLocation.Type;
import gov.nih.nci.ivi.helper.AIMTCGADataServiceHelper;

/**
 * @author Jaroslaw Krych
 *
 */
public class AimStore implements Runnable{
	//AIMDataServiceHelper helper = new AIMDataServiceHelper();
	AIMTCGADataServiceHelper tcgaAIMHelper = new AIMTCGADataServiceHelper();
	String aimServiceURL;
	List<ObjectLocator> aimObjectLocs;

	public AimStore(List<ObjectLocator> aimObjectLocs, GridLocation gridLocation){
		this.aimObjectLocs = aimObjectLocs;
		if(gridLocation == null){
			gridLocation = new GridLocation("http://node01.cci.emory.edu:8080/wsrf/services/cagrid/AIMTCGADataService", Type.AIM, "AIM-TCGA", "TCGA AIM Server at Emory");
		}
		this.aimServiceURL = gridLocation.getAddress();
	}

	public void run() {
		try {
			for(int i = 0; i < aimObjectLocs.size(); i++){
				URI uri = new URI(aimObjectLocs.get(i).getUri());
				File file = new File(uri);
				//helper.submitAnnotations(file.getCanonicalPath(), aimServiceURL);
				tcgaAIMHelper.submitAnnotations(file.getCanonicalPath(), aimServiceURL);
			}
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}


text:
require 'hack'

require 'minitest/autorun'


text:
package com.facebook.buck.core.starlark.rule.data;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import com.facebook.buck.core.model.BuildTargetFactory;
import com.facebook.buck.core.rules.analysis.impl.FakeBuiltInProvider;
import com.facebook.buck.core.rules.providers.collect.impl.ProviderInfoCollectionImpl;
import com.facebook.buck.core.rules.providers.lib.DefaultInfo;
import com.facebook.buck.core.rules.providers.lib.ImmutableDefaultInfo;
import com.facebook.buck.core.starlark.compatible.TestMutableEnv;
import com.facebook.buck.core.starlark.testutil.TestStarlarkParser;
import com.google.common.collect.ImmutableMap;
import net.starlark.java.eval.Dict;
import net.starlark.java.eval.Printer;
import net.starlark.java.eval.StarlarkList;
import org.junit.Test;

public class SkylarkDependencyTest {

  private TestMutableEnv env(SkylarkDependency dep) {
    FakeBuiltInProvider fakeInfoProvider = new FakeBuiltInProvider("FakeInfo");
    return new TestMutableEnv(
        ImmutableMap.of(
            "dep", dep, "DefaultInfo", DefaultInfo.PROVIDER, "FakeInfo", fakeInfoProvider));
  }

  @Test
  public void returnsLabel() throws Exception {
    SkylarkDependency dep =
        new SkylarkDependency(
            BuildTargetFactory.newInstance("//foo:bar"),
            ProviderInfoCollectionImpl.builder()
                .build(new ImmutableDefaultInfo(Dict.empty(), StarlarkList.empty())));

    try (TestMutableEnv env = env(dep)) {
      boolean labelString =
          (boolean)
              TestStarlarkParser.eval(
                  env.getEnv(),
                  env.getModule(),
                  "dep.label.name == \"bar\" and dep.label.package == \"foo\"");
      assertTrue(labelString);
    }
  }

  @Test
  public void repr() {
    SkylarkDependency dep =
        new SkylarkDependency(
            BuildTargetFactory.newInstance("//foo:bar"),
            ProviderInfoCollectionImpl.builder()
                .build(new ImmutableDefaultInfo(Dict.empty(), StarlarkList.empty())));

    assertEquals("<dependency //foo:bar>", new Printer().repr(dep).toString());
  }

  @Test
  public void byIndexWorks() throws Exception {

    SkylarkDependency dep =
        new SkylarkDependency(
            BuildTargetFactory.newInstance("//foo:bar"),
            ProviderInfoCollectionImpl.builder()
                .build(new ImmutableDefaultInfo(Dict.empty(), StarlarkList.empty())));

    try (TestMutableEnv env = env(dep)) {
      boolean presentProvider =
          (boolean)
              TestStarlarkParser.eval(
                  env.getEnv(), env.getModule(), "len(dep[DefaultInfo].default_outputs) == 0");
      boolean missingProvider =
          (boolean) TestStarlarkParser.eval(env.getEnv(), env.getModule(), "dep[FakeInfo] == None");
      assertTrue(presentProvider);
      assertTrue(missingProvider);
    }
  }

  @Test
  public void containsWorks() throws Exception {
    SkylarkDependency dep =
        new SkylarkDependency(
            BuildTargetFactory.newInstance("//foo:bar"),
            ProviderInfoCollectionImpl.builder()
                .build(new ImmutableDefaultInfo(Dict.empty(), StarlarkList.empty())));

    try (TestMutableEnv env = env(dep)) {
      boolean presentProvider =
          (boolean) TestStarlarkParser.eval(env.getEnv(), env.getModule(), "DefaultInfo in dep");
      boolean missingProvider =
          (boolean) TestStarlarkParser.eval(env.getEnv(), env.getModule(), "FakeInfo in dep");
      assertTrue(presentProvider);
      assertFalse(missingProvider);
    }
  }
}