<commit_before>= simple_form_for @medium, html: { multipart: true } do |f|
  - if @medium.errors.any?
    #errors
      %p
        = @medium.errors.count
        Prevented this medium froms saving
      %ul
        - @medium.errors.full_messages.each do |msg|
          %li= msg
  .panel-body
    = f.input :filename, input_html: { class: 'form-control' }
    = f.input :modified_filename, input_html: { class: 'form-control' }

    .row
      .col-md-6
        %h3 Destinations
        #relations
          = f.simple_fields_for :relations do |relation|
            = render 'relation_fields', f: relation
          .links
            = link_to_add_association 'Add Destinations', f, :relations, class: "btn btn-default add-button"
        %section
          %section.video
            %video{:width => 320, :height => 240, :controls => true}
              %source{:src => "http://mpegmedia.abc.net.au/tv/gardeningaus/vodcast/gardeningaus_15_26_17.mp4", :type => 'video/mp4; codecs="avc1.42E01E, mp4a.40.2"'}
        %section
          %section.video
            %video{:width => 320, :height => 240, :controls => true}
              %source{:src => "file:///home/noel/dwhelper/High_Cable_Curl.mp4", :type => 'video/mp4; codecs="avc1.42E01E, mp4a.40.2"'}
        %video{:id => "example_video_1", :class => "video-js vjs-default-skin", :width => "640", :height => "264",
               :src => "file:///home/noel/dwhelper/High_Cable_Curl.mp4", :type => 'video/mp4'}
      .col-md-6
        %p = video_tag(["../../dwhelper/High_Cable_Curl.mp4"], :size => "320x240", :controls => true)
        %p = video_tag(["../../../dwhelper/High_Cable_Curl.mp4"], :size => "320x240", :controls => true)
        = video_tag("/dwhelper/High_Cable_Curl.mp4", :size => "320x240", :controls => true)
        = video_tag(["/home/noel/dwhelper/High_Cable_Curl.mp4"], :size => "320x240", :controls => true)
        = video_tag(["file:///home/noel/dwhelper/High_Cable_Curl.mp4"], :size => "320x240", :controls => true)
        = video_tag(["http://mpegmedia.abc.net.au/tv/gardeningaus/vodcast/gardeningaus_15_26_17.mp4"], :size => "320x240", :controls => true)

  = f.button :submit, class: "btn btn-primary"
%button{:onclick => "getElementById('medium_modified_filename').value=getElementById('medium_filename').value"} What is the time?
:javascript
  var video = document.querySelector("section.nocontrols video");
  document.querySelector("div.controls button.play").addEventListener('click', function(e) {
    video.play();
  }, false);
  document.querySelector("div.controls button.pause").addEventListener('click', function(e) {
    video.pause();
  }, false);  <commit_msg>remove video html tags from _form partial in media views<commit_after>= simple_form_for @medium, html: { multipart: true } do |f|
  - if @medium.errors.any?
    #errors
      %p
        = @medium.errors.count
        Prevented this medium froms saving
      %ul
        - @medium.errors.full_messages.each do |msg|
          %li= msg
  .panel-body
    = f.input :filename, input_html: { class: 'form-control' }
    = f.input :modified_filename, input_html: { class: 'form-control' }

    .row
      .col-md-6
        %h3 Destinations
        #relations
          = f.simple_fields_for :relations do |relation|
            = render 'relation_fields', f: relation
          .links
            = link_to_add_association 'Add Destinations', f, :relations, class: "btn btn-default add-button"
      .col-md-6

  = f.button :submit, class: "btn btn-primary"
%button{:onclick => "getElementById('medium_modified_filename').value=getElementById('medium_filename').value"} Refresh Modified filename
:javascript
  var video = document.querySelector("section.nocontrols video");
  document.querySelector("div.controls button.play").addEventListener('click', function(e) {
    video.play();
  }, false);
  document.querySelector("div.controls button.pause").addEventListener('click', function(e) {
    video.pause();
  }, false);  
{'fraction_non_alphanumeric': 0.16096579476861167, 'fraction_numerical': 0.02590543259557344, 'mean_word_length': 3.078974358974359, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 33, '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': '3286413', 'n_tokens_mistral': 1351, 'n_tokens_neox': 1297, 'n_words': 251}