<commit_before><?php
/**
 * Plugin Name: WP Github
 * Plugin URI: https://github.com/seinoxygen/wp-github
 * Description: Display users Github public repositories, commits, issues and gists.
 * Author: <NAME>
 * Author URI: http://www.seinoxygen.com
 * Version: 1.2.6
 *
 * Licensed under the MIT License
 */
require dirname(__FILE__) . '/lib/wpGithubCache.php';
require(dirname(__FILE__) . '/lib/github.php');
require(dirname(__FILE__) . '/inc/shortcodes.php');
require(dirname(__FILE__) . '/inc/widgets.php');

/*
 * Init FRONT END General Style
 * */
add_action('wp_enqueue_scripts', 'wpgithub_style', 20);
function wpgithub_style() {
  wp_enqueue_style('wp-github', plugin_dir_url(__FILE__) . 'css/wp-github.css');

  // If custom stylesheet exists load it.
  $custom = plugin_dir_path(__FILE__) . 'custom.css';
  if (file_exists($custom)) {
    wp_enqueue_style('wp-github-custom', plugin_dir_url(__FILE__) . 'custom.css');
  }
}

/*
 * ADMIN SECTION<commit_msg>version updated<commit_after><?php
/**
 * Plugin Name: WP Github
 * Plugin URI: https://github.com/seinoxygen/wp-github
 * Description: Display users Github public repositories, commits, issues and gists.
 * Author: <NAME>
 * Author URI: http://www.seinoxygen.com
 * Version: 1.2.7
 *
 * Licensed under the MIT License
 */
require dirname(__FILE__) . '/lib/wpGithubCache.php';
require(dirname(__FILE__) . '/lib/github.php');
require(dirname(__FILE__) . '/inc/shortcodes.php');
require(dirname(__FILE__) . '/inc/widgets.php');

/*
 * Init FRONT END General Style
 * */
add_action('wp_enqueue_scripts', 'wpgithub_style', 20);
function wpgithub_style() {
  wp_enqueue_style('wp-github', plugin_dir_url(__FILE__) . 'css/wp-github.css');

  // If custom stylesheet exists load it.
  $custom = plugin_dir_path(__FILE__) . 'custom.css';
  if (file_exists($custom)) {
    wp_enqueue_style('wp-github-custom', plugin_dir_url(__FILE__) . 'custom.css');
  }
}

/*
 * ADMIN SECTION
{'fraction_non_alphanumeric': 0.16012396694214875, 'fraction_numerical': 0.005165289256198347, 'mean_word_length': 4.566091954022989, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '1820182', 'n_tokens_mistral': 666, 'n_tokens_neox': 633, 'n_words': 136}