<commit_before>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Myxini.Communication.Robot
{
    /// <summary>
    /// ロボットへの直進コマンドをあらわすクラス
    /// </summary>
    class StraightCommand : MoveCommand
    {
        public float Velocity { get; set; }
        public float Time { get; set; }
        public StraightCommand()
        {
            this.CommandID = 0x01;
        }
        public override Packet ToPacket()
        {
            var p = new Pc2RobotPacket()
            {
                RobotID = this.RobotID,
                IsNeedInterrupt = this.IsNeedInterrupt,
                CommandID = this.CommandID,
                Property1 = (byte)(this.Velocity * 127),
                Property2 = (byte)(this.Time)
            };
            p.AddCheckSum();
            return p;
        }
    }
}<commit_msg>[add]: add comments<commit_after>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Myxini.Communication.Robot
{
    /// <summary>
    /// ロボットへの直進コマンドをあらわすクラス
    /// </summary>
    class StraightCommand : MoveCommand
    {
        /// <summary>
        /// 速さを表すパラメータ。1.0で最大
        /// </summary>
        public float Velocity { get; set; }
        /// <summary>
        /// 回転数を表すパラメータ。1で1ブロック分進むかも
        /// </summary>
        public float Time { get; set; }
        public StraightCommand()
        {
            this.CommandID = 0x01;
        }
        public override Packet ToPacket()
        {
            var p = new Pc2RobotPacket()
            {
                RobotID = this.RobotID,
                IsNeedInterrupt = this.IsNeedInterrupt,
                CommandID = this.CommandID,
                Property1 = (byte)(this.Velocity * 127),
                Property2 = (byte)(this.Time)
            };
            p.AddCheckSum();
            return p;
        }
    }
}
{'fraction_non_alphanumeric': 0.10697911360163016, 'fraction_numerical': 0.011207335710646969, 'mean_word_length': 1.5374677002583979, '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': '1081189', 'n_tokens_mistral': 628, 'n_tokens_neox': 610, 'n_words': 116}