<commit_before>import UIKit

// User directory path
let path = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)[0] as String
// Filename
let filename = "/file.txt"
// File path
let filePath = path.stringByAppendingString(filename)

class ViewController: UIViewController {
                            
    @IBOutlet var txtFirstname: UITextField
    @IBOutlet var txtLastname: UITextField
    @IBOutlet var txtAge: UITextField
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

    @IBAction func btnSave(sender: UIButton) {
        var firstname = txtFirstname.text as String
        var lastname = txtLastname.text as String
        var age = txtAge.text as String
        
        var message = "The info: \(firstname) \(lastname) is \(age) years old"
        
        // FileManager
        var fileManager = NSFileManager.defaultManager()
        
    }

    @IBAction func btnLoad(sender: UIButton) {
    }
}
<commit_msg>Checking if the file exists<commit_after>import UIKit

// User directory path
let path = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)[0] as String
// Filename
let filename = "/file.txt"
// File path
let filePath = path.stringByAppendingString(filename)

class ViewController: UIViewController {
                            
    @IBOutlet var txtFirstname: UITextField
    @IBOutlet var txtLastname: UITextField
    @IBOutlet var txtAge: UITextField
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

    @IBAction func btnSave(sender: UIButton) {
        var firstname = txtFirstname.text as String
        var lastname = txtLastname.text as String
        var age = txtAge.text as String
        
        var message = "The info: \(firstname) \(lastname) is \(age) years old"
        
        // FileManager
        var fileManager = NSFileManager.defaultManager()
        
        // Check if the file exists
        if(!fileManager.fileExistsAtPath(filePath)){
            
        }else{
        
        }
        
    }

    @IBAction func btnLoad(sender: UIButton) {
    }
}

{'fraction_non_alphanumeric': 0.07766990291262135, 'fraction_numerical': 0.0007766990291262136, 'mean_word_length': 2.4074074074074074, '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': '6526877', 'n_tokens_mistral': 725, 'n_tokens_neox': 698, 'n_words': 213}