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

using System.Drawing;

namespace Example2DTileGame
{
    public class SpriteSheet
    {
        int gridWidth,gridHeight;

        public SpriteSheet(int numTilesWide,int numTilesHigh) {
            this.gridWidth = numTilesWide;
            this.gridHeight = numTilesHigh;
        }

        public RectangleF getTileBounds(int tileID) {

            // My UV coordinates
            float GLX = tileID / gridWidth; 
            float GLY = tileID / gridHeight;

            float boundW = GLX * 2;
            float boundH = GLY * 2;

            RectangleF bounds = new RectangleF(GLX, GLY, boundW, boundH);

            return bounds;
        }

    }
}<commit_msg>Seems right... but something is wrong.<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using System.Drawing;

namespace Example2DTileGame
{
    public class SpriteSheet
    {
        float tileWidth, tileHeight;

        public SpriteSheet(int numPixelsWide,int numPixelsHigh) {
            this.tileWidth = numPixelsWide;
            this.tileHeight = numPixelsHigh;
        }

        public RectangleF getTileBounds(int tileID) {

            // My UV coordinates
            float GLX = tileID / tileWidth; // Percentage of the width
            float GLY = tileID / tileHeight; // Percentage of the height

            float boundX = GLX * 2; // Move 'box' over to other tiles based on ID...
            float boundY = GLY * 2;
            float boxW = 1f / tileWidth; // 100% / width
            float boxH = 1f / tileHeight; // 100% / height

            PointF xyLocation = new PointF (boundX, boundY);
            SizeF boxSize = new SizeF(boxW, boxH);

            RectangleF bounds = new RectangleF(xyLocation, boxSize);

            return bounds;
        }

    }
}
{'fraction_non_alphanumeric': 0.07997962302598065, 'fraction_numerical': 0.007131940906775344, 'mean_word_length': 2.026194144838213, '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': '2208190', 'n_tokens_mistral': 584, 'n_tokens_neox': 554, 'n_words': 162}