<commit_before>.page-header
  h1
    = @type

p
  strong id
  br
  = @enclosure.id

p
  strong created_at
  br
  = @enclosure.created_at

p
  strong updated_at
  br
  = @enclosure.updated_at

- content = @enclosure.as_content_json
- content.keys.each do |key|
  - next if ["id", "created_at", "updated_at"].include?(key)
  p
    strong
      = key
  - if key == "tracks"
    - content[key].each do |playlist_track|
      p
        - v = playlist_track['track']
        = link_to "#{v['title']} | #{v['owner_name']}", track_path['track_id']
  - elsif key == "playlists"
    - content[key].each do |v|
      p
        = link_to "#{v['title']} | #{v['owner_name']}", playlist_path(v['id'])
  - elsif key == "albums"
    - content[key].each do |v|
      p
        = link_to "#{v['title']} | #{v['owner_name']}", album_path(v['id'])
  - elsif key == "artists"
    - content[key].each do |artist|
      p
        = artist['name']
  - else
    br
      = content[key]

= link_to 'View', content["url"], class: 'btn btn-info'
'
- if @type == 'Playlist'
  = link_to 'Crawl', crawl_playlist_path(@enclosure), class: 'btn btn-info'
  '
  - if @enclosure.active?
    = link_to 'Deactivate', deactivate_playlist_path(@enclosure), :class => 'btn btn-primary'
  - else
    = link_to 'Activate', activate_playlist_path(@enclosure), :class => 'btn btn-primary'<commit_msg>Enclosure show view uses Enclosure.permalink_url for `View` button<commit_after>.page-header
  h1
    = @type

p
  strong id
  br
  = @enclosure.id

p
  strong created_at
  br
  = @enclosure.created_at

p
  strong updated_at
  br
  = @enclosure.updated_at

- content = @enclosure.as_content_json
- content.keys.each do |key|
  - next if ["id", "created_at", "updated_at"].include?(key)
  p
    strong
      = key
  - if key == "tracks"
    - content[key].each do |playlist_track|
      p
        - v = playlist_track['track']
        = link_to "#{v['title']} | #{v['owner_name']}", track_path['track_id']
  - elsif key == "playlists"
    - content[key].each do |v|
      p
        = link_to "#{v['title']} | #{v['owner_name']}", playlist_path(v['id'])
  - elsif key == "albums"
    - content[key].each do |v|
      p
        = link_to "#{v['title']} | #{v['owner_name']}", album_path(v['id'])
  - elsif key == "artists"
    - content[key].each do |artist|
      p
        = artist['name']
  - else
    br
      = content[key]

= link_to 'View',  @enclosure.permalink_url, class: 'btn btn-info'
'
- if @type == 'Playlist'
  = link_to 'Crawl', crawl_playlist_path(@enclosure), class: 'btn btn-info'
  '
  - if @enclosure.active?
    = link_to 'Deactivate', deactivate_playlist_path(@enclosure), :class => 'btn btn-primary'
  - else
    = link_to 'Activate', activate_playlist_path(@enclosure), :class => 'btn btn-primary'
{'fraction_non_alphanumeric': 0.17267483777937995, 'fraction_numerical': 0.0007209805335255948, 'mean_word_length': 2.981348637015782, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3085921', 'n_tokens_mistral': 1043, 'n_tokens_neox': 1044, 'n_words': 220}