Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
344 commits
Select commit Hold shift + click to select a range
3438194
Merge branch 'AdaptsBranchV3' into liying-uploadReinforcementdata
mashfiqui-rabbi Mar 19, 2020
902a435
Merge pull request #55 from StatisticalReinforcementLearningLab/liyin…
mashfiqui-rabbi Mar 19, 2020
fc0df9b
Merge branch 'AdaptsBranchV3' into liying-offline
mashfiqui-rabbi Mar 19, 2020
77de227
Merge pull request #51 from StatisticalReinforcementLearningLab/liyin…
mashfiqui-rabbi Mar 19, 2020
3ffede3
un-comment add reinforcement data in three files.
Mar 23, 2020
8d17677
Merge branch 'liying-uploadReinforcementdata' of https://github.com/S…
Mar 23, 2020
2e42ba2
Added all the animals to the Tundra, Rainforest and imposed a re-orde…
mashfiqui-rabbi Mar 24, 2020
49733b5
Merge pull request #58 from StatisticalReinforcementLearningLab/mash-…
mashfiqui-rabbi Mar 24, 2020
99cb75a
Changed status bar color, exporting data on reinforcement on S3,
mashfiqui-rabbi Mar 25, 2020
404ce5c
Merge pull request #61 from StatisticalReinforcementLearningLab/mash-…
mashfiqui-rabbi Mar 25, 2020
28c877d
Encrypt survey data and remove console.log
Mar 27, 2020
734da00
Fixed award-dollar.services.ts bug when user first login to use the app.
Mar 27, 2020
d878589
Some commit
mashfiqui-rabbi Mar 28, 2020
4713dc7
Merge branch 'AdaptsBranchV3' of github.com:StatisticalReinforcementL…
mashfiqui-rabbi Mar 28, 2020
8379047
- Moved the modal for unlockable to home
mashfiqui-rabbi Mar 30, 2020
d7786a0
Merge branch 'AdaptsBranchV3' into liying-encryptSurvey
mashfiqui-rabbi Apr 1, 2020
1e07938
Merge pull request #64 from StatisticalReinforcementLearningLab/liyin…
mashfiqui-rabbi Apr 1, 2020
92aa5e8
Merge branch 'AdaptsBranchV3' into liying-uploadReinforcementdata
mashfiqui-rabbi Apr 1, 2020
a8a4104
Merge pull request #56 from StatisticalReinforcementLearningLab/liyin…
mashfiqui-rabbi Apr 1, 2020
57fce0f
- Changed from 100 points per survey to 60 points.
mashfiqui-rabbi Apr 1, 2020
16100ca
Merge pull request #65 from StatisticalReinforcementLearningLab/mash-…
mashfiqui-rabbi Apr 1, 2020
f9883ed
Fish fun facts has been fixed.
mashfiqui-rabbi Apr 2, 2020
974f782
- Changed trivia text
mashfiqui-rabbi Apr 2, 2020
ea20d32
typo fixed in lion trivia.
mashfiqui-rabbi Apr 2, 2020
50627bd
Added info page.
mashfiqui-rabbi Apr 2, 2020
59e2203
Add empty string for reinforcement data if key is not available.
Apr 2, 2020
81c661b
Code cleanup. Deleted the older tundra level.
mashfiqui-rabbi Apr 2, 2020
1e2e7ad
Merge pull request #67 from StatisticalReinforcementLearningLab/liyin…
mashfiqui-rabbi Apr 2, 2020
19df686
Merge pull request #68 from StatisticalReinforcementLearningLab/mash-…
mashfiqui-rabbi Apr 2, 2020
b8eaed3
Fix modal view and moved the "reinforcement" data as router params
mashfiqui-rabbi Apr 4, 2020
a425815
Merge pull request #70 from StatisticalReinforcementLearningLab/mash-…
mashfiqui-rabbi Apr 4, 2020
dec8c89
Fix Security issue
Apr 7, 2020
d9d777c
ngrx is introduced. Trying to fix the Modal controller.
mashfiqui-rabbi Apr 9, 2020
d3acb1c
Fixes submit button before uploading 0.0.28
mashfiqui-rabbi Apr 9, 2020
1fa8bac
ngrx is now working. Fixed the info page.
mashfiqui-rabbi Apr 15, 2020
ebaeba3
Merge pull request #74 from StatisticalReinforcementLearningLab/liyin…
mashfiqui-rabbi Apr 15, 2020
3445dc3
Fixed the tundra level. Now, there are two levels. One more zoomed ou…
mashfiqui-rabbi Apr 16, 2020
4da46bf
Add tracking page views to SQLite database.
Apr 16, 2020
f8dd322
Currently disabled ngrx-driven modal view for unlocked incentives.
mashfiqui-rabbi Apr 16, 2020
50d0fb6
Merge branch 'AdaptsBranchV3' of github.com:StatisticalReinforcementL…
mashfiqui-rabbi Apr 19, 2020
6eb1428
Merge branch 'mash-ngrx' into AdaptsBranchV3
mashfiqui-rabbi Apr 19, 2020
1ae1ce3
Before adding tabs.
mashfiqui-rabbi Apr 19, 2020
8138858
Merge branch 'AdaptsBranchV3' into liying-usageTrack
mashfiqui-rabbi Apr 20, 2020
1e46a1c
Merge pull request #75 from StatisticalReinforcementLearningLab/liyin…
mashfiqui-rabbi Apr 20, 2020
76e18c3
unlock screen now working.
mashfiqui-rabbi Apr 22, 2020
4e7d18a
Merge branch 'AdaptsBranchV3' into mash-ngrx-2
mashfiqui-rabbi Apr 22, 2020
cbd2034
Merge pull request #80 from StatisticalReinforcementLearningLab/mash-…
mashfiqui-rabbi Apr 22, 2020
bada2a5
Remove Google Analystics
Apr 23, 2020
fcca108
Merge pull request #83 from StatisticalReinforcementLearningLab/liyin…
mashfiqui-rabbi Apr 24, 2020
a0c4668
Before switching to find android notifications.
mashfiqui-rabbi Apr 26, 2020
bd28fc6
- Commit plugins folder from now on
mashfiqui-rabbi Apr 29, 2020
fa00be5
Added app usage from Liying.
mashfiqui-rabbi Apr 29, 2020
3e37acf
Merge pull request #85 from StatisticalReinforcementLearningLab/mash-…
mashfiqui-rabbi Apr 29, 2020
0c1dab6
Fixed the start and end snow and rain buttons. Added codes to send on…
mashfiqui-rabbi May 5, 2020
6614ded
Merge pull request #89 from StatisticalReinforcementLearningLab/mash-…
mashfiqui-rabbi May 5, 2020
c7244e6
Turn off large text for survey page.
May 5, 2020
567edcf
Fix onresume and on pause on the tabs and home page.
mashfiqui-rabbi May 6, 2020
a202928
- ng effect added for survey completion and 8PM message.
mashfiqui-rabbi May 6, 2020
c31ce3e
Unlock survey for first day user.
May 7, 2020
2bace87
Update the change: first time user means that user never login
May 8, 2020
aaf58e5
Improved onboarding experience.
mashfiqui-rabbi May 13, 2020
369c0d2
Merge pull request #94 from StatisticalReinforcementLearningLab/mash-…
mashfiqui-rabbi May 13, 2020
96c41b9
Made updates to userProfile loading and saving: addressing #44
dan-chop-ris May 13, 2020
05cb830
Add two functions to get total number of submitted survey and indicat…
May 14, 2020
d160d50
Merge pull request #98 from StatisticalReinforcementLearningLab/liyin…
mashfiqui-rabbi May 16, 2020
4a6339c
Fixed corner cases for the streak.
mashfiqui-rabbi May 16, 2020
1eecfae
Merge pull request #99 from StatisticalReinforcementLearningLab/liyin…
mashfiqui-rabbi May 16, 2020
17e516d
Merge branch 'adding-progress-bar' into liying-largeText
mashfiqui-rabbi May 16, 2020
e61e440
Merge pull request #100 from StatisticalReinforcementLearningLab/liyi…
mashfiqui-rabbi May 16, 2020
66d3e83
Fixed "daily survey unavailable" text. User profile "firstLogin" is a…
mashfiqui-rabbi May 16, 2020
2420628
Merge branch 'adding-progress-bar' of github.com:StatisticalReinforce…
mashfiqui-rabbi May 16, 2020
5c6a314
Disabled accessibility. Also, 9PM seems to be working.
mashfiqui-rabbi May 17, 2020
1854af4
Changes:
mashfiqui-rabbi May 19, 2020
a6c2e76
Create README.md
mashfiqui-rabbi May 28, 2020
ae2e495
Added pregress bars on all the levels.
mashfiqui-rabbi Jun 1, 2020
e3ea8f9
Merge pull request #103 from StatisticalReinforcementLearningLab/addi…
mashfiqui-rabbi Jun 1, 2020
16c450e
Merge pull request #97 from StatisticalReinforcementLearningLab/dan-u…
mashfiqui-rabbi Jun 1, 2020
235581a
Made updates to userProfile loading and saving: addressing #44
dan-chop-ris May 13, 2020
29dfe9e
Create README.md
mashfiqui-rabbi May 28, 2020
e46d38f
Fix: For question #2: add a response option that says “boyfriend/girl…
mashfiqui-rabbi Jun 1, 2020
6dc3093
1. Update dimensions for the image previews for all the levels (tiny,…
mashfiqui-rabbi Jun 1, 2020
dd48313
Tabs has been fixed for caregiver vs AYA.
mashfiqui-rabbi Jun 2, 2020
62ea8c6
Removed the progress based on user experience feedback.
mashfiqui-rabbi Jun 2, 2020
5e42055
Add environment variables for server addresses.
mashfiqui-rabbi Jun 2, 2020
6a41e04
Merge branch 'AdaptsBranchV3' into adding-progress-bar
mashfiqui-rabbi Jun 2, 2020
9b1e33a
Merge pull request #104 from StatisticalReinforcementLearningLab/addi…
mashfiqui-rabbi Jun 2, 2020
52dca99
Update README.md
mashfiqui-rabbi Jun 2, 2020
da43b0e
Update README.md
mashfiqui-rabbi Jun 2, 2020
4b53d9f
Removed dates from Unlock pages.
mashfiqui-rabbi Jun 2, 2020
a703f64
Merge branch 'adding-progress-bar' of github.com:StatisticalReinforce…
mashfiqui-rabbi Jun 2, 2020
400c827
Extra work for onesignal notification tracking.
mashfiqui-rabbi Jun 2, 2020
d02ed55
Fix award dollar calculation and add code when pause and start after …
Jun 2, 2020
d3ef52b
Merge pull request #106 from StatisticalReinforcementLearningLab/addi…
mashfiqui-rabbi Jun 2, 2020
598e1f4
Create README.md
mashfiqui-rabbi Jun 2, 2020
1d8d6c9
Update README.md
mashfiqui-rabbi Jun 2, 2020
f39f3ef
Update README.md
mashfiqui-rabbi Jun 2, 2020
3109b65
Update README.md
mashfiqui-rabbi Jun 2, 2020
784de60
Update README.md
mashfiqui-rabbi Jun 2, 2020
7414b7f
Commented android codes, and what needs to be changed.
mashfiqui-rabbi Jun 3, 2020
7a6c21f
Commented iOS codes in "copy_these_codes" to upload Onesignal notific…
mashfiqui-rabbi Jun 3, 2020
3743f65
Merge pull request #107 from StatisticalReinforcementLearningLab/addi…
mashfiqui-rabbi Jun 3, 2020
ae2615d
Update README.md
mashfiqui-rabbi Jun 3, 2020
10fd701
Python files to setup flask server, MySQL server, and push notificati…
mashfiqui-rabbi Jun 3, 2020
10c663b
Merge pull request #108 from StatisticalReinforcementLearningLab/addi…
mashfiqui-rabbi Jun 3, 2020
879cd99
Update README.md
mashfiqui-rabbi Jun 3, 2020
c47bffd
Update README.md
mashfiqui-rabbi Jun 3, 2020
13585f0
Update README.md
mashfiqui-rabbi Jun 3, 2020
6dcd651
Update README.md
mashfiqui-rabbi Jun 3, 2020
870df01
Update README.md
mashfiqui-rabbi Jun 3, 2020
d037dff
Fixed the isAYA bug on the app.component.ts
mashfiqui-rabbi Jun 4, 2020
a3cf37c
Merge pull request #113 from StatisticalReinforcementLearningLab/addi…
mashfiqui-rabbi Jun 4, 2020
5424482
Merge pull request #105 from StatisticalReinforcementLearningLab/liyi…
mashfiqui-rabbi Jun 4, 2020
8044d2e
refactored the money code.
mashfiqui-rabbi Jun 4, 2020
eee0e65
Scripts to retrieve data from AWS.
Jun 4, 2020
5d144eb
Add more comments.
Jun 4, 2020
0411fec
* demo-aquarium.component.ts * added return, so that nothing gets whe…
mashfiqui-rabbi Jun 7, 2020
92f8884
Added alt message
mashfiqui-rabbi Jun 7, 2020
fdd6559
Merge pull request #115 from StatisticalReinforcementLearningLab/liyi…
mashfiqui-rabbi Jun 8, 2020
b3090f0
commit for 0.0.53 version.
mashfiqui-rabbi Jun 8, 2020
82795e3
Merge pull request #114 from StatisticalReinforcementLearningLab/addi…
mashfiqui-rabbi Jun 8, 2020
b6e5620
Update README.md
mashfiqui-rabbi Jun 2, 2020
ec15b15
Create README.md
mashfiqui-rabbi Jun 2, 2020
dc12f38
Update README.md
mashfiqui-rabbi Jun 2, 2020
82eb2b7
Update README.md
mashfiqui-rabbi Jun 2, 2020
4d2b007
Update README.md
mashfiqui-rabbi Jun 2, 2020
809e61e
Update README.md
mashfiqui-rabbi Jun 2, 2020
854dee9
Update README.md
mashfiqui-rabbi Jun 3, 2020
640997b
Update README.md
mashfiqui-rabbi Jun 3, 2020
5d5aa8e
Update README.md
mashfiqui-rabbi Jun 3, 2020
be1f322
Update README.md
mashfiqui-rabbi Jun 3, 2020
cd0ea7e
Update README.md
mashfiqui-rabbi Jun 3, 2020
66e2871
Update README.md
mashfiqui-rabbi Jun 3, 2020
c09f338
Scripts to retrieve data from AWS.
Jun 4, 2020
023b8b5
Add more comments.
Jun 4, 2020
b291933
Created a first version of the Study data check. The survey part is o…
mashfiqui-rabbi Jun 8, 2020
f80fdd5
Now tracks 4PM notification in study data check.
mashfiqui-rabbi Jun 9, 2020
145f536
before app usage tracking.
mashfiqui-rabbi Jun 10, 2020
4412ab2
Fixed:
mashfiqui-rabbi Jun 10, 2020
525632e
Merge branch 'AdaptsBranchV3' into adding-progress-bar
mashfiqui-rabbi Jun 10, 2020
25afd1e
Merge pull request #118 from StatisticalReinforcementLearningLab/addi…
mashfiqui-rabbi Jun 10, 2020
1f08479
Add back uploading SQLite to AWS.
Jun 10, 2020
9a94b64
Merge branch 'AdaptsBranchV3' of https://github.com/StatisticalReinfo…
Jun 10, 2020
f91833d
Update from ADAPTv3
Jun 10, 2020
d4cb590
Rename function
Jun 10, 2020
150758a
Update .gitignore
mashfiqui-rabbi Jun 11, 2020
91dd494
Merge pull request #120 from StatisticalReinforcementLearningLab/liyi…
mashfiqui-rabbi Jun 11, 2020
405a6be
Add all the app usage for all the pages. Updated the generateStudyMon…
mashfiqui-rabbi Jun 12, 2020
c816e58
Merge pull request #121 from StatisticalReinforcementLearningLab/addi…
mashfiqui-rabbi Jun 12, 2020
a926e3b
Adapts changes.
mashfiqui-rabbi Jun 13, 2020
795ea20
Merge pull request #122 from StatisticalReinforcementLearningLab/addi…
mashfiqui-rabbi Jun 13, 2020
f27bb01
UX changes, added 'UnlockedIncentive' table and '/get-unlocked-incent…
mashfiqui-rabbi Jun 16, 2020
4950920
Merge pull request #128 from StatisticalReinforcementLearningLab/addi…
mashfiqui-rabbi Jun 16, 2020
577c1e7
Some money fix.
mashfiqui-rabbi Jun 18, 2020
d2c7812
Merge pull request #129 from StatisticalReinforcementLearningLab/addi…
mashfiqui-rabbi Jun 18, 2020
bae20b8
mobile accessiblity, iphone XR fix, Sentry added (iOS still not working)
mashfiqui-rabbi Jun 19, 2020
2fa6033
Merge pull request #130 from StatisticalReinforcementLearningLab/addi…
mashfiqui-rabbi Jun 19, 2020
26d6ead
Excluded config.ini for adapts
mashfiqui-rabbi Jun 19, 2020
36b856f
Merge pull request #131 from StatisticalReinforcementLearningLab/addi…
mashfiqui-rabbi Jun 19, 2020
821ce77
Update README.md
samurphy11 Jun 19, 2020
d3fe2aa
Merge pull request #132 from StatisticalReinforcementLearningLab/Adap…
mashfiqui-rabbi Jun 22, 2020
2cf4249
Some bug fixes.
mashfiqui-rabbi Jun 23, 2020
26bd150
Fixed important bug. App has to be updated immediately
mashfiqui-rabbi Jun 23, 2020
cf7929e
Fixed the white screen bug in auth.
mashfiqui-rabbi Jun 24, 2020
9a388a5
Fixed the blank screen on the phone side.
mashfiqui-rabbi Jun 24, 2020
b3b4ea7
Update README.md
samurphy11 Jun 25, 2020
f683f12
Create README.md
mashfiqui-rabbi Jun 30, 2020
62f8b09
Update README.md
mashfiqui-rabbi Jun 30, 2020
7e1a8c7
Update README.md
mashfiqui-rabbi Jun 30, 2020
6c50743
Update README.md
mashfiqui-rabbi Jun 30, 2020
314c4d5
Add files via upload
mashfiqui-rabbi Jun 30, 2020
1e60414
Update README.md
mashfiqui-rabbi Jun 30, 2020
927e738
Update README.md
mashfiqui-rabbi Jun 30, 2020
935a08e
Create README.md
mashfiqui-rabbi Jun 30, 2020
2d4a805
Update README.md
mashfiqui-rabbi Jun 30, 2020
ca3ac0a
Update temp_survey.json
mashfiqui-rabbi Jul 7, 2020
1110ebb
List of changes:
mashfiqui-rabbi Jul 9, 2020
f0ccfb7
Update README.md
samurphy11 Jun 19, 2020
ba64be1
Updating userProfile more frequently by calling saveToServer in aquar…
dan-chop-ris Jun 30, 2020
799a987
Disabled back button.
dan-chop-ris Jun 30, 2020
38a97a4
Fixes for rightly showing the incentives in the tab page.
mashfiqui-rabbi Jul 17, 2020
5bc5c1a
Refactored dynamic survey. Only reinforcement of meme/altruism are le…
mashfiqui-rabbi Jul 17, 2020
a0249f2
Date properly ordered for memes and altruistic messages.
mashfiqui-rabbi Jul 19, 2020
f4c1adb
Fixed the sorting that wasn't working earlier.
mashfiqui-rabbi Jul 19, 2020
e32bbae
Update README.md
samurphy11 Jul 20, 2020
b74826c
Created module/component for ARC apps (src/app/intervention/harvard-a…
mashfiqui-rabbi Jul 21, 2020
0bfa777
Merge pull request #149 from StatisticalReinforcementLearningLab/mash…
mashfiqui-rabbi Jul 21, 2020
c3873e5
Harvard Survey rendered and extra question added
ChloeL19 Jul 22, 2020
49911d3
question names updated
ChloeL19 Jul 24, 2020
c3d3547
- Added a simple video tutorial page.
mashfiqui-rabbi Jul 26, 2020
8934de5
- Added thumbnailed list.
mashfiqui-rabbi Jul 26, 2020
7b4b746
Merge pull request #152 from StatisticalReinforcementLearningLab/harv…
mashfiqui-rabbi Jul 29, 2020
a60d4b3
Merge pull request #154 from StatisticalReinforcementLearningLab/mash…
mashfiqui-rabbi Jul 29, 2020
a255b52
- sourcemap deactivated
mashfiqui-rabbi Jul 30, 2020
e46fcd1
Add files via upload
zhuf11 Aug 3, 2020
72cc45b
Added logos for 7 apps
zhuf11 Aug 3, 2020
0a2bfd3
Updated ARC apps list with logos + descriptions
zhuf11 Aug 4, 2020
9632397
Updated with more apps
zhuf11 Aug 4, 2020
22852f2
Delete front_page.component.ts
zhuf11 Aug 4, 2020
917fc73
Merge pull request #160 from StatisticalReinforcementLearningLab/fran…
mashfiqui-rabbi Aug 4, 2020
436ae59
I added the good day question
ChloeL19 Aug 5, 2020
0adf9a7
fixed minor comma error
ChloeL19 Aug 5, 2020
20d1622
buttons fixed
ChloeL19 Aug 8, 2020
ee7ec52
Merge pull request #162 from StatisticalReinforcementLearningLab/harv…
mashfiqui-rabbi Aug 9, 2020
47f3dad
File name changes and range input is working.
mashfiqui-rabbi Aug 10, 2020
fe74b32
Merge branch 'mash-issue-163' into harvard/dev
mashfiqui-rabbi Aug 10, 2020
24e0715
numbers fixed
ChloeL19 Aug 13, 2020
125dc0b
Merge pull request #166 from StatisticalReinforcementLearningLab/harv…
mashfiqui-rabbi Aug 13, 2020
4cabbc6
Changed splash screen. Changed names to SARA. Added cheat button back.
mashfiqui-rabbi Sep 14, 2020
800d5af
Update README.md
euranofshin Sep 21, 2020
ea6829d
Instruction to download the aware app.
mashfiqui-rabbi Oct 11, 2020
2ff016c
Added images to download QR code.
mashfiqui-rabbi Oct 11, 2020
80d141b
Merge pull request #181 from StatisticalReinforcementLearningLab/harv…
mashfiqui-rabbi Oct 11, 2020
ccaa324
Update aware.md
mashfiqui-rabbi Oct 11, 2020
259c192
Update aware.md
mashfiqui-rabbi Oct 11, 2020
9be68bd
Update aware.md
mashfiqui-rabbi Oct 11, 2020
889417f
Update aware.md
mashfiqui-rabbi Oct 11, 2020
99f0c36
Copy edits
mashfiqui-rabbi Oct 11, 2020
b820dc3
Folder name change. Missing data analysis script is added.
mashfiqui-rabbi Oct 11, 2020
5ac7d77
Merge branch 'harvard/dev' into harvard/mash-issue-180
mashfiqui-rabbi Oct 11, 2020
f9aff7b
Merge pull request #182 from StatisticalReinforcementLearningLab/harv…
mashfiqui-rabbi Oct 11, 2020
4e337d2
Update aware.md
mashfiqui-rabbi Oct 11, 2020
92ab1e0
Update aware.md
mashfiqui-rabbi Oct 11, 2020
d03c6c5
Changed CHOP logos to Harvard Logos/Authentication page. Disabled lif…
mashfiqui-rabbi Oct 16, 2020
5bb00e1
user registration FLASK app with readme
euranofshin Oct 18, 2020
15983f8
Merge pull request #190 from StatisticalReinforcementLearningLab/mash…
mashfiqui-rabbi Oct 18, 2020
9dba8ec
removed sensitive files
euranofshin Oct 20, 2020
04ab979
no message
mashfiqui-rabbi Oct 26, 2020
a0a20a4
Merge branch 'harvard/dev' into harvard/eura-issue-187
mashfiqui-rabbi Nov 15, 2020
7e84fed
Merge pull request #188 from StatisticalReinforcementLearningLab/harv…
mashfiqui-rabbi Nov 15, 2020
ed937ee
Added qmood.
mashfiqui-rabbi Nov 15, 2020
0c1698d
Add files via upload
sarahrathnam Nov 15, 2020
7962a06
Update Sample Altair plots.ipynb
sarahrathnam Nov 16, 2020
17072ec
Early pipeline. codes
mashfiqui-rabbi Nov 18, 2020
0ea4881
Add files via upload
sarahrathnam Nov 18, 2020
210a54b
Merge pull request #194 from StatisticalReinforcementLearningLab/sara…
mashfiqui-rabbi Nov 22, 2020
f2fe254
Added mood survey with a factory method for visualization. Sample ipy…
mashfiqui-rabbi Nov 22, 2020
feeec18
Merge pull request #195 from StatisticalReinforcementLearningLab/harv…
mashfiqui-rabbi Nov 22, 2020
496d241
Merge branch 'harvard/mash-issue-191' into harvard/mash-issue-193
mashfiqui-rabbi Nov 25, 2020
954c77d
Checking visualization scripts and fixing sleep data.
mashfiqui-rabbi Nov 30, 2020
4f3831a
Added a sleep visualization as Visualization factory.
mashfiqui-rabbi Dec 2, 2020
6f15ccc
Merge pull request #197 from StatisticalReinforcementLearningLab/harv…
mashfiqui-rabbi Dec 2, 2020
64bf93a
- Changed the daily survey to exclude sleep questions.
mashfiqui-rabbi Feb 7, 2021
45c3591
Merge pull request #202 from StatisticalReinforcementLearningLab/harv…
mashfiqui-rabbi Feb 7, 2021
6115deb
Disabled screen usage graph.
mashfiqui-rabbi Feb 7, 2021
2761ecc
stashing before coding CHOP individual user code.
mashfiqui-rabbi Feb 19, 2021
527fc23
Individualize survey, reinforcement data processing is added. This do…
mashfiqui-rabbi Feb 26, 2021
d359f4a
Python code are organized into folders.
mashfiqui-rabbi Mar 14, 2021
af3b60b
Merge pull request #207 from StatisticalReinforcementLearningLab/harv…
mashfiqui-rabbi Mar 14, 2021
87d0a94
Delete saraSqlConfig.json
mashfiqui-rabbi May 18, 2021
99bd525
Bump handlebars from 4.1.2 to 4.7.7
dependabot[bot] Jan 18, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1,529 changes: 1,529 additions & 0 deletions .firebase/hosting.d3d3.cache

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "adapts-73370"
}
}
12 changes: 10 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
node_modules/
platforms/
www/
src/environments/environment.ts
src/environments/environment.chop.ts
src/environments/environment.prod.ts
www/
platforms/
plugins/
src/environments/environment.ts
copy_these_files/aws_scripts/aws_config.json
copy_these_files/adapts_scripts/adapts_flask/config.ini
aws_config.json
mysql_config.json
saraSqlConfig.json
89 changes: 73 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,81 @@
# SARAv2
Substance Abuse Research Assistant V2
Substance Abuse Research Assistant V2

