<commit_before>
from pymediainfo import MediaInfo
import pytest

from knowit import api
from knowit.config import Config
from knowit.providers import EnzymeProvider
from knowit.providers.ffmpeg import FFmpegCliExecutor, FFmpegExecutor
from knowit.providers.mediainfo import MediaInfoCTypesExecutor, MediaInfoCliExecutor, MediaInfoExecutor

try:
    from mock import Mock
except ImportError:
    from unittest.mock import Mock


@pytest.fixture
def context():
    return {<commit_msg>Fix imports<commit_after>from unittest.mock import Mock

import pytest

from knowit import api
from knowit.config import Config
from knowit.providers import EnzymeProvider
from knowit.providers.ffmpeg import FFmpegCliExecutor, FFmpegExecutor
from knowit.providers.mediainfo import MediaInfoCTypesExecutor, MediaInfoCliExecutor, MediaInfoExecutor


@pytest.fixture
def context():
    return {
{'fraction_non_alphanumeric': 0.04576659038901602, 'fraction_numerical': 0.0, 'mean_word_length': 6.291666666666667, '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': '185991', 'n_tokens_mistral': 260, 'n_tokens_neox': 253, 'n_words': 79}