Repository Analysis

kovidgoyal/calibre

The official source code repository for the calibre ebook manager

11.3 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of kovidgoyal/calibre, a Python project with 25,750 GitHub stars. SynthScan v2.0 examined 663,701 lines of code across 1750 source files, recording 6381 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 11.3 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

11.3
Adjusted Score
11.3
Raw Score
100%
Time Factor
2026-08-28
Last Push
25.8K
Stars
Python
Language
663.7K
Lines of Code
1.8K
Files
6.4K
Pattern Hits
2026-08-29
Scan Date
0.11
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 15HIGH 185MEDIUM 458LOW 5723

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 6381 distinct pattern matches across 22 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Excessive Try-Catch Wrapping2495 hits · 2608 pts
SeverityFileLineSnippetContext
LOWsetup/build.py644 except Exception:STRING
MEDIUMsetup/build.py646 print(f'Error while executing: {cmdline}\n')STRING
LOWsetup/linux-installer.py613 except Exception:STRING
LOWsetup/linux-installer.py759 except Exception:STRING
LOWsetup/linux-installer.py769 except Exception:STRING
LOWsetup/linux-installer.py779 except Exception:STRING
LOWsetup/hosting.py120 except Exception:CODE
LOWsetup/hosting.py163 except Exception:CODE
LOWsetup/upload.py265 except Exception:CODE
LOWsetup/upload.py274 except Exception:CODE
LOWsetup/build_environment.py89 except Exception:CODE
LOWsetup/plugins_mirror.py49except Exception:CODE
LOWsetup/plugins_mirror.py118 except Exception:CODE
LOWsetup/plugins_mirror.py125 except Exception:CODE
LOWsetup/plugins_mirror.py338 except Exception:CODE
LOWsetup/plugins_mirror.py350 except Exception:CODE
LOWsetup/plugins_mirror.py499 except Exception:CODE
LOWsetup/plugins_mirror.py745 except Exception:STRING
MEDIUMsetup/plugins_mirror.py194def load_plugins_index():CODE
LOWsetup/polib.py1508 except Exception:CODE
LOWsetup/__init__.py96 except Exception:CODE
LOWsetup/__init__.py113 except Exception as err:CODE
LOWsetup/win-ci.py26 except Exception as err:CODE
LOWsetup/unix-ci.py33 except Exception as err:CODE
LOWsetup/linux-installer.sh662 except Exception:STRING
LOWsetup/linux-installer.sh808 except Exception:STRING
LOWsetup/linux-installer.sh818 except Exception:STRING
LOWsetup/linux-installer.sh828 except Exception:STRING
LOWsetup/revendor.py30 except Exception as err:CODE
LOWsetup/git_commit_msg_hook.py47 except Exception:CODE
LOWsetup/iso_codes.py43 except Exception:CODE
LOWsetup/resources.py203 except Exception:CODE
LOWsetup/resources.py217 except Exception:CODE
LOWsetup/parallel_build.py34 except Exception as err:CODE
LOWmanual/custom.py57 except Exception as e:CODE
LOWmanual/custom.py68 except Exception as e:CODE
LOWmanual/custom.py87 except Exception:CODE
LOWmanual/template_ref_generate.py80 except Exception as e:STRING
LOWmanual/plugin_examples/editor_demo/main.py52 except Exception:CODE
LOWbypy/init_env.py136 except Exception as e:CODE
LOWbypy/windows/site.py84 except Exception:CODE
LOWsrc/calibre/rpdb.py95 except Exception:CODE
LOWsrc/calibre/startup.py95 except Exception:CODE
LOWsrc/calibre/startup.py171 except Exception:CODE
LOWsrc/calibre/startup.py176 except Exception:CODE
LOWsrc/calibre/startup.py211 except Exception:CODE
MEDIUMsrc/calibre/startup.py137def spawnv_passfds(path, args, passfds):CODE
LOWsrc/calibre/ptempfile.py63 except Exception:CODE
LOWsrc/calibre/ptempfile.py234 except Exception:CODE
MEDIUMsrc/calibre/ptempfile.py231def __del__(self):CODE
LOWsrc/calibre/constants.py57except Exception:CODE
LOWsrc/calibre/constants.py94 except Exception:CODE
LOWsrc/calibre/constants.py110 except Exception:CODE
LOWsrc/calibre/constants.py193 except Exception:CODE
LOWsrc/calibre/constants.py347 except Exception as err:CODE
LOWsrc/calibre/constants.py396 except Exception:CODE
LOWsrc/calibre/constants.py411 except Exception:CODE
MEDIUMsrc/calibre/constants.py405def cleanup_cdir():CODE
LOWsrc/calibre/__init__.py305 except Exception:CODE
LOWsrc/calibre/__init__.py335 except Exception:CODE
2435 more matches not shown…
Deep Nesting1430 hits · 1320 pts
SeverityFileLineSnippetContext
LOWsetup.py50CODE
LOWsetup/build.py89CODE
LOWsetup/build.py128CODE
LOWsetup/build.py245CODE
LOWsetup/linux-installer.py461CODE
LOWsetup/linux-installer.py583CODE
LOWsetup/hosting.py234CODE
LOWsetup/hosting.py169CODE
LOWsetup/fmt.py50CODE
LOWsetup/fmt.py82CODE
LOWsetup/hyphenation.py24CODE
LOWsetup/hyphenation.py83CODE
LOWsetup/upload.py304CODE
LOWsetup/build_environment.py20CODE
LOWsetup/plugins_mirror.py129CODE
LOWsetup/plugins_mirror.py208CODE
LOWsetup/plugins_mirror.py253CODE
LOWsetup/plugins_mirror.py281CODE
LOWsetup/plugins_mirror.py435CODE
LOWsetup/polib.py156CODE
LOWsetup/polib.py455CODE
LOWsetup/polib.py989CODE
LOWsetup/polib.py1313CODE
LOWsetup/polib.py1547CODE
LOWsetup/polib.py1636CODE
LOWsetup/polib.py1705CODE
LOWsetup/wincross.py151CODE
LOWsetup/wincross.py209CODE
LOWsetup/wincross.py295CODE
LOWsetup/wincross.py404CODE
LOWsetup/wincross.py53CODE
LOWsetup/translations.py113CODE
LOWsetup/translations.py157CODE
LOWsetup/translations.py371CODE
LOWsetup/translations.py417CODE
LOWsetup/translations.py539CODE
LOWsetup/translations.py587CODE
LOWsetup/translations.py734CODE
LOWsetup/git_hooks.py85CODE
LOWsetup/win-ci.py94CODE
LOWsetup/vcvars.py69CODE
LOWsetup/unix-ci.py276CODE
LOWsetup/changelog.py117CODE
LOWsetup/piper.py23CODE
LOWsetup/resources.py121CODE
LOWsetup/install.py266CODE
LOWsetup/parallel_build.py51CODE
LOWsetup/parallel_build.py76CODE
LOWsetup/gui.py23CODE
LOWsetup/publish.py274CODE
LOWmanual/custom.py343CODE
LOWmanual/template_ref_generate.py53CODE
LOWmanual/plugin_examples/editor_demo/main.py73CODE
LOW.github/workflows/macos_crash_report.py274CODE
LOW.github/workflows/macos_crash_report.py315CODE
LOW.github/workflows/macos_crash_report.py370CODE
LOWbypy/macos/__main__.py287CODE
LOWbypy/macos/__main__.py666CODE
LOWbypy/macos/__main__.py724CODE
LOWbypy/linux/site.py20CODE
1370 more matches not shown…
Hyper-Verbose Identifiers1233 hits · 1159 pts
SeverityFileLineSnippetContext
LOWresources/templates/kobo.js114function paginateAndMaintainProgress()CODE
LOWresources/templates/kobo.js199function estimateFirstAnchorForPageNumber(page)CODE
LOWresources/templates/kobo.js219function estimatePageNumberForAnchor(spanId)CODE
LOWsetup/build.py708 def create_sip_build_skeleton(self, src_dir, ext):STRING
LOWsetup/linux-installer.py583def get_https_resource_securely(url, timeout=60, max_redirects=5, ssl_version=None):STRING
LOWsetup/linux-installer.py802def check_for_recent_freetype():STRING
LOWsetup/translations.py144 def get_content_server_strings(self):CODE
LOWsetup/translations.py417 def compile_main_translations(self):CODE
LOWsetup/translations.py539 def compile_content_server_translations(self):CODE
LOWsetup/translations.py587 def _compile_website_translations(self, name='website', threshold=50):CODE
LOWsetup/translations.py643 def compile_website_translations(self):CODE
LOWsetup/translations.py652 def compile_changelog_translations(self):CODE
LOWsetup/translations.py655 def compile_user_manual_translations(self):CODE
LOWsetup/translations.py734 def check_for_user_manual_errors(self):CODE
LOWsetup/vcvars.py17def get_program_files_location(which=CSIDL_PROGRAM_FILESX86):CODE
LOWsetup/browser_data.py13def download_from_calibre_server(url):CODE
LOWsetup/linux-installer.sh632def get_https_resource_securely(url, timeout=60, max_redirects=5, ssl_version=None):STRING
LOWsetup/linux-installer.sh851def check_for_recent_freetype():STRING
LOWmanual/custom.py232def generate_ebook_convert_help(preamble, app):STRING
LOWmanual/template_ref_generate.py53def generate_template_language_help(language, log):STRING
LOW.github/workflows/macos_crash_report.py370 def application_specific_information(self) -> str | None:CODE
LOW.github/workflows/macos_crash_report.py433def get_crash_report_from_file(crash_report_file: IO) -> CrashReportBase:CODE
LOWbypy/linux/site.py20def setup_openssl_environment():CODE
LOWbypy/windows/wix.py88def get_components_from_files(env):CODE
LOWsrc/calibre/constants.py474def get_windows_user_locale_name():CODE
LOWsrc/calibre/constants.py478def get_windows_number_formats():CODE
LOWsrc/calibre/gui_launch.py49def register_with_default_programs():STRING
LOWsrc/calibre/gui_launch.py84def is_possible_media_pack_error(e):STRING
LOWsrc/calibre/test_build.py681def test_webengine_worker_main():CODE
LOWsrc/calibre/linux.py873 def setup_desktop_integration(self): # {{{CODE
LOWsrc/calibre/linux.py882 def do_setup_desktop_integration(self):CODE
LOWsrc/calibre/scraper/test_fetch_backend.py95 def test_recipe_browser_webengine(self):CODE
LOWsrc/calibre/ebooks/html_transform_rules.py478def transform_conversion_book(oeb, opts, serialized_rules):CODE
LOWsrc/calibre/ebooks/html_transform_rules.py603 def test_html_transform_actions(self):STRING
LOWsrc/calibre/ebooks/chardet.py48def strip_encoding_declarations(raw, limit=50 * 1024, preserve_newlines=False):CODE
LOWsrc/calibre/ebooks/chardet.py71def replace_encoding_declarations(raw, enc='utf-8', limit=50 * 1024):CODE
LOWsrc/calibre/ebooks/__init__.py112def extract_cover_from_embedded_svg(html, base, log):CODE
LOWsrc/calibre/ebooks/__init__.py154def render_html_svg_workaround(path_to_html, log, width=1200, height=1600, root=''):CODE
LOWsrc/calibre/ebooks/html_entities.py2139def entity_to_unicode_in_python(match, exceptions=(), encoding='cp1252', result_exceptions={}):CODE
LOWsrc/calibre/ebooks/html_entities.py2182 def test_html_entity_replacement(self):CODE
LOWsrc/calibre/ebooks/css_transform_rules.py138def parse_css_length_or_number(raw, default_unit=None):CODE
LOWsrc/calibre/ebooks/lrf/html/convert_from.py1797 def remove_unused_target_blocks(self):CODE
LOWsrc/calibre/ebooks/lrf/html/table.py199 def text_block_preferred_width(self, tb, debug=False):CODE
LOWsrc/calibre/ebooks/txt/markdownml.py90 def prepare_string_for_markdown(self, txt):CODE
LOWsrc/calibre/ebooks/txt/processor.py133def convert_markdown_with_metadata(txt, title='', extensions=DEFAULT_MD_EXTENSIONS):CODE
LOWsrc/calibre/ebooks/txt/processor.py184def separate_paragraphs_single_line(txt):CODE
LOWsrc/calibre/ebooks/txt/processor.py189def separate_paragraphs_print_formatted(txt):CODE
LOWsrc/calibre/ebooks/txt/processor.py194def separate_hard_scene_breaks(txt):CODE
LOWsrc/calibre/ebooks/txt/processor.py357def get_images_from_polyglot_text(txt: str, base_dir: str = '', file_ext: str = 'txt') -> set:CODE
LOWsrc/calibre/ebooks/txt/textileml.py219 def prepare_string_for_textile(self, txt):CODE
LOWsrc/calibre/ebooks/mobi/utils.py629def convert_color_for_font_tag(val):CODE
LOWsrc/calibre/ebooks/mobi/reader/markup.py249def insert_images_into_markup(parts, resource_map, log):CODE
LOWsrc/calibre/ebooks/mobi/reader/mobi6.py811 def warn_about_trailing_entry_corruption(self):STRING
LOWsrc/calibre/ebooks/mobi/writer8/toc.py31def find_previous_calibre_inline_toc(oeb):STRING
LOWsrc/calibre/ebooks/mobi/writer8/index.py111 def calculate_control_bytes_for_each_entry(cls, entries):STRING
LOWsrc/calibre/ebooks/mobi/writer8/skeleton.py185 def calculate_insert_positions(self):CODE
LOWsrc/calibre/ebooks/mobi/writer8/tbs.py109def encode_strands_as_sequences(strands, tbs_type=8):STRING
LOWsrc/calibre/ebooks/mobi/writer8/tbs.py191def apply_trailing_byte_sequences(index_table, records, text_record_lengths):STRING
LOWsrc/calibre/ebooks/mobi/writer8/main.py243 def replace_internal_links_with_placeholders(self):CODE
LOWsrc/calibre/ebooks/mobi/writer2/indexer.py793 def calculate_trailing_byte_sequences(self):CODE
1173 more matches not shown…
Cross-Language Confusion121 hits · 631 pts
SeverityFileLineSnippetContext
HIGHsetup/linux-installer.py647 stdout=null, stdin=subprocess.PIPE, close_fds=True, preexec_fn=lambda:STRING
HIGHicons/icns/make_iconsets.py126 subprocess.check_call(['ssh', 'ox', 'sh', '-c', '~/bin/update-calibre && python3 ~/calibre-src/icons/icns/make_iCODE
HIGHsrc/calibre/linux.py453 _zip_cache_list=( ${{(f)"$(zipinfo -1 $_zip_cache_name 2>/dev/null)"}} )STRING
HIGHsrc/calibre/linux.py458 _multi_parts / _zip_cache_list && return 0STRING
HIGHsrc/calibre/linux.py652 pattern="$(basename ${pattern} 2> /dev/null)"CODE
HIGHsrc/calibre/linux.py653 search="$(dirname ${search} 2> /dev/null)"CODE
HIGHsrc/calibre/linux.py661 listing="$(ebook-device ls ${search} 2>/dev/null)"CODE
HIGHsrc/calibre/ebooks/covers.py295 mem = {f: getattr(obj, f, null) for f in fields}STRING
HIGHsrc/calibre/ebooks/covers.py300 if val is null:STRING
HIGHsrc/calibre/ebooks/render_html.py40 default_log.warn(f'Blocking URL request {qurl.toString()} as it is not for a resource related to the HTML fiCODE
HIGHsrc/calibre/ebooks/pdf/html_writer.py349 self.log.warn(f'Blocking URL request {qurl.toString()} as it is not for a resource in the book')CODE
HIGHsrc/calibre/ebooks/oeb/polish/container.py551 ans = self.href_to_name_cache.get(key, null)CODE
HIGHsrc/calibre/ebooks/oeb/polish/container.py552 if ans is null:CODE
HIGHsrc/calibre/ebooks/rtf2xml/pict.py144 self.__write_pic_obj.write('{\\rtf1 \n{\\fonttbl\\f0\\null;} \n')CODE
HIGHsrc/calibre/ebooks/conversion/preprocess.py135 percent is the percentage of lines that should be in a single bucket to return trueSTRING
HIGHsrc/calibre/ebooks/metadata/opf3_test.py415 "rec_index": 29, "#extra#": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py418 {"number_format": null}, "search_terms":CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py423 "custom_column_12", "is_multiple": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py428 "rec_index": 26, "#extra#": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py437 "is_multiple": null, "is_category": true}"/>CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py442 "#extra#": null, "colnum": 13,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py469 "is_multiple": null, "is_category": false}"/>CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py473 "rec_index": 30, "#extra#": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py481 "custom_column_1", "is_multiple": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py515 "rec_index": 34, "#extra#": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py523 "is_multiple": null, "is_category": false}"/>CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py527 "rec_index": 28, "#extra#": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py453 "is_multiple": null, "is_category": false}"/>CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py457 "rec_index": 25, "#extra#": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py494 "custom_column_5", "is_multiple": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py499 "rec_index": 33, "#extra#": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py538 "is_multiple": null, "is_category": true}"/>CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py542 "rec_index": 27, "#extra#": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py554 "is_multiple": null, "is_category": false}"/>CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py558 "rec_index": 22, "#extra#": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py574 "rec_index": 24, "#extra#": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py585 "custom_column_2", "is_multiple": null,CODE
HIGHsrc/calibre/ebooks/docx/fields.py66 last_option = field_map.get(token[1], null)CODE
HIGHsrc/calibre/ebooks/docx/fields.py75 ans.pop(null, None)CODE
HIGHsrc/calibre/web/site_parsers/nytimes.py204 text = re.sub(r'{\"checkGate\":.*', 'null}}', text, flags=re.DOTALL)CODE
HIGHsrc/calibre/utils/forked_map.py129 stack.push(w)CODE
HIGHsrc/calibre/utils/rapydscript.py172 if (encoding && encoding.length) return b;CODE
HIGHsrc/calibre/utils/rapydscript.py327 self.spin_loop(lambda: eval_result is null, 'eval of JS took too long')STRING
HIGHsrc/calibre/utils/winreg/lib.py55 def __init__(self, name, typ, default=null, in_arg=True):CODE
HIGHsrc/calibre/utils/winreg/lib.py57 if default is null:CODE
HIGHsrc/calibre/utils/winreg/dde.py120 def __init__(self, name, typ, default=null, in_arg=True):CODE
HIGHsrc/calibre/utils/winreg/dde.py122 if default is null:CODE
HIGHsrc/calibre/ai/structured.py566 self.assertIn(' subtitle: string | null;', ts)CODE
HIGHsrc/calibre/gui2/widgets2.py395 self.undo_stack.push(cmd)CODE
HIGHsrc/calibre/gui2/widgets2.py679 if not qurl.scheme() and qurl.hasFragment() and qurl.toString().startswith('#'):CODE
HIGHsrc/calibre/gui2/__init__.py1767 cmd = [x.replace('%u', qurl.toString()) for x in opener]CODE
HIGHsrc/calibre/gui2/comments_editor.py1361 block_len = block.length() # includes block separatorCODE
HIGHsrc/calibre/gui2/comments_editor.py1384 flen = frag.length()CODE
HIGHsrc/calibre/gui2/qt_file_dialogs.py115 return url.toString()CODE
HIGHsrc/calibre/gui2/tweak_book/preview.py296 if (settings.bg || settings.fg || settings.link) using_custom_colors = true;STRING
HIGHsrc/calibre/gui2/tweak_book/preview.py297 if (settings.is_dark_theme && using_custom_colors) { css = ':root { color-scheme: dark; }' + css; }STRING
HIGHsrc/calibre/gui2/tweak_book/preview.py371 prints('Blocking navigation request to:', url.toString())CODE
HIGHsrc/calibre/gui2/tweak_book/check_links.py164 url = qurl.toString()CODE
HIGHsrc/calibre/gui2/tweak_book/editor/canvas.py270 self.undo_stack.push(Replace(x.toImage(), _('Drop image'), self))CODE
HIGHsrc/calibre/gui2/tweak_book/editor/canvas.py279 self.undo_stack.push(Replace(img, _('Drop image'), self))CODE
61 more matches not shown…
Over-Commented Block351 hits · 334 pts
SeverityFileLineSnippetContext
LOWChangelog.txt1# vim: ft=yamlCOMMENT
LOWresources/calibre-portable.sh1#!/bin/bashCOMMENT
LOWresources/calibre-portable.sh21# this script file). This structure can also be used whenCOMMENT
LOWresources/calibre-portable.sh41# - calibre-portable.sh to run the Linux versionCOMMENT
LOWresources/calibre-portable.sh121# Create or read configuration file.COMMENT
LOWresources/calibre-portable.sh141 #COMMENT
LOWresources/calibre-portable.sh161 # -- library is on a (slow) network drive. Putting the metadata.dbCOMMENT
LOWresources/calibre-portable.sh181 # -- at the bottom of the calibre main screen.COMMENT
LOWresources/calibre-portable.sh201 #COMMENT
LOWresources/calibre-portable.sh221 ################################################################COMMENT
LOWresources/calibre-portable.sh241 #COMMENT
LOWresources/default_tweaks.py1#!/usr/bin/env pythonCOMMENT
LOWresources/default_tweaks.py21# a number - Assign that number always. The number is not in quotes. Note that 0.0 can be used here.COMMENT
LOWresources/default_tweaks.py41# Set this if the completion separator should be appended to the end of theCOMMENT
LOWresources/default_tweaks.py61#COMMENT
LOWresources/default_tweaks.py101# by changing the regular expression below. Strings are split on whatever theCOMMENT
LOWresources/default_tweaks.py121# categories_use_field_for_series_name = 'series_sort'COMMENT
LOWresources/default_tweaks.py141# (\ characters) in the template. It doesn't hurt anything to leave it thereCOMMENT
LOWresources/default_tweaks.py161# dd the day as number with a leading zero (01 to 31)COMMENT
LOWresources/default_tweaks.py181# For example, given the date of 9 Jan 2010, the following formats showCOMMENT
LOWresources/default_tweaks.py201# addition, titles for books added before changing the flag will retain theirCOMMENT
LOWresources/default_tweaks.py221save_template_title_series_sorting = 'library_order'COMMENT
LOWresources/default_tweaks.py281 'tur': (r'Bir\s+',),COMMENT
LOWresources/default_tweaks.py301COMMENT
LOWresources/default_tweaks.py321#COMMENT
LOWresources/default_tweaks.py341# has not been changed.COMMENT
LOWresources/default_tweaks.py361# sony_collection_renaming_rules={'series':'Series', 'tags':'Tag'}COMMENT
LOWresources/default_tweaks.py381# Default: empty (no rules), so no collection attributes are named.COMMENT
LOWresources/default_tweaks.py401sort_dates_using_visible_fields = FalseCOMMENT
LOWresources/default_tweaks.py421horizontal_scrolling_per_column = FalseCOMMENT
LOWresources/default_tweaks.py441# calibre. You can also change the list of hosts that calibre considersCOMMENT
LOWresources/default_tweaks.py461#: Unified toolbar on macOSCOMMENT
LOWresources/default_tweaks.py481# how many should be shown, here.COMMENT
LOWresources/default_tweaks.py501# default_tweak_format = None (Use output format)COMMENT
LOWresources/default_tweaks.py521#: Completion mode when editing authors/tags/series/etc.COMMENT
LOWresources/default_tweaks.py541# number of such libraries, the sorting becomes alphabetic. You can set thatCOMMENT
LOWresources/default_tweaks.py561# Normally, if you drop any image file in a format known to calibre onto theCOMMENT
LOWresources/default_tweaks.py581skip_network_check = FalseCOMMENT
LOWresources/default_tweaks.py601#: Allow template database functions in composite columnsCOMMENT
LOWresources/default_tweaks.py621# Thursday, Friday, or Saturday, all in English, spelled exactly as shown.COMMENT
LOWresources/default_tweaks.py641# already opt-in and no AI related code is even loaded until the user configures someCOMMENT
LOWresources/csscolorparser.js1// (c) Dean McNamee <dean@gmail.com>, 2012.COMMENT
LOWsetup/hosting.py341 os.chdir(cwd)COMMENT
LOWsetup/polib.py1281 # * OC: a file/line occurrenceCOMMENT
LOWsetup/linux-installer.sh481 # speed up common case w/o wildcardsCOMMENT
LOWmanual/conf.py1# calibre documentation build configuration file, created byCOMMENT
LOWmanual/plugin_examples/interface_demo/ui.py21 name = 'Interface Plugin Demo'COMMENT
LOWbypy/run-python.h1/*COMMENT
LOWbypy/linux/util.h1#pragma onceCOMMENT
LOWbypy/windows/util.c1/*COMMENT
LOWbypy/windows/portable-installer.cpp1#ifndef UNICODECOMMENT
LOWbypy/windows/XUnzip.cpp1// XUnzip.cpp Version 1.3COMMENT
LOWbypy/windows/XUnzip.cpp21// Version 1.1: - Added Unicode support to CreateZip() and ZipAdd()COMMENT
LOWbypy/windows/XUnzip.cpp41// Copyright (c) 1990-2002 Info-ZIP. All rights reserved.COMMENT
LOWbypy/windows/XUnzip.cpp61// freely, subject to the following restrictions:COMMENT
LOWbypy/windows/XUnzip.cpp81// including, but not limited to, different capitalizations),COMMENT
LOWbypy/windows/XUnzip.cpp101#include <tchar.h>COMMENT
LOWbypy/windows/XUnzip.cpp121//COMMENT
LOWbypy/windows/XUnzip.cpp141//COMMENT
LOWbypy/windows/XUnzip.cpp241#define UNZ_END_OF_LIST_OF_FILE (-100)COMMENT
291 more matches not shown…
Cross-File Repetition63 hits · 315 pts
SeverityFileLineSnippetContext
HIGHsrc/calibre/ebooks/txt/markdownml.py0@elem: the element in the etree that we are working on. @stylizer: the style information attached to the element.STRING
HIGHsrc/calibre/ebooks/txt/textileml.py0@elem: the element in the etree that we are working on. @stylizer: the style information attached to the element.STRING
HIGHsrc/calibre/ebooks/htmlz/oeb2html.py0@elem: the element in the etree that we are working on. @stylizer: the style information attached to the element.STRING
HIGHsrc/calibre/ebooks/mobi/reader/headers.py0remove all duplicates from vals, while preserving order.STRING
HIGHsrc/calibre/ebooks/metadata/odt.py0remove all duplicates from vals, while preserving order.STRING
HIGHsrc/calibre/ebooks/metadata/opf3.py0remove all duplicates from vals, while preserving order.STRING
HIGHsrc/calibre/gui2/tweak_book/preview.py0remove all duplicates from vals, while preserving order.STRING
HIGHsrc/calibre/ebooks/rtf2xml/paragraph_def.py0required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporarSTRING
HIGHsrc/calibre/ebooks/rtf2xml/old_rtf.py0required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporarSTRING
HIGHsrc/calibre/ebooks/rtf2xml/body_styles.py0required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporarSTRING
HIGHsrc/calibre/ebooks/rtf2xml/table_info.py0required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporarSTRING
HIGHsrc/calibre/ebooks/rtf2xml/sections.py0required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporarSTRING
HIGHsrc/calibre/ebooks/rtf2xml/paragraphs.py0required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporarSTRING
HIGHsrc/calibre/ebooks/rtf2xml/add_brackets.py0required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporarSTRING
HIGHsrc/calibre/ebooks/rtf2xml/fields_large.py0required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporarSTRING
HIGHsrc/calibre/ebooks/rtf2xml/fields_small.py0required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporarSTRING
HIGHsrc/calibre/ebooks/rtf2xml/styles.py0required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporarSTRING
HIGHsrc/calibre/ebooks/rtf2xml/table.py0required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporarSTRING
HIGHsrc/calibre/ebooks/rtf2xml/info.py0required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporarSTRING
HIGHsrc/calibre/ebooks/rtf2xml/inline.py0required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporarSTRING
HIGHsrc/calibre/ebooks/rtf2xml/colors.py0required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporarSTRING
HIGHsrc/calibre/ebooks/rtf2xml/group_borders.py0required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporarSTRING
HIGHsrc/calibre/ebooks/rtf2xml/list_numbers.py0required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporarSTRING
HIGHsrc/calibre/ebooks/rtf2xml/convert_to_tags.py0required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporarSTRING
HIGHsrc/calibre/ebooks/rtf2xml/headings_to_sections.py0required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporarSTRING
HIGHsrc/calibre/ebooks/rtf2xml/preamble_div.py0required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporarSTRING
HIGHsrc/calibre/ebooks/rtf2xml/make_lists.py0required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporarSTRING
HIGHsrc/calibre/ebooks/rtf2xml/group_styles.py0required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporarSTRING
HIGHsrc/calibre/ebooks/rtf2xml/fonts.py0required: 'file' optional: 'copy'-- whether to make a copy of result for debugging 'temp_dir' --where to output temporarSTRING
HIGHsrc/calibre/ebooks/rtf2xml/group_borders.py0form lists. use rtf's own formatting to determine if a paragraph definition is part of a list. use indents to determine STRING
HIGHsrc/calibre/ebooks/rtf2xml/make_lists.py0form lists. use rtf's own formatting to determine if a paragraph definition is part of a list. use indents to determine STRING
HIGHsrc/calibre/ebooks/rtf2xml/group_styles.py0form lists. use rtf's own formatting to determine if a paragraph definition is part of a list. use indents to determine STRING
HIGHsrc/calibre/ebooks/rtf2xml/group_borders.py0required: nothing return: nothing logic: the self.__end_list is a list of tokens that will force a list to end. likewiseSTRING
HIGHsrc/calibre/ebooks/rtf2xml/headings_to_sections.py0required: nothing return: nothing logic: the self.__end_list is a list of tokens that will force a list to end. likewiseSTRING
HIGHsrc/calibre/ebooks/rtf2xml/make_lists.py0required: nothing return: nothing logic: the self.__end_list is a list of tokens that will force a list to end. likewiseSTRING
HIGHsrc/calibre/ebooks/rtf2xml/group_styles.py0required: nothing return: nothing logic: the self.__end_list is a list of tokens that will force a list to end. likewiseSTRING
HIGHsrc/calibre/ebooks/rtf2xml/group_borders.py0required: line -- the line of current text. return: nothing logic: you are in a list, but in the middle of a paragraph dSTRING
HIGHsrc/calibre/ebooks/rtf2xml/make_lists.py0required: line -- the line of current text. return: nothing logic: you are in a list, but in the middle of a paragraph dSTRING
HIGHsrc/calibre/ebooks/rtf2xml/group_styles.py0required: line -- the line of current text. return: nothing logic: you are in a list, but in the middle of a paragraph dSTRING
HIGHsrc/calibre/ebooks/rtf2xml/group_borders.py0required: self, line returns: nothing logic look for the start of a paragraph definition. if one is found, check if it cSTRING
HIGHsrc/calibre/ebooks/rtf2xml/headings_to_sections.py0required: self, line returns: nothing logic look for the start of a paragraph definition. if one is found, check if it cSTRING
HIGHsrc/calibre/ebooks/rtf2xml/make_lists.py0required: self, line returns: nothing logic look for the start of a paragraph definition. if one is found, check if it cSTRING
HIGHsrc/calibre/ebooks/rtf2xml/group_styles.py0required: self, line returns: nothing logic look for the start of a paragraph definition. if one is found, check if it cSTRING
HIGHsrc/calibre/ebooks/rtf2xml/group_borders.py0required: nothing returns: original file will be changed logic:STRING
HIGHsrc/calibre/ebooks/rtf2xml/headings_to_sections.py0required: nothing returns: original file will be changed logic:STRING
HIGHsrc/calibre/ebooks/rtf2xml/make_lists.py0required: nothing returns: original file will be changed logic:STRING
HIGHsrc/calibre/ebooks/rtf2xml/group_styles.py0required: nothing returns: original file will be changed logic:STRING
HIGHsrc/calibre/ebooks/metadata/tag_mapper.py0remove all duplicates from vals, while preserving order. kmap must be a callable that returns a hashable value for everySTRING
HIGHsrc/calibre/ebooks/metadata/xmp.py0remove all duplicates from vals, while preserving order. kmap must be a callable that returns a hashable value for everySTRING
HIGHsrc/calibre/ebooks/metadata/author_mapper.py0remove all duplicates from vals, while preserving order. kmap must be a callable that returns a hashable value for everySTRING
HIGHsrc/calibre/spell/import_from.py0remove all duplicates from vals, while preserving order. kmap must be a callable that returns a hashable value for everySTRING
HIGHsrc/calibre/gui2/dialogs/opml.py0remove all duplicates from vals, while preserving order. kmap must be a callable that returns a hashable value for everySTRING
HIGHsrc/calibre/db/write.py0remove all duplicates from vals, while preserving order. kmap must be a callable that returns a hashable value for everySTRING
HIGHsrc/calibre/ebooks/metadata/book/base.py0a string representation of this object, suitable for printing to consoleSTRING
HIGHsrc/calibre/devices/kobo/books.py0a string representation of this object, suitable for printing to consoleSTRING
HIGHsrc/calibre/devices/kobo/bookmark.py0a string representation of this object, suitable for printing to consoleSTRING
HIGHsrc/calibre/ebooks/pdb/ereader/reader132.py0the first record in the file is always the header record. it holds information related to the location of text, images, STRING
HIGHsrc/calibre/ebooks/pdb/ereader/reader202.py0the first record in the file is always the header record. it holds information related to the location of text, images, STRING
HIGHsrc/calibre/ebooks/pdb/palmdoc/reader.py0the first record in the file is always the header record. it holds information related to the location of text, images, STRING
HIGHsrc/calibre/ebooks/pdb/ztxt/reader.py0the first record in the file is always the header record. it holds information related to the location of text, images, STRING
3 more matches not shown…
Unused Imports301 hits · 298 pts
SeverityFileLineSnippetContext
LOWsetup/linux-installer.py4CODE
LOWsetup/linux-installer.py4CODE
LOWsetup/linux-installer.py4CODE
LOWsetup/linux-installer.py4CODE
LOWsetup/commands.py76CODE
LOWbypy/init_env.py5CODE
LOWbypy/windows/__main__.py18CODE
LOWsrc/calibre/test_build.py120CODE
LOWsrc/calibre/ebooks/BeautifulSoup.py5CODE
LOWsrc/calibre/ebooks/BeautifulSoup.py5CODE
LOWsrc/calibre/ebooks/BeautifulSoup.py5CODE
LOWsrc/calibre/ebooks/BeautifulSoup.py5CODE
LOWsrc/calibre/ebooks/BeautifulSoup.py5CODE
LOWsrc/calibre/ebooks/BeautifulSoup.py5CODE
LOWsrc/calibre/ebooks/BeautifulSoup.py5CODE
LOWsrc/calibre/ebooks/BeautifulSoup.py5CODE
LOWsrc/calibre/ebooks/oeb/polish/tests/main.py13CODE
LOWsrc/calibre/ebooks/conversion/plumber.py1201CODE
LOWsrc/calibre/ebooks/conversion/plugins/pdf_output.py215CODE
LOWsrc/calibre/ebooks/metadata/opf3_test.py60CODE
LOWsrc/calibre/ebooks/metadata/opf3_test.py60CODE
LOWsrc/calibre/ebooks/metadata/sources/edelweiss.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/edelweiss.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/edelweiss.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/edelweiss.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/openlibrary.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/openlibrary.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/openlibrary.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/openlibrary.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/__init__.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/__init__.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/__init__.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/__init__.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/google_images.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/google_images.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/google_images.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/google_images.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/google.py4CODE
LOWsrc/calibre/ebooks/metadata/sources/google.py4CODE
LOWsrc/calibre/ebooks/metadata/sources/google.py4CODE
LOWsrc/calibre/ebooks/metadata/sources/google.py4CODE
LOWsrc/calibre/ebooks/metadata/sources/test.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/test.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/test.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/test.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/prefs.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/prefs.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/prefs.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/prefs.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/covers.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/covers.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/covers.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/covers.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/base.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/base.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/base.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/base.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/search_engines.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/search_engines.py5CODE
LOWsrc/calibre/ebooks/metadata/sources/search_engines.py5CODE
241 more matches not shown…
Hallucination Indicators15 hits · 170 pts
SeverityFileLineSnippetContext
CRITICALsrc/calibre/gui2/tweak_book/preview.py570 self.view._page.bridge.request_sync.connect(self.request_sync)CODE
CRITICALsrc/calibre/gui2/tweak_book/preview.py571 self.view._page.bridge.request_split.connect(self.request_split)CODE
CRITICALsrc/calibre/gui2/tweak_book/preview.py572 self.view._page.bridge.live_css_data.connect(self.live_css_data)CODE
CRITICALsrc/calibre/gui2/tweak_book/preview.py573 self.view._page.bridge.bridge_ready.connect(self.on_bridge_ready)CODE
CRITICALsrc/calibre/gui2/tweak_book/boss.py187 self.gui.central.search_panel.search_triggered.connect(self.search)CODE
CRITICALsrc/calibre/gui2/tweak_book/boss.py205 self.gui.central.search_panel.save_search.connect(self.save_search)CODE
CRITICALsrc/calibre/gui2/tweak_book/boss.py206 self.gui.central.search_panel.show_saved_searches.connect(self.show_saved_searches)CODE
CRITICALsrc/calibre/db/cache.py523 self.backend.fts.pool.initialized.wait()CODE
CRITICALsrc/calibre/srv/tests/content.py79 db = server.handler.router.ctx.library_broker.get(None)CODE
CRITICALsrc/calibre/srv/tests/content.py237 db = server.handler.router.ctx.library_broker.get(None)CODE
CRITICALsrc/calibre/srv/tests/ajax.py36 db = server.handler.router.ctx.library_broker.get(None)CODE
CRITICALsrc/calibre/srv/tests/ajax.py98 db = server.handler.router.ctx.library_broker.get(None)CODE
CRITICALsrc/calibre/srv/tests/ajax.py148 db = server.handler.router.ctx.library_broker.get(None)CODE
CRITICALsrc/calibre/srv/tests/ajax.py184 db = server.handler.router.ctx.library_broker.get(None)CODE
CRITICALsrc/calibre/srv/tests/ajax.py270 db = server.handler.router.ctx.library_broker.get(None)CODE
Decorative Section Separators54 hits · 164 pts
SeverityFileLineSnippetContext
MEDIUMresources/calibre-portable.sh54# -----------------------------------------------------COMMENT
MEDIUMresources/calibre-portable.sh60# -----------------------------------------------------COMMENT
MEDIUMresources/calibre-portable.sh370# --------------------------------------------------------------COMMENT
MEDIUMresources/calibre-portable.sh372# --------------------------------------------------------------COMMENT
MEDIUMresources/calibre-portable.sh379# ---------------------------------------------------------------COMMENT
MEDIUMresources/calibre-portable.sh381# ---------------------------------------------------------------COMMENT
MEDIUMresources/calibre-portable.sh390# --------------------------------------------------------COMMENT
MEDIUMresources/calibre-portable.sh392# --------------------------------------------------------COMMENT
MEDIUMresources/calibre-portable.sh79# ------------------------------------------------COMMENT
MEDIUMresources/calibre-portable.sh81# ------------------------------------------------COMMENT
MEDIUMresources/calibre-portable.sh120# ------------------------------------------------COMMENT
MEDIUMresources/calibre-portable.sh122# ------------------------------------------------COMMENT
MEDIUMresources/calibre-portable.sh272# ------------------------------------------------COMMENT
MEDIUMresources/calibre-portable.sh274# ------------------------------------------------COMMENT
MEDIUMresources/calibre-portable.sh286# --------------------------------------------------------------COMMENT
MEDIUMresources/calibre-portable.sh288# --------------------------------------------------------------COMMENT
MEDIUMresources/calibre-portable.sh305# --------------------------------------------------------------COMMENT
MEDIUMresources/calibre-portable.sh307# --------------------------------------------------------------COMMENT
MEDIUMresources/calibre-portable.sh320# --------------------------------------------------------------COMMENT
MEDIUMresources/calibre-portable.sh322# --------------------------------------------------------------COMMENT
MEDIUMresources/calibre-portable.sh334# --------------------------------------------------------------COMMENT
MEDIUMresources/calibre-portable.sh336# --------------------------------------------------------------COMMENT
MEDIUMresources/calibre-portable.sh354# --------------------------------------------------------------COMMENT
MEDIUMresources/calibre-portable.sh356# --------------------------------------------------------------COMMENT
MEDIUMmanual/conf.py33# ---------------------COMMENT
MEDIUMmanual/conf.py127# -----------------------COMMENT
MEDIUMmanual/conf.py227# ------------------------COMMENT
MEDIUMsrc/calibre/ebooks/lit/mssha1.py12# ======================================================================COMMENT
MEDIUMsrc/calibre/ebooks/lit/mssha1.py17# ======================================================================COMMENT
MEDIUMsrc/calibre/ebooks/lit/mssha1.py72# ======================================================================COMMENT
MEDIUMsrc/calibre/ebooks/lit/mssha1.py75# ======================================================================COMMENT
MEDIUMsrc/calibre/ebooks/lit/mssha1.py294# ======================================================================COMMENT
MEDIUMsrc/calibre/ebooks/lit/mssha1.py297# ======================================================================COMMENT
MEDIUMsrc/calibre/utils/run_tests.py167# ─── Parallel runner ──────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/calibre/utils/run_tests.py523# ─── Test discovery ───────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/calibre/utils/run_tests.py792# ─── Public entry points ──────────────────────────────────────────────────────COMMENT
MEDIUMsrc/calibre/devices/usbms/device.py699 # ------------------------------------------------------COMMENT
MEDIUMsrc/calibre/devices/usbms/device.py804 # ------------------------------------------------------COMMENT
MEDIUMsrc/calibre/devices/usbms/device.py824 # ------------------------------------------------------COMMENT
MEDIUMsrc/odf/odfmanifest.py30# -----------------------------------------------------------------------------COMMENT
MEDIUMsrc/odf/odfmanifest.py34# -----------------------------------------------------------------------------COMMENT
MEDIUMsrc/odf/odfmanifest.py85# -----------------------------------------------------------------------------COMMENT
MEDIUMsrc/odf/odfmanifest.py89# -----------------------------------------------------------------------------COMMENT
MEDIUMsrc/odf/odf2moinmoin.py308 # -----------------------------------COMMENT
MEDIUMsrc/odf/odf2moinmoin.py379 # -----------------------------------COMMENT
MEDIUMsrc/odf/odf2xhtml.py374# -----------------------------------------------------------------------------COMMENT
MEDIUMsrc/odf/odf2xhtml.py378# -----------------------------------------------------------------------------COMMENT
MEDIUMsrc/odf/odf2xhtml.py592 # --------------------------------------------------COMMENT
MEDIUMsrc/odf/odf2xhtml.py594 # --------------------------------------------------COMMENT
MEDIUMsrc/odf/odf2xhtml.py619 # --------------------------------------------------COMMENT
MEDIUMsrc/odf/odf2xhtml.py662 # -----------------------------------------------------------------------------COMMENT
MEDIUMsrc/odf/odf2xhtml.py666 # -----------------------------------------------------------------------------COMMENT
MEDIUMsrc/odf/odf2xhtml.py1588 # -----------------------------------------------------------------------------STRING
MEDIUMsrc/odf/odf2xhtml.py1592 # -----------------------------------------------------------------------------STRING
Self-Referential Comments56 hits · 146 pts
SeverityFileLineSnippetContext
MEDIUMmanual/conf.py4# This file is execfile()d with the current directory set to its containing dir.COMMENT
MEDIUMmanual/plugin_examples/interface_demo/ui.py30 # This method is called once per plugin, do initial setup hereCOMMENT
MEDIUMmanual/plugin_examples/editor_demo/main.py31 # Create an action, this will be added to the plugins toolbar andCOMMENT
MEDIUMsrc/calibre/ebooks/lrf/pylrs/pylrs.py240 """This class is a mixin class for elements that are contained in orSTRING
MEDIUMsrc/calibre/ebooks/mobi/writer8/index.py204 # Create the Index Header recordSTRING
MEDIUMsrc/calibre/ebooks/mobi/writer8/skeleton.py250 # Create the SKEL and Chunk tablesCOMMENT
MEDIUMsrc/calibre/ebooks/mobi/writer8/main.py45 # Create an inline ToC if one does not already existCOMMENT
MEDIUMsrc/calibre/ebooks/mobi/writer2/main.py433 # Create the MOBI 6 EXTHCOMMENT
MEDIUMsrc/calibre/ebooks/fb2/fb2ml.py285 # Create main section if there are no others to createCOMMENT
MEDIUMsrc/calibre/ebooks/conversion/plumber.py1227 # Create an OEBBook from the input file. The input plugin does all theSTRING
MEDIUMsrc/calibre/ebooks/metadata/mobi.py258 # Create an updated Record0COMMENT
MEDIUMsrc/calibre/ebooks/metadata/archive.py101 # Create an in-memory BytesIO stream for the fileCOMMENT
MEDIUMsrc/calibre/ebooks/metadata/ereader.py76 # Create a metadata record for the file if one does not already existCOMMENT
MEDIUMsrc/calibre/ebooks/pdb/plucker/reader.py411 # Create a new image the total size of all imageCOMMENT
MEDIUMsrc/calibre/library/database2.py165 # Create the lock to be used to guard access to the metadata writerCOMMENT
MEDIUMsrc/calibre/library/database2.py3126 # Create the temporary tables to store the ids for books and tagsCOMMENT
MEDIUMsrc/calibre/library/custom_columns.py476 # Create the temporary temp_tables to store the ids for books and tagsSTRING
MEDIUMsrc/calibre/library/catalogs/epub_mobi_builder.py1494 # Create a divRunningTag for the next authorCOMMENT
MEDIUMsrc/calibre/library/catalogs/epub_mobi_builder.py1653 # Create a new month anchorCOMMENT
MEDIUMsrc/calibre/library/catalogs/epub_mobi_builder.py1918 # Create a new day anchorCOMMENT
MEDIUMsrc/calibre/library/catalogs/epub_mobi_builder.py2227 # Create an anchor from the tagCOMMENT
MEDIUMsrc/calibre/library/catalogs/epub_mobi_builder.py3336 # Create an NCX article entry for each populated author index letterSTRING
MEDIUMsrc/calibre/library/catalogs/epub_mobi_builder.py3417 # Create an NCX article entry for each date rangeSTRING
MEDIUMsrc/calibre/library/catalogs/epub_mobi_builder.py3450 # Create an NCX article entry for each populated monthSTRING
MEDIUMsrc/calibre/library/catalogs/epub_mobi_builder.py3523 # Create an NCX article entry for each date rangeSTRING
MEDIUMsrc/calibre/library/catalogs/epub_mobi_builder.py3545 # Create an NCX article entry for each populated daySTRING
MEDIUMsrc/calibre/library/catalogs/epub_mobi_builder.py3682 # Create the OPF tagsSTRING
MEDIUMsrc/calibre/library/catalogs/bibtex.py355 # Initialize BibTeX classCOMMENT
MEDIUMsrc/calibre/utils/certgen.py95 # Create the Certificate AuthorityCOMMENT
MEDIUMsrc/calibre/utils/certgen.py106 # Create the server certificate issued by the newly created CACOMMENT
MEDIUMsrc/calibre/gui2/complete2.py654 # Create a Qt user property for the current text so that when this widgetCOMMENT
MEDIUMsrc/calibre/gui2/device.py1863 # Define the cleaning functionCOMMENT
MEDIUMsrc/calibre/gui2/tools.py356 # Create the output fileCOMMENT
MEDIUMsrc/calibre/gui2/tools.py387 # Create a temporary copy of the databases to pass into the generationCOMMENT
MEDIUMsrc/calibre/gui2/__init__.py1294 # This class is present only for backwards compat with third party pluginsCOMMENT
MEDIUMsrc/calibre/gui2/comments_editor.py1353 # Create a cursor at start to find the first blockCOMMENT
MEDIUMsrc/calibre/gui2/tweak_book/editor/widget.py800 # Create the actions that are placed into the editors toolbarsCOMMENT
MEDIUMsrc/calibre/gui2/catalog/catalog_epub_mobi.py1394 # Create a list of prefixes for user selectionCOMMENT
MEDIUMsrc/calibre/gui2/library/alternate_views.py100 # Create a range based selector for each set of contiguous rowsCOMMENT
MEDIUMsrc/calibre/gui2/library/bookshelf_view.py703 # Create a larger image to accommodate the shadowCOMMENT
MEDIUMsrc/calibre/gui2/library/views.py1664 # Create a range based selector for each set of contiguous rowsCOMMENT
MEDIUMsrc/calibre/gui2/convert/gui_conversion.py99 # Create a minimal OptionParser that we can append toCOMMENT
MEDIUMsrc/calibre/gui2/store/search/search.py344 # Create the config dialog. It's going to put two config widgetsCOMMENT
MEDIUMsrc/calibre/db/tests/add_remove.py543 # Create an enumeration column with a default valueCOMMENT
MEDIUMsrc/calibre/srv/metadata.py325 # Create the basic tree, containing all top level categories, userCOMMENT
MEDIUMsrc/calibre/devices/interface.py654 # The following methods are probably called on the GUI thread. Any driverCOMMENT
MEDIUMsrc/calibre/devices/kindle/driver.py650 # Create the sidecar folder if necessaryCOMMENT
MEDIUMsrc/calibre/devices/folder_device/driver.py14# This class is added to the standard device plugin chain, so that it canCOMMENT
MEDIUMsrc/calibre/devices/mtp/test.py73 # Create a folderCOMMENT
MEDIUMsrc/calibre/devices/mtp/test.py82 # Create a sub-folderCOMMENT
MEDIUMsrc/calibre/devices/mtp/test.py112 # Create a folderCOMMENT
MEDIUMsrc/calibre/devices/kobo/driver.py1009 # Create a connection to the sqlite databaseCOMMENT
MEDIUMsrc/calibre/devices/kobo/driver.py3008 # Create a connection to the sqlite databaseCOMMENT
MEDIUMsrc/odf/element.py36# The following code is pasted form xml.sax.saxutilsCOMMENT
MEDIUMsrc/odf/grammar.py51# The following code is generated from the RelaxNG schema with this notice:STRING
MEDIUMsrc/odf/load.py77 # Create the elementCOMMENT
Modern Structural Boilerplate75 hits · 78 pts
SeverityFileLineSnippetContext
LOWsetup/polib.py26__all__ = ['pofile', 'POFile', 'POEntry', 'mofile', 'MOFile', 'MOEntry',CODE
LOWsetup/commands.py8__all__ = [CODE
LOWsrc/calibre/scraper/qt.py221 def set_user_agent(self, val: str = '') -> None:CODE
LOWsrc/calibre/scraper/qt_backend.py276 def set_user_agent(self, new_val: str) -> None:CODE
LOWsrc/calibre/scraper/qt_backend.py279 def _set_cookie_from_header(self, cookie_string: str) -> None:CODE
LOWsrc/calibre/scraper/qt_backend.py283 def _set_cookies(self, cookies: list[dict[str, str]]) -> None:CODE
LOWsrc/calibre/scraper/webengine_backend.py299 def set_user_agent(self, new_val: str) -> None:STRING
LOWsrc/calibre/scraper/webengine_backend.py309 def _set_cookie_from_header(self, cookie_string: str) -> None:STRING
LOWsrc/calibre/scraper/webengine_backend.py313 def _set_cookies(self, cookies: list[dict[str, str]]) -> None:STRING
LOWsrc/calibre/ebooks/textile/__init__.py6__all__ = ['textile', 'textile_restricted']CODE
LOWsrc/calibre/ebooks/lit/reader.py24__all__ = ['LitReader']CODE
LOWsrc/calibre/ebooks/lit/writer.py31__all__ = ['LitWriter']CODE
LOWsrc/calibre/ebooks/lit/lzx.py9__all__ = ['Compressor', 'Decompressor', 'LZXError']CODE
LOWsrc/calibre/ebooks/oeb/reader.py58__all__ = ['OEBReader']CODE
LOWsrc/calibre/ebooks/oeb/writer.py12__all__ = ['OEBWriter']CODE
LOWsrc/calibre/ebooks/oeb/transforms/htmltoc.py10__all__ = ['HTMLTOCAdder']CODE
LOWsrc/calibre/ebooks/unihandecode/__init__.py3__all__ = ['Unihandecoder']CODE
LOWsrc/calibre/utils/zipfile.py27__all__ = [CODE
LOWsrc/calibre/utils/titlecase.py16__all__ = ['titlecase']CODE
LOWsrc/calibre/utils/threadpool.py35__all__ = [CODE
LOWsrc/calibre/utils/tts/piper.py80def set_voice(config_path: str, model_path: str, length_scale_multiplier: float = 0, sentence_delay: float = 0.2) -> NonCODE
LOWsrc/calibre/ai/prefs.py66def set_prefs_for_provider(name: str, pref_map: dict[str, Any]) -> None:CODE
LOWsrc/calibre/ai/prefs.py72def update_prefs_for_provider(name: str, pref_map: dict[str, Any]) -> None:CODE
LOWsrc/calibre/ai/open_router/config.py143 def set_filters(self, *filters: Callable[[AIModel], bool]) -> None:CODE
LOWsrc/calibre/ai/open_router/config.py147 def set_sorts(self, *sorts: Callable[[AIModel], object]) -> None:CODE
LOWsrc/calibre/ai/open_router/config.py357 def update_sorts(self) -> None:STRING
LOWsrc/calibre/ai/open_router/config.py362 def update_filters(self) -> None:STRING
LOWsrc/calibre/gui2/chat_widget.py115 def set_max_height(self, val: int) -> None:CODE
LOWsrc/calibre/gui2/chat_widget.py165 def set_max_height(self, val: int) -> None:CODE
LOWsrc/calibre/gui2/chat_widget.py240 def set_input_enabled(self, enabled: bool) -> None:CODE
LOWsrc/calibre/gui2/complete2.py416 def set_use_startswith_search(self, yes: bool) -> None:CODE
LOWsrc/calibre/gui2/complete2.py428 def set_hierarchy_separator(self, sep: str = '') -> None:CODE
LOWsrc/calibre/gui2/momentum_scroll.py356 def update_momentum_scroll_settings(self, **kw) -> None:CODE
LOWsrc/calibre/gui2/llm.py420 def update_ui_state(self) -> None:CODE
LOWsrc/calibre/gui2/llm.py781 def set_actions_in_prefs(self, s: dict[str, Any]) -> None:CODE
LOWsrc/calibre/gui2/llm.py849 def update_render_count(self, reset=False) -> None:CODE
LOWsrc/calibre/gui2/widgets.py270 def set_pixmap(self, pixmap: QPixmap) -> None: ...CODE
LOWsrc/calibre/gui2/widgets.py335 def set_pixmap(self, pixmap: QPixmap) -> None:CODE
LOWsrc/calibre/gui2/widgets.py535 def set_pixmap(self, pixmap: QPixmap) -> None:CODE
LOW…ibre/gui2/preferences/look_feel_tabs/bookshelf_view.py304 def update_recount_txt(self, count) -> None:CODE
LOWsrc/calibre/gui2/cyoa/data.py213def set_current_game(game_id: str) -> None:CODE
LOWsrc/calibre/gui2/library/caches.py333 def set_thumbnail_size(self, width: int, height: int) -> None:CODE
LOWsrc/calibre/gui2/library/caches.py375 def set_disk_cache_max_size(self, size_in_mb: float) -> None:CODE
LOWsrc/calibre/gui2/library/caches.py378 def set_ram_limit(self, num_entries: int) -> None:CODE
LOWsrc/calibre/gui2/library/caches.py407 def set_thumbnail_size(self, width: int, height: int) -> None:CODE
LOWsrc/calibre/gui2/library/caches.py410 def set_disk_cache_max_size(self, size_in_mb: float) -> None:CODE
LOWsrc/calibre/gui2/library/caches.py413 def set_ram_limit(self, num_entries: int) -> None:CODE
LOWsrc/calibre/gui2/library/models.py443 def update_zero_page_values(self) -> None:CODE
LOWsrc/calibre/gui2/fts/cards.py153 def set_cover(self, img: QImage) -> None:CODE
LOWsrc/calibre/gui2/fts/search.py594 def set_num_of_matches_found(self, num: int) -> None:CODE
LOWsrc/calibre/gui2/viewer/llm.py142 def update_with_text(self, text: str) -> None:CODE
LOWsrc/calibre/gui2/viewer/llm.py256 def set_actions_in_prefs(self, s: dict[str, Any]) -> None:CODE
LOWsrc/calibre/gui2/viewer/search.py620 def set_tooltips(self, key_map: dict[str, list[str]]) -> None:CODE
LOWsrc/calibre/gui2/viewer/search.py983 def set_tooltips(self, key_map: dict[str, list[str]]) -> None:CODE
LOWsrc/calibre/gui2/tts/config.py231 def set_item_downloaded_state(self, ans: QTreeWidgetItem) -> None:CODE
LOWsrc/calibre/gui2/tts/config.py566 def set_engine(self, engine_name: str) -> None:CODE
LOWsrc/calibre/gui2/tts/piper.py328 def _set_state(self, s: QTextToSpeech.State) -> None:CODE
LOWsrc/calibre/gui2/tts/piper.py333 def _set_error(self, msg: str) -> None:CODE
LOWsrc/calibre/gui2/tts/speechd.py124 def _set_state(self, s: QTextToSpeech.State) -> None:CODE
LOWsrc/calibre/gui2/tts/speechd.py128 def _set_error(self, msg: str) -> None:CODE
15 more matches not shown…
Dead Code32 hits · 64 pts
SeverityFileLineSnippetContext
MEDIUMsrc/calibre/ebooks/pdf/reflow.py1167CODE
MEDIUMsrc/calibre/ebooks/pdf/reflow.py1168CODE
MEDIUMsrc/calibre/ebooks/pdf/reflow.py1170CODE
MEDIUMsrc/calibre/ebooks/pdf/reflow.py1172CODE
MEDIUMsrc/calibre/ebooks/pdf/reflow.py1173CODE
MEDIUMsrc/calibre/ebooks/pdf/reflow.py1174CODE
MEDIUMsrc/calibre/ebooks/pdf/reflow.py1184CODE
MEDIUMsrc/calibre/ebooks/pdf/reflow.py1187CODE
MEDIUMsrc/calibre/ebooks/pdf/reflow.py1192CODE
MEDIUMsrc/calibre/ebooks/pdf/reflow.py1193CODE
MEDIUMsrc/calibre/ebooks/pdf/reflow.py1324CODE
MEDIUMsrc/calibre/ebooks/rtf2xml/process_tokens.py738CODE
MEDIUMsrc/calibre/ebooks/rtf2xml/process_tokens.py739CODE
MEDIUMsrc/calibre/ebooks/rtf2xml/process_tokens.py741CODE
MEDIUMsrc/calibre/ebooks/metadata/xisbn.py34CODE
MEDIUMsrc/calibre/ebooks/metadata/xisbn.py35CODE
MEDIUMsrc/calibre/ebooks/metadata/xisbn.py36CODE
MEDIUMsrc/calibre/ebooks/metadata/xisbn.py37CODE
MEDIUMsrc/calibre/ebooks/metadata/xisbn.py39CODE
MEDIUMsrc/calibre/ebooks/metadata/xisbn.py40CODE
MEDIUMsrc/calibre/ebooks/metadata/xisbn.py41CODE
MEDIUMsrc/calibre/ebooks/metadata/xisbn.py47CODE
MEDIUMsrc/calibre/ai/open_router/config.py277CODE
MEDIUMsrc/odf/odf2moinmoin.py299CODE
MEDIUMsrc/odf/odf2moinmoin.py300CODE
MEDIUMsrc/odf/odf2moinmoin.py301CODE
MEDIUMsrc/odf/odf2moinmoin.py302CODE
MEDIUMsrc/odf/odf2moinmoin.py306CODE
MEDIUMsrc/odf/odf2moinmoin.py542CODE
MEDIUMsrc/odf/odf2moinmoin.py552CODE
MEDIUMsrc/odf/odf2xhtml.py791CODE
MEDIUMsrc/odf/odf2xhtml.py798CODE
Redundant / Tautological Comments46 hits · 62 pts
SeverityFileLineSnippetContext
LOWresources/calibre-portable.sh63 # Check if user has disabled cleanupCOMMENT
LOWresources/default_tweaks.py385# Set this to True to ensure that tags in 'Tags to add when addingCOMMENT
LOWsrc/calibre/prints.py76 # Set base_time to the current monotonic time if it hasn't been setCOMMENT
LOWsrc/calibre/prints.py80 # Check if debugging is enabledCOMMENT
LOWsrc/calibre/ebooks/odt/input.py198 # Check if we have only class selectors for this ruleCOMMENT
LOWsrc/calibre/ebooks/mobi/writer8/skeleton.py218 # Set this to a list to enable dumping of the original and rebuiltCOMMENT
LOWsrc/calibre/ebooks/pdf/reflow.py755 # Set margins to values that will get adjustedCOMMENT
LOWsrc/calibre/ebooks/oeb/stylizer.py416 # Check if either height or width is not defaultCOMMENT
LOWsrc/calibre/ebooks/oeb/transforms/metadata.py202 # Check if the resulting HTML has no content, if so remove itCOMMENT
LOWsrc/calibre/ebooks/oeb/polish/cover.py484 # Check if the first item in the spine is a simple cover wrapperCOMMENT
LOWsrc/calibre/ebooks/snb/snbfile.py80 # Read filesCOMMENT
LOWsrc/calibre/ebooks/snb/snbfile.py287 # Write file end markCOMMENT
LOWsrc/calibre/ebooks/conversion/plugins/epub_input.py186 # Check if the cover specified in the guide is alsoCOMMENT
LOWsrc/calibre/ebooks/conversion/plugins/htmlz_input.py48 # Set index to the first HTML file found if it's notCOMMENT
LOWsrc/calibre/ebooks/docx/index.py34 # Check if the xe field is contained inside a bookmark with theCOMMENT
LOWsrc/calibre/ebooks/docx/cleanup.py218 # Check if the first image in the document is possibly a coverCOMMENT
LOWsrc/calibre/library/database2.py699 # Check if the metadata used to construct paths has changedSTRING
LOWsrc/calibre/utils/zipfile.py387 # Set these to zero because we write them after the file dataCOMMENT
LOWsrc/calibre/utils/zipfile.py791 # Check if we were passed a file-like objectCOMMENT
LOWsrc/calibre/utils/formatter.py770 # Check if we have a keyword-type expressionCOMMENT
LOWsrc/calibre/utils/formatter.py800 # Check if it is a known one. We do this here so error reporting isCOMMENT
LOWsrc/calibre/utils/img.py303 # Check if we were minifiedCOMMENT
LOWsrc/calibre/gui2/momentum_scroll.py270 # Check if we should stopCOMMENT
LOWsrc/calibre/gui2/__init__.py904 # Set skip_dialog_name to a unique name for this dialogCOMMENT
LOWsrc/calibre/gui2/__init__.py905 # Set skip_dialog_msg to a message displayed to the userCOMMENT
LOWsrc/calibre/gui2/tweak_book/editor/syntax/html.py121 # Check if we should still be bold or italicCOMMENT
LOWsrc/calibre/gui2/tweak_book/editor/smarts/html.py867 # Check if we are in comment/PI/etc.COMMENT
LOW…bre/gui2/preferences/look_feel_tabs/tb_partitioning.py48 # Check if setting not migrated yetCOMMENT
LOWsrc/calibre/gui2/tag_browser/ui.py93 # Check if the current cell is a category. If so, show an action for itCOMMENT
LOWsrc/calibre/gui2/tag_browser/model.py1742 # Check if the new name with the same category already exists. IfCOMMENT
LOWsrc/calibre/gui2/tag_browser/view.py489 # Check if we are moving the focus and we are at the beginning or theSTRING
LOWsrc/calibre/gui2/tag_browser/view.py621 # Check if one of the link or note icons was clicked. If so, deal withSTRING
LOWsrc/calibre/gui2/tag_browser/view.py1773 # Check if this is an intra-hierarchical-category drag/dropSTRING
LOWsrc/calibre/gui2/library/models.py120 # Check if the correct themed icon exists.COMMENT
LOWsrc/calibre/gui2/fts/cards.py486 # Assign cards to rowsCOMMENT
LOWsrc/calibre/gui2/dialogs/template_dialog_code_widget.py195 # Check if there is a selection. If not then only Shift-Tab is validCOMMENT
LOWsrc/calibre/gui2/dialogs/quickview.py591 # Check if we are in the GridView and there are no values for theCOMMENT
LOWsrc/calibre/db/cache.py1332 # Check if virtual_libraries_for_books rebuilt its cache. If it did thenSTRING
LOWsrc/calibre/db/tables.py298 # Check if all the books with the item are in the restriction. IfCOMMENT
LOWsrc/calibre/db/tables.py445 # Check if all the books with the item are in the restriction. IfCOMMENT
LOWsrc/calibre/devices/interface.py97 # Set this to None if the books on the device are files that the GUI canCOMMENT
LOWsrc/calibre/devices/kindle/driver.py537 # Check if we need to put the apnx into a sidecar dirCOMMENT
LOW…x_page_generator/generators/accurate_page_generator.py67 # Check if we are starting or stopping a p tag.COMMENT
LOWsrc/calibre/devices/smart_device_app/driver.py937 # Check if we have another UUID with the same lpath. If so, remove itCOMMENT
LOWsrc/calibre/devices/smart_device_app/driver.py1140 # Set up to recheck the sync columnsCOMMENT
LOWsrc/calibre/devices/mtp/unix/driver.py113 # Check if the currently connected device is still presentCOMMENT
AI Structural Patterns52 hits · 50 pts
SeverityFileLineSnippetContext
LOWsetup/polib.py333CODE
LOWsetup/polib.py886CODE
LOWsetup/polib.py1056CODE
LOWbypy/macos/__main__.py238CODE
LOWsrc/calibre/ebooks/lrf/meta.py514CODE
LOWsrc/calibre/ebooks/rtf/rtfml.py130CODE
LOWsrc/calibre/ebooks/txt/txtml.py83CODE
LOWsrc/calibre/ebooks/mobi/writer8/exth.py45CODE
LOWsrc/calibre/ebooks/oeb/base.py1629CODE
LOWsrc/calibre/ebooks/oeb/polish/kepubify.py658CODE
LOWsrc/calibre/ebooks/oeb/polish/images.py264CODE
LOWsrc/calibre/ebooks/rtf2xml/ParseRtf.py125CODE
LOWsrc/calibre/ebooks/rtf2xml/hex_2_utf8.py29CODE
LOWsrc/calibre/ebooks/metadata/toc.py50CODE
LOWsrc/calibre/ebooks/metadata/book/render.py152CODE
LOWsrc/calibre/ebooks/metadata/sources/search_engines.py249CODE
LOWsrc/calibre/ebooks/pml/pmlml.py106CODE
LOWsrc/calibre/ebooks/pml/pmlconverter.py691CODE
LOWsrc/calibre/ebooks/rb/rbml.py75CODE
LOWsrc/calibre/library/database2.py2980CODE
LOWsrc/calibre/library/__init__.py15CODE
LOWsrc/calibre/library/save_to_disk.py257CODE
LOWsrc/calibre/utils/titlecase.py101CODE
LOWsrc/calibre/utils/ffml_processor.py351CODE
LOWsrc/calibre/utils/config_base.py154CODE
LOWsrc/calibre/utils/config_base.py260CODE
LOWsrc/calibre/utils/certgen.py13CODE
LOWsrc/calibre/utils/certgen.py63CODE
LOWsrc/calibre/utils/img.py237CODE
LOWsrc/calibre/utils/smtp.py169CODE
LOWsrc/calibre/utils/ipc/simple_worker.py217CODE
LOWsrc/calibre/gui2/win_file_dialogs.py112CODE
LOWsrc/calibre/gui2/__init__.py896CODE
LOWsrc/calibre/gui2/ebook_download.py84CODE
LOWsrc/calibre/gui2/proceed.py397CODE
LOWsrc/calibre/gui2/qt_file_dialogs.py33CODE
LOWsrc/calibre/gui2/tag_browser/model.py52CODE
LOWsrc/calibre/gui2/tag_browser/view.py675CODE
LOWsrc/calibre/gui2/dialogs/confirm_delete.py95CODE
LOWsrc/calibre/gui2/dialogs/message_box.py112CODE
LOWsrc/calibre/gui2/dialogs/template_dialog.py604CODE
LOWsrc/calibre/gui2/metadata/diff.py665CODE
LOWsrc/calibre/db/categories.py36CODE
LOWsrc/calibre/db/cli/main.py59CODE
LOWsrc/calibre/srv/metadata.py120CODE
LOWsrc/calibre/srv/routes.py112CODE
LOWsrc/calibre/srv/tests/auth.py68CODE
LOWsrc/calibre/devices/kobo/books.py17CODE
LOWsrc/calibre/devices/kobo/driver.py3311CODE
LOWsrc/calibre/devices/kobo/driver.py3262CODE
LOWsrc/tinycss/tokenizer.py19CODE
LOWsrc/css_selectors/parser.py676CODE
AI Slop Vocabulary14 hits · 24 pts
SeverityFileLineSnippetContext
LOWresources/calibre-portable.sh31# To use your own structure, simply set the variables in the generated configuration file.COMMENT
MEDIUMsrc/calibre/ebooks/fb2/__init__.py16 # Try a more robust version (adapted from FBReader sources)COMMENT
LOWsrc/calibre/ebooks/comic/input.py77 # levels, in which case simply use the filenames.COMMENT
MEDIUMsrc/calibre/ebooks/djvu/djvubzzdec.py56//C- | any greater extent that may be necessary to utilize furtherCOMMENT
LOWsrc/calibre/ebooks/metadata/odt.py270 # if opf.metadata prop is false, just use the first image thatCOMMENT
MEDIUMsrc/calibre/ebooks/metadata/zip.py71 # enough to make it more robustCOMMENT
LOWsrc/calibre/ebooks/pml/pmlml.py379 # block isn't a real tag we just useCOMMENT
LOWsrc/calibre/spell/dictionary.py184 # Now just return any dictionary that matches the language, preferring userCOMMENT
LOWsrc/calibre/utils/zipfile.py219 # end-of-archive record, so just return the end record we were given.COMMENT
MEDIUMsrc/calibre/utils/icu.py336remove_accents = remove_accents_regex # more robust and fasterCODE
MEDIUMsrc/calibre/utils/tdir_in_cache.py106 """Create a temp dir inside cache_dir/base. The created dir is robustSTRING
LOWsrc/calibre/gui2/markdown_syntax_highlighter.py137 # If empty line no need to check for below elements just returnCOMMENT
MEDIUMsrc/calibre/db/cache.py1825 # We utilize the search restriction cache to speed this upSTRING
LOWsrc/calibre/devices/smart_device_app/driver.py1813 # This is a special case where the user just set a sync column. InCOMMENT
Fake / Example Data26 hits · 20 pts
SeverityFileLineSnippetContext
LOWresources/stylelint-bundle.min.js10var lf={}.hasOwnProperty,uf=/[ -,\.\/:-@\[-\^`\{-~]/,cf=/[ -,\.\/:-@\[\]\^`\{-~]/,df=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![aCODE
LOWsrc/calibre/ebooks/metadata/test_author_sort.py77 self.check_all_methods('Jane Doe', invert='Doe, Jane', nocomma='Doe Jane')CODE
LOWsrc/calibre/gui2/device.py148 super().__init__('placeholder')CODE
LOWsrc/odf/elementtypes.py83 (TEXTNS, 'placeholder'),CODE
LOWsrc/odf/elementtypes.py240 (PRESENTATIONNS, 'placeholder'),CODE
LOWsrc/odf/grammar.py1075 (PRESENTATIONNS, 'placeholder'): (),STRING
LOWsrc/odf/grammar.py1293 (STYLENS, 'presentation-page-layout'): ((PRESENTATIONNS, 'placeholder'),),STRING
LOWsrc/odf/grammar.py1752 (TEXTNS, 'placeholder'),STRING
LOWsrc/odf/grammar.py1992 (TEXTNS, 'placeholder'),STRING
LOWsrc/odf/grammar.py2345 (TEXTNS, 'placeholder'),STRING
LOWsrc/odf/grammar.py2406 (TEXTNS, 'placeholder'): (),STRING
LOWsrc/odf/grammar.py2495 (TEXTNS, 'placeholder'),STRING
LOWsrc/odf/grammar.py2690 (TEXTNS, 'placeholder'),STRING
LOWsrc/odf/grammar.py2915 (TEXTNS, 'placeholder'),STRING
LOWsrc/odf/grammar.py3162 (PRESENTATIONNS, 'placeholder'): (STRING
LOWsrc/odf/grammar.py3419 (TEXTNS, 'placeholder'): ((TEXTNS, 'placeholder-type'),),STRING
LOWsrc/odf/grammar.py4437 (PRESENTATIONNS, 'placeholder'),STRING
LOWsrc/odf/grammar.py4638 (PRESENTATIONNS, 'placeholder'),STRING
LOWsrc/odf/grammar.py5392 (PRESENTATIONNS, 'placeholder'): (STRING
LOWsrc/odf/grammar.py7116 (TEXTNS, 'placeholder'): (STRING
LOWsrc/odf/presentation.py81 return Element(qname=(PRESENTATIONNS, 'placeholder'), **args)CODE
LOWsrc/odf/attrconverters.py900 ((PRESENTATIONNS, 'placeholder'), None): cnv_boolean,CODE
LOWsrc/odf/text.py453 return Element(qname=(TEXTNS, 'placeholder'), **args)CODE
LOWsrc/tinycss/tests/tokenizing.py195 (r'"Lore\m Ipsum"', [('STRING', 'Lorem Ipsum')]), # or not specialCODE
LOWsrc/tinycss/tests/tokenizing.py196 (r'"Lorem \49psum"', [('STRING', 'Lorem Ipsum')]),CODE
LOWsrc/tinycss/tests/tokenizing.py197 (r'"Lorem \49 psum"', [('STRING', 'Lorem Ipsum')]),CODE
Verbosity Indicators5 hits · 9 pts
SeverityFileLineSnippetContext
LOWsrc/calibre/devices/smart_device_app/driver.py1781 # We need to check if our attributes are in the book. If they are notCOMMENT
LOWsrc/perfect-hashing/frozen/bits/pmh.h52 // Step 0: Bucket max is 2 * sqrt MCOMMENT
LOWsrc/perfect-hashing/frozen/bits/pmh.h186 // Step 1: Place all of the keys into bucketsCOMMENT
LOWsrc/perfect-hashing/frozen/bits/pmh.h189 // Step 2: Sort the buckets to process the ones with the most items first.COMMENT
LOWsrc/perfect-hashing/frozen/bits/pmh.h200 // Step 3: Map the items in buckets into hash tables.COMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHsrc/calibre/devices/winusb.py1037 # Note that I have observed that this failsCOMMENT
Structural Annotation Overuse4 hits · 8 pts
SeverityFileLineSnippetContext
LOWsrc/perfect-hashing/frozen/bits/pmh.h52 // Step 0: Bucket max is 2 * sqrt MCOMMENT
LOWsrc/perfect-hashing/frozen/bits/pmh.h186 // Step 1: Place all of the keys into bucketsCOMMENT
LOWsrc/perfect-hashing/frozen/bits/pmh.h189 // Step 2: Sort the buckets to process the ones with the most items first.COMMENT
LOWsrc/perfect-hashing/frozen/bits/pmh.h200 // Step 3: Map the items in buckets into hash tables.COMMENT
Slop Phrases4 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMresources/default_tweaks.py203# without changing anything is sufficient to change the sort. Or you can useCOMMENT
LOWsrc/calibre/ebooks/rtf2xml/paragraph_def.py553 tokens. (And don't forget to set the text string to ''!)STRING
LOWsrc/calibre/devices/__init__.py192 out("Don't forget to send the contents of /tmp/ioreg.txt")CODE
LOWsrc/calibre/devices/kobo/driver.py4407 # Don't forget to merge that on top of the common dictionary (c.f., https://stackoverflow.com/q/38987)COMMENT
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsrc/calibre/utils/threadpool.py278 def do_something(data):CODE
LOWsrc/calibre/gui2/dialogs/choose_library.py130 def perform_action(self, ac, loc):CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWbypy/windows/XUnzip.cpp519// Usage example:COMMENT