<commit_before><?php
namespace nochso\Omni;

final class EOL
{
    const EOL_CR = "\r";
    const EOL_LF = "\n";
    const EOL_CR_LF = "\r\n";

    /**
     * Note that EOL::detect depends on this order.
     *
     * @var array
     */
    private static $eols = [
        "\r\n" => ['CR+LF', 'Windows, TOPS-10, RT-11, CP/M, MP/M, DOS, Atari TOS, OS/2, Symbian OS, Palm OS'],
        "\n" => ['LF', 'Multics, Unix, Unix-like, BeOS, Amiga, RISC OS'],
        "\r" => ['CR', 'Commodore 8-bit, BBC Acorn, TRS-80, Apple II, Mac OS <=v9, OS-9'],
    ];

    private $eol;
    private $name;
    private $description;

    /**
     * @param string $eol See the EOL_* class constants.
     */
    public function __construct($eol)
    {
        $this->eol = $eol;
        $initEol = self::$eols[$eol];<commit_msg>Move most common platform to beginning of EOL descriptions<commit_after><?php
namespace nochso\Omni;

final class EOL
{
    const EOL_CR = "\r";
    const EOL_LF = "\n";
    const EOL_CR_LF = "\r\n";

    /**
     * Note that EOL::detect depends on this order.
     *
     * @var array
     */
    private static $eols = [
        "\r\n" => ['CR+LF', 'Windows, TOPS-10, RT-11, CP/M, MP/M, DOS, Atari TOS, OS/2, Symbian OS, Palm OS'],
        "\n" => ['LF', 'Unix, Unix-like, Multics, BeOS, Amiga, RISC OS'],
        "\r" => ['CR', 'Mac OS <=v9, OS-9, Apple II, Commodore 8-bit, BBC Acorn, TRS-80'],
    ];

    private $eol;
    private $name;
    private $description;

    /**
     * @param string $eol See the EOL_* class constants.
     */
    public function __construct($eol)
    {
        $this->eol = $eol;
        $initEol = self::$eols[$eol];
{'fraction_non_alphanumeric': 0.17721518987341772, 'fraction_numerical': 0.012055455093429777, 'mean_word_length': 2.2358674463937622, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '2425033', 'n_tokens_mistral': 650, 'n_tokens_neox': 623, 'n_words': 177}