<commit_before>- collection ||= @collection
.collection.page
  - form_for @collection do |f|
    .image
      - if p = collection.poster_path(public_only?)
        %img{:src=>p,:alt => "sample image from collection"}
    .details
      .title
        .label
          Title:
          - if current_user and !current_user.special_collection?( collection )
            = f.text_field :title, :size => 50
          - else
            = collection.title
      .description
        .label
          Description:
          %div= f.text_area :description, :size => "50x4"

      .clear
      .public
        .label
          Privacy:
          Public:
          = f.radio_button :public, "true"
          Private:
          = f.radio_button :public, "false"

      %div &nbsp;
      .clear

      = submit_tag @collection.new_record? ? "Create" : "Save" 

    .menu
      .attribute
        .legend Created on:
        .right.value= ca = collection.created_at and ca.to_date.to_s(:medium)
      .attribute
        .legend Last updated:
        .right.value= ua = collection.updated_at and ua.to_date.to_s(:medium)
      .attribute
        .legend Videos:
        .value= collection.size(public_only?)
      .attribute
        .legend Views:
        .value= collection.views

    .clear


= render :partial => "collections/videos", :object => @collection.send(videos_method)<commit_msg>update edit playlist with new prop schema<commit_after>- collection ||= @collection
.collection.page
  - form_for @collection do |f|
    .image
      - if p = collection.poster_path(public_only?)
        %img{:src=>p,:alt => "sample image from collection"}
    .details
      .title
        .label
          Title:
          - if current_user and !current_user.special_collection?( collection )
            = f.text_field :title, :size => 50
          - else
            = collection.title
      .description
        .label
          Description:
          %div= f.text_area :description, :size => "50x4"

      .clear
      .public
        .label
          Privacy:
          Public:
          = f.radio_button :public, "true"
          Private:
          = f.radio_button :public, "false"

      %div &nbsp;
      .clear

      = submit_tag @collection.new_record? ? "Create" : "Save" 

    .menu
      .attribute
        .legend Created on:
        .right.value= ca = collection.created_at and ca.to_date.to_s(:medium)
      .attribute
        .legend Last updated:
        .right.value= ua = collection.updated_at and ua.to_date.to_s(:medium)
      .attribute
        .legend Videos:
        .value= collection.size(public_only?)
      .attribute
        .legend Views:
        .value= collection.views

    .clear

= render :partial => "collections/videos", :object => @collection.send(videos_method)
{'fraction_non_alphanumeric': 0.11210923463887891, 'fraction_numerical': 0.0035932446999640674, 'mean_word_length': 1.8583162217659137, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '3813996', 'n_tokens_mistral': 849, 'n_tokens_neox': 812, 'n_words': 193}