<commit_before>//- index.jade - Template for podcast feed pages/views. -//
//- Authors: <NAME>; <NAME> -//
//- Modified: 09 Mar 15 -//

// Left column with feed data.
script.
    window.safetitle = "#{safetitle}";
.feed-row-top
    h4 #{feed.title}
.feed-col-left
    img.podcast-poster(src="#{podcast.poster600}")
    // Container for audio player.
    //-
        div.podcast-player
            div.playing-title
                span No File Selected
            audio(controls="controls" preload="auto" src="http://xamuel.com/blank-mp3-files/point1sec.mp3")
            script(src="/javascripts/audioplayer.js")
            script.
                $( function() { $( 'audio' ).audioPlayer(); } ); 
    table#feedinfo-table(class="table sleek-gray")
        tbody
            if user
                tr
                    th Favorite
                    td
                        if isFavorited(user, podcast._id)
                            button#fav(data-id="#{podcast._id}") Remove
                        else
                            button#fav(data-id="#{podcast._id}") Add
            tr
                th Author
                td #{podcast.artistName}
            tr
                th Genre
                td #{podcast.genre}
// Right column with episode table
//-
    - var formatDate = function (dateString) {
    -   var d = dateString.substr(5, 2);
    -   var m = dateString.substr(8, 3);
    -   var y = dateString.substr(14, 2);
    -   return d + ' ' + m + ' ' + y;
    - }
.feed-col-right
    table#episode-table(class="table table-bordered")
        thead
            tr
                th Title
                th Date
                th 
        tbody
            each ep in feed.item
                tr
                    if ep.title
                        td(title="#{ep.title}" style="width:100%") 
                            if ep.title.length >= 42
                                span #{ep.title.substr(0,38) + '...'}
                            else
                                span #{ep.title}
                    else
                        td N/A
                    td
                        if ep.pubDate
                            - var d = ep.pubDate.substr(5, 2);
                            - var m = ep.pubDate.substr(8, 3);
                            - var y = ep.pubDate.substr(14, 2);
                            span #{d + ' ' + m + ' ' + y}
                        else
                            span N/A
                    td
                        if ep.enclosure
                            button.listenlink.add(class="btn btn-default" data-audio="#{ep.enclosure.$.url}" data-title="#{ep.title}" data-poster="#{podcast.poster100}" type="button")
                                span.glyphicon.glyphicon-plus-sign(aira-hidden="true")
                            button.listenlink.play(class="btn btn-default" data-audio="#{ep.enclosure.$.url}" data-title="#{ep.title}" data-poster="#{podcast.poster100}" type="button")
                                span.glyphicon.glyphicon-play(aira-hidden="true")
                        else
                            span.glyphicon.glyphicon-alert(aria-hidden="true" title="No audio data.")
.feed-row-bottom.sleek-gray
    if feed['itunes:summary']
        span#it-summary #{feed['itunes:summary']}
    else
        span#it-summary N/A<commit_msg>[Fix] Style<commit_after>//- index.jade - Template for podcast feed pages/views. -//
//- Authors: <NAME>; <NAME> -//
//- Modified: 09 Mar 15 -//

// Left column with feed data.
script.
    window.safetitle = "#{safetitle}";
.feed-row-top
    h4 #{feed.title}
.feed-col-left
    img.podcast-poster(src="#{podcast.poster600}")
    // Container for audio player.
    //-
        div.podcast-player
            div.playing-title
                span No File Selected
            audio(controls="controls" preload="auto" src="http://xamuel.com/blank-mp3-files/point1sec.mp3")
            script(src="/javascripts/audioplayer.js")
            script.
                $( function() { $( 'audio' ).audioPlayer(); } ); 
    table#feedinfo-table(class="table sleek-gray")
        tbody
            if user
                tr
                    th Favorite
                    td
                        if isFavorited(user, podcast._id)
                            button#fav(data-id="#{podcast._id}") Remove
                        else
                            button#fav(data-id="#{podcast._id}") Add
            tr
                th Author
                td #{podcast.artistName}
            tr
                th Genre
                td #{podcast.genre}
// Right column with episode table
//-
    - var formatDate = function (dateString) {
    -   var d = dateString.substr(5, 2);
    -   var m = dateString.substr(8, 3);
    -   var y = dateString.substr(14, 2);
    -   return d + ' ' + m + ' ' + y;
    - }
.feed-col-right
    table#episode-table(class="table table-bordered")
        thead
            tr
                th Title
                th Date
                th 
        tbody
            each ep in feed.item
                tr
                    if ep.title
                        td(title="#{ep.title}" style="width:100%") 
                            if ep.title.length >= 42
                                span #{ep.title.substr(0,38) + '...'}
                            else
                                span #{ep.title}
                    else
                        td N/A
                    td(style="width:100px")
                        if ep.pubDate
                            - var d = ep.pubDate.substr(5, 2);
                            - var m = ep.pubDate.substr(8, 3);
                            - var y = ep.pubDate.substr(14, 2);
                            span #{d + ' ' + m + ' ' + y}
                        else
                            span N/A
                    td(style="width:100px")
                        if ep.enclosure
                            button.listenlink.add(class="btn btn-default" data-audio="#{ep.enclosure.$.url}" data-title="#{ep.title}" data-poster="#{podcast.poster100}" type="button")
                                span.glyphicon.glyphicon-plus-sign(aira-hidden="true")
                            button.listenlink.play(class="btn btn-default" data-audio="#{ep.enclosure.$.url}" data-title="#{ep.title}" data-poster="#{podcast.poster100}" type="button")
                                span.glyphicon.glyphicon-play(aira-hidden="true")
                        else
                            span.glyphicon.glyphicon-alert(aria-hidden="true" title="No audio data.")
.feed-row-bottom.sleek-gray
    if feed['itunes:summary']
        span#it-summary #{feed['itunes:summary']}
    else
        span#it-summary N/A
{'fraction_non_alphanumeric': 0.12781065088757396, 'fraction_numerical': 0.01242603550295858, 'mean_word_length': 1.1531847133757962, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '466117', 'n_tokens_mistral': 1978, 'n_tokens_neox': 1836, 'n_words': 360}