<commit_before>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Bloom;
using Bloom.Book;
using Bloom.Collection;
using Palaso.IO;

namespace MakeCollection
{
	class Program
	{
		static void Main(string[] args)
		{
			var root = @"c:\dev\temp\uganda";
			if(Directory.Exists(root))
				Directory.Delete(root,true);

			Directory.CreateDirectory(root);



			MakeCollection(root,  "Acholi", "ach");
		}

		private static void MakeCollection(string root, string language, string language1Iso639Code)
		{

			var spec = new NewCollectionSettings()
				{
					PathToSettingsFile = CollectionSettings.GetPathForNewSettings(root, language + " P1 Primer"),
					AllowNewBooks = false,
					Country = "Uganda",
					DefaultLanguage1FontName = language,
					Language1Iso639Code = language1Iso639Code,
					IsSourceCollection = false,
					Language2Iso639Code = "en"
				};

			var collectionSettings = new CollectionSettings(spec);

			var folio = MakeBook(collectionSettings, @"C:\dev\Bloom Custom Template Work\UgandaSHARP\UgandaSHARP-P1PrimerFolio");

			for (int term = 1; term < 4; term++)
			{
				var termIntro = MakeBook(collectionSettings, @"C:\dev\Bloom Custom Template Work\UgandaSHARP\UgandaSHARP-P1PrimerTermIntro");
				termIntro.SetDataItem("term", term.ToString(), "en");
				termIntro.Save();

				for (int week = 1; week < 12 ; week++)<commit_msg>Update language names for SHRP project prefabricator<commit_after>﻿using System.Collections.Generic;
using System.IO;
using Bloom;
using Bloom.Book;
using Bloom.Collection;
using Palaso.IO;

namespace MakeCollection
{
	class Program
	{
		static void Main(string[] args)
		{
			var root = @"c:\dev\temp\uganda";
			if(Directory.Exists(root))
				Directory.Delete(root,true);

			Directory.CreateDirectory(root);



			MakeCollection(root,  "Acoli", "ach");
			MakeCollection(root, "Lugbarati", "lgg");
			MakeCollection(root, "Lumasaaba", "myx");
			MakeCollection(root, "Runyoro-Runtooro", "ttj");
		}

		private static void MakeCollection(string root, string language, string language1Iso639Code)
		{

			var spec = new NewCollectionSettings()
				{
					PathToSettingsFile = CollectionSettings.GetPathForNewSettings(root, language + " P1 Primer"),
					AllowNewBooks = false,
					Country = "Uganda",
					DefaultLanguage1FontName = language,
					Language1Iso639Code = language1Iso639Code,
					IsSourceCollection = false,
					Language2Iso639Code = "en"
				};

			var collectionSettings = new CollectionSettings(spec);

			var folio = MakeBook(collectionSettings, @"C:\dev\Bloom Custom Template Work\UgandaSHARP\UgandaSHARP-P1PrimerFolio");

			for (int term = 1; term < 4; term++)
			{
				var termIntro = MakeBook(collectionSettings, @"C:\dev\Bloom Custom Template Work\UgandaSHARP\UgandaSHARP-P1PrimerTermIntro");
				termIntro.SetDataItem("term", term.ToString(), "en");
				termIntro.Save();

				for (int week = 2; week < 12 ; week++)
{'fraction_non_alphanumeric': 0.11697860962566844, 'fraction_numerical': 0.016711229946524065, 'mean_word_length': 4.3446428571428575, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5874494', 'n_tokens_mistral': 1151, 'n_tokens_neox': 938, 'n_words': 212}