<commit_before>#!/usr/bin/python
# -*- coding: utf-8 -*-

import tweepy
import twitter

consumer_key = ""
consumer_secret = ""
access_token = ""
access_token_secret = ""
hashtag = "#yourhashtag"

auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
bot = tweepy.API(auth)

last_id_filename = "last_id_hashtag_" + hashtag

try:
	file = open(last_id_filename, "r")
	savepoint = file.read()<commit_msg>Savepoint will now be written in the same dir<commit_after>#!/usr/bin/python
# -*- coding: utf-8 -*-

import tweepy
import twitter
import os

consumer_key = ""
consumer_secret = ""
access_token = ""
access_token_secret = ""
hashtag = "#yourhashtag"

auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
bot = tweepy.API(auth)

last_id_filename = "last_id_hashtag_" + hashtag
rt_bot_path = os.path.dirname(os.path.abspath(__file__))
save_file = "last_id_hashtag_%s" % hashtag.replace("#", "")
last_id_file = os.path.join(rt_bot_path, save_file)

try:
	file = open(last_id_filename, "r")
	savepoint = file.read()
{'fraction_non_alphanumeric': 0.13327449249779347, 'fraction_numerical': 0.00176522506619594, 'mean_word_length': 6.043478260869565, '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': '6012661', 'n_tokens_mistral': 438, 'n_tokens_neox': 422, 'n_words': 75}