<commit_before>Given(/^I have an ImageTagBuilder$/) do
  @i = ImageTagBuilder.new 
end

Given(/^a source image that's (\d+)x(\d+)$/) do |width, height|
  @i.source_width = width.to_i
  @i.source_height = height.to_i
end

Given(/^a viewport that's (\d+)x(\d+)$/) do |width, height|
  @i.window_inner_width = width.to_i
  @i.window_inner_height= height.to_i
end

Given(/^a window\.devicePixelRatio of (\d+)$/) do |ratio|
  @i.window_device_pixel_ratio = ratio.to_i
end

Given(/^a type of (.*?)$/) do |type|
  @i.image_type = type
end

Given(/^a window\.innerWidth of (\d+)$/) do |width|
  @i.window_inner_width = width.to_i
end

When(/^I request a "([^"]*)" image$/) do |arg1|
  pending # Write code here that turns the phrase above into concrete actions
end

Then(/^the max visual width should be (\d+)$/) do |arg1|
  pending # Write code here that turns the phrase above into concrete actions
end

Then(/^the source image width should be (\d+)$/) do |width|
  expect(@i.source_width).to eq(width.to_i)
end

Then(/^the source image height should be (\d+)$/) do |height|
  expect(@i.source_height).to eq(height.to_i)
end

Then(/^the image call width should be (\d+)$/) do |width|
  if width.to_i == 0
  	pending
  else 
    expect(@i.image_call_width).to eq(width.to_i)
  end
end

Then(/^the image call height should be (\d+)$/) do |height|
  expect(@i.image_call_height).to eq(height.to_i)
end

Then(/^the width attribute should be (\d+)$/) do |width|
  expect(@i.attribute_width).to eq(width.to_i)
end

Then(/^the height attribute should be (\d+)$/) do |height|
  expect(@i.attribute_height).to eq(height.to_i)
end
<commit_msg>Added pending tests for all checkpoints.<commit_after>Given(/^I have an ImageTagBuilder$/) do
  @i = ImageTagBuilder.new 
end

Given(/^a source image that's (\d+)x(\d+)$/) do |width, height|
  @i.source_width = width.to_i
  @i.source_height = height.to_i
end

Given(/^a viewport that's (\d+)x(\d+)$/) do |width, height|
  @i.window_inner_width = width.to_i
  @i.window_inner_height= height.to_i
end

Given(/^a window\.devicePixelRatio of (\d+)$/) do |ratio|
  @i.window_device_pixel_ratio = ratio.to_i
end

Given(/^a type of (.*?)$/) do |type|
  @i.image_type = type
end

Given(/^a window\.innerWidth of (\d+)$/) do |width|
  @i.window_inner_width = width.to_i
end

When(/^I request a "([^"]*)" image$/) do |arg1|
  pending # Write code here that turns the phrase above into concrete actions
end

Then(/^the max visual width should be (\d+)$/) do |arg1|
  pending # Write code here that turns the phrase above into concrete actions
end

Then(/^the source image width should be (\d+)$/) do |width|
  expect(@i.source_width).to eq(width.to_i)
end

Then(/^the source image height should be (\d+)$/) do |height|
  expect(@i.source_height).to eq(height.to_i)
end

Then(/^the image call width should be (\d+)$/) do |width|
  if width.to_i == 0
  	pending
  else 
    expect(@i.image_call_width).to eq(width.to_i)
  end
end

Then(/^the image call height should be (\d+)$/) do |height|
  if height.to_i == 0
  	pending
  else 
    expect(@i.image_call_height).to eq(height.to_i)
  end
end

Then(/^the width attribute should be (\d+)$/) do |width|
  if width.to_i == 0
  	pending
  else 
    expect(@i.attribute_width).to eq(width.to_i)
  end
end

Then(/^the height attribute should be (\d+)$/) do |height|
  if height.to_i == 0
  	pending
  else 
    expect(@i.attribute_height).to eq(height.to_i)
  end
end

{'fraction_non_alphanumeric': 0.16049022468631455, 'fraction_numerical': 0.0026262036766851473, 'mean_word_length': 3.7810320781032076, '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': '376270', 'n_tokens_mistral': 1303, 'n_tokens_neox': 1266, 'n_words': 375}