<commit_before>﻿namespace Spatial.Benchmarks
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using BenchmarkDotNet.Attributes;
    using MathNet.Spatial.Euclidean;

    public class Polygon2DBenchmarks
    {
        private static readonly Random Random = new Random();
        private static readonly IReadOnlyList<Point2D> Point2D50 = Enumerable.Repeat<int>(0, 50).Select(_ => new Point2D(Random.Next(), Random.Next())).ToList();
        private static readonly IReadOnlyList<Point2D> Point2D500 = Enumerable.Repeat<int>(0, 50).Select(_ => new Point2D(Random.Next(), Random.Next())).ToList();
        private static readonly IReadOnlyList<Point2D> Point2D5000 = Enumerable.Repeat<int>(0, 50).Select(_ => new Point2D(Random.Next(), Random.Next())).ToList();

        [Benchmark]
        public Polygon2D GetConvexHullFromPoints50()
        {
            return Polygon2D.GetConvexHullFromPoints(Point2D50);
        }

        [Benchmark]<commit_msg>Amend.<commit_after>﻿namespace Spatial.Benchmarks
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using BenchmarkDotNet.Attributes;
    using MathNet.Spatial.Euclidean;

    public class Polygon2DBenchmarks
    {
        private static readonly Random Random = new Random();
        private static readonly IReadOnlyList<Point2D> Point2D50 = Enumerable.Repeat(0, 50).Select(_ => new Point2D(Random.Next(), Random.Next())).ToList();
        private static readonly IReadOnlyList<Point2D> Point2D500 = Enumerable.Repeat(0, 500).Select(_ => new Point2D(Random.Next(), Random.Next())).ToList();
        private static readonly IReadOnlyList<Point2D> Point2D5000 = Enumerable.Repeat(0, 500).Select(_ => new Point2D(Random.Next(), Random.Next())).ToList();

        [Benchmark]
        public Polygon2D GetConvexHullFromPoints50()
        {
            return Polygon2D.GetConvexHullFromPoints(Point2D50);
        }

        [Benchmark]
{'fraction_non_alphanumeric': 0.11514841351074719, 'fraction_numerical': 0.0368474923234391, 'mean_word_length': 3.699519230769231, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 18, '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': '5927565', 'n_tokens_mistral': 639, 'n_tokens_neox': 588, 'n_words': 117}