<commit_before>{{#modal-dialog close='closeChallengeModal' translucentOverlay=true container-class='challenge-style-modal-container'}}
        <button type="button" class="close" {{action "closeChallengeModal"}} aria-hidden="true">&times;</button>
        <h2 class="modal-title">{{challenge.category.name}} - {{challenge.points}}</h2>
        <h4>{{challenge.title}}</h4>
        <p>{{challenge.description}}</p>
        <form class="simple_form form-horizontal">
            {{#if errorMessage}}
                <label class="control-label"><div class="alert alert-danger" style="padding: 5px; margin-bottom: .4em;" role="alert">{{errorMessage}}</div></label>
            {{else if correctFlagMsg}}
                <label class="control-label"><div class="text-success" style="margin-bottom: .4em;">{{correctFlagMsg}}</div></label>
            {{else if wrongFlagMsg}}
                 <label class="control-label"><div class="text-danger" style="margin-bottom: .4em;">{{wrongFlagMsg}}</div></label>
            {{/if}}
            <span class="form-group">
                {{input type="text" value=flag class="form-control" id="inputFlag" placeholder="Flag"}}
            </span>
            <button class="btn btn-success btn-login-submit challenge-submit" type="submit" {{action 'submitFlag'}}>Submit</button>
            <button class="btn btn-danger btn-cancel-action challenge-cancel" {{action 'closeChallengeModal'}}>Cancel</button> 
        </form>
{{/modal-dialog}}



        <commit_msg>Updated challenge modal to hide input and submit if solved<commit_after>{{#modal-dialog close='closeChallengeModal' translucentOverlay=true container-class='challenge-style-modal-container'}}
        <button type="button" class="close" {{action "closeChallengeModal"}} aria-hidden="true">&times;</button>
        <h2 class="modal-title">{{challenge.category.name}} - {{challenge.points}}</h2>
        <h4>{{challenge.title}}</h4>
        <p>{{challenge.description}}</p>
        <form class="simple_form form-horizontal">
            {{#if errorMessage}}
                <label class="control-label"><div class="alert alert-danger" style="padding: 5px; margin-bottom: .4em;" role="alert">{{errorMessage}}</div></label>
            {{else if correctFlagMsg}}
                <label class="control-label"><div class="text-success" style="margin-bottom: .4em;">{{correctFlagMsg}}</div></label>
            {{else if wrongFlagMsg}}
                 <label class="control-label"><div class="text-danger" style="margin-bottom: .4em;">{{wrongFlagMsg}}</div></label>
            {{/if}}

            {{#unless challenge.isSolved}}
                <span class="form-group">
                    {{input type="text" value=flag class="form-control" id="inputFlag" placeholder="Flag"}}
                </span>
                <button class="btn btn-success btn-login-submit challenge-submit" type="submit" {{action 'submitFlag'}}>Submit</button>
            {{/unless}}
            <button class="btn btn-danger btn-cancel-action challenge-cancel" {{action 'closeChallengeModal'}}>Cancel</button> 
        </form>
{{/modal-dialog}}



        
{'fraction_non_alphanumeric': 0.17917598211434047, 'fraction_numerical': 0.005110188438198659, 'mean_word_length': 3.176, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, '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': '3308104', 'n_tokens_mistral': 917, 'n_tokens_neox': 838, 'n_words': 156}