<commit_before># OS X

## Dev Build

* Download Qt 5.3.1+ http://qt-project.org/downloads
* Run the setup wizard and install to a known location which we'll call /path/to/qt
* Grab a copy of the QScintilla libs http://www.riverbankcomputing.co.uk/software/qscintilla/download and untar into a known location which we'll call /path/to/qscintilla
* Build QScintilla:
  - cd /path/to/qscintilla/Qt4Qt5 
  - generate makefile: /path/to/qt/5.3/clang_64/bin/qmake qscintilla.pro
  - make
* Open Project in Qt Creator
  - Open Qt Creator
  - Menu -> File -> Open File or Project -> /path/to/sonic-pi/app/gui/qt/SonicPi.pro
* Change where build output is
  - Projects tab -> Build Directory - change to known location which we'll call /path/to/app
* Add this to SonicPi.pro
    LIBS += -L /path/to/qscintilla/Qt4Qt5/ -lqscintilla2
    INCLUDEPATH += /path/to/qscintilla/Qt4Qt5/
    DEPENDPATH += /path/to/qscintilla/Qt4Qt5/
* Build project - should see app dir structure in /path/to/app
* Copy all dylibs to new app dir: 
  - cp /path/to/qscintilla/Qt4Qt5/*.dylib /path/to/app/Sonic-Pi.app/Contents/MacOS/
* Copy this as a Info.plist into the root of Sonic-Pi.app:
  
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
            <key>NSPrincipalClass</key>
            <string>NSApplication</string>
            <key>NSHighResolutionCapable</key>
            <string>True</string>
            <key>CFBundleIconFile</key>
            <string>app.icns</string>
            <key>CFBundlePackageType</key>
            <string>APPL</string>
            <key>CFBundleGetInfoString</key>
            <string>Created by Qt/QMake</string>
            <key>CFBundleSignature</key>
            <string>????</string>
            <key>CFBundleExecutable</key><commit_msg>Info.plist should go into Content dir not root<commit_after># OS X

## Dev Build

* Download Qt 5.3.1+ http://qt-project.org/downloads
* Run the setup wizard and install to a known location which we'll call /path/to/qt
* Grab a copy of the QScintilla libs http://www.riverbankcomputing.co.uk/software/qscintilla/download and untar into a known location which we'll call /path/to/qscintilla
* Build QScintilla:
  - cd /path/to/qscintilla/Qt4Qt5 
  - generate makefile: /path/to/qt/5.3/clang_64/bin/qmake qscintilla.pro
  - make
* Open Project in Qt Creator
  - Open Qt Creator
  - Menu -> File -> Open File or Project -> /path/to/sonic-pi/app/gui/qt/SonicPi.pro
* Change where build output is
  - Projects tab -> Build Directory - change to known location which we'll call /path/to/app
* Add this to SonicPi.pro
    LIBS += -L /path/to/qscintilla/Qt4Qt5/ -lqscintilla2
    INCLUDEPATH += /path/to/qscintilla/Qt4Qt5/
    DEPENDPATH += /path/to/qscintilla/Qt4Qt5/
* Build project - should see app dir structure in /path/to/app
* Copy all dylibs to new app dir: 
  - cp /path/to/qscintilla/Qt4Qt5/*.dylib /path/to/app/Sonic-Pi.app/Contents/MacOS/
* Copy this as a Info.plist into the Content dir within Sonic-Pi.app:
  
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
            <key>NSPrincipalClass</key>
            <string>NSApplication</string>
            <key>NSHighResolutionCapable</key>
            <string>True</string>
            <key>CFBundleIconFile</key>
            <string>app.icns</string>
            <key>CFBundlePackageType</key>
            <string>APPL</string>
            <key>CFBundleGetInfoString</key>
            <string>Created by Qt/QMake</string>
            <key>CFBundleSignature</key>
            <string>????</string>
            <key>CFBundleExecutable</key>
{'fraction_non_alphanumeric': 0.13167539267015707, 'fraction_numerical': 0.014136125654450262, 'mean_word_length': 2.6740384615384616, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 2, '>': 71, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6396218', 'n_tokens_mistral': 1369, 'n_tokens_neox': 1309, 'n_words': 309}