bugged stringlengths 4 228k | fixed stringlengths 0 96.3M | __index_level_0__ int64 0 481k |
|---|---|---|
def accept(self): col = unicode(self.column_name_box.text()) if not col: return self.simple_error('', _('No lookup name was provided')) if re.match('^\w*$', col) is None or not col[0].isalpha() or col.lower() != col: return self.simple_error('', _('The lookup name must contain only lower case letters, digits and unders... | def accept(self): col = unicode(self.column_name_box.text()) if not col: return self.simple_error('', _('No lookup name was provided')) if re.match('^\w*$', col) is None or not col[0].isalpha() or col.lower() != col: return self.simple_error('', _('The lookup name must contain only lower case letters, digits and unders... | 451,100 |
def accept(self): col = unicode(self.column_name_box.text()) if not col: return self.simple_error('', _('No lookup name was provided')) if re.match('^\w*$', col) is None or not col[0].isalpha() or col.lower() != col: return self.simple_error('', _('The lookup name must contain only lower case letters, digits and unders... | def accept(self): col = unicode(self.column_name_box.text()) if not col: return self.simple_error('', _('No lookup name was provided')) if re.match('^\w*$', col) is None or not col[0].isalpha() or col.lower() != col: return self.simple_error('', _('The lookup name must contain only lower case letters, digits and unders... | 451,101 |
def accept(self): col = unicode(self.column_name_box.text()) if not col: return self.simple_error('', _('No lookup name was provided')) if re.match('^\w*$', col) is None or not col[0].isalpha() or col.lower() != col: return self.simple_error('', _('The lookup name must contain only lower case letters, digits and unders... | def accept(self): col = unicode(self.column_name_box.text()) if not col: return self.simple_error('', _('No lookup name was provided')) if re.match('^\w*$', col) is None or not col[0].isalpha() or col.lower() != col: return self.simple_error('', _('The lookup name must contain only lower case letters, digits and unders... | 451,102 |
def accept(self): col = unicode(self.column_name_box.text()) if not col: return self.simple_error('', _('No lookup name was provided')) if re.match('^\w*$', col) is None or not col[0].isalpha() or col.lower() != col: return self.simple_error('', _('The lookup name must contain only lower case letters, digits and unders... | def accept(self): col = unicode(self.column_name_box.text()) if not col: return self.simple_error('', _('No lookup name was provided')) if re.match('^\w*$', col) is None or not col[0].isalpha() or col.lower() != col: return self.simple_error('', _('The lookup name must contain only lower case letters, digits and unders... | 451,103 |
def mobimlize_content(self, tag, text, bstate, istates): 'Convert text content' if text or tag != 'br': bstate.content = True istate = istates[-1] para = bstate.para if tag in SPECIAL_TAGS and not text: para = para if para is not None else bstate.body elif para is None or tag in ('td', 'th'): body = bstate.body if bsta... | def mobimlize_content(self, tag, text, bstate, istates): 'Convert text content' if text or tag != 'br': bstate.content = True istate = istates[-1] para = bstate.para if tag in SPECIAL_TAGS and not text: para = para if para is not None else bstate.body elif para is None or tag in ('td', 'th'): body = bstate.body if bsta... | 451,104 |
def mobimlize_content(self, tag, text, bstate, istates): 'Convert text content' if text or tag != 'br': bstate.content = True istate = istates[-1] para = bstate.para if tag in SPECIAL_TAGS and not text: para = para if para is not None else bstate.body elif para is None or tag in ('td', 'th'): body = bstate.body if bsta... | def mobimlize_content(self, tag, text, bstate, istates): 'Convert text content' if text or tag != 'br': bstate.content = True istate = istates[-1] para = bstate.para if tag in SPECIAL_TAGS and not text: para = para if para is not None else bstate.body elif para is None or tag in ('td', 'th'): body = bstate.body if bsta... | 451,105 |
def get_book_info(self, entry, mi): entry = entry.find("dl[@title='Informations sur le livre']") for x in entry.getiterator('dt'): if x.text == 'ISBN': isbntext = x.getnext().text_content().replace('-', '') if check_isbn(isbntext): mi.isbn = unicode(isbntext) elif self.repub.match(x.text): mi.publisher = unicode(x.getn... | def get_book_info(self, entry, mi): entry = entry.find("dl[@title='Informations sur le livre']") for x in entry.getiterator('dt'): if x.text == 'ISBN': isbntext = x.getnext().text_content().replace('-', '') if check_isbn(isbntext): mi.isbn = unicode(isbntext) elif self.repub.match(x.text): mi.publisher = unicode(x.getn... | 451,106 |
def __call__(self, data, add_namespace=False): from calibre.ebooks.oeb.base import XHTML_CSS_NAMESPACE data = self.PAGE_PAT.sub('', data) if not add_namespace: return data ans, namespaced = [], False for line in data.splitlines(): ll = line.lstrip() if not (namespaced or ll.startswith('@import') or ll.startswith('@char... | def __call__(self, data, add_namespace=False): from calibre.ebooks.oeb.base import XHTML_CSS_NAMESPACE data = self.PAGE_PAT.sub('', data) if not add_namespace: return data ans, namespaced = [], False for line in data.splitlines(): ll = line.lstrip() if not (namespaced or ll.startswith('@import') or ll.startswith('@char... | 451,107 |
def __call__(self, data, add_namespace=False): from calibre.ebooks.oeb.base import XHTML_CSS_NAMESPACE data = self.PAGE_PAT.sub('', data) if not add_namespace: return data ans, namespaced = [], False for line in data.splitlines(): ll = line.lstrip() if not (namespaced or ll.startswith('@import') or ll.startswith('@char... | def __call__(self, data, add_namespace=False): from calibre.ebooks.oeb.base import XHTML_CSS_NAMESPACE data = self.PAGE_PAT.sub('', data) if not add_namespace: return data ans, namespaced = [], False for line in data.splitlines(): ll = line.lstrip() if not (namespaced or ll.startswith('@import') or ll.startswith('@char... | 451,108 |
def __call__(self, data, add_namespace=False): from calibre.ebooks.oeb.base import XHTML_CSS_NAMESPACE data = self.PAGE_PAT.sub('', data) if not add_namespace: return data ans, namespaced = [], False for line in data.splitlines(): ll = line.lstrip() if not (namespaced or ll.startswith('@import') or ll.startswith('@char... | def __call__(self, data, add_namespace=False): from calibre.ebooks.oeb.base import XHTML_CSS_NAMESPACE data = self.PAGE_PAT.sub('', data) if not add_namespace: return data ans, namespaced = [], False for line in data.splitlines(): ll = line.lstrip() if not (namespaced or ll.startswith('@import') or ll.startswith('@char... | 451,109 |
def __call__(self, data, add_namespace=False): from calibre.ebooks.oeb.base import XHTML_CSS_NAMESPACE data = self.PAGE_PAT.sub('', data) if not add_namespace: return data ans, namespaced = [], False for line in data.splitlines(): ll = line.lstrip() if not (namespaced or ll.startswith('@import') or ll.startswith('@char... | def __call__(self, data, add_namespace=False): from calibre.ebooks.oeb.base import XHTML_CSS_NAMESPACE data = self.PAGE_PAT.sub('', data) if not add_namespace: return data ans, namespaced = [], False for line in data.splitlines(): ll = line.lstrip() if not (namespaced or ll.startswith('@import') or ll.startswith('@char... | 451,110 |
def add_catalog(self, path, title): format = os.path.splitext(path)[1][1:].lower() stream = path if hasattr(path, 'read') else open(path, 'rb') stream.seek(0) matches = self.data.get_matches('title', title) if matches: tag_matches = self.data.get_matches('tags', _('Catalog')) matches = matches.intersection(tag_matches)... | def add_catalog(self, path, title): format = os.path.splitext(path)[1][1:].lower() stream = path if hasattr(path, 'read') else open(path, 'rb') stream.seek(0) matches = self.data.get_matches('title', title) if matches: tag_matches = self.data.get_matches('tags', _('Catalog')) matches = matches.intersection(tag_matches)... | 451,111 |
def set_bottom_padding(self, amount): self.javascript('$("body").css("padding-bottom", "%dpx")' % amount) | def set_bottom_padding(self, amount): self.javascript('$("body").css("padding-bottom", "%dpx")' % amount) | 451,112 |
def run(self): try: self.func() except Exception, err: import traceback try: err = unicode(err) except: err = repr(err) self.error = (err, traceback.format_exc()) | def run(self): try: self.doit() except Exception, err: import traceback try: err = unicode(err) except: err = repr(err) self.error = (err, traceback.format_exc()) | 451,113 |
def __init__(self, window, rows, db): QDialog.__init__(self, window) Ui_MetadataBulkDialog.__init__(self) self.setupUi(self) self.db = db self.ids = [db.id(r) for r in rows] self.box_title.setText('<p>' + _('Editing meta information for <b>%d books</b>') % len(rows)) self.write_series = False self.changed = False | def __init__(self, window, rows, db): QDialog.__init__(self, window) Ui_MetadataBulkDialog.__init__(self) self.setupUi(self) self.db = db self.ids = [db.id(r) for r in rows] self.box_title.setText('<p>' + _('Editing meta information for <b>%d books</b>') % len(rows)) self.write_series = False self.changed = False | 451,114 |
def tag_editor(self): d = TagEditor(self, self.db, None) d.exec_() if d.result() == QDialog.Accepted: tag_string = ', '.join(d.tags) self.tags.setText(tag_string) self.tags.update_tags_cache(self.db.all_tags()) self.remove_tags.update_tags_cache(self.db.all_tags()) | def tag_editor(self, *args): d = TagEditor(self, self.db, None) d.exec_() if d.result() == QDialog.Accepted: tag_string = ', '.join(d.tags) self.tags.setText(tag_string) self.tags.update_tags_cache(self.db.all_tags()) self.remove_tags.update_tags_cache(self.db.all_tags()) | 451,115 |
def accept(self): if len(self.ids) < 1: return QDialog.accept(self) | def accept(self): if len(self.ids) < 1: return QDialog.accept(self) | 451,116 |
def doit(): for id in self.ids: if do_swap_ta: title = self.db.title(id, index_is_id=True) aum = self.db.authors(id, index_is_id=True) if aum: aum = [a.strip().replace('|', ',') for a in aum.split(',')] new_title = authors_to_string(aum) self.db.set_title(id, new_title, notify=False) if title: new_authors = string_to_a... | def doit(): for id in self.ids: if do_swap_ta: title = self.db.title(id, index_is_id=True) aum = self.db.authors(id, index_is_id=True) if aum: aum = [a.strip().replace('|', ',') for a in aum.split(',')] new_title = authors_to_string(aum) self.db.set_title(id, new_title, notify=False) if title: new_authors = string_to_a... | 451,117 |
def __init__(self, listener, opts, actions, parent=None): self.preferences_action, self.quit_action = actions self.spare_servers = [] MainWindow.__init__(self, opts, parent) # Initialize fontconfig in a separate thread as this can be a lengthy # process if run for the first time on this machine from calibre.utils.fonts... | def __init__(self, listener, opts, actions, parent=None): self.preferences_action, self.quit_action = actions self.spare_servers = [] MainWindow.__init__(self, opts, parent) # Initialize fontconfig in a separate thread as this can be a lengthy # process if run for the first time on this machine from calibre.utils.fonts... | 451,118 |
def metadata_downloaded(self, job): ''' Called once metadata has been read for all books on the device. ''' if job.failed: if isinstance(job.exception, ExpatError): error_dialog(self, _('Device database corrupted'), _(''' <p>The database of books on the reader is corrupted. Try the following: <ol> <li>Unplug the reader... | def metadata_downloaded(self, job): ''' Called once metadata has been read for all books on the device. ''' if job.failed: if isinstance(job.exception, ExpatError): error_dialog(self, _('Device database corrupted'), _(''' <p>The database of books on the reader is corrupted. Try the following: <ol> <li>Unplug the reader... | 451,119 |
def location_selected(self, location): ''' Called when a location icon is clicked (e.g. Library) ''' page = 0 if location == 'library' else 1 if location == 'main' else 2 if location == 'carda' else 3 self.stack.setCurrentIndex(page) view = self.memory_view if page == 1 else \ self.card_a_view if page == 2 else \ self.... | def location_selected(self, location): ''' Called when a location icon is clicked (e.g. Library) ''' page = 0 if location == 'library' else 1 if location == 'main' else 2 if location == 'carda' else 3 self.stack.setCurrentIndex(page) view = self.memory_view if page == 1 else \ self.card_a_view if page == 2 else \ self.... | 451,120 |
def browse_matches(self, category=None, cid=None, list_sort=None): if list_sort: list_sort = unquote(list_sort) if not cid: raise cherrypy.HTTPError(404, 'invalid category id: %r'%cid) categories = self.categories_cache() | def browse_matches(self, category=None, cid=None, list_sort=None): if list_sort: list_sort = unquote(list_sort) if not cid: raise cherrypy.HTTPError(404, 'invalid category id: %r'%cid) categories = self.categories_cache() | 451,121 |
def process_pages(self): from calibre.utils.magick import PixelWand for i, wand in enumerate(self.pages): pw = PixelWand() pw.color = 'white' | def process_pages(self): from calibre.utils.magick import PixelWand for i, wand in enumerate(self.pages): pw = PixelWand() pw.color = 'white' | 451,122 |
def convert(self, stream, options, file_ext, log, accelerators): self.log = log self.log('Generating XML') from calibre.ebooks.lrf.lrfparser import LRFDocument d = LRFDocument(stream) d.parse() xml = d.to_xml(write_files=True) if options.verbose > 2: open('lrs.xml', 'wb').write(xml.encode('utf-8')) parser = etree.XMLPa... | def convert(self, stream, options, file_ext, log, accelerators): self.log = log self.log('Generating XML') from calibre.ebooks.lrf.lrfparser import LRFDocument d = LRFDocument(stream) d.parse() xml = d.to_xml(write_files=True) if options.verbose > 2: open('lrs.xml', 'wb').write(xml.encode('utf-8')) parser = etree.XMLPa... | 451,123 |
def ACQUISITION_ENTRY(item, version, db, updated, CFM, CKEYS, prefix): FM = db.FIELD_MAP title = item[FM['title']] if not title: title = _('Unknown') authors = item[FM['authors']] if not authors: authors = _('Unknown') authors = ' & '.join([i.replace('|', ',') for i in authors.split(',')]) extra = [] rating = item[FM['... | def ACQUISITION_ENTRY(item, version, db, updated, CFM, CKEYS, prefix): FM = db.FIELD_MAP title = item[FM['title']] if not title: title = _('Unknown') authors = item[FM['authors']] if not authors: authors = _('Unknown') authors = ' & '.join([i.replace('|', ',') for i in authors.split(',')]) extra = [] rating = item[FM['... | 451,124 |
def ACQUISITION_ENTRY(item, version, db, updated, CFM, CKEYS, prefix): FM = db.FIELD_MAP title = item[FM['title']] if not title: title = _('Unknown') authors = item[FM['authors']] if not authors: authors = _('Unknown') authors = ' & '.join([i.replace('|', ',') for i in authors.split(',')]) extra = [] rating = item[FM['... | def ACQUISITION_ENTRY(item, version, db, updated, CFM, CKEYS, prefix): FM = db.FIELD_MAP title = item[FM['title']] if not title: title = _('Unknown') authors = item[FM['authors']] if not authors: authors = _('Unknown') authors = ' & '.join([i.replace('|', ',') for i in authors.split(',')]) extra = [] rating = item[FM['... | 451,125 |
def ACQUISITION_ENTRY(item, version, db, updated, CFM, CKEYS, prefix): FM = db.FIELD_MAP title = item[FM['title']] if not title: title = _('Unknown') authors = item[FM['authors']] if not authors: authors = _('Unknown') authors = ' & '.join([i.replace('|', ',') for i in authors.split(',')]) extra = [] rating = item[FM['... | def ACQUISITION_ENTRY(item, version, db, updated, CFM, CKEYS, prefix): FM = db.FIELD_MAP title = item[FM['title']] if not title: title = _('Unknown') authors = item[FM['authors']] if not authors: authors = _('Unknown') authors = ' & '.join([i.replace('|', ',') for i in authors.split(',')]) extra = [] rating = item[FM['... | 451,126 |
def ACQUISITION_ENTRY(item, version, db, updated, CFM, CKEYS, prefix): FM = db.FIELD_MAP title = item[FM['title']] if not title: title = _('Unknown') authors = item[FM['authors']] if not authors: authors = _('Unknown') authors = ' & '.join([i.replace('|', ',') for i in authors.split(',')]) extra = [] rating = item[FM['... | def ACQUISITION_ENTRY(item, version, db, updated, CFM, CKEYS, prefix): FM = db.FIELD_MAP title = item[FM['title']] if not title: title = _('Unknown') authors = item[FM['authors']] if not authors: authors = _('Unknown') authors = ' & '.join([i.replace('|', ',') for i in authors.split(',')]) extra = [] rating = item[FM['... | 451,127 |
def ACQUISITION_ENTRY(item, version, db, updated, CFM, CKEYS, prefix): FM = db.FIELD_MAP title = item[FM['title']] if not title: title = _('Unknown') authors = item[FM['authors']] if not authors: authors = _('Unknown') authors = ' & '.join([i.replace('|', ',') for i in authors.split(',')]) extra = [] rating = item[FM['... | def ACQUISITION_ENTRY(item, version, db, updated, CFM, CKEYS, prefix): FM = db.FIELD_MAP title = item[FM['title']] if not title: title = _('Unknown') authors = item[FM['authors']] if not authors: authors = _('Unknown') authors = ' & '.join([i.replace('|', ',') for i in authors.split(',')]) extra = [] rating = item[FM['... | 451,128 |
def ACQUISITION_ENTRY(item, version, db, updated, CFM, CKEYS, prefix): FM = db.FIELD_MAP title = item[FM['title']] if not title: title = _('Unknown') authors = item[FM['authors']] if not authors: authors = _('Unknown') authors = ' & '.join([i.replace('|', ',') for i in authors.split(',')]) extra = [] rating = item[FM['... | def ACQUISITION_ENTRY(item, version, db, updated, CFM, CKEYS, prefix): FM = db.FIELD_MAP title = item[FM['title']] if not title: title = _('Unknown') authors = item[FM['authors']] if not authors: authors = _('Unknown') authors = ' & '.join([i.replace('|', ',') for i in authors.split(',')]) extra = [] rating = item[FM['... | 451,129 |
def update_exth_record(rec): recs.append(rec) if rec[0] in self.original_exth_records: self.original_exth_records.pop(rec[0]) | def update_exth_record(rec): recs.append(rec) if rec[0] in self.original_exth_records: self.original_exth_records.pop(rec[0]) | 451,130 |
def update_exth_record(rec): recs.append(rec) if rec[0] in self.original_exth_records: self.original_exth_records.pop(rec[0]) | def update_exth_record(rec): recs.append(rec) if rec[0] in self.original_exth_records: self.original_exth_records.pop(rec[0]) | 451,131 |
def is_comic(list_of_names): extensions = set([x.rpartition('.')[-1].lower() for x in list_of_names]) return len(extensions) == 1 and iter(extensions).next() in ('jpg', 'jpeg', 'png') | def is_comic(list_of_names): extensions = set([x.rpartition('.')[-1].lower() for x in list_of_names]) comic_extensions = set(['jpg', 'jpeg', 'png']) return len(extensions - comic_extensions) == 0 | 451,132 |
def sanitize_sort_field_name(self, field): field = field.lower().strip() if field not in self.field_metadata.iterkeys(): if field in ('author', 'tag', 'comment'): field += 's' if field == 'date': field = 'timestamp' elif field == 'title': field = 'sort' elif field == 'authors': field = 'author_sort' return field | def sanitize_sort_field_name(self, field): field = field.lower().strip() if field not in self.field_metadata.iterkeys(): if field in ('author', 'tag', 'comment'): field += 's' if field == 'date': field = 'timestamp' elif field == 'title': field = 'sort' elif field == 'authors': field = 'author_sort' return field | 451,133 |
def numberTranslate(self): hundredsNumber = 0 thousandsNumber = 0 hundredsString = "" thousandsString = "" resultString = "" self.suffix = '' | def numberTranslate(self): hundredsNumber = 0 thousandsNumber = 0 hundredsString = "" thousandsString = "" resultString = "" self.suffix = '' | 451,134 |
def __init__(self, db, opts, plugin, report_progress=DummyReporter(), stylesheet="content/stylesheet.css"): self.__opts = opts self.__authors = None self.__basename = opts.basename self.__booksByAuthor = None self.__booksByTitle = None self.__catalogPath = PersistentTemporaryDirectory("_epub_mobi_catalog", prefix='') s... | def __init__(self, db, opts, plugin, report_progress=DummyReporter(), stylesheet="content/stylesheet.css"): self.__opts = opts self.__authors = None self.__basename = opts.basename self.__booksByAuthor = None self.__booksByTitle = None self.__catalogPath = PersistentTemporaryDirectory("_epub_mobi_catalog", prefix='') s... | 451,135 |
def generateHTMLDescriptions(self): # Write each title to a separate HTML file in contentdir self.updateProgressFullStep("'Descriptions'") | def generateHTMLDescriptions(self): # Write each title to a separate HTML file in contentdir self.updateProgressFullStep("'Descriptions'") | 451,136 |
def generateThumbnails(self): # Generate a thumbnail per cover. If a current thumbnail exists, skip # If a cover doesn't exist, use default # Return list of active thumbs | defgenerateThumbnails(self):#Generateathumbnailpercover.Ifacurrentthumbnailexists,skip#Ifacoverdoesn'texist,usedefault#Returnlistofactivethumbs | 451,137 |
def generateThumbnail(self, title, image_dir, thumb_file): import calibre.utils.PythonMagickWand as pw try: img = pw.NewMagickWand() if img < 0: raise RuntimeError('generateThumbnail(): Cannot create wand') # Read the cover if not pw.MagickReadImage(img, title['cover'].encode(filesystem_encoding)): self.opts.log.error(... | def generateThumbnail(self, title, image_dir, thumb_file): import calibre.utils.PythonMagickWand as pw try: img = pw.NewMagickWand() if img < 0: raise RuntimeError('generateThumbnail(): Cannot create wand') # Read the cover if not pw.MagickReadImage(img, title['cover'].encode(filesystem_encoding)): self.opts.log.error(... | 451,138 |
def get_categories(self, sort='name', ids=None, icon_map=None): self.books_list_filter.change([] if not ids else ids) | def get_categories(self, sort='name', ids=None, icon_map=None): self.books_list_filter.change([] if not ids else ids) | 451,139 |
def detect(aBuf): import calibre.ebooks.chardet.universaldetector as universaldetector u = universaldetector.UniversalDetector() u.reset() u.feed(aBuf) u.close() return u.result | def detect(aBuf): import calibre.ebooks.chardet.universaldetector as universaldetector u = universaldetector.UniversalDetector() u.reset() u.feed(aBuf) u.close() return u.result | 451,140 |
def detect(aBuf): import calibre.ebooks.chardet.universaldetector as universaldetector u = universaldetector.UniversalDetector() u.reset() u.feed(aBuf) u.close() return u.result | def detect(aBuf): import calibre.ebooks.chardet.universaldetector as universaldetector u = universaldetector.UniversalDetector() u.reset() u.feed(aBuf) u.close() return u.result | 451,141 |
def apply_pattern(val): try: return self.s_r_obj.sub(self.s_r_func, val) except: return val | def apply_pattern(val): try: return self.s_r_obj.sub(self.s_r_func, val) except: return val | 451,142 |
def apply_pattern(val): try: return self.s_r_obj.sub(self.s_r_func, val) except: return val | def apply_pattern(val): try: return self.s_r_obj.sub(self.s_r_func, val) except: return val | 451,143 |
def clean(x): if isbytestring(x): x = x.decode(preferred_encoding, 'replace') x.replace(u'\0', '') return x | def clean(x): if isbytestring(x): x = x.decode(preferred_encoding, 'replace') x.replace(u'\0', '') return x | 451,144 |
def create_mail(from_, to, subject, text=None, attachment_data=None, attachment_type=None, attachment_name=None): assert text or attachment_data from email.mime.multipart import MIMEMultipart outer = MIMEMultipart() outer['Subject'] = subject outer['To'] = to outer['From'] = from_ outer.preamble = 'You will not see t... | def create_mail(from_, to, subject, text=None, attachment_data=None, attachment_type=None, attachment_name=None): assert text or attachment_data from email.mime.multipart import MIMEMultipart outer = MIMEMultipart() outer['Subject'] = subject outer['To'] = to outer['From'] = from_ outer.preamble = 'You will not see t... | 451,145 |
def get_cover(opf, opf_path, stream): import posixpath from calibre.ebooks import render_html_svg_workaround from calibre.utils.logging import default_log raster_cover = opf.raster_cover stream.seek(0) zf = ZipFile(stream) if raster_cover: base = posixpath.dirname(opf_path) cpath = posixpath.normpath(posixpath.join(bas... | def get_cover(opf, opf_path, stream, reader=None): import posixpath from calibre.ebooks import render_html_svg_workaround from calibre.utils.logging import default_log raster_cover = opf.raster_cover stream.seek(0) zf = ZipFile(stream) if raster_cover: base = posixpath.dirname(opf_path) cpath = posixpath.normpath(posix... | 451,146 |
def get_metadata(stream, extract_cover=True): """ Return metadata as a :class:`MetaInformation` object """ stream.seek(0) reader = OCFZipReader(stream) mi = MetaInformation(reader.opf) if extract_cover: try: cdata = get_cover(reader.opf, reader.opf_path, stream) if cdata is not None: mi.cover_data = ('jpg', cdata) exce... | def get_metadata(stream, extract_cover=True): """ Return metadata as a :class:`MetaInformation` object """ stream.seek(0) reader = OCFZipReader(stream) mi = MetaInformation(reader.opf) if extract_cover: try: cdata = get_cover(reader.opf, reader.opf_path, stream, reader=reader) if cdata is not None: mi.cover_data = ('jp... | 451,147 |
def fget(self): #return '<span style="color:black">%s</span>' % self.__output_profile.missing_char return self.__output_profile.missing_char | deffget(self):#return'<spanstyle="color:black">%s</span>'%self.__output_profile.missing_charreturnself.__output_profile.missing_char | 451,148 |
def fget(self): #return '<span style="color:black">%s</span>' % self.__output_profile.read_char return self.__output_profile.read_char | deffget(self):#return'<spanstyle="color:black">%s</span>'%self.__output_profile.read_charreturnself.__output_profile.read_char | 451,149 |
def _show_data(self, rows, comments): if self.vertical: if comments: rows += u'<tr><td colspan="2">%s</td></tr>'%comments self.setHtml(u'<table>%s</table>'%rows) else: left_pane = u'<table>%s</table>'%rows right_pane = u'<div>%s</div>'%comments self.setHtml(u'<table><tr><td valign="top" ' 'style="padding-right:2em">%s<... | def _show_data(self, rows, comments): if self.vertical: if comments: rows += u'<tr><td colspan="2">%s</td></tr>'%comments self.setHtml(templ%(u'<table>%s</table>'%rows)) else: left_pane = u'<table>%s</table>'%rows right_pane = u'<div>%s</div>'%comments self.setHtml(u'<table><tr><td valign="top" ' 'style="padding-right:... | 451,150 |
def _show_data(self, rows, comments): if self.vertical: if comments: rows += u'<tr><td colspan="2">%s</td></tr>'%comments self.setHtml(u'<table>%s</table>'%rows) else: left_pane = u'<table>%s</table>'%rows right_pane = u'<div>%s</div>'%comments self.setHtml(u'<table><tr><td valign="top" ' 'style="padding-right:2em">%s<... | def _show_data(self, rows, comments): if self.vertical: if comments: rows += u'<tr><td colspan="2">%s</td></tr>'%comments self.setHtml(u'<table>%s</table>'%rows) else: left_pane = u'<table>%s</table>'%rows right_pane = u'<div>%s</div>'%comments self.setHtml(templ%(u'<table><tr><td valign="top" ' 'style="padding-right:2... | 451,151 |
def _show_data(self, rows, comments): if self.vertical: if comments: rows += u'<tr><td colspan="2">%s</td></tr>'%comments self.setHtml(u'<table>%s</table>'%rows) else: left_pane = u'<table>%s</table>'%rows right_pane = u'<div>%s</div>'%comments self.setHtml(u'<table><tr><td valign="top" ' 'style="padding-right:2em">%s<... | def _show_data(self, rows, comments): if self.vertical: if comments: rows += u'<tr><td colspan="2">%s</td></tr>'%comments self.setHtml(u'<table>%s</table>'%rows) else: left_pane = u'<table>%s</table>'%rows right_pane = u'<div>%s</div>'%comments self.setHtml(u'<table><tr><td valign="top" ' 'style="padding-right:2em">%s<... | 451,152 |
def mouseDoubleClickEvent(self, ev): ev.ignore() | defmouseDoubleClickEvent(self,ev):ev.ignore() | 451,153 |
def compute_locale_info_for_parse_date(): try: dt = datetime.strptime('1/5/2000', "%x") except ValueError: try: dt = datetime.strptime('1/5/01', '%x') except: return False if dt.month == 5: return True return False | def compute_locale_info_for_parse_date(): try: dt = datetime.strptime('1/5/2000', "%x") except: try: dt = datetime.strptime('1/5/01', '%x') except: return False if dt.month == 5: return True return False | 451,154 |
def convert(self, stream, options, file_ext, log, accelerators): from calibre.ebooks.metadata.opf2 import OPFCreator from calibre.ebooks.metadata.meta import get_metadata from calibre.ebooks.oeb.base import XLINK_NS NAMESPACES = {'f':FB2NS, 'l':XLINK_NS} log.debug('Parsing XML...') raw = stream.read() try: doc = etree.... | def convert(self, stream, options, file_ext, log, accelerators): from calibre.ebooks.metadata.opf2 import OPFCreator from calibre.ebooks.metadata.meta import get_metadata from calibre.ebooks.oeb.base import XLINK_NS NAMESPACES = {'f':FB2NS, 'l':XLINK_NS} log.debug('Parsing XML...') raw = stream.read() try: doc = etree.... | 451,155 |
def open(self): USBMS.open(self) | def open(self): USBMS.open(self) | 451,156 |
def __init__(self, window, row, db, accepted_callback=None, cancel_all=False): ResizableDialog.__init__(self, window) self.bc_box.layout().setAlignment(self.cover, Qt.AlignCenter|Qt.AlignHCenter) self.cancel_all = False base = unicode(self.author_sort.toolTip()) self.ok_aus_tooltip = '<p>' + textwrap.fill(base+'<br><br... | def __init__(self, window, row, db, accepted_callback=None, cancel_all=False): ResizableDialog.__init__(self, window) self.bc_box.layout().setAlignment(self.cover, Qt.AlignCenter|Qt.AlignHCenter) self.cancel_all = False base = unicode(self.author_sort.toolTip()) self.ok_aus_tooltip = '<p>' + textwrap.fill(base+'<br><br... | 451,157 |
def migrate_preference(name, default): obsolete = '###OBSOLETE--DON\'T USE ME###' ans = self.prefs.get(name, None) if ans is None: ans = prefs[name] if ans in (None, obsolete): ans = default prefs[name] = obsolete self.prefs[name] = ans | def migrate_preference(name, default): obsolete = '###OBSOLETE--DON\'T USE ME###' ans = self.prefs.get(name, None) if ans is None: ans = prefs[name] if ans in (None, obsolete): ans = default prefs[name] = obsolete self.prefs[name] = ans | 451,158 |
def migrate_preference(name, default): obsolete = '###OBSOLETE--DON\'T USE ME###' ans = self.prefs.get(name, None) if ans is None: ans = prefs[name] if ans in (None, obsolete): ans = default prefs[name] = obsolete self.prefs[name] = ans | def migrate_preference(name, default): obsolete = '###OBSOLETE--DON\'T USE ME###' ans = self.prefs.get(name, None) if ans is None: ans = prefs[name] if ans is None: ans = default prefs[name] = obsolete self.prefs[name] = ans | 451,159 |
def migrate_preference(name, default): obsolete = '###OBSOLETE--DON\'T USE ME###' ans = self.prefs.get(name, None) if ans is None: ans = prefs[name] if ans in (None, obsolete): ans = default prefs[name] = obsolete self.prefs[name] = ans | def migrate_preference(name, default): obsolete = '###OBSOLETE--DON\'T USE ME###' ans = self.prefs.get(name, None) if ans is None: ans = prefs[name] if ans in (None, obsolete): ans = default prefs[name] = obsolete self.prefs[name] = ans | 451,160 |
def book_on_device(self, id, format=None, reset=False): loc = [None, None, None] | def book_on_device(self, id, format=None, reset=False): loc = [None, None, None] | 451,161 |
def book_on_device(self, id, format=None, reset=False): loc = [None, None, None] | def book_on_device(self, id, format=None, reset=False): loc = [None, None, None] | 451,162 |
def stringFromInt(self, intToTranslate): # Convert intToTranslate to string # intToTranslate is a three-digit number | def stringFromInt(self, intToTranslate): # Convert intToTranslate to string # intToTranslate is a three-digit number | 451,163 |
def generateNCXByTags(self, tocTitle): # Create an NCX section for 'By Genre' # Add each genre as an article # 'tag', 'file', 'authors' | def generateNCXByTags(self, tocTitle): # Create an NCX section for 'By Genre' # Add each genre as an article # 'tag', 'file', 'authors' | 451,164 |
def generateSortTitle(self, title): # Convert the actual title to a string suitable for sorting. # Convert numbers to strings, ignore leading stop words # The 21-Day Consciousness Cleanse | def generateSortTitle(self, title): # Convert the actual title to a string suitable for sorting. # Convert numbers to strings, ignore leading stop words # The 21-Day Consciousness Cleanse | 451,165 |
def generateSortTitle(self, title): # Convert the actual title to a string suitable for sorting. # Convert numbers to strings, ignore leading stop words # The 21-Day Consciousness Cleanse | def generateSortTitle(self, title): # Convert the actual title to a string suitable for sorting. # Convert numbers to strings, ignore leading stop words # The 21-Day Consciousness Cleanse | 451,166 |
def get_collections(self, collection_attributes): from calibre.devices.usbms.driver import debug_print debug_print('Starting get_collections:', prefs['manage_device_metadata']) collections = {} series_categories = set([]) # This map of sets is used to avoid linear searches when testing for # book equality collections_l... | def get_collections(self, collection_attributes): from calibre.devices.usbms.driver import debug_print debug_print('Starting get_collections:', prefs['manage_device_metadata']) collections = {} series_categories = set([]) # This map of sets is used to avoid linear searches when testing for # book equality collections_l... | 451,167 |
def line_count(self): max_lines = 0 for c in self.columns: max_lines = max(max_lines, len(c)) return max_lines | defline_count(self):max_lines=0forcinself.columns:max_lines=max(max_lines,len(c))returnmax_lines | 451,168 |
def coalesce_regions(self): # find contiguous sets of small regions # absorb into a neighboring region (prefer the one with number of cols # closer to the avg number of cols in the set, if equal use larger # region) # merge contiguous regions that can contain each other '''absorbed = set([]) found = True while found: f... | def coalesce_regions(self): # find contiguous sets of small regions # absorb into a neighboring region (prefer the one with number of cols # closer to the avg number of cols in the set, if equal use larger # region) # merge contiguous regions that can contain each otherfound = True while found: found = False for i, reg... | 451,169 |
def coalesce_regions(self): # find contiguous sets of small regions # absorb into a neighboring region (prefer the one with number of cols # closer to the avg number of cols in the set, if equal use larger # region) # merge contiguous regions that can contain each other '''absorbed = set([]) found = True while found: f... | def coalesce_regions(self): # find contiguous sets of small regions # absorb into a neighboring region (prefer the one with number of cols # closer to the avg number of cols in the set, if equal use larger # region) # merge contiguous regions that can contain each other '''absorbed = set([]) found = True while found: f... | 451,170 |
def _run(self): self.key = get_isbndb_key() if not self.key: self.key = None self.fetched_metadata = {} self.failures = {} with self.worker: for id, mi in self.metadata.items(): args = {} if mi.isbn: args['isbn'] = mi.isbn else: if not mi.title: self.failures[id] = \ (str(id), _('Book has neither title nor ISBN')) cont... | def _run(self): self.key = get_isbndb_key() if not self.key: self.key = None self.fetched_metadata = {} self.failures = {} with self.worker: for id, mi in self.metadata.items(): args = {} if mi.isbn: args['isbn'] = mi.isbn else: if not mi.title or mi.title == _('Unknown'): self.failures[id] = \ (str(id), _('Book has ne... | 451,171 |
def _run(self): self.key = get_isbndb_key() if not self.key: self.key = None self.fetched_metadata = {} self.failures = {} with self.worker: for id, mi in self.metadata.items(): args = {} if mi.isbn: args['isbn'] = mi.isbn else: if not mi.title: self.failures[id] = \ (str(id), _('Book has neither title nor ISBN')) cont... | def _run(self): self.key = get_isbndb_key() if not self.key: self.key = None self.fetched_metadata = {} self.failures = {} with self.worker: for id, mi in self.metadata.items(): args = {} if mi.isbn: args['isbn'] = mi.isbn else: if not mi.title: self.failures[id] = \ (str(id), _('Book has neither title nor ISBN')) cont... | 451,172 |
def force_int(raw): return int(re.search(r'([0-9+-]+)', raw).group(1)) | def force_int(raw): return int(re.search(r'([0-9+-]+)', raw).group(1)) | 451,173 |
def sectionize_chapters(self, text): text = re.sub(r'(?imsu)(?P<anchor><a\s+id="calibre_link-\d+"\s*/>)\s*(?P<strong>(<p>)*\s*<strong>.+?</strong>\s*(</p>)*)', lambda mo: '</section><section>%s<title>%s</title>' % (mo.group('anchor'), mo.group('strong')), text) text = re.sub(r'(?imsu)<p>\s*(?P<anchor><a\s+id="calibre_l... | def sectionize_chapters(self, text): def remove_p(t): t = t.replace('<p>', '') t = t.replace('</p>', '') return t text = re.sub(r'(?imsu)(<p>)\s*(?P<anchor><a\s+id="calibre_link-\d+"\s*/>)\s*(</p>)\s*(<p>)\s*(?P<strong><strong>.+?</strong>)\s*(</p>)', lambda mo: '</section><section>%s<title><p>%s</p></title>' % (mo.gro... | 451,174 |
def numberTranslate(self): hundredsNumber = 0 thousandsNumber = 0 hundredsString = "" thousandsString = "" resultString = "" | def numberTranslate(self): hundredsNumber = 0 thousandsNumber = 0 hundredsString = "" thousandsString = "" resultString = "" | 451,175 |
def generateSortTitle(self, title): # Convert the actual title to a string suitable for sorting. # Convert numbers to strings, ignore leading stop words # The 21-Day Consciousness Cleanse | def generateSortTitle(self, title): # Convert the actual title to a string suitable for sorting. # Convert numbers to strings, ignore leading stop words # The 21-Day Consciousness Cleanse | 451,176 |
def convert(self, stream, options, file_ext, log, accelerators): from calibre.ebooks.metadata.opf2 import OPFCreator from calibre.ebooks.metadata.meta import get_metadata from calibre.ebooks.oeb.base import XLINK_NS NAMESPACES = {'f':FB2NS, 'l':XLINK_NS} log.debug('Parsing XML...') raw = stream.read() try: doc = etree.... | def convert(self, stream, options, file_ext, log, accelerators): from calibre.ebooks.metadata.opf2 import OPFCreator from calibre.ebooks.metadata.meta import get_metadata from calibre.ebooks.oeb.base import XLINK_NS, XHTML_NS NAMESPACES = {'f':FB2NS, 'l':XLINK_NS} log.debug('Parsing XML...') raw = stream.read() try: do... | 451,177 |
def convert(self, stream, options, file_ext, log, accelerators): from calibre.ebooks.metadata.opf2 import OPFCreator from calibre.ebooks.metadata.meta import get_metadata from calibre.ebooks.oeb.base import XLINK_NS NAMESPACES = {'f':FB2NS, 'l':XLINK_NS} log.debug('Parsing XML...') raw = stream.read() try: doc = etree.... | def convert(self, stream, options, file_ext, log, accelerators): from calibre.ebooks.metadata.opf2 import OPFCreator from calibre.ebooks.metadata.meta import get_metadata from calibre.ebooks.oeb.base import XLINK_NS NAMESPACES = {'f':FB2NS, 'l':XLINK_NS} log.debug('Parsing XML...') raw = stream.read() try: doc = etree.... | 451,178 |
def _extract_member(self, member, targetpath, pwd): """Extract the ZipInfo object 'member' to a physical file on the path targetpath. """ # build the destination pathname, replacing # forward slashes to platform specific separators. if targetpath[-1:] == "/": targetpath = targetpath[:-1] | def _extract_member(self, member, targetpath, pwd): """Extract the ZipInfo object 'member' to a physical file on the path targetpath. """ # build the destination pathname, replacing # forward slashes to platform specific separators. if targetpath[-1:] == "/": targetpath = targetpath[:-1] | 451,179 |
def _extract_member(self, member, targetpath, pwd): """Extract the ZipInfo object 'member' to a physical file on the path targetpath. """ # build the destination pathname, replacing # forward slashes to platform specific separators. if targetpath[-1:] == "/": targetpath = targetpath[:-1] | def _extract_member(self, member, targetpath, pwd): """Extract the ZipInfo object 'member' to a physical file on the path targetpath. """ # build the destination pathname, replacing # forward slashes to platform specific separators. if targetpath[-1:] == "/": targetpath = targetpath[:-1] | 451,180 |
def _extract_member(self, member, targetpath, pwd): """Extract the ZipInfo object 'member' to a physical file on the path targetpath. """ # build the destination pathname, replacing # forward slashes to platform specific separators. if targetpath[-1:] == "/": targetpath = targetpath[:-1] | def _extract_member(self, member, targetpath, pwd): """Extract the ZipInfo object 'member' to a physical file on the path targetpath. """ # build the destination pathname, replacing # forward slashes to platform specific separators. if targetpath[-1:] == "/": targetpath = targetpath[:-1] | 451,181 |
def _extract_member(self, member, targetpath, pwd): """Extract the ZipInfo object 'member' to a physical file on the path targetpath. """ # build the destination pathname, replacing # forward slashes to platform specific separators. if targetpath[-1:] == "/": targetpath = targetpath[:-1] | def _extract_member(self, member, targetpath, pwd): """Extract the ZipInfo object 'member' to a physical file on the path targetpath. """ # build the destination pathname, replacing # forward slashes to platform specific separators. if targetpath[-1:] == "/": targetpath = targetpath[:-1] | 451,182 |
def safe_replace(zipstream, name, datastream): ''' Replace a file in a zip file in a safe manner. This proceeds by extracting and re-creating the zipfile. This is neccessary because :method:`ZipFile.replace` sometimes created corrupted zip files. :param zipstream: Stream from a zip file :param name: The name of... | def safe_replace(zipstream, name, datastream): ''' Replace a file in a zip file in a safe manner. This proceeds by extracting and re-creating the zipfile. This is neccessary because :method:`ZipFile.replace` sometimes created corrupted zip files. :param zipstream: Stream from a zip file :param name: The name of... | 451,183 |
def data(self, index, role): if not index.isValid(): return NONE if index.internalId() == 0: if role == Qt.DisplayRole: category = self.categories[index.row()] return QVariant(_("%(plugin_type)s %(plugins)s")%\ dict(plugin_type=category, plugins=_('plugins'))) else: plugin = self.index_to_plugin(index) if role == Qt.Di... | def data(self, index, role): if not index.isValid(): return NONE if index.internalId() == 0: if role == Qt.DisplayRole: category = self.categories[index.row()] return QVariant(_("%(plugin_type)s %(plugins)s")%\ dict(plugin_type=category, plugins=_('plugins'))) else: plugin = self.index_to_plugin(index) if role == Qt.Di... | 451,184 |
def load_ebook(self, pathtoebook): if self.iterator is not None: self.save_current_position() self.iterator.__exit__() self.iterator = EbookIterator(pathtoebook) self.open_progress_indicator(_('Loading ebook...')) worker = Worker(target=self.iterator.__enter__) worker.start() while worker.isAlive(): worker.join(0.1) QA... | def load_ebook(self, pathtoebook): if self.iterator is not None: self.save_current_position() self.iterator.__exit__() self.iterator = EbookIterator(pathtoebook) self.open_progress_indicator(_('Loading ebook...')) worker = Worker(target=self.iterator.__enter__) worker.start() while worker.isAlive(): worker.join(0.1) QA... | 451,185 |
def set_current_row(self, row, select=True): if row > -1: h = self.horizontalHeader() for i in range(h.count()): if not h.isSectionHidden(i): index = self.model().index(row, i) self.setCurrentIndex(index) if select: sm = self.selectionModel() sm.select(index, sm.ClearAndSelect|sm.Rows) break | def set_current_row(self, row, select=True): if row > -1: h = self.horizontalHeader() for i in range(h.count()): if not h.isSectionHidden(i): index = self.model().index(row, i) self.setCurrentIndex(index) if select: sm = self.selectionModel() sm.select(index, sm.ClearAndSelect|sm.Rows) break | 451,186 |
def hangcheck(self): if self.fetcher.is_alive() and \ time.time() - self.start_time < self.HANG_TIME: return self._hangcheck.stop() try: if self.fetcher.is_alive(): error_dialog(self, _('Could not find metadata'), _('The metadata download seems to have stalled. ' 'Try again later.')).exec_() self.terminate() return sel... | def hangcheck(self): if self.fetcher.is_alive() and \ time.time() - self.start_time < self.HANG_TIME: return self._hangcheck.stop() try: if self.fetcher.is_alive(): error_dialog(self, _('Could not find metadata'), _('The metadata download seems to have stalled. ' 'Try again later.')).exec_() self.terminate() return sel... | 451,187 |
def generateHTMLDescriptionHeader(self, title): | def generateHTMLDescriptionHeader(self, title): | 451,188 |
def generateHTMLDescriptionHeader(self, title): | def generateHTMLDescriptionHeader(self, title): | 451,189 |
def run(self, path_to_output, opts, db, notification=DummyReporter()): from calibre.utils.logging import Log | def run(self, path_to_output, opts, db, notification=DummyReporter()): from calibre.utils.logging import Log | 451,190 |
def __cmp__(self, other): return cmp(self.title, getattr(other, 'title', '')) | def __cmp__(self, other): return cmp(self.title, getattr(other, 'title', '')) | 451,191 |
def collect_stats(self): if len(self.elements) > 1: gaps = [self.elements[i+1].top - self.elements[i].bottom for i in range(0, len(self.elements)-1)] self.average_line_separation = sum(gaps)/len(gaps) for i, elem in enumerate(self.elements): left_margin = elem.left - self.left elem.indent_fraction = left_margin/self.wi... | def collect_stats(self): if len(self.elements) > 1: gaps = [self.elements[i+1].top - self.elements[i].bottom for i in range(0, len(self.elements)-1)] self.average_line_separation = sum(gaps)/len(gaps) for i, elem in enumerate(self.elements): left_margin = elem.left - self.left elem.indent_fraction = left_margin/self.wi... | 451,192 |
def collect_stats(self): if len(self.elements) > 1: gaps = [self.elements[i+1].top - self.elements[i].bottom for i in range(0, len(self.elements)-1)] self.average_line_separation = sum(gaps)/len(gaps) for i, elem in enumerate(self.elements): left_margin = elem.left - self.left elem.indent_fraction = left_margin/self.wi... | def collect_stats(self): if len(self.elements) > 1: gaps = [self.elements[i+1].top - self.elements[i].bottom for i in range(0, len(self.elements)-1)] self.average_line_separation = sum(gaps)/len(gaps) for i, elem in enumerate(self.elements): left_margin = elem.left - self.left elem.indent_fraction = left_margin/self.wi... | 451,193 |
def linearize(self): self.elements = [] for x in self.columns: self.elements.extend(x) | def linearize(self): self.elements = [] for x in self.columns: self.elements.extend(x) | 451,194 |
def drive_order(self, pnp_id): order = 0 match = re.search(r'REV_.*?&(\d+)', pnp_id) if match is not None: order = int(match.group(1)) return order | def drive_order(self, pnp_id): order = 0 match = re.search(r'REV_.*?&(\d+) if match is not None: order = int(match.group(1)) return order | 451,195 |
def convert(self, stream, options, file_ext, log, accelerators): log.debug("Parsing SNB file...") snbFile = SNBFile() try: snbFile.Parse(stream) except: raise ValueError("Invalid SNB file") if not snbFile.IsValid(): log.debug("Invaild SNB file") raise ValueError("Invalid SNB file") log.debug("Handle meta data ...") fro... | def convert(self, stream, options, file_ext, log, accelerators): log.debug("Parsing SNB file...") snbFile = SNBFile() try: snbFile.Parse(stream) except: raise ValueError("Invalid SNB file") if not snbFile.IsValid(): log.debug("Invaild SNB file") raise ValueError("Invalid SNB file") log.debug("Handle meta data ...") fro... | 451,196 |
def fetch_annotations(self, *args): | def fetch_annotations(self, *args): | 451,197 |
def get_ids_from_selected_rows(): | def get_ids_from_selected_rows(): | 451,198 |
def get_formats(id): formats = db.formats(id, index_is_id=True) fmts = [] if formats: for format in formats.split(','): fmts.append(format.lower()) return fmts | def get_formats(id): formats = db.formats(id, index_is_id=True) fmts = [] if formats: for format in formats.split(','): fmts.append(format.lower()) return fmts | 451,199 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.