<commit_before>﻿using System;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using Lime.Protocol;
using Lime.Protocol.Util;
using Serilog;
using Serilog.Core;
using Take.Blip.Client;
using Take.Blip.Client.Receivers;

namespace Programmatically
{
    class Program
    {
        static async Task Main(string[] args)
        {
            var client = new BlipClientBuilder()
                .UsingAccessKey("meubotefree", "<KEY>
                .Build();

            Trace.Listeners.Add(new TextWriterTraceListener(Console.Out));

            var listener = new BlipChannelListener(client, true, Log.Logger);
            
            listener.AddMessageReceiver(
                new LambdaMessageReceiver(async (message, cancellationToken) =>
                {
                    Console.WriteLine("Message '{0}' received from '{1}': {2}", message.Id, message.From, message.Content);
                    await client.SendMessageAsync($"You said '{message.Content}'.", message.From, cancellationToken);                    
                }),
                m => Task.FromResult(m.Type == MediaType.TextPlain));

            listener.AddNotificationReceiver(
                new LambdaNotificationReceiver( (notification, cancellationToken) =>
                {
                    Console.WriteLine("Notification '{0}' received from '{1}': {2}", notification.Id, notification.From, notification.Event);
                    return Task.CompletedTask;
                }));
            <commit_msg>Update Program.cs<commit_after>﻿using System;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using Lime.Protocol;
using Lime.Protocol.Util;
using Serilog;
using Serilog.Core;
using Take.Blip.Client;
using Take.Blip.Client.Receivers;

namespace Programmatically
{
    class Program
    {
        static async Task Main(string[] args)
        {
            var client = new BlipClientBuilder()
                .UsingAccessKey("", "")
                .Build();

            Trace.Listeners.Add(new TextWriterTraceListener(Console.Out));

            var listener = new BlipChannelListener(client, true, Log.Logger);
            
            listener.AddMessageReceiver(
                new LambdaMessageReceiver(async (message, cancellationToken) =>
                {
                    Console.WriteLine("Message '{0}' received from '{1}': {2}", message.Id, message.From, message.Content);
                    await client.SendMessageAsync($"You said '{message.Content}'.", message.From, cancellationToken);                    
                }),
                m => Task.FromResult(m.Type == MediaType.TextPlain));

            listener.AddNotificationReceiver(
                new LambdaNotificationReceiver( (notification, cancellationToken) =>
                {
                    Console.WriteLine("Notification '{0}' received from '{1}': {2}", notification.Id, notification.From, notification.Event);
                    return Task.CompletedTask;
                }));
            
{'fraction_non_alphanumeric': 0.1077275703994761, 'fraction_numerical': 0.003929273084479371, 'mean_word_length': 2.1078331637843335, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 10, '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': '5512333', 'n_tokens_mistral': 755, 'n_tokens_neox': 727, 'n_words': 166}