<commit_before><?php
/**
 * $Id$
 *
 * Conversion functions between different units of area
 *
 * References
 * ----------
 * http://en.wikipedia.org/wiki/Area
 *
 * @author <NAME>, 2010 <<EMAIL>>
 */

require_once('ConvertBase.php');

class ConvertArea extends ConvertBase
{
    protected $scale = array( ///< unit scale to square metre (m²)
    'm²'    => 1,              // square metre
    'a'     => 100,            // are (100 m²)
    'ha'    => 10000,          // hectare (10 000 m²)
    'km²'   => 1000000,        // square kilometre (100 hectares)

    'sq ft' => 0.09290304,     // square foot
    'sq yd' => 0.83612736,     // square yard = 9 square feet
    'acre'  => 4046.8564224,   // = 4840 square yards = 43560 square feet
    );

    protected $lookup = array(
    'square meter'     => 'm²',   'square meters'      => 'm²',    'square metre'     => 'm²',  'square metres'     => 'm²',
    'are'              => 'a',    'ares'               => 'a',
    'hectare'          => 'ha',   'hectares'           => 'ha',
    'square kilometer' => 'km²',  'square kilometers'  => 'km²',   'square kilometre' => 'km²', 'square kilometres' => 'km²',
    'acres'            => 'acre',<commit_msg>added TODO:s<commit_after><?php
/**
 * $Id$
 *
 * Conversion functions between different units of area
 *
 * References
 * ----------
 * http://en.wikipedia.org/wiki/Area
 *
 * @author <NAME>, 2010 <<EMAIL>>
 */

require_once('ConvertBase.php');

class ConvertArea extends ConvertBase
{
    protected $scale = array( ///< unit scale to square metre (m²)
//TODO: square millimetre
//TODO: square centimetre
    'm²'    => 1,              // square metre
    'a'     => 100,            // are (100 m²)
    'ha'    => 10000,          // hectare (10 000 m²)
    'km²'   => 1000000,        // square kilometre (100 hectares)

//TODO: square inch
    'sq ft' => 0.09290304,     // square foot
    'sq yd' => 0.83612736,     // square yard = 9 square feet
    'acre'  => 4046.8564224,   // = 4840 square yards = 43560 square feet
//TODO: square mile (U.S. mile)
    );

    protected $lookup = array(
    'square meter'     => 'm²',   'square meters'      => 'm²',    'square metre'     => 'm²',  'square metres'     => 'm²',
    'are'              => 'a',    'ares'               => 'a',
    'hectare'          => 'ha',   'hectares'           => 'ha',
    'square kilometer' => 'km²',  'square kilometers'  => 'km²',   'square kilometre' => 'km²', 'square kilometres' => 'km²',
    'acres'            => 'acre',
{'fraction_non_alphanumeric': 0.1814918228958915, 'fraction_numerical': 0.05584363781412046, 'mean_word_length': 1.9027777777777777, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 49, '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': '3086123', 'n_tokens_mistral': 955, 'n_tokens_neox': 835, 'n_words': 230}