Repository Analysis

kovidgoyal/calibre

The official source code repository for the calibre ebook manager

12.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,338 GitHub stars. SynthScan v2.0 examined 621,439 lines of code across 1739 source files, recording 6562 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 12.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).

12.3
Adjusted Score
12.3
Raw Score
100%
Time Factor
2026-07-14
Last Push
25.3K
Stars
Python
Language
621.4K
Lines of Code
1.7K
Files
6.6K
Pattern Hits
2026-07-14
Scan Date
0.12
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 14HIGH 187MEDIUM 463LOW 5898

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 6562 distinct pattern matches across 23 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 Wrapping2485 hits · 2645 pts
SeverityFileLineSnippetContext
LOWsetup/build.py621 except Exception:STRING
MEDIUMsetup/build.py623 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.py121 except Exception:CODE
LOWsetup/hosting.py171 except Exception:CODE
LOWsetup/upload.py282 except Exception:CODE
LOWsetup/upload.py291 except Exception:CODE
LOWsetup/build_environment.py88 except Exception:CODE
LOWsetup/plugins_mirror.py48except Exception:CODE
LOWsetup/plugins_mirror.py291 except Exception:CODE
LOWsetup/plugins_mirror.py303 except Exception:CODE
LOWsetup/plugins_mirror.py450 except Exception:CODE
LOWsetup/plugins_mirror.py690 except Exception:STRING
MEDIUMsetup/plugins_mirror.py160def load_plugins_index():CODE
LOWsetup/polib.py1508 except Exception:CODE
LOWsetup/__init__.py91 except Exception:CODE
LOWsetup/__init__.py108 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.py31 except Exception as err:CODE
LOWsetup/git_commit_msg_hook.py48 except Exception:CODE
LOWsetup/resources.py185 except Exception:CODE
LOWsetup/resources.py198 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.py54 except Exception:CODE
LOWbypy/windows/site.py84 except Exception:CODE
LOWsrc/calibre/rpdb.py98 except Exception:CODE
LOWsrc/calibre/startup.py87 except Exception:CODE
LOWsrc/calibre/startup.py157 except Exception:CODE
LOWsrc/calibre/startup.py162 except Exception:CODE
LOWsrc/calibre/startup.py196 except Exception:CODE
MEDIUMsrc/calibre/startup.py126def spawnv_passfds(path, args, passfds):CODE
LOWsrc/calibre/ptempfile.py60 except Exception:CODE
LOWsrc/calibre/ptempfile.py230 except Exception:CODE
MEDIUMsrc/calibre/ptempfile.py227def __del__(self):CODE
LOWsrc/calibre/constants.py58except Exception:CODE
LOWsrc/calibre/constants.py95 except Exception:CODE
LOWsrc/calibre/constants.py111 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.py410 except Exception:CODE
MEDIUMsrc/calibre/constants.py406def cleanup_cdir():CODE
LOWsrc/calibre/__init__.py276 except Exception:CODE
LOWsrc/calibre/__init__.py304 except Exception:CODE
LOWsrc/calibre/__init__.py520 except Exception:CODE
LOWsrc/calibre/__init__.py524 except Exception:CODE
LOWsrc/calibre/__init__.py527 except Exception:CODE
LOWsrc/calibre/__init__.py538 except Exception:CODE
2425 more matches not shown…
Deep Nesting1734 hits · 1562 pts
SeverityFileLineSnippetContext
LOWsetup.py63CODE
LOWsetup/build.py89CODE
LOWsetup/build.py128CODE
LOWsetup/build.py243CODE
LOWsetup/linux-installer.py461CODE
LOWsetup/linux-installer.py583CODE
LOWsetup/hosting.py262CODE
LOWsetup/hosting.py183CODE
LOWsetup/hyphenation.py24CODE
LOWsetup/hyphenation.py85CODE
LOWsetup/check.py112CODE
LOWsetup/upload.py320CODE
LOWsetup/build_environment.py20CODE
LOWsetup/plugins_mirror.py103CODE
LOWsetup/plugins_mirror.py173CODE
LOWsetup/plugins_mirror.py216CODE
LOWsetup/plugins_mirror.py244CODE
LOWsetup/plugins_mirror.py388CODE
LOWsetup/polib.py156CODE
LOWsetup/polib.py455CODE
LOWsetup/polib.py989CODE
LOWsetup/polib.py1313CODE
LOWsetup/polib.py1547CODE
LOWsetup/polib.py1636CODE
LOWsetup/polib.py1705CODE
LOWsetup/wincross.py159CODE
LOWsetup/wincross.py218CODE
LOWsetup/wincross.py311CODE
LOWsetup/wincross.py420CODE
LOWsetup/wincross.py54CODE
LOWsetup/translations.py108CODE
LOWsetup/translations.py152CODE
LOWsetup/translations.py344CODE
LOWsetup/translations.py390CODE
LOWsetup/translations.py485CODE
LOWsetup/translations.py531CODE
LOWsetup/translations.py677CODE
LOWsetup/git_hooks.py84CODE
LOWsetup/win-ci.py94CODE
LOWsetup/vcvars.py85CODE
LOWsetup/unix-ci.py277CODE
LOWsetup/changelog.py117CODE
LOWsetup/piper.py24CODE
LOWsetup/resources.py104CODE
LOWsetup/install.py254CODE
LOWsetup/parallel_build.py51CODE
LOWsetup/parallel_build.py76CODE
LOWsetup/gui.py24CODE
LOWsetup/publish.py292CODE
LOWmanual/custom.py340CODE
LOWmanual/template_ref_generate.py53CODE
LOWmanual/plugin_examples/editor_demo/main.py70CODE
LOW.github/workflows/macos_crash_report.py274CODE
LOW.github/workflows/macos_crash_report.py309CODE
LOW.github/workflows/macos_crash_report.py364CODE
LOWbypy/macos/__main__.py287CODE
LOWbypy/macos/__main__.py666CODE
LOWbypy/macos/__main__.py724CODE
LOWbypy/linux/site.py20CODE
LOWbypy/linux/__main__.py97CODE
1674 more matches not shown…
Hyper-Verbose Identifiers1159 hits · 1105 pts
SeverityFileLineSnippetContext
LOWresources/templates/kobo.js114function paginateAndMaintainProgress()CODE
LOWresources/templates/kobo.js199function estimateFirstAnchorForPageNumber(page)CODE
LOWresources/templates/kobo.js219function estimatePageNumberForAnchor(spanId)CODE
LOWsetup/build.py683 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.py140 def get_content_server_strings(self):CODE
LOWsetup/translations.py390 def compile_main_translations(self):CODE
LOWsetup/translations.py485 def compile_content_server_translations(self):CODE
LOWsetup/translations.py531 def _compile_website_translations(self, name='website', threshold=50):CODE
LOWsetup/translations.py586 def compile_website_translations(self):CODE
LOWsetup/translations.py595 def compile_changelog_translations(self):CODE
LOWsetup/translations.py598 def compile_user_manual_translations(self):CODE
LOWsetup/translations.py677 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.py226def 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.py364 def application_specific_information(self) -> str | None:CODE
LOW.github/workflows/macos_crash_report.py427def 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.py471def get_windows_user_locale_name():CODE
LOWsrc/calibre/constants.py475def get_windows_number_formats():CODE
LOWsrc/calibre/gui_launch.py48def register_with_default_programs():STRING
LOWsrc/calibre/gui_launch.py77def is_possible_media_pack_error(e):STRING
LOWsrc/calibre/test_build.py594def test_webengine_worker_main():CODE
LOWsrc/calibre/linux.py855 def setup_desktop_integration(self): # {{{CODE
LOWsrc/calibre/linux.py864 def do_setup_desktop_integration(self):CODE
LOWsrc/calibre/scraper/test_fetch_backend.py97 def test_recipe_browser_webengine(self):CODE
LOWsrc/calibre/ebooks/html_transform_rules.py444def transform_conversion_book(oeb, opts, serialized_rules):CODE
LOWsrc/calibre/ebooks/html_transform_rules.py564 def test_html_transform_actions(self):STRING
LOWsrc/calibre/ebooks/chardet.py53def strip_encoding_declarations(raw, limit=50*1024, preserve_newlines=False):CODE
LOWsrc/calibre/ebooks/chardet.py72def replace_encoding_declarations(raw, enc='utf-8', limit=50*1024):CODE
LOWsrc/calibre/ebooks/__init__.py55def extract_cover_from_embedded_svg(html, base, log):CODE
LOWsrc/calibre/ebooks/__init__.py97def 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.py2179 def test_html_entity_replacement(self):CODE
LOWsrc/calibre/ebooks/css_transform_rules.py128def parse_css_length_or_number(raw, default_unit=None):CODE
LOWsrc/calibre/ebooks/lrf/html/convert_from.py1794 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.py93 def prepare_string_for_markdown(self, txt):CODE
LOWsrc/calibre/ebooks/txt/processor.py137def convert_markdown_with_metadata(txt, title='', extensions=DEFAULT_MD_EXTENSIONS):CODE
LOWsrc/calibre/ebooks/txt/processor.py186def separate_paragraphs_single_line(txt):CODE
LOWsrc/calibre/ebooks/txt/processor.py191def separate_paragraphs_print_formatted(txt):CODE
LOWsrc/calibre/ebooks/txt/processor.py196def separate_hard_scene_breaks(txt):CODE
LOWsrc/calibre/ebooks/txt/processor.py358def get_images_from_polyglot_text(txt: str, base_dir: str = '', file_ext: str = 'txt') -> set:CODE
LOWsrc/calibre/ebooks/txt/textileml.py221 def prepare_string_for_textile(self, txt):CODE
LOWsrc/calibre/ebooks/mobi/utils.py643def convert_color_for_font_tag(val):CODE
LOWsrc/calibre/ebooks/mobi/reader/markup.py262def insert_images_into_markup(parts, resource_map, log):CODE
LOWsrc/calibre/ebooks/mobi/reader/mobi6.py804 def warn_about_trailing_entry_corruption(self):STRING
LOWsrc/calibre/ebooks/mobi/writer8/toc.py35def find_previous_calibre_inline_toc(oeb):STRING
LOWsrc/calibre/ebooks/mobi/writer8/index.py115 def calculate_control_bytes_for_each_entry(cls, entries):STRING
LOWsrc/calibre/ebooks/mobi/writer8/skeleton.py132 def calculate_insert_positions(self):CODE
LOWsrc/calibre/ebooks/mobi/writer8/tbs.py114def encode_strands_as_sequences(strands, tbs_type=8):CODE
LOWsrc/calibre/ebooks/mobi/writer8/tbs.py195def apply_trailing_byte_sequences(index_table, records, text_record_lengths):CODE
LOWsrc/calibre/ebooks/mobi/writer8/main.py254 def replace_internal_links_with_placeholders(self):CODE
LOWsrc/calibre/ebooks/mobi/writer2/indexer.py832 def calculate_trailing_byte_sequences(self):CODE
1099 more matches not shown…
Cross-Language Confusion119 hits · 636 pts
SeverityFileLineSnippetContext
HIGHsetup/linux-installer.py647 stdout=null, stdin=subprocess.PIPE, close_fds=True, preexec_fn=lambda:STRING
HIGHicons/icns/make_iconsets.py145 subprocess.check_call(['ssh', 'ox', 'sh', '-c', '~/bin/update-calibre && python3 ~/calibre-src/icons/icns/make_iCODE
HIGHsrc/calibre/linux.py461 _zip_cache_list=( ${{(f)"$(zipinfo -1 $_zip_cache_name 2>/dev/null)"}} )CODE
HIGHsrc/calibre/linux.py466 _multi_parts / _zip_cache_list && return 0CODE
HIGHsrc/calibre/linux.py648 pattern="$(basename ${pattern} 2> /dev/null)"CODE
HIGHsrc/calibre/linux.py649 search="$(dirname ${search} 2> /dev/null)"CODE
HIGHsrc/calibre/linux.py657 listing="$(ebook-device ls ${search} 2>/dev/null)"CODE
HIGHsrc/calibre/ebooks/covers.py300 mem = {f:getattr(obj, f, null) for f in fields}STRING
HIGHsrc/calibre/ebooks/covers.py305 if val is null:STRING
HIGHsrc/calibre/ebooks/render_html.py42 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.py352 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.py537 ans = self.href_to_name_cache.get(key, null)CODE
HIGHsrc/calibre/ebooks/oeb/polish/container.py538 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.py137 percent is the percentage of lines that should be in a single bucket to return trueSTRING
HIGHsrc/calibre/ebooks/metadata/opf3_test.py378 "rec_index": 29, "#extra#": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py381 {"number_format": null}, "search_terms":CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py386 "custom_column_12", "is_multiple": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py391 "rec_index": 26, "#extra#": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py400 "is_multiple": null, "is_category": true}"/>CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py405 "#extra#": null, "colnum": 13,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py432 "is_multiple": null, "is_category": false}"/>CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py436 "rec_index": 30, "#extra#": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py444 "custom_column_1", "is_multiple": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py478 "rec_index": 34, "#extra#": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py486 "is_multiple": null, "is_category": false}"/>CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py490 "rec_index": 28, "#extra#": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py416 "is_multiple": null, "is_category": false}"/>CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py420 "rec_index": 25, "#extra#": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py457 "custom_column_5", "is_multiple": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py462 "rec_index": 33, "#extra#": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py501 "is_multiple": null, "is_category": true}"/>CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py505 "rec_index": 27, "#extra#": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py517 "is_multiple": null, "is_category": false}"/>CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py521 "rec_index": 22, "#extra#": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py537 "rec_index": 24, "#extra#": null,CODE
HIGHsrc/calibre/ebooks/metadata/opf3_test.py548 "custom_column_2", "is_multiple": null,CODE
HIGHsrc/calibre/ebooks/docx/fields.py64 last_option = field_map.get(token[1], null)CODE
HIGHsrc/calibre/ebooks/docx/fields.py73 ans.pop(null, None)CODE
HIGHsrc/calibre/web/site_parsers/nytimes.py210 'null}}',CODE
HIGHsrc/calibre/utils/forked_map.py124 stack.push(w)CODE
HIGHsrc/calibre/utils/rapydscript.py109 return null;CODE
HIGHsrc/calibre/utils/winreg/lib.py59 def __init__(self, name, typ, default=null, in_arg=True):CODE
HIGHsrc/calibre/utils/winreg/lib.py61 if default is null:CODE
HIGHsrc/calibre/utils/winreg/dde.py99 def __init__(self, name, typ, default=null, in_arg=True):CODE
HIGHsrc/calibre/utils/winreg/dde.py101 if default is null:CODE
HIGHsrc/calibre/gui2/widgets2.py402 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__.py1575 cmd = [x.replace('%u', qurl.toString()) for x in opener]CODE
HIGHsrc/calibre/gui2/comments_editor.py1259 block_len = block.length() # includes block separatorCODE
HIGHsrc/calibre/gui2/comments_editor.py1282 flen = frag.length()CODE
HIGHsrc/calibre/gui2/qt_file_dialogs.py119 return url.toString()CODE
HIGHsrc/calibre/gui2/tweak_book/preview.py292 if (settings.bg || settings.fg || settings.link) using_custom_colors = true;CODE
HIGHsrc/calibre/gui2/tweak_book/preview.py293 if (settings.is_dark_theme && using_custom_colors) { css = ':root { color-scheme: dark; }' + css; }CODE
HIGHsrc/calibre/gui2/tweak_book/preview.py363 prints('Blocking navigation request to:', url.toString())STRING
HIGHsrc/calibre/gui2/tweak_book/check_links.py160 url = qurl.toString()CODE
HIGHsrc/calibre/gui2/tweak_book/editor/canvas.py276 self.undo_stack.push(Replace(x.toImage(), _('Drop image'), self))CODE
HIGHsrc/calibre/gui2/tweak_book/editor/canvas.py285 self.undo_stack.push(Replace(img, _('Drop image'), self))CODE
HIGHsrc/calibre/gui2/tweak_book/editor/canvas.py381 self.undo_stack.push(Replace(img, _('Paste image'), self))CODE
HIGHsrc/calibre/gui2/tweak_book/editor/canvas.py403 self.undo_stack.push(Trim(self))CODE
59 more matches not shown…
Cross-File Repetition67 hits · 335 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
7 more matches not shown…
Unused Imports300 hits · 296 pts
SeverityFileLineSnippetContext
LOWsetup/linux-installer.py4CODE
LOWsetup/linux-installer.py4CODE
LOWsetup/linux-installer.py4CODE
LOWsetup/linux-installer.py4CODE
LOWsetup/commands.py74CODE
LOWbypy/windows/__main__.py18CODE
LOWsrc/calibre/test_build.py113CODE
LOWsrc/calibre/ebooks/BeautifulSoup.py6CODE
LOWsrc/calibre/ebooks/BeautifulSoup.py6CODE
LOWsrc/calibre/ebooks/BeautifulSoup.py6CODE
LOWsrc/calibre/ebooks/BeautifulSoup.py6CODE
LOWsrc/calibre/ebooks/BeautifulSoup.py6CODE
LOWsrc/calibre/ebooks/BeautifulSoup.py6CODE
LOWsrc/calibre/ebooks/BeautifulSoup.py6CODE
LOWsrc/calibre/ebooks/BeautifulSoup.py6CODE
LOWsrc/calibre/ebooks/oeb/polish/tests/main.py16CODE
LOWsrc/calibre/ebooks/conversion/plumber.py1038CODE
LOWsrc/calibre/ebooks/conversion/plugins/pdf_output.py154CODE
LOWsrc/calibre/ebooks/metadata/opf3_test.py61CODE
LOWsrc/calibre/ebooks/metadata/opf3_test.py61CODE
LOWsrc/calibre/ebooks/metadata/sources/edelweiss.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/edelweiss.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/edelweiss.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/edelweiss.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/openlibrary.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/openlibrary.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/openlibrary.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/openlibrary.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/__init__.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/__init__.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/__init__.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/__init__.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/google_images.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/google_images.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/google_images.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/google_images.py3CODE
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.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/test.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/test.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/test.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/prefs.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/prefs.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/prefs.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/prefs.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/covers.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/covers.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/covers.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/covers.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/base.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/base.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/base.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/base.py3CODE
LOWsrc/calibre/ebooks/metadata/sources/search_engines.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
240 more matches not shown…
Over-Commented Block320 hits · 293 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.py81 'Software', 'Games', 'Entertainment', 'Media', 'Studios',COMMENT
LOWresources/default_tweaks.py101# the list because although it is guaranteed that author and series names areCOMMENT
LOWresources/default_tweaks.py121# values that are obtained by using a suffix. For example, first.name for anCOMMENT
LOWresources/default_tweaks.py141# For example, set it to [('authors',0),('title',0)] to sort byCOMMENT
LOWresources/default_tweaks.py161# mm the minutes with a leading 0 (00 to 59)COMMENT
LOWresources/default_tweaks.py181# Control title and series sorting in the library view. If set toCOMMENT
LOWresources/default_tweaks.py201# title will not be changed. If processing series, then if set toCOMMENT
LOWresources/default_tweaks.py261 'ell': (r'O\s+', r'I\s+', r'To\s+', r'Ta\s+', r'Tus\s+', r'Tis\s+',COMMENT
LOWresources/default_tweaks.py281# metadata management is set to automatic. Collections on SONYs are namedCOMMENT
LOWresources/default_tweaks.py301# merging all of the fields into one set of collections.COMMENT
LOWresources/default_tweaks.py321# column lookup names are 'series', '#series_1' and '#series_2'. I want nothingCOMMENT
LOWresources/default_tweaks.py341sony_collection_name_template = '{value}{category:| (|)}'COMMENT
LOWresources/default_tweaks.py361#: Control how tags are applied when copying books to another libraryCOMMENT
LOWresources/default_tweaks.py381# The value used for the fuzz distance when trimming a cover.COMMENT
LOWresources/default_tweaks.py401#: Language to use when sortingCOMMENT
LOWresources/default_tweaks.py421public_smtp_relay_delay = 301COMMENT
LOWresources/default_tweaks.py441# various bugs, for instance the minimum width of the toolbar becomes twiceCOMMENT
LOWresources/default_tweaks.py461#: Change the font size of the Book details panel in the interfaceCOMMENT
LOWresources/default_tweaks.py481default_tweak_format = NoneCOMMENT
LOWresources/default_tweaks.py501# all candidates that contain the text you have already typed. To do this, setCOMMENT
LOWresources/default_tweaks.py521COMMENT
LOWresources/default_tweaks.py541# Examples:COMMENT
LOWresources/default_tweaks.py561# Sets the width of the tab stop in the template editor in "average characters".COMMENT
LOWresources/default_tweaks.py581# using these functions in composites can be very slow.COMMENT
LOWresources/default_tweaks.py601#: East Asian language to use for transliterationCOMMENT
LOWresources/default_tweaks.py621hide_ai_features = FalseCOMMENT
LOWresources/csscolorparser.js1// (c) Dean McNamee <dean@gmail.com>, 2012.COMMENT
LOWsetup/hosting.py401 try:COMMENT
LOWsetup/hosting.py421 # f'root@{server}:{rdir}'])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.py21COMMENT
LOWmanual/plugin_examples/editor_demo/main.py121 # We should also be dealing with the font shorthand property andCOMMENT
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
260 more matches not shown…
Decorative Section Separators51 hits · 159 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.py13# ======================================================================COMMENT
MEDIUMsrc/calibre/ebooks/lit/mssha1.py18# ======================================================================COMMENT
MEDIUMsrc/calibre/ebooks/lit/mssha1.py73# ======================================================================COMMENT
MEDIUMsrc/calibre/ebooks/lit/mssha1.py76# ======================================================================COMMENT
MEDIUMsrc/calibre/ebooks/lit/mssha1.py293# ======================================================================COMMENT
MEDIUMsrc/calibre/ebooks/lit/mssha1.py296# ======================================================================COMMENT
MEDIUMsrc/calibre/devices/usbms/device.py696# ------------------------------------------------------COMMENT
MEDIUMsrc/calibre/devices/usbms/device.py795# ------------------------------------------------------COMMENT
MEDIUMsrc/calibre/devices/usbms/device.py813# ------------------------------------------------------COMMENT
MEDIUMsrc/odf/odfmanifest.py30# -----------------------------------------------------------------------------COMMENT
MEDIUMsrc/odf/odfmanifest.py34# -----------------------------------------------------------------------------COMMENT
MEDIUMsrc/odf/odfmanifest.py85# -----------------------------------------------------------------------------COMMENT
MEDIUMsrc/odf/odfmanifest.py89# -----------------------------------------------------------------------------COMMENT
MEDIUMsrc/odf/odf2moinmoin.py314# -----------------------------------COMMENT
MEDIUMsrc/odf/odf2moinmoin.py388# -----------------------------------COMMENT
MEDIUMsrc/odf/odf2xhtml.py370# -----------------------------------------------------------------------------COMMENT
MEDIUMsrc/odf/odf2xhtml.py374# -----------------------------------------------------------------------------COMMENT
MEDIUMsrc/odf/odf2xhtml.py582# --------------------------------------------------COMMENT
MEDIUMsrc/odf/odf2xhtml.py584# --------------------------------------------------COMMENT
MEDIUMsrc/odf/odf2xhtml.py609# --------------------------------------------------COMMENT
MEDIUMsrc/odf/odf2xhtml.py652# -----------------------------------------------------------------------------COMMENT
MEDIUMsrc/odf/odf2xhtml.py656# -----------------------------------------------------------------------------COMMENT
MEDIUMsrc/odf/odf2xhtml.py1583 # -----------------------------------------------------------------------------COMMENT
MEDIUMsrc/odf/odf2xhtml.py1587 # -----------------------------------------------------------------------------COMMENT
Self-Referential Comments55 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.py32 # This method is called once per plugin, do initial setup hereCOMMENT
MEDIUMmanual/plugin_examples/editor_demo/main.py32 # Create an action, this will be added to the plugins toolbar andCOMMENT
MEDIUMsrc/calibre/ebooks/mobi/writer8/index.py209 # Create the Index Header recordSTRING
MEDIUMsrc/calibre/ebooks/mobi/writer8/skeleton.py201 # Create the SKEL and Chunk tablesCOMMENT
MEDIUMsrc/calibre/ebooks/mobi/writer8/main.py50 # Create an inline ToC if one does not already existCOMMENT
MEDIUMsrc/calibre/ebooks/mobi/writer2/main.py436 # Create the MOBI 6 EXTHCOMMENT
MEDIUMsrc/calibre/ebooks/fb2/fb2ml.py281 # Create main section if there are no others to createCOMMENT
MEDIUMsrc/calibre/ebooks/conversion/plumber.py1062 # Create an OEBBook from the input file. The input plugin does all theSTRING
MEDIUMsrc/calibre/ebooks/metadata/mobi.py260 # Create an updated Record0COMMENT
MEDIUMsrc/calibre/ebooks/metadata/archive.py102 # Create an in-memory BytesIO stream for the fileCOMMENT
MEDIUMsrc/calibre/ebooks/metadata/ereader.py78 # Create a metadata record for the file if one does not already existCOMMENT
MEDIUMsrc/calibre/ebooks/pdb/plucker/reader.py412 # 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.py3045 # Create the temporary tables to store the ids for books and tagsCOMMENT
MEDIUMsrc/calibre/library/custom_columns.py454 # Create the temporary temp_tables to store the ids for books and tagsSTRING
MEDIUMsrc/calibre/library/catalogs/epub_mobi_builder.py1489 # Create a divRunningTag for the next authorCOMMENT
MEDIUMsrc/calibre/library/catalogs/epub_mobi_builder.py1645 # Create a new month anchorCOMMENT
MEDIUMsrc/calibre/library/catalogs/epub_mobi_builder.py1903 # Create a new day anchorCOMMENT
MEDIUMsrc/calibre/library/catalogs/epub_mobi_builder.py2208 # Create an anchor from the tagCOMMENT
MEDIUMsrc/calibre/library/catalogs/epub_mobi_builder.py3292 # Create an NCX article entry for each populated author index letterSTRING
MEDIUMsrc/calibre/library/catalogs/epub_mobi_builder.py3372 # Create an NCX article entry for each date rangeSTRING
MEDIUMsrc/calibre/library/catalogs/epub_mobi_builder.py3406 # Create an NCX article entry for each populated monthSTRING
MEDIUMsrc/calibre/library/catalogs/epub_mobi_builder.py3480 # Create an NCX article entry for each date rangeSTRING
MEDIUMsrc/calibre/library/catalogs/epub_mobi_builder.py3502 # Create an NCX article entry for each populated daySTRING
MEDIUMsrc/calibre/library/catalogs/epub_mobi_builder.py3639 # Create the OPF tagsSTRING
MEDIUMsrc/calibre/library/catalogs/bibtex.py352 # Initialize BibTeX classCOMMENT
MEDIUMsrc/calibre/utils/certgen.py69 # Create the Certificate AuthorityCOMMENT
MEDIUMsrc/calibre/utils/certgen.py76 # Create the server certificate issued by the newly created CACOMMENT
MEDIUMsrc/calibre/gui2/complete2.py638 # Create a Qt user property for the current text so that when this widgetCOMMENT
MEDIUMsrc/calibre/gui2/device.py1877 # Define the cleaning functionCOMMENT
MEDIUMsrc/calibre/gui2/tools.py343 # Create the output fileCOMMENT
MEDIUMsrc/calibre/gui2/tools.py375 # Create a temporary copy of the databases to pass into the generationCOMMENT
MEDIUMsrc/calibre/gui2/__init__.py1145 # This class is present only for backwards compat with third party pluginsCOMMENT
MEDIUMsrc/calibre/gui2/comments_editor.py1251 # Create a cursor at start to find the first blockCOMMENT
MEDIUMsrc/calibre/gui2/tweak_book/editor/widget.py649 # Create the actions that are placed into the editors toolbarsCOMMENT
MEDIUMsrc/calibre/gui2/catalog/catalog_epub_mobi.py1381 # Create a list of prefixes for user selectionCOMMENT
MEDIUMsrc/calibre/gui2/library/alternate_views.py103 # Create a range based selector for each set of contiguous rowsCOMMENT
MEDIUMsrc/calibre/gui2/library/bookshelf_view.py693 # Create a larger image to accommodate the shadowCOMMENT
MEDIUMsrc/calibre/gui2/library/views.py1622 # Create a range based selector for each set of contiguous rowsCOMMENT
MEDIUMsrc/calibre/gui2/convert/gui_conversion.py57 # Create a minimal OptionParser that we can append toCOMMENT
MEDIUMsrc/calibre/gui2/store/search/search.py348 # Create the config dialog. It's going to put two config widgetsCOMMENT
MEDIUMsrc/calibre/db/tests/add_remove.py499 # Create an enumeration column with a default valueCOMMENT
MEDIUMsrc/calibre/srv/metadata.py299 # Create the basic tree, containing all top level categories, userCOMMENT
MEDIUMsrc/calibre/devices/interface.py650 # The following methods are probably called on the GUI thread. Any driverCOMMENT
MEDIUMsrc/calibre/devices/kindle/driver.py630 # Create the sidecar folder if necessaryCOMMENT
MEDIUMsrc/calibre/devices/folder_device/driver.py13# This class is added to the standard device plugin chain, so that it canCOMMENT
MEDIUMsrc/calibre/devices/mtp/test.py79 # Create a folderCOMMENT
MEDIUMsrc/calibre/devices/mtp/test.py88 # Create a sub-folderCOMMENT
MEDIUMsrc/calibre/devices/mtp/test.py117 # Create a folderCOMMENT
MEDIUMsrc/calibre/devices/kobo/driver.py931 # Create a connection to the sqlite databaseCOMMENT
MEDIUMsrc/calibre/devices/kobo/driver.py2667 # 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.py71 # Create the elementCOMMENT
Hallucination Indicators14 hits · 130 pts
SeverityFileLineSnippetContext
CRITICALsrc/calibre/gui2/tweak_book/preview.py560 self.view._page.bridge.request_sync.connect(self.request_sync)STRING
CRITICALsrc/calibre/gui2/tweak_book/preview.py561 self.view._page.bridge.request_split.connect(self.request_split)STRING
CRITICALsrc/calibre/gui2/tweak_book/preview.py562 self.view._page.bridge.live_css_data.connect(self.live_css_data)STRING
CRITICALsrc/calibre/gui2/tweak_book/preview.py563 self.view._page.bridge.bridge_ready.connect(self.on_bridge_ready)STRING
CRITICALsrc/calibre/gui2/tweak_book/boss.py180 self.gui.central.search_panel.search_triggered.connect(self.search)CODE
CRITICALsrc/calibre/gui2/tweak_book/boss.py198 self.gui.central.search_panel.save_search.connect(self.save_search)CODE
CRITICALsrc/calibre/gui2/tweak_book/boss.py199 self.gui.central.search_panel.show_saved_searches.connect(self.show_saved_searches)CODE
CRITICALsrc/calibre/db/cache.py519 self.backend.fts.pool.initialized.wait()CODE
CRITICALsrc/calibre/srv/tests/content.py81 db = server.handler.router.ctx.library_broker.get(None)CODE
CRITICALsrc/calibre/srv/tests/ajax.py40 db = server.handler.router.ctx.library_broker.get(None)CODE
CRITICALsrc/calibre/srv/tests/ajax.py95 db = server.handler.router.ctx.library_broker.get(None)CODE
CRITICALsrc/calibre/srv/tests/ajax.py131 db = server.handler.router.ctx.library_broker.get(None)CODE
CRITICALsrc/calibre/srv/tests/ajax.py165 db = server.handler.router.ctx.library_broker.get(None)CODE
CRITICALsrc/calibre/srv/tests/ajax.py245 db = server.handler.router.ctx.library_broker.get(None)CODE
Redundant / Tautological Comments46 hits · 64 pts
SeverityFileLineSnippetContext
LOWresources/calibre-portable.sh63 # Check if user has disabled cleanupCOMMENT
LOWresources/default_tweaks.py362# 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.py79 # Check if debugging is enabledCOMMENT
LOWsrc/calibre/ebooks/odt/input.py203 # Check if we have only class selectors for this ruleCOMMENT
LOWsrc/calibre/ebooks/mobi/writer8/skeleton.py166 # Set this to a list to enable dumping of the original and rebuiltCOMMENT
LOWsrc/calibre/ebooks/pdf/reflow.py783 # Set margins to values that will get adjustedCOMMENT
LOWsrc/calibre/ebooks/oeb/stylizer.py393 # Check if either height or width is not defaultCOMMENT
LOWsrc/calibre/ebooks/oeb/transforms/metadata.py207 # Check if the resulting HTML has no content, if so remove itCOMMENT
LOWsrc/calibre/ebooks/oeb/polish/cover.py471 # Check if the first item in the spine is a simple cover wrapperCOMMENT
LOWsrc/calibre/ebooks/snb/snbfile.py75 # Read filesCOMMENT
LOWsrc/calibre/ebooks/snb/snbfile.py279 # Write file end markCOMMENT
LOWsrc/calibre/ebooks/conversion/plugins/epub_input.py184 # Check if the cover specified in the guide is alsoCOMMENT
LOWsrc/calibre/ebooks/conversion/plugins/htmlz_input.py52 # Set index to the first HTML file found if it's notCOMMENT
LOWsrc/calibre/ebooks/docx/index.py35 # Check if the xe field is contained inside a bookmark with theCOMMENT
LOWsrc/calibre/ebooks/docx/cleanup.py221 # Check if the first image in the document is possibly a coverCOMMENT
LOWsrc/calibre/library/database2.py669 # Check if the metadata used to construct paths has changedCOMMENT
LOWsrc/calibre/utils/zipfile.py387 # Set these to zero because we write them after the file dataCOMMENT
LOWsrc/calibre/utils/zipfile.py785 # Check if we were passed a file-like objectCOMMENT
LOWsrc/calibre/utils/formatter.py781 # Check if we have a keyword-type expressionCOMMENT
LOWsrc/calibre/utils/formatter.py811 # Check if it is a known one. We do this here so error reporting isCOMMENT
LOWsrc/calibre/utils/img.py290 # Check if we were minifiedCOMMENT
LOWsrc/calibre/gui2/momentum_scroll.py269 # Check if we should stopCOMMENT
LOWsrc/calibre/gui2/__init__.py780 # Set skip_dialog_name to a unique name for this dialogCOMMENT
LOWsrc/calibre/gui2/__init__.py781 # Set skip_dialog_msg to a message displayed to the userCOMMENT
LOWsrc/calibre/gui2/tweak_book/editor/syntax/html.py124 # Check if we should still be bold or italicCOMMENT
LOWsrc/calibre/gui2/tweak_book/editor/smarts/html.py838 # Check if we are in comment/PI/etc.COMMENT
LOW…bre/gui2/preferences/look_feel_tabs/tb_partitioning.py52 # Check if setting not migrated yetCOMMENT
LOWsrc/calibre/gui2/tag_browser/ui.py96 # Check if the current cell is a category. If so, show an action for itCOMMENT
LOWsrc/calibre/gui2/tag_browser/model.py1717 # Check if the new name with the same category already exists. IfCOMMENT
LOWsrc/calibre/gui2/tag_browser/view.py491 # Check if we are moving the focus and we are at the beginning or theSTRING
LOWsrc/calibre/gui2/tag_browser/view.py626 # Check if one of the link or note icons was clicked. If so, deal withSTRING
LOWsrc/calibre/gui2/tag_browser/view.py1574 # Check if this is an intra-hierarchical-category drag/dropSTRING
LOWsrc/calibre/gui2/library/models.py122 # Check if the correct themed icon exists.COMMENT
LOWsrc/calibre/gui2/fts/cards.py459 # Assign cards to rowsCOMMENT
LOWsrc/calibre/gui2/dialogs/template_dialog_code_widget.py190 # Check if there is a selection. If not then only Shift-Tab is validCOMMENT
LOWsrc/calibre/gui2/dialogs/quickview.py604 # Check if we are in the GridView and there are no values for theCOMMENT
LOWsrc/calibre/db/cache.py1318 # Check if virtual_libraries_for_books rebuilt its cache. If it did thenCOMMENT
LOWsrc/calibre/db/tables.py317 # Check if all the books with the item are in the restriction. IfCOMMENT
LOWsrc/calibre/db/tables.py465 # Check if all the books with the item are in the restriction. IfCOMMENT
LOWsrc/calibre/devices/interface.py89 # Set this to None if the books on the device are files that the GUI canCOMMENT
LOWsrc/calibre/devices/kindle/driver.py519 # Check if we need to put the apnx into a sidecar dirCOMMENT
LOW…x_page_generator/generators/accurate_page_generator.py71 # Check if we are starting or stopping a p tag.COMMENT
LOWsrc/calibre/devices/smart_device_app/driver.py891 # Check if we have another UUID with the same lpath. If so, remove itCOMMENT
LOWsrc/calibre/devices/smart_device_app/driver.py1087 # Set up to recheck the sync columnsCOMMENT
LOWsrc/calibre/devices/mtp/unix/driver.py117 # Check if the currently connected device is still presentCOMMENT
Dead Code32 hits · 64 pts
SeverityFileLineSnippetContext
MEDIUMsrc/calibre/ebooks/pdf/reflow.py1208CODE
MEDIUMsrc/calibre/ebooks/pdf/reflow.py1209CODE
MEDIUMsrc/calibre/ebooks/pdf/reflow.py1211CODE
MEDIUMsrc/calibre/ebooks/pdf/reflow.py1213CODE
MEDIUMsrc/calibre/ebooks/pdf/reflow.py1214CODE
MEDIUMsrc/calibre/ebooks/pdf/reflow.py1215CODE
MEDIUMsrc/calibre/ebooks/pdf/reflow.py1225CODE
MEDIUMsrc/calibre/ebooks/pdf/reflow.py1228CODE
MEDIUMsrc/calibre/ebooks/pdf/reflow.py1233CODE
MEDIUMsrc/calibre/ebooks/pdf/reflow.py1234CODE
MEDIUMsrc/calibre/ebooks/pdf/reflow.py1368CODE
MEDIUMsrc/calibre/ebooks/rtf2xml/process_tokens.py735CODE
MEDIUMsrc/calibre/ebooks/rtf2xml/process_tokens.py736CODE
MEDIUMsrc/calibre/ebooks/rtf2xml/process_tokens.py738CODE
MEDIUMsrc/calibre/ebooks/metadata/xisbn.py38CODE
MEDIUMsrc/calibre/ebooks/metadata/xisbn.py39CODE
MEDIUMsrc/calibre/ebooks/metadata/xisbn.py40CODE
MEDIUMsrc/calibre/ebooks/metadata/xisbn.py41CODE
MEDIUMsrc/calibre/ebooks/metadata/xisbn.py43CODE
MEDIUMsrc/calibre/ebooks/metadata/xisbn.py44CODE
MEDIUMsrc/calibre/ebooks/metadata/xisbn.py45CODE
MEDIUMsrc/calibre/ebooks/metadata/xisbn.py51CODE
MEDIUMsrc/calibre/ai/open_router/config.py269CODE
MEDIUMsrc/odf/odf2moinmoin.py303CODE
MEDIUMsrc/odf/odf2moinmoin.py304CODE
MEDIUMsrc/odf/odf2moinmoin.py305CODE
MEDIUMsrc/odf/odf2moinmoin.py306CODE
MEDIUMsrc/odf/odf2moinmoin.py312CODE
MEDIUMsrc/odf/odf2moinmoin.py555CODE
MEDIUMsrc/odf/odf2moinmoin.py566CODE
MEDIUMsrc/odf/odf2xhtml.py791CODE
MEDIUMsrc/odf/odf2xhtml.py798CODE
Modern Structural Boilerplate59 hits · 62 pts
SeverityFileLineSnippetContext
LOWsetup/polib.py26__all__ = ['pofile', 'POFile', 'POEntry', 'mofile', 'MOFile', 'MOEntry',CODE
LOWsetup/commands.py8__all__ = [CODE
LOWsrc/calibre/scraper/qt.py206 def set_user_agent(self, val: str = '') -> None:CODE
LOWsrc/calibre/scraper/qt_backend.py263 def set_user_agent(self, new_val: str) -> None:CODE
LOWsrc/calibre/scraper/qt_backend.py266 def _set_cookie_from_header(self, cookie_string: str) -> None:CODE
LOWsrc/calibre/scraper/qt_backend.py270 def _set_cookies(self, cookies: list[dict[str, str]]) -> None:CODE
LOWsrc/calibre/scraper/webengine_backend.py274 def set_user_agent(self, new_val: str) -> None:STRING
LOWsrc/calibre/scraper/webengine_backend.py284 def _set_cookie_from_header(self, cookie_string: str) -> None:STRING
LOWsrc/calibre/scraper/webengine_backend.py288 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.py26__all__ = ['LitReader']CODE
LOWsrc/calibre/ebooks/lit/writer.py32__all__ = ['LitWriter']CODE
LOWsrc/calibre/ebooks/lit/lzx.py10__all__ = ['Compressor', 'Decompressor', 'LZXError']CODE
LOWsrc/calibre/ebooks/oeb/reader.py60__all__ = ['OEBReader']CODE
LOWsrc/calibre/ebooks/oeb/writer.py14__all__ = ['OEBWriter']CODE
LOWsrc/calibre/ebooks/oeb/transforms/htmltoc.py11__all__ = ['HTMLTOCAdder']CODE
LOWsrc/calibre/ebooks/unihandecode/__init__.py4__all__ = ['Unihandecoder']CODE
LOWsrc/calibre/utils/zipfile.py26__all__ = [CODE
LOWsrc/calibre/utils/titlecase.py17__all__ = ['titlecase']CODE
LOWsrc/calibre/utils/threadpool.py33__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) -> NoneCODE
LOWsrc/calibre/ai/prefs.py33def set_prefs_for_provider(name: str, pref_map: dict[str, Any]) -> None:CODE
LOWsrc/calibre/gui2/chat_widget.py117 def set_max_height(self, val: int) -> None:CODE
LOWsrc/calibre/gui2/chat_widget.py168 def set_max_height(self, val: int) -> None:CODE
LOWsrc/calibre/gui2/chat_widget.py245 def set_input_enabled(self, enabled: bool) -> None:CODE
LOWsrc/calibre/gui2/complete2.py407 def set_use_startswith_search(self, yes: bool) -> None:CODE
LOWsrc/calibre/gui2/complete2.py419 def set_hierarchy_separator(self, sep: str = '') -> None:CODE
LOWsrc/calibre/gui2/momentum_scroll.py354 def update_momentum_scroll_settings(self, **kw) -> None:CODE
LOWsrc/calibre/gui2/llm.py407 def update_ui_state(self) -> None:CODE
LOWsrc/calibre/gui2/llm.py757 def set_actions_in_prefs(self, s: dict[str, Any]) -> None:CODE
LOWsrc/calibre/gui2/llm.py825 def update_render_count(self, reset=False) -> None:CODE
LOWsrc/calibre/gui2/widgets.py264 def set_pixmap(self, pixmap: QPixmap) -> None: ...CODE
LOW…ibre/gui2/preferences/look_feel_tabs/bookshelf_view.py265 def update_recount_txt(self, count) -> None:CODE
LOWsrc/calibre/gui2/library/caches.py329 def set_thumbnail_size(self, width: int, height: int) -> None:CODE
LOWsrc/calibre/gui2/library/caches.py371 def set_disk_cache_max_size(self, size_in_mb: float) -> None:CODE
LOWsrc/calibre/gui2/library/caches.py374 def set_ram_limit(self, num_entries: int) -> None:CODE
LOWsrc/calibre/gui2/library/caches.py396 def set_thumbnail_size(self, width: int, height: int) -> None:CODE
LOWsrc/calibre/gui2/library/caches.py399 def set_disk_cache_max_size(self, size_in_mb: float) -> None:CODE
LOWsrc/calibre/gui2/library/caches.py402 def set_ram_limit(self, num_entries: int) -> None:CODE
LOWsrc/calibre/gui2/library/models.py437 def update_zero_page_values(self) -> None:CODE
LOWsrc/calibre/gui2/fts/cards.py144 def set_cover(self, img: QImage) -> None:CODE
LOWsrc/calibre/gui2/fts/search.py571 def set_num_of_matches_found(self, num: int) -> None:CODE
LOWsrc/calibre/gui2/viewer/llm.py137 def update_with_text(self, text: str) -> None:CODE
LOWsrc/calibre/gui2/viewer/llm.py258 def set_actions_in_prefs(self, s: dict[str, Any]) -> None:CODE
LOWsrc/calibre/gui2/viewer/search.py600 def set_tooltips(self, key_map: dict[str, list[str]]) -> None:CODE
LOWsrc/calibre/gui2/viewer/search.py959 def set_tooltips(self, key_map: dict[str, list[str]]) -> None:CODE
LOWsrc/calibre/gui2/tts/config.py236 def set_item_downloaded_state(self, ans: QTreeWidgetItem) -> None:CODE
LOWsrc/calibre/gui2/tts/config.py567 def set_engine(self, engine_name: str) -> None:CODE
LOWsrc/calibre/gui2/tts/piper.py312 def _set_state(self, s: QTextToSpeech.State) -> None:CODE
LOWsrc/calibre/gui2/tts/piper.py317 def _set_error(self, msg: str) -> None:CODE
LOWsrc/calibre/gui2/tts/speechd.py126 def _set_state(self, s: QTextToSpeech.State) -> None:CODE
LOWsrc/calibre/gui2/tts/speechd.py130 def _set_error(self, msg: str) -> None:CODE
LOWsrc/calibre/gui2/dialogs/llm_book.py124 def set_actions_in_prefs(self, s: dict[str, Any]) -> None:CODE
LOWsrc/calibre/gui2/dialogs/plugin_updater.py260 def set_category(self, c: Category | None) -> None:CODE
LOWsrc/calibre/gui2/dialogs/plugin_updater.py733 def set_description(self, src: str) -> None:CODE
LOWsrc/calibre/translations/dynamic.py15__all__ = ['translate']CODE
LOWsrc/calibre/srv/users.py280 def set_allowed_to_change_password_via_http(self, username: str, allow: bool = True) -> None:STRING
LOWsrc/tinycss/decoding.py19__all__ = ['decode'] # Everything else is implementation detailCODE
LOWsrc/css_selectors/__init__.py12__all__ = ['parse', 'Select', 'INAPPROPRIATE_PSEUDO_CLASSES', 'SelectorError', 'SelectorSyntaxError', 'ExpressionError']CODE
AI Structural Patterns63 hits · 58 pts
SeverityFileLineSnippetContext
LOWsetup/polib.py333CODE
LOWsetup/polib.py886CODE
LOWsetup/polib.py1056CODE
LOWbypy/macos/__main__.py238CODE
LOWsrc/calibre/ebooks/lrf/meta.py515CODE
LOWsrc/calibre/ebooks/lrf/pylrs/pylrs.py2344CODE
LOWsrc/calibre/ebooks/textile/functions.py76CODE
LOWsrc/calibre/ebooks/textile/functions.py953CODE
LOWsrc/calibre/ebooks/rtf/rtfml.py135CODE
LOWsrc/calibre/ebooks/txt/txtml.py85CODE
LOWsrc/calibre/ebooks/mobi/writer8/exth.py49CODE
LOWsrc/calibre/ebooks/pdf/render/serialize.py149CODE
LOWsrc/calibre/ebooks/oeb/parse_utils.py111CODE
LOWsrc/calibre/ebooks/oeb/base.py1537CODE
LOWsrc/calibre/ebooks/oeb/transforms/flatcss.py137CODE
LOWsrc/calibre/ebooks/oeb/polish/kepubify.py631CODE
LOWsrc/calibre/ebooks/rtf2xml/ParseRtf.py123CODE
LOWsrc/calibre/ebooks/rtf2xml/hex_2_utf8.py29CODE
LOWsrc/calibre/ebooks/metadata/toc.py53CODE
LOWsrc/calibre/ebooks/metadata/book/render.py141CODE
LOWsrc/calibre/ebooks/metadata/sources/search_engines.py239CODE
LOWsrc/calibre/ebooks/pml/pmlml.py109CODE
LOWsrc/calibre/ebooks/pml/pmlconverter.py676CODE
LOWsrc/calibre/ebooks/rb/rbml.py78CODE
LOWsrc/calibre/library/database2.py2899CODE
LOWsrc/calibre/library/__init__.py17CODE
LOWsrc/calibre/library/save_to_disk.py247CODE
LOWsrc/calibre/utils/formatter.py2083CODE
LOWsrc/calibre/utils/titlecase.py101CODE
LOWsrc/calibre/utils/ffml_processor.py365CODE
LOWsrc/calibre/utils/config_base.py142CODE
LOWsrc/calibre/utils/config_base.py240CODE
LOWsrc/calibre/utils/certgen.py16CODE
LOWsrc/calibre/utils/certgen.py49CODE
LOWsrc/calibre/utils/img.py230CODE
LOWsrc/calibre/utils/rapydscript.py252CODE
LOWsrc/calibre/utils/smtp.py163CODE
LOWsrc/calibre/utils/ipc/simple_worker.py209CODE
LOWsrc/calibre/gui2/win_file_dialogs.py118CODE
LOWsrc/calibre/gui2/__init__.py777CODE
LOWsrc/calibre/gui2/ebook_download.py82CODE
LOWsrc/calibre/gui2/proceed.py397CODE
LOWsrc/calibre/gui2/qt_file_dialogs.py36CODE
LOWsrc/calibre/gui2/tag_browser/model.py58CODE
LOWsrc/calibre/gui2/tag_browser/view.py676CODE
LOWsrc/calibre/gui2/library/models.py773CODE
LOWsrc/calibre/gui2/dialogs/confirm_delete.py92CODE
LOWsrc/calibre/gui2/dialogs/message_box.py97CODE
LOWsrc/calibre/gui2/dialogs/template_dialog.py499CODE
LOWsrc/calibre/gui2/metadata/diff.py658CODE
LOWsrc/calibre/db/categories.py41CODE
LOWsrc/calibre/db/cache.py714CODE
LOWsrc/calibre/db/cache.py861CODE
LOWsrc/calibre/db/cache.py3841CODE
LOWsrc/calibre/db/cli/main.py41CODE
LOWsrc/calibre/srv/metadata.py115CODE
LOWsrc/calibre/srv/routes.py64CODE
LOWsrc/calibre/srv/tests/auth.py63CODE
LOWsrc/calibre/devices/kobo/books.py20CODE
LOWsrc/calibre/devices/kobo/driver.py2938CODE
3 more matches not shown…
AI Slop Vocabulary13 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__.py20 # 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.py58//C- | any greater extent that may be necessary to utilize furtherCOMMENT
LOWsrc/calibre/ebooks/metadata/odt.py271 # if opf.metadata prop is false, just use the first image thatCOMMENT
MEDIUMsrc/calibre/ebooks/metadata/zip.py57 # enough to make it more robustCOMMENT
LOWsrc/calibre/ebooks/pml/pmlml.py372 # block isn't a real tag we just useCOMMENT
LOWsrc/calibre/spell/dictionary.py170 # Now just return any dictionary that matches the language, preferring userCOMMENT
LOWsrc/calibre/utils/zipfile.py217 # end-of-archive record, so just return the end record we were given.COMMENT
MEDIUMsrc/calibre/utils/icu.py329remove_accents = remove_accents_regex # more robust and fasterSTRING
LOWsrc/calibre/gui2/markdown_syntax_highlighter.py139 # If empty line no need to check for below elements just returnCOMMENT
MEDIUMsrc/calibre/db/cache.py1813 # We utilize the search restriction cache to speed this upCOMMENT
LOWsrc/calibre/devices/smart_device_app/driver.py1755 # 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.py85 self.check_all_methods('Jane Doe',CODE
LOWsrc/calibre/gui2/device.py153 super().__init__('placeholder')CODE
LOWsrc/odf/elementtypes.py83 (TEXTNS,'placeholder'),CODE
LOWsrc/odf/elementtypes.py240 (PRESENTATIONNS,'placeholder'),CODE
LOWsrc/odf/grammar.py1218 (PRESENTATIONNS,'placeholder'): (STRING
LOWsrc/odf/grammar.py1466 (PRESENTATIONNS,'placeholder'),STRING
LOWsrc/odf/grammar.py2038 (TEXTNS,'placeholder'),STRING
LOWsrc/odf/grammar.py2324 (TEXTNS,'placeholder'),STRING
LOWsrc/odf/grammar.py2711 (TEXTNS,'placeholder'),STRING
LOWsrc/odf/grammar.py2781 (TEXTNS,'placeholder'): (STRING
LOWsrc/odf/grammar.py2878 (TEXTNS,'placeholder'),STRING
LOWsrc/odf/grammar.py3100 (TEXTNS,'placeholder'),STRING
LOWsrc/odf/grammar.py3354 (TEXTNS,'placeholder'),STRING
LOWsrc/odf/grammar.py3731 (PRESENTATIONNS,'placeholder'): (STRING
LOWsrc/odf/grammar.py4152 (TEXTNS,'placeholder'): (STRING
LOWsrc/odf/grammar.py5260 (PRESENTATIONNS,'placeholder'),STRING
LOWsrc/odf/grammar.py5463 (PRESENTATIONNS,'placeholder'),STRING
LOWsrc/odf/grammar.py6268 (PRESENTATIONNS,'placeholder'):(STRING
LOWsrc/odf/grammar.py8141 (TEXTNS,'placeholder'):(STRING
LOWsrc/odf/presentation.py81 return Element(qname=(PRESENTATIONNS,'placeholder'), **args)CODE
LOWsrc/odf/attrconverters.py883 ((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.py1723 # We need to check if our attributes are in the book. If they are notCOMMENT
LOWsrc/perfect-hashing/frozen/bits/pmh.h53 // Step 0: Bucket max is 2 * sqrt MCOMMENT
LOWsrc/perfect-hashing/frozen/bits/pmh.h176 // Step 1: Place all of the keys into bucketsCOMMENT
LOWsrc/perfect-hashing/frozen/bits/pmh.h179 // Step 2: Sort the buckets to process the ones with the most items first.COMMENT
LOWsrc/perfect-hashing/frozen/bits/pmh.h190 // Step 3: Map the items in buckets into hash tables.COMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHsrc/calibre/devices/winusb.py940 # Note that I have observed that this failsCOMMENT
Structural Annotation Overuse4 hits · 8 pts
SeverityFileLineSnippetContext
LOWsrc/perfect-hashing/frozen/bits/pmh.h53 // Step 0: Bucket max is 2 * sqrt MCOMMENT
LOWsrc/perfect-hashing/frozen/bits/pmh.h176 // Step 1: Place all of the keys into bucketsCOMMENT
LOWsrc/perfect-hashing/frozen/bits/pmh.h179 // Step 2: Sort the buckets to process the ones with the most items first.COMMENT
LOWsrc/perfect-hashing/frozen/bits/pmh.h190 // Step 3: Map the items in buckets into hash tables.COMMENT
Slop Phrases4 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMresources/default_tweaks.py191# without changing anything is sufficient to change the sort. Or you can useCOMMENT
LOWsrc/calibre/ebooks/rtf2xml/paragraph_def.py554 tokens. (And don't forget to set the text string to ''!)STRING
LOWsrc/calibre/devices/__init__.py191 out("Don't forget to send the contents of /tmp/ioreg.txt")CODE
LOWsrc/calibre/devices/kobo/driver.py3973 # 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.py285 def do_something(data):CODE
LOWsrc/calibre/gui2/dialogs/choose_library.py134 def perform_action(self, ac, loc):CODE
TODO Padding2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsrc/calibre/ai/github/backend.py261 u # TODO: implement costingCODE
LOWsrc/calibre/ai/openai/backend.py177 u # TODO: implement costingCODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWbypy/windows/XUnzip.cpp545// Usage example:COMMENT