<commit_before><h1><%= @artist.name %></h1>

<img src="<%= @artist.avatar %>">
<h3>Address: </h3>
<p><%= @artist.address %></p>
<h3>Bio: </h3>
<p><%= @artist.bio %></p>

<h5>Email: <%= @artist.email %></h5>

<h3>Social Media</h3>
<ul>
  <li><%= @artist.facebook %></li>
  <li><%= @artist.twitter %></li>
</ul>

<h3>Pieces</h3>
<div>
  <% @pieces_sample = @artist.pieces.sample(3) %>
  <% @pieces_sample.each do |piece| %>
    <div><%= link_to image_tag(piece.img), artist_piece_path(@artist, piece) %></div>

    <% if session[:artist_id] == @artist.id %>
      <button><%= link_to "edit", edit_artist_path %></button>
      <button><%= link_to "destroy", @artist, method: :delete %></button>
    <% end %>
  <% end %>
</div>

<h3>--Scenes Completed--</h3>
<p>--Database not set up for this yet--</p>

<%= link_to "All of my Pieces", artist_pieces_path(@artist) %><commit_msg>allow artist to add a new piece when logged in<commit_after><h1><%= @artist.name %></h1>

<img src="<%= @artist.avatar %>">
<h3>Address: </h3>
<p><%= @artist.address %></p>
<h3>Bio: </h3>
<p><%= @artist.bio %></p>

<h5>Email: <%= @artist.email %></h5>

<h3>Social Media</h3>
<ul>
  <li><%= @artist.facebook %></li>
  <li><%= @artist.twitter %></li>
</ul>

<h3>Pieces</h3>
<div>
  <% @pieces_sample = @artist.pieces.sample(3) %>
  <% @pieces_sample.each do |piece| %>
    <div><%= link_to image_tag(piece.img), artist_piece_path(@artist, piece) %></div>

    <% if session[:artist_id] == @artist.id %>
      <button><%= link_to "New", new_artist_path %></button>
      <button><%= link_to "Edit", edit_artist_path %></button>
      <button><%= link_to "Destroy", @artist, method: :delete %></button>
    <% end %>
  <% end %>
</div>

<h3>--Scenes Completed--</h3>
<p>--Database not set up for this yet--</p>

<%= link_to "All of my Pieces", artist_pieces_path(@artist) %>
{'fraction_non_alphanumeric': 0.261646803900325, 'fraction_numerical': 0.016251354279523293, 'mean_word_length': 4.159217877094972, 'pattern_counts': {'":': 0, '<': 108, '<?xml version=': 0, '>': 108, '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': '794437', 'n_tokens_mistral': 842, 'n_tokens_neox': 777, 'n_words': 164}