<commit_before>namespace Blablabla.Hubs
{
    public class DownloadProgressHub : Hub
    {
        //public void Hello()
        //{
        //    Clients.All.hello();
        //}
        public void Send(string name, string message)
        {
            string id = Context.ConnectionId;
            int progress = 0;
            while (!progress.Equals(100))
            {
                progress = Blabla.ExportUtility.GetExportingProgress(name);
                Clients.Client(id).updateProgress(progress);
                System.Threading.Thread.Sleep(200);
            }
        }
 
    }
}<commit_msg>bug fix that server keep pushing message even exporting completed<commit_after>namespace Blablabla.Hubs
{
    public class DownloadProgressHub : Hub
    {
        //public void Hello()
        //{
        //    Clients.All.hello();
        //}
        public void Send(string name, string message)
        {
            string id = Context.ConnectionId;
            int progress = 0;
            do
            {
                progress = Blabla.ExportUtility.GetExportingProgress(name);
                Clients.Client(id).updateProgress(progress);
                System.Threading.Thread.Sleep(200);
            } while (!progress.Equals(100));
        }
 
    }
}
{'fraction_non_alphanumeric': 0.09952978056426333, 'fraction_numerical': 0.0109717868338558, 'mean_word_length': 1.5694164989939638, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2448138', 'n_tokens_mistral': 346, 'n_tokens_neox': 322, 'n_words': 66}