<commit_before>// load type definitions that come with Cypress module
function createNewApplication(){
    cy.get(
        'body > div.wrapper.row-offcanvas.row-offcanvas-left > aside.right-side.right-padding > section > div > div > div > div.panel-heading.clearfix > div > a')
        .click({force: true})
    cy.checkForBrokenImages()
    const d = new Date()
    let testAppName = `test_app${d.getTime()}`
    cy.get('#app_display_name').type(testAppName, {force: true})
    cy.get('#app_display_name').type(testAppName, {force: true})
    cy.get('#client_id').type(testAppName, {force: true})
    cy.get('#app_description').type(testAppName, {force: true})
    cy.get('#homepage_url').type(testAppName, {force: true})
    cy.get('.btn-success').click({force: true})
    cy.log('Need to start redirecting to builder.quantimo.do...')
    cy.checkForBrokenImages()
    // cy.get('iframe#iframe md-tabs-canvas.md-paginated > md-pagination-wrapper >
    // md-tab-item.md-tab.md-ink-ripple:nth-of-type(2) > span',
    //     {timeout: 120000})
    //     .click({ force: true });
    // cy.get('iframe#iframe .md-bar').click({ force: true });
}
/// <reference types="cypress" />
describe('Applications', function(){
    Cypress.env('RETRIES', 2)
    it('Creates a client app as new user', function(){
        throw "";
        cy.visitApi(`/api/v2/apps#`)
        cy.enterNewUserCredentials()
        createNewApplication()
    })
    it('Creates an client app as an existing user', function(){<commit_msg>Creates a client app as new user<commit_after>// load type definitions that come with Cypress module
function createNewApplication(){
    cy.get(
        'body > div.wrapper.row-offcanvas.row-offcanvas-left > aside.right-side.right-padding > section > div > div > div > div.panel-heading.clearfix > div > a')
        .click({force: true})
    cy.checkForBrokenImages()
    const d = new Date()
    let testAppName = `test_app${d.getTime()}`
    cy.get('#app_display_name').type(testAppName, {force: true})
    cy.get('#app_display_name').type(testAppName, {force: true})
    cy.get('#client_id').type(testAppName, {force: true})
    cy.get('#app_description').type(testAppName, {force: true})
    cy.get('#homepage_url').type(testAppName, {force: true})
    cy.get('.btn-success').click({force: true})
    cy.log('Need to start redirecting to builder.quantimo.do...')
    cy.checkForBrokenImages()
    // cy.get('iframe#iframe md-tabs-canvas.md-paginated > md-pagination-wrapper >
    // md-tab-item.md-tab.md-ink-ripple:nth-of-type(2) > span',
    //     {timeout: 120000})
    //     .click({ force: true });
    // cy.get('iframe#iframe .md-bar').click({ force: true });
}
/// <reference types="cypress" />
describe('Applications', function(){
    Cypress.env('RETRIES', 2)
    it('Creates a client app as new user', function(){
        cy.visitApi(`/api/v2/apps#`)
        cy.enterNewUserCredentials()
        createNewApplication()
    })
    it('Creates an client app as an existing user', function(){
{'fraction_non_alphanumeric': 0.17557251908396945, 'fraction_numerical': 0.005974112180550946, 'mean_word_length': 3.4128843338213763, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, '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': '1871640', 'n_tokens_mistral': 1002, 'n_tokens_neox': 981, 'n_words': 198}