<commit_before>var items = require('../demos').filter(function(d) {
    return !d.norender
})
var template = require('./item.hbs')
var domify = require('domify')

var animate = require('gsap-promise')

var urljoin = require('url-join')
var path = require('path')

function render(item) {
    item.link = item.outfile || (item.folder+'-'+item.name)
    item.url = urljoin('/', path.basename(item.link, '.html')+'.html')
    item.src = source(item)
    return template(item)
}

function append(e, parent) {
    var el = (parent||document.body).appendChild(domify(e))
    return el
}

function source(d) {
    var base = 'https://github.com/mattdesl/frontend-npm-goodies/blob/master/'
    return urljoin(base, d.folder, d.name+'.js')
}

module.exports = function(parent) {
    var elements = items
            .map(render)
            .map( e => append(e, parent) )

    animate.staggerFromTo(elements, 0.5, {
        alpha: 0
    }, { 
        alpha: 1.0, delay: 0.1, ease: "easeOutQuad" 
    }, 0.03)
}<commit_msg>updating<commit_after>var items = require('../demos').filter(function(d) {
    return !d.norender
})
var template = require('./item.hbs')
var domify = require('domify')

var animate = require('gsap-promise')

var urljoin = require('url-join')
var path = require('path')

function render(item) {
    item.link = item.outfile || (item.folder+'-'+item.name)
    item.url = path.basename(item.link, '.html')+'.html'
    item.src = source(item)
    return template(item)
}

function append(e, parent) {
    var el = (parent||document.body).appendChild(domify(e))
    return el
}

function source(d) {
    var base = 'https://github.com/mattdesl/frontend-npm-goodies/blob/master/'
    return urljoin(base, d.folder, d.name+'.js')
}

module.exports = function(parent) {
    var elements = items
            .map(render)
            .map( e => append(e, parent) )

    animate.staggerFromTo(elements, 0.5, {
        alpha: 0
    }, { 
        alpha: 1.0, delay: 0.1, ease: "easeOutQuad" 
    }, 0.03)
}
{'fraction_non_alphanumeric': 0.1753861484803189, 'fraction_numerical': 0.009965122072745391, 'mean_word_length': 3.089613034623218, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '602666', 'n_tokens_mistral': 726, 'n_tokens_neox': 700, 'n_words': 141}