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: 5
Non-data size: 9
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: home-assistant/home-assistant
Commit Name: 0dd151c1c3e25d22182f9e24781610d6a290045c
Time: 2020-02-08
Author: nick@cpanel.net
File Name: homeassistant/components/august/__init__.py
Class Name: AugustData
Method Name: __init__
Project Name: home-assistant/home-assistant
Commit Name: a02bb893ef8846d832ab105a91c19e6ca3964985
Time: 2020-02-10
Author: nick@cpanel.net
File Name: homeassistant/components/august/__init__.py
Class Name: AugustData
Method Name: __init__
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: keras-team/keras
Commit Name: 57612707c1434ed3b18f9cad5cf2e6dd8b7b3b7d
Time: 2015-11-02
Author: roller@cs.utexas.edu
File Name: keras/layers/core.py
Class Name: Merge
Method Name: __init__