<commit_before># DSL version, should appear in the main blueprint.yaml
# and may appear in other imports. In such case, the versions must match
tosca_definitions_version: cloudify_dsl_1_3

imports:
    # importing cloudify related types, plugins, workflow, etc...
    # to speed things up, it is possible downloading this file,
    # including it in the blueprint directory and importing it
    # instead.
    - http://www.getcloudify.org/spec/cloudify/3.4.2/types.yaml
    # relative import of plugin.yaml that resides in the blueprint directory
    - test_plugin.yaml

inputs:
#    # example input that could be injected by test
#    test_input:
#        description: an input for the test
#        default: default_test_input

    default_use_exernal_resource:
        type: boolean
        default: true

    mysql_comp_jar_path:
        type: string
        default: "~/home/vassik/mysql_arcadia.jar"

    wordpress_comp_jar_path:
        type: string
        default: "~/home/vassik/mysql_arcadia.jar"

    mysql_arcadia_component:
        type: string
        default: "mysql_id_unique"

    wordpress_arcadia_component:
        type: string
        default: "wordpress_id_unique"

#node_templates:
#    # defining a single node template that will serve as our test node
#    test_node_template:
#        # using base cloudify type
#        type: cloudify.nodes.Root
#        interfaces:
#            cloudify.interfaces.lifecycle:
#                start:
#                    # here we map the single plugin task to the start operation
#                    # of the cloudify.interfaces.lifecycle interface
#                    implementation: plugin_name.plugin.tasks.my_task
#                    inputs:
#                        # my_task accepts a single property named
#                        # some property. Here we inject this property
#                        # from the input provided by the test
#                        # (or 'default_test_input' if no input was provided)
#                        some_property: { get_input: test_input }

#outputs:
#    # example output the could be used to simplify assertions by test
#    test_output:
#        description: an output for the test
#        value: { get_attribute: [test_node_template, some_property] }

node_templates:
    mysql:
        type: cloudify.arcadia.nodes.WrappedComponent
        properties:
            use_external_resource: { get_input: default_use_exernal_resource}
            component_jar_path: { get_input: mysql_comp_jar_path}
            external_component_id: { get_input: mysql_arcadia_component }

    wordpress:
        type: cloudify.arcadia.nodes.WrappedComponent
        properties:
            use_external_resource: { get_input: default_use_exernal_resource }
            component_jar_path: { get_input: wordpress_comp_jar_path }
            external_component_id: { get_input: wordpress_arcadia_component}
        relationships:
            - type: cloudify.arcadia.relationships.connected_to
              target: mysql<commit_msg>an example how we would attach an opreration to an interface and feed in params from the blueprint<commit_after># DSL version, should appear in the main blueprint.yaml
# and may appear in other imports. In such case, the versions must match
tosca_definitions_version: cloudify_dsl_1_3

imports:
    # importing cloudify related types, plugins, workflow, etc...
    # to speed things up, it is possible downloading this file,
    # including it in the blueprint directory and importing it
    # instead.
    - http://www.getcloudify.org/spec/cloudify/3.4.2/types.yaml
    # relative import of plugin.yaml that resides in the blueprint directory
    - test_plugin.yaml

inputs:
#    # example input that could be injected by test
#    test_input:
#        description: an input for the test
#        default: default_test_input

    default_use_exernal_resource:
        type: boolean
        default: true

    mysql_comp_jar_path:
        type: string
        default: "~/home/vassik/mysql_arcadia.jar"

    wordpress_comp_jar_path:
        type: string
        default: "~/home/vassik/mysql_arcadia.jar"

    mysql_arcadia_component:
        type: string
        default: "mysql_id_unique"

    wordpress_arcadia_component:
        type: string
        default: "wordpress_id_unique"

#node_templates:
#    # defining a single node template that will serve as our test node
#    test_node_template:
#        # using base cloudify type
#        type: cloudify.nodes.Root
#        interfaces:
#            cloudify.interfaces.lifecycle:
#                start:
#                    # here we map the single plugin task to the start operation
#                    # of the cloudify.interfaces.lifecycle interface
#                    implementation: plugin_name.plugin.tasks.my_task
#                    inputs:
#                        # my_task accepts a single property named
#                        # some property. Here we inject this property
#                        # from the input provided by the test
#                        # (or 'default_test_input' if no input was provided)
#                        some_property: { get_input: test_input }

#outputs:
#    # example output the could be used to simplify assertions by test
#    test_output:
#        description: an output for the test
#        value: { get_attribute: [test_node_template, some_property] }

relationships:
    wordpress_connected_to_mysql:
        derived_from: cloudify.arcadia.relationships.connected_to

node_templates:
    mysql:
        type: cloudify.arcadia.nodes.WrappedComponent
        properties:
            use_external_resource: { get_input: default_use_exernal_resource}
            component_jar_path: { get_input: mysql_comp_jar_path}
            external_component_id: { get_input: mysql_arcadia_component }

    wordpress:
        type: cloudify.arcadia.nodes.WrappedComponent
        properties:
            use_external_resource: { get_input: default_use_exernal_resource }
            component_jar_path: { get_input: wordpress_comp_jar_path }
            external_component_id: { get_input: wordpress_arcadia_component}
        relationships:
            - type: wordpress_connected_to_mysql
              target: mysql
              source_interfaces:
                cloudify.interfaces.relationship_lifecycle:
                    preconfigure:
                        inputs:
                            args: {'args': 'value'}
{'fraction_non_alphanumeric': 0.06258692628650904, 'fraction_numerical': 0.0015453562046051615, 'mean_word_length': 2.3054136874361593, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7573184', 'n_tokens_mistral': 1791, 'n_tokens_neox': 1723, 'n_words': 493}