<commit_before>/*jslint browser: true*/

( function( vui ) {

	// Check if the provided vui global is defined, otherwise try to require it if
	// we're in a CommonJS environment; otherwise we'll just fail out
	if( vui === undefined ) {
		if( typeof require === 'function' ) {
			vui = require('../../vui');
		} else {
			throw new Error('load vui first');
		}
	}

	// Export the vui object if we're in a CommonJS environment.
	// It will already be on the window otherwise
	if( typeof module === 'object' && typeof module.exports === 'object' ) {
		module.exports = vui;
	}
	
	var $ = vui.$;

	$.widget( 'vui.vui_list', {

		_create: function() {

			var $node = $( this.element );

			var updateListSelection = function() {

				$node.find( 'li.vui-checkbox > label > input, li.vui-radio > label > input' ).each(
					function ( index, inputNode ) {

						var $input = $( inputNode );

						$input.closest( 'li.vui-checkbox, li.vui-radio' ).toggleClass(
							'vui-selected', $input.prop( 'checked' )
						);

					}
				);

			};

			updateListSelection();

			$node.change( function( args ) {<commit_msg>(build) package valence using browserify<commit_after>/*jslint browser: true*/

( function( vui ) {

	// Check if the provided vui global is defined, otherwise try to require it if
	// we're in a CommonJS environment; otherwise we'll just fail out
	if( vui === undefined ) {
		if( typeof require === 'function' ) {
			vui = require('../../core');
		} else {
			throw new Error('load vui first');
		}
	}

	// Export the vui object if we're in a CommonJS environment.
	// It will already be on the window otherwise
	if( typeof module === 'object' && typeof module.exports === 'object' ) {
		module.exports = vui;
	}

	var $ = vui.$;

	$.widget( 'vui.vui_list', {

		_create: function() {

			var $node = $( this.element );

			var updateListSelection = function() {

				$node.find( 'li.vui-checkbox > label > input, li.vui-radio > label > input' ).each(
					function ( index, inputNode ) {

						var $input = $( inputNode );

						$input.closest( 'li.vui-checkbox, li.vui-radio' ).toggleClass(
							'vui-selected', $input.prop( 'checked' )
						);

					}
				);

			};

			updateListSelection();

			$node.change( function( args ) {
{'fraction_non_alphanumeric': 0.15651400622498887, 'fraction_numerical': 0.0, 'mean_word_length': 2.7751677852348995, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '2777340', 'n_tokens_mistral': 866, 'n_tokens_neox': 723, 'n_words': 220}