<commit_before>/**
 * ****************************************************************************
 * (c) Copyright 2014 Hewlett-Packard Development Company, L.P.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Apache License v2.0 which accompany this distribution.
 * <p/>
 * The Apache License is available at
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p/>
 * *****************************************************************************
 */
package io.cloudslang.lang.runtime.bindings.scripts;

import io.cloudslang.runtime.api.python.PythonRuntimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Collections;
import java.util.Map;
import java.util.Set;

/**
 * @author <NAME>
 * @since 1/19/2016
 */
@Component
public class ScriptExecutor {
    @Autowired
    private PythonRuntimeService pythonRuntimeService;

    public Map<String, Serializable> executeScript (String script, Map<String, Serializable> callArguments) {
        return pythonRuntimeService.exec(Collections.<String>emptySet(), script, callArguments);
    }

    public Map<String, Serializable> executeScript (Set dependencies, String script, Map<String, Serializable> callArguments) {
        return pythonRuntimeService.exec(dependencies, script, callArguments);
    }
}<commit_msg>fixing Set to Set<String><commit_after>/**
 * ****************************************************************************
 * (c) Copyright 2014 Hewlett-Packard Development Company, L.P.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Apache License v2.0 which accompany this distribution.
 * <p/>
 * The Apache License is available at
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p/>
 * *****************************************************************************
 */
package io.cloudslang.lang.runtime.bindings.scripts;

import io.cloudslang.runtime.api.python.PythonRuntimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Collections;
import java.util.Map;
import java.util.Set;

/**
 * @author <NAME>
 * @since 1/19/2016
 */
@Component
public class ScriptExecutor {
    @Autowired
    private PythonRuntimeService pythonRuntimeService;

    public Map<String, Serializable> executeScript (String script, Map<String, Serializable> callArguments) {
        return pythonRuntimeService.exec(Collections.<String>emptySet(), script, callArguments);
    }

    public Map<String, Serializable> executeScript (Set<String> dependencies, String script, Map<String, Serializable> callArguments) {
        return pythonRuntimeService.exec(dependencies, script, callArguments);
    }
}
{'fraction_non_alphanumeric': 0.19766643788606725, 'fraction_numerical': 0.01029512697323267, 'mean_word_length': 5.364628820960698, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '6652748', 'n_tokens_mistral': 752, 'n_tokens_neox': 714, 'n_words': 197}