<commit_before>require 'dotenv'
Dotenv.load

require 'dashing'

configure do
  set :auth_token, '<PASSWORD>'

  helpers do
    def protected!
     # Put any authentication code you want in here.
     # This method is run before accessing any resource.
    end
  end
end

map Sinatra::Application.assets_prefix do
  run Sinatra::Application.sprockets
end

if Builds::BUILD_CONFIG['teamCityBaseUrl']
  require 'teamcity'
  TeamCity.configure do |config|
    config.endpoint = Builds::BUILD_CONFIG['teamCityBaseUrl'] + '/app/rest'
    config.http_user = ENV['TEAM_CITY_USER']
    config.http_password = ENV['<PASSWORD>']
  end
end

run Sinatra::Application<commit_msg>Add possibility to both use guest and password authentication to TC<commit_after>require 'dotenv'
Dotenv.load

require 'dashing'

configure do
  set :auth_token, '<PASSWORD>'

  helpers do
    def protected!
     # Put any authentication code you want in here.
     # This method is run before accessing any resource.
    end
  end
end

map Sinatra::Application.assets_prefix do
  run Sinatra::Application.sprockets
end

if Builds::BUILD_CONFIG['teamCityBaseUrl']
  require 'teamcity'
  TeamCity.configure do |config|
    if ENV['TEAM_CITY_USER']
      config.endpoint = Builds::BUILD_CONFIG['teamCityBaseUrl'] + '/app/rest'
      config.http_user = ENV['TEAM_CITY_USER']
      config.http_password = ENV['<PASSWORD>']
    else
      config.endpoint = Builds::BUILD_CONFIG['teamCityBaseUrl'] + '/app/rest?guest=1'
    end
  end
end

run Sinatra::Application
{'fraction_non_alphanumeric': 0.09789750328515112, 'fraction_numerical': 0.000657030223390276, 'mean_word_length': 4.197952218430034, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7091388', 'n_tokens_mistral': 489, 'n_tokens_neox': 483, 'n_words': 130}