<commit_before>﻿// Copyright 2014 The Rector & Visitors of the University of Virginia
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
using System.Linq;
using Sensus;
using Sensus.Probes.Movement;
using Sensus.Probes;
using System.Threading;
using Sensus.Extensions;
using Sensus.Adaptation;

namespace ExampleSensingAgent
{
    /// <summary>
    /// The sekeleton implementation for the capstone 2020 active sensing project
    /// </summary>
    /// <remarks>
    /// TODO:
    ///     (1) determine on/off sensor settings
    ///     (2) implement logistic regression
    ///     (2) test
    ///         (a) logistic regression
    /// </remarks>
    public class ExampleCapstoneAccelerationSensingAgent : SensingAgent
    {
        #region Private Classes
        /// <summary>
        /// A helper class for calculating, storing and passing model features.
        /// </summary>
        private class Features
        {
            #region Public Properties
            /// <summary>
            /// The hour in 24 hour time (i.e. 0-23) at the start of the listening window
            /// </summary>
            public int Hour { get; private set; }

            /// <summary><commit_msg>updating to do list<commit_after>﻿// Copyright 2014 The Rector & Visitors of the University of Virginia
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
using System.Linq;
using Sensus;
using Sensus.Probes.Movement;
using Sensus.Probes;
using System.Threading;
using Sensus.Extensions;
using Sensus.Adaptation;

namespace ExampleSensingAgent
{
    /// <summary>
    /// The sekeleton implementation for the capstone 2020 active sensing project
    /// </summary>
    /// <remarks>
    /// TODO:
    ///     (1) determine on/off sensor settings
    /// </remarks>
    public class ExampleCapstoneAccelerationSensingAgent : SensingAgent
    {
        #region Private Classes
        /// <summary>
        /// A helper class for calculating, storing and passing model features.
        /// </summary>
        private class Features
        {
            #region Public Properties
            /// <summary>
            /// The hour in 24 hour time (i.e. 0-23) at the start of the listening window
            /// </summary>
            public int Hour { get; private set; }

            /// <summary>
{'fraction_non_alphanumeric': 0.0973049645390071, 'fraction_numerical': 0.01078014184397163, 'mean_word_length': 2.460255152109912, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3228903', 'n_tokens_mistral': 923, 'n_tokens_neox': 888, 'n_words': 375}