<commit_before>from flask import Flask, jsonify, request, redirect
from helpers.log import get_status_code
from werkzeug.exceptions import BadRequest
from icalmanage.icalparser import ical_to_dict
from requests.exceptions import MissingSchema, InvalidURL
from flask_cors import CORS
from helpers.room_list import ROOMS
import requests
import requests_cache


app = Flask(__name__)
cors = CORS(app, ressources={r"/api/*": {"origins": "*"}})

#requests_cache.install_cache('/tmp/ics-api-cache', expire_after=600)<commit_msg>re activation of request cache<commit_after>from flask import Flask, jsonify, request, redirect
from helpers.log import get_status_code
from werkzeug.exceptions import BadRequest
from icalmanage.icalparser import ical_to_dict
from requests.exceptions import MissingSchema, InvalidURL
from flask_cors import CORS
from helpers.room_list import ROOMS
import requests
import requests_cache


app = Flask(__name__)
cors = CORS(app, ressources={r"/api/*": {"origins": "*"}})

requests_cache.install_cache('/tmp/ics-api-cache', expire_after=600)
{'fraction_non_alphanumeric': 0.08962264150943396, 'fraction_numerical': 0.005660377358490566, 'mean_word_length': 7.354330708661418, 'pattern_counts': {'":': 4, '<': 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': '3538750', 'n_tokens_mistral': 336, 'n_tokens_neox': 318, 'n_words': 91}