<commit_before>{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
  version = "3.18.3";
  name = "freefall-${version}";

  src = fetchurl {
    url = "mirror://kernel/linux/kernel/v3.x/linux-${version}.tar.xz";
    sha256 = "0ma2x68975xsi9kb15p0615nx9sm5ppb309kfdz7fgx9pg84q0hf";
  };

  buildPhase = ''
    cd Documentation/laptops

    # Default time-out is a little low, probably because the AC/lid status
    # functions were never implemented. Because no-one still uses HDDs, right?
    substituteInPlace freefall.c --replace "alarm(2)" "alarm(5)"

    cc -o freefall freefall.c
  '';

  installPhase = ''
    mkdir -p $out/bin
    install freefall $out/bin
  '';

  meta = with stdenv.lib; {
    description = "Free-fall protection for spinning HP/Dell laptop hard drives";
    longDescription = ''
      ATA/ATAPI-7 specifies the IDLE IMMEDIATE command with unload feature.
      Issuing this command should cause the drive to switch to idle mode and<commit_msg>freefall 3.18.3 -> 3.19<commit_after>{ stdenv, fetchurl }:

let version = "3.19"; in
stdenv.mkDerivation rec {
  name = "freefall-${version}";

  src = fetchurl {
    sha256 = "0v40b5l6dcviqgl47bxlcbimz7kawmy1c2909axi441jwlgm2hmy";
    url = "mirror://kernel/linux/kernel/v3.x/linux-${version}.tar.xz";
  };

  buildPhase = ''
    cd Documentation/laptops

    # Default time-out is a little low, probably because the AC/lid status
    # functions were never implemented. Because no-one still uses HDDs, right?
    substituteInPlace freefall.c --replace "alarm(2)" "alarm(5)"

    cc -o freefall freefall.c
  '';

  installPhase = ''
    mkdir -p $out/bin
    install freefall $out/bin
  '';

  meta = with stdenv.lib; {
    description = "Free-fall protection for spinning HP/Dell laptop hard drives";
    longDescription = ''
      ATA/ATAPI-7 specifies the IDLE IMMEDIATE command with unload feature.
      Issuing this command should cause the drive to switch to idle mode and
{'fraction_non_alphanumeric': 0.10991268618387262, 'fraction_numerical': 0.03543913713405239, 'mean_word_length': 3.262582056892779, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '7578824', 'n_tokens_mistral': 701, 'n_tokens_neox': 661, 'n_words': 183}