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

//additional using statements
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
//using System.IO;

namespace CharacterCustomizer
{
    class Die
    {
        List<Texture2D> rolls;
        Texture2D currRoll;
        Texture2D rollButton;
        Vector2 dieLoc;
        Rectangle rollButtonLoc;
        Random roller = new Random();

        public Die(int x, int y, ContentManager content)
        {
            rolls = new List<Texture2D>();
            for (int i = 1; i < 7; i++)
                rolls.Add(content.Load<Texture2D>("Buttons/Die/" + i));
            currRoll = rolls[0];
            rollButton = content.Load<Texture2D>("Buttons/Die/Roll");

            dieLoc = new Vector2(x, y);
            rollButtonLoc = new Rectangle(x, y + 20, rollButton.Width, rollButton.Height);
        }

        /// <summary>
        /// Uses the roller to simulate a dice roll, updates the current roll accordingly
        /// </summary>
        public void Roll()
        {
            int roll = roller.Next(1, 7);
            currRoll = rolls[roll];
        }

        public void ButtonClick(int mouseX, int mouseY)
        {
            if (rollButtonLoc.Contains(mouseX, mouseY))<commit_msg>Fixed Roll command in Die.cs for CharacterCustomizer<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

//additional using statements
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
//using System.IO;

namespace CharacterCustomizer
{
    class Die
    {
        List<Texture2D> rolls;
        Texture2D currRoll;
        Texture2D rollButton;
        Vector2 dieLoc;
        Rectangle rollButtonLoc;
        Random roller = new Random();

        public Die(int x, int y, ContentManager content)
        {
            rolls = new List<Texture2D>();
            for (int i = 1; i < 7; i++)
                rolls.Add(content.Load<Texture2D>("Buttons/Die/" + i));
            currRoll = rolls[0];
            rollButton = content.Load<Texture2D>("Buttons/Die/Roll");

            dieLoc = new Vector2(x, y);
            rollButtonLoc = new Rectangle(x, y + 20, rollButton.Width, rollButton.Height);
        }

        /// <summary>
        /// Uses the roller to simulate a dice roll, updates the current roll accordingly
        /// </summary>
        public void Roll()
        {
            int roll = roller.Next(1, 6);
            currRoll = rolls[roll];
        }

        public void ButtonClick(int mouseX, int mouseY)
        {
            if (rollButtonLoc.Contains(mouseX, mouseY))
{'fraction_non_alphanumeric': 0.10504065040650407, 'fraction_numerical': 0.00975609756097561, 'mean_word_length': 2.336225596529284, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, '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': '6531959', 'n_tokens_mistral': 883, 'n_tokens_neox': 864, 'n_words': 229}