<commit_before><?hh //partial

namespace hhpack\typesafety\spec;

use hhpack\typesafety\Arguments;
use hhpack\typesafety\ApplicationContext;

describe(ApplicationContext::class, function() {
  beforeEach(function() {
    $this->context = ApplicationContext::fromArray([
      'script.hh',
      'output.json'
    ]);
  });
  describe('#getArguments', function() {
    it('return Arguments instance', function() {
      expect($this->context->getArguments())->toBeAnInstanceOf(Arguments::class);
    });
  });
});<commit_msg>fix spec<commit_after><?hh //partial

namespace hhpack\typesafety\spec;

use hhpack\typesafety\Arguments;
use hhpack\typesafety\ApplicationContext;

describe(ApplicationContext::class, function() {
  beforeEach(function() {
    $this->context = ApplicationContext::fromArray([ 'script.hh' ]);
  });
  describe('#getArguments', function() {
    it('return Arguments instance', function() {
      $args = $this->context->getArguments();
      expect($args->getScriptName())->toBe('script.hh');
      expect($args->getRootDirectory())->toBe((string) getcwd());
    });
  });
});
{'fraction_non_alphanumeric': 0.17925386715195632, 'fraction_numerical': 0.0, 'mean_word_length': 4.945945945945946, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, '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': '4415834', 'n_tokens_mistral': 330, 'n_tokens_neox': 323, 'n_words': 48}