<%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 = main(environ) # Unpack query data: lang, orig_lang, title, oldid, url, nocache = query.lang, query.orig_lang, query.title, query.oldid, query.url, query.nocache bot, site, page, result = query.bot, query.site, query.page, query.result %>\ % if query.project and lang and (title or oldid): % if not site:

The given site (project=${query.project | h}, language=${lang | h}) doesn't seem to exist. It may also be closed or private. Confirm its URL.

% elif title and not result:

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

% elif oldid and not result:

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

% elif url and result == "bad URI": <% result = None %>

Unsupported URI scheme: ${url | 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 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 nocache or (result and result.cached): % endif
Site: http:// . .org
Page title: % if page: % elif title: % else: % endif or revision ID: % if oldid: % else: % endif
URL (optional): % if url: % else: % endif
Bypass cache: % if nocache: % else: % endif
% if 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"/>