<commit_before><div class="container profiles">
  <div class="text-white-bg">
    <div class="row">
      <div class="span12">
        <br>
        <h1><%= @profile.fullname %></h1>
      </div>
    </div>
    <div class="row">
      <div class="span12 text-right">
        <%= link_to(t(:home, scope: "profiles.edit"), profiles_path) %>
      </div>
    </div>
  </div>
  <br>
  <br>
  <div class="row">
    <div class="span4">
      <% if @profile.picture.present? %>
        <%= image_tag(@profile.picture.profile.url , class: "photo") %>
      <% else %>
        <%= image_tag("avatar.jpg", alt: "avatar", class: "photo") %>
      <% end %>
      <div class="main-topic"><%= @profile.main_topic_or_first_topic %></div>
    </div>

    <div class="span5 text-profile">
      <% if @profile.twitter.present? %>
        <h5><%= t(:twitter, scope: "profiles.profile") %></h5>
        <span><%=link_to "@" + @profile.twitter_name_formatted, @profile.twitter_link_formatted, target: '_blank' %></span>
        <hr>
      <% end %>

      <% if @profile.website.present? %>
        <h5><%= t(:website, scope: "profiles.profile") %></h5>
        <span><%=link_to @profile.website, @profile.website_with_protocol, target: '_blank' %></span>
        <hr>
      <% end %>

      <h5><%= t(:topics, scope: "profiles.profile") %></h5>
      <span class='topics-cloud'><%= raw @profile.topic_list.map { |t| link_to t, topic_path(t) }.join(' ') %></span>
      <hr>
      <h5><%= t(:languages, scope: "profiles.profile") %></h5>
      <span><%= @profile.languages %></span>
      <hr>

      <% if @profile.city.present? %>
        <h5><%= t(:city, scope: "profiles.profile") %></h5>
        <span><%= @profile.city %></span>
        <hr>
      <% end %>

    </div>
    <div class="span3">
      <a data-toggle="modal" href="#contact" class="btn  btn-large buttons-modals">
        <span class="icon icon-envelope"></span>
        <%= t(:contact, scope: "profiles.profile") %>
      </a>

      <% if current_profile == @profile %>
        <%= link_to(edit_profile_path(@profile)) do %>
          <div class="btn  btn-large buttons-modals btn-info">
            <span class="icon icon-edit icon-white"></span>
            <%= t(:edit, scope: "profiles.profile") %>
          </div>
        <% end %>
        <%= link_to(profile_medialinks_path(@profile)) do %>
          <div class="btn  btn-large buttons-modals btn-info">
            <span class="icon icon-edit icon-white"></span>
            <%= t(:edit, scope: "profiles.medialinks") %>
          </div>
        <% end %>
      <% end %>
    </div>
  </div>

  <div class="row">
    <%#<div class="info-profiles-bio">%>
    <div class="span6 text-profile bottom">
      <h5> <%= t ".bio" %></h5>
      <span><%= simple_format(@profile.bio) %></span>
    </div>

    <div class="span6 pull-right text-profile bottom">

      <% if @profile.medialinks.any? %>
        <h5><%= t ".media" %></h5>
        <ul>
          <% @profile.medialinks.each do |medialink| %>
          <li>
            <p class="medialink"><%= medialink.title %></p>
            <%= medialink.url_html %><commit_msg>use the ordered medialinks for showing all the medialinks in profile show<commit_after><div class="container profiles">
  <div class="text-white-bg">
    <div class="row">
      <div class="span12">
        <br>
        <h1><%= @profile.fullname %></h1>
      </div>
    </div>
    <div class="row">
      <div class="span12 text-right">
        <%= link_to(t(:home, scope: "profiles.edit"), profiles_path) %>
      </div>
    </div>
  </div>
  <br>
  <br>
  <div class="row">
    <div class="span4">
      <% if @profile.picture.present? %>
        <%= image_tag(@profile.picture.profile.url , class: "photo") %>
      <% else %>
        <%= image_tag("avatar.jpg", alt: "avatar", class: "photo") %>
      <% end %>
      <div class="main-topic"><%= @profile.main_topic_or_first_topic %></div>
    </div>

    <div class="span5 text-profile">
      <% if @profile.twitter.present? %>
        <h5><%= t(:twitter, scope: "profiles.profile") %></h5>
        <span><%=link_to "@" + @profile.twitter_name_formatted, @profile.twitter_link_formatted, target: '_blank' %></span>
        <hr>
      <% end %>

      <% if @profile.website.present? %>
        <h5><%= t(:website, scope: "profiles.profile") %></h5>
        <span><%=link_to @profile.website, @profile.website_with_protocol, target: '_blank' %></span>
        <hr>
      <% end %>

      <h5><%= t(:topics, scope: "profiles.profile") %></h5>
      <span class='topics-cloud'><%= raw @profile.topic_list.map { |t| link_to t, topic_path(t) }.join(' ') %></span>
      <hr>
      <h5><%= t(:languages, scope: "profiles.profile") %></h5>
      <span><%= @profile.languages %></span>
      <hr>

      <% if @profile.city.present? %>
        <h5><%= t(:city, scope: "profiles.profile") %></h5>
        <span><%= @profile.city %></span>
        <hr>
      <% end %>

    </div>
    <div class="span3">
      <a data-toggle="modal" href="#contact" class="btn  btn-large buttons-modals">
        <span class="icon icon-envelope"></span>
        <%= t(:contact, scope: "profiles.profile") %>
      </a>

      <% if current_profile == @profile %>
        <%= link_to(edit_profile_path(@profile)) do %>
          <div class="btn  btn-large buttons-modals btn-info">
            <span class="icon icon-edit icon-white"></span>
            <%= t(:edit, scope: "profiles.profile") %>
          </div>
        <% end %>
        <%= link_to(profile_medialinks_path(@profile)) do %>
          <div class="btn  btn-large buttons-modals btn-info">
            <span class="icon icon-edit icon-white"></span>
            <%= t(:edit, scope: "profiles.medialinks") %>
          </div>
        <% end %>
      <% end %>
    </div>
  </div>

  <div class="row">
    <%#<div class="info-profiles-bio">%>
    <div class="span6 text-profile bottom">
      <h5> <%= t ".bio" %></h5>
      <span><%= simple_format(@profile.bio) %></span>
    </div>

    <div class="span6 pull-right text-profile bottom">

      <% if @profile.medialinks.any? %>
        <h5><%= t ".media" %></h5>
        <ul>
          <% @medialinks.each do |medialink| %>
          <li>
            <p class="medialink"><%= medialink.title %></p>
            <%= medialink.url_html %>
{'fraction_non_alphanumeric': 0.2136522014570795, 'fraction_numerical': 0.007918910357934749, 'mean_word_length': 2.430200977729495, 'pattern_counts': {'":': 0, '<': 241, '<?xml version=': 0, '>': 241, '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': '5503174', 'n_tokens_mistral': 2315, 'n_tokens_neox': 2147, 'n_words': 433}