<commit_before>require 'jquery-rails'
require 'sass-rails'
require 'bootstrap-sass'
require 'kss'
require "stylin/engine"

module Stylin
  config = {
    stylesheets_path: File.join('app', 'assets', 'stylesheets'),
    html_styleguides_path: File.join('app', 'styleguides'),
    section_groupings: nil
  }

  if File.exists?( File.join('config', 'stylin.yml') )
    user_config = HashWithIndifferentAccess.new(
      YAML.load(
        File.read( File.expand_path(File.join('config', 'stylin.yml'), Rails.root) )
      )
    ).symbolize_keys
  end

  APP_CONFIG = config.merge( user_config )

  APP_CONFIG[:stylesheets_path] = File.expand_path(APP_CONFIG[:stylesheets_path], Rails.root)
  APP_CONFIG[:html_styleguides_path] = File.expand_path(APP_CONFIG[:html_styleguides_path], Rails.root)
end<commit_msg>Add default blank user config<commit_after>require 'jquery-rails'
require 'sass-rails'
require 'bootstrap-sass'
require 'kss'
require "stylin/engine"

module Stylin
  config = {
    stylesheets_path: File.join('app', 'assets', 'stylesheets'),
    html_styleguides_path: File.join('app', 'styleguides'),
    section_groupings: nil
  }

  if File.exists?( File.join('config', 'stylin.yml') )
    user_config = HashWithIndifferentAccess.new(
      YAML.load(
        File.read( File.expand_path(File.join('config', 'stylin.yml'), Rails.root) )
      )
    ).symbolize_keys
  else
    user_config = {}
  end

  APP_CONFIG = config.merge( user_config )

  APP_CONFIG[:stylesheets_path] = File.expand_path(APP_CONFIG[:stylesheets_path], Rails.root)
  APP_CONFIG[:html_styleguides_path] = File.expand_path(APP_CONFIG[:html_styleguides_path], Rails.root)
end
{'fraction_non_alphanumeric': 0.13466183574879226, 'fraction_numerical': 0.0, 'mean_word_length': 4.814035087719298, 'pattern_counts': {'":': 0, '<': 3, '<?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': '564992', 'n_tokens_mistral': 599, 'n_tokens_neox': 576, 'n_words': 95}