<commit_before>//
//  CeateClipsViewController.swift
//  PinVid
//
//  Created by <NAME> on 2/25/17.
//  Copyright © 2017 SantaClaraiOSConnect. All rights reserved.
//

import UIKit
protocol CreateClipDelegate {
    func newclipReady()
}

// let vc = CreateClips()
// vc.videoId = ""
//

class CreateClipsViewController: UIViewController, VideoViewDelegate {

    var videoId:String = "TgqiSBxvdws"
    var videoView: VideoView!
    var scrubberView = ScrubberView()
    var searchView = SearchView()
    var clipsView = ClipsView()
    var videoUrl: String = ""
    var montage = Montage()
    let networkService = UIApplication.shared.networkService
    var delegate: CreateClipDelegate!

    override func viewDidLoad() {
        super.viewDidLoad()
        videoUrl = "https://www.youtube.com/watch?v=" + videoId
        setupView()
//        setupNav()
    }
    
    override func viewWillAppear(_ animated: Bool) {
        scrubberView.rangeSlider.addTarget(self, action: #selector(rangeSliderValueChanged(sender:)), for: .valueChanged)
        scrubberView.addClip.addTarget(self, action: #selector(addClipPressed(sender:)), for: .touchUpInside)
        scrubberView.timerButton.addTarget(self, action: #selector(tappedTimer(sender:)), for: .touchUpInside)
        scrubberView.tenSecBack.addTarget(self, action: #selector(bigRewind(sender:)), for: .touchUpInside)<commit_msg>fixed crash<commit_after>//
//  CeateClipsViewController.swift
//  PinVid
//
//  Created by <NAME> on 2/25/17.
//  Copyright © 2017 SantaClaraiOSConnect. All rights reserved.
//

import UIKit
protocol CreateClipDelegate {
    func newclipReady()
}

// let vc = CreateClips()
// vc.videoId = ""
//

class CreateClipsViewController: UIViewController, VideoViewDelegate {

    var videoId:String = "TgqiSBxvdws"
    var videoView: VideoView!
    var scrubberView = ScrubberView()
    var searchView = SearchView()
//    var clipsView = ClipsView()
    var videoUrl: String = ""
    var montage = Montage()
    let networkService = UIApplication.shared.networkService
    var delegate: CreateClipDelegate!

    override func viewDidLoad() {
        super.viewDidLoad()
        videoUrl = "https://www.youtube.com/watch?v=" + videoId
        setupView()
//        setupNav()
    }
    
    override func viewWillAppear(_ animated: Bool) {
        scrubberView.rangeSlider.addTarget(self, action: #selector(rangeSliderValueChanged(sender:)), for: .valueChanged)
        scrubberView.addClip.addTarget(self, action: #selector(addClipPressed(sender:)), for: .touchUpInside)
        scrubberView.timerButton.addTarget(self, action: #selector(tappedTimer(sender:)), for: .touchUpInside)
        scrubberView.tenSecBack.addTarget(self, action: #selector(bigRewind(sender:)), for: .touchUpInside)
{'fraction_non_alphanumeric': 0.11777456647398844, 'fraction_numerical': 0.006502890173410405, 'mean_word_length': 3.6459731543624163, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '5322296', 'n_tokens_mistral': 877, 'n_tokens_neox': 845, 'n_words': 180}