<commit_before># encoding: utf-8
require 'spec_helper'

# Write integration tests with Serverspec - http://serverspec.org/
describe 'octohost::default' do
  describe service('ntp') do
    it { should be_enabled }
    it { should be_running }
  end

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

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

  describe command('docker info') do
    its(:stdout) { should match /Storage Driver: aufs/ }
  end

  describe service('redis-server') do
    it { should be_enabled }
    it { should be_running }
  end

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

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

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

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

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

  describe command('docker images') do
    it { should return_stdout /octohost\/tentacles/ } # rubocop:disable AmbiguousRegexpLiteral
  end

  describe file('/etc/init/tentacles.conf') do
    it { should be_file }
  end

  describe file('/usr/local/bin/ngxtop') do
    it { should be_file }
  end

  describe file('/usr/local/share/GeoIP/GeoLiteCity.dat') do
    it { should be_file }
  end

  describe file('/usr/local/share/GeoIP/GeoIP.dat') do
    it { should be_file }
  end

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

  describe package('sysdig') do
    it { should be_installed }
  end
end
<commit_msg>Fix test for rubocop lint.<commit_after># encoding: utf-8
require 'spec_helper'

# Write integration tests with Serverspec - http://serverspec.org/
describe 'octohost::default' do
  describe service('ntp') do
    it { should be_enabled }
    it { should be_running }
  end

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

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

  describe command('docker info') do
    it { should return_stdout 'Storage Driver: aufs' }
  end

  describe service('redis-server') do
    it { should be_enabled }
    it { should be_running }
  end

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

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

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

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

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

  describe command('docker images') do
    it { should return_stdout /octohost\/tentacles/ } # rubocop:disable AmbiguousRegexpLiteral
  end

  describe file('/etc/init/tentacles.conf') do
    it { should be_file }
  end

  describe file('/usr/local/bin/ngxtop') do
    it { should be_file }
  end

  describe file('/usr/local/share/GeoIP/GeoLiteCity.dat') do
    it { should be_file }
  end

  describe file('/usr/local/share/GeoIP/GeoIP.dat') do
    it { should be_file }
  end

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

  describe package('sysdig') do
    it { should be_installed }
  end
end

{'fraction_non_alphanumeric': 0.09481946624803768, 'fraction_numerical': 0.010047095761381476, 'mean_word_length': 2.9528535980148884, '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': '6981805', 'n_tokens_mistral': 1099, 'n_tokens_neox': 1042, 'n_words': 312}