<commit_before>/**
 * Populate DB with sample data on server start
 * to disable, edit config/environment/index.js, and set `seedDB: false`
 */

'use strict';

var User = require('../api/user/user.model');
var Definition = require('../api/definitions/definition.model');
var Module = require('../api/module/module.model');
var Project = require('../api/project/project.model');
var fs = require('fs');
var path = require('path');

Definition.find({}).remove(() => {
  Definition.create({
    "type": "POST",
    "url": "/shoes/",
    "handles": [
      {
      "module": "zalando-articles",
      "x": 100,
      "y": 520,
      "config": {
        "configuration": {
        },
        "params": {
          "fullText": "{{value.fullText}}",
        }
      }
      },
      /*{
      "module": "outlook-send",
      "x": 100,
      "y": 520,
      "config": {
        "configuration": {
        },
        "params": {
          "to": "{{value.to}}",
          "body": "Found a following shoe for you for query '{{value.fullText}}': {{value.content.0.name}}, {{value.content.0.units.0.price.formatted}}. {{value.content.0.shopUrl}}",
          "subject": "{{value.subject}}"
        }
      }
      },*/
      {
      "module": "twilio",
      "x": 100,
      "y": 520,
      "config": {
        "configuration": {
          "accountSid": "{{env.accountSid}}",
          "authToken": "{{env.authToken}}"<commit_msg>Seed with outlook<commit_after>/**
 * Populate DB with sample data on server start
 * to disable, edit config/environment/index.js, and set `seedDB: false`
 */

'use strict';

var User = require('../api/user/user.model');
var Definition = require('../api/definitions/definition.model');
var Module = require('../api/module/module.model');
var Project = require('../api/project/project.model');
var fs = require('fs');
var path = require('path');

Definition.find({}).remove(() => {
  Definition.create({
    "type": "POST",
    "url": "/shoes/",
    "handles": [
      {
      "module": "zalando-articles",
      "x": 100,
      "y": 100,
      "config": {
        "configuration": {
        },
        "params": {
          "fullText": "{{value.fullText}}",
        }
      }
      },
      {
      "module": "outlook-send",
      "x": 100,
      "y": 500,
      "config": {
        "configuration": {
        },
        "params": {
          "to": "{{value.to}}",
          "body": "Found a following shoe for you for query '{{value.fullText}}': {{value.content.0.name}}, {{value.content.0.units.0.price.formatted}}. {{value.content.0.shopUrl}}",
          "subject": "{{value.subject}}"
        }
      }
      },
      {
      "module": "twilio",
      "x": 700,
      "y": 500,
      "config": {
        "configuration": {
          "accountSid": "{{env.accountSid}}",
          "authToken": "{{env.authToken}}"
{'fraction_non_alphanumeric': 0.211864406779661, 'fraction_numerical': 0.015536723163841809, 'mean_word_length': 2.1724524076147818, 'pattern_counts': {'":': 52, '<': 3, '<?xml version=': 0, '>': 5, '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': '6776089', 'n_tokens_mistral': 949, 'n_tokens_neox': 907, 'n_words': 187}