<commit_before>import Cocoa

class ColorControlsOperation: NSObject {
    static let DefaultBrightness: Float = 0
    static let DefaultSaturation: Float = 1
    static let DefaultContrast: Float = 1
    
    var brightness: Float?
    var saturation: Float?
    var contrast: Float?
    
    init?(brightness: Float?, saturation: Float?, contrast: Float?) {
        if brightness == nil && saturation == nil && contrast == nil {
            return nil
        }
        
        if brightness == ColorControlsOperation.DefaultBrightness &&
            saturation == ColorControlsOperation.DefaultSaturation &&
            contrast == ColorControlsOperation.DefaultContrast {
            return nil
        }
        
        self.brightness = brightness
        self.saturation = saturation
        self.contrast = contrast
    }
    
    override var debugDescription: String {
        return "<ColorControlsOperation \(brightness), \(contrast)>"
    }
}

extension ColorControlsOperation: ImageProcessOperation {<commit_msg>fix: String interpolation warning.<commit_after>import Cocoa

class ColorControlsOperation: NSObject {
    static let DefaultBrightness: Float = 0
    static let DefaultSaturation: Float = 1
    static let DefaultContrast: Float = 1
    
    var brightness: Float?
    var saturation: Float?
    var contrast: Float?
    
    init?(brightness: Float?, saturation: Float?, contrast: Float?) {
        if brightness == nil && saturation == nil && contrast == nil {
            return nil
        }
        
        if brightness == ColorControlsOperation.DefaultBrightness &&
            saturation == ColorControlsOperation.DefaultSaturation &&
            contrast == ColorControlsOperation.DefaultContrast {
            return nil
        }
        
        self.brightness = brightness
        self.saturation = saturation
        self.contrast = contrast
    }
    
    override var debugDescription: String {
        return "<ColorControlsOperation \(brightness ?? -1), \(contrast ?? -1)>"
    }
}

extension ColorControlsOperation: ImageProcessOperation {
{'fraction_non_alphanumeric': 0.08049832295160518, 'fraction_numerical': 0.003833253473885961, 'mean_word_length': 2.521079258010118, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5925813', 'n_tokens_mistral': 530, 'n_tokens_neox': 488, 'n_words': 145}