<commit_before>python_preamble_directory_relative_module
=========================================

[Parent README](../README.md)

This demonstrates the following:

- Demonstrate the same things as given
  in[python_preamble_basic](../python_preamble_basic/README.md)
  example.

- Dynamically hack in to `sys.path` the directory for a module, and
  execute a function in that module. This is considered to be a hack
  by some, myself included, but I'm including this approach until I
  can find a better way.

  - See
    https://www.quora.com/What-are-some-good-examples-of-how-to-do-relative-imports-in-python-to-re-use-code-and-packages/answer/Vlad-Calin-1
    for an opinion explaining why this is a hack.

  - See https://github.com/jorgenschaefer/elpy/issues/1109 for a post
    I made to the elpy maintainer to see if there is a smarter way.

  - The rationales for why I currently think I need this type of hack:

    - I'm doing active development so I do not want to install the
      module into some virtualenv while repeatedly reexecuting the<commit_msg>Include links to the files.<commit_after>python_preamble_directory_relative_module
=========================================

[Parent README](../README.md)

Files:

- [non_module_python_script_using_directory_relative_modules](non_module_python_script_using_directory_relative_modules) -- The preamble wrapper that calls the .py script.
- [non_module_python_script_using_directory_relative_modules.py](non_module_python_script_using_directory_relative_modules.py) -- The Python script.

The demonstrates the following:

- Demonstrate the same things as given
  in [python_preamble_basic](../python_preamble_basic/README.md)
  example.

- Dynamically hack in to `sys.path` the directory for a module, and
  execute a function in that module. This is considered to be a hack
  by some, myself included, but I'm including this approach until I
  can find a better way.

  - See
    https://www.quora.com/What-are-some-good-examples-of-how-to-do-relative-imports-in-python-to-re-use-code-and-packages/answer/Vlad-Calin-1
    for an opinion explaining why this is a hack.

  - See https://github.com/jorgenschaefer/elpy/issues/1109 for a post
    I made to the elpy maintainer to see if there is a smarter way.

  - The rationales for why I currently think I need this type of hack:

    - I'm doing active development so I do not want to install the
      module into some virtualenv while repeatedly reexecuting the
{'fraction_non_alphanumeric': 0.10362903225806451, 'fraction_numerical': 0.004032258064516129, 'mean_word_length': 4.084016393442623, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '254383', 'n_tokens_mistral': 752, 'n_tokens_neox': 722, 'n_words': 254}