<commit_before>// ReSharper disable NonReadonlyMemberInGetHashCode // todo: Fix this real issue
namespace Mapsui.Styles
{
    public class Pen
    {
        public Pen() {}

        public Pen(Color color, double width = 1)
        {
            Color = color;
            Width = width;
        }

        public double Width { get; set; } = 1;
        public Color Color { get; set; }

        public PenStyle PenStyle { get; set; } = PenStyle.Solid;

        public PenStrokeCap PenStrokeCap { get; set; } = PenStrokeCap.Butt;

        public PenStrokeJoin PenStrokeJoin { get; set; } = PenStrokeJoin.Miter;

        public float PenStrokeMiterLimit { get; set; } = 4f;

        public override bool Equals(object obj)
        {
            if (!(obj is Pen))
            {
                return false;
            }
            return Equals((Pen)obj);
        }

        public bool Equals(Pen pen)
        {
            // ReSharper disable once CompareOfFloatsByEqualityOperator
            if (Width != pen.Width) return false;
            
            //if one or the other is null then they are not equal, but not when they are both null
            if ((Color == null) ^ (pen.Color == null)) return false;

            if (Color != null && !Color.Equals(pen.Color)) return false;

            if (PenStyle != pen.PenStyle) return false;

            if (PenStrokeCap != pen.PenStrokeCap) return false;

            if (PenStrokeJoin != pen.PenStrokeJoin) return false;

            return true;
        }

        public override int GetHashCode()
        {
            return Width.GetHashCode() ^ (Color == null ? 0 : Color.GetHashCode());
        }

        public static bool operator ==(Pen pen1, Pen pen2)
        {
            return Equals(pen1, pen2);
        }

        public static bool operator !=(Pen pen1, Pen pen2)
        {
            return !Equals(pen1, pen2);
        }
    }
}
<commit_msg>Changed default for MiterLimit to Wpf value<commit_after>// ReSharper disable NonReadonlyMemberInGetHashCode // todo: Fix this real issue
namespace Mapsui.Styles
{
    public class Pen
    {
        public Pen() {}

        public Pen(Color color, double width = 1)
        {
            Color = color;
            Width = width;
        }

        public double Width { get; set; } = 1;
        public Color Color { get; set; }

        public PenStyle PenStyle { get; set; } = PenStyle.Solid;

        public PenStrokeCap PenStrokeCap { get; set; } = PenStrokeCap.Butt;

        public PenStrokeJoin PenStrokeJoin { get; set; } = PenStrokeJoin.Miter;

        public float PenStrokeMiterLimit { get; set; } = 10f; // Default on Wpf, on Skia, it is 4f

        public override bool Equals(object obj)
        {
            if (!(obj is Pen))
            {
                return false;
            }
            return Equals((Pen)obj);
        }

        public bool Equals(Pen pen)
        {
            // ReSharper disable once CompareOfFloatsByEqualityOperator
            if (Width != pen.Width) return false;
            
            //if one or the other is null then they are not equal, but not when they are both null
            if ((Color == null) ^ (pen.Color == null)) return false;

            if (Color != null && !Color.Equals(pen.Color)) return false;

            if (PenStyle != pen.PenStyle) return false;

            if (PenStrokeCap != pen.PenStrokeCap) return false;

            if (PenStrokeJoin != pen.PenStrokeJoin) return false;

            if (PenStrokeMiterLimit != pen.PenStrokeMiterLimit) return false;

            return true;
        }

        public override int GetHashCode()
        {
            return Width.GetHashCode() ^ (Color == null ? 0 : Color.GetHashCode());
        }

        public static bool operator ==(Pen pen1, Pen pen2)
        {
            return Equals(pen1, pen2);
        }

        public static bool operator !=(Pen pen1, Pen pen2)
        {
            return !Equals(pen1, pen2);
        }
    }
}

{'fraction_non_alphanumeric': 0.09316303531179564, 'fraction_numerical': 0.006511394941147007, 'mean_word_length': 1.7170068027210885, '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': '7349887', 'n_tokens_mistral': 1154, 'n_tokens_neox': 1098, 'n_words': 355}