<commit_before>require 'formula'

class Otx < Formula
  homepage 'http://otx.osxninja.com/'
  head 'http://otx.osxninja.com/builds/trunk/', :using => :svn

  depends_on :xcode # For working xcodebuild.

  def install
    system 'xcodebuild SYMROOT=build'
    build = buildpath/'build/Release'
    bin.install build+"otx"
    prefix.install build+"otx.app"
  end
end<commit_msg>otx: Patch MacOS SDK paths<commit_after>require 'formula'

class Otx < Formula
  homepage 'http://otx.osxninja.com/'
  head 'http://otx.osxninja.com/builds/trunk/', :using => :svn

  depends_on :xcode # For working xcodebuild.

  def install
    inreplace 'otx.xcodeproj/project.pbxproj' do |s|
      s.gsub! "MacOSX10.6.sdk", "MacOSX#{MacOS.version}.sdk"
    end

    system 'xcodebuild SYMROOT=build'
    build = buildpath/'build/Release'
    bin.install build+"otx"
    prefix.install build+"otx.app"
  end
end
{'fraction_non_alphanumeric': 0.1348314606741573, 'fraction_numerical': 0.0033707865168539327, 'mean_word_length': 3.5927835051546393, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6574546', 'n_tokens_mistral': 348, 'n_tokens_neox': 338, 'n_words': 69}