lyleokoth commited on
Commit
353a4d5
1 Parent(s): 7b97247

Upload 19 files

Browse files
0145fe84-45e3-4964-ad59-89080d7deeb4.png ADDED

Git LFS Details

  • SHA256: 1b84118ff1660ef719b89f6cfe439fb51abce7a8b22c3317e097ed5dec10a909
  • Pointer size: 131 Bytes
  • Size of remote file: 114 kB
056a922f-9935-41ec-a19d-e88ac2b3dedf.png ADDED

Git LFS Details

  • SHA256: ba3b1bdbc37e5a0a059bbd19e3bb7a0a1547a7a210e1f02c1f1d1f4a38d43638
  • Pointer size: 130 Bytes
  • Size of remote file: 12.6 kB
1d92385c-c480-4cb5-97b9-8923d1f7c96b.png ADDED

Git LFS Details

  • SHA256: 1836750ab7813ea2dd8d08fe9f0e964d8db13e4f1371b76f8e16b1b5a03c273a
  • Pointer size: 131 Bytes
  • Size of remote file: 114 kB
30ebded6-e78f-4bb3-a56e-b360c999ae33.png ADDED

Git LFS Details

  • SHA256: 162c2898367a5fb8ce14f70d82838cc63f337c5f327d27951c1522b775088add
  • Pointer size: 130 Bytes
  • Size of remote file: 13.9 kB
38df21bb-e265-4983-8c8d-7b83261b576d.png ADDED

Git LFS Details

  • SHA256: 7b89e54e9ce95520bfb83bd56cc7711197b9f63df28ed5cf26363825fb658cdf
  • Pointer size: 131 Bytes
  • Size of remote file: 119 kB
4cfc2840-b1d8-48d7-9999-964f9b6b56db.png ADDED

Git LFS Details

  • SHA256: 8536383ee0576c21087ecda6728d02c276eb0042803a4a16ee1e6939032825d1
  • Pointer size: 130 Bytes
  • Size of remote file: 84.8 kB
52d8b951-05f5-4fb3-8c6f-1b9247cc593e.png ADDED

Git LFS Details

  • SHA256: 2722c6101eab205f1c51d7f1194e54616bab1000ae2adf17d4ccfd80195f4249
  • Pointer size: 130 Bytes
  • Size of remote file: 12.5 kB
6b99fd2e-b8b3-4c53-81b0-82f80b9144ef.png ADDED

Git LFS Details

  • SHA256: e1a82b3baa6cd43448e4d5531f30a682afad7c5f64155e9ba2d3446e78824a20
  • Pointer size: 131 Bytes
  • Size of remote file: 114 kB
74cc494a-5078-4541-a73e-0def9ceafc6f.png ADDED

Git LFS Details

  • SHA256: cce06b32a361ce8dd91789c1bad43626132b8920b7b5eab34aa1c0eba8eacfa8
  • Pointer size: 130 Bytes
  • Size of remote file: 13.8 kB
7e224822-0da1-4564-b122-fbe8f37fb667.png ADDED

Git LFS Details

  • SHA256: 9176386fb4ec1fab56f4a044d7080b954be6dca92987bbfe29032dfa4397bb21
  • Pointer size: 131 Bytes
  • Size of remote file: 201 kB
7ec0c3b7-b2df-4aca-89f3-e2bfeef30b17.png ADDED

Git LFS Details

  • SHA256: e64263c354fecd7d959b3b04d725cf461a843eec086bcae96b8e7215dc7ea4d3
  • Pointer size: 131 Bytes
  • Size of remote file: 113 kB
971e49b9-8c03-4ef7-9f9b-7b79ad73c251.png ADDED

Git LFS Details

  • SHA256: b241e9da64ac6ed0bbb8168c4ef89b26389a6ef95105e63f0acb48c972a37313
  • Pointer size: 130 Bytes
  • Size of remote file: 85.1 kB
b10574d0-3cb1-441b-8c66-646a95c809d9.png ADDED

Git LFS Details

  • SHA256: 62106be4b7b0543d3f54e61648f0a5daddd83f35431a36028b0d359219ed35ee
  • Pointer size: 130 Bytes
  • Size of remote file: 91.2 kB
b17045cb-7ae3-4c58-8eb8-cb1950b7a2d1.png ADDED

Git LFS Details

  • SHA256: 4ca84619814ad0cc87fcec0d9150eb61257936119101ee524ed066d9b1d30796
  • Pointer size: 130 Bytes
  • Size of remote file: 88.4 kB
