<commit_before>// Copyright (c) 2013-2017 The btcsuite developers
// Copyright (c) 2015-2016 The Decred developers
// Copyright (C) 2015-2017 The Lightning Network Developers

package main

import (
	"errors"
	"fmt"
	"io/ioutil"
	"net"
	"os"
	"os/user"
	"path"
	"path/filepath"
	"regexp"
	"sort"
	"strconv"
	"strings"
	"time"

	"github.com/btcsuite/btcutil"
	flags "github.com/jessevdk/go-flags"
	"github.com/lightningnetwork/lnd/build"
	"github.com/lightningnetwork/lnd/htlcswitch/hodl"
	"github.com/lightningnetwork/lnd/lncfg"
	"github.com/lightningnetwork/lnd/lnrpc/signrpc"
	"github.com/lightningnetwork/lnd/lnwire"
	"github.com/lightningnetwork/lnd/routing"
	"github.com/lightningnetwork/lnd/tor"
)

const (
	defaultConfigFilename      = "lnd.conf"
	defaultDataDirname         = "data"
	defaultChainSubDirname     = "chain"
	defaultGraphSubDirname     = "graph"
	defaultTLSCertFilename     = "tls.cert"
	defaultTLSKeyFilename      = "tls.key"
	defaultAdminMacFilename    = "admin.macaroon"
	defaultReadMacFilename     = "readonly.macaroon"
	defaultInvoiceMacFilename  = "invoice.macaroon"
	defaultLogLevel            = "info"
	defaultLogDirname          = "logs"
	defaultLogFilename         = "lnd.log"
	defaultRPCPort             = 10009
	defaultRESTPort            = 8080
	defaultPeerPort            = 9735
	defaultRPCHost             = "localhost"
	defaultMaxPendingChannels  = 1
	defaultNoSeedBackup        = false
	defaultTrickleDelay        = 30 * 1000
	defaultInactiveChanTimeout = 20 * time.Minute
	defaultMaxLogFiles         = 3
	defaultMaxLogFileSize      = 10
	defaultMinBackoff          = time.Second<commit_msg>config: increase default trickle delay from 30s to 1m30s<commit_after>// Copyright (c) 2013-2017 The btcsuite developers
// Copyright (c) 2015-2016 The Decred developers
// Copyright (C) 2015-2017 The Lightning Network Developers

package main

import (
	"errors"
	"fmt"
	"io/ioutil"
	"net"
	"os"
	"os/user"
	"path"
	"path/filepath"
	"regexp"
	"sort"
	"strconv"
	"strings"
	"time"

	"github.com/btcsuite/btcutil"
	flags "github.com/jessevdk/go-flags"
	"github.com/lightningnetwork/lnd/build"
	"github.com/lightningnetwork/lnd/htlcswitch/hodl"
	"github.com/lightningnetwork/lnd/lncfg"
	"github.com/lightningnetwork/lnd/lnrpc/signrpc"
	"github.com/lightningnetwork/lnd/lnwire"
	"github.com/lightningnetwork/lnd/routing"
	"github.com/lightningnetwork/lnd/tor"
)

const (
	defaultConfigFilename      = "lnd.conf"
	defaultDataDirname         = "data"
	defaultChainSubDirname     = "chain"
	defaultGraphSubDirname     = "graph"
	defaultTLSCertFilename     = "tls.cert"
	defaultTLSKeyFilename      = "tls.key"
	defaultAdminMacFilename    = "admin.macaroon"
	defaultReadMacFilename     = "readonly.macaroon"
	defaultInvoiceMacFilename  = "invoice.macaroon"
	defaultLogLevel            = "info"
	defaultLogDirname          = "logs"
	defaultLogFilename         = "lnd.log"
	defaultRPCPort             = 10009
	defaultRESTPort            = 8080
	defaultPeerPort            = 9735
	defaultRPCHost             = "localhost"
	defaultMaxPendingChannels  = 1
	defaultNoSeedBackup        = false
	defaultTrickleDelay        = 90 * 1000
	defaultInactiveChanTimeout = 20 * time.Minute
	defaultMaxLogFiles         = 3
	defaultMaxLogFileSize      = 10
	defaultMinBackoff          = time.Second
{'fraction_non_alphanumeric': 0.10027264465313541, 'fraction_numerical': 0.031202665858830657, 'mean_word_length': 3.293888166449935, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1809273', 'n_tokens_mistral': 1245, 'n_tokens_neox': 1148, 'n_words': 197}