<commit_before># -*- coding: utf-8 -*-
# Copyright (c) 2015, imageio contributors
# imageio is distributed under the terms of the (new) BSD License.

# This docstring is used at the index of the documentation pages, and
# gets inserted into a slightly larger description (in setup.py) for
# the page on Pypi:
""" 
Imageio is a Python library that provides an easy interface to read and
write a wide range of image data, including animated images, volumetric
data, and scientific formats. It is cross-platform, runs on Python 2.x
and 3.x, and is easy to install.

Main website: http://imageio.github.io
"""

__version__ = '1.3' 

# Load some bits from core
from .core import FormatManager, RETURN_BYTES  # noqa

# Instantiate format manager
formats = FormatManager()

# Load the functions
from .core.functions import help  # noqa
from .core.functions import get_reader, get_writer  # noqa
from .core.functions import imread, mimread, volread, mvolread  # noqa
from .core.functions import imwrite, mimwrite, volwrite, mvolwrite  # noqa

# Load function aliases
from .core.functions import read, save  # noqa
from .core.functions import imsave, mimsave, volsave, mvolsave  # noqa

# Load all the plugins
from . import plugins  # noqa

# Clean up some names
del FormatManager
<commit_msg>Expose a list of available formats<commit_after># -*- coding: utf-8 -*-
# Copyright (c) 2015, imageio contributors
# imageio is distributed under the terms of the (new) BSD License.

# This docstring is used at the index of the documentation pages, and
# gets inserted into a slightly larger description (in setup.py) for
# the page on Pypi:
""" 
Imageio is a Python library that provides an easy interface to read and
write a wide range of image data, including animated images, volumetric
data, and scientific formats. It is cross-platform, runs on Python 2.x
and 3.x, and is easy to install.

Main website: http://imageio.github.io
"""

__version__ = '1.3' 

# Load some bits from core
from .core import FormatManager, RETURN_BYTES  # noqa

# Instantiate format manager
formats = FormatManager()

# Load the functions
from .core.functions import help  # noqa
from .core.functions import get_reader, get_writer  # noqa
from .core.functions import imread, mimread, volread, mvolread  # noqa
from .core.functions import imwrite, mimwrite, volwrite, mvolwrite  # noqa

# Load function aliases
from .core.functions import read, save  # noqa
from .core.functions import imsave, mimsave, volsave, mvolsave  # noqa

# Load all the plugins
from . import plugins  # noqa

available_plugins = [f.name for f in formats._formats]

# Clean up some names
del FormatManager

{'fraction_non_alphanumeric': 0.07523629489603025, 'fraction_numerical': 0.006805293005671078, 'mean_word_length': 4.229249011857707, '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': '765729', 'n_tokens_mistral': 781, 'n_tokens_neox': 762, 'n_words': 349}