<commit_before>## About
A [Firebase](https://www.firebase.com/) backed [Ember](http://emberjs.com/) application for storing notes. Intended for a single user only.

## Demo
http://kentor.me/notejs/public/ (open two instances to see them sync updates in real time).

## To create your own
- Fork the project.
- Register a [Firebase](https://www.firebase.com/) account and create an app.
- In `public/js/main.js` replace `App.firebaseRef = new Firebase('https://selfnote.firebaseio.com');` with the location of your firebase app.
- If you don't need authentication, check out the `gh-pages` branch which has commented out some code in `main.js` that disables authentication checking.
- If you do need authentication, you need to set up simple auth on your firebase app. In your firebase app dashboard, go to "Simple Login" and then follow their instructions to set up "Authentication Providers".
- In `main.js` replace the `twitter` in `App.auth.login('twitter', { preferRedirect: true, rememberMe: true });` with the provider of your choice.
- In your firebase "Security Rules" tab, setup your security rules to allow a specific user to read/write. An example:

    ```
    {
        "rules": {
            ".read": "auth.uid == 'twitter:12345678'",
            ".write": "auth.uid == 'twitter:12345678'"
        }
    }
    ```

    If you don't what to put in place of `twitter:12345678`, you can find out but logging in with this app and then checking `Auth.user` in the console to get the `uid`.
- You can host the project on heroku as a simple rack application. Or you can just host the `public/` folder at any static web hosting provider like [neocities](https://neocities.org/).

## License
Licensed under the [MIT license](LICENSE.txt).<commit_msg>fix up README<commit_after>## About
A [Firebase](https://www.firebase.com/) backed [Ember](http://emberjs.com/) application for storing notes. Intended for a single user only.

## Demo
http://kentor.me/notejs/public/ (open two instances side by side to see them sync updates in real time).

## To create your own
- Fork the project.
- Register a [Firebase](https://www.firebase.com/) account and create an app.
- In `public/js/main.js` replace `App.firebaseRef = new Firebase('https://selfnote.firebaseio.com');` with the location of your firebase app.
- If you don't need authentication, check out the `gh-pages` branch which has commented out some code in `main.js` that disables authentication checking.
- If you do need authentication, you need to set up simple auth on your firebase app. In your firebase app dashboard, go to "Simple Login" and then follow their instructions to set up "Authentication Providers".
- In `main.js` replace the `twitter` in `App.auth.login('twitter', { preferRedirect: true, rememberMe: true });` with the provider of your choice.
- In your firebase "Security Rules" tab, set up your security rules to allow a specific user to read/write. An example:

    ```
    {
        "rules": {
            ".read": "auth.uid == 'twitter:12345678'",
            ".write": "auth.uid == 'twitter:12345678'"
        }
    }
    ```

    If you don't know what to put in place of `twitter:12345678`, you can find out by logging in with your app and then checking `App.user` in the console to get the `uid`. This allows that user id to read and write.
- You can host the project on heroku as a simple rack application. Or you can just host the `public/` folder at any static web hosting provider like [neocities](https://neocities.org/).

## License
Licensed under the [MIT license](LICENSE.txt).
{'fraction_non_alphanumeric': 0.1094931391767012, 'fraction_numerical': 0.013441612993559227, 'mean_word_length': 3.638961038961039, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 4, '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': '1231047', 'n_tokens_mistral': 1031, 'n_tokens_neox': 982, 'n_words': 459}