<commit_before>
var Path = require("path")
var spawn = require('child_process')
var Q = require('q')
var WalkDir = require("../utils/walk")

var promptOptions = {
  user: null,
  password:<PASSWORD>,
  database:null,
  host:null,
  port:null,
  version:null,
  file: null
}

var destPath = Path.join( process.cwd(), "3vot_backend", "dist"); 

function execute(options){
  var deferred = Q.defer();

  promptOptions = options.db[options.target];
  promptOptions.version = options.version || _findLastVersion()
  promptOptions.file = Path.join( destPath, "v_" + promptOptions.version  + ".sql" ); 

  command = 'PGPASSWORD="=' + promptOptions.password + '" psql sslmode=require -U ' + promptOptions.user  + ' -q -d ' + promptOptions.database + '  -h ' + promptOptions.host + ' -p ' + promptOptions.port + ' --file=' + promptOptions.file<commit_msg>fix bug od = in pg:deploy<commit_after>
var Path = require("path")
var spawn = require('child_process')
var Q = require('q')
var WalkDir = require("../utils/walk")

var promptOptions = {
  user: null,
  password:<PASSWORD>,
  database:null,
  host:null,
  port:null,
  version:null,
  file: null
}

var destPath = Path.join( process.cwd(), "3vot_backend", "dist"); 

function execute(options){
  var deferred = Q.defer();

  promptOptions = options.db[options.target];
  promptOptions.version = options.version || _findLastVersion()
  promptOptions.file = Path.join( destPath, "v_" + promptOptions.version  + ".sql" ); 

  command = 'PGPASSWORD="' + promptOptions.password + '" psql sslmode=require -U ' + promptOptions.user  + ' -q -d ' + promptOptions.database + '  -h ' + promptOptions.host + ' -p ' + promptOptions.port + ' --file=' + promptOptions.file
{'fraction_non_alphanumeric': 0.1626541397533764, 'fraction_numerical': 0.0011743981209630064, 'mean_word_length': 4.226993865030675, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2608963', 'n_tokens_mistral': 565, 'n_tokens_neox': 550, 'n_words': 127}