<commit_before># [PRE-RELEASE]
# LightBlue Bean Android SDK
---

This software is still under heavy development and design, use at your own risk!

# Learn!
---

### List nearby Bean(s)

This snippet makes use of the `BeanManager` and the Listener pattern to provide callbacks
when Beans are discovered and when the discovery process is complete.

```java
final List<Bean> beans = new ArrayList<>();

BeanDiscoveryListener listener = new BeanDiscoveryListener() {
    @Override
    public void onBeanDiscovered(Bean bean, int rssi) {
        beans.add(bean);
    }

    @Override
    public void onDiscoveryComplete() {
    }
};

BeanManager.getInstance().startDiscovery(listener);
java.lang.Thread.sleep(5000);
for (Bean bean : beans) {
    System.out.println(bean.getName());
}

```

### Read device information<commit_msg>Issue-#3: Update readme to get the Bean name and mac address<commit_after># [PRE-RELEASE]
# LightBlue Bean Android SDK
---

This software is still under heavy development and design, use at your own risk!

# Learn!
---

### List nearby Bean(s)

This snippet makes use of the `BeanManager` and the Listener pattern to provide callbacks
when Beans are discovered and when the discovery process is complete.

```java
final List<Bean> beans = new ArrayList<>();

BeanDiscoveryListener listener = new BeanDiscoveryListener() {
    @Override
    public void onBeanDiscovered(Bean bean, int rssi) {
        beans.add(bean);
    }

    @Override
    public void onDiscoveryComplete() {
    }
};

BeanManager.getInstance().startDiscovery(listener);
java.lang.Thread.sleep(5000);
for (Bean bean : beans) {
    System.out.println(bean.getDevice().getName());   // "Bean"              (example)
    System.out.println(bean.getDevice().mAddress);    // "B4:99:4C:1E:BC:75" (example)
}

```

### Read device information
{'fraction_non_alphanumeric': 0.11591033351558229, 'fraction_numerical': 0.008747949699289229, 'mean_word_length': 3.9193548387096775, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '7498066', 'n_tokens_mistral': 553, 'n_tokens_neox': 524, 'n_words': 176}