<commit_before>require 'spec_helper'

describe Trakio do

  subject { Trakio }

  after {
    Trakio.default_instance = nil
  }
  
	describe '.annotate' do

    context "when an event is provided" do

      context "when a channel is provided" do
        it "should send a request with the channel" do
          stub = stub_request(:post, "https://api.trak.io/v1/annotate").
            with(:body => {
            token: 'my_api_token',<commit_msg>whitespace fixes<commit_after>require 'spec_helper'

describe Trakio do

  subject { Trakio }

  after {
    Trakio.default_instance = nil
  }

    describe '.annotate' do

    context "when an event is provided" do

      context "when a channel is provided" do
        it "should send a request with the channel" do
          stub = stub_request(:post, "https://api.trak.io/v1/annotate").
            with(:body => {
            token: '<PASSWORD>token',
{'fraction_non_alphanumeric': 0.09944751381215469, 'fraction_numerical': 0.0022099447513812156, 'mean_word_length': 2.471264367816092, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 2, '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': '1334960', 'n_tokens_mistral': 286, 'n_tokens_neox': 274, 'n_words': 84}