<commit_before>TSNAtomicFlag
=============

TSNAtomicFlag is a utility class that provides a lockless atomic flag for use in your OS X and iOS projects. The principle advantage of TSNAtomicFlag over other techniques is that it is super simple to use.

Allocating a TSNAtomicFlag
--------------------------
```
TSNAtomicFlag * atomicFlag = [[TSNAtomicFlag alloc] init];</code>
```

Setting TSNAtomicFlag
---------------------
```
if ([atomicFlag trySet]) 
{
    NSLog(@"The flag was set!");
}
```
If the call to trySet successfully set the atomic flag, YES is returned; otherwise, NO is returned to indicate that the atomic flag was already set.

Clearing TSNAtomicFlag
----------------------
```
if ([atomicFlag tryClear])<commit_msg>Update README.<commit_after>TSNAtomicFlag
=============

TSNAtomicFlag is a utility class that provides a lockless atomic flag for use in your OS X and iOS projects. The principle advantage of TSNAtomicFlag over other techniques is that it is super simple to use.

Allocating TSNAtomicFlag
------------------------
```
TSNAtomicFlag * atomicFlag = [[TSNAtomicFlag alloc] init];</code>
```

Setting TSNAtomicFlag
---------------------
```
if ([atomicFlag trySet]) 
{
    NSLog(@"The flag was set!");
}
```
If the call to trySet successfully set the atomic flag, YES is returned; otherwise, NO is returned to indicate that the atomic flag was already set.

Clearing TSNAtomicFlag
----------------------
```
if ([atomicFlag tryClear])
{'fraction_non_alphanumeric': 0.18088737201365188, 'fraction_numerical': 0.0, 'mean_word_length': 3.094972067039106, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1103208', 'n_tokens_mistral': 410, 'n_tokens_neox': 387, 'n_words': 169}