<commit_before>[buildout]
parts = blockdiag test tox static_analysis

develop = .

[blockdiag]
recipe = zc.recipe.egg
eggs = blockdiag[rst]
interpreter = py

[test]
recipe = pbp.recipe.noserunner
eggs =
    blockdiag[rst]
    blockdiag[test]
    coverage
    unittest-xml-reporting

[tox]
recipe = zc.recipe.egg
eggs =
    tox
    detox

[static_analysis]
recipe = zc.recipe.egg
eggs =
    coverage
    flake8
    pylint
scripts =
    coverage
    flake8
    pylint

[test-extra]
recipe = iw.recipe.cmd:py
on_install = true
cmds =
   >>> url = "http://sourceforge.jp/frs/redir.php?m=jaist&f=%2Fvlgothic%2F46966%2FVLGothic-20100416.zip"
   >>> buildout_dir = buildout.get('directory', '.')
   >>> path = os.path.join(buildout_dir, 'src/blockdiag/tests/truetype')
   >>> if not os.path.exists(path):
   ...     os.makedirs(path)
   ...     import cStringIO, urllib2, zipfile
   ...     archive = urllib2.urlopen(url).read()
   ...     zip = zipfile.ZipFile(cStringIO.StringIO(archive))
   ...     ttf = zip.read('VLGothic/VL-PGothic-Regular.ttf')
   ...     open(os.path.join(path, 'VL-PGothic-Regular.ttf'), 'wb').write(ttf)<commit_msg>Drop scripts variable in [static_analysis] section (unneeded)<commit_after>[buildout]
parts = blockdiag test tox static_analysis

develop = .

[blockdiag]
recipe = zc.recipe.egg
eggs = blockdiag[rst]
interpreter = py

[test]
recipe = pbp.recipe.noserunner
eggs =
    blockdiag[rst]
    blockdiag[test]
    coverage
    unittest-xml-reporting

[tox]
recipe = zc.recipe.egg
eggs =
    tox
    detox

[static_analysis]
recipe = zc.recipe.egg
eggs =
    coverage
    flake8
    pylint

[test-extra]
recipe = iw.recipe.cmd:py
on_install = true
cmds =
   >>> url = "http://sourceforge.jp/frs/redir.php?m=jaist&f=%2Fvlgothic%2F46966%2FVLGothic-20100416.zip"
   >>> buildout_dir = buildout.get('directory', '.')
   >>> path = os.path.join(buildout_dir, 'src/blockdiag/tests/truetype')
   >>> if not os.path.exists(path):
   ...     os.makedirs(path)
   ...     import cStringIO, urllib2, zipfile
   ...     archive = urllib2.urlopen(url).read()
   ...     zip = zipfile.ZipFile(cStringIO.StringIO(archive))
   ...     ttf = zip.read('VLGothic/VL-PGothic-Regular.ttf')
   ...     open(os.path.join(path, 'VL-PGothic-Regular.ttf'), 'wb').write(ttf)
{'fraction_non_alphanumeric': 0.1535415750109987, 'fraction_numerical': 0.01715794104707435, 'mean_word_length': 3.2267657992565058, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3770135', 'n_tokens_mistral': 951, 'n_tokens_neox': 908, 'n_words': 139}