<commit_before>require 'optparse'
require 'pathname'
require 'uri'

require 'jazzy/doc'
require 'jazzy/podspec_documenter'
require 'jazzy/source_declaration/access_control_level'

module Jazzy
  # rubocop:disable Metrics/ClassLength
  class Config
    attr_accessor :output
    attr_accessor :xcodebuild_arguments
    attr_accessor :author_name
    attr_accessor :module_name
    attr_accessor :github_url
    attr_accessor :github_file_prefix
    attr_accessor :author_url
    attr_accessor :dash_url
    attr_accessor :sourcekitten_sourcefile
    attr_accessor :clean
    attr_accessor :readme_path
    attr_accessor :docset_platform
    attr_accessor :root_url
    attr_accessor :version
    attr_accessor :min_acl
    attr_accessor :skip_undocumented
    attr_accessor :podspec
    attr_accessor :docset_icon
    attr_accessor :docset_path
    attr_accessor :source_directory
    attr_accessor :excluded_files
    attr_accessor :template_directory
    attr_accessor :swift_version
    attr_accessor :assets_directory

    def initialize
      PodspecDocumenter.configure(self, Dir['*.podspec{,.json}'].first)
      self.output = Pathname('docs')
      self.xcodebuild_arguments = []
      self.author_name = ''
      self.module_name = ''
      self.author_url = URI('')
      self.clean = false
      self.docset_platform = 'jazzy'
      self.version = '1.0'
      self.min_acl = SourceDeclaration::AccessControlLevel.public
      self.skip_undocumented = false
      self.source_directory = Pathname.pwd
      self.excluded_files = []
      self.template_directory = Pathname(__FILE__).parent + 'templates'
      self.swift_version = '1.2'
      self.assets_directory = Pathname(__FILE__).parent + '../../lib/jazzy/assets/'
    end

    def podspec=(podspec)<commit_msg>fix error in config file<commit_after>require 'optparse'
require 'pathname'
require 'uri'

require 'jazzy/doc'
require 'jazzy/podspec_documenter'
require 'jazzy/source_declaration/access_control_level'

module Jazzy
  # rubocop:disable Metrics/ClassLength
  class Config
    attr_accessor :output
    attr_accessor :xcodebuild_arguments
    attr_accessor :author_name
    attr_accessor :module_name
    attr_accessor :github_url
    attr_accessor :github_file_prefix
    attr_accessor :author_url
    attr_accessor :dash_url
    attr_accessor :sourcekitten_sourcefile
    attr_accessor :clean
    attr_accessor :readme_path
    attr_accessor :docset_platform
    attr_accessor :root_url
    attr_accessor :version
    attr_accessor :min_acl
    attr_accessor :skip_undocumented
    attr_accessor :podspec
    attr_accessor :docset_icon
    attr_accessor :docset_path
    attr_accessor :source_directory
    attr_accessor :excluded_files
    attr_accessor :template_directory
    attr_accessor :swift_version
    attr_accessor :assets_directory

    def initialize
      PodspecDocumenter.configure(self, Dir['*.podspec{,.json}'].first)
      self.output = Pathname('docs')
      self.xcodebuild_arguments = []
      self.author_name = ''
      self.module_name = ''
      self.author_url = URI('')
      self.clean = false
      self.docset_platform = 'jazzy'
      self.version = '1.0'
      self.min_acl = SourceDeclaration::AccessControlLevel.public
      self.skip_undocumented = false
      self.source_directory = Pathname.pwd
      self.excluded_files = []
      self.template_directory = Pathname(__FILE__).parent + 'templates'
      self.swift_version = '1.2'
      self.assets_directory = Pathname(__FILE__).parent + 'assets'
    end

    def podspec=(podspec)
{'fraction_non_alphanumeric': 0.0781161872532431, 'fraction_numerical': 0.0022560631697687537, 'mean_word_length': 3.780323450134771, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6844591', 'n_tokens_mistral': 1135, 'n_tokens_neox': 1126, 'n_words': 205}