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

import os


def check_dir_exist(os_dir):
    if not os.path.exists(os_dir):
        exit(1)


def backup():
    check_dir_exist('/root/rethink_backup/')
    os.chdir('/root/rethink_backup/')
    args = ("-a", "taskwetu_db**//")
    os.execl("/usr/local/bin/rethinkdb-dump", args)

if __name__ == '__main__':
    backup()<commit_msg>backup rethinkdb set<commit_after>#! /usr/bin/env python

import os
from subprocess import call


def check_dir_exist(os_dir):
    if not os.path.exists(os_dir):
        exit(1)


def backup():
    check_dir_exist('/root/rethink_backup/')
    os.chdir('/root/rethink_backup/')
    call(["rethinkdb-dump", "-a", "taskwetu_db**//"])

if __name__ == '__main__':
    backup()
{'fraction_non_alphanumeric': 0.1725067385444744, 'fraction_numerical': 0.0026954177897574125, 'mean_word_length': 3.558282208588957, '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': '3364509', 'n_tokens_mistral': 291, 'n_tokens_neox': 285, 'n_words': 51}