<%! from flask import g, request %>\ <%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.project and query.lang and (query.title or query.oldid): % if query.error == "bad URI":

Unsupported URI scheme: ${query.url | h}.

% elif query.error == "no data":

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.

% elif not query.site:

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.

% elif query.title and not result:

The given page doesn't seem to exist: ${query.page.title | h}.

% elif query.oldid and not result:

The given revision ID doesn't seem to exist: ${query.oldid | h}.

% endif %endif

This tool attempts to detect copyright violations in articles. Simply give the title of the page or ID of the revision you want to check and hit Submit. The tool will search for similar content elsewhere on the web using Yahoo! BOSS and then display a report if a match is found. If you give a URL, it will skip the search engine step and directly display a report comparing the article to that particular webpage, like the Duplication Detector.

Specific websites can be excluded from the check (for example, if their content is in the public domain) by being added to the excluded URL list.

% if query.nocache or (result and result.cached): % endif
Site: http:// . .org
Page title: % if query.title: % else: % endif or revision ID: % if query.oldid: % else: % endif
URL (optional): % if query.url: % else: % endif
Bypass cache: % if query.nocache: % else: % endif
% if result: <% show_details = "CopyviosShowDetails" in g.cookies and g.cookies["CopyviosShowDetails"].value == "True" %>
% if result.violation: % if query.oldid:

${query.page.title | h} @${query.oldid | h} is a suspected violation of ${result.url | urlstrip, h}.

% else:

${query.page.title | h} is a suspected violation of ${result.url | urlstrip, h}.

% endif % else: % if query.oldid:

No violations detected in ${query.page.title | h} @${query.oldid | h}.

% else:

No violations detected in ${query.page.title | h}.

% endif % endif
Article:

${highlight_delta(result.article_chain, result.delta_chain)}

Source:

${highlight_delta(result.source_chain, result.delta_chain)}

% endif <%include file="/support/footer.mako"/>