<commit_before>#coding: utf-8

from flask import abort
from flask.ext import restful
from flask.ext.restful import fields, marshal_with, marshal, reqparse, types
import sqlalchemy

import uuid
import logging
import datetime

from tyr import models
from tyr.app import db

__ALL__ = ['Api', 'Instance', 'User', 'Key']

class FieldDate(fields.Raw):
    def format(self, value):
        if value:
            return value.isoformat()
        else:
            return 'null'


key_fields = {'id': fields.Raw, 'token': fields.Raw, 'valid_until': FieldDate}

instance_fields = {'id': fields.Raw, 'name': fields.Raw, "free": fields.Raw}
api_fields = {'id': fields.Raw, 'name': fields.Raw}
<commit_msg>Tyr: le champs free à été renomé en "is_free"<commit_after>#coding: utf-8

from flask import abort
from flask.ext import restful
from flask.ext.restful import fields, marshal_with, marshal, reqparse, types
import sqlalchemy

import uuid
import logging
import datetime

from tyr import models
from tyr.app import db

__ALL__ = ['Api', 'Instance', 'User', 'Key']

class FieldDate(fields.Raw):
    def format(self, value):
        if value:
            return value.isoformat()
        else:
            return 'null'


key_fields = {'id': fields.Raw, 'token': fields.Raw, 'valid_until': FieldDate}

instance_fields = {'id': fields.Raw, 'name': fields.Raw, "is_free": fields.Raw}
api_fields = {'id': fields.Raw, 'name': fields.Raw}

{'fraction_non_alphanumeric': 0.1257905832747716, 'fraction_numerical': 0.0014054813773717498, 'mean_word_length': 3.9273356401384083, 'pattern_counts': {'":': 2, '<': 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': '2945602', 'n_tokens_mistral': 464, 'n_tokens_neox': 449, 'n_words': 148}