<commit_before>/*** @jsx React.DOM */

var React = require('react');


function renderValue(value) {
  function walk(value) {
    var i = 0, children = [];
    if (value === null) {
      return <span className="val-null">null</span>;
    } else if (value === true || value === false) {
      return <span className="val-bool">{value + ''}</span>;
    } else if (typeof value === 'string' || value instanceof String) {
      // consider auto quoting?
      return <span className="val-string">{value}</span>;
    } else if (typeof value === 'number' || value instanceof Number) {
      return <span className="val-number">{value}</span>;
    } else if (value instanceof Array) {
      for (i = 0; i < value.length; i++) {
        children.push(
          <span className="val-array-item" key={i}>
            {walk(value[i])}
            {i < value.length - 1 ? <span className="val-array-sep">{', '}</span> : null}
          </span>
        );
      }
      return (
        <span className="val-array">
          <span className="val-array-marker">{'['}</span>
          <span className="val-array-items">{children}</span>
          <span className="val-array-marker">{']'}</span>
        </span>
      );
    } else {
      var keys = Object.keys(value);
      for (i = 0; i < keys.length; i++) {
        var key = keys[i];
        children.push(<commit_msg>Restored old literal rendering behavior<commit_after>/*** @jsx React.DOM */

var React = require('react');


function renderValue(value) {
  function walk(value) {
    var i = 0, children = [];
    if (value === null) {
      return <span className="val-null">None</span>;
    } else if (value === true || value === false) {
      return <span className="val-bool">{value ? 'True' : 'False'}</span>;
    } else if (typeof value === 'string' || value instanceof String) {
      // consider auto quoting?
      return <span className="val-string">{value}</span>;
    } else if (typeof value === 'number' || value instanceof Number) {
      return <span className="val-number">{value}</span>;
    } else if (value instanceof Array) {
      for (i = 0; i < value.length; i++) {
        children.push(
          <span className="val-array-item" key={i}>
            {walk(value[i])}
            {i < value.length - 1 ? <span className="val-array-sep">{', '}</span> : null}
          </span>
        );
      }
      return (
        <span className="val-array">
          <span className="val-array-marker">{'['}</span>
          <span className="val-array-items">{children}</span>
          <span className="val-array-marker">{']'}</span>
        </span>
      );
    } else {
      var keys = Object.keys(value);
      for (i = 0; i < keys.length; i++) {
        var key = keys[i];
        children.push(
{'fraction_non_alphanumeric': 0.1879073135409124, 'fraction_numerical': 0.002896451846488052, 'mean_word_length': 2.3901840490797546, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 43, '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': '5758939', 'n_tokens_mistral': 840, 'n_tokens_neox': 827, 'n_words': 210}