<commit_before>import pytest
from helpers import compute_volume

import pygmsh


@pytest.mark.skipif(
    int(pygmsh.__gmsh_version__.split(".")[0]) < 3, reason="requires Gmsh >= 3"
)
def test():
    with pygmsh.occ.Geometry() as geom:
        # test setters, getters
        print(geom.characteristic_length_min)
        print(geom.characteristic_length_max)
        geom.characteristic_length_min = 2.0
        geom.characteristic_length_max = 2.0

        rect1 = geom.add_rectangle([10.0, 0.0, 0.0], 20.0, 40.0, corner_radius=5.0)
        rect2 = geom.add_rectangle([0.0, 10.0, 0.0], 40.0, 20.0, corner_radius=5.0)
        disk1 = geom.add_disk([14.5, 35.0, 0.0], 1.85)
        disk2 = geom.add_disk([25.5, 5.0, 0.0], 1.85)<commit_msg>lint fix<commit_after>from helpers import compute_volume

import pygmsh


def test():
    with pygmsh.occ.Geometry() as geom:
        # test setters, getters
        print(geom.characteristic_length_min)
        print(geom.characteristic_length_max)
        geom.characteristic_length_min = 2.0
        geom.characteristic_length_max = 2.0

        rect1 = geom.add_rectangle([10.0, 0.0, 0.0], 20.0, 40.0, corner_radius=5.0)
        rect2 = geom.add_rectangle([0.0, 10.0, 0.0], 40.0, 20.0, corner_radius=5.0)
        disk1 = geom.add_disk([14.5, 35.0, 0.0], 1.85)
        disk2 = geom.add_disk([25.5, 5.0, 0.0], 1.85)
{'fraction_non_alphanumeric': 0.14528023598820058, 'fraction_numerical': 0.08923303834808259, 'mean_word_length': 2.8994252873563218, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '7113207', 'n_tokens_mistral': 608, 'n_tokens_neox': 537, 'n_words': 98}