<commit_before>cargo_cache:
  folder: $CARGO_HOME/registry
  fingerprint_script: cat Cargo.lock || echo ""

env:
  # Build by default; don't just check
  BUILD: build
  RUSTFLAGS: -D warnings
  RUSTDOCFLAGS: -D warnings
  TOOL: cargo
  # The MSRV
  TOOLCHAIN: 1.46.0
  ZFLAGS:

# Tests that don't require executing the build binaries
build: &BUILD
  build_script:
    - . $HOME/.cargo/env || true
    - $TOOL +$TOOLCHAIN $BUILD $ZFLAGS --target $TARGET --all-targets
    - $TOOL +$TOOLCHAIN doc $ZFLAGS --no-deps --target $TARGET
    - $TOOL +$TOOLCHAIN clippy $ZFLAGS --target $TARGET -- -D warnings
    - if [ -z "$NOHACK" ]; then $TOOL +$TOOLCHAIN install cargo-hack; fi
    - if [ -z "$NOHACK" ]; then $TOOL +$TOOLCHAIN hack $ZFLAGS check --target $TARGET --each-feature; fi

# Tests that do require executing the binaries
test: &TEST<commit_msg>Log compiler version in Cirrus CI<commit_after>cargo_cache:
  folder: $CARGO_HOME/registry
  fingerprint_script: cat Cargo.lock || echo ""

env:
  # Build by default; don't just check
  BUILD: build
  RUSTFLAGS: -D warnings
  RUSTDOCFLAGS: -D warnings
  TOOL: cargo
  # The MSRV
  TOOLCHAIN: 1.46.0
  ZFLAGS:

# Tests that don't require executing the build binaries
build: &BUILD
  build_script:
    - . $HOME/.cargo/env || true
    - $TOOL +$TOOLCHAIN -Vv
    - rustc +$TOOLCHAIN -Vv
    - $TOOL +$TOOLCHAIN $BUILD $ZFLAGS --target $TARGET --all-targets
    - $TOOL +$TOOLCHAIN doc $ZFLAGS --no-deps --target $TARGET
    - $TOOL +$TOOLCHAIN clippy $ZFLAGS --target $TARGET -- -D warnings
    - if [ -z "$NOHACK" ]; then $TOOL +$TOOLCHAIN install cargo-hack; fi
    - if [ -z "$NOHACK" ]; then $TOOL +$TOOLCHAIN hack $ZFLAGS check --target $TARGET --each-feature; fi

# Tests that do require executing the binaries
test: &TEST
{'fraction_non_alphanumeric': 0.12894144144144143, 'fraction_numerical': 0.0045045045045045045, 'mean_word_length': 3.1518691588785046, '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': '852258', 'n_tokens_mistral': 663, 'n_tokens_neox': 612, 'n_words': 200}