<commit_before>from django.test import TestCase, RequestFactory, Client

from datasets.models import Dataset


class BaseDatasetTest(TestCase):
    """
    This simply setting up dummy data for the rest of the tests
    """

    @classmethod
    def setUp(self):

        self.factory = RequestFactory()
        self.client = Client()

        self.ds1 = Dataset.objects.create(author="Google",
                                    title="Google GeoJSON Example",
                                    description="Polygons spelling 'GOOGLE' over Australia",
                                    url="https://storage.googleapis.com/maps-devrel/google.json",
                                    public_access=True)

        self.ds2 = Dataset.objects.create(author="mapbox",<commit_msg>python test refactoring<commit_after>from django.test import TestCase, RequestFactory, Client
from datasets.models import Dataset


class BaseDatasetTest(TestCase):
    """
    dummy data for the tests
    """

    @classmethod
    def setUp(self):

        self.factory = RequestFactory()
        self.client = Client()

        self.ds1 = Dataset.objects.create(author="Google",
                                    title="Google GeoJSON Example",
                                    description="Polygons spelling 'GOOGLE' over Australia",
                                    url="https://storage.googleapis.com/maps-devrel/google.json",
                                    public_access=True)

        self.ds2 = Dataset.objects.create(author="mapbox",
{'fraction_non_alphanumeric': 0.09244791666666667, 'fraction_numerical': 0.0026041666666666665, 'mean_word_length': 1.86219739292365, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '780590', 'n_tokens_mistral': 387, 'n_tokens_neox': 362, 'n_words': 84}