<commit_before>'use strict';

var aFrom           = require('es5-ext/array/from')
  , ObservableValue = require('observable-value')
  , isObservable    = require('observable-value/is-observable')

  , forEach = Array.prototype.forEach, resolve;

resolve = function (paths) {
	var base = [], query = [], hash = '', path;
	forEach.call(paths, function (path) {
		if (path == null) return;
		path = String(path);
		if (!path) return;
		if (path[0] === '?') query.push(path.slice(1));
		else if (path[0] === '#') hash = path;
		else base.push(path);
	});
	path = base.length ? ('/' + base.join('/') + '/') : '/';<commit_msg>Assure observable value is accessed<commit_after>'use strict';

var aFrom             = require('es5-ext/array/from')
  , ObservableValue   = require('observable-value')
  , isObservable      = require('observable-value/is-observable')
  , isObservableValue = require('observable-value/is-observable-value')

  , forEach = Array.prototype.forEach, resolve;

resolve = function (paths) {
	var base = [], query = [], hash = '', path;
	forEach.call(paths, function (path) {
		if (path == null) return;
		path = isObservableValue(path) ? String(path.value) : String(path);
		if (!path) return;
		if (path[0] === '?') query.push(path.slice(1));
		else if (path[0] === '#') hash = path;
		else base.push(path);
	});
	path = base.length ? ('/' + base.join('/') + '/') : '/';
{'fraction_non_alphanumeric': 0.20259552992069213, 'fraction_numerical': 0.005767844268204758, 'mean_word_length': 3.7534246575342465, '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': '4378013', 'n_tokens_mistral': 479, 'n_tokens_neox': 463, 'n_words': 98}