<commit_before>class FriendshipsController < ApplicationController
  def new
    @friendship = Friendship.new
  end

  def create
    accturl = "acct:#{params[:email]}"
    oid = Openidentity.lookup_or_create(accturl)
    if oid
      friend = oid.user
    else

    end
    
    begin
      #finger = Redfinger.finger(params[:email])
      #url = finger.relmap('http://locationcommons.org/spec/1.0#at').first.href
      #uri = URI.parse(url)
    rescue Redfinger::ResourceNotFound => e
      flash[:error] = "webfinger err: #{e}"
    rescue SocketError => e
      flash[:error] = "#{identifier}: #{e}"<commit_msg>a bit too quick on the commit<commit_after>class FriendshipsController < ApplicationController
  def new
    @friendship = Friendship.new
  end

  def create
    accturl = "acct:#{params[:email]}"
    oid = Openidentity.lookup_or_create(accturl)
    friend = oid.user
    
    begin
      #finger = Redfinger.finger(params[:email])
      #url = finger.relmap('http://locationcommons.org/spec/1.0#at').first.href
      #uri = URI.parse(url)
    rescue Redfinger::ResourceNotFound => e
      flash[:error] = "webfinger err: #{e}"
    rescue SocketError => e
      flash[:error] = "#{identifier}: #{e}"
{'fraction_non_alphanumeric': 0.13520197856553998, 'fraction_numerical': 0.0032976092333058533, 'mean_word_length': 3.2152777777777777, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2966244', 'n_tokens_mistral': 397, 'n_tokens_neox': 387, 'n_words': 81}