<commit_before>﻿using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using PhotoStoryToBloomConverter.Utilities;

namespace PhotoStoryToBloomConverter
{
	public enum SpAppMetadataGraphic
	{
		[Description("gray-background")]
		GrayBackground,
		[Description("front-cover-graphic")]
		FrontCoverGraphic
	}

	public class SpAppMetadata
	{
		public SpAppMetadataGraphic Graphic { get; set; }
		public string ScriptureReference { get; set; }
		public string TitleIdeasHeading { get; set; }
		public List<string> TitleIdeas { get; }

		private const string kIntro = "Video Title Slide Content";

		public SpAppMetadata(string scriptureReference, string titleIdeasHeading, List<string> titleIdeas)
		{
			ScriptureReference = scriptureReference;
			TitleIdeasHeading = titleIdeasHeading;
			TitleIdeas = titleIdeas;
		}

		public string EnsureOneLine(string possibleMultiLine)
		{
			return string.Join("; ", possibleMultiLine.Split('\n'));
		}

		public override string ToString()
		{
			var sb = new StringBuilder($"{kIntro}\n" +
				$"Graphic={Graphic.ToDescriptionString()}\n" +
				$"ScriptureReference ={EnsureOneLine(ScriptureReference) }\n" + 
				$"TitleIdeasHeading ={TitleIdeasHeading}"
			);
			for (int i = 0; i < TitleIdeas.Count; i++)
				sb.Append($"\nTitleIdea{i + 1}={TitleIdeas[i]}");
			return sb.ToString();
		}
	}
}
<commit_msg>Modify translation instructions page per request<commit_after>﻿using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using PhotoStoryToBloomConverter.Utilities;

namespace PhotoStoryToBloomConverter
{
	public enum SpAppMetadataGraphic
	{
		[Description("gray-background")]
		GrayBackground,
		[Description("front-cover-graphic")]
		FrontCoverGraphic
	}

	public class SpAppMetadata
	{
		public SpAppMetadataGraphic Graphic { get; set; }
		public string ScriptureReference { get; set; }
		public string TitleIdeasHeading { get; set; }
		public List<string> TitleIdeas { get; }

		private const string kIntro = "CONTENT FOR THE TITLE SLIDE (slide #0) in SP APP";
		private const string kInstructions = @"INSTRUCTIONS:
After ""Graphic="" type either ""gray-background"" or ""front-cover-picture"" in English to indicate your choice for the title slide image.
After ""ScriptureReference="" type a Scripture reference or a subtitle for your story in the LWC.
After ""TitleIdeasHeading="" type something like ""Ideas for the story title:"" in the LWC.
After ""TitleIdea1="" type a sample title in the LWC. (Always complete this line providing a title example.)
After ""TitleIdea2="" type another sample title in the LWC. (Or leave this line blank.)
After ""TitleIdea3="" type another sample title in the LWC. (Or leave this line blank.)";

		public SpAppMetadata(string scriptureReference, string titleIdeasHeading, List<string> titleIdeas)
		{
			ScriptureReference = scriptureReference;
			TitleIdeasHeading = titleIdeasHeading;
			TitleIdeas = titleIdeas;
		}

		public string EnsureOneLine(string possibleMultiLine)
		{
			return string.Join("; ", possibleMultiLine.Split('\n'));
		}

		public override string ToString()
		{
			var sb = new StringBuilder($"{kIntro}\n\n" +
				$"Graphic={Graphic.ToDescriptionString()}\n" +
				$"ScriptureReference ={EnsureOneLine(ScriptureReference) }\n" + 
				$"TitleIdeasHeading ={TitleIdeasHeading}"
			);
			for (int i = 0; i < TitleIdeas.Count; i++)
				sb.Append($"\nTitleIdea{i + 1}={TitleIdeas[i]}");
			sb.Append("\n\n");
			sb.Append(kInstructions);
			return sb.ToString();
		}
	}
}

{'fraction_non_alphanumeric': 0.11362992349107395, 'fraction_numerical': 0.002266931141966563, 'mean_word_length': 4.863787375415282, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '3006314', 'n_tokens_mistral': 1232, 'n_tokens_neox': 1083, 'n_words': 293}