From 061ca1aed78b2b7cad5b6b4ba87047a76ce0675d Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati Date: Fri, 8 Mar 2024 18:16:34 -0800 Subject: [PATCH 01/30] Docs updated --- docs/Makefile | 20 +++++++++++ docs/gh_explainer.rst | 21 +++++++++++ docs/make.bat | 35 +++++++++++++++++++ docs/modules.rst | 7 ++++ docs/source/conf.py | 31 ++++++++++++++++ docs/source/index.rst | 20 +++++++++++ .../Grey-Scale-Image-Colorization | 1 + project_explainer_ui/flagged/log.csv | 2 ++ project_explainer_ui/readthedocs.yml | 7 ++++ project_explainer_ui/src/gh-explainer | 1 + project_explainer_ui/src/gh-processor | 1 + src/gh-explainer | 1 + src/gh-processor | 1 + 13 files changed, 148 insertions(+) create mode 100644 docs/Makefile create mode 100644 docs/gh_explainer.rst create mode 100644 docs/make.bat create mode 100644 docs/modules.rst create mode 100644 docs/source/conf.py create mode 100644 docs/source/index.rst create mode 160000 project_explainer_ui/Grey-Scale-Image-Colorization create mode 100644 project_explainer_ui/flagged/log.csv create mode 100644 project_explainer_ui/readthedocs.yml create mode 160000 project_explainer_ui/src/gh-explainer create mode 160000 project_explainer_ui/src/gh-processor create mode 160000 src/gh-explainer create mode 160000 src/gh-processor diff --git a/docs/Makefile b/docs/Makefile new file mode 100644 index 0000000..d0c3cbf --- /dev/null +++ b/docs/Makefile @@ -0,0 +1,20 @@ +# Minimal makefile for Sphinx documentation +# + +# You can set these variables from the command line, and also +# from the environment for the first two. +SPHINXOPTS ?= +SPHINXBUILD ?= sphinx-build +SOURCEDIR = source +BUILDDIR = build + +# Put it first so that "make" without argument is like "make help". +help: + @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + +.PHONY: help Makefile + +# Catch-all target: route all unknown targets to Sphinx using the new +# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). +%: Makefile + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) diff --git a/docs/gh_explainer.rst b/docs/gh_explainer.rst new file mode 100644 index 0000000..bf174ec --- /dev/null +++ b/docs/gh_explainer.rst @@ -0,0 +1,21 @@ +gh\_explainer package +===================== + +Submodules +---------- + +gh\_explainer.summarize module +------------------------------ + +.. automodule:: gh_explainer.summarize + :members: + :undoc-members: + :show-inheritance: + +Module contents +--------------- + +.. automodule:: gh_explainer + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/make.bat b/docs/make.bat new file mode 100644 index 0000000..747ffb7 --- /dev/null +++ b/docs/make.bat @@ -0,0 +1,35 @@ +@ECHO OFF + +pushd %~dp0 + +REM Command file for Sphinx documentation + +if "%SPHINXBUILD%" == "" ( + set SPHINXBUILD=sphinx-build +) +set SOURCEDIR=source +set BUILDDIR=build + +%SPHINXBUILD% >NUL 2>NUL +if errorlevel 9009 ( + echo. + echo.The 'sphinx-build' command was not found. Make sure you have Sphinx + echo.installed, then set the SPHINXBUILD environment variable to point + echo.to the full path of the 'sphinx-build' executable. Alternatively you + echo.may add the Sphinx directory to PATH. + echo. + echo.If you don't have Sphinx installed, grab it from + echo.https://www.sphinx-doc.org/ + exit /b 1 +) + +if "%1" == "" goto help + +%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% +goto end + +:help +%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% + +:end +popd diff --git a/docs/modules.rst b/docs/modules.rst new file mode 100644 index 0000000..644c4f0 --- /dev/null +++ b/docs/modules.rst @@ -0,0 +1,7 @@ +project_explainer +================= + +.. toctree:: + :maxdepth: 4 + + gh_explainer diff --git a/docs/source/conf.py b/docs/source/conf.py new file mode 100644 index 0000000..5eeb7cf --- /dev/null +++ b/docs/source/conf.py @@ -0,0 +1,31 @@ +# Configuration file for the Sphinx documentation builder. +# +# For the full list of built-in configuration values, see the documentation: +# https://www.sphinx-doc.org/en/master/usage/configuration.html + +# -- Project information ----------------------------------------------------- +# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information +import os +import sys +sys.path.insert(0, os.path.abspath('/Users/ethanhunt/Project-Explainer')) + +project = 'PROJECT-EXPLAINER' +copyright = '2024, C2SI' +author = 'C2SI' +release = '27 Aug, 2023' + +# -- General configuration --------------------------------------------------- +# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration + +extensions = [] + +templates_path = ['_templates'] +exclude_patterns = [] + +language = 'Python, Jupyter Notebook' + +# -- Options for HTML output ------------------------------------------------- +# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output + +html_theme = 'alabaster' +html_static_path = ['_static'] diff --git a/docs/source/index.rst b/docs/source/index.rst new file mode 100644 index 0000000..4f75d7d --- /dev/null +++ b/docs/source/index.rst @@ -0,0 +1,20 @@ +.. PROJECT-EXPLAINER documentation master file, created by + sphinx-quickstart on Fri Mar 8 17:31:18 2024. + You can adapt this file completely to your liking, but it should at least + contain the root `toctree` directive. + +Welcome to PROJECT-EXPLAINER's documentation! +============================================= + +.. toctree:: + :maxdepth: 2 + :caption: Contents: + + + +Indices and tables +================== + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` diff --git a/project_explainer_ui/Grey-Scale-Image-Colorization b/project_explainer_ui/Grey-Scale-Image-Colorization new file mode 160000 index 0000000..e950adc --- /dev/null +++ b/project_explainer_ui/Grey-Scale-Image-Colorization @@ -0,0 +1 @@ +Subproject commit e950adcfb7cb4bf715aa1b170d0a259456756b26 diff --git a/project_explainer_ui/flagged/log.csv b/project_explainer_ui/flagged/log.csv new file mode 100644 index 0000000..c432c58 --- /dev/null +++ b/project_explainer_ui/flagged/log.csv @@ -0,0 +1,2 @@ +summary level,github_project_url,github_project_branch,huggingface_model_id,output,flag,username,timestamp +brief,https://github.com/ahmedshahriar/eda_basketball,main,gpt2,,,,2024-03-08 11:52:20.215384 diff --git a/project_explainer_ui/readthedocs.yml b/project_explainer_ui/readthedocs.yml new file mode 100644 index 0000000..f864028 --- /dev/null +++ b/project_explainer_ui/readthedocs.yml @@ -0,0 +1,7 @@ +version: 2 +sphinx: + configuration: docs/conf.py +python: + version: 3.12.2 + install: + - requirements: project_explainer_ui/requirements.txt diff --git a/project_explainer_ui/src/gh-explainer b/project_explainer_ui/src/gh-explainer new file mode 160000 index 0000000..3af0213 --- /dev/null +++ b/project_explainer_ui/src/gh-explainer @@ -0,0 +1 @@ +Subproject commit 3af0213bf6f52afdb8e99a58fac061e87505c143 diff --git a/project_explainer_ui/src/gh-processor b/project_explainer_ui/src/gh-processor new file mode 160000 index 0000000..3af0213 --- /dev/null +++ b/project_explainer_ui/src/gh-processor @@ -0,0 +1 @@ +Subproject commit 3af0213bf6f52afdb8e99a58fac061e87505c143 diff --git a/src/gh-explainer b/src/gh-explainer new file mode 160000 index 0000000..3af0213 --- /dev/null +++ b/src/gh-explainer @@ -0,0 +1 @@ +Subproject commit 3af0213bf6f52afdb8e99a58fac061e87505c143 diff --git a/src/gh-processor b/src/gh-processor new file mode 160000 index 0000000..3af0213 --- /dev/null +++ b/src/gh-processor @@ -0,0 +1 @@ +Subproject commit 3af0213bf6f52afdb8e99a58fac061e87505c143 From 71be59a30da3d501a1c51d77ce5242a1f49486e3 Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati Date: Fri, 8 Mar 2024 18:21:03 -0800 Subject: [PATCH 02/30] docs updated --- readthedocs.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 readthedocs.yml diff --git a/readthedocs.yml b/readthedocs.yml new file mode 100644 index 0000000..268563b --- /dev/null +++ b/readthedocs.yml @@ -0,0 +1,7 @@ +version: 2 +sphinx: + configuration: docs/source/conf.py +python: + version: 3.12.2 + install: + - requirements: project_explainer_ui/requirements.txt From 6b5085e50bda3cab7af0dcbe144c0c98a629edb2 Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati Date: Fri, 8 Mar 2024 18:28:11 -0800 Subject: [PATCH 03/30] docs changes --- docs/source/conf.py | 2 +- readthedocs.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 5eeb7cf..72700ae 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -7,7 +7,7 @@ # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information import os import sys -sys.path.insert(0, os.path.abspath('/Users/ethanhunt/Project-Explainer')) +sys.path.insert(0, os.path.abspath('/Users/ethanhunt/Desktop/Project-Explainer')) project = 'PROJECT-EXPLAINER' copyright = '2024, C2SI' diff --git a/readthedocs.yml b/readthedocs.yml index 268563b..3fdb42a 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -1,7 +1,9 @@ version: 2 sphinx: configuration: docs/source/conf.py +formats: all python: version: 3.12.2 install: + - method: pip - requirements: project_explainer_ui/requirements.txt From 705b424b5fa4d53f4ddf8efbc93ffc84898b53d4 Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati Date: Fri, 8 Mar 2024 18:47:44 -0800 Subject: [PATCH 04/30] readthedocs --- Makefile | 20 ++++++++++++++++++++ docs/source/gh_explainer.rst | 21 +++++++++++++++++++++ docs/source/modules.rst | 7 +++++++ make.bat | 35 +++++++++++++++++++++++++++++++++++ source/conf.py | 28 ++++++++++++++++++++++++++++ source/index.rst | 20 ++++++++++++++++++++ 6 files changed, 131 insertions(+) create mode 100644 Makefile create mode 100644 docs/source/gh_explainer.rst create mode 100644 docs/source/modules.rst create mode 100644 make.bat create mode 100644 source/conf.py create mode 100644 source/index.rst diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d0c3cbf --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +# Minimal makefile for Sphinx documentation +# + +# You can set these variables from the command line, and also +# from the environment for the first two. +SPHINXOPTS ?= +SPHINXBUILD ?= sphinx-build +SOURCEDIR = source +BUILDDIR = build + +# Put it first so that "make" without argument is like "make help". +help: + @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + +.PHONY: help Makefile + +# Catch-all target: route all unknown targets to Sphinx using the new +# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). +%: Makefile + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) diff --git a/docs/source/gh_explainer.rst b/docs/source/gh_explainer.rst new file mode 100644 index 0000000..bf174ec --- /dev/null +++ b/docs/source/gh_explainer.rst @@ -0,0 +1,21 @@ +gh\_explainer package +===================== + +Submodules +---------- + +gh\_explainer.summarize module +------------------------------ + +.. automodule:: gh_explainer.summarize + :members: + :undoc-members: + :show-inheritance: + +Module contents +--------------- + +.. automodule:: gh_explainer + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/source/modules.rst b/docs/source/modules.rst new file mode 100644 index 0000000..644c4f0 --- /dev/null +++ b/docs/source/modules.rst @@ -0,0 +1,7 @@ +project_explainer +================= + +.. toctree:: + :maxdepth: 4 + + gh_explainer diff --git a/make.bat b/make.bat new file mode 100644 index 0000000..747ffb7 --- /dev/null +++ b/make.bat @@ -0,0 +1,35 @@ +@ECHO OFF + +pushd %~dp0 + +REM Command file for Sphinx documentation + +if "%SPHINXBUILD%" == "" ( + set SPHINXBUILD=sphinx-build +) +set SOURCEDIR=source +set BUILDDIR=build + +%SPHINXBUILD% >NUL 2>NUL +if errorlevel 9009 ( + echo. + echo.The 'sphinx-build' command was not found. Make sure you have Sphinx + echo.installed, then set the SPHINXBUILD environment variable to point + echo.to the full path of the 'sphinx-build' executable. Alternatively you + echo.may add the Sphinx directory to PATH. + echo. + echo.If you don't have Sphinx installed, grab it from + echo.https://www.sphinx-doc.org/ + exit /b 1 +) + +if "%1" == "" goto help + +%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% +goto end + +:help +%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% + +:end +popd diff --git a/source/conf.py b/source/conf.py new file mode 100644 index 0000000..170a0cc --- /dev/null +++ b/source/conf.py @@ -0,0 +1,28 @@ +# Configuration file for the Sphinx documentation builder. +# +# For the full list of built-in configuration values, see the documentation: +# https://www.sphinx-doc.org/en/master/usage/configuration.html + +# -- Project information ----------------------------------------------------- +# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information + +project = 'PROJECT-EXPLAINER' +copyright = '2024, C2SI' +author = 'C2SI' +release = '27 Aug, 2023' + +# -- General configuration --------------------------------------------------- +# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration + +extensions = [] + +templates_path = ['_templates'] +exclude_patterns = [] + +language = 'Python, Jupyter Notbook' + +# -- Options for HTML output ------------------------------------------------- +# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output + +html_theme = 'alabaster' +html_static_path = ['_static'] diff --git a/source/index.rst b/source/index.rst new file mode 100644 index 0000000..5adb54d --- /dev/null +++ b/source/index.rst @@ -0,0 +1,20 @@ +.. PROJECT-EXPLAINER documentation master file, created by + sphinx-quickstart on Fri Mar 8 18:39:47 2024. + You can adapt this file completely to your liking, but it should at least + contain the root `toctree` directive. + +Welcome to PROJECT-EXPLAINER's documentation! +============================================= + +.. toctree:: + :maxdepth: 2 + :caption: Contents: + + + +Indices and tables +================== + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` From a8d88ed0ea1efac2b0565c9f667769ef780ab95e Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati <76988460+cxx5208@users.noreply.github.com> Date: Fri, 8 Mar 2024 18:53:29 -0800 Subject: [PATCH 05/30] Update readthedocs.yml --- readthedocs.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readthedocs.yml b/readthedocs.yml index 3fdb42a..72d932d 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -1,4 +1,6 @@ version: 2 +build: + os: "ubuntu-22.04" sphinx: configuration: docs/source/conf.py formats: all From ec56dde5ff914646df25b2e0f5f3489dabcfa1a7 Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati <76988460+cxx5208@users.noreply.github.com> Date: Fri, 8 Mar 2024 18:57:05 -0800 Subject: [PATCH 06/30] Update readthedocs.yml --- readthedocs.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/readthedocs.yml b/readthedocs.yml index 72d932d..dee165e 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -1,6 +1,8 @@ version: 2 build: - os: "ubuntu-22.04" + os: "ubuntu-20.04" # Specifies the build OS. Use only if you have specific requirements. + tools: + python: "3.12.2" sphinx: configuration: docs/source/conf.py formats: all From 979e83e4ad3adc23eeb634a26cd3c71b09df6bf6 Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati <76988460+cxx5208@users.noreply.github.com> Date: Fri, 8 Mar 2024 18:57:45 -0800 Subject: [PATCH 07/30] Update readthedocs.yml --- readthedocs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readthedocs.yml b/readthedocs.yml index dee165e..19400a9 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -2,7 +2,7 @@ version: 2 build: os: "ubuntu-20.04" # Specifies the build OS. Use only if you have specific requirements. tools: - python: "3.12.2" + python: "3.12" sphinx: configuration: docs/source/conf.py formats: all From 9f9e599d1e43ce6797eb79bc7b98c954921e3b9b Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati <76988460+cxx5208@users.noreply.github.com> Date: Fri, 8 Mar 2024 19:00:15 -0800 Subject: [PATCH 08/30] Update readthedocs.yml --- readthedocs.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/readthedocs.yml b/readthedocs.yml index 19400a9..ac42152 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -1,13 +1,17 @@ version: 2 + +# The build.os and build.tools sections are not typically used and can be omitted build: - os: "ubuntu-20.04" # Specifies the build OS. Use only if you have specific requirements. - tools: - python: "3.12" + os: "ubuntu-20.04" + tools: + python: "3.12" + sphinx: - configuration: docs/source/conf.py + configuration: docs/source/conf.py # Ensure this path is correct formats: all + python: - version: 3.12.2 + version: 3.12 # Just specify the major and minor version, e.g., 3.12 install: - method: pip - - requirements: project_explainer_ui/requirements.txt + requirements: project_explainer_ui/requirements.txt From 53cd244582e04dca7491f26aae441245c7903ed2 Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati <76988460+cxx5208@users.noreply.github.com> Date: Fri, 8 Mar 2024 19:00:51 -0800 Subject: [PATCH 09/30] Update readthedocs.yml --- readthedocs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readthedocs.yml b/readthedocs.yml index ac42152..2a16d7d 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -11,7 +11,7 @@ sphinx: formats: all python: - version: 3.12 # Just specify the major and minor version, e.g., 3.12 + version: 3.12.2 # Just specify the major and minor version, e.g., 3.12 install: - method: pip requirements: project_explainer_ui/requirements.txt From 15cd11a83145a7cdecb1d7aefbe2ab7f1a8be48b Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati <76988460+cxx5208@users.noreply.github.com> Date: Fri, 8 Mar 2024 19:01:54 -0800 Subject: [PATCH 10/30] Update readthedocs.yml --- readthedocs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readthedocs.yml b/readthedocs.yml index 2a16d7d..ac42152 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -11,7 +11,7 @@ sphinx: formats: all python: - version: 3.12.2 # Just specify the major and minor version, e.g., 3.12 + version: 3.12 # Just specify the major and minor version, e.g., 3.12 install: - method: pip requirements: project_explainer_ui/requirements.txt From aa6ab0723ce4a72963be9944693ad291ddec88cd Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati <76988460+cxx5208@users.noreply.github.com> Date: Fri, 8 Mar 2024 19:03:30 -0800 Subject: [PATCH 11/30] Update readthedocs.yml --- readthedocs.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/readthedocs.yml b/readthedocs.yml index ac42152..d5cd596 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -1,10 +1,9 @@ version: 2 -# The build.os and build.tools sections are not typically used and can be omitted build: - os: "ubuntu-20.04" - tools: - python: "3.12" + os: "ubuntu-20.04" + tools: + python: "3.12" sphinx: configuration: docs/source/conf.py # Ensure this path is correct From eb6c7025696c2d6763ef1fb09b35f28d1911496d Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati <76988460+cxx5208@users.noreply.github.com> Date: Fri, 8 Mar 2024 19:04:58 -0800 Subject: [PATCH 12/30] Update readthedocs.yml --- readthedocs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readthedocs.yml b/readthedocs.yml index d5cd596..70ba98a 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -10,7 +10,7 @@ sphinx: formats: all python: - version: 3.12 # Just specify the major and minor version, e.g., 3.12 +# version: 3.12 # Just specify the major and minor version, e.g., 3.12 install: - method: pip requirements: project_explainer_ui/requirements.txt From aa362d07cecf346a2f2a8324d9cdb08dd02441e8 Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati <76988460+cxx5208@users.noreply.github.com> Date: Fri, 8 Mar 2024 19:05:46 -0800 Subject: [PATCH 13/30] Update readthedocs.yml --- readthedocs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readthedocs.yml b/readthedocs.yml index 70ba98a..d5cd596 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -10,7 +10,7 @@ sphinx: formats: all python: -# version: 3.12 # Just specify the major and minor version, e.g., 3.12 + version: 3.12 # Just specify the major and minor version, e.g., 3.12 install: - method: pip requirements: project_explainer_ui/requirements.txt From db38c60238435cdbcee9138c097a067604559ce7 Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati <76988460+cxx5208@users.noreply.github.com> Date: Fri, 8 Mar 2024 19:09:42 -0800 Subject: [PATCH 14/30] Update readthedocs.yml --- readthedocs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readthedocs.yml b/readthedocs.yml index d5cd596..2634b6a 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -10,7 +10,7 @@ sphinx: formats: all python: - version: 3.12 # Just specify the major and minor version, e.g., 3.12 + version: 3.8 # Just specify the major and minor version, e.g., 3.12 install: - method: pip requirements: project_explainer_ui/requirements.txt From d7cd6670cd62407d438d9e056c15b8c6fc184898 Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati <76988460+cxx5208@users.noreply.github.com> Date: Fri, 8 Mar 2024 19:10:30 -0800 Subject: [PATCH 15/30] Update readthedocs.yml --- readthedocs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readthedocs.yml b/readthedocs.yml index 2634b6a..e21eed2 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -10,7 +10,7 @@ sphinx: formats: all python: - version: 3.8 # Just specify the major and minor version, e.g., 3.12 + version: latest # Just specify the major and minor version, e.g., 3.12 install: - method: pip requirements: project_explainer_ui/requirements.txt From 643fad6992074040fa6ca19a051490ac018c3b03 Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati <76988460+cxx5208@users.noreply.github.com> Date: Fri, 8 Mar 2024 19:11:13 -0800 Subject: [PATCH 16/30] Update readthedocs.yml --- readthedocs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readthedocs.yml b/readthedocs.yml index e21eed2..39c5bac 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -10,7 +10,7 @@ sphinx: formats: all python: - version: latest # Just specify the major and minor version, e.g., 3.12 + version: 3 # Just specify the major and minor version, e.g., 3.12 install: - method: pip requirements: project_explainer_ui/requirements.txt From 063193da24f74636ad5be9a30fadc48081a1fb5b Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati <76988460+cxx5208@users.noreply.github.com> Date: Fri, 8 Mar 2024 19:13:02 -0800 Subject: [PATCH 17/30] Update readthedocs.yml --- readthedocs.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/readthedocs.yml b/readthedocs.yml index 39c5bac..4d2236d 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -3,8 +3,7 @@ version: 2 build: os: "ubuntu-20.04" tools: - python: "3.12" - + Node.js: 20 sphinx: configuration: docs/source/conf.py # Ensure this path is correct formats: all From 054585b1ae66be1f6005965712fb0b96fe3e3db8 Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati <76988460+cxx5208@users.noreply.github.com> Date: Fri, 8 Mar 2024 19:14:04 -0800 Subject: [PATCH 18/30] Update readthedocs.yml --- readthedocs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readthedocs.yml b/readthedocs.yml index 4d2236d..1a91fd7 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -3,13 +3,13 @@ version: 2 build: os: "ubuntu-20.04" tools: - Node.js: 20 + python: "latest" sphinx: configuration: docs/source/conf.py # Ensure this path is correct formats: all python: - version: 3 # Just specify the major and minor version, e.g., 3.12 + version: latest # Just specify the major and minor version, e.g., 3.12 install: - method: pip requirements: project_explainer_ui/requirements.txt From 123bdf1b566f12dae8562f9d3698b9f4e918fe1e Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati <76988460+cxx5208@users.noreply.github.com> Date: Fri, 8 Mar 2024 19:14:38 -0800 Subject: [PATCH 19/30] Update readthedocs.yml --- readthedocs.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/readthedocs.yml b/readthedocs.yml index 1a91fd7..d0da825 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -1,5 +1,4 @@ version: 2 - build: os: "ubuntu-20.04" tools: From e354bf252268039c49469d2a372341c329e7edc6 Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati Date: Fri, 8 Mar 2024 19:29:43 -0800 Subject: [PATCH 20/30] 3.10 to 3.12 --- .github/workflows/python-app.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 3f6de99..84cb679 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -19,10 +19,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up Python 3.10 + - name: Set up Python 3.12 uses: actions/setup-python@v3 with: - python-version: "3.10" + python-version: "3.12" - name: Install dependencies run: | python -m pip install --upgrade pip From 8bfe66b17c0d8991733192d6857258eb6c042ad9 Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati <76988460+cxx5208@users.noreply.github.com> Date: Fri, 8 Mar 2024 20:38:52 -0800 Subject: [PATCH 21/30] Update readthedocs.yml --- readthedocs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readthedocs.yml b/readthedocs.yml index d0da825..8bdede5 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -2,13 +2,13 @@ version: 2 build: os: "ubuntu-20.04" tools: - python: "latest" + python: "3.10" sphinx: configuration: docs/source/conf.py # Ensure this path is correct formats: all python: - version: latest # Just specify the major and minor version, e.g., 3.12 + version: 3.10 # Just specify the major and minor version, e.g., 3.12 install: - method: pip requirements: project_explainer_ui/requirements.txt From 6838ad20e4c242af9267052953ba9cd01332e57a Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati Date: Fri, 8 Mar 2024 20:43:26 -0800 Subject: [PATCH 22/30] docs build --- .github/workflows/python-app.yml | 4 ++-- project_explainer_ui/readthedocs.yml | 2 +- readthedocs.yml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 84cb679..3f6de99 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -19,10 +19,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up Python 3.12 + - name: Set up Python 3.10 uses: actions/setup-python@v3 with: - python-version: "3.12" + python-version: "3.10" - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/project_explainer_ui/readthedocs.yml b/project_explainer_ui/readthedocs.yml index f864028..d834fd5 100644 --- a/project_explainer_ui/readthedocs.yml +++ b/project_explainer_ui/readthedocs.yml @@ -2,6 +2,6 @@ version: 2 sphinx: configuration: docs/conf.py python: - version: 3.12.2 + version: 3.10 install: - requirements: project_explainer_ui/requirements.txt diff --git a/readthedocs.yml b/readthedocs.yml index 8bdede5..3e2dff8 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -4,11 +4,11 @@ build: tools: python: "3.10" sphinx: - configuration: docs/source/conf.py # Ensure this path is correct + configuration: docs/source/conf.py formats: all python: - version: 3.10 # Just specify the major and minor version, e.g., 3.12 + version: 3.10 install: - method: pip requirements: project_explainer_ui/requirements.txt From 6cbfdc6361af52053575be284a7f22dc6c3c33ad Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati Date: Fri, 8 Mar 2024 20:46:29 -0800 Subject: [PATCH 23/30] docs build --- readthedocs.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/readthedocs.yml b/readthedocs.yml index 3e2dff8..80c1176 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -1,8 +1,6 @@ version: 2 build: os: "ubuntu-20.04" - tools: - python: "3.10" sphinx: configuration: docs/source/conf.py formats: all From 57618d29f76a0c2f30e6ed9d311c22fc3063d148 Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati Date: Fri, 8 Mar 2024 20:54:49 -0800 Subject: [PATCH 24/30] docs build --- readthedocs.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/readthedocs.yml b/readthedocs.yml index 80c1176..027c0dd 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -1,12 +1,13 @@ version: 2 build: os: "ubuntu-20.04" + tools: + python: "3.10" sphinx: configuration: docs/source/conf.py formats: all python: - version: 3.10 install: - method: pip requirements: project_explainer_ui/requirements.txt From d8795e77313e1c3081d81c862f2862b36961ca60 Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati Date: Fri, 8 Mar 2024 20:56:28 -0800 Subject: [PATCH 25/30] docs build --- readthedocs.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readthedocs.yml b/readthedocs.yml index 027c0dd..60905d4 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -9,5 +9,7 @@ formats: all python: install: + - method: pip + path: . - method: pip requirements: project_explainer_ui/requirements.txt From 1389dff62fc4db691f7deb4446799951b3d1cdd4 Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati Date: Fri, 8 Mar 2024 20:58:52 -0800 Subject: [PATCH 26/30] docs build --- readthedocs.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/readthedocs.yml b/readthedocs.yml index 60905d4..8611fad 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -9,7 +9,6 @@ formats: all python: install: - - method: pip - path: . - method: pip requirements: project_explainer_ui/requirements.txt + From b02397fa13176163dad627f1c960715b86d03e9f Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati Date: Fri, 8 Mar 2024 21:00:10 -0800 Subject: [PATCH 27/30] docs build --- readthedocs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readthedocs.yml b/readthedocs.yml index 8611fad..a208044 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -9,6 +9,6 @@ formats: all python: install: - - method: pip + - method: pip3 requirements: project_explainer_ui/requirements.txt From f4114bca06149d7074f5ed4993916e5bfa49f63d Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati Date: Fri, 8 Mar 2024 21:04:40 -0800 Subject: [PATCH 28/30] docs build --- readthedocs.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/readthedocs.yml b/readthedocs.yml index a208044..dd9bdce 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -1,14 +1,9 @@ version: 2 + build: os: "ubuntu-20.04" tools: - python: "3.10" -sphinx: - configuration: docs/source/conf.py -formats: all - -python: - install: - - method: pip3 - requirements: project_explainer_ui/requirements.txt + python: "3.12" +sphinx: + configuration: docs/source/conf.py \ No newline at end of file From fca8dc80ad47d8e8ac2c7f6fc4cbf65f75cbba3d Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati Date: Fri, 15 Mar 2024 01:07:28 -0700 Subject: [PATCH 29/30] Adding a parser issue resolved --- project_explainer/examples/Project-Explainer | 1 + project_explainer/github_parser.py | 39 ++++++++++++++++++++ project_explainer/requirements.txt | 3 ++ project_explainer/src/gh-explainer | 1 + project_explainer/src/gh-processor | 1 + 5 files changed, 45 insertions(+) create mode 160000 project_explainer/examples/Project-Explainer create mode 100644 project_explainer/github_parser.py create mode 100644 project_explainer/requirements.txt create mode 160000 project_explainer/src/gh-explainer create mode 160000 project_explainer/src/gh-processor diff --git a/project_explainer/examples/Project-Explainer b/project_explainer/examples/Project-Explainer new file mode 160000 index 0000000..3af0213 --- /dev/null +++ b/project_explainer/examples/Project-Explainer @@ -0,0 +1 @@ +Subproject commit 3af0213bf6f52afdb8e99a58fac061e87505c143 diff --git a/project_explainer/github_parser.py b/project_explainer/github_parser.py new file mode 100644 index 0000000..cfaf9ef --- /dev/null +++ b/project_explainer/github_parser.py @@ -0,0 +1,39 @@ +from github import Github +import os + +# Initialize a Github instance with an access token +g = Github(os.getenv('GITHUB_TOKEN')) + +def get_repo_info(repo_name): + repo = g.get_repo(repo_name) + + # Fetching repository metadata + stars = repo.stargazers_count + forks = repo.forks_count + contributors = repo.get_contributors().totalCount + + print(f"Stars: {stars}, Forks: {forks}, Contributors: {contributors}") + +def parse_issues(repo_name): + repo = g.get_repo(repo_name) + issues = repo.get_issues(state='open') + + print("\nOpen Issues:") + for issue in issues: + print(f"- {issue.title}: {issue.html_url}") + +def parse_pull_requests(repo_name): + repo = g.get_repo(repo_name) + pull_requests = repo.get_pulls(state='open', sort='created') + + print("\nOpen Pull Requests:") + for pr in pull_requests: + print(f"- {pr.title}: {pr.html_url}") + +if __name__ == "__main__": + repo_name = "c2siorg/Project-Explainer" + + print(f"Fetching information for {repo_name}") + get_repo_info(repo_name) + parse_issues(repo_name) + parse_pull_requests(repo_name) diff --git a/project_explainer/requirements.txt b/project_explainer/requirements.txt new file mode 100644 index 0000000..4ff1921 --- /dev/null +++ b/project_explainer/requirements.txt @@ -0,0 +1,3 @@ +gradio +-e git+https://github.com/c2siorg/Project-Explainer.git@main#subdirectory=project_explainer&egg=gh_explainer&egg=gh_explainer +-e git+https://github.com/c2siorg/Project-Explainer.git@main#subdirectory=project_processor&egg=gh_processor \ No newline at end of file diff --git a/project_explainer/src/gh-explainer b/project_explainer/src/gh-explainer new file mode 160000 index 0000000..3af0213 --- /dev/null +++ b/project_explainer/src/gh-explainer @@ -0,0 +1 @@ +Subproject commit 3af0213bf6f52afdb8e99a58fac061e87505c143 diff --git a/project_explainer/src/gh-processor b/project_explainer/src/gh-processor new file mode 160000 index 0000000..3af0213 --- /dev/null +++ b/project_explainer/src/gh-processor @@ -0,0 +1 @@ +Subproject commit 3af0213bf6f52afdb8e99a58fac061e87505c143 From dd4ee5a02104b7fed11a7fe0d6705a8754aaccc8 Mon Sep 17 00:00:00 2001 From: Yeshvanth Raju Kurapati Date: Fri, 15 Mar 2024 01:26:32 -0700 Subject: [PATCH 30/30] Handling errors issue resolved --- .../Grey-Scale-Image-Colorization | 1 - project_explainer_ui/core-js | 1 + project_explainer_ui/flagged/log.csv | 2 -- project_explainer_ui/ui.py | 15 +++++++++++---- 4 files changed, 12 insertions(+), 7 deletions(-) delete mode 160000 project_explainer_ui/Grey-Scale-Image-Colorization create mode 160000 project_explainer_ui/core-js delete mode 100644 project_explainer_ui/flagged/log.csv diff --git a/project_explainer_ui/Grey-Scale-Image-Colorization b/project_explainer_ui/Grey-Scale-Image-Colorization deleted file mode 160000 index e950adc..0000000 --- a/project_explainer_ui/Grey-Scale-Image-Colorization +++ /dev/null @@ -1 +0,0 @@ -Subproject commit e950adcfb7cb4bf715aa1b170d0a259456756b26 diff --git a/project_explainer_ui/core-js b/project_explainer_ui/core-js new file mode 160000 index 0000000..c3fc79f --- /dev/null +++ b/project_explainer_ui/core-js @@ -0,0 +1 @@ +Subproject commit c3fc79fe3499cdae9282a1e35bc771965bb0d60f diff --git a/project_explainer_ui/flagged/log.csv b/project_explainer_ui/flagged/log.csv deleted file mode 100644 index c432c58..0000000 --- a/project_explainer_ui/flagged/log.csv +++ /dev/null @@ -1,2 +0,0 @@ -summary level,github_project_url,github_project_branch,huggingface_model_id,output,flag,username,timestamp -brief,https://github.com/ahmedshahriar/eda_basketball,main,gpt2,,,,2024-03-08 11:52:20.215384 diff --git a/project_explainer_ui/ui.py b/project_explainer_ui/ui.py index a836666..52be1f9 100644 --- a/project_explainer_ui/ui.py +++ b/project_explainer_ui/ui.py @@ -1,11 +1,18 @@ import gradio as gr from gh_explainer import Explainer + + def summarize(summarization_type, github_project_url, github_project_branch="main", huggingface_model_id="gpt2"): - gptExplainer = Explainer(huggingface_model_id) - if summarization_type == "brief": - return gptExplainer.brief(github_url=github_project_url, branch=github_project_branch)["summary"] - return gptExplainer.outline(github_url=github_project_url, branch=github_project_branch)["summary"] + try: + gptExplainer = Explainer(huggingface_model_id) + if summarization_type == "brief": + return gptExplainer.brief(github_url=github_project_url, branch=github_project_branch)["summary"] + return gptExplainer.outline(github_url=github_project_url, branch=github_project_branch)["summary"] + except Exception as e: + return f"An error occurred: {str(e)}" + + demo = gr.Interface( fn=summarize,