<commit_before><?php

class FileAPI {
  protected $podio;
  public function __construct() {
    $this->podio = PodioBaseAPI::instance();
  }
  
	public function getFilesOnSpace($space_id, $limit, $offset = 0) {
	  if ($response = $this->podio->request('/file/space/'.$space_id.'/', array('limit' => $limit, 'offset' => $offset))) {
      return json_decode($response->getBody(), TRUE);
    }
	}

	public function getRecentOnSpace($space_id, $limit) {
	  if ($response = $this->podio->request('/file/space/'.$space_id.'/latest/', array('limit' => $limit))) {
      return json_decode($response->getBody(), TRUE);
    }
	}
	
  public function getLocation($id) {
    if ($response = $this->podio->request('/file/'.$id.'/location')) {
      return json_decode($response->getBody(), TRUE);
    }
  }
  <commit_msg>Change download format to: download.podio.local/FILE_ID/FILE_SIZE<commit_after><?php

class FileAPI {
  protected $podio;
  public function __construct() {
    $this->podio = PodioBaseAPI::instance();
  }
  
	public function getFilesOnSpace($space_id, $limit, $offset = 0) {
	  if ($response = $this->podio->request('/file/space/'.$space_id.'/', array('limit' => $limit, 'offset' => $offset))) {
      return json_decode($response->getBody(), TRUE);
    }
	}

	public function getRecentOnSpace($space_id, $limit) {
	  if ($response = $this->podio->request('/file/space/'.$space_id.'/latest/', array('limit' => $limit))) {
      return json_decode($response->getBody(), TRUE);
    }
	}
	
  public function getLocation($file_id) {
    if ($response = $this->podio->request('/file/'.$file_id.'/location')) {
      return json_decode($response->getBody(), TRUE);
    }
  }
  
{'fraction_non_alphanumeric': 0.1982142857142857, 'fraction_numerical': 0.0011904761904761906, 'mean_word_length': 3.9587020648967552, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1424149', 'n_tokens_mistral': 559, 'n_tokens_neox': 552, 'n_words': 98}