mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-06-13 22:58:54 +02:00
ef4c5eb65e
Please note we have force-pushed a new initial commit in order to remove some publicly-available Twitter user information. Note that this process may be required in the future.
34 lines
973 B
Scala
34 lines
973 B
Scala
package com.twitter.visibility.configapi.configs
|
|
|
|
import com.twitter.timelines.configapi.Config
|
|
import com.twitter.visibility.configapi.params.RuleParams._
|
|
import com.twitter.visibility.configapi.params.VisibilityExperiments._
|
|
import com.twitter.visibility.models.SafetyLevel
|
|
import com.twitter.visibility.models.SafetyLevel._
|
|
|
|
private[visibility] object VisibilityExperimentsConfig {
|
|
import ExperimentsHelper._
|
|
|
|
val TestExperimentConfig: Config = mkABExperimentConfig(TestExperiment, TestHoldbackParam)
|
|
|
|
val NotGraduatedUserLabelRuleHoldbackExperimentConfig: Config =
|
|
mkABExperimentConfig(
|
|
NotGraduatedUserLabelRuleExperiment,
|
|
NotGraduatedUserLabelRuleHoldbackExperimentParam
|
|
)
|
|
|
|
def config(safetyLevel: SafetyLevel): Seq[Config] = {
|
|
|
|
val experimentConfigs = safetyLevel match {
|
|
|
|
case Test =>
|
|
Seq(TestExperimentConfig)
|
|
|
|
case _ => Seq(NotGraduatedUserLabelRuleHoldbackExperimentConfig)
|
|
}
|
|
|
|
experimentConfigs
|
|
}
|
|
|
|
}
|