<commit_before>/**
 * mSupply Mobile
 * Sustainable Solutions (NZ) Ltd. 2019
 */

import Realm from 'realm';

/**
 * A program indicator functions as a many-to-one join and grouping mechanism for mapping sets of
 * indicator rows and columns to programs.
 *
 * @property  {string}      id
 * @property  {string}      code
 * @property  {MasterList}  program
 * @property  {boolean}     isActive
 */
export class ProgramIndicator extends Realm.Object {}

export default ProgramIndicator;

ProgramIndicator.schema = {
  name: 'ProgramIndicator',
  primaryKey: 'id',
  properties: {
    id: 'string',
    code: { type: 'string', default: 'placeholderCode' },
    program: { type: 'MasterList', optional: true },
    isActive: { type: 'bool', default: false },
  },
};<commit_msg>Add ProgramIndicator rows, columns properties<commit_after>/**
 * mSupply Mobile
 * Sustainable Solutions (NZ) Ltd. 2019
 */

import Realm from 'realm';

/**
 * A program indicator functions as a many-to-one join and grouping mechanism for mapping sets of
 * indicator rows and columns to programs.
 *
 * @property  {string}      id
 * @property  {string}      code
 * @property  {MasterList}  program
 * @property  {boolean}     isActive
 */
export class ProgramIndicator extends Realm.Object {}

export default ProgramIndicator;

ProgramIndicator.schema = {
  name: 'ProgramIndicator',
  primaryKey: 'id',
  properties: {
    id: 'string',
    code: { type: 'string', default: 'placeholderCode' },
    program: { type: 'MasterList', optional: true },
    isActive: { type: 'bool', default: false },
    rows: { type: 'list', objectType: 'IndicatorAttribute' },
    columns: { type: 'list', objectType: 'IndicatorAttribute' },
  },
};
{'fraction_non_alphanumeric': 0.12682641729982466, 'fraction_numerical': 0.004675628287551139, 'mean_word_length': 3.742382271468144, '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': '7578128', 'n_tokens_mistral': 503, 'n_tokens_neox': 501, 'n_words': 166}