<commit_before>{ stdenv
, buildPythonPackage
, fetchPyPi
}:

buildPythonPackage rec {
  name = "tmdb3-${version}";
  version = "0.7.2";

  src = fetchPyPi {
    package = "tmdb3";
    inherit version;
    sha256 = "9b6e043b8a65d159e7fc8f720badc7ffee5109296e38676c107454e03a895983";
  };

  doCheck = true;

  meta = with stdenv.lib; {
    description = "TheMovieDB.org APIv3 interface";
    homepage = https://pypi.python.org/pypi/tmdb3;
    license = licenses.bsd3;
    maintainers = with maintainers; [
      codyopel
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}
<commit_msg>tmdb3: refactor<commit_after>{ stdenv
, buildPythonPackage
, fetchPyPi
, lib
}:

let
  version = "0.7.2";
in
buildPythonPackage rec {
  name = "tmdb3-${version}";

  src = fetchPyPi {
    package = "tmdb3";
    inherit version;
    sha256 = "9b6e043b8a65d159e7fc8f720badc7ffee5109296e38676c107454e03a895983";
  };

  doCheck = true;

  meta = with lib; {
    description = "TheMovieDB.org APIv3 interface";
    homepage = https://pypi.python.org/pypi/tmdb3;
    license = licenses.bsd3;
    maintainers = with maintainers; [
      codyopel
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}

{'fraction_non_alphanumeric': 0.11877076411960133, 'fraction_numerical': 0.09717607973421927, 'mean_word_length': 3.1986062717770034, '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': '2627062', 'n_tokens_mistral': 542, 'n_tokens_neox': 466, 'n_words': 82}