<commit_before>require 'octopress-hooks'
require 'octopress-autoprefixer/version'
require 'autoprefixer-rails'
require 'find'

module Octopress
  module AutoPrefixer
    class SiteHooks < Hooks::Site
      @priority = :low

      def post_write(site)
        AutoPrefixer.process(site)
      end
    end

    def self.find_stylesheets(dir)
      return [] unless Dir.exist? dir
      Find.find(dir).to_a.reject {|f| File.extname(f) != '.css' }
    end

    def self.process(site)
      find_stylesheets(site.config['destination']).each do |file|
        prefix(file)
      end
    end

    def self.prefix(stylesheet)
      content = File.open(stylesheet).read<commit_msg>testing something stupid<commit_after>require 'octopress-hooks'
require 'octopress-autoprefixer/version'
require 'autoprefixer-rails'
require 'find'

module Octopress
  module AutoPrefixer
    class SiteHooks < Hooks::Site
      @priority = :low

      def post_write(site)
        AutoPrefixer.process(site)
      end
    end

    def self.find_stylesheets(dir)
      return [] unless Dir.exist? dir
      Find.find(dir).to_a.reject {|f| File.extname(f) != '.css' }
    end

    def self.process(site)
      find_stylesheets(site.config['destination']).each do |file|
        #prefix(file)
      end
    end

    def self.prefix(stylesheet)
      content = File.open(stylesheet).read
{'fraction_non_alphanumeric': 0.1084070796460177, 'fraction_numerical': 0.0, 'mean_word_length': 3.026706231454006, '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': '1182885', 'n_tokens_mistral': 446, 'n_tokens_neox': 437, 'n_words': 91}