test_class.declarator: pythonExecutionEngine
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private PythonExecutionEngine pythonExecutionEngine;
test_class.type: PythonExecutionEngine
test_class.var_name: pythonExecutionEngine
test_class.file: runtime-management/runtime-management-impl/src/test/java/io/cloudslang/runtime/impl/python/PythonExecutionCachedEngineTest.java
test_class.identifier: PythonExecutionCachedEngineTest
test_class.superclass: extends AbsExecutionCachedEngineTest
test_case.body: @Test
      public void testPythonExecutorReleasedAfterSuccessExecution() {
          final PythonExecutor pythonExecutor = mock(PythonExecutor.class);
          PythonExecutionCachedEngine engine = new PythonExecutionCachedEngine() {
              public PythonExecutor allocateExecutor(Set<String> dependencies) {
                  return pythonExecutor;
              }
          };
          engine.exec(Collections.<String>emptySet(),"", new HashMap<String, Serializable>());
          verify(pythonExecutor).release();
      }
test_case.class_method_signature: PythonExecutionCachedEngineTest.testPythonExecutorReleasedAfterSuccessExecution()
test_case.full_signature: @Test public void testPythonExecutorReleasedAfterSuccessExecution()
test_case.identifier: testPythonExecutorReleasedAfterSuccessExecution
test_case.invocations: mock exec emptySet release verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testPythonExecutorReleasedAfterSuccessExecution()
focal_class.declarator: dependencyService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private DependencyService dependencyService;
focal_class.type: DependencyService
focal_class.var_name: dependencyService
focal_class.declarator: cacheSize
focal_class.modifier: @Value("#{systemProperties['" + PythonExecutionConfigurationConsts.PYTHON_EXECUTOR_CACHE_SIZE + "'] != null ? systemProperties['" + PythonExecutionConfigurationConsts.PYTHON_EXECUTOR_CACHE_SIZE + "'] : " + PythonExecutionConfigurationConsts.PYTHON_EXECUTOR_CACHE_DEFAULT_SIZE + "}")
      private
focal_class.original_string: @Value("#{systemProperties['" + PythonExecutionConfigurationConsts.PYTHON_EXECUTOR_CACHE_SIZE + "'] != null ? systemProperties['" + PythonExecutionConfigurationConsts.PYTHON_EXECUTOR_CACHE_SIZE + "'] : " + PythonExecutionConfigurationConsts.PYTHON_EXECUTOR_CACHE_DEFAULT_SIZE + "}")
      private int cacheSize;
focal_class.type: int
focal_class.var_name: cacheSize
focal_class.file: runtime-management/runtime-management-impl/src/main/java/io/cloudslang/runtime/impl/python/PythonExecutionCachedEngine.java
focal_class.identifier: PythonExecutionCachedEngine
focal_class.interfaces: implements PythonExecutionEngine
focal_class.class_method_signature: PythonExecutionCachedEngine.exec(Set<String> dependencies, String script, Map<String, Serializable> vars)
focal_class.full_signature: @Override public PythonExecutionResult exec(Set<String> dependencies, String script, Map<String, Serializable> vars)
focal_class.identifier: exec
focal_class.modifiers: @Override public
focal_class.parameters: (Set<String> dependencies, String script, Map<String, Serializable> vars)
focal_class.return: PythonExecutionResult
focal_class.signature: PythonExecutionResult exec(Set<String> dependencies, String script, Map<String, Serializable> vars)
focal_class.class_method_signature: PythonExecutionCachedEngine.eval(String prepareEnvironmentScript, String script, Map<String, Serializable> vars)
focal_class.full_signature: @Override public PythonEvaluationResult eval(String prepareEnvironmentScript, String script, Map<String, Serializable> vars)
focal_class.identifier: eval
focal_class.modifiers: @Override public
focal_class.parameters: (String prepareEnvironmentScript, String script, Map<String, Serializable> vars)
focal_class.return: PythonEvaluationResult
focal_class.signature: PythonEvaluationResult eval(String prepareEnvironmentScript, String script, Map<String, Serializable> vars)
focal_class.class_method_signature: PythonExecutionCachedEngine.getDependencyService()
focal_class.full_signature: @Override protected DependencyService getDependencyService()
focal_class.identifier: getDependencyService
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: DependencyService
focal_class.signature: DependencyService getDependencyService()
focal_class.class_method_signature: PythonExecutionCachedEngine.getCacheSize()
focal_class.full_signature: @Override protected int getCacheSize()
focal_class.identifier: getCacheSize
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getCacheSize()
focal_class.class_method_signature: PythonExecutionCachedEngine.createNewExecutor(Set<String> filePaths)
focal_class.full_signature: @Override protected PythonExecutor createNewExecutor(Set<String> filePaths)
focal_class.identifier: createNewExecutor
focal_class.modifiers: @Override protected
focal_class.parameters: (Set<String> filePaths)
focal_class.return: PythonExecutor
focal_class.signature: PythonExecutor createNewExecutor(Set<String> filePaths)
focal_class.superclass: extends ExecutionCachedEngine<PythonExecutor>
focal_method.body: @Override
      public PythonExecutionResult exec(Set<String> dependencies, String script, Map<String, Serializable> vars) {
          PythonExecutor executor = allocateExecutor(dependencies);
          try {
              return executor.exec(script, vars);
          } finally {
              releaseExecutor(executor);
          }
      }
focal_method.class_method_signature: PythonExecutionCachedEngine.exec(Set<String> dependencies, String script, Map<String, Serializable> vars)
focal_method.full_signature: @Override public PythonExecutionResult exec(Set<String> dependencies, String script, Map<String, Serializable> vars)
focal_method.identifier: exec
focal_method.invocations: allocateExecutor exec releaseExecutor
focal_method.modifiers: @Override public
focal_method.parameters: (Set<String> dependencies, String script, Map<String, Serializable> vars)
focal_method.return: PythonExecutionResult
focal_method.signature: PythonExecutionResult exec(Set<String> dependencies, String script, Map<String, Serializable> vars)