<commit_before><?php

namespace Octokit\Client;

use Octokit\Api;

class Gitignore extends Api
{
}
<commit_msg>Added new gitignore client<commit_after><?php

namespace Octokit\Client;

use Octokit\Api;

class Gitignore extends Api
{
    /**
     * Listing available gitignore templates.
     * 
     * These templates can be passed option when creating a repository.
     * 
     * @see http://developer.github.com/v3/gitignore/#listing-available-templates
     * 
     * @param array $options Optional options.
     * 
     * @return array List of templates.
     */
    public function gitignoreTemplates(array $options = array())
    {
        return $this->request()->get('gitignore/templates', $options);
    }
    
    /**
     * Get a gitignore template.
     * 
     * Use the raw {http://developer.github.com/v3/media/ media type} to get
     * the raw contents.
     * 
     * @see http://developer.github.com/v3/gitignore/#get-a-single-template
     * 
     * @param string $template_name Name of the template. Template names are
     *                              case sensitive, make sure to use a valid name from the 
     *                              .gitignore_templates list.
     * @param array  $options       Optional options.
     * 
     * @return array List of templates.
     */
    public function gitignoreTemplate($template_name, array $options = array())
    {
        return $this->request()->get('gitignore/templates/' . $template_name, $options);
    }
}

{'fraction_non_alphanumeric': 0.10745466756212223, 'fraction_numerical': 0.0020147750167897917, 'mean_word_length': 2.2461873638344225, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6252818', 'n_tokens_mistral': 427, 'n_tokens_neox': 417, 'n_words': 115}