<commit_before>{ config, lib, pkgs, ... }:

with lib;

let
  cfg = config.services.elasticsearch;

  es6 = builtins.compareVersions (builtins.parseDrvName cfg.package.name).version "6" >= 0;

  esConfig = ''
    network.host: ${cfg.listenAddress}
    cluster.name: ${cfg.cluster_name}<commit_msg>nixos/elasticsearch: fix evaluation on systems without unfree set<commit_after>{ config, lib, pkgs, ... }:

with lib;

let
  cfg = config.services.elasticsearch;

  es6 = builtins.compareVersions cfg.package.version "6" >= 0;

  esConfig = ''
    network.host: ${cfg.listenAddress}
    cluster.name: ${cfg.cluster_name}
{'fraction_non_alphanumeric': 0.14308943089430895, 'fraction_numerical': 0.00975609756097561, 'mean_word_length': 4.049180327868853, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5099760', 'n_tokens_mistral': 210, 'n_tokens_neox': 202, 'n_words': 45}