<commit_before>/**
 * Contain some UI elements that are used in data trees.
 */

Joshfire.define(['joshfire/uielements/list', 'joshfire/uielements/panel', 'joshfire/uielements/panel.manager', 'joshfire/uielements/button', 'joshfire/adapters/ios/uielements/video.youtube'], function(List, Panel, PanelManager, Button, Video) {
	return {
    tplHeader : '<% if(Joshfire.factory.config.app.logo) { %>' + 
                  '<img class="applogo" src="<%= Joshfire.factory.config.app.logo.url %>" alt="<%= Joshfire.factory.config.app.name %>" />' +
                '<% } else { %>' +
                  '<%= Joshfire.factory.config.app.name %>' +
                '<% } %>',

    tplTweetItem :  '<div class="tweet">' +
                  '<% if (item.author) { %>' +
                    '<% if (item.author[0] && item.author[0].image) { %>' +
                      '<img src="<%= item.author[0].image.contentURL %>" alt="" />' +
                    '<% } %>' +
                    '<p class="user"><span class="name"><%= item.author[0].name %></span>' +
                    '<% if (item.author[0]["foaf:nick"]) { %>' +
                      ' <span class="login">@<%= item.author[0]["foaf:nick"] %></span>' +
                    '<% } %>' +
                    '</p>' +
                  '<% } %>' +
                  '<p class="content"><%= item.name %></p>' +
                  '<p class="date"><%= item.datePublished %></p>' +                  
                '</div>',

    tplTweetPage : '<div class="tweet">' +
                    '<div class="tweet-header">' +
                    '<% if (data.author) { %>' +
                      '<% if (data.author[0] && data.author[0].image) { %>' +
                        '<img src="<%= data.author[0].image.contentURL %>" alt="" />' +
                      '<% } %>' +
                      '<p class="username"><%= data.author[0].name %></p>' +
                      '<% if (data.author[0]["foaf:nick"]) { %>' +
                        ' <p class="userlogin">@<%= data.author[0]["foaf:nick"] %></p>' +
                      '<% } %>' +
                    '<% } %>' +
                    '</div>' +
                    '<div class="tweet-content">' +
                      '<p class="content"><%= data.name %></p>' +
                      '<p class="date"><%= data.datePublished %></p>' +                  
                    '</div>' +
                  '</div>',                

    tplEventItem : '<div class="event">' +
                    '<% var d = new Date(item.startDate); %>' + 
                    '<p class="startDate"><%= d.getHours() %>:<%= d.getMinutes() %></p>' +     
                    '<p class="content"><%= item.name %></p>' +                 
                  '</div>',

    tplEventPage : '<div class="event">' +
                    '<% var d = new Date(data.startDate); %>' + 
                    '<div class="coords">' +
                      '<p class="startDate"><%= d.getHours() %>:<%= d.getMinutes() %></p>' + 
                      '<% if (data.location) { %>' + 
                        '<p class="location"><%= data.location.name %></p>' +  
                      '<% } %>' +
                    '</div>' +
                    '<div class="event-content">' +
                      '<h2 class="name"><%= data.name %></h2>' +
                      '<p class="description"><%= data.description %></p>' +
                    '</div>' +
                  '</div>',

    tplItemPreview :  '<% if (item.image) { %>' +
                        '<div class="preview"><img src="<%= item.image.contentURL %>"></div>' +
                      '<% } %>',

    tplItemThumbnail :  '<% if (item.image && item.image.contentURL) { %>' +
                          '<div class="thumbnail" style="background-image:url(\'<%=item.image.contentURL%>\')"></div>' +
                        '<% } %>',
    
    tplDataAuthor:  '<% if (data.author && data.author[0]) { %>' +
                      '<p class="author">By <strong><%= data.author[0].name %></strong></p>' +<commit_msg>display hours a better way<commit_after>/**
 * Contain some UI elements that are used in data trees.
 */

Joshfire.define(['joshfire/uielements/list', 'joshfire/uielements/panel', 'joshfire/uielements/panel.manager', 'joshfire/uielements/button', 'joshfire/adapters/ios/uielements/video.youtube'], function(List, Panel, PanelManager, Button, Video) {
	return {
    tplHeader : '<% if(Joshfire.factory.config.app.logo) { %>' + 
                  '<img class="applogo" src="<%= Joshfire.factory.config.app.logo.url %>" alt="<%= Joshfire.factory.config.app.name %>" />' +
                '<% } else { %>' +
                  '<%= Joshfire.factory.config.app.name %>' +
                '<% } %>',

    tplTweetItem :  '<div class="tweet">' +
                  '<% if (item.author) { %>' +
                    '<% if (item.author[0] && item.author[0].image) { %>' +
                      '<img src="<%= item.author[0].image.contentURL %>" alt="" />' +
                    '<% } %>' +
                    '<p class="user"><span class="name"><%= item.author[0].name %></span>' +
                    '<% if (item.author[0]["foaf:nick"]) { %>' +
                      ' <span class="login">@<%= item.author[0]["foaf:nick"] %></span>' +
                    '<% } %>' +
                    '</p>' +
                  '<% } %>' +
                  '<p class="content"><%= item.name %></p>' +
                  '<p class="date"><%= item.datePublished %></p>' +                  
                '</div>',

    tplTweetPage : '<div class="tweet">' +
                    '<div class="tweet-header">' +
                    '<% if (data.author) { %>' +
                      '<% if (data.author[0] && data.author[0].image) { %>' +
                        '<img src="<%= data.author[0].image.contentURL %>" alt="" />' +
                      '<% } %>' +
                      '<p class="username"><%= data.author[0].name %></p>' +
                      '<% if (data.author[0]["foaf:nick"]) { %>' +
                        ' <p class="userlogin">@<%= data.author[0]["foaf:nick"] %></p>' +
                      '<% } %>' +
                    '<% } %>' +
                    '</div>' +
                    '<div class="tweet-content">' +
                      '<p class="content"><%= data.name %></p>' +
                      '<p class="date"><%= data.datePublished %></p>' +                  
                    '</div>' +
                  '</div>',                

    tplEventItem : '<div class="event">' +
                    '<% var d = new Date(item.startDate); %>' + 
                    '<p class="startDate"><%= d.toTimeString().substring(0, 5) %></p>' +     
                    '<p class="content"><%= item.name %></p>' +                 
                  '</div>',

    tplEventPage : '<div class="event">' +
                    '<div class="coords">' +
                      '<p class="startDate"><%= new Date(data.startDate).toTimeString().substring(0, 5) %></p>' + 
                      '<p class="endDate"><%= new Date(data.endDate).toTimeString().substring(0, 5) %></p>' +                       
                      '<% if (data.location) { %>' + 
                        '<p class="location"><%= data.location.name %></p>' +  
                      '<% } %>' +
                    '</div>' +
                    '<div class="event-content">' +
                      '<h2 class="name"><%= data.name %></h2>' +
                      '<p class="description"><%= data.description %></p>' +
                    '</div>' +
                  '</div>',

    tplItemPreview :  '<% if (item.image) { %>' +
                        '<div class="preview"><img src="<%= item.image.contentURL %>"></div>' +
                      '<% } %>',

    tplItemThumbnail :  '<% if (item.image && item.image.contentURL) { %>' +
                          '<div class="thumbnail" style="background-image:url(\'<%=item.image.contentURL%>\')"></div>' +
                        '<% } %>',
    
    tplDataAuthor:  '<% if (data.author && data.author[0]) { %>' +
                      '<p class="author">By <strong><%= data.author[0].name %></strong></p>' +
{'fraction_non_alphanumeric': 0.22408723352119578, 'fraction_numerical': 0.004655721636853712, 'mean_word_length': 1.3903367496339678, 'pattern_counts': {'":': 0, '<': 215, '<?xml version=': 0, '>': 215, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6578136', 'n_tokens_mistral': 2531, 'n_tokens_neox': 2397, 'n_words': 359}