<commit_before>python import sys
python import vim
python sys.path.append(vim.eval('expand("<sfile>:h")'))

python << endOfPython
import os
def command_to_run_tests():
    return "npm test"
endOfPython

function! RunSingleTest()
python << endOfPython

current_line_index = vim.current.window.cursor[0]
current_test_line_num = sb.get_line_num_of_current_test(current_line_index, vim.current.buffer)
if current_test_line_num >= 0:
    vim.command(':wundo /tmp/oldUndo')
    vim.command(':!{}'.format(command_to_run_tests()))<commit_msg>added replace it with it.only<commit_after>python import sys
python import vim
python sys.path.append(vim.eval('expand("<sfile>:h")'))

python << endOfPython
import os
import vim_mocha_special_blend as sb
def command_to_run_tests():
    return "npm test"
endOfPython

function! RunSingleTest()
python << endOfPython

current_line_index = vim.current.window.cursor[0]
current_test_line_num = sb.get_line_num_of_current_test(current_line_index, vim.current.buffer)
if current_test_line_num >= 0:
    vim.command(':wundo /tmp/oldUndo')
    vim.current.buffer[current_test_line_num] = sb.sub_current_test_with_singleTest(current_test_line_num, vim.current.buffer)
    vim.command(':!{}'.format(command_to_run_tests()))
    vim.current.buffer[current_test_line_num] = sb.sub_singleTest_with_test(current_test_line_num, vim.current.buffer)
{'fraction_non_alphanumeric': 0.11777615215801024, 'fraction_numerical': 0.002926115581565472, 'mean_word_length': 7.142857142857143, 'pattern_counts': {'":': 0, '<': 13, '<?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': '3499185', 'n_tokens_mistral': 496, 'n_tokens_neox': 476, 'n_words': 79}