<commit_before>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
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 VoidEngine;

namespace myFirstXNAGame
{
    class Pong : Sprite
    {
        protected bool start = true;

        public Pong(Texture2D tex, Vector2 pos) : base(tex, pos)
        {
            texture = tex;
            position = pos;

            frameSize = new Point(40, 40);
            sheetSize = new Point(1, 1);
            fTime = 16;
        }

        public Pong(Texture2D tex, Vector2 pos, int frameWidth, int frameHeight, int sheetWidth, int sheetHeight, int fps) : base(tex, pos, frameWidth, frameHeight, sheetWidth, sheetHeight, fps)
        {
            texture = tex;
            position = pos;

            frameSize = new Point(frameWidth, frameHeight);
            sheetSize = new Point(sheetWidth, sheetHeight);
            fTime = fps;
        }

        public override void Update(GameTime gameTime, Vector2 left, Vector2 right, Vector2 leftSize, Vector2 rightSize)
        {
            if (start == true)
            {
                position.X += 2;
                start = false;
            }

            if (position.Y <= left.Y && position.Y >= leftSize.Y)
            {
                if (position.X <= left.X + leftSize.X)
                {
                    position.X += 2;
                }
            }
            if (position.Y >= right.Y && position.Y >= rightSize.Y)
            {
                if (position.X <= right.X + rightSize.X)
                {
                    position.X -= 2;
                }
            }

            base.Update(gameTime);
        }

        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            base.Draw(gameTime, spriteBatch);
        }
    }
}
<commit_msg>Update Pong.cs<commit_after>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
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 VoidEngine;

namespace myFirstXNAGame
{
    class Pong : Sprite
    {
        protected bool start = true;

        public Pong(Vector2 position) : base(position)
        {
        }

        public override void Update(GameTime gameTime, Vector2 left, Vector2 right, Vector2 leftSize, Vector2 rightSize)
        {
            if (start == true)
            {
                position.X += 2;
                start = false;
            }

            if (position.Y <= left.Y && position.Y >= leftSize.Y)
            {
                if (position.X <= left.X + leftSize.X)
                {
                    position.X += 2;
                }
            }
            if (position.Y >= right.Y && position.Y >= rightSize.Y)
            {
                if (position.X <= right.X + rightSize.X)
                {
                    position.X -= 2;
                }
            }

            base.Update(gameTime);
        }

        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            base.Draw(gameTime, spriteBatch);
        }
    }
}

{'fraction_non_alphanumeric': 0.09289617486338798, 'fraction_numerical': 0.007377049180327869, 'mean_word_length': 1.4736486486486486, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4136406', 'n_tokens_mistral': 1026, 'n_tokens_neox': 982, 'n_words': 232}