<%include file="/support/header.mako" args="environ=environ, cookies=cookies, title='Earwig\'s Copyvio Detector'"/>\ <%namespace module="copyvios" import="main, highlight_delta"/>\ <%namespace module="copyvios.misc" import="urlstrip"/>\ <% query, bot, all_langs, all_projects, page, result = main(environ) %>\ % if query.project and query.lang and query.title and not page:

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.project and query.lang and query.title and page and not result:

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

% elif query.project and query.lang and query.title and query.url and page and result == "bad URI": <% result = None %>

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

% 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 and display a report if a match is found. If you also provide a URL, it will not query any search engines and instead display a report comparing the article to that particular webpage, like the Duplication Detector. Check out the FAQ for more information and technical details.

Note: The tool is still in beta. You are completely welcome to use it and provide feedback, but be aware that it may produce strange or broken results.

% if query.nocache or (result and result.cached): % endif
Site: http:// . .org
Page title: % if page: % elif 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 page and result: <% show_details = "CopyviosShowDetails" in cookies and cookies["CopyviosShowDetails"].value == "True" %>
% if result.violation:

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

% else:

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

% 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" args="environ=environ, cookies=cookies"/>