<commit_before>import {selection} from "d3-selection";
import transition_ease from "./ease";
import transition_filter from "./filter";
import transition_select from "./select";
import transition_selectAll from "./selectAll";

var root = [null],
    maxId = 0;

export function Transition(nodes, parents, key, id) {
  this._nodes = nodes;
  this._parents = parents;
  this._key = key;
  this._id = id || (id = ++maxId);
}

function transition(name) {
  return new Transition([[document.documentElement]], root, namekey(name));
}

export function namekey(name) {
  return name ? "__transition_" + name + "__" : "__transition__";
}

export var selection_prototype = selection.prototype;

Transition.prototype = transition.prototype = {
  select: transition_select,
  selectAll: transition_selectAll,
  filter: transition_filter,
  call: selection_prototype.call,
  nodes: selection_prototype.nodes,
  node: selection_prototype.node,
  size: selection_prototype.size,
  empty: selection_prototype.empty,
  each: selection_prototype.each,
  // TODO each("event"), or on("event")?
  // TODO attr
  // TODO attrTween
  // TODO style
  // TODO styleTween
  // TODO text
  // TODO tween
  // TODO remove
  // TODO delay
  // TODO duration
  ease: transition_ease
};<commit_msg>Comment.<commit_after>import {selection} from "d3-selection";
import transition_ease from "./ease";
import transition_filter from "./filter";
import transition_select from "./select";
import transition_selectAll from "./selectAll";

var root = [null],
    maxId = 0;

export function Transition(nodes, parents, key, id) {
  this._nodes = nodes;
  this._parents = parents;
  this._key = key;
  this._id = id || (id = ++maxId);
}

function transition(name) {
  return new Transition([[document.documentElement]], root, namekey(name));
}

export function namekey(name) {
  return name ? "__transition_" + name + "__" : "__transition__";
}

export var selection_prototype = selection.prototype;

Transition.prototype = transition.prototype = {
  select: transition_select,
  selectAll: transition_selectAll,
  filter: transition_filter,
  // TODO transition
  call: selection_prototype.call,
  nodes: selection_prototype.nodes,
  node: selection_prototype.node,
  size: selection_prototype.size,
  empty: selection_prototype.empty,
  each: selection_prototype.each,
  // TODO each("event"), or on("event")?
  // TODO attr
  // TODO attrTween
  // TODO style
  // TODO styleTween
  // TODO text
  // TODO tween
  // TODO remove
  // TODO delay
  // TODO duration
  ease: transition_ease
};
{'fraction_non_alphanumeric': 0.12421630094043887, 'fraction_numerical': 0.001567398119122257, 'mean_word_length': 4.178498985801217, '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': '4788511', 'n_tokens_mistral': 758, 'n_tokens_neox': 757, 'n_words': 210}