<commit_before>namespace :jquest_pg do

  def season
    @season ||= JquestPg::ApplicationController.new.season
  end

  def check_mark
    '[' + Pastel.new.green('⌾') + ']'
  end

  def persons_with_images
    q = '%jquestapp.com%'
    JquestPg::Person.where.not(image: [nil, '']).where 'image NOT LIKE ?', q
  end

  def copy_person_image(person)
    uri = URI person.image
    # Download the image
    res = Net::HTTP.get_response uri
    # Did the download succed
    if res.is_a?(Net::HTTPSuccess) and res.header['content-type'].starts_with? 'image'<commit_msg>Debug url<commit_after>namespace :jquest_pg do

  def season
    @season ||= JquestPg::ApplicationController.new.season
  end

  def check_mark
    '[' + Pastel.new.green('⌾') + ']'
  end

  def persons_with_images
    q = '%jquestapp.com%'
    JquestPg::Person.where.not(image: [nil, '']).where 'image NOT LIKE ?', q    
  end

  def copy_person_image(person)
    uri = URI URI.escape(person.image)
    # Download the image
    res = Net::HTTP.get_response uri
    # Did the download succed
    if res.is_a?(Net::HTTPSuccess) and res.header['content-type'].starts_with? 'image'
{'fraction_non_alphanumeric': 0.1354895104895105, 'fraction_numerical': 0.0, 'mean_word_length': 3.5617529880478087, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1739413', 'n_tokens_mistral': 410, 'n_tokens_neox': 401, 'n_words': 88}