<commit_before>//
//  JASidePanelControllerExtension.swift
//  MusicFav
//
//  Created by <NAME> on 4/11/15.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

import Foundation
import JASidePanels

extension JASidePanelController {
    func prepare() {
        self.view.backgroundColor = UIColor.whiteColor()
        self.allowRightSwipe      = false

        switch UIDevice.currentDevice().userInterfaceIdiom {
        case .Phone:
            self.leftGapPercentage    = 0.8
            self.rightGapPercentage   = 0.8
        case .Pad:
            self.leftGapPercentage    = 0.4
            self.rightGapPercentage   = 0.4
        case .Unspecified:
            self.leftGapPercentage    = 0.8
            self.rightGapPercentage   = 0.8
        }
    }
    func showRightPanelAnimated(animated: Bool, completion: () -> Void) {
        showRightPanelAnimated(true)
        let delayTime = dispatch_time(DISPATCH_TIME_NOW, Int64(0.3 * Double(NSEC_PER_SEC)))
        dispatch_after(delayTime, dispatch_get_main_queue(), completion)
    }
}<commit_msg>JASidePanelController allows right swipe<commit_after>//
//  JASidePanelControllerExtension.swift
//  MusicFav
//
//  Created by <NAME> on 4/11/15.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

import Foundation
import JASidePanels

extension JASidePanelController {
    func prepare() {
        view.backgroundColor = UIColor.whiteColor()
        allowLeftSwipe       = true
        allowRightSwipe      = true

        switch UIDevice.currentDevice().userInterfaceIdiom {
        case .Phone:
            leftGapPercentage    = 0.8
            rightGapPercentage   = 0.8
        case .Pad:
            leftGapPercentage    = 0.4
            rightGapPercentage   = 0.4
        case .Unspecified:
            leftGapPercentage    = 0.8
            rightGapPercentage   = 0.8
        }
    }
    func showRightPanelAnimated(animated: Bool, completion: () -> Void) {
        showRightPanelAnimated(true)
        let delayTime = dispatch_time(DISPATCH_TIME_NOW, Int64(0.3 * Double(NSEC_PER_SEC)))
        dispatch_after(delayTime, dispatch_get_main_queue(), completion)
    }
}
{'fraction_non_alphanumeric': 0.09179869524697111, 'fraction_numerical': 0.023299161230195712, 'mean_word_length': 2.2481089258698943, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '2002674', 'n_tokens_mistral': 682, 'n_tokens_neox': 656, 'n_words': 127}