<commit_before>

<div class="ui form">
    <div class="two fields">
        <div class="field">
            <div class="field">
                <label>Title</label>
                {{input value=model.title type="text" placeholder="Tale Title"}}
            </div>
        </div>
        <div class="field">
            <div class="field">
                <label>Public</label>
              {{ui-checkbox class="toggle" label="Public?" checked=model.public onChange=(action (mut model.public))}}
            </div>
        </div>
    </div>
    <div class="one field">
        <div class="field">
            <div class="field">
                <label>Description</label>
                <!-- {{textarea value=model.description cols="80" rows="6"}} -->
                {{markdown-editor markdownValue=model.description}}
            </div>
        </div>
        <!-- <div class="field">
            <div class="field">
                <label>Configuration Information</label>
              {{textarea value=model.config cols="80" rows="6"}}
            </div>
        </div> -->
    </div>
    <div class="one field">
        <div class="field">
            <label>Illustration</label>
            <div class="ui action input">
                <input type="text" id="tale-icon" placeholder="Tale Icon" value="{{model.illustration}}">
                    <div class="ui buttons">
                        <style type="text/css">
                            .or:before {
                                color: rgba(0, 0, 0, 0.7) !important;
                                font-size: 1.5em;
                            }
                        </style>
                        <div class="or"></div>
                        <button class="ui positive blue button" {{action "generateIcon" model}}>Generate Illustration</button>
                    </div>
            </div>
        </div>
    </div>  
    <p></p>
</div>

{{#if tale_creating}}
    <div class="ui segment" style="height:100px">
        <div class="ui active inverted dimmer">
            <div class="ui text loader">Saving The Whole Tale...</div>
        </div>
    </div>
{{/if}}

{{#if tale_created}}
    <div class="ui green icon message">
        <i class="checkmark icon"></i>
        <div class="content">
            <div class="header"><commit_msg>Fixed issue #70<commit_after>

<div class="ui form">
    <div class="two fields">
        <div class="field">
            <div class="field">
                <label>Title</label>
                {{input value=model.title type="text" placeholder="Tale Title"}}
            </div>
        </div>
        <div class="field">
            <div class="field">
                <label>Public</label>
              {{ui-checkbox class="toggle" label="Public?" checked=model.public onChange=(action (mut model.public))}}
            </div>
        </div>
    </div>
    <div class="one field">
        <div class="field">
            <div class="field">
                <label>Description</label>
                <!-- {{textarea value=model.description cols="80" rows="6"}} -->
                {{markdown-editor markdownValue=model.description}}
            </div>
        </div>
        <!-- <div class="field">
            <div class="field">
                <label>Configuration Information</label>
              {{textarea value=model.config cols="80" rows="6"}}
            </div>
        </div> -->
    </div>
    <div class="one field">
        <div class="field">
            <label>Illustration</label>
            <div class="ui action input">
                {{input type="text" id="tale-icon" placeholder="Tale Icon" value=model.illustration}}
                    <div class="ui buttons">
                        <style type="text/css">
                            .or:before {
                                color: rgba(0, 0, 0, 0.7) !important;
                                font-size: 1.5em;
                            }
                        </style>
                        <div class="or"></div>
                        <button class="ui positive blue button" {{action "generateIcon" model}}>Generate Illustration</button>
                    </div>
            </div>
        </div>
    </div>  
    <p></p>
</div>

{{#if tale_creating}}
    <div class="ui segment" style="height:100px">
        <div class="ui active inverted dimmer">
            <div class="ui text loader">Saving The Whole Tale...</div>
        </div>
    </div>
{{/if}}

{{#if tale_created}}
    <div class="ui green icon message">
        <i class="checkmark icon"></i>
        <div class="content">
            <div class="header">
{'fraction_non_alphanumeric': 0.15754310344827585, 'fraction_numerical': 0.007327586206896552, 'mean_word_length': 1.4884718498659517, 'pattern_counts': {'":': 0, '<': 126, '<?xml version=': 0, '>': 126, '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': '4902269', 'n_tokens_mistral': 1297, 'n_tokens_neox': 1227, 'n_words': 293}