<commit_before>import tweepy
import json
from fhg_tweeter import get_best_headlines


url = ('http://www.baynews9.com/content'
            '/news/baynews9/feeds/rss.html/strange.html')

headlines = get_best_headlines(url, True)
if headlines:
    print(headlines)
secrets = json.load(open('twitter_keys.json'))
auth = tweepy.OAuthHandler(secrets['API Key'], secrets['API Secret'])
auth.secure = True
auth.set_access_token(secrets['Access Token'], secrets['Access Token Secret'])
api = tweepy.API(auth)

#api.update_status(new_update)

#public_tweets = api.home_timeline()
#for tweet in public_tweets:
#    print(tweet.text)<commit_msg>trying to update<commit_after>import tweepy
import json
from fhg_tweeter import get_best_headlines


url = ('http://www.baynews9.com/content'
            '/news/baynews9/feeds/rss.html/strange.html')

secrets = json.load(open('twitter_keys.json'))
auth = tweepy.OAuthHandler(secrets['API Key'], secrets['API Secret'])
auth.secure = True
auth.set_access_token(secrets['Access Token'], secrets['Access Token Secret'])
api = tweepy.API(auth)

headlines = get_best_headlines(url, True)
if headlines:
    #print(headlines[0])
    api.update_status(headlines[0])

#public_tweets = api.home_timeline()
#for tweet in public_tweets:
#    print(tweet.text)
{'fraction_non_alphanumeric': 0.1359375, 'fraction_numerical': 0.0046875, 'mean_word_length': 5.637305699481865, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2432094', 'n_tokens_mistral': 468, 'n_tokens_neox': 448, 'n_words': 83}