<commit_before>import io
import logging
import os.path as op
from collections import defaultdict

from bioservices import KEGG
from slugify import Slugify

import ssbio.utils
from ssbio.protein.sequence.seqprop import SeqProp

log = logging.getLogger(__name__)
custom_slugify = Slugify(safe_chars='-_')
bs_kegg = KEGG()


class KEGGProp(SeqProp):
    def __init__(self, kegg_id, sequence_path=None, metadata_path=None):

        SeqProp.__init__(self, ident=kegg_id, sequence_path=sequence_path, metadata_path=metadata_path)

        if kegg_id:
            self.kegg = kegg_id

        if metadata_path:
            self.load_metadata_path(metadata_path)

    def load_metadata_path(self, metadata_path):
        SeqProp.load_metadata_path(self, metadata_path)<commit_msg>Use more explicit variable names<commit_after>import io
import logging
import os.path as op
from collections import defaultdict

from bioservices import KEGG
from slugify import Slugify

import ssbio.utils
from ssbio.protein.sequence.seqprop import SeqProp

log = logging.getLogger(__name__)
custom_slugify = Slugify(safe_chars='-_')
bs_kegg = KEGG()


class KEGGProp(SeqProp):
    def __init__(self, kegg_id, fasta_path=None, metadata_path=None):

        SeqProp.__init__(self, ident=kegg_id, sequence_path=fasta_path, metadata_path=metadata_path)

        if kegg_id:
            self.kegg = kegg_id

        if metadata_path:
            self.load_metadata_path(metadata_path)

    def load_metadata_path(self, metadata_path):
        SeqProp.load_metadata_path(self, metadata_path)
{'fraction_non_alphanumeric': 0.07312379730596537, 'fraction_numerical': 0.0, 'mean_word_length': 4.397923875432526, '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': '736795', 'n_tokens_mistral': 517, 'n_tokens_neox': 493, 'n_words': 113}