Datasets:
Tasks:
Text Generation
Formats:
parquet
Sub-tasks:
language-modeling
Languages:
Danish
Size:
1M - 10M
License:
File size: 408 Bytes
78108d3 f2ad4e1 78108d3 f2ad4e1 78108d3 f2ad4e1 78108d3 f2ad4e1 78108d3 f2ad4e1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
from pathlib import Path
from typing import Any
import pytest
import yaml
@pytest.fixture()
def repo_path() -> Path:
return Path(__file__).parent.parent
def readme_yaml_header(repo_path: Path) -> dict[str, Any]:
readme_path = repo_path / "README.md"
with readme_path.open("r") as f:
readme = f.read()
frontmatter = readme.split("---")[1]
return yaml.safe_load(frontmatter)
|