The official source code repository for the calibre ebook manager
6380 matches across 18 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup/build.py | 618 | except Exception: |
| MEDIUM | setup/build.py | 620 | print(f'Error while executing: {cmdline}\n') |
| LOW | setup/linux-installer.py | 613 | except Exception: |
| LOW | setup/linux-installer.py | 759 | except Exception: |
| LOW | setup/linux-installer.py | 769 | except Exception: |
| LOW | setup/linux-installer.py | 779 | except Exception: |
| LOW | setup/hosting.py | 121 | except Exception: |
| LOW | setup/hosting.py | 171 | except Exception: |
| LOW | setup/upload.py | 282 | except Exception: |
| LOW | setup/upload.py | 291 | except Exception: |
| LOW | setup/build_environment.py | 88 | except Exception: |
| LOW | setup/plugins_mirror.py | 48 | except Exception: |
| LOW | setup/plugins_mirror.py | 289 | except Exception: |
| LOW | setup/plugins_mirror.py | 424 | except Exception: |
| LOW | setup/plugins_mirror.py | 664 | except Exception: |
| MEDIUM | setup/plugins_mirror.py | 160 | def load_plugins_index(): |
| LOW | setup/polib.py | 1508 | except Exception: |
| LOW | setup/__init__.py | 99 | except Exception as err: |
| LOW | setup/win-ci.py | 26 | except Exception as err: |
| LOW | setup/unix-ci.py | 33 | except Exception as err: |
| LOW | setup/linux-installer.sh | 662 | except Exception: |
| LOW | setup/linux-installer.sh | 808 | except Exception: |
| LOW | setup/linux-installer.sh | 818 | except Exception: |
| LOW | setup/linux-installer.sh | 828 | except Exception: |
| LOW | setup/revendor.py | 31 | except Exception as err: |
| LOW | setup/git_commit_msg_hook.py | 48 | except Exception: |
| LOW | setup/resources.py | 185 | except Exception: |
| LOW | setup/resources.py | 198 | except Exception: |
| LOW | setup/parallel_build.py | 34 | except Exception as err: |
| LOW | manual/custom.py | 56 | except Exception as e: |
| LOW | manual/custom.py | 67 | except Exception as e: |
| LOW | manual/custom.py | 86 | except Exception: |
| LOW | manual/template_ref_generate.py | 80 | except Exception as e: |
| LOW | manual/plugin_examples/editor_demo/main.py | 54 | except Exception: |
| LOW | bypy/windows/site.py | 84 | except Exception: |
| LOW | src/calibre/rpdb.py | 96 | except Exception: |
| LOW | src/calibre/startup.py | 87 | except Exception: |
| LOW | src/calibre/startup.py | 157 | except Exception: |
| LOW | src/calibre/startup.py | 162 | except Exception: |
| LOW | src/calibre/startup.py | 196 | except Exception: |
| MEDIUM | src/calibre/startup.py | 126 | def spawnv_passfds(path, args, passfds): |
| LOW | src/calibre/ptempfile.py | 58 | except Exception: |
| LOW | src/calibre/ptempfile.py | 170 | except Exception: |
| MEDIUM | src/calibre/ptempfile.py | 167 | def __del__(self): |
| LOW | src/calibre/constants.py | 58 | except Exception: |
| LOW | src/calibre/constants.py | 95 | except Exception: |
| LOW | src/calibre/constants.py | 111 | except Exception: |
| LOW | src/calibre/constants.py | 193 | except Exception: |
| LOW | src/calibre/constants.py | 347 | except Exception as err: |
| LOW | src/calibre/constants.py | 396 | except Exception: |
| LOW | src/calibre/constants.py | 410 | except Exception: |
| MEDIUM | src/calibre/constants.py | 406 | def cleanup_cdir(): |
| LOW | src/calibre/__init__.py | 276 | except Exception: |
| LOW | src/calibre/__init__.py | 304 | except Exception: |
| LOW | src/calibre/__init__.py | 519 | except Exception: |
| LOW | src/calibre/__init__.py | 523 | except Exception: |
| LOW | src/calibre/__init__.py | 526 | except Exception: |
| LOW | src/calibre/__init__.py | 537 | except Exception: |
| LOW | src/calibre/__init__.py | 540 | except Exception: |
| LOW | src/calibre/__init__.py | 589 | except Exception: |
| 2428 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 62 | |
| LOW | setup/build.py | 89 | |
| LOW | setup/build.py | 128 | |
| LOW | setup/build.py | 243 | |
| LOW | setup/linux-installer.py | 461 | |
| LOW | setup/linux-installer.py | 583 | |
| LOW | setup/hosting.py | 262 | |
| LOW | setup/hosting.py | 183 | |
| LOW | setup/hyphenation.py | 24 | |
| LOW | setup/hyphenation.py | 90 | |
| LOW | setup/check.py | 110 | |
| LOW | setup/upload.py | 320 | |
| LOW | setup/build_environment.py | 20 | |
| LOW | setup/plugins_mirror.py | 103 | |
| LOW | setup/plugins_mirror.py | 173 | |
| LOW | setup/plugins_mirror.py | 216 | |
| LOW | setup/plugins_mirror.py | 362 | |
| LOW | setup/polib.py | 156 | |
| LOW | setup/polib.py | 455 | |
| LOW | setup/polib.py | 989 | |
| LOW | setup/polib.py | 1313 | |
| LOW | setup/polib.py | 1547 | |
| LOW | setup/polib.py | 1636 | |
| LOW | setup/polib.py | 1705 | |
| LOW | setup/wincross.py | 159 | |
| LOW | setup/wincross.py | 218 | |
| LOW | setup/wincross.py | 311 | |
| LOW | setup/wincross.py | 420 | |
| LOW | setup/wincross.py | 54 | |
| LOW | setup/translations.py | 108 | |
| LOW | setup/translations.py | 152 | |
| LOW | setup/translations.py | 344 | |
| LOW | setup/translations.py | 390 | |
| LOW | setup/translations.py | 485 | |
| LOW | setup/translations.py | 531 | |
| LOW | setup/translations.py | 677 | |
| LOW | setup/git_hooks.py | 84 | |
| LOW | setup/win-ci.py | 94 | |
| LOW | setup/vcvars.py | 85 | |
| LOW | setup/unix-ci.py | 269 | |
| LOW | setup/changelog.py | 117 | |
| LOW | setup/piper.py | 24 | |
| LOW | setup/resources.py | 104 | |
| LOW | setup/install.py | 254 | |
| LOW | setup/parallel_build.py | 51 | |
| LOW | setup/parallel_build.py | 76 | |
| LOW | setup/gui.py | 24 | |
| LOW | setup/publish.py | 292 | |
| LOW | manual/custom.py | 339 | |
| LOW | manual/template_ref_generate.py | 53 | |
| LOW | manual/plugin_examples/editor_demo/main.py | 70 | |
| LOW | .github/workflows/macos_crash_report.py | 273 | |
| LOW | .github/workflows/macos_crash_report.py | 308 | |
| LOW | .github/workflows/macos_crash_report.py | 363 | |
| LOW | bypy/macos/__main__.py | 287 | |
| LOW | bypy/macos/__main__.py | 666 | |
| LOW | bypy/macos/__main__.py | 724 | |
| LOW | bypy/linux/site.py | 20 | |
| LOW | bypy/linux/__main__.py | 97 | |
| LOW | src/calibre/rpdb.py | 102 | |
| 1670 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | resources/templates/kobo.js | 114 | function paginateAndMaintainProgress() |
| LOW | resources/templates/kobo.js | 199 | function estimateFirstAnchorForPageNumber(page) |
| LOW | resources/templates/kobo.js | 219 | function estimatePageNumberForAnchor(spanId) |
| LOW | setup/build.py | 680 | def create_sip_build_skeleton(self, src_dir, ext): |
| LOW | setup/linux-installer.py | 583 | def get_https_resource_securely(url, timeout=60, max_redirects=5, ssl_version=None): |
| LOW | setup/linux-installer.py | 802 | def check_for_recent_freetype(): |
| LOW | setup/translations.py | 140 | def get_content_server_strings(self): |
| LOW | setup/translations.py | 390 | def compile_main_translations(self): |
| LOW | setup/translations.py | 485 | def compile_content_server_translations(self): |
| LOW | setup/translations.py | 531 | def _compile_website_translations(self, name='website', threshold=50): |
| LOW | setup/translations.py | 586 | def compile_website_translations(self): |
| LOW | setup/translations.py | 595 | def compile_changelog_translations(self): |
| LOW | setup/translations.py | 598 | def compile_user_manual_translations(self): |
| LOW | setup/translations.py | 677 | def check_for_user_manual_errors(self): |
| LOW | setup/vcvars.py | 17 | def get_program_files_location(which=CSIDL_PROGRAM_FILESX86): |
| LOW | setup/browser_data.py | 13 | def download_from_calibre_server(url): |
| LOW | setup/linux-installer.sh | 632 | def get_https_resource_securely(url, timeout=60, max_redirects=5, ssl_version=None): |
| LOW | setup/linux-installer.sh | 851 | def check_for_recent_freetype(): |
| LOW | manual/custom.py | 225 | def generate_ebook_convert_help(preamble, app): |
| LOW | manual/template_ref_generate.py | 53 | def generate_template_language_help(language, log): |
| LOW | .github/workflows/macos_crash_report.py | 363 | def application_specific_information(self) -> str | None: |
| LOW | .github/workflows/macos_crash_report.py | 426 | def get_crash_report_from_file(crash_report_file: IO) -> CrashReportBase: |
| LOW | bypy/linux/site.py | 20 | def setup_openssl_environment(): |
| LOW | bypy/windows/wix.py | 88 | def get_components_from_files(env): |
| LOW | src/calibre/constants.py | 470 | def get_windows_user_locale_name(): |
| LOW | src/calibre/constants.py | 474 | def get_windows_number_formats(): |
| LOW | src/calibre/gui_launch.py | 48 | def register_with_default_programs(): |
| LOW | src/calibre/gui_launch.py | 77 | def is_possible_media_pack_error(e): |
| LOW | src/calibre/test_build.py | 586 | def test_webengine_worker_main(): |
| LOW | src/calibre/linux.py | 855 | def setup_desktop_integration(self): # {{{ |
| LOW | src/calibre/linux.py | 864 | def do_setup_desktop_integration(self): |
| LOW | src/calibre/scraper/test_fetch_backend.py | 97 | def test_recipe_browser_webengine(self): |
| LOW | src/calibre/ebooks/html_transform_rules.py | 443 | def transform_conversion_book(oeb, opts, serialized_rules): |
| LOW | src/calibre/ebooks/html_transform_rules.py | 563 | def test_html_transform_actions(self): |
| LOW | src/calibre/ebooks/chardet.py | 46 | def strip_encoding_declarations(raw, limit=50*1024, preserve_newlines=False): |
| LOW | src/calibre/ebooks/chardet.py | 65 | def replace_encoding_declarations(raw, enc='utf-8', limit=50*1024): |
| LOW | src/calibre/ebooks/__init__.py | 55 | def extract_cover_from_embedded_svg(html, base, log): |
| LOW | src/calibre/ebooks/__init__.py | 97 | def render_html_svg_workaround(path_to_html, log, width=1200, height=1600, root=''): |
| LOW | src/calibre/ebooks/html_entities.py | 2139 | def entity_to_unicode_in_python(match, exceptions=(), encoding='cp1252', result_exceptions={}): |
| LOW | src/calibre/ebooks/html_entities.py | 2179 | def test_html_entity_replacement(self): |
| LOW | src/calibre/ebooks/css_transform_rules.py | 127 | def parse_css_length_or_number(raw, default_unit=None): |
| LOW | src/calibre/ebooks/lrf/html/convert_from.py | 1774 | def remove_unused_target_blocks(self): |
| LOW | src/calibre/ebooks/lrf/html/table.py | 199 | def text_block_preferred_width(self, tb, debug=False): |
| LOW | src/calibre/ebooks/txt/markdownml.py | 93 | def prepare_string_for_markdown(self, txt): |
| LOW | src/calibre/ebooks/txt/processor.py | 138 | def convert_markdown_with_metadata(txt, title='', extensions=DEFAULT_MD_EXTENSIONS): |
| LOW | src/calibre/ebooks/txt/processor.py | 186 | def separate_paragraphs_single_line(txt): |
| LOW | src/calibre/ebooks/txt/processor.py | 191 | def separate_paragraphs_print_formatted(txt): |
| LOW | src/calibre/ebooks/txt/processor.py | 196 | def separate_hard_scene_breaks(txt): |
| LOW | src/calibre/ebooks/txt/processor.py | 358 | def get_images_from_polyglot_text(txt: str, base_dir: str = '', file_ext: str = 'txt') -> set: |
| LOW | src/calibre/ebooks/txt/textileml.py | 221 | def prepare_string_for_textile(self, txt): |
| LOW | src/calibre/ebooks/mobi/utils.py | 642 | def convert_color_for_font_tag(val): |
| LOW | src/calibre/ebooks/mobi/reader/markup.py | 261 | def insert_images_into_markup(parts, resource_map, log): |
| LOW | src/calibre/ebooks/mobi/reader/mobi6.py | 793 | def warn_about_trailing_entry_corruption(self): |
| LOW | src/calibre/ebooks/mobi/writer8/toc.py | 35 | def find_previous_calibre_inline_toc(oeb): |
| LOW | src/calibre/ebooks/mobi/writer8/index.py | 114 | def calculate_control_bytes_for_each_entry(cls, entries): |
| LOW | src/calibre/ebooks/mobi/writer8/skeleton.py | 131 | def calculate_insert_positions(self): |
| LOW | src/calibre/ebooks/mobi/writer8/tbs.py | 114 | def encode_strands_as_sequences(strands, tbs_type=8): |
| LOW | src/calibre/ebooks/mobi/writer8/tbs.py | 195 | def apply_trailing_byte_sequences(index_table, records, text_record_lengths): |
| LOW | src/calibre/ebooks/mobi/writer8/main.py | 253 | def replace_internal_links_with_placeholders(self): |
| LOW | src/calibre/ebooks/mobi/writer2/indexer.py | 830 | def calculate_trailing_byte_sequences(self): |
| 1081 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | setup/linux-installer.py | 647 | stdout=null, stdin=subprocess.PIPE, close_fds=True, preexec_fn=lambda: |
| HIGH | icons/icns/make_iconsets.py | 145 | subprocess.check_call(['ssh', 'ox', 'sh', '-c', '~/bin/update-calibre && python3 ~/calibre-src/icons/icns/make_i |
| HIGH | src/calibre/linux.py | 461 | _zip_cache_list=( ${{(f)"$(zipinfo -1 $_zip_cache_name 2>/dev/null)"}} ) |
| HIGH | src/calibre/linux.py | 466 | _multi_parts / _zip_cache_list && return 0 |
| HIGH | src/calibre/linux.py | 648 | pattern="$(basename ${pattern} 2> /dev/null)" |
| HIGH | src/calibre/linux.py | 649 | search="$(dirname ${search} 2> /dev/null)" |
| HIGH | src/calibre/linux.py | 657 | listing="$(ebook-device ls ${search} 2>/dev/null)" |
| HIGH | src/calibre/ebooks/covers.py | 294 | mem = {f:getattr(obj, f, null) for f in fields} |
| HIGH | src/calibre/ebooks/covers.py | 299 | if val is null: |
| HIGH | src/calibre/ebooks/render_html.py | 42 | default_log.warn(f'Blocking URL request {qurl.toString()} as it is not for a resource related to the HTML fi |
| HIGH | src/calibre/ebooks/pdf/html_writer.py | 345 | self.log.warn(f'Blocking URL request {qurl.toString()} as it is not for a resource in the book') |
| HIGH | src/calibre/ebooks/oeb/polish/container.py | 531 | ans = self.href_to_name_cache.get(key, null) |
| HIGH | src/calibre/ebooks/oeb/polish/container.py | 532 | if ans is null: |
| HIGH | src/calibre/ebooks/rtf2xml/pict.py | 142 | self.__write_pic_obj.write('{\\rtf1 \n{\\fonttbl\\f0\\null;} \n') |
| HIGH | src/calibre/ebooks/conversion/preprocess.py | 136 | percent is the percentage of lines that should be in a single bucket to return true |
| HIGH | src/calibre/ebooks/metadata/opf3_test.py | 378 | "rec_index": 29, "#extra#": null, |
| HIGH | src/calibre/ebooks/metadata/opf3_test.py | 381 | {"number_format": null}, "search_terms": |
| HIGH | src/calibre/ebooks/metadata/opf3_test.py | 386 | "custom_column_12", "is_multiple": null, |
| HIGH | src/calibre/ebooks/metadata/opf3_test.py | 391 | "rec_index": 26, "#extra#": null, |
| HIGH | src/calibre/ebooks/metadata/opf3_test.py | 400 | "is_multiple": null, "is_category": true}"/> |
| HIGH | src/calibre/ebooks/metadata/opf3_test.py | 405 | "#extra#": null, "colnum": 13, |
| HIGH | src/calibre/ebooks/metadata/opf3_test.py | 432 | "is_multiple": null, "is_category": false}"/> |
| HIGH | src/calibre/ebooks/metadata/opf3_test.py | 436 | "rec_index": 30, "#extra#": null, |
| HIGH | src/calibre/ebooks/metadata/opf3_test.py | 444 | "custom_column_1", "is_multiple": null, |
| HIGH | src/calibre/ebooks/metadata/opf3_test.py | 478 | "rec_index": 34, "#extra#": null, |
| HIGH | src/calibre/ebooks/metadata/opf3_test.py | 486 | "is_multiple": null, "is_category": false}"/> |
| HIGH | src/calibre/ebooks/metadata/opf3_test.py | 490 | "rec_index": 28, "#extra#": null, |
| HIGH | src/calibre/ebooks/metadata/opf3_test.py | 416 | "is_multiple": null, "is_category": false}"/> |
| HIGH | src/calibre/ebooks/metadata/opf3_test.py | 420 | "rec_index": 25, "#extra#": null, |
| HIGH | src/calibre/ebooks/metadata/opf3_test.py | 457 | "custom_column_5", "is_multiple": null, |
| HIGH | src/calibre/ebooks/metadata/opf3_test.py | 462 | "rec_index": 33, "#extra#": null, |
| HIGH | src/calibre/ebooks/metadata/opf3_test.py | 501 | "is_multiple": null, "is_category": true}"/> |
| HIGH | src/calibre/ebooks/metadata/opf3_test.py | 505 | "rec_index": 27, "#extra#": null, |
| HIGH | src/calibre/ebooks/metadata/opf3_test.py | 517 | "is_multiple": null, "is_category": false}"/> |
| HIGH | src/calibre/ebooks/metadata/opf3_test.py | 521 | "rec_index": 22, "#extra#": null, |
| HIGH | src/calibre/ebooks/metadata/opf3_test.py | 537 | "rec_index": 24, "#extra#": null, |
| HIGH | src/calibre/ebooks/metadata/opf3_test.py | 548 | "custom_column_2", "is_multiple": null, |
| HIGH | src/calibre/ebooks/docx/fields.py | 64 | last_option = field_map.get(token[1], null) |
| HIGH | src/calibre/ebooks/docx/fields.py | 73 | ans.pop(null, None) |
| HIGH | src/calibre/web/site_parsers/nytimes.py | 208 | 'null}}', |
| HIGH | src/calibre/utils/forked_map.py | 121 | stack.push(w) |
| HIGH | src/calibre/utils/rapydscript.py | 106 | return null; |
| HIGH | src/calibre/utils/winreg/lib.py | 59 | def __init__(self, name, typ, default=null, in_arg=True): |
| HIGH | src/calibre/utils/winreg/lib.py | 61 | if default is null: |
| HIGH | src/calibre/utils/winreg/dde.py | 99 | def __init__(self, name, typ, default=null, in_arg=True): |
| HIGH | src/calibre/utils/winreg/dde.py | 101 | if default is null: |
| HIGH | src/calibre/gui2/widgets2.py | 385 | self.undo_stack.push(cmd) |
| HIGH | src/calibre/gui2/widgets2.py | 653 | if not qurl.scheme() and qurl.hasFragment() and qurl.toString().startswith('#'): |
| HIGH | src/calibre/gui2/__init__.py | 1557 | cmd = [x.replace('%u', qurl.toString()) for x in opener] |
| HIGH | src/calibre/gui2/comments_editor.py | 1230 | block_len = block.length() # includes block separator |
| HIGH | src/calibre/gui2/comments_editor.py | 1253 | flen = frag.length() |
| HIGH | src/calibre/gui2/qt_file_dialogs.py | 118 | return url.toString() |
| HIGH | src/calibre/gui2/tweak_book/preview.py | 291 | if (settings.bg || settings.fg || settings.link) using_custom_colors = true; |
| HIGH | src/calibre/gui2/tweak_book/preview.py | 292 | if (settings.is_dark_theme && using_custom_colors) { css = ':root { color-scheme: dark; }' + css; } |
| HIGH | src/calibre/gui2/tweak_book/preview.py | 363 | prints('Blocking navigation request to:', url.toString()) |
| HIGH | src/calibre/gui2/tweak_book/check_links.py | 153 | url = qurl.toString() |
| HIGH | src/calibre/gui2/tweak_book/editor/canvas.py | 272 | self.undo_stack.push(Replace(x.toImage(), _('Drop image'), self)) |
| HIGH | src/calibre/gui2/tweak_book/editor/canvas.py | 281 | self.undo_stack.push(Replace(img, _('Drop image'), self)) |
| HIGH | src/calibre/gui2/tweak_book/editor/canvas.py | 372 | self.undo_stack.push(Replace(img, _('Paste image'), self)) |
| HIGH | src/calibre/gui2/tweak_book/editor/canvas.py | 390 | self.undo_stack.push(Trim(self)) |
| 49 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | setup/polib.py | 0 | convenience method to keep the same interface with pofile instances. |
| HIGH | setup/polib.py | 0 | convenience method to keep the same interface with pofile instances. |
| HIGH | setup/polib.py | 0 | convenience method to keep the same interface with pofile instances. |
| HIGH | setup/polib.py | 0 | convenience method to keep the same interface with pofile instances. |
| HIGH | setup/polib.py | 0 | convenience method to keep the same interface with pofile instances. |
| HIGH | src/calibre/ebooks/txt/markdownml.py | 0 | @elem: the element in the etree that we are working on. @stylizer: the style information attached to the element. |
| HIGH | src/calibre/ebooks/txt/textileml.py | 0 | @elem: the element in the etree that we are working on. @stylizer: the style information attached to the element. |
| HIGH | src/calibre/ebooks/htmlz/oeb2html.py | 0 | @elem: the element in the etree that we are working on. @stylizer: the style information attached to the element. |
| HIGH | src/calibre/ebooks/htmlz/oeb2html.py | 0 | @elem: the element in the etree that we are working on. @stylizer: the style information attached to the element. |
| HIGH | src/calibre/ebooks/htmlz/oeb2html.py | 0 | @elem: the element in the etree that we are working on. @stylizer: the style information attached to the element. |
| HIGH | src/calibre/ebooks/mobi/reader/headers.py | 0 | remove all duplicates from vals, while preserving order. |
| HIGH | src/calibre/ebooks/metadata/odt.py | 0 | remove all duplicates from vals, while preserving order. |
| HIGH | src/calibre/ebooks/metadata/opf3.py | 0 | remove all duplicates from vals, while preserving order. |
| HIGH | src/calibre/gui2/tweak_book/preview.py | 0 | remove all duplicates from vals, while preserving order. |
| HIGH | src/calibre/ebooks/rtf2xml/old_rtf.py | 0 | required: 'file'--file to parse 'table_data' -- a dictionary for each table. optional: 'copy'-- whether to make a copy o |
| HIGH | src/calibre/ebooks/rtf2xml/body_styles.py | 0 | required: 'file'--file to parse 'table_data' -- a dictionary for each table. optional: 'copy'-- whether to make a copy o |
| HIGH | src/calibre/ebooks/rtf2xml/table_info.py | 0 | required: 'file'--file to parse 'table_data' -- a dictionary for each table. optional: 'copy'-- whether to make a copy o |
| HIGH | src/calibre/ebooks/rtf2xml/sections.py | 0 | required: 'file'--file to parse optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to |
| HIGH | src/calibre/ebooks/rtf2xml/paragraphs.py | 0 | required: 'file'--file to parse optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to |
| HIGH | src/calibre/ebooks/rtf2xml/add_brackets.py | 0 | required: 'file'--file to parse optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to |
| HIGH | src/calibre/ebooks/rtf2xml/fields_large.py | 0 | required: 'file'--file to parse optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to |
| HIGH | src/calibre/ebooks/rtf2xml/fields_small.py | 0 | required: 'file'--file to parse optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to |
| HIGH | src/calibre/ebooks/rtf2xml/styles.py | 0 | required: 'file'--file to parse optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to |
| HIGH | src/calibre/ebooks/rtf2xml/table.py | 0 | required: 'file'--file to parse optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to |
| HIGH | src/calibre/ebooks/rtf2xml/info.py | 0 | required: 'file'--file to parse optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to |
| HIGH | src/calibre/ebooks/rtf2xml/inline.py | 0 | required: 'file'--file to parse optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to |
| HIGH | src/calibre/ebooks/rtf2xml/colors.py | 0 | required: 'file'--file to parse optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to |
| HIGH | src/calibre/ebooks/rtf2xml/group_borders.py | 0 | form lists. use rtf's own formatting to determine if a paragraph definition is part of a list. use indents to determine |
| HIGH | src/calibre/ebooks/rtf2xml/make_lists.py | 0 | form lists. use rtf's own formatting to determine if a paragraph definition is part of a list. use indents to determine |
| HIGH | src/calibre/ebooks/rtf2xml/group_styles.py | 0 | form lists. use rtf's own formatting to determine if a paragraph definition is part of a list. use indents to determine |
| HIGH | src/calibre/ebooks/rtf2xml/group_borders.py | 0 | required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporar |
| HIGH | src/calibre/ebooks/rtf2xml/list_numbers.py | 0 | required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporar |
| HIGH | src/calibre/ebooks/rtf2xml/convert_to_tags.py | 0 | required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporar |
| HIGH | src/calibre/ebooks/rtf2xml/headings_to_sections.py | 0 | required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporar |
| HIGH | src/calibre/ebooks/rtf2xml/preamble_div.py | 0 | required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporar |
| HIGH | src/calibre/ebooks/rtf2xml/make_lists.py | 0 | required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporar |
| HIGH | src/calibre/ebooks/rtf2xml/group_styles.py | 0 | required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporar |
| HIGH | src/calibre/ebooks/rtf2xml/group_borders.py | 0 | required: nothing return: nothing logic: the self.__end_list is a list of tokens that will force a list to end. likewise |
| HIGH | src/calibre/ebooks/rtf2xml/headings_to_sections.py | 0 | required: nothing return: nothing logic: the self.__end_list is a list of tokens that will force a list to end. likewise |
| HIGH | src/calibre/ebooks/rtf2xml/make_lists.py | 0 | required: nothing return: nothing logic: the self.__end_list is a list of tokens that will force a list to end. likewise |
| HIGH | src/calibre/ebooks/rtf2xml/group_styles.py | 0 | required: nothing return: nothing logic: the self.__end_list is a list of tokens that will force a list to end. likewise |
| HIGH | src/calibre/ebooks/rtf2xml/group_borders.py | 0 | required: line -- the line of current text. return: nothing logic: you are in a list, but in the middle of a paragraph d |
| HIGH | src/calibre/ebooks/rtf2xml/make_lists.py | 0 | required: line -- the line of current text. return: nothing logic: you are in a list, but in the middle of a paragraph d |
| HIGH | src/calibre/ebooks/rtf2xml/group_styles.py | 0 | required: line -- the line of current text. return: nothing logic: you are in a list, but in the middle of a paragraph d |
| HIGH | src/calibre/ebooks/rtf2xml/group_borders.py | 0 | required: self, line returns: nothing logic look for the start of a paragraph definition. if one is found, check if it c |
| HIGH | src/calibre/ebooks/rtf2xml/headings_to_sections.py | 0 | required: self, line returns: nothing logic look for the start of a paragraph definition. if one is found, check if it c |
| HIGH | src/calibre/ebooks/rtf2xml/make_lists.py | 0 | required: self, line returns: nothing logic look for the start of a paragraph definition. if one is found, check if it c |
| HIGH | src/calibre/ebooks/rtf2xml/group_styles.py | 0 | required: self, line returns: nothing logic look for the start of a paragraph definition. if one is found, check if it c |
| HIGH | src/calibre/ebooks/rtf2xml/group_borders.py | 0 | required: nothing returns: original file will be changed logic: |
| HIGH | src/calibre/ebooks/rtf2xml/headings_to_sections.py | 0 | required: nothing returns: original file will be changed logic: |
| HIGH | src/calibre/ebooks/rtf2xml/make_lists.py | 0 | required: nothing returns: original file will be changed logic: |
| HIGH | src/calibre/ebooks/rtf2xml/group_styles.py | 0 | required: nothing returns: original file will be changed logic: |
| HIGH | src/calibre/ebooks/rtf2xml/field_strings.py | 0 | required: field_name -- the first word in the string name --the changed name according to the dictionary line -- the str |
| HIGH | src/calibre/ebooks/rtf2xml/field_strings.py | 0 | required: field_name -- the first word in the string name --the changed name according to the dictionary line -- the str |
| HIGH | src/calibre/ebooks/rtf2xml/field_strings.py | 0 | required: field_name -- the first word in the string name --the changed name according to the dictionary line -- the str |
| HIGH | src/calibre/ebooks/metadata/tag_mapper.py | 0 | remove all duplicates from vals, while preserving order. kmap must be a callable that returns a hashable value for every |
| HIGH | src/calibre/ebooks/metadata/xmp.py | 0 | remove all duplicates from vals, while preserving order. kmap must be a callable that returns a hashable value for every |
| HIGH | src/calibre/ebooks/metadata/author_mapper.py | 0 | remove all duplicates from vals, while preserving order. kmap must be a callable that returns a hashable value for every |
| HIGH | src/calibre/spell/import_from.py | 0 | remove all duplicates from vals, while preserving order. kmap must be a callable that returns a hashable value for every |
| HIGH | src/calibre/gui2/dialogs/opml.py | 0 | remove all duplicates from vals, while preserving order. kmap must be a callable that returns a hashable value for every |
| 12 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup/linux-installer.py | 4 | |
| LOW | setup/linux-installer.py | 4 | |
| LOW | setup/linux-installer.py | 4 | |
| LOW | setup/linux-installer.py | 4 | |
| LOW | setup/commands.py | 73 | |
| LOW | bypy/windows/__main__.py | 18 | |
| LOW | src/calibre/test_build.py | 113 | |
| LOW | src/calibre/ebooks/BeautifulSoup.py | 6 | |
| LOW | src/calibre/ebooks/BeautifulSoup.py | 6 | |
| LOW | src/calibre/ebooks/BeautifulSoup.py | 6 | |
| LOW | src/calibre/ebooks/BeautifulSoup.py | 6 | |
| LOW | src/calibre/ebooks/BeautifulSoup.py | 6 | |
| LOW | src/calibre/ebooks/BeautifulSoup.py | 6 | |
| LOW | src/calibre/ebooks/BeautifulSoup.py | 6 | |
| LOW | src/calibre/ebooks/BeautifulSoup.py | 6 | |
| LOW | src/calibre/ebooks/oeb/polish/tests/main.py | 16 | |
| LOW | src/calibre/ebooks/conversion/plumber.py | 1034 | |
| LOW | src/calibre/ebooks/conversion/plugins/pdf_output.py | 153 | |
| LOW | src/calibre/ebooks/metadata/opf3_test.py | 61 | |
| LOW | src/calibre/ebooks/metadata/opf3_test.py | 61 | |
| LOW | src/calibre/ebooks/metadata/sources/edelweiss.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/edelweiss.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/edelweiss.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/edelweiss.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/openlibrary.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/openlibrary.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/openlibrary.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/openlibrary.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/__init__.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/__init__.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/__init__.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/__init__.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/google_images.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/google_images.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/google_images.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/google_images.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/google.py | 4 | |
| LOW | src/calibre/ebooks/metadata/sources/google.py | 4 | |
| LOW | src/calibre/ebooks/metadata/sources/google.py | 4 | |
| LOW | src/calibre/ebooks/metadata/sources/google.py | 4 | |
| LOW | src/calibre/ebooks/metadata/sources/test.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/test.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/test.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/test.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/prefs.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/prefs.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/prefs.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/prefs.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/covers.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/covers.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/covers.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/covers.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/base.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/base.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/base.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/base.py | 3 | |
| LOW | src/calibre/ebooks/metadata/sources/search_engines.py | 5 | |
| LOW | src/calibre/ebooks/metadata/sources/search_engines.py | 5 | |
| LOW | src/calibre/ebooks/metadata/sources/search_engines.py | 5 | |
| LOW | src/calibre/ebooks/metadata/sources/search_engines.py | 5 | |
| 240 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | Changelog.txt | 1 | # vim: ft=yaml |
| LOW | resources/calibre-portable.sh | 1 | #!/bin/bash |
| LOW | resources/calibre-portable.sh | 21 | # this script file). This structure can also be used when |
| LOW | resources/calibre-portable.sh | 41 | # - calibre-portable.sh to run the Linux version |
| LOW | resources/calibre-portable.sh | 121 | # Create or read configuration file. |
| LOW | resources/calibre-portable.sh | 141 | # |
| LOW | resources/calibre-portable.sh | 161 | # -- library is on a (slow) network drive. Putting the metadata.db |
| LOW | resources/calibre-portable.sh | 181 | # -- at the bottom of the calibre main screen. |
| LOW | resources/calibre-portable.sh | 201 | # |
| LOW | resources/calibre-portable.sh | 221 | ################################################################ |
| LOW | resources/calibre-portable.sh | 241 | # |
| LOW | resources/default_tweaks.py | 1 | #!/usr/bin/env python |
| LOW | resources/default_tweaks.py | 21 | # a number - Assign that number always. The number is not in quotes. Note that 0.0 can be used here. |
| LOW | resources/default_tweaks.py | 41 | # Set this if the completion separator should be appended to the end of the |
| LOW | resources/default_tweaks.py | 61 | # |
| LOW | resources/default_tweaks.py | 81 | 'Software', 'Games', 'Entertainment', 'Media', 'Studios', |
| LOW | resources/default_tweaks.py | 101 | # the list because although it is guaranteed that author and series names are |
| LOW | resources/default_tweaks.py | 121 | # values that are obtained by using a suffix. For example, first.name for an |
| LOW | resources/default_tweaks.py | 141 | # For example, set it to [('authors',0),('title',0)] to sort by |
| LOW | resources/default_tweaks.py | 161 | # mm the minutes with a leading 0 (00 to 59) |
| LOW | resources/default_tweaks.py | 181 | # Control title and series sorting in the library view. If set to |
| LOW | resources/default_tweaks.py | 201 | # title will not be changed. If processing series, then if set to |
| LOW | resources/default_tweaks.py | 261 | 'ell': (r'O\s+', r'I\s+', r'To\s+', r'Ta\s+', r'Tus\s+', r'Tis\s+', |
| LOW | resources/default_tweaks.py | 281 | # metadata management is set to automatic. Collections on SONYs are named |
| LOW | resources/default_tweaks.py | 301 | # merging all of the fields into one set of collections. |
| LOW | resources/default_tweaks.py | 321 | # column lookup names are 'series', '#series_1' and '#series_2'. I want nothing |
| LOW | resources/default_tweaks.py | 341 | sony_collection_name_template = '{value}{category:| (|)}' |
| LOW | resources/default_tweaks.py | 361 | #: Control how tags are applied when copying books to another library |
| LOW | resources/default_tweaks.py | 381 | # The value used for the fuzz distance when trimming a cover. |
| LOW | resources/default_tweaks.py | 401 | #: Language to use when sorting |
| LOW | resources/default_tweaks.py | 421 | public_smtp_relay_delay = 301 |
| LOW | resources/default_tweaks.py | 441 | # various bugs, for instance the minimum width of the toolbar becomes twice |
| LOW | resources/default_tweaks.py | 461 | #: Change the font size of the Book details panel in the interface |
| LOW | resources/default_tweaks.py | 481 | default_tweak_format = None |
| LOW | resources/default_tweaks.py | 501 | # all candidates that contain the text you have already typed. To do this, set |
| LOW | resources/default_tweaks.py | 521 | |
| LOW | resources/default_tweaks.py | 541 | # Examples: |
| LOW | resources/default_tweaks.py | 561 | # Sets the width of the tab stop in the template editor in "average characters". |
| LOW | resources/default_tweaks.py | 581 | # using these functions in composites can be very slow. |
| LOW | resources/default_tweaks.py | 601 | #: East Asian language to use for transliteration |
| LOW | resources/default_tweaks.py | 621 | hide_ai_features = False |
| LOW | resources/csscolorparser.js | 1 | // (c) Dean McNamee <dean@gmail.com>, 2012. |
| LOW | setup/hosting.py | 401 | try: |
| LOW | setup/hosting.py | 421 | # f'root@{server}:{rdir}']) |
| LOW | setup/polib.py | 1281 | # * OC: a file/line occurrence |
| LOW | setup/linux-installer.sh | 481 | # speed up common case w/o wildcards |
| LOW | manual/conf.py | 1 | # calibre documentation build configuration file, created by |
| LOW | manual/plugin_examples/interface_demo/ui.py | 21 | |
| LOW | manual/plugin_examples/interface_demo/ui.py | 41 | # should pass a list of names to get_icons. In this case, get_icons |
| LOW | manual/plugin_examples/editor_demo/main.py | 121 | # We should also be dealing with the font shorthand property and |
| LOW | bypy/run-python.h | 1 | /* |
| LOW | bypy/linux/util.h | 1 | #pragma once |
| LOW | bypy/windows/util.c | 1 | /* |
| LOW | bypy/windows/portable-installer.cpp | 1 | #ifndef UNICODE |
| LOW | bypy/windows/XUnzip.cpp | 1 | // XUnzip.cpp Version 1.3 |
| LOW | bypy/windows/XUnzip.cpp | 21 | // Version 1.1: - Added Unicode support to CreateZip() and ZipAdd() |
| LOW | bypy/windows/XUnzip.cpp | 41 | // Copyright (c) 1990-2002 Info-ZIP. All rights reserved. |
| LOW | bypy/windows/XUnzip.cpp | 61 | // freely, subject to the following restrictions: |
| LOW | bypy/windows/XUnzip.cpp | 81 | // including, but not limited to, different capitalizations), |
| LOW | bypy/windows/XUnzip.cpp | 101 | #include <tchar.h> |
| 254 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | resources/calibre-portable.sh | 54 | # ----------------------------------------------------- |
| MEDIUM | resources/calibre-portable.sh | 60 | # ----------------------------------------------------- |
| MEDIUM | resources/calibre-portable.sh | 370 | # -------------------------------------------------------------- |
| MEDIUM | resources/calibre-portable.sh | 372 | # -------------------------------------------------------------- |
| MEDIUM | resources/calibre-portable.sh | 379 | # --------------------------------------------------------------- |
| MEDIUM | resources/calibre-portable.sh | 381 | # --------------------------------------------------------------- |
| MEDIUM | resources/calibre-portable.sh | 390 | # -------------------------------------------------------- |
| MEDIUM | resources/calibre-portable.sh | 392 | # -------------------------------------------------------- |
| MEDIUM | resources/calibre-portable.sh | 79 | # ------------------------------------------------ |
| MEDIUM | resources/calibre-portable.sh | 81 | # ------------------------------------------------ |
| MEDIUM | resources/calibre-portable.sh | 120 | # ------------------------------------------------ |
| MEDIUM | resources/calibre-portable.sh | 122 | # ------------------------------------------------ |
| MEDIUM | resources/calibre-portable.sh | 272 | # ------------------------------------------------ |
| MEDIUM | resources/calibre-portable.sh | 274 | # ------------------------------------------------ |
| MEDIUM | resources/calibre-portable.sh | 286 | # -------------------------------------------------------------- |
| MEDIUM | resources/calibre-portable.sh | 288 | # -------------------------------------------------------------- |
| MEDIUM | resources/calibre-portable.sh | 305 | # -------------------------------------------------------------- |
| MEDIUM | resources/calibre-portable.sh | 307 | # -------------------------------------------------------------- |
| MEDIUM | resources/calibre-portable.sh | 320 | # -------------------------------------------------------------- |
| MEDIUM | resources/calibre-portable.sh | 322 | # -------------------------------------------------------------- |
| MEDIUM | resources/calibre-portable.sh | 334 | # -------------------------------------------------------------- |
| MEDIUM | resources/calibre-portable.sh | 336 | # -------------------------------------------------------------- |
| MEDIUM | resources/calibre-portable.sh | 354 | # -------------------------------------------------------------- |
| MEDIUM | resources/calibre-portable.sh | 356 | # -------------------------------------------------------------- |
| MEDIUM | manual/conf.py | 33 | # --------------------- |
| MEDIUM | manual/conf.py | 127 | # ----------------------- |
| MEDIUM | manual/conf.py | 227 | # ------------------------ |
| MEDIUM | src/calibre/ebooks/lit/mssha1.py | 13 | # ====================================================================== |
| MEDIUM | src/calibre/ebooks/lit/mssha1.py | 18 | # ====================================================================== |
| MEDIUM | src/calibre/ebooks/lit/mssha1.py | 73 | # ====================================================================== |
| MEDIUM | src/calibre/ebooks/lit/mssha1.py | 76 | # ====================================================================== |
| MEDIUM | src/calibre/ebooks/lit/mssha1.py | 293 | # ====================================================================== |
| MEDIUM | src/calibre/ebooks/lit/mssha1.py | 296 | # ====================================================================== |
| MEDIUM | src/calibre/devices/usbms/device.py | 692 | # ------------------------------------------------------ |
| MEDIUM | src/calibre/devices/usbms/device.py | 790 | # ------------------------------------------------------ |
| MEDIUM | src/calibre/devices/usbms/device.py | 808 | # ------------------------------------------------------ |
| MEDIUM | src/odf/odfmanifest.py | 30 | # ----------------------------------------------------------------------------- |
| MEDIUM | src/odf/odfmanifest.py | 34 | # ----------------------------------------------------------------------------- |
| MEDIUM | src/odf/odfmanifest.py | 85 | # ----------------------------------------------------------------------------- |
| MEDIUM | src/odf/odfmanifest.py | 89 | # ----------------------------------------------------------------------------- |
| MEDIUM | src/odf/odf2moinmoin.py | 313 | # ----------------------------------- |
| MEDIUM | src/odf/odf2moinmoin.py | 387 | # ----------------------------------- |
| MEDIUM | src/odf/odf2xhtml.py | 370 | # ----------------------------------------------------------------------------- |
| MEDIUM | src/odf/odf2xhtml.py | 374 | # ----------------------------------------------------------------------------- |
| MEDIUM | src/odf/odf2xhtml.py | 582 | # -------------------------------------------------- |
| MEDIUM | src/odf/odf2xhtml.py | 584 | # -------------------------------------------------- |
| MEDIUM | src/odf/odf2xhtml.py | 609 | # -------------------------------------------------- |
| MEDIUM | src/odf/odf2xhtml.py | 652 | # ----------------------------------------------------------------------------- |
| MEDIUM | src/odf/odf2xhtml.py | 656 | # ----------------------------------------------------------------------------- |
| MEDIUM | src/odf/odf2xhtml.py | 1582 | # ----------------------------------------------------------------------------- |
| MEDIUM | src/odf/odf2xhtml.py | 1586 | # ----------------------------------------------------------------------------- |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | manual/conf.py | 4 | # This file is execfile()d with the current directory set to its containing dir. |
| MEDIUM | manual/plugin_examples/interface_demo/ui.py | 32 | # This method is called once per plugin, do initial setup here |
| MEDIUM | manual/plugin_examples/editor_demo/main.py | 32 | # Create an action, this will be added to the plugins toolbar and |
| MEDIUM | src/calibre/ebooks/mobi/writer8/index.py | 208 | # Create the Index Header record |
| MEDIUM | src/calibre/ebooks/mobi/writer8/skeleton.py | 200 | # Create the SKEL and Chunk tables |
| MEDIUM | src/calibre/ebooks/mobi/writer8/main.py | 49 | # Create an inline ToC if one does not already exist |
| MEDIUM | src/calibre/ebooks/mobi/writer2/main.py | 435 | # Create the MOBI 6 EXTH |
| MEDIUM | src/calibre/ebooks/fb2/fb2ml.py | 281 | # Create main section if there are no others to create |
| MEDIUM | src/calibre/ebooks/conversion/plumber.py | 1058 | # Create an OEBBook from the input file. The input plugin does all the |
| MEDIUM | src/calibre/ebooks/metadata/mobi.py | 259 | # Create an updated Record0 |
| MEDIUM | src/calibre/ebooks/metadata/ereader.py | 77 | # Create a metadata record for the file if one does not already exist |
| MEDIUM | src/calibre/ebooks/pdb/plucker/reader.py | 409 | # Create a new image the total size of all image |
| MEDIUM | src/calibre/library/database2.py | 165 | # Create the lock to be used to guard access to the metadata writer |
| MEDIUM | src/calibre/library/database2.py | 3045 | # Create the temporary tables to store the ids for books and tags |
| MEDIUM | src/calibre/library/custom_columns.py | 454 | # Create the temporary temp_tables to store the ids for books and tags |
| MEDIUM | src/calibre/library/catalogs/epub_mobi_builder.py | 1487 | # Create a divRunningTag for the next author |
| MEDIUM | src/calibre/library/catalogs/epub_mobi_builder.py | 1639 | # Create a new month anchor |
| MEDIUM | src/calibre/library/catalogs/epub_mobi_builder.py | 1897 | # Create a new day anchor |
| MEDIUM | src/calibre/library/catalogs/epub_mobi_builder.py | 2202 | # Create an anchor from the tag |
| MEDIUM | src/calibre/library/catalogs/epub_mobi_builder.py | 3285 | # Create an NCX article entry for each populated author index letter |
| MEDIUM | src/calibre/library/catalogs/epub_mobi_builder.py | 3365 | # Create an NCX article entry for each date range |
| MEDIUM | src/calibre/library/catalogs/epub_mobi_builder.py | 3399 | # Create an NCX article entry for each populated month |
| MEDIUM | src/calibre/library/catalogs/epub_mobi_builder.py | 3473 | # Create an NCX article entry for each date range |
| MEDIUM | src/calibre/library/catalogs/epub_mobi_builder.py | 3495 | # Create an NCX article entry for each populated day |
| MEDIUM | src/calibre/library/catalogs/epub_mobi_builder.py | 3632 | # Create the OPF tags |
| MEDIUM | src/calibre/library/catalogs/bibtex.py | 352 | # Initialize BibTeX class |
| MEDIUM | src/calibre/utils/certgen.py | 69 | # Create the Certificate Authority |
| MEDIUM | src/calibre/utils/certgen.py | 76 | # Create the server certificate issued by the newly created CA |
| MEDIUM | src/calibre/gui2/complete2.py | 620 | # Create a Qt user property for the current text so that when this widget |
| MEDIUM | src/calibre/gui2/device.py | 1863 | # Define the cleaning function |
| MEDIUM | src/calibre/gui2/tools.py | 342 | # Create the output file |
| MEDIUM | src/calibre/gui2/tools.py | 374 | # Create a temporary copy of the databases to pass into the generation |
| MEDIUM | src/calibre/gui2/__init__.py | 1135 | # This class is present only for backwards compat with third party plugins |
| MEDIUM | src/calibre/gui2/comments_editor.py | 1222 | # Create a cursor at start to find the first block |
| MEDIUM | src/calibre/gui2/tweak_book/editor/widget.py | 635 | # Create the actions that are placed into the editors toolbars |
| MEDIUM | src/calibre/gui2/catalog/catalog_epub_mobi.py | 1342 | # Create a list of prefixes for user selection |
| MEDIUM | src/calibre/gui2/library/alternate_views.py | 102 | # Create a range based selector for each set of contiguous rows |
| MEDIUM | src/calibre/gui2/library/bookshelf_view.py | 690 | # Create a larger image to accommodate the shadow |
| MEDIUM | src/calibre/gui2/library/views.py | 1501 | # Create a range based selector for each set of contiguous rows |
| MEDIUM | src/calibre/gui2/convert/gui_conversion.py | 57 | # Create a minimal OptionParser that we can append to |
| MEDIUM | src/calibre/gui2/store/search/search.py | 325 | # Create the config dialog. It's going to put two config widgets |
| MEDIUM | src/calibre/srv/metadata.py | 300 | # Create the basic tree, containing all top level categories, user |
| MEDIUM | src/calibre/devices/interface.py | 645 | # The following methods are probably called on the GUI thread. Any driver |
| MEDIUM | src/calibre/devices/kindle/driver.py | 624 | # Create the sidecar folder if necessary |
| MEDIUM | src/calibre/devices/folder_device/driver.py | 12 | # This class is added to the standard device plugin chain, so that it can |
| MEDIUM | src/calibre/devices/mtp/test.py | 73 | # Create a folder |
| MEDIUM | src/calibre/devices/mtp/test.py | 82 | # Create a sub-folder |
| MEDIUM | src/calibre/devices/mtp/test.py | 107 | # Create a folder |
| MEDIUM | src/calibre/devices/kobo/driver.py | 930 | # Create a connection to the sqlite database |
| MEDIUM | src/calibre/devices/kobo/driver.py | 2646 | # Create a connection to the sqlite database |
| MEDIUM | src/odf/element.py | 32 | # The following code is pasted form xml.sax.saxutils |
| MEDIUM | src/odf/grammar.py | 51 | # The following code is generated from the RelaxNG schema with this notice: |
| MEDIUM | src/odf/load.py | 70 | # Create the element |
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | src/calibre/gui2/tweak_book/preview.py | 537 | self.view._page.bridge.request_sync.connect(self.request_sync) |
| CRITICAL | src/calibre/gui2/tweak_book/preview.py | 538 | self.view._page.bridge.request_split.connect(self.request_split) |
| CRITICAL | src/calibre/gui2/tweak_book/preview.py | 539 | self.view._page.bridge.live_css_data.connect(self.live_css_data) |
| CRITICAL | src/calibre/gui2/tweak_book/preview.py | 540 | self.view._page.bridge.bridge_ready.connect(self.on_bridge_ready) |
| CRITICAL | src/calibre/gui2/tweak_book/boss.py | 179 | self.gui.central.search_panel.search_triggered.connect(self.search) |
| CRITICAL | src/calibre/gui2/tweak_book/boss.py | 197 | self.gui.central.search_panel.save_search.connect(self.save_search) |
| CRITICAL | src/calibre/gui2/tweak_book/boss.py | 198 | self.gui.central.search_panel.show_saved_searches.connect(self.show_saved_searches) |
| CRITICAL | src/calibre/db/cache.py | 493 | self.backend.fts.pool.initialized.wait() |
| CRITICAL | src/calibre/srv/tests/content.py | 81 | db = server.handler.router.ctx.library_broker.get(None) |
| CRITICAL | src/calibre/srv/tests/ajax.py | 38 | db = server.handler.router.ctx.library_broker.get(None) |
| CRITICAL | src/calibre/srv/tests/ajax.py | 93 | db = server.handler.router.ctx.library_broker.get(None) |
| CRITICAL | src/calibre/srv/tests/ajax.py | 129 | db = server.handler.router.ctx.library_broker.get(None) |
| CRITICAL | src/calibre/srv/tests/ajax.py | 161 | db = server.handler.router.ctx.library_broker.get(None) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | src/calibre/ebooks/pdf/html_writer.py | 602 | |
| MEDIUM | src/calibre/ebooks/pdf/html_writer.py | 604 | |
| MEDIUM | src/calibre/ebooks/pdf/reflow.py | 1188 | |
| MEDIUM | src/calibre/ebooks/pdf/reflow.py | 1189 | |
| MEDIUM | src/calibre/ebooks/pdf/reflow.py | 1191 | |
| MEDIUM | src/calibre/ebooks/pdf/reflow.py | 1193 | |
| MEDIUM | src/calibre/ebooks/pdf/reflow.py | 1194 | |
| MEDIUM | src/calibre/ebooks/pdf/reflow.py | 1195 | |
| MEDIUM | src/calibre/ebooks/pdf/reflow.py | 1205 | |
| MEDIUM | src/calibre/ebooks/pdf/reflow.py | 1208 | |
| MEDIUM | src/calibre/ebooks/pdf/reflow.py | 1213 | |
| MEDIUM | src/calibre/ebooks/pdf/reflow.py | 1214 | |
| MEDIUM | src/calibre/ebooks/pdf/reflow.py | 1347 | |
| MEDIUM | src/calibre/ebooks/rtf2xml/process_tokens.py | 731 | |
| MEDIUM | src/calibre/ebooks/rtf2xml/process_tokens.py | 732 | |
| MEDIUM | src/calibre/ebooks/rtf2xml/process_tokens.py | 734 | |
| MEDIUM | src/calibre/ebooks/metadata/xisbn.py | 38 | |
| MEDIUM | src/calibre/ebooks/metadata/xisbn.py | 39 | |
| MEDIUM | src/calibre/ebooks/metadata/xisbn.py | 40 | |
| MEDIUM | src/calibre/ebooks/metadata/xisbn.py | 41 | |
| MEDIUM | src/calibre/ebooks/metadata/xisbn.py | 43 | |
| MEDIUM | src/calibre/ebooks/metadata/xisbn.py | 44 | |
| MEDIUM | src/calibre/ebooks/metadata/xisbn.py | 45 | |
| MEDIUM | src/calibre/ebooks/metadata/xisbn.py | 51 | |
| MEDIUM | src/calibre/ai/open_router/config.py | 266 | |
| MEDIUM | src/odf/odf2moinmoin.py | 302 | |
| MEDIUM | src/odf/odf2moinmoin.py | 303 | |
| MEDIUM | src/odf/odf2moinmoin.py | 304 | |
| MEDIUM | src/odf/odf2moinmoin.py | 305 | |
| MEDIUM | src/odf/odf2moinmoin.py | 311 | |
| MEDIUM | src/odf/odf2moinmoin.py | 553 | |
| MEDIUM | src/odf/odf2moinmoin.py | 564 | |
| MEDIUM | src/odf/odf2xhtml.py | 791 | |
| MEDIUM | src/odf/odf2xhtml.py | 798 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | resources/calibre-portable.sh | 63 | # Check if user has disabled cleanup |
| LOW | resources/default_tweaks.py | 362 | # Set this to True to ensure that tags in 'Tags to add when adding |
| LOW | src/calibre/prints.py | 76 | # Set base_time to the current monotonic time if it hasn't been set |
| LOW | src/calibre/prints.py | 79 | # Check if debugging is enabled |
| LOW | src/calibre/ebooks/odt/input.py | 202 | # Check if we have only class selectors for this rule |
| LOW | src/calibre/ebooks/mobi/writer8/skeleton.py | 165 | # Set this to a list to enable dumping of the original and rebuilt |
| LOW | src/calibre/ebooks/pdf/reflow.py | 764 | # Set margins to values that will get adjusted |
| LOW | src/calibre/ebooks/oeb/stylizer.py | 392 | # Check if either height or width is not default |
| LOW | src/calibre/ebooks/oeb/transforms/metadata.py | 206 | # Check if the resulting HTML has no content, if so remove it |
| LOW | src/calibre/ebooks/oeb/polish/cover.py | 470 | # Check if the first item in the spine is a simple cover wrapper |
| LOW | src/calibre/ebooks/snb/snbfile.py | 68 | # Read files |
| LOW | src/calibre/ebooks/snb/snbfile.py | 275 | # Write file end mark |
| LOW | src/calibre/ebooks/conversion/plugins/epub_input.py | 183 | # Check if the cover specified in the guide is also |
| LOW | src/calibre/ebooks/conversion/plugins/htmlz_input.py | 51 | # Set index to the first HTML file found if it's not |
| LOW | src/calibre/ebooks/docx/index.py | 35 | # Check if the xe field is contained inside a bookmark with the |
| LOW | src/calibre/ebooks/docx/cleanup.py | 221 | # Check if the first image in the document is possibly a cover |
| LOW | src/calibre/library/database2.py | 669 | # Check if the metadata used to construct paths has changed |
| LOW | src/calibre/utils/zipfile.py | 384 | # Set these to zero because we write them after the file data |
| LOW | src/calibre/utils/zipfile.py | 781 | # Check if we were passed a file-like object |
| LOW | src/calibre/utils/formatter.py | 780 | # Check if we have a keyword-type expression |
| LOW | src/calibre/utils/formatter.py | 810 | # Check if it is a known one. We do this here so error reporting is |
| LOW | src/calibre/utils/img.py | 290 | # Check if we were minified |
| LOW | src/calibre/gui2/momentum_scroll.py | 269 | # Check if we should stop |
| LOW | src/calibre/gui2/__init__.py | 772 | # Set skip_dialog_name to a unique name for this dialog |
| LOW | src/calibre/gui2/__init__.py | 773 | # Set skip_dialog_msg to a message displayed to the user |
| LOW | src/calibre/gui2/tweak_book/editor/syntax/html.py | 123 | # Check if we should still be bold or italic |
| LOW | src/calibre/gui2/tweak_book/editor/smarts/html.py | 835 | # Check if we are in comment/PI/etc. |
| LOW | …bre/gui2/preferences/look_feel_tabs/tb_partitioning.py | 51 | # Check if setting not migrated yet |
| LOW | src/calibre/gui2/tag_browser/ui.py | 92 | # Check if the current cell is a category. If so, show an action for it |
| LOW | src/calibre/gui2/tag_browser/model.py | 1653 | # Check if the new name with the same category already exists. If |
| LOW | src/calibre/gui2/tag_browser/view.py | 468 | # Check if we are moving the focus and we are at the beginning or the |
| LOW | src/calibre/gui2/tag_browser/view.py | 597 | # Check if one of the link or note icons was clicked. If so, deal with |
| LOW | src/calibre/gui2/tag_browser/view.py | 1492 | # Check if this is an intra-hierarchical-category drag/drop |
| LOW | src/calibre/gui2/library/models.py | 119 | # Check if the correct themed icon exists. |
| LOW | src/calibre/gui2/fts/cards.py | 451 | # Assign cards to rows |
| LOW | src/calibre/gui2/dialogs/template_dialog_code_widget.py | 184 | # Check if there is a selection. If not then only Shift-Tab is valid |
| LOW | src/calibre/gui2/dialogs/quickview.py | 574 | # Check if we are in the GridView and there are no values for the |
| LOW | src/calibre/db/cache.py | 1186 | # Check if virtual_libraries_for_books rebuilt its cache. If it did then |
| LOW | src/calibre/db/tables.py | 315 | # Check if all the books with the item are in the restriction. If |
| LOW | src/calibre/db/tables.py | 463 | # Check if all the books with the item are in the restriction. If |
| LOW | src/calibre/devices/interface.py | 88 | # Set this to None if the books on the device are files that the GUI can |
| LOW | src/calibre/devices/kindle/driver.py | 514 | # Check if we need to put the apnx into a sidecar dir |
| LOW | …x_page_generator/generators/accurate_page_generator.py | 69 | # Check if we are starting or stopping a p tag. |
| LOW | src/calibre/devices/smart_device_app/driver.py | 887 | # Check if we have another UUID with the same lpath. If so, remove it |
| LOW | src/calibre/devices/smart_device_app/driver.py | 1082 | # Set up to recheck the sync columns |
| LOW | src/calibre/devices/mtp/unix/driver.py | 112 | # Check if the currently connected device is still present |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | resources/calibre-portable.sh | 31 | # To use your own structure, simply set the variables in the generated configuration file. |
| MEDIUM | src/calibre/ebooks/fb2/__init__.py | 20 | # Try a more robust version (adapted from FBReader sources) |
| LOW | src/calibre/ebooks/comic/input.py | 76 | # levels, in which case simply use the filenames. |
| MEDIUM | src/calibre/ebooks/djvu/djvubzzdec.py | 58 | //C- | any greater extent that may be necessary to utilize further |
| LOW | src/calibre/ebooks/metadata/odt.py | 271 | # if opf.metadata prop is false, just use the first image that |
| MEDIUM | src/calibre/ebooks/metadata/zip.py | 57 | # enough to make it more robust |
| LOW | src/calibre/ebooks/pml/pmlml.py | 372 | # block isn't a real tag we just use |
| LOW | src/calibre/spell/dictionary.py | 170 | # Now just return any dictionary that matches the language, preferring user |
| LOW | src/calibre/utils/zipfile.py | 218 | # end-of-archive record, so just return the end record we were given. |
| MEDIUM | src/calibre/utils/icu.py | 330 | remove_accents = remove_accents_regex # more robust and faster |
| LOW | src/calibre/gui2/markdown_syntax_highlighter.py | 138 | # If empty line no need to check for below elements just return |
| MEDIUM | src/calibre/db/cache.py | 1645 | # We utilize the search restriction cache to speed this up |
| LOW | src/calibre/devices/smart_device_app/driver.py | 1746 | # This is a special case where the user just set a sync column. In |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/calibre/devices/smart_device_app/driver.py | 1714 | # We need to check if our attributes are in the book. If they are not |
| LOW | src/perfect-hashing/frozen/bits/pmh.h | 53 | // Step 0: Bucket max is 2 * sqrt M |
| LOW | src/perfect-hashing/frozen/bits/pmh.h | 176 | // Step 1: Place all of the keys into buckets |
| LOW | src/perfect-hashing/frozen/bits/pmh.h | 179 | // Step 2: Sort the buckets to process the ones with the most items first. |
| LOW | src/perfect-hashing/frozen/bits/pmh.h | 190 | // Step 3: Map the items in buckets into hash tables. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | resources/default_tweaks.py | 191 | # without changing anything is sufficient to change the sort. Or you can use |
| LOW | src/calibre/ebooks/rtf2xml/paragraph_def.py | 554 | tokens. (And don't forget to set the text string to ''!) |
| LOW | src/calibre/devices/__init__.py | 191 | out("Don't forget to send the contents of /tmp/ioreg.txt") |
| LOW | src/calibre/devices/kobo/driver.py | 3895 | # Don't forget to merge that on top of the common dictionary (c.f., https://stackoverflow.com/q/38987) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/calibre/ebooks/metadata/test_author_sort.py | 85 | self.check_all_methods('Jane Doe', |
| LOW | src/tinycss/tests/tokenizing.py | 195 | (r'"Lore\m Ipsum"', [('STRING', 'Lorem Ipsum')]), # or not special |
| LOW | src/tinycss/tests/tokenizing.py | 196 | (r'"Lorem \49psum"', [('STRING', 'Lorem Ipsum')]), |
| LOW | src/tinycss/tests/tokenizing.py | 197 | (r'"Lorem \49 psum"', [('STRING', 'Lorem Ipsum')]), |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/calibre/utils/threadpool.py | 279 | def do_something(data): |
| LOW | src/calibre/gui2/dialogs/choose_library.py | 133 | def perform_action(self, ac, loc): |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | bypy/windows/XUnzip.cpp | 545 | // Usage example: |