<commit_before>module FBDialogs
  
  BASE_URL = {:mobile => "http://m.facebook.com/dialog/" , 
              :desktop => "http://www.facebook.com/dialog/" }.freeze
  
  def feed
  end
  
  def friends
  end
  
  
  def oauth
  end
  
  def pay
  end
  
  
end<commit_msg>created the first helper methods<commit_after>module FBDialogs
  
  BASE_URL = {:mobile => "http://m.facebook.com/dialog" , 
              :desktop => "http://www.facebook.com/dialog" }.freeze
  
  def self.feed(app_id, redirect_uri, options = {} , device = :desktop)
    build_dialog_url(app_id, redirect_uri,device,'feed',options)
  end
  
  def self.friends(app_id, redirect_uri, options = {} , device = :desktop)
    build_dialog_url(app_id, redirect_uri,device,'friends',options)
  end
  
  
  def self.oauth(app_id, redirect_uri, options = {} , device = :desktop)
    build_dialog_url(app_id, redirect_uri,device,'oauth',options)
  end
  
  def self.pay(app_id, redirect_uri, options = {} , device = :desktop)
    build_dialog_url(app_id, redirect_uri,device,'pay',options)
  end
  
  
  def self.build_dialog_url(app_id, redirect_uri,device,dialog,options)
    options.merge!(:app_id => app_id , :redirect_uri => redirect_uri)
    [[BASE_URL[device],dialog].join('/') , options.to_a.map{|p| p.join('=')}.join('&')].join('?')
  end
  
end
{'fraction_non_alphanumeric': 0.14752851711026616, 'fraction_numerical': 0.0, 'mean_word_length': 3.537931034482759, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '606629', 'n_tokens_mistral': 486, 'n_tokens_neox': 470, 'n_words': 80}