<commit_before>module Views
  module Layouts
    # This is the base class for all other mustache views. If a method is
    # needed for the layouts/application.mustache template, add it here,
    # otherwise it should live in ApplicationHelper.
    class Application < ActionView::Mustache
      include ApplicationHelper
      include DateHelper
      include GravatarHelper
      include TweetHelper

      attr_reader :current_user
      attr_reader :user

      def page_title
        'CouchTweet'
      end

      def link_to_home
        link_to('Home', root_path)
      end

      def link_to_login
        link_to('Sign in', new_session_path)
      end

      def link_to_logout
        link_to('Sign out', logout_path)
      end

      def link_to_profile
        link_to('Profile', current_user_path)
      end

      def link_to_logo
        link_to(image_tag('logo.png'), root_path)
      end

      def body_class
        sidebar ? '' : 'class="narrow"'.html_safe
      end

      def sidebar
        @sidebar ||= user_sidebar
      end

      def user_sidebar
        Mustache.render_file('app/templates/users/_sidebar', self)
      end

      def welcome_sidebar
        Mustache.render_file('app/templates/welcome/_sidebar', self)
      end

      def stylesheets
        stylesheet_link_tag('application', media: 'all')
      end

      def javascripts
        javascript_include_tag('application')
      end
    end
  end
end
<commit_msg>Add alt attribute to logo image.<commit_after>module Views
  module Layouts
    # This is the base class for all other mustache views. If a method is
    # needed for the layouts/application.mustache template, add it here,
    # otherwise it should live in ApplicationHelper.
    class Application < ActionView::Mustache
      include ApplicationHelper
      include DateHelper
      include GravatarHelper
      include TweetHelper

      attr_reader :current_user
      attr_reader :user

      def page_title
        'CouchTweet'
      end

      def link_to_home
        link_to('Home', root_path)
      end

      def link_to_login
        link_to('Sign in', new_session_path)
      end

      def link_to_logout
        link_to('Sign out', logout_path)
      end

      def link_to_profile
        link_to('Profile', current_user_path)
      end

      def link_to_logo
        link_to(image_tag('logo.png', alt: 'CouchTweet'), root_path)
      end

      def body_class
        sidebar ? '' : 'class="narrow"'.html_safe
      end

      def sidebar
        @sidebar ||= user_sidebar
      end

      def user_sidebar
        Mustache.render_file('app/templates/users/_sidebar', self)
      end

      def welcome_sidebar
        Mustache.render_file('app/templates/welcome/_sidebar', self)
      end

      def stylesheets
        stylesheet_link_tag('application', media: 'all')
      end

      def javascripts
        javascript_include_tag('application')
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.06338983050847458, 'fraction_numerical': 0.0, 'mean_word_length': 2.2752497225305217, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '7198546', 'n_tokens_mistral': 872, 'n_tokens_neox': 823, 'n_words': 229}