<commit_before><commit_msg>Adding shell script for displaying data as given by task<commit_after>#!/usr/bin/env ruby
$: <<  File.join(File.expand_path(File.dirname(__FILE__)), '../lib')
require "credio"

credit_card_array = []

STDIN.each_line do |str|
  str.chomp!
  break if str.empty?
  credit_card_array << str
end


credit_card_array.each {|number|
  credit_card = Credio::Models::CreditCard.new number
#  puts "#{credit_card.type}: #{credit_card.number} #{credit_card.valid ? "valid" : "invalid" }"
  printf("%-29s(%s)\n", credit_card.type+": "+credit_card.number, credit_card.valid ? "valid" : "invalid");
}

{'fraction_non_alphanumeric': 0.16910569105691056, 'fraction_numerical': 0.0032520325203252032, 'mean_word_length': 5.484210526315789, 'pattern_counts': {'":': 1, '<': 7, '<?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': '4573282', 'n_tokens_mistral': 231, 'n_tokens_neox': 216, 'n_words': 43}