<commit_before><?php

namespace FS\Components;

class Url extends \FS\Components\AbstractComponent
{
    public function make($name, $escape = false)
    {
        $args = array();
        $base_url;

        $page = \version_compare(WC()->version, '2.1', '>=') ? 'wc-settings' : 'woocommerce_settings';

        switch ($name) {
            case 'flagship_shipping_settings':
                $args['page'] = $page;
                $args['tab'] = 'shipping';
                $args['section'] = 'flagship_wc_shipping_method';
                $base_url = admin_url('admin.php');
                break;
            case 'wc_tax_settings':
                $args['page'] = $page;
                $args['tab'] = 'tax';<commit_msg>fixes - update plugins setting link to wc  v2.5 backwards compatible<commit_after><?php

namespace FS\Components;

class Url extends \FS\Components\AbstractComponent
{
    public function make($name, $escape = false)
    {
        $args = array();
        $base_url;

        $page = \version_compare(WC()->version, '2.1', '>=') ? 'wc-settings' : 'woocommerce_settings';
        $isVer26OorNewer = \version_compare(WC()->version, '2.6', '>=');

        switch ($name) {
            case 'flagship_shipping_settings':
                $args['page'] = $page;
                $args['tab'] = 'shipping';
                $args['section'] = $isVer26OorNewer ? $this->getApplicationContext()->getComponent('\\FS\\Components\\Settings')['FLAGSHIP_SHIPPING_PLUGIN_ID'] : 'flagship_wc_shipping_method';
                $base_url = admin_url('admin.php');
                break;
            case 'wc_tax_settings':
                $args['page'] = $page;
                $args['tab'] = 'tax';
{'fraction_non_alphanumeric': 0.1591309453904874, 'fraction_numerical': 0.007046388725778039, 'mean_word_length': 2.2395437262357416, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '318347', 'n_tokens_mistral': 528, 'n_tokens_neox': 506, 'n_words': 91}