<commit_before><?php

include(dirname(__FILE__).'/../../bootstrap/functional.php');

$browser = new DarwinTestFunctional(new sfBrowser());
$browser->loadData($configuration)->login('root','evil');
$browser->setTester('doctrine', 'sfTesterDoctrine');
$people = Doctrine::getTable('People')->findOneByFamilyName('Chambert') ;
$reguser = $browser->addCustomUserAndLogin('reguser','evil') ;
$encoder = $browser->addCustomUserAndLogin('encoder','evil') ;

$browser->
  info('1 - New Loan screen')->
  get('/loan/new')->
  with('request')->begin()->
    isParameter('module', 'loan')->
    isParameter('action', 'new')->
  end()->
  info('1.1 - is everything ok on screen')->
  with('response')->begin()->
    isStatusCode(200)->
    checkElement('title','Add loan')->
    checkElement('.board_col',1)->
    checkElement('.board_col .widget:first .widget_top_bar span','/Loan/')->
    checkElement('.board_col .widget:nth-child(2) .widget_top_bar span','/Actors/')->
    checkElement('.board_col .widget:nth-child(3) .widget_top_bar span','/Loan Status/')->
    checkElement('.board_col .widget:nth-child(4) .widget_top_bar span','/Properties/')->
    checkElement('.board_col .widget:nth-child(5) .widget_top_bar span','/Comments/')->
    checkElement('.board_col .widget:nth-child(6) .widget_top_bar span','/Insurances/')->
    checkElement('.board_col .widget:nth-child(7) .widget_top_bar span','/Related Files/')->
    checkElement('.board_col .widget:nth-child(8) .widget_top_bar span','/Darwin Users/')->
    end()->
    click('#submit_loan',
          array('loans'=> array(
              'name' => 'loan for test',
              'newActorsSender' => array(
                                    0 => array(
                                      'people_ref' => $people->getId(),
                                      'people_type' => 'sender',
                                      'people_sub_type' => array(2),
                                      'order_by' => 1
                                              )
                                      ),
             'newActorsReceiver' => array(
                                    0 => array(
                                      'people_ref' => $people->getId(),<commit_msg>correct a test<commit_after><?php

include(dirname(__FILE__).'/../../bootstrap/functional.php');

$browser = new DarwinTestFunctional(new sfBrowser());
$browser->loadData($configuration)->login('root','evil');
$browser->setTester('doctrine', 'sfTesterDoctrine');
$people = Doctrine::getTable('People')->findOneByFamilyName('Chambert') ;
$reguser = $browser->addCustomUserAndLogin('reguser','evil') ;
$encoder = $browser->addCustomUserAndLogin('encoder','evil') ;

$browser->
  info('1 - New Loan screen')->
  get('/loan/new')->
  with('request')->begin()->
    isParameter('module', 'loan')->
    isParameter('action', 'new')->
  end()->
  info('1.1 - is everything ok on screen')->
  with('response')->begin()->
    isStatusCode(200)->
    checkElement('title','Add loan')->
    checkElement('.board_col',1)->
    checkElement('.board_col .widget:first .widget_top_bar span','/Loan/')->
    checkElement('.board_col .widget:nth-child(2) .widget_top_bar span','/People involved/')->
    checkElement('.board_col .widget:nth-child(3) .widget_top_bar span','/Loan Status/')->
    checkElement('.board_col .widget:nth-child(4) .widget_top_bar span','/Properties/')->
    checkElement('.board_col .widget:nth-child(5) .widget_top_bar span','/Comments/')->
    checkElement('.board_col .widget:nth-child(6) .widget_top_bar span','/Insurances/')->
    checkElement('.board_col .widget:nth-child(7) .widget_top_bar span','/Related Files/')->
    checkElement('.board_col .widget:nth-child(8) .widget_top_bar span','/Darwin Users/')->
    end()->
    click('#submit_loan',
          array('loans'=> array(
              'name' => '<NAME>',
              'newActorsSender' => array(
                                    0 => array(
                                      'people_ref' => $people->getId(),
                                      'people_type' => 'sender',
                                      'people_sub_type' => array(2),
                                      'order_by' => 1
                                              )
                                      ),
             'newActorsReceiver' => array(
                                    0 => array(
                                      'people_ref' => $people->getId(),
{'fraction_non_alphanumeric': 0.18238852789603405, 'fraction_numerical': 0.008066323101053104, 'mean_word_length': 2.253644314868805, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 88, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4617196', 'n_tokens_mistral': 1292, 'n_tokens_neox': 1253, 'n_words': 198}