// GetTO returns its Transfer Object
175169
func (w *Whitelist) GetTO(users ...*User) *WhitelistTO {
	var fromInfo, toInfo *InfoTO
	if from, e := NewUser(w.From); e == nil {
		fromInfo = from.Info().GetTO()
	}
	if to, e := NewUser(w.To); e == nil {
		toInfo = to.Info().GetTO()
	}
	return &WhitelistTO{
		original:  w,
		FromInfo:  fromInfo,
		ToInfo:    toInfo,
		Time:      w.Time,
		Timestamp: w.Time.Unix(),
		Counter:   w.Counter,
	}
}
934465
func (l *ProjectPostLurk) GetTO(users ...*User) *ProjectPostLurkTO {
	var fromInfo, toInfo *InfoTO
	if from, e := NewUser(l.From); e == nil {
		fromInfo = from.Info().GetTO()
	}
	if to, e := NewProject(l.To); e == nil {
		toInfo = to.Info().GetTO()
	}
	return &ProjectPostLurkTO{
		original:  l,
		Hpid:      l.Hpid,
		FromInfo:  fromInfo,
		ToInfo:    toInfo,
		Time:      l.Time,
		Timestamp: l.Time.Unix(),
		Counter:   l.Counter,
	}
}
973761
func (conn *UDPConn) SendTo(addr net.Addr, p Packet) error {
	_, err := conn.WriteTo(p.Bytes(), addr)
	return err
}
232529
func (c *CommitStats) GetTotal() int {
	if c == nil || c.Total == nil {
		return 0
	}
	return *c.Total
}
491847
func (dasher *DashVertexConverter) MoveTo(x, y float64) {
	dasher.next.MoveTo(x, y)
	dasher.x, dasher.y = x, y
	dasher.distance = dasher.dashOffset
	dasher.currentDash = 0
}
1321232
func (st *StateTransition) to() common.Address {
	if st.msg == nil || st.msg.To() == nil /* contract creation */ {
		return common.Address{}
	}
	return *st.msg.To()
}
667916
func (f *fifoProcessor) PullTo(cnx redis.Conn, src, dest string,
	timeout time.Duration) ([]byte, error) {

	bytes, err := redis.Bytes(cnx.Do("BRPOPLPUSH", src, dest, block(timeout)))
	if err != nil {
		return nil, err
	}

	return bytes, nil
}
1346701
func (c *CodeSearchResult) GetTotal() int {
	if c == nil || c.Total == nil {
		return 0
	}
	return *c.Total
}
588048
func (v *Variable) SerializeTo(w io.Writer) error {
	_, err := w.Write(v.Bytes())
	return err
}
180688
func (u *UserFollower) GetTO(users ...*User) *UserFollowerTO {
	var fromInfo, toInfo *InfoTO
	if from, e := NewUser(u.From); e == nil {
		fromInfo = from.Info().GetTO()
	}
	if to, e := NewUser(u.To); e == nil {
		toInfo = to.Info().GetTO()
	}
	return &UserFollowerTO{
		original:  u,
		FromInfo:  fromInfo,
		ToInfo:    toInfo,
		Time:      u.Time,
		Timestamp: u.Time.Unix(),
		ToNotify:  u.ToNotify,
		Counter:   u.Counter,
	}
}
417479
func (p *ProjectPostRevision) GetTO(users ...*User) *ProjectPostRevisionTO {
	return &ProjectPostRevisionTO{
		original:  p,
		Hpid:      p.Hpid,
		Message:   p.Message,
		Time:      p.Time,
		Timestamp: p.Time.Unix(),
		RevNo:     p.RevNo,
		Counter:   p.Counter,
	}
}
386628
func (p *PoolData) CopyTo(dstP *PoolData) error {
	dstP.ParentKey = p.ParentKey
	dstP.Pool = types.GetIPNetCopy(p.Pool)

	if p.Range != nil {
		dstP.Range = &AddressRange{}
		dstP.Range.Sub = types.GetIPNetCopy(p.Range.Sub)
		dstP.Range.Start = p.Range.Start
		dstP.Range.End = p.Range.End
	}

	dstP.RefCount = p.RefCount
	return nil
}
124037
func (r *RepositoriesSearchResult) GetTotal() int {
	if r == nil || r.Total == nil {
		return 0
	}
	return *r.Total
}
1344287
func ExtractTo(srcPath, destPath string, entries ...string) (err error) {
	return ExtractToFunc(srcPath, destPath, defaultExtractFunc, entries...)
}
661119
func (t *UserPostCommentVote) GetTO(users ...*User) *UserPostCommentVoteTO {
	var userInfo *InfoTO
	if user, e := NewUser(t.From); e == nil {
		userInfo = user.Info().GetTO()
	}
	return &UserPostCommentVoteTO{
		original: t,
		Hcid:     t.Hcid,
		User:     userInfo,
		Vote:     t.Vote,
		Counter:  t.Counter,
	}
}
638308
func (l *LabelsSearchResult) GetTotal() int {
	if l == nil || l.Total == nil {
		return 0
	}
	return *l.Total
}
1043143
func (i *IssuesSearchResult) GetTotal() int {
	if i == nil || i.Total == nil {
		return 0
	}
	return *i.Total
}