<commit_before># Change History

## January 25 2021: v4.1.0

  Major feature release.

  * **New Features**:

    - [CLIENT-1417] Adds Circuit-Breaker. Rejects command when assigned node's error rate exceeds `ClientPolicy.MaxErrorRate` over `ClientPolicy.ErrorRateWindow`.
    - [CLIENT-1410] Adds `Client.SetXDRFilter()`.
    - [CLIENT-1433] Adds `ExpMemorySize()` to expression filters.

  * **Improvements**

    - [CLIENT-1434] Reset peers, partition and rebalance generations on node tend errors.

  * **Changes**
    - Pack byte array header with string header codes when using msgpack to be consistent with server.
    - Adds `ResultCode.LOST_CONFLICT`<commit_msg>Update CHANGELOG for v4.0.0 release<commit_after># Change History

## January 25 2021: v4.1.0

  Major feature release.

  * **New Features**:

    - [CLIENT-1417] Adds Circuit-Breaker. Rejects command when assigned node's error rate exceeds `ClientPolicy.MaxErrorRate` over `ClientPolicy.ErrorRateWindow`.
    - [CLIENT-1410] Adds `Client.SetXDRFilter()`.
    - [CLIENT-1433] Adds `ExpMemorySize()` to expression filters.

  * **Improvements**

    - [CLIENT-1434] Reset peers, partition and rebalance generations on node tend errors.
    - Use named fields in `LimitedReader` initialization.
    - Skip `device_total_bytes` tests in Expressions for memory-only namespaces
    - Change unexported field check in marshaller in anticipation of go 1.16 changes

  * **Changes**
    - Pack byte array header with string header codes when using msgpack to be consistent with server.
    - Adds `ResultCode.LOST_CONFLICT`
    - Change log level from Debug to Error for partition validation failures

  * **Fixes**

    - Fix remainder calculation in `ConnectionHeap`.
{'fraction_non_alphanumeric': 0.0946335833814195, 'fraction_numerical': 0.03231390652048471, 'mean_word_length': 3.750684931506849, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1617448', 'n_tokens_mistral': 544, 'n_tokens_neox': 499, 'n_words': 178}