<commit_before>from dvc.utils.compat import fspath


def test_is_dvc_internal(tmp_dir, dvc):
    assert dvc.is_dvc_internal(fspath(tmp_dir / ".dvc" / "file"))
    assert not dvc.is_dvc_internal("file")<commit_msg>tests/repo: old params in is_dvc_internal<commit_after>import os


def test_is_dvc_internal(dvc):
    assert dvc.is_dvc_internal(os.path.join("path", "to", ".dvc", "file"))
    assert not dvc.is_dvc_internal(os.path.join("path", "to-non-.dvc", "file"))
{'fraction_non_alphanumeric': 0.15268817204301074, 'fraction_numerical': 0.0, 'mean_word_length': 5.563380281690141, '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': '5865925', 'n_tokens_mistral': 187, 'n_tokens_neox': 184, 'n_words': 31}