<commit_before>"use strict";
var $ = require("jquery");

var fade = {};
module.exports = fade;

fade.fade = function fade (element, isIn, callback, inValue, outValue) {
  if (inValue === undefined) inValue = 1;
  if (outValue === undefined) outValue = 0;
  var fadeTime = 1000;
  if (element[0]) element = element[0];
  if (isIn === true) {
    element.style.display = (element.dataset.fadeInlineBlock ? "inline-block" : "block");
    $(element).stop().animate({ "opacity": inValue }, fadeTime, "swing", callback);
  } else {
    $(element).stop().animate({ "opacity": outValue }, fadeTime, "swing", function () {<commit_msg>Optional callback support, I think.<commit_after>"use strict";
var $ = require("jquery");

var fade = {};
module.exports = fade;

fade.fade = function fade (element, isIn, callback, inValue, outValue) {
  if (inValue === undefined) inValue = 1;
  if (outValue === undefined) outValue = 0;
  if (!callback) callback = (function () {  });
  var fadeTime = 1000;
  if (element[0]) element = element[0];
  if (isIn === true) {
    element.style.display = (element.dataset.fadeInlineBlock ? "inline-block" : "block");
    $(element).stop().animate({ "opacity": inValue }, fadeTime, "swing", callback);
  } else {
    $(element).stop().animate({ "opacity": outValue }, fadeTime, "swing", function () {
{'fraction_non_alphanumeric': 0.18712121212121213, 'fraction_numerical': 0.012121212121212121, 'mean_word_length': 4.436213991769547, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, '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': '4271719', 'n_tokens_mistral': 428, 'n_tokens_neox': 407, 'n_words': 114}