3 ms·
Let's dig into Twitter code quality.
by Thaxll 4y ago
Let's dig into Twitter code quality.
- Kpourdeilami 4y agohttps://github.com/twitter/the-algorithm/blob/7f90d0ca342b928b479b512ec51ac2c3821f5922/trust_and_safety_models/toxicity/data/dataframe_loader.py#L302 https://github.com/twitter/the-algorithm/blob/7f90d0ca342b92... ``` def query_keys(self, language, task=2, size="50"): if task == 2: if language == "ar": self.query_settings["adhoc_v2"]["table"] = "..." elif language == "tr": self.query_settings["adhoc_v2"]["table"] = "..." elif language == "es": self.query_settings["adhoc_v2"]["table"] = f"..." else: self.query_settings["adhoc_v2"]["table"] = "..." return self.query_settings["adhoc_v2"] if task == 3: return self.query_settings["adhoc_v3"] raise ValueError(f"There are no other tasks than 2 or 3. {task} does not exist.") ```
- tentacleuno 4y agoLooking through it, the ... seems to be a placeholder for information they'd prefer to be kept private. For example, look in the keywords section in the same file you shared.
- Kpourdeilami 4y agoYou're correct, makes more sense now