<commit_before>﻿using BefunGen.AST.CodeGen.NumberCode;
using BefunGen.MathExtensions;
using System;

namespace BefunGen.AST.CodeGen
{
	public static class CodePieceStore
	{
		#region ReadArrayToStack

		public static CodePiece ReadArrayToStack(VarDeclaration_Array v, bool reversed)<commit_msg>Added List of elements in CodePieceStore<commit_after>﻿using BefunGen.AST.CodeGen.NumberCode;
using BefunGen.MathExtensions;
using System;

namespace BefunGen.AST.CodeGen
{
	public class CodePieceStoreElement
	{
		public string Name;
		public Func<CodePiece> Function;
		public CodePieceStoreElement(string n, Func<CodePiece> f)
		{
			Name = n;
			Function = f;
		}
	}

	public static class CodePieceStore
	{
		#region Store



		public static CodePieceStoreElement[] CODEPIECES = new[]
		{
			new CodePieceStoreElement("ReadArrayToStack", () => ReadArrayToStack(8, 0, 0, false)),
			new CodePieceStoreElement("WriteArrayFromStack", () => ReadArrayToStack(8, 0, 0, false)),
			new CodePieceStoreElement("WriteArrayFromReversedStack", () => WriteArrayFromReversedStack(8, 0, 0, false)),
			new CodePieceStoreElement("VerticalLaneTurnout_Test", () => VerticalLaneTurnout_Test()),
			new CodePieceStoreElement("VerticalLaneTurnout_Dec", () => VerticalLaneTurnout_Dec(false)),
			new CodePieceStoreElement("BooleanStackFlooder", () => BooleanStackFlooder()),
			new CodePieceStoreElement("PopMultipleStackValues", () => PopMultipleStackValues(8, false)),
			new CodePieceStoreElement("ReadValueFromField", () => ReadValueFromField(new MathExt.Point(0, 0), false)),
			new CodePieceStoreElement("WriteValueToField", () => WriteValueToField(new MathExt.Point(0, 0), false)),
			new CodePieceStoreElement("ModuloRangeLimiter", () => ModuloRangeLimiter(8, false)),
			new CodePieceStoreElement("RandomDigitGenerator", () => RandomDigitGenerator(CodePiece.ParseFromLine("8"), false)),
			new CodePieceStoreElement("Base4DigitJoiner", () => Base4DigitJoiner(false)),
			new CodePieceStoreElement("SwitchStatementTester", () => SwitchStatementTester(false)),
			new CodePieceStoreElement("SwitchLaneTurnout", () => SwitchLaneTurnout()),
		};

		#endregion

		#region ReadArrayToStack

		public static CodePiece ReadArrayToStack(VarDeclaration_Array v, bool reversed)
{'fraction_non_alphanumeric': 0.11555555555555555, 'fraction_numerical': 0.008, 'mean_word_length': 7.01067615658363, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '5498441', 'n_tokens_mistral': 760, 'n_tokens_neox': 691, 'n_words': 132}