<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IrofCryptographic.Twitter
{
    public class TwitterData
    {
    }
}<commit_msg>特定ユーザのtweetデータ取得処理追加<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LinqToTwitter;

namespace IrofCryptographic.Model.Twitter
{




    public class TwitterData
    {

        private TwitterContext _context;

        /// <summary>
        /// Twitterと接続
        /// </summary>
        public void Open()
        {
            var auth = Authorizer.DoApplicationOnly();
            auth.Authorize();

            _context = new TwitterContext(auth);
        }




        public List<LinqToTwitter.Status> GetAllTimeLineData(string targetUserId)
        {
            var list = new List<LinqToTwitter.Status>();
            
            var auth = Authorizer.DoApplicationOnly();

            auth.Authorize();

            var twitterCtx = new TwitterContext(auth);

            var subscribedList = twitterCtx.Status

                .Where(n => n.Type == StatusType.User)
                .Where(n => n.ScreenName == targetUserId)
                .Where(n=>n.Count==200)

                .ToList();

            return subscribedList; 
        }


    }
}
{'fraction_non_alphanumeric': 0.09693877551020408, 'fraction_numerical': 0.002186588921282799, 'mean_word_length': 2.0376106194690267, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3108617', 'n_tokens_mistral': 404, 'n_tokens_neox': 382, 'n_words': 77}