<commit_before>module MobileFu
  module MobilizedStyles

    # This logic was taken from <NAME>'s browserized styles
    # with modification to work for mobile browsers.

    def device_name
      @device_name ||= headers['X_MOBILE_DEVICE']
    end

    def stylesheet_link_tag_with_mobilization(*sources)
      mobilized_sources = Array.new
      sources.each do |source|
        mobilized_sources << source

        path = File.join config.stylesheets_dir, "#{source.to_s.gsub '.css', ''}_#{device_name}.css"
        mobilized_sources << possible_source if File.exist?(path)
      end

      stylesheet_link_tag *mobilized_sources
    end
  end
end

ActionView::Base.send :include, MobileFu::MobilizedStyles
ActionView::Base.send :alias_method_chain, :stylesheet_link_tag, :mobilization
<commit_msg>Fix a typo<commit_after>module MobileFu
  module MobilizedStyles

    # This logic was taken from <NAME>'s browserized styles
    # with modification to work for mobile browsers.

    def device_name
      @device_name ||= request.headers['X_MOBILE_DEVICE']
    end

    def stylesheet_link_tag_with_mobilization(*sources)
      mobilized_sources = Array.new
      sources.each do |source|
        mobilized_sources << source

        path = File.join config.stylesheets_dir, "#{source.to_s.gsub '.css', ''}_#{device_name}.css"
        mobilized_sources << possible_source if File.exist?(path)
      end

      stylesheet_link_tag *mobilized_sources
    end
  end
end

ActionView::Base.send :include, MobileFu::MobilizedStyles
ActionView::Base.send :alias_method_chain, :stylesheet_link_tag, :mobilization

{'fraction_non_alphanumeric': 0.08774113254511512, 'fraction_numerical': 0.0, 'mean_word_length': 3.8727272727272726, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 5, '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': '502014', 'n_tokens_mistral': 500, 'n_tokens_neox': 479, 'n_words': 114}