<commit_before>
/* minimal require */

require( '../proto/wtools/abase/l0/l1/Predefined.s' );
require( '../proto/wtools/abase/l0/l2/Setup.s' );
require( '../proto/wtools/abase/l0/l3/Array.s' );
require( '../proto/wtools/abase/l0/l3/Entity.s' ); /* Array.s require */
require( '../proto/wtools/abase/l0/l3/Err.s' );
require( '../proto/wtools/abase/l0/l3/Map.s' );
require( '../proto/wtools/abase/l0/l3/Routine.s' );
require( '../proto/wtools/abase/l0/l3/Type.s' ); /* Map.s require */

//

let _ = _global_.wTools;

//

console.log( 'routineOptions, defaults in third argument' );
var routine = () => true;
var defaults = { a : null, b : 1 };
var options = { a : 1, b : undefined };
_.routineOptions( routine, options, defaults );
console.log( options );
/* log : { a : 1, b : 1 } */

console.log( 'routineOptions, defaults in routine field' );
var routine = () => true;
routine.defaults = { a : null, b : 1 };
var options = { a : 1, b : undefined };
_.routineOptions( routine, options );
console.log( options );
/* log : { a : 1, b : 1 } */

//

console.log( 'assertRoutineOptions, defaults in third argument' );
var routine = () => true;
var defaults = { a : null, b : 1 };
var options = { a : 1, b : null };
_.assertRoutineOptions( routine, options, defaults );
console.log( options );
/* log : { a : 1, b : null } */

console.log( 'assertRoutineOptions, defaults in routine field' );
var routine = () => true;
routine.defaults = { a : null, b : 1 };
var options = { a : 1, b : null };
_.assertRoutineOptions( routine, options );
console.log( options );
/* log : { a : 1, b : null } */
<commit_msg>Fix sample `RoutineOptionsLowLevel.s`, switch required path due to changes<commit_after>
/* minimal require */

require( '../proto/wtools/abase/l0/l1/Predefined.s' );
require( '../proto/wtools/abase/l0/l2/Setup.s' );
require( '../proto/wtools/abase/l0/l3/Array.s' );
require( '../proto/wtools/abase/l0/l3/Entity.s' ); /* Array.s require */
require( '../proto/wtools/abase/l0/l3/Err.s' );
require( '../proto/wtools/abase/l0/l3/Object.s' );
require( '../proto/wtools/abase/l0/l3/Routine.s' );
require( '../proto/wtools/abase/l0/l3/Type.s' ); /* Map.s require */

//

let _ = _global_.wTools;

//

console.log( 'routineOptions, defaults in third argument' );
var routine = () => true;
var defaults = { a : null, b : 1 };
var options = { a : 1, b : undefined };
_.routineOptions( routine, options, defaults );
console.log( options );
/* log : { a : 1, b : 1 } */

console.log( 'routineOptions, defaults in routine field' );
var routine = () => true;
routine.defaults = { a : null, b : 1 };
var options = { a : 1, b : undefined };
_.routineOptions( routine, options );
console.log( options );
/* log : { a : 1, b : 1 } */

//

console.log( 'assertRoutineOptions, defaults in third argument' );
var routine = () => true;
var defaults = { a : null, b : 1 };
var options = { a : 1, b : null };
_.assertRoutineOptions( routine, options, defaults );
console.log( options );
/* log : { a : 1, b : null } */

console.log( 'assertRoutineOptions, defaults in routine field' );
var routine = () => true;
routine.defaults = { a : null, b : 1 };
var options = { a : 1, b : null };
_.assertRoutineOptions( routine, options );
console.log( options );
/* log : { a : 1, b : null } */

{'fraction_non_alphanumeric': 0.20098039215686275, 'fraction_numerical': 0.01838235294117647, 'mean_word_length': 3.2624020887728458, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '222458', 'n_tokens_mistral': 1175, 'n_tokens_neox': 1146, 'n_words': 306}