<commit_before>import UIKit


protocol WeatherLocationRouter {
    
    func navigateBack()
    
}


class WeatherLocationModalRouter: WeatherLocationRouter {
    
    let viewController: UIViewController
    
    init(viewController: UIViewController) {
        self.viewController = viewController
    }
    
    // MARK: <WeatherLocationRouter>
    
    func navigateBack() {
        self.viewController.dismissViewControllerAnimated(true, completion: nil)
    }
}<commit_msg>Weak reference to ViewController in WeatherLocationRouter to avoid retain cycle<commit_after>import UIKit


protocol WeatherLocationRouter {
    
    func navigateBack()
    
}


class WeatherLocationModalRouter: WeatherLocationRouter {
    
    weak var viewController: UIViewController?
    
    init(viewController: UIViewController) {
        self.viewController = viewController
    }
    
    // MARK: <WeatherLocationRouter>
    
    func navigateBack() {
        self.viewController?.dismissViewControllerAnimated(true, completion: nil)
    }
}
{'fraction_non_alphanumeric': 0.06595538312318137, 'fraction_numerical': 0.0, 'mean_word_length': 3.2821576763485476, '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': '5396036', 'n_tokens_mistral': 281, 'n_tokens_neox': 257, 'n_words': 56}