<commit_before>package Bio::KBase::Workflow::KBW;


use strict;
use File::Spec;
use File::Find;

sub install_path
{
   return File::Spec->catpath((File::Spec->splitpath(__FILE__))[0,1], '');
}

sub list_workflows
{
   my $wfd = install_path();
   find (sub {print $File::Find::dir, "/", $_, "\n" unless -d;}, $wfd);
}<commit_msg>return a list of workflows instead of a string<commit_after>package Bio::KBase::Workflow::KBW;


use strict;
use File::Spec;
use File::Find;

sub install_path
{
   return File::Spec->catpath((File::Spec->splitpath(__FILE__))[0,1], '');
}

sub list_workflows
{
   my @list = ();
   my $wfd = install_path();
   find (sub { push @list, $File::Find::dir . "/" . $_
                 unless (-d or /KBW\.pm/);
             }, $wfd);
   return @list;
}

1;
{'fraction_non_alphanumeric': 0.19768934531450577, 'fraction_numerical': 0.006418485237483954, 'mean_word_length': 3.7560975609756095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '217579', 'n_tokens_mistral': 299, 'n_tokens_neox': 290, 'n_words': 65}