import os
import pickle
import hickle

def save_hickle_file(filename, data):
    filename = filename + '.hickle'
    print ('Saving to %s' % filename)

    with open(filename, 'w') as f:
        hickle.dump(data, f, mode='w')

def load_hickle_file(filename):
    filename = filename + '.hickle'
    if os.path.isfile(filename):
        print ('Loading %s ...' % filename)
        data = hickle.load(filename)
        return data
    return None

def save_pickle_file(filename, data):
    filename = filename + '.pickle'
    print ('Saving to %s' % filename,)

    with open(filename, 'wb') as f:
        try:
            pickle.dump(data, f)
        except Exception:
            print ('Cannot pickle to %s' % filename)

def load_pickle_file(filename):
    filename = filename + '.pickle'
    if os.path.isfile(filename):
        print ('Loading %s ...' % filename,)
        with open(filename, 'rb') as f:
            data = pickle.load(f)
            return data
    return None

13501537fec4c8bcc01b8c02780964ff7b8d2d49
<mask token>


def save_hickle_file(filename, data):
    filename = filename + '.hickle'
    print('Saving to %s' % filename)
    with open(filename, 'w') as f:
        hickle.dump(data, f, mode='w')


<mask token>


def save_pickle_file(filename, data):
    filename = filename + '.pickle'
    print('Saving to %s' % filename)
    with open(filename, 'wb') as f:
        try:
            pickle.dump(data, f)
        except Exception:
            print('Cannot pickle to %s' % filename)


<mask token>

<mask token>


def save_hickle_file(filename, data):
    filename = filename + '.hickle'
    print('Saving to %s' % filename)
    with open(filename, 'w') as f:
        hickle.dump(data, f, mode='w')


def load_hickle_file(filename):
    filename = filename + '.hickle'
    if os.path.isfile(filename):
        print('Loading %s ...' % filename)
        data = hickle.load(filename)
        return data
    return None


def save_pickle_file(filename, data):
    filename = filename + '.pickle'
    print('Saving to %s' % filename)
    with open(filename, 'wb') as f:
        try:
            pickle.dump(data, f)
        except Exception:
            print('Cannot pickle to %s' % filename)


<mask token>

<mask token>


def save_hickle_file(filename, data):
    filename = filename + '.hickle'
    print('Saving to %s' % filename)
    with open(filename, 'w') as f:
        hickle.dump(data, f, mode='w')


def load_hickle_file(filename):
    filename = filename + '.hickle'
    if os.path.isfile(filename):
        print('Loading %s ...' % filename)
        data = hickle.load(filename)
        return data
    return None


def save_pickle_file(filename, data):
    filename = filename + '.pickle'
    print('Saving to %s' % filename)
    with open(filename, 'wb') as f:
        try:
            pickle.dump(data, f)
        except Exception:
            print('Cannot pickle to %s' % filename)


def load_pickle_file(filename):
    filename = filename + '.pickle'
    if os.path.isfile(filename):
        print('Loading %s ...' % filename)
        with open(filename, 'rb') as f:
            data = pickle.load(f)
            return data
    return None

import os
import pickle
import hickle


def save_hickle_file(filename, data):
    filename = filename + '.hickle'
    print('Saving to %s' % filename)
    with open(filename, 'w') as f:
        hickle.dump(data, f, mode='w')


def load_hickle_file(filename):
    filename = filename + '.hickle'
    if os.path.isfile(filename):
        print('Loading %s ...' % filename)
        data = hickle.load(filename)
        return data
    return None


def save_pickle_file(filename, data):
    filename = filename + '.pickle'
    print('Saving to %s' % filename)
    with open(filename, 'wb') as f:
        try:
            pickle.dump(data, f)
        except Exception:
            print('Cannot pickle to %s' % filename)


def load_pickle_file(filename):
    filename = filename + '.pickle'
    if os.path.isfile(filename):
        print('Loading %s ...' % filename)
        with open(filename, 'rb') as f:
            data = pickle.load(f)
            return data
    return None

import os
import pickle
import hickle

def save_hickle_file(filename, data):
    filename = filename + '.hickle'
    print ('Saving to %s' % filename)

    with open(filename, 'w') as f:
        hickle.dump(data, f, mode='w')

def load_hickle_file(filename):
    filename = filename + '.hickle'
    if os.path.isfile(filename):
        print ('Loading %s ...' % filename)
        data = hickle.load(filename)
        return data
    return None

def save_pickle_file(filename, data):
    filename = filename + '.pickle'
    print ('Saving to %s' % filename,)

    with open(filename, 'wb') as f:
        try:
            pickle.dump(data, f)
        except Exception:
            print ('Cannot pickle to %s' % filename)

def load_pickle_file(filename):
    filename = filename + '.pickle'
    if os.path.isfile(filename):
        print ('Loading %s ...' % filename,)
        with open(filename, 'rb') as f:
            data = pickle.load(f)
            return data
    return None
