// See: http://duktape.org/api.html#duk_set_top
179445
func (d *Context) SetTop(index int) {
	C.duk_set_top(d.duk_context, C.duk_idx_t(index))
}
1020364
func (as *Step) SetNestLevel(l int) bool {
	if as.level == l {
		return false
	}
	as.level = l

	// Attach this step to the correct parent step based on nest level. Ascend
	// up the previously-declared steps.
	var nestParent *Step
	for prev := as.prevStep; prev != nil; prev = prev.prevStep {
		if prev.level < l {
			nestParent = prev
			break
		}
	}
	if nestParent == nil || nestParent == as.parent {
		return true
	}
	nestParent.appendSubstep(as)
	return true
}
191976
func (s *Test) SetStopped(v time.Time) *Test {
	s.Stopped = &v
	return s
}
908152
func (s *JobDetail) SetStoppedAt(v int64) *JobDetail {
	s.StoppedAt = &v
	return s
}
577764
func (ref *Config) SetTopics(topics string) {
	ref.Topics = strings.Split(topics, ",")
}
500065
func (s *RemoteAccessSession) SetStopped(v time.Time) *RemoteAccessSession {
	s.Stopped = &v
	return s
}
222842
func (opts *UniversalCompactionOptions) SetStopStyle(value UniversalCompactionStopStyle) {
	C.rocksdb_universal_compaction_options_set_stop_style(opts.c, C.int(value))
}
519975
func (s *Counters) SetTotal(v int64) *Counters {
	s.Total = &v
	return s
}
827998
func (d *Context) XcopyTop(fromCtx *Context, count int) {
	C._duk_xcopy_top(d.duk_context, fromCtx.duk_context, C.duk_idx_t(count))
}
151576
func (s *Run) SetStopped(v time.Time) *Run {
	s.Stopped = &v
	return s
}
658112
func SetTitle(title string) {
	if opts.HeadlessMode {
		log.Println("Title set to:", title)
	} else {
		document.Set("title", title)
	}
}
109716
func setRoot(s *Spec) {
	if s.Root == nil {
		s.Root = &specs.Root{}
	}
}
244953
func (s *AttemptDetail) SetStoppedAt(v int64) *AttemptDetail {
	s.StoppedAt = &v
	return s
}
611665
func (s *ChannelsService) SetTopic(channel string, topic string) *ChannelsSetTopicCall {
	var call ChannelsSetTopicCall
	call.service = s
	call.channel = channel
	call.topic = topic
	return &call
}
63711
func (pb *ProgressBar) SetTotal(total int) *ProgressBar {
	return pb.SetTotal64(int64(total))
}
1368405
func (s *ChangesService) SetTopic(changeID string, input *TopicInput) (*string, *Response, error) {
	u := fmt.Sprintf("changes/%s/topic", changeID)

	req, err := s.client.NewRequest("PUT", u, input)
	if err != nil {
		return nil, nil, err
	}

	v := new(string)
	resp, err := s.client.Do(req, v)
	if err != nil {
		return nil, resp, err
	}

	return v, resp, err
}
796524
func (s *IpPermission) SetToPort(v int64) *IpPermission {
	s.ToPort = &v
	return s
}