<commit_before>import logging
import os
from reference_data.management.commands.utils.download_utils import download_file
from reference_data.management.commands.utils.update_utils import GeneCommand, ReferenceDataHandler
from reference_data.models import GeneExpression

logger = logging.getLogger(__name__)

GTEX_SAMPLE_ANNOTATIONS = 'https://storage.googleapis.com/gtex_analysis_v7/annotations/GTEx_v7_Annotations_SampleAttributesDS.txt'


class GtexReferenceDataHandler(ReferenceDataHandler):

    model_cls = GeneExpression
    url = 'https://storage.googleapis.com/gtex_analysis_v7/rna_seq_data/GTEx_Analysis_2016-01-15_v7_RNASeQCv1.1.8_gene_tpm.gct.gz'
    batch_size = 10000

    def __init__(self, gtex_sample_annotations_path=None, keep_existing_records=False, **kwargs):<commit_msg>fix gtext batch size<commit_after>import logging
import os
from reference_data.management.commands.utils.download_utils import download_file
from reference_data.management.commands.utils.update_utils import GeneCommand, ReferenceDataHandler
from reference_data.models import GeneExpression

logger = logging.getLogger(__name__)

GTEX_SAMPLE_ANNOTATIONS = 'https://storage.googleapis.com/gtex_analysis_v7/annotations/GTEx_v7_Annotations_SampleAttributesDS.txt'


class GtexReferenceDataHandler(ReferenceDataHandler):

    model_cls = GeneExpression
    url = 'https://storage.googleapis.com/gtex_analysis_v7/rna_seq_data/GTEx_Analysis_2016-01-15_v7_RNASeQCv1.1.8_gene_tpm.gct.gz'
    batch_size = 1000

    def __init__(self, gtex_sample_annotations_path=None, keep_existing_records=False, **kwargs):
{'fraction_non_alphanumeric': 0.07663316582914573, 'fraction_numerical': 0.024497487437185928, 'mean_word_length': 7.564516129032258, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4223310', 'n_tokens_mistral': 524, 'n_tokens_neox': 486, 'n_words': 70}