<commit_before>use Test::Simple tests=> 2;
use warnings;
use strict;
use Test::MockObject;

use FileStore::FileStoreService;

my $file_store = FileStore::FileStoreService->new(
    'root_path' => '/tmp',
    'url_base' => 'http://urbancamper.ru/cdn/images/'
);

my $file_initial_path = '/tmp/temp_file';
open my $file_to_create, '<', $file_file_initial_path;
print $file_to_create "fancy text";
close($file_to_create);
$file_id = $file_store->store_file($file_file_initial_path);
ok(lenght($file_id) > 0, 'File id is no null');

$is_existed = $file_store->delete_file_by_id($file_id);
ok($is_existed, 'File was deleted from store');

unlink $file_file_initial_path;
<commit_msg>master Another misspelled perl command in this case length<commit_after>use Test::Simple tests=> 2;
use warnings;
use strict;
use Test::MockObject;

use FileStore::FileStoreService;

my $file_store = FileStore::FileStoreService->new(
    'root_path' => '/tmp',
    'url_base' => 'http://urbancamper.ru/cdn/images/'
);

my $file_initial_path = '/tmp/temp_file';
open my $file_to_create, '>', $file_initial_path;
print $file_to_create "fancy text";
close($file_to_create);
my  $file_id = $file_store->store_file($file_initial_path);
ok(length($file_id) > 0, 'File id is no null');

my $is_existed = $file_store->delete_file_by_id($file_id);
ok($is_existed, 'File was deleted from store');

unlink $file_initial_path;

{'fraction_non_alphanumeric': 0.15218951902368988, 'fraction_numerical': 0.002871500358937545, 'mean_word_length': 6.7444444444444445, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 18, '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': '2465869', 'n_tokens_mistral': 515, 'n_tokens_neox': 509, 'n_words': 110}