<commit_before>from src.sysl import syslloader, sysldata
import unittest
import re, os, sys

import traceback

import argparse as ap

class TestSetOf(unittest.TestCase):

  def test_set_of(self):

    try:
      (module, _, _) = syslloader.load('/test/data/test_data', True, '.')

      d = {
        'project' : 'TestData :: Data Views',
        'output'  : 'test_set_of-data.png',
        'plantuml': '',
        'verbose' : '',
        'filter'  : None,
      }
      args = ap.Namespace(**d)

      out = sysldata.dataviews(module, args)

      self.assertTrue('_0  *-- "0..*" _1' in out[0])

    except (IOError, Exception) as e:
      self.fail(traceback.format_exc())

if __name__ == '__main__':
  unittest.main()<commit_msg>more informative test failure in test_sysldata<commit_after>from src.sysl import syslloader, sysldata
import unittest
import re, os, sys

import traceback

import argparse as ap

class TestSetOf(unittest.TestCase):

  def test_set_of(self):

    try:
      (module, _, _) = syslloader.load('/test/data/test_data', True, '.')

      d = {
        'project' : 'TestData :: Data Views',
        'output'  : 'test_set_of-data.png',
        'plantuml': '',
        'verbose' : '',
        'filter'  : None,
      }
      args = ap.Namespace(**d)

      out = sysldata.dataviews(module, args)

      self.assertTrue('_0  *-- "0..*" _1' in out[0], out[0])

    except (IOError, Exception) as e:
      self.fail(traceback.format_exc())

if __name__ == '__main__':
  unittest.main()
{'fraction_non_alphanumeric': 0.15083056478405316, 'fraction_numerical': 0.005980066445182724, 'mean_word_length': 2.7185185185185183, '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': '487778', 'n_tokens_mistral': 545, 'n_tokens_neox': 533, 'n_words': 117}