<commit_before>describe('Search by TAGS', function() {
    it('Search for iSpatial and clear out text box', function() {
        // Open the main site
        browser.get(theSite, 25000);

        // Enter the search term
        element(by.id('mainSearchBar')).sendKeys('iSpatial', protractor.Key.ENTER);

        // Click on the result
        element.all(by.css('.results-content-title-content')).get(0).click();

        // Click tags button to show text input field
        element.all(by.css('.fa-tags')).get(0).click();
        browser.driver.sleep(1000);

        // Clear out the text field, does NOT clear tags!
        element.all(by.css('.input.ng-pristine.ng-valid')).get(1).clear();

    }, 64000);


    it ('Add a new tag iAddedThis to iSpatial', function() {
        element.all(by.css('.input.ng-pristine.ng-valid')).get(1).sendKeys('iAddedThis', protractor.Key.ENTER);
        browser.driver.sleep(2500);
    }, 44000);


    it ('Search by the added tag iAddedThis show result and tag', function() {
        // Clear the Search
        element(by.id('globalSearch')).clear();
        element(by.id('globalSearch')).sendKeys(protractor.Key.ENTER);
        browser.driver.sleep(12000);
        expect(element.all(by.repeater('item in data')).count()).toEqual(58);

        element.all(by.css('.input.ng-pristine.ng-valid')).get(0).clear();
        element.all(by.css('.input.ng-pristine.ng-valid')).get(0).sendKeys('iAddedThis', protractor.Key.ENTER);
        browser.driver.sleep(4000);

        // Verify one (iSpatial) result
        expect(element.all(by.repeater('item in data')).count()).toEqual(1);

        // Click on the result<commit_msg>Adding to this script started weeks and weeks ago.  Getting it to work, little by little!<commit_after>describe('Search by TAGS', function() {
    it('Search for iSpatial and clear out text box', function() {
        // Open the main site
        browser.get(theSite, 25000);

        // Enter the search term
        element(by.id('mainSearchBar')).sendKeys('iSpatial', protractor.Key.ENTER);

        // Click on the result
        element.all(by.css('.results-content-title-content')).get(0).click();

        // Click tags button to show text input field
        element.all(by.css('.fa-tags')).get(0).click();
        browser.driver.sleep(1000);

        // Clear out the text field, does NOT clear tags!
        element.all(by.css('.input.ng-pristine.ng-valid')).get(1).clear();

    }, 64000);


    it ('Add a new tag iAddedThis to iSpatial', function() {
        element.all(by.css('.input.ng-pristine.ng-valid')).get(1).sendKeys('iAddedThis', protractor.Key.ENTER);
        browser.driver.sleep(2500);
    }, 44000);


    it ('Search by the added tag iAddedThis show result and tag', function() {
        // Clear the Search
        element(by.id('globalSearch')).clear();
        element(by.id('globalSearch')).sendKeys(protractor.Key.ENTER);
        expect(element.all(by.repeater('item in data')).count()).toEqual(58);

        element.all(by.css('.input.ng-pristine.ng-valid')).get(0).clear();
        element.all(by.css('.input.ng-pristine.ng-valid')).get(0).sendKeys('iAddedThis', protractor.Key.ENTER);
        browser.driver.sleep(4000);

        // Verify one (iSpatial) result
        //expect(element.all(by.repeater('item in data')).count()).toEqual(1);

        // Click on the result
{'fraction_non_alphanumeric': 0.1682962962962963, 'fraction_numerical': 0.022814814814814816, 'mean_word_length': 2.8494868871151655, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3522075', 'n_tokens_mistral': 1098, 'n_tokens_neox': 1033, 'n_words': 213}