<commit_before># -*- coding: utf-8 -*-

# Copyright 2018, IBM.
#
# This source code is licensed under the Apache License, Version 2.0 found in
# the LICENSE.txt file in the root directory of this source tree.

# pylint: disable=redefined-builtin

""" Schemas test"""
import unittest
import json
import os
from qiskit import (compile, SchemaValidationError,
                    validate_json_against_schema, _create_validator)
from qiskit import __path__ as qiskit_path
import qiskit._schema_validation
from .common import QiskitTestCase, Path


class TestSchemaExamples(QiskitTestCase):
    """
    Tests schema valiation
    """

    def setUp(self):
        self.schema_tests = []
        self.schema_tests.append({"schema_name": "backend_configuration",
                             "examples": [
                                 "backend_configuration_openpulse_example.json",
                                 "backend_configuration_openqasm_example.json",
                                 "backend_configuration_openqasm_simulator_example.json"
                                 ]})<commit_msg>fix docstring typo<commit_after># -*- coding: utf-8 -*-

# Copyright 2018, IBM.
#
# This source code is licensed under the Apache License, Version 2.0 found in
# the LICENSE.txt file in the root directory of this source tree.

# pylint: disable=redefined-builtin

""" Schemas test"""
import unittest
import json
import os
from qiskit import (compile, SchemaValidationError,
                    validate_json_against_schema, _create_validator)
from qiskit import __path__ as qiskit_path
import qiskit._schema_validation
from .common import QiskitTestCase, Path


class TestSchemaExamples(QiskitTestCase):
    """
    Tests schema validation
    """

    def setUp(self):
        self.schema_tests = []
        self.schema_tests.append({"schema_name": "backend_configuration",
                             "examples": [
                                 "backend_configuration_openpulse_example.json",
                                 "backend_configuration_openqasm_example.json",
                                 "backend_configuration_openqasm_simulator_example.json"
                                 ]})
{'fraction_non_alphanumeric': 0.07629427792915532, 'fraction_numerical': 0.006357856494096276, 'mean_word_length': 2.3840245775729647, 'pattern_counts': {'":': 4, '<': 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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1333396', 'n_tokens_mistral': 580, 'n_tokens_neox': 559, 'n_words': 150}