<commit_before>diff -r b49f6c4c060a core/init.lua
--- a/core/init.lua	Tue Jun 24 18:43:59 2008 -0400
+++ b/core/init.lua	Wed Jun 25 14:44:26 2008 -0400
@@ -6,7 +6,6 @@ require 'iface'
 require 'iface'
 require 'events'
 require 'file_io'
-require 'lua_dialog'
 
 ---
 -- Checks if the buffer being indexed is the currently focused buffer.
@@ -31,10 +30,13 @@ end
 --   used.
 -- @return string CocoaDialog result.
 function cocoa_dialog(kind, opts)
-  local args = { kind }
+  local args = ''
   for k, v in pairs(opts) do
-    args[#args + 1] = '--'..k
-    if type(v) == 'string' then args[#args + 1] = v end
+    args = args..' --'..k
+    if type(v) == 'string' then args = args..' "'..v..'"' end
   end
-  return lua_dialog.run(args)
+  local p = io.popen('CocoaDialog '..kind..args)
+  local out = p:read('*all')
+  p:close()
+  return out
 end<commit_msg>Updated osx.patch.<commit_after>diff -r b49f6c4c060a core/init.lua
--- a/core/init.lua	Wed Jun 25 23:32:05 2008 -0400
+++ b/core/init.lua	Wed Jun 25 23:40:15 2008 -0400
@@ -35,7 +35,7 @@
     args = args..' --'..k
     if type(v) == 'string' then args = args..' "'..v..'"' end
   end
-  local p = io.popen(_HOME..'/core/lua_dialog.lua '..kind..args)
+  local p = io.popen('CocoaDialog '..kind..args)
   local out = p:read('*all')
   p:close()
   return out
{'fraction_non_alphanumeric': 0.19650986342943855, 'fraction_numerical': 0.07435508345978756, 'mean_word_length': 2.715492957746479, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '4453925', 'n_tokens_mistral': 602, 'n_tokens_neox': 526, 'n_words': 145}