<commit_before>#!/usr/bin/env ruby

$LOAD_PATH << File.dirname(__FILE__)

require 'osx/cocoa'
include OSX
require 'controller'
require 'commandline_parser'
require 'version'

OSX::require_framework('/System/Library/Frameworks/WebKit.framework')

OSX::NSApplication.sharedApplication # create NSApp object
<commit_msg>An obsolete "require 'version'" caused wkpdf to fail on some installations. Removed the offending require.<commit_after>#!/usr/bin/env ruby

$LOAD_PATH << File.dirname(__FILE__)

require 'osx/cocoa'
include OSX
require 'controller'
require 'commandline_parser'

OSX::require_framework('/System/Library/Frameworks/WebKit.framework')

OSX::NSApplication.sharedApplication # create NSApp object

{'fraction_non_alphanumeric': 0.11283497884344147, 'fraction_numerical': 0.0, 'mean_word_length': 7.160919540229885, 'pattern_counts': {'":': 0, '<': 7, '<?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': '706086', 'n_tokens_mistral': 222, 'n_tokens_neox': 211, 'n_words': 50}