List of attributions for icons etc.
517262
def attributions(self):
        """"""
        attributes_list = list()
        attributes_list.append(self.tr(
            'Edit by Hugo Garduño from The Noun Project'))
        attributes_list.append(self.tr(
            '"Add icon" designed by Michael Zenaty from the Noun Project'))
        attributes_list.append(self.tr(
            '"Remove icon" designed by Dalpat Prajapati from the Noun '
            'Project'))
        attributes_list.append(self.tr('Humanitarian icons source: OCHA'))
        attributes_list.append(self.tr(
            '"Sign post" by Tara Swart from the Noun Project'))
        return attributes_list
1326824
def _list_fonts():
    """"""
    stdout_, stderr = run_subprocess(['fc-list', ':scalable=true', 'family'])
    vals = [v.split(',')[0] for v in stdout_.strip().splitlines(False)]
    return vals
2427
def list():
    ''''''
    for cls, metrics in metric_catalog.items():
        echo(white(cls.__name__))

        for metric in metrics.keys():
            echo('> {0}'.format(metric))
778459
function (attr) {
				if (attr.indexOf('{attribution.') === -1) {
					return attr;
				}
				return attr.replace(/\{attribution.(\w*)\}/,
					function (match, attributionName) {
						return attributionReplacer(providers[attributionName].options.attribution);
					}
				);
			}
