<commit_before>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace CodeForm1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        //this is acutally the submit button (rip what it's actually called)
        private void button1_Click(object sender, EventArgs e)
        {
            //if the length of the text is zero
            if (codeInputBox.Text == string.Empty)
            {
                //print an error message in that text box
                codeInputBox.Text = "Error: Please enter some text.";
            }

            //this.Close();
        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {

        }

        private void progressBar_Click(object sender, EventArgs e)
        {

        }

        // This will clear all input in the Code Input Box
        private void clearButton_Click(object sender, EventArgs e)
        {
            //clear the code input box
            codeInputBox.Clear();
        }

        // This will allow the user to edit the text that is currently in the form 
        private void codeInputBox_TextChanged(object sender, EventArgs e)
        {
            //Have the using be able to chnage the KeyBoard Input
            codeInputBox.Text = "// Get the current keyboard state \n KeyboardState kbState = Keyboard.GetState(); \n //Never do this: \n KeyboardState kbState = new KeyboardState(); \n //Statement will be blank! \n //Check for the Right Key \n If(kbState.IsKeyDown(Keys.Right)) \n // Move the player right \n } \n } \n //Check for the Left Key \n If(kbState.IsKeyDown(Keys.Left)) \n { \n // Move the player left \n } ";
            
            //codeInputBox.Text = " I will teach you to code maybe";
            
            //saves input to a string
            string codeInput = codeInputBox.ToString();
        }

        //Give Some Instructions to the user
        private void promptView_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        //Give Some Instructions to the user
        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            promptTextBox.Text = "KEYBOARD (Right/Left) \n Check for left/right keyboard input. \n Get the current keyboard state: \n Use  KeyboardState kbState = Keyboard.GetState()";
        }
    }
}<commit_msg>Added proper line break in the instructions and code input block.<commit_after>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace CodeForm1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        //this is acutally the submit button (rip what it's actually called)
        private void button1_Click(object sender, EventArgs e)
        {
            //if the length of the text is zero
            if (codeInputBox.Text == string.Empty)
            {
                //print an error message in that text box
                codeInputBox.Text = "Error: Please enter some text.";
            }

            //this.Close();
        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {

        }

        private void progressBar_Click(object sender, EventArgs e)
        {

        }

        // This will clear all input in the Code Input Box
        private void clearButton_Click(object sender, EventArgs e)
        {
            //clear the code input box
            codeInputBox.Clear();
        }

        // This will allow the user to edit the text that is currently in the form 
        private void codeInputBox_TextChanged(object sender, EventArgs e)
        {
            //Have the using be able to chnage the KeyBoard Input
            codeInputBox.Text = "// Get the current keyboard state" + Environment.NewLine + "KeyboardState kbState = Keyboard.GetState();" + Environment.NewLine + " //Never do this: " + Environment.NewLine + " KeyboardState kbState = new KeyboardState(); " + Environment.NewLine + " //Statement will be blank! " + Environment.NewLine + " //Check for the Right Key " + Environment.NewLine + " If(kbState.IsKeyDown(Keys.Right)) " + Environment.NewLine + " { " + Environment.NewLine + " // Move the player right " + Environment.NewLine + "} " + Environment.NewLine + " //Check for the Left Key " + Environment.NewLine + " If(kbState.IsKeyDown(Keys.Left)) " + Environment.NewLine + " { " + Environment.NewLine + " // Move the player left " + Environment.NewLine + " } ";
            
            //codeInputBox.Text = " I will teach you to code maybe";
            
            //saves input to a string
            string codeInput = codeInputBox.ToString();
        }

        //Give Some Instructions to the user
        private void promptView_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        //Give Some Instructions to the user
        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            promptTextBox.Text = "KEYBOARD (Right/Left) " + Environment.NewLine + " Check for left/right keyboard input. " + Environment.NewLine + " Get the current keyboard state: " + Environment.NewLine + " Use  KeyboardState kbState = Keyboard.GetState()";
        }
    }
}
{'fraction_non_alphanumeric': 0.08570443179858596, 'fraction_numerical': 0.002414209346439041, 'mean_word_length': 2.1082529474812435, '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': '338954', 'n_tokens_mistral': 1526, 'n_tokens_neox': 1489, 'n_words': 522}