<commit_before> # importing modules
import tweepy
import os
import csv
import time
import random

# secrets 
consumer_key = os.getenv('c_key')
consumer_secret = os.getenv('c_secret')
access_token = os.getenv('a_token')
access_token_secret = os.getenv('a_secret')
# authentication
auth = tweepy.OAuthHandler(consumer_key, consumer_secret) 
auth.set_access_token(access_token, access_token_secret) 
api = tweepy.API(auth) 
# functions
stripped = str.maketrans(dict.fromkeys('aeiouAEIOU '))

# processing
with open('data_source.csv') as csvfile:
 reader = csv.DictReader(csvfile)
 row = random.choice(reader)
 answer = row['text']
 question = (row['text']).translate(stripped)
 api.update_status(status = "#MssngVwlsRnd Name the Chelsea player: " + question)     
 time.sleep(10 * 60)
 api.update_status(status = "#MssngVwlsRnd Well done if you got it, the answer was: " + answer) 
<commit_msg>Update mssng_vwls_rnd.py<commit_after> # importing modules
import tweepy
import os
import csv
import time
import random

# secrets 
consumer_key = os.getenv('c_key')
consumer_secret = os.getenv('c_secret')
access_token = os.getenv('a_token')
access_token_secret = os.getenv('a_secret')
# authentication
auth = tweepy.OAuthHandler(consumer_key, consumer_secret) 
auth.set_access_token(access_token, access_token_secret) 
api = tweepy.API(auth) 
# functions
stripped = str.maketrans(dict.fromkeys('aeiouAEIOU -'))

# processing
with open('data_source.csv') as csvfile:
 reader = csv.DictReader(csvfile)
 row = random.choice(reader)
 answer = row['text']
 question = (row['text']).translate(stripped)
 api.update_status(status = "#MssngVwlsRnd Name the Chelsea player: " + question)     
 time.sleep(10 * 60)
 api.update_status(status = "#MssngVwlsRnd Well done if you got it, the answer was: " + answer) 

{'fraction_non_alphanumeric': 0.11928651059085842, 'fraction_numerical': 0.004459308807134894, 'mean_word_length': 6.01171875, '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': '4592217', 'n_tokens_mistral': 641, 'n_tokens_neox': 617, 'n_words': 135}