<commit_before>def singleton(cls):
    instance = None
    def ctor(*args, **kwargs):
        nonlocal instance
        if not instance:
            instance = cls(*args, **kwargs)
        return instance
    return ctor

@singleton
class Pico:
    def __init__(self, val):
        self.recipes = []
        self.PID     = []
        self.steps   = []
        self.history = []
        self.valves  = []


pico = Pico.ctor()<commit_msg>pico class is a singleton<commit_after>class Singleton(object):
    instance = None

    @classmethod
    def __new__(cls, *args, **kwargs):
        if cls.instance is None:
            cls.instance = super(Singleton, cls).__new__(*args, **kwargs)
        return cls.instance

class Pico(Singleton):
    def __init__(self):
        self.recipes = []
        self.PID     = []
        self.steps   = []
        self.history = []
        self.valves  = []

        
{'fraction_non_alphanumeric': 0.12124582869855395, 'fraction_numerical': 0.0, 'mean_word_length': 1.922077922077922, 'pattern_counts': {'":': 0, '<': 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': '7157644', 'n_tokens_mistral': 277, 'n_tokens_neox': 273, 'n_words': 63}