<commit_before>﻿using System;
using System.Collections.Generic;

namespace Aurora.EffectsEngine
{
    public class EffectBrush
    {
        public enum BrushType
        {
            None,
            Solid,
            Linear,
            Radial
        };

        public enum BrushWrap
        {
            None,
            Repeat,
            Reflect
        };

        public BrushType type = BrushType.None;
        public BrushWrap wrap = BrushWrap.None;
        public SortedDictionary<float, System.Drawing.Color> colorGradients = new SortedDictionary<float, System.Drawing.Color>();
        public System.Drawing.PointF start;
        public System.Drawing.PointF end;
        public System.Drawing.PointF center;

        private System.Drawing.Brush _drawingBrush = null;
        private System.Windows.Media.Brush _mediaBrush = null;

        public EffectBrush()
        {
            type = BrushType.Solid;

            colorGradients.Add(0.0f, System.Drawing.Color.Red);
            colorGradients.Add(1.0f, System.Drawing.Color.Blue);

            start = new System.Drawing.PointF(0, 0);
            end = new System.Drawing.PointF(1, 0);
            center = new System.Drawing.PointF(0.0f, 0.0f);
        }

        public EffectBrush(EffectBrush otherBrush)
        {
            this.type = otherBrush.type;
            this.wrap = otherBrush.wrap;
            this.colorGradients = otherBrush.colorGradients;
            this.start = otherBrush.start;
            this.end = otherBrush.end;
            this.center = otherBrush.center;
        }
<commit_msg>Fixed Gradients not carrying over properly from older profiles<commit_after>﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;

namespace Aurora.EffectsEngine
{
    public class EffectBrush
    {
        public enum BrushType
        {
            None,
            Solid,
            Linear,
            Radial
        };

        public enum BrushWrap
        {
            None,
            Repeat,
            Reflect
        };

        public BrushType type = BrushType.None;
        public BrushWrap wrap = BrushWrap.None;
        [JsonProperty("color_gradients")]
        public SortedDictionary<float, System.Drawing.Color> colorGradients = new SortedDictionary<float, System.Drawing.Color>();
        public System.Drawing.PointF start;
        public System.Drawing.PointF end;
        public System.Drawing.PointF center;

        private System.Drawing.Brush _drawingBrush = null;
        private System.Windows.Media.Brush _mediaBrush = null;

        public EffectBrush()
        {
            type = BrushType.Solid;

            colorGradients.Add(0.0f, System.Drawing.Color.Red);
            colorGradients.Add(1.0f, System.Drawing.Color.Blue);

            start = new System.Drawing.PointF(0, 0);
            end = new System.Drawing.PointF(1, 0);
            center = new System.Drawing.PointF(0.0f, 0.0f);
        }

        public EffectBrush(EffectBrush otherBrush)
        {
            this.type = otherBrush.type;
            this.wrap = otherBrush.wrap;
            this.colorGradients = otherBrush.colorGradients;
            this.start = otherBrush.start;
            this.end = otherBrush.end;
            this.center = otherBrush.center;
        }

{'fraction_non_alphanumeric': 0.0851581508515815, 'fraction_numerical': 0.0072992700729927005, 'mean_word_length': 1.8377911993097498, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6538340', 'n_tokens_mistral': 932, 'n_tokens_neox': 873, 'n_words': 189}