{ "cells": [ { "cell_type": "code", "execution_count": null, "id": "ebb1428f6428646", "metadata": {}, "outputs": [], "source": [ "%pip install pandas\n" ] }, { "cell_type": "code", "execution_count": 7, "id": "b8b55c9e96c43bc3", "metadata": { "ExecuteTime": { "end_time": "2024-05-07T11:57:54.752360Z", "start_time": "2024-05-07T11:57:51.973091Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Requirement already satisfied: python-dotenv in /home/marius/miniconda3/envs/llm_langchain/lib/python3.11/site-packages (1.0.1)\r\n", "Note: you may need to restart the kernel to use updated packages.\n" ] } ], "source": [ "%pip install python-dotenv" ] }, { "cell_type": "code", "execution_count": 53, "id": "b68da291930fbf4", "metadata": { "ExecuteTime": { "end_time": "2024-05-07T16:43:17.166579Z", "start_time": "2024-05-07T16:43:12.783177Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Collecting PyGithub\r\n", " Downloading PyGithub-2.3.0-py3-none-any.whl.metadata (3.8 kB)\r\n", "Collecting pynacl>=1.4.0 (from PyGithub)\r\n", " Using cached PyNaCl-1.5.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl.metadata (8.6 kB)\r\n", "Requirement already satisfied: requests>=2.14.0 in /home/marius/miniconda3/envs/llm_langchain/lib/python3.11/site-packages (from PyGithub) (2.31.0)\r\n", "Collecting pyjwt>=2.4.0 (from pyjwt[crypto]>=2.4.0->PyGithub)\r\n", " Downloading PyJWT-2.8.0-py3-none-any.whl.metadata (4.2 kB)\r\n", "Requirement already satisfied: typing-extensions>=4.0.0 in /home/marius/miniconda3/envs/llm_langchain/lib/python3.11/site-packages (from PyGithub) (4.10.0)\r\n", "Requirement already satisfied: urllib3>=1.26.0 in /home/marius/miniconda3/envs/llm_langchain/lib/python3.11/site-packages (from PyGithub) (2.2.1)\r\n", "Requirement already satisfied: Deprecated in /home/marius/miniconda3/envs/llm_langchain/lib/python3.11/site-packages (from PyGithub) (1.2.14)\r\n", "Requirement already satisfied: cryptography>=3.4.0 in /home/marius/miniconda3/envs/llm_langchain/lib/python3.11/site-packages (from pyjwt[crypto]>=2.4.0->PyGithub) (42.0.5)\r\n", "Requirement already satisfied: cffi>=1.4.1 in /home/marius/miniconda3/envs/llm_langchain/lib/python3.11/site-packages (from pynacl>=1.4.0->PyGithub) (1.16.0)\r\n", "Requirement already satisfied: charset-normalizer<4,>=2 in /home/marius/miniconda3/envs/llm_langchain/lib/python3.11/site-packages (from requests>=2.14.0->PyGithub) (3.3.2)\r\n", "Requirement already satisfied: idna<4,>=2.5 in /home/marius/miniconda3/envs/llm_langchain/lib/python3.11/site-packages (from requests>=2.14.0->PyGithub) (3.6)\r\n", "Requirement already satisfied: certifi>=2017.4.17 in /home/marius/miniconda3/envs/llm_langchain/lib/python3.11/site-packages (from requests>=2.14.0->PyGithub) (2024.2.2)\r\n", "Requirement already satisfied: wrapt<2,>=1.10 in /home/marius/miniconda3/envs/llm_langchain/lib/python3.11/site-packages (from Deprecated->PyGithub) (1.16.0)\r\n", "Requirement already satisfied: pycparser in /home/marius/miniconda3/envs/llm_langchain/lib/python3.11/site-packages (from cffi>=1.4.1->pynacl>=1.4.0->PyGithub) (2.21)\r\n", "Downloading PyGithub-2.3.0-py3-none-any.whl (354 kB)\r\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m354.4/354.4 kB\u001b[0m \u001b[31m3.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m:00:01\u001b[0m\r\n", "\u001b[?25hDownloading PyJWT-2.8.0-py3-none-any.whl (22 kB)\r\n", "Downloading PyNaCl-1.5.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (856 kB)\r\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m856.7/856.7 kB\u001b[0m \u001b[31m11.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m\r\n", "\u001b[?25hInstalling collected packages: pyjwt, pynacl, PyGithub\r\n", "Successfully installed PyGithub-2.3.0 pyjwt-2.8.0 pynacl-1.5.0\r\n", "Note: you may need to restart the kernel to use updated packages.\n" ] } ], "source": [ "%pip install PyGithub\n" ] }, { "cell_type": "code", "execution_count": 2, "id": "68cdc5d497e208e3", "metadata": { "ExecuteTime": { "end_time": "2024-05-11T16:18:46.000392Z", "start_time": "2024-05-11T16:18:45.992401Z" } }, "outputs": [], "source": [ "from dotenv import load_dotenv\n", "import os\n", "\n", "load_dotenv(\"thesis_env_ro\", verbose=True) # take environment variables from the file\n", "token = os.getenv('GITHUB_PERSONAL_ACCESS_TOKEN')" ] }, { "cell_type": "code", "execution_count": 7, "id": "1069e0bfa4686f67", "metadata": { "ExecuteTime": { "end_time": "2024-05-11T16:23:55.511058Z", "start_time": "2024-05-11T16:23:23.511924Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "https://api.github.com/repos/norandom/log2ml/releases/assets/166259205\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "7d46bf8efe9e4e0591950e029c353573", "version_major": 2, "version_minor": 0 }, "text/plain": [ " 0%| | 0.00/1.90G [00:00=1.23.2 in /home/marius/miniconda3/envs/llm_langchain/lib/python3.11/site-packages (from pandas) (1.26.4)\r\n", "Requirement already satisfied: python-dateutil>=2.8.2 in /home/marius/miniconda3/envs/llm_langchain/lib/python3.11/site-packages (from pandas) (2.9.0)\r\n", "Requirement already satisfied: pytz>=2020.1 in /home/marius/miniconda3/envs/llm_langchain/lib/python3.11/site-packages (from pandas) (2024.1)\r\n", "Collecting tzdata>=2022.7 (from pandas)\r\n", " Using cached tzdata-2024.1-py2.py3-none-any.whl.metadata (1.4 kB)\r\n", "Requirement already satisfied: six>=1.5 in /home/marius/miniconda3/envs/llm_langchain/lib/python3.11/site-packages (from python-dateutil>=2.8.2->pandas) (1.16.0)\r\n", "Downloading pandas-2.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.0 MB)\r\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m13.0/13.0 MB\u001b[0m \u001b[31m26.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m:00:01\u001b[0m00:01\u001b[0m\r\n", "\u001b[?25hUsing cached tzdata-2024.1-py2.py3-none-any.whl (345 kB)\r\n", "Installing collected packages: tzdata, pandas\r\n", "Successfully installed pandas-2.2.2 tzdata-2024.1\r\n", "Note: you may need to restart the kernel to use updated packages.\n" ] } ], "source": [] }, { "cell_type": "code", "execution_count": null, "id": "4dda90a02f3fb809", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", "version": "2.7.6" } }, "nbformat": 4, "nbformat_minor": 5 }