<commit_before>﻿using System;
using System.Data.SqlClient;

public class Database
{
  //---------------------------------------------------------------------------

  public const string DB_SERVER_NAME = @"graemepc\sqlexpress";
  public const string DB_NAME = "TeamTracker";
  public const string DB_USERNAME = "TeamTrackerUser";
  public const string DB_PASSWORD = "<PASSWORD>";

  public static readonly string DB_CONNECTION_STRING =
    Environment.GetEnvironmentVariable( "SQLAZURECONNSTR_defaultConnection" ); 
    //string.Format(
    //  "Server={0};Database={1};User Id={2};Password={3};",
    //  DB_SERVER_NAME,
    //  DB_NAME,
    //  DB_USERNAME,
    //  DB_PASSWORD );

  //---------------------------------------------------------------------------

  public static int ExecSql( string command )
  {
    using( SqlConnection connection = new SqlConnection( DB_CONNECTION_STRING ) )
    {<commit_msg>Latest.<commit_after>﻿using System.Data.SqlClient;

public class Database
{
  //---------------------------------------------------------------------------

  public const string DB_SERVER_NAME = @"graemeb-pc\sqlexpress";
  public const string DB_NAME = "TeamTracker";
  public const string DB_USERNAME = "TeamTrackerUser";
  public const string DB_PASSWORD = "<PASSWORD>";

  public static readonly string DB_CONNECTION_STRING =
    string.Format(
      "Server={0};Database={1};User Id={2};Password={3};",
      DB_SERVER_NAME,
      DB_NAME,
      DB_USERNAME,
      DB_PASSWORD );

  //---------------------------------------------------------------------------

  public static int ExecSql( string command )
  {
    using( SqlConnection connection = new SqlConnection( DB_CONNECTION_STRING ) )
    {
{'fraction_non_alphanumeric': 0.2660069848661234, 'fraction_numerical': 0.004656577415599534, 'mean_word_length': 1.874581939799331, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2208293', 'n_tokens_mistral': 452, 'n_tokens_neox': 438, 'n_words': 102}