<commit_before>Loki = require('lokijs')

app = global.cobudgetApp

AngularRecordStore = require('angular_record_store')

app.factory('BaseModel', AngularRecordStore.BaseModel)
app.factory('BaseRecordsInterface', ['RestfulClient', '$q', AngularRecordStore.BaseRecordsInterface])
app.factory('RecordStore', AngularRecordStore.RecordStore)
# $compile is a joke, actually $upload (current version used is 3.x, need to update, might not even need to use)
app.factory('RestfulClient', ['$http', '$compile', AngularRecordStore.RestfulClient])

app.factory 'Records', (RecordStore, GroupRecordsInterface, BucketRecordsInterface) ->
  db = new Loki('cobudgetApp')
  recordStore = new RecordStore(db)
  recordStore.addRecordsInterface(GroupRecordsInterface)
  recordStore.addRecordsInterface(BucketRecordsInterface)
  recordStore.addRecordsInterface(UserRecordsInterface)
  recordStore<commit_msg>woops forgot to inject UserRecordsInterface<commit_after>Loki = require('lokijs')

app = global.cobudgetApp

AngularRecordStore = require('angular_record_store')

app.factory('BaseModel', AngularRecordStore.BaseModel)
app.factory('BaseRecordsInterface', ['RestfulClient', '$q', AngularRecordStore.BaseRecordsInterface])
app.factory('RecordStore', AngularRecordStore.RecordStore)
# $compile is a joke, actually $upload (current version used is 3.x, need to update, might not even need to use)
app.factory('RestfulClient', ['$http', '$compile', AngularRecordStore.RestfulClient])

app.factory 'Records', (RecordStore, GroupRecordsInterface, BucketRecordsInterface, UserRecordsInterface) ->
  db = new Loki('cobudgetApp')
  recordStore = new RecordStore(db)
  recordStore.addRecordsInterface(GroupRecordsInterface)
  recordStore.addRecordsInterface(BucketRecordsInterface)
  recordStore.addRecordsInterface(UserRecordsInterface)
  recordStore
{'fraction_non_alphanumeric': 0.10788608981380066, 'fraction_numerical': 0.001095290251916758, 'mean_word_length': 8.82258064516129, 'pattern_counts': {'":': 0, '<': 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': '5085191', 'n_tokens_mistral': 512, 'n_tokens_neox': 501, 'n_words': 110}