<commit_before>#! /usr/local/bin/ruby -w
require 'RMagick'

# Demonstrate the Image#radial_blur method

img = Magick::Image.read('images/Flower_Hat.jpg').first

# Make a blurry copy.
img = img.radial_blur(10.0)

img.write('radial_blur.jpg')
exit
<commit_msg>Catch "not implemented" exception<commit_after>#! /usr/local/bin/ruby -w
require 'RMagick'

# Demonstrate the Image#radial_blur method

img = Magick::Image.read('images/Flower_Hat.jpg').first

# Make a blurry copy.
begin
    result = img.radial_blur(10.0)

# Substitute the standard "Not Implemented" image
rescue NotImplementedError
    result = Magick::Image.read("images/notimplemented.gif").first
    result.resize!(img.columns, img.rows)
end

result.write('radial_blur.jpg')
exit

{'fraction_non_alphanumeric': 0.13324360699865412, 'fraction_numerical': 0.008075370121130552, 'mean_word_length': 5.098360655737705, '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': '5733011', 'n_tokens_mistral': 283, 'n_tokens_neox': 269, 'n_words': 55}