# Path: mimicus/config.py
# def _mkdir_p(path):
# def parse_config():
# 
# Path: mimicus/tools/utility.py
# def print_stats_cutoff(y_true, y_pred, cutoffs):
# def print_stats_binary(y_true, y_pred):
# def file_sha256_hash(filename):
# def get_pdfs(source):
# def mkdir_p(path):
#     BLOCK_SIZE = checksum_builder.block_size * 1024


import json
import os
import time
from mimicus import config
from mimicus.tools import utility
    00000162        Structure: endobj
    0000016E        Structure: obj
    0000018B        Structure: 6 0 R
    000001B1        Structure: 1 0 R
    000001C4        Structure: endobj
    000001D0        Structure: obj
    000001EA        Structure: 4 0 R
    000001F0        Structure: /OpenAction
    000001FC        Structure: 1 0 R
    00000224        Structure: endobj
    00000230        Structure: obj
    00000310        Structure: endobj
    00000318        Structure: xref
    000003D5        Structure: trailer
    000003EC        Structure: 7 0 R
    000003F8        Structure: 8 0 R
    0000047E        Structure: startxref
    0000048D        Structure: %EOF
    
    These are then saved in the 'metadata' field of a Python dictionary 
    and returned as result. An additional field 'success' is inserted with 
    a boolean value indicating if the query was performed successfully, 
    i.e., metadata was retrieved. 
    '''

    def __init__(self):
        '''
        Constructor
        '''
        self.query_dir = config.get('pdfratequeryscheduler', 'query_dir')

# Path: mimicus/config.py
# def _mkdir_p(path):
# def parse_config():
# 
# Path: mimicus/tools/utility.py
# def print_stats_cutoff(y_true, y_pred, cutoffs):
# def print_stats_binary(y_true, y_pred):
# def file_sha256_hash(filename):
# def get_pdfs(source):
# def mkdir_p(path):
#     BLOCK_SIZE = checksum_builder.block_size * 1024


# Path: mimicus/tools/pdfratequeryhandler.py
import json
import os
import time
from mimicus import config
from mimicus.tools import utility

    00000162        Structure: endobj
    0000016E        Structure: obj
    0000018B        Structure: 6 0 R
    000001B1        Structure: 1 0 R
    000001C4        Structure: endobj
    000001D0        Structure: obj
    000001EA        Structure: 4 0 R
    000001F0        Structure: /OpenAction
    000001FC        Structure: 1 0 R
    00000224        Structure: endobj
    00000230        Structure: obj
    00000310        Structure: endobj
    00000318        Structure: xref
    000003D5        Structure: trailer
    000003EC        Structure: 7 0 R
    000003F8        Structure: 8 0 R
    0000047E        Structure: startxref
    0000048D        Structure: %EOF
    
    These are then saved in the 'metadata' field of a Python dictionary 
    and returned as result. An additional field 'success' is inserted with 
    a boolean value indicating if the query was performed successfully, 
    i.e., metadata was retrieved. 
    '''

    def __init__(self):
        '''
        Constructor
        '''
        self.query_dir = config.get('pdfratequeryscheduler', 'query_dir')

        self.reply_dir = config.get('pdfratequeryscheduler', 'reply_dir')