Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ data/
.env
.vscode
.pytest_cache
app/assets/
screenshots/
app/assets/
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ app/
│ └── MatchAnalytics.py
│ └── UserAnalytics.py

├── analytics/ # Contains image files copied from the media folder in the export
├── assets/ # Contains image files copied from the media folder in the export

├── pages/ # Visualization rendering and user interface
│ ├── __init__.py
Expand All @@ -23,10 +23,6 @@ app/
│ └── MatchPage.py
│ └── UserPage.py

├── tools/ # Misc. tools
│ ├── __init__.py
│ └── Logger.py

├── utilities/ # Helper functions, constants, config, and utilities
│ ├── __init__.py
│ └── DataUtility.py
Expand All @@ -39,7 +35,7 @@ tests/ # Unit and integration tests
│ └── test_UserAnalytics.py

data/ # Local storage for raw data from the personal export
└── export
└── export/
│ ├── media/ # Images that were uploaded to Hinge
│ └── matches.json
│ └── user.json
Expand All @@ -50,7 +46,7 @@ data/ # Local storage for raw data from the personal export

README.md # Project overview and instructions
requirements.txt # Python dependencies
.env # Environment variables (e.g., MATCH_FILE_PATH)
.env # Environment variables
Dockerfile # Dockerfile
docker-compose.yml # Docker Compose configuration
LICENSE # Project license
Expand Down
10 changes: 0 additions & 10 deletions app/tools/Logger.py

This file was deleted.

Empty file removed app/tools/__init__.py
Empty file.
Binary file added mock_screenshots/com_bet_user_and_prefs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mock_screenshots/dating_prefs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mock_screenshots/duration_match_rm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mock_screenshots/duration_v_count.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mock_screenshots/msg_count_boxplot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mock_screenshots/profile_info_vis.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mock_screenshots/resp_latency.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mock_screenshots/user_slides.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions tests/analytics/test_UserAnalytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,11 @@ def user_analytics(monkeypatch):
monkeypatch.setenv("ASSETS_PATH", ASSETS_PATH)
monkeypatch.setenv("MEDIA_PATH", MEDIA_PATH)

with patch("builtins.open", mock_open(read_data=USER_DATA)) as mock_file, \
patch("json.load", return_value=json.loads(USER_DATA)) as mock_json_load, \
with patch("builtins.open", mock_open(read_data=USER_DATA)), \
patch("json.load", return_value=json.loads(USER_DATA)), \
patch("os.makedirs"), \
patch("os.listdir", return_value=[]): # prevent actual file ops
patch("os.listdir", return_value=[]), \
patch("shutil.copy2"):

user_analytics = UserAnalytics()
return user_analytics
Expand Down