<commit_before><!-- <div class="options_navbar">
        <label for="show_filters" class="show_filters">Show Filters</label>
        <input type="checkbox" id="show_filters" role="button">
      </div> -->
      <!-- Three -->


      <section id="" class="flight_details">
        <% @flights.each do |flight| %>

        <article class="post">
          <header>
            <div class="title mapContainer">
              <p class="icon fa-home">From: <%= flight.departure %></p>
              <h3 class="icon fa-plane">To: <%= flight.destination %> </h3>
              <div class="4u$ 12u$(small)">
                <%= image_tag "http://maps.google.com/maps/api/staticmap?size=400x250&sensor=false&zoom=4&markers=#{flight.latitude}%2C#{flight.longitude}", class:"map" %>
              </div> 
            </div>
            <div class="meta">
              <p class="published icon fa-calendar"> <%= Flight.day(flight.date) %></p>
              <p class=" icon fa-clock-o"> <%= Flight.time(flight.date) %></p>
              <a href="#" class="author">
                <span class="name">
                  <%= flight.user.first_name %>
                </span>
              </a> 
              <p class="author">
                <span class="">
                  <%= image_tag(flight.user.avatar) %>
                </p> 
              </div>
            </header>
            <footer>
              <ul class="actions">
                <% if flight.user != current_user %>
                <p><%= flight.content %></p> 

                <li>
                  <%= button_to "Contact #{flight.user.first_name}", { action: "create",method: :post, controller: 'conversations', class: 'icon fa-envelope',sender_id: current_user.id, recipient_id: flight.user.id} %>
                </li>

                <% else %>

                <li>
                  <%= button_to 'Edit',edit_flight_path(flight),  method: :get, class: "button icon fa-envelope" %>
                </li>

                <% end %>


                <li>
                  <%= button_to "Share Flight On Facebook",
                  "https://www.facebook.com/dialog/feed?app_id=1051690404882304
                  &redirect_uri=https://www.facebook.com
                  &link=https://www.apostell.com/
                  &picture=http://maps.google.com/maps/api/staticmap?size=400x250&sensor=false&zoom=4&markers=#{flight.latitude}%2C#{flight.longitude}
                  &description=Check%20out%20my%20upcoming%20flight%20from%20#{flight.departure}%20to%20#{flight.destination}%20on%20apostell.com%20for%20help%20with%20delivering%20a%20package,
                  &caption=My%20flight%20to%20#{flight.destination}",
                  form: {target: '_blank'} %>
                  
              </li>
              </ul>
              </ul>
              <ul class="stats">
                <!-- <li><a href="#">General</a></li> -->
                <!-- <li><a href="#" class="icon fa-star fa-2x">28</a></li> -->
                <!-- <li><a href="#" class="icon fa-comment">128</a></li> -->
              </ul>
            </footer>
          </article>

        </section>
        <% end %>

        
        <% if @flights.present? %>

      <div class="flickr_pagination">
        <div class="page_info">
          <%= page_entries_info @flights %>
        </div>
        <%= will_paginate @flights, :container => false %>
      </div>
        <% end %>

        <!-- Scripts -->
        <script src="assets/js/skel.min.js"></script>
        <script src="assets/js/util.js"></script>
        <!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]-->
        <script src="assets/js/main.js"></script>
<commit_msg>add fb sharing options<commit_after><!-- <div class="options_navbar">
        <label for="show_filters" class="show_filters">Show Filters</label>
        <input type="checkbox" id="show_filters" role="button">
      </div> -->
      <!-- Three -->


      <section id="" class="flight_details">
        <% @flights.each do |flight| %>

        <article class="post">
          <header>
            <div class="title mapContainer">
              <p class="icon fa-home">From: <%= flight.departure %></p>
              <h3 class="icon fa-plane">To: <%= flight.destination %> </h3>
              <div class="4u$ 12u$(small)">
                <%= image_tag "http://maps.google.com/maps/api/staticmap?size=400x250&sensor=false&zoom=4&markers=#{flight.latitude}%2C#{flight.longitude}", class:"map" %>
              </div> 
            </div>
            <div class="meta">
              <p class="published icon fa-calendar"> <%= Flight.day(flight.date) %></p>
              <p class=" icon fa-clock-o"> <%= Flight.time(flight.date) %></p>
              <a href="#" class="author">
                <span class="name">
                  <%= flight.user.first_name %>
                </span>
              </a> 
              <p class="author">
                <span class="">
                  <%= image_tag(flight.user.avatar) %>
                </p> 
              </div>
            </header>
            <footer>
              <ul class="actions">
                <% if flight.user != current_user %>
                <p><%= flight.content %></p> 

                <li>
                  <%= button_to "Contact #{flight.user.first_name}", { action: "create",method: :post, controller: 'conversations', class: 'icon fa-envelope',sender_id: current_user.id, recipient_id: flight.user.id} %>
                </li>

                <% else %>

                <li>
                  <%= button_to 'Edit',edit_flight_path(flight),  method: :get, class: "button icon fa-envelope" %>
                </li>


                <li>
                  <%= button_to "Share Flight On Facebook",
                  "https://www.facebook.com/dialog/feed?app_id=1051690404882304
                  &redirect_uri=https://www.facebook.com
                  &link=https://www.apostell.com/
                  &picture=http://maps.google.com/maps/api/staticmap?size=400x250&sensor=false&zoom=4&markers=#{flight.latitude}%2C#{flight.longitude}
                  &description=Check%20out%20my%20upcoming%20flight%20from%20#{flight.departure}%20to%20#{flight.destination}%20on%20apostell.com%20for%20help%20with%20delivering%20a%20package,
                  &caption=My%20flight%20to%20#{flight.destination}",
                  form: {target: '_blank'} %>
                  
              </li>
                <% end %>

              </ul>
              <ul class="stats">
                <!-- <li><a href="#">General</a></li> -->
                <!-- <li><a href="#" class="icon fa-star fa-2x">28</a></li> -->
                <!-- <li><a href="#" class="icon fa-comment">128</a></li> -->
              </ul>
            </footer>
          </article>

        </section>
        <% end %>

        
        <% if @flights.present? %>

      <div class="flickr_pagination">
        <div class="page_info">
          <%= page_entries_info @flights %>
        </div>
        <%= will_paginate @flights, :container => false %>
      </div>
        <% end %>

        <!-- Scripts -->
        <script src="assets/js/skel.min.js"></script>
        <script src="assets/js/util.js"></script>
        <!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]-->
        <script src="assets/js/main.js"></script>

{'fraction_non_alphanumeric': 0.18136394328156652, 'fraction_numerical': 0.02214719783929777, 'mean_word_length': 1.6872278664731495, 'pattern_counts': {'":': 0, '<': 200, '<?xml version=': 0, '>': 202, 'https://': 6, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6188440', 'n_tokens_mistral': 2452, 'n_tokens_neox': 2148, 'n_words': 348}