<commit_before># Goodnight

A super small Javascript plugin for applying special styles at night.

## Usage

First, download the `goodnight.min.js` file. Reference it in your HTML like so...

```
<script src= "scripts/goodnight.min.js"></script>
```

`Goodnight.css()` adds a custom styles for you when it's nighttime. Use it like so:

```
Goodnight.css();
```

This searches for a `dark.css` file in the same directory as the Goodnight script. You can specify your own file path like so:

```
Goodnight.css('path/to/style.css');
```

You can also specify the hours of which the dark styles are used. By default, your Dark CSS file is activated from 6PM to 6AM, but you can specify the exact hours using the `Goodnight.from` and `Goodnight.to` settings.

```
Goodnight.from = 20 // (8PM)
Goodnight.to = 5 // (5AM)
Goodnight.css('path/to/style.css') // this now activates dark styles before 5AM and after 8PM
```

## Tips

If you leave this script at the bottom of the `<body>`, there will be a flash of daytime styles during nighttime, due to the browser processing the document until the script. It's best if you include the script in the `<head>`.

If you use [Bower](http://bower.io/), it is available as a package there too. Run the following...

```
bower install goodnight
```

... and Goodnight should be installed as a bower package.

## License

Licensed under MIT. Created by [<NAME>](https://github.com/JaredCubilla).
<commit_msg>Added contributing area<commit_after># Goodnight

A super small Javascript plugin for applying special CSS styles at night.

## Usage

First, download the `goodnight.min.js` file. Reference it in your HTML like so...

```
<script src= "scripts/goodnight.min.js"></script>
```

`Goodnight.css()` adds a custom styles for you when it's nighttime. Use it like so:

```
Goodnight.css();
```

This searches for a `dark.css` file in the same directory as the Goodnight script. You can specify your own file path like so:

```
Goodnight.css('path/to/style.css');
```

You can also specify the hours of which the dark styles are used. By default, your Dark CSS file is activated from 6PM to 6AM, but you can specify the exact hours using the `Goodnight.from` and `Goodnight.to` settings.

```
Goodnight.from = 20 // (8PM)
Goodnight.to = 5 // (5AM)
Goodnight.css('path/to/style.css') // this now activates dark styles before 5AM and after 8PM
```

## Tips

If you leave this script at the bottom of the `<body>`, there will be a flash of daytime styles during nighttime, due to the browser processing the document until the script. It's best if you include the script in the `<head>`.

If you use [Bower](http://bower.io/), it is available as a package there too. Run the following...

```
bower install goodnight
```

... and Goodnight should be installed as a bower package.

## Contributing

If something's wrong or needs changing, feel free to leave issues at Github's issue tracker. If you're feeling generous, please send pull requests for fixing bugs or adding cool new stuff.

## License

Licensed under MIT. Created by [<NAME>](https://github.com/JaredCubilla).

{'fraction_non_alphanumeric': 0.10796003867225266, 'fraction_numerical': 0.005800837898807605, 'mean_word_length': 3.9823434991974316, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5574306', 'n_tokens_mistral': 948, 'n_tokens_neox': 888, 'n_words': 433}