├── dashboard ├── __init__.py ├── migrations │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-39.pyc │ │ ├── 0001_initial.cpython-39.pyc │ │ ├── 0002_auto_20210720_1231.cpython-39.pyc │ │ ├── 0003_auto_20210720_1231.cpython-39.pyc │ │ ├── 0004_auto_20210720_1236.cpython-39.pyc │ │ └── 0005_auto_20210720_1249.cpython-39.pyc │ ├── 0005_auto_20210720_1249.py │ ├── 0003_auto_20210720_1231.py │ ├── 0002_auto_20210720_1231.py │ ├── 0004_auto_20210720_1236.py │ └── 0001_initial.py ├── tests.py ├── apps.py ├── __pycache__ │ ├── apps.cpython-39.pyc │ ├── urls.cpython-39.pyc │ ├── admin.cpython-39.pyc │ ├── forms.cpython-39.pyc │ ├── models.cpython-39.pyc │ ├── views.cpython-39.pyc │ └── __init__.cpython-39.pyc ├── forms.py ├── urls.py ├── admin.py ├── views.py └── models.py ├── sportpredictor ├── __init__.py ├── __pycache__ │ ├── urls.cpython-39.pyc │ ├── wsgi.cpython-39.pyc │ ├── __init__.cpython-39.pyc │ └── settings.cpython-39.pyc ├── asgi.py ├── wsgi.py ├── urls.py └── settings.py ├── db.sqlite3 ├── ml_model └── ml_sport_model.joblib ├── templates ├── partials │ ├── nav.html │ └── base.html └── dashboard │ ├── index.html │ └── predictions.html └── manage.py /dashboard/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /sportpredictor/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dashboard/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dashboard/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /db.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KenBroTech/Simple-Django-Machine-Learning-Project/HEAD/db.sqlite3 -------------------------------------------------------------------------------- /dashboard/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class DashboardConfig(AppConfig): 5 | name = 'dashboard' 6 | -------------------------------------------------------------------------------- /ml_model/ml_sport_model.joblib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KenBroTech/Simple-Django-Machine-Learning-Project/HEAD/ml_model/ml_sport_model.joblib -------------------------------------------------------------------------------- /dashboard/__pycache__/apps.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KenBroTech/Simple-Django-Machine-Learning-Project/HEAD/dashboard/__pycache__/apps.cpython-39.pyc -------------------------------------------------------------------------------- /dashboard/__pycache__/urls.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KenBroTech/Simple-Django-Machine-Learning-Project/HEAD/dashboard/__pycache__/urls.cpython-39.pyc -------------------------------------------------------------------------------- /dashboard/__pycache__/admin.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KenBroTech/Simple-Django-Machine-Learning-Project/HEAD/dashboard/__pycache__/admin.cpython-39.pyc -------------------------------------------------------------------------------- /dashboard/__pycache__/forms.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KenBroTech/Simple-Django-Machine-Learning-Project/HEAD/dashboard/__pycache__/forms.cpython-39.pyc -------------------------------------------------------------------------------- /dashboard/__pycache__/models.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KenBroTech/Simple-Django-Machine-Learning-Project/HEAD/dashboard/__pycache__/models.cpython-39.pyc -------------------------------------------------------------------------------- /dashboard/__pycache__/views.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KenBroTech/Simple-Django-Machine-Learning-Project/HEAD/dashboard/__pycache__/views.cpython-39.pyc -------------------------------------------------------------------------------- /dashboard/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KenBroTech/Simple-Django-Machine-Learning-Project/HEAD/dashboard/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /sportpredictor/__pycache__/urls.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KenBroTech/Simple-Django-Machine-Learning-Project/HEAD/sportpredictor/__pycache__/urls.cpython-39.pyc -------------------------------------------------------------------------------- /sportpredictor/__pycache__/wsgi.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KenBroTech/Simple-Django-Machine-Learning-Project/HEAD/sportpredictor/__pycache__/wsgi.cpython-39.pyc -------------------------------------------------------------------------------- /sportpredictor/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KenBroTech/Simple-Django-Machine-Learning-Project/HEAD/sportpredictor/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /sportpredictor/__pycache__/settings.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KenBroTech/Simple-Django-Machine-Learning-Project/HEAD/sportpredictor/__pycache__/settings.cpython-39.pyc -------------------------------------------------------------------------------- /dashboard/migrations/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KenBroTech/Simple-Django-Machine-Learning-Project/HEAD/dashboard/migrations/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /dashboard/migrations/__pycache__/0001_initial.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KenBroTech/Simple-Django-Machine-Learning-Project/HEAD/dashboard/migrations/__pycache__/0001_initial.cpython-39.pyc -------------------------------------------------------------------------------- /dashboard/forms.py: -------------------------------------------------------------------------------- 1 | from django import forms 2 | from .models import Data 3 | 4 | 5 | class DataForm(forms.ModelForm): 6 | class Meta: 7 | model = Data 8 | fields = ['name', 'age', 'height', 'sex'] 9 | -------------------------------------------------------------------------------- /dashboard/migrations/__pycache__/0002_auto_20210720_1231.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KenBroTech/Simple-Django-Machine-Learning-Project/HEAD/dashboard/migrations/__pycache__/0002_auto_20210720_1231.cpython-39.pyc -------------------------------------------------------------------------------- /dashboard/migrations/__pycache__/0003_auto_20210720_1231.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KenBroTech/Simple-Django-Machine-Learning-Project/HEAD/dashboard/migrations/__pycache__/0003_auto_20210720_1231.cpython-39.pyc -------------------------------------------------------------------------------- /dashboard/migrations/__pycache__/0004_auto_20210720_1236.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KenBroTech/Simple-Django-Machine-Learning-Project/HEAD/dashboard/migrations/__pycache__/0004_auto_20210720_1236.cpython-39.pyc -------------------------------------------------------------------------------- /dashboard/migrations/__pycache__/0005_auto_20210720_1249.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KenBroTech/Simple-Django-Machine-Learning-Project/HEAD/dashboard/migrations/__pycache__/0005_auto_20210720_1249.cpython-39.pyc -------------------------------------------------------------------------------- /dashboard/urls.py: -------------------------------------------------------------------------------- 1 | from django.urls import path 2 | from .import views 3 | 4 | urlpatterns = [ 5 | path('', views.index, name='dashboard-index'), 6 | path('predictions/', views.predictions, name='dashboard-predictions'), 7 | ] 8 | -------------------------------------------------------------------------------- /dashboard/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from .models import Data 3 | 4 | # Register your models here. 5 | 6 | 7 | class DataAdmin(admin.ModelAdmin): 8 | list_display = ('name', 'age', 'height', 'sex', 'predictions') 9 | 10 | 11 | admin.site.register(Data, DataAdmin) 12 | -------------------------------------------------------------------------------- /templates/partials/nav.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /sportpredictor/asgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | ASGI config for sportpredictor project. 3 | 4 | It exposes the ASGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.asgi import get_asgi_application 13 | 14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sportpredictor.settings') 15 | 16 | application = get_asgi_application() 17 | -------------------------------------------------------------------------------- /sportpredictor/wsgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | WSGI config for sportpredictor project. 3 | 4 | It exposes the WSGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.wsgi import get_wsgi_application 13 | 14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sportpredictor.settings') 15 | 16 | application = get_wsgi_application() 17 | -------------------------------------------------------------------------------- /dashboard/migrations/0005_auto_20210720_1249.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 3.1.7 on 2021-07-20 11:49 2 | 3 | from django.db import migrations 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('dashboard', '0004_auto_20210720_1236'), 10 | ] 11 | 12 | operations = [ 13 | migrations.RenameField( 14 | model_name='data', 15 | old_name='predicitions', 16 | new_name='predictions', 17 | ), 18 | ] 19 | -------------------------------------------------------------------------------- /dashboard/migrations/0003_auto_20210720_1231.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 3.1.7 on 2021-07-20 11:31 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('dashboard', '0002_auto_20210720_1231'), 10 | ] 11 | 12 | operations = [ 13 | migrations.AlterField( 14 | model_name='data', 15 | name='sex', 16 | field=models.PositiveIntegerField(choices=[(0, 'Female'), (1, 'Male')], null=True), 17 | ), 18 | ] 19 | -------------------------------------------------------------------------------- /dashboard/migrations/0002_auto_20210720_1231.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 3.1.7 on 2021-07-20 11:31 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('dashboard', '0001_initial'), 10 | ] 11 | 12 | operations = [ 13 | migrations.AlterField( 14 | model_name='data', 15 | name='sex', 16 | field=models.PositiveIntegerField(choices=[(0, 'Female'), (1, 'Male')], max_length=10, null=True), 17 | ), 18 | ] 19 | -------------------------------------------------------------------------------- /dashboard/migrations/0004_auto_20210720_1236.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 3.1.7 on 2021-07-20 11:36 2 | 3 | import django.core.validators 4 | from django.db import migrations, models 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('dashboard', '0003_auto_20210720_1231'), 11 | ] 12 | 13 | operations = [ 14 | migrations.AlterField( 15 | model_name='data', 16 | name='age', 17 | field=models.PositiveIntegerField(null=True, validators=[django.core.validators.MinValueValidator(13), django.core.validators.MaxValueValidator(19)]), 18 | ), 19 | ] 20 | -------------------------------------------------------------------------------- /templates/dashboard/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'partials/base.html' %} 2 | {% block title %}Home{% endblock %} 3 | {% load crispy_forms_tags %} 4 | {% block content %} 5 |
6 |
7 |
8 |
9 |
10 |
11 | {% csrf_token %} 12 | {{ form|crispy }} 13 | 14 |
15 |
16 |
17 |
18 |
19 |
20 | {% endblock %} -------------------------------------------------------------------------------- /manage.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | """Django's command-line utility for administrative tasks.""" 3 | import os 4 | import sys 5 | 6 | 7 | def main(): 8 | """Run administrative tasks.""" 9 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sportpredictor.settings') 10 | try: 11 | from django.core.management import execute_from_command_line 12 | except ImportError as exc: 13 | raise ImportError( 14 | "Couldn't import Django. Are you sure it's installed and " 15 | "available on your PYTHONPATH environment variable? Did you " 16 | "forget to activate a virtual environment?" 17 | ) from exc 18 | execute_from_command_line(sys.argv) 19 | 20 | 21 | if __name__ == '__main__': 22 | main() 23 | -------------------------------------------------------------------------------- /dashboard/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render, redirect 2 | from .forms import DataForm 3 | from .models import Data 4 | 5 | # Create your views here. 6 | 7 | 8 | def index(request): 9 | if request.method == 'POST': 10 | form = DataForm(request.POST) 11 | if form.is_valid(): 12 | form.save() 13 | return redirect('dashboard-predictions') 14 | else: 15 | form = DataForm() 16 | context = { 17 | 'form': form, 18 | } 19 | return render(request, 'dashboard/index.html', context) 20 | 21 | 22 | def predictions(request): 23 | predicted_sports = Data.objects.all() 24 | context = { 25 | 'predicted_sports': predicted_sports 26 | } 27 | return render(request, 'dashboard/predictions.html', context) 28 | -------------------------------------------------------------------------------- /sportpredictor/urls.py: -------------------------------------------------------------------------------- 1 | """sportpredictor URL Configuration 2 | 3 | The `urlpatterns` list routes URLs to views. For more information please see: 4 | https://docs.djangoproject.com/en/3.1/topics/http/urls/ 5 | Examples: 6 | Function views 7 | 1. Add an import: from my_app import views 8 | 2. Add a URL to urlpatterns: path('', views.home, name='home') 9 | Class-based views 10 | 1. Add an import: from other_app.views import Home 11 | 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') 12 | Including another URLconf 13 | 1. Import the include() function: from django.urls import include, path 14 | 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) 15 | """ 16 | from django.contrib import admin 17 | from django.urls import path, include 18 | 19 | urlpatterns = [ 20 | path('admin/', admin.site.urls), 21 | path('', include('dashboard.urls')) 22 | ] 23 | -------------------------------------------------------------------------------- /dashboard/migrations/0001_initial.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 3.1.7 on 2021-07-20 11:28 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | initial = True 9 | 10 | dependencies = [ 11 | ] 12 | 13 | operations = [ 14 | migrations.CreateModel( 15 | name='Data', 16 | fields=[ 17 | ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 18 | ('name', models.CharField(max_length=100, null=True)), 19 | ('age', models.PositiveIntegerField(null=True)), 20 | ('height', models.PositiveIntegerField(null=True)), 21 | ('sex', models.CharField(choices=[(0, 'Female'), (1, 'Male')], max_length=10, null=True)), 22 | ('predicitions', models.CharField(blank=True, max_length=100)), 23 | ('date', models.DateTimeField(auto_now_add=True)), 24 | ], 25 | options={ 26 | 'ordering': ['-date'], 27 | }, 28 | ), 29 | ] 30 | -------------------------------------------------------------------------------- /dashboard/models.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | from django.core.validators import MaxValueValidator, MinValueValidator 3 | from sklearn.tree import DecisionTreeClassifier 4 | import joblib 5 | 6 | # Create your models here. 7 | GENDER = ( 8 | (0, 'Female'), 9 | (1, 'Male'), 10 | ) 11 | 12 | 13 | class Data(models.Model): 14 | name = models.CharField(max_length=100, null=True) 15 | age = models.PositiveIntegerField( 16 | validators=[MinValueValidator(13), MaxValueValidator(19)], null=True) 17 | height = models.PositiveIntegerField(null=True) 18 | sex = models.PositiveIntegerField(choices=GENDER, null=True) 19 | predictions = models.CharField(max_length=100, blank=True) 20 | date = models.DateTimeField(auto_now_add=True) 21 | 22 | def save(self, *args, **kwargs): 23 | ml_model = joblib.load('ml_model/ml_sport_model.joblib') 24 | self.predictions = ml_model.predict( 25 | [[self.age, self.height, self.sex]]) 26 | return super().save(*args, *kwargs) 27 | 28 | class Meta: 29 | ordering = ['-date'] 30 | 31 | def __str__(self): 32 | return self.name 33 | -------------------------------------------------------------------------------- /templates/dashboard/predictions.html: -------------------------------------------------------------------------------- 1 | {% extends 'partials/base.html' %} 2 | {% block title %}All Prediction{% endblock %} 3 | 4 | {% block content %} 5 |
6 |
7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | {% for data in predicted_sports %} 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | {% endfor %} 28 | 29 |
NameAgeHeightSexPrediction
{{ data.name }}{{ data.age }}{{ data.height }}{{ data.sex }}{{ data.predictions }}
30 |
31 |
32 |
33 | {% endblock %} -------------------------------------------------------------------------------- /templates/partials/base.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | {% block title %} {% endblock %} 12 | 13 | 14 | {% include 'partials/nav.html' %} 15 | 16 | {% block content %} 17 | 18 | {% endblock %} 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 32 | 33 | -------------------------------------------------------------------------------- /sportpredictor/settings.py: -------------------------------------------------------------------------------- 1 | """ 2 | Django settings for sportpredictor project. 3 | 4 | Generated by 'django-admin startproject' using Django 3.1.7. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/3.1/topics/settings/ 8 | 9 | For the full list of settings and their values, see 10 | https://docs.djangoproject.com/en/3.1/ref/settings/ 11 | """ 12 | 13 | from pathlib import Path 14 | 15 | # Build paths inside the project like this: BASE_DIR / 'subdir'. 16 | BASE_DIR = Path(__file__).resolve().parent.parent 17 | 18 | 19 | # Quick-start development settings - unsuitable for production 20 | # See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ 21 | 22 | # SECURITY WARNING: keep the secret key used in production secret! 23 | SECRET_KEY = '$$f$)l!&kt3+4&j4w%m8-)06a=icy3t1u57t%q3suihv(obwmw' 24 | 25 | # SECURITY WARNING: don't run with debug turned on in production! 26 | DEBUG = True 27 | 28 | ALLOWED_HOSTS = [] 29 | 30 | 31 | # Application definition 32 | 33 | INSTALLED_APPS = [ 34 | 'django.contrib.admin', 35 | 'django.contrib.auth', 36 | 'django.contrib.contenttypes', 37 | 'django.contrib.sessions', 38 | 'django.contrib.messages', 39 | 'django.contrib.staticfiles', 40 | 'dashboard.apps.DashboardConfig', 41 | 'crispy_forms', 42 | ] 43 | 44 | MIDDLEWARE = [ 45 | 'django.middleware.security.SecurityMiddleware', 46 | 'django.contrib.sessions.middleware.SessionMiddleware', 47 | 'django.middleware.common.CommonMiddleware', 48 | 'django.middleware.csrf.CsrfViewMiddleware', 49 | 'django.contrib.auth.middleware.AuthenticationMiddleware', 50 | 'django.contrib.messages.middleware.MessageMiddleware', 51 | 'django.middleware.clickjacking.XFrameOptionsMiddleware', 52 | ] 53 | 54 | ROOT_URLCONF = 'sportpredictor.urls' 55 | 56 | TEMPLATES = [ 57 | { 58 | 'BACKEND': 'django.template.backends.django.DjangoTemplates', 59 | 'DIRS': [BASE_DIR/'templates'], 60 | 'APP_DIRS': True, 61 | 'OPTIONS': { 62 | 'context_processors': [ 63 | 'django.template.context_processors.debug', 64 | 'django.template.context_processors.request', 65 | 'django.contrib.auth.context_processors.auth', 66 | 'django.contrib.messages.context_processors.messages', 67 | ], 68 | }, 69 | }, 70 | ] 71 | 72 | WSGI_APPLICATION = 'sportpredictor.wsgi.application' 73 | 74 | 75 | # Database 76 | # https://docs.djangoproject.com/en/3.1/ref/settings/#databases 77 | 78 | DATABASES = { 79 | 'default': { 80 | 'ENGINE': 'django.db.backends.sqlite3', 81 | 'NAME': BASE_DIR / 'db.sqlite3', 82 | } 83 | } 84 | 85 | 86 | # Password validation 87 | # https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators 88 | 89 | AUTH_PASSWORD_VALIDATORS = [ 90 | { 91 | 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', 92 | }, 93 | { 94 | 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', 95 | }, 96 | { 97 | 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', 98 | }, 99 | { 100 | 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', 101 | }, 102 | ] 103 | 104 | 105 | CRISPY_TEMPLATE_PACK = 'bootstrap4' 106 | 107 | # Internationalization 108 | # https://docs.djangoproject.com/en/3.1/topics/i18n/ 109 | 110 | LANGUAGE_CODE = 'en-us' 111 | 112 | TIME_ZONE = 'UTC' 113 | 114 | USE_I18N = True 115 | 116 | USE_L10N = True 117 | 118 | USE_TZ = True 119 | 120 | 121 | # Static files (CSS, JavaScript, Images) 122 | # https://docs.djangoproject.com/en/3.1/howto/static-files/ 123 | 124 | STATIC_URL = '/static/' 125 | --------------------------------------------------------------------------------