<commit_before>"""Store files."""

from abc import ABC
from io import BytesIO

import numpy as np
from pydantic import BaseModel
from typing_extensions import Literal

from gdsfactory.config import CONFIG
from gdsfactory.types import Optional, PathType

FileTypes = Literal["sparameters", "modes", "gds"]


class FileStorage(ABC):
    dirpath: Optional[PathType] = CONFIG["gdslib"]
    filetype: FileTypes
<commit_msg>add measurements to filetypes<commit_after>"""Store files."""

from abc import ABC
from io import BytesIO

import numpy as np
from pydantic import BaseModel
from typing_extensions import Literal

from gdsfactory.config import CONFIG
from gdsfactory.types import Optional, PathType

FileTypes = Literal["sparameters", "modes", "gds", "measurements"]


class FileStorage(ABC):
    dirpath: Optional[PathType] = CONFIG["gdslib"]
    filetype: FileTypes

{'fraction_non_alphanumeric': 0.08640552995391705, 'fraction_numerical': 0.0, 'mean_word_length': 5.84251968503937, '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': '1748241', 'n_tokens_mistral': 257, 'n_tokens_neox': 252, 'n_words': 88}