<commit_before><!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"></meta>
    <title>Add New Movie</title>
</head>
<body>

<span th:if="${param.message != null}" th:text="${param.message[0]}"></span>

<form th:action="@{/movie/update/}+${movie.getUniqueId()}" method="post" enctype="multipart/form-data">
    <input type="text" name="name" placeholder="Movie Name" th:value="${movie?.getName()}"></input><br></br>
    <select name="type">
        <option th:selected="${movie?.getType()?.equals('movie')}" value="movie">Movie</option>
        <option th:selected="${movie?.getType()?.equals('tvseries')}" value="tvseries">Tv Series</option>
    </select><br></br>
    <textarea cols="50" rows="20" name="storyLine" placeholder="Storyline" th:text="${movie?.getStoryLine()}"></textarea><br></br>
    <select name="language">
        <option value="english" th:selected="${movie?.getLanguage()?.equals('english')}">English</option>
        <option value="bangla" th:selected="${movie?.getLanguage()?.equals('bangla')}">Bangla</option>
        <option value="hindi" th:selected="${movie?.getLanguage()?.equals('hindi')}">Hindi</option>
    </select><br></br>
    Image:<br></br>
    <input type="file" name="image"></input><br></br>
    Movie Industry:<br></br>
    <select name="industry">
        <option th:selected="${movie?.getIndustry()?.equals('hollywood')}" value="hollywood">Hollywood</option>
        <option th:selected="${movie?.getIndustry()?.equals('bollywood')}" value="bollywood">Bollywood</option>
        <option th:selected="${movie?.getIndustry()?.equals('dhallywood')}" value="dhallywood">Dhallywood</option>
        <option th:selected="${movie?.getIndustry()?.equals('tallywood')}" value="tallywood">Tallywood</option>
    </select><br></br>
    <select name="genere">
        <option value="action" th:selected="${movie?.getGenere()?.equals('action')}">Action</option>
        <option value="romantic" th:selected="${movie?.getGenere()?.equals('romantic')}">Romantic</option>
        <option value="drama" th:selected="${movie?.getGenere()?.equals('drama')}">Drama</option>
    </select><br></br>
    <input type="text" name="trailerUrl" placeholder="Trailer Url" th:value="${movie?.getTrailerUrl()}"></input><br></br>
    Release Date:<br></br>
    <input type="date" name="releaseDate"></input><br></br>
    <input type="text" name="duration" placeholder="Movie Duration" th:value="${movie?.getDuration()}"></input><br></br>
    <input type="text" name="budget" placeholder="Budget" th:value="${movie?.getBudget()}"></input><br></br>
    Rated:<br></br>
    <select name="rated">
        <option value="g" th:selected="${new String().valueOf(movie?.getRated()).equals('g')}">G</option>
        <option value="r" th:selected="${new String().valueOf(movie?.getRated()).equals('r')}">R</option>
        <option value="a" th:selected="${new String().valueOf(movie?.getRated()).equals('a')}">A</option>
    </select><br></br>
    <input type="text" name="productionHouse" placeholder="Production House" th:value="${movie?.getProductionHouse()}"></input><br></br>
    <div>
        Cast and Crew list:<br></br>
        <select name="personIds" th:if="${personList != null}" multiple="multiple">
            <option th:each="person : ${personList}" th:value="${person.getUniqueId()}">
                <span th:text="${person.getName()}"></span>
            </option>
        </select><a th:href="@{/person/create}">Create New Cast/Crew</a>
    </div><br></br>
    <div>
        <label for="upcoming">Upcoming movie?</label>
        <input type="checkbox" id="upcoming" th:checked="${movie?.isUpcoming()}" name="upcoming"></input>
    </div><br></br>
    <div>
        <label for="featured">Running movie?</label>
        <input type="checkbox" id="featured" th:checked="${movie?.isFeatured()}" name="featured"></input>
    </div><br></br>

    <button type="submit">Submit</button>
</form>

<br></br>
</body>
</html><commit_msg>changed label on update page<commit_after><!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"></meta>
    <title>Add New Movie</title>
</head>
<body>

<span th:if="${param.message != null}" th:text="${param.message[0]}"></span>

