<commit_before>import datetime

from django.utils import timezone
from django.test import TestCase
from django.urls import reverse
from game.models import Location, Profile

def create_user(username):
    pass

class IndexViewTests(TestCase):
    def test_index_view_exists(self):
        response = self.client.get(reverse('game:index'))
        self.assertEqual(response.status_code, 200)

class RegisterViewTests(TestCase):
    def test_register_view_exists(self):
        pass

class UserViewTests(TestCase):
    def test_users_view_exists(self):
        response = self.client.get(reverse('game:users'))
        self.assertEqual(response.status_code, 200)

    def test_users_view_with_no_users(self):
        pass

    def test_users_view_with_one_user(self):
        pass

    def test_users_view_with_two_users(self):
        pass

    def test_users_view_with_multiple_users(self):
        pass

class LeaderboardViewTests(TestCase):
    def test_leaderboard_view_exists(self):
        response = self.client.get(reverse('game:leaderboard'))
        self.assertEqual(response.status_code, 200)

class RegistrationTests(TestCase):
    pass

class LocationTestCase(TestCase):
    def create_locations(location_text, matches_won, matches_lost):
        return Location.objects.create(location_text="CCNY")


    def test_locationfields(self):
        ccny = Location.objects.create(location_text="CCNY")
        shepard = Location.objects.create(location_text="Shepard", matches_won=10, matches_lost=10)
        shepard_name = "Shepard"
        self.assertEqual(ccny.matches_won, 0)
        self.assertEqual(shepard.matches_lost, 10)
        self.assertEqual(shepard.location_text, shepard_name)<commit_msg>added basic location test<commit_after>import datetime

from django.utils import timezone
from django.test import TestCase
from django.urls import reverse
from game.models import Location, Profile

def create_user(username):
    pass

class IndexViewTests(TestCase):
    def test_index_view_exists(self):
        response = self.client.get(reverse('game:index'))
        self.assertEqual(response.status_code, 200)

class RegisterViewTests(TestCase):
    def test_register_view_exists(self):
        pass

class UserViewTests(TestCase):
    def test_users_view_exists(self):
        response = self.client.get(reverse('game:users'))
        self.assertEqual(response.status_code, 200)

    def test_users_view_with_no_users(self):
        pass

    def test_users_view_with_one_user(self):
        pass

    def test_users_view_with_two_users(self):
        pass

    def test_users_view_with_multiple_users(self):
        pass

class LeaderboardViewTests(TestCase):
    def test_leaderboard_view_exists(self):
        response = self.client.get(reverse('game:leaderboard'))
        self.assertEqual(response.status_code, 200)

class RegistrationTests(TestCase):
    pass

class LocationTestCase(TestCase):
    def create_locations(location_text, matches_won, matches_lost):
        return Location.objects.create(location_text="CCNY")


    def test_locationfields(self):
        ccny = Location.objects.create(location_text="CCNY")
        shepard = Location.objects.create(location_text="Shepard", matches_won=10, matches_lost=10)
        shepard_name = "Shepard"
        self.assertEqual(ccny.matches_won, 70)
        self.assertEqual(shepard.matches_lost, 10)
        self.assertEqual(shepard.location_text, shepard_name)
{'fraction_non_alphanumeric': 0.0878162256469904, 'fraction_numerical': 0.00959581273626054, 'mean_word_length': 4.196374622356496, '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': '4687412', 'n_tokens_mistral': 1053, 'n_tokens_neox': 984, 'n_words': 182}