From a699ad66b1d7513d94dbadb301965470f984fb59 Mon Sep 17 00:00:00 2001 From: Matt Allen Date: Sun, 15 Sep 2024 16:54:09 -0500 Subject: [PATCH 1/2] Add pages deployment --- .github/workflows/python-app.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index ed6d0d1..50d7594 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -11,6 +11,12 @@ on: permissions: contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false jobs: build: @@ -43,3 +49,12 @@ jobs: - uses: actions/upload-pages-artifact@v3.0.1 with: path: build/ + + deploy: + needs: build + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 From b64e5b8e678445a5aa9d37bad9f841ce27657404 Mon Sep 17 00:00:00 2001 From: Aaron Sanchez <147529595+aarosan@users.noreply.github.com> Date: Mon, 23 Sep 2024 19:25:50 -0500 Subject: [PATCH 2/2] Mermaid Visualization of Parser Logic (#155) Co-authored-by: aaron-ross-sanchez <147529595+aaron-ross-sanchez@users.noreply.github.com> --- src/parser/README.md | 86 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 src/parser/README.md diff --git a/src/parser/README.md b/src/parser/README.md new file mode 100644 index 0000000..606da3e --- /dev/null +++ b/src/parser/README.md @@ -0,0 +1,86 @@ +```mermaid +graph TD + subgraph Parsing + A[Start Parsing] --> B([configure_logger]) + B --> C[Store county] + C --> D([get_directories]) + D --> E[Start Timer] + E --> F([get_list_of_html]) + F --> G{for case_html_file_path
in case_html_list} + G --> H[Store case_number] + H --> I([get_class_and_method]) + I --> J{{if parser_instance and
parser_function is not None}} + J --> L([parser_function]) + I --> K{{else: THROW ERROR}} + DD --> M([write_json_data]) + K --> M([write_json_data]) + L --> AA[Start Parsing
Specific County] + AA --> BB[Create root_tables] + BB --> CC([get_case_metadata]) + CC --> DD{for table in root_tables} + DD --> EE{{if Case Type and Date Filed}} + EE -- True --> JJ([get_case_details]) + EE --> FF{{elif Related Case}} + FF -- True --> KK[Store
case_data#91;Related Cases#93;] + FF --> GG{{elif Party Information}} + GG -- True --> LL([parse_defendant_rows#40;
extract_rows#40;#41;#41;]) + LL --> MM([parse_state_rows#40;
extract_rows#40;#41;#41;]) + GG --> HH{{elif Charge Information}} + HH -- True --> NN([get_charge_information]) + HH --> II{{elif Events & Orders of
the Court}} + II --> DD + II -- True --> OO([format_events_and_
orders_of_the_court]) + OO --> PP{for row
in disposition_rows:} + PP --> QQ([get_disposition_information]) + QQ --> PP + PP --> RR{{if case_data#91;Disposition
Information#93;}} + RR -- True --> SS([get_top_charge]) + RR --> II + SS --> TT([count_dismissed_charges]) + + + end + M --> Y + G --> Y[End Timer] + Y --> Z[End Parsing] + + style A fill:#66A182,stroke:#333,stroke-width:4px,color:#FFF + style B fill:#9A7FAE,stroke:#333,stroke-width:2px,color:#FFF + style C fill:#D99559,stroke:#333,stroke-width:2px,color:#FFF + style D fill:#9A7FAE,stroke:#333,stroke-width:2px,color:#FFF + style E fill:#66A182,stroke:#333,stroke-width:4px,color:#FFF + style F fill:#9A7FAE,stroke:#333,stroke-width:2px,color:#FFF + style G fill:#779ECB,stroke:#333,stroke-width:4px,color:#FFF + style H fill:#D99559,stroke:#333,stroke-width:2px,color:#FFF + style I fill:#9A7FAE,stroke:#333,stroke-width:2px,color:#FFF + style J fill:#D06A6A,stroke:#333,stroke-width:4px,color:#FFF + style K fill:#D06A6A,stroke:#333,stroke-width:4px,color:#FFF + style L fill:#9A7FAE,stroke:#333,stroke-width:2px,color:#FFF + style M fill:#9A7FAE,stroke:#333,stroke-width:2px,color:#FFF + style Y fill:#66A182,stroke:#333,stroke-width:4px,color:#FFF + style Z fill:#66A182,stroke:#333,stroke-width:4px,color:#FFF + + style AA fill:#66A182,stroke:#333,stroke-width:4px,color:#FFF + style BB fill:#D99559,stroke:#333,stroke-width:4px,color:#FFF + style CC fill:#9A7FAE,stroke:#333,stroke-width:4px,color:#FFF + style DD fill:#779ECB,stroke:#333,stroke-width:4px,color:#FFF + style EE fill:#D06A6A,stroke:#333,stroke-width:4px,color:#FFF + style FF fill:#D06A6A,stroke:#333,stroke-width:4px,color:#FFF + style GG fill:#D06A6A,stroke:#333,stroke-width:4px,color:#FFF + style HH fill:#D06A6A,stroke:#333,stroke-width:4px,color:#FFF + style II fill:#D06A6A,stroke:#333,stroke-width:4px,color:#FFF + style JJ fill:#9A7FAE,stroke:#333,stroke-width:4px,color:#FFF + style KK fill:#D99559,stroke:#333,stroke-width:4px,color:#FFF + style LL fill:#9A7FAE,stroke:#333,stroke-width:4px,color:#FFF + style MM fill:#9A7FAE,stroke:#333,stroke-width:4px,color:#FFF + style NN fill:#9A7FAE,stroke:#333,stroke-width:4px,color:#FFF + style OO fill:#9A7FAE,stroke:#333,stroke-width:4px,color:#FFF + style PP fill:#779ECB,stroke:#333,stroke-width:4px,color:#FFF + style QQ fill:#9A7FAE,stroke:#333,stroke-width:4px,color:#FFF + style RR fill:#D06A6A,stroke:#333,stroke-width:4px,color:#FFF + style SS fill:#9A7FAE,stroke:#333,stroke-width:4px,color:#FFF + style TT fill:#9A7FAE,stroke:#333,stroke-width:4px,color:#FFF + +``` + +