<form th:action="@{/movie/update/}+${movie.getUniqueId()}" method="post" enctype="multipart/form-data">
    <input type="text" name="name" placeholder="Movie Name" th:value="${movie?.getName()}"></input><br></br>
    <select name="type">
        <option th:selected="${movie?.getType()?.equals('movie')}" value="movie">Movie</option>
        <option th:selected="${movie?.getType()?.equals('tvseries')}" value="tvseries">Tv Series</option>
    </select><br></br>
    <textarea cols="50" rows="20" name="storyLine" placeholder="Storyline" th:text="${movie?.getStoryLine()}"></textarea><br></br>
    <select name="language">
        <option value="english" th:selected="${movie?.getLanguage()?.equals('english')}">English</option>
        <option value="bangla" th:selected="${movie?.getLanguage()?.equals('bangla')}">Bangla</option>
        <option value="hindi" th:selected="${movie?.getLanguage()?.equals('hindi')}">Hindi</option>
    </select><br></br>
    Image:<br></br>
    <input type="file" name="image"></input><br></br>
    Movie Industry:<br></br>
    <select name="industry">
        <option th:selected="${movie?.getIndustry()?.equals('hollywood')}" value="hollywood">Hollywood</option>
        <option th:selected="${movie?.getIndustry()?.equals('bollywood')}" value="bollywood">Bollywood</option>
        <option th:selected="${movie?.getIndustry()?.equals('dhallywood')}" value="dhallywood">Dhallywood</option>
        <option th:selected="${movie?.getIndustry()?.equals('tallywood')}" value="tallywood">Tallywood</option>
    </select><br></br>
    <select name="genere">
        <option value="action" th:selected="${movie?.getGenere()?.equals('action')}">Action</option>
        <option value="romantic" th:selected="${movie?.getGenere()?.equals('romantic')}">Romantic</option>
        <option value="drama" th:selected="${movie?.getGenere()?.equals('drama')}">Drama</option>
    </select><br></br>
    <input type="text" name="trailerUrl" placeholder="Trailer Url" th:value="${movie?.getTrailerUrl()}"></input><br></br>
    Release Date:<br></br>
    <input type="date" name="releaseDate"></input><br></br>
    <input type="text" name="duration" placeholder="Movie Duration" th:value="${movie?.getDuration()}"></input><br></br>
    <input type="text" name="budget" placeholder="Budget" th:value="${movie?.getBudget()}"></input><br></br>
    Rated:<br></br>
    <select name="rated">
        <option value="g" th:selected="${new String().valueOf(movie?.getRated()).equals('g')}">G</option>
        <option value="r" th:selected="${new String().valueOf(movie?.getRated()).equals('r')}">R</option>
        <option value="a" th:selected="${new String().valueOf(movie?.getRated()).equals('a')}">A</option>
    </select><br></br>
    <input type="text" name="productionHouse" placeholder="Production House" th:value="${movie?.getProductionHouse()}"></input><br></br>
    <div>
        Cast and Crew list:<br></br>
        <select name="personIds" th:if="${personList != null}" multiple="multiple">
            <option th:each="person : ${personList}" th:value="${person.getUniqueId()}">
                <span th:text="${person.getName()}"></span>
            </option>
        </select><a th:href="@{/person/create}">Create New Cast/Crew</a>
    </div><br></br>
    <div>
        <label for="upcoming">Upcoming/Running movie?</label>
        <input type="checkbox" id="upcoming" th:checked="${movie?.isUpcoming()}" name="upcoming"></input>
    </div><br></br>
    <div>
        <label for="featured">Featured movie?</label>
        <input type="checkbox" id="featured" th:checked="${movie?.isFeatured()}" name="featured"></input>
    </div><br></br>

    <button type="submit">Submit</button>
</form>

<br></br>
</body>
</html>
{'fraction_non_alphanumeric': 0.24530898173630222, 'fraction_numerical': 0.0015011258443832875, 'mean_word_length': 5.09375, 'pattern_counts': {'":': 0, '<': 281, '<?xml version=': 0, '>': 281, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '3129968', 'n_tokens_mistral': 2633, 'n_tokens_neox': 2540, 'n_words': 361}