<commit_before>import Swinject
import SwinjectStoryboard

extension SwinjectStoryboard
{
    class func setup()
    {
        Container.loggingFunction = nil
        
        setupViewConrollers(defaultContainer)
        setupHelpers(defaultContainer)
        setupData(defaultContainer)
        setupFactories(defaultContainer)
    }
}

private func setupViewConrollers(_ defaultContainer: Container)
{
    defaultContainer.storyboardInitCompleted(AccountViewController.self)
    { (r, c) in
        c.userData = r.resolve(UserDataProtocol.self)
    }
    
    defaultContainer.storyboardInitCompleted(EventsTableViewController.self)
    { (r, c) in
        c.eventData = r.resolve(EventDataProtocol.self)
    }
    
    defaultContainer.storyboardInitCompleted(CreateEventViewController.self)
    { (r, c) in
        c.eventData = r.resolve(EventDataProtocol.self)
    }
    
    defaultContainer.storyboardInitCompleted(LogoutViewController.self) {
        (r, c) in
        c.userData = r.resolve(UserDataProtocol.self)
    }
    defaultContainer.storyboardInitCompleted(MyFriendsViewController.self) {
        (r, c) in
        c.userData = r.resolve(UserDataProtocol.self)
    }<commit_msg>Fix dependency inejction<commit_after>import Swinject
import SwinjectStoryboard

extension SwinjectStoryboard
{
    class func setup()
    {
        Container.loggingFunction = nil
        
        setupViewConrollers(defaultContainer)
        setupHelpers(defaultContainer)
        setupData(defaultContainer)
        setupFactories(defaultContainer)
    }
}

private func setupViewConrollers(_ defaultContainer: Container)
{
    defaultContainer.storyboardInitCompleted(AccountViewController.self)
    { (r, c) in
        c.userData = r.resolve(UserDataProtocol.self)
    }
    
    defaultContainer.storyboardInitCompleted(EventsTableViewController.self)
    { (r, c) in
        c.eventData = r.resolve(EventDataProtocol.self)
    }
    
    defaultContainer.storyboardInitCompleted(CreateEventViewController.self)
    { (r, c) in
        c.eventData = r.resolve(EventDataProtocol.self)
    }
    
    defaultContainer.storyboardInitCompleted(LogoutViewController.self) {
        (r, c) in
        c.userData = r.resolve(UserDataProtocol.self)
    }
    defaultContainer.storyboardInitCompleted(MyFriendsViewController.self) {
        (r, c) in
        c.userData = r.resolve(UserDataProtocol.self)
    }
    defaultContainer.storyboardInitCompleted(FriendEventsTableViewController.self) {
        (r, c) in
        c.eventData = r.resolve(EventDataProtocol.self)
    }
{'fraction_non_alphanumeric': 0.08216510903426791, 'fraction_numerical': 0.0, 'mean_word_length': 3.2462809917355373, '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': '664354', 'n_tokens_mistral': 730, 'n_tokens_neox': 719, 'n_words': 108}