<commit_before># ColorDebugView
ColorDebugView is a simple NS/UIView which can be used to quickly get a view on the screen when roughing out layouts/animations. It is written in Swift.

**Features:**
- Works for both OS X and iOS
- Translucent by default to help debug issues with overlapping views
- Crosshairs to help with alignment
- The ‘Up’ direction is marked to debug issues with rotation/animation
- Can be rectangular or circular
- IBDesignable/Inspectable for direct use within Interface Builder
- Choose a custom color (or just use a random one)

## Installation
Drag the “ColorDebugView.swift” file into your Xcode project

## Usage via Interface Builder
Drag a custom view into your storyboard and change it’s class to “ColorDebugView”. Optionally set the color/shape in IB’s attributes inspector.  Setting the color to “default” will result in a random color.

## Programmatic Usage
Use one of the following initialization methods to create a view:

**ColorDebugView(frame: _CGRect_)**

Creates a ColorDebugView with a random color and the given frame

**ColorDebugView(frame: _CGRect_, color: _NS/UIColor_)**

Creates a ColorDebugView with the given frame/color

**ColorDebugView(point: _CGPoint_, side: _CGFloat_, color: _NS/UIColor_, isDot: _Bool_)**

Creates a ColorDebugView at the given point. The side, color, and isDot parameters are all optional.  By default it will create a dot at the given point with sides of size 64.0 and a random color

Then add the ColorDebugView to a view which you want it to display in

## License

Copyright (c) 2015 <NAME> <<EMAIL>>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.<commit_msg>Read me formatting<commit_after># ColorDebugView
ColorDebugView is a simple NS/UIView which can be used to quickly get a view on the screen when roughing out layouts/animations. It is written in Swift.

**Features:**
- Works for both OS X and iOS
- Translucent by default to help debug issues with overlapping views
- Crosshairs to help with alignment
- The ‘Up’ direction is marked to debug issues with rotation/animation
- Can be rectangular or circular
- IBDesignable/Inspectable for direct use within Interface Builder
- Choose a custom color (or just use a random one)

## Installation
Drag the “ColorDebugView.swift” file into your Xcode project

## Usage via Interface Builder
Drag a custom view into your storyboard and change it’s class to “ColorDebugView”. Optionally set the color/shape in IB’s attributes inspector.  Setting the color to “default” will result in a random color.

## Programmatic Usage
Use one of the following initialization methods to create a view:

**ColorDebugView(frame: _CGRect_)**

Creates a ColorDebugView with a random color and the given frame


**ColorDebugView(frame: _CGRect_, color: _NS/UIColor_)**

Creates a ColorDebugView with the given frame/color


**ColorDebugView(point: _CGPoint_, side: _CGFloat_, color: _NS/UIColor_, isDot: _Bool_)**

Creates a ColorDebugView at the given point. The side, color, and isDot parameters are all optional.  By default it will create a dot at the given point with sides of size 64.0 and a random color


Then add the ColorDebugView to a view which you want it to display in

## License

Copyright (c) 2015 <NAME> <<EMAIL>>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
{'fraction_non_alphanumeric': 0.04801829268292683, 'fraction_numerical': 0.0026676829268292685, 'mean_word_length': 4.832222222222223, 'pattern_counts': {'":': 0, '<': 9, '<?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': '1102538', 'n_tokens_mistral': 1330, 'n_tokens_neox': 1259, 'n_words': 783}