function
stringlengths
11
56k
repo_name
stringlengths
5
60
features
list
def create_poster(self, show_obj): # type: (sickbeard.tv.TVShow) -> bool if self.poster and show_obj and not self._has_poster(show_obj): logger.debug(u'Metadata provider %s creating poster for %s' % (self.name, show_obj.unique_name)) return self.save_poster(show_obj) retu...
SickGear/SickGear
[ 574, 83, 574, 2, 1415773777 ]
def create_episode_thumb(self, ep_obj): # type: (sickbeard.tv.TVEpisode) -> bool if self.episode_thumbnails and ep_obj and not self.has_episode_thumb(ep_obj): logger.log(u"Metadata provider " + self.name + " creating episode thumbnail for " + ep_obj.pretty_name(), logg...
SickGear/SickGear
[ 574, 83, 574, 2, 1415773777 ]
def create_season_banners(self, show_obj): # type: (sickbeard.tv.TVShow) -> bool if self.season_banners and show_obj: result = [] for season, _ in iteritems(show_obj.sxe_ep_obj): if not self._has_season_banner(show_obj, season): logger.debug(u'...
SickGear/SickGear
[ 574, 83, 574, 2, 1415773777 ]
def create_season_all_banner(self, show_obj): # type: (sickbeard.tv.TVShow) -> bool if self.season_all_banner and show_obj and not self._has_season_all_banner(show_obj): logger.debug(u'Metadata provider %s creating season all banner for %s' % ( self.name, show_obj.uni...
SickGear/SickGear
[ 574, 83, 574, 2, 1415773777 ]
def _get_episode_thumb_url(ep_obj): # type: (sickbeard.tv.TVEpisode) -> Optional[AnyStr] """ Returns the URL to use for downloading an episode's thumbnail. Uses theTVDB.com and TVRage.com data. :param ep_obj: a TVEpisode object for which to grab the thumb URL :return: UR...
SickGear/SickGear
[ 574, 83, 574, 2, 1415773777 ]
def write_ep_file(self, ep_obj): # type: (sickbeard.tv.TVEpisode) -> bool """ Generates and writes ep_obj's metadata under the given path with the given filename root. Uses the episode's name with the extension in _ep_nfo_extension. ep_obj: TVEpisode object for which to ...
SickGear/SickGear
[ 574, 83, 574, 2, 1415773777 ]
def save_fanart(self, show_obj, which=None): # type: (sickbeard.tv.TVShow, Optional[AnyStr]) -> bool """ Downloads a fanart image and saves it to the filename specified by fanart_name inside the show's root folder. show_obj: a TVShow object for which to download fanart "...
SickGear/SickGear
[ 574, 83, 574, 2, 1415773777 ]
def save_banner(self, show_obj, which=None): # type: (sickbeard.tv.TVShow, Optional[AnyStr]) -> bool """ Downloads a banner image and saves it to the filename specified by banner_name inside the show's root folder. show_obj: a TVShow object for which to download a banner ...
SickGear/SickGear
[ 574, 83, 574, 2, 1415773777 ]
def save_season_banners(self, show_obj, season): # type: (sickbeard.tv.TVShow, int) -> bool """ Saves all season banners to disk for the given show. show_obj: a TVShow object for which to save the season thumbs Cycles through all seasons and saves the season banners if possible...
SickGear/SickGear
[ 574, 83, 574, 2, 1415773777 ]
def save_season_all_banner(self, show_obj, which=None): # type: (sickbeard.tv.TVShow, Optional[AnyStr]) -> bool # use the default season all banner name banner_path = self.get_season_all_banner_path(show_obj) banner_data = self._retrieve_show_image('banner', show_obj, which, ...
SickGear/SickGear
[ 574, 83, 574, 2, 1415773777 ]
def _write_image(image_data, image_path, force=False): # type: (bytes, AnyStr, bool) -> bool """ Saves the data in image_data to the location image_path. Returns True/False to represent success or failure. image_data: binary image data to write to file image_path: file l...
SickGear/SickGear
[ 574, 83, 574, 2, 1415773777 ]
def gen_show_infos_dict(show_obj): # type: (TVShow) -> ShowInfosDict show_infos = ShowInfosDict() def _get_show_info(tv_id): try: show_lang = show_obj.lang # There's gotta be a better way of doing this but we don't wanna # change the l...
SickGear/SickGear
[ 574, 83, 574, 2, 1415773777 ]
def build_url(s_o, image_mode): _urls = [[], []] _url = s_o[image_mode] if _url and _url.startswith('http'): if 'poster' == image_mode: _url = re.sub('posters', '_cache/posters', _url) elif 'banner' == image_mode: ...
SickGear/SickGear
[ 574, 83, 574, 2, 1415773777 ]
def _de_dupe(images_list): # type:(Union[List[AnyStr], AnyStr]) -> Optional[Union[List[AnyStr], AnyStr]] if not isinstance(images_list, list): return_list = False temp_list = [images_list] else: return_list = True temp_l...
SickGear/SickGear
[ 574, 83, 574, 2, 1415773777 ]
def _retrieve_show_image(self, image_type, # type: AnyStr show_obj, # type: sickbeard.tv.TVShow which=None, # type: int return_links=False, # type: bool show_infos=None, ...
SickGear/SickGear
[ 574, 83, 574, 2, 1415773777 ]
def retrieveShowMetadata(self, folder): # type: (AnyStr) -> Union[Tuple[int, int, AnyStr], Tuple[None, None, None]] """ Used only when mass adding Existing Shows, using previously generated Show metadata to reduce the need to query TVDB. """ from sickbeard.indexers.inde...
SickGear/SickGear
[ 574, 83, 574, 2, 1415773777 ]
def _fanart_urls(tvdb_id, image_type='banner', lang='en', thumb=False): # type: (int, AnyStr, AnyStr, bool) -> Optional[List[int, int, AnyStr]] types = {'poster': fanart.TYPE.TV.POSTER, 'banner': fanart.TYPE.TV.BANNER, 'fanart': fanart.TYPE.TV.BACKGROUND, ...
SickGear/SickGear
[ 574, 83, 574, 2, 1415773777 ]
def __init__(self, *args, **kwargs): """ Extract prefetches and default fields from Meta """ # TODO: move this to a meta class, to evaluate once when defining the # class # TODO: This is not efficient - 2016-01-20 serializer_class = self.get_serializer_class() ...
openaid-IATI/OIPA
[ 34, 29, 34, 27, 1378915584 ]
def filter_queryset(self, queryset, *args, **kwargs): """ Prefetches based on 'fields' GET arg """ filter_fields = copy.deepcopy(self.request.query_params) if 'fields' in filter_fields: filter_fields.pop('fields') if 'format' in filter_fields: fil...
openaid-IATI/OIPA
[ 34, 29, 34, 27, 1378915584 ]
def get(self, request, *args, **kwargs): return self.retrieve(request, *args, **kwargs)
openaid-IATI/OIPA
[ 34, 29, 34, 27, 1378915584 ]
def put(self, request, *args, **kwargs): return self.update(request, *args, **kwargs)
openaid-IATI/OIPA
[ 34, 29, 34, 27, 1378915584 ]
def __init__(self, mail_service): Resource.__init__(self) self._mail_service = mail_service
pixelated-project/pixelated-user-agent
[ 161, 78, 161, 100, 1406844682 ]
def __init__(self, mail_service): Resource.__init__(self) self._mail_service = mail_service
pixelated-project/pixelated-user-agent
[ 161, 78, 161, 100, 1406844682 ]
def __init__(self, mail_service): Resource.__init__(self) self._mail_service = mail_service
pixelated-project/pixelated-user-agent
[ 161, 78, 161, 100, 1406844682 ]
def response_failed(failure): log.error('something failed: %s' % failure.getErrorMessage()) request.finish()
pixelated-project/pixelated-user-agent
[ 161, 78, 161, 100, 1406844682 ]
def __init__(self, mail_service): Resource.__init__(self) self._mail_service = mail_service
pixelated-project/pixelated-user-agent
[ 161, 78, 161, 100, 1406844682 ]
def __init__(self, mail_service): Resource.__init__(self) self._mail_service = mail_service
pixelated-project/pixelated-user-agent
[ 161, 78, 161, 100, 1406844682 ]
def _register_smtp_error_handler(self): def on_error(event, content): delivery_error_mail = InputMail.delivery_error_template(delivery_address=event.content) self._mail_service.mailboxes.inbox.add(delivery_error_mail) events.register(events.catalog.SMTP_SEND_MESSAGE_ERROR, call...
pixelated-project/pixelated-user-agent
[ 161, 78, 161, 100, 1406844682 ]
def getChild(self, action, request): _mail_service = self.mail_service(request) if action == 'delete': return MailsDeleteResource(_mail_service) if action == 'recover': return MailsRecoverResource(_mail_service) if action == 'archive': return MailsArc...
pixelated-project/pixelated-user-agent
[ 161, 78, 161, 100, 1406844682 ]
def render_GET(self, request): _mail_service = self.mail_service(request) query, window_size, page = request.args.get('q')[0], request.args.get('w')[0], request.args.get('p')[0] unicode_query = to_unicode(query) d = _mail_service.mails(unicode_query, window_size, page) d.addCal...
pixelated-project/pixelated-user-agent
[ 161, 78, 161, 100, 1406844682 ]
def onError(error): if isinstance(error.value, SMTPDownException): respond_json_deferred({'message': str(error.value)}, request, status_code=503) else: log.error('error occurred while sending: %s' % error.getErrorMessage()) respond_json_deferred({'...
pixelated-project/pixelated-user-agent
[ 161, 78, 161, 100, 1406844682 ]
def render_PUT(self, request): def onError(error): log.error('error saving draft: %s' % error.getErrorMessage()) respond_json_deferred("", request, status_code=422) deferred = self._handle_put(request) deferred.addErrback(onError) return server.NOT_DONE_...
pixelated-project/pixelated-user-agent
[ 161, 78, 161, 100, 1406844682 ]
def _fetch_attachment_contents(self, content_dict, _mail_service): attachments = content_dict.get('attachments', []) if content_dict else [] for attachment in attachments: retrieved_attachment = yield _mail_service.attachment(attachment['ident']) attachment['raw'] = retrieved_att...
pixelated-project/pixelated-user-agent
[ 161, 78, 161, 100, 1406844682 ]
def _handle_post(self, request): _mail_service = self.mail_service(request) content_dict = json.loads(request.content.read()) with_attachment_content = yield self._fetch_attachment_contents(content_dict, _mail_service) sent_mail = yield _mail_service.send_mail(with_attachment_content) ...
pixelated-project/pixelated-user-agent
[ 161, 78, 161, 100, 1406844682 ]
def allowed(self, request, project): # allow rescoping token to any project the user has a role on, # authorized_tenants, and that they are not currently scoped to return next((True for proj in request.user.authorized_tenants if proj.id == project.id and ...
CiscoSystems/avos
[ 48, 10, 48, 2, 1400873234 ]
def get_link_url(self, project): step = 'update_members' base_url = reverse(self.url, args=[project.id]) param = urlencode({"step": step}) return "?".join([base_url, param])
CiscoSystems/avos
[ 48, 10, 48, 2, 1400873234 ]
def allowed(self, request, project): return api.keystone.VERSIONS.active >= 3
CiscoSystems/avos
[ 48, 10, 48, 2, 1400873234 ]
def allowed(self, request, project): return request.user.is_superuser
CiscoSystems/avos
[ 48, 10, 48, 2, 1400873234 ]
def allowed(self, request, project): return api.keystone.keystone_can_edit_project()
CiscoSystems/avos
[ 48, 10, 48, 2, 1400873234 ]
def allowed(self, request, project): return api.keystone.keystone_can_edit_project()
CiscoSystems/avos
[ 48, 10, 48, 2, 1400873234 ]
def get_link_url(self, project): step = 'update_quotas' base_url = reverse(self.url, args=[project.id]) param = urlencode({"step": step}) return "?".join([base_url, param])
CiscoSystems/avos
[ 48, 10, 48, 2, 1400873234 ]
def action_present(count): return ungettext_lazy( u"Delete Project", u"Delete Projects", count )
CiscoSystems/avos
[ 48, 10, 48, 2, 1400873234 ]
def action_past(count): return ungettext_lazy( u"Deleted Project", u"Deleted Projects", count )
CiscoSystems/avos
[ 48, 10, 48, 2, 1400873234 ]
def allowed(self, request, project): return api.keystone.keystone_can_edit_project()
CiscoSystems/avos
[ 48, 10, 48, 2, 1400873234 ]
def handle(self, table, request, obj_ids): response = \ super(DeleteTenantsAction, self).handle(table, request, obj_ids) auth_utils.remove_project_cache(request.user.token.id) return response
CiscoSystems/avos
[ 48, 10, 48, 2, 1400873234 ]
def filter(self, table, tenants, filter_string): """Really naive case-insensitive search.""" # FIXME(gabriel): This should be smarter. Written for demo purposes. q = filter_string.lower() def comp(tenant): if q in tenant.name.lower(): return True ...
CiscoSystems/avos
[ 48, 10, 48, 2, 1400873234 ]
def get_data(self, request, project_id): project_info = api.keystone.tenant_get(request, project_id, admin=True) return project_info
CiscoSystems/avos
[ 48, 10, 48, 2, 1400873234 ]
def allowed(self, request, project, cell): policy_rule = (("identity", "identity:update_project"),) return ( (cell.column.name != 'enabled' or request.user.token.project['id'] != cell.datum.id) and api.keystone.keystone_can_edit_project() and policy.check...
CiscoSystems/avos
[ 48, 10, 48, 2, 1400873234 ]
def script_args(f): """single decorator for adding script args""" args = [ magic_arguments.argument( '--out', type=str, help="""The variable in which to store stdout from the script. If the script is backgrounded, this will be the stdout *pipe*, instead of...
unnikrishnankgs/va
[ 1, 5, 1, 10, 1496432585 ]
def _script_magics_default(self): """default to a common list of programs"""
unnikrishnankgs/va
[ 1, 5, 1, 10, 1496432585 ]
def __init__(self, shell=None): super(ScriptMagics, self).__init__(shell=shell) self._generate_script_magics() self.job_manager = BackgroundJobManager() self.bg_processes = [] atexit.register(self.kill_bg_processes)
unnikrishnankgs/va
[ 1, 5, 1, 10, 1496432585 ]
def _generate_script_magics(self): cell_magics = self.magics['cell'] for name in self.script_magics: cell_magics[name] = self._make_script_magic(name)
unnikrishnankgs/va
[ 1, 5, 1, 10, 1496432585 ]
def _make_script_magic(self, name): """make a named magic, that calls %%script with a particular program""" # expand to explicit path if necessary: script = self.script_paths.get(name, name)
unnikrishnankgs/va
[ 1, 5, 1, 10, 1496432585 ]
def named_script_magic(line, cell): # if line, add it as cl-flags if line: line = "%s %s" % (script, line) else: line = script return self.shebang(line, cell)
unnikrishnankgs/va
[ 1, 5, 1, 10, 1496432585 ]
def shebang(self, line, cell): """Run a cell via a shell command
unnikrishnankgs/va
[ 1, 5, 1, 10, 1496432585 ]
def _run_script(self, p, cell): """callback for running the script in the background""" p.stdin.write(cell) p.stdin.close() p.wait()
unnikrishnankgs/va
[ 1, 5, 1, 10, 1496432585 ]
def killbgscripts(self, _nouse_=''): """Kill all BG processes started by %%script and its family.""" self.kill_bg_processes() print("All background processes were killed.")
unnikrishnankgs/va
[ 1, 5, 1, 10, 1496432585 ]
def sample_template_checks(study_id, user, check_exists=False): """Performs different checks and raises errors if any of the checks fail Parameters ---------- study_id : int The study id user : qiita_db.user.User The user trying to access the study check_exists : bool, optional ...
biocore/qiita
[ 110, 74, 110, 128, 1380221443 ]
def sample_template_handler_patch_request(user, req_op, req_path, req_value=None, req_from=None, direct_upload=False): """Patches the sample template Parameters ---------- user: qiita_db.user.User The user perfo...
biocore/qiita
[ 110, 74, 110, 128, 1380221443 ]
def get(self): study_id = self.get_argument('study_id') # Check if the current user has access to the study sample_template_checks(study_id, self.current_user) self.render('study_ajax/sample_summary.html', study_id=study_id)
biocore/qiita
[ 110, 74, 110, 128, 1380221443 ]
def post(self): study_id = int(self.get_argument('study_id')) filepath = self.get_argument('filepath') data_type = self.get_argument('data_type') direct_upload = self.get_argument('direct_upload', False) if direct_upload and direct_upload == 'true': direct_upload = T...
biocore/qiita
[ 110, 74, 110, 128, 1380221443 ]
def patch(self): req_op = self.get_argument('op') req_path = self.get_argument('path') req_value = self.get_argument('value', None) req_from = self.get_argument('from', None) direct_upload = self.get_argument('direct_upload', False) if direct_upload and direct_upload == ...
biocore/qiita
[ 110, 74, 110, 128, 1380221443 ]
def delete(self): study_id = int(self.get_argument('study_id')) self.write(sample_template_handler_delete_request( study_id, self.current_user))
biocore/qiita
[ 110, 74, 110, 128, 1380221443 ]
def get(self): study_id = int(self.get_argument('study_id')) self.write( sample_template_overview_handler_get_request( study_id, self.current_user))
biocore/qiita
[ 110, 74, 110, 128, 1380221443 ]
def get(self): """Send formatted summary page of sample template""" sid = int(self.get_argument('study_id')) column = self.get_argument('column', None) reply = sample_template_columns_get_req(sid, column, self.current_user) # we reply with {'values': reply} because tornado expe...
biocore/qiita
[ 110, 74, 110, 128, 1380221443 ]
def get(self): """Show the sample summary page""" study_id = int(self.get_argument('study_id')) email = self.current_user.id res = sample_template_meta_cats_get_req(study_id, email) if res['status'] == 'error': if 'does not exist' in res['message']: r...
biocore/qiita
[ 110, 74, 110, 128, 1380221443 ]
def find_by_name(name): """Finds and returns the DataObject subclass with the given name. Parameter `name` should be a bare class name with no module. If there is no class by that name, raises `KeyError`. """ return classes_by_name[name]
mozilla/remoteobjects
[ 2, 2, 2, 1, 1295756319 ]
def __new__(cls, name, bases, attrs): """Creates and returns a new `DataObject` class with its declared fields and name.""" fields = {} new_fields = {} new_properties = {} # Inherit all the parent DataObject classes' fields. for base in bases: if isin...
mozilla/remoteobjects
[ 2, 2, 2, 1, 1295756319 ]
def __init__(self, **kwargs): """Initializes a new `DataObject` with the given field values.""" self.api_data = {} self.__dict__.update(kwargs)
mozilla/remoteobjects
[ 2, 2, 2, 1, 1295756319 ]
def __ne__(self, other): """Returns whether two `DataObject` instances are different. `DataObject` instances are different if they are not equivalent as determined through `__eq__()`. """ return not self == other
mozilla/remoteobjects
[ 2, 2, 2, 1, 1295756319 ]
def statefields(cls): return cls.fields.keys() + ['api_data']
mozilla/remoteobjects
[ 2, 2, 2, 1, 1295756319 ]
def get(self, attr, *args): return getattr(self, attr, *args)
mozilla/remoteobjects
[ 2, 2, 2, 1, 1295756319 ]
def to_dict(self): """Encodes the DataObject to a dictionary.""" # Start with the last set of data we got from the API data = deepcopy(self.api_data) # Now replace the data with what's actually in our object for field_name, field in self.fields.iteritems(): value = g...
mozilla/remoteobjects
[ 2, 2, 2, 1, 1295756319 ]
def from_dict(cls, data): """Decodes a dictionary into a new `DataObject` instance.""" self = cls() self.update_from_dict(data) return self
mozilla/remoteobjects
[ 2, 2, 2, 1, 1295756319 ]
def forwards(self, orm):
canvasnetworks/canvas
[ 56, 15, 56, 3, 1447125133 ]
def backwards(self, orm):
canvasnetworks/canvas
[ 56, 15, 56, 3, 1447125133 ]
def __init__( self, data, dist=stats.norm, fit=False, distargs=(), a=0, loc=0, scale=1,
statsmodels/statsmodels
[ 8254, 2672, 8254, 2534, 1307898290 ]
def theoretical_percentiles(self): """Theoretical percentiles""" return plotting_pos(self.nobs, self.a)
statsmodels/statsmodels
[ 8254, 2672, 8254, 2534, 1307898290 ]
def theoretical_quantiles(self): """Theoretical quantiles""" try: return self.dist.ppf(self.theoretical_percentiles) except TypeError: msg = "%s requires more parameters to compute ppf".format( self.dist.name, ) raise TypeError(msg)...
statsmodels/statsmodels
[ 8254, 2672, 8254, 2534, 1307898290 ]
def sorted_data(self): """sorted data""" sorted_data = np.array(self.data, copy=True) sorted_data.sort() return sorted_data
statsmodels/statsmodels
[ 8254, 2672, 8254, 2534, 1307898290 ]
def sample_quantiles(self): """sample quantiles""" if self.fit and self.loc != 0 and self.scale != 1: return (self.sorted_data - self.loc) / self.scale else: return self.sorted_data
statsmodels/statsmodels
[ 8254, 2672, 8254, 2534, 1307898290 ]
def sample_percentiles(self): """Sample percentiles""" _check_for(self.dist, "cdf") if self._is_frozen: return self.dist.cdf(self.sorted_data) quantiles = (self.sorted_data - self.fit_params[-2]) / self.fit_params[ -1 ] return self.dist.cdf(quantil...
statsmodels/statsmodels
[ 8254, 2672, 8254, 2534, 1307898290 ]
def qqplot( self, xlabel=None, ylabel=None, line=None, other=None, ax=None, swap: bool = False, **plotkwargs,
statsmodels/statsmodels
[ 8254, 2672, 8254, 2534, 1307898290 ]
def probplot( self, xlabel=None, ylabel=None, line=None, exceed=False, ax=None, **plotkwargs,
statsmodels/statsmodels
[ 8254, 2672, 8254, 2534, 1307898290 ]
def qqplot( data, dist=stats.norm, distargs=(), a=0, loc=0, scale=1, fit=False, line=None, ax=None, **plotkwargs,
statsmodels/statsmodels
[ 8254, 2672, 8254, 2534, 1307898290 ]
def qqplot_2samples( data1, data2, xlabel=None, ylabel=None, line=None, ax=None
statsmodels/statsmodels
[ 8254, 2672, 8254, 2534, 1307898290 ]
def qqline(ax, line, x=None, y=None, dist=None, fmt="r-", **lineoptions): """ Plot a reference line for a qqplot. Parameters ---------- ax : matplotlib axes instance The axes on which to plot the line line : str {"45","r","s","q"} Options for the reference line to which the data...
statsmodels/statsmodels
[ 8254, 2672, 8254, 2534, 1307898290 ]
def plotting_pos(nobs, a=0.0, b=None): """ Generates sequence of plotting positions Parameters ---------- nobs : int Number of probability points to plot a : float, default 0.0 alpha parameter for the plotting position of an expected order statistic b : float, defaul...
statsmodels/statsmodels
[ 8254, 2672, 8254, 2534, 1307898290 ]
def _do_plot( x, y, dist=None, line=None, ax=None, fmt="b", step=False, **kwargs
statsmodels/statsmodels
[ 8254, 2672, 8254, 2534, 1307898290 ]
def __init__(self, name_): self.name = name_
endlessm/chromium-browser
[ 21, 16, 21, 3, 1435959644 ]
def __eq__(self, other): return self.name == (other if isinstance(other, str) else other.name)
endlessm/chromium-browser
[ 21, 16, 21, 3, 1435959644 ]
def __hash__(self): return hash(str(self))
endlessm/chromium-browser
[ 21, 16, 21, 3, 1435959644 ]
def is_BASE(U, UISC, UGC): return (UISC in [Number, Consonant, Consonant_Head_Letter, #SPEC-DRAFT Consonant_Placeholder, Tone_Letter, Vowel_Independent #SPEC-DRAFT ] or (UGC == Lo and UISC in [Avagraha, Bindu, Consonant_Final, Consonant_Medial, Consonant_Subjoined, Vowel, Vowel_Dependent]))
endlessm/chromium-browser
[ 21, 16, 21, 3, 1435959644 ]
def is_BASE_NUM(U, UISC, UGC): return UISC == Brahmi_Joining_Number
endlessm/chromium-browser
[ 21, 16, 21, 3, 1435959644 ]
def is_CGJ(U, UISC, UGC): return U == 0x034F
endlessm/chromium-browser
[ 21, 16, 21, 3, 1435959644 ]
def is_CONS_FINAL_MOD(U, UISC, UGC): #SPEC-DRAFT return UISC in [Consonant_Final_Modifier, Syllable_Modifier] return UISC == Syllable_Modifier
endlessm/chromium-browser
[ 21, 16, 21, 3, 1435959644 ]
def is_CONS_MOD(U, UISC, UGC): return UISC in [Nukta, Gemination_Mark, Consonant_Killer]
endlessm/chromium-browser
[ 21, 16, 21, 3, 1435959644 ]
def is_CONS_WITH_STACKER(U, UISC, UGC): return UISC == Consonant_With_Stacker
endlessm/chromium-browser
[ 21, 16, 21, 3, 1435959644 ]
def is_HALANT_OR_VOWEL_MODIFIER(U, UISC, UGC): # https://github.com/harfbuzz/harfbuzz/issues/1102 # https://github.com/harfbuzz/harfbuzz/issues/1379 return U in [0x11046, 0x1134D]
endlessm/chromium-browser
[ 21, 16, 21, 3, 1435959644 ]
def is_ZWNJ(U, UISC, UGC): return UISC == Non_Joiner
endlessm/chromium-browser
[ 21, 16, 21, 3, 1435959644 ]