<commit_before>/* global d3 */
/* eslint no-unused-vars: 0 */
function tfrD3Vis( data, tfrId ) {
  var stratify = d3.stratify()
    .id( function ( d ) { return ( d.name == null ? null : ( d.name + "_" + d.rank ) ); } )
    .parentId( function ( d ) { return ( d.parent_name == null ? null : ( d.parent_name + "_" + d.parent_rank ) ); } );

  function formatName( d ) {
    if ( d.id == null ) {
      return null;
    }
    var rankSplit = d.id.split( "_" );
    var rank = rankSplit[1];
    var splitString = rankSplit[0].split( " " );
    var firstWord = splitString.shift();
    if ( d.data.rank === "species" ) {
      splitString.unshift( firstWord[0] + "." );
      splitString = splitString.join( " " );
    } else if ( d.data.rank === "subspecies" ) {
      var secondWord = splitString.shift();
      splitString.unshift( secondWord[0] + "." );
      splitString.unshift( firstWord[0] + "." );
      splitString = splitString.join( " " );
    } else {
      splitString = rankSplit[0];
    }
    return splitString;
  }

  function truncate( d, cutoff ) {
    if ( d == null ) {<commit_msg>tree fig improvement for var.<commit_after>/* global d3 */
/* eslint no-unused-vars: 0 */
function tfrD3Vis( data, tfrId ) {
  var stratify = d3.stratify()
    .id( function ( d ) { return ( d.name == null ? null : ( d.name + "_" + d.rank ) ); } )
    .parentId( function ( d ) { return ( d.parent_name == null ? null : ( d.parent_name + "_" + d.parent_rank ) ); } );

  function formatName( d ) {
    if ( d.id == null ) {
      return null;
    }
    var rankSplit = d.id.split( "_" );
    var rank = rankSplit[1];
    var splitString = rankSplit[0].split( " " );
    var firstWord = splitString.shift();
    if ( d.data.rank === "species" ) {
      splitString.unshift( firstWord[0] + "." );
      splitString = splitString.join( " " );
    } else if ( d.data.rank === "subspecies" || d.data.rank === "variety" ) {
      var secondWord = splitString.shift();
      splitString.unshift( secondWord[0] + "." );
      splitString.unshift( firstWord[0] + "." );
      splitString = splitString.join( " " );
    } else {
      splitString = rankSplit[0];
    }
    return splitString;
  }

  function truncate( d, cutoff ) {
    if ( d == null ) {
{'fraction_non_alphanumeric': 0.17728285077951003, 'fraction_numerical': 0.008908685968819599, 'mean_word_length': 2.4553846153846153, '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': '6820303', 'n_tokens_mistral': 784, 'n_tokens_neox': 767, 'n_words': 172}