<commit_before>#!/bin/bash
mongo localhost:27017/one_gridfs mongo-to-sql.js > /tmp/mongo-to-sql.sql.tmp
more +2 /tmp/mongo-to-sql.sql.tmp > /tmp/mongo-to-sql.sql
psql -h localhost -p 5432 -d ong -U "web-education" -f /tmp/mongo-to-sql.sql
rm /tmp/mongo-to-sql.sql.tmp
rm /tmp/mongo-to-sql.sql<commit_msg>migration script<commit_after>#!/bin/bash
mongo localhost:27017/one_gridfs mongo-to-sql.js > /tmp/mongo-to-sql.sql.tmp
more +3 /tmp/mongo-to-sql.sql.tmp > /tmp/mongo-to-sql.sql
psql -h localhost -p 5432 -d ong -U "web-education" -f /tmp/mongo-to-sql.sql
rm /tmp/mongo-to-sql.sql.tmp
rm /tmp/mongo-to-sql.sql
{'fraction_non_alphanumeric': 0.18330605564648117, 'fraction_numerical': 0.03273322422258593, 'mean_word_length': 3.3098591549295775, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2359783', 'n_tokens_mistral': 301, 'n_tokens_neox': 278, 'n_words': 48}