code stringlengths 3 6.57k |
|---|
postprocess(self, stream, mimetype, filepath, resources=None) |
self.logger.debug("skipping incorrect mime type: {}".format(mimetype) |
isinstance(filepath, string_types) |
pathlib.Path(filepath) |
filepath.parent.exists() |
filepath.parent.is_dir() |
format(filepath) |
filepath.parent.exists() |
filepath.parent.mkdir(parents=True) |
self.run_postprocess(stream, mimetype, filepath, resources) |
run_postprocess(self, stream, mimetype, filepath, resources) |
NotImplementedError("run_postprocess") |
handle_error(self, msg, err_type, raise_msg=None, log_msg=None) |
handle_error(msg, err_type, self.logger, raise_msg=raise_msg, log_msg=log_msg) |
check_exe_exists(self, name, error_msg) |
exe_exists(name) |
self.handle_error(error_msg, RuntimeError) |
print(IPyPostProcessor.allowed_mimetypes) |
IPyPostProcessor() |
urlsafe_encrypt(key, plaintext, blocksize=16) |
bytes (16) |
pad(text) |
len(text) |
random.StrongRandom() |
join(chr(sr.randint(1, 0xFF) |
range(pad_length - 1) |
chr(0) |
chr(0) |
Random.get_random_bytes(16) |
AES.new(key, AES.MODE_CBC, init_vector) |
cypher.encrypt(pad(str(plaintext) |
base64.urlsafe_b64encode(init_vector + padded) |
urlsafe_decrypt(key, ciphertext) |
base64.urlsafe_b64decode(str(ciphertext) |
AES.new(key, AES.MODE_CBC, ciphertext[:16]) |
cypher.decrypt(ciphertext[16:]) |
padded.rfind(chr(0) |
plugin_loaded() |
init_settings() |
init_settings() |
get_settings() |
sublime.load_settings('img-placeholder.sublime-settings') |
add_on_change('get_settings', get_settings) |
get_settings() |
sublime.load_settings('img-placeholder.sublime-settings') |
settings.get('domains', []) |
settings.get('protocol', 'http:') |
str(settings.get('width', 600) |
str(settings.get('height', 300) |
settings.get('backgroundColor', 'ccc') |
settings.get('textColor', '333') |
settings.get('format', 'png') |
settings.get('text', '') |
pos(view, pos) |
view.sel() |
begin() |
view.substr(sublime.Region(point - pos, point) |
before(view, location) |
view.line(location) |
view.substr(sublime.Region(lineLocation.a, location) |
get_before_text(view) |
view.sel() |
begin() |
view.line(point) |
view.substr(sublime.Region(lineLocation.a, point) |
is_trigger(text, syntax) |
text.lower() |
syntax.lower() |
syntax.find(u'html') |
re.search(r"(?:(?:^|\s) |
if (search) |
in (u'html', u'css', u'less', u'sass', u'scss', u'stylus') |
syntax.find(s) |
re.search(r"(?:(?:^|\s) |
if (search) |
in (u'markdown', u'multimarkdown') |
syntax.find(s) |
re.search(r"(?:(?:^|\s) |
if (search) |
imgHolder(sublime_plugin.EventListener) |
on_query_completions(self, view, prefix, locations) |
view.settings() |
get('syntax') |
before(view, locations[0]) |
is_trigger(before_text, syntax) |
return (completions, sublime.INHIBIT_EXPLICIT_COMPLETIONS) |
MyUrlOpener(urllib.FancyURLopener) |
http_error_default(*args, **kwargs) |
urllib.URLopener.http_error_default(*args, **kwargs) |
__init__(self, name, version=None, organization=None, configure_flags=None, sources=None, revision=None, git_branch=None, source_dir_name=None, override_properties=None, configure=None) |
list(Package.profile.gcc_flags) |
list(Package.profile.gcc_flags) |
list(Package.profile.ld_flags) |
staging (besides binaries and scripts) |
profile (m64 = True) |
arch (64/32) |
self.configure_flags.extend(configure_flags) |
list(self.__class__.default_sources) |
len(self.sources) |
self.extract_organization(self.sources[0]) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.