<commit_before>#!/usr/bin/env ruby
# encoding: utf-8

buildpacks_ci_dir = File.expand_path(File.join(File.dirname(__FILE__), '..'))
require "#{buildpacks_ci_dir}/lib/tracker-client"
require 'octokit'

class OpenGithubStoryCreator

  def self.create_pull_requests_story
    story_title = 'Review Open Pull Requests'
    story_description = 'Provide feedback for open pull requests in repos that the buildpacks team owns.'
    story_tasks = get_open_pull_requests_as_formatted_tasks

    puts 'Creating Tracker story for reviewing open PRs'
    create_tracker_story(story_title, story_description, story_tasks)
    puts 'Successfully created tracker story reviewing open PRs'
  end

  def self.create_issues_story
    story_title = 'Review Open Issues'
    story_description = 'Provide feedback for open issues in repos that the buildpacks team owns.'
    story_tasks = get_open_issues_as_formatted_tasks

    puts 'Creating Tracker story for reviewing open issues'
    create_tracker_story(story_title, story_description, story_tasks)
    puts 'Successfully created tracker story reviewing open issues'
  end

  private

  @@buildpack_repos = {
    'cloudfoundry' => ['go-buildpack',
                       'python-buildpack',
                       'ruby-buildpack',
                       'nodejs-buildpack',
                       'php-buildpack',
                       'staticfile-buildpack',
                       'binary-buildpack',
                       'buildpack-packager',
                       'machete',
                       'compile-extensions',
                       'binary-builder',
                       'buildpacks-ci',
                       'buildpack-releases',
                       'stacks'],
    'cloudfoundry-incubator' => ['buildpack_app_lifecycle'],
    'pivotal-cf-experimental' => ['stacks-release']
  }

  def self.configure_octokit
    Octokit.auto_paginate = true
    Octokit.configure do |c|
      c.login    = ENV.fetch('GITHUB_USERNAME')
      c.password = ENV.fetch('<PASSWORD>')
    end
  end
<commit_msg>Add cflinuxfs2-rootfs-release to tracked Github repos<commit_after>#!/usr/bin/env ruby
# encoding: utf-8

buildpacks_ci_dir = File.expand_path(File.join(File.dirname(__FILE__), '..'))
require "#{buildpacks_ci_dir}/lib/tracker-client"
require 'octokit'

class OpenGithubStoryCreator

  def self.create_pull_requests_story
    story_title = 'Review Open Pull Requests'
    story_description = 'Provide feedback for open pull requests in repos that the buildpacks team owns.'
    story_tasks = get_open_pull_requests_as_formatted_tasks

    puts 'Creating Tracker story for reviewing open PRs'
    create_tracker_story(story_title, story_description, story_tasks)
    puts 'Successfully created tracker story reviewing open PRs'
  end

  def self.create_issues_story
    story_title = 'Review Open Issues'
    story_description = 'Provide feedback for open issues in repos that the buildpacks team owns.'
    story_tasks = get_open_issues_as_formatted_tasks

    puts 'Creating Tracker story for reviewing open issues'
    create_tracker_story(story_title, story_description, story_tasks)
    puts 'Successfully created tracker story reviewing open issues'
  end

  private

  @@buildpack_repos = {
    'cloudfoundry' => ['go-buildpack',
                       'python-buildpack',
                       'ruby-buildpack',
                       'nodejs-buildpack',
                       'php-buildpack',
                       'staticfile-buildpack',
                       'binary-buildpack',
                       'buildpack-packager',
                       'machete',
                       'compile-extensions',
                       'binary-builder',
                       'buildpacks-ci',
                       'buildpack-releases',
                       'cflinuxfs2-rootfs-release',
                       'stacks'],
    'cloudfoundry-incubator' => ['buildpack_app_lifecycle'],
    'pivotal-cf-experimental' => ['stacks-release']
  }

  def self.configure_octokit
    Octokit.auto_paginate = true
    Octokit.configure do |c|
      c.login    = ENV.fetch('GITHUB_USERNAME')
      c.password = ENV.fetch('<PASSWORD>')
    end
  end

{'fraction_non_alphanumeric': 0.08659351145038167, 'fraction_numerical': 0.0009541984732824427, 'mean_word_length': 2.3978930307941653, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '6252871', 'n_tokens_mistral': 1247, 'n_tokens_neox': 1169, 'n_words': 266}