<commit_before><?php
/**
* Plugin Name: Neuralab WooCommerce WSPay Payment Gateway
* Plugin URI: https://github.com/Neuralab/WSPay-WooCommerce-Payment-Gateway
* Description: WooCommerce WSPay Payment Gateway
* Version: 0.9.2
* Author: Neuralab
* Author URI: https://neuralab.net
* Developer: Matej
* Text Domain: wcwspay
* Requires at least: 4.7
* Requires PHP: 5.6
*
* WC requires at least: 3.0.0
* WC tested up to: 3.5
*
* License: MIT
*/

if ( !defined( 'ABSPATH' ) ) {
  exit;
}


if ( !function_exists( 'wcwspay_is_woocommerce_active' ) ) {
  /**
  * Return true if Woocommerce plugin is active.
  *
  * @since 0.1
  * @return boolean
  */
  function wcwspay_is_woocommerce_active() {
    if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
      return true;
    }
    return false;
  }
}

if ( !function_exists( 'wcwspay_admin_notice_missing_woocommerce' ) ) {
  /**
  * Echo admin notice HTML for missing WooCommerce plugin.
  *
  * @since 0.1
  */
  function wcwspay_admin_notice_missing_woocommerce() {
    global $current_screen;
    if( $current_screen->parent_base === 'plugins' ) {
      ?>
      <div class="notice notice-error">
        <p><?php _e( 'Please install and activate <a href="http://www.woothemes.com/woocommerce/" target="_blank">WooCommerce</a> before activating the Neuralab WooCommerce WSPay Payment Gateway!', 'wcwspay' ); ?></p>
      </div>
      <?php
    }
  }
}

if ( !wcwspay_is_woocommerce_active() ) {
  add_action( 'admin_notices', 'wcwspay_admin_notice_missing_woocommerce' );
  return;
}

if ( !class_exists( 'WC_WSPay_Main' ) ) {
  class WC_WSPay_Main {
    /**
     * Current plugin's version.
     *
     * @var string
     */
    const VERSION = '0.9.2';

    /**
     * Instance of the current class, null before first usage.
     *
     * @var WC_WSPay_Main
     */
    protected static $_instance = null;

    /**<commit_msg>Update version to 0.9.3<commit_after><?php
/**
* Plugin Name: Neuralab WooCommerce WSPay Payment Gateway
* Plugin URI: https://github.com/Neuralab/WSPay-WooCommerce-Payment-Gateway
* Description: WooCommerce WSPay Payment Gateway
* Version: 0.9.3
* Author: Neuralab
* Author URI: https://neuralab.net
* Developer: Matej
* Text Domain: wcwspay
* Requires at least: 4.7
* Requires PHP: 5.6
*
* WC requires at least: 3.0.0
* WC tested up to: 3.5
*
* License: MIT
*/

if ( !defined( 'ABSPATH' ) ) {
  exit;
}


if ( !function_exists( 'wcwspay_is_woocommerce_active' ) ) {
  /**
  * Return true if Woocommerce plugin is active.
  *
  * @since 0.1
  * @return boolean
  */
  function wcwspay_is_woocommerce_active() {
    if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
      return true;
    }
    return false;
  }
}

if ( !function_exists( 'wcwspay_admin_notice_missing_woocommerce' ) ) {
  /**
  * Echo admin notice HTML for missing WooCommerce plugin.
  *
  * @since 0.1
  */
  function wcwspay_admin_notice_missing_woocommerce() {
    global $current_screen;
    if( $current_screen->parent_base === 'plugins' ) {
      ?>
      <div class="notice notice-error">
        <p><?php _e( 'Please install and activate <a href="http://www.woothemes.com/woocommerce/" target="_blank">WooCommerce</a> before activating the Neuralab WooCommerce WSPay Payment Gateway!', 'wcwspay' ); ?></p>
      </div>
      <?php
    }
  }
}

if ( !wcwspay_is_woocommerce_active() ) {
  add_action( 'admin_notices', 'wcwspay_admin_notice_missing_woocommerce' );
  return;
}

if ( !class_exists( 'WC_WSPay_Main' ) ) {
  class WC_WSPay_Main {
    /**
     * Current plugin's version.
     *
     * @var string
     */
    const VERSION = '0.9.3';

    /**
     * Instance of the current class, null before first usage.
     *
     * @var WC_WSPay_Main
     */
    protected static $_instance = null;

    /**
{'fraction_non_alphanumeric': 0.13507960965588084, 'fraction_numerical': 0.010529019003595274, 'mean_word_length': 3.2429193899782134, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1318742', 'n_tokens_mistral': 1455, 'n_tokens_neox': 1419, 'n_words': 315}