<commit_before># Copyright (c) 2010-2011 Novell, Inc.
# Licensed under the terms of the MIT license.

When /^I refresh the metadata$/ do
   output = `rhn_check -vvv 2>&1`
   if ! $?.success?
       raise "rhn_check failed: #{$!}: #{output}"
   client_refresh_metadata
end

Then /^I should have "([^"]*)" in the metadata$/ do |text|
   arch=`uname -m`
   arch.chomp!
   if arch != "x86_64"
     arch = "i586"
   end
   `zgrep #{text} #{client_raw_repodata_dir("sles11-sp1-updates-#{arch}-channel")}/primary.xml.gz`
   fail if ! $?.success?
end
<commit_msg>fix typo<commit_after># Copyright (c) 2010-2011 Novell, Inc.
# Licensed under the terms of the MIT license.

When /^I refresh the metadata$/ do
   output = `rhn_check -vvv 2>&1`
   if ! $?.success?
       raise "rhn_check failed: #{$!}: #{output}"
   end
   client_refresh_metadata
end

Then /^I should have "([^"]*)" in the metadata$/ do |text|
   arch=`uname -m`
   arch.chomp!
   if arch != "x86_64"
     arch = "i586"
   end
   `zgrep #{text} #{client_raw_repodata_dir("sles11-sp1-updates-#{arch}-channel")}/primary.xml.gz`
   fail if ! $?.success?
end

{'fraction_non_alphanumeric': 0.1672661870503597, 'fraction_numerical': 0.03597122302158273, 'mean_word_length': 3.34765625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '2880076', 'n_tokens_mistral': 452, 'n_tokens_neox': 417, 'n_words': 116}