<commit_before><?php
/* This class is part of the XP framework
 *
 * $Id$ 
 */

  uses('peer.URL');

  /**
   * (Insert class' description here)
   *
   * @ext      extension
   * @see      reference
   * @purpose  purpose
   */
  class FlickrAuth extends Object {
    var
      $frob     = '',
      $token    = '';

    /**
     * Set Frob
     *
     * @access  public
     * @param   string frob
     */
    function setFrobValue($frob) {
      $this->frob= $frob;
    }

    /**
     * Get Frob
     *
     * @access  public
     * @return  string
     */
    function getFrobValue() {
      return $this->frob;
    }

    /**
     * Set Token
     *
     * @access  public
     * @param   string token
     */
    function setTokenValue($token) {
      $this->token= $token;
    }

    /**
     * Get Token
     *
     * @access  public
     * @return  string
     */
    function getTokenValue() {
      return $this->token;
    }

    /**
     * (Insert method's description here)
     *
     * @access  
     * @param   
     * @return  
     */
    function getFrob(&$client) {
      $res= $client->invoke('flickr.auth.getFrob', array(
        'perms' => 'read'
      ));
      $this->setFrobValue($res['frob']);
    }

    /**
     * (Insert method's description here)
     *
     * @access  
     * @param   
     * @return  
     */
    function getFrobURL(&$client) {
      $arguments= array(
        'frob'  => $this->getFrobValue(),
        'perms' => 'read'
      );
      $arguments= $client->signArray($arguments);
      
      $url= &new URL('http://flickr.com/services/auth');
      $url->addParams($arguments);
      
      return $url->getURL();
    }
    
    /**
     * (Insert method's description here)
     *
     * @access  
     * @param   
     * @return  
     */
    function getToken(&$client) {
      $res= $client->invoke('flickr.auth.getToken', array(
        'frob'  => $this->getFrobValue()
      ));
      
      return $res;
    }    
  }
?><commit_msg>- QA: Add missing api doc<commit_after><?php
/* This class is part of the XP framework
 *
 * $Id$ 
 */

  uses('peer.URL');

  /**
   * FlickR authentication
   *
   * @purpose  Authentication
   */
  class FlickrAuth extends Object {
    var
      $frob     = '',
      $token    = '';

    /**
     * Set Frob
     *
     * @access  public
     * @param   string frob
     */
    function setFrobValue($frob) {
      $this->frob= $frob;
    }

    /**
     * Get Frob
     *
     * @access  public
     * @return  string
     */
    function getFrobValue() {
      return $this->frob;
    }

    /**
     * Set Token
     *
     * @access  public
     * @param   string token
     */
    function setTokenValue($token) {
      $this->token= $token;
    }

    /**
     * Get Token
     *
     * @access  public
     * @return  string
     */
    function getTokenValue() {
      return $this->token;
    }

    /**
     * Get FROB
     *
     * @access  public
     * @param   &lang.Object client
     */
    function getFrob(&$client) {
      $res= $client->invoke('flickr.auth.getFrob', array(
        'perms' => 'read'
      ));
      $this->setFrobValue($res['frob']);
    }

    /**
     * Get FROB URL
     *
     * @access  public
     * @param   &lang.Object client
     * @return  string url
     */
    function getFrobURL(&$client) {
      $arguments= array(
        'frob'  => $this->getFrobValue(),
        'perms' => 'read'
      );
      $arguments= $client->signArray($arguments);
      
      $url= &new URL('http://flickr.com/services/auth');
      $url->addParams($arguments);
      
      return $url->getURL();
    }
    
    /**
     * Get token
     *
     * @access  public
     * @param   &lang.Object client
     * @return  mixed
     */
    function getToken(&$client) {
      $res= $client->invoke('flickr.auth.getToken', array(
        'frob'  => $this->getFrobValue()
      ));
      
      return $res;
    }    
  }
?>
{'fraction_non_alphanumeric': 0.15560060821084643, 'fraction_numerical': 0.0, 'mean_word_length': 1.5563471502590673, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 37, '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': '664944', 'n_tokens_mistral': 1348, 'n_tokens_neox': 1312, 'n_words': 253}