<commit_before><?php
/**
 * A basic command to write cli output via Symfony\Component\Console\Output\ConsoleOutput
 */

namespace Fortissimo\CLI\IO;

/**
 * This command prints a message to output.
 *
 * The output datasource is expected to conform to the interface
 * \Fortissimo\CLI\IO\Output.
 */
class WriteLine extends \Fortissimo\Command\Base {

  public function expects() {
    return $this
      ->description('The line of test to display in the console.')
      ->usesParam('text', 'The text to display.')
      ->usesParam('output', 'The console output object.')
      ;
  }

  public function doCommand() {
    $text = $this->param('text');
    $output = $this->datasource('output');

    $output->writeln($text);
  }
}<commit_msg>Updated the WriteLine command to actually work with datasources.<commit_after><?php
/**
 * A basic command to write cli output via Symfony\Component\Console\Output\ConsoleOutput
 */

namespace Fortissimo\CLI\IO;

/**
 * This command prints a message to output.
 *
 * The output datasource is expected to conform to the interface
 * \Fortissimo\CLI\IO\Output.
 */
class WriteLine extends \Fortissimo\Command\Base {

  public function expects() {
    return $this
      ->description('The line of test to display in the console.')
      ->usesParam('text', 'The text to display.')
      ;
  }

  public function doCommand() {
    $text = $this->param('text');
    $output = $this->context->datasource('output');

    $output->writeln($text);
  }
}
{'fraction_non_alphanumeric': 0.13239247311827956, 'fraction_numerical': 0.0, 'mean_word_length': 3.3794117647058823, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '911940', 'n_tokens_mistral': 447, 'n_tokens_neox': 432, 'n_words': 135}