<commit_before>class AnalyticsRouter:
    def db_for_read(self, model, **hints):
        """
        Attempts to read canvas_analytics models go to analytics db.
        """
        if model._meta.app_label == 'canvas_analytics':
            return 'analytics'
        return None

    def db_for_write(self, model, **hints):
        """
        Attempts to write canvas_analytics models go to analytics db.
        """
        if model._meta.app_label == 'canvas_analytics':
            return 'analytics'
        return None

    def allow_relation(self, obj1, obj2, **hints):
        """
        Only relations within the same db are allowed.
        """
        return None

    def allow_migrate(self, db, app_label, model_name=None, **hints):
        """
        Make sure the canvas_analytics app only appears in the analytics db.
        """
        if app_label == 'canvas_analytics':
            return db == 'analytics'
        return None<commit_msg>fix analytics app_label in db router<commit_after>class AnalyticsRouter:
    def db_for_read(self, model, **hints):
        """
        Attempts to read analytics models go to analytics db.
        """
        if model._meta.app_label == 'analytics':
            return 'analytics'
        return None

    def db_for_write(self, model, **hints):
        """
        Attempts to write analytics models go to analytics db.
        """
        if model._meta.app_label == 'analytics':
            return 'analytics'
        return None

    def allow_relation(self, obj1, obj2, **hints):
        """
        Only relations within the same db are allowed.
        """
        return None

    def allow_migrate(self, db, app_label, model_name=None, **hints):
        """
        Make sure the analytics app only appears in the analytics db.
        """
        if app_label == 'analytics':
            return db == 'analytics'
        return None
{'fraction_non_alphanumeric': 0.09553805774278215, 'fraction_numerical': 0.002099737532808399, 'mean_word_length': 2.0643086816720255, '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': '4310991', 'n_tokens_mistral': 527, 'n_tokens_neox': 516, 'n_words': 168}