<commit_before>{ lib
, buildPythonPackage
, fetchPypi
, pyutil
, setuptoolsTrial
, twisted
}:

buildPythonPackage rec {
  pname = "zfec";
  version = "1.5.5";

  src = fetchPypi {
    inherit pname version;
    sha256 = "6033b2f3cc3edacf3f7eeed5f258c1ebf8a1d7e5e35b623db352512ce564e5ca";
  };

  propagatedBuildInputs = [ pyutil ];

  checkInputs = [ setuptoolsTrial twisted ];

  # argparse is in the stdlib but zfec doesn't know that.
  postPatch = ''
    sed -i -e '/argparse/d' setup.py
  '';

  pythonImportsCheck = [ "zfec" ];

  meta = with lib; {
    homepage = "https://github.com/tahoe-lafs/zfec";
    description = "Zfec, a fast erasure codec which can be used with the command-line, C, Python, or Haskell";
    longDescription = ''
      Fast, portable, programmable erasure coding a.k.a. "forward
      error correction": the generation of redundant blocks of
      information such that if some blocks are lost then the
      original data can be recovered from the remaining blocks. The
      zfec package includes command-line tools, C API, Python API,
      and Haskell API.
    '';
    license = licenses.gpl2Plus;
    maintainers = with maintainers; [ prusnak ];
  };

}
<commit_msg>python310Packages.zfec: 1.5.5 -> 1.5.7.2<commit_after>{ lib
, buildPythonPackage
, fetchPypi
, pyutil
, setuptoolsTrial
, twisted
}:

buildPythonPackage rec {
  pname = "zfec";
  version = "1.5.7.2";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-TuUZvg3MfaLohIK8/Av5d6Ql4dfoJ4z1u7uNAPiir7Y=";
  };

  propagatedBuildInputs = [ pyutil ];

  checkInputs = [ setuptoolsTrial twisted ];

  # argparse is in the stdlib but zfec doesn't know that.
  postPatch = ''
    sed -i -e '/argparse/d' setup.py
  '';

  pythonImportsCheck = [ "zfec" ];

  meta = with lib; {
    homepage = "https://github.com/tahoe-lafs/zfec";
    description = "Zfec, a fast erasure codec which can be used with the command-line, C, Python, or Haskell";
    longDescription = ''
      Fast, portable, programmable erasure coding a.k.a. "forward
      error correction": the generation of redundant blocks of
      information such that if some blocks are lost then the
      original data can be recovered from the remaining blocks. The
      zfec package includes command-line tools, C API, Python API,
      and Haskell API.
    '';
    license = licenses.gpl2Plus;
    maintainers = with maintainers; [ prusnak ];
  };

}

{'fraction_non_alphanumeric': 0.10041322314049586, 'fraction_numerical': 0.028925619834710745, 'mean_word_length': 3.1597938144329896, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4035821', 'n_tokens_mistral': 874, 'n_tokens_neox': 810, 'n_words': 240}