zahrach0724 commited on
Commit
8a6b560
1 Parent(s): f7bf689

full model

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .idea/.gitignore +8 -0
  2. .idea/ams.iml +28 -0
  3. .idea/inspectionProfiles/profiles_settings.xml +6 -0
  4. .idea/misc.xml +4 -0
  5. .idea/modules.xml +8 -0
  6. .idea/workspace.xml +85 -0
  7. __pycache__/manage.cpython-38.pyc +0 -0
  8. ams/__init__.py +0 -0
  9. ams/__pycache__/__init__.cpython-310.pyc +0 -0
  10. ams/__pycache__/__init__.cpython-311.pyc +0 -0
  11. ams/__pycache__/__init__.cpython-38.pyc +0 -0
  12. ams/__pycache__/settings.cpython-310.pyc +0 -0
  13. ams/__pycache__/settings.cpython-311.pyc +0 -0
  14. ams/__pycache__/settings.cpython-38.pyc +0 -0
  15. ams/__pycache__/urls.cpython-310.pyc +0 -0
  16. ams/__pycache__/urls.cpython-311.pyc +0 -0
  17. ams/__pycache__/urls.cpython-38.pyc +0 -0
  18. ams/__pycache__/wsgi.cpython-38.pyc +0 -0
  19. ams/settings.py +127 -0
  20. ams/urls.py +22 -0
  21. ams/wsgi.py +16 -0
  22. db.sqlite3 +0 -0
  23. manage.py +21 -0
  24. media/images/....PNG +0 -0
  25. media/images/1022.PNG +0 -0
  26. media/images/11_result.PNG +0 -0
  27. media/images/11_result_ZFiGJcw.PNG +0 -0
  28. media/images/11_result_kGUHYdg.PNG +0 -0
  29. media/images/11_result_vIafYgm.PNG +0 -0
  30. media/images/1zzzzzz.PNG +0 -0
  31. media/images/2.PNG +0 -0
  32. media/images/22222result.PNG +0 -0
  33. media/images/22222result_ENDGM5O.PNG +0 -0
  34. media/images/22222result_m5j6Feq.PNG +0 -0
  35. media/images/22222result_n0yRsIo.PNG +0 -0
  36. media/images/233.PNG +0 -0
  37. media/images/233_5Ns6rxj.PNG +0 -0
  38. media/images/233_BF0mWhq.PNG +0 -0
  39. media/images/233_qMmaL6B.PNG +0 -0
  40. media/images/2_4a9hoMp.PNG +0 -0
  41. media/images/2_OML0Nuc.PNG +0 -0
  42. media/images/2_UNE7Pmq.PNG +0 -0
  43. media/images/2_WYMiLaX.PNG +0 -0
  44. media/images/2_f60z0g5.PNG +0 -0
  45. media/images/2_gZUgaBb.PNG +0 -0
  46. media/images/2_jylMS6D.PNG +0 -0
  47. media/images/2_kmypXLt.PNG +0 -0
  48. media/images/2_o1IUV5E.PNG +0 -0
  49. media/images/2_p1WH2sk.PNG +0 -0
  50. media/images/2_xzwXhRZ.PNG +0 -0
