<commit_before>from django.utils import unittest
from django.utils._os import safe_join


class SafeJoinTests(unittest.TestCase):
    def test_base_path_ends_with_sep(self):
        self.assertEqual(
            safe_join("/abc/", "abc"),
            "/abc/abc",
        )

    def test_root_path(self):
        self.assertEqual(
            safe_join("/", "path"),
            "/path",
        )

        self.assertEqual(
            safe_join("/", ""),
            "/",
        )<commit_msg>Fixed a couple of test failures on Windows.<commit_after>import os

from django.utils import unittest
from django.utils._os import safe_join


class SafeJoinTests(unittest.TestCase):
    def test_base_path_ends_with_sep(self):
        drive, path = os.path.splitdrive(safe_join("/abc/", "abc"))
        self.assertEqual(
            path,
            "{0}abc{0}abc".format(os.path.sep)
        )

    def test_root_path(self):
        drive, path = os.path.splitdrive(safe_join("/", "path"))
        self.assertEqual(
            path,
            "{0}path".format(os.path.sep),
        )

        drive, path = os.path.splitdrive(safe_join("/", ""))
        self.assertEqual(
            path,
            os.path.sep,
        )
{'fraction_non_alphanumeric': 0.13246116107931316, 'fraction_numerical': 0.0024529844644317253, 'mean_word_length': 2.0, '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': '5615270', 'n_tokens_mistral': 369, 'n_tokens_neox': 363, 'n_words': 67}