<commit_before># to use this plugin you need to install wget and imagemagick tool convert
# HEY THERE, this plugin is no longer working, it needs to be modified!

require 'json'
require 'securerandom'
require 'rest-client'

class Logos
  REMOTE_LOGOS_LIST_FILE = 'https://raw.githubusercontent.com/gilbarbara/logos/master/app/logos.json'

  def initialize(choices = 3)
    raise Exception, "choices have to be more than 2" if choices < 2

    @answers = Array.new
    file_list = RestClient.get(REMOTE_LOGOS_LIST_FILE)<commit_msg>Update randomlogo.rb<commit_after># to use this plugin you need to install wget and imagemagick tool convert

require 'json'
require 'securerandom'
require 'rest-client'

class Logos
  REMOTE_LOGOS_LIST_FILE = 'https://raw.githubusercontent.com/gilbarbara/logos/app/app/logos.json'

  def initialize(choices = 3)
    raise Exception, "choices have to be more than 2" if choices < 2

    @answers = Array.new
    file_list = RestClient.get(REMOTE_LOGOS_LIST_FILE)
{'fraction_non_alphanumeric': 0.08366935483870967, 'fraction_numerical': 0.006048387096774193, 'mean_word_length': 4.610169491525424, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1174053', 'n_tokens_mistral': 347, 'n_tokens_neox': 320, 'n_words': 99}