<commit_before><?php
/*
 Plugin Name: ActionStream Personal Extensions
 Description: Adds additional services to the DiSo ActionStream plugin
 Author: <NAME>
 Author URI: http://willnorris.com/
 Version: trunk
 License: Dual GPL (http://www.fsf.org/licensing/licenses/info/GPLv2.html) and Modified BSD (http://www.fsf.org/licensing/licenses/index_html#ModifiedBSD)
 */

function actionstream_personal_googlecode($k, $value) {
	return $value;
}

function actionstream_personal_services($services) {
	// Google Code
	$services['services']['googlecode'] = array(
		'name' => 'Google Code',
		'url' => 'http://code.google.com/u/%s/',
	);

	$services['streams']['googlecode'] = array(
		'commits' => array(
			'name' => 'Commits',
			'description' => 'Your Recent Commits',
			'html_form' => '[_1] updated [_3]',
			'html_params' => array('url', 'title'),
			'url' => 'http://code.google.com/feeds/u/{{ident}}/updates/user/basic',
			'atom' => 1,
			'callback' => 'actionstream_personal_googlecode',
		),
	);


	// DiSo<commit_msg>add google<commit_after><?php
/*
 Plugin Name: ActionStream Personal Extensions
 Description: Adds additional services to the DiSo ActionStream plugin
 Author: <NAME>
 Author URI: http://willnorris.com/
 Version: trunk
 License: Dual GPL (http://www.fsf.org/licensing/licenses/info/GPLv2.html) and Modified BSD (http://www.fsf.org/licensing/licenses/index_html#ModifiedBSD)
 */

function actionstream_personal_googlecode($k, $value) {
	return $value;
}

function actionstream_personal_services($services) {
	// Google Code
	$services['services']['google'] = array(
		'name' => 'Google',
		'url' => 'http://www.google.com/profiles/%s',
	);

	$services['streams']['google'] = array(
		'commits' => array(
			'name' => 'Buzz Posts',
			'description' => 'Your Buzz Posts',
			'html_form' => '[_1] posted [_3]',
			'html_params' => array('url', 'title'),
			'url' => 'http://buzz.googleapis.com/feeds/{{ident}}/public/posted',
			'atom' => 1,
		),
	);

	// Google Code
	$services['services']['googlecode'] = array(
		'name' => 'Google Code',
		'url' => 'http://code.google.com/u/%s/',
	);

	$services['streams']['googlecode'] = array(
		'commits' => array(
			'name' => 'Commits',
			'description' => 'Your Recent Commits',
			'html_form' => '[_1] updated [_3]',
			'html_params' => array('url', 'title'),
			'url' => 'http://code.google.com/feeds/u/{{ident}}/updates/user/basic',
			'atom' => 1,
			'callback' => 'actionstream_personal_googlecode',
		),
	);

	// DiSo
{'fraction_non_alphanumeric': 0.19967858577742065, 'fraction_numerical': 0.0044194455604660505, 'mean_word_length': 4.42483660130719, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 34, 'https://': 0, 'lorem ipsum': 0, 'www.': 5, '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': '5220609', 'n_tokens_mistral': 932, 'n_tokens_neox': 853, 'n_words': 170}