<commit_before><?php
/**
 * This file is part of the nepada/bust-cache.
 * Copyright (c) 2016 <NAME> (<EMAIL>)
 */

declare(strict_types = 1);

namespace Nepada\BustCache;

use LogicException;
use RuntimeException;


/**
 * Common interface for exceptions
 */
interface Exception
{

}


/**
 * The exception that is thrown when an I/O error occurs.
 */
class IOException extends RuntimeException implements Exception
{

}


/**
 * The exception that is thrown when accessing a file that does not exist on disk.
 */
class FileNotFoundException extends IOException
{

    /**
     * @param string $file
     * @return FileNotFoundException
     */
    public static function fromFile(string $file): self
    {
        return new static("Unable to read file '$file' - the file does not exist or is not readable.");
    }

}


/**
 * The exception that is thrown when part of a file or directory cannot be found.
 */
class DirectoryNotFoundException extends IOException
{

    /**
     * @param string $directory
     * @return DirectoryNotFoundException
     */
    public static function fromDir(string $directory): self
    {
        return new static("Unable to read directory '$directory' - the directory does not exist, or is not readable.");
    }

}


/**
 * The exception that is thrown when static class is instantiated.
 */
class StaticClassException extends LogicException
{

}
<commit_msg>Marker Exception interface extends Throwable<commit_after><?php
/**
 * This file is part of the nepada/bust-cache.
 * Copyright (c) 2016 <NAME> (<EMAIL>)
 */

declare(strict_types = 1);

namespace Nepada\BustCache;

use LogicException;
use RuntimeException;


/**
 * Common interface for exceptions
 */
interface Exception extends \Throwable
{

}


/**
 * The exception that is thrown when an I/O error occurs.
 */
class IOException extends RuntimeException implements Exception
{

}


/**
 * The exception that is thrown when accessing a file that does not exist on disk.
 */
class FileNotFoundException extends IOException
{

    /**
     * @param string $file
     * @return FileNotFoundException
     */
    public static function fromFile(string $file): self
    {
        return new static("Unable to read file '$file' - the file does not exist or is not readable.");
    }

}


/**
 * The exception that is thrown when part of a file or directory cannot be found.
 */
class DirectoryNotFoundException extends IOException
{

    /**
     * @param string $directory
     * @return DirectoryNotFoundException
     */
    public static function fromDir(string $directory): self
    {
        return new static("Unable to read directory '$directory' - the directory does not exist, or is not readable.");
    }

}


/**
 * The exception that is thrown when static class is instantiated.
 */
class StaticClassException extends LogicException
{

}

{'fraction_non_alphanumeric': 0.0910049191848208, 'fraction_numerical': 0.0035137034434293743, 'mean_word_length': 3.2240356083086055, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '7221451', 'n_tokens_mistral': 776, 'n_tokens_neox': 733, 'n_words': 306}