<commit_before>namespace Cxxi
{
    /// <summary>
    /// Represents a a C/C++ record field Decl.
    /// </summary>
    public class Field : Declaration, ITypedDecl
    {
        public Type Type { get { return QualifiedType.Type; } }
        public QualifiedType QualifiedType { get; set; }

        public AccessSpecifier Access { get; set; }
        public uint Offset { get; set; }
        public Class Class { get; set; }

        public Field()
        {
            Offset = 0;
        }

        public Field(string name, QualifiedType type, AccessSpecifier access)
        {
            Name = name;
            QualifiedType = type;
            Access = access;
            Offset = 0;
        }

        public override T Visit<T>(IDeclVisitor<T> visitor)
        {
            return visitor.VisitFieldDecl(this);
        }
    }
}<commit_msg>Added helper property to get the field offset in bytes.<commit_after>namespace Cxxi
{
    /// <summary>
    /// Represents a a C/C++ record field Decl.
    /// </summary>
    public class Field : Declaration, ITypedDecl
    {
        public Type Type { get { return QualifiedType.Type; } }
        public QualifiedType QualifiedType { get; set; }

        public AccessSpecifier Access { get; set; }
        public uint Offset { get; set; }
        public Class Class { get; set; }

        public uint OffsetInBytes
        {
            get { return Offset / (sizeof (byte) * 8); }
        }

        public Field()
        {
            Offset = 0;
        }

        public Field(string name, QualifiedType type, AccessSpecifier access)
        {
            Name = name;
            QualifiedType = type;
            Access = access;
            Offset = 0;
        }

        public override T Visit<T>(IDeclVisitor<T> visitor)
        {
            return visitor.VisitFieldDecl(this);
        }
    }
}
{'fraction_non_alphanumeric': 0.0932475884244373, 'fraction_numerical': 0.0026795284030010718, 'mean_word_length': 1.622191011235955, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3995002', 'n_tokens_mistral': 525, 'n_tokens_neox': 493, 'n_words': 154}