<commit_before>//
//  UIViewControllerExtension.swift
//  ImoTableView
//
//  Created by <NAME> on 5/10/17.
//  Copyright © 2017 Imodeveloperlab. All rights reserved.
//

import UIKit

public extension UIViewController {
    
    /// Hide keyboard when tapped around
    func hideKeyboardWhenTappedAround() {
        let tap: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(UIViewController.dismissKeyboard))
        tap.cancelsTouchesInView = false
        view.addGestureRecognizer(tap)
    }
    
    ///Dismiss Keyboard
    func dismissKeyboard() {
        view.endEditing(true)
    }
}<commit_msg>In development<commit_after>//
//  UIViewControllerExtension.swift
//  ImoTableView
//
//  Created by <NAME> on 5/10/17.
//  Copyright © 2017 Imodeveloperlab. All rights reserved.
//

import UIKit

public extension UIViewController {
    
    /// Hide keyboard when tapped around
    func hideKeyboardWhenTappedAround() {
        let tap: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(UIViewController.dismissKeyboard))
        tap.cancelsTouchesInView = true
        view.addGestureRecognizer(tap)
    }
    
    ///Dismiss Keyboard
    func dismissKeyboard() {
        view.endEditing(true)
    }
}
{'fraction_non_alphanumeric': 0.09621451104100946, 'fraction_numerical': 0.014195583596214511, 'mean_word_length': 2.990566037735849, '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': '5524060', 'n_tokens_mistral': 422, 'n_tokens_neox': 378, 'n_words': 85}