<commit_before>require 'pony'
require 'net/http'
require 'json'

class RedDavis
  
  # Returns a hash containg info about all my current OS projects on Github
  def projects
    request = Net::HTTP.get(URI.parse(github_profile_url))
    JSON.parse(request)
  end
  
  def location
    {
      :country => 'England',
      :city => 'Bath',
      :google_map => "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Bath,+Avon,+United+Kingdom&sll=37.0625,-95.677068&sspn=55.981213,108.544922&ie=UTF8&hq=&hnear=Bath,+Avon,+United+Kingdom&z=13"
    }
  end
  
  # Opens a browser window and sends you to my blog (Not tested on Windows)
  def blog
    system("open #{blog_url}")
  end
  
  def interested_in
    [
      'Machine Learning',
      'Data',
      'Ruby',
      'Rails',
      'Fun things'
    ]
  end
  
  def work_experience
    {
      :green_thing => {
                        :url => 'http://dothegreenthing.com',
                        :position => 'Lead Developer',
                        :started => Time.local(2008, 'apr', 1),
                        :finished => nil
                      }
    }
  end
  
  # Print out all basic information
  def print
    text = File.expand_path(File.dirname(__FILE__) + '/text/cv.txt')
    File.readlines(text).each do |line|
      puts line
    end
  end
  
  # Hire me!
  # * :from => Who you are
  # * :body => A little message
  # * :subject => Subject of the email
  def hired!(options={})    
    raise "You need to specify from, subject and body" unless options.key?(:from) || options.key?(:body) || options.key?(:subject)
    Pony.mail({:to => '<EMAIL>'}.merge(options))
  end
  
  # My contact details
  def contact_details
    {
      :email => '<EMAIL>',
      :phone => '07515353733'
    }
  end
  
  # Shared me CV with fellow co-workers. Sends them a URL to download this CV
  def share_with(from, *emails)
    emails.each do |email|
      Pony.mail(:to => email, 
                :from => from, 
                :subject => 'Hey what do you think of this guy...', 
                :body => github_cv_url)
    end
  end

  private
  
  def github_profile_url
    'http://github.com/api/v2/json/repos/show/reddavis'
  end
  
  def github_cv_url
  end
  
  def blog_url
    'http://redwriteshere.com'
  end
  
end<commit_msg>add the cv url<commit_after>require 'pony'
require 'net/http'
require 'json'

class RedDavis
  
  # Returns a hash containg info about all my current OS projects on Github
  def projects
    request = Net::HTTP.get(URI.parse(github_profile_url))
    JSON.parse(request)
  end
  
  def location
    {
      :country => 'England',
      :city => 'Bath',
      :google_map => "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Bath,+Avon,+United+Kingdom&sll=37.0625,-95.677068&sspn=55.981213,108.544922&ie=UTF8&hq=&hnear=Bath,+Avon,+United+Kingdom&z=13"
    }
  end
  
  # Opens a browser window and sends you to my blog (Not tested on Windows)
  def blog
    system("open #{blog_url}")
  end
  
  def interested_in
    [
      'Machine Learning',
      'Data',
      'Ruby',
      'Rails',
      'Fun things'
    ]
  end
  
  def work_experience
    {
      :green_thing => {
                        :url => 'http://dothegreenthing.com',
                        :position => 'Lead Developer',
                        :started => Time.local(2008, 'apr', 1),
                        :finished => nil
                      }
    }
  end
  
  # Print out all basic information
  def print
    text = File.expand_path(File.dirname(__FILE__) + '/text/cv.txt')
    File.readlines(text).each do |line|
      puts line
    end
  end
  
  # Hire me!
  # * :from => Who you are
  # * :body => A little message
  # * :subject => Subject of the email
  def hired!(options={})    
    raise "You need to specify from, subject and body" unless options.key?(:from) || options.key?(:body) || options.key?(:subject)
    Pony.mail({:to => '<EMAIL>'}.merge(options))
  end
  
  # My contact details
  def contact_details
    {
      :email => '<EMAIL>',
      :phone => '07515353733'
    }
  end
  
  # Shared me CV with fellow co-workers. Sends them a URL to download this CV
  def share_with(from, *emails)
    emails.each do |email|
      Pony.mail(:to => email, 
                :from => from, 
                :subject => 'Hey what do you think of this guy...', 
                :body => github_cv_url)
    end
  end

  private
  
  def github_profile_url
    'http://github.com/api/v2/json/repos/show/reddavis'
  end
  
  def github_cv_url
    'http://github.com/reddavis/CV'
  end
  
  def blog_url
    'http://redwriteshere.com'
  end
  
end
{'fraction_non_alphanumeric': 0.129825318093595, 'fraction_numerical': 0.021996980806555964, 'mean_word_length': 2.1767123287671235, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 43, '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': '2831990', 'n_tokens_mistral': 1685, 'n_tokens_neox': 1572, 'n_words': 383}