<commit_before>const express = require('express');

const app = express();

const tasks = [];

app.post('/tasks', (req, res) => {
  res.send('Hello World!');
});

app.get('/tasks', (req, res) => {
  res.send('Hello World!');
});

app.get('/tasks/:id/:name/:time', (req, res) => {
  res.setHeader('Content-Type', 'application/json');
  res.send(JSON.stringify({ name: 'req.name' }));
});

app.put('/tasks/:id', (req, res) => {<commit_msg>Добавил GET/JSON<commit_after>const express = require('express');

const app = express();

const tasks = [];

const generatedId = (arr) => arr.length + 1;

app.post('/tasks', (req, res) => {
  res.send('Hello World!');
});

app.get('/tasks', (req, res) => {
  res.send('Hello World!');
});

app.get('/tasks/:id/:name/:time/:descr', (req, res) => {
  res.setHeader('Content-Type', 'application/json');
  res.send(JSON.stringify({
    id: req.params.id,
    name: req.params.name,
    time: req.params.time,
    descr: req.params.descr,
  }));
});

app.put('/tasks/:id', (req, res) => {
{'fraction_non_alphanumeric': 0.257590597453477, 'fraction_numerical': 0.0009794319294809011, 'mean_word_length': 4.08457711442786, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': '2032939', 'n_tokens_mistral': 377, 'n_tokens_neox': 385, 'n_words': 70}