%! from flask import g, request from copyvios.checker import T_POSSIBLE, T_SUSPECT %>\ <%include file="/support/header.mako" args="title='Earwig\'s Copyvio Detector'"/> <%namespace module="copyvios.highlighter" import="highlight_delta"/>\ <%namespace module="copyvios.misc" import="httpsfix, urlstrip"/>\ % if query.submitted: % if query.error == "bad action":
Unknown action: ${query.action | h}.
No copyvio search methods were selected. A check can only be made using a search engine, links present in the page, or both.
URL comparison mode requires a URL to be entered. Enter one in the text box below, or choose copyvio search mode to look for content similar to the article elsewhere on the web.
Unsupported URI scheme: ${query.url | h}.
Couldn't find any text in ${query.url | h}. Note: only HTML and plain text pages are supported, and content generated by JavaScript or found inside iframes is ignored.
The URL ${query.url | h} timed out before any data could be retrieved.
The given site (project=${query.project | h}, language=${query.lang | h}) doesn't seem to exist. It may also be closed or private. Confirm its URL.
The given page doesn't seem to exist: ${query.page.title | h}.
The given revision ID doesn't seem to exist: ${query.oldid | h}.
This tool attempts to detect copyright violations in articles. In search mode, it will check for similar content elsewhere on the web using Yahoo! BOSS and/or external links present in the text of the page, depending on which options are selected. In comparison mode, the tool will skip the searching step and display a report comparing the article to the given webpage, like the Duplication Detector.
Running a full check can take up to 45 seconds if other websites are slow. Please be patient. If you get a timeout, wait a moment and refresh the page.
Specific websites can be skipped (for example, if their content is in the public domain) by being added to the excluded URL list.
% if result: <% hide_comparison = "CopyviosHideComparison" in g.cookies and g.cookies["CopyviosHideComparison"].value == "True" %>Article: ${highlight_delta(result.article_chain, result.best.chains[1] if result.best else None)} |
Source: ${highlight_delta(result.best.chains[0], result.best.chains[1]) if result.best else ""} |