<commit_before>--- libmagic.rb.orig	2013-07-30 00:49:48.000000000 +0100
+++ libmagic.rb.new	2013-07-30 00:49:24.000000000 +0100
@@ -12,7 +12,11 @@
 
   # Fixed upstream, should be in next release
   # See http://bugs.gw.com/view.php?id=230
-  def patches; DATA; end if MacOS.version < :lion
+  def patches
+    p = []
+    p << DATA if MacOS.version < :lion
+    p << 'https://gist.github.com/kwilczynski/6108866/raw/15d1f0a2dba5da23e820b503e8551346a4d235eb/file-5.14.diff'
+  end
 
   def install
     ENV.universal_binary if build.universal?<commit_msg>Add comment as per Homebrew guidelines.<commit_after>--- libmagic.rb.orig	2013-07-30 00:49:48.000000000 +0100
+++ libmagic.rb.new	2013-07-30 04:12:29.000000000 +0100
@@ -12,7 +12,13 @@
 
   # Fixed upstream, should be in next release
   # See http://bugs.gw.com/view.php?id=230
-  def patches; DATA; end if MacOS.version < :lion
+  def patches
+    p = []
+    p << DATA if MacOS.version < :lion
+    # Fixes generaly incorrect code, plus issues with certain
+    # versions of cpp. Not fixed in upstream yet.
+    p << 'https://gist.github.com/kwilczynski/6108866/raw/15d1f0a2dba5da23e820b503e8551346a4d235eb/file-5.14.diff'
+  end
 
   def install
     ENV.universal_binary if build.universal?
{'fraction_non_alphanumeric': 0.1408, 'fraction_numerical': 0.1584, 'mean_word_length': 3.3588850174216027, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, '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': '3168890', 'n_tokens_mistral': 630, 'n_tokens_neox': 478, 'n_words': 106}