.idea/.gitignore ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
4
+ # Editor-based HTTP Client requests
5
+ /httpRequests/
6
+ # Datasource local storage ignored files
7
+ /dataSources/
8
+ /dataSources.local.xml
.idea/ams.iml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="PYTHON_MODULE" version="4">
3
+ <component name="FacetManager">
4
+ <facet type="django" name="Django">
5
+ <configuration>
6
+ <option name="rootFolder" value="$MODULE_DIR$" />
7
+ <option name="settingsModule" value="ams/settings.py" />
8
+ <option name="manageScript" value="$MODULE_DIR$/manage.py" />
9
+ <option name="environment" value="&lt;map/&gt;" />
10
+ <option name="doNotUseTestRunner" value="false" />
11
+ <option name="trackFilePattern" value="migrations" />
12
+ </configuration>
13
+ </facet>
14
+ </component>
15
+ <component name="NewModuleRootManager">
16
+ <content url="file://$MODULE_DIR$" />
17
+ <orderEntry type="inheritedJdk" />
18
+ <orderEntry type="sourceFolder" forTests="false" />
19
+ </component>
20
+ <component name="TemplatesService">
21
+ <option name="TEMPLATE_CONFIGURATION" value="Django" />
22
+ <option name="TEMPLATE_FOLDERS">
23
+ <list>
24
+ <option value="$MODULE_DIR$/templates" />
25
+ </list>
26
+ </option>
27
+ </component>
28
+ </module>
.idea/inspectionProfiles/profiles_settings.xml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ <component name="InspectionProjectProfileManager">
2
+ <settings>
3
+ <option name="USE_PROJECT_PROFILE" value="false" />
4
+ <version value="1.0" />
5
+ </settings>
6
+ </component>
.idea/misc.xml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8" project-jdk-type="Python SDK" />
4
+ </project>
.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/ams.iml" filepath="$PROJECT_DIR$/.idea/ams.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
.idea/workspace.xml ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="AutoImportSettings">
4
+ <option name="autoReloadType" value="SELECTIVE" />
5
+ </component>
6
+ <component name="ChangeListManager">
7
+ <list default="true" id="c5bfb1b8-a522-4905-97bb-94bd61bab74c" name="Changes" comment="" />
8
+ <option name="SHOW_DIALOG" value="false" />
9
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
11
+ <option name="LAST_RESOLUTION" value="IGNORE" />
12
+ </component>
13
+ <component name="DjangoConsoleOptions" custom-start-script="import sys; print('Python %s on %s' % (sys.version, sys.platform))&#10;import django; print('Django %s' % django.get_version())&#10;sys.path.extend([WORKING_DIR_AND_PYTHON_PATHS])&#10;if 'setup' in dir(django): django.setup()&#10;import django_manage_shell; django_manage_shell.run(PROJECT_ROOT)">
14
+ <option name="myCustomStartScript" value="import sys; print('Python %s on %s' % (sys.version, sys.platform))&#10;import django; print('Django %s' % django.get_version())&#10;sys.path.extend([WORKING_DIR_AND_PYTHON_PATHS])&#10;if 'setup' in dir(django): django.setup()&#10;import django_manage_shell; django_manage_shell.run(PROJECT_ROOT)" />
15
+ </component>
16
+ <component name="ProjectId" id="2aBKG9ysAwWV8qkkfYhkY5ubWJN" />
17
+ <component name="ProjectViewState">
18
+ <option name="hideEmptyMiddlePackages" value="true" />
19
+ <option name="showLibraryContents" value="true" />
20
+ </component>
21
+ <component name="PropertiesComponent">{
22
+ &quot;keyToString&quot;: {
23
+ &quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
24
+ &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
25
+ &quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
26
+ &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
27
+ &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
28
+ &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
29
+ &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
30
+ &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
31
+ }
32
+ }</component>
33
+ <component name="RunManager">
34
+ <configuration name="ams" type="Python.DjangoServer" factoryName="Django server">
35
+ <module name="ams" />
36
+ <option name="INTERPRETER_OPTIONS" value="" />
37
+ <option name="PARENT_ENVS" value="true" />
38
+ <envs>
39
+ <env name="PYTHONUNBUFFERED" value="1" />
40
+ </envs>
41
+ <option name="SDK_HOME" value="" />
42
+ <option name="WORKING_DIRECTORY" value="" />
43
+ <option name="IS_MODULE_SDK" value="false" />
44
+ <option name="ADD_CONTENT_ROOTS" value="true" />
45
+ <option name="ADD_SOURCE_ROOTS" value="true" />
46
+ <option name="launchJavascriptDebuger" value="false" />
47
+ <option name="port" value="8000" />
48
+ <option name="host" value="" />
49
+ <option name="additionalOptions" value="" />
50
+ <option name="browserUrl" value="" />
51
+ <option name="runTestServer" value="false" />
52
+ <option name="runNoReload" value="false" />
53
+ <option name="useCustomRunCommand" value="false" />
54
+ <option name="customRunCommand" value="" />
55
+ <method v="2" />
56
+ </configuration>
57
+ </component>
58
+ <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
59
+ <component name="TaskManager">
60
+ <task active="true" id="Default" summary="Default task">
61
+ <changelist id="c5bfb1b8-a522-4905-97bb-94bd61bab74c" name="Changes" comment="" />
62
+ <created>1703786437739</created>
63
+ <option name="number" value="Default" />
64
+ <option name="presentableId" value="Default" />
65
+ <updated>1703786437739</updated>
66
+ <workItem from="1703786441745" duration="3213000" />
67
+ <workItem from="1703792494579" duration="726000" />
68
+ <workItem from="1703794017526" duration="404000" />
69
+ <workItem from="1703923968465" duration="3646000" />
70
+ <workItem from="1703927821191" duration="749000" />
71
+ <workItem from="1703943629925" duration="9000" />
72
+ <workItem from="1704128050281" duration="8590000" />
73
+ <workItem from="1704137702876" duration="11386000" />
74
+ <workItem from="1704183902539" duration="1458000" />
75
+ <workItem from="1704192497644" duration="15506000" />
76
+ <workItem from="1704217499304" duration="628000" />
77
+ <workItem from="1704377276986" duration="46000" />
78
+ <workItem from="1704377528922" duration="507000" />
79
+ </task>
80
+ <servers />
81
+ </component>
82
+ <component name="TypeScriptGeneratedFilesManager">
83
+ <option name="version" value="3" />
84
+ </component>
85
+ </project>
__pycache__/manage.cpython-38.pyc ADDED
Binary file (788 Bytes). View file
 
