<commit_before>require 'spec_helper'

describe "Beanstalk transport" do
  include BeanstalkHelper
  
  describe 'construction through the Cod module' do
    it "takes one argument" do
      Cod.beanstalk('tube_name').close
    end 
    it "and optionally the server" do
      Cod.beanstalk('tube_name', 'localhost:11300').close
    end
  end
  
  context "'simple' tube" do<commit_msg>. documentation<commit_after>require 'spec_helper'

describe "Beanstalk transport" do
  include BeanstalkHelper
  
  describe 'construction through the Cod module' do
    it "takes one argument (tube_name)" do
      Cod.beanstalk('tube_name').close
    end 
    it "and optionally the server url" do
      Cod.beanstalk('tube_name', 'localhost:11300').close
    end
  end
  
  context "'simple' tube" do
{'fraction_non_alphanumeric': 0.08756345177664974, 'fraction_numerical': 0.012690355329949238, 'mean_word_length': 3.6140350877192984, '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': '2343416', 'n_tokens_mistral': 261, 'n_tokens_neox': 233, 'n_words': 74}