Skip to content

Commit

Permalink
Integrate CtQ stats generation (#34)
Browse files Browse the repository at this point in the history
* Implement basic command parsing for command

* Fetch CtQ submissions from Blossom

* Add env variables to configure default CtQ duration and queue post timeout

* Attach transcriptions to ctq submissions

* Fetch transcriptions in chunks to allow progress updates for Slack

* Attach the corresponding user to the submissions

* Add time annotations to CtQ data fetching

* Attach the full transcription object instead of only the text

* Add option to attach pyplot figures to message in interactive mode

* Generate graph for CtQ user gamma

* Allow specification of default CtQ start time for faster testing

* Add graph for CtQ subreddit gamma stats

* Move CtQ graph generation to separate file

* Add CtQ graph for maximum transcription length per user

* Add general function to generate aggregated bar charts and reduce duplication

* Add CtQ graph for subs with the longest transcriptions

* Add CtQ graphs for the users/subs with the longest average transcriptions

* Add CtQ graph for post types

* Add CtQ graph for queue posts over time

* Improve graph styling

* Add legend and line indicating that no unclaimed posts are left to CtQ posts over time

* Save graphs as png instead of jpg

* Rename CtQ graph generation functions

* Add CtQ graph for user transcription length vs. count

* Color scatter plot with rank colors

* Add CtQ transcription count vs. length per subreddit graph

* Add general CtQ number stats

* Add all claimed and all completed times to general CtQ stats

* Add start date to general CtQ stats

* Properly extract timezone from Blossom dates

* Consider post expiration for events

* Don't aggregate rest values for max length stats

* Label the cleared queue lines

* Add CtQ chart for users with the most video transcriptions

* Add automatic transcriptions of bar charts

* Automatically set timezone for CtQ dates

* Fix graph color assignment

* Update env example, remove pytz

* Fix formatting and lint errors
  • Loading branch information
TimJentzsch committed Jul 3, 2023
1 parent 8668575 commit ef62532
Show file tree
Hide file tree
Showing 7 changed files with 1,222 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .env-example
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,13 @@ api_key=xoxb-something
default_channel=dev_test
payment_key="If you're going to work with ping_payment, you'll need to fill this out."
payment_value="Otherwise, don't worry about it."

enable_blossom=false
blossom_email=""
blossom_password=""
blossom_api_key=""
blossom_api_url="https://grafeas.org"

QUEUE_POST_TIMEOUT=18
DEFAULT_CTQ_DURATION=12
MAX_GRAPH_ENTRIES=10
Loading

0 comments on commit ef62532

Please sign in to comment.