<commit_before>using System.IO;

using Aspose.Cells;

namespace Aspose.Cells.Examples.Formatting.Excel2007Themes
{
    public class UtilizeThemeColors
    {
        public static void Main(string[] args)
        {
            // The path to the documents directory.
            string dataDir = Aspose.Cells.Examples.Utils.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

            // Create directory if it is not already present.
            bool IsExists = System.IO.Directory.Exists(dataDir);
            if (!IsExists)
                System.IO.Directory.CreateDirectory(dataDir);

            //Instantiate a Workbook.
            Workbook workbook = new Workbook();
            
            //Get cells collection in the first (default) worksheet.
            Cells cells = workbook.Worksheets[0].Cells;
           
            //Get the D3 cell.
            Aspose.Cells.Cell c = cells["D3"];

            //Get the style of the cell.
            Style s = c.GetStyle();
            
            //Set foreground color for the cell from the default theme Accent2 color.
            s.ForegroundThemeColor = new ThemeColor(ThemeColorType.Accent2, 0.5);
           
            //Set the pattern type.
            s.Pattern = BackgroundType.Solid;
            
            //Get the font for the style.
            Aspose.Cells.Font f = s.Font;
            
            //Set the theme color.
            f.ThemeColor = new ThemeColor(ThemeColorType.Accent4, 0.1);

            //Apply style.
            c.SetStyle(s);

            //Put a value.
            c.PutValue("Testing1");

            //Save the excel file.
            workbook.Save(dataDir + "output.out.xlsx");

        }
    }
}<commit_msg>Update UtilizeThemeColors.cs<commit_after>using System.IO;

using Aspose.Cells;

namespace Aspose.Cells.Examples.Formatting.Excel2007Themes
{
    public class UtilizeThemeColors
    {
        public static void Main(string[] args)
        {
            //ExStart:1
            // The path to the documents directory.
            string dataDir = Aspose.Cells.Examples.Utils.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

            // Create directory if it is not already present.
            bool IsExists = System.IO.Directory.Exists(dataDir);
            if (!IsExists)
                System.IO.Directory.CreateDirectory(dataDir);

            //Instantiate a Workbook.
            Workbook workbook = new Workbook();
            
            //Get cells collection in the first (default) worksheet.
            Cells cells = workbook.Worksheets[0].Cells;
           
            //Get the D3 cell.
            Aspose.Cells.Cell c = cells["D3"];

            //Get the style of the cell.
            Style s = c.GetStyle();
            
            //Set foreground color for the cell from the default theme Accent2 color.
            s.ForegroundThemeColor = new ThemeColor(ThemeColorType.Accent2, 0.5);
           
            //Set the pattern type.
            s.Pattern = BackgroundType.Solid;
            
            //Get the font for the style.
            Aspose.Cells.Font f = s.Font;
            
            //Set the theme color.
            f.ThemeColor = new ThemeColor(ThemeColorType.Accent4, 0.1);

            //Apply style.
            c.SetStyle(s);

            //Put a value.
            c.PutValue("Testing1");

            //Save the excel file.
            workbook.Save(dataDir + "output.out.xlsx");
            //ExEnd:1

        }
    }
}
{'fraction_non_alphanumeric': 0.09173017217047699, 'fraction_numerical': 0.009031893875246966, 'mean_word_length': 1.5368647100930566, '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': '6986879', 'n_tokens_mistral': 985, 'n_tokens_neox': 922, 'n_words': 249}