<commit_before><?php
/**
 * @wordpress-plugin
 * Plugin Name:       BadgeOS Open Badges Issuer Add-On
 * Description:       This is a BadgeOS add-on which allows you to host Mozilla Open Badges compatible assertions and allow users to push awarded badges directly to their Mozilla  Backpack
 * Version:           1.1.1
 * Author:            mhawksey, CTLT, Devindra Payment
 * Text Domain:       bosobi
 * License:           GNU AGPLv3
 * License URI:       http://www.gnu.org/licenses/agpl-3.0.html
 * Domain Path:       /languages
 * GitHub Plugin URI: https://github.com/mhawksey/open-badges-issuer-addon
 */

class BadgeOS_Open_Badges_Issuer_AddOn {
	public static $basename = '';
	public static $directory_path = '';
	public static $directory_url = '';

	public static $dependencies = array(
		'BadgeOS' => 'http://wordpress.org/plugins/badgeos/',
		'JSON_API' => 'http://wordpress.org/plugins/json-api/'
	);
	
	public static function init() {
		self::$basename       = plugin_basename( __FILE__ );
		self::$directory_path = plugin_dir_path( __FILE__ );
		self::$directory_url  = plugins_url( dirname( self::$basename ) );

		register_activation_hook( __FILE__, array( __CLASS__, 'activate' ) );

		add_action( 'admin_notices', array( __CLASS__, 'check_requirements' ) );
		add_action( 'plugins_loaded', array( __CLASS__, 'load' ), 11 );
		
		
		/*
		 * Fixes by mhawksey, imported by <EMAIL>
		 * See https://github.com/mhawksey/open-badges-issuer-addon/issues/3#issuecomment-112331043
		 */
		add_filter('badgeos_public_submissions', array('BadgeOS_Open_Badges_Issuer_AddOn', 'get_public_badge_submission'), 999, 1);
	}
	
	
	/**
	 * Set if badge submission evidence is public
	 *
	 * @since  1.0.0
	 * @param  boolean $public submission display
	 * @return boolen               submission display
	 */
	public static function get_public_badge_submission($public){
		return get_option('badgeos_obi_issuer_public_evidence');
	}
<commit_msg>added a bit of documentation and authoring information<commit_after><?php
/**
 * @wordpress-plugin
 * Plugin Name:       BadgeOS Open Badges Issuer Add-On
 * Description:       This is a BadgeOS add-on which allows you to host Mozilla Open Badges compatible assertions and allow users to push awarded badges directly to their Mozilla  Backpack
 * Version:           1.1.1
 * Author:            mhawksey, CTLT, Devindra Payment
 * Text Domain:       bosobi
 * License:           GNU AGPLv3
 * License URI:       http://www.gnu.org/licenses/agpl-3.0.html
 * Domain Path:       /languages
 * GitHub Plugin URI: https://github.com/mhawksey/open-badges-issuer-addon
 */

class BadgeOS_Open_Badges_Issuer_AddOn {
	public static $basename = '';
	public static $directory_path = '';
	public static $directory_url = '';

	public static $dependencies = array(
		'BadgeOS' => 'http://wordpress.org/plugins/badgeos/',
		'JSON_API' => 'http://wordpress.org/plugins/json-api/'
	);
	
	public static function init() {
		self::$basename       = plugin_basename( __FILE__ );
		self::$directory_path = plugin_dir_path( __FILE__ );
		self::$directory_url  = plugins_url( dirname( self::$basename ) );

		register_activation_hook( __FILE__, array( __CLASS__, 'activate' ) );

		add_action( 'admin_notices', array( __CLASS__, 'check_requirements' ) );
		add_action( 'plugins_loaded', array( __CLASS__, 'load' ), 11 );
		
		
		/*
		 * Fixes by mhawksey, imported by <EMAIL>
		 * See https://github.com/mhawksey/open-badges-issuer-addon/issues/3#issuecomment-112331043
		 * 
		 * cyclingzealot changed the function name from set_public_badge_submission 
		 *   to get_public_badge_submission
		 */
		add_filter('badgeos_public_submissions', array('BadgeOS_Open_Badges_Issuer_AddOn', 'get_public_badge_submission'), 999, 1);
	}
	
	
	/**
	 * Set if badge submission evidence is public
	 * 
	 * cyclingzealot changed the function name from set_public_badge_submission 
	 * to get_public_badge_submission
	 *
	 * @since  1.0.0
	 * @param  boolean $public submission display
	 * @author mhawksey, cyclingzealot - <EMAIL>
	 * @return boolen               submission display
	 */
	public static function get_public_badge_submission($public){
		return get_option('badgeos_obi_issuer_public_evidence');
	}

{'fraction_non_alphanumeric': 0.112375533428165, 'fraction_numerical': 0.011853959222380275, 'mean_word_length': 3.71923937360179, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 10, 'https://': 4, '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': '3913284', 'n_tokens_mistral': 1463, 'n_tokens_neox': 1331, 'n_words': 321}