<commit_before>/*
	This file is the meat & potatoes of this site - as it were.
	The intention is for this file to be 100% open source which means that
	adding tests and sending pull requests is absolutely encouraged!

	Having said that, there are a few rules:

	1. Commas at the beginning of the translation. This is to make it easier to
		add new translations as we go along without worry of missing a comma.
	2. Make sure that any translations reflect the following syntax:
		{
			name:'', // Essentially: what this translation matches for in plain old English.
			in:'',   // The regex that determines whether what the user has input has a matching translation.
			out:''   // The regex that the user was after.
		}

	NOTE: There's no need to include any negations. To save duplicating too much stuff below, the negation works
			by checking if the user typed 'no'/'not' before any part of the query and stripping that out. If the
			regex returned by any of the individual translations below is within a range (ie: '[...]'), then `^`
			will automatically be prepended inside.
 */
define({
	list:[
		 {
			name:'anything',
			in:'anything',
			out:'.*'
		 }
		,{
			name:'start of the line',
			in:'(from the )?(start|beginning) of (the )?line',
			out:'^'
		 }
		,{
			name:'end of the line',
			in:'(to the )?end of (the )?line',
			out:'$'
		 }
		,{
			name:'new line',
			in:'(new( |\-)?line|enter)',
			out:'(\\r)?\\n'
		 }
		,{
			name:'non white space',
			in:'no(n|t)? white ?space',
			out:'\\S'
		 }
		,{
			name:'white space',
			in:'white ?space',
			out:'\\s'
		 }
		,{
			name:'a tab',
			in:'(a |a single |1 )?tab( key| character)?',
			out:'\\t'
		}
		,{
			name:'tabs',
			in:'((one|1) or more )?tabs',
			out:'\\t+'
		}
		,{
			name:'? tabs',
			in:'([0-9]+) tabs',
			out:'\\t{$1}'
		}
		,{
			name:'word boundary',
			in:'(a )?word boundary?',
			out:'\\b'
		}
		,{
			name:'non word boundary',
			in:'(a )?non(-| )?word boundary',
			out:'\\B'
		}
		,{
			name:'a number',
			in:'(a |a single |one |1 )?number',
			out:'[0-9]'
		 }
		,{
			name:'numbers',
			in:'((one|1) or more)? numbers',
			out:'[0-9]+'
		 }
		,{
			name:'any amount of numbers',
			in:'any( number of| amount of)? numbers',
			out:'[0-9]+'
		 }
		,{
			name:'? numbers',
			in:'([0-9]+) numbers?',
			out:'[0-9]{$1}'
		 }
		,{
			name:'? or more numbers',
			in:'([2-9]|[1-9][0-9]+) or more numbers?',
			out:'[0-9]{$1,}'
		 }
		,{<commit_msg>Fix 'numbers' translation to actually work with just putting in 'numbers'.<commit_after>/*
	This file is the meat & potatoes of this site - as it were.
	The intention is for this file to be 100% open source which means that
	adding tests and sending pull requests is absolutely encouraged!

	Having said that, there are a few rules:

	1. Commas at the beginning of the translation. This is to make it easier to
		add new translations as we go along without worry of missing a comma.
	2. Make sure that any translations reflect the following syntax:
		{
			name:'', // Essentially: what this translation matches for in plain old English.
			in:'',   // The regex that determines whether what the user has input has a matching translation.
			out:''   // The regex that the user was after.
		}

	NOTE: There's no need to include any negations. To save duplicating too much stuff below, the negation works
			by checking if the user typed 'no'/'not' before any part of the query and stripping that out. If the
			regex returned by any of the individual translations below is within a range (ie: '[...]'), then `^`
			will automatically be prepended inside.
 */
define({
	list:[
		 {
			name:'anything',
			in:'anything',
			out:'.*'
		 }
		,{
			name:'start of the line',
			in:'(from the )?(start|beginning) of (the )?line',
			out:'^'
		 }
		,{
			name:'end of the line',
			in:'(to the )?end of (the )?line',
			out:'$'
		 }
		,{
			name:'new line',
			in:'(new( |\-)?line|enter)',
			out:'(\\r)?\\n'
		 }
		,{
			name:'non white space',
			in:'no(n|t)? white ?space',
			out:'\\S'
		 }
		,{
			name:'white space',
			in:'white ?space',
			out:'\\s'
		 }
		,{
			name:'a tab',
			in:'(a |a single |1 )?tab( key| character)?',
			out:'\\t'
		}
		,{
			name:'tabs',
			in:'((one|1) or more )?tabs',
			out:'\\t+'
		}
		,{
			name:'? tabs',
			in:'([0-9]+) tabs',
			out:'\\t{$1}'
		}
		,{
			name:'word boundary',
			in:'(a )?word boundary?',
			out:'\\b'
		}
		,{
			name:'non word boundary',
			in:'(a )?non(-| )?word boundary',
			out:'\\B'
		}
		,{
			name:'a number',
			in:'(a |a single |one |1 )?number',
			out:'[0-9]'
		 }
		,{
			name:'numbers',
			in:'((one|1) or more )?numbers',
			out:'[0-9]+'
		 }
		,{
			name:'any amount of numbers',
			in:'any( number of| amount of)? numbers',
			out:'[0-9]+'
		 }
		,{
			name:'? numbers',
			in:'([0-9]+) numbers?',
			out:'[0-9]{$1}'
		 }
		,{
			name:'? or more numbers',
			in:'([2-9]|[1-9][0-9]+) or more numbers?',
			out:'[0-9]{$1,}'
		 }
		,{
{'fraction_non_alphanumeric': 0.18397085610200364, 'fraction_numerical': 0.012952843553936451, 'mean_word_length': 2.75531914893617, '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': '203003', 'n_tokens_mistral': 2119, 'n_tokens_neox': 1725, 'n_words': 594}