<commit_before>require('./todo-section')

const {i, div, hr, h2, span, p} = require('dom-gen')

const {component} = $.cc

@component('project-section')
class ProjectSection {
  constructor (elem) {
    /**
     * @property {Project}
     */
    const project = elem.data('project')

    elem.append(
      h2('TODO').addClass('todo-title'),
      p(`<i class="fa fa-bookmark"></i> ${project.getTitle()} - ${project.path}`),
      p(
        span(
          i().addClass('fa fa-thumb-tack'), ' ',
          project.todos.length
        ).addClass('todo-label'),
        span(
          i().addClass('fa fa-check-square-o'), ' ',
          project.dones.length<commit_msg>design(project-section): add todo number in title<commit_after>require('./todo-section')

const {i, div, hr, h2, span, p} = require('dom-gen')

const {component} = $.cc

@component('project-section')
class ProjectSection {
  constructor (elem) {
    /**
     * @property {Project}
     */
    const project = elem.data('project')

    elem.append(
      h2('TODO ' + project.todos.length).addClass('todo-title'),
      p(`<i class="fa fa-bookmark"></i> ${project.getTitle()} - ${project.path}`),
      p(
        span(
          i().addClass('fa fa-thumb-tack'), ' ',
          project.todos.length
        ).addClass('todo-label'),
        span(
          i().addClass('fa fa-check-square-o'), ' ',
          project.dones.length
{'fraction_non_alphanumeric': 0.195, 'fraction_numerical': 0.002857142857142857, 'mean_word_length': 2.5558375634517767, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7462686', 'n_tokens_mistral': 454, 'n_tokens_neox': 455, 'n_words': 83}