<commit_before>{ stdenv, fetchurl, premake5, hostPlatform }:

stdenv.mkDerivation rec {
  name = "otfcc-${version}";
  version = "0.8.6";

  src = fetchurl {
    url = "https://github.com/caryll/otfcc/archive/v${version}.tar.gz";
    sha256 = "0kap52bzrn21fmph8j2pc71f80f38ak1p2fcczzmrh0hb1r9c8dd";
  };

  nativeBuildInputs = [ premake5 ];

  configurePhase = ''
    premake5 gmake
  '';

  preBuild = "cd build/gmake";

  makeFlags = ''config=release_${if hostPlatform.isi686 then "x86" else "x64"}'';

  postBuild = "cd ../..";

  installPhase = ''
    mkdir -p $out/bin
    cp bin/release-x*/otfcc* $out/bin/
  '';<commit_msg>otfcc: build with ninja<commit_after>{ stdenv, fetchFromGitHub, premake5, ninja, hostPlatform }:

stdenv.mkDerivation rec {
  name = "otfcc-${version}";
  version = "0.8.6";

  src = fetchFromGitHub {
    owner = "caryll";
    repo = "otfcc";
    rev = "v${version}";
    sha256 = "0yy9awffxxs0cdlf0akld73ndnwmylxvplac4k6j7641m3vk1g8p";
  };

  nativeBuildInputs = [ premake5 ninja ];

  configurePhase = ''
    premake5 ninja
  '';

  ninjaFlags = let x = if hostPlatform.isi686 then "x86" else "x64"; in
    [ "-C" "build/ninja" "otfccdump_release_${x}" "otfccbuild_release_${x}" ];

  installPhase = ''
    mkdir -p $out/bin
    cp bin/release-x*/otfcc* $out/bin/
  '';
{'fraction_non_alphanumeric': 0.16129032258064516, 'fraction_numerical': 0.05069124423963134, 'mean_word_length': 3.508650519031142, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '5195937', 'n_tokens_mistral': 575, 'n_tokens_neox': 535, 'n_words': 93}