<commit_before>// idc = I don't care
// know = Is this something that can be known? (otherwise maybe just a grouping)

import {
  SCORES,
  TAGS,
} from '../constants.js';

// TODO (davidg): rename nuggest
export const nuggetTreeData = {
  items: [
    {
      name: `TOP`,
      tags: [],
      value: null,
      comment: null,
      score: SCORES.LEVEL_0,
      url: null,
      idc: false,
      knowable: false,
      isCode: false,
      items: [
        {
          name: `CSS`,
          tags: [],
          value: null,
          comment: null,
          score: SCORES.LEVEL_0,
          url: null,
          idc: false,
          knowable: false,
          isCode: false,
          items: [
            {
              name: `Media Queries`,
              subtitle: `level 3+4`,<commit_msg>Added different tree idea (unused)<commit_after>// idc = I don't care
// know = Is this something that can be known? (otherwise maybe just a grouping)

import {
  SCORES,
  TAGS,
} from '../constants.js';

// by doing it this way (objects instead of array):
// the tree is no more or less complex
// I can still use Object.keys() and iterate down the tree to set a 'path' prop for each
// when I define a path to an object `top.items.css.items.mediaQueries.items` it will
// continue to work even if the data structure changes
// whereas with arrays and [0, 0, 0, 1, 2] it very brittle.

const differentTreeIdea = {
  items: {
    top: {
      name: `TOP`,
      items: {
        css: {
          name: `CSS`,
          tags: [],
          items: {
            mediaQueries: {
              name: `Media Queries`,
              tags: [],
              items: {
                ratio: {
                  name: `<ratio>`,
                  tags: [],
                },
                mediaFeatures: {
                  name: `Media features`,
                  tags: [],
                },
              },
            },
          },
        },
      },
    },
  },
};

export const nuggetTreeData = {
  items: [
    {
      name: `TOP`,
      tags: [],
      value: null,
      comment: null,
      score: SCORES.LEVEL_0,
      url: null,
      idc: false,
      knowable: false,
      isCode: false,
      items: [
        {
          name: `CSS`,
          tags: [],
          value: null,
          comment: null,
          score: SCORES.LEVEL_0,
          url: null,
          idc: false,
          knowable: false,
          isCode: false,
          items: [
            {
              name: `Media Queries`,
              subtitle: `level 3+4`,
{'fraction_non_alphanumeric': 0.11711711711711711, 'fraction_numerical': 0.0050920485703094395, 'mean_word_length': 1.3539170506912444, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '2069474', 'n_tokens_mistral': 775, 'n_tokens_neox': 751, 'n_words': 238}