<commit_before>class YoutubeApi
    API_KEY = ENV["GOOGLE_API_KEY"]
    OAUTH_CLIENT_ID = ENV["GOOGLE_CLIENT_ID"]
    OAUTH_CLIENT_SECRET = ENV["GOOGLE_CLIENT_SECRET"]
    
    def initialize()
        initialize_secret_keys()
    end
    
    def get_video(id)
       Yt::Video.new id: id
    end
    
    def get_account(arg)
        
        if(arg.is_a?(User))
            google_token = arg.google_refresh_token
        elsif(arg.is_a?(String))
            google_token = arg
        else
            raise ArgumentError, "arg must be a User or a google_refresh_token"
        end
        
        Yt::Account.new refresh_token: google_token
    end
    
    def get_subscribed_channels(arg)
        account = get_account(arg)
        channels = account.subscribed_channels.map{ |channel| OpenStruct.new(
            thumbnail_url: channel.thumbnail_url,
            title: channel.title,<commit_msg>add the id to the return map of the channels<commit_after>class YoutubeApi
    API_KEY = ENV["GOOGLE_API_KEY"]
    OAUTH_CLIENT_ID = ENV["GOOGLE_CLIENT_ID"]
    OAUTH_CLIENT_SECRET = ENV["GOOGLE_CLIENT_SECRET"]
    
    def initialize()
        initialize_secret_keys()
    end
    
    def get_video(id)
       Yt::Video.new id: id
    end
    
    def get_account(arg)
        
        if(arg.is_a?(User))
            google_token = arg.google_refresh_token
        elsif(arg.is_a?(String))
            google_token = arg
        else
            raise ArgumentError, "arg must be a User or a google_refresh_token"
        end
        
        Yt::Account.new refresh_token: google_token
    end
    
    def get_subscribed_channels(arg)
        account = get_account(arg)
        channels = account.subscribed_channels.map{ |channel| OpenStruct.new(
            id: channel.id,
            thumbnail_url: channel.thumbnail_url,
            title: channel.title,
{'fraction_non_alphanumeric': 0.07758159443552702, 'fraction_numerical': 0.0, 'mean_word_length': 2.207547169811321, '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': '4593114', 'n_tokens_mistral': 594, 'n_tokens_neox': 595, 'n_words': 118}