<commit_before>a :  
let 
  s = import ./src-for-2.6.31-zen0.nix;
in 
(import ../kernel/generic.nix) (rec {
  inherit (a) stdenv fetchurl perl mktemp module_init_tools;

  src = a.builderDefs.fetchGitFromSrcInfo s;
  version = "2.6.31-zen0";
  config = "./kernel-config";
  features = {
    iwlwifi = true;
    zen = true;
  };

  extraMeta = {
    maintainers = [
      a.lib.maintainers.raskin
    ];
    platforms = with a.lib.platforms; 
      linux;
  };

  preConfigure = '' 
    killOption () {
      sed -re "s/$1=[ym]/# $1 is not set/" -i .config
    }
    setOptionMod () {
      sed -re "s/# $1 is not set/$1=m/" -i .config
    }
    setOptionYes () {
      sed -re "s/# $1 is not set/$1=y/" -i .config
    }

    make allmodconfig

    killOption CONFIG_IMA

    cp .config ${config}
  '';
})<commit_msg>Trying to reconfigure kernel to boot<commit_after>a :  
let 
  s = import ./src-for-2.6.31-zen0.nix;
in 
(import ../kernel/generic.nix) (rec {
  inherit (a) stdenv fetchurl perl mktemp module_init_tools;

  src = a.builderDefs.fetchGitFromSrcInfo s;
  version = "2.6.31-zen0";
  config = "./kernel-config";
  features = {
    iwlwifi = true;
    zen = true;
  };

  extraMeta = {
    maintainers = [
      a.lib.maintainers.raskin
    ];
    platforms = with a.lib.platforms; 
      linux;
  };

  preConfigure = '' 
    killOption () {
      sed -re 's/^('"$1"')=[ym]/# \1 is not set/' -i .config
    }
    setOptionMod () {
      sed -re 's/^# ('"$1"') is not set/\1=m/' -i .config
      sed -re "1i$1=m" -i .config
    }
    setOptionYes () {
      sed -re 's/^# )'"$1"') is not set/\1=y/' -i .config
      sed -re "1i$1=y" -i .config
    }

    make allmodconfig

    killOption CONFIG_IMA
    killOption 'CONFIG_.*_DEBUG.*'
    killOption CONFIG_AUDIT_ARCH
    
    killOption CONFIG_KERNEL_BZIP2
    killOption CONFIG_KERNEL_LZMA
    setOptionYes CONFIG_KERNEL_GZIP

    killOption CONFIG_TASKSTATS
    killOption CONFIG_PREEMPT_NONE
    setOptionYes CONFIG_PREEMPT_VOLUNTARY

    cp .config ${config}
  '';
})
{'fraction_non_alphanumeric': 0.1481299212598425, 'fraction_numerical': 0.018208661417322834, 'mean_word_length': 2.232114467408585, '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': '2884230', 'n_tokens_mistral': 814, 'n_tokens_neox': 776, 'n_words': 177}