<commit_before>module.exports = (app) => {
  const handyUtils = require('handyutils');
  /*
  * EMPLOYER
  */
  app.get('/signup', function(req, res) {
    const dataForView = {title:"Empleador", layout:"employer", message: req.flash()};
    res.render('signup', dataForView);
  });
  /*
  * EMPLOYER
  */
  app.get('/signin', function(req, res) {
    const dataForView = {title:"Empleador", layout:"employer", message: req.flash()};
    res.render('signin', dataForView);
  });
  app.get('/employer/dashboard', (req, res)=>{
    const dataForView = {title:"Empleador", layout:"employer", message: req.flash()};
    res.render('dashboard', dataForView);
  });

  app.get('/employer/addOffer', (req, res)=>{
    const dataForView = {title:"Agregar Oferta", layout:"employer", message: req.flash()};
    res.render('addOffer', dataForView);
  });

  app.post('/employer/registerOffer', (req, res) => {
    
  });

}
<commit_msg>Json para perfil de empresa<commit_after>module.exports = (app) => {
  const handyUtils = require('handyutils');
  const job=require('../models/jobProfile');
  /*
  * EMPLOYER
  */

  app.get('/signup', function(req, res) {
    const dataForView = {title:"Empleador", layout:"employer", message: req.flash()};
    res.render('signup', dataForView);
  });
  /*
  * EMPLOYER
  */
  app.get('/signin', function(req, res) {
    const dataForView = {title:"Empleador", layout:"employer", message: req.flash()};
    res.render('signin', dataForView);
  });
  app.get('/employer/dashboard', (req, res)=>{
    const dataForView = {title:"Empleador", layout:"employer", message: req.flash()};
    res.render('dashboard', dataForView);
  });

  app.get('/employer/addOffer', (req, res)=>{
    const dataForView = {title:"Agregar Oferta", layout:"employer", message: req.flash()};
    res.render('addOffer', dataForView);
  });

  app.post('/employer/addOffer/handler', (req, res) => {
    var arrayCommpetencies=req.body.competencies.split(",");
    var arrayCertificates=req.body.certificates.split(",");
var JSONFinalEmployer=
    {
      offerName:req.body.offerName,
      competencies:arrayCommpetencies,
      minExperience:req.body.minExperience,
      maxExperience:req.body.maxExperience,
      salary:req.body.salary,
      certificates:arrayCertificates
    };
    console.log('antes');
    console.log(JSONFinalEmployer);
    job.create(JSONFinalEmployer,(error,result)=>{
      console.log("llega");
      console.log(result);
      console.log(error);
    });

  });

}

{'fraction_non_alphanumeric': 0.1904, 'fraction_numerical': 0.0, 'mean_word_length': 4.042338709677419, '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': '7513788', 'n_tokens_mistral': 882, 'n_tokens_neox': 855, 'n_words': 134}