<commit_before>require 'formula'

class Ddclient < Formula
  homepage 'http://sourceforge.net/p/ddclient/wiki/Home'
  url 'https://downloads.sourceforge.net/project/ddclient/ddclient/ddclient-3.8.2/ddclient-3.8.2.tar.bz2'
  sha1 '8c887c06a580773c48a1eaced82a08c3077e1325'

  def install
    # Adjust default paths in script
    inreplace 'ddclient' do |s|
      s.gsub! "/etc/ddclient", "#{etc}/ddclient"
      s.gsub! "/var/cache/ddclient", "#{var}/run/ddclient"
    end

    sbin.install "ddclient"

    # Install sample files
    inreplace 'sample-ddclient-wrapper.sh',
      "/etc/ddclient", "#{etc}/ddclient"
<commit_msg>ddclient: add HEAD<commit_after>require 'formula'

class Ddclient < Formula
  homepage 'http://sourceforge.net/p/ddclient/wiki/Home'
  url 'https://downloads.sourceforge.net/project/ddclient/ddclient/ddclient-3.8.2/ddclient-3.8.2.tar.bz2'
  sha1 '8c887c06a580773c48a1eaced82a08c3077e1325'

  head 'https://github.com/wimpunk/ddclient.git'

  def install
    # Adjust default paths in script
    inreplace 'ddclient' do |s|
      s.gsub! "/etc/ddclient", "#{etc}/ddclient"
      s.gsub! "/var/cache/ddclient", "#{var}/run/ddclient"
    end

    sbin.install "ddclient"

    # Install sample files
    inreplace 'sample-ddclient-wrapper.sh',
      "/etc/ddclient", "#{etc}/ddclient"

{'fraction_non_alphanumeric': 0.14843152257077277, 'fraction_numerical': 0.05355776587605203, 'mean_word_length': 3.5734265734265733, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6568994', 'n_tokens_mistral': 534, 'n_tokens_neox': 487, 'n_words': 80}