<commit_before><p align="center">
    <img src="HexColors.png" alt="HexColors" title="HexColors">
</p>
=========================
![Badge w/ Version](https://cocoapod-badges.herokuapp.com/v/HexColors/badge.png)
![Badge w/ Version](https://cocoapod-badges.herokuapp.com/p/HexColors/badge.png)
![Badge w/ Version](https://travis-ci.org/mRs-/HexColors.svg)
[![codecov](https://codecov.io/gh/mRs-/HexColors/branch/master/graph/badge.svg)](https://codecov.io/gh/mRs-/HexColors)

HexColors is an extension for UIColor and NSColor to support for creating colors from a hex string like #FF0088 or 8844FF. Completely rewritten in Swift 3!

If you want to use this in Objective-C jump to the 3.X version Tag.

#RELEASE 4.0.0
Completely rewritten in Swift 3 to get the real magic going on!

#Example iOS
``` swift
// with hash
let colorWithHex = UIColor(hex: "#ff8942")

// without hash
let secondColorWithHex = UIColor(hex: "ff8942")

// short handling
let shortColorWithHex = UIColor(hex: "fff")
```

#Example macOS
``` swift
// with hash
let colorWithHex = NSColor(hex: "#ff8942")

// without hash
let secondColorWithHex = NSColor(hex: "ff8942")

// short handling
let shortColorWithHex = NSColor(hex: "fff")
```

#Installation
* `pod install HexColors`
* or just drag the source files in your project

##Requirements
HexColors requires **>= iOS 8.0** and **>=macOS 10.9**.

##Credits
HexColors was created by [<NAME>](https://github.com/mRs-) because of the pain recalculating Hex values to RGB.

##Creator
[<NAME>](https://github.com/mRs-) [@mariusLAN](https://twitter.com/mariusLAN)

##License
HexColors is available under the MIT license. See the LICENSE file for more info.
<commit_msg>Updated Readme file for 5.0.0<commit_after><p align="center">
    <img src="HexColors.png" alt="HexColors" title="HexColors">
</p>
=========================
![Badge w/ Version](https://cocoapod-badges.herokuapp.com/v/HexColors/badge.png)
![Badge w/ Version](https://cocoapod-badges.herokuapp.com/p/HexColors/badge.png)
![Badge w/ Version](https://travis-ci.org/mRs-/HexColors.svg)
[![codecov](https://codecov.io/gh/mRs-/HexColors/branch/master/graph/badge.svg)](https://codecov.io/gh/mRs-/HexColors)

HexColors is an extension for UIColor and NSColor to support for creating colors from a hex string like #FF0088 or 8844FF. Completely rewritten in Swift 3!

If you want to use this in Objective-C jump to the 3.X version Tag.

#RELEASE 5.0.0
Completely new and fresh in Swift 3. 

#Example iOS
``` swift
let colorWithHex = UIColor(hex: "#ff8942")
let colorWithoutHex = UIColor(hex: "ff8942")
let colorWithHexAndAlhpa = UIColor(hex: "#ff8942DF")
let colorWithoutHexAndAlhpa = UIColor(hex: "ff8942DF")
let shortColorWithHex = UIColor(hex: "#fff")
let shortColorWithoutHex = UIColor(hex: "fff")
let shortColorWithHexAndAlpha = UIColor(hex: "#FFFD")
let shortColorWithoutHexAndAlpha = UIColor(hex: "#FFFD")
```

#Example macOS
``` swift
let colorWithHex = NSColor(hex: "#ff8942")
let colorWithoutHex = NSColor(hex: "ff8942")
let colorWithHexAndAlhpa = NSColor(hex: "#ff8942DF")
let colorWithoutHexAndAlhpa = NSColor(hex: "ff8942DF")
let shortColorWithHex = NSColor(hex: "#fff")
let shortColorWithoutHex = NSColor(hex: "fff")
let shortColorWithHexAndAlpha = NSColor(hex: "#FFFD")
let shortColorWithoutHexAndAlpha = NSColor(hex: "#FFFD")
```

#Installation
* `pod install HexColors`
* or just drag the source files in your project

##Requirements
HexColors requires **>= iOS 8.0** and **>=macOS 10.9**.

##Credits
HexColors was created by [<NAME>](https://github.com/mRs-) because of the pain recalculating Hex values to RGB.

##Creator
[<NAME>](https://github.com/mRs-) [@mariusLAN](https://twitter.com/mariusLAN)

##License
HexColors is available under the MIT license. See the LICENSE file for more info.

{'fraction_non_alphanumeric': 0.15486257928118394, 'fraction_numerical': 0.023520084566596194, 'mean_word_length': 5.245874587458746, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 17, 'https://': 16, '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': '1284728', 'n_tokens_mistral': 1370, 'n_tokens_neox': 1317, 'n_words': 361}