<commit_before>{ stdenv, fetchurl, buildPythonPackage, isPyPy, python, libev, greenlet }:

buildPythonPackage rec {
  name = "gevent-1.1.2";

  src = fetchurl {
    url = "mirror://pypi/g/gevent/${name}.tar.gz";
    sha256 = "cb15cf73d69a2eeefed330858f09634e2c50bf46da9f9e7635730fcfb872c02c";
  };

  # Why do we have this patch?
  postPatch = ''
    substituteInPlace libev/ev.c --replace \
      "ecb_inline void ecb_unreachable (void) ecb_noreturn" \
      "ecb_inline ecb_noreturn void ecb_unreachable (void)"
  '';

  buildInputs = [ libev ];
  propagatedBuildInputs = stdenv.lib.optionals (!isPyPy) [ greenlet ];

  checkPhase = ''
    cd greentest
    ${python.interpreter} testrunner.py
  '';
<commit_msg>pythonPackages.gevent: 1.1.2 -> 1.2.2<commit_after>{ stdenv, fetchurl, buildPythonPackage, isPyPy, python, libev, greenlet }:

buildPythonPackage rec {
  name = "gevent-1.2.2";

  src = fetchurl {
    url = "mirror://pypi/g/gevent/${name}.tar.gz";
    sha256 = "0bbbjvi423y9k9xagrcsimnayaqymg6f2dj76m9z3mjpkjpci4a7";
  };

  buildInputs = [ libev ];
  propagatedBuildInputs = stdenv.lib.optionals (!isPyPy) [ greenlet ];

  checkPhase = ''
    cd greentest
    ${python.interpreter} testrunner.py
  '';

{'fraction_non_alphanumeric': 0.13486842105263158, 'fraction_numerical': 0.05674342105263158, 'mean_word_length': 3.8102766798418974, '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': '3625891', 'n_tokens_mistral': 519, 'n_tokens_neox': 488, 'n_words': 80}