// TargetAcousticness sets the target acousticness
// Acousticness is a confidence measure from 0.0 to 1.0 of whether
// the track is acoustic.  A value of 1.0 represents high confidence
// that the track is acoustic.
488503
func (ta *TrackAttributes) TargetAcousticness(acousticness float64) *TrackAttributes {
	ta.floatAttributes["target_acousticness"] = acousticness
	return ta
}
966180
func (s *DescribeResizeOutput) SetTargetEncryptionType(v string) *DescribeResizeOutput {
	s.TargetEncryptionType = &v
	return s
}
1227388
func (ta *TrackAttributes) TargetKey(key int) *TrackAttributes {
	ta.intAttributes["target_key"] = key
	return ta
}
974055
func (s *ForecastResult) SetPredictionIntervalLowerBound(v string) *ForecastResult {
	s.PredictionIntervalLowerBound = &v
	return s
}
1023056
func (q *TermsSetQuery) MinimumShouldMatchField(minimumShouldMatchField string) *TermsSetQuery {
	q.minimumShouldMatchField = minimumShouldMatchField
	return q
}
1013499
func (m *metrics) RecordLatency(p peer.ID, next time.Duration) {
	nextf := float64(next)
	s := LatencyEWMASmoothing
	if s > 1 || s < 0 {
		s = 0.1 // ignore the knob. it's broken. look, it jiggles.
	}

	m.latmu.Lock()
	ewma, found := m.latmap[p]
	ewmaf := float64(ewma)
	if !found {
		m.latmap[p] = next // when no data, just take it as the mean.
	} else {
		nextf = ((1.0 - s) * ewmaf) + (s * nextf)
		m.latmap[p] = time.Duration(nextf)
	}
	m.latmu.Unlock()
}
1001782
func (line *Line) Target() string {
	// TODO(fluffle): Add 005 CHANTYPES parsing for this?
	switch line.Cmd {
	case PRIVMSG, NOTICE, ACTION:
		if !line.Public() {
			return line.Nick
		}
	case CTCP, CTCPREPLY:
		if !line.Public() {
			return line.Nick
		}
		return line.Args[1]
	}
	if len(line.Args) > 0 {
		return line.Args[0]
	}
	return ""
}
160891
func (s *AwsSecurityFindingFilters) SetConfidence(v []*NumberFilter) *AwsSecurityFindingFilters {
	s.Confidence = v
	return s
}
873948
func (h Dense) EstimateCardinality() uint64 {
	var V int
	var invSum float64
	for i := 0; i < len(h); i += 3 {
		x0, x1, x2 := h[i], h[i+1], h[i+2]
		v0, v1, v2 := x0>>2, x1>>2, x2>>2
		xL0, xL1, xL2 := x0&3, x1&3, x2&3
		v3 := xL0<<4 ^ xL1<<2 ^ xL2
		invSum += lookup[v0]
		invSum += lookup[v1]
		invSum += lookup[v2]
		invSum += lookup[v3]
		if v0 == 0 {
			V++
		}
		if v1 == 0 {
			V++
		}
		if v2 == 0 {
			V++
		}
		if v3 == 0 {
			V++
		}
	}

	est := h.correctedEstimate(invSum, V)
	card := math.Floor(est + 0.5)
	if card > math.MaxUint64 {
		return math.MaxUint64
	}
	return uint64(card)
}
310091
func (styleDecl *StyleDeclaration) Specificity() int {
	if styleDecl.Declaration.Important {
		return 10000
	}

	return styleDecl.StyleRule.Specificity
}
129090
func (s *BaiduMessage) SetSound(v string) *BaiduMessage {
	s.Sound = &v
	return s
}
410697
func (c Claims) SetAudience(audience ...string) {
	if len(audience) == 1 {
		c.Set("aud", audience[0])
	} else {
		c.Set("aud", audience)
	}
}
1037235
func (ta *TrackAttributes) TargetEnergy(energy float64) *TrackAttributes {
	ta.floatAttributes["target_energy"] = energy
	return ta
}
645
func (mc *MetricsConfiguration) SampleRate() float64 {
	if mc.SamplingRate > 0.0 && mc.SamplingRate <= 1.0 {
		return mc.SamplingRate
	}
	return defaultSamplingRate
}
845625
func (s *StepAdjustment) SetMetricIntervalLowerBound(v float64) *StepAdjustment {
	s.MetricIntervalLowerBound = &v
	return s
}
294249
func (c Claims) SetAudience(audience ...string) {
	jwt.Claims(c).SetAudience(audience...)
}
860152
func (ta *TrackAttributes) TargetTimeSignature(timeSignature int) *TrackAttributes {
	ta.intAttributes["target_time_signature"] = timeSignature
	return ta
}