<commit_before>(function(exports){

  // First some utility functions

  // Get the parent's d3 data
  var parentD=function(n){return n.parentNode.__data_old__}

  var parentD=function(n,old){return old && n.parentNode.__data_old__ ? n.parentNode.__data_old__ : n.parentNode.__data__}
  var parentD2=function(n){return n.parentNode.parentNode.__data__}
  var parentD3=function(n){return n.parentNode.parentNode.parentNode.__data__}


  // Get the parent cellfacet's scale property
  var xFacetScale=function(n,old){return parentD2(n,old).xScale}
  var yFacetScale=function(n,old){return parentD2(n).yScale}
 
  var yFacetScale=function(n){return parentD3(n).yScale}
  // NB: this keyfunction should return a unique key, which means x|color should be unique.
  // If not, then the code can fail.  Current hierarchy implementation does generate a unique
  // X for each, but that will probably change, since the innermost X should probably be
  // supplied from somewhere else.
  var keyFunction = function(d,i){
    // Key should uniquely identify a dot (part), and is used for animation.
    // Note that if key does NOT uniquely define a point then points may
    // be dropped
    if (!_.isUndefined(d.Key)) return _.isDate(d.Key)?[""+(+d.Key)]:_.values(d.Key)
    return i
  }
  
  // labels provide popups.  g3figure should probably only calculate
  // this on demand; would save processing power
  var labelFn = function(colorField) { return function(d) { 
      return !_.isUndefined(d.Label)
        ? _.isObject(d.Label) ? _.values(d.Label).join("\n") : d.Label
        : _.isUndefined(d.XCluster)
          ? d.X
        : _.isObject(d.XCluster) 
          ? _.values(d.XCluster).join("\n")+"\n"+d[colorField]+"\n"+d.Y
          : d.XCluster+"\n"+d[colorField]+"\n"+d.Y 
  } }

  // Position SVG
  var svgTranslate=function(d) {
    return "translate(" + xFacetScale(this)(d.X)  + "," + yFacetScale(this)(d.y) + ")"; 
  }

  //
  // --------------- Now the Geoms --------------------------
  //<commit_msg>Something odd happened to KEY function - not just in my new hack<commit_after>(function(exports){

  // First some utility functions

  // Get the parent's d3 data
  var parentD=function(n){return n.parentNode.__data_old__}

  var parentD=function(n,old){return old && n.parentNode.__data_old__ ? n.parentNode.__data_old__ : n.parentNode.__data__}
  var parentD2=function(n){return n.parentNode.parentNode.__data__}
  var parentD3=function(n){return n.parentNode.parentNode.parentNode.__data__}


  // Get the parent cellfacet's scale property
  var xFacetScale=function(n,old){return parentD2(n,old).xScale}
  var yFacetScale=function(n,old){return parentD2(n).yScale}
 
  var yFacetScale=function(n){return parentD3(n).yScale}
  // NB: this keyfunction should return a unique key, which means x|color should be unique.
  // If not, then the code can fail.  Current hierarchy implementation does generate a unique
  // X for each, but that will probably change, since the innermost X should probably be
  // supplied from somewhere else.
  var keyFunction = function(d,i){
    // Key should uniquely identify a dot (part), and is used for animation.
    // Note that if key does NOT uniquely define a point then points may
    // be dropped
    if (!_.isUndefined(d.Key)) return _.isDate(d.Key)?[""+(+d.Key)]:(_.isObject(d.Key)?_.values(d.Key):d.Key)
    return i
  }
  
  // labels provide popups.  g3figure should probably only calculate
  // this on demand; would save processing power
  var labelFn = function(colorField) { return function(d) { 
      return !_.isUndefined(d.Label)
        ? _.isObject(d.Label) ? _.values(d.Label).join("\n") : d.Label
        : _.isUndefined(d.XCluster)
          ? d.X
        : _.isObject(d.XCluster) 
          ? _.values(d.XCluster).join("\n")+"\n"+d[colorField]+"\n"+d.Y
          : d.XCluster+"\n"+d[colorField]+"\n"+d.Y 
  } }

  // Position SVG
  var svgTranslate=function(d) {
    return "translate(" + xFacetScale(this)(d.X)  + "," + yFacetScale(this)(d.y) + ")"; 
  }

  //
  // --------------- Now the Geoms --------------------------
  //
{'fraction_non_alphanumeric': 0.1524226929632335, 'fraction_numerical': 0.0034088142196250304, 'mean_word_length': 3.103896103896104, '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': '564812', 'n_tokens_mistral': 1332, 'n_tokens_neox': 1307, 'n_words': 339}