<commit_before><?php
$abspath = '/home7/worldbit/programs/intersango';
$urlroot = '/';

if (!file_exists("$abspath/trade.php")) {
    echo "\$abspath should point to the intersango directory - the one that contains trade.php, etc.\n";
    exit();
}

require_once "$abspath/errors.php";
enable_errors();

// path to a directory to use for per-user locks - must be writable by the user who runs PHP scripts
function lock_dir() { global $abspath; return $abspath . "/locks"; }

// which timezone should we use
function timezone() { return "Australia/Queensland"; }

// .------------------------------------------------------------------------
// |  free money! (set to zero before going live!!)
// `------------------------------------------------------------------------

// how much free AUD to give new accounts on signup
function free_aud_on_signup() { return "1000"; }

// how much free BTC to give new accounts on signup
function free_btc_on_signup() { return "100"; }

// .------------------------------------------------------------------------
// |  security
// `------------------------------------------------------------------------

// how many minutes can a user be idle for before they're automatically logged out
function max_idle_minutes_before_logout() { return 60; }

// how often should we change the session id (in minutes)
function max_session_id_lifetime() { return 10; }

// how many confirmations we need on incoming bitcoin transfers before adding them to the user accounts
function confirmations_for_deposit() { return 4; }<commit_msg>Allow configuration of what time a new day is considered to start.<commit_after><?php
$abspath = '/home7/worldbit/programs/intersango';
$urlroot = '/';

if (!file_exists("$abspath/trade.php")) {
    echo "\$abspath should point to the intersango directory - the one that contains trade.php, etc.\n";
    exit();
}

require_once "$abspath/errors.php";
enable_errors();

// path to a directory to use for per-user locks - must be writable by the user who runs PHP scripts
function lock_dir() { global $abspath; return $abspath . "/locks"; }

// .------------------------------------------------------------------------
// |  local time
// `------------------------------------------------------------------------

// which timezone should we use
function timezone() { return "Australia/Queensland"; }

// how many minutes after midnight does the day start, for the purposes of limiting daily transfers
function day_starts_minutes_after_midnight() { return 9*60 + 0; } // day starts at 9:00am

// .------------------------------------------------------------------------
// |  free money! (set to zero before going live!!)
// `------------------------------------------------------------------------

// how much free AUD to give new accounts on signup
function free_aud_on_signup() { return "1000"; }

// how much free BTC to give new accounts on signup
function free_btc_on_signup() { return "100"; }

// .------------------------------------------------------------------------
// |  security
// `------------------------------------------------------------------------

// how many minutes can a user be idle for before they're automatically logged out
function max_idle_minutes_before_logout() { return 60; }

// how often should we change the session id (in minutes)
function max_session_id_lifetime() { return 10; }

// how many confirmations we need on incoming bitcoin transfers before adding them to the user accounts
function confirmations_for_deposit() { return 4; }
{'fraction_non_alphanumeric': 0.2923033389926429, 'fraction_numerical': 0.00933786078098472, 'mean_word_length': 1.725520431765613, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7174576', 'n_tokens_mistral': 893, 'n_tokens_neox': 851, 'n_words': 334}