<commit_before><div class="mod-explore-stories">
    <%= render 'partials/explore/header' %>

    <div class="container-fluid">
        <div class="story-header-text">
            <h2>What people are saying<br>about NGO Aid Map</h2>
        </div>
        <div class="row">
            <div class="stories-left">
                <div class="col-md-6 col-md-offset-3">
                    <% Story.limit(6).each do |story| %>
                        <p class="story-text">
                            <%=story.try(:story) %>
                        </p>
                        <div class="story-owner">
                            <span class="story-owner-name">
                                <% if story.name.present? %>
                                    <%= story.name %>
                                <% else %>Anonymous<% end %>
                            </span>
                            <span class="story-owner-org">
                                <% if story.organization.present? %>
                                    <%= ",  #{story.organization}" %>
                                <% end %>
                            </span>
                        </div>
                        <% if story.image.file? %>
                            <%= image_tag story.image.url, :class => 'story-image'%>
                        <% end %>
                        <hr>
                    <% end %>
                </div>
            </div>
            
           <!-- <div class="stories-left no-pad">
                <% Story.limit(27).each do |story| %>
                    <div class="col-md-2 image-column no-pad">
                        <% if story.image.file? %>
                            <div class="image-wrapper" style="background-image: url(<%= story.image.url(:medium) %>)"></div>
                        <% else %>
                            <div class="image-wrapper no-image">
                                <div class="story-text-wrapper-outer">
                                    <div class="story-text-wrapper-inner">
                                        <p class="story-text"><%= story.try(:story).truncate(200, :separator => /\s/) %></p>
                                    </div>
                                </div>
                            </div>
                        <% end %>
                    </div>
                <% end %>
            </div>-->
            
            <div class="col-md-6 col-md-offset-3 col-xs-12 stories-right">
                <h2>Share Your NGO Aid Map Story</h2>
                <p class="instructions">Have a good story about how NGO Aid Map has benefited you or your organization? Or just want to share some positive vibes about the map?</p>
                <p class="instructions">Let our community know by filling out the form below. Make it pop with a picture or your logo!</p>

                <%= form_for @story, :remote => true, :html => { :multipart => true,:class => 'container-fluid story-form' } do |f| %>
                    <div class="row">
                    
                        <div class="col-sm-10 col-sm-offset-1 form-group">
                            <%= f.label :story, 'Story / Message*', { :class => 'control-label' } %>
                            <%= f.text_area :story,{:class => 'form-control', :placeholder => 'Tell your NGO Aid Map story, or write a brief note...', :required => true, :autofocus=>true, :maxlength => 2500, :spellcheck => true, :rows => 4} %>
                        </div>
                        
                        <div class="col-sm-10 col-sm-offset-1">
                            <div class="row">
                                <div class="col-sm-6 form-group">
                                    <%= f.label :name, 'Name', { :class => 'control-label' } %>
                                    <%= f.text_field :name, {:class => 'form-control'} %>
                                </div>
                                <div class="col-sm-6 form-group">
                                    <%= f.label :email, 'Email', { :class => 'control-label' } %>
                                    <%= f.email_field :email, {:class => 'form-control'} %>
                                </div>
                            </div>
                        </div>
                        
                        <div class="col-sm-10 col-sm-offset-1">
                            <div class="row">
                                <div class="col-sm-6 form-group">
                                    <%= f.label :organization, 'Organization', { :class => 'control-label' } %>
                                    <%= f.text_field :organization, {:class => 'form-control'} %>
                                </div>
                                
                                <div class="col-sm-6 form-group">
                                    <%= f.label :image, 'Add a Picture', { :class => 'control-label' } %><commit_msg>remove autofocus from add story form<commit_after><div class="mod-explore-stories">
    <%= render 'partials/explore/header' %>

    <div class="container-fluid">
        <div class="story-header-text">
            <h2>What people are saying<br>about NGO Aid Map</h2>
        </div>
        <div class="row">
            <div class="stories-left">
                <div class="col-md-6 col-md-offset-3">
                    <% Story.limit(6).each do |story| %>
                        <p class="story-text">
                            <%=story.try(:story) %>
                        </p>
                        <div class="story-owner">
                            <span class="story-owner-name">
                                <% if story.name.present? %>
                                    <%= story.name %>
                                <% else %>Anonymous<% end %>
                            </span>
                            <span class="story-owner-org">
                                <% if story.organization.present? %>
                                    <%= ",  #{story.organization}" %>
                                <% end %>
                            </span>
                        </div>
                        <% if story.image.file? %>
                            <%= image_tag story.image.url, :class => 'story-image'%>
                        <% end %>
                        <hr>
                    <% end %>
                </div>
            </div>
            
            <div class="col-md-6 col-md-offset-3 col-xs-12 stories-right">
                <h2>Share Your NGO Aid Map Story</h2>
                <p class="instructions">Have a good story about how NGO Aid Map has benefited you or your organization? Or just want to share some positive vibes about the map?</p>
                <p class="instructions">Let our community know by filling out the form below. Make it pop with a picture or your logo!</p>

                <%= form_for @story, :remote => true, :html => { :multipart => true,:class => 'container-fluid story-form' } do |f| %>
                    <div class="row">
                    
                        <div class="col-sm-10 col-sm-offset-1 form-group">
                            <%= f.label :story, 'Story / Message*', { :class => 'control-label' } %>
                            <%= f.text_area :story,{:class => 'form-control', :placeholder => 'Tell your NGO Aid Map story, or write a brief note...', :required => true, :maxlength => 2500, :spellcheck => true, :rows => 4} %>
                        </div>
                        
                        <div class="col-sm-10 col-sm-offset-1">
                            <div class="row">
                                <div class="col-sm-6 form-group">
                                    <%= f.label :name, 'Name', { :class => 'control-label' } %>
                                    <%= f.text_field :name, {:class => 'form-control'} %>
                                </div>
                                <div class="col-sm-6 form-group">
                                    <%= f.label :email, 'Email', { :class => 'control-label' } %>
                                    <%= f.email_field :email, {:class => 'form-control'} %>
                                </div>
                            </div>
                        </div>
                        
                        <div class="col-sm-10 col-sm-offset-1">
                            <div class="row">
                                <div class="col-sm-6 form-group">
                                    <%= f.label :organization, 'Organization', { :class => 'control-label' } %>
                                    <%= f.text_field :organization, {:class => 'form-control'} %>
                                </div>
                                
                                <div class="col-sm-6 form-group">
                                    <%= f.label :image, 'Add a Picture', { :class => 'control-label' } %>
{'fraction_non_alphanumeric': 0.13910527487202315, 'fraction_numerical': 0.007122190073447585, 'mean_word_length': 0.9456592336003464, 'pattern_counts': {'":': 0, '<': 161, '<?xml version=': 0, '>': 201, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 31, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3378444', 'n_tokens_mistral': 2405, 'n_tokens_neox': 2133, 'n_words': 497}