<commit_before>{ lib
, buildPythonPackage
, fetchPypi
, re2
, pytest
}:

buildPythonPackage rec {
  pname = "fb-re2";
  version = "1.0.7";

  src = fetchPypi {
    inherit pname version;
    sha256 = "83b2c2cd58d3874e6e3a784cf4cf2f1a57ce1969e50180f92b010eea24ef26cf";
  };

  buildInputs = [ re2 ];

  checkInputs = [ pytest ];
  checkPhase = ''
    py.test
  '';

  meta = {
    description = "Python wrapper for Google's RE2";
    homepage = https://github.com/facebook/pyre2;
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ ivan ];
  };
}<commit_msg>python.pkgs.fb-re2: no tests in tarball<commit_after>{ lib
, buildPythonPackage
, fetchPypi
, re2
, pytest
}:

buildPythonPackage rec {
  pname = "fb-re2";
  version = "1.0.7";

  src = fetchPypi {
    inherit pname version;
    sha256 = "83b2c2cd58d3874e6e3a784cf4cf2f1a57ce1969e50180f92b010eea24ef26cf";
  };

  buildInputs = [ re2 ];

  # no tests in PyPI tarball
  doCheck = false;

  meta = {
    description = "Python wrapper for Google's RE2";
    homepage = https://github.com/facebook/pyre2;
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ ivan ];
  };
}
{'fraction_non_alphanumeric': 0.12307692307692308, 'fraction_numerical': 0.08632478632478632, 'mean_word_length': 3.337037037037037, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '929277', 'n_tokens_mistral': 513, 'n_tokens_neox': 456, 'n_words': 87}