<commit_before># Dependencies are configured in lib/pages_core/dependencies.rb and loaded by PagesCore.init!

require 'pages_core'
PagesCore.init!

# Why the hell is this here? 
class Image < ActiveRecord::Base
	has_many :album_images
	has_many :albums, :through => :album_images
end

# reCaptcha Global Keys
ENV['RECAPTCHA_PUBLIC_KEY']  = "***REMOVED***"
ENV['RECAPTCHA_PRIVATE_KEY'] = "***REMOVED***"

# Monkey patch CGI::Session::CookieStore to default session expiry 
# to 3 years into the future.
class CGI::Session::CookieStore
	alias_method :original_write_cookie, :write_cookie
    def write_cookie(options)
		options['expires'] ||= 3.years.from_now
		original_write_cookie(options)
	end
end

# Initialize and configure Haml/Sass
Haml.init_rails(binding) if defined?(Haml)
Sass::Plugin.options[:template_location] = File.join(RAILS_ROOT, 'app/assets/stylesheets')<commit_msg>disabling SASS in init.rb makes it possible to generate migrations again... (plugin has not been loaded)<commit_after># Dependencies are configured in lib/pages_core/dependencies.rb and loaded by PagesCore.init!

require 'pages_core'
PagesCore.init!

# Why the hell is this here? 
class Image < ActiveRecord::Base
	has_many :album_images
	has_many :albums, :through => :album_images
end

# reCaptcha Global Keys
ENV['RECAPTCHA_PUBLIC_KEY']  = "***REMOVED***"
ENV['RECAPTCHA_PRIVATE_KEY'] = "***REMOVED***"

# Monkey patch CGI::Session::CookieStore to default session expiry 
# to 3 years into the future.
class CGI::Session::CookieStore
	alias_method :original_write_cookie, :write_cookie
    def write_cookie(options)
		options['expires'] ||= 3.years.from_now
		original_write_cookie(options)
	end
end

# Initialize and configure Haml/Sass
Haml.init_rails(binding) if defined?(Haml)
# This breaks generate migrations ???
#Sass::Plugin.options[:template_location] = File.join(RAILS_ROOT, 'app/assets/stylesheets')
{'fraction_non_alphanumeric': 0.11339662447257384, 'fraction_numerical': 0.002109704641350211, 'mean_word_length': 6.41015625, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5666481', 'n_tokens_mistral': 648, 'n_tokens_neox': 620, 'n_words': 160}