<commit_before>require "rails/all"
require 'action_view'
module Glass
  class Template < ActionView::Base
    # include ::Rails.application.routes.url_helpers
    # include ::ActionView::Helpers::TagHelper
    # attr_accessor :timeline_item, :template, :extension
    def initialize(param, opts)
      if glass.glass_template_path.present? 
        super(Rails.root.join(glass.glass_template_path))
      else
        super(Rails.root.join("app", "views", "glass-templates"))
      end
    end
  end  
end<commit_msg>conventionally declare app/views/glass-templates to be the location of glass templates"<commit_after>require "rails/all"
require 'action_view'
module Glass
  class Template < ActionView::Base
    # include ::Rails.application.routes.url_helpers
    # include ::ActionView::Helpers::TagHelper
    # attr_accessor :timeline_item, :template, :extension
    def initialize(param, opts)
      if glass_template_path.present? 
        super(Rails.root.join(glass_template_path))
      else
        super(Rails.root.join("app", "views", "glass-templates"))
      end
    end
    private
    def glass_template_path
      ::Glass.glass_template_path
    end
  end  
end
{'fraction_non_alphanumeric': 0.10271646859083192, 'fraction_numerical': 0.0, 'mean_word_length': 3.7349397590361444, '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': '1318501', 'n_tokens_mistral': 352, 'n_tokens_neox': 355, 'n_words': 75}