<commit_before><?php

require_once 'PHPUnit/Extensions/SeleniumTestCase.php';

class RequestWebTest extends PHPUnit_Extensions_SeleniumTestCase
{
  protected function setUp()
  {
    $this->setBrowser("*firefox");
    $this->setBrowserUrl("http://vusion-test.texttochange.org/");
  }

  public function testRequestAddDelet()
  {
    $this->open("/users/login");
    $this->type("id=UserEmail", "<EMAIL>");
    $this->type("id=UserPassword", "<PASSWORD>");
    $this->click("css=input[type=\"submit\"]");
    $this->waitForPageToLoad("30000");
    $this->click("link=Programs Management");
    $this->waitForPageToLoad("30000");
    $this->click("css=div.ttc-program-box");
    $this->waitForPageToLoad("30000");
    $this->click("link=New Message");
    $this->waitForPageToLoad("30000");
    $this->type("id=name", "Test Announcement");
    $this->select("id=UnattachedMessageSend-to-typeAll");
    $this->type("id=UnattachedMessageContent", "Hello everyone");
    $this->click("id=UnattachedMessageType-scheduleImmediately");
    $this->click("id=UnattachedMessageType-scheduleFixedTime");
    $this->click("id=fixed-time");
    $this->click("xpath=(//button[@type='button'])[2]");
    $this->click("id=UnattachedMessageType-scheduleImmediately");
    $this->click("css=input[type=\"submit\"]");
    $this->waitForPageToLoad("30000");
    $this->assertTrue($this->isTextPresent("Test Announcement"));<commit_msg>fix webtest<commit_after><?php

require_once 'PHPUnit/Extensions/SeleniumTestCase.php';

class RequestWebTest extends PHPUnit_Extensions_SeleniumTestCase
{
  protected function setUp()
  {
    $this->setBrowser("*firefox");
    $this->setBrowserUrl("http://vusion-test.texttochange.org/");
  }

  public function testRequestAddDelet()
  {
    $this->open("/users/login");
    $this->type("id=UserEmail", "<EMAIL>");
    $this->type("id=UserPassword", "<PASSWORD>");
    $this->click("css=input[type=\"submit\"]");
    $this->waitForPageToLoad("30000");
    $this->click("link=Programs Management");
    $this->waitForPageToLoad("30000");
    $this->click("css=div.ttc-program-box");
    $this->waitForPageToLoad("30000");
    $this->click("link=New Separate Message");
    $this->waitForPageToLoad("30000");
    $this->type("id=name", "Test Announcement");
    $this->select("id=UnattachedMessageSend-to-typeAll");
    $this->type("id=UnattachedMessageContent", "Hello everyone");
    $this->click("id=UnattachedMessageType-scheduleImmediately");
    $this->click("id=UnattachedMessageType-scheduleFixedTime");
    $this->click("id=fixed-time");
    $this->click("xpath=(//button[@type='button'])[2]");
    $this->click("id=UnattachedMessageType-scheduleImmediately");
    $this->click("css=input[type=\"submit\"]");
    $this->waitForPageToLoad("30000");
    $this->assertTrue($this->isTextPresent("Test Announcement"));
{'fraction_non_alphanumeric': 0.20599647266313934, 'fraction_numerical': 0.01834215167548501, 'mean_word_length': 5.736342042755345, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 57, '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': '3204490', 'n_tokens_mistral': 968, 'n_tokens_neox': 934, 'n_words': 93}