<commit_before>'use strict'

assert = require 'assert'
log = require 'log'
utils = require 'utils'

log = log.scope 'Renderer'

###
Parse 3-digit hex, 6-digit hex, rgb, rgba, hsl, hsla, or named color into RGBA hex.
###
exports.toRGBAHex = do ->
	NAMED_COLORS =
		'': 0x00000000
		transparent: 0x00000000
		black: 0x000000ff
		silver: 0xc0c0c0ff
		gray: 0x808080ff
		white: 0xffffffff
		maroon: 0x800000ff
		red: 0xff0000ff
		purple: 0x800080ff
		fuchsia: 0xff00ffff
		green: 0x008000ff
		lime: 0x00ff00ff
		olive: 0x808000ff
		yellow: 0xffff00ff
		navy: 0x000080ff
		blue: 0x0000ffff
		teal: 0x008080ff
		aqua: 0x00ffffff
		antiquewhite: 0xfaebd7ff
		aquamarine: 0x7fffd4ff
		azure: 0xf0ffffff
		beige: 0xf5f5dcff
		bisque: 0xffe4c4ff
		blanchedalmond: 0xffe4c4ff
		blueviolet: 0x8a2be2ff
		brown: 0xa52a2aff
		burlywood: 0xdeb887ff
		cadetblue: 0x5f9ea0ff
		chartreuse: 0x7fff00ff
		chocolate: 0xd2691eff<commit_msg>Missed 'orange' and 'aliceblue' colors added to the color parser<commit_after>'use strict'

assert = require 'assert'
log = require 'log'
utils = require 'utils'

log = log.scope 'Renderer'

###
Parse 3-digit hex, 6-digit hex, rgb, rgba, hsl, hsla, or named color into RGBA hex.
###
exports.toRGBAHex = do ->
	NAMED_COLORS =
		'': 0x00000000
		transparent: 0x00000000
		black: 0x000000ff
		silver: 0xc0c0c0ff
		gray: 0x808080ff
		white: 0xffffffff
		maroon: 0x800000ff
		red: 0xff0000ff
		purple: 0x800080ff
		fuchsia: 0xff00ffff
		green: 0x008000ff
		lime: 0x00ff00ff
		olive: 0x808000ff
		yellow: 0xffff00ff
		navy: 0x000080ff
		blue: 0x0000ffff
		teal: 0x008080ff
		aqua: 0x00ffffff
		orange: 0xffa500ff
		aliceblue: 0xf0f8ffff
		antiquewhite: 0xfaebd7ff
		aquamarine: 0x7fffd4ff
		azure: 0xf0ffffff
		beige: 0xf5f5dcff
		bisque: 0xffe4c4ff
		blanchedalmond: 0xffe4c4ff
		blueviolet: 0x8a2be2ff
		brown: 0xa52a2aff
		burlywood: 0xdeb887ff
		cadetblue: 0x5f9ea0ff
		chartreuse: 0x7fff00ff
		chocolate: 0xd2691eff
{'fraction_non_alphanumeric': 0.07556935817805382, 'fraction_numerical': 0.15476190476190477, 'mean_word_length': 4.399441340782123, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 6, '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': '5421605', 'n_tokens_mistral': 1142, 'n_tokens_neox': 851, 'n_words': 194}