<commit_before>{ lib
, buildPythonPackage
, fetchPypi
, python
, nose
}:

buildPythonPackage rec {
  pname = "cchardet";
  version = "2.1.5";

  src = fetchPypi {
    inherit pname version;
    sha256 = "240efe3f255f916769458343840b9c6403cf3192720bc5129792cbcb88bf72fb";
  };

  checkInputs = [ nose ];
  checkPhase = ''
    ${python.interpreter} setup.py nosetests
  '';

  meta = {
    description = "High-speed universal character encoding detector";
    homepage = https://github.com/PyYoshi/cChardet;
    license = lib.licenses.mpl11;
    maintainers = with lib.maintainers; [ ivan ];
  };
}<commit_msg>python27Packages.cchardet: 2.1.5 -> 2.1.6<commit_after>{ lib
, buildPythonPackage
, fetchPypi
, python
, nose
}:

buildPythonPackage rec {
  pname = "cchardet";
  version = "2.1.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1cs6y59qhbal8fgbyjk2lpjykh8kfjhq16clfssylsddb4hgnsmp";
  };

  checkInputs = [ nose ];
  checkPhase = ''
    ${python.interpreter} setup.py nosetests
  '';

  meta = {
    description = "High-speed universal character encoding detector";
    homepage = "https://github.com/PyYoshi/cChardet";
    license = lib.licenses.mpl11;
    maintainers = with lib.maintainers; [ ivan ];
  };
}
{'fraction_non_alphanumeric': 0.12641815235008103, 'fraction_numerical': 0.0640194489465154, 'mean_word_length': 3.574074074074074, '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': '1456554', 'n_tokens_mistral': 505, 'n_tokens_neox': 452, 'n_words': 82}