<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import random

def init(lettres):
    sac=[]
    for lettre in lettres:
        n=int(lettre[1])
        for i in range(n):
            sac.append(lettre[0])
    random.shuffle(sac)
    return sac

def piocher(sac):
    if len(sac)!=0:
        i=random.randint(0,len(sac)-1)
        return sac.pop(i)<commit_msg>correction<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import random

def init(lettres):
    sac=[]
    for lettre in lettres:
        n=int(lettre[1])
        for i in range(n):
            sac.append(lettre[0])
    return sac

def piocher(sac):
    if len(sac)!=0:
        i=random.randint(0,len(sac)-1)
        return sac.pop(i)
{'fraction_non_alphanumeric': 0.15950069348127602, 'fraction_numerical': 0.016643550624133148, 'mean_word_length': 2.327188940092166, 'pattern_counts': {'":': 0, '<': 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': '1471461', 'n_tokens_mistral': 282, 'n_tokens_neox': 271, 'n_words': 56}