<commit_before># gae-firebase-channels
Example project that illustrates how to emulate App Engine Channels with Firebase.
The project has three parts: (1) the frontend javascript that replaces the code
that runs in the browser (2) the backend code that replaces the backend Channels
API, and (3) firebase security rules.

## Configuration
Store your Firebase secret in secrets.json:
```
{
  "firebaseSecret": "<Your Firebase secret>"
}
```

Copy security rules in firebase/security-rules.json to "Security & rules" tab in
your Firebase project.

Requires deferred enabled. (Inside of backend/app.yaml)
```
builtins:
- deferred: on
```
Requires firebase-token-generator
```
pip install -t lib firebase-token-generator
```
If you are using a version of Python installed by Homebrew you will also have to
temporarily create a file ~/.pydistutils.cfg with following contents. (For more
details see)[https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Homebrew-and-Python.md#note-on-pip-install---user]
```
[install]
prefix=
```

You will also have to add lib to appengine_cfg.py
```
from google.appengine.ext import vendor

# Add any libraries installed in the "lib" folder.
vendor.add('lib')
```
<commit_msg>Capitalize Firebase<commit_after># gae-firebase-channels
Example project that illustrates how to emulate App Engine Channels with Firebase.
The project has three parts: (1) the frontend javascript that replaces the code
that runs in the browser (2) the backend code that replaces the backend Channels
API, and (3) Firebase security rules.

## Configuration
Store your Firebase secret in secrets.json:
```
{
  "firebaseSecret": "<Your Firebase secret>"
}
```

Copy security rules in firebase/security-rules.json to "Security & rules" tab in
your Firebase project.

Requires deferred enabled. (Inside of backend/app.yaml)
```
builtins:
- deferred: on
```
Requires firebase-token-generator
```
pip install -t lib firebase-token-generator
```
If you are using a version of Python installed by Homebrew you will also have to
temporarily create a file ~/.pydistutils.cfg with following contents. (For more
details see)[https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Homebrew-and-Python.md#note-on-pip-install---user]
```
[install]
prefix=
```

You will also have to add lib to appengine_cfg.py
```
from google.appengine.ext import vendor

# Add any libraries installed in the "lib" folder.
vendor.add('lib')
```

{'fraction_non_alphanumeric': 0.10245901639344263, 'fraction_numerical': 0.002459016393442623, 'mean_word_length': 4.811904761904762, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '2384555', 'n_tokens_mistral': 739, 'n_tokens_neox': 696, 'n_words': 279}