<commit_before>#!/usr/bin/env bash

#usage: run search.sh with file extension as argument
#run it in whatever directory you want to search, it includes
#sub-directories
cmd = '*.' + $1
ls -r | grep cmd<commit_msg>forgot to commit my local work<commit_after>#!/usr/bin/env bash

#usage: run search.sh with file extension as 1st argument
#and the desired path as the second

#change to the directory
cd $2

#$1 is the first argument given to the command, i.e. file type
cmd="*."$1
ls -r | grep $cmd
{'fraction_non_alphanumeric': 0.10483870967741936, 'fraction_numerical': 0.010080645161290322, 'mean_word_length': 4.123711340206185, 'pattern_counts': {'":': 0, '<': 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': '2612448', 'n_tokens_mistral': 167, 'n_tokens_neox': 158, 'n_words': 73}