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

var exec = require('child_process').exec;
var fs = require('fs');

var scm = 'lscm';
var user = process.env.RTC_USER;
var password = process.env.RTC_PASSWORD;
var defaultAuthor = process.env.AUTHOR;
var defaultDomain = process.env.DOMAIN;

// some requests print a lot of information
// increase the buffer to handle the size of these requests
var maxBuffer = 1000 * 1000 * 1024;

function convertToEmail(name) {
  // convert the name from "<NAME>" to "<EMAIL>"
  return [name.toLowerCase().split(/\s+/).join('.'), '@', defaultDomain].join();
}

function processHistoryItem(history, index) {
  if (index >= history.length) return;

  var change = history[index],
      author = change.author,
      uuid = change.uuid,
      comment = change.comment,
      modified = new Date(change.modified).toISOString(),
      workitem = change['workitem-label'];<commit_msg>fix(git-rtc): no longer join email address with commas<commit_after>#!/usr/bin/env node

var exec = require('child_process').exec;
var fs = require('fs');

var scm = 'lscm';
var user = process.env.RTC_USER;
var password = process.env.RTC_PASSWORD;
var defaultAuthor = process.env.AUTHOR;
var defaultDomain = process.env.DOMAIN;

// some requests print a lot of information
// increase the buffer to handle the size of these requests
var maxBuffer = 1000 * 1000 * 1024;

function convertToEmail(name) {
  // convert the name from "<NAME>" to "<EMAIL>"
  return [name.toLowerCase().split(/\s+/).join('.'), '@', defaultDomain].join('');
}

function processHistoryItem(history, index) {
  if (index >= history.length) return;

  var change = history[index],
      author = change.author,
      uuid = change.uuid,
      comment = change.comment,
      modified = new Date(change.modified).toISOString(),
      workitem = change['workitem-label'];
{'fraction_non_alphanumeric': 0.1423139598044541, 'fraction_numerical': 0.013036393264530146, 'mean_word_length': 4.046575342465753, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '6832640', 'n_tokens_mistral': 581, 'n_tokens_neox': 550, 'n_words': 162}