<commit_before>Migration steps:

Pre steps (cottoned in the migration_presteps document):


-3. Create copies of tables in 3.6 database for migrated data
-2. Run pg dump to extract tables copies
-1. Import copied tables into 4.0 database


Migration:

1. run migrate_users script

2. run migrate_dataverses script

3. * run dataset APIs

4. * run post dataset scrubbing

5. * run files script

__________________________________________________

Still to be migrated:
- Permissions
- Groups
- Guestbook / stats
- Templates

__________________________________________________

Not being migrated (verify?):
-- Study Comments
-- File Access requests
-- Classifications
-- Study locks
-- VDCNetworkStats (generated data)<commit_msg>add .sql to migrate scripts<commit_after>Migration steps:

Pre steps (contained in the migration_presteps document):


-3. Create copies of tables in 3.6 database for migrated data
-2. Run pg dump to extract tables copies
-1. Import copied tables into 4.0 database


Migration:

1. run migrate_users.sql script

2. run migrate_dataverses.sql script

3. * run dataset APIs

4. * run post dataset scrubbing

5. * run files script

__________________________________________________

Still to be migrated:
- Permissions
- Groups
- Guestbook / stats
- Templates

__________________________________________________

Not being migrated (verify?):
-- Study Comments
-- File Access requests
-- Classifications
-- Study locks
-- VDCNetworkStats (generated data)
{'fraction_non_alphanumeric': 0.06414584740040513, 'fraction_numerical': 0.016205266711681297, 'mean_word_length': 4.25531914893617, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7649894', 'n_tokens_mistral': 403, 'n_tokens_neox': 378, 'n_words': 165}