# Path: adsft/tasks.py
# def task_check_if_extract(message):
# def task_extract(message):
#     def task_extract_grobid(message):
# def task_output_results(msg):
# def task_identify_facilities(message):
# 
# Path: adsft/app.py
# class ADSFulltextCelery(ADSCelery):
# 
# Path: adsft/checker.py
# def file_last_modified_time(file_input):
# def create_meta_path(dict_input, extract_path):
# def meta_output_exists(file_input, extract_path):
# def load_meta_file(file_input, extract_path):
# def meta_needs_update(dict_input, meta_content,
#                       extract_path):
# def check_if_extract(message_list, extract_path):
#     NEEDS_UPDATE = ["MISSING_FULL_TEXT", "DIFFERING_FULL_TEXT", "STALE_CONTENT",
#                     "STALE_META", "NOT_EXTRACTED_BEFORE", "FORCE_TO_EXTRACT",
#                     "FORCE_TO_SEND"]


import sys
import os
import unittest
import time
import json
from builtins import range
from mock import MagicMock
from adsft import tasks, app
from adsft import checker

         },
        {'fulltext_exists.links':
            {'bibcode': ['test'],
             'file': ['tests/test_unit/stub_data/te/st/test.pdf'],
             'provider': ['TEST']}
         },
        {'fulltext_wrong.links':
            {'bibcode': ['test'],
             'file': ['tests/test_unit/stub_data/te/st/test.ocr'],
             'provider': ['']}
         }
    ]

    stub_data = {
        'integration': {'path': integration_path,
                        'files': integration_files}
    }

    path = stub_data[test_name]['path']
    files = stub_data[test_name]['files']

    for file_dictionary in files:

        file_name = list(file_dictionary.keys())[0]
        file_ = file_dictionary[file_name]

        test_bibcode_ = file_['bibcode']
        test_file_ = file_['file']
        test_provider_ = file_['provider']


# Path: adsft/tasks.py
# def task_check_if_extract(message):
# def task_extract(message):
#     def task_extract_grobid(message):
# def task_output_results(msg):
# def task_identify_facilities(message):
# 
# Path: adsft/app.py
# class ADSFulltextCelery(ADSCelery):
# 
# Path: adsft/checker.py
# def file_last_modified_time(file_input):
# def create_meta_path(dict_input, extract_path):
# def meta_output_exists(file_input, extract_path):
# def load_meta_file(file_input, extract_path):
# def meta_needs_update(dict_input, meta_content,
#                       extract_path):
# def check_if_extract(message_list, extract_path):
#     NEEDS_UPDATE = ["MISSING_FULL_TEXT", "DIFFERING_FULL_TEXT", "STALE_CONTENT",
#                     "STALE_META", "NOT_EXTRACTED_BEFORE", "FORCE_TO_EXTRACT",
#                     "FORCE_TO_SEND"]


# Path: adsft/tests/test_base.py
import sys
import os
import unittest
import time
import json
from builtins import range
from mock import MagicMock
from adsft import tasks, app
from adsft import checker

         },
        {'fulltext_exists.links':
            {'bibcode': ['test'],
             'file': ['tests/test_unit/stub_data/te/st/test.pdf'],
             'provider': ['TEST']}
         },
        {'fulltext_wrong.links':
            {'bibcode': ['test'],
             'file': ['tests/test_unit/stub_data/te/st/test.ocr'],
             'provider': ['']}
         }
    ]

    stub_data = {
        'integration': {'path': integration_path,
                        'files': integration_files}
    }

    path = stub_data[test_name]['path']
    files = stub_data[test_name]['files']

    for file_dictionary in files:

        file_name = list(file_dictionary.keys())[0]
        file_ = file_dictionary[file_name]

        test_bibcode_ = file_['bibcode']
        test_file_ = file_['file']
        test_provider_ = file_['provider']


        links_file_path = os.path.join(tasks.app.conf['PROJ_HOME'], path) + file_name
