<commit_before>﻿using System;

// ReSharper disable CompareOfFloatsByEqualityOperator

namespace Boing
{
    public struct Vector2f
    {
        public Vector2f(float x, float y) : this()
        {
            X = x;
            Y = y;
        }

        public readonly float X;
        public readonly float Y;

        public float Norm() => (float)Math.Sqrt(X*X + Y*Y);

        public Vector2f Normalized() => this/Norm();

        public bool HasNaN => float.IsNaN(X) || float.IsNaN(Y);

        public bool HasInfinity => float.IsInfinity(X) || float.IsInfinity(Y);<commit_msg>C# 6 doesn't require struct ctors to call base.<commit_after>﻿using System;

// ReSharper disable CompareOfFloatsByEqualityOperator

namespace Boing
{
    public struct Vector2f
    {
        public Vector2f(float x, float y)
        {
            X = x;
            Y = y;
        }

        public readonly float X;
        public readonly float Y;

        public float Norm() => (float)Math.Sqrt(X*X + Y*Y);

        public Vector2f Normalized() => this/Norm();

        public bool HasNaN => float.IsNaN(X) || float.IsNaN(Y);

        public bool HasInfinity => float.IsInfinity(X) || float.IsInfinity(Y);
{'fraction_non_alphanumeric': 0.11046025104602511, 'fraction_numerical': 0.005857740585774059, 'mean_word_length': 2.25, 'pattern_counts': {'":': 0, '<': 3, '<?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': '301755', 'n_tokens_mistral': 382, 'n_tokens_neox': 364, 'n_words': 100}