<commit_before>﻿using System;

namespace ListNamespace
{
    /// <summary>
    /// singly linked list
    /// </summary>
    public class List : IList
    {
        /// <summary>
        /// gets the number of elements contained in the List
        /// </summary>
        public int Count
        {
            get
            {
                return size;
            }
        }

        public void Add(int value)
        {
            var newElement = new ListElement(value);
            if (this.head == null)
            {
                this.head = newElement;
                this.tail = newElement;
                ++this.size;
                return;
            }

            this.tail.Next = newElement;
            this.tail = newElement;
            ++this.size;
        }

        public void Print()
        {
            if (this.head == null)
            {
                throw new EmptyListException("List is empty");
            }

            Console.Write("	");
            ListElement i = this.head;
            while (i != null)
            {
                Console.Write(i.Value + " ");
                i = i.Next;
            }
            Console.WriteLine();
        }

        public void Remove(int value)
        {
            if (this.head == null)
            {
                throw new EmptyListException("List is empty");
            }

            if (this.head.Value == value)
            {
                this.head = this.head.Next;
                if (size == 1)
                {<commit_msg>exception is replaced by Console.Write<commit_after>﻿using System;

namespace ListNamespace
{
    /// <summary>
    /// singly linked list
    /// </summary>
    public class List : IList
    {
        /// <summary>
        /// gets the number of elements contained in the List
        /// </summary>
        public int Count
        {
            get
            {
                return size;
            }
        }

        public void Add(int value)
        {
            var newElement = new ListElement(value);
            if (this.head == null)
            {
                this.head = newElement;
                this.tail = newElement;
                ++this.size;
                return;
            }

            this.tail.Next = newElement;
            this.tail = newElement;
            ++this.size;
        }

        public void Print()
        {
            if (this.head == null)
            {
                Console.Write("List is empty");
            }

            Console.Write("	");
            ListElement i = this.head;
            while (i != null)
            {
                Console.Write(i.Value + " ");
                i = i.Next;
            }
            Console.WriteLine();
        }

        public void Remove(int value)
        {
            if (this.head == null)
            {
                throw new EmptyListException("List is empty");
            }

            if (this.head.Value == value)
            {
                this.head = this.head.Next;
                if (size == 1)
                {
{'fraction_non_alphanumeric': 0.101749837977965, 'fraction_numerical': 0.0006480881399870382, 'mean_word_length': 0.925764192139738, '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': '6346335', 'n_tokens_mistral': 792, 'n_tokens_neox': 750, 'n_words': 190}