<commit_before>module HP
  module Scalene
    class CLI < Thor

      map %w(fetch) => 'get'

      desc 'get <resource>', 'fetch an object to local file system'
      long_desc "Get an object (file) from a bucket and copy to the current directory on your local file system.
                The file will retain its name.  This is a convenience command for 'copy'.
                For example, the command 'scalene get :my_bucket/my_file.txt' is equivilant to calling
                'scalene copy :my_bucket/my_file.txt ./my_file.txt'.
                \n\nExamples: scalene get :my_bucket/my_file.txt
                \n\nAliases: 'fetch'
                \n\nNote: 'get' currently supports fetching of files, but not entire buckets.
                    It does not yet support wildcards."
      def get(resource)
        bucket, path = Bucket.parse_resource(resource)
        type = Resource.detect_type(resource)

        if :object == type
          copy(resource, "#{File.basename(path)}")
        elsif :bucket == type<commit_msg>Remove unneeded interpolation.<commit_after>module HP
  module Scalene
    class CLI < Thor

      map %w(fetch) => 'get'

      desc 'get <resource>', 'fetch an object to local file system'
      long_desc "Get an object (file) from a bucket and copy to the current directory on your local file system.
                The file will retain its name.  This is a convenience command for 'copy'.
                For example, the command 'scalene get :my_bucket/my_file.txt' is equivilant to calling
                'scalene copy :my_bucket/my_file.txt ./my_file.txt'.
                \n\nExamples: scalene get :my_bucket/my_file.txt
                \n\nAliases: 'fetch'
                \n\nNote: 'get' currently supports fetching of files, but not entire buckets.
                    It does not yet support wildcards."
      def get(resource)
        bucket, path = Bucket.parse_resource(resource)
        type = Resource.detect_type(resource)

        if :object == type
          copy(resource, File.basename(path))
        elsif :bucket == type
{'fraction_non_alphanumeric': 0.08365384615384615, 'fraction_numerical': 0.0, 'mean_word_length': 2.1722560975609757, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3072822', 'n_tokens_mistral': 585, 'n_tokens_neox': 558, 'n_words': 211}