<commit_before>HACKING
=======

This guide assumes you have already downloaded and installed the Android
SDK, in to a directory referred to as $SDK.

Fetch the code
--------------


Android Studio
--------------

*   Install the Android Build Tools revision 17.0.0 if not already installed.

    Run $SDK/tools/android and select "Android SDK Build-tools",

*   Run Android Studio

*   If you have no projects open then choose "Import project" from the dialog
    that appears.

    If you already have a project open then choose File > Import Project...

*   In the "Select File or Directory to Import" dialog that appears, navigate
    to the directory that you fetched the Squeezer source code in to and
    select the build.gradle file that ships with Squeezer.

*   In the "Import Project from Gradle" dialog tick "Use auto-import" and
    make sure that "Use gradle wrapper (recommended)" is selected.

*   Copy ide/intellij/codestyles/AndroidStyle.xml to Android Studio's config
    directory.

    Linux: ~/.AndroidStudioPreview/config/codestyles
    OS X: ~/Library/Preferences/AndroidStudioPreview/codestyles
    Windows: TBD

*   Go to Settings (or Preferences in Mac OS X) > Code Style > Java, select
    "AndroidStyle", as well as Code Style > XML and select "AndroidStyle".<commit_msg>Include Windows path for Android Studio config files.<commit_after>HACKING
=======

This guide assumes you have already downloaded and installed the Android
SDK, in to a directory referred to as $SDK.

Fetch the code
--------------


Android Studio
--------------

*   Install the Android Build Tools revision 17.0.0 if not already installed.

    Run $SDK/tools/android and select "Android SDK Build-tools",

*   Run Android Studio

*   If you have no projects open then choose "Import project" from the dialog
    that appears.

    If you already have a project open then choose File > Import Project...

*   In the "Select File or Directory to Import" dialog that appears, navigate
    to the directory that you fetched the Squeezer source code in to and
    select the build.gradle file that ships with Squeezer.

*   In the "Import Project from Gradle" dialog tick "Use auto-import" and
    make sure that "Use gradle wrapper (recommended)" is selected.

*   Copy ide/intellij/codestyles/AndroidStyle.xml to Android Studio's config
    directory.

    Linux: ~/.AndroidStudioPreview/config/codestyles
    OS X: ~/Library/Preferences/AndroidStudioPreview/codestyles
    Windows: ~/.AndroidStudioPreview/config/codestyles

*   Go to Settings (or Preferences in Mac OS X) > Code Style > Java, select
    "AndroidStyle", as well as Code Style > XML and select "AndroidStyle".
{'fraction_non_alphanumeric': 0.08520179372197309, 'fraction_numerical': 0.0029895366218236174, 'mean_word_length': 3.2832, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2694425', 'n_tokens_mistral': 732, 'n_tokens_neox': 690, 'n_words': 334}