<commit_before>#!/bin/bash
# @Function
# Find file in the jar files under current directory
#
# @Usage
#   $ find-in-jars.sh log4j\\.xml
#   $ find-in-jars.sh 'log4j\.properties'
#   $ find-in-jars.sh 'log4j\.properties|log4j\.xml'
#
# @author <NAME>

[ -z "$1" ] && { echo No find file pattern! ; exit 1; }  

find -iname '*.jar' | while read jarFile
do
        jar tf ${jarFile} | egrep $1 | while read file
        do
                echo "${jarFile}"\!"${file}"<commit_msg>update find-in-jars.sh<commit_after>#!/bin/bash
# @Function
# Find file in the jar files under current directory
#
# @Usage
#   $ find-in-jars.sh log4j\\.xml
#   $ find-in-jars.sh 'log4j\.properties'
#   $ find-in-jars.sh 'log4j\.properties|log4j\.xml'
#
# @author <NAME>

[ -z "$1" ] && { echo No find file pattern! ; exit 1; }  

find -iname '*.jar' | while read jarFile
do
        jar tf ${jarFile} | egrep "$1" | while read file
        do
                echo "${jarFile}"\!"${file}"
{'fraction_non_alphanumeric': 0.17927461139896372, 'fraction_numerical': 0.014507772020725389, 'mean_word_length': 2.5645756457564577, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '2172575', 'n_tokens_mistral': 378, 'n_tokens_neox': 363, 'n_words': 94}