<commit_before><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>New Logsheet</title>

    <!-- Bootstrap core CSS -->
    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
    <!-- Bootstrap theme -->
    <link href="http://getbootstrap.com/dist/css/bootstrap-theme.min.css" rel="stylesheet">

    <!-- Select2 -->
    <link href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/css/select2.min.css" rel="stylesheet" />
    <link href="css/select2-bootstrap.css" rel="stylesheet"/>

    <!-- jQuery -->
    <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>

    <!-- Boostrap JS -->
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="<KEY>" crossorigin="anonymous"></script>

    <!-- Select2 -->
    <script src="http://cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/js/select2.min.js"></script>


    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.14.1/moment.min.js"></script>
    <script src="js/validation/episodeValidation.js"></script>
    <script src="js/ui/prerecord.js"></script>
    <script src="js/ui/categoryButton.js"></script>
    <script type="text/javascript">
        function init() {
            setupEpisodeValidation({$episodeStartEarlyLimit|json_encode}, {$episodeStartLateLimit|json_encode},
                    {$prerecordDateEarlyDaysLimit|json_encode}, {$prerecordDateLateDaysLimit|json_encode});

            $('#start_datetime').change(function () {
                adjustPrerecordDateBounds({$prerecordDateEarlyDaysLimit|json_encode}, {$prerecordDateLateDaysLimit|json_encode});
            });

            var data = {$programs};

            $(".program").select2({
                data: data
            });
        }
    </script>
</head>

<body onload="init()">
<div class="container-fluid">
    <h3>New Logsheet</h3>
    <form id="logsheet" role="form" action="save-episode.php" method="post">
        <h4>Episode Metadata</h4>


            <div class="form-group row{if $formErrors.missingProgrammer} has-error{/if}">
                <div class="col-md-6 col-sm-8">
                    <label for="programmer" class="control-label">Programmer(s):</label>
                    <input class="form-control" type="text" name="programmer" id="programmer" required>
                    {if $formErrors.missingProgrammer}
                        <span class="help-text">Please enter a programmer name.</span>
                    {/if}
                </div>
            </div>

            <div class="form-group row">
                <div class="col-md-4 col-sm-6">
                    <label for="program" class="control-label">Program:</label>
                    <select class="form-control program" name="program" id="program"></select>
                </div>
            </div>

            <div class="form-group row start_datetime_group">
                <div class="col-md-3 col-sm-5">
                    <label for="start_datetime" class="control-label">Start Date/Time:</label>
                    <input class="form-control" type="datetime-local"
                           name="start_datetime" id="start_datetime" required>
                </div>
            </div>

            <div class="form-group row">
                <div class="col-md-2 col-sm-4">
                    <label for="episode_duration" class="control-label">Duration (in hours):</label>
                    <input class="form-control" type="number"
                           step="0.5" min="0.5" max="6.0"
                           name="episode_duration" id="episode_duration" required>
                </div>
            </div>

            <div class="form-group row">
                <div class="col-md-2 col-sm-4"><commit_msg>Add has-error classes to episode log form<commit_after><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>New Logsheet</title>

    <!-- Bootstrap core CSS -->
    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
    <!-- Bootstrap theme -->
    <link href="http://getbootstrap.com/dist/css/bootstrap-theme.min.css" rel="stylesheet">

    <!-- Select2 -->
    <link href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/css/select2.min.css" rel="stylesheet" />
    <link href="css/select2-bootstrap.css" rel="stylesheet"/>

    <!-- jQuery -->
    <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>

    <!-- Boostrap JS -->
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="<KEY>" crossorigin="anonymous"></script>

    <!-- Select2 -->
    <script src="http://cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/js/select2.min.js"></script>


    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.14.1/moment.min.js"></script>
    <script src="js/validation/episodeValidation.js"></script>
    <script src="js/ui/prerecord.js"></script>
    <script src="js/ui/categoryButton.js"></script>
    <script type="text/javascript">
        function init() {
            setupEpisodeValidation({$episodeStartEarlyLimit|json_encode}, {$episodeStartLateLimit|json_encode},
                    {$prerecordDateEarlyDaysLimit|json_encode}, {$prerecordDateLateDaysLimit|json_encode});

            $('#start_datetime').change(function () {
                adjustPrerecordDateBounds({$prerecordDateEarlyDaysLimit|json_encode}, {$prerecordDateLateDaysLimit|json_encode});
            });

            var data = {$programs};

            $(".program").select2({
                data: data
            });
        }
    </script>
</head>

<body onload="init()">
<div class="container-fluid">
    <h3>New Logsheet</h3>
    <form id="logsheet" role="form" action="save-episode.php" method="post">
        <h4>Episode Metadata</h4>


            <div class="form-group row{if $formErrors.missingProgrammer} has-error{/if}">
                <div class="col-md-6 col-sm-8">
                    <label for="programmer" class="control-label">Programmer(s):</label>
                    <input class="form-control" type="text" name="programmer" id="programmer" required>
                    {if $formErrors.missingProgrammer}
                        <span class="help-text">Please enter a programmer name.</span>
                    {/if}
                </div>
            </div>

            <div class="form-group row{if $formErrors.missingProgram} has-error{/if}">
                <div class="col-md-4 col-sm-6">
                    <label for="program" class="control-label">Program:</label>
                    <select class="form-control program" name="program" id="program"></select>
                </div>
            </div>

            <div class="form-group row start_datetime_group{if $formErrors.missingStartTime || $formErrors.airDateTooFarInPast || $formErrors.airDateTooFarInFuture} has-error{/if}">
                <div class="col-md-3 col-sm-5">
                    <label for="start_datetime" class="control-label">Start Date/Time:</label>
                    <input class="form-control" type="datetime-local"
                           name="start_datetime" id="start_datetime" required>
                </div>
            </div>

            <div class="form-group row{if $formErrors.missingDuration || $formErrors.tooShort || $formErrors.tooLong} has-error{/if}">
                <div class="col-md-2 col-sm-4">
                    <label for="episode_duration" class="control-label">Duration (in hours):</label>
                    <input class="form-control" type="number"
                           step="0.5" min="0.5" max="6.0"
                           name="episode_duration" id="episode_duration" required>
                </div>
            </div>

            <div class="form-group row{if $formErrors.missingPrerecordDate || $formErrors.prerecordDateInPast || $formErrors.prerecordDateInFuture} has-error{/if}">
                <div class="col-md-2 col-sm-4">
{'fraction_non_alphanumeric': 0.1684549356223176, 'fraction_numerical': 0.013113972341440152, 'mean_word_length': 2.3395700636942673, 'pattern_counts': {'":': 0, '<': 155, '<?xml version=': 0, '>': 155, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '407621', 'n_tokens_mistral': 2636, 'n_tokens_neox': 2450, 'n_words': 375}