import os
import random


DATA_FOLDER = "/scratch1/NOT_BACKED_UP/ahauptma/TensorflowTemp/CT_gradBoost/MS-LGD_mayoNew/mayo/slices/"
DATA_FOLDER_TEST = "/scratch1/NOT_BACKED_UP/ahauptma/TensorflowTemp/CT_gradBoost/MS-LGD_mayoNew/mayo/slicesTest/"


class FileLoader(object):
    def __init__(self, folder, exclude):
        self.folder = folder
        self.exclude = exclude
        self.load_files()

    def load_files(self):
        self.files = []
        for (dirpath, dirnames, filenames) in os.walk(self.folder):
            self.files.extend([os.path.join(self.folder, fi) for fi in filenames
                               if not fi.startswith(self.exclude)])
        random.shuffle(self.files)

    def next_file(self):
        if not self.files:
            self.load_files()
        return self.files.pop()
    
    
class FileLoaderEval(object):
    def __init__(self, folder, exclude):
        self.folder = folder
        self.exclude = exclude
        self.load_files()

    def load_files(self):
        self.files = []
        for (dirpath, dirnames, filenames) in os.walk(self.folder):
            self.files.extend([os.path.join(self.folder, fi) for fi in filenames
                               if fi.startswith(self.exclude)])
       

    def next_file(self):
        if not self.files:
            self.load_files()
        return self.files.pop()    
8243dfc84d3d0957add41b804a3b307e76eb8b4b
<mask token>


class FileLoaderEval(object):

    def __init__(self, folder, exclude):
        self.folder = folder
        self.exclude = exclude
        self.load_files()

    def load_files(self):
        self.files = []
        for dirpath, dirnames, filenames in os.walk(self.folder):
            self.files.extend([os.path.join(self.folder, fi) for fi in
                filenames if fi.startswith(self.exclude)])

    def next_file(self):
        if not self.files:
            self.load_files()
        return self.files.pop()

<mask token>


class FileLoader(object):

    def __init__(self, folder, exclude):
        self.folder = folder
        self.exclude = exclude
        self.load_files()
    <mask token>

    def next_file(self):
        if not self.files:
            self.load_files()
        return self.files.pop()


class FileLoaderEval(object):

    def __init__(self, folder, exclude):
        self.folder = folder
        self.exclude = exclude
        self.load_files()

    def load_files(self):
        self.files = []
        for dirpath, dirnames, filenames in os.walk(self.folder):
            self.files.extend([os.path.join(self.folder, fi) for fi in
                filenames if fi.startswith(self.exclude)])

    def next_file(self):
        if not self.files:
            self.load_files()
        return self.files.pop()

<mask token>


class FileLoader(object):

    def __init__(self, folder, exclude):
        self.folder = folder
        self.exclude = exclude
        self.load_files()

    def load_files(self):
        self.files = []
        for dirpath, dirnames, filenames in os.walk(self.folder):
            self.files.extend([os.path.join(self.folder, fi) for fi in
                filenames if not fi.startswith(self.exclude)])
        random.shuffle(self.files)

    def next_file(self):
        if not self.files:
            self.load_files()
        return self.files.pop()


class FileLoaderEval(object):

    def __init__(self, folder, exclude):
        self.folder = folder
        self.exclude = exclude
        self.load_files()

    def load_files(self):
        self.files = []
        for dirpath, dirnames, filenames in os.walk(self.folder):
            self.files.extend([os.path.join(self.folder, fi) for fi in
                filenames if fi.startswith(self.exclude)])

    def next_file(self):
        if not self.files:
            self.load_files()
        return self.files.pop()

<mask token>
DATA_FOLDER = (
    '/scratch1/NOT_BACKED_UP/ahauptma/TensorflowTemp/CT_gradBoost/MS-LGD_mayoNew/mayo/slices/'
    )
DATA_FOLDER_TEST = (
    '/scratch1/NOT_BACKED_UP/ahauptma/TensorflowTemp/CT_gradBoost/MS-LGD_mayoNew/mayo/slicesTest/'
    )


class FileLoader(object):

    def __init__(self, folder, exclude):
        self.folder = folder
        self.exclude = exclude
        self.load_files()

    def load_files(self):
        self.files = []
        for dirpath, dirnames, filenames in os.walk(self.folder):
            self.files.extend([os.path.join(self.folder, fi) for fi in
                filenames if not fi.startswith(self.exclude)])
        random.shuffle(self.files)

    def next_file(self):
        if not self.files:
            self.load_files()
        return self.files.pop()


class FileLoaderEval(object):

    def __init__(self, folder, exclude):
        self.folder = folder
        self.exclude = exclude
        self.load_files()

    def load_files(self):
        self.files = []
        for dirpath, dirnames, filenames in os.walk(self.folder):
            self.files.extend([os.path.join(self.folder, fi) for fi in
                filenames if fi.startswith(self.exclude)])

    def next_file(self):
        if not self.files:
            self.load_files()
        return self.files.pop()

import os
import random


DATA_FOLDER = "/scratch1/NOT_BACKED_UP/ahauptma/TensorflowTemp/CT_gradBoost/MS-LGD_mayoNew/mayo/slices/"
DATA_FOLDER_TEST = "/scratch1/NOT_BACKED_UP/ahauptma/TensorflowTemp/CT_gradBoost/MS-LGD_mayoNew/mayo/slicesTest/"


class FileLoader(object):
    def __init__(self, folder, exclude):
        self.folder = folder
        self.exclude = exclude
        self.load_files()

    def load_files(self):
        self.files = []
        for (dirpath, dirnames, filenames) in os.walk(self.folder):
            self.files.extend([os.path.join(self.folder, fi) for fi in filenames
                               if not fi.startswith(self.exclude)])
        random.shuffle(self.files)

    def next_file(self):
        if not self.files:
            self.load_files()
        return self.files.pop()
    
    
class FileLoaderEval(object):
    def __init__(self, folder, exclude):
        self.folder = folder
        self.exclude = exclude
        self.load_files()

    def load_files(self):
        self.files = []
        for (dirpath, dirnames, filenames) in os.walk(self.folder):
            self.files.extend([os.path.join(self.folder, fi) for fi in filenames
                               if fi.startswith(self.exclude)])
       

    def next_file(self):
        if not self.files:
            self.load_files()
        return self.files.pop()    