<commit_before>! Copyright (C) 2009 <NAME>.
! See http://factorcode.org/license.txt for BSD license.
USING: images tools.test kernel accessors ;
IN: images.tests

[ B{ 57 57 57 255 } ] [ 1 1 T{ image f { 2 3 } RGBA f B{
    0 0 0 0 
    0 0 0 0 
    0 0 0 0 
    0 0 0 0 
    57 57 57 255
    0 0 0 0 
} } pixel-at ] unit-test

[ B{
    0 0 0 0 
    0 0 0 0 
    0 0 0 0 
    0 0 0 0 
    57 57 57 255
    0 0 0 0 
} ] [ B{ 57 57 57 255 } 1 1 T{ image f { 2 3 } RGBA f B{
    0 0 0 0 
    0 0 0 0 
    0 0 0 0 
    0 0 0 0 
    0 0 0 0 
    0 0 0 0 
} } [ set-pixel-at ] keep bitmap>> ] unit-test<commit_msg>fixing images unit test<commit_after>! Copyright (C) 2009 <NAME>.
! See http://factorcode.org/license.txt for BSD license.
USING: images tools.test kernel accessors ;
IN: images.tests

[ B{ 57 57 57 255 } ] [ 1 1 T{ image f { 2 3 } RGBA f B{
    0 0 0 0 
    0 0 0 0 
    0 0 0 0 
    57 57 57 255
    0 0 0 0 
    0 0 0 0 
} } pixel-at ] unit-test

[ B{
    0 0 0 0 
    0 0 0 0 
    0 0 0 0 
    57 57 57 255
    0 0 0 0 
    0 0 0 0 
} ] [ B{ 57 57 57 255 } 1 1 T{ image f { 2 3 } RGBA f B{
    0 0 0 0 
    0 0 0 0 
    0 0 0 0 
    0 0 0 0 
    0 0 0 0 
    0 0 0 0 
} } [ set-pixel-at ] keep bitmap>> ] unit-test
{'fraction_non_alphanumeric': 0.0929853181076672, 'fraction_numerical': 0.18270799347471453, 'mean_word_length': 1.4153543307086613, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '646122', 'n_tokens_mistral': 719, 'n_tokens_neox': 500, 'n_words': 254}