<commit_before>'use strict';

var archy = require('archy');
var chalk = require('chalk');
var gutil = require('gulp-util');

function logTasks(tree, getDescription) {
  var padding = 0;
  archy(tree)
    .split('\n')
    .filter(function(v, i) {
      // Log first line as is
      if (i === 0) {
        gutil.log(v);
        return false;
      }
      // Search for longest line
      if (v.length > padding) {
        padding = v.length;
      }
      return v.trim().length !== 0;
    }).forEach(function(v) {
      var line = v.split(' ');
      var task = line.slice(1).join(' ');

      if (/.└/.test(v)) {
        // Log dependencies as is
        gutil.log(v);
      } else {
        // Pretty task with optionnal description
        gutil.log(
          line[0] + ' ' + chalk.cyan(task) +
          Array(padding + 3 - v.length).join(' ') +
          (getDescription(task) || '')
        );
      }
    });
}

module.exports = logTasks;
<commit_msg>Fix dependency regex in logTasks<commit_after>'use strict';

var archy = require('archy');
var chalk = require('chalk');
var gutil = require('gulp-util');

function logTasks(tree, getDescription) {
  var padding = 0;
  var rdependency = /[ │] [├└]/;
  archy(tree)
    .split('\n')
    .filter(function(v, i) {
      // Log first line as is
      if (i === 0) {
        gutil.log(v);
        return false;
      }
      // Search for longest line
      if (v.length > padding) {
        padding = v.length;
      }
      return v.trim().length !== 0;
    }).forEach(function(v) {
      var line = v.split(' ');
      var task = line.slice(1).join(' ');

      // Log dependencies as is
      if (rdependency.test(v)) {
        gutil.log(v);
        return;
      }

      // Pretty task with optionnal description
      gutil.log(
        line[0] + ' ' + chalk.cyan(task) +
        Array(padding + 3 - v.length).join(' ') +
        (getDescription(task) || '')
      );
    });
}

module.exports = logTasks;

{'fraction_non_alphanumeric': 0.16878495170310118, 'fraction_numerical': 0.006100660904931368, 'mean_word_length': 1.924219910846954, 'pattern_counts': {'":': 0, '<': 3, '<?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': '82072', 'n_tokens_mistral': 660, 'n_tokens_neox': 645, 'n_words': 154}