<commit_before>//
//  MenuViewCustomizable.swift
//  PagingMenuController
//
//  Created by <NAME> on 5/23/16.
//  Copyright (c) 2015 kitasuke. All rights reserved.
//

import Foundation

public protocol MenuViewCustomizable {
    var backgroundColor: UIColor { get }
    var selectedBackgroundColor: UIColor { get }
    var height: CGFloat { get }
    var animationDuration: TimeInterval { get }
    var deceleratingRate: CGFloat { get }
    var selectedItemCenter: Bool { get }
    var displayMode: MenuDisplayMode { get }
    var focusMode: MenuFocusMode { get }
    var dummyItemViewsSet: Int { get }
    var menuPosition: MenuPosition { get }
    var dividerImage: UIImage? { get }
    var itemsOptions: [MenuItemViewCustomizable] { get }
}

public extension MenuViewCustomizable {
    var backgroundColor: UIColor {
        return UIColor.white
    }
    var selectedBackgroundColor: UIColor {
        return UIColor.white
    }
    var height: CGFloat {
        return 50
    }
    var animationDuration: TimeInterval {
        return 0.3
    }
    var deceleratingRate: CGFloat {
        return UIScrollViewDecelerationRateFast
    }
    var selectedItemCenter: Bool {
        return true
    }
    var displayMode: MenuDisplayMode {
        return .standard(widthMode: .flexible, centerItem: false, scrollingMode: .pagingEnabled)
    }
    var focusMode: MenuFocusMode {
        return .underline(height: 3, color: UIColor.blue, horizontalPadding: 0, verticalPadding: 0)
    }
    var dummyItemViewsSet: Int {
        return 3
    }
    var menuPosition: MenuPosition {
        return .top
    }
    var dividerImage: UIImage? {
        return nil
    }
}

public enum MenuDisplayMode {
    case standard(widthMode: MenuItemWidthMode, centerItem: Bool, scrollingMode: MenuScrollingMode)
    case segmentedControl
    case infinite(widthMode: MenuItemWidthMode, scrollingMode: MenuScrollingMode)
}

public extension MenuViewCustomizable {
    var pagingViewWidth: CGFloat {
        return 320
    }
}

public enum MenuItemWidthMode {
    case flexible
    case fixed(width: CGFloat)
}

public enum MenuScrollingMode {
    case scrollEnabled
    case scrollEnabledAndBouces
    case pagingEnabled
}

public enum MenuFocusMode {
    case none
    case underline(height: CGFloat, color: UIColor, horizontalPadding: CGFloat, verticalPadding: CGFloat)
    case roundRect(radius: CGFloat, horizontalPadding: CGFloat, verticalPadding: CGFloat, selectedColor: UIColor)
}

public enum MenuPosition {
    case top
    case bottom
}
<commit_msg>updating pagingViewWidth accessors<commit_after>//
//  MenuViewCustomizable.swift
//  PagingMenuController
//
//  Created by <NAME> on 5/23/16.
//  Copyright (c) 2015 kitasuke. All rights reserved.
//

import Foundation

public protocol MenuViewCustomizable {
    var backgroundColor: UIColor { get }
    var selectedBackgroundColor: UIColor { get }
    var height: CGFloat { get }
    var animationDuration: TimeInterval { get }
    var deceleratingRate: CGFloat { get }
    var selectedItemCenter: Bool { get }
    var displayMode: MenuDisplayMode { get }
    var focusMode: MenuFocusMode { get }
    var dummyItemViewsSet: Int { get }
    var menuPosition: MenuPosition { get }
    var dividerImage: UIImage? { get }
    var itemsOptions: [MenuItemViewCustomizable] { get }
    var pagingViewWidth: CGFloat { get set }
}

public extension MenuViewCustomizable {
    var backgroundColor: UIColor {
        return UIColor.white
    }
    var selectedBackgroundColor: UIColor {
        return UIColor.white
    }
    var height: CGFloat {
        return 50
    }
    var animationDuration: TimeInterval {
        return 0.3
    }
    var deceleratingRate: CGFloat {
        return UIScrollViewDecelerationRateFast
    }
    var selectedItemCenter: Bool {
        return true
    }
    var displayMode: MenuDisplayMode {
        return .standard(widthMode: .flexible, centerItem: false, scrollingMode: .pagingEnabled)
    }
    var focusMode: MenuFocusMode {
        return .underline(height: 3, color: UIColor.blue, horizontalPadding: 0, verticalPadding: 0)
    }
    var dummyItemViewsSet: Int {
        return 3
    }
    var menuPosition: MenuPosition {
        return .top
    }
    var dividerImage: UIImage? {
        return nil
    }
}

public enum MenuDisplayMode {
    case standard(widthMode: MenuItemWidthMode, centerItem: Bool, scrollingMode: MenuScrollingMode)
    case segmentedControl
    case infinite(widthMode: MenuItemWidthMode, scrollingMode: MenuScrollingMode)
}

public enum MenuItemWidthMode {
    case flexible
    case fixed(width: CGFloat)
}

public enum MenuScrollingMode {
    case scrollEnabled
    case scrollEnabledAndBouces
    case pagingEnabled
}

public enum MenuFocusMode {
    case none
    case underline(height: CGFloat, color: UIColor, horizontalPadding: CGFloat, verticalPadding: CGFloat)
    case roundRect(radius: CGFloat, horizontalPadding: CGFloat, verticalPadding: CGFloat, selectedColor: UIColor)
}

public enum MenuPosition {
    case top
    case bottom
}

{'fraction_non_alphanumeric': 0.0697444026154151, 'fraction_numerical': 0.007331087774915791, 'mean_word_length': 3.161582852431987, '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': '3218689', 'n_tokens_mistral': 1488, 'n_tokens_neox': 1454, 'n_words': 419}