<commit_before><?php


namespace LastCall\Patterns\Core\ServiceProvider;


use LastCall\Patterns\Core\Variable\ScalarFactory;
use LastCall\Patterns\Core\Variable\ScalarType;
use LastCall\Patterns\Core\Variable\VariableFactory;
use LastCall\Patterns\Core\Variable\VariableSet;
use Pimple\Container;
use Pimple\ServiceProviderInterface;

class VariableServiceProvider implements ServiceProviderInterface {

  public function register(Container $pimple) {
    $pimple['variable.types'] = function() {
      return [];
    };
    $pimple['variable.factories'] = function() {
      return ['scalar' => new ScalarFactory()]
    };
    $pimple['variables.global'] = function() {
      return new VariableSet([
        'global' => new ScalarType('boolean', TRUE)
      ]);
    };
    $pimple['variable.factory'] = function() use ($pimple) {
      return new VariableFactory($pimple['variable.types'], $pimple['variable.factories']);
    };
  }

}<commit_msg>Fix syntax error in VariableServiceProvider<commit_after><?php


namespace LastCall\Patterns\Core\ServiceProvider;


use LastCall\Patterns\Core\Variable\ScalarFactory;
use LastCall\Patterns\Core\Variable\ScalarType;
use LastCall\Patterns\Core\Variable\VariableFactory;
use LastCall\Patterns\Core\Variable\VariableSet;
use Pimple\Container;
use Pimple\ServiceProviderInterface;

class VariableServiceProvider implements ServiceProviderInterface {

  public function register(Container $pimple) {
    $pimple['variable.types'] = function() {
      return [];
    };
    $pimple['variable.factories'] = function() {
      return ['scalar' => new ScalarFactory()];
    };
    $pimple['variables.global'] = function() {
      return new VariableSet([
        'global' => new ScalarType('boolean', TRUE)
      ]);
    };
    $pimple['variable.factory'] = function() use ($pimple) {
      return new VariableFactory($pimple['variable.types'], $pimple['variable.factories']);
    };
  }

}
{'fraction_non_alphanumeric': 0.13723459347488348, 'fraction_numerical': 0.0, 'mean_word_length': 4.411764705882353, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6808487', 'n_tokens_mistral': 575, 'n_tokens_neox': 543, 'n_words': 102}