<commit_before>require 'date'
require 'stream'


describe "Integration tests" do

    before do
        @client = Stream::Client.new('ahj2ndz7gsan', 'gthc2t9gh7pzq52f6cky8w4r4up9dr6rju9w3fjgmkv6cdvvav2ufe5fv7e2r9qy')
        @feed42 = @client.feed('flat:42')
        @test_activity = {:actor => 1, :verb => 'tweet', :object => 1}
    end

    context 'test client' do

        example "posting an activity" do
            response = @feed42.add_activity(@test_activity)
            response.should include("id", "actor", "verb", "object", "target", "time")
        end

        example "posting many activities" do
            activities = [
                {:actor => 'tommaso', :verb => 'tweet', :object => 1},<commit_msg>namespace feed name for testing<commit_after>require 'date'
require 'stream'


describe "Integration tests" do

    before do
        @client = Stream::Client.new('ahj2ndz7gsan', 'gthc2t9gh7pzq52f6cky8w4r4up9dr6rju9w3fjgmkv6cdvvav2ufe5fv7e2r9qy')
        @feed42 = @client.feed('flat:r42')
        @test_activity = {:actor => 1, :verb => 'tweet', :object => 1}
    end

    context 'test client' do

        example "posting an activity" do
            response = @feed42.add_activity(@test_activity)
            response.should include("id", "actor", "verb", "object", "target", "time")
        end

        example "posting many activities" do
            activities = [
                {:actor => 'tommaso', :verb => 'tweet', :object => 1},
{'fraction_non_alphanumeric': 0.13496932515337423, 'fraction_numerical': 0.0408997955010225, 'mean_word_length': 2.8733509234828496, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '738982', 'n_tokens_mistral': 526, 'n_tokens_neox': 495, 'n_words': 111}