<commit_before><?php

namespace Craft;

/**
 * Reverse Relations Entry Fieldtype.
 *
 * Fieldtype that allows you to show reverse relations for entries.
 *
 * @author    <NAME> <<EMAIL>>
 * @copyright Copyright (c) 2015, <NAME>
 * @license   MIT
 *
 * @link      http://github.com/boboldehampsink
 */
class ReverseRelations_EntryFieldType extends BaseElementFieldType
{
    /**
     * Element Type Entry.
     *
     * @var string
     */
    protected $elementType = ElementType::Entry;

    /**
     * Dont allow a limit to be set.
     *
     * @var bool
     */
    protected $allowLimit = false;

    /**
     * Reverse Entry Relations name.
     *
     * @return string
     */
    public function getName()
    {
        return Craft::t('Reverse Entry Relations');
    }

    /**
     * Set settings html.
     *
     * @return string
     */
    public function getSettingsHtml()
    {
        // Get parent settings
        $settings = parent::getSettingsHtml();

        // Get available fields
        $fields = array();
        foreach (craft()->fields->getAllFields() as $field) {
            $fields[$field->handle] = $field->name;
        }
<commit_msg>Fixing sorting error for Craft 2.5+<commit_after><?php

namespace Craft;

/**
 * Reverse Relations Entry Fieldtype.
 *
 * Fieldtype that allows you to show reverse relations for entries.
 *
 * @author    <NAME> <<EMAIL>>
 * @copyright Copyright (c) 2015, <NAME>
 * @license   MIT
 *
 * @link      http://github.com/boboldehampsink
 */
class ReverseRelations_EntryFieldType extends BaseElementFieldType
{
    /**
     * Element Type Entry.
     *
     * @var string
     */
    protected $elementType = ElementType::Entry;

    /**
     * Dont allow a limit to be set.
     *
     * @var bool
     */
    protected $allowLimit = false;

    /**
	 * Whether the elements have a custom sort order.
	 *
	 * @var bool $sortable
	 */
	protected $sortable = false;

    /**
     * Reverse Entry Relations name.
     *
     * @return string
     */
    public function getName()
    {
        return Craft::t('Reverse Entry Relations');
    }

    /**
     * Set settings html.
     *
     * @return string
     */
    public function getSettingsHtml()
    {
        // Get parent settings
        $settings = parent::getSettingsHtml();

        // Get available fields
        $fields = array();
        foreach (craft()->fields->getAllFields() as $field) {
            $fields[$field->handle] = $field->name;
        }

{'fraction_non_alphanumeric': 0.12333736396614269, 'fraction_numerical': 0.004030632809351068, 'mean_word_length': 2.0870646766169156, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 19, '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': '2393604', 'n_tokens_mistral': 740, 'n_tokens_neox': 700, 'n_words': 199}