# Dropbox Folder
Associated documents: https://www.dropbox.com/sh/pnxm4ajpkag743a/AAArpb5AH0I-6UECaYVLc8zla?dl=0
Now moved to google doc folder: https://drive.google.com/drive/folders/1P9y5-P4gLJZPHvsxDyvy7hDSVuf9W6I0?usp=sharing

## Survey Module
The survey module deals with creating survey. The surveys are defined using a JSON formatted file and the "dynamic-survey.component.ts" file converts the JSON into visual form.

You can see the links to the JSON file and "dynamic-survey.component.ts" below. We also created a sample survey in the link "\app\survey\sample-survey\sample-survey.component.ts" and "\app\survey\sample-survey\sample-survey.component.html". The "sample-survey.component.html" shows the 'one line code' that you can change to point to the survey you want to populate from "\assets\data\" directory.
# Project Description
SARA is a mobile health app to engage participants with ongoing self-reporting (e.g., completing a daily survey) using timely rewards thereby reinforcing participants for data input. [SARA version 1](https://github.com/StatisticalReinforcementLearningLab/SARA-Version1) was initially developed for adolescents and emerging adults at high-risk of substance abuse, and the reinforcement strategies were developmentally and culturally appropriate for target population.

1. Survey questions are stored in "\assets\data\questions.json"
2. "\app\survey\dynamic-survey\dynamic-survey.component.ts" generates
survey, uses services in storage module to encrpt data and upload to
cloud.

SARA version 2 is extending version 1 in a number of ways: (i) we are focusing on self-report-engagement problems for a range of health issues faced by youth. e.g., one project focuses on younger adults with cancer and we are using SARA to increase self-reports on factors related to medication adherence. (ii) we are creating a modularized and open-source version so that other research groups can take the code and easily adapt the code for their own research problems. (iii) we are focusing on developing and deploying reinforcement algorithms to develiver the right reward at the right time so that people stay engaged over extended period of time.

## Storage Module
The storage module is responsible to encrypt the data and send it to the server. Currently, the encryption uses AES-256 and we can save to firebase, Azure and AWS s3.
The current contributors of this project are Harvard University, University of Michigan, and Children Hospital of Philadelphia.

For more details, please check out the paper linked below or contact mashfiqui.r.s@gmail.com

<p align="center">
<img src="https://raw.githubusercontent.com/StatisticalReinforcementLearningLab/SARA-Version1/master/app_code/9850-169539-1-SP.png" width="650"/>
</p>

For the SARA app:

```tex
@article{rabbi2018toward,
title={Toward increasing engagement in substance use data collection: development of the Substance Abuse Research Assistant app and protocol for a microrandomized trial using adolescents and emerging adults},
author={Rabbi, Mashfiqui and Kotov, Meredith Philyaw and Cunningham, Rebecca and Bonar, Erin E and Nahum-Shani, Inbal and Klasnja, Predrag and Walton, Maureen and Murphy, Susan},
journal={JMIR research protocols},
volume={7},
number={7},
year={2018},
publisher={JMIR Publications Inc.}
}
```

If you are interested in causal inference with binary outcome in a time-varying setting then please cite:

```tex
The manuscript is in preparation. For an early draft, please refer to https://arxiv.org/abs/1906.00528 or contact
mrabbi@fas.harvard.edu or qiantianchen.thu@gmail.com

For an informal description of the method see the "analysis_code" folder at the following link

https://github.com/StatisticalReinforcementLearningLab/SARA-Version1/tree/master/analysis_code.
```





# How to run this code
SARA version 2 uses Angular 8 and ionic 4. Ionic is a cross-platform language written in Javascript. The ionic [starter project guideline](https://ionicframework.com/getting-started) is excellent and it is great point start.

Once you get used the ionic starter project, you can clone our repo and all you need to do is type the following command. A new browser window will open up with SARA running.

```
ionic serve
```




# Code Description
SARA version 2 code is designed to be modular and extendible. The following diagram shows the different modules in SARA. Each module is described in detail in their respective readme files.

<p align="center">
<img src="https://raw.githubusercontent.com/StatisticalReinforcementLearningLab/SARAv2/master/modular_sara.png" width="650"/>
</p>

Direct links to readme files for each of the modules are below:
- [Survey](https://github.com/StatisticalReinforcementLearningLab/SARAv2/tree/master/src/app/survey)
- [Incentive](https://github.com/StatisticalReinforcementLearningLab/SARAv2/tree/master/src/app/incentive)
- [Storage](https://github.com/StatisticalReinforcementLearningLab/SARAv2/tree/master/src/app/storage)

Our code heavily uses modules, components and service architecture from Angular 2 or above. If you are new to this architecture, we found [this Udemy course](https://www.udemy.com/course/the-complete-angular-master-class/) to be very helpful.


# RL Algorithm Documentation
The documentation for the RL algorithm deployed on SARA version 2 can be found [here](https://hackmd.io/@NmVUyGhZTtGsYYlVWJx9uQ/BJangREBv).

1. Configuration for firebase, Azure and AWS s3 are all stored in
"\environments\environment.ts"
2. Encrypt data service: encrdecrservice.service.ts.
3. Upload the encrypted data to AWS s3, Azure or Firebase:
aws-s3.service.ts, azure.service.ts or
store-to-firebase.service.ts
Loading