<commit_before>require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe Webcam do
  context "when given camera_id is 0" do
    subject { Webcam.new(0) }
    it { should_not be_nil }
  end

  context "when grabs a frame" do
    subject { Webcam.new.grab }
    it "should succeed" do
      should == 1
    end
  end
end<commit_msg>reformat spec<commit_after>require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe Webcam do
  context "when given camera_id is 0" do
    subject { Webcam.new(0) }
    it { should_not be_nil }
  end

  context "when grabs a frame" do
    subject { Webcam.new.grab }
    it { should == 1 }
  end
end
{'fraction_non_alphanumeric': 0.0960960960960961, 'fraction_numerical': 0.009009009009009009, 'mean_word_length': 3.16875, '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': '623962', 'n_tokens_mistral': 235, 'n_tokens_neox': 224, 'n_words': 68}