<commit_before><% provide(:title, 'Album List - ') %>
<h1>Listing albums</h1>

<table class="table ">
  <tr class="success">
    <th>Album ID</th>
    <th>User</th>
    <th>Title</th>
    <th>Content</th>
    <th>Show</th>
    <th>Edit</th>
    <th>Delete</th>
    <th>State</th>
  </tr>

<%= will_paginate %>
<ul class="albums">
<% @albums.each do |album| %>

    <% if album.ncc == 0 %><tr class="success">
	<% elsif album.ncc == 1 %><tr class="info">
	<% elsif album.ncc == 2 %><tr class="warning">
	<% else %><tr class="error">
	<% end %>
    <td><%= album.id %></td>
    <td><%= link_to User.find_by_id(album.user_id).name, User.find_by_id(album.user_id) %></td>
    <td><%= album.name %></td>
    <td><%= album.content %></td>
	<% if ((album.ncc == 0 || album.ncc == 1) || signed_in? && (current_user.id == album.user_id || current_user.admin == true)) || (!current_album.nil? && (current_album.id == album.id)) %>
    <td><%= link_to 'Show', album, class: "btn"  %></td>
	<% else %>
	<td><%= link_to 'Login', album_signin_path, class: "btn" %></td>
	<% end %>
    <% if (signed_in? && (current_user.id == album.user_id || current_user.admin == true)) %>
		<td>
			<%= link_to 'Edit', edit_album_path(album), class: "btn" %>
 		</td>
		<td>
			<%= link_to 'Delete', album, confirm: 'Are you sure?', method: :delete, class: "btn" %>
		</td>
	<% else %>
		<td></td><td></td>
	<% end %>
	<td><% if album.ncc == 0 %>参照・変更可能
		<% elsif album.ncc == 1 %>参照のみ可能
		<% elsif album.ncc == 2 %>ログインして参照・変更可能
		<% elsif album.ncc == 3 %>ログインして参照のみ可能
		<% end %>
	</td>
  </tr>
<% end %>
</ul>
<%= will_paginate %>
</table>

<br />
<commit_msg>cosmetic changes<commit_after><% provide(:title, 'Album List - ') %>
<h1>アルバムリスト</h1>

<table class="table ">
  <tr class="success">
    <th>アルバムID</th>
    <th>ユーザ</th>
    <th>タイトル</th>
    <th>閲覧</th>
    <th>編集</th>
    <th>削除</th>
    <th>権限</th>
  </tr>

<%= will_paginate %>
<ul class="albums">
<% @albums.each do |album| %>

    <% if album.ncc == 0 %><tr class="success">
	<% elsif album.ncc == 1 %><tr class="info">
	<% elsif album.ncc == 2 %><tr class="warning">
	<% else %><tr class="error">
	<% end %>
    <td><%= album.id %></td>
    <td><%= link_to User.find_by_id(album.user_id).name, User.find_by_id(album.user_id) %></td>
    <td><%= album.name %></td>
	<% if ((album.ncc == 0 || album.ncc == 1) || signed_in? && (current_user.id == album.user_id || current_user.admin == true)) || (!current_album.nil? && (current_album.id == album.id)) %>
    <td><%= link_to '閲覧', album, class: "btn"  %></td>
	<% else %>
	<td><%= link_to 'ログイン', album_signin_path, class: "btn" %></td>
	<% end %>
    <% if (signed_in? && (current_user.id == album.user_id || current_user.admin == true)) %>
		<td>
			<%= link_to '編集', edit_album_path(album), class: "btn" %>
 		</td>
		<td>
			<%= link_to '削除', album, confirm: 'Are you sure?', method: :delete, class: "btn" %>
		</td>
	<% else %>
		<td></td><td></td>
	<% end %>
	<td><% if album.ncc == 0 %>参照・変更可能
		<% elsif album.ncc == 1 %>参照のみ可能
		<% elsif album.ncc == 2 %>ログインして参照・変更可能
		<% elsif album.ncc == 3 %>ログインして参照のみ可能
		<% end %>
	</td>
  </tr>
<% end %>
</ul>
<%= will_paginate %>
</table>

<br />

{'fraction_non_alphanumeric': 0.26010654967094954, 'fraction_numerical': 0.006894390473205891, 'mean_word_length': 3.4643356643356644, 'pattern_counts': {'":': 0, '<': 160, '<?xml version=': 0, '>': 160, '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': '1858497', 'n_tokens_mistral': 1535, 'n_tokens_neox': 1406, 'n_words': 279}