<commit_before><?php namespace Thujohn\Share;

class Share {
	protected $link;
	protected $text;

	public function load($link, $text = ''){
		$this->link = urlencode($link);
		$this->text = urlencode($text);

		return $this;
	}

	public function services(){
		$services = func_get_args();

		$return = array();

		if ($services){
			foreach ($services as $service){
				if (method_exists('Thujohn\Share\Share', $service)){
					$return[$service] = $this->$service();
				}
			}
		}

		return $return;
	}

	public function delicious(){
		return 'https://delicious.com/post?url='.$this->link.(($this->text) ? '&title='.$this->text : '');
	}

	public function digg(){
		return 'http://www.digg.com/submit?url='.$this->link.(($this->text) ? '&title='.$this->text : '');
	}

	public function evernote(){
		return 'http://www.evernote.com/clip.action?url='.$this->link.(($this->text) ? '&title='.$this->text : '');
	}

	public function facebook(){
		return 'https://www.facebook.com/sharer/sharer.php?u='.$this->link.(($this->text) ? '&title='.$this->text : '');
	}

	public function gmail(){
		return 'https://mail.google.com/mail/?view=cm&fs=1&to&ui=2&tf=1&su='.$this->link.(($this->text) ? '&body='.$this->text : '');
	}

	public function gplus(){
		return 'https://plus.google.com/share?url='.$this->link;
	}

	public function linkedin(){
		return 'http://www.linkedin.com/shareArticle?mini=true&url='.$this->link.(($this->text) ? '&title='.$this->text : '');
	}

	public function pinterest(){
		return 'http://pinterest.com/pin/create/button/?url='.$this->link.(($this->text) ? '&description='.$this->text : '');
	}

	public function reddit(){
		return 'http://www.reddit.com/submit?url='.$this->link.(($this->text) ? '&title='.$this->text : '');
	}
<commit_msg>Add media parameter for Pinterest Thanks to @mack-hankins<commit_after><?php namespace Thujohn\Share;

class Share {
	protected $link;
	protected $text;
	protected $media;

	public function load($link, $text = '', $media = ''){
		$this->link = urlencode($link);
		$this->text = urlencode($text);
		$this->text = urlencode($media);

		return $this;
	}

	public function services(){
		$services = func_get_args();

		$return = array();

		if ($services){
			foreach ($services as $service){
				if (method_exists('Thujohn\Share\Share', $service)){
					$return[$service] = $this->$service();
				}
			}
		}

		return $return;
	}

	public function delicious(){
		return 'https://delicious.com/post?url='.$this->link.(($this->text) ? '&title='.$this->text : '');
	}

	public function digg(){
		return 'http://www.digg.com/submit?url='.$this->link.(($this->text) ? '&title='.$this->text : '');
	}

	public function evernote(){
		return 'http://www.evernote.com/clip.action?url='.$this->link.(($this->text) ? '&title='.$this->text : '');
	}

	public function facebook(){
		return 'https://www.facebook.com/sharer/sharer.php?u='.$this->link.(($this->text) ? '&title='.$this->text : '');
	}

	public function gmail(){
		return 'https://mail.google.com/mail/?view=cm&fs=1&to&ui=2&tf=1&su='.$this->link.(($this->text) ? '&body='.$this->text : '');
	}

	public function gplus(){
		return 'https://plus.google.com/share?url='.$this->link;
	}

	public function linkedin(){
		return 'http://www.linkedin.com/shareArticle?mini=true&url='.$this->link.(($this->text) ? '&title='.$this->text : '');
	}

	public function pinterest(){
		return 'http://pinterest.com/pin/create/button/?url='.$this->link.(($this->media) ? '&media='.$this->media : '').(($this->text) ? '&description='.$this->text : '');
	}

	public function reddit(){
		return 'http://www.reddit.com/submit?url='.$this->link.(($this->text) ? '&title='.$this->text : '');
	}

{'fraction_non_alphanumeric': 0.24809782608695652, 'fraction_numerical': 0.0016304347826086956, 'mean_word_length': 4.236130867709815, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 62, 'https://': 8, 'lorem ipsum': 0, 'www.': 10, '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': '6510939', 'n_tokens_mistral': 1398, 'n_tokens_neox': 1295, 'n_words': 198}