<commit_before>module Luban
  module Deployment
    module Packages
      class Elasticsearch < Luban::Deployment::Service::Base
        module Paths
          def control_file_dir; @control_file_dir ||= "config"; end

          def control_path; @control_path ||= profile_path.join(control_file_dir); end

          def control_file_name
            @control_file_name ||= "#{service_name}.yml"
          end

          def data_path
            @data_path ||= shared_path.join('data')
          end
        end

        DefaultPort = 9200
        DefaultNetworkHost = `hostname -f`.chomp

        parameter :port, default: DefaultPort
        parameter :network_host, default: DefaultNetworkHost

        protected

        def include_default_templates_path
          default_templates_paths.unshift(base_templates_path(__FILE__))<commit_msg>Refactored #control_path to gem luban<commit_after>module Luban
  module Deployment
    module Packages
      class Elasticsearch < Luban::Deployment::Service::Base
        module Paths
          def control_file_dir; @control_file_dir ||= "config"; end

          def control_file_name
            @control_file_name ||= "#{service_name}.yml"
          end

          def data_path
            @data_path ||= shared_path.join('data')
          end
        end

        DefaultPort = 9200
        DefaultNetworkHost = `hostname -f`.chomp

        parameter :port, default: DefaultPort
        parameter :network_host, default: DefaultNetworkHost

        protected

        def include_default_templates_path
          default_templates_paths.unshift(base_templates_path(__FILE__))
{'fraction_non_alphanumeric': 0.07257072570725707, 'fraction_numerical': 0.004920049200492005, 'mean_word_length': 2.514038876889849, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4549695', 'n_tokens_mistral': 448, 'n_tokens_neox': 430, 'n_words': 96}