<commit_before>{ stdenv
, fetchFromGitHub
, lib
}:

let
  version = "0.309";
in
stdenv.mkDerivation rec {
  name = "hwdata-${version}";

  src = fetchFromGitHub {
    version = 5;
    owner = "vcrhonek";
    repo = "hwdata";
    rev = "v${version}";
    sha256 = "a376fb831b6700ccfdc75cd32106149e5ad8fbd2f157282e0f46e64a165b0be3";
  };

  postPatch = ''
    patchShebangs configure
  '';

  preConfigure = ''
    configureFlagsArray+=("--datadir=$out/share")
  '';

  meta = with lib; {
    description = "Hardware Database, including Monitors, pci.ids, usb.ids, and video cards";
    homepage = "https://fedorahosted.org/hwdata/";
    license = licenses.gpl2;
    maintainers = with maintainers; [
      wkennington
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}<commit_msg>hwdata: 0.309 -> 0.311<commit_after>{ stdenv
, fetchFromGitHub
, lib
}:

let
  version = "0.311";
in
stdenv.mkDerivation rec {
  name = "hwdata-${version}";

  src = fetchFromGitHub {
    version = 5;
    owner = "vcrhonek";
    repo = "hwdata";
    rev = "v${version}";
    sha256 = "19ba68d3e7ebd0e2c333be93924cc42299cb2fa9b656a6d704046c68e1dbb804";
  };

  postPatch = ''
    patchShebangs configure
  '';

  preConfigure = ''
    configureFlagsArray+=("--datadir=$out/share")
  '';

  meta = with lib; {
    description = "Hardware Database, including Monitors, pci.ids, usb.ids, and video cards";
    homepage = "https://fedorahosted.org/hwdata/";
    license = licenses.gpl2;
    maintainers = with maintainers; [
      wkennington
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}
{'fraction_non_alphanumeric': 0.13963681903569192, 'fraction_numerical': 0.07013149655604257, 'mean_word_length': 3.172323759791123, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, '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': '3609920', 'n_tokens_mistral': 672, 'n_tokens_neox': 608, 'n_words': 110}