<commit_before>import 'package:dotdotcommadot_commands/dotdotcommadot_commands.dart';
import 'login_command.dart';
import 'print_hello_world_hook.dart';
import 'blocking_guard.dart';
import 'non_blocking_guard.dart';

void main()
{
	/*// Trigger Chain of Commands: When Order is Relevant
	new LoginCommand().execute()
		.then((result) => result.isSucceeded? new LoginCommand().execute() : result)
		.then((result) => result.isSucceeded? new LoginCommand().execute() : result)
		.then((result) => result.isSucceeded? new LoginCommand().execute() : result)
		.then((result) => print("End of Chain of Commands: When Order is Relevant"));

	
	// Trigger Chain of Commands: When Order is Irrelevant
	// NOTE: the body of the execution method will be run synchronously.
	// Only the completing of the commands is asynchronously.
	List<Future> chain = [new LoginCommand().execute(), 
	                      new LoginCommand().execute(), 
	                      new LoginCommand().execute()];
	
	Future.wait(chain)
		.then( (List<CommandResult> results) 
	{
		results.forEach((CommandResult result) => print(result.isSucceeded.toString()));
		print("End of Chain of Commands: When Order is Irrelevant");
	});*/


	// Trigger Chain of Commands: When Order is Irrelevant
	// NOTE: the body of the execution method will be run synchronously.
	// Only the completing of the commands is asynchronously.
	CommandRunner runner = new CommandRunner();

	runner.addAll([
    new LoginCommand()
      .withHooks([new PrintHelloWorldHook()])
      .withGuards([new NonBlockingGuard()]),

     new LoginCommand()
      .withHooks([new PrintHelloWorldHook()])
      .withGuards([new NonBlockingGuard()]),

     new LoginCommand()
      .withHooks([new PrintHelloWorldHook()])
      .withGuards([new NonBlockingGuard()])
  ]);

	runner.run()
		.then((List<CommandResult> results) => results.where((R) => !R.isSucceeded).forEach((R) => print(R.message)));
}<commit_msg>Updates README<commit_after>import 'package:dotdotcommadot_commands/dotdotcommadot_commands.dart';
import 'login_command.dart';
import 'print_hello_world_hook.dart';
import 'blocking_guard.dart';
import 'non_blocking_guard.dart';

void main()
{
	/*// Trigger Chain of Commands: When Order is Relevant
	new LoginCommand().execute()
		.then((result) => result.isSucceeded? new LoginCommand().execute() : result)
		.then((result) => result.isSucceeded? new LoginCommand().execute() : result)
		.then((result) => result.isSucceeded? new LoginCommand().execute() : result)
		.then((result) => print("End of Chain of Commands: When Order is Relevant"));

	
	// Trigger Chain of Commands: When Order is Irrelevant
	// NOTE: the body of the execution method will be run synchronously.
	// Only the completing of the commands is asynchronously.
	List<Future> chain = [new LoginCommand().execute(), 
	                      new LoginCommand().execute(), 
	                      new LoginCommand().execute()];
	
	Future.wait(chain)
		.then( (List<CommandResult> results) 
	{
		results.forEach((CommandResult result) => print(result.isSucceeded.toString()));
		print("End of Chain of Commands: When Order is Irrelevant");
	});*/


	// Trigger Chain of Commands: When Order is Irrelevant
	// NOTE: the body of the execution method will be run synchronously.
	// Only the completing of the commands is asynchronously.
	CommandRunner runner = new CommandRunner();

	runner.addAll([
    new LoginCommand()
      .withHooks([new PrintHelloWorldHook()])
      .withGuards([new NonBlockingGuard()]),

     new LoginCommand()
      .withHooks([new PrintHelloWorldHook()])
      .withGuards([new BlockingGuard()]),

     new LoginCommand()
      .withHooks([new PrintHelloWorldHook()])
      .withGuards([new BlockingGuard()])
  ]);

	runner.run()
		.then((List<CommandResult> results) => results.where((R) => !R.isSucceeded).forEach((R) => print(R.message)));
}
{'fraction_non_alphanumeric': 0.13745173745173744, 'fraction_numerical': 0.0, 'mean_word_length': 4.099737532808399, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 25, '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': '7301858', 'n_tokens_mistral': 1200, 'n_tokens_neox': 1124, 'n_words': 309}