<commit_before># Copyright 2015 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

'''
find.py is a poor-man's emulation of `find $1 -name=$2` on Unix.

Call python find.py <directory> <glob> to list all files matching glob under
directory (recursively).  E.g.
   $ python find.py ../tests/ '*.cpp'
will print all .cpp files under ../tests/.
'''

import fnmatch
import os
import sys

for d, kids, files in os.walk(sys.argv[1]):
  for f in files:
    if fnmatch.fnmatch(f, sys.argv[2]):
      print os.path.join(d, f).replace('\\', '/')  # Gyp wants Unix paths.<commit_msg>Sort build files for consistent link order.<commit_after># Copyright 2015 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

'''
find.py is a poor-man's emulation of `find $1 -name=$2` on Unix.

Call python find.py <directory> <glob> to list all files matching glob under
directory (recursively).  E.g.
   $ python find.py ../tests/ '*.cpp'
will print all .cpp files under ../tests/.
'''

import fnmatch
import os
import sys

for d, kids, files in os.walk(sys.argv[1]):
  files.sort()
  for f in files:
    if fnmatch.fnmatch(f, sys.argv[2]):
      print os.path.join(d, f).replace('\\', '/')  # Gyp wants Unix paths.
{'fraction_non_alphanumeric': 0.13626040878122633, 'fraction_numerical': 0.012112036336109008, 'mean_word_length': 3.264516129032258, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6106925', 'n_tokens_mistral': 454, 'n_tokens_neox': 429, 'n_words': 180}