<commit_before>Q = require 'q'
CoinUtils = require "#{__dirname}/coin-utils"
rpcClient = require "#{__dirname}/jrpcClient"

Q.longStackSupport = true

T1INPUT_ID_FOR_T2_T3 = 0

module.exports = class

  channelId: undefined
  timeLock: undefined
  pubkeyK1: undefined
  privkeyK1: undefined
  serverPubkeyK2: undefined
  maxPayment: undefined
  agreementTxT1: undefined
  agreementTxT1Unbuilt: undefined
  agreementTxT1ScriptPubkey: undefined
  refundTxT2: undefined
  paymentTotalTx3: 0

  constructor: (@pubkeyK1, @privkeyK1, @maxPayment) ->

  createAndCommit: (callback) ->

    console.info "Opening the channel"
    Q.nfcall(rpcClient.call, "channel.open", [{}], {}).then(<commit_msg>Turn off debug info while in dev<commit_after>Q = require 'q'
CoinUtils = require "#{__dirname}/coin-utils"
rpcClient = require "#{__dirname}/jrpcClient"

if NODE_ENV is 'development'
  Q.longStackSupport = true

T1INPUT_ID_FOR_T2_T3 = 0

module.exports = class

  channelId: undefined
  timeLock: undefined
  pubkeyK1: undefined
  privkeyK1: undefined
  serverPubkeyK2: undefined
  maxPayment: undefined
  agreementTxT1: undefined
  agreementTxT1Unbuilt: undefined
  agreementTxT1ScriptPubkey: undefined
  refundTxT2: undefined
  paymentTotalTx3: 0

  constructor: (@pubkeyK1, @privkeyK1, @maxPayment) ->

  createAndCommit: (callback) ->

    console.info "Opening the channel"
    Q.nfcall(rpcClient.call, "channel.open", [{}], {}).then(
{'fraction_non_alphanumeric': 0.1034965034965035, 'fraction_numerical': 0.02097902097902098, 'mean_word_length': 5.089361702127659, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1045606', 'n_tokens_mistral': 491, 'n_tokens_neox': 480, 'n_words': 109}