<commit_before>#!/usr/bin/env ruby

require 'json'

cyber_dojo_root = File.expand_path('..', File.dirname(__FILE__))

image_names = [ ]
Dir.glob("#{cyber_dojo_root}/languages/*/*/manifest.json") do |file|
  manifest = JSON.parse(IO.read(file))
  image_names << manifest['image_name']
end

puts image_names.sort<commit_msg>show display-names when listing image names<commit_after>#!/usr/bin/env ruby

require 'json'

cyber_dojo_root = File.expand_path('..', File.dirname(__FILE__))

image_names = []
Dir.glob("#{cyber_dojo_root}/languages/*/*/manifest.json") do |file|
  manifest = JSON.parse(IO.read(file))
  image_names << (manifest['image_name'] + ' == ' + manifest['display_name'])
end

puts image_names.sort
{'fraction_non_alphanumeric': 0.17580872011251758, 'fraction_numerical': 0.0, 'mean_word_length': 5.716981132075472, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6068846', 'n_tokens_mistral': 264, 'n_tokens_neox': 256, 'n_words': 41}