<commit_before>/**
 * Created by michael on 12/08/15.
 */
define(function() {
    'use strict';

    function RobotPart(store) {

        return store.defineResource({
            name: 'RobotPart',
            methods: {
                getImage: function(back,side){
                    var path = 'robo_' + this.slot;

                    if(this.slot == 'arms' || this.slot == 'legs'){
                        if(side != 'left' && side != 'right'){
                            return {
                                left: this.getImageLeft(back),
                                right: this.getImageRight(back)
                            };
                        }

                        path = path.substring(0,path.length) + '_' + side;
                    }

                    if(back === true){
                        path += '_back';
                    }

                    path += '_' + this.image;

                    return path;
                },
                getImageLeft: function(back){
                    return this.getImage(back,'left');
                },
                getImageRight: function(back){
                    return this.getImage(back,'right');
                }
            }
        });

    };

    return RobotPart;
<commit_msg>Nur die Arme haben zwei Bilder<commit_after>/**
 * Created by michael on 12/08/15.
 */
define(function() {
    'use strict';

    function RobotPart(store) {

        return store.defineResource({
            name: 'RobotPart',
            methods: {
                getImage: function(back,side){
                    var path = 'robo_' + this.slot;

                    if(this.slot == 'arms'){
                        if(side != 'left' && side != 'right'){
                            return {
                                left: this.getImageLeft(back),
                                right: this.getImageRight(back)
                            };
                        }

                        path = 'arm_' + side;
                    }

                    if(back === true){
                        path += '_back';
                    }

                    path += '_' + this.image;

                    return path;
                },
                getImageLeft: function(back){
                    return this.getImage(back,'left');
                },
                getImageRight: function(back){
                    return this.getImage(back,'right');
                }
            }
        });

    };

    return RobotPart;

{'fraction_non_alphanumeric': 0.11242603550295859, 'fraction_numerical': 0.005128205128205128, 'mean_word_length': 0.8799110452186805, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1868859', 'n_tokens_mistral': 651, 'n_tokens_neox': 583, 'n_words': 115}