<commit_before>{ stdenv, fetchurl, pythonPackages }:

pythonPackages.buildPythonApplication rec {
  version = "1.3";
  name = "apt-offline-${version}";

  src = fetchurl {
    #url = "https://alioth.debian.org/frs/download.php/file/3855/${name}.tar.gz";
    # The above URL has two problems: it requires one to be logged in, and it
    # uses a CA that curl doesn't know about.  Instead, we use this mirror:
    url = "http://www.falsifian.org/a/cFi5/${name}.tar.gz";
    sha256 = "1sp7ai2abzhbg9y84700qziybphvpzl2nk3mz1d1asivzyjvxlxy";
  };

  doCheck = false;

  # Requires python-qt4 (feel free to get it working).
  preFixup = ''rm "$out/bin/apt-offline-gui"'';
<commit_msg>apt-offline: 1.3 -> 1.8.1<commit_after>{ stdenv, fetchFromGitHub, python3Packages }:

python3Packages.buildPythonApplication rec {
  version = "1.8.1";
  pname = "apt-offline";

  src = fetchFromGitHub {
    owner = "rickysarraf";
    repo = pname;
    rev = "v${version}";
    sha256 = "0k79d1d8jiwg1s684r05njmk1dz8gsb8a9bl4agz7m31snc11j84";
  };

  doCheck = false;

  # Requires python-qt4 (feel free to get it working).
  preFixup = ''rm "$out/bin/apt-offline-gui"'';

{'fraction_non_alphanumeric': 0.14521739130434783, 'fraction_numerical': 0.05304347826086957, 'mean_word_length': 3.6979591836734693, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3385668', 'n_tokens_mistral': 490, 'n_tokens_neox': 454, 'n_words': 94}