Set the style with the given name
964618
function _setStyle(canvas, ctx, params, styleName) {
	if (params[styleName]) {
		if (isFunction(params[styleName])) {
			// Handle functions
			ctx[styleName] = params[styleName].call(canvas, params);
		} else {
			// Handle string values
			ctx[styleName] = params[styleName];
		}
	}
}
334606
def getStyle(self, name, verbose=None):
        

        response=api(url=self.___url+'styles/'+str(name)+'.json', method="GET", verbose=verbose, parse_params=False)
        return response
724303
def set_name(self, name, kind_attr=None):
        
        self.name = name
        self.kind_attr = kind_attr or "{name}_kind".format(name=name)
        if self.cname is None:
            self.cname = name

        return self
226196
public void matchStyles(String name) {
        String value = MiscUtils.getComputedStyle(box.getElement(), name);
        if (value != null) {
            try {
                // we might have a bogus value (e.g. width: -10px). we
                // just let it fail quietly.
                shadow.getElement().getStyle().setProperty(name, value);	
            }
            catch (Exception e) {
                GWT.log("Exception in matchStyles for name="+name+" value="+value, e);
            }
	}
    }
981143
function normalizeProperty( name, value, isStyle )
	{
		var temp = new CKEDITOR.dom.element( 'span' );
		temp [ isStyle ? 'setStyle' : 'setAttribute' ]( name, value );
		return temp[ isStyle ? 'getStyle' : 'getAttribute' ]( name );
	}
660083
def client_setname(self, name):
        """"""
        fut = self.execute(b'CLIENT', b'SETNAME', name)
        return wait_ok(fut)
138335
function maybe_name() {
  skip_horiz_white();
  if (look(ident_pattern_with_dot)) {
    current_tag["name"] = match(ident_pattern_with_dot);
  }
  else if (look(ident_pattern)) {
    current_tag["name"] = match(ident_pattern);
  }
}
442346
def set_color_scheme(name, color_scheme, replace=True):
    """"""
    section = "appearance"
    names = CONF.get("appearance", "names", [])
    for key in sh.COLOR_SCHEME_KEYS:
        option = "%s/%s" % (name, key)
        value = CONF.get(section, option, default=None)
        if value is None or replace or name not in names:
            CONF.set(section, option, color_scheme[key])
    names.append(to_text_string(name))
    CONF.set(section, "names", sorted(list(set(names))))
30621
function (otherStyle, overwrite) {
        if (otherStyle) {
            for (var name in otherStyle) {
                if (otherStyle.hasOwnProperty(name)
                    && (overwrite === true
                        || (
                            overwrite === false
                                ? !this.hasOwnProperty(name)
                                : otherStyle[name] != null
                        )
                    )
                ) {
                    this[name] = otherStyle[name];
                }
            }
        }
    }
614199
def add_style(self, name, fg=None, bg=None, options=None):
        
        style = Style(name)
        if fg is not None:
            style.fg(fg)

        if bg is not None:
            style.bg(bg)

        if options is not None:
            if "bold" in options:
                style.bold()

            if "underline" in options:
                style.underlined()

        self._io.output.formatter.add_style(style)
        self._io.error_output.formatter.add_style(style)
1255498
def set_nb_theme(name):
    
    from IPython.core.display import HTML
    styles_dir = os.path.join(package_dir, 'styles/compiled/')
    css_path = glob('{0}/{1}.css'.format(styles_dir, name))[0]
    customcss = open(css_path, "r").read()

    return HTML(''.join(['<style> ', customcss, ' </style>']))
188142
function applyStyle(str, property, value) {
    var styleDefinition = CONSOLE_STYLES[property][value];

    //No style defined return non modified string
    if (styleDefinition === null) {
        return str;
    }

    return ESCAPE + '[' + styleDefinition[0] + 'm' + str + ESCAPE + '[' + styleDefinition[1] + 'm';
}
1056520
def _set_name(self, name):
        
        if self._is_identifier_quoted(name):
            self._quoted = True
            name = self._trim_quotes(name)

        if "." in name:
            parts = name.split(".", 1)
            self._namespace = parts[0]
            name = parts[1]

        self._name = name
1333875
def _set_name(self, name):
        """"""
        self._service_name = name
        self.__send_to_frontend({"band": "set_name", "name": self._service_name})
280080
def set_name(self, name):
        
        self.name = name
        self.changed_event.emit(self)
596168
public function setTheme($name)
    {
        $this->getResponse()->setThemeName($name);
        $this->getResponse()->getTheme()->setName($name);
    }
842808
def stylize(text, styles, reset=True):
    """"""
    terminator = attr("reset") if reset else ""
    return "{}{}{}".format("".join(styles), text, terminator)