<commit_before>import os, datetime, mimetypes, re, inspect, time  
from PIL import Image
from base64 import b64encode, b64decode
from hashlib import md5
from string import maketrans
from tarfile import TarFile
from django.core.cache import cache
from django.utils.translation import ugettext as _
from elfinder.exceptions import ElfinderErrorMessages, FileNotFoundError, DirNotFoundError, PermissionDeniedError, NamedError, NotAnImageError
from elfinder.utils.archivers import ZipFileArchiver

class ElfinderVolumeDriver(object):
    """
    The base volume finder. Every elfinder volume driver should subclass this.
    """
    
    #The driver id.
    #Must started with a letter and contain only [a-z0-9]
    #Used as part of volume id
    _driverId = 'a'
    
    #Directory separator - required by client
    _separator = os.sep
    
    #Mimetypes allowed to display
    _onlyMimes = []
    
    #Store files movedsubstr( or overwrited files info
    _removed = []
    
    #Cache by folders
    _dirsCache = []
    
    #*********************************************************************#
    #*                            INITIALIZATION                         *#
    #*********************************************************************#
    
    def __init__(self):
        """
        Default constructor
        """

        #Volume id - used as prefix for files hashes
        self._id = ''
        #Flag - volume "mounted" and available
        self._mounted = False
        #Root directory path
        self._root = ''
        #Root basename | alias
        self._rootName = ''
        #Default directory to open
        self._startPath = ''
        #Is thumbnails dir writable
        self._tmbPathWritable = False
        #Archivers config
        self._archivers = {
            'create' : {},
            'extract' : {}
        }<commit_msg>removed unnecessary _dirsCache attribute<commit_after>import os, datetime, mimetypes, re, inspect, time  
from PIL import Image
from base64 import b64encode, b64decode
from hashlib import md5
from string import maketrans
from tarfile import TarFile
from django.core.cache import cache
from django.utils.translation import ugettext as _
from elfinder.exceptions import ElfinderErrorMessages, FileNotFoundError, DirNotFoundError, PermissionDeniedError, NamedError, NotAnImageError
from elfinder.utils.archivers import ZipFileArchiver

class ElfinderVolumeDriver(object):
    """
    The base volume finder. Every elfinder volume driver should subclass this.
    """
    
    #The driver id.
    #Must started with a letter and contain only [a-z0-9]
    #Used as part of volume id
    _driverId = 'a'
    
    #Directory separator - required by client
    _separator = os.sep
    
    #Mimetypes allowed to display
    _onlyMimes = []
    
    #Store files movedsubstr( or overwrited files info
    _removed = []
    
    #*********************************************************************#
    #*                            INITIALIZATION                         *#
    #*********************************************************************#
    
    def __init__(self):
        """
        Default constructor
        """

        #Volume id - used as prefix for files hashes
        self._id = ''
        #Flag - volume "mounted" and available
        self._mounted = False
        #Root directory path
        self._root = ''
        #Root basename | alias
        self._rootName = ''
        #Default directory to open
        self._startPath = ''
        #Is thumbnails dir writable
        self._tmbPathWritable = False
        #Archivers config
        self._archivers = {
            'create' : {},
            'extract' : {}
        }
{'fraction_non_alphanumeric': 0.14023732470334413, 'fraction_numerical': 0.0048543689320388345, 'mean_word_length': 2.443825441039926, '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': '2192914', 'n_tokens_mistral': 972, 'n_tokens_neox': 928, 'n_words': 303}