<commit_before><commit_msg>Added old card to db script<commit_after>#!/usr/bin/perl -w
use strict;
use File::Slurp;

my $cards = read_file('magic.cards');

# Key / Value Separator
$cards =~ s/^([^:]+): \t/$1 = /msg;

# Power and Toughness Separation
my $power = '[^{}\/]+|[^{}\/]*{[^}]+}';
my $tough = $power;
$cards =~
    s/^Pow\/Tgh = \(($power)\/($tough)\)[^\n]*/Power = $1\nToughness = $2/msg;
$cards =~ s/^Pow\/Tgh = $/Power =\nToughness =/msg;

# Card Separator
$cards =~ s/^(Set\/Rarity = [^\n]*\n)/$1|/msg;
print "^$cards\n$"
{'fraction_non_alphanumeric': 0.2902621722846442, 'fraction_numerical': 0.00749063670411985, 'mean_word_length': 3.7767857142857144, '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': '6756864', 'n_tokens_mistral': 244, 'n_tokens_neox': 235, 'n_words': 47}