<commit_before>use v6;

use lib 't/spec/packages';

use Test;
use Test::Util;

plan 48;

for False, True -> $eager {
    is "a\nb\n\nc".lines(:$eager).join('|'),
      'a|b||c', 'LF .lines without trailing';
    is "a\nb\n\nc\n".lines(:$eager).join('|'),
      'a|b||c', 'LF .lines with trailing';<commit_msg>Add note that :$eager param is not used and needs to be cleaned<commit_after>use v6;

use lib 't/spec/packages';

use Test;
use Test::Util;

plan 48;

##############################################################
####
#### XXX TODO .lines does not take an $eager param so these
#### tests needs to stop testing using it
####
##############################################################

for False, True -> $eager {
    is "a\nb\n\nc".lines(:$eager).join('|'),
      'a|b||c', 'LF .lines without trailing';
    is "a\nb\n\nc\n".lines(:$eager).join('|'),
      'a|b||c', 'LF .lines with trailing';
{'fraction_non_alphanumeric': 0.3219404630650496, 'fraction_numerical': 0.006615214994487321, 'mean_word_length': 4.072625698324022, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3461858', 'n_tokens_mistral': 324, 'n_tokens_neox': 311, 'n_words': 87}