<commit_before>var Sequelize = require('sequelize');
var encoder = require("./path_encoder");
var geos    = require("geos");
var util    = require("util");
require('date-utils');

var EARTH_RADIUS = 6370986;
var SRID = 4326;

exports.SRID = SRID;
exports.EARTH_RADIUS = EARTH_RADIUS;
exports.SRID_FOR_SIMILAR_SEARCH = 32662;

var wkbreader  = new geos.WKBReader();
var jsonwriter = new geos.GeoJSONWriter();
var jsonreader = new geos.GeoJSONReader();
var wktwriter  = new geos.WKTWriter();
var sequelize = new Sequelize(process.env.DB_URL, {
    dialect: 'postgres',
    omitNull: true,
    native: false
});

exports.sequelize = sequelize;

sequelize.define('walks', {
    id: {
        type: Sequelize.INTEGER,
        primaryKey: true
    },
    date:   Sequelize.STRING,
    title: 	Sequelize.STRING,
    comment:	Sequelize.STRING,
    length: {
        type: Sequelize.FLOAT,
    },
    distance: {
        type: Sequelize.FLOAT,
    },
    path: {
        type : Sequelize.TEXT,<commit_msg>change environment variables for docker link<commit_after>var Sequelize = require('sequelize');
var encoder = require("./path_encoder");
var geos    = require("geos");
var util    = require("util");
require('date-utils');

var EARTH_RADIUS = 6370986;
var SRID = 4326;

exports.SRID = SRID;
exports.EARTH_RADIUS = EARTH_RADIUS;
exports.SRID_FOR_SIMILAR_SEARCH = 32662;

var wkbreader  = new geos.WKBReader();
var jsonwriter = new geos.GeoJSONWriter();
var jsonreader = new geos.GeoJSONReader();
var wktwriter  = new geos.WKTWriter();

var db_url = process.env.WALKDB_URL || util.format("postgres://%s:%s@%s:%s/%s",
						   process.env.POSTGRES_USER,
						   process.env.POSTGRES_PASSWORD,
						   process.env.WALKDB_PORT_5432_TCP_ADDR,
						   process.env.WALKDB_PORT_5432_TCP_PORT,
						   process.env.POSTGRES_DB || process.env.POSTGRES_USER);

var sequelize = new Sequelize(db_url, {
    dialect: 'postgres',
    omitNull: true,
    native: false
});

exports.sequelize = sequelize;

sequelize.define('walks', {
    id: {
        type: Sequelize.INTEGER,
        primaryKey: true
    },
    date:   Sequelize.STRING,
    title: 	Sequelize.STRING,
    comment:	Sequelize.STRING,
    length: {
        type: Sequelize.FLOAT,
    },
    distance: {
        type: Sequelize.FLOAT,
    },
    path: {
        type : Sequelize.TEXT,
{'fraction_non_alphanumeric': 0.1279519106912838, 'fraction_numerical': 0.017174753112924, 'mean_word_length': 3.3308550185873607, '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': '3545439', 'n_tokens_mistral': 924, 'n_tokens_neox': 845, 'n_words': 162}