<commit_before>//
//  ViewController.swift
//  SwiftSound
//
//  Created by <NAME> on 03/11/15.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import Cocoa

class ViewController: NSViewController {
    @IBOutlet weak var textField: NSTextField!
    @IBOutlet weak var slider: NSSlider!
    
    var volume: Float = 0

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }

    override var representedObject: AnyObject? {
        didSet {
        // Update the view, if already loaded.
        }
    }
    
    @IBAction func mute(sender: AnyObject) {
        volume = 0
        NSLog("Mute clicked!")
    }
    
    @IBAction func updateVolume(sender: AnyObject) {
        volume = sender.floatValue
        NSLog("Volume set to: \(volume)")
    }
}

<commit_msg>Bind volume to form output<commit_after>//
//  ViewController.swift
//  SwiftSound
//
//  Created by <NAME> on 03/11/15.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import Cocoa

class ViewController: NSViewController {
    @IBOutlet weak var textField: NSTextField!
    @IBOutlet weak var slider: NSSlider!
    
    var volume: Float = 0

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }

    override var representedObject: AnyObject? {
        didSet {
        // Update the view, if already loaded.
        }
    }
    
    @IBAction func mute(sender: AnyObject) {
        volume = 0
        NSLog("Mute clicked!")
        updateUI()
    }
    
    @IBAction func updateVolume(sender: AnyObject) {
        volume = sender.floatValue
        NSLog("Volume set to: \(volume)")
        updateUI()
    }
    
    func updateUI() {
        textField.floatValue = volume
        slider.floatValue = volume
    }
}


{'fraction_non_alphanumeric': 0.10070384407146725, 'fraction_numerical': 0.012994044396318355, 'mean_word_length': 2.08, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2754449', 'n_tokens_mistral': 587, 'n_tokens_neox': 544, 'n_words': 162}