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

namespace Grades
{
    class Program
    {
        static void GiveBookAName(GradeBook book)
        {
            book.Name = "The Grade Book";
        }

        static void IncrementANumber(int number)
        {
            number += 1;

        }
        
        static void Main(string[] args)
        {

            SpeechSynthesizer synth = new SpeechSynthesizer();
            synth.Speak("Referencing an assembly for speech synthesis");

            Immutable();

            PassByValueAndRef();

            ClassesAndTypes();

            Arrays();

        }

        private static void Arrays()
        {

            float[] grades;

            grades = new float[4];//have to pass in a size

            AddGrades(grades);

            foreach(float grade in grades)
            {
                Console.WriteLine("grade:" + grade);
            }<commit_msg>Going over details of methods in C#, params, and console params<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Speech.Synthesis;

namespace Grades
{
    class Program
    {
       
        static void Main(string[] args)
        {

            float floatNum = 34f;
            int intNum = 345;

            WriteAsBytes(intNum);
            WriteAsBytes(floatNum);

            WriteNames("Ben", "John", "Thom");

            SynthesizeSpeech();

            Immutable();

            PassByValueAndRef();

            ClassesAndTypes();

            Arrays();

            WriteAsBytes(2213);

        }

        static void GiveBookAName(GradeBook book)
        {
            book.Name = "The Grade Book";
        }

        static void IncrementANumber(int number)
        {
            number += 1;

        }

        private static void SynthesizeSpeech()
        {
            SpeechSynthesizer synth = new SpeechSynthesizer();
            Console.WriteLine("Speaking now");
            synth.Speak("Referencing an assembly for speech synthesis");
            Console.WriteLine("Completed introductory speech");
        }

        private static void WriteAsBytes(int value)
        {
            byte[] bytes = BitConverter.GetBytes(value);

            WriteByteArray(bytes);
        }

        //Overloaded method with float type
        private static void WriteAsBytes(float value)
        {
            byte[] bytes = BitConverter.GetBytes(value);
            WriteByteArray(bytes);
        }

        private static void WriteByteArray(byte[] bytes)
        {
            WriteBreakingBar();
            foreach (byte b in bytes)
            {
                Console.WriteLine("0x{0:X} {2} {1} ", b, "One", "3ete");
            }
            WriteBreakingBar();
        }

        private static void WriteNames(params string[] names)
        {
            WriteBreakingBar();
            foreach (string name in names)
            {
                Console.WriteLine(name);
            }
            WriteBreakingBar();

        }
        private static void WriteBreakingBar()
        {
            Console.WriteLine("-----------");
        }

        private static void Arrays()
        {

            float[] grades;

            grades = new float[4];//have to pass in a size

            AddGrades(grades);

            foreach(float grade in grades)
            {
                Console.WriteLine("grade:" + grade);
            }
{'fraction_non_alphanumeric': 0.09323684942944614, 'fraction_numerical': 0.005009741163373225, 'mean_word_length': 1.5363443895553988, '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': '2862900', 'n_tokens_mistral': 952, 'n_tokens_neox': 882, 'n_words': 230}