<commit_before>var utils = require('../../e2e/utils')
describe('angular.ui router app', function () {
  beforeEach(utils.verifyNoBrowserErrors)

  it('should have correct number of transactions and traces', function (done) {
    browser.url('/angular/index.e2e.html')
      .executeAsync(function (cb) {
        window.runFixture('./ui_router_app/ui_router_app.js', ['./opbeat-angular.e2e.js', 'angular-ui-router'], {
          beforeInit: function (app, deps) {
            deps[0]()
            window.e2e.getTransactions(function (trs) {
              cb(trs)
            }, 0, 1)
            app.init({
              debug: true,
              orgId: '7f9fa667d0a349dd8377bc740bcfc33e',
              appId: '0a8757798e',
              performance: {
                enable: true,
                enableStackFrames: true
              }
            })
          },
          useNgApp: false,
          uiRouter: true
        })
      })
      .then(function (response) {
        var transactions = response.value
        expect(transactions.length).toBe(1)

        var first = transactions[0]

        expect(first.traces.groups.length).toBe(12)
        expect(first.traces.raw[0].length).toBe(17)
        expect(first.transactions.length).toBe(1)
        expect(first.transactions[0].transaction).toBe('exponentialstate.substate')

        done()
      }, function (error) {
        console.log(error)
      })<commit_msg>minor fix e2e_test<commit_after>var utils = require('../../e2e/utils')
describe('angular.ui router app', function () {
  beforeEach(utils.verifyNoBrowserErrors)

  it('should have correct number of transactions and traces', function (done) {
    browser.url('/angular/index.e2e.html')
      .executeAsync(function (cb) {
        window.runFixture('./ui_router_app/ui_router_app.js', ['./opbeat-angular.e2e.js', 'angular-ui-router'], {
          beforeInit: function (app, deps) {
            deps[0]()
            window.e2e.getTransactions(function (trs) {
              cb(trs)
            }, 0, 1)
            app.init({
              debug: true,
              orgId: '7f9fa667d0a349dd8377bc740bcfc33e',
              appId: '0a8757798e',
              performance: {
                enable: true,
                enableStackFrames: true
              }
            })
          },
          useNgApp: false,
          uiRouter: true
        })
      })
      .then(function (response) {
        var transactions = response.value
        expect(transactions.length).toBe(1)

        var first = transactions[0]

        expect(first.traces.groups.length).toBeGreaterThan(11)
        expect(first.traces.raw[0].length).toBeGreaterThan(16)
        expect(first.transactions.length).toBe(1)
        expect(first.transactions[0].transaction).toBe('exponentialstate.substate')

        done()
      }, function (error) {
        console.log(error)
      })
{'fraction_non_alphanumeric': 0.13041970169961845, 'fraction_numerical': 0.029483177245924384, 'mean_word_length': 1.976264189886481, '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': '3744330', 'n_tokens_mistral': 902, 'n_tokens_neox': 856, 'n_words': 136}