<commit_before>{stdenv, fetchurl, sqlite, ruby }:

stdenv.mkDerivation {
  name = "rq-3.4.0";
  src = fetchurl {
    url = http://www.codeforpeople.com/lib/ruby/rq/rq-3.4.0.tgz;
    sha256 = "1g8wiv83dcn4vzk9wjjzs9vjnwzwpy4h84h34cj32wfz793wfb8b";
  };

  buildInputs = [ ruby ];

  installPhase = "ruby install.rb";
  
  meta = {
    license = "Ruby";
    homepage = "http://www.codeforpeople.com/lib/ruby/rq/";
    description = "rq is a tool used to create instant linux clusters by managing sqlite databases as nfs mounted priority work queues";
  };
}<commit_msg>rq (a cluster runner) works<commit_after>{stdenv, fetchurl, sqlite, ruby }:

# Package builds rq with all dependencies into one blob. This to ascertain
# the combination of packages works.

stdenv.mkDerivation {
  name = "rq-3.4.0";
  src = fetchurl {
    url = http://www.codeforpeople.com/lib/ruby/rq/rq-3.4.0.tgz;
    sha256 = "1g8wiv83dcn4vzk9wjjzs9vjnwzwpy4h84h34cj32wfz793wfb8b";
  };

  buildInputs = [ ruby ];

  # patch checks for existing stdin file - sent it upstream
  patches = [ ./rq.patch ];

  buildPhase = ''
    cd all
    ./install.sh $out
    cd ..
  '';

  installPhase = ''
  '';

  meta = {
    license = "Ruby";
    homepage = "http://www.codeforpeople.com/lib/ruby/rq/";
    description = "Simple cluster queue runner";
    longDescription = "rq creates instant linux clusters by managing priority work queues, even on a multi-core single machine. This cluster runner is easy to install and easy to manage, contrasting with the common complicated solutions.";
    pkgMaintainer = "<NAME>";
    # rq installs a separate Ruby interpreter, which has lower priority
    priority = "10";
  };
}
{'fraction_non_alphanumeric': 0.11957168352171327, 'fraction_numerical': 0.03331350386674598, 'mean_word_length': 3.2908163265306123, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '6737925', 'n_tokens_mistral': 624, 'n_tokens_neox': 575, 'n_words': 156}