<commit_before><?php
/**
 * Copyright 2015 Dazoot Software
 *
 * NOTICE OF LICENSE
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 *  @author    <NAME> Newsman
 *  @copyright 2015 Dazoot Software
 *  @license   http://www.apache.org/licenses/LICENSE-2.0
 */

class Newsman extends Module
{
    const API_URL = 'https://ssl.newsman.ro/api/1.2/xmlrpc/';

    public function __construct() {
        $this->name = 'newsman';
        $this->tab = 'advertising_marketing';
        $this->version = '1.0.0';
        $this->author = '<NAME> for Newsman';
        $this->need_instance = 0;
        $this->ps_versions_compliancy = array('min' => '1.4', 'max' => _PS_VERSION_);
        $this->module_key = 'bb46dd134d42c2936ece1d3322d3a384';

        $this->bootstrap = true;
        parent::__construct();

        $this->displayName = $this->l('Newsman');
        //TODO detailed description (in config.xml too)
        $this->description = $this->l(
	        'The official Newsman module for PrestaShop. ' .
	        'Manage your Newsman subscriber lists, map your shop groups to the Newsman segments.'
        );

        $this->confirmUninstall = $this->l('Are you sure you want to uninstall Newsman module?');
    }

    public function uninstall() {
        return parent::uninstall()
            && Configuration::deleteByName('NEWSMAN_DATA')
            && Configuration::deleteByName('NEWSMAN_MAPPING')
            && Configuration::deleteByName('NEWSMAN_CONNECTED')
            && Configuration::deleteByName('NEWSMAN_API_KEY')
            && Configuration::deleteByName('NEWSMAN_USER_ID')<commit_msg>coding standards<commit_after><?php
/**
 * Copyright 2015 Dazoot Software
 *
 * NOTICE OF LICENSE
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 *  @author    <NAME> Newsman
 *  @copyright 2015 Dazoot Software
 *  @license   http://www.apache.org/licenses/LICENSE-2.0
 */

class Newsman extends Module
{
    const API_URL = 'https://ssl.newsman.ro/api/1.2/xmlrpc/';

    public function __construct() {
        $this->name = 'newsman';
        $this->tab = 'advertising_marketing';
        $this->version = '1.0.0';
        $this->author = '<NAME> Newsman';
        $this->need_instance = 0;
        $this->ps_versions_compliancy = array('min' => '1.4', 'max' => _PS_VERSION_);
        $this->module_key = 'bb46dd134d42c2936ece1d3322d3a384';

        $this->bootstrap = true;
        parent::__construct();

        $this->displayName = $this->l('Newsman');
        //TODO detailed description (in config.xml too)
        $this->description = $this->l(
	        'The official Newsman module for PrestaShop. Manage your Newsman subscriber lists, map your shop groups to the Newsman segments.'
        );

        $this->confirmUninstall = $this->l('Are you sure you want to uninstall Newsman module?');
    }

    public function uninstall() {
        return parent::uninstall()
            && Configuration::deleteByName('NEWSMAN_DATA')
            && Configuration::deleteByName('NEWSMAN_MAPPING')
            && Configuration::deleteByName('NEWSMAN_CONNECTED')
            && Configuration::deleteByName('NEWSMAN_API_KEY')
            && Configuration::deleteByName('NEWSMAN_USER_ID')
{'fraction_non_alphanumeric': 0.11998099311000238, 'fraction_numerical': 0.019957234497505347, 'mean_word_length': 3.0597878495660558, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 39, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, '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': '6675987', 'n_tokens_mistral': 1240, 'n_tokens_neox': 1189, 'n_words': 351}