<commit_before>require 'yaml'
require 'chronic'

module Ginatra
  class Config
    class << self
      def settings
        YAML.load_file(File.expand_path('config.yml', Ginatra::Env.root))
      end

      def title
        self.settings['title']
      end

      def repositories
        repos = self.settings['repositories']
        repos.each_with_index{ |value, index|
          color = value[1]['color'] || colors[index]
          repos[value[0]]['color'] = color
        }
        repos
      end

      def redis
        self.settins['redis']
      end

      def update_interval
        interval = self.settings['update_interval'] || 60
        return interval
      end<commit_msg>redis conf fix<commit_after>require 'yaml'
require 'chronic'

module Ginatra
  class Config
    class << self
      def settings
        YAML.load_file(File.expand_path('config.yml', Ginatra::Env.root))
      end

      def title
        self.settings['title']
      end

      def repositories
        repos = self.settings['repositories']
        repos.each_with_index{ |value, index|
          color = value[1]['color'] || colors[index]
          repos[value[0]]['color'] = color
        }
        repos
      end

      def redis
        self.settings['redis'] || nil
      end

      def update_interval
        interval = self.settings['update_interval'] || 60
        return interval
      end
{'fraction_non_alphanumeric': 0.10496046010064701, 'fraction_numerical': 0.005751258087706686, 'mean_word_length': 2.0728476821192054, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, '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': '7352350', 'n_tokens_mistral': 424, 'n_tokens_neox': 392, 'n_words': 92}