<commit_before>- params:
    repoman: ../../../../../bin/repoman

- description: Prepare failure test fixture with existing repositories
  command: cp ../../../../../test-integration/fixtures/.somerepoman_success.json .repoman.json
  exitcode: 0

- description: Command list should list down all repositories
  command: '{repoman} list'
  exitcode: 0
  output: ^datagen\nnestor\n$

- description: Command init should succeed due to existing repositories
  command: '{repoman} init'
  exitcode: 0
  output: 'Cloning into '

- description: Command config local should create configuration file from existing repositories
  command: '{repoman} config --local'
  exitcode: 0
  output: 'Creating configuration file: .repoman.json, with local repositories'

- description: Command get should update repositories
  command: '{repoman} get'
  exitcode: 0
  output: 'Current branch master is up to date.'

- description: Command exec should execute same command on all repositories
  command: '{repoman} exec "touch somefile"'
  exitcode: 0
  output: 'touch somefile'

- description: Command changes should display uncommitted changes
  command: '{repoman} changes'
  exitcode: 0
  output: 'somefile'

- description: Command undo should remove uncommitted changes
  command: '{repoman} undo'
  exitcode: 0
  output: 'No local changes to save'

- description: Command exec should execute nothing when there is no matching repo
  command: '{repoman} --tags inexistingtag exec "touch somefile"'
  exitcode: 0
  output: ''<commit_msg>Add integration test for regex flag. #13<commit_after>- params:
    repoman: ../../../../../bin/repoman

- description: Prepare failure test fixture with existing repositories
  command: cp ../../../../../test-integration/fixtures/.somerepoman_success.json .repoman.json
  exitcode: 0

- description: Command list should list down all repositories
  command: '{repoman} list'
  exitcode: 0
  output: ^datagen\nnestor\n$

- description: Command init should succeed due to existing repositories
  command: '{repoman} init'
  exitcode: 0
  output: 'Cloning into '

- description: Command config local should create configuration file from existing repositories
  command: '{repoman} config --local'
  exitcode: 0
  output: 'Creating configuration file: .repoman.json, with local repositories'

- description: Command get should update repositories
  command: '{repoman} get'
  exitcode: 0
  output: 'Current branch master is up to date.'

- description: Command exec should execute same command on all repositories
  command: '{repoman} exec "touch somefile"'
  exitcode: 0
  output: 'touch somefile'

- description: Command changes should display uncommitted changes
  command: '{repoman} changes'
  exitcode: 0
  output: 'somefile'

- description: Command undo should remove uncommitted changes
  command: '{repoman} undo'
  exitcode: 0
  output: 'No local changes to save'

- description: Command exec should execute nothing when tags is specified and there is no matching repo
  command: '{repoman} --tags inexistingtag exec "touch somefile"'
  exitcode: 0
  output: ''

- description: Command exec should execute nothing when regex is specified and there is no matching repo
  command: '{repoman} --regex .*inexistingrepo.* exec "touch somefile"'
  exitcode: 0
  output: ''
{'fraction_non_alphanumeric': 0.09799757281553398, 'fraction_numerical': 0.006371359223300971, 'mean_word_length': 4.056748466257669, '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': '4305561', 'n_tokens_mistral': 946, 'n_tokens_neox': 876, 'n_words': 372}