<commit_before>'use strict';

// To modell non-functional behavior
//var sleep = require('sleep');

module.exports = {
    getPreise,
    postPreise
};

function getPreise(req, res) {
    console.log('getPreise');

    //sleep.msleep(500); //average response time

    var preiseDV = {
        angebotsId: 'A1',
        beschreibung: 'Angebot direkter Verkehr',
        preis: 22
    };
    var preiseSparbillett = {
        angebotsId: 'A2',
        beschreibung: 'Angebot Sparbillett',
        preis: 12
    };
    var preise = [angebotDV, angebotSparbillett];
    res.json(angebote);
}


function postpreise(req, res) {
    var vorabbuchung = {
        vorabbuchungsId: 'V1'
    };
    res.json(vorabbuchung);
}<commit_msg>Update preise.js<commit_after>'use strict';

// To modell non-functional behavior
//var sleep = require('sleep');

module.exports = {
    getPreise
};

function getPreise(req, res) {
    console.log('getPreise');

    //sleep.msleep(300); //average response time

    var preisNormal = {
        beschreibung: 'Normalpreis',
        preis: 22
    };
    var preisSparbillett = {
        beschreibung: 'Sparpreis',
        preis: 12
    };
    var preise = [preisDV, preisSparbillett];
    res.json(preise);
}
{'fraction_non_alphanumeric': 0.1312803889789303, 'fraction_numerical': 0.013776337115072933, 'mean_word_length': 2.664688427299703, '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': '3068235', 'n_tokens_mistral': 459, 'n_tokens_neox': 436, 'n_words': 89}