<commit_before>{ stdenv
, cmake
, fetchTritonPatch
, fetchurl
, ninja
, perl
, python
, swig

, libedit
, libffi
, libtirpc
, libxml2
, ncurses
, zlib

, channel
}:

let
  sources = import ./sources.nix;

  inherit (sources."${channel}")
    version
    patches
    srcs;

  gcc = if stdenv.cc.isGNU then stdenv.cc.cc else stdenv.cc.cc.gcc;

  inherit (stdenv.lib)
    flip
    makeOverridable
    mapAttrsToList
    replaceChars;

  srcs' = flip mapAttrsToList srcs (n: d:
    let
      version' = d.version or version;
    in makeOverridable fetchurl {
      urls = map (u: "${u}/${replaceChars ["-"] ["/"] version'}/${n}-${replaceChars ["-"] [""] version'}.src.tar.xz") [
        "http://llvm.org/releases"
        "http://llvm.org/pre-releases"
        "https://distfile.macports.org/llvm"
      ];
      inherit (d) sha256;
    }<commit_msg>llvm: Fix url ordering<commit_after>{ stdenv
, cmake
, fetchTritonPatch
, fetchurl
, ninja
, perl
, python
, swig

, libedit
, libffi
, libtirpc
, libxml2
, ncurses
, zlib

, channel
}:

let
  sources = import ./sources.nix;

  inherit (sources."${channel}")
    version
    patches
    srcs;

  gcc = if stdenv.cc.isGNU then stdenv.cc.cc else stdenv.cc.cc.gcc;

  inherit (stdenv.lib)
    flip
    makeOverridable
    mapAttrsToList
    replaceChars;

  srcs' = flip mapAttrsToList srcs (n: d:
    let
      version' = d.version or version;
    in makeOverridable fetchurl {
      urls = map (u: "${u}/${replaceChars ["-"] ["/"] version'}/${n}-${replaceChars ["-"] [""] version'}.src.tar.xz") [
        "https://distfiles.macports.org/llvm"
        "http://llvm.org/releases"
        "http://llvm.org/pre-releases"
      ];
      inherit (d) sha256;
    }
{'fraction_non_alphanumeric': 0.15569917743830788, 'fraction_numerical': 0.004700352526439483, 'mean_word_length': 2.638888888888889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '646861', 'n_tokens_mistral': 671, 'n_tokens_neox': 635, 'n_words': 131}