<commit_before>defnix:

activations: assert activations != []; let
  inherit (defnix.build-support) compile-c;

  inherit (defnix.pkgs) execve run-with-settings;

  inherit (defnix.defnixos.activations) activation-header;

  multiplex-activations = compile-c [
    "-ldl"
    ''-DACTIVATION_HEADER="${activation-header}"''
  ] ./multiplex-activations.c;

  self = settings: start: assert activations != []; let
    name = start.name or (baseNameOf (toString start));
  in (execve "activate-${name}" {
    filename = multiplex-activations;

    inherit settings;

    argv = [ "multiplex-activations" start name ] ++ activations;
  }) // {
    run-with-settings = settings: let
      parent-settings = { inherit (settings) working-directory; };

      child-settings = removeAttrs settings [ "working-directory" ];
    in self parent-settings (run-with-settings start child-settings);
  };
in self {}<commit_msg>multiplex-activations: Don't require working-directory setting<commit_after>defnix:

activations: assert activations != []; let
  inherit (defnix.build-support) compile-c;

  inherit (defnix.pkgs) execve run-with-settings;

  inherit (defnix.defnixos.activations) activation-header;

  multiplex-activations = compile-c [
    "-ldl"
    ''-DACTIVATION_HEADER="${activation-header}"''
  ] ./multiplex-activations.c;

  self = settings: start: assert activations != []; let
    name = start.name or (baseNameOf (toString start));
  in (execve "activate-${name}" {
    filename = multiplex-activations;

    inherit settings;

    argv = [ "multiplex-activations" start name ] ++ activations;
  }) // {
    run-with-settings = settings: let
      parent-settings = {
        working-directory = settings.working-directory or null;
      };

      child-settings = removeAttrs settings [ "working-directory" ];
    in self parent-settings (run-with-settings start child-settings);
  };
in self {}
{'fraction_non_alphanumeric': 0.1350499211770888, 'fraction_numerical': 0.0, 'mean_word_length': 3.632603406326034, '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': '807620', 'n_tokens_mistral': 588, 'n_tokens_neox': 558, 'n_words': 131}