<commit_before>#!/usr/bin/env ruby
# 
# This file contains the Arrow module, a namespace container for classes in the
# Arrow web application framework.
# 
# == Subversion Id
#
#  $Id$
# 
# == Authors
# 
# * <NAME> <<EMAIL>>
# * <NAME> <<EMAIL>>
# * <NAME> <<EMAIL>>
# 
#:include: COPYRIGHT
#
#---
#
# Please see the file COPYRIGHT for licensing details.
#


require 'yaml'
require 'tmpdir'

require 'pathname'

begin
	require 'rubygems'
rescue LoadError
	# No RubyGems is okay
end


### The module that serves as a namespace for all Arrow classes.
module Arrow

	# SVN Revision
	SVNRev = %q$Rev$

	# SVN Id
	SVNId = %q$Id$

	# Release version
	VERSION = '0.9.1'

	HOSTS_CONFIG_LINE = <<-EOF
	Can't load Arrow: No host config specified. Try setting the 'hosts_map' 
	option via a line like:
	
	  RubyOption hosts_map "/path/to/yaml/hosts/file.yml"
	EOF
	HOSTS_CONFIG_LINE.strip!

	# Yaml stuff
	YamlDomain = "rubycrafters.com,2003-10-22"

	require 'arrow/applet'
	require 'arrow/dispatcher'
	require 'arrow/broker'
	require 'arrow/exceptions'
	require 'arrow/mixins'


	### A +RubyChildInitHandler+ class which loads one or more dispatchers
	### when a child server starts. This can eliminate the startup lag for 
	### the first request each child handles. See the docs for dispatcher.rb 
	### for an example of how to use this.
	class DispatcherLoader
		
		### Create a loader that will create dispatchers from the given 
		### +hostsfile+, which is a YAML hash that maps dispatcher names to 
		### a configfile path. 
		def initialize( hostsfile )
			@hostsfile = hostsfile<commit_msg>Preparing for 0.9.2 release<commit_after>#!/usr/bin/env ruby
# 
# This file contains the Arrow module, a namespace container for classes in the
# Arrow web application framework.
# 
# == Subversion Id
#
#  $Id$
# 
# == Authors
# 
# * <NAME> <<EMAIL>>
# * <NAME> <<EMAIL>>
# * <NAME> <<EMAIL>>
# 
#:include: COPYRIGHT
#
#---
#
# Please see the file COPYRIGHT for licensing details.
#


require 'yaml'
require 'tmpdir'

require 'pathname'

begin
	require 'rubygems'
rescue LoadError
	# No RubyGems is okay
end


### The module that serves as a namespace for all Arrow classes.
module Arrow

	# SVN Revision
	SVNRev = %q$Rev$

	# SVN Id
	SVNId = %q$Id$

	# Release version
	VERSION = '0.9.2'

	HOSTS_CONFIG_LINE = <<-EOF
	Can't load Arrow: No host config specified. Try setting the 'hosts_map' 
	option via a line like:
	
	  RubyOption hosts_map "/path/to/yaml/hosts/file.yml"
	EOF
	HOSTS_CONFIG_LINE.strip!

	# Yaml stuff
	YamlDomain = "rubycrafters.com,2003-10-22"

	require 'arrow/applet'
	require 'arrow/dispatcher'
	require 'arrow/broker'
	require 'arrow/exceptions'
	require 'arrow/mixins'


	### A +RubyChildInitHandler+ class which loads one or more dispatchers
	### when a child server starts. This can eliminate the startup lag for 
	### the first request each child handles. See the docs for dispatcher.rb 
	### for an example of how to use this.
	class DispatcherLoader
		
		### Create a loader that will create dispatchers from the given 
		### +hostsfile+, which is a YAML hash that maps dispatcher names to 
		### a configfile path. 
		def initialize( hostsfile )
			@hostsfile = hostsfile
{'fraction_non_alphanumeric': 0.10727728983688833, 'fraction_numerical': 0.007841907151819323, 'mean_word_length': 3.7314540059347183, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 21, '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': '4571785', 'n_tokens_mistral': 1149, 'n_tokens_neox': 1038, 'n_words': 378}