Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Benchmark FCA concepts lattice generation with bob_ross.csv.""" | |
from collections.abc import Iterable, Iterator, Sequence | |
import csv | |
import os | |
import pathlib | |
import time | |
from typing import NamedTuple, Optional | |
import urllib.request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Compare different brute-force FCA concept generation methods.""" | |
from collections.abc import Iterator, Sequence | |
from itertools import combinations, compress | |
import time | |
import gmpy2 | |
import numpy as np | |
OBJECTS = ('1s', '1de', '1pe', '1di', '1pi', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Compare two ways to iterate over subdirectories of a tree.""" | |
from collections.abc import Iterator | |
import os | |
import platform | |
import time | |
START_DIR = 'c:\\Users' if platform.system() == 'Windows' else '/usr' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Compare three ways to iterate over a large file in chunks.""" | |
import functools | |
import hashlib | |
import mmap | |
import os | |
import pathlib | |
import shutil | |
import time | |
import types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Use Python re for sqlite3 REGEXP operator wíth SQLAlchemy. | |
added in https://docs.sqlalchemy.org/en/14/changelog/migration_14.html#support-for-sql-regular-expression-operators | |
""" | |
import re | |
from typing import Optional | |
import sqlalchemy as sa | |
import sqlalchemy.orm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Insert missing https://www.autotyp.uzh.ch N.levels from overview into metadata files | |
see https://github.com/autotyp/autotyp-data/pull/7 | |
""" | |
import csv | |
import operator | |
import pathlib | |
import regex |
NewerOlder