<commit_before>__author__ = '<NAME>'

import unittest

from ctree.visual.dot_manager import DotManager
import ctree.visual.dot_manager
from ctree.frontend import get_ast
from fixtures.sample_asts import *


def square_of(n):
    return n * n

class TestDotManager(unittest.TestCase):
    """
    Difficult to test because of ipython and dot dependencies
    """

    @unittest.skip
    def test_c_identity(self):
        tree = get_ast(square_of)
        DotManager.run_dot(tree.to_dot())


<commit_msg>fixed missing 'reason' arg in test_dot_manager unittest.skip<commit_after>__author__ = '<NAME>'

import unittest

from ctree.visual.dot_manager import DotManager
import ctree.visual.dot_manager
from ctree.frontend import get_ast
from fixtures.sample_asts import *


def square_of(n):
    return n * n

class TestDotManager(unittest.TestCase):
    """
    Difficult to test because of ipython and dot dependencies
    """

    @unittest.skip("difficult to test because of ipython and dot dependencies")
    def test_c_identity(self):
        tree = get_ast(square_of)
        DotManager.run_dot(tree.to_dot())



{'fraction_non_alphanumeric': 0.08348294434470377, 'fraction_numerical': 0.0, 'mean_word_length': 4.0225225225225225, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4706072', 'n_tokens_mistral': 362, 'n_tokens_neox': 343, 'n_words': 92}