<commit_before>require 'date'
require 'fileutils'

class Noir::Command::New::Note < Noir::Base::TerminalCommand
  @description = 'create empty txt. filename format is <serial-no>_<date>.txt'

  class << self

    def execute *args
      note_num  = Dir.glob('[0-9]*_????????.txt').size + 1
      note_name = format("%02d", note_num) + '_' + Time.now.strftime('%Y%m%d') + '.txt'
      FileUtils.touch(note_name)
    end

  end
end
<commit_msg>Show note name on created new note<commit_after>require 'date'
require 'fileutils'

class Noir::Command::New::Note < Noir::Base::TerminalCommand
  @description = 'create empty txt. filename format is <serial-no>_<date>.txt'

  class << self

    def execute *args
      note_num  = Dir.glob('[0-9]*_????????.txt').size + 1
      note_name = format("%02d", note_num) + '_' + Time.now.strftime('%Y%m%d') + '.txt'
      FileUtils.touch(note_name)
      puts note_name
    end

  end
end

{'fraction_non_alphanumeric': 0.17278617710583152, 'fraction_numerical': 0.01079913606911447, 'mean_word_length': 3.753846153846154, 'pattern_counts': {'":': 0, '<': 13, '<?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': '2461404', 'n_tokens_mistral': 339, 'n_tokens_neox': 323, 'n_words': 72}