<commit_before>require 'fileutils'
require 'open3'
require 'pathname'
require 'yaml'
require 'cmd_common'

RSpec.describe 'murano content', :cmd, :needs_password do
  include_context "CI_CMD"

  before(:example) do
    @product_name = rname('contestTest')
      out, err, status = Open3.capture3(capcmd('murano', 'product', 'create', @product_name, '--save'))
      expect(err).to eq('')
      expect(out.chomp).to match(/^[a-zA-Z0-9]+$/)
      expect(status.exitstatus).to eq(0)
  end
  after(:example) do
      out, err, status = Open3.capture3(capcmd('murano', 'solution', 'delete', @product_name))
      expect(out).to eq('')
      expect(err).to eq('')
      expect(status.exitstatus).to eq(0)
  end


  it "life cycle" do
      out, err, status = Open3.capture3(capcmd('murano', 'content', 'list'))
      expect(out.lines).to match([
        a_string_matching(/^(\+-+){2}\+$/),
        a_string_matching(/^\| Name\s+\| Size\s+\|$/),
        a_string_matching(/^(\+-+){2}\+$/),
        a_string_matching(/^(\+-+){2}\+$/),
      ])
      expect(err).to eq('')
      expect(status.exitstatus).to eq(0)<commit_msg>Whitespace: Remove extraneous newline.<commit_after>require 'fileutils'
require 'open3'
require 'pathname'
require 'yaml'
require 'cmd_common'

RSpec.describe 'murano content', :cmd, :needs_password do
  include_context "CI_CMD"

  before(:example) do
    @product_name = rname('contestTest')
      out, err, status = Open3.capture3(capcmd('murano', 'product', 'create', @product_name, '--save'))
      expect(err).to eq('')
      expect(out.chomp).to match(/^[a-zA-Z0-9]+$/)
      expect(status.exitstatus).to eq(0)
  end
  after(:example) do
      out, err, status = Open3.capture3(capcmd('murano', 'solution', 'delete', @product_name))
      expect(out).to eq('')
      expect(err).to eq('')
      expect(status.exitstatus).to eq(0)
  end

  it "life cycle" do
      out, err, status = Open3.capture3(capcmd('murano', 'content', 'list'))
      expect(out.lines).to match([
        a_string_matching(/^(\+-+){2}\+$/),
        a_string_matching(/^\| Name\s+\| Size\s+\|$/),
        a_string_matching(/^(\+-+){2}\+$/),
        a_string_matching(/^(\+-+){2}\+$/),
      ])
      expect(err).to eq('')
      expect(status.exitstatus).to eq(0)
{'fraction_non_alphanumeric': 0.20567375886524822, 'fraction_numerical': 0.013297872340425532, 'mean_word_length': 3.374031007751938, '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': '7215160', 'n_tokens_mistral': 840, 'n_tokens_neox': 799, 'n_words': 152}