<commit_before>using System;
using System.Collections.Generic;
using System.Linq;
using FacetedWorlds.MyCon.Model;
using FacetedWorlds.MyCon.Models;

namespace FacetedWorlds.MyCon.ViewModels.Tracks
{
    public class TrackViewModel
    {
        private readonly Track _track;
        private readonly Func<SessionPlace, SessionHeaderViewModel> _newSessionHeaderViewModel;

        public TrackViewModel(Track track, Func<SessionPlace, SessionHeaderViewModel> newSessionHeaderViewModel)
        {
            _track = track;
            _newSessionHeaderViewModel = newSessionHeaderViewModel;
        }

        public string Name
        {
            get { return _track.Name; }
        }

        public IEnumerable<SessionHeaderViewModel> Items
        {
            get
            {
                var sessionPlaces = _track.CurrentSessionPlaces.ToList();
                return
                    from sessionPlace in sessionPlaces
                    where CanDisplay(sessionPlace)
                    orderby sessionPlace.Place.PlaceTime.Start
                    select _newSessionHeaderViewModel(sessionPlace);
            }
        }

        public override bool Equals(object obj)
        {
            if (obj == this)
                return true;
            TrackViewModel that = obj as TrackViewModel;<commit_msg>Removed unnecessary ToList from TrackViewModel.<commit_after>using System;
using System.Collections.Generic;
using System.Linq;
using FacetedWorlds.MyCon.Model;
using FacetedWorlds.MyCon.Models;

namespace FacetedWorlds.MyCon.ViewModels.Tracks
{
    public class TrackViewModel
    {
        private readonly Track _track;
        private readonly Func<SessionPlace, SessionHeaderViewModel> _newSessionHeaderViewModel;

        public TrackViewModel(Track track, Func<SessionPlace, SessionHeaderViewModel> newSessionHeaderViewModel)
        {
            _track = track;
            _newSessionHeaderViewModel = newSessionHeaderViewModel;
        }

        public string Name
        {
            get { return _track.Name; }
        }

        public IEnumerable<SessionHeaderViewModel> Items
        {
            get
            {
                return
                    from sessionPlace in _track.CurrentSessionPlaces
                    where CanDisplay(sessionPlace)
                    orderby sessionPlace.Place.PlaceTime.Start
                    select _newSessionHeaderViewModel(sessionPlace);
            }
        }

        public override bool Equals(object obj)
        {
            if (obj == this)
                return true;
            TrackViewModel that = obj as TrackViewModel;
{'fraction_non_alphanumeric': 0.05378787878787879, 'fraction_numerical': 0.0, 'mean_word_length': 2.0045506257110355, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1790467', 'n_tokens_mistral': 650, 'n_tokens_neox': 608, 'n_words': 146}