<commit_before><?php

class BaseController extends Controller {

  protected $steamAPI;
  protected $log;

  /**
   * Setup the layout used by the controller.
   *
   * @return void
   */
  public function __construct()
  {
    $this->steamAPI = '<KEY>';
    $this->log = Log::getMonolog();

    if(empty($this->steamAPI)) {
      $this->log->addError("STEAMAPI", array(
        "ipAddress" => Request::getClientIp(),
        "controller" => "__construct@BaseController"
      ));
      echo 'STEAMAPI MISSING <!--';
    }
  }

  protected function setupLayout()
  {
    if ( ! is_null($this->layout))
    {
      $this->layout = View::make($this->layout);
    }
  }

  public function getVBanUser($steamCommunityId, $sessionUserId = null)
  {
    if($sessionUserId == null) $sessionUserId = Session::get('user.id');
    $vBanUser = vBanUser::wherecommunityId($steamCommunityId)->first();
    if(!isset($vBanUser->id) || time() - strtotime($vBanUser->updated_at) > 43200000 || $vBanUser->vac_banned == 0)
    {
      $userInfo = $this->updateVBanUser($vBanUser, $steamCommunityId);
    } else {
      $userInfo = $vBanUser;<commit_msg>clear steamapi (dont worry i revoked it)<commit_after><?php

class BaseController extends Controller {

  protected $steamAPI;
  protected $log;

  /**
   * Setup the layout used by the controller.
   *
   * @return void
   */
  public function __construct()
  {
    $this->steamAPI = '';
    $this->log = Log::getMonolog();

    if(empty($this->steamAPI)) {
      $this->log->addError("STEAMAPI", array(
        "ipAddress" => Request::getClientIp(),
        "controller" => "__construct@BaseController"
      ));
      echo 'STEAMAPI MISSING <!--';
    }
  }

  protected function setupLayout()
  {
    if ( ! is_null($this->layout))
    {
      $this->layout = View::make($this->layout);
    }
  }

  public function getVBanUser($steamCommunityId, $sessionUserId = null)
  {
    if($sessionUserId == null) $sessionUserId = Session::get('user.id');
    $vBanUser = vBanUser::wherecommunityId($steamCommunityId)->first();
    if(!isset($vBanUser->id) || time() - strtotime($vBanUser->updated_at) > 43200000 || $vBanUser->vac_banned == 0)
    {
      $userInfo = $this->updateVBanUser($vBanUser, $steamCommunityId);
    } else {
      $userInfo = $vBanUser;
{'fraction_non_alphanumeric': 0.16666666666666666, 'fraction_numerical': 0.007853403141361256, 'mean_word_length': 3.318267419962335, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 36, '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': '800357', 'n_tokens_mistral': 798, 'n_tokens_neox': 750, 'n_words': 134}