<commit_before>#lang racket/base
(provide set-dock-tile-bitmap)
(require ffi/unsafe/objc
         ffi/unsafe/atomic
         mred/private/wx/cocoa/image
         mred/private/wx/cocoa/utils)

(import-class NSApplication
              NSImageView)

(define (set-dock-tile-bitmap bm)
  (unless old-cocoa?
    (define dock-tile (tell (tell NSApplication sharedApplication) dockTile))
    (start-atomic)
    (define view (tell (tell NSImageView alloc) init))
    (tellv view setImage: (bitmap->image bm))
    
    (tellv dock-tile setContentView: view)
    (tellv dock-tile display)
    (tellv view release)
    (end-atomic)))<commit_msg>fix (disable) for test<commit_after>#lang racket/base
(provide set-dock-tile-bitmap)
(require ffi/unsafe/objc
         ffi/unsafe/atomic
         mred/private/wx/cocoa/image
         mred/private/wx/cocoa/utils)

(module test racket/base)

(import-class NSApplication
              NSImageView)

(define (set-dock-tile-bitmap bm)
  (unless old-cocoa?
    (define dock-tile (tell (tell NSApplication sharedApplication) dockTile))
    (start-atomic)
    (define view (tell (tell NSImageView alloc) init))
    (tellv view setImage: (bitmap->image bm))
    
    (tellv dock-tile setContentView: view)
    (tellv dock-tile display)
    (tellv view release)
    (end-atomic)))
{'fraction_non_alphanumeric': 0.11579754601226994, 'fraction_numerical': 0.0, 'mean_word_length': 3.0654205607476634, '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': '254364', 'n_tokens_mistral': 464, 'n_tokens_neox': 428, 'n_words': 101}