ams/__init__.py ADDED
File without changes
ams/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (179 Bytes). View file
 
ams/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (195 Bytes). View file
 
ams/__pycache__/__init__.cpython-38.pyc ADDED
Binary file (139 Bytes). View file
 
ams/__pycache__/settings.cpython-310.pyc ADDED
Binary file (2.34 kB). View file
 
ams/__pycache__/settings.cpython-311.pyc ADDED
Binary file (2.83 kB). View file
 
ams/__pycache__/settings.cpython-38.pyc ADDED
Binary file (2.4 kB). View file
 
ams/__pycache__/urls.cpython-310.pyc ADDED
Binary file (1 kB). View file
 
ams/__pycache__/urls.cpython-311.pyc ADDED
Binary file (1.17 kB). View file
 
ams/__pycache__/urls.cpython-38.pyc ADDED
Binary file (963 Bytes). View file
 
ams/__pycache__/wsgi.cpython-38.pyc ADDED
Binary file (534 Bytes). View file
 
ams/settings.py ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Django settings for ams project.
3
+
4
+ Generated by 'django-admin startproject' using Django 2.2.12.
5
+
6
+ For more information on this file, see
7
+ https://docs.djangoproject.com/en/2.2/topics/settings/
8
+
9
+ For the full list of settings and their values, see
10
+ https://docs.djangoproject.com/en/2.2/ref/settings/
11
+ """
12
+
13
+ import os
14
+
15
+ # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
16
+ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
17
+
18
+
19
+ # Quick-start development settings - unsuitable for production
20
+ # See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
21
+
22
+ # SECURITY WARNING: keep the secret key used in production secret!
23
+ SECRET_KEY = '(+a+y$0_b#0)c!i^oe*(b1azmlm=v50u6&9ise&d54io0&kig2'
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
+ 'prediction'
41
+ ]
42
+
43
+ MIDDLEWARE = [
44
+ 'django.middleware.security.SecurityMiddleware',
45
+ 'django.contrib.sessions.middleware.SessionMiddleware',
46
+ 'django.middleware.common.CommonMiddleware',
47
+ 'django.middleware.csrf.CsrfViewMiddleware',
48
+ 'django.contrib.auth.middleware.AuthenticationMiddleware',
49
+ 'django.contrib.messages.middleware.MessageMiddleware',
50
+ 'django.middleware.clickjacking.XFrameOptionsMiddleware',
51
+ ]
52
+
53
+ ROOT_URLCONF = 'ams.urls'
54
+
55
+ TEMPLATES = [
56
+ {
57
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
58
+ 'DIRS': [BASE_DIR,'templates/'],
59
+ 'APP_DIRS': True,
60
+ 'OPTIONS': {
61
+ 'context_processors': [
62
+ 'django.template.context_processors.debug',
63
+ 'django.template.context_processors.request',
64
+ 'django.contrib.auth.context_processors.auth',
65
+ 'django.contrib.messages.context_processors.messages',
66
+ ],
67
+ },
68
+ },
69
+ ]
70
+
71
+ WSGI_APPLICATION = 'ams.wsgi.application'
72
+
73
+
74
+ # Database
75
+ # https://docs.djangoproject.com/en/2.2/ref/settings/#databases
76
+
77
+ DATABASES = {
78
+ 'default': {
79
+ 'ENGINE': 'django.db.backends.sqlite3',
80
+ 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
81
+ }
82
+ }
83
+
84
+
85
+ # Password validation
86
+ # https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators
87
+
88
+ AUTH_PASSWORD_VALIDATORS = [
89
+ {
90
+ 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
91
+ },
92
+ {
93
+ 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
94
+ },
95
+ {
96
+ 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
97
+ },
98
+ {
99
+ 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
100
+ },
101
+ ]
102
+
103
+
104
+ # Internationalization
105
+ # https://docs.djangoproject.com/en/2.2/topics/i18n/
106
+
107
+ LANGUAGE_CODE = 'en-us'
108
+
109
+ TIME_ZONE = 'UTC'
110
+
111
+ USE_I18N = True
112
+
113
+ USE_L10N = True
114
+
115
+ USE_TZ = True
116
+
117
+
118
+ # Static files (CSS, JavaScript, Images)
119
+ # https://docs.djangoproject.com/en/2.2/howto/static-files/
120
+
121
+ STATIC_URL = '/static/'
122
+ STATIC_ROOT = os.path.join(BASE_DIR, 'static')
123
+
124
+
125
+
126
+ MEDIA_URL = '/media/'
127
+ MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
ams/urls.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ams URL Configuration
2
+
3
+ The `urlpatterns` list routes URLs to views. For more information please see:
4
+ https://docs.djangoproject.com/en/2.2/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('prediction.urls'))
22
+ ]
ams/wsgi.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ WSGI config for ams 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/2.2/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', 'ams.settings')
15
+
16
+ application = get_wsgi_application()
db.sqlite3 ADDED
Binary file (143 kB). View file
 
manage.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Django's command-line utility for administrative tasks."""
3
+ import os
4
+ import sys
5
+
6
+
7
+ def main():
8
+ os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ams.settings')
9
+ try:
10
+ from django.core.management import execute_from_command_line
11
+ except ImportError as exc:
12
+ raise ImportError(
13
+ "Couldn't import Django. Are you sure it's installed and "
14
+ "available on your PYTHONPATH environment variable? Did you "
15
+ "forget to activate a virtual environment?"
16
+ ) from exc
17
+ execute_from_command_line(sys.argv)
18
+
19
+
20
+ if __name__ == '__main__':
21
+ main()
media/images/....PNG ADDED
media/images/1022.PNG ADDED
media/images/11_result.PNG ADDED
media/images/11_result_ZFiGJcw.PNG ADDED
media/images/11_result_kGUHYdg.PNG ADDED
media/images/11_result_vIafYgm.PNG ADDED
media/images/1zzzzzz.PNG ADDED
media/images/2.PNG ADDED
media/images/22222result.PNG ADDED
media/images/22222result_ENDGM5O.PNG ADDED
media/images/22222result_m5j6Feq.PNG ADDED
media/images/22222result_n0yRsIo.PNG ADDED
media/images/233.PNG ADDED
media/images/233_5Ns6rxj.PNG ADDED
media/images/233_BF0mWhq.PNG ADDED
media/images/233_qMmaL6B.PNG ADDED
media/images/2_4a9hoMp.PNG ADDED
media/images/2_OML0Nuc.PNG ADDED
media/images/2_UNE7Pmq.PNG ADDED
media/images/2_WYMiLaX.PNG ADDED
media/images/2_f60z0g5.PNG ADDED
media/images/2_gZUgaBb.PNG ADDED
media/images/2_jylMS6D.PNG ADDED
media/images/2_kmypXLt.PNG ADDED
media/images/2_o1IUV5E.PNG ADDED
media/images/2_p1WH2sk.PNG ADDED
media/images/2_xzwXhRZ.PNG ADDED