<commit_before><?php
/*
* Copyright (c) 2011 Litle & Co.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
namespace litle\sdk;
class UrlMapper
{
    const POSTLIVE = "postlive";
    const SANDBOX = "sandbox";
    const PRODUCTION = "production";
    const TRANSACT_PRODUCTION = "transact_production";
    const TRANSACT_PRELIVE = "transact_prelive";
    const TRANSACT_POSTLIVE = "transact_postlive";
    const PRELIVE = "prelive";

    public static function getUrl($litleEnv)
    {
        $litleOnlineCtx = 'vap/communicator/online';
        if ($litleEnv == UrlMapper::SANDBOX)
            return 'https://www.testlitle.com/sandbox/communicator/online';
        elseif ($litleEnv == UrlMapper::POSTLIVE)
            return 'https://postlive.litle.com/' . $litleOnlineCtx;
        elseif ($litleEnv == UrlMapper::PRODUCTION)
            return 'https://payments.litle.com/' . $litleOnlineCtx;
        elseif ($litleEnv == UrlMapper::TRANSACT_PRODUCTION)
            return 'https://transact.litle.com/' . $litleOnlineCtx;
        elseif ($litleEnv == UrlMapper::TRANSACT_PRELIVE)
            return 'https://transact-prelive.litle.com/' . $litleOnlineCtx;
        elseif ($litleEnv == UrlMapper::TRANSACT_POSTLIVE)
            return 'https://transact-postlive.litle.com/' . $litleOnlineCtx;
        elseif ($litleEnv == UrlMapper::PRELIVE)
            return 'https://prelive.litle.com/' . $litleOnlineCtx;
        else
            return 'https://www.testlitle.com/sandbox/communicator/online';
    }
}
<commit_msg>Revert "remove refs to betacert"<commit_after><?php
/*
* Copyright (c) 2011 Litle & Co.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
namespace litle\sdk;
class UrlMapper
{
    const POSTLIVE = "postlive";
    const BETACERT = "betacert";
    const SANDBOX = "sandbox";
    const PRODUCTION = "production";
    const TRANSACT_PRODUCTION = "transact_production";
    const TRANSACT_PRELIVE = "transact_prelive";
    const TRANSACT_POSTLIVE = "transact_postlive";
    const TRANSACT_BETACERT = "transact_betacert";
    const PRELIVE = "prelive";

    public static function getUrl($litleEnv)
    {
        $litleOnlineCtx = 'vap/communicator/online';
        if ($litleEnv == UrlMapper::SANDBOX)
            return 'https://www.testlitle.com/sandbox/communicator/online';
        elseif ($litleEnv == UrlMapper::POSTLIVE)
            return 'https://postlive.litle.com/' . $litleOnlineCtx;
        elseif ($litleEnv == UrlMapper::BETACERT)
            return 'https://betacert.litle.com/' . $litleOnlineCtx;
        elseif ($litleEnv == UrlMapper::PRODUCTION)
            return 'https://payments.litle.com/' . $litleOnlineCtx;
        elseif ($litleEnv == UrlMapper::TRANSACT_PRODUCTION)
            return 'https://transact.litle.com/' . $litleOnlineCtx;
        elseif ($litleEnv == UrlMapper::TRANSACT_PRELIVE)
            return 'https://transact-prelive.litle.com/' . $litleOnlineCtx;
        elseif ($litleEnv == UrlMapper::TRANSACT_POSTLIVE)
            return 'https://transact-postlive.litle.com/' . $litleOnlineCtx;
        elseif ($litleEnv == UrlMapper::TRANSACT_BETACERT)
            return 'https://transact-betacert.litle.com/' . $litleOnlineCtx;
        elseif ($litleEnv == UrlMapper::PRELIVE)
            return 'https://prelive.litle.com/' . $litleOnlineCtx;
        else
            return 'https://www.testlitle.com/sandbox/communicator/online';
    }
}

{'fraction_non_alphanumeric': 0.10046082949308756, 'fraction_numerical': 0.0014746543778801843, 'mean_word_length': 3.4621710526315788, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 18, 'lorem ipsum': 0, 'www.': 4, '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': '5865215', 'n_tokens_mistral': 1651, 'n_tokens_neox': 1592, 'n_words': 508}