<commit_before>_ = require 'lodash'
path = require 'path'
require './model.coffee'

angular.module 'starter.controller', ['starter.model', 'ionic']
  .controller 'UpstreamsCtrl', ($scope, resource) ->
    collection = []
    resource.Upstream.fetchAll()
      .then (res) ->
        _.merge collection, res
    _.extend $scope, 
       collection: collection
       create: ->
         upstream = new resource.Upstream
           prefix: '/prefix'
           target: 'http://echo:1338'
         upstream
           .$save()
           .then ->
             collection.push upstream
       drag:
         orderChanged: (event) ->
           itemScope = event.source.itemScope
           sortableScope = event.dest.sortableScope<commit_msg>add upstream model with server default values<commit_after>_ = require 'lodash'
path = require 'path'
require './model.coffee'

angular.module 'starter.controller', ['starter.model', 'ionic']
  .controller 'UpstreamsCtrl', ($scope, resource) ->
    collection = []
    resource.Upstream.fetchAll()
      .then (res) ->
        _.merge collection, res
    _.extend $scope, 
       collection: collection
       create: ->
         upstream = new resource.Upstream()
         upstream
           .$save()
           .then ->
             collection.push upstream
       drag:
         orderChanged: (event) ->
           itemScope = event.source.itemScope
           sortableScope = event.dest.sortableScope
{'fraction_non_alphanumeric': 0.11988911988911989, 'fraction_numerical': 0.002772002772002772, 'mean_word_length': 2.1120689655172415, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '4592813', 'n_tokens_mistral': 402, 'n_tokens_neox': 382, 'n_words': 95}