<commit_before>require_relative 'twitter_module'
include TwitterModule
module DropboxToTwitter
	def tweet_all_images_in_folder(client, user_id = current_user.id)
    archive_folder = create_archive_folder(client)
    client.metadata('/this-week')["contents"].each do |image|
      image_path = image["path"]
      content_url = client.media(image_path)["url"]
      dropbox_url = content_url + "?dl=1"
      TwitterModule.twitter_media_upload("This is something:", dropbox_url, user_id)
      destination_url = image_path.gsub(/\/this-week/,archive_folder)
      move_dropbox_file(client, image_path, destination_url)
      sleep 5
    end
  end<commit_msg>Add no-work shaming to module<commit_after>require_relative 'twitter_module'
include TwitterModule
module DropboxToTwitter
	def tweet_all_images_in_folder(client, user_id = current_user.id)
    archive_folder = create_archive_folder(client)
    if client.metadata('/this-week')["contents"].empty?
      #puts "I am empty"
      twitter_media_upload("I made nothing this week.", "https://www.phactual.com/wp-content/uploads/2014/11/arrested-development-snoopy.jpg")
    else
      client.metadata('/this-week')["contents"].each do |image|
        image_path = image["path"]
        content_url = client.media(image_path)["url"]
        dropbox_url = content_url + "?dl=1"
        twitter_media_upload("This is something:", dropbox_url, user_id)
        destination_url = image_path.gsub(/\/this-week/,archive_folder)
        move_dropbox_file(client, image_path, destination_url)
        sleep 5
      end
    end
  end
{'fraction_non_alphanumeric': 0.11047619047619048, 'fraction_numerical': 0.006349206349206349, 'mean_word_length': 4.201320132013201, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, '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': '6586248', 'n_tokens_mistral': 503, 'n_tokens_neox': 487, 'n_words': 89}