<commit_before>student-portal
==============

The Student Portal is a [Django-based](https://www.djangoproject.com) platform for university student activity.
Through the platform, students can sumbit activities for approval,
join clubs, enter their 'Activity Points' (Niqati) and contribute and
borrow books.

# Licensing

Copyright (C) 2014 <NAME> and <NAME>.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Affero General Public License for more details.


Additionally, the `studentvoice` app includes parts from the Askbot
project.

Copyright (C) 2009 <NAME> and <NAME>ai.
Copyright (C) 2009-2011 <NAME> and individual contributors of Askbot project

Licensed under the General Public License version 3 of the License, or
(at your option) any later version.

# Installation 

Current dependencies:
* django-taggit
* django-templated-email
* django-userena
* pdfcrowd
* post_office _(with the cronjob)_
* requests
* unicodecsv

In the project `urls.py`, add the following:
```
# [...]
from django.views.generic import TemplateView
from accounts.admin import deanship_admin
from arshidni.admin import arshidni_admin
from accounts.forms import StudentSignupForm, NonStudentSignupForm, ModifiedAuthenticationForm
from core.views import visit_announcement
# [...]
    url(r'^$', 'core.views.portal_home', name='home'),
    url(r'^visit/(?P<pk>\d+)/$', visit_announcement, name='visit_announcement'),
    url(r'^about/$', TemplateView.as_view(template_name='about.html'), name='about'),
    url(r'^activities/', include('activities.urls', namespace="activities")),
    url(r'^clubs/', include('clubs.urls', namespace="clubs")),
    url(r'^books/', include('books.urls', namespace="books")),
    url(r'^niqati/', include('niqati.urls', namespace="niqati")),
    url(r'^voice/', include('studentvoice.urls', namespace="studentvoice")),
    url(r'^arshidni/admin/', include(arshidni_admin.urls, namespace="arshidni_admin")),
    url(r'^arshidni/', include('arshidni.urls', namespace="arshidni")),
    url(r'^media/', include('media.urls', namespace="media")),
    url(r'^accounts/signup/$', 'userena.views.signup', {'signup_form': StudentSignupForm, 'template_name': 'userena/student_signup_form.html'}),
    url(r'^accounts/signup/nonstudents/$', 'userena.views.signup', {'signup_form': NonStudentSignupForm, 'template_name': 'userena/nonstudent_signup_form.html'}, name="nonstudent_signup"),
    url(r'^accounts/signin/$', 'userena.views.signin', {'auth_form': ModifiedAuthenticationForm}),
    url(r'^accounts/', include('userena.urls')),<commit_msg>Update the README file.<commit_after>student-portal
==============

The Student Portal is a [Django-based](https://www.djangoproject.com) platform for university student activity.
Through the platform, students can sumbit activities for approval,
join clubs, enter their 'Activity Points' (Niqati) and contribute and
borrow books.

# Licensing

Copyright (C) 2014 <NAME> and <NAME>.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Affero General Public License for more details.


Additionally, the `studentvoice` app includes parts from the Askbot
project.

Copyright (C) 2009 <NAME> and <NAME>.
Copyright (C) 2009-2011 <NAME> and individual contributors of Askbot project

Licensed under the General Public License version 3 of the License, or
(at your option) any later version.

# Installation 

Current dependencies:
* django-taggit
* django-templated-email
* django-userena
* pdfcrowd
* post_office _(with the cronjob)_
* requests
* unicodecsv

In the project `urls.py`, add the following:
```
# [...]
from django.views.generic import TemplateView
from accounts.admin import deanship_admin
from arshidni.admin import arshidni_admin
from accounts.forms import StudentSignupForm, NonStudentSignupForm, ModifiedAuthenticationForm
from core.views import visit_announcement
# [...]
    url(r'^$', 'core.views.portal_home', name='home'),
    url(r'^visit/(?P<pk>\d+)/$', visit_announcement, name='visit_announcement'),
    url(r'^about/$', TemplateView.as_view(template_name='about.html'), name='about'),
    url(r'^aboutsc/$', TemplateView.as_view(template_name='about_sc.html'), name='about_sc'),
    url(r'^activities/', include('activities.urls', namespace="activities")),
    url(r'^clubs/', include('clubs.urls', namespace="clubs")),
    url(r'^books/', include('books.urls', namespace="books")),
    url(r'^niqati/', include('niqati.urls', namespace="niqati")),
    url(r'^voice/', include('studentvoice.urls', namespace="studentvoice")),
    url(r'^arshidni/admin/', include(arshidni_admin.urls, namespace="arshidni_admin")),
    url(r'^arshidni/', include('arshidni.urls', namespace="arshidni")),
    url(r'^media/', include('media.urls', namespace="media")),
    url(r'^accounts/signup/$', 'userena.views.signup', {'signup_form': StudentSignupForm, 'template_name': 'userena/student_signup_form.html'}),
    url(r'^accounts/signup/nonstudents/$', 'userena.views.signup', {'signup_form': NonStudentSignupForm, 'template_name': 'userena/nonstudent_signup_form.html'}, name="nonstudent_signup"),
    url(r'^accounts/signin/$', 'userena.views.signin', {'auth_form': ModifiedAuthenticationForm}),
    url(r'^accounts/', include('userena.urls')),
{'fraction_non_alphanumeric': 0.1388239224858002, 'fraction_numerical': 0.006014032743067156, 'mean_word_length': 5.921387283236994, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '4566890', 'n_tokens_mistral': 1879, 'n_tokens_neox': 1793, 'n_words': 523}