<commit_before>﻿using System;
using Nvelope;

namespace Nvelope.Collections
{
    public abstract class OrderedSequential<T> : Comparable<T>
    {
        public static T operator +(OrderedSequential<T> obj, int n)
        {
            return obj.Add(n);
        }
        public static T operator -(OrderedSequential<T> obj, int n)
        {
            return obj.Add(-n);
        }
        public static int operator -(OrderedSequential<T> obj1, T obj2)
        {
            return obj1.Difference(obj2);
        }
        protected abstract T Add(int n);
    }
}<commit_msg>Added extra methods for languages that don't support operator overloading<commit_after>﻿using System;
using Nvelope;

namespace Nvelope.Collections
{
    public abstract class OrderedSequential<T> : Comparable<T>
    {
        protected abstract T Add(int value);

        public static T operator +(OrderedSequential<T> obj, int value)
        {
            return obj.Add(value);
        }

        public T Subtract(int value)
        {
            return this.Add(-value);
        }

        public static T operator -(OrderedSequential<T> obj, int value)
        {
            return obj.Subtract(value);
        }

        public int Subtract(T value)
        {
            return this.Difference(value);
        }

        public static int operator -(OrderedSequential<T> obj, T value)
        {
            return obj.Subtract(value);
        }


    }
}
{'fraction_non_alphanumeric': 0.0893970893970894, 'fraction_numerical': 0.002772002772002772, 'mean_word_length': 1.9409368635437882, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '7540936', 'n_tokens_mistral': 412, 'n_tokens_neox': 398, 'n_words': 113}