<commit_before>const _ = require('koa-route');
const { project: schemas } = require('schemas').definitions;
const { projects } = require('src/api');
const { create, read, update, patch } = require('src/middleware/api/methods');


module.exports = [
  _.post('/projects/', create(schemas.new, projects.create)),
  _.get('/projects/', read(projects.getAll, () => ({
    page: 1,
    per_page: 100
  }))),
  _.get('/projects/:id', read(projects.get)),
  _.get('/projects/:id/channels/', read(projects.getChannels)),
  _.put('/projects/:id', update(schemas.project, projects.update)),
  _.patch('/projects/:id', patch(schemas.project, projects.patch))
];<commit_msg>Fix schema for POST /projects/<commit_after>const _ = require('koa-route');
const { project: schemas } = require('schemas').definitions;
const { projects } = require('src/api');
const { create, read, update, patch } = require('src/middleware/api/methods');


module.exports = [
  _.post('/projects/', create(schemas.project, projects.create)),
  _.get('/projects/', read(projects.getAll, () => ({
    page: 1,
    per_page: 100
  }))),
  _.get('/projects/:id', read(projects.get)),
  _.get('/projects/:id/channels/', read(projects.getChannels)),
  _.put('/projects/:id', update(schemas.project, projects.update)),
  _.patch('/projects/:id', patch(schemas.project, projects.patch))
];
{'fraction_non_alphanumeric': 0.21412639405204462, 'fraction_numerical': 0.005947955390334572, 'mean_word_length': 4.8268398268398265, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4296281', 'n_tokens_mistral': 436, 'n_tokens_neox': 422, 'n_words': 74}