<commit_before># encoding: utf-8

require 'serverspec'
include Serverspec::Helper::Exec
include Serverspec::Helper::DetectOS

RSpec.configure do |c|
  c.before :all do
    c.os = backend(Serverspec::Commands::Base).check_os
  end
  c.path = "/sbin:/user/sbin"
end

describe package('memcached') do
  it { should be_installed }

end

describe service('memcached') do
  it { should be_enabled }
end

describe service('memcached') do
  it { should be_running }
end

describe port(11211) do
  it { should be_listening }
end
<commit_msg>fix for invalid byte sequence<commit_after>if RUBY_VERSION =~ /1.9/
  Encoding.default_external = Encoding::UTF_8
  Encoding.default_internal = Encoding::UTF_8
end

require 'serverspec'
include Serverspec::Helper::Exec
include Serverspec::Helper::DetectOS

RSpec.configure do |c|
  c.before :all do
    c.os = backend(Serverspec::Commands::Base).check_os
  end
  c.path = "/sbin:/user/sbin"
end

describe package('memcached') do
  it { should be_installed }

end

describe service('memcached') do
  it { should be_enabled }
end

describe service('memcached') do
  it { should be_running }
end

describe port(11211) do
  it { should be_listening }
end

{'fraction_non_alphanumeric': 0.10989010989010989, 'fraction_numerical': 0.01267962806424345, 'mean_word_length': 4.719806763285024, 'pattern_counts': {'":': 0, '<': 3, '<?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': '374078', 'n_tokens_mistral': 424, 'n_tokens_neox': 404, 'n_words': 107}