<commit_before>﻿using System;
using TankDriver.Models;
using TankDriver.Geometry;

namespace TankDriver.Logic
{
	internal class Bullet: IUnit
	{
		private const double BULLET_VELOCITY = 150.0;

		private readonly BulletModel _model;

		public PointD Position { get; private set; }
		public double Heading { get; private set; }

		public Bullet (double x, double y, double heading)
		{
			Position = new PointD (x, y);
			Heading = heading;
			_model = new BulletModel (this);
		}

		/// <summary>
		/// Unit model.
		/// </summary>
		/// <returns>Reference ti this unit's model.</returns>
		public IModel GetModel()
		{
			return _model;
		}

		public void UpdatePosition(TimeSpan timeDelta) {
			double time = timeDelta.TotalSeconds;
			Position = Position.MovedByVector (VectorD.Polar(time * BULLET_VELOCITY, Heading)); 
		}
	}
}
<commit_msg>Don't name constants all UPPER_CASE (#5)<commit_after>﻿using System;
using TankDriver.Models;
using TankDriver.Geometry;

namespace TankDriver.Logic
{
	internal class Bullet: IUnit
	{
		private const double BulletVelocity = 150.0;

		private readonly BulletModel _model;

		public PointD Position { get; private set; }
		public double Heading { get; private set; }

		public Bullet (double x, double y, double heading)
		{
			Position = new PointD (x, y);
			Heading = heading;
			_model = new BulletModel (this);
		}

		/// <summary>
		/// Unit model.
		/// </summary>
		/// <returns>Reference ti this unit's model.</returns>
		public IModel GetModel()
		{
			return _model;
		}

		public void UpdatePosition(TimeSpan timeDelta) {
			double time = timeDelta.TotalSeconds;
			Position = Position.MovedByVector (VectorD.Polar(time * BulletVelocity, Heading));
		}
	}
}

{'fraction_non_alphanumeric': 0.10864485981308411, 'fraction_numerical': 0.005257009345794392, 'mean_word_length': 3.543766578249337, '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': '4528499', 'n_tokens_mistral': 627, 'n_tokens_neox': 535, 'n_words': 161}