<commit_before># Deckard

[![Build Status](https://secure.travis-ci.org/robolectric/deckard-gradle.png?branch=master)](http://travis-ci.org/robolectric/deckard-gradle)

Deckard is the simplest possible Android project that uses Robolectric for testing and Gradle to build. It has one Activity (with an empty layout), and a Robolectric test that creates that Activity. 

Deckard also imports seamlessly into IntelliJ, due to IntelliJ's support for gradle. Just import the build.gradle.

## Setup

*Note: These instructions assume you have a Java 1.6 [JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html) installed.*

To start a new Android project:

1. Install the [Android SDK](http://developer.android.com/sdk/index.html). On Mac OS X with [Homebrew](http://brew.sh/) just run:
    ```bash
    brew install android-sdk
    ```

2. Set your `ANDROID_HOME` environment variable to `/usr/local/opt/android-sdk`.

3. Run the Android SDK GUI and install API 18 and any other APIs you might need. You can start the GUI like so:
    ```bash
    android
    ```

4. Download Deckard from GitHub:
    ```bash
    wget https://github.com/robolectric/deckard/archive/master.zip
    unzip master.zip
    mv deckard-master my-new-project
    ```

5. In the project directory you should be able to run the tests:
    ```bash
    cd my-new-project
    ./gradlew clean test
    ```

6. Change the names of things from 'Deckard' to whatever is appropriate for your project. Package name, classes, and the AndroidManifest are good places to start.

7. Build an app. Win.
<commit_msg>Update for new name<commit_after># Deckard (for Gradle)
[![Build Status](https://secure.travis-ci.org/robolectric/deckard-gradle.png?branch=master)](http://travis-ci.org/robolectric/deckard-gradle)

Deckard is the simplest possible Android project that uses Robolectric for testing and Gradle to build. It has one Activity (with an empty layout), and a Robolectric test that creates that Activity. 

Deckard also imports seamlessly into IntelliJ, due to IntelliJ's support for gradle. Just import the build.gradle.

## Setup

*Note: These instructions assume you have a Java 1.6 [JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html) installed.*

To start a new Android project:

1. Install the [Android SDK](http://developer.android.com/sdk/index.html). On Mac OS X with [Homebrew](http://brew.sh/) just run:
    ```bash
    brew install android-sdk
    ```

2. Set your `ANDROID_HOME` environment variable to `/usr/local/opt/android-sdk`.

3. Run the Android SDK GUI and install API 18 and any other APIs you might need. You can start the GUI like so:
    ```bash
    android
    ```

4. Download Deckard from GitHub:
    ```bash
    wget https://github.com/robolectric/deckard-gradle/archive/master.zip
    unzip master.zip
    mv deckard-master my-new-project
    ```

5. In the project directory you should be able to run the tests:
    ```bash
    cd my-new-project
    ./gradlew clean test
    ```

6. Change the names of things from 'Deckard' to whatever is appropriate for your project. Package name, classes, and the AndroidManifest are good places to start.

7. Build an app. Win.

{'fraction_non_alphanumeric': 0.1010322177040976, 'fraction_numerical': 0.00688145136065061, 'mean_word_length': 3.621387283236994, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1131966', 'n_tokens_mistral': 1005, 'n_tokens_neox': 949, 'n_words': 373}