Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Linux Support for Double Click Interval and Distance #1

Open
wants to merge 859 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
859 commits
Select commit Hold shift + click to select a range
98ec9cc
0.6.0
Jul 26, 2023
8234a4a
fix: modify flake8 config (#429)
Mustaballer Jul 28, 2023
1767cf3
0.6.1
Jul 28, 2023
3835b03
feat: scrub toggle for gui (#375)
0dm Jul 28, 2023
c8307c5
0.7.0
Jul 28, 2023
81e2dec
Merge branch 'main' into share-magic-wormhole
Mustaballer Jul 31, 2023
9e2097d
resolve merge issues
Mustaballer Aug 1, 2023
9923447
Update openadapt/share.py
Mustaballer Aug 1, 2023
9a5ddee
resolve https://github.com/OpenAdaptAI/OpenAdapt/issues/441
Mustaballer Aug 2, 2023
15a8d13
add type annotation
Mustaballer Aug 3, 2023
c0b7747
Merge branch 'share-magic-wormhole' of https://github.com/Mustaballer…
Mustaballer Aug 3, 2023
512a8e9
run black --preview and modify main.yml to check black --preview
Mustaballer Aug 3, 2023
98baf49
remove unused import
Mustaballer Aug 4, 2023
2635868
chore: suppress identical warnings (#389)
Mustaballer Aug 4, 2023
44a7000
Add timestamp to exported recording db files and update unit tests
Mustaballer Aug 4, 2023
794d51c
chore: add pypi action and oa-atomacos and oa-pynput packages (#456)
Mustaballer Aug 9, 2023
e780750
fix: pypi direct dependency failure (#459)
KrishPatel13 Aug 10, 2023
5024b54
0.7.1
Aug 10, 2023
a9b7ea4
Merge branch 'main' into share-magic-wormhole
Mustaballer Aug 10, 2023
4be2002
update poetry.lock
Mustaballer Aug 10, 2023
6df527d
fix pytest (#460)
KrishPatel13 Aug 10, 2023
42488cb
chore: resolve failing publish github actions (#458)
Mustaballer Aug 10, 2023
5e8532e
feat: Implement System Tray Icon (#300)
0dm Aug 10, 2023
31fa018
0.8.0
Aug 10, 2023
62df851
Merge branch 'main' into share-magic-wormhole
Mustaballer Aug 10, 2023
5cc8ef1
fix: enhance publish action and authors in pyproject.toml
Mustaballer Aug 11, 2023
f628bdf
modify release-and-publish.yml
Mustaballer Aug 11, 2023
194d78e
change author name to OpenAdapt.AI Team
Mustaballer Aug 11, 2023
7ea6062
Merge remote-tracking branch 'upstream/enhance-publishing' into share…
Mustaballer Aug 14, 2023
76ec5b5
test publish to test pypi
Mustaballer Aug 14, 2023
5ab3c27
fix poetry conflicts and conflicting files
Mustaballer Aug 14, 2023
57f11be
chore(*): change installation of spacy weights to runtime (#462)
KrishPatel13 Aug 17, 2023
575b747
refactor: add Privacy design API (#439)
KrishPatel13 Aug 18, 2023
849db65
Merge branch 'main' into share-magic-wormhole
Mustaballer Aug 18, 2023
16706d3
resolve merge conflicts and linting errors from recent merge
Mustaballer Aug 18, 2023
c4faf65
fix: enhance publish action and authors in pyproject.toml (#463)
Mustaballer Aug 21, 2023
021002f
0.8.1
Aug 21, 2023
2fee48a
Productivity measurement (#234)
angelala3252 Aug 24, 2023
714b3ae
chore: validate functionality of status checks (#477)
Mustaballer Aug 25, 2023
ea3d979
refactor: style errors from productivity measurement PR (#480)
angelala3252 Aug 25, 2023
58fdbdd
refactor: failing actions (#474)
KrishPatel13 Aug 28, 2023
927aac4
chore: modify install script to execute on user's repo and branch
Mustaballer Aug 28, 2023
b7be564
add default values when no parameters are passed
Mustaballer Aug 28, 2023
e0178f4
Merge branch 'main' into share-magic-wormhole
Mustaballer Aug 28, 2023
65708b9
Update README.md
Mustaballer Aug 28, 2023
0b3e321
chore: Silence pytest DeprecationWarnings (#407)
0dm Aug 28, 2023
bb8645d
chore: add invalid configuration assertion in naive.py (#471)
0dm Aug 28, 2023
40f60ea
feat: enhanced visualize.py with NiceGUI (#406)
0dm Aug 28, 2023
c610751
0.9.0
Aug 28, 2023
a1cb7c1
feat: use sentry.io (#386)
0dm Aug 29, 2023
32cfef9
0.10.0
Aug 29, 2023
44e673c
feat: add capture.py - also fixes audio recording (#362)
0dm Aug 29, 2023
29b0da0
0.11.0
Aug 29, 2023
5570e50
Merge branch 'main' into modify-install-script
Mustaballer Aug 29, 2023
55f8231
address formatting errors
Mustaballer Aug 29, 2023
b44e828
Merge branch 'modify-install-script' of github.com:OpenAdaptAI/OpenAd…
Mustaballer Aug 29, 2023
1a58807
fix formatting
Mustaballer Aug 29, 2023
74facb2
Merge branch 'main' into share-magic-wormhole
Mustaballer Aug 29, 2023
b847e8e
update poetry.lock file and some formatting
Mustaballer Aug 29, 2023
ca2dc72
feat: manage recording database (#451)
0dm Aug 29, 2023
4c12f5c
0.12.0
Aug 29, 2023
8e18cbf
Merge branch 'main' into modify-install-script
abrichr Aug 29, 2023
df8db50
feat(privacy.providers): add aws_comprehend as scrubbing provider (#476)
KrishPatel13 Aug 29, 2023
93d8e4b
0.13.0
Aug 29, 2023
8790a09
Merge branch 'main' into modify-install-script
Mustaballer Aug 30, 2023
40845de
Merge pull request #483 from OpenAdaptAI/modify-install-script
Mustaballer Aug 30, 2023
3939b6b
fix(tests.openadapt.privacy.providers): failing `test_comprehend_scru…
KrishPatel13 Aug 30, 2023
e9dba48
0.13.1
Aug 30, 2023
12559f5
fix wormhole sharing
Mustaballer Sep 8, 2023
58aec78
Merge remote-tracking branch 'upstream/main' into share-magic-wormhole
Mustaballer Sep 8, 2023
1de6d14
Update README.md (#493)
0dm Sep 9, 2023
05b7f13
fix: resolve repository not found error in mac install.sh script (#502)
abhi1345 Oct 16, 2023
aa68694
0.13.2
Oct 16, 2023
88900b0
Update LICENSE (#505)
abrichr Oct 19, 2023
2a36210
Update README.md (#514)
abrichr Nov 10, 2023
d0bb558
feat(openadapt.record): implemented notifications on record (#510)
0dm Nov 10, 2023
95963f0
0.14.0
Nov 10, 2023
b92667a
feat(openadapt.privacy.providers): add private_ai as a scrubbing prov…
KrishPatel13 Nov 11, 2023
ccf85c1
fix(install): add vs redistributable installation in powershell scrip…
KrishPatel13 Nov 11, 2023
f47a5a1
0.15.0
Nov 11, 2023
8813749
poetry lock
abrichr Nov 18, 2023
4367b3f
fix failing tests
abrichr Nov 19, 2023
27f7137
Merge branch 'main' into share-magic-wormhole
abrichr Nov 19, 2023
0e244bc
poetry lock
abrichr Nov 19, 2023
c788786
add spacy-curated-transformers
abrichr Nov 19, 2023
f6f28a0
docs: README
abrichr Dec 10, 2023
6f54686
docs: features
abrichr Dec 10, 2023
c3176c4
Update README.md (#538)
abrichr Dec 10, 2023
0357643
remove custom visualize function
Mustaballer Dec 11, 2023
225bd3d
change logging.py name to resolve naming conflict with logger library
Mustaballer Dec 11, 2023
a87b0b4
Merge branch 'main' into share-magic-wormhole
Mustaballer Dec 11, 2023
060376c
Restore `export_recording` import with lint ignore comment
Mustaballer Dec 11, 2023
788fb4d
Merge branch 'share-magic-wormhole' of https://github.com/Mustaballer…
Mustaballer Dec 11, 2023
f0c439b
docs: README
abrichr Dec 12, 2023
f5b71ed
docs(README): Transformers -> LLMs
abrichr Dec 12, 2023
6b705fc
docs(README)
abrichr Dec 12, 2023
3cdcc8a
Merge branch 'main' into share-magic-wormhole
Mustaballer Dec 12, 2023
55fe895
Update openadapt/config.py
Mustaballer Dec 12, 2023
edda890
Update openadapt/config.py
Mustaballer Dec 12, 2023
5884273
Merge pull request #223 from Mustaballer/share-magic-wormhole
Mustaballer Dec 12, 2023
ff968ea
0.15.1
Dec 12, 2023
33e6b93
docs(README): early loom demo
abrichr Dec 12, 2023
65f4353
docs(README)
abrichr Dec 19, 2023
f1b5550
Update README.md (#557)
abrichr Jan 15, 2024
58e8e43
Update README.md (#558)
abrichr Jan 16, 2024
eb0df3e
docs(README)
abrichr Feb 8, 2024
58c17a6
Update README.md (#566)
abrichr Feb 28, 2024
b8c8058
docs(README): add System Overview image
abrichr Feb 28, 2024
6fd808e
docs(README): document AudioInfo.words_with_timestamps
abrichr Feb 28, 2024
fcfb89f
feat: video
abrichr Feb 29, 2024
6f8867c
0.16.0
Feb 29, 2024
19ee283
docs(README): remove redundant text from image
abrichr Feb 29, 2024
70893cc
fix(video): add migration script
abrichr Feb 29, 2024
1f5e39a
0.16.1
Feb 29, 2024
bcae645
docs(README): poetry shell
abrichr Feb 29, 2024
4f07609
docs(README): document root directory requirement
abrichr Mar 2, 2024
fe13cac
refactor(visualize): /visualize.py to /app; move deprecated/visualize…
abrichr Mar 3, 2024
96f4c82
docs(README): update system overview image (#587)
abrichr Mar 8, 2024
bce3a66
docs(README): add notable works-in-progress under contributing
abrichr Mar 8, 2024
d2c5bfc
docs(README): update System Overview diagram
abrichr Mar 8, 2024
8649b07
docs(README): update System Overview diagram
abrichr Mar 8, 2024
dfd6966
docs(README): update System Overview diagram
abrichr Mar 8, 2024
0fb5941
docs(README): add image of system tray icon and client GUI app
abrichr Mar 8, 2024
fec8400
fix(app): use default logo for tray icon
abrichr Mar 8, 2024
27d60e0
0.16.2
Mar 8, 2024
efb0732
docs(README): update System Overview diagram
abrichr Mar 8, 2024
7b25897
docs(README): update System Overview diagram
abrichr Mar 8, 2024
2ba2198
docs(README): update System Overview diagram
abrichr Mar 9, 2024
a98363c
docs(README): update System Overview diagram
abrichr Mar 9, 2024
e6af2a5
docs(README): update System Overview diagram
abrichr Mar 9, 2024
1e2de90
docs(README): update System Overview diagram
abrichr Mar 9, 2024
cf41dc6
docs(README): update System Overview diagram
abrichr Mar 9, 2024
119f74a
docs(README): update System Overview diagram
abrichr Mar 9, 2024
22b8203
docs(README): update System Overview diagram
abrichr Mar 10, 2024
6b62233
docs(README): System Overview -> Alpha Architecture
abrichr Mar 11, 2024
31c4964
feat(dashboard): add web dashboard
KIRA009 Apr 11, 2024
4237ea8
0.17.0
Apr 11, 2024
a6c589c
fix(ci): dashboard -> install-dashboard
abrichr Apr 15, 2024
dd09034
0.17.1
Apr 15, 2024
f48a093
feat(VisualReplayStrategy): adapters: ultralytics, som, anthropic, go…
abrichr Apr 16, 2024
4e5bc1e
0.18.0
Apr 16, 2024
8497bc6
fix: performance, windows cursor flicker
abrichr Apr 22, 2024
01775f9
0.18.1
Apr 22, 2024
61df989
fix: video recording
abrichr Apr 22, 2024
2771d8d
0.18.2
Apr 22, 2024
7593bbb
fix: video performance
abrichr Apr 22, 2024
b0211bd
0.18.3
Apr 22, 2024
d0af1f4
feat(VisualReplayStrategy): compute image similarity to avoid unneces…
abrichr Apr 27, 2024
d4cf974
0.19.0
Apr 27, 2024
fd463ec
docs(README): add link to calculator demo
abrichr Apr 27, 2024
b3a90cd
feat(config, build): refactor config; build executables
KIRA009 May 1, 2024
0388a28
fix(release): Revert to use admin token for semantic release action (…
KIRA009 May 1, 2024
9e96d8c
fix(release): Revert to use admin token for release checkout action (…
KIRA009 May 2, 2024
6fdb3d6
0.20.0
May 2, 2024
7ca8ccc
fix(config): restore Config.ROOT_DIR_PATH (#653)
abrichr May 3, 2024
221f81b
0.20.1
May 3, 2024
2440a86
feat(tray): performance and UX improvements
abrichr May 10, 2024
55848f0
feat: Add posthog analytics (#655)
KIRA009 May 10, 2024
d0ebf5d
fix(build): remove notifypy from build.py
abrichr May 10, 2024
edf2c65
fix(build): add setup-python to release job (#662)
abrichr May 10, 2024
3299231
fix(build): poetry env use 3.10 (#663)
abrichr May 10, 2024
4716cdd
fix(build): poetry install order
abrichr May 10, 2024
fea1026
fix(build): poetry env use python3.10 in pyproject.toml
abrichr May 10, 2024
9c87eb3
fix(build): pip install poetry (#667)
abrichr May 10, 2024
4851e52
[email protected]
abrichr May 10, 2024
70f0fc5
fix(build): [email protected]
abrichr May 10, 2024
fade2ea
0.21.0
May 10, 2024
f679065
feat: Run ci steps only if not triggered by the bot commit (#666)
KIRA009 May 10, 2024
5df937c
0.22.0
May 10, 2024
710b07e
feat(dashboard): Add recording detail page with screenshots (#616)
KIRA009 May 11, 2024
e1f250c
0.23.0
May 11, 2024
0796c3a
fix: Install latest version before deciding which release to upload t…
KIRA009 May 11, 2024
7563674
0.23.1
May 11, 2024
98380f5
feat(VisualReplayStrategy): Remove model copy logic; avoid unnecessar…
abrichr May 12, 2024
a190cfd
0.24.0
May 12, 2024
e4dc9b5
fix(dashboard): close dashboard from tray (#671)
KIRA009 May 14, 2024
ec6006d
0.24.1
May 14, 2024
6b81d75
feat: run posthog in production only (#670)
KIRA009 May 14, 2024
34aa3ae
0.25.0
May 14, 2024
e32e802
fix(config): Fix path of default config file (#675)
KIRA009 May 17, 2024
192f4e9
0.25.1
May 17, 2024
aa0c501
fix(app): add hidden-imports to build spec (#678)
abrichr May 19, 2024
02fba6a
0.25.2
May 19, 2024
1649099
fix(installer): add hidden import replicate (#680)
abrichr May 22, 2024
8a1fc2e
0.25.3
May 22, 2024
cc56b1d
fix(installer): Fix build failing due to replicate and other issues (…
KIRA009 May 22, 2024
abb4d31
0.25.4
May 22, 2024
e12df68
fix(docs): fix typo in README.md (#686)
orliesaurus May 24, 2024
929ddc9
0.25.5
May 24, 2024
b81b18a
feat(dashboard): Dashboard scrubbing (#672)
KIRA009 May 27, 2024
ddcd7f4
0.26.0
May 27, 2024
5cad8d0
fix(db): Database access refactor (#676)
KIRA009 May 28, 2024
d6a03de
0.26.1
May 28, 2024
5e507b1
docs: Create FUNDING.yml (#690)
abrichr May 30, 2024
8edb0ac
fix(docs): add nvm install info in Readme.md in manual setup section.…
KrishPatel13 Jun 3, 2024
c827402
0.26.2
Jun 3, 2024
a920c44
feat: Audio narration (#673)
KIRA009 Jun 4, 2024
76cc754
0.27.0
Jun 4, 2024
3b64b81
feat(alerts): Alert user when any exception occurs, via sentry hooks …
KIRA009 Jun 5, 2024
bea33f1
feat: Delete/transfer video (#696)
KIRA009 Jun 5, 2024
42b8dc1
0.28.0
Jun 5, 2024
0732539
feat(vanilla): Implement vanilla baseline (#702)
abrichr Jun 5, 2024
96b279b
docs(README): add dashboard visualization; improve description of Van…
abrichr Jun 5, 2024
cb56b9e
0.29.0
Jun 5, 2024
004f5f8
feat(dashboard): Add feature to remove action events (#688)
KIRA009 Jun 5, 2024
25a8197
0.30.0
Jun 5, 2024
809899a
chore: fix typo in test_video.py (#710)
eltociear Jun 6, 2024
453e3d5
fix(get_audio_info, visualize): replace use of recording timestamp in…
abrichr Jun 8, 2024
a7a48c3
0.30.1
Jun 8, 2024
2e8e97c
fix(video): fix video playback with force_key_frame (#726)
abrichr Jun 8, 2024
f9a46fd
0.30.2
Jun 8, 2024
14c3a95
fix(video): add num_copies to write_video_event (#732)
abrichr Jun 9, 2024
ab9cdce
fix(scrubbing): Catch exceptions when download required spacy model (…
KIRA009 Jun 10, 2024
a8034f7
0.30.3
Jun 10, 2024
eb1e552
fix(RecordingsAPI): catch AttributeError if audio_info is None (#729)
abrichr Jun 11, 2024
aac71ea
0.30.4
Jun 11, 2024
101c71b
feat(contrib.som, postinstall): add contrib.som; postinstall.py; othe…
abrichr Jun 11, 2024
b9031bf
fix(tests, utils): fix regressions (#736)
abrichr Jun 12, 2024
8f25cc6
fix(build): pip install wheel (#738)
abrichr Jun 12, 2024
169d077
0.31.0
Jun 12, 2024
ac4e329
feat(tray): Add posthog analytics to tray actions (#737)
KIRA009 Jun 13, 2024
64fcd86
0.32.0
Jun 13, 2024
fa59b60
feat(scripts.downloads): add scripts/downloads.py (#735)
abrichr Jun 13, 2024
00d088a
0.33.0
Jun 13, 2024
60d6a62
fix(posthog): fix broken posthog api (#753)
KIRA009 Jun 14, 2024
823e0d4
0.33.1
Jun 14, 2024
f41b0bf
fix(VisualReplayStrategy): increase default NMS thresh/conf (#758)
abrichr Jun 15, 2024
b33c934
0.33.2
Jun 15, 2024
b0e2534
Add Linux support for get_double_click_interval_seconds in utils.py
Jun 18, 2024
73376b3
Add Linux support for get_double_click_distance_pixels in utils.py
Jun 18, 2024
489bbb6
Add Linux-specific window management implementations
Jun 18, 2024
990969d
Prepare to run openadapt.record
Jun 21, 2024
a6a3623
Separate Linux and Windows imports in window init
Jun 21, 2024
e72bd84
Replace dictalchemy with sqlalchemy-mixins
Jun 21, 2024
cec44f6
Update BaseModel inheritance to AllFeaturesMixin
Jun 21, 2024
fd5cafc
Resolve AttributeError for self-referential relationship in ActionEvent
Jun 21, 2024
c0f7eee
Create database schema before operations
Jun 21, 2024
9c9bb9d
Add Alembic migration for original_recording_id column
Jun 21, 2024
3489688
Update alembic.ini with absolute path to database
Jun 21, 2024
39383e1
Update Alembic configuration and merge heads
Jun 21, 2024
966d8cd
Add diagnostic print statements to env.py for debugging
Jun 21, 2024
8c1b267
Fix dependency configuration
Jun 21, 2024
2be2966
Add test import file for diagnostics
Jun 21, 2024
80b5574
Correct gradio_client import statements to gradio
Jun 21, 2024
5fc7efa
Update gradio version and alembic configuration
Jun 21, 2024
4a6bdb2
Add script to run Alembic migration with correct environment setup
Jun 21, 2024
a4dada4
Adjust version constraints for dependency resolution
Jun 21, 2024
5a7cf0a
Update poetry.lock file
Jun 21, 2024
c4a0b54
Update dependencies and add test script
Jun 21, 2024
0976803
Update .gitignore to exclude venv directory
Jun 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(scripts.downloads): add scripts/downloads.py (OpenAdaptAI#735)
* add scripts/downloads.py

* add total cumulative downloads to title

* add module docstring

* pagination

* add datetime

* accumulate by release_date

* black/flake8
  • Loading branch information
abrichr authored Jun 13, 2024
commit fa59b60c20360903d8d4b95c4926b1b382c8b990
103 changes: 103 additions & 0 deletions scripts/downloads.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
"""Plot downloads over time."""

import requests
import matplotlib.pyplot as plt
from datetime import datetime
from pprint import pformat

import numpy as np


def fetch_download_data(api_url: str) -> dict:
"""Fetches download data from GitHub API and returns it as a dictionary.

Supports pagination.

Args:
api_url (str): The URL of the GitHub API endpoint for releases.

Returns:
dict: A dictionary with dates as keys and download counts as values.
"""
download_data = {}
ignored_names = set()
page = 1
while True:
response = requests.get(f"{api_url}?per_page=30&page={page}")
releases = response.json()
if not releases: # Break the loop if no more releases are returned
break
for release in releases:
release_date = release["published_at"][:10]
print(
release["name"],
list(
(asset["name"], asset["download_count"])
for asset in release["assets"]
),
)
ignored_names |= set(
[
asset["name"]
for asset in release["assets"]
if not asset["name"].endswith(".zip")
]
)
total_downloads = sum(
asset["download_count"]
for asset in release["assets"]
if asset["name"].endswith(".zip")
)
download_data.setdefault(release_date, 0)
download_data[release_date] += total_downloads
page += 1 # Increment page number for the next API request
print(f"ignored_names=\n{pformat(ignored_names)}")
return download_data


def plot_downloads(data: dict) -> None:
"""Plots number of downloads and cumulative downloads over time using matplotlib.

Includes total cumulative in the title.

Args:
data (dict): A dictionary with dates as keys and download counts as values.
"""
dates = [datetime.strptime(date, "%Y-%m-%d") for date in sorted(data.keys())]
downloads = [data[date.strftime("%Y-%m-%d")] for date in dates]
cumulative_downloads = np.cumsum(downloads)
total_cumulative_downloads = (
cumulative_downloads[-1] if cumulative_downloads.size > 0 else 0
)

plt.figure(figsize=(12, 6))
plt.plot(
dates, downloads, marker="o", linestyle="-", color="b", label="Daily Downloads"
)
plt.plot(
dates,
cumulative_downloads,
marker=None,
linestyle="--",
color="r",
label="Cumulative Downloads",
)
current_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
plt.title(
"Downloads Over Time"
f"\n(Total Cumulative: {total_cumulative_downloads}) "
f"\n{current_time}"
)
plt.xlabel("Date")
plt.ylabel("Number of Downloads")
plt.grid(True)
plt.xticks(rotation=45)
plt.legend()
plt.tight_layout()
plt.show()


if __name__ == "__main__":
api_url = "https://api.github.com/repos/OpenAdaptAI/OpenAdapt/releases"
download_data = fetch_download_data(api_url)
plot_downloads(download_data)