<commit_before>from sanic import Sanic


class Spec:
    swagger = "2.0"

    def __init__(self, app: Sanic) -> None:
        self.swagger = self.__class__.swagger
        self.info = {
            "version": getattr(app.config, "API_VERSION", "1.0.0"),
            "title": getattr(app.config, "API_TITLE", "API"),
            "description": getattr(app.config, "API_DESCRIPTION", ""),
            "termsOfService": getattr(app.config, "API_TERMS_OF_SERVICE", ""),<commit_msg>Move 'swagger' class variable into __init__()<commit_after>from sanic import Sanic


class Spec:
    def __init__(self, app: Sanic) -> None:
        self.swagger = "2.0"

        self.info = {
            "version": getattr(app.config, "API_VERSION", "1.0.0"),
            "title": getattr(app.config, "API_TITLE", "API"),
            "description": getattr(app.config, "API_DESCRIPTION", ""),
            "termsOfService": getattr(app.config, "API_TERMS_OF_SERVICE", ""),
{'fraction_non_alphanumeric': 0.1612223393045311, 'fraction_numerical': 0.01053740779768177, 'mean_word_length': 2.909465020576132, 'pattern_counts': {'":': 8, '<': 3, '<?xml version=': 0, '>': 5, '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': '2719749', 'n_tokens_mistral': 321, 'n_tokens_neox': 314, 'n_words': 63}