<commit_before>Given(/^I have an Image Tag Builder with standard config$/) do
  @itb = ImageTagBuilder.new
end

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

Given(/^a viewport that's (\d+)x(\d+)$/) do |width, height|
  @itb.viewport_width = width
  @itb.viewport_height = height
end

Given(/^a DPR of (\d+)$/) do |dpr|
  @itb.dpr = dpr.to_i
end

When(/^I set the width to (\d+)px$/) do |pixels|
  @itb.requested_with_in_pixels = pixels
end<commit_msg>Set all inputs to integers instead of strings.<commit_after>Given(/^I have an Image Tag Builder with standard config$/) do
  @itb = ImageTagBuilder.new
end

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

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

Given(/^a DPR of (\d+)$/) do |dpr|
  @itb.dpr = dpr.to_i
end

When(/^I set the width to (\d+)px$/) do |pixels|
  @itb.requested_with_in_pixels = pixels.to_i
end
{'fraction_non_alphanumeric': 0.16725978647686832, 'fraction_numerical': 0.0, 'mean_word_length': 3.97787610619469, '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': '831122', 'n_tokens_mistral': 471, 'n_tokens_neox': 451, 'n_words': 122}