Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BEA5110BDD for ; Tue, 25 Feb 2014 19:28:39 +0000 (UTC) Received: (qmail 61543 invoked by uid 500); 25 Feb 2014 19:26:08 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 60543 invoked by uid 500); 25 Feb 2014 19:25:35 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 60281 invoked by uid 99); 25 Feb 2014 19:25:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Feb 2014 19:25:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,WEIRD_QUOTING X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Feb 2014 19:25:24 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 7033C2388CC9 for ; Tue, 25 Feb 2014 19:23:53 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r899186 [41/43] - in /websites/production/commons/content/proper/commons-pool: cobertura/ cobertura/js/ css/ guide/ js/ testapidocs/ testapidocs/org/apache/commons/pool2/ testapidocs/org/apache/commons/pool2/impl/ Date: Tue, 25 Feb 2014 19:23:45 -0000 To: commits@commons.apache.org From: markt@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140225192353.7033C2388CC9@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Modified: websites/production/commons/content/proper/commons-pool/js/prettify.js ============================================================================== --- websites/production/commons/content/proper/commons-pool/js/prettify.js (original) +++ websites/production/commons/content/proper/commons-pool/js/prettify.js Tue Feb 25 19:23:44 2014 @@ -1,640 +1,640 @@ -/* - - * Copyright (C) 2006 Google Inc - - * Licensed under the Apache License, Version 2.0 (the "License") - * you may not use this file except in compliance with the License - * You may obtain a copy of the License a - - * http://www.apache.org/licenses/LICENSE-2. - - * Unless required by applicable law or agreed to in writing, softwar - * distributed under the License is distributed on an "AS IS" BASIS - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied - * See the License for the specific language governing permissions an - * limitations under the License +/** * + * Copyright (C) 2006 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ -function H() - var x = navigator && navigator.userAgen - && /\bMSIE 6\./.test(navigator.userAgent) - H = function() - return +function H() { + var x = navigator && navigator.userAgent + && /\bMSIE 6\./.test(navigator.userAgent); + H = function() { + return x + }; + return x +} +(function() { + function x(b) { + b = b.split(/ /g); + var a = {}; + for ( var c = b.length; --c >= 0;) { + var d = b[c]; + if (d) + a[d] = null + } + return a } - return - -(function() - function x(b) - b = b.split(/ /g) - var a = {} - for ( var c = b.length; --c >= 0;) - var d = b[c] - if (d - a[d] = nul - - return - - var y = "break continue do else for if return while ", U = - + "auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile ", D = - + "catch class delete false import new operator private protected public this throw true try ", I = - + "alignof align_union asm axiom bool concept concept_map const_cast constexpr decltype dynamic_cast explicit export friend inline late_check mutable namespace nullptr reinterpret_cast static_assert static_cast template typeid typename typeof using virtual wchar_t where ", J = - + "boolean byte extends final finally implements import instanceof null native package strictfp super synchronized throws transient ", V = - + "as base by checked decimal delegate descending event fixed foreach from group implicit in interface internal into is lock object out override orderby params readonly ref sbyte sealed stackalloc string select uint ulong unchecked unsafe ushort var ", K = - + "debugger eval export function get null set undefined var with Infinity NaN ", L = "caller delete die do dump elsif eval exit foreach for goto if import last local my next no our print package redo require sub undef unless until use wantarray while BEGIN END ", M = - + "and as assert class def del elif except exec finally from global import in is lambda nonlocal not or pass print raise try with yield False True None ", N = - + "alias and begin case class def defined elsif end ensure false in module next nil not or redo rescue retry self super then true undef unless until when yield BEGIN END ", O = - + "case done elif esac eval fi function in local set then until ", W = - + V + K + L + M + N + O - function X(b) - return b >= "a" && b <= "z" || b >= "A" && b <= "Z - - function u(b, a, c, d) - b.unshift(c, d || 0) - try - a.splice.apply(a, b - } finally - b.splice(0, 2 - - - var Y = (function() - var b = [ "!", "!=", "!==", "#", "%", "%=", "&", "&&", "&&=", "&=" - "(", "*", "*=", "+=", ",", "-=", "->", "/", "/=", ":", "::" - ";", "<", "<<", "<<=", "<=", "=", "==", "===", ">", ">=", ">>" - ">>=", ">>>", ">>>=", "?", "@", "[", "^", "^=", "^^", "^^=" - "{", "|", "|=", "||", "||=", "~", "break", "case", "continue" - "delete", "do", "else", "finally", "instanceof", "return" - "throw", "try", "typeof" ], a = "(?:(?:(?:^|[^0-9.])\\.{1,3})|(?:(?:^|[^\\+])\\+)|(?:(?:^|[^\\-])-)" - for ( var c = 0; c < b.length; ++c) - var d = b[c] - a += X(d.charAt(0)) ? "|\\b" + d : "| - + d.replace(/([^=<>:&])/g, "\\$1" - - a += "|^)\\s*$" - return new RegExp(a - })(), P = /&/g, Q = //g, Z = /\"/g - function $(b) - return b.replace(P, "&").replace(Q, "<").replace(R, ">" - .replace(Z, """ - - function E(b) - return b.replace(P, "&").replace(Q, "<").replace(R, ">" - - var aa = /</g, ba = />/g, ca = /'/g, da = /"/g, ea = /&/g, fa = / /g - function ga(b) - var a = b.indexOf("&") - if (a < 0 - return b - for (--a; (a = b.indexOf("&#", a + 1)) >= 0;) - var c = b.indexOf(";", a) - if (c >= 0) - var d = b.substring(a + 3, c), g = 10 - if (d && d.charAt(0) === "x") - d = d.substring(1) - g = 1 - - var e = parseInt(d, g) - if (!isNaN(e) - b = b.substring(0, a) + String.fromCharCode(e - + b.substring(c + 1 - - - return b.replace(aa, "<").replace(ba, ">").replace(ca, "'").replace(da - '"').replace(ea, "&").replace(fa, " " - - function S(b) - return "XMP" === b.tagNam - - function z(b, a) - switch (b.nodeType) - case 1 - var c = b.tagName.toLowerCase() - a.push("<", c) - for ( var d = 0; d < b.attributes.length; ++d) - var g = b.attributes[d] - if (!g.specified - continue - a.push(" ") - z(g, a - - a.push(">") - for ( var e = b.firstChild; e; e = e.nextSibling - z(e, a) - if (b.firstChild || !/^(?:br|link|img)$/.test(c) - a.push("") - break - case 2 - a.push(b.name.toLowerCase(), '="', $(b.value), '"') + var y = "break continue do else for if return while ", U = y + + "auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile ", D = U + + "catch class delete false import new operator private protected public this throw true try ", I = D + + "alignof align_union asm axiom bool concept concept_map const_cast constexpr decltype dynamic_cast explicit export friend inline late_check mutable namespace nullptr reinterpret_cast static_assert static_cast template typeid typename typeof using virtual wchar_t where ", J = D + + "boolean byte extends final finally implements import instanceof null native package strictfp super synchronized throws transient ", V = J + + "as base by checked decimal delegate descending event fixed foreach from group implicit in interface internal into is lock object out override orderby params readonly ref sbyte sealed stackalloc string select uint ulong unchecked unsafe ushort var ", K = D + + "debugger eval export function get null set undefined var with Infinity NaN ", L = "caller delete die do dump elsif eval exit foreach for goto if import last local my next no our print package redo require sub undef unless until use wantarray while BEGIN END ", M = y + + "and as assert class def del elif except exec finally from global import in is lambda nonlocal not or pass print raise try with yield False True None ", N = y + + "alias and begin case class def defined elsif end ensure false in module next nil not or redo rescue retry self super then true undef unless until when yield BEGIN END ", O = y + + "case done elif esac eval fi function in local set then until ", W = I + + V + K + L + M + N + O; + function X(b) { + return b >= "a" && b <= "z" || b >= "A" && b <= "Z" + } + function u(b, a, c, d) { + b.unshift(c, d || 0); + try { + a.splice.apply(a, b) + } finally { + b.splice(0, 2) + } + } + var Y = (function() { + var b = [ "!", "!=", "!==", "#", "%", "%=", "&", "&&", "&&=", "&=", + "(", "*", "*=", "+=", ",", "-=", "->", "/", "/=", ":", "::", + ";", "<", "<<", "<<=", "<=", "=", "==", "===", ">", ">=", ">>", + ">>=", ">>>", ">>>=", "?", "@", "[", "^", "^=", "^^", "^^=", + "{", "|", "|=", "||", "||=", "~", "break", "case", "continue", + "delete", "do", "else", "finally", "instanceof", "return", + "throw", "try", "typeof" ], a = "(?:(?:(?:^|[^0-9.])\\.{1,3})|(?:(?:^|[^\\+])\\+)|(?:(?:^|[^\\-])-)"; + for ( var c = 0; c < b.length; ++c) { + var d = b[c]; + a += X(d.charAt(0)) ? "|\\b" + d : "|" + + d.replace(/([^=<>:&])/g, "\\$1") + } + a += "|^)\\s*$"; + return new RegExp(a) + })(), P = /&/g, Q = //g, Z = /\"/g; + function $(b) { + return b.replace(P, "&").replace(Q, "<").replace(R, ">") + .replace(Z, """) + } + function E(b) { + return b.replace(P, "&").replace(Q, "<").replace(R, ">") + } + var aa = /</g, ba = />/g, ca = /'/g, da = /"/g, ea = /&/g, fa = / /g; + function ga(b) { + var a = b.indexOf("&"); + if (a < 0) + return b; + for (--a; (a = b.indexOf("&#", a + 1)) >= 0;) { + var c = b.indexOf(";", a); + if (c >= 0) { + var d = b.substring(a + 3, c), g = 10; + if (d && d.charAt(0) === "x") { + d = d.substring(1); + g = 16 + } + var e = parseInt(d, g); + if (!isNaN(e)) + b = b.substring(0, a) + String.fromCharCode(e) + + b.substring(c + 1) + } + } + return b.replace(aa, "<").replace(ba, ">").replace(ca, "'").replace(da, + '"').replace(ea, "&").replace(fa, " ") + } + function S(b) { + return "XMP" === b.tagName + } + function z(b, a) { + switch (b.nodeType) { + case 1: + var c = b.tagName.toLowerCase(); + a.push("<", c); + for ( var d = 0; d < b.attributes.length; ++d) { + var g = b.attributes[d]; + if (!g.specified) + continue; + a.push(" "); + z(g, a) + } + a.push(">"); + for ( var e = b.firstChild; e; e = e.nextSibling) + z(e, a); + if (b.firstChild || !/^(?:br|link|img)$/.test(c)) + a.push(""); + break; + case 2: + a.push(b.name.toLowerCase(), '="', $(b.value), '"'); + break; + case 3: + case 4: + a.push(E(b.nodeValue)); break - case 3 - case 4 - a.push(E(b.nodeValue)) - brea - - - var F = null - function ha(b) - if (null === F) - var a = document.createElement("pre") - - .appendChild(documen - .createTextNode('\n')) - F = !/= 0; i -= " ".length - d.push(" ".substring(0, i)) - g = e + 1 - break - case "\n" - a = 0 - break - default - ++ - - - if (!d - return c - d.push(c.substring(g)) - return d.join("" - - - var ja = /(?:[^<]+|