595861
function ( )
			{
				this.addCategory ( 
					'01',
					{ 'en' : 'Airport', 'fr' : 'Aéroport', 'nl' : 'Luchthaven', },
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0001"></div>'}) );
				this.addCategory ( 
					'02',
					{ 'en' : 'Ascent', 'fr' : 'Montée', 'nl' : 'Helling', }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0002"></div>'}) );
				this.addCategory ( 
					'03',
					{ 'en' : 'ATM', 'fr' : 'Distributeur de billets', 'nl' : 'Giromaat', },
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0003"></div>'}) );
				this.addCategory ( 
					'04', 
					{ 'en' : 'Attention', 'fr' : 'Attention requise', 'nl' : 'Pas op', },
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0004"></div>'}) );
				this.addCategory ( 
					'05', 
					{ 'en' : 'Bikes admitted', 'fr' : 'Vélos admis', 'nl' : 'Fiets welkom', },
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0005"></div>'}) );
				this.addCategory ( 
					'06', 
					{ 'en' : 'Bus', 'fr' : 'Autobus', 'nl' : 'Bus', }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0006"></div>'}) );
				this.addCategory ( 
					'07', 
					{ 'en' : 'Picture', 'fr' : 'Photo', 'nl' : 'Foto', },
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0007"></div>'}) );
				this.addCategory ( 
					'08', 
					{ 'en' : 'Camping', 'fr' : 'Camping', 'nl' : 'Camping', }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0008"></div>'}) );
				this.addCategory ( 
					'09', 
					{ 'en' : 'Ferry', 'fr' : 'Ferry', 'nl' : 'Veerboot', }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0009"></div>'}) );
				this.addCategory ( 
					'10', 
					{ 'en' : 'Youth hostel', 'fr' : 'Auberge de jeunesse', 'nl' : 'Jeugdherberg', },
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0010"></div>'}) );
				this.addCategory ( 
					'11', 
					{ 'en' : 'Information point', 'fr' : 'Point d\'information', 'nl' : 'Informatiepunt', },
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0011"></div>'}) );
				this.addCategory ( 
					'12', 
					{ 'en' : 'National park', 'fr' : 'Parc national', 'nl' : 'Nationaal park', },
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0012"></div>'}) );
				this.addCategory ( 
					'13', 
					{ 'en' : 'Bike not authorized', 'fr' : 'Vélos mal vus', 'nl' : 'Fiets niet welkom', },
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0013"></div>'}) );
				this.addCategory ( 
					'14', 
					{ 'en' : 'Regional park', 'fr' : 'Parc régional', 'nl' : 'Gewestelijk natuurpark', }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0014"></div>'}) );
				this.addCategory ( 
					'15', 
					{ 'en' : 'Repair', 'fr' : 'Entretien vélo', 'nl' : 'Rijwielhersteller', }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0015"></div>'}) );
				this.addCategory ( 
					'16', 
					{ 'en' : 'Shop', 'fr' : 'Magasin', 'nl' : 'Winkel', },
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0016"></div>'}) );
				this.addCategory ( 
					'17', 
					{ 'en' : 'Help', 'fr' : 'Aide', 'nl' : 'Hulp', }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0017"></div>'}) );
				this.addCategory ( 
					'18', 
					{ 'en' : 'Stop', 'fr' : 'Stop', 'nl' : 'Stop', },
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0018"></div>'}) );
				this.addCategory ( 
					'19', 
					{ 'en' : 'Table', 'fr' : 'Table', 'nl' : 'Tafel', }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0019"></div>'}) );
				this.addCategory ( 
					'20', 
					{ 'en' : 'Toilets', 'fr' : 'Toilettes', 'nl' :'Toilet', }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0020"></div>'}) );
				this.addCategory ( 
					'21', 
					{ 'en' : 'Railway station', 'fr' : 'Gare', 'nl' : 'Treinstation', }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0021"></div>'}) );
				this.addCategory ( 
					'22', 
					{ 'en' : 'Tunnel', 'fr' : 'Tunnel', 'nl' : 'Tunnel', }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0022"></div>'}) );
				this.addCategory ( 
					'23', 
					{ 'en' : 'Water point', 'fr' : 'Point d\'eau', 'nl' : 'Waterpunt', }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0023"></div>'}) );
				this.addCategory ( 
					'24', 
					{ 'en' : 'Bed and breakfast', 'fr' : 'Chambre d\'hotes', 'nl' : 'Bed and Breakfast', }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0024"></div>'}) );
				this.addCategory ( 
					'25', 
					{ 'en' : 'Coffe shop', 'fr' : 'Cafetaria ', 'nl' : 'Cafetaria ', }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0025"></div>'}) );
				this.addCategory ( 
					'26', 
					{ 'en' : 'Restaurant', 'fr' : 'Restaurant', 'nl' : 'Restaurant', }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0026"></div>'}) );
				this.addCategory ( 
					'27', 
					{ 'en' : 'Hostel', 'fr' : 'Hôtel', 'nl' : 'Hotel', }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0027"></div>'}) );
				this.addCategory ( 
					'28', 
					{ 'en' : 'Start', 'fr' : 'Départ', 'nl' : 'Start', }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0028"></div>'}) );
				this.addCategory ( 
					'29', 
					{ 'en' : 'Enter ferry', 'fr' : 'Entrée du ferry' }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0029"></div>'}) );
				this.addCategory ( 
					'30', 
					{ 'en' : 'Exit ferry', 'fr' : 'Sortie du ferry' }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0030"></div>'}) );
				this.addCategory ( 
					'31', 
					{ 'en' : 'Continue', 'fr' : 'Continuer' }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0031"></div>'}) );
				this.addCategory ( 
					'32', 
					{ 'en' : 'Turn slight left', 'fr' : 'Tourner légèrement à gauche' }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0032"></div>'}) );
				this.addCategory ( 
					'33', 
					{ 'en' : 'Turn left', 'fr' : 'Tourner à gauche' }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0033"></div>'}) );
				this.addCategory ( 
					'34', 
					{ 'en' : 'Turn sharp left', 'fr' : 'Tourner fort à gauche' }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0034"></div>'}) );
				this.addCategory ( 
					'35', 
					{ 'en' : 'Turn slight right', 'fr' : 'Tourner légèrement à droite' }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0035"></div>'}) );
				this.addCategory ( 
					'36', 
					{ 'en' : 'Turn right', 'fr' : 'Tourner à droite' }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0036"></div>'}) );
				this.addCategory ( 
					'37', 
					{ 'en' : 'Turn sharp right', 'fr' : 'Tourner fort à droite' }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0037"></div>'}) );
				this.addCategory ( 
					'38', 
					{ 'en' : 'Bike node', 'fr' : 'Point noeud vélo' }, 
					L.divIcon ( { iconSize: [40, 40], iconAnchor: [20, 20], popupAnchor: [0, -20], html : '<div class="Pin-Icon Pin-Category-0038"></div>'}) );
			}
977224
def get_icon_name(self, icon_id: str) -> str:
        """"""
        icon_theme = Gtk.IconTheme.get_default()
        for name in self._icon_names[icon_id]:
            if icon_theme.has_icon(name):
                return name
        return 'not-available'
220571
function renderAttachmentAttributionsField( $args ) {
		unset( $args['label_for'], $args['class'] );
		$this->renderCheckbox(
			[
				'id' => 'attachment_attributions',
				'name' => 'pressbooks_theme_options_' . $this->getSlug(),
				'option' => 'attachment_attributions',
				'value' => ( isset( $this->options['attachment_attributions'] ) ) ? $this->options['attachment_attributions'] : '',
				'label' => $args[0],
			]
		);
	}
173531
protected function getPageTemplateIcons()
    {
        $icons = [];

        $templates = $this->getContainer()->getParameter('networking_init_cms.page.templates');
        foreach ($templates as $key => $template) {
            $icons[$key] = isset($template['icon']) ? $template['icon'] : '';
        }

        return $icons;
    }
1360571
def setup_icons(self, ):
        
        plus_icon = get_icon('glyphicons_433_plus_bright.png', asicon=True)
        self.addnew_tb.setIcon(plus_icon)
1368096
def attribute(self):
        """"""

        paint = {
            "bold": self.ESC + "1" + self.END,
            1: self.ESC + "1" + self.END,
            "dim": self.ESC + "2" + self.END,
            2: self.ESC + "2" + self.END,
            "underlined": self.ESC + "4" + self.END,
            4: self.ESC + "4" + self.END,
            "blink": self.ESC + "5" + self.END,
            5: self.ESC + "5" + self.END,
            "reverse": self.ESC + "7" + self.END,
            7: self.ESC + "7" + self.END,
            "hidden": self.ESC + "8" + self.END,
            8: self.ESC + "8" + self.END,
            "reset": self.ESC + "0" + self.END,
            0: self.ESC + "0" + self.END,
            "res_bold": self.ESC + "21" + self.END,
            21: self.ESC + "21" + self.END,
            "res_dim": self.ESC + "22" + self.END,
            22: self.ESC + "22" + self.END,
            "res_underlined": self.ESC + "24" + self.END,
            24: self.ESC + "24" + self.END,
            "res_blink": self.ESC + "25" + self.END,
            25: self.ESC + "25" + self.END,
            "res_reverse": self.ESC + "27" + self.END,
            27: self.ESC + "27" + self.END,
            "res_hidden": self.ESC + "28" + self.END,
            28: self.ESC + "28" + self.END,
        }
        return paint[self.color]
184972
function(f) {
				f.mime && f.mime !== 'directory' && !addedBadges[f.mime] && addBadgeStyle(f.mime, f.name);
				return templates[list ? 'row' : 'icon']
						.replace(/\{([a-z0-9_]+)\}/g, function(s, e) { 
							return replacement[e] ? replacement[e](f, fm) : (f[e] ? f[e] : ''); 
						});
			}
1247609
def pictures(self):
        """"""

        return [b for b in self.metadata_blocks if b.code == Picture.code]
957421
def logos(check):

    """"""

    valid_checks = get_valid_integrations()
    if check:
        if check in valid_checks:
            checks = [check]
        else:
            echo_info('{} is not an integration.'.format(check))
            return
    else:
        checks = sorted(valid_checks)

    blacklisted_integrations_msg = ''
    count_successful = 0
    error_checks = set()

    for check in checks:
        errors = dict()
        display_name = load_manifest(check).get('display_name', check)
        if check in NOT_TILES:
            blacklisted_integrations_msg += '{} does not currently have an integration tile.\n'.format(display_name)
            continue

        path_to_check_logos = os.path.join(get_root(), check, 'logos')

        for logo, required_size in REQUIRED_IMAGES.items():
            logo_file_name = os.path.join(path_to_check_logos, logo)
            if not os.path.isfile(logo_file_name):
                errors[logo] = '    {} is missing for {}'.format(logo, display_name)
            else:
                size = get_resolution(logo_file_name)
                if size != required_size:
                    errors[logo] = '    {} has improper resolution: {}. Should be {}'.format(logo, size, required_size)

        if errors:
            echo_waiting('{}:'.format(display_name))
            echo_failure('\n'.join(errors.values()))
            error_checks.add(check)
        else:
            count_successful += 1

    blacklisted_integrations_msg = blacklisted_integrations_msg.rstrip()

    if error_checks:
        echo_success(blacklisted_integrations_msg)
        abort()
    elif len(checks) == 1:
        if blacklisted_integrations_msg:
            echo_success(blacklisted_integrations_msg)
        else:
            echo_success('Congrats, all {} logos are valid!'.format(display_name))
    else:
        echo_success(
            'Congrats, all {} checks\' logo files are valid! {} checks were blacklisted and skipped.'.format(
                count_successful, len(NOT_TILES)
            )
        )
376299
def _render(self):
        '''  '''
        cm_chars = self._comp_style(self.icons[_ic] * self._num_complete_chars)
        em_chars = self._empt_style(self.icons[_ie] * self._num_empty_chars)
        return f'{self._first}{cm_chars}{em_chars}{self._last} {self._lbl}'
1302500
function icons (opts, ctx, done) {
    return vfs.src(opts.input)
        .pipe(easysvg.stream({js: false}))
        .on('error', done)
        .pipe(vfs.dest(opts.output))
}
226774
function attributionsContent( $attributions ) {
		$media_attributions = '';
		$html = '';
		$licensing = new Licensing();
		$supported = $licensing->getSupportedTypes();

		if ( $attributions ) {
			// generate appropriate markup for each field
			foreach ( $attributions as $attribution ) {

				// unset empty arrays
				$attribution = array_filter( $attribution, 'strlen' );

				// only process if non-empty
				if ( count( $attribution ) > 0 ) {
					$author_byline = isset( $attribution['author'] ) ? __( ' by ', 'pressbooks' ) : '';
					$adapted_byline = isset( $attribution['adapted'] ) ? __( ' adapted by ', 'pressbooks' ) : '';
					$license_prefix = isset( $attribution['license'] ) ? ' &copy; ' : '';
					$author = isset( $attribution['author'] ) ? $attribution['author'] : '';
					$title = isset( $attribution['title'] ) ? $attribution['title'] : '';
					$adapted_author = isset( $attribution['adapted'] ) ? $attribution['adapted'] : '';

					$media_attributions .= sprintf(
						'<li %1$s>%2$s %3$s %4$s %5$s</li>',
						// about attribute
						( isset( $attribution['title_url'] ) ) ?
							sprintf(
								'about="%s"',
								$attribution['title_url']
							) : '',
						// title attribution
						( isset( $attribution['title_url'] ) ) ?
							sprintf(
								'<a rel="cc:attributionURL" href="%1$s" property="dc:title">%2$s</a>',
								$attribution['title_url'],
								$title
							) : $title,
						// author attribution
						sprintf(
							'%1$s %2$s',
							$author_byline,
							( isset( $attribution['author_url'] ) ) ?
								sprintf(
									'<a rel="dc:creator" href="%1$s" property="cc:attributionName">%2$s</a>',
									$attribution['author_url'],
									$author
								) : $author
						),
						// adapted attribution
						sprintf(
							'%1$s %2$s',
							$adapted_byline,
							( isset( $attribution['adapted_url'] ) ) ?
								sprintf(
									'<a rel="dc:source" href="%1$s">%2$s</a>',
									$attribution['adapted_url'],
									$adapted_author
								) : $adapted_author
						),
						// license attribution
						sprintf(
							'%1$s %2$s',
							$license_prefix,
							( isset( $attribution['license'] ) ) ?
								sprintf(
									'<a rel="license" href="%1$s">%2$s</a>',
									$licensing->getUrlForLicense( $attribution['license'] ),
									$supported[ $attribution['license'] ]['desc']
								) : ''
						)
					);
				}
			}
			if ( ! empty( $media_attributions ) ) {
				$html = sprintf(
					'<div class="media-atttributions" prefix:cc="http://creativecommons.org/ns#" prefix:dc="http://purl.org/dc/terms/"><h3>' . __( 'Media Attributions', 'pressbooks' ) . '</h3><ul>%s</ul></div>',
					$media_attributions
				);
			}
		}

		return $html;
	}
225484
def as_symbols(self):
        
        out = set()
        for name in self.types:
            out.add(('type', name))
        for name in self.enums:
            out.add(('enum', name))
        for name in self.commands:
            out.add(('command', name))
        return out