<commit_before>from dodo_commands.framework.util import make_executable


def create_dodo_script(env, dodo_file, python_path):
    with open(dodo_file, "w") as ofs:

        def add(x):
            ofs.write((x + "\n").format(python_path=python_path, env=env))

        if python_path:
            add("#!{python_path}")

        add("import os")
        add("import sys")
        add("")<commit_msg>Fix: always add shebang in dodo script<commit_after>from dodo_commands.framework.util import make_executable


def create_dodo_script(env, dodo_file, python_path):
    with open(dodo_file, "w") as ofs:

        def add(x):
            ofs.write((x + "\n").format(python_path=python_path, env=env))

        if python_path:
            add("#!{python_path}")
        else:
            add("#!/usr/bin/env python")

        add("import os")
        add("import sys")
        add("")
{'fraction_non_alphanumeric': 0.1375, 'fraction_numerical': 0.0, 'mean_word_length': 2.6556016597510372, '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': '4261367', 'n_tokens_mistral': 294, 'n_tokens_neox': 284, 'n_words': 60}