<commit_before>﻿using Ets.Mobile.Entities.Signets;
using Ets.Mobile.ViewModel.Content.Main;
using Ets.Mobile.ViewModel.Contracts.Main;
using Ets.Mobile.ViewModel.Contracts.Shared;
using Ets.Mobile.ViewModel.Pages.Shared;
using Ets.Mobile.ViewModel.Pages.UserDetails;
using ReactiveUI;
using ReactiveUI.Xaml.Controls.Core;
using ReactiveUI.Xaml.Controls.Handlers;
using System;
using System.Collections.Generic;
using System.Reactive;
using System.Reactive.Linq;
using System.Threading.Tasks;
using Themes;
using Windows.ApplicationModel;
using Windows.UI;

namespace Ets.Mobile.ViewModel.DesignTime
{
    public class MainViewModelDt : DesignTimeBase, IMainViewModel
    {
        public MainViewModelDt()
        {
            if (DesignMode.DesignModeEnabled)
            {
                var todayItems = new ReactiveList<ScheduleVm>(new List<ScheduleVm>
                {
                    new ScheduleVm
                    {
                        Title = "Analyse et conception de logiciels",
                        Location = "A-1300",
                        Name = "Activité de cours",
                        CourseAndGroup = "LOG430-01",
                        Description = "Description",
                        StartDate = DateTime.Now.AddMinutes(2),
                        EndDate = DateTime.Now.AddMinutes(62),
                        Color = AppColors.Orange.ToString()
                    },
                    new ScheduleVm
                    {
                        Title = "Analyse et conception de logiciels",
                        Location = "A-1300",
                        Name = "Activité de cours",
                        CourseAndGroup = "LOG430-01",
                        Description = "Description",
                        StartDate = DateTime.Now.AddMinutes(2),
                        EndDate = DateTime.Now.AddMinutes(62),
                        Color = AppColors.Orange.ToString()
                    }
                });

                var gradeItems = new ReactiveList<GradeSummaryViewModelGroup>(new List<GradeSummaryViewModelGroup>
                {
                    new GradeSummaryViewModelGroup("H2015", new [] {
                        new CourseVm
                        {
                            Acronym = "LOG430",
                            Grade = "A",
                            Name = "Architecture",
                            Semester = "H2015",
                            Program = "",
                            Color = Colors.Orange.ToString()
                        }
                    }, null)
                });

                TodayPresenter = new ReactivePresenterHandlerDesignTime<IReactiveDerivedList<ScheduleVm>>(Observable.Return(new ReactiveDerivedListDesignTime<ScheduleVm>(todayItems)));
                GradesPresenter = new ReactivePresenterHandlerDesignTime<IReactiveDerivedList<GradeSummaryViewModelGroup>>(Observable.Return(new ReactiveDerivedListDesignTime<GradeSummaryViewModelGroup>(gradeItems)));
                LoadCoursesForToday = ReactivePresenterCommand.CreateAsyncTask(_ => Task.FromResult(new ScheduleVm[0]));
                LoadCoursesSummaries = ReactivePresenterCommand.CreateAsyncTask(_ => Task.FromResult(new List<GradeSummaryViewModelGroup>()));
                NavigateToSchedule = ReactiveCommand.CreateAsyncTask(_ => Task.FromResult(Unit.Default));
                NavigateToProgram = ReactiveCommand.CreateAsyncTask(_ => Task.FromResult(Unit.Default));
                SideNavigation = new SideNavigationViewModel(null)
                {
                    UserDetails = new UserDetailsViewModel(null)
                    {
                        Profile = new UserDetailsVm
                        {
                            Username = "AK83510"
                        }<commit_msg>Use Hex Colors in MainViewModel DesignTime ViewModel<commit_after>﻿using Ets.Mobile.Entities.Signets;
using Ets.Mobile.ViewModel.Content.Main;
using Ets.Mobile.ViewModel.Contracts.Main;
using Ets.Mobile.ViewModel.Contracts.Shared;
using Ets.Mobile.ViewModel.Pages.Shared;
using Ets.Mobile.ViewModel.Pages.UserDetails;
using ReactiveUI;
using ReactiveUI.Xaml.Controls.Core;
using ReactiveUI.Xaml.Controls.Handlers;
using System;
using System.Collections.Generic;
using System.Reactive;
using System.Reactive.Linq;
using System.Threading.Tasks;
using Windows.ApplicationModel;

namespace Ets.Mobile.ViewModel.DesignTime
{
    public class MainViewModelDt : DesignTimeBase, IMainViewModel
    {
        public MainViewModelDt()
        {
            if (DesignMode.DesignModeEnabled)
            {
                var todayItems = new ReactiveList<ScheduleVm>(new List<ScheduleVm>
                {
                    new ScheduleVm
                    {
                        Title = "Analyse et conception de logiciels",
                        Location = "A-1300",
                        Name = "Activité de cours",
                        CourseAndGroup = "LOG430-01",
                        Description = "Description",
                        StartDate = DateTime.Now.AddMinutes(2),
                        EndDate = DateTime.Now.AddMinutes(62),
                        Color = "#ea7635"
                    },
                    new ScheduleVm
                    {
                        Title = "Analyse et conception de logiciels",
                        Location = "A-1300",
                        Name = "Activité de cours",
                        CourseAndGroup = "LOG430-01",
                        Description = "Description",
                        StartDate = DateTime.Now.AddMinutes(2),
                        EndDate = DateTime.Now.AddMinutes(62),
                        Color = "#ea7635"
                    }
                });

                var gradeItems = new ReactiveList<GradeSummaryViewModelGroup>(new List<GradeSummaryViewModelGroup>
                {
                    new GradeSummaryViewModelGroup("H2015", new [] {
                        new CourseVm
                        {
                            Acronym = "LOG430",
                            Grade = "A",
                            Name = "Architecture",
                            Semester = "H2015",
                            Program = "",
                            Color = "#ea7635"
                        }
                    }, null)
                });

                TodayPresenter = new ReactivePresenterHandlerDesignTime<IReactiveDerivedList<ScheduleVm>>(Observable.Return(new ReactiveDerivedListDesignTime<ScheduleVm>(todayItems)));
                GradesPresenter = new ReactivePresenterHandlerDesignTime<IReactiveDerivedList<GradeSummaryViewModelGroup>>(Observable.Return(new ReactiveDerivedListDesignTime<GradeSummaryViewModelGroup>(gradeItems)));
                LoadCoursesForToday = ReactivePresenterCommand.CreateAsyncTask(_ => Task.FromResult(new ScheduleVm[0]));
                LoadCoursesSummaries = ReactivePresenterCommand.CreateAsyncTask(_ => Task.FromResult(new List<GradeSummaryViewModelGroup>()));
                NavigateToSchedule = ReactiveCommand.CreateAsyncTask(_ => Task.FromResult(Unit.Default));
                NavigateToProgram = ReactiveCommand.CreateAsyncTask(_ => Task.FromResult(Unit.Default));
                SideNavigation = new SideNavigationViewModel(null)
                {
                    UserDetails = new UserDetailsViewModel(null)
                    {
                        Profile = new UserDetailsVm
                        {
                            Username = "AK83510"
                        }
{'fraction_non_alphanumeric': 0.07941099132264003, 'fraction_numerical': 0.012358664212463844, 'mean_word_length': 1.5664642375168691, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 33, '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': '935642', 'n_tokens_mistral': 1917, 'n_tokens_neox': 1715, 'n_words': 308}