<commit_before>require_relative 'spec_helper'

describe Idev::ScreenShotrClient do
  before :each do
    @ss = Idev::ScreenShotrClient.attach(idevice:shared_idevice)
  end

  it "should attach" do
    @ss.should be_a Idev::ScreenShotrClient
  end

  it "should take a screenshot" do
    data = @ss.take_screenshot
    data.should be_a String
    shell_pipe(data[0..256], "file -").should =~ /image data/
  end<commit_msg>conditional pending tests for screenshotr with devtests envar<commit_after>require_relative 'spec_helper'

describe Idev::ScreenShotrClient do
  before :each do
    pending "needs developer disk mounted" unless ENV["DEVTESTS"]
    @ss = Idev::ScreenShotrClient.attach(idevice:shared_idevice)
  end

  it "should attach" do
    @ss.should be_a Idev::ScreenShotrClient
  end

  it "should take a screenshot" do
    data = @ss.take_screenshot
    data.should be_a String
    shell_pipe(data[0..256], "file -").should =~ /image data/
  end
{'fraction_non_alphanumeric': 0.09623430962343096, 'fraction_numerical': 0.008368200836820083, 'mean_word_length': 4.172972972972973, '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': '5913175', 'n_tokens_mistral': 339, 'n_tokens_neox': 323, 'n_words': 85}