<commit_before>import Foundation
import UIKit

class WeatherListViewController: UITableViewController, WeatherListView {
    
    var viewModel: WeatherListViewModel?
    var presenter: WeatherListPresenter?
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.navigationItem.rightBarButtonItem = self.addButtonItem()
        
        self.presenter?.loadContent()
    }
    
    // MARK: - CityListView
    
    func displayWeatherList(viewModel: WeatherListViewModel) {
        self.viewModel = viewModel
        self.tableView.reloadData()
    }<commit_msg>Refresh weather list<commit_after>import Foundation
import UIKit

class WeatherListViewController: UITableViewController, WeatherListView {
    
    var viewModel: WeatherListViewModel?
    var presenter: WeatherListPresenter?
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.navigationItem.rightBarButtonItem = self.addButtonItem()
        
        self.presenter?.loadContent()
    }
    
    override func viewWillAppear(animated: Bool) {
        super.viewWillAppear(animated)
        
        self.presenter?.loadContent()
    }
    
    // MARK: - CityListView
    
    func displayWeatherList(viewModel: WeatherListViewModel) {
        self.viewModel = viewModel
        self.tableView.reloadData()
    }
{'fraction_non_alphanumeric': 0.0744920993227991, 'fraction_numerical': 0.0, 'mean_word_length': 2.8439306358381504, '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': '6079570', 'n_tokens_mistral': 380, 'n_tokens_neox': 351, 'n_words': 66}