<commit_before>/** @jsx React.DOM */

define('gallery', ['react', 'photo-partition', 'photo', 'lightbox'], function(React, photoPartition, Photo, Lightbox) {

    var Gallery = React.createClass({

        /**
         * The ideal row height
         *
         * @var integer
         */
        idealRowHeight: 100,

        /**
         * A list of all photo elements
         *
         * @var DOM
         */
        photos: null,

        /**
         * Show the Lightbox
         *
         * @param DOM photo The photo to display
         */
        onClick: function (photo) {
            React.renderComponent(
                <Lightbox photo={photo} photos={this.photos} />,
                document.getElementById(Config.App.lightboxElementId)
            );
        },

        render: function() {
            var viewportWidth = parseInt(Config.App.viewportWidth, 10),
                photoPaddingX = parseInt(Config.Photo.paddingX, 10),
                photoPaddingY = parseInt(Config.Photo.paddingY, 10);

            this.photos = [];
            var photoRows = photoPartition(this.props.photos, this.idealRowHeight, viewportWidth, photoPaddingX, photoPaddingY);
            var photoRowNodes = _.map(photoRows, function (photoRow) {
                var photoNodes = _.map(photoRow, function (photo) {
                    var photo = <Photo folder={this.props.folder}
                                       height={photo.height}
                                       name={photo.name}
                                       width={photo.width}
                                       type="thumb"
                                       onClick={this.onClick} />;

                    // Store a list of all photos
                    this.photos.push(photo);

                    return photo;
                }, this);

                return (
                    <div>
                        {photoNodes}
                    </div>
                );
            }, this);

            var galleryDate = moment(this.props.created).format('MMMM Do, YYYY');

            return (
                <div className="gallery">
                    <h2 className="gallery-heading">
                        {this.props.name}
                        <span class="gallery-heading-date">
                            {galleryDate}
                        </span>
                    </h2>
                    {photoRowNodes}
                </div>
            );
        }
    });

    return Gallery;
});<commit_msg>Fixed className<commit_after>/** @jsx React.DOM */

define('gallery', ['react', 'photo-partition', 'photo', 'lightbox'], function(React, photoPartition, Photo, Lightbox) {

    var Gallery = React.createClass({

        /**
         * The ideal row height
         *
         * @var integer
         */
        idealRowHeight: 100,

        /**
         * A list of all photo elements
         *
         * @var DOM
         */
        photos: null,

        /**
         * Show the Lightbox
         *
         * @param DOM photo The photo to display
         */
        onClick: function (photo) {
            React.renderComponent(
                <Lightbox photo={photo} photos={this.photos} />,
                document.getElementById(Config.App.lightboxElementId)
            );
        },

        render: function() {
            var viewportWidth = parseInt(Config.App.viewportWidth, 10),
                photoPaddingX = parseInt(Config.Photo.paddingX, 10),
                photoPaddingY = parseInt(Config.Photo.paddingY, 10);

            this.photos = [];
            var photoRows = photoPartition(this.props.photos, this.idealRowHeight, viewportWidth, photoPaddingX, photoPaddingY);
            var photoRowNodes = _.map(photoRows, function (photoRow) {
                var photoNodes = _.map(photoRow, function (photo) {
                    var photo = <Photo folder={this.props.folder}
                                       height={photo.height}
                                       name={photo.name}
                                       width={photo.width}
                                       type="thumb"
                                       onClick={this.onClick} />;

                    // Store a list of all photos
                    this.photos.push(photo);

                    return photo;
                }, this);

                return (
                    <div>
                        {photoNodes}
                    </div>
                );
            }, this);

            var galleryDate = moment(this.props.created).format('MMMM Do, YYYY');

            return (
                <div className="gallery">
                    <h2 className="gallery-heading">
                        {this.props.name}
                        <span className="gallery-heading-date">
                            {galleryDate}
                        </span>
                    </h2>
                    {photoRowNodes}
                </div>
            );
        }
    });

    return Gallery;
});
{'fraction_non_alphanumeric': 0.10438908659549229, 'fraction_numerical': 0.004349545274812179, 'mean_word_length': 1.0956917978458989, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2993591', 'n_tokens_mistral': 1256, 'n_tokens_neox': 1153, 'n_words': 251}