<commit_before># gce2retrofit

Generates [retrofit](http://square.github.io/retrofit/) interfaces and related models from a
[Google Cloud Endpoint (GCE)](https://cloud.google.com/endpoints/) discovery file.

## Gradle plugin

### Publish the gradle plugin to a local repo
    cd gce2retrofit
    ../gradlew publish
    cd ..

### Run the sample Java project
    ./gradlew sample-java:run

### Install the sample Android app
    ./gradlew sample-android:installDebug

Right now Android Studio does not recognize the generated source files. To work around that, add
this to the `.iml` file of your Android project:

    <sourceFolder url="file://$MODULE_DIR$/build/generated/source/gce2retrofit" isTestSource="false" generated="true" />

You need to do that every time you sync your project with gradle files.

## Command line

Alternatively, you can compile a jar file and generate the retrofit classes manually.

### Compile the gce2retrofit jar file
    cd gce2retrofit<commit_msg>Remove instructions for Android Studio workaround<commit_after># gce2retrofit

Generates [Retrofit](http://square.github.io/retrofit/) interfaces and related models from a
[Google Cloud Endpoint (GCE)](https://cloud.google.com/endpoints/) discovery file.

## Gradle plugin

### Publish the gradle plugin to a local repo
    cd gce2retrofit
    ../gradlew publish
    cd ..

### Run the sample Java project
    ./gradlew sample-java:run

### Install the sample Android app
    ./gradlew sample-android:installDebug

## Command line

Alternatively, you can compile a jar file and generate the retrofit classes manually.

### Compile the gce2retrofit jar file
    cd gce2retrofit
{'fraction_non_alphanumeric': 0.08926417370325694, 'fraction_numerical': 0.005428226779252111, 'mean_word_length': 4.073394495412844, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, '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': '5841808', 'n_tokens_mistral': 486, 'n_tokens_neox': 470, 'n_words': 181}