<commit_before># use : pybeautifyjson '{"foo": "lorem", "bar": "ipsum"}'
function pybeautifyjson -d "Beautify a JSON string"
  echo $argv | _python -mjson.tool
end
<commit_msg>Show pybeautifyjson's usage when no argument given<commit_after>function pybeautifyjson -d "Beautify a JSON string"
  if [ (count $argv) -gt 0 ]
    echo $argv | _python -mjson.tool
  else
    echo "Usage: pybeautifyjson '{\"foo\": \"lorem\", \"bar\": \"ipsum\"}'"
  end
end

{'fraction_non_alphanumeric': 0.15521064301552107, 'fraction_numerical': 0.0022172949002217295, 'mean_word_length': 4.136363636363637, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, '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': '4469686', 'n_tokens_mistral': 167, 'n_tokens_neox': 164, 'n_words': 51}