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

namespace UniRx
{
    public class CollectionAddEvent<T>
    {
        public int Index { get; private set; }
        public T Value { get; private set; }

        public CollectionAddEvent(int index, T value)
        {
            this.Index = index;
            this.Value = value;
        }
    }

    public class CollectionRemoveEvent<T>
    {
        public int Index { get; private set; }
        public T Value { get; private set; }

        public CollectionRemoveEvent(int index, T value)
        {
            this.Index = index;
            this.Value = value;
        }
    }

    public class CollectionMoveEvent<T>
    {
        public int OldIndex { get; private set; }
        public int NewIndex { get; private set; }
        public T Value { get; private set; }

        public CollectionMoveEvent(int oldIndex, int newIndex, T value)
        {
            this.OldIndex = oldIndex;
            this.NewIndex = newIndex;
            this.Value = value;
        }
    }

    public class CollectionReplaceEvent<T>
    {
        public int Index { get; private set; }
        public T OldValue { get; private set; }
        public T NewValue { get; private set; }

        public CollectionReplaceEvent(int index, T oldValue, T newValue)
        {
            this.Index = index;
            this.OldValue = oldValue;
            this.NewValue = NewValue;
        }
    }

    [Serializable]
    public class ReactiveCollection<T> : Collection<T>
    {
        public ReactiveCollection()
        {

        }

        public ReactiveCollection(IEnumerable<T> collection)
        {
            if (collection == null) throw new ArgumentNullException("collection");
<commit_msg>Fixed that 'newValue' is not used in CollectionReplaceEvent<T>.<commit_after>﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;

namespace UniRx
{
    public class CollectionAddEvent<T>
    {
        public int Index { get; private set; }
        public T Value { get; private set; }

        public CollectionAddEvent(int index, T value)
        {
            this.Index = index;
            this.Value = value;
        }
    }

    public class CollectionRemoveEvent<T>
    {
        public int Index { get; private set; }
        public T Value { get; private set; }

        public CollectionRemoveEvent(int index, T value)
        {
            this.Index = index;
            this.Value = value;
        }
    }

    public class CollectionMoveEvent<T>
    {
        public int OldIndex { get; private set; }
        public int NewIndex { get; private set; }
        public T Value { get; private set; }

        public CollectionMoveEvent(int oldIndex, int newIndex, T value)
        {
            this.OldIndex = oldIndex;
            this.NewIndex = newIndex;
            this.Value = value;
        }
    }

    public class CollectionReplaceEvent<T>
    {
        public int Index { get; private set; }
        public T OldValue { get; private set; }
        public T NewValue { get; private set; }

        public CollectionReplaceEvent(int index, T oldValue, T newValue)
        {
            this.Index = index;
            this.OldValue = oldValue;
            this.NewValue = newValue;
        }
    }

    [Serializable]
    public class ReactiveCollection<T> : Collection<T>
    {
        public ReactiveCollection()
        {

        }

        public ReactiveCollection(IEnumerable<T> collection)
        {
            if (collection == null) throw new ArgumentNullException("collection");

{'fraction_non_alphanumeric': 0.08150384193194292, 'fraction_numerical': 0.0, 'mean_word_length': 1.8905630452022204, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, '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': '3520421', 'n_tokens_mistral': 976, 'n_tokens_neox': 953, 'n_words': 287}