<commit_before>//
//  PagingMenuController.swift
//  PagingMenuController
//
//  Created by <NAME> on 3/18/15.
//  Copyright (c) 2015 kitasuke. All rights reserved.
//

import UIKit

@objc public protocol PagingMenuControllerDelegate: class {
    optional func willMoveToMenuPage(page: Int)
    optional func didMoveToMenuPage(page: Int)
}

public class PagingMenuController: UIViewController, UIScrollViewDelegate {
    
    public weak var delegate: PagingMenuControllerDelegate?
    private var options: PagingMenuOptions!
    private var menuView: MenuView!
    private var contentScrollView: UIScrollView!
    private var contentView: UIView!
    private var pagingViewControllers = [UIViewController]() {
        willSet {
            options.menuItemCount = newValue.count
        }
    }
    private var visiblePagingViewControllers = [UIViewController]()
    private var currentPage: Int = 0
    private var currentViewController: UIViewController!
    private var menuItemTitles: [String] {
        get {
            return pagingViewControllers.map {
                return $0.title ?? "Menu"
            }
        }
    }
    private enum PagingViewPosition {
        case Left
        case Center<commit_msg>Set final attribute to PagingMenuController<commit_after>//
//  PagingMenuController.swift
//  PagingMenuController
//
//  Created by <NAME> on 3/18/15.
//  Copyright (c) 2015 kitasuke. All rights reserved.
//

import UIKit

@objc public protocol PagingMenuControllerDelegate: class {
    optional func willMoveToMenuPage(page: Int)
    optional func didMoveToMenuPage(page: Int)
}

final public class PagingMenuController: UIViewController, UIScrollViewDelegate {
    
    public weak var delegate: PagingMenuControllerDelegate?
    private var options: PagingMenuOptions!
    private var menuView: MenuView!
    private var contentScrollView: UIScrollView!
    private var contentView: UIView!
    private var pagingViewControllers = [UIViewController]() {
        willSet {
            options.menuItemCount = newValue.count
        }
    }
    private var visiblePagingViewControllers = [UIViewController]()
    private var currentPage: Int = 0
    private var currentViewController: UIViewController!
    private var menuItemTitles: [String] {
        get {
            return pagingViewControllers.map {
                return $0.title ?? "Menu"
            }
        }
    }
    private enum PagingViewPosition {
        case Left
        case Center
{'fraction_non_alphanumeric': 0.07102502017756256, 'fraction_numerical': 0.00887812752219532, 'mean_word_length': 2.9224683544303796, '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': '3089825', 'n_tokens_mistral': 701, 'n_tokens_neox': 674, 'n_words': 190}