<commit_before>using System;
using System.Globalization;
using System.Linq;
using System.Threading.Tasks;
using LinqToTwitter;
using Newtonsoft.Json;
using Core.Domain;
using Core.Data;
using Integration.Twitter.Domain;
using System.Threading;
using System.Collections.Generic;

namespace Integration.Twitter
{
    public class Helper
    {
        private readonly string _key = string.Empty;
        private readonly string _secret = string.Empty;
        private readonly string _token = string.Empty;
        private readonly string _tokenSecret = string.Empty;

        public Helper(string key, string secret, string token, string tokenSecret)
        {
            _key = key;
            _secret = secret;
            _token = token;
            _tokenSecret = tokenSecret;
        }

        private TwitterContext GetContext()
        {
            var auth = new SingleUserAuthorizer
            {
                CredentialStore = new SingleUserInMemoryCredentialStore
                {
                    ConsumerKey = _key,
                    ConsumerSecret = _secret,
                    AccessToken = _token,
                    AccessTokenSecret = _tokenSecret<commit_msg>Update TwHelper.cs<commit_after>using System;
using LinqToTwitter;
using Newtonsoft.Json;
using Core.Domain;
using Core.Data;
using Integration.Twitter.Domain;

namespace Integration.Twitter
{
    public class TwHelper
    {
        private readonly string _key = string.Empty;
        private readonly string _secret = string.Empty;
        private readonly string _token = string.Empty;
        private readonly string _tokenSecret = string.Empty;

        public Helper(string key, string secret, string token, string tokenSecret)
        {
            _key = key;
            _secret = secret;
            _token = token;
            _tokenSecret = tokenSecret;
        }

        private TwitterContext GetContext()
        {
            var auth = new SingleUserAuthorizer
            {
                CredentialStore = new SingleUserInMemoryCredentialStore
                {
                    ConsumerKey = _key,
                    ConsumerSecret = _secret,
                    AccessToken = _token,
                    AccessTokenSecret = _tokenSecret
{'fraction_non_alphanumeric': 0.05723158828748891, 'fraction_numerical': 0.0, 'mean_word_length': 1.974934036939314, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3454215', 'n_tokens_mistral': 552, 'n_tokens_neox': 522, 'n_words': 154}