<commit_before>require 'terminal-table'
require 'mustache'

command :query do |c|
  c.syntax = 'jm query [options] query'
  c.summary = 'Get the keys from a jira query'
  c.description = 'Run a query. '
  c.example 'Get Open issues and dump everything', %{jm query status=Open --fields "" --json}
  c.option '--[no-]raw', 'Do not prefix query with project and assignee'
  c.option '--[no-]json', 'Output json reply instead of summary'
  c.option '--fields FIELDS', Array, 'Which fields to return.'
  c.option '--all_fields', 'Return all fields'
  c.option '--format STYLE', String, 'Format for keys'
  c.option '--style STYLE', String, 'Which style to use'

  c.action do |args, options|
    options.default :json => false, :all_fields => false, :style => 'basic'

    allOfThem = {
      :basic => {
        :fields => [:key, :summary],
        :format => %{{{key}} {{summary}}},<commit_msg>Little updates to query.<commit_after>require 'terminal-table'
require 'mustache'

command :query do |c|
  c.syntax = 'jm query [options] query'
  c.summary = 'Get the keys from a jira query'
  c.description = 'Run a JQL query. '
  c.example 'Get Open issues and dump everything', %{jm query status=Open --all_fields --json}
  c.example 'Get All Open issues and dump everything', %{jm query --raw status=Open --all_fields --json}

  c.option '--style STYLE', String, 'Which output style to use'

  c.option '--[no-]raw', 'Do not prefix query with project and assignee'
  c.option '--[no-]json', 'Output json reply instead of summary'

  c.option '--fields FIELDS', Array, 'Which fields to return.'
  c.option '--all_fields', 'Return all fields'
  #c.option '--format STYLE', String, 'Format for keys'

  c.action do |args, options|
    options.default :json => false, :all_fields => false, :style => 'basic'

    allOfThem = {
      :basic => {
        :fields => [:key, :summary],
        :format => %{{{key}} {{summary}}},
{'fraction_non_alphanumeric': 0.15970772442588727, 'fraction_numerical': 0.0, 'mean_word_length': 3.3767123287671232, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '7462177', 'n_tokens_mistral': 640, 'n_tokens_neox': 607, 'n_words': 222}