<commit_before>import os
import mock
import pytest

from cloudify_system_workflows.blueprint import extract_parser_context
from cloudify.exceptions import InvalidBlueprintImport

MARKETPLACE_API_UPL = "http://127.0.0.1"

mock_plugin_data = {
    "items": [
        {
            "name": "cloudify-openstack-plugin",
            "logo_url":
                "https://cloudify.co/wp-content/uploads/2019/08/oslogo.png",
            "id": "6f58d23f-f5e5-4477-8dff-7684bba8e7bf"
        },
    ]
}
mock_plugin_data_empty = {
    "items": []
}


mock_plugin_versions = {
    "items": [
        {
            "version": "2.14.17",
            "yaml_urls": [{
                "dsl_version": "cloudify_dsl_1_3",
                "url": "cloudify-openstack-plugin/2.14.17/plugin.yaml"
            }],
            "wagon_urls": [{
                "release": "Centos Core",
                "url": "cloudify-openstack-plugin_2.14.17.wgn"
            }]
        },
        {
            "version": "3.2.21",
            "yaml_urls": [
                {
                    "dsl_version": "cloudify_dsl_1_3",
                    "url": "cloudify-openstack-plugin/3.2.21/plugin.yaml",
                },
                {
                    "dsl_version": "cloudify_dsl_1_4",
                    "url": "cloudify-openstack-plugin/3.2.22/v2_plugin.yaml",
                }
            ],
            "wagon_urls": [{
                "release": "Centos Core",
                "url": "cloudify-openstack-plugin_3.2.21.wgn"<commit_msg>RD-5083 fix typo in test (#3718)<commit_after>import os
import mock
import pytest

from cloudify_system_workflows.blueprint import extract_parser_context
from cloudify.exceptions import InvalidBlueprintImport

MARKETPLACE_API_UPL = "http://1172.16.17.32"

mock_plugin_data = {
    "items": [
        {
            "name": "cloudify-openstack-plugin",
            "logo_url":
                "https://cloudify.co/wp-content/uploads/2019/08/oslogo.png",
            "id": "6f58d23f-f5e5-4477-8dff-7684bba8e7bf"
        },
    ]
}
mock_plugin_data_empty = {
    "items": []
}


mock_plugin_versions = {
    "items": [
        {
            "version": "2.14.17",
            "yaml_urls": [{
                "dsl_version": "cloudify_dsl_1_3",
                "url": "cloudify-openstack-plugin/2.14.17/plugin.yaml"
            }],
            "wagon_urls": [{
                "release": "Centos Core",
                "url": "cloudify-openstack-plugin_2.14.17.wgn"
            }]
        },
        {
            "version": "3.2.21",
            "yaml_urls": [
                {
                    "dsl_version": "cloudify_dsl_1_3",
                    "url": "cloudify-openstack-plugin/3.2.21/plugin.yaml",
                },
                {
                    "dsl_version": "cloudify_dsl_1_4",
                    "url": "cloudify-openstack-plugin/3.2.21/v2_plugin.yaml",
                }
            ],
            "wagon_urls": [{
                "release": "Centos Core",
                "url": "cloudify-openstack-plugin_3.2.21.wgn"
{'fraction_non_alphanumeric': 0.14018997707173272, 'fraction_numerical': 0.04847690795938421, 'mean_word_length': 1.5094494658997535, 'pattern_counts': {'":': 44, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1379421', 'n_tokens_mistral': 1098, 'n_tokens_neox': 1018, 'n_words': 120}