repo_id
stringclasses
400 values
commit_sha
stringclasses
400 values
commit_index
int32
0
951
in_repo_split
stringclasses
1 value
cross_repo_split
stringclasses
1 value
test_file
stringlengths
7
121
test_function
stringlengths
1
108
assertion_type
stringclasses
32 values
difficulty
stringclasses
8 values
context_lines
int32
3
600
prefix
large_stringlengths
44
113k
target
large_stringlengths
1
498
anchor_sha
stringclasses
400 values
anchor_index
int32
0
951
qna_source
stringclasses
1 value
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/stats/test_numpy.py
test_statistics_1
assert_*
func_call
39
import itertools import numpy as np from scipy import linalg, stats from popmon.stats.numpy import ( mean, probability_distribution_mean_covariance, quantile, std, ) def get_data(): np.random.seed(5) a = np.random.randint(0, 10, size=(3, 4, 5, 6)) w = np.random.randint(0, 10, size=(3, 4, ...
std(a, w, axis=(1, 2), keepdims=True))
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/stats/test_numpy.py
test_statistics_1
assert_*
func_call
30
import itertools import numpy as np from scipy import linalg, stats from popmon.stats.numpy import ( mean, probability_distribution_mean_covariance, quantile, std, ) def get_data(): np.random.seed(5) a = np.random.randint(0, 10, size=(3, 4, 5, 6)) w = np.random.randint(0, 10, size=(3, 4, ...
mean(a, w, axis=(1, 2), keepdims=True))
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/stats/test_numpy.py
test_statistics_1
assert_*
func_call
65
import itertools import numpy as np from scipy import linalg, stats from popmon.stats.numpy import ( mean, probability_distribution_mean_covariance, quantile, std, ) def get_data(): np.random.seed(5) a = np.random.randint(0, 10, size=(3, 4, 5, 6)) w = np.random.randint(0, 10, size=(3, 4, ...
quantile(a, 0.1, w, axis=(1, 2), keepdims=False))
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/stats/test_numpy.py
test_statistics_1
assert_*
func_call
68
import itertools import numpy as np from scipy import linalg, stats from popmon.stats.numpy import ( mean, probability_distribution_mean_covariance, quantile, std, ) def get_data(): np.random.seed(5) a = np.random.randint(0, 10, size=(3, 4, 5, 6)) w = np.random.randint(0, 10, size=(3, 4, ...
quantile(a, 0.5, w, axis=(1, 2), keepdims=False))
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/stitching/test_histogram_stitching.py
test_histogram_stitching
assert
numeric_literal
21
import numpy as np import pytest from popmon.hist.filling import get_bin_specs, make_histograms from popmon.stitching import stitch_histograms def test_histogram_stitching(): features1 = sorted(["date:isActive", "date:eyeColor", "date:latitude"]) features2 = sorted(["isActive", "eyeColor", "latitude", "age"])...
800
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/stitching/test_histogram_stitching.py
test_histogram_stitching
assert
numeric_literal
22
import numpy as np import pytest from popmon.hist.filling import get_bin_specs, make_histograms from popmon.stitching import stitch_histograms def test_histogram_stitching(): features1 = sorted(["date:isActive", "date:eyeColor", "date:latitude"]) features2 = sorted(["isActive", "eyeColor", "latitude", "age"])...
400
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/test_config.py
test_settings_docs_example
assert
string_literal
10
import pytest from pydantic.error_wrappers import ValidationError from popmon import Settings def test_settings_docs_example(): settings = Settings() settings.time_axis = "date" assert settings.time_axis ==
"date"
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/test_config.py
test_setting_validation
pytest.raises
variable
9
import pytest from pydantic.error_wrappers import ValidationError from popmon import Settings def test_setting_validation(): settings = Settings() with pytest.raises(
ValidationError)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/test_utils.py
test_filter_metrics
assert
variable
42
from popmon.config import Report from popmon.utils import filter_metrics def test_filter_metrics(): settings = Report() metrics = [ "distinct_pull", "filled_pull", "nan_pull", "mean_pull", "std_pull", "p05_pull", "p10_pull", "p50_pull", "...
expected
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/visualization/test_heatmaps.py
test_get_top_categories
assert_*
variable
16
import numpy as np from popmon.visualization.histogram_section import get_top_categories def test_get_top_categories(): entries_list = np.array([[1, 2], [4, 3], [1, 3], [3, 3]]) bins = ["cat1", "cat2", "cat3", "cat4"] top_lim = 2 e0, b0 = get_top_categories(entries_list, bins, top_lim) e1 = np.a...
e1)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/visualization/test_heatmaps.py
test_get_top_categories
assert_*
variable
17
import numpy as np from popmon.visualization.histogram_section import get_top_categories def test_get_top_categories(): entries_list = np.array([[1, 2], [4, 3], [1, 3], [3, 3]]) bins = ["cat1", "cat2", "cat3", "cat4"] top_lim = 2 e0, b0 = get_top_categories(entries_list, bins, top_lim) e1 = np.a...
b1)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/visualization/test_report_generator.py
test_report_generator
assert
numeric_literal
59
import pandas as pd import pytest from popmon import resources from popmon.analysis.comparison.hist_comparer import ReferenceHistComparer from popmon.base import Pipeline from popmon.config import Settings from popmon.hist.hist_splitter import HistSplitter from popmon.io import JsonReader from popmon.visualization imp...
0
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/visualization/test_report_generator.py
test_report_generator
assert
variable
60
import pandas as pd import pytest from popmon import resources from popmon.analysis.comparison.hist_comparer import ReferenceHistComparer from popmon.base import Pipeline from popmon.config import Settings from popmon.hist.hist_splitter import HistSplitter from popmon.io import JsonReader from popmon.visualization imp...
datastore
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/visualization/test_report_generator.py
test_report_generator
assert
func_call
52
import pandas as pd import pytest from popmon import resources from popmon.analysis.comparison.hist_comparer import ReferenceHistComparer from popmon.base import Pipeline from popmon.config import Settings from popmon.hist.hist_splitter import HistSplitter from popmon.io import JsonReader from popmon.visualization imp...
len(features)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/visualization/test_report_generator.py
test_report_generator
assert
complex_expr
54
import pandas as pd import pytest from popmon import resources from popmon.analysis.comparison.hist_comparer import ReferenceHistComparer from popmon.base import Pipeline from popmon.config import Settings from popmon.hist.hist_splitter import HistSplitter from popmon.io import JsonReader from popmon.visualization imp...
datastore["comparison"]
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_async_processor.py
test_init_default_values
assert
numeric_literal
18
import asyncio import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.core.async_processor import AsyncProcessor from src.core.batch_processor import BatchFileResult, BatchSummary class TestAsyncProcessor: def test_init_defaul...
4
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_async_processor.py
test_init_custom_workers
assert
numeric_literal
17
import asyncio import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.core.async_processor import AsyncProcessor from src.core.batch_processor import BatchFileResult, BatchSummary class TestAsyncProcessor: def test_init_custom...
8
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_async_processor.py
test_workers_minimum
assert
numeric_literal
17
import asyncio import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.core.async_processor import AsyncProcessor from src.core.batch_processor import BatchFileResult, BatchSummary class TestAsyncProcessor: def test_workers_min...
1
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_async_processor.py
run_test
assert
numeric_literal
20
import asyncio import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.core.async_processor import AsyncProcessor from src.core.batch_processor import BatchFileResult, BatchSummary class TestAsyncProcessor: async def run_te...
0
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_async_processor.py
run_test
assert
numeric_literal
16
import asyncio import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.core.async_processor import AsyncProcessor from src.core.batch_processor import BatchFileResult, BatchSummary class TestAsyncProcessor: async def run_te...
2
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_async_processor.py
test_init_default_values
assert
none_literal
19
import asyncio import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.core.async_processor import AsyncProcessor from src.core.batch_processor import BatchFileResult, BatchSummary class TestAsyncProcessor: def test_init_defaul...
None
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_async_processor.py
test_result_creation_success
assert
bool_literal
23
import asyncio import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.core.async_processor import AsyncProcessor from src.core.batch_processor import BatchFileResult, BatchSummary class TestBatchFileResultIntegration: def test...
True
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_async_processor.py
test_result_creation_failure
assert
bool_literal
23
import asyncio import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.core.async_processor import AsyncProcessor from src.core.batch_processor import BatchFileResult, BatchSummary class TestBatchFileResultIntegration: def test...
False
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_async_processor.py
test_result_creation_success
assert
string_literal
24
import asyncio import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.core.async_processor import AsyncProcessor from src.core.batch_processor import BatchFileResult, BatchSummary class TestBatchFileResultIntegration: def test...
"/subs/video.vtt"
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_async_processor.py
test_result_creation_failure
assert
string_literal
24
import asyncio import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.core.async_processor import AsyncProcessor from src.core.batch_processor import BatchFileResult, BatchSummary class TestBatchFileResultIntegration: def test...
"Processing failed"
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_batch_processor.py
test_init_default_values
assert
numeric_literal
23
import json import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.core.batch_processor import ( BatchProcessor, BatchState, BatchFileResult, BatchSummary, DEFAULT_VIDEO_EXTENSIONS, ) class TestBatchProcessor: ...
4
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_batch_processor.py
test_init_custom_values
assert
numeric_literal
28
import json import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.core.batch_processor import ( BatchProcessor, BatchState, BatchFileResult, BatchSummary, DEFAULT_VIDEO_EXTENSIONS, ) class TestBatchProcessor: ...
8
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_batch_processor.py
test_workers_minimum
assert
numeric_literal
22
import json import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.core.batch_processor import ( BatchProcessor, BatchState, BatchFileResult, BatchSummary, DEFAULT_VIDEO_EXTENSIONS, ) class TestBatchProcessor: ...
1
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_batch_processor.py
test_find_video_files
assert
numeric_literal
30
import json import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.core.batch_processor import ( BatchProcessor, BatchState, BatchFileResult, BatchSummary, DEFAULT_VIDEO_EXTENSIONS, ) class TestBatchProcessor: ...
2
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_batch_processor.py
test_summary_creation
assert
numeric_literal
35
import json import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.core.batch_processor import ( BatchProcessor, BatchState, BatchFileResult, BatchSummary, DEFAULT_VIDEO_EXTENSIONS, ) class TestBatchSummary: ...
3
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_batch_processor.py
test_find_video_files_empty_directory
assert
collection
24
import json import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.core.batch_processor import ( BatchProcessor, BatchState, BatchFileResult, BatchSummary, DEFAULT_VIDEO_EXTENSIONS, ) class TestBatchProcessor: ...
[]
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_batch_processor.py
test_state_to_dict
assert
variable
32
import json import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.core.batch_processor import ( BatchProcessor, BatchState, BatchFileResult, BatchSummary, DEFAULT_VIDEO_EXTENSIONS, ) class TestBatchState: ...
data
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_batch_processor.py
test_state_save_and_load
assert
none_literal
34
import json import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.core.batch_processor import ( BatchProcessor, BatchState, BatchFileResult, BatchSummary, DEFAULT_VIDEO_EXTENSIONS, ) class TestBatchState: ...
None
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_batch_processor.py
test_success_result
assert
bool_literal
28
import json import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.core.batch_processor import ( BatchProcessor, BatchState, BatchFileResult, BatchSummary, DEFAULT_VIDEO_EXTENSIONS, ) class TestBatchFileResult: ...
True
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_batch_processor.py
test_init_default_values
assert
string_literal
25
import json import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.core.batch_processor import ( BatchProcessor, BatchState, BatchFileResult, BatchSummary, DEFAULT_VIDEO_EXTENSIONS, ) class TestBatchProcessor: ...
"vtt"
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_batch_processor.py
test_init_custom_values
assert
string_literal
30
import json import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.core.batch_processor import ( BatchProcessor, BatchState, BatchFileResult, BatchSummary, DEFAULT_VIDEO_EXTENSIONS, ) class TestBatchProcessor: ...
"srt"
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_config.py
test_default_settings
assert
numeric_literal
20
import os import pytest import sys import tempfile from pathlib import Path sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.config.settings import Settings, WhisperSettings, PathSettings from src.config.config_loader import load_config, _deep_merge, reset_conf...
4
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_config.py
test_from_dict
assert
numeric_literal
30
import os import pytest import sys import tempfile from pathlib import Path sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.config.settings import Settings, WhisperSettings, PathSettings from src.config.config_loader import load_config, _deep_merge, reset_conf...
8
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_config.py
test_simple_merge
assert
numeric_literal
22
import os import pytest import sys import tempfile from pathlib import Path sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.config.settings import Settings, WhisperSettings, PathSettings from src.config.config_loader import load_config, _deep_merge, reset_conf...
1
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_config.py
test_simple_merge
assert
numeric_literal
23
import os import pytest import sys import tempfile from pathlib import Path sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.config.settings import Settings, WhisperSettings, PathSettings from src.config.config_loader import load_config, _deep_merge, reset_conf...
3
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_config.py
test_load_custom_config
assert
numeric_literal
34
import os import pytest import sys import tempfile from pathlib import Path sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.config.settings import Settings, WhisperSettings, PathSettings from src.config.config_loader import load_config, _deep_merge, reset_conf...
2
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_config.py
test_to_dict
assert
variable
20
import os import pytest import sys import tempfile from pathlib import Path sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.config.settings import Settings, WhisperSettings, PathSettings from src.config.config_loader import load_config, _deep_merge, reset_conf...
data
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_config.py
test_load_default_config
assert
none_literal
20
import os import pytest import sys import tempfile from pathlib import Path sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.config.settings import Settings, WhisperSettings, PathSettings from src.config.config_loader import load_config, _deep_merge, reset_conf...
None
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_config.py
test_default_settings
assert
string_literal
21
import os import pytest import sys import tempfile from pathlib import Path sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.config.settings import Settings, WhisperSettings, PathSettings from src.config.config_loader import load_config, _deep_merge, reset_conf...
"vtt"
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_config.py
test_from_dict
assert
string_literal
31
import os import pytest import sys import tempfile from pathlib import Path sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.config.settings import Settings, WhisperSettings, PathSettings from src.config.config_loader import load_config, _deep_merge, reset_conf...
"srt"
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_config.py
test_default_settings
assert
string_literal
19
import os import pytest import sys import tempfile from pathlib import Path sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.config.settings import Settings, WhisperSettings, PathSettings from src.config.config_loader import load_config, _deep_merge, reset_conf...
"base"
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_config.py
test_load_custom_config
assert
string_literal
33
import os import pytest import sys import tempfile from pathlib import Path sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.config.settings import Settings, WhisperSettings, PathSettings from src.config.config_loader import load_config, _deep_merge, reset_conf...
"tiny"
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_config.py
test_from_dict
assert
string_literal
29
import os import pytest import sys import tempfile from pathlib import Path sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.config.settings import Settings, WhisperSettings, PathSettings from src.config.config_loader import load_config, _deep_merge, reset_conf...
"small"
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_exceptions.py
test_retry_succeeds_first_try
assert
numeric_literal
33
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.exceptions import ( SubtitleError, TranscriptionError, VideoProcessingError, ModelError, ValidationError, ConfigurationError, DownloadError, ...
1
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_exceptions.py
test_retry_succeeds_after_failures
assert
numeric_literal
35
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.exceptions import ( SubtitleError, TranscriptionError, VideoProcessingError, ModelError, ValidationError, ConfigurationError, DownloadError, ...
3
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_exceptions.py
test_retry_exhausted
assert
numeric_literal
33
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.exceptions import ( SubtitleError, TranscriptionError, VideoProcessingError, ModelError, ValidationError, ConfigurationError, DownloadError, ...
2
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_exceptions.py
test_error_with_details
assert
numeric_literal
30
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.exceptions import ( SubtitleError, TranscriptionError, VideoProcessingError, ModelError, ValidationError, ConfigurationError, DownloadError, ...
123
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_exceptions.py
test_str_includes_details
assert
variable
29
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.exceptions import ( SubtitleError, TranscriptionError, VideoProcessingError, ModelError, ValidationError, ConfigurationError, DownloadError, ...
result
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_exceptions.py
test_error_with_cause
assert
variable
26
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.exceptions import ( SubtitleError, TranscriptionError, VideoProcessingError, ModelError, ValidationError, ConfigurationError, DownloadError, ...
original
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_exceptions.py
test_retry_succeeds_first_try
assert
string_literal
32
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.exceptions import ( SubtitleError, TranscriptionError, VideoProcessingError, ModelError, ValidationError, ConfigurationError, DownloadError, ...
"success"
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_exceptions.py
test_error_with_details
assert
string_literal
29
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.exceptions import ( SubtitleError, TranscriptionError, VideoProcessingError, ModelError, ValidationError, ConfigurationError, DownloadError, ...
"test.mp4"
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_exceptions.py
test_retry_exhausted
pytest.raises
variable
30
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.exceptions import ( SubtitleError, TranscriptionError, VideoProcessingError, ModelError, ValidationError, ConfigurationError, DownloadError, ...
ValueError)
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_exceptions.py
test_subtitle_error_base
assert
string_literal
25
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.exceptions import ( SubtitleError, TranscriptionError, VideoProcessingError, ModelError, ValidationError, ConfigurationError, DownloadError, ...
"test error"
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_exceptions.py
test_error_with_details
assert
string_literal
28
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.exceptions import ( SubtitleError, TranscriptionError, VideoProcessingError, ModelError, ValidationError, ConfigurationError, DownloadError, ...
"operation failed"
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_formatters.py
test_segment_creation
assert
numeric_literal
27
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.formatters import ( SubtitleSegment, VTTFormatter, SRTFormatter, SubtitleFormatterFactory, convert_subtitle_format, ) class TestSubtitleSegment: ...
1
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_formatters.py
test_parse_vtt
assert
numeric_literal
32
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.formatters import ( SubtitleSegment, VTTFormatter, SRTFormatter, SubtitleFormatterFactory, convert_subtitle_format, ) class TestVTTFormatter: def...
2
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_formatters.py
test_segment_creation
assert
numeric_literal
28
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.formatters import ( SubtitleSegment, VTTFormatter, SRTFormatter, SubtitleFormatterFactory, convert_subtitle_format, ) class TestSubtitleSegment: ...
0.0
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_formatters.py
test_segment_creation
assert
numeric_literal
29
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.formatters import ( SubtitleSegment, VTTFormatter, SRTFormatter, SubtitleFormatterFactory, convert_subtitle_format, ) class TestSubtitleSegment: ...
5.0
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_formatters.py
test_parse_vtt
assert
numeric_literal
34
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.formatters import ( SubtitleSegment, VTTFormatter, SRTFormatter, SubtitleFormatterFactory, convert_subtitle_format, ) class TestVTTFormatter: def...
4.0
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_formatters.py
test_segment_duration
assert
numeric_literal
27
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.formatters import ( SubtitleSegment, VTTFormatter, SRTFormatter, SubtitleFormatterFactory, convert_subtitle_format, ) class TestSubtitleSegment: ...
5.25
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_formatters.py
test_format_segments
assert
variable
28
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.formatters import ( SubtitleSegment, VTTFormatter, SRTFormatter, SubtitleFormatterFactory, convert_subtitle_format, ) class TestVTTFormatter: def...
result
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_formatters.py
test_vtt_to_srt_conversion
assert
variable
28
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.formatters import ( SubtitleSegment, VTTFormatter, SRTFormatter, SubtitleFormatterFactory, convert_subtitle_format, ) class TestFormatConversion: ...
srt_content
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_formatters.py
test_invalid_format_raises_error
pytest.raises
variable
20
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.formatters import ( SubtitleSegment, VTTFormatter, SRTFormatter, SubtitleFormatterFactory, convert_subtitle_format, ) class TestSubtitleFormatterFacto...
ValueError)
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_formatters.py
test_parse_vtt
assert
string_literal
33
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.formatters import ( SubtitleSegment, VTTFormatter, SRTFormatter, SubtitleFormatterFactory, convert_subtitle_format, ) class TestVTTFormatter: def...
"First line"
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_formatters.py
test_parse_srt
assert
string_literal
34
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.formatters import ( SubtitleSegment, VTTFormatter, SRTFormatter, SubtitleFormatterFactory, convert_subtitle_format, ) class TestSRTFormatter: def...
"Second line"
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_formatters.py
test_segment_creation
assert
string_literal
30
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.formatters import ( SubtitleSegment, VTTFormatter, SRTFormatter, SubtitleFormatterFactory, convert_subtitle_format, ) class TestSubtitleSegment: ...
"Hello, world!"
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_model_manager.py
test_list_available_models
assert
numeric_literal
27
import os import pytest from unittest.mock import patch, MagicMock import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.models.model_manager import ModelManager class TestModelManager: def setup_method(self): """Reset singleton before each ...
0
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_model_manager.py
test_get_model_path
assert
variable
26
import os import pytest from unittest.mock import patch, MagicMock import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.models.model_manager import ModelManager class TestModelManager: def setup_method(self): """Reset singleton before each ...
path
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_model_manager.py
test_model_exists_false_for_missing
assert
bool_literal
25
import os import pytest from unittest.mock import patch, MagicMock import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.models.model_manager import ModelManager class TestModelManager: def setup_method(self): """Reset singleton before each ...
False
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_model_manager.py
test_list_available_models
assert
variable
28
import os import pytest from unittest.mock import patch, MagicMock import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.models.model_manager import ModelManager class TestModelManager: def setup_method(self): """Reset singleton before each ...
models
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_model_manager.py
test_singleton_instance
assert
variable
26
import os import pytest from unittest.mock import patch, MagicMock import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.models.model_manager import ModelManager class TestModelManager: def setup_method(self): """Reset singleton before each ...
manager2
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_model_manager.py
test_singleton_with_different_args
assert
string_literal
29
import os import pytest from unittest.mock import patch, MagicMock import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.models.model_manager import ModelManager class TestModelManager: def setup_method(self): """Reset singleton before each ...
"models1"
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_model_manager.py
test_invalid_model_raises_error
pytest.raises
variable
25
import os import pytest from unittest.mock import patch, MagicMock import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.models.model_manager import ModelManager class TestModelManager: def setup_method(self): """Reset singleton before each ...
ValueError)
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_validators.py
test_get_available_models
assert
numeric_literal
27
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.validators import ( validate_video_path, validate_audio_path, validate_media_path, validate_model_name, validate_output_format, get_available_model...
0
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_validators.py
test_valid_extension
assert
bool_literal
25
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.validators import ( validate_video_path, validate_audio_path, validate_media_path, validate_model_name, validate_output_format, get_available_model...
True
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_validators.py
test_valid_extension
assert
none_literal
26
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.validators import ( validate_video_path, validate_audio_path, validate_media_path, validate_model_name, validate_output_format, get_available_model...
None
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_validators.py
test_empty_path
assert
bool_literal
25
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.validators import ( validate_video_path, validate_audio_path, validate_media_path, validate_model_name, validate_output_format, get_available_model...
False
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_validators.py
test_get_available_models
assert
variable
28
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.validators import ( validate_video_path, validate_audio_path, validate_media_path, validate_model_name, validate_output_format, get_available_model...
models
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_validators.py
test_get_supported_formats
assert
variable
27
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.validators import ( validate_video_path, validate_audio_path, validate_media_path, validate_model_name, validate_output_format, get_available_model...
formats
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
innovatorved/subtitle
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
train
train
tests/unit/test_validators.py
test_empty_path
assert
func_call
26
import os import pytest import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from src.utils.validators import ( validate_video_path, validate_audio_path, validate_media_path, validate_model_name, validate_output_format, get_available_model...
error.lower()
9b6a5addcc07487cdcda19794cded41c2b0a6fba
0
v2_extractor_at_anchor
intility/fastapi-azure-auth
89e58ea31248c703d99dd4161739839bddf0f873
31
train
train
tests/multi_tenant/multi_auth/test_auto_error.py
test_normal_azure_user_valid_token
assert
collection
12
import pytest from demo_project.main import app from httpx import AsyncClient from tests.utils import build_access_token, build_access_token_expired @pytest.mark.anyio async def test_normal_azure_user_valid_token(multi_tenant_app, mock_openid_and_keys): access_token = build_access_token() async with AsyncClien...
{'api_key': False, 'azure_auth': True}
89e58ea31248c703d99dd4161739839bddf0f873
31
v2_extractor_at_anchor
intility/fastapi-azure-auth
89e58ea31248c703d99dd4161739839bddf0f873
31
train
train
tests/multi_tenant/multi_auth/test_auto_error.py
test_api_key_valid_key
assert
collection
11
import pytest from demo_project.main import app from httpx import AsyncClient from tests.utils import build_access_token, build_access_token_expired @pytest.mark.anyio async def test_api_key_valid_key(multi_tenant_app, mock_openid_and_keys): async with AsyncClient(app=app, base_url='http://test', headers={'TEST-AP...
{'api_key': True, 'azure_auth': False}
89e58ea31248c703d99dd4161739839bddf0f873
31
v2_extractor_at_anchor
intility/fastapi-azure-auth
89e58ea31248c703d99dd4161739839bddf0f873
31
train
train
tests/multi_tenant/multi_auth/test_auto_error.py
test_normal_azure_user_but_invalid_token
assert
collection
12
import pytest from demo_project.main import app from httpx import AsyncClient from tests.utils import build_access_token, build_access_token_expired @pytest.mark.anyio async def test_normal_azure_user_but_invalid_token(multi_tenant_app, mock_openid_and_keys): access_token = build_access_token_expired() async w...
{'detail': 'You must either provide a valid bearer token or API key'}
89e58ea31248c703d99dd4161739839bddf0f873
31
v2_extractor_at_anchor
intility/fastapi-azure-auth
89e58ea31248c703d99dd4161739839bddf0f873
31
train
train
tests/multi_tenant/test_multi_tenant.py
test_skip_iss_validation
assert
numeric_literal
39
import time from datetime import datetime, timedelta import pytest from demo_project.api.dependencies import azure_scheme from demo_project.core.config import settings from demo_project.main import app from httpx import AsyncClient from tests.multi_tenant.conftest import generate_azure_scheme_multi_tenant_object from ...
200
89e58ea31248c703d99dd4161739839bddf0f873
31
v2_extractor_at_anchor
intility/fastapi-azure-auth
89e58ea31248c703d99dd4161739839bddf0f873
31
train
train
tests/multi_tenant/test_multi_tenant.py
test_malformed_token
assert
collection
32
import time from datetime import datetime, timedelta import pytest from demo_project.api.dependencies import azure_scheme from demo_project.core.config import settings from demo_project.main import app from httpx import AsyncClient from tests.multi_tenant.conftest import generate_azure_scheme_multi_tenant_object from ...
{'detail': 'Invalid token format'}
89e58ea31248c703d99dd4161739839bddf0f873
31
v2_extractor_at_anchor
intility/fastapi-azure-auth
89e58ea31248c703d99dd4161739839bddf0f873
31
train
train
tests/multi_tenant/test_multi_tenant.py
test_no_valid_scopes
assert
collection
33
import time from datetime import datetime, timedelta import pytest from demo_project.api.dependencies import azure_scheme from demo_project.core.config import settings from demo_project.main import app from httpx import AsyncClient from tests.multi_tenant.conftest import generate_azure_scheme_multi_tenant_object from ...
{'detail': 'Required scope missing'}
89e58ea31248c703d99dd4161739839bddf0f873
31
v2_extractor_at_anchor
intility/fastapi-azure-auth
89e58ea31248c703d99dd4161739839bddf0f873
31
train
train
tests/multi_tenant/test_multi_tenant.py
test_guest_user_rejected
assert
collection
33
import time from datetime import datetime, timedelta import pytest from demo_project.api.dependencies import azure_scheme from demo_project.core.config import settings from demo_project.main import app from httpx import AsyncClient from tests.multi_tenant.conftest import generate_azure_scheme_multi_tenant_object from ...
{'detail': 'Guest users not allowed'}
89e58ea31248c703d99dd4161739839bddf0f873
31
v2_extractor_at_anchor
intility/fastapi-azure-auth
89e58ea31248c703d99dd4161739839bddf0f873
31
train
train
tests/multi_tenant/test_multi_tenant.py
test_exception_raised
assert
collection
34
import time from datetime import datetime, timedelta import pytest from demo_project.api.dependencies import azure_scheme from demo_project.core.config import settings from demo_project.main import app from httpx import AsyncClient from tests.multi_tenant.conftest import generate_azure_scheme_multi_tenant_object from ...
{'detail': 'Unable to process token'}
89e58ea31248c703d99dd4161739839bddf0f873
31
v2_extractor_at_anchor
intility/fastapi-azure-auth
89e58ea31248c703d99dd4161739839bddf0f873
31
train
train
tests/multi_tenant/test_multi_tenant.py
test_normal_user_rejected
assert
collection
33
import time from datetime import datetime, timedelta import pytest from demo_project.api.dependencies import azure_scheme from demo_project.core.config import settings from demo_project.main import app from httpx import AsyncClient from tests.multi_tenant.conftest import generate_azure_scheme_multi_tenant_object from ...
{'detail': 'User is not an AdminUser'}
89e58ea31248c703d99dd4161739839bddf0f873
31
v2_extractor_at_anchor
intility/fastapi-azure-auth
89e58ea31248c703d99dd4161739839bddf0f873
31
train
train
tests/multi_tenant/test_multi_tenant.py
test_evil_token
assert
collection
34
import time from datetime import datetime, timedelta import pytest from demo_project.api.dependencies import azure_scheme from demo_project.core.config import settings from demo_project.main import app from httpx import AsyncClient from tests.multi_tenant.conftest import generate_azure_scheme_multi_tenant_object from ...
{'detail': 'Unable to validate token'}
89e58ea31248c703d99dd4161739839bddf0f873
31
v2_extractor_at_anchor
intility/fastapi-azure-auth
89e58ea31248c703d99dd4161739839bddf0f873
31
train
train
tests/multi_tenant/test_multi_tenant.py
test_expired_token
assert
collection
33
import time from datetime import datetime, timedelta import pytest from demo_project.api.dependencies import azure_scheme from demo_project.core.config import settings from demo_project.main import app from httpx import AsyncClient from tests.multi_tenant.conftest import generate_azure_scheme_multi_tenant_object from ...
{'detail': 'Token signature has expired'}
89e58ea31248c703d99dd4161739839bddf0f873
31
v2_extractor_at_anchor
intility/fastapi-azure-auth
89e58ea31248c703d99dd4161739839bddf0f873
31
train
train
tests/multi_tenant/test_multi_tenant.py
test_invalid_token_claims
assert
collection
33
import time from datetime import datetime, timedelta import pytest from demo_project.api.dependencies import azure_scheme from demo_project.core.config import settings from demo_project.main import app from httpx import AsyncClient from tests.multi_tenant.conftest import generate_azure_scheme_multi_tenant_object from ...
{'detail': 'Token contains invalid claims'}
89e58ea31248c703d99dd4161739839bddf0f873
31
v2_extractor_at_anchor
intility/fastapi-azure-auth
89e58ea31248c703d99dd4161739839bddf0f873
31
train
train
tests/multi_tenant/test_multi_tenant.py
test_no_valid_invalid_formatted_scope
assert
collection
33
import time from datetime import datetime, timedelta import pytest from demo_project.api.dependencies import azure_scheme from demo_project.core.config import settings from demo_project.main import app from httpx import AsyncClient from tests.multi_tenant.conftest import generate_azure_scheme_multi_tenant_object from ...
{'detail': 'Token contains invalid formatted scopes'}
89e58ea31248c703d99dd4161739839bddf0f873
31
v2_extractor_at_anchor
intility/fastapi-azure-auth
89e58ea31248c703d99dd4161739839bddf0f873
31
train
train
tests/multi_tenant/test_multi_tenant.py
test_iss_callable_raise_error
assert
collection
37
import time from datetime import datetime, timedelta import pytest from demo_project.api.dependencies import azure_scheme from demo_project.core.config import settings from demo_project.main import app from httpx import AsyncClient from tests.multi_tenant.conftest import generate_azure_scheme_multi_tenant_object from ...
{'detail': 'Tenant intility_tenant_id not a valid tenant'}
89e58ea31248c703d99dd4161739839bddf0f873
31
v2_extractor_at_anchor
intility/fastapi-azure-auth
89e58ea31248c703d99dd4161739839bddf0f873
31
train
train
tests/multi_tenant/test_multi_tenant.py
test_no_keys_to_decode_with
assert
collection
31
import time from datetime import datetime, timedelta import pytest from demo_project.api.dependencies import azure_scheme from demo_project.core.config import settings from demo_project.main import app from httpx import AsyncClient from tests.multi_tenant.conftest import generate_azure_scheme_multi_tenant_object from ...
{'detail': 'Unable to verify token, no signing keys found'}
89e58ea31248c703d99dd4161739839bddf0f873
31
v2_extractor_at_anchor