<commit_before>require 'open-uri'
require 'yaml'

class Shard

  class Gist

    ################
    #              #
    # Declarations #
    #              #
    ################

    SHARD_FILENAME = /(?:^(\w+)\.)?shard\.rb$/

    ###############
    #             #
    # Constructor #
    #             #
    ###############
    
    def initialize(gist_hash)
      @gist_hash = gist_hash
    end

    ####################
    #                  #
    # Instance Methods #
    #                  #
    ####################
    
    def description<commit_msg>We should download all shard files<commit_after>require 'yaml'

class Shard

  class Gist

    ################
    #              #
    # Declarations #
    #              #
    ################

    SHARD_FILENAME = /(?:^(\w+)\.)?shard\.rb$/

    ###############
    #             #
    # Constructor #
    #             #
    ###############
    
    def initialize(gist_hash)
      @gist_hash = gist_hash
    end

    ####################
    #                  #
    # Instance Methods #
    #                  #
    ####################
    
    def all_files
      files.values
    end

    def description
{'fraction_non_alphanumeric': 0.2529711375212224, 'fraction_numerical': 0.0, 'mean_word_length': 1.3627254509018036, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '609367', 'n_tokens_mistral': 367, 'n_tokens_neox': 329, 'n_words': 48}