<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace _500
{
    class Program
    {
        static void Main(string[] args)
        {
            WordForm x = new WordForm();
            Console.WriteLine(x.getSequence("AyYyEYye"));
            Console.ReadLine();
        }
    }

    public class WordForm
    {
        public string getSequence(string word)
        {
            string res = "";
            string pattern = @"[AEIOUaeiou]";
            List<int> list = new List<int>();
            Regex r = new Regex(pattern);
            foreach (Match m in r.Matches(word))
                list.Add(m.Index);
            bool x = false;
            for (int i = 0; i < word.Length; i++)
            {
                if (!list.Contains(i))
                {
                    if (res == "")
                        res += "C";
                    else
                    {
                        if (word[i] == 'y' || word[i] == 'Y')
                        {
                            if (list.Contains(i - 1))
                            {
                                if (res[res.Length - 1] != 'C')
                                    res += "C";
                            }
                            else
                            {
                                if (res[res.Length - 1] != 'V' && x == false)
                                {
                                    res += "V";
                                    x = true;
                                    continue;
                                }
                                else
                                    res += "C";
                            }
                        }
                        else
                        {
                            if (res[res.Length - 1] != 'C')
                                res += "C";
                        }
                    }
                }
                else
                {
                    if (res == "")
                        res += "V";
                    else
                    {
                        if (res[res.Length - 1] != 'V')
                            res += "V";
                    }
                }
                x = false;
            }
            return res;
        }
    }
}<commit_msg>new problem added<commit_after>﻿using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using System.Text.RegularExpressions;

namespace _500
{
    class Program
    {
        static void Main(string[] args)
        {
            WordForm x = new WordForm();
            Console.WriteLine(x.getSequence("AyYyEYye"));
            Console.ReadLine();
        }
    }

    public class WordForm
    {
        public string getSequence(string word)
        {
            Regex r = new Regex("[aeiouAEIOUyY]");
            for (int i = 0; i < word.Length; i++)
            {
                if (word[i] == 'Y' || word[i] == 'y')
                {
                    if (i == 0)
                    {
                        if (word[i] == 'Y' || word[i] == 'y')
                        {
                            word = word.Insert(i, "C");
                            word = word.Remove(i + 1, 1);
                        }
                    }
                    else
                    {
                        if (r.IsMatch(word[i - 1].ToString()))
                        {
                            word = word.Insert(i, "C");
                            word = word.Remove(i + 1, 1);
                            i--;
                        }
                    }
                }
            }
            StringBuilder sb = new StringBuilder(" ");
            for (int i = 0; i < word.Length; i++)
            {
                if (r.IsMatch(word[i].ToString()))
                {
                    if (sb[sb.Length - 1] != 'V')
                        sb.Append("V");
                }
                else
                    if (sb[sb.Length - 1] != 'C')
                        sb.Append("C");
            }
            sb = sb.Remove(0, 1);
            return sb.ToString();
        }
    }
}
{'fraction_non_alphanumeric': 0.10949929808142256, 'fraction_numerical': 0.005615348619560131, 'mean_word_length': 0.6673166926677067, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3198170', 'n_tokens_mistral': 1092, 'n_tokens_neox': 1008, 'n_words': 226}