<commit_before><?php

if ( ! class_exists( 'Monashee_Webcam_Shortcode' ) ) :
    /**
     * Monashee Webcams
     * @package     Block
     * @since       October 20, 2012
     * @author      <NAME> <<EMAIL>>
     * @version     1.0
     */
class Monashee_Webcam_Shortcode {
    /**
     * _instance class variable
     *
     * Class instance
     *
     * @var null | object
     */
    private static $_instance = NULL;

    static function get_instance() {
        if( self::$_instance === NULL ) {
            self::$_instance = new self();
        }

        return self::$_instance;
    }

    /**
     * Constructor
     *
     * Default constructor -- shortcode [mmm-webcams]
     */
    private function __construct() { }

    /**
     * Display the webcams within their respective categories
     * @param $atts
     * @param null $content
     * @return string
     */
    public function display_webcams( $atts, $content = null ) {

        // add the css and js only when the shortcode is used not on every page load
        add_action( 'init', array( $this, 'mmm_webcam_css_js' ) );

        $html = '';

        $cat_args = array(
                    'orderby'       => 'name',
                    'order'         => 'ASC',
                    'hide_empty'    => 1,
                    'taxonomy'      => 'cam_categories',
        );

        // cycle through each category
        foreach ( get_categories( $cat_args) as $tax ) :

            $args = array(
                    'post_type'             => 'webcam',
                    'posts_per_page'        => '-1',
                    'orderby'               => 'title',
                    'order'                 => 'ASC',
                    'post_status'           => 'publish',
                    'tax_query'             => array(
                                                    array(
                                                        'taxonomy'  => 'cam_categories',<commit_msg>fix the call syntax to js and css<commit_after><?php

if ( ! class_exists( 'Monashee_Webcam_Shortcode' ) ) :
    /**
     * Monashee Webcams
     * @package     Block
     * @since       October 20, 2012
     * @author      <NAME> <<EMAIL>>
     * @version     1.0
     */
class Monashee_Webcam_Shortcode {
    /**
     * _instance class variable
     *
     * Class instance
     *
     * @var null | object
     */
    private static $_instance = NULL;

    static function get_instance() {
        if( self::$_instance === NULL ) {
            self::$_instance = new self();
        }

        return self::$_instance;
    }

    /**
     * Constructor
     *
     * Default constructor -- shortcode [mmm-webcams]
     */
    private function __construct() { }

    /**
     * Display the webcams within their respective categories
     * @param $atts
     * @param null $content
     * @return string
     */
    public function display_webcams( $atts, $content = null ) {

        // add the css and js only when the shortcode is used not on every page load
        $this->mmm_webcam_css_js();

        // set return var
        $html = '';

        $cat_args = array(
                    'orderby'       => 'name',
                    'order'         => 'ASC',
                    'hide_empty'    => 1,
                    'taxonomy'      => 'cam_categories',
        );

        // cycle through each category
        foreach ( get_categories( $cat_args) as $tax ) :

            $args = array(
                    'post_type'             => 'webcam',
                    'posts_per_page'        => '-1',
                    'orderby'               => 'title',
                    'order'                 => 'ASC',
                    'post_status'           => 'publish',
                    'tax_query'             => array(
                                                    array(
                                                        'taxonomy'  => 'cam_categories',
{'fraction_non_alphanumeric': 0.11299721307322017, 'fraction_numerical': 0.005067139599695972, 'mean_word_length': 1.1994428969359332, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 32, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3422761', 'n_tokens_mistral': 1078, 'n_tokens_neox': 1021, 'n_words': 261}