<commit_before>#! /usr/bin/env python
#
# Functions for working with files.
#
# <NAME> (<EMAIL>)

import os


def remove(file):
    '''
    Deletes a file. Silently passes if the file doesn't exist.
    '''
    try:
        os.remove(file)
    except OSError:
        pass
<commit_msg>Add touch() to file module<commit_after>#! /usr/bin/env python
#
# Functions for working with files.
#
# <NAME> (<EMAIL>)

import os
from subprocess import check_call


def remove(file):
    '''
    Deletes a file. Silently passes if the file doesn't exist.
    '''
    try:
        os.remove(file)
    except OSError:
        pass


def touch(file):
    '''
    Touches a file.
    '''
    try:
        check_call(['touch', file])
    except CalledProcessError:
        raise
{'fraction_non_alphanumeric': 0.12220762155059132, 'fraction_numerical': 0.0, 'mean_word_length': 2.4324324324324325, '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': '7457092', 'n_tokens_mistral': 262, 'n_tokens_neox': 247, 'n_words': 77}