<commit_before>TestSuite = 
  compiledSrc: "../sdk.js"
  srcs: ["../src/helper.coffee", "../src/sc.coffee","../src/sc/api.coffee", "../src/sc/connect.coffee", "../src/sc/oembed.coffee", "../src/sc/record.coffee", "../src/sc/storage.coffee", "../src/sc/stream.coffee"]
  tests: ["helper-test.coffee", "sc-test.coffee", "sc/api-test.coffee", "sc/stream-test.coffee"]

  setTestsFromParams: ->
    loc = new URI location, decodeQuery: true
    if loc.query.tests
      @tests = loc.query.tests

  initialize: () ->
    QUnit.reset = () ->
      SC.accessToken(null)

    if TestSuite.inDevelopmentMode
      @loadJavascript "../vendor/recorder.js/recorder.js"
      @loadJavascript "../vendor/uri.js/build/uri.js", () =>
        window.SC ||= {}
        SC.URI = URI
        @setTestsFromParams()

      @loadCoffeescripts @srcs, () =>
        SC.initialize
          client_id: "YOUR_CLIENT_ID"
          baseUrl: "../vendor"
        SC._recorderSwfPath = "/recorder.js/recorder.swf"
        SC._soundmanagerPath = "/soundmanager2/swf/"
        SC._soundmanagerScriptPath = "../script/soundmanager2-nodebug-jsmin.js"
        @loadCoffeescripts @tests
    else
      @loadJavascript @compiledSrc, () =>
        SC.initialize
          client_id: "YOUR_CLIENT_ID"<commit_msg>include integration tests in test.coffee<commit_after>TestSuite = 
  compiledSrc: "../sdk.js"
  srcs: ["../src/helper.coffee", "../src/sc.coffee","../src/sc/api.coffee", "../src/sc/connect.coffee", "../src/sc/oembed.coffee", "../src/sc/record.coffee", "../src/sc/storage.coffee", "../src/sc/stream.coffee"]
  tests: ["helper-test.coffee", "sc-test.coffee", "sc/api-test.coffee", "sc/stream-test.coffee", "integration.coffee"]

  setTestsFromParams: ->
    loc = new URI location, decodeQuery: true
    if loc.query.tests
      @tests = loc.query.tests

  initialize: () ->
    QUnit.reset = () ->
      SC.accessToken(null)

    if TestSuite.inDevelopmentMode
      @loadJavascript "../vendor/recorder.js/recorder.js"
      @loadJavascript "../vendor/uri.js/build/uri.js", () =>
        window.SC ||= {}
        SC.URI = URI
        @setTestsFromParams()

      @loadCoffeescripts @srcs, () =>
        SC.initialize
          client_id: "YOUR_CLIENT_ID"
          baseUrl: "../vendor"
        SC._recorderSwfPath = "/recorder.js/recorder.swf"
        SC._soundmanagerPath = "/soundmanager2/swf/"
        SC._soundmanagerScriptPath = "../script/soundmanager2-nodebug-jsmin.js"
        @loadCoffeescripts @tests
    else
      @loadJavascript @compiledSrc, () =>
        SC.initialize
          client_id: "YOUR_CLIENT_ID"
{'fraction_non_alphanumeric': 0.17715167888846006, 'fraction_numerical': 0.0015438054805094559, 'mean_word_length': 2.5313351498637604, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3345065', 'n_tokens_mistral': 923, 'n_tokens_neox': 871, 'n_words': 126}