<commit_before><?php

namespace Onesky\Api;

/**
 * Onesky API wrapper PHP5 library
 */

if (!function_exists('curl_init')) {
  throw new \Exception('OneSky needs the CURL PHP extension.');
}

class Client
{
    /**
     * Onesky API endpoint
     */
    protected $_endpoint = 'https://platform.api.onesky.io/1';

    /**
     * Client authenticate token
     */
    protected $_apiKey = '';

    /**
     * Client authenticate secret
     */
    protected $_secret = '';

    /**
     * Resources with actions
     */
    protected $_resources = array(
        'project_groups' => array(
            'list'      => '/project-groups',
            'show'      => '/project-groups/:project_group_id',
            'create'    => '/project-groups',
            'delete'    => '/project-groups/:project_group_id',
            'languages' => '/project-groups/:project_group_id/languages',
        ),
        'projects'       => array(
            'list'      => '/project-groups/:project_group_id/projects',
            'show'      => '/projects/:project_id',
            'create'    => '/project-groups/:project_group_id/projects',
            'update'    => '/projects/:project_id',
            'delete'    => '/projects/:project_id',
            'languages' => '/projects/:project_id/languages',
        ),
        'files'          => array(
            'list'   => '/projects/:project_id/files',
            'upload' => '/projects/:project_id/files',
            'delete' => '/projects/:project_id/files',
        ),
        'translations'   => array(
            'export' => '/projects/:project_id/translations',
            'status' => '/projects/:project_id/translations/status',
        ),
        'import_tasks'   => array(
            'show' => '/projects/:project_id/import-tasks/:import_id'
        ),
        'quotations'     => array(
            'show' => '/projects/:project_id/quotations'
        ),<commit_msg>Add list import tasks to valid resources<commit_after><?php

namespace Onesky\Api;

/**
 * Onesky API wrapper PHP5 library
 */

if (!function_exists('curl_init')) {
  throw new \Exception('OneSky needs the CURL PHP extension.');
}

class Client
{
    /**
     * Onesky API endpoint
     */
    protected $_endpoint = 'https://platform.api.onesky.io/1';

    /**
     * Client authenticate token
     */
    protected $_apiKey = '';

    /**
     * Client authenticate secret
     */
    protected $_secret = '';

    /**
     * Resources with actions
     */
    protected $_resources = array(
        'project_groups' => array(
            'list'      => '/project-groups',
            'show'      => '/project-groups/:project_group_id',
            'create'    => '/project-groups',
            'delete'    => '/project-groups/:project_group_id',
            'languages' => '/project-groups/:project_group_id/languages',
        ),
        'projects'       => array(
            'list'      => '/project-groups/:project_group_id/projects',
            'show'      => '/projects/:project_id',
            'create'    => '/project-groups/:project_group_id/projects',
            'update'    => '/projects/:project_id',
            'delete'    => '/projects/:project_id',
            'languages' => '/projects/:project_id/languages',
        ),
        'files'          => array(
            'list'   => '/projects/:project_id/files',
            'upload' => '/projects/:project_id/files',
            'delete' => '/projects/:project_id/files',
        ),
        'translations'   => array(
            'export' => '/projects/:project_id/translations',
            'status' => '/projects/:project_id/translations/status',
        ),
        'import_tasks'   => array(
	    'list' => '/projects/:project_id/import-tasks/',
            'show' => '/projects/:project_id/import-tasks/:import_id'
        ),
        'quotations'     => array(
            'show' => '/projects/:project_id/quotations'
        ),
{'fraction_non_alphanumeric': 0.16475681181563534, 'fraction_numerical': 0.0010185892538833714, 'mean_word_length': 1.8797653958944283, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 52, 'https://': 2, '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': '2728427', 'n_tokens_mistral': 1118, 'n_tokens_neox': 1149, 'n_words': 188}