<commit_before>#!/usr/bin/env node

const gitcmd = 'git log --pretty=full --since="$(git show -s --format=%ad `git rev-list --tags --max-count=1`)"'


const spawn    = require('child_process').spawn
    , bl       = require('bl')
    , split2   = require('split2')
    , list     = require('list-stream')
    , after    = require('after')
    , ghauth   = require('ghauth')
    , ghissues = require('ghissues')
    , chalk    = require('chalk')

    , commitStream = require('./commit-stream')

    , ghUser        = process.argv[2] || 'iojs'
    , ghProject     = process.argv[3] || 'io.js'
    , authOptions   = {
          configName : `changelog-maker`
        , scopes     : []
      }


function organiseCommits (list) {
    // filter commits to those _before_ 'working on ...'
  var started = false
  return list.filter(function (commit) {
    if (started)
      return false

    if ((/working on v?[\d\.]+/i).test(commit.summary))
      started = true
    else if ((/^v?[\d\.]+$/).test(commit.summary))
      started = true

    return !started
  }).reverse()
}


function commitTags (list, callback) {
  var sublist = list.filter(function (commit) {
    return typeof commit.ghIssue == 'number' && !commit.ghUser && !commit.ghProject
  })

  if (!sublist.length)<commit_msg>fix github PR-URL check<commit_after>#!/usr/bin/env node

const gitcmd = 'git log --pretty=full --since="$(git show -s --format=%ad `git rev-list --tags --max-count=1`)"'


const spawn    = require('child_process').spawn
    , bl       = require('bl')
    , split2   = require('split2')
    , list     = require('list-stream')
    , after    = require('after')
    , ghauth   = require('ghauth')
    , ghissues = require('ghissues')
    , chalk    = require('chalk')

    , commitStream = require('./commit-stream')

    , ghUser        = process.argv[2] || 'iojs'
    , ghProject     = process.argv[3] || 'io.js'
    , authOptions   = {
          configName : `changelog-maker`
        , scopes     : []
      }


function organiseCommits (list) {
    // filter commits to those _before_ 'working on ...'
  var started = false
  return list.filter(function (commit) {
    if (started)
      return false

    if ((/working on v?[\d\.]+/i).test(commit.summary))
      started = true
    else if ((/^v?[\d\.]+$/).test(commit.summary))
      started = true

    return !started
  }).reverse()
}


function commitTags (list, callback) {
  var sublist = list.filter(function (commit) {
    return typeof commit.ghIssue == 'number' && commit.ghUser && commit.ghProject
  })

  if (!sublist.length)
{'fraction_non_alphanumeric': 0.16809006211180125, 'fraction_numerical': 0.0038819875776397515, 'mean_word_length': 2.5061224489795917, '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': '1502103', 'n_tokens_mistral': 869, 'n_tokens_neox': 824, 'n_words': 190}