<commit_before>var sharer = require('../../../utils/nativeSharer');
module.exports = {
	
	process : function(ctx, step, next) {
		if(typeof step.blob != 'undefined') {
			sharer.shareImage(ctx.blobVars[step.blob], next);
		}
		else {
			sharer.shareText(step.content, next);
		}
	}
}<commit_msg>image source from image asset<commit_after>var sharer = require('../../../utils/nativeSharer');
module.exports = {
	
	process : function(ctx, step, next) {
		if(typeof step.blob != 'undefined') {
			var imageSource = require("image-source");
			var source = new imageSource.ImageSource();
			source.fromAsset(ctx.blobVars[step.blob]).then(function(source) {
				sharer.shareImage(source, next);
			});
		}
		else {
			sharer.shareText(step.content, next);
		}
	}
}
//https://docs.nativescript.org/cookbook/image-source
{'fraction_non_alphanumeric': 0.17835178351783518, 'fraction_numerical': 0.0, 'mean_word_length': 3.8452380952380953, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '1345444', 'n_tokens_mistral': 305, 'n_tokens_neox': 270, 'n_words': 45}