<commit_before>////////////////////////////////////////////////////////////////////////////////
//
//  Fork unstable media GmbH
//  Copyright 2006-2008 Fork unstable media GmbH
//  All Rights Reserved.
//
//  NOTICE: Fork unstable media permits you to use, modify, and distribute this
//  file in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////

package reprise.css.propertyparsers
{
	import reprise.core.reprise;
	import reprise.css.CSSParsingHelper;
	import reprise.css.CSSParsingResult;
	import reprise.css.CSSProperty;
	import reprise.css.CSSPropertyParser;
	import reprise.css.transitions.ColorListTransitionVO;
	import reprise.css.transitions.ColorTransitionVO;
	import reprise.css.transitions.NumericListTransitionVO;
	import reprise.utils.StringUtil; 
	
	use namespace reprise;
	
	public class Background extends CSSPropertyParser
	{
		/***************************************************************************
		*							public properties							   *
		***************************************************************************/
		public static const KNOWN_PROPERTIES : Object =
		{
			background : {parser : parseBackground},
			backgroundImage : {parser : strToURLProperty},
			backgroundColor : {parser : strToColorProperty, transition : ColorTransitionVO},
			backgroundRepeat : {parser : strToStringProperty},
			backgroundPosition : {parser : parseBackgroundPosition},
			backgroundPositionX : {parser : strToIntProperty},
			backgroundPositionY : {parser : strToIntProperty},
			backgroundAttachment : {parser : strToStringProperty},
			backgroundRenderer : {parser : strToStringProperty},
			backgroundBlendMode : {parser : strToStringProperty},
			backgroundGradient : {parser : parseBackgroundGradient},
			backgroundGradientColors : {parser : parseBackgroundGradientColors, transition : ColorListTransitionVO},
			backgroundGradientType : {parser : parseBackgroundGradientType},
			backgroundGradientRatios : {parser : parseBackgroundGradientRatios, transition : NumericListTransitionVO},
			backgroundGradientRotation : {parser : strToIntProperty},
			backgroundScale9 : {parser : parseBackgroundScale9},
			backgroundScale9Type : {parser : parseBackgroundScale9Type},
			backgroundScale9Rect : {parser : parseBackgroundScale9Rect},
			backgroundScale9RectTop : {parser : strToIntProperty},
			backgroundScale9RectRight : {parser : strToIntProperty},
			backgroundScale9RectBottom : {parser : strToIntProperty},
			backgroundScale9RectLeft : {parser : strToIntProperty},
			backgroundImageType : {parser : parseBackgroundImageType},
			backgroundAnimationControl : {parser : parseBackgroundAnimationControl},
			backgroundImagePreload : {parser : parseBackgroundImagePreload},
			backgroundImageAliasing : {parser : parseBackgroundImageAliasing}
		};
		
		public static var TRANSITION_SHORTCUTS : Object	=
		{
			backgroundPosition :
			[
				'backgroundPositionX',
				'backgroundPositionY'
			],
			backgroundScale9Rect :
			[
				'backgroundScale9RectTop',
				'backgroundScale9RectRight',
				'backgroundScale9RectBottom',
				'backgroundScale9RectLeft'
			],
			backgroundGradient : 
			[
				'backgroundGradientColors',
				'backgroundGradientRatios',
				'backgroundGradientRotation'
			]
		};
		
		public static const REPEAT_REPEAT_XY	: String	= 'repeat';	/* default */<commit_msg>- change: Added transition shortcut for background<commit_after>////////////////////////////////////////////////////////////////////////////////
//
//  Fork unstable media GmbH
//  Copyright 2006-2008 Fork unstable media GmbH
//  All Rights Reserved.
//
//  NOTICE: Fork unstable media permits you to use, modify, and distribute this
//  file in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////

package reprise.css.propertyparsers
{
	import reprise.core.reprise;
	import reprise.css.CSSParsingHelper;
	import reprise.css.CSSParsingResult;
	import reprise.css.CSSProperty;
	import reprise.css.CSSPropertyParser;
	import reprise.css.transitions.ColorListTransitionVO;
	import reprise.css.transitions.ColorTransitionVO;
	import reprise.css.transitions.NumericListTransitionVO;
	import reprise.utils.StringUtil; 
	
	use namespace reprise;
	
	public class Background extends CSSPropertyParser
	{
		/***************************************************************************
		*							public properties							   *
		***************************************************************************/
		public static const KNOWN_PROPERTIES : Object =
		{
			background : {parser : parseBackground},
			backgroundImage : {parser : strToURLProperty},
			backgroundColor : {parser : strToColorProperty, transition : ColorTransitionVO},
			backgroundRepeat : {parser : strToStringProperty},
			backgroundPosition : {parser : parseBackgroundPosition},
			backgroundPositionX : {parser : strToIntProperty},
			backgroundPositionY : {parser : strToIntProperty},
			backgroundAttachment : {parser : strToStringProperty},
			backgroundRenderer : {parser : strToStringProperty},
			backgroundBlendMode : {parser : strToStringProperty},
			backgroundGradient : {parser : parseBackgroundGradient},
			backgroundGradientColors : {parser : parseBackgroundGradientColors, transition : ColorListTransitionVO},
			backgroundGradientType : {parser : parseBackgroundGradientType},
			backgroundGradientRatios : {parser : parseBackgroundGradientRatios, transition : NumericListTransitionVO},
			backgroundGradientRotation : {parser : strToIntProperty},
			backgroundScale9 : {parser : parseBackgroundScale9},
			backgroundScale9Type : {parser : parseBackgroundScale9Type},
			backgroundScale9Rect : {parser : parseBackgroundScale9Rect},
			backgroundScale9RectTop : {parser : strToIntProperty},
			backgroundScale9RectRight : {parser : strToIntProperty},
			backgroundScale9RectBottom : {parser : strToIntProperty},
			backgroundScale9RectLeft : {parser : strToIntProperty},
			backgroundImageType : {parser : parseBackgroundImageType},
			backgroundAnimationControl : {parser : parseBackgroundAnimationControl},
			backgroundImagePreload : {parser : parseBackgroundImagePreload},
			backgroundImageAliasing : {parser : parseBackgroundImageAliasing}
		};
		
		public static var TRANSITION_SHORTCUTS : Object	=
		{
			background :
			[
				'backgroundColor',
				'backgroundPositionX',
				'backgroundPositionY'
			],
			backgroundPosition :
			[
				'backgroundPositionX',
				'backgroundPositionY'
			],
			backgroundScale9Rect :
			[
				'backgroundScale9RectTop',
				'backgroundScale9RectRight',
				'backgroundScale9RectBottom',
				'backgroundScale9RectLeft'
			],
			backgroundGradient : 
			[
				'backgroundGradientColors',
				'backgroundGradientRatios',
				'backgroundGradientRotation'
			]
		};
		
		public static const REPEAT_REPEAT_XY	: String	= 'repeat';	/* default */
{'fraction_non_alphanumeric': 0.16355810616929697, 'fraction_numerical': 0.006599713055954089, 'mean_word_length': 3.9721825962910127, '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': '4660656', 'n_tokens_mistral': 2023, 'n_tokens_neox': 1682, 'n_words': 372}