content stringlengths 1 103k ⌀ | path stringlengths 8 216 | filename stringlengths 2 179 | language stringclasses 15
values | size_bytes int64 2 189k | quality_score float64 0.5 0.95 | complexity float64 0 1 | documentation_ratio float64 0 1 | repository stringclasses 5
values | stars int64 0 1k | created_date stringdate 2023-07-10 19:21:08 2025-07-09 19:11:45 | license stringclasses 4
values | is_test bool 2
classes | file_hash stringlengths 32 32 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
from fontTools.ttLib import TTFont\nfrom fontTools.feaLib.builder import addOpenTypeFeatures, Builder\nfrom fontTools.feaLib.error import FeatureLibError\nfrom fontTools import configLogger\nfrom fontTools.misc.cliTools import makeOutputFileName\nimport sys\nimport argparse\nimport logging\n\n\nlog = logging.getLogger(... | .venv\Lib\site-packages\fontTools\feaLib\__main__.py | __main__.py | Python | 2,318 | 0.85 | 0.064103 | 0 | python-kit | 388 | 2024-04-15T20:21:31.671675 | GPL-3.0 | false | 92f9cbb320cd434f364661308cd8a6d5 |
\n\n | .venv\Lib\site-packages\fontTools\feaLib\__pycache__\builder.cpython-313.pyc | builder.cpython-313.pyc | Other | 86,176 | 0.75 | 0.02443 | 0.005172 | awesome-app | 39 | 2023-10-04T09:37:41.561984 | BSD-3-Clause | false | 5d95a8c5af07d4a75ef896a9b132466c |
\n\n | .venv\Lib\site-packages\fontTools\feaLib\__pycache__\error.cpython-313.pyc | error.cpython-313.pyc | Other | 1,563 | 0.8 | 0 | 0 | react-lib | 547 | 2025-06-18T00:26:01.126367 | MIT | false | 0a8b3ea05a84a23d6ef747af935fe041 |
\n\n | .venv\Lib\site-packages\fontTools\feaLib\__pycache__\lexer.cpython-313.pyc | lexer.cpython-313.pyc | Other | 15,349 | 0.95 | 0.023077 | 0 | python-kit | 989 | 2023-08-26T06:46:07.049277 | MIT | false | c80416735f9b985b6e5ac13655ee1061 |
\n\n | .venv\Lib\site-packages\fontTools\feaLib\__pycache__\location.cpython-313.pyc | location.cpython-313.pyc | Other | 871 | 0.7 | 0 | 0 | python-kit | 555 | 2025-02-16T09:38:25.281465 | GPL-3.0 | false | 65944fa8306b5b973cf81442f8d25a3a |
\n\n | .venv\Lib\site-packages\fontTools\feaLib\__pycache__\lookupDebugInfo.cpython-313.pyc | lookupDebugInfo.cpython-313.pyc | Other | 789 | 0.7 | 0 | 0 | node-utils | 668 | 2025-06-18T16:12:15.845485 | Apache-2.0 | false | 61d20a4d6636e41ec0acd02e810bb585 |
\n\n | .venv\Lib\site-packages\fontTools\feaLib\__pycache__\variableScalar.cpython-313.pyc | variableScalar.cpython-313.pyc | Other | 7,665 | 0.8 | 0 | 0 | vue-tools | 355 | 2023-07-16T12:50:04.632913 | BSD-3-Clause | false | 2a7d3efc303a92331acbb1483c6276e6 |
\n\n | .venv\Lib\site-packages\fontTools\feaLib\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 276 | 0.7 | 0.5 | 0 | awesome-app | 631 | 2023-09-09T04:10:28.608712 | MIT | false | dbc46b34cb2e1b993e07be7923444f9e |
\n\n | .venv\Lib\site-packages\fontTools\feaLib\__pycache__\__main__.cpython-313.pyc | __main__.cpython-313.pyc | Other | 3,265 | 0.8 | 0.030303 | 0 | vue-tools | 331 | 2023-11-17T10:07:37.423167 | GPL-3.0 | false | bf02f9854743dd1d7e3ed0982cd25e7f |
# Copyright 2013 Google, Inc. All Rights Reserved.\n#\n# Google Author(s): Behdad Esfahbod, Roozbeh Pournader\n\nfrom fontTools.ttLib.tables.DefaultTable import DefaultTable\nimport logging\n\n\nlog = logging.getLogger("fontTools.merge")\n\n\ndef add_method(*clazzes, **kwargs):\n """Returns a decorator function that... | .venv\Lib\site-packages\fontTools\merge\base.py | base.py | Python | 2,470 | 0.95 | 0.320988 | 0.047619 | react-lib | 199 | 2025-05-18T23:27:48.010185 | MIT | false | 3915e1817eef237651a29451c5cd7656 |
# Copyright 2013 Google, Inc. All Rights Reserved.\n#\n# Google Author(s): Behdad Esfahbod, Roozbeh Pournader\n\nfrom fontTools import ttLib\nfrom fontTools.ttLib.tables.DefaultTable import DefaultTable\nfrom fontTools.ttLib.tables import otTables\nfrom fontTools.merge.base import add_method, mergeObjects\nfrom fontToo... | .venv\Lib\site-packages\fontTools\merge\layout.py | layout.py | Python | 16,601 | 0.95 | 0.214829 | 0.055427 | vue-tools | 822 | 2024-09-09T06:45:26.719104 | MIT | false | 3890f22ce35094e4af79f2ad0d1ec8f5 |
# Copyright 2013 Google, Inc. All Rights Reserved.\n#\n# Google Author(s): Behdad Esfahbod, Roozbeh Pournader\n\n\nclass Options(object):\n class UnknownOptionError(Exception):\n pass\n\n def __init__(self, **kwargs):\n self.verbose = False\n self.timing = False\n self.drop_tables = []... | .venv\Lib\site-packages\fontTools\merge\options.py | options.py | Python | 2,586 | 0.95 | 0.247059 | 0.039474 | node-utils | 204 | 2024-04-27T14:20:25.277511 | GPL-3.0 | false | 9ae5655642f18fe844662d5138844f3c |
# Copyright 2013 Google, Inc. All Rights Reserved.\n#\n# Google Author(s): Behdad Esfahbod, Roozbeh Pournader\n\nfrom fontTools import ttLib, cffLib\nfrom fontTools.misc.psCharStrings import T2WidthExtractor\nfrom fontTools.ttLib.tables.DefaultTable import DefaultTable\nfrom fontTools.merge.base import add_method, merg... | .venv\Lib\site-packages\fontTools\merge\tables.py | tables.py | Python | 11,310 | 0.95 | 0.127841 | 0.090032 | node-utils | 174 | 2023-08-03T19:08:53.841271 | GPL-3.0 | false | 8faf1d77b00d7b1a38e25033acadc1be |
# Copyright 2021 Behdad Esfahbod. All Rights Reserved.\n\n\ndef is_Default_Ignorable(u):\n # http://www.unicode.org/reports/tr44/#Default_Ignorable_Code_Point\n #\n # TODO Move me to unicodedata module and autogenerate.\n #\n # Unicode 14.0:\n # $ grep '; Default_Ignorable_Code_Point ' DerivedCoreProp... | .venv\Lib\site-packages\fontTools\merge\unicode.py | unicode.py | Python | 4,351 | 0.95 | 0.012821 | 0.447368 | node-utils | 465 | 2024-12-07T13:38:52.311105 | GPL-3.0 | false | a98ca77e3b597fde3eab153b10e32014 |
# Copyright 2013 Google, Inc. All Rights Reserved.\n#\n# Google Author(s): Behdad Esfahbod, Roozbeh Pournader\n\nfrom fontTools.misc.timeTools import timestampNow\nfrom fontTools.ttLib.tables.DefaultTable import DefaultTable\nfrom functools import reduce\nimport operator\nimport logging\n\n\nlog = logging.getLogger("fo... | .venv\Lib\site-packages\fontTools\merge\util.py | util.py | Python | 3,521 | 0.95 | 0.293706 | 0.040404 | react-lib | 538 | 2024-05-04T00:59:12.121093 | GPL-3.0 | false | 2d1d36067e288e7337d4488d78053903 |
# Copyright 2013 Google, Inc. All Rights Reserved.\n#\n# Google Author(s): Behdad Esfahbod, Roozbeh Pournader\n\nfrom fontTools import ttLib\nimport fontTools.merge.base\nfrom fontTools.merge.cmap import (\n computeMegaGlyphOrder,\n computeMegaCmap,\n renameCFFCharStrings,\n)\nfrom fontTools.merge.layout impor... | .venv\Lib\site-packages\fontTools\merge\__init__.py | __init__.py | Python | 8,498 | 0.95 | 0.193548 | 0.070352 | python-kit | 651 | 2024-09-29T19:50:19.212196 | Apache-2.0 | false | 5fc2fd8c18e2bd12410d54f2b21b7847 |
import sys\nfrom fontTools.merge import main\n\n\nif __name__ == "__main__":\n sys.exit(main())\n | .venv\Lib\site-packages\fontTools\merge\__main__.py | __main__.py | Python | 100 | 0.65 | 0.166667 | 0 | python-kit | 297 | 2024-09-29T16:22:35.550481 | GPL-3.0 | false | 983ff2e36c95d629f497b1e92325a0f2 |
\n\n | .venv\Lib\site-packages\fontTools\merge\__pycache__\base.cpython-313.pyc | base.cpython-313.pyc | Other | 3,925 | 0.95 | 0.114286 | 0 | awesome-app | 31 | 2023-10-14T00:14:45.579287 | BSD-3-Clause | false | b6ab66bb9a48ae5d5e19a6663910776f |
\n\n | .venv\Lib\site-packages\fontTools\merge\__pycache__\cmap.cpython-313.pyc | cmap.cpython-313.pyc | Other | 6,570 | 0.8 | 0 | 0.036364 | node-utils | 278 | 2024-03-29T22:57:12.569888 | BSD-3-Clause | false | 9dea2a85520ce4e5cfd74b113a3a1212 |
\n\n | .venv\Lib\site-packages\fontTools\merge\__pycache__\layout.cpython-313.pyc | layout.cpython-313.pyc | Other | 24,310 | 0.8 | 0.005405 | 0.00578 | awesome-app | 952 | 2024-02-09T00:20:13.297956 | Apache-2.0 | false | 8c682cbb20f25d093a4589cd66ce7b64 |
\n\n | .venv\Lib\site-packages\fontTools\merge\__pycache__\options.cpython-313.pyc | options.cpython-313.pyc | Other | 3,468 | 0.95 | 0 | 0.021739 | react-lib | 507 | 2023-09-11T22:12:04.536457 | Apache-2.0 | false | f1a03d78dbc507668c1e8c85866984d2 |
\n\n | .venv\Lib\site-packages\fontTools\merge\__pycache__\tables.cpython-313.pyc | tables.cpython-313.pyc | Other | 13,087 | 0.8 | 0 | 0 | vue-tools | 745 | 2023-12-01T02:48:25.702511 | GPL-3.0 | false | 5a21d06335c54f1a329e83886382df96 |
\n\n | .venv\Lib\site-packages\fontTools\merge\__pycache__\unicode.cpython-313.pyc | unicode.cpython-313.pyc | Other | 2,373 | 0.8 | 0.066667 | 0 | node-utils | 264 | 2024-03-08T13:47:25.621673 | GPL-3.0 | false | ab71bb3d43bae670d482e9c00d1d4f43 |
\n\n | .venv\Lib\site-packages\fontTools\merge\__pycache__\util.cpython-313.pyc | util.cpython-313.pyc | Other | 7,709 | 0.8 | 0.020408 | 0 | vue-tools | 974 | 2023-10-26T06:28:39.764558 | GPL-3.0 | false | e8ab4a94755206aab243d1f0d7a1b6f7 |
\n\n | .venv\Lib\site-packages\fontTools\merge\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 11,443 | 0.95 | 0.05042 | 0 | node-utils | 906 | 2023-11-25T11:57:10.488697 | BSD-3-Clause | false | e88b8fdf0c4b693c15d04ae7209f803d |
\n\n | .venv\Lib\site-packages\fontTools\merge\__pycache__\__main__.cpython-313.pyc | __main__.cpython-313.pyc | Other | 368 | 0.7 | 0 | 0 | python-kit | 750 | 2023-10-11T08:15:22.246349 | GPL-3.0 | false | fd5ba764a1e1807f6853d19c41742333 |
"""Routines for calculating bounding boxes, point in rectangle calculations and\nso on.\n"""\n\nfrom fontTools.misc.roundTools import otRound\nfrom fontTools.misc.vector import Vector as _Vector\nimport math\nimport warnings\n\n\ndef calcBounds(array):\n """Calculate the bounding rectangle of a 2D points array.\n\n ... | .venv\Lib\site-packages\fontTools\misc\arrayTools.py | arrayTools.py | Python | 11,907 | 0.85 | 0.103774 | 0 | python-kit | 154 | 2024-07-06T04:29:00.572168 | BSD-3-Clause | false | bb6010c3f1352539b580d26d11f58454 |
""" fontTools.misc.classifyTools.py -- tools for classifying things.\n"""\n\n\nclass Classifier(object):\n """\n Main Classifier object, used to classify things into similar sets.\n """\n\n def __init__(self, sort=True):\n self._things = set() # set of all things known so far\n self._sets = [... | .venv\Lib\site-packages\fontTools\misc\classifyTools.py | classifyTools.py | Python | 5,783 | 0.95 | 0.241176 | 0.050725 | vue-tools | 225 | 2025-01-28T09:41:45.853309 | BSD-3-Clause | false | a8bdd92461abd52715e34862041c2679 |
"""Collection of utilities for command-line interfaces and console scripts."""\n\nimport os\nimport re\n\n\nnumberAddedRE = re.compile(r"#\d+$")\n\n\ndef makeOutputFileName(\n input, outputDir=None, extension=None, overWrite=False, suffix=""\n):\n """Generates a suitable file name for writing output.\n\n Often... | .venv\Lib\site-packages\fontTools\misc\cliTools.py | cliTools.py | Python | 1,915 | 0.95 | 0.226415 | 0 | node-utils | 616 | 2024-09-09T00:40:01.560513 | Apache-2.0 | false | 5b8cd0d5f8859779b7e9df4f2b3b1c4b |
"""\nCode of the config system; not related to fontTools or fonts in particular.\n\nThe options that are specific to fontTools are in :mod:`fontTools.config`.\n\nTo create your own config system, you need to create an instance of\n:class:`Options`, and a subclass of :class:`AbstractConfig` with its\n``options`` class v... | .venv\Lib\site-packages\fontTools\misc\configTools.py | configTools.py | Python | 11,537 | 0.95 | 0.22063 | 0.029197 | vue-tools | 941 | 2025-04-04T08:56:27.285701 | MIT | false | 16f32fc3355ac8c0a89e070fb6e7f58a |
""" Exports a no-op 'cython' namespace similar to\nhttps://github.com/cython/cython/blob/master/Cython/Shadow.py\n\nThis allows to optionally compile @cython decorated functions\n(when cython is available at built time), or run the same code\nas pure-python, without runtime dependency on cython module.\n\nWe only defin... | .venv\Lib\site-packages\fontTools\misc\cython.py | cython.py | Python | 709 | 0.95 | 0.111111 | 0 | node-utils | 910 | 2024-08-12T22:18:02.319381 | BSD-3-Clause | false | ed39f1b746db0574df61f65f110a0554 |
"""Misc dict tools."""\n\n__all__ = ["hashdict"]\n\n\n# https://stackoverflow.com/questions/1151658/python-hashable-dicts\nclass hashdict(dict):\n """\n hashable dict implementation, suitable for use as a key into\n other dicts.\n\n >>> h1 = hashdict({"apples": 1, "bananas":2})\n >>> h2 = hashdic... | .venv\Lib\site-packages\fontTools\misc\dictTools.py | dictTools.py | Python | 2,500 | 0.95 | 0.180723 | 0.060606 | node-utils | 229 | 2024-04-18T02:41:25.587346 | BSD-3-Clause | false | 945cbd64b488c2b3ed4c1c87ec19cd9d |
"""\nPostScript Type 1 fonts make use of two types of encryption: charstring\nencryption and ``eexec`` encryption. Charstring encryption is used for\nthe charstrings themselves, while ``eexec`` is used to encrypt larger\nsections of the font program, such as the ``Private`` and ``CharStrings``\ndictionaries. Despite th... | .venv\Lib\site-packages\fontTools\misc\eexec.py | eexec.py | Python | 3,450 | 0.85 | 0.109244 | 0 | node-utils | 244 | 2024-01-03T17:43:36.887796 | BSD-3-Clause | false | c55a72c0c1aac8941b742f7ae3dc37e5 |
"""\nThis module implements the algorithm for converting between a "user name" -\nsomething that a user can choose arbitrarily inside a font editor - and a file\nname suitable for use in a wide range of operating systems and filesystems.\n\nThe `UFO 3 specification <http://unifiedfontobject.org/versions/ufo3/convention... | .venv\Lib\site-packages\fontTools\misc\filenames.py | filenames.py | Python | 8,468 | 0.95 | 0.142857 | 0.092593 | vue-tools | 938 | 2023-09-02T19:13:02.491321 | GPL-3.0 | false | 269f6cdbec506a71559fa7cf343f1135 |
__all__ = ["popCount", "bit_count", "bit_indices"]\n\n\ntry:\n bit_count = int.bit_count\nexcept AttributeError:\n\n def bit_count(v):\n return bin(v).count("1")\n\n\n"""Return number of 1 bits (population count) of the absolute value of an integer.\n\nSee https://docs.python.org/3.10/library/stdtypes.html... | .venv\Lib\site-packages\fontTools\misc\intTools.py | intTools.py | Python | 611 | 0.95 | 0.2 | 0 | awesome-app | 998 | 2025-02-16T00:43:57.809419 | GPL-3.0 | false | aaf42ec44c5f9f6c6bf41b8a23140538 |
from itertools import *\n\n# Python 3.12:\nif "batched" not in globals():\n # https://docs.python.org/3/library/itertools.html#itertools.batched\n def batched(iterable, n):\n # batched('ABCDEFG', 3) --> ABC DEF G\n if n < 1:\n raise ValueError("n must be at least one")\n it = iter(... | .venv\Lib\site-packages\fontTools\misc\iterTools.py | iterTools.py | Python | 402 | 0.95 | 0.333333 | 0.272727 | react-lib | 835 | 2024-03-12T12:43:52.113216 | BSD-3-Clause | false | 0081223e024e7336348e5fceffe81e53 |
from collections import UserDict, UserList\n\n__all__ = ["LazyDict", "LazyList"]\n\n\nclass LazyDict(UserDict):\n def __init__(self, data):\n super().__init__()\n self.data = data\n\n def __getitem__(self, k):\n v = self.data[k]\n if callable(v):\n v = v(k)\n self... | .venv\Lib\site-packages\fontTools\misc\lazyTools.py | lazyTools.py | Python | 1,062 | 0.85 | 0.309524 | 0 | awesome-app | 496 | 2024-09-21T12:38:10.620916 | Apache-2.0 | false | 9defc7b9499ccb5fa99d0573cafbd626 |
from fontTools.misc.textTools import Tag, bytesjoin, strjoin\n\ntry:\n import xattr\nexcept ImportError:\n xattr = None\n\n\ndef _reverseString(s):\n s = list(s)\n s.reverse()\n return strjoin(s)\n\n\ndef getMacCreatorAndType(path):\n """Returns file creator and file type codes for a path.\n\n Args... | .venv\Lib\site-packages\fontTools\misc\macCreatorType.py | macCreatorType.py | Python | 1,649 | 0.85 | 0.232143 | 0 | react-lib | 197 | 2024-06-21T12:10:15.301572 | MIT | false | 7f4f22697e80545a8626fc2b264cdd82 |
from io import BytesIO\nimport struct\nfrom fontTools.misc import sstruct\nfrom fontTools.misc.textTools import bytesjoin, tostr\nfrom collections import OrderedDict\nfrom collections.abc import MutableMapping\n\n\nclass ResourceError(Exception):\n pass\n\n\nclass ResourceReader(MutableMapping):\n """Reader for M... | .venv\Lib\site-packages\fontTools\misc\macRes.py | macRes.py | Python | 8,840 | 0.95 | 0.199234 | 0.018349 | node-utils | 232 | 2024-10-27T18:18:20.763836 | GPL-3.0 | false | 6464152c50e32a801ac6be44d8055047 |
"""psCharStrings.py -- module implementing various kinds of CharStrings:\nCFF dictionary data and Type1/Type2 CharStrings.\n"""\n\nfrom fontTools.misc.fixedTools import (\n fixedToFloat,\n floatToFixed,\n floatToFixedToStr,\n strToFixedToFloat,\n)\nfrom fontTools.misc.textTools import bytechr, byteord, byte... | .venv\Lib\site-packages\fontTools\misc\psCharStrings.py | psCharStrings.py | Python | 44,532 | 0.95 | 0.203209 | 0.056082 | vue-tools | 380 | 2024-01-06T11:06:10.479250 | GPL-3.0 | false | 2068539534e567a092ab2df8d56d677b |
"""Python 2/3 compat layer leftovers."""\n\nimport decimal as _decimal\nimport math as _math\nimport warnings\nfrom contextlib import redirect_stderr, redirect_stdout\nfrom io import BytesIO\nfrom io import StringIO as UnicodeIO\nfrom types import SimpleNamespace\n\nfrom .textTools import Tag, bytechr, byteord, bytesjo... | .venv\Lib\site-packages\fontTools\misc\py23.py | py23.py | Python | 2,334 | 0.95 | 0.083333 | 0 | vue-tools | 12 | 2023-08-25T05:15:50.389902 | Apache-2.0 | false | 0e184acdd0951c0e5e83d6a798efcd23 |
"""sstruct.py -- SuperStruct\n\nHigher level layer on top of the struct module, enabling to\nbind names to struct elements. The interface is similar to\nstruct, except the objects passed and returned are not tuples\n(or argument lists), but dictionaries or instances.\n\nJust like struct, we use fmt strings to describe ... | .venv\Lib\site-packages\fontTools\misc\sstruct.py | sstruct.py | Python | 7,389 | 0.95 | 0.151515 | 0.046392 | vue-tools | 465 | 2025-03-28T15:44:26.775683 | GPL-3.0 | false | 4cd22da24d31d2fe4524edc68e9b9299 |
"""Helpers for writing unit tests."""\n\nfrom collections.abc import Iterable\nfrom io import BytesIO\nimport os\nimport re\nimport shutil\nimport sys\nimport tempfile\nfrom unittest import TestCase as _TestCase\nfrom fontTools.config import Config\nfrom fontTools.misc.textTools import tobytes\nfrom fontTools.misc.xmlW... | .venv\Lib\site-packages\fontTools\misc\testTools.py | testTools.py | Python | 7,285 | 0.95 | 0.261803 | 0.048913 | python-kit | 619 | 2024-02-28T07:23:25.158151 | BSD-3-Clause | true | 165a5127292cb3a2866f4844954d4b40 |
"""fontTools.misc.textTools.py -- miscellaneous routines."""\n\nimport ast\nimport string\n\n\n# alias kept for backward compatibility\nsafeEval = ast.literal_eval\n\n\nclass Tag(str):\n @staticmethod\n def transcode(blob):\n if isinstance(blob, bytes):\n blob = blob.decode("latin-1")\n r... | .venv\Lib\site-packages\fontTools\misc\textTools.py | textTools.py | Python | 3,531 | 0.95 | 0.266234 | 0.00885 | python-kit | 304 | 2023-08-24T02:31:22.547135 | MIT | false | a88613eea79685c629d8a2bee280b779 |
"""fontTools.misc.timeTools.py -- tools for working with OpenType timestamps.\n"""\n\nimport os\nimport time\nfrom datetime import datetime, timezone\nimport calendar\n\n\nepoch_diff = calendar.timegm((1904, 1, 1, 0, 0, 0, 0, 0, 0))\n\nDAYNAMES = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]\nMONTHNAMES = [\n No... | .venv\Lib\site-packages\fontTools\misc\timeTools.py | timeTools.py | Python | 2,322 | 0.95 | 0.102273 | 0.014925 | vue-tools | 982 | 2024-12-23T17:14:56.231165 | BSD-3-Clause | false | a81e21c8437baea246d1d9e3635aab56 |
"""Generic tools for working with trees."""\n\nfrom math import ceil, log\n\n\ndef build_n_ary_tree(leaves, n):\n """Build N-ary tree from sequence of leaf nodes.\n\n Return a list of lists where each non-leaf node is a list containing\n max n nodes.\n """\n if not leaves:\n return []\n\n asser... | .venv\Lib\site-packages\fontTools\misc\treeTools.py | treeTools.py | Python | 1,314 | 0.95 | 0.244444 | 0.085714 | python-kit | 356 | 2025-04-15T01:43:30.349990 | Apache-2.0 | false | 6b80d6b9e8364e5327787fe9eb50cbe7 |
from numbers import Number\nimport math\nimport operator\nimport warnings\n\n\n__all__ = ["Vector"]\n\n\nclass Vector(tuple):\n """A math-like vector.\n\n Represents an n-dimensional numeric vector. ``Vector`` objects support\n vector addition and subtraction, scalar multiplication and division,\n negation,... | .venv\Lib\site-packages\fontTools\misc\vector.py | vector.py | Python | 4,209 | 0.95 | 0.285714 | 0.027778 | python-kit | 174 | 2023-10-29T19:53:47.199468 | GPL-3.0 | false | d9a57053955de64db99b8971178d5bb7 |
"""Generic visitor pattern implementation for Python objects."""\n\nimport enum\nimport weakref\n\n\nclass Visitor(object):\n defaultStop = False\n\n _visitors = {\n # By default we skip visiting weak references to avoid recursion\n # issues. Users can override this by registering a visit\n #... | .venv\Lib\site-packages\fontTools\misc\visitor.py | visitor.py | Python | 5,760 | 0.95 | 0.34 | 0.024 | awesome-app | 606 | 2023-08-01T10:12:44.427778 | BSD-3-Clause | false | a967a76961b7bd8f3ee21672e1edb1d9 |
"""xmlWriter.py -- Simple XML authoring class"""\n\nfrom fontTools.misc.textTools import byteord, strjoin, tobytes, tostr\nimport sys\nimport os\nimport string\n\nINDENT = " "\n\n\nclass XMLWriter(object):\n def __init__(\n self,\n fileOrPath,\n indentwhite=INDENT,\n idlefunc=None,\n ... | .venv\Lib\site-packages\fontTools\misc\xmlWriter.py | xmlWriter.py | Python | 6,250 | 0.95 | 0.210784 | 0.02907 | node-utils | 319 | 2023-10-16T03:13:30.874735 | Apache-2.0 | false | e601e5c7b0f0ddde72e62151d810f97f |
"""Empty __init__.py file to signal Python this directory is a package."""\n | .venv\Lib\site-packages\fontTools\misc\__init__.py | __init__.py | Python | 76 | 0.5 | 0 | 0 | node-utils | 396 | 2025-02-03T16:18:04.708116 | Apache-2.0 | false | 6d412be7408e8f32685229b58fb23583 |
\n\n | .venv\Lib\site-packages\fontTools\misc\plistlib\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 26,479 | 0.95 | 0.077586 | 0.003155 | react-lib | 662 | 2023-09-25T14:02:58.879022 | Apache-2.0 | false | 20ab290d822c4d658e1cdb3135d08c27 |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\arrayTools.cpython-313.pyc | arrayTools.cpython-313.pyc | Other | 14,094 | 0.95 | 0.029605 | 0.003861 | node-utils | 11 | 2024-08-08T03:37:09.725677 | BSD-3-Clause | false | 99a9f12830656e1848925e7f1f4b1ad9 |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\bezierTools.cpython-313.pyc | bezierTools.cpython-313.pyc | Other | 54,370 | 0.95 | 0.021776 | 0.008333 | react-lib | 694 | 2025-01-20T21:31:08.701562 | BSD-3-Clause | false | a6539914d578c277e1af7ee9e32d1ddd |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\classifyTools.cpython-313.pyc | classifyTools.cpython-313.pyc | Other | 6,582 | 0.95 | 0.096 | 0.009091 | node-utils | 621 | 2024-07-23T13:34:28.478360 | BSD-3-Clause | false | c37ad685a97c0efaa613c3fef5a1741d |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\cliTools.cpython-313.pyc | cliTools.cpython-313.pyc | Other | 2,534 | 0.95 | 0.162791 | 0 | node-utils | 732 | 2023-08-07T23:44:50.988067 | MIT | false | ec7773d089c8d1d4a275b17448dc0417 |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\configTools.cpython-313.pyc | configTools.cpython-313.pyc | Other | 15,932 | 0.95 | 0.112426 | 0.034483 | awesome-app | 609 | 2024-02-06T21:31:05.948170 | GPL-3.0 | false | 47104d2d618864bbd93227402d778d55 |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\cython.cpython-313.pyc | cython.cpython-313.pyc | Other | 1,173 | 0.95 | 0 | 0 | react-lib | 827 | 2024-09-09T14:20:28.187331 | GPL-3.0 | false | 1e45164dd213eb205da1c5f3ac791169 |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\dictTools.cpython-313.pyc | dictTools.cpython-313.pyc | Other | 3,922 | 0.8 | 0.02 | 0 | python-kit | 148 | 2024-12-04T17:38:23.317216 | GPL-3.0 | false | a5351108e4d763a5551b80f644e6a5db |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\eexec.cpython-313.pyc | eexec.cpython-313.pyc | Other | 4,286 | 0.95 | 0.047059 | 0 | awesome-app | 433 | 2025-02-21T15:02:22.802108 | GPL-3.0 | false | d4322de9c3483ef36db688453e8740a2 |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\encodingTools.cpython-313.pyc | encodingTools.cpython-313.pyc | Other | 1,839 | 0.8 | 0.142857 | 0 | vue-tools | 786 | 2024-01-29T15:18:01.917361 | Apache-2.0 | false | 3beb04573317e123582c396f4057afc3 |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\etree.cpython-313.pyc | etree.cpython-313.pyc | Other | 15,943 | 0.95 | 0.107438 | 0 | python-kit | 288 | 2024-04-23T21:25:10.768958 | BSD-3-Clause | false | 731f9ce058f845721d647f332fc79ff4 |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\filenames.cpython-313.pyc | filenames.cpython-313.pyc | Other | 8,330 | 0.8 | 0.028902 | 0 | python-kit | 926 | 2024-01-21T02:25:31.474277 | GPL-3.0 | false | fdf83e417308541d24f40f90eea1ebd6 |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\fixedTools.cpython-313.pyc | fixedTools.cpython-313.pyc | Other | 8,028 | 0.95 | 0.025 | 0 | python-kit | 985 | 2024-02-26T08:50:08.534431 | BSD-3-Clause | false | 067ed138bf131b40fa905466b2f9b289 |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\intTools.cpython-313.pyc | intTools.cpython-313.pyc | Other | 992 | 0.8 | 0 | 0 | node-utils | 855 | 2024-04-17T22:58:42.900524 | BSD-3-Clause | false | a6857c33dba0552d79213e80e57554ea |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\iterTools.cpython-313.pyc | iterTools.cpython-313.pyc | Other | 738 | 0.8 | 0 | 0 | awesome-app | 852 | 2023-07-18T06:24:41.439770 | MIT | false | 8ec633e0cdde83f24f80a22253b0759b |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\lazyTools.cpython-313.pyc | lazyTools.cpython-313.pyc | Other | 2,418 | 0.7 | 0 | 0 | node-utils | 410 | 2024-12-06T11:47:34.936159 | MIT | false | b7674ed273396e2e2dc71c925f542f41 |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\loggingTools.cpython-313.pyc | loggingTools.cpython-313.pyc | Other | 24,533 | 0.95 | 0.10596 | 0 | vue-tools | 773 | 2024-06-14T21:40:17.684276 | MIT | false | 90a00d5275f8ba33c595e9096565eba7 |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\macCreatorType.cpython-313.pyc | macCreatorType.cpython-313.pyc | Other | 2,434 | 0.8 | 0.114286 | 0 | awesome-app | 197 | 2025-01-11T09:06:40.357320 | BSD-3-Clause | false | 91a53953aa4046b830f05d26b300ba19 |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\macRes.cpython-313.pyc | macRes.cpython-313.pyc | Other | 13,014 | 0.8 | 0.029197 | 0 | awesome-app | 194 | 2024-10-13T04:42:16.080307 | Apache-2.0 | false | 3cc13d06c5c566a49ab698ca31a52f2f |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\psCharStrings.cpython-313.pyc | psCharStrings.cpython-313.pyc | Other | 62,224 | 0.6 | 0.002123 | 0.015837 | vue-tools | 924 | 2025-03-02T05:29:46.592866 | BSD-3-Clause | false | c422214e4ea21e2dfd6c0e1fd676298f |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\psLib.cpython-313.pyc | psLib.cpython-313.pyc | Other | 17,198 | 0.95 | 0.011696 | 0.012195 | vue-tools | 374 | 2024-03-10T23:32:59.360108 | GPL-3.0 | false | 2c240f3e69e70a092fc853664d79e94d |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\psOperators.cpython-313.pyc | psOperators.cpython-313.pyc | Other | 31,860 | 0.95 | 0.016129 | 0.00578 | vue-tools | 106 | 2024-04-12T01:07:08.267745 | GPL-3.0 | false | dbce4d85df57ea104835c18a8f29c4ce |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\py23.cpython-313.pyc | py23.cpython-313.pyc | Other | 2,909 | 0.95 | 0.05 | 0 | python-kit | 788 | 2023-10-31T09:59:37.198363 | GPL-3.0 | false | 34d95ab21c72c2e55807beb898785c90 |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\roundTools.cpython-313.pyc | roundTools.cpython-313.pyc | Other | 3,811 | 0.95 | 0.088235 | 0 | react-lib | 665 | 2025-07-09T17:49:31.282645 | MIT | false | 27b29d39dbf9bfc29edb1cad1b7734c1 |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\sstruct.cpython-313.pyc | sstruct.cpython-313.pyc | Other | 9,025 | 0.95 | 0.048611 | 0.02963 | node-utils | 114 | 2024-08-09T15:23:18.431770 | Apache-2.0 | false | c846f2af968db14a85d34229e78913fc |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\symfont.cpython-313.pyc | symfont.cpython-313.pyc | Other | 13,010 | 0.95 | 0.06701 | 0.016575 | vue-tools | 269 | 2024-08-30T12:41:57.185776 | Apache-2.0 | false | 6c9e13b29a59b94c469c0a0b0eeccdbc |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\testTools.cpython-313.pyc | testTools.cpython-313.pyc | Other | 13,339 | 0.95 | 0.021978 | 0 | node-utils | 250 | 2025-06-17T14:40:28.372650 | GPL-3.0 | true | d53d88b970fdadcf8d5fdf6d1141136f |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\textTools.cpython-313.pyc | textTools.cpython-313.pyc | Other | 7,010 | 0.8 | 0 | 0 | node-utils | 561 | 2023-12-20T08:26:26.214300 | GPL-3.0 | false | 3e42fefb00c7f97735f47732ddf1a6f8 |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\timeTools.cpython-313.pyc | timeTools.cpython-313.pyc | Other | 3,636 | 0.8 | 0.019231 | 0.022727 | python-kit | 487 | 2023-10-13T08:17:54.196336 | MIT | false | d11b0d7acd24323831c577efea4e5bdb |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\transform.cpython-313.pyc | transform.cpython-313.pyc | Other | 19,135 | 0.95 | 0.024876 | 0.002849 | vue-tools | 167 | 2023-09-11T14:18:21.565444 | Apache-2.0 | false | 9c3ad719266150f6f2d159baa7fd369d |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\treeTools.cpython-313.pyc | treeTools.cpython-313.pyc | Other | 1,614 | 0.8 | 0.083333 | 0 | node-utils | 414 | 2023-07-31T10:27:40.031161 | GPL-3.0 | false | 73df73a931ebe4da9dee81d1fdbb0389 |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\vector.cpython-313.pyc | vector.cpython-313.pyc | Other | 9,107 | 0.8 | 0.02 | 0 | react-lib | 357 | 2025-03-04T03:44:39.789108 | BSD-3-Clause | false | 59de5da1403ea58ade7994d0673c1100 |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\visitor.cpython-313.pyc | visitor.cpython-313.pyc | Other | 7,314 | 0.95 | 0.175676 | 0.014493 | node-utils | 711 | 2025-05-10T13:54:29.682322 | MIT | false | fac7e748bf42003b89c94d055393cfbd |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\xmlReader.cpython-313.pyc | xmlReader.cpython-313.pyc | Other | 9,209 | 0.8 | 0 | 0 | awesome-app | 690 | 2023-09-12T06:37:45.960388 | MIT | false | 80d80cce3a24d80711ce77b6e76d453c |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\xmlWriter.cpython-313.pyc | xmlWriter.cpython-313.pyc | Other | 10,060 | 0.8 | 0.014286 | 0 | awesome-app | 730 | 2024-10-27T09:14:05.171703 | GPL-3.0 | false | 7a6ca36c5853c9ce54b81d802cc3bc13 |
\n\n | .venv\Lib\site-packages\fontTools\misc\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 272 | 0.7 | 0 | 0 | awesome-app | 294 | 2024-03-17T17:39:42.747752 | GPL-3.0 | false | 1d19d59ccc125c7669eb7f1465f9cd83 |
# FontDame-to-FontTools for OpenType Layout tables\n#\n# Source language spec is available at:\n# http://monotype.github.io/OpenType_Table_Source/otl_source.html\n# https://github.com/Monotype/OpenType_Table_Source/\n\nfrom fontTools import ttLib\nfrom fontTools.ttLib.tables._c_m_a_p import cmap_classes\nfrom fontTools... | .venv\Lib\site-packages\fontTools\mtiLib\__init__.py | __init__.py | Python | 48,002 | 0.95 | 0.208571 | 0.019167 | node-utils | 607 | 2023-09-12T02:21:57.558868 | MIT | false | 09fef9544cac38af5bd5a10831d54fe9 |
import sys\nfrom fontTools.mtiLib import main\n\nif __name__ == "__main__":\n sys.exit(main())\n | .venv\Lib\site-packages\fontTools\mtiLib\__main__.py | __main__.py | Python | 99 | 0.65 | 0.2 | 0 | react-lib | 813 | 2025-05-12T23:02:17.546464 | Apache-2.0 | false | d5d808327792f9ffaa8328433884ca44 |
\n\n | .venv\Lib\site-packages\fontTools\mtiLib\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 72,028 | 0.75 | 0.016367 | 0.013913 | python-kit | 806 | 2024-08-07T18:55:20.882831 | MIT | false | 2e1b2f6d19071e20a02b076867786b0f |
\n\n | .venv\Lib\site-packages\fontTools\mtiLib\__pycache__\__main__.cpython-313.pyc | __main__.cpython-313.pyc | Other | 368 | 0.7 | 0 | 0 | node-utils | 341 | 2023-07-17T14:37:14.926116 | Apache-2.0 | false | 23d0ec5564658fb11ce81e2d73672671 |
class OpenTypeLibError(Exception):\n def __init__(self, message, location):\n Exception.__init__(self, message)\n self.location = location\n\n def __str__(self):\n message = Exception.__str__(self)\n if self.location:\n return f"{self.location}: {message}"\n else:\n ... | .venv\Lib\site-packages\fontTools\otlLib\error.py | error.py | Python | 346 | 0.85 | 0.363636 | 0 | node-utils | 842 | 2024-08-01T07:19:51.994556 | GPL-3.0 | false | a63db3c8af54d2f33970fa38f4bf770e |
__all__ = ["maxCtxFont"]\n\n\ndef maxCtxFont(font):\n """Calculate the usMaxContext value for an entire font."""\n\n maxCtx = 0\n for tag in ("GSUB", "GPOS"):\n if tag not in font:\n continue\n table = font[tag].table\n if not table.LookupList:\n continue\n for... | .venv\Lib\site-packages\fontTools\otlLib\maxContextCalc.py | maxContextCalc.py | Python | 3,271 | 0.95 | 0.260417 | 0.094595 | python-kit | 146 | 2023-07-16T20:19:42.171217 | Apache-2.0 | false | c943731dd22895008ad1977861f0fbe6 |
"""OpenType Layout-related functionality."""\n | .venv\Lib\site-packages\fontTools\otlLib\__init__.py | __init__.py | Python | 46 | 0.65 | 0 | 0 | react-lib | 916 | 2023-10-08T23:42:39.932465 | Apache-2.0 | false | 477940433b8bb95f268306b837c9df42 |
from argparse import RawTextHelpFormatter\nfrom fontTools.otlLib.optimize.gpos import COMPRESSION_LEVEL, compact\nfrom fontTools.ttLib import TTFont\n\n\ndef main(args=None):\n """Optimize the layout tables of an existing font"""\n from argparse import ArgumentParser\n\n from fontTools import configLogger\n\n ... | .venv\Lib\site-packages\fontTools\otlLib\optimize\__init__.py | __init__.py | Python | 1,583 | 0.85 | 0.09434 | 0 | node-utils | 361 | 2024-09-06T12:52:08.111121 | BSD-3-Clause | false | f1cbaf462880156375658c8b310eb26f |
import sys\nfrom fontTools.otlLib.optimize import main\n\n\nif __name__ == "__main__":\n sys.exit(main())\n | .venv\Lib\site-packages\fontTools\otlLib\optimize\__main__.py | __main__.py | Python | 110 | 0.85 | 0.166667 | 0 | python-kit | 275 | 2025-05-06T16:18:41.944528 | GPL-3.0 | false | 65f535411e5e4e8b47f045f37487c0f7 |
\n\n | .venv\Lib\site-packages\fontTools\otlLib\optimize\__pycache__\gpos.cpython-313.pyc | gpos.cpython-313.pyc | Other | 18,183 | 0.8 | 0 | 0.025316 | python-kit | 540 | 2025-04-25T07:35:09.516093 | GPL-3.0 | false | a3d7c56ee554a76effeb633bd154050c |
\n\n | .venv\Lib\site-packages\fontTools\otlLib\optimize\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 2,520 | 0.95 | 0 | 0.074074 | awesome-app | 511 | 2025-02-18T07:53:35.583432 | BSD-3-Clause | false | 5186f4087bc22363ea7ea2717101b4b2 |
\n\n | .venv\Lib\site-packages\fontTools\otlLib\optimize\__pycache__\__main__.cpython-313.pyc | __main__.cpython-313.pyc | Other | 388 | 0.7 | 0 | 0 | react-lib | 194 | 2023-12-07T12:39:53.373327 | MIT | false | 308b1d5406f10b34a728e130d01ee69f |
\n\n | .venv\Lib\site-packages\fontTools\otlLib\__pycache__\error.cpython-313.pyc | error.cpython-313.pyc | Other | 976 | 0.8 | 0 | 0 | vue-tools | 119 | 2024-05-07T04:02:58.168660 | Apache-2.0 | false | f972ffa6b51ad34c12a76ccc25416661 |
\n\n | .venv\Lib\site-packages\fontTools\otlLib\__pycache__\maxContextCalc.cpython-313.pyc | maxContextCalc.cpython-313.pyc | Other | 3,697 | 0.8 | 0.035714 | 0.083333 | react-lib | 543 | 2024-08-19T03:10:43.532791 | GPL-3.0 | false | cd23936e9ae4f9987b11f71db79e7ba2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.