<commit_before>{% from "projects/fixtures.sls" import tmuxinator %}
{% set compiler = salt["spack.compiler"]() %}
{% set python = salt["spack.python"]() %}
{% set python_exec = salt["spack.python_exec"]() %}
{% set project = sls.split(".")[-1] %}
{% set workspace = salt["funwith.workspace"](project) %}

mdavezac/spack:
  github.latest:
    - target: {{workspace}}/{{project}}
    - email: <EMAIL>
    - update_head: False


{{workspace}}/{{python}}:
  virtualenv.managed:
    - python: {{python_exec}}
    - pip_upgrade: True
    - use_wheel: True
    - pip_pkgs: [pip, numpy, scipy, pytest, pandas, jupyter]


{{project}} modulefile:
  funwith.modulefile:
    - name: {{project}}
    - workspace: {{workspace}}
    - virtualenv: {{workspace}}/{{python}}
    - cwd: {{workspace}}/{{project}}
    - footer: |
        setenv("SPACK_ROOT", "{{workspace}}/{{project}}")
        set_alias("ispack", "spack python -c \"from IPython import embed; embed()\"")

{{project}} vimrc:
  funwith.add_vimrc:
    - name: {{workspace}}
    - makeprg: "make\\ -C\\ $CURRENT_FUN_WITH_DIR/build/"
    - width: 80
    - tabs: 4
<commit_msg>Easier to check spack stuff<commit_after>{% from "projects/fixtures.sls" import tmuxinator %}
{% set compiler = salt["spack.compiler"]() %}
{% set python = salt["spack.python"]() %}
{% set python_exec = salt["spack.python_exec"]() %}
{% set project = sls.split(".")[-1] %}
{% set workspace = salt["funwith.workspace"](project) %}

mdavezac/spack:
  github.latest:
    - target: {{workspace}}/{{project}}
    - email: <EMAIL>
    - update_head: False


{{workspace}}/{{python}}:
  virtualenv.managed:
    - python: {{python_exec}}
    - pip_upgrade: True
    - pip_pkgs: [pip, numpy, scipy, pytest, pandas, jupyter]


{{project}} modulefile:
  funwith.modulefile:
    - name: {{project}}
    - workspace: {{workspace}}
    - virtualenv: {{workspace}}/{{python}}
    - cwd: {{workspace}}/{{project}}
    - footer: |
        setenv("SPACK_ROOT", "{{workspace}}/{{project}}")
        set_alias("spack", "{{workspace}}/{{project}}/bin/spack")
        set_alias("ispack", "{{workspace}}/{{project}}/bin/spack python -c \"from IPython import embed; embed()\"")

{{project}} vimrc:
  funwith.add_vimrc:
    - name: {{workspace}}
    - makeprg: "make\\ -C\\ $CURRENT_FUN_WITH_DIR/build/"
    - width: 80
    - tabs: 4

{'fraction_non_alphanumeric': 0.20815450643776823, 'fraction_numerical': 0.0034334763948497852, 'mean_word_length': 3.5262135922330096, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2051857', 'n_tokens_mistral': 879, 'n_tokens_neox': 824, 'n_words': 162}