# Auto-generated by schemas-hf. Do not edit manually.

from dataclasses import dataclass
from typing import Any, ClassVar, Optional

from schemas_hf.base import DatasetSchema
from schemas_hf.registry import register_schema


@register_schema
@dataclass
class BigcodeTheStackRecord(DatasetSchema):
    DATASET_NAME: ClassVar[str] = "bigcode/the-stack"
    CONFIG_NAME: ClassVar[Optional[str]] = None
    hexsha: str
    size: int
    ext: str
    lang: str
    max_stars_repo_path: str
    max_stars_repo_name: str
    max_stars_repo_head_hexsha: str
    max_stars_repo_licenses: Any
    max_stars_count: int
    max_stars_repo_stars_event_min_datetime: str
    max_stars_repo_stars_event_max_datetime: str
    max_issues_repo_path: str
    max_issues_repo_name: str
    max_issues_repo_head_hexsha: str
    max_issues_repo_licenses: Any
    max_issues_count: int
    max_issues_repo_issues_event_min_datetime: str
    max_issues_repo_issues_event_max_datetime: str
    max_forks_repo_path: str
    max_forks_repo_name: str
    max_forks_repo_head_hexsha: str
    max_forks_repo_licenses: Any
    max_forks_count: int
    max_forks_repo_forks_event_min_datetime: str
    max_forks_repo_forks_event_max_datetime: str
    content: str
    avg_line_length: float
    max_line_length: int
    alphanum_fraction: float
