<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""shadow_plotter: custom plotting utility for SHADOW3_

.. _SHADOW3: https://github.com/srio/shadow3
.. _Orange-Shadow: https://github.com/lucarebuffi/Orange-Shadow
.. _ShadowOui: https://github.com/lucarebuffi/ShadowOui

TODO
----

- check compatibility with ShadowOui_ and last ShadowTools
  changes... may be the full thing is broken

- move to PyMca5 plotting objects

"""
__author__ = "<NAME>"
__email__ = "<EMAIL>"
__license__ = "BSD license <http://opensource.org/licenses/BSD-3-Clause>"
__organization__ = "European Synchrotron Radiation Facility"
__year__ = "2015"

import sys, os
import math
import numpy as np

HAS_PY3 = False
HAS_SHADOW = False
HAS_OSHADOW = False

if sys.version_info >= (3,2,0): HAS_PY3 = True

# see README.rst how to install XOP and SHADOW3
try:
    from Shadow import ShadowLibExtensions as sd
    from Shadow import ShadowTools as st
    from Shadow import ShadowToolsPrivate as stp
    HAS_SHADOW = True
except:
    #print(sys.exc_info()[1])
    pass

# new plotter with ShadowPlot and PyMca
from PyQt4 import QtCore, QtGui, uic

from PyMca5.PyMcaGui.plotting.PlotWindow import PlotWindow
from PyMca5.PyMcaGui.plotting.MaskImageWidget import MaskImageWidget

try:<commit_msg>updt metadata<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""shadow_plotter: custom plotting utility for SHADOW3_

.. _SHADOW3: https://github.com/srio/shadow3
.. _Orange-Shadow: https://github.com/lucarebuffi/Orange-Shadow
.. _ShadowOui: https://github.com/lucarebuffi/ShadowOui

TODO
----

- check compatibility with ShadowOui_ and last ShadowTools
  changes... may be the full thing is broken

- move to PyMca5 plotting objects

"""
__author__ = "<NAME>"
__email__ = "<EMAIL>"
__license__ = "BSD license <http://opensource.org/licenses/BSD-3-Clause>"
__year__ = "2015--2018"

import sys, os
import math
import numpy as np

HAS_PY3 = False
HAS_SHADOW = False
HAS_OSHADOW = False

if sys.version_info >= (3,2,0): HAS_PY3 = True

# see README.rst how to install XOP and SHADOW3
try:
    from Shadow import ShadowLibExtensions as sd
    from Shadow import ShadowTools as st
    from Shadow import ShadowToolsPrivate as stp
    HAS_SHADOW = True
except:
    #print(sys.exc_info()[1])
    pass

# new plotter with ShadowPlot and PyMca
from PyQt4 import QtCore, QtGui, uic

from PyMca5.PyMcaGui.plotting.PlotWindow import PlotWindow
from PyMca5.PyMcaGui.plotting.MaskImageWidget import MaskImageWidget

try:
{'fraction_non_alphanumeric': 0.10148415563578018, 'fraction_numerical': 0.01764941837144003, 'mean_word_length': 4.174273858921162, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 6, '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': '7467620', 'n_tokens_mistral': 897, 'n_tokens_neox': 847, 'n_words': 245}