<commit_before>import numpy as np
import eagerpy as ep

from ..utils import flatten
from ..utils import atleast_kd


class InversionAttack:
    """Creates "negative images" by inverting the pixel values according to
    [1]_.
    References
    ----------
    .. [1] <NAME>, <NAME>, <NAME>, <NAME>,
           "On the Limitation of Convolutional Neural Networks in Recognizing
           Negative Images",
            https://arxiv.org/abs/1607.02533
    """
<commit_msg>removed unnessary imports<commit_after>import eagerpy as ep


class InversionAttack:
    """Creates "negative images" by inverting the pixel values according to
    [1]_.
    References
    ----------
    .. [1] <NAME>, <NAME>, <NAME>, <NAME>,
           "On the Limitation of Convolutional Neural Networks in Recognizing
           Negative Images",
            https://arxiv.org/abs/1607.02533
    """

{'fraction_non_alphanumeric': 0.12114285714285715, 'fraction_numerical': 0.025142857142857144, 'mean_word_length': 2.4488188976377954, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '3939383', 'n_tokens_mistral': 275, 'n_tokens_neox': 246, 'n_words': 84}