<commit_before>project_name = read_project_name
authorize(project_name, 'admin')
project = Project.new(project_name)

permissions = project.lock { project.permissions }

if @options[:format] == :yaml
  puts YAML::dump(permissions)
elsif @options[:format] == :text
  permissions.each do |permission|
    puts "#{permission['user']}=#{permission['access']}"<commit_msg>Fix bug where list-permissions only returns '='.<commit_after>project_name = read_project_name
authorize(project_name, 'admin')
project = Project.new(project_name)

permissions = project.lock { project.permissions }

if @options[:format] == :yaml
  puts YAML::dump(permissions)
elsif @options[:format] == :text
  permissions.each do |permission|
    puts "#{permission[:user]}=#{permission[:access]}"
{'fraction_non_alphanumeric': 0.14993481095176012, 'fraction_numerical': 0.0, 'mean_word_length': 7.258064516129032, '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': '7220721', 'n_tokens_mistral': 235, 'n_tokens_neox': 240, 'n_words': 49}