<commit_before>﻿using System;
using System.Runtime.InteropServices;
using AtleX.CommandLineArguments.Help;
using AtleX.CommandLineArguments.Parsers;

namespace AtleX.CommandLineArguments.Configuration
{
  /// <summary>
  /// Represents a <see cref="CommandLineArgumentsConfiguration"/> that
  /// autodetects the runtime platform (Windows or Unix) and configures a <see
  /// cref="CommandLineArgumentsParser"/> and <see cref="HelpWriter"/> accordingly
  /// </summary>
  public class AutoDetectConfiguration
    : CommandLineArgumentsConfiguration
  {
    /// <summary>
    /// Initializes a new instance of <see cref="AutoDetectConfiguration"/>
    /// </summary>
    public AutoDetectConfiguration()
    {
#if NETSTANDARD1_5
      if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
#else
      if (Environment.OSVersion.Platform != PlatformID.Unix && Environment.OSVersion.Platform != PlatformID.MacOSX)
#endif
      {
        this.Parser = new WindowsStyleParser();
        this.HelpWriter = new WindowsStyleHelpWriter();
      }
      else
      {
        this.Parser = new LinuxStyleParser();
        this.HelpWriter = new LinuxStyleHelpWriter();
      }
    }
  }
}<commit_msg>Removed incorrect compiler directives (fixes #61)<commit_after>﻿using System;
using AtleX.CommandLineArguments.Help;
using AtleX.CommandLineArguments.Parsers;

namespace AtleX.CommandLineArguments.Configuration
{
  /// <summary>
  /// Represents a <see cref="CommandLineArgumentsConfiguration"/> that
  /// autodetects the runtime platform (Windows or Unix) and configures a <see
  /// cref="CommandLineArgumentsParser"/> and <see cref="HelpWriter"/> accordingly
  /// </summary>
  public class AutoDetectConfiguration
    : CommandLineArgumentsConfiguration
  {
    /// <summary>
    /// Initializes a new instance of <see cref="AutoDetectConfiguration"/>
    /// </summary>
    public AutoDetectConfiguration()
    {
      var currentPlatform = Environment.OSVersion.Platform;

      if (currentPlatform != PlatformID.Unix && currentPlatform != PlatformID.MacOSX)
      {
        this.Parser = new WindowsStyleParser();
        this.HelpWriter = new WindowsStyleHelpWriter();
      }
      else
      {
        this.Parser = new LinuxStyleParser();
        this.HelpWriter = new LinuxStyleHelpWriter();
      }
    }
  }
}
{'fraction_non_alphanumeric': 0.11019878997407087, 'fraction_numerical': 0.001728608470181504, 'mean_word_length': 3.376181474480151, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '983584', 'n_tokens_mistral': 625, 'n_tokens_neox': 608, 'n_words': 144}