<commit_before># Installation #

Minimum Requirements:
- Android API level: 15+

To start using the SDK, include this in your app *build.gradle*

```java
dependencies {
    compile 'it.near.sdk.core:nearitsdk:2.0.7'
}
```

In the *onCreate* method of your Application class, initialize a *NearItManager* object, passing the API key as a String


```java
@Override
public void onCreate() {
  super.onCreate();
  nearItManager = new NearItManager(this, getResources().getString(R.string.nearit_api_key));
}
```

You can find the API key on [NearIT web interface](https://go.nearit.com/), under the "SDK Integration" section.

The constructor for `NearItManager` will try to sync the recipes with our servers. If you need to sync the recipes configuration more often than you call the constructor, call this method:

```java
nearItManager.refreshConfigs();
```

If you need feedback on whether the refresh was successfull or not, you can use this other version of the method:

```java
nearItManager.refreshConfigs(recipeRefreshListener);
```
<commit_msg>Update installation.md<commit_after># Installation #

Minimum Requirements:
- Android API level: 15+

To start using the SDK, include this in your app *build.gradle*

```java
dependencies {
    compile 'it.near.sdk.core:nearitsdk:2.0.8'
}
```

In the *onCreate* method of your Application class, initialize a *NearItManager* object, passing the API key as a String


```java
@Override
public void onCreate() {
  super.onCreate();
  nearItManager = new NearItManager(this, getResources().getString(R.string.nearit_api_key));
}
```

You can find the API key on [NearIT web interface](https://go.nearit.com/), under the "SDK Integration" section.

The constructor for `NearItManager` will try to sync the recipes with our servers. If you need to sync the recipes configuration more often than you call the constructor, call this method:

```java
nearItManager.refreshConfigs();
```

If you need feedback on whether the refresh was successfull or not, you can use this other version of the method:

```java
nearItManager.refreshConfigs(recipeRefreshListener);
```

{'fraction_non_alphanumeric': 0.09900521080056846, 'fraction_numerical': 0.0047370914258645196, 'mean_word_length': 5.051575931232092, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2930237', 'n_tokens_mistral': 650, 'n_tokens_neox': 593, 'n_words': 247}