<commit_before>var dateFormat = require('dateformat');
var request = require('request');
var cheerio = require('cheerio');

module.exports = function() {

  function getLunchTodayCafeTechno() {
    return new Promise(function(resolve, reject) {
      var url = 'http://www.cafetechno.fi/meny/';
      
      request(url, function (error, response, html) {
        if (!error && response.statusCode == 200) {
          var currentDate = new Date();
          currentDate = dateFormat(currentDate, 'isoDate');
          var currentWeekNumber = dateFormat(currentDate, "W");
          var currentDayNumber = dateFormat(currentDate, "N");
          var result = 'CafeTechno ' + dateFormat(currentDate, "fullDate") + ' \n\n';
  
          // Get data from the website
          var $ = cheerio.load(html,{
            decodeEntities: false
          });
  
          $weekNumber = $('.menu-title2').html();
  
          var dishesPerDay = [];
          $('.menu-description2').children('p').each(function(i, elem) {
            dishesPerDay[i] = $(this).text();
          });
          

          // Extract weeknumber from the string
          var weekNumberEnd = parseInt($weekNumber);
  
          // Find the paragraph with the correct weekday name
          var dishesFound = false;
          
          if (currentWeekNumber === weekNumberEnd) {
            
            if (currentDayNumber == 1) {
              dishesPerDay.forEach(function(element) {
                if (element.includes("MÅNDAG") || element.includes("måndag") || element.includes("Måndag")) {
                  result += element.toLowerCase();
                }
              }, this);
            }
  
            if (currentDayNumber == 2) {
              dishesPerDay.forEach(function(element) {
                if (element.includes("TISDAG") || element.includes("tisdag") || element.includes("Tisdag")) {
                  result += element.toLowerCase();
                }
              }, this);
            }
  
            if (currentDayNumber == 3) {<commit_msg>debug test<commit_after>var dateFormat = require('dateformat');
var request = require('request');
var cheerio = require('cheerio');

module.exports = function() {

  function getLunchTodayCafeTechno() {
    return new Promise(function(resolve, reject) {
      var url = 'http://www.cafetechno.fi/meny/';
      
      request(url, function (error, response, html) {
        if (!error && response.statusCode == 200) {
          var currentDate = new Date();
          currentDate = dateFormat(currentDate, 'isoDate');
          var currentWeekNumber = dateFormat(currentDate, "W");
          var currentDayNumber = dateFormat(currentDate, "N");
          var result = 'CafeTechno ' + dateFormat(currentDate, "fullDate") + ' \n\n';
  
          // Get data from the website
          var $ = cheerio.load(html,{
            decodeEntities: false
          });
  
          $weekNumber = $('.menu-title2').html();
  
          var dishesPerDay = [];
          $('.menu-description2').children('p').each(function(i, elem) {
            dishesPerDay[i] = $(this).text();
          });
          

          // Extract weeknumber from the string
          var weekNumberEnd = parseInt($weekNumber);

          console.log('currentWeekNumber: ' + currentWeekNumber);
          console.log('currentDayNumber: ' + currentDayNumber);
          console.log('weekNumberEnd: ' + weekNumberEnd);
  
          // Find the paragraph with the correct weekday name
          var dishesFound = false;
          
          if (currentWeekNumber === weekNumberEnd) {
            
            if (currentDayNumber == 1) {
              dishesPerDay.forEach(function(element) {
                if (element.includes("MÅNDAG") || element.includes("måndag") || element.includes("Måndag")) {
                  result += element.toLowerCase();
                }
              }, this);
            }
  
            if (currentDayNumber == 2) {
              dishesPerDay.forEach(function(element) {
                if (element.includes("TISDAG") || element.includes("tisdag") || element.includes("Tisdag")) {
                  result += element.toLowerCase();
                }
              }, this);
            }
  
            if (currentDayNumber == 3) {
{'fraction_non_alphanumeric': 0.1323666978484565, 'fraction_numerical': 0.0037418147801683817, 'mean_word_length': 1.9294520547945206, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1764856', 'n_tokens_mistral': 1161, 'n_tokens_neox': 1135, 'n_words': 235}