<commit_before>import csv
import glob
import sys
from django.core.management.base import BaseCommand, CommandError
from frontend.models import Chemical


class Command(BaseCommand):
    args = ''
    help = 'Import any chemicals not present in the BNF codes list. '
    help += 'This helps us avoid integrity errors when importing the data. '

    def add_arguments(self, parser):
        parser.add_argument('--chem_file')<commit_msg>Clarify instructions on ordering<commit_after>import csv
import glob
import sys
from django.core.management.base import BaseCommand, CommandError
from frontend.models import Chemical


class Command(BaseCommand):
    args = ''
    help = 'Import any chemicals not present in the BNF codes list. '
    help += 'This helps us avoid integrity errors when importing the data. '
    help += 'You should have run import_bnf_codes before running this.'

    def add_arguments(self, parser):
        parser.add_argument('--chem_file')
{'fraction_non_alphanumeric': 0.07596253902185224, 'fraction_numerical': 0.0, 'mean_word_length': 4.08994708994709, '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': '7060692', 'n_tokens_mistral': 257, 'n_tokens_neox': 246, 'n_words': 99}