<commit_before><?php

namespace MarketScan;


/*

http://www.marketscan.com/mScanAPIDocumentation/html/b40172da-018e-4a80-a14f-37918e8748e3.htm
*/

class MScan{

  const SCANMODE_LEASE = 0;
  const SCANMODE_RETAIL = 1;
  const SCANMODE_LOAN = 1; //Synonym
  const SCANMODE_MPENCIL = 2;

  const SCANTYPE_PROFIT = 0;
  const SCANTYPE_SELLINGPRICE = 1;
  const SCANTYPE_PAYMENT = 2;
  const SCANTYPE_MAXI = 3; //Used to calculate the scan by the maximum profit allowed. The scan will collect maximum upfront profit that can be made - difference between Selling Price and Dealer Cost. The scan will collect the maximum paid reserve that is allowed by the lender and deal structure. This scan will maximize all other values that can be marked up for profit.

  // Returned as part of GetManufacturer dictates whether RunScan should pass the Customer's ZIP or the Dealer's ZIP in AutoRebateParams.ZIP
  const MANUFACTURER_REBATE_ZIP_DEALER = 1;
  const MANUFACTURER_REBATE_ZIP_CUSTOMER = 0;

  private $partner_id;
  private $account;
  private $base_url = 'http://integration.marketscan.com/mscanservice/rest/mscanservice.rst/?';

  public function __construct($partner_id, $account, $base_url = null){
    $this->partner_id = $partner_id;
    $this->account = $account;
    if($base_url){
      $this->$base_url = $base_url;
    }
  }

  public function api_request($command, $method = "GET", $append_to_url = "", $data = null){
    $url = $this->base_url . $command . '/' . $this->partner_id . '/' . $this->account;

    if($append_to_url){
      if($append_to_url{0} != '/'){ $url .= '/'; } //Insert a / between account and this, but don't double up
      $url .= $append_to_url;<commit_msg>Add SpecialStandard enum values<commit_after><?php

namespace MarketScan;


/*

http://www.marketscan.com/mScanAPIDocumentation/html/b40172da-018e-4a80-a14f-37918e8748e3.htm
*/

class MScan{

  const SCANMODE_LEASE = 0;
  const SCANMODE_RETAIL = 1;
  const SCANMODE_LOAN = 1; //Synonym
  const SCANMODE_MPENCIL = 2;

  const SCANTYPE_PROFIT = 0;
  const SCANTYPE_SELLINGPRICE = 1;
  const SCANTYPE_PAYMENT = 2;
  const SCANTYPE_MAXI = 3; //Used to calculate the scan by the maximum profit allowed. The scan will collect maximum upfront profit that can be made - difference between Selling Price and Dealer Cost. The scan will collect the maximum paid reserve that is allowed by the lender and deal structure. This scan will maximize all other values that can be marked up for profit.


  //Filter RunScan results to, for example, only include specials
  const SPECIALSTANDARD_BOTH = 0;
  const SPECIALSTANDARD_SPECIAL_ONLY = 1;
  const SPECIALSTANDARD_STANDARD_ONLY = 2;

  // Returned as part of GetManufacturer dictates whether RunScan should pass the Customer's ZIP or the Dealer's ZIP in AutoRebateParams.ZIP
  const MANUFACTURER_REBATE_ZIP_DEALER = 1;
  const MANUFACTURER_REBATE_ZIP_CUSTOMER = 0;

  private $partner_id;
  private $account;
  private $base_url = 'http://integration.marketscan.com/mscanservice/rest/mscanservice.rst/?';

  public function __construct($partner_id, $account, $base_url = null){
    $this->partner_id = $partner_id;
    $this->account = $account;
    if($base_url){
      $this->$base_url = $base_url;
    }
  }

  public function api_request($command, $method = "GET", $append_to_url = "", $data = null){
    $url = $this->base_url . $command . '/' . $this->partner_id . '/' . $this->account;

    if($append_to_url){
      if($append_to_url{0} != '/'){ $url .= '/'; } //Insert a / between account and this, but don't double up
      $url .= $append_to_url;
{'fraction_non_alphanumeric': 0.10655509065550907, 'fraction_numerical': 0.0198047419804742, 'mean_word_length': 3.9325997248968365, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5580144', 'n_tokens_mistral': 1306, 'n_tokens_neox': 1211, 'n_words': 346}