<commit_before>﻿using RunApproachStatistics.Controllers;
using RunApproachStatistics.Modules;
using RunApproachStatistics.Modules.Interfaces;
using RunApproachStatistics.MVVM;
using RunApproachStatistics.Services;
using RunApproachStatistics.View;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using System.Windows.Forms.Integration;
using System.Windows.Threading;

namespace RunApproachStatistics.ViewModel
{
    class HomeViewModel : AbstractViewModel
    {
        private IApplicationController _app;
        private PropertyChangedBase menu;

        private CameraViewModel cameraView;
        private CameraWindow cameraWindow;
        private VideoCameraController videoCameraController;
        private IVideoCameraSettingsModule videoCameraSettingsModule;

        private DispatcherTimer timer;
        private bool dragging = false;

        private string totalTime;
        private string currentTime;
        private double videoPosition;

        public VideoCameraController VideoCameraController
        {
            get { return videoCameraController; }
            set 
            { 
                videoCameraController = value;
                openVideoSource();
            }
        }

        #region DataBinding

        public PropertyChangedBase Menu
        {
            get { return menu; }
            set
            {
                menu = value;
                OnPropertyChanged("Menu");
            }
        }

        public CameraViewModel CameraView
        {
            get { return cameraView; }
            set
            {
                cameraView = value;
                OnPropertyChanged("CameraView");
            }
        }

        public PropertyChangedBase GraphView
        {
            get { return graphView; }
            set
            {
                graphView = value;
                OnPropertyChanged("GraphView");
            }
        }

        public string CurrentTime
        {
            get { return currentTime; }
            set 
            {
                currentTime = value;
                OnPropertyChanged("CurrentTime");
            }
        }

        public String TotalTime
        {<commit_msg>fix graphviewmodel in homeviewmodel<commit_after>﻿using RunApproachStatistics.Controllers;
using RunApproachStatistics.Modules;
using RunApproachStatistics.Modules.Interfaces;
using RunApproachStatistics.MVVM;
using RunApproachStatistics.Services;
using RunApproachStatistics.View;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using System.Windows.Forms.Integration;
using System.Windows.Threading;

namespace RunApproachStatistics.ViewModel
{
    class HomeViewModel : AbstractViewModel
    {
        private IApplicationController _app;
        private PropertyChangedBase menu;

        private CameraViewModel cameraView;
        private CameraWindow cameraWindow;
        private VideoCameraController videoCameraController;
        private IVideoCameraSettingsModule videoCameraSettingsModule;
        private GraphViewModel graphView;

        private DispatcherTimer timer;
        private bool dragging = false;

        private string totalTime;
        private string currentTime;
        private double videoPosition;

        public VideoCameraController VideoCameraController
        {
            get { return videoCameraController; }
            set 
            { 
                videoCameraController = value;
                openVideoSource();
            }
        }

        #region DataBinding

        public PropertyChangedBase Menu
        {
            get { return menu; }
            set
            {
                menu = value;
                OnPropertyChanged("Menu");
            }
        }

        public CameraViewModel CameraView
        {
            get { return cameraView; }
            set
            {
                cameraView = value;
                OnPropertyChanged("CameraView");
            }
        }

        public GraphViewModel GraphView
        {
            get { return graphView; }
            set
            {
                graphView = value;
                OnPropertyChanged("GraphView");
            }
        }

        public string CurrentTime
        {
            get { return currentTime; }
            set 
            {
                currentTime = value;
                OnPropertyChanged("CurrentTime");
            }
        }

        public String TotalTime
        {
{'fraction_non_alphanumeric': 0.053864168618266976, 'fraction_numerical': 0.0, 'mean_word_length': 1.7749556999409333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6073773', 'n_tokens_mistral': 1069, 'n_tokens_neox': 1016, 'n_words': 254}