<commit_before>#!/bin/bash
# +
# For linux.
# -
browse() # web
{
    ( nohup xdg-open $* & ) &> /dev/null
}
gdiff() { meld $* 2> /dev/null . ; } # gui diff
gdir() { nautilus 2> /dev/null . ; } # gui files
gedit() { /usr/bin/gedit -b $1 ; } # gui editor
wcopy() { xsel -ib 2> /dev/null || cat - > $s ; } # copy to clipboard
wpaste() { xsel -ob 2> /dev/null || cat $s; } # paste from clipboard<commit_msg>better browse for linux<commit_after>#!/bin/bash
# +
# For linux.
# -
browse() # web
{
    local url=${1:-google.com}
    test "${url##http*}" && url="http://$url"
    ( nohup xdg-open $url & ) &> /dev/null
}
gdiff() { meld $* 2> /dev/null . ; } # gui diff
gdir() { nautilus 2> /dev/null . ; } # gui files
gedit() { /usr/bin/gedit -b $1 ; } # gui editor
wcopy() { xsel -ib 2> /dev/null || cat - > $s ; } # copy to clipboard
wpaste() { xsel -ob 2> /dev/null || cat $s; } # paste from clipboard
{'fraction_non_alphanumeric': 0.2245810055865922, 'fraction_numerical': 0.012290502793296089, 'mean_word_length': 2.6422764227642275, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '6361808', 'n_tokens_mistral': 401, 'n_tokens_neox': 377, 'n_words': 100}