<commit_before>/**
 * @license
 * Copyright 2020 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

foam.CLASS({
  package: 'foam.u2.view',
  name: 'CurrencyInputView',
  extends: 'foam.u2.View',

  documentation: `
    A currency input view that formats the user's input as they type it in.
    Works similarly like a calculator or ATM machine where the values are filling
    in from the right.
  `,

  implements: [
    'foam.mlang.Expressions'
  ],

  requires: [
    'foam.u2.util.NumberShortener'
  ],

  imports: [
    'ctrl',
    'currencyDAO',
    'data as parentObj'
  ],

  expors: [
    'as data'
  ],

  css: `
    ^ {
      display: flex;
    }

    ^container-selection {
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;

      box-sizing: border-box;
      width: 64px;
      height: 30px;<commit_msg>Fix typo<commit_after>/**
 * @license
 * Copyright 2020 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

foam.CLASS({
  package: 'foam.u2.view',
  name: 'CurrencyInputView',
  extends: 'foam.u2.View',

  documentation: `
    A currency input view that formats the user's input as they type it in.
    Works similarly like a calculator or ATM machine where the values are filling
    in from the right.
  `,

  implements: [
    'foam.mlang.Expressions'
  ],

  requires: [
    'foam.u2.util.NumberShortener'
  ],

  imports: [
    'ctrl',
    'currencyDAO',
    'data as parentObj'
  ],

  exports: [
    'as data'
  ],

  css: `
    ^ {
      display: flex;
    }

    ^container-selection {
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;

      box-sizing: border-box;
      width: 64px;
      height: 30px;
{'fraction_non_alphanumeric': 0.12417582417582418, 'fraction_numerical': 0.014285714285714285, 'mean_word_length': 2.4101123595505616, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4025824', 'n_tokens_mistral': 644, 'n_tokens_neox': 612, 'n_words': 162}