<commit_before>//
// This file is part of Nabigeta
//
// Created by JC on 29/10/15.
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code
//

import Foundation

public class TransitionBuilder {
    internal var transitions:[Transition] = []

    public func setPresentation(presentation: PresentationStyle, _ trait: UITraitCollection? = nil) {
        self.transitions.append(Transition(presentation: presentation, trait: trait))
    }
}<commit_msg>[transition] added convenience trait methods<commit_after>//
// This file is part of Nabigeta
//
// Created by JC on 29/10/15.
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code
//

import Foundation

public class TransitionBuilder {
    internal var transitions:[Transition] = []

    public func setPresentation(presentation: PresentationStyle, _ trait: UITraitCollection? = nil) {
        self.transitions.append(Transition(presentation: presentation, trait: trait))
    }

    public func setPresentation(presentation: PresentationStyle, _ horizontalSizeClass: UIUserInterfaceSizeClass) {
        let trait = UITraitCollection(horizontalSizeClass: horizontalSizeClass)

        self.setPresentation(presentation, trait)
    }

    public func setPresentation(presentation: PresentationStyle, _ horizontalSizeClass: UIUserInterfaceSizeClass, _ verticalSizeClass: UIUserInterfaceSizeClass) {
        let trait = UITraitCollection(traitsFromCollections: [
            UITraitCollection(horizontalSizeClass: horizontalSizeClass),
            UITraitCollection(verticalSizeClass: verticalSizeClass)
            ])

        self.setPresentation(presentation, trait)
    }
}
{'fraction_non_alphanumeric': 0.07753254102999434, 'fraction_numerical': 0.006791171477079796, 'mean_word_length': 4.12463768115942, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3509330', 'n_tokens_mistral': 457, 'n_tokens_neox': 421, 'n_words': 133}