<commit_before>using System.IO;

using Aspose.Cells;

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

            //Creating a file stream containing the Excel file to be opened
            FileStream fstream = new FileStream(dataDir + "book1.xls", FileMode.Open);

            //Instantiating a Workbook object
            //Opening the Excel file through the file stream
            Workbook workbook = new Workbook(fstream);

            //Accessing the first worksheet in the Excel file
            Worksheet worksheet = workbook.Worksheets[0];

            //Grouping first six rows (from 0 to 5) and making them hidden by passing true
            worksheet.Cells.GroupRows(0, 5, true);

            //Grouping first three columns (from 0 to 2) and making them hidden by passing true
            worksheet.Cells.GroupColumns(0, 2, true);

            //Saving the modified Excel file
            workbook.Save(dataDir + "output.out.xls");

            //Closing the file stream to free all resources
            fstream.Close();

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

using Aspose.Cells;

namespace Aspose.Cells.Examples.RowsColumns.Grouping
{
    public class GroupingRowsAndColumns
    {
        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);

            //Creating a file stream containing the Excel file to be opened
            FileStream fstream = new FileStream(dataDir + "book1.xls", FileMode.Open);

            //Instantiating a Workbook object
            //Opening the Excel file through the file stream
            Workbook workbook = new Workbook(fstream);

            //Accessing the first worksheet in the Excel file
            Worksheet worksheet = workbook.Worksheets[0];

            //Grouping first six rows (from 0 to 5) and making them hidden by passing true
            worksheet.Cells.GroupRows(0, 5, true);

            //Grouping first three columns (from 0 to 2) and making them hidden by passing true
            worksheet.Cells.GroupColumns(0, 2, true);

            //Saving the modified Excel file
            workbook.Save(dataDir + "output.out.xls");

            //Closing the file stream to free all resources
            fstream.Close();
            //ExEnd:1

            
        }
    }
}
{'fraction_non_alphanumeric': 0.07653969384122464, 'fraction_numerical': 0.007831968672125312, 'mean_word_length': 2.0913091309130913, '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': '3314213', 'n_tokens_mistral': 768, 'n_tokens_neox': 704, 'n_words': 241}