<commit_before>using System;
using System.Collections.Generic;
using System.Text;
using OpenSim.Terrain.BasicTerrain;

namespace OpenSim.Terrain
{
    public class TerrainEngine
    {
        public float[,] map;
        public float[,] water;
        int w, h;

        public TerrainEngine()
        {
            w = 256;
            h = 256;
            map = new float[w, h];
            water = new float[w, h];

        }

        public float[] getHeights1D()
        {
            float[] heights = new float[w*h];
            int i;
            for(i=0;i<w*h;i++) {
                heights[i] = (int)(i / w) + (i % w);
            }
            return heights;
        }

        /// <summary>
        /// Swaps the references between the height and water buffers to allow you to edit the water heightmap. Remember to swap back when you are done.
        /// </summary>
        public void swapWaterBuffer()
        {
            float[,] temp = map;<commit_msg>I am a freaking idiot.<commit_after>using System;
using System.Collections.Generic;
using System.Text;
using OpenSim.Terrain.BasicTerrain;

namespace OpenSim.Terrain
{
    public class TerrainEngine
    {
        public float[,] map;
        public float[,] water;
        int w, h;

        public TerrainEngine()
        {
            w = 256;
            h = 256;
            map = new float[w, h];
            water = new float[w, h];

        }

        public float[] getHeights1D()
        {
            float[] heights = new float[w*h];
            int i;
            for(i=0;i<w*h;i++) {
                heights[i] = map[i / w, i % w];
            }
            return heights;
        }

        /// <summary>
        /// Swaps the references between the height and water buffers to allow you to edit the water heightmap. Remember to swap back when you are done.
        /// </summary>
        public void swapWaterBuffer()
        {
            float[,] temp = map;
{'fraction_non_alphanumeric': 0.10728952772073921, 'fraction_numerical': 0.008213552361396304, 'mean_word_length': 1.5019255455712452, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '1075332', 'n_tokens_mistral': 585, 'n_tokens_neox': 545, 'n_words': 175}