<commit_before>#!/usr/bin/env python
# EAB 2016

"A little toy to find all saved (ZFS) versions of a file or directory."

from __future__ import print_function

import re
import sys

from os import path
from subprocess import check_output, call, check_call, STDOUT

if sys.platform[:5] == 'linux':
    LS = 'ls -ltr --time-style=full-iso'
else:
    LS = 'ls -Tltr'

# If we have colordiff, use it for diff commands
try:
    check_call(('colordiff', '-v'), stdin=open('/dev/null', 'r'),
               stdout=open('/dev/null', 'w'), stderr=STDOUT)
    DIFF = 'colordiff'<commit_msg>Add support for illumos/Solaris ls flags<commit_after>#!/usr/bin/env python
# EAB 2016

"A little toy to find all saved (ZFS) versions of a file or directory."

from __future__ import print_function

import re
import sys

from os import path
from subprocess import check_output, call, check_call, STDOUT

if sys.platform[:5] == 'linux':
    LS = 'ls -ltr --time-style=full-iso'
elif sys.platform == 'sunos5':
    LS = '/usr/bin/ls -ltrE'
else:
    LS = 'ls -Tltr'

# If we have colordiff, use it for diff commands
try:
    check_call(('colordiff', '-v'), stdin=open('/dev/null', 'r'),
               stdout=open('/dev/null', 'w'), stderr=STDOUT)
    DIFF = 'colordiff'
{'fraction_non_alphanumeric': 0.13931144915932747, 'fraction_numerical': 0.008807045636509208, 'mean_word_length': 3.562043795620438, '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': '1725829', 'n_tokens_mistral': 460, 'n_tokens_neox': 438, 'n_words': 144}