<commit_before>require 'octokit'

module DPL
  class Provider
    class Pages < Provider
      """Implements Github Pages deployment

      Options:
        - repo [optional, for pushed to other repos]
        - github-token [required]
        - github-url [optional, defaults to github.com]
        - target-branch [optional, defaults to gh-pages]
        - keep-history [optional, defaults to false]
        - allow-empty-commit [optional, defaults to false]
        - committer-from-gh [optional, defaults to false]
        - verbose [optional, defaults to false]
        - local-dir [optional, defaults to `pwd`]
        - fqdn [optional]
        - project-name [optional, defaults to fqdn or repo slug]
        - email [optional, defaults to <EMAIL>]
        - name [optional, defaults to Deployment Bot]
        - deployment-file [optional, defaults to false]
      """

      require 'tmpdir'
      experimental 'GitHub Pages'

      def initialize(context, options)
        super

        @build_dir = File.join(src_dir, options[:local_dir] || '.')
        print_step "The target dir for deployment is '#{@build_dir}'."

        @project_name = options[:project_name] || fqdn || slug
        @target_branch = options[:target_branch] || 'gh-pages'
<commit_msg>GitHub Pages is no longer experimental<commit_after>require 'octokit'

module DPL
  class Provider
    class Pages < Provider
      """Implements Github Pages deployment

      Options:
        - repo [optional, for pushed to other repos]
        - github-token [required]
        - github-url [optional, defaults to github.com]
        - target-branch [optional, defaults to gh-pages]
        - keep-history [optional, defaults to false]
        - allow-empty-commit [optional, defaults to false]
        - committer-from-gh [optional, defaults to false]
        - verbose [optional, defaults to false]
        - local-dir [optional, defaults to `pwd`]
        - fqdn [optional]
        - project-name [optional, defaults to fqdn or repo slug]
        - email [optional, defaults to <EMAIL>]
        - name [optional, defaults to Deployment Bot]
        - deployment-file [optional, defaults to false]
      """

      require 'tmpdir'

      def initialize(context, options)
        super

        @build_dir = File.join(src_dir, options[:local_dir] || '.')
        print_step "The target dir for deployment is '#{@build_dir}'."

        @project_name = options[:project_name] || fqdn || slug
        @target_branch = options[:target_branch] || 'gh-pages'

{'fraction_non_alphanumeric': 0.10455445544554455, 'fraction_numerical': 0.0, 'mean_word_length': 2.4650205761316872, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1520035', 'n_tokens_mistral': 727, 'n_tokens_neox': 688, 'n_words': 224}