<commit_before>﻿namespace EthSharp.Vm.Core
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public class Integer256
    {
        public static Integer256 Zero = new Integer256();
        public static Integer256 One = new Integer256(1);
        public static Integer256 Two = new Integer256(2);
        public static Integer256 Three = new Integer256(3);

        internal const int Size = 8;
        private uint[] values;

        public static Integer256 FromBytes(byte[] bytes)
        {
            return FromBytes(bytes, 0, bytes.Length);
        }

        public static Integer256 FromBytes(byte[] bytes, int boffset, int lbytes)
        {
            uint[] values = new uint[Size];

            for (int k = 0; k < lbytes; k++)
            {
                byte val = bytes[boffset + lbytes - k - 1];
                int offset = k % 4;
                int position = k / 4;
                values[position] |= ((uint)val) << (offset * 8);
            }

            return new Integer256(values);
        }

        public Integer256()
        {
            this.values = new uint[Size];
        }

        public Integer256(uint value)
        {
            this.values = new uint[Size];
            this.values[0] = value;<commit_msg>Refactor Integer256 static constants as properties<commit_after>﻿namespace EthSharp.Vm.Core
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public class Integer256
    {
        private static Integer256 zero = new Integer256();
        private static Integer256 one = new Integer256(1);
        private static Integer256 two = new Integer256(2);
        private static Integer256 three = new Integer256(3);

        internal const int Size = 8;
        private uint[] values;

        public static Integer256 Zero { get { return zero; } }

        public static Integer256 One { get { return one; } }

        public static Integer256 Two { get { return two; } }

        public static Integer256 Three { get { return three; } }

        public static Integer256 FromBytes(byte[] bytes)
        {
            return FromBytes(bytes, 0, bytes.Length);
        }

        public static Integer256 FromBytes(byte[] bytes, int boffset, int lbytes)
        {
            uint[] values = new uint[Size];

            for (int k = 0; k < lbytes; k++)
            {
                byte val = bytes[boffset + lbytes - k - 1];
                int offset = k % 4;
                int position = k / 4;
                values[position] |= ((uint)val) << (offset * 8);
            }

            return new Integer256(values);
        }

        public Integer256()
        {
            this.values = new uint[Size];
        }

        public Integer256(uint value)
        {
            this.values = new uint[Size];
            this.values[0] = value;
{'fraction_non_alphanumeric': 0.09262435677530018, 'fraction_numerical': 0.04150943396226415, 'mean_word_length': 1.7201492537313432, 'pattern_counts': {'":': 0, '<': 9, '<?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': '4420462', 'n_tokens_mistral': 856, 'n_tokens_neox': 748, 'n_words': 248}