<commit_before>package spec

import page.user.UserCreatePage
import page.user.UserEditPage
import page.user.UserSearchPage
import spock.lang.IgnoreIf
import spock.lang.Issue

@IgnoreIf({
    if (!System.getProperty('geb.env')) {
        return true
    }
    if (System.getProperty('geb.env') == 'phantomjs' && !System.getProperty('phantomjs.binary.path')) {
        return true
    }
    if (System.getProperty('geb.env') == 'chrome' && !System.getProperty('webdriver.chrome.driver')) {
        return true
    }
    false
})
class UserSimpleSpec extends AbstractSecuritySpec {

    void testFindAll() {
        when:
        to UserSearchPage

        then:
        assertNotSearched()

        when:
        submit()

        then:
        at UserSearchPage
        assertResults 1, 10, 22
    }

    void testFindByUsername() {
        when:
        to UserSearchPage

        username = 'foo'
        submit()

        then:<commit_msg>- reverted name change made to `UserSpec`<commit_after>package spec

import page.user.UserCreatePage
import page.user.UserEditPage
import page.user.UserSearchPage
import spock.lang.IgnoreIf
import spock.lang.Issue

@IgnoreIf({
    if (!System.getProperty('geb.env')) {
        return true
    }
    if (System.getProperty('geb.env') == 'phantomjs' && !System.getProperty('phantomjs.binary.path')) {
        return true
    }
    if (System.getProperty('geb.env') == 'chrome' && !System.getProperty('webdriver.chrome.driver')) {
        return true
    }
    false
})
class UserSpec extends AbstractSecuritySpec {

    void testFindAll() {
        when:
        to UserSearchPage

        then:
        assertNotSearched()

        when:
        submit()

        then:
        at UserSearchPage
        assertResults 1, 10, 22
    }

    void testFindByUsername() {
        when:
        to UserSearchPage

        username = 'foo'
        submit()

        then:
{'fraction_non_alphanumeric': 0.10871848739495799, 'fraction_numerical': 0.005252100840336135, 'mean_word_length': 2.3421052631578947, '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': '6986974', 'n_tokens_mistral': 570, 'n_tokens_neox': 548, 'n_words': 123}