<commit_before># https://github.com/balderdashy/waterline
# ovo probat

Sequelize = require('sequelize');
sequelize = new Sequelize 'stash_buckets_new', 'dux', '!Netlife',
  host: 'localhost',
  dialect: 'postgres',
  pool:
    max: 5,
    min: 0,
    idle: 10000

LinkModel = sequelize.define 'links',
  name: { type: Sequelize.STRING  },
  url: { type: Sequelize.STRING }
,
  freezeTableName: true

s = $.speed ->
  LinkModel.findAll(attributes:['id', 'name', 'url']).then (links) ->
    s();
    # for el in links
    #   console.log el.name

module.exports = class BaseCell extends load_module('cells/app_cell')
  
  root: ->
    """<body><h3>Hallo</h3><p>This is html index. Try</p><ul>
      <li><a href="/bla">/bla (not found)</a></li>
      <li><a href="/api/users">/api/users (generic api)</a></li>
      <li><a href="/users">/users (user list)</a></li>
      <li><a href="/users/4">/users/4 (single user)</a></li>
      <li><a href="/gallery">gallery</a></li>
      <li><a href="/inline_gallery">inline_gallery</a></li>
      <li><a href="/promise">promise</a></li>
    </ul></body> """

  api: (path)->
    class:   path[0]
    method:  path[1]
    message: 'ok'

  not_found: ->
    'Page not found'

  db: ->
    'asdas'

<commit_msg>Update base_cell.coffee<commit_after># https://github.com/balderdashy/waterline
# ovo probat

Sequelize = require('sequelize');
sequelize = new Sequelize 'stash_buckets_new', 'dux', 'bla',
  host: 'localhost',
  dialect: 'postgres',
  pool:
    max: 5,
    min: 0,
    idle: 10000

LinkModel = sequelize.define 'links',
  name: { type: Sequelize.STRING  },
  url: { type: Sequelize.STRING }
,
  freezeTableName: true

s = $.speed ->
  LinkModel.findAll(attributes:['id', 'name', 'url']).then (links) ->
    s();
    # for el in links
    #   console.log el.name

module.exports = class BaseCell extends load_module('cells/app_cell')
  
  root: ->
    """<body><h3>Hallo</h3><p>This is html index. Try</p><ul>
      <li><a href="/bla">/bla (not found)</a></li>
      <li><a href="/api/users">/api/users (generic api)</a></li>
      <li><a href="/users">/users (user list)</a></li>
      <li><a href="/users/4">/users/4 (single user)</a></li>
      <li><a href="/gallery">gallery</a></li>
      <li><a href="/inline_gallery">inline_gallery</a></li>
      <li><a href="/promise">promise</a></li>
    </ul></body> """

  api: (path)->
    class:   path[0]
    method:  path[1]
    message: 'ok'

  not_found: ->
    'Page not found'

  db: ->
    'asdas'


{'fraction_non_alphanumeric': 0.21288515406162464, 'fraction_numerical': 0.010404161664665866, 'mean_word_length': 3.1186161449752885, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 87, 'https://': 2, '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': '4196168', 'n_tokens_mistral': 981, 'n_tokens_neox': 945, 'n_words': 191}