<commit_before># Author: <NAME>
#
# Description:
# A class used to manage the repo.csv Librarie and its entries
# Functions:
#   *add library
#   *delete library
#   *check for multiple entries
#   *get all entries

#import library
import os
import csv

class Libmng:
    
    def __init__(self,libname):
        self.libs =[]
        if libname != "":
            self.file = libname+'.csv'
        #    with open(libname+'.csv',"a") as repo
        else:
            self.file = 'repo.cvs'
        #    with open("repo.csv","a") as repo
        

    # addlib adds a library with name to the csv file if it's source 
    #is not already there
    def addlib(self, name, source, info):
        if not self.checklib(name,source):
            with open(self.file,"a") as repo:
                repo.write(name+','+source+','+info+'\n')
            repo.close()<commit_msg>Edited one wrong indent<commit_after># Author: <NAME>
#
# Description:
# A class used to manage the repo.csv Librarie and its entries
# Functions:
#   *add library
#   *delete library
#   *check for multiple entries
#   *get all entries

#import library
import os
import csv

class Libmng:
    
    def __init__(self,libname):
        self.libs =[]
        if libname != "":
            self.file = libname+'.csv'
        #    with open(libname+'.csv',"a") as repo
        else:
            self.file = 'repo.cvs'
        #    with open("repo.csv","a") as repo
        

    # addlib adds a library with name to the csv file if it's source 
    # is not already there
    def addlib(self, name, source, info):
        if not self.checklib(name,source):
            with open(self.file,"a") as repo:
                repo.write(name+','+source+','+info+'\n')
            repo.close()
{'fraction_non_alphanumeric': 0.12450028555111364, 'fraction_numerical': 0.0, 'mean_word_length': 2.191256830601093, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, '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': '5035232', 'n_tokens_mistral': 559, 'n_tokens_neox': 540, 'n_words': 170}