<commit_before>import { Template } from 'meteor/templating'

Template['vessel.visit.insert'].helpers({
  data: {
    backLink: 'vessel.details',
    entityKey: 'visitId',
    fields: [{
      key: 'isUserVisible',
      type: 'checkbox'
    }, {
      key: 'date',
      type: 'date',
      default: 'today',
      format: 'YYYYMMDD',
      required: true
    }, {
      key: 'harborId',
      type: 'picker',
      allowedKeyValuesMethod: 'vessel.visit.getAvailableHarbors',
      required: true
    }, {
      key: 'dateNext',
      type: 'date',
      format: 'YYYYMMDD'
    }]<commit_msg>add search bar to harbor list on visit creation<commit_after>import { Template } from 'meteor/templating'

Template['vessel.visit.insert'].helpers({
  data: {
    backLink: 'vessel.details',
    entityKey: 'visitId',
    fields: [{
      key: 'isUserVisible',
      type: 'checkbox'
    }, {
      key: 'date',
      type: 'date',
      default: 'today',
      format: 'YYYYMMDD',
      required: true
    }, {
      key: 'harborId',
      type: 'picker',
      allowedKeyValuesMethod: 'vessel.visit.getAvailableHarbors',
      search: true,
      required: true
    }, {
      key: 'dateNext',
      type: 'date',
      format: 'YYYYMMDD'
    }]
{'fraction_non_alphanumeric': 0.15024232633279483, 'fraction_numerical': 0.0, 'mean_word_length': 2.4512534818941503, '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': '2966496', 'n_tokens_mistral': 423, 'n_tokens_neox': 412, 'n_words': 88}