<commit_before>
var basal = require('./basal');
var targets = require('./targets');
var isf = require('./isf');
var carb_ratios = require('./carbs');

function defaults ( ) {
  var profile = {
    max_iob: 0 // if max_iob is not provided, never give more insulin than the pump would have
    , type: 'current'
    , max_daily_safety_multiplier: 3
    , current_basal_safety_multiplier: 4
    , autosens_max: 1.5
    , autosens_min: 0.7
    , autosens_adjust_targets: true
    , override_high_target_with_low: false
  };
  return profile;
}

function generate (inputs, opts) {
  var profile = opts && opts.type ? opts : defaults( );

  // check if inputs has overrides for any of the default prefs<commit_msg>Include skip_neutral_temps in default preferences<commit_after>
var basal = require('./basal');
var targets = require('./targets');
var isf = require('./isf');
var carb_ratios = require('./carbs');

function defaults ( ) {
  var profile = {
    max_iob: 0 // if max_iob is not provided, never give more insulin than the pump would have
    , type: 'current'
    , max_daily_safety_multiplier: 3
    , current_basal_safety_multiplier: 4
    , autosens_max: 1.5
    , autosens_min: 0.7
    , autosens_adjust_targets: true
    , override_high_target_with_low: false
    , skip_neutral_temps: false
  };
  return profile;
}

function generate (inputs, opts) {
  var profile = opts && opts.type ? opts : defaults( );

  // check if inputs has overrides for any of the default prefs
{'fraction_non_alphanumeric': 0.1105121293800539, 'fraction_numerical': 0.009433962264150943, 'mean_word_length': 3.611801242236025, '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': '3583847', 'n_tokens_mistral': 499, 'n_tokens_neox': 474, 'n_words': 145}