<commit_before>﻿#region Namespaces
using RestSharp;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Security.Cryptography;
#endregion // Namespaces

namespace FireRating
{
  public class Util
  {
    #region HTTP Access
    /// <summary>
    /// HTTP access constant to toggle 
    /// between local and global server.
    /// </summary>
    public static bool UseLocalServer = true;

    // HTTP access constants.

    const string _base_url_local = "http://127.0.0.1:3001";
    const string _base_url_global = "http://fireratingdb.herokuapp.com";
    const string _api_version = "api/v1";

    /// <summary>
    /// Return REST API base URL.
    /// </summary>
    public static string RestApiBaseUrl
    {
      get
      {
        return UseLocalServer
          ? _base_url_local
          : _base_url_global;
      }
    }

    /// <summary>
    /// Return REST API URI.
    /// </summary>
    public static string RestApiUri
    {<commit_msg>switch from local to remote web server<commit_after>﻿#region Namespaces
using RestSharp;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Security.Cryptography;
#endregion // Namespaces

namespace FireRating
{
  public class Util
  {
    #region HTTP Access
    /// <summary>
    /// HTTP access constant to toggle 
    /// between local and global server.
    /// </summary>
    public static bool UseLocalServer = false;

    // HTTP access constants.

    const string _base_url_local = "http://127.0.0.1:3001";
    const string _base_url_global = "http://fireratingdb.herokuapp.com";
    const string _api_version = "api/v1";

    /// <summary>
    /// Return REST API base URL.
    /// </summary>
    public static string RestApiBaseUrl
    {
      get
      {
        return UseLocalServer
          ? _base_url_local
          : _base_url_global;
      }
    }

    /// <summary>
    /// Return REST API URI.
    /// </summary>
    public static string RestApiUri
    {
{'fraction_non_alphanumeric': 0.10714285714285714, 'fraction_numerical': 0.010617760617760617, 'mean_word_length': 2.3489499192245558, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3554008', 'n_tokens_mistral': 631, 'n_tokens_neox': 602, 'n_words': 174}