<commit_before><?php
class DistrictPagesHelper{

    public function getDistrictLink($district)
    {
        $map = $this->getDistrictMap();
        if (array_key_exists($district, $map)) {
            return $map[$district]['link'];
        } else {
            return null;
        }

    }

    public function getDistrictImage($district)
    {
        $map = $this->getDistrictMap();
        if (array_key_exists($district, $map)) {
            return $map[$district]['link'];
        } else {
            return null;
        }

    }

    public function getByAbbrev($abbrev)
    {
        $map = $this->getDistrictMap();
        foreach ($map as $districtName => $districtInfo) {
            if ($districtInfo['abbrev'] == $abbrev) {
                return $districtName;
            }
        }
        return null;
    }


    private function getDistrictMap()
    {
        return array(
            'Byron Center Public Schools'       =>array (
                'link'  => '/districts/byron-center',
                'image' => '',
                'abbrev'=> 'bcps'
                ),
            'Caledonia Community Schools'       =>array (
                'link' => '/districts/caledonia',
                'image' => '',
                'abbrev'=> 'ccs'
                ),
            'Cedar Springs Public Schools'      =>array (
                'link' => '/districts/cedar-springs',
                'image' => '',
                'abbrev'=> 'csps'
                ),
            'Comstock Park Public Schools'      =>array (
               'link' => '/districts/comstock-park',
                'image' => '',
                'abbrev'=> 'cpps'
                ),
            'East Grand Rapids Public Schools'  =>array (
                'link' => '/districts/east-grand-rapids',
                'image' => '',
                'abbrev'=> 'egr'
                ),
            'Forest Hills Public Schools'       =>array (
                'link' => '/districts/forest-hills',
                'image' => '',
                'abbrev'=> 'fhps'
                ),
            'Godwin Heights Public Schools'     =>array (
                'link' => '/districts/godwin-heights',
                'image' => '',
                'abbrev'=> 'ghps'
                ),
            'Godfrey Lee Public Schools'        =>array (
                'link' => '/districts/godfrey-lee',
                'image' => '',
                'abbrev'=> 'glps'
                ),
            'Grand Rapids Public Schools - GRPS'=>array (
                'link' => '/districts/grand-rapids',
                'image' => '',
                'abbrev'=> 'grps'
                ),
            'Grandville Public Schools'         =>array (
                'link' => '/districts/grandville',
                'image' => '',
                'abbrev'=> 'gps'
                ),
            'Kelloggsville Public Schools'      =>array (
                'link' => '/districts/kelloggsville',
                'image' => '',
                'abbrev'=> 'kps'
                ),
            'Kenowa Hills Public Schools'       =>array (
                'link' => '/districts/kenowa-hills',
                'image' => '',
                'abbrev'=> 'khps'
                ),
            'Kent ISD'                          =>array (
                'link' => '/districts/kent-isd',
                'image' => '',
                'abbrev'=> 'kisd'
                ),
            'Kent City Community Schools'       =>array (
                'link' => '/districts/kent-city',
                'image' => '',
                'abbrev'=> 'kccs'
                ),
            'Kentwood Public Schools'           =>array (
                'link' => '/districts/kentwood',
                'image' => '',
                'abbrev'=> 'kps'
                ),
            'Lowell Area Schools'               =>array (
                'link' => '/districts/Lowell',
                'image' => '',
                'abbrev'=> 'las'<commit_msg>changed kentwood abbreviation because of conflict<commit_after><?php
class DistrictPagesHelper{

    public function getDistrictLink($district)
    {
        $map = $this->getDistrictMap();
        if (array_key_exists($district, $map)) {
            return $map[$district]['link'];
        } else {
            return null;
        }

    }

    public function getDistrictImage($district)
    {
        $map = $this->getDistrictMap();
        if (array_key_exists($district, $map)) {
            return $map[$district]['link'];
        } else {
            return null;
        }

    }

    public function getByAbbrev($abbrev)
    {
        $map = $this->getDistrictMap();
        foreach ($map as $districtName => $districtInfo) {
            if ($districtInfo['abbrev'] == $abbrev) {
                return $districtName;
            }
        }
        return null;
    }


    private function getDistrictMap()
    {
        return array(
            'Byron Center Public Schools'       =>array (
                'link'  => '/districts/byron-center',
                'image' => '',
                'abbrev'=> 'bcps'
                ),
            'Caledonia Community Schools'       =>array (
                'link' => '/districts/caledonia',
                'image' => '',
                'abbrev'=> 'ccs'
                ),
            'Cedar Springs Public Schools'      =>array (
                'link' => '/districts/cedar-springs',
                'image' => '',
                'abbrev'=> 'csps'
                ),
            'Comstock Park Public Schools'      =>array (
               'link' => '/districts/comstock-park',
                'image' => '',
                'abbrev'=> 'cpps'
                ),
            'East Grand Rapids Public Schools'  =>array (
                'link' => '/districts/east-grand-rapids',
                'image' => '',
                'abbrev'=> 'egr'
                ),
            'Forest Hills Public Schools'       =>array (
                'link' => '/districts/forest-hills',
                'image' => '',
                'abbrev'=> 'fhps'
                ),
            'Godwin Heights Public Schools'     =>array (
                'link' => '/districts/godwin-heights',
                'image' => '',
                'abbrev'=> 'ghps'
                ),
            'Godfrey Lee Public Schools'        =>array (
                'link' => '/districts/godfrey-lee',
                'image' => '',
                'abbrev'=> 'glps'
                ),
            'Grand Rapids Public Schools - GRPS'=>array (
                'link' => '/districts/grand-rapids',
                'image' => '',
                'abbrev'=> 'grps'
                ),
            'Grandville Public Schools'         =>array (
                'link' => '/districts/grandville',
                'image' => '',
                'abbrev'=> 'gps'
                ),
            'Kelloggsville Public Schools'      =>array (
                'link' => '/districts/kelloggsville',
                'image' => '',
                'abbrev'=> 'kvps'
                ),
            'Kenowa Hills Public Schools'       =>array (
                'link' => '/districts/kenowa-hills',
                'image' => '',
                'abbrev'=> 'khps'
                ),
            'Kent ISD'                          =>array (
                'link' => '/districts/kent-isd',
                'image' => '',
                'abbrev'=> 'kisd'
                ),
            'Kent City Community Schools'       =>array (
                'link' => '/districts/kent-city',
                'image' => '',
                'abbrev'=> 'kccs'
                ),
            'Kentwood Public Schools'           =>array (
                'link' => '/districts/kentwood',
                'image' => '',
                'abbrev'=> 'kps'
                ),
            'Lowell Area Schools'               =>array (
                'link' => '/districts/Lowell',
                'image' => '',
                'abbrev'=> 'las'
{'fraction_non_alphanumeric': 0.1471138262062087, 'fraction_numerical': 0.0, 'mean_word_length': 1.0934237995824634, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 139, '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': '4196628', 'n_tokens_mistral': 2301, 'n_tokens_neox': 2030, 'n_words': 414}