<commit_before>#!/usr/bin/env python
# coding:utf-8
u"""The first lib."""
import json
import codecs


def load_keywords(file_name):
    u"""Funkcja orczytuje JSON z definicją keywordów."""
    with codecs.open(file_name, 'r', encoding='UTF-8') as my_file:<commit_msg>added syntax to function load_keywords<commit_after>#!/usr/bin/env python
# coding:utf-8
u"""The first lib."""
import json
import codecs


def load_keywords(file_name):
    u"""Function reads the JSON file with the definition of keywords."""
    u"""The format of the keywords JSON file:
        {
            "keyword_group_name1": {
                "keyword1": [ "reg_exp1_g1k1"
                              "reg_exp2_g1k1",
                              ...
                          ]
                ...
            }
            ...
        }
        """
    with codecs.open(file_name, 'r', encoding='UTF-8') as my_file:
{'fraction_non_alphanumeric': 0.12625698324022347, 'fraction_numerical': 0.013407821229050279, 'mean_word_length': 1.937704918032787, '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': '4289922', 'n_tokens_mistral': 280, 'n_tokens_neox': 271, 'n_words': 66}