<commit_before>import os
import subprocess

#=======================================
# tmux 
#=======================================

def call(command):
    """call tmux subcommand."""
    subprocess.Popen("tmux " + command, shell=True, stdout=subprocess.PIPE)

def in_tmux():
    """if process is in tmux, return True."""
    return bool(os.getenv("TMUX"))

def swap_pane():
    """swap current pane for previous pane."""
    call("swap-pane -D")

def move_last_pane():
    """move focus from current pane to previous pane."""
    call("last-pane")

def resize_pane(width=None, height=None):
    """resize pane"""
    resize_option = ""

    if width:  resize_option += " -x " + str(width)
    if height: resize_option += " -y " + str(height)

    call("resize-pane " + resize_option)

def split_window(vertical=True, horizontal=False, command=None):
    """new pane and exec command."""
    option = "-v" if vertical else "-h"

    if command:
        option += " \"" + command + "\""

    call("split-window " + option)

<commit_msg>synchronize tmux command.<commit_after>import os
import subprocess

#=======================================
# tmux 
#=======================================

def call(command):
    """call tmux subcommand."""
    subprocess.call("tmux " + command, shell=True, stdout=subprocess.PIPE)

def in_tmux():
    """if process is in tmux, return True."""
    return bool(os.getenv("TMUX"))

def swap_pane():
    """swap current pane for previous pane."""
    call("swap-pane -D")

def move_last_pane():
    """move focus from current pane to previous pane."""
    call("last-pane")

def resize_pane(width=None, height=None):
    """resize pane"""
    resize_option = ""

    if width:  resize_option += " -x " + str(width)
    if height: resize_option += " -y " + str(height)

    call("resize-pane " + resize_option)

def split_window(vertical=True, horizontal=False, command=None):
    """new pane and exec command."""
    option = "-v" if vertical else "-h"

    if command:
        option += " \"" + command + "\""

    call("split-window " + option)


{'fraction_non_alphanumeric': 0.2249400479616307, 'fraction_numerical': 0.0, 'mean_word_length': 3.6981981981981984, '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': '1490109', 'n_tokens_mistral': 675, 'n_tokens_neox': 635, 'n_words': 172}