<commit_before><?php include('Embed/autoloader.php'); ?>

<!DOCTYPE html>

<html>
    <head>
        <meta charset="utf-8">

        <title>Embed tests</title>
        <style type="text/css">
            body {
                font-family: sans-serif;
            }
            input[type="url"] {
                width: 400px;
            }
            input[type="number"] {
                width: 50px;
            }
            fieldset.main {
                border: none;
                background: #DDD;
                font-weight: bold;
            }
            fieldset.options {
                border: none;
                background: #DDD;
                font-size: 0.9em;
            }
            img {
                border: solid 1px black;
            }
            table.embed {
                width: 100%;
            }
            table.embed th,
            table.embed td {
                padding-top: 5px;
                padding-bottom: 5px;
                border-top: solid 1px #CCC;
                vertical-align: top;
            }
            table.embed th {
                text-align: right;
            }
            table.embed td {
                padding-left: 20px;
            }

        </style>
    </head>

    <?php
    public function getOption($name, $default = null)
    {
        return isset($_GET['options'][$name]) ? $_GET['options'][$name] : $default;
    }
    ?>

    <body>
        <form action="test.php">
            <fieldset class="main">
                <label>Url to test: <input type="url" name="url" autofocus placeholder="http://" value="<?php echo isset($_GET['url']) ? $_GET['url'] : ''; ?>"></label>
                <button type="submit">Test</button>
            </fieldset>
            <fieldset class="options">
                <label>Min image width: <input type="number" name="options[minImageWidth]" value="<?php echo getOption('minImageWidth', 0); ?>"></label>
                <label>Min image height: <input type="number" name="options[minImageHeight]" value="<?php echo getOption('minImageHeight', 0); ?>"></label>
                <p>
                    <label><input type="checkbox" name="options[getBiggerImage]" value="1" <?php echo getOption('getBiggerImage') ? 'checked' : ''; ?>> Get bigger image</label><commit_msg>fixed a bug in test file<commit_after><?php
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');

include('Embed/autoloader.php');
?>

<!DOCTYPE html>

<html>
    <head>
        <meta charset="utf-8">

        <title>Embed tests</title>
        <style type="text/css">
            body {
                font-family: sans-serif;
            }
            input[type="url"] {
                width: 400px;
            }
            input[type="number"] {
                width: 50px;
            }
            fieldset.main {
                border: none;
                background: #DDD;
                font-weight: bold;
            }
            fieldset.options {
                border: none;
                background: #DDD;
                font-size: 0.9em;
            }
            img {
                border: solid 1px black;
            }
            table.embed {
                width: 100%;
            }
            table.embed th,
            table.embed td {
                padding-top: 5px;
                padding-bottom: 5px;
                border-top: solid 1px #CCC;
                vertical-align: top;
            }
            table.embed th {
                text-align: right;
            }
            table.embed td {
                padding-left: 20px;
            }

        </style>
    </head>

    <?php
    function getOption($name, $default = null)
    {
        return isset($_GET['options'][$name]) ? $_GET['options'][$name] : $default;
    }
    ?>

    <body>
        <form action="test.php">
            <fieldset class="main">
                <label>Url to test: <input type="url" name="url" autofocus placeholder="http://" value="<?php echo isset($_GET['url']) ? $_GET['url'] : ''; ?>"></label>
                <button type="submit">Test</button>
            </fieldset>
            <fieldset class="options">
                <label>Min image width: <input type="number" name="options[minImageWidth]" value="<?php echo getOption('minImageWidth', 0); ?>"></label>
                <label>Min image height: <input type="number" name="options[minImageHeight]" value="<?php echo getOption('minImageHeight', 0); ?>"></label>
                <p>
                    <label><input type="checkbox" name="options[getBiggerImage]" value="1" <?php echo getOption('getBiggerImage') ? 'checked' : ''; ?>> Get bigger image</label>
{'fraction_non_alphanumeric': 0.14459373000639794, 'fraction_numerical': 0.008957133717210493, 'mean_word_length': 1.463235294117647, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 73, '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': '6374483', 'n_tokens_mistral': 1358, 'n_tokens_neox': 1259, 'n_words': 275}