<commit_before># =============================================================================
# COPYRIGHT 2013 Brain Corporation.
# License under MIT license (see LICENSE file)
# =============================================================================

import pytest
from robustus.detail import perform_standard_test


def test_openni_installation(tmpdir):
    tmpdir.chdir()
    # ok if sensor is not connected, should fail if library not found
    exprs = ['from primesense import openni2', 'openni2.initialize()']
    dependencies = ['OpenNI']
    perform_standard_test('primesense==2.2.0.30-5', exprs, [], dependencies)


if __name__ == '__main__':
    pytest.main('-s %s -n0' % __file__)<commit_msg>try to fix openni test<commit_after># =============================================================================
# COPYRIGHT 2013 Brain Corporation.
# License under MIT license (see LICENSE file)
# =============================================================================

import pytest
from robustus.detail import perform_standard_test


def test_openni_installation(tmpdir):
    tmpdir.chdir()
    # ok if sensor is not connected, should fail if library not found
    exprs = ['from primesense import openni2\nopenni2.initialize()']
    dependencies = ['OpenNI']
    perform_standard_test('primesense==2.2.0.30-5', exprs, [], dependencies)


if __name__ == '__main__':
    pytest.main('-s %s -n0' % __file__)
{'fraction_non_alphanumeric': 0.3041345480028031, 'fraction_numerical': 0.018220042046250877, 'mean_word_length': 5.898550724637682, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2242428', 'n_tokens_mistral': 398, 'n_tokens_neox': 366, 'n_words': 104}