<commit_before>import Foundation
import UIKit

// Subscribable is a protocol view controllers can conform to if they want to have
// the UI to allow users to subscribe to notifications for models
// Ex: The 'Event' view controller conforms to Subscribable, which shows the subscribe UI

protocol Subscribable {
    var myTBA: MyTBA { get }
    var favoriteBarButtonItem: UIBarButtonItem { get }
    var subscribableModel: MyTBASubscribable { get }
}

extension Subscribable where Self: UIViewController, Self: Persistable {

    func presentMyTBAPreferences() {
        let myTBAPreferencesViewController = MyTBAPreferenceViewController(subscribableModel: subscribableModel,
                                                                           myTBA: myTBA,
                                                                           persistentContainer: persistentContainer)
        let navController = UINavigationController(rootViewController: myTBAPreferencesViewController)

        present(navController, animated: true, completion: nil)
    }

}<commit_msg>Show MyTBA preferences in form sheet on iPad (#389)<commit_after>import Foundation
import UIKit

// Subscribable is a protocol view controllers can conform to if they want to have
// the UI to allow users to subscribe to notifications for models
// Ex: The 'Event' view controller conforms to Subscribable, which shows the subscribe UI

protocol Subscribable {
    var myTBA: MyTBA { get }
    var favoriteBarButtonItem: UIBarButtonItem { get }
    var subscribableModel: MyTBASubscribable { get }
}

extension Subscribable where Self: UIViewController, Self: Persistable {

    func presentMyTBAPreferences() {
        let myTBAPreferencesViewController = MyTBAPreferenceViewController(subscribableModel: subscribableModel,
                                                                           myTBA: myTBA,
                                                                           persistentContainer: persistentContainer)
        let navController = UINavigationController(rootViewController: myTBAPreferencesViewController)
        navController.modalPresentationStyle = .formSheet

        present(navController, animated: true, completion: nil)
    }

}
{'fraction_non_alphanumeric': 0.048343777976723366, 'fraction_numerical': 0.0013428827215756492, 'mean_word_length': 2.5476190476190474, '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': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6714291', 'n_tokens_mistral': 533, 'n_tokens_neox': 493, 'n_words': 174}