b255d394-3d8c-4b61-9f1d-10e342d9f07e.png ADDED

Git LFS Details

  • SHA256: 4d883cbd4c68e24cc63c3c752789ace84be605077b95ca21408fb34a2ff81dd8
  • Pointer size: 131 Bytes
  • Size of remote file: 208 kB
cfca1fe7-c0e3-4b45-af86-cad8c684fb7b.png ADDED

Git LFS Details

  • SHA256: d1722a8dd1e07acf9cc46bb1d15bfb81e2b8dcbd0622b5b00d16a9f3b42c4c56
  • Pointer size: 131 Bytes
  • Size of remote file: 217 kB
dd473992-bb17-4782-809f-84b659fc912f.png ADDED

Git LFS Details

  • SHA256: 7363d280c67e47099199ca6663e3c2649945f7f30c18c4a180576b4911d07351
  • Pointer size: 129 Bytes
  • Size of remote file: 4.34 kB
fb7f8f8f-4bdd-4332-a4a1-b6575ce00224.png ADDED

Git LFS Details

  • SHA256: 383de0f404cdc4d25e2a7a56fd93c6fda613066d29186dfd87cc181d2b7e2a4c
  • Pointer size: 131 Bytes
  • Size of remote file: 201 kB
metadata.jsonl ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"file_name": "0145fe84-45e3-4964-ad59-89080d7deeb4.png", "messages": [{"role": "SYSTEM", "content": "You are a helpful assistant that knows how to extract python code from images."}, {"role": "USER", "content": "Extract python code from the given image."}, {"role": "ASSISTANT", "content": "def generate_class_docstring(class_code: str, config: Config) -> str:\r\n prompt_formatted_str: str = get_class_prompt_template(\r\n class_code=class_code, config=config\r\n )\r\n class_and_docstring = llm.invoke(prompt_formatted_str)\r\n return class_and_docstring\r\n\r\n\r\ndef get_class_docstring(class_and_docstring: str) -> str:\r\n \"\"\"Get the class docstring.\"\"\"\r\n class_tree = ast.parse(class_and_docstring)\r\n for node in class_tree.body:\r\n if isinstance(node, ClassDef):\r\n cls_docstring: str = ast.get_docstring(node)\r\n return cls_docstring"}]}
2
+ {"file_name": "6b99fd2e-b8b3-4c53-81b0-82f80b9144ef.png", "messages": [{"role": "SYSTEM", "content": "You are a helpful assistant that knows how to extract python code from images."}, {"role": "USER", "content": "Extract python code from the given image."}, {"role": "ASSISTANT", "content": "import os\r\nfrom .config import Config\r\nfrom flask import Flask\r\n\r\n\r\ndef set_configuration(app: Flask):\r\n \"\"\"Set the application configuration.\r\n\r\n The application configuration will depend on the\r\n environment i.e Test, Development, Staging or Production.\r\n\r\n Parameters\r\n ----------\r\n app: flask.Flask\r\n A flask app instance\r\n\r\n Returns\r\n -------\r\n bool:\r\n Whether the config was set up successfully.\r\n \"\"\"\r\n config_name = os.environ.get(\"FLASK_ENV\")\r\n app.config.from_object(Config[config_name])\r\n\r\n return True"}]}
3
+ {"file_name": "1d92385c-c480-4cb5-97b9-8923d1f7c96b.png", "messages": [{"role": "SYSTEM", "content": "You are a helpful assistant that knows how to extract python code from images."}, {"role": "USER", "content": "Extract python code from the given image."}, {"role": "ASSISTANT", "content": "import os\r\nfrom .config import Config\r\nfrom flask import Flask\r\n\r\n\r\ndef set_configuration(app: Flask):\r\n \"\"\"Set the application configuration.\r\n\r\n The application configuration will depend on the\r\n environment i.e Test, Development, Staging or Production.\r\n\r\n Parameters\r\n ----------\r\n app: flask.Flask\r\n A flask app instance\r\n\r\n Returns\r\n -------\r\n bool:\r\n Whether the config was set up successfully.\r\n \"\"\"\r\n config_name = os.environ.get(\"FLASK_ENV\")\r\n app.config.from_object(Config[config_name])\r\n\r\n return True"}]}
4
+ {"file_name": "7ec0c3b7-b2df-4aca-89f3-e2bfeef30b17.png", "messages": [{"role": "SYSTEM", "content": "You are a helpful assistant that knows how to extract python code from images."}, {"role": "USER", "content": "Extract python code from the given image."}, {"role": "ASSISTANT", "content": "import os\r\nfrom .config import Config\r\nfrom flask import Flask\r\n\r\n\r\ndef set_configuration(app: Flask):\r\n \"\"\"Set the application configuration.\r\n\r\n The application configuration will depend on the\r\n environment i.e Test, Development, Staging or Production.\r\n\r\n Parameters\r\n ----------\r\n app: flask.Flask\r\n A flask app instance\r\n\r\n Returns\r\n -------\r\n bool:\r\n Whether the config was set up successfully.\r\n \"\"\"\r\n config_name = os.environ.get(\"FLASK_ENV\")\r\n app.config.from_object(Config[config_name])\r\n\r\n return True"}]}
5
+ {"file_name": "dd473992-bb17-4782-809f-84b659fc912f.png", "messages": [{"role": "SYSTEM", "content": "You are a helpful assistant that knows how to extract python code from images."}, {"role": "USER", "content": "Extract python code from the given image."}, {"role": "ASSISTANT", "content": "\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"}]}
6
+ {"file_name": "38df21bb-e265-4983-8c8d-7b83261b576d.png", "messages": [{"role": "SYSTEM", "content": "You are a helpful assistant that knows how to extract python code from images."}, {"role": "USER", "content": "Extract python code from the given image."}, {"role": "ASSISTANT", "content": "import os\r\nfrom .config import Config\r\nfrom flask import Flask\r\n\r\n\r\ndef set_configuration(app: Flask):\r\n \"\"\"Set the application configuration.\r\n\r\n The application configuration will depend on the\r\n environment i.e Test, Development, Staging or Production.\r\n\r\n Parameters\r\n ----------\r\n app: flask.Flask\r\n A flask app instance\r\n\r\n Returns\r\n -------\r\n bool:\r\n Whether the config was set up successfully.\r\n \"\"\"\r\n config_name = os.environ.get(\"FLASK_ENV\")\r\n app.config.from_object(Config[config_name])\r\n\r\n return True"}]}
7
+ {"file_name": "74cc494a-5078-4541-a73e-0def9ceafc6f.png", "messages": [{"role": "SYSTEM", "content": "You are a helpful assistant that knows how to extract python code from images."}, {"role": "USER", "content": "Extract python code from the given image."}, {"role": "ASSISTANT", "content": "from .set_config import set_configuration"}]}
8
+ {"file_name": "056a922f-9935-41ec-a19d-e88ac2b3dedf.png", "messages": [{"role": "SYSTEM", "content": "You are a helpful assistant that knows how to extract python code from images."}, {"role": "USER", "content": "Extract python code from the given image."}, {"role": "ASSISTANT", "content": "from .set_config import set_configuration"}]}
9
+ {"file_name": "52d8b951-05f5-4fb3-8c6f-1b9247cc593e.png", "messages": [{"role": "SYSTEM", "content": "You are a helpful assistant that knows how to extract python code from images."}, {"role": "USER", "content": "Extract python code from the given image."}, {"role": "ASSISTANT", "content": "from .set_config import set_configuration"}]}
10
+ {"file_name": "30ebded6-e78f-4bb3-a56e-b360c999ae33.png", "messages": [{"role": "SYSTEM", "content": "You are a helpful assistant that knows how to extract python code from images."}, {"role": "USER", "content": "Extract python code from the given image."}, {"role": "ASSISTANT", "content": "from .set_config import set_configuration"}]}
11
+ {"file_name": "b255d394-3d8c-4b61-9f1d-10e342d9f07e.png", "messages": [{"role": "SYSTEM", "content": "You are a helpful assistant that knows how to extract python code from images."}, {"role": "USER", "content": "Extract python code from the given image."}, {"role": "ASSISTANT", "content": "\"\"\"This module declares the app configuration.\r\n\r\nThe classes include:\r\n\r\nBaseConfig:\r\n Has all the configurations shared by all the environments.\r\n\r\n\"\"\"\r\nimport os\r\n\r\nfrom dotenv import load_dotenv\r\n\r\nload_dotenv()\r\n\r\n\r\nclass BaseConfig:\r\n \"\"\"Base configuration.\"\"\"\r\n\r\n DEBUG = True\r\n TESTING = False\r\n SECRET_KEY = os.environ.get(\r\n \"SECRET_KEY\", \"df0331cefc6c2b9a5d0208a726a5d1c0fd37324feba25506\"\r\n )\r\n\r\n\r\nclass DevelopmentConfig(BaseConfig):\r\n \"\"\"Development confuguration.\"\"\"\r\n\r\n DEBUG = True\r\n TESTING = False\r\n SECRET_KEY = os.environ.get(\r\n \"SECRET_KEY\", \"df0331cefc6c2b9a5d0208a726a5d1c0fd37324feba25506\"\r\n )\r\n\r\n\r\nclass TestingConfig(BaseConfig):\r\n \"\"\"Testing configuration.\"\"\"\r\n\r\n TESTING = True\r\n SECRET_KEY = os.environ.get(\"SECRET_KEY\", \"secret-key\")"}]}
12
+ {"file_name": "7e224822-0da1-4564-b122-fbe8f37fb667.png", "messages": [{"role": "SYSTEM", "content": "You are a helpful assistant that knows how to extract python code from images."}, {"role": "USER", "content": "Extract python code from the given image."}, {"role": "ASSISTANT", "content": "\"\"\"This module declares the app configuration.\r\n\r\nThe classes include:\r\n\r\nBaseConfig:\r\n Has all the configurations shared by all the environments.\r\n\r\n\"\"\"\r\nimport os\r\n\r\nfrom dotenv import load_dotenv\r\n\r\nload_dotenv()\r\n\r\n\r\nclass BaseConfig:\r\n \"\"\"Base configuration.\"\"\"\r\n\r\n DEBUG = True\r\n TESTING = False\r\n SECRET_KEY = os.environ.get(\r\n \"SECRET_KEY\", \"df0331cefc6c2b9a5d0208a726a5d1c0fd37324feba25506\"\r\n )\r\n\r\n\r\nclass DevelopmentConfig(BaseConfig):\r\n \"\"\"Development confuguration.\"\"\"\r\n\r\n DEBUG = True\r\n TESTING = False\r\n SECRET_KEY = os.environ.get(\r\n \"SECRET_KEY\", \"df0331cefc6c2b9a5d0208a726a5d1c0fd37324feba25506\"\r\n )\r\n\r\n\r\nclass TestingConfig(BaseConfig):\r\n \"\"\"Testing configuration.\"\"\"\r\n\r\n TESTING = True\r\n SECRET_KEY = os.environ.get(\"SECRET_KEY\", \"secret-key\")"}]}
13
+ {"file_name": "fb7f8f8f-4bdd-4332-a4a1-b6575ce00224.png", "messages": [{"role": "SYSTEM", "content": "You are a helpful assistant that knows how to extract python code from images."}, {"role": "USER", "content": "Extract python code from the given image."}, {"role": "ASSISTANT", "content": "\"\"\"This module declares the app configuration.\r\n\r\nThe classes include:\r\n\r\nBaseConfig:\r\n Has all the configurations shared by all the environments.\r\n\r\n\"\"\"\r\nimport os\r\n\r\nfrom dotenv import load_dotenv\r\n\r\nload_dotenv()\r\n\r\n\r\nclass BaseConfig:\r\n \"\"\"Base configuration.\"\"\"\r\n\r\n DEBUG = True\r\n TESTING = False\r\n SECRET_KEY = os.environ.get(\r\n \"SECRET_KEY\", \"df0331cefc6c2b9a5d0208a726a5d1c0fd37324feba25506\"\r\n )\r\n\r\n\r\nclass DevelopmentConfig(BaseConfig):\r\n \"\"\"Development confuguration.\"\"\"\r\n\r\n DEBUG = True\r\n TESTING = False\r\n SECRET_KEY = os.environ.get(\r\n \"SECRET_KEY\", \"df0331cefc6c2b9a5d0208a726a5d1c0fd37324feba25506\"\r\n )\r\n\r\n\r\nclass TestingConfig(BaseConfig):\r\n \"\"\"Testing configuration.\"\"\"\r\n\r\n TESTING = True\r\n SECRET_KEY = os.environ.get(\"SECRET_KEY\", \"secret-key\")"}]}
14
+ {"file_name": "cfca1fe7-c0e3-4b45-af86-cad8c684fb7b.png", "messages": [{"role": "SYSTEM", "content": "You are a helpful assistant that knows how to extract python code from images."}, {"role": "USER", "content": "Extract python code from the given image."}, {"role": "ASSISTANT", "content": "\"\"\"This module declares the app configuration.\r\n\r\nThe classes include:\r\n\r\nBaseConfig:\r\n Has all the configurations shared by all the environments.\r\n\r\n\"\"\"\r\nimport os\r\n\r\nfrom dotenv import load_dotenv\r\n\r\nload_dotenv()\r\n\r\n\r\nclass BaseConfig:\r\n \"\"\"Base configuration.\"\"\"\r\n\r\n DEBUG = True\r\n TESTING = False\r\n SECRET_KEY = os.environ.get(\r\n \"SECRET_KEY\", \"df0331cefc6c2b9a5d0208a726a5d1c0fd37324feba25506\"\r\n )\r\n\r\n\r\nclass DevelopmentConfig(BaseConfig):\r\n \"\"\"Development confuguration.\"\"\"\r\n\r\n DEBUG = True\r\n TESTING = False\r\n SECRET_KEY = os.environ.get(\r\n \"SECRET_KEY\", \"df0331cefc6c2b9a5d0208a726a5d1c0fd37324feba25506\"\r\n )\r\n\r\n\r\nclass TestingConfig(BaseConfig):\r\n \"\"\"Testing configuration.\"\"\"\r\n\r\n TESTING = True\r\n SECRET_KEY = os.environ.get(\"SECRET_KEY\", \"secret-key\")"}]}
15
+ {"file_name": "b17045cb-7ae3-4c58-8eb8-cb1950b7a2d1.png", "messages": [{"role": "SYSTEM", "content": "You are a helpful assistant that knows how to extract python code from images."}, {"role": "USER", "content": "Extract python code from the given image."}, {"role": "ASSISTANT", "content": "\r\n\r\nclass ProductionConfig(BaseConfig):\r\n \"\"\"Production configuration.\"\"\"\r\n\r\n TESTING = False\r\n SECRET_KEY = os.environ.get(\"SECRET_KEY\", \"secret-key\")\r\n\r\n\r\nConfig = {\r\n \"development\": DevelopmentConfig,\r\n \"test\": TestingConfig,\r\n \"production\": ProductionConfig,\r\n \"staging\": ProductionConfig,\r\n}\r\n"}]}
16
+ {"file_name": "971e49b9-8c03-4ef7-9f9b-7b79ad73c251.png", "messages": [{"role": "SYSTEM", "content": "You are a helpful assistant that knows how to extract python code from images."}, {"role": "USER", "content": "Extract python code from the given image."}, {"role": "ASSISTANT", "content": "\r\n\r\nclass ProductionConfig(BaseConfig):\r\n \"\"\"Production configuration.\"\"\"\r\n\r\n TESTING = False\r\n SECRET_KEY = os.environ.get(\"SECRET_KEY\", \"secret-key\")\r\n\r\n\r\nConfig = {\r\n \"development\": DevelopmentConfig,\r\n \"test\": TestingConfig,\r\n \"production\": ProductionConfig,\r\n \"staging\": ProductionConfig,\r\n}\r\n"}]}
17
+ {"file_name": "4cfc2840-b1d8-48d7-9999-964f9b6b56db.png", "messages": [{"role": "SYSTEM", "content": "You are a helpful assistant that knows how to extract python code from images."}, {"role": "USER", "content": "Extract python code from the given image."}, {"role": "ASSISTANT", "content": "\r\n\r\nclass ProductionConfig(BaseConfig):\r\n \"\"\"Production configuration.\"\"\"\r\n\r\n TESTING = False\r\n SECRET_KEY = os.environ.get(\"SECRET_KEY\", \"secret-key\")\r\n\r\n\r\nConfig = {\r\n \"development\": DevelopmentConfig,\r\n \"test\": TestingConfig,\r\n \"production\": ProductionConfig,\r\n \"staging\": ProductionConfig,\r\n}\r\n"}]}
18
+ {"file_name": "b10574d0-3cb1-441b-8c66-646a95c809d9.png", "messages": [{"role": "SYSTEM", "content": "You are a helpful assistant that knows how to extract python code from images."}, {"role": "USER", "content": "Extract python code from the given image."}, {"role": "ASSISTANT", "content": "\r\n\r\nclass ProductionConfig(BaseConfig):\r\n \"\"\"Production configuration.\"\"\"\r\n\r\n TESTING = False\r\n SECRET_KEY = os.environ.get(\"SECRET_KEY\", \"secret-key\")\r\n\r\n\r\nConfig = {\r\n \"development\": DevelopmentConfig,\r\n \"test\": TestingConfig,\r\n \"production\": ProductionConfig,\r\n \"staging\": ProductionConfig,\r\n}\r\n"}]}