<commit_before>'use strict';

var contains  = require('es5-ext/lib/String/prototype/contains')
  , history   = require('../_internals/signal').history
  , serialize = require('../_internals/serialize');

module.exports = function (obj) {
	var id = obj._id_
	  , value = contains.call(obj._id_, ':') ? serialize(obj._value) :
			(obj.ns._id_ + '#')
	  , signal = history[id] && history[id][0];

	if (!signal) return ['0', '0', obj._id_, value];
	return [signal._sourceId, String(signal._stamp), obj._id_, value];
};<commit_msg>Do not stringify Signal stamp on export<commit_after>'use strict';

var contains  = require('es5-ext/lib/String/prototype/contains')
  , history   = require('../_internals/signal').history
  , serialize = require('../_internals/serialize');

module.exports = function (obj) {
	var id = obj._id_
	  , value = contains.call(obj._id_, ':') ? serialize(obj._value) :
			(obj.ns._id_ + '#')
	  , signal = history[id] && history[id][0];

	if (!signal) return ['0', '0', obj._id_, value];
	return [signal._sourceId, signal._stamp, obj._id_, value];
};
{'fraction_non_alphanumeric': 0.19626168224299065, 'fraction_numerical': 0.007476635514018692, 'mean_word_length': 4.224390243902439, 'pattern_counts': {'":': 0, '<': 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': '3919702', 'n_tokens_mistral': 375, 'n_tokens_neox': 361, 'n_words': 74}