<commit_before># Bing Daily Photo

BingPhoto is a simple PHP class which fetches Bing's image of the day with meta data.

## Usage

```php
$bing  = new BingPhoto();
$image = $bing->getImage();
```

The constructor has some optional parameters:

| Parameter   |Description        |Default              |Valid values|
|-------------|-------------------|---------------------|------------|
| $date|Date of photo|`BingPhoto::DATE_TODAY` |`BingPhoto::DATE_YESTERDAY`, `BingPhoto::DATE_TODAY`, `BingPhoto::DATE_TOMORROW`, `any integer >= -1`|
| $n|Number of photos to fetch, going from date backwards|1|1 - 8|
| $locale     |Locale code|en-US|Whatever language Bing supports|
| $resolution |Image resolution|`BingPhoto::RESOLUTION_HIGH`|`BingPhoto::RESOLUTION_LOW`, `BingPhoto::RESOLUTION_HIGH`|

```php
// Fetches three images of the day in low resolution, starting yesterday
$bing  = new BingPhoto(self::YESTERDAY, 3, 'en-US', self::RESOLUTION_LOW);
// Use the getImages() methode then
$images = $bing->getImages();
```
<commit_msg>Fixed README<commit_after># Bing Daily Photo

BingPhoto is a simple PHP class which fetches Bing's image of the day with meta data.

## Usage

```php
$bing  = new BingPhoto();
$image = $bing->getImage();
```

The constructor has some optional parameters:

| Parameter   |Description        |Default              |Valid values|
|-------------|-------------------|---------------------|------------|
| $date|Date of photo|`BingPhoto::DATE_TODAY` |`BingPhoto::DATE_YESTERDAY`, `BingPhoto::DATE_TODAY`, `BingPhoto::DATE_TOMORROW`, `any integer >= -1`|
| $n|Number of photos to fetch, going from date backwards|1|1 - 8|
| $locale     |Locale code|en-US|Whatever language Bing supports|
| $resolution |Image resolution|`BingPhoto::RESOLUTION_HIGH`|`BingPhoto::RESOLUTION_LOW`, `BingPhoto::RESOLUTION_HIGH`|

```php
// Fetches three images of the day in low resolution, starting yesterday
$bing  = new BingPhoto(BingPhoto::YESTERDAY, 3, 'en-US', BingPhoto::RESOLUTION_LOW);
// Use the getImages() methode then
$images = $bing->getImages();
```

{'fraction_non_alphanumeric': 0.19661016949152543, 'fraction_numerical': 0.004842615012106538, 'mean_word_length': 3.6954545454545453, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4832984', 'n_tokens_mistral': 681, 'n_tokens_neox': 635, 'n_words': 185}