<commit_before>{ nixpkgs ? ../nixpkgs
, officialRelease ? false
, strategoxtSrc ? {outPath = ./. ; rev = 1234;}
}:

let

  pkgs = import nixpkgs { };

  strategoxtBaseline =
    pkgs.stdenv.mkDerivation {
      name = "strategoxt-baseline";
      src = pkgs.fetchurl {
              url = "http://releases.strategoxt.org/strategoxt/strategoxt-0.17pre18222-xi157j0s/strategoxt-0.17pre18222.tar.gz";
              sha256 = "1d8cd6bc0d24281edef302434277f74dbe5ccac8493e410af5cce9cef5ec43d4";
            };

      buildInputs = defaultBuildInputs pkgs ;
    };

    defaultBuildInputs = pkgs :
      [ pkgs.pkgconfig
        pkgs.aterm
        pkgs.strategoPackages017.sdf
        pkgs.getopt
      ];

    defaultSvnBuildInputs = pkgs :
      [ pkgs.autoconf
        pkgs.automake19x
        pkgs.libtool
      ] ++ defaultBuildInputs pkgs;

  makeStrategoXTTarball = name : src : baseline : official :  
    pkgs.releaseTools.makeSourceTarball {
      name = name;
      version = builtins.readFile ./version;

      src = src;

      configureFlags = " --with-strategoxt=${baseline} --enable-werror";

      buildInputs = defaultSvnBuildInputs pkgs ;

      doCheck = false;
      dontInstall = false;
      useTempPrefix = false;
      tarballs = "*.tar.gz";

      officialRelease = official;
    };

  svn_tarball1 = { strategoxtSrc ? {outPath = ./. ; rev = 1234;}, officialRelease ? false }:
    makeStrategoXTTarball "strategoxt-tarball1" strategoxtSrc strategoxtBaseline officialRelease ;

  svn_tarball2 = { strategoxtSrc ? {outPath = ./. ; rev = 1234;}, officialRelease ? false }:
    makeStrategoXTTarball "strategoxt-tarball2" strategoxtSrc svn_tarball1 officialRelease ;

  jobs = rec {

    tarball = 
      makeStrategoXTTarball "strategoxt-tarball" strategoxtSrc svn_tarball2 officialRelease ; 

    build =
      { tarball ? jobs.tarball {}
      , system ? "i686-linux"
      }:
 
      with import nixpkgs {inherit system;};

      releaseTools.nixBuild {
        name = "strategoxt";
        src = tarball;
 
        buildInputs = defaultBuildInputs pkgs ;

      };

  } ;<commit_msg>release.nix: undo changes<commit_after>{ nixpkgs ? ../nixpkgs
, officialRelease ? false
, strategoxtSrc ? {outPath = ./. ; rev = 1234;}
}:

let

  pkgs = import nixpkgs { };

  strategoxtBaseline =
    pkgs.stdenv.mkDerivation {
      name = "strategoxt-baseline";
      src = pkgs.fetchurl {
              url = "http://releases.strategoxt.org/strategoxt/strategoxt-0.17pre18222-xi157j0s/strategoxt-0.17pre18222.tar.gz";
              sha256 = "1d8cd6bc0d24281edef302434277f74dbe5ccac8493e410af5cce9cef5ec43d4";
            };

      buildInputs = defaultBuildInputs pkgs ;
    };

    defaultBuildInputs = pkgs :
      [ pkgs.pkgconfig
        pkgs.aterm
        pkgs.strategoPackages017.sdf
        pkgs.getopt
      ];

    defaultSvnBuildInputs = pkgs :
      [ pkgs.autoconf
        pkgs.automake19x
        pkgs.libtool
      ] ++ defaultBuildInputs pkgs;

  makeStrategoXTTarball = name : src : baseline : official :  
    pkgs.releaseTools.makeSourceTarball {
      name = name;
      version = builtins.readFile ./version;

      src = src;

      configureFlags = " --with-strategoxt=${baseline} --enable-werror";

      buildInputs = defaultSvnBuildInputs pkgs ;

      doCheck = false;
      dontInstall = false;
      useTempPrefix = false;
      tarballs = "*.tar.gz";

      officialRelease = official;
    };

#  svn_tarball1 = { strategoxtSrc ? {outPath = ./. ; rev = 1234;}, officialRelease ? false }:
#    makeStrategoXTTarball "strategoxt-tarball1" strategoxtSrc strategoxtBaseline officialRelease ;

#  svn_tarball2 = { strategoxtSrc ? {outPath = ./. ; rev = 1234;}, officialRelease ? false }:
#    makeStrategoXTTarball "strategoxt-tarball2" strategoxtSrc svn_tarball1 officialRelease ;

  jobs = rec {

    tarball = 
      makeStrategoXTTarball "strategoxt-tarball" strategoxtSrc strategoxtBaseline officialRelease ; 

    build =
      { tarball ? jobs.tarball {}
      , system ? "i686-linux"
      }:
 
      with import nixpkgs {inherit system;};

      releaseTools.nixBuild {
        name = "strategoxt";
        src = tarball;
 
        buildInputs = defaultBuildInputs pkgs ;

      };

  } ;
{'fraction_non_alphanumeric': 0.10359508041627247, 'fraction_numerical': 0.03902554399243141, 'mean_word_length': 2.5418760469011725, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4062047', 'n_tokens_mistral': 1634, 'n_tokens_neox': 1447, 'n_words': 238}