d9f75179ef91b6cc495295eddc5b309113cdbd37,libs/font_utils.py,,check_font_chars,#Any#Any#,62
Before Change
:param charset: chars
:return: unsupported_chars, supported_chars
chars = chain.from_iterable([y + (Unicode[y[0]],) for y in x.cmap.items()] for x in ttf["cmap"].tables)
chars_int = []
for c in chars:
chars_int.append(c[0])
unsupported_chars = []
supported_chars = []
for c in charset:
if ord(c) not in chars_int:
After Change
:return: unsupported_chars, supported_chars
//chars = chain.from_iterable([y + (Unicode[y[0]],) for y in x.cmap.items()] for x in ttf["cmap"].tables)
chars_int=set()
for table in ttf["cmap"].tables:
for k,v in table.cmap.items():
chars_int.add(k)
unsupported_chars = []
supported_chars = []
for c in charset:
if ord(c) not in chars_int:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances Project Name: Sanster/text_renderer
Commit Name: d9f75179ef91b6cc495295eddc5b309113cdbd37
Time: 2018-10-31
Author: 514358041@qq.com
File Name: libs/font_utils.py
Class Name:
Method Name: check_font_chars
Project Name: automl/auto-sklearn
Commit Name: f754f90ed94c7db58f2d6573471b8a7d63828d87
Time: 2020-03-18
Author: feurerm@informatik.uni-freiburg.de
File Name: test/test_automl/test_automl.py
Class Name: AutoMLTest
Method Name: test_delete_non_winning_models
Project Name: bokeh/bokeh
Commit Name: f1bc5b054e29f6d8e948fe7222936a2b0a975535
Time: 2019-10-07
Author: mattpap@gmail.com
File Name: bokeh/util/compiler.py
Class Name:
Method Name: _bundle_models