<commit_before>import * as yargs from 'yargs';

import {description, Handler, wrapCommandHandler} from '../cli';

export interface ParamCommands {
  setParam: Handler;
  getParam: Handler;
  getParamsByPath: Handler;
  getParamHistory: Handler;
}

const lazyLoad = (fnname: keyof ParamCommands): Handler =>
  (args) => require('../preprocess')[fnname](args);

const lazy: ParamCommands = {
  setParam: lazyLoad('setParam'),
  getParam: lazyLoad('getParam'),
  getParamsByPath: lazyLoad('getParamsByPath'),
  getParamHistory: lazyLoad('getParamHistory'),
}

const decryptOption: yargs.Options = {
  type: 'boolean', default: true,
  description: 'decrypt or not'<commit_msg>Load correct module for param sub command<commit_after>import * as yargs from 'yargs';

import {description, Handler, wrapCommandHandler} from '../cli';

export interface ParamCommands {
  setParam: Handler;
  getParam: Handler;
  getParamsByPath: Handler;
  getParamHistory: Handler;
}

const lazyLoad = (fnname: keyof ParamCommands): Handler =>
  (args) => require('../params')[fnname](args);

const lazy: ParamCommands = {
  setParam: lazyLoad('setParam'),
  getParam: lazyLoad('getParam'),
  getParamsByPath: lazyLoad('getParamsByPath'),
  getParamHistory: lazyLoad('getParamHistory'),
}

const decryptOption: yargs.Options = {
  type: 'boolean', default: true,
  description: 'decrypt or not'
{'fraction_non_alphanumeric': 0.13284671532846715, 'fraction_numerical': 0.0, 'mean_word_length': 5.889447236180905, 'pattern_counts': {'":': 0, '<': 3, '<?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': '720024', 'n_tokens_mistral': 426, 'n_tokens_neox': 425, 'n_words': 109}