<commit_before># Install external

### Install GIT
https://git-scm.com/download/win
### Install SourceTree
https://www.sourcetreeapp.com/
### Install Python 2.7
http://docs.python-guide.org/en/latest/starting/install/win/
### Install Heroku CLI
https://devcenter.heroku.com/articles/heroku-command-line
### Install Visual Studio Code
https://code.visualstudio.com/

## Prepare  backend
    
    $ git clone https://github.com/heroku/python-getting-started.git  myproject
    $ cd myproject
    $ pip install virtualenv
    $ virtualenv venv
    $ venv\Scripts\activate
    $ pip install -r requirements.txt
    $ python manage.py migrate
    $ python manage.py collectstatic
    $ pip install djangorestframework
    $ pip install markdown
    $ pip install django-filter
    $ pip freeze > requirements.txt

### Update gettingstared/urls.py to

    from django.conf.urls import include, url

    from django.contrib.auth.models import User
    from rest_framework import routers, serializers, viewsets

    from django.contrib import admin
    admin.autodiscover()

    import hello.views

    # Examples:
    # url(r'^$', 'gettingstarted.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    # Serializers define the API representation.
    class UserSerializer(serializers.HyperlinkedModelSerializer):
        class Meta:
            model = User
            fields = ('url', 'username', 'email', 'is_staff')

    # ViewSets define the view behavior.
    class UserViewSet(viewsets.ModelViewSet):<commit_msg>fix grammar<commit_after># Install external

### Install GIT
https://git-scm.com/download/win
### Install SourceTree
https://www.sourcetreeapp.com/
### Install Python 2.7
http://docs.python-guide.org/en/latest/starting/install/win/
### Install Heroku CLI
https://devcenter.heroku.com/articles/heroku-command-line
### Install Visual Studio Code
https://code.visualstudio.com/

## Prepare  backend
    
    $ git clone https://github.com/heroku/python-getting-started.git  myproject
    $ cd myproject
    $ pip install virtualenv
    $ virtualenv venv
    $ venv\Scripts\activate
    $ pip install -r requirements.txt
    $ python manage.py migrate
    $ python manage.py collectstatic
    $ pip install djangorestframework
    $ pip install markdown
    $ pip install django-filter
    $ pip freeze > requirements.txt

### Update gettingstarted/urls.py to

    from django.conf.urls import include, url

    from django.contrib.auth.models import User
    from rest_framework import routers, serializers, viewsets

    from django.contrib import admin
    admin.autodiscover()

    import hello.views

    # Examples:
    # url(r'^$', 'gettingstarted.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    # Serializers define the API representation.
    class UserSerializer(serializers.HyperlinkedModelSerializer):
        class Meta:
            model = User
            fields = ('url', 'username', 'email', 'is_staff')

    # ViewSets define the view behavior.
    class UserViewSet(viewsets.ModelViewSet):
{'fraction_non_alphanumeric': 0.11158238172920065, 'fraction_numerical': 0.0013050570962479609, 'mean_word_length': 3.282122905027933, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 10, 'lorem ipsum': 0, 'www.': 2, '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': '3123515', 'n_tokens_mistral': 919, 'n_tokens_neox': 878, 'n_words': 224}