<commit_before>if not("condition" in self.get_theta("userid", self.context["userid"])):
    self.action["note"] = "Allocate"
    import random
    draw = random.sample(["baseline", "random", "lockin"],1)
    self.set_theta({"condition":draw}, "userid", self.context["userid"])

self.action["condition"] = self.get_theta("userid", self.context["userid"])["condition"]<commit_msg>Updated social science experiment default.<commit_after>if not("condition" in self.get_theta("userid", self.context["userid"])):
    self.action["note"] = "First allocation"
    import random
    draw = random.choice(["baseline", "random", "lockin"])
    self.set_theta({"condition":draw}, "userid", self.context["userid"])

self.action["condition"] = self.get_theta("userid", self.context["userid"])["condition"]
{'fraction_non_alphanumeric': 0.202275600505689, 'fraction_numerical': 0.0012642225031605564, 'mean_word_length': 6.841584158415841, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6608830', 'n_tokens_mistral': 245, 'n_tokens_neox': 242, 'n_words': 42}