<commit_before># Be sure to restart your server when you modify this file

# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.14' unless defined? RAILS_GEM_VERSION

#ENV['RAILS_ENV'] ||= 'production'

# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')

#	This constant is used in the ccls_engine#Document
#	and other places like Amazon buckets
#	for controlling the path to documents.
RAILS_APP_NAME = 'odms'

Rails::Initializer.run do |config|

	#	active_record_store needed to accomodate the cookie
	#	excess created by ActiveScaffold.  Integration testing does 
	#	not like this, so it is set back to cookie_store for testing.
	#	Should we abandon the usage of ActiveScaffold, we can, but 
	#	don't have to, switch back to the default.
	config.action_controller.session_store = :active_record_store

	config.gem 'mysql'
	config.gem "sqlite3"

	#	due to some enhancements, the db gems MUST come first
	#	for use in the jruby environment.
	config.gem 'ccls-ccls_engine'
	config.gem 'ccls-simply_authorized'
	config.gem 'ccls-common_lib'
	config.gem 'jrails'

	config.gem 'will_paginate'
	config.gem 'fastercsv'
	config.gem 'hpricot'

	config.frameworks -= [ :active_resource ]

	# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
	# Run "rake -D time" for a list of tasks for finding time zone names.
	config.time_zone = 'UTC'

end

#	don't use the default div wrappers as they muck up style
#	just adding a class to the tag is a little better
require 'hpricot'
ActionView::Base.field_error_proc = Proc.new { |html_tag, instance| 
	error_class = 'field_error'
	nodes = Hpricot(html_tag)
	nodes.each_child { |node| 
		node[:class] = node.classes.push(error_class).join(' ') unless !node.elem? || node[:type] == 'hidden' || node.classes.include?(error_class) 
	}
	nodes.to_html
}

<commit_msg>Set timezone to Pacific.<commit_after># Be sure to restart your server when you modify this file

# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.14' unless defined? RAILS_GEM_VERSION

#ENV['RAILS_ENV'] ||= 'production'

# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')

#	This constant is used in the ccls_engine#Document
#	and other places like Amazon buckets
#	for controlling the path to documents.
RAILS_APP_NAME = 'odms'

Rails::Initializer.run do |config|

	#	active_record_store needed to accomodate the cookie
	#	excess created by ActiveScaffold.  Integration testing does 
	#	not like this, so it is set back to cookie_store for testing.
	#	Should we abandon the usage of ActiveScaffold, we can, but 
	#	don't have to, switch back to the default.
	config.action_controller.session_store = :active_record_store

	config.gem 'mysql'
	config.gem "sqlite3"

	#	due to some enhancements, the db gems MUST come first
	#	for use in the jruby environment.
	config.gem 'ccls-ccls_engine'
	config.gem 'ccls-simply_authorized'
	config.gem 'ccls-common_lib'
	config.gem 'jrails'

	config.gem 'will_paginate'
	config.gem 'fastercsv'
	config.gem 'hpricot'

	config.frameworks -= [ :active_resource ]

	# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
	# Run "rake -D time" for a list of tasks for finding time zone names.
	config.time_zone = 'Pacific Time (US & Canada)'

end

#	don't use the default div wrappers as they muck up style
#	just adding a class to the tag is a little better
require 'hpricot'
ActionView::Base.field_error_proc = Proc.new { |html_tag, instance| 
	error_class = 'field_error'
	nodes = Hpricot(html_tag)
	nodes.each_child { |node| 
		node[:class] = node.classes.push(error_class).join(' ') unless !node.elem? || node[:type] == 'hidden' || node.classes.include?(error_class) 
	}
	nodes.to_html
}


{'fraction_non_alphanumeric': 0.0902179422199696, 'fraction_numerical': 0.002534211860111505, 'mean_word_length': 4.598581560283688, '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': '729883', 'n_tokens_mistral': 1334, 'n_tokens_neox': 1270, 'n_words': 448}