<commit_before>module CodeRay
module Encoders

	# = HTML Encoder
	#
	# This is CodeRay's most important highlighter:
	# It provides save, fast XHTML generation and CSS support.
	#
	# == Usage
	#
	#  require 'coderay'
	#  puts CodeRay.scan('Some /code/', :ruby).html  #-> a HTML page
	#  puts CodeRay.scan('Some /code/', :ruby).html(:wrap => :span) #-> <span class="CodeRay"><span class="co">Some</span> /code/</span>
	#  puts CodeRay.scan('Some /code/', :ruby).span  #-> the same
	#  
	#  puts CodeRay.scan('Some code', :ruby).html(
	#    :wrap => nil,
	#    :line_numbers => :inline,
	#    :css => :style
	#  )
	#  #-> <span class="no">1</span>  <span style="color:#036; font-weight:bold;">Some</span> code
	#
	# == Options
	#
	# :tab_width::        Convert \t characters to +n+ spaces (a number.)
	#                     Default: 8
	# :css::              How to include the styles; can be :class or :style.
	#                     Default: :class
	# :wrap::             Wrap in :page, :div, :span or nil.
	#                     Default: :page
	#                     You can also use Encoders::Div and Encoders::Span.
	# :line_numbers::     Include line numbers in :table, :inline or nil (no line numbers)
	#                     Default: nil
	# :line_number_start: Where to start with line number counting.
	#                     Default: 1
	# :bold_every::       Make every +n+-th number appear bold.
	#                     Default: 10
	# :hint::             Include some information into the output using the title attribute.
	#                     Can be :info (show token type on mouse-over) or :debug.
	#                     Default: false
	class HTML < Encoder

		include Streamable
		register_for :html

		FILE_EXTENSION = 'html'

		DEFAULT_OPTIONS = {
			:tab_width => 8,

			:level => :xhtml,
			:css => :class,<commit_msg>encoders/html.rb: Fixed documentation. (woah, RDoc!)<commit_after>module CodeRay
module Encoders

	# = HTML Encoder
	#
	# This is CodeRay's most important highlighter:
	# It provides save, fast XHTML generation and CSS support.
	#
	# == Usage
	#
	#  require 'coderay'
	#  puts CodeRay.scan('Some /code/', :ruby).html  #-> a HTML page
	#  puts CodeRay.scan('Some /code/', :ruby).html(:wrap => :span) #-> <span class="CodeRay"><span class="co">Some</span> /code/</span>
	#  puts CodeRay.scan('Some /code/', :ruby).span  #-> the same
	#  
	#  puts CodeRay.scan('Some code', :ruby).html(
	#    :wrap => nil,
	#    :line_numbers => :inline,
	#    :css => :style
	#  )
	#  #-> <span class="no">1</span>  <span style="color:#036; font-weight:bold;">Some</span> code
	#
	# == Options
	#
	# === :tab_width
	# Convert \t characters to +n+ spaces (a number.)
	# Default: 8
	#
	# === :css
	# How to include the styles; can be :class or :style.
	# 
	# Default: :class
	#
	# === :wrap
	# Wrap in :page, :div, :span or nil.
	# 
	# You can also use Encoders::Div and Encoders::Span.
	# 
	# Default: :page
	# 
	# === :line_numbers
	# Include line numbers in :table, :inline or nil (no line numbers)
	# 
	# Default: nil
	# 
	# === :line_number_start
	# Where to start with line number counting.
	# 
	# Default: 1
	# 
	# === :bold_every
	# Make every +n+-th number appear bold.
	# 
	# Default: 10
	# 
	# === :hint
	# Include some information into the output using the title attribute.
	# Can be :info (show token type on mouse-over) or :debug.
	# 
	# Default: false
	class HTML < Encoder

		include Streamable
		register_for :html

		FILE_EXTENSION = 'html'

		DEFAULT_OPTIONS = {
			:tab_width => 8,

			:level => :xhtml,
			:css => :class,
{'fraction_non_alphanumeric': 0.1508584294962004, 'fraction_numerical': 0.0050661412890515055, 'mean_word_length': 2.561122244488978, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 41, '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': '897810', 'n_tokens_mistral': 1308, 'n_tokens_neox': 1223, 'n_words': 355}