-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
edba1a1
commit 948b564
Showing
13,139 changed files
with
3,662,892 additions
and
187,126 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
fake_news_detection.harshitsoni.com | ||
fake_news_detection.harshitsoni.com/app.py |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import numpy as np # linear algebra | ||
import pandas as pd # data processing | ||
|
||
import os | ||
import re | ||
import nltk | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
123 changes: 123 additions & 0 deletions
123
my_venv/Lib/site-packages/Flask-2.2.2.dist-info/METADATA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
Metadata-Version: 2.1 | ||
Name: Flask | ||
Version: 2.2.2 | ||
Summary: A simple framework for building complex web applications. | ||
Home-page: https://palletsprojects.com/p/flask | ||
Author: Armin Ronacher | ||
Author-email: [email protected] | ||
Maintainer: Pallets | ||
Maintainer-email: [email protected] | ||
License: BSD-3-Clause | ||
Project-URL: Donate, https://palletsprojects.com/donate | ||
Project-URL: Documentation, https://flask.palletsprojects.com/ | ||
Project-URL: Changes, https://flask.palletsprojects.com/changes/ | ||
Project-URL: Source Code, https://github.com/pallets/flask/ | ||
Project-URL: Issue Tracker, https://github.com/pallets/flask/issues/ | ||
Project-URL: Twitter, https://twitter.com/PalletsTeam | ||
Project-URL: Chat, https://discord.gg/pallets | ||
Classifier: Development Status :: 5 - Production/Stable | ||
Classifier: Environment :: Web Environment | ||
Classifier: Framework :: Flask | ||
Classifier: Intended Audience :: Developers | ||
Classifier: License :: OSI Approved :: BSD License | ||
Classifier: Operating System :: OS Independent | ||
Classifier: Programming Language :: Python | ||
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content | ||
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI | ||
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application | ||
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks | ||
Requires-Python: >=3.7 | ||
Description-Content-Type: text/x-rst | ||
License-File: LICENSE.rst | ||
Requires-Dist: Werkzeug (>=2.2.2) | ||
Requires-Dist: Jinja2 (>=3.0) | ||
Requires-Dist: itsdangerous (>=2.0) | ||
Requires-Dist: click (>=8.0) | ||
Requires-Dist: importlib-metadata (>=3.6.0) ; python_version < "3.10" | ||
Provides-Extra: async | ||
Requires-Dist: asgiref (>=3.2) ; extra == 'async' | ||
Provides-Extra: dotenv | ||
Requires-Dist: python-dotenv ; extra == 'dotenv' | ||
|
||
Flask | ||
===== | ||
|
||
Flask is a lightweight `WSGI`_ web application framework. It is designed | ||
to make getting started quick and easy, with the ability to scale up to | ||
complex applications. It began as a simple wrapper around `Werkzeug`_ | ||
and `Jinja`_ and has become one of the most popular Python web | ||
application frameworks. | ||
|
||
Flask offers suggestions, but doesn't enforce any dependencies or | ||
project layout. It is up to the developer to choose the tools and | ||
libraries they want to use. There are many extensions provided by the | ||
community that make adding new functionality easy. | ||
|
||
.. _WSGI: https://wsgi.readthedocs.io/ | ||
.. _Werkzeug: https://werkzeug.palletsprojects.com/ | ||
.. _Jinja: https://jinja.palletsprojects.com/ | ||
|
||
|
||
Installing | ||
---------- | ||
|
||
Install and update using `pip`_: | ||
|
||
.. code-block:: text | ||
|
||
$ pip install -U Flask | ||
|
||
.. _pip: https://pip.pypa.io/en/stable/getting-started/ | ||
|
||
|
||
A Simple Example | ||
---------------- | ||
|
||
.. code-block:: python | ||
|
||
# save this as app.py | ||
from flask import Flask | ||
|
||
app = Flask(__name__) | ||
|
||
@app.route("/") | ||
def hello(): | ||
return "Hello, World!" | ||
|
||
.. code-block:: text | ||
|
||
$ flask run | ||
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) | ||
|
||
|
||
Contributing | ||
------------ | ||
|
||
For guidance on setting up a development environment and how to make a | ||
contribution to Flask, see the `contributing guidelines`_. | ||
|
||
.. _contributing guidelines: https://github.com/pallets/flask/blob/main/CONTRIBUTING.rst | ||
|
||
|
||
Donate | ||
------ | ||
|
||
The Pallets organization develops and supports Flask and the libraries | ||
it uses. In order to grow the community of contributors and users, and | ||
allow the maintainers to devote more time to the projects, `please | ||
donate today`_. | ||
|
||
.. _please donate today: https://palletsprojects.com/donate | ||
|
||
|
||
Links | ||
----- | ||
|
||
- Documentation: https://flask.palletsprojects.com/ | ||
- Changes: https://flask.palletsprojects.com/changes/ | ||
- PyPI Releases: https://pypi.org/project/Flask/ | ||
- Source Code: https://github.com/pallets/flask/ | ||
- Issue Tracker: https://github.com/pallets/flask/issues/ | ||
- Website: https://palletsprojects.com/p/flask/ | ||
- Twitter: https://twitter.com/PalletsTeam | ||
- Chat: https://discord.gg/pallets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
../../Scripts/flask.exe,sha256=CE-YXt-4VGIyLSEms2MMLjlEjvPJbZVvXSnxSs5-v7s,106347 | ||
Flask-2.2.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 | ||
Flask-2.2.2.dist-info/LICENSE.rst,sha256=SJqOEQhQntmKN7uYPhHg9-HTHwvY-Zp5yESOf_N9B-o,1475 | ||
Flask-2.2.2.dist-info/METADATA,sha256=UXiwRLD1johd_tGlYOlOKXkJFIG82ehR3bxqh4XWFwA,3889 | ||
Flask-2.2.2.dist-info/RECORD,, | ||
Flask-2.2.2.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 | ||
Flask-2.2.2.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92 | ||
Flask-2.2.2.dist-info/entry_points.txt,sha256=s3MqQpduU25y4dq3ftBYD6bMVdVnbMpZP-sUNw0zw0k,41 | ||
Flask-2.2.2.dist-info/top_level.txt,sha256=dvi65F6AeGWVU0TBpYiC04yM60-FX1gJFkK31IKQr5c,6 | ||
flask/__init__.py,sha256=Y4mEWqAMxj_Oxq9eYv3tWyN-0nU9yVKBGK_t6BxqvvM,2890 | ||
flask/__main__.py,sha256=bYt9eEaoRQWdejEHFD8REx9jxVEdZptECFsV7F49Ink,30 | ||
flask/__pycache__/__init__.cpython-310.pyc,, | ||
flask/__pycache__/__main__.cpython-310.pyc,, | ||
flask/__pycache__/app.cpython-310.pyc,, | ||
flask/__pycache__/blueprints.cpython-310.pyc,, | ||
flask/__pycache__/cli.cpython-310.pyc,, | ||
flask/__pycache__/config.cpython-310.pyc,, | ||
flask/__pycache__/ctx.cpython-310.pyc,, | ||
flask/__pycache__/debughelpers.cpython-310.pyc,, | ||
flask/__pycache__/globals.cpython-310.pyc,, | ||
flask/__pycache__/helpers.cpython-310.pyc,, | ||
flask/__pycache__/logging.cpython-310.pyc,, | ||
flask/__pycache__/scaffold.cpython-310.pyc,, | ||
flask/__pycache__/sessions.cpython-310.pyc,, | ||
flask/__pycache__/signals.cpython-310.pyc,, | ||
flask/__pycache__/templating.cpython-310.pyc,, | ||
flask/__pycache__/testing.cpython-310.pyc,, | ||
flask/__pycache__/typing.cpython-310.pyc,, | ||
flask/__pycache__/views.cpython-310.pyc,, | ||
flask/__pycache__/wrappers.cpython-310.pyc,, | ||
flask/app.py,sha256=VfBcGmEVveMcSajkUmDXCEOvAd-2mIBJ355KicvQ4gE,99025 | ||
flask/blueprints.py,sha256=Jbrt-2jlLiFklC3De9EWBioPtDjHYYbXlTDK9Z7L2nk,26936 | ||
flask/cli.py,sha256=foLlD8NiIXcxpxMmRQvvlZPbVM8pxOaJG3sa58c9dAA,33486 | ||
flask/config.py,sha256=IWqHecH4poDxNEUg4U_ZA1CTlL5BKZDX3ofG4UGYyi0,12584 | ||
flask/ctx.py,sha256=ZOGEWuFjsCIk3vm-C9pLME0e4saeBkeGpr2tTSvemSM,14851 | ||
flask/debughelpers.py,sha256=_RvAL3TW5lqMJeCVWtTU6rSDJC7jnRaBL6OEkVmooyU,5511 | ||
flask/globals.py,sha256=1DLZMi8Su-S1gf8zEiR3JPi6VXYIrYqm8C9__Ly66ss,3187 | ||
flask/helpers.py,sha256=ELq27745jihrdyAP9qY8KENlCVDdnWRWTIn35L9a-UU,25334 | ||
flask/json/__init__.py,sha256=TOwldHT3_kFaXHlORKi9yCWt7dbPNB0ovdHHQWlSRzY,11175 | ||
flask/json/__pycache__/__init__.cpython-310.pyc,, | ||
flask/json/__pycache__/provider.cpython-310.pyc,, | ||
flask/json/__pycache__/tag.cpython-310.pyc,, | ||
flask/json/provider.py,sha256=jXCNypf11PN4ngQjEt6LnSdCWQ1yHIAkNLHlXQlCB-A,10674 | ||
flask/json/tag.py,sha256=fys3HBLssWHuMAIJuTcf2K0bCtosePBKXIWASZEEjnU,8857 | ||
flask/logging.py,sha256=WYng0bLTRS_CJrocGcCLJpibHf1lygHE_pg-KoUIQ4w,2293 | ||
flask/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 | ||
flask/scaffold.py,sha256=tiQRK-vMY5nucoN6pewXF87GaxrltsCGOgTVsT6wm7s,33443 | ||
flask/sessions.py,sha256=66oGlE-v9iac-eb54tFN3ILAjJ1FeeuHHWw98UVaoxc,15847 | ||
flask/signals.py,sha256=H7QwDciK-dtBxinjKpexpglP0E6k0MJILiFWTItfmqU,2136 | ||
flask/templating.py,sha256=1P4OzvSnA2fsJTYgQT3G4owVKsuOz8XddCiR6jMHGJ0,7419 | ||
flask/testing.py,sha256=p51f9P7jDc_IDSiZug7jypnfVcxsQrMg3B2tnjlpEFw,10596 | ||
flask/typing.py,sha256=KgxegTF9v9WvuongeF8LooIvpZPauzGrq9ZXf3gBlYc,2969 | ||
flask/views.py,sha256=bveWilivkPP-4HB9w_fOusBz6sHNIl0QTqKUFMCltzE,6738 | ||
flask/wrappers.py,sha256=Wa-bhjNdPPveSHS1dpzD_r-ayZxIYFF1DoWncKOafrk,5695 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Wheel-Version: 1.0 | ||
Generator: bdist_wheel (0.37.1) | ||
Root-Is-Purelib: true | ||
Tag: py3-none-any | ||
|
2 changes: 2 additions & 0 deletions
2
my_venv/Lib/site-packages/Flask-2.2.2.dist-info/entry_points.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[console_scripts] | ||
flask = flask.cli:main |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
""" | ||
IPython: tools for interactive and parallel computing in Python. | ||
https://ipython.org | ||
""" | ||
#----------------------------------------------------------------------------- | ||
# Copyright (c) 2008-2011, IPython Development Team. | ||
# Copyright (c) 2001-2007, Fernando Perez <[email protected]> | ||
# Copyright (c) 2001, Janko Hauser <[email protected]> | ||
# Copyright (c) 2001, Nathaniel Gray <[email protected]> | ||
# | ||
# Distributed under the terms of the Modified BSD License. | ||
# | ||
# The full license is in the file COPYING.txt, distributed with this software. | ||
#----------------------------------------------------------------------------- | ||
|
||
#----------------------------------------------------------------------------- | ||
# Imports | ||
#----------------------------------------------------------------------------- | ||
|
||
import sys | ||
|
||
#----------------------------------------------------------------------------- | ||
# Setup everything | ||
#----------------------------------------------------------------------------- | ||
|
||
# Don't forget to also update setup.py when this changes! | ||
if sys.version_info < (3, 8): | ||
raise ImportError( | ||
""" | ||
IPython 8+ supports Python 3.8 and above, following NEP 29. | ||
When using Python 2.7, please install IPython 5.x LTS Long Term Support version. | ||
Python 3.3 and 3.4 were supported up to IPython 6.x. | ||
Python 3.5 was supported with IPython 7.0 to 7.9. | ||
Python 3.6 was supported with IPython up to 7.16. | ||
Python 3.7 was still supported with the 7.x branch. | ||
See IPython `README.rst` file for more information: | ||
https://github.com/ipython/ipython/blob/main/README.rst | ||
""" | ||
) | ||
|
||
#----------------------------------------------------------------------------- | ||
# Setup the top level names | ||
#----------------------------------------------------------------------------- | ||
|
||
from .core.getipython import get_ipython | ||
from .core import release | ||
from .core.application import Application | ||
from .terminal.embed import embed | ||
|
||
from .core.interactiveshell import InteractiveShell | ||
from .utils.sysinfo import sys_info | ||
from .utils.frame import extract_module_locals | ||
|
||
# Release data | ||
__author__ = '%s <%s>' % (release.author, release.author_email) | ||
__license__ = release.license | ||
__version__ = release.version | ||
version_info = release.version_info | ||
# list of CVEs that should have been patched in this release. | ||
# this is informational and should not be relied upon. | ||
__patched_cves__ = {"CVE-2022-21699"} | ||
|
||
|
||
def embed_kernel(module=None, local_ns=None, **kwargs): | ||
"""Embed and start an IPython kernel in a given scope. | ||
If you don't want the kernel to initialize the namespace | ||
from the scope of the surrounding function, | ||
and/or you want to load full IPython configuration, | ||
you probably want `IPython.start_kernel()` instead. | ||
Parameters | ||
---------- | ||
module : types.ModuleType, optional | ||
The module to load into IPython globals (default: caller) | ||
local_ns : dict, optional | ||
The namespace to load into IPython user namespace (default: caller) | ||
**kwargs : various, optional | ||
Further keyword args are relayed to the IPKernelApp constructor, | ||
allowing configuration of the Kernel. Will only have an effect | ||
on the first embed_kernel call for a given process. | ||
""" | ||
|
||
(caller_module, caller_locals) = extract_module_locals(1) | ||
if module is None: | ||
module = caller_module | ||
if local_ns is None: | ||
local_ns = caller_locals | ||
|
||
# Only import .zmq when we really need it | ||
from ipykernel.embed import embed_kernel as real_embed_kernel | ||
real_embed_kernel(module=module, local_ns=local_ns, **kwargs) | ||
|
||
def start_ipython(argv=None, **kwargs): | ||
"""Launch a normal IPython instance (as opposed to embedded) | ||
`IPython.embed()` puts a shell in a particular calling scope, | ||
such as a function or method for debugging purposes, | ||
which is often not desirable. | ||
`start_ipython()` does full, regular IPython initialization, | ||
including loading startup files, configuration, etc. | ||
much of which is skipped by `embed()`. | ||
This is a public API method, and will survive implementation changes. | ||
Parameters | ||
---------- | ||
argv : list or None, optional | ||
If unspecified or None, IPython will parse command-line options from sys.argv. | ||
To prevent any command-line parsing, pass an empty list: `argv=[]`. | ||
user_ns : dict, optional | ||
specify this dictionary to initialize the IPython user namespace with particular values. | ||
**kwargs : various, optional | ||
Any other kwargs will be passed to the Application constructor, | ||
such as `config`. | ||
""" | ||
from IPython.terminal.ipapp import launch_new_instance | ||
return launch_new_instance(argv=argv, **kwargs) | ||
|
||
def start_kernel(argv=None, **kwargs): | ||
"""Launch a normal IPython kernel instance (as opposed to embedded) | ||
`IPython.embed_kernel()` puts a shell in a particular calling scope, | ||
such as a function or method for debugging purposes, | ||
which is often not desirable. | ||
`start_kernel()` does full, regular IPython initialization, | ||
including loading startup files, configuration, etc. | ||
much of which is skipped by `embed()`. | ||
Parameters | ||
---------- | ||
argv : list or None, optional | ||
If unspecified or None, IPython will parse command-line options from sys.argv. | ||
To prevent any command-line parsing, pass an empty list: `argv=[]`. | ||
user_ns : dict, optional | ||
specify this dictionary to initialize the IPython user namespace with particular values. | ||
**kwargs : various, optional | ||
Any other kwargs will be passed to the Application constructor, | ||
such as `config`. | ||
""" | ||
import warnings | ||
|
||
warnings.warn( | ||
"start_kernel is deprecated since IPython 8.0, use from `ipykernel.kernelapp.launch_new_instance`", | ||
DeprecationWarning, | ||
stacklevel=2, | ||
) | ||
from ipykernel.kernelapp import launch_new_instance | ||
return launch_new_instance(argv=argv, **kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# encoding: utf-8 | ||
"""Terminal-based IPython entry point. | ||
""" | ||
#----------------------------------------------------------------------------- | ||
# Copyright (c) 2012, IPython Development Team. | ||
# | ||
# Distributed under the terms of the Modified BSD License. | ||
# | ||
# The full license is in the file COPYING.txt, distributed with this software. | ||
#----------------------------------------------------------------------------- | ||
|
||
from IPython import start_ipython | ||
|
||
start_ipython() |
Oops, something went wrong.