<commit_before><?php

/**
 * Test jquery
 *
 * @author <NAME> <<EMAIL>>
 * @license http://opensource.org/licenses/MIT  MIT License
 */
namespace Apnet\Tests;

use Apnet\FunctionalTestBundle\Framework\WebTestCase;

/**
 * Test jquery
 */
class BootstrapTest extends WebTestCase
{

  /**
   * Test imported files
   *
   * @param string $source Source path in app/Resources
   * @param string $target Target path
   *
   * @return null
   * @dataProvider staticCollectionProvider
   */
  public function testImportedFiles($source, $target)
  {
    $client = self::createClient();

    $client->request("GET", $target);
    $response = $client->getResponse();

    $this->assertEquals(200, $response->getStatusCode());

    $container = $client->getContainer();
    $path = $container->getParameter("kernel.root_dir") . "/Resources" . $source;

    $this->assertEquals(
      file_get_contents($path), $response->getContent()
    );
  }
<commit_msg>Cleanup<commit_after><?php

/**
 * Test bootstrap
 *
 * @author <NAME> <<EMAIL>>
 * @license http://opensource.org/licenses/MIT  MIT License
 */
namespace Apnet\Tests;

use Apnet\FunctionalTestBundle\Framework\WebTestCase;

/**
 * Test bootstrap
 */
class BootstrapTest extends WebTestCase
{

  /**
   * Test imported files
   *
   * @param string $source Source path in app/Resources
   * @param string $target Target path
   *
   * @return null
   * @dataProvider staticCollectionProvider
   */
  public function testImportedFiles($source, $target)
  {
    $client = self::createClient();

    $client->request("GET", $target);
    $response = $client->getResponse();

    $this->assertEquals(200, $response->getStatusCode());

    $container = $client->getContainer();
    $path = $container->getParameter("kernel.root_dir") . "/Resources" . $source;

    $this->assertEquals(
      file_get_contents($path), $response->getContent()
    );
  }

{'fraction_non_alphanumeric': 0.15205913410770855, 'fraction_numerical': 0.0031678986272439284, 'mean_word_length': 3.6790123456790123, 'pattern_counts': {'":': 0, '<': 11, '<?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': '2116504', 'n_tokens_mistral': 576, 'n_tokens_neox': 559, 'n_words': 120}