<commit_before>module UsdaNutrientDatabase
  class Importer
    attr_reader :directory, :version

    def initialize(directory = 'tmp/usda', version = 'sr25')
      @directory = directory
      @version = version
    end

    def import
      downloader.download_and_unzip
      importer_names.each { |importer_name| importer_for(importer_name).import }
    ensure
      downloader.cleanup
    end

    private

    def importer_names
      [
        'Foods', 'Nutrients', 'FoodsNutrients', 'FoodGroups', 'Weights',
        'Footnotes', 'SourceCodes'
      ]
    end<commit_msg>Change the import order<commit_after>module UsdaNutrientDatabase
  class Importer
    attr_reader :directory, :version

    def initialize(directory = 'tmp/usda', version = 'sr25')
      @directory = directory
      @version = version
    end

    def import
      downloader.download_and_unzip
      importer_names.each { |importer_name| importer_for(importer_name).import }
    ensure
      downloader.cleanup
    end

    private

    def importer_names
      [
        'FoodGroups',
        'SourceCodes',
        'Nutrients',
        'Foods',
        'FoodsNutrients',
        'Weights',
        'Footnotes'
      ]
    end
{'fraction_non_alphanumeric': 0.08623548922056384, 'fraction_numerical': 0.003316749585406302, 'mean_word_length': 2.5292397660818713, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5435501', 'n_tokens_mistral': 380, 'n_tokens_neox': 361, 'n_words': 76}