<commit_before>Rails.logger.info 'Avvio del mio plugin'

Redmine::Plugin.register :redmine_docson do
  name 'Redmine Docson plugin'
  author '<NAME>'
  description 'Wiki macro plugin for inserting docson widgets in Wiki pages'
  version '0.0.1'
  #url 'http://example.com/path/to/plugin'
  #author_url 'http://example.com/about'

  Rails.logger.info 'Mio plugin registrato'

  Redmine::WikiFormatting::Macros.register do
    desc <<EOF
      Docson widget plugin. Example usage:
      
      {{docson(path/to/json/schema)}}

      JSON schema path must be relative to redmine and without ".json" extension.
EOF

    macro :docson do |obj, args|
      Rails.logger.info 'Macro chiamata'<commit_msg>chg: dev: some small changes<commit_after>Redmine::Plugin.register :redmine_docson do
  name 'Redmine Docson plugin'
  author '<NAME>'
  description 'Wiki macro plugin for inserting docson widgets in Wiki pages and Issues'
  version '0.0.1'
  url 'https://github.com/mikitex70/redmine_docson'
  #author_url 'http://example.com/about'

  Redmine::WikiFormatting::Macros.register do
    desc <<EOF
      Docson widget plugin. Example usage:
      
      {{docson(path/to/json/schema)}}

      JSON schema path must be relative to redmine public folder.
EOF

    macro :docson do |obj, args|
{'fraction_non_alphanumeric': 0.10505836575875487, 'fraction_numerical': 0.0062256809338521405, 'mean_word_length': 3.642599277978339, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '838186', 'n_tokens_mistral': 420, 'n_tokens_neox': 408, 'n_words': 123}