<commit_before>require "language/node"

class Joplin < Formula
  desc "Note taking and to-do application with synchronisation capabilities"
  homepage "https://joplin.cozic.net/"
  url "https://registry.npmjs.org/joplin/-/joplin-1.0.125.tgz"
  sha256 "c41cb46e37549958a941c2e8af7d60ed667479adbbdfc8880e5158631b9c5ebc"

  bottle do
    sha256 "7a0359eadd073092d70762acfff84f57f31eacea52224375ef027b142623d79a" => :mojave
    sha256 "3e47b2e6d743fba79503934d674b6185c610e39fb58d40f7a8596a107518aef1" => :high_sierra
    sha256 "81970b83217257790c1bfef47c224eb93a215eb8ac8f9619b3ac49c01ae5669a" => :sierra
  end

  depends_on "python@2" => :build
  depends_on "node"

  def install
    # node 12 compatibility fixes, can be removed for the next version
    inreplace "package.json" do |s|<commit_msg>joplin: update 1.0.125 bottle.<commit_after>require "language/node"

class Joplin < Formula
  desc "Note taking and to-do application with synchronisation capabilities"
  homepage "https://joplin.cozic.net/"
  url "https://registry.npmjs.org/joplin/-/joplin-1.0.125.tgz"
  sha256 "c41cb46e37549958a941c2e8af7d60ed667479adbbdfc8880e5158631b9c5ebc"

  bottle do
    sha256 "62beda24cd2cd2b33d51e30a1cc30aa6dafed3f6fe9dc550be602851aa10ebdf" => :mojave
    sha256 "41cba5161cac53128d62d1d32c91d1cc215e11ead231be421bef68817eb0eb39" => :high_sierra
    sha256 "53e066877ba15725e1af3f64ca467d43c03177351c7b78752f01575e226f6a59" => :sierra
  end

  depends_on "python@2" => :build
  depends_on "node"

  def install
    # node 12 compatibility fixes, can be removed for the next version
    inreplace "package.json" do |s|
{'fraction_non_alphanumeric': 0.08317815021725636, 'fraction_numerical': 0.22656734947237742, 'mean_word_length': 5.473895582329317, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, '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': '6370480', 'n_tokens_mistral': 873, 'n_tokens_neox': 678, 'n_words': 110}