<commit_before>import Foundation

let formatter:DateFormatter = DateFormatter()

let date:String = "Tue Jan 31 00:00:00 GMT 2017"
formatter.dateFormat = "E MMM dd HH:mm:ss z yyyy"

// This line causes a crash:
formatter.calendar = Calendar(identifier: .iso8601)
formatter.locale = Locale(identifier: "en_US_POSIX")
formatter.timeZone = TimeZone(secondsFromGMT: 0)

let result = formatter.date(from: date)
if let result = result {
  print("Result: \(result)")
}<commit_msg>Add example of crash<commit_after>import Foundation

let formatter:DateFormatter = DateFormatter()
formatter.dateFormat = "E MMM dd HH:mm:ss z yyyy"
//formatter.calendar = Calendar(identifier: .gregorian)
// This line causes a crash:
formatter.calendar = Calendar(identifier: .iso8601)
formatter.locale = Locale(identifier: "en_US_POSIX")
formatter.timeZone = TimeZone(secondsFromGMT: 0)

let date:String = "Tue Jan 31 00:00:00 GMT 2017"
let result = formatter.date(from: date)
if let result = result {
  print("Result: \(result)")
}
{'fraction_non_alphanumeric': 0.11940298507462686, 'fraction_numerical': 0.03383084577114428, 'mean_word_length': 5.797297297297297, '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': '5736336', 'n_tokens_mistral': 369, 'n_tokens_neox': 318, 'n_words': 94}