<commit_before><?php

class DatawrapperPlugin_VisualizationBarChart extends DatawrapperPlugin_Visualization {
    public function getMeta(){
        $id = $this->getName();
        $meta = array(
            "id" => "bar-chart",
            "title" =>  __("Bar Chart", $id),
            "version" => "1.3.2",
            "extends" => "raphael-chart",
            "order" => 30,
            "dimensions" => 1,
            "options" => array(
                "sort-values" => array(
                    "type" => "checkbox",
                    "label" => __("Autmatically sort bars", $id)
                ),
                "reverse-order" => array(
                    "type" => "checkbox",
                    "label" => __("Reverse order", $id),
                ),
                "labels-inside-bars" => array(
                    "type" => "checkbox",
                    "label" => __("Display labels inside bars", $id)
                ),
                "negative-color" => array(
                    "type" => "checkbox",
                    "label" => __("Use different color for negative values", $id)
                )
            ),
            "libraries" => array()
        );
        return $meta;
    }
}<commit_msg>Implemented getDemoDataSets function into bar chart<commit_after><?php

class DatawrapperPlugin_VisualizationBarChart extends DatawrapperPlugin_Visualization {
    public function getMeta(){
        $id = $this->getName();
        $meta = array(
            "id" => "bar-chart",
            "title" =>  __("Bar Chart", $id),
            "version" => "1.3.2",
            "extends" => "raphael-chart",
            "order" => 30,
            "dimensions" => 1,
            "options" => array(
                "sort-values" => array(
                    "type" => "checkbox",
                    "label" => __("Autmatically sort bars", $id)
                ),
                "reverse-order" => array(
                    "type" => "checkbox",
                    "label" => __("Reverse order", $id),
                ),
                "labels-inside-bars" => array(
                    "type" => "checkbox",
                    "label" => __("Display labels inside bars", $id)
                ),
                "negative-color" => array(
                    "type" => "checkbox",
                    "label" => __("Use different color for negative values", $id)
                )
            ),
            "libraries" => array()
        );
        return $meta;
    }
    public function getDemoDataSets(){
        $datasets = array();
        $datasets[] = array(
            'id' => 'debt-per-person',
            'title' => __('Fearless Felix: How far did he fall'),
            'type' => __('Bar chart'),
            'presets' => array(
                'type' => 'column-chart',
                'metadata.describe.source-name' => 'DataRemixed',
                'metadata.describe.source-url' => 'http://dataremixed.com/2012/10/a-tribute-to-fearless-felix/',
                'metadata.data.vertical-header' => true,
                'metadata.data.transpose' => true
            ),
            'data' => " Height
SpaceShipOne    367500
<NAME> (2012)    128100
<NAME> (1960)    108200
Weather balloons    100000
Commercial airliners    33000
Mt. Everest 29029
<NAME> (tallest building Dubai)   2723
"
        );


        $datasets[] = array(
            'id' => 'new-borrowing',
            'type' => __('Bar chart'),
            'presets' => array(
                'type' => 'column-chart',
                'metadata.describe.source-name' => 'BMF, Haushaltsausschuss',
                'metadata.describe.source-url' => 'http://www.bundesfinanzministerium.de/bundeshaushalt2012/pdf/finanzplan.pdf',
                'metadata.data.transpose' => false
            ),
            'title' => __('Net borrowing of Germany'),
            'data' => '"","2007","2008","2009","2010","2011","2012","2013","2014","2015","2016"
"'.__('New debt in Bio.').'","14.3","11.5","34.1","44","17.3","34.8","19.6","14.6","10.3","1.1"
'
        );


        $datasets[] = array(
            'id' => 'german-parliament',
            'title' => __('Women in German Parliament'),
            'type' => __('Bar chart (grouped)'),
            'presets' => array(
                'type' => 'column-chart',
                'metadata.describe.source-name' => 'Bundestag',
                'metadata.describe.source-url' => 'http://www.bundestag.de/bundestag/abgeordnete17/mdb_zahlen/frauen_maenner.html',
                'metadata.data.vertical-header' => true,
                'metadata.visualize.sort-values' => true
            ),
            'data' => __('Party')."\t".__('Women')."\t".__('Men')."\t".__('Total').'
CDU/CSU 45  192 237
SPD 57  89  146
FDP 24  69  93
LINKE   42  34  76
GRÜNE   36  32  68
'
        );
        return $datasets;
    }
}
{'fraction_non_alphanumeric': 0.16560247167868178, 'fraction_numerical': 0.03522142121524202, 'mean_word_length': 1.5318039624608968, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 77, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1072763', 'n_tokens_mistral': 1557, 'n_tokens_neox': 1388, 'n_words': 281}