<commit_before>class PostAction: Action {

  private let identifier = "->"
  private let postRepository: PostRepository

  init(postRepository: PostRepository) {
    self.postRepository = postRepository
  }

  func canExecute(action: Input) -> Bool {
    return identifier == action.getParamAtPosition(1)
  }

  func execute(input: Input) {
    let user = User(name: input.getParamAtPosition(0))
    let message = input.getParamAtPosition(2)
    postRepository.store(Post(user: user, message: message))
  }

}<commit_msg>Use new Input API<commit_after>class PostAction: Action {

  private let identifier = "->"
  private let postRepository: PostRepository

  init(postRepository: PostRepository) {
    self.postRepository = postRepository
  }

  func canExecute(input: Input) -> Bool {
    return input.hasIdentifier(identifier)
  }

  func execute(input: Input) {
    let user = User(name: input.getFirstArgument())
    let message = input.getIdentifierArgument(identifier)!
    postRepository.store(Post(user: user, message: message))
  }

}
{'fraction_non_alphanumeric': 0.10440613026819924, 'fraction_numerical': 0.0028735632183908046, 'mean_word_length': 4.331632653061225, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5449615', 'n_tokens_mistral': 307, 'n_tokens_neox': 294, 'n_words': 72}