<commit_before>require 'gist'

module Woro
  module Adapters
    class Gist < Base
      attr_reader :gist_id

      # Setup configuration for adapter
      # Highline CLI helpers can be used for interactivity.
      # @return [Hash] Configuration options
      def self.setup
        if agree 'Login to Gist/Github for private Woro tasks (Yes/No)?  '
          ::Gist.login!
        end

        # create Gist with welcome file
        # additional tasks will be added to this first gist
        begin
          require File.join(Dir.pwd, 'config', 'application.rb')
          app_name = Rails.application.class.parent_name
        rescue LoadError
          app_name = ask('Application name: ')
        end

        result = create_initial_remote_task(app_name)

        {
          gist_id: result['id'],
          public: false
        }
      end
<commit_msg>update setup to use strings, not symbols in config<commit_after>require 'gist'

module Woro
  module Adapters
    class Gist < Base
      attr_reader :gist_id

      # Setup configuration for adapter
      # Highline CLI helpers can be used for interactivity.
      # @return [Hash] Configuration options
      def self.setup
        if agree 'Login to Gist/Github for private Woro tasks (Yes/No)?  '
          ::Gist.login!
        end

        # create Gist with welcome file
        # additional tasks will be added to this first gist
        begin
          require File.join(Dir.pwd, 'config', 'application.rb')
          app_name = Rails.application.class.parent_name
        rescue LoadError
          app_name = ask('Application name: ')
        end

        result = create_initial_remote_task(app_name)

        {
          'gist_id' => result['id'],
          'public' =>  false
        }
      end

{'fraction_non_alphanumeric': 0.07271702367531004, 'fraction_numerical': 0.0, 'mean_word_length': 2.02901023890785, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4521279', 'n_tokens_mistral': 499, 'n_tokens_neox': 486, 'n_words': 158}